From 1a29ea254fb1c53ca91ffa8814b803abf4a95e33 Mon Sep 17 00:00:00 2001 From: Taois Date: Thu, 16 Oct 2025 11:37:28 +0800 Subject: [PATCH 01/14] feat: ws --- controllers/index.js | 11 +- controllers/websocket.js | 235 ++++++++++++++++++++++++++ index.js | 4 - package.json | 1 + public/websocket-test.html | 326 +++++++++++++++++++++++++++++++++++++ 5 files changed, 572 insertions(+), 5 deletions(-) create mode 100644 controllers/websocket.js create mode 100644 public/websocket-test.html diff --git a/controllers/index.js b/controllers/index.js index cc30e72f..1e3712a7 100644 --- a/controllers/index.js +++ b/controllers/index.js @@ -3,7 +3,8 @@ * 统一管理和注册所有控制器路由 * 提供应用程序的所有API端点和功能模块 */ - +import formBody from '@fastify/formbody'; +import websocket from '@fastify/websocket'; // 静态文件服务控制器 import staticController from './static.js'; // 文档服务控制器 @@ -44,6 +45,8 @@ import ftpProxyController from './ftp-proxy.js'; import fileProxyController from './file-proxy.js'; import m3u8ProxyController from './m3u8-proxy.js'; import unifiedProxyController from './unified-proxy.js'; +// WebSocket控制器 +import websocketController from './websocket.js'; /** * 注册所有路由控制器 @@ -52,6 +55,10 @@ import unifiedProxyController from './unified-proxy.js'; * @param {Object} options - 路由配置选项 */ export const registerRoutes = (fastify, options) => { + // 注册插件以支持 application/x-www-form-urlencoded + fastify.register(formBody); + // 注册WebSocket插件 + fastify.register(websocket); // 注册静态文件服务路由 fastify.register(staticController, options); // 注册文档服务路由 @@ -93,4 +100,6 @@ export const registerRoutes = (fastify, options) => { fastify.register(m3u8ProxyController, options); // 注册统一代理路由 fastify.register(unifiedProxyController, options); + // 注册WebSocket路由 + fastify.register(websocketController, options); }; diff --git a/controllers/websocket.js b/controllers/websocket.js new file mode 100644 index 00000000..64e3d2c5 --- /dev/null +++ b/controllers/websocket.js @@ -0,0 +1,235 @@ +/** + * WebSocket控制器模块 + * 提供WebSocket连接管理、实时日志广播和客户端通信功能 + * @module websocket-controller + */ + +import {validateBasicAuth} from "../utils/api_validate.js"; +import {toBeijingTime} from "../utils/datetime-format.js"; + +// WebSocket 客户端管理 +const wsClients = new Set(); + +// 原始 console 方法备份 +const originalConsole = { + log: console.log, + error: console.error, + warn: console.warn, + info: console.info, + debug: console.debug, + time: console.time, + timeEnd: console.timeEnd, +}; + +// 广播消息到所有 WebSocket 客户端 +function broadcastToClients(message) { + const deadClients = []; + + wsClients.forEach(client => { + try { + // 使用WebSocket的OPEN常量进行状态检查 + if (client.readyState === client.OPEN) { + client.send(message); + } else { + deadClients.push(client); + } + } catch (error) { + originalConsole.error('Error broadcasting to client:', error); + deadClients.push(client); + } + }); + + // 清理断开的连接 + deadClients.forEach(client => wsClients.delete(client)); +} + +// Console 拦截器 +function interceptConsole() { + const createInterceptor = (level, originalMethod) => { + return function (...args) { + // 调用原始方法 + originalMethod.apply(console, args); + + // 广播到所有 WebSocket 客户端 + if (wsClients.size > 0) { + const message = { + type: 'console', + level: level, + timestamp: toBeijingTime(new Date()), + content: args.map(arg => + typeof arg === 'object' ? JSON.stringify(arg, null, 2) : String(arg) + ).join(' ') + }; + + broadcastToClients(JSON.stringify(message)); + } + }; + }; + + console.log = createInterceptor('log', originalConsole.log); + console.error = createInterceptor('error', originalConsole.error); + console.warn = createInterceptor('warn', originalConsole.warn); + console.info = createInterceptor('info', originalConsole.info); + console.debug = createInterceptor('debug', originalConsole.debug); + console.time = createInterceptor('time', originalConsole.time); + console.timeEnd = createInterceptor('timeEnd', originalConsole.timeEnd); +} + +// 恢复原始 console +function restoreConsole() { + console.log = originalConsole.log; + console.error = originalConsole.error; + console.warn = originalConsole.warn; + console.info = originalConsole.info; + console.debug = originalConsole.debug; + console.time = originalConsole.time; + console.timeEnd = originalConsole.timeEnd; +} + +// 启动 console 拦截 +interceptConsole(); + +/** + * WebSocket控制器插件 + * @param {Object} fastify - Fastify实例 + * @param {Object} options - 插件选项 + * @param {Function} done - 完成回调 + */ +export default (fastify, options, done) => { + // 注册WebSocket路由 + fastify.register(async function (fastify) { + /** + * WebSocket连接路由 + * GET /ws - 建立WebSocket连接 + */ + fastify.get('/ws', {websocket: true}, (socket, req) => { + const clientId = Date.now() + Math.random(); + originalConsole.log(`WebSocket client connected: ${clientId}`); + originalConsole.log('Socket type:', typeof socket); + originalConsole.log('Socket has send method:', typeof socket.send); + + // 添加到客户端集合 + wsClients.add(socket); + + // 设置连接属性 + socket.clientId = clientId; + socket.isAlive = true; + socket.lastPing = Date.now(); + + // 发送欢迎消息 - 先检查send方法是否存在 + if (typeof socket.send === 'function') { + socket.send(JSON.stringify({ + type: 'welcome', + message: 'WebSocket connection established', + clientId: clientId, + timestamp: Date.now() + })); + } else { + originalConsole.error('Socket does not have send method'); + } + + // 设置心跳检测 + const heartbeatInterval = setInterval(() => { + if (!socket.isAlive) { + originalConsole.log(`Client ${clientId} failed heartbeat, terminating`); + clearInterval(heartbeatInterval); + socket.terminate(); + return; + } + + socket.isAlive = false; + socket.ping(); + }, 30000); // 30秒心跳检测 + + // 处理pong响应 + socket.on('pong', () => { + socket.isAlive = true; + }); + + // 处理消息 + socket.on('message', (message) => { + try { + const data = JSON.parse(message.toString()); + originalConsole.log(`Received from ${clientId}:`, data); + + // 回显消息 + if (socket.readyState === socket.OPEN) { + socket.send(JSON.stringify({ + type: 'echo', + originalMessage: data, + timestamp: Date.now(), + clientId: clientId + })); + } + } catch (error) { + originalConsole.error('Error processing message:', error); + if (socket.readyState === socket.OPEN) { + socket.send(JSON.stringify({ + type: 'error', + message: 'Invalid JSON format', + timestamp: Date.now() + })); + } + } + }); + + // 处理连接关闭 + socket.on('close', (code, reason) => { + originalConsole.log(`Client ${clientId} disconnected: ${code} ${reason}`); + wsClients.delete(socket); + clearInterval(heartbeatInterval); + }); + + // 处理错误 + socket.on('error', (error) => { + originalConsole.error(`WebSocket error for client ${clientId}:`, error); + wsClients.delete(socket); + clearInterval(heartbeatInterval); + }); + }); + }); + + /** + * WebSocket状态查询接口 + * GET /ws/status - 获取WebSocket服务状态 + */ + fastify.get('/ws/status', {preHandler: validateBasicAuth}, async (request, reply) => { + return { + status: 'ok', + timestamp: toBeijingTime(new Date()), + clients: wsClients.size, + console_intercepted: true + }; + }); + + /** + * 手动广播接口 + * POST /ws/broadcast - 向所有WebSocket客户端广播消息 + */ + fastify.post('/ws/broadcast', {preHandler: validateBasicAuth}, async (request, reply) => { + const {message} = request.body; + if (!message) { + return reply.code(400).send({error: 'Message is required'}); + } + + const broadcastMessage = { + type: 'broadcast', + timestamp: toBeijingTime(new Date()), + content: message + }; + + broadcastToClients(JSON.stringify(broadcastMessage)); + + return { + status: 'ok', + timestamp: toBeijingTime(new Date()), + message: 'Message broadcasted', + clients: wsClients.size + }; + }); + + done(); +}; + +// 导出工具函数供其他模块使用 +export {wsClients, broadcastToClients, originalConsole, interceptConsole, restoreConsole}; \ No newline at end of file diff --git a/index.js b/index.js index 3980e401..6ab72f5b 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,6 @@ import path from 'path'; import os from 'os'; import qs from 'qs'; import {fileURLToPath} from 'url'; -import formBody from '@fastify/formbody'; import {validateBasicAuth, validateJs, validatePwd, validatHtml} from "./utils/api_validate.js"; import {startAllPlugins} from "./utils/pluginManager.js"; // 注册自定义import钩子 @@ -38,9 +37,6 @@ const configDir = path.join(__dirname, 'config'); const pluginProcs = startAllPlugins(__dirname); // console.log('pluginProcs:', pluginProcs); -// 注册插件以支持 application/x-www-form-urlencoded -fastify.register(formBody); - // 添加钩子事件 fastify.addHook('onReady', async () => { try { diff --git a/package.json b/package.json index b00ffc0d..2d8dc680 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "dependencies": { "@fastify/formbody": "^7.4.0", "@fastify/static": "7.0.4", + "@fastify/websocket": "^10.0.1", "axios": "^1.7.9", "basic-ftp": "^5.0.5", "cheerio": "^1.0.0", diff --git a/public/websocket-test.html b/public/websocket-test.html new file mode 100644 index 00000000..7d9b196e --- /dev/null +++ b/public/websocket-test.html @@ -0,0 +1,326 @@ + + + + + + WebSocket 测试页面 + + + +
+

WebSocket 测试页面

+ +
+ 状态: 未连接 +
+ +
+ + + + +
+ +
+

发送消息:

+ + +
+ +
+

消息日志:

+
+
+
+ + + + \ No newline at end of file From 374681767c6f21e2039dacc88bdf0668c4f1760a Mon Sep 17 00:00:00 2001 From: Taois Date: Thu, 16 Oct 2025 12:40:40 +0800 Subject: [PATCH 02/14] feat: ws --- controllers/websocket.js | 4 +- public/websocket-test.html | 1202 +++++++++++++++++++++++++++++++----- 2 files changed, 1057 insertions(+), 149 deletions(-) diff --git a/controllers/websocket.js b/controllers/websocket.js index 64e3d2c5..f87d70a2 100644 --- a/controllers/websocket.js +++ b/controllers/websocket.js @@ -97,7 +97,7 @@ interceptConsole(); */ export default (fastify, options, done) => { // 注册WebSocket路由 - fastify.register(async function (fastify) { + // fastify.register(async function (fastify) { /** * WebSocket连接路由 * GET /ws - 建立WebSocket连接 @@ -187,7 +187,7 @@ export default (fastify, options, done) => { clearInterval(heartbeatInterval); }); }); - }); + // }); /** * WebSocket状态查询接口 diff --git a/public/websocket-test.html b/public/websocket-test.html index 7d9b196e..1397dc2b 100644 --- a/public/websocket-test.html +++ b/public/websocket-test.html @@ -3,154 +3,827 @@ - WebSocket 测试页面 + WebSocket 专业测试控制台 +
-

WebSocket 测试页面

- -
- 状态: 未连接 -
- -
- - - - -
- -
-

发送消息:

- - +
+

WebSocket 专业测试控制台

+

实时连接监控与消息调试工具

- -
-

消息日志:

-
+ +
+
+
+ + 连接控制 +
+ +
+
+
+ 未连接 +
+
+
+ +
+ + + + +
+ +
+ +
+ + +
+
+ +
+ + 设置 +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+
0
+
消息总数
+
+
+
0
+
重连次数
+
+
+
+ +
+
+
+ + 实时日志控制台 +
+
+ + + +
+
+ +
+
+
+ 全部 +
+
+ 系统 +
+
+ 发送 +
+
+ 接收 +
+
+ 错误 +
+
+
+ +
+ +
+
\ No newline at end of file From 090cb00ad91606e8a52209579d1f86b10b644b32 Mon Sep 17 00:00:00 2001 From: Taois Date: Thu, 16 Oct 2025 13:07:11 +0800 Subject: [PATCH 03/14] feat: ws --- controllers/websocket.js | 220 +++++++++++++++++++------------------ public/websocket-test.html | 150 +++++++++++++++++-------- 2 files changed, 216 insertions(+), 154 deletions(-) diff --git a/controllers/websocket.js b/controllers/websocket.js index f87d70a2..6f68eea0 100644 --- a/controllers/websocket.js +++ b/controllers/websocket.js @@ -10,16 +10,24 @@ import {toBeijingTime} from "../utils/datetime-format.js"; // WebSocket 客户端管理 const wsClients = new Set(); +// 需要拦截的console方法列表 +const CONSOLE_METHODS = [ + 'log', 'error', 'warn', 'info', 'debug', + 'time', 'timeEnd', 'timeLog', + 'assert', 'clear', 'count', 'countReset', + 'dir', 'dirxml', 'group', 'groupCollapsed', 'groupEnd', + 'table', 'trace', 'profile', 'profileEnd' +]; + // 原始 console 方法备份 -const originalConsole = { - log: console.log, - error: console.error, - warn: console.warn, - info: console.info, - debug: console.debug, - time: console.time, - timeEnd: console.timeEnd, -}; +const originalConsole = {}; + +// 动态备份所有console方法 +CONSOLE_METHODS.forEach(method => { + if (typeof console[method] === 'function') { + originalConsole[method] = console[method]; + } +}); // 广播消息到所有 WebSocket 客户端 function broadcastToClients(message) { @@ -66,24 +74,22 @@ function interceptConsole() { }; }; - console.log = createInterceptor('log', originalConsole.log); - console.error = createInterceptor('error', originalConsole.error); - console.warn = createInterceptor('warn', originalConsole.warn); - console.info = createInterceptor('info', originalConsole.info); - console.debug = createInterceptor('debug', originalConsole.debug); - console.time = createInterceptor('time', originalConsole.time); - console.timeEnd = createInterceptor('timeEnd', originalConsole.timeEnd); + // 动态拦截所有console方法 + CONSOLE_METHODS.forEach(method => { + if (originalConsole[method]) { + console[method] = createInterceptor(method, originalConsole[method]); + } + }); } // 恢复原始 console function restoreConsole() { - console.log = originalConsole.log; - console.error = originalConsole.error; - console.warn = originalConsole.warn; - console.info = originalConsole.info; - console.debug = originalConsole.debug; - console.time = originalConsole.time; - console.timeEnd = originalConsole.timeEnd; + // 动态恢复所有console方法 + CONSOLE_METHODS.forEach(method => { + if (originalConsole[method]) { + console[method] = originalConsole[method]; + } + }); } // 启动 console 拦截 @@ -96,98 +102,96 @@ interceptConsole(); * @param {Function} done - 完成回调 */ export default (fastify, options, done) => { - // 注册WebSocket路由 - // fastify.register(async function (fastify) { - /** - * WebSocket连接路由 - * GET /ws - 建立WebSocket连接 - */ - fastify.get('/ws', {websocket: true}, (socket, req) => { - const clientId = Date.now() + Math.random(); - originalConsole.log(`WebSocket client connected: ${clientId}`); - originalConsole.log('Socket type:', typeof socket); - originalConsole.log('Socket has send method:', typeof socket.send); - - // 添加到客户端集合 - wsClients.add(socket); - - // 设置连接属性 - socket.clientId = clientId; - socket.isAlive = true; - socket.lastPing = Date.now(); - - // 发送欢迎消息 - 先检查send方法是否存在 - if (typeof socket.send === 'function') { - socket.send(JSON.stringify({ - type: 'welcome', - message: 'WebSocket connection established', - clientId: clientId, - timestamp: Date.now() - })); - } else { - originalConsole.error('Socket does not have send method'); + /** + * WebSocket连接路由 + * GET /ws - 建立WebSocket连接 + */ + fastify.get('/ws', {websocket: true}, (socket, req) => { + const clientId = Date.now() + Math.random(); + originalConsole.log(`WebSocket client connected: ${clientId}`); + originalConsole.log('Socket type:', typeof socket); + originalConsole.log('Socket has send method:', typeof socket.send); + + // 添加到客户端集合 + wsClients.add(socket); + + // 设置连接属性 + socket.clientId = clientId; + socket.isAlive = true; + socket.lastPing = Date.now(); + + // 发送欢迎消息 - 先检查send方法是否存在 + if (typeof socket.send === 'function') { + socket.send(JSON.stringify({ + type: 'welcome', + message: 'WebSocket connection established', + clientId: clientId, + timestamp: Date.now() + })); + } else { + originalConsole.error('Socket does not have send method'); + } + + // 设置心跳检测 + const heartbeatInterval = setInterval(() => { + if (!socket.isAlive) { + originalConsole.log(`Client ${clientId} failed heartbeat, terminating`); + clearInterval(heartbeatInterval); + wsClients.delete(socket); // 修复内存泄露:从客户端集合中移除 + socket.terminate(); + return; } - // 设置心跳检测 - const heartbeatInterval = setInterval(() => { - if (!socket.isAlive) { - originalConsole.log(`Client ${clientId} failed heartbeat, terminating`); - clearInterval(heartbeatInterval); - socket.terminate(); - return; - } + socket.isAlive = false; + socket.ping(); + }, 30000); // 30秒心跳检测 + + // 处理pong响应 + socket.on('pong', () => { + socket.isAlive = true; + }); - socket.isAlive = false; - socket.ping(); - }, 30000); // 30秒心跳检测 - - // 处理pong响应 - socket.on('pong', () => { - socket.isAlive = true; - }); - - // 处理消息 - socket.on('message', (message) => { - try { - const data = JSON.parse(message.toString()); - originalConsole.log(`Received from ${clientId}:`, data); - - // 回显消息 - if (socket.readyState === socket.OPEN) { - socket.send(JSON.stringify({ - type: 'echo', - originalMessage: data, - timestamp: Date.now(), - clientId: clientId - })); - } - } catch (error) { - originalConsole.error('Error processing message:', error); - if (socket.readyState === socket.OPEN) { - socket.send(JSON.stringify({ - type: 'error', - message: 'Invalid JSON format', - timestamp: Date.now() - })); - } + // 处理消息 + socket.on('message', (message) => { + try { + const data = JSON.parse(message.toString()); + originalConsole.log(`Received from ${clientId}:`, data); + + // 回显消息 + if (socket.readyState === socket.OPEN) { + socket.send(JSON.stringify({ + type: 'echo', + originalMessage: data, + timestamp: Date.now(), + clientId: clientId + })); + } + } catch (error) { + originalConsole.error('Error processing message:', error); + if (socket.readyState === socket.OPEN) { + socket.send(JSON.stringify({ + type: 'error', + message: 'Invalid JSON format', + timestamp: Date.now() + })); } - }); + } + }); - // 处理连接关闭 - socket.on('close', (code, reason) => { - originalConsole.log(`Client ${clientId} disconnected: ${code} ${reason}`); - wsClients.delete(socket); - clearInterval(heartbeatInterval); - }); + // 处理连接关闭 + socket.on('close', (code, reason) => { + originalConsole.log(`Client ${clientId} disconnected: ${code} ${reason}`); + wsClients.delete(socket); + clearInterval(heartbeatInterval); + }); - // 处理错误 - socket.on('error', (error) => { - originalConsole.error(`WebSocket error for client ${clientId}:`, error); - wsClients.delete(socket); - clearInterval(heartbeatInterval); - }); + // 处理错误 + socket.on('error', (error) => { + originalConsole.error(`WebSocket error for client ${clientId}:`, error); + wsClients.delete(socket); + clearInterval(heartbeatInterval); }); - // }); + }); /** * WebSocket状态查询接口 diff --git a/public/websocket-test.html b/public/websocket-test.html index 1397dc2b..4534c5db 100644 --- a/public/websocket-test.html +++ b/public/websocket-test.html @@ -39,43 +39,48 @@ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: var(--text-primary); - min-height: 100vh; + height: 100vh; line-height: 1.6; + overflow: hidden; } .container { max-width: 1400px; margin: 0 auto; - padding: 20px; - min-height: 100vh; + padding: 15px; + height: 100vh; + display: flex; + flex-direction: column; } .header { text-align: center; - margin-bottom: 30px; - padding: 20px 0; + margin-bottom: 15px; + padding: 15px 0; + flex-shrink: 0; } .header h1 { - font-size: 2.5rem; + font-size: 2.2rem; font-weight: 700; background: linear-gradient(135deg, var(--primary-color), var(--info-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; - margin-bottom: 10px; + margin-bottom: 8px; } .header p { color: var(--text-secondary); - font-size: 1.1rem; + font-size: 1rem; } .main-grid { display: grid; grid-template-columns: 1fr 2fr; - gap: 20px; - height: calc(100vh - 200px); + gap: 15px; + flex: 1; + min-height: 0; } .control-panel { @@ -83,8 +88,11 @@ backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 16px; - padding: 24px; + padding: 16px; box-shadow: var(--shadow-lg); + min-height: 0; + display: flex; + flex-direction: column; } .terminal-panel { @@ -95,23 +103,24 @@ box-shadow: var(--shadow-lg); display: flex; flex-direction: column; + min-height: 0; } .section-title { - font-size: 1.25rem; + font-size: 1.1rem; font-weight: 600; - margin-bottom: 20px; + margin-bottom: 12px; display: flex; align-items: center; - gap: 10px; + gap: 6px; } .status-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; - padding: 20px; - margin-bottom: 20px; + padding: 14px; + margin-bottom: 12px; transition: all 0.3s ease; } @@ -145,15 +154,15 @@ .controls-grid { display: grid; grid-template-columns: 1fr 1fr; - gap: 12px; - margin-bottom: 20px; + gap: 10px; + margin-bottom: 15px; } .btn { background: var(--primary-color); color: white; border: none; - padding: 12px 20px; + padding: 10px 16px; border-radius: 8px; font-weight: 500; cursor: pointer; @@ -161,8 +170,8 @@ display: flex; align-items: center; justify-content: center; - gap: 8px; - font-size: 0.9rem; + gap: 6px; + font-size: 0.85rem; } .btn:hover:not(:disabled) { @@ -201,14 +210,15 @@ } .input-group { - margin-bottom: 20px; + margin-bottom: 12px; } .input-group label { display: block; - margin-bottom: 8px; + margin-bottom: 4px; font-weight: 500; - color: var(--text-secondary); + color: var(--text-primary); + font-size: 0.85rem; } .input-field { @@ -286,38 +296,41 @@ display: flex; justify-content: space-between; align-items: center; - margin-bottom: 16px; + margin-bottom: 8px; + padding: 6px 0; } .terminal-header { background: var(--bg-secondary); - padding: 16px 20px; + padding: 12px 16px; border-bottom: 1px solid var(--terminal-border); display: flex; justify-content: space-between; align-items: center; + flex-shrink: 0; } .terminal-title { font-weight: 600; display: flex; align-items: center; - gap: 10px; + gap: 8px; + font-size: 0.95rem; } .terminal-controls { display: flex; - gap: 8px; + gap: 6px; } .terminal-btn { background: none; border: 1px solid var(--border-color); color: var(--text-secondary); - padding: 6px 12px; + padding: 5px 10px; border-radius: 6px; cursor: pointer; - font-size: 0.8rem; + font-size: 0.75rem; transition: all 0.2s ease; } @@ -327,9 +340,10 @@ } .filter-bar { - padding: 16px 20px; + padding: 12px 16px; border-bottom: 1px solid var(--terminal-border); background: var(--bg-secondary); + flex-shrink: 0; } .filter-chips { @@ -508,16 +522,16 @@ .stats-grid { display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 12px; - margin-top: 20px; + grid-template-columns: 1fr 1fr; + gap: 8px; + margin-top: 12px; } .stat-card { - background: var(--bg-secondary); + background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; - padding: 16px; + padding: 8px; text-align: center; } @@ -537,26 +551,52 @@ @media (max-width: 1024px) { .main-grid { grid-template-columns: 1fr; - gap: 16px; + gap: 12px; } .control-panel { order: 2; + max-height: 40vh; } .terminal-panel { order: 1; - height: 60vh; + flex: 1; + min-height: 50vh; } } @media (max-width: 768px) { + body { + overflow-y: auto; + } + .container { - padding: 16px; + padding: 12px; + height: auto; + min-height: 100vh; + } + + .header { + padding: 10px 0; + margin-bottom: 12px; } .header h1 { - font-size: 2rem; + font-size: 1.8rem; + } + + .main-grid { + flex: none; + height: auto; + } + + .control-panel { + max-height: none; + } + + .terminal-panel { + min-height: 60vh; } .controls-grid { @@ -573,7 +613,7 @@ .terminal-header { flex-direction: column; - gap: 12px; + gap: 8px; align-items: flex-start; } @@ -697,7 +737,7 @@

WebSocket 专业测试控制台

-
+
设置
@@ -740,8 +780,8 @@

WebSocket 专业测试控制台

'),O=(0,a.createElement)("div");(0,a.addClass)(O,"art-setting-item-left-icon"),(0,a.append)(O,T),(0,a.append)(M,O),(0,a.append)(M,x.$parent.html);let L=_(P,"click",()=>this.render(x.$parents));x.$parent.$events.push(L),(0,a.append)(E,P)}createItem(x,E=!1){if(!this.cache.has(x.$option))return;let _=this.cache.get(x.$option),T=x.$item,D="selector";(0,a.has)(x,"switch")&&(D="switch"),(0,a.has)(x,"range")&&(D="range"),(0,a.has)(x,"onClick")&&(D="button");let{icons:P,proxy:M,constructor:O}=this.art,L=(0,a.createElement)("div");(0,a.addClass)(L,"art-setting-item"),(0,a.setStyle)(L,"height",`${O.SETTING_ITEM_HEIGHT}px`),L.dataset.name=x.name||"",L.dataset.value=x.value||"";let B=(0,a.append)(L,'
'),j=(0,a.append)(L,'
'),H=(0,a.createElement)("div");switch((0,a.addClass)(H,"art-setting-item-left-icon"),D){case"button":case"switch":case"range":(0,a.append)(H,x.icon||P.config);break;case"selector":x.selector?.length?(0,a.append)(H,x.icon||P.config):(0,a.append)(H,P.check)}(0,a.append)(B,H),(0,a.def)(x,"$icon",{configurable:!0,get:()=>H}),(0,a.def)(x,"icon",{configurable:!0,get:()=>H.innerHTML,set(Y){H.innerHTML="",(0,a.append)(H,Y)}});let U=(0,a.createElement)("div");(0,a.addClass)(U,"art-setting-item-left-text"),(0,a.append)(U,x.html||""),(0,a.append)(B,U),(0,a.def)(x,"$html",{configurable:!0,get:()=>U}),(0,a.def)(x,"html",{configurable:!0,get:()=>U.innerHTML,set(Y){U.innerHTML="",(0,a.append)(U,Y)}});let K=(0,a.createElement)("div");switch((0,a.addClass)(K,"art-setting-item-right-tooltip"),(0,a.append)(K,x.tooltip||""),(0,a.append)(j,K),(0,a.def)(x,"$tooltip",{configurable:!0,get:()=>K}),(0,a.def)(x,"tooltip",{configurable:!0,get:()=>K.innerHTML,set(Y){K.innerHTML="",(0,a.append)(K,Y)}}),D){case"switch":{let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon");let ie=(0,a.append)(Y,P.switchOn),te=(0,a.append)(Y,P.switchOff);(0,a.setStyle)(x.switch?te:ie,"display","none"),(0,a.append)(j,Y),(0,a.def)(x,"$switch",{configurable:!0,get:()=>Y});let W=x.switch;(0,a.def)(x,"switch",{configurable:!0,get:()=>W,set(q){W=q,q?((0,a.setStyle)(te,"display","none"),(0,a.setStyle)(ie,"display",null)):((0,a.setStyle)(te,"display",null),(0,a.setStyle)(ie,"display","none"))}});break}case"range":{let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon");let ie=(0,a.append)(Y,'');ie.value=x.range[0],ie.min=x.range[1],ie.max=x.range[2],ie.step=x.range[3],(0,a.addClass)(ie,"art-setting-range"),(0,a.append)(j,Y),(0,a.def)(x,"$range",{configurable:!0,get:()=>ie});let te=[...x.range];(0,a.def)(x,"range",{configurable:!0,get:()=>te,set(W){te=[...W],ie.value=W[0],ie.min=W[1],ie.max=W[2],ie.step=W[3]}})}break;case"selector":if(x.selector?.length){let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon"),(0,a.append)(Y,P.arrowRight),(0,a.append)(j,Y)}}switch(D){case"switch":if(x.onSwitch){let Y=M(L,"click",async ie=>{x.switch=await x.onSwitch.call(this.art,x,L,ie)});x.$events.push(Y)}break;case"range":if(x.$range){if(x.onRange){let Y=M(x.$range,"change",async ie=>{x.range[0]=x.$range.valueAsNumber,x.tooltip=await x.onRange.call(this.art,x,L,ie)});x.$events.push(Y)}if(x.onChange){let Y=M(x.$range,"input",async ie=>{x.range[0]=x.$range.valueAsNumber,x.tooltip=await x.onChange.call(this.art,x,L,ie)});x.$events.push(Y)}}break;case"selector":{let Y=M(L,"click",async ie=>{x.selector?.length?this.render(x.selector):(this.check(x),x.$parent.onSelect&&(x.$parent.tooltip=await x.$parent.onSelect.call(this.art,x,L,ie)))});x.$events.push(Y),x.default&&(0,a.addClass)(L,"art-current")}break;case"button":if(x.onClick){let Y=M(L,"click",async ie=>{x.tooltip=await x.onClick.call(this.art,x,L,ie)});x.$events.push(Y)}}(0,a.def)(x,"$item",{configurable:!0,get:()=>L}),E?(0,a.replaceElement)(L,T):(0,a.append)(_,L),x.mounted&&setTimeout(()=>x.mounted.call(this.art,x.$item,x),0)}render(x=this.option){if(this.active=x,this.cache.has(x)){let E=this.cache.get(x);(0,a.inverseClass)(E,"art-current")}else{let E=(0,a.createElement)("div");this.cache.set(x,E),(0,a.addClass)(E,"art-setting-panel"),(0,a.append)(this.$parent,E),(0,a.inverseClass)(E,"art-current"),x[0]?.$parent&&this.createHeader(x[0]);for(let _=0;_({value:g,name:`aspect-ratio-${g}`,default:g===s.aspectRatio,html:p(g)})),onSelect:g=>(s.aspectRatio=g.value,g.html),mounted:()=>{v(),s.on("aspectRatio",()=>v())}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ljJTO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,icons:d,constructor:{SETTING_ITEM_WIDTH:h,FLIP:p}}=l;function v(y){return c.get((0,a.capitalize)(y))}function g(){let y=l.setting.find(`flip-${l.flip}`);l.setting.check(y)}return{width:h,name:"flip",html:c.get("Video Flip"),tooltip:v(l.flip),icon:d.flip,selector:p.map(y=>({value:y,name:`flip-${y}`,default:y===l.flip,html:v(y)})),onSelect:y=>(l.flip=y.value,y.html),mounted:()=>{g(),l.on("flip",()=>g())}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3QcSQ":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){let{i18n:l,icons:c,constructor:{SETTING_ITEM_WIDTH:d,PLAYBACK_RATE:h}}=s;function p(g){return g===1?l.get("Normal"):g.toFixed(1)}function v(){let g=s.setting.find(`playback-rate-${s.playbackRate}`);s.setting.check(g)}return{width:d,name:"playback-rate",html:l.get("Play Speed"),tooltip:p(s.playbackRate),icon:c.playbackRate,selector:h.map(g=>({value:g,name:`playback-rate-${g}`,default:g===s.playbackRate,html:p(g)})),onSelect:g=>(s.playbackRate=g.value,g.html),mounted:()=>{v(),s.on("video:ratechange",()=>v())}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eB5hg:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){let{i18n:l,icons:c,constructor:d}=s;return{width:d.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:l.get("Subtitle Offset"),icon:c.subtitle,tooltip:"0s",range:[0,-10,10,.1],onChange:h=>(s.subtitleOffset=h.range[0],`${h.range[0]}s`),mounted:(h,p)=>{s.on("subtitleOffset",v=>{p.$range.value=v,p.tooltip=`${v}s`})}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kwqbK:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{constructor(){this.name="artplayer_settings",this.settings={}}get(i){try{let a=JSON.parse(window.localStorage.getItem(this.name))||{};return i?a[i]:a}catch{return i?this.settings[i]:this.settings}}set(i,a){try{let s=Object.assign({},this.get(),{[i]:a});window.localStorage.setItem(this.name,JSON.stringify(s))}catch{this.settings[i]=a}}del(i){try{let a=this.get();delete a[i],window.localStorage.setItem(this.name,JSON.stringify(a))}catch{delete this.settings[i]}}clear(){try{window.localStorage.removeItem(this.name)}catch{this.settings={}}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],k5613:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("option-validator"),s=i.interopDefault(a),l=e("./scheme"),c=i.interopDefault(l),d=e("./utils"),h=e("./utils/component"),p=i.interopDefault(h);class v extends p.default{constructor(y){super(y),this.name="subtitle",this.option=null,this.destroyEvent=()=>null,this.init(y.option.subtitle);let S=!1;y.on("video:timeupdate",()=>{if(!this.url)return;let k=this.art.template.$video.webkitDisplayingFullscreen;typeof k=="boolean"&&k!==S&&(S=k,this.createTrack(k?"subtitles":"metadata",this.url))})}get url(){return this.art.template.$track.src}set url(y){this.switch(y)}get textTrack(){return this.art.template.$video?.textTracks?.[0]}get activeCues(){return this.textTrack?Array.from(this.textTrack.activeCues):[]}get cues(){return this.textTrack?Array.from(this.textTrack.cues):[]}style(y,S){let{$subtitle:k}=this.art.template;return typeof y=="object"?(0,d.setStyles)(k,y):(0,d.setStyle)(k,y,S)}update(){let{option:{subtitle:y},template:{$subtitle:S}}=this.art;S.innerHTML="",this.activeCues.length&&(this.art.emit("subtitleBeforeUpdate",this.activeCues),S.innerHTML=this.activeCues.map((k,C)=>k.text.split(/\r?\n/).filter(x=>x.trim()).map(x=>`
${y.escape?(0,d.escape)(x):x}
`).join("")).join(""),this.art.emit("subtitleAfterUpdate",this.activeCues))}async switch(y,S={}){let{i18n:k,notice:C,option:x}=this.art,E={...x.subtitle,...S,url:y},_=await this.init(E);return S.name&&(C.show=`${k.get("Switch Subtitle")}: ${S.name}`),_}createTrack(y,S){let{template:k,proxy:C,option:x}=this.art,{$video:E,$track:_}=k,T=(0,d.createElement)("track");T.default=!0,T.kind=y,T.src=S,T.label=x.subtitle.name||"Artplayer",T.track.mode="hidden",T.onload=()=>{this.art.emit("subtitleLoad",this.cues,this.option)},this.art.events.remove(this.destroyEvent),_.onload=null,(0,d.remove)(_),(0,d.append)(E,T),k.$track=T,this.destroyEvent=C(this.textTrack,"cuechange",()=>this.update())}async init(y){let{notice:S,template:{$subtitle:k}}=this.art;return this.textTrack?((0,s.default)(y,c.default.subtitle),y.url?(this.option=y,this.style(y.style),fetch(y.url).then(C=>C.arrayBuffer()).then(C=>{let x=new TextDecoder(y.encoding).decode(C);switch(y.type||(0,d.getExt)(y.url)){case"srt":{let E=(0,d.srtToVtt)(x),_=y.onVttLoad(E);return(0,d.vttToBlob)(_)}case"ass":{let E=(0,d.assToVtt)(x),_=y.onVttLoad(E);return(0,d.vttToBlob)(_)}case"vtt":{let E=y.onVttLoad(x);return(0,d.vttToBlob)(E)}default:return y.url}}).then(C=>(k.innerHTML="",this.url===C||(URL.revokeObjectURL(this.url),this.createTrack("metadata",C)),C)).catch(C=>{throw k.innerHTML="",S.show=C,C})):void 0):null}}n.default=v},{"option-validator":"g7VGh","./scheme":"biLjm","./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fwOA1:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("../package.json"),a=e("./utils");class s{constructor(c){this.art=c;let{option:d,constructor:h}=c;d.container instanceof Element?this.$container=d.container:(this.$container=(0,a.query)(d.container),(0,a.errorHandle)(this.$container,`No container element found by ${d.container}`)),(0,a.errorHandle)((0,a.supportsFlex)(),"The current browser does not support flex layout");let p=this.$container.tagName.toLowerCase();(0,a.errorHandle)(p==="div",`Unsupported container element type, only support 'div' but got '${p}'`),(0,a.errorHandle)(h.instances.every(v=>v.template.$container!==this.$container),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=c.id,this.init()}static get html(){return`
Player version:
${i.version}
Video url:
Video volume:
Video time:
Video duration:
Video resolution:
x
[x]
`}query(c){return(0,a.query)(c,this.$container)}init(){let{option:c}=this.art;if(c.useSSR||(this.$container.innerHTML=s.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),c.proxy){let d=c.proxy.call(this.art,this.art);(0,a.errorHandle)(d instanceof HTMLVideoElement||d instanceof HTMLCanvasElement,"Function 'option.proxy' needs to return 'HTMLVideoElement' or 'HTMLCanvasElement'"),(0,a.replaceElement)(d,this.$video),d.className="art-video",this.$video=d}c.backdrop&&(0,a.addClass)(this.$player,"art-backdrop"),a.isMobile&&(0,a.addClass)(this.$player,"art-mobile")}destroy(c){c?this.$container.innerHTML="":(0,a.addClass)(this.$player,"art-destroy")}}n.default=s},{"../package.json":"lh3R5","./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4NM7P":[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{on(i,a,s){let l=this.e||(this.e={});return(l[i]||(l[i]=[])).push({fn:a,ctx:s}),this}once(i,a,s){let l=this;function c(...d){l.off(i,c),a.apply(s,d)}return c._=a,this.on(i,c,s)}emit(i,...a){let s=((this.e||(this.e={}))[i]||[]).slice();for(let l=0;l[]},currentEpisodeIndex:{type:Number,default:0},autoNext:{type:Boolean,default:!0},headers:{type:Object,default:()=>({})},qualities:{type:Array,default:()=>[]},hasMultipleQualities:{type:Boolean,default:!1},initialQuality:{type:String,default:"默认"},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>({})}},emits:["close","error","player-change","next-episode","episode-selected","quality-change","parser-change"],setup(e,{emit:t}){yce.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2,2.5,3,4,5];const n=e,r=t,i=ue(null),a=ue(null),s=ue(null),l=ue(0),c=ue(3),d=ue(!1),h=ue(450),p=JSON.parse(localStorage.getItem("loopEnabled")||"false"),v=JSON.parse(localStorage.getItem("autoNextEnabled")||"true"),g=ue(p?!1:v),y=ue(p),S=ue(0),k=ue(null),C=ue(!1),x=ue(!1),E=ue(!1),_=ue(!1),T=ue(!1),D=ue(""),P=ue("默认"),M=ue([]),O=ue(""),L=ue(0),B=F(()=>!!n.videoUrl),j=F(()=>{L.value;const Ot=O.value||n.videoUrl;if(!Ot)return"";const bn=n.headers||{};return om(Ot,bn)}),H=F(()=>!P.value||M.value.length===0?"默认":M.value.find(bn=>bn.name===P.value)?.name||P.value||"默认"),U=F(()=>M.value.map(Ot=>({name:Ot.name||"未知",value:Ot.name,url:Ot.url}))),{showSkipSettingsDialog:K,skipIntroEnabled:Y,skipOutroEnabled:ie,skipIntroSeconds:te,skipOutroSeconds:W,skipEnabled:q,initSkipSettings:Q,resetSkipState:se,applySkipSettings:ae,applyIntroSkipImmediate:re,handleTimeUpdate:Ce,closeSkipSettingsDialog:Ve,saveSkipSettings:ge,onUserSeekStart:xe,onUserSeekEnd:Ge,onFullscreenChangeStart:tt,onFullscreenChangeEnd:Ue}=E4e({onSkipToNext:()=>{g.value&&Ne()&&$e()},getCurrentTime:()=>a.value?.video?.currentTime||0,setCurrentTime:Ot=>{a.value?.video&&(a.value.video.currentTime=Ot)},getDuration:()=>a.value?.video?.duration||0}),_e=Ot=>{if(!Ot)return!1;const kr=[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp",".ts",".m3u8",".mpd"].some(oe=>Ot.toLowerCase().includes(oe)),sr=Ot.toLowerCase().includes("m3u8")||Ot.toLowerCase().includes("mpd")||Ot.toLowerCase().includes("rtmp")||Ot.toLowerCase().includes("rtsp");return kr||sr?!0:!(Ot.includes("://")&&(Ot.includes(".html")||Ot.includes(".php")||Ot.includes(".asp")||Ot.includes(".jsp")||Ot.match(/\/[^.?#]*$/))&&!kr&&!sr)},ve=async Ot=>{if(!(!i.value||!Ot)){console.log("初始化 ArtPlayer:",Ot);try{const bn=oK(Ot);console.log(`已为ArtPlayer应用CSP策略: ${bn}`)}catch(bn){console.warn("应用CSP策略失败:",bn)}if(Jt(),se(),vt(),await dn(),h.value=rn(),i.value.style.height=`${h.value}px`,!_e(Ot)){console.log("检测到网页链接,在新窗口打开:",Ot),yt.info("检测到网页链接,正在新窗口打开..."),window.open(Ot,"_blank"),r("close");return}if(s.value?s.value.destroy():s.value=new A4e,a.value){const bn=$h(),kr={...n.headers||{},...bn.autoBypass?{}:{}},sr=om(Ot,kr);sr!==Ot&&console.log("🔄 [代理播放] switchUrl使用代理地址"),console.log("使用 switchUrl 方法切换视频源:",sr);try{await a.value.switchUrl(sr),console.log("视频源切换成功"),se(),ae();return}catch(zr){console.error("switchUrl 切换失败,回退到销毁重建方式:",zr),s.value&&s.value.destroy(),a.value.destroy(),a.value=null}}try{const bn=$h(),kr={...n.headers||{},...bn.autoBypass?{}:{}},sr=om(Ot,kr);sr!==Ot&&console.log("🔄 [代理播放] 使用代理地址播放视频");const zr=KT(sr);D.value=zr,console.log("检测到视频格式:",zr);const oe=new yce({container:i.value,url:sr,poster:n.poster,volume:.7,isLive:!1,muted:!1,autoplay:!0,pip:!0,autoSize:!1,autoMini:!0,width:"100%",height:h.value,screenshot:!0,setting:!0,loop:!1,flip:!0,playbackRate:!0,aspectRatio:!0,fullscreen:!0,fullscreenWeb:!0,subtitleOffset:!0,miniProgressBar:!0,mutex:!0,backdrop:!0,playsInline:!0,autoPlayback:!0,airplay:!0,theme:"#23ade5",lang:"zh-cn",whitelist:["*"],type:zr==="hls"?"m3u8":zr==="flv"?"flv":zr==="dash"?"mpd":"",customType:zr!=="native"?{[zr==="hls"?"m3u8":zr==="flv"?"flv":zr==="dash"?"mpd":zr]:function(ne,ee,J){const ce=$h(),Se={...n.headers||{},...ce.autoBypass?{}:{}};let ke=null;switch(zr){case"hls":ke=Cy.hls(ne,ee,Se);break;case"flv":ke=Cy.flv(ne,ee,Se);break;case"dash":ke=Cy.dash(ne,ee,Se);break}ke&&(J.customPlayer=ke,J.customPlayerFormat=zr),console.log(`${zr.toUpperCase()} 播放器加载成功`)}}:{},controls:[{position:"right",html:Ne()?"下一集":"",tooltip:Ne()?"播放下一集":"",style:Ne()?{}:{display:"none"},click:function(){$e()}},{position:"right",html:M.value.length>1?`画质: ${H.value}`:"",style:M.value.length>1?{}:{display:"none"},click:function(){un()}},{position:"right",html:n.episodes.length>1?"选集":"",tooltip:n.episodes.length>1?"选择集数":"",style:n.episodes.length>1?{}:{display:"none"},click:function(){rr()}},{position:"right",html:"关闭",tooltip:"关闭播放器",click:function(){at()}}],quality:[],subtitle:{url:"",type:"srt",encoding:"utf-8",escape:!0},contextmenu:[{html:"自定义菜单",click:function(){console.log("点击了自定义菜单")}}],layers:[{name:"episodeLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"},click:function(ne){ne.target.classList.contains("episode-layer-background")&&Dn()}},{name:"qualityLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"},click:function(ne){ne.target.classList.contains("quality-layer-background")&&An()}}],plugins:[]});oe.on("ready",()=>{console.log("ArtPlayer 准备就绪"),ae()}),oe.on("video:loadstart",()=>{se()}),oe.on("video:canplay",()=>{Jt(),ae()}),oe.on("video:timeupdate",()=>{Ce()}),oe.on("video:seeking",()=>{xe()}),oe.on("video:seeked",()=>{Ge()}),oe.on("video:playing",()=>{Jt(),vt(),re()||(ae(),setTimeout(()=>{ae()},50))}),oe.on("fullscreen",ne=>{tt(),setTimeout(()=>{Ue()},500)}),oe.on("video:error",ne=>{if(console.error("ArtPlayer 播放错误:",ne),!_e(Ot)){console.log("播放失败,检测到可能是网页链接,在新窗口打开:",Ot),yt.info("视频播放失败,检测到网页链接,正在新窗口打开..."),window.open(Ot,"_blank"),r("close");return}Ht(Ot)}),oe.on("video:ended",()=>{try{if(console.log("视频播放结束"),E.value||_.value){console.log("正在处理中,忽略重复的视频结束事件");return}if(y.value){console.log("循环播放:重新播放当前选集"),_.value=!0,setTimeout(()=>{try{r("episode-selected",n.currentEpisodeIndex)}catch(ne){console.error("循环播放触发选集事件失败:",ne),yt.error("循环播放失败,请重试"),_.value=!1}},1e3);return}g.value&&Ne()?(E.value=!0,Ee()):Ne()||yt.info("全部播放完毕")}catch(ne){console.error("视频结束事件处理失败:",ne),yt.error("视频结束处理失败"),E.value=!1,_.value=!1}}),oe.on("destroy",()=>{console.log("ArtPlayer 已销毁"),We()}),a.value=oe}catch(bn){console.error("创建 ArtPlayer 实例失败:",bn),yt.error("播放器初始化失败"),r("error","播放器初始化失败")}}},me=()=>{if(n.qualities&&n.qualities.length>0){M.value=[...n.qualities],P.value=n.initialQuality||n.qualities[0]?.name||"默认";const Ot=M.value.find(bn=>bn.name===P.value);O.value=Ot?.url||n.videoUrl}else M.value=[],P.value="默认",O.value=n.videoUrl;console.log("画质数据初始化完成:",{available:M.value,current:P.value,currentPlayingUrl:O.value})},Oe=()=>{if(a.value)try{const Ot=a.value.template.$container;if(Ot){const bn=Ot.querySelector(".art-controls-right");if(bn){const kr=bn.querySelectorAll(".art-control");for(let sr=0;sr{const bn=M.value.find(kr=>kr.name===Ot);if(!bn){console.warn("未找到指定画质:",Ot);return}console.log("切换画质:",Ot,bn),a.value&&(a.value.currentTime,a.value.paused),P.value=Ot,O.value=bn.url,Oe(),r("quality-change",bn)},Ke=Ot=>{const bn=M.value.find(kr=>kr.name===Ot);bn&&qe(bn.name)},at=()=>{console.log("关闭 ArtPlayer 播放器"),Jt(),a.value&&(a.value.hls&&(a.value.hls.destroy(),a.value.hls=null),a.value.destroy(),a.value=null),r("close")},ft=Ot=>{r("player-change",Ot)},ct=Ot=>{r("parser-change",Ot)},wt=Ot=>{console.log("代理播放地址变更:",Ot);try{const bn=JSON.parse(localStorage.getItem("addressSettings")||"{}");Ot==="disabled"?bn.proxyPlayEnabled=!1:(bn.proxyPlayEnabled=!0,bn.proxyPlay=Ot),localStorage.setItem("addressSettings",JSON.stringify(bn)),window.dispatchEvent(new CustomEvent("addressSettingsChanged")),n.videoUrl&&dn(()=>{ve(n.videoUrl)})}catch(bn){console.error("保存代理播放设置失败:",bn)}},Ct=()=>{K.value=!0},Rt=Ot=>{ge(Ot),yt.success("片头片尾设置已保存"),Ve()},Ht=Ot=>{d.value||(l.value{if(a.value)try{const bn=n.headers||{},kr=om(Ot,bn);console.log("重连使用URL:",kr),kr!==Ot&&console.log("🔄 [代理播放] 重连时使用代理地址"),a.value.switchUrl(kr),d.value=!1}catch(bn){console.error("重连时出错:",bn),d.value=!1,Ht(Ot)}},2e3*l.value)):(console.error("ArtPlayer 重连次数已达上限,停止重连"),yt.error(`视频播放失败,已重试 ${c.value} 次,请检查视频链接或网络连接`),r("error","视频播放失败,重连次数已达上限"),l.value=0,d.value=!1))},Jt=()=>{l.value=0,d.value=!1},rn=()=>{if(!i.value)return 450;const Ot=i.value.offsetWidth;if(Ot===0)return 450;const bn=16/9;let kr=Ot/bn;const sr=300,zr=Math.min(window.innerHeight*.7,600);return kr=Math.max(sr,Math.min(kr,zr)),console.log(`容器宽度: ${Ot}px, 计算高度: ${kr}px`),Math.round(kr)},vt=()=>{E.value=!1,_.value=!1},Ne=()=>n.episodes.length>0&&n.currentEpisodeIndexNe()?n.episodes[n.currentEpisodeIndex+1]:null,Ee=()=>{!g.value||!Ne()||(console.log("开始自动下一集"),x.value?(S.value=10,C.value=!0,k.value=setInterval(()=>{S.value--,S.value<=0&&(clearInterval(k.value),k.value=null,C.value=!1,$e())},1e3)):$e())},We=()=>{k.value&&(clearInterval(k.value),k.value=null),S.value=0,C.value=!1,vt(),console.log("用户取消自动下一集")},$e=()=>{if(!Ne()){yt.info("已经是最后一集了"),vt();return}Me(),We(),vt(),r("next-episode",n.currentEpisodeIndex+1)},dt=()=>{g.value=!g.value,localStorage.setItem("autoNextEnabled",JSON.stringify(g.value)),g.value&&(y.value=!1,localStorage.setItem("loopEnabled","false")),g.value||We()},Qe=()=>{y.value=!y.value,localStorage.setItem("loopEnabled",JSON.stringify(y.value)),y.value&&(g.value=!1,localStorage.setItem("autoNextEnabled","false"),We()),console.log("循环播放开关:",y.value?"开启":"关闭")},Le=()=>{x.value=!x.value,console.log("倒计时开关:",x.value?"开启":"关闭"),x.value||We()},ht=()=>{T.value=!T.value},Vt=()=>{T.value=!1},Ut=()=>!n.episodes||n.episodes.length===0?'
':` +`)}`}i.defineInteropFlag(n),i.export(n,"srtToVtt",()=>a),i.export(n,"vttToBlob",()=>s),i.export(n,"assToVtt",()=>l)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f7gsx:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(c=0){return new Promise(d=>setTimeout(d,c))}function s(c,d){let h;return function(...p){let v=()=>(h=null,c.apply(this,p));clearTimeout(h),h=setTimeout(v,d)}}function l(c,d){let h=!1;return function(...p){h||(c.apply(this,p),h=!0,setTimeout(()=>{h=!1},d))}}i.defineInteropFlag(n),i.export(n,"sleep",()=>a),i.export(n,"debounce",()=>s),i.export(n,"throttle",()=>l)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],idCEj:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("option-validator"),s=i.interopDefault(a),l=e("../scheme"),c=e("./dom"),d=e("./error");n.default=class{constructor(h){this.id=0,this.art=h,this.cache=new Map,this.add=this.add.bind(this),this.remove=this.remove.bind(this),this.update=this.update.bind(this)}get show(){return(0,c.hasClass)(this.art.template.$player,`art-${this.name}-show`)}set show(h){let{$player:p}=this.art.template,v=`art-${this.name}-show`;h?(0,c.addClass)(p,v):(0,c.removeClass)(p,v),this.art.emit(this.name,h)}toggle(){this.show=!this.show}add(h){let p=typeof h=="function"?h(this.art):h;if(p.html=p.html||"",(0,s.default)(p,l.ComponentOption),!this.$parent||!this.name||p.disable)return;let v=p.name||`${this.name}${this.id}`,g=this.cache.get(v);(0,d.errorHandle)(!g,`Can't add an existing [${v}] to the [${this.name}]`),this.id+=1;let y=(0,c.createElement)("div");(0,c.addClass)(y,`art-${this.name}`),(0,c.addClass)(y,`art-${this.name}-${v}`);let S=Array.from(this.$parent.children);y.dataset.index=p.index||this.id;let k=S.find(x=>Number(x.dataset.index)>=Number(y.dataset.index));k?k.insertAdjacentElement("beforebegin",y):(0,c.append)(this.$parent,y),p.html&&(0,c.append)(y,p.html),p.style&&(0,c.setStyles)(y,p.style),p.tooltip&&(0,c.tooltip)(y,p.tooltip);let C=[];if(p.click){let x=this.art.events.proxy(y,"click",E=>{E.preventDefault(),p.click.call(this.art,this,E)});C.push(x)}return p.selector&&["left","right"].includes(p.position)&&this.selector(p,y,C),this[v]=y,this.cache.set(v,{$ref:y,events:C,option:p}),p.mounted&&p.mounted.call(this.art,y),y}remove(h){let p=this.cache.get(h);(0,d.errorHandle)(p,`Can't find [${h}] from the [${this.name}]`),p.option.beforeUnmount&&p.option.beforeUnmount.call(this.art,p.$ref);for(let v=0;vg);var a=e("../utils");let s="array",l="boolean",c="string",d="number",h="object",p="function";function v(y,S,k){return(0,a.errorHandle)(S===c||S===d||y instanceof Element,`${k.join(".")} require '${c}' or 'Element' type`)}let g={html:v,disable:`?${l}`,name:`?${c}`,index:`?${d}`,style:`?${h}`,click:`?${p}`,mounted:`?${p}`,tooltip:`?${c}|${d}`,width:`?${d}`,selector:`?${s}`,onSelect:`?${p}`,switch:`?${l}`,onSwitch:`?${p}`,range:`?${s}`,onRange:`?${p}`,onChange:`?${p}`};n.default={id:c,container:v,url:c,poster:c,type:c,theme:c,lang:c,volume:d,isLive:l,muted:l,autoplay:l,autoSize:l,autoMini:l,loop:l,flip:l,playbackRate:l,aspectRatio:l,screenshot:l,setting:l,hotkey:l,pip:l,mutex:l,backdrop:l,fullscreen:l,fullscreenWeb:l,subtitleOffset:l,miniProgressBar:l,useSSR:l,playsInline:l,lock:l,gesture:l,fastForward:l,autoPlayback:l,autoOrientation:l,airplay:l,proxy:`?${p}`,plugins:[p],layers:[g],contextmenu:[g],settings:[g],controls:[{...g,position:(y,S,k)=>{let C=["top","left","right"];return(0,a.errorHandle)(C.includes(y),`${k.join(".")} only accept ${C.toString()} as parameters`)}}],quality:[{default:`?${l}`,html:c,url:c}],highlight:[{time:d,text:c}],thumbnails:{url:c,number:d,column:d,width:d,height:d,scale:d},subtitle:{url:c,name:c,type:c,style:h,escape:l,encoding:c,onVttLoad:p},moreVideoAttr:h,i18n:h,icons:h,cssVar:h,customType:h}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6XHP2":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{ASPECT_RATIO:h}}=c,p=h.map(v=>`${v==="default"?d.get("Default"):v}`).join("");return{...l,html:`${d.get("Aspect Ratio")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.aspectRatio=y,v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="default"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("aspectRatio",y=>{let S=(0,a.queryAll)("span",v).find(k=>k.dataset.value===y);S&&(0,a.inverseClass)(S,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eF6AX:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){return l=>({...s,html:l.i18n.get("Close"),click:c=>{c.show=!1}})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7Wg1P":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{FLIP:h}}=c,p=h.map(v=>`${d.get((0,a.capitalize)(v))}`).join("");return{...l,html:`${d.get("Video Flip")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.flip=y.toLowerCase(),v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="normal"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("flip",y=>{let S=(0,a.queryAll)("span",v).find(k=>k.dataset.value===y);S&&(0,a.inverseClass)(S,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fjRnU:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){return l=>({...s,html:l.i18n.get("Video Info"),click:c=>{l.info.show=!0,c.show=!1}})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],hm1DY:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{PLAYBACK_RATE:h}}=c,p=h.map(v=>`${v===1?d.get("Normal"):v.toFixed(1)}`).join("");return{...l,html:`${d.get("Play Speed")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.playbackRate=Number(y),v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="1"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("video:ratechange",()=>{let y=(0,a.queryAll)("span",v).find(S=>Number(S.dataset.value)===c.playbackRate);y&&(0,a.inverseClass)(y,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aJBeL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>function(s){return{...s,html:`ArtPlayer ${a.version}`}});var a=e("../../package.json")},{"../../package.json":"lh3R5","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dp1yk:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("../utils/component"),l=i.interopDefault(s),c=e("./airplay"),d=i.interopDefault(c),h=e("./fullscreen"),p=i.interopDefault(h),v=e("./fullscreenWeb"),g=i.interopDefault(v),y=e("./pip"),S=i.interopDefault(y),k=e("./playAndPause"),C=i.interopDefault(k),x=e("./progress"),E=i.interopDefault(x),_=e("./screenshot"),T=i.interopDefault(_),D=e("./setting"),P=i.interopDefault(D),M=e("./time"),O=i.interopDefault(M),L=e("./volume"),B=i.interopDefault(L);class j extends l.default{constructor(U){super(U),this.isHover=!1,this.name="control",this.timer=Date.now();let{constructor:K}=U,{$player:Y,$bottom:ie}=this.art.template;U.on("mousemove",()=>{a.isMobile||(this.show=!0)}),U.on("click",()=>{a.isMobile?this.toggle():this.show=!0}),U.on("document:mousemove",te=>{this.isHover=(0,a.includeFromEvent)(te,ie)}),U.on("video:timeupdate",()=>{!U.setting.show&&!this.isHover&&!U.isInput&&U.playing&&this.show&&Date.now()-this.timer>=K.CONTROL_HIDE_TIME&&(this.show=!1)}),U.on("control",te=>{te?((0,a.removeClass)(Y,"art-hide-cursor"),(0,a.addClass)(Y,"art-hover"),this.timer=Date.now()):((0,a.addClass)(Y,"art-hide-cursor"),(0,a.removeClass)(Y,"art-hover"))}),this.init()}init(){let{option:U}=this.art;U.isLive||this.add((0,E.default)({name:"progress",position:"top",index:10})),this.add({name:"thumbnails",position:"top",index:20}),this.add((0,C.default)({name:"playAndPause",position:"left",index:10})),this.add((0,B.default)({name:"volume",position:"left",index:20})),U.isLive||this.add((0,O.default)({name:"time",position:"left",index:30})),U.quality.length&&(0,a.sleep)().then(()=>{this.art.quality=U.quality}),U.screenshot&&!a.isMobile&&this.add((0,T.default)({name:"screenshot",position:"right",index:20})),U.setting&&this.add((0,P.default)({name:"setting",position:"right",index:30})),U.pip&&this.add((0,S.default)({name:"pip",position:"right",index:40})),U.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&this.add((0,d.default)({name:"airplay",position:"right",index:50})),U.fullscreenWeb&&this.add((0,g.default)({name:"fullscreenWeb",position:"right",index:60})),U.fullscreen&&this.add((0,p.default)({name:"fullscreen",position:"right",index:70}));for(let K=0;KU.selector}),(0,a.def)(se,"$control_item",{get:()=>ae}),(0,a.def)(se,"$control_value",{get:()=>te})}let q=ie(W,"click",async Q=>{let se=(0,a.getComposedPath)(Q),ae=U.selector.find(re=>re.$control_item===se.find(Ce=>re.$control_item===Ce));this.check(ae),U.onSelect&&(te.innerHTML=await U.onSelect.call(this.art,ae,ae.$control_item,Q))});Y.push(q)}}n.default=j},{"../utils":"aBlEo","../utils/component":"idCEj","./airplay":"amOzz","./fullscreen":"3GuBU","./fullscreenWeb":"jj1KV","./pip":"jMeHN","./playAndPause":"u3h8M","./progress":"1XZSS","./screenshot":"dIscA","./setting":"aqA0g","./time":"ihweO","./volume":"fJVWn","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],amOzz:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("AirPlay"),mounted:d=>{let{proxy:h,icons:p}=c;(0,a.append)(d,p.airplay),h(d,"click",()=>c.airplay())}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3GuBU":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Fullscreen"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.fullscreenOn),y=(0,a.append)(d,p.fullscreenOff);(0,a.setStyle)(y,"display","none"),h(d,"click",()=>{c.fullscreen=!c.fullscreen}),c.on("fullscreen",S=>{S?((0,a.tooltip)(d,v.get("Exit Fullscreen")),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","inline-flex")):((0,a.tooltip)(d,v.get("Fullscreen")),(0,a.setStyle)(g,"display","inline-flex"),(0,a.setStyle)(y,"display","none"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jj1KV:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Web Fullscreen"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.fullscreenWebOn),y=(0,a.append)(d,p.fullscreenWebOff);(0,a.setStyle)(y,"display","none"),h(d,"click",()=>{c.fullscreenWeb=!c.fullscreenWeb}),c.on("fullscreenWeb",S=>{S?((0,a.tooltip)(d,v.get("Exit Web Fullscreen")),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","inline-flex")):((0,a.tooltip)(d,v.get("Web Fullscreen")),(0,a.setStyle)(g,"display","inline-flex"),(0,a.setStyle)(y,"display","none"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jMeHN:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("PIP Mode"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c;(0,a.append)(d,p.pip),h(d,"click",()=>{c.pip=!c.pip}),c.on("pip",g=>{(0,a.tooltip)(d,v.get(g?"Exit PIP Mode":"PIP Mode"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],u3h8M:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.play),y=(0,a.append)(d,p.pause);function S(){(0,a.setStyle)(g,"display","flex"),(0,a.setStyle)(y,"display","none")}function k(){(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","flex")}(0,a.tooltip)(g,v.get("Play")),(0,a.tooltip)(y,v.get("Pause")),h(g,"click",()=>{c.play()}),h(y,"click",()=>{c.pause()}),c.playing?k():S(),c.on("video:playing",()=>{k()}),c.on("video:pause",()=>{S()})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"1XZSS":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"getPosFromEvent",()=>s),i.export(n,"setCurrentTime",()=>l),i.export(n,"default",()=>c);var a=e("../utils");function s(d,h){let{$progress:p}=d.template,{left:v}=(0,a.getRect)(p),g=a.isMobile?h.touches[0].clientX:h.clientX,y=(0,a.clamp)(g-v,0,p.clientWidth),S=y/p.clientWidth*d.duration,k=(0,a.secondToTime)(S),C=(0,a.clamp)(y/p.clientWidth,0,1);return{second:S,time:k,width:y,percentage:C}}function l(d,h){if(d.isRotate){let p=h.touches[0].clientY/d.height,v=p*d.duration;d.emit("setBar","played",p,h),d.seek=v}else{let{second:p,percentage:v}=s(d,h);d.emit("setBar","played",v,h),d.seek=p}}function c(d){return h=>{let{icons:p,option:v,proxy:g}=h;return{...d,html:'
',mounted:y=>{let S=null,k=!1,C=(0,a.query)(".art-progress-hover",y),x=(0,a.query)(".art-progress-loaded",y),E=(0,a.query)(".art-progress-played",y),_=(0,a.query)(".art-progress-highlight",y),T=(0,a.query)(".art-progress-indicator",y),D=(0,a.query)(".art-progress-tip",y);function P(M,O){let{width:L,time:B}=O||s(h,M);D.textContent=B;let j=D.clientWidth;L<=j/2?(0,a.setStyle)(D,"left",0):L>y.clientWidth-j/2?(0,a.setStyle)(D,"left",`${y.clientWidth-j}px`):(0,a.setStyle)(D,"left",`${L-j/2}px`)}p.indicator?(0,a.append)(T,p.indicator):(0,a.setStyle)(T,"backgroundColor","var(--art-theme)"),h.on("setBar",function(M,O,L){let B=M==="played"&&L&&a.isMobile;M==="loaded"&&(0,a.setStyle)(x,"width",`${100*O}%`),M==="hover"&&(0,a.setStyle)(C,"width",`${100*O}%`),M==="played"&&((0,a.setStyle)(E,"width",`${100*O}%`),(0,a.setStyle)(T,"left",`${100*O}%`)),B&&((0,a.setStyle)(D,"display","flex"),P(L,{width:y.clientWidth*O,time:(0,a.secondToTime)(O*h.duration)}),clearTimeout(S),S=setTimeout(()=>{(0,a.setStyle)(D,"display","none")},500))}),h.on("video:loadedmetadata",function(){_.textContent="";for(let M=0;M`;(0,a.append)(_,B)}}),h.constructor.USE_RAF?h.on("raf",()=>{h.emit("setBar","played",h.played),h.emit("setBar","loaded",h.loaded)}):(h.on("video:timeupdate",()=>{h.emit("setBar","played",h.played)}),h.on("video:progress",()=>{h.emit("setBar","loaded",h.loaded)}),h.on("video:ended",()=>{h.emit("setBar","played",1)})),h.emit("setBar","loaded",h.loaded||0),a.isMobile||(g(y,"click",M=>{M.target!==T&&l(h,M)}),g(y,"mousemove",M=>{let{percentage:O}=s(h,M);if(h.emit("setBar","hover",O,M),(0,a.setStyle)(D,"display","flex"),(0,a.includeFromEvent)(M,_)){let{width:L}=s(h,M),{text:B}=M.target.dataset;D.textContent=B;let j=D.clientWidth;L<=j/2?(0,a.setStyle)(D,"left",0):L>y.clientWidth-j/2?(0,a.setStyle)(D,"left",`${y.clientWidth-j}px`):(0,a.setStyle)(D,"left",`${L-j/2}px`)}else P(M)}),g(y,"mouseleave",M=>{(0,a.setStyle)(D,"display","none"),h.emit("setBar","hover",0,M)}),g(y,"mousedown",M=>{k=M.button===0}),h.on("document:mousemove",M=>{if(k){let{second:O,percentage:L}=s(h,M);h.emit("setBar","played",L,M),h.seek=O}}),h.on("document:mouseup",()=>{k&&(k=!1)}))}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dIscA:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Screenshot"),mounted:d=>{let{proxy:h,icons:p}=c;(0,a.append)(d,p.screenshot),h(d,"click",()=>{c.screenshot()})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aqA0g:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Show Setting"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c;(0,a.append)(d,p.setting),h(d,"click",()=>{c.setting.toggle(),c.setting.resize()}),c.on("setting",g=>{(0,a.tooltip)(d,v.get(g?"Hide Setting":"Show Setting"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ihweO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,style:a.isMobile?{fontSize:"12px",padding:"0 5px"}:{cursor:"auto",padding:"0 10px"},mounted:d=>{function h(){let v=`${(0,a.secondToTime)(c.currentTime)} / ${(0,a.secondToTime)(c.duration)}`;v!==d.textContent&&(d.textContent=v)}h();let p=["video:loadedmetadata","video:timeupdate","video:progress"];for(let v=0;vs);var a=e("../utils");function s(l){return c=>({...l,mounted:d=>{let{proxy:h,icons:p}=c,v=(0,a.append)(d,p.volume),g=(0,a.append)(d,p.volumeClose),y=(0,a.append)(d,'
'),S=(0,a.append)(y,'
'),k=(0,a.append)(S,'
'),C=(0,a.append)(S,'
'),x=(0,a.append)(C,'
'),E=(0,a.append)(x,'
'),_=(0,a.append)(C,'
');function T(P){let{top:M,height:O}=(0,a.getRect)(C);return 1-(P.clientY-M)/O}function D(){if(c.muted||c.volume===0)(0,a.setStyle)(v,"display","none"),(0,a.setStyle)(g,"display","flex"),(0,a.setStyle)(_,"top","100%"),(0,a.setStyle)(E,"top","100%"),k.textContent=0;else{let P=100*c.volume;(0,a.setStyle)(v,"display","flex"),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(_,"top",`${100-P}%`),(0,a.setStyle)(E,"top",`${100-P}%`),k.textContent=Math.floor(P)}}if(D(),c.on("video:volumechange",D),h(v,"click",()=>{c.muted=!0}),h(g,"click",()=>{c.muted=!1}),a.isMobile)(0,a.setStyle)(y,"display","none");else{let P=!1;h(C,"mousedown",M=>{P=M.button===0,c.volume=T(M)}),c.on("document:mousemove",M=>{P&&(c.muted=!1,c.volume=T(M))}),c.on("document:mouseup",()=>{P&&(P=!1)})}}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jmVSD:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./clickInit"),s=i.interopDefault(a),l=e("./gestureInit"),c=i.interopDefault(l),d=e("./globalInit"),h=i.interopDefault(d),p=e("./hoverInit"),v=i.interopDefault(p),g=e("./moveInit"),y=i.interopDefault(g),S=e("./resizeInit"),k=i.interopDefault(S),C=e("./updateInit"),x=i.interopDefault(C),E=e("./viewInit"),_=i.interopDefault(E);n.default=class{constructor(T){this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),(0,s.default)(T,this),(0,v.default)(T,this),(0,y.default)(T,this),(0,k.default)(T,this),(0,c.default)(T,this),(0,_.default)(T,this),(0,h.default)(T,this),(0,x.default)(T,this)}proxy(T,D,P,M={}){if(Array.isArray(D))return D.map(L=>this.proxy(T,L,P,M));T.addEventListener(D,P,M);let O=()=>T.removeEventListener(D,P,M);return this.destroyEvents.push(O),O}hover(T,D,P){D&&this.proxy(T,"mouseenter",D),P&&this.proxy(T,"mouseleave",P)}remove(T){let D=this.destroyEvents.indexOf(T);D>-1&&(T(),this.destroyEvents.splice(D,1))}destroy(){for(let T=0;Ts);var a=e("../utils");function s(l,c){let{constructor:d,template:{$player:h,$video:p}}=l;function v(y){(0,a.includeFromEvent)(y,h)?(l.isInput=y.target.tagName==="INPUT",l.isFocus=!0,l.emit("focus",y)):(l.isInput=!1,l.isFocus=!1,l.emit("blur",y))}l.on("document:click",v),l.on("document:contextmenu",v);let g=[];c.proxy(p,"click",y=>{let S=Date.now();g.push(S);let{MOBILE_CLICK_PLAY:k,DBCLICK_TIME:C,MOBILE_DBCLICK_PLAY:x,DBCLICK_FULLSCREEN:E}=d,_=g.filter(T=>S-T<=C);switch(_.length){case 1:l.emit("click",y),a.isMobile?!l.isLock&&k&&l.toggle():l.toggle(),g=_;break;case 2:l.emit("dblclick",y),a.isMobile?!l.isLock&&x&&l.toggle():E&&(l.fullscreen=!l.fullscreen),g=[];break;default:g=[]}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"9wEzB":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>l);var a=e("../control/progress"),s=e("../utils");function l(c,d){if(s.isMobile&&!c.option.isLive){let{$video:h,$progress:p}=c.template,v=null,g=!1,y=0,S=0,k=0,C=E=>{if(E.touches.length===1&&!c.isLock){v===p&&(0,a.setCurrentTime)(c,E),g=!0;let{pageX:_,pageY:T}=E.touches[0];y=_,S=T,k=c.currentTime}},x=E=>{if(E.touches.length===1&&g&&c.duration){let{pageX:_,pageY:T}=E.touches[0],D=(function(O,L,B,j){let H=L-j,U=B-O,K=0;if(2>Math.abs(U)&&2>Math.abs(H))return K;let Y=180*Math.atan2(H,U)/Math.PI;return Y>=-45&&Y<45?K=4:Y>=45&&Y<135?K=1:Y>=-135&&Y<-45?K=2:(Y>=135&&Y<=180||Y>=-180&&Y<-135)&&(K=3),K})(y,S,_,T),P=[3,4].includes(D),M=[1,2].includes(D);if(P&&!c.isRotate||M&&c.isRotate){let O=(0,s.clamp)((_-y)/c.width,-1,1),L=(0,s.clamp)((T-S)/c.height,-1,1),B=c.isRotate?L:O,j=v===h?c.constructor.TOUCH_MOVE_RATIO:1,H=(0,s.clamp)(k+c.duration*B*j,0,c.duration);c.seek=H,c.emit("setBar","played",(0,s.clamp)(H/c.duration,0,1),E),c.notice.show=`${(0,s.secondToTime)(H)} / ${(0,s.secondToTime)(c.duration)}`}}};c.option.gesture&&(d.proxy(h,"touchstart",E=>{v=h,C(E)}),d.proxy(h,"touchmove",x)),d.proxy(p,"touchstart",E=>{v=p,C(E)}),d.proxy(p,"touchmove",x),c.on("document:touchend",()=>{g&&(y=0,S=0,k=0,g=!1,v=null)})}}},{"../control/progress":"1XZSS","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ikBrS:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s,l){let c=["click","mouseup","keydown","touchend","touchmove","mousemove","pointerup","contextmenu","pointermove","visibilitychange","webkitfullscreenchange"],d=["resize","scroll","orientationchange"],h=[];function p(v={}){for(let y=0;y{let S=v.document||g.ownerDocument||document,k=l.proxy(S,y,C=>{s.emit(`document:${y}`,C)});h.push(k)}),d.forEach(y=>{let S=v.window||g.ownerDocument?.defaultView||window,k=l.proxy(S,y,C=>{s.emit(`window:${y}`,C)});h.push(k)})}p(),l.bindGlobalEvents=p}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jwNq0:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l,c){let{$player:d}=l.template;c.hover(d,h=>{(0,a.addClass)(d,"art-hover"),l.emit("hover",!0,h)},h=>{(0,a.removeClass)(d,"art-hover"),l.emit("hover",!1,h)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eqSsP:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s,l){let{$player:c}=s.template;l.proxy(c,"mousemove",d=>{s.emit("mousemove",d)})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"42JNz":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l,c){let{option:d,constructor:h}=l;l.on("resize",()=>{let{aspectRatio:v,notice:g}=l;l.state==="standard"&&d.autoSize&&l.autoSize(),l.aspectRatio=v,g.show=""});let p=(0,a.debounce)(()=>l.emit("resize"),h.RESIZE_TIME);l.on("window:orientationchange",()=>p()),l.on("window:resize",()=>p()),screen&&screen.orientation&&screen.orientation.onchange&&c.proxy(screen.orientation,"change",()=>p())}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7kM1M":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){if(s.constructor.USE_RAF){let l=null;(function c(){s.playing&&s.emit("raf"),s.isDestroy||(l=requestAnimationFrame(c))})(),s.on("destroy",()=>{cancelAnimationFrame(l)})}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"2IW9m":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,constructor:d,template:{$container:h}}=l,p=(0,a.throttle)(()=>{l.emit("view",(0,a.isInViewport)(h,d.SCROLL_GAP))},d.SCROLL_TIME);l.on("window:scroll",()=>p()),l.on("view",v=>{c.autoMini&&(l.mini=!v)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dswts:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("./utils");n.default=class{constructor(a){this.art=a,this.keys={},a.option.hotkey&&!i.isMobile&&this.init()}init(){let{constructor:a}=this.art;this.add("Escape",()=>{this.art.fullscreenWeb&&(this.art.fullscreenWeb=!1)}),this.add("Space",()=>{this.art.toggle()}),this.add("ArrowLeft",()=>{this.art.backward=a.SEEK_STEP}),this.add("ArrowUp",()=>{this.art.volume+=a.VOLUME_STEP}),this.add("ArrowRight",()=>{this.art.forward=a.SEEK_STEP}),this.add("ArrowDown",()=>{this.art.volume-=a.VOLUME_STEP}),this.art.on("document:keydown",s=>{if(this.art.isFocus){let l=document.activeElement.tagName.toUpperCase(),c=document.activeElement.getAttribute("contenteditable");if(l!=="INPUT"&&l!=="TEXTAREA"&&c!==""&&c!=="true"&&!s.altKey&&!s.ctrlKey&&!s.metaKey&&!s.shiftKey){let d=this.keys[s.code];if(d){s.preventDefault();for(let h=0;h(0,Rt.getIcon)(rn,Jt[rn])})}}},{"bundle-text:./airplay.svg":"gkZgZ","bundle-text:./arrow-left.svg":"kQyD4","bundle-text:./arrow-right.svg":"64ztm","bundle-text:./aspect-ratio.svg":"72LvA","bundle-text:./check.svg":"4QmBo","bundle-text:./close.svg":"j1hoe","bundle-text:./config.svg":"hNZaT","bundle-text:./error.svg":"dKh4l","bundle-text:./flip.svg":"lIEIE","bundle-text:./fullscreen-off.svg":"1533e","bundle-text:./fullscreen-on.svg":"76ut3","bundle-text:./fullscreen-web-off.svg":"3NzMk","bundle-text:./fullscreen-web-on.svg":"12xHc","bundle-text:./loading.svg":"iVcUF","bundle-text:./lock.svg":"1J4so","bundle-text:./pause.svg":"1KgkK","bundle-text:./pip.svg":"4h4tM","bundle-text:./play.svg":"jecAY","bundle-text:./playback-rate.svg":"anPe9","bundle-text:./screenshot.svg":"9BPYQ","bundle-text:./setting.svg":"hsI9k","bundle-text:./state.svg":"gr1ZU","bundle-text:./switch-off.svg":"6kdAr","bundle-text:./switch-on.svg":"ksdMo","bundle-text:./unlock.svg":"iz5Qc","bundle-text:./volume-close.svg":"3OZoa","bundle-text:./volume.svg":"hRYA4","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],gkZgZ:[function(e,t,n,r){t.exports=''},{}],kQyD4:[function(e,t,n,r){t.exports=''},{}],"64ztm":[function(e,t,n,r){t.exports=''},{}],"72LvA":[function(e,t,n,r){t.exports=''},{}],"4QmBo":[function(e,t,n,r){t.exports=''},{}],j1hoe:[function(e,t,n,r){t.exports=''},{}],hNZaT:[function(e,t,n,r){t.exports=''},{}],dKh4l:[function(e,t,n,r){t.exports=''},{}],lIEIE:[function(e,t,n,r){t.exports=''},{}],"1533e":[function(e,t,n,r){t.exports=''},{}],"76ut3":[function(e,t,n,r){t.exports=''},{}],"3NzMk":[function(e,t,n,r){t.exports=''},{}],"12xHc":[function(e,t,n,r){t.exports=''},{}],iVcUF:[function(e,t,n,r){t.exports=''},{}],"1J4so":[function(e,t,n,r){t.exports=''},{}],"1KgkK":[function(e,t,n,r){t.exports=''},{}],"4h4tM":[function(e,t,n,r){t.exports=''},{}],jecAY:[function(e,t,n,r){t.exports=''},{}],anPe9:[function(e,t,n,r){t.exports=''},{}],"9BPYQ":[function(e,t,n,r){t.exports=''},{}],hsI9k:[function(e,t,n,r){t.exports=''},{}],gr1ZU:[function(e,t,n,r){t.exports=''},{}],"6kdAr":[function(e,t,n,r){t.exports=''},{}],ksdMo:[function(e,t,n,r){t.exports=''},{}],iz5Qc:[function(e,t,n,r){t.exports=''},{}],"3OZoa":[function(e,t,n,r){t.exports=''},{}],hRYA4:[function(e,t,n,r){t.exports=''},{}],kZ0F8:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./utils"),s=e("./utils/component"),l=i.interopDefault(s);class c extends l.default{constructor(h){super(h),this.name="info",a.isMobile||this.init()}init(){let{proxy:h,constructor:p,template:{$infoPanel:v,$infoClose:g,$video:y}}=this.art;h(g,"click",()=>{this.show=!1});let S=null,k=(0,a.queryAll)("[data-video]",v)||[];this.art.on("destroy",()=>clearTimeout(S)),(function C(){for(let x=0;x{(0,a.setStyle)(y,"display","none"),(0,a.setStyle)(S,"display",null)}),g.proxy(p.$state,"click",()=>h.play())}}n.default=c},{"./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fPVaU:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("./utils");n.default=class{constructor(a){this.art=a,this.timer=null}set show(a){let{constructor:s,template:{$player:l,$noticeInner:c}}=this.art;a?(c.textContent=a instanceof Error?a.message.trim():a,(0,i.addClass)(l,"art-notice-show"),clearTimeout(this.timer),this.timer=setTimeout(()=>{c.textContent="",(0,i.removeClass)(l,"art-notice-show")},s.NOTICE_TIME)):(0,i.removeClass)(l,"art-notice-show")}get show(){let{template:{$player:a}}=this.art;return a.classList.contains("art-notice-show")}}},{"./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],uR0Sw:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./airplayMix"),s=i.interopDefault(a),l=e("./aspectRatioMix"),c=i.interopDefault(l),d=e("./attrMix"),h=i.interopDefault(d),p=e("./autoHeightMix"),v=i.interopDefault(p),g=e("./autoSizeMix"),y=i.interopDefault(g),S=e("./cssVarMix"),k=i.interopDefault(S),C=e("./currentTimeMix"),x=i.interopDefault(C),E=e("./durationMix"),_=i.interopDefault(E),T=e("./eventInit"),D=i.interopDefault(T),P=e("./flipMix"),M=i.interopDefault(P),O=e("./fullscreenMix"),L=i.interopDefault(O),B=e("./fullscreenWebMix"),j=i.interopDefault(B),H=e("./loadedMix"),U=i.interopDefault(H),K=e("./miniMix"),Y=i.interopDefault(K),ie=e("./optionInit"),te=i.interopDefault(ie),W=e("./pauseMix"),q=i.interopDefault(W),Q=e("./pipMix"),se=i.interopDefault(Q),ae=e("./playbackRateMix"),re=i.interopDefault(ae),Ce=e("./playedMix"),Ve=i.interopDefault(Ce),ge=e("./playingMix"),xe=i.interopDefault(ge),Ge=e("./playMix"),tt=i.interopDefault(Ge),Ue=e("./posterMix"),_e=i.interopDefault(Ue),ve=e("./qualityMix"),me=i.interopDefault(ve),Oe=e("./rectMix"),qe=i.interopDefault(Oe),Ke=e("./screenshotMix"),at=i.interopDefault(Ke),ft=e("./seekMix"),ct=i.interopDefault(ft),wt=e("./stateMix"),Ct=i.interopDefault(wt),Rt=e("./subtitleOffsetMix"),Ht=i.interopDefault(Rt),Jt=e("./switchMix"),rn=i.interopDefault(Jt),vt=e("./themeMix"),Fe=i.interopDefault(vt),Me=e("./thumbnailsMix"),Ee=i.interopDefault(Me),We=e("./toggleMix"),$e=i.interopDefault(We),dt=e("./typeMix"),Qe=i.interopDefault(dt),Le=e("./urlMix"),ht=i.interopDefault(Le),Vt=e("./volumeMix"),Ut=i.interopDefault(Vt);n.default=class{constructor(Lt){(0,ht.default)(Lt),(0,h.default)(Lt),(0,tt.default)(Lt),(0,q.default)(Lt),(0,$e.default)(Lt),(0,ct.default)(Lt),(0,Ut.default)(Lt),(0,x.default)(Lt),(0,_.default)(Lt),(0,rn.default)(Lt),(0,re.default)(Lt),(0,c.default)(Lt),(0,at.default)(Lt),(0,L.default)(Lt),(0,j.default)(Lt),(0,se.default)(Lt),(0,U.default)(Lt),(0,Ve.default)(Lt),(0,xe.default)(Lt),(0,y.default)(Lt),(0,qe.default)(Lt),(0,M.default)(Lt),(0,Y.default)(Lt),(0,_e.default)(Lt),(0,v.default)(Lt),(0,k.default)(Lt),(0,Fe.default)(Lt),(0,Qe.default)(Lt),(0,Ct.default)(Lt),(0,Ht.default)(Lt),(0,s.default)(Lt),(0,me.default)(Lt),(0,Ee.default)(Lt),(0,D.default)(Lt),(0,te.default)(Lt)}}},{"./airplayMix":"d8BTB","./aspectRatioMix":"aQNJl","./attrMix":"5DA9e","./autoHeightMix":"1swKn","./autoSizeMix":"lSbiD","./cssVarMix":"32Hp1","./currentTimeMix":"kfZbu","./durationMix":"eV1ag","./eventInit":"f8NQq","./flipMix":"ea3Qm","./fullscreenMix":"ffXE3","./fullscreenWebMix":"8tarF","./loadedMix":"f9syH","./miniMix":"dLuS7","./optionInit":"d1F69","./pauseMix":"kewk9","./pipMix":"4XzDs","./playbackRateMix":"jphfi","./playedMix":"iNpeS","./playingMix":"aBIWL","./playMix":"hRBri","./posterMix":"fgfXC","./qualityMix":"17rUP","./rectMix":"55qzI","./screenshotMix":"bC6TG","./seekMix":"j8GRO","./stateMix":"cn7iR","./subtitleOffsetMix":"2k4nP","./switchMix":"6SU6j","./themeMix":"7iMuh","./thumbnailsMix":"6P0RS","./toggleMix":"eNi78","./typeMix":"7AUBD","./urlMix":"cnlLL","./volumeMix":"iX66j","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d8BTB:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,proxy:h,template:{$video:p}}=l,v=!0;window.WebKitPlaybackTargetAvailabilityEvent&&p.webkitShowPlaybackTargetPicker?h(p,"webkitplaybacktargetavailabilitychanged",g=>{switch(g.availability){case"available":v=!0;break;case"not-available":v=!1}}):v=!1,(0,a.def)(l,"airplay",{value(){v?(p.webkitShowPlaybackTargetPicker(),l.emit("airplay")):d.show=c.get("AirPlay Not Available")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aQNJl:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,template:{$video:h,$player:p}}=l;(0,a.def)(l,"aspectRatio",{get:()=>p.dataset.aspectRatio||"default",set(v){if(v||(v="default"),v==="default")(0,a.setStyle)(h,"width",null),(0,a.setStyle)(h,"height",null),(0,a.setStyle)(h,"margin",null),delete p.dataset.aspectRatio;else{let g=v.split(":").map(Number),{clientWidth:y,clientHeight:S}=p,k=g[0]/g[1];y/S>k?((0,a.setStyle)(h,"width",`${k*S}px`),(0,a.setStyle)(h,"height","100%"),(0,a.setStyle)(h,"margin","0 auto")):((0,a.setStyle)(h,"width","100%"),(0,a.setStyle)(h,"height",`${y/k}px`),(0,a.setStyle)(h,"margin","auto 0")),p.dataset.aspectRatio=v}d.show=`${c.get("Aspect Ratio")}: ${v==="default"?c.get("Default"):v}`,l.emit("aspectRatio",v)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"5DA9e":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c}}=l;(0,a.def)(l,"attr",{value(d,h){if(h===void 0)return c[d];c[d]=h}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"1swKn":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$container:c,$video:d}}=l;(0,a.def)(l,"autoHeight",{value(){let{clientWidth:h}=c,{videoHeight:p,videoWidth:v}=d,g=h/v*p;(0,a.setStyle)(c,"height",`${g}px`),l.emit("autoHeight",g)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],lSbiD:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$container:c,$player:d,$video:h}=l.template;(0,a.def)(l,"autoSize",{value(){let{videoWidth:p,videoHeight:v}=h,{width:g,height:y}=(0,a.getRect)(c),S=p/v;g/y>S?((0,a.setStyle)(d,"width",`${y*S/g*100}%`),(0,a.setStyle)(d,"height","100%")):((0,a.setStyle)(d,"width","100%"),(0,a.setStyle)(d,"height",`${g/S/y*100}%`)),l.emit("autoSize",{width:l.width,height:l.height})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"32Hp1":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$player:c}=l.template;(0,a.def)(l,"cssVar",{value:(d,h)=>h?c.style.setProperty(d,h):getComputedStyle(c).getPropertyValue(d)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kfZbu:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"currentTime",{get:()=>c.currentTime||0,set:d=>{Number.isNaN(d=Number.parseFloat(d))||(c.currentTime=(0,a.clamp)(d,0,l.duration))}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eV1ag:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"duration",{get:()=>{let{duration:c}=l.template.$video;return c===1/0?0:c||0}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f8NQq:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>c);var a=e("../config"),s=i.interopDefault(a),l=e("../utils");function c(d){let{i18n:h,notice:p,option:v,constructor:g,proxy:y,template:{$player:S,$video:k,$poster:C}}=d,x=0;for(let E=0;E{d.emit(`video:${_.type}`,_)});d.on("video:canplay",()=>{x=0,d.loading.show=!1}),d.once("video:canplay",()=>{d.loading.show=!1,d.controls.show=!0,d.mask.show=!0,d.isReady=!0,d.emit("ready")}),d.on("video:ended",()=>{v.loop?(d.seek=0,d.play(),d.controls.show=!1,d.mask.show=!1):(d.controls.show=!0,d.mask.show=!0)}),d.on("video:error",async E=>{x{d.emit("resize"),l.isMobile&&(d.loading.show=!1,d.controls.show=!0,d.mask.show=!0)}),d.on("video:loadstart",()=>{d.loading.show=!0,d.mask.show=!1,d.controls.show=!0}),d.on("video:pause",()=>{d.controls.show=!0,d.mask.show=!0}),d.on("video:play",()=>{d.mask.show=!1,(0,l.setStyle)(C,"display","none")}),d.on("video:playing",()=>{d.mask.show=!1}),d.on("video:progress",()=>{d.playing&&(d.loading.show=!1)}),d.on("video:seeked",()=>{d.loading.show=!1,d.mask.show=!0}),d.on("video:seeking",()=>{d.loading.show=!0,d.mask.show=!1}),d.on("video:timeupdate",()=>{d.mask.show=!1}),d.on("video:waiting",()=>{d.loading.show=!0,d.mask.show=!1})}},{"../config":"eJfh8","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ea3Qm:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$player:c},i18n:d,notice:h}=l;(0,a.def)(l,"flip",{get:()=>c.dataset.flip||"normal",set(p){p||(p="normal"),p==="normal"?delete c.dataset.flip:c.dataset.flip=p,h.show=`${d.get("Video Flip")}: ${d.get((0,a.capitalize)(p))}`,l.emit("flip",p)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ffXE3:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>c);var a=e("../libs/screenfull"),s=i.interopDefault(a),l=e("../utils");function c(d){let{i18n:h,notice:p,template:{$video:v,$player:g}}=d;d.once("video:loadedmetadata",()=>{s.default.isEnabled?(s.default.on("change",()=>{d.emit("fullscreen",s.default.isFullscreen),s.default.isFullscreen?(d.state="fullscreen",(0,l.addClass)(g,"art-fullscreen")):(0,l.removeClass)(g,"art-fullscreen"),d.emit("resize")}),s.default.on("error",y=>{d.emit("fullscreenError",y)}),(0,l.def)(d,"fullscreen",{get:()=>s.default.isFullscreen,async set(y){y?await s.default.request(g):await s.default.exit()}})):v.webkitSupportsFullscreen?(d.on("document:webkitfullscreenchange",()=>{d.emit("fullscreen",d.fullscreen),d.emit("resize")}),(0,l.def)(d,"fullscreen",{get:()=>document.fullscreenElement===v,set(y){y?(d.state="fullscreen",v.webkitEnterFullscreen()):v.webkitExitFullscreen()}})):(0,l.def)(d,"fullscreen",{get:()=>!1,set(){p.show=h.get("Fullscreen Not Supported")}}),(0,l.def)(d,"fullscreen",(0,l.get)(d,"fullscreen"))})}},{"../libs/screenfull":"iSPAQ","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iSPAQ:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);let i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=(()=>{if(typeof document>"u")return!1;let c=i[0],d={};for(let h of i)if(h[1]in document){for(let[p,v]of h.entries())d[c[p]]=v;return d}return!1})(),s={change:a.fullscreenchange,error:a.fullscreenerror},l={request:(c=document.documentElement,d)=>new Promise((h,p)=>{let v=()=>{l.off("change",v),h()};l.on("change",v);let g=c[a.requestFullscreen](d);g instanceof Promise&&g.then(v).catch(p)}),exit:()=>new Promise((c,d)=>{if(!l.isFullscreen)return void c();let h=()=>{l.off("change",h),c()};l.on("change",h);let p=document[a.exitFullscreen]();p instanceof Promise&&p.then(h).catch(d)}),toggle:(c,d)=>l.isFullscreen?l.exit():l.request(c,d),onchange(c){l.on("change",c)},onerror(c){l.on("error",c)},on(c,d){let h=s[c];h&&document.addEventListener(h,d,!1)},off(c,d){let h=s[c];h&&document.removeEventListener(h,d,!1)},raw:a};Object.defineProperties(l,{isFullscreen:{get:()=>!!document[a.fullscreenElement]},element:{enumerable:!0,get:()=>document[a.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>!!document[a.fullscreenEnabled]}}),n.default=l},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"8tarF":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{constructor:c,template:{$container:d,$player:h}}=l,p="";(0,a.def)(l,"fullscreenWeb",{get:()=>(0,a.hasClass)(h,"art-fullscreen-web"),set(v){v?(p=h.style.cssText,c.FULLSCREEN_WEB_IN_BODY&&(0,a.append)(document.body,h),l.state="fullscreenWeb",(0,a.setStyle)(h,"width","100%"),(0,a.setStyle)(h,"height","100%"),(0,a.addClass)(h,"art-fullscreen-web"),l.emit("fullscreenWeb",!0)):(c.FULLSCREEN_WEB_IN_BODY&&(0,a.append)(d,h),p&&(h.style.cssText=p,p=""),(0,a.removeClass)(h,"art-fullscreen-web"),l.emit("fullscreenWeb",!1)),l.emit("resize")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f9syH:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"loaded",{get:()=>l.loadedTime/c.duration}),(0,a.def)(l,"loadedTime",{get:()=>c.buffered.length?c.buffered.end(c.buffered.length-1):0})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dLuS7:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{icons:c,proxy:d,storage:h,template:{$player:p,$video:v}}=l,g=!1,y=0,S=0;function k(){let{$mini:E}=l.template;E&&((0,a.removeClass)(p,"art-mini"),(0,a.setStyle)(E,"display","none"),p.prepend(v),l.emit("mini",!1))}function C(E,_){l.playing?((0,a.setStyle)(E,"display","none"),(0,a.setStyle)(_,"display","flex")):((0,a.setStyle)(E,"display","flex"),(0,a.setStyle)(_,"display","none"))}function x(){let{$mini:E}=l.template,_=(0,a.getRect)(E),T=window.innerHeight-_.height-50,D=window.innerWidth-_.width-50;h.set("top",T),h.set("left",D),(0,a.setStyle)(E,"top",`${T}px`),(0,a.setStyle)(E,"left",`${D}px`)}(0,a.def)(l,"mini",{get:()=>(0,a.hasClass)(p,"art-mini"),set(E){if(E){l.state="mini",(0,a.addClass)(p,"art-mini");let _=(function(){let{$mini:P}=l.template;if(P)return(0,a.append)(P,v),(0,a.setStyle)(P,"display","flex");{let M=(0,a.createElement)("div");(0,a.addClass)(M,"art-mini-popup"),(0,a.append)(document.body,M),l.template.$mini=M,(0,a.append)(M,v);let O=(0,a.append)(M,'
');(0,a.append)(O,c.close),d(O,"click",k);let L=(0,a.append)(M,'
'),B=(0,a.append)(L,c.play),j=(0,a.append)(L,c.pause);return d(B,"click",()=>l.play()),d(j,"click",()=>l.pause()),C(B,j),l.on("video:playing",()=>C(B,j)),l.on("video:pause",()=>C(B,j)),l.on("video:timeupdate",()=>C(B,j)),d(M,"mousedown",H=>{g=H.button===0,y=H.pageX,S=H.pageY}),l.on("document:mousemove",H=>{if(g){(0,a.addClass)(M,"art-mini-dragging");let U=H.pageX-y,K=H.pageY-S;(0,a.setStyle)(M,"transform",`translate(${U}px, ${K}px)`)}}),l.on("document:mouseup",()=>{if(g){g=!1,(0,a.removeClass)(M,"art-mini-dragging");let H=(0,a.getRect)(M);h.set("left",H.left),h.set("top",H.top),(0,a.setStyle)(M,"left",`${H.left}px`),(0,a.setStyle)(M,"top",`${H.top}px`),(0,a.setStyle)(M,"transform",null)}}),M}})(),T=h.get("top"),D=h.get("left");typeof T=="number"&&typeof D=="number"?((0,a.setStyle)(_,"top",`${T}px`),(0,a.setStyle)(_,"left",`${D}px`),(0,a.isInViewport)(_)||x()):x(),l.emit("mini",!0)}else k()}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d1F69:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,storage:d,template:{$video:h,$poster:p}}=l;for(let g in c.moreVideoAttr)l.attr(g,c.moreVideoAttr[g]);c.muted&&(l.muted=c.muted),c.volume&&(h.volume=(0,a.clamp)(c.volume,0,1));let v=d.get("volume");for(let g in typeof v=="number"&&(h.volume=(0,a.clamp)(v,0,1)),c.poster&&(0,a.setStyle)(p,"backgroundImage",`url(${c.poster})`),c.autoplay&&(h.autoplay=c.autoplay),c.playsInline&&(h.playsInline=!0,h["webkit-playsinline"]=!0),c.theme&&(c.cssVar["--art-theme"]=c.theme),c.cssVar)l.cssVar(g,c.cssVar[g]);l.url=c.url}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kewk9:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h}=l;(0,a.def)(l,"pause",{value(){let p=c.pause();return h.show=d.get("Pause"),l.emit("pause"),p}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4XzDs":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,template:{$video:h}}=l;if(document.pictureInPictureEnabled){let{template:{$video:p},proxy:v,notice:g}=l;p.disablePictureInPicture=!1,(0,a.def)(l,"pip",{get:()=>document.pictureInPictureElement,set(y){y?(l.state="pip",p.requestPictureInPicture().catch(S=>{throw g.show=S,S})):document.exitPictureInPicture().catch(S=>{throw g.show=S,S})}}),v(p,"enterpictureinpicture",()=>{l.emit("pip",!0)}),v(p,"leavepictureinpicture",()=>{l.emit("pip",!1)})}else if(h.webkitSupportsPresentationMode){let{$video:p}=l.template;p.webkitSetPresentationMode("inline"),(0,a.def)(l,"pip",{get:()=>p.webkitPresentationMode==="picture-in-picture",set(v){v?(l.state="pip",p.webkitSetPresentationMode("picture-in-picture"),l.emit("pip",!0)):(p.webkitSetPresentationMode("inline"),l.emit("pip",!1))}})}else(0,a.def)(l,"pip",{get:()=>!1,set(){d.show=c.get("PIP Not Supported")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jphfi:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h}=l;(0,a.def)(l,"playbackRate",{get:()=>c.playbackRate,set(p){p?p!==c.playbackRate&&(c.playbackRate=p,h.show=`${d.get("Rate")}: ${p===1?d.get("Normal"):`${p}x`}`):l.playbackRate=1}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iNpeS:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"played",{get:()=>l.currentTime/l.duration})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aBIWL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"playing",{get:()=>typeof c.playing=="boolean"?c.playing:c.currentTime>0&&!c.paused&&!c.ended&&c.readyState>2})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],hRBri:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,option:h,constructor:{instances:p},template:{$video:v}}=l;(0,a.def)(l,"play",{async value(){let g=await v.play();if(d.show=c.get("Play"),l.emit("play"),h.mutex)for(let y=0;ys);var a=e("../utils");function s(l){let{template:{$poster:c}}=l;(0,a.def)(l,"poster",{get:()=>{try{return c.style.backgroundImage.match(/"(.*)"/)[1]}catch{return""}},set(d){(0,a.setStyle)(c,"backgroundImage",`url(${d})`)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"17rUP":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"quality",{set(c){let{controls:d,notice:h,i18n:p}=l,v=c.find(g=>g.default)||c[0];d.update({name:"quality",position:"right",index:10,style:{marginRight:"10px"},html:v?.html||"",selector:c,onSelect:async g=>(await l.switchQuality(g.url),h.show=`${p.get("Switch Video")}: ${g.html}`,g.html)})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"55qzI":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"rect",{get:()=>(0,a.getRect)(l.template.$player)});let c=["bottom","height","left","right","top","width"];for(let d=0;dl.rect[h]})}(0,a.def)(l,"x",{get:()=>l.left+window.pageXOffset}),(0,a.def)(l,"y",{get:()=>l.top+window.pageYOffset})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bC6TG:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c,template:{$video:d}}=l,h=(0,a.createElement)("canvas");(0,a.def)(l,"getDataURL",{value:()=>new Promise((p,v)=>{try{h.width=d.videoWidth,h.height=d.videoHeight,h.getContext("2d").drawImage(d,0,0),p(h.toDataURL("image/png"))}catch(g){c.show=g,v(g)}})}),(0,a.def)(l,"getBlobUrl",{value:()=>new Promise((p,v)=>{try{h.width=d.videoWidth,h.height=d.videoHeight,h.getContext("2d").drawImage(d,0,0),h.toBlob(g=>{p(URL.createObjectURL(g))})}catch(g){c.show=g,v(g)}})}),(0,a.def)(l,"screenshot",{value:async p=>{let v=await l.getDataURL(),g=p||`artplayer_${(0,a.secondToTime)(d.currentTime)}`;return(0,a.download)(v,`${g}.png`),l.emit("screenshot",v),v}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],j8GRO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c}=l;(0,a.def)(l,"seek",{set(d){l.currentTime=d,l.duration&&(c.show=`${(0,a.secondToTime)(l.currentTime)} / ${(0,a.secondToTime)(l.duration)}`),l.emit("seek",l.currentTime)}}),(0,a.def)(l,"forward",{set(d){l.seek=l.currentTime+d}}),(0,a.def)(l,"backward",{set(d){l.seek=l.currentTime-d}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cn7iR:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let c=["mini","pip","fullscreen","fullscreenWeb"];(0,a.def)(l,"state",{get:()=>c.find(d=>l[d])||"standard",set(d){for(let h=0;hs);var a=e("../utils");function s(l){let{notice:c,i18n:d,template:h}=l;(0,a.def)(l,"subtitleOffset",{get:()=>h.$track?.offset||0,set(p){let{cues:v}=l.subtitle;if(!h.$track||v.length===0)return;let g=(0,a.clamp)(p,-10,10);h.$track.offset=g;for(let y=0;ys);var a=e("../utils");function s(l){function c(d,h){return new Promise((p,v)=>{if(d===l.url)return;let{playing:g,aspectRatio:y,playbackRate:S}=l;l.pause(),l.url=d,l.notice.show="",l.once("video:error",v),l.once("video:loadedmetadata",()=>{l.currentTime=h}),l.once("video:canplay",async()=>{l.playbackRate=S,l.aspectRatio=y,g&&await l.play(),l.notice.show="",p()})})}(0,a.def)(l,"switchQuality",{value:d=>c(d,l.currentTime)}),(0,a.def)(l,"switchUrl",{value:d=>c(d,0)}),(0,a.def)(l,"switch",{set:l.switchUrl})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7iMuh":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"theme",{get:()=>l.cssVar("--art-theme"),set(c){l.cssVar("--art-theme",c)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6P0RS":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{events:c,option:d,template:{$progress:h,$video:p}}=l,v=null,g=null,y=!1,S=!1,k=!1;c.hover(h,()=>{k=!0},()=>{k=!1}),l.on("setBar",async(C,x,E)=>{let _=l.controls?.thumbnails,{url:T,scale:D}=d.thumbnails;if(!_||!T)return;let P=C==="played"&&E&&a.isMobile;if(C==="hover"||P){if(y||(y=!0,g=await(0,a.loadImg)(T,D),S=!0),!S||!k)return;let M=h.clientWidth*x;(0,a.setStyle)(_,"display","flex"),M>0&&Mh.clientWidth-Y/2?(0,a.setStyle)(L,"left",`${h.clientWidth-Y}px`):(0,a.setStyle)(L,"left",`${O-Y/2}px`)})(M):a.isMobile||(0,a.setStyle)(_,"display","none"),P&&(clearTimeout(v),v=setTimeout(()=>{(0,a.setStyle)(_,"display","none")},500))}}),(0,a.def)(l,"thumbnails",{get:()=>l.option.thumbnails,set(C){C.url&&!l.option.isLive&&(l.option.thumbnails=C,clearTimeout(v),v=null,g=null,y=!1,S=!1)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eNi78:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"toggle",{value:()=>l.playing?l.pause():l.play()})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7AUBD":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"type",{get:()=>l.option.type,set(c){l.option.type=c}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cnlLL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,template:{$video:d}}=l;(0,a.def)(l,"url",{get:()=>d.src,async set(h){if(h){let p=l.url,v=c.type||(0,a.getExt)(h),g=c.customType[v];v&&g?(await(0,a.sleep)(),l.loading.show=!0,g.call(l,d,h,l)):(URL.revokeObjectURL(p),d.src=h),p!==l.url&&(l.option.url=h,l.isReady&&p&&l.once("video:canplay",()=>{l.emit("restart",h)}))}else await(0,a.sleep)(),l.loading.show=!0}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iX66j:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h,storage:p}=l;(0,a.def)(l,"volume",{get:()=>c.volume||0,set:v=>{c.volume=(0,a.clamp)(v,0,1),h.show=`${d.get("Volume")}: ${Number.parseInt(100*c.volume,10)}`,c.volume!==0&&p.set("volume",c.volume)}}),(0,a.def)(l,"muted",{get:()=>c.muted,set:v=>{c.muted=v,l.emit("muted",v)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cjxJL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("./autoOrientation"),l=i.interopDefault(s),c=e("./autoPlayback"),d=i.interopDefault(c),h=e("./fastForward"),p=i.interopDefault(h),v=e("./lock"),g=i.interopDefault(v),y=e("./miniProgressBar"),S=i.interopDefault(y);n.default=class{constructor(k){this.art=k,this.id=0;let{option:C}=k;C.miniProgressBar&&!C.isLive&&this.add(S.default),C.lock&&a.isMobile&&this.add(g.default),C.autoPlayback&&!C.isLive&&this.add(d.default),C.autoOrientation&&a.isMobile&&this.add(l.default),C.fastForward&&a.isMobile&&!C.isLive&&this.add(p.default);for(let x=0;xthis.next(k,x)):this.next(k,C)}next(k,C){let x=C&&C.name||k.name||`plugin${this.id}`;return(0,a.errorHandle)(!(0,a.has)(this,x),`Cannot add a plugin that already has the same name: ${x}`),(0,a.def)(this,x,{value:C}),this}}},{"../utils":"aBlEo","./autoOrientation":"jb9jb","./autoPlayback":"21HWM","./fastForward":"4sxBO","./lock":"fjy9V","./miniProgressBar":"d0xRp","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jb9jb:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c,constructor:d,template:{$player:h,$video:p}}=l,v="art-auto-orientation",g="art-auto-orientation-fullscreen",y=!1;function S(){let{videoWidth:k,videoHeight:C}=p,x=document.documentElement.clientWidth,E=document.documentElement.clientHeight;return k>C&&xE}return l.on("fullscreenWeb",k=>{k?S()&&setTimeout(()=>{l.fullscreenWeb&&!(0,a.hasClass)(h,v)&&(function(){let C=document.documentElement.clientWidth,x=document.documentElement.clientHeight;(0,a.setStyle)(h,"width",`${x}px`),(0,a.setStyle)(h,"height",`${C}px`),(0,a.setStyle)(h,"transform-origin","0 0"),(0,a.setStyle)(h,"transform",`rotate(90deg) translate(0, -${C}px)`),(0,a.addClass)(h,v),l.isRotate=!0,l.emit("resize")})()},Number(d.AUTO_ORIENTATION_TIME??0)):(0,a.hasClass)(h,v)&&((0,a.setStyle)(h,"width",""),(0,a.setStyle)(h,"height",""),(0,a.setStyle)(h,"transform-origin",""),(0,a.setStyle)(h,"transform",""),(0,a.removeClass)(h,v),l.isRotate=!1,l.emit("resize"))}),l.on("fullscreen",async k=>{let C=!!screen?.orientation?.lock;if(k){if(C&&S())try{let x=screen.orientation.type.startsWith("portrait")?"landscape":"portrait";await screen.orientation.lock(x),y=!0,(0,a.addClass)(h,g)}catch(x){y=!1,c.show=x}}else if((0,a.hasClass)(h,g)&&(0,a.removeClass)(h,g),C&&y){try{screen.orientation.unlock()}catch{}y=!1}}),{name:"autoOrientation",get state(){return(0,a.hasClass)(h,v)}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"21HWM":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,icons:d,storage:h,constructor:p,proxy:v,template:{$poster:g}}=l,y=l.layers.add({name:"auto-playback",html:'
'}),S=(0,a.query)(".art-auto-playback-last",y),k=(0,a.query)(".art-auto-playback-jump",y),C=(0,a.query)(".art-auto-playback-close",y);(0,a.append)(C,d.close);let x=null;function E(){let _=(h.get("times")||{})[l.option.id||l.option.url];clearTimeout(x),(0,a.setStyle)(y,"display","none"),_&&_>=p.AUTO_PLAYBACK_MIN&&((0,a.setStyle)(y,"display","flex"),S.textContent=`${c.get("Last Seen")} ${(0,a.secondToTime)(_)}`,k.textContent=c.get("Jump Play"),v(C,"click",()=>{(0,a.setStyle)(y,"display","none")}),v(k,"click",()=>{l.seek=_,l.play(),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","none")}),l.once("video:timeupdate",()=>{x=setTimeout(()=>{(0,a.setStyle)(y,"display","none")},p.AUTO_PLAYBACK_TIMEOUT)}))}return l.on("video:timeupdate",()=>{if(l.playing){let _=h.get("times")||{},T=Object.keys(_);T.length>p.AUTO_PLAYBACK_MAX&&delete _[T[0]],_[l.option.id||l.option.url]=l.currentTime,h.set("times",_)}}),l.on("ready",E),l.on("restart",E),{name:"auto-playback",get times(){return h.get("times")||{}},clear:()=>h.del("times"),delete(_){let T=h.get("times")||{};return delete T[_],h.set("times",T),T}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4sxBO":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{constructor:c,proxy:d,template:{$player:h,$video:p}}=l,v=null,g=!1,y=1,S=()=>{clearTimeout(v),g&&(g=!1,l.playbackRate=y,(0,a.removeClass)(h,"art-fast-forward"))};return d(p,"touchstart",k=>{k.touches.length===1&&l.playing&&!l.isLock&&(v=setTimeout(()=>{g=!0,y=l.playbackRate,l.playbackRate=c.FAST_FORWARD_VALUE,(0,a.addClass)(h,"art-fast-forward")},c.FAST_FORWARD_TIME))}),l.on("document:touchmove",S),l.on("document:touchend",S),{name:"fastForward",get state(){return(0,a.hasClass)(h,"art-fast-forward")}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fjy9V:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{layers:c,icons:d,template:{$player:h}}=l;function p(){return(0,a.hasClass)(h,"art-lock")}function v(){(0,a.addClass)(h,"art-lock"),l.isLock=!0,l.emit("lock",!0)}function g(){(0,a.removeClass)(h,"art-lock"),l.isLock=!1,l.emit("lock",!1)}return c.add({name:"lock",mounted(y){let S=(0,a.append)(y,d.lock),k=(0,a.append)(y,d.unlock);(0,a.setStyle)(S,"display","none"),l.on("lock",C=>{C?((0,a.setStyle)(S,"display","inline-flex"),(0,a.setStyle)(k,"display","none")):((0,a.setStyle)(S,"display","none"),(0,a.setStyle)(k,"display","inline-flex"))})},click(){p()?g():v()}}),{name:"lock",get state(){return p()},set state(y){y?v():g()}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d0xRp:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return l.on("control",c=>{c?(0,a.removeClass)(l.template.$player,"art-mini-progress-bar"):(0,a.addClass)(l.template.$player,"art-mini-progress-bar")}),{name:"mini-progress-bar"}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bwLGT:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("../utils/component"),l=i.interopDefault(s),c=e("./aspectRatio"),d=i.interopDefault(c),h=e("./flip"),p=i.interopDefault(h),v=e("./playbackRate"),g=i.interopDefault(v),y=e("./subtitleOffset"),S=i.interopDefault(y);class k extends l.default{constructor(x){super(x);let{option:E,controls:_,template:{$setting:T}}=x;this.name="setting",this.$parent=T,this.id=0,this.active=null,this.cache=new Map,this.option=[...this.builtin,...E.settings],E.setting&&(this.format(),this.render(),x.on("blur",()=>{this.show&&(this.show=!1,this.render())}),x.on("focus",D=>{let P=(0,a.includeFromEvent)(D,_.setting),M=(0,a.includeFromEvent)(D,this.$parent);!this.show||P||M||(this.show=!1,this.render())}),x.on("resize",()=>this.resize()))}get builtin(){let x=[],{option:E}=this.art;return E.playbackRate&&x.push((0,g.default)(this.art)),E.aspectRatio&&x.push((0,d.default)(this.art)),E.flip&&x.push((0,p.default)(this.art)),E.subtitleOffset&&x.push((0,S.default)(this.art)),x}traverse(x,E=this.option){for(let _=0;_{E.default=E===x,E.default&&E.$item&&(0,a.inverseClass)(E.$item,"art-current")},x.$option),this.render(x.$parents)}format(x=this.option,E,_,T=[]){for(let D=0;DE}),(0,a.def)(P,"$parents",{get:()=>_}),(0,a.def)(P,"$option",{get:()=>x});let M=[];(0,a.def)(P,"$events",{get:()=>M}),(0,a.def)(P,"$formatted",{get:()=>!0})}this.format(P.selector||[],P,x,T)}this.option=x}find(x=""){let E=null;return this.traverse(_=>{_.name===x&&(E=_)}),E}resize(){let{controls:x,constructor:{SETTING_WIDTH:E,SETTING_ITEM_HEIGHT:_},template:{$player:T,$setting:D}}=this.art;if(x.setting&&this.show){let P=this.active[0]?.$parent?.width||E,{left:M,width:O}=(0,a.getRect)(x.setting),{left:L,width:B}=(0,a.getRect)(T),j=M-L+O/2-P/2,H=this.active===this.option?this.active.length*_:(this.active.length+1)*_;if((0,a.setStyle)(D,"height",`${H}px`),(0,a.setStyle)(D,"width",`${P}px`),this.art.isRotate||a.isMobile)return;j+P>B?((0,a.setStyle)(D,"left",null),(0,a.setStyle)(D,"right",null)):((0,a.setStyle)(D,"left",`${j}px`),(0,a.setStyle)(D,"right","auto"))}}inactivate(x){for(let E=0;E'),O=(0,a.createElement)("div");(0,a.addClass)(O,"art-setting-item-left-icon"),(0,a.append)(O,T),(0,a.append)(M,O),(0,a.append)(M,x.$parent.html);let L=_(P,"click",()=>this.render(x.$parents));x.$parent.$events.push(L),(0,a.append)(E,P)}createItem(x,E=!1){if(!this.cache.has(x.$option))return;let _=this.cache.get(x.$option),T=x.$item,D="selector";(0,a.has)(x,"switch")&&(D="switch"),(0,a.has)(x,"range")&&(D="range"),(0,a.has)(x,"onClick")&&(D="button");let{icons:P,proxy:M,constructor:O}=this.art,L=(0,a.createElement)("div");(0,a.addClass)(L,"art-setting-item"),(0,a.setStyle)(L,"height",`${O.SETTING_ITEM_HEIGHT}px`),L.dataset.name=x.name||"",L.dataset.value=x.value||"";let B=(0,a.append)(L,'
'),j=(0,a.append)(L,'
'),H=(0,a.createElement)("div");switch((0,a.addClass)(H,"art-setting-item-left-icon"),D){case"button":case"switch":case"range":(0,a.append)(H,x.icon||P.config);break;case"selector":x.selector?.length?(0,a.append)(H,x.icon||P.config):(0,a.append)(H,P.check)}(0,a.append)(B,H),(0,a.def)(x,"$icon",{configurable:!0,get:()=>H}),(0,a.def)(x,"icon",{configurable:!0,get:()=>H.innerHTML,set(Y){H.innerHTML="",(0,a.append)(H,Y)}});let U=(0,a.createElement)("div");(0,a.addClass)(U,"art-setting-item-left-text"),(0,a.append)(U,x.html||""),(0,a.append)(B,U),(0,a.def)(x,"$html",{configurable:!0,get:()=>U}),(0,a.def)(x,"html",{configurable:!0,get:()=>U.innerHTML,set(Y){U.innerHTML="",(0,a.append)(U,Y)}});let K=(0,a.createElement)("div");switch((0,a.addClass)(K,"art-setting-item-right-tooltip"),(0,a.append)(K,x.tooltip||""),(0,a.append)(j,K),(0,a.def)(x,"$tooltip",{configurable:!0,get:()=>K}),(0,a.def)(x,"tooltip",{configurable:!0,get:()=>K.innerHTML,set(Y){K.innerHTML="",(0,a.append)(K,Y)}}),D){case"switch":{let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon");let ie=(0,a.append)(Y,P.switchOn),te=(0,a.append)(Y,P.switchOff);(0,a.setStyle)(x.switch?te:ie,"display","none"),(0,a.append)(j,Y),(0,a.def)(x,"$switch",{configurable:!0,get:()=>Y});let W=x.switch;(0,a.def)(x,"switch",{configurable:!0,get:()=>W,set(q){W=q,q?((0,a.setStyle)(te,"display","none"),(0,a.setStyle)(ie,"display",null)):((0,a.setStyle)(te,"display",null),(0,a.setStyle)(ie,"display","none"))}});break}case"range":{let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon");let ie=(0,a.append)(Y,'');ie.value=x.range[0],ie.min=x.range[1],ie.max=x.range[2],ie.step=x.range[3],(0,a.addClass)(ie,"art-setting-range"),(0,a.append)(j,Y),(0,a.def)(x,"$range",{configurable:!0,get:()=>ie});let te=[...x.range];(0,a.def)(x,"range",{configurable:!0,get:()=>te,set(W){te=[...W],ie.value=W[0],ie.min=W[1],ie.max=W[2],ie.step=W[3]}})}break;case"selector":if(x.selector?.length){let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon"),(0,a.append)(Y,P.arrowRight),(0,a.append)(j,Y)}}switch(D){case"switch":if(x.onSwitch){let Y=M(L,"click",async ie=>{x.switch=await x.onSwitch.call(this.art,x,L,ie)});x.$events.push(Y)}break;case"range":if(x.$range){if(x.onRange){let Y=M(x.$range,"change",async ie=>{x.range[0]=x.$range.valueAsNumber,x.tooltip=await x.onRange.call(this.art,x,L,ie)});x.$events.push(Y)}if(x.onChange){let Y=M(x.$range,"input",async ie=>{x.range[0]=x.$range.valueAsNumber,x.tooltip=await x.onChange.call(this.art,x,L,ie)});x.$events.push(Y)}}break;case"selector":{let Y=M(L,"click",async ie=>{x.selector?.length?this.render(x.selector):(this.check(x),x.$parent.onSelect&&(x.$parent.tooltip=await x.$parent.onSelect.call(this.art,x,L,ie)))});x.$events.push(Y),x.default&&(0,a.addClass)(L,"art-current")}break;case"button":if(x.onClick){let Y=M(L,"click",async ie=>{x.tooltip=await x.onClick.call(this.art,x,L,ie)});x.$events.push(Y)}}(0,a.def)(x,"$item",{configurable:!0,get:()=>L}),E?(0,a.replaceElement)(L,T):(0,a.append)(_,L),x.mounted&&setTimeout(()=>x.mounted.call(this.art,x.$item,x),0)}render(x=this.option){if(this.active=x,this.cache.has(x)){let E=this.cache.get(x);(0,a.inverseClass)(E,"art-current")}else{let E=(0,a.createElement)("div");this.cache.set(x,E),(0,a.addClass)(E,"art-setting-panel"),(0,a.append)(this.$parent,E),(0,a.inverseClass)(E,"art-current"),x[0]?.$parent&&this.createHeader(x[0]);for(let _=0;_({value:g,name:`aspect-ratio-${g}`,default:g===s.aspectRatio,html:p(g)})),onSelect:g=>(s.aspectRatio=g.value,g.html),mounted:()=>{v(),s.on("aspectRatio",()=>v())}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ljJTO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,icons:d,constructor:{SETTING_ITEM_WIDTH:h,FLIP:p}}=l;function v(y){return c.get((0,a.capitalize)(y))}function g(){let y=l.setting.find(`flip-${l.flip}`);l.setting.check(y)}return{width:h,name:"flip",html:c.get("Video Flip"),tooltip:v(l.flip),icon:d.flip,selector:p.map(y=>({value:y,name:`flip-${y}`,default:y===l.flip,html:v(y)})),onSelect:y=>(l.flip=y.value,y.html),mounted:()=>{g(),l.on("flip",()=>g())}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3QcSQ":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){let{i18n:l,icons:c,constructor:{SETTING_ITEM_WIDTH:d,PLAYBACK_RATE:h}}=s;function p(g){return g===1?l.get("Normal"):g.toFixed(1)}function v(){let g=s.setting.find(`playback-rate-${s.playbackRate}`);s.setting.check(g)}return{width:d,name:"playback-rate",html:l.get("Play Speed"),tooltip:p(s.playbackRate),icon:c.playbackRate,selector:h.map(g=>({value:g,name:`playback-rate-${g}`,default:g===s.playbackRate,html:p(g)})),onSelect:g=>(s.playbackRate=g.value,g.html),mounted:()=>{v(),s.on("video:ratechange",()=>v())}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eB5hg:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){let{i18n:l,icons:c,constructor:d}=s;return{width:d.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:l.get("Subtitle Offset"),icon:c.subtitle,tooltip:"0s",range:[0,-10,10,.1],onChange:h=>(s.subtitleOffset=h.range[0],`${h.range[0]}s`),mounted:(h,p)=>{s.on("subtitleOffset",v=>{p.$range.value=v,p.tooltip=`${v}s`})}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kwqbK:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{constructor(){this.name="artplayer_settings",this.settings={}}get(i){try{let a=JSON.parse(window.localStorage.getItem(this.name))||{};return i?a[i]:a}catch{return i?this.settings[i]:this.settings}}set(i,a){try{let s=Object.assign({},this.get(),{[i]:a});window.localStorage.setItem(this.name,JSON.stringify(s))}catch{this.settings[i]=a}}del(i){try{let a=this.get();delete a[i],window.localStorage.setItem(this.name,JSON.stringify(a))}catch{delete this.settings[i]}}clear(){try{window.localStorage.removeItem(this.name)}catch{this.settings={}}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],k5613:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("option-validator"),s=i.interopDefault(a),l=e("./scheme"),c=i.interopDefault(l),d=e("./utils"),h=e("./utils/component"),p=i.interopDefault(h);class v extends p.default{constructor(y){super(y),this.name="subtitle",this.option=null,this.destroyEvent=()=>null,this.init(y.option.subtitle);let S=!1;y.on("video:timeupdate",()=>{if(!this.url)return;let k=this.art.template.$video.webkitDisplayingFullscreen;typeof k=="boolean"&&k!==S&&(S=k,this.createTrack(k?"subtitles":"metadata",this.url))})}get url(){return this.art.template.$track.src}set url(y){this.switch(y)}get textTrack(){return this.art.template.$video?.textTracks?.[0]}get activeCues(){return this.textTrack?Array.from(this.textTrack.activeCues):[]}get cues(){return this.textTrack?Array.from(this.textTrack.cues):[]}style(y,S){let{$subtitle:k}=this.art.template;return typeof y=="object"?(0,d.setStyles)(k,y):(0,d.setStyle)(k,y,S)}update(){let{option:{subtitle:y},template:{$subtitle:S}}=this.art;S.innerHTML="",this.activeCues.length&&(this.art.emit("subtitleBeforeUpdate",this.activeCues),S.innerHTML=this.activeCues.map((k,C)=>k.text.split(/\r?\n/).filter(x=>x.trim()).map(x=>`
${y.escape?(0,d.escape)(x):x}
`).join("")).join(""),this.art.emit("subtitleAfterUpdate",this.activeCues))}async switch(y,S={}){let{i18n:k,notice:C,option:x}=this.art,E={...x.subtitle,...S,url:y},_=await this.init(E);return S.name&&(C.show=`${k.get("Switch Subtitle")}: ${S.name}`),_}createTrack(y,S){let{template:k,proxy:C,option:x}=this.art,{$video:E,$track:_}=k,T=(0,d.createElement)("track");T.default=!0,T.kind=y,T.src=S,T.label=x.subtitle.name||"Artplayer",T.track.mode="hidden",T.onload=()=>{this.art.emit("subtitleLoad",this.cues,this.option)},this.art.events.remove(this.destroyEvent),_.onload=null,(0,d.remove)(_),(0,d.append)(E,T),k.$track=T,this.destroyEvent=C(this.textTrack,"cuechange",()=>this.update())}async init(y){let{notice:S,template:{$subtitle:k}}=this.art;return this.textTrack?((0,s.default)(y,c.default.subtitle),y.url?(this.option=y,this.style(y.style),fetch(y.url).then(C=>C.arrayBuffer()).then(C=>{let x=new TextDecoder(y.encoding).decode(C);switch(y.type||(0,d.getExt)(y.url)){case"srt":{let E=(0,d.srtToVtt)(x),_=y.onVttLoad(E);return(0,d.vttToBlob)(_)}case"ass":{let E=(0,d.assToVtt)(x),_=y.onVttLoad(E);return(0,d.vttToBlob)(_)}case"vtt":{let E=y.onVttLoad(x);return(0,d.vttToBlob)(E)}default:return y.url}}).then(C=>(k.innerHTML="",this.url===C||(URL.revokeObjectURL(this.url),this.createTrack("metadata",C)),C)).catch(C=>{throw k.innerHTML="",S.show=C,C})):void 0):null}}n.default=v},{"option-validator":"g7VGh","./scheme":"biLjm","./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fwOA1:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("../package.json"),a=e("./utils");class s{constructor(c){this.art=c;let{option:d,constructor:h}=c;d.container instanceof Element?this.$container=d.container:(this.$container=(0,a.query)(d.container),(0,a.errorHandle)(this.$container,`No container element found by ${d.container}`)),(0,a.errorHandle)((0,a.supportsFlex)(),"The current browser does not support flex layout");let p=this.$container.tagName.toLowerCase();(0,a.errorHandle)(p==="div",`Unsupported container element type, only support 'div' but got '${p}'`),(0,a.errorHandle)(h.instances.every(v=>v.template.$container!==this.$container),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=c.id,this.init()}static get html(){return`
Player version:
${i.version}
Video url:
Video volume:
Video time:
Video duration:
Video resolution:
x
[x]
`}query(c){return(0,a.query)(c,this.$container)}init(){let{option:c}=this.art;if(c.useSSR||(this.$container.innerHTML=s.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),c.proxy){let d=c.proxy.call(this.art,this.art);(0,a.errorHandle)(d instanceof HTMLVideoElement||d instanceof HTMLCanvasElement,"Function 'option.proxy' needs to return 'HTMLVideoElement' or 'HTMLCanvasElement'"),(0,a.replaceElement)(d,this.$video),d.className="art-video",this.$video=d}c.backdrop&&(0,a.addClass)(this.$player,"art-backdrop"),a.isMobile&&(0,a.addClass)(this.$player,"art-mobile")}destroy(c){c?this.$container.innerHTML="":(0,a.addClass)(this.$player,"art-destroy")}}n.default=s},{"../package.json":"lh3R5","./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4NM7P":[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{on(i,a,s){let l=this.e||(this.e={});return(l[i]||(l[i]=[])).push({fn:a,ctx:s}),this}once(i,a,s){let l=this;function c(...d){l.off(i,c),a.apply(s,d)}return c._=a,this.on(i,c,s)}emit(i,...a){let s=((this.e||(this.e={}))[i]||[]).slice();for(let l=0;l[]},currentEpisodeIndex:{type:Number,default:0},autoNext:{type:Boolean,default:!0},headers:{type:Object,default:()=>({})},qualities:{type:Array,default:()=>[]},hasMultipleQualities:{type:Boolean,default:!1},initialQuality:{type:String,default:"默认"},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>({})}},emits:["close","error","player-change","next-episode","episode-selected","quality-change","parser-change"],setup(e,{emit:t}){yce.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2,2.5,3,4,5];const n=e,r=t,i=ue(null),a=ue(null),s=ue(null),l=ue(0),c=ue(3),d=ue(!1),h=ue(450),p=JSON.parse(localStorage.getItem("loopEnabled")||"false"),v=JSON.parse(localStorage.getItem("autoNextEnabled")||"true"),g=ue(p?!1:v),y=ue(p),S=ue(0),k=ue(null),C=ue(!1),x=ue(!1),E=ue(!1),_=ue(!1),T=ue(!1),D=ue(""),P=ue("默认"),M=ue([]),O=ue(""),L=ue(0),B=F(()=>!!n.videoUrl),j=F(()=>{L.value;const Ot=O.value||n.videoUrl;if(!Ot)return"";const bn=n.headers||{};return om(Ot,bn)}),H=F(()=>!P.value||M.value.length===0?"默认":M.value.find(bn=>bn.name===P.value)?.name||P.value||"默认"),U=F(()=>M.value.map(Ot=>({name:Ot.name||"未知",value:Ot.name,url:Ot.url}))),{showSkipSettingsDialog:K,skipIntroEnabled:Y,skipOutroEnabled:ie,skipIntroSeconds:te,skipOutroSeconds:W,skipEnabled:q,initSkipSettings:Q,resetSkipState:se,applySkipSettings:ae,applyIntroSkipImmediate:re,handleTimeUpdate:Ce,closeSkipSettingsDialog:Ve,saveSkipSettings:ge,onUserSeekStart:xe,onUserSeekEnd:Ge,onFullscreenChangeStart:tt,onFullscreenChangeEnd:Ue}=E4e({onSkipToNext:()=>{g.value&&Fe()&&$e()},getCurrentTime:()=>a.value?.video?.currentTime||0,setCurrentTime:Ot=>{a.value?.video&&(a.value.video.currentTime=Ot)},getDuration:()=>a.value?.video?.duration||0}),_e=Ot=>{if(!Ot)return!1;const kr=[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp",".ts",".m3u8",".mpd"].some(oe=>Ot.toLowerCase().includes(oe)),sr=Ot.toLowerCase().includes("m3u8")||Ot.toLowerCase().includes("mpd")||Ot.toLowerCase().includes("rtmp")||Ot.toLowerCase().includes("rtsp");return kr||sr?!0:!(Ot.includes("://")&&(Ot.includes(".html")||Ot.includes(".php")||Ot.includes(".asp")||Ot.includes(".jsp")||Ot.match(/\/[^.?#]*$/))&&!kr&&!sr)},ve=async Ot=>{if(!(!i.value||!Ot)){console.log("初始化 ArtPlayer:",Ot);try{const bn=oK(Ot);console.log(`已为ArtPlayer应用CSP策略: ${bn}`)}catch(bn){console.warn("应用CSP策略失败:",bn)}if(Jt(),se(),vt(),await dn(),h.value=rn(),i.value.style.height=`${h.value}px`,!_e(Ot)){console.log("检测到网页链接,在新窗口打开:",Ot),yt.info("检测到网页链接,正在新窗口打开..."),window.open(Ot,"_blank"),r("close");return}if(s.value?s.value.destroy():s.value=new A4e,a.value){const bn=$h(),kr={...n.headers||{},...bn.autoBypass?{}:{}},sr=om(Ot,kr);sr!==Ot&&console.log("🔄 [代理播放] switchUrl使用代理地址"),console.log("使用 switchUrl 方法切换视频源:",sr);try{await a.value.switchUrl(sr),console.log("视频源切换成功"),se(),ae();return}catch(zr){console.error("switchUrl 切换失败,回退到销毁重建方式:",zr),s.value&&s.value.destroy(),a.value.destroy(),a.value=null}}try{const bn=$h(),kr={...n.headers||{},...bn.autoBypass?{}:{}},sr=om(Ot,kr);sr!==Ot&&console.log("🔄 [代理播放] 使用代理地址播放视频");const zr=KT(sr);D.value=zr,console.log("检测到视频格式:",zr);const oe=new yce({container:i.value,url:sr,poster:n.poster,volume:.7,isLive:!1,muted:!1,autoplay:!0,pip:!0,autoSize:!1,autoMini:!0,width:"100%",height:h.value,screenshot:!0,setting:!0,loop:!1,flip:!0,playbackRate:!0,aspectRatio:!0,fullscreen:!0,fullscreenWeb:!0,subtitleOffset:!0,miniProgressBar:!0,mutex:!0,backdrop:!0,playsInline:!0,autoPlayback:!0,airplay:!0,theme:"#23ade5",lang:"zh-cn",whitelist:["*"],type:zr==="hls"?"m3u8":zr==="flv"?"flv":zr==="dash"?"mpd":"",customType:zr!=="native"?{[zr==="hls"?"m3u8":zr==="flv"?"flv":zr==="dash"?"mpd":zr]:function(ne,ee,J){const ce=$h(),Se={...n.headers||{},...ce.autoBypass?{}:{}};let ke=null;switch(zr){case"hls":ke=Cy.hls(ne,ee,Se);break;case"flv":ke=Cy.flv(ne,ee,Se);break;case"dash":ke=Cy.dash(ne,ee,Se);break}ke&&(J.customPlayer=ke,J.customPlayerFormat=zr),console.log(`${zr.toUpperCase()} 播放器加载成功`)}}:{},controls:[{position:"right",html:Fe()?"下一集":"",tooltip:Fe()?"播放下一集":"",style:Fe()?{}:{display:"none"},click:function(){$e()}},{position:"right",html:M.value.length>1?`画质: ${H.value}`:"",style:M.value.length>1?{}:{display:"none"},click:function(){un()}},{position:"right",html:n.episodes.length>1?"选集":"",tooltip:n.episodes.length>1?"选择集数":"",style:n.episodes.length>1?{}:{display:"none"},click:function(){rr()}},{position:"right",html:"关闭",tooltip:"关闭播放器",click:function(){at()}}],quality:[],subtitle:{url:"",type:"srt",encoding:"utf-8",escape:!0},contextmenu:[{html:"自定义菜单",click:function(){console.log("点击了自定义菜单")}}],layers:[{name:"episodeLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"},click:function(ne){ne.target.classList.contains("episode-layer-background")&&Dn()}},{name:"qualityLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"},click:function(ne){ne.target.classList.contains("quality-layer-background")&&An()}}],plugins:[]});oe.on("ready",()=>{console.log("ArtPlayer 准备就绪"),ae()}),oe.on("video:loadstart",()=>{se()}),oe.on("video:canplay",()=>{Jt(),ae()}),oe.on("video:timeupdate",()=>{Ce()}),oe.on("video:seeking",()=>{xe()}),oe.on("video:seeked",()=>{Ge()}),oe.on("video:playing",()=>{Jt(),vt(),re()||(ae(),setTimeout(()=>{ae()},50))}),oe.on("fullscreen",ne=>{tt(),setTimeout(()=>{Ue()},500)}),oe.on("video:error",ne=>{if(console.error("ArtPlayer 播放错误:",ne),!_e(Ot)){console.log("播放失败,检测到可能是网页链接,在新窗口打开:",Ot),yt.info("视频播放失败,检测到网页链接,正在新窗口打开..."),window.open(Ot,"_blank"),r("close");return}Ht(Ot)}),oe.on("video:ended",()=>{try{if(console.log("视频播放结束"),E.value||_.value){console.log("正在处理中,忽略重复的视频结束事件");return}if(y.value){console.log("循环播放:重新播放当前选集"),_.value=!0,setTimeout(()=>{try{r("episode-selected",n.currentEpisodeIndex)}catch(ne){console.error("循环播放触发选集事件失败:",ne),yt.error("循环播放失败,请重试"),_.value=!1}},1e3);return}g.value&&Fe()?(E.value=!0,Ee()):Fe()||yt.info("全部播放完毕")}catch(ne){console.error("视频结束事件处理失败:",ne),yt.error("视频结束处理失败"),E.value=!1,_.value=!1}}),oe.on("destroy",()=>{console.log("ArtPlayer 已销毁"),We()}),a.value=oe}catch(bn){console.error("创建 ArtPlayer 实例失败:",bn),yt.error("播放器初始化失败"),r("error","播放器初始化失败")}}},me=()=>{if(n.qualities&&n.qualities.length>0){M.value=[...n.qualities],P.value=n.initialQuality||n.qualities[0]?.name||"默认";const Ot=M.value.find(bn=>bn.name===P.value);O.value=Ot?.url||n.videoUrl}else M.value=[],P.value="默认",O.value=n.videoUrl;console.log("画质数据初始化完成:",{available:M.value,current:P.value,currentPlayingUrl:O.value})},Oe=()=>{if(a.value)try{const Ot=a.value.template.$container;if(Ot){const bn=Ot.querySelector(".art-controls-right");if(bn){const kr=bn.querySelectorAll(".art-control");for(let sr=0;sr{const bn=M.value.find(kr=>kr.name===Ot);if(!bn){console.warn("未找到指定画质:",Ot);return}console.log("切换画质:",Ot,bn),a.value&&(a.value.currentTime,a.value.paused),P.value=Ot,O.value=bn.url,Oe(),r("quality-change",bn)},Ke=Ot=>{const bn=M.value.find(kr=>kr.name===Ot);bn&&qe(bn.name)},at=()=>{console.log("关闭 ArtPlayer 播放器"),Jt(),a.value&&(a.value.hls&&(a.value.hls.destroy(),a.value.hls=null),a.value.destroy(),a.value=null),r("close")},ft=Ot=>{r("player-change",Ot)},ct=Ot=>{r("parser-change",Ot)},wt=Ot=>{console.log("代理播放地址变更:",Ot);try{const bn=JSON.parse(localStorage.getItem("addressSettings")||"{}");Ot==="disabled"?bn.proxyPlayEnabled=!1:(bn.proxyPlayEnabled=!0,bn.proxyPlay=Ot),localStorage.setItem("addressSettings",JSON.stringify(bn)),window.dispatchEvent(new CustomEvent("addressSettingsChanged")),n.videoUrl&&dn(()=>{ve(n.videoUrl)})}catch(bn){console.error("保存代理播放设置失败:",bn)}},Ct=()=>{K.value=!0},Rt=Ot=>{ge(Ot),yt.success("片头片尾设置已保存"),Ve()},Ht=Ot=>{d.value||(l.value{if(a.value)try{const bn=n.headers||{},kr=om(Ot,bn);console.log("重连使用URL:",kr),kr!==Ot&&console.log("🔄 [代理播放] 重连时使用代理地址"),a.value.switchUrl(kr),d.value=!1}catch(bn){console.error("重连时出错:",bn),d.value=!1,Ht(Ot)}},2e3*l.value)):(console.error("ArtPlayer 重连次数已达上限,停止重连"),yt.error(`视频播放失败,已重试 ${c.value} 次,请检查视频链接或网络连接`),r("error","视频播放失败,重连次数已达上限"),l.value=0,d.value=!1))},Jt=()=>{l.value=0,d.value=!1},rn=()=>{if(!i.value)return 450;const Ot=i.value.offsetWidth;if(Ot===0)return 450;const bn=16/9;let kr=Ot/bn;const sr=300,zr=Math.min(window.innerHeight*.7,600);return kr=Math.max(sr,Math.min(kr,zr)),console.log(`容器宽度: ${Ot}px, 计算高度: ${kr}px`),Math.round(kr)},vt=()=>{E.value=!1,_.value=!1},Fe=()=>n.episodes.length>0&&n.currentEpisodeIndexFe()?n.episodes[n.currentEpisodeIndex+1]:null,Ee=()=>{!g.value||!Fe()||(console.log("开始自动下一集"),x.value?(S.value=10,C.value=!0,k.value=setInterval(()=>{S.value--,S.value<=0&&(clearInterval(k.value),k.value=null,C.value=!1,$e())},1e3)):$e())},We=()=>{k.value&&(clearInterval(k.value),k.value=null),S.value=0,C.value=!1,vt(),console.log("用户取消自动下一集")},$e=()=>{if(!Fe()){yt.info("已经是最后一集了"),vt();return}Me(),We(),vt(),r("next-episode",n.currentEpisodeIndex+1)},dt=()=>{g.value=!g.value,localStorage.setItem("autoNextEnabled",JSON.stringify(g.value)),g.value&&(y.value=!1,localStorage.setItem("loopEnabled","false")),g.value||We()},Qe=()=>{y.value=!y.value,localStorage.setItem("loopEnabled",JSON.stringify(y.value)),y.value&&(g.value=!1,localStorage.setItem("autoNextEnabled","false"),We()),console.log("循环播放开关:",y.value?"开启":"关闭")},Le=()=>{x.value=!x.value,console.log("倒计时开关:",x.value?"开启":"关闭"),x.value||We()},ht=()=>{T.value=!T.value},Vt=()=>{T.value=!1},Ut=()=>!n.episodes||n.episodes.length===0?'
':`
@@ -538,8 +538,8 @@ Char: `+o[b]);b+1&&(b+=1);break}else if(o.charCodeAt(b+1)===33){if(o.charCodeAt(
- `,Yt=()=>{if(a.value)try{a.value.layers.update({name:"qualityLayer",html:Wt(),style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"flex",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden",alignItems:"center",justifyContent:"center"}}),dn(()=>{const Ot=a.value.layers.qualityLayer;Ot&&Ot.addEventListener("click",sn)}),console.log("显示画质选择layer")}catch(Ot){console.error("显示画质选择layer失败:",Ot)}},sn=Ot=>{const bn=Ot.target.closest(".quality-layer-item"),kr=Ot.target.closest(".quality-layer-close"),sr=Ot.target.closest(".quality-layer-background");if(kr||sr&&Ot.target===sr)An();else if(bn){const zr=parseInt(bn.dataset.qualityIndex);isNaN(zr)||(Xn(zr),An())}},An=()=>{if(a.value)try{const Ot=a.value.layers.qualityLayer;Ot&&Ot.removeEventListener("click",sn),a.value.layers.update({name:"qualityLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"}}),console.log("隐藏画质选择layer")}catch(Ot){console.error("隐藏画质选择layer失败:",Ot)}},un=()=>{if(a.value)try{const Ot=a.value.layers.qualityLayer;Ot&&Ot.style.display!=="none"?An():Yt()}catch(Ot){console.error("切换画质layer失败:",Ot),Yt()}},Xn=Ot=>{console.log("从layer选择画质:",Ot);const bn=M.value[Ot];bn&&qe(bn.name)};It(()=>n.videoUrl,async Ot=>{Ot&&n.visible&&(Jt(),se(),await dn(),await ve(Ot))},{immediate:!0}),It(()=>n.visible,async Ot=>{Ot&&n.videoUrl?(await dn(),await ve(n.videoUrl)):Ot||(s.value&&s.value.destroy(),a.value&&(a.value.destroy(),a.value=null))}),It(()=>n.qualities,()=>{me()},{immediate:!0,deep:!0}),It(()=>n.initialQuality,Ot=>{Ot&&Ot!==P.value&&(P.value=Ot)});const wr=()=>{if(i.value&&a.value){const Ot=rn();Ot!==h.value&&(h.value=Ot,i.value.style.height=`${Ot}px`,a.value.resize())}},ro=()=>{console.log("检测到代理设置变化,重新初始化播放器"),L.value++,n.videoUrl&&n.visible&&dn(()=>{ve(n.videoUrl)})};return hn(()=>{console.log("ArtVideoPlayer 组件已挂载 - 动态高度版本"),window.addEventListener("resize",wr),window.addEventListener("addressSettingsChanged",ro),Q(),me()}),ii(()=>{if(console.log("ArtVideoPlayer 组件即将卸载"),window.removeEventListener("resize",wr),window.removeEventListener("addressSettingsChanged",ro),We(),s.value&&s.value.destroy(),a.value){if(a.value.customPlayer&&a.value.customPlayerFormat){const Ot=a.value.customPlayerFormat;Ob[Ot]&&Ob[Ot](a.value.customPlayer)}a.value.destroy(),a.value=null}}),(Ot,bn)=>{const kr=Te("a-card");return e.visible&&(e.videoUrl||e.needsParsing)?(z(),Ze(kr,{key:0,class:"video-player-section"},{default:fe(()=>[$(nK,{"episode-name":e.episodeName,"player-type":e.playerType,episodes:e.episodes,"auto-next-enabled":g.value,"loop-enabled":y.value,"countdown-enabled":x.value,"skip-enabled":rt(q),"show-debug-button":B.value,qualities:U.value,"current-quality":H.value,"show-parser-selector":e.needsParsing,"needs-parsing":e.needsParsing,"parse-data":e.parseData,onToggleAutoNext:dt,onToggleLoop:Qe,onToggleCountdown:Le,onPlayerChange:ft,onOpenSkipSettings:Ct,onToggleDebug:ht,onProxyChange:wt,onQualityChange:Ke,onParserChange:ct,onClose:at},null,8,["episode-name","player-type","episodes","auto-next-enabled","loop-enabled","countdown-enabled","skip-enabled","show-debug-button","qualities","current-quality","show-parser-selector","needs-parsing","parse-data"]),Ai(I("div",JPt,[I("div",{ref_key:"artPlayerContainer",ref:i,class:"art-player-container"},null,512),C.value?(z(),X("div",QPt,[I("div",eRt,[bn[0]||(bn[0]=I("div",{class:"auto-next-title"},[I("span",null,"即将播放下一集")],-1)),Me()?(z(),X("div",tRt,Fe(Me().name),1)):Ie("",!0),I("div",nRt,Fe(S.value)+" 秒后自动播放 ",1),I("div",{class:"auto-next-buttons"},[I("button",{onClick:$e,class:"btn-play-now"},"立即播放"),I("button",{onClick:We,class:"btn-cancel"},"取消")])])])):Ie("",!0),$(w4e,{visible:rt(K),"skip-intro-enabled":rt(Y),"skip-outro-enabled":rt(ie),"skip-intro-seconds":rt(te),"skip-outro-seconds":rt(W),onClose:rt(Ve),onSave:Rt},null,8,["visible","skip-intro-enabled","skip-outro-enabled","skip-intro-seconds","skip-outro-seconds","onClose"]),$(rK,{visible:T.value,"video-url":O.value||e.videoUrl,headers:e.headers,"player-type":"artplayer","detected-format":D.value,"proxy-url":j.value,onClose:Vt},null,8,["visible","video-url","headers","detected-format","proxy-url"])],512),[[es,n.visible]])]),_:1})):Ie("",!0)}}},D4e=cr(rRt,[["__scopeId","data-v-e22e3fdf"]]),iRt={class:"route-tabs"},oRt={class:"route-name"},sRt={key:0,class:"episodes-section"},aRt={class:"episodes-header"},lRt={class:"episodes-controls"},uRt={class:"episode-text"},cRt={__name:"EpisodeSelector",props:{videoDetail:{type:Object,default:()=>({})},currentRoute:{type:Number,default:0},currentEpisode:{type:Number,default:0}},emits:["route-change","episode-change"],setup(e,{emit:t}){const n=e,r=t,i=ue("asc"),a=ue(localStorage.getItem("episodeDisplayStrategy")||"full"),s=ue(localStorage.getItem("episodeLayoutColumns")||"smart"),l=x=>x?x.split("#").map(E=>{const[_,T]=E.split("$");return{name:_?.trim()||"未知集数",url:T?.trim()||""}}).filter(E=>E.url):[],c=x=>{if(!x)return"未知";switch(a.value){case"simple":const E=x.match(/\d+/);return E?E[0]:x;case"smart":return x.replace(/^(第|集|话|期|EP|Episode)\s*/i,"").replace(/\s*(集|话|期)$/i,"");case"full":default:return x}},d=F(()=>{if(!n.videoDetail?.vod_play_from||!n.videoDetail?.vod_play_url)return[];const x=n.videoDetail.vod_play_from.split("$$$"),E=n.videoDetail.vod_play_url.split("$$$");return x.map((_,T)=>({name:_.trim(),episodes:l(E[T]||"")}))}),h=F(()=>{let x=d.value[n.currentRoute]?.episodes||[];return x=x.map(E=>({...E,displayName:c(E.name)})),i.value==="desc"&&(x=[...x].reverse()),x}),p=F(()=>{if(!h.value.length)return 12;const x=Math.max(...h.value.map(T=>(T.displayName||T.name||"").length)),E=x+1;let _=Math.floor(60/E);return _=Math.max(1,Math.min(12,_)),console.log("智能布局计算:",{maxNameLength:x,buttonWidth:E,columns:_}),_}),v=F(()=>s.value==="smart"?p.value:parseInt(s.value)||12),g=x=>{r("route-change",x)},y=x=>{r("episode-change",x)},S=()=>{i.value=i.value==="asc"?"desc":"asc"},k=x=>{a.value=x,localStorage.setItem("episodeDisplayStrategy",x)},C=x=>{s.value=x,localStorage.setItem("episodeLayoutColumns",x)};return It(a,()=>{}),(x,E)=>{const _=Te("a-badge"),T=Te("a-button"),D=Te("a-option"),P=Te("a-select"),M=Te("a-card"),O=Te("a-empty");return d.value.length>0?(z(),Ze(M,{key:0,class:"play-section"},{default:fe(()=>[E[10]||(E[10]=I("h3",null,"播放线路",-1)),I("div",iRt,[(z(!0),X(Pt,null,cn(d.value,(L,B)=>(z(),Ze(T,{key:B,type:e.currentRoute===B?"primary":"outline",onClick:j=>g(B),class:"route-btn"},{default:fe(()=>[I("span",oRt,Fe(L.name),1),$(_,{count:L.episodes.length,class:"route-badge"},null,8,["count"])]),_:2},1032,["type","onClick"]))),128))]),h.value.length>0?(z(),X("div",sRt,[I("div",aRt,[I("h4",null,"选集列表 ("+Fe(h.value.length)+"集)",1),I("div",lRt,[$(T,{type:"text",size:"small",onClick:S,title:i.value==="asc"?"切换为倒序":"切换为正序",class:"sort-btn"},{icon:fe(()=>[i.value==="asc"?(z(),Ze(rt(Vve),{key:0})):(z(),Ze(rt(zve),{key:1}))]),default:fe(()=>[He(" "+Fe(i.value==="asc"?"正序":"倒序"),1)]),_:1},8,["title"]),$(P,{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=L=>a.value=L),onChange:k,size:"small",class:"strategy-select",style:{width:"150px"},position:"bl","popup-container":"body"},{prefix:fe(()=>[$(rt(Lf))]),default:fe(()=>[$(D,{value:"full"},{default:fe(()=>[...E[2]||(E[2]=[He("完整显示",-1)])]),_:1}),$(D,{value:"smart"},{default:fe(()=>[...E[3]||(E[3]=[He("智能去重",-1)])]),_:1}),$(D,{value:"simple"},{default:fe(()=>[...E[4]||(E[4]=[He("精简显示",-1)])]),_:1})]),_:1},8,["modelValue"]),$(P,{modelValue:s.value,"onUpdate:modelValue":E[1]||(E[1]=L=>s.value=L),onChange:C,size:"small",class:"layout-select",style:{width:"120px"},position:"bl","popup-container":"body"},{prefix:fe(()=>[$(rt(Xve))]),default:fe(()=>[$(D,{value:"smart"},{default:fe(()=>[...E[5]||(E[5]=[He("智能",-1)])]),_:1}),$(D,{value:"12"},{default:fe(()=>[...E[6]||(E[6]=[He("12列",-1)])]),_:1}),$(D,{value:"9"},{default:fe(()=>[...E[7]||(E[7]=[He("9列",-1)])]),_:1}),$(D,{value:"6"},{default:fe(()=>[...E[8]||(E[8]=[He("6列",-1)])]),_:1}),$(D,{value:"3"},{default:fe(()=>[...E[9]||(E[9]=[He("3列",-1)])]),_:1})]),_:1},8,["modelValue"])])]),I("div",{class:"episodes-grid",style:Ye({"--episodes-columns":v.value})},[(z(!0),X(Pt,null,cn(h.value,(L,B)=>(z(),Ze(T,{key:B,type:e.currentEpisode===B?"primary":"outline",onClick:j=>y(B),class:"episode-btn",size:"small",title:L.name},{default:fe(()=>[I("span",uRt,Fe(L.displayName||L.name),1)]),_:2},1032,["type","onClick","title"]))),128))],4)])):Ie("",!0)]),_:1})):(z(),Ze(M,{key:1,class:"no-play-section"},{default:fe(()=>[$(O,{description:"暂无播放资源"})]),_:1}))}}},dRt=cr(cRt,[["__scopeId","data-v-1d197d0e"]]),fRt={class:"reader-header"},hRt={class:"header-left"},pRt={class:"header-center"},vRt={class:"book-info"},mRt=["title"],gRt={key:0,class:"chapter-info"},yRt=["title"],bRt={key:0,class:"chapter-progress"},_Rt={class:"header-right"},SRt={class:"chapter-nav"},kRt={class:"chapter-dropdown"},xRt={class:"chapter-dropdown-header"},CRt={class:"total-count"},wRt={class:"chapter-dropdown-content"},ERt={class:"chapter-option"},TRt={class:"chapter-number"},ARt=["title"],IRt={__name:"ReaderHeader",props:{bookTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},visible:{type:Boolean,default:!1},readingSettings:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=t,r=ue(!1),i=()=>{n("close")},a=()=>{n("next-chapter")},s=()=>{n("prev-chapter")},l=p=>{n("chapter-selected",p)},c=()=>{n("settings-change",{showDialog:!0})},d=async()=>{try{document.fullscreenElement?(await document.exitFullscreen(),r.value=!1):(await document.documentElement.requestFullscreen(),r.value=!0)}catch(p){console.warn("全屏切换失败:",p)}},h=()=>{r.value=!!document.fullscreenElement};return hn(()=>{document.addEventListener("fullscreenchange",h)}),ii(()=>{document.removeEventListener("fullscreenchange",h)}),(p,v)=>{const g=Te("a-button"),y=Te("a-doption"),S=Te("a-dropdown");return z(),X("div",fRt,[I("div",hRt,[$(g,{type:"text",onClick:i,class:"close-btn"},{icon:fe(()=>[$(rt(fs))]),default:fe(()=>[v[0]||(v[0]=He(" 关闭阅读器 ",-1))]),_:1})]),I("div",pRt,[I("div",vRt,[I("div",{class:"book-title",title:e.bookTitle},Fe(e.bookTitle),9,mRt),e.chapterName?(z(),X("div",gRt,[I("span",{class:"chapter-name",title:e.chapterName},Fe(e.chapterName),9,yRt),e.chapters.length>0?(z(),X("span",bRt," ("+Fe(e.currentChapterIndex+1)+"/"+Fe(e.chapters.length)+") ",1)):Ie("",!0)])):Ie("",!0)])]),I("div",_Rt,[I("div",SRt,[$(g,{type:"text",disabled:e.currentChapterIndex<=0,onClick:s,class:"nav-btn",title:"上一章 (←)"},{icon:fe(()=>[$(rt(Il))]),_:1},8,["disabled"]),$(g,{type:"text",disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:a,class:"nav-btn",title:"下一章 (→)"},{icon:fe(()=>[$(rt(Hi))]),_:1},8,["disabled"])]),$(S,{onSelect:l,trigger:"click",position:"bottom"},{content:fe(()=>[I("div",kRt,[I("div",xRt,[v[2]||(v[2]=I("span",null,"章节列表",-1)),I("span",CRt,"(共"+Fe(e.chapters.length)+"章)",1)]),I("div",wRt,[(z(!0),X(Pt,null,cn(e.chapters,(k,C)=>(z(),Ze(y,{key:C,value:C,class:de({"current-chapter":C===e.currentChapterIndex})},{default:fe(()=>[I("div",ERt,[I("span",TRt,Fe(C+1)+".",1),I("span",{class:"chapter-title",title:k.name},Fe(k.name),9,ARt),C===e.currentChapterIndex?(z(),Ze(rt(rg),{key:0,class:"current-icon"})):Ie("",!0)])]),_:2},1032,["value","class"]))),128))])])]),default:fe(()=>[$(g,{type:"text",class:"chapter-list-btn",title:"章节列表"},{icon:fe(()=>[$(rt(iW))]),default:fe(()=>[v[1]||(v[1]=He(" 章节 ",-1))]),_:1})]),_:1}),$(g,{type:"text",onClick:c,class:"settings-btn",title:"阅读设置"},{icon:fe(()=>[$(rt(Lf))]),default:fe(()=>[v[3]||(v[3]=He(" 设置 ",-1))]),_:1}),$(g,{type:"text",onClick:d,class:"fullscreen-btn",title:r.value?"退出全屏":"全屏阅读"},{icon:fe(()=>[r.value?(z(),Ze(rt(oW),{key:0})):(z(),Ze(rt(X5),{key:1}))]),_:1},8,["title"])])])}}},LRt=cr(IRt,[["__scopeId","data-v-28cb62d6"]]),DRt={class:"dialog-container"},PRt={class:"settings-content"},RRt={class:"setting-section"},MRt={class:"section-title"},$Rt={class:"setting-item"},ORt={class:"font-size-controls"},BRt={class:"font-size-value"},NRt={class:"setting-item"},FRt={class:"setting-item"},jRt={class:"setting-item"},VRt={class:"setting-section"},zRt={class:"section-title"},URt={class:"theme-options"},HRt=["onClick"],WRt={class:"theme-name"},GRt={key:0,class:"setting-section"},KRt={class:"section-title"},qRt={class:"color-settings"},YRt={class:"color-item"},XRt={class:"color-item"},ZRt={class:"setting-section"},JRt={class:"section-title"},QRt={class:"dialog-footer"},eMt={class:"action-buttons"},tMt={__name:"ReadingSettingsDialog",props:{visible:{type:Boolean,default:!1},settings:{type:Object,default:()=>({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"})}},emits:["close","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue({...n.settings}),s=[{key:"light",name:"明亮",style:{backgroundColor:"#ffffff",color:"#333333"}},{key:"dark",name:"暗黑",style:{backgroundColor:"#1a1a1a",color:"#e6e6e6"}},{key:"sepia",name:"护眼",style:{backgroundColor:"#f4f1e8",color:"#5c4b37"}},{key:"green",name:"绿豆沙",style:{backgroundColor:"#c7edcc",color:"#2d5016"}},{key:"parchment",name:"羊皮纸",style:{backgroundColor:"#fdf6e3",color:"#657b83"}},{key:"night",name:"夜间护眼",style:{backgroundColor:"#2b2b2b",color:"#c9aa71"}},{key:"blue",name:"蓝光护眼",style:{backgroundColor:"#e8f4f8",color:"#1e3a5f"}},{key:"pink",name:"粉色护眼",style:{backgroundColor:"#fdf2f8",color:"#831843"}},{key:"custom",name:"自定义",style:{backgroundColor:"linear-gradient(45deg, #ff6b6b, #4ecdc4)",color:"#ffffff"}}],l=F(()=>{let g=a.value.backgroundColor,y=a.value.textColor;if(a.value.theme!=="custom"){const S=s.find(k=>k.key===a.value.theme);S&&(g=S.style.backgroundColor,y=S.style.color)}return{fontSize:`${a.value.fontSize}px`,lineHeight:a.value.lineHeight,fontFamily:a.value.fontFamily,backgroundColor:g,color:y,maxWidth:`${a.value.maxWidth}px`}}),c=g=>{const y=a.value.fontSize+g;y>=12&&y<=24&&(a.value.fontSize=y)},d=g=>{a.value.theme=g;const y=s.find(S=>S.key===g);y&&g!=="custom"&&(a.value.backgroundColor=y.style.backgroundColor,a.value.textColor=y.style.color)},h=()=>{a.value={fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"},yt.success("已重置为默认设置")},p=()=>{r("settings-change",{...a.value}),v(),yt.success("阅读设置已保存")},v=()=>{r("close")};return It(()=>n.visible,g=>{i.value=g,g&&(a.value={...n.settings})}),It(()=>n.settings,g=>{a.value={...g}},{deep:!0}),It(i,g=>{g||r("close")}),(g,y)=>{const S=Te("a-button"),k=Te("a-slider"),C=Te("a-option"),x=Te("a-select"),E=Te("a-modal");return z(),Ze(E,{visible:i.value,"onUpdate:visible":y[7]||(y[7]=_=>i.value=_),title:"阅读设置",width:"500px",footer:!1,onCancel:v,class:"reading-settings-dialog"},{default:fe(()=>[I("div",DRt,[I("div",PRt,[I("div",RRt,[I("div",MRt,[$(rt(jve)),y[8]||(y[8]=I("span",null,"字体设置",-1))]),I("div",$Rt,[y[9]||(y[9]=I("label",{class:"setting-label"},"字体大小",-1)),I("div",ORt,[$(S,{size:"small",onClick:y[0]||(y[0]=_=>c(-1)),disabled:a.value.fontSize<=12},{icon:fe(()=>[$(rt($m))]),_:1},8,["disabled"]),I("span",BRt,Fe(a.value.fontSize)+"px",1),$(S,{size:"small",onClick:y[1]||(y[1]=_=>c(1)),disabled:a.value.fontSize>=24},{icon:fe(()=>[$(rt(Cf))]),_:1},8,["disabled"])])]),I("div",NRt,[y[10]||(y[10]=I("label",{class:"setting-label"},"行间距",-1)),$(k,{modelValue:a.value.lineHeight,"onUpdate:modelValue":y[2]||(y[2]=_=>a.value.lineHeight=_),min:1.2,max:2.5,step:.1,"format-tooltip":_=>`${_}`,class:"line-height-slider"},null,8,["modelValue","format-tooltip"])]),I("div",FRt,[y[18]||(y[18]=I("label",{class:"setting-label"},"字体族",-1)),$(x,{modelValue:a.value.fontFamily,"onUpdate:modelValue":y[3]||(y[3]=_=>a.value.fontFamily=_),class:"font-family-select"},{default:fe(()=>[$(C,{value:"system-ui"},{default:fe(()=>[...y[11]||(y[11]=[He("系统默认",-1)])]),_:1}),$(C,{value:"'Microsoft YaHei', sans-serif"},{default:fe(()=>[...y[12]||(y[12]=[He("微软雅黑",-1)])]),_:1}),$(C,{value:"'SimSun', serif"},{default:fe(()=>[...y[13]||(y[13]=[He("宋体",-1)])]),_:1}),$(C,{value:"'KaiTi', serif"},{default:fe(()=>[...y[14]||(y[14]=[He("楷体",-1)])]),_:1}),$(C,{value:"'SimHei', sans-serif"},{default:fe(()=>[...y[15]||(y[15]=[He("黑体",-1)])]),_:1}),$(C,{value:"'Times New Roman', serif"},{default:fe(()=>[...y[16]||(y[16]=[He("Times New Roman",-1)])]),_:1}),$(C,{value:"'Arial', sans-serif"},{default:fe(()=>[...y[17]||(y[17]=[He("Arial",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",jRt,[y[19]||(y[19]=I("label",{class:"setting-label"},"阅读宽度",-1)),$(k,{modelValue:a.value.maxWidth,"onUpdate:modelValue":y[4]||(y[4]=_=>a.value.maxWidth=_),min:600,max:1200,step:50,"format-tooltip":_=>`${_}px`,class:"max-width-slider"},null,8,["modelValue","format-tooltip"])])]),I("div",VRt,[I("div",zRt,[$(rt(uW)),y[20]||(y[20]=I("span",null,"主题设置",-1))]),I("div",URt,[(z(),X(Pt,null,cn(s,_=>I("div",{key:_.key,class:de(["theme-option",{active:a.value.theme===_.key}]),onClick:T=>d(_.key)},[I("div",{class:"theme-preview",style:Ye(_.style)},[...y[21]||(y[21]=[I("div",{class:"preview-text"},"Aa",-1)])],4),I("div",WRt,Fe(_.name),1)],10,HRt)),64))])]),a.value.theme==="custom"?(z(),X("div",GRt,[I("div",KRt,[$(rt(Fve)),y[22]||(y[22]=I("span",null,"自定义颜色",-1))]),I("div",qRt,[I("div",YRt,[y[23]||(y[23]=I("label",{class:"color-label"},"背景颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":y[5]||(y[5]=_=>a.value.backgroundColor=_),class:"color-picker"},null,512),[[Ql,a.value.backgroundColor]])]),I("div",XRt,[y[24]||(y[24]=I("label",{class:"color-label"},"文字颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":y[6]||(y[6]=_=>a.value.textColor=_),class:"color-picker"},null,512),[[Ql,a.value.textColor]])])])])):Ie("",!0),I("div",ZRt,[I("div",JRt,[$(rt(x0)),y[25]||(y[25]=I("span",null,"预览效果",-1))]),I("div",{class:"preview-area",style:Ye(l.value)},[...y[26]||(y[26]=[I("h3",{class:"preview-title"},"第一章 开始的地方",-1),I("p",{class:"preview-text"}," 这是一段示例文字,用于预览当前的阅读设置效果。您可以调整上方的设置来获得最佳的阅读体验。 字体大小、行间距、字体族和颜色主题都会影响阅读的舒适度。 ",-1)])],4)])]),I("div",QRt,[$(S,{onClick:h,class:"reset-btn"},{default:fe(()=>[...y[27]||(y[27]=[He(" 重置默认 ",-1)])]),_:1}),I("div",eMt,[$(S,{onClick:v},{default:fe(()=>[...y[28]||(y[28]=[He(" 取消 ",-1)])]),_:1}),$(S,{type:"primary",onClick:p},{default:fe(()=>[...y[29]||(y[29]=[He(" 保存设置 ",-1)])]),_:1})])])])]),_:1},8,["visible"])}}},nMt=cr(tMt,[["__scopeId","data-v-4de406c1"]]),rMt={key:0,class:"loading-container"},iMt={key:1,class:"error-container"},oMt={key:2,class:"chapter-container"},sMt=["innerHTML"],aMt={class:"chapter-navigation"},lMt={class:"chapter-progress"},uMt={key:3,class:"empty-container"},cMt={__name:"BookReader",props:{visible:{type:Boolean,default:!1},bookTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},bookDetail:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue(""),s=ue(null),l=ue(!1),c=ue({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"}),d=()=>{try{const O=localStorage.getItem("drplayer_reading_settings");if(O){const L=JSON.parse(O);c.value={...c.value,...L}}}catch(O){console.warn("加载阅读设置失败:",O)}},h=()=>{try{localStorage.setItem("drplayer_reading_settings",JSON.stringify(c.value))}catch(O){console.warn("保存阅读设置失败:",O)}},p=F(()=>({backgroundColor:c.value.backgroundColor,color:c.value.textColor})),v=F(()=>({fontSize:`${c.value.fontSize+4}px`,lineHeight:c.value.lineHeight,fontFamily:c.value.fontFamily,color:c.value.textColor})),g=F(()=>({fontSize:`${c.value.fontSize}px`,lineHeight:c.value.lineHeight,fontFamily:c.value.fontFamily,maxWidth:`${c.value.maxWidth}px`,color:c.value.textColor})),y=F(()=>s.value?.content?s.value.content.split(` -`).filter(O=>O.trim()).map(O=>`

${O.trim()}

`).join(""):""),S=O=>{try{if(!O.startsWith("novel://"))throw new Error("不是有效的小说内容格式");const L=O.substring(8),B=JSON.parse(L);if(!B.title||!B.content)throw new Error("小说内容格式不完整");return B}catch(L){throw console.error("解析小说内容失败:",L),new Error("解析小说内容失败: "+L.message)}},k=async O=>{if(!n.chapters[O]){a.value="章节不存在";return}i.value=!0,a.value="",s.value=null;try{const L=n.chapters[O];console.log("加载章节:",L);const B=await Ka.getPlayUrl(n.bookDetail.module,L.url,n.bookDetail.api_url,n.bookDetail.ext);if(console.log("章节内容响应:",B),B&&B.url){const j=S(B.url);s.value=j,console.log("解析后的章节内容:",j)}else throw new Error("获取章节内容失败")}catch(L){console.error("加载章节内容失败:",L),a.value=L.message||"加载章节内容失败",yt.error(a.value)}finally{i.value=!1}},C=()=>{k(n.currentChapterIndex)},x=()=>{r("close")},E=()=>{n.currentChapterIndex{n.currentChapterIndex>0&&r("prev-chapter")},T=O=>{r("chapter-selected",O)},D=O=>{O.showDialog&&(l.value=!0)},P=O=>{c.value={...c.value,...O},h(),r("settings-change",c.value)};It(()=>n.currentChapterIndex,O=>{n.visible&&O>=0&&k(O)},{immediate:!0}),It(()=>n.visible,O=>{O&&n.currentChapterIndex>=0&&k(n.currentChapterIndex)});const M=O=>{if(n.visible)switch(O.key){case"ArrowLeft":O.preventDefault(),_();break;case"ArrowRight":O.preventDefault(),E();break;case"Escape":O.preventDefault(),x();break}};return hn(()=>{d(),document.addEventListener("keydown",M)}),ii(()=>{document.removeEventListener("keydown",M)}),(O,L)=>{const B=Te("a-spin"),j=Te("a-result"),H=Te("a-button"),U=Te("a-empty");return e.visible?(z(),X("div",{key:0,class:"book-reader",style:Ye(p.value)},[$(LRt,{"chapter-name":e.chapterName,"book-title":e.bookTitle,visible:e.visible,chapters:e.chapters,"current-chapter-index":e.currentChapterIndex,"reading-settings":c.value,onClose:x,onSettingsChange:D,onNextChapter:E,onPrevChapter:_,onChapterSelected:T},null,8,["chapter-name","book-title","visible","chapters","current-chapter-index","reading-settings"]),I("div",{class:"reader-content",style:Ye(p.value)},[i.value?(z(),X("div",rMt,[$(B,{size:40}),L[1]||(L[1]=I("div",{class:"loading-text"},"正在加载章节内容...",-1))])):a.value?(z(),X("div",iMt,[$(j,{status:"error",title:a.value},null,8,["title"]),$(H,{type:"primary",onClick:C},{default:fe(()=>[...L[2]||(L[2]=[He("重新加载",-1)])]),_:1})])):s.value?(z(),X("div",oMt,[I("h1",{class:"chapter-title",style:Ye(v.value)},Fe(s.value.title),5),I("div",{class:"chapter-text",style:Ye(g.value),innerHTML:y.value},null,12,sMt),I("div",aMt,[$(H,{disabled:e.currentChapterIndex<=0,onClick:_,class:"nav-btn prev-btn"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[L[3]||(L[3]=He(" 上一章 ",-1))]),_:1},8,["disabled"]),I("span",lMt,Fe(e.currentChapterIndex+1)+" / "+Fe(e.chapters.length),1),$(H,{disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:E,class:"nav-btn next-btn"},{icon:fe(()=>[$(rt(Hi))]),default:fe(()=>[L[4]||(L[4]=He(" 下一章 ",-1))]),_:1},8,["disabled"])])])):(z(),X("div",uMt,[$(U,{description:"暂无章节内容"})]))],4),$(nMt,{visible:l.value,settings:c.value,onClose:L[0]||(L[0]=K=>l.value=!1),onSettingsChange:P},null,8,["visible","settings"])],4)):Ie("",!0)}}},dMt=cr(cMt,[["__scopeId","data-v-0dd837ef"]]),fMt={class:"reader-header"},hMt={class:"header-left"},pMt={class:"header-center"},vMt={class:"book-info"},mMt=["title"],gMt={key:0,class:"chapter-info"},yMt=["title"],bMt={key:0,class:"chapter-progress"},_Mt={class:"header-right"},SMt={class:"chapter-nav"},kMt={class:"chapter-dropdown"},xMt={class:"chapter-dropdown-header"},CMt={class:"total-count"},wMt={class:"chapter-dropdown-content"},EMt={class:"chapter-option"},TMt={class:"chapter-number"},AMt=["title"],IMt={__name:"ComicReaderHeader",props:{comicTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},visible:{type:Boolean,default:!1},readingSettings:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change","toggle-fullscreen"],setup(e,{emit:t}){const n=t,r=ue(!1),i=()=>{n("close")},a=()=>{n("prev-chapter")},s=()=>{n("next-chapter")},l=p=>{n("chapter-selected",p)},c=()=>{n("settings-change",{showDialog:!0})},d=()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()},h=()=>{r.value=!!document.fullscreenElement};return hn(()=>{document.addEventListener("fullscreenchange",h)}),ii(()=>{document.removeEventListener("fullscreenchange",h)}),(p,v)=>{const g=Te("a-button"),y=Te("a-doption"),S=Te("a-dropdown");return z(),X("div",fMt,[I("div",hMt,[$(g,{type:"text",onClick:i,class:"close-btn"},{icon:fe(()=>[$(rt(fs))]),default:fe(()=>[v[0]||(v[0]=He(" 关闭阅读器 ",-1))]),_:1})]),I("div",pMt,[I("div",vMt,[I("div",{class:"book-title",title:e.comicTitle},Fe(e.comicTitle),9,mMt),e.chapterName?(z(),X("div",gMt,[I("span",{class:"chapter-name",title:e.chapterName},Fe(e.chapterName),9,yMt),e.chapters.length>0?(z(),X("span",bMt," ("+Fe(e.currentChapterIndex+1)+"/"+Fe(e.chapters.length)+") ",1)):Ie("",!0)])):Ie("",!0)])]),I("div",_Mt,[I("div",SMt,[$(g,{type:"text",disabled:e.currentChapterIndex<=0,onClick:a,class:"nav-btn",title:"上一章 (←)"},{icon:fe(()=>[$(rt(Il))]),_:1},8,["disabled"]),$(g,{type:"text",disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:s,class:"nav-btn",title:"下一章 (→)"},{icon:fe(()=>[$(rt(Hi))]),_:1},8,["disabled"])]),$(S,{onSelect:l,trigger:"click",position:"bottom"},{content:fe(()=>[I("div",kMt,[I("div",xMt,[v[2]||(v[2]=I("span",null,"章节列表",-1)),I("span",CMt,"(共"+Fe(e.chapters.length)+"章)",1)]),I("div",wMt,[(z(!0),X(Pt,null,cn(e.chapters,(k,C)=>(z(),Ze(y,{key:C,value:C,class:de({"current-chapter":C===e.currentChapterIndex})},{default:fe(()=>[I("div",EMt,[I("span",TMt,Fe(C+1)+".",1),I("span",{class:"chapter-title",title:k.name},Fe(k.name),9,AMt),C===e.currentChapterIndex?(z(),Ze(rt(rg),{key:0,class:"current-icon"})):Ie("",!0)])]),_:2},1032,["value","class"]))),128))])])]),default:fe(()=>[$(g,{type:"text",class:"chapter-list-btn",title:"章节列表"},{icon:fe(()=>[$(rt(iW))]),default:fe(()=>[v[1]||(v[1]=He(" 章节 ",-1))]),_:1})]),_:1}),$(g,{type:"text",onClick:c,class:"settings-btn",title:"阅读设置"},{icon:fe(()=>[$(rt(Lf))]),default:fe(()=>[v[3]||(v[3]=He(" 设置 ",-1))]),_:1}),$(g,{type:"text",onClick:d,class:"fullscreen-btn",title:r.value?"退出全屏":"全屏阅读"},{icon:fe(()=>[r.value?(z(),Ze(rt(oW),{key:0})):(z(),Ze(rt(X5),{key:1}))]),_:1},8,["title"])])])}}},LMt=cr(IMt,[["__scopeId","data-v-1f6a371c"]]),DMt={class:"comic-settings"},PMt={class:"setting-section"},RMt={class:"setting-item"},MMt={class:"setting-control"},$Mt={class:"setting-value"},OMt={class:"setting-item"},BMt={class:"setting-control"},NMt={class:"setting-value"},FMt={class:"setting-item"},jMt={class:"setting-control"},VMt={class:"setting-value"},zMt={class:"setting-section"},UMt={class:"setting-item"},HMt={class:"setting-item"},WMt={class:"setting-item"},GMt={class:"setting-control"},KMt={class:"setting-value"},qMt={class:"setting-section"},YMt={class:"theme-options"},XMt=["onClick"],ZMt={class:"theme-name"},JMt={key:0,class:"setting-section"},QMt={class:"color-settings"},e9t={class:"color-item"},t9t={class:"color-item"},n9t={class:"setting-actions"},r9t={__name:"ComicSettingsDialog",props:{visible:{type:Boolean,default:!1},settings:{type:Object,default:()=>({})}},emits:["close","settings-change"],setup(e,{emit:t}){const n=e,r=t,i={imageWidth:800,imageGap:10,pagePadding:20,readingDirection:"vertical",imageFit:"width",preloadPages:3,backgroundColor:"#000000",textColor:"#ffffff",theme:"dark"},a=ue({...i,...n.settings}),s=[{key:"light",name:"明亮",style:{backgroundColor:"#ffffff",color:"#333333"}},{key:"dark",name:"暗黑",style:{backgroundColor:"#1a1a1a",color:"#e6e6e6"}},{key:"sepia",name:"护眼",style:{backgroundColor:"#f4f1e8",color:"#5c4b37"}},{key:"green",name:"绿豆沙",style:{backgroundColor:"#c7edcc",color:"#2d5016"}},{key:"parchment",name:"羊皮纸",style:{backgroundColor:"#fdf6e3",color:"#657b83"}},{key:"night",name:"夜间护眼",style:{backgroundColor:"#2b2b2b",color:"#c9aa71"}},{key:"blue",name:"蓝光护眼",style:{backgroundColor:"#e8f4f8",color:"#1e3a5f"}},{key:"pink",name:"粉色护眼",style:{backgroundColor:"#fdf2f8",color:"#831843"}},{key:"custom",name:"自定义",style:{backgroundColor:"linear-gradient(45deg, #ff6b6b, #4ecdc4)",color:"#ffffff"}}];It(()=>n.settings,p=>{a.value={...i,...p}},{deep:!0});const l=()=>{r("close")},c=()=>{r("settings-change",{...a.value})},d=p=>{a.value.theme=p;const v=s.find(g=>g.key===p);v&&p!=="custom"&&(a.value.backgroundColor=v.style.backgroundColor,a.value.textColor=v.style.color),c()},h=()=>{a.value={...i},c()};return(p,v)=>{const g=Te("a-slider"),y=Te("a-radio"),S=Te("a-radio-group"),k=Te("a-option"),C=Te("a-select"),x=Te("a-button"),E=Te("a-modal");return z(),Ze(E,{visible:e.visible,title:"漫画阅读设置",width:480,footer:!1,onCancel:l,"unmount-on-close":""},{default:fe(()=>[I("div",DMt,[I("div",PMt,[v[11]||(v[11]=I("h3",{class:"section-title"},"显示设置",-1)),I("div",RMt,[v[8]||(v[8]=I("label",{class:"setting-label"},"图片宽度",-1)),I("div",MMt,[$(g,{modelValue:a.value.imageWidth,"onUpdate:modelValue":v[0]||(v[0]=_=>a.value.imageWidth=_),min:300,max:1200,step:50,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",$Mt,Fe(a.value.imageWidth)+"px",1)])]),I("div",OMt,[v[9]||(v[9]=I("label",{class:"setting-label"},"图片间距",-1)),I("div",BMt,[$(g,{modelValue:a.value.imageGap,"onUpdate:modelValue":v[1]||(v[1]=_=>a.value.imageGap=_),min:0,max:50,step:5,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",NMt,Fe(a.value.imageGap)+"px",1)])]),I("div",FMt,[v[10]||(v[10]=I("label",{class:"setting-label"},"页面边距",-1)),I("div",jMt,[$(g,{modelValue:a.value.pagePadding,"onUpdate:modelValue":v[2]||(v[2]=_=>a.value.pagePadding=_),min:10,max:100,step:10,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",VMt,Fe(a.value.pagePadding)+"px",1)])])]),I("div",zMt,[v[21]||(v[21]=I("h3",{class:"section-title"},"阅读模式",-1)),I("div",UMt,[v[14]||(v[14]=I("label",{class:"setting-label"},"阅读方向",-1)),$(S,{modelValue:a.value.readingDirection,"onUpdate:modelValue":v[3]||(v[3]=_=>a.value.readingDirection=_),onChange:c},{default:fe(()=>[$(y,{value:"vertical"},{default:fe(()=>[...v[12]||(v[12]=[He("垂直滚动",-1)])]),_:1}),$(y,{value:"horizontal"},{default:fe(()=>[...v[13]||(v[13]=[He("水平翻页",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",HMt,[v[19]||(v[19]=I("label",{class:"setting-label"},"图片适应",-1)),$(C,{modelValue:a.value.imageFit,"onUpdate:modelValue":v[4]||(v[4]=_=>a.value.imageFit=_),onChange:c,style:{width:"200px"}},{default:fe(()=>[$(k,{value:"width"},{default:fe(()=>[...v[15]||(v[15]=[He("适应宽度",-1)])]),_:1}),$(k,{value:"height"},{default:fe(()=>[...v[16]||(v[16]=[He("适应高度",-1)])]),_:1}),$(k,{value:"contain"},{default:fe(()=>[...v[17]||(v[17]=[He("完整显示",-1)])]),_:1}),$(k,{value:"cover"},{default:fe(()=>[...v[18]||(v[18]=[He("填充显示",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",WMt,[v[20]||(v[20]=I("label",{class:"setting-label"},"预加载页数",-1)),I("div",GMt,[$(g,{modelValue:a.value.preloadPages,"onUpdate:modelValue":v[5]||(v[5]=_=>a.value.preloadPages=_),min:1,max:10,step:1,"show-tooltip":!0,"format-tooltip":_=>`${_}页`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",KMt,Fe(a.value.preloadPages)+"页",1)])])]),I("div",qMt,[v[23]||(v[23]=I("h3",{class:"section-title"},"主题设置",-1)),I("div",YMt,[(z(),X(Pt,null,cn(s,_=>I("div",{key:_.key,class:de(["theme-option",{active:a.value.theme===_.key}]),onClick:T=>d(_.key)},[I("div",{class:"theme-preview",style:Ye(_.style)},[...v[22]||(v[22]=[I("div",{class:"preview-text"},"Aa",-1)])],4),I("div",ZMt,Fe(_.name),1)],10,XMt)),64))])]),a.value.theme==="custom"?(z(),X("div",JMt,[v[26]||(v[26]=I("h3",{class:"section-title"},"自定义颜色",-1)),I("div",QMt,[I("div",e9t,[v[24]||(v[24]=I("label",{class:"color-label"},"背景颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":v[6]||(v[6]=_=>a.value.backgroundColor=_),class:"color-picker",onChange:c},null,544),[[Ql,a.value.backgroundColor]])]),I("div",t9t,[v[25]||(v[25]=I("label",{class:"color-label"},"文字颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":v[7]||(v[7]=_=>a.value.textColor=_),class:"color-picker",onChange:c},null,544),[[Ql,a.value.textColor]])])])])):Ie("",!0),I("div",n9t,[$(x,{onClick:h,type:"outline"},{default:fe(()=>[...v[27]||(v[27]=[He(" 重置默认 ",-1)])]),_:1}),$(x,{onClick:l,type:"primary"},{default:fe(()=>[...v[28]||(v[28]=[He(" 完成 ",-1)])]),_:1})])])]),_:1},8,["visible"])}}},i9t=cr(r9t,[["__scopeId","data-v-6adf651b"]]),o9t={key:0,class:"comic-reader"},s9t={key:0,class:"loading-container"},a9t={key:1,class:"error-container"},l9t={key:2,class:"comic-container"},u9t={key:0,class:"image-loading"},c9t={key:1,class:"image-error"},d9t=["src","alt","onLoad","onError","onClick"],f9t={key:3,class:"image-index"},h9t={class:"chapter-navigation"},p9t={class:"chapter-info"},v9t={class:"chapter-progress"},m9t={class:"page-progress"},g9t={key:3,class:"empty-container"},y9t={class:"viewer"},b9t=["src","alt","data-source","title"],_9t={__name:"ComicReader",props:{visible:{type:Boolean,default:!1},comicTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},comicDetail:{type:Object,default:()=>({})},comicContent:{type:Object,default:null}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue(""),s=ue([]),l=ue(!1),c=ue([]),d=ue({inline:!1,button:!0,navbar:!0,title:!0,toolbar:{zoomIn:1,zoomOut:1,oneToOne:1,reset:1,prev:1,play:{show:1,size:"large"},next:1,rotateLeft:1,rotateRight:1,flipHorizontal:1,flipVertical:1},tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,backdrop:!0}),h=ue({imageWidth:800,imageGap:10,pagePadding:20,readingDirection:"vertical",imageFit:"width",preloadPages:3,backgroundColor:"#1a1a1a",textColor:"#e6e6e6",theme:"dark",showPageNumber:!0}),p=()=>{try{const q=localStorage.getItem("drplayer_comic_reading_settings");if(q){const Q=JSON.parse(q);h.value={...h.value,...Q}}}catch(q){console.warn("加载漫画阅读设置失败:",q)}},v=()=>{try{localStorage.setItem("drplayer_comic_reading_settings",JSON.stringify(h.value))}catch(q){console.warn("保存漫画阅读设置失败:",q)}},g=F(()=>({backgroundColor:h.value.backgroundColor,color:h.value.textColor,padding:`${h.value.pagePadding}px`})),y=F(()=>({color:h.value.backgroundColor==="#000000"?"#ffffff":"#333333",marginBottom:`${h.value.imageGap*2}px`})),S=F(()=>({gap:`${h.value.imageGap}px`,flexDirection:h.value.readingDirection==="vertical"?"column":"row"})),k=F(()=>({marginBottom:h.value.readingDirection==="vertical"?`${h.value.imageGap}px`:"0"})),C=F(()=>{const q={maxWidth:`${h.value.imageWidth}px`,width:"100%",height:"auto"};switch(h.value.imageFit){case"width":q.width="100%",q.height="auto";break;case"height":q.width="auto",q.height="100vh";break;case"contain":q.objectFit="contain";break;case"cover":q.objectFit="cover";break}return q}),x=q=>{try{if(!q.startsWith("pics://"))throw new Error("不是有效的漫画内容格式");const se=q.substring(7).split("&&").filter(ae=>ae.trim());if(se.length===0)throw new Error("漫画内容为空");return se.map((ae,re)=>({url:ae.trim(),loaded:!1,error:!1,index:re}))}catch(Q){throw console.error("解析漫画内容失败:",Q),new Error("解析漫画内容失败: "+Q.message)}},E=async q=>{i.value=!0,a.value="",s.value=[];try{if(console.log("从props加载漫画内容:",q),q&&q.images&&Array.isArray(q.images))s.value=q.images.map((Q,se)=>({url:Q.trim(),loaded:!1,error:!1,index:se})),await T();else throw new Error("漫画内容格式错误")}catch(Q){console.error("加载漫画内容失败:",Q),a.value=Q.message||"加载漫画内容失败",yt.error(a.value)}finally{i.value=!1}},_=async q=>{if(n.comicContent){await E(n.comicContent);return}if(!n.chapters[q]){a.value="章节不存在";return}i.value=!0,a.value="",s.value=[];try{const Q=n.chapters[q];console.log("加载漫画章节:",Q);const se=await Ka.getPlayUrl(n.comicDetail.module,Q.url,n.comicDetail.api_url,n.comicDetail.ext);if(console.log("漫画章节内容响应:",se),se&&se.url){const ae=x(se.url);s.value=ae,console.log("解析后的漫画图片:",ae),await T()}else throw new Error("获取漫画内容失败")}catch(Q){console.error("加载漫画章节内容失败:",Q),a.value=Q.message||"加载漫画章节内容失败",yt.error(a.value)}finally{i.value=!1}},T=async()=>{const q=Math.min(h.value.preloadPages,s.value.length);for(let Q=0;Qnew Promise((Q,se)=>{const ae=new Image;ae.onload=()=>Q(ae),ae.onerror=()=>se(new Error("图片加载失败")),ae.src=q}),P=q=>{s.value[q]&&(s.value[q].loaded=!0,s.value[q].error=!1)},M=q=>{s.value[q]&&(s.value[q].loaded=!1,s.value[q].error=!0)},O=()=>{c.value=s.value.map((q,Q)=>({src:q.url,alt:`第${Q+1}页`,title:`${n.chapterName||"漫画"} - 第${Q+1}页`}))},L=q=>{O(),dn(()=>{const Q=document.querySelector(".viewer");if(Q){const se=Q.querySelectorAll("img");se[q]&&se[q].click()}})},B=async q=>{const Q=s.value[q];if(Q){Q.error=!1,Q.loaded=!1;try{await D(Q.url),Q.loaded=!0}catch{Q.error=!0,yt.error(`重新加载第${q+1}页失败`)}}},j=()=>{_(n.currentChapterIndex)},H=()=>{r("close")},U=()=>{n.currentChapterIndex{n.currentChapterIndex>0&&r("prev-chapter")},Y=q=>{r("chapter-selected",q)},ie=q=>{q.showDialog&&(l.value=!0)},te=q=>{h.value={...h.value,...q},v(),r("settings-change",h.value)};It(()=>n.currentChapterIndex,q=>{n.visible&&q>=0&&_(q)},{immediate:!0}),It(()=>n.visible,q=>{q&&n.currentChapterIndex>=0&&_(n.currentChapterIndex)}),It(()=>n.comicContent,q=>{q&&n.visible&&E(q)},{immediate:!0});const W=q=>{if(n.visible)switch(q.key){case"ArrowLeft":q.preventDefault(),K();break;case"ArrowRight":q.preventDefault(),U();break;case"Escape":q.preventDefault(),H();break;case"ArrowUp":q.preventDefault(),window.scrollBy(0,-100);break;case"ArrowDown":q.preventDefault(),window.scrollBy(0,100);break}};return hn(()=>{p(),document.addEventListener("keydown",W)}),ii(()=>{document.removeEventListener("keydown",W)}),(q,Q)=>{const se=Te("a-spin"),ae=Te("a-result"),re=Te("a-button"),Ce=Te("a-empty"),Ve=i3("viewer");return e.visible?(z(),X("div",o9t,[$(LMt,{"chapter-name":e.chapterName,"comic-title":e.comicTitle,visible:e.visible,chapters:e.chapters,"current-chapter-index":e.currentChapterIndex,"reading-settings":h.value,onClose:H,onSettingsChange:ie,onNextChapter:U,onPrevChapter:K,onChapterSelected:Y},null,8,["chapter-name","comic-title","visible","chapters","current-chapter-index","reading-settings"]),I("div",{class:"reader-content",style:Ye(g.value)},[i.value?(z(),X("div",s9t,[$(se,{size:40}),Q[1]||(Q[1]=I("div",{class:"loading-text"},"正在加载漫画内容...",-1))])):a.value?(z(),X("div",a9t,[$(ae,{status:"error",title:a.value},null,8,["title"]),$(re,{type:"primary",onClick:j},{default:fe(()=>[...Q[2]||(Q[2]=[He("重新加载",-1)])]),_:1})])):s.value.length>0?(z(),X("div",l9t,[I("h1",{class:"chapter-title",style:Ye(y.value)},Fe(e.chapterName),5),I("div",{class:"images-container",style:Ye(S.value)},[(z(!0),X(Pt,null,cn(s.value,(ge,xe)=>(z(),X("div",{key:xe,class:"image-wrapper",style:Ye(k.value)},[!ge.loaded&&!ge.error?(z(),X("div",u9t,[$(se,{size:24}),Q[3]||(Q[3]=I("div",{class:"loading-text"},"加载中...",-1))])):ge.error?(z(),X("div",c9t,[$(rt(lA)),Q[5]||(Q[5]=I("div",{class:"error-text"},"图片加载失败",-1)),$(re,{size:"small",onClick:Ge=>B(xe)},{default:fe(()=>[...Q[4]||(Q[4]=[He("重试",-1)])]),_:1},8,["onClick"])])):(z(),X("img",{key:2,src:ge.url,alt:`第${xe+1}页`,class:"comic-image",style:Ye(C.value),onLoad:Ge=>P(xe),onError:Ge=>M(xe),onClick:Ge=>L(xe)},null,44,d9t)),h.value.showPageNumber?(z(),X("div",f9t,Fe(xe+1)+" / "+Fe(s.value.length),1)):Ie("",!0)],4))),128))],4),I("div",h9t,[$(re,{disabled:e.currentChapterIndex<=0,onClick:K,class:"nav-btn prev-btn",size:"large"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[Q[6]||(Q[6]=He(" 上一章 ",-1))]),_:1},8,["disabled"]),I("div",p9t,[I("div",v9t," 第 "+Fe(e.currentChapterIndex+1)+" 章 / 共 "+Fe(e.chapters.length)+" 章 ",1),I("div",m9t,Fe(s.value.length)+" 页 ",1)]),$(re,{disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:U,class:"nav-btn next-btn",size:"large"},{icon:fe(()=>[$(rt(Hi))]),default:fe(()=>[Q[7]||(Q[7]=He(" 下一章 ",-1))]),_:1},8,["disabled"])])])):(z(),X("div",g9t,[$(Ce,{description:"暂无漫画内容"})]))],4),$(i9t,{visible:l.value,settings:h.value,onClose:Q[0]||(Q[0]=ge=>l.value=!1),onSettingsChange:te},null,8,["visible","settings"]),Ai((z(),X("div",y9t,[(z(!0),X(Pt,null,cn(c.value,(ge,xe)=>(z(),X("img",{key:xe,src:ge.src,alt:ge.alt,"data-source":ge.src,title:ge.title},null,8,b9t))),128))])),[[Ve,d.value],[es,!1]])])):Ie("",!0)}}},S9t=cr(_9t,[["__scopeId","data-v-50453960"]]),k9t={class:"add-task-form"},x9t={class:"form-section"},C9t={key:0,class:"novel-info"},w9t={class:"novel-cover"},E9t=["src","alt"],T9t={class:"novel-details"},A9t={class:"novel-author"},I9t={class:"novel-desc"},L9t={class:"novel-meta"},D9t={key:1,class:"no-novel"},P9t={key:0,class:"form-section"},R9t={class:"chapter-selection"},M9t={class:"selection-controls"},$9t={class:"range-selector"},O9t={class:"selected-info"},B9t={class:"chapter-list"},N9t={class:"chapter-grid"},F9t=["onClick"],j9t={class:"chapter-title"},V9t={key:1,class:"form-section"},z9t={class:"download-settings"},U9t={class:"setting-row"},H9t={class:"setting-row"},W9t={class:"setting-row"},G9t={class:"setting-row"},K9t={__name:"AddDownloadTaskDialog",props:{visible:{type:Boolean,default:!1},novelDetail:{type:Object,default:null},chapters:{type:Array,default:()=>[]},sourceName:{type:String,default:""},sourceKey:{type:String,default:""},apiUrl:{type:String,default:""},extend:{type:[String,Object],default:""}},emits:["close","confirm"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue([]),s=ue(1),l=ue(1),c=ue({filename:"",concurrency:3,retryCount:2,interval:1e3}),d=F(()=>n.chapters.length),h=F(()=>n.novelDetail&&a.value.length>0);It(()=>n.visible,E=>{E&&p()}),It(()=>n.novelDetail,E=>{E&&(c.value.filename=E.vod_name+".txt",l.value=d.value)});const p=()=>{a.value=[],s.value=1,l.value=d.value,c.value={filename:n.novelDetail?.vod_name+".txt"||"",concurrency:3,retryCount:2,interval:1e3}},v=()=>{a.value=Array.from({length:d.value},(E,_)=>_)},g=()=>{a.value=[]},y=()=>{const E=Array.from({length:d.value},(_,T)=>T);a.value=E.filter(_=>!a.value.includes(_))},S=()=>{if(s.value>l.value){yt.warning("起始章节不能大于结束章节");return}const E=Math.max(1,s.value)-1,_=Math.min(d.value,l.value);a.value=Array.from({length:_-E},(T,D)=>E+D)},k=E=>{const _=a.value.indexOf(E);_>-1?a.value.splice(_,1):a.value.push(E)},C=()=>{r("close")},x=async()=>{if(!h.value){yt.warning("请选择要下载的章节");return}i.value=!0;try{const E={novelDetail:n.novelDetail,chapters:n.chapters,selectedChapters:a.value,sourceName:n.sourceName,sourceKey:n.sourceKey,apiUrl:n.apiUrl,extend:n.extend,settings:c.value};r("confirm",E)}catch(E){console.error("创建下载任务失败:",E),yt.error("创建下载任务失败")}finally{i.value=!1}};return(E,_)=>{const T=Te("a-empty"),D=Te("a-button"),P=Te("a-button-group"),M=Te("a-input-number"),O=Te("a-checkbox"),L=Te("a-input"),B=Te("a-modal");return z(),Ze(B,{visible:e.visible,title:"新建下载任务",width:"800px","mask-closable":!1,onCancel:C,onOk:x,"confirm-loading":i.value},{footer:fe(()=>[$(D,{onClick:C},{default:fe(()=>[..._[22]||(_[22]=[He("取消",-1)])]),_:1}),$(D,{type:"primary",onClick:x,loading:i.value,disabled:!h.value},{default:fe(()=>[..._[23]||(_[23]=[He(" 开始下载 ",-1)])]),_:1},8,["loading","disabled"])]),default:fe(()=>[I("div",k9t,[I("div",x9t,[_[6]||(_[6]=I("h4",null,"小说信息",-1)),e.novelDetail?(z(),X("div",C9t,[I("div",w9t,[I("img",{src:e.novelDetail.vod_pic,alt:e.novelDetail.vod_name},null,8,E9t)]),I("div",T9t,[I("h3",null,Fe(e.novelDetail.vod_name),1),I("p",A9t,"作者: "+Fe(e.novelDetail.vod_actor||"未知"),1),I("p",I9t,Fe(e.novelDetail.vod_content||"暂无简介"),1),I("div",L9t,[I("span",null,"来源: "+Fe(e.sourceName),1),I("span",null,"总章节: "+Fe(d.value),1)])])])):(z(),X("div",D9t,[$(T,{description:"请从详情页面调用下载功能"})]))]),e.novelDetail?(z(),X("div",P9t,[_[13]||(_[13]=I("h4",null,"章节选择",-1)),I("div",R9t,[I("div",M9t,[$(P,null,{default:fe(()=>[$(D,{onClick:v},{default:fe(()=>[..._[7]||(_[7]=[He("全选",-1)])]),_:1}),$(D,{onClick:g},{default:fe(()=>[..._[8]||(_[8]=[He("全不选",-1)])]),_:1}),$(D,{onClick:y},{default:fe(()=>[..._[9]||(_[9]=[He("反选",-1)])]),_:1})]),_:1}),I("div",$9t,[_[11]||(_[11]=I("span",null,"范围选择:",-1)),$(M,{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=j=>s.value=j),min:1,max:d.value,placeholder:"起始章节",size:"small",style:{width:"100px"}},null,8,["modelValue","max"]),_[12]||(_[12]=I("span",null,"-",-1)),$(M,{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=j=>l.value=j),min:1,max:d.value,placeholder:"结束章节",size:"small",style:{width:"100px"}},null,8,["modelValue","max"]),$(D,{size:"small",onClick:S},{default:fe(()=>[..._[10]||(_[10]=[He("选择范围",-1)])]),_:1})])]),I("div",O9t," 已选择 "+Fe(a.value.length)+" / "+Fe(d.value)+" 章 ",1),I("div",B9t,[I("div",N9t,[(z(!0),X(Pt,null,cn(e.chapters,(j,H)=>(z(),X("div",{key:H,class:de(["chapter-item",{selected:a.value.includes(H)}]),onClick:U=>k(H)},[$(O,{"model-value":a.value.includes(H),onChange:U=>k(H)},null,8,["model-value","onChange"]),I("span",j9t,Fe(j.name||`第${H+1}章`),1)],10,F9t))),128))])])])])):Ie("",!0),e.novelDetail?(z(),X("div",V9t,[_[21]||(_[21]=I("h4",null,"下载设置",-1)),I("div",z9t,[I("div",U9t,[_[14]||(_[14]=I("label",null,"文件名:",-1)),$(L,{modelValue:c.value.filename,"onUpdate:modelValue":_[2]||(_[2]=j=>c.value.filename=j),placeholder:"自动生成",style:{width:"300px"}},null,8,["modelValue"])]),I("div",H9t,[_[15]||(_[15]=I("label",null,"并发数:",-1)),$(M,{modelValue:c.value.concurrency,"onUpdate:modelValue":_[3]||(_[3]=j=>c.value.concurrency=j),min:1,max:10,style:{width:"120px"}},null,8,["modelValue"]),_[16]||(_[16]=I("span",{class:"setting-tip"},"同时下载的章节数量",-1))]),I("div",W9t,[_[17]||(_[17]=I("label",null,"重试次数:",-1)),$(M,{modelValue:c.value.retryCount,"onUpdate:modelValue":_[4]||(_[4]=j=>c.value.retryCount=j),min:0,max:5,style:{width:"120px"}},null,8,["modelValue"]),_[18]||(_[18]=I("span",{class:"setting-tip"},"章节下载失败时的重试次数",-1))]),I("div",G9t,[_[19]||(_[19]=I("label",null,"章节间隔:",-1)),$(M,{modelValue:c.value.interval,"onUpdate:modelValue":_[5]||(_[5]=j=>c.value.interval=j),min:0,max:5e3,style:{width:"120px"}},null,8,["modelValue"]),_[20]||(_[20]=I("span",{class:"setting-tip"},"章节下载间隔时间(毫秒)",-1))])])])):Ie("",!0)])]),_:1},8,["visible","confirm-loading"])}}},q9t=cr(K9t,[["__scopeId","data-v-478714de"]]);class Y9t{constructor(){this.tasks=new Map,this.isDownloading=!1,this.currentTask=null,this.downloadQueue=[],this.maxConcurrent=3,this.activeDownloads=new Set,this.loadTasksFromStorage(),setInterval(()=>{this.saveTasksToStorage()},5e3)}createTask(t,n,r={}){const i=this.generateTaskId(),a={id:i,novelTitle:t.title,novelId:t.id,novelUrl:t.url,novelAuthor:t.author||"未知",novelDescription:t.description||"",novelCover:t.cover||"",totalChapters:n.length,completedChapters:0,failedChapters:0,status:"pending",progress:0,createdAt:Date.now(),updatedAt:Date.now(),settings:{fileName:r.fileName||t.title,concurrent:r.concurrent||3,retryCount:r.retryCount||3,chapterInterval:r.chapterInterval||1e3,...r},chapters:n.map((s,l)=>({index:l,name:s.name||`第${l+1}章`,url:s.url,status:"pending",progress:0,content:"",size:0,error:null,retryCount:0,startTime:null,completeTime:null})),error:null,downloadedSize:0,totalSize:0,startTime:null,completeTime:null};return this.tasks.set(i,a),this.saveTasksToStorage(),a}async startTask(t){const n=this.tasks.get(t);if(!n)throw new Error("任务不存在");n.status!=="downloading"&&(n.status="downloading",n.startTime=n.startTime||Date.now(),n.updatedAt=Date.now(),this.updateTask(n),this.downloadQueue.includes(t)||this.downloadQueue.push(t),this.processDownloadQueue())}pauseTask(t){const n=this.tasks.get(t);if(!n)return;n.status="paused",n.updatedAt=Date.now(),this.updateTask(n);const r=this.downloadQueue.indexOf(t);r>-1&&this.downloadQueue.splice(r,1),this.activeDownloads.delete(t)}cancelTask(t){const n=this.tasks.get(t);n&&(this.pauseTask(t),n.chapters.forEach(r=>{r.status==="downloading"&&(r.status="pending",r.progress=0,r.startTime=null)}),n.status="pending",n.progress=0,this.updateTask(n))}deleteTask(t){this.tasks.get(t)&&(this.cancelTask(t),this.tasks.delete(t),this.saveTasksToStorage())}async retryChapter(t,n){const r=this.tasks.get(t);if(!r)return;const i=r.chapters[n];i&&(i.status="pending",i.error=null,i.retryCount=0,i.progress=0,this.updateTask(r),r.status==="downloading"&&this.downloadChapter(r,i))}async processDownloadQueue(){if(this.downloadQueue.length===0)return;const t=this.downloadQueue[0],n=this.tasks.get(t);if(!n||n.status!=="downloading"){this.downloadQueue.shift(),this.processDownloadQueue();return}this.currentTask=n,await this.downloadTask(n),this.downloadQueue.shift(),this.currentTask=null,this.downloadQueue.length>0&&setTimeout(()=>this.processDownloadQueue(),1e3)}async downloadTask(t){const n=t.chapters.filter(a=>a.status==="pending");if(n.length===0){this.completeTask(t);return}const r=Math.min(t.settings.concurrent,n.length),i=[];for(let a=0;ar.status==="pending");if(!n)break;await this.downloadChapter(t,n),t.settings.chapterInterval>0&&await this.sleep(t.settings.chapterInterval)}}async downloadChapter(t,n){if(n.status==="pending"){n.status="downloading",n.startTime=Date.now(),n.progress=0,this.updateTask(t);try{console.log(`开始下载章节: ${n.name}`);const r={play:n.url,flag:t.settings.flag||"",apiUrl:t.settings.apiUrl||"",extend:t.settings.extend||""},i=await Ka.parseEpisodePlayUrl(t.settings.module,r);console.log("章节播放解析结果:",i);let a=null;if(i.url&&i.url.startsWith("novel://")){const s=i.url.replace("novel://","");a=JSON.parse(s)}else throw new Error("无法解析小说内容,返回的不是小说格式");n.content=a.content||"",n.size=new Blob([n.content]).size,n.status="completed",n.progress=100,n.completeTime=Date.now(),t.completedChapters++,t.downloadedSize+=n.size,console.log(`章节下载完成: ${n.name}`)}catch(r){console.error("下载章节失败:",r),n.status="failed",n.error=r.message,n.retryCount++,t.failedChapters++,n.retryCounti.status==="completed"),r=t.chapters.some(i=>i.status==="failed");n?(t.status="completed",t.completeTime=Date.now()):r?t.status="failed":t.status="paused",t.totalSize=t.chapters.reduce((i,a)=>i+(a.size||0),0),t.updatedAt=Date.now(),this.updateTask(t)}updateTaskProgress(t){const n=t.chapters.filter(r=>r.status==="completed").length;t.progress=Math.round(n/t.totalChapters*100),t.completedChapters=n,t.failedChapters=t.chapters.filter(r=>r.status==="failed").length,t.downloadedSize=t.chapters.filter(r=>r.status==="completed").reduce((r,i)=>r+(i.size||0),0),t.totalSize=t.chapters.reduce((r,i)=>r+(i.size||0),0)}updateTask(t){t.updatedAt=Date.now(),this.tasks.set(t.id,{...t}),this.notifyTaskUpdate(t)}exportToTxt(t){const n=this.tasks.get(t);if(!n)return null;const r=n.chapters.filter(c=>c.status==="completed").sort((c,d)=>c.index-d.index);if(r.length===0)throw new Error("没有已完成的章节可以导出");let i=`${n.novelTitle} + `,Yt=()=>{if(a.value)try{a.value.layers.update({name:"qualityLayer",html:Wt(),style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"flex",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden",alignItems:"center",justifyContent:"center"}}),dn(()=>{const Ot=a.value.layers.qualityLayer;Ot&&Ot.addEventListener("click",sn)}),console.log("显示画质选择layer")}catch(Ot){console.error("显示画质选择layer失败:",Ot)}},sn=Ot=>{const bn=Ot.target.closest(".quality-layer-item"),kr=Ot.target.closest(".quality-layer-close"),sr=Ot.target.closest(".quality-layer-background");if(kr||sr&&Ot.target===sr)An();else if(bn){const zr=parseInt(bn.dataset.qualityIndex);isNaN(zr)||(Xn(zr),An())}},An=()=>{if(a.value)try{const Ot=a.value.layers.qualityLayer;Ot&&Ot.removeEventListener("click",sn),a.value.layers.update({name:"qualityLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"}}),console.log("隐藏画质选择layer")}catch(Ot){console.error("隐藏画质选择layer失败:",Ot)}},un=()=>{if(a.value)try{const Ot=a.value.layers.qualityLayer;Ot&&Ot.style.display!=="none"?An():Yt()}catch(Ot){console.error("切换画质layer失败:",Ot),Yt()}},Xn=Ot=>{console.log("从layer选择画质:",Ot);const bn=M.value[Ot];bn&&qe(bn.name)};It(()=>n.videoUrl,async Ot=>{Ot&&n.visible&&(Jt(),se(),await dn(),await ve(Ot))},{immediate:!0}),It(()=>n.visible,async Ot=>{Ot&&n.videoUrl?(await dn(),await ve(n.videoUrl)):Ot||(s.value&&s.value.destroy(),a.value&&(a.value.destroy(),a.value=null))}),It(()=>n.qualities,()=>{me()},{immediate:!0,deep:!0}),It(()=>n.initialQuality,Ot=>{Ot&&Ot!==P.value&&(P.value=Ot)});const wr=()=>{if(i.value&&a.value){const Ot=rn();Ot!==h.value&&(h.value=Ot,i.value.style.height=`${Ot}px`,a.value.resize())}},ro=()=>{console.log("检测到代理设置变化,重新初始化播放器"),L.value++,n.videoUrl&&n.visible&&dn(()=>{ve(n.videoUrl)})};return hn(()=>{console.log("ArtVideoPlayer 组件已挂载 - 动态高度版本"),window.addEventListener("resize",wr),window.addEventListener("addressSettingsChanged",ro),Q(),me()}),ii(()=>{if(console.log("ArtVideoPlayer 组件即将卸载"),window.removeEventListener("resize",wr),window.removeEventListener("addressSettingsChanged",ro),We(),s.value&&s.value.destroy(),a.value){if(a.value.customPlayer&&a.value.customPlayerFormat){const Ot=a.value.customPlayerFormat;Ob[Ot]&&Ob[Ot](a.value.customPlayer)}a.value.destroy(),a.value=null}}),(Ot,bn)=>{const kr=Te("a-card");return e.visible&&(e.videoUrl||e.needsParsing)?(z(),Ze(kr,{key:0,class:"video-player-section"},{default:fe(()=>[$(nK,{"episode-name":e.episodeName,"player-type":e.playerType,episodes:e.episodes,"auto-next-enabled":g.value,"loop-enabled":y.value,"countdown-enabled":x.value,"skip-enabled":rt(q),"show-debug-button":B.value,qualities:U.value,"current-quality":H.value,"show-parser-selector":e.needsParsing,"needs-parsing":e.needsParsing,"parse-data":e.parseData,onToggleAutoNext:dt,onToggleLoop:Qe,onToggleCountdown:Le,onPlayerChange:ft,onOpenSkipSettings:Ct,onToggleDebug:ht,onProxyChange:wt,onQualityChange:Ke,onParserChange:ct,onClose:at},null,8,["episode-name","player-type","episodes","auto-next-enabled","loop-enabled","countdown-enabled","skip-enabled","show-debug-button","qualities","current-quality","show-parser-selector","needs-parsing","parse-data"]),Ai(I("div",JPt,[I("div",{ref_key:"artPlayerContainer",ref:i,class:"art-player-container"},null,512),C.value?(z(),X("div",QPt,[I("div",eRt,[bn[0]||(bn[0]=I("div",{class:"auto-next-title"},[I("span",null,"即将播放下一集")],-1)),Me()?(z(),X("div",tRt,Ne(Me().name),1)):Ie("",!0),I("div",nRt,Ne(S.value)+" 秒后自动播放 ",1),I("div",{class:"auto-next-buttons"},[I("button",{onClick:$e,class:"btn-play-now"},"立即播放"),I("button",{onClick:We,class:"btn-cancel"},"取消")])])])):Ie("",!0),$(w4e,{visible:rt(K),"skip-intro-enabled":rt(Y),"skip-outro-enabled":rt(ie),"skip-intro-seconds":rt(te),"skip-outro-seconds":rt(W),onClose:rt(Ve),onSave:Rt},null,8,["visible","skip-intro-enabled","skip-outro-enabled","skip-intro-seconds","skip-outro-seconds","onClose"]),$(rK,{visible:T.value,"video-url":O.value||e.videoUrl,headers:e.headers,"player-type":"artplayer","detected-format":D.value,"proxy-url":j.value,onClose:Vt},null,8,["visible","video-url","headers","detected-format","proxy-url"])],512),[[es,n.visible]])]),_:1})):Ie("",!0)}}},D4e=cr(rRt,[["__scopeId","data-v-e22e3fdf"]]),iRt={class:"route-tabs"},oRt={class:"route-name"},sRt={key:0,class:"episodes-section"},aRt={class:"episodes-header"},lRt={class:"episodes-controls"},uRt={class:"episode-text"},cRt={__name:"EpisodeSelector",props:{videoDetail:{type:Object,default:()=>({})},currentRoute:{type:Number,default:0},currentEpisode:{type:Number,default:0}},emits:["route-change","episode-change"],setup(e,{emit:t}){const n=e,r=t,i=ue("asc"),a=ue(localStorage.getItem("episodeDisplayStrategy")||"full"),s=ue(localStorage.getItem("episodeLayoutColumns")||"smart"),l=x=>x?x.split("#").map(E=>{const[_,T]=E.split("$");return{name:_?.trim()||"未知集数",url:T?.trim()||""}}).filter(E=>E.url):[],c=x=>{if(!x)return"未知";switch(a.value){case"simple":const E=x.match(/\d+/);return E?E[0]:x;case"smart":return x.replace(/^(第|集|话|期|EP|Episode)\s*/i,"").replace(/\s*(集|话|期)$/i,"");case"full":default:return x}},d=F(()=>{if(!n.videoDetail?.vod_play_from||!n.videoDetail?.vod_play_url)return[];const x=n.videoDetail.vod_play_from.split("$$$"),E=n.videoDetail.vod_play_url.split("$$$");return x.map((_,T)=>({name:_.trim(),episodes:l(E[T]||"")}))}),h=F(()=>{let x=d.value[n.currentRoute]?.episodes||[];return x=x.map(E=>({...E,displayName:c(E.name)})),i.value==="desc"&&(x=[...x].reverse()),x}),p=F(()=>{if(!h.value.length)return 12;const x=Math.max(...h.value.map(T=>(T.displayName||T.name||"").length)),E=x+1;let _=Math.floor(60/E);return _=Math.max(1,Math.min(12,_)),console.log("智能布局计算:",{maxNameLength:x,buttonWidth:E,columns:_}),_}),v=F(()=>s.value==="smart"?p.value:parseInt(s.value)||12),g=x=>{r("route-change",x)},y=x=>{r("episode-change",x)},S=()=>{i.value=i.value==="asc"?"desc":"asc"},k=x=>{a.value=x,localStorage.setItem("episodeDisplayStrategy",x)},C=x=>{s.value=x,localStorage.setItem("episodeLayoutColumns",x)};return It(a,()=>{}),(x,E)=>{const _=Te("a-badge"),T=Te("a-button"),D=Te("a-option"),P=Te("a-select"),M=Te("a-card"),O=Te("a-empty");return d.value.length>0?(z(),Ze(M,{key:0,class:"play-section"},{default:fe(()=>[E[10]||(E[10]=I("h3",null,"播放线路",-1)),I("div",iRt,[(z(!0),X(Pt,null,cn(d.value,(L,B)=>(z(),Ze(T,{key:B,type:e.currentRoute===B?"primary":"outline",onClick:j=>g(B),class:"route-btn"},{default:fe(()=>[I("span",oRt,Ne(L.name),1),$(_,{count:L.episodes.length,class:"route-badge"},null,8,["count"])]),_:2},1032,["type","onClick"]))),128))]),h.value.length>0?(z(),X("div",sRt,[I("div",aRt,[I("h4",null,"选集列表 ("+Ne(h.value.length)+"集)",1),I("div",lRt,[$(T,{type:"text",size:"small",onClick:S,title:i.value==="asc"?"切换为倒序":"切换为正序",class:"sort-btn"},{icon:fe(()=>[i.value==="asc"?(z(),Ze(rt(Vve),{key:0})):(z(),Ze(rt(zve),{key:1}))]),default:fe(()=>[He(" "+Ne(i.value==="asc"?"正序":"倒序"),1)]),_:1},8,["title"]),$(P,{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=L=>a.value=L),onChange:k,size:"small",class:"strategy-select",style:{width:"150px"},position:"bl","popup-container":"body"},{prefix:fe(()=>[$(rt(Lf))]),default:fe(()=>[$(D,{value:"full"},{default:fe(()=>[...E[2]||(E[2]=[He("完整显示",-1)])]),_:1}),$(D,{value:"smart"},{default:fe(()=>[...E[3]||(E[3]=[He("智能去重",-1)])]),_:1}),$(D,{value:"simple"},{default:fe(()=>[...E[4]||(E[4]=[He("精简显示",-1)])]),_:1})]),_:1},8,["modelValue"]),$(P,{modelValue:s.value,"onUpdate:modelValue":E[1]||(E[1]=L=>s.value=L),onChange:C,size:"small",class:"layout-select",style:{width:"120px"},position:"bl","popup-container":"body"},{prefix:fe(()=>[$(rt(Xve))]),default:fe(()=>[$(D,{value:"smart"},{default:fe(()=>[...E[5]||(E[5]=[He("智能",-1)])]),_:1}),$(D,{value:"12"},{default:fe(()=>[...E[6]||(E[6]=[He("12列",-1)])]),_:1}),$(D,{value:"9"},{default:fe(()=>[...E[7]||(E[7]=[He("9列",-1)])]),_:1}),$(D,{value:"6"},{default:fe(()=>[...E[8]||(E[8]=[He("6列",-1)])]),_:1}),$(D,{value:"3"},{default:fe(()=>[...E[9]||(E[9]=[He("3列",-1)])]),_:1})]),_:1},8,["modelValue"])])]),I("div",{class:"episodes-grid",style:Ye({"--episodes-columns":v.value})},[(z(!0),X(Pt,null,cn(h.value,(L,B)=>(z(),Ze(T,{key:B,type:e.currentEpisode===B?"primary":"outline",onClick:j=>y(B),class:"episode-btn",size:"small",title:L.name},{default:fe(()=>[I("span",uRt,Ne(L.displayName||L.name),1)]),_:2},1032,["type","onClick","title"]))),128))],4)])):Ie("",!0)]),_:1})):(z(),Ze(M,{key:1,class:"no-play-section"},{default:fe(()=>[$(O,{description:"暂无播放资源"})]),_:1}))}}},dRt=cr(cRt,[["__scopeId","data-v-1d197d0e"]]),fRt={class:"reader-header"},hRt={class:"header-left"},pRt={class:"header-center"},vRt={class:"book-info"},mRt=["title"],gRt={key:0,class:"chapter-info"},yRt=["title"],bRt={key:0,class:"chapter-progress"},_Rt={class:"header-right"},SRt={class:"chapter-nav"},kRt={class:"chapter-dropdown"},xRt={class:"chapter-dropdown-header"},CRt={class:"total-count"},wRt={class:"chapter-dropdown-content"},ERt={class:"chapter-option"},TRt={class:"chapter-number"},ARt=["title"],IRt={__name:"ReaderHeader",props:{bookTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},visible:{type:Boolean,default:!1},readingSettings:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=t,r=ue(!1),i=()=>{n("close")},a=()=>{n("next-chapter")},s=()=>{n("prev-chapter")},l=p=>{n("chapter-selected",p)},c=()=>{n("settings-change",{showDialog:!0})},d=async()=>{try{document.fullscreenElement?(await document.exitFullscreen(),r.value=!1):(await document.documentElement.requestFullscreen(),r.value=!0)}catch(p){console.warn("全屏切换失败:",p)}},h=()=>{r.value=!!document.fullscreenElement};return hn(()=>{document.addEventListener("fullscreenchange",h)}),ii(()=>{document.removeEventListener("fullscreenchange",h)}),(p,v)=>{const g=Te("a-button"),y=Te("a-doption"),S=Te("a-dropdown");return z(),X("div",fRt,[I("div",hRt,[$(g,{type:"text",onClick:i,class:"close-btn"},{icon:fe(()=>[$(rt(fs))]),default:fe(()=>[v[0]||(v[0]=He(" 关闭阅读器 ",-1))]),_:1})]),I("div",pRt,[I("div",vRt,[I("div",{class:"book-title",title:e.bookTitle},Ne(e.bookTitle),9,mRt),e.chapterName?(z(),X("div",gRt,[I("span",{class:"chapter-name",title:e.chapterName},Ne(e.chapterName),9,yRt),e.chapters.length>0?(z(),X("span",bRt," ("+Ne(e.currentChapterIndex+1)+"/"+Ne(e.chapters.length)+") ",1)):Ie("",!0)])):Ie("",!0)])]),I("div",_Rt,[I("div",SRt,[$(g,{type:"text",disabled:e.currentChapterIndex<=0,onClick:s,class:"nav-btn",title:"上一章 (←)"},{icon:fe(()=>[$(rt(Il))]),_:1},8,["disabled"]),$(g,{type:"text",disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:a,class:"nav-btn",title:"下一章 (→)"},{icon:fe(()=>[$(rt(Hi))]),_:1},8,["disabled"])]),$(S,{onSelect:l,trigger:"click",position:"bottom"},{content:fe(()=>[I("div",kRt,[I("div",xRt,[v[2]||(v[2]=I("span",null,"章节列表",-1)),I("span",CRt,"(共"+Ne(e.chapters.length)+"章)",1)]),I("div",wRt,[(z(!0),X(Pt,null,cn(e.chapters,(k,C)=>(z(),Ze(y,{key:C,value:C,class:de({"current-chapter":C===e.currentChapterIndex})},{default:fe(()=>[I("div",ERt,[I("span",TRt,Ne(C+1)+".",1),I("span",{class:"chapter-title",title:k.name},Ne(k.name),9,ARt),C===e.currentChapterIndex?(z(),Ze(rt(rg),{key:0,class:"current-icon"})):Ie("",!0)])]),_:2},1032,["value","class"]))),128))])])]),default:fe(()=>[$(g,{type:"text",class:"chapter-list-btn",title:"章节列表"},{icon:fe(()=>[$(rt(iW))]),default:fe(()=>[v[1]||(v[1]=He(" 章节 ",-1))]),_:1})]),_:1}),$(g,{type:"text",onClick:c,class:"settings-btn",title:"阅读设置"},{icon:fe(()=>[$(rt(Lf))]),default:fe(()=>[v[3]||(v[3]=He(" 设置 ",-1))]),_:1}),$(g,{type:"text",onClick:d,class:"fullscreen-btn",title:r.value?"退出全屏":"全屏阅读"},{icon:fe(()=>[r.value?(z(),Ze(rt(oW),{key:0})):(z(),Ze(rt(X5),{key:1}))]),_:1},8,["title"])])])}}},LRt=cr(IRt,[["__scopeId","data-v-28cb62d6"]]),DRt={class:"dialog-container"},PRt={class:"settings-content"},RRt={class:"setting-section"},MRt={class:"section-title"},$Rt={class:"setting-item"},ORt={class:"font-size-controls"},BRt={class:"font-size-value"},NRt={class:"setting-item"},FRt={class:"setting-item"},jRt={class:"setting-item"},VRt={class:"setting-section"},zRt={class:"section-title"},URt={class:"theme-options"},HRt=["onClick"],WRt={class:"theme-name"},GRt={key:0,class:"setting-section"},KRt={class:"section-title"},qRt={class:"color-settings"},YRt={class:"color-item"},XRt={class:"color-item"},ZRt={class:"setting-section"},JRt={class:"section-title"},QRt={class:"dialog-footer"},eMt={class:"action-buttons"},tMt={__name:"ReadingSettingsDialog",props:{visible:{type:Boolean,default:!1},settings:{type:Object,default:()=>({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"})}},emits:["close","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue({...n.settings}),s=[{key:"light",name:"明亮",style:{backgroundColor:"#ffffff",color:"#333333"}},{key:"dark",name:"暗黑",style:{backgroundColor:"#1a1a1a",color:"#e6e6e6"}},{key:"sepia",name:"护眼",style:{backgroundColor:"#f4f1e8",color:"#5c4b37"}},{key:"green",name:"绿豆沙",style:{backgroundColor:"#c7edcc",color:"#2d5016"}},{key:"parchment",name:"羊皮纸",style:{backgroundColor:"#fdf6e3",color:"#657b83"}},{key:"night",name:"夜间护眼",style:{backgroundColor:"#2b2b2b",color:"#c9aa71"}},{key:"blue",name:"蓝光护眼",style:{backgroundColor:"#e8f4f8",color:"#1e3a5f"}},{key:"pink",name:"粉色护眼",style:{backgroundColor:"#fdf2f8",color:"#831843"}},{key:"custom",name:"自定义",style:{backgroundColor:"linear-gradient(45deg, #ff6b6b, #4ecdc4)",color:"#ffffff"}}],l=F(()=>{let g=a.value.backgroundColor,y=a.value.textColor;if(a.value.theme!=="custom"){const S=s.find(k=>k.key===a.value.theme);S&&(g=S.style.backgroundColor,y=S.style.color)}return{fontSize:`${a.value.fontSize}px`,lineHeight:a.value.lineHeight,fontFamily:a.value.fontFamily,backgroundColor:g,color:y,maxWidth:`${a.value.maxWidth}px`}}),c=g=>{const y=a.value.fontSize+g;y>=12&&y<=24&&(a.value.fontSize=y)},d=g=>{a.value.theme=g;const y=s.find(S=>S.key===g);y&&g!=="custom"&&(a.value.backgroundColor=y.style.backgroundColor,a.value.textColor=y.style.color)},h=()=>{a.value={fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"},yt.success("已重置为默认设置")},p=()=>{r("settings-change",{...a.value}),v(),yt.success("阅读设置已保存")},v=()=>{r("close")};return It(()=>n.visible,g=>{i.value=g,g&&(a.value={...n.settings})}),It(()=>n.settings,g=>{a.value={...g}},{deep:!0}),It(i,g=>{g||r("close")}),(g,y)=>{const S=Te("a-button"),k=Te("a-slider"),C=Te("a-option"),x=Te("a-select"),E=Te("a-modal");return z(),Ze(E,{visible:i.value,"onUpdate:visible":y[7]||(y[7]=_=>i.value=_),title:"阅读设置",width:"500px",footer:!1,onCancel:v,class:"reading-settings-dialog"},{default:fe(()=>[I("div",DRt,[I("div",PRt,[I("div",RRt,[I("div",MRt,[$(rt(jve)),y[8]||(y[8]=I("span",null,"字体设置",-1))]),I("div",$Rt,[y[9]||(y[9]=I("label",{class:"setting-label"},"字体大小",-1)),I("div",ORt,[$(S,{size:"small",onClick:y[0]||(y[0]=_=>c(-1)),disabled:a.value.fontSize<=12},{icon:fe(()=>[$(rt($m))]),_:1},8,["disabled"]),I("span",BRt,Ne(a.value.fontSize)+"px",1),$(S,{size:"small",onClick:y[1]||(y[1]=_=>c(1)),disabled:a.value.fontSize>=24},{icon:fe(()=>[$(rt(Cf))]),_:1},8,["disabled"])])]),I("div",NRt,[y[10]||(y[10]=I("label",{class:"setting-label"},"行间距",-1)),$(k,{modelValue:a.value.lineHeight,"onUpdate:modelValue":y[2]||(y[2]=_=>a.value.lineHeight=_),min:1.2,max:2.5,step:.1,"format-tooltip":_=>`${_}`,class:"line-height-slider"},null,8,["modelValue","format-tooltip"])]),I("div",FRt,[y[18]||(y[18]=I("label",{class:"setting-label"},"字体族",-1)),$(x,{modelValue:a.value.fontFamily,"onUpdate:modelValue":y[3]||(y[3]=_=>a.value.fontFamily=_),class:"font-family-select"},{default:fe(()=>[$(C,{value:"system-ui"},{default:fe(()=>[...y[11]||(y[11]=[He("系统默认",-1)])]),_:1}),$(C,{value:"'Microsoft YaHei', sans-serif"},{default:fe(()=>[...y[12]||(y[12]=[He("微软雅黑",-1)])]),_:1}),$(C,{value:"'SimSun', serif"},{default:fe(()=>[...y[13]||(y[13]=[He("宋体",-1)])]),_:1}),$(C,{value:"'KaiTi', serif"},{default:fe(()=>[...y[14]||(y[14]=[He("楷体",-1)])]),_:1}),$(C,{value:"'SimHei', sans-serif"},{default:fe(()=>[...y[15]||(y[15]=[He("黑体",-1)])]),_:1}),$(C,{value:"'Times New Roman', serif"},{default:fe(()=>[...y[16]||(y[16]=[He("Times New Roman",-1)])]),_:1}),$(C,{value:"'Arial', sans-serif"},{default:fe(()=>[...y[17]||(y[17]=[He("Arial",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",jRt,[y[19]||(y[19]=I("label",{class:"setting-label"},"阅读宽度",-1)),$(k,{modelValue:a.value.maxWidth,"onUpdate:modelValue":y[4]||(y[4]=_=>a.value.maxWidth=_),min:600,max:1200,step:50,"format-tooltip":_=>`${_}px`,class:"max-width-slider"},null,8,["modelValue","format-tooltip"])])]),I("div",VRt,[I("div",zRt,[$(rt(uW)),y[20]||(y[20]=I("span",null,"主题设置",-1))]),I("div",URt,[(z(),X(Pt,null,cn(s,_=>I("div",{key:_.key,class:de(["theme-option",{active:a.value.theme===_.key}]),onClick:T=>d(_.key)},[I("div",{class:"theme-preview",style:Ye(_.style)},[...y[21]||(y[21]=[I("div",{class:"preview-text"},"Aa",-1)])],4),I("div",WRt,Ne(_.name),1)],10,HRt)),64))])]),a.value.theme==="custom"?(z(),X("div",GRt,[I("div",KRt,[$(rt(Fve)),y[22]||(y[22]=I("span",null,"自定义颜色",-1))]),I("div",qRt,[I("div",YRt,[y[23]||(y[23]=I("label",{class:"color-label"},"背景颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":y[5]||(y[5]=_=>a.value.backgroundColor=_),class:"color-picker"},null,512),[[Ql,a.value.backgroundColor]])]),I("div",XRt,[y[24]||(y[24]=I("label",{class:"color-label"},"文字颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":y[6]||(y[6]=_=>a.value.textColor=_),class:"color-picker"},null,512),[[Ql,a.value.textColor]])])])])):Ie("",!0),I("div",ZRt,[I("div",JRt,[$(rt(x0)),y[25]||(y[25]=I("span",null,"预览效果",-1))]),I("div",{class:"preview-area",style:Ye(l.value)},[...y[26]||(y[26]=[I("h3",{class:"preview-title"},"第一章 开始的地方",-1),I("p",{class:"preview-text"}," 这是一段示例文字,用于预览当前的阅读设置效果。您可以调整上方的设置来获得最佳的阅读体验。 字体大小、行间距、字体族和颜色主题都会影响阅读的舒适度。 ",-1)])],4)])]),I("div",QRt,[$(S,{onClick:h,class:"reset-btn"},{default:fe(()=>[...y[27]||(y[27]=[He(" 重置默认 ",-1)])]),_:1}),I("div",eMt,[$(S,{onClick:v},{default:fe(()=>[...y[28]||(y[28]=[He(" 取消 ",-1)])]),_:1}),$(S,{type:"primary",onClick:p},{default:fe(()=>[...y[29]||(y[29]=[He(" 保存设置 ",-1)])]),_:1})])])])]),_:1},8,["visible"])}}},nMt=cr(tMt,[["__scopeId","data-v-4de406c1"]]),rMt={key:0,class:"loading-container"},iMt={key:1,class:"error-container"},oMt={key:2,class:"chapter-container"},sMt=["innerHTML"],aMt={class:"chapter-navigation"},lMt={class:"chapter-progress"},uMt={key:3,class:"empty-container"},cMt={__name:"BookReader",props:{visible:{type:Boolean,default:!1},bookTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},bookDetail:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue(""),s=ue(null),l=ue(!1),c=ue({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"}),d=()=>{try{const O=localStorage.getItem("drplayer_reading_settings");if(O){const L=JSON.parse(O);c.value={...c.value,...L}}}catch(O){console.warn("加载阅读设置失败:",O)}},h=()=>{try{localStorage.setItem("drplayer_reading_settings",JSON.stringify(c.value))}catch(O){console.warn("保存阅读设置失败:",O)}},p=F(()=>({backgroundColor:c.value.backgroundColor,color:c.value.textColor})),v=F(()=>({fontSize:`${c.value.fontSize+4}px`,lineHeight:c.value.lineHeight,fontFamily:c.value.fontFamily,color:c.value.textColor})),g=F(()=>({fontSize:`${c.value.fontSize}px`,lineHeight:c.value.lineHeight,fontFamily:c.value.fontFamily,maxWidth:`${c.value.maxWidth}px`,color:c.value.textColor})),y=F(()=>s.value?.content?s.value.content.split(` +`).filter(O=>O.trim()).map(O=>`

${O.trim()}

`).join(""):""),S=O=>{try{if(!O.startsWith("novel://"))throw new Error("不是有效的小说内容格式");const L=O.substring(8),B=JSON.parse(L);if(!B.title||!B.content)throw new Error("小说内容格式不完整");return B}catch(L){throw console.error("解析小说内容失败:",L),new Error("解析小说内容失败: "+L.message)}},k=async O=>{if(!n.chapters[O]){a.value="章节不存在";return}i.value=!0,a.value="",s.value=null;try{const L=n.chapters[O];console.log("加载章节:",L);const B=await Ka.getPlayUrl(n.bookDetail.module,L.url,n.bookDetail.api_url,n.bookDetail.ext);if(console.log("章节内容响应:",B),B&&B.url){const j=S(B.url);s.value=j,console.log("解析后的章节内容:",j)}else throw new Error("获取章节内容失败")}catch(L){console.error("加载章节内容失败:",L),a.value=L.message||"加载章节内容失败",yt.error(a.value)}finally{i.value=!1}},C=()=>{k(n.currentChapterIndex)},x=()=>{r("close")},E=()=>{n.currentChapterIndex{n.currentChapterIndex>0&&r("prev-chapter")},T=O=>{r("chapter-selected",O)},D=O=>{O.showDialog&&(l.value=!0)},P=O=>{c.value={...c.value,...O},h(),r("settings-change",c.value)};It(()=>n.currentChapterIndex,O=>{n.visible&&O>=0&&k(O)},{immediate:!0}),It(()=>n.visible,O=>{O&&n.currentChapterIndex>=0&&k(n.currentChapterIndex)});const M=O=>{if(n.visible)switch(O.key){case"ArrowLeft":O.preventDefault(),_();break;case"ArrowRight":O.preventDefault(),E();break;case"Escape":O.preventDefault(),x();break}};return hn(()=>{d(),document.addEventListener("keydown",M)}),ii(()=>{document.removeEventListener("keydown",M)}),(O,L)=>{const B=Te("a-spin"),j=Te("a-result"),H=Te("a-button"),U=Te("a-empty");return e.visible?(z(),X("div",{key:0,class:"book-reader",style:Ye(p.value)},[$(LRt,{"chapter-name":e.chapterName,"book-title":e.bookTitle,visible:e.visible,chapters:e.chapters,"current-chapter-index":e.currentChapterIndex,"reading-settings":c.value,onClose:x,onSettingsChange:D,onNextChapter:E,onPrevChapter:_,onChapterSelected:T},null,8,["chapter-name","book-title","visible","chapters","current-chapter-index","reading-settings"]),I("div",{class:"reader-content",style:Ye(p.value)},[i.value?(z(),X("div",rMt,[$(B,{size:40}),L[1]||(L[1]=I("div",{class:"loading-text"},"正在加载章节内容...",-1))])):a.value?(z(),X("div",iMt,[$(j,{status:"error",title:a.value},null,8,["title"]),$(H,{type:"primary",onClick:C},{default:fe(()=>[...L[2]||(L[2]=[He("重新加载",-1)])]),_:1})])):s.value?(z(),X("div",oMt,[I("h1",{class:"chapter-title",style:Ye(v.value)},Ne(s.value.title),5),I("div",{class:"chapter-text",style:Ye(g.value),innerHTML:y.value},null,12,sMt),I("div",aMt,[$(H,{disabled:e.currentChapterIndex<=0,onClick:_,class:"nav-btn prev-btn"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[L[3]||(L[3]=He(" 上一章 ",-1))]),_:1},8,["disabled"]),I("span",lMt,Ne(e.currentChapterIndex+1)+" / "+Ne(e.chapters.length),1),$(H,{disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:E,class:"nav-btn next-btn"},{icon:fe(()=>[$(rt(Hi))]),default:fe(()=>[L[4]||(L[4]=He(" 下一章 ",-1))]),_:1},8,["disabled"])])])):(z(),X("div",uMt,[$(U,{description:"暂无章节内容"})]))],4),$(nMt,{visible:l.value,settings:c.value,onClose:L[0]||(L[0]=K=>l.value=!1),onSettingsChange:P},null,8,["visible","settings"])],4)):Ie("",!0)}}},dMt=cr(cMt,[["__scopeId","data-v-0dd837ef"]]),fMt={class:"reader-header"},hMt={class:"header-left"},pMt={class:"header-center"},vMt={class:"book-info"},mMt=["title"],gMt={key:0,class:"chapter-info"},yMt=["title"],bMt={key:0,class:"chapter-progress"},_Mt={class:"header-right"},SMt={class:"chapter-nav"},kMt={class:"chapter-dropdown"},xMt={class:"chapter-dropdown-header"},CMt={class:"total-count"},wMt={class:"chapter-dropdown-content"},EMt={class:"chapter-option"},TMt={class:"chapter-number"},AMt=["title"],IMt={__name:"ComicReaderHeader",props:{comicTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},visible:{type:Boolean,default:!1},readingSettings:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change","toggle-fullscreen"],setup(e,{emit:t}){const n=t,r=ue(!1),i=()=>{n("close")},a=()=>{n("prev-chapter")},s=()=>{n("next-chapter")},l=p=>{n("chapter-selected",p)},c=()=>{n("settings-change",{showDialog:!0})},d=()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()},h=()=>{r.value=!!document.fullscreenElement};return hn(()=>{document.addEventListener("fullscreenchange",h)}),ii(()=>{document.removeEventListener("fullscreenchange",h)}),(p,v)=>{const g=Te("a-button"),y=Te("a-doption"),S=Te("a-dropdown");return z(),X("div",fMt,[I("div",hMt,[$(g,{type:"text",onClick:i,class:"close-btn"},{icon:fe(()=>[$(rt(fs))]),default:fe(()=>[v[0]||(v[0]=He(" 关闭阅读器 ",-1))]),_:1})]),I("div",pMt,[I("div",vMt,[I("div",{class:"book-title",title:e.comicTitle},Ne(e.comicTitle),9,mMt),e.chapterName?(z(),X("div",gMt,[I("span",{class:"chapter-name",title:e.chapterName},Ne(e.chapterName),9,yMt),e.chapters.length>0?(z(),X("span",bMt," ("+Ne(e.currentChapterIndex+1)+"/"+Ne(e.chapters.length)+") ",1)):Ie("",!0)])):Ie("",!0)])]),I("div",_Mt,[I("div",SMt,[$(g,{type:"text",disabled:e.currentChapterIndex<=0,onClick:a,class:"nav-btn",title:"上一章 (←)"},{icon:fe(()=>[$(rt(Il))]),_:1},8,["disabled"]),$(g,{type:"text",disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:s,class:"nav-btn",title:"下一章 (→)"},{icon:fe(()=>[$(rt(Hi))]),_:1},8,["disabled"])]),$(S,{onSelect:l,trigger:"click",position:"bottom"},{content:fe(()=>[I("div",kMt,[I("div",xMt,[v[2]||(v[2]=I("span",null,"章节列表",-1)),I("span",CMt,"(共"+Ne(e.chapters.length)+"章)",1)]),I("div",wMt,[(z(!0),X(Pt,null,cn(e.chapters,(k,C)=>(z(),Ze(y,{key:C,value:C,class:de({"current-chapter":C===e.currentChapterIndex})},{default:fe(()=>[I("div",EMt,[I("span",TMt,Ne(C+1)+".",1),I("span",{class:"chapter-title",title:k.name},Ne(k.name),9,AMt),C===e.currentChapterIndex?(z(),Ze(rt(rg),{key:0,class:"current-icon"})):Ie("",!0)])]),_:2},1032,["value","class"]))),128))])])]),default:fe(()=>[$(g,{type:"text",class:"chapter-list-btn",title:"章节列表"},{icon:fe(()=>[$(rt(iW))]),default:fe(()=>[v[1]||(v[1]=He(" 章节 ",-1))]),_:1})]),_:1}),$(g,{type:"text",onClick:c,class:"settings-btn",title:"阅读设置"},{icon:fe(()=>[$(rt(Lf))]),default:fe(()=>[v[3]||(v[3]=He(" 设置 ",-1))]),_:1}),$(g,{type:"text",onClick:d,class:"fullscreen-btn",title:r.value?"退出全屏":"全屏阅读"},{icon:fe(()=>[r.value?(z(),Ze(rt(oW),{key:0})):(z(),Ze(rt(X5),{key:1}))]),_:1},8,["title"])])])}}},LMt=cr(IMt,[["__scopeId","data-v-1f6a371c"]]),DMt={class:"comic-settings"},PMt={class:"setting-section"},RMt={class:"setting-item"},MMt={class:"setting-control"},$Mt={class:"setting-value"},OMt={class:"setting-item"},BMt={class:"setting-control"},NMt={class:"setting-value"},FMt={class:"setting-item"},jMt={class:"setting-control"},VMt={class:"setting-value"},zMt={class:"setting-section"},UMt={class:"setting-item"},HMt={class:"setting-item"},WMt={class:"setting-item"},GMt={class:"setting-control"},KMt={class:"setting-value"},qMt={class:"setting-section"},YMt={class:"theme-options"},XMt=["onClick"],ZMt={class:"theme-name"},JMt={key:0,class:"setting-section"},QMt={class:"color-settings"},e9t={class:"color-item"},t9t={class:"color-item"},n9t={class:"setting-actions"},r9t={__name:"ComicSettingsDialog",props:{visible:{type:Boolean,default:!1},settings:{type:Object,default:()=>({})}},emits:["close","settings-change"],setup(e,{emit:t}){const n=e,r=t,i={imageWidth:800,imageGap:10,pagePadding:20,readingDirection:"vertical",imageFit:"width",preloadPages:3,backgroundColor:"#000000",textColor:"#ffffff",theme:"dark"},a=ue({...i,...n.settings}),s=[{key:"light",name:"明亮",style:{backgroundColor:"#ffffff",color:"#333333"}},{key:"dark",name:"暗黑",style:{backgroundColor:"#1a1a1a",color:"#e6e6e6"}},{key:"sepia",name:"护眼",style:{backgroundColor:"#f4f1e8",color:"#5c4b37"}},{key:"green",name:"绿豆沙",style:{backgroundColor:"#c7edcc",color:"#2d5016"}},{key:"parchment",name:"羊皮纸",style:{backgroundColor:"#fdf6e3",color:"#657b83"}},{key:"night",name:"夜间护眼",style:{backgroundColor:"#2b2b2b",color:"#c9aa71"}},{key:"blue",name:"蓝光护眼",style:{backgroundColor:"#e8f4f8",color:"#1e3a5f"}},{key:"pink",name:"粉色护眼",style:{backgroundColor:"#fdf2f8",color:"#831843"}},{key:"custom",name:"自定义",style:{backgroundColor:"linear-gradient(45deg, #ff6b6b, #4ecdc4)",color:"#ffffff"}}];It(()=>n.settings,p=>{a.value={...i,...p}},{deep:!0});const l=()=>{r("close")},c=()=>{r("settings-change",{...a.value})},d=p=>{a.value.theme=p;const v=s.find(g=>g.key===p);v&&p!=="custom"&&(a.value.backgroundColor=v.style.backgroundColor,a.value.textColor=v.style.color),c()},h=()=>{a.value={...i},c()};return(p,v)=>{const g=Te("a-slider"),y=Te("a-radio"),S=Te("a-radio-group"),k=Te("a-option"),C=Te("a-select"),x=Te("a-button"),E=Te("a-modal");return z(),Ze(E,{visible:e.visible,title:"漫画阅读设置",width:480,footer:!1,onCancel:l,"unmount-on-close":""},{default:fe(()=>[I("div",DMt,[I("div",PMt,[v[11]||(v[11]=I("h3",{class:"section-title"},"显示设置",-1)),I("div",RMt,[v[8]||(v[8]=I("label",{class:"setting-label"},"图片宽度",-1)),I("div",MMt,[$(g,{modelValue:a.value.imageWidth,"onUpdate:modelValue":v[0]||(v[0]=_=>a.value.imageWidth=_),min:300,max:1200,step:50,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",$Mt,Ne(a.value.imageWidth)+"px",1)])]),I("div",OMt,[v[9]||(v[9]=I("label",{class:"setting-label"},"图片间距",-1)),I("div",BMt,[$(g,{modelValue:a.value.imageGap,"onUpdate:modelValue":v[1]||(v[1]=_=>a.value.imageGap=_),min:0,max:50,step:5,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",NMt,Ne(a.value.imageGap)+"px",1)])]),I("div",FMt,[v[10]||(v[10]=I("label",{class:"setting-label"},"页面边距",-1)),I("div",jMt,[$(g,{modelValue:a.value.pagePadding,"onUpdate:modelValue":v[2]||(v[2]=_=>a.value.pagePadding=_),min:10,max:100,step:10,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",VMt,Ne(a.value.pagePadding)+"px",1)])])]),I("div",zMt,[v[21]||(v[21]=I("h3",{class:"section-title"},"阅读模式",-1)),I("div",UMt,[v[14]||(v[14]=I("label",{class:"setting-label"},"阅读方向",-1)),$(S,{modelValue:a.value.readingDirection,"onUpdate:modelValue":v[3]||(v[3]=_=>a.value.readingDirection=_),onChange:c},{default:fe(()=>[$(y,{value:"vertical"},{default:fe(()=>[...v[12]||(v[12]=[He("垂直滚动",-1)])]),_:1}),$(y,{value:"horizontal"},{default:fe(()=>[...v[13]||(v[13]=[He("水平翻页",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",HMt,[v[19]||(v[19]=I("label",{class:"setting-label"},"图片适应",-1)),$(C,{modelValue:a.value.imageFit,"onUpdate:modelValue":v[4]||(v[4]=_=>a.value.imageFit=_),onChange:c,style:{width:"200px"}},{default:fe(()=>[$(k,{value:"width"},{default:fe(()=>[...v[15]||(v[15]=[He("适应宽度",-1)])]),_:1}),$(k,{value:"height"},{default:fe(()=>[...v[16]||(v[16]=[He("适应高度",-1)])]),_:1}),$(k,{value:"contain"},{default:fe(()=>[...v[17]||(v[17]=[He("完整显示",-1)])]),_:1}),$(k,{value:"cover"},{default:fe(()=>[...v[18]||(v[18]=[He("填充显示",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",WMt,[v[20]||(v[20]=I("label",{class:"setting-label"},"预加载页数",-1)),I("div",GMt,[$(g,{modelValue:a.value.preloadPages,"onUpdate:modelValue":v[5]||(v[5]=_=>a.value.preloadPages=_),min:1,max:10,step:1,"show-tooltip":!0,"format-tooltip":_=>`${_}页`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",KMt,Ne(a.value.preloadPages)+"页",1)])])]),I("div",qMt,[v[23]||(v[23]=I("h3",{class:"section-title"},"主题设置",-1)),I("div",YMt,[(z(),X(Pt,null,cn(s,_=>I("div",{key:_.key,class:de(["theme-option",{active:a.value.theme===_.key}]),onClick:T=>d(_.key)},[I("div",{class:"theme-preview",style:Ye(_.style)},[...v[22]||(v[22]=[I("div",{class:"preview-text"},"Aa",-1)])],4),I("div",ZMt,Ne(_.name),1)],10,XMt)),64))])]),a.value.theme==="custom"?(z(),X("div",JMt,[v[26]||(v[26]=I("h3",{class:"section-title"},"自定义颜色",-1)),I("div",QMt,[I("div",e9t,[v[24]||(v[24]=I("label",{class:"color-label"},"背景颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":v[6]||(v[6]=_=>a.value.backgroundColor=_),class:"color-picker",onChange:c},null,544),[[Ql,a.value.backgroundColor]])]),I("div",t9t,[v[25]||(v[25]=I("label",{class:"color-label"},"文字颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":v[7]||(v[7]=_=>a.value.textColor=_),class:"color-picker",onChange:c},null,544),[[Ql,a.value.textColor]])])])])):Ie("",!0),I("div",n9t,[$(x,{onClick:h,type:"outline"},{default:fe(()=>[...v[27]||(v[27]=[He(" 重置默认 ",-1)])]),_:1}),$(x,{onClick:l,type:"primary"},{default:fe(()=>[...v[28]||(v[28]=[He(" 完成 ",-1)])]),_:1})])])]),_:1},8,["visible"])}}},i9t=cr(r9t,[["__scopeId","data-v-6adf651b"]]),o9t={key:0,class:"comic-reader"},s9t={key:0,class:"loading-container"},a9t={key:1,class:"error-container"},l9t={key:2,class:"comic-container"},u9t={key:0,class:"image-loading"},c9t={key:1,class:"image-error"},d9t=["src","alt","onLoad","onError","onClick"],f9t={key:3,class:"image-index"},h9t={class:"chapter-navigation"},p9t={class:"chapter-info"},v9t={class:"chapter-progress"},m9t={class:"page-progress"},g9t={key:3,class:"empty-container"},y9t={class:"viewer"},b9t=["src","alt","data-source","title"],_9t={__name:"ComicReader",props:{visible:{type:Boolean,default:!1},comicTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},comicDetail:{type:Object,default:()=>({})},comicContent:{type:Object,default:null}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue(""),s=ue([]),l=ue(!1),c=ue([]),d=ue({inline:!1,button:!0,navbar:!0,title:!0,toolbar:{zoomIn:1,zoomOut:1,oneToOne:1,reset:1,prev:1,play:{show:1,size:"large"},next:1,rotateLeft:1,rotateRight:1,flipHorizontal:1,flipVertical:1},tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,backdrop:!0}),h=ue({imageWidth:800,imageGap:10,pagePadding:20,readingDirection:"vertical",imageFit:"width",preloadPages:3,backgroundColor:"#1a1a1a",textColor:"#e6e6e6",theme:"dark",showPageNumber:!0}),p=()=>{try{const q=localStorage.getItem("drplayer_comic_reading_settings");if(q){const Q=JSON.parse(q);h.value={...h.value,...Q}}}catch(q){console.warn("加载漫画阅读设置失败:",q)}},v=()=>{try{localStorage.setItem("drplayer_comic_reading_settings",JSON.stringify(h.value))}catch(q){console.warn("保存漫画阅读设置失败:",q)}},g=F(()=>({backgroundColor:h.value.backgroundColor,color:h.value.textColor,padding:`${h.value.pagePadding}px`})),y=F(()=>({color:h.value.backgroundColor==="#000000"?"#ffffff":"#333333",marginBottom:`${h.value.imageGap*2}px`})),S=F(()=>({gap:`${h.value.imageGap}px`,flexDirection:h.value.readingDirection==="vertical"?"column":"row"})),k=F(()=>({marginBottom:h.value.readingDirection==="vertical"?`${h.value.imageGap}px`:"0"})),C=F(()=>{const q={maxWidth:`${h.value.imageWidth}px`,width:"100%",height:"auto"};switch(h.value.imageFit){case"width":q.width="100%",q.height="auto";break;case"height":q.width="auto",q.height="100vh";break;case"contain":q.objectFit="contain";break;case"cover":q.objectFit="cover";break}return q}),x=q=>{try{if(!q.startsWith("pics://"))throw new Error("不是有效的漫画内容格式");const se=q.substring(7).split("&&").filter(ae=>ae.trim());if(se.length===0)throw new Error("漫画内容为空");return se.map((ae,re)=>({url:ae.trim(),loaded:!1,error:!1,index:re}))}catch(Q){throw console.error("解析漫画内容失败:",Q),new Error("解析漫画内容失败: "+Q.message)}},E=async q=>{i.value=!0,a.value="",s.value=[];try{if(console.log("从props加载漫画内容:",q),q&&q.images&&Array.isArray(q.images))s.value=q.images.map((Q,se)=>({url:Q.trim(),loaded:!1,error:!1,index:se})),await T();else throw new Error("漫画内容格式错误")}catch(Q){console.error("加载漫画内容失败:",Q),a.value=Q.message||"加载漫画内容失败",yt.error(a.value)}finally{i.value=!1}},_=async q=>{if(n.comicContent){await E(n.comicContent);return}if(!n.chapters[q]){a.value="章节不存在";return}i.value=!0,a.value="",s.value=[];try{const Q=n.chapters[q];console.log("加载漫画章节:",Q);const se=await Ka.getPlayUrl(n.comicDetail.module,Q.url,n.comicDetail.api_url,n.comicDetail.ext);if(console.log("漫画章节内容响应:",se),se&&se.url){const ae=x(se.url);s.value=ae,console.log("解析后的漫画图片:",ae),await T()}else throw new Error("获取漫画内容失败")}catch(Q){console.error("加载漫画章节内容失败:",Q),a.value=Q.message||"加载漫画章节内容失败",yt.error(a.value)}finally{i.value=!1}},T=async()=>{const q=Math.min(h.value.preloadPages,s.value.length);for(let Q=0;Qnew Promise((Q,se)=>{const ae=new Image;ae.onload=()=>Q(ae),ae.onerror=()=>se(new Error("图片加载失败")),ae.src=q}),P=q=>{s.value[q]&&(s.value[q].loaded=!0,s.value[q].error=!1)},M=q=>{s.value[q]&&(s.value[q].loaded=!1,s.value[q].error=!0)},O=()=>{c.value=s.value.map((q,Q)=>({src:q.url,alt:`第${Q+1}页`,title:`${n.chapterName||"漫画"} - 第${Q+1}页`}))},L=q=>{O(),dn(()=>{const Q=document.querySelector(".viewer");if(Q){const se=Q.querySelectorAll("img");se[q]&&se[q].click()}})},B=async q=>{const Q=s.value[q];if(Q){Q.error=!1,Q.loaded=!1;try{await D(Q.url),Q.loaded=!0}catch{Q.error=!0,yt.error(`重新加载第${q+1}页失败`)}}},j=()=>{_(n.currentChapterIndex)},H=()=>{r("close")},U=()=>{n.currentChapterIndex{n.currentChapterIndex>0&&r("prev-chapter")},Y=q=>{r("chapter-selected",q)},ie=q=>{q.showDialog&&(l.value=!0)},te=q=>{h.value={...h.value,...q},v(),r("settings-change",h.value)};It(()=>n.currentChapterIndex,q=>{n.visible&&q>=0&&_(q)},{immediate:!0}),It(()=>n.visible,q=>{q&&n.currentChapterIndex>=0&&_(n.currentChapterIndex)}),It(()=>n.comicContent,q=>{q&&n.visible&&E(q)},{immediate:!0});const W=q=>{if(n.visible)switch(q.key){case"ArrowLeft":q.preventDefault(),K();break;case"ArrowRight":q.preventDefault(),U();break;case"Escape":q.preventDefault(),H();break;case"ArrowUp":q.preventDefault(),window.scrollBy(0,-100);break;case"ArrowDown":q.preventDefault(),window.scrollBy(0,100);break}};return hn(()=>{p(),document.addEventListener("keydown",W)}),ii(()=>{document.removeEventListener("keydown",W)}),(q,Q)=>{const se=Te("a-spin"),ae=Te("a-result"),re=Te("a-button"),Ce=Te("a-empty"),Ve=i3("viewer");return e.visible?(z(),X("div",o9t,[$(LMt,{"chapter-name":e.chapterName,"comic-title":e.comicTitle,visible:e.visible,chapters:e.chapters,"current-chapter-index":e.currentChapterIndex,"reading-settings":h.value,onClose:H,onSettingsChange:ie,onNextChapter:U,onPrevChapter:K,onChapterSelected:Y},null,8,["chapter-name","comic-title","visible","chapters","current-chapter-index","reading-settings"]),I("div",{class:"reader-content",style:Ye(g.value)},[i.value?(z(),X("div",s9t,[$(se,{size:40}),Q[1]||(Q[1]=I("div",{class:"loading-text"},"正在加载漫画内容...",-1))])):a.value?(z(),X("div",a9t,[$(ae,{status:"error",title:a.value},null,8,["title"]),$(re,{type:"primary",onClick:j},{default:fe(()=>[...Q[2]||(Q[2]=[He("重新加载",-1)])]),_:1})])):s.value.length>0?(z(),X("div",l9t,[I("h1",{class:"chapter-title",style:Ye(y.value)},Ne(e.chapterName),5),I("div",{class:"images-container",style:Ye(S.value)},[(z(!0),X(Pt,null,cn(s.value,(ge,xe)=>(z(),X("div",{key:xe,class:"image-wrapper",style:Ye(k.value)},[!ge.loaded&&!ge.error?(z(),X("div",u9t,[$(se,{size:24}),Q[3]||(Q[3]=I("div",{class:"loading-text"},"加载中...",-1))])):ge.error?(z(),X("div",c9t,[$(rt(lA)),Q[5]||(Q[5]=I("div",{class:"error-text"},"图片加载失败",-1)),$(re,{size:"small",onClick:Ge=>B(xe)},{default:fe(()=>[...Q[4]||(Q[4]=[He("重试",-1)])]),_:1},8,["onClick"])])):(z(),X("img",{key:2,src:ge.url,alt:`第${xe+1}页`,class:"comic-image",style:Ye(C.value),onLoad:Ge=>P(xe),onError:Ge=>M(xe),onClick:Ge=>L(xe)},null,44,d9t)),h.value.showPageNumber?(z(),X("div",f9t,Ne(xe+1)+" / "+Ne(s.value.length),1)):Ie("",!0)],4))),128))],4),I("div",h9t,[$(re,{disabled:e.currentChapterIndex<=0,onClick:K,class:"nav-btn prev-btn",size:"large"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[Q[6]||(Q[6]=He(" 上一章 ",-1))]),_:1},8,["disabled"]),I("div",p9t,[I("div",v9t," 第 "+Ne(e.currentChapterIndex+1)+" 章 / 共 "+Ne(e.chapters.length)+" 章 ",1),I("div",m9t,Ne(s.value.length)+" 页 ",1)]),$(re,{disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:U,class:"nav-btn next-btn",size:"large"},{icon:fe(()=>[$(rt(Hi))]),default:fe(()=>[Q[7]||(Q[7]=He(" 下一章 ",-1))]),_:1},8,["disabled"])])])):(z(),X("div",g9t,[$(Ce,{description:"暂无漫画内容"})]))],4),$(i9t,{visible:l.value,settings:h.value,onClose:Q[0]||(Q[0]=ge=>l.value=!1),onSettingsChange:te},null,8,["visible","settings"]),Ai((z(),X("div",y9t,[(z(!0),X(Pt,null,cn(c.value,(ge,xe)=>(z(),X("img",{key:xe,src:ge.src,alt:ge.alt,"data-source":ge.src,title:ge.title},null,8,b9t))),128))])),[[Ve,d.value],[es,!1]])])):Ie("",!0)}}},S9t=cr(_9t,[["__scopeId","data-v-50453960"]]),k9t={class:"add-task-form"},x9t={class:"form-section"},C9t={key:0,class:"novel-info"},w9t={class:"novel-cover"},E9t=["src","alt"],T9t={class:"novel-details"},A9t={class:"novel-author"},I9t={class:"novel-desc"},L9t={class:"novel-meta"},D9t={key:1,class:"no-novel"},P9t={key:0,class:"form-section"},R9t={class:"chapter-selection"},M9t={class:"selection-controls"},$9t={class:"range-selector"},O9t={class:"selected-info"},B9t={class:"chapter-list"},N9t={class:"chapter-grid"},F9t=["onClick"],j9t={class:"chapter-title"},V9t={key:1,class:"form-section"},z9t={class:"download-settings"},U9t={class:"setting-row"},H9t={class:"setting-row"},W9t={class:"setting-row"},G9t={class:"setting-row"},K9t={__name:"AddDownloadTaskDialog",props:{visible:{type:Boolean,default:!1},novelDetail:{type:Object,default:null},chapters:{type:Array,default:()=>[]},sourceName:{type:String,default:""},sourceKey:{type:String,default:""},apiUrl:{type:String,default:""},extend:{type:[String,Object],default:""}},emits:["close","confirm"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue([]),s=ue(1),l=ue(1),c=ue({filename:"",concurrency:3,retryCount:2,interval:1e3}),d=F(()=>n.chapters.length),h=F(()=>n.novelDetail&&a.value.length>0);It(()=>n.visible,E=>{E&&p()}),It(()=>n.novelDetail,E=>{E&&(c.value.filename=E.vod_name+".txt",l.value=d.value)});const p=()=>{a.value=[],s.value=1,l.value=d.value,c.value={filename:n.novelDetail?.vod_name+".txt"||"",concurrency:3,retryCount:2,interval:1e3}},v=()=>{a.value=Array.from({length:d.value},(E,_)=>_)},g=()=>{a.value=[]},y=()=>{const E=Array.from({length:d.value},(_,T)=>T);a.value=E.filter(_=>!a.value.includes(_))},S=()=>{if(s.value>l.value){yt.warning("起始章节不能大于结束章节");return}const E=Math.max(1,s.value)-1,_=Math.min(d.value,l.value);a.value=Array.from({length:_-E},(T,D)=>E+D)},k=E=>{const _=a.value.indexOf(E);_>-1?a.value.splice(_,1):a.value.push(E)},C=()=>{r("close")},x=async()=>{if(!h.value){yt.warning("请选择要下载的章节");return}i.value=!0;try{const E={novelDetail:n.novelDetail,chapters:n.chapters,selectedChapters:a.value,sourceName:n.sourceName,sourceKey:n.sourceKey,apiUrl:n.apiUrl,extend:n.extend,settings:c.value};r("confirm",E)}catch(E){console.error("创建下载任务失败:",E),yt.error("创建下载任务失败")}finally{i.value=!1}};return(E,_)=>{const T=Te("a-empty"),D=Te("a-button"),P=Te("a-button-group"),M=Te("a-input-number"),O=Te("a-checkbox"),L=Te("a-input"),B=Te("a-modal");return z(),Ze(B,{visible:e.visible,title:"新建下载任务",width:"800px","mask-closable":!1,onCancel:C,onOk:x,"confirm-loading":i.value},{footer:fe(()=>[$(D,{onClick:C},{default:fe(()=>[..._[22]||(_[22]=[He("取消",-1)])]),_:1}),$(D,{type:"primary",onClick:x,loading:i.value,disabled:!h.value},{default:fe(()=>[..._[23]||(_[23]=[He(" 开始下载 ",-1)])]),_:1},8,["loading","disabled"])]),default:fe(()=>[I("div",k9t,[I("div",x9t,[_[6]||(_[6]=I("h4",null,"小说信息",-1)),e.novelDetail?(z(),X("div",C9t,[I("div",w9t,[I("img",{src:e.novelDetail.vod_pic,alt:e.novelDetail.vod_name},null,8,E9t)]),I("div",T9t,[I("h3",null,Ne(e.novelDetail.vod_name),1),I("p",A9t,"作者: "+Ne(e.novelDetail.vod_actor||"未知"),1),I("p",I9t,Ne(e.novelDetail.vod_content||"暂无简介"),1),I("div",L9t,[I("span",null,"来源: "+Ne(e.sourceName),1),I("span",null,"总章节: "+Ne(d.value),1)])])])):(z(),X("div",D9t,[$(T,{description:"请从详情页面调用下载功能"})]))]),e.novelDetail?(z(),X("div",P9t,[_[13]||(_[13]=I("h4",null,"章节选择",-1)),I("div",R9t,[I("div",M9t,[$(P,null,{default:fe(()=>[$(D,{onClick:v},{default:fe(()=>[..._[7]||(_[7]=[He("全选",-1)])]),_:1}),$(D,{onClick:g},{default:fe(()=>[..._[8]||(_[8]=[He("全不选",-1)])]),_:1}),$(D,{onClick:y},{default:fe(()=>[..._[9]||(_[9]=[He("反选",-1)])]),_:1})]),_:1}),I("div",$9t,[_[11]||(_[11]=I("span",null,"范围选择:",-1)),$(M,{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=j=>s.value=j),min:1,max:d.value,placeholder:"起始章节",size:"small",style:{width:"100px"}},null,8,["modelValue","max"]),_[12]||(_[12]=I("span",null,"-",-1)),$(M,{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=j=>l.value=j),min:1,max:d.value,placeholder:"结束章节",size:"small",style:{width:"100px"}},null,8,["modelValue","max"]),$(D,{size:"small",onClick:S},{default:fe(()=>[..._[10]||(_[10]=[He("选择范围",-1)])]),_:1})])]),I("div",O9t," 已选择 "+Ne(a.value.length)+" / "+Ne(d.value)+" 章 ",1),I("div",B9t,[I("div",N9t,[(z(!0),X(Pt,null,cn(e.chapters,(j,H)=>(z(),X("div",{key:H,class:de(["chapter-item",{selected:a.value.includes(H)}]),onClick:U=>k(H)},[$(O,{"model-value":a.value.includes(H),onChange:U=>k(H)},null,8,["model-value","onChange"]),I("span",j9t,Ne(j.name||`第${H+1}章`),1)],10,F9t))),128))])])])])):Ie("",!0),e.novelDetail?(z(),X("div",V9t,[_[21]||(_[21]=I("h4",null,"下载设置",-1)),I("div",z9t,[I("div",U9t,[_[14]||(_[14]=I("label",null,"文件名:",-1)),$(L,{modelValue:c.value.filename,"onUpdate:modelValue":_[2]||(_[2]=j=>c.value.filename=j),placeholder:"自动生成",style:{width:"300px"}},null,8,["modelValue"])]),I("div",H9t,[_[15]||(_[15]=I("label",null,"并发数:",-1)),$(M,{modelValue:c.value.concurrency,"onUpdate:modelValue":_[3]||(_[3]=j=>c.value.concurrency=j),min:1,max:10,style:{width:"120px"}},null,8,["modelValue"]),_[16]||(_[16]=I("span",{class:"setting-tip"},"同时下载的章节数量",-1))]),I("div",W9t,[_[17]||(_[17]=I("label",null,"重试次数:",-1)),$(M,{modelValue:c.value.retryCount,"onUpdate:modelValue":_[4]||(_[4]=j=>c.value.retryCount=j),min:0,max:5,style:{width:"120px"}},null,8,["modelValue"]),_[18]||(_[18]=I("span",{class:"setting-tip"},"章节下载失败时的重试次数",-1))]),I("div",G9t,[_[19]||(_[19]=I("label",null,"章节间隔:",-1)),$(M,{modelValue:c.value.interval,"onUpdate:modelValue":_[5]||(_[5]=j=>c.value.interval=j),min:0,max:5e3,style:{width:"120px"}},null,8,["modelValue"]),_[20]||(_[20]=I("span",{class:"setting-tip"},"章节下载间隔时间(毫秒)",-1))])])])):Ie("",!0)])]),_:1},8,["visible","confirm-loading"])}}},q9t=cr(K9t,[["__scopeId","data-v-478714de"]]);class Y9t{constructor(){this.tasks=new Map,this.isDownloading=!1,this.currentTask=null,this.downloadQueue=[],this.maxConcurrent=3,this.activeDownloads=new Set,this.loadTasksFromStorage(),setInterval(()=>{this.saveTasksToStorage()},5e3)}createTask(t,n,r={}){const i=this.generateTaskId(),a={id:i,novelTitle:t.title,novelId:t.id,novelUrl:t.url,novelAuthor:t.author||"未知",novelDescription:t.description||"",novelCover:t.cover||"",totalChapters:n.length,completedChapters:0,failedChapters:0,status:"pending",progress:0,createdAt:Date.now(),updatedAt:Date.now(),settings:{fileName:r.fileName||t.title,concurrent:r.concurrent||3,retryCount:r.retryCount||3,chapterInterval:r.chapterInterval||1e3,...r},chapters:n.map((s,l)=>({index:l,name:s.name||`第${l+1}章`,url:s.url,status:"pending",progress:0,content:"",size:0,error:null,retryCount:0,startTime:null,completeTime:null})),error:null,downloadedSize:0,totalSize:0,startTime:null,completeTime:null};return this.tasks.set(i,a),this.saveTasksToStorage(),a}async startTask(t){const n=this.tasks.get(t);if(!n)throw new Error("任务不存在");n.status!=="downloading"&&(n.status="downloading",n.startTime=n.startTime||Date.now(),n.updatedAt=Date.now(),this.updateTask(n),this.downloadQueue.includes(t)||this.downloadQueue.push(t),this.processDownloadQueue())}pauseTask(t){const n=this.tasks.get(t);if(!n)return;n.status="paused",n.updatedAt=Date.now(),this.updateTask(n);const r=this.downloadQueue.indexOf(t);r>-1&&this.downloadQueue.splice(r,1),this.activeDownloads.delete(t)}cancelTask(t){const n=this.tasks.get(t);n&&(this.pauseTask(t),n.chapters.forEach(r=>{r.status==="downloading"&&(r.status="pending",r.progress=0,r.startTime=null)}),n.status="pending",n.progress=0,this.updateTask(n))}deleteTask(t){this.tasks.get(t)&&(this.cancelTask(t),this.tasks.delete(t),this.saveTasksToStorage())}async retryChapter(t,n){const r=this.tasks.get(t);if(!r)return;const i=r.chapters[n];i&&(i.status="pending",i.error=null,i.retryCount=0,i.progress=0,this.updateTask(r),r.status==="downloading"&&this.downloadChapter(r,i))}async processDownloadQueue(){if(this.downloadQueue.length===0)return;const t=this.downloadQueue[0],n=this.tasks.get(t);if(!n||n.status!=="downloading"){this.downloadQueue.shift(),this.processDownloadQueue();return}this.currentTask=n,await this.downloadTask(n),this.downloadQueue.shift(),this.currentTask=null,this.downloadQueue.length>0&&setTimeout(()=>this.processDownloadQueue(),1e3)}async downloadTask(t){const n=t.chapters.filter(a=>a.status==="pending");if(n.length===0){this.completeTask(t);return}const r=Math.min(t.settings.concurrent,n.length),i=[];for(let a=0;ar.status==="pending");if(!n)break;await this.downloadChapter(t,n),t.settings.chapterInterval>0&&await this.sleep(t.settings.chapterInterval)}}async downloadChapter(t,n){if(n.status==="pending"){n.status="downloading",n.startTime=Date.now(),n.progress=0,this.updateTask(t);try{console.log(`开始下载章节: ${n.name}`);const r={play:n.url,flag:t.settings.flag||"",apiUrl:t.settings.apiUrl||"",extend:t.settings.extend||""},i=await Ka.parseEpisodePlayUrl(t.settings.module,r);console.log("章节播放解析结果:",i);let a=null;if(i.url&&i.url.startsWith("novel://")){const s=i.url.replace("novel://","");a=JSON.parse(s)}else throw new Error("无法解析小说内容,返回的不是小说格式");n.content=a.content||"",n.size=new Blob([n.content]).size,n.status="completed",n.progress=100,n.completeTime=Date.now(),t.completedChapters++,t.downloadedSize+=n.size,console.log(`章节下载完成: ${n.name}`)}catch(r){console.error("下载章节失败:",r),n.status="failed",n.error=r.message,n.retryCount++,t.failedChapters++,n.retryCounti.status==="completed"),r=t.chapters.some(i=>i.status==="failed");n?(t.status="completed",t.completeTime=Date.now()):r?t.status="failed":t.status="paused",t.totalSize=t.chapters.reduce((i,a)=>i+(a.size||0),0),t.updatedAt=Date.now(),this.updateTask(t)}updateTaskProgress(t){const n=t.chapters.filter(r=>r.status==="completed").length;t.progress=Math.round(n/t.totalChapters*100),t.completedChapters=n,t.failedChapters=t.chapters.filter(r=>r.status==="failed").length,t.downloadedSize=t.chapters.filter(r=>r.status==="completed").reduce((r,i)=>r+(i.size||0),0),t.totalSize=t.chapters.reduce((r,i)=>r+(i.size||0),0)}updateTask(t){t.updatedAt=Date.now(),this.tasks.set(t.id,{...t}),this.notifyTaskUpdate(t)}exportToTxt(t){const n=this.tasks.get(t);if(!n)return null;const r=n.chapters.filter(c=>c.status==="completed").sort((c,d)=>c.index-d.index);if(r.length===0)throw new Error("没有已完成的章节可以导出");let i=`${n.novelTitle} `;r.forEach(c=>{i+=`${c.name} @@ -555,7 +555,7 @@ Char: `+o[b]);b+1&&(b+=1);break}else if(o.charCodeAt(b+1)===33){if(o.charCodeAt( `,i+=`--- -`}),i}getTasksByStatus(t){return this.getAllTasks().filter(n=>t==="all"?!0:t==="downloaded"?n.status==="completed":t==="downloading"?n.status==="downloading":t==="failed"?n.status==="failed":t==="pending"?n.status==="pending"||n.status==="paused":n.status===t)}getTaskStats(){const t=this.getAllTasks();return{total:t.length,completed:t.filter(n=>n.status==="completed").length,downloading:t.filter(n=>n.status==="downloading").length,failed:t.filter(n=>n.status==="failed").length,pending:t.filter(n=>n.status==="pending"||n.status==="paused").length}}getStorageStats(){const n=this.getAllTasks().reduce((a,s)=>a+(s.downloadedSize||0),0),r=Math.max(0,104857600-n),i=n/104857600*100;return{usedBytes:n,availableBytes:r,totalBytes:104857600,usagePercentage:Math.min(100,i),isNearLimit:i>80,isOverLimit:i>=100,formattedUsed:this.formatFileSize(n),formattedAvailable:this.formatFileSize(r),formattedTotal:this.formatFileSize(104857600)}}formatFileSize(t){if(t===0)return"0 B";const n=1024,r=["B","KB","MB","GB"],i=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,i)).toFixed(2))+" "+r[i]}canAddTask(t=0){const n=this.getStorageStats();return t<=n.availableBytes}saveTasksToStorage(){try{const t=Array.from(this.tasks.entries());localStorage.setItem("novel_download_tasks",JSON.stringify(t))}catch(t){console.error("保存下载任务失败:",t)}}loadTasksFromStorage(){try{const t=localStorage.getItem("novel_download_tasks");if(t){const n=JSON.parse(t);this.tasks=new Map(n),this.tasks.forEach(r=>{r.status==="downloading"&&(r.status="paused",r.chapters.forEach(i=>{i.status==="downloading"&&(i.status="pending",i.progress=0,i.startTime=null)}))})}}catch(t){console.error("加载下载任务失败:",t),this.tasks=new Map}}generateTaskId(){return"task_"+Date.now()+"_"+Math.random().toString(36).substr(2,9)}sleep(t){return new Promise(n=>setTimeout(n,t))}notifyTaskUpdate(t){this.onTaskUpdate&&this.onTaskUpdate(t)}setTaskUpdateCallback(t){this.onTaskUpdate=t}}const bce=new Y9t,X9t={class:"video-detail"},Z9t={class:"detail-header"},J9t={class:"header-title"},Q9t={key:0},e$t={key:1,class:"title-with-info"},t$t={class:"title-main"},n$t={key:0,class:"title-source"},r$t={key:0,class:"header-actions"},i$t={key:0,class:"loading-container"},o$t={key:1,class:"error-container"},s$t={key:2,class:"detail-content"},a$t={class:"video-header"},l$t=["src","alt"],u$t={class:"poster-overlay"},c$t={class:"video-meta"},d$t={class:"video-title"},f$t={class:"video-tags"},h$t={class:"video-info-grid"},p$t={key:0,class:"info-item"},v$t={class:"value"},m$t={key:1,class:"info-item"},g$t={class:"value"},y$t={key:2,class:"info-item"},b$t={class:"value"},_$t={class:"video-actions"},S$t={key:0,class:"action-buttons-row"},k$t={key:1,class:"action-buttons-row download-row"},x$t={key:0,class:"video-description"},C$t={class:"viewer"},w$t=["src","alt","data-source","title"],E$t={class:"parse-dialog-content"},T$t={class:"parse-message"},A$t={key:0,class:"sniff-results"},I$t={class:"results-list"},L$t={class:"result-index"},D$t={class:"result-info"},P$t={class:"result-url"},R$t={key:0,class:"result-type"},M$t={key:0,class:"more-results"},$$t={key:1,class:"parse-hint"},O$t={class:"hint-icon"},B$t={class:"parse-dialog-footer"},N$t={__name:"VideoDetail",setup(e){const t=s3(),n=ma(),r=CS(),i=JA(),a=LG(),s=kS(),l=DG(),c=ue(!1),d=ue(""),h=ue(null),p=ue(null),v=ue({id:"",name:"",pic:"",year:"",area:"",type:"",remarks:"",content:"",actor:"",director:""}),g=ue(!1),y=ue(0),S=ue(0),k=ue(!1),C=ue(0),x=ue({name:"",api:"",key:""}),E=ue(!1),_=ue(sessionStorage.getItem("hasPushOverride")==="true"),T=ue(null);It(_,oe=>{sessionStorage.setItem("hasPushOverride",oe.toString()),console.log("🔄 [状态持久化] hasPushOverride状态已保存:",oe)},{immediate:!0});const D=ue(!1),P=ue(""),M=ue({}),O=ue([]),L=ue(!1),B=ue(""),j=ue(!1),H=ue(null),U=ue(null),K=ue(!1),Y=ue([]),ie=ue(!1),te=ue(null),W=ue(!1),q=ue(null),Q=ue(!1),se=ue({title:"",message:"",type:""}),ae=ue(!1),re=ue([]),Ce=()=>{try{const oe=localStorage.getItem("drplayer_preferred_player_type");return oe&&["default","artplayer"].includes(oe)?oe:"default"}catch(oe){return console.warn("读取播放器偏好失败:",oe),"default"}},Ve=oe=>{try{localStorage.setItem("drplayer_preferred_player_type",oe),console.log("播放器偏好已保存:",oe)}catch(ne){console.warn("保存播放器偏好失败:",ne)}},ge=ue(Ce()),xe=ue([]),Ge=ue([]),tt=ue({inline:!1,button:!0,navbar:!0,title:!0,toolbar:{zoomIn:1,zoomOut:1,oneToOne:1,reset:1,prev:1,play:{show:1,size:"large"},next:1,rotateLeft:1,rotateRight:1,flipHorizontal:1,flipVertical:1},tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,backdrop:!0}),Ue=F(()=>h.value?.vod_pic?h.value.vod_pic:v.value?.sourcePic?v.value.sourcePic:"/src/assets/default-poster.svg"),_e=F(()=>{if(!h.value?.vod_play_from||!h.value?.vod_play_url)return[];const oe=h.value.vod_play_from.split("$$$"),ne=h.value.vod_play_url.split("$$$");return oe.map((ee,J)=>({name:ee.trim(),episodes:ve(ne[J]||"")}))}),ve=oe=>oe?oe.split("#").map(ne=>{const[ee,J]=ne.split("$");return{name:ee?.trim()||"未知集数",url:J?.trim()||""}}).filter(ne=>ne.url):[],me=F(()=>_e.value[y.value]?.episodes||[]),Oe=F(()=>(_e.value[y.value]?.episodes||[])[S.value]?.url||""),qe=F(()=>j.value&&!P.value?"":P.value||Oe.value),Ke=F(()=>(_e.value[y.value]?.episodes||[])[S.value]?.name||"未知选集"),at=F(()=>S.value),ft=F(()=>!v.value.id||!x.value.api?!1:i.isFavorited(v.value.id,x.value.api)),ct=F(()=>te.value!==null),wt=F(()=>(x.value?.name||"").includes("[书]")||ct.value),Ct=F(()=>W.value),Rt=F(()=>{const oe=x.value?.name||"";return oe.includes("[书]")?{text:"开始阅读",icon:"icon-book"}:oe.includes("[听]")?{text:"播放音频",icon:"icon-sound"}:oe.includes("[画]")?{text:"查看图片",icon:"icon-image"}:ct.value?{text:"开始阅读",icon:"icon-book"}:Ct.value?{text:"查看图片",icon:"icon-image"}:{text:"播放视频",icon:"icon-play-arrow"}}),Ht=async()=>{if(console.log("🔄 loadVideoDetail 函数被调用,开始加载详情数据:",{id:t.params.id,fullPath:t.fullPath,timestamp:new Date().toLocaleTimeString()}),!t.params.id){d.value="视频ID不能为空";return}if(C.value=0,E.value=!1,v.value={id:t.params.id,name:t.query.name||"",pic:t.query.pic||"",year:t.query.year||"",area:t.query.area||"",type:t.query.type||"",type_name:t.query.type_name||"",remarks:t.query.remarks||"",content:t.query.content||"",actor:t.query.actor||"",director:t.query.director||"",sourcePic:t.query.sourcePic||""},!r.nowSite){d.value="请先选择一个视频源";return}c.value=!0,d.value="";const oe=t.query.fromCollection==="true",ne=t.query.fromHistory==="true",ee=t.query.fromPush==="true",J=t.query.fromSpecialAction==="true";try{let ce,Se,ke,Ae;if((oe||ne||ee||J)&&t.query.tempSiteKey)console.log("VideoDetail接收到的路由参数:",t.query),console.log("tempSiteExt参数值:",t.query.tempSiteExt),ce=t.query.tempSiteKey,Se=t.query.tempSiteApi,ke=t.query.tempSiteName,Ae=t.query.tempSiteExt||null,console.log(`从${oe?"收藏":ne?"历史":"推送"}进入,使用临时站源:`,{siteName:ke,module:ce,apiUrl:Se,extend:Ae});else{const ot=r.nowSite;ce=ot.key||ot.name,Se=ot.api,ke=ot.name,Ae=ot.ext||null}x.value={name:ke,api:Se,key:ce,ext:Ae},T.value=x.value,console.log("获取视频详情:",{videoId:t.params.id,module:ce,apiUrl:Se,extend:Ae,fromCollection:oe,usingTempSite:oe&&t.query.tempSiteKey}),oe&&console.log("从收藏进入,优先调用T4详情接口获取最新数据");const nt=await Ka.getVideoDetails(ce,t.params.id,Se,oe,Ae);if(nt){nt.module=ce,nt.api_url=Se,nt.site_name=ke,h.value=nt,console.log("视频详情获取成功:",nt);const ot=t.query.historyRoute,gt=t.query.historyEpisode;ot&>?(console.log("检测到历史记录参数,准备恢复播放位置:",{historyRoute:ot,historyEpisode:gt}),dn(()=>{setTimeout(()=>{console.log("开始恢复历史记录,当前playRoutes长度:",_e.value.length),_e.value.length>0?Ee(ot,gt):console.warn("playRoutes为空,无法恢复历史记录")},100)})):dn(()=>{setTimeout(()=>{_e.value.length>0&&y.value===0&&(console.log("初始化默认播放位置"),y.value=0,me.value.length>0&&(S.value=0))},100)})}else d.value="未找到视频详情"}catch(ce){console.error("加载视频详情失败:",ce),d.value=ce.message||"加载失败,请稍后重试"}finally{c.value=!1}},Jt=async()=>{if(!(!v.value.id||!x.value.api)){k.value=!0;try{if(ft.value)i.removeFavorite(v.value.id,x.value.api)&&yt.success("已取消收藏");else{const oe={vod_id:v.value.id,vod_name:v.value.name||h.value?.vod_name||"",vod_pic:v.value.pic||h.value?.vod_pic||"",vod_year:v.value.year||h.value?.vod_year||"",vod_area:v.value.area||h.value?.vod_area||"",vod_type:v.value.type||h.value?.vod_type||"",type_name:v.value.type_name||h.value?.type_name||"",vod_remarks:v.value.remarks||h.value?.vod_remarks||"",vod_content:v.value.content||h.value?.vod_content||"",vod_actor:v.value.actor||h.value?.vod_actor||"",vod_director:v.value.director||h.value?.vod_director||"",vod_play_from:h.value?.vod_play_from||"",vod_play_url:h.value?.vod_play_url||"",module:x.value.key,api_url:x.value.api,site_name:x.value.name,ext:x.value.ext||null};i.addFavorite(oe)?yt.success("收藏成功"):yt.warning("该视频已在收藏列表中")}}catch(oe){yt.error("操作失败,请稍后重试"),console.error("收藏操作失败:",oe)}finally{k.value=!1}}},rn=async()=>{try{if(console.log("🔄 [用户操作] 手动清除推送覆盖状态"),_.value=!1,E.value=!1,sessionStorage.removeItem("hasPushOverride"),!r.nowSite){yt.error("无法恢复:当前没有选择视频源");return}const oe=r.nowSite;x.value={name:oe.name,api:oe.api,key:oe.key||oe.name,ext:oe.ext||null},T.value=x.value,console.log("🔄 [推送覆盖] 使用原始站源重新加载:",x.value),c.value=!0,d.value="";const ne=`detail_${x.value.key}_${t.params.id}`;console.log("🔄 [推送覆盖] 清除缓存:",ne),Ka.cache.delete(ne);const ee=await Ka.getVideoDetails(x.value.key,t.params.id,x.value.api,!0,x.value.ext);if(ee)ee.module=x.value.key,ee.api_url=x.value.api,ee.site_name=x.value.name,h.value=ee,y.value=0,S.value=0,console.log("✅ [推送覆盖] 原始数据恢复成功:",ee),yt.success("已恢复原始数据");else throw new Error("无法获取原始视频数据")}catch(oe){console.error("❌ [推送覆盖] 清除推送覆盖状态失败:",oe),yt.error(`恢复原始数据失败: ${oe.message}`)}finally{c.value=!1}},vt=()=>{const oe=t.query.sourceRouteName,ne=t.query.sourceRouteParams,ee=t.query.sourceRouteQuery,J=t.query.fromSearch;if(console.log("goBack 调用,来源信息:",{sourceRouteName:oe,fromSearch:J,sourceRouteParams:ne,sourceRouteQuery:ee}),oe)try{const ce=ne?JSON.parse(ne):{},Se=ee?JSON.parse(ee):{};if(console.log("返回来源页面:",oe,{params:ce,query:Se,fromSearch:J}),oe==="Video")if(J==="true"){console.log("从Video页面搜索返回,恢复搜索状态");const Ae=s.getPageState("search");Ae&&Ae.keyword&&!s.isStateExpired("search")&&(console.log("发现保存的搜索状态,将恢复搜索结果:",Ae),Se._restoreSearch="true")}else{if(console.log("从Video页面分类返回,恢复分类状态"),Se.activeKey&&(Se._returnToActiveKey=Se.activeKey,console.log("设置返回分类:",Se.activeKey)),p.value)try{const nt=JSON.parse(p.value);Se.folderState=p.value}catch(nt){console.error("解析保存的目录状态失败:",nt)}s.getPageState("video")&&!s.isStateExpired("video")&&console.log("发现保存的Video页面状态,将恢复状态而非重新加载")}else if(oe==="SearchAggregation")console.log("从聚合搜索页面返回,添加返回标识"),Se._returnFromDetail="true",Se._t&&(delete Se._t,console.log("清除时间戳参数 _t,避免触发重新搜索"));else if(oe==="Home"){const Ae=s.getPageState("search");Ae&&Ae.keyword&&!s.isStateExpired("search")&&(console.log("发现保存的搜索状态,将恢复搜索结果"),Se._restoreSearch="true")}if(console.log("🔄 [DEBUG] ========== VideoDetail goBack 即将跳转 =========="),console.log("🔄 [DEBUG] sourceRouteName:",oe),console.log("🔄 [DEBUG] params:",JSON.stringify(ce,null,2)),console.log("🔄 [DEBUG] query参数完整内容:",JSON.stringify(Se,null,2)),console.log("🔄 [DEBUG] folderState参数值:",Se.folderState),console.log("🔄 [DEBUG] folderState参数类型:",typeof Se.folderState),console.log("🔄 [DEBUG] initialFolderState.value:",p.value),console.log("🔄 [DEBUG] _returnToActiveKey参数值:",Se._returnToActiveKey),Se.folderState)try{const Ae=JSON.parse(Se.folderState);console.log("🔄 [DEBUG] 解析后的folderState:",JSON.stringify(Ae,null,2)),console.log("🔄 [DEBUG] folderState.isActive:",Ae.isActive),console.log("🔄 [DEBUG] folderState.breadcrumbs:",Ae.breadcrumbs),console.log("🔄 [DEBUG] folderState.currentBreadcrumb:",Ae.currentBreadcrumb)}catch(Ae){console.error("🔄 [ERROR] folderState解析失败:",Ae)}else console.log("🔄 [DEBUG] 没有folderState参数传递");const ke={name:oe,params:ce,query:Se};console.log("🔄 [DEBUG] router.push完整参数:",JSON.stringify(ke,null,2)),n.push(ke),console.log("🔄 [DEBUG] ========== VideoDetail goBack 跳转完成 ==========")}catch(ce){console.error("解析来源页面信息失败:",ce),n.back()}else console.log("没有来源信息,使用默认返回方式"),n.back()},Ne=oe=>{if(oe.target.src.includes("default-poster.svg"))return;if(C.value++,C.value===1&&v.value?.sourcePic&&h.value?.vod_pic&&oe.target.src===h.value.vod_pic){oe.target.src=v.value.sourcePic;return}const ne="/apps/drplayer/";oe.target.src=`${ne}default-poster.svg`,oe.target.style.objectFit="contain",oe.target.style.backgroundColor="#f7f8fa"},Me=()=>{const oe=Ue.value;oe&&!oe.includes("default-poster.svg")&&(xe.value=[oe],Ge.value=[{src:oe,name:h.value?.vod_name||v.value?.name||"未知标题"}],setTimeout(()=>{const ne=document.querySelector(".viewer");ne&&ne.$viewer&&ne.$viewer.show()},100))},Ee=(oe,ne)=>{try{console.log("开始恢复历史记录位置:",{historyRoute:oe,historyEpisode:ne});const ee=_e.value,J=ee.find(ce=>ce.name===oe);if(J){console.log("找到历史线路:",J.name);const ce=ee.indexOf(J);y.value=ce,dn(()=>{const Se=me.value,ke=Se.find(Ae=>Ae.name===ne);if(ke){console.log("找到历史选集:",ke.name);const Ae=Se.indexOf(ke);S.value=Ae,console.log("历史记录位置恢复成功:",{routeIndex:ce,episodeIndex:Ae})}else console.warn("未找到历史选集:",ne),Se.length>0&&(S.value=0)})}else console.warn("未找到历史线路:",oe),ee.length>0&&(y.value=0,dn(()=>{me.value.length>0&&(S.value=0)}))}catch(ee){console.error("恢复历史记录位置失败:",ee)}},We=()=>{g.value=!g.value},$e=oe=>{y.value=oe,S.value=0},dt=()=>{D.value=!1},Qe=()=>{ie.value=!1,W.value=!1,te.value=null,q.value=null},Le=oe=>{console.log("切换到章节:",oe),An(oe)},ht=()=>{if(S.value{if(S.value>0){const oe=S.value-1;console.log("切换到上一章:",oe),An(oe)}},Ut=oe=>{console.log("选择章节:",oe),An(oe)},Lt=oe=>{console.log("切换播放器类型:",oe),ge.value=oe,Ve(oe)},Xt=oe=>{console.log("切换到下一集:",oe),oe>=0&&oe{if(console.log("从播放器选择剧集:",oe),typeof oe=="number"){const ne=oe;ne>=0&&neee.name===oe.name&&ee.url===oe.url);ne!==-1?(console.log("通过对象查找到选集索引:",ne),An(ne)):(console.warn("未找到选集:",oe),yt.warning("选集切换失败:未找到匹配的选集"))}else console.warn("无效的选集参数:",oe),yt.warning("选集切换失败:参数格式错误")},rr=oe=>{console.log("阅读器设置变更:",oe)},qr=oe=>{console.log("画质切换事件:",oe),oe&&oe.url?(P.value=oe.url,console.log("画质切换完成,新URL:",oe.url)):console.warn("画质切换数据无效:",oe)},Wt=async oe=>{if(console.log("解析器变更事件:",oe),!oe||!H.value){console.warn("解析器或解析数据无效");return}U.value=oe,localStorage.setItem("selectedParser",JSON.stringify(oe));try{const ne=oe.parser||oe,ee={...ne,type:ne.type===1?"json":ne.type===0?"sniffer":ne.type};ee.type==="json"&&!ee.urlPath&&(ee.urlPath="url"),console.log("🎬 [开始解析] 使用选定的解析器直接解析真实数据"),console.log("🎬 [解析参数]",{parser:ee,parseData:H.value}),await sn(ee,H.value)}catch(ne){console.error("解析失败:",ne),yt.error("解析失败,请稍后重试")}},Yt=async()=>{try{await l.loadParsers();const oe=l.parsers.filter(ne=>ne.enabled);return Y.value=oe,console.log("获取到可用解析器:",oe),oe}catch(oe){return console.error("获取解析器列表失败:",oe),Y.value=[],[]}},sn=async(oe,ne)=>{if(!oe||!ne)throw new Error("解析器或数据无效");console.log("🎬🎬🎬 [真正解析开始] 这是真正的解析,不是测试!"),console.log("🎬 [真正解析] 开始执行解析:",{parser:oe.name,data:ne,dataType:typeof ne,hasJxFlag:ne&&typeof ne=="object"&&ne.jx===1,dataUrl:ne&&typeof ne=="object"?ne.url:ne,isTestData:ne&&typeof ne=="object"&&ne.url==="https://example.com/test.mp4"});const ee={...oe,type:oe.type==="0"?"sniffer":oe.type==="1"?"json":oe.type};console.log("🔧 [类型转换] 原始类型:",oe.type,"转换后类型:",ee.type);const J=Xle.validateParserConfig(ee);if(!J.valid){const ce="解析器配置无效: "+J.errors.join(", ");throw console.error(ce),yt.error(ce),new Error(ce)}try{let ce;if(ee.type==="json")console.log("🎬 [真正解析] 调用JSON解析器,传递数据:",ne),ce=await Xle.parseWithJsonParser(ee,ne);else if(ee.type==="sniffer"){console.log("🎬 [真正解析] 调用代理嗅探接口,传递数据:",ne);const{sniffVideoWithConfig:Se}=await fc(async()=>{const{sniffVideoWithConfig:ot}=await Promise.resolve().then(()=>B5t);return{sniffVideoWithConfig:ot}},void 0);let ke;if(ne&&typeof ne=="object"?ke=ne.url||ne.play_url||ne:ke=ne,!ke||typeof ke!="string")throw new Error("无效的嗅探目标URL");const Ae=ee.url+encodeURIComponent(ke);console.log("🔍 [嗅探解析] 解析器URL:",ee.url),console.log("🔍 [嗅探解析] 被解析URL:",ke),console.log("🔍 [嗅探解析] 完整解析地址:",Ae);const nt=await Se(Ae);if(nt.success&&nt.data&&nt.data.length>0)ce={success:!0,url:nt.data[0].url,headers:{Referer:Ae,"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},qualities:[],message:"嗅探解析成功"};else throw new Error("嗅探未找到可播放的视频链接")}else throw new Error(`不支持的解析器类型: ${ee.type}`);if(ce&&ce.success)P.value=ce.url,M.value=ce.headers||{},ce.qualities&&ce.qualities.length>0?(O.value=ce.qualities,L.value=!0,B.value=ce.qualities[0].name):(O.value=[],L.value=!1,B.value=""),D.value=!0,yt.success(`解析成功,开始播放: ${Ke.value}`),console.log("解析完成:",ce);else throw new Error(ce?.message||"解析失败")}catch(ce){throw console.error("解析执行失败:",ce),ce}},An=async oe=>{S.value=oe;const ne=me.value[oe]?.url,ee=_e.value[y.value]?.name;if(!ne){console.log("选集URL为空,无法播放"),yt.error("选集URL为空,无法播放");return}try{if(console.log("开始解析选集播放地址:",{episodeUrl:ne,routeName:ee,isPushMode:E.value,currentActiveSite:T.value?.key,originalSite:x.value?.key}),ne.startsWith("push://")){console.log("🚀🚀🚀 选集URL本身为push://协议,直接处理推送逻辑:",ne),await un(ne,ee);return}yt.info("正在解析播放地址...");const J={play:ne,flag:ee,apiUrl:T.value.api,extend:T.value.ext},ce=await Ka.parseEpisodePlayUrl(T.value.key,J);if(console.log("选集播放解析结果:",ce),ce.url&&ce.url.startsWith("push://")){console.log("🚀🚀🚀 T4播放API返回push://协议,开始处理推送逻辑:",ce.url),await un(ce.url,ce.flag);return}if(ce.playType==="direct")if(ce.url&&ce.url.startsWith("novel://")){console.log("检测到小说内容:",ce.url);try{const Se=ce.url.replace("novel://",""),ke=JSON.parse(Se);console.log("解析小说内容成功:",ke),te.value={title:ke.title||Ke.value,content:ke.content||"",chapterIndex:oe,totalChapters:me.value.length},D.value=!1,W.value=!1,ie.value=!0,yt.success(`开始阅读: ${ke.title||Ke.value}`)}catch(Se){console.error("解析小说内容失败:",Se),yt.error("解析小说内容失败")}}else if(ce.url&&ce.url.startsWith("pics://")){console.log("检测到漫画内容:",ce.url);try{const ke=ce.url.replace("pics://","").split("&&").filter(Ae=>Ae.trim());console.log("解析漫画内容成功:",ke),q.value={title:Ke.value,images:ke,chapterIndex:oe,totalChapters:me.value.length},D.value=!1,ie.value=!1,W.value=!0,yt.success(`开始看漫画: ${Ke.value}`)}catch(Se){console.error("解析漫画内容失败:",Se),yt.error("解析漫画内容失败")}}else console.log("启动内置播放器播放直链视频:",ce.url),console.log("T4解析结果headers:",ce.headers),console.log("T4解析结果画质信息:",ce.qualities,ce.hasMultipleQualities),P.value=ce.url,M.value=ce.headers||{},O.value=ce.qualities||[],L.value=ce.hasMultipleQualities||!1,ce.qualities&&ce.qualities.length>0?B.value=ce.qualities[0].name||"":B.value="",te.value=null,q.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.success(`开始播放: ${Ke.value}`);else if(ce.playType==="sniff")if(console.log("需要嗅探播放:",ce),!MT())P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,se.value={title:"嗅探功能未启用",message:"该视频需要嗅探才能播放,请先在设置中配置嗅探器接口。",type:"sniff"},Q.value=!0;else{const Se=await Xn(ce.data)}else if(ce.playType==="parse"){console.log("需要解析播放:",ce),j.value=!0,H.value=ce.data;const Se=await Yt();if(Se.length===0)se.value={title:"播放提示",message:"该视频需要解析才能播放,但未配置可用的解析器。请前往解析器页面配置解析器。",type:"parse"},Q.value=!0,j.value=!1,H.value=null;else{let ke=null;try{const Ae=localStorage.getItem("selectedParser");if(Ae)try{const nt=JSON.parse(Ae);ke=Se.find(ot=>ot.id===nt.id)}catch{console.warn("JSON解析失败,尝试作为解析器ID处理:",Ae),ke=Se.find(ot=>ot.id===Ae),console.log("defaultParser:",ke),ke&&localStorage.setItem("selectedParser",JSON.stringify(ke))}}catch(Ae){console.warn("获取保存的解析器失败:",Ae),localStorage.removeItem("selectedParser")}ke||(ke=Se[0]),U.value=ke,P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.info("检测到需要解析的视频,请在播放器中选择解析器")}}else console.log("使用原始播放方式:",ne),P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,D.value=!0,yt.success(`开始播放: ${Ke.value}`)}catch(J){console.error("解析选集播放地址失败:",J),yt.error("解析播放地址失败,请稍后重试"),console.log("回退到原始播放方式:",ne),P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,D.value=!0,yt.warning(`播放可能不稳定: ${Ke.value}`)}if(h.value&&me.value[oe]){const J={id:v.value.id,name:v.value.name||h.value.vod_name||"",pic:v.value.pic||h.value.vod_pic||"",year:v.value.year||h.value.vod_year||"",area:v.value.area||h.value.vod_area||"",type:v.value.type||h.value.vod_type||"",type_name:v.value.type_name||h.value.type_name||"",remarks:v.value.remarks||h.value.vod_remarks||"",api_info:{module:x.value.key,api_url:x.value.api,site_name:x.value.name,ext:x.value.ext||null}},ce={name:_e.value[y.value]?.name||"",index:y.value},Se={name:me.value[oe].name,index:oe,url:me.value[oe].url};console.log("=== 添加历史记录调试 ==="),console.log("currentSiteInfo.value.ext:",x.value.ext),console.log("videoInfo.api_info.ext:",J.api_info.ext),console.log("=== 调试结束 ==="),a.addToHistory(J,ce,Se)}},un=async(oe,ne)=>{try{console.log("🚀🚀🚀 开始处理push://协议:",oe),yt.info("正在处理推送链接...");const ee=oe.replace("push://","").trim();console.log("提取的推送内容:",ee),E.value=!0,_.value=!0,console.log("🚀 [推送操作] 已设置推送覆盖标记:",{hasPushOverride:_.value,isPushMode:E.value,timestamp:new Date().toLocaleTimeString()});const J=Zo.getAllSites().find(nt=>nt.key==="push_agent");if(!J)throw new Error("未找到push_agent源,请检查源配置");console.log("找到push_agent源:",J),T.value=J,console.log("调用push_agent详情接口,参数:",{module:J.key,videoId:ee,apiUrl:J.api,extend:J.ext});const ce=await Ka.getVideoDetails(J.key,ee,J.api,!1,J.ext);if(console.log("push_agent详情接口返回结果:",ce),!ce||!ce.vod_play_from||!ce.vod_play_url)throw new Error("push_agent源返回的数据格式不正确,缺少播放信息");h.value.vod_play_from=ce.vod_play_from,h.value.vod_play_url=ce.vod_play_url;const Se=[],ke={vod_content:"剧情简介",vod_id:"视频ID",vod_pic:"封面图片",vod_name:"视频名称",vod_remarks:"备注信息",vod_actor:"演员",vod_director:"导演",vod_year:"年份",vod_area:"地区",vod_lang:"语言",vod_class:"分类"};Object.keys(ke).forEach(nt=>{ce[nt]!==void 0&&ce[nt]!==null&&ce[nt]!==""&&(h.value[nt]=ce[nt],Se.push(ke[nt]))}),y.value=0,S.value=0,console.log("推送数据更新完成,新的播放信息:",{vod_play_from:h.value.vod_play_from,vod_play_url:h.value.vod_play_url,updatedFields:Se});const Ae=Se.length>0?`推送成功: ${ne||"未知来源"} (已更新: ${Se.join("、")})`:`推送成功: ${ne||"未知来源"}`;yt.success(Ae)}catch(ee){console.error("处理push://协议失败:",ee),yt.error(`推送失败: ${ee.message}`),E.value=!1,T.value=x.value}},Xn=async oe=>{let ne=null;try{if(!MT())throw new Error("嗅探功能未启用,请在设置中配置嗅探器");ae.value=!0,re.value=[],ne=yt.info({content:"正在全力嗅探中,请稍等...",duration:0}),console.log("开始嗅探视频链接:",oe);let ee;typeof oe=="object"&&oe.parse===1?(ee=oe,console.log("使用T4解析数据进行嗅探:",ee)):(ee=typeof oe=="string"?oe:oe.toString(),console.log("使用普通URL进行嗅探:",ee));const J=await K3e(ee,{mode:"0",is_pc:"0"});if(console.log("嗅探结果:",J),J.success&&J.data){let ce,Se;if(Array.isArray(J.data)){if(J.data.length===0)throw new Error("嗅探失败,未找到有效的视频链接");ce=J.data,Se=J.data.length,re.value=J.data}else if(J.data.url)ce=[J.data],Se=1,re.value=ce;else throw new Error("嗅探结果格式无效");ne.close();const ke=ce[0];if(ke&&ke.url)return console.log("使用嗅探到的第一个链接:",ke.url),P.value=ke.url,te.value=null,q.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.success(`嗅探成功,开始播放: ${Ke.value}`),!0;throw new Error("嗅探到的链接无效")}else throw new Error(J.message||"嗅探失败,未找到有效的视频链接")}catch(ee){return console.error("嗅探失败:",ee),ne&&ne.close(),yt.error(`嗅探失败: ${ee.message}`),!1}finally{ae.value=!1}},wr=async()=>{const oe=v.value.id,ne=x.value.api;if(oe&&ne){const ee=a.getHistoryByVideo(oe,ne);if(ee){console.log("发现历史记录,播放历史位置:",ee);const J=_e.value,ce=J.find(Se=>Se.name===ee.current_route_name);if(ce){const Se=J.indexOf(ce);y.value=Se,await dn();const ke=me.value,Ae=ke.find(nt=>nt.name===ee.current_episode_name);if(Ae){const nt=ke.indexOf(Ae);await An(nt)}else console.warn("未找到历史选集,播放第一个选集"),await Ot()}else console.warn("未找到历史线路,播放第一个选集"),await Ot()}else console.log("无历史记录,播放第一个选集"),await Ot()}else await Ot()},ro=()=>{console.log("开始智能查找第一个m3u8选集...");for(let oe=0;oe<_e.value.length;oe++){const ne=_e.value[oe];console.log(`检查线路 ${oe}: ${ne.name}`);for(let ee=0;ee{const oe=ro();oe?(console.log(`智能播放m3u8选集: ${oe.route} - ${oe.episode}`),y.value=oe.routeIndex,await dn(),await An(oe.episodeIndex)):_e.value.length>0&&(y.value=0,await dn(),me.value.length>0&&await An(0))},bn=async()=>{if(Oe.value)try{await navigator.clipboard.writeText(Oe.value),yt.success("链接已复制到剪贴板")}catch{yt.error("复制失败")}},kr=()=>{K.value=!0},sr=()=>{K.value=!1},zr=async oe=>{try{console.log("确认下载任务:",oe);const ne={title:oe.novelDetail.vod_name,id:oe.novelDetail.vod_id,url:Oe.value||"",author:oe.novelDetail.vod_actor||"未知",description:oe.novelDetail.vod_content||"",cover:oe.novelDetail.vod_pic||""},ee=oe.selectedChapters.map(Se=>{const ke=oe.chapters[Se];return{name:ke.name||`第${Se+1}章`,url:ke.url||ke.vod_play_url||"",index:Se}}),J={...oe.settings,module:T.value?.key||"",apiUrl:T.value?.api||"",extend:T.value?.ext||"",flag:_e.value[y.value]?.name||""};console.log("下载设置:",J),console.log("当前站点信息:",T.value);const ce=bce.createTask(ne,ee,J);await bce.startTask(ce.id),yt.success(`下载任务已创建:${oe.novelDetail.vod_name}`),sr()}catch(ne){console.error("创建下载任务失败:",ne),yt.error("创建下载任务失败:"+ne.message)}};return It(()=>[t.params.id,t.query],()=>{if(t.params.id){if(console.log("🔍 [params监听器] 检测到路由变化,重新加载视频详情:",{id:t.params.id,fromCollection:t.query.fromCollection,name:t.query.name,folderState:t.query.folderState,timestamp:new Date().toLocaleTimeString()}),t.query.folderState&&!p.value)try{p.value=t.query.folderState}catch(oe){console.error("VideoDetail保存folderState失败:",oe)}Ht()}},{immediate:!0,deep:!0}),It(()=>t.fullPath,(oe,ne)=>{console.log("🔍 [fullPath监听器] 路由fullPath变化监听器触发:",{newPath:oe,oldPath:ne,hasVideoInPath:oe?.includes("/video/"),hasId:!!t.params.id,pathChanged:oe!==ne,hasPushOverride:_.value,timestamp:new Date().toLocaleTimeString()}),oe&&oe.includes("/video/")&&oe!==ne&&t.params.id&&console.log("ℹ️ [fullPath监听器] 检测到路径变化,但推送覆盖处理已交给onActivated:",{oldPath:ne,newPath:oe,id:t.params.id,hasPushOverride:_.value})},{immediate:!0}),It(()=>r.nowSite,(oe,ne)=>{oe&&ne&&oe.api!==ne.api&&t.params.id&&(console.log("检测到站点切换,重新加载视频详情:",{oldSite:ne?.name,newSite:oe?.name}),Ht())},{deep:!0}),hn(async()=>{console.log("VideoDetail组件已挂载");try{await Yt()}catch(oe){console.error("初始化解析器失败:",oe)}}),HU(()=>{console.log("🔄 [组件激活] VideoDetail组件激活:",{hasPushOverride:_.value,isPushMode:E.value,routeId:t.params.id,timestamp:new Date().toLocaleTimeString()}),_.value&&t.params.id?(console.log("✅ [组件激活] 检测到推送覆盖,强制重新加载数据"),Ht()):console.log("ℹ️ [组件激活] 未检测到推送覆盖标记,跳过强制重新加载:",{hasPushOverride:_.value,hasRouteId:!!t.params.id,routeId:t.params.id,condition1:_.value,condition2:!!t.params.id,bothConditions:_.value&&t.params.id})}),ii(()=>{console.log("VideoDetail组件卸载"),console.log("🔄 [状态清理] 组件卸载,保留推送覆盖状态以便用户返回时恢复")}),(oe,ne)=>{const ee=Te("a-button"),J=Te("a-spin"),ce=Te("a-result"),Se=Te("a-tag"),ke=Te("a-card"),Ae=i3("viewer");return z(),X("div",X9t,[I("div",Z9t,[$(ee,{type:"text",onClick:vt,class:"back-btn"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[ne[3]||(ne[3]=He(" 返回 ",-1))]),_:1}),I("div",J9t,[v.value.name?(z(),X("span",e$t,[I("span",t$t,"视频详情 - "+Fe(v.value.name),1),x.value.name?(z(),X("span",n$t," ("+Fe(x.value.name)+" - ID: "+Fe(v.value.id)+") ",1)):Ie("",!0)])):(z(),X("span",Q9t,"视频详情"))]),v.value.id?(z(),X("div",r$t,[_.value?(z(),Ze(ee,{key:0,type:"outline",status:"warning",onClick:rn,class:"clear-push-btn"},{icon:fe(()=>[$(rt(zc))]),default:fe(()=>[ne[4]||(ne[4]=He(" 恢复原始数据 ",-1))]),_:1})):Ie("",!0),$(ee,{type:ft.value?"primary":"outline",onClick:Jt,class:"favorite-btn",loading:k.value},{icon:fe(()=>[ft.value?(z(),Ze(rt(rW),{key:0})):(z(),Ze(rt(oA),{key:1}))]),default:fe(()=>[He(" "+Fe(ft.value?"取消收藏":"收藏"),1)]),_:1},8,["type","loading"])])):Ie("",!0)]),c.value?(z(),X("div",i$t,[$(J,{size:40}),ne[5]||(ne[5]=I("div",{class:"loading-text"},"正在加载详情...",-1))])):d.value?(z(),X("div",o$t,[$(ce,{status:"error",title:d.value},null,8,["title"]),$(ee,{type:"primary",onClick:Ht},{default:fe(()=>[...ne[6]||(ne[6]=[He("重新加载",-1)])]),_:1})])):h.value?(z(),X("div",s$t,[D.value&&(qe.value||j.value)&&ge.value==="default"?(z(),Ze(uU,{key:0,"video-url":qe.value,"episode-name":Ke.value,poster:h.value?.vod_pic,visible:D.value,"player-type":ge.value,episodes:me.value,"current-episode-index":at.value,headers:M.value,qualities:O.value,"has-multiple-qualities":L.value,"initial-quality":B.value,"needs-parsing":j.value,"parse-data":H.value,onClose:dt,onPlayerChange:Lt,onParserChange:Wt,onNextEpisode:Xt,onEpisodeSelected:Dn,onQualityChange:qr},null,8,["video-url","episode-name","poster","visible","player-type","episodes","current-episode-index","headers","qualities","has-multiple-qualities","initial-quality","needs-parsing","parse-data"])):Ie("",!0),D.value&&(qe.value||j.value)&&ge.value==="artplayer"?(z(),Ze(D4e,{key:1,"video-url":qe.value,"episode-name":Ke.value,poster:h.value?.vod_pic,visible:D.value,"player-type":ge.value,episodes:me.value,"current-episode-index":at.value,"auto-next":!0,headers:M.value,qualities:O.value,"has-multiple-qualities":L.value,"initial-quality":B.value,"needs-parsing":j.value,"parse-data":H.value,onClose:dt,onPlayerChange:Lt,onParserChange:Wt,onNextEpisode:Xt,onEpisodeSelected:Dn,onQualityChange:qr},null,8,["video-url","episode-name","poster","visible","player-type","episodes","current-episode-index","headers","qualities","has-multiple-qualities","initial-quality","needs-parsing","parse-data"])):Ie("",!0),ie.value&&te.value?(z(),Ze(dMt,{key:2,"book-detail":h.value,"chapter-content":te.value,chapters:me.value,"current-chapter-index":S.value,visible:ie.value,onClose:Qe,onNextChapter:ht,onPrevChapter:Vt,onChapterSelected:Ut,onChapterChange:Le},null,8,["book-detail","chapter-content","chapters","current-chapter-index","visible"])):Ie("",!0),W.value&&q.value?(z(),Ze(S9t,{key:3,"comic-detail":h.value,"comic-title":h.value?.vod_name,"chapter-name":Ke.value,chapters:me.value,"current-chapter-index":S.value,"comic-content":q.value,visible:W.value,onClose:Qe,onNextChapter:ht,onPrevChapter:Vt,onChapterSelected:Ut,onSettingsChange:rr},null,8,["comic-detail","comic-title","chapter-name","chapters","current-chapter-index","comic-content","visible"])):Ie("",!0),$(ke,{class:de(["video-info-card",{"collapsed-when-playing":D.value||ie.value}])},{default:fe(()=>[I("div",a$t,[I("div",{class:"video-poster",onClick:Me},[I("img",{src:Ue.value,alt:h.value.vod_name,onError:Ne},null,40,l$t),I("div",u$t,[$(rt(x0),{class:"view-icon"}),ne[7]||(ne[7]=I("span",null,"查看大图",-1))])]),I("div",c$t,[I("h1",d$t,Fe(h.value.vod_name),1),I("div",f$t,[h.value.type_name?(z(),Ze(Se,{key:0,color:"blue"},{default:fe(()=>[He(Fe(h.value.type_name),1)]),_:1})):Ie("",!0),h.value.vod_year?(z(),Ze(Se,{key:1,color:"green"},{default:fe(()=>[He(Fe(h.value.vod_year),1)]),_:1})):Ie("",!0),h.value.vod_area?(z(),Ze(Se,{key:2,color:"orange"},{default:fe(()=>[He(Fe(h.value.vod_area),1)]),_:1})):Ie("",!0)]),I("div",h$t,[h.value.vod_director?(z(),X("div",p$t,[ne[8]||(ne[8]=I("span",{class:"label"},"导演:",-1)),I("span",v$t,Fe(h.value.vod_director),1)])):Ie("",!0),h.value.vod_actor?(z(),X("div",m$t,[ne[9]||(ne[9]=I("span",{class:"label"},"演员:",-1)),I("span",g$t,Fe(h.value.vod_actor),1)])):Ie("",!0),h.value.vod_remarks?(z(),X("div",y$t,[ne[10]||(ne[10]=I("span",{class:"label"},"备注:",-1)),I("span",b$t,Fe(h.value.vod_remarks),1)])):Ie("",!0)])]),I("div",_$t,[Oe.value?(z(),X("div",S$t,[$(ee,{type:"primary",size:"large",onClick:wr,class:"play-btn"},{icon:fe(()=>[Rt.value.icon==="icon-play-arrow"?(z(),Ze(rt(ha),{key:0})):Rt.value.icon==="icon-book"?(z(),Ze(rt(c_),{key:1})):Rt.value.icon==="icon-image"?(z(),Ze(rt(lA),{key:2})):Rt.value.icon==="icon-sound"?(z(),Ze(rt(Uve),{key:3})):Ie("",!0)]),default:fe(()=>[He(" "+Fe(Rt.value.text),1)]),_:1}),$(ee,{onClick:bn,class:"copy-btn",size:"large"},{icon:fe(()=>[$(rt(nA))]),default:fe(()=>[ne[11]||(ne[11]=He(" 复制链接 ",-1))]),_:1})])):Ie("",!0),wt.value?(z(),X("div",k$t,[$(ee,{onClick:kr,class:"download-btn",type:"primary",status:"success",size:"large"},{icon:fe(()=>[$(rt(Ph))]),default:fe(()=>[ne[12]||(ne[12]=He(" 下载小说 ",-1))]),_:1})])):Ie("",!0)])]),h.value.vod_content?(z(),X("div",x$t,[ne[13]||(ne[13]=I("h3",null,"剧情简介",-1)),I("div",{class:de(["description-content",{expanded:g.value}])},Fe(h.value.vod_content),3),h.value.vod_content.length>200?(z(),Ze(ee,{key:0,type:"text",onClick:We,class:"expand-btn"},{default:fe(()=>[He(Fe(g.value?"收起":"展开"),1)]),_:1})):Ie("",!0)])):Ie("",!0)]),_:1},8,["class"]),$(dRt,{"video-detail":h.value,"current-route":y.value,"current-episode":S.value,onRouteChange:$e,onEpisodeChange:An},null,8,["video-detail","current-route","current-episode"])])):Ie("",!0),Ai((z(),X("div",C$t,[(z(!0),X(Pt,null,cn(Ge.value,(nt,ot)=>(z(),X("img",{key:ot,src:nt.src,alt:nt.name,"data-source":nt.src,title:nt.name},null,8,w$t))),128))])),[[Ae,tt.value],[es,!1]]),$(ep,{visible:Q.value,title:se.value.title,width:400,onClose:ne[1]||(ne[1]=nt=>Q.value=!1)},{footer:fe(()=>[I("div",B$t,[$(ee,{type:"primary",onClick:ne[0]||(ne[0]=nt=>Q.value=!1),disabled:ae.value},{default:fe(()=>[...ne[16]||(ne[16]=[He(" 我知道了 ",-1)])]),_:1},8,["disabled"])])]),default:fe(()=>[I("div",E$t,[I("div",T$t,Fe(se.value.message),1),re.value.length>0?(z(),X("div",A$t,[ne[14]||(ne[14]=I("div",{class:"results-title"},"嗅探到的视频链接:",-1)),I("div",I$t,[(z(!0),X(Pt,null,cn(re.value.slice(0,3),(nt,ot)=>(z(),X("div",{key:ot,class:"result-item"},[I("div",L$t,Fe(ot+1),1),I("div",D$t,[I("div",P$t,Fe(nt.url),1),nt.type?(z(),X("div",R$t,Fe(nt.type),1)):Ie("",!0)])]))),128)),re.value.length>3?(z(),X("div",M$t," 还有 "+Fe(re.value.length-3)+" 个链接... ",1)):Ie("",!0)])])):Ie("",!0),ae.value?Ie("",!0):(z(),X("div",$$t,[I("div",O$t,[$(rt(x0))]),ne[15]||(ne[15]=I("div",{class:"hint-text"}," 敬请期待后续版本支持! ",-1))]))])]),_:1},8,["visible","title"]),$(q9t,{visible:K.value,"novel-detail":h.value,chapters:me.value,"source-name":x.value?.name||"",onClose:ne[2]||(ne[2]=nt=>K.value=!1),onConfirm:zr},null,8,["visible","novel-detail","chapters","source-name"])])}}},F$t=cr(N$t,[["__scopeId","data-v-9b86bd37"]]);var uj={exports:{}},_ce;function j$t(){return _ce||(_ce=1,(function(e,t){(function(n,r){e.exports=r()})(window,(function(){return(function(n){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(a,s,l){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:l})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var c in a)i.d(l,c,(function(d){return a[d]}).bind(null,c));return l},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=20)})([function(n,r,i){var a=i(9),s=i.n(a),l=(function(){function c(){}return c.e=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","error",p),c.ENABLE_ERROR&&(console.error?console.error(p):console.warn?console.warn(p):console.log(p))},c.i=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","info",p),c.ENABLE_INFO&&(console.info?console.info(p):console.log(p))},c.w=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","warn",p),c.ENABLE_WARN&&(console.warn?console.warn(p):console.log(p))},c.d=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","debug",p),c.ENABLE_DEBUG&&(console.debug?console.debug(p):console.log(p))},c.v=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","verbose",p),c.ENABLE_VERBOSE&&console.log(p)},c})();l.GLOBAL_TAG="mpegts.js",l.FORCE_GLOBAL_TAG=!1,l.ENABLE_ERROR=!0,l.ENABLE_INFO=!0,l.ENABLE_WARN=!0,l.ENABLE_DEBUG=!0,l.ENABLE_VERBOSE=!0,l.ENABLE_CALLBACK=!1,l.emitter=new s.a,r.a=l},function(n,r,i){var a;(function(s){s.IO_ERROR="io_error",s.DEMUX_ERROR="demux_error",s.INIT_SEGMENT="init_segment",s.MEDIA_SEGMENT="media_segment",s.LOADING_COMPLETE="loading_complete",s.RECOVERED_EARLY_EOF="recovered_early_eof",s.MEDIA_INFO="media_info",s.METADATA_ARRIVED="metadata_arrived",s.SCRIPTDATA_ARRIVED="scriptdata_arrived",s.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",s.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",s.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",s.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",s.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",s.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",s.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",s.STATISTICS_INFO="statistics_info",s.RECOMMEND_SEEKPOINT="recommend_seekpoint"})(a||(a={})),r.a=a},function(n,r,i){i.d(r,"c",(function(){return s})),i.d(r,"b",(function(){return l})),i.d(r,"a",(function(){return c}));var a=i(3),s={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},l={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},c=(function(){function d(h){this._type=h||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return d.prototype.destroy=function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null},d.prototype.isWorking=function(){return this._status===s.kConnecting||this._status===s.kBuffering},Object.defineProperty(d.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"needStashBuffer",{get:function(){return this._needStash},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onContentLengthKnown",{get:function(){return this._onContentLengthKnown},set:function(h){this._onContentLengthKnown=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onURLRedirect",{get:function(){return this._onURLRedirect},set:function(h){this._onURLRedirect=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(h){this._onDataArrival=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onError",{get:function(){return this._onError},set:function(h){this._onError=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onComplete",{get:function(){return this._onComplete},set:function(h){this._onComplete=h},enumerable:!1,configurable:!0}),d.prototype.open=function(h,p){throw new a.c("Unimplemented abstract function!")},d.prototype.abort=function(){throw new a.c("Unimplemented abstract function!")},d})()},function(n,r,i){i.d(r,"d",(function(){return l})),i.d(r,"a",(function(){return c})),i.d(r,"b",(function(){return d})),i.d(r,"c",(function(){return h}));var a,s=(a=function(p,v){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(g[S]=y[S])})(p,v)},function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function g(){this.constructor=p}a(p,v),p.prototype=v===null?Object.create(v):(g.prototype=v.prototype,new g)}),l=(function(){function p(v){this._message=v}return Object.defineProperty(p.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),p.prototype.toString=function(){return this.name+": "+this.message},p})(),c=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),v})(l),d=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),v})(l),h=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),v})(l)},function(n,r,i){var a;(function(s){s.ERROR="error",s.LOADING_COMPLETE="loading_complete",s.RECOVERED_EARLY_EOF="recovered_early_eof",s.MEDIA_INFO="media_info",s.METADATA_ARRIVED="metadata_arrived",s.SCRIPTDATA_ARRIVED="scriptdata_arrived",s.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",s.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",s.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",s.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",s.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",s.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",s.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",s.STATISTICS_INFO="statistics_info",s.DESTROYING="destroying"})(a||(a={})),r.a=a},function(n,r,i){var a={};(function(){var s=self.navigator.userAgent.toLowerCase(),l=/(edge)\/([\w.]+)/.exec(s)||/(opr)[\/]([\w.]+)/.exec(s)||/(chrome)[ \/]([\w.]+)/.exec(s)||/(iemobile)[\/]([\w.]+)/.exec(s)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+)/.exec(s)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(s)||/(msie) ([\w.]+)/.exec(s)||s.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(s)||s.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(s)||[],c=/(ipad)/.exec(s)||/(ipod)/.exec(s)||/(windows phone)/.exec(s)||/(iphone)/.exec(s)||/(kindle)/.exec(s)||/(android)/.exec(s)||/(windows)/.exec(s)||/(mac)/.exec(s)||/(linux)/.exec(s)||/(cros)/.exec(s)||[],d={browser:l[5]||l[3]||l[1]||"",version:l[2]||l[4]||"0",majorVersion:l[4]||l[2]||"0",platform:c[0]||""},h={};if(d.browser){h[d.browser]=!0;var p=d.majorVersion.split(".");h.version={major:parseInt(d.majorVersion,10),string:d.version},p.length>1&&(h.version.minor=parseInt(p[1],10)),p.length>2&&(h.version.build=parseInt(p[2],10))}d.platform&&(h[d.platform]=!0),(h.chrome||h.opr||h.safari)&&(h.webkit=!0),(h.rv||h.iemobile)&&(h.rv&&delete h.rv,d.browser="msie",h.msie=!0),h.edge&&(delete h.edge,d.browser="msedge",h.msedge=!0),h.opr&&(d.browser="opera",h.opera=!0),h.safari&&h.android&&(d.browser="android",h.android=!0);for(var v in h.name=d.browser,h.platform=d.platform,a)a.hasOwnProperty(v)&&delete a[v];Object.assign(a,h)})(),r.a=a},function(n,r,i){r.a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},function(n,r,i){var a;(function(s){s.ERROR="error",s.SOURCE_OPEN="source_open",s.UPDATE_END="update_end",s.BUFFER_FULL="buffer_full",s.START_STREAMING="start_streaming",s.END_STREAMING="end_streaming"})(a||(a={})),r.a=a},function(n,r,i){var a=i(9),s=i.n(a),l=i(0),c=(function(){function d(){}return Object.defineProperty(d,"forceGlobalTag",{get:function(){return l.a.FORCE_GLOBAL_TAG},set:function(h){l.a.FORCE_GLOBAL_TAG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"globalTag",{get:function(){return l.a.GLOBAL_TAG},set:function(h){l.a.GLOBAL_TAG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableAll",{get:function(){return l.a.ENABLE_VERBOSE&&l.a.ENABLE_DEBUG&&l.a.ENABLE_INFO&&l.a.ENABLE_WARN&&l.a.ENABLE_ERROR},set:function(h){l.a.ENABLE_VERBOSE=h,l.a.ENABLE_DEBUG=h,l.a.ENABLE_INFO=h,l.a.ENABLE_WARN=h,l.a.ENABLE_ERROR=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableDebug",{get:function(){return l.a.ENABLE_DEBUG},set:function(h){l.a.ENABLE_DEBUG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableVerbose",{get:function(){return l.a.ENABLE_VERBOSE},set:function(h){l.a.ENABLE_VERBOSE=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableInfo",{get:function(){return l.a.ENABLE_INFO},set:function(h){l.a.ENABLE_INFO=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableWarn",{get:function(){return l.a.ENABLE_WARN},set:function(h){l.a.ENABLE_WARN=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableError",{get:function(){return l.a.ENABLE_ERROR},set:function(h){l.a.ENABLE_ERROR=h,d._notifyChange()},enumerable:!1,configurable:!0}),d.getConfig=function(){return{globalTag:l.a.GLOBAL_TAG,forceGlobalTag:l.a.FORCE_GLOBAL_TAG,enableVerbose:l.a.ENABLE_VERBOSE,enableDebug:l.a.ENABLE_DEBUG,enableInfo:l.a.ENABLE_INFO,enableWarn:l.a.ENABLE_WARN,enableError:l.a.ENABLE_ERROR,enableCallback:l.a.ENABLE_CALLBACK}},d.applyConfig=function(h){l.a.GLOBAL_TAG=h.globalTag,l.a.FORCE_GLOBAL_TAG=h.forceGlobalTag,l.a.ENABLE_VERBOSE=h.enableVerbose,l.a.ENABLE_DEBUG=h.enableDebug,l.a.ENABLE_INFO=h.enableInfo,l.a.ENABLE_WARN=h.enableWarn,l.a.ENABLE_ERROR=h.enableError,l.a.ENABLE_CALLBACK=h.enableCallback},d._notifyChange=function(){var h=d.emitter;if(h.listenerCount("change")>0){var p=d.getConfig();h.emit("change",p)}},d.registerListener=function(h){d.emitter.addListener("change",h)},d.removeListener=function(h){d.emitter.removeListener("change",h)},d.addLogListener=function(h){l.a.emitter.addListener("log",h),l.a.emitter.listenerCount("log")>0&&(l.a.ENABLE_CALLBACK=!0,d._notifyChange())},d.removeLogListener=function(h){l.a.emitter.removeListener("log",h),l.a.emitter.listenerCount("log")===0&&(l.a.ENABLE_CALLBACK=!1,d._notifyChange())},d})();c.emitter=new s.a,r.a=c},function(n,r,i){var a,s=typeof Reflect=="object"?Reflect:null,l=s&&typeof s.apply=="function"?s.apply:function(_,T,D){return Function.prototype.apply.call(_,T,D)};a=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var c=Number.isNaN||function(_){return _!=_};function d(){d.init.call(this)}n.exports=d,n.exports.once=function(_,T){return new Promise((function(D,P){function M(L){_.removeListener(T,O),P(L)}function O(){typeof _.removeListener=="function"&&_.removeListener("error",M),D([].slice.call(arguments))}E(_,T,O,{once:!0}),T!=="error"&&(function(L,B,j){typeof L.on=="function"&&E(L,"error",B,j)})(_,M,{once:!0})}))},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var h=10;function p(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}function v(_){return _._maxListeners===void 0?d.defaultMaxListeners:_._maxListeners}function g(_,T,D,P){var M,O,L,B;if(p(D),(O=_._events)===void 0?(O=_._events=Object.create(null),_._eventsCount=0):(O.newListener!==void 0&&(_.emit("newListener",T,D.listener?D.listener:D),O=_._events),L=O[T]),L===void 0)L=O[T]=D,++_._eventsCount;else if(typeof L=="function"?L=O[T]=P?[D,L]:[L,D]:P?L.unshift(D):L.push(D),(M=v(_))>0&&L.length>M&&!L.warned){L.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=_,j.type=T,j.count=L.length,B=j,console&&console.warn&&console.warn(B)}return _}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(_,T,D){var P={fired:!1,wrapFn:void 0,target:_,type:T,listener:D},M=y.bind(P);return M.listener=D,P.wrapFn=M,M}function k(_,T,D){var P=_._events;if(P===void 0)return[];var M=P[T];return M===void 0?[]:typeof M=="function"?D?[M.listener||M]:[M]:D?(function(O){for(var L=new Array(O.length),B=0;B0&&(O=T[0]),O instanceof Error)throw O;var L=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw L.context=O,L}var B=M[_];if(B===void 0)return!1;if(typeof B=="function")l(B,this,T);else{var j=B.length,H=x(B,j);for(D=0;D=0;O--)if(D[O]===T||D[O].listener===T){L=D[O].listener,M=O;break}if(M<0)return this;M===0?D.shift():(function(B,j){for(;j+1=0;P--)this.removeListener(_,T[P]);return this},d.prototype.listeners=function(_){return k(this,_,!0)},d.prototype.rawListeners=function(_){return k(this,_,!1)},d.listenerCount=function(_,T){return typeof _.listenerCount=="function"?_.listenerCount(T):C.call(_,T)},d.prototype.listenerCount=C,d.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},function(n,r,i){i.d(r,"b",(function(){return l})),i.d(r,"a",(function(){return c}));var a=i(2),s=i(6),l={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},c={NETWORK_EXCEPTION:a.b.EXCEPTION,NETWORK_STATUS_CODE_INVALID:a.b.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:a.b.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:a.b.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:s.a.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:s.a.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:s.a.CODEC_UNSUPPORTED}},function(n,r,i){i.d(r,"d",(function(){return a})),i.d(r,"b",(function(){return s})),i.d(r,"a",(function(){return l})),i.d(r,"c",(function(){return c}));var a=function(d,h,p,v,g){this.dts=d,this.pts=h,this.duration=p,this.originalDts=v,this.isSyncPoint=g,this.fileposition=null},s=(function(){function d(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return d.prototype.appendSyncPoint=function(h){h.isSyncPoint=!0,this.syncPoints.push(h)},d})(),l=(function(){function d(){this._list=[]}return d.prototype.clear=function(){this._list=[]},d.prototype.appendArray=function(h){var p=this._list;h.length!==0&&(p.length>0&&h[0].originalDts=p[y].dts&&hp[g].lastSample.originalDts&&h=p[g].lastSample.originalDts&&(g===p.length-1||g0&&(y=this._searchNearestSegmentBefore(v.originalBeginDts)+1),this._lastAppendLocation=y,this._list.splice(y,0,v)},d.prototype.getLastSegmentBefore=function(h){var p=this._searchNearestSegmentBefore(h);return p>=0?this._list[p]:null},d.prototype.getLastSampleBefore=function(h){var p=this.getLastSegmentBefore(h);return p!=null?p.lastSample:null},d.prototype.getLastSyncPointBefore=function(h){for(var p=this._searchNearestSegmentBefore(h),v=this._list[p].syncPoints;v.length===0&&p>0;)p--,v=this._list[p].syncPoints;return v.length>0?v[v.length-1]:null},d})()},function(n,r,i){var a=(function(){function s(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return s.prototype.isComplete=function(){var l=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,c=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&l&&c},s.prototype.isSeekable=function(){return this.hasKeyframesIndex===!0},s.prototype.getNearestKeyframe=function(l){if(this.keyframesIndex==null)return null;var c=this.keyframesIndex,d=this._search(c.times,l);return{index:d,milliseconds:c.times[d],fileposition:c.filepositions[d]}},s.prototype._search=function(l,c){var d=0,h=l.length-1,p=0,v=0,g=h;for(c=l[p]&&c=128){ne.push(String.fromCharCode(65535&Se)),J+=2;continue}}else if(ee[J]<240){if(h(ee,J,2)&&(Se=(15&ee[J])<<12|(63&ee[J+1])<<6|63&ee[J+2])>=2048&&(63488&Se)!=55296){ne.push(String.fromCharCode(65535&Se)),J+=3;continue}}else if(ee[J]<248){var Se;if(h(ee,J,3)&&(Se=(7&ee[J])<<18|(63&ee[J+1])<<12|(63&ee[J+2])<<6|63&ee[J+3])>65536&&Se<1114112){Se-=65536,ne.push(String.fromCharCode(Se>>>10|55296)),ne.push(String.fromCharCode(1023&Se|56320)),J+=4;continue}}}ne.push("�"),++J}return ne.join("")},g=i(3),y=(p=new ArrayBuffer(2),new DataView(p).setInt16(0,256,!0),new Int16Array(p)[0]===256),S=(function(){function oe(){}return oe.parseScriptData=function(ne,ee,J){var ce={};try{var Se=oe.parseValue(ne,ee,J),ke=oe.parseValue(ne,ee+Se.size,J-Se.size);ce[Se.data]=ke.data}catch(Ae){l.a.e("AMF",Ae.toString())}return ce},oe.parseObject=function(ne,ee,J){if(J<3)throw new g.a("Data not enough when parse ScriptDataObject");var ce=oe.parseString(ne,ee,J),Se=oe.parseValue(ne,ee+ce.size,J-ce.size),ke=Se.objectEnd;return{data:{name:ce.data,value:Se.data},size:ce.size+Se.size,objectEnd:ke}},oe.parseVariable=function(ne,ee,J){return oe.parseObject(ne,ee,J)},oe.parseString=function(ne,ee,J){if(J<2)throw new g.a("Data not enough when parse String");var ce=new DataView(ne,ee,J).getUint16(0,!y);return{data:ce>0?v(new Uint8Array(ne,ee+2,ce)):"",size:2+ce}},oe.parseLongString=function(ne,ee,J){if(J<4)throw new g.a("Data not enough when parse LongString");var ce=new DataView(ne,ee,J).getUint32(0,!y);return{data:ce>0?v(new Uint8Array(ne,ee+4,ce)):"",size:4+ce}},oe.parseDate=function(ne,ee,J){if(J<10)throw new g.a("Data size invalid when parse Date");var ce=new DataView(ne,ee,J),Se=ce.getFloat64(0,!y),ke=ce.getInt16(8,!y);return{data:new Date(Se+=60*ke*1e3),size:10}},oe.parseValue=function(ne,ee,J){if(J<1)throw new g.a("Data not enough when parse Value");var ce,Se=new DataView(ne,ee,J),ke=1,Ae=Se.getUint8(0),nt=!1;try{switch(Ae){case 0:ce=Se.getFloat64(1,!y),ke+=8;break;case 1:ce=!!Se.getUint8(1),ke+=1;break;case 2:var ot=oe.parseString(ne,ee+1,J-1);ce=ot.data,ke+=ot.size;break;case 3:ce={};var gt=0;for((16777215&Se.getUint32(J-4,!y))==9&&(gt=3);ke32)throw new g.b("ExpGolomb: readBits() bits exceeded max 32bits!");if(ne<=this._current_word_bits_left){var ee=this._current_word>>>32-ne;return this._current_word<<=ne,this._current_word_bits_left-=ne,ee}var J=this._current_word_bits_left?this._current_word:0;J>>>=32-this._current_word_bits_left;var ce=ne-this._current_word_bits_left;this._fillCurrentWord();var Se=Math.min(ce,this._current_word_bits_left),ke=this._current_word>>>32-Se;return this._current_word<<=Se,this._current_word_bits_left-=Se,J=J<>>ne)!=0)return this._current_word<<=ne,this._current_word_bits_left-=ne,ne;return this._fillCurrentWord(),ne+this._skipLeadingZero()},oe.prototype.readUEG=function(){var ne=this._skipLeadingZero();return this.readBits(ne+1)-1},oe.prototype.readSEG=function(){var ne=this.readUEG();return 1&ne?ne+1>>>1:-1*(ne>>>1)},oe})(),C=(function(){function oe(){}return oe._ebsp2rbsp=function(ne){for(var ee=ne,J=ee.byteLength,ce=new Uint8Array(J),Se=0,ke=0;ke=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.parseSPS=function(ne){for(var ee=ne.subarray(1,4),J="avc1.",ce=0;ce<3;ce++){var Se=ee[ce].toString(16);Se.length<2&&(Se="0"+Se),J+=Se}var ke=oe._ebsp2rbsp(ne),Ae=new k(ke);Ae.readByte();var nt=Ae.readByte();Ae.readByte();var ot=Ae.readByte();Ae.readUEG();var gt=oe.getProfileString(nt),De=oe.getLevelString(ot),st=1,ut=420,Mt=8,Qt=8;if((nt===100||nt===110||nt===122||nt===244||nt===44||nt===83||nt===86||nt===118||nt===128||nt===138||nt===144)&&((st=Ae.readUEG())===3&&Ae.readBits(1),st<=3&&(ut=[0,420,422,444][st]),Mt=Ae.readUEG()+8,Qt=Ae.readUEG()+8,Ae.readBits(1),Ae.readBool()))for(var Gt=st!==3?8:12,pn=0;pn0&&wn<16?(vr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][wn-1],hr=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][wn-1]):wn===255&&(vr=Ae.readByte()<<8|Ae.readByte(),hr=Ae.readByte()<<8|Ae.readByte())}if(Ae.readBool()&&Ae.readBool(),Ae.readBool()&&(Ae.readBits(4),Ae.readBool()&&Ae.readBits(24)),Ae.readBool()&&(Ae.readUEG(),Ae.readUEG()),Ae.readBool()){var Yr=Ae.readBits(32),ws=Ae.readBits(32);yi=Ae.readBool(),Kr=(li=ws)/(La=2*Yr)}}var Fo=1;vr===1&&hr===1||(Fo=vr/hr);var Go=0,ui=0;st===0?(Go=1,ui=2-Yn):(Go=st===3?1:2,ui=(st===1?2:1)*(2-Yn));var tu=16*(tr+1),Ll=16*(_n+1)*(2-Yn);tu-=(fr+ir)*Go,Ll-=(Ln+or)*ui;var jo=Math.ceil(tu*Fo);return Ae.destroy(),Ae=null,{codec_mimetype:J,profile_idc:nt,level_idc:ot,profile_string:gt,level_string:De,chroma_format_idc:st,bit_depth:Mt,bit_depth_luma:Mt,bit_depth_chroma:Qt,ref_frames:dr,chroma_format:ut,chroma_format_string:oe.getChromaFormatString(ut),frame_rate:{fixed:yi,fps:Kr,fps_den:La,fps_num:li},sar_ratio:{width:vr,height:hr},codec_size:{width:tu,height:Ll},present_size:{width:jo,height:Ll}}},oe._skipScalingList=function(ne,ee){for(var J=8,ce=8,Se=0;Se=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.parseVPS=function(ne){var ee=oe._ebsp2rbsp(ne),J=new k(ee);return J.readByte(),J.readByte(),J.readBits(4),J.readBits(2),J.readBits(6),{num_temporal_layers:J.readBits(3)+1,temporal_id_nested:J.readBool()}},oe.parseSPS=function(ne){var ee=oe._ebsp2rbsp(ne),J=new k(ee);J.readByte(),J.readByte();for(var ce=0,Se=0,ke=0,Ae=0,nt=(J.readBits(4),J.readBits(3)),ot=(J.readBool(),J.readBits(2)),gt=J.readBool(),De=J.readBits(5),st=J.readByte(),ut=J.readByte(),Mt=J.readByte(),Qt=J.readByte(),Gt=J.readByte(),pn=J.readByte(),mn=J.readByte(),ln=J.readByte(),dr=J.readByte(),tr=J.readByte(),_n=J.readByte(),Yn=[],fr=[],ir=0;ir0)for(ir=nt;ir<8;ir++)J.readBits(2);for(ir=0;ir1&&J.readSEG(),ir=0;ir0&&sd<=16?(nu=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][sd-1],pc=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][sd-1]):sd===255&&(nu=J.readBits(16),pc=J.readBits(16))}if(J.readBool()&&J.readBool(),J.readBool()&&(J.readBits(3),J.readBool(),J.readBool()&&(J.readByte(),J.readByte(),J.readByte())),J.readBool()&&(J.readUEG(),J.readUEG()),J.readBool(),J.readBool(),J.readBool(),J.readBool()&&(J.readUEG(),J.readUEG(),J.readUEG(),J.readUEG()),J.readBool()&&(Ns=J.readBits(32),Of=J.readBits(32),J.readBool()&&J.readUEG(),J.readBool())){var jd=!1,Ou=!1,nl=!1;for(jd=J.readBool(),Ou=J.readBool(),(jd||Ou)&&((nl=J.readBool())&&(J.readByte(),J.readBits(5),J.readBool(),J.readBits(5)),J.readBits(4),J.readBits(4),nl&&J.readBits(4),J.readBits(5),J.readBits(5),J.readBits(5)),ir=0;ir<=nt;ir++){var Es=J.readBool();np=Es;var rp=!0,vc=1;Es||(rp=J.readBool());var mc=!1;if(rp?J.readUEG():mc=J.readBool(),mc||(vc=J.readUEG()+1),jd){for(ui=0;ui>3),ke=(4&ne[J])!=0,Ae=(2&ne[J])!=0;ne[J],J+=1,ke&&(J+=1);var nt=Number.POSITIVE_INFINITY;if(Ae){nt=0;for(var ot=0;;ot++){var gt=ne[J++];if(nt|=(127>)<<7*ot,(128>)==0)break}}console.log(Se),Se===1?ee=M(M({},oe.parseSeuqneceHeader(ne.subarray(J,J+nt))),{sequence_header_data:ne.subarray(ce,J+nt)}):(Se==3&&ee||Se==6&&ee)&&(ee=oe.parseOBUFrameHeader(ne.subarray(J,J+nt),0,0,ee)),J+=nt}return ee},oe.parseSeuqneceHeader=function(ne){var ee=new k(ne),J=ee.readBits(3),ce=(ee.readBool(),ee.readBool()),Se=!0,ke=0,Ae=1,nt=void 0,ot=[];if(ce)ot.push({operating_point_idc:0,level:ee.readBits(5),tier:0});else{if(ee.readBool()){var gt=ee.readBits(32),De=ee.readBits(32),st=ee.readBool();if(st){for(var ut=0;ee.readBits(1)===0;)ut+=1;ut>=32||(1<7?ee.readBits(1):0;ot.push({operating_point_idc:pn,level:mn,tier:ln}),Mt&&ee.readBool()&&ee.readBits(4)}}var dr=ot[0],tr=dr.level,_n=dr.tier,Yn=ee.readBits(4),fr=ee.readBits(4),ir=ee.readBits(Yn+1)+1,Ln=ee.readBits(fr+1)+1,or=!1;ce||(or=ee.readBool()),or&&(ee.readBits(4),ee.readBits(4)),ee.readBool(),ee.readBool(),ee.readBool();var vr=!1,hr=2,Kr=2,yi=0;ce||(ee.readBool(),ee.readBool(),ee.readBool(),ee.readBool(),(vr=ee.readBool())&&(ee.readBool(),ee.readBool()),(hr=ee.readBool()?2:ee.readBits(1))?Kr=ee.readBool()?2:ee.readBits(1):Kr=2,vr?yi=ee.readBits(3)+1:yi=0);var li=ee.readBool(),La=(ee.readBool(),ee.readBool(),ee.readBool()),wn=8;J===2&&La?wn=ee.readBool()?12:10:wn=La?10:8;var Yr=!1;J!==1&&(Yr=ee.readBool()),ee.readBool()&&(ee.readBits(8),ee.readBits(8),ee.readBits(8));var ws=1,Fo=1;return Yr?(ee.readBits(1),ws=1,Fo=1):(ee.readBits(1),J==0?(ws=1,Fo=1):J==1?(ws=0,Fo=0):wn==12?ee.readBits(1)&&ee.readBits(1):(ws=1,Fo=0),ws&&Fo&&ee.readBits(2),ee.readBits(1)),ee.readBool(),ee.destroy(),ee=null,{codec_mimetype:"av01.".concat(J,".").concat(oe.getLevelString(tr,_n),".").concat(wn.toString(10).padStart(2,"0")),level:tr,tier:_n,level_string:oe.getLevelString(tr,_n),profile_idc:J,profile_string:"".concat(J),bit_depth:wn,ref_frames:1,chroma_format:oe.getChromaFormat(Yr,ws,Fo),chroma_format_string:oe.getChromaFormatString(Yr,ws,Fo),sequence_header:{frame_id_numbers_present_flag:or,additional_frame_id_length_minus_1:void 0,delta_frame_id_length_minus_2:void 0,reduced_still_picture_header:ce,decoder_model_info_present_flag:!1,operating_points:ot,buffer_removal_time_length_minus_1:nt,equal_picture_interval:Se,seq_force_screen_content_tools:hr,seq_force_integer_mv:Kr,enable_order_hint:vr,order_hint_bits:yi,enable_superres:li,frame_width_bit:Yn+1,frame_height_bit:fr+1,max_frame_width:ir,max_frame_height:Ln},keyframe:void 0,frame_rate:{fixed:Se,fps:ke/Ae,fps_den:Ae,fps_num:ke}}},oe.parseOBUFrameHeader=function(ne,ee,J,ce){var Se=ce.sequence_header,ke=new k(ne),Ae=(Se.max_frame_width,Se.max_frame_height,0);Se.frame_id_numbers_present_flag&&(Ae=Se.additional_frame_id_length_minus_1+Se.delta_frame_id_length_minus_2+3);var nt=0,ot=!0,gt=!0,De=!1;if(!Se.reduced_still_picture_header){if(ke.readBool())return ce;ot=(nt=ke.readBits(2))===2||nt===0,(gt=ke.readBool())&&Se.decoder_model_info_present_flag&&Se.equal_picture_interval,gt&&ke.readBool(),De=!!(nt===3||nt===0&>)||ke.readBool()}ce.keyframe=ot,ke.readBool();var st=Se.seq_force_screen_content_tools;Se.seq_force_screen_content_tools===2&&(st=ke.readBits(1)),st&&(Se.seq_force_integer_mv,Se.seq_force_integer_mv==2&&ke.readBits(1)),Se.frame_id_numbers_present_flag&&ke.readBits(Ae);var ut=!1;if(ut=nt==3||!Se.reduced_still_picture_header&&ke.readBool(),ke.readBits(Se.order_hint_bits),ot||De||ke.readBits(3),Se.decoder_model_info_present_flag&&ke.readBool()){for(var Mt=0;Mt<=Se.operating_points_cnt_minus_1;Mt++)if(Se.operating_points[Mt].decoder_model_present_for_this_op[Mt]){var Qt=Se.operating_points[Mt].operating_point_idc;(Qt===0||Qt>>ee&1&&Qt>>J+8&1)&&ke.readBits(Se.buffer_removal_time_length_minus_1+1)}}var Gt=255;if(nt===3||nt==0&>||(Gt=ke.readBits(8)),(ot||Gt!==255)&&De&&Se.enable_order_hint)for(var pn=0;pn<8;pn++)ke.readBits(Se.order_hint_bits);if(ot){var mn=oe.frameSizeAndRenderSize(ke,ut,Se);ce.codec_size={width:mn.FrameWidth,height:mn.FrameHeight},ce.present_size={width:mn.RenderWidth,height:mn.RenderHeight},ce.sar_ratio={width:mn.RenderWidth/mn.FrameWidth,height:mn.RenderHeight/mn.FrameHeight}}return ke.destroy(),ke=null,ce},oe.frameSizeAndRenderSize=function(ne,ee,J){var ce=J.max_frame_width,Se=J.max_frame_height;ee&&(ce=ne.readBits(J.frame_width_bit)+1,Se=ne.readBits(J.frame_height_bit)+1);var ke=!1;J.enable_superres&&(ke=ne.readBool());var Ae=8;ke&&(Ae=ne.readBits(3)+9);var nt=ce;ce=Math.floor((8*nt+Ae/2)/Ae);var ot=nt,gt=Se;if(ne.readBool()){var De=ne.readBits(16)+1,st=ne.readBits(16)+1;ot=ne.readBits(De)+1,gt=ne.readBits(st)+1}return{UpscaledWidth:nt,FrameWidth:ce,FrameHeight:Se,RenderWidth:ot,RenderHeight:gt}},oe.getLevelString=function(ne,ee){return"".concat(ne.toString(10).padStart(2,"0")).concat(ee===0?"M":"H")},oe.getChromaFormat=function(ne,ee,J){return ne?0:ee===0&&J===0?3:ee===1&&J===0?2:ee===1&&J===1?1:Number.NaN},oe.getChromaFormatString=function(ne,ee,J){return ne?"4:0:0":ee===0&&J===0?"4:4:4":ee===1&&J===0?"4:2:2":ee===1&&J===1?"4:2:0":"Unknown"},oe})(),L,B=(function(){function oe(ne,ee){this.TAG="FLVDemuxer",this._config=ee,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ne.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ne.hasAudioTrack,this._hasVideo=ne.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new d.a,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var J=new ArrayBuffer(2);return new DataView(J).setInt16(0,256,!0),new Int16Array(J)[0]===256})()}return oe.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},oe.probe=function(ne){var ee=new Uint8Array(ne);if(ee.byteLength<9)return{needMoreData:!0};var J={match:!1};if(ee[0]!==70||ee[1]!==76||ee[2]!==86||ee[3]!==1)return J;var ce,Se,ke=(4&ee[4])>>>2!=0,Ae=(1&ee[4])!=0,nt=(ce=ee)[Se=5]<<24|ce[Se+1]<<16|ce[Se+2]<<8|ce[Se+3];return nt<9?J:{match:!0,consumed:nt,dataOffset:nt,hasAudioTrack:ke,hasVideoTrack:Ae}},oe.prototype.bindDataSource=function(ne){return ne.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(oe.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(ne){this._onTrackMetadata=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(ne){this._onMediaInfo=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(ne){this._onMetaDataArrived=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(ne){this._onScriptDataArrived=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onError",{get:function(){return this._onError},set:function(ne){this._onError=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(ne){this._onDataAvailable=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(ne){this._timestampBase=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedDuration",{get:function(){return this._duration},set:function(ne){this._durationOverrided=!0,this._duration=ne,this._mediaInfo.duration=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedHasAudio",{set:function(ne){this._hasAudioFlagOverrided=!0,this._hasAudio=ne,this._mediaInfo.hasAudio=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedHasVideo",{set:function(ne){this._hasVideoFlagOverrided=!0,this._hasVideo=ne,this._mediaInfo.hasVideo=ne},enumerable:!1,configurable:!0}),oe.prototype.resetMediaInfo=function(){this._mediaInfo=new d.a},oe.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},oe.prototype.parseChunks=function(ne,ee){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new g.a("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var J=0,ce=this._littleEndian;if(ee===0){if(!(ne.byteLength>13))return 0;J=oe.probe(ne).dataOffset}for(this._firstParse&&(this._firstParse=!1,ee+J!==this._dataOffset&&l.a.w(this.TAG,"First time parsing but chunk byteStart invalid!"),(Se=new DataView(ne,J)).getUint32(0,!ce)!==0&&l.a.w(this.TAG,"PrevTagSize0 !== 0 !!!"),J+=4);Jne.byteLength)break;var ke=Se.getUint8(0),Ae=16777215&Se.getUint32(0,!ce);if(J+11+Ae+4>ne.byteLength)break;if(ke===8||ke===9||ke===18){var nt=Se.getUint8(4),ot=Se.getUint8(5),gt=Se.getUint8(6)|ot<<8|nt<<16|Se.getUint8(7)<<24;(16777215&Se.getUint32(7,!ce))!==0&&l.a.w(this.TAG,"Meet tag which has StreamID != 0!");var De=J+11;switch(ke){case 8:this._parseAudioData(ne,De,Ae,gt);break;case 9:this._parseVideoData(ne,De,Ae,gt,ee+J);break;case 18:this._parseScriptData(ne,De,Ae)}var st=Se.getUint32(11+Ae,!ce);st!==11+Ae&&l.a.w(this.TAG,"Invalid PrevTagSize ".concat(st)),J+=11+Ae+4}else l.a.w(this.TAG,"Unsupported tag type ".concat(ke,", skipped")),J+=11+Ae+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),J},oe.prototype._parseScriptData=function(ne,ee,J){var ce=S.parseScriptData(ne,ee,J);if(ce.hasOwnProperty("onMetaData")){if(ce.onMetaData==null||typeof ce.onMetaData!="object")return void l.a.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&l.a.w(this.TAG,"Found another onMetaData tag!"),this._metadata=ce;var Se=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Se)),typeof Se.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Se.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Se.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Se.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Se.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Se.audiodatarate),typeof Se.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Se.videodatarate),typeof Se.width=="number"&&(this._mediaInfo.width=Se.width),typeof Se.height=="number"&&(this._mediaInfo.height=Se.height),typeof Se.duration=="number"){if(!this._durationOverrided){var ke=Math.floor(Se.duration*this._timescale);this._duration=ke,this._mediaInfo.duration=ke}}else this._mediaInfo.duration=0;if(typeof Se.framerate=="number"){var Ae=Math.floor(1e3*Se.framerate);if(Ae>0){var nt=Ae/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=nt,this._referenceFrameRate.fps_num=Ae,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=nt}}if(typeof Se.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var ot=Se.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(ot),Se.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Se,l.a.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(ce).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},ce))},oe.prototype._parseKeyframesIndex=function(ne){for(var ee=[],J=[],ce=1;ce>>4;if(ke!==9)if(ke===2||ke===10){var Ae=0,nt=(12&Se)>>>2;if(nt>=0&&nt<=4){Ae=this._flvSoundRateTable[nt];var ot=1&Se,gt=this._audioMetadata,De=this._audioTrack;if(gt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(gt=this._audioMetadata={}).type="audio",gt.id=De.id,gt.timescale=this._timescale,gt.duration=this._duration,gt.audioSampleRate=Ae,gt.channelCount=ot===0?1:2),ke===10){var st=this._parseAACAudioData(ne,ee+1,J-1);if(st==null)return;if(st.packetType===0){if(gt.config){if(P(st.data.config,gt.config))return;l.a.w(this.TAG,"AudioSpecificConfig has been changed, re-generate initialization segment")}var ut=st.data;gt.audioSampleRate=ut.samplingRate,gt.channelCount=ut.channelCount,gt.codec=ut.codec,gt.originalCodec=ut.originalCodec,gt.config=ut.config,gt.refSampleDuration=1024/gt.audioSampleRate*gt.timescale,l.a.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",gt),(Gt=this._mediaInfo).audioCodec=gt.originalCodec,Gt.audioSampleRate=gt.audioSampleRate,Gt.audioChannelCount=gt.channelCount,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)}else if(st.packetType===1){var Mt=this._timestampBase+ce,Qt={unit:st.data,length:st.data.byteLength,dts:Mt,pts:Mt};De.samples.push(Qt),De.length+=st.data.length}else l.a.e(this.TAG,"Flv: Unsupported AAC data type ".concat(st.packetType))}else if(ke===2){if(!gt.codec){var Gt;if((ut=this._parseMP3AudioData(ne,ee+1,J-1,!0))==null)return;gt.audioSampleRate=ut.samplingRate,gt.channelCount=ut.channelCount,gt.codec=ut.codec,gt.originalCodec=ut.originalCodec,gt.refSampleDuration=1152/gt.audioSampleRate*gt.timescale,l.a.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",gt),(Gt=this._mediaInfo).audioCodec=gt.codec,Gt.audioSampleRate=gt.audioSampleRate,Gt.audioChannelCount=gt.channelCount,Gt.audioDataRate=ut.bitRate,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)}var pn=this._parseMP3AudioData(ne,ee+1,J-1,!1);if(pn==null)return;Mt=this._timestampBase+ce;var mn={unit:pn,length:pn.byteLength,dts:Mt,pts:Mt};De.samples.push(mn),De.length+=pn.length}}else this._onError(x.a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+nt)}else this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+ke);else{if(J<=5)return void l.a.w(this.TAG,"Flv: Invalid audio packet, missing AudioFourCC in Ehnanced FLV payload!");var ln=15&Se,dr=String.fromCharCode.apply(String,new Uint8Array(ne,ee,J).slice(1,5));switch(dr){case"Opus":this._parseOpusAudioPacket(ne,ee+5,J-5,ce,ln);break;case"fLaC":this._parseFlacAudioPacket(ne,ee+5,J-5,ce,ln);break;default:this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec: "+dr)}}}},oe.prototype._parseAACAudioData=function(ne,ee,J){if(!(J<=1)){var ce={},Se=new Uint8Array(ne,ee,J);return ce.packetType=Se[0],Se[0]===0?ce.data=this._parseAACAudioSpecificConfig(ne,ee+1,J-1):ce.data=Se.subarray(1),ce}l.a.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},oe.prototype._parseAACAudioSpecificConfig=function(ne,ee,J){var ce,Se,ke=new Uint8Array(ne,ee,J),Ae=null,nt=0,ot=null;if(nt=ce=ke[0]>>>3,(Se=(7&ke[0])<<1|ke[1]>>>7)<0||Se>=this._mpegSamplingRates.length)this._onError(x.a.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var gt=this._mpegSamplingRates[Se],De=(120&ke[1])>>>3;if(!(De<0||De>=8)){nt===5&&(ot=(7&ke[1])<<1|ke[2]>>>7,(124&ke[2])>>>2);var st=self.navigator.userAgent.toLowerCase();return st.indexOf("firefox")!==-1?Se>=6?(nt=5,Ae=new Array(4),ot=Se-3):(nt=2,Ae=new Array(2),ot=Se):st.indexOf("android")!==-1?(nt=2,Ae=new Array(2),ot=Se):(nt=5,ot=Se,Ae=new Array(4),Se>=6?ot=Se-3:De===1&&(nt=2,Ae=new Array(2),ot=Se)),Ae[0]=nt<<3,Ae[0]|=(15&Se)>>>1,Ae[1]=(15&Se)<<7,Ae[1]|=(15&De)<<3,nt===5&&(Ae[1]|=(15&ot)>>>1,Ae[2]=(1&ot)<<7,Ae[2]|=8,Ae[3]=0),{config:Ae,samplingRate:gt,channelCount:De,codec:"mp4a.40."+nt,originalCodec:"mp4a.40."+ce}}this._onError(x.a.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},oe.prototype._parseMP3AudioData=function(ne,ee,J,ce){if(!(J<4)){this._littleEndian;var Se=new Uint8Array(ne,ee,J),ke=null;if(ce){if(Se[0]!==255)return;var Ae=Se[1]>>>3&3,nt=(6&Se[1])>>1,ot=(240&Se[2])>>>4,gt=(12&Se[2])>>>2,De=(Se[3]>>>6&3)!==3?2:1,st=0,ut=0;switch(Ae){case 0:st=this._mpegAudioV25SampleRateTable[gt];break;case 2:st=this._mpegAudioV20SampleRateTable[gt];break;case 3:st=this._mpegAudioV10SampleRateTable[gt]}switch(nt){case 1:ot>>16&255,Mt[2]=ke.byteLength>>>8&255,Mt[3]=ke.byteLength>>>0&255;var Qt={config:Mt,channelCount:st,samplingFrequence:De,sampleSize:ut,codec:"flac",originalCodec:"flac"};if(ce.config){if(P(Qt.config,ce.config))return;l.a.w(this.TAG,"FlacSequenceHeader has been changed, re-generate initialization segment")}ce.audioSampleRate=Qt.samplingFrequence,ce.channelCount=Qt.channelCount,ce.sampleSize=Qt.sampleSize,ce.codec=Qt.codec,ce.originalCodec=Qt.originalCodec,ce.config=Qt.config,ce.refSampleDuration=gt!=null?1e3*gt/Qt.samplingFrequence:null,l.a.v(this.TAG,"Parsed FlacSequenceHeader"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",ce);var Gt=this._mediaInfo;Gt.audioCodec=ce.originalCodec,Gt.audioSampleRate=ce.audioSampleRate,Gt.audioChannelCount=ce.channelCount,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)},oe.prototype._parseFlacAudioData=function(ne,ee,J,ce){var Se=this._audioTrack,ke=new Uint8Array(ne,ee,J),Ae=this._timestampBase+ce,nt={unit:ke,length:ke.byteLength,dts:Ae,pts:Ae};Se.samples.push(nt),Se.length+=ke.length},oe.prototype._parseVideoData=function(ne,ee,J,ce,Se){if(J<=1)l.a.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(this._hasVideoFlagOverrided!==!0||this._hasVideo!==!1){var ke=new Uint8Array(ne,ee,J)[0],Ae=(112&ke)>>>4;if((128&ke)!=0){var nt=15&ke,ot=String.fromCharCode.apply(String,new Uint8Array(ne,ee,J).slice(1,5));if(ot==="hvc1")this._parseEnhancedHEVCVideoPacket(ne,ee+5,J-5,ce,Se,Ae,nt);else{if(ot!=="av01")return void this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(ot));this._parseEnhancedAV1VideoPacket(ne,ee+5,J-5,ce,Se,Ae,nt)}}else{var gt=15&ke;if(gt===7)this._parseAVCVideoPacket(ne,ee+1,J-1,ce,Se,Ae);else{if(gt!==12)return void this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(gt));this._parseHEVCVideoPacket(ne,ee+1,J-1,ce,Se,Ae)}}}},oe.prototype._parseAVCVideoPacket=function(ne,ee,J,ce,Se,ke){if(J<4)l.a.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var Ae=this._littleEndian,nt=new DataView(ne,ee,J),ot=nt.getUint8(0),gt=(16777215&nt.getUint32(0,!Ae))<<8>>8;if(ot===0)this._parseAVCDecoderConfigurationRecord(ne,ee+4,J-4);else if(ot===1)this._parseAVCVideoData(ne,ee+4,J-4,ce,Se,ke,gt);else if(ot!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ot))}},oe.prototype._parseHEVCVideoPacket=function(ne,ee,J,ce,Se,ke){if(J<4)l.a.w(this.TAG,"Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");else{var Ae=this._littleEndian,nt=new DataView(ne,ee,J),ot=nt.getUint8(0),gt=(16777215&nt.getUint32(0,!Ae))<<8>>8;if(ot===0)this._parseHEVCDecoderConfigurationRecord(ne,ee+4,J-4);else if(ot===1)this._parseHEVCVideoData(ne,ee+4,J-4,ce,Se,ke,gt);else if(ot!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ot))}},oe.prototype._parseEnhancedHEVCVideoPacket=function(ne,ee,J,ce,Se,ke,Ae){var nt=this._littleEndian,ot=new DataView(ne,ee,J);if(Ae===0)this._parseHEVCDecoderConfigurationRecord(ne,ee,J);else if(Ae===1){var gt=(4294967040&ot.getUint32(0,!nt))>>8;this._parseHEVCVideoData(ne,ee+3,J-3,ce,Se,ke,gt)}else if(Ae===3)this._parseHEVCVideoData(ne,ee,J,ce,Se,ke,0);else if(Ae!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Ae))},oe.prototype._parseEnhancedAV1VideoPacket=function(ne,ee,J,ce,Se,ke,Ae){if(this._littleEndian,Ae===0)this._parseAV1CodecConfigurationRecord(ne,ee,J);else if(Ae===1)this._parseAV1VideoData(ne,ee,J,ce,Se,ke,0);else{if(Ae===5)return void this._onError(x.a.FORMAT_ERROR,"Flv: Not Supported MP2T AV1 video packet type ".concat(Ae));if(Ae!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Ae))}},oe.prototype._parseAVCDecoderConfigurationRecord=function(ne,ee,J){if(J<7)l.a.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var ce=this._videoMetadata,Se=this._videoTrack,ke=this._littleEndian,Ae=new DataView(ne,ee,J);if(ce){if(ce.avcc!==void 0){var nt=new Uint8Array(ne,ee,J);if(P(nt,ce.avcc))return;l.a.w(this.TAG,"AVCDecoderConfigurationRecord has been changed, re-generate initialization segment")}}else this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(ce=this._videoMetadata={}).type="video",ce.id=Se.id,ce.timescale=this._timescale,ce.duration=this._duration;var ot=Ae.getUint8(0),gt=Ae.getUint8(1);if(Ae.getUint8(2),Ae.getUint8(3),ot===1&>!==0)if(this._naluLengthSize=1+(3&Ae.getUint8(4)),this._naluLengthSize===3||this._naluLengthSize===4){var De=31&Ae.getUint8(5);if(De!==0){De>1&&l.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(De));for(var st=6,ut=0;ut1&&l.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(fr)),st++,ut=0;ut=J){l.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(Mt,", offset = ").concat(st,", dataSize = ").concat(J));break}var Gt=ot.getUint32(st,!nt);if(ut===3&&(Gt>>>=8),Gt>J-ut)return void l.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(Mt,", NaluSize > DataSize!"));var pn=31&ot.getUint8(st+ut);pn===5&&(Qt=!0);var mn=new Uint8Array(ne,ee+st,ut+Gt),ln={type:pn,data:mn};gt.push(ln),De+=mn.byteLength,st+=ut+Gt}if(gt.length){var dr=this._videoTrack,tr={units:gt,length:De,isKeyframe:Qt,dts:Mt,cts:Ae,pts:Mt+Ae};Qt&&(tr.fileposition=Se),dr.samples.push(tr),dr.length+=De}},oe.prototype._parseHEVCVideoData=function(ne,ee,J,ce,Se,ke,Ae){for(var nt=this._littleEndian,ot=new DataView(ne,ee,J),gt=[],De=0,st=0,ut=this._naluLengthSize,Mt=this._timestampBase+ce,Qt=ke===1;st=J){l.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(Mt,", offset = ").concat(st,", dataSize = ").concat(J));break}var Gt=ot.getUint32(st,!nt);if(ut===3&&(Gt>>>=8),Gt>J-ut)return void l.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(Mt,", NaluSize > DataSize!"));var pn=ot.getUint8(st+ut)>>1&63;pn!==19&&pn!==20&&pn!==21||(Qt=!0);var mn=new Uint8Array(ne,ee+st,ut+Gt),ln={type:pn,data:mn};gt.push(ln),De+=mn.byteLength,st+=ut+Gt}if(gt.length){var dr=this._videoTrack,tr={units:gt,length:De,isKeyframe:Qt,dts:Mt,cts:Ae,pts:Mt+Ae};Qt&&(tr.fileposition=Se),dr.samples.push(tr),dr.length+=De}},oe.prototype._parseAV1VideoData=function(ne,ee,J,ce,Se,ke,Ae){this._littleEndian;var nt,ot=[],gt=this._timestampBase+ce,De=ke===1;if(De){var st=this._videoMetadata,ut=O.parseOBUs(new Uint8Array(ne,ee,J),st.extra);if(ut==null)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid AV1 VideoData");console.log(ut),st.codecWidth=ut.codec_size.width,st.codecHeight=ut.codec_size.height,st.presentWidth=ut.present_size.width,st.presentHeight=ut.present_size.height,st.sarRatio=ut.sar_ratio;var Mt=this._mediaInfo;Mt.width=st.codecWidth,Mt.height=st.codecHeight,Mt.sarNum=st.sarRatio.width,Mt.sarDen=st.sarRatio.height,l.a.v(this.TAG,"Parsed AV1DecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",st)}if(nt=J,ot.push({unitType:0,data:new Uint8Array(ne,ee+0,J)}),ot.length){var Qt=this._videoTrack,Gt={units:ot,length:nt,isKeyframe:De,dts:gt,cts:Ae,pts:gt+Ae};De&&(Gt.fileposition=Se),Qt.samples.push(Gt),Qt.length+=nt}},oe})(),j=(function(){function oe(){}return oe.prototype.destroy=function(){this.onError=null,this.onMediaInfo=null,this.onMetaDataArrived=null,this.onTrackMetadata=null,this.onDataAvailable=null,this.onTimedID3Metadata=null,this.onSynchronousKLVMetadata=null,this.onAsynchronousKLVMetadata=null,this.onSMPTE2038Metadata=null,this.onSCTE35Metadata=null,this.onPESPrivateData=null,this.onPESPrivateDataDescriptor=null},oe})(),H=function(){this.program_pmt_pid={}};(function(oe){oe[oe.kMPEG1Audio=3]="kMPEG1Audio",oe[oe.kMPEG2Audio=4]="kMPEG2Audio",oe[oe.kPESPrivateData=6]="kPESPrivateData",oe[oe.kADTSAAC=15]="kADTSAAC",oe[oe.kLOASAAC=17]="kLOASAAC",oe[oe.kAC3=129]="kAC3",oe[oe.kEAC3=135]="kEAC3",oe[oe.kMetadata=21]="kMetadata",oe[oe.kSCTE35=134]="kSCTE35",oe[oe.kH264=27]="kH264",oe[oe.kH265=36]="kH265"})(L||(L={}));var U,K=function(){this.pid_stream_type={},this.common_pids={h264:void 0,h265:void 0,av1:void 0,adts_aac:void 0,loas_aac:void 0,opus:void 0,ac3:void 0,eac3:void 0,mp3:void 0},this.pes_private_data_pids={},this.timed_id3_pids={},this.synchronous_klv_pids={},this.asynchronous_klv_pids={},this.scte_35_pids={},this.smpte2038_pids={}},Y=function(){},ie=function(){},te=function(){this.slices=[],this.total_length=0,this.expected_length=0,this.file_position=0};(function(oe){oe[oe.kUnspecified=0]="kUnspecified",oe[oe.kSliceNonIDR=1]="kSliceNonIDR",oe[oe.kSliceDPA=2]="kSliceDPA",oe[oe.kSliceDPB=3]="kSliceDPB",oe[oe.kSliceDPC=4]="kSliceDPC",oe[oe.kSliceIDR=5]="kSliceIDR",oe[oe.kSliceSEI=6]="kSliceSEI",oe[oe.kSliceSPS=7]="kSliceSPS",oe[oe.kSlicePPS=8]="kSlicePPS",oe[oe.kSliceAUD=9]="kSliceAUD",oe[oe.kEndOfSequence=10]="kEndOfSequence",oe[oe.kEndOfStream=11]="kEndOfStream",oe[oe.kFiller=12]="kFiller",oe[oe.kSPSExt=13]="kSPSExt",oe[oe.kReserved0=14]="kReserved0"})(U||(U={}));var W,q,Q=function(){},se=function(oe){var ne=oe.data.byteLength;this.type=oe.type,this.data=new Uint8Array(4+ne),new DataView(this.data.buffer).setUint32(0,ne),this.data.set(oe.data,4)},ae=(function(){function oe(ne){this.TAG="H264AnnexBParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=ne,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not find H264 startcode until payload end!")}return oe.prototype.findNextStartCodeOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+3>=J.byteLength)return this.eof_flag_=!0,J.byteLength;var ce=J[ee+0]<<24|J[ee+1]<<16|J[ee+2]<<8|J[ee+3],Se=J[ee+0]<<16|J[ee+1]<<8|J[ee+2];if(ce===1||Se===1)return ee;ee++}},oe.prototype.readNextNaluPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_,ce=31&ne[J+=(ne[J]<<24|ne[J+1]<<16|ne[J+2]<<8|ne[J+3])===1?4:3],Se=(128&ne[J])>>>7,ke=this.findNextStartCodeOffset(J);if(this.current_startcode_offset_=ke,!(ce>=U.kReserved0)&&Se===0){var Ae=ne.subarray(J,ke);(ee=new Q).type=ce,ee.data=Ae}}return ee},oe})(),re=(function(){function oe(ne,ee,J){var ce=8+ne.byteLength+1+2+ee.byteLength,Se=!1;ne[3]!==66&&ne[3]!==77&&ne[3]!==88&&(Se=!0,ce+=4);var ke=this.data=new Uint8Array(ce);ke[0]=1,ke[1]=ne[1],ke[2]=ne[2],ke[3]=ne[3],ke[4]=255,ke[5]=225;var Ae=ne.byteLength;ke[6]=Ae>>>8,ke[7]=255&Ae;var nt=8;ke.set(ne,8),ke[nt+=Ae]=1;var ot=ee.byteLength;ke[nt+1]=ot>>>8,ke[nt+2]=255&ot,ke.set(ee,nt+3),nt+=3+ot,Se&&(ke[nt]=252|J.chroma_format_idc,ke[nt+1]=248|J.bit_depth_luma-8,ke[nt+2]=248|J.bit_depth_chroma-8,ke[nt+3]=0,nt+=4)}return oe.prototype.getData=function(){return this.data},oe})();(function(oe){oe[oe.kNull=0]="kNull",oe[oe.kAACMain=1]="kAACMain",oe[oe.kAAC_LC=2]="kAAC_LC",oe[oe.kAAC_SSR=3]="kAAC_SSR",oe[oe.kAAC_LTP=4]="kAAC_LTP",oe[oe.kAAC_SBR=5]="kAAC_SBR",oe[oe.kAAC_Scalable=6]="kAAC_Scalable",oe[oe.kLayer1=32]="kLayer1",oe[oe.kLayer2=33]="kLayer2",oe[oe.kLayer3=34]="kLayer3"})(W||(W={})),(function(oe){oe[oe.k96000Hz=0]="k96000Hz",oe[oe.k88200Hz=1]="k88200Hz",oe[oe.k64000Hz=2]="k64000Hz",oe[oe.k48000Hz=3]="k48000Hz",oe[oe.k44100Hz=4]="k44100Hz",oe[oe.k32000Hz=5]="k32000Hz",oe[oe.k24000Hz=6]="k24000Hz",oe[oe.k22050Hz=7]="k22050Hz",oe[oe.k16000Hz=8]="k16000Hz",oe[oe.k12000Hz=9]="k12000Hz",oe[oe.k11025Hz=10]="k11025Hz",oe[oe.k8000Hz=11]="k8000Hz",oe[oe.k7350Hz=12]="k7350Hz"})(q||(q={}));var Ce,Ve,ge=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],xe=(Ce=function(oe,ne){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,J){ee.__proto__=J}||function(ee,J){for(var ce in J)Object.prototype.hasOwnProperty.call(J,ce)&&(ee[ce]=J[ce])})(oe,ne)},function(oe,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function ee(){this.constructor=oe}Ce(oe,ne),oe.prototype=ne===null?Object.create(ne):(ee.prototype=ne.prototype,new ee)}),Ge=function(){},tt=(function(oe){function ne(){return oe!==null&&oe.apply(this,arguments)||this}return xe(ne,oe),ne})(Ge),Ue=(function(){function oe(ne){this.TAG="AACADTSParser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found ADTS syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1])>>>4===4095)return ee;ee++}},oe.prototype.readNextAACFrame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=(8&ne[J+1])>>>3,Se=(6&ne[J+1])>>>1,ke=1&ne[J+1],Ae=(192&ne[J+2])>>>6,nt=(60&ne[J+2])>>>2,ot=(1&ne[J+2])<<2|(192&ne[J+3])>>>6,gt=(3&ne[J+3])<<11|ne[J+4]<<3|(224&ne[J+5])>>>5;if(ne[J+6],J+gt>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var De=ke===1?7:9,st=gt-De;J+=De;var ut=this.findNextSyncwordOffset(J+st);if(this.current_syncword_offset_=ut,(ce===0||ce===1)&&Se===0){var Mt=ne.subarray(J,J+st);(ee=new Ge).audio_object_type=Ae+1,ee.sampling_freq_index=nt,ee.sampling_frequency=ge[nt],ee.channel_config=ot,ee.data=Mt}}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),_e=(function(){function oe(ne){this.TAG="AACLOASParser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found LOAS syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+1>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<3|J[ee+1]>>>5)===695)return ee;ee++}},oe.prototype.getLATMValue=function(ne){for(var ee=ne.readBits(2),J=0,ce=0;ce<=ee;ce++)J<<=8,J|=ne.readByte();return J},oe.prototype.readNextAACFrame=function(ne){for(var ee=this.data_,J=null;J==null&&!this.eof_flag_;){var ce=this.current_syncword_offset_,Se=(31&ee[ce+1])<<8|ee[ce+2];if(ce+3+Se>=this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var ke=new k(ee.subarray(ce+3,ce+3+Se)),Ae=null;if(ke.readBool()){if(ne==null){l.a.w(this.TAG,"StreamMuxConfig Missing"),this.current_syncword_offset_=this.findNextSyncwordOffset(ce+3+Se),ke.destroy();continue}Ae=ne}else{var nt=ke.readBool();if(nt&&ke.readBool()){l.a.e(this.TAG,"audioMuxVersionA is Not Supported"),ke.destroy();break}if(nt&&this.getLATMValue(ke),!ke.readBool()){l.a.e(this.TAG,"allStreamsSameTimeFraming zero is Not Supported"),ke.destroy();break}if(ke.readBits(6)!==0){l.a.e(this.TAG,"more than 2 numSubFrames Not Supported"),ke.destroy();break}if(ke.readBits(4)!==0){l.a.e(this.TAG,"more than 2 numProgram Not Supported"),ke.destroy();break}if(ke.readBits(3)!==0){l.a.e(this.TAG,"more than 2 numLayer Not Supported"),ke.destroy();break}var ot=nt?this.getLATMValue(ke):0,gt=ke.readBits(5);ot-=5;var De=ke.readBits(4);ot-=4;var st=ke.readBits(4);ot-=4,ke.readBits(3),(ot-=3)>0&&ke.readBits(ot);var ut=ke.readBits(3);if(ut!==0){l.a.e(this.TAG,"frameLengthType = ".concat(ut,". Only frameLengthType = 0 Supported")),ke.destroy();break}ke.readByte();var Mt=ke.readBool();if(Mt)if(nt)this.getLATMValue(ke);else{for(var Qt=0;;){Qt<<=8;var Gt=ke.readBool();if(Qt+=ke.readByte(),!Gt)break}console.log(Qt)}ke.readBool()&&ke.readByte(),(Ae=new tt).audio_object_type=gt,Ae.sampling_freq_index=De,Ae.sampling_frequency=ge[Ae.sampling_freq_index],Ae.channel_config=st,Ae.other_data_present=Mt}for(var pn=0;;){var mn=ke.readByte();if(pn+=mn,mn!==255)break}for(var ln=new Uint8Array(pn),dr=0;dr=6?(J=5,ne=new Array(4),ke=ce-3):(J=2,ne=new Array(2),ke=ce):Ae.indexOf("android")!==-1?(J=2,ne=new Array(2),ke=ce):(J=5,ke=ce,ne=new Array(4),ce>=6?ke=ce-3:Se===1&&(J=2,ne=new Array(2),ke=ce)),ne[0]=J<<3,ne[0]|=(15&ce)>>>1,ne[1]=(15&ce)<<7,ne[1]|=(15&Se)<<3,J===5&&(ne[1]|=(15&ke)>>>1,ne[2]=(1&ke)<<7,ne[2]|=8,ne[3]=0),this.config=ne,this.sampling_rate=ge[ce],this.channel_count=Se,this.codec_mimetype="mp4a.40."+J,this.original_codec_mimetype="mp4a.40."+ee},me=function(){},Oe=function(){};(function(oe){oe[oe.kSpliceNull=0]="kSpliceNull",oe[oe.kSpliceSchedule=4]="kSpliceSchedule",oe[oe.kSpliceInsert=5]="kSpliceInsert",oe[oe.kTimeSignal=6]="kTimeSignal",oe[oe.kBandwidthReservation=7]="kBandwidthReservation",oe[oe.kPrivateCommand=255]="kPrivateCommand"})(Ve||(Ve={}));var qe,Ke=function(oe){var ne=oe.readBool();return ne?(oe.readBits(6),{time_specified_flag:ne,pts_time:4*oe.readBits(31)+oe.readBits(2)}):(oe.readBits(7),{time_specified_flag:ne})},at=function(oe){var ne=oe.readBool();return oe.readBits(6),{auto_return:ne,duration:4*oe.readBits(31)+oe.readBits(2)}},ft=function(oe,ne){var ee=ne.readBits(8);return oe?{component_tag:ee}:{component_tag:ee,splice_time:Ke(ne)}},ct=function(oe){return{component_tag:oe.readBits(8),utc_splice_time:oe.readBits(32)}},wt=function(oe){var ne=oe.readBits(32),ee=oe.readBool();oe.readBits(7);var J={splice_event_id:ne,splice_event_cancel_indicator:ee};if(ee)return J;if(J.out_of_network_indicator=oe.readBool(),J.program_splice_flag=oe.readBool(),J.duration_flag=oe.readBool(),oe.readBits(5),J.program_splice_flag)J.utc_splice_time=oe.readBits(32);else{J.component_count=oe.readBits(8),J.components=[];for(var ce=0;ce=J.byteLength)return this.eof_flag_=!0,J.byteLength;var ce=J[ee+0]<<24|J[ee+1]<<16|J[ee+2]<<8|J[ee+3],Se=J[ee+0]<<16|J[ee+1]<<8|J[ee+2];if(ce===1||Se===1)return ee;ee++}},oe.prototype.readNextNaluPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_,ce=ne[J+=(ne[J]<<24|ne[J+1]<<16|ne[J+2]<<8|ne[J+3])===1?4:3]>>1&63,Se=(128&ne[J])>>>7,ke=this.findNextStartCodeOffset(J);if(this.current_startcode_offset_=ke,Se===0){var Ae=ne.subarray(J,ke);(ee=new Ee).type=ce,ee.data=Ae}}return ee},oe})(),dt=(function(){function oe(ne,ee,J,ce){var Se=23+(5+ne.byteLength)+(5+ee.byteLength)+(5+J.byteLength),ke=this.data=new Uint8Array(Se);ke[0]=1,ke[1]=(3&ce.general_profile_space)<<6|(ce.general_tier_flag?1:0)<<5|31&ce.general_profile_idc,ke[2]=ce.general_profile_compatibility_flags_1,ke[3]=ce.general_profile_compatibility_flags_2,ke[4]=ce.general_profile_compatibility_flags_3,ke[5]=ce.general_profile_compatibility_flags_4,ke[6]=ce.general_constraint_indicator_flags_1,ke[7]=ce.general_constraint_indicator_flags_2,ke[8]=ce.general_constraint_indicator_flags_3,ke[9]=ce.general_constraint_indicator_flags_4,ke[10]=ce.general_constraint_indicator_flags_5,ke[11]=ce.general_constraint_indicator_flags_6,ke[12]=ce.general_level_idc,ke[13]=240|(3840&ce.min_spatial_segmentation_idc)>>8,ke[14]=255&ce.min_spatial_segmentation_idc,ke[15]=252|3&ce.parallelismType,ke[16]=252|3&ce.chroma_format_idc,ke[17]=248|7&ce.bit_depth_luma_minus8,ke[18]=248|7&ce.bit_depth_chroma_minus8,ke[19]=0,ke[20]=0,ke[21]=(3&ce.constant_frame_rate)<<6|(7&ce.num_temporal_layers)<<3|(ce.temporal_id_nested?1:0)<<2|3,ke[22]=3,ke[23]=128|qe.kSliceVPS,ke[24]=0,ke[25]=1,ke[26]=(65280&ne.byteLength)>>8,ke[27]=(255&ne.byteLength)>>0,ke.set(ne,28),ke[23+(5+ne.byteLength)+0]=128|qe.kSliceSPS,ke[23+(5+ne.byteLength)+1]=0,ke[23+(5+ne.byteLength)+2]=1,ke[23+(5+ne.byteLength)+3]=(65280&ee.byteLength)>>8,ke[23+(5+ne.byteLength)+4]=(255&ee.byteLength)>>0,ke.set(ee,23+(5+ne.byteLength)+5),ke[23+(5+ne.byteLength+5+ee.byteLength)+0]=128|qe.kSlicePPS,ke[23+(5+ne.byteLength+5+ee.byteLength)+1]=0,ke[23+(5+ne.byteLength+5+ee.byteLength)+2]=1,ke[23+(5+ne.byteLength+5+ee.byteLength)+3]=(65280&J.byteLength)>>8,ke[23+(5+ne.byteLength+5+ee.byteLength)+4]=(255&J.byteLength)>>0,ke.set(J,23+(5+ne.byteLength+5+ee.byteLength)+5)}return oe.prototype.getData=function(){return this.data},oe})(),Qe=function(){},Le=function(){},ht=function(){},Vt=[[64,64,80,80,96,96,112,112,128,128,160,160,192,192,224,224,256,256,320,320,384,384,448,448,512,512,640,640,768,768,896,896,1024,1024,1152,1152,1280,1280],[69,70,87,88,104,105,121,122,139,140,174,175,208,209,243,244,278,279,348,349,417,418,487,488,557,558,696,697,835,836,975,976,1114,1115,1253,1254,1393,1394],[96,96,120,120,144,144,168,168,192,192,240,240,288,288,336,336,384,384,480,480,576,576,672,672,768,768,960,960,1152,1152,1344,1344,1536,1536,1728,1728,1920,1920]],Ut=(function(){function oe(ne){this.TAG="AC3Parser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found AC3 syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1]<<0)===2935)return ee;ee++}},oe.prototype.readNextAC3Frame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=ne[J+4]>>6,Se=[48e3,44200,33e3][ce],ke=63&ne[J+4],Ae=2*Vt[ce][ke];if(isNaN(Ae)||J+Ae>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var nt=this.findNextSyncwordOffset(J+Ae);this.current_syncword_offset_=nt;var ot=ne[J+5]>>3,gt=7&ne[J+5],De=ne[J+6]>>5,st=0;(1&De)!=0&&De!==1&&(st+=2),(4&De)!=0&&(st+=2),De===2&&(st+=2);var ut=(ne[J+6]<<8|ne[J+7]<<0)>>12-st&1,Mt=[2,1,2,3,3,4,4,5][De]+ut;(ee=new ht).sampling_frequency=Se,ee.channel_count=Mt,ee.channel_mode=De,ee.bit_stream_identification=ot,ee.low_frequency_effects_channel_on=ut,ee.bit_stream_mode=gt,ee.frame_size_code=ke,ee.data=ne.subarray(J,J+Ae)}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),Lt=function(oe){var ne;ne=[oe.sampling_rate_code<<6|oe.bit_stream_identification<<1|oe.bit_stream_mode>>2,(3&oe.bit_stream_mode)<<6|oe.channel_mode<<3|oe.low_frequency_effects_channel_on<<2|oe.frame_size_code>>4,oe.frame_size_code<<4&224],this.config=ne,this.sampling_rate=oe.sampling_frequency,this.bit_stream_identification=oe.bit_stream_identification,this.bit_stream_mode=oe.bit_stream_mode,this.low_frequency_effects_channel_on=oe.low_frequency_effects_channel_on,this.channel_count=oe.channel_count,this.channel_mode=oe.channel_mode,this.codec_mimetype="ac-3",this.original_codec_mimetype="ac-3"},Xt=function(){},Dn=(function(){function oe(ne){this.TAG="EAC3Parser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found AC3 syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1]<<0)===2935)return ee;ee++}},oe.prototype.readNextEAC3Frame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=new k(ne.subarray(J+2)),Se=(ce.readBits(2),ce.readBits(3),ce.readBits(11)+1<<1),ke=ce.readBits(2),Ae=null,nt=null;ke===3?(Ae=[24e3,22060,16e3][ke=ce.readBits(2)],nt=3):(Ae=[48e3,44100,32e3][ke],nt=ce.readBits(2));var ot=ce.readBits(3),gt=ce.readBits(1),De=ce.readBits(5);if(J+Se>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var st=this.findNextSyncwordOffset(J+Se);this.current_syncword_offset_=st;var ut=[2,1,2,3,3,4,4,5][ot]+gt;ce.destroy(),(ee=new Xt).sampling_frequency=Ae,ee.channel_count=ut,ee.channel_mode=ot,ee.bit_stream_identification=De,ee.low_frequency_effects_channel_on=gt,ee.frame_size=Se,ee.num_blks=[1,2,3,6][nt],ee.data=ne.subarray(J,J+Se)}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),rr=function(oe){var ne,ee=Math.floor(oe.frame_size*oe.sampling_frequency/(16*oe.num_blks));ne=[255&ee,248&ee,oe.sampling_rate_code<<6|oe.bit_stream_identification<<1|0,0|oe.channel_mode<<1|oe.low_frequency_effects_channel_on<<0,0],this.config=ne,this.sampling_rate=oe.sampling_frequency,this.bit_stream_identification=oe.bit_stream_identification,this.num_blks=oe.num_blks,this.low_frequency_effects_channel_on=oe.low_frequency_effects_channel_on,this.channel_count=oe.channel_count,this.channel_mode=oe.channel_mode,this.codec_mimetype="ec-3",this.original_codec_mimetype="ec-3"},qr=function(){},Wt=(function(){function oe(ne){this.TAG="AV1OBUInMpegTsParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=ne,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not find AV1 startcode until payload end!")}return oe._ebsp2rbsp=function(ne){for(var ee=ne,J=ee.byteLength,ce=new Uint8Array(J),Se=0,ke=0;ke=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.prototype.findNextStartCodeOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+2>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<16|J[ee+1]<<8|J[ee+2])===1)return ee;ee++}},oe.prototype.readNextOBUPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_+3,ce=this.findNextStartCodeOffset(J);this.current_startcode_offset_=ce,ee=oe._ebsp2rbsp(ne.subarray(J,ce))}return ee},oe})(),Yt=(function(){var oe=function(ne,ee){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ce){J.__proto__=ce}||function(J,ce){for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&(J[Se]=ce[Se])})(ne,ee)};return function(ne,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function J(){this.constructor=ne}oe(ne,ee),ne.prototype=ee===null?Object.create(ee):(J.prototype=ee.prototype,new J)}})(),sn=function(){return(sn=Object.assign||function(oe){for(var ne,ee=1,J=arguments.length;ee=4?(l.a.v("TSDemuxer","ts_packet_size = 192, m2ts mode"),ce-=4):Se===204&&l.a.v("TSDemuxer","ts_packet_size = 204, RS encoded MPEG2-TS stream"),{match:!0,consumed:0,ts_packet_size:Se,sync_offset:ce})},ne.prototype.bindDataSource=function(ee){return ee.onDataArrival=this.parseChunks.bind(this),this},ne.prototype.resetMediaInfo=function(){this.media_info_=new d.a},ne.prototype.parseChunks=function(ee,J){if(!(this.onError&&this.onMediaInfo&&this.onTrackMetadata&&this.onDataAvailable))throw new g.a("onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var ce=0;for(this.first_parse_&&(this.first_parse_=!1,ce=this.sync_offset_);ce+this.ts_packet_size_<=ee.byteLength;){var Se=J+ce;this.ts_packet_size_===192&&(ce+=4);var ke=new Uint8Array(ee,ce,188),Ae=ke[0];if(Ae!==71){l.a.e(this.TAG,"sync_byte = ".concat(Ae,", not 0x47"));break}var nt=(64&ke[1])>>>6,ot=(ke[1],(31&ke[1])<<8|ke[2]),gt=(48&ke[3])>>>4,De=15&ke[3],st=!(!this.pmt_||this.pmt_.pcr_pid!==ot),ut={},Mt=4;if(gt==2||gt==3){var Qt=ke[4];if(Qt>0&&(st||gt==3)&&(ut.discontinuity_indicator=(128&ke[5])>>>7,ut.random_access_indicator=(64&ke[5])>>>6,ut.elementary_stream_priority_indicator=(32&ke[5])>>>5,(16&ke[5])>>>4)){var Gt=300*this.getPcrBase(ke)+((1&ke[10])<<8|ke[11]);this.last_pcr_=Gt}if(gt==2||5+Qt===188){ce+=188,this.ts_packet_size_===204&&(ce+=16);continue}Mt=5+Qt}if(gt==1||gt==3){if(ot===0||ot===this.current_pmt_pid_||this.pmt_!=null&&this.pmt_.pid_stream_type[ot]===L.kSCTE35){var pn=188-Mt;this.handleSectionSlice(ee,ce+Mt,pn,{pid:ot,file_position:Se,payload_unit_start_indicator:nt,continuity_conunter:De,random_access_indicator:ut.random_access_indicator})}else if(this.pmt_!=null&&this.pmt_.pid_stream_type[ot]!=null){pn=188-Mt;var mn=this.pmt_.pid_stream_type[ot];ot!==this.pmt_.common_pids.h264&&ot!==this.pmt_.common_pids.h265&&ot!==this.pmt_.common_pids.av1&&ot!==this.pmt_.common_pids.adts_aac&&ot!==this.pmt_.common_pids.loas_aac&&ot!==this.pmt_.common_pids.ac3&&ot!==this.pmt_.common_pids.eac3&&ot!==this.pmt_.common_pids.opus&&ot!==this.pmt_.common_pids.mp3&&this.pmt_.pes_private_data_pids[ot]!==!0&&this.pmt_.timed_id3_pids[ot]!==!0&&this.pmt_.synchronous_klv_pids[ot]!==!0&&this.pmt_.asynchronous_klv_pids[ot]!==!0||this.handlePESSlice(ee,ce+Mt,pn,{pid:ot,stream_type:mn,file_position:Se,payload_unit_start_indicator:nt,continuity_conunter:De,random_access_indicator:ut.random_access_indicator})}}ce+=188,this.ts_packet_size_===204&&(ce+=16)}return this.dispatchAudioVideoMediaSegment(),ce},ne.prototype.handleSectionSlice=function(ee,J,ce,Se){var ke=new Uint8Array(ee,J,ce),Ae=this.section_slice_queues_[Se.pid];if(Se.payload_unit_start_indicator){var nt=ke[0];if(Ae!=null&&Ae.total_length!==0){var ot=new Uint8Array(ee,J+1,Math.min(ce,nt));Ae.slices.push(ot),Ae.total_length+=ot.byteLength,Ae.total_length===Ae.expected_length?this.emitSectionSlices(Ae,Se):this.clearSlices(Ae,Se)}for(var gt=1+nt;gt=Ae.expected_length&&this.clearSlices(Ae,Se),gt+=ot.byteLength}}else Ae!=null&&Ae.total_length!==0&&(ot=new Uint8Array(ee,J,Math.min(ce,Ae.expected_length-Ae.total_length)),Ae.slices.push(ot),Ae.total_length+=ot.byteLength,Ae.total_length===Ae.expected_length?this.emitSectionSlices(Ae,Se):Ae.total_length>=Ae.expected_length&&this.clearSlices(Ae,Se))},ne.prototype.handlePESSlice=function(ee,J,ce,Se){var ke=new Uint8Array(ee,J,ce),Ae=ke[0]<<16|ke[1]<<8|ke[2],nt=(ke[3],ke[4]<<8|ke[5]);if(Se.payload_unit_start_indicator){if(Ae!==1)return void l.a.e(this.TAG,"handlePESSlice: packet_start_code_prefix should be 1 but with value ".concat(Ae));var ot=this.pes_slice_queues_[Se.pid];ot&&(ot.expected_length===0||ot.expected_length===ot.total_length?this.emitPESSlices(ot,Se):this.clearSlices(ot,Se)),this.pes_slice_queues_[Se.pid]=new te,this.pes_slice_queues_[Se.pid].file_position=Se.file_position,this.pes_slice_queues_[Se.pid].random_access_indicator=Se.random_access_indicator}if(this.pes_slice_queues_[Se.pid]!=null){var gt=this.pes_slice_queues_[Se.pid];gt.slices.push(ke),Se.payload_unit_start_indicator&&(gt.expected_length=nt===0?0:nt+6),gt.total_length+=ke.byteLength,gt.expected_length>0&>.expected_length===gt.total_length?this.emitPESSlices(gt,Se):gt.expected_length>0&>.expected_length>>6,nt=J[8],ot=void 0,gt=void 0;Ae!==2&&Ae!==3||(ot=this.getTimestamp(J,9),gt=Ae===3?this.getTimestamp(J,14):ot);var De=9+nt,st=void 0;if(ke!==0){if(ke<3+nt)return void l.a.v(this.TAG,"Malformed PES: PES_packet_length < 3 + PES_header_data_length");st=ke-3-nt}else st=J.byteLength-De;var ut=J.subarray(De,De+st);switch(ee.stream_type){case L.kMPEG1Audio:case L.kMPEG2Audio:this.parseMP3Payload(ut,ot);break;case L.kPESPrivateData:this.pmt_.common_pids.av1===ee.pid?this.parseAV1Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator):this.pmt_.common_pids.opus===ee.pid?this.parseOpusPayload(ut,ot):this.pmt_.common_pids.ac3===ee.pid?this.parseAC3Payload(ut,ot):this.pmt_.common_pids.eac3===ee.pid?this.parseEAC3Payload(ut,ot):this.pmt_.asynchronous_klv_pids[ee.pid]?this.parseAsynchronousKLVMetadataPayload(ut,ee.pid,Se):this.pmt_.smpte2038_pids[ee.pid]?this.parseSMPTE2038MetadataPayload(ut,ot,gt,ee.pid,Se):this.parsePESPrivateDataPayload(ut,ot,gt,ee.pid,Se);break;case L.kADTSAAC:this.parseADTSAACPayload(ut,ot);break;case L.kLOASAAC:this.parseLOASAACPayload(ut,ot);break;case L.kAC3:this.parseAC3Payload(ut,ot);break;case L.kEAC3:this.parseEAC3Payload(ut,ot);break;case L.kMetadata:this.pmt_.timed_id3_pids[ee.pid]?this.parseTimedID3MetadataPayload(ut,ot,gt,ee.pid,Se):this.pmt_.synchronous_klv_pids[ee.pid]&&this.parseSynchronousKLVMetadataPayload(ut,ot,gt,ee.pid,Se);break;case L.kH264:this.parseH264Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator);break;case L.kH265:this.parseH265Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator)}}else(Se===188||Se===191||Se===240||Se===241||Se===255||Se===242||Se===248)&&ee.stream_type===L.kPESPrivateData&&(De=6,st=void 0,st=ke!==0?ke:J.byteLength-De,ut=J.subarray(De,De+st),this.parsePESPrivateDataPayload(ut,void 0,void 0,ee.pid,Se));else l.a.e(this.TAG,"parsePES: packet_start_code_prefix should be 1 but with value ".concat(ce))},ne.prototype.parsePAT=function(ee){var J=ee[0];if(J===0){var ce=(15&ee[1])<<8|ee[2],Se=(ee[3],ee[4],(62&ee[5])>>>1),ke=1&ee[5],Ae=ee[6],nt=(ee[7],null);if(ke===1&&Ae===0)(nt=new H).version_number=Se;else if((nt=this.pat_)==null)return;for(var ot=ce-5-4,gt=-1,De=-1,st=8;st<8+ot;st+=4){var ut=ee[st]<<8|ee[st+1],Mt=(31&ee[st+2])<<8|ee[st+3];ut===0?nt.network_pid=Mt:(nt.program_pmt_pid[ut]=Mt,gt===-1&&(gt=ut),De===-1&&(De=Mt))}ke===1&&Ae===0&&(this.pat_==null&&l.a.v(this.TAG,"Parsed first PAT: ".concat(JSON.stringify(nt))),this.pat_=nt,this.current_program_=gt,this.current_pmt_pid_=De)}else l.a.e(this.TAG,"parsePAT: table_id ".concat(J," is not corresponded to PAT!"))},ne.prototype.parsePMT=function(ee){var J=ee[0];if(J===2){var ce=(15&ee[1])<<8|ee[2],Se=ee[3]<<8|ee[4],ke=(62&ee[5])>>>1,Ae=1&ee[5],nt=ee[6],ot=(ee[7],null);if(Ae===1&&nt===0)(ot=new K).program_number=Se,ot.version_number=ke,this.program_pmt_map_[Se]=ot;else if((ot=this.program_pmt_map_[Se])==null)return;ot.pcr_pid=(31&ee[8])<<8|ee[9];for(var gt=(15&ee[10])<<8|ee[11],De=12+gt,st=ce-9-gt-4,ut=De;ut0){for(var ln=ut+5;ln0)for(ln=ut+5;ln1&&(l.a.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(Ae,"ms, PES pts: ").concat(ke,"ms")),ke=Ae)}}for(var nt,ot=new Ue(ee),gt=null,De=ke;(gt=ot.readNextAACFrame())!=null;){Se=1024/gt.sampling_frequency*1e3;var st={codec:"aac",data:gt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"aac",audio_object_type:gt.audio_object_type,sampling_freq_index:gt.sampling_freq_index,sampling_frequency:gt.sampling_frequency,channel_config:gt.channel_config},this.dispatchAudioInitSegment(st)):this.detectAudioMetadataChange(st)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(st)),nt=De;var ut=Math.floor(De),Mt={unit:gt.data,length:gt.data.byteLength,pts:ut,dts:ut};this.audio_track_.samples.push(Mt),this.audio_track_.length+=gt.data.byteLength,De+=Se}ot.hasIncompleteData()&&(this.aac_last_incomplete_data_=ot.getIncompleteData()),nt&&(this.audio_last_sample_pts_=nt)}},ne.prototype.parseLOASAACPayload=function(ee,J){var ce;if(!this.has_video_||this.video_init_segment_dispatched_){if(this.aac_last_incomplete_data_){var Se=new Uint8Array(ee.byteLength+this.aac_last_incomplete_data_.byteLength);Se.set(this.aac_last_incomplete_data_,0),Se.set(ee,this.aac_last_incomplete_data_.byteLength),ee=Se}var ke,Ae;if(J!=null&&(Ae=J/this.timescale_),this.audio_metadata_.codec==="aac"){if(J==null&&this.audio_last_sample_pts_!=null)ke=1024/this.audio_metadata_.sampling_frequency*1e3,Ae=this.audio_last_sample_pts_+ke;else if(J==null)return void l.a.w(this.TAG,"AAC: Unknown pts");if(this.aac_last_incomplete_data_&&this.audio_last_sample_pts_){ke=1024/this.audio_metadata_.sampling_frequency*1e3;var nt=this.audio_last_sample_pts_+ke;Math.abs(nt-Ae)>1&&(l.a.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(nt,"ms, PES pts: ").concat(Ae,"ms")),Ae=nt)}}for(var ot,gt=new _e(ee),De=null,st=Ae;(De=gt.readNextAACFrame((ce=this.loas_previous_frame)!==null&&ce!==void 0?ce:void 0))!=null;){this.loas_previous_frame=De,ke=1024/De.sampling_frequency*1e3;var ut={codec:"aac",data:De};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"aac",audio_object_type:De.audio_object_type,sampling_freq_index:De.sampling_freq_index,sampling_frequency:De.sampling_frequency,channel_config:De.channel_config},this.dispatchAudioInitSegment(ut)):this.detectAudioMetadataChange(ut)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(ut)),ot=st;var Mt=Math.floor(st),Qt={unit:De.data,length:De.data.byteLength,pts:Mt,dts:Mt};this.audio_track_.samples.push(Qt),this.audio_track_.length+=De.data.byteLength,st+=ke}gt.hasIncompleteData()&&(this.aac_last_incomplete_data_=gt.getIncompleteData()),ot&&(this.audio_last_sample_pts_=ot)}},ne.prototype.parseAC3Payload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="ac-3"){if(J==null&&this.audio_last_sample_pts_!=null)ce=1536/this.audio_metadata_.sampling_frequency*1e3,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"AC3: Unknown pts")}for(var ke,Ae=new Ut(ee),nt=null,ot=Se;(nt=Ae.readNextAC3Frame())!=null;){ce=1536/nt.sampling_frequency*1e3;var gt={codec:"ac-3",data:nt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"ac-3",sampling_frequency:nt.sampling_frequency,bit_stream_identification:nt.bit_stream_identification,bit_stream_mode:nt.bit_stream_mode,low_frequency_effects_channel_on:nt.low_frequency_effects_channel_on,channel_mode:nt.channel_mode},this.dispatchAudioInitSegment(gt)):this.detectAudioMetadataChange(gt)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(gt)),ke=ot;var De=Math.floor(ot),st={unit:nt.data,length:nt.data.byteLength,pts:De,dts:De};this.audio_track_.samples.push(st),this.audio_track_.length+=nt.data.byteLength,ot+=ce}ke&&(this.audio_last_sample_pts_=ke)}},ne.prototype.parseEAC3Payload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="ec-3"){if(J==null&&this.audio_last_sample_pts_!=null)ce=256*this.audio_metadata_.num_blks/this.audio_metadata_.sampling_frequency*1e3,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"EAC3: Unknown pts")}for(var ke,Ae=new Dn(ee),nt=null,ot=Se;(nt=Ae.readNextEAC3Frame())!=null;){ce=1536/nt.sampling_frequency*1e3;var gt={codec:"ec-3",data:nt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"ec-3",sampling_frequency:nt.sampling_frequency,bit_stream_identification:nt.bit_stream_identification,low_frequency_effects_channel_on:nt.low_frequency_effects_channel_on,num_blks:nt.num_blks,channel_mode:nt.channel_mode},this.dispatchAudioInitSegment(gt)):this.detectAudioMetadataChange(gt)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(gt)),ke=ot;var De=Math.floor(ot),st={unit:nt.data,length:nt.data.byteLength,pts:De,dts:De};this.audio_track_.samples.push(st),this.audio_track_.length+=nt.data.byteLength,ot+=ce}ke&&(this.audio_last_sample_pts_=ke)}},ne.prototype.parseOpusPayload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="opus"){if(J==null&&this.audio_last_sample_pts_!=null)ce=20,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"Opus: Unknown pts")}for(var ke,Ae=Se,nt=0;nt>>3&3,nt=(6&ee[1])>>1,ot=(240&ee[2])>>>4,gt=(12&ee[2])>>>2,De=(ee[3]>>>6&3)!==3?2:1,st=0,ut=34;switch(Ae){case 0:st=[11025,12e3,8e3,0][gt];break;case 2:st=[22050,24e3,16e3,0][gt];break;case 3:st=[44100,48e3,32e3,0][gt]}switch(nt){case 1:ut=34,ot>>24&255,J[1]=ee>>>16&255,J[2]=ee>>>8&255,J[3]=255&ee,J.set(ne,4);var Ae=8;for(ke=0;ke>>24&255,ne>>>16&255,ne>>>8&255,255&ne,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},oe.trak=function(ne){return oe.box(oe.types.trak,oe.tkhd(ne),oe.mdia(ne))},oe.tkhd=function(ne){var ee=ne.id,J=ne.duration,ce=ne.presentWidth,Se=ne.presentHeight;return oe.box(oe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,255&J,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,ce>>>8&255,255&ce,0,0,Se>>>8&255,255&Se,0,0]))},oe.mdia=function(ne){return oe.box(oe.types.mdia,oe.mdhd(ne),oe.hdlr(ne),oe.minf(ne))},oe.mdhd=function(ne){var ee=ne.timescale,J=ne.duration;return oe.box(oe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,J>>>24&255,J>>>16&255,J>>>8&255,255&J,85,196,0,0]))},oe.hdlr=function(ne){var ee=null;return ee=ne.type==="audio"?oe.constants.HDLR_AUDIO:oe.constants.HDLR_VIDEO,oe.box(oe.types.hdlr,ee)},oe.minf=function(ne){var ee=null;return ee=ne.type==="audio"?oe.box(oe.types.smhd,oe.constants.SMHD):oe.box(oe.types.vmhd,oe.constants.VMHD),oe.box(oe.types.minf,ee,oe.dinf(),oe.stbl(ne))},oe.dinf=function(){return oe.box(oe.types.dinf,oe.box(oe.types.dref,oe.constants.DREF))},oe.stbl=function(ne){return oe.box(oe.types.stbl,oe.stsd(ne),oe.box(oe.types.stts,oe.constants.STTS),oe.box(oe.types.stsc,oe.constants.STSC),oe.box(oe.types.stsz,oe.constants.STSZ),oe.box(oe.types.stco,oe.constants.STCO))},oe.stsd=function(ne){return ne.type==="audio"?ne.codec==="mp3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.mp3(ne)):ne.codec==="ac-3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.ac3(ne)):ne.codec==="ec-3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.ec3(ne)):ne.codec==="opus"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.Opus(ne)):ne.codec=="flac"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.fLaC(ne)):oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.mp4a(ne)):ne.type==="video"&&ne.codec.startsWith("hvc1")?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.hvc1(ne)):ne.type==="video"&&ne.codec.startsWith("av01")?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.av01(ne)):oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.avc1(ne))},oe.mp3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types[".mp3"],ce)},oe.mp4a=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.mp4a,ce,oe.esds(ne))},oe.ac3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types["ac-3"],ce,oe.box(oe.types.dac3,new Uint8Array(ne.config)))},oe.ec3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types["ec-3"],ce,oe.box(oe.types.dec3,new Uint8Array(ne.config)))},oe.esds=function(ne){var ee=ne.config||[],J=ee.length,ce=new Uint8Array([0,0,0,0,3,23+J,0,1,0,4,15+J,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([J]).concat(ee).concat([6,1,2]));return oe.box(oe.types.esds,ce)},oe.Opus=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.Opus,ce,oe.dOps(ne))},oe.dOps=function(ne){var ee=ne.channelCount,J=ne.channelConfigCode,ce=ne.audioSampleRate;if(ne.config)return oe.box(oe.types.dOps,ne.config);var Se=[];switch(J){case 1:case 2:Se=[0];break;case 0:Se=[255,1,1,0,1];break;case 128:Se=[255,2,0,0,1];break;case 3:Se=[1,2,1,0,2,1];break;case 4:Se=[1,2,2,0,1,2,3];break;case 5:Se=[1,3,2,0,4,1,2,3];break;case 6:Se=[1,4,2,0,4,1,2,3,5];break;case 7:Se=[1,4,2,0,4,1,2,3,5,6];break;case 8:Se=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Se=[1,1,2,0,1];break;case 131:Se=[1,1,3,0,1,2];break;case 132:Se=[1,1,4,0,1,2,3];break;case 133:Se=[1,1,5,0,1,2,3,4];break;case 134:Se=[1,1,6,0,1,2,3,4,5];break;case 135:Se=[1,1,7,0,1,2,3,4,5,6];break;case 136:Se=[1,1,8,0,1,2,3,4,5,6,7]}var ke=new Uint8Array(un([0,ee,0,0,ce>>>24&255,ce>>>17&255,ce>>>8&255,ce>>>0&255,0,0],Se));return oe.box(oe.types.dOps,ke)},oe.fLaC=function(ne){var ee=ne.channelCount,J=Math.min(ne.audioSampleRate,65535),ce=ne.sampleSize,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,ce,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.fLaC,Se,oe.dfLa(ne))},oe.dfLa=function(ne){var ee=new Uint8Array(un([0,0,0,0],ne.config));return oe.box(oe.types.dfLa,ee)},oe.avc1=function(ne){var ee=ne.avcc,J=ne.codecWidth,ce=ne.codecHeight,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.avc1,Se,oe.box(oe.types.avcC,ee))},oe.hvc1=function(ne){var ee=ne.hvcc,J=ne.codecWidth,ce=ne.codecHeight,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.hvc1,Se,oe.box(oe.types.hvcC,ee))},oe.av01=function(ne){var ee=ne.av1c,J=ne.codecWidth||192,ce=ne.codecHeight||108,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.av01,Se,oe.box(oe.types.av1C,ee))},oe.mvex=function(ne){return oe.box(oe.types.mvex,oe.trex(ne))},oe.trex=function(ne){var ee=ne.id,J=new Uint8Array([0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return oe.box(oe.types.trex,J)},oe.moof=function(ne,ee){return oe.box(oe.types.moof,oe.mfhd(ne.sequenceNumber),oe.traf(ne,ee))},oe.mfhd=function(ne){var ee=new Uint8Array([0,0,0,0,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne]);return oe.box(oe.types.mfhd,ee)},oe.traf=function(ne,ee){var J=ne.id,ce=oe.box(oe.types.tfhd,new Uint8Array([0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,255&J])),Se=oe.box(oe.types.tfdt,new Uint8Array([0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee])),ke=oe.sdtp(ne),Ae=oe.trun(ne,ke.byteLength+16+16+8+16+8+8);return oe.box(oe.types.traf,ce,Se,Ae,ke)},oe.sdtp=function(ne){for(var ee=ne.samples||[],J=ee.length,ce=new Uint8Array(4+J),Se=0;Se>>24&255,ce>>>16&255,ce>>>8&255,255&ce,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee],0);for(var Ae=0;Ae>>24&255,nt>>>16&255,nt>>>8&255,255&nt,ot>>>24&255,ot>>>16&255,ot>>>8&255,255&ot,gt.isLeading<<2|gt.dependsOn,gt.isDependedOn<<6|gt.hasRedundancy<<4|gt.isNonSync,0,0,De>>>24&255,De>>>16&255,De>>>8&255,255&De],12+16*Ae)}return oe.box(oe.types.trun,ke)},oe.mdat=function(ne){return oe.box(oe.types.mdat,ne)},oe})();Xn.init();var wr=Xn,ro=(function(){function oe(){}return oe.getSilentFrame=function(ne,ee){if(ne==="mp4a.40.2"){if(ee===1)return new Uint8Array([0,200,0,128,35,128]);if(ee===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ee===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ee===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ee===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ee===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ee===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ee===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ee===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},oe})(),Ot=i(11),bn=(function(){function oe(ne){this.TAG="MP4Remuxer",this._config=ne,this._isLive=ne.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ot.c("audio"),this._videoSegmentInfoList=new Ot.c("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!c.a.chrome||!(c.a.version.major<50||c.a.version.major===50&&c.a.version.build<2661)),this._fillSilentAfterSeek=c.a.msedge||c.a.msie,this._mp3UseMpegAudio=!c.a.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return oe.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},oe.prototype.bindDataSource=function(ne){return ne.onDataAvailable=this.remux.bind(this),ne.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(oe.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(ne){this._onInitSegment=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(ne){this._onMediaSegment=ne},enumerable:!1,configurable:!0}),oe.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},oe.prototype.seek=function(ne){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},oe.prototype.remux=function(ne,ee){if(!this._onMediaSegment)throw new g.a("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ne,ee),ee&&this._remuxVideo(ee),ne&&this._remuxAudio(ne)},oe.prototype._onTrackMetadataReceived=function(ne,ee){var J=null,ce="mp4",Se=ee.codec;if(ne==="audio")this._audioMeta=ee,ee.codec==="mp3"&&this._mp3UseMpegAudio?(ce="mpeg",Se="",J=new Uint8Array):J=wr.generateInitSegment(ee);else{if(ne!=="video")return;this._videoMeta=ee,J=wr.generateInitSegment(ee)}if(!this._onInitSegment)throw new g.a("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ne,{type:ne,data:J.buffer,codec:Se,container:"".concat(ne,"/").concat(ce),mediaDuration:ee.duration})},oe.prototype._calculateDtsBase=function(ne,ee){this._dtsBaseInited||(ne&&ne.samples&&ne.samples.length&&(this._audioDtsBase=ne.samples[0].dts),ee&&ee.samples&&ee.samples.length&&(this._videoDtsBase=ee.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},oe.prototype.getTimestampBase=function(){if(this._dtsBaseInited)return this._dtsBase},oe.prototype.flushStashedSamples=function(){var ne=this._videoStashedLastSample,ee=this._audioStashedLastSample,J={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ne!=null&&(J.samples.push(ne),J.length=ne.length);var ce={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ee!=null&&(ce.samples.push(ee),ce.length=ee.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(J,!0),this._remuxAudio(ce,!0)},oe.prototype._remuxAudio=function(ne,ee){if(this._audioMeta!=null){var J,ce=ne,Se=ce.samples,ke=void 0,Ae=-1,nt=this._audioMeta.refSampleDuration,ot=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,gt=this._dtsBaseInited&&this._audioNextDts===void 0,De=!1;if(Se&&Se.length!==0&&(Se.length!==1||ee)){var st=0,ut=null,Mt=0;ot?(st=0,Mt=ce.length):(st=8,Mt=8+ce.length);var Qt=null;if(Se.length>1&&(Mt-=(Qt=Se.pop()).length),this._audioStashedLastSample!=null){var Gt=this._audioStashedLastSample;this._audioStashedLastSample=null,Se.unshift(Gt),Mt+=Gt.length}Qt!=null&&(this._audioStashedLastSample=Qt);var pn=Se[0].dts-this._dtsBase;if(this._audioNextDts)ke=pn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())ke=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(De=!0);else{var mn=this._audioSegmentInfoList.getLastSampleBefore(pn);if(mn!=null){var ln=pn-(mn.originalDts+mn.duration);ln<=3&&(ln=0),ke=pn-(mn.dts+mn.duration+ln)}else ke=0}if(De){var dr=pn-ke,tr=this._videoSegmentInfoList.getLastSegmentBefore(pn);if(tr!=null&&tr.beginDts=3*nt&&this._fillAudioTimestampGap&&!c.a.safari){vr=!0;var li,La=Math.floor(ke/nt);l.a.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. +`}),i}getTasksByStatus(t){return this.getAllTasks().filter(n=>t==="all"?!0:t==="downloaded"?n.status==="completed":t==="downloading"?n.status==="downloading":t==="failed"?n.status==="failed":t==="pending"?n.status==="pending"||n.status==="paused":n.status===t)}getTaskStats(){const t=this.getAllTasks();return{total:t.length,completed:t.filter(n=>n.status==="completed").length,downloading:t.filter(n=>n.status==="downloading").length,failed:t.filter(n=>n.status==="failed").length,pending:t.filter(n=>n.status==="pending"||n.status==="paused").length}}getStorageStats(){const n=this.getAllTasks().reduce((a,s)=>a+(s.downloadedSize||0),0),r=Math.max(0,104857600-n),i=n/104857600*100;return{usedBytes:n,availableBytes:r,totalBytes:104857600,usagePercentage:Math.min(100,i),isNearLimit:i>80,isOverLimit:i>=100,formattedUsed:this.formatFileSize(n),formattedAvailable:this.formatFileSize(r),formattedTotal:this.formatFileSize(104857600)}}formatFileSize(t){if(t===0)return"0 B";const n=1024,r=["B","KB","MB","GB"],i=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,i)).toFixed(2))+" "+r[i]}canAddTask(t=0){const n=this.getStorageStats();return t<=n.availableBytes}saveTasksToStorage(){try{const t=Array.from(this.tasks.entries());localStorage.setItem("novel_download_tasks",JSON.stringify(t))}catch(t){console.error("保存下载任务失败:",t)}}loadTasksFromStorage(){try{const t=localStorage.getItem("novel_download_tasks");if(t){const n=JSON.parse(t);this.tasks=new Map(n),this.tasks.forEach(r=>{r.status==="downloading"&&(r.status="paused",r.chapters.forEach(i=>{i.status==="downloading"&&(i.status="pending",i.progress=0,i.startTime=null)}))})}}catch(t){console.error("加载下载任务失败:",t),this.tasks=new Map}}generateTaskId(){return"task_"+Date.now()+"_"+Math.random().toString(36).substr(2,9)}sleep(t){return new Promise(n=>setTimeout(n,t))}notifyTaskUpdate(t){this.onTaskUpdate&&this.onTaskUpdate(t)}setTaskUpdateCallback(t){this.onTaskUpdate=t}}const bce=new Y9t,X9t={class:"video-detail"},Z9t={class:"detail-header"},J9t={class:"header-title"},Q9t={key:0},e$t={key:1,class:"title-with-info"},t$t={class:"title-main"},n$t={key:0,class:"title-source"},r$t={key:0,class:"header-actions"},i$t={key:0,class:"loading-container"},o$t={key:1,class:"error-container"},s$t={key:2,class:"detail-content"},a$t={class:"video-header"},l$t=["src","alt"],u$t={class:"poster-overlay"},c$t={class:"video-meta"},d$t={class:"video-title"},f$t={class:"video-tags"},h$t={class:"video-info-grid"},p$t={key:0,class:"info-item"},v$t={class:"value"},m$t={key:1,class:"info-item"},g$t={class:"value"},y$t={key:2,class:"info-item"},b$t={class:"value"},_$t={class:"video-actions"},S$t={key:0,class:"action-buttons-row"},k$t={key:1,class:"action-buttons-row download-row"},x$t={key:0,class:"video-description"},C$t={class:"viewer"},w$t=["src","alt","data-source","title"],E$t={class:"parse-dialog-content"},T$t={class:"parse-message"},A$t={key:0,class:"sniff-results"},I$t={class:"results-list"},L$t={class:"result-index"},D$t={class:"result-info"},P$t={class:"result-url"},R$t={key:0,class:"result-type"},M$t={key:0,class:"more-results"},$$t={key:1,class:"parse-hint"},O$t={class:"hint-icon"},B$t={class:"parse-dialog-footer"},N$t={__name:"VideoDetail",setup(e){const t=s3(),n=ma(),r=CS(),i=JA(),a=LG(),s=kS(),l=DG(),c=ue(!1),d=ue(""),h=ue(null),p=ue(null),v=ue({id:"",name:"",pic:"",year:"",area:"",type:"",remarks:"",content:"",actor:"",director:""}),g=ue(!1),y=ue(0),S=ue(0),k=ue(!1),C=ue(0),x=ue({name:"",api:"",key:""}),E=ue(!1),_=ue(sessionStorage.getItem("hasPushOverride")==="true"),T=ue(null);It(_,oe=>{sessionStorage.setItem("hasPushOverride",oe.toString()),console.log("🔄 [状态持久化] hasPushOverride状态已保存:",oe)},{immediate:!0});const D=ue(!1),P=ue(""),M=ue({}),O=ue([]),L=ue(!1),B=ue(""),j=ue(!1),H=ue(null),U=ue(null),K=ue(!1),Y=ue([]),ie=ue(!1),te=ue(null),W=ue(!1),q=ue(null),Q=ue(!1),se=ue({title:"",message:"",type:""}),ae=ue(!1),re=ue([]),Ce=()=>{try{const oe=localStorage.getItem("drplayer_preferred_player_type");return oe&&["default","artplayer"].includes(oe)?oe:"default"}catch(oe){return console.warn("读取播放器偏好失败:",oe),"default"}},Ve=oe=>{try{localStorage.setItem("drplayer_preferred_player_type",oe),console.log("播放器偏好已保存:",oe)}catch(ne){console.warn("保存播放器偏好失败:",ne)}},ge=ue(Ce()),xe=ue([]),Ge=ue([]),tt=ue({inline:!1,button:!0,navbar:!0,title:!0,toolbar:{zoomIn:1,zoomOut:1,oneToOne:1,reset:1,prev:1,play:{show:1,size:"large"},next:1,rotateLeft:1,rotateRight:1,flipHorizontal:1,flipVertical:1},tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,backdrop:!0}),Ue=F(()=>h.value?.vod_pic?h.value.vod_pic:v.value?.sourcePic?v.value.sourcePic:"/src/assets/default-poster.svg"),_e=F(()=>{if(!h.value?.vod_play_from||!h.value?.vod_play_url)return[];const oe=h.value.vod_play_from.split("$$$"),ne=h.value.vod_play_url.split("$$$");return oe.map((ee,J)=>({name:ee.trim(),episodes:ve(ne[J]||"")}))}),ve=oe=>oe?oe.split("#").map(ne=>{const[ee,J]=ne.split("$");return{name:ee?.trim()||"未知集数",url:J?.trim()||""}}).filter(ne=>ne.url):[],me=F(()=>_e.value[y.value]?.episodes||[]),Oe=F(()=>(_e.value[y.value]?.episodes||[])[S.value]?.url||""),qe=F(()=>j.value&&!P.value?"":P.value||Oe.value),Ke=F(()=>(_e.value[y.value]?.episodes||[])[S.value]?.name||"未知选集"),at=F(()=>S.value),ft=F(()=>!v.value.id||!x.value.api?!1:i.isFavorited(v.value.id,x.value.api)),ct=F(()=>te.value!==null),wt=F(()=>(x.value?.name||"").includes("[书]")||ct.value),Ct=F(()=>W.value),Rt=F(()=>{const oe=x.value?.name||"";return oe.includes("[书]")?{text:"开始阅读",icon:"icon-book"}:oe.includes("[听]")?{text:"播放音频",icon:"icon-sound"}:oe.includes("[画]")?{text:"查看图片",icon:"icon-image"}:ct.value?{text:"开始阅读",icon:"icon-book"}:Ct.value?{text:"查看图片",icon:"icon-image"}:{text:"播放视频",icon:"icon-play-arrow"}}),Ht=async()=>{if(console.log("🔄 loadVideoDetail 函数被调用,开始加载详情数据:",{id:t.params.id,fullPath:t.fullPath,timestamp:new Date().toLocaleTimeString()}),!t.params.id){d.value="视频ID不能为空";return}if(C.value=0,E.value=!1,v.value={id:t.params.id,name:t.query.name||"",pic:t.query.pic||"",year:t.query.year||"",area:t.query.area||"",type:t.query.type||"",type_name:t.query.type_name||"",remarks:t.query.remarks||"",content:t.query.content||"",actor:t.query.actor||"",director:t.query.director||"",sourcePic:t.query.sourcePic||""},!r.nowSite){d.value="请先选择一个视频源";return}c.value=!0,d.value="";const oe=t.query.fromCollection==="true",ne=t.query.fromHistory==="true",ee=t.query.fromPush==="true",J=t.query.fromSpecialAction==="true";try{let ce,Se,ke,Ae;if((oe||ne||ee||J)&&t.query.tempSiteKey)console.log("VideoDetail接收到的路由参数:",t.query),console.log("tempSiteExt参数值:",t.query.tempSiteExt),ce=t.query.tempSiteKey,Se=t.query.tempSiteApi,ke=t.query.tempSiteName,Ae=t.query.tempSiteExt||null,console.log(`从${oe?"收藏":ne?"历史":"推送"}进入,使用临时站源:`,{siteName:ke,module:ce,apiUrl:Se,extend:Ae});else{const ot=r.nowSite;ce=ot.key||ot.name,Se=ot.api,ke=ot.name,Ae=ot.ext||null}x.value={name:ke,api:Se,key:ce,ext:Ae},T.value=x.value,console.log("获取视频详情:",{videoId:t.params.id,module:ce,apiUrl:Se,extend:Ae,fromCollection:oe,usingTempSite:oe&&t.query.tempSiteKey}),oe&&console.log("从收藏进入,优先调用T4详情接口获取最新数据");const nt=await Ka.getVideoDetails(ce,t.params.id,Se,oe,Ae);if(nt){nt.module=ce,nt.api_url=Se,nt.site_name=ke,h.value=nt,console.log("视频详情获取成功:",nt);const ot=t.query.historyRoute,gt=t.query.historyEpisode;ot&>?(console.log("检测到历史记录参数,准备恢复播放位置:",{historyRoute:ot,historyEpisode:gt}),dn(()=>{setTimeout(()=>{console.log("开始恢复历史记录,当前playRoutes长度:",_e.value.length),_e.value.length>0?Ee(ot,gt):console.warn("playRoutes为空,无法恢复历史记录")},100)})):dn(()=>{setTimeout(()=>{_e.value.length>0&&y.value===0&&(console.log("初始化默认播放位置"),y.value=0,me.value.length>0&&(S.value=0))},100)})}else d.value="未找到视频详情"}catch(ce){console.error("加载视频详情失败:",ce),d.value=ce.message||"加载失败,请稍后重试"}finally{c.value=!1}},Jt=async()=>{if(!(!v.value.id||!x.value.api)){k.value=!0;try{if(ft.value)i.removeFavorite(v.value.id,x.value.api)&&yt.success("已取消收藏");else{const oe={vod_id:v.value.id,vod_name:v.value.name||h.value?.vod_name||"",vod_pic:v.value.pic||h.value?.vod_pic||"",vod_year:v.value.year||h.value?.vod_year||"",vod_area:v.value.area||h.value?.vod_area||"",vod_type:v.value.type||h.value?.vod_type||"",type_name:v.value.type_name||h.value?.type_name||"",vod_remarks:v.value.remarks||h.value?.vod_remarks||"",vod_content:v.value.content||h.value?.vod_content||"",vod_actor:v.value.actor||h.value?.vod_actor||"",vod_director:v.value.director||h.value?.vod_director||"",vod_play_from:h.value?.vod_play_from||"",vod_play_url:h.value?.vod_play_url||"",module:x.value.key,api_url:x.value.api,site_name:x.value.name,ext:x.value.ext||null};i.addFavorite(oe)?yt.success("收藏成功"):yt.warning("该视频已在收藏列表中")}}catch(oe){yt.error("操作失败,请稍后重试"),console.error("收藏操作失败:",oe)}finally{k.value=!1}}},rn=async()=>{try{if(console.log("🔄 [用户操作] 手动清除推送覆盖状态"),_.value=!1,E.value=!1,sessionStorage.removeItem("hasPushOverride"),!r.nowSite){yt.error("无法恢复:当前没有选择视频源");return}const oe=r.nowSite;x.value={name:oe.name,api:oe.api,key:oe.key||oe.name,ext:oe.ext||null},T.value=x.value,console.log("🔄 [推送覆盖] 使用原始站源重新加载:",x.value),c.value=!0,d.value="";const ne=`detail_${x.value.key}_${t.params.id}`;console.log("🔄 [推送覆盖] 清除缓存:",ne),Ka.cache.delete(ne);const ee=await Ka.getVideoDetails(x.value.key,t.params.id,x.value.api,!0,x.value.ext);if(ee)ee.module=x.value.key,ee.api_url=x.value.api,ee.site_name=x.value.name,h.value=ee,y.value=0,S.value=0,console.log("✅ [推送覆盖] 原始数据恢复成功:",ee),yt.success("已恢复原始数据");else throw new Error("无法获取原始视频数据")}catch(oe){console.error("❌ [推送覆盖] 清除推送覆盖状态失败:",oe),yt.error(`恢复原始数据失败: ${oe.message}`)}finally{c.value=!1}},vt=()=>{const oe=t.query.sourceRouteName,ne=t.query.sourceRouteParams,ee=t.query.sourceRouteQuery,J=t.query.fromSearch;if(console.log("goBack 调用,来源信息:",{sourceRouteName:oe,fromSearch:J,sourceRouteParams:ne,sourceRouteQuery:ee}),oe)try{const ce=ne?JSON.parse(ne):{},Se=ee?JSON.parse(ee):{};if(console.log("返回来源页面:",oe,{params:ce,query:Se,fromSearch:J}),oe==="Video")if(J==="true"){console.log("从Video页面搜索返回,恢复搜索状态");const Ae=s.getPageState("search");Ae&&Ae.keyword&&!s.isStateExpired("search")&&(console.log("发现保存的搜索状态,将恢复搜索结果:",Ae),Se._restoreSearch="true")}else{if(console.log("从Video页面分类返回,恢复分类状态"),Se.activeKey&&(Se._returnToActiveKey=Se.activeKey,console.log("设置返回分类:",Se.activeKey)),p.value)try{const nt=JSON.parse(p.value);Se.folderState=p.value}catch(nt){console.error("解析保存的目录状态失败:",nt)}s.getPageState("video")&&!s.isStateExpired("video")&&console.log("发现保存的Video页面状态,将恢复状态而非重新加载")}else if(oe==="SearchAggregation")console.log("从聚合搜索页面返回,添加返回标识"),Se._returnFromDetail="true",Se._t&&(delete Se._t,console.log("清除时间戳参数 _t,避免触发重新搜索"));else if(oe==="Home"){const Ae=s.getPageState("search");Ae&&Ae.keyword&&!s.isStateExpired("search")&&(console.log("发现保存的搜索状态,将恢复搜索结果"),Se._restoreSearch="true")}if(console.log("🔄 [DEBUG] ========== VideoDetail goBack 即将跳转 =========="),console.log("🔄 [DEBUG] sourceRouteName:",oe),console.log("🔄 [DEBUG] params:",JSON.stringify(ce,null,2)),console.log("🔄 [DEBUG] query参数完整内容:",JSON.stringify(Se,null,2)),console.log("🔄 [DEBUG] folderState参数值:",Se.folderState),console.log("🔄 [DEBUG] folderState参数类型:",typeof Se.folderState),console.log("🔄 [DEBUG] initialFolderState.value:",p.value),console.log("🔄 [DEBUG] _returnToActiveKey参数值:",Se._returnToActiveKey),Se.folderState)try{const Ae=JSON.parse(Se.folderState);console.log("🔄 [DEBUG] 解析后的folderState:",JSON.stringify(Ae,null,2)),console.log("🔄 [DEBUG] folderState.isActive:",Ae.isActive),console.log("🔄 [DEBUG] folderState.breadcrumbs:",Ae.breadcrumbs),console.log("🔄 [DEBUG] folderState.currentBreadcrumb:",Ae.currentBreadcrumb)}catch(Ae){console.error("🔄 [ERROR] folderState解析失败:",Ae)}else console.log("🔄 [DEBUG] 没有folderState参数传递");const ke={name:oe,params:ce,query:Se};console.log("🔄 [DEBUG] router.push完整参数:",JSON.stringify(ke,null,2)),n.push(ke),console.log("🔄 [DEBUG] ========== VideoDetail goBack 跳转完成 ==========")}catch(ce){console.error("解析来源页面信息失败:",ce),n.back()}else console.log("没有来源信息,使用默认返回方式"),n.back()},Fe=oe=>{if(oe.target.src.includes("default-poster.svg"))return;if(C.value++,C.value===1&&v.value?.sourcePic&&h.value?.vod_pic&&oe.target.src===h.value.vod_pic){oe.target.src=v.value.sourcePic;return}const ne="/apps/drplayer/";oe.target.src=`${ne}default-poster.svg`,oe.target.style.objectFit="contain",oe.target.style.backgroundColor="#f7f8fa"},Me=()=>{const oe=Ue.value;oe&&!oe.includes("default-poster.svg")&&(xe.value=[oe],Ge.value=[{src:oe,name:h.value?.vod_name||v.value?.name||"未知标题"}],setTimeout(()=>{const ne=document.querySelector(".viewer");ne&&ne.$viewer&&ne.$viewer.show()},100))},Ee=(oe,ne)=>{try{console.log("开始恢复历史记录位置:",{historyRoute:oe,historyEpisode:ne});const ee=_e.value,J=ee.find(ce=>ce.name===oe);if(J){console.log("找到历史线路:",J.name);const ce=ee.indexOf(J);y.value=ce,dn(()=>{const Se=me.value,ke=Se.find(Ae=>Ae.name===ne);if(ke){console.log("找到历史选集:",ke.name);const Ae=Se.indexOf(ke);S.value=Ae,console.log("历史记录位置恢复成功:",{routeIndex:ce,episodeIndex:Ae})}else console.warn("未找到历史选集:",ne),Se.length>0&&(S.value=0)})}else console.warn("未找到历史线路:",oe),ee.length>0&&(y.value=0,dn(()=>{me.value.length>0&&(S.value=0)}))}catch(ee){console.error("恢复历史记录位置失败:",ee)}},We=()=>{g.value=!g.value},$e=oe=>{y.value=oe,S.value=0},dt=()=>{D.value=!1},Qe=()=>{ie.value=!1,W.value=!1,te.value=null,q.value=null},Le=oe=>{console.log("切换到章节:",oe),An(oe)},ht=()=>{if(S.value{if(S.value>0){const oe=S.value-1;console.log("切换到上一章:",oe),An(oe)}},Ut=oe=>{console.log("选择章节:",oe),An(oe)},Lt=oe=>{console.log("切换播放器类型:",oe),ge.value=oe,Ve(oe)},Xt=oe=>{console.log("切换到下一集:",oe),oe>=0&&oe{if(console.log("从播放器选择剧集:",oe),typeof oe=="number"){const ne=oe;ne>=0&&neee.name===oe.name&&ee.url===oe.url);ne!==-1?(console.log("通过对象查找到选集索引:",ne),An(ne)):(console.warn("未找到选集:",oe),yt.warning("选集切换失败:未找到匹配的选集"))}else console.warn("无效的选集参数:",oe),yt.warning("选集切换失败:参数格式错误")},rr=oe=>{console.log("阅读器设置变更:",oe)},qr=oe=>{console.log("画质切换事件:",oe),oe&&oe.url?(P.value=oe.url,console.log("画质切换完成,新URL:",oe.url)):console.warn("画质切换数据无效:",oe)},Wt=async oe=>{if(console.log("解析器变更事件:",oe),!oe||!H.value){console.warn("解析器或解析数据无效");return}U.value=oe,localStorage.setItem("selectedParser",JSON.stringify(oe));try{const ne=oe.parser||oe,ee={...ne,type:ne.type===1?"json":ne.type===0?"sniffer":ne.type};ee.type==="json"&&!ee.urlPath&&(ee.urlPath="url"),console.log("🎬 [开始解析] 使用选定的解析器直接解析真实数据"),console.log("🎬 [解析参数]",{parser:ee,parseData:H.value}),await sn(ee,H.value)}catch(ne){console.error("解析失败:",ne),yt.error("解析失败,请稍后重试")}},Yt=async()=>{try{await l.loadParsers();const oe=l.parsers.filter(ne=>ne.enabled);return Y.value=oe,console.log("获取到可用解析器:",oe),oe}catch(oe){return console.error("获取解析器列表失败:",oe),Y.value=[],[]}},sn=async(oe,ne)=>{if(!oe||!ne)throw new Error("解析器或数据无效");console.log("🎬🎬🎬 [真正解析开始] 这是真正的解析,不是测试!"),console.log("🎬 [真正解析] 开始执行解析:",{parser:oe.name,data:ne,dataType:typeof ne,hasJxFlag:ne&&typeof ne=="object"&&ne.jx===1,dataUrl:ne&&typeof ne=="object"?ne.url:ne,isTestData:ne&&typeof ne=="object"&&ne.url==="https://example.com/test.mp4"});const ee={...oe,type:oe.type==="0"?"sniffer":oe.type==="1"?"json":oe.type};console.log("🔧 [类型转换] 原始类型:",oe.type,"转换后类型:",ee.type);const J=Xle.validateParserConfig(ee);if(!J.valid){const ce="解析器配置无效: "+J.errors.join(", ");throw console.error(ce),yt.error(ce),new Error(ce)}try{let ce;if(ee.type==="json")console.log("🎬 [真正解析] 调用JSON解析器,传递数据:",ne),ce=await Xle.parseWithJsonParser(ee,ne);else if(ee.type==="sniffer"){console.log("🎬 [真正解析] 调用代理嗅探接口,传递数据:",ne);const{sniffVideoWithConfig:Se}=await fc(async()=>{const{sniffVideoWithConfig:ot}=await Promise.resolve().then(()=>B5t);return{sniffVideoWithConfig:ot}},void 0);let ke;if(ne&&typeof ne=="object"?ke=ne.url||ne.play_url||ne:ke=ne,!ke||typeof ke!="string")throw new Error("无效的嗅探目标URL");const Ae=ee.url+encodeURIComponent(ke);console.log("🔍 [嗅探解析] 解析器URL:",ee.url),console.log("🔍 [嗅探解析] 被解析URL:",ke),console.log("🔍 [嗅探解析] 完整解析地址:",Ae);const nt=await Se(Ae);if(nt.success&&nt.data&&nt.data.length>0)ce={success:!0,url:nt.data[0].url,headers:{Referer:Ae,"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},qualities:[],message:"嗅探解析成功"};else throw new Error("嗅探未找到可播放的视频链接")}else throw new Error(`不支持的解析器类型: ${ee.type}`);if(ce&&ce.success)P.value=ce.url,M.value=ce.headers||{},ce.qualities&&ce.qualities.length>0?(O.value=ce.qualities,L.value=!0,B.value=ce.qualities[0].name):(O.value=[],L.value=!1,B.value=""),D.value=!0,yt.success(`解析成功,开始播放: ${Ke.value}`),console.log("解析完成:",ce);else throw new Error(ce?.message||"解析失败")}catch(ce){throw console.error("解析执行失败:",ce),ce}},An=async oe=>{S.value=oe;const ne=me.value[oe]?.url,ee=_e.value[y.value]?.name;if(!ne){console.log("选集URL为空,无法播放"),yt.error("选集URL为空,无法播放");return}try{if(console.log("开始解析选集播放地址:",{episodeUrl:ne,routeName:ee,isPushMode:E.value,currentActiveSite:T.value?.key,originalSite:x.value?.key}),ne.startsWith("push://")){console.log("🚀🚀🚀 选集URL本身为push://协议,直接处理推送逻辑:",ne),await un(ne,ee);return}yt.info("正在解析播放地址...");const J={play:ne,flag:ee,apiUrl:T.value.api,extend:T.value.ext},ce=await Ka.parseEpisodePlayUrl(T.value.key,J);if(console.log("选集播放解析结果:",ce),ce.url&&ce.url.startsWith("push://")){console.log("🚀🚀🚀 T4播放API返回push://协议,开始处理推送逻辑:",ce.url),await un(ce.url,ce.flag);return}if(ce.playType==="direct")if(ce.url&&ce.url.startsWith("novel://")){console.log("检测到小说内容:",ce.url);try{const Se=ce.url.replace("novel://",""),ke=JSON.parse(Se);console.log("解析小说内容成功:",ke),te.value={title:ke.title||Ke.value,content:ke.content||"",chapterIndex:oe,totalChapters:me.value.length},D.value=!1,W.value=!1,ie.value=!0,yt.success(`开始阅读: ${ke.title||Ke.value}`)}catch(Se){console.error("解析小说内容失败:",Se),yt.error("解析小说内容失败")}}else if(ce.url&&ce.url.startsWith("pics://")){console.log("检测到漫画内容:",ce.url);try{const ke=ce.url.replace("pics://","").split("&&").filter(Ae=>Ae.trim());console.log("解析漫画内容成功:",ke),q.value={title:Ke.value,images:ke,chapterIndex:oe,totalChapters:me.value.length},D.value=!1,ie.value=!1,W.value=!0,yt.success(`开始看漫画: ${Ke.value}`)}catch(Se){console.error("解析漫画内容失败:",Se),yt.error("解析漫画内容失败")}}else console.log("启动内置播放器播放直链视频:",ce.url),console.log("T4解析结果headers:",ce.headers),console.log("T4解析结果画质信息:",ce.qualities,ce.hasMultipleQualities),P.value=ce.url,M.value=ce.headers||{},O.value=ce.qualities||[],L.value=ce.hasMultipleQualities||!1,ce.qualities&&ce.qualities.length>0?B.value=ce.qualities[0].name||"":B.value="",te.value=null,q.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.success(`开始播放: ${Ke.value}`);else if(ce.playType==="sniff")if(console.log("需要嗅探播放:",ce),!MT())P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,se.value={title:"嗅探功能未启用",message:"该视频需要嗅探才能播放,请先在设置中配置嗅探器接口。",type:"sniff"},Q.value=!0;else{const Se=await Xn(ce.data)}else if(ce.playType==="parse"){console.log("需要解析播放:",ce),j.value=!0,H.value=ce.data;const Se=await Yt();if(Se.length===0)se.value={title:"播放提示",message:"该视频需要解析才能播放,但未配置可用的解析器。请前往解析器页面配置解析器。",type:"parse"},Q.value=!0,j.value=!1,H.value=null;else{let ke=null;try{const Ae=localStorage.getItem("selectedParser");if(Ae)try{const nt=JSON.parse(Ae);ke=Se.find(ot=>ot.id===nt.id)}catch{console.warn("JSON解析失败,尝试作为解析器ID处理:",Ae),ke=Se.find(ot=>ot.id===Ae),console.log("defaultParser:",ke),ke&&localStorage.setItem("selectedParser",JSON.stringify(ke))}}catch(Ae){console.warn("获取保存的解析器失败:",Ae),localStorage.removeItem("selectedParser")}ke||(ke=Se[0]),U.value=ke,P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.info("检测到需要解析的视频,请在播放器中选择解析器")}}else console.log("使用原始播放方式:",ne),P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,D.value=!0,yt.success(`开始播放: ${Ke.value}`)}catch(J){console.error("解析选集播放地址失败:",J),yt.error("解析播放地址失败,请稍后重试"),console.log("回退到原始播放方式:",ne),P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,D.value=!0,yt.warning(`播放可能不稳定: ${Ke.value}`)}if(h.value&&me.value[oe]){const J={id:v.value.id,name:v.value.name||h.value.vod_name||"",pic:v.value.pic||h.value.vod_pic||"",year:v.value.year||h.value.vod_year||"",area:v.value.area||h.value.vod_area||"",type:v.value.type||h.value.vod_type||"",type_name:v.value.type_name||h.value.type_name||"",remarks:v.value.remarks||h.value.vod_remarks||"",api_info:{module:x.value.key,api_url:x.value.api,site_name:x.value.name,ext:x.value.ext||null}},ce={name:_e.value[y.value]?.name||"",index:y.value},Se={name:me.value[oe].name,index:oe,url:me.value[oe].url};console.log("=== 添加历史记录调试 ==="),console.log("currentSiteInfo.value.ext:",x.value.ext),console.log("videoInfo.api_info.ext:",J.api_info.ext),console.log("=== 调试结束 ==="),a.addToHistory(J,ce,Se)}},un=async(oe,ne)=>{try{console.log("🚀🚀🚀 开始处理push://协议:",oe),yt.info("正在处理推送链接...");const ee=oe.replace("push://","").trim();console.log("提取的推送内容:",ee),E.value=!0,_.value=!0,console.log("🚀 [推送操作] 已设置推送覆盖标记:",{hasPushOverride:_.value,isPushMode:E.value,timestamp:new Date().toLocaleTimeString()});const J=Zo.getAllSites().find(nt=>nt.key==="push_agent");if(!J)throw new Error("未找到push_agent源,请检查源配置");console.log("找到push_agent源:",J),T.value=J,console.log("调用push_agent详情接口,参数:",{module:J.key,videoId:ee,apiUrl:J.api,extend:J.ext});const ce=await Ka.getVideoDetails(J.key,ee,J.api,!1,J.ext);if(console.log("push_agent详情接口返回结果:",ce),!ce||!ce.vod_play_from||!ce.vod_play_url)throw new Error("push_agent源返回的数据格式不正确,缺少播放信息");h.value.vod_play_from=ce.vod_play_from,h.value.vod_play_url=ce.vod_play_url;const Se=[],ke={vod_content:"剧情简介",vod_id:"视频ID",vod_pic:"封面图片",vod_name:"视频名称",vod_remarks:"备注信息",vod_actor:"演员",vod_director:"导演",vod_year:"年份",vod_area:"地区",vod_lang:"语言",vod_class:"分类"};Object.keys(ke).forEach(nt=>{ce[nt]!==void 0&&ce[nt]!==null&&ce[nt]!==""&&(h.value[nt]=ce[nt],Se.push(ke[nt]))}),y.value=0,S.value=0,console.log("推送数据更新完成,新的播放信息:",{vod_play_from:h.value.vod_play_from,vod_play_url:h.value.vod_play_url,updatedFields:Se});const Ae=Se.length>0?`推送成功: ${ne||"未知来源"} (已更新: ${Se.join("、")})`:`推送成功: ${ne||"未知来源"}`;yt.success(Ae)}catch(ee){console.error("处理push://协议失败:",ee),yt.error(`推送失败: ${ee.message}`),E.value=!1,T.value=x.value}},Xn=async oe=>{let ne=null;try{if(!MT())throw new Error("嗅探功能未启用,请在设置中配置嗅探器");ae.value=!0,re.value=[],ne=yt.info({content:"正在全力嗅探中,请稍等...",duration:0}),console.log("开始嗅探视频链接:",oe);let ee;typeof oe=="object"&&oe.parse===1?(ee=oe,console.log("使用T4解析数据进行嗅探:",ee)):(ee=typeof oe=="string"?oe:oe.toString(),console.log("使用普通URL进行嗅探:",ee));const J=await K3e(ee,{mode:"0",is_pc:"0"});if(console.log("嗅探结果:",J),J.success&&J.data){let ce,Se;if(Array.isArray(J.data)){if(J.data.length===0)throw new Error("嗅探失败,未找到有效的视频链接");ce=J.data,Se=J.data.length,re.value=J.data}else if(J.data.url)ce=[J.data],Se=1,re.value=ce;else throw new Error("嗅探结果格式无效");ne.close();const ke=ce[0];if(ke&&ke.url)return console.log("使用嗅探到的第一个链接:",ke.url),P.value=ke.url,te.value=null,q.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.success(`嗅探成功,开始播放: ${Ke.value}`),!0;throw new Error("嗅探到的链接无效")}else throw new Error(J.message||"嗅探失败,未找到有效的视频链接")}catch(ee){return console.error("嗅探失败:",ee),ne&&ne.close(),yt.error(`嗅探失败: ${ee.message}`),!1}finally{ae.value=!1}},wr=async()=>{const oe=v.value.id,ne=x.value.api;if(oe&&ne){const ee=a.getHistoryByVideo(oe,ne);if(ee){console.log("发现历史记录,播放历史位置:",ee);const J=_e.value,ce=J.find(Se=>Se.name===ee.current_route_name);if(ce){const Se=J.indexOf(ce);y.value=Se,await dn();const ke=me.value,Ae=ke.find(nt=>nt.name===ee.current_episode_name);if(Ae){const nt=ke.indexOf(Ae);await An(nt)}else console.warn("未找到历史选集,播放第一个选集"),await Ot()}else console.warn("未找到历史线路,播放第一个选集"),await Ot()}else console.log("无历史记录,播放第一个选集"),await Ot()}else await Ot()},ro=()=>{console.log("开始智能查找第一个m3u8选集...");for(let oe=0;oe<_e.value.length;oe++){const ne=_e.value[oe];console.log(`检查线路 ${oe}: ${ne.name}`);for(let ee=0;ee{const oe=ro();oe?(console.log(`智能播放m3u8选集: ${oe.route} - ${oe.episode}`),y.value=oe.routeIndex,await dn(),await An(oe.episodeIndex)):_e.value.length>0&&(y.value=0,await dn(),me.value.length>0&&await An(0))},bn=async()=>{if(Oe.value)try{await navigator.clipboard.writeText(Oe.value),yt.success("链接已复制到剪贴板")}catch{yt.error("复制失败")}},kr=()=>{K.value=!0},sr=()=>{K.value=!1},zr=async oe=>{try{console.log("确认下载任务:",oe);const ne={title:oe.novelDetail.vod_name,id:oe.novelDetail.vod_id,url:Oe.value||"",author:oe.novelDetail.vod_actor||"未知",description:oe.novelDetail.vod_content||"",cover:oe.novelDetail.vod_pic||""},ee=oe.selectedChapters.map(Se=>{const ke=oe.chapters[Se];return{name:ke.name||`第${Se+1}章`,url:ke.url||ke.vod_play_url||"",index:Se}}),J={...oe.settings,module:T.value?.key||"",apiUrl:T.value?.api||"",extend:T.value?.ext||"",flag:_e.value[y.value]?.name||""};console.log("下载设置:",J),console.log("当前站点信息:",T.value);const ce=bce.createTask(ne,ee,J);await bce.startTask(ce.id),yt.success(`下载任务已创建:${oe.novelDetail.vod_name}`),sr()}catch(ne){console.error("创建下载任务失败:",ne),yt.error("创建下载任务失败:"+ne.message)}};return It(()=>[t.params.id,t.query],()=>{if(t.params.id){if(console.log("🔍 [params监听器] 检测到路由变化,重新加载视频详情:",{id:t.params.id,fromCollection:t.query.fromCollection,name:t.query.name,folderState:t.query.folderState,timestamp:new Date().toLocaleTimeString()}),t.query.folderState&&!p.value)try{p.value=t.query.folderState}catch(oe){console.error("VideoDetail保存folderState失败:",oe)}Ht()}},{immediate:!0,deep:!0}),It(()=>t.fullPath,(oe,ne)=>{console.log("🔍 [fullPath监听器] 路由fullPath变化监听器触发:",{newPath:oe,oldPath:ne,hasVideoInPath:oe?.includes("/video/"),hasId:!!t.params.id,pathChanged:oe!==ne,hasPushOverride:_.value,timestamp:new Date().toLocaleTimeString()}),oe&&oe.includes("/video/")&&oe!==ne&&t.params.id&&console.log("ℹ️ [fullPath监听器] 检测到路径变化,但推送覆盖处理已交给onActivated:",{oldPath:ne,newPath:oe,id:t.params.id,hasPushOverride:_.value})},{immediate:!0}),It(()=>r.nowSite,(oe,ne)=>{oe&&ne&&oe.api!==ne.api&&t.params.id&&(console.log("检测到站点切换,重新加载视频详情:",{oldSite:ne?.name,newSite:oe?.name}),Ht())},{deep:!0}),hn(async()=>{console.log("VideoDetail组件已挂载");try{await Yt()}catch(oe){console.error("初始化解析器失败:",oe)}}),HU(()=>{console.log("🔄 [组件激活] VideoDetail组件激活:",{hasPushOverride:_.value,isPushMode:E.value,routeId:t.params.id,timestamp:new Date().toLocaleTimeString()}),_.value&&t.params.id?(console.log("✅ [组件激活] 检测到推送覆盖,强制重新加载数据"),Ht()):console.log("ℹ️ [组件激活] 未检测到推送覆盖标记,跳过强制重新加载:",{hasPushOverride:_.value,hasRouteId:!!t.params.id,routeId:t.params.id,condition1:_.value,condition2:!!t.params.id,bothConditions:_.value&&t.params.id})}),ii(()=>{console.log("VideoDetail组件卸载"),console.log("🔄 [状态清理] 组件卸载,保留推送覆盖状态以便用户返回时恢复")}),(oe,ne)=>{const ee=Te("a-button"),J=Te("a-spin"),ce=Te("a-result"),Se=Te("a-tag"),ke=Te("a-card"),Ae=i3("viewer");return z(),X("div",X9t,[I("div",Z9t,[$(ee,{type:"text",onClick:vt,class:"back-btn"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[ne[3]||(ne[3]=He(" 返回 ",-1))]),_:1}),I("div",J9t,[v.value.name?(z(),X("span",e$t,[I("span",t$t,"视频详情 - "+Ne(v.value.name),1),x.value.name?(z(),X("span",n$t," ("+Ne(x.value.name)+" - ID: "+Ne(v.value.id)+") ",1)):Ie("",!0)])):(z(),X("span",Q9t,"视频详情"))]),v.value.id?(z(),X("div",r$t,[_.value?(z(),Ze(ee,{key:0,type:"outline",status:"warning",onClick:rn,class:"clear-push-btn"},{icon:fe(()=>[$(rt(zc))]),default:fe(()=>[ne[4]||(ne[4]=He(" 恢复原始数据 ",-1))]),_:1})):Ie("",!0),$(ee,{type:ft.value?"primary":"outline",onClick:Jt,class:"favorite-btn",loading:k.value},{icon:fe(()=>[ft.value?(z(),Ze(rt(rW),{key:0})):(z(),Ze(rt(oA),{key:1}))]),default:fe(()=>[He(" "+Ne(ft.value?"取消收藏":"收藏"),1)]),_:1},8,["type","loading"])])):Ie("",!0)]),c.value?(z(),X("div",i$t,[$(J,{size:40}),ne[5]||(ne[5]=I("div",{class:"loading-text"},"正在加载详情...",-1))])):d.value?(z(),X("div",o$t,[$(ce,{status:"error",title:d.value},null,8,["title"]),$(ee,{type:"primary",onClick:Ht},{default:fe(()=>[...ne[6]||(ne[6]=[He("重新加载",-1)])]),_:1})])):h.value?(z(),X("div",s$t,[D.value&&(qe.value||j.value)&&ge.value==="default"?(z(),Ze(uU,{key:0,"video-url":qe.value,"episode-name":Ke.value,poster:h.value?.vod_pic,visible:D.value,"player-type":ge.value,episodes:me.value,"current-episode-index":at.value,headers:M.value,qualities:O.value,"has-multiple-qualities":L.value,"initial-quality":B.value,"needs-parsing":j.value,"parse-data":H.value,onClose:dt,onPlayerChange:Lt,onParserChange:Wt,onNextEpisode:Xt,onEpisodeSelected:Dn,onQualityChange:qr},null,8,["video-url","episode-name","poster","visible","player-type","episodes","current-episode-index","headers","qualities","has-multiple-qualities","initial-quality","needs-parsing","parse-data"])):Ie("",!0),D.value&&(qe.value||j.value)&&ge.value==="artplayer"?(z(),Ze(D4e,{key:1,"video-url":qe.value,"episode-name":Ke.value,poster:h.value?.vod_pic,visible:D.value,"player-type":ge.value,episodes:me.value,"current-episode-index":at.value,"auto-next":!0,headers:M.value,qualities:O.value,"has-multiple-qualities":L.value,"initial-quality":B.value,"needs-parsing":j.value,"parse-data":H.value,onClose:dt,onPlayerChange:Lt,onParserChange:Wt,onNextEpisode:Xt,onEpisodeSelected:Dn,onQualityChange:qr},null,8,["video-url","episode-name","poster","visible","player-type","episodes","current-episode-index","headers","qualities","has-multiple-qualities","initial-quality","needs-parsing","parse-data"])):Ie("",!0),ie.value&&te.value?(z(),Ze(dMt,{key:2,"book-detail":h.value,"chapter-content":te.value,chapters:me.value,"current-chapter-index":S.value,visible:ie.value,onClose:Qe,onNextChapter:ht,onPrevChapter:Vt,onChapterSelected:Ut,onChapterChange:Le},null,8,["book-detail","chapter-content","chapters","current-chapter-index","visible"])):Ie("",!0),W.value&&q.value?(z(),Ze(S9t,{key:3,"comic-detail":h.value,"comic-title":h.value?.vod_name,"chapter-name":Ke.value,chapters:me.value,"current-chapter-index":S.value,"comic-content":q.value,visible:W.value,onClose:Qe,onNextChapter:ht,onPrevChapter:Vt,onChapterSelected:Ut,onSettingsChange:rr},null,8,["comic-detail","comic-title","chapter-name","chapters","current-chapter-index","comic-content","visible"])):Ie("",!0),$(ke,{class:de(["video-info-card",{"collapsed-when-playing":D.value||ie.value}])},{default:fe(()=>[I("div",a$t,[I("div",{class:"video-poster",onClick:Me},[I("img",{src:Ue.value,alt:h.value.vod_name,onError:Fe},null,40,l$t),I("div",u$t,[$(rt(x0),{class:"view-icon"}),ne[7]||(ne[7]=I("span",null,"查看大图",-1))])]),I("div",c$t,[I("h1",d$t,Ne(h.value.vod_name),1),I("div",f$t,[h.value.type_name?(z(),Ze(Se,{key:0,color:"blue"},{default:fe(()=>[He(Ne(h.value.type_name),1)]),_:1})):Ie("",!0),h.value.vod_year?(z(),Ze(Se,{key:1,color:"green"},{default:fe(()=>[He(Ne(h.value.vod_year),1)]),_:1})):Ie("",!0),h.value.vod_area?(z(),Ze(Se,{key:2,color:"orange"},{default:fe(()=>[He(Ne(h.value.vod_area),1)]),_:1})):Ie("",!0)]),I("div",h$t,[h.value.vod_director?(z(),X("div",p$t,[ne[8]||(ne[8]=I("span",{class:"label"},"导演:",-1)),I("span",v$t,Ne(h.value.vod_director),1)])):Ie("",!0),h.value.vod_actor?(z(),X("div",m$t,[ne[9]||(ne[9]=I("span",{class:"label"},"演员:",-1)),I("span",g$t,Ne(h.value.vod_actor),1)])):Ie("",!0),h.value.vod_remarks?(z(),X("div",y$t,[ne[10]||(ne[10]=I("span",{class:"label"},"备注:",-1)),I("span",b$t,Ne(h.value.vod_remarks),1)])):Ie("",!0)])]),I("div",_$t,[Oe.value?(z(),X("div",S$t,[$(ee,{type:"primary",size:"large",onClick:wr,class:"play-btn"},{icon:fe(()=>[Rt.value.icon==="icon-play-arrow"?(z(),Ze(rt(ha),{key:0})):Rt.value.icon==="icon-book"?(z(),Ze(rt(c_),{key:1})):Rt.value.icon==="icon-image"?(z(),Ze(rt(lA),{key:2})):Rt.value.icon==="icon-sound"?(z(),Ze(rt(Uve),{key:3})):Ie("",!0)]),default:fe(()=>[He(" "+Ne(Rt.value.text),1)]),_:1}),$(ee,{onClick:bn,class:"copy-btn",size:"large"},{icon:fe(()=>[$(rt(nA))]),default:fe(()=>[ne[11]||(ne[11]=He(" 复制链接 ",-1))]),_:1})])):Ie("",!0),wt.value?(z(),X("div",k$t,[$(ee,{onClick:kr,class:"download-btn",type:"primary",status:"success",size:"large"},{icon:fe(()=>[$(rt(Ph))]),default:fe(()=>[ne[12]||(ne[12]=He(" 下载小说 ",-1))]),_:1})])):Ie("",!0)])]),h.value.vod_content?(z(),X("div",x$t,[ne[13]||(ne[13]=I("h3",null,"剧情简介",-1)),I("div",{class:de(["description-content",{expanded:g.value}])},Ne(h.value.vod_content),3),h.value.vod_content.length>200?(z(),Ze(ee,{key:0,type:"text",onClick:We,class:"expand-btn"},{default:fe(()=>[He(Ne(g.value?"收起":"展开"),1)]),_:1})):Ie("",!0)])):Ie("",!0)]),_:1},8,["class"]),$(dRt,{"video-detail":h.value,"current-route":y.value,"current-episode":S.value,onRouteChange:$e,onEpisodeChange:An},null,8,["video-detail","current-route","current-episode"])])):Ie("",!0),Ai((z(),X("div",C$t,[(z(!0),X(Pt,null,cn(Ge.value,(nt,ot)=>(z(),X("img",{key:ot,src:nt.src,alt:nt.name,"data-source":nt.src,title:nt.name},null,8,w$t))),128))])),[[Ae,tt.value],[es,!1]]),$(ep,{visible:Q.value,title:se.value.title,width:400,onClose:ne[1]||(ne[1]=nt=>Q.value=!1)},{footer:fe(()=>[I("div",B$t,[$(ee,{type:"primary",onClick:ne[0]||(ne[0]=nt=>Q.value=!1),disabled:ae.value},{default:fe(()=>[...ne[16]||(ne[16]=[He(" 我知道了 ",-1)])]),_:1},8,["disabled"])])]),default:fe(()=>[I("div",E$t,[I("div",T$t,Ne(se.value.message),1),re.value.length>0?(z(),X("div",A$t,[ne[14]||(ne[14]=I("div",{class:"results-title"},"嗅探到的视频链接:",-1)),I("div",I$t,[(z(!0),X(Pt,null,cn(re.value.slice(0,3),(nt,ot)=>(z(),X("div",{key:ot,class:"result-item"},[I("div",L$t,Ne(ot+1),1),I("div",D$t,[I("div",P$t,Ne(nt.url),1),nt.type?(z(),X("div",R$t,Ne(nt.type),1)):Ie("",!0)])]))),128)),re.value.length>3?(z(),X("div",M$t," 还有 "+Ne(re.value.length-3)+" 个链接... ",1)):Ie("",!0)])])):Ie("",!0),ae.value?Ie("",!0):(z(),X("div",$$t,[I("div",O$t,[$(rt(x0))]),ne[15]||(ne[15]=I("div",{class:"hint-text"}," 敬请期待后续版本支持! ",-1))]))])]),_:1},8,["visible","title"]),$(q9t,{visible:K.value,"novel-detail":h.value,chapters:me.value,"source-name":x.value?.name||"",onClose:ne[2]||(ne[2]=nt=>K.value=!1),onConfirm:zr},null,8,["visible","novel-detail","chapters","source-name"])])}}},F$t=cr(N$t,[["__scopeId","data-v-9b86bd37"]]);var uj={exports:{}},_ce;function j$t(){return _ce||(_ce=1,(function(e,t){(function(n,r){e.exports=r()})(window,(function(){return(function(n){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(a,s,l){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:l})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var c in a)i.d(l,c,(function(d){return a[d]}).bind(null,c));return l},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=20)})([function(n,r,i){var a=i(9),s=i.n(a),l=(function(){function c(){}return c.e=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","error",p),c.ENABLE_ERROR&&(console.error?console.error(p):console.warn?console.warn(p):console.log(p))},c.i=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","info",p),c.ENABLE_INFO&&(console.info?console.info(p):console.log(p))},c.w=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","warn",p),c.ENABLE_WARN&&(console.warn?console.warn(p):console.log(p))},c.d=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","debug",p),c.ENABLE_DEBUG&&(console.debug?console.debug(p):console.log(p))},c.v=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","verbose",p),c.ENABLE_VERBOSE&&console.log(p)},c})();l.GLOBAL_TAG="mpegts.js",l.FORCE_GLOBAL_TAG=!1,l.ENABLE_ERROR=!0,l.ENABLE_INFO=!0,l.ENABLE_WARN=!0,l.ENABLE_DEBUG=!0,l.ENABLE_VERBOSE=!0,l.ENABLE_CALLBACK=!1,l.emitter=new s.a,r.a=l},function(n,r,i){var a;(function(s){s.IO_ERROR="io_error",s.DEMUX_ERROR="demux_error",s.INIT_SEGMENT="init_segment",s.MEDIA_SEGMENT="media_segment",s.LOADING_COMPLETE="loading_complete",s.RECOVERED_EARLY_EOF="recovered_early_eof",s.MEDIA_INFO="media_info",s.METADATA_ARRIVED="metadata_arrived",s.SCRIPTDATA_ARRIVED="scriptdata_arrived",s.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",s.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",s.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",s.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",s.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",s.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",s.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",s.STATISTICS_INFO="statistics_info",s.RECOMMEND_SEEKPOINT="recommend_seekpoint"})(a||(a={})),r.a=a},function(n,r,i){i.d(r,"c",(function(){return s})),i.d(r,"b",(function(){return l})),i.d(r,"a",(function(){return c}));var a=i(3),s={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},l={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},c=(function(){function d(h){this._type=h||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return d.prototype.destroy=function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null},d.prototype.isWorking=function(){return this._status===s.kConnecting||this._status===s.kBuffering},Object.defineProperty(d.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"needStashBuffer",{get:function(){return this._needStash},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onContentLengthKnown",{get:function(){return this._onContentLengthKnown},set:function(h){this._onContentLengthKnown=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onURLRedirect",{get:function(){return this._onURLRedirect},set:function(h){this._onURLRedirect=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(h){this._onDataArrival=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onError",{get:function(){return this._onError},set:function(h){this._onError=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onComplete",{get:function(){return this._onComplete},set:function(h){this._onComplete=h},enumerable:!1,configurable:!0}),d.prototype.open=function(h,p){throw new a.c("Unimplemented abstract function!")},d.prototype.abort=function(){throw new a.c("Unimplemented abstract function!")},d})()},function(n,r,i){i.d(r,"d",(function(){return l})),i.d(r,"a",(function(){return c})),i.d(r,"b",(function(){return d})),i.d(r,"c",(function(){return h}));var a,s=(a=function(p,v){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(g[S]=y[S])})(p,v)},function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function g(){this.constructor=p}a(p,v),p.prototype=v===null?Object.create(v):(g.prototype=v.prototype,new g)}),l=(function(){function p(v){this._message=v}return Object.defineProperty(p.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),p.prototype.toString=function(){return this.name+": "+this.message},p})(),c=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),v})(l),d=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),v})(l),h=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),v})(l)},function(n,r,i){var a;(function(s){s.ERROR="error",s.LOADING_COMPLETE="loading_complete",s.RECOVERED_EARLY_EOF="recovered_early_eof",s.MEDIA_INFO="media_info",s.METADATA_ARRIVED="metadata_arrived",s.SCRIPTDATA_ARRIVED="scriptdata_arrived",s.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",s.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",s.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",s.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",s.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",s.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",s.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",s.STATISTICS_INFO="statistics_info",s.DESTROYING="destroying"})(a||(a={})),r.a=a},function(n,r,i){var a={};(function(){var s=self.navigator.userAgent.toLowerCase(),l=/(edge)\/([\w.]+)/.exec(s)||/(opr)[\/]([\w.]+)/.exec(s)||/(chrome)[ \/]([\w.]+)/.exec(s)||/(iemobile)[\/]([\w.]+)/.exec(s)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+)/.exec(s)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(s)||/(msie) ([\w.]+)/.exec(s)||s.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(s)||s.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(s)||[],c=/(ipad)/.exec(s)||/(ipod)/.exec(s)||/(windows phone)/.exec(s)||/(iphone)/.exec(s)||/(kindle)/.exec(s)||/(android)/.exec(s)||/(windows)/.exec(s)||/(mac)/.exec(s)||/(linux)/.exec(s)||/(cros)/.exec(s)||[],d={browser:l[5]||l[3]||l[1]||"",version:l[2]||l[4]||"0",majorVersion:l[4]||l[2]||"0",platform:c[0]||""},h={};if(d.browser){h[d.browser]=!0;var p=d.majorVersion.split(".");h.version={major:parseInt(d.majorVersion,10),string:d.version},p.length>1&&(h.version.minor=parseInt(p[1],10)),p.length>2&&(h.version.build=parseInt(p[2],10))}d.platform&&(h[d.platform]=!0),(h.chrome||h.opr||h.safari)&&(h.webkit=!0),(h.rv||h.iemobile)&&(h.rv&&delete h.rv,d.browser="msie",h.msie=!0),h.edge&&(delete h.edge,d.browser="msedge",h.msedge=!0),h.opr&&(d.browser="opera",h.opera=!0),h.safari&&h.android&&(d.browser="android",h.android=!0);for(var v in h.name=d.browser,h.platform=d.platform,a)a.hasOwnProperty(v)&&delete a[v];Object.assign(a,h)})(),r.a=a},function(n,r,i){r.a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},function(n,r,i){var a;(function(s){s.ERROR="error",s.SOURCE_OPEN="source_open",s.UPDATE_END="update_end",s.BUFFER_FULL="buffer_full",s.START_STREAMING="start_streaming",s.END_STREAMING="end_streaming"})(a||(a={})),r.a=a},function(n,r,i){var a=i(9),s=i.n(a),l=i(0),c=(function(){function d(){}return Object.defineProperty(d,"forceGlobalTag",{get:function(){return l.a.FORCE_GLOBAL_TAG},set:function(h){l.a.FORCE_GLOBAL_TAG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"globalTag",{get:function(){return l.a.GLOBAL_TAG},set:function(h){l.a.GLOBAL_TAG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableAll",{get:function(){return l.a.ENABLE_VERBOSE&&l.a.ENABLE_DEBUG&&l.a.ENABLE_INFO&&l.a.ENABLE_WARN&&l.a.ENABLE_ERROR},set:function(h){l.a.ENABLE_VERBOSE=h,l.a.ENABLE_DEBUG=h,l.a.ENABLE_INFO=h,l.a.ENABLE_WARN=h,l.a.ENABLE_ERROR=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableDebug",{get:function(){return l.a.ENABLE_DEBUG},set:function(h){l.a.ENABLE_DEBUG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableVerbose",{get:function(){return l.a.ENABLE_VERBOSE},set:function(h){l.a.ENABLE_VERBOSE=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableInfo",{get:function(){return l.a.ENABLE_INFO},set:function(h){l.a.ENABLE_INFO=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableWarn",{get:function(){return l.a.ENABLE_WARN},set:function(h){l.a.ENABLE_WARN=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableError",{get:function(){return l.a.ENABLE_ERROR},set:function(h){l.a.ENABLE_ERROR=h,d._notifyChange()},enumerable:!1,configurable:!0}),d.getConfig=function(){return{globalTag:l.a.GLOBAL_TAG,forceGlobalTag:l.a.FORCE_GLOBAL_TAG,enableVerbose:l.a.ENABLE_VERBOSE,enableDebug:l.a.ENABLE_DEBUG,enableInfo:l.a.ENABLE_INFO,enableWarn:l.a.ENABLE_WARN,enableError:l.a.ENABLE_ERROR,enableCallback:l.a.ENABLE_CALLBACK}},d.applyConfig=function(h){l.a.GLOBAL_TAG=h.globalTag,l.a.FORCE_GLOBAL_TAG=h.forceGlobalTag,l.a.ENABLE_VERBOSE=h.enableVerbose,l.a.ENABLE_DEBUG=h.enableDebug,l.a.ENABLE_INFO=h.enableInfo,l.a.ENABLE_WARN=h.enableWarn,l.a.ENABLE_ERROR=h.enableError,l.a.ENABLE_CALLBACK=h.enableCallback},d._notifyChange=function(){var h=d.emitter;if(h.listenerCount("change")>0){var p=d.getConfig();h.emit("change",p)}},d.registerListener=function(h){d.emitter.addListener("change",h)},d.removeListener=function(h){d.emitter.removeListener("change",h)},d.addLogListener=function(h){l.a.emitter.addListener("log",h),l.a.emitter.listenerCount("log")>0&&(l.a.ENABLE_CALLBACK=!0,d._notifyChange())},d.removeLogListener=function(h){l.a.emitter.removeListener("log",h),l.a.emitter.listenerCount("log")===0&&(l.a.ENABLE_CALLBACK=!1,d._notifyChange())},d})();c.emitter=new s.a,r.a=c},function(n,r,i){var a,s=typeof Reflect=="object"?Reflect:null,l=s&&typeof s.apply=="function"?s.apply:function(_,T,D){return Function.prototype.apply.call(_,T,D)};a=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var c=Number.isNaN||function(_){return _!=_};function d(){d.init.call(this)}n.exports=d,n.exports.once=function(_,T){return new Promise((function(D,P){function M(L){_.removeListener(T,O),P(L)}function O(){typeof _.removeListener=="function"&&_.removeListener("error",M),D([].slice.call(arguments))}E(_,T,O,{once:!0}),T!=="error"&&(function(L,B,j){typeof L.on=="function"&&E(L,"error",B,j)})(_,M,{once:!0})}))},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var h=10;function p(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}function v(_){return _._maxListeners===void 0?d.defaultMaxListeners:_._maxListeners}function g(_,T,D,P){var M,O,L,B;if(p(D),(O=_._events)===void 0?(O=_._events=Object.create(null),_._eventsCount=0):(O.newListener!==void 0&&(_.emit("newListener",T,D.listener?D.listener:D),O=_._events),L=O[T]),L===void 0)L=O[T]=D,++_._eventsCount;else if(typeof L=="function"?L=O[T]=P?[D,L]:[L,D]:P?L.unshift(D):L.push(D),(M=v(_))>0&&L.length>M&&!L.warned){L.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=_,j.type=T,j.count=L.length,B=j,console&&console.warn&&console.warn(B)}return _}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(_,T,D){var P={fired:!1,wrapFn:void 0,target:_,type:T,listener:D},M=y.bind(P);return M.listener=D,P.wrapFn=M,M}function k(_,T,D){var P=_._events;if(P===void 0)return[];var M=P[T];return M===void 0?[]:typeof M=="function"?D?[M.listener||M]:[M]:D?(function(O){for(var L=new Array(O.length),B=0;B0&&(O=T[0]),O instanceof Error)throw O;var L=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw L.context=O,L}var B=M[_];if(B===void 0)return!1;if(typeof B=="function")l(B,this,T);else{var j=B.length,H=x(B,j);for(D=0;D=0;O--)if(D[O]===T||D[O].listener===T){L=D[O].listener,M=O;break}if(M<0)return this;M===0?D.shift():(function(B,j){for(;j+1=0;P--)this.removeListener(_,T[P]);return this},d.prototype.listeners=function(_){return k(this,_,!0)},d.prototype.rawListeners=function(_){return k(this,_,!1)},d.listenerCount=function(_,T){return typeof _.listenerCount=="function"?_.listenerCount(T):C.call(_,T)},d.prototype.listenerCount=C,d.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},function(n,r,i){i.d(r,"b",(function(){return l})),i.d(r,"a",(function(){return c}));var a=i(2),s=i(6),l={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},c={NETWORK_EXCEPTION:a.b.EXCEPTION,NETWORK_STATUS_CODE_INVALID:a.b.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:a.b.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:a.b.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:s.a.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:s.a.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:s.a.CODEC_UNSUPPORTED}},function(n,r,i){i.d(r,"d",(function(){return a})),i.d(r,"b",(function(){return s})),i.d(r,"a",(function(){return l})),i.d(r,"c",(function(){return c}));var a=function(d,h,p,v,g){this.dts=d,this.pts=h,this.duration=p,this.originalDts=v,this.isSyncPoint=g,this.fileposition=null},s=(function(){function d(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return d.prototype.appendSyncPoint=function(h){h.isSyncPoint=!0,this.syncPoints.push(h)},d})(),l=(function(){function d(){this._list=[]}return d.prototype.clear=function(){this._list=[]},d.prototype.appendArray=function(h){var p=this._list;h.length!==0&&(p.length>0&&h[0].originalDts=p[y].dts&&hp[g].lastSample.originalDts&&h=p[g].lastSample.originalDts&&(g===p.length-1||g0&&(y=this._searchNearestSegmentBefore(v.originalBeginDts)+1),this._lastAppendLocation=y,this._list.splice(y,0,v)},d.prototype.getLastSegmentBefore=function(h){var p=this._searchNearestSegmentBefore(h);return p>=0?this._list[p]:null},d.prototype.getLastSampleBefore=function(h){var p=this.getLastSegmentBefore(h);return p!=null?p.lastSample:null},d.prototype.getLastSyncPointBefore=function(h){for(var p=this._searchNearestSegmentBefore(h),v=this._list[p].syncPoints;v.length===0&&p>0;)p--,v=this._list[p].syncPoints;return v.length>0?v[v.length-1]:null},d})()},function(n,r,i){var a=(function(){function s(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return s.prototype.isComplete=function(){var l=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,c=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&l&&c},s.prototype.isSeekable=function(){return this.hasKeyframesIndex===!0},s.prototype.getNearestKeyframe=function(l){if(this.keyframesIndex==null)return null;var c=this.keyframesIndex,d=this._search(c.times,l);return{index:d,milliseconds:c.times[d],fileposition:c.filepositions[d]}},s.prototype._search=function(l,c){var d=0,h=l.length-1,p=0,v=0,g=h;for(c=l[p]&&c=128){ne.push(String.fromCharCode(65535&Se)),J+=2;continue}}else if(ee[J]<240){if(h(ee,J,2)&&(Se=(15&ee[J])<<12|(63&ee[J+1])<<6|63&ee[J+2])>=2048&&(63488&Se)!=55296){ne.push(String.fromCharCode(65535&Se)),J+=3;continue}}else if(ee[J]<248){var Se;if(h(ee,J,3)&&(Se=(7&ee[J])<<18|(63&ee[J+1])<<12|(63&ee[J+2])<<6|63&ee[J+3])>65536&&Se<1114112){Se-=65536,ne.push(String.fromCharCode(Se>>>10|55296)),ne.push(String.fromCharCode(1023&Se|56320)),J+=4;continue}}}ne.push("�"),++J}return ne.join("")},g=i(3),y=(p=new ArrayBuffer(2),new DataView(p).setInt16(0,256,!0),new Int16Array(p)[0]===256),S=(function(){function oe(){}return oe.parseScriptData=function(ne,ee,J){var ce={};try{var Se=oe.parseValue(ne,ee,J),ke=oe.parseValue(ne,ee+Se.size,J-Se.size);ce[Se.data]=ke.data}catch(Ae){l.a.e("AMF",Ae.toString())}return ce},oe.parseObject=function(ne,ee,J){if(J<3)throw new g.a("Data not enough when parse ScriptDataObject");var ce=oe.parseString(ne,ee,J),Se=oe.parseValue(ne,ee+ce.size,J-ce.size),ke=Se.objectEnd;return{data:{name:ce.data,value:Se.data},size:ce.size+Se.size,objectEnd:ke}},oe.parseVariable=function(ne,ee,J){return oe.parseObject(ne,ee,J)},oe.parseString=function(ne,ee,J){if(J<2)throw new g.a("Data not enough when parse String");var ce=new DataView(ne,ee,J).getUint16(0,!y);return{data:ce>0?v(new Uint8Array(ne,ee+2,ce)):"",size:2+ce}},oe.parseLongString=function(ne,ee,J){if(J<4)throw new g.a("Data not enough when parse LongString");var ce=new DataView(ne,ee,J).getUint32(0,!y);return{data:ce>0?v(new Uint8Array(ne,ee+4,ce)):"",size:4+ce}},oe.parseDate=function(ne,ee,J){if(J<10)throw new g.a("Data size invalid when parse Date");var ce=new DataView(ne,ee,J),Se=ce.getFloat64(0,!y),ke=ce.getInt16(8,!y);return{data:new Date(Se+=60*ke*1e3),size:10}},oe.parseValue=function(ne,ee,J){if(J<1)throw new g.a("Data not enough when parse Value");var ce,Se=new DataView(ne,ee,J),ke=1,Ae=Se.getUint8(0),nt=!1;try{switch(Ae){case 0:ce=Se.getFloat64(1,!y),ke+=8;break;case 1:ce=!!Se.getUint8(1),ke+=1;break;case 2:var ot=oe.parseString(ne,ee+1,J-1);ce=ot.data,ke+=ot.size;break;case 3:ce={};var gt=0;for((16777215&Se.getUint32(J-4,!y))==9&&(gt=3);ke32)throw new g.b("ExpGolomb: readBits() bits exceeded max 32bits!");if(ne<=this._current_word_bits_left){var ee=this._current_word>>>32-ne;return this._current_word<<=ne,this._current_word_bits_left-=ne,ee}var J=this._current_word_bits_left?this._current_word:0;J>>>=32-this._current_word_bits_left;var ce=ne-this._current_word_bits_left;this._fillCurrentWord();var Se=Math.min(ce,this._current_word_bits_left),ke=this._current_word>>>32-Se;return this._current_word<<=Se,this._current_word_bits_left-=Se,J=J<>>ne)!=0)return this._current_word<<=ne,this._current_word_bits_left-=ne,ne;return this._fillCurrentWord(),ne+this._skipLeadingZero()},oe.prototype.readUEG=function(){var ne=this._skipLeadingZero();return this.readBits(ne+1)-1},oe.prototype.readSEG=function(){var ne=this.readUEG();return 1&ne?ne+1>>>1:-1*(ne>>>1)},oe})(),C=(function(){function oe(){}return oe._ebsp2rbsp=function(ne){for(var ee=ne,J=ee.byteLength,ce=new Uint8Array(J),Se=0,ke=0;ke=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.parseSPS=function(ne){for(var ee=ne.subarray(1,4),J="avc1.",ce=0;ce<3;ce++){var Se=ee[ce].toString(16);Se.length<2&&(Se="0"+Se),J+=Se}var ke=oe._ebsp2rbsp(ne),Ae=new k(ke);Ae.readByte();var nt=Ae.readByte();Ae.readByte();var ot=Ae.readByte();Ae.readUEG();var gt=oe.getProfileString(nt),De=oe.getLevelString(ot),st=1,ut=420,Mt=8,Qt=8;if((nt===100||nt===110||nt===122||nt===244||nt===44||nt===83||nt===86||nt===118||nt===128||nt===138||nt===144)&&((st=Ae.readUEG())===3&&Ae.readBits(1),st<=3&&(ut=[0,420,422,444][st]),Mt=Ae.readUEG()+8,Qt=Ae.readUEG()+8,Ae.readBits(1),Ae.readBool()))for(var Gt=st!==3?8:12,pn=0;pn0&&wn<16?(vr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][wn-1],hr=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][wn-1]):wn===255&&(vr=Ae.readByte()<<8|Ae.readByte(),hr=Ae.readByte()<<8|Ae.readByte())}if(Ae.readBool()&&Ae.readBool(),Ae.readBool()&&(Ae.readBits(4),Ae.readBool()&&Ae.readBits(24)),Ae.readBool()&&(Ae.readUEG(),Ae.readUEG()),Ae.readBool()){var Yr=Ae.readBits(32),ws=Ae.readBits(32);yi=Ae.readBool(),Kr=(li=ws)/(La=2*Yr)}}var Fo=1;vr===1&&hr===1||(Fo=vr/hr);var Go=0,ui=0;st===0?(Go=1,ui=2-Yn):(Go=st===3?1:2,ui=(st===1?2:1)*(2-Yn));var tu=16*(tr+1),Ll=16*(_n+1)*(2-Yn);tu-=(fr+ir)*Go,Ll-=(Ln+or)*ui;var jo=Math.ceil(tu*Fo);return Ae.destroy(),Ae=null,{codec_mimetype:J,profile_idc:nt,level_idc:ot,profile_string:gt,level_string:De,chroma_format_idc:st,bit_depth:Mt,bit_depth_luma:Mt,bit_depth_chroma:Qt,ref_frames:dr,chroma_format:ut,chroma_format_string:oe.getChromaFormatString(ut),frame_rate:{fixed:yi,fps:Kr,fps_den:La,fps_num:li},sar_ratio:{width:vr,height:hr},codec_size:{width:tu,height:Ll},present_size:{width:jo,height:Ll}}},oe._skipScalingList=function(ne,ee){for(var J=8,ce=8,Se=0;Se=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.parseVPS=function(ne){var ee=oe._ebsp2rbsp(ne),J=new k(ee);return J.readByte(),J.readByte(),J.readBits(4),J.readBits(2),J.readBits(6),{num_temporal_layers:J.readBits(3)+1,temporal_id_nested:J.readBool()}},oe.parseSPS=function(ne){var ee=oe._ebsp2rbsp(ne),J=new k(ee);J.readByte(),J.readByte();for(var ce=0,Se=0,ke=0,Ae=0,nt=(J.readBits(4),J.readBits(3)),ot=(J.readBool(),J.readBits(2)),gt=J.readBool(),De=J.readBits(5),st=J.readByte(),ut=J.readByte(),Mt=J.readByte(),Qt=J.readByte(),Gt=J.readByte(),pn=J.readByte(),mn=J.readByte(),ln=J.readByte(),dr=J.readByte(),tr=J.readByte(),_n=J.readByte(),Yn=[],fr=[],ir=0;ir0)for(ir=nt;ir<8;ir++)J.readBits(2);for(ir=0;ir1&&J.readSEG(),ir=0;ir0&&sd<=16?(nu=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][sd-1],pc=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][sd-1]):sd===255&&(nu=J.readBits(16),pc=J.readBits(16))}if(J.readBool()&&J.readBool(),J.readBool()&&(J.readBits(3),J.readBool(),J.readBool()&&(J.readByte(),J.readByte(),J.readByte())),J.readBool()&&(J.readUEG(),J.readUEG()),J.readBool(),J.readBool(),J.readBool(),J.readBool()&&(J.readUEG(),J.readUEG(),J.readUEG(),J.readUEG()),J.readBool()&&(Ns=J.readBits(32),Of=J.readBits(32),J.readBool()&&J.readUEG(),J.readBool())){var jd=!1,Ou=!1,nl=!1;for(jd=J.readBool(),Ou=J.readBool(),(jd||Ou)&&((nl=J.readBool())&&(J.readByte(),J.readBits(5),J.readBool(),J.readBits(5)),J.readBits(4),J.readBits(4),nl&&J.readBits(4),J.readBits(5),J.readBits(5),J.readBits(5)),ir=0;ir<=nt;ir++){var Es=J.readBool();np=Es;var rp=!0,vc=1;Es||(rp=J.readBool());var mc=!1;if(rp?J.readUEG():mc=J.readBool(),mc||(vc=J.readUEG()+1),jd){for(ui=0;ui>3),ke=(4&ne[J])!=0,Ae=(2&ne[J])!=0;ne[J],J+=1,ke&&(J+=1);var nt=Number.POSITIVE_INFINITY;if(Ae){nt=0;for(var ot=0;;ot++){var gt=ne[J++];if(nt|=(127>)<<7*ot,(128>)==0)break}}console.log(Se),Se===1?ee=M(M({},oe.parseSeuqneceHeader(ne.subarray(J,J+nt))),{sequence_header_data:ne.subarray(ce,J+nt)}):(Se==3&&ee||Se==6&&ee)&&(ee=oe.parseOBUFrameHeader(ne.subarray(J,J+nt),0,0,ee)),J+=nt}return ee},oe.parseSeuqneceHeader=function(ne){var ee=new k(ne),J=ee.readBits(3),ce=(ee.readBool(),ee.readBool()),Se=!0,ke=0,Ae=1,nt=void 0,ot=[];if(ce)ot.push({operating_point_idc:0,level:ee.readBits(5),tier:0});else{if(ee.readBool()){var gt=ee.readBits(32),De=ee.readBits(32),st=ee.readBool();if(st){for(var ut=0;ee.readBits(1)===0;)ut+=1;ut>=32||(1<7?ee.readBits(1):0;ot.push({operating_point_idc:pn,level:mn,tier:ln}),Mt&&ee.readBool()&&ee.readBits(4)}}var dr=ot[0],tr=dr.level,_n=dr.tier,Yn=ee.readBits(4),fr=ee.readBits(4),ir=ee.readBits(Yn+1)+1,Ln=ee.readBits(fr+1)+1,or=!1;ce||(or=ee.readBool()),or&&(ee.readBits(4),ee.readBits(4)),ee.readBool(),ee.readBool(),ee.readBool();var vr=!1,hr=2,Kr=2,yi=0;ce||(ee.readBool(),ee.readBool(),ee.readBool(),ee.readBool(),(vr=ee.readBool())&&(ee.readBool(),ee.readBool()),(hr=ee.readBool()?2:ee.readBits(1))?Kr=ee.readBool()?2:ee.readBits(1):Kr=2,vr?yi=ee.readBits(3)+1:yi=0);var li=ee.readBool(),La=(ee.readBool(),ee.readBool(),ee.readBool()),wn=8;J===2&&La?wn=ee.readBool()?12:10:wn=La?10:8;var Yr=!1;J!==1&&(Yr=ee.readBool()),ee.readBool()&&(ee.readBits(8),ee.readBits(8),ee.readBits(8));var ws=1,Fo=1;return Yr?(ee.readBits(1),ws=1,Fo=1):(ee.readBits(1),J==0?(ws=1,Fo=1):J==1?(ws=0,Fo=0):wn==12?ee.readBits(1)&&ee.readBits(1):(ws=1,Fo=0),ws&&Fo&&ee.readBits(2),ee.readBits(1)),ee.readBool(),ee.destroy(),ee=null,{codec_mimetype:"av01.".concat(J,".").concat(oe.getLevelString(tr,_n),".").concat(wn.toString(10).padStart(2,"0")),level:tr,tier:_n,level_string:oe.getLevelString(tr,_n),profile_idc:J,profile_string:"".concat(J),bit_depth:wn,ref_frames:1,chroma_format:oe.getChromaFormat(Yr,ws,Fo),chroma_format_string:oe.getChromaFormatString(Yr,ws,Fo),sequence_header:{frame_id_numbers_present_flag:or,additional_frame_id_length_minus_1:void 0,delta_frame_id_length_minus_2:void 0,reduced_still_picture_header:ce,decoder_model_info_present_flag:!1,operating_points:ot,buffer_removal_time_length_minus_1:nt,equal_picture_interval:Se,seq_force_screen_content_tools:hr,seq_force_integer_mv:Kr,enable_order_hint:vr,order_hint_bits:yi,enable_superres:li,frame_width_bit:Yn+1,frame_height_bit:fr+1,max_frame_width:ir,max_frame_height:Ln},keyframe:void 0,frame_rate:{fixed:Se,fps:ke/Ae,fps_den:Ae,fps_num:ke}}},oe.parseOBUFrameHeader=function(ne,ee,J,ce){var Se=ce.sequence_header,ke=new k(ne),Ae=(Se.max_frame_width,Se.max_frame_height,0);Se.frame_id_numbers_present_flag&&(Ae=Se.additional_frame_id_length_minus_1+Se.delta_frame_id_length_minus_2+3);var nt=0,ot=!0,gt=!0,De=!1;if(!Se.reduced_still_picture_header){if(ke.readBool())return ce;ot=(nt=ke.readBits(2))===2||nt===0,(gt=ke.readBool())&&Se.decoder_model_info_present_flag&&Se.equal_picture_interval,gt&&ke.readBool(),De=!!(nt===3||nt===0&>)||ke.readBool()}ce.keyframe=ot,ke.readBool();var st=Se.seq_force_screen_content_tools;Se.seq_force_screen_content_tools===2&&(st=ke.readBits(1)),st&&(Se.seq_force_integer_mv,Se.seq_force_integer_mv==2&&ke.readBits(1)),Se.frame_id_numbers_present_flag&&ke.readBits(Ae);var ut=!1;if(ut=nt==3||!Se.reduced_still_picture_header&&ke.readBool(),ke.readBits(Se.order_hint_bits),ot||De||ke.readBits(3),Se.decoder_model_info_present_flag&&ke.readBool()){for(var Mt=0;Mt<=Se.operating_points_cnt_minus_1;Mt++)if(Se.operating_points[Mt].decoder_model_present_for_this_op[Mt]){var Qt=Se.operating_points[Mt].operating_point_idc;(Qt===0||Qt>>ee&1&&Qt>>J+8&1)&&ke.readBits(Se.buffer_removal_time_length_minus_1+1)}}var Gt=255;if(nt===3||nt==0&>||(Gt=ke.readBits(8)),(ot||Gt!==255)&&De&&Se.enable_order_hint)for(var pn=0;pn<8;pn++)ke.readBits(Se.order_hint_bits);if(ot){var mn=oe.frameSizeAndRenderSize(ke,ut,Se);ce.codec_size={width:mn.FrameWidth,height:mn.FrameHeight},ce.present_size={width:mn.RenderWidth,height:mn.RenderHeight},ce.sar_ratio={width:mn.RenderWidth/mn.FrameWidth,height:mn.RenderHeight/mn.FrameHeight}}return ke.destroy(),ke=null,ce},oe.frameSizeAndRenderSize=function(ne,ee,J){var ce=J.max_frame_width,Se=J.max_frame_height;ee&&(ce=ne.readBits(J.frame_width_bit)+1,Se=ne.readBits(J.frame_height_bit)+1);var ke=!1;J.enable_superres&&(ke=ne.readBool());var Ae=8;ke&&(Ae=ne.readBits(3)+9);var nt=ce;ce=Math.floor((8*nt+Ae/2)/Ae);var ot=nt,gt=Se;if(ne.readBool()){var De=ne.readBits(16)+1,st=ne.readBits(16)+1;ot=ne.readBits(De)+1,gt=ne.readBits(st)+1}return{UpscaledWidth:nt,FrameWidth:ce,FrameHeight:Se,RenderWidth:ot,RenderHeight:gt}},oe.getLevelString=function(ne,ee){return"".concat(ne.toString(10).padStart(2,"0")).concat(ee===0?"M":"H")},oe.getChromaFormat=function(ne,ee,J){return ne?0:ee===0&&J===0?3:ee===1&&J===0?2:ee===1&&J===1?1:Number.NaN},oe.getChromaFormatString=function(ne,ee,J){return ne?"4:0:0":ee===0&&J===0?"4:4:4":ee===1&&J===0?"4:2:2":ee===1&&J===1?"4:2:0":"Unknown"},oe})(),L,B=(function(){function oe(ne,ee){this.TAG="FLVDemuxer",this._config=ee,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ne.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ne.hasAudioTrack,this._hasVideo=ne.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new d.a,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var J=new ArrayBuffer(2);return new DataView(J).setInt16(0,256,!0),new Int16Array(J)[0]===256})()}return oe.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},oe.probe=function(ne){var ee=new Uint8Array(ne);if(ee.byteLength<9)return{needMoreData:!0};var J={match:!1};if(ee[0]!==70||ee[1]!==76||ee[2]!==86||ee[3]!==1)return J;var ce,Se,ke=(4&ee[4])>>>2!=0,Ae=(1&ee[4])!=0,nt=(ce=ee)[Se=5]<<24|ce[Se+1]<<16|ce[Se+2]<<8|ce[Se+3];return nt<9?J:{match:!0,consumed:nt,dataOffset:nt,hasAudioTrack:ke,hasVideoTrack:Ae}},oe.prototype.bindDataSource=function(ne){return ne.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(oe.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(ne){this._onTrackMetadata=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(ne){this._onMediaInfo=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(ne){this._onMetaDataArrived=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(ne){this._onScriptDataArrived=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onError",{get:function(){return this._onError},set:function(ne){this._onError=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(ne){this._onDataAvailable=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(ne){this._timestampBase=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedDuration",{get:function(){return this._duration},set:function(ne){this._durationOverrided=!0,this._duration=ne,this._mediaInfo.duration=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedHasAudio",{set:function(ne){this._hasAudioFlagOverrided=!0,this._hasAudio=ne,this._mediaInfo.hasAudio=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedHasVideo",{set:function(ne){this._hasVideoFlagOverrided=!0,this._hasVideo=ne,this._mediaInfo.hasVideo=ne},enumerable:!1,configurable:!0}),oe.prototype.resetMediaInfo=function(){this._mediaInfo=new d.a},oe.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},oe.prototype.parseChunks=function(ne,ee){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new g.a("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var J=0,ce=this._littleEndian;if(ee===0){if(!(ne.byteLength>13))return 0;J=oe.probe(ne).dataOffset}for(this._firstParse&&(this._firstParse=!1,ee+J!==this._dataOffset&&l.a.w(this.TAG,"First time parsing but chunk byteStart invalid!"),(Se=new DataView(ne,J)).getUint32(0,!ce)!==0&&l.a.w(this.TAG,"PrevTagSize0 !== 0 !!!"),J+=4);Jne.byteLength)break;var ke=Se.getUint8(0),Ae=16777215&Se.getUint32(0,!ce);if(J+11+Ae+4>ne.byteLength)break;if(ke===8||ke===9||ke===18){var nt=Se.getUint8(4),ot=Se.getUint8(5),gt=Se.getUint8(6)|ot<<8|nt<<16|Se.getUint8(7)<<24;(16777215&Se.getUint32(7,!ce))!==0&&l.a.w(this.TAG,"Meet tag which has StreamID != 0!");var De=J+11;switch(ke){case 8:this._parseAudioData(ne,De,Ae,gt);break;case 9:this._parseVideoData(ne,De,Ae,gt,ee+J);break;case 18:this._parseScriptData(ne,De,Ae)}var st=Se.getUint32(11+Ae,!ce);st!==11+Ae&&l.a.w(this.TAG,"Invalid PrevTagSize ".concat(st)),J+=11+Ae+4}else l.a.w(this.TAG,"Unsupported tag type ".concat(ke,", skipped")),J+=11+Ae+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),J},oe.prototype._parseScriptData=function(ne,ee,J){var ce=S.parseScriptData(ne,ee,J);if(ce.hasOwnProperty("onMetaData")){if(ce.onMetaData==null||typeof ce.onMetaData!="object")return void l.a.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&l.a.w(this.TAG,"Found another onMetaData tag!"),this._metadata=ce;var Se=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Se)),typeof Se.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Se.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Se.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Se.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Se.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Se.audiodatarate),typeof Se.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Se.videodatarate),typeof Se.width=="number"&&(this._mediaInfo.width=Se.width),typeof Se.height=="number"&&(this._mediaInfo.height=Se.height),typeof Se.duration=="number"){if(!this._durationOverrided){var ke=Math.floor(Se.duration*this._timescale);this._duration=ke,this._mediaInfo.duration=ke}}else this._mediaInfo.duration=0;if(typeof Se.framerate=="number"){var Ae=Math.floor(1e3*Se.framerate);if(Ae>0){var nt=Ae/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=nt,this._referenceFrameRate.fps_num=Ae,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=nt}}if(typeof Se.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var ot=Se.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(ot),Se.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Se,l.a.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(ce).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},ce))},oe.prototype._parseKeyframesIndex=function(ne){for(var ee=[],J=[],ce=1;ce>>4;if(ke!==9)if(ke===2||ke===10){var Ae=0,nt=(12&Se)>>>2;if(nt>=0&&nt<=4){Ae=this._flvSoundRateTable[nt];var ot=1&Se,gt=this._audioMetadata,De=this._audioTrack;if(gt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(gt=this._audioMetadata={}).type="audio",gt.id=De.id,gt.timescale=this._timescale,gt.duration=this._duration,gt.audioSampleRate=Ae,gt.channelCount=ot===0?1:2),ke===10){var st=this._parseAACAudioData(ne,ee+1,J-1);if(st==null)return;if(st.packetType===0){if(gt.config){if(P(st.data.config,gt.config))return;l.a.w(this.TAG,"AudioSpecificConfig has been changed, re-generate initialization segment")}var ut=st.data;gt.audioSampleRate=ut.samplingRate,gt.channelCount=ut.channelCount,gt.codec=ut.codec,gt.originalCodec=ut.originalCodec,gt.config=ut.config,gt.refSampleDuration=1024/gt.audioSampleRate*gt.timescale,l.a.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",gt),(Gt=this._mediaInfo).audioCodec=gt.originalCodec,Gt.audioSampleRate=gt.audioSampleRate,Gt.audioChannelCount=gt.channelCount,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)}else if(st.packetType===1){var Mt=this._timestampBase+ce,Qt={unit:st.data,length:st.data.byteLength,dts:Mt,pts:Mt};De.samples.push(Qt),De.length+=st.data.length}else l.a.e(this.TAG,"Flv: Unsupported AAC data type ".concat(st.packetType))}else if(ke===2){if(!gt.codec){var Gt;if((ut=this._parseMP3AudioData(ne,ee+1,J-1,!0))==null)return;gt.audioSampleRate=ut.samplingRate,gt.channelCount=ut.channelCount,gt.codec=ut.codec,gt.originalCodec=ut.originalCodec,gt.refSampleDuration=1152/gt.audioSampleRate*gt.timescale,l.a.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",gt),(Gt=this._mediaInfo).audioCodec=gt.codec,Gt.audioSampleRate=gt.audioSampleRate,Gt.audioChannelCount=gt.channelCount,Gt.audioDataRate=ut.bitRate,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)}var pn=this._parseMP3AudioData(ne,ee+1,J-1,!1);if(pn==null)return;Mt=this._timestampBase+ce;var mn={unit:pn,length:pn.byteLength,dts:Mt,pts:Mt};De.samples.push(mn),De.length+=pn.length}}else this._onError(x.a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+nt)}else this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+ke);else{if(J<=5)return void l.a.w(this.TAG,"Flv: Invalid audio packet, missing AudioFourCC in Ehnanced FLV payload!");var ln=15&Se,dr=String.fromCharCode.apply(String,new Uint8Array(ne,ee,J).slice(1,5));switch(dr){case"Opus":this._parseOpusAudioPacket(ne,ee+5,J-5,ce,ln);break;case"fLaC":this._parseFlacAudioPacket(ne,ee+5,J-5,ce,ln);break;default:this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec: "+dr)}}}},oe.prototype._parseAACAudioData=function(ne,ee,J){if(!(J<=1)){var ce={},Se=new Uint8Array(ne,ee,J);return ce.packetType=Se[0],Se[0]===0?ce.data=this._parseAACAudioSpecificConfig(ne,ee+1,J-1):ce.data=Se.subarray(1),ce}l.a.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},oe.prototype._parseAACAudioSpecificConfig=function(ne,ee,J){var ce,Se,ke=new Uint8Array(ne,ee,J),Ae=null,nt=0,ot=null;if(nt=ce=ke[0]>>>3,(Se=(7&ke[0])<<1|ke[1]>>>7)<0||Se>=this._mpegSamplingRates.length)this._onError(x.a.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var gt=this._mpegSamplingRates[Se],De=(120&ke[1])>>>3;if(!(De<0||De>=8)){nt===5&&(ot=(7&ke[1])<<1|ke[2]>>>7,(124&ke[2])>>>2);var st=self.navigator.userAgent.toLowerCase();return st.indexOf("firefox")!==-1?Se>=6?(nt=5,Ae=new Array(4),ot=Se-3):(nt=2,Ae=new Array(2),ot=Se):st.indexOf("android")!==-1?(nt=2,Ae=new Array(2),ot=Se):(nt=5,ot=Se,Ae=new Array(4),Se>=6?ot=Se-3:De===1&&(nt=2,Ae=new Array(2),ot=Se)),Ae[0]=nt<<3,Ae[0]|=(15&Se)>>>1,Ae[1]=(15&Se)<<7,Ae[1]|=(15&De)<<3,nt===5&&(Ae[1]|=(15&ot)>>>1,Ae[2]=(1&ot)<<7,Ae[2]|=8,Ae[3]=0),{config:Ae,samplingRate:gt,channelCount:De,codec:"mp4a.40."+nt,originalCodec:"mp4a.40."+ce}}this._onError(x.a.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},oe.prototype._parseMP3AudioData=function(ne,ee,J,ce){if(!(J<4)){this._littleEndian;var Se=new Uint8Array(ne,ee,J),ke=null;if(ce){if(Se[0]!==255)return;var Ae=Se[1]>>>3&3,nt=(6&Se[1])>>1,ot=(240&Se[2])>>>4,gt=(12&Se[2])>>>2,De=(Se[3]>>>6&3)!==3?2:1,st=0,ut=0;switch(Ae){case 0:st=this._mpegAudioV25SampleRateTable[gt];break;case 2:st=this._mpegAudioV20SampleRateTable[gt];break;case 3:st=this._mpegAudioV10SampleRateTable[gt]}switch(nt){case 1:ot>>16&255,Mt[2]=ke.byteLength>>>8&255,Mt[3]=ke.byteLength>>>0&255;var Qt={config:Mt,channelCount:st,samplingFrequence:De,sampleSize:ut,codec:"flac",originalCodec:"flac"};if(ce.config){if(P(Qt.config,ce.config))return;l.a.w(this.TAG,"FlacSequenceHeader has been changed, re-generate initialization segment")}ce.audioSampleRate=Qt.samplingFrequence,ce.channelCount=Qt.channelCount,ce.sampleSize=Qt.sampleSize,ce.codec=Qt.codec,ce.originalCodec=Qt.originalCodec,ce.config=Qt.config,ce.refSampleDuration=gt!=null?1e3*gt/Qt.samplingFrequence:null,l.a.v(this.TAG,"Parsed FlacSequenceHeader"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",ce);var Gt=this._mediaInfo;Gt.audioCodec=ce.originalCodec,Gt.audioSampleRate=ce.audioSampleRate,Gt.audioChannelCount=ce.channelCount,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)},oe.prototype._parseFlacAudioData=function(ne,ee,J,ce){var Se=this._audioTrack,ke=new Uint8Array(ne,ee,J),Ae=this._timestampBase+ce,nt={unit:ke,length:ke.byteLength,dts:Ae,pts:Ae};Se.samples.push(nt),Se.length+=ke.length},oe.prototype._parseVideoData=function(ne,ee,J,ce,Se){if(J<=1)l.a.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(this._hasVideoFlagOverrided!==!0||this._hasVideo!==!1){var ke=new Uint8Array(ne,ee,J)[0],Ae=(112&ke)>>>4;if((128&ke)!=0){var nt=15&ke,ot=String.fromCharCode.apply(String,new Uint8Array(ne,ee,J).slice(1,5));if(ot==="hvc1")this._parseEnhancedHEVCVideoPacket(ne,ee+5,J-5,ce,Se,Ae,nt);else{if(ot!=="av01")return void this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(ot));this._parseEnhancedAV1VideoPacket(ne,ee+5,J-5,ce,Se,Ae,nt)}}else{var gt=15&ke;if(gt===7)this._parseAVCVideoPacket(ne,ee+1,J-1,ce,Se,Ae);else{if(gt!==12)return void this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(gt));this._parseHEVCVideoPacket(ne,ee+1,J-1,ce,Se,Ae)}}}},oe.prototype._parseAVCVideoPacket=function(ne,ee,J,ce,Se,ke){if(J<4)l.a.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var Ae=this._littleEndian,nt=new DataView(ne,ee,J),ot=nt.getUint8(0),gt=(16777215&nt.getUint32(0,!Ae))<<8>>8;if(ot===0)this._parseAVCDecoderConfigurationRecord(ne,ee+4,J-4);else if(ot===1)this._parseAVCVideoData(ne,ee+4,J-4,ce,Se,ke,gt);else if(ot!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ot))}},oe.prototype._parseHEVCVideoPacket=function(ne,ee,J,ce,Se,ke){if(J<4)l.a.w(this.TAG,"Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");else{var Ae=this._littleEndian,nt=new DataView(ne,ee,J),ot=nt.getUint8(0),gt=(16777215&nt.getUint32(0,!Ae))<<8>>8;if(ot===0)this._parseHEVCDecoderConfigurationRecord(ne,ee+4,J-4);else if(ot===1)this._parseHEVCVideoData(ne,ee+4,J-4,ce,Se,ke,gt);else if(ot!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ot))}},oe.prototype._parseEnhancedHEVCVideoPacket=function(ne,ee,J,ce,Se,ke,Ae){var nt=this._littleEndian,ot=new DataView(ne,ee,J);if(Ae===0)this._parseHEVCDecoderConfigurationRecord(ne,ee,J);else if(Ae===1){var gt=(4294967040&ot.getUint32(0,!nt))>>8;this._parseHEVCVideoData(ne,ee+3,J-3,ce,Se,ke,gt)}else if(Ae===3)this._parseHEVCVideoData(ne,ee,J,ce,Se,ke,0);else if(Ae!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Ae))},oe.prototype._parseEnhancedAV1VideoPacket=function(ne,ee,J,ce,Se,ke,Ae){if(this._littleEndian,Ae===0)this._parseAV1CodecConfigurationRecord(ne,ee,J);else if(Ae===1)this._parseAV1VideoData(ne,ee,J,ce,Se,ke,0);else{if(Ae===5)return void this._onError(x.a.FORMAT_ERROR,"Flv: Not Supported MP2T AV1 video packet type ".concat(Ae));if(Ae!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Ae))}},oe.prototype._parseAVCDecoderConfigurationRecord=function(ne,ee,J){if(J<7)l.a.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var ce=this._videoMetadata,Se=this._videoTrack,ke=this._littleEndian,Ae=new DataView(ne,ee,J);if(ce){if(ce.avcc!==void 0){var nt=new Uint8Array(ne,ee,J);if(P(nt,ce.avcc))return;l.a.w(this.TAG,"AVCDecoderConfigurationRecord has been changed, re-generate initialization segment")}}else this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(ce=this._videoMetadata={}).type="video",ce.id=Se.id,ce.timescale=this._timescale,ce.duration=this._duration;var ot=Ae.getUint8(0),gt=Ae.getUint8(1);if(Ae.getUint8(2),Ae.getUint8(3),ot===1&>!==0)if(this._naluLengthSize=1+(3&Ae.getUint8(4)),this._naluLengthSize===3||this._naluLengthSize===4){var De=31&Ae.getUint8(5);if(De!==0){De>1&&l.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(De));for(var st=6,ut=0;ut1&&l.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(fr)),st++,ut=0;ut=J){l.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(Mt,", offset = ").concat(st,", dataSize = ").concat(J));break}var Gt=ot.getUint32(st,!nt);if(ut===3&&(Gt>>>=8),Gt>J-ut)return void l.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(Mt,", NaluSize > DataSize!"));var pn=31&ot.getUint8(st+ut);pn===5&&(Qt=!0);var mn=new Uint8Array(ne,ee+st,ut+Gt),ln={type:pn,data:mn};gt.push(ln),De+=mn.byteLength,st+=ut+Gt}if(gt.length){var dr=this._videoTrack,tr={units:gt,length:De,isKeyframe:Qt,dts:Mt,cts:Ae,pts:Mt+Ae};Qt&&(tr.fileposition=Se),dr.samples.push(tr),dr.length+=De}},oe.prototype._parseHEVCVideoData=function(ne,ee,J,ce,Se,ke,Ae){for(var nt=this._littleEndian,ot=new DataView(ne,ee,J),gt=[],De=0,st=0,ut=this._naluLengthSize,Mt=this._timestampBase+ce,Qt=ke===1;st=J){l.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(Mt,", offset = ").concat(st,", dataSize = ").concat(J));break}var Gt=ot.getUint32(st,!nt);if(ut===3&&(Gt>>>=8),Gt>J-ut)return void l.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(Mt,", NaluSize > DataSize!"));var pn=ot.getUint8(st+ut)>>1&63;pn!==19&&pn!==20&&pn!==21||(Qt=!0);var mn=new Uint8Array(ne,ee+st,ut+Gt),ln={type:pn,data:mn};gt.push(ln),De+=mn.byteLength,st+=ut+Gt}if(gt.length){var dr=this._videoTrack,tr={units:gt,length:De,isKeyframe:Qt,dts:Mt,cts:Ae,pts:Mt+Ae};Qt&&(tr.fileposition=Se),dr.samples.push(tr),dr.length+=De}},oe.prototype._parseAV1VideoData=function(ne,ee,J,ce,Se,ke,Ae){this._littleEndian;var nt,ot=[],gt=this._timestampBase+ce,De=ke===1;if(De){var st=this._videoMetadata,ut=O.parseOBUs(new Uint8Array(ne,ee,J),st.extra);if(ut==null)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid AV1 VideoData");console.log(ut),st.codecWidth=ut.codec_size.width,st.codecHeight=ut.codec_size.height,st.presentWidth=ut.present_size.width,st.presentHeight=ut.present_size.height,st.sarRatio=ut.sar_ratio;var Mt=this._mediaInfo;Mt.width=st.codecWidth,Mt.height=st.codecHeight,Mt.sarNum=st.sarRatio.width,Mt.sarDen=st.sarRatio.height,l.a.v(this.TAG,"Parsed AV1DecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",st)}if(nt=J,ot.push({unitType:0,data:new Uint8Array(ne,ee+0,J)}),ot.length){var Qt=this._videoTrack,Gt={units:ot,length:nt,isKeyframe:De,dts:gt,cts:Ae,pts:gt+Ae};De&&(Gt.fileposition=Se),Qt.samples.push(Gt),Qt.length+=nt}},oe})(),j=(function(){function oe(){}return oe.prototype.destroy=function(){this.onError=null,this.onMediaInfo=null,this.onMetaDataArrived=null,this.onTrackMetadata=null,this.onDataAvailable=null,this.onTimedID3Metadata=null,this.onSynchronousKLVMetadata=null,this.onAsynchronousKLVMetadata=null,this.onSMPTE2038Metadata=null,this.onSCTE35Metadata=null,this.onPESPrivateData=null,this.onPESPrivateDataDescriptor=null},oe})(),H=function(){this.program_pmt_pid={}};(function(oe){oe[oe.kMPEG1Audio=3]="kMPEG1Audio",oe[oe.kMPEG2Audio=4]="kMPEG2Audio",oe[oe.kPESPrivateData=6]="kPESPrivateData",oe[oe.kADTSAAC=15]="kADTSAAC",oe[oe.kLOASAAC=17]="kLOASAAC",oe[oe.kAC3=129]="kAC3",oe[oe.kEAC3=135]="kEAC3",oe[oe.kMetadata=21]="kMetadata",oe[oe.kSCTE35=134]="kSCTE35",oe[oe.kH264=27]="kH264",oe[oe.kH265=36]="kH265"})(L||(L={}));var U,K=function(){this.pid_stream_type={},this.common_pids={h264:void 0,h265:void 0,av1:void 0,adts_aac:void 0,loas_aac:void 0,opus:void 0,ac3:void 0,eac3:void 0,mp3:void 0},this.pes_private_data_pids={},this.timed_id3_pids={},this.synchronous_klv_pids={},this.asynchronous_klv_pids={},this.scte_35_pids={},this.smpte2038_pids={}},Y=function(){},ie=function(){},te=function(){this.slices=[],this.total_length=0,this.expected_length=0,this.file_position=0};(function(oe){oe[oe.kUnspecified=0]="kUnspecified",oe[oe.kSliceNonIDR=1]="kSliceNonIDR",oe[oe.kSliceDPA=2]="kSliceDPA",oe[oe.kSliceDPB=3]="kSliceDPB",oe[oe.kSliceDPC=4]="kSliceDPC",oe[oe.kSliceIDR=5]="kSliceIDR",oe[oe.kSliceSEI=6]="kSliceSEI",oe[oe.kSliceSPS=7]="kSliceSPS",oe[oe.kSlicePPS=8]="kSlicePPS",oe[oe.kSliceAUD=9]="kSliceAUD",oe[oe.kEndOfSequence=10]="kEndOfSequence",oe[oe.kEndOfStream=11]="kEndOfStream",oe[oe.kFiller=12]="kFiller",oe[oe.kSPSExt=13]="kSPSExt",oe[oe.kReserved0=14]="kReserved0"})(U||(U={}));var W,q,Q=function(){},se=function(oe){var ne=oe.data.byteLength;this.type=oe.type,this.data=new Uint8Array(4+ne),new DataView(this.data.buffer).setUint32(0,ne),this.data.set(oe.data,4)},ae=(function(){function oe(ne){this.TAG="H264AnnexBParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=ne,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not find H264 startcode until payload end!")}return oe.prototype.findNextStartCodeOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+3>=J.byteLength)return this.eof_flag_=!0,J.byteLength;var ce=J[ee+0]<<24|J[ee+1]<<16|J[ee+2]<<8|J[ee+3],Se=J[ee+0]<<16|J[ee+1]<<8|J[ee+2];if(ce===1||Se===1)return ee;ee++}},oe.prototype.readNextNaluPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_,ce=31&ne[J+=(ne[J]<<24|ne[J+1]<<16|ne[J+2]<<8|ne[J+3])===1?4:3],Se=(128&ne[J])>>>7,ke=this.findNextStartCodeOffset(J);if(this.current_startcode_offset_=ke,!(ce>=U.kReserved0)&&Se===0){var Ae=ne.subarray(J,ke);(ee=new Q).type=ce,ee.data=Ae}}return ee},oe})(),re=(function(){function oe(ne,ee,J){var ce=8+ne.byteLength+1+2+ee.byteLength,Se=!1;ne[3]!==66&&ne[3]!==77&&ne[3]!==88&&(Se=!0,ce+=4);var ke=this.data=new Uint8Array(ce);ke[0]=1,ke[1]=ne[1],ke[2]=ne[2],ke[3]=ne[3],ke[4]=255,ke[5]=225;var Ae=ne.byteLength;ke[6]=Ae>>>8,ke[7]=255&Ae;var nt=8;ke.set(ne,8),ke[nt+=Ae]=1;var ot=ee.byteLength;ke[nt+1]=ot>>>8,ke[nt+2]=255&ot,ke.set(ee,nt+3),nt+=3+ot,Se&&(ke[nt]=252|J.chroma_format_idc,ke[nt+1]=248|J.bit_depth_luma-8,ke[nt+2]=248|J.bit_depth_chroma-8,ke[nt+3]=0,nt+=4)}return oe.prototype.getData=function(){return this.data},oe})();(function(oe){oe[oe.kNull=0]="kNull",oe[oe.kAACMain=1]="kAACMain",oe[oe.kAAC_LC=2]="kAAC_LC",oe[oe.kAAC_SSR=3]="kAAC_SSR",oe[oe.kAAC_LTP=4]="kAAC_LTP",oe[oe.kAAC_SBR=5]="kAAC_SBR",oe[oe.kAAC_Scalable=6]="kAAC_Scalable",oe[oe.kLayer1=32]="kLayer1",oe[oe.kLayer2=33]="kLayer2",oe[oe.kLayer3=34]="kLayer3"})(W||(W={})),(function(oe){oe[oe.k96000Hz=0]="k96000Hz",oe[oe.k88200Hz=1]="k88200Hz",oe[oe.k64000Hz=2]="k64000Hz",oe[oe.k48000Hz=3]="k48000Hz",oe[oe.k44100Hz=4]="k44100Hz",oe[oe.k32000Hz=5]="k32000Hz",oe[oe.k24000Hz=6]="k24000Hz",oe[oe.k22050Hz=7]="k22050Hz",oe[oe.k16000Hz=8]="k16000Hz",oe[oe.k12000Hz=9]="k12000Hz",oe[oe.k11025Hz=10]="k11025Hz",oe[oe.k8000Hz=11]="k8000Hz",oe[oe.k7350Hz=12]="k7350Hz"})(q||(q={}));var Ce,Ve,ge=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],xe=(Ce=function(oe,ne){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,J){ee.__proto__=J}||function(ee,J){for(var ce in J)Object.prototype.hasOwnProperty.call(J,ce)&&(ee[ce]=J[ce])})(oe,ne)},function(oe,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function ee(){this.constructor=oe}Ce(oe,ne),oe.prototype=ne===null?Object.create(ne):(ee.prototype=ne.prototype,new ee)}),Ge=function(){},tt=(function(oe){function ne(){return oe!==null&&oe.apply(this,arguments)||this}return xe(ne,oe),ne})(Ge),Ue=(function(){function oe(ne){this.TAG="AACADTSParser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found ADTS syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1])>>>4===4095)return ee;ee++}},oe.prototype.readNextAACFrame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=(8&ne[J+1])>>>3,Se=(6&ne[J+1])>>>1,ke=1&ne[J+1],Ae=(192&ne[J+2])>>>6,nt=(60&ne[J+2])>>>2,ot=(1&ne[J+2])<<2|(192&ne[J+3])>>>6,gt=(3&ne[J+3])<<11|ne[J+4]<<3|(224&ne[J+5])>>>5;if(ne[J+6],J+gt>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var De=ke===1?7:9,st=gt-De;J+=De;var ut=this.findNextSyncwordOffset(J+st);if(this.current_syncword_offset_=ut,(ce===0||ce===1)&&Se===0){var Mt=ne.subarray(J,J+st);(ee=new Ge).audio_object_type=Ae+1,ee.sampling_freq_index=nt,ee.sampling_frequency=ge[nt],ee.channel_config=ot,ee.data=Mt}}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),_e=(function(){function oe(ne){this.TAG="AACLOASParser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found LOAS syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+1>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<3|J[ee+1]>>>5)===695)return ee;ee++}},oe.prototype.getLATMValue=function(ne){for(var ee=ne.readBits(2),J=0,ce=0;ce<=ee;ce++)J<<=8,J|=ne.readByte();return J},oe.prototype.readNextAACFrame=function(ne){for(var ee=this.data_,J=null;J==null&&!this.eof_flag_;){var ce=this.current_syncword_offset_,Se=(31&ee[ce+1])<<8|ee[ce+2];if(ce+3+Se>=this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var ke=new k(ee.subarray(ce+3,ce+3+Se)),Ae=null;if(ke.readBool()){if(ne==null){l.a.w(this.TAG,"StreamMuxConfig Missing"),this.current_syncword_offset_=this.findNextSyncwordOffset(ce+3+Se),ke.destroy();continue}Ae=ne}else{var nt=ke.readBool();if(nt&&ke.readBool()){l.a.e(this.TAG,"audioMuxVersionA is Not Supported"),ke.destroy();break}if(nt&&this.getLATMValue(ke),!ke.readBool()){l.a.e(this.TAG,"allStreamsSameTimeFraming zero is Not Supported"),ke.destroy();break}if(ke.readBits(6)!==0){l.a.e(this.TAG,"more than 2 numSubFrames Not Supported"),ke.destroy();break}if(ke.readBits(4)!==0){l.a.e(this.TAG,"more than 2 numProgram Not Supported"),ke.destroy();break}if(ke.readBits(3)!==0){l.a.e(this.TAG,"more than 2 numLayer Not Supported"),ke.destroy();break}var ot=nt?this.getLATMValue(ke):0,gt=ke.readBits(5);ot-=5;var De=ke.readBits(4);ot-=4;var st=ke.readBits(4);ot-=4,ke.readBits(3),(ot-=3)>0&&ke.readBits(ot);var ut=ke.readBits(3);if(ut!==0){l.a.e(this.TAG,"frameLengthType = ".concat(ut,". Only frameLengthType = 0 Supported")),ke.destroy();break}ke.readByte();var Mt=ke.readBool();if(Mt)if(nt)this.getLATMValue(ke);else{for(var Qt=0;;){Qt<<=8;var Gt=ke.readBool();if(Qt+=ke.readByte(),!Gt)break}console.log(Qt)}ke.readBool()&&ke.readByte(),(Ae=new tt).audio_object_type=gt,Ae.sampling_freq_index=De,Ae.sampling_frequency=ge[Ae.sampling_freq_index],Ae.channel_config=st,Ae.other_data_present=Mt}for(var pn=0;;){var mn=ke.readByte();if(pn+=mn,mn!==255)break}for(var ln=new Uint8Array(pn),dr=0;dr=6?(J=5,ne=new Array(4),ke=ce-3):(J=2,ne=new Array(2),ke=ce):Ae.indexOf("android")!==-1?(J=2,ne=new Array(2),ke=ce):(J=5,ke=ce,ne=new Array(4),ce>=6?ke=ce-3:Se===1&&(J=2,ne=new Array(2),ke=ce)),ne[0]=J<<3,ne[0]|=(15&ce)>>>1,ne[1]=(15&ce)<<7,ne[1]|=(15&Se)<<3,J===5&&(ne[1]|=(15&ke)>>>1,ne[2]=(1&ke)<<7,ne[2]|=8,ne[3]=0),this.config=ne,this.sampling_rate=ge[ce],this.channel_count=Se,this.codec_mimetype="mp4a.40."+J,this.original_codec_mimetype="mp4a.40."+ee},me=function(){},Oe=function(){};(function(oe){oe[oe.kSpliceNull=0]="kSpliceNull",oe[oe.kSpliceSchedule=4]="kSpliceSchedule",oe[oe.kSpliceInsert=5]="kSpliceInsert",oe[oe.kTimeSignal=6]="kTimeSignal",oe[oe.kBandwidthReservation=7]="kBandwidthReservation",oe[oe.kPrivateCommand=255]="kPrivateCommand"})(Ve||(Ve={}));var qe,Ke=function(oe){var ne=oe.readBool();return ne?(oe.readBits(6),{time_specified_flag:ne,pts_time:4*oe.readBits(31)+oe.readBits(2)}):(oe.readBits(7),{time_specified_flag:ne})},at=function(oe){var ne=oe.readBool();return oe.readBits(6),{auto_return:ne,duration:4*oe.readBits(31)+oe.readBits(2)}},ft=function(oe,ne){var ee=ne.readBits(8);return oe?{component_tag:ee}:{component_tag:ee,splice_time:Ke(ne)}},ct=function(oe){return{component_tag:oe.readBits(8),utc_splice_time:oe.readBits(32)}},wt=function(oe){var ne=oe.readBits(32),ee=oe.readBool();oe.readBits(7);var J={splice_event_id:ne,splice_event_cancel_indicator:ee};if(ee)return J;if(J.out_of_network_indicator=oe.readBool(),J.program_splice_flag=oe.readBool(),J.duration_flag=oe.readBool(),oe.readBits(5),J.program_splice_flag)J.utc_splice_time=oe.readBits(32);else{J.component_count=oe.readBits(8),J.components=[];for(var ce=0;ce=J.byteLength)return this.eof_flag_=!0,J.byteLength;var ce=J[ee+0]<<24|J[ee+1]<<16|J[ee+2]<<8|J[ee+3],Se=J[ee+0]<<16|J[ee+1]<<8|J[ee+2];if(ce===1||Se===1)return ee;ee++}},oe.prototype.readNextNaluPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_,ce=ne[J+=(ne[J]<<24|ne[J+1]<<16|ne[J+2]<<8|ne[J+3])===1?4:3]>>1&63,Se=(128&ne[J])>>>7,ke=this.findNextStartCodeOffset(J);if(this.current_startcode_offset_=ke,Se===0){var Ae=ne.subarray(J,ke);(ee=new Ee).type=ce,ee.data=Ae}}return ee},oe})(),dt=(function(){function oe(ne,ee,J,ce){var Se=23+(5+ne.byteLength)+(5+ee.byteLength)+(5+J.byteLength),ke=this.data=new Uint8Array(Se);ke[0]=1,ke[1]=(3&ce.general_profile_space)<<6|(ce.general_tier_flag?1:0)<<5|31&ce.general_profile_idc,ke[2]=ce.general_profile_compatibility_flags_1,ke[3]=ce.general_profile_compatibility_flags_2,ke[4]=ce.general_profile_compatibility_flags_3,ke[5]=ce.general_profile_compatibility_flags_4,ke[6]=ce.general_constraint_indicator_flags_1,ke[7]=ce.general_constraint_indicator_flags_2,ke[8]=ce.general_constraint_indicator_flags_3,ke[9]=ce.general_constraint_indicator_flags_4,ke[10]=ce.general_constraint_indicator_flags_5,ke[11]=ce.general_constraint_indicator_flags_6,ke[12]=ce.general_level_idc,ke[13]=240|(3840&ce.min_spatial_segmentation_idc)>>8,ke[14]=255&ce.min_spatial_segmentation_idc,ke[15]=252|3&ce.parallelismType,ke[16]=252|3&ce.chroma_format_idc,ke[17]=248|7&ce.bit_depth_luma_minus8,ke[18]=248|7&ce.bit_depth_chroma_minus8,ke[19]=0,ke[20]=0,ke[21]=(3&ce.constant_frame_rate)<<6|(7&ce.num_temporal_layers)<<3|(ce.temporal_id_nested?1:0)<<2|3,ke[22]=3,ke[23]=128|qe.kSliceVPS,ke[24]=0,ke[25]=1,ke[26]=(65280&ne.byteLength)>>8,ke[27]=(255&ne.byteLength)>>0,ke.set(ne,28),ke[23+(5+ne.byteLength)+0]=128|qe.kSliceSPS,ke[23+(5+ne.byteLength)+1]=0,ke[23+(5+ne.byteLength)+2]=1,ke[23+(5+ne.byteLength)+3]=(65280&ee.byteLength)>>8,ke[23+(5+ne.byteLength)+4]=(255&ee.byteLength)>>0,ke.set(ee,23+(5+ne.byteLength)+5),ke[23+(5+ne.byteLength+5+ee.byteLength)+0]=128|qe.kSlicePPS,ke[23+(5+ne.byteLength+5+ee.byteLength)+1]=0,ke[23+(5+ne.byteLength+5+ee.byteLength)+2]=1,ke[23+(5+ne.byteLength+5+ee.byteLength)+3]=(65280&J.byteLength)>>8,ke[23+(5+ne.byteLength+5+ee.byteLength)+4]=(255&J.byteLength)>>0,ke.set(J,23+(5+ne.byteLength+5+ee.byteLength)+5)}return oe.prototype.getData=function(){return this.data},oe})(),Qe=function(){},Le=function(){},ht=function(){},Vt=[[64,64,80,80,96,96,112,112,128,128,160,160,192,192,224,224,256,256,320,320,384,384,448,448,512,512,640,640,768,768,896,896,1024,1024,1152,1152,1280,1280],[69,70,87,88,104,105,121,122,139,140,174,175,208,209,243,244,278,279,348,349,417,418,487,488,557,558,696,697,835,836,975,976,1114,1115,1253,1254,1393,1394],[96,96,120,120,144,144,168,168,192,192,240,240,288,288,336,336,384,384,480,480,576,576,672,672,768,768,960,960,1152,1152,1344,1344,1536,1536,1728,1728,1920,1920]],Ut=(function(){function oe(ne){this.TAG="AC3Parser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found AC3 syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1]<<0)===2935)return ee;ee++}},oe.prototype.readNextAC3Frame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=ne[J+4]>>6,Se=[48e3,44200,33e3][ce],ke=63&ne[J+4],Ae=2*Vt[ce][ke];if(isNaN(Ae)||J+Ae>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var nt=this.findNextSyncwordOffset(J+Ae);this.current_syncword_offset_=nt;var ot=ne[J+5]>>3,gt=7&ne[J+5],De=ne[J+6]>>5,st=0;(1&De)!=0&&De!==1&&(st+=2),(4&De)!=0&&(st+=2),De===2&&(st+=2);var ut=(ne[J+6]<<8|ne[J+7]<<0)>>12-st&1,Mt=[2,1,2,3,3,4,4,5][De]+ut;(ee=new ht).sampling_frequency=Se,ee.channel_count=Mt,ee.channel_mode=De,ee.bit_stream_identification=ot,ee.low_frequency_effects_channel_on=ut,ee.bit_stream_mode=gt,ee.frame_size_code=ke,ee.data=ne.subarray(J,J+Ae)}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),Lt=function(oe){var ne;ne=[oe.sampling_rate_code<<6|oe.bit_stream_identification<<1|oe.bit_stream_mode>>2,(3&oe.bit_stream_mode)<<6|oe.channel_mode<<3|oe.low_frequency_effects_channel_on<<2|oe.frame_size_code>>4,oe.frame_size_code<<4&224],this.config=ne,this.sampling_rate=oe.sampling_frequency,this.bit_stream_identification=oe.bit_stream_identification,this.bit_stream_mode=oe.bit_stream_mode,this.low_frequency_effects_channel_on=oe.low_frequency_effects_channel_on,this.channel_count=oe.channel_count,this.channel_mode=oe.channel_mode,this.codec_mimetype="ac-3",this.original_codec_mimetype="ac-3"},Xt=function(){},Dn=(function(){function oe(ne){this.TAG="EAC3Parser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found AC3 syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1]<<0)===2935)return ee;ee++}},oe.prototype.readNextEAC3Frame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=new k(ne.subarray(J+2)),Se=(ce.readBits(2),ce.readBits(3),ce.readBits(11)+1<<1),ke=ce.readBits(2),Ae=null,nt=null;ke===3?(Ae=[24e3,22060,16e3][ke=ce.readBits(2)],nt=3):(Ae=[48e3,44100,32e3][ke],nt=ce.readBits(2));var ot=ce.readBits(3),gt=ce.readBits(1),De=ce.readBits(5);if(J+Se>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var st=this.findNextSyncwordOffset(J+Se);this.current_syncword_offset_=st;var ut=[2,1,2,3,3,4,4,5][ot]+gt;ce.destroy(),(ee=new Xt).sampling_frequency=Ae,ee.channel_count=ut,ee.channel_mode=ot,ee.bit_stream_identification=De,ee.low_frequency_effects_channel_on=gt,ee.frame_size=Se,ee.num_blks=[1,2,3,6][nt],ee.data=ne.subarray(J,J+Se)}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),rr=function(oe){var ne,ee=Math.floor(oe.frame_size*oe.sampling_frequency/(16*oe.num_blks));ne=[255&ee,248&ee,oe.sampling_rate_code<<6|oe.bit_stream_identification<<1|0,0|oe.channel_mode<<1|oe.low_frequency_effects_channel_on<<0,0],this.config=ne,this.sampling_rate=oe.sampling_frequency,this.bit_stream_identification=oe.bit_stream_identification,this.num_blks=oe.num_blks,this.low_frequency_effects_channel_on=oe.low_frequency_effects_channel_on,this.channel_count=oe.channel_count,this.channel_mode=oe.channel_mode,this.codec_mimetype="ec-3",this.original_codec_mimetype="ec-3"},qr=function(){},Wt=(function(){function oe(ne){this.TAG="AV1OBUInMpegTsParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=ne,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not find AV1 startcode until payload end!")}return oe._ebsp2rbsp=function(ne){for(var ee=ne,J=ee.byteLength,ce=new Uint8Array(J),Se=0,ke=0;ke=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.prototype.findNextStartCodeOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+2>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<16|J[ee+1]<<8|J[ee+2])===1)return ee;ee++}},oe.prototype.readNextOBUPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_+3,ce=this.findNextStartCodeOffset(J);this.current_startcode_offset_=ce,ee=oe._ebsp2rbsp(ne.subarray(J,ce))}return ee},oe})(),Yt=(function(){var oe=function(ne,ee){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ce){J.__proto__=ce}||function(J,ce){for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&(J[Se]=ce[Se])})(ne,ee)};return function(ne,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function J(){this.constructor=ne}oe(ne,ee),ne.prototype=ee===null?Object.create(ee):(J.prototype=ee.prototype,new J)}})(),sn=function(){return(sn=Object.assign||function(oe){for(var ne,ee=1,J=arguments.length;ee=4?(l.a.v("TSDemuxer","ts_packet_size = 192, m2ts mode"),ce-=4):Se===204&&l.a.v("TSDemuxer","ts_packet_size = 204, RS encoded MPEG2-TS stream"),{match:!0,consumed:0,ts_packet_size:Se,sync_offset:ce})},ne.prototype.bindDataSource=function(ee){return ee.onDataArrival=this.parseChunks.bind(this),this},ne.prototype.resetMediaInfo=function(){this.media_info_=new d.a},ne.prototype.parseChunks=function(ee,J){if(!(this.onError&&this.onMediaInfo&&this.onTrackMetadata&&this.onDataAvailable))throw new g.a("onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var ce=0;for(this.first_parse_&&(this.first_parse_=!1,ce=this.sync_offset_);ce+this.ts_packet_size_<=ee.byteLength;){var Se=J+ce;this.ts_packet_size_===192&&(ce+=4);var ke=new Uint8Array(ee,ce,188),Ae=ke[0];if(Ae!==71){l.a.e(this.TAG,"sync_byte = ".concat(Ae,", not 0x47"));break}var nt=(64&ke[1])>>>6,ot=(ke[1],(31&ke[1])<<8|ke[2]),gt=(48&ke[3])>>>4,De=15&ke[3],st=!(!this.pmt_||this.pmt_.pcr_pid!==ot),ut={},Mt=4;if(gt==2||gt==3){var Qt=ke[4];if(Qt>0&&(st||gt==3)&&(ut.discontinuity_indicator=(128&ke[5])>>>7,ut.random_access_indicator=(64&ke[5])>>>6,ut.elementary_stream_priority_indicator=(32&ke[5])>>>5,(16&ke[5])>>>4)){var Gt=300*this.getPcrBase(ke)+((1&ke[10])<<8|ke[11]);this.last_pcr_=Gt}if(gt==2||5+Qt===188){ce+=188,this.ts_packet_size_===204&&(ce+=16);continue}Mt=5+Qt}if(gt==1||gt==3){if(ot===0||ot===this.current_pmt_pid_||this.pmt_!=null&&this.pmt_.pid_stream_type[ot]===L.kSCTE35){var pn=188-Mt;this.handleSectionSlice(ee,ce+Mt,pn,{pid:ot,file_position:Se,payload_unit_start_indicator:nt,continuity_conunter:De,random_access_indicator:ut.random_access_indicator})}else if(this.pmt_!=null&&this.pmt_.pid_stream_type[ot]!=null){pn=188-Mt;var mn=this.pmt_.pid_stream_type[ot];ot!==this.pmt_.common_pids.h264&&ot!==this.pmt_.common_pids.h265&&ot!==this.pmt_.common_pids.av1&&ot!==this.pmt_.common_pids.adts_aac&&ot!==this.pmt_.common_pids.loas_aac&&ot!==this.pmt_.common_pids.ac3&&ot!==this.pmt_.common_pids.eac3&&ot!==this.pmt_.common_pids.opus&&ot!==this.pmt_.common_pids.mp3&&this.pmt_.pes_private_data_pids[ot]!==!0&&this.pmt_.timed_id3_pids[ot]!==!0&&this.pmt_.synchronous_klv_pids[ot]!==!0&&this.pmt_.asynchronous_klv_pids[ot]!==!0||this.handlePESSlice(ee,ce+Mt,pn,{pid:ot,stream_type:mn,file_position:Se,payload_unit_start_indicator:nt,continuity_conunter:De,random_access_indicator:ut.random_access_indicator})}}ce+=188,this.ts_packet_size_===204&&(ce+=16)}return this.dispatchAudioVideoMediaSegment(),ce},ne.prototype.handleSectionSlice=function(ee,J,ce,Se){var ke=new Uint8Array(ee,J,ce),Ae=this.section_slice_queues_[Se.pid];if(Se.payload_unit_start_indicator){var nt=ke[0];if(Ae!=null&&Ae.total_length!==0){var ot=new Uint8Array(ee,J+1,Math.min(ce,nt));Ae.slices.push(ot),Ae.total_length+=ot.byteLength,Ae.total_length===Ae.expected_length?this.emitSectionSlices(Ae,Se):this.clearSlices(Ae,Se)}for(var gt=1+nt;gt=Ae.expected_length&&this.clearSlices(Ae,Se),gt+=ot.byteLength}}else Ae!=null&&Ae.total_length!==0&&(ot=new Uint8Array(ee,J,Math.min(ce,Ae.expected_length-Ae.total_length)),Ae.slices.push(ot),Ae.total_length+=ot.byteLength,Ae.total_length===Ae.expected_length?this.emitSectionSlices(Ae,Se):Ae.total_length>=Ae.expected_length&&this.clearSlices(Ae,Se))},ne.prototype.handlePESSlice=function(ee,J,ce,Se){var ke=new Uint8Array(ee,J,ce),Ae=ke[0]<<16|ke[1]<<8|ke[2],nt=(ke[3],ke[4]<<8|ke[5]);if(Se.payload_unit_start_indicator){if(Ae!==1)return void l.a.e(this.TAG,"handlePESSlice: packet_start_code_prefix should be 1 but with value ".concat(Ae));var ot=this.pes_slice_queues_[Se.pid];ot&&(ot.expected_length===0||ot.expected_length===ot.total_length?this.emitPESSlices(ot,Se):this.clearSlices(ot,Se)),this.pes_slice_queues_[Se.pid]=new te,this.pes_slice_queues_[Se.pid].file_position=Se.file_position,this.pes_slice_queues_[Se.pid].random_access_indicator=Se.random_access_indicator}if(this.pes_slice_queues_[Se.pid]!=null){var gt=this.pes_slice_queues_[Se.pid];gt.slices.push(ke),Se.payload_unit_start_indicator&&(gt.expected_length=nt===0?0:nt+6),gt.total_length+=ke.byteLength,gt.expected_length>0&>.expected_length===gt.total_length?this.emitPESSlices(gt,Se):gt.expected_length>0&>.expected_length>>6,nt=J[8],ot=void 0,gt=void 0;Ae!==2&&Ae!==3||(ot=this.getTimestamp(J,9),gt=Ae===3?this.getTimestamp(J,14):ot);var De=9+nt,st=void 0;if(ke!==0){if(ke<3+nt)return void l.a.v(this.TAG,"Malformed PES: PES_packet_length < 3 + PES_header_data_length");st=ke-3-nt}else st=J.byteLength-De;var ut=J.subarray(De,De+st);switch(ee.stream_type){case L.kMPEG1Audio:case L.kMPEG2Audio:this.parseMP3Payload(ut,ot);break;case L.kPESPrivateData:this.pmt_.common_pids.av1===ee.pid?this.parseAV1Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator):this.pmt_.common_pids.opus===ee.pid?this.parseOpusPayload(ut,ot):this.pmt_.common_pids.ac3===ee.pid?this.parseAC3Payload(ut,ot):this.pmt_.common_pids.eac3===ee.pid?this.parseEAC3Payload(ut,ot):this.pmt_.asynchronous_klv_pids[ee.pid]?this.parseAsynchronousKLVMetadataPayload(ut,ee.pid,Se):this.pmt_.smpte2038_pids[ee.pid]?this.parseSMPTE2038MetadataPayload(ut,ot,gt,ee.pid,Se):this.parsePESPrivateDataPayload(ut,ot,gt,ee.pid,Se);break;case L.kADTSAAC:this.parseADTSAACPayload(ut,ot);break;case L.kLOASAAC:this.parseLOASAACPayload(ut,ot);break;case L.kAC3:this.parseAC3Payload(ut,ot);break;case L.kEAC3:this.parseEAC3Payload(ut,ot);break;case L.kMetadata:this.pmt_.timed_id3_pids[ee.pid]?this.parseTimedID3MetadataPayload(ut,ot,gt,ee.pid,Se):this.pmt_.synchronous_klv_pids[ee.pid]&&this.parseSynchronousKLVMetadataPayload(ut,ot,gt,ee.pid,Se);break;case L.kH264:this.parseH264Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator);break;case L.kH265:this.parseH265Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator)}}else(Se===188||Se===191||Se===240||Se===241||Se===255||Se===242||Se===248)&&ee.stream_type===L.kPESPrivateData&&(De=6,st=void 0,st=ke!==0?ke:J.byteLength-De,ut=J.subarray(De,De+st),this.parsePESPrivateDataPayload(ut,void 0,void 0,ee.pid,Se));else l.a.e(this.TAG,"parsePES: packet_start_code_prefix should be 1 but with value ".concat(ce))},ne.prototype.parsePAT=function(ee){var J=ee[0];if(J===0){var ce=(15&ee[1])<<8|ee[2],Se=(ee[3],ee[4],(62&ee[5])>>>1),ke=1&ee[5],Ae=ee[6],nt=(ee[7],null);if(ke===1&&Ae===0)(nt=new H).version_number=Se;else if((nt=this.pat_)==null)return;for(var ot=ce-5-4,gt=-1,De=-1,st=8;st<8+ot;st+=4){var ut=ee[st]<<8|ee[st+1],Mt=(31&ee[st+2])<<8|ee[st+3];ut===0?nt.network_pid=Mt:(nt.program_pmt_pid[ut]=Mt,gt===-1&&(gt=ut),De===-1&&(De=Mt))}ke===1&&Ae===0&&(this.pat_==null&&l.a.v(this.TAG,"Parsed first PAT: ".concat(JSON.stringify(nt))),this.pat_=nt,this.current_program_=gt,this.current_pmt_pid_=De)}else l.a.e(this.TAG,"parsePAT: table_id ".concat(J," is not corresponded to PAT!"))},ne.prototype.parsePMT=function(ee){var J=ee[0];if(J===2){var ce=(15&ee[1])<<8|ee[2],Se=ee[3]<<8|ee[4],ke=(62&ee[5])>>>1,Ae=1&ee[5],nt=ee[6],ot=(ee[7],null);if(Ae===1&&nt===0)(ot=new K).program_number=Se,ot.version_number=ke,this.program_pmt_map_[Se]=ot;else if((ot=this.program_pmt_map_[Se])==null)return;ot.pcr_pid=(31&ee[8])<<8|ee[9];for(var gt=(15&ee[10])<<8|ee[11],De=12+gt,st=ce-9-gt-4,ut=De;ut0){for(var ln=ut+5;ln0)for(ln=ut+5;ln1&&(l.a.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(Ae,"ms, PES pts: ").concat(ke,"ms")),ke=Ae)}}for(var nt,ot=new Ue(ee),gt=null,De=ke;(gt=ot.readNextAACFrame())!=null;){Se=1024/gt.sampling_frequency*1e3;var st={codec:"aac",data:gt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"aac",audio_object_type:gt.audio_object_type,sampling_freq_index:gt.sampling_freq_index,sampling_frequency:gt.sampling_frequency,channel_config:gt.channel_config},this.dispatchAudioInitSegment(st)):this.detectAudioMetadataChange(st)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(st)),nt=De;var ut=Math.floor(De),Mt={unit:gt.data,length:gt.data.byteLength,pts:ut,dts:ut};this.audio_track_.samples.push(Mt),this.audio_track_.length+=gt.data.byteLength,De+=Se}ot.hasIncompleteData()&&(this.aac_last_incomplete_data_=ot.getIncompleteData()),nt&&(this.audio_last_sample_pts_=nt)}},ne.prototype.parseLOASAACPayload=function(ee,J){var ce;if(!this.has_video_||this.video_init_segment_dispatched_){if(this.aac_last_incomplete_data_){var Se=new Uint8Array(ee.byteLength+this.aac_last_incomplete_data_.byteLength);Se.set(this.aac_last_incomplete_data_,0),Se.set(ee,this.aac_last_incomplete_data_.byteLength),ee=Se}var ke,Ae;if(J!=null&&(Ae=J/this.timescale_),this.audio_metadata_.codec==="aac"){if(J==null&&this.audio_last_sample_pts_!=null)ke=1024/this.audio_metadata_.sampling_frequency*1e3,Ae=this.audio_last_sample_pts_+ke;else if(J==null)return void l.a.w(this.TAG,"AAC: Unknown pts");if(this.aac_last_incomplete_data_&&this.audio_last_sample_pts_){ke=1024/this.audio_metadata_.sampling_frequency*1e3;var nt=this.audio_last_sample_pts_+ke;Math.abs(nt-Ae)>1&&(l.a.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(nt,"ms, PES pts: ").concat(Ae,"ms")),Ae=nt)}}for(var ot,gt=new _e(ee),De=null,st=Ae;(De=gt.readNextAACFrame((ce=this.loas_previous_frame)!==null&&ce!==void 0?ce:void 0))!=null;){this.loas_previous_frame=De,ke=1024/De.sampling_frequency*1e3;var ut={codec:"aac",data:De};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"aac",audio_object_type:De.audio_object_type,sampling_freq_index:De.sampling_freq_index,sampling_frequency:De.sampling_frequency,channel_config:De.channel_config},this.dispatchAudioInitSegment(ut)):this.detectAudioMetadataChange(ut)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(ut)),ot=st;var Mt=Math.floor(st),Qt={unit:De.data,length:De.data.byteLength,pts:Mt,dts:Mt};this.audio_track_.samples.push(Qt),this.audio_track_.length+=De.data.byteLength,st+=ke}gt.hasIncompleteData()&&(this.aac_last_incomplete_data_=gt.getIncompleteData()),ot&&(this.audio_last_sample_pts_=ot)}},ne.prototype.parseAC3Payload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="ac-3"){if(J==null&&this.audio_last_sample_pts_!=null)ce=1536/this.audio_metadata_.sampling_frequency*1e3,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"AC3: Unknown pts")}for(var ke,Ae=new Ut(ee),nt=null,ot=Se;(nt=Ae.readNextAC3Frame())!=null;){ce=1536/nt.sampling_frequency*1e3;var gt={codec:"ac-3",data:nt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"ac-3",sampling_frequency:nt.sampling_frequency,bit_stream_identification:nt.bit_stream_identification,bit_stream_mode:nt.bit_stream_mode,low_frequency_effects_channel_on:nt.low_frequency_effects_channel_on,channel_mode:nt.channel_mode},this.dispatchAudioInitSegment(gt)):this.detectAudioMetadataChange(gt)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(gt)),ke=ot;var De=Math.floor(ot),st={unit:nt.data,length:nt.data.byteLength,pts:De,dts:De};this.audio_track_.samples.push(st),this.audio_track_.length+=nt.data.byteLength,ot+=ce}ke&&(this.audio_last_sample_pts_=ke)}},ne.prototype.parseEAC3Payload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="ec-3"){if(J==null&&this.audio_last_sample_pts_!=null)ce=256*this.audio_metadata_.num_blks/this.audio_metadata_.sampling_frequency*1e3,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"EAC3: Unknown pts")}for(var ke,Ae=new Dn(ee),nt=null,ot=Se;(nt=Ae.readNextEAC3Frame())!=null;){ce=1536/nt.sampling_frequency*1e3;var gt={codec:"ec-3",data:nt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"ec-3",sampling_frequency:nt.sampling_frequency,bit_stream_identification:nt.bit_stream_identification,low_frequency_effects_channel_on:nt.low_frequency_effects_channel_on,num_blks:nt.num_blks,channel_mode:nt.channel_mode},this.dispatchAudioInitSegment(gt)):this.detectAudioMetadataChange(gt)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(gt)),ke=ot;var De=Math.floor(ot),st={unit:nt.data,length:nt.data.byteLength,pts:De,dts:De};this.audio_track_.samples.push(st),this.audio_track_.length+=nt.data.byteLength,ot+=ce}ke&&(this.audio_last_sample_pts_=ke)}},ne.prototype.parseOpusPayload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="opus"){if(J==null&&this.audio_last_sample_pts_!=null)ce=20,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"Opus: Unknown pts")}for(var ke,Ae=Se,nt=0;nt>>3&3,nt=(6&ee[1])>>1,ot=(240&ee[2])>>>4,gt=(12&ee[2])>>>2,De=(ee[3]>>>6&3)!==3?2:1,st=0,ut=34;switch(Ae){case 0:st=[11025,12e3,8e3,0][gt];break;case 2:st=[22050,24e3,16e3,0][gt];break;case 3:st=[44100,48e3,32e3,0][gt]}switch(nt){case 1:ut=34,ot>>24&255,J[1]=ee>>>16&255,J[2]=ee>>>8&255,J[3]=255&ee,J.set(ne,4);var Ae=8;for(ke=0;ke>>24&255,ne>>>16&255,ne>>>8&255,255&ne,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},oe.trak=function(ne){return oe.box(oe.types.trak,oe.tkhd(ne),oe.mdia(ne))},oe.tkhd=function(ne){var ee=ne.id,J=ne.duration,ce=ne.presentWidth,Se=ne.presentHeight;return oe.box(oe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,255&J,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,ce>>>8&255,255&ce,0,0,Se>>>8&255,255&Se,0,0]))},oe.mdia=function(ne){return oe.box(oe.types.mdia,oe.mdhd(ne),oe.hdlr(ne),oe.minf(ne))},oe.mdhd=function(ne){var ee=ne.timescale,J=ne.duration;return oe.box(oe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,J>>>24&255,J>>>16&255,J>>>8&255,255&J,85,196,0,0]))},oe.hdlr=function(ne){var ee=null;return ee=ne.type==="audio"?oe.constants.HDLR_AUDIO:oe.constants.HDLR_VIDEO,oe.box(oe.types.hdlr,ee)},oe.minf=function(ne){var ee=null;return ee=ne.type==="audio"?oe.box(oe.types.smhd,oe.constants.SMHD):oe.box(oe.types.vmhd,oe.constants.VMHD),oe.box(oe.types.minf,ee,oe.dinf(),oe.stbl(ne))},oe.dinf=function(){return oe.box(oe.types.dinf,oe.box(oe.types.dref,oe.constants.DREF))},oe.stbl=function(ne){return oe.box(oe.types.stbl,oe.stsd(ne),oe.box(oe.types.stts,oe.constants.STTS),oe.box(oe.types.stsc,oe.constants.STSC),oe.box(oe.types.stsz,oe.constants.STSZ),oe.box(oe.types.stco,oe.constants.STCO))},oe.stsd=function(ne){return ne.type==="audio"?ne.codec==="mp3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.mp3(ne)):ne.codec==="ac-3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.ac3(ne)):ne.codec==="ec-3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.ec3(ne)):ne.codec==="opus"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.Opus(ne)):ne.codec=="flac"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.fLaC(ne)):oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.mp4a(ne)):ne.type==="video"&&ne.codec.startsWith("hvc1")?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.hvc1(ne)):ne.type==="video"&&ne.codec.startsWith("av01")?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.av01(ne)):oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.avc1(ne))},oe.mp3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types[".mp3"],ce)},oe.mp4a=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.mp4a,ce,oe.esds(ne))},oe.ac3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types["ac-3"],ce,oe.box(oe.types.dac3,new Uint8Array(ne.config)))},oe.ec3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types["ec-3"],ce,oe.box(oe.types.dec3,new Uint8Array(ne.config)))},oe.esds=function(ne){var ee=ne.config||[],J=ee.length,ce=new Uint8Array([0,0,0,0,3,23+J,0,1,0,4,15+J,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([J]).concat(ee).concat([6,1,2]));return oe.box(oe.types.esds,ce)},oe.Opus=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.Opus,ce,oe.dOps(ne))},oe.dOps=function(ne){var ee=ne.channelCount,J=ne.channelConfigCode,ce=ne.audioSampleRate;if(ne.config)return oe.box(oe.types.dOps,ne.config);var Se=[];switch(J){case 1:case 2:Se=[0];break;case 0:Se=[255,1,1,0,1];break;case 128:Se=[255,2,0,0,1];break;case 3:Se=[1,2,1,0,2,1];break;case 4:Se=[1,2,2,0,1,2,3];break;case 5:Se=[1,3,2,0,4,1,2,3];break;case 6:Se=[1,4,2,0,4,1,2,3,5];break;case 7:Se=[1,4,2,0,4,1,2,3,5,6];break;case 8:Se=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Se=[1,1,2,0,1];break;case 131:Se=[1,1,3,0,1,2];break;case 132:Se=[1,1,4,0,1,2,3];break;case 133:Se=[1,1,5,0,1,2,3,4];break;case 134:Se=[1,1,6,0,1,2,3,4,5];break;case 135:Se=[1,1,7,0,1,2,3,4,5,6];break;case 136:Se=[1,1,8,0,1,2,3,4,5,6,7]}var ke=new Uint8Array(un([0,ee,0,0,ce>>>24&255,ce>>>17&255,ce>>>8&255,ce>>>0&255,0,0],Se));return oe.box(oe.types.dOps,ke)},oe.fLaC=function(ne){var ee=ne.channelCount,J=Math.min(ne.audioSampleRate,65535),ce=ne.sampleSize,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,ce,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.fLaC,Se,oe.dfLa(ne))},oe.dfLa=function(ne){var ee=new Uint8Array(un([0,0,0,0],ne.config));return oe.box(oe.types.dfLa,ee)},oe.avc1=function(ne){var ee=ne.avcc,J=ne.codecWidth,ce=ne.codecHeight,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.avc1,Se,oe.box(oe.types.avcC,ee))},oe.hvc1=function(ne){var ee=ne.hvcc,J=ne.codecWidth,ce=ne.codecHeight,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.hvc1,Se,oe.box(oe.types.hvcC,ee))},oe.av01=function(ne){var ee=ne.av1c,J=ne.codecWidth||192,ce=ne.codecHeight||108,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.av01,Se,oe.box(oe.types.av1C,ee))},oe.mvex=function(ne){return oe.box(oe.types.mvex,oe.trex(ne))},oe.trex=function(ne){var ee=ne.id,J=new Uint8Array([0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return oe.box(oe.types.trex,J)},oe.moof=function(ne,ee){return oe.box(oe.types.moof,oe.mfhd(ne.sequenceNumber),oe.traf(ne,ee))},oe.mfhd=function(ne){var ee=new Uint8Array([0,0,0,0,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne]);return oe.box(oe.types.mfhd,ee)},oe.traf=function(ne,ee){var J=ne.id,ce=oe.box(oe.types.tfhd,new Uint8Array([0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,255&J])),Se=oe.box(oe.types.tfdt,new Uint8Array([0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee])),ke=oe.sdtp(ne),Ae=oe.trun(ne,ke.byteLength+16+16+8+16+8+8);return oe.box(oe.types.traf,ce,Se,Ae,ke)},oe.sdtp=function(ne){for(var ee=ne.samples||[],J=ee.length,ce=new Uint8Array(4+J),Se=0;Se>>24&255,ce>>>16&255,ce>>>8&255,255&ce,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee],0);for(var Ae=0;Ae>>24&255,nt>>>16&255,nt>>>8&255,255&nt,ot>>>24&255,ot>>>16&255,ot>>>8&255,255&ot,gt.isLeading<<2|gt.dependsOn,gt.isDependedOn<<6|gt.hasRedundancy<<4|gt.isNonSync,0,0,De>>>24&255,De>>>16&255,De>>>8&255,255&De],12+16*Ae)}return oe.box(oe.types.trun,ke)},oe.mdat=function(ne){return oe.box(oe.types.mdat,ne)},oe})();Xn.init();var wr=Xn,ro=(function(){function oe(){}return oe.getSilentFrame=function(ne,ee){if(ne==="mp4a.40.2"){if(ee===1)return new Uint8Array([0,200,0,128,35,128]);if(ee===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ee===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ee===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ee===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ee===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ee===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ee===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ee===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},oe})(),Ot=i(11),bn=(function(){function oe(ne){this.TAG="MP4Remuxer",this._config=ne,this._isLive=ne.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ot.c("audio"),this._videoSegmentInfoList=new Ot.c("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!c.a.chrome||!(c.a.version.major<50||c.a.version.major===50&&c.a.version.build<2661)),this._fillSilentAfterSeek=c.a.msedge||c.a.msie,this._mp3UseMpegAudio=!c.a.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return oe.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},oe.prototype.bindDataSource=function(ne){return ne.onDataAvailable=this.remux.bind(this),ne.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(oe.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(ne){this._onInitSegment=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(ne){this._onMediaSegment=ne},enumerable:!1,configurable:!0}),oe.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},oe.prototype.seek=function(ne){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},oe.prototype.remux=function(ne,ee){if(!this._onMediaSegment)throw new g.a("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ne,ee),ee&&this._remuxVideo(ee),ne&&this._remuxAudio(ne)},oe.prototype._onTrackMetadataReceived=function(ne,ee){var J=null,ce="mp4",Se=ee.codec;if(ne==="audio")this._audioMeta=ee,ee.codec==="mp3"&&this._mp3UseMpegAudio?(ce="mpeg",Se="",J=new Uint8Array):J=wr.generateInitSegment(ee);else{if(ne!=="video")return;this._videoMeta=ee,J=wr.generateInitSegment(ee)}if(!this._onInitSegment)throw new g.a("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ne,{type:ne,data:J.buffer,codec:Se,container:"".concat(ne,"/").concat(ce),mediaDuration:ee.duration})},oe.prototype._calculateDtsBase=function(ne,ee){this._dtsBaseInited||(ne&&ne.samples&&ne.samples.length&&(this._audioDtsBase=ne.samples[0].dts),ee&&ee.samples&&ee.samples.length&&(this._videoDtsBase=ee.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},oe.prototype.getTimestampBase=function(){if(this._dtsBaseInited)return this._dtsBase},oe.prototype.flushStashedSamples=function(){var ne=this._videoStashedLastSample,ee=this._audioStashedLastSample,J={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ne!=null&&(J.samples.push(ne),J.length=ne.length);var ce={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ee!=null&&(ce.samples.push(ee),ce.length=ee.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(J,!0),this._remuxAudio(ce,!0)},oe.prototype._remuxAudio=function(ne,ee){if(this._audioMeta!=null){var J,ce=ne,Se=ce.samples,ke=void 0,Ae=-1,nt=this._audioMeta.refSampleDuration,ot=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,gt=this._dtsBaseInited&&this._audioNextDts===void 0,De=!1;if(Se&&Se.length!==0&&(Se.length!==1||ee)){var st=0,ut=null,Mt=0;ot?(st=0,Mt=ce.length):(st=8,Mt=8+ce.length);var Qt=null;if(Se.length>1&&(Mt-=(Qt=Se.pop()).length),this._audioStashedLastSample!=null){var Gt=this._audioStashedLastSample;this._audioStashedLastSample=null,Se.unshift(Gt),Mt+=Gt.length}Qt!=null&&(this._audioStashedLastSample=Qt);var pn=Se[0].dts-this._dtsBase;if(this._audioNextDts)ke=pn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())ke=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(De=!0);else{var mn=this._audioSegmentInfoList.getLastSampleBefore(pn);if(mn!=null){var ln=pn-(mn.originalDts+mn.duration);ln<=3&&(ln=0),ke=pn-(mn.dts+mn.duration+ln)}else ke=0}if(De){var dr=pn-ke,tr=this._videoSegmentInfoList.getLastSegmentBefore(pn);if(tr!=null&&tr.beginDts=3*nt&&this._fillAudioTimestampGap&&!c.a.safari){vr=!0;var li,La=Math.floor(ke/nt);l.a.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. `+"originalDts: ".concat(or," ms, curRefDts: ").concat(yi," ms, ")+"dtsCorrection: ".concat(Math.round(ke)," ms, generate: ").concat(La," frames")),_n=Math.floor(yi),Kr=Math.floor(yi+nt)-_n,(li=ro.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount))==null&&(l.a.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),li=Ln),hr=[];for(var wn=0;wn=1?fr[fr.length-1].duration:Math.floor(nt),this._audioNextDts=_n+Kr;Ae===-1&&(Ae=_n),fr.push({dts:_n,pts:_n,cts:0,unit:Gt.unit,size:Gt.unit.byteLength,duration:Kr,originalDts:or,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),vr&&fr.push.apply(fr,hr)}}if(fr.length===0)return ce.samples=[],void(ce.length=0);for(ot?ut=new Uint8Array(Mt):((ut=new Uint8Array(Mt))[0]=Mt>>>24&255,ut[1]=Mt>>>16&255,ut[2]=Mt>>>8&255,ut[3]=255&Mt,ut.set(wr.types.mdat,4)),ir=0;ir1&&(st-=(ut=ke.pop()).length),this._videoStashedLastSample!=null){var Mt=this._videoStashedLastSample;this._videoStashedLastSample=null,ke.unshift(Mt),st+=Mt.length}ut!=null&&(this._videoStashedLastSample=ut);var Qt=ke[0].dts-this._dtsBase;if(this._videoNextDts)Ae=Qt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ae=0;else{var Gt=this._videoSegmentInfoList.getLastSampleBefore(Qt);if(Gt!=null){var pn=Qt-(Gt.originalDts+Gt.duration);pn<=3&&(pn=0),Ae=Qt-(Gt.dts+Gt.duration+pn)}else Ae=0}for(var mn=new Ot.b,ln=[],dr=0;dr=1?ln[ln.length-1].duration:Math.floor(this._videoMeta.refSampleDuration),_n){var or=new Ot.d(Yn,ir,Ln,Mt.dts,!0);or.fileposition=Mt.fileposition,mn.appendSyncPoint(or)}ln.push({dts:Yn,pts:ir,cts:fr,units:Mt.units,size:Mt.length,isKeyframe:_n,duration:Ln,originalDts:tr,flags:{isLeading:0,dependsOn:_n?2:1,isDependedOn:_n?1:0,hasRedundancy:0,isNonSync:_n?0:1}})}for((De=new Uint8Array(st))[0]=st>>>24&255,De[1]=st>>>16&255,De[2]=st>>>8&255,De[3]=255&st,De.set(wr.types.mdat,4),dr=0;dr0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,ce=this._demuxer.parseChunks(ne,ee);else{var Se=null;(Se=B.probe(ne)).match&&(this._setupFLVDemuxerRemuxer(Se),ce=this._demuxer.parseChunks(ne,ee)),Se.match||Se.needMoreData||(Se=An.probe(ne)).match&&(this._setupTSDemuxerRemuxer(Se),ce=this._demuxer.parseChunks(ne,ee)),Se.match||Se.needMoreData||(Se=null,l.a.e(this.TAG,"Non MPEG-TS/FLV, Unsupported media type!"),Promise.resolve().then((function(){J._internalAbort()})),this._emitter.emit(sr.a.DEMUX_ERROR,x.a.FORMAT_UNSUPPORTED,"Non MPEG-TS/FLV, Unsupported media type!"))}return ce},oe.prototype._setupFLVDemuxerRemuxer=function(ne){this._demuxer=new B(ne,this._config),this._remuxer||(this._remuxer=new bn(this._config));var ee=this._mediaDataSource;ee.duration==null||isNaN(ee.duration)||(this._demuxer.overridedDuration=ee.duration),typeof ee.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=ee.hasAudio),typeof ee.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=ee.hasVideo),this._demuxer.timestampBase=ee.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this)},oe.prototype._setupTSDemuxerRemuxer=function(ne){var ee=this._demuxer=new An(ne,this._config);this._remuxer||(this._remuxer=new bn(this._config)),ee.onError=this._onDemuxException.bind(this),ee.onMediaInfo=this._onMediaInfo.bind(this),ee.onMetaDataArrived=this._onMetaDataArrived.bind(this),ee.onTimedID3Metadata=this._onTimedID3Metadata.bind(this),ee.onSynchronousKLVMetadata=this._onSynchronousKLVMetadata.bind(this),ee.onAsynchronousKLVMetadata=this._onAsynchronousKLVMetadata.bind(this),ee.onSMPTE2038Metadata=this._onSMPTE2038Metadata.bind(this),ee.onSCTE35Metadata=this._onSCTE35Metadata.bind(this),ee.onPESPrivateDataDescriptor=this._onPESPrivateDataDescriptor.bind(this),ee.onPESPrivateData=this._onPESPrivateData.bind(this),this._remuxer.bindDataSource(this._demuxer),this._demuxer.bindDataSource(this._ioctl),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this)},oe.prototype._onMediaInfo=function(ne){var ee=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ne),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,d.a.prototype));var J=Object.assign({},ne);Object.setPrototypeOf(J,d.a.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=J,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then((function(){var ce=ee._pendingSeekTime;ee._pendingSeekTime=null,ee.seek(ce)}))},oe.prototype._onMetaDataArrived=function(ne){this._emitter.emit(sr.a.METADATA_ARRIVED,ne)},oe.prototype._onScriptDataArrived=function(ne){this._emitter.emit(sr.a.SCRIPTDATA_ARRIVED,ne)},oe.prototype._onTimedID3Metadata=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.dts!=null&&(ne.dts-=ee),this._emitter.emit(sr.a.TIMED_ID3_METADATA_ARRIVED,ne))},oe.prototype._onSynchronousKLVMetadata=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.dts!=null&&(ne.dts-=ee),this._emitter.emit(sr.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,ne))},oe.prototype._onAsynchronousKLVMetadata=function(ne){this._emitter.emit(sr.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,ne)},oe.prototype._onSMPTE2038Metadata=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.dts!=null&&(ne.dts-=ee),ne.nearest_pts!=null&&(ne.nearest_pts-=ee),this._emitter.emit(sr.a.SMPTE2038_METADATA_ARRIVED,ne))},oe.prototype._onSCTE35Metadata=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.nearest_pts!=null&&(ne.nearest_pts-=ee),this._emitter.emit(sr.a.SCTE35_METADATA_ARRIVED,ne))},oe.prototype._onPESPrivateDataDescriptor=function(ne){this._emitter.emit(sr.a.PES_PRIVATE_DATA_DESCRIPTOR,ne)},oe.prototype._onPESPrivateData=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.nearest_pts!=null&&(ne.nearest_pts-=ee),ne.dts!=null&&(ne.dts-=ee),this._emitter.emit(sr.a.PES_PRIVATE_DATA_ARRIVED,ne))},oe.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},oe.prototype._onIOComplete=function(ne){var ee=ne+1;ee0&&J[0].originalDts===ce&&(ce=J[0].pts),this._emitter.emit(sr.a.RECOMMEND_SEEKPOINT,ce)}},oe.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},oe.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},oe.prototype._reportSegmentMediaInfo=function(ne){var ee=this._mediaInfo.segments[ne],J=Object.assign({},ee);J.duration=this._mediaInfo.duration,J.segmentCount=this._mediaInfo.segmentCount,delete J.segments,delete J.keyframesIndex,this._emitter.emit(sr.a.MEDIA_INFO,J)},oe.prototype._reportStatisticsInfo=function(){var ne={};ne.url=this._ioctl.currentURL,ne.hasRedirect=this._ioctl.hasRedirect,ne.hasRedirect&&(ne.redirectedURL=this._ioctl.currentRedirectedURL),ne.speed=this._ioctl.currentSpeed,ne.loaderType=this._ioctl.loaderType,ne.currentSegmentIndex=this._currentSegmentIndex,ne.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(sr.a.STATISTICS_INFO,ne)},oe})());r.a=zr},function(n,r,i){var a,s=i(0),l=(function(){function P(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return P.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},P.prototype.addBytes=function(M){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=M,this._totalBytes+=M):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=M,this._totalBytes+=M):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=M,this._totalBytes+=M,this._lastCheckpoint=this._now())},Object.defineProperty(P.prototype,"currentKBps",{get:function(){this.addBytes(0);var M=(this._now()-this._lastCheckpoint)/1e3;return M==0&&(M=1),this._intervalBytes/M/1024},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"averageKBps",{get:function(){var M=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/M/1024},enumerable:!1,configurable:!0}),P})(),c=i(2),d=i(5),h=i(3),p=(a=function(P,M){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,L){O.__proto__=L}||function(O,L){for(var B in L)Object.prototype.hasOwnProperty.call(L,B)&&(O[B]=L[B])})(P,M)},function(P,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function O(){this.constructor=P}a(P,M),P.prototype=M===null?Object.create(M):(O.prototype=M.prototype,new O)}),v=(function(P){function M(O,L){var B=P.call(this,"fetch-stream-loader")||this;return B.TAG="FetchStreamLoader",B._seekHandler=O,B._config=L,B._needStash=!0,B._requestAbort=!1,B._abortController=null,B._contentLength=null,B._receivedLength=0,B}return p(M,P),M.isSupported=function(){try{var O=d.a.msedge&&d.a.version.minor>=15048,L=!d.a.msedge||O;return self.fetch&&self.ReadableStream&&L}catch{return!1}},M.prototype.destroy=function(){this.isWorking()&&this.abort(),P.prototype.destroy.call(this)},M.prototype.open=function(O,L){var B=this;this._dataSource=O,this._range=L;var j=O.url;this._config.reuseRedirectedURL&&O.redirectedURL!=null&&(j=O.redirectedURL);var H=this._seekHandler.getConfig(j,L),U=new self.Headers;if(typeof H.headers=="object"){var K=H.headers;for(var Y in K)K.hasOwnProperty(Y)&&U.append(Y,K[Y])}var ie={method:"GET",headers:U,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Y in this._config.headers)U.append(Y,this._config.headers[Y]);O.cors===!1&&(ie.mode="same-origin"),O.withCredentials&&(ie.credentials="include"),O.referrerPolicy&&(ie.referrerPolicy=O.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,ie.signal=this._abortController.signal),this._status=c.c.kConnecting,self.fetch(H.url,ie).then((function(te){if(B._requestAbort)return B._status=c.c.kIdle,void te.body.cancel();if(te.ok&&te.status>=200&&te.status<=299){if(te.url!==H.url&&B._onURLRedirect){var W=B._seekHandler.removeURLParameters(te.url);B._onURLRedirect(W)}var q=te.headers.get("Content-Length");return q!=null&&(B._contentLength=parseInt(q),B._contentLength!==0&&B._onContentLengthKnown&&B._onContentLengthKnown(B._contentLength)),B._pump.call(B,te.body.getReader())}if(B._status=c.c.kError,!B._onError)throw new h.d("FetchStreamLoader: Http code invalid, "+te.status+" "+te.statusText);B._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:te.status,msg:te.statusText})})).catch((function(te){if(!B._abortController||!B._abortController.signal.aborted){if(B._status=c.c.kError,!B._onError)throw te;B._onError(c.b.EXCEPTION,{code:-1,msg:te.message})}}))},M.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==c.c.kBuffering||!d.a.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},M.prototype._pump=function(O){var L=this;return O.read().then((function(B){if(B.done)if(L._contentLength!==null&&L._receivedLength299)){if(this._status=c.c.kError,!this._onError)throw new h.d("MozChunkedLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}else this._status=c.c.kBuffering}},M.prototype._onProgress=function(O){if(this._status!==c.c.kError){this._contentLength===null&&O.total!==null&&O.total!==0&&(this._contentLength=O.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var L=O.target.response,B=this._range.from+this._receivedLength;this._receivedLength+=L.byteLength,this._onDataArrival&&this._onDataArrival(L,B,this._receivedLength)}},M.prototype._onLoadEnd=function(O){this._requestAbort!==!0?this._status!==c.c.kError&&(this._status=c.c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1},M.prototype._onXhrError=function(O){this._status=c.c.kError;var L=0,B=null;if(this._contentLength&&O.loaded=200&&L.status<=299){if(this._status=c.c.kBuffering,L.responseURL!=null){var B=this._seekHandler.removeURLParameters(L.responseURL);L.responseURL!==this._currentRequestURL&&B!==this._currentRedirectedURL&&(this._currentRedirectedURL=B,this._onURLRedirect&&this._onURLRedirect(B))}var j=L.getResponseHeader("Content-Length");if(j!=null&&this._contentLength==null){var H=parseInt(j);H>0&&(this._contentLength=H,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else{if(this._status=c.c.kError,!this._onError)throw new h.d("MSStreamLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}else if(L.readyState===3&&L.status>=200&&L.status<=299){this._status=c.c.kBuffering;var U=L.response;this._reader.readAsArrayBuffer(U)}},M.prototype._xhrOnError=function(O){this._status=c.c.kError;var L=c.b.EXCEPTION,B={code:-1,msg:O.constructor.name+" "+O.type};if(!this._onError)throw new h.d(B.msg);this._onError(L,B)},M.prototype._msrOnProgress=function(O){var L=O.target.result;if(L!=null){var B=L.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=L.byteLength;var j=this._totalRange.from+this._receivedLength;this._receivedLength+=B.byteLength,this._onDataArrival&&this._onDataArrival(B,j,this._receivedLength),L.byteLength>=this._bufferLimit&&(s.a.v(this.TAG,"MSStream buffer exceeded max size near ".concat(j+B.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}else this._doReconnectIfNeeded()},M.prototype._doReconnectIfNeeded=function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(B=this._range.from+this._contentLength-1),this._currentRequestRange={from:L,to:B},this._internalOpen(this._dataSource,this._currentRequestRange)},M.prototype._internalOpen=function(O,L){this._lastTimeLoaded=0;var B=O.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?B=this._currentRedirectedURL:O.redirectedURL!=null&&(B=O.redirectedURL));var j=this._seekHandler.getConfig(B,L);this._currentRequestURL=j.url;var H=this._xhr=new XMLHttpRequest;if(H.open("GET",j.url,!0),H.responseType="arraybuffer",H.onreadystatechange=this._onReadyStateChange.bind(this),H.onprogress=this._onProgress.bind(this),H.onload=this._onLoad.bind(this),H.onerror=this._onXhrError.bind(this),O.withCredentials&&(H.withCredentials=!0),typeof j.headers=="object"){var U=j.headers;for(var K in U)U.hasOwnProperty(K)&&H.setRequestHeader(K,U[K])}if(typeof this._config.headers=="object"){U=this._config.headers;for(var K in U)U.hasOwnProperty(K)&&H.setRequestHeader(K,U[K])}H.send()},M.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=c.c.kComplete},M.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},M.prototype._onReadyStateChange=function(O){var L=O.target;if(L.readyState===2){if(L.responseURL!=null){var B=this._seekHandler.removeURLParameters(L.responseURL);L.responseURL!==this._currentRequestURL&&B!==this._currentRedirectedURL&&(this._currentRedirectedURL=B,this._onURLRedirect&&this._onURLRedirect(B))}if(L.status>=200&&L.status<=299){if(this._waitForTotalLength)return;this._status=c.c.kBuffering}else{if(this._status=c.c.kError,!this._onError)throw new h.d("RangeLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}}},M.prototype._onProgress=function(O){if(this._status!==c.c.kError){if(this._contentLength===null){var L=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,L=!0;var B=O.total;this._internalAbort(),B!=null&B!==0&&(this._totalLength=B)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,L)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var j=O.loaded-this._lastTimeLoaded;this._lastTimeLoaded=O.loaded,this._speedSampler.addBytes(j)}},M.prototype._normalizeSpeed=function(O){var L=this._chunkSizeKBList,B=L.length-1,j=0,H=0,U=B;if(O=L[j]&&O=3&&(L=this._speedSampler.currentKBps)),L!==0){var B=this._normalizeSpeed(L);this._currentSpeedNormalized!==B&&(this._currentSpeedNormalized=B,this._currentChunkSizeKB=B)}var j=O.target.response,H=this._range.from+this._receivedLength;this._receivedLength+=j.byteLength;var U=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var H=L.split("&"),U=0;U0;K[0]!==this._startName&&K[0]!==this._endName&&(Y&&(j+="&"),j+=H[U])}return j.length===0?O:O+"?"+j},P})(),D=(function(){function P(M,O,L){this.TAG="IOController",this._config=O,this._extraData=L,this._stashInitialSize=65536,O.stashInitialSize!=null&&O.stashInitialSize>0&&(this._stashInitialSize=O.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=Math.max(this._stashSize,3145728),this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,O.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=M,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(M.url),this._refTotalLength=M.filesize?M.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new l,this._speedNormalizeList=[32,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return P.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},P.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},P.prototype.isPaused=function(){return this._paused},Object.defineProperty(P.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"extraData",{get:function(){return this._extraData},set:function(M){this._extraData=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(M){this._onDataArrival=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(M){this._onSeeked=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onError",{get:function(){return this._onError},set:function(M){this._onError=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onComplete",{get:function(){return this._onComplete},set:function(M){this._onComplete=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(M){this._onRedirect=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(M){this._onRecoveredEarlyEof=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentSpeed",{get:function(){return this._loaderClass===C?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),P.prototype._selectSeekHandler=function(){var M=this._config;if(M.seekType==="range")this._seekHandler=new _(this._config.rangeLoadZeroStart);else if(M.seekType==="param"){var O=M.seekParamStart||"bstart",L=M.seekParamEnd||"bend";this._seekHandler=new T(O,L)}else{if(M.seekType!=="custom")throw new h.b("Invalid seekType in config: ".concat(M.seekType));if(typeof M.customSeekHandler!="function")throw new h.b("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new M.customSeekHandler}},P.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=E;else if(v.isSupported())this._loaderClass=v;else if(y.isSupported())this._loaderClass=y;else{if(!C.isSupported())throw new h.d("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=C}},P.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},P.prototype.open=function(M){this._currentRange={from:0,to:-1},M&&(this._currentRange.from=M),this._speedSampler.reset(),M||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},P.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},P.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},P.prototype.resume=function(){if(this._paused){this._paused=!1;var M=this._resumeFrom;this._resumeFrom=0,this._internalSeek(M,!0)}},P.prototype.seek=function(M){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(M,!0)},P.prototype._internalSeek=function(M,O){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(O),this._loader.destroy(),this._loader=null;var L={from:M,to:-1};this._currentRange={from:L.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,L),this._onSeeked&&this._onSeeked()},P.prototype.updateUrl=function(M){if(!M||typeof M!="string"||M.length===0)throw new h.b("Url must be a non-empty string!");this._dataSource.url=M},P.prototype._expandBuffer=function(M){for(var O=this._stashSize;O+10485760){var B=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(L,0,O).set(B,0)}this._stashBuffer=L,this._bufferSize=O}},P.prototype._normalizeSpeed=function(M){var O=this._speedNormalizeList,L=O.length-1,B=0,j=0,H=L;if(M=O[B]&&M=512&&M<=1024?Math.floor(1.5*M):2*M)>8192&&(O=8192);var L=1024*O+1048576;this._bufferSize0){var H=this._stashBuffer.slice(0,this._stashUsed);(Y=this._dispatchChunks(H,this._stashByteStart))0&&(ie=new Uint8Array(H,Y),K.set(ie,0),this._stashUsed=ie.byteLength,this._stashByteStart+=Y):(this._stashUsed=0,this._stashByteStart+=Y),this._stashUsed+M.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+M.byteLength),K=new Uint8Array(this._stashBuffer,0,this._bufferSize)),K.set(new Uint8Array(M),this._stashUsed),this._stashUsed+=M.byteLength}else(Y=this._dispatchChunks(M,O))this._bufferSize&&(this._expandBuffer(U),K=new Uint8Array(this._stashBuffer,0,this._bufferSize)),K.set(new Uint8Array(M,Y),0),this._stashUsed+=U,this._stashByteStart=O+Y);else if(this._stashUsed===0){var U;(Y=this._dispatchChunks(M,O))this._bufferSize&&this._expandBuffer(U),(K=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(M,Y),0),this._stashUsed+=U,this._stashByteStart=O+Y)}else{var K,Y;if(this._stashUsed+M.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+M.byteLength),(K=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(M),this._stashUsed),this._stashUsed+=M.byteLength,(Y=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart))0){var ie=new Uint8Array(this._stashBuffer,Y);K.set(ie,0)}this._stashUsed-=Y,this._stashByteStart+=Y}}},P.prototype._flushStashBuffer=function(M){if(this._stashUsed>0){var O=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(O,this._stashByteStart),B=O.byteLength-L;if(L0){var j=new Uint8Array(this._stashBuffer,0,this._bufferSize),H=new Uint8Array(O,L);j.set(H,0),this._stashUsed=H.byteLength,this._stashByteStart+=L}return 0}s.a.w(this.TAG,"".concat(B," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,B}return 0},P.prototype._onLoaderComplete=function(M,O){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},P.prototype._onLoaderError=function(M,O){switch(s.a.e(this.TAG,"Loader error, code = ".concat(O.code,", msg = ").concat(O.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,M=c.b.UNRECOVERABLE_EARLY_EOF),M){case c.b.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var L=this._currentRange.to+1;return void(L0?0|c:0;return this.substring(d,d+l.length)===l}}),typeof self.Promise!="function"&&i(21).polyfill()},s})();a.install(),r.a=a},function(n,r,i){var a=i(9),s=i.n(a),l=i(0),c=i(5),d=i(7),h=i(3),p=(function(){function v(g){this.TAG="MSEController",this._config=g,this._emitter=new s.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onStartStreaming:this._onStartStreaming.bind(this),onEndStreaming:this._onEndStreaming.bind(this),onQualityChange:this._onQualityChange.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._useManagedMediaSource="ManagedMediaSource"in self&&!("MediaSource"in self),this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElementProxy=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]}}return v.prototype.destroy=function(){this._mediaSource&&this.shutdown(),this._mediaSourceObjectURL&&this.revokeObjectURL(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},v.prototype.on=function(g,y){this._emitter.addListener(g,y)},v.prototype.off=function(g,y){this._emitter.removeListener(g,y)},v.prototype.initialize=function(g){if(this._mediaSource)throw new h.a("MediaSource has been attached to an HTMLMediaElement!");this._useManagedMediaSource&&l.a.v(this.TAG,"Using ManagedMediaSource");var y=this._mediaSource=this._useManagedMediaSource?new self.ManagedMediaSource:new self.MediaSource;y.addEventListener("sourceopen",this.e.onSourceOpen),y.addEventListener("sourceended",this.e.onSourceEnded),y.addEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(y.addEventListener("startstreaming",this.e.onStartStreaming),y.addEventListener("endstreaming",this.e.onEndStreaming),y.addEventListener("qualitychange",this.e.onQualityChange)),this._mediaElementProxy=g},v.prototype.shutdown=function(){if(this._mediaSource){var g=this._mediaSource;for(var y in this._sourceBuffers){var S=this._pendingSegments[y];S.splice(0,S.length),this._pendingSegments[y]=null,this._pendingRemoveRanges[y]=null,this._lastInitSegments[y]=null;var k=this._sourceBuffers[y];if(k){if(g.readyState!=="closed"){try{g.removeSourceBuffer(k)}catch(C){l.a.e(this.TAG,C.message)}k.removeEventListener("error",this.e.onSourceBufferError),k.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[y]=null,this._sourceBuffers[y]=null}}if(g.readyState==="open")try{g.endOfStream()}catch(C){l.a.e(this.TAG,C.message)}this._mediaElementProxy=null,g.removeEventListener("sourceopen",this.e.onSourceOpen),g.removeEventListener("sourceended",this.e.onSourceEnded),g.removeEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(g.removeEventListener("startstreaming",this.e.onStartStreaming),g.removeEventListener("endstreaming",this.e.onEndStreaming),g.removeEventListener("qualitychange",this.e.onQualityChange)),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._mediaSource=null}},v.prototype.isManagedMediaSource=function(){return this._useManagedMediaSource},v.prototype.getObject=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSource},v.prototype.getHandle=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSource.handle},v.prototype.getObjectURL=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSourceObjectURL==null&&(this._mediaSourceObjectURL=URL.createObjectURL(this._mediaSource)),this._mediaSourceObjectURL},v.prototype.revokeObjectURL=function(){this._mediaSourceObjectURL&&(URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},v.prototype.appendInitSegment=function(g,y){if(y===void 0&&(y=void 0),!this._mediaSource||this._mediaSource.readyState!=="open"||this._mediaSource.streaming===!1)return this._pendingSourceBufferInit.push(g),void this._pendingSegments[g.type].push(g);var S=g,k="".concat(S.container);S.codec&&S.codec.length>0&&(S.codec==="opus"&&c.a.safari&&(S.codec="Opus"),k+=";codecs=".concat(S.codec));var C=!1;if(l.a.v(this.TAG,"Received Initialization Segment, mimeType: "+k),this._lastInitSegments[S.type]=S,k!==this._mimeTypes[S.type]){if(this._mimeTypes[S.type])l.a.v(this.TAG,"Notice: ".concat(S.type," mimeType changed, origin: ").concat(this._mimeTypes[S.type],", target: ").concat(k));else{C=!0;try{var x=this._sourceBuffers[S.type]=this._mediaSource.addSourceBuffer(k);x.addEventListener("error",this.e.onSourceBufferError),x.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(E){return l.a.e(this.TAG,E.message),void this._emitter.emit(d.a.ERROR,{code:E.code,msg:E.message})}}this._mimeTypes[S.type]=k}y||this._pendingSegments[S.type].push(S),C||this._sourceBuffers[S.type]&&!this._sourceBuffers[S.type].updating&&this._doAppendSegments(),c.a.safari&&S.container==="audio/mpeg"&&S.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=S.mediaDuration/1e3,this._updateMediaSourceDuration())},v.prototype.appendMediaSegment=function(g){var y=g;this._pendingSegments[y.type].push(y),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var S=this._sourceBuffers[y.type];!S||S.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()},v.prototype.flush=function(){for(var g in this._sourceBuffers)if(this._sourceBuffers[g]){var y=this._sourceBuffers[g];if(this._mediaSource.readyState==="open")try{y.abort()}catch(_){l.a.e(this.TAG,_.message)}var S=this._pendingSegments[g];if(S.splice(0,S.length),this._mediaSource.readyState!=="closed"){for(var k=0;k=1&&g-k.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},v.prototype._doCleanupSourceBuffer=function(){var g=this._mediaElementProxy.getCurrentTime();for(var y in this._sourceBuffers){var S=this._sourceBuffers[y];if(S){for(var k=S.buffered,C=!1,x=0;x=this._config.autoCleanupMaxBackwardDuration){C=!0;var T=g-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[y].push({start:E,end:T})}}else _0&&(isNaN(y)||S>y)&&(l.a.v(this.TAG,"Update MediaSource duration from ".concat(y," to ").concat(S)),this._mediaSource.duration=S),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},v.prototype._doRemoveRanges=function(){for(var g in this._pendingRemoveRanges)if(this._sourceBuffers[g]&&!this._sourceBuffers[g].updating)for(var y=this._sourceBuffers[g],S=this._pendingRemoveRanges[g];S.length&&!y.updating;){var k=S.shift();y.remove(k.start,k.end)}},v.prototype._doAppendSegments=function(){var g=this._pendingSegments;for(var y in g)if(this._sourceBuffers[y]&&!this._sourceBuffers[y].updating&&this._mediaSource.streaming!==!1&&g[y].length>0){var S=g[y].shift();if(typeof S.timestampOffset=="number"&&isFinite(S.timestampOffset)){var k=this._sourceBuffers[y].timestampOffset,C=S.timestampOffset/1e3;Math.abs(k-C)>.1&&(l.a.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(k," to ").concat(C)),this._sourceBuffers[y].timestampOffset=C),delete S.timestampOffset}if(!S.data||S.data.byteLength===0)continue;try{this._sourceBuffers[y].appendBuffer(S.data),this._isBufferFull=!1}catch(x){this._pendingSegments[y].unshift(S),x.code===22?(this._isBufferFull||this._emitter.emit(d.a.BUFFER_FULL),this._isBufferFull=!0):(l.a.e(this.TAG,x.message),this._emitter.emit(d.a.ERROR,{code:x.code,msg:x.message}))}}},v.prototype._onSourceOpen=function(){if(l.a.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var g=this._pendingSourceBufferInit;g.length;){var y=g.shift();this.appendInitSegment(y,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(d.a.SOURCE_OPEN)},v.prototype._onStartStreaming=function(){l.a.v(this.TAG,"ManagedMediaSource onStartStreaming"),this._emitter.emit(d.a.START_STREAMING)},v.prototype._onEndStreaming=function(){l.a.v(this.TAG,"ManagedMediaSource onEndStreaming"),this._emitter.emit(d.a.END_STREAMING)},v.prototype._onQualityChange=function(){l.a.v(this.TAG,"ManagedMediaSource onQualityChange")},v.prototype._onSourceEnded=function(){l.a.v(this.TAG,"MediaSource onSourceEnded")},v.prototype._onSourceClose=function(){l.a.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(this._mediaSource.removeEventListener("startstreaming",this.e.onStartStreaming),this._mediaSource.removeEventListener("endstreaming",this.e.onEndStreaming),this._mediaSource.removeEventListener("qualitychange",this.e.onQualityChange)))},v.prototype._hasPendingSegments=function(){var g=this._pendingSegments;return g.video.length>0||g.audio.length>0},v.prototype._hasPendingRemoveRanges=function(){var g=this._pendingRemoveRanges;return g.video.length>0||g.audio.length>0},v.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(d.a.UPDATE_END)},v.prototype._onSourceBufferError=function(g){l.a.e(this.TAG,"SourceBuffer Error: ".concat(g))},v})();r.a=p},function(n,r,i){var a=i(9),s=i.n(a),l=i(18),c=i.n(l),d=i(0),h=i(8),p=i(13),v=i(1),g=(i(19),i(12)),y=(function(){function S(k,C){if(this.TAG="Transmuxer",this._emitter=new s.a,C.enableWorker&&typeof Worker<"u")try{this._worker=c()(19),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[k,C]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},h.a.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:h.a.getConfig()})}catch{d.a.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new p.a(k,C)}else this._controller=new p.a(k,C);if(this._controller){var x=this._controller;x.on(v.a.IO_ERROR,this._onIOError.bind(this)),x.on(v.a.DEMUX_ERROR,this._onDemuxError.bind(this)),x.on(v.a.INIT_SEGMENT,this._onInitSegment.bind(this)),x.on(v.a.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),x.on(v.a.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),x.on(v.a.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),x.on(v.a.MEDIA_INFO,this._onMediaInfo.bind(this)),x.on(v.a.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),x.on(v.a.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),x.on(v.a.TIMED_ID3_METADATA_ARRIVED,this._onTimedID3MetadataArrived.bind(this)),x.on(v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,this._onSynchronousKLVMetadataArrived.bind(this)),x.on(v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,this._onAsynchronousKLVMetadataArrived.bind(this)),x.on(v.a.SMPTE2038_METADATA_ARRIVED,this._onSMPTE2038MetadataArrived.bind(this)),x.on(v.a.SCTE35_METADATA_ARRIVED,this._onSCTE35MetadataArrived.bind(this)),x.on(v.a.PES_PRIVATE_DATA_DESCRIPTOR,this._onPESPrivateDataDescriptor.bind(this)),x.on(v.a.PES_PRIVATE_DATA_ARRIVED,this._onPESPrivateDataArrived.bind(this)),x.on(v.a.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),x.on(v.a.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return S.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),h.a.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},S.prototype.on=function(k,C){this._emitter.addListener(k,C)},S.prototype.off=function(k,C){this._emitter.removeListener(k,C)},S.prototype.hasWorker=function(){return this._worker!=null},S.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},S.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},S.prototype.seek=function(k){this._worker?this._worker.postMessage({cmd:"seek",param:k}):this._controller.seek(k)},S.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},S.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},S.prototype._onInitSegment=function(k,C){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.INIT_SEGMENT,k,C)}))},S.prototype._onMediaSegment=function(k,C){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.MEDIA_SEGMENT,k,C)}))},S.prototype._onLoadingComplete=function(){var k=this;Promise.resolve().then((function(){k._emitter.emit(v.a.LOADING_COMPLETE)}))},S.prototype._onRecoveredEarlyEof=function(){var k=this;Promise.resolve().then((function(){k._emitter.emit(v.a.RECOVERED_EARLY_EOF)}))},S.prototype._onMediaInfo=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.MEDIA_INFO,k)}))},S.prototype._onMetaDataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.METADATA_ARRIVED,k)}))},S.prototype._onScriptDataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.SCRIPTDATA_ARRIVED,k)}))},S.prototype._onTimedID3MetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.TIMED_ID3_METADATA_ARRIVED,k)}))},S.prototype._onSynchronousKLVMetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,k)}))},S.prototype._onAsynchronousKLVMetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,k)}))},S.prototype._onSMPTE2038MetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.SMPTE2038_METADATA_ARRIVED,k)}))},S.prototype._onSCTE35MetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.SCTE35_METADATA_ARRIVED,k)}))},S.prototype._onPESPrivateDataDescriptor=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.PES_PRIVATE_DATA_DESCRIPTOR,k)}))},S.prototype._onPESPrivateDataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.PES_PRIVATE_DATA_ARRIVED,k)}))},S.prototype._onStatisticsInfo=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.STATISTICS_INFO,k)}))},S.prototype._onIOError=function(k,C){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.IO_ERROR,k,C)}))},S.prototype._onDemuxError=function(k,C){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.DEMUX_ERROR,k,C)}))},S.prototype._onRecommendSeekpoint=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.RECOMMEND_SEEKPOINT,k)}))},S.prototype._onLoggingConfigChanged=function(k){this._worker&&this._worker.postMessage({cmd:"logging_config",param:k})},S.prototype._onWorkerMessage=function(k){var C=k.data,x=C.data;if(C.msg==="destroyed"||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(C.msg){case v.a.INIT_SEGMENT:case v.a.MEDIA_SEGMENT:this._emitter.emit(C.msg,x.type,x.data);break;case v.a.LOADING_COMPLETE:case v.a.RECOVERED_EARLY_EOF:this._emitter.emit(C.msg);break;case v.a.MEDIA_INFO:Object.setPrototypeOf(x,g.a.prototype),this._emitter.emit(C.msg,x);break;case v.a.METADATA_ARRIVED:case v.a.SCRIPTDATA_ARRIVED:case v.a.TIMED_ID3_METADATA_ARRIVED:case v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED:case v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED:case v.a.SMPTE2038_METADATA_ARRIVED:case v.a.SCTE35_METADATA_ARRIVED:case v.a.PES_PRIVATE_DATA_DESCRIPTOR:case v.a.PES_PRIVATE_DATA_ARRIVED:case v.a.STATISTICS_INFO:this._emitter.emit(C.msg,x);break;case v.a.IO_ERROR:case v.a.DEMUX_ERROR:this._emitter.emit(C.msg,x.type,x.info);break;case v.a.RECOMMEND_SEEKPOINT:this._emitter.emit(C.msg,x);break;case"logcat_callback":d.a.emitter.emit("log",x.type,x.logcat)}},S})();r.a=y},function(n,r,i){function a(d){var h={};function p(g){if(h[g])return h[g].exports;var y=h[g]={i:g,l:!1,exports:{}};return d[g].call(y.exports,y,y.exports,p),y.l=!0,y.exports}p.m=d,p.c=h,p.i=function(g){return g},p.d=function(g,y,S){p.o(g,y)||Object.defineProperty(g,y,{configurable:!1,enumerable:!0,get:S})},p.r=function(g){Object.defineProperty(g,"__esModule",{value:!0})},p.n=function(g){var y=g&&g.__esModule?function(){return g.default}:function(){return g};return p.d(y,"a",y),y},p.o=function(g,y){return Object.prototype.hasOwnProperty.call(g,y)},p.p="/",p.oe=function(g){throw console.error(g),g};var v=p(p.s=ENTRY_MODULE);return v.default||v}function s(d){return(d+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function l(d,h,p){var v={};v[p]=[];var g=h.toString(),y=g.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!y)return v;for(var S,k=y[1],C=new RegExp("(\\\\n|\\W)"+s(k)+"\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");S=C.exec(g);)S[3]!=="dll-reference"&&v[p].push(S[3]);for(C=new RegExp("\\("+s(k)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");S=C.exec(g);)d[S[2]]||(v[p].push(S[1]),d[S[2]]=i(S[1]).m),v[S[2]]=v[S[2]]||[],v[S[2]].push(S[4]);for(var x,E=Object.keys(v),_=0;_0}),!1)}n.exports=function(d,h){h=h||{};var p={main:i.m},v=h.all?{main:Object.keys(p.main)}:(function(C,x){for(var E={main:[x]},_={main:[]},T={main:{}};c(E);)for(var D=Object.keys(E),P=0;P"u"&&a!==void 0&&{}.toString.call(a)==="[object process]",x=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function E(){var ge=setTimeout;return function(){return ge(T,1)}}var _=new Array(1e3);function T(){for(var ge=0;ge1)for(var _=1;_0){var ae=this._media_element.buffered.start(0);(ae<1&&q0){var ae=se.start(0);if(ae<1&&Q=ae&&q0&&this._suspendTransmuxerIfBufferedPositionExceeded(se)},W.prototype._suspendTransmuxerIfBufferedPositionExceeded=function(q){q>=this._media_element.currentTime+this._config.lazyLoadMaxDuration&&!this._paused&&(p.a.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this.suspendTransmuxer(),this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate))},W.prototype.suspendTransmuxer=function(){this._paused=!0,this._on_pause_transmuxer()},W.prototype._resumeTransmuxerIfNeeded=function(){for(var q=this._media_element.buffered,Q=this._media_element.currentTime,se=this._config.lazyLoadRecoverDuration,ae=!1,re=0;re=Ce&&Q=Ve-se&&(ae=!0);break}}ae&&(p.a.v(this.TAG,"Continue loading from paused position"),this.resumeTransmuxer(),this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate))},W.prototype.resumeTransmuxer=function(){this._paused=!1,this._on_resume_transmuxer()},W})(),O=(function(){function W(q,Q){this.TAG="StartupStallJumper",this._media_element=null,this._on_direct_seek=null,this._canplay_received=!1,this.e=null,this._media_element=q,this._on_direct_seek=Q,this.e={onMediaCanPlay:this._onMediaCanPlay.bind(this),onMediaStalled:this._onMediaStalled.bind(this),onMediaProgress:this._onMediaProgress.bind(this)},this._media_element.addEventListener("canplay",this.e.onMediaCanPlay),this._media_element.addEventListener("stalled",this.e.onMediaStalled),this._media_element.addEventListener("progress",this.e.onMediaProgress)}return W.prototype.destroy=function(){this._media_element.removeEventListener("canplay",this.e.onMediaCanPlay),this._media_element.removeEventListener("stalled",this.e.onMediaStalled),this._media_element.removeEventListener("progress",this.e.onMediaProgress),this._media_element=null,this._on_direct_seek=null},W.prototype._onMediaCanPlay=function(q){this._canplay_received=!0,this._media_element.removeEventListener("canplay",this.e.onMediaCanPlay)},W.prototype._onMediaStalled=function(q){this._detectAndFixStuckPlayback(!0)},W.prototype._onMediaProgress=function(q){this._detectAndFixStuckPlayback()},W.prototype._detectAndFixStuckPlayback=function(q){var Q=this._media_element,se=Q.buffered;q||!this._canplay_received||Q.readyState<2?se.length>0&&Q.currentTimethis._config.liveBufferLatencyMaxLatency&&ae-Q>this._config.liveBufferLatencyMaxLatency){var re=ae-this._config.liveBufferLatencyMinRemain;this._on_direct_seek(re)}}},W})(),B=(function(){function W(q,Q){this._config=null,this._media_element=null,this.e=null,this._config=q,this._media_element=Q,this.e={onMediaTimeUpdate:this._onMediaTimeUpdate.bind(this)},this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate)}return W.prototype.destroy=function(){this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element=null,this._config=null},W.prototype._onMediaTimeUpdate=function(q){if(this._config.isLive&&this._config.liveSync){var Q=this._getCurrentLatency();if(Q>this._config.liveSyncMaxLatency){var se=Math.min(2,Math.max(1,this._config.liveSyncPlaybackRate));this._media_element.playbackRate=se}else Q>this._config.liveSyncTargetLatency||this._media_element.playbackRate!==1&&this._media_element.playbackRate!==0&&(this._media_element.playbackRate=1)}},W.prototype._getCurrentLatency=function(){if(!this._media_element)return 0;var q=this._media_element.buffered,Q=this._media_element.currentTime;return q.length==0?0:q.end(q.length-1)-Q},W})(),j=(function(){function W(q,Q){this.TAG="PlayerEngineMainThread",this._emitter=new v,this._media_element=null,this._mse_controller=null,this._transmuxer=null,this._pending_seek_time=null,this._seeking_handler=null,this._loading_controller=null,this._startup_stall_jumper=null,this._live_latency_chaser=null,this._live_latency_synchronizer=null,this._mse_source_opened=!1,this._has_pending_load=!1,this._loaded_metadata_received=!1,this._media_info=null,this._statistics_info=null,this.e=null,this._media_data_source=q,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q),q.isLive===!0&&(this._config.isLive=!0),this.e={onMediaLoadedMetadata:this._onMediaLoadedMetadata.bind(this)}}return W.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this._transmuxer&&this.unload(),this._media_element&&this.detachMediaElement(),this.e=null,this._media_data_source=null,this._emitter.removeAllListeners(),this._emitter=null},W.prototype.on=function(q,Q){var se=this;this._emitter.addListener(q,Q),q===S.a.MEDIA_INFO&&this._media_info?Promise.resolve().then((function(){return se._emitter.emit(S.a.MEDIA_INFO,se.mediaInfo)})):q==S.a.STATISTICS_INFO&&this._statistics_info&&Promise.resolve().then((function(){return se._emitter.emit(S.a.STATISTICS_INFO,se.statisticsInfo)}))},W.prototype.off=function(q,Q){this._emitter.removeListener(q,Q)},W.prototype.attachMediaElement=function(q){var Q=this;this._media_element=q,q.src="",q.removeAttribute("src"),q.srcObject=null,q.load(),q.addEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._mse_controller=new y.a(this._config),this._mse_controller.on(C.a.UPDATE_END,this._onMSEUpdateEnd.bind(this)),this._mse_controller.on(C.a.BUFFER_FULL,this._onMSEBufferFull.bind(this)),this._mse_controller.on(C.a.SOURCE_OPEN,this._onMSESourceOpen.bind(this)),this._mse_controller.on(C.a.ERROR,this._onMSEError.bind(this)),this._mse_controller.on(C.a.START_STREAMING,this._onMSEStartStreaming.bind(this)),this._mse_controller.on(C.a.END_STREAMING,this._onMSEEndStreaming.bind(this)),this._mse_controller.initialize({getCurrentTime:function(){return Q._media_element.currentTime},getReadyState:function(){return Q._media_element.readyState}}),this._mse_controller.isManagedMediaSource()?(q.disableRemotePlayback=!0,q.srcObject=this._mse_controller.getObject()):q.src=this._mse_controller.getObjectURL()},W.prototype.detachMediaElement=function(){this._media_element&&(this._mse_controller.shutdown(),this._media_element.removeEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element=null,this._mse_controller.revokeObjectURL()),this._mse_controller&&(this._mse_controller.destroy(),this._mse_controller=null)},W.prototype.load=function(){var q=this;if(!this._media_element)throw new E.a("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new E.a("load() has been called, please call unload() first!");this._has_pending_load||(!this._config.deferLoadAfterSourceOpen||this._mse_source_opened?(this._transmuxer=new k.a(this._media_data_source,this._config),this._transmuxer.on(_.a.INIT_SEGMENT,(function(Q,se){q._mse_controller.appendInitSegment(se)})),this._transmuxer.on(_.a.MEDIA_SEGMENT,(function(Q,se){q._mse_controller.appendMediaSegment(se),!q._config.isLive&&Q==="video"&&se.data&&se.data.byteLength>0&&"info"in se&&q._seeking_handler.appendSyncPoints(se.info.syncPoints),q._loading_controller.notifyBufferedPositionChanged(se.info.endDts/1e3)})),this._transmuxer.on(_.a.LOADING_COMPLETE,(function(){q._mse_controller.endOfStream(),q._emitter.emit(S.a.LOADING_COMPLETE)})),this._transmuxer.on(_.a.RECOVERED_EARLY_EOF,(function(){q._emitter.emit(S.a.RECOVERED_EARLY_EOF)})),this._transmuxer.on(_.a.IO_ERROR,(function(Q,se){q._emitter.emit(S.a.ERROR,x.b.NETWORK_ERROR,Q,se)})),this._transmuxer.on(_.a.DEMUX_ERROR,(function(Q,se){q._emitter.emit(S.a.ERROR,x.b.MEDIA_ERROR,Q,se)})),this._transmuxer.on(_.a.MEDIA_INFO,(function(Q){q._media_info=Q,q._emitter.emit(S.a.MEDIA_INFO,Object.assign({},Q))})),this._transmuxer.on(_.a.STATISTICS_INFO,(function(Q){q._statistics_info=q._fillStatisticsInfo(Q),q._emitter.emit(S.a.STATISTICS_INFO,Object.assign({},Q))})),this._transmuxer.on(_.a.RECOMMEND_SEEKPOINT,(function(Q){q._media_element&&!q._config.accurateSeek&&q._seeking_handler.directSeek(Q/1e3)})),this._transmuxer.on(_.a.METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SCRIPTDATA_ARRIVED,(function(Q){q._emitter.emit(S.a.SCRIPTDATA_ARRIVED,Q)})),this._transmuxer.on(_.a.TIMED_ID3_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.TIMED_ID3_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SMPTE2038_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.SMPTE2038_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SCTE35_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.SCTE35_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.PES_PRIVATE_DATA_DESCRIPTOR,(function(Q){q._emitter.emit(S.a.PES_PRIVATE_DATA_DESCRIPTOR,Q)})),this._transmuxer.on(_.a.PES_PRIVATE_DATA_ARRIVED,(function(Q){q._emitter.emit(S.a.PES_PRIVATE_DATA_ARRIVED,Q)})),this._seeking_handler=new P(this._config,this._media_element,this._onRequiredUnbufferedSeek.bind(this)),this._loading_controller=new M(this._config,this._media_element,this._onRequestPauseTransmuxer.bind(this),this._onRequestResumeTransmuxer.bind(this)),this._startup_stall_jumper=new O(this._media_element,this._onRequestDirectSeek.bind(this)),this._config.isLive&&this._config.liveBufferLatencyChasing&&(this._live_latency_chaser=new L(this._config,this._media_element,this._onRequestDirectSeek.bind(this))),this._config.isLive&&this._config.liveSync&&(this._live_latency_synchronizer=new B(this._config,this._media_element)),this._media_element.readyState>0&&this._seeking_handler.directSeek(0),this._transmuxer.open()):this._has_pending_load=!0)},W.prototype.unload=function(){var q,Q,se,ae,re,Ce,Ve,ge,xe;(q=this._media_element)===null||q===void 0||q.pause(),(Q=this._live_latency_synchronizer)===null||Q===void 0||Q.destroy(),this._live_latency_synchronizer=null,(se=this._live_latency_chaser)===null||se===void 0||se.destroy(),this._live_latency_chaser=null,(ae=this._startup_stall_jumper)===null||ae===void 0||ae.destroy(),this._startup_stall_jumper=null,(re=this._loading_controller)===null||re===void 0||re.destroy(),this._loading_controller=null,(Ce=this._seeking_handler)===null||Ce===void 0||Ce.destroy(),this._seeking_handler=null,(Ve=this._mse_controller)===null||Ve===void 0||Ve.flush(),(ge=this._transmuxer)===null||ge===void 0||ge.close(),(xe=this._transmuxer)===null||xe===void 0||xe.destroy(),this._transmuxer=null},W.prototype.play=function(){return this._media_element.play()},W.prototype.pause=function(){this._media_element.pause()},W.prototype.seek=function(q){this._media_element&&this._seeking_handler?this._seeking_handler.seek(q):this._pending_seek_time=q},Object.defineProperty(W.prototype,"mediaInfo",{get:function(){return Object.assign({},this._media_info)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"statisticsInfo",{get:function(){return Object.assign({},this._statistics_info)},enumerable:!1,configurable:!0}),W.prototype._onMSESourceOpen=function(){this._mse_source_opened=!0,this._has_pending_load&&(this._has_pending_load=!1,this.load())},W.prototype._onMSEUpdateEnd=function(){this._config.isLive&&this._config.liveBufferLatencyChasing&&this._live_latency_chaser&&this._live_latency_chaser.notifyBufferedRangeUpdate(),this._loading_controller.notifyBufferedPositionChanged()},W.prototype._onMSEBufferFull=function(){p.a.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._loading_controller.suspendTransmuxer()},W.prototype._onMSEError=function(q){this._emitter.emit(S.a.ERROR,x.b.MEDIA_ERROR,x.a.MEDIA_MSE_ERROR,q)},W.prototype._onMSEStartStreaming=function(){this._loaded_metadata_received&&(this._config.isLive||(p.a.v(this.TAG,"Resume transmuxing task due to ManagedMediaSource onStartStreaming"),this._loading_controller.resumeTransmuxer()))},W.prototype._onMSEEndStreaming=function(){this._config.isLive||(p.a.v(this.TAG,"Suspend transmuxing task due to ManagedMediaSource onEndStreaming"),this._loading_controller.suspendTransmuxer())},W.prototype._onMediaLoadedMetadata=function(q){this._loaded_metadata_received=!0,this._pending_seek_time!=null&&(this._seeking_handler.seek(this._pending_seek_time),this._pending_seek_time=null)},W.prototype._onRequestDirectSeek=function(q){this._seeking_handler.directSeek(q)},W.prototype._onRequiredUnbufferedSeek=function(q){this._mse_controller.flush(),this._transmuxer.seek(q)},W.prototype._onRequestPauseTransmuxer=function(){this._transmuxer.pause()},W.prototype._onRequestResumeTransmuxer=function(){this._transmuxer.resume()},W.prototype._fillStatisticsInfo=function(q){if(q.playerType="MSEPlayer",!(this._media_element instanceof HTMLVideoElement))return q;var Q=!0,se=0,ae=0;if(this._media_element.getVideoPlaybackQuality){var re=this._media_element.getVideoPlaybackQuality();se=re.totalVideoFrames,ae=re.droppedVideoFrames}else this._media_element.webkitDecodedFrameCount!=null?(se=this._media_element.webkitDecodedFrameCount,ae=this._media_element.webkitDroppedFrameCount):Q=!1;return Q&&(q.decodedFrames=se,q.droppedFrames=ae),q},W})(),H=i(18),U=i(8),K=(function(){function W(q,Q){this.TAG="PlayerEngineDedicatedThread",this._emitter=new v,this._media_element=null,this._worker_destroying=!1,this._seeking_handler=null,this._loading_controller=null,this._startup_stall_jumper=null,this._live_latency_chaser=null,this._live_latency_synchronizer=null,this._pending_seek_time=null,this._media_info=null,this._statistics_info=null,this.e=null,this._media_data_source=q,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q),q.isLive===!0&&(this._config.isLive=!0),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this),onMediaLoadedMetadata:this._onMediaLoadedMetadata.bind(this),onMediaTimeUpdate:this._onMediaTimeUpdate.bind(this),onMediaReadyStateChanged:this._onMediaReadyStateChange.bind(this)},U.a.registerListener(this.e.onLoggingConfigChanged),this._worker=H(24,{all:!0}),this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",media_data_source:this._media_data_source,config:this._config}),this._worker.postMessage({cmd:"logging_config",logging_config:U.a.getConfig()})}return W.isSupported=function(){return!!self.Worker&&(!(!self.MediaSource||!("canConstructInDedicatedWorker"in self.MediaSource)||self.MediaSource.canConstructInDedicatedWorker!==!0)||!(!self.ManagedMediaSource||!("canConstructInDedicatedWorker"in self.ManagedMediaSource)||self.ManagedMediaSource.canConstructInDedicatedWorker!==!0))},W.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this.unload(),this.detachMediaElement(),this._worker_destroying=!0,this._worker.postMessage({cmd:"destroy"}),U.a.removeListener(this.e.onLoggingConfigChanged),this.e=null,this._media_data_source=null,this._emitter.removeAllListeners(),this._emitter=null},W.prototype.on=function(q,Q){var se=this;this._emitter.addListener(q,Q),q===S.a.MEDIA_INFO&&this._media_info?Promise.resolve().then((function(){return se._emitter.emit(S.a.MEDIA_INFO,se.mediaInfo)})):q==S.a.STATISTICS_INFO&&this._statistics_info&&Promise.resolve().then((function(){return se._emitter.emit(S.a.STATISTICS_INFO,se.statisticsInfo)}))},W.prototype.off=function(q,Q){this._emitter.removeListener(q,Q)},W.prototype.attachMediaElement=function(q){this._media_element=q,this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element.addEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element.addEventListener("readystatechange",this.e.onMediaReadyStateChanged),this._worker.postMessage({cmd:"initialize_mse"})},W.prototype.detachMediaElement=function(){this._worker.postMessage({cmd:"shutdown_mse"}),this._media_element&&(this._media_element.removeEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element.removeEventListener("readystatechange",this.e.onMediaReadyStateChanged),this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element=null)},W.prototype.load=function(){this._worker.postMessage({cmd:"load"}),this._seeking_handler=new P(this._config,this._media_element,this._onRequiredUnbufferedSeek.bind(this)),this._loading_controller=new M(this._config,this._media_element,this._onRequestPauseTransmuxer.bind(this),this._onRequestResumeTransmuxer.bind(this)),this._startup_stall_jumper=new O(this._media_element,this._onRequestDirectSeek.bind(this)),this._config.isLive&&this._config.liveBufferLatencyChasing&&(this._live_latency_chaser=new L(this._config,this._media_element,this._onRequestDirectSeek.bind(this))),this._config.isLive&&this._config.liveSync&&(this._live_latency_synchronizer=new B(this._config,this._media_element)),this._media_element.readyState>0&&this._seeking_handler.directSeek(0)},W.prototype.unload=function(){var q,Q,se,ae,re,Ce;(q=this._media_element)===null||q===void 0||q.pause(),this._worker.postMessage({cmd:"unload"}),(Q=this._live_latency_synchronizer)===null||Q===void 0||Q.destroy(),this._live_latency_synchronizer=null,(se=this._live_latency_chaser)===null||se===void 0||se.destroy(),this._live_latency_chaser=null,(ae=this._startup_stall_jumper)===null||ae===void 0||ae.destroy(),this._startup_stall_jumper=null,(re=this._loading_controller)===null||re===void 0||re.destroy(),this._loading_controller=null,(Ce=this._seeking_handler)===null||Ce===void 0||Ce.destroy(),this._seeking_handler=null},W.prototype.play=function(){return this._media_element.play()},W.prototype.pause=function(){this._media_element.pause()},W.prototype.seek=function(q){this._media_element&&this._seeking_handler?this._seeking_handler.seek(q):this._pending_seek_time=q},Object.defineProperty(W.prototype,"mediaInfo",{get:function(){return Object.assign({},this._media_info)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"statisticsInfo",{get:function(){return Object.assign({},this._statistics_info)},enumerable:!1,configurable:!0}),W.prototype._onLoggingConfigChanged=function(q){var Q;(Q=this._worker)===null||Q===void 0||Q.postMessage({cmd:"logging_config",logging_config:q})},W.prototype._onMSEUpdateEnd=function(){this._config.isLive&&this._config.liveBufferLatencyChasing&&this._live_latency_chaser&&this._live_latency_chaser.notifyBufferedRangeUpdate(),this._loading_controller.notifyBufferedPositionChanged()},W.prototype._onMSEBufferFull=function(){p.a.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._loading_controller.suspendTransmuxer()},W.prototype._onMediaLoadedMetadata=function(q){this._pending_seek_time!=null&&(this._seeking_handler.seek(this._pending_seek_time),this._pending_seek_time=null)},W.prototype._onRequestDirectSeek=function(q){this._seeking_handler.directSeek(q)},W.prototype._onRequiredUnbufferedSeek=function(q){this._worker.postMessage({cmd:"unbuffered_seek",milliseconds:q})},W.prototype._onRequestPauseTransmuxer=function(){this._worker.postMessage({cmd:"pause_transmuxer"})},W.prototype._onRequestResumeTransmuxer=function(){this._worker.postMessage({cmd:"resume_transmuxer"})},W.prototype._onMediaTimeUpdate=function(q){this._worker.postMessage({cmd:"timeupdate",current_time:q.target.currentTime})},W.prototype._onMediaReadyStateChange=function(q){this._worker.postMessage({cmd:"readystatechange",ready_state:q.target.readyState})},W.prototype._onWorkerMessage=function(q){var Q,se=q.data,ae=se.msg;if(ae=="destroyed"||this._worker_destroying)return this._worker_destroying=!1,(Q=this._worker)===null||Q===void 0||Q.terminate(),void(this._worker=null);switch(ae){case"mse_init":var re=se;"ManagedMediaSource"in self&&!("MediaSource"in self)&&(this._media_element.disableRemotePlayback=!0),this._media_element.srcObject=re.handle;break;case"mse_event":(re=se).event==C.a.UPDATE_END?this._onMSEUpdateEnd():re.event==C.a.BUFFER_FULL&&this._onMSEBufferFull();break;case"transmuxing_event":if((re=se).event==_.a.MEDIA_INFO){var Ce=se;this._media_info=Ce.info,this._emitter.emit(S.a.MEDIA_INFO,Object.assign({},Ce.info))}else if(re.event==_.a.STATISTICS_INFO){var Ve=se;this._statistics_info=this._fillStatisticsInfo(Ve.info),this._emitter.emit(S.a.STATISTICS_INFO,Object.assign({},Ve.info))}else if(re.event==_.a.RECOMMEND_SEEKPOINT){var ge=se;this._media_element&&!this._config.accurateSeek&&this._seeking_handler.directSeek(ge.milliseconds/1e3)}break;case"player_event":if((re=se).event==S.a.ERROR){var xe=se;this._emitter.emit(S.a.ERROR,xe.error_type,xe.error_detail,xe.info)}else if("extraData"in re){var Ge=se;this._emitter.emit(Ge.event,Ge.extraData)}break;case"logcat_callback":re=se,p.a.emitter.emit("log",re.type,re.logcat);break;case"buffered_position_changed":re=se,this._loading_controller.notifyBufferedPositionChanged(re.buffered_position_milliseconds/1e3)}},W.prototype._fillStatisticsInfo=function(q){if(q.playerType="MSEPlayer",!(this._media_element instanceof HTMLVideoElement))return q;var Q=!0,se=0,ae=0;if(this._media_element.getVideoPlaybackQuality){var re=this._media_element.getVideoPlaybackQuality();se=re.totalVideoFrames,ae=re.droppedVideoFrames}else this._media_element.webkitDecodedFrameCount!=null?(se=this._media_element.webkitDecodedFrameCount,ae=this._media_element.webkitDroppedFrameCount):Q=!1;return Q&&(q.decodedFrames=se,q.droppedFrames=ae),q},W})(),Y=(function(){function W(q,Q){this.TAG="MSEPlayer",this._type="MSEPlayer",this._media_element=null,this._player_engine=null;var se=q.type.toLowerCase();if(se!=="mse"&&se!=="mpegts"&&se!=="m2ts"&&se!=="flv")throw new E.b("MSEPlayer requires an mpegts/m2ts/flv MediaDataSource input!");if(Q&&Q.enableWorkerForMSE&&K.isSupported())try{this._player_engine=new K(q,Q)}catch{p.a.e(this.TAG,"Error while initializing PlayerEngineDedicatedThread, fallback to PlayerEngineMainThread"),this._player_engine=new j(q,Q)}else this._player_engine=new j(q,Q)}return W.prototype.destroy=function(){this._player_engine.destroy(),this._player_engine=null,this._media_element=null},W.prototype.on=function(q,Q){this._player_engine.on(q,Q)},W.prototype.off=function(q,Q){this._player_engine.off(q,Q)},W.prototype.attachMediaElement=function(q){this._media_element=q,this._player_engine.attachMediaElement(q)},W.prototype.detachMediaElement=function(){this._media_element=null,this._player_engine.detachMediaElement()},W.prototype.load=function(){this._player_engine.load()},W.prototype.unload=function(){this._player_engine.unload()},W.prototype.play=function(){return this._player_engine.play()},W.prototype.pause=function(){this._player_engine.pause()},Object.defineProperty(W.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"buffered",{get:function(){return this._media_element.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"duration",{get:function(){return this._media_element.duration},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"volume",{get:function(){return this._media_element.volume},set:function(q){this._media_element.volume=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"muted",{get:function(){return this._media_element.muted},set:function(q){this._media_element.muted=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"currentTime",{get:function(){return this._media_element?this._media_element.currentTime:0},set:function(q){this._player_engine.seek(q)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"mediaInfo",{get:function(){return this._player_engine.mediaInfo},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"statisticsInfo",{get:function(){return this._player_engine.statisticsInfo},enumerable:!1,configurable:!0}),W})(),ie=(function(){function W(q,Q){this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new g.a,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q);var se=q.type.toLowerCase();if(se==="mse"||se==="mpegts"||se==="m2ts"||se==="flv")throw new E.b("NativePlayer does't support mse/mpegts/m2ts/flv MediaDataSource input!");if(q.hasOwnProperty("segments"))throw new E.b("NativePlayer(".concat(q.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=q,this._mediaElement=null}return W.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},W.prototype.on=function(q,Q){var se=this;q===S.a.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then((function(){se._emitter.emit(S.a.MEDIA_INFO,se.mediaInfo)})):q===S.a.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then((function(){se._emitter.emit(S.a.STATISTICS_INFO,se.statisticsInfo)})),this._emitter.addListener(q,Q)},W.prototype.off=function(q,Q){this._emitter.removeListener(q,Q)},W.prototype.attachMediaElement=function(q){if(this._mediaElement=q,q.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{q.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch{}},W.prototype.detachMediaElement=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},W.prototype.load=function(){if(!this._mediaElement)throw new E.a("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},W.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},W.prototype.play=function(){return this._mediaElement.play()},W.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(W.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(q){this._mediaElement.volume=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(q){this._mediaElement.muted=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(q){this._mediaElement?this._mediaElement.currentTime=q:this._pendingSeekTime=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"mediaInfo",{get:function(){var q={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(q.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(q.width=this._mediaElement.videoWidth,q.height=this._mediaElement.videoHeight)),q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"statisticsInfo",{get:function(){var q={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return q;var Q=!0,se=0,ae=0;if(this._mediaElement.getVideoPlaybackQuality){var re=this._mediaElement.getVideoPlaybackQuality();se=re.totalVideoFrames,ae=re.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(se=this._mediaElement.webkitDecodedFrameCount,ae=this._mediaElement.webkitDroppedFrameCount):Q=!1;return Q&&(q.decodedFrames=se,q.droppedFrames=ae),q},enumerable:!1,configurable:!0}),W.prototype._onvLoadedMetadata=function(q){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(S.a.MEDIA_INFO,this.mediaInfo)},W.prototype._reportStatisticsInfo=function(){this._emitter.emit(S.a.STATISTICS_INFO,this.statisticsInfo)},W})();a.a.install();var te={createPlayer:function(W,q){var Q=W;if(Q==null||typeof Q!="object")throw new E.b("MediaDataSource must be an javascript object!");if(!Q.hasOwnProperty("type"))throw new E.b("MediaDataSource must has type field to indicate video file type!");switch(Q.type){case"mse":case"mpegts":case"m2ts":case"flv":return new Y(Q,q);default:return new ie(Q,q)}},isSupported:function(){return d.supportMSEH264Playback()},getFeatureList:function(){return d.getFeatureList()}};te.BaseLoader=h.a,te.LoaderStatus=h.c,te.LoaderErrors=h.b,te.Events=S.a,te.ErrorTypes=x.b,te.ErrorDetails=x.a,te.MSEPlayer=Y,te.NativePlayer=ie,te.LoggingControl=U.a,Object.defineProperty(te,"version",{enumerable:!0,get:function(){return"1.8.0"}}),r.default=te}])}))})(uj)),uj.exports}var V$t=j$t();const Sce=rd(V$t);class z$t{constructor(){this.liveData=null,this.lastFetchTime=null,this.cacheExpiry=600*1e3}async getLiveConfig(){try{const t=yl.getLiveConfigUrl();if(t)return{name:"直播配置",url:t,type:"live"};const n=await yl.getConfigData();return n&&n.lives&&Array.isArray(n.lives)&&n.lives.length>0?n.lives[0]:null}catch(t){return console.error("获取直播配置失败:",t),null}}async getLiveData(t=!1){try{const n=Date.now(),r=this.liveData&&this.lastFetchTime&&n-this.lastFetchTimel.trim()).filter(l=>l),i=new Map,a=[];let s=null;for(let l=0;l0){const E=h.substring(0,p);E.includes("=")&&(v=E,g=h.substring(p+1).trim())}const y={};if(v){const E=v.matchAll(/(\w+(?:-\w+)*)="([^"]*)"/g);for(const _ of E)y[_[1]]=_[2]}const S=y["tvg-name"]||g,k=y["group-title"]||"未分组",C=y["tvg-logo"]||this.generateLogoUrl(S,n),x=this.extractQualityInfo(g);s={name:S,displayName:g,group:k,logo:C,tvgId:y["tvg-id"]||"",tvgName:y["tvg-name"]||S,quality:x.quality,resolution:x.resolution,codec:x.codec,url:null}}}else if(c.startsWith("http")&&s){s.url=c,a.push(s);const d=s.group;i.has(d)||i.set(d,{name:d,channels:[]});const h=i.get(d),p=h.channels.find(v=>v.name===s.name);p?(p.routes||(p.routes=[{id:1,name:"线路1",url:p.url,quality:p.quality,resolution:p.resolution,codec:p.codec}]),p.routes.push({id:p.routes.length+1,name:`线路${p.routes.length+1}`,url:s.url,quality:s.quality,resolution:s.resolution,codec:s.codec}),p.currentRoute=p.routes[0]):h.channels.push(s),s=null}}}return{config:n,groups:Array.from(i.values()),channels:a,totalChannels:a.length}}extractQualityInfo(t){const n={quality:"",resolution:"",codec:""},r=[/高码/,/超清/,/高清/,/标清/,/流畅/],i=[/4K/i,/1080[pP]/,/720[pP]/,/576[pP]/,/480[pP]/,/(\d+)[pP]/],a=[/HEVC/i,/H\.?264/i,/H\.?265/i,/AVC/i],s=[/(\d+)[-\s]?FPS/i,/(\d+)帧/];for(const l of r){const c=t.match(l);if(c){n.quality=c[0];break}}for(const l of i){const c=t.match(l);if(c){n.resolution=c[0];break}}for(const l of a){const c=t.match(l);if(c){n.codec=c[0];break}}for(const l of s){const c=t.match(l);if(c){n.fps=c[1]||c[0];break}}return n}parseTXT(t,n){const r=t.split(` `).map(l=>l.trim()).filter(l=>l),i=new Map,a=[];let s="未分组";for(const l of r)if(l.includes("#genre#")){const c=l.indexOf("#genre#");c>0?s=l.substring(0,c).replace(/,$/,"").trim():s=l.replace("#genre#","").trim(),i.has(s)||i.set(s,{name:s,channels:[]})}else if(l.includes(",http")){const c=l.split(",");if(c.length>=2){const d=c[0].trim(),h=c.slice(1).join(",").trim(),p={name:d,group:s,logo:this.generateLogoUrl(d,n),tvgName:d,url:h};a.push(p),i.has(s)||i.set(s,{name:s,channels:[]}),i.get(s).channels.push(p)}}return{config:n,groups:Array.from(i.values()),channels:a,totalChannels:a.length}}generateLogoUrl(t,n){return n.logo&&n.logo.includes("{name}")?n.logo.replace("{name}",encodeURIComponent(t)):""}getEPGUrl(t,n,r){return r.epg&&r.epg.includes("{name}")&&r.epg.includes("{date}")?r.epg.replace("{name}",encodeURIComponent(t)).replace("{date}",n):""}searchChannels(t){if(!this.liveData||!t)return[];const n=t.toLowerCase();return this.liveData.channels.filter(r=>r.name.toLowerCase().includes(n)||r.group.toLowerCase().includes(n))}getChannelsByGroup(t){if(!this.liveData)return[];const n=this.liveData.groups.find(r=>r.name===t);return n?n.channels:[]}clearCache(){this.liveData=null,this.lastFetchTime=null,console.log("直播数据缓存已清除")}getStatus(){return{hasData:!!this.liveData,lastFetchTime:this.lastFetchTime,cacheAge:this.lastFetchTime?Date.now()-this.lastFetchTime:null,isCacheValid:this.liveData&&this.lastFetchTime&&Date.now()-this.lastFetchTime{if(!g)return"未知";const y=g.indexOf("#");return y!==-1&&y{try{const g=JSON.parse(localStorage.getItem(xce)||"[]");a.value=[],g.forEach(y=>{const S=y.url||y.value||"";if(!S)return;const k=s(S);a.value.push({value:S,label:k,url:S})}),console.log("直播代理选项加载完成:",a.value.length,"个选项")}catch(g){console.error("加载直播代理选项失败:",g)}},c=()=>{try{const g=localStorage.getItem(kce);g&&g!=="null"?i.value=g:i.value="disabled",console.log("直播代理选择状态加载:",i.value)}catch(g){console.error("加载直播代理选择状态失败:",g),i.value="disabled"}},d=g=>{try{localStorage.setItem(kce,g),console.log("直播代理选择状态已保存:",g)}catch(y){console.error("保存直播代理选择状态失败:",y)}},h=g=>{i.value=g,d(g),r("change",{value:g,enabled:g!=="disabled",url:g==="disabled"?"":g}),console.log("直播代理选择已变更:",{value:g,enabled:g!=="disabled"})},p=g=>{g.key===xce&&l()},v=()=>{l()};return hn(()=>{l(),c(),window.addEventListener("storage",p),window.addEventListener("addressHistoryChanged",v)}),ii(()=>{window.removeEventListener("storage",p),window.removeEventListener("addressHistoryChanged",v)}),t({getCurrentSelection:()=>i.value,isEnabled:()=>i.value!=="disabled",getProxyUrl:()=>i.value==="disabled"?"":i.value,refreshOptions:l}),(g,y)=>{const S=Te("a-option"),k=Te("a-select");return z(),X("div",H$t,[y[1]||(y[1]=I("svg",{class:"selector-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$(k,{"model-value":i.value,onChange:h,class:"proxy-select",size:"small",placeholder:"选择代理播放地址"},{default:fe(()=>[$(S,{value:"disabled",title:"关闭代理播放功能"},{default:fe(()=>[...y[0]||(y[0]=[He("代理播放:关闭",-1)])]),_:1}),(z(!0),X(Pt,null,cn(a.value,C=>(z(),Ze(S,{key:C.value,value:C.value,title:`${C.label} -完整链接: ${C.url||C.value}`},{default:fe(()=>[He(" 代理播放:"+Fe(C.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])}}},G$t=cr(W$t,[["__scopeId","data-v-638b32e0"]]),K$t={class:"live-container"},q$t={class:"simple-header"},Y$t={class:"header-actions"},X$t={class:"live-content"},Z$t={key:0,class:"loading-container"},J$t={key:1,class:"error-container"},Q$t={key:2,class:"no-config-container"},eOt={key:3,class:"live-main"},tOt={class:"groups-panel"},nOt={class:"panel-header"},rOt={class:"group-count"},iOt={class:"groups-list"},oOt=["onClick"],sOt={class:"group-info"},aOt={class:"group-name"},lOt={class:"channel-count"},uOt={class:"channels-panel"},cOt={class:"panel-header"},dOt={class:"channel-count"},fOt={class:"channels-list"},hOt=["onClick"],pOt={class:"channel-logo"},vOt=["src","alt"],mOt={class:"channel-info"},gOt={class:"channel-name"},yOt={class:"channel-group"},bOt={class:"player-panel"},_Ot={class:"panel-header"},SOt={key:0,class:"player-controls"},kOt={class:"player-content"},xOt={key:0,class:"no-selection"},COt={key:1,class:"player-wrapper"},wOt={class:"player-controls-area"},EOt={class:"live-proxy-control"},TOt={class:"video-container"},AOt=["src"],IOt={key:0,class:"video-loading"},LOt={key:1,class:"video-error"},DOt={class:"error-detail"},POt={__name:"Live",setup(e){const t=ma();let n=null;const r=ue(!1),i=ue(""),a=ue(null),s=ue(!0),l=ue(""),c=ue(""),d=ue(null),h=ue(1),p=ue(!1),v=ue(""),g=ue(null),y=ue(!1),S=ue(!1),k=ue(""),C=ue(null),x=F(()=>{if(!a.value)return[];let Ue=a.value.groups;if(l.value){const _e=l.value.toLowerCase();Ue=Ue.filter(ve=>ve.name.toLowerCase().includes(_e)||ve.channels.some(me=>me.name.toLowerCase().includes(_e)))}return Ue}),E=F(()=>{if(!a.value||!c.value)return[];const Ue=x.value.find(ve=>ve.name===c.value);if(!Ue)return[];let _e=Ue.channels;if(l.value){const ve=l.value.toLowerCase();_e=_e.filter(me=>me.name.toLowerCase().includes(ve))}return _e}),_=F(()=>!d.value||!d.value.routes?[]:d.value.routes.map(Ue=>({name:Ue.name,id:Ue.id,url:Ue.url}))),T=F(()=>{if(!d.value||!d.value.routes)return"默认";const Ue=d.value.routes.find(_e=>_e.id===h.value);return Ue?Ue.name:"默认"}),D=async(Ue=!1)=>{r.value=!0,i.value="";try{if(!await cU.getLiveConfig()){s.value=!1;return}s.value=!0;const ve=await cU.getLiveData(Ue);a.value=ve,ve.groups.length>0&&!c.value&&(c.value=ve.groups[0].name),console.log("直播数据加载成功:",ve)}catch(_e){console.error("加载直播数据失败:",_e),i.value=_e.message||"加载直播数据失败"}finally{r.value=!1}},P=()=>{D(!0)},M=Ue=>{c.value=Ue,d.value=null},O=Ue=>{d.value=Ue,v.value="",dn(()=>{if(Ue&&Ue.routes&&Ue.routes.length>0?h.value=Number(Ue.routes[0].id):h.value=1,g.value){const _e=H();console.log("=== selectChannel 设置视频源 ==="),console.log("设置前 videoPlayer.src:",g.value.src),console.log("新的 src:",_e),g.value.src=_e,console.log("设置后 videoPlayer.src:",g.value.src),g.value.load()}L()})};function L(){n&&(n.destroy(),n=null);const Ue=H();console.log("=== setupMpegtsPlayer ==="),console.log("mpegts播放器使用的URL:",Ue),console.log("当前videoPlayer.src:",g.value?.src),!(!Ue||!g.value)&&(Ue.endsWith(".ts")||Ue.includes("mpegts")||Ue.includes("udpxy")||Ue.includes("/udp/")||Ue.includes("rtp://")||Ue.includes("udp://"))&&Sce.isSupported()&&(n=Sce.createPlayer({type:"mpegts",url:Ue}),n.attachMediaElement(g.value),n.load(),n.play())}ii(()=>{n&&(n.destroy(),n=null)});const B=()=>{if(!d.value)return"";if(d.value.routes&&d.value.routes.length>0){const Ue=d.value.routes.find(_e=>_e.id===h.value);return Ue?Ue.url:d.value.routes[0].url}return d.value.url||""},j=()=>{const Ue=B();return Ue?S.value&&k.value?(console.log("🔄 [直播代理] 构建代理URL:",{originalUrl:Ue,proxyAddress:k.value,enabled:S.value}),L4e(Ue,k.value,{})):Ue:""},H=()=>{const Ue=B(),_e=j(),ve=S.value?_e:Ue;return console.log("=== getVideoUrl 调试信息 ==="),console.log("直播代理状态:",S.value),console.log("直播代理URL:",k.value),console.log("原始URL:",Ue),console.log("代理URL:",_e),console.log("最终URL:",ve),console.log("========================"),ve},U=Ue=>{const _e=Number(Ue.target?Ue.target.value:Ue);if(!d.value||!d.value.routes)return;const ve=d.value.routes.find(me=>me.id===_e);ve&&(h.value=_e,v.value="",dn(()=>{if(g.value){const me=H();console.log("=== switchRoute 设置视频源 ==="),console.log("设置前 videoPlayer.src:",g.value.src),console.log("新的 src:",me),g.value.src=me,console.log("设置后 videoPlayer.src:",g.value.src),g.value.load()}L()}),yt.success(`已切换到${ve.name}`))},K=Ue=>{l.value=Ue,x.value.length>0&&!x.value.find(_e=>_e.name===c.value)&&(c.value=x.value[0].name)},Y=()=>{l.value=""},ie=()=>{t.push("/settings")},te=async()=>{if(d.value)try{await navigator.clipboard.writeText(d.value.url),yt.success("频道链接已复制到剪贴板")}catch(Ue){console.error("复制失败:",Ue),yt.error("复制失败")}},W=()=>{d.value&&window.open(d.value.url,"_blank")},q=Ue=>{Ue.target.style.display="none"},Q=Ue=>{console.error("视频播放错误:",Ue),v.value="无法播放此频道,可能是网络问题或频道源不可用",p.value=!1},se=()=>{p.value=!0,v.value=""},ae=()=>{p.value=!1},re=()=>{g.value&&(v.value="",g.value.load(),L())},Ce=Ue=>{if(!d.value||!d.value.routes)return;const _e=d.value.routes.find(ve=>ve.name===Ue);_e&&U(_e.id)},Ve=Ue=>{if(console.log("=== 直播代理播放地址变更 ==="),console.log("代理数据:",Ue),console.log("变更前状态:",{enabled:S.value,url:k.value}),S.value=Ue.enabled,k.value=Ue.url,console.log("变更后状态:",{enabled:S.value,url:k.value}),d.value&&(n&&(n.destroy(),n=null),g.value)){v.value="",p.value=!0;const _e=H();console.log("直播代理变更后重新设置视频源:",_e),g.value.src=_e,g.value.load(),dn(()=>{L()})}yt.success(`直播代理播放: ${Ue.enabled?"已启用":"已关闭"}`)},ge=()=>{if(y.value=!y.value,console.log("调试模式:",y.value?"开启":"关闭"),y.value){console.log("=== 调试信息详情 ===");const _e=localStorage.getItem("live-proxy-selection");console.log("localStorage中的直播代理选择:",_e),console.log("直播代理启用状态:",S.value),console.log("直播代理URL:",k.value),console.log("原始频道URL:",B()),console.log("代理后URL:",j()),console.log("传递给DebugInfoDialog的proxy-url:",S.value&&k.value?j():""),C.value&&(console.log("LiveProxySelector组件状态:"),console.log("- getCurrentSelection():",C.value.getCurrentSelection?.()),console.log("- isEnabled():",C.value.isEnabled?.()),console.log("- getProxyUrl():",C.value.getProxyUrl?.())),console.log("==================")}},xe=()=>{d.value=null,h.value=1,v.value="",n&&(n.destroy(),n=null)};It(d,Ue=>{Ue&&console.log("选中频道:",Ue.name,Ue.url)});const Ge=async()=>{try{const _e=await(await fetch("/json/tv.m3u")).text(),{default:ve}=await fc(async()=>{const{default:qe}=await Promise.resolve().then(()=>U$t);return{default:qe}},void 0),Oe=new ve().parseM3U(_e,{});a.value=Oe,Oe.groups&&Oe.groups.length>0&&(c.value=Oe.groups[0].name)}catch(Ue){console.error("加载本地M3U文件失败:",Ue)}},tt=()=>{try{const _e=localStorage.getItem("live-proxy-selection");console.log("从localStorage读取的直播代理选择:",_e),_e&&_e!=="null"&&_e!=="disabled"?(S.value=!0,k.value=_e,console.log("初始化直播代理状态:",{enabled:!0,url:_e})):(S.value=!1,k.value="",console.log("初始化直播代理状态:",{enabled:!1,url:"",reason:_e||"null/disabled"}))}catch(Ue){console.error("初始化直播代理状态失败:",Ue),S.value=!1,k.value=""}};return hn(async()=>{tt();try{await D()}catch(Ue){console.error("加载直播数据失败:",Ue),Ge()}}),(Ue,_e)=>{const ve=Te("a-button"),me=Te("a-input-search"),Oe=Te("a-spin"),qe=Te("a-result");return z(),X("div",K$t,[I("div",q$t,[_e[2]||(_e[2]=I("span",{class:"navigation-title"},"Live",-1)),I("div",Y$t,[$(ve,{type:"text",onClick:P,loading:r.value,size:"small"},{icon:fe(()=>[$(rt(zc))]),default:fe(()=>[_e[1]||(_e[1]=He(" 刷新 ",-1))]),_:1},8,["loading"]),$(me,{modelValue:l.value,"onUpdate:modelValue":_e[0]||(_e[0]=Ke=>l.value=Ke),placeholder:"搜索频道...",style:{width:"200px"},size:"small",onSearch:K,onClear:Y,"allow-clear":""},null,8,["modelValue"])])]),I("div",X$t,[r.value&&!a.value?(z(),X("div",Z$t,[$(Oe,{size:32,tip:"正在加载直播数据..."})])):i.value?(z(),X("div",J$t,[$(qe,{status:"error",title:i.value,"sub-title":"请检查网络连接或直播配置"},{extra:fe(()=>[$(ve,{type:"primary",onClick:P},{default:fe(()=>[..._e[3]||(_e[3]=[He(" 重新加载 ",-1)])]),_:1}),$(ve,{onClick:ie},{default:fe(()=>[..._e[4]||(_e[4]=[He(" 检查设置 ",-1)])]),_:1})]),_:1},8,["title"])])):s.value?a.value?(z(),X("div",eOt,[I("div",tOt,[I("div",nOt,[_e[6]||(_e[6]=I("h3",null,"分组列表",-1)),I("span",rOt,Fe(x.value.length)+"个分组",1)]),I("div",iOt,[(z(!0),X(Pt,null,cn(x.value,Ke=>(z(),X("div",{key:Ke.name,class:de(["group-item",{active:c.value===Ke.name}]),onClick:at=>M(Ke.name)},[I("div",sOt,[I("span",aOt,Fe(Ke.name),1),I("span",lOt,Fe(Ke.channels.length),1)])],10,oOt))),128))])]),I("div",uOt,[I("div",cOt,[_e[7]||(_e[7]=I("h3",null,"频道列表",-1)),I("span",dOt,Fe(E.value.length)+"个频道",1)]),I("div",fOt,[(z(!0),X(Pt,null,cn(E.value,Ke=>(z(),X("div",{key:Ke.name,class:de(["channel-item",{active:d.value?.name===Ke.name}]),onClick:at=>O(Ke)},[I("div",pOt,[Ke.logo?(z(),X("img",{key:0,src:Ke.logo,alt:Ke.name,onError:q},null,40,vOt)):(z(),Ze(rt(u_),{key:1,class:"default-logo"}))]),I("div",mOt,[I("div",gOt,Fe(Ke.name),1),I("div",yOt,Fe(Ke.group),1)])],10,hOt))),128))])]),I("div",bOt,[I("div",_Ot,[_e[10]||(_e[10]=I("h3",null,"播放预览",-1)),d.value?(z(),X("div",SOt,[$(ve,{type:"text",size:"small",onClick:te},{icon:fe(()=>[$(rt(nA))]),default:fe(()=>[_e[8]||(_e[8]=He(" 复制链接 ",-1))]),_:1}),$(ve,{type:"text",size:"small",onClick:W},{icon:fe(()=>[$(rt(Nve))]),default:fe(()=>[_e[9]||(_e[9]=He(" 新窗口播放 ",-1))]),_:1})])):Ie("",!0)]),I("div",kOt,[d.value?(z(),X("div",COt,[I("div",wOt,[$(nK,{"episode-name":d.value.name,"is-live-mode":!0,"show-debug-button":!0,qualities:_.value,"current-quality":T.value,onQualityChange:Ce,onToggleDebug:ge,onClose:xe},null,8,["episode-name","qualities","current-quality"]),I("div",EOt,[$(G$t,{ref_key:"liveProxySelector",ref:C,onChange:Ve},null,512)])]),I("div",TOt,[I("video",{ref_key:"videoPlayer",ref:g,src:H(),controls:"",preload:"metadata",onError:Q,onLoadstart:se,onLoadeddata:ae}," 您的浏览器不支持视频播放 ",40,AOt),p.value?(z(),X("div",IOt,[$(Oe,{size:32,tip:"正在加载视频..."})])):Ie("",!0),v.value?(z(),X("div",LOt,[$(rt($c),{class:"error-icon"}),_e[13]||(_e[13]=I("p",null,"视频加载失败",-1)),I("p",DOt,Fe(v.value),1),$(ve,{onClick:re},{default:fe(()=>[..._e[12]||(_e[12]=[He("重试",-1)])]),_:1})])):Ie("",!0)])])):(z(),X("div",xOt,[$(rt(By),{class:"no-selection-icon"}),_e[11]||(_e[11]=I("p",null,"请选择一个频道开始播放",-1))]))])])])):Ie("",!0):(z(),X("div",Q$t,[$(qe,{status:"info",title:"未配置直播源","sub-title":"请先在设置页面配置直播地址"},{extra:fe(()=>[$(ve,{type:"primary",onClick:ie},{default:fe(()=>[..._e[5]||(_e[5]=[He(" 前往设置 ",-1)])]),_:1})]),_:1})]))]),$(rK,{visible:y.value,"video-url":B(),headers:{},"player-type":"default","detected-format":"m3u8","proxy-url":S.value&&k.value?j():"",onClose:ge},null,8,["visible","video-url","proxy-url"])])}}},ROt=cr(POt,[["__scopeId","data-v-725ef902"]]);var f8={exports:{}},cj={exports:{}},dj={};/** +完整链接: ${C.url||C.value}`},{default:fe(()=>[He(" 代理播放:"+Ne(C.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])}}},G$t=cr(W$t,[["__scopeId","data-v-638b32e0"]]),K$t={class:"live-container"},q$t={class:"simple-header"},Y$t={class:"header-actions"},X$t={class:"live-content"},Z$t={key:0,class:"loading-container"},J$t={key:1,class:"error-container"},Q$t={key:2,class:"no-config-container"},eOt={key:3,class:"live-main"},tOt={class:"groups-panel"},nOt={class:"panel-header"},rOt={class:"group-count"},iOt={class:"groups-list"},oOt=["onClick"],sOt={class:"group-info"},aOt={class:"group-name"},lOt={class:"channel-count"},uOt={class:"channels-panel"},cOt={class:"panel-header"},dOt={class:"channel-count"},fOt={class:"channels-list"},hOt=["onClick"],pOt={class:"channel-logo"},vOt=["src","alt"],mOt={class:"channel-info"},gOt={class:"channel-name"},yOt={class:"channel-group"},bOt={class:"player-panel"},_Ot={class:"panel-header"},SOt={key:0,class:"player-controls"},kOt={class:"player-content"},xOt={key:0,class:"no-selection"},COt={key:1,class:"player-wrapper"},wOt={class:"player-controls-area"},EOt={class:"live-proxy-control"},TOt={class:"video-container"},AOt=["src"],IOt={key:0,class:"video-loading"},LOt={key:1,class:"video-error"},DOt={class:"error-detail"},POt={__name:"Live",setup(e){const t=ma();let n=null;const r=ue(!1),i=ue(""),a=ue(null),s=ue(!0),l=ue(""),c=ue(""),d=ue(null),h=ue(1),p=ue(!1),v=ue(""),g=ue(null),y=ue(!1),S=ue(!1),k=ue(""),C=ue(null),x=F(()=>{if(!a.value)return[];let Ue=a.value.groups;if(l.value){const _e=l.value.toLowerCase();Ue=Ue.filter(ve=>ve.name.toLowerCase().includes(_e)||ve.channels.some(me=>me.name.toLowerCase().includes(_e)))}return Ue}),E=F(()=>{if(!a.value||!c.value)return[];const Ue=x.value.find(ve=>ve.name===c.value);if(!Ue)return[];let _e=Ue.channels;if(l.value){const ve=l.value.toLowerCase();_e=_e.filter(me=>me.name.toLowerCase().includes(ve))}return _e}),_=F(()=>!d.value||!d.value.routes?[]:d.value.routes.map(Ue=>({name:Ue.name,id:Ue.id,url:Ue.url}))),T=F(()=>{if(!d.value||!d.value.routes)return"默认";const Ue=d.value.routes.find(_e=>_e.id===h.value);return Ue?Ue.name:"默认"}),D=async(Ue=!1)=>{r.value=!0,i.value="";try{if(!await cU.getLiveConfig()){s.value=!1;return}s.value=!0;const ve=await cU.getLiveData(Ue);a.value=ve,ve.groups.length>0&&!c.value&&(c.value=ve.groups[0].name),console.log("直播数据加载成功:",ve)}catch(_e){console.error("加载直播数据失败:",_e),i.value=_e.message||"加载直播数据失败"}finally{r.value=!1}},P=()=>{D(!0)},M=Ue=>{c.value=Ue,d.value=null},O=Ue=>{d.value=Ue,v.value="",dn(()=>{if(Ue&&Ue.routes&&Ue.routes.length>0?h.value=Number(Ue.routes[0].id):h.value=1,g.value){const _e=H();console.log("=== selectChannel 设置视频源 ==="),console.log("设置前 videoPlayer.src:",g.value.src),console.log("新的 src:",_e),g.value.src=_e,console.log("设置后 videoPlayer.src:",g.value.src),g.value.load()}L()})};function L(){n&&(n.destroy(),n=null);const Ue=H();console.log("=== setupMpegtsPlayer ==="),console.log("mpegts播放器使用的URL:",Ue),console.log("当前videoPlayer.src:",g.value?.src),!(!Ue||!g.value)&&(Ue.endsWith(".ts")||Ue.includes("mpegts")||Ue.includes("udpxy")||Ue.includes("/udp/")||Ue.includes("rtp://")||Ue.includes("udp://"))&&Sce.isSupported()&&(n=Sce.createPlayer({type:"mpegts",url:Ue}),n.attachMediaElement(g.value),n.load(),n.play())}ii(()=>{n&&(n.destroy(),n=null)});const B=()=>{if(!d.value)return"";if(d.value.routes&&d.value.routes.length>0){const Ue=d.value.routes.find(_e=>_e.id===h.value);return Ue?Ue.url:d.value.routes[0].url}return d.value.url||""},j=()=>{const Ue=B();return Ue?S.value&&k.value?(console.log("🔄 [直播代理] 构建代理URL:",{originalUrl:Ue,proxyAddress:k.value,enabled:S.value}),L4e(Ue,k.value,{})):Ue:""},H=()=>{const Ue=B(),_e=j(),ve=S.value?_e:Ue;return console.log("=== getVideoUrl 调试信息 ==="),console.log("直播代理状态:",S.value),console.log("直播代理URL:",k.value),console.log("原始URL:",Ue),console.log("代理URL:",_e),console.log("最终URL:",ve),console.log("========================"),ve},U=Ue=>{const _e=Number(Ue.target?Ue.target.value:Ue);if(!d.value||!d.value.routes)return;const ve=d.value.routes.find(me=>me.id===_e);ve&&(h.value=_e,v.value="",dn(()=>{if(g.value){const me=H();console.log("=== switchRoute 设置视频源 ==="),console.log("设置前 videoPlayer.src:",g.value.src),console.log("新的 src:",me),g.value.src=me,console.log("设置后 videoPlayer.src:",g.value.src),g.value.load()}L()}),yt.success(`已切换到${ve.name}`))},K=Ue=>{l.value=Ue,x.value.length>0&&!x.value.find(_e=>_e.name===c.value)&&(c.value=x.value[0].name)},Y=()=>{l.value=""},ie=()=>{t.push("/settings")},te=async()=>{if(d.value)try{await navigator.clipboard.writeText(d.value.url),yt.success("频道链接已复制到剪贴板")}catch(Ue){console.error("复制失败:",Ue),yt.error("复制失败")}},W=()=>{d.value&&window.open(d.value.url,"_blank")},q=Ue=>{Ue.target.style.display="none"},Q=Ue=>{console.error("视频播放错误:",Ue),v.value="无法播放此频道,可能是网络问题或频道源不可用",p.value=!1},se=()=>{p.value=!0,v.value=""},ae=()=>{p.value=!1},re=()=>{g.value&&(v.value="",g.value.load(),L())},Ce=Ue=>{if(!d.value||!d.value.routes)return;const _e=d.value.routes.find(ve=>ve.name===Ue);_e&&U(_e.id)},Ve=Ue=>{if(console.log("=== 直播代理播放地址变更 ==="),console.log("代理数据:",Ue),console.log("变更前状态:",{enabled:S.value,url:k.value}),S.value=Ue.enabled,k.value=Ue.url,console.log("变更后状态:",{enabled:S.value,url:k.value}),d.value&&(n&&(n.destroy(),n=null),g.value)){v.value="",p.value=!0;const _e=H();console.log("直播代理变更后重新设置视频源:",_e),g.value.src=_e,g.value.load(),dn(()=>{L()})}yt.success(`直播代理播放: ${Ue.enabled?"已启用":"已关闭"}`)},ge=()=>{if(y.value=!y.value,console.log("调试模式:",y.value?"开启":"关闭"),y.value){console.log("=== 调试信息详情 ===");const _e=localStorage.getItem("live-proxy-selection");console.log("localStorage中的直播代理选择:",_e),console.log("直播代理启用状态:",S.value),console.log("直播代理URL:",k.value),console.log("原始频道URL:",B()),console.log("代理后URL:",j()),console.log("传递给DebugInfoDialog的proxy-url:",S.value&&k.value?j():""),C.value&&(console.log("LiveProxySelector组件状态:"),console.log("- getCurrentSelection():",C.value.getCurrentSelection?.()),console.log("- isEnabled():",C.value.isEnabled?.()),console.log("- getProxyUrl():",C.value.getProxyUrl?.())),console.log("==================")}},xe=()=>{d.value=null,h.value=1,v.value="",n&&(n.destroy(),n=null)};It(d,Ue=>{Ue&&console.log("选中频道:",Ue.name,Ue.url)});const Ge=async()=>{try{const _e=await(await fetch("/json/tv.m3u")).text(),{default:ve}=await fc(async()=>{const{default:qe}=await Promise.resolve().then(()=>U$t);return{default:qe}},void 0),Oe=new ve().parseM3U(_e,{});a.value=Oe,Oe.groups&&Oe.groups.length>0&&(c.value=Oe.groups[0].name)}catch(Ue){console.error("加载本地M3U文件失败:",Ue)}},tt=()=>{try{const _e=localStorage.getItem("live-proxy-selection");console.log("从localStorage读取的直播代理选择:",_e),_e&&_e!=="null"&&_e!=="disabled"?(S.value=!0,k.value=_e,console.log("初始化直播代理状态:",{enabled:!0,url:_e})):(S.value=!1,k.value="",console.log("初始化直播代理状态:",{enabled:!1,url:"",reason:_e||"null/disabled"}))}catch(Ue){console.error("初始化直播代理状态失败:",Ue),S.value=!1,k.value=""}};return hn(async()=>{tt();try{await D()}catch(Ue){console.error("加载直播数据失败:",Ue),Ge()}}),(Ue,_e)=>{const ve=Te("a-button"),me=Te("a-input-search"),Oe=Te("a-spin"),qe=Te("a-result");return z(),X("div",K$t,[I("div",q$t,[_e[2]||(_e[2]=I("span",{class:"navigation-title"},"Live",-1)),I("div",Y$t,[$(ve,{type:"text",onClick:P,loading:r.value,size:"small"},{icon:fe(()=>[$(rt(zc))]),default:fe(()=>[_e[1]||(_e[1]=He(" 刷新 ",-1))]),_:1},8,["loading"]),$(me,{modelValue:l.value,"onUpdate:modelValue":_e[0]||(_e[0]=Ke=>l.value=Ke),placeholder:"搜索频道...",style:{width:"200px"},size:"small",onSearch:K,onClear:Y,"allow-clear":""},null,8,["modelValue"])])]),I("div",X$t,[r.value&&!a.value?(z(),X("div",Z$t,[$(Oe,{size:32,tip:"正在加载直播数据..."})])):i.value?(z(),X("div",J$t,[$(qe,{status:"error",title:i.value,"sub-title":"请检查网络连接或直播配置"},{extra:fe(()=>[$(ve,{type:"primary",onClick:P},{default:fe(()=>[..._e[3]||(_e[3]=[He(" 重新加载 ",-1)])]),_:1}),$(ve,{onClick:ie},{default:fe(()=>[..._e[4]||(_e[4]=[He(" 检查设置 ",-1)])]),_:1})]),_:1},8,["title"])])):s.value?a.value?(z(),X("div",eOt,[I("div",tOt,[I("div",nOt,[_e[6]||(_e[6]=I("h3",null,"分组列表",-1)),I("span",rOt,Ne(x.value.length)+"个分组",1)]),I("div",iOt,[(z(!0),X(Pt,null,cn(x.value,Ke=>(z(),X("div",{key:Ke.name,class:de(["group-item",{active:c.value===Ke.name}]),onClick:at=>M(Ke.name)},[I("div",sOt,[I("span",aOt,Ne(Ke.name),1),I("span",lOt,Ne(Ke.channels.length),1)])],10,oOt))),128))])]),I("div",uOt,[I("div",cOt,[_e[7]||(_e[7]=I("h3",null,"频道列表",-1)),I("span",dOt,Ne(E.value.length)+"个频道",1)]),I("div",fOt,[(z(!0),X(Pt,null,cn(E.value,Ke=>(z(),X("div",{key:Ke.name,class:de(["channel-item",{active:d.value?.name===Ke.name}]),onClick:at=>O(Ke)},[I("div",pOt,[Ke.logo?(z(),X("img",{key:0,src:Ke.logo,alt:Ke.name,onError:q},null,40,vOt)):(z(),Ze(rt(u_),{key:1,class:"default-logo"}))]),I("div",mOt,[I("div",gOt,Ne(Ke.name),1),I("div",yOt,Ne(Ke.group),1)])],10,hOt))),128))])]),I("div",bOt,[I("div",_Ot,[_e[10]||(_e[10]=I("h3",null,"播放预览",-1)),d.value?(z(),X("div",SOt,[$(ve,{type:"text",size:"small",onClick:te},{icon:fe(()=>[$(rt(nA))]),default:fe(()=>[_e[8]||(_e[8]=He(" 复制链接 ",-1))]),_:1}),$(ve,{type:"text",size:"small",onClick:W},{icon:fe(()=>[$(rt(Nve))]),default:fe(()=>[_e[9]||(_e[9]=He(" 新窗口播放 ",-1))]),_:1})])):Ie("",!0)]),I("div",kOt,[d.value?(z(),X("div",COt,[I("div",wOt,[$(nK,{"episode-name":d.value.name,"is-live-mode":!0,"show-debug-button":!0,qualities:_.value,"current-quality":T.value,onQualityChange:Ce,onToggleDebug:ge,onClose:xe},null,8,["episode-name","qualities","current-quality"]),I("div",EOt,[$(G$t,{ref_key:"liveProxySelector",ref:C,onChange:Ve},null,512)])]),I("div",TOt,[I("video",{ref_key:"videoPlayer",ref:g,src:H(),controls:"",preload:"metadata",onError:Q,onLoadstart:se,onLoadeddata:ae}," 您的浏览器不支持视频播放 ",40,AOt),p.value?(z(),X("div",IOt,[$(Oe,{size:32,tip:"正在加载视频..."})])):Ie("",!0),v.value?(z(),X("div",LOt,[$(rt($c),{class:"error-icon"}),_e[13]||(_e[13]=I("p",null,"视频加载失败",-1)),I("p",DOt,Ne(v.value),1),$(ve,{onClick:re},{default:fe(()=>[..._e[12]||(_e[12]=[He("重试",-1)])]),_:1})])):Ie("",!0)])])):(z(),X("div",xOt,[$(rt(By),{class:"no-selection-icon"}),_e[11]||(_e[11]=I("p",null,"请选择一个频道开始播放",-1))]))])])])):Ie("",!0):(z(),X("div",Q$t,[$(qe,{status:"info",title:"未配置直播源","sub-title":"请先在设置页面配置直播地址"},{extra:fe(()=>[$(ve,{type:"primary",onClick:ie},{default:fe(()=>[..._e[5]||(_e[5]=[He(" 前往设置 ",-1)])]),_:1})]),_:1})]))]),$(rK,{visible:y.value,"video-url":B(),headers:{},"player-type":"default","detected-format":"m3u8","proxy-url":S.value&&k.value?j():"",onClose:ge},null,8,["visible","video-url","proxy-url"])])}}},ROt=cr(POt,[["__scopeId","data-v-725ef902"]]);var f8={exports:{}},cj={exports:{}},dj={};/** * @vue/compiler-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -593,9 +593,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins * @license MIT */function Uce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Af(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function RNt(e,t){if(e==null)return{};var n=PNt(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MNt(e){return $Nt(e)||ONt(e)||BNt(e)||NNt()}function $Nt(e){if(Array.isArray(e))return gU(e)}function ONt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BNt(e,t){if(e){if(typeof e=="string")return gU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gU(e,t)}}function gU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function VNt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function xd(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&t5(e,t):t5(e,t))||r&&e===n)return e;if(e===n)break}while(e=VNt(e))}return null}var Wce=/\s+/g;function as(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Wce," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Wce," ")}}function lr(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function Em(e,t){var n="";if(typeof e=="string")n=e;else do{var r=lr(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Obe(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i=a,!s)return r;if(r===Sf())break;r=d0(r,!1)}return!1}function Qy(e,t,n,r){for(var i=0,a=0,s=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,a=RNt(r,qNt);DS.pluginEvent.bind(Pr)(t,n,Af({dragEl:Tn,parentEl:ms,ghostEl:ei,rootEl:Ko,nextEl:qv,lastDownEl:_8,cloneEl:gs,cloneHidden:r0,dragStarted:H4,putSortable:Ba,activeSortable:Pr.active,originalEvent:i,oldIndex:Q1,oldDraggableIndex:Fb,newIndex:ec,newDraggableIndex:t0,hideGhostForTarget:zbe,unhideGhostForTarget:Ube,cloneNowHidden:function(){r0=!0},cloneNowShown:function(){r0=!1},dispatchSortableEvent:function(l){jl({sortable:n,name:l,originalEvent:i})}},a))};function jl(e){U4(Af({putSortable:Ba,cloneEl:gs,targetEl:Tn,rootEl:Ko,oldIndex:Q1,oldDraggableIndex:Fb,newIndex:ec,newDraggableIndex:t0},e))}var Tn,ms,ei,Ko,qv,_8,gs,r0,Q1,ec,Fb,t0,VC,Ba,U1=!1,n5=!1,r5=[],zv,vd,mj,gj,Yce,Xce,H4,M1,jb,Vb=!1,zC=!1,S8,fl,yj=[],yU=!1,i5=[],bI=typeof document<"u",UC=Mbe,Zce=LS||tp?"cssFloat":"float",YNt=bI&&!jNt&&!Mbe&&"draggable"in document.createElement("div"),Fbe=(function(){if(bI){if(tp)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),jbe=function(t,n){var r=lr(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=Qy(t,0,n),s=Qy(t,1,n),l=a&&lr(a),c=s&&lr(s),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Jo(a).width,h=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Jo(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&l.float&&l.float!=="none"){var p=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===p)?"vertical":"horizontal"}return a&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=i&&r[Zce]==="none"||s&&r[Zce]==="none"&&d+h>i)?"vertical":"horizontal"},XNt=function(t,n,r){var i=r?t.left:t.top,a=r?t.right:t.bottom,s=r?t.width:t.height,l=r?n.left:n.top,c=r?n.right:n.bottom,d=r?n.width:n.height;return i===l||a===c||i+s/2===l+d/2},ZNt=function(t,n){var r;return r5.some(function(i){var a=i[xl].options.emptyInsertThreshold;if(!(!a||OK(i))){var s=Jo(i),l=t>=s.left-a&&t<=s.right+a,c=n>=s.top-a&&n<=s.bottom+a;if(l&&c)return r=i}}),r},Vbe=function(t){function n(a,s){return function(l,c,d,h){var p=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(a==null&&(s||p))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return n(a(l,c,d,h),s)(l,c,d,h);var v=(s?l:c).options.group.name;return a===!0||typeof a=="string"&&a===v||a.join&&a.indexOf(v)>-1}}var r={},i=t.group;(!i||b8(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},zbe=function(){!Fbe&&ei&&lr(ei,"display","none")},Ube=function(){!Fbe&&ei&&lr(ei,"display","")};bI&&document.addEventListener("click",function(e){if(n5)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),n5=!1,!1},!0);var Uv=function(t){if(Tn){t=t.touches?t.touches[0]:t;var n=ZNt(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[xl]._onDragOver(r)}}},JNt=function(t){Tn&&Tn.parentNode[xl]._isOutsideThisEl(t.target)};function Pr(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=nd({},t),e[xl]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return jbe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Pr.supportPointer!==!1&&"PointerEvent"in window&&!Bb,emptyInsertThreshold:5};DS.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);Vbe(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:YNt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Pi(e,"pointerdown",this._onTapStart):(Pi(e,"mousedown",this._onTapStart),Pi(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Pi(e,"dragover",this),Pi(e,"dragenter",this)),r5.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),nd(this,WNt())}Pr.prototype={constructor:Pr,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(M1=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Tn):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,a=i.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,c=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||c,h=i.filter;if(sFt(r),!Tn&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Bb&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=xd(c,i.draggable,r,!1),!(c&&c.animated)&&_8!==c)){if(Q1=_s(c),Fb=_s(c,i.draggable),typeof h=="function"){if(h.call(this,t,c,this)){jl({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:r,fromEl:r}),hu("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=xd(d,p.trim(),r,!1),p)return jl({sortable:n,rootEl:p,name:"filter",targetEl:c,fromEl:r,toEl:r}),hu("filter",n,{evt:t}),!0}),h)){a&&t.cancelable&&t.preventDefault();return}i.handle&&!xd(d,i.handle,r,!1)||this._prepareDragStart(t,l,c)}}},_prepareDragStart:function(t,n,r){var i=this,a=i.el,s=i.options,l=a.ownerDocument,c;if(r&&!Tn&&r.parentNode===a){var d=Jo(r);if(Ko=a,Tn=r,ms=Tn.parentNode,qv=Tn.nextSibling,_8=r,VC=s.group,Pr.dragged=Tn,zv={target:Tn,clientX:(n||t).clientX,clientY:(n||t).clientY},Yce=zv.clientX-d.left,Xce=zv.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Tn.style["will-change"]="all",c=function(){if(hu("delayEnded",i,{evt:t}),Pr.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Hce&&i.nativeDraggable&&(Tn.draggable=!0),i._triggerDragStart(t,n),jl({sortable:i,name:"choose",originalEvent:t}),as(Tn,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Obe(Tn,h.trim(),bj)}),Pi(l,"dragover",Uv),Pi(l,"mousemove",Uv),Pi(l,"touchmove",Uv),Pi(l,"mouseup",i._onDrop),Pi(l,"touchend",i._onDrop),Pi(l,"touchcancel",i._onDrop),Hce&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Tn.draggable=!0),hu("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(LS||tp))){if(Pr.eventCanceled){this._onDrop();return}Pi(l,"mouseup",i._disableDelayedDrag),Pi(l,"touchend",i._disableDelayedDrag),Pi(l,"touchcancel",i._disableDelayedDrag),Pi(l,"mousemove",i._delayedDragTouchMoveHandler),Pi(l,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&Pi(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Tn&&bj(Tn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_i(t,"mouseup",this._disableDelayedDrag),_i(t,"touchend",this._disableDelayedDrag),_i(t,"touchcancel",this._disableDelayedDrag),_i(t,"mousemove",this._delayedDragTouchMoveHandler),_i(t,"touchmove",this._delayedDragTouchMoveHandler),_i(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Pi(document,"pointermove",this._onTouchMove):n?Pi(document,"touchmove",this._onTouchMove):Pi(document,"mousemove",this._onTouchMove):(Pi(Tn,"dragend",this),Pi(Ko,"dragstart",this._onDragStart));try{document.selection?k8(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(U1=!1,Ko&&Tn){hu("dragStarted",this,{evt:n}),this.nativeDraggable&&Pi(document,"dragover",JNt);var r=this.options;!t&&as(Tn,r.dragClass,!1),as(Tn,r.ghostClass,!0),Pr.active=this,t&&this._appendGhost(),jl({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(vd){this._lastX=vd.clientX,this._lastY=vd.clientY,zbe();for(var t=document.elementFromPoint(vd.clientX,vd.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(vd.clientX,vd.clientY),t!==n);)n=t;if(Tn.parentNode[xl]._isOutsideThisEl(t),n)do{if(n[xl]){var r=void 0;if(r=n[xl]._onDragOver({clientX:vd.clientX,clientY:vd.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Ube()}},_onTouchMove:function(t){if(zv){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=ei&&Em(ei,!0),l=ei&&s&&s.a,c=ei&&s&&s.d,d=UC&&fl&&Kce(fl),h=(a.clientX-zv.clientX+i.x)/(l||1)+(d?d[0]-yj[0]:0)/(l||1),p=(a.clientY-zv.clientY+i.y)/(c||1)+(d?d[1]-yj[1]:0)/(c||1);if(!Pr.active&&!U1){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(jl({rootEl:ms,name:"add",toEl:ms,fromEl:Ko,originalEvent:t}),jl({sortable:this,name:"remove",toEl:ms,originalEvent:t}),jl({rootEl:ms,name:"sort",toEl:ms,fromEl:Ko,originalEvent:t}),jl({sortable:this,name:"sort",toEl:ms,originalEvent:t})),Ba&&Ba.save()):ec!==Q1&&ec>=0&&(jl({sortable:this,name:"update",toEl:ms,originalEvent:t}),jl({sortable:this,name:"sort",toEl:ms,originalEvent:t})),Pr.active&&((ec==null||ec===-1)&&(ec=Q1,t0=Fb),jl({sortable:this,name:"end",toEl:ms,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){hu("nulling",this),Ko=Tn=ms=ei=qv=gs=_8=r0=zv=vd=H4=ec=t0=Q1=Fb=M1=jb=Ba=VC=Pr.dragged=Pr.ghost=Pr.clone=Pr.active=null,i5.forEach(function(t){t.checked=!0}),i5.length=mj=gj=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Tn&&(this._onDragOver(t),QNt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,a=r.length,s=this.options;ir.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function rFt(e,t,n,r,i,a,s,l){var c=r?e.clientY:e.clientX,d=r?n.height:n.width,h=r?n.top:n.left,p=r?n.bottom:n.right,v=!1;if(!s){if(l&&S8h+d*a/2:cp-S8)return-jb}else if(c>h+d*(1-i)/2&&cp-d*a/2)?c>h+d/2?1:-1:0}function iFt(e){return _s(Tn)<_s(e)?1:-1}function oFt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function sFt(e){i5.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&i5.push(r)}}function k8(e){return setTimeout(e,0)}function bU(e){return clearTimeout(e)}bI&&Pi(document,"touchmove",function(e){(Pr.active||U1)&&e.cancelable&&e.preventDefault()});Pr.utils={on:Pi,off:_i,css:lr,find:Obe,is:function(t,n){return!!xd(t,n,t,!1)},extend:UNt,throttle:Bbe,closest:xd,toggleClass:as,clone:BK,index:_s,nextTick:k8,cancelNextTick:bU,detectDirection:jbe,getChild:Qy};Pr.get=function(e){return e[xl]};Pr.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(Ur.forEach(function(l){a.addAnimationState({target:l,rect:pu?Jo(l):s}),pj(l),l.fromRect=s,r.removeAnimationState(l)}),pu=!1,dFt(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,a=n.insertion,s=n.activeSortable,l=n.parentEl,c=n.putSortable,d=this.options;if(a){if(i&&s._hideClone(),C4=!1,d.animation&&Ur.length>1&&(pu||!i&&!s.options.sort&&!c)){var h=Jo(Po,!1,!0,!0);Ur.forEach(function(v){v!==Po&&(qce(v,h),l.appendChild(v))}),pu=!0}if(!i)if(pu||GC(),Ur.length>1){var p=WC;s._showClone(r),s.options.animation&&!WC&&p&&Qu.forEach(function(v){s.addAnimationState({target:v,rect:w4}),v.fromRect=w4,v.thisAnimationDuration=null})}else s._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,a=n.activeSortable;if(Ur.forEach(function(l){l.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){w4=nd({},r);var s=Em(Po,!0);w4.top-=s.f,w4.left-=s.e}},dragOverAnimationComplete:function(){pu&&(pu=!1,GC())},drop:function(n){var r=n.originalEvent,i=n.rootEl,a=n.parentEl,s=n.sortable,l=n.dispatchSortableEvent,c=n.oldIndex,d=n.putSortable,h=d||this.sortable;if(r){var p=this.options,v=a.children;if(!$1)if(p.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),as(Po,p.selectedClass,!~Ur.indexOf(Po)),~Ur.indexOf(Po))Ur.splice(Ur.indexOf(Po),1),x4=null,U4({sortable:s,rootEl:i,name:"deselect",targetEl:Po});else{if(Ur.push(Po),U4({sortable:s,rootEl:i,name:"select",targetEl:Po}),r.shiftKey&&x4&&s.el.contains(x4)){var g=_s(x4),y=_s(Po);if(~g&&~y&&g!==y){var S,k;for(y>g?(k=g,S=y):(k=y,S=g+1);k1){var C=Jo(Po),x=_s(Po,":not(."+this.options.selectedClass+")");if(!C4&&p.animation&&(Po.thisAnimationDuration=null),h.captureAnimationState(),!C4&&(p.animation&&(Po.fromRect=C,Ur.forEach(function(_){if(_.thisAnimationDuration=null,_!==Po){var T=pu?Jo(_):C;_.fromRect=T,h.addAnimationState({target:_,rect:T})}})),GC(),Ur.forEach(function(_){v[x]?a.insertBefore(_,v[x]):a.appendChild(_),x++}),c===_s(Po))){var E=!1;Ur.forEach(function(_){if(_.sortableIndex!==_s(_)){E=!0;return}}),E&&l("update")}Ur.forEach(function(_){pj(_)}),h.animateAll()}md=h}(i===a||d&&d.lastPutMode!=="clone")&&Qu.forEach(function(_){_.parentNode&&_.parentNode.removeChild(_)})}},nullingGlobal:function(){this.isMultiDrag=$1=!1,Qu.length=0},destroyGlobal:function(){this._deselectMultiDrag(),_i(document,"pointerup",this._deselectMultiDrag),_i(document,"mouseup",this._deselectMultiDrag),_i(document,"touchend",this._deselectMultiDrag),_i(document,"keydown",this._checkKeyDown),_i(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof $1<"u"&&$1)&&md===this.sortable&&!(n&&xd(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Ur.length;){var r=Ur[0];as(r,this.options.selectedClass,!1),Ur.shift(),U4({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},nd(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[xl];!r||!r.options.multiDrag||~Ur.indexOf(n)||(md&&md!==r&&(md.multiDrag._deselectMultiDrag(),md=r),as(n,r.options.selectedClass,!0),Ur.push(n))},deselect:function(n){var r=n.parentNode[xl],i=Ur.indexOf(n);!r||!r.options.multiDrag||!~i||(as(n,r.options.selectedClass,!1),Ur.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return Ur.forEach(function(a){r.push({multiDragElement:a,index:a.sortableIndex});var s;pu&&a!==Po?s=-1:pu?s=_s(a,":not(."+n.options.selectedClass+")"):s=_s(a),i.push({multiDragElement:a,index:s})}),{items:MNt(Ur),clones:[].concat(Qu),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function dFt(e,t){Ur.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Qce(e,t){Qu.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function GC(){Ur.forEach(function(e){e!==Po&&e.parentNode&&e.parentNode.removeChild(e)})}Pr.mount(new aFt);Pr.mount(FK,NK);const fFt=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:cFt,Sortable:Pr,Swap:lFt,default:Pr},Symbol.toStringTag,{value:"Module"})),hFt=eS(fFt);var pFt=f8.exports,ede;function vFt(){return ede||(ede=1,(function(e,t){(function(r,i){e.exports=i(LNt(),hFt)})(typeof self<"u"?self:pFt,function(n,r){return(function(i){var a={};function s(l){if(a[l])return a[l].exports;var c=a[l]={i:l,l:!1,exports:{}};return i[l].call(c.exports,c,c.exports,s),c.l=!0,c.exports}return s.m=i,s.c=a,s.d=function(l,c,d){s.o(l,c)||Object.defineProperty(l,c,{enumerable:!0,get:d})},s.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},s.t=function(l,c){if(c&1&&(l=s(l)),c&8||c&4&&typeof l=="object"&&l&&l.__esModule)return l;var d=Object.create(null);if(s.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:l}),c&2&&typeof l!="string")for(var h in l)s.d(d,h,(function(p){return l[p]}).bind(null,h));return d},s.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return s.d(c,"a",c),c},s.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},s.p="",s(s.s="fb15")})({"00ee":(function(i,a,s){var l=s("b622"),c=l("toStringTag"),d={};d[c]="z",i.exports=String(d)==="[object z]"}),"0366":(function(i,a,s){var l=s("1c0b");i.exports=function(c,d,h){if(l(c),d===void 0)return c;switch(h){case 0:return function(){return c.call(d)};case 1:return function(p){return c.call(d,p)};case 2:return function(p,v){return c.call(d,p,v)};case 3:return function(p,v,g){return c.call(d,p,v,g)}}return function(){return c.apply(d,arguments)}}}),"057f":(function(i,a,s){var l=s("fc6a"),c=s("241c").f,d={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(v){try{return c(v)}catch{return h.slice()}};i.exports.f=function(g){return h&&d.call(g)=="[object Window]"?p(g):c(l(g))}}),"06cf":(function(i,a,s){var l=s("83ab"),c=s("d1e7"),d=s("5c6c"),h=s("fc6a"),p=s("c04e"),v=s("5135"),g=s("0cfb"),y=Object.getOwnPropertyDescriptor;a.f=l?y:function(k,C){if(k=h(k),C=p(C,!0),g)try{return y(k,C)}catch{}if(v(k,C))return d(!c.f.call(k,C),k[C])}}),"0cfb":(function(i,a,s){var l=s("83ab"),c=s("d039"),d=s("cc12");i.exports=!l&&!c(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(i,a,s){var l=s("23e7"),c=s("d58f").left,d=s("a640"),h=s("ae40"),p=d("reduce"),v=h("reduce",{1:0});l({target:"Array",proto:!0,forced:!p||!v},{reduce:function(y){return c(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(i,a,s){var l=s("c6b6"),c=s("9263");i.exports=function(d,h){var p=d.exec;if(typeof p=="function"){var v=p.call(d,h);if(typeof v!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return v}if(l(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return c.call(d,h)}}),"159b":(function(i,a,s){var l=s("da84"),c=s("fdbc"),d=s("17c2"),h=s("9112");for(var p in c){var v=l[p],g=v&&v.prototype;if(g&&g.forEach!==d)try{h(g,"forEach",d)}catch{g.forEach=d}}}),"17c2":(function(i,a,s){var l=s("b727").forEach,c=s("a640"),d=s("ae40"),h=c("forEach"),p=d("forEach");i.exports=!h||!p?function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(i,a,s){var l=s("d066");i.exports=l("document","documentElement")}),"1c0b":(function(i,a){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}}),"1c7e":(function(i,a,s){var l=s("b622"),c=l("iterator"),d=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){d=!0}};p[c]=function(){return this},Array.from(p,function(){throw 2})}catch{}i.exports=function(v,g){if(!g&&!d)return!1;var y=!1;try{var S={};S[c]=function(){return{next:function(){return{done:y=!0}}}},v(S)}catch{}return y}}),"1d80":(function(i,a){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}}),"1dde":(function(i,a,s){var l=s("d039"),c=s("b622"),d=s("2d00"),h=c("species");i.exports=function(p){return d>=51||!l(function(){var v=[],g=v.constructor={};return g[h]=function(){return{foo:1}},v[p](Boolean).foo!==1})}}),"23cb":(function(i,a,s){var l=s("a691"),c=Math.max,d=Math.min;i.exports=function(h,p){var v=l(h);return v<0?c(v+p,0):d(v,p)}}),"23e7":(function(i,a,s){var l=s("da84"),c=s("06cf").f,d=s("9112"),h=s("6eeb"),p=s("ce4e"),v=s("e893"),g=s("94ca");i.exports=function(y,S){var k=y.target,C=y.global,x=y.stat,E,_,T,D,P,M;if(C?_=l:x?_=l[k]||p(k,{}):_=(l[k]||{}).prototype,_)for(T in S){if(P=S[T],y.noTargetGet?(M=c(_,T),D=M&&M.value):D=_[T],E=g(C?T:k+(x?".":"#")+T,y.forced),!E&&D!==void 0){if(typeof P==typeof D)continue;v(P,D)}(y.sham||D&&D.sham)&&d(P,"sham",!0),h(_,T,P,y)}}}),"241c":(function(i,a,s){var l=s("ca84"),c=s("7839"),d=c.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(p){return l(p,d)}}),"25f0":(function(i,a,s){var l=s("6eeb"),c=s("825a"),d=s("d039"),h=s("ad6d"),p="toString",v=RegExp.prototype,g=v[p],y=d(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),S=g.name!=p;(y||S)&&l(RegExp.prototype,p,function(){var C=c(this),x=String(C.source),E=C.flags,_=String(E===void 0&&C instanceof RegExp&&!("flags"in v)?h.call(C):E);return"/"+x+"/"+_},{unsafe:!0})}),"2ca0":(function(i,a,s){var l=s("23e7"),c=s("06cf").f,d=s("50c4"),h=s("5a34"),p=s("1d80"),v=s("ab13"),g=s("c430"),y="".startsWith,S=Math.min,k=v("startsWith"),C=!g&&!k&&!!(function(){var x=c(String.prototype,"startsWith");return x&&!x.writable})();l({target:"String",proto:!0,forced:!C&&!k},{startsWith:function(E){var _=String(p(this));h(E);var T=d(S(arguments.length>1?arguments[1]:void 0,_.length)),D=String(E);return y?y.call(_,D,T):_.slice(T,T+D.length)===D}})}),"2d00":(function(i,a,s){var l=s("da84"),c=s("342f"),d=l.process,h=d&&d.versions,p=h&&h.v8,v,g;p?(v=p.split("."),g=v[0]+v[1]):c&&(v=c.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=c.match(/Chrome\/(\d+)/),v&&(g=v[1]))),i.exports=g&&+g}),"342f":(function(i,a,s){var l=s("d066");i.exports=l("navigator","userAgent")||""}),"35a1":(function(i,a,s){var l=s("f5df"),c=s("3f8c"),d=s("b622"),h=d("iterator");i.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||c[l(p)]}}),"37e8":(function(i,a,s){var l=s("83ab"),c=s("9bf2"),d=s("825a"),h=s("df75");i.exports=l?Object.defineProperties:function(v,g){d(v);for(var y=h(g),S=y.length,k=0,C;S>k;)c.f(v,C=y[k++],g[C]);return v}}),"3bbe":(function(i,a,s){var l=s("861d");i.exports=function(c){if(!l(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype");return c}}),"3ca3":(function(i,a,s){var l=s("6547").charAt,c=s("69f3"),d=s("7dd0"),h="String Iterator",p=c.set,v=c.getterFor(h);d(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var y=v(this),S=y.string,k=y.index,C;return k>=S.length?{value:void 0,done:!0}:(C=l(S,k),y.index+=C.length,{value:C,done:!1})})}),"3f8c":(function(i,a){i.exports={}}),4160:(function(i,a,s){var l=s("23e7"),c=s("17c2");l({target:"Array",proto:!0,forced:[].forEach!=c},{forEach:c})}),"428f":(function(i,a,s){var l=s("da84");i.exports=l}),"44ad":(function(i,a,s){var l=s("d039"),c=s("c6b6"),d="".split;i.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return c(h)=="String"?d.call(h,""):Object(h)}:Object}),"44d2":(function(i,a,s){var l=s("b622"),c=s("7c73"),d=s("9bf2"),h=l("unscopables"),p=Array.prototype;p[h]==null&&d.f(p,h,{configurable:!0,value:c(null)}),i.exports=function(v){p[h][v]=!0}}),"44e7":(function(i,a,s){var l=s("861d"),c=s("c6b6"),d=s("b622"),h=d("match");i.exports=function(p){var v;return l(p)&&((v=p[h])!==void 0?!!v:c(p)=="RegExp")}}),4930:(function(i,a,s){var l=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})}),"4d64":(function(i,a,s){var l=s("fc6a"),c=s("50c4"),d=s("23cb"),h=function(p){return function(v,g,y){var S=l(v),k=c(S.length),C=d(y,k),x;if(p&&g!=g){for(;k>C;)if(x=S[C++],x!=x)return!0}else for(;k>C;C++)if((p||C in S)&&S[C]===g)return p||C||0;return!p&&-1}};i.exports={includes:h(!0),indexOf:h(!1)}}),"4de4":(function(i,a,s){var l=s("23e7"),c=s("b727").filter,d=s("1dde"),h=s("ae40"),p=d("filter"),v=h("filter");l({target:"Array",proto:!0,forced:!p||!v},{filter:function(y){return c(this,y,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(i,a,s){var l=s("0366"),c=s("7b0b"),d=s("9bdd"),h=s("e95a"),p=s("50c4"),v=s("8418"),g=s("35a1");i.exports=function(S){var k=c(S),C=typeof this=="function"?this:Array,x=arguments.length,E=x>1?arguments[1]:void 0,_=E!==void 0,T=g(k),D=0,P,M,O,L,B,j;if(_&&(E=l(E,x>2?arguments[2]:void 0,2)),T!=null&&!(C==Array&&h(T)))for(L=T.call(k),B=L.next,M=new C;!(O=B.call(L)).done;D++)j=_?d(L,E,[O.value,D],!0):O.value,v(M,D,j);else for(P=p(k.length),M=new C(P);P>D;D++)j=_?E(k[D],D):k[D],v(M,D,j);return M.length=D,M}}),"4fad":(function(i,a,s){var l=s("23e7"),c=s("6f53").entries;l({target:"Object",stat:!0},{entries:function(h){return c(h)}})}),"50c4":(function(i,a,s){var l=s("a691"),c=Math.min;i.exports=function(d){return d>0?c(l(d),9007199254740991):0}}),5135:(function(i,a){var s={}.hasOwnProperty;i.exports=function(l,c){return s.call(l,c)}}),5319:(function(i,a,s){var l=s("d784"),c=s("825a"),d=s("7b0b"),h=s("50c4"),p=s("a691"),v=s("1d80"),g=s("8aa5"),y=s("14c3"),S=Math.max,k=Math.min,C=Math.floor,x=/\$([$&'`]|\d\d?|<[^>]*>)/g,E=/\$([$&'`]|\d\d?)/g,_=function(T){return T===void 0?T:String(T)};l("replace",2,function(T,D,P,M){var O=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,L=M.REPLACE_KEEPS_$0,B=O?"$":"$0";return[function(U,K){var Y=v(this),ie=U?.[T];return ie!==void 0?ie.call(U,Y,K):D.call(String(Y),U,K)},function(H,U){if(!O&&L||typeof U=="string"&&U.indexOf(B)===-1){var K=P(D,H,this,U);if(K.done)return K.value}var Y=c(H),ie=String(this),te=typeof U=="function";te||(U=String(U));var W=Y.global;if(W){var q=Y.unicode;Y.lastIndex=0}for(var Q=[];;){var se=y(Y,ie);if(se===null||(Q.push(se),!W))break;var ae=String(se[0]);ae===""&&(Y.lastIndex=g(ie,h(Y.lastIndex),q))}for(var re="",Ce=0,Ve=0;Ve=Ce&&(re+=ie.slice(Ce,xe)+ve,Ce=xe+ge.length)}return re+ie.slice(Ce)}];function j(H,U,K,Y,ie,te){var W=K+H.length,q=Y.length,Q=E;return ie!==void 0&&(ie=d(ie),Q=x),D.call(te,Q,function(se,ae){var re;switch(ae.charAt(0)){case"$":return"$";case"&":return H;case"`":return U.slice(0,K);case"'":return U.slice(W);case"<":re=ie[ae.slice(1,-1)];break;default:var Ce=+ae;if(Ce===0)return se;if(Ce>q){var Ve=C(Ce/10);return Ve===0?se:Ve<=q?Y[Ve-1]===void 0?ae.charAt(1):Y[Ve-1]+ae.charAt(1):se}re=Y[Ce-1]}return re===void 0?"":re})}})}),5692:(function(i,a,s){var l=s("c430"),c=s("c6cd");(i.exports=function(d,h){return c[d]||(c[d]=h!==void 0?h:{})})("versions",[]).push({version:"3.6.5",mode:l?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(i,a,s){var l=s("d066"),c=s("241c"),d=s("7418"),h=s("825a");i.exports=l("Reflect","ownKeys")||function(v){var g=c.f(h(v)),y=d.f;return y?g.concat(y(v)):g}}),"5a34":(function(i,a,s){var l=s("44e7");i.exports=function(c){if(l(c))throw TypeError("The method doesn't accept regular expressions");return c}}),"5c6c":(function(i,a){i.exports=function(s,l){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:l}}}),"5db7":(function(i,a,s){var l=s("23e7"),c=s("a2bf"),d=s("7b0b"),h=s("50c4"),p=s("1c0b"),v=s("65f0");l({target:"Array",proto:!0},{flatMap:function(y){var S=d(this),k=h(S.length),C;return p(y),C=v(S,0),C.length=c(C,S,S,k,0,1,y,arguments.length>1?arguments[1]:void 0),C}})}),6547:(function(i,a,s){var l=s("a691"),c=s("1d80"),d=function(h){return function(p,v){var g=String(c(p)),y=l(v),S=g.length,k,C;return y<0||y>=S?h?"":void 0:(k=g.charCodeAt(y),k<55296||k>56319||y+1===S||(C=g.charCodeAt(y+1))<56320||C>57343?h?g.charAt(y):k:h?g.slice(y,y+2):(k-55296<<10)+(C-56320)+65536)}};i.exports={codeAt:d(!1),charAt:d(!0)}}),"65f0":(function(i,a,s){var l=s("861d"),c=s("e8b5"),d=s("b622"),h=d("species");i.exports=function(p,v){var g;return c(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||c(g.prototype))?g=void 0:l(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(v===0?0:v)}}),"69f3":(function(i,a,s){var l=s("7f9a"),c=s("da84"),d=s("861d"),h=s("9112"),p=s("5135"),v=s("f772"),g=s("d012"),y=c.WeakMap,S,k,C,x=function(O){return C(O)?k(O):S(O,{})},E=function(O){return function(L){var B;if(!d(L)||(B=k(L)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return B}};if(l){var _=new y,T=_.get,D=_.has,P=_.set;S=function(O,L){return P.call(_,O,L),L},k=function(O){return T.call(_,O)||{}},C=function(O){return D.call(_,O)}}else{var M=v("state");g[M]=!0,S=function(O,L){return h(O,M,L),L},k=function(O){return p(O,M)?O[M]:{}},C=function(O){return p(O,M)}}i.exports={set:S,get:k,has:C,enforce:x,getterFor:E}}),"6eeb":(function(i,a,s){var l=s("da84"),c=s("9112"),d=s("5135"),h=s("ce4e"),p=s("8925"),v=s("69f3"),g=v.get,y=v.enforce,S=String(String).split("String");(i.exports=function(k,C,x,E){var _=E?!!E.unsafe:!1,T=E?!!E.enumerable:!1,D=E?!!E.noTargetGet:!1;if(typeof x=="function"&&(typeof C=="string"&&!d(x,"name")&&c(x,"name",C),y(x).source=S.join(typeof C=="string"?C:"")),k===l){T?k[C]=x:h(C,x);return}else _?!D&&k[C]&&(T=!0):delete k[C];T?k[C]=x:c(k,C,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})}),"6f53":(function(i,a,s){var l=s("83ab"),c=s("df75"),d=s("fc6a"),h=s("d1e7").f,p=function(v){return function(g){for(var y=d(g),S=c(y),k=S.length,C=0,x=[],E;k>C;)E=S[C++],(!l||h.call(y,E))&&x.push(v?[E,y[E]]:y[E]);return x}};i.exports={entries:p(!0),values:p(!1)}}),"73d9":(function(i,a,s){var l=s("44d2");l("flatMap")}),7418:(function(i,a){a.f=Object.getOwnPropertySymbols}),"746f":(function(i,a,s){var l=s("428f"),c=s("5135"),d=s("e538"),h=s("9bf2").f;i.exports=function(p){var v=l.Symbol||(l.Symbol={});c(v,p)||h(v,p,{value:d.f(p)})}}),7839:(function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(i,a,s){var l=s("1d80");i.exports=function(c){return Object(l(c))}}),"7c73":(function(i,a,s){var l=s("825a"),c=s("37e8"),d=s("7839"),h=s("d012"),p=s("1be4"),v=s("cc12"),g=s("f772"),y=">",S="<",k="prototype",C="script",x=g("IE_PROTO"),E=function(){},_=function(O){return S+C+y+O+S+"/"+C+y},T=function(O){O.write(_("")),O.close();var L=O.parentWindow.Object;return O=null,L},D=function(){var O=v("iframe"),L="java"+C+":",B;return O.style.display="none",p.appendChild(O),O.src=String(L),B=O.contentWindow.document,B.open(),B.write(_("document.F=Object")),B.close(),B.F},P,M=function(){try{P=document.domain&&new ActiveXObject("htmlfile")}catch{}M=P?T(P):D();for(var O=d.length;O--;)delete M[k][d[O]];return M()};h[x]=!0,i.exports=Object.create||function(L,B){var j;return L!==null?(E[k]=l(L),j=new E,E[k]=null,j[x]=L):j=M(),B===void 0?j:c(j,B)}}),"7dd0":(function(i,a,s){var l=s("23e7"),c=s("9ed3"),d=s("e163"),h=s("d2bb"),p=s("d44e"),v=s("9112"),g=s("6eeb"),y=s("b622"),S=s("c430"),k=s("3f8c"),C=s("ae93"),x=C.IteratorPrototype,E=C.BUGGY_SAFARI_ITERATORS,_=y("iterator"),T="keys",D="values",P="entries",M=function(){return this};i.exports=function(O,L,B,j,H,U,K){c(B,L,j);var Y=function(Ve){if(Ve===H&&Q)return Q;if(!E&&Ve in W)return W[Ve];switch(Ve){case T:return function(){return new B(this,Ve)};case D:return function(){return new B(this,Ve)};case P:return function(){return new B(this,Ve)}}return function(){return new B(this)}},ie=L+" Iterator",te=!1,W=O.prototype,q=W[_]||W["@@iterator"]||H&&W[H],Q=!E&&q||Y(H),se=L=="Array"&&W.entries||q,ae,re,Ce;if(se&&(ae=d(se.call(new O)),x!==Object.prototype&&ae.next&&(!S&&d(ae)!==x&&(h?h(ae,x):typeof ae[_]!="function"&&v(ae,_,M)),p(ae,ie,!0,!0),S&&(k[ie]=M))),H==D&&q&&q.name!==D&&(te=!0,Q=function(){return q.call(this)}),(!S||K)&&W[_]!==Q&&v(W,_,Q),k[L]=Q,H)if(re={values:Y(D),keys:U?Q:Y(T),entries:Y(P)},K)for(Ce in re)(E||te||!(Ce in W))&&g(W,Ce,re[Ce]);else l({target:L,proto:!0,forced:E||te},re);return re}}),"7f9a":(function(i,a,s){var l=s("da84"),c=s("8925"),d=l.WeakMap;i.exports=typeof d=="function"&&/native code/.test(c(d))}),"825a":(function(i,a,s){var l=s("861d");i.exports=function(c){if(!l(c))throw TypeError(String(c)+" is not an object");return c}}),"83ab":(function(i,a,s){var l=s("d039");i.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(i,a,s){var l=s("c04e"),c=s("9bf2"),d=s("5c6c");i.exports=function(h,p,v){var g=l(p);g in h?c.f(h,g,d(0,v)):h[g]=v}}),"861d":(function(i,a){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}}),8875:(function(i,a,s){var l,c,d;(function(h,p){c=[],l=p,d=typeof l=="function"?l.apply(a,c):l,d!==void 0&&(i.exports=d)})(typeof self<"u"?self:this,function(){function h(){var p=Object.getOwnPropertyDescriptor(document,"currentScript");if(!p&&"currentScript"in document&&document.currentScript||p&&p.get!==h&&document.currentScript)return document.currentScript;try{throw new Error}catch(P){var v=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,g=/@([^@]*):(\d+):(\d+)\s*$/ig,y=v.exec(P.stack)||g.exec(P.stack),S=y&&y[1]||!1,k=y&&y[2]||!1,C=document.location.href.replace(document.location.hash,""),x,E,_,T=document.getElementsByTagName("script");S===C&&(x=document.documentElement.outerHTML,E=new RegExp("(?:[^\\n]+?\\n){0,"+(k-2)+"}[^<]* - + +
From 21e600205e52e876943f7d85f3c101cc20cc0889 Mon Sep 17 00:00:00 2001 From: Taois Date: Thu, 16 Oct 2025 22:19:40 +0800 Subject: [PATCH 07/14] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=BC=B9?= =?UTF-8?q?=E5=B9=95=E4=BB=A3=E7=90=86=E9=97=AE=E9=A2=98=EF=BC=8C=E9=A2=9D?= =?UTF-8?q?=E5=A4=96=E5=BC=80=E7=AB=AF=E5=8F=A3=E3=80=82=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=8B=A6=E6=88=AA=E4=BC=98=E5=85=88=E7=BA=A7?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E8=83=BD=E6=89=93=E5=8D=B0=E5=88=B0=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E6=97=A5=E5=BF=97=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/api.js | 15 +- controllers/fastlogger.js | 30 ++-- controllers/index.js | 20 ++- controllers/websocketServer.js | 132 ++++++++++++++++++ index.js | 77 +++++++--- ...\345\274\271\345\271\225[\345\256\230].js" | 5 +- ...\345\274\271\345\271\225[\345\256\230].js" | 4 +- 7 files changed, 242 insertions(+), 41 deletions(-) create mode 100644 controllers/websocketServer.js diff --git a/controllers/api.js b/controllers/api.js index 4cfcf1a5..9fb84a67 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -126,6 +126,7 @@ export default (fastify, options, done) => { // 构建请求相关的URL信息 const protocol = request.headers['x-forwarded-proto'] || (request.socket.encrypted ? 'https' : 'http'); const hostname = request.hostname; + const wsName = hostname.replace(`:${options.PORT}`, `:${options.WsPORT}`); const requestHost = `${protocol}://${hostname}`; const publicUrl = `${protocol}://${hostname}/public/`; const jsonUrl = `${protocol}://${hostname}/json/`; @@ -135,7 +136,8 @@ export default (fastify, options, done) => { const webdavProxyUrl = `${protocol}://${hostname}/webdav/`; const ftpProxyUrl = `${protocol}://${hostname}/ftp/`; const hostUrl = `${hostname.split(':')[0]}`; - const fServer = fastify.server; + // const fServer = fastify.server; + const fServer = options.wsApp.server; /** * 构建环境对象 @@ -161,6 +163,7 @@ export default (fastify, options, done) => { ftpProxyUrl, hostUrl, hostname, + wsName, fServer, getProxyUrl, ext: moduleExt @@ -406,6 +409,7 @@ export default (fastify, options, done) => { // 构建请求相关的URL信息 const protocol = request.headers['x-forwarded-proto'] || (request.socket.encrypted ? 'https' : 'http'); const hostname = request.hostname; + const wsName = hostname.replace(`:${options.PORT}`, `:${options.WsPORT}`); const requestHost = `${protocol}://${hostname}`; const publicUrl = `${protocol}://${hostname}/public/`; const jsonUrl = `${protocol}://${hostname}/json/`; @@ -415,7 +419,8 @@ export default (fastify, options, done) => { const webdavProxyUrl = `${protocol}://${hostname}/webdav/`; const ftpProxyUrl = `${protocol}://${hostname}/ftp/`; const hostUrl = `${hostname.split(':')[0]}`; - const fServer = fastify.server; + // const fServer = fastify.server; + const fServer = options.wsApp.server; /** * 构建代理环境对象 @@ -442,6 +447,7 @@ export default (fastify, options, done) => { ftpProxyUrl, hostUrl, hostname, + wsName, fServer, getProxyUrl, ext: moduleExt @@ -549,6 +555,7 @@ export default (fastify, options, done) => { // 构建请求相关的URL信息 const protocol = request.headers['x-forwarded-proto'] || (request.socket.encrypted ? 'https' : 'http'); const hostname = request.hostname; + const wsName = hostname.replace(`:${options.PORT}`, `:${options.WsPORT}`); const requestHost = `${protocol}://${hostname}`; const publicUrl = `${protocol}://${hostname}/public/`; const jsonUrl = `${protocol}://${hostname}/json/`; @@ -558,7 +565,8 @@ export default (fastify, options, done) => { const webdavProxyUrl = `${protocol}://${hostname}/webdav/`; const ftpProxyUrl = `${protocol}://${hostname}/ftp/`; const hostUrl = `${hostname.split(':')[0]}`; - const fServer = fastify.server; + // const fServer = fastify.server; + const fServer = options.wsApp.server; /** * 构建解析环境对象 @@ -585,6 +593,7 @@ export default (fastify, options, done) => { ftpProxyUrl, hostUrl, hostname, + wsName, getProxyUrl, fServer, ext: moduleExt diff --git a/controllers/fastlogger.js b/controllers/fastlogger.js index a53d62d9..474f4475 100644 --- a/controllers/fastlogger.js +++ b/controllers/fastlogger.js @@ -94,19 +94,25 @@ export const fastify = Fastify({ logger: _logger, }); +export const wsApp = Fastify({ + logger: _logger, +}); + // 添加CORS支持的钩子 -fastify.addHook('onRequest', async (request, reply) => { - // 设置CORS头部 - reply.header('Access-Control-Allow-Origin', '*'); - reply.header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); - reply.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, X-Requested-With'); - reply.header('Access-Control-Allow-Credentials', 'true'); - - // 处理预检请求 - if (request.method === 'OPTIONS') { - reply.status(200).send(); - return; - } +[fastify, wsApp].forEach(server => { + server.addHook('onRequest', async (request, reply) => { + // 设置CORS头部 + reply.header('Access-Control-Allow-Origin', '*'); + reply.header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); + reply.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, X-Requested-With'); + reply.header('Access-Control-Allow-Credentials', 'true'); + + // 处理预检请求 + if (request.method === 'OPTIONS') { + reply.status(200).send(); + return; + } + }); }); // 安全的轮转测试端点 diff --git a/controllers/index.js b/controllers/index.js index 1e3712a7..02196ad9 100644 --- a/controllers/index.js +++ b/controllers/index.js @@ -5,6 +5,8 @@ */ import formBody from '@fastify/formbody'; import websocket from '@fastify/websocket'; +// WebSocket实时日志控制器-最早引入才能全局拦截console日志 +import websocketController from './websocket.js'; // 静态文件服务控制器 import staticController from './static.js'; // 文档服务控制器 @@ -45,8 +47,8 @@ import ftpProxyController from './ftp-proxy.js'; import fileProxyController from './file-proxy.js'; import m3u8ProxyController from './m3u8-proxy.js'; import unifiedProxyController from './unified-proxy.js'; -// WebSocket控制器 -import websocketController from './websocket.js'; +// WebSocket实时弹幕日志控制器 +import websocketServerController from "./websocketServer.js"; /** * 注册所有路由控制器 @@ -59,6 +61,8 @@ export const registerRoutes = (fastify, options) => { fastify.register(formBody); // 注册WebSocket插件 fastify.register(websocket); + // 注册WebSocket路由 + fastify.register(websocketController, options); // 注册静态文件服务路由 fastify.register(staticController, options); // 注册文档服务路由 @@ -100,6 +104,14 @@ export const registerRoutes = (fastify, options) => { fastify.register(m3u8ProxyController, options); // 注册统一代理路由 fastify.register(unifiedProxyController, options); - // 注册WebSocket路由 - fastify.register(websocketController, options); }; + +/** + * 注册弹幕路由控制器 + * 将弹幕功能模块的路由注册到Fastify实例中 + * @param {Object} wsApp - Ws实时弹幕预览应用实例 + * @param {Object} options - 路由配置选项 + */ +export const registerWsRoutes = (wsApp, options) => { + wsApp.register(websocketServerController, options); +} \ No newline at end of file diff --git a/controllers/websocketServer.js b/controllers/websocketServer.js new file mode 100644 index 00000000..708fec52 --- /dev/null +++ b/controllers/websocketServer.js @@ -0,0 +1,132 @@ +export default (wsApp, options, done) => { + + // 根路由 - 显示服务信息和主服务链接 + wsApp.get('/', async (request, reply) => { + const protocol = request.headers['x-forwarded-proto'] || (request.socket.encrypted ? 'https' : 'http'); + const wsName = request.hostname; + const PORT = options.PORT; + const WsPORT = options.WsPORT; + const hostname = wsName.replace(`:${options.WsPORT}`, `:${options.PORT}`); + const requestHost = `${protocol}://${hostname}`; + const html = ` + + + + + + WebSocket 服务 - 端口 ${WsPORT} + + + +
+

🚀 WebSocket 服务

+ +
+

📡 当前服务信息

+

端口: ${WsPORT} 运行中

+

服务类型: 专用 WebSocket 服务

+

功能: 提供动态 WebSocket 连接服务 如 斗鱼/抖音 弹幕直播

+
+ +
+

🌐 主服务访问

+ + 访问主服务 (端口 ${PORT}) + +
+ +
+

ℹ️ 服务说明

+
    +
  • 此服务运行在独立端口 ${WsPORT}
  • +
  • 专门提供 WebSocket 实时通信功能
  • +
  • 与主服务 (端口 ${PORT}) 协同工作
  • +
  • 支持斗鱼直播弹幕等实时功能
  • +
+
+
+ +`; + + reply.type('text/html'); + return html; + }); + + done() +} \ No newline at end of file diff --git a/index.js b/index.js index 6ab72f5b..6b140a7a 100644 --- a/index.js +++ b/index.js @@ -10,13 +10,14 @@ import './utils/esm-register.mjs'; // 引入python守护进程 import {daemon} from "./utils/daemonManager.js"; // 注册控制器 -import {registerRoutes} from './controllers/index.js'; +import {registerRoutes, registerWsRoutes} from './controllers/index.js'; -const {fastify} = fastlogger; +const {fastify, wsApp} = fastlogger; // 获取当前路径 const __dirname = path.dirname(fileURLToPath(import.meta.url)); const PORT = 5757; +const WsPORT = 57575; const MAX_TEXT_SIZE = process.env.MAX_TEXT_SIZE || 0.1 * 1024 * 1024; // 设置最大文本大小为 0.1 MB const MAX_IMAGE_SIZE = process.env.MAX_IMAGE_SIZE || 0.5 * 1024 * 1024; // 设置最大图片大小为 500 KB // 定义options的目录 @@ -114,14 +115,17 @@ process.on('unhandledRejection', (err) => { // 统一退出处理函数 const handleExit = async (signal) => { + console.log(`\n收到信号 ${signal},正在优雅关闭服务器...`); try { - console.log(`\nReceived ${signal}, closing server...`); - // Fastify 提供的关闭方法,内部会触发 onClose 钩子 await onClose(); - console.log('Fastify closed successfully'); + // 停止 WebSocket 服务器 + await stopWebSocketServer(); + // 停止主服务器 + await fastify.server.close(); + console.log('🛑 所有服务器已优雅关闭'); process.exit(0); - } catch (err) { - console.error('Error during shutdown:', err); + } catch (error) { + console.error('关闭服务器时出错:', error); process.exit(1); } }; @@ -154,7 +158,7 @@ process.on('exit', async (code) => { } }); -registerRoutes(fastify, { +const registerOptions = { rootDir, docsDir, jxDir, @@ -168,42 +172,76 @@ registerRoutes(fastify, { catLibDir, xbpqDir, PORT, + WsPORT, MAX_TEXT_SIZE, MAX_IMAGE_SIZE, configDir, indexFilePath: path.join(__dirname, 'index.json'), customFilePath: path.join(__dirname, 'custom.json'), subFilePath: path.join(__dirname, 'public/sub/sub.json'), -}); + wsApp, + fastify, +}; +registerRoutes(fastify, registerOptions); +registerWsRoutes(wsApp, registerOptions); +// 启动WebSocket服务器 +const startWebSocketServer = async (option) => { + try { + const address = await wsApp.listen(option); + return wsApp; + } catch (err) { + wsApp.log.error(`WebSocket服务器启动失败,将会影响一些实时弹幕源的使用:${err.message}`); + } +}; + +// 停止WebSocket服务器 +const stopWebSocketServer = async () => { + try { + await wsApp.server.close(); + wsApp.log.info('WebSocket服务器已停止'); + } catch (err) { + wsApp.log.error(`停止WebSocket服务器失败:${err.message}`); + } +}; // 启动服务 const start = async () => { try { - // 启动 Fastify 服务 + // 启动 Fastify 主服务 // await fastify.listen({port: PORT, host: '0.0.0.0'}); await fastify.listen({port: PORT, host: '::'}); + // 启动 WebSocket 服务器 (端口 57577) + await startWebSocketServer({port: WsPORT, host: '::'}); // 获取本地和局域网地址 const localAddress = `http://localhost:${PORT}`; + const wsLocalAddress = `http://localhost:${WsPORT}`; const interfaces = os.networkInterfaces(); let lanAddress = 'Not available'; + let wsLanAddress = 'Not available'; // console.log('interfaces:', interfaces); for (const [key, iface] of Object.entries(interfaces)) { if (key.startsWith('VMware Network Adapter VMnet') || !iface) continue; for (const config of iface) { if (config.family === 'IPv4' && !config.internal) { lanAddress = `http://${config.address}:${PORT}`; + wsLanAddress = `http://${config.address}:${WsPORT}`; break; } } } - console.log(`Server listening at:`); - console.log(`- Local: ${localAddress}`); - console.log(`- LAN: ${lanAddress}`); - console.log(`- PLATFORM: ${process.platform} ${process.arch}`); - console.log(`- VERSION: ${process.version}`); + console.log(`🚀 服务器启动成功:`); + console.log(`📡 主服务 (端口 ${PORT}):`); + console.log(` - Local: ${localAddress}`); + console.log(` - LAN: ${lanAddress}`); + console.log(`🔌 WebSocket服务 (端口 ${WsPORT}):`); + console.log(` - Local: ${wsLocalAddress}`); + console.log(` - LAN: ${wsLanAddress}`); + console.log(`⚙️ 系统信息:`); + console.log(` - PLATFORM: ${process.platform} ${process.arch}`); + console.log(` - VERSION: ${process.version}`); if (process.env.VERCEL) { console.log('Running on Vercel!'); console.log('Vercel Environment:', process.env.VERCEL_ENV); // development, preview, production @@ -222,10 +260,13 @@ const start = async () => { // 停止服务 const stop = async () => { try { - await fastify.server.close(); // 关闭服务器 - console.log('Server stopped gracefully'); + // 停止 WebSocket 服务器 + await stopWebSocketServer(); + // 停止主服务器 + await fastify.server.close(); + console.log('🛑 所有服务已优雅停止'); } catch (err) { - fastify.log.error('Error while stopping the server:', err); + fastify.log.error(`停止服务器时发生错误:${err.message}`); } }; diff --git "a/spider/js/\346\226\227\351\261\274\347\233\264\346\222\255\345\274\271\345\271\225[\345\256\230].js" "b/spider/js/\346\226\227\351\261\274\347\233\264\346\222\255\345\274\271\345\271\225[\345\256\230].js" index d8f6b835..36de6256 100644 --- "a/spider/js/\346\226\227\351\261\274\347\233\264\346\222\255\345\274\271\345\271\225[\345\256\230].js" +++ "b/spider/js/\346\226\227\351\261\274\347\233\264\346\222\255\345\274\271\345\271\225[\345\256\230].js" @@ -51,12 +51,13 @@ var rule = { return { parse: 0, url: input, danmaku: 'web://' + getProxyUrl() + '&url=danmu.html' }; }, proxy_rule: async function () { - let { input, hostname } = this; + let { input, wsName } = this; if (input) { input = decodeURIComponent(input); log(`${rule.title}代理播放:${input}`); + log(`[wsName] 专业弹幕代理:${wsName}`); if (input.includes('danmu.html')) { - const danmuHTML = getDmHtml(hostname); + const danmuHTML = getDmHtml(wsName); return [200, 'text/html', danmuHTML]; } } diff --git "a/spider/js_bad/\346\212\226\351\237\263\347\233\264\346\222\255\345\274\271\345\271\225[\345\256\230].js" "b/spider/js_bad/\346\212\226\351\237\263\347\233\264\346\222\255\345\274\271\345\271\225[\345\256\230].js" index fb9b97b6..c39edd04 100644 --- "a/spider/js_bad/\346\212\226\351\237\263\347\233\264\346\222\255\345\274\271\345\271\225[\345\256\230].js" +++ "b/spider/js_bad/\346\212\226\351\237\263\347\233\264\346\222\255\345\274\271\345\271\225[\345\256\230].js" @@ -160,13 +160,13 @@ var rule = { } }, proxy_rule: async function () { - let {input, hostname} = this; + let {input, wsName} = this; // log('hostname:', hostname); if (input) { input = decodeURIComponent(input); log(`${rule.title}代理播放:${input}`); if (input.includes('danmu.html')) { - const danmuHTML = getDmHtml(hostname); + const danmuHTML = getDmHtml(wsName); return [200, 'text/html', danmuHTML]; } } From 69cfef7451c004361924fb2883451a5d60d056c4 Mon Sep 17 00:00:00 2001 From: Taois Date: Thu, 16 Oct 2025 22:31:27 +0800 Subject: [PATCH 08/14] feat: 111 --- controllers/websocket.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controllers/websocket.js b/controllers/websocket.js index 6f68eea0..e5be100c 100644 --- a/controllers/websocket.js +++ b/controllers/websocket.js @@ -155,7 +155,11 @@ export default (fastify, options, done) => { socket.on('message', (message) => { try { const data = JSON.parse(message.toString()); - originalConsole.log(`Received from ${clientId}:`, data); + if (data && data.type === 'heartbeat') { + originalConsole.debug(`Received from ${clientId}:`, data); + } else { + originalConsole.log(`Received from ${clientId}:`, data); + } // 回显消息 if (socket.readyState === socket.OPEN) { From 46c66cd524607b119798e9d93a8f00ef333e71f9 Mon Sep 17 00:00:00 2001 From: Taois Date: Thu, 16 Oct 2025 22:48:31 +0800 Subject: [PATCH 09/14] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BA=86?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/websocket/index.html | 1111 +++++++++-------- .../libs/font-awesome/6.4.0/all.min.css | 0 .../font-awesome/webfonts/fa-solid-900.woff2 | Bin 0 -> 150124 bytes 3 files changed, 566 insertions(+), 545 deletions(-) rename apps/websocket/font-awesome.all.min.css => public/libs/font-awesome/6.4.0/all.min.css (100%) create mode 100644 public/libs/font-awesome/webfonts/fa-solid-900.woff2 diff --git a/apps/websocket/index.html b/apps/websocket/index.html index 46168b3c..acf588ec 100644 --- a/apps/websocket/index.html +++ b/apps/websocket/index.html @@ -4,7 +4,7 @@ WebSocket控制台-drpyS - + -
-
-

WebSocket 专业测试控制台

-

实时连接监控与消息调试工具

-
+
+
+

WebSocket 专业测试控制台

+

实时连接监控与消息调试工具

+
-
-
-
- - 连接控制 -
+
+
+
+ + 连接控制 +
-
-
-
- 未连接 -
-
+
+
+
+ 未连接
+
+
-
- - - - + + + +
+ +
+ +
+ +
+
-
- -
- - -
-
+
+ + 设置 +
-
- - 设置 -
+
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
-
- - +
+
+
0
+
消息总数
+
+
0
+
重连次数
+
+
+
-
-
-
0
-
消息总数
-
-
-
0
-
重连次数
-
+
+
+
+ + 实时日志控制台 +
+
+ + +
-
-
-
- - 实时日志控制台 +
+
+
+ 全部
-
- - - +
+ 系统
-
- -
-
-
- 全部 -
-
- 系统 -
-
- 发送 -
-
- 接收 -
-
- 错误 -
+
+ 发送 +
+
+ 接收 +
+
+ 错误
+
-
- -
+
+
- - + // 没有data或解析失败,使用原始内容 + return `[${timestamp}] [${logEntry.type.toUpperCase()}] ${content}`; + } + + // 导出日志 + function exportLogs() { + const logText = logs.map(log => { + let line = `[${log.timestamp}] [${log.type.toUpperCase()}] ${log.content}`; + if (log.data) { + line += `\n${JSON.stringify(log.data, null, 2)}`; + } + return line; + }).join('\n'); + + const blob = new Blob([logText], {type: 'text/plain'}); + const url = URL.createObjectURL(blob); + const a = document.createElement('a'); + a.href = url; + a.download = `websocket-logs-${new Date().toISOString().slice(0, 19).replace(/:/g, '-')}.txt`; + document.body.appendChild(a); + a.click(); + document.body.removeChild(a); + URL.revokeObjectURL(url); + + addLog('日志已导出', 'system'); + } + \ No newline at end of file diff --git a/apps/websocket/font-awesome.all.min.css b/public/libs/font-awesome/6.4.0/all.min.css similarity index 100% rename from apps/websocket/font-awesome.all.min.css rename to public/libs/font-awesome/6.4.0/all.min.css diff --git a/public/libs/font-awesome/webfonts/fa-solid-900.woff2 b/public/libs/font-awesome/webfonts/fa-solid-900.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..5c16cd3e8a008bdcbed97022c005278971f810c2 GIT binary patch literal 150124 zcmV)dK&QWVPew8T0RR910!nNE3IG5A1-J+R0!khO1OWg500000000000000000000 z00001I07UDAO>Iqt2_XKkp#+={v6AzKm~_z2Oy;b+>%isfb#$Vu+=*cBT_Vbc#7y* z?ZpG2s;a8083}r8Fv%V=o<1)JmZ?yZLhqOGCSs*mYnFIt zQXG~dsdlD5>jw%Ye@6kHh|c=gRb736lFVifviIz7kcUUSe>^YgK;2FRn*Izhfs6*| z0aa1^i6+#i1R||;@^T1@fOM9(KnNlXW`GX3npwL$RLI{`)ycet$OGYE|M@4JX8+y@ zMk5VKmNbgvICiX9%5IX4728siY#J{W4)@w?4=6{x*Za^O`e@tF+avS=u|E*!n9}CJ z`FXN({@-(}>fX8)ZiUpHtGlMVx~FHRLrr&0*x9Mgvs#5w+*NMnRRBgvC=t|T0R{#{ z5ZFNbVH*i-yiOpZ8b^!`UT2KodyF%-pZ(YNx8VhPf1Wp;{X4hR_wFlgroWk|nWsKY zGb34+HKy5s0nv;N4k$o^At7-ZAzew>l&wzdO8uLyq;)0PlI?6we)sNg+0K@q?E^#v zwN{Z?JPq_TJj(9AGnJN7zw!@8|9I-@wEvMVaCsO^u6ipnZ#>*C5P zdhKqjsOX}iqV_7MJu9xP;tp!7xQp6qt34@-f=&?mHq9h7@vl|F=}nJVMS2y*nF{V#tsD6~V2; zDXc{5)kud!OEf|_;Q9ZhCihviX@D(Dy)S_wED*gnBk*S=Fk=~%s>mr_yM1hroi^Gk zJGG$FS!F6|T5rlv7jr=iQ&=wm1_uU))Aj$~ueADfGLun5RQ!32`a@O^qs(9oIrcD& z@~G`|?iKEP_X*Di;hC8WX6_Ko;SkK+Aeg)3-us@LzxT}CY3A-^xC025JIIUzNM<$w zGGY;o=;*b|+#P}g;9B1SPyk2@Ao+)g%n~AhR`(1rn9(F7Dw|+L)n^QA{TTk#^Ni?` zJ!flKT7RuttJX^IUs4Z~qPHTn)MATbtNmJ*X7le9MdTLUehNLvwtvTdeP3_ey`+J)*@1f|*m1Y2E!CWflSiTbAW&47IwwR{s;X*nlZhG-6F; zT5Ya>X+Q`|jBQ+`(MWGHROy>vJ6uv#3T9O6ui!>(In zNZwX#;Q?tsv5mg1+aI+jAu1wFyvX@12)bT;c=_Va_4!@jnD&1Fc){2Gcb5LFbZAaB zU;?j_e;lwm)P@Gm;pgzvIhXuCZgijj4M+F8$`aluAt*QByX&4X0-e-7;7EUM-&nyD zFq0kA2deOI*?0c*DU$WWpvU=YgkEEUw(C7mK?%h0Qw1+qbQc>ejan90?Hag zQaEw(ZUv)YxE{=l4Q2 z3a#NCfz$Tnjb{{}nrzaUaRH%}@9+=w)AUbKZO^T%jHeXGyvT83&HaXkA1PniIEo#j zU!?izYM#8VDMp8-XOj;bQr5#cpEz($@#GnUoY*dM@&c~UvL-9EaZ1=Es%syv%%N`BckoeB(W_UTV zEINLLWO#8lddKU=JLjxm0_W_Dw9ENWj`{Gkq{CeZVfp5BRW+>BBaeOS%6XB4O>%3t zZ3uZD98}HREOPYN`mLCUg=&Gj2OBNVk>50KpX1x0pH~RhSzlD%7bz(+qof%DbprE_be-K&xV4&Lp@vPE$E^=hmO?_wxw!|%Nv!N=$4=5!?A z)S!t}zl)$BsxLZtwKc(K?R@m;Yxe(uu;aA)&C3I$&)_P1@+pJmw#s^u5$l{1d=Q4u zhZTBE4%QaN(fXzAePiUksTjs}D$GO9Fu8wZ_&wH~)gdo7>1$A zC4M*lkE?#yt%gv;=k*Lpa8j#8)=>V7ou5gZ&kPpjf#_Mo|7QkU?XbGtqxtwe(8w_M zJ=6qepw-pncGO_(d`RY+BH!Kpl1cx3E1VoRxDwi0tp%~-<>ir=Z-r{5_`+L_n;|AWRHyBOV!pUXOK z%6=4kEWx{LBGrh-0xka}FM_yGzrQ5wtzDkJ=F=2ogDYyDcz0fZZC^`lv;30$EF))Y z1s0B%vaO+G~@XW@sS#zONiS(A^idov0aqJR;{GO3l`L5o>%X{umK-vE*4FmHrOr z<(0>;%yGEBzR1ZozKLv$PyT)&HSmeS0{J7?>FM4jg-;GH`A#^(F)Wwz5MHi6g>qEl z7zb~$AyD(2em%x#ta9A*yt!Gwli9wzubeYx2pP?VkH{B4n)Cdj)~OaG=Zfopf%^W~ zkn>k688iODLC(jvMffIhF!nxGapHr%7o7FWL#g>U7=sY6LVhZP-nr-4nv&23dF-PM$gSh>fYG-ugVDr&~zxM$^fj3-FJrBaP77So+_&BzJ^w!ar(#fw}$Z)pkFJ z8=xKTZtd-vz+J$Mv-}J3?SKy0^qjZ+0o`@)vQ2bM;r`!ireA&uMz4C9%tM^@u!xW! zWzh~@(GA_v13l3Tz0n7K(GUGG00S`ygE0g{F$}{o0wXaBqcH|!F%Fxs1v{_{dvO$} z@DM*tI+NYxFl9|Sv)ODnJIqeA+Z;B>%^4fB^X&q=&@Qrz?Gn4pp0uazxmem*P8ZL` zciCJXm)GTU`P~Y4)4g)9-8=W*eR5yiPxs6HasP9liPlF)qnpvK=uh;QU>wF{e5PRr z=AdDWjuG>*01L4&%djjfvkI%R9ow@5JF*iyvnP9T7{_ruCvgg=avG;|24`{+mvRMH zaXmM1BR6p~w{R=BaXWW#CwK86&+shI@jNf^F<mjseTl1eg3E~zAq zq?L4%UNT5V$styXN)4$c4WyAYmlo1eT1yXEB1>gi-V%9B=1-A7TmJ0%bLVg36Z#ZB zt*`1w`B{FsU+H)F-TtsY=1=*X{*iy|pK4L9pjEV)cGtc-P{->`ou{jGyYAQ1dQLCt zUA?al^__mv@A^L^39(QxR19;&>ToQa3g^R>a3eeqZ=U3QvhT^kC*Ph{cv|ymojkZc zZm=8fM!N-WiQDS-x&!X8yW`%uFYX8Tll$36_E~*?U*EUz{rwO>-Ou-{{93=!@ACWo z5kx{{L`5{jLt-RBQY1r4q(W+>L0Y6kIaELuR7Ew^Lu<4_TeL$rbVm>LL_dtf1Wdzp z%)m^{!fedLLM+8HEXNA0!$xevJ{-b5Jj6SEz-Kske8JBM_!Yn5cl^ibjKSE9!+1={ zL`=e@OvAKH$4t!3?99QO%*A{x%2F)HYOKzBY{I5&$#(3@5uD5!oW})R%%xn$7HO$gX^qxti+1Rkj_agO>9o%1tj_6zF6pxF>9L;Zjl90IhpM4^s2%Es2BC3i5!&`4jD-m>1!ltnSOm*qHLQgV zuoZT~9ykO?;S8LI+wc%xz#H%YFYtj7h=fE)g?I2Cb74)ah4rvLHpV8{4%_2?JdGFd zD&EIO_zYj8HwIz|Mqn%^U=pTcIy&(Ke!=hfk1|nKDo91B6j@ZBDpL)rM@^{}wWm(h zm3mNL>Q94d7>%I`G=*l;Y?@1pXbCN+RkW5i(RMmQC+R$0rR#K?p3+NtLvG|neiTaK z6iLw(OYxLK@8~^!q;I6?H~nRU^KyPJ#wFO~3S6CQa$RoC?YJX%<=#Ayhww-q%hP!l z&*O!>n%DCt-p0H55Fg=Fe2y>h6~4)L_zAz@*X+g~?9Blj!eJc23H+YF@(=#W$jpCq zW}QRl)_HVZolh6kg>`XVQaf}FU01i!J#;VKPY={%^h7;dFW0N}2EA49*GILx4$`qY zUfcSIcDY=JVU#y28a0f1Mk`~yF`-KLvK_j%X~WYtrybq zp1j}dx^Rhe#mcWa?>ZkkA3H;wY0i)BYdC+{Iqa%-1G~RH!k%w0vA5g%?NjzS`+8fQ zA+m_9BD=^T3by_dGv!4)(SBi9(Qk6xLC+BL#5%E2?H2pQ!B2BaoD&zsMR8BKi7*i( z(nLmE_(6!(YiY=wGMCIN^T~p(S5lRe6=kKbS5wxLO=WA@PIi^uWIs7r4v{0}IJsDE zkel1|{`sfm&1E0RXVOgu&m_q-`T38j3xU%v^uA*sz+;cSDwmOg{df&*yc-xi!=YsHNWZ4VZ8~xEt7Bhg9rWIFAbmx zH2DKHJ@!6H}+t6>eShfS~(cEdh6(q^8)YjFE*f*}%OAO$kuJ^aRESPN@o zeQbbDuqn334tNmH;w8L+5Ag}Uz_;j&!5G&1QwIG#`bt!t>QGZ^xwe5cj7HN0nncsv z=9bY)T1)F`D;=R@bgoT48RR)XnKI^mC9xxNaURakMVGC{HMtJA{5t)42#??~Je_Cq zTwcJdcpY!#Exd~lwoiVRFYqP4&bRq7Kj+u{mOa>u{W+-3k7Z|1ZSz}a*4btX=)$_# zE?1pdsn_dG1Kj?u#+BwubtSrDUD3v`t(bB(%T+E{-a;$I3bWj-x7K~@u6512VqG*0 zYpb>1T4Ob^YFgE-5>^f?v*|LG`Poc2W6eO*%Y1G=Fz=d|%}eG*bC0>*+-j~fmzZPC z!Dbi7AIB$0s3XYX>Bz&mLT3u?Ewr=H`1CA2O9(; z9lzpd{D|-I4T!JtDL%&gco%QuO}vg*@iJb-v$!9(aho#$45As031Ki&|+})ks$sP0S ze7AGkoZEz3xh3EhfSbEnZvNzM0Jy&E0j>+U4&d6Z<(jVUYJjV{3gF7FR6WIf^4WoI^N}z1f3Z*oht3j;+{|E!d2WSfBM+hqYOY)mW8PSeX@Bf#q0& z#aWp7n3uU2#$X1Lbo8SaJ?TNgfBeI5{J=MS#V35gOT54{+`(;J!&RKe863wk96>6Q zk%%}%;t&pCFLq-SHex;2VHuWSF&1GyW?}{=VVIT&eKl-3IdZ8z} zq79m(DH@{@8lpaGqPmEP2r8i>Dxe(7q9lr;5V9Zu{_ugi-|oA6=N`L9?!LR{uDT2E zfZOKQxYZ(Vnj0=2A|fIpA{wC)8le#yp%EIP|9@_)V%4mRh1ncyVL^Jx?&uv0u@Eye zD`)wvkkzm(_Q6Lin|0F^P17Vzu}L<`X6ZTAzsMsjLhtAutDui`nJ%*(I!fp0G##T; zbeJ`<0`rhfu_@NWJ_}Q9j}5astdDK6P4KJFfYsqGs3(u z!FJel_JlnVDugPbN=Su_kYQps?W7&IqoH1?5UPX% zE<0p9?0_AxcGkxB*erW5Gzb}?f)xx!?Tb(;6tS3w#bg!XZDdl?vMJT zKGQz2Z+r(^VaxmuTi`qRcD|Oc;g|S&{tmlo>ui^6Y?48JkU8HEu7 z(nXjD$}smUJtT+V0Xin^xsu=DA*CJ9ME(G?9sk61)4)vuHwN4wI6`N#fddq-o&0s} z5EPFQ$VYw(P>@0trU*qTMsZ3|l2VkW3<;8?h{zyKOj*iNo(fc?5|yb!Rko7p*1HXE zqub`TyIpRN+v^Uwqwc)B;4Zp*+=K2R_pp1!J?b8FkGm(`Q|@W^oO|BA;9haBy4T$6 z?rryx`^W?v3{bT z>Sy}3e(wwTVScz@>Ua4)KGUD{r~FlayMM?(>>u+_`e*zL{!Rap|H}X7|FxW!VX;-V z8dl5dk`ths2LSyaNCHW~0TGY}1gHR11PrJK)CaNvjer3_K4AE-Dh!NJMSzj2C@@MD z14gUjz!+5m7^_MG<5VeNyebV$P-TFLDgjJVNno-{0aH{2OjQ}cG?fOXs~DJ}$^tW0 zIbfD556o5-fH|rnFjrLq=BdiSd{qTlu%s$*0oL>L`g_jNR)zfgG7BuJ4iHuw1>n=$Pq}Kg{*?aImlW_oQJ#t ziHndGkhlr|5hU(_)q=#mkTsA@L32QI8{8|9+z$5|BzM5Q3dx;tuS0Sdv>POML%TzA zFSIWt?}Ai;jundSxL9#%cfd2~O6fA}~g5`ub4W9{d1^9;`t^|J-;wtdB_aQM0 zn&*gl(OgB$hqNZK2+|O-C{iI7N9u|7k@q7uKt7Pz5cwctBjkOEjgj{!HbFjs*b0N= zh^>)6Aa+N(f!JTWvjfm!*}))xPaKNe6Ne#xN*s<{i6f8;aU^m_9EChYoPo3paW>Nb z#CaH;O_j<|a@72*DyPt5SIYU63+7x^ zxfa-iax3gfc@XxZJPCVKo`roVZ@|8kw_rcYJFq|HTR4F7GaN|y4GyCG2M5!S(7_?} zQ_xR|L+NJ{98SLw96^5^97%s697TT*98LcK97F#U983Rv2glLBME^35r~gcFBK_BJ z5<`>1$qe1n!6^*g#?b9Jm7!k+r&AY%GpI{-a3*yb>asYCx})G6>Kz-h@l3w@`1z)zmxG;#%rm)EDQub5viZevHSc9rZK3 zPW^)VHQu9s3w%WVPG9y`&i8zp@v(WxFfzl8_>o~|hPf%@G0exXHf3^#bs09HEXuGM z!`_r-8TMs3fU+^eK@2BTHfK1M;cUvD4CgXjMmd1t3Wh5wM=@N(a4qE+hFckKqa4R@ zH^beO6Br&~cz|*ufvA*|h(J7dJi#8{NmiE)VWDd!UtENDv+ z6QW#9Ow^&CLQG6dO1XrXOla#7lcQ}&Oo4JaF(vAO#8e&16~wf}Qj{x+Wz?aqL@Z0J zKzW>4QK&}}D|M`g5i1jGQJyB&AvT}ORQI6>o;Zn;#K}TEhd2fGT;f!epNZ3S*<`0PhvgUI zOyVrcuf#dTxs>0D^N9;7|0XUH>g2@5D7O)pbS(cPt{|?W{GYgnxb{ZHRb0mwP!}hz zC+?z-K-@#zM;(WFhIorQKJgCmE_FKMBjPLS48%8TsdEzF5#JvRRq+ED;UZ#CT3vyI)bm|)9 z7;35Okz`?wrPC`yWU7ws%DA$lvb*P(=(~#3q zHzlW6hw?Ky135Ew3vw301mvu!+mN#@e{6v{%-PAgsN0hBkPA|GBo`(ZqwY>FNiH>q z-b5}#u0-9JTzMI@9!#!6u0=hBT!-9%dNjGAI%?!b7xf169--bs-rKP)PToh}Pra3VgnaxMW{iA>e3g1P`6l@m^-=N@P#-5h z)$Z&wP@f<_*L7%az97G%K1qH<{(<@o`4{qU)R)O$Kz)t;Rh#zT$ls~2lmB81F(LVH z@_*Df>F9;}E`0?0$kg}gqtQpFeoUX3J{9#-`n2>pj~nNx&re^7`Vaad^hK$iz6^a; z>QD65=urPlUz5HT^?&qr)Y2M#UHXGWsm z&(UV5Kd&*{9Q2pzZ_(zYze9hYwjlijb!dCjKc{~|Ta-QsZE^Y^(Uze1;rEDz=>0Ti zEKKh=dOczhdW~L3EJp87A(o)`-Z*J=09s1^>9!))lSf6^T z5F1jjYKe`g4^tmG9;@nOcqn31>Qf>%qdw;mn^Rw+zCvt4eN7^^rhX)18|tSbwxxb0 zVmsegia3;9 zL&Ra^x*g(hazk>Xy2SzVF!FHXT=Gcr7~*{L1U4`(CQl+yCN3dQCC?--BhMz!A+9Db zmWXS~%XIsqn-Fmwd533QPu@%3PuxI0L_U0`xKBPxK2F?9K8c7s$frHxPVy!4W#TUK z4Q*iDL%vOZK-^1yOnyQgmyV)ZQ7NzYbfi} zuBY8b*_d_*?M}+pw7Y5dQnsbtPkV^61MLyoQ`i-#_A=!F+N-qJDF@Ns zAyE#cy)VjPv=2SX;k1uwpHPmVeI`+kqJ1gK(X?+wIfnLwD96%%_9(~E{-OO#Ii9Yc zL^+YJh;kC$C{a$P8$*;+=*AP}RJut-IgM_z4J@bAO-VNu8BljlvA#Nx4Bljon zBoESnaW{Dgc{p(oc@%jJ@c?6J`Jjjw$cH`RMe;H7apEQNX^D7+d`ZNs#Yov(R$u~s2LB1v8P4b-q z<1O+7@B9N;$8AfiFlvlaW{FV5a{7WJ}BmZfL&&mH!;rWO! zsNtyLiLa;;=@8#gqf=v?7fEX@M0`(8DB=fdQjhqNnwpx1_=%cM1I91ZjMPlTuhe|h z0>tms!V*!`Vj?=Vl!!m66+GfEY87fV;%{nAz1#SYT9;an_@CO4+QX36k1Jq&E;j|H{BdMclBU8uY(MF?AqfV!d zPMs;y#-z^oXk$?qQ5Vz3rY_Z|pp8piPF+bGkGh7sjy55619c;966y}>PTFMDJ=DFl zDX0hJ(Wasvq8_GAO+6~lHZAoy^#pA?>KW?Ua|wOwdFn;lOw`MWHY@dNhc+Aa7WMAA z)jst(^(Ad?>U%_+kNU}@%}@PG{YG1W`a_~EM3qNdnEH$Qo3;pjpgh`Q^hO^-Tbw?u z#DKHt!wDzRhu5%Z1U%YO^pWTz)0U=>Dv!1-eGK}TwB_hyOSBc}6L_>0=~L0CrL9Dt zNusSrUr@Bw>C1|?27P(a)}*g2+FJD0L|dD_p=j&SHxq4L`VOM4N8e`y+xqnV=m*d? zn1`TrIFycnVi}ZMX?b|?~7s+ zl)e_eGL(K5#bzk|k75h@{ZQinLZO^K;9wFeLW;5|R3_FNg(}4Qpiq@qUlghlR~d!+ z#GQ{qbK<+A(1utEg|@^p3hhZzpwNL7Wl-o$ig74(C;kBxdJuOD3Vld135AJ7|DZ61 z*dZuPHMd&_DaNC)fmkCHb`d`ag}uZ-j>3M#dZBPQ(Z?tpLENh-oJri3D4a|DeJGqy z{0bB~GzWhkCP{9+W(B1IDv&nG$_#S08~A%?pM3v-u4TrU)_B<=|muO)gI#p{V5 zh2l-bUytH#q?m%@9R!c!oqE6gBt8gnlTdt!xaufALRu zXB3|z?l=^mCT<;y&lv7Sh@Xn$OGNune3|%~D852meH33M{y!AoBDx;McZh!*#gB-6 zkK)I~Pe$<*qJL5RloS(D{EWD(QT&_~?NR)KIFI5t#2<&^Z^S)|;_t+-LNODajp9C{ z-%d(xXvgYr}Z^SCqVpIlujhJ45gEZdj+Ml zNiiCwbBHg8(pB2dlXNx2FGA@$q8m}Vp19{xxyNS^HUnixY&goE*Z`D`*g%vEVuMgFLu?4j<%xd?l2%bazkPxP;NwQ6v~Z>jYPQ_v8pJyAhs6eHpF_O z+>zK`lsggYhjM3PYf$b&YzN9ciSe;{HJS1fru+ zKAE_8P(F>=I+RZ*ZV1Zf5O*`m=Mp;x<@1QU3FQmOdq|Q39=@Jnejo7g%>=6gJbVj* z{14#aI|$}$0T16pFunnJ_+A43GvML-2*#TL58qEPZNS415ugA({0M>kE8yYB2-Z!2 zho2yr0`Tzj1ZxO*_(g)T33&L21fvgl_%{UdBf!JIBbW`q!+#){p9MVpCjx#4@bF6n z@_4|*uMqGxfQR29n2!NG{4T+KG~nS63DyeW;V%g0>jCdN(7rOc>r0s1eHjaLU%`y~ zDrVf*AQ&$KyzA>`+&3`ezKI$4EzG!YWAWT~PW7UQi8b$cyxkbjsTC&5X=tX(OH5u2Y7UjVATPS&J&Csz@z&RjAsHK-AJ&u0FQ1W zSOMVCg9+AIz@y(J7=HtJbcFz~1Uz~j!Tf)~qjwO@uLB-^j9`udk3LB-Zv{O1TLO6% z;L!oWd?Db`mn<*b*CCiwz@u*w$YTJHzD+RR3V8Hgf^h}#=z9e6JiwzL5Xch&kA6rn zJ;0+M6Yv{=M?WEuZNQ@=g7NQwN53GL-vd1QB?0aQcr+szzXbgGZ3N?Xz@I;hK(+vX zekZ~FJHVg6j$j&qKmP>5_!i*L|4^?F{Stx&a6H8^PQd^Q9w_Jn>|q`x{hU@wK&v#V zx@A?A)sjwh64=zHOIe=f!RWyc&OiF#2aO-}p#Dc6^x)aoQOF3}kraqRMze!R3f#VY zdG^!o%a^B@kzbx(zU)U)hW8^^f|I-VoTTHsj}PEFoInU|fN+o(S=ym?97KukZ&u|n zFv_aTv)rb3qLUG0QZi1KS&|ESDi)-dqrAg z`QI=b#}Zu?*yFMdEP63cMpahBK~?rAk}+anPf&*#o+~$ciwkI&#G5M&)X7|=CAaOM zR*&Yk{uF~4*5_kxnU>8x5yY`yH0p#HhFdQTJvSF=A*dCG^(bLX;*>GDjE>>CQcy}9 zD!8vKn<|c$<8V3OXg9;qb&Ms+7-KRuC}lS1f}55_ZQHOtujX4eRUX<76>`4OUI;_i zF;dAGoOr(yaE#+R+jkuR%V9Cdv$R9ej_Yj(X_jZyrdiUA9@*by%oW0&P3`k>bQiYT z?H0Z?gHQH)R|uD}+4MV$BeopYYT@$Biep&p_OgqP4{(eV*ezcxn>w`>mSoEYK3VOq zRplPqXRES>Mddw}j9u~sr_?a`Ezk4}!*;mvE|p95={)p8w{XLtbP${{Chs^$4TF1v zJLfM@F1TkH_PN`e!0_#7zqiv1jUG1)dhU+AT?4^C{vmz{ufPca>t;*%4N24bUeqKXiuGXC6c9~+GmZ1Kk)ZGVo*nLermLr>HfamXN2RBF?Zw$&OKt#*6e>W$-Y`} z|8m=nZ~`X*!j8gbT^kPeFbfKHZ!aJy z{}^IMgSv-m4#LCsDSMT5(hN1t3xlSiZa9cWT0fd99D0i?g)~^Gp zP18=EZD1#oO>_%&(l4v+DWqNTIs;?!hcTn-#d`#&N(HbdEZtP zAx2T_36W>tC>a|wJ_&}gx)t+mdppZ9@S7&*oLZ*I&3Y0|x@Q=xTN#sWEc+(d00_&x zXx+EZu&bzb4qkQ>)9Uk!52J*LbJ4oW6!=U~(>Cyx(28E+As+m>na*$;iCE=D=X z#hQJPFPEb$Ywwcb>*nU*P^Y$J*Qb{<@%H$ZpNrhsnyU+Ihw0UC?C@&kGO~o1=Sa0G zU;5eMt9f>o6F=PJ>O<}9?n|)q)l;EOqd1CtMXzXK9kM*jt0ba@JbEnPxb_74AFhx>J}oBW|=v=wr<_?JM%h4 zi=JPWX&-UDUhdjo(ut)nYFYOdoPIGl5C81|q1MaB9+%J*kuZWuNdoa05t zBp7+|W-T}k4+Ow0FS0zfhlf#{+Wm|c(sK^-EHA5~beU&kS@nBGudvJ;_O`HBq`h%g zBZNt|4tu!VE!$;x88Mxc5|_K>sO&DIlyfPL{YI^ZSgSQgjtRfrek~EM#TdqomN2I_u4>am-RXPVyoxtL`U>;@S~R zx(+!i+_?vySv}eP{)Wc#os0|5MRZ081$)iJT3L%R>g4-eM8>%A?%4;w2LOCN zJ|F4;sA*wSfurUB$-JB8Wz{Vco#1mV)8wjzqMY;DG(Ze+#5t$(93bq_!j7Xv_m?)SayZDdbSdu8!awS@%@p_B=&G}c zUo%dIo2Ea(er+4?9@~}7;sZBe|6~k~|U$|KPY7475?$)*5$pz)tX4}=~i*x=` zh27QcgbVXM%(ex>Y19@Lmdt8v8Fd@8>G440lmJfQo-ID0ciA zyE~Y7+r78ZQ-wsA79?cKR?p~`ka5S4@+GTv6B2J(RAxVzs$D15@ zdAktA2g(QXy=rH5l|OgxFLou864}*PKUg1YJaE@VWG)x(+8*w6h#D@ZS4rdfq)Z;T zwM`WCjY-9Xa9u>Uf;?~T1VGo?RtVZGF9FX|6y;uaamiz>IEFiqf-s$`D;`Hv;#pLs zdAcTwCp}qVho_Vr*yJh(x`_$M4Jpbh2=~UvV^m7>%#DR(J_xLbJ#jNBbR00WXn+rG zajsETWfcsnvX5=an0$ja1A-P3)ygqR3r%B4<8+kE?tv1|Z&5_TIZs!pjN~_|uwt&u zh5Ncwb9$3AFLAi=JYqP%`&;;=Enagc8=o#SHoN=QMEfV7n|cOu94@@S{ylsWx5p9J z<25aD5T=^#rz&U zmT!N%)Oxe-@)9=)+?S}Sm&P|)wY%@GSx&N87NGtMDgR>j?Vg7dM~7Xc^=l;utKF`SW8LkproQIrjym=R(`%y(_B~W=G`r~_)7OG8Q$kI z^gKguAC`!29y%1MlSm%%_zmf85a<3Y^*JOfCw4Dgx^$_NXhfZKd`5X{56dszmVd*o z!E$%)F3f&K$j^$e@-H9yCq#q>y7zjP6}IYR~N#$dSsadMF8PD@dRavQ5cD> zcAfvu?Y7*mE_ku#g4%}ZdBTk%*RrK@_5=4u8LfDo` z4790D9Qo-$%NivKN6T!vtDv@F7$#}893?9^=D@8G`j9}2hZs7J5E|G{ADK+tMTrnu zp?v$5Zd^O`3OPTq)N@?jmW&}tww4M6TdQ9xAAs@@yM$oAc;K5x$M`0mHB=5aP;u{r z8aB;xBdf|P;+)$rd=W_Av*FF{=x1M&BlO)bfPgB^xu4S25m`>>Z?&oODu9%i3@QtQriP?YQ zvPRUi|G`XHmT7TM%*HW^F`0cUCNYkM$1T7d1&rWCdHm~cb_>ZuxTG64u)^D%fXy0$ z-F`b0!u1fHKllTKp!b!y*Z<%T@X1!8=Ud+5Av#P5@4fHa{$p=_tNZru?)%<59%CwT zF^ar5u9o>2J8V0GbJrlwYgdZzYaL>^oD1jjWqg@y5XTXm|NAT5$hY^(f9G5{4l&%% zeGdA{#etTIj25a0WEMvebNK8#zie^wY#K3#WBkjY(A7cc&pz%uGeM~EUX00qkYo)Y zfMe*u4FF-BmCNXLUOgBX&^#jS+)N5pY{e0&+0e$!Y=p6kyrK>g#R8*YvAv5l&$Zwg9?p zr<^9It%YG425of9Wb{}DZFwd+^mXnbw5dz=zd=8hHZ+Eb2)eaLE2|G zdf{gxDX<+gs{Y{`R3n8KS2w#`6Qb`k7!aa0!B%T9IOAxZ^xxVhx?8VfiInWc zrErlP;rkblA+Fqx8I>bf2zMkMC&r5>_A_sv_u~ba^lP;c`}1$VgzZ-EZHT1X-#xKH z$jXV`ewX0ed#yIk_EE@aiT4$v>hq;Y3LGKd+GlovVd#$-8~I^~{|eHd(e2|YY0J>V zwOP#4C7bHwkEMN^=?Sk&SuD~eeRJPG|I|N^Ac#)S=w7`I;NS(qKzpBpEjSDJh6lo9 z;Wr~Fr9cPPw(3MDCyJ1lw-n#J+_0>Y4jq=2PU0+05@BBL<0DxF~M)R3ME zGB-1*%6@O^y9IQywYu6`q<`t0$G&PK6f&BP+6n`OYTt2CDRi8Rs1&N;l0sApQC+&+ zLE-El*5|aITYs09yZfqefUxYE-4zGc?V2UU4GyrDm zp^0aZXVh-twa9%HdW9X^G>Yvaild^5TiEGuCPf~_)K2ss>g2U;v%gs-n#(v}<=yvm zUX^*KFw3hlH}Yb$ultoE5WJqYX_kkbJhG~6{C(^d<*=*>G821d~ z+K%s-(nA9gEi-N^W!S#&#ipTr+d?uIhRA-{s3g>PEaf;0#P*dzY`Z3?5U$HSRK7ud zpGT&l{;=nG!uOYw9<4U@qGp$TL>F-sp+2=0V=sR}AVs~Sf8}_>?~MoZYatoKFB(dr zVHiSLj_UmtSc;2jZ#_UIk7e}Id8!?={vq?FqU(ogbwPn_n@h`M)SpV{l z>xy%6br&N3fs(qw1UUXfJl=oJ7sH+KS~k*)z31Dm_MM92UJ(~@(dp}?$n9@|-VRS_ zSXRR=V(z_3ERvkeQyiH0+kZVND}1LJX~$Hm7T9haQERC|Wf-_lBa$_r`^qpRb7R*I zIa&mf*mNOB6`76}LEALr*fG0JHwdKkq=7`lE{!~y5=Td->GDWHu`&$PE77vJY&vmVbEnzIENiu)I9H7; z?~Xx@Xu=B?G~g<@01yUDyoA(DE3&kKq~LNiNo}f={!+iJvOGO%43~z--W%vr447}^ zVb5$z;W$z>Z{pM;%k#(JZ=mA{>2LC=hp@OqQTO)UGe9Au)_ut}KbrWWrzm9@N{J5T zmi3U)=<|jl9OuAJz=Iuq=~5&GP90s)<2vmloWcU!lhJu8OlPRha9s`0{p(m(MdW9J z!ZgdvYKQODSB;K(?um%ryG=Itu-h*>MXxxxN)w{5BD$wZ^74357{qmbU;gH83Q_qF z16idBmZVW=j16Hd{Ct4u(N3WdzwTWyevA=>Fy&DTjj% zV@Zs$)6NFThJ!uA_6EQlHG2L+OuSeQ~r>#w)-k3GlfN#Zy}zO0Q0IXg@llmDO))rWYHy82KYLr>uS{9`9-F}KxnGsL|o zbKe)-+a`#J{t4&t50bIjr(XrVvfRJF<1_3zPH%RwX99r6)9-iyDfHms@I?3x_!I!9 zT=_{7X44gw0icf?412|JP?dXFrW=t$n-q4IJX5%Z=!ELV;(J$Rp3#KbbO(!m*x(hs zHUPFr1dH?Yr%nrbiUl#h4|SP!HLFG9 z{OVlz;{n&^VnMLUYLVDzplOMA!fKJ&qk{9(xz?l+1W5A!hcqGjp&p|598HLRj)&;I zUK65Uzx{%DJnWQb7!+N&y^kJWkzlpknPt0AjybFS z`aO#Y@v2>Wl17AVM%=B9Hkh*#306xy!=T;zN`A@_g2r)^v1V4gw&yJ$Zc@QH#<1TQ zr?3h40tho|C+OC8$~KVZRhejoxdD=a;ws6I3VF3iejzUIHd8i6Q$&5gSp+qwK zotnq-v)m8WtjGOOJt+{+uEnRRD_sArC}cE_q(HKv;_KtH)Sr9wd&iL!c%wvA%u^Ck zA!3&Z5dzp_ezWB;glpjG6R6CS;nlM*F9=1yGzlu=53!rle%k>h64vne^Fk`Va}BgU^J72%((7)NmG`)- z*Az~1ZT}zsD3wRjd^x}Xu7Uf)1L2YIBzPt~2cYT%ko1FM3yY9lMNDm~Tj+<|(%7bH z0m&h;j4?SvSe%(u%ZiGxxPe=VggRr>ET_kLKxFu#oV&iNq`^Q;qma=> zqE{x8G4xL%ng@L;jNtfy>bHwSNAs;7ZKOjFGT*3tB{MfG-?r{O$>M9 zXu_Dhz8>w~TlMwi67n_=-1@+~9+=a&ZWWl?zGIxiDqIKmg9pQ-0lIX}Z>1J)7Mq1m zQcdj~v#M<2GpKjV%6blc$S-Y4F+UgZcM_*-!deZi9I~Gy$)^BGv z!g<^=YDmJXS9wR^CGvzZ>Cxb%MDOymI)>LFs)d16KF5Dhq0d*=1p5~4$88sPqfv{9 z*=doVGE&sN6)8LmD;n=Z3TNT|0M(#MnBrpSsGb?pnwz9HP5MQjMv`Ljjkl@2io>$% z6=lD2g@@bhf9>(i>bUzW3&ZmK6#M~X_zz3TRe$D2uUClbW$te&MD={6eh}Y@N`yT* z4Lc8(T5p!YWOy^zzGFL0CDC*RYLlLFFr<-~Nbqg8m$)!H*@kQN=jxk=U-k*Q^ zVh(J__U&u11=j=gMTO-C!8=^V?`?UOX4GOFsJ`Evvs6}PmG`?PTw;l(s38R~KA*G& zV~Bic?8iRI^*nEO>@p_Xv@CUoyq44M^=P?-I_ZoG){|7jq(zB2dl<(3VVZOH5ypFcPFi7= z&?=(-@V~J8Dfh}^4O&l45d6u@(`k>dQfR9riu0*ZwE_CWOk$j2{6J?3sGpqu=anl_ zb8Uhu0rONZSzwRlVhV1CSHXY7SK)hk%3qVE9SX*=q8TLD;G2m~q9#_?-Pyn_*HxbQ zu49ISVcG8$B_*S^lXvpLa8Q>c&0=608pDNrXjLK4G)oXE3RS6jgcr0?JJE`eOvB;e znejG(1 zkJDxpq6`AA)J=<0{^(RH&{6vtHeO$+@JOg`^>a9Xj%4gl1QIsaj6!S%i>*9cTU#T9 zX7xH6HK%R_TFWSu1fdJY@v(lMsKQ8o`6W7ru*f0a@P(Rz^?F7LSzBAn^44OofEY&2 zIYv;(FuFUWXMc8v$|rT_y*A~+?SohlA5Y1Xa0(pOVH+L{x3Q=VFiDz<4qKreM==(3 z5Dhum?iom=$Q>wJ?hwb1smkGC18LkJwst9hJs;2YIJIqm@RH%X(sP0kVsO3cz_)Gs_{_aar@OZA+gU3N zO+wVnvNA;?=9VHg_(K$HwUp5iA>cuQdX)-7tTAyjP5de(4T)Qej?b6Tfo8nA4RLcg zN--{1tAbFimQR1()WW7)@H;KRUUS%ekI!3hQ`f|v>3JusD60{Q#|P}9-uQ}GOThFPiCeI z%?@~=Sso>{PpVo}Nk{R<6qlka)^rcR<6l} zcCdqOJO7b;LLXy4oX2vl4W{Ezs?(MW^}q?grzT*Ug@dx=0=Q23pkSKt)T#LD9N*8v zj!$X{HifTegVXP6Uio^0ZAX)2S<)Q)^Wfhsa>L-oLb=Qd;pK7xiO9J88*u5FHE&1v zqt{f%RUP^8Jljvn3}o9Zl;TJ#yki;u;3seU(97guyioa^HR1 zY4mKgT!n5y2$(s{fYHe}bSbN-ut~^q%?~^uYE?c3;Kb)_aE7(OZ3MzNT#$!%&%iKq zJs)GgN1-*(KVXMdc7fuvb8@Bu*=(M1iNPwi^HRYxo}T4$rh(mz&|K7C$WcV+7{kov zX7gFdOcwkLg?z^!nnxXU6M9%wVzbq@WS3mH)%-0&yp8xwMn5mD!6*Gvi@2pjkGX{$TE}-0+uQLk(0FKvm&!CIGc95%h*{aNse+OE$)KW@9fFK?7QSSDmk| z?Vj7*yj3OZ=gefokCgf`9lsCU@W)@U(y}^M0n~-RTQmliNNrrlz>NUA=90>>ZDVYk zVX!1gSOb(RwN7A$YN*qLZXj<9hmjW#BQLI5`T22;7!cDWo}&#Z8b(BZOuCU_j4|G5 znoY6}oHP}cT*(Xb#|vDJ@QwEwL{&^E&Z;ur0m;M!6JKHHTQA(ZitDOks_eBcfUA|h za*fYaQ&DHrDK%r$k!0cZ{~LDD5S=b=fx`*CxaliO{eV&4>_RiDA%{&r8Kkii&KZ)Z z9`~E^a89oc(l`PJU-h$u$jr8WMV0fdb}rv0WYILd4cVOklqm;mrwOt6L!xEXdX^*0 zgmmU?bBzyw2PD0P$E~*lfOPLqP*wscl>p>Mqj9UQFD!iz$o17iLHg;pO91dz*7KG-VWni61~6t9j(kJM>tNeOJr{ZHxjX0(I*o3^fxTqV3!*ypJwjs< z7%P5Y0?}bD6K`8{S6T`IR8*ges z=>mOiq@yj!DP%mlAswamk=`;um`-FJ8Jgkf09F#dwkd?wirf`5i^+LiZ}Lm8tTlB# zFEgg-n!?IqRXF3HJ}k?Mt|^N0;aL4SYJ5()QVoT@;*f}8L^;WEgOjg@!pm`gCVBCh znU~aS37~Bs{|z&A1$t_65@c}FdSZ1N2czbOUoDr$LF37#(>eQj@NsM!MRk-d0*wD! z(W^1f=)}9`mks|xndfc;Zn#QaemZFPTg(&xX28OkUm~D$my+}!eosG9KKL+a{QoXZ zEWLXd-HaYazkptOhacs=lLjhXuwzJy$cM<2IQz+GCfC}CZOVuw9U)aEPpKgeN)~s1 zY+wBmll-7>(;wdty!E!ue2fF%wl90nejKkE>x3nBc1bP_SPu-$h!hFn4z=i zZuBaI(%271DJ3>Z%W4;zTS7W=)a&;s87Xpby?AWc>)X>aW$YTThQc7_ql>eyk&Xf> z^mAe5R<+fA;pxwfMj-*}F*+5U^V zR)1=ZsooQb`zp89+iNrN)@!DjxNifF#i?nl>DQPqr=EP^=Q=Yi#O z2`3BPZXuNsyA`1<8-^^)%rIp}scBNmWYb{sB``wS$Jm!6?q7<}e5S7HFZ#CJ&Tj*B z?!G9~KQ=Ko=Wo&{>+{X0rOm12SKQ+HkcCf)!-=zVcR!6dz=k zwEa-gb!C#D@15Qn7Ue2TzPNFQvoALm3Ut%(MaCxWTDanmccSpeSFEfunZGnrXCAB| zZSg~?k1%%zQ*;8IMpvscqzyT&G#!kUYA{T)bo}A6L6inG38Hk)JWt-a^+^kQ@@uV} zr|MAfb8{9GeN%V3^%Ty+@YW~veO>Fp`}yOQzJF zM$V=3cQVGqUM~xT%w)Y@7Dh!>=tA!ms;c?SqW^@gX(AfqA*}W)`MgnT^r~SLa%M6f zkH=XAnQVl($FycJL#NS=d7=Wn+E9jsET>$yjRDgH-er`I2AlP`xh1L+c*DCB6f(AW zLFA3e_KwN?$oB!Z&HlE4Wm%P^*Sq<*J^u$T%bF;BjWOOY)RxgkJ_%y8bTbLlVeC?Q z`RAVZ{1wsxg-fUv%}r{^eya9d>>&$ZA9C!RA6BaQ4ZiWq{?SZs6s27gP+CX}ap> z^RB9Ei~?2{y4hl}08l6{k`8x?^knt)>D5G!#=S0bk?ESMVk{fL%ZW{nx0q&4!!+sIkwBH7$=Q%=+jHsj1zrnNC~ z$2oCWMjUzCp_hsbNVcIK1;f>tCh;gQ%5OV8*@j38Ozb~|*-h~5ZSbrhWc>US-@9$Z z?f-qzwt>L2Ct)^6SNDEXcov?WWPx>l0?)#;9Gxk6c6tDp1qZp^Gc%Z?H)o0w5Y%)j ziAW?4nG+N|#?}xRbYu|tp6}&EgKhY$N3PPY>1sMkMpf`PVT2Jes^P`m*5P{G95!)q z)r8CcvDJlU^a};c0_I@A7_d+^ZK+^cV1p!q4VG1qY%|0d0|sm>U|EHN4TOM`U-l1R z@a#{@{uEY)$#b#8z_JQ?=Y4IMu2{^n$PFq~g&&SpC*6?%VUxt^nlnUqqlXcaa5&h< zmB0_~<>9ayb*2zP;70aKo)hu&8c}^j7eLJsfgBl^K(ZvH0SiMR?RH;6Ap@OjyRy8i zaUHY(Yrd|hJRYO#J}fjwX0FDgH~-Nh*WWUz#CE8v(j6vIqXo8I{0wuQytc;0@{Y?s zGioeA3wW6;w6_wK*!m(ODcPVUI5*Um%R4TM`<2|d0namT7mILe z%9*F2SZvQP$*z?0P0nLhI{%2_8zJzi0km>tpw0NQK#9&(MO2Tr7s0lx_Q*pz=X8ea9mFceGShU`v`24IN(4RaJc3W7$ZOlS_?e;ndivRY@rQsxQ(q)33S$P>uctXsWI;fI};| zmY#?U54>D$HOdw1@Bb6T|1A*hs+lQF(G?8xv~Q)Q2p=^QG|KcAjM4$*sz&0qm8ec_ zK)`R1Osj7%DLQlVi6~p=w#C(M278n!nx@NCz^dXGZA;cTW1T_)goxf`Ee4<{y3SIy zwU;zz9u_GTu&QagObkjH<0-q|ZN>vWg34k{IlVky|;N&SJi1rbbo)p`2{uM=L$osd*CJh91m%#}yYQg8<8r z0Xgug+L0I}pyo=W5|BgOluR1VDyDwS;6>FbslwYcDoDyikp!Bl>IuI{I$WFPlQE4# z?V=8$%L5%xI_8YcMrJ}n#KxhjKFK!_zLHUefuhh%QC{zf*=!1Zf$GUgXSwFM%!J@E z@oS3m3>?2|&0vNC)Q=xiQ3%o7jcazHxdm}El?E!m6gMViOjdB#0dng^bbkOuH4hi^ zs$x966~|x;IMcsqDDd-ft>!w8TdT!Gcebf0s@iC%s-i3`d=25HyX5=gyjAaZkF*ys z^c3@&11I=h$Enww&3fH&e)V~H9kgy!>&Rcfc5Kki3bbtZI z#?Ca_86j-Wo|(U&HK{H-TmDqnO8}!hh8_ydFVWX^&QOB3(D7|df)vmn?PI_Oekj;= z&pQ|Oh?SUkiS521pV>^7Fm*NHanzb{r#R!?)rZeuy7D7vP! z)rd3pHl(2AN4M4UITnK=45*o)4Rk^q{49iewK~;$q8Mgz6HdLxHY9@~p#J-GU`V4h zp(KiHevlDeAEnqd0vTVvdc|Z+XbFs&;~XuVcQ_}-s;>CQW*KMx!ENS)9+v(cCR!MH z6vA^ckJpDWzQ-8@RWqlCu0e2KQLHm8V2tl_#^fJmo6?1N9s9fLH~Z$>Qjmvs(RuV3 zLLeRjNkNK+X&PTOkWk85F=DTYh8jTVD6Z{TK}qmqxwQaxx2)x!kg7U+F#CSXdV|c^ zW%bfMuhAck+V^s9SwmH2>~_vA>vmOT>~)-5*6YR}3yY0*!*w}cv_)2F$n=jTxFAQ= z1qSWujH>VR#+<)_ilS=JzZM_wG!}v~rSZL%#rcpiRlVJ^IKQ1SRehahasImTw>|%$ z50%Bm-rZodmT!eWVtP-d9}UhGUgP{P2Q8y51*tOv$)|CGuckZ~#*ve&NSz5tgM-_; zuBV_NAtjld)b_tpc*qtMsVAx~plI|ndZz|NARw}7AJf@FD4``x1Z~2szBAK|n;opk zR?N(9rMku`eAls{)M_gqP=4F#z#=r*%{wmp*euPDG1tjw&xw;Kex@noppe=jFLfcJ!O6ENdsow z*o^9BfJlEy9;!4xBzkmh&)MgU$+9fB=Oq?PB}JgJuB(cmMr~}&(XoPIp)tY}IsVvb zbum<`12nE$1E}6}xxO1MtmvvD2$b^Wvg%snPJlZXK6JdXJyLk2N9Qv+41i zby4N1Vi`DZz8^j`gpKvkhp8GcO#HshwoZs3s+t~{@uh=zP0>%DP#67(Dyo{U6C%(T zx2N>+c*1D?ty+uO^?RDlyh^32RgQa|Zr<5avs>3J&KMMmsz|lPVgbY?FdWb(P;PiloFx&umTy|yw{;NYBVwF^Rc0u$6iL$#?r?m-CZ29S<`MNL-04_sc5voF!X z^)56cA#TRaEeOa=H|QuGs>DTvHtcQi0dz0`+Krg<)dAUJy^$|7b0=pS0J(hok>T;< z!$;cr9Drfwc1%{zHS3FCE$0mbXbU3va5;h&1>i=0{uwY140xc;k8{8#-ZKE3yau97Ok8#I7+4qB})Y9KPOe8M~ zXK%{xOzQ-eIH|g zzE|!iH3rJXiq&)_NT>|6>AKW(y~BIU)Xll)e2o1|Nxd$~u+4R=mty&U^9XIA!$>-a zHKoA@v&?AY{_zgPPU3YT8V0ZDz7IErHSWD@{AJdE;tPiHkU`M>&pcGFF$Heeu}OHl`Hv3LPV2-!Xcb!j-TD#{SsZYT;eL?}QO4Qm4$ z79~s|bP6`gcf%-IadlnST}t&6Cm(s_s&v}SnXN0 z4RDW&meG(?Pks)&rNc>C{yKNW!ZqF%b#FFB!wjOC%NZMQb~>7{6$cWuPG@uSmtPr& zxt#iyuc*0PIF5YzkrvoZMOpl8LgOpFehlYSNFdD$=z=Cldk~0^2us< z_mgow_Ai-dM1)q#JF+5ZJp|$+qB^IVJMvHnITs)PZb#P9~K9GTfbXxYN-mnYAuUB3|E3 zFT5LJ2>PNdb#~XWD9P&?&wT479Vc4a+)Dl~D-fyI+XNW940GUbd-87AJ?hJr8crx{{q)Hvpm^d9VY zDEf#q-u&M=+Vm9C;}5Q}&~O-k5l`R(lF^Om4)g#sS*j|e`iW~B+`!LPQwgf0J%}8r zg=vefHcFSR)rJj;1}%s-NZNZ&7^7lPU==`S%cIU06*=$(S?tq^_x= zK#2aXPuG{NE-Z+kFs?J1j7C?FIb*@RsrI|{7jCC65TfgvD#qoX*ZXm(*N3vsWMB%H zuTB!o7=Mw@KBQLO)rb)hh?sJ-j26-He#*e<>q(HL{~LI{T`g>|A<(QPHopi(a@hw2 z8ILwI^T5o^@^@S3*>pMYCbss+1RzlOWyN0##t?oQhT(Urr<9#%-t@gx8)V^oA2R@q z$F!QwQ>tlkSruw(H&;-Cu8d~qP!&9da}XN>@%mieLJG`^uTfN|3}~DN(lTpem~cD) z+?1py$C8Bk&@Nx&JmRinz#BhZ?fk9q#Rqc_=H`(suX%zj3*I`V>+dICgYlHy53l;W zwJAx>`P6V6BjOz1XgDs9IG?{2)*j3~n5(}%Ls?$)E~9rl|F@=~hxI=ZOn@d`o99-6 zHX}anVeSKp+mOukw7SrY(+?zC7f^}a?k>Rp=G?N*J-Dgg(NwiuR;p4})l{`qQYuoY zs+w9VDJPi1FXe<*j++&gF}1!_)yvJetTCq5mqM*Fd_%Il!ntK_hE+x0;M}rSB&xzk zEsOJWAKnX`F|8ao%W7q@rZT2hn(@1LoUgtA39VF8HC3&Np;juXs`l&mmCJv0nXFhA z=Z7e()i&OyR%D{(X@>CCJmTmWx*e~w)Fg;ef|9_6Q5Adk5(JvSpbgs)F$G9QrJlyZ zKoiHV>j<&GO$lTfy;F}dxlOpcT)Vk+i!X_0^X`D_Lb+1*l#n~A*Od7}@$&L<%SacO z%Q}w0e#q+eIW0(48Dmw|bh%ozJ8IxN9k9&cy_`}(P*nYyO1<0+>P9~9$en+wx?~n% zG3pxiIMvUA9InDWdc!7o>8gG+2uQJ_oI%fQShs3e7JIJ+t|%B}S(gjdv6>+ii|xXE zQ&23nV{%-f#EQ7KLJ%}$n2MUVD+&gwSiOay0`Zx6G`cP%ql?msTnTEAYO_!vfRKjx zXiE9A{{}jNcG0cqe)K4M19~U=AZIoXk4e)(DvRL_cq2svBtEyq%{T>Zf(XAE>cZkH z6--IRgDn@ZZ~FLw&i&ee{r#`+-kL0{@GVuAp3OFgA^fwCICGw``B8#&WBZ5mSuI+Zachyae+JS_UL+JM;JX)aca5avC4CG-%C_9Dm+;pcFxShT@wc}%{LU(;5w@mz#OW~sHN~G?4 zz!*1MCzkM$MqqZe&z`@T=2BTL4*nMIiYW+|U98bUej&7$MOirSE}V?w8OuJWu?00} zy5#D~AQ^}|z)>MZDi0UUE+vD+n3GQ9L~g6Dsg|kTGYi6;rE0X+Z(2>Yay5(ro0h5p zgj!pBoxreXshXx*xzMGT8+V2&ic_?Y5ANFg1u%U&Zf-*y^zsdDPGj@)E-QrXdw-QE zHy)ylX-{a{wawQXJYrMx{z?gK{Hn%IU9T~j-mdA#P_dCIszIW{C{nVm6N+YlWIYeJ z^`q(@DhlqcD;aL9P%@i0KL8^%pa+-A!6aJ^^euOH0s2VTs<;-6diQC+VwPDQLe$YR zqZcCl3oAK$KnyR{mY6L=OErQxo$DrPz5%J5r^YWSV#YM(vPeMEH1#sbEX24hQB2?!#HgzCDgih>{lv%L{iaycEqT?8oS0!@{v1gcIXksFLj zSd=6TAWB5nRZRp85+Rt`&T2XD>t3^5$a7tmiKbH`>3;~SP9#y|j7fqh5kibW77#)N zq00w+_wE{6K|_?GGd{c~)m1^ODksB;p_f4VGmal5L;e2NV3fv$dH~4o)c0H(2$7cz zf;2Kf(v;H2n+syMdtxp3i}^D;g#C&hfA{Q7vA>gfisXtmo}}%YB$^t?onRw9%vKy}7$ z?^Vj6h03-z@WIorLr>pUJ$2s6|weGs$dkYyQy@CH0%oyXgC`(nu zuSSx=FoMYNc)8pV<8oQ^dZ5D&(GB@EE6g@k;M^1EJlrZ*bU#UD@kn7B#a&L}p$@80 zj(ElWkwyHIQ&t@|W<4@WN9k1IP7cJ4UJdrX9n!fA>2>A#bbM(%`z+rlrWYVcVgybs z&R4C8uB%gCj6A=L$q-ClFOJd|Yw}#4FpQE>I*NBNsLiDkErd$sC7!RB@WWp4#T82; z>PgEwsS?RrdGXo;hipN1J?H|ar=|q+6tc^mqFB)3`sXFv_igEUKI%@uxptEClN#r* z4M1M2&m+5xGQ+Zr2|E{U8w|@bGGdw}ZifB7JrU*6afBMfnpg97BdG0~C$x#28gAmf zb~O<$fYWC42~0NL$bzGy;G#3Rz`nU(4}54g$rsQBV>isQY{TqlG$7lj zztlwq838ryt5z6pf)^zraW3!0{8BiX;=47qacN4)3<Oq1PiMjgSChdBeIb_yH4_UyKA* z67bTVk5j_6pUqN?>YxmeO|eWl5S&Sxj+N;k1M;l|J_U4gV`HISU)b0?8Q4`}o4`jwbaEPjiR5a$_CluU;x92z!^c*K5-whQ-RYNTX=!Q3!&=EAwe=+op zMn=OBT4tmtqdbSoi>YFaSP1$^Ner!*@ye!diT%_EY64ZrHPR&ju)`cKwWH z0IKjw35vzGsL8S{Yht@tgsOa#jS%CxFS=bL?|&6HzE7H0JP{8gtocw4ZK61WpV-(U z^dhnipQaQItH5JMEjcPjLuzlNBB+L)=w+si@yXgk1g=|`q@>u#olGV@HuDA(43|ba zH@Ke1PdH<-xw3qCxzWg7e9sUj*<>=NGw1HEMH$|aagL~*YW4J4gq)gs8D-=_e~k|E zaiqxmQ{2MYs4B9~hN#Cx)dP(QDYm#<13pphcB=+ch&G$LQkHG_*6g#t&*0@(Gs3JQ z5q;VPP!*tx6~z#0Q?C_i8xE(RyLZEh$r$hTGWd-c-JuC*%;HERyDNGMy+q6M8q=<*VnC2d zX1@jqPQR=A!K|8Q-RwrWf=PRkZ{2^n9XQRk}`}%)_Ep#J#4SEwoPtHsc74C`hY*vxWH6t2+r|^Xr^dNJjy@WT%?f#*&>y+!pduVTzrjRf@8ssx3uP)$*3ARspH)mR3bV3#+9~nSBw8#WtZWj|(8A zq!N8C-`FKa#rE4T)KS$PMQN$3qLdCPNN(;^heX> zsQ{^G+UZrAWP>4V3$8$m+2rxympaWsnw+1hS@6HF#n`vy?iM}Ra??GoB9CHq#htF+ zX*VFHXWW@KL}`QuShRw;mjbuQSY$puIYQI5rA8nYFd?B}ttV@k76?J-uH`Udc?CI% z8kVa}a|HE~Z$91vMrf}2_!rvdpV?(>H**Sw$C9V;SRt(gK*&=2*aN{1`ZTPaOVjW` zH86G$|CbxE2bY7mHR{h_(%a2XFJC0QeDScyvUeV#bLb)TCWIP;v=3_MD(ZDN@Dp?k z;>aM}31}SXrHZkPuP|X;XP*MX!!N%*83leal!!`|y}p_y42Blxe3H)7zZG`WS&Tf# zFX@yDf~x9GZ)wo4GD=ysKUj8~x~dxtq9~dIq4OA?lJ12p#__RyXG6}TDz*Ci}{3F$^_*Q4ib)F7MNLOnM~B91>XnGDhq zqYsv;B&~<2(om5%Ku>cCB4t?3PfCP%X||wNuw2(FSH47qNMV&?a|r>J9^1)pI9a8@ zL0w(E>#CZ9Q*b|UG|hE2FmwrHMY|vSJfBiiZ>%d)KqA@v?G>Y@ujir$3Y zgI+*Ci{PK4)%}zk_=(tJQwOABd6q6njS#)F)exweWWT{0n_36?c|ju+ujRVDkbJA! z_I|hKN01Rm98+uTp6Lyt?NPnG>H6juzho{PWdtsKv0uOkPZ95Tv#t28$Nv+M8Ott!o#4COlhvKi2EOPkO$MM(7rV8nv;jp%2$76+g@M(&+A>E95okN+jE6 z_Gq{o<8W>d?PI%WFKB7Kc4KX|-zPPm&(=!JOZvm$rg{+&)NH*6SXtFjbX|#U)@@#% z;n%Y4OzV7id8qF&%{`9AKFzS5Mtu<Mkc?6Asj@RjXeb<1bV`OMkxa&kt5KyiF$mtZx zAZQ#$fCkDE`xJl9*y7*!E}e@<;9X@Lp^*K#PZ^9()akp!bzj6T&$f4EjKKZE%Li}( zQxu>sI)&~;t3qAsC2+lC3~0u6>Wvaw#EZiw5X%@s-5_ZWN2z43in~C2h%m4yAQlS< zZRoiq0REHYARUqj(B@)D1xeX6Kv8IY>n77QtT)uC!T^jtMG|Ozi185tBDm#<0MXjM z|MM7Yz894(toe#+Tk&0qQF|qdoX2> z^AIdAvo}B9s~%!6Rbu?>Fnn>3Q&5RWhwuBtC{C^u#Yf>Dl;gY}ZNKVebZ(PWB2vX* z;?5mgL?d)9dKG#$DkmG4qk4j_9xMR3BC}o46!2!!aVSFr_)tij>QZyqN2%N32VNck zziw4LU?+l0axqwIqWP2A*EL=W zPwAALv6N5>Z5pJn1BB6W1j(1biJyX(k;}+$`bP8+dY0iA4bX);s}MK+&V;ujTO%yo4|*`^Wl<=~LVfMHpjZ#NI|q(0vM@oecSEemI_^Ej3TzqIW;@ppx4#rFYx zzfvt|+LFwb;3lVpKIdn@#=LSp&a)|VK6V5iy;^3+Bckcr&2pAld%*`5Wx2nw2Pt7= z-l!TiYv7zeu4#w8)%RY*7?UjGz5ksq zqlM?u`K{4uh7VC4NyE~H%+p0)kLwVN3O^y4KO_ZU83 zD!>9K?|)5fx}&rilOdvhK%NDbuIrfLeiIiZ>_9VCuHd+znF_W=0H%29-I$LE?YLmZ z7@z;pZkS1ZfejlNXKZ4zH^CT>dg#yaQpjIJh4I5xCQFiLd1+#K!G=?S>?Q6KGwTpJ zb!wa>e5(^mqB^IQ0+@Nj;Is(yxfUaD0#LxN!k!$@AksATe{_**X5)GcJ>sZ#u~-Ya zIA>NX7H!oz5_j?%=5Nt;M|T~rY20yjN7uO-;TpPRw1sxi^@y#>K3+5&rF66nqfHo8 z`5QR@&!(2EjM6u{Y9SdG3-*6%*T)m=p94Q{I=47x-tMdbKs}ZIFHI(gJnsz_hjn9Y zz%SqY@v^`e!wmbamXBY^YpN`(THe=quE2TWrx4s)%V%<2^UndgJg_I~cCy7(i->cu zDvf$cF9(Z*KorPvxrn>L7tIe`T5AqHZzW_a5 z49Lg&d};u%Hwve)A-iZ~suaHyR!CEp|3j<2MzlNs(}Su^R|y&{N1k3#l+Ov?OW`gA zeJ0D-K&)e%89ITk@V+*riOK_sP6zT0fpF|vTpmV5B#((|k{1n==m9qm#nw(!loQr5 zVo_nIwQcJh!Hc`QlmGePxi^wcqQp3(#>{FLi!jNyrvHS9@TvL}bplf~L>p)u9Y=Sd zS6v^9@=2$Da8WA)rXPc3SN{bw7PQ;LBi+mH`+^eMY2}eDZJq~SDi#3Zog{h0^Gg;T z{b;(W2dtBp{!i~rI2g6DhsoDhzEZcjMo-f(-t;hmWk!Eg_CDB8reZR4jC&+06PjKu zeVQh;vWQLB+O=peicqRH+NC(o#7~x7NhBynqZtpA(efoFFBwL37~)!!|Xr7zQu&F{B&AQ80~d4g9%C)=gCHx#u9+lo32wr`zh2( zD4}I&D)S+804t%P{%D+xZN(ngPxyYRl$_zrC>;eTo%WJtt?W49TIGrX$~#plTP`?G zS(9Z*qDA%F&vBQ3p(Sss6WNXx#%(QVvJ8$>exvF_Snc1ICjhSc#DLs3LgO{5>{Hm+1pk4G?l`6T{?sZ8uxH#@ksB;Vh8u2Tv_TZRmwyiMULOF z?Pk+XJf;ms&`toJx?Hh%Z5M^%{5;FuO(G6u8J)mB!A5ml>qFPPXy1i)nDxz zj-@uXebL{=s_gnqa${RHT~*YUZBsR?(t>B%dec*gGc?qqYsz}nHg&_49Sb4E5N8m7 zp)a}c9J&v^7X1YJX@4u}rBn2L<6OGe$jmfr*@S#z!C>)Pdq3Rd+zHS60OXC7RDnO1 z%*Ej*?VTQ7u`HbMAW9j`Nz%K0NAYBX0efpc{zY^9_?GkCd9R|BZZ-gnn@ftKs%wg} zrm7v==Xg0EMeQpG7G*pj#BYGd`|}1?7$6WY7?=2IfF=$Mlc_q5yy3MT5m_?frVw=aiK5j0|lLc!Djf z;#`-&_{Pk*{ukDm3A`rkHQ>%3YHBu0F>~|c*5Jx^6y;xbxek|(YS|+_$Xs(D)|eO3 zgKq8mkdmK&`h6HpzxB|R`5w>Kz6WXP?l|B3AA8l?PI#aG&yt_b*<}6mpTz7<*qQ$c z&F6$80E3g&H*1KN(FQt&Za{aTSEIMo#xlf7vK+JT>K@#?{WlUf_&np8RTGpB8@~O8M;)|J`}a7@vobfiW=v?3(VihtB@Rdlr2HI-L*T@U2&d z@G&jopCxW)xB}H2TE@(;FTU3Na{;#}4Ljehe(=Mx_sy7z*H{MbqdyznfgVI}L?8M9 zzkE~SIyD@nfjb%?E5!I(Y9>l?pr0+1ZhVaRu1v4)tkSt&O6_3)_Cp_o@tpie_ez5( z72$70D<>3+MlVJf(RT=N72uq zUqW9;zl;6^eZMXv?OTtkFT2L-#ixSgy%0=Jl&3rA1tVqn;(LM`;!d6(J|FRhYst8X zN|U%tH~2xk#-#;xbQPCa&{BX2;!2_iYJy&p@J$T$B*>zHaP87I_Mlo#P{6Iaz*v*o zJ*x*zQhQHR*=2pqSpJGGVLu>l%XuGXp%3&;K}yAf46+mTdJJg7DzF8VQTT>}5wnV+ zw8^hR#RR|qlcvQrws(&SU_LOUs&3p@BbG&K_ZhlMhYy$l=0gQhQTeGlu`CjP8otUj zZhbo3(mKLFUHueS6|wM8^`1S%S91&;zziwKL5Ep8-gj#X{Q2uN@vCGoy_jEzR9vQN z%A~T;v{Xk}5lv9mNynxE44~SiHG%G-xJe)v<#gep209Z@|~4lx3&kDly}!;<2< zg`X(6o@^Bq{e#_G=dWCdN4Q}>ZX29Yx2Q|0KuK;}Q;TDE-Z3F2HPC@O?S}Gxlm`W-F?y*qK?|GZ+;pdbxLaj+oJE8SI}H z7YTVwvLODhn&D`o zA!B@>Gd4B=+qZ!j?N_u!?FIwDSd(7mu*a3QvZ*cvepm%I)D=%hhj1ukE9+k-`C@D~5>1Wb=Iq$AB;sm`ctID)8;y;P#^#qD zG+i!Nu_(!Q8govJz;i}*3{bn6>=`w|_^xXn?ouM(-hc!ht841jD*!83tC|i5I@7pa zCNzj;u$%hUG5m>F^rAA&8`~C99aw9jfkh5$CJP2AC@EfVDhLU2fM%RZqhaa?l+YOd zThX#ma5`&&k6-rdpg2>u`9V?ndNsJ#nExN~Wr;Kx{UFq-=asQ@Dqigh2%QD>zz2Dv z>X16ScY=#oDC!lG^aog+_@QDf-K?M%Wd-v3-3{cWtGoJ2rz;Hd~VV^Hr$_K0nI+NQvDsGmU%zhH4_|;SDmTScLh1-?bTc z9!%DBcXz>>wcRx<{b?O{iJ-V-N{kkL``4n|(5n#wuQseT+RcOkyfM!4+TCRuhQ4^ErRXON|S<#o!L0wlaFYG;(!mCA|v41%v26jc&*I_;a`2#gO7vJhsO zut*2tsyslYWS@Bw80lTPkt6JOK;oG-U9^ZY4svI{86n3LM5a2-{RGS(wZV<10cl7m z*FOD&HGS!!`^THR=xFTpDoqebNHtwcpPi;_TKes6o`f-;Ws6)#$(d|143n>?VvN84 z_;{rp<3w_%=QSE;N687dpgL9^`1>^j)JDhH(4c5~zKbWY5P_zmY93!+7r5s0vDS=N zQ`%6J?qYw>aW?F@neejEI{q)q^Q`aH2hX$>0~FyFZG}_a32vTabNpvCt+P_DNGiu* z_{PouMb|%lv1r@SJt8w#h;=b;b)|`O67|q2w9{Fmz^8%_&ZZ+huovO&&Ss@>xm+0La?0+N234H9Bxzgb zhIu~#U|n=wQUAsHl`y-%gl&8&Jm`!5u)(jHvg*$NKoC=zTgKV4W!qMHRdY*Rls z+ejEA$VpYZzQN)vdu}eTB^YW4jHbvAnU-l`nSLck3D;Qyo`A zDS8;a5xpP%v_H6nq>!d3v6)I>V-mreeaY4ZnehlO7m~rfTM| zF@fWjn+BH~3(aytGZdu}s03l`wK}o9grQnZL?TI729l%$#&`iZHw?koR0#a2=+8fI zQVYE|wLU=@yHo$z!`>eJ*xV?@ydbFIx*UA95Sm<;7nXg`Gmg)<=M^sw1}maC{|~EB zEC_-iEP`!2j#zXYtKoWvallkI9?BVaTFT?uS|dggJ+eEU8rkEvPtgD!M+nK&m=%Ly z;jeu&OF#WDDcc}va1RUr69XK}u|-x60{eE)Hk6eW#k9QJ?I0*K!E&st+flt(aXnR* zRnM&y>rwmaSDo2^V!+2WRrC7XvYk{hY;SkhvkfJ6Y>W3jP1QC9!*GLK&M{3VmkV6O z5H`Peoub{QF|il9o!O#Af%e$udBbl)uCi3OH_g{;jg>fbzuV%Vs4 zE6OKs zzg^?pG&$E|m5J9KWcAyF9hG8L5ulO~mLxcvmc;shmLC4+V)`#&%QiI4ur2?<*b{7- z|JgtN6EQx%mgIh?RI)YAE|r|TWdT@L9wCC*l-=;L%eN*k*z*KH&XoPe0xLLqKCEeb3RuX$zr1iz~jB1o#L z*Gd{Eq|~sPNP>v$Lo`7s+BP`;L|3(FC_DKM*mhA6R4RtQk3?ou-E8GrIh=a^)! zSff0MjaZn(V++UsvA}uhWqjpL0jDl=&Yg(7%DLtE#k?Mm~Lqc5;>>37Bp%AcUyZ zrCOn2$d0So@unSb@YhRPW!d5Dc0DU-i0(xXBa}AN{%9LUo4D2M=l~@hp+!{KGZO+P z)tGW(6a_vf5~6tk#}G`=M-q0xL=RNrt*WG%DK1Q81q=GK3(HInPHQYj%U91&0j_#q zN1o)SslXEeU*2K2`MUuwann?8FAkvn1(?%sJ}?Y8r(i+v?Q_#q?kH>{Y=h9ZxRQk; zbQ;}*-i>|+eF1&bXT)lB@+pi2EuBjIz+>)abVK0Qk0INDmT~0BYP>NI_?!n^-!K{6 z=L@G5BXJtO#47%v_l&z0N6S9$6bdkduSTJ;1cX0gV=hk4cwxASWB+H^Z8Tke5Kb|3 z@l`Xsr{I{mvaYF-sZ#B>em2j-Fbp+w2JVBJ=#rX?=nnKjye1*peHnSp z2H^FoE~}m|iLxm9KB$gk=w`9fY*tE!ZrJYpE0(G`3AYpgW`uAB_0Y(Ng0cf0D>(NS zK~pWZ!N~+yl`<`Himlz2rD~jf59iTU=*?`{sm>myM5^&YmNMctqH@``EW2Eep8XD*{~*n8 z!?G%sdc9JythWzjmcjy;dH#n{6J_WuLV<({vq2A#Ktbw?`+$%a4Jg^md;SEJSqCKI z>iwAP{is21imEg#mR)mjap3lllSZTF~HU62KVj;Z|g$K!`y zQdQhpJJTOvM^VVA87q>a3JwDX$gq;fm!V3C&+%13>xCarOEercW=kr z&-NKVQlNdh5XD2_M7kVM2y^*D67{pdqIGfCcoFZ*o#c`yAC0g z9?5)zmgX&)pZ?O6|AfvtkV&`V%fAkD_<9`e?iyM`HzCwW=<tVILcuGQ@{X)|c~8?c)6}ku zFz125KRZ+-OV&-0w#tSadv!C$=l6PkfC)~%dRs+>+4G-Vv9J&nqp0YKqOQ5NtU8)$ zYMOR!ZmHlpOjYfRRE;LXQH0FD1=o${oLn+nAGDcLod3pNM*`o2`}8{dOp%QuG(tP* z7K9vo0&>@eRpRkT5MQ)nT5%d!L1}XWw+ehO9y-|d{}m-RVq#H}isF;pFJ1N#_*Gf% z{cmLc&8x`Fu5Sp=ZF*c;wtk&r{u`qBlG~&r+;EW0K>~3-OPt0guR^z>Xxxv*Ac$k1 zuMiH(^zVTqwBJ9e>wgji{e%G9HKWVt`E278%S#x4W!53CXy|>-wkyU2z#K<@ekbTE zbQ8KO6;>|jVf7>_`u^foI6GO3`q+2c$Rxtjag>J-&i$#83^8Zvk|Y^OPVdtuapP;; zD{}|v8uSoC4Nvq!474VrdQ@kF;;kabG6S+g6}o8!;zd~?+lZC&)Q3d=wyCLBE}S|E zm;sn9$-dOz?HHrFsi;4v`y0L+(*|hl0X`8G|F`J_2J~sr`=flRSp2d+k7HSo{>I*`G%8IR zbW(e`^Ti=?oC_9_eN({YkQ-m0t0fEorY{rgLL>6YWBS^~C=$o6@MTS#aNmQ|fWvQm zJpzE!;Q4$qzZebW!-oEtz8msUIix*?x-$mw>=m?&-j2S^D?dRKq(`$)5$M5{xS3A# z-OAcYKk$QZpXW^jd@l%*vf|#3YeF~#(9h$vSlBJ+_!Y+qZ6o4JK@PU z_}7USBQQGA$8cN>WS911oyI~=Qe(8#xqxpdDxYVXw$bSPT+UO0S^2&2EoPnl7avAv zBFPOr1~j(oTx|6X8Nz3aP%i~7n}i92b}M<+ee@UVt_u|$s8-m+Q_qj(=O+qnPVd4| zSN|6NlvXY^@^)i#38>6S8`0;B+@NpM>0s{XRVQfR(~09bCY3i}0)8Zcu@E2Rc|hj6 z(fmJ)y#AiwpXz!$it;TWSP_3q)c;sjx8Q9wfY90Fx=}fwjUXhDpt0O(o*0vBDS&^kLJ&Fca(yv7qfNzE4 z_VS0mv*bUE?hk!_Z)S|~-+K?tU*U{}zD&&n&l_eir3!4*(Fcm=GvG-5j<=qie~K|a z1J~m-(|mEa+@9R6bB69jZ$Q6f#hDtkU^+5(iTq^n-@*G0UA;*OoxFgK84){##SFfEv)|lh*K( znwAHV1%9QG&x1^)ck99)99oWIJ`DgN(Z24BqPTA=JDRpL|3Y62_dYn%&p4=!wmDKd zm~a!mNM1r*B7s{)DwOBxnMa89g2I#3xTS*ex2>#~{27RiF5HJ!3A6sZw7E9VJ-89I zbn)k}5{u)8A8ca!8Z8l_%{X{$t~%TSV!&b!8m^O-pCN6=m;0@^wRO1On*zkBg`xY`9UBt?;yq{$U^?Qak;#$bSN4@sNr z#!5@@1x0y4)33V0p;n~ADcH@CYl%cn0|cS1V3<@&YO_)ZbKx8^k8*CfO4lCH831>u zVx!i3{lQO(RiB)t{9!HJ*nhZSj#_`uN{ROpuE*)c7XpAO-h}Z<(o}n>?xtD~U zOSvEL6gJAcS!zMUp65TP!f}n-lt#{e08P+y=y`rN@uM4>7>tl1uzjL*^E)GI#!+kw zktd}?$0()4#4G%Vy0D3NH#)QcUjys96ivgvmuzlkmejbpI+frBtIb&5;r@B}f-}zh zeCH>;V~c>OC;69v5XyT8^U#>Mv}-~)_+~Gf6>MFm`N9PsWBm#y{5B3O?=>5GYlM1_rgIX!v-GzKR{Ln_{!V1cvHd;m7Tw?>F z+L>2|+K`UYng_G0wfkD2grJ)5;|Ct48f3iv7qlOLcV9+V@iH7Q^AcsUGe7UhjFzt9 z?s-e)?s-$ezROkXykn@=d3bTZw2JxZ|KNn-tp$KWYH<$0xs`%tsXN>?l^yO9)pCp- z#dP@&ihD7uijE=#9TyqYC>41&HHV`#p%z5)|EKv$uOD1t`=CGA0x)HZEWP&UmGyoz zFwBctE9+&g44^lK|1nu0OLh+cW@t3F>tJ)wfP>k88ovo452dr6hwz&+xibo=kA~4w z2?%I98rHl75iKS83zI60T*vE)m&9HI^Or3QzE}H?8GFk^^BGJiw5Sj#F9FI9s z&pp6a&G%q@@cyg7Oz{j7E$ZUCoj{Lun8c-VvxDOILI&P<8xR47PTE&8mYri1H{+zv zIZ_R$U#-8+kSCZtxyUJ9RfG&EUYR<#xh2#_BXk2o9xHmt?M8M5ai$re(t%lE55iZE|E?9_3KR-$eRcKp`z+!P zD%ChHDx531s$=krgf8|;yy~3|JKw2P=&9wU2^`(Q^5$l`R?{?i?CxLo9)MdQ*{*gU zL#NP{=q7Y0&IP+ths}=moptb@FnA%S0zY|304K1smQ%ytu^C5Ih*AThGzcMc$PLnH zx|9kUw7;L3R}M#<8`&b!x!m@NuCq&;=@{2^TAJnX)iV{vba`(#)?J(BwYnbw)M{&M zC(Oj^R?gvG&H8fAG{L&M2_H2S1tCl;yx$bdD?8F%ItDcz=opmwMaR(0`>fRAnssu~ zF;wg1ahvJx68J&Abz*I;R)ZH?ttM{A7)&#lGwst*H#SNlKNzJ^vOXHFli|8JT-S%|%5a?x*X0jIpR1GMy7W-OZ%X{F zC=6eg7Ph+9HC`eYs|rzn1OLbGFOROnQ~1s6?}3G(b-ck}t>_H>gu&=YhH!aCge1W9 z9ET99$I=*nWD=srerHQEIBGUGTeo2@$L+q5%We6FZZ?|$xqPf~4%pv2-^{rMe<-S| zSiVxFL~0#nSWvH)Kw*x-oBmww{5(5!rf_ll^{obFd0IB8; z1Ly;VH&g$;u2a!w6?EPAibc=Yb*OGEoFW2zjc+d2qqtR%3eb9hf??!B0+nx=Ht7WO z_AJhvU z&DibVGdlyO8@0<_+nRb#Fed6glee+NQeL>^#vJC(I0WU06ldTso;`RekYd=R~p!{tm2}g<2&V@sdzT24JThbPc)* z-GS~$k7*qYd+T6Q#DSk8CS&le{Xx(-f0pvbA;Q3u~D6-ly$(-px1K>YbRk0Vvc!sZ>25JG~w-M|y9o-BBKeFWL^CkwL!tYD(XS z$EJDZ4SkK${4YL({8Zs|?@zUNWVPpMD}BxEHtWmCXh$}6ltU5ft~$;4V%%%dbLjo( zBj}Up=j<>;no%^}%rOabc!DrT@f=tE^qOq?dNF!Jw+9_7Q3WGv>Y{Dfm;LEIMIELEH$y)nkb>9al6r+X8+mDh(joW6AFs@s13-YH}Hc6E)>HABB|yzu?#i|DK98|b&u?;#X4 zw}Bcmb%-`^L(Bsb{rx$~An^RaOXsU9z5)M5`JzXi(AZNR4hbdfu4tpoqdvl98)QwG zM4Y(@2v^qwj>Wnjbd)O%M`@4@qcSAJ$cw$zm;I7XD$?fbieVV!035eE?aKl$6P?pg zz}oV4x|(GT3!$v*q|61mKdrl>V1;v+NHvvK2p*9fHt!B`DC=<605Nwcf@aJm2*1nU zlkM{x$n5ocz1?1~*Ww9H92qM zkUqbPLL9;vxpRS=lR+??d9(XLv$?$7YzB`oCOh-Pj?CC2pvS)N`|;PT=F2AQYlzp2 zflxg80D2PPhlXB2D$w_QqcssjnP3(37fA&e(E|325u~%h25Z-rMi9|>yTyp1HwZ9$ z0>W-|N|c~-JB8DZ1@O#G3~j$Jumw7I$6*M5mYS}b5W81Bzj$b?m%pN{IF9mlg{dyQ z-cgzIbxR-7ZBGg>I`T}t4#44sD81zEbB8hEhlBB_uuzMy@zeKY?Pr!u0CWD^mTdu8 zwgnrw2^brVG}N-RYT8y;HRp(QYJ(Y1dP0+MBknDG1KBc{;l!EOyCZZr-bOWz_THqr zuKHaDhM9wqb+DRyG}LMt-&NIXe)p6Xe1@Aj(*X1<%HV5$mX#5>WFJ+50{$voO~;1v zC5mYhW@RHIbh_J~@rJA8rBIF;TvhU0MZP@p*OCiEu;H&noV~2}J3ulIH zxV9i@s&3RwQ(l~ZP2E%90dEaWQx-*4)o*pNHjE>oisJl7?HaUhuJ-HZ)n}X+K6UO6 zof1J*ily35&fge@HjaoR`u-ZS(K6aWH=O1Llk?5aghX*@X;Ejf>abs>r34$dmeUidg6#r><2>f6NiltH!mXvJZBwWGV zqhDIa87o^hgwUD(~aTucf8!PnqWB06-yv5?l67GkcLZC^&ex zpASvbG{dFcK56Ci)(wNjqpL9s$7YciiuIklod52{t49|d+TPRkVu2U;8ik#soZ|*7 zpSS*OV7F_2DR13ixS2icG8{GMPr1 z@+2JVdyLS?2%OjB&3spz*x$?Q+`-)T;~893Hok|bi;Tciip-hkl#7{46fI>gKKto^ zsLxMC%4eypK0A-sqG!Lhbb>jxq8VkW7>GjuNI9=`c`srvJddVQA zq>5jnnidv=s{cOmm0tf&#ytlGJR(F8B?59m6CtY=u0E#|8jhD;ZqwN4 zNMOob3SiV5pfsws!$qrp$SIu4rNf)U+pUKwTUZvw>os1!Ji}d>p%FTUb~(Utrz+FL zA<)6hmZ^BQVQ7uO3oToPyJw1iVK!v#i-sOpM^Y;nm-GuNrX+pCTZU^~?)HQN;)9k0&6 zvzq|Yo`FI2c;x!hNYqGDYY9Rl#~H&b2dMsyYn=DU0`SrDeU?Ft_a2QccrUQ6L}vs2d&U(CAc_f2tnK zj4QQF>r{i^AW*aDifo`hRU1?HsHq_fo%Gbs%J3V7VZs|Mh3`VCVP$9BOn6556x-kd z!!V1mnNUk}H8&(}8q%+IN7v<&AcM^JUd z46+=L&GYFP?WFihH*R0MXm@$Krs>{YTCBgGqWcO={)26m_a9~91B%j&D|}J6Th$6s z_CC$4aheVIeX3nc_2_ddtwbscc_=mO3morCbTeaX?SSGJ)5xVs(h1fcaBHIr^*F{? z6U}tBJ|Nb(Ah=^ToH7T!hh6`4n>&uFivop1TA#1s{Wc*?v2A+_Se7W36nxCBh6`6l zm8zErSOn#D;Q77>OE#_fJ?C$}#>80D4AW5Jit%dp020Nv9h(rg3lfnP$Hs79#j;GZ zbV`yG#nO|!u4#Jyi;w12)w6x0<87k{ekQZu5L3wbwxfsLC=rSrhsUU;ZQuyG3LIo1 zN|)qijFRqT=Kmm0_`OpyQ$QNz(^w)@y|SE*^yJ1d;P*3-_x-%P4*1U8+oh-|sn^Ku z<_X4RA-F=G#Si^w_cXsaGLQ{2G~EV>emL&g;0VLh>@>GcTSmZqLnXNzu${-fqP)D2 zQVis@@f=Ve#y!(_RY$|A_?7iA@61zfu7jrgcZC_PsPJqTWsY;DXZ~l)l{K$A znwJt~5rNORJ)4ESL&540C(_TANgisKKiMX_5#8J8%{r4IDMAUI%)ub)62^Q9c}%is zZ4%qDX0BX zW&u#&BY8|*0eAX*AYYxclCjUdN3vHx6aVFd(#vDHyN6c>UER3y`N4kk$6`^x@3C^5 z7!CX$NorY?7Yh^qlahzowp=dt=lLF~9uxY9caJ1+Lhtb$ZCiClCc$c(tt})iFyf__ zysg`yB=95S(jVm8>~?MzH{5dGZ5#{Mv`Wo-qj#^Nna@|WNR-hFFWQFbcyZ=6Xq<>C3nHLE z?H4kY0=+hXLqn*;>Se4r)huTpnp!Qh>}hI^aASw#S*H0Qf5!88aC@s6_~DIMXuyHJk1S~YBi6M^cL{%vNBO^mY3->^M4aTuLpWd>(c zM}oxA+e8O~btf4s#P$vH<(8@oB+(YQPHp{cjxRaM+u9t%ZB)R40W3_VG`$lj6jw^7 z$r!(oonX>u52YPNKJ0?M;e^2@lJ~2+CQ|`xKjOv}ou@bIihir*sJWn`aDN$v?0@we z_zmwf`;71VFbZM&SC(E4<5+gHU`A2gk7AsIQXx$|P~qh==qRce?e+bBGN=L#{Jd_6)N{C5=M5dxSaW*NrMkf6vw63(&G@Cs5<0d;J|6T2=lc#R&Fsw zkuk&MZ!TNEXFo%Qc5YPF9%Sn)NJV*cL{fJWIiqc%47lSW0rKjrsT0Rf(2J)Crkm-g ziUor<_y&|YqCx0r#Z5URiiwH8z!ZBg7#NI?2H5^7{H|ZOza4!(UmE26J2fJ6&NZ@z zRZ*Y|0=|-oqG1>YyJ^B1ONs^TO78!fL~>2uCVb2j^}kNT!MZH}_JcG3&@HdV_UdN!gN}1972MLTH{)E6hs27@r7u--WLmn>ZsQ(!2g!lfe(CxDYR}@wQ#eo|ENF z<2szwYp`N%`>(ZR}uOz+^s z(hhT~s&q{u)Cku{i$RI9W^ewv#4J*^PNZ059N9)!pc^I1douz8k zz|F@mTh<}VyYn?`57JZg4PT%l7uCjgpKK6V(J=io@qD3bjNba5`Kl?87yxw<2EN!8 zr7b8tL6GaYM(HL1i^EyLJ%>}NHU#plv_?GZHXDO6wo+UV9d<9xwm`^NhbyRq zuEqdMQT@xIG+0;7=z=*0ebJ4#g*-BZyxI(yrg`ARw?AvtZwBLF{!__vx8@9|F{6pG z?Ac$H<%wd?HEL(U@~dAx|KoHyBeRvs?~7nW^B!H}R+GMgED(w#@~bNK zqT5yeQ+q_%@5!6_3qG;YwaryIX*0)OzJIRwo&WFOVV#8| zP1k5f1VKwRO{W=#C88CvyLOmpX_W|q_8LvoXh=mteT^tyspAbFT13YYcLaiyDQ*L- zOmmQ=!JvIhgXjp8#>&JT07)-#wU_1i*0h!_%k!eE2rI@9w7NM}T|uZ;%QrkIv7@%o zKh^Pn@f$1W>rs29*~l;5P_9;m`TlH8a;)KK5gqqlwPz{NLk?4mOon)Rf}+@pxu%|c z?ThAK7Kt%(=#71PrIL##4ML|>p(Vs-V)@O<4lm0L!WdI^DW%4VL5rL?wsmKa?bwtTliF8 zu#Yn7!5cmZOR11d{Vez~Op$@w5N)Gt_(Rs-fIhAP2z?>wbo4|AP`oNHJ%#}L4~B|> z*2WyVM~OCx{PEDOWS;qtr)J!Y75%RC|1hN*d{d(oNIu`7tl4bj^AZFH(KBB-VH#j8 zD@KzqczH*#JjpR%>`#^U#G>&VH2NHSct7PE%~Z2cq(;zAMT>>z9BVa?j#x9Zuv9Y% zu&S1Z%g80Qz#Gggj8atw5@j5;M#(XODIeg1-lkjMi?y_qcw9b7FLm#%-MyOYVgde_{%=uOjhpcYfaSF$H|Chf2l)OE z)AZ8P=QGm^(>;;LMEWNviy!32>obRrY|zw$UHU8*Z^7x_sLzsEbovQP$3)G-rGF%C zB;E_qDp$x+fn=zr0Yf(cXjY=12TIaaPtO=f3P4YIrDs@UcxH~6M zBIZ^p#!{1kB++h{N)l^I0;a2X-|obSTF${HL^8u{_r2fn?j9jM83>gcLn?|wJ|~DG zU2RB&g8VHk8NN#9>s`PqmR?`vqq5)E{*k<8#-X&3Mun3?pD~9f+YlKL{|F>aqVmuZ zhEGvr_XoT2M#eb2?h10t737x1E2LYmAh%36G_HW~#{GD23fTs~_1pTwXG6|drv94x zYqJG`UB~IO%ILE(~Gsa)sWi8Fu1~dZvZwBdXGV}4v%co&K zgL6-vaxKfoBxZ$;_=zmbWY3{*8*QPpQFSvlzi5)5S~J1$0@9^#5YG*^`O(znugWML zC63Io|EJtJc01#lChb_(a-$g-jk97p(Y)Bw{q?9xgRebJt~H@}XA*f$ zjzIJ@!TQebNbw@Zj(qh2-Al1#DEIe3vJDd4hduxc>6Z}jK7;a|>gjw&uSSS9yucJN zV+^Ac++ zB+=V|siwN~Uu7&8|DV0HNyE-BSF7SpuBvUe|GsZ$eq}=FW}CVsAO`npLwTg6?8H#&=*#+5|tyg}GcfE;4|;^lYAk z>3odMo#-I#Fv*?U-8~1?foOlp1%%e_Y0M`u$vrJz%wuj8*DTeQ9J!QkOe2#@VB(9(a7h)SlYC0ayFg2PdxYUAsULrMF|epp3(#ZvR=ui zdsKBCq6uG7lv{C|3EsK0Xxp&SRzK~#0Qr2QwNl`e$mg>d(#rJpSUx zkvDY|Wt_ss!7;AO@A9{x_x|kV6v91sdE#3$?)&~d_ND(^sy@LCMQpkGpV|*zp@Gth z<|pJbC2VK>L|m_gO%bZ+@-n`j62m?fSbA`hfyMy8mw2?A36xoNqe?q%*o-4-6;aAH zHf3r*LI@F?YS-L+zbKr(V0%DD)g-+C7S&}_sAT9eDmFu~cXfv6`_H8(>x7XXWNf-5 zN`0_LunS~e?C>w9%;eVQ$_6m@E`qUO;dBMLM~Srd?!#e>{v2jv?0l)m&opVf+tkT+YPLay3So7N;Y)s?BzGz?f0RQ1cx2&amos?q$PCmijJ7{n1L#Kk)|65lxBL#Wi*?`+pPzhfbUVU0j+>$)WDd$iNtTeF#kKT;3ilcjI6j;saqTHk8e*Sk-M(H`ueaWb z`rf`3O6`dFv|Ohs*E#v}BmD85SwhFq)wAk`*AeL&S6i0jB+!5DMf%DRw5A*O211i@ zHxw?z7h57&7hb8R{KQeJuB1Msfa>?^+|m@TP|o-eblB*KpoItH$o;QYu(%otM&^`6 zup7Na`Y(1jVi&>hTh-%}vIe1^ij33(@So9OL=zZMvoeJCPa9QXn4O%g7qTfqRRCLl(Ji6QZ)HJnrAf&A~2~${>ypukUwXop+l4FCDu7!sCf@4F#>f$E4rcduC zbRIqW4!PP{nxKf~Q(9HBY{nyn&Sd08=PB~JQ0P6(k6D;D9`ENac9S*z+PLRB^?-J+~tOHVlB6I7zes&OR6Q{Rj+8D(PlqVs;edTjDo7#bo$YX{o`7CD#a0 zkh1$*qI)|a`Q%mAW?mqKVzIqYD9}3%*soxVTtQL+beS<(2T)IxWlLVStB1DGHRweY z;dU|nM=>FwLBOG85LYmZ0V_PckcPWf4OYnoq$Gc#G-1jF8oWjWm*_s_dAo?wxBz=_ zBivVeKRU35r;3zYS11+yR8dl2pj27UNy;-@7y$ce>yKC&%7;1IJp)h`Q&mkxg+PYr z9EMd7e0Y{#?a$$q1f=1K&%^9A5}aIC!7LB5tj%0nuZJ-{)M~nI+l<+^t=F{Sn4AjK zta7|P7?g5EezBNTUzEpo7F5QQP!(fu5879$8VgNgb9UZCA&oqsL=@tzG#hm(LOW5L zOeWDarzOL!=iqWv>`A8c*<`{F)5Jzx_zH4Rf>Lz)to%`&c&PA};zSb(D`c}i1ugcc zfMG&`LmFCt4u)ElgLf!^dL{Mkbn1e+^U{6b-JB}~%gQ??##)821XPTxr5M%w_o;~c0s1g7xGgHO*Z^H|>GO z9a^^eddGQD#kq?rIJ3PjlN?rGbgsGzc5QP<({@bT&=;QZG4`KX(2aoe3Dp&oDa+la zG}Y;3{yUQi!qAOos2&|2AmaEnoO6J@O{JqQaLYy19d%PJqqYgdU3Q^zM6G;+1^+%aQWS2EyynTSn zZzHptQ(|+E_}VwU0tOCr^a`@0Ck;NA9Sh%!qEv^lfShS6RN`$3-Nc?Hb_3~~ zVQV?p9;TQhhCcp_uoCD zX__udstV0z+WyMm>!KuSgN==WCP^YuH9cNlj&)Td zL{rx%B#G=-`?TrZ=O#UK{zvAZUmtyWS(8MGXqpBqe;J0qa{cvh^;GIaaU3~R_44I% z-dzz-iafXzf*IOG+vo&3tp}i-yIbT_5^lAT4g?b{?DrN@{RXy|YOQ*8<1)&LWa8}w zX&f1l##M-EZ2IVO|IYbT6GcgJ7~@hH@29Cd0p^a?zHcW&i8JOXk|=7^)0-Qwd!4ks zEj`ZFmFU&WYW<1+z`gkM;Yr(r{S1{#dhIZXPRN zDyi#2$gkJ`sd(3icHP4=5!I*zNJ!}jT+%)0*=uxwL$)t3U@A=KjG2+|1Fnu(8Qz%O zJKnu6xX5VGj(p!(^uj6le$);qQ+Kp&JvSB*YQ%CNlt=>$QM1p{VlNXanq&?dOuqiaueCjVyKOmpY1>RURO zqc)B^}pL4e(oLg3meILh~?7^wmk%~Xxor{Hu2DB5ym%lItQsp zqpB^qf)}2I5$*xP6r)?1h#1_-hLds1i8dtJ{ZPjvI~m=Bp0U$T8f;QdEbx?g?f!Rq z6mA@HOlUf44tvAgcOH?H1kuo~K+A-CPyJFzjT4lXk|ittCl^EOg2&@=`LG?eUE$v)NM+Ow%|&z?U8ff! zt{MxMvF;_-RG`>Z>2C=(n_>Kl+7W`Eg+J=GBJvSr!KD_ZfhvdyEAWlQ-^>{%JSP(> zzkWanm2bTTmjy7)+&Nqc`-qwbe}sbkLUH8YW0&w3I57{*Zw|{!uJ^YXX1H7~JbbOh zGFcLFR$aXAeQ;NyT*em;YFekai$3o}N2@^uFSv#S@P7ZU<4Vci z6w-ND%FIEuicWgCt)8q!MPRQ|)~aoohGuyR$zZS;?tal=6qNzUAp7xPvhD<1-LNen z@_e>S-LQ_Zk16bL`|$-IuV=0w@>9tq?6o+&Sv>Yz1r4Z00If?n@eHI3_7<7bVyNnyEZ010Z(WAw*1 z0Rvi2UV_-lJxo1(Sf@~aTI*>Fa2C#;C!H2PY1w3bziqaB7Uw&7Wyjw6q-Fj1!o+Di zoa5c~M&|#R3;+4>5fS?rd@KT(O+t1F0ci1sBG+|ZEE>9Q6pOxL0M4%w%gU?#B<$re z7>0k6t9i>JYs2E>whUiNLV0H=X{9;;hZG7?$}<0(@?O|gp|!k272`+-0M@9~-1QI) z!_VV_<0xbo=Y7KfqBu^W=95Lfkt*+;MW@hB2vVQKTM_E(Gr@o{#UyNo9`jU?!Dst? z&`HdY6Pxhnk+Ba5V6>IBc@|1L2BvVAYLny8GH z(V<^cSNBLT%Ye$ zZFdlPz|t`4sWAJ}I?oxyzKo+NWn-3&ng=PxaVFjB$+kM&@gCHl2fSrouZ1 zFRfg|9>jK{J7uKF&Y0uovYrRo{R1AIkB{HpwQPU4PEm*&Xqz_zSS=ZTBa^?ty6IH% zuTJ14!$@`pK!^#akq=kFC?(D$pLm>Q?3hkDnPBoXKl*b^>&;q>eMx>o;dngfwzY*~ z0_iwgduWKBMDMc9CuM#;t9m}Qny&VHrwhGd?Zh9JjIA9Z7$#l>6IQQqYX;9a`Q68j z#29qk9|%M}{7A9bUMh87H%wC$7t;6xn@{;N<@^Ho*-al~+wRgYamr7SV4V*ea&W$M zoMMc(E($S-L_!ks2vmIw7&+Q4Kd=PhwJV)+Iv&6Lv59t@C|SX|G)!>D3<_Iy^gkCU z=mGR*^ltQFl!XqbtNqoX69+1IpFcuaC?V%#PnP#()hbXU*7E{^Cw3i$S+r=Wdk>f#0-H|UeZ!%vF$&0t^ zWvhgyH1EZQN4*TiVq3m24Vlu&L9rK}nb$r)jH+`#Yko4^NKc~Hq>Beg7U`xCs$uKV zIq%N$oTn-0mX)TKHN6VpFJs-ozP?#zdY5MBP)zpu-<#0pu^;w?I8W1U1fLQ02j-n@ z@stJcs<6cuoyzK|=Q0TN)aPs>1jq57vDD93s%3c~C%=zwet1LvFe^C}sF&s!V8Rn{ z;Vo)ZCg`i5F)z>HHOKZhKr?QxAhm$#fzahC>iv2glbyp4G<-(}E2ij{fJJBeO0-nA z5hHxVbWOIcLcZ!)0GKyVJ*bBjd}XG~ZEybLBNPfuW&!p)MNQTDQx*%H6QBNn7O!yD z77{zSzx?r^J@xJ1ZKWsXI6v7N6619u?qTP>o&1R7-T6;wT_W+Z$7fzrBN9rAF96|b z(OyR<(Js1OCf29A>H#op)2by_1d($TuSSt|DL7I4%H%_bRGD$V){~$E4$y2{O#|U} zFJ=b{>8~e)@Zh*`B@a%uq3*b+S2~|1TBUy63sw?q*Zu`=xT5u`E2I-wRG)`nqHw+& zviVHB)!GKl^4{D`mN`N^I3Az}x5ByK)Vspq4*=EC>KD`3mTc%oV75BeJC~5}&R9uw zEedh#nbDR2A-C*z;|jK|Dv@PUwQRfs^?H)j>yWP|_4;z=uch0)1UpvAF0Gp*zgj6v zQn^y~N2Z=c;^ll3pF_Q#tRZZf6~b@c{KapEygEdSYFk2mgc@aasRLY3K%-Q}FdNc{ z<;m~6agrbS9vwEk8b--`Xg6~o2yAVypkgpZUdS&jEVdhPGSB&JK7;JT(!>P-?q&2C z4DEWnr_;rrWY5%UM%XG=@^>sJj$GUKpY*F1T437mQGTp zw`43xN24}NrS<6Phpdq4um>m*jHd`SpaYnuX4+;55SosmnWoXhFDB}ij(Q6}CQTU- zLXMWYkV_SNd(M=zPvx1}C))cm_{bC*AC7ADS!^IxfRxHKR0oPjvlhfPIxcws&-*Y% zG4U>Ef6giM=GnpX(0m?d;5g=={R-RTbN|YpnT`X0{QUEM%L^6}0>2DaUlEPG*BcHC z%$ON&fxX&I@E>|N!6_``GMcwH_>dVod|5Gf=0B3JzFD0a$PI1>4~de9+NUcKkR~HRpp5aK{$>x7GL5%(t;8wv15P;v!m+tV^S7Hg({z zx8b_?xA4lDWPq8h!`pP3;X!idHt)Nqdw7tX;nI%IBm>cVpXITd_Hy`LY?hymd(czp zeF#a0q#QPr91`=4m2NDJ*Q=A@$wcGxb~zQ3>M?&<152x|hm`eRv)#xs(W(4uB z1iPXyo$pxf$RO}NY7i}mSZPdjro^hk{|7pP%w&c=w1mN?OJnqPtu|)CUJ54a1^InW z#wX_*om3aXh+m$;zhNQWayvrc8xZjmesmabs3dTJDndhWqsn@9xSG04gm?q^+ieYC zR7JtU8TEr6xgS`#Bq~c7FDW8rlA)$aAHo>AKcZxNXU%p^CQ2Hn<>)0^eY!EvkkoTb7~3`qzh*^^dG8qxMVP|HN~7 zmJDX-3WS@bU||fSI+BsSa#HqCAo&zPOSlpJD+Y{fIS*tTfHZ*5vLcEmF?120#%}y8 zg+EhN-oKQzuPF?V6xMxJPN{$j`sz*u=p;~1b8_m~;i`QjpGzWCo5nr$oK7>uYFF4Eh!(LZ|a4J*( z2VTswxQ(v(k2w^qI;<9eaqG-w$5~!`-W%BZ`b*k9+03m-yjs2I&l=UdS`eZ4_FPf= zbYNO!9Vhbuc%4{gF#mVpy~Jglxlg^@E9t?M>;B)!@@-X=eQuNGzwvdR&A=*I@P|K( zUy-_mu|OKxG!Zpzk?T~(q^b0}AOOf7yS70U;4OnwX*_L1dnsT}6j&#kroWs0EbDiF zOPQ^Qn#?h z?aIm+Tw^b=hk{eq6f9YAtXBPQo}@k@>w}56M|s{*C)M+Fc$EC)(hRPl`*Bp z3K*1Myqg3XB~oi;jpjhIBonn$+K$ zq{{P$W)KrMt{W$T#^!7Vq8Ec5yh)%cz!t`^cV;t1=^x#x`QwQUYO5i{5(r<% z!w!N#!supfHemRKzOF3WJaM}20&v}83(aPfZk}+NwHnSZLeKW@PE4azFX+tsku5VS z*>-_jCOrnRK_e?2sZkEJHREQyg)6C4VKsX^3049aEIAEbyS}c%9Sd@m6??6kAJms$ z+~n%|`n9l!lfgB_8&U|3jP!b8+bZ;W%J@ZaGR{J-86+5CS*m=xj?h;{iWt!iwa|hL zY{z)#@f^SS@pl@I4KQ(;tUm>_SLai@%v_i}&!Imf@=;vYD{I8asp$N}>o{TrC0>YT zItpOf6BgIbzD4$G7}p#_Gb{kh&GU7 zWAWt4MZ+<)Gda-zgBiv2EY^jg3Op{euRzzJ*Py3t*xL@y(s6=`XF$3**IB|I;8l|$ z-3m1--`8jc?kjwLV;D5!!LI6LB0yqPQl9GZvnM^ zzpziTjAx{RuNtB8HX8`d8Lg7YV5D{oS@j>=w30AWG+~PUdF8GP_I(V-e4JUErUopt zrZc%eQt~z)U|v`KC-}AUbp$!JRCL1t1-RS+r_(;jx!@G??mKMzf>ZpkLwK@K0(y~S zKT>cmIL$^;qC1ACTZ? z1h^sU5gT0|i-D9X1;CA4Wy~I2cM6t7b4?!e=g+8wM(BAbQxd(-4=d<+_kGw2(8Snxuj5(WeMPfO zS6#|5TtBm$Mx+nsL}?N%*-;3hG?+8bW6u??Jmx+=6Wdc8&wYWybA`RNHF%E;;LbmM zrEcep^~O1M7#{w=AO7%t4j*|*=b+$5CGA6Elzk??vt+8>8|tk>CLi(=>KPYR9fS9U zp6RG_R4!R49~Y;l!%jy`lQY&Jp4!{n+pmI#;a+8Z4lFcAy}DHf7?}=1P0;}sCY8&R zEM9A(?~adwIcW{-KhuIVxA>7_c$b=Z%URrfJDI?qXSN)&^NK#a*A&;E%G!y~>}G_V zVPc)pw58abLaC4@z6T5q8}W0}3HEa^IVpz>Q|m%DZe(tb3GqWC7&)A_@)s4%Xe>}^ zjCsd}EIb@;1WEs6*sUu6Eao+t8HhDB!*M-}Ha0~FwC+XhSA*?>n4%4-nqfMXmu*nw`gRFCXVPg3Qa8FoJ!gjSrC!0stmX+VAe~7qAAegg4(F zRJ*O}BGs~2>%EXNAsKDNV=B=+ePL@h=t7ophhTqEV4h9GWKrA<{lYdIu>af#oE0G? zUH(7kKiWW7d*~Z?<>m$DBt%TyW#t+P-CS=4j)br)$VKNmXLhfq!~2$LV)iC)h^F1o zWEnt~+5H!VJtJY4+GT!4*RLU>sD4rvMRJWEf_ph1!eJ_RD{Mt9=_@t)>C>QTznWiF zT}O5Nj`fQD{T}{_P*VPNEJeR;I|Nd|20_`#Avrn77^+PamlDwlB z$JGiBAX^EL+v6RzwRCfHIRJ!A=LNq)O+gD|rvk=|!?h8^_Rk4OEr!`=4>m`fP|a3( z$_XBguIuEZee-c`=pYnvMd8nn+%v>%NoxWfGCqD^T&u;g#|&&RFOF-qLn6h_wXoX5 z^ZCFT9*wT+Zf~b)Ueoevy1m`KZZyIdtk4yzA+0FzF>Tum{x5t5>8OaVLNO%s0>s2T zNh=ze>Rye;TtEJ>L%>ijgU)-ivGj`IySDG!mAfmJWzYYFi4{>%`OO-8@$MI|Y{SPz zZNMCu&dtDQEvs^O#rA#M{_jjb$5lnFi0s9?U;O3Zg$TtT+3~h1D9IdSI0zm*PAYGJ z1Q{1i!r=m{7C*t&E+p>bl@t0IMEeozTBx^$5Y+ss=dr>bQ@SAQ8DrVZzl14|@lT6h z_tOPm{DAlbaoio78B9<(S}tm>Tk-Xijfb~U1<(w~0`=4-`ti6BWtwQ^0+Y|5CWahq`oX=eLOnwps6Qm#U1)vN;yoH;(8K=@A{Qg(v z=YRh95B#j!%y2CDW6t{*7vF#LcoH7`g$zTPYBF=P_ONf@jhwQg{`hK~&gF6dxm*rH zAHbg=o>-+*Q7K{tY73U}AMgK6ch|ok<>7Oi-ElC3n%RaN&G2bN>bRCQ*a z4obhc{`?eALDRoD!`2~s!Ik%})$#+|F+aCo>+)-U&U7qz)3YzmL%!FHBQD_~!;@fv zI3tKdUZanaMiuQy#tUH znTDx33;Kl)-hD&!Nk5B_+F(#`A+W^#kR;mE$hjJcKd2rHsG{DQ!wlymZdI83S1ROklGtR?A zwT0XlSC;%dB7L9mf)>c)>lmdeD(~!%)gxJrWmU-0aK-*V@qx7NjT7a`(pBtEz(EVUuYm=PeH5TP z`wR}DtAAbL6mo$CY3>oe0tpXi#cqXDz&_T0vAgJqj?Li7dj|Rn-Th$+PDiPgYmo;s zHjhE;kYEfn$q7;y?z}Sg%>~&0*xJW&WF0+*-tKAFs(t`&xi|&vbdV%HQKh$@juL^- zPdvC)89F0lRR>7pTL>kzG21WAi#eRJoqk_a&fK)3^#`ZUqhrYq{T;^mhn29pbe1QV zs-faB@BrS+`|x|31KQRic3>`fg!6;HjpW$eCRudN%xB0!%Lp}~HABwog9p-U+%K_B zt=(TU|IY~UXms6nZ>2u*gg~3$a{)9X(0bcVzG8jl^|;aeKVNghb2;{@7mb=_}PT97ok_l zxZ~F|M){KLNCp#*eqFGdV}l8~oIg!x{^X}LB$-!;$<98o?JAeiYGAE2rg;S@HFsnv z(XPIxCYr(pbbuU$8a+$77sLyK*#}dxYu7LS#a=+8vgNB~SqWN?5PkkOlS#rVgFkW5 z|5STEK1ggJ)f*cet)a+?ZA4Dc4OjC6YExT~_ZgoC0apq4m)~E+Hg*PR#{Au52W3F78S_n8#pQEa>WFj$lPyNQ>`6{v>dinZN9Hp zI+_83`)G0ouiwP zb4qW}Dw%7AB>q)>$X@|*Pl$LW(OQRG4|$$3rUPIeT3)u3Egq-2=1x9{YfFW^(V`n$ zHCI*+!?Dq*8iI$3Bp8K4cpk=3ucZavuXc&~m6h%~AJny+>1`}50L1apBi9~DC8=nd zb!XpB!lhk zWKbys?sQHaYlKyq+KQgnHQlzkrWG_D!mtltQMKku;A&dFS_!M=a*z#&@E8x~eGVz-5!pVr}o`*7{bv zg{@eZ54A~e`AEJLqQ&TrI?uriEJVHD*3Rg3BzjK2t{PVJdC_88#d9BMgaCA=S*=v+ z$M_aZ?c^l|x7u5Za>dF*=1t+s2D&a3qIakQF2-aS2c(Ue)ETATowr6a)^N}S6lmY| z6a5R`4Kzjh3(bEzcEA*z`Mw9#CkcDbQ;}%RD)Z~#~*E&@&E@1A{Z-!ZoKsMa6N}u+F`G>a72(6g~ zwEAK*Nyn^>*v??mQrl($`rD|?!^k+)oFf*zukQ!1$hu}k8KvxV+WwBMQbVG11wW^hF3Dz`~MQ~O+)UA9> z8R1$tQS*k+g+W?(xg~qpamK?kM(_I-p zJXQg9!2GzGt_#CnzxP}w0b3y|P{0VVmbe=v!`zHlCSWubESFG;hDmK4RnAOpMh3+oLn>U? z6O#pH$fk0_xZX;J)L<;!FWv(m=>{6Zfvh*lHAEpC zKuBwKwZnv%&H&ZV?brT^`bK7FFhLD;2G>r`DK8Ge1;D5l;kqPoij-5QN7s#;Z4Nw% zBD8|5@9~&s!l>Xn_QG{=`Qb~}jx!UcGV)Sx&};=sj|eug6Xh|`$*@^OQ7xF$MQE)a zH)A32OZGq$@*29h542J@;U`^972DKt^78{pa=>up9nTMnjw`JKS@AJ;m<~WLp;&ud z1q{RaSdJTI+bHE7SY{p!iv9Uc-?^>u-MZg46%b;p#fabyhFfz0K1WSW#c{%pdz0^X zi=NLzuRO~ulFZmqO@vZvagr11GW2RX-bLn7hr-yKZwA{gK2dNAP7yGZ1I#ZhI7P*V zeOr;`J;k2yP1FxwfE+jng@Th5ud08E__7P8DWj-n_~!LXXc)#to%K6nO`1mLi`WUe zaE-L*OP~dxg0aQ<_po!ULUZxO_4|vV3?sx+3dd|F$K%Uc#_E^JOyh@5Z*GALQiL=Pv$R2*G0Ik7=VMW65bR)!b@f5Y zWnQZrFicanOkmv6Z}Wc)e(AB=(o*fQiNXH|aJ4jl$D7b;1Xfejkb0&jr@DmKlOR%e8q4i9E zfaRa2LomE>%f~H+)(Ry*{PlR%xp>e&Q!4y4RVe5ez=Zksu&sHn>H}-nXC{L*i1X_!GgKu}6eLOEWz!`hS5!qYMBVGj~vzgC%lB~ua|uCHZXuU+mhkXmom`tMXD^6$J($5Xwjlcr>~m?uf6<=8~Z>NdTa#0-zESz=fOE z*4TQq01yzO0w^j45G1DZrOi|QK9%LZ#&;lhc?Q1(Gh`wcA<9 zNurj@Z!<3`N1&&0Tx^{l;xeA}qCd6{&%(_AR~Lt8*nzv2ixqf(h+aU_r%Bun>9E*1 zP+48~L1KzIpP34iz+cxYx>YzSh6a~?K2*&FgX=msgsl1@iYn7)GvhvD74gj*lxHJz z>AfUJu0n}EE2>RXxQoc%i;?q!$)j-nx5{e+K-SXqk`lfmWaTABY^mmwX9D1J9|YCe z&&v;g>v}aE9_fr9)aSEL5?euTO=n({n%9zQ`j?;+znDx0f3t!}vma?fFS$Gzq?z-w z8IWCRn_TjUFaMB_!Skb9qfxa~RaH%qF6I?JK*3a1Rkf;(M!oKPfc=L& z{J8p`zJYRXHKUwuiSVhYX>m?(5G^ZDz<3YHGWJgl`nAxuWl7TwQ)S~hfNC1LCdsxP z*7}1JK9=RtfxS15b-NX_7DQ41eKoVv?H=n#QP8LA*Y%_rw~*0<933T1OP8^0>EHo~ zJX$g`FSK&R>q(JuxOOuBZnW*9rWAesU@PMOl$*E}rWg=J)3Xun_gWtvv)!%hwgX7# zl^{Qtf`QEeqS!*_opdI$1U#{OK$!8{iNY+~vDVkumO8G(MNuHaqRamCVp!EB&IO~< z7;s5&w&mN2Km<|bj@wyUTVJ;v+hWSs+pp@?a8VZ|K4>%yfpdxPRMoV5(`b*FRPAq9 zxs<^*@Ku(My703^=f=4rhC_$$yYG!E`OK6dt7lxg}frU)Li1B;i(y-mN)2&&^=y4W_~uP z@S1k_ro87eD)`}WKdwS=*Kri0>6#`=#IDzulx-Nvk1jzkPC=pOjrOxe)AWY#lbPf6 zZ3MkOO|*r5-So#B_z(N8wV`eRxKPs)?YK|uL~LV1&r~>@3w-0}Ehw0ZaLHQlbya5j=qvjIUf zK5|5zJjD%&o{eVPwrZhfbnH^2q2a;905v4vxSwf@RbgYwFg)`@b3SPnvS*u7iaCKZ zFr3pk`sDy1czLF-L+b6Yw=p`KxnI|)o77g(QSBrf2qm#Pv4(s|j(7QfkRj0b>kaWy zV(t=Bn!I6n( z{0+Iz!V;&<`w%rv&ofQ>p{w5d)|TgweXm7>qS()RJN-3W zdiVg74?nnxtlMRRsBhZ>Q}|(1;JUKBtms@c*84?PR@Q(o%}>5< z$q-+zG?4rf^9&2wHvOb7LsUaH3==woIonRO38}bZ?7HC-#U{O=^v%&rF+nn(l-RFR*j;1jNzDa#WYYcthW&>~4=Tb46 zX_zN<1H0C3OC#TNX}yqG1cD|h)TrT0bD+%nv4q+9ze#HI2ja1S-U%xo1-s~mGDJ{a zrOLk3^ouoT#;#kZLq7qnCQ1e=3jhU=fwhQ;Dz`LS#wy(Iv11jjyL;{oCCNt>NZEoR zWkckpGi2irD$mS$C|TmxJsf+ZWH9gr>hu7YZ;sboXU5pynSPLuOMj6kcuu(ZuJsDm z7$|ZDOCGr&%tLr4etB}&>S;B%0VDpRZ`JufSQh7}zTji*f8iA8mbJ(E-i%rMkM?HH zE$bBaeSGSNQ}0>UUfRgFS&^QhW}HqXd8S4T$^>-B$@vB(?VpE`cmAA^JABCTf#+kV zmDW)OZuPiKSi$Td+-YMj8s_a!jWmcMWZs4sAndDJZ_<`ffoX!1&R8mnSQU*cqYg^Y zVRR+B0ojh7TpBfpt7+nUY4lk@Vh*FGEnTm}=;8(7ywaSA7*Nb&Qx)i(suN0LCA< zP>EX)|5&D@G=Z`3WkL9|P=38Ezg`gb9yeQumY0GLUtqRrS*mJTrp^BF@nC8BP|JMw z^@8wvS^kR6R`CvPHU4q9KUiAcjLpYqwJN|ug zjqVQD+Hkp*uHoIe39aUkd#Ej=5fT-+q8R%Z_$Hv^@#vS_pvk;t8~j8q>J5&MFE3*v z$dp_q(RBl)t0cg(7aU(+#>y9v@$4+QU&xo|mzZI0e1eykj|ZNNfm|tpu}-C{2$cnb zmzR&13%}-;5cb^gYwTQ`J|YO|1?Zk46V=cVowlG%-lagrIeUkf>&@(!%ER~b{v}q& zY^~4A?h&}u3x>W!6_vI)w=6&P*TkAP@Q!MT+)RIfZT9<}fsdQ^u1s5&#ks#_=+jx= z{m)o>H`sKBt9#evBc!oKQeP{fQV5GPMueuOzX+CP{-)kVah&5EJnJa3+6%T6@!;Qo za5fo5=nz6k(Q>=Gu!&16F0+nMLZv9%3tND%DiK4wUf!oL1-jO@FU%$lpC%Y)ZhtIL zdV={^de))Vy$`h2q9C`FMxp7XTO)_^f53xlbWD#<5WOUIT1FQ`%4hvE0g=m$RnKGd zeY^~D|cXpTz zAZCN1si+xC-(Cc@QMzhG{D~17#Xx&{!l%%>XVjYU{<1Fb%-)>F96=>SlDp&fpE(#l z+{W0;Ek;JN@2?>V)Ha4@bM1+ENuFZH0Ej4hxcE*T3| zQEV=+Z!GWq_($6{mqEoibQ$#ZOUvzzU3&Camp9gz8&lIEtQuD6pQUj;4dsJA75U^ok9WjxIFh?XpFk`h*@^KSOjyy_rNGRB8uk10tT$a zcYIU}B?v(`g-S-mYCLSz>a$L^@FF@)3lwtUMZyNrfc zM)Kx6AVA{f--NHi7h|q9Li_wbXtriN$=}3tSqkXYjNuU{pLbpk!&;|Pdx5DcljRqZ zBS(^6@8w3f+lZnILAe}w-v07ee_v5F?SkXLBM#Uv*E*eA7``COOjX$nyOi$7UH09?zJ4TWk!b3t zIafJ_|Il4?iWz5&uA8UPE=HbTriS;BH=YNYJL(-QTPMc$ zA6HN7=gsdYXw{|Y?h*gb+5#FtEdBl${C%KsurW8Dt3OBei$jErw)!x zc2f$TDXX@be4ZT{G}{@BEVzad?B+#s{Z%%y=k{PGV9Uj)b<$Q3t)f%t7UY6+M#8=1 z^s48St>EjK3ViBP0Jvyg-Kp`GE#I51a`-8x%qSfkO!o1%uBwJ(shU$R`zDxCP4X9^ z%R8k^-v#_ze@s^OSQd#Yze422>f8ZYUr1YeZ|u~J*(uIqq+iG+{A%ff;v zI{BP)BHiGUe5E2nub^`oi-I7;wB*i23A7-{0HQKi^5xnLTTx`^8_X-}T*j1801P8@ zcp(WeP$~NRFs>jWt@U%&p0({!^rNyPw zQVc`HH;3!xc<=<1gEJ7{wa&cp4Mt%;p=i7Q$fjGA4io33!)Rz;|Gd&@n0SqHgL-Yt z+0>+)HKukk)tpae<8ibjpV4?a9v?urtgSoYc05!-C}yM(GwF1Vrs-Ve6cTQYbI)KexoR@^Wyayf3u9yo?Kpx-O1!5N-kOC@!MVyA z!ud&0uX3DnfnPMtOW*WR2}QK5>{YsZ%rjeYqM@o0u%(a&iGmjaXm)am7muLMs3FJ` zU6^Na)uOSx)8O=ZZr_7umpy!a$rv8aXCI+vABQsE%NqRyg}Ri%BYhUg03lNrfz?!d z)#w#m_k>gCT}B?Gd~%wxiRm~1j$^j{p94)GgAAFx-<(s-*p1KlDOe5CpA~!$GDR~O zr@=sAN88osrm_*0kZ3b3iMYYIE ztgdK7CHJ$DO{XxKPAgcI>@w2hE!tG16GxdCu(3o5SKPoZ&y)qKBfHN+dXl3sC7AhW zt`5zwJ4I>sy|>VgrpQDnKs?aci~Ahq1wTROf=KhC&+$Wj)X>?b?C-k=JRv=Q5R_mU z9j;M=74bjOL*lUgJ;(VTz=lKPUe0^p!&nfen%i>xXEg0+@DeQTT|5EJi=Wo@PxGo2 z%*)uv>kJ7%gHC4ZD-*>#@x2PWUjk4Y)C>P{Q#asEW|M51aq1LRO^Q(r1$3H7XB2F5 zkkN95EwJR;(wN4ut?0V)6l12M>x%f0IOUi-{{=dy1|ry}z2Uxx9(TUe4n!h5v)~xJe~pBt%eKHNvy-0 zybeAodl6B_PWgqLX@J~Y)ZL3US{N#!I7~_r(0i#$=#pD~0V_H&8 z&OlaS=1Jd|9A_wC zKBnnwh>B=c&dh@2vXoet4E*Y%0QM@YLR(HognCClWME$ z;L?d8icP!g;0Neo`sw&xJt5r$?lh{|>N9k6Kut?PxQh;*aw>?OCC(3cd} zQfikoz5@`vKUksA!OP3XmlqcNpwccDfh?6vQ8b#I?_aY!qB6s2G!?Q$HWwC5Q3UBN z^8AG+(q6X3qI!4KSb)!rl59@=4j*Ix9kB|uB}jXT1VaHcLN2n{SB#@;i~P#{i*!%z za=xph3OuM$9z9@HuxHlTeJ|W!U?&KMEF(zYAO0B+b{m~&dmF%YkFnbrvsKj@h6z=*?YP8Sf&W`mdu91>_u=IgJ0YeOcokbT zz(-Fn$7H&9E3izm4se8U!x`=GQI5gM=DVI6H0IxG4_?6^ln}`?n&>>*ZZ#6vBD%6% z-nSV}PbwTJ1E~rhgX3Yx`$UQ8g%+AFd~-#-Qw3MkAX-SJYIUhs4WsC}FCO&Ioa*<< zdb9wV<`$x9WJ9C106wd$n#i7R{zXqS5q7@)BvGc8={>#KS=2kll5^F$r($fTP6^$; zh~<@&TBo!5v}amW7A2y8YY(IpNbt6{&XA1qs43+NyMj9U4ctMuQ3k7K4Wq=0sO=Mx zl~86|E=+;$Qy>kf19rn@lzqE^48vslnCDt83P4*uuNQ2E^C^tOxtFO{J5cf&;NDOR zk@zDwA<$`@AvJgQ_5uXYx-%Mfbo*2X=|M2!D$tcp=goGRtkWJ0EoaWMlVy%mC=|op zj@IdHIy)&dy|=IJ7;JRf+3a*Qhch-`7rr0_!gJT zs*xFiez%u}%^+H6j2zk}@1=rC?$yG1hOW2(8WW@+5gJQDB`6Zy% zHC8w2Tv`Zh7cF|a#mEKutv7071^rOTh!-lM6)S0ILNnk;@`t)LjtrY|G=pbe@491H z*xk2HLyo=EJH#2iZ@A>|ytg<1fdM&{d*sMT10(IBc@NaxX}H*%kLxS=o*bAm4Ct*J z^k&oMt53rZ#-!9GWzmmD9z}YF?+Kp;2ZZeVokXbrhk81&m{j=laAPJ?7b!$m$cF@QN9@2oIjSBc3?gMf4<_SDv>}9S zy8kSxsUEusJ*13>mPw*=qASwh%v!Ja48wJ#j%q?ea}JKrR|ZwUx^=h%L!_EWhEbDV zbUZL=Ijn**(-bvltELKn-UaNN=O5S9`#Au=U)3HzZw_qgtYOM@hsSnrmZP&Ylw(*= zvLC{$x?}gnCN&J&6ay^2VLxSR`5=imo$h1*yCpOE3|f^?$S0&~qhbN(b4FjA(BlLA zP6F@ISg<6kPlqBeZVr&8e=@1VE~w{9YQ6`W?p=pd>RHBXGH6LCnB5bCM1Ii_Jim5- z;Mhu|UMO8;{G+@m-><<7FOGyD{teYDxo>iyF6}gw%3@0bA`8;c49^dPtQeG2(R>EO zNz{`%3?>rz6A?aj-g7av>uz7_;$#-3?Gswj&cHCzBZMy;;juE4*7rG;(Fy#VSatqQ z&C=whHsZ9)eXr2l?9^&%G;x9k(Z{j0Oxt=#^}EB0e0&&B7g#z&{ddLC<3!WxbV-P? zopF7TE~l(BOX)NQ+aR^b+)Gc8!k;JX7nx5#MK8(xQq%8)ls*GZBSDZqfuq;MvGmc2 zf4I*_0X}*Zd>;S$%LgzOlvW}nvLhH!0OdI}PWRFkqG?-!;D@>6kR>BRfQ~C^%8E-s z@rea}?G*&!K9kaNUy_2l$^(4RxV;*59|g9Gb_9ISAgXzNi}Ix zWRsesvwQY4-@>&m4g$Yg@u7$VpFNIhRlHXZ3}Ej#>CxJ2}eGRoGCH)+(<_8SB&Ko zz7JW^FEQ1B?dy2#k4C}J)jySvg4jYP;z`fOH1O9Kk9Yyxz-`I&e2gjmxVgJTh9UP(s8xbS7ujg)Ps%2ds@0@hKkrZV-3%){*n#2j=j{>>kt zve(fmf|pNEkhFY z%3$j{E5G(-rH6mBJ7^2-#=js50%Y^q? z>Vd)d{?e~6Ga*_=C(CFFs)5onBLQbR{NU-V>x(vko&_jL3DDf>ml5;=9d~V$hCq<> z(a?|2fLaI>mUDvjoc+G+b9;2XA9Hnt5CVE+m=sIarz3mljp*H$@J`aEvCYOp!VhpK zfVGyfm*ZXzi?n=j(wF@JcR+~0Sw{8cL$f3%IyTpQ{N0q$5rhrUDN=^P2Rv-hwJ1nE zU(wASrlVx&SHT-JQA5?4ApXow&Dg6OFr=R3>+9L&r9%>V{&wfXyLe(Vjhf8`X6YQj zt)D)zY5Uq+8)jLb%CV+-h1y@A;+I@u|+SZoJ6r?P5eEIDqYVbo5Q#m~?E z|CTl3Rg_l?{h@%*Q*Ju*X&{pP1)R&P`*5#ga=NePbNE7@hyjf2cN;T=8r@qWFQIz* z8FajmeQ!yIQL5#i06=Q%fCaPk3U43%$FKZx(Fm%r`3EZs*N<*zEzSOzH4E1bC=)AX zf6SwXs|*{#LHUQ0y??*@-N+Zzq7f256sRLoDB7z^>Q(!>%QpmxDm-F5RqtY}w(RP< zUyi`&93z1ULz|dY<`OAfbTF4U+OR*_8=A{IE<0y|Z5Qb%V3CfTuoJU3^E=y%J!j@Z zGX!Fvb+d=o(Gd^e8r1tmjXM_ejlb$m8VBLXGVRkih#z^~sGaxQ#(cBr`LE-Bx1zdz zpBRU>EQjskaOwGP2Kl^Okso{U%ffP{*=)}L=lYM4tpRoab-v~nRJHGq<9xfbREq_n z_Sh#>QE+ODx6D6yxL0OO{o6GRx8mUz%t16mGdV+oK3qM4-K8mBO^`I^C9F6>hT8&k z`#oY3obE*rHhidI%lXYN3uosZ(v&xo@d_OtEigk>bTfZx=As^pY1TU8Kb85 z0(3rfRzf60e?rITariUO@TGJgz)MrD%bT!7C$@+ymh2=Fty>q&E|j3mw1~4?*JX5Z zE{`yZFCX9#K87l&fe?UCmN$iSH2Siy!s$Sq1{9)yvh7``_#pf9gTDGVyw$ef?G*AZ zVGr)U;oZmKo&V$%^6sv4TyOKOP9g8U+qUN)+kNA^kG1c;J;_id$Lqs{656+5_%_cE z`s?69MUkT(w;A`LxJ)1Y*^wTE{rXK1#{8TDN?Otu{F^%UR1)sq1NbGaYAUmIUFa0;Pyb+#Y>?2fqaUYN2Dh zqs9Vs;nXZ9E|oX5`bRqz7WubN?j0L_V18EQbpi{G5o-v-DGnphkIO?Yt10+i-w}12 z6q+d@&`BkLRK9v*gu+bysf^GEuIe5oX2J(V#BV4X)}X}fMo+3Wf4wmbgPyS^G5D1f zVEj*(p;S$QY7L$uX1+5#owFBl@I~|!I-W#}31q7Xtjvqx#{xpkQldG9W$>2BP#|NQaY&%+*!+PJeycx)u6yM&yh5cN0?hfT z(#hmPR_Z+A+f7hK%q7zy>GluRC#t$6(T6xCWazc86NSaWpxuwfKNI$Qrc<3ClTj{mo$E?u*DdB)64EQWpDu<{k?Wc#q*CNQ7`itqvr)2tUQQ8# zh6sjxz4mb(T0*Y1c)(3(%cX#s;fiwi;hp06@-p`19^B#1S=5rbXYaVn%g5K%+Qp&) zl#Kj=EHCE^a|xx8*a&Eu(o3w^$96CO?aWq}mI{SJVQFb~ zF7{c@?9zMbf57`r?wFA6cMy<_o`aXskI=Z@2ukrfGs%KXN(#reuT*CGHT>Ps@==-D z%UYRP+Xo%XKgH!Apr_ykx)TH_m>Di`VC*kD{E*DKFZ+mXOHT>YmoA@)yLt`B_=(fZnrp>z{2c6vIV1j>~q-=V(opi%$y z=Y0&d+S=NQ>WypbZk~DvI*UhqjQyob8Lb|Da;=9zVD8Ildq35Ws%jbwqjG3>MiuHoFYX5x*d1*Nl)dFt}NDZkDr(+;H zL8HLiy3FmES1_({Ney#nOQ+{q28KN$qxpd$|Da$W03`(o1pC;GOKQEYO8gc&mU?^o z>|tzyb|46WWDvaEz~ML!>WxX%wJV?7H|b-71R!ntN9|Jhd3DP<Q%TZjJXj zuajQnh-ng;fy6DSH?doA2tIXVGmf|pm>&u;5Zmu~C+C*+&aTt}Ubter?qT1@@3bt= z-+8}931!_R#64ez%-oDnBck?1o^#c)1hC8*Qw-%W(ywYOUci-H>DJdeBS{=14|=*qh_?LABrIb(BC(?%fUkY(@y5!7#Q`~ZR=3T3KW z0HSGDD&4Ji3vU^U!rq{orus(xmGy+#hQj{?4UgF&+AV1(dPR5yrpV)8bW`t7L>-YMeD?c}|fQ?RU z5L=Z?wyti$Y7-|r@;5dbK(fm3_sYAOQf@Tb!BU%EiX!(->B!%&Z_d2QjiMziw#l8* zDA#2%+q@`>rYNSkQrv>Bt9brGDl|9o798n2i!%nT7zp1ySA7gOJT)+7h6j{Z&2wi8 zWT}9JPj<+#UJbR9y|SuYtE-wMNJPKZ^+pSgu%qcTd6~(IO{1v%I|0KWbh?y;qCG2S z6)7|pMn@Vg7XrOq`3(Nj=F)N|Dlk!S~<6p_5dM z`q7cZb^1cTx1C@&J<^3O0)H3y8B#*xs|S9IJs<#xN(pqs&<$A@<%N1|7&0lL*Ain* zl0-?;sw%upl#$ zQbqIJT*o%3C<&3i!y$ci!xCV?f&>B)6eeI%W_E>_4rnWTjHJ zveJJAxfLe@RHSl2sm-j8RitPrdKOeNu<)-6lL_e*$dhL9zdSU_CKH=H$j^wHs84g) z*%~3v1gA%dm&CHm^!H|s0#l>UK5aUiO!nJCu@i3abT3pYvve6j{l#D{5zn9f;>!ov zfGMh@qv#HFHx5R+PK?60s(dBS%G4$dNHbK+J9)ZkFY?odj$g%@te^~Yo!fYn(j=xY zE1WCm7ywf>T}iOlqUf5+0NAOsxw^5>MmVuxzty@{ zC8x;}8r(fCK|`oKsC2>6*$Mq#t_KHM#UY0ncqc*f-p?&=#xxD0Yc(smf>Y*UpBW31 zf1TmFE%?ZvAD;iwM_^?SWjz09&e&zr~S4if7=@QJa~OeH=P^H6h5w)oVSBj z1G+p>Q(`2)#N{o_f8}!u5}BS9rIgv_w-fUD#zOgMKs*GjZwR=|Y5=hs`9Z&bfvbT; z9HiiT|8E$)p3MStC>;e7DisYS`=5W1wSAbnccp4{Ti*R9@F4$rVo1!s)ahm3=u{n!lH6sPpsOG60yFKV{u4!%%|HvqJu(Fn{l94Z&j{NbwT#SRok8 zft2tBk{(PR`nsU46g}KFaU~~8F7`t%(IgDktS!$ z{8PC*=AE)l*abTusrt+15gLaPsB$Luotl^DhQafC8AqzI#MVop_dZA8{r{}-A80mkPaV~1W|s(#Z;DWxkaY(y5A?$HRW&d0O@<6 zV8}4Mvd?A9pVjv=QQBClSo93lFCW0O^wD?>FX;2pC2UR|L5rgUYIbz6JxD6$SfsdH zw;z@zN#o`fgFepXTM8C5rodFxk88nOOi@6=k@ZF_#!FkZe~o&j!PQVPkvKnjjd(R)`tM3rXjk7TwFN9&|i&2pX1-&py$&X|Yc> zLX1Cm*X}*qn#@&`pjg=0Ji@U06vhm=dTqZ+D?f&^T*A zEv5(Ex|fKJu!K0JgIQoA2^hr1K355`BnKMH#_S8Qd=wKsgvDXNuJ{yvI-t_E&@w+7 zK7;*^{H7=<7!B|@;XG5@7zv~+qA6#;ZBW9lQ;wu~-BQV^5o1>x4UajlW)$)@?kBIz zacl3vqOREi*M&f`tv~{}Ly;CFRn?m!^PIfmy7?1~J#o&Jb{*>eDDz!nw_2+t5C3lR zgV@!WQ#4HotG$I%Nk64niVCI`JnnN2%3T_f#Ky;Aay-X5WT>Pei@14MfwN-;Mi;4| zt0vo`nPL1Dq=&PM89(5L*KxSO1`;Z^_-KV?8G9oNqG`tETZWG-jF#&gq(VN~?Guk7g0%SLv)@oNu83i;0AsI=BffGOO$Ja?Aoj8g40S#RNsQtENY*( z93DP=fdA*i!^8OCGLjhIlR2Xz=2~u}MX9f>4Cen>AoWTER80G3xxke^{&A@Ys3?705Coz8F76W`M3P{zf7eU*7BDW{ivfx^k9VE+ zrke>t^#`GK3H62betiofFB<;8jf4+e#J2x9@I{grjeUNe zi2i}DKbF~|`47O1Ow?>MHE4scjn!OER=?*X<6KT16Y@W-(hNg2_n+~`P?I=ZP&@vl zR1!^ZMqD82LU=Gq4RaM9d`9h`#OIu9MuJax0L9icp&>fopK-1)U{fZdxvuxXZzX4P6K5ClOi~FUehGSD% z7EBOCdUVlu^D7I1c39Lo-IDo+xOK~Y;{3Ui=f$JW(gzYkk`M5ZzUTxdsE9%|KqF-5 z-Qi74A)ey2sMD%hHLFI|dBb1>I84n6qO{=$-X@7r@){L^Ag5wz4)WVU%^RiW3Gqf& zZa6gSnNX)_Tt;ROu;f4QWPmQC_er`gWyG`?yMi&xB$@3r9SCi_WZD?p80!VVwjryg zLy2jN79*y}n5Jo*8;%<7*cjWZ*oN#=MB*m`HUEX6rvj+^79*zXnuJ;V>z&RCY>U{o zv9wSIP*u~ARZ-GpAg0BzNHoqhjf0!Vwv9y_(*}ub6!V3TZbPru*V`c|I}~&%SuW<0 zw%XE%JgH`}R)KtaF-`=D@oYfu)wKj{MGE8J~2k^cSr&Yj_1tF?%E>g(E-f_Z@6uM%NT=Nb;d0F|O<Md7=J({;XraI;*KJkn*-$aC-aikJM%)v$MJ^ zgMo^yy;XPwQTUZz!D?jYJ@-=NZN>hG4X@xvPD)BrqdZ(q-P4dxF+o=C!qPqBzfqWy z%ja_1^w?)P797X-4KCmxx3F4Vi0U=puhpZ4qQrIAvd#s;Im>c&F2P-nfVtuOj)R3C zH?o&gn5yP-`JBQOEtku~J+)$qQPZmZ*wZp=59M=#rYJ1`<8}Mi$+&5l0H)E5PZ}n; zIv0IHe39!en8p)Ykjv+pqWt)0yq%SbwVG+snq^WrtHZyJ5qw<(DWTaqT9It`3Ht9f zZ$m(XGt9{}s*dx~43Vf9X{P89IwmcO3LVVmz*6sEz&L(bxLHI0RfDV~p!# z*B#d}pzE&tm#u%pI@ewILqWLu+H0@A|ElXGcz-zz%K%GzuwXQwjLbzv>Gu_7(O7u0 zX)M5A(^!z@1*7>y_2%%FR;6040Q~;F;dtTq0V>sM<+JsB!&@bcP`gEavwl>qqbq2~ zPWV;83E_?u6tLp)1MYOO3cbwS*yEO;=ng#6Oh;+MXvJ*b76R0e<8%<4?&h}P7t5=w z<+#XoRS0DNtRaA2ZYq|gSaL|}by54Ws_8VZ->4%hlip9xn3SV}pv|8z>mV3seK`;` zjTaNChv22Ri$yR7@ca_M(qWS_#W?2*Ingwjd58n>Qd|Iz(Mo?n1wm~EMW#qbFebfE z)Cd{lOpY~8r&UWf4Ji=4vxdrK<2u;`5f^}Bv0Vyw5qyM_W4P+j%?LR$-C)|mRQYjt zC%L1TVc@V1ylS}zw>B{ceP;oh1=;_CFW(s{`CRo2)m&bQY~fjSDEGe#1!&3I>XT-n zRNDd0oH^qHxV!f`fvMv@YMSmoD5U_YJjcFkn)KH94u@>FDMSM+*v<(FzQyZBn-0=a z5(k)-@G1}#DSHUZ5`~E`Fjk+m{_)V#xn`WPau8gBp99(5jFccKGsY*yFZgm{{=I_i z!%1f0e8BSJ>4w;{N|&R4U&*qfgYMiDaL=4^p(^64H3Wd)qXz8|<@xl{m=d6&5F3rG z+$O)Tr5V-fAAgu&FMpb1uXaYlzHK31kC!|wovC@4p3Zxid{~lY3BLSk$~=6UG7sNE zm>0fumk+VW$Sv4o^fdMu{WNJGf%ZhZjT&eTAx$hLrjh3tQ^pGF!SJL>Yvmp=!`b$o zcW!6+S1k>L#dCu2*xw}J;(I)2wI0(cLRT$yu>6yrbsAZ%RcQyZk#eVQ77|;YxT$v?>tFw zH-LY@2C3L9zDgHEip-t~Kchk-$V28>f@oPCYMSOQ7$ly(unGo<8wouGu^1s6BfQL{ z543nhb*bC}s%T+1B9gPHOslZnK zAdWL8*#szup%#U3#&TB}jhB0bUdWgv#h5J!LY{PNAWyti(- z*%f7fYJz#^od$q8^<~jL?oVP>xI*4(@|Z-&d}sGAEEtZdbi1nM81spa_s;&$>Z+w0 z&e5Zep;|A>1Ld(Us|(c?pB{z2NKd2#UUJlxr;djgi*ZXUBByETDrt@E`jHV zq3_9D_lB*V_wjjI)-+jOJ8qMnTY^`6Io`mEbq#)car7{4!F9{WEb62-m=%A}7Ofg}@_1N0zb418*}LVqKPo=Dp!0!AE*OO|C>C7lt~ zH`ebz1kwo8Z&MV7F4PPFqqabmL{kj_L)8=}%S=hrg}=6jyspL~n$C33FBE)FXSznJ zQgE@TC|`XyA}T~ovGaLbVX7wU8q;)jmDeQIr*Dxo-REzzo^Hg$bks0kPd(0Ga%Lb; zZ>E1)UKT_ZKoy0jRgf_gU}bOQt1DRrgL+;CeC&M}xn~*YvixdmFiO zIk$1^D#ok2>H0@+z4fT?n))intK3?)!^#Hd8xcT#Hzf(UEkQ9*uDAhBB&oR5&hxDf!SKKrx5L$i7%jG|A9GXLav6h;C3yNNSF=lrSTrt5(CqRbTS z_s&^h!pt_|%c?sc8!{#RD-6oK8;JNtRb}$8EiuPY05Nq8P_1H@U`&k!C-p`&Md`wr zFk&>=#+OgkNkG^N5H4oqoo$!b88>L_*BfCdEe02Z95?lGD;)VV8 zj~||=YTE-!o{f;*zBaU?S!qv;$x%AXAVURIDNhQD3Zl(r=$k0!WK;@L-lH!1b9sCN zrRX$z4SF;B3_?Qb=uJ5c9g!yjSP%?3<|l*&`lL&}Iz@5O%aLHWItD?O-QnO^Y5!kF?@`HrF~ zXg0TscTl9lvTb)1TL)ySwh+=S(5;#(bP3soT!_sCUJubJ=y$440YC||fqS(cQ$HJv z#&ub1I-QD z05D|uiDgQcEkUM&wM+r%^4>bEA!CBJgI2t`d9G0t4750X7Rr^Se?!4@V73_NId>5q zM>inUh=sW%XxgwDd0w1oh!Nl+xqa;ERe=})lmarW@ae4@8B62GEBy2+nG$RVg+gFs zLgiCMaf@O>D2Bb1$TCTLVNnn;-4csG4Yl&0rg6@Dy66z|kVza-@12t*Q9en?Nm-Pn z_OL0+R6ZIzE0VP0#7AW+i}7mv1+bQva+0w~HP=i4bInvEgb+jQ@&Wu8?ECCM9n-~g z)eitfZaB16b$GyY z*LrZ(Rp4ElIcgm$ zU|cxVik63)#eoK4eh-IXHl6l23b}5Aj8kF{?OtbCR^SmvHH+U>*P;dcWqjuI8Q9ow zQtNa!YaG&68zg&XwTCvnE@*MsGYK#{i-fU<PwJ@#9xtef;>UqH79M zwywG6)?2T+W=laeYl3oiOEp#gLM86?)3o1f#vIM)*4cOcNX3WgH!0K~c&`Nx#a|A@9v~HM$!;j^2S@K%YflE${mV_!jvA z8MJ&_In1LXTu?>RS%r+*+oHFN`9xP&0AaDZR6eptdTeNjoDiogcd}kC8!Y?FhOX!j z%#y@N4o}(@O&hz*{-nXCYd^8ffh$IJ0u5Ep^^$pnuWU3&&Jj z*1G`t`NYFIcmB)aI`-i6{3^X|ZUI=Yp8tZQ>$>j1^=J_8lEj=_W`t+VRq}jAg&VwKyhWY-5 z&N3Py1oSZCm;#n5SbD#i47MT0FYQ|0hM2-l_k&tXhGs8axxZYlwpx|>Uj;?Ybo|z0 zE%(&&(;{7vo?3nyK7GH^LChQPCfWU!R;yYr&%c+eEw+5e)QZ8=%TGxQRD62*seTYY zgi%n2h8RKsCn5@63259p%KGg};w^r&t3$ZHlmBT23mUgf<6j!^nDh8bwE_ULtV{R* zCGYpDAzVur{*Pf>boRjD83Ge=wH1 zob<`XO^+MZX|keE@W+sWbz1O9Cl7Vxj9X25!(OtEd;K0rS+tIOu_b48^@M|UA%_O( zuWMTudVM$XvaGNHhJ1KOsYl_~lcc&AL!Z`kxgI}H(_3&;j+l?(d`M0tM4T+jp8une z`+7zLF|xl;n4Tp|7yv|>NB~%rP1iGI5d%n+E^U=$%d<2`R!Lu1;SUNZTsG6q$Rna8 zxl!awqBz|l5x;Kgx_!05mlqXP5S8$ACaB6HAS1?&z!*QSv8xndo(ytVQ*UM34Ze?x!pk$c9-d1>A!;Mk7!o7&BKB9cLEvGQ!JMsx zCNY^n59C6Mjl+}K!ODWO)j8!Hgg<$XoKI0 zw}INg_P>haX>F_{2(-x!n>XiKoK_b2=<;?sb;}m8BKYSog9!MIWk6s>Ek_SyhTasa@I1Uhp+<$hEZVp$;@KOQ^ zZhV(@w2K}R!eS{H_Q*-tIstJdiUKox&C^ehDRaHWFRBhYW<$nYx-bO zdlTG3x8{wn*41>B^oM;u0v_!PR>P;(4~kLXhr}q7oL^g77MhNZJPhIehqjD&LyWck zu#eaem*JV7fvrRLPmx{p1!0@*p4=={`qMp1G9db-P47virjXKtpt~OmW(kfVkgh{d z8{ht<)sUTzCszJ)ygyNWl|!FkcnYx$ih%T#H*RDKc8gRH*FOGq zb#v5MfO+;Rc29JX7K#zL2}#c-gLSEwng?VA*ZPo=^hg_?rB+Fx{ZFvH zgl#)q*~A=J)%RLYfz<%*47)YxPO42A57ZIsvv~w7b<*(zKkiVxCI&tUk(7!g&xFj7 zXAYxg9EoXW+oA}{LoHY#uqwGu@glqvjwC^tcO2RlRn7fe>?@oxGoqCjMzBX=_jF+B zq~_%I}W^Li-LY%Azvw5u4@%)h5UWGAlgf~cVE)sBd+_%W%Rr+LU|k%;_6(@#Gt0d zZ!=s?bHKQbTPBSvvaj>uR~9H;xb@cG%ljeJ;8mthMeT@si0)fZcb;2BJRcZCMKPC^ zB4rf{uP{zMC0iX0S1Ef?yXtJce!Wj<;0sa|mlZ!5LTW{Q>}Am z*vlrp(9GZhNHT_EA)<<+`J9k~51N4Q$~PKIy3ClYFEtwZyRe{vUm%40nxfFCPy{SX za1rv7lm|_ht87x|dlGKwVu{#Xff6tvV6JcoEw-yQEtqjVclflm{ELVcxy$6z}7V$vS$z!b!oh zDn_lWkRDEFZ^hMEmutcH7fYJ!u+l&wLOGyg{=cYcx{KRg)1=3gdVrFWUcA-1a%`A@ zk}Y`^r(U^k*@09>(A=D#VYO;Czg%7O@2|?-8Eq9@nE&Id!!&m|hS`y`j@YVtI7g|f zy<9HW_RfHEd0DPym}7oVrlCc258rGavBcoK7mVPU1*yd9rpmLp%%ZX{xo0!;774*K znnJkhp>nV*V;rkev00QRfQgZhd4?mJNrRG9(jni&p!g8k(j zpU5|+vNawbuIQ2^in(Q6CIpvJqsJLTk&PJRkjj7T{)zY=W~Qv_uBob&GY7z7oT{qn z>Z)uq?D>Rg7)uh9EdWbql7z9w+L&D*Mmcl>p@1m?d~vJ>Q(iJ=T8JCtrtmHwg!`TB zK%E8)0tmV>;1Xo7IMCnzDwWPI7;2vyTwcUx{k%k-%J;1T?%O1squikFgc>FZvGlMg zFq>ukn3TPjB#Ohrt98(C6e>W;i>mr}Vpjvuu752Dex(Gtg7fr-^Eux8r96@jgL))g ztu+(?ne@@Ju+(Ku%YZ1kt>La=6bh9}p6UW0~W6^S7eqaB9;9D7#dW*V&HSlCf@ z$J?9*IM-@JX_daFc+fwywzOJP$*T_z`bzKt4%pu_2~lgSOKXQuf-ZeQ!TemCu?y2eV~Zi#8Ss$h^c z9(f*g7LSG;qQ8Mh7dzm23x*~GR^$U84_}f2D-l4XV4&VL&QNpB=F0J2Pbs*U1Ly$X zlGyigLFx65uQZ!E)lhYf{l)d0Mo2_sT!$|h|958738Bq6aR>(m*F7tz$N3z9pMDGv{lKd}tsOsB$*X6!TkD_e$|=JyJwShi z<9ws%ho41FEMh-(rL(jp@KkHVk2PMK^X*#` z81F2&)%d7bdwl8cw9FKRR^9Lz>7+&lpmO3p7gt4rR!_7?TT30q4tzI+-P;^n=`3xH z+QwV8dsyqaj4mU|8K!ahH1Km4FyWZ&6hpu^RWcrB8{UL84P#gYeua}HDHE`?i`-S; zS*A7Mg(A%=_-1lGFUMlJeh%U?_m?-z!{fEWY4(WE9dNG@w2I0@?+YrvnI}I7;FohX zC_zhd(B>h!8&rm>S81x2B_33w-d)4_s81|d#}ctIU#deGZ@Da?#9Ifq3e+RC7xf;4 zFJe6=)K6fo;6%APz`4?MHRx?S&Lo)DTDS(Va4Eisvh0*Ab(j|CDDC_A%JjSoTkZo~ zloVQPdkZFniLAA&SAG9&{%$>ko=U&>)iX(^VwI35ZpIf*CSj7Z((51GEeF-*=Ta4F z`N7(fdj%R?t9h64({}YBq5chDGK2Eja9AQx@owTIQEP5m@P_e^5r34wNOrjsw^k@P~K09AAcV%WO}|eKhL>k<;%53ue474 zSM%|Dmr>NpC z>_oM{XWmjIfo2aE2L4xK4UCF%qo6b#=R}44v!W<8oBwQP|63EI5Se%n_D~+3ep-y0 ziQzjl=3L?%nv-#TxbMXaJM(#^*E@b=CAZlfL*QK7<$PD;-0;u+>unfyj#00u$48yT zqoX`(EytR>YgxOBM9j72cKhm6Ih0-3@kiorNzqf*i)2hxL?&E+Khg8e z^;8fQxrF|3jV};yqt|NXa=Bcq)tg%rdgpUn^MhQ_UR+sOYzMhl7QrF5dZ>b8v=!Nu zjI;J357}c-GvkLe4%JFX+Zq^Q1{W!B(m@2)%z^{|BbdLuu{7levE-7w#%D-J5XrYJ zenYz~AuQEoDan-OTgtJf8xn>%B@gL4Ce5kFCcz2MBsRi%=JPk`GJ_up9ko^#85id) z^G}{h2H12s1ASHosiizGANZrWah-eewVpq>^vmtRxvdwjS2maWiO3#A{`xaj^ei#K z=;@}LR@s6M<%=M)UrQz!!+EZdGj_ljKTwHh!$El2!jBF~%_%5q{V6#PCd+IvwBN=V z8;f4fF#nLfLB*b_w=h8gm>MPn_9fsvOJPPxxEw^-%1PYRK77JGIkg`|E4Ce~uS9`A zq<7rQDAfJSrWs6xJ)iS3Y7`1&g_v+?dW94U4YHyp1m`7dSE@eE`kxyR?gVP`OS=R9d#Y!(~G`j4>57Uu)2`U)9mAz2OP&O zpQl+mi5wfCYB&m(7rrUG^#`=c{V0QO*1XyfY=ptlNmiT8C$ukyU}7F|@Uwfa3GB_M zFouwIOGgHNP@huE5Pprr*!rJds8{gb4 zej#pBw9jjmBnu_|Ze*Smc>E#@!`&mIqZ?rNcH+~`W9n~SDjX2Ubn$)=laOn6E3Fnf2GXB@UHoLT}TLIk2#Z2aeUtnpV38~`uX6hmv}bL#esrw~G-)+zgze@Nu$r+%!2n=sxkH{1VOX(sV54Ef zbs^(X!j+{TnSXvCcxnE5*)U|dPBsi#v>HYbhKicdR4SD%TpdpDF85!5wSpZO^88=- zT(V^X*P>tp5~G=2XTv&Fw1E0vJQH2DIzb56Ub|37jl=9PN(usJRXOo~l4Oz2oycpG z`$y*^7q*<04MYB;2|YV$KU;eI6=q+EK7Vv=@?X2KB{1aI%Em-#KH0R`ZZAH5VCCMf zQ5_6$K`PLq$|&)PcRaf@PeJS%Ou#lK2Lb(Ty*-rC3&CXhm;qrHGS`JTwP0v=;rR@V zW6NO{_Vv#9Q3s($G)#yYONh;l!^rbOyRpF*2oJJDfE;h5*}*bIY|-dJ_WBphvN2e! zaeb$b-vl$-v4ty;9fgd3r6EE?&)48ZGio&z)^76yCy6Q4DR|Ea*I%3mZO|m9i(yfG z;as8WYgq#lLj)smW7=S^UH=0(3EJ&oZGUHHrx(?kpxh~&rhKO&uzJ*+KYRKEJ8xRv z8P$8esLpWQ&uCfmzhE_=Vr+3;_zqVAs`G<4ykQK!U$=};bI?C+Sasir|Ne$Iym#Rg z_#(lmaS*OB!rU0^_ol(_zlqR*S%khC{!cHy(zS*I~~8ud}gr}f7gRy z;;F~tIm6d07oEu0r)*|UO;e)Bk5g%SGXI~*8C5Oka^?B&$@KVfD&LPrFiboz?)LIj zdU`wfk5Z}ChLveajGW_W>5(f$Uc5#d)_x3XC~Mx3=skQFUI;vZfYxDTCBtU-P7aO| zl534OPE~rAx(1n^fqS_hrmdPfpUesVJ?etZz?d>nSjNViL$;-=L;Xy_P>sUPNc2G? z)bHdJF;tpw7{Gjh<$)21qXpk1*n18~$2xbuS#*-iloJEMD9TQyxfw6E>{=f*!fJch zGy~3*=4kr=8+E4W0A|*cvoL53yUA_xEY~CpT>dlAr(<@Qr1aU&90-^oL|X=cEl?m znG}3|8ve8C{T!W4~{5Lz1X$ z{?XrGvj1F{?l@e>xuM80aFm^z9+<4ACzpQ9m*`)?7|O4_aSr*v8jk1 zNu?5Ww6KjONlFvQJXKz<)%EKHhh$!BLtq>h1WI+Ts6tcn9I_5C>LD9E`?pOD?ESji zxsUn-A_(Fzz04Mh#SS>SXSv%a4C|le3h3iGe%S@E{}d*XXiE8Kb0SjMsxeCZ02q$2 z7RbUrl@9c~3oYJ~DM!dtoz7&Mc2U=pq;iUy#=Ye7V$4jE>EgmdVMoD&&P_vI3%nCa zv`z0WEx-%vYIS@_!(|TXw9qqQBR+@_zB+MI(av+1?H0U9oif7rypsU1M*Z_dm7Sa;R(7t~Q6o zylu(6GY5ru0%NqGLt%0*GKL*mf10Y`})+ayd@aX)tMXKVyagu%J zOW`@xmH4FlbyY9{D?}>gsLkW@% z^8+BNAR7{^Kxm*o;hQG^Kn9`}-ucG>RIEbZ$h;LgW!W(q!9{=vGA34}zbYS*j*hLz^(a)P)Jq-_YUFJI=?}CtJTf{^LCE zPyOj6Ce-W6S@iAO(&4kidAEB`eI9*3&5Js;Kf5mv=k_^<{`MHhqR;HU)A!%0GNr?M zc0TvtsWPp|n6_IHhkWKh#w8HCNntP>n7@~!2v2pGaHPPGfOS>XJ~07944gJ)j9;n( zbxmI2gpwP!r_@IuQG$p1{m>%{n90V?Q12qlMnVx+LIEZRDB>Ni4JFBej1?M2t^&zr zD2M0|w)G>n=uxrQuDL_9*2bp=;nP>N3kir^p27c?5nl~kc|<9KC^C?l8Ot5WP1LHX zX`*4|;o}ynK(^t?7SLf-66u4&VV9?=)MKnC(T^RYLSetCKelQ%Jk1%KWgCd%^RU!Y z)gHz_Vwcqmm(DQ8vjYk_7;|m?Tb#j9A<>f(3y~CCft6aR7>kpTTGa3ymxak}7Cx&p z1%Q8G{+bWWz6zxj-ki>#1$gT~qEw&%l0i4%4IA?}CL*OeTw~Dsba?q2eMi|66;=>L zPj5?9ZA2Sk$Cxqs_3v3yoKJ{`pcClmT}2e7+ku9TT}J+kzl654UL6VkY>!!-pp>-7 zifnGv33B@`|0pf`67^xuOauu(G^G7{ z22g@&F7x~VJV8&)jPB}xS#a}eqae4|dLf;H_wW{#`fe$y@8 zZIxJN0HwgRh=dV)+;qF|UvZe` ze&Q4J|7ZinQ1HCPTd}|Ph;CW)agPl`0-=50o%im08nqqAku`5$1O4H} z#j!8M*Mz^HV|K;QGx2wgnkbbg5qS90QI9nAlOJ#{ImX?)o`-W5b_}yI7+!0PS(d{msgBet-tE&P*iRfRp$+#}u z@iD~B4IlrV`=olic|`r)8gdb@K&44J6m`%V?r`%~bRNAf;*{Qz522q%pG99pGxTlr zXXtMb&n+FO+mIPTv}h_pW+vLcZ?eX=!E9!G!6Qq99V9t~0fG53SN{vUj6e6-<+dp_Z5_xm z*`~3(?A52Q(EjEI4f*OTXc$Ealb=RkLsGj=lfV!9g&QE{xZ6hL0nO^s4`pZFlh z00=}g4UNuLt7Un=l`LtMF?d|g+-l<$I{ZPhF~p&XiuH!_gHYn1$X5n zPW4Frj~YLRC%wdW#uqJ}rQ^DyM2=i}{stul?ekB0Y{_L(I7lh&H4ksUVC#mFg!1xG)*z ziEi$nJV=O*NLT=#)1RmkjK7h?LSwWer$s6X4iPM9f!4BNph=@LTM((+yjF{3?9zSL z86t4%{s2zaD<1Jp`i}lZ?Q)_&D5c8ve6Cn!qs9WzWlhs55d_WA{8c-#eqOHY-XtuQ zj$1VFkJybX^V@a=-^*>haRrsztu|_)ThZ%e1EoQDsis~(x|py;sH8yey&(Hf)Z#?x z?vHdo=7ASdKaS9w1fzht&3H9#M)1QHVJe<1&Sw%N@N56|rD|2eio$hS2G;AJNXdtn zEeNX=&CqbED2k4`5%(CiF~;FtEed};S)9)VQDAu#_WdE0N*!I60V|4re5vy&FF4h6 z4brQI`N15WyCm;A92KSC?n6O+B)&KXq`qRQUUed30?;#}R;dWUG~du8lbf7-&WTbB@_XhB?QQL}W=pA?|i*>XJ;Px12>HswAP

gcuh(yM)5x$wXlMQz` z@{Y+%0_31o(9v@S+%W?u*1FKJGcSlS`B84<2*l%|X8e!02*<`c2Bw$>zeiVs@c8Wo ztGRN?u|&bY!FI~Iol^82kEeoR*%}8h-ZB3IL;8-8GqxMn!DK`pPl2%;RunG_4_~7g zhOT2lxms2=H5iZI&Kp~{DCTm-qH|0(dk1lNydz}_#@uim{`%{}etCv5elV+f`m^z> z!bJlvmbxWOSh2YZ3K80dz*EklGED2tRSi^?OLw6eWwY5Q4aec1nmPQpEHA+*Dla1c zn}&1geedhNPE}vmyQqH93B{b8xfD7dROz&l-gat1!lu-znAC8#f_~IjkGy6(NJ5$>k%YZs=qfI-#IYw?so}I)OnAeNFdqY`YxkuA`^CuvL$A} zm}l#n3D5sy@K#e4{=phuWwuSczdgbGt#WxGTPT;U;zFa-X)F}yj}joB1E}q}uGgOO zGB&G(c+_{&_0?`dw6GAtw}1s^8swCod!3g1rgzGu`#tFRW%e#6Nu;0HESTPc6tb^j zq@X~)NboMm$z}|Us7=N4N6NpC~!bv`T2^~he+%N?E zovIF*5Yz=mk05h9&cbwuS&WTr-Ik{L9k2!4{ldd^|4da3L$OROc)+=3O#|L#mr_`( zn3Z;?RO*Ri=^?0!o5>mE2dEQ|B0WpNIkfK4kReruiiZ*FYI zKEKV%Vx=c*-FS@#{)XT8ZACb!s+cV9p+`wT(-5z?&IT>w-0PD%z2{am862@3!I?>+_ zok_TlGqM)kzrA2P@p;=NYMNnani#LQTOGR)%Fa7;Wv&@_sUGasjhne*1&X8e_U}b+n>KGFP{X{LE@Mlv%lK_`&Zm}2IGgbkMxGaZ0Jf0W`1@WL zmY)g~B5$}3ZoeOh83K>N6tK660S!g8Cj6m5yrM&%xa^m!K%|W_J&H)@#;A&in*fgS z*ZY7oW>^;I{ViMeJWkW=E6BdXi7-HOd6^U0cLh6Ia0J(v371A=9N~^H z3+}P#WZw-QUgg4zJ^j3eqaV@fKWC9Gai8%lsESUuMp;BuuC5tN5B6?6@{VH8zhxEr!a zD1jZHY6gNbRvQI9+AAcdljmVodoiZSmEvKr4nq&7N~KyXVbonpp{?^N=v=Ifl2C>V z(DIj85xEY)WUOJ%v4&*^J(z*PoAIeV?&R0S7@zE2ARpNkas zoG$3^U;y%S9DqM31F(0z0D$z7Z441g*-7eA+;vIO>V?f=9s0+@>a-0S^%T0_xhKD4Z+b!z1BI0V&3CoPm8RpAuvG>J@LLsJr}~ zS8Y<#+rey`Qc>GUl2I`lRyvxbz92WiUYw{=mZ^AAH*W=<5lIlu-HJME=y7H~jbgzv z@xas`bDz3t6^hG3?$v9LmLv#*g{$s_Q`D#fXPD%Ic00%s4C;$2z$-whtnpsKE7^9j zVuR~e7d**vi`;|87F|d37OJibb|t#Ojg0t8W1mzT}@8!qW&5uW|GJfol8qPN{xYT?HrvGb93FZ5}U4s&q z$*L+_YgE_i@1F&9aBM)_+=$G;a6S`Uv(JyV$^zenq2g>~|1&x^|8qB#wcrI7&3{2h>F2x4SRb$F=(5 zy5|3mNh48F_*1_5JO2M+gkBQ}VgN??dxo#o57*Veu^F_cdI21eivs0Qpx;AGN?+P8bMO|vTQ>PztytsRWQfas#D0je_~npTNdZ{`{lB) zTVoTf&s}kUUS|wT-szvz;TH~&-?XDM=KOxnE$e>Id&6!2{Ao|ZjOqFNPyZxty2|>0 zM^S2d2t&@WYp^0hF;SnRib9`L2{m>y(=j^+eUxkal-@hXW$#=c32+PdbNmP&}Z#bX9j{1(>^W!s8;sYZB~Xjlc2 zO4CL+82IJodvNKdl5f3<86dq&9}ZDo)svtAlISL!=GC^Xrc_@oj~dnM^!s<@a0;p1Re zp~sm}mliESN^+FIG3pn@kV$GTlqda*dkDGbvsY+#T7A%Qk_?#Q*Z|_j$E+JQZZ<1{ z`0FG`=>ThJO^7c~&kob|&!jkWLfbS)tf8w&UX@lMt-$8jB10cwtNFdQ6dObTlW zBG~s_-RGi?A8%TvS!0h;zG&#M;!AD$t0yM&O9T=J&J3$`7#zoJn@+6s*+tQ?b3&~O zgdLW$hUNvLy~X{@>**qW6+9uoW>wm_J^*lgv)A9ztFYg@JWOjx30WYrOpexw2gbt# zUETa2-emyx7_A*8vP>2TIa;Ii1g&d+`UoMXW)n2f$(AGqq>*w^b#T-w#)Xi97B-E)4ACH{ zzJxwECHqiP-DF=9iK3d*9~_JUO`)*}oiO&*b^Vew-H~pDZIjfqZLm;{w)50=znz}d zgstOjvsjQq)YTM33$ZjFZ|+@h%m2=Pa;t$#JeA8eFYiqTf2hctRz8ab;ooguZTO>f zaFA!V9>8UI5m{qb9IJ0TQGrDDSZHoTU`HYR9{*USmv}+xKVQ+;QSFjO_Z0O9R8{E@ zRAsLz2^$|G0AvO*BLL+2bwMK1Ew@MnKB*`#nEW!5WkB3~p(T>B29$zn0;Qmhi6}~U z-6e^1x73~XyDFdt??}?ZA3|&xxY$hb`i#U6;Etw2`W%_#Ge?aDIM?Li5gk9|x~gUk zANzA1?FTN&q}2@lQ7*8!&$U_QBZ_Zn_RNA~FhC58C$TzH3C78uvOzJ5opX?j zlV((gJaBY0i7hNer)GfHOvaGCjt9P46lkPV)jQRv&OkL?=oj zh021l5@j-6;{hxy)&%=JxoIeKfaCg==^QMZ&{H>9YH1pMrr^h%?_kG011GW)%j_ev ziF$9^Jve{^5I4RAlc5WmqA*mlb>{uVLZfLFr!24Dg_=$V-J05MFj?pCg}VmSh zEWGTfi99QmF;2kNZ|s#|h&IM{E@xw*RyUb89*GJ78X}odE!NB`%r>rQial)G7~3{J zZewiMw+T0AsD~_x<-71{_oa$jQZ4F&0|IWF7wZS|?}*O%xe_iGdOu}qhJ$xa&2Z*F zQ?&aYYu$C*#>rFHm>a7WxL|0k)2`jw*?1;S+TY6j{|n=mQykB~v9p{nVEbcjR&~^O z@KheEqmfUj@NziW-AHv2NG=1APE#)t+bK8ex%V}yxSMaO`|H;OE(2?$0 zJ{~tsrSiZA%~XDJz%s&51fRM_ ze+V$PZ{a(SuPkH6boh0hF}%ET{OgXYd>9Up_7`XVEZ(aty{%ib1MX0h;C6$o(9;5wM%zi6(^?9sUVZJFOaxq{*$v9rF{M zx4Cn!v09uPfs^DuL@|M^!%=xm%~+9ImEFnk}9i)T4T9w$Y4NhgG+F zGfv6bk)RB|L~R!fuWp;lfzLNKZX^KQz(6oy5O?m)9^{#92wbK)Z=<)ep@}j-QIm8| zOPk=&UzH~P6_6V@Hn<;9nG1%@@_{IJksuKFoh9DlEpad?*QMGCE{ob`>C9}2@>uye zf?$TIr&#?p%K$WjQMwAz)aECnG)^OIeg7bB#jRS;7dL&EF9rRh1fmWh5G8>+lV)2NqS^u#E8|~G zVvJpeEj6cs!+Xe!hWlQ>+s|CJG1Rb+u`im>nUOKnhHHTB)lH&tN3xs1)k>WygdGX{ z7kn&rCZSx!ZxYM0=@-l?IGN20bzFvwsVyP4MeznJ4dBn_4WejcT*zs2zPCXb&<>G} zxp5a)HCEl(sWNR<_2!g01z50R7?!CR!&R}=rGQ}yd@v5;I9N=ZK%ZVytb;-auHH}8 z5E#D)&o4Ba0@#*2b1fSncdx1{%0tbCe8k9%-EC9sf$d@1J|GqPY8FUsWAlp0^;ogU zJU3eF-J>X~`p`y=6gXq^-8N+&#vY?>+*a;?ra19ar|}pPl({n4Kwv!@Sdd1Dd0tG0 z|F42raCj$%k+%tvmkj&KF!HkEm5SVfv;Ro~tse6VCd>JnlZ?0~MNo!(DRw}@!-@g5 zr%kA5YXD_MLR!NyLP%W=9q^EazQPNZstH%k53Uk4)p}vgzKroNwIOU%?9D&#VM?f# zEjYb&cw@&H*`z@yQ1KVf6l%eC=t-CY!W@LCVk_I%cc zecdU(%~B{=F%}w>QpU(xJN%So88X#O+Zs`hzj+GV^PfC{Lc3jWB)q)CQ&dM?efu)Q z?q4b`YXMD?xRo8e=JdP1u0y%9v{WgBt_O@WhKu@CD`3XB{0)k|fA=tL&)Nq(2ue$l zq4&;|f`Bu|i_+enROF2P@8fC}5nP_ZoTj&0(>y$j=xBMgt6U{chA0$!E9jMFai6X&MB3Ns;Cz(sESHtO1bXsUQ9O+YDZJlqEk{tj{B#P z&Bo1ly9NZcG;R*Jkz-+-{D7u;vO(jM0Szh4T|`gJ`GJ|}7ee{`o5q*gkeyY_`#ekm z(SALT76qWK@7vfnmFE6_Q!&R1!fi6(OAmr!YmJXCp>ybV61C3c3PA9OqNL=9*sl%b zieiujs-UPfQBEHK%mxWhQ-PvVl?I?-bINgzc7HnC{Ugu5d%39n zt2=ou|MElGAl}*IUz>mbYqBYMXOE{5SE#ZuagY0+51)}}eD(6+U%wCXt7lJmA}3#) z|BtVoJ>iK4g)?zmh`-kCDc>oimsMn=1?jEz!%zb{!ViOoM_}}FpFC`bSK}s)7u+|5 zgqPN46z!8atMYwjiP3!hs2}I(Ac+4Y4gxVw-@o@Mj4LA34aR^GyvhVc=S-0)Rv3R& zVSM4xA20)Yrp)vX0X`R^q`g=uEVdItllD8pnS!aTFhgeo8_X``x*{;HFl#*)dVie+ z(VNO~0z!rmfoFt4MZyHA11JJ8>b_8K(=T+0SS+lU{ISb8e9)0wh87K;j zKs&8*|1Evkv)|(LGC-Nesmj`Duu&&`!4Voz49-OHaFl{W7NwwpD@0TEi6_XctaV?U zGB&GI?3EwE9;0>j(eK{;#V4e0=g{X}OrI45EG8<3y4*kZZ*4NN=gtqytWKGSA1Qm7 z)@O|U^%KYXi-28)J}QU;&Wl<*#tEEAM3*|8C!D34Gd&8v@XV^$vw6vZEWpvV_}EZ-wLj68aW(E*vx~73&9Z$Tm7Z zHWO7V)|TcU_&01xqA+YIs;(;=jB_Pqpd3>`Q5L|0*T^i;Hg%ow9}j^U@0%Puww;IP z{!P`QGAt;{`@aQQsBq3U6kS(Yb12j+FG^RyHUJZLO%PH@&Or@AM{zT5$+AHB7&tDZ zaq6RnuK2y!P$1N5Dt@p4sN~vt+y4(lD2Xs?wMnrwx;7bLk>$@^cm2-7##VOZ@c+Wa z;!0~p6i+NP=+UirRD;vqu1%rQJbbb&Y&4tZLXNDg?DnqOV$P8>XLh3H<<(!~c=y!F z)%?+;Hxnu9wHG8ZNEbpv?exUv=CZMJ=8CgI_`PBjZEl_}hi49L)^6E6u`nDSu6C|J zalAQy65@7aSyR25;~ujA|(WzUz!?J7?l6Uz%Q=izj zWpfUi{BvVP9%{ zdk2(b#{P0S|J7KQi{<6z)=aH7$gTfIWVY+-svuZ*uig1g!0^SN>TNHme+#8rdlQpv zE<0cM3eI@*A5OU8ue0PlitEUC-Mu{mQV@6a{wxw#b-fVm;t* zDV%GsdX>hxq5(Ec$Kj?E+%?xthy%C;;Bp;QP2rAX8W^-&KhOg&>$MLpQCVfNFZ;fM zV>|m=bPnB#?z3bz(hk_mg>^h`e1s;=cpDxu@QpsHYyI4*5zMoWX{V}M51fidIg3K# zSfY9`N+ZF%ZVDWyvNXcB4FV=KEIz?aDqz9&nqdW6*L2STJz;3Hv=vv^0k8UdLxG%P z{Qch>%KQh4u~w>v#V300zO%~<3zhZ))-(VtO0K7>62`!Ju~J!Bm}(}p_vk`<+gqMb zOw%+0nWky>JkNujRoij{WRCP|6avSQF47w>Xx*`*WYI8a#$;C|NaLK;_whZU`Kigu)i0w&qBOQ3nYo0v|?}`h4BDsED zzSEdYMXYexhByhZWS~>Bo@CG%ph`H-H`sYQ;sj#5qT-?=w_umlaf~}0m9;@EK|)$!+|rOdwp6NJG9;FA{GXnp~;zMgO&SHk`t5 z7i}9Z7*`5dC}pOYxnHSx2bg4vNe}ykknLUMDVSp&)J{{^+F~{x6ixS0fP(u2>F0_x@kkxr%v8nf zvn3M?#L6ZPkeO&KunvFIzRfLf-5Skxsm|rLUwht#=X9D|AzYU~t-DSb8tQdaC2a9o zLe8XXao9R>>=#DZ_puV*t6`Pb>o<|QaF>Qb{YbR{LOCZ|OTc7rvAeiA@9vnu4BdcY zsg&+1hIuD*eBiS&rjfhgWds){$yM`Elg~n=aZrbn>``<+&P>KO5|~TwY5$8ezUr-_Q4S+=y@LdHJz?S|$!XWds#383slL-G!pOU1Jm0 zcO)=_w#T`m%DqF^UjNA!^<$WB>3u%9fpz=AbP5gh%y`8-n5vr{ueL%(VwUQ1Z|f$K z5(6G=#;dac8B~pO#{7|Eja4U71*vp-{F2xwd$=ow7-h^&2mPK`6$W1XsewLPux!bP>x&PmT=RwYPpgiKsEty5JO=n` zR>4mxz#>8RG)AdZqbvh}=?(F41RB;1YWV(qDbv+&YRWftrTa*%zMAk2dtXaq74SCsibj%2oxxC8;)Fh3lJ?|wcR z-w#1Z(8lKfSZYamMG*qWG<1gJ@Q2SQ<9dohbCJl8B*M?G`rS`k^%G?^%ztH(mkiUr z+7V-Xt+#e32xP@)lQZ^QulK^{6oBIebH9mwaiPZ;52w>`yHP$wUqg}1HEkn=0&CS4 zrf>|JvZ}4nJ`V2tpmjy57A^J&spkW1LCvcnRkcCWG|+5SHH5z)bq1^WUjlwGzu;q- zV1NDsOk(Ky(k<9>O+$WIk{*@~)1ChYq9vUs&BmRJ=di!F=HtCA8}IIx@zhRIYxY7< zCbLtjq1{Dn-)5Dr#s*?1cuQ1n`%Xl6x){j$C~CK(D8E(>k?oPWYh$%8>YUc>-};o6 zs(~rJleZ_~RBY>G+|*RB;Z)SG2K7aJO^+dxIm>U1JEl-gjIN;E0S#ANN?Iz~CDl&B z7e82vrILEzFZEYr4gPrzd1p+rU+;}(c7(YUTq@F*w%DroB5~mrphD7kSDRbj>!@zyWXq)vz^Pa8K>BAv8d1 zZaLJ5x_39f{MY!k@F|porHn>NpzI`Qt}vAQblltqiG^6!({zoUmiQk|o09sU|EWrg zgh@ z={mpRrdu6ZCJUc2bzMwEF%fm${LBK8W#?9ekcg1HVf8LLg6xz=ns@M@TpBPnulayOy67yz_9*hB$CSk+wPFq;5l2mxi7V#EN5A8-IlSb$JK5mt5A7;aO>5Kv5KZO(fb z`vF6k1!(^7MLEmL1sJf;!ZT@p-Eyp}`5NfNrRO_zIpb+OhzD^d!8T}S6l_VT&>wPi z_r|dHA>)cs(3sSh?W1vRsgo1r+cK$qBwJluTnt#?FewB;9M`JRj|+^cSz0{7$eA0i zSzAL51p2{#Zjsx5h2XxjpNi)C$$()|n)RBHAl+(>TAJw*zcWU7QI3 z=r>cdK6`bY&GL~w6R=wcEpKZ zly~!asDX6o98M?W$#`HNabzFVP2Jl7z`Ft1R3auk@f}-Wz%qm&EMZhu+Waq`@`%_C zL{!EIAr!hc#{g7>Cw6Hve9_N0D{4MYPEXM?rmP4`IdI<8n2?=D;WLqeDFy^i;|A5xMh5cL%p- zyaqJPgsNH4N1-&}&ARGv7pP(%Zga->>fD1@V|uOvSHf7V`$dJPY8CgI1~BaKa%Z7C zw?d1dK!P4EFp7JHuuE(8H1A-plvO@ylP#G8$5Iy0TsaOqLBDIc& zyD%K}GeaIEMKI{qCgTC`nyblCcAe+l93)AwNXVsH6p>a+=)EP7I`mWG+|R1Uk??NV zz0v`QLd~1TI5G}6q2qw-l^*{dzBWjb;AYQT0to!t<7uW&#|=?UY;KZXo&9ne1huW} z_rG-4m`Dg?qR1hx8<)KNo#RpXM7eb*Uq=Jv%v+g7I&Kb+sT`h-Kr;O4L&lO^y$7rt z?309S5^Uxj6~b#%{|33qNxN{~m+Rz9r@^sgD6C82N=j z+EmFp&M0MZep{H1s#5?dj^Ys?pm~LGfV$n`u-irO!c5D@>)?8oYw`t!eD;%cH0_T8 z{YmB{wUA#^@!Zrr6*GpW8!aDH~_$$O<@X#}f zRH_=2#srC-V&3MW3xb(MHakvYSkZqfXKiwa6nD%q>CIWMD5vw=%Nd()k(iw!~ zO2>Cjj@8vCT-o;kny2WQJoyS|=&2@v=ae`>Zd~mN#ot``be{`0$`Nv;w6pG<{2W7enAe$l!Vi9?UHpWIy4Eaz*BQ=t` zz*J2?#o`vop)>)*xACBW&p3pjc3<8G#{ZpgS%`yjDl@|F9;KYs)@&b{lCl0*H8a7e zl+Zu7F_HDU`7~7>LlbmL7B*G0xfaF;vmxwbU>|@1g5qhH44?%ln5KC`XwvRLL>!LwApb1BY zv?Ud!{_9Dy3vkn$#w?DS%_wG@ch<_@VtM(@V!0cXHgCV+rxSyaI(KmUeF`BnP5d*j zdHXRc1%Qxr=UMeyr%^8*&jDKFax-42&h{S;bW^y--aog0(KfDVYX3INvMfAeJ<}?f z=xRc}S%N`lb;i&(&a?(^f|XiXW`t8S3z!Q7)`mz;ntPAKnF}`Q&hK#a+67tQdSPUk zFx0A4{OkPYf93d6{jV+cMbFj?FSt~#!u(~7Af=or^4!194YuR^21HYHj7}_s{Ys-z zt#};hou!mGg`3#!+C!ysIXR|1U(N~Q(v-{fdgb5ePAlb7;=x1%n-LvTaVN}(0I?N<0<7zZM!{abw&TokUenf4* zB`2rg;li@F7%IRS&&@fsE`xpTl6}@b5NAKB)bd2Bk@`9bz+oPR3&uQa-+UiZj^gEo zg)&!;GI4BxW_s|??iDSR(`Yz~t03shCU_;U6?Z5GH#DP*FP*51a&jwx@rP`soz8&Q zG=snw4CEIEp?dS0AODb;)AroGIU{Q>E%kVmSr_S=U;fUMc?H8V87>==la0t0>I%B(EB1^@AV%($~2 zQ`0mkUN>5kCCs?1Z1-FQqKqPFgpuUF%lsff*o!Y`9QIV|g@ae#(tv8z34BJGfB6+a9%OJ}GY&tz&Hr z!3To;YfaMjQkpKwiB)?;8&SGc$faNPZND-YewcfRnA(%mhfA z_f(*XPC>H?k*FeulPJg;+C1gzQ<3_u+po;oM82{@qmS%%MUZ z@h9!b3kgvSq;Bf-)Owfkd=J3IOrT-e_BS`erTJUIt42D3<)0Q@qoj}_SgvNe1S|hy zH3(pP{vZ?>(?A=8>K3y6XO3Xq*T{aaPZ#jFRE;&Hq&C$*B;|~|M@7yvkkawT;9-NC zjSakIVZoBS*WYL~vDv&#-$dc#wiH6zpPnu)+Yctsg&wq*m!_Y7U^Yu9mCoQTs}Gz; z1t8Tx0dgD`Pzp_tw4KubVmSDVjEk=RN%*(mAGgUW*%QI2^4*|qj`(?yWy2TD>CqRV zJ0@r&bm!Klb*uGK>(!p9Np)j(kJL*F(xGcM34~X46ARck?%5sYh3a}DwD3)#Y?*< zlqP3JjV4Ip+&{80{(eVDXf{Uu-QE5!xkkyJX$^w~H^4nH;E;}#tySwfzdyv6X$qT>dL~Mfv<2`#U@B&oU{gTKr6lk*=RfO( zW=%#>K7U8wU!o!g2qXY0J$?o**dnw!e@azq(f#mDg>&O*h-O5~{5{H&(D+x@d+vXs zn$9|@MV-H&VvzvjWGIf3LU;bqF&02N^~@uMgFJEZ#>L=`iNjD^+VA@1QBB>Hbkt-z zPB#jlo)0okyKC`%NFBx~Q`*>`YsCBw$@mY+0DL)J-Z}Ds0#FG;y{ zq-95JT^ijY?`Yu2tY$Kt&CCG&8fCelF9#ipU1~25ZnyxScU-O=L*{R66LjL&pL)HK zO#S}-H`j5G`_5t?UBf2iD9^La7nmW0j{o{ouRlk1HD9CNNj_bqdG=oE4~FfX>4>u& zQy?;$jy=g`=0E$#Wf-&wK2b6)_)NdqfS}ez$LoPO)bko95bH%zBL%nzSdcAEmRd1j z22%U24oC1UPZ_hX);(saaMVu2aiJg zq#VhZz6X?uj8m#>;_DQA?|Hs`%C=A0{;<&mDV_Oi9VwyN7{a#z7D*UVcZ=xn&2Fia zw{XT7=tvY_ z#1%XHd9r`i1-KWcn`=0tDae%8lV7ndCOE)&33G25{eYWDh-Mh-0dx63+gJDTXO z04&&I68uGb^1-xJx$wJ2%J6w^7`oRR^SrQfJH>L{}^`z zN~nw?NeK;F3)Gpk+90L#MuILO{DdPVv|AI0F0|}bTY0D{g1urt(R}qg9AuVPwj3z| zl%u@x*2=O$&O2Uh`AA#YHRI=Z(t6l>oAqbb-^$9CX|3=n$5!ATlesSyt=7qQ5_*rk zCTT<>w?jEP=Mb=)5-4K$*LFAyd4((DybHlX7++4PJ^G{PN*cMh+v{Zgu?y) zRZ*$J3lOXVfZ%}( z$Pp5VQl2qlJgDXCO6y8GMVa=&o^4}@CmMkAc9GzY!=%HA!NtQ zR!lNMgwR|`DTQXX5QOtR|7r|?{}nV9JX13QB*iYHI+FES4J>7^Zt|C^0j)z9WIB?} ziX5hF0PxHOf3gdFn&!MC^n`j6IucInr1_Nh0?X|sq-LgD^rCbfs#(8k<%YK~;Q);< z@UW#{d)w*Lm&JX)@AX2+=PH)_Vn3JQ4Mw^NJDpy%8lg*TkE~HV|4P5sc|zf~m;X%c z=LLD3z=c=8`lqCQmhwP94~tsx%n^D`dg;)t41RO$(+b!q64i*ZEOgy>`Q09*1s{bS z(dtE4E@}}AW!Cn*$C7JBU-|9l!|UXiCH?$MYA0OBEy9ob-~4NIP@5i1rrYp4!8qse zhki@afU~4U9*;Qqr2#$|Bku;xhVHQz292opvXU@IZrkVzyulEM>r;u59sQ zxqC54a2A_V3jcN4*r)PasPS%)Oz5rEAb>Auy+^mUnddRvwqGIDSvK~09C&B37JCF| zFl{@f0AE0$zZKSwlh5x2b5jczU`dGdg%AYQQCh2|^7P)>!qU=$O$nv8?NnA+JIXOi zO8eZt7j+SoMuKZCy&vd$OkqlBTVp%xQY-g53W8w!qHFrJg!W8vX;a6?lf3k(V#U#crRPE zFROpRFG+-xw3u)g%%iS$1u~&?N9Ttl4?Ku$wkuEAv34VhVq4xVMt#xGp5KbQ`8Xbn z6P8WzT30Km0T^7JC;v9c9|WI!%Gvy|o{z;9s}l?LpZ!N=1l{f?;|UP>Di-Avc*YrI z13#P8g5H(7!|ABJ+3ms(Qyi45QEcm3w79o%#(gV!O!(a%ZivLE^2Zh)ZyR@e5RdE& zsWM7vg%>4S210^?3M4Pu63xF|$|~!7520zcSt&iVXFpz$Ks##v8dIJBTk5p#1Ff2C z)-`k)JO5p`dLc3n{LSVUqpWPI>TdoGz9sP|Xq{Pm){Csy#fPVWl!SVeB8%{8H5SGg z3j2fqR<;lm@dhOY?GJT_^~8z}_5NUEoWnx-Jmk3P@qk9#bYoOUBS3v*G}|}Ed}4tI zFL4ag#X9RZQMPlJZKDni(cgsgkGfv3Sgdvdi7HeVi~fa8j5`2%zUBGPpk$?04q+u} zWY9qfVDm!1Sgdv+EbrWP*N&~F00db*Er)JpdgZR2a;WJ1b%f=eyWmnaE;EeE01#IZ zy}oR>f)pmMF&4St3JEm?akUyn0>dq>h#TeRjaYMp_p31g)IbV1uI6qx?aQN#G62A= zl2w>eZtl5d2jNRlR&I_;hW)eFxc;-cVqI(9ZP`pNpQ=$jSfLddzfq#(Q%uN)gbYj> zK!F~`t8&$xp_SFC3|}o-vs89nLCIpNW;pVU*irMkH(gzs7Dh+AZn@OV+PFr(6)Q|? z7$=XYm!)F6HhCk|$;r`h)L$e)eF-;WW(B%MjD~eX@V!pC4D%0Z1VT8DzTwAuDvo%u z1OQ7{T0YS&;8q7Q-%E#;<@WMUa0KOYr#}B1;pkG+`Hw)vK3O(E$HUbQGYO;=a1k@IBOUBqy7NIh<76aF>5dmBomwy zYzbqW^8yg{g>CJ_8ufz|k~Hw?8X(c_B+fg=h%Gp4C+jbg>X$eKt5eGC=lxrt`v(8^ zdR<1HQkXa|XFOA3gn=dOnTk@Y= zcwjG>(`5t};#q37TJqBNBoa$A8D+@tw(40iSJR*I&T)e)#PFtg=xL1Z{xO1~8ib4_ zNh3Xv&=k7MZ8!oO56z|lXTu&OVA5mbt!1t}C!zdC4|&*+rk%S!K@@Oe1Y=q@muNFV z{k9{cFafY5p3)o_iO~inYXq6CD)IK4T1cE=8+?1Jm{hSCVXt&) zZcXEy8Eq1aFQ421S)E+j6Sw!Cdj{XKO4hP#wlr51%2162T&KD`%6V5<*kV;iZ7!sEugWnXR!^fYpl& zz20d04JoBA2T+d;_GCfEkN{NCFfM~)yXWx{vZ?;2UD%Qb$goTs`2vd?Y-oK+(68Mu zWl2KrjI<4n%NN|QchfURy+Cpnx0aT&8S z;zr%+@+g5rh@z~*JU4C!w_kW;Ucw8jwOZ0_T&Ha%Pf=nJ4#ILdVYG9--Dwb1@3{8b z)m2dsTtme0jmpvsL*LoMfNlczb34lnL_QKZYSM(HP8yWB+=4hILk-3OHmrT-R&>tj&(H8D=#s?-D*fSk;i|!T~ z^{4%jugwrH2GT?DY-XORG^%3;zh2KUaaf)%cF@N3;)nTi0qLf5q(PvKVQB0~f512$ zCY$KzDMHn_mxr{Q^@c4^5`@n=K$xV9R4QA3V*rRqKO6S4E)5B7#)?Nx$5f(_tzw}I zcU)a>W*EAFv*x;Z!29D>7Dg50G$XF!CM8o8@*9jC1DKHNLZ?ay91&9OEK~^w491C8 zdzW{(1i?o&Ae$1z);ZFlLQqG>ROrD7wGmPu4FK6Zij_k>xBT_k-wKz!kKNU%uP4cR zy&(%?=q+ikyU*9lu16gehs;L*e+8{?cPCs2PyhxaDIf8H2I?+!SgRgE{dn%0PaVn>Nt>bEDsQ< z4&8tM{G0hA`o*i*A}}Co7-L{L7DW{4I(lFcvzWC}54yzOIBLy3pdeVykjkeQ53_)N+W&Btg{P@_t4mT8R6W)8QcVb!NzLbG|0E^pj^{r-y=f>_Lu?@@ zc>;PSuE9P~zK`Q6^DYF)8O<^yK&Pq$=M`$A(Q_drGO#iKgPEq)vvzw`NKY4?Sfi74 zb-~bwPcLqwqKnQ3qn)~A+XV|PEuJ{Oa{Bai+jOj{KzMp4Z9Wf3({{Ub`tHBg@9kGv zK7D!$ZmP!98cWw-zx0(XpHfNNjaQjCeY&(}v~;@fw>q+p%Y8R79Ss#BWVA9m2ZLe+ zlm#H#5y5Wbd_3f(a=E(6`JG%VZt1O?)pEJCIyJUPSgx4kB}&UeT7z2XeJFn)d)#OR z@Jfk^ej19RuC%E-YVq)7Wwm^j2F}MWB?u)WuD+g=yY2@$!U@wql~amy8caQPC8ac& z%3JW0H^lFoAN?GdeR%#(S>fu@XR^;z>kJO8rghrdbiwPXWD58@FV>er_EhMWop;h> zim}dzfC1B;DmtMBB@x3vZZ*~47s?nQmVjnUsMt==ko6x&x{D)Xv8@NI_DzfuBwRsu z$J~o+W-1lK^r=%n6-VFz?NPGfM9iZ&7k(#RBg$~H>wDgvG6h4Dxvn}yycp+&?MGq- z4fqV=0<0NpV=~BpCbx3RWei}#Nemcpa$kW*%p1FAv-10~B`>R*wJObo4iJC_Pi*qG z`NOu3EfZsV2{oHg37e z$B%CZt_x5(dGe|?jnKG2Mq5a20m1tWZueq1i2k`IxMluZ4LcDc@TG8xk|B)OT|h{e zNEQAq*a#ke8@=KiM~KIm?3SRHHC+ORpq@*YfqMYzR+a2(QIYC8Q3M*qpv zW$0j*3>jefpL=kQeV^dGMMuz;YG|}X(`&ArA!`nH>nhuA(DRl^yr*Lw+H>fxA?P9Jtg6rY3J!%a6u~{v%oiwFlrU1`67?vr*{=k zO;5k1_8F=-NPKxL<5S#x69+~}IJA6Pmwtb?o;Z7NSe<&ry zZIbW|%8DUyJ=5Q?r4wyI6w@UT;%nm9?VR!UFe9M@=hDvKe@=HG25O}hSrA9H`$19O zXv{$&*OVANO}))gsLBOr7q*S>cejoJpz8bJn21ti0HUN61n8yd!`S^WcE{FW`&&i( zko(wDE%}^c?l6h=IuWONU1KBKnA!l-xJ%?xZGLpXAk^pvg#N=NX?ygw)I(qu;3+ez z_6=BCKeKBO>DmxH<|)%PMhPPVBIs>K7G(d?Vy5Uh&@0(4S@0C8r;k--v3cYwo*?nYTcZX5I^SIW)g~Aq=7HJD8KG*@t`J=_Yv1D6+R$ zFwfAPzh(|#Ix~yFt9?&jq$DHdZIWkx1^ykrZVfDJ-zOmn%xhTMr>luLeAW#^_kuB_ zzSdIqm!}As){VK~hM_x}Ib>`0m%sR z??$Jh?s9`ueqfxP#X`mj_Zh?F^r8E#x;m3N75C|(IB@J0arRJ|=R}bY2nXbzaOm1ghfjvYmHHY!fK86lP zw|bp^Yyv`bA*VVbq{z61YmdFp%`KTj24#N#qajPrTK(OX&??e7Vs+@zfi)}6ob&)V z=mkd1t`>gZ^)Je^N=kNiV)H%iEY5%Sl2nf3rCmyrQnOituQ+;-+mo|Q3Vl{y^xehz z-(1p8V)ms{vsp?KI3&^mz+3Kfmo#zEF(RRih>UI_r=T2U?K_G@ErKM&Q!9qUT7|gE_x5ohQcVMtF$`=4Nn@dZLyi|^&QaOi8 zrPFEc+6_m*h2U^tP0O)TaS=z0i}jl44(X!HW7qk<>(%Oui%~52SMT7N#!my*FR)?+ ziF@0O{x$l&(H}&E9&$%V5VDu;{c(SACELb)coH~Vt(09~f1Gkn_$;`zAXuQofHF?Ktj8CY6*dhVb|s(@Se4i66*s^uIt+i6EwM|<~xwXD#-*#Imt=sEcQfhm1t@Y_`w6!f|du>Z=DL2>l zec`oDDYf2OYfJfaYinz3*F3l{iC1ER@H76XZfHV<2_0$l^7X8fVB}J z4%OvV6Ev-(*Mhpcz^59LvR(0xGv3&puNww&zEe62v00P5H$A{hP@s7p+$6bfW& zFM-dbNdG`KsH2-MDPVf@b|vlD-#0gDOJ!^6x^e8fQrjOlQfkA9**6S3P5&3{eIy%( zFthJqW^5N3#8xYsKdEh_=WgG$v9(mT8as%Rua?pvgo!aM!;WFr7RZ=grFlwLac${}7G~6$Dfjz6ZZV z5u%JKw2Kv^%NjT3!h&pKeKXeh?fuUt)(f)PlnWYfJ-Z?q3xN^AI*;KWaTLbHZ~K;g zf&x(HBzc}VOx3z8=_k^aZtXVo_B-*qwR9z0No(CR&oufA)wkMD)km!#qmfb=P1(oS zlbA=kd4(*t^6HEWEH7qU8m7CV>P2b*&(Sminx;l3$*@2Z_oCBboF=1bKTdHAU^Mi- z(_*p<8-sMX3mc<2iTZ)eyTvaBK_GRUC`DxyAZBZAGZcoBDitSM2K)T8g&|^EYkiI+ z)-t%CBi@hJ`QNR8jF*x?hz?Pbwl*cB_@6sM1j$k?VFgnrH(OLH0$+VK^P?^PXfj_# zY=71M^&tos5NL|eO8_wtz=b$|9#aiyA%us7;2;JZa6ox1N+mO*4w6-*TBr-epxvk4 zxNc$L*?WuQey0+?N6Pnv6&QW$^LvtL(K3N1&k5hH97nx790%&t+m&9zkc*gNAU%4% z^`d^2#&{IxE;b*Eb6^hKZyej}K@4+6eOQ#Gpe@4EDLeOqtLunvB7ttPpa%QkQJjzI zcogTb*zfa0sXZ1fmMsewgR9qSRYLn%BrlD38q<1h%~WO;vsSB9yw5oZt=3krdNK7_ zr`g!=_4{zx@55%le{tVZ8`)>;{878nTi*hX9hFg0bj6;aC`Nm1+gk56UPqBubK__G z{eGNw1}Oil*w(cc|5jXf!OA#~V;U5+ykMqZVX+C2wxCfbDdUV}HnD$xi1Lc}KfFqg zW(UGIg$>NFwNx_3_xVZ%py}0qSo4|yX=#xKSJ69^80r9jyO#LXs-LW1e%ssLCYUnC z42ua%r6~{df-9@j1qZ6lB_xiSZTkH3Rc$BIF=0lmz;|+u}GA zV}ERA99Aw;f@bH3_ysWr#(C;1`@6fyoH(bW-QE2|!7ou5*LFcIbCR0En1{@oy%HQmVNBW9)RkskFp7%S5E*YsADbQM8>=#8m_3@nnZ647;ZR` zN5W`1s%`*6gaJwayeX*T7^T4vn~i!R7z3iUZ-SMQ5aqRITOcmfF_a|em=YX`c5|&P zL}?{3zSaa76G^?%41LhbI1UwX#DiMBy}0VAKxqP$i?~tGN{Kd9D&lH^TZ%JUKb0Vq zoT?MXR0|93QYop?Nhzy0V!2#b!me#hlTimPn!x>I-(;^dfW5<6pWVL@WdG0UwyNanXO z4-6-vK4WwP?_6kWOnpYPr@&Pr$4Mf9TWE(;j~3*!!`rrIf95fWq{+uVW1GB@{h&UX zT5Zb;H>sG;1IF*d6&Thd$s5!UEIl&j?B*tdBec1BRz!wqaq$RH1pLjTc^`P9k7?-> zJLk{uoX{;-Do8{+D)U;sXP$z;g(qddP*=$T&H;BsCeS69UXe1P_$7vx@1hap-m!mb zH*RQn3obLPe7xMgeO0Eo^=t$d2Rg}Rf0=rVUh_<|eOtSA!4*)7_&`ij0K zt}XuIDmpTvP+XhAeoKqDF~UqZKWsbkTt6wqmY;P*r1T8>D9nXq{UG5yO}MObYa-Ey zoVK2lMdX0fwXy&W5HMDCZe?#2Kg?#f5=+hOA7Dt1Bl$QFxVJWe0Gl~8C{O+LYlvSZ z4@&KA8PHpsW8u0#?XI{^s0Xm|o82|6)ENrJA$_{=rmnfc0uFHC}(kN`q7 zcb@Z{ou&`~Qq+!Ltd`)VCiK;{vQphX>^C1u5K3Nd@WqI;d2O+Id4f>#P_uuyQ(3!i z*@V8jo^q|V0Hxe2K-Es8pK%>=az#+8S$B%Ye?RIPD=y#}I+Wr29#6)`n*!>i9MhKCG0Cp?KiPjjj_EvUIoY?IhQ`%wnCsF&l zZsbH!(&AUd7>??QC?&W+^}AZkH#f#zPiw%&)T-+{JI9wD`3W39pY|1zyduA>t~Ic1 z`)I(+n)<4V$6!fZnI=t|WweiO3uV7G@Ag3E*y4VDsTv$%z8V&0JAalY=@#m96fF+A?f>ci79Pf*&)6usJ%E)@ zl1}+Yf2f)DEpC;g4W`C-jS?Vq7z8nb#CE`S!8aHi!VJL>PMF0vqY5GLBa9O5q@%2q z>e<3AI}NUnFm(;4j0j2@rAk-p4oAKV;0BlhFymm(q5DuOIb{@x)YZD)Ep5T=elAn1 zYMruf$zcibyl+~StQ7qLSfFKN(Il7GO~3ba+4n&!f2D1VwzJIE#%;G#*%uhm6ndjZ-*L4X$P)f7V~(aqKc z>yf%zDr!93s@iztX5o;a6d^kN>G8!lC?&}6N{;g*h)xN>#c(huf2z3#@<8e^8DL~T@c^l>TbQz=yn?~tJlAo)a%K6;&^=9FAO)2AB-t| z4`a)MU$C$r==|An250;mE@75MS2c`F*U}wtOw+;-Y~=U~*`Yz=La#EJ5`9pst_PhrcA{ZR0cdznKzaFWjmeNBxiC z1um9Tz#k__IRAgaZ8bm3N}QLnEOw4rlUdd?ztMJ$>elMGcrGbmB2O*N?u_S0QaKrTW`fvjcs! zy?w5~xK#H7*U5*&ZR8eIguaZw#giBllq87$TfJ-}EbPGZC!GZ#z?mHqiUz|Q9~M&a z1rUgH+ouW=tsf49`+0~l+oc}Ngw9rl7*{?){eS^+t~O&VOe9-4I=8)zqOk2cUa(Xu z!9J4CSMB2%vm{PdjHy;$C5hI`riM=Ybt!i{wh$05EthW`4AHd$#QKTy!h$Uocq=RA zr7Z9?RI5wn$%d8^%=S)s%5;t^PbOLj@QxiXM^E0B5`>cSJ$JZ?WTE%02W+L+VtHr= zm%LiUHKt;c{#P^_eBK|&#R2hsaibz#-S`XjqUiUFqEU}x&AE=FdSmUDdO5f|Eb@OwbQ}-)hsJ62;%9D@(!g%|<=Fx9L{C|J7OaL& z5i)XEa4y-=Jf&ORQhKzIj9Q?nU}VNq3v&d7)|aLE6_nWEXd$*^M#_kuIrj>g)B0u- zX07q7qd!TlND$K#Ie-)SCdp?e3Z^vVT2=y?pqN{S?}Qg`&Vgr|zCFHDagLpGIm^mr z2Xn64i;HcUp=^i41X;Jo^+;)c8B?lizVG`rMJaY^BvL<`YQ+@Aa#{T9tUJ%XxBb)% zy0cH|P!aq0=7ZVnW2>9z@(GyTqCp{`(uJGNL`8!^ONG*1$d~knJeMe^!s%rG29=7o zWub5a^ll^w=H5G}@}?M9k8)o?Po zetF@u>3{RD54c=nL}_1Ajya*&WyYrx6NOmAj%skh-@APyrPKCfnyg=+3{S*06}-O*C=B2|6LIj1)8IomPb*QO{$PgnU!aa#8;Y8coi=)tw2rMqnb~o1) z)!G^QL>QA~X5L0R4yqT;g0rGE?Y<$2FpsSPDUz!t5HflNGdKwX0G5TS8HP3 zSW78O`2wGoqnMK@0$%MaJ}EYuj`XCqnG}KM3^UBRjbmF2=?Ov{-=O9e765sx^+V~*h-bKb|W z^aMgWaLp?ApDH6;N$@>mVr^?eh+fiYd;44zQUD-GV%Jp|MZ&noF^o}Q3f8Y*eIN9N z4_U<~I*uz~ll=*EGQ*jZIbseNQ9pjV6%#to_O;ec)_vBCBrgl6Ibwf3pXTG6y|@Aa ztuq`Kv8{tJtEE{)`-iC*#SXMO(7u>r#|e5<5jYM$HJi<5dk?TliEp2VY00Np`(9e~ zZN0guZGUlbb8&J1(H(letrs`7?Jo`tK161fU8*OcO5#-8GD!zXeFXSXP>FUa(&Zl@ zJfRpT;o{=PXmK&ZjLV%nA3+Am5m2;QXB1 z;Qc{A&bJUN#(-4hu!%=!G}!-9LXdFdehvT;W{fdRc#C(4GVt6|$@PFTe7M6$7<~*G z#R+>ucK||!IRFkL2mt}aYH^HE9M{;Y#Cv2d+5 zBAhoJamI`42PtyRk~MNm0OKp+G<-f-2{B`pdeP;D_f7Tq{+$=4$#e^iHtbPC@5$Gd zB<&CS@n{Q1Tj&WtCI;}|8IOzu6u8oYG26JHl>6Ur-a&`~q-o1IF@b@F2iw!+0lewOw2>8)kwu28n@M3Z9m?S;;Bls>oo+tJL+D1Q zCr{C&iK_m91)Ah6osP@2PA5e-?*Uuc@f?2MjUv}IcBK+AKYP6ZGhliRA&!x8;;6yJ zlF}zm-hRi82yujs6Gu(X*Y7d^Vj}{HIajas<%36wl(gO-P6Wu+_4S2ZN`L-EOtvVd zjNt}iOy17{(a+W~W9r!)5XEGZ?eQZYK5JYzid@Ax0s#=#007E%$VDTH9fL4O=*By4 zKY2o{CC-~)_L#q!V~|m^Y`@s8{tXFYG91*Xl*E@ZUszvXJ%fR65=;^BXG_LV9WzG1 z{cOb;UMynv)p?!&GH$jWwQyAszUN?Nl+PK-+Y?zy($Z@>}e3%6iCpjrH@^f3_m}z$gL5+hh-8jZ! zHydPjvI!CQ;G?acL6xnY9Ij!rj(m7bR7U&D#mbd6+Mg(mC#n%Lz+40i#nEp ziJ~Z8$W?S3;)ru`rMxnxbr;i9=cP2>Xg3lTlWyqmpauQ@&2A^ajH~0PP9Il{lc3|? z-0#;+QcpH^;(G61z(ZveP%I^;0V-n|+`-Y=lP9Zbtyf*X`Q|QHd$qKB^5ogRb*ld) z?9ki$>9sO~K*|76d9A77NH_0f^fmVGv$tW@0!M)zb|$Im`upL;>9_TzjPg?aUjaCy z5AXKh>Lq3OUqhszZzRPlD}*SFF)!NJG5>CgTJ?UKZ?c>2x1Q&nP*KaCWSsF~7AyN{ z#!(t3rLo^0u*n(DOB-B5+uP^h#jK2qAjl9X5r`&to?Jv1SrutfRi_JL=TUzJ5QbW>domN4drs@1*XQov?Z&V7x>yH%h^k*Au;T& zfA70Y1K<3T=qZ`L+$onqMr^$HE~%~k%jdSY(P215z&J4C75#qdq%O@-0F~)npxPdJ zzsR)UDIbg{(+;^fg?&aKK`@{mC;1Bfpi|iXaQ*vdzXl=r+62zj7QbmqrvrcWRt=RZ zzhd`PldEeJ#DDDj^$(w=r%UEHg)?yiW6%FKfU;7bi%WQ9I}A44WEnja=!(Lm!mNSUPqdsmOgW@#demwY7U*fMwiDK3r;mddt!hJJlq02cv5 z+%7LI_WEmAbNpP}{eC#&__^gy*arZPA1ZaoLuu}5ZEODn9CLl>&}VmI6G=h)Y_7NB zm2G`x^L`gGNTUV80L=H9m3jBmT1v!TW%zp$dsPh{yv_H%s)|6{-kz^*#QKn){*PJj zu|8eD6$1ijK=9xIA{=8D>5uy3VYh^M`Zu&&^z)5Ddy90(8`CX1+UamH$hWZ2O%GE# zsyBAPfpJABC5kV$##M%ZLT5r7!-QbglfMQb>;Juh0%Fxz@sD~|@_@f4l;(mVgb))# zDIu5!7OoHbVnQjym{CeF03cBv6;Qs$7FzXm8M7H5HgvpCfBJsT`qNK8L8EU=|K^U~ z1$|0OK3ezi|JobBgu{DAJHI=(-e!H=`hxX4{&lh59;yVZq3=rAw(O7TBrWdb<~ZNN z-HYV$`lF4(USZL{*JaOhe$m2RE$y~~hl|vzU8!BW&TT8;@68|@E&mBK?g^Z7*EH&- zk`DdfyfS_fLdAOVS+g*m7O)Pv-)&ic2X?7(eP2kDQuj_@NJ?B2MD+QKtF>5K{*T9z z)aRR(iWH7hL0nuQ+XUAi%nDM+TIvVk>M>tRN?kWNZ%~Q4Ua&4F9`_=vJ|xXAN<~*1 zT+KTz9-b*+#Xq3<2u2U6p%u5_mpwr9hruGCrXuMeR9 ze%fi)=iHH6bk`JvX4 zS@EgB=rmserp2rllSdm*!|})p4`CgAe{OVQWI9Cg8xVEj#_kppC&CdIRIXM`*ZSFXgu z3StP39nR^xkx*|^&3_+`b8r6lhH*0bccr3aaLu3=hPAQ&)s;0J5YhW`e(ybqJqupznK39}VQSHw>Q(|NPwH4cE%x(G-#S9p=ycPnBO5B1Lp)^93vkVQYk}IUs>7aC=Bm z3h!q;Mc}?zZM^^e8|uX_pp>)upIBY<{l8DCbpo8~oX`Oy7^euO#0)6OHRV9oX_ymU zL{jRVl27^{;E65Z33N$KCM-hwsS1t3NLoP7#^ZTp`dMz``pjprV4a{15)^p8!@B^a z5HO^iaHA05Cx5U70DcLoD8bA&E@d|xek&}nqdp~DKnE)c&NE4IBaOl&1L~=^j%&_JG3fsPIbmp{FmAjT zVQlcQ7j?i36ANB0Z^1tc+t$DTwnqerxm821C2Q{Z97|!2jF6c7JI(AMyJqkOiGaU9 zg6F+298BAZ_4OpK9$QB>PS)2?d^K=kRP0NGU?P18iebWeC#lb=)IBnsPIk~f$ITg! zrch!#?lQ8Qe<&|}>t!QlE%3R+>B}<*2-9&uVs!?y1+WVCJ$=R7vb$BOlu6My?(+eMlYe@9+AT&&6XvkLNt3mG+AWeaFWkWoGGs)KY`~OC ztHGuxp5gl69bZ~i1<^}{YSJf~k|j+FwdxYRs)|iQHR<6keLqc@HTARsB@(Frdeh%e z25S{bb-c0?Ybq;igXE#LN;24^cC@k**{l2BMT%8g>4$J-k?(nqE~psf?`AIa(3Cfk z_@yEjK=!s{9Ho3Z*#&qkT?kA07yLavQ(yRPJyRjCes-UbTcI278;a`f@X3nh5np(r z^m#SYzxRLDOy6D=!~5W_X(eR;vsE7A?W*t2MGs}mH)`3+K;i#4A*7}qKupi)8yq{M2UN>+|q}BUO0HUc@(d*%tHeWLhk|bF7yqnOf zYR>;TFz-{k5(miP+jzgj&e_e&^7Yo7jaRl7>A`JwHc$n~Tn0=hP}v0zOM=m)YCrGK ziTdXl4*KIJY7f?xHwH$Dcolmvg+DF@!Pbkn!b&-spL^!T&uHhOQ4%+Z`t7&hWz5ZP z7`hQ?z&8bJhii*|wEY&|^>+BhQdlWRTQA-Ug865kdGRxfG_X|WqEY|)_Pg9LbZ<5$ zg4q{(nb}%PIfLj+@vgVm1E^o!AId+}KAtooX`)%>9U#KuszY`+E<^?59Hd}%?O?y} zb_)f$&w|%2;b1Y8k3O#y>f7ig^+ z6sr+wP(Ko1^W92$U4VGU1ILWhGV*%mzEyDWPu02B@m8~XasI|g-20BfP1h?Yp;FTO zh84y=<=(0BTRS&Kt_Nm3f5(A~dSi41M|EemqQ4o&>cy0o-G=v_EpJBa0uah}9h`wZ zxvtScn6lN+c1tM}PXDr7yut8j=159&h!~lB@I0~ZB4<^-vDj~Ba5%M{9PMM$ws7{{ zmPJ|KR*c&~A3)DEY9VC9lT~m6YE(!^5Xt5i1Het<4D1Q}YopN`xGo&a2a`p&-1+9m zz;)q6utnZ0!DfsNnMZS$w;ve?*23_2Tmbi*?PJGIckO$n2wi6PK;7b<8?r-D`O?6ZtmFSO)9vQ@V-YRL=WW-hF!5)r#%%o=nvC-}Py5 zukA@?>tgIq7O0AAY>Wz;NPUj}I}XJXZ!o$Ma%&82<#9=&BqU4)Cgbbat$)MDrD!p5bg-ho!bX~ zZhwD&|AG?0`i`Sv0U4*IBn&bB0*Rw^68r56t)m zph8JhGD(IAVj{rmm;z)#vhFDGso@vB0*JpgNky4f@b4y)tx-a=Tq% z`Fw4s;<*4({?s+)roqFfX5q-@y4a{zWhTRn?tP%}myD#F6M^mo@;3H;EQ&2t)vl7u z1OZjQQ&APJ(BMrmR|LZfsOf(O?Ur%{}wGp|~vWqhA{YqjdZ zj2r%CR1JKfM0*Vx_(2trZ}9B=`Sa(`_s&0z2svM8Aen_!=s$1)evf_<>gp$`DX?|~ z;EnE+EG1-%uk;s_NMTHglH)fjHim_0>(Ck3J#%O)S^#V-Hy(ddFBF`OR%^p46u2bI z}1)w`SJ3Ab> zf*o*8>k^SLoH9^ir9lHTXv|f0=6_bwvUu?{XKdb(@ja7^AT^WI zXXxZaw&?StQqMmIF9^tMQexk|FhyVH5})qY=0-S3`F_ zIHTyga*Lw;aeGELAe#Sqs>GNM@f-w9STJXDbUiScKOsp#&M3+)imtOixoP%8ff1`& zTn9)zIEkRsNRCtzWITaZK*?GGj1PytsEwZf31xzR@$->{p{}BM(@m=5o{>SPGt!`hc`#*Nx_XR&wpZ@Rw+OaGl0; zx#DO1by0iM{2z=P#ut@KLWa|SUhiBt8sYcm3*GH-;X2K%)fV3>2uI=Ws1w=30Ebn*DdFDIscB0 z!Fr~E0C7N$zj5Ii3$Xni&bwYtSS*zwCm5=x%1)V1zzb#Y738BP+Co<&)QDX`V{)aH~r-kEO z(?IgPjv!PdFnA6C^7*_ij*7w`2_<3v30ac(DWSX}GWF1Kb>V{l+pO&N>v4hQBub1! zqfuMa$xYY&LcwztV1zo-p)>3%cI7VNnyyO)c5NmpGA@+{Z7-0Yp<6^p(K&QGx;yIe z>xmZ)lUb_dMR-~ScI}9@ViZ~oB&{Gao^hcA@du-m`(ax%(U2w{pDi%kn%oOR(|ZYa z8MuG80DSPc#R8(g{D~5VkcHuV7KX4FhP_Rg50;v2sL2_dUCOqj<3JYLyjNMCZ;O#J z%%WC;zTu)kSR8UF@!9gN1+Nb$+Ph9xEM1d!ByI#S4Gb>rNSbafgUA$Km{ds=+K87^ z6mxzMIJWHs5Sof_^bI-U1&>7l5%dp;-VuE;Bn5mqO$t~LDLtVi@#wYwCbiXfsMrsp zDDW}NM2dd_jmf|Fp7%ug96&A~`OpmICaUw1w4UDcxm0f)RfMGF;?b54ih;S~~Xix%g1W#du}rQ(~-D?p?6f0B<6L`WZY^?B_%M#mpWOvf#D@>xjSym}YO_^e(-XUS2YMJi?VS}5 z6%L@B3;4s#^nFTVOm2YEacJKO@)vp(V}fKvc;wSNweH{|P3Lfr%DM)Rt5g3lW`u-l zD5QKLd~ARC#+u3Cs%%SViXbRVx9qRyDK+ZXnWQhDsd-)9pfo@K-8+iKK$Zc6u4qKW znxX>+Sq`q>UYl)w3QM^aE2`?RbdH>aHRZ35o?!Rn^W%Uq-j}63ApnHr34MRPRx1sa zmLCLuOBt4Gwffxm;h67Aq9CZ6&)6?IK4ZS73W6v>Z(|!}>E<>4$JaW;^%?7bid-%I z0oXd)KgQV(SC4cmq_*!tPtY-El=w)(P61^qblMvKaY<41nXV|3;^sZdo6Cst{OGE|Z`! zQ-0uBSf^xjh_$A=@)P^-_QGgf#EkLE-MiuL-4zQ2JoPvVdk`)t@AnJyALUFzk&3^^ z8H05GBal;IjQ?IyVxpP5u2omi?e72yE{M+zc5!(%<&eUhhgX@~dIrlNwJ;5;jecv<$Pv_X@oO_zijX?Bo)s$eEezU}W zFayKP&G&Mq0i65hbpA4^3Ul2;&T$kg2rP@pEU--CbI!R>Oe- z@KWS+o|p~@6bH#uM(|7*9>9qbzv`DVNP|`=1Fcpr=A>)WWVsu@y21rbmIxOns{+%q ze!uEPWUH!BxNxqxj}+-Vt%6n6_V!uo?U;^g8u=l(QG)YRP3*%M{8I+6o=xsH z?DY#dOD!{R-EQo)UTD2ORBgf&64 zO30?&NJra3Q41gtBL;0DnYtO^}CUicu_h^gMk4cj3i#HbR8De2+_R~Bon~^MP2sT zZH}9%>o*Skx#6Q#*}LyrLpk;ffbK1?e4&yHw6^0LwmoXJP*_+f6zE$fE>+`Bq+WH<=x;9$<|9_riqUg8c+$%JJk$On7kkzlYXiR zfi3y-!7ZCprlo4$FRA7YlOvrU{%_JW^4LC8ps;fL)2Eq`-%v$C-ebz7U=n0i0A}_z z)e22xb>t1Q>lNeKfo`>e5f(jHHsNF=Y~=H<=)b$yQ}v9Z$YV;VdIp$E$CMyC-pcc& zn;u1llwj=(6)`i-)^qGS$fy7oKCAt$<}r@yS*pmqh!=XhMy4oqS5bE1SKZ11_j0tn ziwcsmMqmKWD&Nb1HANEWuBz@nKdLM1ialuNB)xvG--W(tPSCS&PSW3oenhAsDAX!y zSg4y;O!-#qzA`Zc-*agdj}7^cq!8n?*;z3Tr9YAz_7hsC`+C5(i(-fg!J!E4Kavf3 z4O;ienrz6w3%cvPvzYk~6m1*iHBmPVU0joSai3!TL-_rr~zq~#2C&TaOKYXFlc;ST?zU={D zQIz|rVbJ@&jeI-z?fi2mP4nb$pZu0Z^gh&j^tW13SZSVwSrNNM0@)V&P5Et3$vKxM4mQM z6?~7>TnBE|8BrfuQW;a1?$kBP^jpDkYdfks%oHfag3QqR`x(EjV33vauu<^c&GPyB z=?$Xl>_mw&MoWhn(^ax@x}MLo@t$CZGB|E|g&2jm;SLz}ldyrZzsW4i=|Pv20P;2> zv9=`CI(xlgjm+o>GQdEM@@#6#CEV~r3^gaECaOZhC=q@)=wbC#SWLYuxRqfE1a`5i zJ)<-q>jr_~of|nbyZ}kIdf?$4h4@YS;Z3X|Bm^0X=2U{OcpVHt64O^G*7}@?=rRJIY6VletrVEz>z+3qb&qR5XU!FFxOg zncsI31p;59AQcOZ4A)(>iOVhkeo*I{Oph&P;G|G&aFU^l(9qadpzbvoRnOuoVUyW5 z8#7t4XSO1ao?F&cA!F$JJEpn2JL_1?dJz9wf8ubY2Y_t7zQBYFTmO{teeK(^Gb z#nfKivH|2%*@Pcjig9;!Lh-rlnX1~pu`pbBVo z|82jd*l0U;gP2W9!JB=A&Y}m=>+>6XizK}gLBy)+zHgxqcD}G@W28ck z*=E9THc1cy{#a;b)bZ2|U{8EvyAF|o#WmG7O@~tT8WJ7lo}F0B}%Idf&}UQ z-D@psGadp=5gl0stU}=hC@^s#6@{ETI={HW$M*Ct_72u_+YMoTO!n3 z^Jj#BCPO}}7_+@yCyoeMGf>+yzDp8Vv}R6kjlnP6U&gOIzo$_XrM~)G_-gbldOw zHr(!dsR;PA_d;@*&MIQaWD-9G6P z5)@+bgN9yjj7z|VywxRW*No1D%ii_=4<02XVIWBaB-<&7q6;~_kdFcQ($e+U$1#(I zoV<9J379d<)O8G?=!T))>n}u0%S+4QqMQ?Cr5Rs;{n8RwagLSWuNeksAZWT}G6jPm zKPSqXG5?>yb|{F#mTFC`hk)O7(X%mRib0n7iZ(P%I+moLW~KWk`KF2_|><%;n$8-t&e zu^?dvmcp>0>n4CKnX)7cSi%gzR2UX?%>uZmZrc(m7McWOF_fu`1(6^mB6Qi$9m<8i zb4V(wM`D1&;zWc@Kxc3XeK!)sOQ~6lBl89_N)0x~Epb>1l$h+w(Ex;CM;(R$&0J_6 zb>+D$m6g=Qt|?dCM3194qc5Z1K?uAgj<`?@a0yZ7m;V0|HAxb=lX?#deh`jWup*4a zMFyvE2>}lFBeKH*%}n_t$r(jMa!^8@y zh)$sE;uO9aM8hOj-9u()xJ%zbr}BfSrx31*0J6?lpP@``#?kQTm7low1Jg!_QVlfv z8iJ#fLG2B1_8)O8cY%sn`#c-YIc+>1n|rYKO3p$}a>CIfa>?k16e> z&|;kd=S$BU?H_~$je$!>%5Mt(3)FsjjEL%!SUSsJ9D)#9yJ#9dWMcs zQHYjg6*A8JrsoHOft4CFwJ5J#uQReFMKCVex+TXlg1wR`zRDgMISHQ<56x#bX^e^X zO6#8Y?eX?Z8m+A|YNJEwCTvBQEmV}39!WZh|0uczxfq$DKOn!5A9}ykND2Z8AGQrg z>C2WB@dXu+d86b zJp(8lPiLg}$P}067ia>DNQ^wEKj(F2* z=M~5(F9ayy#QuDC#{rCOo5FG?pnq&WX>*D0tuhS83pD+4i?$Myg|5~`&&V|H7PgXZ z=eZimYexizB^DHU1wd*0htm}jdGXrZf0|+KZ*IFLnRWfEG`#Wq$QID=cxW9HET)|i z_y$@jtj4W>+_eP0N(}Ermm@7SS$P!y!wbeI0j{iZEE0+CYFv*1k?W_L#R56~e1$X(2XB3?Av9yTIP5uW1)X0+|hKo-;U=u#j)TG(adYh}+GERs<-eSYQeQfOvrbpx9mOZ+5bV*1Hl+38mN%I6`q^2U<_k z!)m7W>Acac)I@NvR2L!wQg-RRPjj$Gd%-oE%z zvtF&gx_X;u07I*j@&nBx?G|Hct2gIuo*^kMjOX3FTQs9qCvWZ2@nVM@ekU0j)9B zA+RK;K&N_Ex_FuvE5jDKb(b$3lJg57>bZ|0bB)C)>6SS5JG?e zAOZ{k8^eHLz1rJFL{&>tU_uCBu;3ON4_l8}nckQe3zLhRr8;V7O4pelMdN%-A|{MS z#c3)r!TMkI(KwHP)ooaZVEkWW2Ti7wmJ}eS4Ch5=ANh|*20r}bgD4Fr5CuAyA<5{1 ztQA}B;Se#g3W8{;qU0@AE1gxUa*m=DpW_xEtN61zD4ZyF(66F#QlA0 z0nJ$^5+petJn*OY>VfwDR9AThx@t{FU_hy%^c{)j5VBLzg<~0zcPBZWY#Y}y#@dWEEjuffa{qgyT(T*(OXbE_>#ET>1owM={cTSK2nC<$ z_iy_|fKc!R41oF`C+Gt^>b`amhC%y2<+w_rAh4Mb%oa4pn08?&bXyj(s?U52Eyy{1 z=uyi8Um24Dz6ik0q9|a}72v3|XiO*5n0aS91t}oo>yoc^XD>a7#2t^_Bmr@E>L~Bz9Wkb*3x)K<=uC;1DDhn53MPaf_=X_u z_@3hc($e>oMqoQ$;An(hKlG&F!Zn^t2^>Lsery{rxkKQzq>Gb59MRH+lH}o;Ga;9y z3nd!G!O23GQY`LBJY$c~r|`kRV^nJ2bqxZ+eb06%(aH~82f%RyUui-e+w-{qWL($R zk}@x_ELo)v_uz>)M-(QK3nDJ1T{bb%CX$VcH)= zaTL@EBk72)Ps?c1gYI}}#305ljE=681DHE-LDN=Humx?u8!mnnV?tP+fCA1z0jV=W zaEwTou`WSteAQP7p!IqkP@#0ibp;k&F4d|w;2M<`1{AGR=?aw3X1Crto8?HjlCC2P ztRiU*gI%pHNiMK(-HKKPf_i-&0jV%TaEwUz(Qd^P86yOTh(Lt{@cI8G5Me@Ch7m`M zA&&4`{{`PigR2_Ly?ckqh_u4tcf-2m;0etVk9$ZOTprP+*gM- z%-go)N9Tt)d(7U2jlsrX!_L5myG1unqTJ0Zpe)E!k0c84bLN9~&Wnv4dLM$|_Qd)6RYL_W-xo#q7 zT*vrBWPouX4`3+4Ky8E(5&_1601aS%ThOSfxl3r-rm0gUL=w}nf01||Kt?D<@!&P_ z6)u&!F~SIAoB{Z5OetlRiVtj|&UjL3id+Ih$i;v$5Q7j>mk4>GKnP(&7SNNr7Tyw# zO3GP%fq`GCQbq_YOzRB3Wf3c}&#QNR*1J`v1=rT)GVvg$tmy2(WZDTklrL4R!%NVC zwQP)OGJS6Vdg)O&BfyCEv_x?G{y*$JIR3x?_y7Li|5YlmVwnFQO6UIv60lMT#tx?L z3dGM?NeQ*n zFy7;-7oP_>AA2d^oB!y}b)UKpcHWwbJ%si|`c?-!F7?;%q!eMtr4e>q8a1fv;E1{o zjuduWYEx=c*TFV`ZCMsBx6B7Pvi{Nf4`9-**7+7?<-4hf_hb1RR3yQ`bd+x4#8Ssh z1@(odlax=U6TXGEAsQva5rk;!0qf?L0nfM4kVQbD2mWP+-L}ec618q*!St4HF_{k2 zgx}t4$~c>Dp}gpi$*xl~4`9{1ro+K>w1qb45#SWuh@&(y=5e$|CI-)$+L-pol2a0E zhr$-|mOk|<=u}zmmLDnAmsGc$8-a@Jd2R(T0xFjmma-tIV8(^!^kc9;08s8mvFic2 zUKqJn@3<}igt!vwOtyw`f>08XMNxdO0^CI!CI}^%tYv4EP&^IbE{h0vqtJ5!JU5P9 zp;pg336yKW8L9?Bw%lHRYF7jRD*KfxKve_i(-U6?__`2_!UhBgVE}L|1Wy7Dw93*W{SCWi5Br1$_2Fgqw0XZ!a!38e!D5@@*9`Qie*Y$YQ@}x6@iFTzGO{RpZ~s_;##Qw4PYe>?ic;Q@7R<;Mxd!*8@=ZR%7OSY>h4MNuLzw$k|^QLRUy zrK{vE=dseANkbj_vq1T0M93YicBGI(FOa%oE*{JRL>9e28|Ft(x5bW|?-?mSfG|cM zuzt=0$ljtIN594PoiN#wI;vBm#O_Pc8b!RWn&As`wV9O0c?kf(OB^HRozLL_{5d~y zP@MJ?mStIe1>|SV{cpD}TCcI*Zv8jwFRgzC2_?Itko7JkkpJUu?80cln(1`)d+Z09 z9F6(<8WjkBm&7b|y~isxj}CdNTEMmh$UwoK%~@p>k9sOO`-7m$=*_{rhwH^_6#nDC ze}V zXZbR-MQkE*YDN@+?*7Z$&$9g~L6?(s-;8dxo*jD$gp*P0Z=oxjZe5Bfgv+3wI=Ald z0Y)5y{Cee{77Oq3P!gUjzV{aRW4J76rPW#@gpf6W`uu}+fHh1AU23%| zRM@SFb@~wGv_M<*W@eC-%L&Z>i&9?MHHXG6d)FN{5L31|zc+Wp+Ldw@VT_y8)p}!P z+QbOsYPr&8bE|8~+^OW^iCch@)5jWN9EXi#@NbOSQLUaKl+|mI{eiazode?-&|))W zUOUKP+xh}9jRz>Mt0sCt5#>GZghR5X5Y44){55uqjd6Rt1zpb4DdX)e9QWg)56wi~ zU2Qn^4<9Q2VDsJUgN;FMj1ibU@e?hOF7|*0n!2(x1BW?*xPyCyr~qs#AigVB+Q9w32JI3a`?t zIHJH&hOfPbBU*c(R3M5C2cZ&j2AU?Dw&VM@YG4fq5mQ>~M!-~DttGMTMrY-9s8(e= z(5^UDf*=4JYAABhLs^l1Jbc<+k|EOE^_2NO% zH#K|!JuTr1x@*uo8e3sO0=BfnZlrAlT*-o6~8uLMvYqVr}iBjeTwN`{6E;R2Nd9F^i!jutmOpT#_wPGADC@E@- z={qN`kO)A?sOchrb@@^QFj(mY%6_I)=9gDJNFy$5g#g*oMVLBZJ08xhoIaq>I3P*^ zVFbugh7yM}hL(FJ8-P*f`=N0|$BS|@=n}Y6s#juwxKb}wFaq!XUMcdN5R3_Z9~%H0 zv3D$E+#%Fx7a_z{btlez1fFAqL+>o6@5Gfh0;F^~ZoFaQ)uk*s85FVhma5v7yM4@) zw3v=Nd8cR*Pon+d`or5D_X0b_hNn_saS){^w}D)#Okf85Y)9(8-5 z+`=IjSlpZH(7bk)D@*FuenCs}jMiu5um3pe_D4&m`hPHTzhV3Tr)o-%I`WK^XQcDr zT_tM+f;+9^Ov2B(6$;9LVDr;rrBTo{nNFAm(AahJX8k)4Z=m6$f7IeG%5ijm|LCTF zfbqzPk5Ybd$7>~qOL;9j5%uGdJ1g}SHJ8P%%Xs)p_I&$;QjopaUuY{A_8P0$)|TwX zgb^dMyC}WOz18pfSb1ZbG({SQBhp5v5S0Hn`SMixzH`n&ptR>Xo0al%DGcqt%XwvT zS0n#oZ@=qJi}Q zUmT)pD%gY*F~&?`M=9zrA)t-IWNM`=mgCLpIw9bCzi_DwOxeV+rZ4V3N;$X1;|{1> zVz3?e(<|jl`$pXbdRNu{HuVXO5dw4OW zsc-J-9&%a^mT-{>t>s}OqdA#b?X81}NikK9%4K9w;! z&3d{Msyw=7r5!rxGNiD@C&VWm{)Qe3QzsZ0ta+30;@IX7GHd>xkbsZV`z%2760|>XKV!S{Tpz-J z!2C%WAc?Z!2F`N-WfzB|xu|4>oyp6jk0^9fpw399WkQie3}#>)qnQhas~TZP@Q=(q zE*y;X>X2Q~tM+ot7;YkZiUA@cYy%~1mylgX3D|f<5U^7eHIKLp9SW%91Oa!$c4+W8 zH~w-;XA~4rMuwPP#|XwPgjyIAb{)k-!d9ryEKAtCGkO}1MrX6`skLqGT31`AV(M`Z zKI);Ir=#iUZ6;6O+wUFez@`(c#D8U6DAH-(13uz;I(1=GG+~;{A4_2#__bxopUQq+j<|Jb; zc~E=BZ`LU1be3ZP(QJND@VqPbjB-wEzs|XrY2tZAXWsNe__`3!DRo}_!$R7=KYVeg z^qe^Xol$zq1Wyz_-#tD5{}2S#CjxVd((DyN)R3yx6sk>?EKANnbzsBHW@@cidm}r= zMenm7upY9WXT8v}(otqX`*q$XwEULuZ!cp$)(jxtJ|%D)ap9ISk|3lTt|Cv1bTln; zp7K#K&C_X-OaN!e(}Iuo+cdasM(OMMP+!xDt$dM}iT^DdfcUTOygH zV-U_hE$owW-YWD$MYlF@wm;jSor|wvV>GBY=ksQLfUr$VBnQNG7g~>anYwOdSX5Y; zXipm;(mDdLuYRgpBC02}IohZJTea%}99eI*-e!HsvOvOb;uw<}N_SdYf%pt4OfIFk zh`eY)!Boa?H`RCQp}buyEvAZ`Em!_jmyO;;e^Mq?UpI5GI5nTx4qjpkz@>W28jB;hQ@zCJ2JHtiXs7 z(!w>4AYAWelncS7Ew~wmDZ=T_=*|24r~9X$vEEWDz2z;X(p%u?{6Q7tK>mWq5u#jC zOflW0q~gepg^c{N5W`iuO@jp0u$;HMQ4&x)zY6eOZjdlSFo1L_go-}Jln^BdLfl(; zWHz(FsBvxf6MJiuCUrrM{-{S{*||M=kSMI4`@TB#)?*9m*iDe( zmfF)NWDgSTZ_lXr(?f{;peDA3i6+)*2}V;myxd3;wH$tPC0dq4@NlT^c+5vds8rHN z=1ts$D^+An0xg>&ls%BfCzvC)*pyDb_kY`CiSS!-+zNQYyj9;B_@3tv9Dj8mR%6$- zGQuOsz_d&gV?N-MCo%ZPV!I}s$+g#Bd+o%LRoW^NZm4;cb)$8Mmv&cdqHRqY zDhEu@0%8lgv;-jV5|Zbeb%z4%$qE#(KV`6V0#!|UxKm9{B^kTx?YQtt!-;d#O%CDa zkw>N%tyK-#vIhE`g`qRf%antb9U-;%c6nD)YS1rIh+Hde1^2w%ZL2jSgLZwMK~xiejfqXSC{Is=)EvZ?^8gC7oc^ z{eX~AAs+gvN8jG)e^%+XUtdQE09L7V?<~?3suY@xr?veE6cE3|SjQ)zAlk1a4dBTY~IhUb|s66mJmWpiwy+1 zzt(6V*S~c-LG!(K;!cNpr(EG`%tnqKQv^S&6f8~}WvJ%1b=rD9bTF|HJENVq`B-d+ z(s0@om>@<$s8x`Nbu63iim_dR%$4qiv(1&Sk- zTDJ%0wr#pTxUMZKAhEmeHk6Oe#Ih*|wnHLfON2dk95K*pEh)FOWFcxrL=`a{h#c>H*V9q&bq^T(0Z|T z;3W(Y$VCNaGLBMib9S-}pXw|}D|aDhA|enx_T+Rj9ZN1XXE>Tp#@(C?k~O!@qb3YT zMS98+M!qk0ib+U=>2bXiNH*i*w8$t4VsmuhG#L%XM%;`QMnBC(3n(SWxxH@SlK-Qt zd$V-Lg8wu^8h;hI5Ni%UPAG-JM;!nL@QVt$f5HHqkGe?xBEYwPo?(p7QX$wa1QQ8g zx|s<<&l2-<5)=BLZy|)rw@XUMEkfM=2}vl~qmoFvM<|hSRmSX}R0!^;LelkDF@)#^ zBde4Wb@-Du%cvCeen9F_5lXAlT%ZWCSN$kNW`n_uX!l-V8wQ20CbQQ^gwl5l{Pasiynw<`5*!R2KkE=w*fY+2`i^|hE_)I-@8Ok%V?@BR`j1SZqg zB;_3dc$weyyYL%n`pW`9d{c;T3IOrTpLtRUAwE(9Ap~3&LO|&wLJ09Bd{OItDkZ&0 z$VDn8-9Ox?@&}R~`2$J!Ew~iIg@OfGLYTS{g_{k4`+E8c z;zdd|5i0)~vkY;A0Jl;@>9i+(ADE;hw7I_#nP4+9j>xRci|M6DI;y0ZlfKT4t_`T`-A=# z@FI#$G8zsh&IluV-6T){L12GFAy7-J0uy~H^LmXfeUtt?6<0$igVrNu$3U~$YtQDF zC~+AAY6yjQ8lbD|a0oq=_-y`!<9gc zq)4vvN~LzmGB?#P(Mj-F14Oc*Fe!K)qix*lJEmO3w z)@PPAjVhoaRy3>9uVj%X$_O%M^T9;`(V@XeT4N7oRXN6CqU`&L3aj+38!r1kAPlmq zobysigoy)Lvu|t3IoQ3vw^tW@$x&4a7~LrZ{jJsa%bXi$g%%`)DAl=+UK~*>cNdoc z4F@-#hrJ}*Uy!|e4)R>+TukUyfcXEc(J)PR zf!9|hnQqWS#hnz7rwO1i5;I;eO^#2fD+;KnY7bI1AkoT{ZcUHm^ndnJ)T+rF{US=A z909EMA3ks^0CIzC1Oishl$4}NT}dcWwR*j#C?O3QamIKg8}onVfaKMI2Y_7GBvPuZ z1jhhqyq5s+h*I)eL*`$TN)eAhvKLc8#9TYvOOQ|dK~d{o0P zYFC>BfTPx!RH7C#g4LPOd0a{LI=(DYo$&zx{4;%_BwLpb065_pg$WC5Z>2OrC|O!i z2(xt^o?!^91+B}ErZm*+KaJuV+PIN-Fb}Ih4Q6(jKgqC`_wO}8#@VZD zppL(B2PVE<$UYUa6s0eF{t~QmkKa%(mY(NzuB#tYICETXgXmPial(}(3X!ww54hk} zST4|@R0v8Nsle+DVv5MtetZESEn(E2$!efI33cP^y=T*63*y^#Gq5@4OlNtsnZsl6 zHeMB+i`8-F0^B&m9;kBMKnAb0Oc(KvmJLY=26rti&OU34@>_I87KZL-1x3RWXLw5I1G8Vool$ zTFH9P^kzHO-ElQ&F#*p9d0JQ^EQ;L{?L)aK-=3Ltz60L{QjUV8aPPyL?_%uVa@wM% z%yX*yc#l!7ZCf^}5Y!y^Z$y;}L7URH_2c_WOzk112_-=un1;VsF#mfG5h(yv&R9e1 z24lGb5D;!6POt={y`&?zMwZnH8%lKDQXCZoyuA%d<`oLcev+YTZ(uTo53l7#x+g&P zYK>rPd2K;?!uLxVHgJne#t47@n!ljDE7f-Vhx47m=nMA(ZcC*{+*nRG_Lh{4|Lt94Pv>oD2@m!JAVSdm%G}I}8Ba<$gWJ}6$n{U|v&*~fk;3_+&h+Wot@PnE zedTU%qy2ecz&M~qtw-<;;ks@v7@UXe3XJ=+Qsbq6W(wDJ$7>wk1b5$aE7am|vsjqv zCr@+F0b>#SdAw-;yXUnkv6wtW=V@EJ)=gHvqm8Bxyz>T>WyK)7Hxztpna@wnAdIFxd6&l^fS=5bPK__Zd1kKKxj zF&|r?bh$!Yg!UfVTwrluF^b9}j%vi_Jm1>dzI0}2qVunF?Cm#{^E)bz!+3dxXs+5M zFS6SYAd3F(#~E9G&>0Pm-X7fjQy~&aNPSP$^Q5%-P_@6;dV%$F>mZ*OnlNd?Fax=O zYYw1u$g9Y7%>-pVoX5~x1(r)xoHHu2u6iw1;D}Yf8VKhK!EOz2*6GxgVEM(|G4LMW z_c6|V*VLcgjtySyIM5^oMhIlhz#vp@TdD?r{pvPvW~6Mi+l|TV4s;yyM4-v!HeSxM zMx%@|G3NSr!#nq;)KGG+#BH={AM9<$_}nwb_nk2HxC+DaQi=pe3AEB0V2z;EF>1?} zYQ<+vX+}Tw_Fh|0@qH8OzD0E2GKV?8lgQt97?!b;cu* zFEx%09lslf;l#E>RB%8o z?m}mR3R)_)$w-fjb?7h0@#=6R7QSQ0T_xHWYxt zB0fw^!{KG7R>UJ_?@-A{pcU=#%5rNZHV)|j^K7PHJ;LakC$>jKAj|qI(-o#%SsuH? zFZor&d2l8I$HW29S+Nc_u3q4J{VanvbsPCg&{fU&nxYH>kn*pwq@lv6xll--n?o|Z zcfg?=^>0qYz{>jis^wIq%`kjS8Q#WW<@hX#Je^IqU0LUu&A+U4(gRVHeqclgmR< z%8QyX?Icm$Q6tTHgzO4lJ!3nGuc@AP%o0Xbg|DD%iQa{(pTRI2S+yIL_gLEr{1J-nhw&}Ir*RxT+a z;_#+ZytGnx=f81cJ3)*UvO^p=HsM52VL`%O1Qle+nF0{ac#e^>?{xwRXdAhich$J; zgPmI4#?&}K+|lSdu)^P^>W$Ix1QcmK2IeP-H|so<_zYr%1I1`Bl!!_<2nvg-ErRSXV-BQFBL5;Yd5^+d*00+=;Jq7b&_tJp2ZGYC#yym%@ArK{8P z=ciSzj!tciPM;oaoO;HBQmK9VInO!WradC3ul8v>=m2yATN=l$B2;x9BNxHWhHn=Z zJJqV61LS_S+S&h$@Lc_Gx8)r72I~SA$(G4zIO4-9)dGMP*nFKQadOxeA3?6N_sDQ} z$blh-O*wpc&)D-jZh~=>a~|GR8S*#wtP@7fR+HLksS(E0JH?Wfw)%e1Z>Qpb#SCGiJGVNjF{a7k-V)|P!OXdcx|WcRgMwU~wd2g@@q36%jAX}9DS9X5EIR0wrJ9Z=}1J?ycd2BmB3XE6yRuaUvK3L8Y*thh zsmf*|X|zS4x>af488VsNK}lvy>d&uAbulCKj;~|-rWA$>6C$VQb6V&GRHR-3b7HA(RLfTx5~Y}(5Jo)KbO9x)J6)vtqv|8y zoSsbK>ussM_H%^m`hOEBAssF`2X-5&T?56j4XV|p12ve7Vkqf?%36-pUUM8AbvHJK zk6m|dH82kS*}PgK8;{Qfa(Vi;AZ5rLaIQkMw1{nrZN~t*8M>&bgLqy$`Z4Q`)=yf8 z{VCqC*+L@Isl-N-+?%3YnYjJDRX&w+33i=&gxhbR6sANOo!o}WRGho6bO(*{cpKD6 zqR$C=1CMsOj^DA=C?W@dExYiM$n!-15g&cXUn*9czP2G*iOW0ro|Hyl%%n_}?I^}M z0_NVFGv(MSm6BmxBB7Np zw>xbbn^1oO&?s%&+Fz@hszmFLdLrf6PwxT_gKU3)|A^_TK5F6FaR%jbXT9Q)QaLyE zbJ^nXYdaCkv1(RsZCcmFRbr!C@M-UGX*8v$%_+|YROQJYOjD4jV3ecjVcS)7wS61L zjI%g(dk>VSlj&sq^h0*(>TbEd)Xd!5?y(qL2y^-f-4D9XJ5L;I^{&YyO8+)n^6hj% z=?_Wav>U$9{^>RCZ~0oorA9Qo#)ddqxaJ>Wp)(Oeh)HJwHYxx5#eIGYBx$=EXNAMH z!Dk#H|5G_%SPCNJz4MoRc)p1gyjmS@3pt9CY9_>X2!4nAt2 zTAhLq5D}@K9!@)W=v$%;8tjhzj=V$m0C==!I$ixgRlrleCyaBJfa`HO|2yRxwXF0d z3U1B_gc(Ebh_R827(-@*u?>UR{AcIyz|i9i@hW3gqKG{8(&4L)5uU$Kc%K;*mYaS{!{kqPbVt;B?UkUWs-FN~K%l>!Q3Sj(n0JV?zMp{`>ujcN-~m1t1y|NE zDb^TU7CcJjEmQC}*b>Mk2%NaO405o{q3bSUq0Ja~4w{_hte_8Q^gHS?4z=3N^JHPU zNstjN!CM16{Z+DUB?k`WQj|UxR?5-2F#Kq_*=$DcKnXejFIQ=Ozm&HEh!FJ~03io% z+-x>W9}UBEVWk{>tRw^{&S0x^=D&26l=o}>&BA-AY+1j^?~3&I@J5#gm^uMOAmsa3 z?dN@eSAnPvS|?P5Ct-MYXG0Wsi@{sc{-FKy=)rK*=k2&itftgXxp+KlW89CE(KML8 z>EYM;d3(^#`=iPDH|U*G*%8Ldsx;cV@jQRNBP$5NHCons^fdDzK%vcPmQj%6%t7VeX7rymYOrvp zD1L>p%LIzMztO~3YUjLRGu^;)r8X-8IyKayDwQp3GXnp``(rzR%6Vg}bQEWSC7k@I~mCC|WwF(Q$?}tVQ{m@LA z*QU-zYsb3HddSLw5JW8)!%F|uG(F^WvZ2K%)b2nPYnAZ^u{^oJ{>p!`Ti>zcy0d1# zRjHV?3s4?_eQS1@A8|w}%9+7=JRZvr=dJRZd?ko()smG!Xi_(Ox3;7SFIHOo?%C6X zyszSj_f`Cg?=>C&=)KCqcrjwxNCJ_JJv$2Pu9z`-} zS6Z(1Rc68)%i5oO#5V%O|J1JEGFp}&XV5O5fd%D1=4Wiib&@v1ny&Mo)4wud-&Z%5 z_fmuagO^zQmUY&8nf1OqZX0H&5^Xa%Mmg#b|vUVTve#*6fUQ{%f{dM5zUMfKcf9;i7bx zjgJ!71^W!RyFT#wg@0K3`o6h;_%(zvQY8$4e1b5JV~i2;5dbc!=Pf>IgkN^=>w`m2 zQ?$B@sO?6!CZ{C~E8`r=b(S@|>t0vXB)D!8y7w}rz4;MUAmjFqKZS8bFvebjk>5nW z*a#;c#+XD)6aL2Vl&C)*d!KdDdXe=?>y6fCO;01M(2IfK0ep?rZ$oiV#riVF%_BUV zl$l7Rt61 zowa%7XLIu)7z@8k7rau98=PUyTQ&QHpVoNQF)i0ld8_LDU2MmZTgVWCU9;<2yRF^U z*1;qnh95V#Ka=V*&F{hid?RXfN~bId0-#DSUsQD)G9oFDJ~zvuJF`%KaK=SoZW;{G zbbpAKRU6;-`@qw;Y;8K=?HX)vZSL)DZW?#yU}tM{FOh5Ioh_I@s@M8gb0y3qonAte z2}X|GJegul|3aLI$YoMNp7+mQf_7Gx^)R#|tmW}V!g_gS2PI!7h`i+pC0gnYdXi&y zR+hC+(EQ55FPSGOBd4Dz`>0GhSlBQ)nA($zk?No$S(x(%lap(6YV6SbxLsW~Bi;b~ z&3Ccj@-w|^6>S|mJ6-S9o=XT-jT>nbtU3P!89c1lB7390_uyMMHWZ=cxwYQ<^z5-M zRITwjr~F2m zjKVXu>^)+l7s2=*5ND0!2#0!|M*VTu5_hHOYxAX_}j_HIXVBg(^N~59hMRR->**LHy@y~zcQYf+V<=XnrZ6W?R&@|Y}l$P zlb9z+V16*mS+vw{86|1bmccE1)WGMZ^%yzW8K}ZJGlk->-8=V}#BnE-Ss;iUD5&%F z(0IP%5X|dA%VtdbAufudENK(oMF2?Cg*BxP1t$8s4Js$cz!7jR9H-^RsNq*Ka9OF; zYNn}ZLOAikuOGAS;x`C_Y2HjIVLG_>f|cd#PoF=3`ugRSsx2r8 z8GY2k#+tkaBMV3q@TPZ-aVrC4!Q0;uSFyeQhoFZO^GPyd$Os{3i=Hy^FRTk7R0~q`8;x?^@#Ne{0d-+PqfAz{p4hEj7)K2sBSn=Ub1W%S!iwTnqk%JACmsZ6*wfwu44o^q8O8MnP3bw#(+r8M&!p4S!d99 zFF!jXNBh|&YY5D#59#8M{2@YDhX75|nb+{x(?INN@gpTbpZ5djD32C5zTP`7c8I#oS z2-4J!SLMTDUgfYo#&f+!qchCAW1BHVr{_;1C;>N#{O190O=OOiRo;RUC7hxJfn&0! zngC7vp0<%@5JEFue5LBXGSOv3--tdv%fbnuhjKFB~=87vlzg&;O? z$P2w{M3WL5yJ~Sh1x1S!(N(ARDMzDjY;meIKO*B~c^~wbW*`%J({#IIA`lL$??G`- zLKv*%Cw&x}aeR!*0#zi~*KTlv!E(vm*svUyNGuQQhL27k86541`=4AgmzFMT|NZ>H zWIitqP&?DahIM26x7e#gF7#_8ZTe1d?FVI+q24>L^Rgo&N%QjnH(c-0UhKc@%AWl1 z$03{_T;8etjeg9gXO*l4Z0vd*r7g3@bB9d}Z6#@|7-~b>)6rzSQM6o2&HP+1HJRoX zg=bUI3K5q6R+?2%_LJMP-@$amt*%h z4eKk*EA@9fuA9s+CawYJ-OvXJIO5h3s)wM@L7cwh^qr?lBFU8NUgddL;}MVR&Ohx& ziR*%KlgRxvER^qL%tUG;ebz+Fr&h!PT>}#Px-yDeGOrtes)g}BYX#U1X!ZeY`Th%g zZc%R@7&Cu}Dq9(jNMm|)8b`sUdGnrve$SW}_I#rL1|0bQ??=Xgg9A8DhWQ<{3kTMQ z^|19}D=+YSE8=VKrGj1Y@f|;_V1n@P748TT+v9sZR`5zYODL6_^U;s;{ED!#D|-2X zNIqHeJ9zXFcrpgW)UHp^te$-UIS4}}5zHDC|I#_FBjnj6l>;#I&@QCYeov;Mnt89X z-?!qD@;tM!G#V`}7|&A*Bc~IkM`^TR5LR~|uaxX8>b`4z4IqZE-x&%3-M2l@w(U{{ zF8ZZ+?v_DVRT_6fW~ z(NY<7=2`yZ^PJ@-kB64Vmw&SSh!MIRkr3Y111tA_3nc2 zXU(OhwbkXNX6E}>4(Ct7U1pxHOWzh)o9pWhhOqi{R`2=do^==UYSp-|saEra?(CU> zR3RN1qZu4!L8*5!3);$I`#J`Z^!-$m9Y$FpxK(fR=`4;Ww3@lAuaL9#@!>yJcRDE! z8K6!2-Ev$ZY!~P#XsWBzZf>k$bbS5)CwZIyB1Y@TZ#Oq0K!h)EZgpF=+LR%LHz$oK zYK}KCLTp;AwYpoID~uqB#*Ma*))AJ-5u#Qb3~DtY93-!Xv{Xs~(o!jfV+u8N7(0d~ zaa-|6Ry&xfC`ytjQVe%jenK~p;;J1d%s6ofN2qsdu|@pG21bl@;n+^U?_rKW)`ChU zs7XK^d;R{-G3XM8@J7QYt;JJ41ahI4>kkl4!z$*(2Wo5(t zzO6&em=3k=|7fw61hy(KEUaL#uZ2_9 zm!-X2#zk2L%sUFmZYxl`jY@SLO(wT-850F*E-`OGi%UBS=HT`!hbBh6^)BA(xgpF)p(z(1Ta0u#OPHa@C@gxR?w-~@hi zD69}ToJ;-O?{9s|TGSN(sLikZBP`^={f)|!DWSP;jjiK(OA8BZ0RI%K`2ejg=$InF z!fAr7DnMizqbE?<1TOxH8!<`VczN(F%46ire?FzmxaCp_?#ROkEw9X0I@S5V8LA`W zMUp%5`E^IF3%9<5`3Z^69&hY4pTE=CX*{&k*lECVf@0>%KX%KdQc9WmqqLnbvDwNp zO8qZCp#H6r>>wgejC;yiclmbYxv}wX>xSL%>TcK#PjyqkY*6XeedLYB39}6`}Sn4Ed6X58o=~+Cu!-nbdQ%J;45mRnn#(OOEqhy~z$Y*t!T?6IQsM`t|4ck$ z=t?H`c_uS&obESWNONt<#*F3u>|70k8!yOQxAbn#ud7IOUdQ>nORkH!D(Pnib4EgP zgAbIXjT4u9ac-_fj}|!=;B~|l8JaYWLq-m-1#Z}|3$Vf{woQ*G(@~2wD^ap%X3!{W z!@=D|)?UyH=d`k@obzHvun}5Zj zYOal?W}Ep)heGm#Mcl!7%nb>$!|q8(jKxyRIx z22-bf2$@@O2;LnShv?v!`6$Hr4i64896Gxti-|t_8T<#y5TumP&ze2!X6t#@CUU+$ zK;x@H9Mvos4TfoV+#d*?OmhGBZM|eQYJ&53O>1Jby%A?zN<3^*gS=d9bOO-L<8j7! z&G=(!4G@?I{=oRY*+Fld?b^PN@HZHr|1Q~62l<0O(#m^1rHqW4O+c$_*G94A4VZCRSW z#z}D?ZyK@!rpJFW2@vrWkx>}TNJp7d^tAm9MP68(2QaSnBO@iz#6Fj9xz6DhK-}0!}DIdbuT^)D&?$noNgzJ^=Jo>Ss24#E5LK zVj}_&+k(uG5m;ODIAlC$hIc)`L8DkHC6kECT4-#)mK3QD^gd~vm@Jq|QuA#Smc_^G zgK(aY#06shq3|dx`s_;xL~$cenvFDX#1Wu}MVF7R$VKxCkM>bAXmC40a2P8ZH5w6> zNjb9p(8OTtvxAu6O6q&8UyC6&p>GH2`(psQu8gC_Dhc=Z^+*Y|BT8bWy13|y)o}jL zEhlR4aTn|zz-EHFYW#s|ejB|GzEyfE?^#x)(}~?V02G`;IA0LO5KSEc#|iUMTMCA~ zl|pwnYRs-?#M5c>SzR=OGs~0-!%_WC2 zO115rI^{$e!|SS@rDjL#_?Fe$-Oi1FcgCEr!Y?O$eVr%oTUlMHo^=VOj$>3b!BzsebaGvtXe&mjV)Yj6-7aRf^iGr z%hTem%qWG1G)bEO(MS?HL`s?YY%_$%!ugYMsI@!)bR!4>g0KO1xmq9Dm&AalY&~ba z(t4-$5nq=hdnAbn65^^448XM;R73vcidRfVR2E1;+mP`>Tp>>4Mpx2UDJI)U`(fC< zhT;Z^Gw<_tq9l!KSP2>CrKV7?|7{jfEeV?7WlTT;j-*{tBv4W~fgnV3;$vnAP&>8( z`E?h-jkTZ{lr1^Km@^i5DOYH7dgm`tA-QAwuC4~9IP|JD2t6l^69ki$mGb-sV8=K8 zHLWu>p1Is&xLjdcYCtsvisDETi4`M(GQ<%QTp?IYv4d^KiQ`*!rBzT&6>xnde{6Cl z1Pi=I`|Pn}Z2sGXJGM$)9Yifs2|WiT1k+l5?Li)Y{s#te7nLO-(p+R&);=6TW(&7| zQ@dKNbKLfb@=qV+9?Y|ibZYnG@G)Anj&hvIiZ>!rp}m%tSMpBg=>J(Q~)MEqy82abaI;e+4z{XPNjrhH+cxqtWUTW$jwwD21tCT3E<$@__Vx zfAL>hRt&q>Mi#u=Th776JDw!Tg4b&&Bo0yd@DPuOt9kiCYj_6XOO#T4{B8p2>PCLm zTiHBxjqpyUZ@v*@j4u*G*!^b+-K~f$xlesMvxizNYRPAQ)8@%d+bUaUC|tU-71NyI zH^WYcX$1506|q9W-D5;7&Ci9l@Oav)`|;Z&Iz_}5i0^A^vMG>Svkk0~g;)W$p;e;i z01`{|I;C{%S}in6Vk#sdoZHpFUpBTu2*V6vO2oU=6nZ!PplWkYh!hk{>4vqM{q@6` zp3_9NnhlMDjzBH2g`zvpBZ#7Ax(TsqKU?^g1-LDV@SP5U6=k0IMUB|2_c1p@Vxi33-&I%0Om!p zhjG>?FS!7w{?jTf*NUxiwz;cVIL2t$gz!h}%IPT1C)1Rsh!meo?hqdcfx3Uu|QC73|iSs0(~u1$RR~rXq;0kH)xLa2X9`*+$|@74lXf;?u6ij|AJ<;aq~iu^q4( z+h94ZH>u-6b0+}^a-=^$g8hcqRlLLd8Pj9o2qksjSD=Il=zjArhph4({JMpHICK^tQu>_GYy$i``nvs~YBQTrC^8bHw z_(2z4HbMfgR2H>k^V5q-aGDeBtdGa*4kr9`kX*Tpx~IAA=*3EfgODcw$!;M{dQzJ4 z>S|M9Y`^AR`Zcy~vnXP=ZNEnE^^(`v7>nlW>bT*?JRwRLO~L<1U6s+f!WN40V5kXs z0C_mW6NQq?UV7RhCAd_N*cwPe39`$vbR&kqip$SMMCj*hzX{a^Zri%Bkrd{1ZGjW) zl&aN|g9%@-J=eM8v=I{7g|=tP_ZAEoM-dlSa&1k9f*l{Ds@Cft>W2G<;tRC<+5sG#_R~d)JRaW%;mfP z)0YB436hlTU)PmNyIra124>8rR3=&#Z-YyXw$e*i92V6?Eb{=d5VHh+XbhM__ z{lICeb^!aiId&#Im7xAczKi$vITKZ&+IH^C!YB%}`;68Usv@!qMLm^lRib8@NJHV? zMI-)_xGi9W!|_H+Y4JA{Nm?_An)AJuWed6?qPn|w-`UHH%n0?ZbS6F0Iugy-MY%k!4>XD<9D6PeaM3JS~~6aCNUtJ&re_y z*^%|25{Hbq`xzV4$>^w~%jy8z^u~*|SMV;@FKUELzI1MT8yRkl{qZ5BPWFvaADY<_ zCp+jiedA(%Z(c*~qHPQ}XnXtIQf?5^uj#0>JMXA}8~R0(eLmGBSBOe31XYxj&Qr!V z7#W%|W^xwHK355EvUQrcpzFhC>-@cm1#lGJ6jtWHbM2>6z{t5iRdV-@VM{z`)f|%{ z)U*c*R2QJ;y4ghru1a(XR--o1`gjG!!UiM$%sPsAG|odHdKz;-d`^L3D34!~Vf0X7 zn9s?wz5Ttt{XNA6nzO^%>|jy-U^d&Io8Z;u9NnXk%~A!UlFep@(k#z1`*fhpv(UEs z)(PuY>p^baqWhc#+U92cRGm9KwG{!Ng2|dXYM1O0mg;sX6R(cpYH3 zD^i+|w6#ueIDS^U{HE5Wxv)=;1Ur-zqLJ8O*$< zT=4qO-(*L>wti!RA6>Ko$>Hnc#EoqpxT~x4*N5_@ffSCz#1x@BDy5S0H|UhS7mfvt zRXKm35{|=U;4p6X&};qQL;2imZ%peOh2#0|4Oc5Aco1t5C%ctey9_V3=aN zQZ|Q!{x;lTI)aK3kfmM#H#xG9@`hkZw#*S)PWn+QWG}UJZYi_nb~fQGb(2Q`Hdhja zk~af<7~o6I9M-F&SRb(dQWi%a z6E9<`S=6;CE+2l%8ODz!^yPwCqrHW?HH0WlM&hzGhttV;=;)fT$Ymn&i^>6;VCQKt z-jC@9EB!6>lZ1*}r9b#@puzuE03?4rz*zG<=URj7LP&+6;R$L#^^1r(w&Nl2T`zFx zLHxiP!VJQWlmr0~>HuilL&$fHXB$k7mVzRfKYi~oG$98x?E(TL=7{6Ie`nVq>e{*o zB1Cq(SoC@V6HS7=*{?8GL5RGDeNDOmm|!lFR7yb9h)!J;FaQR$cx;?X0f4D%Fc#^= zzFQym;}_sb8o?}i*GV^vNJk=#JH_eN=QOT7E+rzWi$RAHXT1sC@zt$3o}>k9eL9(9 zyeqFq+SmfH+u;vv+vervM(MSxTkYrQ)2CWK=OiHZT}(*bx^K<%=7+vXjPd=1i8L8v z@7@j2UKb6wObM}1eFP&P@iAm~K&K2%fg>?96fC^o5a8oBvzkfbbq-3_*vCIOO$Qctu@~WLZ-^M$Gb}@zcvr0P=i3_ou^h%1tQ;602Q|!=0FD zE-%jOo5qSqo7V$Dw2#ob7r#4k*AePdMBw_(h^sh7NrDDU6RZiCl=RC$AS6_T#HWlQ zk~XK0B*GX;OL4V~7_+_DOh`8#DIUeDlo^N7wNuxw8MAinsWr+Rla+K7aV1E~g2mXg z8H-C`^|eyG_ApYM6G`#Sz!8>_;dxsnOo@-NPbhYMns@dCII^g93MS?l3(~w8k5ah? z#Ce{GeR(b13V&plIx@zS+QHhA5k0XWA8!;J1y8sM`>k_cZQ9~*jKpBo#oPz@Ua)fQ zrP=e|epj&csyH3tw8Gv2tbQ{Cy%J6Y3@A;vSfF-nnHiv)K+_EDhcZ}rKKcg@pZS}h zC|z)HINSf+Z+CEC&U#5o^E{J2*lm?$R0*eI3QSFIzw?x3&z}FOAQ?9aCRo={-QTz* zoSt8rOLUn*dpi~CC8b-nGU#ZqO1$BPO0zC6h8-uNm8GB^CD}<(F&ApXaeoXiqzkBF zr0>iXnHbPEIk9M+vRaog!YPs3V6~_yx_YPq6&AGP76-H#h10Eb8g~so7w>N&9*+lD z)dWb^ePaUS5`u-K8d0e{uskJcSV-wdAOhe|%3ib$DHU6S2ZyL<^`gs*ATlQsc+WlDh3>TAoei?+*>SA$hjGfcA)HJDAfG5G zH*WFWMXQw_c~lb|SgUkiSSlxv%8T2P%KvxYW41W)PWUT~xnMKOw_KnzhLCW*oux%| zXRTU`y-u3I+_Qd{gRg04(e*FNN0V|XyhJT)=Su-5`q7Ea_vWvNBAWkod@O67c-Oys zMj~Ll6x=ONXH0O6(c;n$+{w9!y&!L|&aWKS%mdnghPRDAtvPxOR$Poej$~0$Z)9IA zg(L+uW6PXSJ%&dNcr~Ft9zyTY=K-T`2P*KfSfVhE z%&mEEeRRWM5EEew$e9V|C_di+@LZ%8b-Ux0w#CB%vDZtKgX)~Qp!I-qYm9)23Ht-k zm<-G)4o0otgd_m~y#IOzUkXgGa_8Dw13|sFem<{jgx#}iYjxb{_0P@UT)uBGXrg9O z+zczJO{jk+?=(?!IJ!UbSKwR3?u+vB@&NY+gPvcrJx{Fmdp$f@TdT|`&R}C>fcu?J z$w{5SXKB0L$AigaB;8dDetJu0ty$T%&WJZqCzI$+9|e>%b(jv&Cn2Obc0a3o8HYc%IIe+E3pevYzs?;FA(Wg83&C)VQji{-!BigZU8M$$a zR@eZ@!|E2ndJ#|vIcVD(U1I={pr<-;p_FrioViza$@3xR2>wr)zmk5rQa@gcBM9n# z;P?UB3M$)>m?N=jYNjl>xIDjYf z704fueIyWI28;2qb$H0h0JmUcI+-3#R#qxyh?C`&*=%JwiJ@FsS($W{)OPN3B>w?( zy;>jYjb3kZ?8NTMDnhF(yC;rKdc8&+;1O+0kq-x}E`ZxzTdm4ZOMIHuNaIwa!HozL zt8v)=q{hLkz_7Pon=?07PP$xNfu17>sz*mhM^|iZIO_pN8tH^soqN8ZJ>c#4B23P% z%x1vG0Q$oJOTBQ++30f?aYdjiUWD_;vS`Xcm@{@amm2+6EityjNZKLm7Qg{6M=G6} ziZ4&sy<-ar5JvspxpTdK6aq+L&tG|av0p!ZOh|8*s%L~dDZxP%Qq8AA4{~VAkk;y5 zx*~;*vD4|a+X%JWosNUCEhu%#`u_ucDVns{I$E$~E?4-T9+ec!JbF`Ga5fYQ)9asL zydBVx!jQE=m*z&;=6&kwhk=iS*ATj{ETi3F0+K4#L5N&Ek;2h6?Znm4}jnrmDJ-hcdATkrwVgA(W+wek4s z*;Q9>Y}D?cARj~?MS5G{acatCjLT(1xd;6O&8~H|wP%rS6q(q#fZ`^=Sm+2Ol0B4W z>%&5 z8ev9qXB(yM4?nd=eZKW~T&0w9x4ErSEiCy@beL~{Ms}W|6b3R-igU^?^z#e)R>rrW zurDUO!760*B{nz}T~z3XoWntKJX~P>ofN{#xiKi<&(m~%SkAIisRa9_EGw^T9YhF} z<4=n{5MbLRU^`~cmx>dCZH!TB-M#-EGSBya*DsZP@0TXV&aZgz>2j8p=Z9&i(Y+kl zPt)s^@&JGm+cu63iLo&tO22;zXoM&;TCaJ9`D-Eb{8GvPUElY9>3d;*MTRHA57}>J zG@1aj(NQ=S7^4$Gqg&)uKF$p-cp)hl4X2sfy_1$ zwXy?t$p)0{B?xR=xKXVpVtfASukJ<0f&OjlJ#d`Bvu&cy*rJwQ2868w)J5uZQv>D# z31gM$y}~rMfq+1M4r_LccHT!YU1Qo&<~qhz1ToD{bAB#xY-$70JKJ&9QwsQc?}i&M z{9oMf`IJ5fb0*={;>Gnf78!~K50U;5?H=~Ah$r#+uv70CmDXlz-gZ6kK4MjsJAz`3oV zF2q`V=;+{JPM;?L&W!c>K3qQECs_VCS(fcvO7qLsQ#2))FU@VxiB;AnLyZ4#5(YR{cGfJ5(o63-ds`;JrcpGmFo ztllv8^J$!*isJ(#KD)*WE9Y#9Ehfm$8VJI}u>U=4;mayp(~&2++j_`)J&aYVY4#9T z9Oh)FEFEnwNeN^2bp=MNI$+9nte$W@&)l9OC?7wc%`z*;m!vLNZ5q#iiu6*v4spx- z@>(t+tQ`hQ&B9vE@4j&VwIBGZHfZtFY354Epv00~Uer25Hyp^;x$-0z?to;kj&2#B zOfmH3T6+kJ(2t!M3&B&i9yY*~JK^%DaeL z%Q#wv<}TsZM&<`gvoOc;&tOM?I@ayYc5E~ZyBzNzXgczYwcLT!I@s(_$2}eW#EG|R z&q??Y_H$17YI?B|dk+B4oaA=(tMu;9^?>y<>&@2t;um3qKbfK$g9V;}4=hlGW9BY5 zUoS>8K_kf|L=iiGj26UiR0&)inAN-^%EocF--yBXm)hm+MAOVKd<6E0Gp}p@y91ECysJ-qe?nn}Z&1?LmiZAp2g0Y+Ld66CIo@Q2u5rk2_Kua!+x1% zSkAv67~b!)riUtD=Hl^okvH6}G`}Rc&=c3Xt<-~Qqn`K(MM^~o`ANNzK3JwExLm&_ z0V#BVMKd)CEX9U#3@1}Doj%R?uq1>D(0NtG9_KgP6C}D$p~b_AGGMkTp?;99({2x% z6wR{Of2_X8;}KQm$|O=r2os1hy^3ra+dWXclY|2NA`d6 z)LNQ9UF9K_#pJ$)=t6^eH=xA2Sh)HT=pOyT&(r#jM9MwealoGPJRRte{O` z8L8O=^}jf&y;TD6g$T*apmLvV84;<|C_2*-IxREKuN3(}<>oz$v_Bs72h$NR!mF*x z_hjR=;34cdGym(=hnTos*P^L$O7Hx6-*E_g(a)-vweDR=NGPrsZd>*z4Hr?=zW?Ep z!N=d;YANtRDX((=30Qo|KK$?l``(Gkt*g!;o``!IXUd;U;r~o>emSw+X8Yd6Q2DWcB`Y(=lpk0oa`g*D;EXT>l4tk2Y^)ItB={q0DjN}Giwwc; zT@-J~GMq7{yttj4JOq^=jZABVDGwSAxMzGn*#rA?V^DdeZuw3$JX9b)LDW*ei@^G( zgB1oF^kHYkCg&zfw}it%payjPz=$Wt10CfP%F3>&wKn&>LnKsW*|s2a)SmmxGk0f= zwH=yMR9ID5czI5aEfXd}aaE&LAQ(9bX+yb-K85NZ;2Zr1LkJl;fiy2JaVdE7l}zJUh))MmwBz!AGQpr1v&)hSCr?nJ$gD zM=I7(|F&*#UQ-cOjhh^cAL^C4K;><(-M})8K~0ZvxnkK5e*@j-AiEm{S4ls+Duga| zGPU79F-X9Xmz|SiFDY~^uw}bfuBxqFwbGq!Ti_@xvFGGu=Q&>U_Uc4pY@Hg}bDsWm$@OTFG2U!^TKH#gT->8tU2H7hgQs(TCbZ6db( z!oo6ZPHw@LRm;oDRLjbiuijjcn`1321YTdWOQMunLs?}@t*tVpLqP8};84ks8Z2;n zp}dl!DCisB=pA{vd3pW~QtTC)n*nF|-XjK#92%5q07>DM56VBdsfVS6weCdl1(sm`>-&$RSvn`DHEdH@o<`o%S#a<&yTYb zk&i=KMkwbqS#@u2lc4Sql9-UXPb|BoSUW7q^K~Lq`Sfk!g&H45%C>Kh(%=oK&EtaK#BPXw z1-7DxNoxy8Ww6XfX?exVG$zuu24zX`PY_b*al)2i^KQZ{TZYYMbJ#nE%N>2I)s-`5 zk&nKhaARl0Vau>NntSY3^Y{BA)}AXh^g!9>2PTYTgL3Rb)y2P*1-E4u%yoIg8nu=M znNHatAZKJYnn}>zfQ`0YWk*Bs7@~(=ROCwsl8C)z*9t!{UgfZ;UKUjI<{Vp>dbUc^ zJ_9bwrT11czB*g6b6N7M79np8U~3clD|s~;8sHY?b=Am0P|17LT9Jpv0YurLM% z)le`9g>EPufWldDw1Hz1ib7D7hT>sxHh?Pxt_dg!KuHu9d128AEG~t`-B8*FW!f zw87CAz|qriOb_hrgI&#VY$qJo4o$%E7r^dOIN>We(GMpz!^wU)IRPzk_?;I{vBN1N z(CUWPQ8={+PHTeGz_!xDIZL!Ocnd;}rBx!k;?f)&%@H0Jp`UKLB?O!kr@!al>7M z@Yhm^4#GV{aPJ`87lr#H@W3bx_QON1@V9Yzcqcrv6CRDia0DJ}g~vVc#AjuiGHj(WtAMv4ZI;wa)A zLtHILi5n^PA!R|NEQKtsL);_CG7IAIA(idO@Fo#*x(>$XYM5E`h8M zAT=3?&xh2uA{#G2HjN;4qsZn_WJ?_ghSk+WKnv*(adKXP6Ja(+K@ zp%=Mu0=X!LTs(?&v?7-@A(#4)%leSc1aieNa%BMN@*rIu$W>nCsw8rCFLF%_a?K3V zeF5@^cI4Vw1{)92_v_H^tB+jIgr~2kvlq(J6n*5 z1-WYs`AY=(>l_lDMD89$?g=CJhLM2?a$gT}zZ-d=9eE&$47MW=+K~r4kOx!9Lm_0y zjtuo74>uwY&mxaBAdie8kG3I?rjg-sonwBXh`;3FN63~SiF=UvG_q#^*)xm$V+?sAgp65`v2oPJ%zl{hP;tL z5-ub$fFx#-H(QW5Q^;FEApeOV|7}60Cy;mBkarWv zdjaIVA>@4*^8Nslj3FOPARpS14`awjqe!Y1`PhSe;zvHMLp~ix(mRoTW61xS@^u3FCWOomBj5EQ-=&c6W5^FdWNtO` zBgpu4UgVbyn-T|D7v8z-7taHw4ych zsIM3GCDB?RTHAxxPN5rv=*9_jQv+J(K{tbL@u6G7=s|s`zaKsL0(5H=8t6fPHG&@M zN4MG0Z4+p{9jzZj51U1|d(iD8Xu}}->j-+d9sNx+8Z1SFY4nI7dPEXEGL9bAi8f}S zjbU_$1KklpkDfq}=|^`a&|S^wt`vIgBzoLVw8@7y4WP$+(c_2F-PP#s1bRX%+T4zw z=tWN)L{IXfCk>(}_o6M0=x@{L??%v5I?&c8v^9pF+JT-HMNc0`&j9_s4?VLNZJ$BU zilb-uq33{}(~h1qg@)?UbG_)fGwAs)^!#4*0ylbL8+u_Hy{HGhIEHo%p_g=`m%7nQ z)97WB=;bc-iVpP3F|?~2y=oG@I*4B5N4xvbKZMb12hr>N=yh}G_0{P0DfEUgdSd_$ zThW_5=*>R#<{9*lgJ|zKdP@g-OB(%C9KCe_?Q^4loHC) zk!JL+PV_IWXtWu<+m7Ddi{4X@-ZO*V+lk(nK=1EHAF!hj#L>Yp`d}&g&;{td~i5(Wj@;SQ33Uf{rH9=bF*yBWQdM-IGH9 zF^;|vMaSyVu_XFp3jJpceW?!}_oM%Eqc69kuUOGnhR}%ybRvbm8bV*4ME^aF?wvzl zbD*zvqpw@hH>%M$X3)ea`eq0ERwMd0=-U(MR0w^?ioP?C{ugxGk512{@5a#gg6R7m z^!+I`8ACtlL_e58Ka8Ls?L2PStMlUI$gx-r%<%z^=otsj#g#Mm7e`!r@@7p7neQ<%Uw zA{fU!rl=oNG>a*2#1s!G%%U;O;x2o39}ANwGXp?HD-eyQ`3a0naB9XF}0nTjeg9=NzA5U zOkEdda|p8~h&iYebI=^dKROSgCTY|(g_?bVT694z>!6lV)GCTv4?#hr;1%@1TJ&H7 zwJn3%bwTaRpbkw?hbt&F13eT(4_!eIUqFu}P&kA-RzMw(p-yv9=Q!%}8|u~tb-xF7 zzkqs7Ks|m!Jrk(c2-G`_`Yc6#L#SUL)F0IU5E?iH4GN<{Su{9_hBiRM3ZvoqXhan> zvJM&r8XZGp_M)*9(6|g5{{)&)0Zjp!24?xJfhOglNxz{;0~9%h9_@o3y?`Dcf}Xes zJ(-W5I)r2raeNenG zdNY9DDvaJfhL#RM%fe`RK3e_-S}_K#OrcdNwE7fUTNtfPqV;9a`ZU^D25tNTZHl4I z&!8pB)&*_Lq3uz$6SQ**+BF01j-Wj;l<0yIKcRQx=)EfF{R-&)W9Wk`=)*ba zqn&7P8137O4usHwEc!TvKDiZr@)J5_bU1(xZ$w9ipd)E?G=+{`K*#5x6Iam596Egu zI#V2-%|~Z5D3wE>zKT9;fU2XfWD5PbRJ6YMBl{G`7!816?Cx%x>NyO zT8b{G&{d;rYti)#%3ML;UP0e=LEo1_KZMYaebCP}&@a!R-;(I}ztEp;(O)t2cNG0| z0p+To{{ra$D(L^cm@fE+->@d&0s&m83NF$D7p;Md#c=UBF0lZYJcUbb#d!&QV-S}P z;?g-BFb+iVO*QaMzu{XN;9HXT);{>Qw)plSzCDZYNZ|Zq_|6QzD~s>B72g}f_eJpi zx8nN`;j$52t_&`>6PI6#E6l(Z!?@BETse!Yti@GRxY`6Kj=_z>xba%tWG8N##m(m6<`LW?h+BeN1#s&+I9LV;58($E;0N2{ zHUZpr1a6na?FZoYIUG8MAN~S|58;kc-1!Rb3hw$F?zR_qkKrB(+$)Rw1aaRi?)L;9 zFai(kf(NGXpeOL)3?5ns4;z7pC-KMyc=QB3CXUB9z~fVR!Ua5eBaUS8<1_G6WAM}Y z`02g)nYH-YD1I)4pO4@vaXfV|o;C+h?}BI4!80r1S$TMNaXe=Tp4$S?%i{S9@Pa5_ zxEC+Z!;4qq=oP#qj$fF9Up$3hDuZ86<5#BOSBK!&qWJY5I3C4s6~=Fe@zN%EX$G&% z$E))2>MD3m3a?G$by2*2E8Y;n8!q5Y#qpK^-f{|W&ERcI@%At9j^cRdt9Vx$?^%iy zG5k&s{B9J#cL={f1%EgPfAkaHmyh>Xzz5R!<1{|l10Sk_4`uM-3_kh{J~js*&*GB_ zd}?dSARpBsA76rel0rVsLq6Sye0DGL#Wl#6S0G=dk#EY7Z#$81zd^pc5&8aFY2@HF$e}-wBNre?S0l%^Bge~--V9JRcO;F+Wa!wGK#hiqOJSTHbL9&L_6xxjyutw812hL`;MXg zAE1M)(ZTo8p;0tZh9ucX&*XeDLOSorwyXh^U&${qBHW)8K=-$ zMd<7*bWRgcPX@zF9WS**$*W4CM^$piB3OuCwZ+Wpq22z6RwKIQK2KL2Txo?L~IXGn38YjOUqEcGOQTwn4nCW%A;T z=MDYbIUUDgG(C~nZG(8n8jt7hvSVAqUEan58=jl-_oQRfyQ|MUUb4sjFPKA<-HC2; zb=os$dpmm~GiIaMgf`qex+7!!T{bY07n>bH%EZ==j`*>=*2_e`4a}4&In5!c0F^|)t z!6(LL?eL^jjqvZ&oWc~wKkE1-6PQMl$&6>xYfShmvS)2cO@CeD+3P;|f~3C~0{{R3 DW9(%e literal 0 HcmV?d00001 From ac4598aa37e740b9fa96448d18e8aca3a4d50791 Mon Sep 17 00:00:00 2001 From: Taois Date: Fri, 17 Oct 2025 00:17:44 +0800 Subject: [PATCH 10/14] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0drplayer?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B0=83=E8=AF=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...xEexs_A.js => LocalBookReader-DP3lRsvE.js} | 2 +- ...hDpHSwV.js => NovelDownloader-Csd3L03H.js} | 2 +- apps/drplayer/assets/index-BBH6CgD5.css | 9 + apps/drplayer/assets/index-Cx1LOY8C.css | 9 - .../{index-CMzm-vph.js => index-wgOTNjuN.js} | 278 +++++++++--------- apps/drplayer/index.html | 4 +- 6 files changed, 152 insertions(+), 152 deletions(-) rename apps/drplayer/assets/{LocalBookReader-2xEexs_A.js => LocalBookReader-DP3lRsvE.js} (99%) rename apps/drplayer/assets/{NovelDownloader-yhDpHSwV.js => NovelDownloader-Csd3L03H.js} (99%) create mode 100644 apps/drplayer/assets/index-BBH6CgD5.css delete mode 100644 apps/drplayer/assets/index-Cx1LOY8C.css rename apps/drplayer/assets/{index-CMzm-vph.js => index-wgOTNjuN.js} (52%) diff --git a/apps/drplayer/assets/LocalBookReader-2xEexs_A.js b/apps/drplayer/assets/LocalBookReader-DP3lRsvE.js similarity index 99% rename from apps/drplayer/assets/LocalBookReader-2xEexs_A.js rename to apps/drplayer/assets/LocalBookReader-DP3lRsvE.js index 65d6dec7..3ed42e83 100644 --- a/apps/drplayer/assets/LocalBookReader-2xEexs_A.js +++ b/apps/drplayer/assets/LocalBookReader-DP3lRsvE.js @@ -1,4 +1,4 @@ -import{_ as se,c as R,r as i,w as re,a as H,b as Le,o as w,d as I,e as c,f as u,g as N,u as E,I as te,h as oe,i as Pe,j as $,k as Re,t as L,F as ie,l as ue,m as ae,n as Ee,p as Ae,M as z,q as Me,s as Fe,v as He,x as Ve,y as le,R as ze,z as V,A as Ne,B as Ue,C as Ke,D as K,E as J}from"./index-CMzm-vph.js";const We={class:"bookmark-dialog"},Oe={class:"add-bookmark-section"},qe={class:"section-title"},Je={class:"add-bookmark-form"},je={class:"bookmarks-section"},Xe={class:"section-title"},Ge={key:0,class:"empty-state"},Qe={key:1,class:"bookmark-list"},Ye=["onClick"],Ze={class:"bookmark-content"},et={class:"bookmark-title"},tt={class:"bookmark-meta"},ot={class:"bookmark-progress"},at={class:"bookmark-time"},lt={class:"bookmark-actions"},nt={__name:"BookmarkDialog",props:{visible:{type:Boolean,default:!1},bookmarks:{type:Array,default:()=>[]}},emits:["update:visible","bookmark-selected","bookmark-added","bookmark-deleted","bookmark-updated"],setup(g,{emit:d}){const b=g,_=d,x=R({get:()=>b.visible,set:l=>_("update:visible",l)}),v=i(""),n=i(!1),s=i(null),a=i(""),p=R(()=>[...b.bookmarks].sort((l,r)=>r.createdAt-l.createdAt)),C=()=>{x.value=!1},B=()=>{v.value.trim()||(v.value=`书签 ${b.bookmarks.length+1}`),_("bookmark-added",{title:v.value.trim()}),v.value=""},j=l=>{_("bookmark-selected",l)},f=l=>{s.value=l,a.value=l.title,n.value=!0},m=()=>{if(!a.value.trim()){z.warning("书签标题不能为空");return}_("bookmark-updated",{id:s.value.id,title:a.value.trim()}),n.value=!1,s.value=null,a.value=""},y=()=>{n.value=!1,s.value=null,a.value=""},D=l=>{_("bookmark-deleted",l)},P=l=>{const r=new Date(l),t=new Date-r;return t<6e4?"刚刚":t<36e5?`${Math.floor(t/6e4)}分钟前`:t<864e5?`${Math.floor(t/36e5)}小时前`:t<6048e5?`${Math.floor(t/864e5)}天前`:r.toLocaleDateString()};return re(x,l=>{l||(v.value="")}),(l,r)=>{const k=H("a-input"),t=H("a-button"),A=H("a-modal");return w(),Le(A,{visible:x.value,"onUpdate:visible":r[3]||(r[3]=h=>x.value=h),title:"书签管理",width:"600px",footer:!1,onCancel:C},{default:I(()=>[c("div",We,[c("div",Oe,[c("div",qe,[u(E(te)),r[4]||(r[4]=N(" 添加书签 ",-1))]),c("div",Je,[u(k,{modelValue:v.value,"onUpdate:modelValue":r[0]||(r[0]=h=>v.value=h),placeholder:"输入书签标题(可选)",class:"bookmark-input",onKeyup:oe(B,["enter"])},null,8,["modelValue"]),u(t,{type:"primary",onClick:B},{icon:I(()=>[u(E(Pe))]),default:I(()=>[r[5]||(r[5]=N(" 添加 ",-1))]),_:1})])]),c("div",je,[c("div",Xe,[u(E(Re)),N(" 书签列表 ("+L(g.bookmarks.length)+") ",1)]),g.bookmarks.length===0?(w(),$("div",Ge,[u(E(te)),r[6]||(r[6]=c("p",null,"暂无书签",-1)),r[7]||(r[7]=c("p",{class:"empty-tip"},"在阅读时添加书签,方便快速定位",-1))])):(w(),$("div",Qe,[(w(!0),$(ie,null,ue(p.value,h=>(w(),$("div",{key:h.id,class:"bookmark-item",onClick:W=>j(h)},[c("div",Ze,[c("div",et,L(h.title),1),c("div",tt,[c("span",ot,L(h.percentage.toFixed(1))+"%",1),c("span",at,L(P(h.createdAt)),1)])]),c("div",lt,[u(t,{type:"text",size:"small",onClick:ae(W=>f(h),["stop"]),title:"编辑"},{icon:I(()=>[u(E(Ee))]),_:1},8,["onClick"]),u(t,{type:"text",size:"small",status:"danger",onClick:ae(W=>D(h.id),["stop"]),title:"删除"},{icon:I(()=>[u(E(Ae))]),_:1},8,["onClick"])])],8,Ye))),128))]))])]),u(A,{visible:n.value,"onUpdate:visible":r[2]||(r[2]=h=>n.value=h),title:"编辑书签",width:"400px",onOk:m,onCancel:y},{default:I(()=>[u(k,{modelValue:a.value,"onUpdate:modelValue":r[1]||(r[1]=h=>a.value=h),placeholder:"输入书签标题",onKeyup:oe(m,["enter"])},null,8,["modelValue"])]),_:1},8,["visible"])]),_:1},8,["visible"])}}},st=se(nt,[["__scopeId","data-v-ebf5cb56"]]),rt=[/^第[零一二三四五六七八九十百千万\d]+[章回节部分]/,/^第[零一二三四五六七八九十百千万\d]+[章回节部分][\s\S]*$/,/^[第]?[零一二三四五六七八九十百千万\d]+[、\s]*[章回节部分]/,/^第\d+章/,/^第\d+回/,/^第\d+节/,/^第\d+部分/,/^\d+[、\.\s]*[章回节部分]/,/^Chapter\s*\d+/i,/^Ch\.\s*\d+/i,/^序章/,/^楔子/,/^引子/,/^前言/,/^后记/,/^尾声/,/^终章/,/^番外/,/^外传/,/^附录/,/^Chapter\s+[IVX]+/i,/^Part\s+\d+/i,/^Section\s+\d+/i,/^【.*】$/,/^〖.*〗$/,/^《.*》$/,/^「.*」$/,/^『.*』$/];function it(g){const d=g.trim();if(!d||d.length>50)return!1;for(const b of rt)if(b.test(d))return!0;if(/^\d+$/.test(d)&&d.length<=3)return!0;if(d.length<=20&&!d.includes("。")&&!d.includes(",")){const b=["章","回","节","部","篇","Chapter","Part"];for(const _ of b)if(d.includes(_))return!0}return!1}function ut(g,d={}){const{minChapterLength:b=500,maxChapters:_=1e3,autoDetect:x=!0}=d;if(!g||typeof g!="string")return[];const v=g.split(/\r?\n/),n=[];let s=null,a=0,p=!1;for(let C=0;C=b&&(n.push(s),a++),s={id:a,title:B||`第${a+1}章`,content:"",startLine:C,endLine:C}):B&&(s||(s={id:a,title:`第${a+1}章`,content:"",startLine:C,endLine:C}),s.content&&(s.content+=` +import{_ as se,c as R,r as i,w as re,a as H,b as Le,o as w,d as I,e as c,f as u,g as N,u as E,I as te,h as oe,i as Pe,j as $,k as Re,t as L,F as ie,l as ue,m as ae,n as Ee,p as Ae,M as z,q as Me,s as Fe,v as He,x as Ve,y as le,R as ze,z as V,A as Ne,B as Ue,C as Ke,D as K,E as J}from"./index-wgOTNjuN.js";const We={class:"bookmark-dialog"},Oe={class:"add-bookmark-section"},qe={class:"section-title"},Je={class:"add-bookmark-form"},je={class:"bookmarks-section"},Xe={class:"section-title"},Ge={key:0,class:"empty-state"},Qe={key:1,class:"bookmark-list"},Ye=["onClick"],Ze={class:"bookmark-content"},et={class:"bookmark-title"},tt={class:"bookmark-meta"},ot={class:"bookmark-progress"},at={class:"bookmark-time"},lt={class:"bookmark-actions"},nt={__name:"BookmarkDialog",props:{visible:{type:Boolean,default:!1},bookmarks:{type:Array,default:()=>[]}},emits:["update:visible","bookmark-selected","bookmark-added","bookmark-deleted","bookmark-updated"],setup(g,{emit:d}){const b=g,_=d,x=R({get:()=>b.visible,set:l=>_("update:visible",l)}),v=i(""),n=i(!1),s=i(null),a=i(""),p=R(()=>[...b.bookmarks].sort((l,r)=>r.createdAt-l.createdAt)),C=()=>{x.value=!1},B=()=>{v.value.trim()||(v.value=`书签 ${b.bookmarks.length+1}`),_("bookmark-added",{title:v.value.trim()}),v.value=""},j=l=>{_("bookmark-selected",l)},f=l=>{s.value=l,a.value=l.title,n.value=!0},m=()=>{if(!a.value.trim()){z.warning("书签标题不能为空");return}_("bookmark-updated",{id:s.value.id,title:a.value.trim()}),n.value=!1,s.value=null,a.value=""},y=()=>{n.value=!1,s.value=null,a.value=""},D=l=>{_("bookmark-deleted",l)},P=l=>{const r=new Date(l),t=new Date-r;return t<6e4?"刚刚":t<36e5?`${Math.floor(t/6e4)}分钟前`:t<864e5?`${Math.floor(t/36e5)}小时前`:t<6048e5?`${Math.floor(t/864e5)}天前`:r.toLocaleDateString()};return re(x,l=>{l||(v.value="")}),(l,r)=>{const k=H("a-input"),t=H("a-button"),A=H("a-modal");return w(),Le(A,{visible:x.value,"onUpdate:visible":r[3]||(r[3]=h=>x.value=h),title:"书签管理",width:"600px",footer:!1,onCancel:C},{default:I(()=>[c("div",We,[c("div",Oe,[c("div",qe,[u(E(te)),r[4]||(r[4]=N(" 添加书签 ",-1))]),c("div",Je,[u(k,{modelValue:v.value,"onUpdate:modelValue":r[0]||(r[0]=h=>v.value=h),placeholder:"输入书签标题(可选)",class:"bookmark-input",onKeyup:oe(B,["enter"])},null,8,["modelValue"]),u(t,{type:"primary",onClick:B},{icon:I(()=>[u(E(Pe))]),default:I(()=>[r[5]||(r[5]=N(" 添加 ",-1))]),_:1})])]),c("div",je,[c("div",Xe,[u(E(Re)),N(" 书签列表 ("+L(g.bookmarks.length)+") ",1)]),g.bookmarks.length===0?(w(),$("div",Ge,[u(E(te)),r[6]||(r[6]=c("p",null,"暂无书签",-1)),r[7]||(r[7]=c("p",{class:"empty-tip"},"在阅读时添加书签,方便快速定位",-1))])):(w(),$("div",Qe,[(w(!0),$(ie,null,ue(p.value,h=>(w(),$("div",{key:h.id,class:"bookmark-item",onClick:W=>j(h)},[c("div",Ze,[c("div",et,L(h.title),1),c("div",tt,[c("span",ot,L(h.percentage.toFixed(1))+"%",1),c("span",at,L(P(h.createdAt)),1)])]),c("div",lt,[u(t,{type:"text",size:"small",onClick:ae(W=>f(h),["stop"]),title:"编辑"},{icon:I(()=>[u(E(Ee))]),_:1},8,["onClick"]),u(t,{type:"text",size:"small",status:"danger",onClick:ae(W=>D(h.id),["stop"]),title:"删除"},{icon:I(()=>[u(E(Ae))]),_:1},8,["onClick"])])],8,Ye))),128))]))])]),u(A,{visible:n.value,"onUpdate:visible":r[2]||(r[2]=h=>n.value=h),title:"编辑书签",width:"400px",onOk:m,onCancel:y},{default:I(()=>[u(k,{modelValue:a.value,"onUpdate:modelValue":r[1]||(r[1]=h=>a.value=h),placeholder:"输入书签标题",onKeyup:oe(m,["enter"])},null,8,["modelValue"])]),_:1},8,["visible"])]),_:1},8,["visible"])}}},st=se(nt,[["__scopeId","data-v-ebf5cb56"]]),rt=[/^第[零一二三四五六七八九十百千万\d]+[章回节部分]/,/^第[零一二三四五六七八九十百千万\d]+[章回节部分][\s\S]*$/,/^[第]?[零一二三四五六七八九十百千万\d]+[、\s]*[章回节部分]/,/^第\d+章/,/^第\d+回/,/^第\d+节/,/^第\d+部分/,/^\d+[、\.\s]*[章回节部分]/,/^Chapter\s*\d+/i,/^Ch\.\s*\d+/i,/^序章/,/^楔子/,/^引子/,/^前言/,/^后记/,/^尾声/,/^终章/,/^番外/,/^外传/,/^附录/,/^Chapter\s+[IVX]+/i,/^Part\s+\d+/i,/^Section\s+\d+/i,/^【.*】$/,/^〖.*〗$/,/^《.*》$/,/^「.*」$/,/^『.*』$/];function it(g){const d=g.trim();if(!d||d.length>50)return!1;for(const b of rt)if(b.test(d))return!0;if(/^\d+$/.test(d)&&d.length<=3)return!0;if(d.length<=20&&!d.includes("。")&&!d.includes(",")){const b=["章","回","节","部","篇","Chapter","Part"];for(const _ of b)if(d.includes(_))return!0}return!1}function ut(g,d={}){const{minChapterLength:b=500,maxChapters:_=1e3,autoDetect:x=!0}=d;if(!g||typeof g!="string")return[];const v=g.split(/\r?\n/),n=[];let s=null,a=0,p=!1;for(let C=0;C=b&&(n.push(s),a++),s={id:a,title:B||`第${a+1}章`,content:"",startLine:C,endLine:C}):B&&(s||(s={id:a,title:`第${a+1}章`,content:"",startLine:C,endLine:C}),s.content&&(s.content+=` `),s.content+=B,s.endLine=C),n.length>=_)break}return s&&s.content.trim().length>=b&&n.push(s),!p&&g.length>b||n.length<2&&g.length>b*2?ne(g,d):n}function ne(g,d={}){const{chapterLength:b=3e3,minChapterLength:_=500}=d,x=[],v=g.split(/\n\s*\n/).filter(a=>a.trim());let n={id:0,title:"第1章",content:"",startLine:0,endLine:0},s=0;for(let a=0;ab&&n.content.length>=_?(x.push(n),s++,n={id:s,title:`第${s+1}章`,content:p,startLine:a,endLine:a}):(n.content&&(n.content+=` `),n.content+=p,n.endLine=a)}return n.content.trim()&&x.push(n),x}const ct={key:0,class:"loading-container"},dt={key:1,class:"error-container"},vt={class:"chapter-navigation"},pt={class:"chapter-progress"},ft={key:3,class:"empty-container"},mt={key:0,class:"progress-bar"},kt={class:"progress-text"},ht={__name:"LocalBookReader",setup(g){const d=Me(),b=Fe(),_=i(!0),x=i(!0),v=i(""),n=i(!1),s=i(!1),a=i(d.params.bookId),p=i(null),C=i(""),B=i(""),j=i(""),f=i([]),m=i(0),y=i(null),D=i(0),P=i(0),l=i([]),r=i(Date.now()),k=i(null),t=i({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light",padding:40,showProgress:!0,autoSave:!0,saveInterval:3e4}),A=R(()=>{let e=t.value.backgroundColor,o=t.value.textColor;if(t.value.theme!=="custom"){const T={light:{backgroundColor:"#ffffff",textColor:"#333333"},dark:{backgroundColor:"#1a1a1a",textColor:"#e6e6e6"},sepia:{backgroundColor:"#f4f1e8",textColor:"#5c4b37"},green:{backgroundColor:"#c7edcc",textColor:"#2d5016"},parchment:{backgroundColor:"#fdf6e3",textColor:"#657b83"},night:{backgroundColor:"#2b2b2b",textColor:"#c9aa71"},blue:{backgroundColor:"#e8f4f8",textColor:"#1e3a5f"},pink:{backgroundColor:"#fdf2f8",textColor:"#831843"}}[t.value.theme];T&&(e=T.backgroundColor,o=T.textColor)}return{backgroundColor:e,color:o,fontFamily:t.value.fontFamily}}),h=R(()=>({maxWidth:`${t.value.maxWidth}px`,margin:"0 auto",padding:`${t.value.padding}px`})),W=R(()=>({fontSize:`${t.value.fontSize+4}px`,lineHeight:t.value.lineHeight,fontFamily:t.value.fontFamily,color:A.value.color})),ce=R(()=>({fontSize:`${t.value.fontSize}px`,lineHeight:t.value.lineHeight,color:A.value.color,maxWidth:`${t.value.maxWidth}px`,margin:"0 auto"})),de=R(()=>y.value?.content?y.value.content.split(` diff --git a/apps/drplayer/assets/NovelDownloader-yhDpHSwV.js b/apps/drplayer/assets/NovelDownloader-Csd3L03H.js similarity index 99% rename from apps/drplayer/assets/NovelDownloader-yhDpHSwV.js rename to apps/drplayer/assets/NovelDownloader-Csd3L03H.js index 551eac91..4bce7863 100644 --- a/apps/drplayer/assets/NovelDownloader-yhDpHSwV.js +++ b/apps/drplayer/assets/NovelDownloader-Csd3L03H.js @@ -1 +1 @@ -import{_ as W,r as M,c as w,a as h,j as _,o as v,e as t,y as S,t as i,f as a,d as o,g as u,u as g,G as it,b as N,H as rt,J as Y,K as dt,L as ut,p as Q,N as Z,O as q,P as ct,k as vt,Q as kt,S as et,T as mt,F as st,l as at,U as ft,V as $,M as T,D as tt,W as pt,s as gt,v as _t,x as Tt,i as wt,X as ht,Y as yt}from"./index-CMzm-vph.js";const $t={class:"task-info"},Ct={class:"task-header"},bt={class:"task-title"},St={class:"task-meta"},zt={class:"source-info"},xt={class:"chapter-count"},Dt={class:"create-time"},Bt={class:"task-status"},Mt={key:0,class:"task-progress"},It={class:"progress-info"},Vt={class:"progress-text"},Nt={key:0,class:"download-speed"},Lt={class:"progress-percent"},Pt={key:1,class:"error-message"},Ot={key:2,class:"task-details"},Ft={class:"detail-row"},Rt={class:"value"},At={class:"detail-row"},Ut={class:"value"},Et={class:"detail-row"},Gt={class:"value"},Kt={key:0,class:"detail-row"},Xt={class:"value"},jt={class:"task-actions"},qt={__name:"DownloadTaskItem",props:{task:{type:Object,required:!0}},emits:["retry","pause","resume","cancel","delete","export","view-chapters"],setup(d,{emit:X}){const n=d,k=X,C=M(!1),z=w(()=>`task-${n.task.status}`),I=w(()=>({pending:"gray",downloading:"blue",paused:"orange",completed:"green",failed:"red",cancelled:"gray"})[n.task.status]||"gray"),x=w(()=>({pending:"等待中",downloading:"下载中",paused:"已暂停",completed:"已完成",failed:"下载失败",cancelled:"已取消"})[n.task.status]||"未知状态"),b=w(()=>{if(!n.task.totalChapters||n.task.totalChapters===0)return 0;const r=n.task.completedChapters||0;return Math.round(r/n.task.totalChapters*100)}),A=w(()=>n.task.status==="failed"?"danger":n.task.status==="completed"?"success":"normal"),L=w(()=>n.task.downloadSpeed?`${n.task.downloadSpeed} 章/分钟`:"0 章/分钟"),U=()=>{C.value=!C.value},E=r=>{r==="download"?k("export",n.task.id,{exportToGallery:!1}):r==="gallery"&&k("export",n.task.id,{exportToGallery:!0})},F=r=>r?new Date(r).toLocaleString("zh-CN"):"-",R=r=>{if(!r)return"0 B";const e=["B","KB","MB","GB"],V=Math.floor(Math.log(r)/Math.log(1024));return Math.round(r/Math.pow(1024,V)*100)/100+" "+e[V]},G=()=>{if(n.task.totalSize>0)return R(n.task.totalSize);if(n.task.status==="pending")return"等待计算";if(n.task.status==="downloading"){const r=n.task.downloadedSize||0;return r>0?`${R(r)} (下载中)`:"计算中..."}else return"未知"},m=()=>n.task.startTime?F(n.task.startTime):n.task.status==="pending"?"未开始":n.task.status==="downloading"?"正在启动...":"-";return(r,e)=>{const V=h("a-tag"),D=h("a-progress"),l=h("a-button"),s=h("a-button-group"),y=h("a-doption"),j=h("a-dropdown");return v(),_("div",{class:et(["download-task-item",z.value])},[t("div",$t,[t("div",Ct,[t("div",bt,[t("h3",null,i(d.task.novelTitle),1),t("div",St,[t("span",zt,i(d.task.sourceName),1),t("span",xt,"共 "+i(d.task.totalChapters)+" 章",1),t("span",Dt,i(F(d.task.createTime)),1)])]),t("div",Bt,[a(V,{color:I.value},{default:o(()=>[u(i(x.value),1)]),_:1},8,["color"])])]),d.task.status!=="pending"?(v(),_("div",Mt,[t("div",It,[t("span",Vt,[u(i(d.task.completedChapters||0)+" / "+i(d.task.totalChapters)+" 章 ",1),d.task.status==="downloading"?(v(),_("span",Nt," ("+i(L.value)+") ",1)):S("",!0)]),t("span",Lt,i(b.value)+"%",1)]),a(D,{percent:b.value,status:A.value,"show-text":!1,size:"small"},null,8,["percent","status"])])):S("",!0),d.task.status==="failed"&&d.task.errorMessage?(v(),_("div",Pt,[a(g(it)),u(" "+i(d.task.errorMessage),1)])):S("",!0),C.value?(v(),_("div",Ot,[t("div",Ft,[e[9]||(e[9]=t("span",{class:"label"},"下载路径:",-1)),t("span",Rt,i(d.task.downloadPath||"默认路径"),1)]),t("div",At,[e[10]||(e[10]=t("span",{class:"label"},"文件大小:",-1)),t("span",Ut,i(G()),1)]),t("div",Et,[e[11]||(e[11]=t("span",{class:"label"},"开始时间:",-1)),t("span",Gt,i(m()),1)]),d.task.completeTime?(v(),_("div",Kt,[e[12]||(e[12]=t("span",{class:"label"},"完成时间:",-1)),t("span",Xt,i(F(d.task.completeTime)),1)])):S("",!0)])):S("",!0)]),t("div",jt,[d.task.status==="downloading"?(v(),N(s,{key:0},{default:o(()=>[a(l,{size:"small",onClick:e[0]||(e[0]=B=>r.$emit("pause",d.task.id))},{icon:o(()=>[a(g(rt))]),default:o(()=>[e[13]||(e[13]=u(" 暂停 ",-1))]),_:1}),a(l,{size:"small",onClick:e[1]||(e[1]=B=>r.$emit("cancel",d.task.id))},{icon:o(()=>[a(g(Y))]),default:o(()=>[e[14]||(e[14]=u(" 取消 ",-1))]),_:1})]),_:1})):d.task.status==="paused"?(v(),N(s,{key:1},{default:o(()=>[a(l,{size:"small",type:"primary",onClick:e[2]||(e[2]=B=>r.$emit("resume",d.task.id))},{icon:o(()=>[a(g(dt))]),default:o(()=>[e[15]||(e[15]=u(" 继续 ",-1))]),_:1}),a(l,{size:"small",onClick:e[3]||(e[3]=B=>r.$emit("cancel",d.task.id))},{icon:o(()=>[a(g(Y))]),default:o(()=>[e[16]||(e[16]=u(" 取消 ",-1))]),_:1})]),_:1})):d.task.status==="failed"?(v(),N(s,{key:2},{default:o(()=>[a(l,{size:"small",type:"primary",onClick:e[4]||(e[4]=B=>r.$emit("retry",d.task.id))},{icon:o(()=>[a(g(ut))]),default:o(()=>[e[17]||(e[17]=u(" 重试 ",-1))]),_:1}),a(l,{size:"small",onClick:e[5]||(e[5]=B=>r.$emit("delete",d.task.id))},{icon:o(()=>[a(g(Q))]),default:o(()=>[e[18]||(e[18]=u(" 删除 ",-1))]),_:1})]),_:1})):d.task.status==="completed"?(v(),N(s,{key:3},{default:o(()=>[a(j,{onSelect:E},{content:o(()=>[a(y,{value:"download"},{icon:o(()=>[a(g(q))]),default:o(()=>[e[20]||(e[20]=u(" 下载TXT文件 ",-1))]),_:1}),a(y,{value:"gallery"},{icon:o(()=>[a(g(ct))]),default:o(()=>[e[21]||(e[21]=u(" 导出到书画柜 ",-1))]),_:1})]),default:o(()=>[a(l,{size:"small",type:"primary"},{icon:o(()=>[a(g(q))]),default:o(()=>[e[19]||(e[19]=u(" 导出 ",-1)),a(g(Z))]),_:1})]),_:1}),a(l,{size:"small",onClick:e[6]||(e[6]=B=>r.$emit("delete",d.task.id))},{icon:o(()=>[a(g(Q))]),default:o(()=>[e[22]||(e[22]=u(" 删除 ",-1))]),_:1})]),_:1})):d.task.status==="pending"?(v(),N(s,{key:4},{default:o(()=>[a(l,{size:"small",onClick:e[7]||(e[7]=B=>r.$emit("delete",d.task.id))},{icon:o(()=>[a(g(Q))]),default:o(()=>[e[23]||(e[23]=u(" 删除 ",-1))]),_:1})]),_:1})):S("",!0),a(l,{size:"small",onClick:e[8]||(e[8]=B=>r.$emit("view-chapters",d.task))},{icon:o(()=>[a(g(vt))]),default:o(()=>[e[24]||(e[24]=u(" 章节详情 ",-1))]),_:1}),a(l,{size:"small",onClick:U},{icon:o(()=>[C.value?(v(),N(g(kt),{key:1})):(v(),N(g(Z),{key:0}))]),default:o(()=>[u(" "+i(C.value?"收起":"详情"),1)]),_:1})])],2)}}},Ht=W(qt,[["__scopeId","data-v-c3fbae34"]]),Jt={key:0,class:"chapter-details"},Qt={class:"stats-section"},Wt={class:"stat-card"},Yt={class:"stat-number"},Zt={class:"stat-card success"},te={class:"stat-number"},ee={class:"stat-card warning"},se={class:"stat-number"},ae={class:"stat-card danger"},oe={class:"stat-number"},le={class:"stat-card"},ne={class:"stat-number"},ie={class:"filter-section"},re={class:"search-box"},de={class:"chapter-list"},ue={class:"list-body"},ce={class:"cell index"},ve={class:"cell name"},ke={class:"chapter-title"},me={key:0,class:"error-message"},fe={class:"cell status"},pe={key:0,class:"progress-mini"},ge={class:"cell size"},_e={class:"cell time"},Te={key:0,class:"time-info"},we={key:1,class:"time-info"},he={class:"cell actions"},ye={key:0,class:"batch-actions"},$e={key:0,class:"chapter-preview"},Ce={class:"preview-content"},be={__name:"ChapterDetailsDialog",props:{visible:{type:Boolean,default:!1},task:{type:Object,default:null}},emits:["close","retry-chapter"],setup(d,{emit:X}){const n=d,k=X,C=M("all"),z=M(""),I=M(!1),x=M(null),b=w(()=>n.task?.chapters?.filter(l=>l.status==="completed").length||0),A=w(()=>n.task?.chapters?.filter(l=>l.status==="downloading").length||0),L=w(()=>n.task?.chapters?.filter(l=>l.status==="failed").length||0),U=w(()=>n.task?.chapters?.filter(l=>l.status==="pending").length||0),E=w(()=>{if(!n.task?.chapters)return[];let l=n.task.chapters;if(C.value!=="all"&&(l=l.filter(s=>s.status===C.value)),z.value){const s=z.value.toLowerCase();l=l.filter(y=>(y.name||"").toLowerCase().includes(s))}return l}),F=l=>`status-${l.status||"pending"}`,R=l=>({pending:"gray",downloading:"blue",completed:"green",failed:"red"})[l]||"gray",G=l=>({pending:"等待中",downloading:"下载中",completed:"已完成",failed:"失败"})[l]||"未知",m=l=>{if(!l)return"-";const s=["B","KB","MB"],y=Math.floor(Math.log(l)/Math.log(1024));return Math.round(l/Math.pow(1024,y)*100)/100+" "+s[y]},r=l=>l?new Date(l).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"-",e=l=>{k("retry-chapter",n.task.id,l)},V=()=>{n.task.chapters.map((s,y)=>({chapter:s,index:y})).filter(({chapter:s})=>s.status==="failed").forEach(({index:s})=>{k("retry-chapter",n.task.id,s)})},D=l=>{x.value=l,I.value=!0};return(l,s)=>{const y=h("a-radio"),j=h("a-radio-group"),B=h("a-input"),H=h("a-tag"),P=h("a-progress"),c=h("a-button"),p=h("a-modal");return v(),N(p,{visible:d.visible,title:`章节详情 - ${d.task?.novelTitle||""}`,width:"900px",footer:!1,onCancel:s[3]||(s[3]=f=>l.$emit("close"))},{default:o(()=>[d.task?(v(),_("div",Jt,[t("div",Qt,[t("div",Wt,[t("div",Yt,i(d.task.totalChapters),1),s[4]||(s[4]=t("div",{class:"stat-label"},"总章节",-1))]),t("div",Zt,[t("div",te,i(b.value),1),s[5]||(s[5]=t("div",{class:"stat-label"},"已完成",-1))]),t("div",ee,[t("div",se,i(A.value),1),s[6]||(s[6]=t("div",{class:"stat-label"},"下载中",-1))]),t("div",ae,[t("div",oe,i(L.value),1),s[7]||(s[7]=t("div",{class:"stat-label"},"失败",-1))]),t("div",le,[t("div",ne,i(U.value),1),s[8]||(s[8]=t("div",{class:"stat-label"},"等待中",-1))])]),t("div",ie,[a(j,{modelValue:C.value,"onUpdate:modelValue":s[0]||(s[0]=f=>C.value=f),type:"button",size:"small"},{default:o(()=>[a(y,{value:"all"},{default:o(()=>[...s[9]||(s[9]=[u("全部",-1)])]),_:1}),a(y,{value:"completed"},{default:o(()=>[...s[10]||(s[10]=[u("已完成",-1)])]),_:1}),a(y,{value:"downloading"},{default:o(()=>[...s[11]||(s[11]=[u("下载中",-1)])]),_:1}),a(y,{value:"failed"},{default:o(()=>[...s[12]||(s[12]=[u("失败",-1)])]),_:1}),a(y,{value:"pending"},{default:o(()=>[...s[13]||(s[13]=[u("等待中",-1)])]),_:1})]),_:1},8,["modelValue"]),t("div",re,[a(B,{modelValue:z.value,"onUpdate:modelValue":s[1]||(s[1]=f=>z.value=f),placeholder:"搜索章节名称",size:"small",style:{width:"200px"}},{prefix:o(()=>[a(g(mt))]),_:1},8,["modelValue"])])]),t("div",de,[s[16]||(s[16]=t("div",{class:"list-header"},[t("div",{class:"header-cell index"},"序号"),t("div",{class:"header-cell name"},"章节名称"),t("div",{class:"header-cell status"},"状态"),t("div",{class:"header-cell size"},"大小"),t("div",{class:"header-cell time"},"时间"),t("div",{class:"header-cell actions"},"操作")],-1)),t("div",ue,[(v(!0),_(st,null,at(E.value,(f,O)=>(v(),_("div",{key:O,class:et(["chapter-row",F(f)])},[t("div",ce,i(O+1),1),t("div",ve,[t("span",ke,i(f.name||`第${O+1}章`),1),f.error?(v(),_("div",me,i(f.error),1)):S("",!0)]),t("div",fe,[a(H,{color:R(f.status)},{default:o(()=>[u(i(G(f.status)),1)]),_:2},1032,["color"]),f.status==="downloading"?(v(),_("div",pe,[a(P,{percent:f.progress||0,size:"mini","show-text":!1},null,8,["percent"])])):S("",!0)]),t("div",ge,i(m(f.size)),1),t("div",_e,[f.startTime?(v(),_("div",Te," 开始: "+i(r(f.startTime)),1)):S("",!0),f.completeTime?(v(),_("div",we," 完成: "+i(r(f.completeTime)),1)):S("",!0)]),t("div",he,[f.status==="failed"?(v(),N(c,{key:0,size:"mini",type:"primary",onClick:J=>e(O)},{default:o(()=>[...s[14]||(s[14]=[u(" 重试 ",-1)])]),_:1},8,["onClick"])):S("",!0),f.status==="completed"?(v(),N(c,{key:1,size:"mini",onClick:J=>D(f)},{default:o(()=>[...s[15]||(s[15]=[u(" 预览 ",-1)])]),_:1},8,["onClick"])):S("",!0)])],2))),128))])]),L.value>0?(v(),_("div",ye,[a(c,{type:"primary",onClick:V},{default:o(()=>[...s[17]||(s[17]=[u(" 重试所有失败章节 ",-1)])]),_:1})])):S("",!0)])):S("",!0),a(p,{visible:I.value,"onUpdate:visible":s[2]||(s[2]=f=>I.value=f),title:"章节预览",width:"600px",footer:!1},{default:o(()=>[x.value?(v(),_("div",$e,[t("h3",null,i(x.value.name),1),t("div",Ce,i(x.value.content||"暂无内容"),1)])):S("",!0)]),_:1},8,["visible"])]),_:1},8,["visible","title"])}}},Se=W(be,[["__scopeId","data-v-8e3375e7"]]),ze=ft("download",()=>{const d=M([]),X=M(!1),n=()=>{d.value=$.getAllTasks()},k=()=>{$.saveTasksToStorage()},C=m=>{const r=$.createTask(m);return n(),r},z=m=>{$.startTask(m),n()},I=m=>{$.pauseTask(m),n()},x=m=>{$.startTask(m),n()},b=m=>{$.cancelTask(m),n()},A=m=>{$.deleteTask(m),n()},L=m=>{$.startTask(m),n()},U=(m,r)=>{$.retryChapter(m,r),n()},E=async(m,r={})=>{try{const e=$.getTask(m);if(!e){T.error("任务不存在");return}if(e.status!=="completed"){T.error("只能导出已完成的任务");return}const V=$.generateTxtContent(m);if(!V){T.error("生成TXT内容失败");return}if(r.exportToGallery){const D={title:e.novelTitle,author:e.novelAuthor||"未知",description:e.novelDescription||"",cover:e.novelCover||"",content:V,fileName:`${e.settings.fileName||e.novelTitle}.txt`,addedAt:Date.now(),source:"download"},l=tt.addBookFromContent(D);if(l.success){const s=l.isOverwrite?"更新":"添加";return T.success(`《${e.novelTitle}》已${s}到书画柜`),{success:!0,action:"addToGallery",isOverwrite:l.isOverwrite}}else return l.duplicate?new Promise(s=>{pt.confirm({title:"图书已存在",content:`书画柜中已存在《${D.title}》(作者:${D.author}),是否要覆盖现有图书?`,okText:"覆盖",cancelText:"取消",onOk:()=>{tt.addBookFromContent(D,{allowOverwrite:!0}).success?(T.success(`《${e.novelTitle}》已更新到书画柜`),s({success:!0,action:"addToGallery",isOverwrite:!0})):(T.error("更新图书失败"),s({success:!1}))},onCancel:()=>{T.info("已取消导出"),s({success:!1,cancelled:!0})}})}):l.storageLimit?(T.error(l.message),{success:!1,storageLimit:!0}):(T.error(l.message||"添加图书失败"),{success:!1})}else{const D=$.exportToTxt(m);return T.success("TXT文件导出成功"),D}}catch(e){return console.error("导出任务失败:",e),T.error("导出失败: "+e.message),null}},F=()=>{d.value.filter(r=>r.status==="completed").forEach(r=>{$.deleteTask(r.id)}),n()},R=w(()=>$.getTaskStats()),G=m=>$.getTasksByStatus(m);return $.setTaskUpdateCallback(()=>{n()}),n(),{tasks:d,loading:X,taskStats:R,loadTasks:n,saveTasks:k,addTask:C,startTask:z,pauseTask:I,resumeTask:x,cancelTask:b,deleteTask:A,retryTask:L,retryChapter:U,exportTask:E,clearCompleted:F,getTasksByStatus:G}}),xe={class:"novel-downloader"},De={class:"downloader-header"},Be={class:"header-left"},Me={class:"downloader-title"},Ie={class:"download-stats"},Ve={class:"stat-item"},Ne={class:"stat-item"},Le={class:"stat-item"},Pe={class:"stat-item"},Oe={class:"header-right"},Fe={class:"filter-tabs"},Re={class:"filter-left"},Ae={key:0,class:"storage-stats"},Ue={class:"storage-info"},Ee={class:"storage-header"},Ge={class:"storage-progress"},Ke={class:"storage-details"},Xe={class:"storage-used"},je={class:"storage-available"},qe={class:"storage-total"},He={class:"download-list"},Je={key:0,class:"empty-state"},Qe={key:1},We={__name:"NovelDownloader",props:{visible:{type:Boolean,default:!1}},emits:["close"],setup(d,{emit:X}){const n=gt(),k=ze(),C=M("all"),z=M(!1),I=M(!1),x=M(null),b=M({}),A=w(()=>k.tasks.length),L=w(()=>k.tasks.filter(c=>c.status==="completed").length),U=w(()=>k.tasks.filter(c=>c.status==="downloading").length),E=w(()=>k.tasks.filter(c=>c.status==="failed").length),F=w(()=>k.tasks.filter(c=>c.status==="pending").length),R=w(()=>C.value==="all"?k.tasks:k.tasks.filter(c=>c.status===C.value)),G=w(()=>x.value?k.tasks.find(c=>c.id===x.value.id)||x.value:null),m=()=>{window.history.length>1?n.go(-1):n.push("/")},r=c=>{k.addTask(c),P(),z.value=!1,T.success("下载任务已添加")},e=c=>{k.retryTask(c),P(),T.info("正在重试下载任务")},V=c=>{k.pauseTask(c),P(),T.info("下载任务已暂停")},D=c=>{k.resumeTask(c),P(),T.info("下载任务已恢复")},l=c=>{k.cancelTask(c),P(),T.info("下载任务已取消")},s=c=>{k.deleteTask(c),P(),T.success("下载任务已删除")},y=async(c,p={})=>{await k.exportTask(c,p)},j=c=>{x.value=c,I.value=!0},B=(c,p)=>{k.retryChapter(c,p),T.info("正在重试章节下载")},H=()=>{k.clearCompleted(),P(),T.success("已清理完成的下载任务")},P=()=>{b.value=$.getStorageStats()};return _t(()=>{k.loadTasks(),P()}),Tt(()=>{k.saveTasks()}),(c,p)=>{const f=h("a-button"),O=h("a-radio"),J=h("a-radio-group"),ot=h("a-tag"),lt=h("a-progress"),nt=h("a-empty");return v(),_("div",xe,[t("div",De,[t("div",Be,[t("h2",Me,[a(g(q)),p[4]||(p[4]=u(" 小说下载器 ",-1))]),t("div",Ie,[t("span",Ve," 总任务: "+i(A.value),1),t("span",Ne," 已完成: "+i(L.value),1),t("span",Le," 进行中: "+i(U.value),1),t("span",Pe," 失败: "+i(E.value),1)])]),t("div",Oe,[a(f,{type:"primary",onClick:p[0]||(p[0]=K=>z.value=!0)},{icon:o(()=>[a(g(wt))]),default:o(()=>[p[5]||(p[5]=u(" 新建下载 ",-1))]),_:1}),a(f,{onClick:H,disabled:L.value===0},{default:o(()=>[...p[6]||(p[6]=[u(" 清理已完成 ",-1)])]),_:1},8,["disabled"]),a(f,{onClick:m},{icon:o(()=>[a(g(ht))]),default:o(()=>[p[7]||(p[7]=u(" 关闭 ",-1))]),_:1})])]),t("div",Fe,[t("div",Re,[a(J,{modelValue:C.value,"onUpdate:modelValue":p[1]||(p[1]=K=>C.value=K),type:"button"},{default:o(()=>[a(O,{value:"all"},{default:o(()=>[u("全部 ("+i(A.value)+")",1)]),_:1}),a(O,{value:"downloading"},{default:o(()=>[u("下载中 ("+i(U.value)+")",1)]),_:1}),a(O,{value:"completed"},{default:o(()=>[u("已完成 ("+i(L.value)+")",1)]),_:1}),a(O,{value:"failed"},{default:o(()=>[u("失败 ("+i(E.value)+")",1)]),_:1}),a(O,{value:"pending"},{default:o(()=>[u("等待中 ("+i(F.value)+")",1)]),_:1})]),_:1},8,["modelValue"])]),g(k).tasks.length>0?(v(),_("div",Ae,[t("div",Ue,[t("div",Ee,[a(g(q),{class:"storage-icon"}),p[8]||(p[8]=t("span",{class:"storage-title"},"本地储存空间",-1)),a(ot,{color:b.value.isOverLimit?"red":b.value.isNearLimit?"orange":"green",size:"small"},{default:o(()=>[u(i(Math.round(b.value.usagePercentage))+"% ",1)]),_:1},8,["color"])]),t("div",Ge,[a(lt,{percent:b.value.usagePercentage,color:b.value.isOverLimit?"#f53f3f":b.value.isNearLimit?"#ff7d00":"#00b42a","show-text":!1,size:"small"},null,8,["percent","color"])]),t("div",Ke,[t("span",Xe,"已用: "+i(b.value.formattedUsed),1),t("span",je,"可用: "+i(b.value.formattedAvailable),1),t("span",qe,"总计: "+i(b.value.formattedTotal),1)])])])):S("",!0)]),t("div",He,[R.value.length===0?(v(),_("div",Je,[a(nt,{description:"暂无下载任务"})])):(v(),_("div",Qe,[(v(!0),_(st,null,at(R.value,K=>(v(),N(Ht,{key:K.id,task:K,onRetry:e,onPause:V,onResume:D,onCancel:l,onDelete:s,onExport:y,onViewChapters:j},null,8,["task"]))),128))]))]),a(yt,{visible:z.value,onClose:p[2]||(p[2]=K=>z.value=!1),onConfirm:r},null,8,["visible"]),a(Se,{visible:I.value,task:G.value,onClose:p[3]||(p[3]=K=>I.value=!1),onRetryChapter:B},null,8,["visible","task"])])}}},Ze=W(We,[["__scopeId","data-v-23026e76"]]);export{Ze as default}; +import{_ as W,r as M,c as w,a as h,j as _,o as v,e as t,y as S,t as i,f as a,d as o,g as u,u as g,G as it,b as N,H as rt,J as Y,K as dt,L as ut,p as Q,N as Z,O as q,P as ct,k as vt,Q as kt,S as et,T as mt,F as st,l as at,U as ft,V as $,M as T,D as tt,W as pt,s as gt,v as _t,x as Tt,i as wt,X as ht,Y as yt}from"./index-wgOTNjuN.js";const $t={class:"task-info"},Ct={class:"task-header"},bt={class:"task-title"},St={class:"task-meta"},zt={class:"source-info"},xt={class:"chapter-count"},Dt={class:"create-time"},Bt={class:"task-status"},Mt={key:0,class:"task-progress"},It={class:"progress-info"},Vt={class:"progress-text"},Nt={key:0,class:"download-speed"},Lt={class:"progress-percent"},Pt={key:1,class:"error-message"},Ot={key:2,class:"task-details"},Ft={class:"detail-row"},Rt={class:"value"},At={class:"detail-row"},Ut={class:"value"},Et={class:"detail-row"},Gt={class:"value"},Kt={key:0,class:"detail-row"},Xt={class:"value"},jt={class:"task-actions"},qt={__name:"DownloadTaskItem",props:{task:{type:Object,required:!0}},emits:["retry","pause","resume","cancel","delete","export","view-chapters"],setup(d,{emit:X}){const n=d,k=X,C=M(!1),z=w(()=>`task-${n.task.status}`),I=w(()=>({pending:"gray",downloading:"blue",paused:"orange",completed:"green",failed:"red",cancelled:"gray"})[n.task.status]||"gray"),x=w(()=>({pending:"等待中",downloading:"下载中",paused:"已暂停",completed:"已完成",failed:"下载失败",cancelled:"已取消"})[n.task.status]||"未知状态"),b=w(()=>{if(!n.task.totalChapters||n.task.totalChapters===0)return 0;const r=n.task.completedChapters||0;return Math.round(r/n.task.totalChapters*100)}),A=w(()=>n.task.status==="failed"?"danger":n.task.status==="completed"?"success":"normal"),L=w(()=>n.task.downloadSpeed?`${n.task.downloadSpeed} 章/分钟`:"0 章/分钟"),U=()=>{C.value=!C.value},E=r=>{r==="download"?k("export",n.task.id,{exportToGallery:!1}):r==="gallery"&&k("export",n.task.id,{exportToGallery:!0})},F=r=>r?new Date(r).toLocaleString("zh-CN"):"-",R=r=>{if(!r)return"0 B";const e=["B","KB","MB","GB"],V=Math.floor(Math.log(r)/Math.log(1024));return Math.round(r/Math.pow(1024,V)*100)/100+" "+e[V]},G=()=>{if(n.task.totalSize>0)return R(n.task.totalSize);if(n.task.status==="pending")return"等待计算";if(n.task.status==="downloading"){const r=n.task.downloadedSize||0;return r>0?`${R(r)} (下载中)`:"计算中..."}else return"未知"},m=()=>n.task.startTime?F(n.task.startTime):n.task.status==="pending"?"未开始":n.task.status==="downloading"?"正在启动...":"-";return(r,e)=>{const V=h("a-tag"),D=h("a-progress"),l=h("a-button"),s=h("a-button-group"),y=h("a-doption"),j=h("a-dropdown");return v(),_("div",{class:et(["download-task-item",z.value])},[t("div",$t,[t("div",Ct,[t("div",bt,[t("h3",null,i(d.task.novelTitle),1),t("div",St,[t("span",zt,i(d.task.sourceName),1),t("span",xt,"共 "+i(d.task.totalChapters)+" 章",1),t("span",Dt,i(F(d.task.createTime)),1)])]),t("div",Bt,[a(V,{color:I.value},{default:o(()=>[u(i(x.value),1)]),_:1},8,["color"])])]),d.task.status!=="pending"?(v(),_("div",Mt,[t("div",It,[t("span",Vt,[u(i(d.task.completedChapters||0)+" / "+i(d.task.totalChapters)+" 章 ",1),d.task.status==="downloading"?(v(),_("span",Nt," ("+i(L.value)+") ",1)):S("",!0)]),t("span",Lt,i(b.value)+"%",1)]),a(D,{percent:b.value,status:A.value,"show-text":!1,size:"small"},null,8,["percent","status"])])):S("",!0),d.task.status==="failed"&&d.task.errorMessage?(v(),_("div",Pt,[a(g(it)),u(" "+i(d.task.errorMessage),1)])):S("",!0),C.value?(v(),_("div",Ot,[t("div",Ft,[e[9]||(e[9]=t("span",{class:"label"},"下载路径:",-1)),t("span",Rt,i(d.task.downloadPath||"默认路径"),1)]),t("div",At,[e[10]||(e[10]=t("span",{class:"label"},"文件大小:",-1)),t("span",Ut,i(G()),1)]),t("div",Et,[e[11]||(e[11]=t("span",{class:"label"},"开始时间:",-1)),t("span",Gt,i(m()),1)]),d.task.completeTime?(v(),_("div",Kt,[e[12]||(e[12]=t("span",{class:"label"},"完成时间:",-1)),t("span",Xt,i(F(d.task.completeTime)),1)])):S("",!0)])):S("",!0)]),t("div",jt,[d.task.status==="downloading"?(v(),N(s,{key:0},{default:o(()=>[a(l,{size:"small",onClick:e[0]||(e[0]=B=>r.$emit("pause",d.task.id))},{icon:o(()=>[a(g(rt))]),default:o(()=>[e[13]||(e[13]=u(" 暂停 ",-1))]),_:1}),a(l,{size:"small",onClick:e[1]||(e[1]=B=>r.$emit("cancel",d.task.id))},{icon:o(()=>[a(g(Y))]),default:o(()=>[e[14]||(e[14]=u(" 取消 ",-1))]),_:1})]),_:1})):d.task.status==="paused"?(v(),N(s,{key:1},{default:o(()=>[a(l,{size:"small",type:"primary",onClick:e[2]||(e[2]=B=>r.$emit("resume",d.task.id))},{icon:o(()=>[a(g(dt))]),default:o(()=>[e[15]||(e[15]=u(" 继续 ",-1))]),_:1}),a(l,{size:"small",onClick:e[3]||(e[3]=B=>r.$emit("cancel",d.task.id))},{icon:o(()=>[a(g(Y))]),default:o(()=>[e[16]||(e[16]=u(" 取消 ",-1))]),_:1})]),_:1})):d.task.status==="failed"?(v(),N(s,{key:2},{default:o(()=>[a(l,{size:"small",type:"primary",onClick:e[4]||(e[4]=B=>r.$emit("retry",d.task.id))},{icon:o(()=>[a(g(ut))]),default:o(()=>[e[17]||(e[17]=u(" 重试 ",-1))]),_:1}),a(l,{size:"small",onClick:e[5]||(e[5]=B=>r.$emit("delete",d.task.id))},{icon:o(()=>[a(g(Q))]),default:o(()=>[e[18]||(e[18]=u(" 删除 ",-1))]),_:1})]),_:1})):d.task.status==="completed"?(v(),N(s,{key:3},{default:o(()=>[a(j,{onSelect:E},{content:o(()=>[a(y,{value:"download"},{icon:o(()=>[a(g(q))]),default:o(()=>[e[20]||(e[20]=u(" 下载TXT文件 ",-1))]),_:1}),a(y,{value:"gallery"},{icon:o(()=>[a(g(ct))]),default:o(()=>[e[21]||(e[21]=u(" 导出到书画柜 ",-1))]),_:1})]),default:o(()=>[a(l,{size:"small",type:"primary"},{icon:o(()=>[a(g(q))]),default:o(()=>[e[19]||(e[19]=u(" 导出 ",-1)),a(g(Z))]),_:1})]),_:1}),a(l,{size:"small",onClick:e[6]||(e[6]=B=>r.$emit("delete",d.task.id))},{icon:o(()=>[a(g(Q))]),default:o(()=>[e[22]||(e[22]=u(" 删除 ",-1))]),_:1})]),_:1})):d.task.status==="pending"?(v(),N(s,{key:4},{default:o(()=>[a(l,{size:"small",onClick:e[7]||(e[7]=B=>r.$emit("delete",d.task.id))},{icon:o(()=>[a(g(Q))]),default:o(()=>[e[23]||(e[23]=u(" 删除 ",-1))]),_:1})]),_:1})):S("",!0),a(l,{size:"small",onClick:e[8]||(e[8]=B=>r.$emit("view-chapters",d.task))},{icon:o(()=>[a(g(vt))]),default:o(()=>[e[24]||(e[24]=u(" 章节详情 ",-1))]),_:1}),a(l,{size:"small",onClick:U},{icon:o(()=>[C.value?(v(),N(g(kt),{key:1})):(v(),N(g(Z),{key:0}))]),default:o(()=>[u(" "+i(C.value?"收起":"详情"),1)]),_:1})])],2)}}},Ht=W(qt,[["__scopeId","data-v-c3fbae34"]]),Jt={key:0,class:"chapter-details"},Qt={class:"stats-section"},Wt={class:"stat-card"},Yt={class:"stat-number"},Zt={class:"stat-card success"},te={class:"stat-number"},ee={class:"stat-card warning"},se={class:"stat-number"},ae={class:"stat-card danger"},oe={class:"stat-number"},le={class:"stat-card"},ne={class:"stat-number"},ie={class:"filter-section"},re={class:"search-box"},de={class:"chapter-list"},ue={class:"list-body"},ce={class:"cell index"},ve={class:"cell name"},ke={class:"chapter-title"},me={key:0,class:"error-message"},fe={class:"cell status"},pe={key:0,class:"progress-mini"},ge={class:"cell size"},_e={class:"cell time"},Te={key:0,class:"time-info"},we={key:1,class:"time-info"},he={class:"cell actions"},ye={key:0,class:"batch-actions"},$e={key:0,class:"chapter-preview"},Ce={class:"preview-content"},be={__name:"ChapterDetailsDialog",props:{visible:{type:Boolean,default:!1},task:{type:Object,default:null}},emits:["close","retry-chapter"],setup(d,{emit:X}){const n=d,k=X,C=M("all"),z=M(""),I=M(!1),x=M(null),b=w(()=>n.task?.chapters?.filter(l=>l.status==="completed").length||0),A=w(()=>n.task?.chapters?.filter(l=>l.status==="downloading").length||0),L=w(()=>n.task?.chapters?.filter(l=>l.status==="failed").length||0),U=w(()=>n.task?.chapters?.filter(l=>l.status==="pending").length||0),E=w(()=>{if(!n.task?.chapters)return[];let l=n.task.chapters;if(C.value!=="all"&&(l=l.filter(s=>s.status===C.value)),z.value){const s=z.value.toLowerCase();l=l.filter(y=>(y.name||"").toLowerCase().includes(s))}return l}),F=l=>`status-${l.status||"pending"}`,R=l=>({pending:"gray",downloading:"blue",completed:"green",failed:"red"})[l]||"gray",G=l=>({pending:"等待中",downloading:"下载中",completed:"已完成",failed:"失败"})[l]||"未知",m=l=>{if(!l)return"-";const s=["B","KB","MB"],y=Math.floor(Math.log(l)/Math.log(1024));return Math.round(l/Math.pow(1024,y)*100)/100+" "+s[y]},r=l=>l?new Date(l).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"-",e=l=>{k("retry-chapter",n.task.id,l)},V=()=>{n.task.chapters.map((s,y)=>({chapter:s,index:y})).filter(({chapter:s})=>s.status==="failed").forEach(({index:s})=>{k("retry-chapter",n.task.id,s)})},D=l=>{x.value=l,I.value=!0};return(l,s)=>{const y=h("a-radio"),j=h("a-radio-group"),B=h("a-input"),H=h("a-tag"),P=h("a-progress"),c=h("a-button"),p=h("a-modal");return v(),N(p,{visible:d.visible,title:`章节详情 - ${d.task?.novelTitle||""}`,width:"900px",footer:!1,onCancel:s[3]||(s[3]=f=>l.$emit("close"))},{default:o(()=>[d.task?(v(),_("div",Jt,[t("div",Qt,[t("div",Wt,[t("div",Yt,i(d.task.totalChapters),1),s[4]||(s[4]=t("div",{class:"stat-label"},"总章节",-1))]),t("div",Zt,[t("div",te,i(b.value),1),s[5]||(s[5]=t("div",{class:"stat-label"},"已完成",-1))]),t("div",ee,[t("div",se,i(A.value),1),s[6]||(s[6]=t("div",{class:"stat-label"},"下载中",-1))]),t("div",ae,[t("div",oe,i(L.value),1),s[7]||(s[7]=t("div",{class:"stat-label"},"失败",-1))]),t("div",le,[t("div",ne,i(U.value),1),s[8]||(s[8]=t("div",{class:"stat-label"},"等待中",-1))])]),t("div",ie,[a(j,{modelValue:C.value,"onUpdate:modelValue":s[0]||(s[0]=f=>C.value=f),type:"button",size:"small"},{default:o(()=>[a(y,{value:"all"},{default:o(()=>[...s[9]||(s[9]=[u("全部",-1)])]),_:1}),a(y,{value:"completed"},{default:o(()=>[...s[10]||(s[10]=[u("已完成",-1)])]),_:1}),a(y,{value:"downloading"},{default:o(()=>[...s[11]||(s[11]=[u("下载中",-1)])]),_:1}),a(y,{value:"failed"},{default:o(()=>[...s[12]||(s[12]=[u("失败",-1)])]),_:1}),a(y,{value:"pending"},{default:o(()=>[...s[13]||(s[13]=[u("等待中",-1)])]),_:1})]),_:1},8,["modelValue"]),t("div",re,[a(B,{modelValue:z.value,"onUpdate:modelValue":s[1]||(s[1]=f=>z.value=f),placeholder:"搜索章节名称",size:"small",style:{width:"200px"}},{prefix:o(()=>[a(g(mt))]),_:1},8,["modelValue"])])]),t("div",de,[s[16]||(s[16]=t("div",{class:"list-header"},[t("div",{class:"header-cell index"},"序号"),t("div",{class:"header-cell name"},"章节名称"),t("div",{class:"header-cell status"},"状态"),t("div",{class:"header-cell size"},"大小"),t("div",{class:"header-cell time"},"时间"),t("div",{class:"header-cell actions"},"操作")],-1)),t("div",ue,[(v(!0),_(st,null,at(E.value,(f,O)=>(v(),_("div",{key:O,class:et(["chapter-row",F(f)])},[t("div",ce,i(O+1),1),t("div",ve,[t("span",ke,i(f.name||`第${O+1}章`),1),f.error?(v(),_("div",me,i(f.error),1)):S("",!0)]),t("div",fe,[a(H,{color:R(f.status)},{default:o(()=>[u(i(G(f.status)),1)]),_:2},1032,["color"]),f.status==="downloading"?(v(),_("div",pe,[a(P,{percent:f.progress||0,size:"mini","show-text":!1},null,8,["percent"])])):S("",!0)]),t("div",ge,i(m(f.size)),1),t("div",_e,[f.startTime?(v(),_("div",Te," 开始: "+i(r(f.startTime)),1)):S("",!0),f.completeTime?(v(),_("div",we," 完成: "+i(r(f.completeTime)),1)):S("",!0)]),t("div",he,[f.status==="failed"?(v(),N(c,{key:0,size:"mini",type:"primary",onClick:J=>e(O)},{default:o(()=>[...s[14]||(s[14]=[u(" 重试 ",-1)])]),_:1},8,["onClick"])):S("",!0),f.status==="completed"?(v(),N(c,{key:1,size:"mini",onClick:J=>D(f)},{default:o(()=>[...s[15]||(s[15]=[u(" 预览 ",-1)])]),_:1},8,["onClick"])):S("",!0)])],2))),128))])]),L.value>0?(v(),_("div",ye,[a(c,{type:"primary",onClick:V},{default:o(()=>[...s[17]||(s[17]=[u(" 重试所有失败章节 ",-1)])]),_:1})])):S("",!0)])):S("",!0),a(p,{visible:I.value,"onUpdate:visible":s[2]||(s[2]=f=>I.value=f),title:"章节预览",width:"600px",footer:!1},{default:o(()=>[x.value?(v(),_("div",$e,[t("h3",null,i(x.value.name),1),t("div",Ce,i(x.value.content||"暂无内容"),1)])):S("",!0)]),_:1},8,["visible"])]),_:1},8,["visible","title"])}}},Se=W(be,[["__scopeId","data-v-8e3375e7"]]),ze=ft("download",()=>{const d=M([]),X=M(!1),n=()=>{d.value=$.getAllTasks()},k=()=>{$.saveTasksToStorage()},C=m=>{const r=$.createTask(m);return n(),r},z=m=>{$.startTask(m),n()},I=m=>{$.pauseTask(m),n()},x=m=>{$.startTask(m),n()},b=m=>{$.cancelTask(m),n()},A=m=>{$.deleteTask(m),n()},L=m=>{$.startTask(m),n()},U=(m,r)=>{$.retryChapter(m,r),n()},E=async(m,r={})=>{try{const e=$.getTask(m);if(!e){T.error("任务不存在");return}if(e.status!=="completed"){T.error("只能导出已完成的任务");return}const V=$.generateTxtContent(m);if(!V){T.error("生成TXT内容失败");return}if(r.exportToGallery){const D={title:e.novelTitle,author:e.novelAuthor||"未知",description:e.novelDescription||"",cover:e.novelCover||"",content:V,fileName:`${e.settings.fileName||e.novelTitle}.txt`,addedAt:Date.now(),source:"download"},l=tt.addBookFromContent(D);if(l.success){const s=l.isOverwrite?"更新":"添加";return T.success(`《${e.novelTitle}》已${s}到书画柜`),{success:!0,action:"addToGallery",isOverwrite:l.isOverwrite}}else return l.duplicate?new Promise(s=>{pt.confirm({title:"图书已存在",content:`书画柜中已存在《${D.title}》(作者:${D.author}),是否要覆盖现有图书?`,okText:"覆盖",cancelText:"取消",onOk:()=>{tt.addBookFromContent(D,{allowOverwrite:!0}).success?(T.success(`《${e.novelTitle}》已更新到书画柜`),s({success:!0,action:"addToGallery",isOverwrite:!0})):(T.error("更新图书失败"),s({success:!1}))},onCancel:()=>{T.info("已取消导出"),s({success:!1,cancelled:!0})}})}):l.storageLimit?(T.error(l.message),{success:!1,storageLimit:!0}):(T.error(l.message||"添加图书失败"),{success:!1})}else{const D=$.exportToTxt(m);return T.success("TXT文件导出成功"),D}}catch(e){return console.error("导出任务失败:",e),T.error("导出失败: "+e.message),null}},F=()=>{d.value.filter(r=>r.status==="completed").forEach(r=>{$.deleteTask(r.id)}),n()},R=w(()=>$.getTaskStats()),G=m=>$.getTasksByStatus(m);return $.setTaskUpdateCallback(()=>{n()}),n(),{tasks:d,loading:X,taskStats:R,loadTasks:n,saveTasks:k,addTask:C,startTask:z,pauseTask:I,resumeTask:x,cancelTask:b,deleteTask:A,retryTask:L,retryChapter:U,exportTask:E,clearCompleted:F,getTasksByStatus:G}}),xe={class:"novel-downloader"},De={class:"downloader-header"},Be={class:"header-left"},Me={class:"downloader-title"},Ie={class:"download-stats"},Ve={class:"stat-item"},Ne={class:"stat-item"},Le={class:"stat-item"},Pe={class:"stat-item"},Oe={class:"header-right"},Fe={class:"filter-tabs"},Re={class:"filter-left"},Ae={key:0,class:"storage-stats"},Ue={class:"storage-info"},Ee={class:"storage-header"},Ge={class:"storage-progress"},Ke={class:"storage-details"},Xe={class:"storage-used"},je={class:"storage-available"},qe={class:"storage-total"},He={class:"download-list"},Je={key:0,class:"empty-state"},Qe={key:1},We={__name:"NovelDownloader",props:{visible:{type:Boolean,default:!1}},emits:["close"],setup(d,{emit:X}){const n=gt(),k=ze(),C=M("all"),z=M(!1),I=M(!1),x=M(null),b=M({}),A=w(()=>k.tasks.length),L=w(()=>k.tasks.filter(c=>c.status==="completed").length),U=w(()=>k.tasks.filter(c=>c.status==="downloading").length),E=w(()=>k.tasks.filter(c=>c.status==="failed").length),F=w(()=>k.tasks.filter(c=>c.status==="pending").length),R=w(()=>C.value==="all"?k.tasks:k.tasks.filter(c=>c.status===C.value)),G=w(()=>x.value?k.tasks.find(c=>c.id===x.value.id)||x.value:null),m=()=>{window.history.length>1?n.go(-1):n.push("/")},r=c=>{k.addTask(c),P(),z.value=!1,T.success("下载任务已添加")},e=c=>{k.retryTask(c),P(),T.info("正在重试下载任务")},V=c=>{k.pauseTask(c),P(),T.info("下载任务已暂停")},D=c=>{k.resumeTask(c),P(),T.info("下载任务已恢复")},l=c=>{k.cancelTask(c),P(),T.info("下载任务已取消")},s=c=>{k.deleteTask(c),P(),T.success("下载任务已删除")},y=async(c,p={})=>{await k.exportTask(c,p)},j=c=>{x.value=c,I.value=!0},B=(c,p)=>{k.retryChapter(c,p),T.info("正在重试章节下载")},H=()=>{k.clearCompleted(),P(),T.success("已清理完成的下载任务")},P=()=>{b.value=$.getStorageStats()};return _t(()=>{k.loadTasks(),P()}),Tt(()=>{k.saveTasks()}),(c,p)=>{const f=h("a-button"),O=h("a-radio"),J=h("a-radio-group"),ot=h("a-tag"),lt=h("a-progress"),nt=h("a-empty");return v(),_("div",xe,[t("div",De,[t("div",Be,[t("h2",Me,[a(g(q)),p[4]||(p[4]=u(" 小说下载器 ",-1))]),t("div",Ie,[t("span",Ve," 总任务: "+i(A.value),1),t("span",Ne," 已完成: "+i(L.value),1),t("span",Le," 进行中: "+i(U.value),1),t("span",Pe," 失败: "+i(E.value),1)])]),t("div",Oe,[a(f,{type:"primary",onClick:p[0]||(p[0]=K=>z.value=!0)},{icon:o(()=>[a(g(wt))]),default:o(()=>[p[5]||(p[5]=u(" 新建下载 ",-1))]),_:1}),a(f,{onClick:H,disabled:L.value===0},{default:o(()=>[...p[6]||(p[6]=[u(" 清理已完成 ",-1)])]),_:1},8,["disabled"]),a(f,{onClick:m},{icon:o(()=>[a(g(ht))]),default:o(()=>[p[7]||(p[7]=u(" 关闭 ",-1))]),_:1})])]),t("div",Fe,[t("div",Re,[a(J,{modelValue:C.value,"onUpdate:modelValue":p[1]||(p[1]=K=>C.value=K),type:"button"},{default:o(()=>[a(O,{value:"all"},{default:o(()=>[u("全部 ("+i(A.value)+")",1)]),_:1}),a(O,{value:"downloading"},{default:o(()=>[u("下载中 ("+i(U.value)+")",1)]),_:1}),a(O,{value:"completed"},{default:o(()=>[u("已完成 ("+i(L.value)+")",1)]),_:1}),a(O,{value:"failed"},{default:o(()=>[u("失败 ("+i(E.value)+")",1)]),_:1}),a(O,{value:"pending"},{default:o(()=>[u("等待中 ("+i(F.value)+")",1)]),_:1})]),_:1},8,["modelValue"])]),g(k).tasks.length>0?(v(),_("div",Ae,[t("div",Ue,[t("div",Ee,[a(g(q),{class:"storage-icon"}),p[8]||(p[8]=t("span",{class:"storage-title"},"本地储存空间",-1)),a(ot,{color:b.value.isOverLimit?"red":b.value.isNearLimit?"orange":"green",size:"small"},{default:o(()=>[u(i(Math.round(b.value.usagePercentage))+"% ",1)]),_:1},8,["color"])]),t("div",Ge,[a(lt,{percent:b.value.usagePercentage,color:b.value.isOverLimit?"#f53f3f":b.value.isNearLimit?"#ff7d00":"#00b42a","show-text":!1,size:"small"},null,8,["percent","color"])]),t("div",Ke,[t("span",Xe,"已用: "+i(b.value.formattedUsed),1),t("span",je,"可用: "+i(b.value.formattedAvailable),1),t("span",qe,"总计: "+i(b.value.formattedTotal),1)])])])):S("",!0)]),t("div",He,[R.value.length===0?(v(),_("div",Je,[a(nt,{description:"暂无下载任务"})])):(v(),_("div",Qe,[(v(!0),_(st,null,at(R.value,K=>(v(),N(Ht,{key:K.id,task:K,onRetry:e,onPause:V,onResume:D,onCancel:l,onDelete:s,onExport:y,onViewChapters:j},null,8,["task"]))),128))]))]),a(yt,{visible:z.value,onClose:p[2]||(p[2]=K=>z.value=!1),onConfirm:r},null,8,["visible"]),a(Se,{visible:I.value,task:G.value,onClose:p[3]||(p[3]=K=>I.value=!1),onRetryChapter:B},null,8,["visible","task"])])}}},Ze=W(We,[["__scopeId","data-v-23026e76"]]);export{Ze as default}; diff --git a/apps/drplayer/assets/index-BBH6CgD5.css b/apps/drplayer/assets/index-BBH6CgD5.css new file mode 100644 index 00000000..7da110b2 --- /dev/null +++ b/apps/drplayer/assets/index-BBH6CgD5.css @@ -0,0 +1,9 @@ +.search-settings[data-v-2ba355df]{padding:8px 0}.settings-header[data-v-2ba355df]{margin-bottom:16px;display:flex;align-items:flex-start;justify-content:space-between}.header-left[data-v-2ba355df]{flex:1}.header-left h4[data-v-2ba355df]{margin:0 0 8px;font-size:16px;font-weight:600;color:var(--color-text-1)}.settings-desc[data-v-2ba355df]{margin:0;font-size:14px;color:var(--color-text-3);line-height:1.5}.header-right[data-v-2ba355df]{flex-shrink:0;margin-left:24px}.search-tip[data-v-2ba355df]{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--color-fill-1);border-radius:6px;border:1px solid var(--color-border-2)}.tip-icon[data-v-2ba355df]{font-size:14px;color:var(--color-primary-6);flex-shrink:0}.tip-text[data-v-2ba355df]{font-size:12px;color:var(--color-text-2);line-height:1.4;white-space:nowrap}.sources-section[data-v-2ba355df]{margin-bottom:12px}.section-header[data-v-2ba355df]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--color-border-2)}.select-all-container[data-v-2ba355df]{display:flex;align-items:center;gap:12px}.selected-count[data-v-2ba355df]{font-size:13px;color:var(--color-text-3)}.header-actions[data-v-2ba355df]{display:flex;gap:8px}.search-filter-container[data-v-2ba355df]{margin-bottom:16px}.search-filter-container[data-v-2ba355df] .arco-input{border-radius:8px}.search-filter-container[data-v-2ba355df] .arco-input-prefix{color:var(--color-text-3)}.sources-list[data-v-2ba355df]{max-height:480px;overflow-y:auto;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-1);display:grid;grid-template-columns:1fr 1fr;gap:0}.source-item[data-v-2ba355df]{padding:12px;border-bottom:1px solid var(--color-border-2);border-right:1px solid var(--color-border-2);transition:background-color .2s ease}.source-item[data-v-2ba355df]:nth-child(odd){border-right:1px solid var(--color-border-2)}.source-item[data-v-2ba355df]:nth-child(2n){border-right:none}.source-item[data-v-2ba355df]:nth-last-child(-n+2){border-bottom:none}.source-item[data-v-2ba355df]:hover{background:var(--color-fill-1)}.source-item[data-v-2ba355df] .arco-checkbox{width:100%}.source-item[data-v-2ba355df] .arco-checkbox-label{width:100%;padding-left:8px}.source-info[data-v-2ba355df]{width:100%}.source-main[data-v-2ba355df]{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.source-name[data-v-2ba355df]{font-size:13px;font-weight:500;color:var(--color-text-1);flex:1;margin-right:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-tags[data-v-2ba355df]{display:flex;gap:4px;flex-shrink:0}.source-meta[data-v-2ba355df]{display:flex;gap:8px;flex-wrap:wrap}.meta-item[data-v-2ba355df]{font-size:11px;color:var(--color-text-3);background:var(--color-fill-2);padding:1px 6px;border-radius:3px}.empty-sources[data-v-2ba355df]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center;color:var(--color-text-3)}.empty-icon[data-v-2ba355df]{font-size:48px;color:var(--color-text-4);margin-bottom:16px}.empty-sources p[data-v-2ba355df]{margin:0 0 8px;font-size:14px}.empty-desc[data-v-2ba355df]{font-size:12px;color:var(--color-text-4)}.modal-footer[data-v-2ba355df]{display:flex;justify-content:flex-end;gap:12px}.sources-list[data-v-2ba355df]::-webkit-scrollbar{width:6px}.sources-list[data-v-2ba355df]::-webkit-scrollbar-track{background:var(--color-fill-2);border-radius:3px}.sources-list[data-v-2ba355df]::-webkit-scrollbar-thumb{background:var(--color-fill-4);border-radius:3px}.sources-list[data-v-2ba355df]::-webkit-scrollbar-thumb:hover{background:var(--color-fill-5)}@media (max-width: 768px){.section-header[data-v-2ba355df]{flex-direction:column;align-items:flex-start;gap:12px}.select-all-container[data-v-2ba355df]{width:100%}.search-filter-container[data-v-2ba355df]{margin-bottom:12px}.source-main[data-v-2ba355df]{flex-direction:column;align-items:flex-start;gap:8px}.source-tags[data-v-2ba355df]{align-self:flex-end}.modal-footer[data-v-2ba355df]{flex-direction:column}.modal-footer .arco-btn[data-v-2ba355df]{width:100%}}.header[data-v-fee61331]{display:flex;justify-content:space-between;align-items:center;width:100%;height:64px;padding:0;background:var(--color-bg-3);box-shadow:0 1px 4px #00000014;border-bottom:1px solid var(--color-border-2);border:none}.header-left[data-v-fee61331]{display:flex;align-items:center;padding-left:20px;min-width:200px;gap:8px}.search-page-title[data-v-fee61331]{font-size:16px;font-weight:600;color:var(--color-text-1);margin-left:12px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;align-items:center}.header-center[data-v-fee61331]{flex:1;display:flex;justify-content:center;align-items:center;max-width:600px;margin:0 20px}.header-right[data-v-fee61331]{display:flex;align-items:center;padding-right:20px;min-width:200px;justify-content:flex-end;gap:8px}.header-left[data-v-fee61331] .arco-btn,.header-right[data-v-fee61331] .arco-btn{width:32px;height:32px;border-radius:6px;border:1px solid var(--color-border-2);background:var(--color-bg-2);color:var(--color-text-1);transition:all .2s ease;display:flex;align-items:center;justify-content:center}.header-left[data-v-fee61331] .arco-btn:hover,.header-right[data-v-fee61331] .arco-btn:hover{background:var(--color-fill-3);border-color:var(--color-border-3);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.header-left[data-v-fee61331] .arco-btn:active,.header-right[data-v-fee61331] .arco-btn:active{transform:translateY(0);background:var(--color-fill-4)}.header-right[data-v-fee61331] .arco-btn:last-child{background:#ff4757;border-color:#ff3742;color:#fff}.header-right[data-v-fee61331] .arco-btn:last-child:hover{background:#ff3742;border-color:#ff2f3a;box-shadow:0 2px 8px #ff47574d}.search-container[data-v-fee61331]{display:flex;align-items:center;gap:0;width:100%;max-width:450px;border:1px solid var(--color-border-2);border-radius:8px;background:var(--color-bg-1);padding:4px;box-shadow:0 1px 4px #0000000d;transition:all .2s ease}.search-container[data-v-fee61331]:hover{border-color:var(--color-border-3);box-shadow:0 2px 8px #0000001a}.search-container[data-v-fee61331] .arco-input-search{flex:1;border-radius:4px;background:transparent;border:none;box-shadow:none;transition:all .2s ease;cursor:pointer}.search-container[data-v-fee61331] .arco-input-search:hover{background:transparent;border:none;box-shadow:none}.header-center.search-page-mode .search-container[data-v-fee61331] .arco-input-search{border-radius:10px;box-shadow:0 2px 8px #00000014}.header-center.search-page-mode .search-container[data-v-fee61331] .arco-input-search .arco-input-wrapper{border:2px solid var(--color-border-2);transition:all .2s ease}.header-center.search-page-mode .search-container[data-v-fee61331] .arco-input-search .arco-input-wrapper:focus-within{border-color:var(--color-primary-6);box-shadow:0 0 0 3px rgba(var(--primary-6),.1)}.search-settings-btn[data-v-fee61331]{width:32px!important;height:32px!important;border-radius:4px!important;border:none!important;background:transparent!important;color:var(--color-text-2)!important;transition:all .2s ease!important;flex-shrink:0;margin-left:4px}.search-settings-btn[data-v-fee61331]:hover{background:var(--color-fill-2)!important;border:none!important;color:var(--color-text-1)!important;transform:none;box-shadow:none!important}.search-settings-btn[data-v-fee61331]:active{transform:none!important;background:var(--color-fill-3)!important}.close-search-btn[data-v-fee61331]{width:32px!important;height:32px!important;border-radius:4px!important;border:none!important;background:transparent!important;color:var(--color-text-2)!important;transition:all .2s ease!important;flex-shrink:0;margin-left:4px}.close-search-btn[data-v-fee61331]:hover{background:var(--color-danger-light-1)!important;border:none!important;color:var(--color-danger-6)!important;transform:none;box-shadow:none!important}.close-search-btn[data-v-fee61331]:active{transform:none!important;background:var(--color-danger-light-2)!important}.search-container[data-v-fee61331]:focus-within{border-color:var(--color-primary-6);box-shadow:0 0 0 2px var(--color-primary-1)}.search-container[data-v-fee61331] .arco-input-search:focus-within{border:none;box-shadow:none}.search-container[data-v-fee61331] .arco-input-wrapper{border-radius:8px;background:transparent;border:none}.search-container[data-v-fee61331] .arco-input{background:transparent;border:none;color:var(--color-text-1);font-size:14px}.search-container[data-v-fee61331] .arco-input::-moz-placeholder{color:var(--color-text-3)}.search-container[data-v-fee61331] .arco-input::placeholder{color:var(--color-text-3)}.search-container[data-v-fee61331] .arco-input-search-btn{border-radius:0 8px 8px 0;background:var(--color-primary-6);border:none;color:#fff;transition:background-color .2s ease}.search-container[data-v-fee61331] .arco-input-search-btn:hover{background:var(--color-primary-7)}.confirm-modal-overlay[data-v-fee61331]{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn-fee61331 .3s ease-out}.confirm-modal[data-v-fee61331]{background:var(--color-bg-1);border-radius:12px;box-shadow:0 20px 40px #0000004d;min-width:400px;max-width:500px;padding:0;animation:slideIn-fee61331 .3s ease-out;border:1px solid var(--color-border-2)}.modal-header[data-v-fee61331]{display:flex;align-items:center;padding:24px 24px 16px;border-bottom:1px solid var(--color-border-2)}.warning-icon[data-v-fee61331]{font-size:24px;color:#ff6b35;margin-right:12px}.modal-title[data-v-fee61331]{margin:0;font-size:18px;font-weight:600;color:var(--color-text-1)}.modal-content[data-v-fee61331]{padding:20px 24px}.modal-message[data-v-fee61331]{margin:0 0 8px;font-size:16px;color:var(--color-text-1);line-height:1.5}.modal-submessage[data-v-fee61331]{margin:0;font-size:14px;color:var(--color-text-3);line-height:1.4}.modal-footer[data-v-fee61331]{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px 24px;border-top:1px solid var(--color-border-2)}.cancel-btn[data-v-fee61331]{min-width:80px;height:36px;border-radius:6px;font-weight:500}.clear-cache-btn[data-v-fee61331]{min-width:90px;height:36px;border-radius:6px;font-weight:500}.confirm-btn[data-v-fee61331]{min-width:100px;height:36px;border-radius:6px;font-weight:500}@keyframes fadeIn-fee61331{0%{opacity:0}to{opacity:1}}@keyframes slideIn-fee61331{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 768px){.header-left[data-v-fee61331],.header-right[data-v-fee61331]{min-width:120px}.header-center[data-v-fee61331]{margin:0 10px}.search-container[data-v-fee61331]{max-width:280px}.confirm-modal[data-v-fee61331]{min-width:320px;max-width:90vw;margin:20px}}@media (max-width: 480px){.header-left[data-v-fee61331],.header-right[data-v-fee61331]{min-width:80px;gap:4px}.header-left[data-v-fee61331]{padding-left:10px}.header-right[data-v-fee61331]{padding-right:10px}.header-center[data-v-fee61331]{margin:0 5px}.search-container[data-v-fee61331]{max-width:220px}.header-left[data-v-fee61331] .arco-btn,.header-right[data-v-fee61331] .arco-btn{width:28px;height:28px}.confirm-modal[data-v-fee61331]{min-width:280px;margin:16px}.modal-header[data-v-fee61331],.modal-content[data-v-fee61331],.modal-footer[data-v-fee61331]{padding-left:20px;padding-right:20px}.modal-footer[data-v-fee61331]{flex-direction:column;gap:8px}.cancel-btn[data-v-fee61331],.confirm-btn[data-v-fee61331]{width:100%}}.footer-content[data-v-3b2cc39c]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.pagination-stats[data-v-3b2cc39c]{display:flex;align-items:center;justify-content:center;width:100%}.stats-text[data-v-3b2cc39c]{font-size:13px;color:var(--color-text-2);font-weight:500}.default-footer[data-v-3b2cc39c]{display:flex;align-items:center;justify-content:center;width:100%;color:var(--color-text-2);font-size:13px}.footer-info[data-v-3b2cc39c]{display:flex;align-items:center;gap:12px;padding:0 16px;background:linear-gradient(135deg,#6366f10d,#8b5cf60d);border-radius:20px;border:1px solid rgba(99,102,241,.1);transition:all .3s ease}.footer-info[data-v-3b2cc39c]:hover{background:linear-gradient(135deg,#6366f114,#8b5cf614);border-color:#6366f133;transform:translateY(-1px);box-shadow:0 2px 8px #6366f11a}.copyright-section[data-v-3b2cc39c],.project-section[data-v-3b2cc39c],.license-section[data-v-3b2cc39c]{display:flex;align-items:center;gap:4px}.footer-icon[data-v-3b2cc39c]{font-size:14px;color:var(--color-primary-6);transition:all .3s ease}.copyright-text[data-v-3b2cc39c],.license-text[data-v-3b2cc39c]{font-size:13px;color:var(--color-text-2);font-weight:500;transition:color .3s ease}.project-link[data-v-3b2cc39c]{font-size:13px;color:var(--color-primary-6);text-decoration:none;font-weight:500;transition:all .3s ease;position:relative}.project-link[data-v-3b2cc39c]:hover{color:var(--color-primary-7);transform:translateY(-1px)}.project-link[data-v-3b2cc39c]:after{content:"";position:absolute;bottom:-2px;left:0;width:0;height:1px;background:var(--color-primary-6);transition:width .3s ease}.project-link[data-v-3b2cc39c]:hover:after{width:100%}.separator[data-v-3b2cc39c]{color:var(--color-border-3);font-size:12px;opacity:.6}@media (max-width: 768px){.footer-info[data-v-3b2cc39c]{gap:8px;padding:0 12px;font-size:12px}.footer-icon[data-v-3b2cc39c],.copyright-text[data-v-3b2cc39c],.license-text[data-v-3b2cc39c],.project-link[data-v-3b2cc39c]{font-size:12px}}@media (max-width: 480px){.footer-info[data-v-3b2cc39c]{flex-direction:column;gap:4px;padding:8px 12px}.separator[data-v-3b2cc39c]{display:none}.copyright-section[data-v-3b2cc39c],.project-section[data-v-3b2cc39c],.license-section[data-v-3b2cc39c]{gap:3px}}.app-container[data-v-c3e63595]{height:100vh;width:100vw;overflow:hidden;position:relative}.fixed-header[data-v-c3e63595]{position:fixed;top:0;left:0;right:0;width:100vw;height:64px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border);z-index:1000;padding:0;display:flex;align-items:center}.layout-demo[data-v-c3e63595]{height:calc(100vh - 64px);background:var(--color-fill-2);border:1px solid var(--color-border);margin-top:64px;display:flex}.fixed-sider[data-v-c3e63595]{position:fixed!important;left:0;top:64px;bottom:0;z-index:999}.main-content[data-v-c3e63595]{flex:1;margin-left:200px;display:flex;flex-direction:column;height:100%;overflow:hidden;transition:margin-left .2s ease}.main-content.sider-collapsed[data-v-c3e63595]{margin-left:48px}.content-wrapper[data-v-c3e63595]{flex:1;overflow-y:auto;overflow-x:hidden;padding:0 24px 16px;background:var(--color-bg-3)}.content-wrapper.search-page[data-v-c3e63595],.content-wrapper.download-manager-page[data-v-c3e63595]{overflow:hidden;padding:0}.fixed-footer[data-v-c3e63595]{height:48px;background:var(--color-bg-3);border-top:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;color:var(--color-text-2);font-weight:400;font-size:14px;flex-shrink:0}.layout-demo[data-v-c3e63595] .arco-layout-sider .logo{margin:12px;background:#fff3;text-align:center;max-width:100px}.layout-demo[data-v-c3e63595] .arco-layout-sider-light .logo{background:var(--color-fill-2)}.layout-demo[data-v-c3e63595] .arco-layout-sider-light .logo img{max-width:100px}@media (max-width: 768px){.main-content[data-v-c3e63595]{margin-left:0}.fixed-sider[data-v-c3e63595]{transform:translate(-100%);transition:transform .3s ease}.layout-demo[data-v-c3e63595] .arco-layout-sider-collapsed{transform:translate(0)}}.action-toast[data-v-0de7c39c]{position:fixed!important;top:20px!important;left:50%!important;transform:translate(-50%)!important;padding:12px 24px;border-radius:6px;color:#fff;font-size:14px;z-index:99999!important;max-width:400px;text-align:center;box-shadow:0 4px 12px #00000026;pointer-events:none}.action-toast.success[data-v-0de7c39c]{background:#52c41a}.action-toast.error[data-v-0de7c39c]{background:#f5222d}.action-toast.warning[data-v-0de7c39c]{background:#faad14}.action-toast.info[data-v-0de7c39c]{background:#1890ff}.action-toast-enter-active[data-v-0de7c39c],.action-toast-leave-active[data-v-0de7c39c]{transition:all .3s ease}.action-toast-enter-from[data-v-0de7c39c],.action-toast-leave-to[data-v-0de7c39c]{opacity:0;transform:translate(-50%) translateY(-20px)}.floating-button[data-v-e26c6722]{position:fixed;width:40px;height:40px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px #00000026;transition:all .3s ease;z-index:999;-webkit-user-select:none;-moz-user-select:none;user-select:none}.floating-button[data-v-e26c6722]:hover{transform:scale(1.1);box-shadow:0 6px 20px #0003}.button-icon[data-v-e26c6722]{color:#fff;font-size:18px}.floating-window[data-v-e26c6722]{position:fixed;background:#fff;border-radius:8px;box-shadow:0 8px 32px #0003;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:1px solid #e0e0e0}.window-header[data-v-e26c6722]{height:40px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:space-between;padding:0 12px;cursor:move;color:#fff}.window-title[data-v-e26c6722]{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}.title-icon[data-v-e26c6722]{font-size:16px}.window-controls[data-v-e26c6722]{display:flex;gap:4px}.control-btn[data-v-e26c6722]{width:24px;height:24px;border:none;background:#fff3;color:#fff;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.control-btn[data-v-e26c6722]:hover{background:#ffffff4d}.close-btn[data-v-e26c6722]:hover{background:#ff4757}.window-content[data-v-e26c6722]{height:calc(100% - 40px);overflow:hidden}.iframe-content[data-v-e26c6722]{width:100%;height:100%;border:none}.resize-handle[data-v-e26c6722]{position:absolute;background:transparent}.resize-se[data-v-e26c6722]{bottom:0;right:0;width:12px;height:12px;cursor:se-resize}.resize-se[data-v-e26c6722]:after{content:"";position:absolute;bottom:2px;right:2px;width:8px;height:8px;background:linear-gradient(-45deg,transparent 0%,transparent 40%,#ccc 40%,#ccc 60%,transparent 60%,transparent 100%)}@media (max-width: 768px){.floating-window[data-v-e26c6722]{width:90vw!important;height:70vh!important;left:5vw!important;top:15vh!important}.floating-button[data-v-e26c6722]{width:36px;height:36px}.button-icon[data-v-e26c6722]{font-size:16px}}.floating-button[data-v-e26c6722],.window-header[data-v-e26c6722],.resize-handle[data-v-e26c6722]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.action-doc-card[data-v-d143db2b]{margin-bottom:20px}.card-container[data-v-d143db2b]{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;box-shadow:0 8px 32px #0000001a;transition:all .3s ease}.card-container[data-v-d143db2b]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.card-title[data-v-d143db2b]{display:flex;align-items:center;color:#fff;font-weight:600;font-size:16px}.title-icon[data-v-d143db2b]{margin-right:8px;font-size:18px}.expand-btn[data-v-d143db2b]{color:#fff!important;border:1px solid rgba(255,255,255,.3)!important;background:#ffffff1a!important;transition:all .3s ease}.expand-btn[data-v-d143db2b]:hover{background:#fff3!important;border-color:#ffffff80!important}.card-content[data-v-d143db2b]{color:#fff}.overview-section[data-v-d143db2b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:20px;margin-bottom:20px}.overview-item[data-v-d143db2b]{text-align:center;padding:15px;background:#ffffff1a;border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.overview-label[data-v-d143db2b]{font-size:12px;opacity:.8;margin-bottom:5px}.overview-value[data-v-d143db2b]{font-size:24px;font-weight:700}.quick-nav[data-v-d143db2b]{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.nav-tag[data-v-d143db2b]{cursor:pointer;transition:all .3s ease}.nav-tag[data-v-d143db2b]:hover{transform:scale(1.05)}.expanded-content[data-v-d143db2b]{margin-top:20px}.section[data-v-d143db2b]{margin-bottom:30px;padding:20px;background:#ffffff0d;border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.section-title[data-v-d143db2b]{display:flex;align-items:center;margin-bottom:15px;color:#fff;font-size:18px;font-weight:600}.section-icon[data-v-d143db2b]{margin-right:8px;font-size:20px}.concept-grid[data-v-d143db2b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px}.concept-item[data-v-d143db2b]{padding:15px;background:#ffffff1a;border-radius:6px}.concept-title[data-v-d143db2b]{font-weight:600;margin-bottom:8px;color:gold}.concept-desc[data-v-d143db2b]{font-size:14px;line-height:1.5;opacity:.9}.action-types-grid[data-v-d143db2b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:15px}.action-type-card[data-v-d143db2b]{background:#ffffff1a!important;border:1px solid rgba(255,255,255,.2)!important}.action-type-header[data-v-d143db2b]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.action-type-code[data-v-d143db2b]{font-family:Courier New,monospace;background:#0000004d;padding:2px 6px;border-radius:4px;font-size:12px;color:gold}.action-type-desc[data-v-d143db2b]{color:#fff;margin-bottom:8px;font-size:14px}.action-type-usage[data-v-d143db2b]{color:#fffc;font-size:12px}.special-actions-list[data-v-d143db2b]{display:flex;flex-direction:column;gap:15px}.special-action-item[data-v-d143db2b]{padding:15px;background:#ffffff1a;border-radius:6px;border-left:4px solid #ffd700}.special-action-header[data-v-d143db2b]{display:flex;align-items:center;gap:10px;margin-bottom:8px}.action-id[data-v-d143db2b]{background:#0000004d;padding:4px 8px;border-radius:4px;font-family:Courier New,monospace;color:gold;font-size:12px}.action-name[data-v-d143db2b]{font-weight:600;color:#fff}.special-action-desc[data-v-d143db2b]{margin-bottom:8px;font-size:14px;opacity:.9}.special-action-params[data-v-d143db2b]{font-size:12px;opacity:.8}.param-tag[data-v-d143db2b]{display:inline-block;background:#fff3;padding:2px 6px;margin:0 4px 4px 0;border-radius:3px;font-family:Courier New,monospace}.params-grid[data-v-d143db2b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px}.param-item[data-v-d143db2b]{padding:12px;background:#ffffff1a;border-radius:6px}.param-header[data-v-d143db2b]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.param-name[data-v-d143db2b]{font-family:Courier New,monospace;background:#0000004d;padding:2px 6px;border-radius:4px;color:gold;font-size:12px}.param-desc[data-v-d143db2b]{font-size:14px;opacity:.9}.example-tabs[data-v-d143db2b]{background:#ffffff1a;border-radius:6px;padding:15px}.code-block[data-v-d143db2b]{background:#0000004d;padding:15px;border-radius:6px;color:gold;font-family:Courier New,monospace;font-size:12px;line-height:1.5;overflow-x:auto;white-space:pre-wrap}[data-v-d143db2b] .arco-card-header{background:transparent!important;border-bottom:1px solid rgba(255,255,255,.1)!important}[data-v-d143db2b] .arco-card-body{background:transparent!important}[data-v-d143db2b] .arco-tabs-nav{background:#ffffff1a!important}[data-v-d143db2b] .arco-tabs-tab{color:#fffc!important}[data-v-d143db2b] .arco-tabs-tab-active{color:#fff!important}[data-v-d143db2b] .arco-tabs-content{background:transparent!important}.home-container[data-v-217d9b8b]{height:100%;display:flex;flex-direction:column;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);min-height:100%}.dashboard-header[data-v-217d9b8b]{position:sticky;top:0;z-index:100;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--color-border-2);padding:20px 0;margin:0 -24px}.header-content[data-v-217d9b8b]{display:flex;justify-content:space-between;align-items:center;max-width:none;margin:0;padding:0 24px}.welcome-section[data-v-217d9b8b]{flex:1}.dashboard-title[data-v-217d9b8b]{font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px;display:flex;align-items:center;gap:12px}.title-icon[data-v-217d9b8b]{color:var(--color-primary-6);font-size:32px}.dashboard-subtitle[data-v-217d9b8b]{font-size:14px;color:var(--color-text-3);margin:0}.quick-stats[data-v-217d9b8b]{display:flex;gap:32px;align-items:center}.dashboard-content[data-v-217d9b8b]{flex:1;overflow-y:auto;padding:24px 0;margin:0 -24px}.content-grid[data-v-217d9b8b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;max-width:none;margin:0;padding:0 24px}.dashboard-card[data-v-217d9b8b]{background:#fff;border-radius:12px;box-shadow:0 4px 12px #0000000d;border:1px solid var(--color-border-2);overflow:hidden;transition:all .3s ease}.dashboard-card[data-v-217d9b8b]:hover{box-shadow:0 8px 24px #0000001a;transform:translateY(-2px)}.card-header[data-v-217d9b8b]{padding:20px 24px 16px;border-bottom:1px solid var(--color-border-2);display:flex;justify-content:space-between;align-items:center}.card-title[data-v-217d9b8b]{font-size:16px;font-weight:600;color:var(--color-text-1);margin:0;display:flex;align-items:center;gap:8px}.card-icon[data-v-217d9b8b]{color:var(--color-primary-6);font-size:18px}.card-content[data-v-217d9b8b]{padding:20px 24px 24px}.watch-stats-card[data-v-217d9b8b]{grid-column:span 2}.stat-item[data-v-217d9b8b]{text-align:center;min-width:80px}.stat-value[data-v-217d9b8b]{font-size:24px;font-weight:600;color:var(--color-text-1);line-height:1;margin-bottom:4px}.stat-value.positive[data-v-217d9b8b]{color:var(--color-success-6)}.stat-value.negative[data-v-217d9b8b]{color:var(--color-danger-6)}.stat-label[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3);line-height:1}.chart[data-v-217d9b8b]{width:100%;height:300px}.update-log-card[data-v-217d9b8b]{grid-column:span 1}.timeline-content[data-v-217d9b8b]{margin-bottom:16px}.timeline-header[data-v-217d9b8b]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.version-tag[data-v-217d9b8b]{background:var(--color-primary-1);color:var(--color-primary-6);padding:2px 8px;border-radius:4px;font-size:12px;font-weight:500}.update-date[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3)}.update-title[data-v-217d9b8b]{font-size:14px;font-weight:500;color:var(--color-text-1);margin:0 0 8px}.update-description[data-v-217d9b8b]{font-size:13px;color:var(--color-text-2);margin:0 0 12px;line-height:1.5}.update-changes[data-v-217d9b8b]{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.more-changes[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3)}.recommend-card[data-v-217d9b8b]{grid-column:span 2}.recommend-grid[data-v-217d9b8b]{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.recommend-item[data-v-217d9b8b]{cursor:pointer;border-radius:8px;overflow:hidden;transition:all .3s ease;background:var(--color-bg-2)}.recommend-item[data-v-217d9b8b]:hover{transform:translateY(-4px);box-shadow:0 8px 20px #0000001a}.recommend-poster[data-v-217d9b8b]{position:relative;width:100%;height:120px;overflow:hidden}.poster-placeholder[data-v-217d9b8b]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:24px;font-weight:600;text-shadow:0 2px 4px rgba(0,0,0,.3)}.recommend-overlay[data-v-217d9b8b]{position:absolute;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease}.recommend-item:hover .recommend-overlay[data-v-217d9b8b]{opacity:1}.play-icon[data-v-217d9b8b]{color:#fff;font-size:32px}.trending-badge[data-v-217d9b8b]{position:absolute;top:8px;right:8px;background:linear-gradient(45deg,#ff6b6b,#ff8e53);color:#fff;padding:2px 6px;border-radius:4px;font-size:10px;font-weight:500}.recommend-info[data-v-217d9b8b]{padding:12px}.recommend-title[data-v-217d9b8b]{font-size:14px;font-weight:500;color:var(--color-text-1);margin:0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recommend-meta[data-v-217d9b8b]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.recommend-rating[data-v-217d9b8b]{display:flex;align-items:center;gap:2px;font-size:12px;color:var(--color-text-2)}.recommend-tags[data-v-217d9b8b]{display:flex;gap:4px;flex-wrap:wrap}.keywords-card[data-v-217d9b8b]{grid-column:span 1}.keywords-list[data-v-217d9b8b]{display:flex;flex-direction:column;gap:12px}.keyword-item[data-v-217d9b8b]{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:all .2s ease}.keyword-item[data-v-217d9b8b]:hover{background:var(--color-bg-2)}.keyword-rank[data-v-217d9b8b]{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;background:var(--color-fill-3);color:var(--color-text-2)}.keyword-rank.top-three[data-v-217d9b8b]{background:linear-gradient(45deg,#ff6b6b,#ff8e53);color:#fff}.keyword-content[data-v-217d9b8b]{flex:1;display:flex;justify-content:space-between;align-items:center}.keyword-text[data-v-217d9b8b]{font-size:14px;color:var(--color-text-1);font-weight:500}.keyword-meta[data-v-217d9b8b]{display:flex;align-items:center;gap:8px}.keyword-count[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3)}.keyword-trend[data-v-217d9b8b]{display:flex;align-items:center}.keyword-trend.up[data-v-217d9b8b]{color:var(--color-success-6)}.keyword-trend.down[data-v-217d9b8b]{color:var(--color-danger-6)}.keyword-trend.stable[data-v-217d9b8b]{color:var(--color-text-3)}.system-status-card[data-v-217d9b8b]{grid-column:span 1}.status-grid[data-v-217d9b8b]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.status-item[data-v-217d9b8b]{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;background:var(--color-bg-2)}.status-icon[data-v-217d9b8b]{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}.status-icon.online[data-v-217d9b8b]{background:var(--color-success-1);color:var(--color-success-6)}.status-icon.warning[data-v-217d9b8b]{background:var(--color-warning-1);color:var(--color-warning-6)}.status-icon.error[data-v-217d9b8b]{background:var(--color-danger-1);color:var(--color-danger-6)}.status-info[data-v-217d9b8b]{flex:1}.status-label[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3);margin-bottom:2px}.status-value[data-v-217d9b8b]{font-size:14px;font-weight:500;color:var(--color-text-1)}@media (max-width: 1200px){.content-grid[data-v-217d9b8b]{grid-template-columns:1fr}.watch-stats-card[data-v-217d9b8b],.recommend-card[data-v-217d9b8b]{grid-column:span 1}.quick-stats[data-v-217d9b8b]{gap:20px}}@media (max-width: 768px){.dashboard-header[data-v-217d9b8b]{padding:16px 0}.header-content[data-v-217d9b8b]{flex-direction:column;gap:16px;align-items:flex-start;padding:0 20px}.quick-stats[data-v-217d9b8b]{align-self:stretch;justify-content:space-around}.dashboard-content[data-v-217d9b8b]{padding:16px 0}.content-grid[data-v-217d9b8b]{padding:0 20px}.content-grid[data-v-217d9b8b]{gap:16px}.card-header[data-v-217d9b8b],.card-content[data-v-217d9b8b]{padding:16px 20px}.recommend-grid[data-v-217d9b8b]{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.status-grid[data-v-217d9b8b]{grid-template-columns:1fr;gap:12px}}.update-log-modal[data-v-217d9b8b]{max-height:500px;overflow-y:auto}.update-log-modal .timeline-content[data-v-217d9b8b]{padding-bottom:20px}.update-log-modal .timeline-header[data-v-217d9b8b]{display:flex;align-items:center;gap:12px;margin-bottom:8px}.update-log-modal .type-tag[data-v-217d9b8b]{margin-left:auto}.update-log-modal .update-title[data-v-217d9b8b]{margin:8px 0;font-size:16px;font-weight:600;color:var(--color-text-1)}.update-log-modal .update-description[data-v-217d9b8b]{margin:8px 0;color:var(--color-text-2);line-height:1.5}.update-log-modal .update-changes[data-v-217d9b8b]{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.update-log-modal .change-tag[data-v-217d9b8b]{margin:0}.keywords-modal[data-v-217d9b8b]{max-height:500px;overflow-y:auto}.keywords-modal .keywords-list[data-v-217d9b8b]{display:flex;flex-direction:column;gap:12px}.keywords-modal .keyword-item[data-v-217d9b8b]{display:flex;align-items:center;gap:16px;padding:12px 16px;border-radius:8px;background:var(--color-bg-2);cursor:pointer;transition:all .2s ease}.keywords-modal .keyword-item[data-v-217d9b8b]:hover{background:var(--color-bg-3);transform:translateY(-1px)}.keywords-modal .keyword-rank[data-v-217d9b8b]{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;background:var(--color-fill-3);color:var(--color-text-2)}.keywords-modal .keyword-rank.top-three[data-v-217d9b8b]{background:linear-gradient(135deg,#ff6b6b,#ffa726);color:#fff}.keywords-modal .keyword-content[data-v-217d9b8b]{flex:1;display:flex;justify-content:space-between;align-items:center}.keywords-modal .keyword-text[data-v-217d9b8b]{font-size:16px;font-weight:500;color:var(--color-text-1)}.keywords-modal .keyword-meta[data-v-217d9b8b]{display:flex;align-items:center;gap:12px}.keywords-modal .keyword-count[data-v-217d9b8b]{font-size:14px;color:var(--color-text-3)}.keywords-modal .keyword-trend[data-v-217d9b8b]{display:flex;align-items:center;font-size:16px}.keywords-modal .keyword-trend.up[data-v-217d9b8b]{color:var(--color-success-6)}.keywords-modal .keyword-trend.down[data-v-217d9b8b]{color:var(--color-danger-6)}.keywords-modal .keyword-trend.stable[data-v-217d9b8b]{color:var(--color-text-3)}.change_rule_dialog .arco-modal-body{padding:20px!important}.change_rule_dialog .arco-modal-header{border-bottom:1px solid var(--color-border-2);padding:16px 20px}.change_rule_dialog .arco-modal-footer{border-top:1px solid var(--color-border-2);padding:16px 20px}.search-section[data-v-105ac4df]{margin-bottom:16px}.search-row[data-v-105ac4df]{display:flex;gap:8px;margin-bottom:8px}.site_filter_input[data-v-105ac4df]{flex:1}.tag-button[data-v-105ac4df]{min-width:60px}.source-count[data-v-105ac4df]{font-size:13px;color:var(--color-text-3);text-align:center}.sources-section[data-v-105ac4df]{min-height:180px;max-height:400px;overflow-y:auto}.empty-state[data-v-105ac4df]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:180px;color:var(--color-text-3)}.empty-state p[data-v-105ac4df]{margin-top:8px;font-size:13px}.button-container[data-v-105ac4df]{display:grid;gap:8px;padding:4px 0;grid-template-columns:repeat(4,1fr);width:100%;box-sizing:border-box;overflow:hidden}.btn-item[data-v-105ac4df]{position:relative}.btn-item.selected[data-v-105ac4df]{transform:scale(1.02);transition:transform .2s ease}.source-button[data-v-105ac4df]{width:100%;min-height:44px;max-height:60px;border-radius:6px;transition:all .2s ease;position:relative;overflow:hidden;padding:6px 8px;box-sizing:border-box;min-width:0}.source-button[data-v-105ac4df]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f}.source-info[data-v-105ac4df]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;position:relative;padding:2px}.source-name[data-v-105ac4df]{font-weight:500;font-size:12px;text-align:center;line-height:1.3;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all;-webkit-hyphens:auto;hyphens:auto}.current-source-button[data-v-105ac4df]{background:#52c41a!important;border-color:#52c41a!important;color:#fff!important;box-shadow:0 2px 8px #52c41a4d!important}.current-source-button[data-v-105ac4df]:hover{background:#389e0d!important;transform:translateY(-2px);box-shadow:0 4px 12px #52c41a66!important}.current-icon[data-v-105ac4df]{position:absolute;top:-6px;left:-6px;background:#52c41a;color:#fff;font-size:12px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px #0003;z-index:10}.dialog-footer[data-v-105ac4df]{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.footer-left[data-v-105ac4df]{display:flex}.footer-right[data-v-105ac4df]{display:flex;gap:8px}@media (max-width: 1200px){.button-container[data-v-105ac4df]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 768px){.button-container[data-v-105ac4df]{grid-template-columns:repeat(3,1fr);gap:6px}.source-button[data-v-105ac4df]{min-height:40px;max-height:56px;padding:4px 6px}.source-name[data-v-105ac4df]{font-size:11px;line-height:1.2}.current-icon[data-v-105ac4df]{font-size:10px;width:16px;height:16px;top:-4px;left:-4px}.dialog-footer[data-v-105ac4df]{flex-direction:column;gap:8px;margin-top:12px}.footer-right[data-v-105ac4df]{width:100%;justify-content:flex-end}.search-section[data-v-105ac4df]{margin-bottom:12px}.sources-section[data-v-105ac4df]{min-height:160px;max-height:350px}}@media (max-width: 480px){.button-container[data-v-105ac4df]{grid-template-columns:repeat(4,1fr);gap:4px}.source-button[data-v-105ac4df]{min-height:36px;max-height:50px;padding:3px 4px;border-radius:4px}.source-name[data-v-105ac4df]{font-size:10px;line-height:1.1}.current-icon[data-v-105ac4df]{font-size:8px;width:14px;height:14px;top:-3px;left:-3px}.sources-section[data-v-105ac4df]{min-height:140px;max-height:300px}.empty-state[data-v-105ac4df]{height:140px}.empty-state p[data-v-105ac4df]{font-size:12px}}@media (max-width: 360px){.button-container[data-v-105ac4df]{grid-template-columns:repeat(5,1fr);gap:3px}.source-button[data-v-105ac4df]{min-height:32px;max-height:44px;padding:2px 3px}.source-name[data-v-105ac4df]{font-size:9px}.current-icon[data-v-105ac4df]{font-size:6px;width:12px;height:12px;top:-2px;left:-2px}}.tag_dialog .arco-modal-body[data-v-105ac4df]{padding:16px!important}.tag-container[data-v-105ac4df]{display:flex;flex-wrap:wrap;gap:8px;max-height:300px;overflow-y:auto}.tag-item[data-v-105ac4df]{margin:4px;border-radius:4px}.sources-section[data-v-105ac4df]::-webkit-scrollbar,.tag-container[data-v-105ac4df]::-webkit-scrollbar{width:4px}.sources-section[data-v-105ac4df]::-webkit-scrollbar-track,.tag-container[data-v-105ac4df]::-webkit-scrollbar-track{background:var(--color-bg-2);border-radius:2px}.sources-section[data-v-105ac4df]::-webkit-scrollbar-thumb,.tag-container[data-v-105ac4df]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:2px}.sources-section[data-v-105ac4df]::-webkit-scrollbar-thumb:hover,.tag-container[data-v-105ac4df]::-webkit-scrollbar-thumb:hover{background:var(--color-border-4)}.action-mask[data-v-36eb5ad8]{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(0,0,0,calc(var(--dim-amount, .45)));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);overflow:hidden}.action-dialog[data-v-36eb5ad8]{position:relative;z-index:20001;background:#fffffff2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-2xl);box-shadow:0 25px 50px -12px #00000040,0 0 0 1px #ffffff1a inset;overflow:hidden;transform-origin:center;transition:all var(--ds-duration-normal) cubic-bezier(.34,1.56,.64,1);max-height:calc(100vh - 2rem);max-width:90vw;display:flex;flex-direction:column}.action-dialog-bg[data-v-36eb5ad8]{position:absolute;top:0;left:0;right:0;height:4px;opacity:.8;z-index:0}.action-dialog-close[data-v-36eb5ad8]{position:absolute;top:1rem;right:1rem;z-index:10;width:2.5rem;height:2.5rem;border:none;border-radius:var(--ds-radius-lg);background:#ffffff1a;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#0009;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--ds-duration-fast) ease;border:1px solid rgba(255,255,255,.2)}.action-dialog-close[data-v-36eb5ad8]:hover{background:#fff3;color:#000c;transform:scale(1.05);box-shadow:0 4px 12px #00000026}.action-dialog-close[data-v-36eb5ad8]:active{transform:scale(.95)}.action-dialog-header[data-v-36eb5ad8]{position:relative;z-index:1;padding:2rem 2rem 1rem;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);border-bottom:1px solid rgba(255,255,255,.1);flex-shrink:0}.action-dialog-title[data-v-36eb5ad8]{margin:0;font-size:1.25rem;font-weight:600;color:#000000d9;text-align:center;letter-spacing:-.025em}.action-dialog-content[data-v-36eb5ad8]{position:relative;z-index:1;padding:1.5rem 2rem;flex:1 1 auto;overflow:visible;min-height:0;max-height:100%}.action-dialog-footer[data-v-36eb5ad8]{position:relative;z-index:1;padding:1rem 2rem 2rem;background:linear-gradient(135deg,#ffffff0d,#ffffff1a);border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:flex-end;gap:.75rem;flex-shrink:0}.action-dialog-mobile[data-v-36eb5ad8]{margin:1rem;border-radius:var(--ds-radius-xl)}.action-dialog-mobile .action-dialog-header[data-v-36eb5ad8]{padding:1.5rem 1.5rem 1rem}.action-dialog-mobile .action-dialog-content[data-v-36eb5ad8]{padding:1rem 1.5rem}.action-dialog-mobile .action-dialog-footer[data-v-36eb5ad8]{padding:1rem 1.5rem 1.5rem}.action-dialog-mobile .action-dialog-close[data-v-36eb5ad8]{top:.75rem;right:.75rem;width:2rem;height:2rem}.action-mask-enter-active[data-v-36eb5ad8],.action-mask-leave-active[data-v-36eb5ad8]{transition:all var(--ds-duration-normal) ease}.action-mask-enter-from[data-v-36eb5ad8],.action-mask-leave-to[data-v-36eb5ad8]{opacity:0;backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px)}.action-dialog-enter-active[data-v-36eb5ad8]{transition:all var(--ds-duration-normal) cubic-bezier(.34,1.56,.64,1)}.action-dialog-leave-active[data-v-36eb5ad8]{transition:all var(--ds-duration-fast) ease-in}.action-dialog-enter-from[data-v-36eb5ad8]{opacity:0;transform:scale(.8) translateY(-2rem)}.action-dialog-leave-to[data-v-36eb5ad8]{opacity:0;transform:scale(.9) translateY(1rem)}@media (prefers-color-scheme: dark){.action-dialog[data-v-36eb5ad8]{background:#1e1e1ef2;border-color:#ffffff1a}.action-dialog-title[data-v-36eb5ad8]{color:#ffffffe6}.action-dialog-close[data-v-36eb5ad8]{color:#ffffffb3;background:#0003}.action-dialog-close[data-v-36eb5ad8]:hover{color:#ffffffe6;background:#0000004d}}@media (prefers-contrast: high){.action-dialog[data-v-36eb5ad8]{border:2px solid;backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}.action-dialog-close[data-v-36eb5ad8]{border:1px solid;backdrop-filter:none;-webkit-backdrop-filter:none}}@media (prefers-reduced-motion: reduce){.action-mask-enter-active[data-v-36eb5ad8],.action-mask-leave-active[data-v-36eb5ad8],.action-dialog-enter-active[data-v-36eb5ad8],.action-dialog-leave-active[data-v-36eb5ad8],.action-dialog-close[data-v-36eb5ad8]{transition:none}.action-dialog-close[data-v-36eb5ad8]:hover{transform:none}}.action-renderer[data-v-3c8cada7]{position:relative}.action-error[data-v-3c8cada7]{color:#f5222d}.action-error pre[data-v-3c8cada7]{background:#fff2f0;border:1px solid #ffccc7;border-radius:4px;padding:8px;margin-top:8px;font-size:12px;overflow-x:auto}.action-loading[data-v-3c8cada7]{text-align:center;padding:20px;color:#8c8c8c}.input-action-modern[data-v-5ccea77c]{padding:0;display:flex;flex-direction:column;gap:1.5rem}.message-section[data-v-5ccea77c]{margin-bottom:.5rem}.message-content[data-v-5ccea77c]{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;background:linear-gradient(135deg,#3b82f61a,#9333ea1a);border:1px solid rgba(59,130,246,.2);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.message-icon[data-v-5ccea77c]{flex-shrink:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;background:#3b82f61a;border-radius:var(--ds-radius-md);color:#3b82f6}.message-text[data-v-5ccea77c]{margin:0;color:#000c;font-size:.875rem;line-height:1.5;font-weight:500}.media-section[data-v-5ccea77c]{margin-bottom:.5rem}.image-container[data-v-5ccea77c]{text-align:center;padding:1rem;background:#ffffff80;border:1px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.action-image-modern[data-v-5ccea77c]{max-width:100%;height:auto;border-radius:var(--ds-radius-md);box-shadow:0 4px 12px #0000001a;transition:all var(--ds-duration-fast) ease}.action-image-modern.clickable[data-v-5ccea77c]{cursor:crosshair}.action-image-modern.clickable[data-v-5ccea77c]:hover{transform:scale(1.02);box-shadow:0 8px 25px #00000026}.coords-display[data-v-5ccea77c]{margin-top:.75rem;padding:.5rem 1rem;background:#22c55e1a;border:1px solid rgba(34,197,94,.2);border-radius:var(--ds-radius-md);display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem}.coords-label[data-v-5ccea77c]{color:#0009;font-weight:500}.coords-value[data-v-5ccea77c]{color:#22c55e;font-weight:600;font-family:Courier New,monospace}.qrcode-container[data-v-5ccea77c]{text-align:center;padding:1.5rem;background:#ffffff80;border:1px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.qrcode-wrapper[data-v-5ccea77c]{display:inline-block;padding:1rem;background:#fff;border-radius:var(--ds-radius-md);box-shadow:0 4px 12px #0000001a}.qrcode-image[data-v-5ccea77c]{max-width:100%;height:auto;display:block}.qrcode-text[data-v-5ccea77c]{margin:1rem 0 0;color:#000000b3;font-size:.875rem;font-weight:500;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;line-height:1.5;max-width:100%;overflow-wrap:break-word}.input-section[data-v-5ccea77c]{margin-bottom:.5rem}.input-group[data-v-5ccea77c]{display:flex;flex-direction:column;gap:.75rem}.input-label[data-v-5ccea77c]{font-size:.875rem;font-weight:600;color:#000c;margin:0;letter-spacing:-.025em}.input-container[data-v-5ccea77c],.textarea-container[data-v-5ccea77c]{position:relative}.input-wrapper-modern[data-v-5ccea77c],.textarea-wrapper-modern[data-v-5ccea77c]{position:relative;display:flex;align-items:stretch;background:#fffc;border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);transition:all var(--ds-duration-fast) ease;overflow:hidden}.input-wrapper-modern[data-v-5ccea77c]:focus-within,.textarea-wrapper-modern[data-v-5ccea77c]:focus-within{border-color:#3b82f680;background:#fffffff2;box-shadow:0 0 0 4px #3b82f61a,0 8px 25px #3b82f626;transform:translateY(-1px)}.input-field-modern[data-v-5ccea77c],.textarea-field-modern[data-v-5ccea77c]{flex:1;border:none;outline:none;background:transparent;padding:1rem 1.25rem;font-size:.875rem;line-height:1.5;color:#000000d9;font-weight:500;transition:all var(--ds-duration-fast) ease}.textarea-field-modern[data-v-5ccea77c]{resize:vertical;min-height:4rem;font-family:inherit}.input-field-modern[data-v-5ccea77c]::-moz-placeholder,.textarea-field-modern[data-v-5ccea77c]::-moz-placeholder{color:#0006;font-weight:400}.input-field-modern[data-v-5ccea77c]::placeholder,.textarea-field-modern[data-v-5ccea77c]::placeholder{color:#0006;font-weight:400}.input-field-modern.error[data-v-5ccea77c],.textarea-field-modern.error[data-v-5ccea77c]{color:#ef4444}.input-field-modern.error+.input-actions[data-v-5ccea77c],.textarea-field-modern.error~.expand-btn[data-v-5ccea77c]{border-left-color:#ef44444d}.input-wrapper-modern[data-v-5ccea77c]:has(.error),.textarea-wrapper-modern[data-v-5ccea77c]:has(.error){border-color:#ef444480;background:#fef2f2cc}.input-field-modern.success[data-v-5ccea77c],.textarea-field-modern.success[data-v-5ccea77c]{color:#22c55e}.input-wrapper-modern[data-v-5ccea77c]:has(.success),.textarea-wrapper-modern[data-v-5ccea77c]:has(.success){border-color:#22c55e4d}.input-actions[data-v-5ccea77c]{display:flex;align-items:center;border-left:1px solid rgba(255,255,255,.3)}.expand-btn[data-v-5ccea77c]{padding:.75rem;border:none;background:transparent;color:#00000080;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--ds-duration-fast) ease;border-radius:0}.expand-btn[data-v-5ccea77c]:hover{background:#3b82f61a;color:#3b82f6}.textarea-expand[data-v-5ccea77c]{position:absolute;top:.5rem;right:.5rem;padding:.5rem;border-radius:var(--ds-radius-md);background:#fffc;border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.input-status[data-v-5ccea77c]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.5rem}.error-message[data-v-5ccea77c],.help-message[data-v-5ccea77c]{display:flex;align-items:center;gap:.5rem;font-size:.75rem;font-weight:500;flex:1}.error-message[data-v-5ccea77c]{color:#ef4444}.help-message[data-v-5ccea77c]{color:#0009}.char-count[data-v-5ccea77c]{font-size:.75rem;color:#00000080;font-weight:500;flex-shrink:0}.quick-select[data-v-5ccea77c]{margin-bottom:1rem}.quick-select-options[data-v-5ccea77c]{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-start}.quick-select-tag[data-v-5ccea77c]{cursor:pointer;transition:all var(--ds-duration-fast) ease;margin:.25rem;font-size:.875rem;font-weight:500;background-color:#6b7280!important;color:#fff!important;border:none!important;border-radius:12px!important;padding:6px 12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:auto!important;min-width:auto!important;line-height:1!important}.quick-select-tag[data-v-5ccea77c]:hover{background-color:#4b5563!important;transform:translateY(-1px);box-shadow:0 4px 12px #6b72804d}.quick-select-tag[data-v-5ccea77c]:active{transform:translateY(0);background-color:#374151!important}.timeout-section[data-v-5ccea77c]{margin-bottom:.5rem}.timeout-indicator[data-v-5ccea77c]{display:flex;align-items:center;gap:.75rem;padding:1rem;background:linear-gradient(135deg,#f59e0b1a,#fbbf241a);border:1px solid rgba(245,158,11,.2);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.timeout-icon[data-v-5ccea77c]{flex-shrink:0;color:#f59e0b}.timeout-text[data-v-5ccea77c]{flex:1;font-size:.875rem;font-weight:500;color:#000c}.timeout-progress[data-v-5ccea77c]{flex:1;height:4px;background:#f59e0b33;border-radius:2px;overflow:hidden}.timeout-progress-bar[data-v-5ccea77c]{height:100%;background:linear-gradient(90deg,#f59e0b,#fbbf24);border-radius:2px;transition:width var(--ds-duration-normal) ease}.modern-footer[data-v-5ccea77c]{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;margin:0;padding:0}.btn-modern[data-v-5ccea77c]{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border:2px solid transparent;border-radius:var(--ds-radius-lg);font-size:.875rem;font-weight:600;cursor:pointer;transition:all var(--ds-duration-fast) ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);position:relative;overflow:hidden}.btn-modern[data-v-5ccea77c]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left var(--ds-duration-normal) ease}.btn-modern[data-v-5ccea77c]:hover:before{left:100%}.btn-secondary[data-v-5ccea77c]{background:#fff9;border-color:#ffffff4d;color:#000000b3}.btn-secondary[data-v-5ccea77c]:hover{background:#fffc;border-color:#ffffff80;color:#000000e6;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.btn-primary[data-v-5ccea77c]{background:linear-gradient(135deg,#3b82f6,#9333ea);border-color:#3b82f64d;color:#fff;box-shadow:0 4px 12px #3b82f64d}.btn-primary[data-v-5ccea77c]:hover:not(.disabled){background:linear-gradient(135deg,#2563eb,#7e22ce);transform:translateY(-1px);box-shadow:0 8px 25px #3b82f666}.btn-primary.disabled[data-v-5ccea77c]{background:#0000001a;border-color:#0000001a;color:#0000004d;cursor:not-allowed;box-shadow:none}.btn-modern[data-v-5ccea77c]:active:not(.disabled){transform:translateY(0)}.text-editor[data-v-5ccea77c]{padding:0;display:flex;flex-direction:column;overflow:hidden}.text-editor-textarea[data-v-5ccea77c]{flex:1;width:100%;height:300px;max-height:400px;padding:1.25rem;border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);font-family:inherit;font-size:.875rem;line-height:1.6;color:#000000d9;resize:none;outline:none;overflow-y:auto;box-sizing:border-box;transition:all var(--ds-duration-fast) ease}.text-editor-textarea[data-v-5ccea77c]:focus{border-color:#3b82f680;background:#fffffff2;box-shadow:0 0 0 4px #3b82f61a,0 8px 25px #3b82f626}.text-editor-textarea[data-v-5ccea77c]::-moz-placeholder{color:#0006}.text-editor-textarea[data-v-5ccea77c]::placeholder{color:#0006}@media (max-width: 640px){.input-action-modern[data-v-5ccea77c]{gap:1rem}.message-content[data-v-5ccea77c]{padding:.75rem;gap:.5rem}.message-icon[data-v-5ccea77c]{width:1.5rem;height:1.5rem}.input-field-modern[data-v-5ccea77c],.textarea-field-modern[data-v-5ccea77c]{padding:.875rem 1rem;font-size:.875rem}.modern-footer[data-v-5ccea77c]{flex-direction:column-reverse;gap:.5rem}.btn-modern[data-v-5ccea77c]{width:100%;justify-content:center}.quick-select-grid[data-v-5ccea77c]{grid-template-columns:1fr}.quick-select-tag[data-v-5ccea77c]{margin:.125rem}.input-status[data-v-5ccea77c]{flex-direction:column;align-items:flex-start;gap:.5rem}.char-count[data-v-5ccea77c]{align-self:flex-end}}@media (prefers-color-scheme: dark){.message-content[data-v-5ccea77c]{background:linear-gradient(135deg,#3b82f626,#9333ea26);border-color:#3b82f64d}.message-text[data-v-5ccea77c]{color:#ffffffe6}.input-wrapper-modern[data-v-5ccea77c],.textarea-wrapper-modern[data-v-5ccea77c]{background:#0000004d;border-color:#fff3}.input-field-modern[data-v-5ccea77c],.textarea-field-modern[data-v-5ccea77c]{color:#ffffffe6}.input-field-modern[data-v-5ccea77c]::-moz-placeholder,.textarea-field-modern[data-v-5ccea77c]::-moz-placeholder{color:#ffffff80}.input-field-modern[data-v-5ccea77c]::placeholder,.textarea-field-modern[data-v-5ccea77c]::placeholder{color:#ffffff80}.btn-secondary[data-v-5ccea77c]{background:#0000004d;color:#fffc}.btn-secondary[data-v-5ccea77c]:hover{background:#00000080;color:#fffffff2}}@media (prefers-contrast: high){.input-wrapper-modern[data-v-5ccea77c],.textarea-wrapper-modern[data-v-5ccea77c],.quick-select-tag[data-v-5ccea77c],.btn-modern[data-v-5ccea77c]{backdrop-filter:none;-webkit-backdrop-filter:none;border-width:2px}}@media (prefers-reduced-motion: reduce){.input-wrapper-modern[data-v-5ccea77c],.textarea-wrapper-modern[data-v-5ccea77c],.quick-select-tag[data-v-5ccea77c],.btn-modern[data-v-5ccea77c],.expand-btn[data-v-5ccea77c],.action-image-modern[data-v-5ccea77c]{transition:none}.btn-modern[data-v-5ccea77c]:before{display:none}.btn-modern[data-v-5ccea77c]:hover,.quick-select-tag[data-v-5ccea77c]:hover,.action-image-modern[data-v-5ccea77c]:hover{transform:none}}.multi-input-action-modern[data-v-94c32ec1]{display:flex;flex-direction:column;height:100%;max-height:100vh;background:var(--ds-surface);border-radius:8px;overflow:hidden}.message-section[data-v-94c32ec1]{padding:12px 16px;background:var(--ds-background-information-subtle);border-bottom:1px solid var(--ds-border-subtle);flex-shrink:0}.message-content[data-v-94c32ec1]{display:flex;align-items:flex-start;gap:8px}.message-icon[data-v-94c32ec1]{flex-shrink:0;margin-top:2px}.message-text[data-v-94c32ec1]{flex:1;font-size:13px;line-height:1.5;color:var(--ds-text)}.media-section[data-v-94c32ec1]{padding:8px 16px;border-bottom:1px solid var(--ds-border-subtle);flex-shrink:0}.image-container[data-v-94c32ec1]{display:flex;justify-content:center;align-items:center;margin-bottom:8px}.action-image-modern[data-v-94c32ec1]{max-width:100%;max-height:200px;border-radius:6px;box-shadow:0 2px 8px #0000001a}.inputs-section[data-v-94c32ec1]{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;max-height:60vh}@media (max-width: 768px){.inputs-section[data-v-94c32ec1]{max-height:70vh}}@media (max-width: 480px){.inputs-section[data-v-94c32ec1]{max-height:75vh}}.inputs-container[data-v-94c32ec1]{flex:1;display:flex;flex-direction:column;gap:8px;padding:8px 16px;overflow-y:auto;overflow-x:hidden;min-height:0;max-height:100%;scrollbar-width:thin;scrollbar-color:var(--ds-border-subtle) transparent}@media (max-width: 768px){.inputs-container[data-v-94c32ec1]{padding:6px 12px;gap:6px}}@media (max-width: 480px){.inputs-container[data-v-94c32ec1]{padding:4px 8px;gap:4px}}.inputs-container[data-v-94c32ec1]::-webkit-scrollbar{width:6px}.inputs-container[data-v-94c32ec1]::-webkit-scrollbar-track{background:transparent}.inputs-container[data-v-94c32ec1]::-webkit-scrollbar-thumb{background:var(--ds-border-subtle);border-radius:3px}.inputs-container[data-v-94c32ec1]::-webkit-scrollbar-thumb:hover{background:var(--ds-border)}.input-item[data-v-94c32ec1]{display:flex;flex-direction:column;gap:4px;position:relative;background:var(--ds-background-subtle, #f6f8fa);border:1px solid var(--ds-border-subtle, #d1d9e0);border-radius:8px;padding:10px;transition:all .2s ease}.input-item[data-v-94c32ec1]:hover{border-color:var(--ds-border-brand);box-shadow:0 0 0 1px var(--ds-border-brand-alpha)}.input-label-container[data-v-94c32ec1]{display:flex;flex-direction:column;gap:2px}.input-label[data-v-94c32ec1]{font-size:13px;font-weight:500;color:var(--ds-text-subtle);display:flex;align-items:center;gap:4px;margin:0}.required-indicator[data-v-94c32ec1]{color:var(--ds-text-danger);font-size:12px}.help-button[data-v-94c32ec1]{background:#3742fa;color:#fff;border:none;border-radius:50%;width:18px;height:18px;font-size:12px;font-weight:700;cursor:pointer;margin-left:6px;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease}.help-button[data-v-94c32ec1]:hover{background:#2f3542;transform:scale(1.1)}.help-content[data-v-94c32ec1]{font-size:14px;line-height:1.6;color:var(--ds-text);padding:16px 0}.input-help[data-v-94c32ec1]{font-size:11px;color:var(--ds-text-subtlest);line-height:1.3}.input-group[data-v-94c32ec1]{display:flex;flex-direction:column;gap:6px}.quick-select[data-v-94c32ec1]{display:flex;flex-direction:column;gap:4px}.quick-select-options[data-v-94c32ec1]{display:flex;flex-wrap:wrap;gap:4px}.quick-select-tag[data-v-94c32ec1]{padding:3px 8px;font-size:11px;background:#f5f5f5;border:1px solid #d0d0d0;border-radius:4px;color:#333;cursor:pointer;transition:all .15s ease;white-space:nowrap;display:flex;align-items:center;gap:4px}.quick-select-tag[data-v-94c32ec1]:hover{background:#e8e8e8;border-color:#b0b0b0}.quick-select-tag[data-v-94c32ec1]:active{background:#d8d8d8}.quick-select-tag.selected[data-v-94c32ec1]{background:#22c55e;border-color:#16a34a;color:#fff}.quick-select-tag.selected[data-v-94c32ec1]:hover{background:#16a34a;border-color:#15803d}.quick-select-tag.selected[data-v-94c32ec1]:active{background:#15803d}.quick-select-tag.special-selector[data-v-94c32ec1]{background:var(--ds-background-brand-subtle);color:var(--ds-text-brand);border-color:var(--ds-border-brand)}.quick-select-tag.special-selector[data-v-94c32ec1]:hover{background:var(--ds-background-brand);color:var(--ds-text-inverse)}.selector-icon[data-v-94c32ec1]{flex-shrink:0}.input-container[data-v-94c32ec1]{position:relative}.input-wrapper-modern[data-v-94c32ec1]{position:relative;display:flex;align-items:center;background:var(--ds-surface, #ffffff);border:1px solid var(--ds-border, #d0d7de);border-radius:6px;transition:all .2s ease;overflow:hidden}.input-wrapper-modern[data-v-94c32ec1]:focus-within{border-color:var(--ds-border-focused);box-shadow:0 0 0 1px var(--ds-border-focused-alpha)}.input-field-modern[data-v-94c32ec1]{flex:1;padding:8px 10px;border:none;background:transparent;font-size:13px;color:var(--ds-text);outline:none;min-height:20px}.input-field-modern[data-v-94c32ec1]::-moz-placeholder{color:var(--ds-text-subtlest, #8b949e)}.input-field-modern[data-v-94c32ec1]::placeholder{color:var(--ds-text-subtlest, #8b949e)}.input-field-modern.error[data-v-94c32ec1]{color:var(--ds-text-danger)}.input-field-modern.success[data-v-94c32ec1]{color:var(--ds-text-success)}.date-picker-modern[data-v-94c32ec1]{flex:1;border:none;background:transparent;width:100%}.date-picker-modern[data-v-94c32ec1] .arco-picker{width:100%;border:none;background:transparent;box-shadow:none;padding:8px 10px;font-size:13px;min-height:20px}.date-picker-modern[data-v-94c32ec1] .arco-picker-input{color:var(--ds-text);font-size:13px}.date-picker-modern[data-v-94c32ec1] .arco-picker-input::-moz-placeholder{color:var(--ds-text-subtlest, #8b949e)}.date-picker-modern[data-v-94c32ec1] .arco-picker-input::placeholder{color:var(--ds-text-subtlest, #8b949e)}.date-picker-modern[data-v-94c32ec1] .arco-picker-suffix{color:var(--ds-text-subtle)}.date-picker-modern[data-v-94c32ec1] .arco-picker-dropdown,.date-picker-modern[data-v-94c32ec1] .arco-picker-panel,.date-picker-modern[data-v-94c32ec1] .arco-picker-popup{z-index:9999!important}.date-picker-modern[data-v-94c32ec1] .arco-picker-container{position:relative;z-index:1}.input-actions[data-v-94c32ec1]{display:flex;align-items:center;padding:0 6px}.expand-btn[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:var(--ds-text-subtle);cursor:pointer;border-radius:4px;transition:all .15s ease}.expand-btn[data-v-94c32ec1]:hover{background:var(--ds-background-neutral-hovered);color:var(--ds-text)}.expand-btn[data-v-94c32ec1]:active{background:var(--ds-background-neutral-pressed)}.expand-options-btn[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:var(--ds-text-subtle);cursor:pointer;border-radius:4px;transition:all .15s ease}.expand-options-btn[data-v-94c32ec1]:hover{background:var(--ds-background-neutral-hovered);color:var(--ds-text)}.expand-options-btn[data-v-94c32ec1]:active{background:var(--ds-background-neutral-pressed)}.special-input-btn[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;cursor:pointer;border-radius:4px;transition:all .15s ease}.special-input-btn[data-v-94c32ec1]:hover{background:var(--ds-background-neutral-hovered)}.special-input-btn[data-v-94c32ec1]:active{background:var(--ds-background-neutral-pressed)}.special-calendar[data-v-94c32ec1]{color:#3b82f6}.special-file[data-v-94c32ec1]{color:#10b981}.special-folder[data-v-94c32ec1]{color:#f59e0b}.special-image[data-v-94c32ec1]{color:#8b5cf6}.special-input-btn[data-v-94c32ec1]:hover{opacity:.8}.textarea-container[data-v-94c32ec1]{position:relative}.textarea-wrapper-modern[data-v-94c32ec1]{position:relative;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:6px;transition:all .2s ease}.textarea-wrapper-modern[data-v-94c32ec1]:focus-within{border-color:var(--ds-border-focused);box-shadow:0 0 0 1px var(--ds-border-focused-alpha)}.textarea-field-modern[data-v-94c32ec1]{width:100%;padding:8px 10px;border:none;background:transparent;font-size:13px;color:var(--ds-text);outline:none;resize:vertical;min-height:60px;line-height:1.4;font-family:inherit}.textarea-field-modern[data-v-94c32ec1]::-moz-placeholder{color:var(--ds-text-subtlest)}.textarea-field-modern[data-v-94c32ec1]::placeholder{color:var(--ds-text-subtlest)}.textarea-field-modern.error[data-v-94c32ec1]{color:var(--ds-text-danger)}.textarea-field-modern.success[data-v-94c32ec1]{color:var(--ds-text-success)}.textarea-expand[data-v-94c32ec1]{position:absolute;top:6px;right:6px;z-index:1}.input-status[data-v-94c32ec1]{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:16px}.error-message[data-v-94c32ec1]{display:flex;align-items:center;gap:4px;color:var(--ds-text-danger);font-size:11px}.char-count[data-v-94c32ec1]{font-size:10px;color:var(--ds-text-subtlest);white-space:nowrap}.remove-btn[data-v-94c32ec1]{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:var(--ds-background-danger-subtle);color:var(--ds-text-danger);border-radius:4px;cursor:pointer;transition:all .15s ease;z-index:2}.remove-btn[data-v-94c32ec1]:hover{background:var(--ds-background-danger);color:var(--ds-text-inverse)}.remove-btn[data-v-94c32ec1]:active{background:var(--ds-background-danger-bold)}.enhanced-section[data-v-94c32ec1]{padding:.75rem;background:#f8fafccc;border:1px solid rgba(0,0,0,.1);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.enhanced-controls[data-v-94c32ec1]{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:var(--ds-background-subtle);border:1px solid var(--ds-border-subtle);border-radius:6px;margin-top:8px;gap:8px}.enhanced-controls-left[data-v-94c32ec1],.enhanced-controls-right[data-v-94c32ec1]{display:flex;gap:6px}.add-input-btn[data-v-94c32ec1],.batch-action-btn[data-v-94c32ec1]{padding:4px 8px;font-size:11px;background:var(--ds-background-brand-subtle);color:var(--ds-text-brand);border:1px solid var(--ds-border-brand);border-radius:4px;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;gap:4px;white-space:nowrap}.add-input-btn[data-v-94c32ec1]:hover,.batch-action-btn[data-v-94c32ec1]:hover{background:var(--ds-background-brand);color:var(--ds-text-inverse)}.add-input-btn[data-v-94c32ec1]:active,.batch-action-btn[data-v-94c32ec1]:active{background:var(--ds-background-brand-bold)}.batch-controls[data-v-94c32ec1]{display:flex;gap:.375rem}.timeout-section[data-v-94c32ec1]{padding:.625rem .75rem;background:linear-gradient(135deg,#fbbf241a,#f59e0b1a);border:1px solid rgba(251,191,36,.2);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.timeout-indicator[data-v-94c32ec1]{display:flex;align-items:center;gap:.75rem}.timeout-icon[data-v-94c32ec1]{flex-shrink:0;color:#f59e0b}.timeout-text[data-v-94c32ec1]{font-size:.875rem;font-weight:500;color:#000c}.timeout-progress[data-v-94c32ec1]{flex:1;height:.25rem;background:#f59e0b33;border-radius:var(--ds-radius-full);overflow:hidden}.timeout-progress-bar[data-v-94c32ec1]{height:100%;background:#f59e0b;transition:width 1s linear}.timeout-display[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;padding:6px 12px;background:var(--ds-background-warning-subtle);color:var(--ds-text-warning);border:1px solid var(--ds-border-warning);border-radius:6px;font-size:12px;font-weight:500;gap:6px;margin-top:8px}.timeout-icon[data-v-94c32ec1]{animation:pulse-94c32ec1 2s infinite}@keyframes pulse-94c32ec1{0%,to{opacity:1}50%{opacity:.5}}.modern-footer[data-v-94c32ec1]{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;margin:0;padding:0}.footer[data-v-94c32ec1]{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:12px 16px;background:var(--ds-background-subtle);border-top:1px solid var(--ds-border-subtle);margin-top:auto}.footer-btn[data-v-94c32ec1]{padding:6px 16px;font-size:13px;font-weight:500;border:1px solid var(--ds-border);border-radius:6px;cursor:pointer;transition:all .15s ease;min-width:60px;display:flex;align-items:center;justify-content:center;gap:4px}.footer-btn[data-v-94c32ec1]:disabled{opacity:.5;cursor:not-allowed}.footer-btn.cancel[data-v-94c32ec1]{background:var(--ds-background);color:var(--ds-text-subtle);border-color:var(--ds-border)}.footer-btn.cancel[data-v-94c32ec1]:hover:not(:disabled){background:var(--ds-background-neutral-hovered);color:var(--ds-text)}.footer-btn.reset[data-v-94c32ec1]{background:var(--ds-background-warning-subtle);color:var(--ds-text-warning);border-color:var(--ds-border-warning)}.footer-btn.reset[data-v-94c32ec1]:hover:not(:disabled){background:var(--ds-background-warning);color:var(--ds-text-inverse)}.footer-btn.confirm[data-v-94c32ec1]{background:var(--ds-background-brand);color:var(--ds-text-inverse);border-color:var(--ds-border-brand)}.footer-btn.confirm[data-v-94c32ec1]:hover:not(:disabled){background:var(--ds-background-brand-bold)}.footer-btn.confirm[data-v-94c32ec1]:active:not(:disabled){background:var(--ds-background-brand-boldest)}.btn-modern[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border:2px solid transparent;border-radius:var(--ds-radius-lg);font-size:.875rem;font-weight:600;cursor:pointer;transition:all var(--ds-duration-fast) ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);position:relative;overflow:hidden}.btn-modern[data-v-94c32ec1]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left var(--ds-duration-normal) ease}.btn-modern[data-v-94c32ec1]:hover:before{left:100%}.btn-secondary[data-v-94c32ec1]{background:#fff9;border-color:#ffffff4d;color:#000000b3}.btn-secondary[data-v-94c32ec1]:hover{background:#fffc;border-color:#ffffff80;color:#000000e6;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.btn-primary[data-v-94c32ec1]{background:linear-gradient(135deg,#3b82f6,#9333ea);border-color:#3b82f64d;color:#fff;box-shadow:0 4px 12px #3b82f64d}.btn-primary[data-v-94c32ec1]:hover:not(.disabled){background:linear-gradient(135deg,#2563eb,#7e22ce);transform:translateY(-1px);box-shadow:0 8px 25px #3b82f666}.btn-primary.disabled[data-v-94c32ec1]{background:#0000001a;border-color:#0000001a;color:#0000004d;cursor:not-allowed;box-shadow:none}.btn-modern[data-v-94c32ec1]:active:not(.disabled){transform:translateY(0)}.btn-modern.disabled[data-v-94c32ec1]{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}.text-editor[data-v-94c32ec1]{padding:0;display:flex;flex-direction:column;overflow:hidden}.text-editor-textarea[data-v-94c32ec1]{flex:1;width:100%;height:300px;max-height:400px;padding:1.25rem;border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);font-family:inherit;font-size:.875rem;line-height:1.6;color:#000000d9;resize:none;outline:none;overflow-y:auto;box-sizing:border-box;transition:all var(--ds-duration-fast) ease}.text-editor-textarea[data-v-94c32ec1]:focus{border-color:#3b82f680;background:#fffffff2;box-shadow:0 0 0 4px #3b82f61a,0 8px 25px #3b82f626}.text-editor-textarea[data-v-94c32ec1]::-moz-placeholder{color:#0006}.text-editor-textarea[data-v-94c32ec1]::placeholder{color:#0006}.large-text-editor .dialog-content[data-v-94c32ec1]{width:90vw;max-width:800px;height:70vh;max-height:600px;display:flex;flex-direction:column}.large-text-editor .dialog-header[data-v-94c32ec1]{padding:12px 16px;border-bottom:1px solid var(--ds-border-subtle);background:var(--ds-background-subtle)}.large-text-editor .dialog-title[data-v-94c32ec1]{font-size:14px;font-weight:600;color:var(--ds-text);margin:0}.large-text-editor .dialog-body[data-v-94c32ec1]{flex:1;padding:12px;display:flex;flex-direction:column}.large-text-editor .large-textarea[data-v-94c32ec1]{flex:1;width:100%;border:1px solid var(--ds-border);border-radius:6px;padding:12px;font-size:13px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;line-height:1.5;resize:none;outline:none;background:var(--ds-surface);color:var(--ds-text)}.large-text-editor .large-textarea[data-v-94c32ec1]:focus{border-color:var(--ds-border-focused);box-shadow:0 0 0 1px var(--ds-border-focused-alpha)}.large-text-editor .dialog-footer[data-v-94c32ec1]{padding:12px 16px;border-top:1px solid var(--ds-border-subtle);background:var(--ds-background-subtle);display:flex;justify-content:flex-end;gap:8px}@media (max-width: 640px){.multi-input-action-modern[data-v-94c32ec1]{gap:.75rem}.input-item[data-v-94c32ec1]{padding:.5rem}.enhanced-controls[data-v-94c32ec1]{flex-direction:column;align-items:stretch}.enhanced-controls-left[data-v-94c32ec1],.enhanced-controls-right[data-v-94c32ec1]{justify-content:center}.batch-controls[data-v-94c32ec1]{flex-direction:column}.modern-footer[data-v-94c32ec1]{flex-direction:column-reverse}.btn-modern[data-v-94c32ec1]{justify-content:center}}@media (prefers-reduced-motion: reduce){[data-v-94c32ec1]{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.btn-modern[data-v-94c32ec1]:hover,.expand-btn[data-v-94c32ec1]:hover,.textarea-expand[data-v-94c32ec1]:hover,.remove-btn[data-v-94c32ec1]:hover,.quick-select-tag[data-v-94c32ec1]:hover{transform:none}}.date-picker-container[data-v-94c32ec1]{padding:16px;display:flex;flex-direction:column;gap:12px}.date-picker-container[data-v-94c32ec1] .ant-picker{width:100%;height:40px;border-radius:6px;border:1px solid var(--ds-border, #d0d7de);font-size:14px}.date-picker-container[data-v-94c32ec1] .ant-picker-input>input{font-size:14px;color:var(--ds-text, #24292f)}.date-picker-container[data-v-94c32ec1] .ant-picker-input>input::-moz-placeholder{color:var(--ds-text-subtlest, #8b949e)}.date-picker-container[data-v-94c32ec1] .ant-picker-input>input::placeholder{color:var(--ds-text-subtlest, #8b949e)}.select-options-content[data-v-94c32ec1]{padding:16px}.radio-container[data-v-94c32ec1]{max-height:400px;overflow-y:auto;border:1px solid var(--ds-border, #d0d7de);border-radius:8px;background:var(--ds-surface, #ffffff);padding:8px}.radio-options-list[data-v-94c32ec1]{width:100%;display:flex;flex-direction:column;gap:4px}.radio-option-item[data-v-94c32ec1]{margin:0;padding:0}.radio-options-list[data-v-94c32ec1] .arco-radio{width:100%;margin:0;padding:0;border-radius:6px;border:1px solid var(--ds-border, #d0d7de);background:var(--ds-surface, #ffffff);transition:all .2s ease}.radio-options-list[data-v-94c32ec1] .arco-radio:hover{border-color:var(--ds-border-accent, #3b82f6);background:var(--ds-background-neutral-hovered, #f6f8fa)}.radio-options-list[data-v-94c32ec1] .arco-radio-checked{border-color:var(--ds-border-accent, #3b82f6);background:var(--ds-background-accent-subtle, #dbeafe)}.radio-options-list[data-v-94c32ec1] .arco-radio-checked:hover{background:var(--ds-background-accent-subtle-hovered, #bfdbfe)}.radio-options-list[data-v-94c32ec1] .arco-radio .arco-radio-label{width:100%;padding:8px 12px;margin:0;color:var(--ds-text, #24292f);font-size:13px;line-height:1.4;cursor:pointer}.radio-options-list[data-v-94c32ec1] .arco-radio-checked .arco-radio-label{color:var(--ds-text-accent, #1e40af);font-weight:500}.radio-options-list[data-v-94c32ec1] .arco-radio .arco-radio-button{margin:6px 0 6px 10px}.radio-options-list[data-v-94c32ec1] .arco-radio .arco-radio-button:after{border-color:var(--ds-border-accent, #3b82f6)}.radio-options-list[data-v-94c32ec1] .arco-radio-checked .arco-radio-button{border-color:var(--ds-border-accent, #3b82f6);background-color:var(--ds-background-accent, #3b82f6)}.multiselect-container[data-v-94c32ec1]{display:flex;gap:16px;min-height:300px}.multiselect-main[data-v-94c32ec1]{flex:1}.checkbox-grid[data-v-94c32ec1]{display:grid;gap:12px 16px;padding:8px}.checkbox-option-item[data-v-94c32ec1]{padding:8px 12px;border:1px solid var(--ds-border, #d1d5db);border-radius:6px;background:var(--ds-background, #ffffff);transition:all .2s ease;cursor:pointer;font-size:14px}.checkbox-option-item[data-v-94c32ec1]:hover{border-color:var(--ds-border-accent, #3b82f6);background:var(--ds-background-hover, #f8fafc)}.checkbox-option-item[data-v-94c32ec1] .arco-checkbox-checked .arco-checkbox-icon{background-color:var(--ds-background-accent, #3b82f6);border-color:var(--ds-border-accent, #3b82f6)}.multiselect-actions[data-v-94c32ec1]{display:flex;flex-direction:column;gap:8px;min-width:80px;padding:8px}.btn-small[data-v-94c32ec1]{padding:6px 12px;font-size:12px;min-height:32px;white-space:nowrap}.menu-action-modern[data-v-36a9fec1]{display:flex;flex-direction:column;gap:1.5rem;padding:0}.message-section[data-v-36a9fec1]{margin-bottom:.5rem}.message-content[data-v-36a9fec1]{position:relative;padding:1rem 1.25rem;border-radius:.75rem;overflow:hidden;border:1px solid rgba(255,255,255,.1)}.message-bg[data-v-36a9fec1]{position:absolute;inset:0;opacity:.1;z-index:0}.message-text[data-v-36a9fec1]{position:relative;z-index:1;color:var(--action-color-text);font-size:.875rem;line-height:1.5;font-weight:500}.media-section[data-v-36a9fec1]{margin-bottom:.5rem}.media-container[data-v-36a9fec1]{position:relative;padding:.75rem;border-radius:.75rem;overflow:hidden;border:1px solid rgba(255,255,255,.1);display:flex;justify-content:center;align-items:center}.media-bg[data-v-36a9fec1]{position:absolute;inset:0;opacity:.05;z-index:0}.media-image[data-v-36a9fec1]{position:relative;z-index:1;max-width:100%;border-radius:.5rem;box-shadow:var(--action-shadow-medium)}.search-section[data-v-36a9fec1]{margin-bottom:.5rem}.search-container[data-v-36a9fec1]{position:relative;display:flex;align-items:center}.search-icon[data-v-36a9fec1]{position:absolute;left:.75rem;z-index:2;color:var(--action-color-text-secondary);pointer-events:none}.search-input[data-v-36a9fec1]{width:100%;padding:.75rem .75rem .75rem 2.5rem;border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);color:#000000d9;font-size:.875rem;font-weight:500;transition:all var(--ds-duration-fast) ease;outline:none;box-shadow:0 4px 16px #0000001a}.search-input[data-v-36a9fec1]:focus{border-color:#3b82f680;background:#fffffff2;box-shadow:0 0 0 4px #3b82f61a,0 8px 25px #3b82f626;transform:translateY(-1px)}.search-input[data-v-36a9fec1]::-moz-placeholder{color:#0006;font-weight:400}.search-input[data-v-36a9fec1]::placeholder{color:#0006;font-weight:400}.menu-section[data-v-36a9fec1]{flex:1}.menu-layout[data-v-36a9fec1]{display:flex;gap:1rem;align-items:flex-start}.menu-options-container[data-v-36a9fec1]{flex:1;display:grid;grid-template-columns:repeat(2,1fr);gap:.625rem;max-height:400px;overflow-y:auto;padding-right:.25rem}.quick-actions-column[data-v-36a9fec1]{flex-shrink:0;width:120px;position:sticky;top:0}.quick-actions-container[data-v-36a9fec1]{background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border:2px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-lg);padding:.75rem;box-shadow:0 4px 16px #0000001a}.quick-actions-title[data-v-36a9fec1]{font-size:.75rem;font-weight:600;color:var(--action-color-text-secondary);margin-bottom:.5rem;text-align:center}.quick-actions-buttons[data-v-36a9fec1]{display:flex;flex-direction:column;gap:.5rem}.quick-action-btn[data-v-36a9fec1]{display:flex;align-items:center;justify-content:center;gap:.25rem;padding:.5rem;border:1px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-md);background:#fff9;color:var(--action-color-text);font-size:.75rem;font-weight:500;cursor:pointer;transition:all var(--ds-duration-fast) ease;outline:none}.quick-action-btn[data-v-36a9fec1]:hover:not(:disabled){border-color:#3b82f680;background:#3b82f61a;color:#3b82f6;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f626}.quick-action-btn[data-v-36a9fec1]:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #3b82f61a}.quick-action-btn[data-v-36a9fec1]:disabled{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}.quick-action-btn svg[data-v-36a9fec1]{flex-shrink:0}.quick-action-btn span[data-v-36a9fec1]{white-space:nowrap}.menu-options-container[data-v-36a9fec1]::-webkit-scrollbar{width:6px}.menu-options-container[data-v-36a9fec1]::-webkit-scrollbar-track{background:var(--action-color-bg-secondary);border-radius:3px}.menu-options-container[data-v-36a9fec1]::-webkit-scrollbar-thumb{background:var(--action-color-border);border-radius:3px}.menu-options-container[data-v-36a9fec1]::-webkit-scrollbar-thumb:hover{background:var(--action-color-text-secondary)}.menu-option-card[data-v-36a9fec1]{display:flex;align-items:center;padding:.75rem;border:2px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-lg);background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);cursor:pointer;transition:all var(--ds-duration-fast) ease;position:relative;overflow:hidden;box-shadow:0 4px 16px #0000001a}.menu-option-card[data-v-36a9fec1]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#3b82f61a,#9333ea1a);opacity:0;transition:opacity var(--ds-duration-fast) ease;z-index:0}.menu-option-card[data-v-36a9fec1]:hover:before{opacity:1}.menu-option-card[data-v-36a9fec1]:hover{border-color:#3b82f680;background:#fffffff2;transform:translateY(-2px);box-shadow:0 8px 24px #3b82f626}.menu-option-card.selected[data-v-36a9fec1]{border-color:#3b82f6;background:#3b82f61a;box-shadow:0 8px 24px #3b82f633}.menu-option-card.selected[data-v-36a9fec1]:before{opacity:1}.menu-option-card.disabled[data-v-36a9fec1]{opacity:.5;cursor:not-allowed;transform:none!important}.menu-option-card.disabled[data-v-36a9fec1]:hover{border-color:var(--action-color-border);box-shadow:none}.menu-option-card.has-description[data-v-36a9fec1]{align-items:flex-start;padding:1.25rem 1rem}.option-icon-container[data-v-36a9fec1]{position:relative;z-index:1;margin-right:.75rem;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:.5rem;background:rgba(var(--action-color-primary-rgb),.1)}.option-icon-image[data-v-36a9fec1]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;border-radius:.25rem}.option-icon-svg[data-v-36a9fec1]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--action-color-primary)}.option-icon-svg svg[data-v-36a9fec1]{width:1.25rem;height:1.25rem;fill:currentColor}.option-icon-unicode[data-v-36a9fec1]{font-size:1.125rem;line-height:1;color:var(--action-color-primary)}.option-icon-emoji[data-v-36a9fec1]{font-size:1.125rem;line-height:1}.option-icon-class[data-v-36a9fec1]{font-size:1rem;color:var(--action-color-primary);display:flex;align-items:center;justify-content:center}.option-content[data-v-36a9fec1]{position:relative;z-index:1;flex:1;min-width:0}.option-title[data-v-36a9fec1]{font-weight:600;color:var(--action-color-text);margin-bottom:.0625rem;font-size:.95rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.option-description[data-v-36a9fec1]{font-size:.8rem;color:var(--action-color-text-secondary);line-height:1.2;margin-top:.125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.option-selector[data-v-36a9fec1]{position:relative;z-index:1;margin-left:.75rem;flex-shrink:0}.checkbox-modern[data-v-36a9fec1]{position:relative}.checkbox-input[data-v-36a9fec1]{position:absolute;opacity:0;width:0;height:0}.checkbox-label[data-v-36a9fec1]{display:block;cursor:pointer}.checkbox-indicator[data-v-36a9fec1]{width:1.25rem;height:1.25rem;border:2px solid var(--action-color-border);border-radius:.375rem;background:var(--action-color-bg);display:flex;align-items:center;justify-content:center;transition:all var(--action-transition-duration);color:#fff}.checkbox-input:checked+.checkbox-label .checkbox-indicator[data-v-36a9fec1]{background:var(--action-color-primary);border-color:var(--action-color-primary);transform:scale(1.05)}.checkbox-input:focus+.checkbox-label .checkbox-indicator[data-v-36a9fec1]{box-shadow:0 0 0 3px rgba(var(--action-color-primary-rgb),.2)}.radio-modern[data-v-36a9fec1]{position:relative}.radio-input[data-v-36a9fec1]{position:absolute;opacity:0;width:0;height:0}.radio-label[data-v-36a9fec1]{display:block;cursor:pointer}.radio-indicator[data-v-36a9fec1]{width:1.25rem;height:1.25rem;border:2px solid var(--action-color-border);border-radius:50%;background:var(--action-color-bg);display:flex;align-items:center;justify-content:center;transition:all var(--action-transition-duration)}.radio-dot[data-v-36a9fec1]{width:.5rem;height:.5rem;background:#fff;border-radius:50%;transform:scale(0);transition:transform var(--action-transition-duration)}.radio-input:checked+.radio-label .radio-indicator[data-v-36a9fec1]{background:var(--action-color-primary);border-color:var(--action-color-primary);transform:scale(1.05)}.radio-input:checked+.radio-label .radio-dot[data-v-36a9fec1]{transform:scale(1)}.radio-input:focus+.radio-label .radio-indicator[data-v-36a9fec1]{box-shadow:0 0 0 3px rgba(var(--action-color-primary-rgb),.2)}.multi-select-controls[data-v-36a9fec1]{margin-top:1rem;padding:1rem;background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border:2px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-lg);box-shadow:0 4px 16px #0000001a}.control-buttons[data-v-36a9fec1]{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.control-btn[data-v-36a9fec1]{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:linear-gradient(135deg,#3b82f6e6,#2563ebe6);border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-md);color:#fff;font-size:.875rem;font-weight:500;cursor:pointer;transition:all var(--ds-duration-fast) ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 2px 8px #3b82f64d;position:relative;overflow:hidden}.control-btn[data-v-36a9fec1]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transition:left var(--ds-duration-normal) ease}.control-btn[data-v-36a9fec1]:hover:not(:disabled){background:linear-gradient(135deg,#3b82f6,#2563eb);transform:translateY(-2px);box-shadow:0 4px 16px #3b82f666;border-color:#ffffff80}.control-btn[data-v-36a9fec1]:hover:not(:disabled):before{left:100%}.control-btn[data-v-36a9fec1]:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #3b82f64d}.control-btn[data-v-36a9fec1]:disabled{opacity:.5;cursor:not-allowed;transform:none;background:#9ca3af80;border-color:#9ca3af4d;box-shadow:none}.control-btn svg[data-v-36a9fec1]{flex-shrink:0}.selected-section[data-v-36a9fec1]{margin-top:1rem}.selected-container[data-v-36a9fec1]{position:relative;padding:1rem;border-radius:.75rem;overflow:hidden;border:1px solid rgba(255,255,255,.1)}.selected-bg[data-v-36a9fec1]{position:absolute;inset:0;opacity:.08;z-index:0}.selected-header[data-v-36a9fec1]{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.selected-title[data-v-36a9fec1]{font-size:.875rem;font-weight:600;color:var(--action-color-text)}.selected-count[data-v-36a9fec1]{background:var(--action-color-primary);color:#fff;padding:.25rem .5rem;border-radius:.375rem;font-size:.75rem;font-weight:600;min-width:1.5rem;text-align:center}.selected-items-grid[data-v-36a9fec1]{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:.5rem}.selected-item-tag[data-v-36a9fec1]{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:rgba(var(--action-color-primary-rgb),.1);border:1px solid rgba(var(--action-color-primary-rgb),.2);border-radius:.5rem;cursor:pointer;transition:all var(--action-transition-duration);font-size:.75rem}.selected-item-tag[data-v-36a9fec1]:hover{background:rgba(var(--action-color-danger-rgb),.1);border-color:rgba(var(--action-color-danger-rgb),.3);transform:translateY(-1px)}.selected-item-name[data-v-36a9fec1]{color:var(--action-color-text);font-weight:500}.selected-item-remove[data-v-36a9fec1]{display:flex;align-items:center;justify-content:center;color:var(--action-color-text-secondary);transition:color var(--action-transition-duration)}.selected-item-tag:hover .selected-item-remove[data-v-36a9fec1]{color:var(--action-color-danger)}.timeout-section[data-v-36a9fec1]{margin-top:.5rem}.timeout-container[data-v-36a9fec1]{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:rgba(var(--action-color-warning-rgb),.1);border:1px solid rgba(var(--action-color-warning-rgb),.2);border-radius:.5rem;font-size:.875rem}.timeout-icon[data-v-36a9fec1]{color:var(--action-color-warning);flex-shrink:0}.timeout-text[data-v-36a9fec1]{color:var(--action-color-text);font-weight:500;flex:1}.timeout-progress[data-v-36a9fec1]{flex:1;height:.25rem;background:rgba(var(--action-color-warning-rgb),.2);border-radius:.125rem;overflow:hidden}.timeout-progress-bar[data-v-36a9fec1]{height:100%;background:var(--action-color-warning);transition:width 1s linear;border-radius:.125rem}.modern-footer[data-v-36a9fec1]{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;margin:0;padding:0}.btn-modern[data-v-36a9fec1]{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border:2px solid transparent;border-radius:var(--ds-radius-lg);font-size:.875rem;font-weight:600;cursor:pointer;transition:all var(--ds-duration-fast) ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);position:relative;overflow:hidden}.btn-modern[data-v-36a9fec1]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease}.btn-modern[data-v-36a9fec1]:hover:before{left:100%}.btn-modern span[data-v-36a9fec1]{position:relative;z-index:1}.btn-secondary[data-v-36a9fec1]{background:linear-gradient(135deg,#ffffff1a,#ffffff0d);border-color:#fff3;color:#000c;box-shadow:0 4px 16px #0000001a}.btn-secondary[data-v-36a9fec1]:hover{background:linear-gradient(135deg,#ffffff26,#ffffff14);border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 8px 24px #00000026}.btn-secondary[data-v-36a9fec1]:active{transform:translateY(0);box-shadow:0 4px 16px #0000001a}.btn-primary[data-v-36a9fec1]{background:linear-gradient(135deg,#3b82f6,#2563eb);border-color:#3b82f6;color:#fff;box-shadow:0 4px 16px #3b82f64d}.btn-primary[data-v-36a9fec1]:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#2563eb;transform:translateY(-2px);box-shadow:0 8px 24px #3b82f666}.btn-primary[data-v-36a9fec1]:active{transform:translateY(0);box-shadow:0 4px 16px #3b82f64d}.btn-modern.disabled[data-v-36a9fec1],.btn-primary[data-v-36a9fec1]:disabled{background:linear-gradient(135deg,#9ca3af80,#6b728080);border-color:#9ca3af4d;color:#9ca3afcc;cursor:not-allowed;transform:none;box-shadow:none}.btn-modern.disabled[data-v-36a9fec1]:before,.btn-primary[data-v-36a9fec1]:disabled:before{display:none}@media (max-width: 768px){.menu-action-modern[data-v-36a9fec1]{gap:1rem}.menu-option-card[data-v-36a9fec1]{padding:.875rem}.option-icon-container[data-v-36a9fec1]{width:1.75rem;height:1.75rem;margin-right:.625rem}.selected-items-grid[data-v-36a9fec1]{flex-direction:column}.selected-item-tag[data-v-36a9fec1]{justify-content:space-between}.modern-footer[data-v-36a9fec1]{flex-direction:column-reverse}.btn-modern[data-v-36a9fec1]{width:100%;justify-content:center}}@media (max-width: 480px){.menu-action-modern[data-v-36a9fec1]{gap:.75rem}.message-content[data-v-36a9fec1],.media-container[data-v-36a9fec1],.selected-container[data-v-36a9fec1],.menu-option-card[data-v-36a9fec1]{padding:.75rem}.option-icon-container[data-v-36a9fec1]{width:1.5rem;height:1.5rem;margin-right:.5rem}.option-title[data-v-36a9fec1]{font-size:.8125rem}.option-description[data-v-36a9fec1]{font-size:.6875rem}}@media (prefers-color-scheme: dark){.menu-option-card[data-v-36a9fec1]{background:#ffffff05}.menu-option-card[data-v-36a9fec1]:hover{background:#ffffff0d}.menu-option-card.selected[data-v-36a9fec1]{background:rgba(var(--action-color-primary-rgb),.1)}}@media (prefers-contrast: high){.menu-option-card[data-v-36a9fec1],.checkbox-indicator[data-v-36a9fec1],.radio-indicator[data-v-36a9fec1],.btn-modern[data-v-36a9fec1]{border-width:3px}}@media (prefers-reduced-motion: reduce){.menu-option-card[data-v-36a9fec1],.checkbox-indicator[data-v-36a9fec1],.radio-indicator[data-v-36a9fec1],.btn-modern[data-v-36a9fec1],.selected-item-tag[data-v-36a9fec1],.timeout-progress-bar[data-v-36a9fec1]{transition:none}.menu-option-card[data-v-36a9fec1]:hover,.btn-modern[data-v-36a9fec1]:hover,.selected-item-tag[data-v-36a9fec1]:hover{transform:none}}.msgbox-action-modern[data-v-55d966d0]{padding:16px;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1)}.glass-effect[data-v-55d966d0]{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:12px;position:relative;overflow:hidden;transition:all .3s cubic-bezier(.4,0,.2,1)}.glass-effect[data-v-55d966d0]:hover{background:#ffffff26;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 8px 32px #0000001a}.gradient-primary[data-v-55d966d0]{background:linear-gradient(135deg,#667eea,#764ba2);opacity:.1;position:absolute;inset:0;z-index:-1}.gradient-secondary[data-v-55d966d0]{background:linear-gradient(135deg,#f093fb,#f5576c);opacity:.1;position:absolute;inset:0;z-index:-1}.gradient-accent[data-v-55d966d0]{background:linear-gradient(135deg,#4facfe,#00f2fe);opacity:.1;position:absolute;inset:0;z-index:-1}.gradient-warning[data-v-55d966d0]{background:linear-gradient(135deg,#fa709a,#fee140);opacity:.1;position:absolute;inset:0;z-index:-1}.icon-section[data-v-55d966d0]{display:flex;justify-content:center;margin-bottom:16px}.icon-container[data-v-55d966d0]{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;position:relative;overflow:hidden}.icon-bg[data-v-55d966d0]{position:absolute;inset:0;z-index:-1}.gradient-info[data-v-55d966d0]{background:linear-gradient(135deg,#667eea,#764ba2)}.gradient-success[data-v-55d966d0]{background:linear-gradient(135deg,#56ab2f,#a8e6cf)}.gradient-warning[data-v-55d966d0]{background:linear-gradient(135deg,#f093fb,#f5576c)}.gradient-error[data-v-55d966d0]{background:linear-gradient(135deg,#ff416c,#ff4b2b)}.gradient-question[data-v-55d966d0]{background:linear-gradient(135deg,#a8edea,#fed6e3)}.icon-wrapper[data-v-55d966d0]{display:flex;align-items:center;justify-content:center;color:#fff;z-index:1}.icon-container.info .icon-wrapper[data-v-55d966d0]{color:#667eea}.icon-container.success .icon-wrapper[data-v-55d966d0]{color:#56ab2f}.icon-container.warning .icon-wrapper[data-v-55d966d0]{color:#f093fb}.icon-container.error .icon-wrapper[data-v-55d966d0]{color:#ff416c}.icon-container.question .icon-wrapper[data-v-55d966d0]{color:#a8edea}.content-section[data-v-55d966d0]{display:flex;flex-direction:column;gap:12px}.message-container[data-v-55d966d0]{padding:16px;position:relative}.message-content[data-v-55d966d0]{display:flex;align-items:flex-start;gap:12px;position:relative;z-index:1}.message-icon[data-v-55d966d0]{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:50%;color:var(--primary-color)}.message-text[data-v-55d966d0]{flex:1;font-size:16px;line-height:1.6;color:var(--text-primary);font-weight:500}.detail-container[data-v-55d966d0]{padding:18px;position:relative}.detail-content[data-v-55d966d0]{display:flex;align-items:flex-start;gap:12px;position:relative;z-index:1}.detail-icon[data-v-55d966d0]{flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:50%;color:var(--secondary-color)}.detail-text[data-v-55d966d0]{flex:1;font-size:14px;line-height:1.5;color:var(--text-secondary)}.media-section[data-v-55d966d0]{display:flex;justify-content:center}.image-container[data-v-55d966d0],.qrcode-container[data-v-55d966d0]{padding:20px;text-align:center;position:relative;max-width:100%}.action-image-modern[data-v-55d966d0]{max-width:100%;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:12px;box-shadow:0 8px 32px #0000001a;position:relative;z-index:1}.qrcode-content[data-v-55d966d0]{position:relative;z-index:1}.qrcode-header[data-v-55d966d0]{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;color:var(--primary-color)}.qrcode-label[data-v-55d966d0]{font-size:14px;font-weight:600}.qrcode-image[data-v-55d966d0]{max-width:200px;border-radius:12px;box-shadow:0 8px 32px #0000001a}.qrcode-text[data-v-55d966d0]{margin-top:12px;font-size:12px;color:var(--text-secondary);opacity:.8}.progress-section[data-v-55d966d0]{margin:16px 0}.progress-container[data-v-55d966d0]{padding:20px;position:relative}.progress-content[data-v-55d966d0]{position:relative;z-index:1}.progress-header[data-v-55d966d0]{display:flex;align-items:center;gap:8px;margin-bottom:16px;color:var(--primary-color)}.progress-label[data-v-55d966d0]{font-size:14px;font-weight:600}.progress-bar-modern[data-v-55d966d0]{margin-bottom:12px}.progress-track[data-v-55d966d0]{width:100%;height:8px;background:#fff3;border-radius:4px;overflow:hidden;position:relative}.progress-fill-modern[data-v-55d966d0]{height:100%;background:linear-gradient(90deg,var(--primary-color),var(--primary-light));border-radius:4px;transition:width .3s cubic-bezier(.4,0,.2,1);position:relative}.progress-fill-modern[data-v-55d966d0]:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer-55d966d0 2s infinite}@keyframes shimmer-55d966d0{0%{transform:translate(-100%)}to{transform:translate(100%)}}.progress-text-modern[data-v-55d966d0]{font-size:14px;color:var(--text-secondary);text-align:center;font-weight:500}.list-section[data-v-55d966d0]{margin:16px 0}.list-container[data-v-55d966d0]{padding:20px;position:relative}.list-content[data-v-55d966d0]{position:relative;z-index:1}.list-header[data-v-55d966d0]{display:flex;align-items:center;gap:8px;margin-bottom:16px;color:var(--secondary-color)}.list-label[data-v-55d966d0]{font-size:14px;font-weight:600}.list-items[data-v-55d966d0]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.list-item[data-v-55d966d0]{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#ffffff1a;border-radius:8px;border-left:3px solid var(--primary-color);transition:all .2s ease}.list-item[data-v-55d966d0]:hover{background:#ffffff26;transform:translate(4px)}.item-marker[data-v-55d966d0]{width:6px;height:6px;background:var(--primary-color);border-radius:50%;flex-shrink:0}.item-text[data-v-55d966d0]{font-size:14px;line-height:1.4;color:var(--text-primary)}.timeout-section[data-v-55d966d0]{margin:16px 0}.timeout-container[data-v-55d966d0]{padding:20px;position:relative;border:1px solid rgba(245,158,11,.3)}.timeout-content[data-v-55d966d0]{display:flex;align-items:center;gap:16px;position:relative;z-index:1}.timeout-icon[data-v-55d966d0]{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#f59e0b33;border-radius:50%;color:#f59e0b;animation:pulse-55d966d0 2s infinite}@keyframes pulse-55d966d0{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.8}}.timeout-info[data-v-55d966d0]{flex:1}.timeout-text[data-v-55d966d0]{font-size:14px;color:#92400e;font-weight:500;margin-bottom:8px}.timeout-progress-modern[data-v-55d966d0]{width:100%;height:4px;background:#fbbf244d;border-radius:2px;overflow:hidden}.timeout-fill-modern[data-v-55d966d0]{height:100%;background:linear-gradient(90deg,#f59e0b,#fbbf24);border-radius:2px;transition:width .1s linear}.modern-footer[data-v-55d966d0]{display:flex;justify-content:flex-end;gap:12px;padding:20px 0 0;border-top:1px solid rgba(255,255,255,.1)}.btn-modern[data-v-55d966d0]{display:flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.btn-modern[data-v-55d966d0]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.btn-modern[data-v-55d966d0]:hover:before{left:100%}.btn-secondary[data-v-55d966d0]{background:#ffffff1a;color:var(--text-primary);border:1px solid rgba(255,255,255,.2)}.btn-secondary[data-v-55d966d0]:hover{background:#fff3;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 8px 25px #00000026}.btn-primary[data-v-55d966d0]{background:linear-gradient(135deg,var(--primary-color),var(--primary-light));color:#fff;border:1px solid var(--primary-color)}.btn-primary[data-v-55d966d0]:hover{background:linear-gradient(135deg,var(--primary-dark),var(--primary-color));transform:translateY(-2px);box-shadow:0 8px 25px rgba(var(--primary-color-rgb),.3)}.btn-modern[data-v-55d966d0]:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-modern[data-v-55d966d0]:disabled:hover{transform:none;box-shadow:none}@media (max-width: 768px){.msgbox-action-modern[data-v-55d966d0]{padding:20px}.icon-container[data-v-55d966d0]{width:60px;height:60px}.icon-container svg[data-v-55d966d0]{width:24px;height:24px}.message-container[data-v-55d966d0],.detail-container[data-v-55d966d0],.progress-container[data-v-55d966d0],.list-container[data-v-55d966d0],.timeout-container[data-v-55d966d0]{padding:16px}.message-text[data-v-55d966d0]{font-size:15px}.detail-text[data-v-55d966d0]{font-size:13px}.modern-footer[data-v-55d966d0]{flex-direction:column;gap:8px}.btn-modern[data-v-55d966d0]{width:100%;justify-content:center;padding:14px 20px}.timeout-content[data-v-55d966d0]{flex-direction:column;text-align:center;gap:12px}}@media (prefers-color-scheme: dark){.glass-effect[data-v-55d966d0]{background:#0003;border-color:#ffffff1a}.glass-effect[data-v-55d966d0]:hover{background:#0000004d;border-color:#fff3}.btn-secondary[data-v-55d966d0]{background:#0003;border-color:#ffffff1a}.btn-secondary[data-v-55d966d0]:hover{background:#0000004d;border-color:#fff3}}@media (prefers-contrast: high){.glass-effect[data-v-55d966d0],.btn-modern[data-v-55d966d0]{border-width:2px}}@media (prefers-reduced-motion: reduce){.glass-effect[data-v-55d966d0],.btn-modern[data-v-55d966d0],.list-item[data-v-55d966d0],.progress-fill-modern[data-v-55d966d0],.timeout-fill-modern[data-v-55d966d0]{transition:none}.timeout-icon[data-v-55d966d0]{animation:none}.progress-fill-modern[data-v-55d966d0]:after{animation:none}.btn-modern[data-v-55d966d0]:before{transition:none}}.webview-action[data-v-a119be1f]{padding:0;display:flex;flex-direction:column;height:100%;min-height:60vh;overflow:hidden}.webview-toolbar-modern[data-v-a119be1f]{display:flex;align-items:center;padding:1rem;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.1);gap:.75rem;min-height:60px;flex-shrink:0}.toolbar-nav-group[data-v-a119be1f]{display:flex;gap:.375rem;background:#ffffff1a;padding:.25rem;border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.toolbar-btn-modern[data-v-a119be1f]{display:flex;align-items:center;justify-content:center;padding:.5rem;border:none;border-radius:var(--ds-radius-md);background:transparent;color:#000000b3;cursor:pointer;transition:all var(--ds-duration-fast) ease;position:relative;overflow:hidden}.toolbar-btn-modern[data-v-a119be1f]:hover{background:#fff3;color:#000000d9;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.toolbar-btn-modern[data-v-a119be1f]:active{transform:translateY(0)}.toolbar-btn-modern.disabled[data-v-a119be1f]{opacity:.4;cursor:not-allowed;transform:none!important}.toolbar-btn-modern.disabled[data-v-a119be1f]:hover{background:transparent;box-shadow:none}.btn-icon[data-v-a119be1f]{width:18px;height:18px;stroke-width:2}.toolbar-address-modern[data-v-a119be1f]{flex:1;max-width:600px}.address-input-container[data-v-a119be1f]{display:flex;align-items:center;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-lg);padding:.5rem .75rem;gap:.5rem;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:all var(--ds-duration-fast) ease}.address-input-container[data-v-a119be1f]:focus-within{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a;background:#ffffff26}.address-icon[data-v-a119be1f]{width:16px;height:16px;color:#00000080;flex-shrink:0}.address-input-modern[data-v-a119be1f]{flex:1;border:none;background:transparent;color:#000c;font-size:.875rem;outline:none;padding:.25rem 0}.address-input-modern[data-v-a119be1f]::-moz-placeholder{color:#00000080}.address-input-modern[data-v-a119be1f]::placeholder{color:#00000080}.address-go-btn[data-v-a119be1f]{padding:.375rem!important;background:#3b82f6!important;color:#fff!important;border-radius:var(--ds-radius-md)!important}.address-go-btn[data-v-a119be1f]:hover{background:#2563eb!important}.toolbar-actions-modern[data-v-a119be1f]{display:flex;gap:.375rem;background:#ffffff1a;padding:.25rem;border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.webview-progress-modern[data-v-a119be1f]{height:3px;background:#ffffff1a;overflow:hidden;position:relative;flex-shrink:0}.progress-bar-modern[data-v-a119be1f]{height:100%;background:linear-gradient(90deg,#3b82f6,#9333ea);transition:width var(--ds-duration-normal) cubic-bezier(.4,0,.2,1);position:relative}.progress-bar-modern[data-v-a119be1f]:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer-a119be1f 2s infinite}@keyframes shimmer-a119be1f{0%{transform:translate(-100%)}to{transform:translate(100%)}}.webview-container-modern[data-v-a119be1f]{flex:1;position:relative;overflow:hidden;background:#fff;border-radius:var(--ds-radius-md);border:1px solid rgba(255,255,255,.2);min-height:400px;display:flex;flex-direction:column}.webview-container-modern.fullscreen[data-v-a119be1f]{position:fixed;inset:0;z-index:9999;background:var(--action-color-bg);border-radius:0}.webview-frame-modern[data-v-a119be1f]{width:100%;height:100%;border:none;background:#fff;border-radius:var(--ds-radius-md);flex:1}.webview-loading-modern[data-v-a119be1f]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;color:var(--action-color-text);z-index:10}.loading-spinner-modern[data-v-a119be1f]{width:48px;height:48px;border:3px solid rgba(255,255,255,.1);border-top:3px solid var(--action-color-primary);border-radius:50%;animation:spin-a119be1f 1s linear infinite;margin:0 auto 16px;position:relative}.loading-spinner-modern[data-v-a119be1f]:after{content:"";position:absolute;inset:6px;border:2px solid transparent;border-top:2px solid var(--action-color-primary-light);border-radius:50%;animation:spin-a119be1f 1.5s linear infinite reverse}@keyframes spin-a119be1f{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text-modern[data-v-a119be1f]{font-size:16px;font-weight:500;margin-bottom:8px;color:var(--action-color-text)}.loading-progress-text[data-v-a119be1f]{font-size:14px;color:var(--action-color-text-secondary);font-weight:600}.webview-error-modern[data-v-a119be1f]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10;width:90%;max-width:400px}.error-container[data-v-a119be1f]{text-align:center;padding:32px;background:#ffffff1a;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:16px;border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 32px #0000001a}.error-icon-modern[data-v-a119be1f]{width:64px;height:64px;color:var(--action-color-danger);margin:0 auto 16px;stroke-width:1.5}.error-title-modern[data-v-a119be1f]{font-size:20px;font-weight:600;margin-bottom:8px;color:var(--action-color-text)}.error-message-modern[data-v-a119be1f]{font-size:14px;color:var(--action-color-text-secondary);margin-bottom:24px;line-height:1.5}.webview-status-modern[data-v-a119be1f]{padding:12px 16px;background:#ffffff1a;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-top:1px solid rgba(255,255,255,.1);font-size:12px}.status-info-modern[data-v-a119be1f]{display:flex;justify-content:space-between;align-items:center;gap:16px}.status-url-container[data-v-a119be1f]{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.status-icon[data-v-a119be1f]{width:14px;height:14px;color:var(--action-color-text-secondary);flex-shrink:0}.status-url-modern[data-v-a119be1f]{color:var(--action-color-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace}.status-timeout-modern[data-v-a119be1f]{display:flex;align-items:center;gap:6px;color:var(--action-color-warning);background:#ffc1071a;padding:4px 8px;border-radius:8px;font-weight:500;flex-shrink:0}.timeout-icon[data-v-a119be1f]{width:14px;height:14px}.btn-modern[data-v-a119be1f]{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border:none;border-radius:12px;font-size:14px;font-weight:500;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;min-height:44px}.btn-modern[data-v-a119be1f]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#fff3,#ffffff1a);opacity:0;transition:opacity .3s ease}.btn-modern[data-v-a119be1f]:hover:before{opacity:1}.btn-modern[data-v-a119be1f]:hover{transform:translateY(-2px);box-shadow:0 8px 25px #00000026}.btn-modern[data-v-a119be1f]:active{transform:translateY(0)}.btn-secondary[data-v-a119be1f]{background:#ffffff1a;color:var(--action-color-text);border:1px solid rgba(255,255,255,.2)}.btn-secondary[data-v-a119be1f]:hover{background:#ffffff26;border-color:#ffffff4d}.btn-primary[data-v-a119be1f]{background:linear-gradient(135deg,var(--action-color-primary) 0%,var(--action-color-primary-dark) 100%);color:#fff;box-shadow:0 4px 15px rgba(var(--action-color-primary-rgb),.3)}.btn-primary[data-v-a119be1f]:hover{box-shadow:0 8px 25px rgba(var(--action-color-primary-rgb),.4)}.action-dialog-footer[data-v-a119be1f]{display:flex;justify-content:flex-end;gap:12px;margin:0;padding:0}@media (max-width: 768px){.webview-toolbar-modern[data-v-a119be1f]{flex-wrap:wrap;padding:12px;gap:8px}.toolbar-address-modern[data-v-a119be1f]{order:3;width:100%;margin-top:8px}.toolbar-btn-modern[data-v-a119be1f]{padding:10px}.btn-icon[data-v-a119be1f]{width:20px;height:20px}.action-dialog-footer[data-v-a119be1f]{flex-direction:column-reverse;gap:8px}.btn-modern[data-v-a119be1f]{width:100%;padding:14px 24px}.error-container[data-v-a119be1f]{padding:24px;margin:16px}.status-info-modern[data-v-a119be1f]{flex-direction:column;align-items:flex-start;gap:8px}.status-timeout-modern[data-v-a119be1f]{align-self:flex-end}}@media (prefers-color-scheme: dark){.webview-action-modern[data-v-a119be1f]{background:linear-gradient(135deg,#0000001a,#0000000d)}.webview-toolbar-modern[data-v-a119be1f],.webview-status-modern[data-v-a119be1f]{background:#0003;border-color:#ffffff1a}.toolbar-nav-group[data-v-a119be1f],.toolbar-actions-modern[data-v-a119be1f]{background:#0003}.address-input-container[data-v-a119be1f]{background:#0003;border-color:#ffffff1a}.address-input-container[data-v-a119be1f]:focus-within{background:#0000004d}.error-container[data-v-a119be1f]{background:#0000004d;border-color:#ffffff1a}.btn-secondary[data-v-a119be1f]{background:#0003;border-color:#ffffff1a}.btn-secondary[data-v-a119be1f]:hover{background:#0000004d;border-color:#fff3}}@media (prefers-contrast: high){.webview-toolbar-modern[data-v-a119be1f],.webview-status-modern[data-v-a119be1f]{border-width:2px}.toolbar-btn-modern[data-v-a119be1f]{border:1px solid currentColor}.address-input-container[data-v-a119be1f]{border-width:2px}.btn-modern[data-v-a119be1f]{border:2px solid currentColor}}@media (prefers-reduced-motion: reduce){.toolbar-btn-modern[data-v-a119be1f],.btn-modern[data-v-a119be1f],.progress-bar-modern[data-v-a119be1f],.loading-spinner-modern[data-v-a119be1f],.loading-spinner-modern[data-v-a119be1f]:after{transition:none;animation:none}.toolbar-btn-modern[data-v-a119be1f]:hover,.btn-modern[data-v-a119be1f]:hover{transform:none}}.help-action-modern[data-v-005dc119]{padding:0;max-height:85vh;overflow:hidden;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px}.help-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:12px;padding:24px;max-height:60vh;overflow-y:auto}.glass-effect[data-v-005dc119]{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 32px #0000001a}.help-message-modern[data-v-005dc119]{padding:16px;border-radius:12px;font-size:16px;line-height:1.7;color:#2d3748;white-space:pre-wrap;background:linear-gradient(135deg,#f8fafc,#e2e8f0);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-left:4px solid #3182ce;box-shadow:0 8px 32px #0000001a;transition:all .3s ease;margin-bottom:8px;display:flex;align-items:flex-start;gap:8px}.help-message-modern[data-v-005dc119]:hover{transform:translateY(-1px);box-shadow:0 6px 20px #0000001a}.message-icon[data-v-005dc119]{width:20px;height:20px;color:#3182ce;flex-shrink:0}.message-text-modern[data-v-005dc119]{flex:1;line-height:1.5;color:#2d3748;font-size:14px}.help-image-modern[data-v-005dc119]{text-align:center;margin-bottom:16px}.image-container[data-v-005dc119]{display:inline-block;padding:16px;border-radius:16px;transition:all .3s ease}.image-container[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.image-content-modern[data-v-005dc119]{max-width:100%;max-height:300px;border-radius:12px;box-shadow:0 4px 20px #0000001a;transition:all .3s ease}.image-content-modern[data-v-005dc119]:hover{transform:scale(1.02);box-shadow:0 8px 30px #00000026}.image-error-modern[data-v-005dc119]{color:#e53e3e;font-size:14px;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:8px}.image-error-modern svg[data-v-005dc119]{width:16px;height:16px}.help-qrcode-modern[data-v-005dc119]{text-align:center;margin-bottom:16px}.qrcode-container-modern[data-v-005dc119]{display:inline-block;padding:20px;border-radius:16px;transition:all .3s ease}.qrcode-container-modern[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.qrcode-header[data-v-005dc119]{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;color:#4299e1;font-weight:500}.qrcode-header svg[data-v-005dc119]{width:20px;height:20px}.qrcode-image-wrapper[data-v-005dc119]{position:relative}.qrcode-image-modern[data-v-005dc119]{width:150px;height:150px;border-radius:12px;box-shadow:0 4px 20px #0000001a;transition:all .3s ease}.qrcode-image-modern[data-v-005dc119]:hover{transform:scale(1.05);box-shadow:0 8px 30px #00000026}.qrcode-error-modern[data-v-005dc119]{color:#e53e3e;font-size:14px;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:8px}.qrcode-error-modern svg[data-v-005dc119]{width:16px;height:16px}.qrcode-text-modern[data-v-005dc119]{margin-top:12px;font-size:14px;color:#718096;font-weight:500}.help-image-modern[data-v-005dc119],.help-qrcode-modern[data-v-005dc119],.help-details-modern[data-v-005dc119],.help-steps-modern[data-v-005dc119],.help-faq-modern[data-v-005dc119],.help-links-modern[data-v-005dc119],.help-contact-modern[data-v-005dc119],.help-data-modern[data-v-005dc119]{padding:16px;border-radius:12px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);transition:all .3s ease;margin-bottom:8px}.help-image-modern[data-v-005dc119]:hover,.help-qrcode-modern[data-v-005dc119]:hover,.help-details-modern[data-v-005dc119]:hover,.help-steps-modern[data-v-005dc119]:hover,.help-faq-modern[data-v-005dc119]:hover,.help-links-modern[data-v-005dc119]:hover,.help-contact-modern[data-v-005dc119]:hover,.help-data-modern[data-v-005dc119]:hover{transform:translateY(-1px);box-shadow:0 6px 20px #0000001a}.help-details-modern[data-v-005dc119]{border-left:4px solid #4299e1}.help-steps-modern[data-v-005dc119]{border-left:4px solid #48bb78}.help-faq-modern[data-v-005dc119]{border-left:4px solid #ed8936}.help-links-modern[data-v-005dc119]{border-left:4px solid #38b2ac}.help-contact-modern[data-v-005dc119]{border-left:4px solid #9f7aea}.help-data-modern[data-v-005dc119]{background:linear-gradient(135deg,#f7fafc,#edf2f7);border-left:4px solid #4299e1}.section-header[data-v-005dc119]{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid rgba(0,0,0,.1)}.section-icon[data-v-005dc119]{width:20px;height:20px;color:#4299e1;flex-shrink:0}.section-icon svg[data-v-005dc119]{width:100%;height:100%}.section-title[data-v-005dc119]{font-size:16px;font-weight:600;color:#2d3748;margin:0}.details-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:16px}.detail-card[data-v-005dc119]{padding:16px 20px;border-radius:12px;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.detail-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 8px 30px #00000026}.detail-title-modern[data-v-005dc119]{font-weight:500;margin-bottom:8px;color:#2d3748;font-size:16px}.detail-text-modern[data-v-005dc119]{line-height:1.6;color:#4a5568}.data-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:8px}.data-item[data-v-005dc119]{padding:12px 16px;border-radius:8px;background:#fffc;transition:all .3s ease;border:1px solid rgba(0,0,0,.05)}.data-item[data-v-005dc119]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #00000014;background:#fffffff2}.data-title-modern[data-v-005dc119]{font-weight:500;margin-bottom:6px;color:#2d3748;font-size:14px}.data-text-modern[data-v-005dc119]{line-height:1.5;color:#4a5568;font-size:14px}.steps-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:16px}.step-card[data-v-005dc119]{display:flex;padding:20px;border-radius:12px;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.step-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 8px 30px #00000026}.step-number-modern[data-v-005dc119]{width:32px;height:32px;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;margin-right:16px;flex-shrink:0;box-shadow:0 4px 12px #48bb784d}.step-content-modern[data-v-005dc119]{flex:1}.step-title-modern[data-v-005dc119]{font-weight:500;margin-bottom:8px;color:#2d3748;font-size:16px}.step-text-modern[data-v-005dc119]{line-height:1.6;color:#4a5568;margin-bottom:12px}.step-image-modern[data-v-005dc119]{margin-top:12px}.step-img-modern[data-v-005dc119]{max-width:100%;max-height:200px;border-radius:8px;box-shadow:0 4px 12px #0000001a}.faq-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:16px}.faq-card[data-v-005dc119]{border-radius:12px;overflow:hidden;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.faq-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.faq-card.expanded[data-v-005dc119]{box-shadow:0 12px 40px #4299e133}.faq-question-modern[data-v-005dc119]{padding:20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all .3s ease;background:#ffffff1a}.faq-question-modern[data-v-005dc119]:hover{background:#fff3}.question-content[data-v-005dc119]{display:flex;align-items:center;gap:12px;flex:1}.question-icon-wrapper[data-v-005dc119]{width:20px;height:20px;color:#4299e1;flex-shrink:0}.question-text-modern[data-v-005dc119]{font-weight:500;color:#2d3748;font-size:16px}.expand-icon[data-v-005dc119]{width:20px;height:20px;color:#4299e1;transition:transform .3s ease;flex-shrink:0}.expand-icon.rotated[data-v-005dc119]{transform:rotate(180deg)}.faq-answer-modern[data-v-005dc119]{background:#ffffff0d;border-top:1px solid rgba(255,255,255,.1)}.answer-text-modern[data-v-005dc119]{padding:20px;line-height:1.6;color:#4a5568}.links-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:12px}.link-card[data-v-005dc119]{display:flex;align-items:center;gap:16px;padding:16px 20px;border-radius:12px;text-decoration:none;color:#2d3748;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.link-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 8px 30px #00000026;text-decoration:none;color:#4299e1;background:#4299e11a}.link-icon-modern[data-v-005dc119]{width:20px;height:20px;color:#4299e1;flex-shrink:0}.link-content[data-v-005dc119]{flex:1;display:flex;flex-direction:column;gap:4px}.link-text-modern[data-v-005dc119]{font-weight:500;font-size:16px}.link-desc-modern[data-v-005dc119]{font-size:14px;color:#718096}.link-arrow[data-v-005dc119]{width:16px;height:16px;color:#a0aec0;flex-shrink:0;transition:all .3s ease}.link-card:hover .link-arrow[data-v-005dc119]{color:#4299e1;transform:translate(4px)}.contact-content-modern[data-v-005dc119]{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.contact-card[data-v-005dc119]{display:flex;align-items:center;gap:16px;padding:16px 20px;border-radius:12px;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.contact-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 8px 30px #00000026}.contact-icon[data-v-005dc119]{width:24px;height:24px;color:#9f7aea;flex-shrink:0}.contact-info[data-v-005dc119]{display:flex;flex-direction:column;gap:4px}.contact-label-modern[data-v-005dc119]{font-size:14px;color:#718096;font-weight:500}.contact-value-modern[data-v-005dc119]{color:#4299e1;text-decoration:none;font-weight:500;transition:all .3s ease}.contact-value-modern[data-v-005dc119]:hover{color:#2b6cb0;text-decoration:underline}.help-timeout-modern[data-v-005dc119]{display:flex;align-items:center;gap:8px;padding:12px 16px;background:linear-gradient(135deg,#fed7d7,#feb2b2);border-radius:8px;margin-top:12px;border-left:4px solid #e53e3e;font-size:14px;color:#742a2a;animation:pulse-005dc119 2s infinite}.timeout-icon[data-v-005dc119]{width:18px;height:18px;color:#e53e3e;flex-shrink:0}@keyframes pulse-005dc119{0%,to{opacity:1}50%{opacity:.8}}.action-dialog-footer[data-v-005dc119]{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.2)}.btn-modern[data-v-005dc119]{display:flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:12px;font-size:14px;font-weight:500;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden}.btn-modern[data-v-005dc119]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.btn-modern[data-v-005dc119]:hover:before{left:100%}.btn-modern svg[data-v-005dc119]{width:16px;height:16px;flex-shrink:0}.btn-secondary[data-v-005dc119]{background:#ffffff1a;color:#4a5568;border:1px solid rgba(255,255,255,.2)}.btn-secondary[data-v-005dc119]:hover{background:#fff3;color:#2d3748;transform:translateY(-2px);box-shadow:0 8px 25px #00000026}.btn-primary[data-v-005dc119]{background:linear-gradient(135deg,#4299e1,#667eea);color:#fff;border:1px solid rgba(255,255,255,.2)}.btn-primary[data-v-005dc119]:hover{background:linear-gradient(135deg,#3182ce,#5a67d8);transform:translateY(-2px);box-shadow:0 8px 25px #4299e166}.btn-modern[data-v-005dc119]:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.help-content-modern[data-v-005dc119] code{background:#4299e11a;color:#2b6cb0;padding:4px 8px;border-radius:6px;font-family:JetBrains Mono,Fira Code,Courier New,monospace;font-size:.9em;font-weight:500}.help-content-modern[data-v-005dc119] pre{background:#2d3748e6;color:#e2e8f0;padding:20px;border-radius:12px;overflow-x:auto;border-left:4px solid #4299e1;margin:16px 0}.help-content-modern[data-v-005dc119] pre code{background:none;color:inherit;padding:0}.help-content-modern[data-v-005dc119] strong{font-weight:600;color:#2d3748}.help-content-modern[data-v-005dc119] em{font-style:italic;color:#4a5568}.help-content-modern[data-v-005dc119]::-webkit-scrollbar{width:8px}.help-content-modern[data-v-005dc119]::-webkit-scrollbar-track{background:#ffffff1a;border-radius:4px}.help-content-modern[data-v-005dc119]::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:4px}.help-content-modern[data-v-005dc119]::-webkit-scrollbar-thumb:hover{background:#ffffff80}@media (max-width: 768px){.help-action-modern[data-v-005dc119]{max-height:90vh}.help-content-modern[data-v-005dc119]{padding:16px;gap:8px;max-height:calc(90vh - 70px)}.help-message-modern[data-v-005dc119],.help-image-modern[data-v-005dc119],.help-qrcode-modern[data-v-005dc119],.help-details-modern[data-v-005dc119],.help-steps-modern[data-v-005dc119],.help-faq-modern[data-v-005dc119],.help-links-modern[data-v-005dc119],.help-contact-modern[data-v-005dc119],.help-data-modern[data-v-005dc119]{padding:12px;margin-bottom:6px}.section-header[data-v-005dc119]{margin-bottom:8px}.section-title[data-v-005dc119]{font-size:14px}.step-card[data-v-005dc119]{flex-direction:column;align-items:flex-start}.step-number-modern[data-v-005dc119]{margin-right:0;margin-bottom:12px}.contact-content-modern[data-v-005dc119]{grid-template-columns:1fr}.action-dialog-footer[data-v-005dc119]{flex-direction:column;gap:8px;padding:16px}.btn-modern[data-v-005dc119]{width:100%;justify-content:center}.section-title[data-v-005dc119]{font-size:16px}.link-card[data-v-005dc119]{flex-direction:column;align-items:flex-start;gap:12px}.link-arrow[data-v-005dc119]{align-self:flex-end}}@media (prefers-color-scheme: dark){.help-action-modern[data-v-005dc119]{background:linear-gradient(135deg,#2d3748,#4a5568)}.glass-effect[data-v-005dc119]{background:#0003;border:1px solid rgba(255,255,255,.1)}.help-message-modern[data-v-005dc119]{background:linear-gradient(135deg,#2d3748f2,#1a202cf2);border-color:#ffffff1a}.help-image-modern[data-v-005dc119],.help-qrcode-modern[data-v-005dc119],.help-details-modern[data-v-005dc119],.help-steps-modern[data-v-005dc119],.help-faq-modern[data-v-005dc119],.help-links-modern[data-v-005dc119],.help-contact-modern[data-v-005dc119]{background:#2d3748f2;border-color:#ffffff1a}.help-data-modern[data-v-005dc119]{background:linear-gradient(135deg,#2d3748f2,#1a202cf2);border-color:#ffffff1a}.data-item[data-v-005dc119]{background:#1a202ccc;border-color:#ffffff0d}.data-item[data-v-005dc119]:hover{background:#1a202cf2}.section-title[data-v-005dc119],.question-text-modern[data-v-005dc119],.link-text-modern[data-v-005dc119],.detail-title-modern[data-v-005dc119],.step-title-modern[data-v-005dc119],.data-title-modern[data-v-005dc119]{color:#e2e8f0}.message-text-modern[data-v-005dc119],.detail-text-modern[data-v-005dc119],.step-text-modern[data-v-005dc119],.answer-text-modern[data-v-005dc119],.data-text-modern[data-v-005dc119]{color:#cbd5e0}}@media (prefers-contrast: high){.glass-effect[data-v-005dc119]{background:#fffffff2;border:2px solid #000}.btn-modern[data-v-005dc119]{border:2px solid #000}.section-title[data-v-005dc119],.question-text-modern[data-v-005dc119],.link-text-modern[data-v-005dc119]{color:#000;font-weight:700}}@media (prefers-reduced-motion: reduce){[data-v-005dc119]{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.btn-modern[data-v-005dc119]:before{display:none}}:root{--action-primary: #1890ff;--action-primary-hover: #40a9ff;--action-primary-active: #096dd9;--action-success: #52c41a;--action-warning: #faad14;--action-error: #f5222d;--action-text: #262626;--action-text-secondary: #8c8c8c;--action-text-disabled: #bfbfbf;--action-border: #d9d9d9;--action-border-hover: #40a9ff;--action-background: #ffffff;--action-background-light: #fafafa;--action-background-disabled: #f5f5f5;--action-color-primary: var(--action-primary);--action-color-primary-light: var(--action-primary-hover);--action-color-primary-dark: var(--action-primary-active);--action-color-primary-rgb: 24, 144, 255;--action-color-secondary: #6c757d;--action-color-secondary-rgb: 108, 117, 125;--action-color-success: var(--action-success);--action-color-warning: var(--action-warning);--action-color-error: var(--action-error);--action-color-text: var(--action-text);--action-color-text-secondary: var(--action-text-secondary);--action-color-text-disabled: var(--action-text-disabled);--action-color-border: var(--action-border);--action-color-border-hover: var(--action-border-hover);--action-color-bg: var(--action-background);--action-color-bg-light: var(--action-background-light);--action-color-bg-disabled: var(--action-background-disabled);--action-border-radius: 6px;--action-border-radius-sm: 4px;--action-border-radius-lg: 8px;--action-padding: 16px;--action-padding-sm: 8px;--action-padding-lg: 24px;--action-margin: 8px;--action-margin-sm: 4px;--action-margin-lg: 16px;--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--spacing-xl: 32px;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--font-size-xs: 12px;--font-size-sm: 14px;--font-size-md: 16px;--font-size-lg: 18px;--font-size-xl: 20px;--action-shadow: 0 2px 8px rgba(0, 0, 0, .15);--action-shadow-hover: 0 4px 12px rgba(0, 0, 0, .15);--action-shadow-active: 0 0 0 2px rgba(24, 144, 255, .2);--action-transition: all .3s cubic-bezier(.645, .045, .355, 1);--action-transition-fast: all .2s cubic-bezier(.645, .045, .355, 1);--action-transition-duration: .3s;--action-shadow-small: 0 1px 3px rgba(0, 0, 0, .12);--action-shadow-medium: 0 4px 6px rgba(0, 0, 0, .1);--action-shadow-large: 0 10px 25px rgba(0, 0, 0, .15);--action-shadow-xl: 0 20px 40px rgba(0, 0, 0, .2)}.action-component *{box-sizing:border-box}.action-mask{position:fixed;inset:0;background:#00000073;z-index:1000;display:flex;align-items:center;justify-content:center;animation:actionFadeIn .3s ease-out}.action-mask.closing{animation:actionFadeOut .3s ease-out}.action-dialog{background:var(--action-background);border-radius:var(--action-border-radius-lg);box-shadow:var(--action-shadow);max-width:90vw;max-height:90vh;overflow:hidden;animation:actionSlideIn .3s ease-out;position:relative}.action-dialog.closing{animation:actionSlideOut .3s ease-out}.action-dialog-header{padding:var(--action-padding) var(--action-padding) 0;border-bottom:1px solid var(--action-border);margin-bottom:var(--action-padding)}.action-dialog-title{font-size:16px;font-weight:600;color:var(--action-text);margin:0;padding-bottom:var(--action-padding-sm)}.action-dialog-content{padding:0 var(--action-padding)}.action-dialog-footer{padding:var(--action-padding);border-top:1px solid var(--action-border);margin-top:var(--action-padding);display:flex;justify-content:flex-end;gap:var(--action-margin)}.action-dialog-close{position:absolute;top:var(--action-padding-sm);right:var(--action-padding-sm);width:32px;height:32px;border:none;background:transparent;cursor:pointer;border-radius:var(--action-border-radius-sm);display:flex;align-items:center;justify-content:center;color:var(--action-text-secondary);transition:var(--action-transition-fast)}.action-dialog-close:hover{background:var(--action-background-light);color:var(--action-text)}.action-button{padding:var(--action-padding-sm) var(--action-padding);border:1px solid var(--action-border);border-radius:var(--action-border-radius);background:var(--action-background);color:var(--action-text);cursor:pointer;font-size:14px;line-height:1.5;transition:var(--action-transition);display:inline-flex;align-items:center;justify-content:center;min-width:80px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.action-button:hover{border-color:var(--action-border-hover);color:var(--action-primary)}.action-button:active{transform:translateY(1px)}.action-button:disabled{background:var(--action-background-disabled);border-color:var(--action-border);color:var(--action-text-disabled);cursor:not-allowed}.action-button-primary{background:var(--action-primary);border-color:var(--action-primary);color:#fff}.action-button-primary:hover{background:var(--action-primary-hover);border-color:var(--action-primary-hover);color:#fff}.action-button-primary:active{background:var(--action-primary-active);border-color:var(--action-primary-active)}.action-button-danger{background:var(--action-error);border-color:var(--action-error);color:#fff}.action-button-danger:hover{background:#ff4d4f;border-color:#ff4d4f;color:#fff}.action-input{width:100%;padding:var(--action-padding-sm) 12px;border:1px solid var(--action-border);border-radius:var(--action-border-radius);font-size:14px;line-height:1.5;color:var(--action-text);background:var(--action-background);transition:var(--action-transition)}.action-input:focus{border-color:var(--action-primary);outline:none;box-shadow:var(--action-shadow-active)}.action-input:disabled{background:var(--action-background-disabled);color:var(--action-text-disabled);cursor:not-allowed}.action-input.error{border-color:var(--action-error)}.action-input.error:focus{box-shadow:0 0 0 2px #f5222d33}.action-textarea{resize:vertical;min-height:80px;font-family:inherit}.action-label{display:block;margin-bottom:var(--action-margin-sm);font-size:14px;font-weight:500;color:var(--action-text)}.action-label.required:after{content:" *";color:var(--action-error)}.action-tip{font-size:12px;color:var(--action-text-secondary);margin-top:var(--action-margin-sm);line-height:1.4}.action-tip.error{color:var(--action-error)}.action-form-item{margin-bottom:var(--action-padding)}.action-form-item:last-child{margin-bottom:0}.action-option{padding:12px;border:1px solid var(--action-border);border-radius:var(--action-border-radius);cursor:pointer;transition:var(--action-transition);background:var(--action-background);margin-bottom:var(--action-margin);display:flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.action-option:hover{background:var(--action-background-light);border-color:var(--action-primary)}.action-option.selected{background:var(--action-primary);border-color:var(--action-primary);color:#fff}.action-option.disabled{background:var(--action-background-disabled);color:var(--action-text-disabled);cursor:not-allowed}.action-options-grid{display:grid;gap:var(--action-margin)}.action-options-grid.columns-1{grid-template-columns:1fr}.action-options-grid.columns-2{grid-template-columns:repeat(2,1fr)}.action-options-grid.columns-3{grid-template-columns:repeat(3,1fr)}.action-options-grid.columns-4{grid-template-columns:repeat(4,1fr)}.action-checkbox{width:16px;height:16px;margin-right:var(--action-margin);accent-color:var(--action-primary)}.action-image{max-width:100%;height:auto;border-radius:var(--action-border-radius);margin:var(--action-margin) 0;cursor:pointer;transition:var(--action-transition)}.action-image:hover{transform:scale(1.02);box-shadow:var(--action-shadow-hover)}.action-qrcode{text-align:center;margin:var(--action-padding) 0}.action-qrcode img{border:1px solid var(--action-border);border-radius:var(--action-border-radius)}.action-webview{width:100%;border:1px solid var(--action-border);border-radius:var(--action-border-radius);background:var(--action-background)}.action-loading{display:flex;align-items:center;justify-content:center;padding:var(--action-padding-lg);color:var(--action-text-secondary)}.action-loading:before{content:"";width:20px;height:20px;border:2px solid var(--action-border);border-top-color:var(--action-primary);border-radius:50%;animation:actionSpin 1s linear infinite;margin-right:var(--action-margin)}.action-error{padding:var(--action-padding);background:#fff2f0;border:1px solid #ffccc7;border-radius:var(--action-border-radius);color:var(--action-error);margin:var(--action-margin) 0}.action-success{padding:var(--action-padding);background:#f6ffed;border:1px solid #b7eb8f;border-radius:var(--action-border-radius);color:var(--action-success);margin:var(--action-margin) 0}.action-quick-select{display:flex;flex-wrap:wrap;gap:var(--action-margin-sm);margin-top:var(--action-margin)}.action-quick-select-item{padding:4px var(--action-margin);background:var(--action-background-light);border:1px solid var(--action-border);border-radius:var(--action-border-radius-sm);cursor:pointer;font-size:12px;transition:var(--action-transition-fast)}.action-quick-select-item:hover{background:var(--action-primary);border-color:var(--action-primary);color:#fff}.action-help{background:#f0f9ff;border:1px solid #91d5ff;border-radius:var(--action-border-radius);padding:var(--action-padding-sm);margin-top:var(--action-margin);font-size:12px;color:#1890ff;line-height:1.4}@media (max-width: 768px){.action-dialog{margin:var(--action-padding);max-width:calc(100vw - 32px)}.action-options-grid.columns-3,.action-options-grid.columns-4{grid-template-columns:repeat(2,1fr)}.action-dialog-footer{flex-direction:column-reverse}.action-button{width:100%}}@media (max-width: 480px){.action-options-grid.columns-2,.action-options-grid.columns-3,.action-options-grid.columns-4{grid-template-columns:1fr}}@keyframes actionFadeIn{0%{opacity:0}to{opacity:1}}@keyframes actionFadeOut{0%{opacity:1}to{opacity:0}}@keyframes actionSlideIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes actionSlideOut{0%{opacity:1;transform:scale(1) translateY(0)}to{opacity:0;transform:scale(.9) translateY(-20px)}}@keyframes actionSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.action-dialog-content::-webkit-scrollbar{width:6px}.action-dialog-content::-webkit-scrollbar-track{background:var(--action-background-light);border-radius:3px}.action-dialog-content::-webkit-scrollbar-thumb{background:var(--action-border);border-radius:3px}.action-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--action-text-secondary)}.global-action-dialog[data-v-cd5d9c46] .arco-modal-header{border-bottom:1px solid var(--color-border-2);padding:16px 24px}.global-action-dialog[data-v-cd5d9c46] .arco-modal-body{padding:0;max-height:70vh;overflow:hidden}.global-action-content[data-v-cd5d9c46]{display:flex;flex-direction:column;height:100%}.search-section[data-v-cd5d9c46]{padding:20px 24px 16px;border-bottom:1px solid var(--color-border-2);background:var(--color-bg-1)}.search-filters[data-v-cd5d9c46]{display:flex;gap:12px;align-items:center}.action-search[data-v-cd5d9c46]{flex:2;min-width:60%}.site-filter[data-v-cd5d9c46]{flex:1;min-width:100px;max-width:120px}.action-list-container[data-v-cd5d9c46]{flex:1;overflow-y:auto;min-height:300px;max-height:400px}.empty-state[data-v-cd5d9c46]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;text-align:center}.empty-icon[data-v-cd5d9c46]{font-size:48px;color:var(--color-text-4);margin-bottom:16px}.empty-text[data-v-cd5d9c46]{font-size:16px;font-weight:500;color:var(--color-text-2);margin-bottom:8px}.empty-hint[data-v-cd5d9c46]{font-size:14px;color:var(--color-text-3)}.action-list[data-v-cd5d9c46]{padding:8px 0}.action-item[data-v-cd5d9c46]{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;cursor:pointer;transition:all .2s ease;border-bottom:1px solid var(--color-border-1)}.action-item[data-v-cd5d9c46]:hover{background:var(--color-bg-2)}.action-item[data-v-cd5d9c46]:last-child{border-bottom:none}.action-main[data-v-cd5d9c46]{flex:1;display:flex;align-items:center;justify-content:space-between;min-width:0}.action-name[data-v-cd5d9c46]{display:flex;align-items:center;font-size:15px;font-weight:500;color:var(--color-text-1);flex:1;min-width:0}.action-icon[data-v-cd5d9c46]{margin-right:8px;color:var(--color-primary-6);font-size:16px;flex-shrink:0}.action-source[data-v-cd5d9c46]{display:flex;align-items:center;font-size:13px;color:var(--color-text-3);margin-left:16px;flex-shrink:0}.source-icon[data-v-cd5d9c46]{margin-right:4px;font-size:14px}.action-arrow[data-v-cd5d9c46]{margin-left:16px;color:var(--color-text-4);font-size:14px;flex-shrink:0}.action-stats[data-v-cd5d9c46]{display:flex;align-items:center;gap:24px;padding:16px 24px;background:var(--color-bg-2);border-top:1px solid var(--color-border-2)}.stats-item[data-v-cd5d9c46]{display:flex;align-items:center;font-size:13px}.stats-label[data-v-cd5d9c46]{color:var(--color-text-3);margin-right:4px}.stats-value[data-v-cd5d9c46]{color:var(--color-text-1);font-weight:500}@media (max-width: 768px){.global-action-dialog[data-v-cd5d9c46] .arco-modal{width:95vw!important;margin:20px auto}.search-filters[data-v-cd5d9c46]{flex-direction:column;gap:12px}.site-filter[data-v-cd5d9c46]{width:100%}.action-main[data-v-cd5d9c46]{flex-direction:column;align-items:flex-start;gap:8px}.action-source[data-v-cd5d9c46]{margin-left:0}.action-stats[data-v-cd5d9c46]{flex-direction:column;align-items:flex-start;gap:8px}}@media (prefers-color-scheme: dark){.search-section[data-v-cd5d9c46],.action-item[data-v-cd5d9c46]:hover,.action-stats[data-v-cd5d9c46]{background:var(--color-bg-3)}}.breadcrumb-container[data-v-2f29cc38]{display:flex;align-items:center;width:100%;padding:16px 20px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border-2);box-sizing:border-box}.header-left[data-v-2f29cc38]{display:flex;align-items:center;flex:0 0 auto;min-width:0}.navigation-title[data-v-2f29cc38]{font-size:16px;font-weight:600;color:var(--color-text-1);margin-right:16px;white-space:nowrap}.header-left button[data-v-2f29cc38]{margin-right:12px}.header-center[data-v-2f29cc38]{flex:1;display:flex;justify-content:center;padding:0 20px;min-width:0}.header-center[data-v-2f29cc38] .arco-input-search{max-width:400px;width:100%}.header-right[data-v-2f29cc38]{display:flex;align-items:center;flex:0 0 auto;min-width:0}.header-right button[data-v-2f29cc38]{margin-right:12px}.header-right button[data-v-2f29cc38]:last-of-type{margin-right:16px}.header-right[data-v-2f29cc38] .current-time{font-size:14px;color:var(--color-text-2);white-space:nowrap;margin-left:8px}.push-modal-content[data-v-2f29cc38]{padding:20px 0}.push-description[data-v-2f29cc38]{display:flex;align-items:center;margin-bottom:20px;font-size:16px;color:var(--color-text-1);font-weight:500}.push-icon[data-v-2f29cc38]{margin-right:8px;font-size:18px;color:var(--color-primary-6)}.push-textarea[data-v-2f29cc38]{margin-bottom:16px}.push-textarea[data-v-2f29cc38] .arco-textarea{border-radius:8px;border:2px solid var(--color-border-2);transition:all .3s ease;font-family:Consolas,Monaco,Courier New,monospace;line-height:1.6}.push-textarea[data-v-2f29cc38] .arco-textarea:focus{border-color:var(--color-primary-6);box-shadow:0 0 0 3px var(--color-primary-1)}.push-textarea[data-v-2f29cc38] .arco-textarea::-moz-placeholder{color:var(--color-text-3);font-style:italic}.push-textarea[data-v-2f29cc38] .arco-textarea::placeholder{color:var(--color-text-3);font-style:italic}.push-hint[data-v-2f29cc38]{background:var(--color-bg-2);border-radius:8px;padding:16px;border-left:4px solid var(--color-primary-6)}.hint-item[data-v-2f29cc38]{display:flex;align-items:flex-start;margin-bottom:8px;font-size:14px;color:var(--color-text-2);line-height:1.5}.hint-item[data-v-2f29cc38]:last-child{margin-bottom:0}.hint-icon[data-v-2f29cc38]{margin-right:8px;margin-top:2px;font-size:16px;color:var(--color-primary-6);flex-shrink:0}@media (max-width: 1200px){.header-center[data-v-2f29cc38] .arco-input-search{max-width:300px}}@media (max-width: 768px){.breadcrumb-container[data-v-2f29cc38]{padding:12px 16px}.navigation-title[data-v-2f29cc38]{font-size:14px;margin-right:12px}.header-center[data-v-2f29cc38]{padding:0 12px}.header-center[data-v-2f29cc38] .arco-input-search{max-width:250px}.header-left button[data-v-2f29cc38],.header-right button[data-v-2f29cc38]{margin-right:8px}}.filter-section[data-v-90bc92fe]{flex-shrink:0;background:#fff;z-index:99;margin-bottom:8px}.filter-header-left[data-v-90bc92fe]{display:flex;justify-content:flex-start;align-items:center;padding:8px 0;margin-bottom:4px}.filter-toggle-btn[data-v-90bc92fe]{display:flex;align-items:center;gap:4px;font-weight:500}.filter-header-with-reset[data-v-90bc92fe]{position:absolute;left:16px;top:4px;z-index:10;width:28px}.filter-reset-btn[data-v-90bc92fe]{color:#fff;font-size:12px;padding:4px;height:28px;width:28px;border-radius:6px;transition:all .2s ease;display:flex;align-items:center;justify-content:center;background-color:var(--color-primary-6);border:none;box-shadow:0 2px 4px #0000001a}.filter-reset-btn[data-v-90bc92fe]:hover{color:#fff;background-color:var(--color-primary-7);transform:translateY(-1px);box-shadow:0 4px 8px #00000026}.filter-content[data-v-90bc92fe]{position:relative;padding:0 16px 8px 52px}.filter-group[data-v-90bc92fe]{margin-bottom:4px;padding:4px 12px;background:var(--color-fill-1);border-radius:6px}.filter-group[data-v-90bc92fe]:last-child{margin-bottom:0}.filter-group-row[data-v-90bc92fe]{display:flex;align-items:center;gap:16px;min-height:28px}.filter-group-title[data-v-90bc92fe]{font-size:13px;font-weight:600;color:var(--color-text-2);white-space:nowrap;flex-shrink:0;min-width:70px;text-align:left;background:var(--color-fill-3);padding:4px 8px 4px 20px;border-radius:4px;position:relative}.filter-group-title[data-v-90bc92fe]:before{content:"";position:absolute;left:6px;top:50%;transform:translateY(-50%);width:8px;height:8px;background:var(--color-primary-light-4);border-radius:2px}.filter-options-container[data-v-90bc92fe]{flex:1;overflow:hidden}.filter-options[data-v-90bc92fe]{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:2px 0;scrollbar-width:thin;scrollbar-color:var(--color-border-3) transparent}.filter-options[data-v-90bc92fe]::-webkit-scrollbar{height:4px}.filter-options[data-v-90bc92fe]::-webkit-scrollbar-track{background:transparent}.filter-options[data-v-90bc92fe]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:2px}.filter-options[data-v-90bc92fe]::-webkit-scrollbar-thumb:hover{background:var(--color-border-2)}.filter-option-tag[data-v-90bc92fe]{cursor:pointer;transition:all .2s ease;white-space:nowrap;flex-shrink:0}.filter-option-tag[data-v-90bc92fe]:hover{transform:translateY(-1px)}.collapse-enter-active[data-v-90bc92fe],.collapse-leave-active[data-v-90bc92fe]{transition:all .3s ease;overflow:hidden}.collapse-enter-from[data-v-90bc92fe],.collapse-leave-to[data-v-90bc92fe]{max-height:0;opacity:0;padding-top:0;padding-bottom:0}.collapse-enter-to[data-v-90bc92fe],.collapse-leave-from[data-v-90bc92fe]{max-height:500px;opacity:1}.category-nav-container[data-v-9076ce57]{margin-bottom:16px}.category-nav-wrapper[data-v-9076ce57]{display:flex;align-items:center;position:relative;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:8px 8px 0 0;padding:0 16px;box-shadow:0 2px 8px #0000001a;z-index:2}.category-nav-container[data-v-9076ce57] .filter-section{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:0 0 8px 8px;border-top:1px solid rgba(0,0,0,.1);box-shadow:0 2px 8px #0000001a;margin-top:-1px;z-index:1}.category-tabs[data-v-9076ce57]{flex:1;overflow:hidden}.category-tabs[data-v-9076ce57] .arco-tabs-nav{margin-bottom:0;border-bottom:none}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab{padding:12px 16px;margin-right:8px;border-radius:6px 6px 0 0;transition:all .3s ease;color:#666;font-weight:500}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab:hover{color:#165dff}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:hover,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:focus,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active:hover{background-color:#165dff!important;background:#165dff!important;color:#fff!important;font-weight:600!important;border:none!important;border-color:transparent!important}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active .category-name,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:hover .category-name,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:focus .category-name,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active .category-name,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active:hover .category-name{color:#fff!important}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active .filter-icon,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:hover .filter-icon,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:focus .filter-icon,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active .filter-icon,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active:hover .filter-icon{color:#fff!important;opacity:1!important}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active .filter-icon:hover{background:#fff3}.category-tabs[data-v-9076ce57] .arco-tabs-nav-ink{display:none}.category-tab-title[data-v-9076ce57]{display:flex;align-items:center;gap:4px;width:100%;padding:2px 4px;border-radius:4px;transition:all .3s ease}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab-active .category-tab-title{cursor:pointer}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab-active .category-tab-title:hover{background:#ffffff1a}.category-name[data-v-9076ce57]{cursor:pointer;flex:1}.filter-icon[data-v-9076ce57]{font-size:12px;transition:all .3s ease;opacity:.7;cursor:pointer;padding:2px;border-radius:2px;flex-shrink:0}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab[class*=active]{background-color:#165dff!important;background:#165dff!important;color:#fff!important}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab[class*=active] *{color:#fff!important}.filter-icon[data-v-9076ce57]:hover{opacity:1;background:#165dff1a}.filter-icon-active[data-v-9076ce57]{opacity:1;color:#165dff}.category-manage[data-v-9076ce57]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:6px;background:#165dff1a;color:#165dff;cursor:pointer;transition:all .3s ease;margin-left:12px}.special-category-close[data-v-9076ce57]{display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 12px;border-radius:6px;background:#f53f3f1a;color:#f53f3f;cursor:pointer;transition:all .3s ease;margin-left:12px;font-size:14px}.special-category-close[data-v-9076ce57]:hover{background:#f53f3f33;transform:translateY(-1px)}.special-category-header[data-v-9076ce57]{display:flex;align-items:center;height:40px;padding:0 16px;background:#165dff0d;border-radius:8px;border:1px solid rgba(22,93,255,.1)}.special-category-title[data-v-9076ce57]{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500}.special-category-title .category-name[data-v-9076ce57]{color:#165dff}.special-category-title .category-type[data-v-9076ce57]{color:#86909c;font-size:14px;font-weight:400}.category-manage[data-v-9076ce57]:hover{background:#165dff;color:#fff;transform:scale(1.05)}.video-grid-container[data-v-eac41610]{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;height:100%;min-height:0}.video-scroll-container[data-v-eac41610]{width:100%;flex:1;padding:2px 20px 2px 16px}.video_list_hover[data-v-eac41610]{transition:transform .2s ease}.video_list_hover[data-v-eac41610]:hover{transform:translateY(-2px)}.video_list_item[data-v-eac41610]{position:relative;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 1px 8px #0000000f;transition:all .3s cubic-bezier(.4,0,.2,1);height:auto;display:flex;flex-direction:column;cursor:pointer}.video_list_item[data-v-eac41610]:hover{box-shadow:0 4px 20px #0000001f;transform:translateY(-2px)}.video_list_item_img[data-v-eac41610]{position:relative;width:100%;overflow:hidden;background:#f5f5f5;border-top-left-radius:8px;border-top-right-radius:8px}.folder-icon-container[data-v-eac41610]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-top-left-radius:8px;border-top-right-radius:8px}.folder-icon[data-v-eac41610]{font-size:60px;color:#ffa940;transition:all .3s ease}.video_list_item:hover .folder-icon[data-v-eac41610]{color:#ff7a00;transform:scale(1.1)}.file-icon-container[data-v-eac41610]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-top-left-radius:8px;border-top-right-radius:8px}.file-type-icon[data-v-eac41610]{font-size:60px;color:#6c757d;transition:all .3s ease}.video_list_item:hover .file-type-icon[data-v-eac41610]{color:#495057;transform:scale(1.1)}.video_list_item_img_cover[data-v-eac41610]{width:100%;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden;vertical-align:top;display:block}.video_list_item[data-v-eac41610] .arco-image-img{width:100%;height:300px;-o-object-fit:cover;object-fit:cover}.video_list_item:hover .video_list_item_img_cover[data-v-eac41610]{transform:scale(1.05)}.video_remarks_overlay[data-v-eac41610]{position:absolute;top:4px;right:4px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:500;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 4px #0000004d;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.video_list_item_title[data-v-eac41610]{padding:6px 8px;background:#fff;flex-shrink:0;height:auto;min-height:16px;display:flex;align-items:center;overflow:hidden;position:relative}.title-text[data-v-eac41610]{font-size:12px;font-weight:500;color:#2c2c2c;line-height:1;white-space:nowrap;transition:color .2s ease;margin:0;width:100%;display:block}.title-text[data-v-eac41610]:not([data-overflow=true]){overflow:hidden;text-overflow:ellipsis}.title-text[data-overflow=true][data-v-eac41610]{animation:marquee-eac41610 10s linear infinite;animation-delay:1s;width:-moz-max-content;width:max-content;min-width:100%}.title-text[data-overflow=true][data-v-eac41610]:hover{animation-play-state:paused}@keyframes marquee-eac41610{0%{transform:translate(0)}15%{transform:translate(0)}85%{transform:translate(calc(-100% + 100px))}to{transform:translate(calc(-100% + 100px))}}.video_list_item:hover .title-text[data-v-eac41610]{color:#1890ff}.loading-container[data-v-eac41610]{text-align:center;padding:20px}.loading-text[data-v-eac41610]{margin-top:8px;color:var(--color-text-3);font-size:14px}.no-more-data[data-v-eac41610]{text-align:center;padding:20px;color:var(--color-text-3);font-size:14px}.empty-state[data-v-eac41610]{text-align:center;padding:40px 20px;color:var(--color-text-3);font-size:16px}.bottom-spacer[data-v-eac41610]{height:8px}.category-modal-content[data-v-14f43b3d]{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;max-height:60vh;overflow-y:auto;padding:16px 0}.category-item[data-v-14f43b3d]{padding:12px 16px;background:#f7f8fa;border:1px solid #e5e6eb;border-radius:8px;text-align:center;cursor:pointer;transition:all .2s ease;font-size:14px;font-weight:500;color:#1d2129}.category-item[data-v-14f43b3d]:hover{background:#e8f3ff;border-color:#7bc4ff;color:#165dff;transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.category-item.active[data-v-14f43b3d]{background:#165dff!important;border-color:#165dff!important;color:#fff!important;font-weight:600}.category-item.active[data-v-14f43b3d]:hover{background:#4080ff!important;border-color:#4080ff!important;color:#fff!important}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar{width:6px}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-track{background:#f7f8fa;border-radius:3px}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-thumb{background:#c9cdd4;border-radius:3px}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-thumb:hover{background:#a9aeb8}@media (prefers-color-scheme: dark){.category-item[data-v-14f43b3d]{background:#2a2a2b;border-color:#3a3a3c;color:#fff}.category-item[data-v-14f43b3d]:hover{background:#1a3a5c;border-color:#4080ff;color:#7bc4ff}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-track{background:#2a2a2b}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-thumb{background:#4a4a4c}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-thumb:hover{background:#5a5a5c}}.folder-breadcrumb[data-v-670af4b8]{background:#f8f9fa;border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 1px 3px #0000000d}.breadcrumb-container[data-v-670af4b8]{flex:1;min-width:0}.breadcrumb-item[data-v-670af4b8]{font-size:14px}.breadcrumb-link[data-v-670af4b8]{color:#1890ff;text-decoration:none;cursor:pointer;transition:color .2s ease;padding:4px 8px;border-radius:4px;display:inline-block}.breadcrumb-link[data-v-670af4b8]:hover{color:#40a9ff;background-color:#1890ff0f}.current-item[data-v-670af4b8]{color:#262626;font-weight:500;padding:4px 8px;background-color:#1890ff1a;border-radius:4px;display:inline-block}.breadcrumb-actions[data-v-670af4b8]{display:flex;gap:8px;flex-shrink:0}.action-btn[data-v-670af4b8]{color:#6b7280;border:1px solid #d1d5db;background:#fff;transition:all .2s ease}.action-btn[data-v-670af4b8]:hover:not(:disabled){color:#1890ff;border-color:#1890ff;background:#1890ff0a}.action-btn[data-v-670af4b8]:disabled{opacity:.5;cursor:not-allowed}.exit-btn[data-v-670af4b8]{background:#ff4d4f!important;border-color:#ff4d4f!important;color:#fff!important}.exit-btn[data-v-670af4b8]:hover:not(:disabled){background:#ff7875!important;border-color:#ff7875!important;color:#fff!important}@media (max-width: 768px){.folder-breadcrumb[data-v-670af4b8]{flex-direction:column;align-items:stretch;gap:12px}.breadcrumb-actions[data-v-670af4b8]{justify-content:center}.action-btn[data-v-670af4b8]{flex:1;max-width:120px}}.breadcrumb-container[data-v-670af4b8] .arco-breadcrumb{overflow:hidden}.breadcrumb-container[data-v-670af4b8] .arco-breadcrumb-item{max-width:200px;overflow:hidden}.breadcrumb-container[data-v-670af4b8] .arco-breadcrumb-item .breadcrumb-link,.breadcrumb-container[data-v-670af4b8] .arco-breadcrumb-item .current-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.video-list-container[data-v-1180b6ff]{height:100%;display:flex;flex-direction:column;overflow:hidden}.content-area[data-v-1180b6ff],.tab-content[data-v-1180b6ff]{flex:1;display:flex;flex-direction:column;overflow:hidden}.category-loading-container[data-v-1180b6ff]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;gap:16px}.loading-text[data-v-1180b6ff]{color:#666;font-size:14px}.search-grid-container[data-v-38747718]{width:100%;height:100%}.error-state[data-v-38747718],.loading-state[data-v-38747718],.empty-state[data-v-38747718]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px}.loading-text[data-v-38747718]{margin-top:16px;color:var(--color-text-3)}.search-scroll-container[data-v-38747718]{border-radius:8px;border:1px solid var(--color-border-2);height:100%;overflow:hidden}.search-results-grid[data-v-38747718]{padding:8px 16px}.video_list_item[data-v-38747718]{width:100%}.video_list_hover[data-v-38747718]{background:var(--color-bg-2);border-radius:8px;overflow:hidden;cursor:pointer;transition:all .3s ease;border:1px solid var(--color-border-2);height:100%;display:flex;flex-direction:column}.video_list_hover[data-v-38747718]:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000001a;border-color:var(--color-primary-light-4)}.video_list_item_img[data-v-38747718]{position:relative;width:100%;height:280px;overflow:hidden;flex-shrink:0;background:var(--color-fill-2);display:flex;align-items:center;justify-content:center;border-top-left-radius:8px;border-top-right-radius:8px}.video_list_item_img[data-v-38747718] .arco-image{width:100%;height:100%}.video_list_item_img[data-v-38747718] .arco-image img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.video_list_hover:hover .video_list_item_img[data-v-38747718] .arco-image img{transform:scale(1.05)}.video-info-simple[data-v-38747718]{padding:0;flex:1;display:flex;flex-direction:column}.video-title-simple[data-v-38747718]{margin:0;font-size:14px;font-weight:500;color:var(--color-text-1);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video_list_item_title[data-v-38747718]{padding:6px 8px;background:#fff;flex-shrink:0;height:auto;min-height:16px;display:flex;align-items:center;overflow:hidden;position:relative}.title-text[data-v-38747718]{font-size:12px;font-weight:500;color:#2c2c2c;line-height:1;white-space:nowrap;transition:color .2s ease;margin:0;width:100%;display:block}.title-text[data-v-38747718]:not([data-overflow=true]){overflow:hidden;text-overflow:ellipsis}.title-text[data-overflow=true][data-v-38747718]{animation:marquee-38747718 10s linear infinite;animation-delay:1s;width:-moz-max-content;width:max-content;min-width:100%}.title-text[data-overflow=true][data-v-38747718]:hover{animation-play-state:paused}@keyframes marquee-38747718{0%{transform:translate(0)}15%{transform:translate(0)}85%{transform:translate(calc(-100% + 100px))}to{transform:translate(calc(-100% + 100px))}}.video_list_hover:hover .title-text[data-v-38747718]{color:#1890ff}.video-card-item[data-v-38747718]{width:100%}.video-card[data-v-38747718]{background:var(--color-bg-2);border-radius:8px;overflow:hidden;cursor:pointer;transition:all .3s ease;border:1px solid var(--color-border-2);height:100%;display:flex;flex-direction:column}.video-card[data-v-38747718]:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000001a;border-color:var(--color-primary-light-4)}.video-poster[data-v-38747718]{position:relative;width:100%;height:280px;overflow:hidden;flex-shrink:0;background:var(--color-fill-2);display:flex;align-items:center;justify-content:center;border-top-left-radius:8px;border-top-right-radius:8px}.video-poster-img[data-v-38747718]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.video-card:hover .video-poster-img[data-v-38747718]{transform:scale(1.05)}.video-info[data-v-38747718]{padding:0;flex:1;display:flex;flex-direction:column}.video-title[data-v-38747718]{margin:0 0 8px;font-size:14px;font-weight:500;color:var(--color-text-1);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video-desc[data-v-38747718]{margin:0 0 8px;padding:0 8px;font-size:12px;color:var(--color-text-3);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video-meta[data-v-38747718]{display:flex;align-items:center;gap:8px;padding:0 8px 8px;font-size:12px;color:var(--color-text-3);flex-wrap:wrap}.video-note[data-v-38747718]{background:var(--color-primary-light-1);color:var(--color-primary-6);padding:2px 6px;border-radius:4px;font-size:11px;white-space:nowrap}.video-year[data-v-38747718],.video-area[data-v-38747718]{color:var(--color-text-3)}.folder-icon-container[data-v-38747718],.file-icon-container[data-v-38747718]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--color-fill-3)}.folder-icon[data-v-38747718],.file-icon[data-v-38747718]{font-size:48px;color:var(--color-text-3)}.play-overlay[data-v-38747718]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:50px;height:50px;background:#000000b3;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;opacity:0;transition:opacity .3s ease}.video-card:hover .play-overlay[data-v-38747718]{opacity:1}.action-badge[data-v-38747718]{position:absolute;top:8px;right:8px;width:24px;height:24px;background:var(--color-warning-6);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;z-index:2}.vod-remarks-overlay[data-v-38747718],.video-remarks-overlay[data-v-38747718]{position:absolute;top:4px;right:4px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:500;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 4px #0000004d;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:2}.load-more-container[data-v-38747718]{display:flex;justify-content:center;padding:16px 0}.no-more-data[data-v-38747718]{text-align:center;padding:16px 0;color:var(--color-text-3);font-size:14px}.bottom-spacing[data-v-38747718]{height:10px}.search-results-container[data-v-0e7e7688]{display:flex;flex-direction:column;height:100%;background:var(--color-bg-1)}.search-header[data-v-0e7e7688]{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.search-info[data-v-0e7e7688]{display:flex;align-items:center;gap:16px}.search-keyword[data-v-0e7e7688]{font-size:16px;font-weight:600;color:var(--color-text-1)}.search-count[data-v-0e7e7688]{font-size:14px;color:var(--color-text-3)}.search-actions[data-v-0e7e7688]{display:flex;gap:8px}.search-grid-container[data-v-0e7e7688]{flex:1;height:100%;overflow:hidden;display:flex;flex-direction:column}.main-container[data-v-27b31960]{height:calc(100% - 67px);display:flex;flex-direction:column;overflow:hidden}.content[data-v-27b31960]{flex:1;overflow:hidden;padding:0}.current-time[data-v-27b31960]{font-size:14px;color:var(--color-text-2);white-space:nowrap;padding:8px 12px;background:var(--color-bg-2);border-radius:6px;border:1px solid var(--color-border-2)}.current-time span[data-v-27b31960]{font-weight:500}.global-loading-overlay[data-v-27b31960]{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.global-loading-content[data-v-27b31960]{display:flex;flex-direction:column;align-items:center;gap:16px;padding:32px;background:var(--color-bg-1);border-radius:12px;box-shadow:0 8px 32px #0000004d;border:1px solid var(--color-border-2)}.loading-text[data-v-27b31960]{font-size:16px;color:var(--color-text-1);font-weight:500;text-align:center}.close-loading-btn[data-v-27b31960]{margin-top:8px;font-size:12px;padding:4px 12px;height:auto;min-height:28px}.player-header[data-v-e55c9055]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding:0 4px}.player-header h3[data-v-e55c9055]{margin:0 12px 0 0;font-size:16px;font-weight:600;color:#2c3e50;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-controls[data-v-e55c9055]{display:flex;align-items:center;gap:8px}.compact-button-group[data-v-e55c9055]{display:flex;align-items:center;gap:2px;background:#f8f9fa;border-radius:6px;padding:2px;border:1px solid #e9ecef}.compact-btn[data-v-e55c9055]{display:flex;align-items:center;gap:4px;padding:6px 10px;border-radius:4px;cursor:pointer;transition:all .2s ease;background:transparent;border:none;font-size:12px;font-weight:500;color:#495057;min-height:28px;position:relative}.compact-btn[data-v-e55c9055]:hover{background:#e9ecef;color:#212529;transform:translateY(-1px)}.compact-btn.active[data-v-e55c9055]{background:#23ade5;color:#fff;box-shadow:0 2px 8px #23ade54d}.compact-btn.active[data-v-e55c9055]:hover{background:#1e90ff}.compact-btn.close-btn[data-v-e55c9055]{color:#dc3545}.compact-btn.close-btn[data-v-e55c9055]:hover{background:#f8d7da;color:#721c24}.compact-btn.debug-btn[data-v-e55c9055]{color:#6f42c1}.compact-btn.debug-btn[data-v-e55c9055]:hover{background:#e2d9f3;color:#5a2d91}.btn-icon[data-v-e55c9055]{width:14px;height:14px;flex-shrink:0}.btn-text[data-v-e55c9055]{font-size:11px;white-space:nowrap}.selector-btn[data-v-e55c9055]{position:relative;padding:0;overflow:hidden}.compact-select[data-v-e55c9055]{border:none!important;background:transparent!important;box-shadow:none!important;min-width:120px}.compact-select[data-v-e55c9055] .arco-select-view{border:none!important;background:transparent!important;padding:6px 10px;font-size:11px;font-weight:500}.compact-select[data-v-e55c9055] .arco-select-view-suffix{color:currentColor}@media (max-width: 768px){.player-header[data-v-e55c9055]{flex-direction:column;align-items:flex-start;gap:8px}.player-header h3[data-v-e55c9055]{margin-right:0;font-size:15px}.compact-button-group[data-v-e55c9055]{flex-wrap:wrap;width:100%;justify-content:center}.compact-btn[data-v-e55c9055]{flex:1;min-width:80px;justify-content:center}.btn-text[data-v-e55c9055]{display:none}.selector-btn[data-v-e55c9055]{flex:2}.compact-select[data-v-e55c9055]{min-width:100px}}@media (max-width: 480px){.compact-btn[data-v-e55c9055]{padding:4px 6px;min-height:26px}.btn-icon[data-v-e55c9055]{width:12px;height:12px}}.skip-settings-overlay[data-v-c8c7504a]{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn-c8c7504a .2s ease-out}.skip-settings-dialog[data-v-c8c7504a]{background:#fff;border-radius:12px;box-shadow:0 20px 40px #00000026;width:90%;max-width:480px;max-height:90vh;overflow:hidden;animation:slideIn-c8c7504a .3s ease-out}.dialog-header[data-v-c8c7504a]{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #f0f0f0;background:#fafafa}.dialog-header h3[data-v-c8c7504a]{margin:0;font-size:18px;font-weight:600;color:#2c3e50}.close-btn[data-v-c8c7504a]{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;color:#666;transition:all .2s ease}.close-btn[data-v-c8c7504a]:hover{background:#e9ecef;color:#333}.close-btn svg[data-v-c8c7504a]{width:20px;height:20px}.dialog-content[data-v-c8c7504a]{padding:24px}.setting-row[data-v-c8c7504a]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;gap:16px}.setting-row[data-v-c8c7504a]:last-child{margin-bottom:0}.setting-label[data-v-c8c7504a]{flex:1}.setting-label span[data-v-c8c7504a]{font-size:16px;font-weight:500;color:#2c3e50;display:block;margin-bottom:4px}.setting-hint[data-v-c8c7504a]{font-size:13px;color:#6c757d;line-height:1.4}.setting-control[data-v-c8c7504a]{display:flex;align-items:center;gap:12px;flex-shrink:0}.seconds-input[data-v-c8c7504a]{width:80px}.unit[data-v-c8c7504a]{font-size:14px;color:#6c757d;font-weight:500}.setting-hint-global[data-v-c8c7504a]{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#e8f5e8;border-radius:8px;font-size:13px;color:#2d5a2d;margin-top:20px}.setting-hint-global svg[data-v-c8c7504a]{width:16px;height:16px;color:#28a745;flex-shrink:0}.dialog-footer[data-v-c8c7504a]{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #f0f0f0;background:#fafafa}@keyframes fadeIn-c8c7504a{0%{opacity:0}to{opacity:1}}@keyframes slideIn-c8c7504a{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 768px){.skip-settings-dialog[data-v-c8c7504a]{width:95%;margin:20px}.dialog-header[data-v-c8c7504a]{padding:16px 20px}.dialog-header h3[data-v-c8c7504a]{font-size:16px}.dialog-content[data-v-c8c7504a]{padding:20px}.setting-row[data-v-c8c7504a]{flex-direction:column;align-items:flex-start;gap:12px}.setting-control[data-v-c8c7504a]{width:100%;justify-content:flex-start}.dialog-footer[data-v-c8c7504a]{padding:12px 20px}}@media (max-width: 480px){.skip-settings-dialog[data-v-c8c7504a]{width:100%;height:100%;max-height:100vh;border-radius:0;margin:0}.dialog-header[data-v-c8c7504a]{padding:12px 16px}.dialog-content[data-v-c8c7504a]{padding:16px}.dialog-footer[data-v-c8c7504a]{padding:12px 16px}.setting-row[data-v-c8c7504a]{margin-bottom:20px}}.debug-info-overlay[data-v-d9075ed4]{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.debug-info-dialog[data-v-d9075ed4]{background:#fff;border-radius:12px;box-shadow:0 20px 40px #00000026;max-width:800px;width:90vw;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.dialog-header[data-v-d9075ed4]{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e9ecef;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.dialog-header h3[data-v-d9075ed4]{margin:0;font-size:18px;font-weight:600}.close-btn[data-v-d9075ed4]{background:none;border:none;color:#fff;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s}.close-btn[data-v-d9075ed4]:hover{background:#fff3}.close-btn svg[data-v-d9075ed4]{width:20px;height:20px}.dialog-content[data-v-d9075ed4]{padding:24px;overflow-y:auto;flex:1}.info-section[data-v-d9075ed4]{margin-bottom:24px;border:1px solid #e9ecef;border-radius:8px;overflow:hidden}.section-header[data-v-d9075ed4]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#f8f9fa;border-bottom:1px solid #e9ecef}.section-actions[data-v-d9075ed4]{display:flex;align-items:center;gap:8px}.section-header h4[data-v-d9075ed4]{margin:0;font-size:14px;font-weight:600;color:#495057}.copy-btn[data-v-d9075ed4]{display:flex;align-items:center;gap:4px;padding:4px 8px;background:#23ade5;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;transition:background-color .2s}.copy-btn[data-v-d9075ed4]:hover:not(:disabled){background:#1e90ff}.copy-btn[data-v-d9075ed4]:disabled{background:#6c757d;cursor:not-allowed}.copy-btn svg[data-v-d9075ed4]{width:14px;height:14px}.info-content[data-v-d9075ed4]{padding:16px}.url-display[data-v-d9075ed4]{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;padding:12px;font-family:Courier New,monospace;font-size:13px;word-break:break-all;line-height:1.4;color:#495057}.proxy-url[data-v-d9075ed4]{background:#e8f5e8;border-color:#4caf50;color:#2e7d32}.external-player-btn[data-v-d9075ed4]{display:flex;align-items:center;gap:4px;padding:4px 8px;border:none;border-radius:4px;cursor:pointer;font-size:12px;font-weight:500;transition:all .2s}.vlc-btn[data-v-d9075ed4]{background:#ff6b35;color:#fff}.vlc-btn[data-v-d9075ed4]:hover:not(:disabled){background:#e55a2b;transform:translateY(-1px)}.mpv-btn[data-v-d9075ed4]{background:#8e24aa;color:#fff}.mpv-btn[data-v-d9075ed4]:hover:not(:disabled){background:#7b1fa2;transform:translateY(-1px)}.external-player-btn[data-v-d9075ed4]:disabled{background:#6c757d;cursor:not-allowed;transform:none}.external-player-btn svg[data-v-d9075ed4]{width:14px;height:14px}.headers-display[data-v-d9075ed4]{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;padding:12px;min-height:60px}.no-data[data-v-d9075ed4]{color:#6c757d;font-style:italic;text-align:center;padding:20px}.headers-text[data-v-d9075ed4]{font-family:Courier New,monospace;font-size:13px;margin:0;white-space:pre-wrap;color:#495057;line-height:1.4}.format-info[data-v-d9075ed4],.player-info[data-v-d9075ed4]{display:flex;align-items:center;gap:8px}.format-label[data-v-d9075ed4],.player-label[data-v-d9075ed4]{font-weight:600;color:#495057}.format-value[data-v-d9075ed4],.player-value[data-v-d9075ed4]{background:#e3f2fd;color:#1976d2;padding:4px 8px;border-radius:4px;font-size:13px;font-weight:500}.action-section[data-v-d9075ed4]{margin-top:24px;padding-top:20px;border-top:1px solid #e9ecef;text-align:center}.copy-all-btn[data-v-d9075ed4]{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:transform .2s,box-shadow .2s}.copy-all-btn[data-v-d9075ed4]:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}.copy-all-btn svg[data-v-d9075ed4]{width:16px;height:16px}@media (max-width: 768px){.debug-info-dialog[data-v-d9075ed4]{width:95vw;max-height:90vh}.dialog-header[data-v-d9075ed4]{padding:16px 20px}.dialog-header h3[data-v-d9075ed4]{font-size:16px}.dialog-content[data-v-d9075ed4]{padding:20px}.section-header[data-v-d9075ed4]{flex-direction:column;align-items:flex-start;gap:8px}.section-actions[data-v-d9075ed4]{align-self:flex-end;flex-wrap:wrap}.copy-btn[data-v-d9075ed4],.external-player-btn[data-v-d9075ed4]{font-size:11px;padding:3px 6px}.url-display[data-v-d9075ed4],.headers-text[data-v-d9075ed4]{font-size:12px}}.video-player-section[data-v-30f32bd3]{margin-bottom:20px;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001f}.player-header[data-v-30f32bd3]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding:12px 16px;border-radius:8px;box-shadow:0 2px 8px #0000001a}.player-header h3[data-v-30f32bd3]{margin:0;color:#2c3e50;font-size:16px;font-weight:600}.player-controls[data-v-30f32bd3]{display:flex;align-items:center;gap:8px}.compact-button-group[data-v-30f32bd3]{display:flex;align-items:center;gap:4px}.compact-btn[data-v-30f32bd3]{display:flex;align-items:center;gap:6px;padding:4px 8px;height:28px;background:#fff;border:1px solid #d9d9d9;border-radius:4px;cursor:pointer;transition:all .2s ease;font-size:12px;color:#666}.compact-btn[data-v-30f32bd3]:hover{border-color:#1890ff;color:#1890ff}.compact-btn.active[data-v-30f32bd3]{background:#1890ff;border-color:#1890ff;color:#fff}.compact-btn.close-btn[data-v-30f32bd3]{background:#ff4d4f;border-color:#ff4d4f;color:#fff}.compact-btn.close-btn[data-v-30f32bd3]:hover{background:#ff7875;border-color:#ff7875}.btn-icon[data-v-30f32bd3]{width:14px;height:14px;flex-shrink:0}.btn-text[data-v-30f32bd3]{font-size:12px;white-space:nowrap}.compact-select[data-v-30f32bd3]{border:none!important;background:transparent!important;box-shadow:none!important;font-size:12px;min-width:80px}.compact-select .arco-select-view-single[data-v-30f32bd3]{border:none!important;background:transparent!important;padding:0!important;height:auto!important;min-height:auto!important}.selector-btn[data-v-30f32bd3]{min-width:120px}.video-player-container[data-v-30f32bd3]{position:relative;width:100%;background:#000;border-radius:8px;overflow:hidden}.video-player[data-v-30f32bd3]{width:100%;height:auto;min-height:400px;max-height:70vh;background:#000;outline:none}.video-player[data-v-30f32bd3]::-webkit-media-controls-panel{background-color:transparent}.video-player[data-v-30f32bd3]::-webkit-media-controls-play-button,.video-player[data-v-30f32bd3]::-webkit-media-controls-volume-slider,.video-player[data-v-30f32bd3]::-webkit-media-controls-timeline,.video-player[data-v-30f32bd3]::-webkit-media-controls-current-time-display,.video-player[data-v-30f32bd3]::-webkit-media-controls-time-remaining-display{color:#fff}.auto-next-dialog[data-v-30f32bd3]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000e6;border-radius:12px;padding:24px;z-index:1000;min-width:300px;text-align:center;box-shadow:0 8px 32px #00000080;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.auto-next-content[data-v-30f32bd3]{display:flex;flex-direction:column;gap:12px}.auto-next-title[data-v-30f32bd3]{font-size:16px;font-weight:600;color:#fff}.auto-next-episode[data-v-30f32bd3]{font-size:14px;color:#23ade5;font-weight:500}.auto-next-countdown[data-v-30f32bd3]{font-size:18px;font-weight:700;color:#ff6b6b}.auto-next-buttons[data-v-30f32bd3]{display:flex;gap:12px;justify-content:center;margin-top:8px}.btn-play-now[data-v-30f32bd3],.btn-cancel[data-v-30f32bd3]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease}.btn-play-now[data-v-30f32bd3]{background:#23ade5;color:#fff}.btn-play-now[data-v-30f32bd3]:hover{background:#1890d5}.btn-cancel[data-v-30f32bd3]{background:#666;color:#fff}.btn-cancel[data-v-30f32bd3]:hover{background:#555}.speed-control[data-v-30f32bd3]{position:absolute;top:10px;right:10px;background:#000000b3;padding:8px 12px;border-radius:6px;display:flex;align-items:center;gap:8px;z-index:10}.speed-control label[data-v-30f32bd3]{color:#fff;font-size:14px;font-weight:500}.speed-selector[data-v-30f32bd3]{background:#ffffffe6;border:1px solid #ddd;border-radius:4px;padding:4px 8px;font-size:14px;cursor:pointer;outline:none;transition:all .2s ease}.speed-selector[data-v-30f32bd3]:hover{background:#fff;border-color:#23ade5}.speed-selector[data-v-30f32bd3]:focus{border-color:#23ade5;box-shadow:0 0 0 2px #23ade533}@media (max-width: 768px){.player-header[data-v-30f32bd3]{flex-direction:column;gap:8px;align-items:flex-start}.player-header h3[data-v-30f32bd3]{font-size:14px}.video-player[data-v-30f32bd3]{min-height:200px}}.video-player-section[data-v-e22e3fdf]{margin-bottom:20px;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001f}.player-header[data-v-e22e3fdf]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding:12px 16px;border-radius:8px;box-shadow:0 2px 8px #0000001a}.player-header h3[data-v-e22e3fdf]{margin:0;color:#2c3e50;font-size:16px;font-weight:600}.player-controls[data-v-e22e3fdf]{display:flex;align-items:center;gap:8px}.art-player-container[data-v-e22e3fdf]{position:relative;width:100%;background:#000;border-radius:8px;overflow:hidden}.art-player[data-v-e22e3fdf]{width:100%;background:#000}@media (max-width: 768px){.player-header[data-v-e22e3fdf]{flex-direction:column;gap:8px;align-items:flex-start}.player-header h3[data-v-e22e3fdf]{font-size:14px}}[data-v-e22e3fdf] .art-video-player{border-radius:8px;overflow:hidden}[data-v-e22e3fdf] .art-bottom{background:linear-gradient(transparent,#000c)}[data-v-e22e3fdf] .art-control{color:#fff}[data-v-e22e3fdf] .art-control:hover{color:#23ade5}[data-v-e22e3fdf] .art-selector,[data-v-e22e3fdf] .art-control-selector .art-selector{bottom:45px!important;margin-bottom:5px!important}[data-v-e22e3fdf] .art-selector .art-selector-item{color:#fff!important;background:#000c!important}[data-v-e22e3fdf] .art-selector .art-selector-item:hover{background:#ffffff1a!important;color:#fff!important}[data-v-e22e3fdf] .art-selector .art-selector-item.art-current{color:#23ade5!important;background:#23ade51a!important}[data-v-e22e3fdf] .art-selector .art-selector-item.art-current:hover{color:#23ade5!important;background:#23ade533!important}.compact-button-group[data-v-e22e3fdf]{display:flex;align-items:center;gap:4px;padding:2px;background:#0000000d;border-radius:6px;border:1px solid rgba(0,0,0,.1)}.compact-btn[data-v-e22e3fdf]{display:flex;align-items:center;gap:4px;padding:4px 8px;height:28px;background:#fff;border:1px solid #d9d9d9;border-radius:4px;color:#666;cursor:pointer;transition:all .2s ease;font-size:11px;font-weight:500;white-space:nowrap;box-sizing:border-box}.compact-btn[data-v-e22e3fdf]:hover{background:#f5f5f5;border-color:#40a9ff;color:#40a9ff}.compact-btn.active[data-v-e22e3fdf]{background:#1890ff;border-color:#1890ff;color:#fff}.compact-btn.active[data-v-e22e3fdf]:hover{background:#40a9ff;border-color:#40a9ff}.compact-btn .btn-icon[data-v-e22e3fdf]{width:12px;height:12px;flex-shrink:0}.compact-btn .btn-text[data-v-e22e3fdf]{font-size:11px;font-weight:500;line-height:1}.compact-btn.selector-btn[data-v-e22e3fdf]{padding:4px 6px;position:relative}.compact-btn.selector-btn .compact-select[data-v-e22e3fdf]{border:none!important;background:transparent!important;box-shadow:none!important;font-size:11px;min-width:60px;height:20px}[data-v-e22e3fdf] .compact-btn.selector-btn .compact-select .arco-select-view-single{border:none!important;background:transparent!important;box-shadow:none!important;padding:0!important;height:20px!important;min-height:20px!important}[data-v-e22e3fdf] .compact-btn.selector-btn .compact-select .arco-select-view-value{color:inherit!important;font-weight:500;font-size:11px;line-height:20px;padding:0!important}[data-v-e22e3fdf] .compact-btn.selector-btn .compact-select .arco-select-view-suffix{color:inherit!important;font-size:10px}.compact-btn.close-btn[data-v-e22e3fdf]{background:#fff2f0;border-color:#ffccc7;color:#ff4d4f}.compact-btn.close-btn[data-v-e22e3fdf]:hover{background:#ff4d4f;border-color:#ff4d4f;color:#fff}.auto-next-dialog[data-v-e22e3fdf]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000e6;color:#fff;padding:20px;border-radius:8px;text-align:center;z-index:1000;min-width:280px;box-shadow:0 4px 20px #00000080}.auto-next-content[data-v-e22e3fdf]{display:flex;flex-direction:column;gap:12px}.auto-next-title[data-v-e22e3fdf]{font-size:16px;font-weight:600;color:#fff}.auto-next-episode[data-v-e22e3fdf]{font-size:14px;color:#23ade5;font-weight:500}.auto-next-countdown[data-v-e22e3fdf]{font-size:18px;font-weight:700;color:#ff6b6b}.auto-next-buttons[data-v-e22e3fdf]{display:flex;gap:12px;justify-content:center;margin-top:8px}.btn-play-now[data-v-e22e3fdf],.btn-cancel[data-v-e22e3fdf]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease}.btn-play-now[data-v-e22e3fdf]{background:#23ade5;color:#fff}.btn-play-now[data-v-e22e3fdf]:hover{background:#1890d5}.btn-cancel[data-v-e22e3fdf]{background:#666;color:#fff}.btn-cancel[data-v-e22e3fdf]:hover{background:#555}[data-v-e22e3fdf] .art-layer[data-name=episodeLayer]{display:flex!important;align-items:center;justify-content:center;background:#000000d9!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}[data-v-e22e3fdf] .episode-layer-background{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}[data-v-e22e3fdf] .episode-layer-content{background:#141414f2;border:1px solid rgba(255,255,255,.1);border-radius:16px;box-shadow:0 32px 64px #0006,0 0 0 1px #ffffff0d;max-width:900px;max-height:60vh;width:95%;overflow:hidden;animation:episodeLayerShow-e22e3fdf .4s cubic-bezier(.34,1.56,.64,1);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}@keyframes episodeLayerShow-e22e3fdf{0%{opacity:0;transform:scale(.8) translateY(-40px);filter:blur(4px)}to{opacity:1;transform:scale(1) translateY(0);filter:blur(0)}}[data-v-e22e3fdf] .episode-layer-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 12px;border-bottom:1px solid rgba(255,255,255,.08);background:#ffffff05}[data-v-e22e3fdf] .episode-layer-header h3{margin:0;font-size:20px;font-weight:700;color:#fff;letter-spacing:-.02em;text-shadow:0 1px 2px rgba(0,0,0,.3)}[data-v-e22e3fdf] .episode-layer-close{background:#ffffff14;border:1px solid rgba(255,255,255,.12);font-size:18px;cursor:pointer;color:#fffc;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s cubic-bezier(.4,0,.2,1);font-weight:300}[data-v-e22e3fdf] .episode-layer-close:hover{background:#ffffff26;border-color:#fff3;color:#fff;transform:scale(1.05)}[data-v-e22e3fdf] .episode-layer-close:active{transform:scale(.95)}[data-v-e22e3fdf] .episode-layer-list{padding:16px 20px 20px;max-height:45vh;overflow-y:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}[data-v-e22e3fdf] .episode-layer-list::-webkit-scrollbar{width:6px}[data-v-e22e3fdf] .episode-layer-list::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}[data-v-e22e3fdf] .episode-layer-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px;-webkit-transition:background .3s ease;transition:background .3s ease}[data-v-e22e3fdf] .episode-layer-list::-webkit-scrollbar-thumb:hover{background:#ffffff4d}[data-v-e22e3fdf] .episode-layer-item{display:flex;align-items:center;padding:12px 16px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:#ffffff0a;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);text-align:left;min-height:56px;position:relative;overflow:hidden}[data-v-e22e3fdf] .episode-layer-item:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);opacity:0;transition:opacity .3s ease;pointer-events:none}[data-v-e22e3fdf] .episode-layer-item:hover{border-color:#4096ff66;background:#4096ff14;transform:translateY(-2px) scale(1.02);box-shadow:0 8px 32px #4096ff26,0 0 0 1px #4096ff33}[data-v-e22e3fdf] .episode-layer-item:hover:before{opacity:1}[data-v-e22e3fdf] .episode-layer-item.current{border-color:#4096ff99;background:linear-gradient(135deg,#4096ff33,#64b4ff26);color:#fff;box-shadow:0 8px 32px #4096ff40,0 0 0 1px #4096ff66,inset 0 1px #ffffff1a;transform:scale(1.02)}[data-v-e22e3fdf] .episode-layer-item.current:before{opacity:1;background:linear-gradient(135deg,#ffffff26,#ffffff14)}[data-v-e22e3fdf] .episode-layer-item.current:hover{background:linear-gradient(135deg,#4096ff40,#64b4ff33);transform:translateY(-2px) scale(1.04);box-shadow:0 12px 40px #4096ff4d,0 0 0 1px #4096ff80,inset 0 1px #ffffff26}[data-v-e22e3fdf] .episode-layer-number{font-size:16px;font-weight:700;margin-right:12px;min-width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:6px;color:#ffffffe6;border:1px solid rgba(255,255,255,.15);transition:all .3s ease}.episode-layer-item.current .episode-layer-number[data-v-e22e3fdf]{background:#4096ff4d;border-color:#4096ff66;color:#fff;box-shadow:0 2px 8px #4096ff33}[data-v-e22e3fdf] .episode-layer-name{font-size:14px;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffffffe6;line-height:1.3;letter-spacing:-.01em}[data-v-e22e3fdf] .episode-layer-item.current .episode-layer-name{color:#fff;font-weight:600}@media (max-width: 1200px){[data-v-e22e3fdf] .episode-layer-list{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){[data-v-e22e3fdf] .episode-layer-content{max-width:95%;margin:0 12px;max-height:70vh}[data-v-e22e3fdf] .episode-layer-list{grid-template-columns:1fr;padding:16px 20px 20px;gap:12px;max-height:50vh}[data-v-e22e3fdf] .episode-layer-item{min-height:60px;padding:12px 14px}[data-v-e22e3fdf] .episode-layer-number{min-width:26px;height:26px;font-size:15px;margin-right:10px}[data-v-e22e3fdf] .episode-layer-name{font-size:13px}}@media (max-width: 480px){[data-v-e22e3fdf] .episode-layer-background{padding:12px}[data-v-e22e3fdf] .episode-layer-content{max-height:75vh}[data-v-e22e3fdf] .episode-layer-header{padding:14px 16px 10px}[data-v-e22e3fdf] .episode-layer-header h3{font-size:18px}[data-v-e22e3fdf] .episode-layer-list{max-height:55vh;padding:12px 16px 16px}}[data-v-e22e3fdf] .quality-layer-background{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}[data-v-e22e3fdf] .quality-layer-content{background:#141414f2;border:1px solid rgba(255,255,255,.1);border-radius:16px;box-shadow:0 32px 64px #0006,0 0 0 1px #ffffff0d;max-width:400px;max-height:60vh;width:95%;overflow:hidden;animation:qualityLayerShow-e22e3fdf .4s cubic-bezier(.34,1.56,.64,1);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}@keyframes qualityLayerShow-e22e3fdf{0%{opacity:0;transform:scale(.8) translateY(-40px);filter:blur(4px)}to{opacity:1;transform:scale(1) translateY(0);filter:blur(0)}}[data-v-e22e3fdf] .quality-layer-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 12px;border-bottom:1px solid rgba(255,255,255,.08);background:#ffffff05}[data-v-e22e3fdf] .quality-layer-header h3{margin:0;font-size:20px;font-weight:700;color:#fff;letter-spacing:-.02em;text-shadow:0 1px 2px rgba(0,0,0,.3)}[data-v-e22e3fdf] .quality-layer-close{background:#ffffff14;border:1px solid rgba(255,255,255,.12);font-size:18px;cursor:pointer;color:#fffc;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s cubic-bezier(.4,0,.2,1);font-weight:300}[data-v-e22e3fdf] .quality-layer-close:hover{background:#ffffff26;border-color:#fff3;color:#fff;transform:scale(1.05)}[data-v-e22e3fdf] .quality-layer-close:active{transform:scale(.95)}[data-v-e22e3fdf] .quality-layer-list{padding:16px 20px 20px;max-height:45vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px}[data-v-e22e3fdf] .quality-layer-list::-webkit-scrollbar{width:6px}[data-v-e22e3fdf] .quality-layer-list::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}[data-v-e22e3fdf] .quality-layer-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px;-webkit-transition:background .3s ease;transition:background .3s ease}[data-v-e22e3fdf] .quality-layer-list::-webkit-scrollbar-thumb:hover{background:#ffffff4d}[data-v-e22e3fdf] .quality-layer-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:#ffffff0a;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);text-align:left;min-height:48px;position:relative;overflow:hidden}[data-v-e22e3fdf] .quality-layer-item:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);opacity:0;transition:opacity .3s ease;pointer-events:none}[data-v-e22e3fdf] .quality-layer-item:hover{border-color:#4096ff66;background:#4096ff14;transform:translateY(-2px) scale(1.02);box-shadow:0 8px 32px #4096ff26,0 0 0 1px #4096ff33}[data-v-e22e3fdf] .quality-layer-item:hover:before{opacity:1}[data-v-e22e3fdf] .quality-layer-item.active{border-color:#4096ff99;background:linear-gradient(135deg,#4096ff33,#64b4ff26);color:#fff;box-shadow:0 8px 32px #4096ff40,0 0 0 1px #4096ff66,inset 0 1px #ffffff1a;transform:scale(1.02)}[data-v-e22e3fdf] .quality-layer-item.active:before{opacity:1;background:linear-gradient(135deg,#ffffff26,#ffffff14)}[data-v-e22e3fdf] .quality-layer-item.active:hover{background:linear-gradient(135deg,#4096ff40,#64b4ff33);transform:translateY(-2px) scale(1.04);box-shadow:0 12px 40px #4096ff4d,0 0 0 1px #4096ff80,inset 0 1px #ffffff26}[data-v-e22e3fdf] .quality-name{font-size:16px;font-weight:500;color:#ffffffe6;line-height:1.3;letter-spacing:-.01em}[data-v-e22e3fdf] .quality-layer-item.active .quality-name{color:#fff;font-weight:600}[data-v-e22e3fdf] .quality-current{font-size:12px;font-weight:600;color:#4096ffe6;background:#4096ff26;border:1px solid rgba(64,150,255,.3);border-radius:12px;padding:2px 8px;line-height:1.2}@media (max-width: 768px){[data-v-e22e3fdf] .quality-layer-content{max-width:320px;max-height:75vh}[data-v-e22e3fdf] .quality-layer-header{padding:14px 16px 10px}[data-v-e22e3fdf] .quality-layer-header h3{font-size:18px}[data-v-e22e3fdf] .quality-layer-list{max-height:55vh;padding:12px 16px 16px}}.play-section[data-v-1d197d0e]{margin-bottom:20px;border-radius:12px;box-shadow:0 4px 16px #00000014}.play-section h3[data-v-1d197d0e]{font-size:20px;font-weight:600;color:var(--color-text-1);margin-bottom:20px}.route-tabs[data-v-1d197d0e]{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}.route-btn[data-v-1d197d0e]{position:relative;border-radius:8px;font-weight:500;transition:all .2s ease;min-width:120px;height:40px}.route-btn[data-v-1d197d0e]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.route-name[data-v-1d197d0e]{margin-right:8px}.route-badge[data-v-1d197d0e]{font-size:12px}.episodes-section[data-v-1d197d0e]{margin-top:20px}.episodes-header[data-v-1d197d0e]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-wrap:wrap;gap:12px}.episodes-header h4[data-v-1d197d0e]{font-size:16px;font-weight:600;color:var(--color-text-1);margin:0}.episodes-controls[data-v-1d197d0e]{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.sort-btn[data-v-1d197d0e]{border-radius:6px;transition:all .2s ease}.strategy-select[data-v-1d197d0e],.layout-select[data-v-1d197d0e]{border-radius:6px}.episodes-grid[data-v-1d197d0e]{display:grid;grid-template-columns:repeat(var(--episodes-columns, 12),minmax(0,1fr));gap:8px;margin-top:16px;width:100%;box-sizing:border-box}.episode-btn[data-v-1d197d0e]{border-radius:6px;transition:all .2s ease;min-height:36px;font-size:13px;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}.episode-btn[data-v-1d197d0e]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.episode-text[data-v-1d197d0e]{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:0 8px}.no-play-section[data-v-1d197d0e]{text-align:center;padding:40px;border-radius:12px;box-shadow:0 4px 16px #00000014}@media (max-width: 768px){.episodes-header[data-v-1d197d0e]{flex-direction:column;align-items:flex-start}.episodes-controls[data-v-1d197d0e]{width:100%;justify-content:space-between}.strategy-select[data-v-1d197d0e],.layout-select[data-v-1d197d0e]{width:120px!important}.route-tabs[data-v-1d197d0e]{gap:8px}.route-btn[data-v-1d197d0e]{min-width:100px;height:36px;font-size:12px}.episodes-grid[data-v-1d197d0e]{gap:6px}.episode-btn[data-v-1d197d0e]{min-height:32px;font-size:12px}}@media (max-width: 480px){.episodes-grid[data-v-1d197d0e]{grid-template-columns:repeat(6,1fr)}.route-btn[data-v-1d197d0e]{min-width:80px;height:32px;font-size:11px}.episode-btn[data-v-1d197d0e]{min-height:28px;font-size:11px}}.reader-header[data-v-28cb62d6]{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2);position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-left[data-v-28cb62d6]{flex:0 0 auto}.close-btn[data-v-28cb62d6]{color:var(--color-text-1);font-weight:500}.header-center[data-v-28cb62d6]{flex:1;display:flex;justify-content:center;min-width:0}.book-info[data-v-28cb62d6]{text-align:center;max-width:400px}.book-title[data-v-28cb62d6]{font-size:16px;font-weight:600;color:var(--color-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}.chapter-info[data-v-28cb62d6]{display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px;color:var(--color-text-3)}.chapter-name[data-v-28cb62d6]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.chapter-progress[data-v-28cb62d6]{flex-shrink:0}.header-right[data-v-28cb62d6]{flex:0 0 auto;display:flex;align-items:center;gap:8px}.chapter-nav[data-v-28cb62d6]{display:flex;align-items:center;gap:4px}.nav-btn[data-v-28cb62d6],.chapter-list-btn[data-v-28cb62d6],.settings-btn[data-v-28cb62d6],.fullscreen-btn[data-v-28cb62d6]{color:var(--color-text-2);transition:color .2s ease}.nav-btn[data-v-28cb62d6]:hover,.chapter-list-btn[data-v-28cb62d6]:hover,.settings-btn[data-v-28cb62d6]:hover,.fullscreen-btn[data-v-28cb62d6]:hover{color:var(--color-text-1)}.nav-btn[data-v-28cb62d6]:disabled{color:var(--color-text-4)}[data-v-28cb62d6] .arco-dropdown-content{max-height:calc(100vh - 120px)!important;padding:0!important}.chapter-dropdown[data-v-28cb62d6]{width:300px;max-height:calc(100vh - 120px);display:flex;flex-direction:column}.chapter-dropdown-header[data-v-28cb62d6]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--color-border-2);font-weight:500;color:var(--color-text-1);flex-shrink:0;background:var(--color-bg-1)}.total-count[data-v-28cb62d6]{font-size:12px;color:var(--color-text-3);font-weight:400}.chapter-dropdown-content[data-v-28cb62d6]{flex:1;max-height:calc(100vh - 180px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--color-border-3) transparent}.chapter-dropdown-content[data-v-28cb62d6]::-webkit-scrollbar{width:6px}.chapter-dropdown-content[data-v-28cb62d6]::-webkit-scrollbar-track{background:transparent}.chapter-dropdown-content[data-v-28cb62d6]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:3px}.chapter-dropdown-content[data-v-28cb62d6]::-webkit-scrollbar-thumb:hover{background:var(--color-border-2)}.chapter-option[data-v-28cb62d6]{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;transition:background-color .2s ease}.chapter-option[data-v-28cb62d6]:hover{background:var(--color-fill-2)}.current-chapter .chapter-option[data-v-28cb62d6]{background:var(--color-primary-light-1);color:var(--color-primary-6)}.chapter-number[data-v-28cb62d6]{flex-shrink:0;font-size:12px;color:var(--color-text-3);width:30px}.chapter-title[data-v-28cb62d6]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.current-icon[data-v-28cb62d6]{flex-shrink:0;color:var(--color-primary-6);font-size:14px}@media (max-width: 768px){.reader-header[data-v-28cb62d6]{padding:8px 12px}.book-info[data-v-28cb62d6]{max-width:250px}.book-title[data-v-28cb62d6]{font-size:14px}.chapter-info[data-v-28cb62d6]{font-size:11px}.chapter-name[data-v-28cb62d6]{max-width:150px}.header-right[data-v-28cb62d6]{gap:4px}.chapter-dropdown[data-v-28cb62d6]{width:280px}}@media (max-width: 480px){.close-btn span[data-v-28cb62d6],.chapter-list-btn span[data-v-28cb62d6],.settings-btn span[data-v-28cb62d6]{display:none}.book-info[data-v-28cb62d6]{max-width:180px}.chapter-name[data-v-28cb62d6]{max-width:120px}}.reading-settings-dialog[data-v-4de406c1] .arco-modal{height:50vh;max-height:480px;display:flex;flex-direction:column}.reading-settings-dialog[data-v-4de406c1] .arco-modal-header{flex-shrink:0;border-bottom:1px solid var(--color-border-2);padding:12px 20px}.reading-settings-dialog[data-v-4de406c1] .arco-modal-body{padding:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.dialog-container[data-v-4de406c1]{display:flex;flex-direction:column;height:100%;overflow:hidden}.settings-content[data-v-4de406c1]{flex:1;padding:16px;overflow-y:auto;overflow-x:hidden}.setting-section[data-v-4de406c1]{margin-bottom:16px}.setting-section[data-v-4de406c1]:last-of-type{margin-bottom:0}.section-title[data-v-4de406c1]{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:600;color:var(--color-text-1);margin-bottom:12px;padding-bottom:6px;border-bottom:1px solid var(--color-border-2)}.setting-item[data-v-4de406c1]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.setting-label[data-v-4de406c1]{font-size:14px;color:var(--color-text-2);min-width:80px}.font-size-controls[data-v-4de406c1]{display:flex;align-items:center;gap:10px}.font-size-value[data-v-4de406c1]{font-size:14px;color:var(--color-text-1);min-width:40px;text-align:center}.line-height-slider[data-v-4de406c1],.max-width-slider[data-v-4de406c1],.font-family-select[data-v-4de406c1]{width:180px}.theme-options[data-v-4de406c1]{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px}.theme-option[data-v-4de406c1]{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;border:2px solid var(--color-border-2);border-radius:6px;cursor:pointer;transition:all .2s ease}.theme-option[data-v-4de406c1]:hover{border-color:var(--color-border-3);transform:translateY(-1px)}.theme-option.active[data-v-4de406c1]{border-color:var(--color-primary-6);background:var(--color-primary-light-1)}.theme-preview[data-v-4de406c1]{width:50px;height:32px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px}.theme-name[data-v-4de406c1]{font-size:11px;color:var(--color-text-2)}.color-settings[data-v-4de406c1]{display:flex;gap:16px}.color-item[data-v-4de406c1]{display:flex;flex-direction:column;align-items:center;gap:6px}.color-label[data-v-4de406c1]{font-size:11px;color:var(--color-text-2)}.color-picker[data-v-4de406c1]{width:36px;height:36px;border:none;border-radius:50%;cursor:pointer;outline:none}.preview-area[data-v-4de406c1]{padding:16px;border:1px solid var(--color-border-2);border-radius:6px;margin:0 auto;transition:all .3s ease}.preview-title[data-v-4de406c1]{margin:0 0 12px;font-weight:600}.preview-text[data-v-4de406c1]{margin:0;text-align:justify;text-indent:2em}.dialog-footer[data-v-4de406c1]{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-top:1px solid var(--color-border-2);background:var(--color-bg-1);flex-shrink:0}.action-buttons[data-v-4de406c1]{display:flex;gap:10px}.reset-btn[data-v-4de406c1]{color:var(--color-text-3)}@media (max-width: 768px){.settings-content[data-v-4de406c1]{padding:12px}.setting-item[data-v-4de406c1]{flex-direction:column;align-items:flex-start;gap:6px}.line-height-slider[data-v-4de406c1],.max-width-slider[data-v-4de406c1],.font-family-select[data-v-4de406c1]{width:100%}.theme-options[data-v-4de406c1]{grid-template-columns:repeat(2,1fr)}.color-settings[data-v-4de406c1]{justify-content:center}.dialog-footer[data-v-4de406c1]{flex-direction:column;gap:10px}.action-buttons[data-v-4de406c1]{width:100%;justify-content:center}}.settings-content[data-v-4de406c1]::-webkit-scrollbar{width:6px}.settings-content[data-v-4de406c1]::-webkit-scrollbar-track{background:var(--color-fill-1);border-radius:3px}.settings-content[data-v-4de406c1]::-webkit-scrollbar-thumb{background:var(--color-fill-3);border-radius:3px}.settings-content[data-v-4de406c1]::-webkit-scrollbar-thumb:hover{background:var(--color-fill-4)}.book-reader[data-v-0dd837ef]{position:fixed;inset:0;background:var(--color-bg-1);z-index:1000;display:flex;flex-direction:column}.reader-content[data-v-0dd837ef]{flex:1;overflow-y:auto;padding:20px;transition:all .3s ease}.loading-container[data-v-0dd837ef],.error-container[data-v-0dd837ef],.empty-container[data-v-0dd837ef]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:400px}.loading-text[data-v-0dd837ef]{margin-top:16px;color:var(--color-text-2);font-size:14px}.chapter-container[data-v-0dd837ef]{max-width:1000px;margin:0 auto;padding:40px 20px}.chapter-title[data-v-0dd837ef]{text-align:center;margin-bottom:40px;font-weight:600;border-bottom:2px solid var(--color-border-2);padding-bottom:20px}.chapter-text[data-v-0dd837ef]{margin:0 auto 60px;text-align:justify;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}.chapter-text[data-v-0dd837ef] p{margin-bottom:1.5em;text-indent:2em}.chapter-text[data-v-0dd837ef] p:first-child{margin-top:0}.chapter-text[data-v-0dd837ef] p:last-child{margin-bottom:0}.chapter-navigation[data-v-0dd837ef]{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-top:1px solid var(--color-border-2);margin-top:40px}.nav-btn[data-v-0dd837ef]{min-width:120px}.chapter-progress[data-v-0dd837ef]{font-size:14px;color:var(--color-text-2);font-weight:500}@media (max-width: 768px){.reader-content[data-v-0dd837ef]{padding:10px}.chapter-container[data-v-0dd837ef]{padding:20px 10px}.chapter-title[data-v-0dd837ef]{font-size:20px;margin-bottom:30px}.chapter-navigation[data-v-0dd837ef]{flex-direction:column;gap:15px}.nav-btn[data-v-0dd837ef]{width:100%;min-width:auto}}.book-reader[data-theme=dark][data-v-0dd837ef]{background:#1a1a1a}.book-reader[data-theme=sepia][data-v-0dd837ef]{background:#f4f1e8}.reader-header[data-v-1f6a371c]{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2);position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-left[data-v-1f6a371c]{flex:0 0 auto}.close-btn[data-v-1f6a371c]{color:var(--color-text-1);font-weight:500}.header-center[data-v-1f6a371c]{flex:1;display:flex;justify-content:center;min-width:0}.book-info[data-v-1f6a371c]{text-align:center;max-width:400px}.book-title[data-v-1f6a371c]{font-size:16px;font-weight:600;color:var(--color-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}.chapter-info[data-v-1f6a371c]{display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px;color:var(--color-text-3)}.chapter-name[data-v-1f6a371c]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.chapter-progress[data-v-1f6a371c]{flex-shrink:0}.header-right[data-v-1f6a371c]{flex:0 0 auto;display:flex;align-items:center;gap:8px}.chapter-nav[data-v-1f6a371c]{display:flex;align-items:center;gap:4px}.nav-btn[data-v-1f6a371c],.chapter-list-btn[data-v-1f6a371c],.settings-btn[data-v-1f6a371c],.fullscreen-btn[data-v-1f6a371c]{color:var(--color-text-2);transition:color .2s ease}.nav-btn[data-v-1f6a371c]:hover,.chapter-list-btn[data-v-1f6a371c]:hover,.settings-btn[data-v-1f6a371c]:hover,.fullscreen-btn[data-v-1f6a371c]:hover{color:var(--color-text-1)}.nav-btn[data-v-1f6a371c]:disabled{color:var(--color-text-4);cursor:not-allowed}.chapter-dropdown[data-v-1f6a371c]{width:320px;max-height:400px;background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:6px;box-shadow:0 4px 12px #0000001a;overflow:hidden}.chapter-dropdown-header[data-v-1f6a371c]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border-2);font-size:14px;font-weight:500;color:var(--color-text-1)}.total-count[data-v-1f6a371c]{font-size:12px;color:var(--color-text-3);font-weight:400}.chapter-dropdown-content[data-v-1f6a371c]{max-height:300px;overflow-y:auto}.chapter-dropdown-content[data-v-1f6a371c]::-webkit-scrollbar{width:6px}.chapter-dropdown-content[data-v-1f6a371c]::-webkit-scrollbar-track{background:transparent}.chapter-dropdown-content[data-v-1f6a371c]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:3px}.chapter-dropdown-content[data-v-1f6a371c]::-webkit-scrollbar-thumb:hover{background:var(--color-border-2)}.chapter-option[data-v-1f6a371c]{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;transition:background-color .2s ease}.chapter-option[data-v-1f6a371c]:hover{background:var(--color-fill-2)}.current-chapter .chapter-option[data-v-1f6a371c]{background:var(--color-primary-light-1);color:var(--color-primary-6)}.chapter-number[data-v-1f6a371c]{flex-shrink:0;font-size:12px;color:var(--color-text-3);width:30px}.chapter-title[data-v-1f6a371c]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.current-icon[data-v-1f6a371c]{flex-shrink:0;color:var(--color-primary-6);font-size:14px}@media (max-width: 768px){.reader-header[data-v-1f6a371c]{padding:8px 12px}.book-info[data-v-1f6a371c]{max-width:250px}.book-title[data-v-1f6a371c]{font-size:14px}.chapter-info[data-v-1f6a371c]{font-size:11px}.chapter-name[data-v-1f6a371c]{max-width:150px}.header-right[data-v-1f6a371c]{gap:4px}.chapter-dropdown[data-v-1f6a371c]{width:280px}}@media (max-width: 480px){.close-btn span[data-v-1f6a371c],.chapter-list-btn span[data-v-1f6a371c],.settings-btn span[data-v-1f6a371c]{display:none}.book-info[data-v-1f6a371c]{max-width:180px}.chapter-name[data-v-1f6a371c]{max-width:120px}}.header-center[data-v-1f6a371c]{display:flex;align-items:center;justify-content:center;flex:1}.header-center[data-v-1f6a371c] .arco-btn{color:var(--color-text-1);border-color:var(--color-border-2)}.header-center[data-v-1f6a371c] .arco-btn:hover{background:var(--color-fill-2);border-color:var(--color-border-3)}.header-center[data-v-1f6a371c] .arco-btn:disabled{color:var(--color-text-4);border-color:var(--color-border-1)}.header-right[data-v-1f6a371c]{display:flex;align-items:center;justify-content:flex-end;flex:1}.settings-btn[data-v-1f6a371c]{color:var(--color-text-1)}.settings-btn[data-v-1f6a371c]:hover{background:var(--color-fill-2)}@media (max-width: 768px){.header-content[data-v-1f6a371c]{padding:0 10px}.title-info[data-v-1f6a371c]{display:none}.header-center[data-v-1f6a371c] .arco-btn-group .arco-btn{padding:0 8px;font-size:12px}}@media (max-width: 480px){.comic-reader-header[data-v-1f6a371c]{height:50px}.header-center[data-v-1f6a371c] .arco-btn-group .arco-btn span{display:none}.header-center[data-v-1f6a371c] .arco-btn-group .arco-btn .arco-icon{margin:0}}.comic-settings[data-v-6adf651b]{padding:20px 0}.setting-section[data-v-6adf651b]{margin-bottom:32px}.setting-section[data-v-6adf651b]:last-of-type{margin-bottom:20px}.section-title[data-v-6adf651b]{font-size:16px;font-weight:600;margin-bottom:16px;color:var(--color-text-1);border-bottom:1px solid var(--color-border-2);padding-bottom:8px}.setting-item[data-v-6adf651b]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;min-height:32px}.setting-item[data-v-6adf651b]:last-child{margin-bottom:0}.setting-label[data-v-6adf651b]{font-size:14px;color:var(--color-text-1);min-width:80px;flex-shrink:0}.setting-control[data-v-6adf651b]{display:flex;align-items:center;gap:12px;flex:1;max-width:280px}.setting-control[data-v-6adf651b] .arco-slider{flex:1}.setting-value[data-v-6adf651b]{font-size:12px;color:var(--color-text-2);min-width:50px;text-align:right}.theme-options[data-v-6adf651b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px}.theme-option[data-v-6adf651b]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border:2px solid var(--color-border-2);border-radius:8px;cursor:pointer;transition:all .2s ease}.theme-option[data-v-6adf651b]:hover{border-color:var(--color-border-3);transform:translateY(-2px)}.theme-option.active[data-v-6adf651b]{border-color:var(--color-primary-6);background:var(--color-primary-light-1)}.theme-preview[data-v-6adf651b]{width:60px;height:40px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}.preview-text[data-v-6adf651b]{text-shadow:0 1px 2px rgba(0,0,0,.1)}.theme-name[data-v-6adf651b]{font-size:12px;color:var(--color-text-2);text-align:center}.color-settings[data-v-6adf651b]{display:flex;gap:20px}.color-item[data-v-6adf651b]{display:flex;flex-direction:column;align-items:center;gap:8px}.color-label[data-v-6adf651b]{font-size:14px;color:var(--color-text-2)}.color-picker[data-v-6adf651b]{width:60px;height:40px;border:none;border-radius:6px;cursor:pointer;outline:none}.setting-actions[data-v-6adf651b]{display:flex;justify-content:flex-end;gap:12px;margin-top:32px;padding-top:20px;border-top:1px solid var(--color-border-2)}@media (max-width: 480px){.setting-item[data-v-6adf651b]{flex-direction:column;align-items:flex-start;gap:8px}.setting-control[data-v-6adf651b]{width:100%;max-width:none}.theme-options[data-v-6adf651b]{width:100%}.theme-option[data-v-6adf651b]{flex:1;min-width:50px}}.comic-reader[data-v-50453960]{position:fixed;inset:0;background:var(--color-bg-1);z-index:1000;display:flex;flex-direction:column}.reader-content[data-v-50453960]{flex:1;overflow-y:auto;padding:20px;transition:all .3s ease}.loading-container[data-v-50453960],.error-container[data-v-50453960],.empty-container[data-v-50453960]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:400px}.loading-text[data-v-50453960]{margin-top:16px;color:var(--color-text-2);font-size:14px}.comic-container[data-v-50453960]{max-width:1000px;margin:0 auto;padding:40px 20px}.chapter-title[data-v-50453960]{text-align:center;margin-bottom:40px;font-weight:600;border-bottom:2px solid var(--color-border-2);padding-bottom:20px}.images-container[data-v-50453960]{display:flex;flex-direction:column;align-items:center;margin:0 auto 60px}.image-wrapper[data-v-50453960]{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;max-width:100%}.comic-image[data-v-50453960]{display:block;border-radius:8px;box-shadow:0 2px 8px var(--color-border-3);cursor:pointer;transition:transform .2s ease}.comic-image[data-v-50453960]:hover{transform:scale(1.02)}.image-loading[data-v-50453960],.image-error[data-v-50453960]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;background:var(--color-bg-2);border-radius:8px;color:var(--color-text-2);width:100%;max-width:800px}.image-error[data-v-50453960]{gap:12px}.error-text[data-v-50453960]{font-size:14px;color:var(--color-text-3)}.image-index[data-v-50453960]{position:absolute;top:10px;right:10px;background:#000000b3;color:inherit;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500;box-shadow:0 2px 4px #0000004d}.chapter-navigation[data-v-50453960]{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-top:1px solid rgba(255,255,255,.1);margin-top:40px}.nav-btn[data-v-50453960]{min-width:120px}.chapter-info[data-v-50453960]{text-align:center;color:inherit}.chapter-progress[data-v-50453960]{font-size:14px;color:inherit;opacity:.8;font-weight:500;margin-bottom:4px}.page-progress[data-v-50453960]{font-size:14px;color:inherit;opacity:.6}@media (max-width: 768px){.reader-content[data-v-50453960]{padding:10px}.comic-container[data-v-50453960]{padding:20px 10px}.chapter-title[data-v-50453960]{font-size:20px;margin-bottom:30px}.chapter-navigation[data-v-50453960]{flex-direction:column;gap:15px}.nav-btn[data-v-50453960]{width:100%;min-width:auto}}.viewer[data-v-50453960]{display:none}.comic-reader[data-theme=dark][data-v-50453960]{background:#1a1a1a}.comic-reader[data-theme=sepia][data-v-50453960]{background:#f4f1e8}.add-task-form[data-v-478714de]{max-height:600px;overflow-y:auto}.form-section[data-v-478714de]{margin-bottom:24px}.form-section h4[data-v-478714de]{margin:0 0 12px;font-size:14px;font-weight:600;color:var(--color-text-1);border-bottom:1px solid var(--color-border-2);padding-bottom:8px}.novel-info[data-v-478714de]{display:flex;gap:16px;padding:16px;background:var(--color-bg-1);border-radius:8px}.novel-cover img[data-v-478714de]{width:80px;height:120px;-o-object-fit:cover;object-fit:cover;border-radius:4px}.novel-details[data-v-478714de]{flex:1}.novel-details h3[data-v-478714de]{margin:0 0 8px;font-size:16px;color:var(--color-text-1)}.novel-author[data-v-478714de]{margin:0 0 8px;font-size:12px;color:var(--color-text-3)}.novel-desc[data-v-478714de]{margin:0 0 12px;font-size:12px;color:var(--color-text-2);line-height:1.5;max-height:60px;overflow:hidden}.novel-meta[data-v-478714de]{display:flex;gap:16px;font-size:12px;color:var(--color-text-3)}.no-novel[data-v-478714de]{padding:40px;text-align:center}.chapter-selection[data-v-478714de]{border:1px solid var(--color-border-2);border-radius:8px;padding:16px}.selection-controls[data-v-478714de]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-wrap:wrap;gap:12px}.range-selector[data-v-478714de]{display:flex;align-items:center;gap:8px;font-size:12px}.selected-info[data-v-478714de]{margin-bottom:16px;font-size:14px;font-weight:600;color:var(--color-primary-6)}.chapter-list[data-v-478714de]{max-height:300px;overflow-y:auto}.chapter-grid[data-v-478714de]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}.chapter-item[data-v-478714de]{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--color-border-2);border-radius:4px;cursor:pointer;transition:all .2s ease}.chapter-item[data-v-478714de]:hover{border-color:var(--color-primary-light-4);background:var(--color-primary-light-1)}.chapter-item.selected[data-v-478714de]{border-color:var(--color-primary-6);background:var(--color-primary-light-2)}.chapter-title[data-v-478714de]{font-size:12px;color:var(--color-text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-settings[data-v-478714de]{background:var(--color-bg-1);border-radius:8px;padding:16px}.setting-row[data-v-478714de]{display:flex;align-items:center;margin-bottom:16px;gap:12px}.setting-row[data-v-478714de]:last-child{margin-bottom:0}.setting-row label[data-v-478714de]{width:80px;font-size:14px;color:var(--color-text-2);flex-shrink:0}.setting-tip[data-v-478714de]{font-size:12px;color:var(--color-text-3)}.video-detail[data-v-9b86bd37]{min-height:100vh;background:var(--color-bg-1)}.detail-header[data-v-9b86bd37]{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2);position:sticky;top:0;z-index:100}.detail-header .left-section[data-v-9b86bd37]{display:flex;align-items:center;flex:1}.back-btn[data-v-9b86bd37]{margin-right:16px;flex-shrink:0}.header-title[data-v-9b86bd37]{font-size:16px;font-weight:600;color:var(--color-text-1);flex:1;min-width:0}.title-with-info[data-v-9b86bd37]{display:flex;flex-direction:column;gap:2px}.title-main[data-v-9b86bd37]{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.title-source[data-v-9b86bd37]{font-size:12px;color:var(--color-text-3);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-actions[data-v-9b86bd37]{display:flex;align-items:center;gap:12px;flex-shrink:0}.favorite-btn[data-v-9b86bd37]{display:flex;align-items:center;gap:6px;min-width:100px;justify-content:center}.loading-container[data-v-9b86bd37]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:16px}.loading-text[data-v-9b86bd37]{color:var(--color-text-2);font-size:14px}.error-container[data-v-9b86bd37]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:16px}.detail-content[data-v-9b86bd37]{padding:24px;max-width:1400px;margin:0 auto;width:100%}.video-info-card[data-v-9b86bd37]{margin-bottom:24px;transition:all .3s ease}.video-info-card.collapsed-when-playing[data-v-9b86bd37]{margin-bottom:16px}.video-info-card.collapsed-when-playing .video-header[data-v-9b86bd37]{margin-bottom:12px}.video-info-card.collapsed-when-playing .video-poster[data-v-9b86bd37]{width:120px;height:168px}.video-info-card.collapsed-when-playing .video-info[data-v-9b86bd37]{gap:8px}.video-info-card.collapsed-when-playing .title-main[data-v-9b86bd37]{font-size:18px;line-height:1.3}.video-info-card.collapsed-when-playing .video-meta[data-v-9b86bd37]{gap:8px}.video-info-card.collapsed-when-playing .meta-item[data-v-9b86bd37]{font-size:12px;padding:2px 6px}.video-info-card.collapsed-when-playing .video-description[data-v-9b86bd37]{margin-top:12px}.video-info-card.collapsed-when-playing .video-description h3[data-v-9b86bd37]{font-size:14px;margin-bottom:8px}.video-info-card.collapsed-when-playing .description-content[data-v-9b86bd37]{font-size:13px;line-height:1.4;max-height:60px;overflow:hidden}.video-info-card.collapsed-when-playing .description-content.expanded[data-v-9b86bd37]{max-height:none}.video-info-card.collapsed-when-playing .play-actions[data-v-9b86bd37]{gap:8px}.video-info-card.collapsed-when-playing .play-btn[data-v-9b86bd37],.video-info-card.collapsed-when-playing .copy-btn[data-v-9b86bd37]{height:32px;font-size:13px}.video-header[data-v-9b86bd37]{display:flex;gap:24px;margin-bottom:24px}.video-poster[data-v-9b86bd37]{flex-shrink:0;width:200px;height:280px;border-radius:8px;overflow:hidden;background:var(--color-bg-3);box-shadow:0 4px 12px #0000001a;position:relative;cursor:pointer}.video-poster img[data-v-9b86bd37]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.poster-overlay[data-v-9b86bd37]{position:absolute;inset:0;background:#00000080;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;opacity:0;transition:opacity .3s ease;pointer-events:none}.video-poster:hover .poster-overlay[data-v-9b86bd37]{opacity:1}.poster-overlay .view-icon[data-v-9b86bd37]{font-size:24px;margin-bottom:8px}.poster-overlay span[data-v-9b86bd37]{font-size:14px}.video-meta[data-v-9b86bd37]{flex:1}.video-title[data-v-9b86bd37]{font-size:28px;font-weight:700;color:var(--color-text-1);margin:0 0 16px;line-height:1.3}.video-tags[data-v-9b86bd37]{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.video-info-grid[data-v-9b86bd37]{display:flex;flex-direction:column;gap:12px}.info-item[data-v-9b86bd37]{display:flex;align-items:flex-start}.info-item .label[data-v-9b86bd37]{font-weight:600;color:var(--color-text-2);min-width:60px;flex-shrink:0}.info-item .value[data-v-9b86bd37]{color:var(--color-text-1);line-height:1.5}.video-description[data-v-9b86bd37]{border-top:1px solid var(--color-border-2);padding-top:24px}.video-description h3[data-v-9b86bd37]{font-size:18px;font-weight:600;color:var(--color-text-1);margin:0 0 16px}.description-content[data-v-9b86bd37]{color:var(--color-text-1);line-height:1.6;max-height:120px;overflow:hidden;transition:max-height .3s ease;white-space:pre-wrap;word-wrap:break-word}.description-content.expanded[data-v-9b86bd37]{max-height:none}.expand-btn[data-v-9b86bd37]{margin-top:8px;padding:0}.play-section[data-v-9b86bd37]{margin-bottom:24px}.play-section h3[data-v-9b86bd37]{font-size:18px;font-weight:600;color:var(--color-text-1);margin:0 0 16px}.route-tabs[data-v-9b86bd37]{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}.route-btn[data-v-9b86bd37]{min-width:120px;height:40px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;font-weight:500;transition:all .2s ease}.route-btn[data-v-9b86bd37]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.route-name[data-v-9b86bd37]{flex:1;text-align:center}.route-badge[data-v-9b86bd37]{flex-shrink:0}.episodes-header[data-v-9b86bd37]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.episodes-header h4[data-v-9b86bd37]{font-size:16px;font-weight:600;color:var(--color-text-1);margin:0}.episodes-controls[data-v-9b86bd37]{display:flex;align-items:center;gap:8px}.sort-btn[data-v-9b86bd37]{display:flex;align-items:center;gap:4px;color:var(--color-text-2);border-radius:6px;transition:all .2s ease}.sort-btn[data-v-9b86bd37]:hover{color:var(--color-text-1);background-color:var(--color-bg-2)}.strategy-select[data-v-9b86bd37],.layout-select[data-v-9b86bd37]{border-radius:6px}.strategy-select[data-v-9b86bd37] .arco-select-view-single,.layout-select[data-v-9b86bd37] .arco-select-view-single{background-color:transparent;border:none;color:var(--color-text-2);font-size:12px;padding:4px 8px;min-height:28px;white-space:nowrap;overflow:visible}.strategy-select[data-v-9b86bd37] .arco-select-view-single:hover,.layout-select[data-v-9b86bd37] .arco-select-view-single:hover{background-color:var(--color-bg-2);color:var(--color-text-1)}.strategy-select[data-v-9b86bd37] .arco-select-view-value,.layout-select[data-v-9b86bd37] .arco-select-view-value{overflow:visible;text-overflow:unset;white-space:nowrap}.strategy-select[data-v-9b86bd37] .arco-select-view-suffix,.layout-select[data-v-9b86bd37] .arco-select-view-suffix{margin-left:4px}.episodes-grid[data-v-9b86bd37]{display:grid;grid-template-columns:repeat(var(--episodes-columns, 12),1fr);gap:12px;margin-bottom:24px}.episode-btn[data-v-9b86bd37]{min-height:40px;border-radius:8px;font-weight:500;transition:all .2s ease;position:relative;overflow:hidden}.episode-btn[data-v-9b86bd37]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.episode-text[data-v-9b86bd37]{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:0 8px}.video-actions[data-v-9b86bd37]{margin-top:20px;padding:20px;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-radius:12px;border:1px solid #dee2e6}.play-actions[data-v-9b86bd37],.action-buttons[data-v-9b86bd37],.action-buttons-row[data-v-9b86bd37]{display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:center}.download-row[data-v-9b86bd37]{margin-top:16px;justify-content:flex-start!important}.play-btn[data-v-9b86bd37]{min-width:140px;height:44px;border-radius:8px;font-weight:600;font-size:16px;box-shadow:0 4px 12px #165dff4d;transition:all .2s ease}.play-btn[data-v-9b86bd37]:hover{transform:translateY(-2px);box-shadow:0 6px 16px #165dff66}.copy-btn[data-v-9b86bd37]{height:44px;border-radius:8px;font-weight:500;transition:all .2s ease}.copy-btn[data-v-9b86bd37]:hover{transform:translateY(-1px)}.download-btn[data-v-9b86bd37]{min-width:140px;height:44px;border-radius:8px;font-weight:600;font-size:16px;box-shadow:0 4px 12px #00b42a4d;transition:all .2s ease}.download-btn[data-v-9b86bd37]:hover{transform:translateY(-2px);box-shadow:0 6px 16px #00b42a66}.no-play-section[data-v-9b86bd37]{text-align:center;padding:40px}.video-player-section[data-v-9b86bd37]{margin-bottom:20px;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001f}.player-header[data-v-9b86bd37]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.player-header h3[data-v-9b86bd37]{font-size:18px;font-weight:600;color:var(--color-text-1);margin:0}.player-controls[data-v-9b86bd37]{display:flex;gap:8px}.video-player-container[data-v-9b86bd37]{position:relative;width:100%;background:#000;border-radius:8px;overflow:hidden}.video-player[data-v-9b86bd37]{width:100%;height:auto;min-height:400px;max-height:70vh;background:#000;outline:none}.video-player[data-v-9b86bd37]::-webkit-media-controls-panel{background-color:transparent}.video-player[data-v-9b86bd37]::-webkit-media-controls-play-button,.video-player[data-v-9b86bd37]::-webkit-media-controls-volume-slider,.video-player[data-v-9b86bd37]::-webkit-media-controls-timeline,.video-player[data-v-9b86bd37]::-webkit-media-controls-current-time-display,.video-player[data-v-9b86bd37]::-webkit-media-controls-time-remaining-display{color:#fff}@media (max-width: 1200px){.detail-content[data-v-9b86bd37]{max-width:100%;padding:20px}}@media (max-width: 768px){.detail-header[data-v-9b86bd37]{padding:12px 16px}.header-title[data-v-9b86bd37],.title-main[data-v-9b86bd37]{font-size:14px}.title-source[data-v-9b86bd37]{font-size:11px}.favorite-btn[data-v-9b86bd37]{min-width:80px;font-size:12px}.detail-content[data-v-9b86bd37]{padding:16px}.video-header[data-v-9b86bd37]{flex-direction:column;gap:16px}.video-poster[data-v-9b86bd37]{width:150px;height:210px;margin:0 auto}.video-title[data-v-9b86bd37]{font-size:24px;text-align:center}.route-tabs[data-v-9b86bd37]{gap:8px}.route-btn[data-v-9b86bd37]{min-width:100px;height:36px;font-size:14px}.episodes-grid[data-v-9b86bd37]{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px}.episode-btn[data-v-9b86bd37]{min-height:36px;font-size:12px}.play-actions[data-v-9b86bd37]{flex-direction:column;align-items:stretch}.play-btn[data-v-9b86bd37]{width:100%;height:40px;font-size:14px}.copy-btn[data-v-9b86bd37]{width:100%;height:40px}.video-player-section[data-v-9b86bd37]{margin-bottom:16px}.player-header h3[data-v-9b86bd37]{font-size:16px}.video-player[data-v-9b86bd37]{min-height:250px}.video-info-card.collapsed-when-playing .video-header[data-v-9b86bd37]{flex-direction:column;gap:12px}.video-info-card.collapsed-when-playing .video-poster[data-v-9b86bd37]{width:100px;height:140px;align-self:center}.video-info-card.collapsed-when-playing .title-main[data-v-9b86bd37]{font-size:16px}}@media (max-width: 480px){.detail-header[data-v-9b86bd37]{padding:10px 12px}.header-title[data-v-9b86bd37],.title-main[data-v-9b86bd37]{font-size:13px}.favorite-btn[data-v-9b86bd37]{min-width:70px;font-size:11px}.episodes-grid[data-v-9b86bd37]{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}.video-player-section[data-v-9b86bd37]{margin-bottom:12px}.player-header[data-v-9b86bd37]{flex-direction:column;gap:8px;align-items:flex-start}.player-header h3[data-v-9b86bd37]{font-size:14px}.video-player[data-v-9b86bd37]{min-height:200px}.video-info-card.collapsed-when-playing .video-poster[data-v-9b86bd37]{width:80px;height:112px}.video-info-card.collapsed-when-playing .title-main[data-v-9b86bd37]{font-size:14px}}.parse-dialog-content[data-v-9b86bd37]{padding:20px 0;text-align:center}.parse-message[data-v-9b86bd37]{font-size:16px;color:var(--color-text-1);margin-bottom:20px;line-height:1.5}.parse-hint[data-v-9b86bd37]{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;background:var(--color-bg-2);border-radius:8px;border-left:4px solid var(--color-primary)}.hint-icon[data-v-9b86bd37]{color:var(--color-primary);font-size:18px}.hint-text[data-v-9b86bd37]{color:var(--color-text-2);font-size:14px}.parse-dialog-footer[data-v-9b86bd37]{display:flex;justify-content:center;padding-top:16px}.sniff-progress[data-v-9b86bd37]{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px;background:var(--color-bg-2);border-radius:8px;margin:16px 0;border-left:4px solid var(--color-warning)}.progress-icon[data-v-9b86bd37]{color:var(--color-warning)}.progress-text[data-v-9b86bd37]{color:var(--color-text-1);font-size:14px}.sniff-results[data-v-9b86bd37]{margin:16px 0;text-align:left}.results-title[data-v-9b86bd37]{font-size:14px;font-weight:500;color:var(--color-text-1);margin-bottom:12px}.results-list[data-v-9b86bd37]{background:var(--color-bg-2);border-radius:8px;padding:12px;border-left:4px solid var(--color-success)}.result-item[data-v-9b86bd37]{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px}.result-item[data-v-9b86bd37]:last-child{margin-bottom:0}.result-index[data-v-9b86bd37]{background:var(--color-success);color:#fff;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;flex-shrink:0}.result-info[data-v-9b86bd37]{flex:1;min-width:0}.result-url[data-v-9b86bd37]{font-size:12px;color:var(--color-text-2);word-break:break-all;line-height:1.4}.result-type[data-v-9b86bd37]{font-size:11px;color:var(--color-text-3);margin-top:2px}.more-results[data-v-9b86bd37]{font-size:12px;color:var(--color-text-3);text-align:center;margin-top:8px;padding-top:8px;border-top:1px solid var(--color-border-2)}.live-proxy-selector[data-v-638b32e0]{display:flex;align-items:center;gap:4px;padding:6px 10px;border-radius:4px;cursor:pointer;transition:all .2s ease;background:transparent;border:none;font-size:12px;font-weight:500;color:#495057;min-height:28px;position:relative}.live-proxy-selector[data-v-638b32e0]:hover{background:#e9ecef;color:#212529;transform:translateY(-1px)}.selector-icon[data-v-638b32e0]{width:14px;height:14px;flex-shrink:0}.proxy-select[data-v-638b32e0]{border:none!important;background:transparent!important;box-shadow:none!important;min-width:120px}.proxy-select[data-v-638b32e0] .arco-select-view{border:none!important;background:transparent!important;padding:0;font-size:11px;font-weight:500}.proxy-select[data-v-638b32e0] .arco-select-view-suffix,.proxy-select[data-v-638b32e0] .arco-select-view-value{color:currentColor}.live-container[data-v-725ef902]{height:100%;display:flex;flex-direction:column;overflow:hidden}.simple-header[data-v-725ef902]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 20px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border-2);box-sizing:border-box}.navigation-title[data-v-725ef902]{font-size:16px;font-weight:600;color:var(--color-text-1);white-space:nowrap}.header-actions[data-v-725ef902]{display:flex;align-items:center;gap:12px}.live-content[data-v-725ef902]{flex:1;padding:16px;overflow:hidden}.loading-container[data-v-725ef902],.error-container[data-v-725ef902],.no-config-container[data-v-725ef902]{height:100%;display:flex;align-items:center;justify-content:center}.live-main[data-v-725ef902]{height:100%;display:flex;gap:16px}.groups-panel[data-v-725ef902],.channels-panel[data-v-725ef902]{width:280px;background:var(--color-bg-2);border-radius:8px;border:1px solid var(--color-border-2);display:flex;flex-direction:column;overflow:hidden}.player-panel[data-v-725ef902]{flex:1;background:var(--color-bg-2);border-radius:8px;border:1px solid var(--color-border-2);display:flex;flex-direction:column;overflow:hidden;min-width:400px}.panel-header[data-v-725ef902]{padding:16px;border-bottom:1px solid var(--color-border-2);display:flex;align-items:center;justify-content:space-between;background:var(--color-bg-3)}.panel-header h3[data-v-725ef902]{margin:0;font-size:14px;font-weight:600;color:var(--color-text-1)}.group-count[data-v-725ef902],.channel-count[data-v-725ef902]{font-size:12px;color:var(--color-text-3)}.player-controls[data-v-725ef902]{display:flex;gap:8px}.groups-list[data-v-725ef902],.channels-list[data-v-725ef902]{flex:1;overflow-y:auto;padding:8px}.group-item[data-v-725ef902],.channel-item[data-v-725ef902]{padding:12px;border-radius:6px;cursor:pointer;transition:all .2s;margin-bottom:4px}.group-item[data-v-725ef902]:hover,.channel-item[data-v-725ef902]:hover{background:var(--color-fill-2)}.group-item.active[data-v-725ef902],.channel-item.active[data-v-725ef902]{background:var(--color-primary-light-1);color:var(--color-primary-6)}.group-info[data-v-725ef902]{display:flex;align-items:center;justify-content:space-between}.group-name[data-v-725ef902]{font-size:14px;font-weight:500}.channel-item[data-v-725ef902]{display:flex;align-items:center;gap:12px}.channel-logo[data-v-725ef902]{flex:1;height:45px;min-width:60px;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;position:relative}.channel-logo[data-v-725ef902]:before{content:"";position:absolute;inset:0;background:#ffffff1a;border-radius:6px}.channel-logo img[data-v-725ef902]{width:80%;height:80%;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 1px 2px rgba(0,0,0,.1))}.default-logo[data-v-725ef902]{font-size:20px;color:#ffffffe6;position:relative;z-index:1}.channel-info[data-v-725ef902]{width:120px;flex-shrink:0}.channel-name[data-v-725ef902]{font-size:14px;font-weight:500;color:var(--color-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel-group[data-v-725ef902]{font-size:12px;color:var(--color-text-3);margin-top:2px}.player-content[data-v-725ef902]{flex:1;display:flex;flex-direction:column;overflow:hidden}.no-selection[data-v-725ef902]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--color-text-3)}.no-selection-icon[data-v-725ef902]{font-size:48px;margin-bottom:16px}.player-wrapper[data-v-725ef902]{flex:1;display:flex;flex-direction:column;overflow:hidden}.video-container[data-v-725ef902]{flex:1;position:relative;background:#000;display:flex;align-items:center;justify-content:center}.video-container video[data-v-725ef902]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.video-loading[data-v-725ef902],.video-error[data-v-725ef902]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#000c;color:#fff}.error-icon[data-v-725ef902]{font-size:48px;color:var(--color-danger-6);margin-bottom:16px}.error-detail[data-v-725ef902]{font-size:12px;color:var(--color-text-3);margin-top:8px;text-align:center}.groups-list[data-v-725ef902]::-webkit-scrollbar,.channels-list[data-v-725ef902]::-webkit-scrollbar{width:6px}.groups-list[data-v-725ef902]::-webkit-scrollbar-track,.channels-list[data-v-725ef902]::-webkit-scrollbar-track{background:var(--color-fill-2);border-radius:3px}.groups-list[data-v-725ef902]::-webkit-scrollbar-thumb,.channels-list[data-v-725ef902]::-webkit-scrollbar-thumb{background:var(--color-fill-4);border-radius:3px}.groups-list[data-v-725ef902]::-webkit-scrollbar-thumb:hover,.channels-list[data-v-725ef902]::-webkit-scrollbar-thumb:hover{background:var(--color-fill-6)}.parser-container[data-v-801d7d95]{height:100%;display:flex;flex-direction:column;overflow:hidden}.simple-header[data-v-801d7d95]{padding:16px 24px;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2)}.navigation-title[data-v-801d7d95]{font-size:18px;font-weight:600;color:var(--color-text-1)}.parser-header[data-v-801d7d95]{background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2);padding:16px 24px}.header-content[data-v-801d7d95]{display:flex;align-items:center;justify-content:space-between}.header-left[data-v-801d7d95]{display:flex;align-items:center;gap:16px}.header-info[data-v-801d7d95]{display:flex;flex-direction:column;gap:4px}.page-title[data-v-801d7d95]{font-size:16px;font-weight:600;color:var(--color-text-1);margin:0}.page-subtitle[data-v-801d7d95]{font-size:12px;color:var(--color-text-3);margin:0}.count-badge[data-v-801d7d95]{margin-left:8px}.header-actions[data-v-801d7d95]{display:flex;align-items:center;gap:12px}.parser-content[data-v-801d7d95]{flex:1;overflow-y:auto;padding:24px;background:var(--color-bg-1)}.loading-container[data-v-801d7d95],.error-container[data-v-801d7d95],.empty-container[data-v-801d7d95]{height:400px;display:flex;align-items:center;justify-content:center}.filter-section[data-v-801d7d95]{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;padding:16px;background:var(--color-bg-2);border-radius:8px;border:1px solid var(--color-border-2)}.filter-controls[data-v-801d7d95]{display:flex;align-items:center;gap:12px}.parsers-list[data-v-801d7d95]{background:var(--color-bg-2);border-radius:8px;border:1px solid var(--color-border-2);overflow:hidden}.drag-container[data-v-801d7d95]{min-height:100px}.parser-item[data-v-801d7d95]{display:flex;align-items:flex-start;padding:16px;border-bottom:1px solid var(--color-border-2);transition:all .2s ease;background:var(--color-bg-2)}.parser-item[data-v-801d7d95]:last-child{border-bottom:none}.parser-item[data-v-801d7d95]:hover{background:var(--color-fill-1)}.parser-item.disabled[data-v-801d7d95]{opacity:.6}.parser-drag-handle[data-v-801d7d95]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:12px;cursor:grab;color:var(--color-text-3)}.parser-drag-handle[data-v-801d7d95]:active{cursor:grabbing}.parser-info[data-v-801d7d95]{flex:1;min-width:0}.parser-header-row[data-v-801d7d95]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.parser-name[data-v-801d7d95]{font-size:16px;font-weight:600;color:var(--color-text-1)}.parser-actions[data-v-801d7d95]{display:flex;align-items:center;gap:8px}.parser-details[data-v-801d7d95]{margin-bottom:8px}.parser-url[data-v-801d7d95]{font-size:14px;color:var(--color-text-2);margin-bottom:8px;word-break:break-all}.parser-meta[data-v-801d7d95]{display:flex;align-items:center;gap:12px}.parser-flags[data-v-801d7d95]{font-size:12px;color:var(--color-text-3)}.test-result[data-v-801d7d95]{margin-top:12px}.danger-option[data-v-801d7d95]{color:var(--color-danger-6)}.form-help[data-v-801d7d95]{font-size:12px;color:var(--color-text-3);margin-top:4px}.upload-area[data-v-801d7d95]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;border:2px dashed var(--color-border-2);border-radius:8px;background:var(--color-fill-1);cursor:pointer;transition:all .2s ease}.upload-area[data-v-801d7d95]:hover{border-color:var(--color-primary-6);background:var(--color-primary-light-1)}.upload-text[data-v-801d7d95]{text-align:center;margin-top:12px}.upload-hint[data-v-801d7d95]{font-size:12px;color:var(--color-text-3);margin-top:4px}.batch-test-content[data-v-801d7d95]{max-height:500px;overflow-y:auto}.test-actions[data-v-801d7d95]{display:flex;gap:12px;margin:16px 0}.batch-results[data-v-801d7d95]{margin-top:24px}.results-list[data-v-801d7d95]{max-height:300px;overflow-y:auto}.result-item[data-v-801d7d95]{padding:12px;border:1px solid var(--color-border-2);border-radius:6px;margin-bottom:8px}.result-header[data-v-801d7d95]{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.result-message[data-v-801d7d95]{font-size:12px;color:var(--color-text-3)}@media (max-width: 768px){.parser-header[data-v-801d7d95]{padding:16px}.header-content[data-v-801d7d95]{flex-direction:column;gap:16px;align-items:stretch}.header-actions[data-v-801d7d95]{flex-wrap:wrap;justify-content:center}.filter-section[data-v-801d7d95]{flex-direction:column;gap:12px;align-items:stretch}.parser-content[data-v-801d7d95]{padding:16px}.parser-header-row[data-v-801d7d95]{flex-direction:column;align-items:flex-start;gap:8px}.parser-actions[data-v-801d7d95]{align-self:flex-end}}.video-card[data-v-c41f7fbb]{background:var(--color-bg-2);border-radius:8px;overflow:hidden;transition:all .3s ease;cursor:pointer;border:1px solid var(--color-border-2)}.video-card[data-v-c41f7fbb]:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0000001f;border-color:var(--color-primary-light-3)}.video-card.last-clicked .card-title[data-v-c41f7fbb]{color:var(--color-primary-6)}.card-poster[data-v-c41f7fbb]{position:relative;width:100%;height:240px;overflow:hidden}.card-poster img[data-v-c41f7fbb]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.video-card:hover .card-poster img[data-v-c41f7fbb]{transform:scale(1.05)}.card-overlay[data-v-c41f7fbb]{position:absolute;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;gap:8px;opacity:0;transition:opacity .3s ease}.video-card:hover .card-overlay[data-v-c41f7fbb]{opacity:1}.play-btn[data-v-c41f7fbb]{background:var(--color-primary);border:none}.image-btn[data-v-c41f7fbb],.remove-btn[data-v-c41f7fbb],.delete-btn[data-v-c41f7fbb]{background:#ffffffe6;border:none;color:var(--color-text-1)}.remove-btn[data-v-c41f7fbb]:hover,.delete-btn[data-v-c41f7fbb]:hover{background:var(--color-danger);color:#fff}.card-info[data-v-c41f7fbb]{padding:16px}.card-title[data-v-c41f7fbb]{font-size:16px;font-weight:600;margin:0 0 8px;color:var(--color-text-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-meta[data-v-c41f7fbb]{display:flex;gap:4px;margin-bottom:8px;flex-wrap:wrap}.card-history[data-v-c41f7fbb]{margin-bottom:8px}.history-episode[data-v-c41f7fbb]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--color-primary);background:var(--color-primary-light-1);padding:4px 8px;border-radius:4px}.card-source[data-v-c41f7fbb]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--color-text-3);margin-bottom:4px}.card-time[data-v-c41f7fbb]{font-size:12px;color:var(--color-text-4)}.video-remarks-overlay[data-v-c41f7fbb]{position:absolute;top:4px;right:4px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:500;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 4px #0000004d;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.video-card.last-clicked .card-title[data-v-c41f7fbb]{color:var(--color-primary)}.api-manager[data-v-0286105d]{max-height:70vh;overflow-y:auto}.stats-section[data-v-0286105d]{margin:16px 0;padding:16px;background:var(--color-fill-1);border-radius:6px}.analysis-section[data-v-0286105d]{margin:16px 0}.analysis-section h3[data-v-0286105d]{margin-bottom:12px;font-size:16px;font-weight:600}.replacement-section[data-v-0286105d]{margin:16px 0;padding:16px;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-1)}.replacement-section h3[data-v-0286105d]{margin-bottom:16px;font-size:16px;font-weight:600}.preview-section[data-v-0286105d]{margin-top:8px}.action-buttons[data-v-0286105d]{margin-top:24px;text-align:right;border-top:1px solid var(--color-border-2);padding-top:16px}[data-v-0286105d] .arco-table-cell{padding:8px 12px!important}[data-v-0286105d] .arco-typography{margin-bottom:0!important}.collection-container[data-v-a6d3540f]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1)}.collection-header[data-v-a6d3540f]{display:flex;align-items:center;justify-content:space-between;padding:24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.header-left[data-v-a6d3540f]{display:flex;align-items:center;gap:12px}.page-title[data-v-a6d3540f]{font-size:24px;font-weight:700;color:var(--color-text-1);margin:0}.count-badge[data-v-a6d3540f]{margin-left:8px}.header-actions[data-v-a6d3540f]{display:flex;align-items:center;gap:16px}.filter-section[data-v-a6d3540f]{padding:16px 24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.filter-tabs[data-v-a6d3540f]{display:flex;gap:8px;flex-wrap:wrap}.collection-content[data-v-a6d3540f]{flex:1;padding:24px;overflow-y:auto}.empty-state[data-v-a6d3540f]{display:flex;align-items:center;justify-content:center;min-height:400px}.favorites-grid[data-v-a6d3540f]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}.danger-option[data-v-a6d3540f]{color:var(--color-danger-6)}@media (max-width: 1200px){.favorites-grid[data-v-a6d3540f]{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}}@media (max-width: 768px){.collection-header[data-v-a6d3540f]{flex-direction:column;gap:16px;align-items:stretch}.header-actions[data-v-a6d3540f]{flex-direction:column;gap:12px}.header-actions .arco-input-wrapper[data-v-a6d3540f]{width:100%!important}.filter-section[data-v-a6d3540f]{padding:12px 16px}.collection-content[data-v-a6d3540f]{padding:16px}.favorites-grid[data-v-a6d3540f]{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}}@media (max-width: 480px){.collection-header[data-v-a6d3540f]{padding:16px}.page-title[data-v-a6d3540f]{font-size:20px}.favorites-grid[data-v-a6d3540f]{grid-template-columns:1fr}}.viewer[data-v-a6d3540f]{display:none}.history-container[data-v-6d5a9ba3]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1)}.history-header[data-v-6d5a9ba3]{display:flex;align-items:center;justify-content:space-between;padding:24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.header-left[data-v-6d5a9ba3]{display:flex;align-items:center;gap:12px}.page-title[data-v-6d5a9ba3]{font-size:24px;font-weight:700;color:var(--color-text-1);margin:0}.count-badge[data-v-6d5a9ba3]{margin-left:8px}.header-actions[data-v-6d5a9ba3]{display:flex;align-items:center;gap:16px}.filter-section[data-v-6d5a9ba3]{padding:16px 24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.filter-tabs[data-v-6d5a9ba3]{display:flex;gap:8px;flex-wrap:wrap}.history-content[data-v-6d5a9ba3]{flex:1;padding:24px;overflow-y:auto}.empty-state[data-v-6d5a9ba3]{display:flex;align-items:center;justify-content:center;min-height:400px}.history-grid[data-v-6d5a9ba3]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}.danger-option[data-v-6d5a9ba3]{color:var(--color-danger-6)}@media (max-width: 1200px){.history-grid[data-v-6d5a9ba3]{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}}@media (max-width: 768px){.history-header[data-v-6d5a9ba3]{flex-direction:column;gap:16px;align-items:stretch}.header-actions[data-v-6d5a9ba3]{flex-direction:column;gap:12px}.header-actions .arco-input-wrapper[data-v-6d5a9ba3]{width:100%!important}.filter-section[data-v-6d5a9ba3]{padding:12px 16px}.history-content[data-v-6d5a9ba3]{padding:16px}.history-grid[data-v-6d5a9ba3]{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}}@media (max-width: 480px){.history-header[data-v-6d5a9ba3]{padding:16px}.page-title[data-v-6d5a9ba3]{font-size:20px}.history-grid[data-v-6d5a9ba3]{grid-template-columns:1fr}}.viewer[data-v-6d5a9ba3]{display:none}.history-trigger-btn[data-v-1b7cbbb7]{color:var(--color-text-3);transition:all .3s ease}.history-trigger-btn[data-v-1b7cbbb7]:hover{color:var(--color-primary-6);background-color:var(--color-primary-light-1)}.address-history-content[data-v-1b7cbbb7]{width:380px;max-height:400px;background:#fff;border-radius:8px;overflow:hidden}.history-header[data-v-1b7cbbb7]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.history-title[data-v-1b7cbbb7]{font-size:14px;font-weight:500;color:var(--color-text-1)}.history-count[data-v-1b7cbbb7]{font-size:12px;color:var(--color-text-3);background:var(--color-fill-2);padding:2px 6px;border-radius:4px}.empty-state[data-v-1b7cbbb7]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;color:var(--color-text-3)}.empty-icon[data-v-1b7cbbb7]{font-size:32px;margin-bottom:8px;opacity:.5}.empty-text[data-v-1b7cbbb7]{font-size:14px}.history-list[data-v-1b7cbbb7]{max-height:300px;overflow-y:auto}.history-item[data-v-1b7cbbb7]{display:flex;align-items:center;padding:12px 16px;cursor:pointer;transition:all .2s ease;border-bottom:1px solid var(--color-border-3)}.history-item[data-v-1b7cbbb7]:hover{background:var(--color-bg-2)}.history-item[data-v-1b7cbbb7]:last-child{border-bottom:none}.history-content[data-v-1b7cbbb7]{flex:1;min-width:0;margin-right:8px}.history-url[data-v-1b7cbbb7]{font-size:13px;color:var(--color-text-1);word-break:break-all;line-height:1.4;margin-bottom:4px}.history-time[data-v-1b7cbbb7]{font-size:11px;color:var(--color-text-3)}.delete-btn[data-v-1b7cbbb7]{color:var(--color-text-4);opacity:0;transition:all .2s ease}.history-item:hover .delete-btn[data-v-1b7cbbb7]{opacity:1}.delete-btn[data-v-1b7cbbb7]:hover{color:var(--color-danger-6);background-color:var(--color-danger-light-1)}.history-footer[data-v-1b7cbbb7]{padding:8px 16px;background:var(--color-bg-1);border-top:1px solid var(--color-border-2);text-align:center}.clear-all-btn[data-v-1b7cbbb7]{color:var(--color-text-3);font-size:12px}.clear-all-btn[data-v-1b7cbbb7]:hover{color:var(--color-danger-6);background-color:var(--color-danger-light-1)}.history-list[data-v-1b7cbbb7]::-webkit-scrollbar{width:4px}.history-list[data-v-1b7cbbb7]::-webkit-scrollbar-track{background:var(--color-bg-2)}.history-list[data-v-1b7cbbb7]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:2px}.history-list[data-v-1b7cbbb7]::-webkit-scrollbar-thumb:hover{background:var(--color-border-2)}.player-selector[data-v-47648913]{padding:16px 0}.player-list[data-v-47648913]{display:flex;flex-direction:column;gap:12px}.player-item[data-v-47648913]{display:flex;align-items:center;justify-content:space-between;padding:16px;border:2px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all .3s ease;background:#fff}.player-item[data-v-47648913]:hover{border-color:#3b82f6;background:#f8faff;transform:translateY(-2px);box-shadow:0 4px 12px #3b82f626}.player-item.active[data-v-47648913]{border-color:#3b82f6;background:linear-gradient(135deg,#f8faff,#eff6ff);box-shadow:0 4px 16px #3b82f633}.player-info[data-v-47648913]{display:flex;align-items:center;gap:16px}.player-icon[data-v-47648913]{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;color:#fff;font-size:24px}.player-item.active .player-icon[data-v-47648913]{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.player-details[data-v-47648913]{flex:1}.player-name[data-v-47648913]{font-size:16px;font-weight:600;color:#1f2937;margin-bottom:4px}.player-desc[data-v-47648913]{font-size:14px;color:#6b7280;line-height:1.4}.player-check[data-v-47648913]{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.check-icon[data-v-47648913]{font-size:24px;color:#3b82f6}@media (max-width: 640px){.player-item[data-v-47648913]{padding:12px}.player-icon[data-v-47648913]{width:40px;height:40px;font-size:20px}.player-info[data-v-47648913]{gap:12px}.player-name[data-v-47648913]{font-size:15px}.player-desc[data-v-47648913]{font-size:13px}}.backup-restore-container[data-v-fba616ca]{padding:4px 0}.section-title[data-v-fba616ca]{display:flex;align-items:center;font-size:16px;font-weight:600;color:var(--color-text-1);margin-bottom:8px}.title-icon[data-v-fba616ca]{margin-right:6px;color:var(--color-primary)}.stats-section[data-v-fba616ca]{margin-bottom:16px}.stats-grid[data-v-fba616ca]{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:8px}.stat-item[data-v-fba616ca]{text-align:center;padding:8px 4px;background:var(--color-bg-2);border-radius:6px;border:1px solid var(--color-border-2)}.stat-value[data-v-fba616ca]{font-size:18px;font-weight:600;color:var(--color-primary);margin-bottom:2px;line-height:1.2}.stat-label[data-v-fba616ca]{font-size:11px;color:var(--color-text-3);line-height:1.2}.data-size[data-v-fba616ca]{text-align:center;font-size:12px;color:var(--color-text-2);padding:6px;background:var(--color-bg-1);border-radius:4px;line-height:1.2}.operation-section[data-v-fba616ca]{margin-bottom:16px}.operation-content[data-v-fba616ca]{background:var(--color-bg-1);padding:12px;border-radius:8px;border:1px solid var(--color-border-2)}.operation-desc[data-v-fba616ca]{margin-bottom:10px;color:var(--color-text-2);line-height:1.3;font-size:13px}.restore-actions[data-v-fba616ca]{display:flex;flex-direction:column;gap:8px;margin-bottom:10px;align-items:flex-start}.selected-file[data-v-fba616ca]{display:flex;align-items:center;padding:8px;background:var(--color-bg-2);border-radius:6px;border:1px solid var(--color-border-2)}.file-icon[data-v-fba616ca]{margin-right:6px;color:var(--color-primary)}.file-name[data-v-fba616ca]{flex:1;font-size:13px;color:var(--color-text-1);word-break:break-all;line-height:1.3}.warning-section[data-v-fba616ca]{margin-top:12px}.warning-list[data-v-fba616ca]{margin:4px 0 0;padding-left:16px}.warning-list li[data-v-fba616ca]{margin-bottom:2px;color:var(--color-text-2);font-size:12px;line-height:1.3}.custom-file-list[data-v-fba616ca]{margin-top:8px}.restore-actions .arco-upload-list[data-v-fba616ca],.restore-actions .arco-upload-list-item[data-v-fba616ca]{display:none!important}.custom-upload-item[data-v-fba616ca]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--color-fill-2);border-radius:4px;margin-top:6px;min-height:36px}.file-info[data-v-fba616ca]{display:flex;align-items:center;flex:1;min-height:20px}.file-icon[data-v-fba616ca]{margin-right:6px;color:var(--color-text-3);font-size:14px}.file-name[data-v-fba616ca]{color:var(--color-text-1);font-weight:500;margin-right:6px;line-height:1.3;font-size:13px}.file-size[data-v-fba616ca]{color:var(--color-text-3);font-size:11px;line-height:1.3}.remove-btn[data-v-fba616ca]{color:var(--color-text-3);display:flex;align-items:center;justify-content:center;min-width:20px;min-height:20px}.remove-btn[data-v-fba616ca]:hover{color:var(--color-danger)}@media (max-width: 768px){.stats-grid[data-v-fba616ca]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 480px){.stats-grid[data-v-fba616ca]{grid-template-columns:repeat(2,1fr)}}.about-content[data-v-2955a8d5]{display:flex;flex-direction:column;height:100%}.about-header[data-v-2955a8d5]{display:flex;align-items:center;gap:20px;padding:24px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border-radius:12px 12px 0 0}.about-logo[data-v-2955a8d5]{display:flex;align-items:center;justify-content:center;width:64px;height:64px;background:#fff3;border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.logo-icon[data-v-2955a8d5]{font-size:32px;color:#fff}.about-title-section[data-v-2955a8d5]{flex:1}.about-title[data-v-2955a8d5]{font-size:28px;font-weight:700;margin:0 0 8px;color:#fff}.about-subtitle[data-v-2955a8d5]{font-size:16px;margin:0 0 12px;color:#ffffffe6;font-weight:400}.about-version[data-v-2955a8d5]{display:flex;align-items:center;gap:8px}.version-badge[data-v-2955a8d5]{background:#fff3;color:#fff;padding:4px 12px;border-radius:20px;font-size:14px;font-weight:600;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.about-scroll-content[data-v-2955a8d5]{flex:1;overflow-y:auto;padding:24px;max-height:calc(60vh - 140px)}.about-section[data-v-2955a8d5]{margin-bottom:32px}.about-section[data-v-2955a8d5]:last-child{margin-bottom:0}.section-title[data-v-2955a8d5]{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:600;color:#1e293b;margin:0 0 16px}.section-icon[data-v-2955a8d5]{font-size:20px;color:#6366f1}.section-content[data-v-2955a8d5]{font-size:14px;line-height:1.6;color:#64748b;margin:0}.features-grid[data-v-2955a8d5]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-top:16px}.feature-item[data-v-2955a8d5]{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#6366f10d;border-radius:12px;border:1px solid rgba(99,102,241,.1)}.feature-icon[data-v-2955a8d5]{font-size:20px;color:#6366f1;margin-top:2px;flex-shrink:0}.feature-text h4[data-v-2955a8d5]{font-size:14px;font-weight:600;color:#1e293b;margin:0 0 4px}.feature-text p[data-v-2955a8d5]{font-size:13px;color:#64748b;margin:0;line-height:1.4}.tech-stack[data-v-2955a8d5]{display:flex;flex-direction:column;gap:20px;margin-top:16px}.tech-category h4[data-v-2955a8d5]{font-size:14px;font-weight:600;color:#1e293b;margin:0 0 8px}.tech-tags[data-v-2955a8d5]{display:flex;flex-wrap:wrap;gap:8px}.tech-tag[data-v-2955a8d5]{background:linear-gradient(135deg,#f1f5f9,#e2e8f0);color:#475569;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:500;border:1px solid rgba(0,0,0,.05)}.links-section[data-v-2955a8d5]{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}.about-link[data-v-2955a8d5]{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#6366f11a;color:#6366f1;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;transition:all .3s ease;border:1px solid rgba(99,102,241,.2)}.about-link[data-v-2955a8d5]:hover{background:#6366f126;transform:translateY(-1px)}.link-icon[data-v-2955a8d5]{font-size:16px}.about-footer[data-v-2955a8d5]{text-align:center;padding:20px 0;border-top:1px solid #e2e8f0;margin-top:24px}.about-footer p[data-v-2955a8d5]{font-size:13px;color:#64748b;margin:4px 0}@media (max-width: 768px){.about-header[data-v-2955a8d5]{flex-direction:column;text-align:center;gap:16px}.features-grid[data-v-2955a8d5]{grid-template-columns:1fr}.links-section[data-v-2955a8d5]{flex-direction:column}.about-link[data-v-2955a8d5]{justify-content:center}}.scroll-to-bottom-btn[data-v-84fbc664]{position:fixed;right:var(--v52f4c3b6);bottom:var(--v1e9e685e);width:48px;height:48px;background:#6366f1;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px #6366f14d;transition:all .3s ease;z-index:1000;-webkit-user-select:none;-moz-user-select:none;user-select:none}.scroll-to-bottom-btn[data-v-84fbc664]:hover{background:#5855eb;transform:translateY(-2px);box-shadow:0 6px 16px #6366f166}.scroll-to-bottom-btn[data-v-84fbc664]:active{transform:translateY(0);box-shadow:0 2px 8px #6366f14d}.scroll-btn-icon[data-v-84fbc664]{font-size:20px;color:#fff;transition:transform .3s ease}.scroll-to-bottom-btn:hover .scroll-btn-icon[data-v-84fbc664]{transform:translateY(2px)}.scroll-btn-fade-enter-active[data-v-84fbc664],.scroll-btn-fade-leave-active[data-v-84fbc664]{transition:all .3s ease}.scroll-btn-fade-enter-from[data-v-84fbc664],.scroll-btn-fade-leave-to[data-v-84fbc664]{opacity:0;transform:translateY(20px) scale(.8)}.scroll-btn-fade-enter-to[data-v-84fbc664],.scroll-btn-fade-leave-from[data-v-84fbc664]{opacity:1;transform:translateY(0) scale(1)}.settings-container[data-v-246da4da]{height:100%;display:flex;flex-direction:column;overflow:hidden}.simple-header[data-v-246da4da]{display:flex;align-items:center;width:100%;padding:16px 20px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border-2);box-sizing:border-box;flex-shrink:0}.navigation-title[data-v-246da4da]{font-size:16px;font-weight:600;color:var(--color-text-1);white-space:nowrap}.settings-content[data-v-246da4da]{flex:1;width:100%;max-width:none;margin:0;padding:20px 24px 40px;display:flex;flex-direction:column;gap:24px;overflow-y:auto;box-sizing:border-box;max-height:calc(100vh - 120px)}.settings-card[data-v-246da4da]{width:100%;height:auto;border-radius:16px;box-shadow:0 8px 32px #0000001a;border:1px solid rgba(255,255,255,.2);background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .3s ease;overflow:visible;box-sizing:border-box}.settings-card[data-v-246da4da]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.settings-card[data-v-246da4da] .arco-card-header{background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-bottom:1px solid rgba(0,0,0,.05);padding:20px 24px}.settings-card[data-v-246da4da] .arco-card-header-title{font-size:18px;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:12px}.card-icon[data-v-246da4da]{font-size:20px;color:#6366f1}.settings-card[data-v-246da4da] .arco-card{height:auto}.settings-card[data-v-246da4da] .arco-card-body{padding:24px;height:auto}.config-card[data-v-246da4da]{background:linear-gradient(135deg,#6366f10d,#8b5cf60d)}.config-section[data-v-246da4da]{display:flex;flex-direction:column;gap:20px;height:auto;min-height:auto}.config-input-group[data-v-246da4da]{display:flex;gap:12px;align-items:flex-start;width:100%;max-width:100%;overflow:hidden;box-sizing:border-box}.config-input[data-v-246da4da]{flex:1;min-width:0;max-width:calc(100% - 180px);overflow:hidden}.config-input[data-v-246da4da] .arco-input{border-radius:12px;border:2px solid #e2e8f0;transition:all .3s ease;font-size:14px}.config-input[data-v-246da4da] .arco-input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.config-actions[data-v-246da4da]{display:flex;gap:8px;flex-shrink:0;max-width:170px;overflow:hidden}.config-actions .arco-btn[data-v-246da4da]{border-radius:12px;font-weight:500;min-width:80px;transition:all .3s ease}.config-actions .arco-btn-primary[data-v-246da4da]{background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none}.config-actions .arco-btn-primary[data-v-246da4da]:hover{background:linear-gradient(135deg,#5b5bd6,#7c3aed);transform:translateY(-1px)}.config-actions .arco-btn-outline[data-v-246da4da]{border:2px solid #e2e8f0;color:#64748b}.config-actions .arco-btn-outline[data-v-246da4da]:hover{border-color:#6366f1;color:#6366f1;background:#6366f10d}.config-status[data-v-246da4da]{margin-top:12px}.config-message[data-v-246da4da]{display:flex;align-items:center;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:500;border:1px solid;background-color:#ffffffe6}.config-message-success[data-v-246da4da]{color:#00b42a;background-color:#00b42a1a;border-color:#00b42a4d}.config-message-error[data-v-246da4da]{color:#f53f3f;background-color:#f53f3f1a;border-color:#f53f3f4d}.config-message-warning[data-v-246da4da]{color:#ff7d00;background-color:#ff7d001a;border-color:#ff7d004d}.config-icon[data-v-246da4da]{margin-right:8px;font-size:16px;flex-shrink:0}.config-text[data-v-246da4da]{flex:1;line-height:1.5}.settings-grid[data-v-246da4da]{display:flex;flex-direction:column;gap:12px;height:auto;min-height:auto}.setting-item[data-v-246da4da]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#ffffffb3;border:1px solid rgba(0,0,0,.05);border-radius:12px;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden;width:100%;max-width:100%;min-width:0;box-sizing:border-box}.setting-item[data-v-246da4da]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(135deg,#6366f1,#8b5cf6);transform:scaleY(0);transition:transform .3s ease}.setting-item[data-v-246da4da]:hover{background:#ffffffe6;border-color:#6366f133;transform:translate(4px)}.setting-item[data-v-246da4da]:hover:before{transform:scaleY(1)}.setting-info[data-v-246da4da]{display:flex;align-items:center;gap:16px;flex:1;min-width:0;max-width:calc(100% - 120px);overflow:hidden}.setting-icon[data-v-246da4da]{font-size:20px;color:#6366f1;background:#6366f11a;padding:8px;border-radius:8px;flex-shrink:0}.setting-text[data-v-246da4da]{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.setting-title[data-v-246da4da]{font-size:16px;font-weight:600;color:#1e293b;line-height:1.2;word-wrap:break-word;overflow-wrap:break-word}.setting-desc[data-v-246da4da]{font-size:13px;color:#64748b;line-height:1.3;word-wrap:break-word;overflow-wrap:break-word}.setting-value[data-v-246da4da]{display:flex;align-items:center;gap:12px;flex-shrink:0;max-width:110px;overflow:hidden}.value-text[data-v-246da4da]{font-size:14px;color:#475569;font-weight:500;background:#6366f11a;padding:4px 12px;border-radius:20px}.arrow-icon[data-v-246da4da]{font-size:16px;color:#94a3b8;transition:all .3s ease}.setting-item:hover .arrow-icon[data-v-246da4da]{color:#6366f1;transform:translate(2px)}.setting-value[data-v-246da4da] .arco-switch{background:#e2e8f0}.setting-value[data-v-246da4da] .arco-switch.arco-switch-checked{background:linear-gradient(135deg,#6366f1,#8b5cf6)}.address-settings-section[data-v-246da4da]{display:flex;flex-direction:column;gap:20px}.address-config-item[data-v-246da4da]{padding:16px;background:#ffffffb3;border:1px solid rgba(0,0,0,.05);border-radius:12px;transition:all .3s ease}.address-config-item[data-v-246da4da]:hover{background:#ffffffe6;border-color:#6366f133;transform:translateY(-2px);box-shadow:0 4px 20px #0000001a}.address-config-row[data-v-246da4da]{display:flex;align-items:center;gap:16px}.address-config-info[data-v-246da4da]{display:flex;align-items:center;gap:12px;min-width:200px;flex-shrink:0}.address-config-icon[data-v-246da4da]{font-size:18px;color:#6366f1;background:#6366f11a;padding:8px;border-radius:8px;flex-shrink:0}.address-config-text[data-v-246da4da]{display:flex;flex-direction:column;gap:4px}.address-config-title[data-v-246da4da]{font-size:15px;font-weight:600;color:#1e293b;line-height:1.2}.address-config-desc[data-v-246da4da]{font-size:13px;color:#64748b;line-height:1.3}.address-config-input-group[data-v-246da4da]{display:flex;align-items:center;gap:12px;flex:1}.address-config-switch[data-v-246da4da]{flex-shrink:0}.address-config-input[data-v-246da4da]{flex:1;min-width:200px}.address-config-input[data-v-246da4da] .arco-input{border-radius:8px;border:1px solid #e2e8f0;background:#ffffffe6;transition:all .3s ease}.address-config-input[data-v-246da4da] .arco-input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.address-config-input[data-v-246da4da] .arco-input:disabled{background:#f8fafc;color:#94a3b8}.address-config-actions[data-v-246da4da]{display:flex;align-items:center;gap:8px;flex-shrink:0}.address-config-actions[data-v-246da4da] .arco-btn{border-radius:8px;font-weight:500;transition:all .3s ease}.address-config-actions[data-v-246da4da] .arco-btn-primary{background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none}.address-config-actions[data-v-246da4da] .arco-btn-primary:hover{background:linear-gradient(135deg,#5855eb,#7c3aed);transform:translateY(-1px);box-shadow:0 4px 12px #6366f14d}.address-config-actions[data-v-246da4da] .arco-btn-outline{border-color:#e2e8f0;color:#6366f1}.address-config-actions[data-v-246da4da] .arco-btn-outline:hover{border-color:#6366f1;background:#6366f10d}.address-config-status[data-v-246da4da]{margin-top:8px}.address-config-switch[data-v-246da4da] .arco-switch{background:#e2e8f0}.address-config-switch[data-v-246da4da] .arco-switch.arco-switch-checked{background:linear-gradient(135deg,#6366f1,#8b5cf6)}@media (max-width: 768px){.settings-content[data-v-246da4da]{padding:16px 16px 24px;gap:16px}.config-input-group[data-v-246da4da]{flex-direction:column;gap:12px;align-items:stretch}.config-input[data-v-246da4da]{width:100%;max-width:100%}.config-actions[data-v-246da4da]{width:100%;max-width:100%;justify-content:stretch;flex-direction:row}.config-actions .arco-btn[data-v-246da4da]{flex:1;min-width:0}.setting-item[data-v-246da4da]{padding:14px 16px}.setting-info[data-v-246da4da]{gap:12px;max-width:calc(100% - 80px)}.setting-icon[data-v-246da4da]{font-size:18px;padding:6px}.setting-title[data-v-246da4da]{font-size:15px}.setting-desc[data-v-246da4da]{font-size:12px}}@media (max-width: 480px){.config-actions[data-v-246da4da]{flex-direction:column;gap:8px}.config-actions .arco-btn[data-v-246da4da]{width:100%;flex:none}.setting-item[data-v-246da4da]{flex-direction:column;align-items:flex-start;gap:12px}.setting-value[data-v-246da4da]{width:100%;max-width:100%;justify-content:space-between}}.book-gallery-container[data-v-d9f7ceb3]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1)}.book-gallery-header[data-v-d9f7ceb3]{display:flex;align-items:center;justify-content:space-between;padding:24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.header-left[data-v-d9f7ceb3]{display:flex;align-items:center;gap:12px}.page-title[data-v-d9f7ceb3]{font-size:24px;font-weight:700;color:var(--color-text-1);margin:0}.count-badge[data-v-d9f7ceb3]{margin-left:8px}.header-actions[data-v-d9f7ceb3]{display:flex;align-items:center;gap:16px}.filter-section[data-v-d9f7ceb3]{padding:16px 24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.filter-container[data-v-d9f7ceb3]{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.filter-tabs[data-v-d9f7ceb3]{display:flex;gap:8px;flex-wrap:wrap}.book-gallery-content[data-v-d9f7ceb3]{flex:1;padding:24px;overflow-y:auto}.empty-state[data-v-d9f7ceb3]{display:flex;align-items:center;justify-content:center;min-height:400px}.books-grid[data-v-d9f7ceb3]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}.danger-option[data-v-d9f7ceb3]{color:var(--color-danger-6)}.storage-stats[data-v-d9f7ceb3]{flex-shrink:0}.storage-info[data-v-d9f7ceb3]{max-width:300px;min-width:250px}.storage-header[data-v-d9f7ceb3]{display:flex;align-items:center;gap:8px;margin-bottom:12px}.storage-icon[data-v-d9f7ceb3]{font-size:16px;color:var(--color-text-2)}.storage-title[data-v-d9f7ceb3]{font-size:14px;font-weight:500;color:var(--color-text-1)}.storage-progress[data-v-d9f7ceb3]{margin-bottom:8px}.storage-details[data-v-d9f7ceb3]{display:flex;gap:16px;font-size:12px;color:var(--color-text-3)}.storage-used[data-v-d9f7ceb3]{color:var(--color-text-2)}.storage-available[data-v-d9f7ceb3]{color:var(--color-success-6)}.storage-total[data-v-d9f7ceb3]{color:var(--color-text-3)}@media (max-width: 1200px){.books-grid[data-v-d9f7ceb3]{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}}@media (max-width: 768px){.book-gallery-header[data-v-d9f7ceb3]{flex-direction:column;gap:16px;align-items:stretch}.header-actions[data-v-d9f7ceb3]{flex-direction:column;gap:12px}.header-actions .arco-input-wrapper[data-v-d9f7ceb3]{width:100%!important}.filter-section[data-v-d9f7ceb3]{padding:12px 16px}.filter-container[data-v-d9f7ceb3]{flex-direction:column;gap:16px}.storage-info[data-v-d9f7ceb3]{max-width:none;min-width:auto}.book-gallery-content[data-v-d9f7ceb3]{padding:16px}.books-grid[data-v-d9f7ceb3]{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}}@media (max-width: 480px){.book-gallery-header[data-v-d9f7ceb3]{padding:16px}.page-title[data-v-d9f7ceb3]{font-size:20px}.books-grid[data-v-d9f7ceb3]{grid-template-columns:1fr}}.viewer[data-v-d9f7ceb3]{display:none}.action-test-container[data-v-274d770e]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1);overflow:hidden}.test-header[data-v-274d770e]{position:sticky;top:0;z-index:10;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2);padding:24px 32px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content[data-v-274d770e]{width:100%;margin:0;display:flex;justify-content:space-between;align-items:flex-start}.header-left[data-v-274d770e]{flex:1}.page-title[data-v-274d770e]{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px}.nav-button-group[data-v-274d770e]{max-width:-moz-fit-content;max-width:fit-content;max-height:200px;overflow-y:auto;padding:4px;border-radius:8px;background:var(--color-bg-2);border:1px solid var(--color-border-2)}.nav-button-grid[data-v-274d770e]{display:grid;grid-template-columns:auto auto;gap:6px;padding:6px;justify-content:start}.nav-grid-button[data-v-274d770e]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-button[data-v-274d770e]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f;background:var(--color-bg-3);border-color:var(--color-primary-6)}.nav-grid-button span[data-v-274d770e]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-grid-placeholder[data-v-274d770e]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;background:var(--color-bg-3);border:1px dashed var(--color-border-3);border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-placeholder[data-v-274d770e]:hover{border-color:var(--color-primary-6);background:var(--color-primary-1)}.placeholder-text[data-v-274d770e]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-4);text-align:center}.title-icon[data-v-274d770e]{font-size:32px;color:var(--color-primary-6)}.page-subtitle[data-v-274d770e]{color:var(--color-text-3);font-size:16px;margin:0;line-height:1.5}.test-content[data-v-274d770e]{flex:1;overflow-y:auto;padding:32px;width:100%;margin:0}.test-section[data-v-274d770e]{margin-bottom:32px;padding:24px;background:var(--color-bg-2);border-radius:12px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;transition:all .3s ease}.test-section[data-v-274d770e]:hover{box-shadow:0 4px 16px #00000014;border-color:var(--color-border-3)}.test-section h2[data-v-274d770e]{color:var(--color-text-1);margin-bottom:20px;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}.test-section h2[data-v-274d770e]:before{content:"";width:4px;height:20px;background:var(--color-primary-6);border-radius:2px}.test-buttons[data-v-274d770e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.status-info[data-v-274d770e]{background:var(--color-bg-2);padding:24px;border-radius:12px;margin-bottom:32px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.status-item[data-v-274d770e]{display:flex;justify-content:space-between;align-items:center;padding:16px;background:var(--color-bg-1);border-radius:8px;border:1px solid var(--color-border-1);transition:all .2s ease}.status-item[data-v-274d770e]:hover{background:var(--color-bg-3);border-color:var(--color-border-2);transform:translateY(-1px);box-shadow:0 2px 8px #00000014}.status-item label[data-v-274d770e]{font-weight:600;color:var(--color-text-1);font-size:14px}.status-item span[data-v-274d770e]{color:var(--color-primary-6);font-weight:600;font-size:16px}.status-buttons[data-v-274d770e]{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.result-area[data-v-274d770e]{max-height:500px;overflow-y:auto;background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:12px;margin-bottom:32px;padding:24px;box-shadow:0 2px 8px #0000000a}.result-item[data-v-274d770e]{display:grid;grid-template-columns:80px 120px 80px 1fr;gap:12px;padding:16px;border-bottom:1px solid var(--color-border-1);font-size:13px;background:var(--color-bg-1);border-radius:8px;margin-bottom:8px;transition:all .2s ease}.result-item[data-v-274d770e]:hover{background:var(--color-bg-3);transform:translate(2px);box-shadow:0 2px 8px #0000000f}.result-item[data-v-274d770e]:last-child{border-bottom:none;margin-bottom:0}.result-time[data-v-274d770e]{color:#6c757d}.result-type[data-v-274d770e]{font-weight:500;color:#495057}.result-status[data-v-274d770e]{font-weight:500}.result-status.success[data-v-274d770e]{color:#28a745}.result-status.error[data-v-274d770e]{color:#dc3545}.result-data[data-v-274d770e]{color:#6c757d;word-break:break-all;max-height:60px;overflow:hidden}.debug-area[data-v-274d770e]{background:#f8f9fa;border-radius:8px;padding:20px;margin-top:16px}.debug-input-section[data-v-274d770e]{margin-bottom:24px}.debug-input-section h3[data-v-274d770e]{color:#495057;margin-bottom:12px;font-size:16px}.debug-description[data-v-274d770e]{color:#6c757d;margin-bottom:12px;font-size:14px}.debug-textarea[data-v-274d770e]{font-family:Courier New,monospace;font-size:13px}.debug-buttons[data-v-274d770e]{margin-top:12px;display:flex;gap:12px}.debug-result-section[data-v-274d770e]{margin-bottom:24px;padding:16px;background:#fff;border-radius:6px;border:1px solid #dee2e6}.debug-result-section h3[data-v-274d770e]{color:#495057;margin-bottom:16px;font-size:16px}.debug-status[data-v-274d770e]{margin-bottom:16px}.debug-label[data-v-274d770e]{font-weight:600;color:#495057}.debug-success[data-v-274d770e]{color:#28a745;font-weight:600}.debug-error[data-v-274d770e]{color:#dc3545;font-weight:600}.debug-success-content h4[data-v-274d770e],.debug-error-content h4[data-v-274d770e]{color:#495057;margin:20px 0 12px;font-size:14px}.debug-json[data-v-274d770e]{background:#f8f9fa;padding:12px;border-radius:4px;overflow-x:auto;font-size:12px;font-family:Courier New,monospace;border:1px solid #e9ecef;margin-bottom:16px}.debug-fields[data-v-274d770e]{margin-bottom:16px}.debug-field[data-v-274d770e]{padding:6px 0;display:flex;align-items:center;gap:8px}.debug-field-label[data-v-274d770e]{font-weight:600;color:#495057;min-width:80px}.debug-field-value[data-v-274d770e]{background:#f8f9fa;padding:2px 8px;border-radius:3px;font-family:Courier New,monospace;font-size:12px;border:1px solid #e9ecef}.debug-test-section[data-v-274d770e]{margin-top:16px}.debug-error-content[data-v-274d770e]{color:#721c24}.debug-error-message[data-v-274d770e]{background:#f8d7da;padding:12px;border-radius:4px;color:#721c24;font-family:Courier New,monospace;font-size:12px;border:1px solid #f5c6cb}.debug-error-section[data-v-274d770e]{padding:16px;background:#f8d7da;border-radius:6px;border:1px solid #f5c6cb}.debug-error-section h4[data-v-274d770e]{color:#721c24;margin-bottom:12px;font-size:14px}.custom-action-style{--action-color-primary: #e91e63;--action-color-primary-light: #f8bbd9}.custom-style-example[data-v-274d770e]{background:linear-gradient(135deg,var(--color-primary-6) 0%,var(--color-primary-7) 100%);color:#fff;padding:24px;border-radius:12px;margin:24px 0;text-align:center;box-shadow:0 4px 16px rgba(var(--primary-6),.2)}.custom-style-example h4[data-v-274d770e]{margin:0 0 12px;font-size:20px;font-weight:600}.custom-style-example p[data-v-274d770e]{margin:0;opacity:.9;font-size:16px;line-height:1.5}.test-content[data-v-274d770e]::-webkit-scrollbar,.result-area[data-v-274d770e]::-webkit-scrollbar{width:6px}.test-content[data-v-274d770e]::-webkit-scrollbar-track,.result-area[data-v-274d770e]::-webkit-scrollbar-track{background:var(--color-bg-2);border-radius:3px}.test-content[data-v-274d770e]::-webkit-scrollbar-thumb,.result-area[data-v-274d770e]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:3px}.test-content[data-v-274d770e]::-webkit-scrollbar-thumb:hover,.result-area[data-v-274d770e]::-webkit-scrollbar-thumb:hover{background:var(--color-border-4)}@media (max-width: 1024px){.test-content[data-v-274d770e]{padding:24px}.test-buttons[data-v-274d770e]{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}}@media (max-width: 768px){.test-header[data-v-274d770e]{padding:20px 24px}.page-title[data-v-274d770e]{font-size:24px}.title-icon[data-v-274d770e]{font-size:28px}.test-content[data-v-274d770e]{padding:20px}.test-buttons[data-v-274d770e]{grid-template-columns:1fr;gap:12px}.test-section[data-v-274d770e]{padding:20px}.status-info[data-v-274d770e]{grid-template-columns:1fr;gap:12px}.status-buttons[data-v-274d770e]{flex-direction:column;gap:8px}.result-item[data-v-274d770e]{grid-template-columns:1fr;gap:8px;font-size:12px}}@media (max-width: 480px){.test-header[data-v-274d770e]{padding:16px 20px}.page-title[data-v-274d770e]{font-size:20px;flex-direction:column;gap:8px;text-align:center}.test-content[data-v-274d770e]{padding:16px}.test-section[data-v-274d770e]{padding:16px;margin-bottom:24px}.status-info[data-v-274d770e],.result-area[data-v-274d770e]{padding:16px}}.action-debug-test[data-v-253ba4a6]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1);overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.debug-header[data-v-253ba4a6]{position:sticky;top:0;z-index:10;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2);padding:24px 32px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content[data-v-253ba4a6]{width:100%;margin:0;display:flex;justify-content:space-between;align-items:flex-start}.header-left[data-v-253ba4a6]{flex:1}.page-title[data-v-253ba4a6]{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px}.title-icon[data-v-253ba4a6]{font-size:32px;color:var(--color-primary-6)}.page-subtitle[data-v-253ba4a6]{color:var(--color-text-3);font-size:16px;margin:0;line-height:1.5}.nav-button-group[data-v-253ba4a6]{max-width:-moz-fit-content;max-width:fit-content;background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:8px;box-shadow:0 2px 8px #0000000a}.nav-button-grid[data-v-253ba4a6]{display:grid;grid-template-columns:auto auto;gap:6px;padding:6px;justify-content:start}.nav-grid-button[data-v-253ba4a6]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-button[data-v-253ba4a6]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f;background:var(--color-bg-3);border-color:var(--color-primary-6)}.nav-grid-button span[data-v-253ba4a6]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-grid-placeholder[data-v-253ba4a6]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;background:var(--color-bg-3);border:1px dashed var(--color-border-3);border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-placeholder[data-v-253ba4a6]:hover{border-color:var(--color-primary-6);background:var(--color-primary-1)}.placeholder-text[data-v-253ba4a6]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-4);text-align:center}.debug-content[data-v-253ba4a6]{flex:1;overflow-y:auto;padding:32px;width:100%;margin:0}.debug-sections[data-v-253ba4a6]{display:flex;flex-direction:column;gap:30px}.debug-section[data-v-253ba4a6]{margin-bottom:32px;padding:24px;background:var(--color-bg-2);border-radius:12px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;transition:all .3s ease}.debug-section[data-v-253ba4a6]:hover{box-shadow:0 4px 16px #00000014;border-color:var(--color-border-3)}.debug-section h2[data-v-253ba4a6]{color:var(--color-text-1);margin-bottom:20px;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}.debug-section h2[data-v-253ba4a6]:before{content:"";width:4px;height:20px;background:var(--color-primary-6);border-radius:2px}.debug-section p[data-v-253ba4a6]{color:var(--color-text-3);margin-bottom:15px}.debug-textarea[data-v-253ba4a6]{width:100%;min-height:120px;padding:12px;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-1);color:var(--color-text-1);font-family:Courier New,monospace;font-size:12px;resize:vertical;margin-bottom:15px}.debug-result[data-v-253ba4a6]{margin-top:15px}.debug-result h3[data-v-253ba4a6]{color:var(--color-text-1);margin-bottom:15px}.debug-result h4[data-v-253ba4a6]{color:var(--color-text-2);margin:20px 0 10px;font-size:16px}.debug-json[data-v-253ba4a6]{background:var(--color-bg-1);border:1px solid var(--color-border-2);border-radius:6px;padding:15px;font-family:Courier New,monospace;font-size:12px;overflow-x:auto;color:var(--color-text-1)}.debug-fields[data-v-253ba4a6],.debug-validation[data-v-253ba4a6]{list-style:none;padding:0;margin:0}.debug-fields li[data-v-253ba4a6],.debug-validation li[data-v-253ba4a6]{padding:8px 0;border-bottom:1px solid var(--color-border-3);color:var(--color-text-2)}.debug-fields code[data-v-253ba4a6]{background:var(--color-bg-1);padding:2px 6px;border-radius:3px;font-family:Courier New,monospace;color:var(--color-text-1)}.success[data-v-253ba4a6]{color:#52c41a;font-weight:700}.error[data-v-253ba4a6]{color:#f5222d;font-weight:700}.debug-error[data-v-253ba4a6]{background:#fff2f0;border:1px solid #ffccc7;border-radius:6px;padding:15px;color:#f5222d;font-family:Courier New,monospace;font-size:12px;overflow-x:auto}.debug-error-box[data-v-253ba4a6]{margin-top:15px;padding:15px;background:#fff2f0;border:1px solid #ffccc7;border-radius:6px}.debug-error-box h4[data-v-253ba4a6]{color:#f5222d;margin-bottom:10px}.preset-buttons[data-v-253ba4a6]{display:flex;gap:10px;flex-wrap:wrap}.integration-test-subsection[data-v-253ba4a6]{margin-top:30px;padding:20px;border:1px solid var(--color-border-3);border-radius:6px;background:var(--color-bg-1)}.integration-test-subsection h3[data-v-253ba4a6]{color:var(--color-text-1);margin-bottom:10px;font-size:16px;font-weight:600}.integration-test-subsection p[data-v-253ba4a6]{color:var(--color-text-3);margin-bottom:15px;font-size:14px}.action-toast[data-v-253ba4a6]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:12px 24px;border-radius:6px;color:#fff;font-weight:500;z-index:9999;max-width:80%;text-align:center;box-shadow:0 4px 12px #00000026}.action-toast.success[data-v-253ba4a6]{background-color:#52c41a}.action-toast.error[data-v-253ba4a6]{background-color:#f5222d}.action-toast.warning[data-v-253ba4a6]{background-color:#faad14}.action-toast.info[data-v-253ba4a6]{background-color:#1890ff}.action-toast-enter-active[data-v-253ba4a6],.action-toast-leave-active[data-v-253ba4a6]{transition:all .3s ease}.action-toast-enter-from[data-v-253ba4a6],.action-toast-leave-to[data-v-253ba4a6]{opacity:0;transform:translate(-50%,-50%) scale(.8)}.integration-test-subsection[data-v-253ba4a6]:first-child{margin-top:20px}.video-test-container[data-v-fab87f30]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1);overflow:hidden}.test-header[data-v-fab87f30]{position:sticky;top:0;z-index:10;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2);padding:24px 32px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content[data-v-fab87f30]{width:100%;margin:0;display:flex;justify-content:space-between;align-items:flex-start}.header-left[data-v-fab87f30]{flex:1}.page-title[data-v-fab87f30]{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px}.nav-button-group[data-v-fab87f30]{max-width:-moz-fit-content;max-width:fit-content;max-height:200px;overflow-y:auto;padding:4px;border-radius:8px;background:var(--color-bg-2);border:1px solid var(--color-border-2)}.nav-button-grid[data-v-fab87f30]{display:grid;grid-template-columns:auto auto;gap:6px;padding:6px;justify-content:start}.nav-grid-button[data-v-fab87f30]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-button[data-v-fab87f30]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f;background:var(--color-bg-3);border-color:var(--color-primary-6)}.nav-grid-button span[data-v-fab87f30]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-grid-placeholder[data-v-fab87f30]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;background:var(--color-bg-3);border:1px dashed var(--color-border-3);border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-placeholder[data-v-fab87f30]:hover{border-color:var(--color-primary-6);background:var(--color-primary-1)}.placeholder-text[data-v-fab87f30]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-4);text-align:center}.title-icon[data-v-fab87f30]{font-size:32px;color:var(--color-primary-6)}.page-subtitle[data-v-fab87f30]{color:var(--color-text-3);font-size:16px;margin:0;line-height:1.5}.test-content[data-v-fab87f30]{flex:1;overflow-y:auto;padding:32px;width:100%;margin:0}.test-section[data-v-fab87f30]{margin-bottom:32px;padding:24px;background:var(--color-bg-2);border-radius:12px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;transition:all .3s ease}.test-section[data-v-fab87f30]:hover{box-shadow:0 4px 16px #00000014;border-color:var(--color-border-3)}.test-section h2[data-v-fab87f30]{color:var(--color-text-1);margin-bottom:20px;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}.test-section h2[data-v-fab87f30]:before{content:"";width:4px;height:20px;background:var(--color-primary-6);border-radius:2px}.test-buttons[data-v-fab87f30],.player-buttons[data-v-fab87f30]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.analysis-result[data-v-fab87f30]{background:var(--color-bg-1);padding:20px;border-radius:8px;border:1px solid var(--color-border-2);margin-top:16px}.analysis-result ul[data-v-fab87f30]{margin:12px 0;padding-left:24px}.analysis-result li[data-v-fab87f30]{margin-bottom:8px;color:var(--color-text-2)}.analysis-result p[data-v-fab87f30]{margin-bottom:12px;color:var(--color-text-1)}.native-video-header[data-v-fab87f30]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.native-video-header h2[data-v-fab87f30]{margin:0;color:var(--color-text-1)}.native-video-controls[data-v-fab87f30]{display:flex;gap:12px}.native-video-container[data-v-fab87f30]{width:100%;margin-bottom:20px;background:#000;border-radius:8px;overflow:hidden}.native-video-player[data-v-fab87f30]{width:100%;height:400px;display:block;background:#000}.native-video-logs[data-v-fab87f30]{margin-top:20px;max-height:300px;overflow-y:auto;background:var(--color-bg-1);padding:16px;border-radius:8px;border:1px solid var(--color-border-2)}.native-video-logs h3[data-v-fab87f30]{color:var(--color-text-1);margin-bottom:12px;font-size:16px;font-weight:600}.log-item[data-v-fab87f30]{font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;margin-bottom:6px;color:var(--color-text-2);line-height:1.4;padding:4px 8px;background:var(--color-bg-2);border-radius:4px;border-left:3px solid var(--color-primary-6)}.error-section[data-v-fab87f30]{background:var(--color-danger-light-1);border:1px solid var(--color-danger-light-3)}.error-section h2[data-v-fab87f30]{color:var(--color-danger-6)}.error-section pre[data-v-fab87f30]{color:var(--color-danger-6);white-space:pre-wrap;word-break:break-all;background:var(--color-bg-1);padding:16px;border-radius:6px;margin-top:12px;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5}.video-test-container[data-v-fab87f30] .video-player-section{margin:24px 0;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001f}.player-section[data-v-fab87f30]{padding:0!important;background:transparent!important;border:none!important;box-shadow:none!important}.player-section h2[data-v-fab87f30]{padding:24px 24px 16px;margin-bottom:0;background:var(--color-bg-2);border-radius:12px 12px 0 0;border:1px solid var(--color-border-2);border-bottom:none}.video-test-container[data-v-fab87f30] .video-player-section{margin-bottom:0;border-radius:0 0 12px 12px;border-top:none}.video-test-container[data-v-fab87f30] .video-player-section .arco-card{width:100%;max-width:100%;background:var(--color-bg-1);border-radius:0 0 12px 12px;overflow:hidden;margin:0}.video-test-container[data-v-fab87f30] .video-player-section .arco-card-body{padding:0}.video-test-container[data-v-fab87f30] .video-player-container{position:relative;width:100%;max-width:100%;background:#000;border-radius:0;overflow:hidden}.video-test-container[data-v-fab87f30] .video-player{width:100%;height:auto;min-height:400px;max-height:60vh;background:#000;outline:none}.video-test-container[data-v-fab87f30] .art-player-container{position:relative;width:100%;max-width:100%;background:#000;border-radius:0;overflow:hidden}.video-test-container[data-v-fab87f30] .art-player-container .artplayer-app{width:100%;height:400px;max-height:60vh;border-radius:0;overflow:hidden}@media (max-width: 768px){.test-header[data-v-fab87f30]{padding:16px 20px}.header-content[data-v-fab87f30]{flex-direction:column;gap:16px}.nav-buttons[data-v-fab87f30]{align-items:stretch}.page-title[data-v-fab87f30]{font-size:24px}.test-content[data-v-fab87f30]{padding:20px}.test-section[data-v-fab87f30]{padding:20px;margin-bottom:24px}.test-buttons[data-v-fab87f30],.player-buttons[data-v-fab87f30]{grid-template-columns:1fr}.video-test-container[data-v-fab87f30] .video-player-section{padding:10px}.video-test-container[data-v-fab87f30] .video-player-section .arco-card{max-width:100%;max-height:95vh}.video-test-container[data-v-fab87f30] .video-player{min-height:200px;max-height:calc(95vh - 80px)}.video-test-container[data-v-fab87f30] .art-video-player{padding:10px!important}.video-test-container[data-v-fab87f30] .art-video-player .artplayer-app{max-width:100%!important;max-height:95vh!important}}.csp-test-container[data-v-882b9d3d]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1);overflow:hidden}.test-header[data-v-882b9d3d]{position:sticky;top:0;z-index:10;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2);padding:24px 32px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content[data-v-882b9d3d]{width:100%;margin:0;display:flex;justify-content:space-between;align-items:flex-start}.header-left[data-v-882b9d3d]{flex:1}.page-title[data-v-882b9d3d]{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px}.title-icon[data-v-882b9d3d]{font-size:32px;color:var(--color-primary-6)}.page-subtitle[data-v-882b9d3d]{color:var(--color-text-3);font-size:16px;margin:0;line-height:1.5}.nav-button-group[data-v-882b9d3d]{max-width:-moz-fit-content;max-width:fit-content;max-height:200px;overflow-y:auto;padding:4px;border-radius:8px;background:var(--color-bg-2);border:1px solid var(--color-border-2)}.nav-button-grid[data-v-882b9d3d]{display:grid;grid-template-columns:auto auto;gap:6px;padding:6px;justify-content:start}.nav-grid-button[data-v-882b9d3d]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-button[data-v-882b9d3d]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f;background:var(--color-bg-3);border-color:var(--color-primary-6)}.nav-grid-button span[data-v-882b9d3d]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-grid-placeholder[data-v-882b9d3d]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;background:var(--color-bg-3);border:1px dashed var(--color-border-3);border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-placeholder[data-v-882b9d3d]:hover{border-color:var(--color-primary-6);background:var(--color-primary-1)}.placeholder-text[data-v-882b9d3d]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-4);text-align:center}.test-content[data-v-882b9d3d]{flex:1;overflow-y:auto;padding:32px;width:100%;margin:0}.test-section[data-v-882b9d3d]{margin-bottom:32px;padding:24px;background:var(--color-bg-2);border-radius:12px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;transition:all .3s ease}.test-section[data-v-882b9d3d]:hover{box-shadow:0 4px 16px #00000014;border-color:var(--color-border-3)}.test-section h2[data-v-882b9d3d]{color:var(--color-text-1);margin-bottom:20px;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}.test-section h2[data-v-882b9d3d]:before{content:"";width:4px;height:20px;background:var(--color-primary-6);border-radius:2px}.config-info[data-v-882b9d3d]{display:flex;flex-direction:column;gap:16px}.config-item[data-v-882b9d3d]{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--color-bg-1);border-radius:8px;border:1px solid var(--color-border-2)}.config-item label[data-v-882b9d3d]{font-weight:600;color:var(--color-text-2);min-width:120px}.status-enabled[data-v-882b9d3d]{color:var(--color-success-6);font-weight:600}.status-disabled[data-v-882b9d3d]{color:var(--color-danger-6);font-weight:600}.config-value[data-v-882b9d3d]{background:var(--color-fill-2);padding:4px 8px;border-radius:4px;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px}.config-name[data-v-882b9d3d]{color:var(--color-text-1);font-weight:500}.test-buttons[data-v-882b9d3d]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.video-test[data-v-882b9d3d]{display:flex;flex-direction:column;gap:16px}.video-test-buttons[data-v-882b9d3d]{display:flex;gap:12px;flex-wrap:wrap}.video-result[data-v-882b9d3d]{padding:16px;border-radius:8px;background:var(--color-bg-1);border:1px solid var(--color-border-2);font-weight:600;color:var(--color-text-1)}.test-results[data-v-882b9d3d]{max-height:400px;overflow-y:auto;border:1px solid var(--color-border-2);border-radius:8px;background:var(--color-bg-1)}.no-results[data-v-882b9d3d]{padding:32px;text-align:center;color:var(--color-text-3);font-style:italic}.test-result[data-v-882b9d3d]{padding:16px;border-bottom:1px solid var(--color-border-2);transition:background .2s ease}.test-result[data-v-882b9d3d]:last-child{border-bottom:none}.test-result[data-v-882b9d3d]:hover{background:var(--color-fill-1)}.result-header[data-v-882b9d3d]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.timestamp[data-v-882b9d3d]{font-size:12px;color:var(--color-text-3);font-family:Consolas,Monaco,Courier New,monospace}.result-status[data-v-882b9d3d]{font-size:12px;font-weight:600;padding:2px 8px;border-radius:12px;display:flex;align-items:center;gap:4px}.result-status.success[data-v-882b9d3d]{background:var(--color-success-light-1);color:var(--color-success-6)}.result-status.error[data-v-882b9d3d]{background:var(--color-danger-light-1);color:var(--color-danger-6)}.result-status.warning[data-v-882b9d3d]{background:var(--color-warning-light-1);color:var(--color-warning-6)}.result-status.info[data-v-882b9d3d]{background:var(--color-info-light-1);color:var(--color-info-6)}.result-message[data-v-882b9d3d]{color:var(--color-text-1);line-height:1.5;word-break:break-word}.system-info[data-v-882b9d3d]{display:flex;flex-direction:column;gap:16px}.info-item[data-v-882b9d3d]{display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--color-bg-1);border-radius:8px;border:1px solid var(--color-border-2)}.info-item label[data-v-882b9d3d]{font-weight:600;color:var(--color-text-2);font-size:14px}.user-agent[data-v-882b9d3d]{background:var(--color-fill-2);padding:8px 12px;border-radius:6px;font-family:Consolas,Monaco,Courier New,monospace;font-size:12px;word-break:break-all;line-height:1.4}.format-support[data-v-882b9d3d]{display:flex;flex-wrap:wrap;gap:8px}.format-item[data-v-882b9d3d]{padding:4px 8px;border-radius:4px;font-size:12px;font-weight:600}.format-item.supported[data-v-882b9d3d]{background:var(--color-success-light-1);color:var(--color-success-6)}.format-item.not-supported[data-v-882b9d3d]{background:var(--color-danger-light-1);color:var(--color-danger-6)}@media (max-width: 768px){.test-header[data-v-882b9d3d]{padding:16px 20px}.header-content[data-v-882b9d3d]{flex-direction:column;gap:16px}.nav-buttons[data-v-882b9d3d]{align-items:stretch}.page-title[data-v-882b9d3d]{font-size:24px}.test-content[data-v-882b9d3d]{padding:20px}.test-section[data-v-882b9d3d]{padding:20px;margin-bottom:24px}.test-buttons[data-v-882b9d3d]{grid-template-columns:1fr}.config-item[data-v-882b9d3d]{flex-direction:column;align-items:flex-start}.config-item label[data-v-882b9d3d]{min-width:auto}.video-test-buttons[data-v-882b9d3d]{flex-direction:column}}.search-aggregation[data-v-76e69201]{height:100vh;display:flex;flex-direction:column;background:var(--color-bg-1)}.search-content[data-v-76e69201]{flex:1;overflow:hidden}.search-home[data-v-76e69201]{padding:40px 20px;max-width:800px;margin:0 auto}.hot-search-section[data-v-76e69201]{padding:20px;max-width:800px;margin:0 auto 40px}.recent-search-section[data-v-76e69201]{padding:20px;max-width:800px;margin:0 auto 20px}.recent-search-tags[data-v-76e69201]{display:flex;flex-wrap:wrap;gap:12px}.recent-tag[data-v-76e69201]{cursor:pointer;transition:all .2s ease;border-radius:16px;padding:6px 16px}.recent-tag[data-v-76e69201]:hover{background:var(--color-fill-2);transform:translateY(-1px)}.section-header[data-v-76e69201]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-title[data-v-76e69201]{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:600;color:var(--color-text-1);margin:0}.refresh-btn[data-v-76e69201]{color:var(--color-text-3);transition:all .2s ease}.refresh-btn[data-v-76e69201]:hover{color:var(--color-primary-6)}.title-icon[data-v-76e69201]{font-size:20px;color:var(--color-primary-6)}.hot-search-tags[data-v-76e69201]{display:flex;flex-wrap:wrap;gap:12px}.hot-tag[data-v-76e69201]{cursor:pointer;transition:all .2s ease;border-radius:16px;padding:6px 16px}.hot-tag[data-v-76e69201]:hover{background:var(--color-primary-1);border-color:var(--color-primary-6);color:var(--color-primary-6);transform:translateY(-1px)}.recent-search-floating[data-v-76e69201],.search-suggestions[data-v-76e69201]{padding:20px;max-width:800px;margin:0 auto 8px}.suggestions-tags[data-v-76e69201]{display:flex;flex-wrap:wrap;gap:12px}.suggestion-tag[data-v-76e69201]{cursor:pointer;transition:all .2s ease;border-radius:16px;padding:6px 16px}.suggestion-tag[data-v-76e69201]:hover{background:var(--color-primary-1);border-color:var(--color-primary-6);color:var(--color-primary-6);transform:translateY(-1px)}.search-results[data-v-76e69201]{height:calc(100vh - 112px);overflow:hidden}.results-layout[data-v-76e69201]{display:flex;height:100%}.sources-sidebar[data-v-76e69201]{width:280px;background:var(--color-bg-2);border-right:1px solid var(--color-border-2);display:flex;flex-direction:column;height:100%}.sources-header[data-v-76e69201]{display:flex;align-items:center;gap:8px;padding:16px 20px;border-bottom:1px solid var(--color-border-2);background:var(--color-bg-2);position:sticky;top:0;z-index:10;flex-shrink:0}.sources-header h4[data-v-76e69201]{margin:0;font-size:16px;font-weight:600;color:var(--color-text-1)}.sources-count[data-v-76e69201]{color:var(--color-text-3);font-size:14px}.sources-result-tag[data-v-76e69201]{background:#52c41a;color:#fff;font-size:12px;padding:2px 8px;border-radius:12px;font-weight:500;margin-left:8px}.sources-time-tag[data-v-76e69201]{background:#1890ff;color:#fff;font-size:12px;padding:2px 8px;border-radius:12px;font-weight:500;margin-left:8px}.sources-list[data-v-76e69201]{flex:1;overflow-y:auto;padding:8px;height:0}.source-item[data-v-76e69201]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:8px;cursor:pointer;transition:all .2s ease;margin-bottom:4px}.source-item[data-v-76e69201]:hover{background:var(--color-fill-2)}.source-item.active[data-v-76e69201]{background:#1890ff!important;border:1px solid #0050b3!important;color:#fff!important}.source-item.active .source-name[data-v-76e69201]{color:#fff!important}.source-item.active .source-count[data-v-76e69201]{color:#fffc!important}.source-info[data-v-76e69201]{display:flex;flex-direction:column;gap:4px}.source-name[data-v-76e69201]{font-size:14px;font-weight:500;color:var(--color-text-1)}.source-count[data-v-76e69201]{font-size:12px;color:var(--color-text-3)}.source-status[data-v-76e69201]{display:flex;align-items:center}.status-success[data-v-76e69201]{color:var(--color-success-6);font-size:16px}.status-error[data-v-76e69201]{color:var(--color-danger-6);font-size:16px}.results-content[data-v-76e69201]{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%}.results-list[data-v-76e69201]{display:flex;flex-direction:column;height:100%}.results-header[data-v-76e69201]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--color-border-2);background:var(--color-bg-1);position:sticky;top:0;z-index:10;flex-shrink:0}.results-header h4[data-v-76e69201]{margin:0;font-size:16px;font-weight:600;color:var(--color-text-1)}.results-count[data-v-76e69201]{color:var(--color-text-3);font-size:14px}.loading-state[data-v-76e69201],.error-state[data-v-76e69201],.empty-state[data-v-76e69201]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--color-text-3)}.error-icon[data-v-76e69201],.empty-icon[data-v-76e69201]{font-size:48px;color:var(--color-text-4)}@media (max-width: 768px){.results-layout[data-v-76e69201]{flex-direction:column}.sources-sidebar[data-v-76e69201]{width:100%;height:200px}.sources-list[data-v-76e69201]{display:flex;flex-direction:row;overflow-x:auto;padding:8px 12px}.source-item[data-v-76e69201]{min-width:120px;margin-right:8px;margin-bottom:0}.search-header[data-v-76e69201]{padding:0 16px}.header-left[data-v-76e69201],.header-right[data-v-76e69201]{min-width:100px}}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-size:1em;font-family:monospace,monospace}a{background-color:transparent}abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:none}b,strong{font-weight:bolder}code,kbd,samp{font-size:1em;font-family:monospace,monospace}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-size:100%;font-family:inherit;line-height:1.15}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{display:table;box-sizing:border-box;max-width:100%;padding:0;color:inherit;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.arco-icon{display:inline-block;width:1em;height:1em;color:inherit;font-style:normal;vertical-align:-2px;outline:none;stroke:currentColor}.arco-icon-loading,.arco-icon-spin{animation:arco-loading-circle 1s infinite cubic-bezier(0,0,1,1)}@keyframes arco-loading-circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.arco-icon-hover{position:relative;display:inline-block;cursor:pointer;line-height:12px}.arco-icon-hover .arco-icon{position:relative}.arco-icon-hover:before{position:absolute;display:block;box-sizing:border-box;background-color:transparent;border-radius:var(--border-radius-circle);transition:background-color .1s cubic-bezier(0,0,1,1);content:""}.arco-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-icon-hover.arco-icon-hover-disabled:before{opacity:0}.arco-icon-hover:before{top:50%;left:50%;width:20px;height:20px;transform:translate(-50%,-50%)}.arco-icon-hover-size-mini{line-height:12px}.arco-icon-hover-size-mini:before{top:50%;left:50%;width:20px;height:20px;transform:translate(-50%,-50%)}.arco-icon-hover-size-small{line-height:12px}.arco-icon-hover-size-small:before{top:50%;left:50%;width:20px;height:20px;transform:translate(-50%,-50%)}.arco-icon-hover-size-large{line-height:12px}.arco-icon-hover-size-large:before{top:50%;left:50%;width:24px;height:24px;transform:translate(-50%,-50%)}.arco-icon-hover-size-huge{line-height:12px}.arco-icon-hover-size-huge:before{top:50%;left:50%;width:24px;height:24px;transform:translate(-50%,-50%)}.fade-in-standard-enter-from,.fade-in-standard-appear-from{opacity:0}.fade-in-standard-enter-to,.fade-in-standard-appear-to{opacity:1}.fade-in-standard-enter-active,.fade-in-standard-appear-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1)}.fade-in-standard-leave-from{opacity:1}.fade-in-standard-leave-to{opacity:0}.fade-in-standard-leave-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1)}.fade-in-enter-from,.fade-in-appear-from{opacity:0}.fade-in-enter-to,.fade-in-appear-to{opacity:1}.fade-in-enter-active,.fade-in-appear-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.fade-in-leave-from{opacity:1}.fade-in-leave-to{opacity:0}.fade-in-leave-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.zoom-in-enter-from,.zoom-in-appear-from{transform:scale(.5);opacity:0}.zoom-in-enter-to,.zoom-in-appear-to{transform:scale(1);opacity:1}.zoom-in-enter-active,.zoom-in-appear-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1),transform .3s cubic-bezier(.34,.69,.1,1)}.zoom-in-leave-from{transform:scale(1);opacity:1}.zoom-in-leave-to{transform:scale(.5);opacity:0}.zoom-in-leave-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1),transform .3s cubic-bezier(.34,.69,.1,1)}.zoom-in-fade-out-enter-from,.zoom-in-fade-out-appear-from{transform:scale(.5);opacity:0}.zoom-in-fade-out-enter-to,.zoom-in-fade-out-appear-to{transform:scale(1);opacity:1}.zoom-in-fade-out-enter-active,.zoom-in-fade-out-appear-active{transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-fade-out-leave-from{transform:scale(1);opacity:1}.zoom-in-fade-out-leave-to{transform:scale(.5);opacity:0}.zoom-in-fade-out-leave-active{transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-big-enter-from,.zoom-in-big-appear-from{transform:scale(.5);opacity:0}.zoom-in-big-enter-to,.zoom-in-big-appear-to{transform:scale(1);opacity:1}.zoom-in-big-enter-active,.zoom-in-big-appear-active{transition:opacity .2s cubic-bezier(0,0,1,1),transform .2s cubic-bezier(0,0,1,1)}.zoom-in-big-leave-from{transform:scale(1);opacity:1}.zoom-in-big-leave-to{transform:scale(.2);opacity:0}.zoom-in-big-leave-active{transition:opacity .2s cubic-bezier(0,0,1,1),transform .2s cubic-bezier(0,0,1,1)}.zoom-in-left-enter-from,.zoom-in-left-appear-from{transform:scale(.1);opacity:.1}.zoom-in-left-enter-to,.zoom-in-left-appear-to{transform:scale(1);opacity:1}.zoom-in-left-enter-active,.zoom-in-left-appear-active{transform-origin:0 50%;transition:opacity .3s cubic-bezier(0,0,1,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-left-leave-from{transform:scale(1);opacity:1}.zoom-in-left-leave-to{transform:scale(.1);opacity:.1}.zoom-in-left-leave-active{transform-origin:0 50%;transition:opacity .3s cubic-bezier(0,0,1,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-top-enter-from,.zoom-in-top-appear-from{transform:scaleY(.8) translateZ(0);opacity:0}.zoom-in-top-enter-to,.zoom-in-top-appear-to{transform:scaleY(1) translateZ(0);opacity:1}.zoom-in-top-enter-active,.zoom-in-top-appear-active{transform-origin:0 0;transition:transform .3s cubic-bezier(.3,1.3,.3,1),opacity .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-top-leave-from{transform:scaleY(1) translateZ(0);opacity:1}.zoom-in-top-leave-to{transform:scaleY(.8) translateZ(0);opacity:0}.zoom-in-top-leave-active{transform-origin:0 0;transition:transform .3s cubic-bezier(.3,1.3,.3,1),opacity .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-bottom-enter-from,.zoom-in-bottom-appear-from{transform:scaleY(.8) translateZ(0);opacity:0}.zoom-in-bottom-enter-to,.zoom-in-bottom-appear-to{transform:scaleY(1) translateZ(0);opacity:1}.zoom-in-bottom-enter-active,.zoom-in-bottom-appear-active{transform-origin:100% 100%;transition:transform .3s cubic-bezier(.3,1.3,.3,1),opacity .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-bottom-leave-from{transform:scaleY(1) translateZ(0);opacity:1}.zoom-in-bottom-leave-to{transform:scaleY(.8) translateZ(0);opacity:0}.zoom-in-bottom-leave-active{transform-origin:100% 100%;transition:transform .3s cubic-bezier(.3,1.3,.3,1),opacity .3s cubic-bezier(.3,1.3,.3,1)}.slide-dynamic-origin-enter-from,.slide-dynamic-origin-appear-from{transform:scaleY(.9);transform-origin:0 0;opacity:0}.slide-dynamic-origin-enter-to,.slide-dynamic-origin-appear-to{transform:scaleY(1);transform-origin:0 0;opacity:1}.slide-dynamic-origin-enter-active,.slide-dynamic-origin-appear-active{transition:transform .2s cubic-bezier(.34,.69,.1,1),opacity .2s cubic-bezier(.34,.69,.1,1)}.slide-dynamic-origin-leave-from{transform:scaleY(1);transform-origin:0 0;opacity:1}.slide-dynamic-origin-leave-to{transform:scaleY(.9);transform-origin:0 0;opacity:0}.slide-dynamic-origin-leave-active{transition:transform .2s cubic-bezier(.34,.69,.1,1),opacity .2s cubic-bezier(.34,.69,.1,1)}.slide-left-enter-from,.slide-left-appear-from{transform:translate(-100%)}.slide-left-enter-to,.slide-left-appear-to{transform:translate(0)}.slide-left-enter-active,.slide-left-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-left-leave-from{transform:translate(0)}.slide-left-leave-to{transform:translate(-100%)}.slide-left-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-right-enter-from,.slide-right-appear-from{transform:translate(100%)}.slide-right-enter-to,.slide-right-appear-to{transform:translate(0)}.slide-right-enter-active,.slide-right-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-right-leave-from{transform:translate(0)}.slide-right-leave-to{transform:translate(100%)}.slide-right-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-top-enter-from,.slide-top-appear-from{transform:translateY(-100%)}.slide-top-enter-to,.slide-top-appear-to{transform:translateY(0)}.slide-top-enter-active,.slide-top-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-top-leave-from{transform:translateY(0)}.slide-top-leave-to{transform:translateY(-100%)}.slide-top-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-bottom-enter-from,.slide-bottom-appear-from{transform:translateY(100%)}.slide-bottom-enter-to,.slide-bottom-appear-to{transform:translateY(0)}.slide-bottom-enter-active,.slide-bottom-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-bottom-leave-from{transform:translateY(0)}.slide-bottom-leave-to{transform:translateY(100%)}.slide-bottom-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}body{--red-1: 255,236,232;--red-2: 253,205,197;--red-3: 251,172,163;--red-4: 249,137,129;--red-5: 247,101,96;--red-6: 245,63,63;--red-7: 203,39,45;--red-8: 161,21,30;--red-9: 119,8,19;--red-10: 77,0,10;--orangered-1: 255,243,232;--orangered-2: 253,221,195;--orangered-3: 252,197,159;--orangered-4: 250,172,123;--orangered-5: 249,144,87;--orangered-6: 247,114,52;--orangered-7: 204,81,32;--orangered-8: 162,53,17;--orangered-9: 119,31,6;--orangered-10: 77,14,0;--orange-1: 255,247,232;--orange-2: 255,228,186;--orange-3: 255,207,139;--orange-4: 255,182,93;--orange-5: 255,154,46;--orange-6: 255,125,0;--orange-7: 210,95,0;--orange-8: 166,69,0;--orange-9: 121,46,0;--orange-10: 77,27,0;--gold-1: 255,252,232;--gold-2: 253,244,191;--gold-3: 252,233,150;--gold-4: 250,220,109;--gold-5: 249,204,69;--gold-6: 247,186,30;--gold-7: 204,146,19;--gold-8: 162,109,10;--gold-9: 119,75,4;--gold-10: 77,45,0;--yellow-1: 254,255,232;--yellow-2: 254,254,190;--yellow-3: 253,250,148;--yellow-4: 252,242,107;--yellow-5: 251,232,66;--yellow-6: 250,220,25;--yellow-7: 207,175,15;--yellow-8: 163,132,8;--yellow-9: 120,93,3;--yellow-10: 77,56,0;--lime-1: 252,255,232;--lime-2: 237,248,187;--lime-3: 220,241,144;--lime-4: 201,233,104;--lime-5: 181,226,65;--lime-6: 159,219,29;--lime-7: 126,183,18;--lime-8: 95,148,10;--lime-9: 67,112,4;--lime-10: 42,77,0;--green-1: 232,255,234;--green-2: 175,240,181;--green-3: 123,225,136;--green-4: 76,210,99;--green-5: 35,195,67;--green-6: 0,180,42;--green-7: 0,154,41;--green-8: 0,128,38;--green-9: 0,102,34;--green-10: 0,77,28;--cyan-1: 232,255,251;--cyan-2: 183,244,236;--cyan-3: 137,233,224;--cyan-4: 94,223,214;--cyan-5: 55,212,207;--cyan-6: 20,201,201;--cyan-7: 13,165,170;--cyan-8: 7,130,139;--cyan-9: 3,97,108;--cyan-10: 0,66,77;--blue-1: 232,247,255;--blue-2: 195,231,254;--blue-3: 159,212,253;--blue-4: 123,192,252;--blue-5: 87,169,251;--blue-6: 52,145,250;--blue-7: 32,108,207;--blue-8: 17,75,163;--blue-9: 6,48,120;--blue-10: 0,26,77;--arcoblue-1: 232,243,255;--arcoblue-2: 190,218,255;--arcoblue-3: 148,191,255;--arcoblue-4: 106,161,255;--arcoblue-5: 64,128,255;--arcoblue-6: 22,93,255;--arcoblue-7: 14,66,210;--arcoblue-8: 7,44,166;--arcoblue-9: 3,26,121;--arcoblue-10: 0,13,77;--purple-1: 245,232,255;--purple-2: 221,190,246;--purple-3: 195,150,237;--purple-4: 168,113,227;--purple-5: 141,78,218;--purple-6: 114,46,209;--purple-7: 85,29,176;--purple-8: 60,16,143;--purple-9: 39,6,110;--purple-10: 22,0,77;--pinkpurple-1: 255,232,251;--pinkpurple-2: 247,186,239;--pinkpurple-3: 240,142,230;--pinkpurple-4: 232,101,223;--pinkpurple-5: 225,62,219;--pinkpurple-6: 217,26,217;--pinkpurple-7: 176,16,182;--pinkpurple-8: 138,9,147;--pinkpurple-9: 101,3,112;--pinkpurple-10: 66,0,77;--magenta-1: 255,232,241;--magenta-2: 253,194,219;--magenta-3: 251,157,199;--magenta-4: 249,121,183;--magenta-5: 247,84,168;--magenta-6: 245,49,157;--magenta-7: 203,30,131;--magenta-8: 161,16,105;--magenta-9: 119,6,79;--magenta-10: 77,0,52;--gray-1: 247,248,250;--gray-2: 242,243,245;--gray-3: 229,230,235;--gray-4: 201,205,212;--gray-5: 169,174,184;--gray-6: 134,144,156;--gray-7: 107,119,133;--gray-8: 78,89,105;--gray-9: 39,46,59;--gray-10: 29,33,41;--success-1: var(--green-1);--success-2: var(--green-2);--success-3: var(--green-3);--success-4: var(--green-4);--success-5: var(--green-5);--success-6: var(--green-6);--success-7: var(--green-7);--success-8: var(--green-8);--success-9: var(--green-9);--success-10: var(--green-10);--primary-1: var(--arcoblue-1);--primary-2: var(--arcoblue-2);--primary-3: var(--arcoblue-3);--primary-4: var(--arcoblue-4);--primary-5: var(--arcoblue-5);--primary-6: var(--arcoblue-6);--primary-7: var(--arcoblue-7);--primary-8: var(--arcoblue-8);--primary-9: var(--arcoblue-9);--primary-10: var(--arcoblue-10);--danger-1: var(--red-1);--danger-2: var(--red-2);--danger-3: var(--red-3);--danger-4: var(--red-4);--danger-5: var(--red-5);--danger-6: var(--red-6);--danger-7: var(--red-7);--danger-8: var(--red-8);--danger-9: var(--red-9);--danger-10: var(--red-10);--warning-1: var(--orange-1);--warning-2: var(--orange-2);--warning-3: var(--orange-3);--warning-4: var(--orange-4);--warning-5: var(--orange-5);--warning-6: var(--orange-6);--warning-7: var(--orange-7);--warning-8: var(--orange-8);--warning-9: var(--orange-9);--warning-10: var(--orange-10);--link-1: var(--arcoblue-1);--link-2: var(--arcoblue-2);--link-3: var(--arcoblue-3);--link-4: var(--arcoblue-4);--link-5: var(--arcoblue-5);--link-6: var(--arcoblue-6);--link-7: var(--arcoblue-7);--link-8: var(--arcoblue-8);--link-9: var(--arcoblue-9);--link-10: var(--arcoblue-10)}body[arco-theme=dark]{--red-1: 77,0,10;--red-2: 119,6,17;--red-3: 161,22,31;--red-4: 203,46,52;--red-5: 245,78,78;--red-6: 247,105,101;--red-7: 249,141,134;--red-8: 251,176,167;--red-9: 253,209,202;--red-10: 255,240,236;--orangered-1: 77,14,0;--orangered-2: 119,30,5;--orangered-3: 162,55,20;--orangered-4: 204,87,41;--orangered-5: 247,126,69;--orangered-6: 249,146,90;--orangered-7: 250,173,125;--orangered-8: 252,198,161;--orangered-9: 253,222,197;--orangered-10: 255,244,235;--orange-1: 77,27,0;--orange-2: 121,48,4;--orange-3: 166,75,10;--orange-4: 210,105,19;--orange-5: 255,141,31;--orange-6: 255,150,38;--orange-7: 255,179,87;--orange-8: 255,205,135;--orange-9: 255,227,184;--orange-10: 255,247,232;--gold-1: 77,45,0;--gold-2: 119,75,4;--gold-3: 162,111,15;--gold-4: 204,150,31;--gold-5: 247,192,52;--gold-6: 249,204,68;--gold-7: 250,220,108;--gold-8: 252,233,149;--gold-9: 253,244,190;--gold-10: 255,252,232;--yellow-1: 77,56,0;--yellow-2: 120,94,7;--yellow-3: 163,134,20;--yellow-4: 207,179,37;--yellow-5: 250,225,60;--yellow-6: 251,233,75;--yellow-7: 252,243,116;--yellow-8: 253,250,157;--yellow-9: 254,254,198;--yellow-10: 254,255,240;--lime-1: 42,77,0;--lime-2: 68,112,6;--lime-3: 98,148,18;--lime-4: 132,183,35;--lime-5: 168,219,57;--lime-6: 184,226,75;--lime-7: 203,233,112;--lime-8: 222,241,152;--lime-9: 238,248,194;--lime-10: 253,255,238;--green-1: 0,77,28;--green-2: 4,102,37;--green-3: 10,128,45;--green-4: 18,154,55;--green-5: 29,180,64;--green-6: 39,195,70;--green-7: 80,210,102;--green-8: 126,225,139;--green-9: 178,240,183;--green-10: 235,255,236;--cyan-1: 0,66,77;--cyan-2: 6,97,108;--cyan-3: 17,131,139;--cyan-4: 31,166,170;--cyan-5: 48,201,201;--cyan-6: 63,212,207;--cyan-7: 102,223,215;--cyan-8: 144,233,225;--cyan-9: 190,244,237;--cyan-10: 240,255,252;--blue-1: 0,26,77;--blue-2: 5,47,120;--blue-3: 19,76,163;--blue-4: 41,113,207;--blue-5: 70,154,250;--blue-6: 90,170,251;--blue-7: 125,193,252;--blue-8: 161,213,253;--blue-9: 198,232,254;--blue-10: 234,248,255;--arcoblue-1: 0,13,77;--arcoblue-2: 4,27,121;--arcoblue-3: 14,50,166;--arcoblue-4: 29,77,210;--arcoblue-5: 48,111,255;--arcoblue-6: 60,126,255;--arcoblue-7: 104,159,255;--arcoblue-8: 147,190,255;--arcoblue-9: 190,218,255;--arcoblue-10: 234,244,255;--purple-1: 22,0,77;--purple-2: 39,6,110;--purple-3: 62,19,143;--purple-4: 90,37,176;--purple-5: 123,61,209;--purple-6: 142,81,218;--purple-7: 169,116,227;--purple-8: 197,154,237;--purple-9: 223,194,246;--purple-10: 247,237,255;--pinkpurple-1: 66,0,77;--pinkpurple-2: 101,3,112;--pinkpurple-3: 138,13,147;--pinkpurple-4: 176,27,182;--pinkpurple-5: 217,46,217;--pinkpurple-6: 225,61,219;--pinkpurple-7: 232,102,223;--pinkpurple-8: 240,146,230;--pinkpurple-9: 247,193,240;--pinkpurple-10: 255,242,253;--magenta-1: 77,0,52;--magenta-2: 119,8,80;--magenta-3: 161,23,108;--magenta-4: 203,43,136;--magenta-5: 245,69,166;--magenta-6: 247,86,169;--magenta-7: 249,122,184;--magenta-8: 251,158,200;--magenta-9: 253,195,219;--magenta-10: 255,232,241;--gray-1: 23,23,26;--gray-2: 46,46,48;--gray-3: 72,72,73;--gray-4: 95,95,96;--gray-5: 120,120,122;--gray-6: 146,146,147;--gray-7: 171,171,172;--gray-8: 197,197,197;--gray-9: 223,223,223;--gray-10: 246,246,246;--primary-1: var(--arcoblue-1);--primary-2: var(--arcoblue-2);--primary-3: var(--arcoblue-3);--primary-4: var(--arcoblue-4);--primary-5: var(--arcoblue-5);--primary-6: var(--arcoblue-6);--primary-7: var(--arcoblue-7);--primary-8: var(--arcoblue-8);--primary-9: var(--arcoblue-9);--primary-10: var(--arcoblue-10);--success-1: var(--green-1);--success-2: var(--green-2);--success-3: var(--green-3);--success-4: var(--green-4);--success-5: var(--green-5);--success-6: var(--green-6);--success-7: var(--green-7);--success-8: var(--green-8);--success-9: var(--green-9);--success-10: var(--green-10);--danger-1: var(--red-1);--danger-2: var(--red-2);--danger-3: var(--red-3);--danger-4: var(--red-4);--danger-5: var(--red-5);--danger-6: var(--red-6);--danger-7: var(--red-7);--danger-8: var(--red-8);--danger-9: var(--red-9);--danger-10: var(--red-10);--warning-1: var(--orange-1);--warning-2: var(--orange-2);--warning-3: var(--orange-3);--warning-4: var(--orange-4);--warning-5: var(--orange-5);--warning-6: var(--orange-6);--warning-7: var(--orange-7);--warning-8: var(--orange-8);--warning-9: var(--orange-9);--warning-10: var(--orange-10);--link-1: var(--arcoblue-1);--link-2: var(--arcoblue-2);--link-3: var(--arcoblue-3);--link-4: var(--arcoblue-4);--link-5: var(--arcoblue-5);--link-6: var(--arcoblue-6);--link-7: var(--arcoblue-7);--link-8: var(--arcoblue-8);--link-9: var(--arcoblue-9);--link-10: var(--arcoblue-10)}body{--color-white: #ffffff;--color-black: #000000;--color-border: rgb(var(--gray-3));--color-bg-popup: var(--color-bg-5);--color-bg-1: #fff;--color-bg-2: #fff;--color-bg-3: #fff;--color-bg-4: #fff;--color-bg-5: #fff;--color-bg-white: #fff;--color-neutral-1: rgb(var(--gray-1));--color-neutral-2: rgb(var(--gray-2));--color-neutral-3: rgb(var(--gray-3));--color-neutral-4: rgb(var(--gray-4));--color-neutral-5: rgb(var(--gray-5));--color-neutral-6: rgb(var(--gray-6));--color-neutral-7: rgb(var(--gray-7));--color-neutral-8: rgb(var(--gray-8));--color-neutral-9: rgb(var(--gray-9));--color-neutral-10: rgb(var(--gray-10));--color-text-1: var(--color-neutral-10);--color-text-2: var(--color-neutral-8);--color-text-3: var(--color-neutral-6);--color-text-4: var(--color-neutral-4);--color-border-1: var(--color-neutral-2);--color-border-2: var(--color-neutral-3);--color-border-3: var(--color-neutral-4);--color-border-4: var(--color-neutral-6);--color-fill-1: var(--color-neutral-1);--color-fill-2: var(--color-neutral-2);--color-fill-3: var(--color-neutral-3);--color-fill-4: var(--color-neutral-4);--color-primary-light-1: rgb(var(--primary-1));--color-primary-light-2: rgb(var(--primary-2));--color-primary-light-3: rgb(var(--primary-3));--color-primary-light-4: rgb(var(--primary-4));--color-link-light-1: rgb(var(--link-1));--color-link-light-2: rgb(var(--link-2));--color-link-light-3: rgb(var(--link-3));--color-link-light-4: rgb(var(--link-4));--color-secondary: var(--color-neutral-2);--color-secondary-hover: var(--color-neutral-3);--color-secondary-active: var(--color-neutral-4);--color-secondary-disabled: var(--color-neutral-1);--color-danger-light-1: rgb(var(--danger-1));--color-danger-light-2: rgb(var(--danger-2));--color-danger-light-3: rgb(var(--danger-3));--color-danger-light-4: rgb(var(--danger-4));--color-success-light-1: rgb(var(--success-1));--color-success-light-2: rgb(var(--success-2));--color-success-light-3: rgb(var(--success-3));--color-success-light-4: rgb(var(--success-4));--color-warning-light-1: rgb(var(--warning-1));--color-warning-light-2: rgb(var(--warning-2));--color-warning-light-3: rgb(var(--warning-3));--color-warning-light-4: rgb(var(--warning-4));--border-radius-none: 0;--border-radius-small: 2px;--border-radius-medium: 4px;--border-radius-large: 8px;--border-radius-circle: 50%;--color-tooltip-bg: rgb(var(--gray-10));--color-spin-layer-bg: rgba(255, 255, 255, .6);--color-menu-dark-bg: #232324;--color-menu-light-bg: #ffffff;--color-menu-dark-hover: rgba(255, 255, 255, .04);--color-mask-bg: rgba(29, 33, 41, .6)}body[arco-theme=dark]{--color-white: rgba(255, 255, 255, .9);--color-black: #000000;--color-border: #333335;--color-bg-1: #17171a;--color-bg-2: #232324;--color-bg-3: #2a2a2b;--color-bg-4: #313132;--color-bg-5: #373739;--color-bg-white: #f6f6f6;--color-text-1: rgba(255, 255, 255, .9);--color-text-2: rgba(255, 255, 255, .7);--color-text-3: rgba(255, 255, 255, .5);--color-text-4: rgba(255, 255, 255, .3);--color-fill-1: rgba(255, 255, 255, .04);--color-fill-2: rgba(255, 255, 255, .08);--color-fill-3: rgba(255, 255, 255, .12);--color-fill-4: rgba(255, 255, 255, .16);--color-primary-light-1: rgba(var(--primary-6), .2);--color-primary-light-2: rgba(var(--primary-6), .35);--color-primary-light-3: rgba(var(--primary-6), .5);--color-primary-light-4: rgba(var(--primary-6), .65);--color-secondary: rgba(var(--gray-9), .08);--color-secondary-hover: rgba(var(--gray-8), .16);--color-secondary-active: rgba(var(--gray-7), .24);--color-secondary-disabled: rgba(var(--gray-9), .08);--color-danger-light-1: rgba(var(--danger-6), .2);--color-danger-light-2: rgba(var(--danger-6), .35);--color-danger-light-3: rgba(var(--danger-6), .5);--color-danger-light-4: rgba(var(--danger-6), .65);--color-success-light-1: rgb(var(--success-6), .2);--color-success-light-2: rgb(var(--success-6), .35);--color-success-light-3: rgb(var(--success-6), .5);--color-success-light-4: rgb(var(--success-6), .65);--color-warning-light-1: rgb(var(--warning-6), .2);--color-warning-light-2: rgb(var(--warning-6), .35);--color-warning-light-3: rgb(var(--warning-6), .5);--color-warning-light-4: rgb(var(--warning-6), .65);--color-link-light-1: rgb(var(--link-6), .2);--color-link-light-2: rgb(var(--link-6), .35);--color-link-light-3: rgb(var(--link-6), .5);--color-link-light-4: rgb(var(--link-6), .65);--color-tooltip-bg: #373739;--color-spin-layer-bg: rgba(51, 51, 51, .6);--color-menu-dark-bg: #232324;--color-menu-light-bg: #232324;--color-menu-dark-hover: var(--color-fill-2);--color-mask-bg: rgba(23, 23, 26, .6)}body{font-size:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,noto sans,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.arco-trigger-wrapper{display:inline-block}.arco-trigger-popup{position:absolute;z-index:1000}.arco-trigger-arrow{position:absolute;z-index:-1;display:block;box-sizing:border-box;width:8px;height:8px;background-color:var(--color-bg-5);content:""}.arco-trigger-popup[trigger-placement=top] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=tl] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=tr] .arco-trigger-arrow{border-top:none;border-left:none;border-bottom-right-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=bottom] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=bl] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=br] .arco-trigger-arrow{border-right:none;border-bottom:none;border-top-left-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=left] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=lt] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=lb] .arco-trigger-arrow{border-bottom:none;border-left:none;border-top-right-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=right] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=rt] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=rb] .arco-trigger-arrow{border-top:none;border-right:none;border-bottom-left-radius:var(--border-radius-small)}.arco-auto-tooltip{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-input-label{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1);cursor:pointer}.arco-input-label.arco-input-label-search{cursor:text}.arco-input-label.arco-input-label-search .arco-input-label-value{pointer-events:none}.arco-input-label:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-input-label:focus-within,.arco-input-label.arco-input-label-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-input-label.arco-input-label-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-input-label.arco-input-label-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-input-label.arco-input-label-disabled .arco-input-label-prefix,.arco-input-label.arco-input-label-disabled .arco-input-label-suffix{color:inherit}.arco-input-label.arco-input-label-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-input-label.arco-input-label-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-input-label.arco-input-label-error:focus-within,.arco-input-label.arco-input-label-error.arco-input-label-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-input-label .arco-input-label-prefix,.arco-input-label .arco-input-label-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-input-label .arco-input-label-prefix>svg,.arco-input-label .arco-input-label-suffix>svg{font-size:14px}.arco-input-label .arco-input-label-prefix{padding-right:12px;color:var(--color-text-2)}.arco-input-label .arco-input-label-suffix{padding-left:12px;color:var(--color-text-2)}.arco-input-label .arco-input-label-suffix .arco-feedback-icon{display:inline-flex}.arco-input-label .arco-input-label-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-input-label .arco-input-label-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-input-label .arco-input-label-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-input-label .arco-input-label-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-input-label .arco-input-label-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-input-label .arco-input-label-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-input-label:hover .arco-input-label-clear-btn{visibility:visible}.arco-input-label:not(.arco-input-label-focus) .arco-input-label-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-input-label .arco-input-label-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.arco-input-label .arco-input-label-input::-moz-placeholder{color:var(--color-text-3)}.arco-input-label .arco-input-label-input::placeholder{color:var(--color-text-3)}.arco-input-label .arco-input-label-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-input-label .arco-input-label-input[disabled]::placeholder{color:var(--color-text-4)}.arco-input-label .arco-input-label-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-input-label .arco-input-label-input-hidden{position:absolute;width:0!important}.arco-input-label .arco-input-label-value{display:flex;align-items:center;box-sizing:border-box;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-input-label .arco-input-label-value:after{font-size:0;line-height:0;visibility:hidden;content:"."}.arco-input-label .arco-input-label-value-hidden{display:none}.arco-input-label.arco-input-label-size-mini .arco-input-label-input,.arco-input-label.arco-input-label-size-mini .arco-input-label-value{padding-top:1px;padding-bottom:1px;font-size:12px;line-height:1.667}.arco-input-label.arco-input-label-size-mini .arco-input-label-value{min-height:22px}.arco-input-label.arco-input-label-size-medium .arco-input-label-input,.arco-input-label.arco-input-label-size-medium .arco-input-label-value{padding-top:4px;padding-bottom:4px;font-size:14px;line-height:1.5715}.arco-input-label.arco-input-label-size-medium .arco-input-label-value{min-height:30px}.arco-input-label.arco-input-label-size-small .arco-input-label-input,.arco-input-label.arco-input-label-size-small .arco-input-label-value{padding-top:2px;padding-bottom:2px;font-size:14px;line-height:1.5715}.arco-input-label.arco-input-label-size-small .arco-input-label-value{min-height:26px}.arco-input-label.arco-input-label-size-large .arco-input-label-input,.arco-input-label.arco-input-label-size-large .arco-input-label-value{padding-top:6px;padding-bottom:6px;font-size:14px;line-height:1.5715}.arco-input-label.arco-input-label-size-large .arco-input-label-value{min-height:34px}.arco-picker{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:4px 11px 4px 4px;line-height:1.5715;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);transition:all .1s cubic-bezier(0,0,1,1)}.arco-picker-input{display:inline-flex;flex:1}.arco-picker input{width:100%;padding:0 0 0 8px;color:var(--color-text-2);line-height:1.5715;text-align:left;background-color:transparent;border:none;outline:none;transition:all .1s cubic-bezier(0,0,1,1)}.arco-picker input::-moz-placeholder{color:var(--color-text-3)}.arco-picker input::placeholder{color:var(--color-text-3)}.arco-picker input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-picker-has-prefix{padding-left:12px}.arco-picker-prefix{padding-right:4px;color:var(--color-text-2);font-size:14px}.arco-picker-suffix{display:inline-flex;align-items:center;margin-left:4px}.arco-picker-suffix .arco-feedback-icon{display:inline-flex}.arco-picker-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-picker-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-picker-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-picker-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-picker-suffix .arco-feedback-icon{margin-left:4px}.arco-picker-suffix-icon{color:var(--color-text-2)}.arco-picker .arco-picker-clear-icon{display:none;color:var(--color-text-2);font-size:12px}.arco-picker:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-picker:not(.arco-picker-disabled):hover .arco-picker-clear-icon{display:inline-block}.arco-picker:not(.arco-picker-disabled):hover .arco-picker-suffix .arco-picker-clear-icon+span{display:none}.arco-picker input[disabled]{color:var(--color-text-4);cursor:not-allowed}.arco-picker input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-picker input[disabled]::placeholder{color:var(--color-text-4)}.arco-picker-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-picker-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-picker-focused{box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-picker-focused,.arco-picker-focused:hover{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6))}.arco-picker-focused.arco-picker-error{border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-picker-focused .arco-picker-input-active input,.arco-picker-focused:hover .arco-picker-input-active input{background:var(--color-fill-2)}.arco-picker-disabled,.arco-picker-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-picker-disabled input[disabled],.arco-picker-disabled:hover input[disabled]{color:var(--color-text-4);cursor:not-allowed}.arco-picker-disabled input[disabled]::-moz-placeholder,.arco-picker-disabled:hover input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-picker-disabled input[disabled]::placeholder,.arco-picker-disabled:hover input[disabled]::placeholder{color:var(--color-text-4)}.arco-picker-separator{min-width:10px;padding:0 8px;color:var(--color-text-3)}.arco-picker-disabled .arco-picker-separator,.arco-picker-disabled .arco-picker-suffix-icon{color:var(--color-text-4)}.arco-picker-size-mini{height:24px}.arco-picker-size-mini input{font-size:12px}.arco-picker-size-small{height:28px}.arco-picker-size-small input{font-size:14px}.arco-picker-size-medium{height:32px}.arco-picker-size-medium input{font-size:14px}.arco-picker-size-large{height:36px}.arco-picker-size-large input{font-size:14px}.arco-select-view-single{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1);cursor:pointer}.arco-select-view-single.arco-select-view-search{cursor:text}.arco-select-view-single.arco-select-view-search .arco-select-view-value{pointer-events:none}.arco-select-view-single:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-select-view-single:focus-within,.arco-select-view-single.arco-select-view-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-select-view-single.arco-select-view-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-select-view-single.arco-select-view-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-select-view-single.arco-select-view-disabled .arco-select-view-prefix,.arco-select-view-single.arco-select-view-disabled .arco-select-view-suffix{color:inherit}.arco-select-view-single.arco-select-view-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-select-view-single.arco-select-view-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-select-view-single.arco-select-view-error:focus-within,.arco-select-view-single.arco-select-view-error.arco-select-view-single-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-select-view-single .arco-select-view-prefix,.arco-select-view-single .arco-select-view-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-select-view-single .arco-select-view-prefix>svg,.arco-select-view-single .arco-select-view-suffix>svg{font-size:14px}.arco-select-view-single .arco-select-view-prefix{padding-right:12px;color:var(--color-text-2)}.arco-select-view-single .arco-select-view-suffix{padding-left:12px;color:var(--color-text-2)}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon{display:inline-flex}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-select-view-single .arco-select-view-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-select-view-single .arco-select-view-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-select-view-single:hover .arco-select-view-clear-btn{visibility:visible}.arco-select-view-single:not(.arco-select-view-focus) .arco-select-view-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-select-view-single .arco-select-view-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.arco-select-view-single .arco-select-view-input::-moz-placeholder{color:var(--color-text-3)}.arco-select-view-single .arco-select-view-input::placeholder{color:var(--color-text-3)}.arco-select-view-single .arco-select-view-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-select-view-single .arco-select-view-input[disabled]::placeholder{color:var(--color-text-4)}.arco-select-view-single .arco-select-view-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-select-view-single .arco-select-view-input-hidden{position:absolute;width:0!important}.arco-select-view-single .arco-select-view-value{display:flex;align-items:center;box-sizing:border-box;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-select-view-single .arco-select-view-value:after{font-size:0;line-height:0;visibility:hidden;content:"."}.arco-select-view-single .arco-select-view-value-hidden{display:none}.arco-select-view-single.arco-select-view-size-mini .arco-select-view-input,.arco-select-view-single.arco-select-view-size-mini .arco-select-view-value{padding-top:1px;padding-bottom:1px;font-size:12px;line-height:1.667}.arco-select-view-single.arco-select-view-size-mini .arco-select-view-value{min-height:22px}.arco-select-view-single.arco-select-view-size-medium .arco-select-view-input,.arco-select-view-single.arco-select-view-size-medium .arco-select-view-value{padding-top:4px;padding-bottom:4px;font-size:14px;line-height:1.5715}.arco-select-view-single.arco-select-view-size-medium .arco-select-view-value{min-height:30px}.arco-select-view-single.arco-select-view-size-small .arco-select-view-input,.arco-select-view-single.arco-select-view-size-small .arco-select-view-value{padding-top:2px;padding-bottom:2px;font-size:14px;line-height:1.5715}.arco-select-view-single.arco-select-view-size-small .arco-select-view-value{min-height:26px}.arco-select-view-single.arco-select-view-size-large .arco-select-view-input,.arco-select-view-single.arco-select-view-size-large .arco-select-view-value{padding-top:6px;padding-bottom:6px;font-size:14px;line-height:1.5715}.arco-select-view-single.arco-select-view-size-large .arco-select-view-value{min-height:34px}.arco-select-view-multiple{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1)}.arco-select-view-multiple:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-select-view-multiple:focus-within,.arco-select-view-multiple.arco-select-view-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-select-view-multiple.arco-select-view-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-select-view-multiple.arco-select-view-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-select-view-multiple.arco-select-view-disabled .arco-select-view-prefix,.arco-select-view-multiple.arco-select-view-disabled .arco-select-view-suffix{color:inherit}.arco-select-view-multiple.arco-select-view-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-select-view-multiple.arco-select-view-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-select-view-multiple.arco-select-view-error:focus-within,.arco-select-view-multiple.arco-select-view-error.arco-select-view-multiple-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-select-view-multiple .arco-select-view-prefix,.arco-select-view-multiple .arco-select-view-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-select-view-multiple .arco-select-view-prefix>svg,.arco-select-view-multiple .arco-select-view-suffix>svg{font-size:14px}.arco-select-view-multiple .arco-select-view-prefix{padding-right:12px;color:var(--color-text-2)}.arco-select-view-multiple .arco-select-view-suffix{padding-left:12px;color:var(--color-text-2)}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon{display:inline-flex}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-select-view-multiple .arco-select-view-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-select-view-multiple .arco-select-view-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-select-view-multiple:hover .arco-select-view-clear-btn{visibility:visible}.arco-select-view-multiple:not(.arco-select-view-focus) .arco-select-view-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-select-view-multiple.arco-select-view-has-tag{padding-right:4px;padding-left:4px}.arco-select-view-multiple.arco-select-view-has-prefix{padding-left:12px}.arco-select-view-multiple.arco-select-view-has-suffix{padding-right:12px}.arco-select-view-multiple .arco-select-view-inner{flex:1;overflow:hidden;line-height:0}.arco-select-view-multiple .arco-select-view-inner.arco-select-view-nowrap{display:flex;flex-wrap:wrap}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-tag{display:inline-flex;align-items:center;margin-right:4px;color:var(--color-text-1);font-size:12px;white-space:pre-wrap;word-break:break-word;background-color:var(--color-bg-2);border-color:var(--color-fill-3)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-tag .arco-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-tag.arco-tag-custom-color{color:var(--color-white)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-tag.arco-tag-custom-color .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:#fff3}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input::-moz-placeholder{color:var(--color-text-3)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input::placeholder{color:var(--color-text-3)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input[disabled]::placeholder{color:var(--color-text-4)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-select-view-multiple .arco-select-view-mirror{position:absolute;top:0;left:0;white-space:pre;visibility:hidden;pointer-events:none}.arco-select-view-multiple.arco-select-view-focus .arco-select-view-tag{background-color:var(--color-fill-2);border-color:var(--color-fill-2)}.arco-select-view-multiple.arco-select-view-focus .arco-select-view-tag .arco-icon-hover:hover:before{background-color:var(--color-fill-3)}.arco-select-view-multiple.arco-select-view-disabled .arco-select-view-tag{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:var(--color-fill-3)}.arco-select-view-multiple.arco-select-view-readonly,.arco-select-view-multiple.arco-select-view-disabled-input{cursor:default}.arco-select-view-multiple.arco-select-view-size-mini{font-size:12px}.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-inner{padding-top:0;padding-bottom:0}.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-input{margin-top:1px;margin-bottom:1px;line-height:18px;vertical-align:middle}.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-input{height:auto;min-height:20px}.arco-select-view-multiple.arco-select-view-size-medium{font-size:14px}.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-inner{padding-top:2px;padding-bottom:2px}.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-input{margin-top:1px;margin-bottom:1px;line-height:22px;vertical-align:middle}.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-input{height:auto;min-height:24px}.arco-select-view-multiple.arco-select-view-size-small{font-size:14px}.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-inner{padding-top:2px;padding-bottom:2px}.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-input{margin-top:1px;margin-bottom:1px;line-height:18px;vertical-align:middle}.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-input{height:auto;min-height:20px}.arco-select-view-multiple.arco-select-view-size-large{font-size:14px}.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-inner{padding-top:2px;padding-bottom:2px}.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-input{margin-top:1px;margin-bottom:1px;line-height:26px;vertical-align:middle}.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-input{height:auto;min-height:28px}.arco-select-view-multiple.arco-select-view-disabled-input{cursor:pointer}.arco-select-view.arco-select-view-borderless{background:none!important;border:none!important;box-shadow:none!important}.arco-select-view-suffix .arco-feedback-icon{margin-left:4px}.arco-select-view-clear-btn svg,.arco-select-view-icon svg{display:block;font-size:12px}.arco-select-view-opened .arco-select-view-arrow-icon{transform:rotate(180deg)}.arco-select-view-expand-icon{transform:rotate(-45deg)}.arco-select-view-clear-btn{display:none;cursor:pointer}.arco-select-view:hover .arco-select-view-clear-btn{display:block}.arco-select-view:hover .arco-select-view-clear-btn~*{display:none}.arco-affix{position:fixed;z-index:999}.arco-alert{display:flex;align-items:center;box-sizing:border-box;width:100%;padding:8px 15px;overflow:hidden;font-size:14px;line-height:1.5715;text-align:left;border-radius:var(--border-radius-small)}.arco-alert-with-title{align-items:flex-start;padding:15px}.arco-alert-center{justify-content:center}.arco-alert-center .arco-alert-body{flex:initial}.arco-alert-normal{background-color:var(--color-neutral-2);border:1px solid transparent}.arco-alert-info{background-color:var(--color-primary-light-1);border:1px solid transparent}.arco-alert-success{background-color:var(--color-success-light-1);border:1px solid transparent}.arco-alert-warning{background-color:var(--color-warning-light-1);border:1px solid transparent}.arco-alert-error{background-color:var(--color-danger-light-1);border:1px solid transparent}.arco-alert-banner{border:none;border-radius:0}.arco-alert-body{position:relative;flex:1}.arco-alert-title{margin-bottom:4px;font-weight:500;font-size:16px;line-height:1.5}.arco-alert-normal .arco-alert-title,.arco-alert-normal .arco-alert-content{color:var(--color-text-1)}.arco-alert-normal.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-info .arco-alert-title,.arco-alert-info .arco-alert-content{color:var(--color-text-1)}.arco-alert-info.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-success .arco-alert-title,.arco-alert-success .arco-alert-content{color:var(--color-text-1)}.arco-alert-success.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-warning .arco-alert-title,.arco-alert-warning .arco-alert-content{color:var(--color-text-1)}.arco-alert-warning.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-error .arco-alert-title,.arco-alert-error .arco-alert-content{color:var(--color-text-1)}.arco-alert-error.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-icon{margin-right:8px}.arco-alert-icon svg{font-size:16px;vertical-align:-3px}.arco-alert-with-title .arco-alert-icon svg{font-size:18px;vertical-align:-5px}.arco-alert-normal .arco-alert-icon svg{color:var(--color-neutral-4)}.arco-alert-info .arco-alert-icon svg{color:rgb(var(--primary-6))}.arco-alert-success .arco-alert-icon svg{color:rgb(var(--success-6))}.arco-alert-warning .arco-alert-icon svg{color:rgb(var(--warning-6))}.arco-alert-error .arco-alert-icon svg{color:rgb(var(--danger-6))}.arco-alert-close-btn{top:4px;right:0;box-sizing:border-box;margin-left:8px;padding:0;color:var(--color-text-2);font-size:12px;background-color:transparent;border:none;outline:none;cursor:pointer;transition:color .1s cubic-bezier(0,0,1,1)}.arco-alert-close-btn:hover{color:var(--color-text-1)}.arco-alert-action+.arco-alert-close-btn{margin-left:8px}.arco-alert-action{margin-left:8px}.arco-alert-with-title .arco-alert-close-btn{margin-top:0;margin-right:0}.arco-anchor{position:relative;width:150px;overflow:auto}.arco-anchor-line-slider{position:absolute;top:0;left:0;z-index:1;width:2px;height:12px;margin-top:9.0005px;background-color:rgb(var(--primary-6));transition:top .2s cubic-bezier(.34,.69,.1,1)}.arco-anchor-list{position:relative;margin-top:0;margin-bottom:0;margin-left:4px;padding-left:0;list-style:none}.arco-anchor-list:before{position:absolute;left:-4px;width:2px;height:100%;background-color:var(--color-fill-3);content:""}.arco-anchor-sublist{margin-top:0;margin-bottom:0;padding-left:0;list-style:none}.arco-anchor-link-item{margin-bottom:2px}.arco-anchor-link-item .arco-anchor-link{display:block;margin-bottom:2px;padding:4px 8px;overflow:hidden;color:var(--color-text-2);font-size:14px;line-height:1.5715;white-space:nowrap;text-decoration:none;text-overflow:ellipsis;border-radius:var(--border-radius-small);cursor:pointer}.arco-anchor-link-item .arco-anchor-link:hover{color:var(--color-text-1);font-weight:500;background-color:var(--color-fill-2)}.arco-anchor-link-active>.arco-anchor-link{color:var(--color-text-1);font-weight:500;transition:all .1s cubic-bezier(0,0,1,1)}.arco-anchor-link-item .arco-anchor-link-item{margin-left:16px}.arco-anchor-line-less .arco-anchor-list{margin-left:0}.arco-anchor-line-less .arco-anchor-list:before{display:none}.arco-anchor-line-less .arco-anchor-link-active>.arco-anchor-link{color:rgb(var(--primary-6));font-weight:500;background-color:var(--color-fill-2)}.arco-autocomplete-popup .arco-select-popup{background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-autocomplete-popup .arco-select-popup .arco-select-popup-inner{max-height:200px;padding:4px 0}.arco-autocomplete-popup .arco-select-popup .arco-select-option{height:36px;padding:0 12px;font-size:14px;line-height:36px;color:var(--color-text-1);background-color:var(--color-bg-popup)}.arco-autocomplete-popup .arco-select-popup .arco-select-option-selected{color:var(--color-text-1);background-color:var(--color-bg-popup)}.arco-autocomplete-popup .arco-select-popup .arco-select-option-hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-autocomplete-popup .arco-select-popup .arco-select-option-disabled{color:var(--color-text-4);background-color:var(--color-bg-popup)}.arco-autocomplete-popup .arco-select-popup .arco-select-option-selected{font-weight:500}.arco-avatar{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;width:40px;height:40px;color:var(--color-white);font-size:20px;white-space:nowrap;vertical-align:middle;background-color:var(--color-fill-4)}.arco-avatar-circle{border-radius:var(--border-radius-circle)}.arco-avatar-circle .arco-avatar-image{overflow:hidden;border-radius:var(--border-radius-circle)}.arco-avatar-square{border-radius:var(--border-radius-medium)}.arco-avatar-square .arco-avatar-image{overflow:hidden;border-radius:var(--border-radius-medium)}.arco-avatar-text{position:absolute;left:50%;font-weight:500;line-height:1;transform:translate(-50%);transform-origin:0 center}.arco-avatar-image{display:inline-block;width:100%;height:100%}.arco-avatar-image-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.arco-avatar-image img,.arco-avatar-image picture{width:100%;height:100%}.arco-avatar-trigger-icon-button{position:absolute;right:-4px;bottom:-4px;z-index:1;width:20px;height:20px;color:var(--color-fill-4);font-size:12px;line-height:20px;text-align:center;background-color:var(--color-neutral-2);border-radius:var(--border-radius-circle);transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-avatar-trigger-icon-mask{position:absolute;top:0;left:0;z-index:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--color-white);font-size:16px;background-color:#1d212999;border-radius:var(--border-radius-medium);opacity:0;transition:all .1s cubic-bezier(0,0,1,1)}.arco-avatar-circle .arco-avatar-trigger-icon-mask{border-radius:var(--border-radius-circle)}.arco-avatar-with-trigger-icon{cursor:pointer}.arco-avatar-with-trigger-icon:hover .arco-avatar-trigger-icon-mask{z-index:2;opacity:1}.arco-avatar-with-trigger-icon:hover .arco-avatar-trigger-icon-button{background-color:var(--color-neutral-3)}.arco-avatar-group{display:inline-block;line-height:0}.arco-avatar-group-max-count-avatar{color:var(--color-white);font-size:20px;cursor:default}.arco-avatar-group .arco-avatar{border:2px solid var(--color-bg-2)}.arco-avatar-group .arco-avatar:not(:first-child){margin-left:-10px}.arco-avatar-group-popover .arco-avatar:not(:first-child){margin-left:4px}.arco-back-top{position:fixed;right:24px;bottom:24px;z-index:100}.arco-back-top-btn{width:40px;height:40px;color:var(--color-white);font-size:12px;text-align:center;background-color:rgb(var(--primary-6));border:none;border-radius:var(--border-radius-circle);outline:none;cursor:pointer;transition:all .2s cubic-bezier(0,0,1,1)}.arco-back-top-btn:hover{background-color:rgb(var(--primary-5))}.arco-back-top-btn svg{font-size:14px}.arco-badge{position:relative;display:inline-block;line-height:1}.arco-badge-number,.arco-badge-dot,.arco-badge-text,.arco-badge-custom-dot{position:absolute;top:2px;right:2px;z-index:2;box-sizing:border-box;overflow:hidden;text-align:center;border-radius:20px;transform:translate(50%,-50%);transform-origin:100% 0%}.arco-badge-custom-dot{background-color:var(--color-bg-2)}.arco-badge-number,.arco-badge-text{min-width:20px;height:20px;padding:0 6px;color:var(--color-white);font-weight:500;font-size:12px;line-height:20px;background-color:rgb(var(--danger-6));box-shadow:0 0 0 2px var(--color-bg-2)}.arco-badge-dot{width:6px;height:6px;background-color:rgb(var(--danger-6));border-radius:var(--border-radius-circle);box-shadow:0 0 0 2px var(--color-bg-2)}.arco-badge-no-children .arco-badge-dot,.arco-badge-no-children .arco-badge-number,.arco-badge-no-children .arco-badge-text{position:relative;top:unset;right:unset;display:inline-block;transform:none}.arco-badge-status-wrapper{display:inline-flex;align-items:center}.arco-badge-status-dot{display:inline-block;width:6px;height:6px;border-radius:var(--border-radius-circle)}.arco-badge-status-normal{background-color:var(--color-fill-4)}.arco-badge-status-processing{background-color:rgb(var(--primary-6))}.arco-badge-status-success{background-color:rgb(var(--success-6))}.arco-badge-status-warning{background-color:rgb(var(--warning-6))}.arco-badge-status-danger,.arco-badge-color-red{background-color:rgb(var(--danger-6))}.arco-badge-color-orangered{background-color:#f77234}.arco-badge-color-orange{background-color:rgb(var(--orange-6))}.arco-badge-color-gold{background-color:rgb(var(--gold-6))}.arco-badge-color-lime{background-color:rgb(var(--lime-6))}.arco-badge-color-green{background-color:rgb(var(--success-6))}.arco-badge-color-cyan{background-color:rgb(var(--cyan-6))}.arco-badge-color-arcoblue{background-color:rgb(var(--primary-6))}.arco-badge-color-purple{background-color:rgb(var(--purple-6))}.arco-badge-color-pinkpurple{background-color:rgb(var(--pinkpurple-6))}.arco-badge-color-magenta{background-color:rgb(var(--magenta-6))}.arco-badge-color-gray{background-color:rgb(var(--gray-4))}.arco-badge .arco-badge-status-text{margin-left:8px;color:var(--color-text-1);font-size:12px;line-height:1.5715}.arco-badge-number-text{display:inline-block;animation:arco-badge-scale .5s cubic-bezier(.3,1.3,.3,1)}@keyframes arco-badge-scale{0%{transform:scale(0)}to{transform:scale(1)}}.badge-zoom-enter,.badge-zoom-appear{transform:translate(50%,-50%) scale(.2);transform-origin:center}.badge-zoom-enter-active,.badge-zoom-appear-active{transform:translate(50%,-50%) scale(1);transform-origin:center;opacity:1;transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.badge-zoom-exit{transform:translate(50%,-50%) scale(1);transform-origin:center;opacity:1}.badge-zoom-exit-active{transform:translate(50%,-50%) scale(.2);transform-origin:center;opacity:0;transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-breadcrumb{display:inline-flex;align-items:center;color:var(--color-text-2);font-size:14px}.arco-breadcrumb-icon{color:var(--color-text-2)}.arco-breadcrumb-item{display:inline-block;padding:0 4px;color:var(--color-text-2);line-height:24px;vertical-align:middle}.arco-breadcrumb-item>.arco-icon{color:var(--color-text-3)}.arco-breadcrumb-item a{display:inline-block;margin:0 -4px;padding:0 4px;color:var(--color-text-2);text-decoration:none;border-radius:var(--border-radius-small);background-color:transparent}.arco-breadcrumb-item a:hover{color:rgb(var(--link-6));background-color:var(--color-fill-2)}.arco-breadcrumb-item:last-child{color:var(--color-text-1);font-weight:500}.arco-breadcrumb-item-ellipses{position:relative;top:-3px;display:inline-block;padding:0 4px;color:var(--color-text-2)}.arco-breadcrumb-item-separator{display:inline-block;margin:0 4px;color:var(--color-text-4);line-height:24px;vertical-align:middle}.arco-breadcrumb-item-with-dropdown{cursor:pointer}.arco-breadcrumb-item-dropdown-icon{margin-left:4px;color:var(--color-text-2);font-size:12px}.arco-breadcrumb-item-dropdown-icon-active svg{transform:rotate(180deg)}.arco-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-weight:400;line-height:1.5715;white-space:nowrap;outline:none;cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1);-webkit-appearance:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-btn>a:only-child{color:currentColor}.arco-btn:active{transition:none}.arco-btn-long{display:flex;width:100%}.arco-btn-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.arco-btn-link:not([href]){color:var(--color-text-4)}.arco-btn-link:hover{text-decoration:none}.arco-btn-link.arco-btn-only-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:top}.arco-btn.arco-btn-only-icon .arco-btn-icon{display:flex;justify-content:center}.arco-btn-loading{position:relative;cursor:default}.arco-btn-loading:before{position:absolute;inset:-1px;z-index:1;display:block;background:#fff;border-radius:inherit;opacity:.4;transition:opacity .1s cubic-bezier(0,0,1,1);content:"";pointer-events:none}.arco-btn-loading-fixed-width{transition:none}.arco-btn-two-chinese-chars>*:not(svg){margin-right:-.3em;letter-spacing:.3em}.arco-btn-outline,.arco-btn-outline[type=button],.arco-btn-outline[type=submit]{color:rgb(var(--primary-6));background-color:transparent;border:1px solid rgb(var(--primary-6))}.arco-btn-outline:hover,.arco-btn-outline[type=button]:hover,.arco-btn-outline[type=submit]:hover{color:rgb(var(--primary-5));background-color:transparent;border-color:rgb(var(--primary-5))}.arco-btn-outline:focus-visible,.arco-btn-outline[type=button]:focus-visible,.arco-btn-outline[type=submit]:focus-visible{box-shadow:0 0 0 .25em rgb(var(--primary-3))}.arco-btn-outline:active,.arco-btn-outline[type=button]:active,.arco-btn-outline[type=submit]:active{color:rgb(var(--primary-7));background-color:transparent;border-color:rgb(var(--primary-7))}.arco-btn-outline.arco-btn-loading,.arco-btn-outline[type=button].arco-btn-loading,.arco-btn-outline[type=submit].arco-btn-loading{color:rgb(var(--primary-6));background-color:transparent;border:1px solid rgb(var(--primary-6))}.arco-btn-outline.arco-btn-disabled,.arco-btn-outline[type=button].arco-btn-disabled,.arco-btn-outline[type=submit].arco-btn-disabled{color:var(--color-primary-light-3);background-color:transparent;border:1px solid var(--color-primary-light-3);cursor:not-allowed}.arco-btn-outline.arco-btn-status-warning{color:rgb(var(--warning-6));background-color:transparent;border-color:rgb(var(--warning-6))}.arco-btn-outline.arco-btn-status-warning:hover{color:rgb(var(--warning-5));background-color:transparent;border-color:rgb(var(--warning-5))}.arco-btn-outline.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-outline.arco-btn-status-warning:active{color:rgb(var(--warning-7));background-color:transparent;border-color:rgb(var(--warning-7))}.arco-btn-outline.arco-btn-status-warning.arco-btn-loading{color:rgb(var(--warning-6));background-color:transparent;border-color:rgb(var(--warning-6))}.arco-btn-outline.arco-btn-status-warning.arco-btn-disabled{color:var(--color-warning-light-3);background-color:transparent;border:1px solid var(--color-warning-light-3)}.arco-btn-outline.arco-btn-status-danger{color:rgb(var(--danger-6));background-color:transparent;border-color:rgb(var(--danger-6))}.arco-btn-outline.arco-btn-status-danger:hover{color:rgb(var(--danger-5));background-color:transparent;border-color:rgb(var(--danger-5))}.arco-btn-outline.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-outline.arco-btn-status-danger:active{color:rgb(var(--danger-7));background-color:transparent;border-color:rgb(var(--danger-7))}.arco-btn-outline.arco-btn-status-danger.arco-btn-loading{color:rgb(var(--danger-6));background-color:transparent;border-color:rgb(var(--danger-6))}.arco-btn-outline.arco-btn-status-danger.arco-btn-disabled{color:var(--color-danger-light-3);background-color:transparent;border:1px solid var(--color-danger-light-3)}.arco-btn-outline.arco-btn-status-success{color:rgb(var(--success-6));background-color:transparent;border-color:rgb(var(--success-6))}.arco-btn-outline.arco-btn-status-success:hover{color:rgb(var(--success-5));background-color:transparent;border-color:rgb(var(--success-5))}.arco-btn-outline.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-outline.arco-btn-status-success:active{color:rgb(var(--success-7));background-color:transparent;border-color:rgb(var(--success-7))}.arco-btn-outline.arco-btn-status-success.arco-btn-loading{color:rgb(var(--success-6));background-color:transparent;border-color:rgb(var(--success-6))}.arco-btn-outline.arco-btn-status-success.arco-btn-disabled{color:var(--color-success-light-3);background-color:transparent;border:1px solid var(--color-success-light-3)}.arco-btn-primary,.arco-btn-primary[type=button],.arco-btn-primary[type=submit]{color:#fff;background-color:rgb(var(--primary-6));border:1px solid transparent}.arco-btn-primary:hover,.arco-btn-primary[type=button]:hover,.arco-btn-primary[type=submit]:hover{color:#fff;background-color:rgb(var(--primary-5));border-color:transparent}.arco-btn-primary:focus-visible,.arco-btn-primary[type=button]:focus-visible,.arco-btn-primary[type=submit]:focus-visible{box-shadow:0 0 0 .25em rgb(var(--primary-3))}.arco-btn-primary:active,.arco-btn-primary[type=button]:active,.arco-btn-primary[type=submit]:active{color:#fff;background-color:rgb(var(--primary-7));border-color:transparent}.arco-btn-primary.arco-btn-loading,.arco-btn-primary[type=button].arco-btn-loading,.arco-btn-primary[type=submit].arco-btn-loading{color:#fff;background-color:rgb(var(--primary-6));border:1px solid transparent}.arco-btn-primary.arco-btn-disabled,.arco-btn-primary[type=button].arco-btn-disabled,.arco-btn-primary[type=submit].arco-btn-disabled{color:#fff;background-color:var(--color-primary-light-3);border:1px solid transparent;cursor:not-allowed}.arco-btn-primary.arco-btn-status-warning{color:#fff;background-color:rgb(var(--warning-6));border-color:transparent}.arco-btn-primary.arco-btn-status-warning:hover{color:#fff;background-color:rgb(var(--warning-5));border-color:transparent}.arco-btn-primary.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-primary.arco-btn-status-warning:active{color:#fff;background-color:rgb(var(--warning-7));border-color:transparent}.arco-btn-primary.arco-btn-status-warning.arco-btn-loading{color:#fff;background-color:rgb(var(--warning-6));border-color:transparent}.arco-btn-primary.arco-btn-status-warning.arco-btn-disabled{color:#fff;background-color:var(--color-warning-light-3);border:1px solid transparent}.arco-btn-primary.arco-btn-status-danger{color:#fff;background-color:rgb(var(--danger-6));border-color:transparent}.arco-btn-primary.arco-btn-status-danger:hover{color:#fff;background-color:rgb(var(--danger-5));border-color:transparent}.arco-btn-primary.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-primary.arco-btn-status-danger:active{color:#fff;background-color:rgb(var(--danger-7));border-color:transparent}.arco-btn-primary.arco-btn-status-danger.arco-btn-loading{color:#fff;background-color:rgb(var(--danger-6));border-color:transparent}.arco-btn-primary.arco-btn-status-danger.arco-btn-disabled{color:#fff;background-color:var(--color-danger-light-3);border:1px solid transparent}.arco-btn-primary.arco-btn-status-success{color:#fff;background-color:rgb(var(--success-6));border-color:transparent}.arco-btn-primary.arco-btn-status-success:hover{color:#fff;background-color:rgb(var(--success-5));border-color:transparent}.arco-btn-primary.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-primary.arco-btn-status-success:active{color:#fff;background-color:rgb(var(--success-7));border-color:transparent}.arco-btn-primary.arco-btn-status-success.arco-btn-loading{color:#fff;background-color:rgb(var(--success-6));border-color:transparent}.arco-btn-primary.arco-btn-status-success.arco-btn-disabled{color:#fff;background-color:var(--color-success-light-3);border:1px solid transparent}.arco-btn-secondary,.arco-btn-secondary[type=button],.arco-btn-secondary[type=submit]{color:var(--color-text-2);background-color:var(--color-secondary);border:1px solid transparent}.arco-btn-secondary:hover,.arco-btn-secondary[type=button]:hover,.arco-btn-secondary[type=submit]:hover{color:var(--color-text-2);background-color:var(--color-secondary-hover);border-color:transparent}.arco-btn-secondary:focus-visible,.arco-btn-secondary[type=button]:focus-visible,.arco-btn-secondary[type=submit]:focus-visible{box-shadow:0 0 0 .25em var(--color-neutral-4)}.arco-btn-secondary:active,.arco-btn-secondary[type=button]:active,.arco-btn-secondary[type=submit]:active{color:var(--color-text-2);background-color:var(--color-secondary-active);border-color:transparent}.arco-btn-secondary.arco-btn-loading,.arco-btn-secondary[type=button].arco-btn-loading,.arco-btn-secondary[type=submit].arco-btn-loading{color:var(--color-text-2);background-color:var(--color-secondary);border:1px solid transparent}.arco-btn-secondary.arco-btn-disabled,.arco-btn-secondary[type=button].arco-btn-disabled,.arco-btn-secondary[type=submit].arco-btn-disabled{color:var(--color-text-4);background-color:var(--color-secondary-disabled);border:1px solid transparent;cursor:not-allowed}.arco-btn-secondary.arco-btn-status-warning{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-warning:hover{color:rgb(var(--warning-6));background-color:var(--color-warning-light-2);border-color:transparent}.arco-btn-secondary.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-secondary.arco-btn-status-warning:active{color:rgb(var(--warning-6));background-color:var(--color-warning-light-3);border-color:transparent}.arco-btn-secondary.arco-btn-status-warning.arco-btn-loading{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-warning.arco-btn-disabled{color:var(--color-warning-light-3);background-color:var(--color-warning-light-1);border:1px solid transparent}.arco-btn-secondary.arco-btn-status-danger{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-danger:hover{color:rgb(var(--danger-6));background-color:var(--color-danger-light-2);border-color:transparent}.arco-btn-secondary.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-secondary.arco-btn-status-danger:active{color:rgb(var(--danger-6));background-color:var(--color-danger-light-3);border-color:transparent}.arco-btn-secondary.arco-btn-status-danger.arco-btn-loading{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-danger.arco-btn-disabled{color:var(--color-danger-light-3);background-color:var(--color-danger-light-1);border:1px solid transparent}.arco-btn-secondary.arco-btn-status-success{color:rgb(var(--success-6));background-color:var(--color-success-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-success:hover{color:rgb(var(--success-6));background-color:var(--color-success-light-2);border-color:transparent}.arco-btn-secondary.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-secondary.arco-btn-status-success:active{color:rgb(var(--success-6));background-color:var(--color-success-light-3);border-color:transparent}.arco-btn-secondary.arco-btn-status-success.arco-btn-loading{color:rgb(var(--success-6));background-color:var(--color-success-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-success.arco-btn-disabled{color:var(--color-success-light-3);background-color:var(--color-success-light-1);border:1px solid transparent}.arco-btn-dashed,.arco-btn-dashed[type=button],.arco-btn-dashed[type=submit]{color:var(--color-text-2);background-color:var(--color-fill-2);border:1px dashed var(--color-neutral-3)}.arco-btn-dashed:hover,.arco-btn-dashed[type=button]:hover,.arco-btn-dashed[type=submit]:hover{color:var(--color-text-2);background-color:var(--color-fill-3);border-color:var(--color-neutral-4)}.arco-btn-dashed:focus-visible,.arco-btn-dashed[type=button]:focus-visible,.arco-btn-dashed[type=submit]:focus-visible{box-shadow:0 0 0 .25em var(--color-neutral-4)}.arco-btn-dashed:active,.arco-btn-dashed[type=button]:active,.arco-btn-dashed[type=submit]:active{color:var(--color-text-2);background-color:var(--color-fill-4);border-color:var(--color-neutral-5)}.arco-btn-dashed.arco-btn-loading,.arco-btn-dashed[type=button].arco-btn-loading,.arco-btn-dashed[type=submit].arco-btn-loading{color:var(--color-text-2);background-color:var(--color-fill-2);border:1px dashed var(--color-neutral-3)}.arco-btn-dashed.arco-btn-disabled,.arco-btn-dashed[type=button].arco-btn-disabled,.arco-btn-dashed[type=submit].arco-btn-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border:1px dashed var(--color-neutral-3);cursor:not-allowed}.arco-btn-dashed.arco-btn-status-warning{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1);border-color:var(--color-warning-light-2)}.arco-btn-dashed.arco-btn-status-warning:hover{color:rgb(var(--warning-6));background-color:var(--color-warning-light-2);border-color:var(--color-warning-light-3)}.arco-btn-dashed.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-dashed.arco-btn-status-warning:active{color:rgb(var(--warning-6));background-color:var(--color-warning-light-3);border-color:var(--color-warning-light-4)}.arco-btn-dashed.arco-btn-status-warning.arco-btn-loading{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1);border-color:var(--color-warning-light-2)}.arco-btn-dashed.arco-btn-status-warning.arco-btn-disabled{color:var(--color-warning-light-3);background-color:var(--color-warning-light-1);border:1px dashed var(--color-warning-light-2)}.arco-btn-dashed.arco-btn-status-danger{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1);border-color:var(--color-danger-light-2)}.arco-btn-dashed.arco-btn-status-danger:hover{color:rgb(var(--danger-6));background-color:var(--color-danger-light-2);border-color:var(--color-danger-light-3)}.arco-btn-dashed.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-dashed.arco-btn-status-danger:active{color:rgb(var(--danger-6));background-color:var(--color-danger-light-3);border-color:var(--color-danger-light-4)}.arco-btn-dashed.arco-btn-status-danger.arco-btn-loading{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1);border-color:var(--color-danger-light-2)}.arco-btn-dashed.arco-btn-status-danger.arco-btn-disabled{color:var(--color-danger-light-3);background-color:var(--color-danger-light-1);border:1px dashed var(--color-danger-light-2)}.arco-btn-dashed.arco-btn-status-success{color:rgb(var(--success-6));background-color:var(--color-success-light-1);border-color:var(--color-success-light-2)}.arco-btn-dashed.arco-btn-status-success:hover{color:rgb(var(--success-6));background-color:var(--color-success-light-2);border-color:var(--color-success-light-3)}.arco-btn-dashed.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-dashed.arco-btn-status-success:active{color:rgb(var(--success-6));background-color:var(--color-success-light-3);border-color:var(--color-success-light-4)}.arco-btn-dashed.arco-btn-status-success.arco-btn-loading{color:rgb(var(--success-6));background-color:var(--color-success-light-1);border-color:var(--color-success-light-2)}.arco-btn-dashed.arco-btn-status-success.arco-btn-disabled{color:var(--color-success-light-3);background-color:var(--color-success-light-1);border:1px dashed var(--color-success-light-2)}.arco-btn-text,.arco-btn-text[type=button],.arco-btn-text[type=submit]{color:rgb(var(--primary-6));background-color:transparent;border:1px solid transparent}.arco-btn-text:hover,.arco-btn-text[type=button]:hover,.arco-btn-text[type=submit]:hover{color:rgb(var(--primary-6));background-color:var(--color-fill-2);border-color:transparent}.arco-btn-text:focus-visible,.arco-btn-text[type=button]:focus-visible,.arco-btn-text[type=submit]:focus-visible{box-shadow:0 0 0 .25em var(--color-neutral-4)}.arco-btn-text:active,.arco-btn-text[type=button]:active,.arco-btn-text[type=submit]:active{color:rgb(var(--primary-6));background-color:var(--color-fill-3);border-color:transparent}.arco-btn-text.arco-btn-loading,.arco-btn-text[type=button].arco-btn-loading,.arco-btn-text[type=submit].arco-btn-loading{color:rgb(var(--primary-6));background-color:transparent;border:1px solid transparent}.arco-btn-text.arco-btn-disabled,.arco-btn-text[type=button].arco-btn-disabled,.arco-btn-text[type=submit].arco-btn-disabled{color:var(--color-primary-light-3);background-color:transparent;border:1px solid transparent;cursor:not-allowed}.arco-btn-text.arco-btn-status-warning{color:rgb(var(--warning-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-warning:hover{color:rgb(var(--warning-6));background-color:var(--color-fill-2);border-color:transparent}.arco-btn-text.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-text.arco-btn-status-warning:active{color:rgb(var(--warning-6));background-color:var(--color-fill-3);border-color:transparent}.arco-btn-text.arco-btn-status-warning.arco-btn-loading{color:rgb(var(--warning-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-warning.arco-btn-disabled{color:var(--color-warning-light-3);background-color:transparent;border:1px solid transparent}.arco-btn-text.arco-btn-status-danger{color:rgb(var(--danger-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-danger:hover{color:rgb(var(--danger-6));background-color:var(--color-fill-2);border-color:transparent}.arco-btn-text.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-text.arco-btn-status-danger:active{color:rgb(var(--danger-6));background-color:var(--color-fill-3);border-color:transparent}.arco-btn-text.arco-btn-status-danger.arco-btn-loading{color:rgb(var(--danger-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-danger.arco-btn-disabled{color:var(--color-danger-light-3);background-color:transparent;border:1px solid transparent}.arco-btn-text.arco-btn-status-success{color:rgb(var(--success-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-success:hover{color:rgb(var(--success-6));background-color:var(--color-fill-2);border-color:transparent}.arco-btn-text.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-text.arco-btn-status-success:active{color:rgb(var(--success-6));background-color:var(--color-fill-3);border-color:transparent}.arco-btn-text.arco-btn-status-success.arco-btn-loading{color:rgb(var(--success-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-success.arco-btn-disabled{color:var(--color-success-light-3);background-color:transparent;border:1px solid transparent}.arco-btn-size-mini{height:24px;padding:0 11px;font-size:12px;border-radius:var(--border-radius-small)}.arco-btn-size-mini:not(.arco-btn-only-icon) .arco-btn-icon{margin-right:4px}.arco-btn-size-mini svg{vertical-align:-1px}.arco-btn-size-mini.arco-btn-loading-fixed-width.arco-btn-loading{padding-right:3px;padding-left:3px}.arco-btn-size-mini.arco-btn-only-icon{width:24px;height:24px;padding:0}.arco-btn-size-mini.arco-btn-shape-circle{width:24px;height:24px;padding:0;text-align:center;border-radius:var(--border-radius-circle)}.arco-btn-size-mini.arco-btn-shape-round{border-radius:12px}.arco-btn-size-small{height:28px;padding:0 15px;font-size:14px;border-radius:var(--border-radius-small)}.arco-btn-size-small:not(.arco-btn-only-icon) .arco-btn-icon{margin-right:6px}.arco-btn-size-small svg{vertical-align:-2px}.arco-btn-size-small.arco-btn-loading-fixed-width.arco-btn-loading{padding-right:5px;padding-left:5px}.arco-btn-size-small.arco-btn-only-icon{width:28px;height:28px;padding:0}.arco-btn-size-small.arco-btn-shape-circle{width:28px;height:28px;padding:0;text-align:center;border-radius:var(--border-radius-circle)}.arco-btn-size-small.arco-btn-shape-round{border-radius:14px}.arco-btn-size-medium{height:32px;padding:0 15px;font-size:14px;border-radius:var(--border-radius-small)}.arco-btn-size-medium:not(.arco-btn-only-icon) .arco-btn-icon{margin-right:8px}.arco-btn-size-medium svg{vertical-align:-2px}.arco-btn-size-medium.arco-btn-loading-fixed-width.arco-btn-loading{padding-right:4px;padding-left:4px}.arco-btn-size-medium.arco-btn-only-icon{width:32px;height:32px;padding:0}.arco-btn-size-medium.arco-btn-shape-circle{width:32px;height:32px;padding:0;text-align:center;border-radius:var(--border-radius-circle)}.arco-btn-size-medium.arco-btn-shape-round{border-radius:16px}.arco-btn-size-large{height:36px;padding:0 19px;font-size:14px;border-radius:var(--border-radius-small)}.arco-btn-size-large:not(.arco-btn-only-icon) .arco-btn-icon{margin-right:8px}.arco-btn-size-large svg{vertical-align:-2px}.arco-btn-size-large.arco-btn-loading-fixed-width.arco-btn-loading{padding-right:8px;padding-left:8px}.arco-btn-size-large.arco-btn-only-icon{width:36px;height:36px;padding:0}.arco-btn-size-large.arco-btn-shape-circle{width:36px;height:36px;padding:0;text-align:center;border-radius:var(--border-radius-circle)}.arco-btn-size-large.arco-btn-shape-round{border-radius:18px}.arco-btn-group{display:inline-flex;align-items:center}.arco-btn-group .arco-btn-outline:not(:first-child),.arco-btn-group .arco-btn-dashed:not(:first-child){margin-left:-1px}.arco-btn-group .arco-btn-primary:not(:last-child){border-right:1px solid rgb(var(--primary-5))}.arco-btn-group .arco-btn-secondary:not(:last-child){border-right:1px solid var(--color-secondary-hover)}.arco-btn-group .arco-btn-status-warning:not(:last-child){border-right:1px solid rgb(var(--warning-5))}.arco-btn-group .arco-btn-status-danger:not(:last-child){border-right:1px solid rgb(var(--danger-5))}.arco-btn-group .arco-btn-status-success:not(:last-child){border-right:1px solid rgb(var(--success-5))}.arco-btn-group .arco-btn-outline:hover,.arco-btn-group .arco-btn-dashed:hover,.arco-btn-group .arco-btn-outline:active,.arco-btn-group .arco-btn-dashed:active{z-index:2}.arco-btn-group .arco-btn:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.arco-btn-group .arco-btn:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.arco-btn-group .arco-btn:not(:first-child):not(:last-child){border-radius:0}body[arco-theme=dark] .arco-btn-primary.arco-btn-disabled{color:#ffffff4d}.arco-calendar{box-sizing:border-box;border:1px solid var(--color-neutral-3)}.arco-calendar-header{display:flex;padding:24px}.arco-calendar-header-left{position:relative;display:flex;flex:1;align-items:center;height:28px;line-height:28px}.arco-calendar-header-right{position:relative;height:28px}.arco-calendar-header-value{color:var(--color-text-1);font-weight:500;font-size:20px}.arco-calendar-header-icon{width:28px;height:28px;margin-right:12px;color:var(--color-text-2);font-size:12px;line-height:28px;text-align:center;background-color:var(--color-bg-5);border-radius:50%;transition:all .1s cubic-bezier(0,0,1,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-calendar-header-icon:not(:first-child){margin:0 12px}.arco-calendar-header-icon:focus-visible{box-shadow:0 0 0 2px var(--color-primary-light-3)}.arco-calendar-header-icon:not(.arco-calendar-header-icon-hidden){cursor:pointer}.arco-calendar-header-icon:not(.arco-calendar-header-icon-hidden):hover{background-color:var(--color-fill-3)}.arco-calendar .arco-calendar-header-value-year{width:100px;margin-right:8px}.arco-calendar .arco-calendar-header-value-month{width:76px;margin-right:32px}.arco-calendar-month{width:100%}.arco-calendar-month-row{display:flex;height:100px}.arco-calendar-month-row .arco-calendar-cell{flex:1;overflow:hidden;border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-month-row:last-child .arco-calendar-cell{border-bottom:unset}.arco-calendar-month-cell-body{box-sizing:border-box}.arco-calendar-mode-month:not(.arco-calendar-panel) .arco-calendar-cell:not(:last-child){border-right:1px solid var(--color-neutral-3)}.arco-calendar-week-list{display:flex;box-sizing:border-box;width:100%;padding:0;border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-week-list-item{flex:1;padding:20px 16px;color:#7d7d7f;text-align:left}.arco-calendar-cell .arco-calendar-date{box-sizing:border-box;width:100%;height:100%;padding:10px;cursor:pointer}.arco-calendar-cell .arco-calendar-date-circle{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%}.arco-calendar-date-content{height:70px;overflow-y:auto}.arco-calendar-cell-today .arco-calendar-date-circle{box-sizing:border-box;border:1px solid rgb(var(--primary-6))}.arco-calendar-date-value{color:var(--color-text-4);font-weight:500;font-size:16px}.arco-calendar-cell-in-view .arco-calendar-date-value{color:var(--color-text-1)}.arco-calendar-mode-month .arco-calendar-cell-selected .arco-calendar-date-circle,.arco-calendar-mode-year .arco-calendar-cell-selected .arco-calendar-cell-selected .arco-calendar-date-circle{box-sizing:border-box;color:#fff;background-color:rgb(var(--primary-6));border:1px solid rgb(var(--primary-6))}.arco-calendar-mode-year:not(.arco-calendar-panel){min-width:820px}.arco-calendar-mode-year .arco-calendar-header{border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-mode-year .arco-calendar-body{padding:12px}.arco-calendar-mode-year .arco-calendar-year-row{display:flex}.arco-calendar-year-row>.arco-calendar-cell{flex:1;padding:20px 8px}.arco-calendar-year-row>.arco-calendar-cell:not(:last-child){border-right:1px solid var(--color-neutral-3)}.arco-calendar-year-row:not(:last-child)>.arco-calendar-cell{border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-month-with-days .arco-calendar-month-row{height:26px}.arco-calendar-month-with-days .arco-calendar-cell{border-bottom:0}.arco-calendar-month-with-days .arco-calendar-month-cell-body{padding:0}.arco-calendar-month-with-days .arco-calendar-month-title{padding:10px 6px;color:var(--color-text-1);font-weight:500;font-size:16px}.arco-calendar-month-cell{width:100%;font-size:12px}.arco-calendar-month-cell .arco-calendar-week-list{padding:0;border-bottom:unset}.arco-calendar-month-cell .arco-calendar-week-list-item{padding:6px;color:#7d7d7f;text-align:center}.arco-calendar-month-cell .arco-calendar-cell{text-align:center}.arco-calendar-month-cell .arco-calendar-date{padding:2px}.arco-calendar-month-cell .arco-calendar-date-value{font-size:14px}.arco-calendar-month-cell .arco-calendar-date-circle{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%}.arco-calendar-panel{background-color:var(--color-bg-5);border:1px solid var(--color-neutral-3)}.arco-calendar-panel .arco-calendar-header{padding:8px 16px;border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-panel .arco-calendar-header-value{flex:1;font-size:14px;line-height:24px;text-align:center}.arco-calendar-panel .arco-calendar-header-icon{width:24px;height:24px;margin-right:2px;margin-left:2px;line-height:24px}.arco-calendar-panel .arco-calendar-body{padding:14px 16px}.arco-calendar-panel .arco-calendar-month-cell-body{padding:0}.arco-calendar-panel .arco-calendar-month-row{height:unset}.arco-calendar-panel .arco-calendar-week-list{padding:0;border-bottom:unset}.arco-calendar-panel .arco-calendar-week-list-item{height:32px;padding:0;font-weight:400;line-height:32px;text-align:center}.arco-calendar-panel .arco-calendar-cell,.arco-calendar-panel .arco-calendar-year-row .arco-calendar-cell{box-sizing:border-box;padding:2px 0;text-align:center;border-right:0;border-bottom:0}.arco-calendar-panel .arco-calendar-cell .arco-calendar-date{display:flex;justify-content:center;padding:4px 0}.arco-calendar-panel .arco-calendar-cell .arco-calendar-date-value{min-width:24px;height:24px;font-size:14px;line-height:24px;cursor:pointer}.arco-calendar-panel.arco-calendar-mode-year .arco-calendar-cell{padding:4px 0}.arco-calendar-panel.arco-calendar-mode-year .arco-calendar-cell .arco-calendar-date{padding:4px}.arco-calendar-panel.arco-calendar-mode-year .arco-calendar-cell .arco-calendar-date-value{width:100%;border-radius:12px}.arco-calendar-panel .arco-calendar-cell-selected .arco-calendar-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));border-radius:50%}.arco-calendar-panel .arco-calendar-cell:not(.arco-calendar-cell-selected):not(.arco-calendar-cell-range-start):not(.arco-calendar-cell-range-end):not(.arco-calendar-cell-hover-range-start):not(.arco-calendar-cell-hover-range-end):not(.arco-calendar-cell-disabled):not(.arco-calendar-cell-week) .arco-calendar-date-value:hover{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1);border-radius:50%}.arco-calendar-panel.arco-calendar-mode-year .arco-calendar-cell:not(.arco-calendar-cell-selected):not(.arco-calendar-cell-range-start):not(.arco-calendar-cell-range-end):not(.arco-calendar-cell-hover-range-start):not(.arco-calendar-cell-hover-range-end):not(.arco-calendar-cell-disabled) .arco-calendar-date-value:hover{border-radius:12px}.arco-calendar-panel .arco-calendar-cell-today{position:relative}.arco-calendar-panel .arco-calendar-cell-today:after{position:absolute;bottom:0;left:50%;display:block;width:4px;height:4px;margin-left:-2px;background-color:rgb(var(--primary-6));border-radius:50%;content:""}.arco-calendar-cell-in-range .arco-calendar-date{background-color:var(--color-primary-light-1)}.arco-calendar-cell-range-start .arco-calendar-date{border-radius:16px 0 0 16px}.arco-calendar-cell-range-end .arco-calendar-date{border-radius:0 16px 16px 0}.arco-calendar-cell-in-range-near-hover .arco-calendar-date{border-radius:0}.arco-calendar-cell-range-start .arco-calendar-date-value,.arco-calendar-cell-range-end .arco-calendar-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));border-radius:50%}.arco-calendar-cell-hover-in-range .arco-calendar-date{background-color:var(--color-primary-light-1)}.arco-calendar-cell-hover-range-start .arco-calendar-date{border-radius:16px 0 0 16px}.arco-calendar-cell-hover-range-end .arco-calendar-date{border-radius:0 16px 16px 0}.arco-calendar-cell-hover-range-start .arco-calendar-date-value,.arco-calendar-cell-hover-range-end .arco-calendar-date-value{color:var(--color-text-1);background-color:var(--color-primary-light-2);border-radius:50%}.arco-calendar-panel .arco-calendar-cell-disabled>.arco-calendar-date{background-color:var(--color-fill-1);cursor:not-allowed}.arco-calendar-panel .arco-calendar-cell-disabled>.arco-calendar-date>.arco-calendar-date-value{color:var(--color-text-4);background-color:var(--color-fill-1);cursor:not-allowed}.arco-calendar-panel .arco-calendar-footer-btn-wrapper{height:38px;color:var(--color-text-1);line-height:38px;text-align:center;border-top:1px solid var(--color-neutral-3);cursor:pointer}.arco-calendar-rtl{direction:rtl}.arco-calendar-rtl .arco-calendar-header-icon{margin-right:0;margin-left:12px;transform:scaleX(-1)}.arco-calendar-rtl .arco-calendar-week-list-item{text-align:right}.arco-calendar-rtl.arco-calendar-mode-month:not(.arco-calendar-panel) .arco-calendar-cell:not(:last-child){border-right:0;border-left:1px solid var(--color-neutral-3)}.arco-calendar-rtl .arco-calendar-header-value-year{margin-right:0;margin-left:8px}.arco-calendar-rtl .arco-calendar-header-value-month{margin-right:0;margin-left:32px}.arco-card{position:relative;background:var(--color-bg-2);border-radius:var(--border-radius-none);transition:box-shadow .2s cubic-bezier(0,0,1,1)}.arco-card-header{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;overflow:hidden;border-bottom:1px solid var(--color-neutral-3)}.arco-card-header-no-title:before{display:block;content:" "}.arco-card-header-title{flex:1;color:var(--color-text-1);font-weight:500;line-height:1.5715;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-card-header-extra{color:rgb(var(--primary-6));overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-card-body{color:var(--color-text-2)}.arco-card-cover{overflow:hidden}.arco-card-cover>*{display:block;width:100%}.arco-card-actions{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.arco-card-actions:before{visibility:hidden;content:""}.arco-card-actions-right{display:flex;align-items:center}.arco-card-actions-item{display:flex;align-items:center;justify-content:center;color:var(--color-text-2);cursor:pointer;transition:color .2s cubic-bezier(0,0,1,1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-card-actions-item:hover{color:rgb(var(--primary-6))}.arco-card-actions-item:not(:last-child){margin-right:12px}.arco-card-meta-footer{display:flex;align-items:center;justify-content:space-between}.arco-card-meta-footer:last-child{margin-top:20px}.arco-card-meta-footer-only-actions:before{visibility:hidden;content:""}.arco-card-meta-footer .arco-card-actions{margin-top:0}.arco-card-meta-title{color:var(--color-text-1);font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-card-meta-description:not(:first-child){margin-top:4px}.arco-card-grid{position:relative;box-sizing:border-box;width:33.33%;box-shadow:1px 0 0 0 var(--color-neutral-3),0 1px 0 0 var(--color-neutral-3),1px 1px 0 0 var(--color-neutral-3),1px 0 0 0 var(--color-neutral-3) inset,0 1px 0 0 var(--color-neutral-3) inset}.arco-card-grid:before{position:absolute;inset:0;transition:box-shadow .2s cubic-bezier(0,0,1,1);content:"";pointer-events:none}.arco-card-grid-hoverable:hover{z-index:1}.arco-card-grid-hoverable:hover:before{box-shadow:0 4px 10px rgb(var(--gray-2))}.arco-card-grid .arco-card{background:none;box-shadow:none}.arco-card-contain-grid:not(.arco-card-loading)>.arco-card-body{display:flex;flex-wrap:wrap;margin:0 -1px;padding:0}.arco-card-hoverable:hover{box-shadow:0 4px 10px rgb(var(--gray-2))}.arco-card-bordered{border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-small)}.arco-card-bordered .arco-card-cover{border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}.arco-card-loading .arco-card-body{overflow:hidden;text-align:center}.arco-card-size-medium{font-size:14px}.arco-card-size-medium .arco-card-header{height:46px;padding:10px 16px}.arco-card-size-medium .arco-card-header-title,.arco-card-size-medium .arco-card-meta-title{font-size:16px}.arco-card-size-medium .arco-card-header-extra{font-size:14px}.arco-card-size-medium .arco-card-body{padding:16px}.arco-card-size-small{font-size:14px}.arco-card-size-small .arco-card-header{height:40px;padding:8px 16px}.arco-card-size-small .arco-card-header-title,.arco-card-size-small .arco-card-meta-title{font-size:16px}.arco-card-size-small .arco-card-header-extra{font-size:14px}.arco-card-size-small .arco-card-body{padding:12px 16px}body[arco-theme=dark] .arco-card-grid-hoverable:hover:before,body[arco-theme=dark] .arco-card-hoverable:hover{box-shadow:0 4px 10px rgba(var(--gray-1),40%)}@keyframes arco-carousel-slide-x-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes arco-carousel-slide-x-out{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes arco-carousel-slide-x-in-reverse{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes arco-carousel-slide-x-out-reverse{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes arco-carousel-slide-y-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes arco-carousel-slide-y-out{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes arco-carousel-slide-y-in-reverse{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes arco-carousel-slide-y-out-reverse{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes arco-carousel-card-bottom-to-middle{0%{transform:translate(0) translateZ(-400px);opacity:0}to{transform:translate(0) translateZ(-200px);opacity:.4}}@keyframes arco-carousel-card-middle-to-bottom{0%{transform:translate(-100%) translateZ(-200px);opacity:.4}to{transform:translate(-100%) translateZ(-400px);opacity:0}}@keyframes arco-carousel-card-top-to-middle{0%{transform:translate(-50%) translateZ(0);opacity:1}to{transform:translate(-100%) translateZ(-200px);opacity:.4}}@keyframes arco-carousel-card-middle-to-top{0%{transform:translate(0) translateZ(-200px);opacity:.4}to{transform:translate(-50%) translateZ(0);opacity:1}}@keyframes arco-carousel-card-bottom-to-middle-reverse{0%{transform:translate(-100%) translateZ(-400px);opacity:0}to{transform:translate(-100%) translateZ(-200px);opacity:.4}}@keyframes arco-carousel-card-middle-to-bottom-reverse{0%{transform:translate(0) translateZ(-200px);opacity:.4}to{transform:translate(0) translateZ(-400px);opacity:0}}@keyframes arco-carousel-card-top-to-middle-reverse{0%{transform:translate(-50%) translateZ(0);opacity:1}to{transform:translate(0) translateZ(-200px);opacity:.4}}@keyframes arco-carousel-card-middle-to-top-reverse{0%{transform:translate(-100%) translateZ(-200px);opacity:.4}to{transform:translate(-50%) translateZ(0);opacity:1}}.arco-carousel{position:relative}.arco-carousel-indicator-position-outer{margin-bottom:30px}.arco-carousel-slide,.arco-carousel-card,.arco-carousel-fade{position:relative;width:100%;height:100%;overflow:hidden}.arco-carousel-slide>*,.arco-carousel-card>*,.arco-carousel-fade>*{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.arco-carousel-item-current{z-index:1}.arco-carousel-slide>*:not(.arco-carousel-item-current){display:none;visibility:hidden}.arco-carousel-slide.arco-carousel-horizontal .arco-carousel-item-slide-out{display:block;animation:arco-carousel-slide-x-out}.arco-carousel-slide.arco-carousel-horizontal .arco-carousel-item-slide-in{display:block;animation:arco-carousel-slide-x-in}.arco-carousel-slide.arco-carousel-horizontal.arco-carousel-negative .arco-carousel-item-slide-out{animation:arco-carousel-slide-x-out-reverse}.arco-carousel-slide.arco-carousel-horizontal.arco-carousel-negative .arco-carousel-item-slide-in{animation:arco-carousel-slide-x-in-reverse}.arco-carousel-slide.arco-carousel-vertical .arco-carousel-item-slide-out{display:block;animation:arco-carousel-slide-y-out}.arco-carousel-slide.arco-carousel-vertical .arco-carousel-item-slide-in{display:block;animation:arco-carousel-slide-y-in}.arco-carousel-slide.arco-carousel-vertical.arco-carousel-negative .arco-carousel-item-slide-out{animation:arco-carousel-slide-y-out-reverse}.arco-carousel-slide.arco-carousel-vertical.arco-carousel-negative .arco-carousel-item-slide-in{animation:arco-carousel-slide-y-in-reverse}.arco-carousel-card{perspective:800px}.arco-carousel-card>*{left:50%;transform:translate(-50%) translateZ(-400px);opacity:0;animation:arco-carousel-card-middle-to-bottom}.arco-carousel-card .arco-carousel-item-prev{transform:translate(-100%) translateZ(-200px);opacity:.4;animation:arco-carousel-card-top-to-middle}.arco-carousel-card .arco-carousel-item-next{transform:translate(0) translateZ(-200px);opacity:.4;animation:arco-carousel-card-bottom-to-middle}.arco-carousel-card .arco-carousel-item-current{transform:translate(-50%) translateZ(0);opacity:1;animation:arco-carousel-card-middle-to-top}.arco-carousel-card.arco-carousel-negative>*{animation:arco-carousel-card-middle-to-bottom-reverse}.arco-carousel-card.arco-carousel-negative .arco-carousel-item-prev{animation:arco-carousel-card-bottom-to-middle-reverse}.arco-carousel-card.arco-carousel-negative .arco-carousel-item-next{animation:arco-carousel-card-top-to-middle-reverse}.arco-carousel-card.arco-carousel-negative .arco-carousel-item-current{animation:arco-carousel-card-middle-to-top-reverse}.arco-carousel-fade>*{left:50%;transform:translate(-50%);opacity:0}.arco-carousel-fade .arco-carousel-item-current{opacity:1}.arco-carousel-indicator{position:absolute;display:flex;margin:0;padding:0}.arco-carousel-indicator-wrapper{position:absolute;z-index:2}.arco-carousel-indicator-wrapper-top{top:0;right:0;left:0;height:48px;background:linear-gradient(180deg,#00000026,#0000 87%)}.arco-carousel-indicator-wrapper-bottom{right:0;bottom:0;left:0;height:48px;background:linear-gradient(180deg,#0000 13%,#00000026)}.arco-carousel-indicator-wrapper-left{top:0;left:0;width:48px;height:100%;background:linear-gradient(90deg,#00000026,#0000 87%)}.arco-carousel-indicator-wrapper-right{top:0;right:0;width:48px;height:100%;background:linear-gradient(90deg,#0000 13%,#00000026)}.arco-carousel-indicator-wrapper-outer{right:0;left:0;background:none}.arco-carousel-indicator-bottom{bottom:12px;left:50%;transform:translate(-50%)}.arco-carousel-indicator-top{top:12px;left:50%;transform:translate(-50%)}.arco-carousel-indicator-left{top:50%;left:12px;transform:translate(-50%,-50%) rotate(90deg)}.arco-carousel-indicator-right{top:50%;right:12px;transform:translate(50%,-50%) rotate(90deg)}.arco-carousel-indicator-outer{left:50%;padding:4px;background-color:transparent;border-radius:20px;transform:translate(-50%)}.arco-carousel-indicator-outer.arco-carousel-indicator-dot{bottom:-22px}.arco-carousel-indicator-outer.arco-carousel-indicator-line{bottom:-20px}.arco-carousel-indicator-outer.arco-carousel-indicator-slider{bottom:-16px;padding:0;background-color:rgba(var(--gray-4),.5)}.arco-carousel-indicator-outer .arco-carousel-indicator-item{background-color:rgba(var(--gray-4),.5)}.arco-carousel-indicator-outer .arco-carousel-indicator-item:hover,.arco-carousel-indicator-outer .arco-carousel-indicator-item-active{background-color:var(--color-fill-4)}.arco-carousel-indicator-item{display:inline-block;background-color:#ffffff4d;border-radius:var(--border-radius-medium);cursor:pointer}.arco-carousel-indicator-item:hover,.arco-carousel-indicator-item-active{background-color:var(--color-white)}.arco-carousel-indicator-dot .arco-carousel-indicator-item{width:6px;height:6px;border-radius:50%}.arco-carousel-indicator-dot .arco-carousel-indicator-item:not(:last-child){margin-right:8px}.arco-carousel-indicator-line .arco-carousel-indicator-item{width:12px;height:4px}.arco-carousel-indicator-line .arco-carousel-indicator-item:not(:last-child){margin-right:8px}.arco-carousel-indicator-slider{width:48px;height:4px;background-color:#ffffff4d;border-radius:var(--border-radius-medium);cursor:pointer}.arco-carousel-indicator-slider .arco-carousel-indicator-item{position:absolute;top:0;height:100%;transition:left .3s}.arco-carousel-arrow>div{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--color-white);background-color:#ffffff4d;border-radius:50%;cursor:pointer}.arco-carousel-arrow>div>svg{color:var(--color-white);font-size:14px}.arco-carousel-arrow>div:hover{background-color:#ffffff80}.arco-carousel-arrow-left{top:50%;left:12px;transform:translateY(-50%)}.arco-carousel-arrow-right{top:50%;right:12px;transform:translateY(-50%)}.arco-carousel-arrow-top{top:12px;left:50%;transform:translate(-50%)}.arco-carousel-arrow-bottom{bottom:12px;left:50%;transform:translate(-50%)}.arco-carousel-arrow-hover div{opacity:0;transition:all .3s}.arco-carousel:hover .arco-carousel-arrow-hover div{opacity:1}body[arco-theme=dark] .arco-carousel-arrow>div{background-color:#17171a4d}body[arco-theme=dark] .arco-carousel-arrow>div:hover{background-color:#17171a80}body[arco-theme=dark] .arco-carousel-indicator-item,body[arco-theme=dark] .arco-carousel-indicator-slider{background-color:#17171a4d}body[arco-theme=dark] .arco-carousel-indicator-item-active,body[arco-theme=dark] .arco-carousel-indicator-item:hover{background-color:var(--color-white)}body[arco-theme=dark] .arco-carousel-indicator-outer.arco-carousel-indicator-slider{background-color:rgba(var(--gray-4),.5)}body[arco-theme=dark] .arco-carousel-indicator-outer .arco-carousel-indicator-item:hover,body[arco-theme=dark] .arco-carousel-indicator-outer .arco-carousel-indicator-item-active{background-color:var(--color-fill-4)}.arco-cascader-panel{display:inline-flex;box-sizing:border-box;height:200px;overflow:hidden;white-space:nowrap;list-style:none;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-cascader-search-panel{justify-content:flex-start;width:100%;overflow:auto}.arco-cascader-popup-trigger-hover .arco-cascader-list-item{transition:fontweight 0s}.arco-cascader-highlight{font-weight:500}.arco-cascader-panel-column{position:relative;display:inline-flex;flex-direction:column;min-width:120px;height:100%;max-height:200px;background-color:var(--color-bg-popup)}.arco-cascader-panel-column-loading{display:inline-flex;align-items:center;justify-content:center}.arco-cascader-panel-column:not(:last-of-type){border-right:1px solid var(--color-fill-3)}.arco-cascader-column-content{flex:1;max-height:200px;overflow-y:auto}.arco-cascader-list-wrapper{position:relative;display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding:4px 0}.arco-cascader-list-wrapper-with-footer{padding-bottom:0}.arco-cascader-list-empty{display:flex;align-items:center;width:100%;height:100%}.arco-cascader-list{flex:1;box-sizing:border-box;margin:0;padding:0;list-style:none}.arco-cascader-list-multiple .arco-cascader-option-label,.arco-cascader-list-strictly .arco-cascader-option-label{padding-left:0}.arco-cascader-list-multiple .arco-cascader-option,.arco-cascader-list-strictly .arco-cascader-option{padding-left:12px}.arco-cascader-list-multiple .arco-cascader-option .arco-checkbox,.arco-cascader-list-strictly .arco-cascader-option .arco-checkbox,.arco-cascader-list-multiple .arco-cascader-option .arco-radio,.arco-cascader-list-strictly .arco-cascader-option .arco-radio{margin-right:8px;padding-left:0}.arco-cascader-search-list.arco-cascader-list-multiple .arco-cascader-option-label{padding-right:12px}.arco-cascader-list-footer{box-sizing:border-box;height:36px;padding-left:12px;line-height:36px;border-top:1px solid var(--color-fill-3)}.arco-cascader-option,.arco-cascader-search-option{position:relative;display:flex;box-sizing:border-box;min-width:100px;height:36px;color:var(--color-text-1);font-size:14px;line-height:36px;background-color:transparent;cursor:pointer}.arco-cascader-option-label,.arco-cascader-search-option-label{flex-grow:1;padding-right:34px;padding-left:12px}.arco-cascader-option .arco-icon-right,.arco-cascader-search-option .arco-icon-right,.arco-cascader-option .arco-icon-check,.arco-cascader-search-option .arco-icon-check{position:absolute;top:50%;right:10px;color:var(--color-text-2);font-size:12px;transform:translateY(-50%)}.arco-cascader-option .arco-icon-check,.arco-cascader-search-option .arco-icon-check{color:rgb(var(--primary-6))}.arco-cascader-option .arco-icon-loading,.arco-cascader-search-option .arco-icon-loading{position:absolute;top:50%;right:10px;margin-top:-6px;color:rgb(var(--primary-6));font-size:12px}.arco-cascader-option:hover,.arco-cascader-search-option-hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-cascader-option:hover .arco-checkbox:not(.arco-checkbox-disabled):not(.arco-checkbox-checked):hover .arco-checkbox-icon-hover:before,.arco-cascader-search-option-hover .arco-checkbox:not(.arco-checkbox-disabled):not(.arco-checkbox-checked):hover .arco-checkbox-icon-hover:before{background-color:var(--color-fill-3)}.arco-cascader-option:hover .arco-radio:not(.arco-radio-disabled):not(.arco-radio-checked):hover .arco-radio-icon-hover:before,.arco-cascader-search-option-hover .arco-radio:not(.arco-radio-disabled):not(.arco-radio-checked):hover .arco-radio-icon-hover:before{background-color:var(--color-fill-3)}.arco-cascader-option-disabled,.arco-cascader-search-option-disabled,.arco-cascader-option-disabled:hover,.arco-cascader-search-option-disabled:hover{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-cascader-option-disabled .arco-icon-right,.arco-cascader-search-option-disabled .arco-icon-right,.arco-cascader-option-disabled:hover .arco-icon-right,.arco-cascader-search-option-disabled:hover .arco-icon-right{color:inherit}.arco-cascader-option-disabled .arco-icon-check,.arco-cascader-search-option-disabled .arco-icon-check,.arco-cascader-option-disabled:hover .arco-icon-check,.arco-cascader-search-option-disabled:hover .arco-icon-check{color:var(--color-primary-light-3)}.arco-cascader-option-active{color:var(--color-text-1);background-color:var(--color-fill-2);transition:all .2s cubic-bezier(0,0,1,1)}.arco-cascader-option-active:hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-cascader-option-active.arco-cascader-option-disabled,.arco-cascader-option-active.arco-cascader-option-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2)}.cascader-slide-enter-active,.cascader-slide-leave-active{transition:margin .3s cubic-bezier(.34,.69,.1,1)}.cascader-slide-enter-from,.cascader-slide-leave-to{margin-left:-120px}.cascader-slide-enter-to,.cascader-slide-leave-from{margin-left:0}.arco-icon-hover.arco-checkbox-icon-hover:before{width:24px;height:24px}.arco-checkbox{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding-left:5px;font-size:14px;line-height:unset;cursor:pointer}.arco-checkbox>input[type=checkbox]{position:absolute;top:0;left:0;width:0;height:0;opacity:0}.arco-checkbox>input[type=checkbox]:focus-visible+.arco-checkbox-icon-hover:before{background-color:var(--color-fill-2)}.arco-checkbox:hover .arco-checkbox-icon-hover:before{background-color:var(--color-fill-2)}.arco-checkbox-label{margin-left:8px;color:var(--color-text-1)}.arco-checkbox-icon{position:relative;box-sizing:border-box;width:14px;height:14px;background-color:var(--color-bg-2);border:2px solid var(--color-fill-3);border-radius:var(--border-radius-small);-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-checkbox-icon:after{position:absolute;top:50%;left:50%;display:block;width:6px;height:2px;background:var(--color-white);border-radius:.5px;transform:translate(-50%) translateY(-50%) scale(0);content:""}.arco-checkbox-icon-check{position:relative;display:block;width:8px;height:100%;margin:0 auto;color:var(--color-white);transform:scale(0);transform-origin:center 75%}.arco-checkbox:hover .arco-checkbox-icon{border-color:var(--color-fill-4);transition:border-color .1s cubic-bezier(0,0,1,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-checked:hover .arco-checkbox-icon,.arco-checkbox-indeterminate:hover .arco-checkbox-icon{transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-checked .arco-checkbox-icon{background-color:rgb(var(--primary-6));border-color:transparent}.arco-checkbox-checked .arco-checkbox-icon-check{transform:scale(1);transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-indeterminate .arco-checkbox-icon{background-color:rgb(var(--primary-6));border-color:transparent}.arco-checkbox-indeterminate .arco-checkbox-icon svg{transform:scale(0)}.arco-checkbox-indeterminate .arco-checkbox-icon:after{transform:translate(-50%) translateY(-50%) scale(1);transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox.arco-checkbox-disabled,.arco-checkbox.arco-checkbox-disabled .arco-checkbox-icon-hover{cursor:not-allowed}.arco-checkbox.arco-checkbox-disabled:hover .arco-checkbox-mask{border-color:var(--color-fill-3)}.arco-checkbox-checked:hover .arco-checkbox-icon,.arco-checkbox-indeterminate:hover .arco-checkbox-icon{border-color:transparent}.arco-checkbox-disabled .arco-checkbox-icon{background-color:var(--color-fill-2);border-color:var(--color-fill-3)}.arco-checkbox-disabled.arco-checkbox-checked .arco-checkbox-icon,.arco-checkbox-disabled.arco-checkbox-checked:hover .arco-checkbox-icon{background-color:var(--color-primary-light-3);border-color:transparent}.arco-checkbox-disabled:hover .arco-checkbox-icon-hover:before,.arco-checkbox-checked:hover .arco-checkbox-icon-hover:before,.arco-checkbox-indeterminate:hover .arco-checkbox-icon-hover:before{background-color:transparent}.arco-checkbox-disabled:hover .arco-checkbox-icon{border-color:var(--color-fill-3)}.arco-checkbox-disabled .arco-checkbox-label{color:var(--color-text-4)}.arco-checkbox-disabled .arco-checkbox-icon-check{color:var(--color-fill-3)}.arco-checkbox-group{display:inline-block}.arco-checkbox-group .arco-checkbox{margin-right:16px}.arco-checkbox-group-direction-vertical .arco-checkbox{display:flex;margin-right:0;line-height:32px}.arco-icon-hover.arco-collapse-item-icon-hover:before{width:16px;height:16px}.arco-icon-hover.arco-collapse-item-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-collapse{overflow:hidden;line-height:1.5715;border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium)}.arco-collapse-item{box-sizing:border-box;border-bottom:1px solid var(--color-border-2)}.arco-collapse-item-active>.arco-collapse-item-header{background-color:var(--color-bg-2);border-color:var(--color-neutral-3);transition:border-color 0s ease 0s}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-header-title{font-weight:500}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-expand-icon{transform:rotate(90deg)}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-icon-right .arco-collapse-item-expand-icon{transform:rotate(-90deg)}.arco-collapse-item-header{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding-top:8px;padding-bottom:8px;overflow:hidden;color:var(--color-text-1);font-size:14px;line-height:24px;background-color:var(--color-bg-2);border-bottom:1px solid transparent;cursor:pointer;transition:border-color 0s ease .19s}.arco-collapse-item-header-left{padding-right:13px;padding-left:34px}.arco-collapse-item-header-right{padding-right:34px;padding-left:13px}.arco-collapse-item-header-right+.arco-collapse-item-content{padding-left:13px}.arco-collapse-item-header-disabled{color:var(--color-text-4);background-color:var(--color-bg-2);cursor:not-allowed}.arco-collapse-item-header-disabled .arco-collapse-item-header-icon{color:var(--color-text-4)}.arco-collapse-item-header-title{display:inline}.arco-collapse-item-header-extra{float:right}.arco-collapse-item .arco-collapse-item-icon-hover{position:absolute;top:50%;left:13px;text-align:center;transform:translateY(-50%)}.arco-collapse-item .arco-collapse-item-icon-right{right:13px;left:unset}.arco-collapse-item .arco-collapse-item-icon-right>.arco-collapse-item-header-icon-down{transform:rotate(-90deg)}.arco-collapse-item .arco-collapse-item-expand-icon{position:relative;display:block;color:var(--color-neutral-7);font-size:14px;vertical-align:middle;transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-collapse-item-content{position:relative;padding-right:13px;padding-left:34px;overflow:hidden;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-1)}.arco-collapse-item-content-expanded{display:block;height:auto}.arco-collapse-item-content-box{padding:8px 0}.arco-collapse-item.arco-collapse-item-disabled>.arco-collapse-item-content{color:var(--color-text-4)}.arco-collapse-item-no-icon>.arco-collapse-item-header{padding-right:13px;padding-left:13px}.arco-collapse-item:last-of-type{border-bottom:none}.arco-collapse.arco-collapse-borderless{border:none}.arco-collapse:after{display:table;clear:both;content:""}.collapse-slider-enter-from,.collapse-slider-leave-to{height:0}.collapse-slider-enter-active,.collapse-slider-leave-active{transition:height .2s cubic-bezier(.34,.69,.1,1)}.arco-color-picker{display:inline-flex;align-items:center;box-sizing:border-box;background-color:var(--color-fill-2);border-radius:2px}.arco-color-picker-preview{box-sizing:border-box;border:1px solid var(--color-border-2)}.arco-color-picker-value{margin-left:4px;color:var(--color-text-1);font-weight:400}.arco-color-picker-input{display:none}.arco-color-picker:hover{background-color:var(--color-fill-3);cursor:pointer}.arco-color-picker-size-medium{height:32px;padding:4px}.arco-color-picker-size-medium .arco-color-picker-preview{width:24px;height:24px}.arco-color-picker-size-medium .arco-color-picker-value{font-size:14px}.arco-color-picker-size-mini{height:24px;padding:4px}.arco-color-picker-size-mini .arco-color-picker-preview{width:16px;height:16px}.arco-color-picker-size-mini .arco-color-picker-value{font-size:12px}.arco-color-picker-size-small{height:28px;padding:3px 4px}.arco-color-picker-size-small .arco-color-picker-preview{width:22px;height:22px}.arco-color-picker-size-small .arco-color-picker-value{font-size:14px}.arco-color-picker-size-large{height:36px;padding:5px}.arco-color-picker-size-large .arco-color-picker-preview{width:26px;height:26px}.arco-color-picker-size-large .arco-color-picker-value{font-size:14px}.arco-color-picker.arco-color-picker-disabled{background-color:var(--color-fill-2);cursor:not-allowed}.arco-color-picker.arco-color-picker-disabled .arco-color-picker-value{color:var(--color-text-4)}.arco-color-picker-panel{width:260px;background-color:var(--color-bg-1);border-radius:2px;box-shadow:0 8px 20px #0000001a}.arco-color-picker-panel .arco-color-picker-palette{position:relative;box-sizing:border-box;width:100%;height:178px;overflow:hidden;background-image:linear-gradient(0deg,#000000,transparent),linear-gradient(90deg,#fff,#fff0);border-top:1px solid var(--color-border-2);border-right:1px solid var(--color-border-2);border-left:1px solid var(--color-border-2);cursor:pointer}.arco-color-picker-panel .arco-color-picker-palette .arco-color-picker-handler{position:absolute;box-sizing:border-box;width:16px;height:16px;background-color:transparent;border:2px solid var(--color-bg-white);border-radius:50%;transform:translate(-50%,-50%)}.arco-color-picker-panel .arco-color-picker-panel-control{padding:12px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-control-wrapper{display:flex;align-items:center}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-control-wrapper .arco-color-picker-preview{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:40px;height:40px;margin-left:auto;color:#fff;font-size:20px;border:1px solid var(--color-border-2);border-radius:4px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-control-wrapper .arco-color-picker-control-bar-alpha{margin-top:12px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper{display:flex;margin-top:12px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-color-picker-group-wrapper{display:flex;flex:1;margin-left:12px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-select-view,.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-input-wrapper{margin-right:0;padding:0 6px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-input-suffix,.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-input-prefix,.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-select-view-suffix{padding:0;font-size:12px}.arco-color-picker-panel .arco-color-picker-panel-colors{padding:12px;border-top:1px solid var(--color-fill-3)}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-section:not(:first-child){margin-top:12px}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-text{color:var(--color-text-1);font-weight:400;font-size:12px}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-empty{margin:12px 0;color:var(--color-text-3);font-size:12px}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-wrapper{margin-top:8px}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-list{display:flex;flex-wrap:wrap;margin:-8px -4px 0}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-color-block{width:16px;height:16px;margin:6px 3px 0;overflow:hidden;background-image:conic-gradient(rgba(0,0,0,.06) 0 25%,transparent 0 50%,rgba(0,0,0,.06) 0 75%,transparent 0);background-size:8px 8px;border-radius:2px;cursor:pointer;transition:transform ease-out 60ms}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-color-block .arco-color-picker-block{width:100%;height:100%}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-color-block:hover{transform:scale(1.1)}.arco-color-picker-panel .arco-color-picker-control-bar-bg{background-image:conic-gradient(rgba(0,0,0,.06) 0 25%,transparent 0 50%,rgba(0,0,0,.06) 0 75%,transparent 0);background-size:8px 8px;border-radius:10px}.arco-color-picker-panel .arco-color-picker-control-bar{position:relative;box-sizing:border-box;width:182px;height:14px;border:1px solid var(--color-border-2);border-radius:10px;cursor:pointer}.arco-color-picker-panel .arco-color-picker-control-bar .arco-color-picker-handler{position:absolute;top:-2px;box-sizing:border-box;width:16px;height:16px;background-color:var(--color-bg-white);border:1px solid var(--color-border-2);border-radius:50%;transform:translate(-50%)}.arco-color-picker-panel .arco-color-picker-control-bar .arco-color-picker-handler:before{display:block;width:100%;height:100%;background:var(--color-bg-white);border-radius:50%;content:""}.arco-color-picker-panel .arco-color-picker-control-bar .arco-color-picker-handler:after{position:absolute;top:50%;left:50%;width:8px;height:8px;background:currentColor;border-radius:50%;transform:translate(-50%,-50%);content:""}.arco-color-picker-panel .arco-color-picker-control-bar-hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.arco-color-picker-panel .arco-color-picker-select{width:58px}.arco-color-picker-panel .arco-color-picker-input-alpha{flex:0 0 auto;width:52px}.arco-color-picker-panel .arco-color-picker-input-hex .arco-input{padding-left:4px}.arco-color-picker-panel.arco-color-picker-panel-disabled .arco-color-picker-palette,.arco-color-picker-panel.arco-color-picker-panel-disabled .arco-color-picker-control-bar,.arco-color-picker-panel.arco-color-picker-panel-disabled .arco-color-picker-color-block,.arco-color-picker-panel.arco-color-picker-panel-disabled .arco-color-picker-preview{cursor:not-allowed;opacity:.8}.arco-color-picker-select-popup .arco-select-option{font-size:12px!important;line-height:24px!important}.arco-comment{display:flex;flex-wrap:nowrap;font-size:14px;line-height:1.5715}.arco-comment:not(:first-of-type),.arco-comment-inner-comment{margin-top:20px}.arco-comment-inner{flex:1}.arco-comment-avatar{flex-shrink:0;margin-right:12px;cursor:pointer}.arco-comment-avatar>img{width:32px;height:32px;border-radius:var(--border-radius-circle)}.arco-comment-author{margin-right:8px;color:var(--color-text-2);font-size:14px}.arco-comment-datetime{color:var(--color-text-3);font-size:12px}.arco-comment-content{color:var(--color-text-1)}.arco-comment-title-align-right{display:flex;justify-content:space-between}.arco-comment-actions{margin-top:8px;color:var(--color-text-2);font-size:14px}.arco-comment-actions>*:not(:last-child){margin-right:8px}.arco-comment-actions-align-right{display:flex;justify-content:flex-end}.arco-picker-container,.arco-picker-range-container{box-sizing:border-box;min-height:60px;overflow:hidden;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px #0000001a}.arco-picker-container-shortcuts-placement-left,.arco-picker-range-container-shortcuts-placement-left,.arco-picker-container-shortcuts-placement-right,.arco-picker-range-container-shortcuts-placement-right{display:flex;align-items:flex-start}.arco-picker-container-shortcuts-placement-left>.arco-picker-shortcuts,.arco-picker-range-container-shortcuts-placement-left>.arco-picker-shortcuts,.arco-picker-container-shortcuts-placement-right>.arco-picker-shortcuts,.arco-picker-range-container-shortcuts-placement-right>.arco-picker-shortcuts{display:flex;flex-direction:column;box-sizing:border-box;padding:5px 8px;overflow-x:hidden;overflow-y:auto}.arco-picker-container-shortcuts-placement-left>.arco-picker-shortcuts>*,.arco-picker-range-container-shortcuts-placement-left>.arco-picker-shortcuts>*,.arco-picker-container-shortcuts-placement-right>.arco-picker-shortcuts>*,.arco-picker-range-container-shortcuts-placement-right>.arco-picker-shortcuts>*{margin:5px 0}.arco-picker-container-shortcuts-placement-left .arco-picker-panel-wrapper,.arco-picker-range-container-shortcuts-placement-left .arco-picker-panel-wrapper,.arco-picker-container-shortcuts-placement-left .arco-picker-range-panel-wrapper,.arco-picker-range-container-shortcuts-placement-left .arco-picker-range-panel-wrapper{border-left:1px solid var(--color-neutral-3)}.arco-picker-container-shortcuts-placement-right .arco-picker-panel-wrapper,.arco-picker-range-container-shortcuts-placement-right .arco-picker-panel-wrapper,.arco-picker-container-shortcuts-placement-right .arco-picker-range-panel-wrapper,.arco-picker-range-container-shortcuts-placement-right .arco-picker-range-panel-wrapper{border-right:1px solid var(--color-neutral-3)}.arco-picker-container-panel-only,.arco-picker-range-container-panel-only{box-shadow:none}.arco-picker-container-panel-only .arco-panel-date-inner,.arco-picker-range-container-panel-only .arco-panel-date-inner,.arco-picker-range-container-panel-only .arco-panel-date{width:100%}.arco-picker-header{display:flex;padding:8px 16px;border-bottom:1px solid var(--color-neutral-3)}.arco-picker-header-title{flex:1;color:var(--color-text-1);font-size:14px;line-height:24px;text-align:center}.arco-picker-header-icon{width:24px;height:24px;margin-right:2px;margin-left:2px;color:var(--color-text-2);font-size:12px;line-height:24px;text-align:center;background-color:var(--color-bg-popup);border-radius:50%;transition:all .1s cubic-bezier(0,0,1,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-picker-header-icon:not(.arco-picker-header-icon-hidden){cursor:pointer}.arco-picker-header-icon:not(.arco-picker-header-icon-hidden):hover{background-color:var(--color-fill-3)}.arco-picker-header-label{padding:2px;border-radius:2px;cursor:pointer;transition:all .1s}.arco-picker-header-label:hover{background-color:var(--color-fill-3)}.arco-picker-body{padding:14px 16px}.arco-picker-week-list{display:flex;box-sizing:border-box;width:100%;padding:14px 16px 0}.arco-picker-week-list-item{flex:1;height:32px;padding:0;color:#7d7d7f;font-weight:400;line-height:32px;text-align:center}.arco-picker-row{display:flex;padding:2px 0}.arco-picker-cell{flex:1}.arco-picker-cell .arco-picker-date{display:flex;justify-content:center;box-sizing:border-box;width:100%;height:100%;padding:4px 0;cursor:pointer}.arco-picker-date-value{min-width:24px;height:24px;color:var(--color-text-4);font-size:14px;line-height:24px;text-align:center;border-radius:var(--border-radius-circle);cursor:pointer}.arco-picker-cell-in-view .arco-picker-date-value{color:var(--color-text-1);font-weight:500}.arco-picker-cell-selected .arco-picker-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-picker-cell-in-view:not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end):not(.arco-picker-cell-disabled):not(.arco-picker-cell-week) .arco-picker-date-value:hover{color:var(--color-text-1);background-color:var(--color-fill-3)}.arco-picker-cell-today{position:relative}.arco-picker-cell-today:after{position:absolute;bottom:-2px;left:50%;display:block;width:4px;height:4px;margin-left:-2px;background-color:rgb(var(--primary-6));border-radius:50%;content:""}.arco-picker-cell-in-range .arco-picker-date{background-color:var(--color-primary-light-1)}.arco-picker-cell-range-start .arco-picker-date{border-top-left-radius:24px;border-bottom-left-radius:24px}.arco-picker-cell-range-end .arco-picker-date{border-top-right-radius:24px;border-bottom-right-radius:24px}.arco-picker-cell-in-range-near-hover .arco-picker-date{border-radius:0}.arco-picker-cell-range-start .arco-picker-date-value,.arco-picker-cell-range-end .arco-picker-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));border-radius:var(--border-radius-circle)}.arco-picker-cell-hover-in-range .arco-picker-date{background-color:var(--color-primary-light-1)}.arco-picker-cell-hover-range-start .arco-picker-date{border-radius:24px 0 0 24px}.arco-picker-cell-hover-range-end .arco-picker-date{border-radius:0 24px 24px 0}.arco-picker-cell-hover-range-start .arco-picker-date-value,.arco-picker-cell-hover-range-end .arco-picker-date-value{color:var(--color-text-1);background-color:var(--color-primary-light-2);border-radius:50%}.arco-picker-cell-disabled .arco-picker-date{background-color:var(--color-fill-1);cursor:not-allowed}.arco-picker-cell-disabled .arco-picker-date-value{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-picker-footer{width:-moz-min-content;width:min-content;min-width:100%}.arco-picker-footer-btn-wrapper{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding:3px 8px;border-top:1px solid var(--color-neutral-3)}.arco-picker-footer-btn-wrapper :only-child{margin-left:auto}.arco-picker-footer-extra-wrapper{box-sizing:border-box;padding:8px 24px;color:var(--color-text-1);font-size:12px;border-top:1px solid var(--color-neutral-3)}.arco-picker-footer-now-wrapper{box-sizing:border-box;height:36px;line-height:36px;text-align:center;border-top:1px solid var(--color-neutral-3)}.arco-picker-btn-confirm{margin:5px 0}.arco-picker-shortcuts{flex:1}.arco-picker-shortcuts>*{margin:5px 10px 5px 0}.arco-panel-date{display:flex;box-sizing:border-box}.arco-panel-date-inner{width:265px}.arco-panel-date-inner .arco-picker-body{padding-top:0}.arco-panel-date-timepicker{display:flex;flex-direction:column;border-left:1px solid var(--color-neutral-3)}.arco-panel-date-timepicker-title{width:100%;height:40px;color:var(--color-text-1);font-weight:400;font-size:14px;line-height:40px;text-align:center;border-bottom:1px solid var(--color-neutral-3)}.arco-panel-date-timepicker .arco-timepicker{height:276px;padding:0 6px;overflow:hidden}.arco-panel-date-timepicker .arco-timepicker-column{box-sizing:border-box;width:auto;height:100%;padding:0 4px}.arco-panel-date-timepicker .arco-timepicker-column::-webkit-scrollbar{width:0}.arco-panel-date-timepicker .arco-timepicker-column:not(:last-child){border-right:0}.arco-panel-date-timepicker .arco-timepicker ul:after{height:244px}.arco-panel-date-timepicker .arco-timepicker-cell{width:36px}.arco-panel-date-timepicker .arco-timepicker-cell-inner{padding-left:10px}.arco-panel-date-footer{border-right:1px solid var(--color-neutral-3)}.arco-panel-date-with-view-tabs{flex-direction:column;min-width:265px}.arco-panel-date-with-view-tabs .arco-panel-date-timepicker .arco-timepicker-column{flex:1}.arco-panel-date-with-view-tabs .arco-panel-date-timepicker .arco-timepicker-column::-webkit-scrollbar{width:0}.arco-panel-date-with-view-tabs .arco-panel-date-timepicker .arco-timepicker-cell{width:100%;text-align:center}.arco-panel-date-with-view-tabs .arco-panel-date-timepicker .arco-timepicker-cell-inner{padding-left:0}.arco-panel-date-view-tabs{display:flex;border-top:1px solid var(--color-neutral-3)}.arco-panel-date-view-tab-pane{flex:1;height:50px;color:var(--color-text-4);font-size:14px;line-height:50px;text-align:center;border-right:1px solid var(--color-neutral-3);cursor:pointer}.arco-panel-date-view-tab-pane:last-child{border-right:none}.arco-panel-date-view-tab-pane-text{margin-left:8px}.arco-panel-date-view-tab-pane-active{color:var(--color-text-1)}.arco-panel-month,.arco-panel-quarter,.arco-panel-year{box-sizing:border-box;width:265px}.arco-panel-month .arco-picker-date,.arco-panel-quarter .arco-picker-date,.arco-panel-year .arco-picker-date{padding:4px}.arco-panel-month .arco-picker-date-value,.arco-panel-quarter .arco-picker-date-value,.arco-panel-year .arco-picker-date-value{width:100%;border-radius:24px}.arco-panel-month .arco-picker-cell:not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end):not(.arco-picker-cell-disabled):not(.arco-picker-cell-week) .arco-picker-date-value:hover,.arco-panel-quarter .arco-picker-cell:not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end):not(.arco-picker-cell-disabled):not(.arco-picker-cell-week) .arco-picker-date-value:hover,.arco-panel-year .arco-picker-cell:not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end):not(.arco-picker-cell-disabled):not(.arco-picker-cell-week) .arco-picker-date-value:hover{border-radius:24px}.arco-panel-year{box-sizing:border-box;width:265px}.arco-panel-week{box-sizing:border-box}.arco-panel-week-wrapper{display:flex}.arco-panel-week-inner{width:298px}.arco-panel-week-inner .arco-picker-body{padding-top:0}.arco-panel-week .arco-picker-row-week{cursor:pointer}.arco-panel-week .arco-picker-row-week .arco-picker-date-value{width:100%;border-radius:0}.arco-panel-week .arco-picker-cell .arco-picker-date{border-radius:0}.arco-panel-week .arco-picker-cell:nth-child(2) .arco-picker-date{padding-left:4px;border-top-left-radius:24px;border-bottom-left-radius:24px}.arco-panel-week .arco-picker-cell:nth-child(2) .arco-picker-date .arco-picker-date-value{border-top-left-radius:24px;border-bottom-left-radius:24px}.arco-panel-week .arco-picker-cell:nth-child(8) .arco-picker-date{padding-right:4px;border-top-right-radius:24px;border-bottom-right-radius:24px}.arco-panel-week .arco-picker-cell:nth-child(8) .arco-picker-date .arco-picker-date-value{border-top-right-radius:24px;border-bottom-right-radius:24px}.arco-panel-week .arco-picker-row-week:hover .arco-picker-cell:not(.arco-picker-cell-week):not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end) .arco-picker-date-value{background-color:var(--color-fill-3)}.arco-panel-quarter{box-sizing:border-box;width:265px}.arco-picker-range-wrapper{display:flex}.arco-datepicker-shortcuts-wrapper{box-sizing:border-box;width:106px;height:100%;max-height:300px;margin:10px 0 0;padding:0;overflow-y:auto;list-style:none}.arco-datepicker-shortcuts-wrapper>li{box-sizing:border-box;width:100%;padding:6px 16px;cursor:pointer}.arco-datepicker-shortcuts-wrapper>li:hover{color:rgb(var(--primary-6))}.arco-descriptions-table{width:100%;border-collapse:collapse}.arco-descriptions-table-layout-fixed table{table-layout:fixed}.arco-descriptions-title{margin-bottom:16px;color:var(--color-text-1);font-weight:500;font-size:16px;line-height:1.5715}.arco-descriptions-item,.arco-descriptions-item-label,.arco-descriptions-item-value{box-sizing:border-box;font-size:14px;line-height:1.5715;text-align:left}.arco-descriptions-table-layout-fixed .arco-descriptions-item-label{width:auto}.arco-descriptions-item-label-block{width:1px;padding:0 4px 12px 0;color:var(--color-text-3);font-weight:500;white-space:nowrap}.arco-descriptions-item-value-block{padding:0 4px 12px 0;color:var(--color-text-1);font-weight:400;white-space:pre-wrap;word-break:break-word}.arco-descriptions-item-label-inline,.arco-descriptions-item-value-inline{box-sizing:border-box;font-size:14px;line-height:1.5715;text-align:left}.arco-descriptions-item-label-inline{margin-bottom:2px;color:var(--color-text-3);font-weight:500}.arco-descriptions-item-value-inline{color:var(--color-text-1);font-weight:400}.arco-descriptions-layout-inline-horizontal .arco-descriptions-item-label-inline{margin-right:4px}.arco-descriptions-layout-inline-horizontal .arco-descriptions-item-label-inline,.arco-descriptions-layout-inline-horizontal .arco-descriptions-item-value-inline{display:inline-block;margin-bottom:0}.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:12px 20px}.arco-descriptions-border .arco-descriptions-body{overflow:hidden;border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium)}.arco-descriptions-border .arco-descriptions-row:not(:last-child){border-bottom:1px solid var(--color-neutral-3)}.arco-descriptions-border .arco-descriptions-item,.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-border .arco-descriptions-item-value-block{padding:7px 20px;border-right:1px solid var(--color-neutral-3)}.arco-descriptions-border .arco-descriptions-item-label-block{background-color:var(--color-fill-1)}.arco-descriptions-border .arco-descriptions-item-value-block:last-child{border-right:none}.arco-descriptions-border .arco-descriptions-item:last-child{border-right:none}.arco-descriptions-border.arco-descriptions-layout-vertical .arco-descriptions-item-label-block:last-child{border-right:none}.arco-descriptions-layout-vertical:not(.arco-descriptions-border) .arco-descriptions-item-value-block:first-child{padding-left:0}.arco-descriptions-size-mini .arco-descriptions-title{margin-bottom:6px}.arco-descriptions-size-mini .arco-descriptions-item-label-block,.arco-descriptions-size-mini .arco-descriptions-item-value-block{padding-right:20px;padding-bottom:2px;font-size:12px}.arco-descriptions-size-mini.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-size-mini.arco-descriptions-border .arco-descriptions-item-value-block{padding:3px 20px}.arco-descriptions-size-mini.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:8px 20px}.arco-descriptions-size-small .arco-descriptions-title{margin-bottom:8px}.arco-descriptions-size-small .arco-descriptions-item-label-block,.arco-descriptions-size-small .arco-descriptions-item-value-block{padding-right:20px;padding-bottom:4px;font-size:14px}.arco-descriptions-size-small.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-size-small.arco-descriptions-border .arco-descriptions-item-value-block{padding:3px 20px}.arco-descriptions-size-small.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:8px 20px}.arco-descriptions-size-medium .arco-descriptions-title{margin-bottom:12px}.arco-descriptions-size-medium .arco-descriptions-item-label-block,.arco-descriptions-size-medium .arco-descriptions-item-value-block{padding-right:20px;padding-bottom:8px;font-size:14px}.arco-descriptions-size-medium.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-size-medium.arco-descriptions-border .arco-descriptions-item-value-block{padding:5px 20px}.arco-descriptions-size-medium.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:10px 20px}.arco-descriptions-size-large .arco-descriptions-title{margin-bottom:20px}.arco-descriptions-size-large .arco-descriptions-item-label-block,.arco-descriptions-size-large .arco-descriptions-item-value-block{padding-right:20px;padding-bottom:16px;font-size:14px}.arco-descriptions-size-large.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-size-large.arco-descriptions-border .arco-descriptions-item-value-block{padding:9px 20px}.arco-descriptions-size-large.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:14px 20px}.arco-divider-horizontal{position:relative;clear:both;width:100%;min-width:100%;max-width:100%;margin:20px 0;border-bottom:1px solid var(--color-neutral-3)}.arco-divider-horizontal.arco-divider-with-text{margin:20px 0}.arco-divider-vertical{display:inline-block;min-width:1px;max-width:1px;min-height:1em;margin:0 12px;vertical-align:middle;border-left:1px solid var(--color-neutral-3)}.arco-divider-text{position:absolute;top:50%;box-sizing:border-box;padding:0 16px;color:var(--color-text-1);font-weight:500;font-size:14px;line-height:2;background:var(--color-bg-2);transform:translateY(-50%)}.arco-divider-text-center{left:50%;transform:translate(-50%,-50%)}.arco-divider-text-left{left:24px}.arco-divider-text-right{right:24px}.arco-drawer-container{position:fixed;inset:0;z-index:1001}.arco-drawer-mask{position:absolute;inset:0;background-color:var(--color-mask-bg)}.arco-drawer{position:absolute;display:flex;flex-direction:column;width:100%;height:100%;overflow:auto;line-height:1.5715;background-color:var(--color-bg-3)}.arco-drawer-header{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;width:100%;height:48px;padding:0 16px;border-bottom:1px solid var(--color-neutral-3)}.arco-drawer-header .arco-drawer-title{margin-right:auto;color:var(--color-text-1);font-weight:500;font-size:16px;text-align:left}.arco-drawer-header .arco-drawer-close-btn{margin-left:8px;color:var(--color-text-1);font-size:12px;cursor:pointer}.arco-drawer-footer{flex-shrink:0;box-sizing:border-box;padding:16px;text-align:right;border-top:1px solid var(--color-neutral-3)}.arco-drawer-footer>.arco-btn{margin-left:12px}.arco-drawer-body{position:relative;flex:1;box-sizing:border-box;height:100%;padding:12px 16px;overflow:auto;color:var(--color-text-1)}.fade-drawer-enter-from,.fade-drawer-appear-from{opacity:0}.fade-drawer-enter-to,.fade-drawer-appear-to{opacity:1}.fade-drawer-enter-active,.fade-drawer-appear-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1)}.fade-drawer-leave-from{opacity:1}.fade-drawer-leave-to{opacity:0}.fade-drawer-leave-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1)}.slide-left-drawer-enter-from,.slide-left-drawer-appear-from{transform:translate(-100%)}.slide-left-drawer-enter-to,.slide-left-drawer-appear-to{transform:translate(0)}.slide-left-drawer-enter-active,.slide-left-drawer-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-left-drawer-leave-from{transform:translate(0)}.slide-left-drawer-leave-to{transform:translate(-100%)}.slide-left-drawer-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-right-drawer-enter-from,.slide-right-drawer-appear-from{transform:translate(100%)}.slide-right-drawer-enter-to,.slide-right-drawer-appear-to{transform:translate(0)}.slide-right-drawer-enter-active,.slide-right-drawer-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-right-drawer-leave-from{transform:translate(0)}.slide-right-drawer-leave-to{transform:translate(100%)}.slide-right-drawer-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-top-drawer-enter,.slide-top-drawer-appear,.slide-top-drawer-enter-from,.slide-top-drawer-appear-from{transform:translateY(-100%)}.slide-top-drawer-enter-to,.slide-top-drawer-appear-to{transform:translateY(0)}.slide-top-drawer-enter-active,.slide-top-drawer-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-top-drawer-leave-from{transform:translateY(0)}.slide-top-drawer-leave-to{transform:translateY(-100%)}.slide-top-drawer-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-bottom-drawer-enter-from,.slide-bottom-drawer-appear-from{transform:translateY(100%)}.slide-bottom-drawer-enter-to,.slide-bottom-drawer-appear-to{transform:translateY(0)}.slide-bottom-drawer-enter-active,.slide-bottom-drawer-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-bottom-drawer-leave-from{transform:translateY(0)}.slide-bottom-drawer-leave-to{transform:translateY(100%)}.slide-bottom-drawer-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.arco-dropdown{box-sizing:border-box;padding:4px 0;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-dropdown-list{margin-top:0;margin-bottom:0;padding-left:0;list-style:none}.arco-dropdown-list-wrapper{max-height:200px;overflow-y:auto}.arco-dropdown-option{position:relative;z-index:1;display:flex;align-items:center;box-sizing:border-box;width:100%;padding:0 12px;color:var(--color-text-1);font-size:14px;line-height:36px;text-align:left;background-color:transparent;cursor:pointer}.arco-dropdown-option-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-dropdown-option-has-suffix{justify-content:space-between}.arco-dropdown-option-active,.arco-dropdown-option:not(.arco-dropdown-option-disabled):hover{color:var(--color-text-1);background-color:var(--color-fill-2);transition:all .1s cubic-bezier(0,0,1,1)}.arco-dropdown-option-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-dropdown-option-icon{display:inline-flex;margin-right:8px}.arco-dropdown-option-suffix{margin-left:12px}.arco-dropdown-group:first-child .arco-dropdown-group-title{margin-top:8px}.arco-dropdown-group-title{box-sizing:border-box;width:100%;margin-top:8px;padding:0 12px;color:var(--color-text-3);font-size:12px;line-height:20px;cursor:default;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-dropdown-submenu{margin-top:-4px}.arco-dropdown.arco-dropdown-has-footer{padding-bottom:0}.arco-dropdown-footer{border-top:1px solid var(--color-fill-3)}.arco-empty{box-sizing:border-box;width:100%;padding:10px 0;text-align:center}.arco-empty-image{margin-bottom:4px;color:rgb(var(--gray-5));font-size:48px;line-height:1}.arco-empty-image img{height:80px}.arco-empty .arco-empty-description{color:rgb(var(--gray-5));font-size:14px}.arco-form-item-status-validating .arco-input-wrapper:not(.arco-input-disabled),.arco-form-item-status-validating .arco-textarea-wrapper:not(.arco-textarea-disabled){background-color:var(--color-fill-2);border-color:transparent}.arco-form-item-status-validating .arco-input-wrapper:not(.arco-input-disabled):hover,.arco-form-item-status-validating .arco-textarea-wrapper:not(.arco-textarea-disabled):hover{background-color:var(--color-fill-3);border-color:transparent}.arco-form-item-status-validating .arco-input-wrapper:not(.arco-input-disabled).arco-input-focus,.arco-form-item-status-validating .arco-textarea-wrapper:not(.arco-textarea-disabled).arco-textarea-focus{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-form-item-status-validating .arco-select-view:not(.arco-select-view-disabled),.arco-form-item-status-validating .arco-input-tag:not(.arco-input-tag-disabled){background-color:var(--color-fill-2);border-color:transparent}.arco-form-item-status-validating .arco-select-view:not(.arco-select-view-disabled):hover,.arco-form-item-status-validating .arco-input-tag:not(.arco-input-tag-disabled):hover{background-color:var(--color-fill-3);border-color:transparent}.arco-form-item-status-validating .arco-select-view:not(.arco-select-view-disabled).arco-select-view-focus,.arco-form-item-status-validating .arco-input-tag:not(.arco-input-tag-disabled).arco-input-tag-focus{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-form-item-status-validating .arco-picker:not(.arco-picker-disabled){border-color:transparent;background-color:var(--color-fill-2)}.arco-form-item-status-validating .arco-picker:not(.arco-picker-disabled):hover{border-color:transparent;background-color:var(--color-fill-3)}.arco-form-item-status-validating .arco-picker-focused:not(.arco-picker-disabled),.arco-form-item-status-validating .arco-picker-focused:not(.arco-picker-disabled):hover{border-color:rgb(var(--primary-6));background-color:var(--color-bg-2);box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-form-item-status-validating .arco-form-item-message-help,.arco-form-item-status-validating .arco-form-item-feedback{color:rgb(var(--primary-6))}.arco-form-item-status-success .arco-input-wrapper:not(.arco-input-disabled),.arco-form-item-status-success .arco-textarea-wrapper:not(.arco-textarea-disabled){background-color:var(--color-fill-2);border-color:transparent}.arco-form-item-status-success .arco-input-wrapper:not(.arco-input-disabled):hover,.arco-form-item-status-success .arco-textarea-wrapper:not(.arco-textarea-disabled):hover{background-color:var(--color-fill-3);border-color:transparent}.arco-form-item-status-success .arco-input-wrapper:not(.arco-input-disabled).arco-input-focus,.arco-form-item-status-success .arco-textarea-wrapper:not(.arco-textarea-disabled).arco-textarea-focus{background-color:var(--color-bg-2);border-color:rgb(var(--success-6));box-shadow:0 0 0 0 var(--color-success-light-2)}.arco-form-item-status-success .arco-select-view:not(.arco-select-view-disabled),.arco-form-item-status-success .arco-input-tag:not(.arco-input-tag-disabled){background-color:var(--color-fill-2);border-color:transparent}.arco-form-item-status-success .arco-select-view:not(.arco-select-view-disabled):hover,.arco-form-item-status-success .arco-input-tag:not(.arco-input-tag-disabled):hover{background-color:var(--color-fill-3);border-color:transparent}.arco-form-item-status-success .arco-select-view:not(.arco-select-view-disabled).arco-select-view-focus,.arco-form-item-status-success .arco-input-tag:not(.arco-input-tag-disabled).arco-input-tag-focus{background-color:var(--color-bg-2);border-color:rgb(var(--success-6));box-shadow:0 0 0 0 var(--color-success-light-2)}.arco-form-item-status-success .arco-picker:not(.arco-picker-disabled){border-color:transparent;background-color:var(--color-fill-2)}.arco-form-item-status-success .arco-picker:not(.arco-picker-disabled):hover{border-color:transparent;background-color:var(--color-fill-3)}.arco-form-item-status-success .arco-picker-focused:not(.arco-picker-disabled),.arco-form-item-status-success .arco-picker-focused:not(.arco-picker-disabled):hover{border-color:rgb(var(--success-6));background-color:var(--color-bg-2);box-shadow:0 0 0 0 var(--color-success-light-2)}.arco-form-item-status-success .arco-form-item-message-help,.arco-form-item-status-success .arco-form-item-feedback{color:rgb(var(--success-6))}.arco-form-item-status-warning .arco-input-wrapper:not(.arco-input-disabled),.arco-form-item-status-warning .arco-textarea-wrapper:not(.arco-textarea-disabled){background-color:var(--color-warning-light-1);border-color:transparent}.arco-form-item-status-warning .arco-input-wrapper:not(.arco-input-disabled):hover,.arco-form-item-status-warning .arco-textarea-wrapper:not(.arco-textarea-disabled):hover{background-color:var(--color-warning-light-2);border-color:transparent}.arco-form-item-status-warning .arco-input-wrapper:not(.arco-input-disabled).arco-input-focus,.arco-form-item-status-warning .arco-textarea-wrapper:not(.arco-textarea-disabled).arco-textarea-focus{background-color:var(--color-bg-2);border-color:rgb(var(--warning-6));box-shadow:0 0 0 0 var(--color-warning-light-2)}.arco-form-item-status-warning .arco-select-view:not(.arco-select-view-disabled),.arco-form-item-status-warning .arco-input-tag:not(.arco-input-tag-disabled){background-color:var(--color-warning-light-1);border-color:transparent}.arco-form-item-status-warning .arco-select-view:not(.arco-select-view-disabled):hover,.arco-form-item-status-warning .arco-input-tag:not(.arco-input-tag-disabled):hover{background-color:var(--color-warning-light-2);border-color:transparent}.arco-form-item-status-warning .arco-select-view:not(.arco-select-view-disabled).arco-select-view-focus,.arco-form-item-status-warning .arco-input-tag:not(.arco-input-tag-disabled).arco-input-tag-focus{background-color:var(--color-bg-2);border-color:rgb(var(--warning-6));box-shadow:0 0 0 0 var(--color-warning-light-2)}.arco-form-item-status-warning .arco-picker:not(.arco-picker-disabled){border-color:transparent;background-color:var(--color-warning-light-1)}.arco-form-item-status-warning .arco-picker:not(.arco-picker-disabled):hover{border-color:transparent;background-color:var(--color-warning-light-2)}.arco-form-item-status-warning .arco-picker-focused:not(.arco-picker-disabled),.arco-form-item-status-warning .arco-picker-focused:not(.arco-picker-disabled):hover{border-color:rgb(var(--warning-6));background-color:var(--color-bg-2);box-shadow:0 0 0 0 var(--color-warning-light-2)}.arco-form-item-status-warning .arco-form-item-message-help,.arco-form-item-status-warning .arco-form-item-feedback{color:rgb(var(--warning-6))}.arco-form-item-status-error .arco-input-wrapper:not(.arco-input-disabled),.arco-form-item-status-error .arco-textarea-wrapper:not(.arco-textarea-disabled){background-color:var(--color-danger-light-1);border-color:transparent}.arco-form-item-status-error .arco-input-wrapper:not(.arco-input-disabled):hover,.arco-form-item-status-error .arco-textarea-wrapper:not(.arco-textarea-disabled):hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-form-item-status-error .arco-input-wrapper:not(.arco-input-disabled).arco-input-focus,.arco-form-item-status-error .arco-textarea-wrapper:not(.arco-textarea-disabled).arco-textarea-focus{background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-form-item-status-error .arco-select-view:not(.arco-select-view-disabled),.arco-form-item-status-error .arco-input-tag:not(.arco-input-tag-disabled){background-color:var(--color-danger-light-1);border-color:transparent}.arco-form-item-status-error .arco-select-view:not(.arco-select-view-disabled):hover,.arco-form-item-status-error .arco-input-tag:not(.arco-input-tag-disabled):hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-form-item-status-error .arco-select-view:not(.arco-select-view-disabled).arco-select-view-focus,.arco-form-item-status-error .arco-input-tag:not(.arco-input-tag-disabled).arco-input-tag-focus{background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-form-item-status-error .arco-picker:not(.arco-picker-disabled){border-color:transparent;background-color:var(--color-danger-light-1)}.arco-form-item-status-error .arco-picker:not(.arco-picker-disabled):hover{border-color:transparent;background-color:var(--color-danger-light-2)}.arco-form-item-status-error .arco-picker-focused:not(.arco-picker-disabled),.arco-form-item-status-error .arco-picker-focused:not(.arco-picker-disabled):hover{border-color:rgb(var(--danger-6));background-color:var(--color-bg-2);box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-form-item-status-error .arco-form-item-message-help,.arco-form-item-status-error .arco-form-item-feedback{color:rgb(var(--danger-6))}.arco-form-item-control-children{position:relative}.arco-form-item-feedback{position:absolute;top:50%;right:9px;font-size:14px;transform:translateY(-50%)}.arco-form-item-feedback .arco-icon-loading{font-size:12px}.arco-form-item-has-feedback .arco-input,.arco-form-item-has-feedback .arco-input-inner-wrapper,.arco-form-item-has-feedback .arco-textarea{padding-right:28px}.arco-form-item-has-feedback .arco-input-number-mode-embed .arco-input-number-step-layer{right:24px}.arco-form-item-has-feedback .arco-select.arco-select-multiple .arco-select-view,.arco-form-item-has-feedback .arco-select.arco-select-single .arco-select-view{padding-right:28px}.arco-form-item-has-feedback .arco-select.arco-select-multiple .arco-select-suffix{padding-right:0}.arco-form-item-has-feedback .arco-cascader.arco-cascader-multiple .arco-cascader-view,.arco-form-item-has-feedback .arco-cascader.arco-cascader-single .arco-cascader-view{padding-right:28px}.arco-form-item-has-feedback .arco-cascader.arco-cascader-multiple .arco-cascader-suffix{padding-right:0}.arco-form-item-has-feedback .arco-tree-select.arco-tree-select-multiple .arco-tree-select-view,.arco-form-item-has-feedback .arco-tree-select.arco-tree-select-single .arco-tree-select-view{padding-right:28px}.arco-form-item-has-feedback .arco-tree-select.arco-tree-select-multiple .arco-tree-select-suffix{padding-right:0}.arco-form-item-has-feedback .arco-picker{padding-right:28px}.arco-form-item-has-feedback .arco-picker-suffix .arco-picker-suffix-icon,.arco-form-item-has-feedback .arco-picker-suffix .arco-picker-clear-icon{margin-right:0;margin-left:0}.arco-form{display:flex;flex-direction:column;width:100%}.arco-form-layout-inline{flex-direction:row;flex-wrap:wrap}.arco-form-layout-inline .arco-form-item{width:auto;margin-bottom:8px}.arco-form-auto-label-width .arco-form-item-label-col>.arco-form-item-label{white-space:nowrap}.arco-form-item{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;margin-bottom:20px}.arco-form-item-layout-vertical{display:block}.arco-form-item-layout-vertical>.arco-form-item-label-col{justify-content:flex-start;margin-bottom:8px;padding:0;line-height:1.5715;white-space:normal}.arco-form-item-layout-inline{margin-right:24px}.arco-form-item-label-col{padding-right:16px}.arco-form-item.arco-form-item-error,.arco-form-item.arco-form-item-has-help{margin-bottom:0}.arco-form-item-wrapper-flex.arco-col{flex:1}.arco-form-size-mini .arco-form-item-label-col{line-height:24px}.arco-form-size-mini .arco-form-item-label-col>.arco-form-item-label{font-size:12px}.arco-form-size-mini .arco-form-item-content,.arco-form-size-mini .arco-form-item-wrapper-col{min-height:24px}.arco-form-size-small .arco-form-item-label-col{line-height:28px}.arco-form-size-small .arco-form-item-label-col>.arco-form-item-label{font-size:14px}.arco-form-size-small .arco-form-item-content,.arco-form-size-small .arco-form-item-wrapper-col{min-height:28px}.arco-form-size-large .arco-form-item-label-col{line-height:36px}.arco-form-size-large .arco-form-item-label-col>.arco-form-item-label{font-size:14px}.arco-form-size-large .arco-form-item-content,.arco-form-size-large .arco-form-item-wrapper-col{min-height:36px}.arco-form-item-extra{margin-top:4px;color:var(--color-text-3);font-size:12px}.arco-form-item-message{min-height:20px;color:rgb(var(--danger-6));font-size:12px;line-height:20px}.arco-form-item-message-help{color:var(--color-text-3)}.arco-form-item-message+.arco-form-item-extra{margin-top:0;margin-bottom:4px}.arco-form-item-label-col{display:flex;flex-shrink:0;justify-content:flex-end;line-height:32px;white-space:nowrap}.arco-form-item-label-col-left{justify-content:flex-start}.arco-form-item-label-col>.arco-form-item-label{max-width:100%;color:var(--color-text-2);font-size:14px;white-space:normal}.arco-form-item-label-col.arco-form-item-label-col-flex{box-sizing:content-box}.arco-form-item-wrapper-col{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-width:0;min-height:32px}.arco-form-item-content{flex:1;max-width:100%;min-height:32px}.arco-form-item-content-wrapper{display:flex;align-items:center;justify-content:flex-start;width:100%}.arco-form-item-content-flex{display:flex;align-items:center;justify-content:flex-start}.arco-form .arco-slider{display:block}.arco-form-item-label-required-symbol{color:rgb(var(--danger-6));font-size:12px;line-height:1}.arco-form-item-label-required-symbol svg{display:inline-block;transform:scale(.5)}.arco-form-item-label-tooltip{margin-left:4px;color:var(--color-text-4)}.form-blink-enter-from,.form-blink-appear-from{opacity:0}.form-blink-enter-to,.form-blink-appear-to{opacity:1}.form-blink-enter-active,.form-blink-appear-active{transition:opacity .3s cubic-bezier(0,0,1,1);animation:arco-form-blink .5s cubic-bezier(0,0,1,1)}@keyframes arco-form-blink{0%{opacity:1}50%{opacity:.2}to{opacity:1}}.arco-row{display:flex;flex-flow:row wrap}.arco-row-nowrap{flex-wrap:nowrap}.arco-row-align-start{align-items:flex-start}.arco-row-align-center{align-items:center}.arco-row-align-end{align-items:flex-end}.arco-row-justify-start{justify-content:flex-start}.arco-row-justify-center{justify-content:center}.arco-row-justify-end{justify-content:flex-end}.arco-row-justify-space-around{justify-content:space-around}.arco-row-justify-space-between{justify-content:space-between}.arco-col{box-sizing:border-box}.arco-col-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-3{flex:0 0 12.5%;width:12.5%}.arco-col-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-6{flex:0 0 25%;width:25%}.arco-col-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-9{flex:0 0 37.5%;width:37.5%}.arco-col-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-12{flex:0 0 50%;width:50%}.arco-col-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-15{flex:0 0 62.5%;width:62.5%}.arco-col-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-18{flex:0 0 75%;width:75%}.arco-col-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-21{flex:0 0 87.5%;width:87.5%}.arco-col-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-24{flex:0 0 100%;width:100%}.arco-col-offset-1{margin-left:4.16666667%}.arco-col-offset-2{margin-left:8.33333333%}.arco-col-offset-3{margin-left:12.5%}.arco-col-offset-4{margin-left:16.66666667%}.arco-col-offset-5{margin-left:20.83333333%}.arco-col-offset-6{margin-left:25%}.arco-col-offset-7{margin-left:29.16666667%}.arco-col-offset-8{margin-left:33.33333333%}.arco-col-offset-9{margin-left:37.5%}.arco-col-offset-10{margin-left:41.66666667%}.arco-col-offset-11{margin-left:45.83333333%}.arco-col-offset-12{margin-left:50%}.arco-col-offset-13{margin-left:54.16666667%}.arco-col-offset-14{margin-left:58.33333333%}.arco-col-offset-15{margin-left:62.5%}.arco-col-offset-16{margin-left:66.66666667%}.arco-col-offset-17{margin-left:70.83333333%}.arco-col-offset-18{margin-left:75%}.arco-col-offset-19{margin-left:79.16666667%}.arco-col-offset-20{margin-left:83.33333333%}.arco-col-offset-21{margin-left:87.5%}.arco-col-offset-22{margin-left:91.66666667%}.arco-col-offset-23{margin-left:95.83333333%}.arco-col-order-1{order:1}.arco-col-order-2{order:2}.arco-col-order-3{order:3}.arco-col-order-4{order:4}.arco-col-order-5{order:5}.arco-col-order-6{order:6}.arco-col-order-7{order:7}.arco-col-order-8{order:8}.arco-col-order-9{order:9}.arco-col-order-10{order:10}.arco-col-order-11{order:11}.arco-col-order-12{order:12}.arco-col-order-13{order:13}.arco-col-order-14{order:14}.arco-col-order-15{order:15}.arco-col-order-16{order:16}.arco-col-order-17{order:17}.arco-col-order-18{order:18}.arco-col-order-19{order:19}.arco-col-order-20{order:20}.arco-col-order-21{order:21}.arco-col-order-22{order:22}.arco-col-order-23{order:23}.arco-col-order-24{order:24}.arco-col-xs-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-xs-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-xs-3{flex:0 0 12.5%;width:12.5%}.arco-col-xs-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-xs-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-xs-6{flex:0 0 25%;width:25%}.arco-col-xs-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-xs-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-xs-9{flex:0 0 37.5%;width:37.5%}.arco-col-xs-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-xs-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-xs-12{flex:0 0 50%;width:50%}.arco-col-xs-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-xs-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-xs-15{flex:0 0 62.5%;width:62.5%}.arco-col-xs-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-xs-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-xs-18{flex:0 0 75%;width:75%}.arco-col-xs-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-xs-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-xs-21{flex:0 0 87.5%;width:87.5%}.arco-col-xs-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-xs-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-xs-24{flex:0 0 100%;width:100%}.arco-col-xs-offset-1{margin-left:4.16666667%}.arco-col-xs-offset-2{margin-left:8.33333333%}.arco-col-xs-offset-3{margin-left:12.5%}.arco-col-xs-offset-4{margin-left:16.66666667%}.arco-col-xs-offset-5{margin-left:20.83333333%}.arco-col-xs-offset-6{margin-left:25%}.arco-col-xs-offset-7{margin-left:29.16666667%}.arco-col-xs-offset-8{margin-left:33.33333333%}.arco-col-xs-offset-9{margin-left:37.5%}.arco-col-xs-offset-10{margin-left:41.66666667%}.arco-col-xs-offset-11{margin-left:45.83333333%}.arco-col-xs-offset-12{margin-left:50%}.arco-col-xs-offset-13{margin-left:54.16666667%}.arco-col-xs-offset-14{margin-left:58.33333333%}.arco-col-xs-offset-15{margin-left:62.5%}.arco-col-xs-offset-16{margin-left:66.66666667%}.arco-col-xs-offset-17{margin-left:70.83333333%}.arco-col-xs-offset-18{margin-left:75%}.arco-col-xs-offset-19{margin-left:79.16666667%}.arco-col-xs-offset-20{margin-left:83.33333333%}.arco-col-xs-offset-21{margin-left:87.5%}.arco-col-xs-offset-22{margin-left:91.66666667%}.arco-col-xs-offset-23{margin-left:95.83333333%}.arco-col-xs-order-1{order:1}.arco-col-xs-order-2{order:2}.arco-col-xs-order-3{order:3}.arco-col-xs-order-4{order:4}.arco-col-xs-order-5{order:5}.arco-col-xs-order-6{order:6}.arco-col-xs-order-7{order:7}.arco-col-xs-order-8{order:8}.arco-col-xs-order-9{order:9}.arco-col-xs-order-10{order:10}.arco-col-xs-order-11{order:11}.arco-col-xs-order-12{order:12}.arco-col-xs-order-13{order:13}.arco-col-xs-order-14{order:14}.arco-col-xs-order-15{order:15}.arco-col-xs-order-16{order:16}.arco-col-xs-order-17{order:17}.arco-col-xs-order-18{order:18}.arco-col-xs-order-19{order:19}.arco-col-xs-order-20{order:20}.arco-col-xs-order-21{order:21}.arco-col-xs-order-22{order:22}.arco-col-xs-order-23{order:23}.arco-col-xs-order-24{order:24}@media (min-width: 576px){.arco-col-sm-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-sm-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-sm-3{flex:0 0 12.5%;width:12.5%}.arco-col-sm-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-sm-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-sm-6{flex:0 0 25%;width:25%}.arco-col-sm-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-sm-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-sm-9{flex:0 0 37.5%;width:37.5%}.arco-col-sm-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-sm-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-sm-12{flex:0 0 50%;width:50%}.arco-col-sm-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-sm-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-sm-15{flex:0 0 62.5%;width:62.5%}.arco-col-sm-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-sm-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-sm-18{flex:0 0 75%;width:75%}.arco-col-sm-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-sm-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-sm-21{flex:0 0 87.5%;width:87.5%}.arco-col-sm-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-sm-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-sm-24{flex:0 0 100%;width:100%}.arco-col-sm-offset-1{margin-left:4.16666667%}.arco-col-sm-offset-2{margin-left:8.33333333%}.arco-col-sm-offset-3{margin-left:12.5%}.arco-col-sm-offset-4{margin-left:16.66666667%}.arco-col-sm-offset-5{margin-left:20.83333333%}.arco-col-sm-offset-6{margin-left:25%}.arco-col-sm-offset-7{margin-left:29.16666667%}.arco-col-sm-offset-8{margin-left:33.33333333%}.arco-col-sm-offset-9{margin-left:37.5%}.arco-col-sm-offset-10{margin-left:41.66666667%}.arco-col-sm-offset-11{margin-left:45.83333333%}.arco-col-sm-offset-12{margin-left:50%}.arco-col-sm-offset-13{margin-left:54.16666667%}.arco-col-sm-offset-14{margin-left:58.33333333%}.arco-col-sm-offset-15{margin-left:62.5%}.arco-col-sm-offset-16{margin-left:66.66666667%}.arco-col-sm-offset-17{margin-left:70.83333333%}.arco-col-sm-offset-18{margin-left:75%}.arco-col-sm-offset-19{margin-left:79.16666667%}.arco-col-sm-offset-20{margin-left:83.33333333%}.arco-col-sm-offset-21{margin-left:87.5%}.arco-col-sm-offset-22{margin-left:91.66666667%}.arco-col-sm-offset-23{margin-left:95.83333333%}.arco-col-sm-order-1{order:1}.arco-col-sm-order-2{order:2}.arco-col-sm-order-3{order:3}.arco-col-sm-order-4{order:4}.arco-col-sm-order-5{order:5}.arco-col-sm-order-6{order:6}.arco-col-sm-order-7{order:7}.arco-col-sm-order-8{order:8}.arco-col-sm-order-9{order:9}.arco-col-sm-order-10{order:10}.arco-col-sm-order-11{order:11}.arco-col-sm-order-12{order:12}.arco-col-sm-order-13{order:13}.arco-col-sm-order-14{order:14}.arco-col-sm-order-15{order:15}.arco-col-sm-order-16{order:16}.arco-col-sm-order-17{order:17}.arco-col-sm-order-18{order:18}.arco-col-sm-order-19{order:19}.arco-col-sm-order-20{order:20}.arco-col-sm-order-21{order:21}.arco-col-sm-order-22{order:22}.arco-col-sm-order-23{order:23}.arco-col-sm-order-24{order:24}}@media (min-width: 768px){.arco-col-md-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-md-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-md-3{flex:0 0 12.5%;width:12.5%}.arco-col-md-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-md-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-md-6{flex:0 0 25%;width:25%}.arco-col-md-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-md-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-md-9{flex:0 0 37.5%;width:37.5%}.arco-col-md-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-md-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-md-12{flex:0 0 50%;width:50%}.arco-col-md-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-md-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-md-15{flex:0 0 62.5%;width:62.5%}.arco-col-md-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-md-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-md-18{flex:0 0 75%;width:75%}.arco-col-md-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-md-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-md-21{flex:0 0 87.5%;width:87.5%}.arco-col-md-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-md-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-md-24{flex:0 0 100%;width:100%}.arco-col-md-offset-1{margin-left:4.16666667%}.arco-col-md-offset-2{margin-left:8.33333333%}.arco-col-md-offset-3{margin-left:12.5%}.arco-col-md-offset-4{margin-left:16.66666667%}.arco-col-md-offset-5{margin-left:20.83333333%}.arco-col-md-offset-6{margin-left:25%}.arco-col-md-offset-7{margin-left:29.16666667%}.arco-col-md-offset-8{margin-left:33.33333333%}.arco-col-md-offset-9{margin-left:37.5%}.arco-col-md-offset-10{margin-left:41.66666667%}.arco-col-md-offset-11{margin-left:45.83333333%}.arco-col-md-offset-12{margin-left:50%}.arco-col-md-offset-13{margin-left:54.16666667%}.arco-col-md-offset-14{margin-left:58.33333333%}.arco-col-md-offset-15{margin-left:62.5%}.arco-col-md-offset-16{margin-left:66.66666667%}.arco-col-md-offset-17{margin-left:70.83333333%}.arco-col-md-offset-18{margin-left:75%}.arco-col-md-offset-19{margin-left:79.16666667%}.arco-col-md-offset-20{margin-left:83.33333333%}.arco-col-md-offset-21{margin-left:87.5%}.arco-col-md-offset-22{margin-left:91.66666667%}.arco-col-md-offset-23{margin-left:95.83333333%}.arco-col-md-order-1{order:1}.arco-col-md-order-2{order:2}.arco-col-md-order-3{order:3}.arco-col-md-order-4{order:4}.arco-col-md-order-5{order:5}.arco-col-md-order-6{order:6}.arco-col-md-order-7{order:7}.arco-col-md-order-8{order:8}.arco-col-md-order-9{order:9}.arco-col-md-order-10{order:10}.arco-col-md-order-11{order:11}.arco-col-md-order-12{order:12}.arco-col-md-order-13{order:13}.arco-col-md-order-14{order:14}.arco-col-md-order-15{order:15}.arco-col-md-order-16{order:16}.arco-col-md-order-17{order:17}.arco-col-md-order-18{order:18}.arco-col-md-order-19{order:19}.arco-col-md-order-20{order:20}.arco-col-md-order-21{order:21}.arco-col-md-order-22{order:22}.arco-col-md-order-23{order:23}.arco-col-md-order-24{order:24}}@media (min-width: 992px){.arco-col-lg-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-lg-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-lg-3{flex:0 0 12.5%;width:12.5%}.arco-col-lg-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-lg-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-lg-6{flex:0 0 25%;width:25%}.arco-col-lg-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-lg-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-lg-9{flex:0 0 37.5%;width:37.5%}.arco-col-lg-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-lg-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-lg-12{flex:0 0 50%;width:50%}.arco-col-lg-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-lg-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-lg-15{flex:0 0 62.5%;width:62.5%}.arco-col-lg-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-lg-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-lg-18{flex:0 0 75%;width:75%}.arco-col-lg-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-lg-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-lg-21{flex:0 0 87.5%;width:87.5%}.arco-col-lg-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-lg-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-lg-24{flex:0 0 100%;width:100%}.arco-col-lg-offset-1{margin-left:4.16666667%}.arco-col-lg-offset-2{margin-left:8.33333333%}.arco-col-lg-offset-3{margin-left:12.5%}.arco-col-lg-offset-4{margin-left:16.66666667%}.arco-col-lg-offset-5{margin-left:20.83333333%}.arco-col-lg-offset-6{margin-left:25%}.arco-col-lg-offset-7{margin-left:29.16666667%}.arco-col-lg-offset-8{margin-left:33.33333333%}.arco-col-lg-offset-9{margin-left:37.5%}.arco-col-lg-offset-10{margin-left:41.66666667%}.arco-col-lg-offset-11{margin-left:45.83333333%}.arco-col-lg-offset-12{margin-left:50%}.arco-col-lg-offset-13{margin-left:54.16666667%}.arco-col-lg-offset-14{margin-left:58.33333333%}.arco-col-lg-offset-15{margin-left:62.5%}.arco-col-lg-offset-16{margin-left:66.66666667%}.arco-col-lg-offset-17{margin-left:70.83333333%}.arco-col-lg-offset-18{margin-left:75%}.arco-col-lg-offset-19{margin-left:79.16666667%}.arco-col-lg-offset-20{margin-left:83.33333333%}.arco-col-lg-offset-21{margin-left:87.5%}.arco-col-lg-offset-22{margin-left:91.66666667%}.arco-col-lg-offset-23{margin-left:95.83333333%}.arco-col-lg-order-1{order:1}.arco-col-lg-order-2{order:2}.arco-col-lg-order-3{order:3}.arco-col-lg-order-4{order:4}.arco-col-lg-order-5{order:5}.arco-col-lg-order-6{order:6}.arco-col-lg-order-7{order:7}.arco-col-lg-order-8{order:8}.arco-col-lg-order-9{order:9}.arco-col-lg-order-10{order:10}.arco-col-lg-order-11{order:11}.arco-col-lg-order-12{order:12}.arco-col-lg-order-13{order:13}.arco-col-lg-order-14{order:14}.arco-col-lg-order-15{order:15}.arco-col-lg-order-16{order:16}.arco-col-lg-order-17{order:17}.arco-col-lg-order-18{order:18}.arco-col-lg-order-19{order:19}.arco-col-lg-order-20{order:20}.arco-col-lg-order-21{order:21}.arco-col-lg-order-22{order:22}.arco-col-lg-order-23{order:23}.arco-col-lg-order-24{order:24}}@media (min-width: 1200px){.arco-col-xl-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-xl-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-xl-3{flex:0 0 12.5%;width:12.5%}.arco-col-xl-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-xl-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-xl-6{flex:0 0 25%;width:25%}.arco-col-xl-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-xl-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-xl-9{flex:0 0 37.5%;width:37.5%}.arco-col-xl-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-xl-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-xl-12{flex:0 0 50%;width:50%}.arco-col-xl-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-xl-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-xl-15{flex:0 0 62.5%;width:62.5%}.arco-col-xl-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-xl-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-xl-18{flex:0 0 75%;width:75%}.arco-col-xl-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-xl-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-xl-21{flex:0 0 87.5%;width:87.5%}.arco-col-xl-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-xl-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-xl-24{flex:0 0 100%;width:100%}.arco-col-xl-offset-1{margin-left:4.16666667%}.arco-col-xl-offset-2{margin-left:8.33333333%}.arco-col-xl-offset-3{margin-left:12.5%}.arco-col-xl-offset-4{margin-left:16.66666667%}.arco-col-xl-offset-5{margin-left:20.83333333%}.arco-col-xl-offset-6{margin-left:25%}.arco-col-xl-offset-7{margin-left:29.16666667%}.arco-col-xl-offset-8{margin-left:33.33333333%}.arco-col-xl-offset-9{margin-left:37.5%}.arco-col-xl-offset-10{margin-left:41.66666667%}.arco-col-xl-offset-11{margin-left:45.83333333%}.arco-col-xl-offset-12{margin-left:50%}.arco-col-xl-offset-13{margin-left:54.16666667%}.arco-col-xl-offset-14{margin-left:58.33333333%}.arco-col-xl-offset-15{margin-left:62.5%}.arco-col-xl-offset-16{margin-left:66.66666667%}.arco-col-xl-offset-17{margin-left:70.83333333%}.arco-col-xl-offset-18{margin-left:75%}.arco-col-xl-offset-19{margin-left:79.16666667%}.arco-col-xl-offset-20{margin-left:83.33333333%}.arco-col-xl-offset-21{margin-left:87.5%}.arco-col-xl-offset-22{margin-left:91.66666667%}.arco-col-xl-offset-23{margin-left:95.83333333%}.arco-col-xl-order-1{order:1}.arco-col-xl-order-2{order:2}.arco-col-xl-order-3{order:3}.arco-col-xl-order-4{order:4}.arco-col-xl-order-5{order:5}.arco-col-xl-order-6{order:6}.arco-col-xl-order-7{order:7}.arco-col-xl-order-8{order:8}.arco-col-xl-order-9{order:9}.arco-col-xl-order-10{order:10}.arco-col-xl-order-11{order:11}.arco-col-xl-order-12{order:12}.arco-col-xl-order-13{order:13}.arco-col-xl-order-14{order:14}.arco-col-xl-order-15{order:15}.arco-col-xl-order-16{order:16}.arco-col-xl-order-17{order:17}.arco-col-xl-order-18{order:18}.arco-col-xl-order-19{order:19}.arco-col-xl-order-20{order:20}.arco-col-xl-order-21{order:21}.arco-col-xl-order-22{order:22}.arco-col-xl-order-23{order:23}.arco-col-xl-order-24{order:24}}@media (min-width: 1600px){.arco-col-xxl-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-xxl-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-xxl-3{flex:0 0 12.5%;width:12.5%}.arco-col-xxl-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-xxl-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-xxl-6{flex:0 0 25%;width:25%}.arco-col-xxl-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-xxl-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-xxl-9{flex:0 0 37.5%;width:37.5%}.arco-col-xxl-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-xxl-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-xxl-12{flex:0 0 50%;width:50%}.arco-col-xxl-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-xxl-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-xxl-15{flex:0 0 62.5%;width:62.5%}.arco-col-xxl-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-xxl-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-xxl-18{flex:0 0 75%;width:75%}.arco-col-xxl-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-xxl-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-xxl-21{flex:0 0 87.5%;width:87.5%}.arco-col-xxl-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-xxl-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-xxl-24{flex:0 0 100%;width:100%}.arco-col-xxl-offset-1{margin-left:4.16666667%}.arco-col-xxl-offset-2{margin-left:8.33333333%}.arco-col-xxl-offset-3{margin-left:12.5%}.arco-col-xxl-offset-4{margin-left:16.66666667%}.arco-col-xxl-offset-5{margin-left:20.83333333%}.arco-col-xxl-offset-6{margin-left:25%}.arco-col-xxl-offset-7{margin-left:29.16666667%}.arco-col-xxl-offset-8{margin-left:33.33333333%}.arco-col-xxl-offset-9{margin-left:37.5%}.arco-col-xxl-offset-10{margin-left:41.66666667%}.arco-col-xxl-offset-11{margin-left:45.83333333%}.arco-col-xxl-offset-12{margin-left:50%}.arco-col-xxl-offset-13{margin-left:54.16666667%}.arco-col-xxl-offset-14{margin-left:58.33333333%}.arco-col-xxl-offset-15{margin-left:62.5%}.arco-col-xxl-offset-16{margin-left:66.66666667%}.arco-col-xxl-offset-17{margin-left:70.83333333%}.arco-col-xxl-offset-18{margin-left:75%}.arco-col-xxl-offset-19{margin-left:79.16666667%}.arco-col-xxl-offset-20{margin-left:83.33333333%}.arco-col-xxl-offset-21{margin-left:87.5%}.arco-col-xxl-offset-22{margin-left:91.66666667%}.arco-col-xxl-offset-23{margin-left:95.83333333%}.arco-col-xxl-order-1{order:1}.arco-col-xxl-order-2{order:2}.arco-col-xxl-order-3{order:3}.arco-col-xxl-order-4{order:4}.arco-col-xxl-order-5{order:5}.arco-col-xxl-order-6{order:6}.arco-col-xxl-order-7{order:7}.arco-col-xxl-order-8{order:8}.arco-col-xxl-order-9{order:9}.arco-col-xxl-order-10{order:10}.arco-col-xxl-order-11{order:11}.arco-col-xxl-order-12{order:12}.arco-col-xxl-order-13{order:13}.arco-col-xxl-order-14{order:14}.arco-col-xxl-order-15{order:15}.arco-col-xxl-order-16{order:16}.arco-col-xxl-order-17{order:17}.arco-col-xxl-order-18{order:18}.arco-col-xxl-order-19{order:19}.arco-col-xxl-order-20{order:20}.arco-col-xxl-order-21{order:21}.arco-col-xxl-order-22{order:22}.arco-col-xxl-order-23{order:23}.arco-col-xxl-order-24{order:24}}.arco-grid{display:grid}.arco-image-trigger{padding:6px 4px;background:var(--color-bg-5);border:1px solid var(--color-neutral-3);border-radius:4px}.arco-image-trigger .arco-trigger-arrow{background-color:var(--color-bg-5);border:1px solid var(--color-neutral-3)}.arco-image{position:relative;display:inline-block;border-radius:var(--border-radius-small)}.arco-image-img{vertical-align:middle;border-radius:inherit}.arco-image-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.arco-image-footer{display:flex;width:100%;max-width:100%}.arco-image-footer-caption{flex:1 1 auto}.arco-image-footer-caption-title{font-weight:500;font-size:16px}.arco-image-footer-caption-description{font-size:14px}.arco-image-footer-extra{flex:0 0 auto;padding-left:12px}.arco-image-with-footer-inner .arco-image-footer{position:absolute;bottom:0;left:0;align-items:center;box-sizing:border-box;padding:9px 16px;color:var(--color-white);background:linear-gradient(360deg,#0000004d,#0000);border-bottom-right-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.arco-image-with-footer-inner .arco-image-footer-caption-title,.arco-image-with-footer-inner .arco-image-footer-caption-description{color:var(--color-white)}.arco-image-with-footer-outer .arco-image-footer{margin-top:4px;color:var(--color-neutral-8)}.arco-image-with-footer-outer .arco-image-footer-caption-title{color:var(--color-text-1)}.arco-image-with-footer-outer .arco-image-footer-caption-description{color:var(--color-neutral-6)}.arco-image-error{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;color:var(--color-neutral-4);background-color:var(--color-neutral-1)}.arco-image-error-icon{width:60px;max-width:100%;height:60px;max-height:100%}.arco-image-error-icon>svg{width:100%;height:100%}.arco-image-error-alt{padding:8px 16px;font-size:12px;line-height:1.6667;text-align:center}.arco-image-loader{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-neutral-1)}.arco-image-loader-spin{position:absolute;top:50%;left:50%;color:rgb(var(--primary-6));font-size:32px;text-align:center;transform:translate(-50%,-50%)}.arco-image-loader-spin-text{color:var(--color-neutral-6);font-size:16px}.arco-image-simple.arco-image-with-footer-inner .arco-image-footer{padding:12px 16px}.arco-image-loading .arco-image-img,.arco-image-loading-error .arco-image-img{visibility:hidden}.arco-image-preview{position:fixed;top:0;left:0;z-index:1001;width:100%;height:100%}.arco-image-preview-hide{display:none}.arco-image-preview-mask,.arco-image-preview-wrapper{position:absolute;top:0;left:0;width:100%;height:100%}.arco-image-preview-mask{background-color:var(--color-mask-bg)}.arco-image-preview-img-container{width:100%;height:100%;text-align:center}.arco-image-preview-img-container:before{display:inline-block;width:0;height:100%;vertical-align:middle;content:""}.arco-image-preview-img-container .arco-image-preview-img{display:inline-block;max-width:100%;max-height:100%;vertical-align:middle;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-image-preview-img-container .arco-image-preview-img.arco-image-preview-img-moving{cursor:grabbing}.arco-image-preview-scale-value{box-sizing:border-box;padding:7px 10px;color:var(--color-white);font-size:12px;line-height:initial;background-color:#ffffff14;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arco-image-preview-toolbar{position:absolute;bottom:46px;left:50%;display:flex;align-items:flex-start;padding:4px 16px;background-color:var(--color-bg-2);border-radius:var(--border-radius-medium);transform:translate(-50%)}.arco-image-preview-toolbar-action{display:flex;align-items:center;color:var(--color-neutral-8);font-size:14px;background-color:transparent;border-radius:var(--border-radius-small);cursor:pointer}.arco-image-preview-toolbar-action:not(:last-of-type){margin-right:0}.arco-image-preview-toolbar-action:hover{color:rgb(var(--primary-6));background-color:var(--color-neutral-2)}.arco-image-preview-toolbar-action-disabled,.arco-image-preview-toolbar-action-disabled:hover{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-image-preview-toolbar-action-name{padding-right:12px;font-size:12px}.arco-image-preview-toolbar-action-content{padding:13px;line-height:1}.arco-image-preview-loading{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:48px;height:48px;padding:10px;color:rgb(var(--primary-6));font-size:18px;background-color:#232324;border-radius:var(--border-radius-medium);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arco-image-preview-close-btn{position:absolute;top:36px;right:36px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:var(--color-white);font-size:14px;line-height:32px;text-align:center;background:#00000080;border-radius:50%;cursor:pointer}.arco-image-preview-arrow-left,.arco-image-preview-arrow-right{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:var(--color-white);background-color:#ffffff4d;border-radius:50%;cursor:pointer}.arco-image-preview-arrow-left>svg,.arco-image-preview-arrow-right>svg{color:var(--color-white);font-size:16px}.arco-image-preview-arrow-left:hover,.arco-image-preview-arrow-right:hover{background-color:#ffffff80}.arco-image-preview-arrow-left{top:50%;left:20px;transform:translateY(-50%)}.arco-image-preview-arrow-right{top:50%;right:20px;transform:translateY(-50%)}.arco-image-preview-arrow-disabled{color:#ffffff4d;background-color:#fff3;cursor:not-allowed}.arco-image-preview-arrow-disabled>svg{color:#ffffff4d}.arco-image-preview-arrow-disabled:hover{background-color:#fff3}.image-fade-enter-from,.image-fade-leave-to{opacity:0}.image-fade-enter-to,.image-fade-leave-from{opacity:1}.image-fade-enter-active,.image-fade-leave-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1)}.arco-input-number{position:relative;box-sizing:border-box;width:100%;border-radius:var(--border-radius-small)}.arco-input-number-step-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;color:var(--color-text-2);background-color:var(--color-fill-2);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:all .1s cubic-bezier(0,0,1,1)}.arco-input-number-step-button:hover{background-color:var(--color-fill-3);border-color:var(--color-fill-3)}.arco-input-number-step-button:active{background-color:var(--color-fill-4);border-color:var(--color-fill-4)}.arco-input-number-step-button:disabled{color:var(--color-text-4);background-color:var(--color-fill-2);cursor:not-allowed}.arco-input-number-step-button:disabled:hover,.arco-input-number-step-button:disabled:active{background-color:var(--color-fill-2);border-color:var(--color-neutral-3)}.arco-input-number .arco-input-wrapper{position:relative}.arco-input-number-prefix,.arco-input-number-suffix{transition:all .1s cubic-bezier(0,0,1,1)}.arco-input-number-mode-embed .arco-input-number-step{position:absolute;top:4px;right:4px;bottom:4px;width:18px;overflow:hidden;border-radius:1px;opacity:0;transition:all .1s cubic-bezier(0,0,1,1)}.arco-input-number-mode-embed .arco-input-number-step .arco-input-number-step-button{width:100%;height:50%;font-size:10px;border:none;border-color:var(--color-neutral-3)}.arco-input-number-mode-embed .arco-input-suffix{justify-content:flex-end;min-width:6px}.arco-input-number-mode-embed .arco-input-suffix-has-feedback{min-width:32px}.arco-input-number-mode-embed .arco-input-suffix-has-feedback .arco-input-number-step{right:30px}.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):hover .arco-input-suffix:has(.arco-input-number-suffix),.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):focus-within .arco-input-suffix:has(.arco-input-number-suffix){padding-left:4px}.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):hover .arco-input-number-step,.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):focus-within .arco-input-number-step{opacity:1}.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):hover .arco-input-number-suffix,.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):focus-within .arco-input-number-suffix{opacity:0;pointer-events:none}.arco-input-number-mode-embed.arco-input-wrapper:not(.arco-input-focus) .arco-input-number-step-button:not(.arco-input-number-step-button-disabled):hover{background-color:var(--color-fill-4)}.arco-input-number-mode-button .arco-input-prepend,.arco-input-number-mode-button .arco-input-append{padding:0;border:none}.arco-input-number-mode-button .arco-input-prepend .arco-input-number-step-button{border-right:1px solid transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-number-mode-button .arco-input-prepend .arco-input-number-step-button:not(.arco-input-number-mode-button .arco-input-prepend .arco-input-number-step-button:active){border-right-color:var(--color-neutral-3)}.arco-input-number-mode-button .arco-input-append .arco-input-number-step-button{border-left:1px solid transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-number-mode-button .arco-input-append .arco-input-number-step-button:not(.arco-input-number-mode-button .arco-input-append .arco-input-number-step-button:active){border-left-color:var(--color-neutral-3)}.arco-input-number-readonly .arco-input-number-step-button{color:var(--color-text-4);pointer-events:none}.arco-input-tag{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1)}.arco-input-tag:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-input-tag:focus-within,.arco-input-tag.arco-input-tag-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-input-tag.arco-input-tag-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-input-tag.arco-input-tag-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-input-tag.arco-input-tag-disabled .arco-input-tag-prefix,.arco-input-tag.arco-input-tag-disabled .arco-input-tag-suffix{color:inherit}.arco-input-tag.arco-input-tag-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-input-tag.arco-input-tag-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-input-tag.arco-input-tag-error:focus-within,.arco-input-tag.arco-input-tag-error.arco-input-tag-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-input-tag .arco-input-tag-prefix,.arco-input-tag .arco-input-tag-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-input-tag .arco-input-tag-prefix>svg,.arco-input-tag .arco-input-tag-suffix>svg{font-size:14px}.arco-input-tag .arco-input-tag-prefix{padding-right:12px;color:var(--color-text-2)}.arco-input-tag .arco-input-tag-suffix{padding-left:12px;color:var(--color-text-2)}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon{display:inline-flex}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-input-tag .arco-input-tag-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-input-tag .arco-input-tag-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-input-tag:hover .arco-input-tag-clear-btn{visibility:visible}.arco-input-tag:not(.arco-input-tag-focus) .arco-input-tag-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-input-tag.arco-input-tag-has-tag{padding-right:4px;padding-left:4px}.arco-input-tag.arco-input-tag-has-prefix{padding-left:12px}.arco-input-tag.arco-input-tag-has-suffix{padding-right:12px}.arco-input-tag .arco-input-tag-inner{flex:1;overflow:hidden;line-height:0}.arco-input-tag .arco-input-tag-inner.arco-input-tag-nowrap{display:flex;flex-wrap:wrap}.arco-input-tag .arco-input-tag-inner .arco-input-tag-tag{display:inline-flex;align-items:center;margin-right:4px;color:var(--color-text-1);font-size:12px;white-space:pre-wrap;word-break:break-word;background-color:var(--color-bg-2);border-color:var(--color-fill-3)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-tag .arco-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-tag.arco-tag-custom-color{color:var(--color-white)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-tag.arco-tag-custom-color .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:#fff3}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input::-moz-placeholder{color:var(--color-text-3)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input::placeholder{color:var(--color-text-3)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input[disabled]::placeholder{color:var(--color-text-4)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-input-tag .arco-input-tag-mirror{position:absolute;top:0;left:0;white-space:pre;visibility:hidden;pointer-events:none}.arco-input-tag.arco-input-tag-focus .arco-input-tag-tag{background-color:var(--color-fill-2);border-color:var(--color-fill-2)}.arco-input-tag.arco-input-tag-focus .arco-input-tag-tag .arco-icon-hover:hover:before{background-color:var(--color-fill-3)}.arco-input-tag.arco-input-tag-disabled .arco-input-tag-tag{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:var(--color-fill-3)}.arco-input-tag.arco-input-tag-readonly,.arco-input-tag.arco-input-tag-disabled-input{cursor:default}.arco-input-tag.arco-input-tag-size-mini{font-size:12px}.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-inner{padding-top:0;padding-bottom:0}.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-input{margin-top:1px;margin-bottom:1px;line-height:18px;vertical-align:middle}.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-input{height:auto;min-height:20px}.arco-input-tag.arco-input-tag-size-medium{font-size:14px}.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-inner{padding-top:2px;padding-bottom:2px}.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-input{margin-top:1px;margin-bottom:1px;line-height:22px;vertical-align:middle}.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-input{height:auto;min-height:24px}.arco-input-tag.arco-input-tag-size-small{font-size:14px}.arco-input-tag.arco-input-tag-size-small .arco-input-tag-inner{padding-top:2px;padding-bottom:2px}.arco-input-tag.arco-input-tag-size-small .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-small .arco-input-tag-input{margin-top:1px;margin-bottom:1px;line-height:18px;vertical-align:middle}.arco-input-tag.arco-input-tag-size-small .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-small .arco-input-tag-input{height:auto;min-height:20px}.arco-input-tag.arco-input-tag-size-large{font-size:14px}.arco-input-tag.arco-input-tag-size-large .arco-input-tag-inner{padding-top:2px;padding-bottom:2px}.arco-input-tag.arco-input-tag-size-large .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-large .arco-input-tag-input{margin-top:1px;margin-bottom:1px;line-height:26px;vertical-align:middle}.arco-input-tag.arco-input-tag-size-large .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-large .arco-input-tag-input{height:auto;min-height:28px}.input-tag-zoom-enter-from{transform:scale(.5);opacity:0}.input-tag-zoom-enter-to{transform:scale(1);opacity:1}.input-tag-zoom-enter-active{transition:all .3s cubic-bezier(.34,.69,.1,1)}.input-tag-zoom-leave-from{transform:scale(1);opacity:1}.input-tag-zoom-leave-to{transform:scale(.5);opacity:0}.input-tag-zoom-leave-active{position:absolute;transition:all .3s cubic-bezier(.3,1.3,.3,1)}.input-tag-zoom-move{transition:all .3s cubic-bezier(.3,1.3,.3,1)}.arco-input-wrapper{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1)}.arco-input-wrapper:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-input-wrapper:focus-within,.arco-input-wrapper.arco-input-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-input-wrapper.arco-input-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-input-wrapper.arco-input-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-input-wrapper.arco-input-disabled .arco-input-prefix,.arco-input-wrapper.arco-input-disabled .arco-input-suffix{color:inherit}.arco-input-wrapper.arco-input-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-input-wrapper.arco-input-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-input-wrapper.arco-input-error:focus-within,.arco-input-wrapper.arco-input-error.arco-input-wrapper-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-input-wrapper .arco-input-prefix,.arco-input-wrapper .arco-input-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-input-wrapper .arco-input-prefix>svg,.arco-input-wrapper .arco-input-suffix>svg{font-size:14px}.arco-input-wrapper .arco-input-prefix{padding-right:12px;color:var(--color-text-2)}.arco-input-wrapper .arco-input-suffix{padding-left:12px;color:var(--color-text-2)}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon{display:inline-flex}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-input-wrapper .arco-input-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-input-wrapper .arco-input-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-input-wrapper:hover .arco-input-clear-btn{visibility:visible}.arco-input-wrapper:not(.arco-input-focus) .arco-input-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-input-wrapper .arco-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.arco-input-wrapper .arco-input::-moz-placeholder{color:var(--color-text-3)}.arco-input-wrapper .arco-input::placeholder{color:var(--color-text-3)}.arco-input-wrapper .arco-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-input-wrapper .arco-input[disabled]::placeholder{color:var(--color-text-4)}.arco-input-wrapper .arco-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-input-wrapper .arco-input.arco-input-size-mini{padding-top:1px;padding-bottom:1px;font-size:12px;line-height:1.667}.arco-input-wrapper .arco-input.arco-input-size-small{padding-top:2px;padding-bottom:2px;font-size:14px;line-height:1.5715}.arco-input-wrapper .arco-input.arco-input-size-medium{padding-top:4px;padding-bottom:4px;font-size:14px;line-height:1.5715}.arco-input-wrapper .arco-input.arco-input-size-large{padding-top:6px;padding-bottom:6px;font-size:14px;line-height:1.5715}.arco-input-wrapper .arco-input-word-limit{color:var(--color-text-3);font-size:12px}.arco-input-outer{display:inline-flex;width:100%}.arco-input-outer>.arco-input-wrapper{border-radius:0}.arco-input-outer>:first-child{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.arco-input-outer>:last-child{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.arco-input-outer.arco-input-outer-size-mini .arco-input-outer,.arco-input-outer.arco-input-outer-size-mini .arco-input-wrapper .arco-input-prefix,.arco-input-outer.arco-input-outer-size-mini .arco-input-wrapper .arco-input-suffix{font-size:12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-wrapper .arco-input-prefix>svg,.arco-input-outer.arco-input-outer-size-mini .arco-input-wrapper .arco-input-suffix>svg{font-size:12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend,.arco-input-outer.arco-input-outer-size-mini .arco-input-append{font-size:12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend>svg,.arco-input-outer.arco-input-outer-size-mini .arco-input-append>svg{font-size:12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend .arco-input{width:auto;height:100%;margin:-1px -13px -1px -12px;border-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend .arco-select{width:auto;height:100%;margin:-1px -13px -1px -12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-mini .arco-input-append .arco-input{width:auto;height:100%;margin:-1px -12px -1px -13px;border-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-outer.arco-input-outer-size-mini .arco-input-append .arco-select{width:auto;height:100%;margin:-1px -12px -1px -13px}.arco-input-outer.arco-input-outer-size-mini .arco-input-append .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-mini .arco-input-append .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-small .arco-input-outer,.arco-input-outer.arco-input-outer-size-small .arco-input-wrapper .arco-input-prefix,.arco-input-outer.arco-input-outer-size-small .arco-input-wrapper .arco-input-suffix{font-size:14px}.arco-input-outer.arco-input-outer-size-small .arco-input-wrapper .arco-input-prefix>svg,.arco-input-outer.arco-input-outer-size-small .arco-input-wrapper .arco-input-suffix>svg{font-size:14px}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend,.arco-input-outer.arco-input-outer-size-small .arco-input-append{font-size:14px}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend>svg,.arco-input-outer.arco-input-outer-size-small .arco-input-append>svg{font-size:14px}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend .arco-input{width:auto;height:100%;margin:-1px -13px -1px -12px;border-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend .arco-select{width:auto;height:100%;margin:-1px -13px -1px -12px}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-small .arco-input-append .arco-input{width:auto;height:100%;margin:-1px -12px -1px -13px;border-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-outer.arco-input-outer-size-small .arco-input-append .arco-select{width:auto;height:100%;margin:-1px -12px -1px -13px}.arco-input-outer.arco-input-outer-size-small .arco-input-append .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-small .arco-input-append .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-large .arco-input-outer,.arco-input-outer.arco-input-outer-size-large .arco-input-wrapper .arco-input-prefix,.arco-input-outer.arco-input-outer-size-large .arco-input-wrapper .arco-input-suffix{font-size:14px}.arco-input-outer.arco-input-outer-size-large .arco-input-wrapper .arco-input-prefix>svg,.arco-input-outer.arco-input-outer-size-large .arco-input-wrapper .arco-input-suffix>svg{font-size:14px}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend,.arco-input-outer.arco-input-outer-size-large .arco-input-append{font-size:14px}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend>svg,.arco-input-outer.arco-input-outer-size-large .arco-input-append>svg{font-size:14px}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend .arco-input{width:auto;height:100%;margin:-1px -13px -1px -12px;border-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend .arco-select{width:auto;height:100%;margin:-1px -13px -1px -12px}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-large .arco-input-append .arco-input{width:auto;height:100%;margin:-1px -12px -1px -13px;border-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-outer.arco-input-outer-size-large .arco-input-append .arco-select{width:auto;height:100%;margin:-1px -12px -1px -13px}.arco-input-outer.arco-input-outer-size-large .arco-input-append .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-large .arco-input-append .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer-disabled{cursor:not-allowed}.arco-input-prepend,.arco-input-append{display:inline-flex;flex-shrink:0;align-items:center;box-sizing:border-box;padding:0 12px;color:var(--color-text-1);white-space:nowrap;background-color:var(--color-fill-2);border:1px solid transparent}.arco-input-prepend>svg,.arco-input-append>svg{font-size:14px}.arco-input-prepend{border-right:1px solid var(--color-neutral-3)}.arco-input-prepend .arco-input{width:auto;height:100%;margin:-1px -12px -1px -13px;border-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-prepend .arco-select{width:auto;height:100%;margin:-1px -12px -1px -13px}.arco-input-prepend .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-prepend .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-append{border-left:1px solid var(--color-neutral-3)}.arco-input-append .arco-input{width:auto;height:100%;margin:-1px -13px -1px -12px;border-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-append .arco-select{width:auto;height:100%;margin:-1px -13px -1px -12px}.arco-input-append .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-append .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-group{display:inline-flex;align-items:center}.arco-input-group>*{border-radius:0}.arco-input-group>*.arco-input-outer>:last-child,.arco-input-group>*.arco-input-outer>:first-child{border-radius:0}.arco-input-group>*:not(:last-child){position:relative;box-sizing:border-box}.arco-input-group>*:first-child,.arco-input-group>*:first-child .arco-input-group>*:first-child{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.arco-input-group>*:first-child .arco-select-view,.arco-input-group>*:first-child .arco-input-group>*:first-child .arco-select-view{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.arco-input-group>*:last-child,.arco-input-group>*:last-child .arco-input-outer>*:last-child{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.arco-input-group>*:last-child .arco-select-view,.arco-input-group>*:last-child .arco-input-outer>*:last-child .arco-select-view{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.arco-input-group>.arco-input-wrapper:not(:last-child),.arco-input-group>.arco-input-outer:not(:last-child),.arco-input-group>.arco-input-tag:not(:last-child),.arco-input-group>.arco-select-view:not(:last-child){margin-right:-1px;border-right:1px solid var(--color-neutral-3)}.arco-input-group>.arco-input-wrapper:not(:last-child):focus-within,.arco-input-group>.arco-input-outer:not(:last-child):focus-within,.arco-input-group>.arco-input-tag:not(:last-child):focus-within,.arco-input-group>.arco-select-view:not(:last-child):focus-within{border-right-color:rgb(var(--primary-6))}.arco-input-group>.arco-input-wrapper.arco-input-error:not(:last-child):focus-within{border-right-color:rgb(var(--danger-6))}.size-height-size-mini{padding-top:1px;padding-bottom:1px;font-size:12px;line-height:1.667}.size-height-size-small{padding-top:2px;padding-bottom:2px;font-size:14px}.size-height-size-large{padding-top:6px;padding-bottom:6px;font-size:14px}.arco-textarea-wrapper{position:relative;display:inline-block;width:100%}.arco-textarea-clear-wrapper:hover .arco-textarea-clear-icon{display:inline-block}.arco-textarea-clear-wrapper .arco-textarea{padding-right:20px}.arco-textarea-word-limit{position:absolute;right:10px;bottom:6px;color:var(--color-text-3);font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-textarea-clear-icon{position:absolute;top:10px;right:10px;display:none;font-size:12px}.arco-input-search .arco-input-append{padding:0;border:none}.arco-input-search .arco-input-suffix{color:var(--color-text-2);font-size:14px}.arco-input-search .arco-input-search-btn{border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-wrapper.arco-input-password:not(.arco-input-disabled) .arco-input-suffix{color:var(--color-text-2);font-size:12px;cursor:pointer}.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:#fff3;cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.arco-link{display:inline-flex;align-items:center;justify-content:center;padding:1px 4px;color:rgb(var(--link-6));font-size:14px;line-height:1.5715;text-decoration:none;background-color:transparent;border-radius:var(--border-radius-small);cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-link:hover{color:rgb(var(--link-6));background-color:var(--color-fill-2)}.arco-link:active{color:rgb(var(--link-6));background-color:var(--color-fill-3);transition:none}.arco-link.arco-link-hoverless{display:inline;padding:0;background-color:unset}.arco-link.arco-link-hoverless:active,.arco-link.arco-link-hoverless:hover{background-color:unset}.arco-link.arco-link-disabled{color:var(--color-link-light-3);background:none;cursor:not-allowed}.arco-link.arco-link-loading{color:var(--color-link-light-3);background:none;cursor:default}.arco-link-status-success,.arco-link-status-success:hover,.arco-link-status-success:active{color:rgb(var(--success-6))}.arco-link-status-success.arco-link-disabled,.arco-link-status-success.arco-link-loading{color:var(--color-success-light-3)}.arco-link-status-danger,.arco-link-status-danger:hover,.arco-link-status-danger:active{color:rgb(var(--danger-6))}.arco-link-status-danger.arco-link-disabled,.arco-link-status-danger.arco-link-loading{color:var(--color-danger-light-3)}.arco-link-status-warning,.arco-link-status-warning:hover,.arco-link-status-warning:active{color:rgb(var(--warning-6))}.arco-link-status-warning.arco-link-disabled,.arco-link-status-warning.arco-link-loading{color:var(--color-warning-light-2)}.arco-link-icon{margin-right:6px;font-size:12px;vertical-align:middle}.arco-list{display:flex;flex-direction:column;box-sizing:border-box;width:100%;overflow-y:auto;color:var(--color-text-1);font-size:14px;line-height:1.5715;border-radius:var(--border-radius-medium)}.arco-list-wrapper{overflow:hidden}.arco-list-wrapper .arco-list-spin{display:block;height:100%;overflow:hidden}.arco-list-content{overflow:hidden}.arco-list-small .arco-list-content-wrapper .arco-list-header{padding:8px 20px}.arco-list-small .arco-list-content-wrapper .arco-list-footer,.arco-list-small .arco-list-content-wrapper .arco-list-content>.arco-list-item,.arco-list-small .arco-list-content-wrapper .arco-list-content .arco-list-col>.arco-list-item,.arco-list-small .arco-list-content-wrapper .arco-list-content.arco-list-virtual .arco-list-item{padding:9px 20px}.arco-list-medium .arco-list-content-wrapper .arco-list-header{padding:12px 20px}.arco-list-medium .arco-list-content-wrapper .arco-list-footer,.arco-list-medium .arco-list-content-wrapper .arco-list-content>.arco-list-item,.arco-list-medium .arco-list-content-wrapper .arco-list-content .arco-list-col>.arco-list-item,.arco-list-medium .arco-list-content-wrapper .arco-list-content.arco-list-virtual .arco-list-item{padding:13px 20px}.arco-list-large .arco-list-content-wrapper .arco-list-header{padding:16px 20px}.arco-list-large .arco-list-content-wrapper .arco-list-footer,.arco-list-large .arco-list-content-wrapper .arco-list-content>.arco-list-item,.arco-list-large .arco-list-content-wrapper .arco-list-content .arco-list-col>.arco-list-item,.arco-list-large .arco-list-content-wrapper .arco-list-content.arco-list-virtual .arco-list-item{padding:17px 20px}.arco-list-bordered{border:1px solid var(--color-neutral-3)}.arco-list-split .arco-list-header,.arco-list-split .arco-list-item:not(:last-child){border-bottom:1px solid var(--color-neutral-3)}.arco-list-split .arco-list-footer{border-top:1px solid var(--color-neutral-3)}.arco-list-header{color:var(--color-text-1);font-weight:500;font-size:16px;line-height:1.5}.arco-list-item{display:flex;justify-content:space-between;box-sizing:border-box;width:100%;overflow:hidden}.arco-list-item-main{flex:1}.arco-list-item-main .arco-list-item-action:not(:first-child){margin-top:4px}.arco-list-item-meta{display:flex;align-items:center;padding:4px 0}.arco-list-item-meta-avatar{display:flex}.arco-list-item-meta-avatar:not(:last-child){margin-right:16px}.arco-list-item-meta-title{color:var(--color-text-1);font-weight:500}.arco-list-item-meta-title:not(:last-child){margin-bottom:2px}.arco-list-item-meta-description{color:var(--color-text-2)}.arco-list-item-action{display:flex;flex-wrap:nowrap;align-self:center;margin:0;padding:0;list-style:none}.arco-list-item-action>li{display:inline-block;cursor:pointer}.arco-list-item-action>li:not(:last-child){margin-right:20px}.arco-list-hover .arco-list-item:hover{background-color:var(--color-fill-1)}.arco-list-pagination{float:right;margin-top:24px}.arco-list-pagination:after{display:block;clear:both;height:0;overflow:hidden;visibility:hidden;content:""}.arco-list-scroll-loading{display:flex;align-items:center;justify-content:center}.arco-list-content{flex:auto}.arco-list-content .arco-empty{display:flex;align-items:center;justify-content:center;height:100%}.arco-mention{position:relative;display:inline-block;box-sizing:border-box;width:100%}.arco-mention-measure{position:absolute;inset:0;overflow:auto;visibility:hidden;pointer-events:none}@keyframes arco-menu-selected-item-label-enter{0%{opacity:0}to{opacity:1}}.arco-menu{position:relative;box-sizing:border-box;width:100%;font-size:14px;line-height:1.5715;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-menu:focus-visible{outline:3px solid var(--color-primary-light-2)}.arco-menu-indent{display:inline-block;width:20px}.arco-menu .arco-menu-item,.arco-menu .arco-menu-group-title,.arco-menu .arco-menu-pop-header,.arco-menu .arco-menu-inline-header{position:relative;box-sizing:border-box;border-radius:var(--border-radius-small);cursor:pointer}.arco-menu .arco-menu-item.arco-menu-disabled,.arco-menu .arco-menu-group-title.arco-menu-disabled,.arco-menu .arco-menu-pop-header.arco-menu-disabled,.arco-menu .arco-menu-inline-header.arco-menu-disabled{cursor:not-allowed}.arco-menu .arco-menu-item.arco-menu-selected,.arco-menu .arco-menu-group-title.arco-menu-selected,.arco-menu .arco-menu-pop-header.arco-menu-selected,.arco-menu .arco-menu-inline-header.arco-menu-selected{font-weight:500;transition:color .2s cubic-bezier(0,0,1,1)}.arco-menu .arco-menu-item.arco-menu-selected svg,.arco-menu .arco-menu-group-title.arco-menu-selected svg,.arco-menu .arco-menu-pop-header.arco-menu-selected svg,.arco-menu .arco-menu-inline-header.arco-menu-selected svg{transition:color .2s cubic-bezier(0,0,1,1)}.arco-menu .arco-menu-item .arco-icon,.arco-menu .arco-menu-group-title .arco-icon,.arco-menu .arco-menu-pop-header .arco-icon,.arco-menu .arco-menu-inline-header .arco-icon,.arco-menu .arco-menu-item .arco-menu-icon,.arco-menu .arco-menu-group-title .arco-menu-icon,.arco-menu .arco-menu-pop-header .arco-menu-icon,.arco-menu .arco-menu-inline-header .arco-menu-icon{margin-right:16px}.arco-menu .arco-menu-item .arco-menu-icon .arco-icon,.arco-menu .arco-menu-group-title .arco-menu-icon .arco-icon,.arco-menu .arco-menu-pop-header .arco-menu-icon .arco-icon,.arco-menu .arco-menu-inline-header .arco-menu-icon .arco-icon{margin-right:0}.arco-menu-light{background-color:var(--color-menu-light-bg)}.arco-menu-light .arco-menu-item,.arco-menu-light .arco-menu-group-title,.arco-menu-light .arco-menu-pop-header,.arco-menu-light .arco-menu-inline-header{color:var(--color-text-2);background-color:var(--color-menu-light-bg)}.arco-menu-light .arco-menu-item .arco-icon,.arco-menu-light .arco-menu-group-title .arco-icon,.arco-menu-light .arco-menu-pop-header .arco-icon,.arco-menu-light .arco-menu-inline-header .arco-icon,.arco-menu-light .arco-menu-item .arco-menu-icon,.arco-menu-light .arco-menu-group-title .arco-menu-icon,.arco-menu-light .arco-menu-pop-header .arco-menu-icon,.arco-menu-light .arco-menu-inline-header .arco-menu-icon{color:var(--color-text-3)}.arco-menu-light .arco-menu-item:hover,.arco-menu-light .arco-menu-group-title:hover,.arco-menu-light .arco-menu-pop-header:hover,.arco-menu-light .arco-menu-inline-header:hover{color:var(--color-text-2);background-color:var(--color-fill-2)}.arco-menu-light .arco-menu-item:hover .arco-icon,.arco-menu-light .arco-menu-group-title:hover .arco-icon,.arco-menu-light .arco-menu-pop-header:hover .arco-icon,.arco-menu-light .arco-menu-inline-header:hover .arco-icon,.arco-menu-light .arco-menu-item:hover .arco-menu-icon,.arco-menu-light .arco-menu-group-title:hover .arco-menu-icon,.arco-menu-light .arco-menu-pop-header:hover .arco-menu-icon,.arco-menu-light .arco-menu-inline-header:hover .arco-menu-icon{color:var(--color-text-3)}.arco-menu-light .arco-menu-item.arco-menu-selected,.arco-menu-light .arco-menu-group-title.arco-menu-selected,.arco-menu-light .arco-menu-pop-header.arco-menu-selected,.arco-menu-light .arco-menu-inline-header.arco-menu-selected,.arco-menu-light .arco-menu-item.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-group-title.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-pop-header.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-item.arco-menu-selected .arco-menu-icon,.arco-menu-light .arco-menu-group-title.arco-menu-selected .arco-menu-icon,.arco-menu-light .arco-menu-pop-header.arco-menu-selected .arco-menu-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-menu-icon{color:rgb(var(--primary-6))}.arco-menu-light .arco-menu-item.arco-menu-disabled,.arco-menu-light .arco-menu-group-title.arco-menu-disabled,.arco-menu-light .arco-menu-pop-header.arco-menu-disabled,.arco-menu-light .arco-menu-inline-header.arco-menu-disabled{color:var(--color-text-4);background-color:var(--color-menu-light-bg)}.arco-menu-light .arco-menu-item.arco-menu-disabled .arco-icon,.arco-menu-light .arco-menu-group-title.arco-menu-disabled .arco-icon,.arco-menu-light .arco-menu-pop-header.arco-menu-disabled .arco-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-disabled .arco-icon,.arco-menu-light .arco-menu-item.arco-menu-disabled .arco-menu-icon,.arco-menu-light .arco-menu-group-title.arco-menu-disabled .arco-menu-icon,.arco-menu-light .arco-menu-pop-header.arco-menu-disabled .arco-menu-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-disabled .arco-menu-icon{color:var(--color-text-4)}.arco-menu-light .arco-menu-item.arco-menu-selected{background-color:var(--color-fill-2)}.arco-menu-light .arco-menu-inline-header.arco-menu-selected,.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-menu-icon{color:rgb(var(--primary-6))}.arco-menu-light .arco-menu-inline-header.arco-menu-selected:hover{background-color:var(--color-fill-2)}.arco-menu-light.arco-menu-horizontal .arco-menu-item.arco-menu-selected,.arco-menu-light.arco-menu-horizontal .arco-menu-group-title.arco-menu-selected,.arco-menu-light.arco-menu-horizontal .arco-menu-pop-header.arco-menu-selected,.arco-menu-light.arco-menu-horizontal .arco-menu-inline-header.arco-menu-selected{background:none;transition:color .2s cubic-bezier(0,0,1,1)}.arco-menu-light.arco-menu-horizontal .arco-menu-item.arco-menu-selected:hover,.arco-menu-light.arco-menu-horizontal .arco-menu-group-title.arco-menu-selected:hover,.arco-menu-light.arco-menu-horizontal .arco-menu-pop-header.arco-menu-selected:hover,.arco-menu-light.arco-menu-horizontal .arco-menu-inline-header.arco-menu-selected:hover{background-color:var(--color-fill-2)}.arco-menu-light .arco-menu-group-title{color:var(--color-text-3);pointer-events:none}.arco-menu-light .arco-menu-collapse-button{color:var(--color-text-3);background-color:var(--color-fill-1)}.arco-menu-light .arco-menu-collapse-button:hover{background-color:var(--color-fill-3)}.arco-menu-dark{background-color:var(--color-menu-dark-bg)}.arco-menu-dark .arco-menu-item,.arco-menu-dark .arco-menu-group-title,.arco-menu-dark .arco-menu-pop-header,.arco-menu-dark .arco-menu-inline-header{color:var(--color-text-4);background-color:var(--color-menu-dark-bg)}.arco-menu-dark .arco-menu-item .arco-icon,.arco-menu-dark .arco-menu-group-title .arco-icon,.arco-menu-dark .arco-menu-pop-header .arco-icon,.arco-menu-dark .arco-menu-inline-header .arco-icon,.arco-menu-dark .arco-menu-item .arco-menu-icon,.arco-menu-dark .arco-menu-group-title .arco-menu-icon,.arco-menu-dark .arco-menu-pop-header .arco-menu-icon,.arco-menu-dark .arco-menu-inline-header .arco-menu-icon{color:var(--color-text-3)}.arco-menu-dark .arco-menu-item:hover,.arco-menu-dark .arco-menu-group-title:hover,.arco-menu-dark .arco-menu-pop-header:hover,.arco-menu-dark .arco-menu-inline-header:hover{color:var(--color-text-4);background-color:var(--color-menu-dark-hover)}.arco-menu-dark .arco-menu-item:hover .arco-icon,.arco-menu-dark .arco-menu-group-title:hover .arco-icon,.arco-menu-dark .arco-menu-pop-header:hover .arco-icon,.arco-menu-dark .arco-menu-inline-header:hover .arco-icon,.arco-menu-dark .arco-menu-item:hover .arco-menu-icon,.arco-menu-dark .arco-menu-group-title:hover .arco-menu-icon,.arco-menu-dark .arco-menu-pop-header:hover .arco-menu-icon,.arco-menu-dark .arco-menu-inline-header:hover .arco-menu-icon{color:var(--color-text-3)}.arco-menu-dark .arco-menu-item.arco-menu-selected,.arco-menu-dark .arco-menu-group-title.arco-menu-selected,.arco-menu-dark .arco-menu-pop-header.arco-menu-selected,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected,.arco-menu-dark .arco-menu-item.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-group-title.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-pop-header.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-item.arco-menu-selected .arco-menu-icon,.arco-menu-dark .arco-menu-group-title.arco-menu-selected .arco-menu-icon,.arco-menu-dark .arco-menu-pop-header.arco-menu-selected .arco-menu-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected .arco-menu-icon{color:var(--color-white)}.arco-menu-dark .arco-menu-item.arco-menu-disabled,.arco-menu-dark .arco-menu-group-title.arco-menu-disabled,.arco-menu-dark .arco-menu-pop-header.arco-menu-disabled,.arco-menu-dark .arco-menu-inline-header.arco-menu-disabled{color:var(--color-text-2);background-color:var(--color-menu-dark-bg)}.arco-menu-dark .arco-menu-item.arco-menu-disabled .arco-icon,.arco-menu-dark .arco-menu-group-title.arco-menu-disabled .arco-icon,.arco-menu-dark .arco-menu-pop-header.arco-menu-disabled .arco-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-disabled .arco-icon,.arco-menu-dark .arco-menu-item.arco-menu-disabled .arco-menu-icon,.arco-menu-dark .arco-menu-group-title.arco-menu-disabled .arco-menu-icon,.arco-menu-dark .arco-menu-pop-header.arco-menu-disabled .arco-menu-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-disabled .arco-menu-icon{color:var(--color-text-2)}.arco-menu-dark .arco-menu-item.arco-menu-selected{background-color:var(--color-menu-dark-hover)}.arco-menu-dark .arco-menu-inline-header.arco-menu-selected,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected .arco-menu-icon{color:rgb(var(--primary-6))}.arco-menu-dark .arco-menu-inline-header.arco-menu-selected:hover{background-color:var(--color-menu-dark-hover)}.arco-menu-dark.arco-menu-horizontal .arco-menu-item.arco-menu-selected,.arco-menu-dark.arco-menu-horizontal .arco-menu-group-title.arco-menu-selected,.arco-menu-dark.arco-menu-horizontal .arco-menu-pop-header.arco-menu-selected,.arco-menu-dark.arco-menu-horizontal .arco-menu-inline-header.arco-menu-selected{background:none;transition:color .2s cubic-bezier(0,0,1,1)}.arco-menu-dark.arco-menu-horizontal .arco-menu-item.arco-menu-selected:hover,.arco-menu-dark.arco-menu-horizontal .arco-menu-group-title.arco-menu-selected:hover,.arco-menu-dark.arco-menu-horizontal .arco-menu-pop-header.arco-menu-selected:hover,.arco-menu-dark.arco-menu-horizontal .arco-menu-inline-header.arco-menu-selected:hover{background-color:var(--color-menu-dark-hover)}.arco-menu-dark .arco-menu-group-title{color:var(--color-text-3);pointer-events:none}.arco-menu-dark .arco-menu-collapse-button{color:var(--color-white);background-color:rgb(var(--primary-6))}.arco-menu-dark .arco-menu-collapse-button:hover{background-color:rgb(var(--primary-7))}.arco-menu a,.arco-menu a:hover,.arco-menu a:focus,.arco-menu a:active{color:inherit;text-decoration:none;cursor:inherit}.arco-menu-inner{box-sizing:border-box;width:100%;height:100%;overflow:auto}.arco-menu-icon-suffix.is-open{transform:rotate(180deg)}.arco-menu-vertical .arco-menu-item,.arco-menu-vertical .arco-menu-group-title,.arco-menu-vertical .arco-menu-pop-header,.arco-menu-vertical .arco-menu-inline-header{padding:0 12px;line-height:40px}.arco-menu-vertical .arco-menu-item .arco-menu-icon-suffix .arco-icon,.arco-menu-vertical .arco-menu-group-title .arco-menu-icon-suffix .arco-icon,.arco-menu-vertical .arco-menu-pop-header .arco-menu-icon-suffix .arco-icon,.arco-menu-vertical .arco-menu-inline-header .arco-menu-icon-suffix .arco-icon{margin-right:0}.arco-menu-vertical .arco-menu-item,.arco-menu-vertical .arco-menu-group-title,.arco-menu-vertical .arco-menu-pop-header,.arco-menu-vertical .arco-menu-inline-header{margin-bottom:4px}.arco-menu-vertical .arco-menu-item:not(.arco-menu-has-icon),.arco-menu-vertical .arco-menu-group-title:not(.arco-menu-has-icon),.arco-menu-vertical .arco-menu-pop-header:not(.arco-menu-has-icon),.arco-menu-vertical .arco-menu-inline-header:not(.arco-menu-has-icon){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-menu-vertical .arco-menu-item.arco-menu-has-icon,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon{display:flex;align-items:center}.arco-menu-vertical .arco-menu-item.arco-menu-has-icon>.arco-menu-indent-list,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon>.arco-menu-indent-list,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon>.arco-menu-indent-list,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon>.arco-menu-indent-list,.arco-menu-vertical .arco-menu-item.arco-menu-has-icon>.arco-menu-icon,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon>.arco-menu-icon,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon>.arco-menu-icon,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon>.arco-menu-icon{flex:none}.arco-menu-vertical .arco-menu-item.arco-menu-has-icon .arco-menu-icon,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon .arco-menu-icon,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon .arco-menu-icon,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon .arco-menu-icon{line-height:1}.arco-menu-vertical .arco-menu-item.arco-menu-has-icon .arco-menu-title,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon .arco-menu-title,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon .arco-menu-title,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon .arco-menu-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-menu-vertical .arco-menu-item .arco-menu-item-inner,.arco-menu-vertical .arco-menu-group-title .arco-menu-item-inner,.arco-menu-vertical .arco-menu-pop-header .arco-menu-item-inner,.arco-menu-vertical .arco-menu-inline-header .arco-menu-item-inner{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.arco-menu-vertical .arco-menu-item .arco-menu-icon-suffix,.arco-menu-vertical .arco-menu-group-title .arco-menu-icon-suffix,.arco-menu-vertical .arco-menu-pop-header .arco-menu-icon-suffix,.arco-menu-vertical .arco-menu-inline-header .arco-menu-icon-suffix{position:absolute;right:12px}.arco-menu-vertical .arco-menu-inner{padding:4px 8px}.arco-menu-vertical .arco-menu-item.arco-menu-item-indented{display:flex}.arco-menu-vertical .arco-menu-pop-header,.arco-menu-vertical .arco-menu-inline-header{padding-right:28px}.arco-menu-horizontal{width:100%;height:auto}.arco-menu-horizontal .arco-menu-item,.arco-menu-horizontal .arco-menu-group-title,.arco-menu-horizontal .arco-menu-pop-header,.arco-menu-horizontal .arco-menu-inline-header{padding:0 12px;line-height:30px}.arco-menu-horizontal .arco-menu-item .arco-menu-icon-suffix .arco-icon,.arco-menu-horizontal .arco-menu-group-title .arco-menu-icon-suffix .arco-icon,.arco-menu-horizontal .arco-menu-pop-header .arco-menu-icon-suffix .arco-icon,.arco-menu-horizontal .arco-menu-inline-header .arco-menu-icon-suffix .arco-icon{margin-right:0}.arco-menu-horizontal .arco-menu-item .arco-icon,.arco-menu-horizontal .arco-menu-group-title .arco-icon,.arco-menu-horizontal .arco-menu-pop-header .arco-icon,.arco-menu-horizontal .arco-menu-inline-header .arco-icon,.arco-menu-horizontal .arco-menu-item .arco-menu-icon,.arco-menu-horizontal .arco-menu-group-title .arco-menu-icon,.arco-menu-horizontal .arco-menu-pop-header .arco-menu-icon,.arco-menu-horizontal .arco-menu-inline-header .arco-menu-icon{margin-right:16px}.arco-menu-horizontal .arco-menu-item .arco-menu-icon-suffix,.arco-menu-horizontal .arco-menu-group-title .arco-menu-icon-suffix,.arco-menu-horizontal .arco-menu-pop-header .arco-menu-icon-suffix,.arco-menu-horizontal .arco-menu-inline-header .arco-menu-icon-suffix{margin-left:6px}.arco-menu-horizontal .arco-menu-inner{display:flex;align-items:center;padding:14px 20px}.arco-menu-horizontal .arco-menu-item,.arco-menu-horizontal .arco-menu-pop{display:inline-block;flex-shrink:0;vertical-align:middle}.arco-menu-horizontal .arco-menu-item:not(:first-child),.arco-menu-horizontal .arco-menu-pop:not(:first-child){margin-left:12px}.arco-menu-horizontal .arco-menu-pop:after{position:absolute;bottom:-14px;left:0;width:100%;height:14px;content:" "}.arco-menu-overflow-wrap{width:100%}.arco-menu-overflow-sub-menu-mirror,.arco-menu-overflow-hidden-menu-item{position:absolute!important;white-space:nowrap;visibility:hidden;pointer-events:none}.arco-menu-selected-label{position:absolute;right:12px;bottom:-14px;left:12px;height:3px;background-color:rgb(var(--primary-6));animation:arco-menu-selected-item-label-enter .2s cubic-bezier(0,0,1,1)}.arco-menu-pop-button{width:auto;background:none;box-shadow:none}.arco-menu-pop-button.arco-menu-collapsed{width:auto}.arco-menu-pop-button .arco-menu-item,.arco-menu-pop-button .arco-menu-group-title,.arco-menu-pop-button .arco-menu-pop-header,.arco-menu-pop-button .arco-menu-inline-header{width:40px;height:40px;margin-bottom:16px;line-height:40px;border:1px solid transparent;border-radius:50%;box-shadow:0 4px 10px #0000001a}.arco-menu-collapsed{width:48px}.arco-menu-collapsed .arco-menu-inner{padding:4px}.arco-menu-collapsed .arco-menu-icon-suffix{display:none}.arco-menu-collapsed .arco-menu-has-icon>*:not(.arco-menu-icon){opacity:0}.arco-menu-collapsed .arco-menu-item .arco-icon,.arco-menu-collapsed .arco-menu-group-title .arco-icon,.arco-menu-collapsed .arco-menu-pop-header .arco-icon,.arco-menu-collapsed .arco-menu-inline-header .arco-icon{margin-right:100%}.arco-menu-collapse-button{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--border-radius-small);cursor:pointer}.arco-menu-inline-content{height:auto;overflow:hidden;transition:height .2s cubic-bezier(.34,.69,.1,1)}.arco-menu-inline-content-hide{height:0}.arco-menu-item-tooltip a{color:inherit;cursor:text}.arco-menu-item-tooltip a:hover,.arco-menu-item-tooltip a:focus,.arco-menu-item-tooltip a:active{color:inherit}.arco-menu-pop-trigger.arco-trigger-position-bl{transform:translateY(14px)}.arco-menu-pop-trigger.arco-trigger-position-bl .arco-trigger-arrow{z-index:0;border-top:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-menu-pop-trigger.arco-trigger-position-rt{transform:translate(8px)}.arco-menu-pop-trigger.arco-trigger-position-rt .arco-trigger-arrow{z-index:0;border-bottom:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-menu-pop-trigger.arco-menu-pop-trigger-dark .arco-trigger-arrow{background-color:var(--color-menu-dark-bg);border-color:var(--color-menu-dark-bg)}.arco-trigger-menu{position:relative;box-sizing:border-box;max-height:200px;padding:4px 0;overflow:auto;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-trigger-menu-hidden{display:none}.arco-trigger-menu-item,.arco-trigger-menu-pop-header{position:relative;z-index:1;box-sizing:border-box;width:100%;height:36px;padding:0 12px;color:var(--color-text-1);font-size:14px;line-height:36px;text-align:left;background-color:transparent;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-trigger-menu-item.arco-trigger-menu-selected,.arco-trigger-menu-pop-header.arco-trigger-menu-selected{color:var(--color-text-1);font-weight:500;background-color:transparent;transition:all .1s cubic-bezier(0,0,1,1)}.arco-trigger-menu-item:hover,.arco-trigger-menu-pop-header:hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-trigger-menu-item.arco-trigger-menu-disabled,.arco-trigger-menu-pop-header.arco-trigger-menu-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-trigger-menu .arco-trigger-menu-has-icon{display:flex;align-items:center}.arco-trigger-menu .arco-trigger-menu-has-icon .arco-trigger-menu-icon{margin-right:8px;line-height:1}.arco-trigger-menu .arco-trigger-menu-has-icon>*{flex:none}.arco-trigger-menu .arco-trigger-menu-has-icon .arco-trigger-menu-title{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-trigger-menu-pop-header{display:flex;align-items:center;justify-content:space-between}.arco-trigger-menu-pop-header .arco-trigger-menu-icon-suffix{margin-left:12px}.arco-trigger-menu-group:first-child .arco-trigger-menu-group-title{padding-top:4px}.arco-trigger-menu-group-title{box-sizing:border-box;width:100%;padding:8px 12px 0;color:var(--color-text-3);font-size:12px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-trigger-menu-pop-trigger .arco-trigger-arrow{display:none}.arco-trigger-menu-dark{background-color:var(--color-menu-dark-bg);border-color:var(--color-menu-dark-bg)}.arco-trigger-menu-dark .arco-trigger-menu-item,.arco-trigger-menu-dark .arco-trigger-menu-pop-header{color:var(--color-text-4);background-color:transparent}.arco-trigger-menu-dark .arco-trigger-menu-item.arco-trigger-menu-selected,.arco-trigger-menu-dark .arco-trigger-menu-pop-header.arco-trigger-menu-selected{color:var(--color-white);background-color:transparent}.arco-trigger-menu-dark .arco-trigger-menu-item.arco-trigger-menu-selected:hover,.arco-trigger-menu-dark .arco-trigger-menu-pop-header.arco-trigger-menu-selected:hover{color:var(--color-white)}.arco-trigger-menu-dark .arco-trigger-menu-item:hover,.arco-trigger-menu-dark .arco-trigger-menu-pop-header:hover{color:var(--color-text-4);background-color:var(--color-menu-dark-hover)}.arco-trigger-menu-dark .arco-trigger-menu-item.arco-trigger-menu-disabled,.arco-trigger-menu-dark .arco-trigger-menu-pop-header.arco-trigger-menu-disabled{color:var(--color-text-2);background-color:transparent}.arco-trigger-menu-dark .arco-trigger-menu-group-title{color:var(--color-text-3)}.arco-message-list{position:fixed;z-index:1003;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100%;margin:0;padding:0 10px;text-align:center;pointer-events:none;left:0}.arco-message-list-top{top:40px}.arco-message-list-bottom{bottom:40px}.arco-message{position:relative;display:inline-flex;align-items:center;margin-bottom:16px;padding:10px 16px;overflow:hidden;line-height:1;text-align:center;list-style:none;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-small);box-shadow:0 4px 10px #0000001a;transition:all .1s cubic-bezier(0,0,1,1);pointer-events:auto}.arco-message-icon{display:inline-block;margin-right:8px;color:var(--color-text-1);font-size:20px;vertical-align:middle;animation:arco-msg-fade .1s cubic-bezier(0,0,1,1),arco-msg-fade .4s cubic-bezier(.3,1.3,.3,1)}.arco-message-content{font-size:14px;color:var(--color-text-1);vertical-align:middle}.arco-message-info{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-info .arco-message-icon{color:rgb(var(--primary-6))}.arco-message-info .arco-message-content{color:var(--color-text-1)}.arco-message-success{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-success .arco-message-icon{color:rgb(var(--success-6))}.arco-message-success .arco-message-content{color:var(--color-text-1)}.arco-message-warning{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-warning .arco-message-icon{color:rgb(var(--warning-6))}.arco-message-warning .arco-message-content{color:var(--color-text-1)}.arco-message-error{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-error .arco-message-icon{color:rgb(var(--danger-6))}.arco-message-error .arco-message-content{color:var(--color-text-1)}.arco-message-loading{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-loading .arco-message-icon{color:rgb(var(--primary-6))}.arco-message-loading .arco-message-content{color:var(--color-text-1)}.arco-message-close-btn{margin-left:8px;color:var(--color-text-1);font-size:12px}.arco-message .arco-icon-hover.arco-message-icon-hover:before{width:20px;height:20px}.fade-message-enter-from,.fade-message-appear-from{opacity:0}.fade-message-enter-to,.fade-message-appear-to{opacity:1}.fade-message-enter-active,.fade-message-appear-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.fade-message-leave-from{opacity:1}.fade-message-leave-to{opacity:0}.fade-message-leave-active{position:absolute}.flip-list-move{transition:transform .8s ease}@keyframes arco-msg-fade{0%{opacity:0}to{opacity:1}}@keyframes arco-msg-scale{0%{transform:scale(0)}to{transform:scale(1)}}.arco-modal-container{position:fixed;inset:0}.arco-modal-mask{position:absolute;inset:0;background-color:var(--color-mask-bg)}.arco-modal-wrapper{position:absolute;inset:0;overflow:auto;text-align:center}.arco-modal-wrapper.arco-modal-wrapper-align-center{white-space:nowrap}.arco-modal-wrapper.arco-modal-wrapper-align-center:after{display:inline-block;width:0;height:100%;vertical-align:middle;content:""}.arco-modal-wrapper.arco-modal-wrapper-align-center .arco-modal{top:0;vertical-align:middle}.arco-modal-wrapper.arco-modal-wrapper-moved{text-align:left}.arco-modal-wrapper.arco-modal-wrapper-moved .arco-modal{top:0;vertical-align:top}.arco-modal{position:relative;top:100px;display:inline-block;width:520px;margin:0 auto;line-height:1.5715;white-space:initial;text-align:left;background-color:var(--color-bg-3);border-radius:var(--border-radius-medium)}.arco-modal-draggable .arco-modal-header{cursor:move}.arco-modal-header{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;width:100%;height:48px;padding:0 20px;border-bottom:1px solid var(--color-neutral-3)}.arco-modal-header .arco-modal-title{display:flex;flex:1;align-items:center;justify-content:center}.arco-modal-header .arco-modal-title-align-start{justify-content:flex-start}.arco-modal-header .arco-modal-title-align-center{justify-content:center}.arco-modal-body{position:relative;padding:24px 20px;overflow:auto;color:var(--color-text-1);font-size:14px}.arco-modal-footer{flex-shrink:0;box-sizing:border-box;width:100%;padding:16px 20px;text-align:right;border-top:1px solid var(--color-neutral-3)}.arco-modal-footer>.arco-btn:not(:nth-child(1)){margin-left:12px}.arco-modal-close-btn{margin-left:-12px;color:var(--color-text-1);font-size:12px;cursor:pointer}.arco-modal-title{color:var(--color-text-1);font-weight:500;font-size:16px}.arco-modal-title-icon{margin-right:10px;font-size:18px;vertical-align:-.15em}.arco-modal-title-icon .arco-icon-info-circle-fill{color:rgb(var(--primary-6))}.arco-modal-title-icon .arco-icon-check-circle-fill{color:rgb(var(--success-6))}.arco-modal-title-icon .arco-icon-exclamation-circle-fill{color:rgb(var(--warning-6))}.arco-modal-title-icon .arco-icon-close-circle-fill{color:rgb(var(--danger-6))}.arco-modal-simple{width:400px;padding:24px 32px 32px}.arco-modal-simple .arco-modal-header,.arco-modal-simple .arco-modal-footer{height:unset;padding:0;border:none}.arco-modal-simple .arco-modal-header{margin-bottom:24px}.arco-modal-simple .arco-modal-title{justify-content:center}.arco-modal-simple .arco-modal-title-align-start{justify-content:flex-start}.arco-modal-simple .arco-modal-title-align-center{justify-content:center}.arco-modal-simple .arco-modal-footer{margin-top:32px;text-align:center}.arco-modal-simple .arco-modal-body{padding:0}.arco-modal-fullscreen{top:0;display:inline-flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%}.arco-modal-fullscreen .arco-modal-footer{margin-top:auto}.zoom-modal-enter-from,.zoom-modal-appear-from{transform:scale(.5);opacity:0}.zoom-modal-enter-to,.zoom-modal-appear-to{transform:scale(1);opacity:1}.zoom-modal-enter-active,.zoom-modal-appear-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1),transform .4s cubic-bezier(.3,1.3,.3,1)}.zoom-modal-leave-from{transform:scale(1);opacity:1}.zoom-modal-leave-to{transform:scale(.5);opacity:0}.zoom-modal-leave-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1),transform .4s cubic-bezier(.3,1.3,.3,1)}.fade-modal-enter-from,.fade-modal-appear-from{opacity:0}.fade-modal-enter-to,.fade-modal-appear-to{opacity:1}.fade-modal-enter-active,.fade-modal-appear-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1)}.fade-modal-leave-from{opacity:1}.fade-modal-leave-to{opacity:0}.fade-modal-leave-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1)}.arco-notification-list{position:fixed;z-index:1003;margin:0;padding-left:0}.arco-notification-list-top-left{top:20px;left:20px}.arco-notification-list-top-right{top:20px;right:20px}.arco-notification-list-top-right .arco-notification{margin-left:auto}.arco-notification-list-bottom-left{bottom:20px;left:20px}.arco-notification-list-bottom-right{right:20px;bottom:20px}.arco-notification-list-bottom-right .arco-notification{margin-left:auto}.arco-notification{position:relative;display:flex;box-sizing:border-box;width:340px;padding:20px;overflow:hidden;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 12px #00000026;opacity:1;transition:opacity .2s cubic-bezier(0,0,1,1)}.arco-notification:not(:last-child){margin-bottom:20px}.arco-notification-icon{display:flex;align-items:center;font-size:24px}.arco-notification-info{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-notification-info .arco-notification-icon{color:rgb(var(--primary-6))}.arco-notification-success{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-notification-success .arco-notification-icon{color:rgb(var(--success-6))}.arco-notification-warning{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-notification-warning .arco-notification-icon{color:rgb(var(--warning-6))}.arco-notification-error{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-notification-error .arco-notification-icon{color:rgb(var(--danger-6))}.arco-notification-left{padding-right:16px}.arco-notification-right{flex:1;word-break:break-word}.arco-notification-title{color:var(--color-text-1);font-weight:500;font-size:16px}.arco-notification-title+.arco-notification-content{margin-top:4px}.arco-notification-content{color:var(--color-text-1);font-size:14px}.arco-notification-info .arco-notification-title,.arco-notification-info .arco-notification-content,.arco-notification-success .arco-notification-title,.arco-notification-success .arco-notification-content,.arco-notification-warning .arco-notification-title,.arco-notification-warning .arco-notification-content,.arco-notification-error .arco-notification-title,.arco-notification-error .arco-notification-content{color:var(--color-text-1)}.arco-notification-footer{margin-top:16px;text-align:right}.arco-notification-close-btn{position:absolute;top:12px;right:12px;color:var(--color-text-1);font-size:12px;cursor:pointer}.arco-notification-close-btn>svg{position:relative}.arco-notification .arco-icon-hover.arco-notification-icon-hover:before{width:20px;height:20px}.slide-left-notification-enter-from,.slide-left-notification-appear-from{transform:translate(-100%)}.slide-left-notification-enter-to,.slide-left-notification-appear-to{transform:translate(0)}.slide-left-notification-enter-active,.slide-left-notification-appear-active{transition:transform .4s cubic-bezier(.3,1.3,.3,1)}.slide-left-notification-leave-from{opacity:1}.slide-left-notification-leave-to{height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;opacity:0}.slide-left-notification-leave-active{transition:all .3s cubic-bezier(.34,.69,.1,1)}.slide-right-notification-enter-from,.slide-right-notification-appear-from{transform:translate(100%)}.slide-right-notification-enter-to,.slide-right-notification-appear-to{transform:translate(0)}.slide-right-notification-enter-active,.slide-right-notification-appear-active{transition:transform .4s cubic-bezier(.3,1.3,.3,1)}.slide-right-notification-leave-from{opacity:1}.slide-right-notification-leave-to{height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;opacity:0}.slide-right-notification-leave-active{transition:all .3s cubic-bezier(.34,.69,.1,1)}.arco-overflow-list{display:flex;align-items:center;justify-content:flex-start}.arco-overflow-list>*:not(:last-child){flex-shrink:0}.arco-overflow-list-spacer{flex:1;min-width:0;height:1px}.arco-page-header{padding:16px 0}.arco-page-header-breadcrumb+.arco-page-header-header{margin-top:4px}.arco-page-header-wrapper{padding-right:20px;padding-left:24px}.arco-page-header-header{display:flex;align-items:center;justify-content:space-between;line-height:28px}.arco-page-header-header-left{display:flex;align-items:center}.arco-page-header-main{display:flex;align-items:center;min-height:30px}.arco-page-header-main-with-back{margin-left:-8px;padding-left:8px}.arco-page-header-extra{overflow:hidden;white-space:nowrap}.arco-page-header .arco-icon-hover.arco-page-header-icon-hover:before{width:30px;height:30px}.arco-page-header .arco-icon-hover.arco-page-header-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-page-header-back-btn{margin-right:12px;color:var(--color-text-2);font-size:14px}.arco-page-header-back-btn-icon{position:relative}.arco-page-header-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--color-text-1);font-weight:600;font-size:20px}.arco-page-header-divider{width:1px;height:16px;margin-right:12px;margin-left:12px;background-color:var(--color-fill-3)}.arco-page-header-subtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--color-text-3);font-size:14px}.arco-page-header-content{padding:20px 32px;border-top:1px solid var(--color-neutral-3)}.arco-page-header-footer{padding:16px 20px 0 24px}.arco-page-header-with-breadcrumb{padding:12px 0}.arco-page-header-with-breadcrumb .arco-page-header-footer{padding-top:12px}.arco-page-header-with-content .arco-page-header-wrapper{padding-bottom:12px}.arco-page-header-with-footer{padding-bottom:0}.arco-page-header-wrapper .arco-page-header-header{flex-wrap:wrap}.arco-page-header-wrapper .arco-page-header-header .arco-page-header-head-extra{margin-top:4px}.arco-pagination{display:flex;align-items:center;font-size:14px}.arco-pagination-list{display:inline-block;margin:0;padding:0;white-space:nowrap;list-style:none}.arco-pagination-item{display:inline-block;box-sizing:border-box;padding:0 8px;color:var(--color-text-2);text-align:center;vertical-align:middle;list-style:none;background-color:transparent;border:0 solid transparent;border-radius:var(--border-radius-small);outline:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:32px;height:32px;font-size:14px;line-height:32px}.arco-pagination-item-previous,.arco-pagination-item-next{font-size:12px}.arco-pagination-item:hover{color:var(--color-text-2);background-color:var(--color-fill-1);border-color:transparent}.arco-pagination-item-active,.arco-pagination-item-active:hover{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1);border-color:transparent;transition:color .2s cubic-bezier(0,0,1,1),background-color .2s cubic-bezier(0,0,1,1)}.arco-pagination-item-disabled,.arco-pagination-item-disabled:hover{color:var(--color-text-4);background-color:transparent;border-color:transparent;cursor:not-allowed}.arco-pagination-item:not(:last-child){margin-right:8px}.arco-pagination-item-previous,.arco-pagination-item-next{color:var(--color-text-2);font-size:12px;background-color:transparent}.arco-pagination-item-previous:not(.arco-pagination-item-disabled):hover,.arco-pagination-item-next:not(.arco-pagination-item-disabled):hover{color:rgb(var(--primary-6));background-color:var(--color-fill-1)}.arco-pagination-item-previous:after,.arco-pagination-item-next:after{display:inline-block;font-size:0;vertical-align:middle;content:"."}.arco-pagination .arco-pagination-item-previous.arco-pagination-item-disabled,.arco-pagination .arco-pagination-item-next.arco-pagination-item-disabled{color:var(--color-text-4);background-color:transparent}.arco-pagination-item-jumper{font-size:16px}.arco-pagination-jumper{display:flex;align-items:center;margin-left:8px}.arco-pagination-jumper>span{font-size:14px}.arco-pagination-jumper-text-goto,.arco-pagination-jumper-prepend,.arco-pagination-jumper-append{color:var(--color-text-3);white-space:nowrap}.arco-pagination-jumper-prepend{margin-right:8px}.arco-pagination-jumper-append{margin-left:8px}.arco-pagination-jumper .arco-pagination-jumper-input{width:40px;padding-right:2px;padding-left:2px}.arco-pagination-jumper .arco-pagination-jumper-input input{text-align:center}.arco-pagination-options{position:relative;display:inline-block;flex:0 0 auto;min-width:0;margin-left:8px;text-align:center;vertical-align:middle}.arco-pagination-options .arco-select{width:auto}.arco-pagination-options .arco-select-view-value{padding-right:6px;overflow:inherit}.arco-pagination-total{display:inline-block;height:100%;margin-right:8px;color:var(--color-text-1);font-size:14px;line-height:32px;white-space:nowrap}.arco-pagination-jumper{flex:0 0 auto}.arco-pagination-jumper-separator{padding:0 12px}.arco-pagination-jumper-total-page{margin-right:8px}.arco-pagination-simple{display:flex;align-items:center}.arco-pagination-simple .arco-pagination-item{margin-right:0}.arco-pagination-simple .arco-pagination-jumper{margin:0 4px;color:var(--color-text-1)}.arco-pagination-simple .arco-pagination-jumper .arco-pagination-jumper-input{width:40px;margin-left:0}.arco-pagination-simple .arco-pagination-item-previous,.arco-pagination-simple .arco-pagination-item-next{color:var(--color-text-2);background-color:transparent}.arco-pagination-simple .arco-pagination-item-previous:not(.arco-pagination-item-disabled):hover,.arco-pagination-simple .arco-pagination-item-next:not(.arco-pagination-item-disabled):hover{color:rgb(var(--primary-6));background-color:var(--color-fill-1)}.arco-pagination-simple .arco-pagination-item-previous.arco-pagination-item-disabled,.arco-pagination-simple .arco-pagination-item-next.arco-pagination-item-disabled{color:var(--color-text-4);background-color:transparent}.arco-pagination-disabled{cursor:not-allowed}.arco-pagination-disabled .arco-pagination-item,.arco-pagination-disabled .arco-pagination-item:not(.arco-pagination-item-disabled):not(.arco-pagination-item-active):hover{color:var(--color-text-4);background-color:transparent;border-color:transparent;cursor:not-allowed}.arco-pagination.arco-pagination-disabled .arco-pagination-item-active{color:var(--color-primary-light-3);background-color:var(--color-fill-1);border-color:transparent}.arco-pagination-size-mini .arco-pagination-item{min-width:24px;height:24px;font-size:12px;line-height:24px}.arco-pagination-size-mini .arco-pagination-item-previous,.arco-pagination-size-mini .arco-pagination-item-next{font-size:12px}.arco-pagination-size-mini .arco-pagination-total{font-size:12px;line-height:24px}.arco-pagination-size-mini .arco-pagination-option{height:24px;font-size:12px;line-height:0}.arco-pagination-size-mini .arco-pagination-jumper>span{font-size:12px}.arco-pagination-size-small .arco-pagination-item{min-width:28px;height:28px;font-size:14px;line-height:28px}.arco-pagination-size-small .arco-pagination-item-previous,.arco-pagination-size-small .arco-pagination-item-next{font-size:12px}.arco-pagination-size-small .arco-pagination-total{font-size:14px;line-height:28px}.arco-pagination-size-small .arco-pagination-option{height:28px;font-size:14px;line-height:0}.arco-pagination-size-small .arco-pagination-jumper>span{font-size:14px}.arco-pagination-size-large .arco-pagination-item{min-width:36px;height:36px;font-size:14px;line-height:36px}.arco-pagination-size-large .arco-pagination-item-previous,.arco-pagination-size-large .arco-pagination-item-next{font-size:14px}.arco-pagination-size-large .arco-pagination-total{font-size:14px;line-height:36px}.arco-pagination-size-large .arco-pagination-option{height:36px;font-size:14px;line-height:0}.arco-pagination-size-large .arco-pagination-jumper>span{font-size:14px}.arco-popconfirm-popup-content{box-sizing:border-box;padding:16px;color:var(--color-text-2);font-size:14px;line-height:1.5715;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-popconfirm-popup-content .arco-popconfirm-body{position:relative;display:flex;align-items:flex-start;margin-bottom:16px;color:var(--color-text-1);font-size:14px}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon{display:inline-flex;align-items:center;height:22.001px;margin-right:8px;font-size:18px}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon .arco-icon-exclamation-circle-fill{color:rgb(var(--warning-6))}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon .arco-icon-check-circle-fill{color:rgb(var(--success-6))}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon .arco-icon-info-circle-fill{color:rgb(var(--primary-6))}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon .arco-icon-close-circle-fill{color:rgb(var(--danger-6))}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-content{text-align:left;word-wrap:break-word}.arco-popconfirm-popup-content .arco-popconfirm-footer{text-align:right}.arco-popconfirm-popup-content .arco-popconfirm-footer>button{margin-left:8px}.arco-popconfirm-popup-arrow{z-index:1;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3)}.arco-popover-popup-content{box-sizing:border-box;padding:12px 16px;color:var(--color-text-2);font-size:14px;line-height:1.5715;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-popover-title{color:var(--color-text-1);font-weight:500;font-size:16px}.arco-popover-content{margin-top:4px;text-align:left;word-wrap:break-word}.arco-popover-popup-arrow{z-index:1;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3)}.arco-progress{position:relative;line-height:1;font-size:12px}.arco-progress-type-line,.arco-progress-type-steps{display:inline-block;max-width:100%;width:100%}.arco-progress-type-line.arco-progress-size-mini{width:auto}.arco-progress-line-wrapper,.arco-progress-steps-wrapper{display:flex;align-items:center;width:100%;max-width:100%;height:100%}.arco-progress-line-text,.arco-progress-steps-text{font-size:12px;margin-left:16px;color:var(--color-text-2);white-space:nowrap;text-align:right;flex-grow:1;flex-shrink:0;min-width:32px}.arco-progress-line-text .arco-icon,.arco-progress-steps-text .arco-icon{font-size:12px;margin-left:4px}.arco-progress-line{background-color:var(--color-fill-3);border-radius:100px;width:100%;position:relative;display:inline-block;overflow:hidden}.arco-progress-line-bar{height:100%;border-radius:100px;background-color:rgb(var(--primary-6));position:relative;transition:width .6s cubic-bezier(.34,.69,.1,1),background .3s cubic-bezier(.34,.69,.1,1);max-width:100%}.arco-progress-line-bar-buffer{position:absolute;background-color:var(--color-primary-light-3);height:100%;top:0;left:0;border-radius:0 100px 100px 0;max-width:100%;transition:all .6s cubic-bezier(.34,.69,.1,1)}.arco-progress-line-bar-animate:after{content:"";display:block;position:absolute;top:0;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,transparent 25%,rgba(255,255,255,.5) 50%,transparent 75%);background-size:400% 100%;animation:arco-progress-loading 1.5s cubic-bezier(.34,.69,.1,1) infinite}.arco-progress-line-text .arco-icon{color:var(--color-text-2)}.arco-progress-type-steps.arco-progress-size-small{width:auto}.arco-progress-type-steps.arco-progress-size-small .arco-progress-steps-item{width:2px;flex:unset;border-radius:2px}.arco-progress-type-steps.arco-progress-size-small .arco-progress-steps-item:not(:last-of-type){margin-right:3px}.arco-progress-steps{display:flex;width:100%}.arco-progress-steps-text{margin-left:8px;min-width:unset}.arco-progress-steps-text .arco-icon{color:var(--color-text-2)}.arco-progress-steps-item{height:100%;flex:1;background-color:var(--color-fill-3);position:relative;display:inline-block}.arco-progress-steps-item:not(:last-of-type){margin-right:3px}.arco-progress-steps-item:last-of-type{border-top-right-radius:100px;border-bottom-right-radius:100px}.arco-progress-steps-item:first-of-type{border-top-left-radius:100px;border-bottom-left-radius:100px}.arco-progress-steps-item-active{background-color:rgb(var(--primary-6))}.arco-progress-status-warning .arco-progress-line-bar,.arco-progress-status-warning .arco-progress-steps-item-active{background-color:rgb(var(--warning-6))}.arco-progress-status-warning .arco-progress-line-text .arco-icon,.arco-progress-status-warning .arco-progress-steps-text .arco-icon{color:rgb(var(--warning-6))}.arco-progress-status-success .arco-progress-line-bar,.arco-progress-status-success .arco-progress-steps-item-active{background-color:rgb(var(--success-6))}.arco-progress-status-success .arco-progress-line-text .arco-icon,.arco-progress-status-success .arco-progress-steps-text .arco-icon{color:rgb(var(--success-6))}.arco-progress-status-danger .arco-progress-line-bar,.arco-progress-status-danger .arco-progress-steps-item-active{background-color:rgb(var(--danger-6))}.arco-progress-status-danger .arco-progress-line-text .arco-icon,.arco-progress-status-danger .arco-progress-steps-text .arco-icon{color:rgb(var(--danger-6))}.arco-progress-size-small .arco-progress-line-text{font-size:12px;margin-left:16px}.arco-progress-size-small .arco-progress-line-text .arco-icon{font-size:12px}.arco-progress-size-large .arco-progress-line-text{font-size:16px;margin-left:16px}.arco-progress-size-large .arco-progress-line-text .arco-icon{font-size:14px}.arco-progress-type-circle{display:inline-block}.arco-progress-circle-wrapper{position:relative;text-align:center;line-height:1;display:inline-block;vertical-align:text-bottom}.arco-progress-circle-svg{transform:rotate(-90deg)}.arco-progress-circle-text{position:absolute;top:50%;left:50%;color:var(--color-text-3);transform:translate(-50%,-50%);font-size:14px}.arco-progress-circle-text .arco-icon{font-size:16px;color:var(--color-text-2)}.arco-progress-circle-bg{stroke:var(--color-fill-3)}.arco-progress-circle-bar{stroke:rgb(var(--primary-6));transition:stroke-dashoffset .6s cubic-bezier(0,0,1,1) 0s,stroke .6s cubic-bezier(0,0,1,1)}.arco-progress-size-mini .arco-progress-circle-bg{stroke:var(--color-primary-light-3)}.arco-progress-size-mini .arco-progress-circle-bar{stroke:rgb(var(--primary-6))}.arco-progress-size-mini.arco-progress-status-warning .arco-progress-circle-bg{stroke:var(--color-warning-light-3)}.arco-progress-size-mini.arco-progress-status-danger .arco-progress-circle-bg{stroke:var(--color-danger-light-3)}.arco-progress-size-mini.arco-progress-status-success .arco-progress-circle-bg{stroke:var(--color-success-light-3)}.arco-progress-size-mini .arco-progress-circle-wrapper .arco-icon-check{position:absolute;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.arco-progress-size-mini .arco-progress-circle-text{position:static;top:unset;left:unset;transform:unset}.arco-progress-size-small .arco-progress-circle-text{font-size:13px}.arco-progress-size-small .arco-progress-circle-text .arco-icon{font-size:14px}.arco-progress-size-large .arco-progress-circle-text,.arco-progress-size-large .arco-progress-circle-text .arco-icon{font-size:16px}.arco-progress-status-warning .arco-progress-circle-bar{stroke:rgb(var(--warning-6))}.arco-progress-status-warning .arco-icon{color:rgb(var(--warning-6))}.arco-progress-status-success .arco-progress-circle-bar{stroke:rgb(var(--success-6))}.arco-progress-status-success .arco-icon{color:rgb(var(--success-6))}.arco-progress-status-danger .arco-progress-circle-bar{stroke:rgb(var(--danger-6))}.arco-progress-status-danger .arco-icon{color:rgb(var(--danger-6))}@keyframes arco-progress-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.arco-radio>input[type=radio],.arco-radio-button>input[type=radio]{position:absolute;top:0;left:0;width:0;height:0;opacity:0}.arco-radio>input[type=radio]:focus+.arco-radio-icon-hover:before,.arco-radio-button>input[type=radio]:focus+.arco-radio-icon-hover:before{background-color:var(--color-fill-2)}.arco-icon-hover.arco-radio-icon-hover:before{width:24px;height:24px}.arco-radio{position:relative;display:inline-flex;align-items:center;padding-left:5px;font-size:14px;line-height:unset;cursor:pointer}.arco-radio-label{margin-left:8px;color:var(--color-text-1)}.arco-radio-icon{position:relative;display:block;box-sizing:border-box;width:14px;height:14px;line-height:14px;border:2px solid var(--color-neutral-3);border-radius:var(--border-radius-circle)}.arco-radio-icon:after{position:absolute;top:0;left:0;display:inline-block;box-sizing:border-box;width:10px;height:10px;background-color:var(--color-bg-2);border-radius:var(--border-radius-circle);transform:scale(1);transition:transform .3s cubic-bezier(.3,1.3,.3,1);content:""}.arco-radio:hover .arco-radio-icon{border-color:var(--color-neutral-3)}.arco-radio-checked .arco-radio-icon{background-color:rgb(var(--primary-6));border-color:rgb(var(--primary-6))}.arco-radio-checked .arco-radio-icon:after{background-color:var(--color-white);transform:scale(.4)}.arco-radio-checked:hover .arco-radio-icon{border-color:rgb(var(--primary-6))}.arco-radio-disabled,.arco-radio-disabled .arco-radio-icon-hover{cursor:not-allowed}.arco-radio-disabled .arco-radio-label{color:var(--color-text-4)}.arco-radio-disabled .arco-radio-icon{border-color:var(--color-neutral-3)}.arco-radio-disabled .arco-radio-icon:after{background-color:var(--color-fill-2)}.arco-radio-disabled:hover .arco-radio-icon{border-color:var(--color-neutral-3)}.arco-radio-checked.arco-radio-disabled .arco-radio-icon,.arco-radio-checked.arco-radio-disabled:hover .arco-radio-icon{background-color:var(--color-primary-light-3);border-color:transparent}.arco-radio-checked.arco-radio-disabled .arco-radio-icon:after{background-color:var(--color-fill-2)}.arco-radio-checked.arco-radio-disabled .arco-radio-label{color:var(--color-text-4)}.arco-radio:hover .arco-radio-icon-hover:before{background-color:var(--color-fill-2)}.arco-radio-group{display:inline-block;box-sizing:border-box}.arco-radio-group .arco-radio{margin-right:20px}.arco-radio-group-button{display:inline-flex;padding:1.5px;line-height:26px;background-color:var(--color-fill-2);border-radius:var(--border-radius-small)}.arco-radio-button{position:relative;display:inline-block;margin:1.5px;color:var(--color-text-2);font-size:14px;line-height:26px;background-color:transparent;border-radius:var(--border-radius-small);cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-radio-button-content{position:relative;display:block;padding:0 12px}.arco-radio-button:not(:first-of-type):before{position:absolute;top:50%;left:-2px;display:block;width:1px;height:14px;background-color:var(--color-neutral-3);transform:translateY(-50%);transition:all .1s cubic-bezier(0,0,1,1);content:""}.arco-radio-button:hover:before,.arco-radio-button:hover+.arco-radio-button:before,.arco-radio-button.arco-radio-checked:before,.arco-radio-button.arco-radio-checked+.arco-radio-button:before{opacity:0}.arco-radio-button:hover{color:var(--color-text-1);background-color:var(--color-bg-5)}.arco-radio-button.arco-radio-checked{color:rgb(var(--primary-6));background-color:var(--color-bg-5)}.arco-radio-button.arco-radio-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-radio-button.arco-radio-disabled.arco-radio-checked{color:var(--color-primary-light-3);background-color:var(--color-bg-5)}.arco-radio-group-size-small{line-height:28px}.arco-radio-group-size-small.arco-radio-group-button,.arco-radio-group-size-small .arco-radio-button{font-size:14px;line-height:22px}.arco-radio-group-size-large{line-height:36px}.arco-radio-group-size-large.arco-radio-group-button,.arco-radio-group-size-large .arco-radio-button{font-size:14px;line-height:30px}.arco-radio-group-size-mini{line-height:24px}.arco-radio-group-size-mini.arco-radio-group-button,.arco-radio-group-size-mini .arco-radio-button{font-size:12px;line-height:18px}.arco-radio-group-direction-vertical .arco-radio{display:flex;margin-right:0;line-height:32px}body[arco-theme=dark] .arco-radio-button.arco-radio-checked,body[arco-theme=dark] .arco-radio-button:not(.arco-radio-disabled):hover{background-color:var(--color-fill-3)}body[arco-theme=dark] .arco-radio-button:after{background-color:var(--color-bg-3)}.arco-rate{display:inline-flex;align-items:center;min-height:32px;font-size:24px;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-rate-disabled{cursor:not-allowed}.arco-rate-character{position:relative;color:var(--color-fill-3);transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-rate-character:not(:last-child){margin-right:8px}.arco-rate-character-left,.arco-rate-character-right{transition:inherit}.arco-rate-character-left>*,.arco-rate-character-right>*{float:left}.arco-rate-character-left{position:absolute;top:0;left:0;width:50%;overflow:hidden;white-space:nowrap;opacity:0}.arco-rate-character-scale{animation:arco-rate-scale .4s cubic-bezier(.34,.69,.1,1)}.arco-rate-character-full .arco-rate-character-right{color:rgb(var(--gold-6))}.arco-rate-character-half .arco-rate-character-left{color:rgb(var(--gold-6));opacity:1}.arco-rate-character-disabled{cursor:not-allowed}.arco-rate:not(.arco-rate-readonly):not(.arco-rate-disabled) .arco-rate-character{cursor:pointer}.arco-rate:not(.arco-rate-readonly):not(.arco-rate-disabled) .arco-rate-character:hover,.arco-rate:not(.arco-rate-readonly):not(.arco-rate-disabled) .arco-rate-character:focus{transform:scale(1.2)}@keyframes arco-rate-scale{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}.arco-resizebox{position:relative;width:100%;overflow:hidden}.arco-resizebox-direction-left,.arco-resizebox-direction-right,.arco-resizebox-direction-top,.arco-resizebox-direction-bottom{position:absolute;top:0;left:0;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-resizebox-direction-right{right:0;left:unset}.arco-resizebox-direction-bottom{top:unset;bottom:0}.arco-resizebox-trigger-icon-wrapper{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-text-1);font-size:12px;line-height:1;background-color:var(--color-neutral-3)}.arco-resizebox-trigger-icon{display:inline-block;margin:-3px}.arco-resizebox-trigger-vertical{height:100%;cursor:col-resize}.arco-resizebox-trigger-horizontal{width:100%;cursor:row-resize}.arco-result{box-sizing:border-box;width:100%;padding:32px 32px 24px}.arco-result-icon{margin-bottom:16px;font-size:20px;text-align:center}.arco-result-icon-tip{display:flex;width:45px;height:45px;align-items:center;justify-content:center;border-radius:50%;margin:0 auto}.arco-result-icon-custom .arco-result-icon-tip{font-size:45px;color:inherit;width:unset;height:unset}.arco-result-icon-success .arco-result-icon-tip{color:rgb(var(--success-6));background-color:var(--color-success-light-1)}.arco-result-icon-error .arco-result-icon-tip{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1)}.arco-result-icon-info .arco-result-icon-tip{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1)}.arco-result-icon-warning .arco-result-icon-tip{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1)}.arco-result-icon-404,.arco-result-icon-403,.arco-result-icon-500{padding-top:24px}.arco-result-icon-404 .arco-result-icon-tip,.arco-result-icon-403 .arco-result-icon-tip,.arco-result-icon-500 .arco-result-icon-tip{width:92px;height:92px;line-height:92px}.arco-result-title{color:var(--color-text-1);font-weight:500;font-size:14px;line-height:1.5715;text-align:center}.arco-result-subtitle{color:var(--color-text-2);font-size:14px;line-height:1.5715;text-align:center}.arco-result-extra{margin-top:20px;text-align:center}.arco-result-content{margin-top:20px}.arco-scrollbar{position:relative}.arco-scrollbar-container{position:relative;scrollbar-width:none}.arco-scrollbar-container::-webkit-scrollbar{display:none}.arco-scrollbar-track{position:absolute;z-index:100}.arco-scrollbar-track-direction-horizontal{bottom:0;left:0;box-sizing:border-box;width:100%;height:15px}.arco-scrollbar-track-direction-vertical{top:0;right:0;box-sizing:border-box;width:15px;height:100%}.arco-scrollbar-thumb{position:absolute;display:block;box-sizing:border-box}.arco-scrollbar-thumb-bar{width:100%;height:100%;background-color:var(--color-neutral-4);border-radius:6px}.arco-scrollbar-thumb:hover .arco-scrollbar-thumb-bar,.arco-scrollbar-thumb-dragging .arco-scrollbar-thumb-bar{background-color:var(--color-neutral-6)}.arco-scrollbar-thumb-direction-horizontal .arco-scrollbar-thumb-bar{height:9px;margin:3px 0}.arco-scrollbar-thumb-direction-vertical .arco-scrollbar-thumb-bar{width:9px;margin:0 3px}.arco-scrollbar.arco-scrollbar-type-embed .arco-scrollbar-thumb{opacity:0;transition:opacity ease .2s}.arco-scrollbar.arco-scrollbar-type-embed .arco-scrollbar-thumb-dragging,.arco-scrollbar.arco-scrollbar-type-embed:hover .arco-scrollbar-thumb{opacity:.8}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track{background-color:var(--color-neutral-1)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track-direction-horizontal{border-top:1px solid var(--color-neutral-3);border-bottom:1px solid var(--color-neutral-3)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track-direction-vertical{border-right:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-thumb-direction-horizontal{margin:-1px 0}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-thumb-direction-vertical{margin:0 -1px}.arco-scrollbar.arco-scrollbar-type-track.arco-scrollbar-both .arco-scrollbar-track-direction-vertical:after{position:absolute;right:-1px;bottom:0;display:block;box-sizing:border-box;width:15px;height:15px;background-color:var(--color-neutral-1);border-right:1px solid var(--color-neutral-3);border-bottom:1px solid var(--color-neutral-3);content:""}.arco-select-dropdown{box-sizing:border-box;padding:4px 0;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-select-dropdown .arco-select-dropdown-loading{display:flex;align-items:center;justify-content:center;min-height:50px}.arco-select-dropdown-list{margin-top:0;margin-bottom:0;padding-left:0;list-style:none}.arco-select-dropdown-list-wrapper{max-height:200px;overflow-y:auto}.arco-select-dropdown .arco-select-option{position:relative;z-index:1;display:flex;align-items:center;box-sizing:border-box;width:100%;padding:0 12px;color:var(--color-text-1);font-size:14px;line-height:36px;text-align:left;background-color:var(--color-bg-popup);cursor:pointer}.arco-select-dropdown .arco-select-option-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-select-dropdown .arco-select-option-checkbox{overflow:hidden}.arco-select-dropdown .arco-select-option-checkbox .arco-checkbox-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-select-dropdown .arco-select-option-has-suffix{justify-content:space-between}.arco-select-dropdown .arco-select-option-selected{color:var(--color-text-1);font-weight:500;background-color:var(--color-bg-popup)}.arco-select-dropdown .arco-select-option-active,.arco-select-dropdown .arco-select-option:not(.arco-select-dropdown .arco-select-option-disabled):hover{color:var(--color-text-1);background-color:var(--color-fill-2);transition:all .1s cubic-bezier(0,0,1,1)}.arco-select-dropdown .arco-select-option-disabled{color:var(--color-text-4);background-color:var(--color-bg-popup);cursor:not-allowed}.arco-select-dropdown .arco-select-option-icon{display:inline-flex;margin-right:8px}.arco-select-dropdown .arco-select-option-suffix{margin-left:12px}.arco-select-dropdown .arco-select-group:first-child .arco-select-dropdown .arco-select-group-title{margin-top:8px}.arco-select-dropdown .arco-select-group-title{box-sizing:border-box;width:100%;margin-top:8px;padding:0 12px;color:var(--color-text-3);font-size:12px;line-height:20px;cursor:default;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-select-dropdown.arco-select-dropdown-has-header{padding-top:0}.arco-select-dropdown-header{border-bottom:1px solid var(--color-fill-3)}.arco-select-dropdown.arco-select-dropdown-has-footer{padding-bottom:0}.arco-select-dropdown-footer{border-top:1px solid var(--color-fill-3)}.arco-skeleton-shape{width:48px;height:48px;background-color:var(--color-fill-2);border-radius:var(--border-radius-small)}.arco-skeleton-shape-circle{border-radius:50%}.arco-skeleton-shape-small{width:36px;height:36px}.arco-skeleton-shape-large{width:60px;height:60px}.arco-skeleton-line{margin:0;padding:0;list-style:none}.arco-skeleton-line-row{height:16px;background-color:var(--color-fill-2)}.arco-skeleton-line-row:not(:last-child){margin-bottom:16px}.arco-skeleton-animation .arco-skeleton-shape,.arco-skeleton-animation .arco-skeleton-line-row{background:linear-gradient(90deg,var(--color-fill-2) 25%,var(--color-fill-3) 37%,var(--color-fill-2) 63%);background-size:400% 100%;animation:arco-skeleton-circle 1.5s cubic-bezier(0,0,1,1) infinite}@keyframes arco-skeleton-circle{0%{background-position:100% 50%}to{background-position:0 50%}}.arco-slider{display:inline-flex;align-items:center;width:100%}.arco-slider-vertical{display:inline-block;width:auto;min-width:22px;height:auto}.arco-slider-vertical .arco-slider-wrapper{flex-direction:column}.arco-slider-with-marks{margin-bottom:24px;padding:20px}.arco-slider-vertical.arco-slider-with-marks{margin-bottom:0;padding:0}.arco-slider-track{position:relative;flex:1;width:100%;height:12px;cursor:pointer}.arco-slider-track:before{position:absolute;top:50%;display:block;width:100%;height:2px;background-color:var(--color-fill-3);border-radius:2px;transform:translateY(-50%);content:""}.arco-slider-track.arco-slider-track-vertical{width:12px;max-width:12px;height:100%;min-height:200px;margin-right:0;margin-bottom:6px;margin-top:6px;transform:translateY(0)}.arco-slider-track.arco-slider-track-vertical:before{top:unset;left:50%;width:2px;height:100%;transform:translate(-50%)}.arco-slider-track.arco-slider-track-disabled:before{background-color:var(--color-fill-2)}.arco-slider-track.arco-slider-track-disabled .arco-slider-bar{background-color:var(--color-fill-3)}.arco-slider-track.arco-slider-track-disabled .arco-slider-btn{cursor:not-allowed}.arco-slider-track.arco-slider-track-disabled .arco-slider-btn:after{border-color:var(--color-fill-3)}.arco-slider-track.arco-slider-track-disabled .arco-slider-dots .arco-slider-dot{border-color:var(--color-fill-2)}.arco-slider-track.arco-slider-track-disabled .arco-slider-dots .arco-slider-dot-active{border-color:var(--color-fill-3)}.arco-slider-track.arco-slider-track-disabled .arco-slider-ticks .arco-slider-tick{background:var(--color-fill-2)}.arco-slider-track.arco-slider-track-disabled .arco-slider-ticks .arco-slider-tick-active{background:var(--color-fill-3)}.arco-slider-bar{position:absolute;top:50%;height:2px;background-color:rgb(var(--primary-6));border-radius:2px;transform:translateY(-50%)}.arco-slider-track-vertical .arco-slider-bar{top:unset;left:50%;width:2px;height:unset;transform:translate(-50%)}.arco-slider-btn{position:absolute;top:0;left:0;width:12px;height:12px;transform:translate(-50%)}.arco-slider-btn:after{position:absolute;top:0;left:0;display:inline-block;box-sizing:border-box;width:12px;height:12px;background:var(--color-bg-2);border:2px solid rgb(var(--primary-6));border-radius:50%;transition:all .3s cubic-bezier(.3,1.3,.3,1);content:""}.arco-slider-btn.arco-slider-btn-active:after,.arco-slider-btn:hover:after{box-shadow:0 2px 5px #0000001a;transform:scale(1.16666667)}.arco-slider-track-vertical .arco-slider-btn{top:unset;bottom:0;left:0;transform:translateY(50%)}.arco-slider-marks{position:absolute;top:12px;width:100%}.arco-slider-marks .arco-slider-mark{position:absolute;color:var(--color-text-3);font-size:14px;line-height:1;transform:translate(-50%);cursor:pointer}.arco-slider-track-vertical .arco-slider-marks{top:0;left:15px;height:100%}.arco-slider-track-vertical .arco-slider-marks .arco-slider-mark{transform:translateY(50%)}.arco-slider-dots{height:100%}.arco-slider-dots .arco-slider-dot-wrapper{position:absolute;top:50%;font-size:12px;transform:translate(-50%,-50%)}.arco-slider-track-vertical .arco-slider-dots .arco-slider-dot-wrapper{top:unset;left:50%;transform:translate(-50%,50%)}.arco-slider-dots .arco-slider-dot-wrapper .arco-slider-dot{box-sizing:border-box;width:8px;height:8px;background-color:var(--color-bg-2);border:2px solid var(--color-fill-3);border-radius:50%}.arco-slider-dots .arco-slider-dot-wrapper .arco-slider-dot-active{border-color:rgb(var(--primary-6))}.arco-slider-ticks .arco-slider-tick{position:absolute;top:50%;width:1px;height:3px;margin-top:-1px;background:var(--color-fill-3);transform:translate(-50%,-100%)}.arco-slider-ticks .arco-slider-tick-active{background:rgb(var(--primary-6))}.arco-slider-vertical .arco-slider-ticks .arco-slider-tick{top:unset;left:50%;width:3px;height:1px;margin-top:unset;transform:translate(1px,50%)}.arco-slider-input{display:flex;align-items:center;margin-left:20px}.arco-slider-vertical .arco-slider-input{margin-left:0}.arco-slider-input>.arco-input-number{width:60px;height:32px;overflow:visible;line-height:normal}.arco-slider-input>.arco-input-number input{text-align:center}.arco-slider-input-hyphens{margin:0 6px;width:8px;height:2px;background:rgb(var(--gray-6))}.arco-space{display:inline-flex}.arco-space-horizontal .arco-space-item{display:flex;align-items:center}.arco-space-vertical{flex-direction:column}.arco-space-align-baseline{align-items:baseline}.arco-space-align-start{align-items:flex-start}.arco-space-align-end{align-items:flex-end}.arco-space-align-center{align-items:center}.arco-space-wrap{flex-wrap:wrap}.arco-space-fill{display:flex}.arco-dot-loading{position:relative;display:inline-block;width:56px;height:8px;transform-style:preserve-3d;perspective:200px}.arco-dot-loading-item{position:absolute;top:0;left:50%;width:8px;height:8px;background-color:rgb(var(--primary-6));border-radius:var(--border-radius-circle);transform:translate(-50%) scale(0);animation:arco-dot-loading 2s cubic-bezier(0,0,1,1) infinite forwards}.arco-dot-loading-item:nth-child(2){background-color:rgb(var(--primary-5));animation-delay:.4s}.arco-dot-loading-item:nth-child(3){background-color:rgb(var(--primary-4));animation-delay:.8s}.arco-dot-loading-item:nth-child(4){background-color:rgb(var(--primary-4));animation-delay:1.2s}.arco-dot-loading-item:nth-child(5){background-color:rgb(var(--primary-2));animation-delay:1.6s}@keyframes arco-dot-loading{0%{transform:translate3D(-48.621%,0,-.985px) scale(.511)}2.778%{transform:translate3D(-95.766%,0,-.94px) scale(.545)}5.556%{transform:translate3D(-140%,0,-.866px) scale(.6)}8.333%{transform:translate3D(-179.981%,0,-.766px) scale(.675)}11.111%{transform:translate3D(-214.492%,0,-.643px) scale(.768)}13.889%{transform:translate3D(-242.487%,0,-.5px) scale(.875)}16.667%{transform:translate3D(-263.114%,0,-.342px) scale(.993)}19.444%{transform:translate3D(-275.746%,0,-.174px) scale(1.12)}22.222%{transform:translate3D(-280%,0,0) scale(1.25)}25%{transform:translate3D(-275.746%,0,.174px) scale(1.38)}27.778%{transform:translate3D(-263.114%,0,.342px) scale(1.507)}30.556%{transform:translate3D(-242.487%,0,.5px) scale(1.625)}33.333%{transform:translate3D(-214.492%,0,.643px) scale(1.732)}36.111%{transform:translate3D(-179.981%,0,.766px) scale(1.825)}38.889%{transform:translate3D(-140%,0,.866px) scale(1.9)}41.667%{transform:translate3D(-95.766%,0,.94px) scale(1.955)}44.444%{transform:translate3D(-48.621%,0,.985px) scale(1.989)}47.222%{transform:translateZ(1px) scale(2)}50%{transform:translate3D(48.621%,0,.985px) scale(1.989)}52.778%{transform:translate3D(95.766%,0,.94px) scale(1.955)}55.556%{transform:translate3D(140%,0,.866px) scale(1.9)}58.333%{transform:translate3D(179.981%,0,.766px) scale(1.825)}61.111%{transform:translate3D(214.492%,0,.643px) scale(1.732)}63.889%{transform:translate3D(242.487%,0,.5px) scale(1.625)}66.667%{transform:translate3D(263.114%,0,.342px) scale(1.507)}69.444%{transform:translate3D(275.746%,0,.174px) scale(1.38)}72.222%{transform:translate3D(280%,0,0) scale(1.25)}75%{transform:translate3D(275.746%,0,-.174px) scale(1.12)}77.778%{transform:translate3D(263.114%,0,-.342px) scale(.993)}80.556%{transform:translate3D(242.487%,0,-.5px) scale(.875)}83.333%{transform:translate3D(214.492%,0,-.643px) scale(.768)}86.111%{transform:translate3D(179.981%,0,-.766px) scale(.675)}88.889%{transform:translate3D(140%,0,-.866px) scale(.6)}91.667%{transform:translate3D(95.766%,0,-.94px) scale(.545)}94.444%{transform:translate3D(48.621%,0,-.985px) scale(.511)}97.222%{transform:translateZ(-1px) scale(.5)}}.arco-spin{display:inline-block}.arco-spin-with-tip{text-align:center}.arco-spin-icon{color:rgb(var(--primary-6));font-size:20px}.arco-spin-tip{margin-top:6px;color:rgb(var(--primary-6));font-weight:500;font-size:14px}.arco-spin-mask{position:absolute;inset:0;z-index:11;text-align:center;background-color:var(--color-spin-layer-bg);transition:opacity .1s cubic-bezier(0,0,1,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-spin-loading{position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-spin-loading .arco-spin-mask-icon{position:absolute;top:50%;left:50%;z-index:12;transform:translate(-50%,-50%)}.arco-spin-loading .arco-spin-children:after{opacity:1;pointer-events:auto}.arco-split{display:flex}.arco-split-pane{overflow:auto}.arco-split-pane-second{flex:1}.arco-split-horizontal{flex-direction:row}.arco-split-vertical{flex-direction:column}.arco-split-trigger-icon-wrapper{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-text-1);font-size:12px;line-height:1;background-color:var(--color-neutral-3)}.arco-split-trigger-icon{display:inline-block;margin:-3px}.arco-split-trigger-vertical{height:100%;cursor:col-resize}.arco-split-trigger-horizontal{width:100%;cursor:row-resize}.arco-statistic{display:inline-block;color:var(--color-text-2);line-height:1.5715}.arco-statistic-title{margin-bottom:8px;color:var(--color-text-2);font-size:14px}.arco-statistic-content .arco-statistic-value{color:var(--color-text-1);font-weight:500;font-size:26px;white-space:nowrap}.arco-statistic-content .arco-statistic-value-integer{font-size:inherit;white-space:nowrap}.arco-statistic-content .arco-statistic-value-decimal{display:inline-block;font-size:inherit}.arco-statistic-prefix,.arco-statistic-suffix{font-size:14px}.arco-statistic-extra{margin-top:8px;color:var(--color-text-2)}.arco-steps-item{position:relative;flex:1;margin-right:12px;overflow:hidden;white-space:nowrap;text-align:left}.arco-steps-item:last-child{flex:none;margin-right:0}.arco-steps-item-active .arco-steps-item-title{font-weight:500}.arco-steps-item-node{display:inline-block;margin-right:12px;font-weight:500;font-size:16px;vertical-align:top}.arco-steps-icon{box-sizing:border-box;width:28px;height:28px;line-height:26px;text-align:center;border-radius:var(--border-radius-circle);font-size:16px}.arco-steps-item-wait .arco-steps-icon{color:var(--color-text-2);background-color:var(--color-fill-2);border:1px solid transparent}.arco-steps-item-process .arco-steps-icon{color:var(--color-white);background-color:rgb(var(--primary-6));border:1px solid transparent}.arco-steps-item-finish .arco-steps-icon{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1);border:1px solid transparent}.arco-steps-item-error .arco-steps-icon{color:var(--color-white);background-color:rgb(var(--danger-6));border:1px solid transparent}.arco-steps-item-title{position:relative;display:inline-block;padding-right:12px;color:var(--color-text-2);font-size:16px;line-height:28px;white-space:nowrap}.arco-steps-item-wait .arco-steps-item-title{color:var(--color-text-2)}.arco-steps-item-process .arco-steps-item-title,.arco-steps-item-finish .arco-steps-item-title,.arco-steps-item-error .arco-steps-item-title{color:var(--color-text-1)}.arco-steps-item-content{display:inline-block}.arco-steps-item-description{max-width:140px;margin-top:2px;color:var(--color-text-3);font-size:12px;white-space:normal}.arco-steps-item-wait .arco-steps-item-description,.arco-steps-item-process .arco-steps-item-description,.arco-steps-item-finish .arco-steps-item-description,.arco-steps-item-error .arco-steps-item-description{color:var(--color-text-3)}.arco-steps-label-horizontal .arco-steps-item:not(:last-child) .arco-steps-item-title:after{position:absolute;top:13.5px;left:100%;display:block;box-sizing:border-box;width:5000px;height:1px;background-color:var(--color-neutral-3);content:""}.arco-steps-label-horizontal .arco-steps-item.arco-steps-item-process .arco-steps-item-title:after{background-color:var(--color-neutral-3)}.arco-steps-label-horizontal .arco-steps-item.arco-steps-item-finish .arco-steps-item-title:after{background-color:rgb(var(--primary-6))}.arco-steps-label-horizontal .arco-steps-item.arco-steps-item-next-error .arco-steps-item-title:after{background-color:rgb(var(--danger-6))}.arco-steps-item:not(:last-child) .arco-steps-item-tail{position:absolute;top:13.5px;box-sizing:border-box;width:100%;height:1px}.arco-steps-item:not(:last-child) .arco-steps-item-tail:after{display:block;width:100%;height:100%;background-color:var(--color-neutral-3);content:""}.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail{position:absolute;top:0;left:13.5px;box-sizing:border-box;width:1px;height:100%;padding:34px 0 6px}.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail:after{display:block;width:100%;height:100%;background-color:var(--color-neutral-3);content:""}.arco-steps-size-small.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail{left:11.5px;padding:30px 0 6px}.arco-steps-item:not(:last-child).arco-steps-item-finish .arco-steps-item-tail:after{background-color:rgb(var(--primary-6))}.arco-steps-item:not(:last-child).arco-steps-item-next-error .arco-steps-item-tail:after{background-color:rgb(var(--danger-6))}.arco-steps-size-small:not(.arco-steps-vertical) .arco-steps-item:not(:last-child) .arco-steps-item-tail{top:11.5px}.arco-steps-size-small .arco-steps-item-node{font-size:14px}.arco-steps-size-small .arco-steps-item-title{font-size:14px;line-height:24px}.arco-steps-size-small .arco-steps-item-description{font-size:12px}.arco-steps-size-small .arco-steps-icon{width:24px;height:24px;font-size:14px;line-height:22px}.arco-steps-size-small.arco-steps-label-horizontal .arco-steps-item:not(:last-child) .arco-steps-item-title:after{top:11.5px}.arco-steps-label-vertical .arco-steps-item{overflow:visible}.arco-steps-label-vertical .arco-steps-item-title{margin-top:2px;padding-right:0}.arco-steps-label-vertical .arco-steps-item-node{margin-left:56px}.arco-steps-label-vertical .arco-steps-item-tail{left:96px;padding-right:40px}.arco-steps-label-vertical.arco-steps-size-small .arco-steps-item-node{margin-left:58px}.arco-steps-label-vertical.arco-steps-size-small .arco-steps-item-tail{left:94px;padding-right:36px}.arco-steps-mode-dot .arco-steps-item{position:relative;flex:1;margin-right:16px;overflow:visible;white-space:nowrap;text-align:left}.arco-steps-mode-dot .arco-steps-item:last-child{flex:none;margin-right:0}.arco-steps-mode-dot .arco-steps-item-active .arco-steps-item-title{font-weight:500}.arco-steps-mode-dot .arco-steps-item-node{display:inline-block;box-sizing:border-box;width:8px;height:8px;vertical-align:top;border-radius:var(--border-radius-circle)}.arco-steps-mode-dot .arco-steps-item-active .arco-steps-item-node{width:10px;height:10px}.arco-steps-mode-dot .arco-steps-item-wait .arco-steps-item-node{background-color:var(--color-fill-4);border-color:var(--color-fill-4)}.arco-steps-mode-dot .arco-steps-item-process .arco-steps-item-node,.arco-steps-mode-dot .arco-steps-item-finish .arco-steps-item-node{background-color:rgb(var(--primary-6));border-color:rgb(var(--primary-6))}.arco-steps-mode-dot .arco-steps-item-error .arco-steps-item-node{background-color:rgb(var(--danger-6));border-color:rgb(var(--danger-6))}.arco-steps-mode-dot.arco-steps-horizontal .arco-steps-item-node{margin-left:66px}.arco-steps-mode-dot.arco-steps-horizontal .arco-steps-item-active .arco-steps-item-node{margin-top:-1px;margin-left:65px}.arco-steps-mode-dot .arco-steps-item-content{display:inline-block}.arco-steps-mode-dot .arco-steps-item-title{position:relative;display:inline-block;margin-top:4px;font-size:16px}.arco-steps-mode-dot .arco-steps-item-wait .arco-steps-item-title{color:var(--color-text-2)}.arco-steps-mode-dot .arco-steps-item-process .arco-steps-item-title,.arco-steps-mode-dot .arco-steps-item-finish .arco-steps-item-title,.arco-steps-mode-dot .arco-steps-item-error .arco-steps-item-title{color:var(--color-text-1)}.arco-steps-mode-dot .arco-steps-item-description{margin-top:4px;font-size:12px;white-space:normal}.arco-steps-mode-dot .arco-steps-item-wait .arco-steps-item-description,.arco-steps-mode-dot .arco-steps-item-process .arco-steps-item-description,.arco-steps-mode-dot .arco-steps-item-finish .arco-steps-item-description,.arco-steps-mode-dot .arco-steps-item-error .arco-steps-item-description{color:var(--color-text-3)}.arco-steps-mode-dot .arco-steps-item:not(:last-child) .arco-steps-item-tail{position:absolute;top:3.5px;left:78px;box-sizing:border-box;width:100%;height:1px;background-color:var(--color-neutral-3)}.arco-steps-mode-dot .arco-steps-item:not(:last-child).arco-steps-item-process .arco-steps-item-tail{background-color:var(--color-neutral-3)}.arco-steps-mode-dot .arco-steps-item:not(:last-child).arco-steps-item-finish .arco-steps-item-tail{background-color:rgb(var(--primary-6))}.arco-steps-mode-dot .arco-steps-item:not(:last-child).arco-steps-item-next-error .arco-steps-item-tail{background-color:rgb(var(--danger-6))}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-node{margin-right:16px}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-content{overflow:hidden}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-title{margin-top:-2px}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-description{margin-top:4px}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail{position:absolute;bottom:0;left:4px;box-sizing:border-box;width:1px;height:100%;padding-top:16px;padding-bottom:2px;background-color:transparent;transform:translate(-50%)}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail:after{display:block;width:100%;height:100%;background-color:var(--color-neutral-3);content:""}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child).arco-steps-item-process .arco-steps-item-tail:after{background-color:var(--color-neutral-3)}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child).arco-steps-item-finish .arco-steps-item-tail:after{background-color:rgb(var(--primary-6))}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child).arco-steps-item-next-error .arco-steps-item-tail:after{background-color:rgb(var(--danger-6))}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item .arco-steps-item-node{margin-top:8px}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-active .arco-steps-item-node{margin-top:6px;margin-left:-1px}.arco-steps-mode-arrow .arco-steps-item{position:relative;display:flex;flex:1;align-items:center;height:72px;overflow:visible;white-space:nowrap}.arco-steps-mode-arrow .arco-steps-item:not(:last-child){margin-right:4px}.arco-steps-mode-arrow .arco-steps-item-wait{background-color:var(--color-fill-1)}.arco-steps-mode-arrow .arco-steps-item-process{background-color:rgb(var(--primary-6))}.arco-steps-mode-arrow .arco-steps-item-finish{background-color:var(--color-primary-light-1)}.arco-steps-mode-arrow .arco-steps-item-error{background-color:rgb(var(--danger-6))}.arco-steps-mode-arrow .arco-steps-item-content{display:inline-block;box-sizing:border-box}.arco-steps-mode-arrow .arco-steps-item:first-child .arco-steps-item-content{padding-left:16px}.arco-steps-mode-arrow .arco-steps-item:not(:first-child) .arco-steps-item-content{padding-left:52px}.arco-steps-mode-arrow .arco-steps-item-title{position:relative;display:inline-block;font-size:16px;white-space:nowrap}.arco-steps-mode-arrow .arco-steps-item-title:after{display:none!important}.arco-steps-mode-arrow .arco-steps-item-wait .arco-steps-item-title{color:var(--color-text-2)}.arco-steps-mode-arrow .arco-steps-item-process .arco-steps-item-title{color:var(--color-white)}.arco-steps-mode-arrow .arco-steps-item-finish .arco-steps-item-title{color:var(--color-text-1)}.arco-steps-mode-arrow .arco-steps-item-error .arco-steps-item-title{color:var(--color-white)}.arco-steps-mode-arrow .arco-steps-item-active .arco-steps-item-title{font-weight:500}.arco-steps-mode-arrow .arco-steps-item-description{max-width:none;margin-top:0;font-size:12px;white-space:nowrap}.arco-steps-mode-arrow .arco-steps-item-wait .arco-steps-item-description{color:var(--color-text-3)}.arco-steps-mode-arrow .arco-steps-item-process .arco-steps-item-description{color:var(--color-white)}.arco-steps-mode-arrow .arco-steps-item-finish .arco-steps-item-description{color:var(--color-text-3)}.arco-steps-mode-arrow .arco-steps-item-error .arco-steps-item-description{color:var(--color-white)}.arco-steps-mode-arrow .arco-steps-item:not(:first-child):before{position:absolute;top:0;left:0;z-index:1;display:block;width:0;height:0;border-top:36px solid transparent;border-bottom:36px solid transparent;border-left:36px solid var(--color-bg-2);content:""}.arco-steps-mode-arrow .arco-steps-item:not(:last-child):after{position:absolute;top:0;right:-36px;z-index:2;display:block;clear:both;width:0;height:0;border-top:36px solid transparent;border-bottom:36px solid transparent;content:""}.arco-steps-mode-arrow .arco-steps-item:not(:last-child).arco-steps-item-wait:after{border-left:36px solid var(--color-fill-1)}.arco-steps-mode-arrow .arco-steps-item:not(:last-child).arco-steps-item-process:after{border-left:36px solid rgb(var(--primary-6))}.arco-steps-mode-arrow .arco-steps-item:not(:last-child).arco-steps-item-error:after{border-left:36px solid rgb(var(--danger-6))}.arco-steps-mode-arrow .arco-steps-item:not(:last-child).arco-steps-item-finish:after{border-left:36px solid var(--color-primary-light-1)}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item{height:40px}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item-title{font-size:14px}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item-description{display:none}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:first-child):before{border-top:20px solid transparent;border-bottom:20px solid transparent;border-left:20px solid var(--color-bg-2)}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:last-child):after{right:-20px;border-top:20px solid transparent;border-bottom:20px solid transparent;border-left:20px solid var(--color-fill-1)}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:first-child .arco-steps-item-content{padding-left:20px}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:first-child) .arco-steps-item-content{padding-left:40px}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item-error:not(:last-child):after{border-left:20px solid rgb(var(--danger-6))}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:last-child).arco-steps-item-wait:after{border-left:20px solid var(--color-fill-1)}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:last-child).arco-steps-item-process:after{border-left:20px solid rgb(var(--primary-6))}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:last-child).arco-steps-item-finish:after{border-left:20px solid var(--color-primary-light-1)}.arco-steps-mode-navigation.arco-steps-label-horizontal .arco-steps-item:not(:last-child) .arco-steps-item-title:after{display:none}.arco-steps-mode-navigation .arco-steps-item{padding-left:20px;padding-right:10px;margin-right:32px}.arco-steps-mode-navigation .arco-steps-item:last-child{flex:1}.arco-steps-mode-navigation .arco-steps-item-content{margin-bottom:20px}.arco-steps-mode-navigation .arco-steps-item-description{padding-right:20px}.arco-steps-mode-navigation .arco-steps-item-active:after{content:"";position:absolute;display:block;height:2px;left:0;right:30px;bottom:0;background-color:rgb(var(--primary-6))}.arco-steps-mode-navigation .arco-steps-item-active:last-child:after{width:100%}.arco-steps-mode-navigation .arco-steps-item:not(:last-child) .arco-steps-item-content:after{position:absolute;top:10px;right:30px;display:inline-block;width:6px;height:6px;background-color:var(--color-bg-2);border:2px solid var(--color-text-4);border-bottom:none;border-left:none;transform:rotate(45deg);content:""}.arco-steps{display:flex}.arco-steps-changeable .arco-steps-item-title,.arco-steps-changeable .arco-steps-item-description{transition:all .1s cubic-bezier(0,0,1,1)}.arco-steps-changeable .arco-steps-item:not(.arco-steps-item-active):not(.arco-steps-item-disabled){cursor:pointer}.arco-steps-changeable .arco-steps-item:not(.arco-steps-item-active):not(.arco-steps-item-disabled):hover .arco-steps-item-content .arco-steps-item-title,.arco-steps-changeable .arco-steps-item:not(.arco-steps-item-active):not(.arco-steps-item-disabled):hover .arco-steps-item-content .arco-steps-item-description{color:rgb(var(--primary-6))}.arco-steps-line-less .arco-steps-item-title:after{display:none!important}.arco-steps-vertical{flex-direction:column}.arco-steps-vertical .arco-steps-item:not(:last-child){min-height:90px}.arco-steps-vertical .arco-steps-item-title:after{display:none!important}.arco-steps-vertical .arco-steps-item-description{max-width:none}.arco-steps-label-vertical .arco-steps-item-content{display:block;width:140px;text-align:center}.arco-steps-label-vertical .arco-steps-item-description{max-width:none}.switch-slide-text-enter-from{left:-100%!important}.switch-slide-text-enter-to{left:8px!important}.switch-slide-text-enter-active{transition:left .2s cubic-bezier(.34,.69,.1,1)}.switch-slide-text-leave-from{left:100%!important}.switch-slide-text-leave-to{left:26px!important}.switch-slide-text-leave-active{transition:left .2s cubic-bezier(.34,.69,.1,1)}.arco-switch{position:relative;box-sizing:border-box;min-width:40px;height:24px;padding:0;overflow:hidden;line-height:24px;vertical-align:middle;background-color:var(--color-fill-4);border:none;border-radius:12px;outline:none;cursor:pointer;transition:background-color .2s cubic-bezier(.34,.69,.1,1)}.arco-switch-handle{position:absolute;top:4px;left:4px;display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:var(--color-neutral-3);font-size:12px;background-color:var(--color-bg-white);border-radius:50%;transition:all .2s cubic-bezier(.34,.69,.1,1)}.arco-switch-checked{background-color:rgb(var(--primary-6))}.arco-switch-checked .arco-switch-handle{left:calc(100% - 20px);color:rgb(var(--primary-6))}.arco-switch[disabled] .arco-switch-handle{color:var(--color-fill-2)}.arco-switch[disabled].arco-switch-checked .arco-switch-handle{color:var(--color-primary-light-3)}.arco-switch-text-holder{margin:0 8px 0 26px;font-size:12px;opacity:0}.arco-switch-text{position:absolute;top:0;left:26px;color:var(--color-white);font-size:12px}.arco-switch-checked .arco-switch-text-holder{margin:0 26px 0 8px}.arco-switch-checked .arco-switch-text{left:8px;color:var(--color-white)}.arco-switch[disabled]{background-color:var(--color-fill-2);cursor:not-allowed}.arco-switch[disabled] .arco-switch-text{color:var(--color-white)}.arco-switch[disabled].arco-switch-checked{background-color:var(--color-primary-light-3)}.arco-switch[disabled].arco-switch-checked .arco-switch-text{color:var(--color-white)}.arco-switch-loading{background-color:var(--color-fill-2)}.arco-switch-loading .arco-switch-handle{color:var(--color-neutral-3)}.arco-switch-loading .arco-switch-text{color:var(--color-white)}.arco-switch-loading.arco-switch-checked{background-color:var(--color-primary-light-3)}.arco-switch-loading.arco-switch-checked .arco-switch-handle{color:var(--color-primary-light-3)}.arco-switch-loading.arco-switch-checked .arco-switch-text{color:var(--color-primary-light-1)}.arco-switch-small{min-width:28px;height:16px;line-height:16px}.arco-switch-small.arco-switch-checked{padding-left:-2px}.arco-switch-small .arco-switch-handle{top:2px;left:2px;width:12px;height:12px;border-radius:8px}.arco-switch-small .arco-switch-handle-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(.66667)}.arco-switch-small.arco-switch-checked .arco-switch-handle{left:calc(100% - 14px)}.arco-switch-type-round{min-width:40px;border-radius:var(--border-radius-small)}.arco-switch-type-round .arco-switch-handle{border-radius:2px}.arco-switch-type-round.arco-switch-small{min-width:28px;height:16px;line-height:16px;border-radius:2px}.arco-switch-type-round.arco-switch-small .arco-switch-handle{border-radius:1px}.arco-switch-type-line{min-width:36px;overflow:unset;background-color:transparent}.arco-switch-type-line:after{display:block;width:100%;height:6px;background-color:var(--color-fill-4);border-radius:3px;transition:background-color .2s cubic-bezier(.34,.69,.1,1);content:""}.arco-switch-type-line .arco-switch-handle{top:2px;left:0;width:20px;height:20px;background-color:var(--color-bg-white);border-radius:10px;box-shadow:0 1px 3px var(--color-neutral-6)}.arco-switch-type-line.arco-switch-checked{background-color:transparent}.arco-switch-type-line.arco-switch-checked:after{background-color:rgb(var(--primary-6))}.arco-switch-type-line.arco-switch-custom-color{--custom-color: var(--color-fill-4)}.arco-switch-type-line.arco-switch-custom-color:after{background-color:var(--custom-color)}.arco-switch-type-line.arco-switch-custom-color.arco-switch-checked{--custom-color: rgb(var(--primary-6))}.arco-switch-type-line.arco-switch-checked .arco-switch-handle{left:calc(100% - 20px)}.arco-switch-type-line[disabled]{background-color:transparent;cursor:not-allowed}.arco-switch-type-line[disabled]:after{background-color:var(--color-fill-2)}.arco-switch-type-line[disabled].arco-switch-checked{background-color:transparent}.arco-switch-type-line[disabled].arco-switch-checked:after{background-color:var(--color-primary-light-3)}.arco-switch-type-line.arco-switch-loading{background-color:transparent}.arco-switch-type-line.arco-switch-loading:after{background-color:var(--color-fill-2)}.arco-switch-type-line.arco-switch-loading.arco-switch-checked{background-color:transparent}.arco-switch-type-line.arco-switch-loading.arco-switch-checked:after{background-color:var(--color-primary-light-3)}.arco-switch-type-line.arco-switch-small{min-width:28px;height:16px;line-height:16px}.arco-switch-type-line.arco-switch-small.arco-switch-checked{padding-left:0}.arco-switch-type-line.arco-switch-small .arco-switch-handle{top:0;width:16px;height:16px;border-radius:8px}.arco-switch-type-line.arco-switch-small .arco-switch-handle-icon{transform:translate(-50%,-50%) scale(1)}.arco-switch-type-line.arco-switch-small.arco-switch-checked .arco-switch-handle{left:calc(100% - 16px)}.arco-table-filters-content{box-sizing:border-box;min-width:100px;background:var(--color-bg-5);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px #0000001a}.arco-table-filters-list{max-height:200px;padding:4px 0;overflow-y:auto}.arco-table-filters-item{height:32px;padding:0 12px;font-size:14px;line-height:32px}.arco-table-filters-text{width:100%;max-width:160px;height:34px;margin-right:0;padding-left:10px;overflow:hidden;line-height:32px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.arco-table-filters-bottom{box-sizing:border-box;height:38px;padding:0 12px;overflow:hidden;line-height:38px;border-top:1px solid var(--color-neutral-3)}.arco-table-filters-bottom>*:not(*:last-child){margin-right:8px}.arco-table{position:relative}.arco-table-column-handle{position:absolute;top:0;right:-4px;z-index:1;width:8px;height:100%;cursor:col-resize}.arco-table .arco-spin{display:flex;flex-direction:column;height:100%}.arco-table>.arco-spin>.arco-spin-children:after{z-index:2}.arco-table-footer{border-radius:0 0 var(--border-radius-medium) var(--border-radius-medium)}.arco-table-scroll-position-right .arco-table-col-fixed-left-last:after,.arco-table-scroll-position-middle .arco-table-col-fixed-left-last:after{box-shadow:inset 6px 0 8px -3px #00000026}.arco-table-scroll-position-left .arco-table-col-fixed-right-first:after,.arco-table-scroll-position-middle .arco-table-col-fixed-right-first:after{box-shadow:inset -6px 0 8px -3px #00000026}.arco-table-layout-fixed .arco-table-element{table-layout:fixed}.arco-table .arco-table-element{width:100%;min-width:100%;margin:0;border-collapse:separate;border-spacing:0}.arco-table-th{position:relative;box-sizing:border-box;color:rgb(var(--gray-10));font-weight:500;line-height:1.5715;text-align:left;background-color:var(--color-neutral-2)}.arco-table-th[colspan]{text-align:center}.arco-table-th-align-right{text-align:right}.arco-table-th-align-right .arco-table-cell-with-sorter{justify-content:flex-end}.arco-table-th-align-center{text-align:center}.arco-table-th-align-center .arco-table-cell-with-sorter{justify-content:center}.arco-table-td{box-sizing:border-box;color:rgb(var(--gray-10));line-height:1.5715;text-align:left;word-break:break-all;background-color:var(--color-bg-2);border-bottom:1px solid var(--color-neutral-3)}.arco-table-td-align-right{text-align:right}.arco-table-td-align-center{text-align:center}.arco-table-td.arco-table-drag-handle{cursor:move}.arco-table-cell{display:flex;align-items:center}.arco-table-cell-align-right{justify-content:flex-end;text-align:right}.arco-table-cell-align-center{justify-content:center;text-align:center}.arco-table-text-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-table-td-content{display:block;width:100%}.arco-table-th.arco-table-col-sorted{background-color:var(--color-neutral-3)}.arco-table-td.arco-table-col-sorted{background-color:var(--color-fill-1)}.arco-table-col-fixed-left,.arco-table-col-fixed-right{position:sticky;z-index:10}.arco-table-col-fixed-left-last:after,.arco-table-col-fixed-right-first:after{position:absolute;top:0;bottom:-1px;left:0;width:10px;box-shadow:none;transform:translate(-100%);transition:box-shadow .1s cubic-bezier(0,0,1,1);content:"";pointer-events:none}.arco-table-col-fixed-left-last:after{right:0;left:unset;transform:translate(100%)}.arco-table-cell-text-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-table-editable-row .arco-table-cell-wrap-value{border:1px solid var(--color-white);border-radius:var(--border-radius-medium);cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-table-editable-row:hover .arco-table-cell-wrap-value{border:1px solid var(--color-neutral-3)}.arco-table .arco-table-expand-btn{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;padding:0;color:var(--color-text-2);font-size:12px;line-height:14px;background-color:var(--color-neutral-3);border:1px solid transparent;border-radius:2px;outline:none;cursor:pointer;transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-table .arco-table-expand-btn:hover{color:var(--color-text-1);background-color:var(--color-neutral-4);border-color:transparent}.arco-table-cell-expand-icon{display:flex;align-items:center}.arco-table-cell-expand-icon .arco-table-cell-inline-icon{display:inline-flex;margin-right:4px}.arco-table-cell-expand-icon .arco-table-cell-inline-icon .arco-icon-loading{color:rgb(var(--primary-6))}.arco-table-cell-expand-icon-hidden{display:inline-block;width:14px;height:14px;margin-right:4px}.arco-table-tr-expand .arco-table-td{background-color:var(--color-fill-1)}.arco-table-cell-fixed-expand{position:sticky;left:0;box-sizing:border-box}.arco-table-tr-expand .arco-table-td .arco-table .arco-table-container{border:none}.arco-table-tr-expand .arco-table-td .arco-table .arco-table-th{border-bottom:1px solid var(--color-neutral-3)}.arco-table-tr-expand .arco-table-td .arco-table .arco-table-th,.arco-table-tr-expand .arco-table-td .arco-table .arco-table-td{background-color:transparent}.arco-table-tr-expand .arco-table-td .arco-table .arco-table-pagination{margin-bottom:12px}.arco-table-th.arco-table-operation,.arco-table-td.arco-table-operation{text-align:center}.arco-table-th.arco-table-operation .arco-table-cell,.arco-table-td.arco-table-operation .arco-table-cell{display:flex;justify-content:center;padding:0}.arco-table-radio,.arco-table-checkbox{justify-content:center}.arco-table-checkbox .arco-checkbox,.arco-table-radio .arco-radio{padding-left:0}.arco-table-selection-checkbox-col,.arco-table-selection-radio-col,.arco-table-expand-col,.arco-table-drag-handle-col{width:40px;min-width:40px;max-width:40px}.arco-table-th{transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-table-cell-with-sorter{display:flex;align-items:center;cursor:pointer}.arco-table-cell-with-sorter:hover{background-color:rgba(var(--gray-4),.5)}.arco-table-cell-with-filter{display:flex;align-items:center}.arco-table-cell-next-ascend .arco-table-sorter-icon .arco-icon-caret-up,.arco-table-cell-next-descend .arco-table-sorter-icon .arco-icon-caret-down{color:var(--color-neutral-6)}.arco-table-sorter{display:inline-block;margin-left:8px;vertical-align:-3px}.arco-table-sorter.arco-table-sorter-direction-one{vertical-align:0}.arco-table-sorter-icon{position:relative;width:14px;height:8px;overflow:hidden;line-height:8px}.arco-table-sorter-icon .arco-icon-caret-up,.arco-table-sorter-icon .arco-icon-caret-down{position:absolute;top:50%;color:var(--color-neutral-5);font-size:12px;transition:all .1s cubic-bezier(0,0,1,1)}.arco-table-sorter-icon .arco-icon-caret-up{top:-2px;left:1px}.arco-table-sorter-icon .arco-icon-caret-down{top:-3px;left:1px}.arco-table-sorter-icon.arco-table-sorter-icon-active svg{color:rgb(var(--primary-6))}.arco-table-filters{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:24px;height:100%;line-height:1;vertical-align:0;background-color:transparent;cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-table-filters:hover,.arco-table-filters-open{background-color:var(--color-neutral-4)}.arco-table-filters svg{color:var(--color-text-2);font-size:16px;transition:all .1s cubic-bezier(0,0,1,1)}.arco-table-filters-active svg{color:rgb(var(--primary-6))}.arco-table-filters-align-left{position:relative;width:auto;margin-left:8px}.arco-table-filters-align-left svg{font-size:12px}.arco-table-filters-align-left:hover,.arco-table-filters-align-left-open{background:none}.arco-table-filters-align-left:hover:before,.arco-table-filters-align-left.arco-table-filters-open:before{background:var(--color-fill-4)}.arco-table-container{position:relative;border-radius:var(--border-radius-medium) var(--border-radius-medium) 0 0}.arco-table-header{flex-shrink:0;border-radius:var(--border-radius-medium) var(--border-radius-medium) 0 0}.arco-table-container{box-sizing:border-box;width:100%;min-height:0}.arco-table-container .arco-table-content{display:flex;flex-direction:column;width:auto;height:100%}.arco-table-container .arco-table-content-scroll-x{overflow-x:auto;overflow-y:hidden}.arco-table-container:before,.arco-table-container:after{position:absolute;z-index:1;width:10px;height:100%;box-shadow:none;transition:box-shadow .1s cubic-bezier(0,0,1,1);content:"";pointer-events:none}.arco-table-container:before{top:0;left:0;border-top-left-radius:var(--border-radius-medium)}.arco-table-container:after{top:0;right:0;border-top-right-radius:var(--border-radius-medium)}.arco-table-container:not(.arco-table-has-fixed-col-left).arco-table-scroll-position-right:before,.arco-table-container:not(.arco-table-has-fixed-col-left).arco-table-scroll-position-middle:before{box-shadow:inset 6px 0 8px -3px #00000026}.arco-table-container:not(.arco-table-has-fixed-col-right).arco-table-scroll-position-left:after,.arco-table-container:not(.arco-table-has-fixed-col-right).arco-table-scroll-position-middle:after{box-shadow:inset -6px 0 8px -3px #00000026}.arco-table-header{overflow-x:hidden;overflow-y:hidden;background-color:var(--color-neutral-2);scrollbar-color:transparent transparent}.arco-table-header-sticky{position:sticky;top:0;z-index:100}.arco-table:not(.arco-table-empty) .arco-table-header::-webkit-scrollbar{height:0;background-color:transparent}.arco-table.arco-table-empty .arco-table-header{overflow-x:auto}.arco-table-body{position:relative;width:100%;min-height:40px;overflow:auto;background-color:var(--color-bg-2)}.arco-table-border .arco-table-container{border-top:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-table-border .arco-table-scroll-y{border-bottom:1px solid var(--color-neutral-3)}.arco-table-border .arco-table-scroll-y .arco-table-body .arco-table-tr:last-of-type .arco-table-td,.arco-table-border .arco-table-scroll-y tfoot .arco-table-tr:last-of-type .arco-table-td{border-bottom:none}.arco-table-border .arco-table-scroll-y .arco-table-body .arco-table-tr:last-of-type .arco-table-td.arco-table-col-fixed-left-last:after,.arco-table-border .arco-table-scroll-y tfoot .arco-table-tr:last-of-type .arco-table-td.arco-table-col-fixed-left-last:after,.arco-table-border .arco-table-scroll-y .arco-table-body .arco-table-tr:last-of-type .arco-table-td.arco-table-col-fixed-right-first:after,.arco-table-border .arco-table-scroll-y tfoot .arco-table-tr:last-of-type .arco-table-td.arco-table-col-fixed-right-first:after{bottom:0}.arco-table-border .arco-table-tr .arco-table-th{border-bottom:1px solid var(--color-neutral-3)}.arco-table-border .arco-table-footer{border:1px solid var(--color-neutral-3);border-top:0}.arco-table-border:not(.arco-table-border-cell) .arco-table-container{border-right:1px solid var(--color-neutral-3)}.arco-table-border-cell .arco-table-th,.arco-table-border-cell .arco-table-td:not(.arco-table-tr-expand){border-right:1px solid var(--color-neutral-3)}.arco-table-border-cell .arco-table-th-resizing,.arco-table-border-cell .arco-table-td-resizing:not(.arco-table-tr-expand){border-right-color:rgb(var(--primary-6))}.arco-table-border-header-cell .arco-table-th{border-right:1px solid var(--color-neutral-3);border-bottom:1px solid var(--color-neutral-3)}.arco-table-border-header-cell .arco-table-th-resizing,.arco-table-border-header-cell .arco-table-td-resizing:not(.arco-table-tr-expand){border-right-color:rgb(var(--primary-6))}.arco-table-border.arco-table-border-header-cell thead .arco-table-tr:first-child .arco-table-th:last-child{border-right:0}.arco-table-border-body-cell .arco-table-td:not(:last-child):not(.arco-table-tr-expand){border-right:1px solid var(--color-neutral-3)}.arco-table-stripe:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):nth-child(2n) .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right),.arco-table-stripe .arco-table-tr-drag .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){background-color:var(--color-fill-1)}.arco-table-stripe:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):nth-child(2n) .arco-table-td.arco-table-col-fixed-left:before,.arco-table-stripe .arco-table-tr-drag .arco-table-td.arco-table-col-fixed-left:before,.arco-table-stripe:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):nth-child(2n) .arco-table-td.arco-table-col-fixed-right:before,.arco-table-stripe .arco-table-tr-drag .arco-table-td.arco-table-col-fixed-right:before{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;background-color:var(--color-fill-1);content:""}.arco-table .arco-table-tr-draggable{cursor:move}.arco-table-hover:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):hover .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right),.arco-table-hover .arco-table-tr-drag .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){background-color:var(--color-fill-1)}.arco-table-hover:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):hover .arco-table-td.arco-table-col-fixed-left:before,.arco-table-hover .arco-table-tr-drag .arco-table-td.arco-table-col-fixed-left:before,.arco-table-hover:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):hover .arco-table-td.arco-table-col-fixed-right:before,.arco-table-hover .arco-table-tr-drag .arco-table-td.arco-table-col-fixed-right:before{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;background-color:var(--color-fill-1);content:""}.arco-table-hover .arco-table-tr-expand:not(.arco-table-tr-empty):hover .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){background-color:var(--color-fill-1)}.arco-table-tr-expand .arco-table-td .arco-table-hover .arco-table-tr:not(.arco-table-tr-empty) .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){background-color:transparent}.arco-table-tr-expand .arco-table-td .arco-table-hover .arco-table-tr:not(.arco-table-tr-empty) .arco-table-td.arco-table-col-fixed-left:before,.arco-table-tr-expand .arco-table-td .arco-table-hover .arco-table-tr:not(.arco-table-tr-empty) .arco-table-td.arco-table-col-fixed-right:before{background-color:transparent}.arco-table-tfoot{position:relative;z-index:1;flex-shrink:0;width:100%;overflow-x:auto;background-color:var(--color-neutral-2);box-shadow:0 -1px 0 var(--color-neutral-3);scrollbar-color:transparent transparent}.arco-table-tfoot::-webkit-scrollbar{height:0;background-color:transparent}.arco-table tfoot .arco-table-td{background-color:var(--color-neutral-2)}.arco-table-tr-checked .arco-table-td{background-color:var(--color-fill-1)}.arco-table .arco-table-cell{padding:9px 16px}.arco-table .arco-table-th,.arco-table .arco-table-td{font-size:14px}.arco-table .arco-table-footer{padding:9px 16px}.arco-table .arco-table-tr-expand .arco-table-td .arco-table{margin:-9px -16px -10px}.arco-table .arco-table-editable-row .arco-table-cell-wrap-value{padding:9px 16px}.arco-table-size-medium .arco-table-cell{padding:7px 16px}.arco-table-size-medium .arco-table-th,.arco-table-size-medium .arco-table-td{font-size:14px}.arco-table-size-medium .arco-table-footer{padding:7px 16px}.arco-table-size-medium .arco-table-tr-expand .arco-table-td .arco-table{margin:-7px -16px -8px}.arco-table-size-medium .arco-table-editable-row .arco-table-cell-wrap-value{padding:7px 16px}.arco-table-size-small .arco-table-cell{padding:5px 16px}.arco-table-size-small .arco-table-th,.arco-table-size-small .arco-table-td{font-size:14px}.arco-table-size-small .arco-table-footer{padding:5px 16px}.arco-table-size-small .arco-table-tr-expand .arco-table-td .arco-table{margin:-5px -16px -6px}.arco-table-size-small .arco-table-editable-row .arco-table-cell-wrap-value{padding:5px 16px}.arco-table-size-mini .arco-table-cell{padding:2px 16px}.arco-table-size-mini .arco-table-th,.arco-table-size-mini .arco-table-td{font-size:12px}.arco-table-size-mini .arco-table-footer{padding:2px 16px}.arco-table-size-mini .arco-table-tr-expand .arco-table-td .arco-table{margin:-2px -16px -3px}.arco-table-size-mini .arco-table-editable-row .arco-table-cell-wrap-value{padding:2px 16px}.arco-table-virtualized .arco-table-element{table-layout:fixed}.arco-table-virtualized div.arco-table-body div.arco-table-tr{display:flex}.arco-table-virtualized div.arco-table-body div.arco-table-td{display:flex;flex:1;align-items:center}.arco-table-pagination{display:flex;align-items:center;justify-content:flex-end;margin-top:12px}.arco-table-pagination-left{justify-content:flex-start}.arco-table-pagination-center{justify-content:center}.arco-table-pagination-top{margin-top:0;margin-bottom:12px}.arco-virtual-list>.arco-table-element{width:auto}body[arco-theme=dark] .arco-table-tr-checked .arco-table-td{background-color:var(--color-neutral-2)}.arco-icon-hover.arco-tabs-icon-hover:before{width:16px;height:16px}.arco-tabs .arco-tabs-icon-hover{color:var(--color-text-2);font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tabs-dropdown-icon{margin-left:6px;font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tabs-tab-close-btn{margin-left:8px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tabs-nav-add-btn{display:inline-flex;align-items:center;justify-content:center;padding:0 8px;font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tabs-add{position:relative}.arco-tabs-nav-button-left{margin-right:6px;margin-left:10px}.arco-tabs-nav-button-right{margin-right:10px;margin-left:6px}.arco-tabs-nav-button-up{margin-bottom:10px}.arco-tabs-nav-button-down{margin-top:10px}.arco-tabs-nav-button-disabled{color:var(--color-text-4);cursor:not-allowed}.arco-tabs{position:relative;overflow:hidden}.arco-tabs-nav{position:relative;flex-shrink:0}.arco-tabs-nav:before{position:absolute;right:0;bottom:0;left:0;display:block;clear:both;height:1px;background-color:var(--color-neutral-3);content:""}.arco-tabs-nav-tab{display:flex;flex:1;overflow:hidden}.arco-tabs-nav-tab-list{position:relative;display:inline-block;white-space:nowrap;transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-tabs-nav-extra{display:flex;align-items:center;width:auto;line-height:32px}.arco-tabs-nav-extra .arco-tabs-nav-add-btn{padding-left:0}.arco-tabs-tab{display:inline-flex;align-items:center;box-sizing:border-box;padding:4px 0;color:var(--color-text-2);font-size:14px;line-height:1.5715;outline:none;cursor:pointer;transition:color .2s cubic-bezier(0,0,1,1)}.arco-tabs-tab-title{display:inline-block}.arco-tabs-tab:hover{color:var(--color-text-2);font-weight:400}.arco-tabs-tab-disabled,.arco-tabs-tab-disabled:hover{color:var(--color-text-4);cursor:not-allowed}.arco-tabs-tab-active,.arco-tabs-tab-active:hover{color:rgb(var(--primary-6));font-weight:500}.arco-tabs-tab-active.arco-tabs-tab-disabled,.arco-tabs-tab-active:hover.arco-tabs-tab-disabled{color:var(--color-primary-light-3)}.arco-tabs-nav-ink{position:absolute;top:initial;right:initial;bottom:0;height:2px;background-color:rgb(var(--primary-6));transition:left .2s cubic-bezier(.34,.69,.1,1),width .2s cubic-bezier(.34,.69,.1,1)}.arco-tabs-nav-ink.arco-tabs-header-ink-no-animation{transition:none}.arco-tabs-nav-ink-disabled{background-color:var(--color-primary-light-3)}.arco-tabs-nav-type-line .arco-tabs-nav-extra{line-height:40px}.arco-tabs-nav-type-line .arco-tabs-tab{margin:0 16px;padding:8px 0;line-height:1.5715}.arco-tabs-nav-type-line .arco-tabs-tab-title{position:relative;display:inline-block;padding:1px 0}.arco-tabs-nav-type-line .arco-tabs-tab-title:before{position:absolute;inset:0 -8px;z-index:-1;background-color:transparent;border-radius:var(--border-radius-small);opacity:1;transition:background-color .2s cubic-bezier(0,0,1,1),opacity .2s cubic-bezier(0,0,1,1);content:""}.arco-tabs-nav-type-line .arco-tabs-tab:hover .arco-tabs-tab-title:before{background-color:var(--color-fill-2)}.arco-tabs-nav-type-line .arco-tabs-tab-active .arco-tabs-tab-title:before,.arco-tabs-nav-type-line .arco-tabs-tab-active:hover .arco-tabs-tab-title:before{background-color:transparent}.arco-tabs-nav-type-line .arco-tabs-tab-disabled .arco-tabs-tab-title:before,.arco-tabs-nav-type-line .arco-tabs-tab-disabled:hover .arco-tabs-tab-title:before{opacity:0}.arco-tabs-nav-type-line .arco-tabs-tab:focus-visible .arco-tabs-tab-title:before{border:2px solid rgb(var(--primary-6))}.arco-tabs-nav-type-line.arco-tabs-nav-horizontal>.arco-tabs-tab:first-of-type{margin-left:16px}.arco-tabs-nav-type-line.arco-tabs-nav-horizontal .arco-tabs-nav-tab-list-no-padding>.arco-tabs-tab:first-of-type,.arco-tabs-nav-text.arco-tabs-nav-horizontal .arco-tabs-nav-tab-list-no-padding>.arco-tabs-tab:first-of-type{margin-left:0}.arco-tabs-nav-type-card .arco-tabs-tab,.arco-tabs-nav-type-card-gutter .arco-tabs-tab{position:relative;padding:4px 16px;font-size:14px;border:1px solid var(--color-neutral-3);transition:padding .2s cubic-bezier(0,0,1,1),color .2s cubic-bezier(0,0,1,1)}.arco-tabs-nav-type-card .arco-tabs-tab-closable,.arco-tabs-nav-type-card-gutter .arco-tabs-tab-closable{padding-right:12px}.arco-tabs-nav-type-card .arco-tabs-tab-closable:not(.arco-tabs-tab-active):hover .arco-icon-hover:hover:before,.arco-tabs-nav-type-card-gutter .arco-tabs-tab-closable:not(.arco-tabs-tab-active):hover .arco-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-tabs-nav-type-card .arco-tabs-tab:focus-visible:before,.arco-tabs-nav-type-card-gutter .arco-tabs-tab:focus-visible:before{position:absolute;inset:-1px 0 -1px -1px;border:2px solid rgb(var(--primary-6));content:""}.arco-tabs-nav-type-card .arco-tabs-tab:last-child:focus-visible:before,.arco-tabs-nav-type-card-gutter .arco-tabs-tab:last-child:focus-visible:before{right:-1px}.arco-tabs-nav-type-card .arco-tabs-nav-add-btn,.arco-tabs-nav-type-card-gutter .arco-tabs-nav-add-btn{height:32px}.arco-tabs-nav-type-card .arco-tabs-tab{background-color:transparent;border-right:none}.arco-tabs-nav-type-card .arco-tabs-tab:last-child{border-right:1px solid var(--color-neutral-3);border-top-right-radius:var(--border-radius-small)}.arco-tabs-nav-type-card .arco-tabs-tab:first-child{border-top-left-radius:var(--border-radius-small)}.arco-tabs-nav-type-card .arco-tabs-tab:hover{background-color:var(--color-fill-3)}.arco-tabs-nav-type-card .arco-tabs-tab-disabled,.arco-tabs-nav-type-card .arco-tabs-tab-disabled:hover{background-color:transparent}.arco-tabs-nav-type-card .arco-tabs-tab-active,.arco-tabs-nav-type-card .arco-tabs-tab-active:hover{background-color:transparent;border-bottom-color:var(--color-bg-2)}.arco-tabs-nav-type-card-gutter .arco-tabs-tab{margin-left:4px;background-color:var(--color-fill-1);border-right:1px solid var(--color-neutral-3);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}.arco-tabs-nav-type-card-gutter .arco-tabs-tab:hover{background-color:var(--color-fill-3)}.arco-tabs-nav-type-card-gutter .arco-tabs-tab-disabled,.arco-tabs-nav-type-card-gutter .arco-tabs-tab-disabled:hover{background-color:var(--color-fill-1)}.arco-tabs-nav-type-card-gutter .arco-tabs-tab-active,.arco-tabs-nav-type-card-gutter .arco-tabs-tab-active:hover{background-color:transparent;border-bottom-color:var(--color-bg-2)}.arco-tabs-nav-type-card-gutter .arco-tabs-tab:first-child{margin-left:0}.arco-tabs-nav-type-text:before{display:none}.arco-tabs-nav-type-text .arco-tabs-tab{position:relative;margin:0 9px;padding:5px 0;font-size:14px;line-height:1.5715}.arco-tabs-nav-type-text .arco-tabs-tab:not(:first-of-type):before{position:absolute;top:50%;left:-9px;display:block;width:2px;height:12px;background-color:var(--color-fill-3);transform:translateY(-50%);content:""}.arco-tabs-nav-type-text .arco-tabs-tab-title{padding-right:8px;padding-left:8px;background-color:transparent}.arco-tabs-nav-type-text .arco-tabs-tab-title:hover{background-color:var(--color-fill-2)}.arco-tabs-nav-type-text .arco-tabs-tab-active .arco-tabs-tab-title,.arco-tabs-nav-type-text .arco-tabs-tab-active .arco-tabs-tab-title:hover,.arco-tabs-nav-type-text .arco-tabs-tab-disabled .arco-tabs-tab-title,.arco-tabs-nav-type-text .arco-tabs-tab-disabled .arco-tabs-tab-title:hover{background-color:transparent}.arco-tabs-nav-type-text .arco-tabs-tab-active.arco-tabs-nav-type-text .arco-tabs-tab-disabled .arco-tabs-tab-title,.arco-tabs-nav-type-text .arco-tabs-tab-active.arco-tabs-nav-type-text .arco-tabs-tab-disabled .arco-tabs-tab-title:hover{background-color:var(--color-primary-light-3)}.arco-tabs-nav-type-text .arco-tabs-tab:focus-visible .arco-tabs-tab-title{margin:-2px;border:2px solid rgb(var(--primary-6))}.arco-tabs-nav-type-rounded:before{display:none}.arco-tabs-nav-type-rounded .arco-tabs-tab{margin:0 6px;padding:5px 16px;font-size:14px;background-color:transparent;border-radius:32px}.arco-tabs-nav-type-rounded .arco-tabs-tab:hover{background-color:var(--color-fill-2)}.arco-tabs-nav-type-rounded .arco-tabs-tab-disabled:hover{background-color:transparent}.arco-tabs-nav-type-rounded .arco-tabs-tab-active,.arco-tabs-nav-type-rounded .arco-tabs-tab-active:hover{background-color:var(--color-fill-2)}.arco-tabs-nav-type-rounded .arco-tabs-tab:focus-visible{border-color:rgb(var(--primary-6))}.arco-tabs-nav-type-capsule:before{display:none}.arco-tabs-nav-type-capsule .arco-tabs-nav-tab:not(.arco-tabs-nav-tab-scroll){justify-content:flex-end}.arco-tabs-nav-type-capsule .arco-tabs-nav-tab-list{padding:3px;line-height:1;background-color:var(--color-fill-2);border-radius:var(--border-radius-small)}.arco-tabs-nav-type-capsule .arco-tabs-tab{position:relative;padding:0 10px;font-size:14px;line-height:26px;background-color:transparent}.arco-tabs-nav-type-capsule .arco-tabs-tab:hover{background-color:var(--color-bg-2)}.arco-tabs-nav-type-capsule .arco-tabs-tab-disabled:hover{background-color:unset}.arco-tabs-nav-type-capsule .arco-tabs-tab-active,.arco-tabs-nav-type-capsule .arco-tabs-tab-active:hover{background-color:var(--color-bg-2)}.arco-tabs-nav-type-capsule .arco-tabs-tab-active:before,.arco-tabs-nav-type-capsule .arco-tabs-tab-active:hover:before,.arco-tabs-nav-type-capsule .arco-tabs-tab-active+.arco-tabs-tab:before,.arco-tabs-nav-type-capsule .arco-tabs-tab-active:hover+.arco-tabs-tab:before{opacity:0}.arco-tabs-nav-type-capsule .arco-tabs-tab:focus-visible{border-color:rgb(var(--primary-6))}.arco-tabs-nav-type-capsule.arco-tabs-nav-horizontal .arco-tabs-tab:not(:first-of-type){margin-left:3px}.arco-tabs-nav-type-capsule.arco-tabs-nav-horizontal .arco-tabs-tab:not(:first-of-type):before{position:absolute;top:50%;left:-4px;display:block;width:1px;height:14px;background-color:var(--color-fill-3);transform:translateY(-50%);transition:all .2s cubic-bezier(0,0,1,1);content:""}.arco-tabs-nav{position:relative;display:flex;align-items:center;overflow:hidden}.arco-tabs-content{box-sizing:border-box;width:100%;padding-top:16px;overflow:hidden}.arco-tabs-content-hide{display:none}.arco-tabs-content .arco-tabs-content-list{display:flex;width:100%}.arco-tabs-content .arco-tabs-content-item{flex-shrink:0;width:100%;height:0;overflow:hidden}.arco-tabs-content .arco-tabs-content-item.arco-tabs-content-item-active{height:auto}.arco-tabs-type-card>.arco-tabs-content,.arco-tabs-type-card-gutter>.arco-tabs-content{border:1px solid var(--color-neutral-3);border-top:none}.arco-tabs-content-animation{transition:all .2s cubic-bezier(.34,.69,.1,1)}.arco-tabs-horizontal.arco-tabs-justify{display:flex;flex-direction:column;height:100%}.arco-tabs-horizontal.arco-tabs-justify .arco-tabs-content,.arco-tabs-horizontal.arco-tabs-justify .arco-tabs-content-list,.arco-tabs-horizontal.arco-tabs-justify .arco-tabs-pane{height:100%}.arco-tabs-nav-size-mini.arco-tabs-nav-type-line .arco-tabs-tab{padding-top:6px;padding-bottom:6px;font-size:12px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-line .arco-tabs-nav-extra{font-size:12px;line-height:32px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-card .arco-tabs-tab,.arco-tabs-nav-size-mini.arco-tabs-nav-type-card-gutter .arco-tabs-tab{padding-top:1px;padding-bottom:1px;font-size:12px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-card .arco-tabs-nav-extra,.arco-tabs-nav-size-mini.arco-tabs-nav-type-card-gutter .arco-tabs-nav-extra{font-size:12px;line-height:24px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-card .arco-tabs-nav-add-btn,.arco-tabs-nav-size-mini.arco-tabs-nav-type-card-gutter .arco-tabs-nav-add-btn{height:24px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-capsule .arco-tabs-tab{font-size:12px;line-height:18px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-capsule .arco-tabs-nav-extra{font-size:12px;line-height:24px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-rounded .arco-tabs-tab{padding-top:3px;padding-bottom:3px;font-size:12px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-rounded .arco-tabs-nav-extra{font-size:12px;line-height:24px}.arco-tabs-nav-size-small.arco-tabs-nav-type-line .arco-tabs-tab{padding-top:6px;padding-bottom:6px;font-size:14px}.arco-tabs-nav-size-small.arco-tabs-nav-type-line .arco-tabs-nav-extra{font-size:14px;line-height:36px}.arco-tabs-nav-size-small.arco-tabs-nav-type-card .arco-tabs-tab,.arco-tabs-nav-size-small.arco-tabs-nav-type-card-gutter .arco-tabs-tab{padding-top:1px;padding-bottom:1px;font-size:14px}.arco-tabs-nav-size-small.arco-tabs-nav-type-card .arco-tabs-nav-extra,.arco-tabs-nav-size-small.arco-tabs-nav-type-card-gutter .arco-tabs-nav-extra{font-size:14px;line-height:28px}.arco-tabs-nav-size-small.arco-tabs-nav-type-card .arco-tabs-nav-add-btn,.arco-tabs-nav-size-small.arco-tabs-nav-type-card-gutter .arco-tabs-nav-add-btn{height:28px}.arco-tabs-nav-size-small.arco-tabs-nav-type-capsule .arco-tabs-tab{font-size:14px;line-height:22px}.arco-tabs-nav-size-small.arco-tabs-nav-type-capsule .arco-tabs-nav-extra{font-size:14px;line-height:28px}.arco-tabs-nav-size-small.arco-tabs-nav-type-rounded .arco-tabs-tab{padding-top:3px;padding-bottom:3px;font-size:14px}.arco-tabs-nav-size-small.arco-tabs-nav-type-rounded .arco-tabs-nav-extra{font-size:14px;line-height:28px}.arco-tabs-nav-size-large.arco-tabs-nav-type-line .arco-tabs-tab{padding-top:10px;padding-bottom:10px;font-size:14px}.arco-tabs-nav-size-large.arco-tabs-nav-type-line .arco-tabs-nav-extra{font-size:14px;line-height:44px}.arco-tabs-nav-size-large.arco-tabs-nav-type-card .arco-tabs-tab,.arco-tabs-nav-size-large.arco-tabs-nav-type-card-gutter .arco-tabs-tab{padding-top:5px;padding-bottom:5px;font-size:14px}.arco-tabs-nav-size-large.arco-tabs-nav-type-card .arco-tabs-nav-extra,.arco-tabs-nav-size-large.arco-tabs-nav-type-card-gutter .arco-tabs-nav-extra{font-size:14px;line-height:36px}.arco-tabs-nav-size-large.arco-tabs-nav-type-card .arco-tabs-nav-add-btn,.arco-tabs-nav-size-large.arco-tabs-nav-type-card-gutter .arco-tabs-nav-add-btn{height:36px}.arco-tabs-nav-size-large.arco-tabs-nav-type-capsule .arco-tabs-tab{font-size:14px;line-height:30px}.arco-tabs-nav-size-large.arco-tabs-nav-type-capsule .arco-tabs-nav-extra{font-size:14px;line-height:36px}.arco-tabs-nav-size-large.arco-tabs-nav-type-rounded .arco-tabs-tab{padding-top:7px;padding-bottom:7px;font-size:14px}.arco-tabs-nav-size-large.arco-tabs-nav-type-rounded .arco-tabs-nav-extra{font-size:14px;line-height:36px}.arco-tabs-nav-vertical{float:left;height:100%}.arco-tabs-nav-vertical:before{position:absolute;top:0;right:0;bottom:0;left:initial;clear:both;width:1px;height:100%}.arco-tabs-nav-vertical .arco-tabs-nav-add-btn{height:auto;margin-top:8px;margin-left:0;padding:0 16px}.arco-tabs-nav-right{float:right}.arco-tabs-nav-vertical{flex-direction:column}.arco-tabs-nav-vertical .arco-tabs-nav-tab{flex-direction:column;height:100%}.arco-tabs-nav-vertical .arco-tabs-nav-ink{position:absolute;right:0;bottom:initial;left:initial;width:2px;transition:top .2s cubic-bezier(.34,.69,.1,1),height .2s cubic-bezier(.34,.69,.1,1)}.arco-tabs-nav-vertical .arco-tabs-nav-tab-list{height:auto}.arco-tabs-nav-vertical .arco-tabs-nav-tab-list-overflow-scroll{padding:6px 0}.arco-tabs-nav-vertical .arco-tabs-tab{display:block;margin:12px 0 0;white-space:nowrap}.arco-tabs-nav-vertical .arco-tabs-tab:first-of-type{margin-top:0}.arco-tabs-nav-right:before{right:unset;left:0}.arco-tabs-nav-right .arco-tabs-nav-ink{right:unset;left:0}.arco-tabs-nav-vertical{position:relative;box-sizing:border-box;height:100%}.arco-tabs-nav-vertical.arco-tabs-nav-type-line .arco-tabs-tab{padding:0 20px}.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab{position:relative;margin:0;border:1px solid var(--color-neutral-3);border-bottom-color:transparent}.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab:first-child{border-top-left-radius:var(--border-radius-small)}.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab-active,.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab-active:hover{border-right-color:var(--color-bg-2);border-bottom-color:transparent}.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab:last-child{border-bottom:1px solid var(--color-neutral-3);border-bottom-left-radius:var(--border-radius-small)}.arco-tabs-nav-vertical.arco-tabs-nav-type-card-gutter .arco-tabs-tab{position:relative;margin-left:0;border-radius:var(--border-radius-small) 0 0 var(--border-radius-small)}.arco-tabs-nav-vertical.arco-tabs-nav-type-card-gutter .arco-tabs-tab:not(:first-of-type){margin-top:4px}.arco-tabs-nav-vertical.arco-tabs-nav-type-card-gutter .arco-tabs-tab-active,.arco-tabs-nav-vertical.arco-tabs-nav-type-card-gutter .arco-tabs-tab-active:hover{border-right-color:var(--color-bg-2);border-bottom-color:var(--color-neutral-3)}.arco-tabs-vertical .arco-tabs-content{width:auto;height:100%;padding:0}.arco-tabs-right.arco-tabs-vertical .arco-tabs-content{padding-right:16px}.arco-tabs-left.arco-tabs-vertical .arco-tabs-content{padding-left:16px}.arco-tabs-vertical.arco-tabs-type-card>.arco-tabs-content,.arco-tabs-vertical.arco-tabs-type-card-gutter>.arco-tabs-content{border:1px solid var(--color-neutral-3);border-left:none}body[arco-theme=dark] .arco-tabs-nav-type-capsule .arco-tabs-tab-active,body[arco-theme=dark] .arco-tabs-nav-type-capsule .arco-tabs-tab:hover{background-color:var(--color-fill-3)}.arco-tag{display:inline-flex;align-items:center;box-sizing:border-box;height:24px;padding:0 8px;color:var(--color-text-1);font-weight:500;font-size:12px;line-height:22px;vertical-align:middle;border:1px solid transparent;border-radius:var(--border-radius-small);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-tag .arco-icon-hover.arco-tag-icon-hover:before{width:16px;height:16px}.arco-tag .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:var(--color-fill-3)}.arco-tag-checkable{cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-tag-checkable:hover{background-color:var(--color-fill-2)}.arco-tag-checked{background-color:var(--color-fill-2);border-color:transparent}.arco-tag-checkable.arco-tag-checked:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-tag-bordered,.arco-tag-checkable.arco-tag-checked.arco-tag-bordered:hover{border-color:var(--color-border-2)}.arco-tag-size-small{height:20px;font-size:12px;line-height:18px}.arco-tag-size-medium{height:24px;font-size:12px;line-height:22px}.arco-tag-size-large{height:32px;font-size:14px;line-height:30px}.arco-tag-hide{display:none}.arco-tag-loading{cursor:default;opacity:.8}.arco-tag-icon{margin-right:4px;color:var(--color-text-2)}.arco-tag-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-tag.arco-tag-checked.arco-tag-red{color:rgb(var(--red-6));background-color:rgb(var(--red-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-red .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--red-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-red.arco-tag:hover{background-color:rgb(var(--red-2));border-color:transparent}.arco-tag-checked.arco-tag-red.arco-tag-bordered,.arco-tag-checked.arco-tag-red.arco-tag-bordered:hover{border-color:rgb(var(--red-6))}.arco-tag.arco-tag-checked.arco-tag-red .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-red .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-red .arco-tag-loading-icon{color:rgb(var(--red-6))}.arco-tag.arco-tag-checked.arco-tag-orangered{color:rgb(var(--orangered-6));background-color:rgb(var(--orangered-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-orangered .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--orangered-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-orangered.arco-tag:hover{background-color:rgb(var(--orangered-2));border-color:transparent}.arco-tag-checked.arco-tag-orangered.arco-tag-bordered,.arco-tag-checked.arco-tag-orangered.arco-tag-bordered:hover{border-color:rgb(var(--orangered-6))}.arco-tag.arco-tag-checked.arco-tag-orangered .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-orangered .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-orangered .arco-tag-loading-icon{color:rgb(var(--orangered-6))}.arco-tag.arco-tag-checked.arco-tag-orange{color:rgb(var(--orange-6));background-color:rgb(var(--orange-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-orange .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--orange-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-orange.arco-tag:hover{background-color:rgb(var(--orange-2));border-color:transparent}.arco-tag-checked.arco-tag-orange.arco-tag-bordered,.arco-tag-checked.arco-tag-orange.arco-tag-bordered:hover{border-color:rgb(var(--orange-6))}.arco-tag.arco-tag-checked.arco-tag-orange .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-orange .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-orange .arco-tag-loading-icon{color:rgb(var(--orange-6))}.arco-tag.arco-tag-checked.arco-tag-gold{color:rgb(var(--gold-6));background-color:rgb(var(--gold-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-gold .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--gold-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-gold.arco-tag:hover{background-color:rgb(var(--gold-3));border-color:transparent}.arco-tag-checked.arco-tag-gold.arco-tag-bordered,.arco-tag-checked.arco-tag-gold.arco-tag-bordered:hover{border-color:rgb(var(--gold-6))}.arco-tag.arco-tag-checked.arco-tag-gold .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-gold .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-gold .arco-tag-loading-icon{color:rgb(var(--gold-6))}.arco-tag.arco-tag-checked.arco-tag-lime{color:rgb(var(--lime-6));background-color:rgb(var(--lime-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-lime .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--lime-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-lime.arco-tag:hover{background-color:rgb(var(--lime-2));border-color:transparent}.arco-tag-checked.arco-tag-lime.arco-tag-bordered,.arco-tag-checked.arco-tag-lime.arco-tag-bordered:hover{border-color:rgb(var(--lime-6))}.arco-tag.arco-tag-checked.arco-tag-lime .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-lime .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-lime .arco-tag-loading-icon{color:rgb(var(--lime-6))}.arco-tag.arco-tag-checked.arco-tag-green{color:rgb(var(--green-6));background-color:rgb(var(--green-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-green .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--green-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-green.arco-tag:hover{background-color:rgb(var(--green-2));border-color:transparent}.arco-tag-checked.arco-tag-green.arco-tag-bordered,.arco-tag-checked.arco-tag-green.arco-tag-bordered:hover{border-color:rgb(var(--green-6))}.arco-tag.arco-tag-checked.arco-tag-green .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-green .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-green .arco-tag-loading-icon{color:rgb(var(--green-6))}.arco-tag.arco-tag-checked.arco-tag-cyan{color:rgb(var(--cyan-6));background-color:rgb(var(--cyan-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-cyan .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--cyan-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-cyan.arco-tag:hover{background-color:rgb(var(--cyan-2));border-color:transparent}.arco-tag-checked.arco-tag-cyan.arco-tag-bordered,.arco-tag-checked.arco-tag-cyan.arco-tag-bordered:hover{border-color:rgb(var(--cyan-6))}.arco-tag.arco-tag-checked.arco-tag-cyan .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-cyan .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-cyan .arco-tag-loading-icon{color:rgb(var(--cyan-6))}.arco-tag.arco-tag-checked.arco-tag-blue{color:rgb(var(--blue-6));background-color:rgb(var(--blue-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-blue .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--blue-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-blue.arco-tag:hover{background-color:rgb(var(--blue-2));border-color:transparent}.arco-tag-checked.arco-tag-blue.arco-tag-bordered,.arco-tag-checked.arco-tag-blue.arco-tag-bordered:hover{border-color:rgb(var(--blue-6))}.arco-tag.arco-tag-checked.arco-tag-blue .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-blue .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-blue .arco-tag-loading-icon{color:rgb(var(--blue-6))}.arco-tag.arco-tag-checked.arco-tag-arcoblue{color:rgb(var(--arcoblue-6));background-color:rgb(var(--arcoblue-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-arcoblue .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--arcoblue-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-arcoblue.arco-tag:hover{background-color:rgb(var(--arcoblue-2));border-color:transparent}.arco-tag-checked.arco-tag-arcoblue.arco-tag-bordered,.arco-tag-checked.arco-tag-arcoblue.arco-tag-bordered:hover{border-color:rgb(var(--arcoblue-6))}.arco-tag.arco-tag-checked.arco-tag-arcoblue .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-arcoblue .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-arcoblue .arco-tag-loading-icon{color:rgb(var(--arcoblue-6))}.arco-tag.arco-tag-checked.arco-tag-purple{color:rgb(var(--purple-6));background-color:rgb(var(--purple-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-purple .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--purple-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-purple.arco-tag:hover{background-color:rgb(var(--purple-2));border-color:transparent}.arco-tag-checked.arco-tag-purple.arco-tag-bordered,.arco-tag-checked.arco-tag-purple.arco-tag-bordered:hover{border-color:rgb(var(--purple-6))}.arco-tag.arco-tag-checked.arco-tag-purple .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-purple .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-purple .arco-tag-loading-icon{color:rgb(var(--purple-6))}.arco-tag.arco-tag-checked.arco-tag-pinkpurple{color:rgb(var(--pinkpurple-6));background-color:rgb(var(--pinkpurple-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-pinkpurple .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--pinkpurple-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-pinkpurple.arco-tag:hover{background-color:rgb(var(--pinkpurple-2));border-color:transparent}.arco-tag-checked.arco-tag-pinkpurple.arco-tag-bordered,.arco-tag-checked.arco-tag-pinkpurple.arco-tag-bordered:hover{border-color:rgb(var(--pinkpurple-6))}.arco-tag.arco-tag-checked.arco-tag-pinkpurple .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-pinkpurple .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-pinkpurple .arco-tag-loading-icon{color:rgb(var(--pinkpurple-6))}.arco-tag.arco-tag-checked.arco-tag-magenta{color:rgb(var(--magenta-6));background-color:rgb(var(--magenta-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-magenta .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--magenta-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-magenta.arco-tag:hover{background-color:rgb(var(--magenta-2));border-color:transparent}.arco-tag-checked.arco-tag-magenta.arco-tag-bordered,.arco-tag-checked.arco-tag-magenta.arco-tag-bordered:hover{border-color:rgb(var(--magenta-6))}.arco-tag.arco-tag-checked.arco-tag-magenta .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-magenta .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-magenta .arco-tag-loading-icon{color:rgb(var(--magenta-6))}.arco-tag.arco-tag-checked.arco-tag-gray{color:rgb(var(--gray-6));background-color:rgb(var(--gray-2));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-gray .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--gray-3))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-gray.arco-tag:hover{background-color:rgb(var(--gray-3));border-color:transparent}.arco-tag-checked.arco-tag-gray.arco-tag-bordered,.arco-tag-checked.arco-tag-gray.arco-tag-bordered:hover{border-color:rgb(var(--gray-6))}.arco-tag.arco-tag-checked.arco-tag-gray .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-gray .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-gray .arco-tag-loading-icon{color:rgb(var(--gray-6))}.arco-tag.arco-tag-custom-color{color:var(--color-white)}.arco-tag.arco-tag-custom-color .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:#fff3}.arco-tag .arco-tag-close-btn{margin-left:4px;font-size:12px}.arco-tag .arco-tag-close-btn>svg{position:relative}.arco-tag .arco-tag-loading-icon{margin-left:4px;font-size:12px}body[arco-theme=dark] .arco-tag-checked{color:#ffffffe6}body[arco-theme=dark] .arco-tag-checked.arco-tag-red{background-color:rgba(var(--red-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-red .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--red-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-red:hover{background-color:rgba(var(--red-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-orangered{background-color:rgba(var(--orangered-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-orangered .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--orangered-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-orangered:hover{background-color:rgba(var(--orangered-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-orange{background-color:rgba(var(--orange-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-orange .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--orange-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-orange:hover{background-color:rgba(var(--orange-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-gold{background-color:rgba(var(--gold-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-gold .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--gold-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-gold:hover{background-color:rgba(var(--gold-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-lime{background-color:rgba(var(--lime-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-lime .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--lime-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-lime:hover{background-color:rgba(var(--lime-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-green{background-color:rgba(var(--green-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-green .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--green-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-green:hover{background-color:rgba(var(--green-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-cyan{background-color:rgba(var(--cyan-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-cyan .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--cyan-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-cyan:hover{background-color:rgba(var(--cyan-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-blue{background-color:rgba(var(--blue-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-blue .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--blue-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-blue:hover{background-color:rgba(var(--blue-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-arcoblue{background-color:rgba(var(--arcoblue-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-arcoblue .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--arcoblue-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-arcoblue:hover{background-color:rgba(var(--arcoblue-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-purple{background-color:rgba(var(--purple-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-purple .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--purple-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-purple:hover{background-color:rgba(var(--purple-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-pinkpurple{background-color:rgba(var(--pinkpurple-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-pinkpurple .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--pinkpurple-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-pinkpurple:hover{background-color:rgba(var(--pinkpurple-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-magenta{background-color:rgba(var(--magenta-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-magenta .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--magenta-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-magenta:hover{background-color:rgba(var(--magenta-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-gray{background-color:rgba(var(--gray-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-gray .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--gray-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-gray:hover{background-color:rgba(var(--gray-6),.35)}.arco-textarea-wrapper{display:inline-flex;box-sizing:border-box;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1);position:relative;display:inline-block;width:100%;padding-right:0;padding-left:0;overflow:hidden}.arco-textarea-wrapper:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-textarea-wrapper:focus-within,.arco-textarea-wrapper.arco-textarea-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-textarea-wrapper.arco-textarea-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-textarea-wrapper.arco-textarea-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-textarea-wrapper.arco-textarea-disabled .arco-textarea-prefix,.arco-textarea-wrapper.arco-textarea-disabled .arco-textarea-suffix{color:inherit}.arco-textarea-wrapper.arco-textarea-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-textarea-wrapper.arco-textarea-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-textarea-wrapper.arco-textarea-error:focus-within,.arco-textarea-wrapper.arco-textarea-error.arco-textarea-wrapper-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-textarea-wrapper .arco-textarea-prefix,.arco-textarea-wrapper .arco-textarea-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-textarea-wrapper .arco-textarea-prefix>svg,.arco-textarea-wrapper .arco-textarea-suffix>svg{font-size:14px}.arco-textarea-wrapper .arco-textarea-prefix{padding-right:12px;color:var(--color-text-2)}.arco-textarea-wrapper .arco-textarea-suffix{padding-left:12px;color:var(--color-text-2)}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon{display:inline-flex}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-textarea-wrapper .arco-textarea-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-textarea-wrapper .arco-textarea-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-textarea-wrapper:hover .arco-textarea-clear-btn{visibility:visible}.arco-textarea-wrapper:not(.arco-textarea-focus) .arco-textarea-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-textarea-wrapper .arco-textarea-word-limit{position:absolute;right:10px;bottom:6px;color:var(--color-text-3);font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-textarea-wrapper.arco-textarea-scroll .arco-textarea-word-limit{right:25px}.arco-textarea-wrapper .arco-textarea-clear-btn{position:absolute;top:50%;right:10px;transform:translateY(-50%)}.arco-textarea-wrapper.arco-textarea-scroll .arco-textarea-clear-btn{right:25px}.arco-textarea-wrapper:hover .arco-textarea-clear-btn{display:block}.arco-textarea-wrapper .arco-textarea-mirror{position:absolute;visibility:hidden}.arco-textarea{width:100%;color:inherit;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:block;box-sizing:border-box;height:100%;min-height:32px;padding:4px 12px;font-size:14px;line-height:1.5715;vertical-align:top;resize:vertical}.arco-textarea::-moz-placeholder{color:var(--color-text-3)}.arco-textarea::placeholder{color:var(--color-text-3)}.arco-textarea[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-textarea[disabled]::placeholder{color:var(--color-text-4)}.arco-textarea[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-timepicker{position:relative;display:flex;box-sizing:border-box;padding:0}.arco-timepicker-container{overflow:hidden;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px #0000001a}.arco-timepicker-column{box-sizing:border-box;width:64px;height:224px;overflow:hidden}.arco-timepicker-column:not(:last-child){border-right:1px solid var(--color-neutral-3)}.arco-timepicker-column:hover{overflow-y:auto}.arco-timepicker-column ul{box-sizing:border-box;margin:0;padding:0;list-style:none}.arco-timepicker-column ul:after{display:block;width:100%;height:192px;content:""}.arco-timepicker-cell{padding:4px 0;color:var(--color-text-1);font-weight:500;cursor:pointer}.arco-timepicker-cell-inner{height:24px;padding-left:24px;font-size:14px;line-height:24px}.arco-timepicker-cell:not(.arco-timepicker-cell-selected):not(.arco-timepicker-cell-disabled):hover .arco-timepicker-cell-inner{background-color:var(--color-fill-2)}.arco-timepicker-cell-selected .arco-timepicker-cell-inner{font-weight:500;background-color:var(--color-fill-2)}.arco-timepicker-cell-disabled{color:var(--color-text-4);cursor:not-allowed}.arco-timepicker-footer-extra-wrapper{padding:8px;color:var(--color-text-1);font-size:12px;border-top:1px solid var(--color-neutral-3)}.arco-timepicker-footer-btn-wrapper{display:flex;justify-content:space-between;padding:8px;border-top:1px solid var(--color-neutral-3)}.arco-timepicker-footer-btn-wrapper :only-child{margin-left:auto}.arco-timeline{display:flex;flex-direction:column}.arco-timeline-item{position:relative;min-height:78px;padding-left:6px;color:var(--color-text-1);font-size:14px}.arco-timeline-item-label{color:var(--color-text-3);font-size:12px;line-height:1.667}.arco-timeline-item-content{margin-bottom:4px;color:var(--color-text-1);font-size:14px;line-height:1.5715}.arco-timeline-item-content-wrapper{position:relative;margin-left:16px}.arco-timeline-item.arco-timeline-item-last>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot-line{display:none}.arco-timeline-item-dot-wrapper{position:absolute;left:0;height:100%;text-align:center}.arco-timeline-item-dot-wrapper .arco-timeline-item-dot-content{position:relative;width:6px;height:22.001px;line-height:22.001px}.arco-timeline-item-dot{position:relative;top:50%;box-sizing:border-box;width:6px;height:6px;margin-top:-50%;color:rgb(var(--primary-6));border-radius:var(--border-radius-circle)}.arco-timeline-item-dot-solid{background-color:rgb(var(--primary-6))}.arco-timeline-item-dot-hollow{background-color:var(--color-bg-2);border:2px solid rgb(var(--primary-6))}.arco-timeline-item-dot-custom{position:absolute;top:50%;left:50%;display:inline-flex;box-sizing:border-box;color:rgb(var(--primary-6));background-color:var(--color-bg-2);transform:translate(-50%) translateY(-50%);transform-origin:center}.arco-timeline-item-dot-custom svg{color:inherit}.arco-timeline-item-dot-line{position:absolute;top:18.0005px;bottom:-4.0005px;left:50%;box-sizing:border-box;width:1px;border-color:var(--color-neutral-3);border-left-width:1px;transform:translate(-50%)}.arco-timeline-is-reverse{flex-direction:column-reverse}.arco-timeline-alternate{overflow:hidden}.arco-timeline-alternate .arco-timeline-item-vertical-left{padding-left:0}.arco-timeline-alternate .arco-timeline-item-vertical-left>.arco-timeline-item-dot-wrapper{left:50%}.arco-timeline-alternate .arco-timeline-item-vertical-left>.arco-timeline-item-content-wrapper{left:50%;width:50%;margin-left:22px;padding-right:22px}.arco-timeline-alternate .arco-timeline-item-vertical-right{padding-right:0}.arco-timeline-alternate .arco-timeline-item-vertical-right>.arco-timeline-item-dot-wrapper{left:50%}.arco-timeline-alternate .arco-timeline-item-vertical-right>.arco-timeline-item-content-wrapper{left:0;width:50%;margin-right:0;margin-left:-16px;padding-right:16px;text-align:right}.arco-timeline-right .arco-timeline-item-vertical-right{padding-right:6px}.arco-timeline-right .arco-timeline-item-vertical-right>.arco-timeline-item-dot-wrapper{right:0;left:unset}.arco-timeline-right .arco-timeline-item-vertical-right>.arco-timeline-item-content-wrapper{margin-right:16px;margin-left:0;text-align:right}.arco-timeline-item-label-relative>.arco-timeline-item-label{position:absolute;top:0;box-sizing:border-box;max-width:100px}.arco-timeline-item-vertical-left.arco-timeline-item-label-relative{margin-left:100px}.arco-timeline-item-vertical-left.arco-timeline-item-label-relative>.arco-timeline-item-label{left:0;padding-right:16px;text-align:right;transform:translate(-100%)}.arco-timeline-item-vertical-right.arco-timeline-item-label-relative{margin-right:100px}.arco-timeline-item-vertical-right.arco-timeline-item-label-relative>.arco-timeline-item-label{right:0;padding-left:16px;text-align:left;transform:translate(100%)}.arco-timeline-item-horizontal-top.arco-timeline-item-label-relative{margin-top:50px}.arco-timeline-item-horizontal-top.arco-timeline-item-label-relative>.arco-timeline-item-label{padding-bottom:16px;transform:translateY(-100%)}.arco-timeline-item-horizontal-top.arco-timeline-item-label-relative>.arco-timeline-item-content{margin-bottom:0}.arco-timeline-item-horizontal-bottom.arco-timeline-item-label-relative{margin-bottom:50px}.arco-timeline-item-horizontal-bottom.arco-timeline-item-label-relative>.arco-timeline-item-content{margin-bottom:0}.arco-timeline-item-horizontal-bottom.arco-timeline-item-label-relative>.arco-timeline-item-label{top:unset;bottom:0;padding-top:16px;text-align:left;transform:translateY(100%)}.arco-timeline-alternate .arco-timeline-item-vertical-left.arco-timeline-item-label-relative{margin-left:0}.arco-timeline-alternate .arco-timeline-item-vertical-left.arco-timeline-item-label-relative>.arco-timeline-item-label{left:0;width:50%;max-width:unset;transform:none}.arco-timeline-alternate .arco-timeline-item-vertical-right.arco-timeline-item-label-relative{margin-right:0}.arco-timeline-alternate .arco-timeline-item-vertical-right.arco-timeline-item-label-relative>.arco-timeline-item-label{right:0;width:50%;max-width:unset;transform:none}.arco-timeline-alternate .arco-timeline-item-horizontal-top.arco-timeline-item-label-relative{margin-top:0}.arco-timeline-alternate .arco-timeline-item-horizontal-bottom.arco-timeline-item-label-relative{margin-bottom:0}.arco-timeline-direction-horizontal{display:flex;flex-direction:row}.arco-timeline-direction-horizontal.arco-timeline-is-reverse{flex-direction:row-reverse}.arco-timeline-item-dot-line-is-horizontal{top:50%;right:4px;left:12px;width:unset;height:1px;border-top-width:1px;border-left:none;transform:translateY(-50%)}.arco-timeline-item-horizontal-bottom,.arco-timeline-item-horizontal-top{flex:1;min-height:unset;padding-right:0;padding-left:0}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-dot-wrapper,.arco-timeline-item-horizontal-top>.arco-timeline-item-dot-wrapper{top:0;width:100%;height:auto}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot,.arco-timeline-item-horizontal-top>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot{top:unset;margin-top:unset}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot-content,.arco-timeline-item-horizontal-top>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot-content{height:6px;line-height:6px}.arco-timeline-item-horizontal-top{padding-top:6px}.arco-timeline-item-horizontal-top>.arco-timeline-item-dot-wrapper{top:0;bottom:unset}.arco-timeline-item-horizontal-top>.arco-timeline-item-content-wrapper{margin-top:16px;margin-left:0}.arco-timeline-item-horizontal-bottom{padding-bottom:6px}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-dot-wrapper{top:unset;bottom:0}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-content-wrapper{margin-bottom:16px;margin-left:0}.arco-timeline-alternate.arco-timeline-direction-horizontal{align-items:center;min-height:200px;overflow:visible}.arco-timeline-alternate.arco-timeline-direction-horizontal .arco-timeline-item-horizontal-bottom{margin-top:6px;transform:translateY(-50%)}.arco-timeline-alternate.arco-timeline-direction-horizontal .arco-timeline-item-horizontal-top{margin-top:-6px;transform:translateY(50%)}.arco-tooltip-content{max-width:350px;padding:8px 12px;color:#fff;font-size:14px;line-height:1.5715;text-align:left;word-wrap:break-word;background-color:var(--color-tooltip-bg);border-radius:var(--border-radius-small)}.arco-tooltip-mini{padding:4px 12px;font-size:14px}.arco-tooltip-popup-arrow{background-color:var(--color-tooltip-bg)}.arco-transfer{display:flex;align-items:center}.arco-transfer-view{display:flex;flex-direction:column;box-sizing:border-box;width:200px;height:224px;border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-small)}.arco-transfer-view-search{padding:8px 12px 4px}.arco-transfer-view-list{flex:1}.arco-transfer-view-custom-list{flex:1;overflow:auto}.arco-transfer-view-header{display:flex;align-items:center;padding:0 10px}.arco-transfer-view-header>*:first-child{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-transfer-view-header>*:first-child:not(:last-child){margin-right:8px}.arco-transfer-view-header{height:40px;color:var(--color-text-1);font-weight:500;font-size:14px;line-height:40px;background-color:var(--color-fill-1)}.arco-transfer-view-header-title{display:flex;align-items:center}.arco-transfer-view-header-title .arco-checkbox{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:inherit}.arco-transfer-view-header-title .arco-checkbox-text{color:inherit}.arco-transfer-view-header-title .arco-checkbox-label,.arco-transfer-view-header-title-simple{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-transfer-view-header-clear-btn{color:var(--color-text-2);font-size:12px;cursor:pointer}.arco-transfer-view-header-clear-btn:hover:before{background-color:var(--color-fill-3)}.arco-transfer-view-header-count{margin-right:2px;color:var(--color-text-3);font-weight:400;font-size:12px}.arco-transfer-view-body{flex:1 1 auto;overflow:hidden}.arco-transfer-view-body .arco-transfer-view-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.arco-transfer-view .arco-scrollbar{height:100%}.arco-transfer-view .arco-scrollbar-container{height:100%;overflow:auto}.arco-transfer-view .arco-list{border-radius:0}.arco-transfer-view .arco-list-footer{position:relative;display:flex;align-items:center;box-sizing:border-box;height:40px;padding:0 8px}.arco-transfer-view .arco-list .arco-pagination{position:absolute;top:50%;right:8px;margin:0;transform:translateY(-50%)}.arco-transfer-view .arco-list .arco-pagination-jumper-input{width:24px}.arco-transfer-view .arco-list .arco-pagination-jumper-separator{padding:0 8px}.arco-transfer-view .arco-checkbox{padding-left:6px}.arco-transfer-view .arco-checkbox-wrapper{display:inline}.arco-transfer-view .arco-checkbox .arco-icon-hover:hover:before{background-color:var(--color-fill-3)}.arco-transfer-list-item{position:relative;display:flex;align-items:center;height:36px;padding:0 10px;color:var(--color-text-1);line-height:36px;list-style:none;background-color:transparent;cursor:default}.arco-transfer-list-item-content{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-transfer-list-item-checkbox .arco-checkbox-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-transfer-list-item-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-transfer-list-item:not(.arco-transfer-list-item-disabled):hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-transfer-list-item .arco-checkbox{width:100%}.arco-transfer-list-item .arco-checkbox-text{color:inherit}.arco-transfer-list-item-remove-btn{margin-left:auto;color:var(--color-text-2);font-size:12px;cursor:pointer}.arco-transfer-list-item-remove-btn:hover:before{background-color:var(--color-fill-3)}.arco-transfer-list-item-draggable:before{position:absolute;right:0;left:0;display:block;height:2px;border-radius:1px;content:""}.arco-transfer-list-item-gap-bottom:before{bottom:-2px;background-color:rgb(var(--primary-6))}.arco-transfer-list-item-gap-top:before{top:-2px;background-color:rgb(var(--primary-6))}.arco-transfer-list-item-dragging{color:var(--color-text-4)!important;background-color:var(--color-fill-1)!important}.arco-transfer-list-item-dragged{animation:arco-transfer-drag-item-blink .4s;animation-timing-function:cubic-bezier(0,0,1,1)}.arco-transfer-operations{padding:0 20px}.arco-transfer-operations .arco-btn{display:block}.arco-transfer-operations .arco-btn:last-child{margin-top:12px}.arco-transfer-operations-words .arco-btn{width:100%;padding:0 12px;text-align:left}.arco-transfer-simple .arco-transfer-view-source{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.arco-transfer-simple .arco-transfer-view-target{border-top-left-radius:0;border-bottom-left-radius:0}.arco-transfer-disabled .arco-transfer-view-header{color:var(--color-text-4)}@keyframes arco-transfer-drag-item-blink{0%{background-color:var(--color-primary-light-1)}to{background-color:transparent}}.arco-tree-select-popup{box-sizing:border-box;padding:4px 0;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-tree-select-popup .arco-tree-select-tree-wrapper{height:100%;max-height:200px;padding-right:4px;padding-left:10px;overflow:auto}.arco-tree-select-popup .arco-tree-node{padding-left:0}.arco-tree-select-highlight{font-weight:500}.arco-tree-select-has-header{padding-top:0}.arco-tree-select-header{border-bottom:1px solid var(--color-fill-3)}.arco-tree-select-has-footer{padding-bottom:0}.arco-tree-select-footer{border-top:1px solid var(--color-fill-3)}.arco-icon-hover.arco-tree-node-icon-hover:before{width:16px;height:16px}.arco-tree-node-switcher{position:relative;display:flex;flex-shrink:0;align-items:center;width:12px;height:32px;margin-right:10px;color:var(--color-text-2);font-size:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tree-node-switcher-icon{position:relative;margin:0 auto}.arco-tree-node-switcher-icon svg{position:relative;transform:rotate(-90deg);transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-tree-node-expanded .arco-tree-node-switcher-icon svg,.arco-tree-node-is-leaf .arco-tree-node-switcher-icon svg{transform:rotate(0)}.arco-tree-node-drag-icon{margin-left:120px;color:rgb(var(--primary-6));opacity:0}.arco-tree-node-custom-icon{margin-right:10px;font-size:inherit;line-height:1;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tree-node .arco-icon-loading{color:rgb(var(--primary-6))}.arco-tree-node-minus-icon,.arco-tree-node-plus-icon{position:relative;display:block;width:14px;height:14px;background:var(--color-fill-2);border-radius:var(--border-radius-small);cursor:pointer}.arco-tree-node-minus-icon:after,.arco-tree-node-plus-icon:after{position:absolute;top:50%;left:50%;display:block;width:6px;height:2px;margin-top:-1px;margin-left:-3px;color:var(--color-text-2);background-color:var(--color-text-2);border-radius:.5px;content:""}.arco-tree-node-plus-icon:before{position:absolute;top:50%;left:50%;display:block;width:2px;height:6px;margin-top:-3px;margin-left:-1px;color:var(--color-text-2);background-color:var(--color-text-2);border-radius:.5px;content:""}.arco-tree{color:var(--color-text-1)}.arco-tree .arco-checkbox{margin-right:10px;padding-left:0;line-height:32px}.arco-tree-node{position:relative;display:flex;flex-wrap:nowrap;align-items:center;padding-left:2px;color:var(--color-text-1);line-height:1.5715;cursor:pointer}.arco-tree-node-selected .arco-tree-node-title,.arco-tree-node-selected .arco-tree-node-title:hover{color:rgb(var(--primary-6));transition:color .2s cubic-bezier(0,0,1,1)}.arco-tree-node-disabled-selectable .arco-tree-node-title,.arco-tree-node-disabled .arco-tree-node-title,.arco-tree-node-disabled-selectable .arco-tree-node-title:hover,.arco-tree-node-disabled .arco-tree-node-title:hover{color:var(--color-text-4);background:none;cursor:not-allowed}.arco-tree-node-disabled.arco-tree-node-selected .arco-tree-node-title{color:var(--color-primary-light-3)}.arco-tree-node-title-block{flex:1;box-sizing:content-box}.arco-tree-node-title-block .arco-tree-node-drag-icon{position:absolute;right:12px}.arco-tree-node-indent{position:relative;flex-shrink:0;align-self:stretch}.arco-tree-node-indent-block{position:relative;display:inline-block;width:12px;height:100%;margin-right:10px;vertical-align:top}.arco-tree-node-draggable{margin-top:2px}.arco-tree-node-title{position:relative;display:flex;align-items:center;margin-left:-4px;padding:5px 4px;font-size:14px;border-radius:var(--border-radius-small)}.arco-tree-node-title:hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-tree-node-title:hover .arco-tree-node-drag-icon{opacity:1}.arco-tree-node-title-draggable:before{position:absolute;top:-2px;right:0;left:0;display:block;height:2px;border-radius:1px;content:""}.arco-tree-node-title-gap-bottom:before{top:unset;bottom:-2px;background-color:rgb(var(--primary-6))}.arco-tree-node-title-gap-top:before{background-color:rgb(var(--primary-6))}.arco-tree-node-title-highlight{color:var(--color-text-1);background-color:var(--color-primary-light-1)}.arco-tree-node-title-dragging,.arco-tree-node-title-dragging:hover{color:var(--color-text-4);background-color:var(--color-fill-1)}.arco-tree-show-line{padding-left:1px}.arco-tree-show-line .arco-tree-node-switcher{width:14px;text-align:center}.arco-tree-show-line .arco-tree-node-switcher .arco-tree-node-icon-hover{width:100%}.arco-tree-show-line .arco-tree-node-indent-block{width:14px}.arco-tree-show-line .arco-tree-node-indent-block:before{position:absolute;left:50%;box-sizing:border-box;width:1px;border-left:1px solid var(--color-neutral-3);transform:translate(-50%);content:"";top:-5px;bottom:-5px}.arco-tree-show-line .arco-tree-node-is-leaf:not(.arco-tree-node-is-tail) .arco-tree-node-indent:after{position:absolute;right:-7px;box-sizing:border-box;width:1px;border-left:1px solid var(--color-neutral-3);transform:translate(50%);content:"";top:27px;bottom:-5px}.arco-tree-show-line .arco-tree-node-indent-block-lineless:before{display:none}.arco-tree-size-mini .arco-tree-node-switcher{height:24px}.arco-tree-size-mini .arco-checkbox{line-height:24px}.arco-tree-size-mini .arco-tree-node-title{padding-top:2px;padding-bottom:2px;font-size:12px;line-height:1.667}.arco-tree-size-mini .arco-tree-node-indent-block:after{top:23px;bottom:-1px}.arco-tree-size-mini .arco-tree-node-is-leaf:not(.arco-tree-node-is-tail) .arco-tree-node-indent:before{top:-1px;bottom:-1px}.arco-tree-size-small .arco-tree-node-switcher{height:28px}.arco-tree-size-small .arco-checkbox{line-height:28px}.arco-tree-size-small .arco-tree-node-title{padding-top:3px;padding-bottom:3px;font-size:14px}.arco-tree-size-small .arco-tree-node-indent-block:after{top:25px;bottom:-3px}.arco-tree-size-small .arco-tree-node-is-leaf:not(.arco-tree-node-is-tail) .arco-tree-node-indent:before{top:-3px;bottom:-3px}.arco-tree-size-large .arco-tree-node-switcher{height:36px}.arco-tree-size-large .arco-checkbox{line-height:36px}.arco-tree-size-large .arco-tree-node-title{padding-top:7px;padding-bottom:7px;font-size:14px}.arco-tree-size-large .arco-tree-node-indent-block:after{top:29px;bottom:-7px}.arco-tree-size-large .arco-tree-node-is-leaf:not(.arco-tree-node-is-tail) .arco-tree-node-indent:before{top:-7px;bottom:-7px}.arco-tree-node-list{overflow:hidden;transition:height .2s cubic-bezier(.34,.69,.1,1)}.arco-typography{color:var(--color-text-1);line-height:1.5715;white-space:normal;overflow-wrap:anywhere}h1.arco-typography,h2.arco-typography,h3.arco-typography,h4.arco-typography,h5.arco-typography,h6.arco-typography{margin-top:1em;margin-bottom:.5em;font-weight:500}h1.arco-typography{font-size:36px;line-height:1.23}h2.arco-typography{font-size:32px;line-height:1.25}h3.arco-typography{font-size:28px;line-height:1.29}h4.arco-typography{font-size:24px;line-height:1.33}h5.arco-typography{font-size:20px;line-height:1.4}h6.arco-typography{font-size:16px;line-height:1.5}div.arco-typography,p.arco-typography{margin-top:0;margin-bottom:1em}.arco-typography-primary{color:rgb(var(--primary-6))}.arco-typography-secondary{color:var(--color-text-2)}.arco-typography-success{color:rgb(var(--success-6))}.arco-typography-warning{color:rgb(var(--warning-6))}.arco-typography-danger{color:rgb(var(--danger-6))}.arco-typography-disabled{color:var(--color-text-4);cursor:not-allowed}.arco-typography mark{background-color:rgb(var(--yellow-4))}.arco-typography u{text-decoration:underline}.arco-typography del{text-decoration:line-through}.arco-typography b{font-weight:500}.arco-typography code{margin:0 2px;padding:2px 8px;color:var(--color-text-2);font-size:85%;background-color:var(--color-neutral-2);border:1px solid var(--color-neutral-3);border-radius:2px}.arco-typography blockquote{margin:0 0 1em;padding-left:8px;background-color:var(--color-bg-2);border-left:2px solid var(--color-neutral-6)}.arco-typography ol,.arco-typography ul{margin:0;padding:0}.arco-typography ul li,.arco-typography ol li{margin-left:20px}.arco-typography ul{list-style:circle}.arco-typography-spacing-close{line-height:1.3}.arco-typography-operation-copy,.arco-typography-operation-copied{margin-left:2px;padding:2px}.arco-typography-operation-copy{color:var(--color-text-2);background-color:transparent;border-radius:2px;cursor:pointer;transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-typography-operation-copy:hover{color:var(--color-text-2);background-color:var(--color-fill-2)}.arco-typography-operation-copied{color:rgb(var(--success-6))}.arco-typography-operation-edit{margin-left:2px;padding:2px;color:var(--color-text-2);background-color:transparent;border-radius:2px;cursor:pointer;transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-typography-operation-edit:hover{color:var(--color-text-2);background-color:var(--color-fill-2)}.arco-typography-operation-expand{margin:0 4px;color:rgb(var(--primary-6));cursor:pointer}.arco-typography-operation-expand:hover{color:rgb(var(--primary-5))}.arco-typography-edit-content{position:relative;left:-13px;margin-top:-5px;margin-right:-13px;margin-bottom:calc(1em - 5px)}.arco-typography-css-operation{margin-top:-1em;margin-bottom:1em;text-align:right}.arco-upload{display:inline-block;max-width:100%;cursor:pointer}.arco-upload.arco-upload-draggable{width:100%}.arco-upload-tip{margin-top:4px;overflow:hidden;color:var(--color-text-3);font-size:12px;line-height:1.5;white-space:nowrap;text-overflow:ellipsis}.arco-upload-picture-card{display:flex;flex-direction:column;justify-content:center;min-width:80px;height:80px;margin-bottom:0;color:var(--color-text-2);text-align:center;background:var(--color-fill-2);border:1px dashed var(--color-neutral-3);border-radius:var(--border-radius-small);transition:all .1s cubic-bezier(0,0,1,1)}.arco-upload-picture-card:hover{color:var(--color-text-2);background-color:var(--color-fill-3);border-color:var(--color-neutral-4)}.arco-upload-drag{width:100%;padding:50px 0;color:var(--color-text-1);text-align:center;background-color:var(--color-fill-1);border:1px dashed var(--color-neutral-3);border-radius:var(--border-radius-small);transition:all .2s ease}.arco-upload-drag .arco-icon-plus{margin-bottom:24px;color:var(--color-text-2);font-size:14px}.arco-upload-drag:hover{background-color:var(--color-fill-3);border-color:var(--color-neutral-4)}.arco-upload-drag:hover .arco-upload-drag-text{color:var(--color-text-1)}.arco-upload-drag:hover .arco-icon-plus{color:var(--color-text-2)}.arco-upload-drag-active{color:var(--color-text-1);background-color:var(--color-primary-light-1);border-color:rgb(var(--primary-6))}.arco-upload-drag-active .arco-upload-drag-text{color:var(--color-text-1)}.arco-upload-drag-active .arco-icon-plus{color:rgb(var(--primary-6))}.arco-upload-drag .arco-upload-tip{margin-top:0}.arco-upload-drag-text{color:var(--color-text-1);font-size:14px;line-height:1.5}.arco-upload-wrapper{width:100%}.arco-upload-wrapper.arco-upload-wrapper-type-picture-card{display:flex;justify-content:flex-start}.arco-upload-drag{width:100%}.arco-upload-hide{display:none}.arco-upload-disabled .arco-upload-picture-card,.arco-upload-disabled .arco-upload-picture-card:hover{color:var(--color-text-4);background-color:var(--color-fill-1);border-color:var(--color-neutral-4);cursor:not-allowed}.arco-upload-disabled .arco-upload-drag,.arco-upload-disabled .arco-upload-drag:hover{background-color:var(--color-fill-1);border-color:var(--color-text-4);cursor:not-allowed}.arco-upload-disabled .arco-upload-drag .arco-icon-plus,.arco-upload-disabled .arco-upload-drag:hover .arco-icon-plus,.arco-upload-disabled .arco-upload-drag .arco-upload-drag-text,.arco-upload-disabled .arco-upload-drag:hover .arco-upload-drag-text,.arco-upload-disabled .arco-upload-tip{color:var(--color-text-4)}.arco-upload-icon{cursor:pointer}.arco-upload-icon-error{margin-left:4px;color:rgb(var(--danger-6))}.arco-upload-icon-success{color:rgb(var(--success-6));font-size:14px;line-height:14px}.arco-upload-icon-remove{position:relative;font-size:14px}.arco-upload-icon-start,.arco-upload-icon-cancel{position:absolute;top:50%;left:50%;color:var(--color-white);font-size:12px;transform:translate(-50%) translateY(-50%)}.arco-upload-icon-upload{color:rgb(var(--primary-6));font-size:14px;cursor:pointer;transition:all .2s ease}.arco-upload-icon-upload:active,.arco-upload-icon-upload:hover{color:rgb(var(--primary-7))}.arco-upload-list{margin:0;padding:0;list-style:none}.arco-upload-list.arco-upload-list-type-text,.arco-upload-list.arco-upload-list-type-picture{width:100%}.arco-upload-list.arco-upload-list-type-text .arco-upload-list-item:first-of-type,.arco-upload-list.arco-upload-list-type-picture .arco-upload-list-item:first-of-type{margin-top:24px}.arco-upload-list-item-done .arco-upload-list-item-file-icon{color:rgb(var(--primary-6))}.arco-upload-list-item{position:relative;display:flex;align-items:center;box-sizing:border-box;margin-top:12px}.arco-upload-list-item-content{display:flex;flex:1;flex-wrap:nowrap;align-items:center;box-sizing:border-box;width:100%;padding:8px 10px 8px 12px;overflow:hidden;font-size:14px;background-color:var(--color-fill-1);border-radius:var(--border-radius-small);transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-upload-list-item-file-icon{margin-right:12px;color:rgb(var(--primary-6));font-size:16px;line-height:16px}.arco-upload-list-item-thumbnail{flex-shrink:0;width:40px;height:40px;margin-right:12px}.arco-upload-list-item-thumbnail img{width:100%;height:100%}.arco-upload-list-item-name{display:flex;flex:1;align-items:center;margin-right:10px;overflow:hidden;color:var(--color-text-1);font-size:14px;line-height:1.4286;white-space:nowrap;text-overflow:ellipsis}.arco-upload-list-item-name-link{overflow:hidden;color:rgb(var(--link-6));text-decoration:none;text-overflow:ellipsis;cursor:pointer}.arco-upload-list-item-name-text{overflow:hidden;text-overflow:ellipsis;cursor:pointer}.arco-upload-list-item .arco-upload-progress{position:relative;margin-left:auto;line-height:12px}.arco-upload-list-item .arco-upload-progress:hover .arco-progress-circle-bg{stroke:rgba(var(--gray-10),.2)}.arco-upload-list-item .arco-upload-progress:hover .arco-progress-circle-bar{stroke:rgb(var(--primary-7))}.arco-upload-list-item-operation{margin-left:12px;color:var(--color-text-2);font-size:12px}.arco-upload-list-item-operation .arco-upload-icon-remove{font-size:inherit}.arco-upload-list-item-error .arco-upload-list-status,.arco-upload-list-item-done .arco-upload-list-status{display:none}.arco-upload-list-type-text .arco-upload-list-item-error .arco-upload-list-item-name-link,.arco-upload-list-type-text .arco-upload-list-item-error .arco-upload-list-item-name{color:rgb(var(--danger-6))}.arco-upload-list.arco-upload-list-type-picture-card{display:flex;flex-wrap:wrap;vertical-align:top}.arco-upload-list.arco-upload-list-type-picture-card .arco-upload-list-status{top:50%;margin-left:0;transform:translateY(-50%)}.arco-upload-list-picture{display:inline-block;margin-top:0;margin-right:8px;margin-bottom:8px;padding-right:0;overflow:hidden;vertical-align:top;transition:all .2s cubic-bezier(.34,.69,.1,1)}.arco-upload-list-picture-status-error .arco-upload-list-picture-mask{opacity:1}.arco-upload-list-picture{position:relative;box-sizing:border-box;width:80px;height:80px;overflow:hidden;line-height:80px;text-align:center;vertical-align:top;border-radius:var(--border-radius-small)}.arco-upload-list-picture img{width:100%;height:100%}.arco-upload-list-picture-mask{position:absolute;inset:0;color:var(--color-white);font-size:16px;line-height:80px;text-align:center;background:#00000080;cursor:pointer;opacity:0;transition:opacity .1s cubic-bezier(0,0,1,1)}.arco-upload-list-picture-operation{display:none;font-size:14px}.arco-upload-list-picture-operation .arco-upload-icon-retry{color:var(--color-white)}.arco-upload-list-picture-error-tip .arco-upload-icon-error{color:var(--color-white);font-size:26px}.arco-upload-list-picture-mask:hover{opacity:1}.arco-upload-list-picture-mask:hover .arco-upload-list-picture-operation{display:flex;justify-content:space-evenly}.arco-upload-list-picture-mask:hover .arco-upload-list-picture-error-tip{display:none}.arco-upload-list-type-picture .arco-upload-list-item-content{padding-top:8px;padding-bottom:8px}.arco-upload-list-type-picture .arco-upload-list-item-error .arco-upload-list-item-content{background-color:var(--color-danger-light-1)}.arco-upload-list-type-picture .arco-upload-list-item-error .arco-upload-list-item-name-link,.arco-upload-list-type-picture .arco-upload-list-item-error .arco-upload-list-item-name{color:rgb(var(--danger-6))}.arco-upload-hide+.arco-upload-list .arco-upload-list-item:first-of-type{margin-top:0}.arco-upload-slide-up-enter{opacity:0}.arco-upload-slide-up-enter-active{opacity:1;transition:opacity .2s cubic-bezier(.34,.69,.1,1)}.arco-upload-slide-up-exit{opacity:1}.arco-upload-slide-up-exit-active{margin:0;overflow:hidden;opacity:0;transition:opacity .1s cubic-bezier(0,0,1,1),height .3s cubic-bezier(.34,.69,.1,1) .1s,margin .3s cubic-bezier(.34,.69,.1,1) .1s}.arco-upload-list-item.arco-upload-slide-inline-enter{opacity:0}.arco-upload-list-item.arco-upload-slide-inline-enter-active{opacity:1;transition:opacity .2s cubic-bezier(0,0,1,1)}.arco-upload-list-item.arco-upload-slide-inline-exit{opacity:1}.arco-upload-list-item.arco-upload-slide-inline-exit-active{margin:0;overflow:hidden;opacity:0;transition:opacity .1s cubic-bezier(0,0,1,1),width .3s cubic-bezier(.34,.69,.1,1) .1s,margin .3s cubic-bezier(.34,.69,.1,1) .1s}.arco-verification-code{display:flex;align-items:center;justify-content:space-between;width:100%;-moz-column-gap:4px;column-gap:4px}.arco-verification-code .arco-input{width:32px;padding-right:0;padding-left:0;text-align:center}.arco-verification-code .arco-input-size-small{width:28px}.arco-verification-code .arco-input-size-mini{width:24px}.arco-verification-code .arco-input-size-large{width:36px}@font-face{font-family:iconfont;src:url(/apps/drplayer/assets/iconfont-BwMJWaRv.woff2?t=1760257974279) format("woff2"),url(/apps/drplayer/assets/iconfont-D8yemM1O.woff?t=1760257974279) format("woff"),url(/apps/drplayer/assets/iconfont-DKtXKolo.ttf?t=1760257974279) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-xiazai:before{content:"ﲹ"}.icon-kuake:before{content:""}.icon-folder:before{content:""}.icon-file:before{content:""}.icon-file_zip:before{content:""}.icon-file_excel:before{content:""}.icon-file_ppt:before{content:""}.icon-file_word:before{content:""}.icon-file_pdf:before{content:""}.icon-file_music:before{content:""}.icon-file_video:before{content:""}.icon-file_img:before{content:""}.icon-file_ai:before{content:""}.icon-file_psd:before{content:""}.icon-file_bt:before{content:""}.icon-file_txt:before{content:""}.icon-file_exe:before{content:""}.icon-file_html:before{content:""}.icon-file_cad:before{content:""}.icon-file_code:before{content:""}.icon-file_flash:before{content:""}.icon-file_iso:before{content:""}.icon-file_cloud:before{content:""}.icon-wenjianjia:before{content:""}.icon-zhuye:before{content:""}.icon-shezhi:before{content:""}.icon-shipinzhibo:before{content:""}.icon-lishi:before{content:""}.icon-jiexi:before{content:""}.icon-shoucang:before{content:""}.icon-ceshi:before{content:""}.icon-dianbo:before{content:""}.icon-zhuye1:before{content:""}.icon-shugui:before{content:""}/*! + * Viewer.js v1.11.7 + * https://fengyuanchen.github.io/viewerjs + * + * Copyright 2015-present Chen Fengyuan + * Released under the MIT license + * + * Date: 2024-11-24T04:32:14.526Z + */.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}} diff --git a/apps/drplayer/assets/index-Cx1LOY8C.css b/apps/drplayer/assets/index-Cx1LOY8C.css deleted file mode 100644 index fe6b134a..00000000 --- a/apps/drplayer/assets/index-Cx1LOY8C.css +++ /dev/null @@ -1,9 +0,0 @@ -.search-settings[data-v-2ba355df]{padding:8px 0}.settings-header[data-v-2ba355df]{margin-bottom:16px;display:flex;align-items:flex-start;justify-content:space-between}.header-left[data-v-2ba355df]{flex:1}.header-left h4[data-v-2ba355df]{margin:0 0 8px;font-size:16px;font-weight:600;color:var(--color-text-1)}.settings-desc[data-v-2ba355df]{margin:0;font-size:14px;color:var(--color-text-3);line-height:1.5}.header-right[data-v-2ba355df]{flex-shrink:0;margin-left:24px}.search-tip[data-v-2ba355df]{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--color-fill-1);border-radius:6px;border:1px solid var(--color-border-2)}.tip-icon[data-v-2ba355df]{font-size:14px;color:var(--color-primary-6);flex-shrink:0}.tip-text[data-v-2ba355df]{font-size:12px;color:var(--color-text-2);line-height:1.4;white-space:nowrap}.sources-section[data-v-2ba355df]{margin-bottom:12px}.section-header[data-v-2ba355df]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--color-border-2)}.select-all-container[data-v-2ba355df]{display:flex;align-items:center;gap:12px}.selected-count[data-v-2ba355df]{font-size:13px;color:var(--color-text-3)}.header-actions[data-v-2ba355df]{display:flex;gap:8px}.search-filter-container[data-v-2ba355df]{margin-bottom:16px}.search-filter-container[data-v-2ba355df] .arco-input{border-radius:8px}.search-filter-container[data-v-2ba355df] .arco-input-prefix{color:var(--color-text-3)}.sources-list[data-v-2ba355df]{max-height:480px;overflow-y:auto;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-1);display:grid;grid-template-columns:1fr 1fr;gap:0}.source-item[data-v-2ba355df]{padding:12px;border-bottom:1px solid var(--color-border-2);border-right:1px solid var(--color-border-2);transition:background-color .2s ease}.source-item[data-v-2ba355df]:nth-child(odd){border-right:1px solid var(--color-border-2)}.source-item[data-v-2ba355df]:nth-child(2n){border-right:none}.source-item[data-v-2ba355df]:nth-last-child(-n+2){border-bottom:none}.source-item[data-v-2ba355df]:hover{background:var(--color-fill-1)}.source-item[data-v-2ba355df] .arco-checkbox{width:100%}.source-item[data-v-2ba355df] .arco-checkbox-label{width:100%;padding-left:8px}.source-info[data-v-2ba355df]{width:100%}.source-main[data-v-2ba355df]{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.source-name[data-v-2ba355df]{font-size:13px;font-weight:500;color:var(--color-text-1);flex:1;margin-right:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-tags[data-v-2ba355df]{display:flex;gap:4px;flex-shrink:0}.source-meta[data-v-2ba355df]{display:flex;gap:8px;flex-wrap:wrap}.meta-item[data-v-2ba355df]{font-size:11px;color:var(--color-text-3);background:var(--color-fill-2);padding:1px 6px;border-radius:3px}.empty-sources[data-v-2ba355df]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center;color:var(--color-text-3)}.empty-icon[data-v-2ba355df]{font-size:48px;color:var(--color-text-4);margin-bottom:16px}.empty-sources p[data-v-2ba355df]{margin:0 0 8px;font-size:14px}.empty-desc[data-v-2ba355df]{font-size:12px;color:var(--color-text-4)}.modal-footer[data-v-2ba355df]{display:flex;justify-content:flex-end;gap:12px}.sources-list[data-v-2ba355df]::-webkit-scrollbar{width:6px}.sources-list[data-v-2ba355df]::-webkit-scrollbar-track{background:var(--color-fill-2);border-radius:3px}.sources-list[data-v-2ba355df]::-webkit-scrollbar-thumb{background:var(--color-fill-4);border-radius:3px}.sources-list[data-v-2ba355df]::-webkit-scrollbar-thumb:hover{background:var(--color-fill-5)}@media (max-width: 768px){.section-header[data-v-2ba355df]{flex-direction:column;align-items:flex-start;gap:12px}.select-all-container[data-v-2ba355df]{width:100%}.search-filter-container[data-v-2ba355df]{margin-bottom:12px}.source-main[data-v-2ba355df]{flex-direction:column;align-items:flex-start;gap:8px}.source-tags[data-v-2ba355df]{align-self:flex-end}.modal-footer[data-v-2ba355df]{flex-direction:column}.modal-footer .arco-btn[data-v-2ba355df]{width:100%}}.header[data-v-fee61331]{display:flex;justify-content:space-between;align-items:center;width:100%;height:64px;padding:0;background:var(--color-bg-3);box-shadow:0 1px 4px #00000014;border-bottom:1px solid var(--color-border-2);border:none}.header-left[data-v-fee61331]{display:flex;align-items:center;padding-left:20px;min-width:200px;gap:8px}.search-page-title[data-v-fee61331]{font-size:16px;font-weight:600;color:var(--color-text-1);margin-left:12px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;align-items:center}.header-center[data-v-fee61331]{flex:1;display:flex;justify-content:center;align-items:center;max-width:600px;margin:0 20px}.header-right[data-v-fee61331]{display:flex;align-items:center;padding-right:20px;min-width:200px;justify-content:flex-end;gap:8px}.header-left[data-v-fee61331] .arco-btn,.header-right[data-v-fee61331] .arco-btn{width:32px;height:32px;border-radius:6px;border:1px solid var(--color-border-2);background:var(--color-bg-2);color:var(--color-text-1);transition:all .2s ease;display:flex;align-items:center;justify-content:center}.header-left[data-v-fee61331] .arco-btn:hover,.header-right[data-v-fee61331] .arco-btn:hover{background:var(--color-fill-3);border-color:var(--color-border-3);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.header-left[data-v-fee61331] .arco-btn:active,.header-right[data-v-fee61331] .arco-btn:active{transform:translateY(0);background:var(--color-fill-4)}.header-right[data-v-fee61331] .arco-btn:last-child{background:#ff4757;border-color:#ff3742;color:#fff}.header-right[data-v-fee61331] .arco-btn:last-child:hover{background:#ff3742;border-color:#ff2f3a;box-shadow:0 2px 8px #ff47574d}.search-container[data-v-fee61331]{display:flex;align-items:center;gap:0;width:100%;max-width:450px;border:1px solid var(--color-border-2);border-radius:8px;background:var(--color-bg-1);padding:4px;box-shadow:0 1px 4px #0000000d;transition:all .2s ease}.search-container[data-v-fee61331]:hover{border-color:var(--color-border-3);box-shadow:0 2px 8px #0000001a}.search-container[data-v-fee61331] .arco-input-search{flex:1;border-radius:4px;background:transparent;border:none;box-shadow:none;transition:all .2s ease;cursor:pointer}.search-container[data-v-fee61331] .arco-input-search:hover{background:transparent;border:none;box-shadow:none}.header-center.search-page-mode .search-container[data-v-fee61331] .arco-input-search{border-radius:10px;box-shadow:0 2px 8px #00000014}.header-center.search-page-mode .search-container[data-v-fee61331] .arco-input-search .arco-input-wrapper{border:2px solid var(--color-border-2);transition:all .2s ease}.header-center.search-page-mode .search-container[data-v-fee61331] .arco-input-search .arco-input-wrapper:focus-within{border-color:var(--color-primary-6);box-shadow:0 0 0 3px rgba(var(--primary-6),.1)}.search-settings-btn[data-v-fee61331]{width:32px!important;height:32px!important;border-radius:4px!important;border:none!important;background:transparent!important;color:var(--color-text-2)!important;transition:all .2s ease!important;flex-shrink:0;margin-left:4px}.search-settings-btn[data-v-fee61331]:hover{background:var(--color-fill-2)!important;border:none!important;color:var(--color-text-1)!important;transform:none;box-shadow:none!important}.search-settings-btn[data-v-fee61331]:active{transform:none!important;background:var(--color-fill-3)!important}.close-search-btn[data-v-fee61331]{width:32px!important;height:32px!important;border-radius:4px!important;border:none!important;background:transparent!important;color:var(--color-text-2)!important;transition:all .2s ease!important;flex-shrink:0;margin-left:4px}.close-search-btn[data-v-fee61331]:hover{background:var(--color-danger-light-1)!important;border:none!important;color:var(--color-danger-6)!important;transform:none;box-shadow:none!important}.close-search-btn[data-v-fee61331]:active{transform:none!important;background:var(--color-danger-light-2)!important}.search-container[data-v-fee61331]:focus-within{border-color:var(--color-primary-6);box-shadow:0 0 0 2px var(--color-primary-1)}.search-container[data-v-fee61331] .arco-input-search:focus-within{border:none;box-shadow:none}.search-container[data-v-fee61331] .arco-input-wrapper{border-radius:8px;background:transparent;border:none}.search-container[data-v-fee61331] .arco-input{background:transparent;border:none;color:var(--color-text-1);font-size:14px}.search-container[data-v-fee61331] .arco-input::-moz-placeholder{color:var(--color-text-3)}.search-container[data-v-fee61331] .arco-input::placeholder{color:var(--color-text-3)}.search-container[data-v-fee61331] .arco-input-search-btn{border-radius:0 8px 8px 0;background:var(--color-primary-6);border:none;color:#fff;transition:background-color .2s ease}.search-container[data-v-fee61331] .arco-input-search-btn:hover{background:var(--color-primary-7)}.confirm-modal-overlay[data-v-fee61331]{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn-fee61331 .3s ease-out}.confirm-modal[data-v-fee61331]{background:var(--color-bg-1);border-radius:12px;box-shadow:0 20px 40px #0000004d;min-width:400px;max-width:500px;padding:0;animation:slideIn-fee61331 .3s ease-out;border:1px solid var(--color-border-2)}.modal-header[data-v-fee61331]{display:flex;align-items:center;padding:24px 24px 16px;border-bottom:1px solid var(--color-border-2)}.warning-icon[data-v-fee61331]{font-size:24px;color:#ff6b35;margin-right:12px}.modal-title[data-v-fee61331]{margin:0;font-size:18px;font-weight:600;color:var(--color-text-1)}.modal-content[data-v-fee61331]{padding:20px 24px}.modal-message[data-v-fee61331]{margin:0 0 8px;font-size:16px;color:var(--color-text-1);line-height:1.5}.modal-submessage[data-v-fee61331]{margin:0;font-size:14px;color:var(--color-text-3);line-height:1.4}.modal-footer[data-v-fee61331]{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px 24px;border-top:1px solid var(--color-border-2)}.cancel-btn[data-v-fee61331]{min-width:80px;height:36px;border-radius:6px;font-weight:500}.clear-cache-btn[data-v-fee61331]{min-width:90px;height:36px;border-radius:6px;font-weight:500}.confirm-btn[data-v-fee61331]{min-width:100px;height:36px;border-radius:6px;font-weight:500}@keyframes fadeIn-fee61331{0%{opacity:0}to{opacity:1}}@keyframes slideIn-fee61331{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 768px){.header-left[data-v-fee61331],.header-right[data-v-fee61331]{min-width:120px}.header-center[data-v-fee61331]{margin:0 10px}.search-container[data-v-fee61331]{max-width:280px}.confirm-modal[data-v-fee61331]{min-width:320px;max-width:90vw;margin:20px}}@media (max-width: 480px){.header-left[data-v-fee61331],.header-right[data-v-fee61331]{min-width:80px;gap:4px}.header-left[data-v-fee61331]{padding-left:10px}.header-right[data-v-fee61331]{padding-right:10px}.header-center[data-v-fee61331]{margin:0 5px}.search-container[data-v-fee61331]{max-width:220px}.header-left[data-v-fee61331] .arco-btn,.header-right[data-v-fee61331] .arco-btn{width:28px;height:28px}.confirm-modal[data-v-fee61331]{min-width:280px;margin:16px}.modal-header[data-v-fee61331],.modal-content[data-v-fee61331],.modal-footer[data-v-fee61331]{padding-left:20px;padding-right:20px}.modal-footer[data-v-fee61331]{flex-direction:column;gap:8px}.cancel-btn[data-v-fee61331],.confirm-btn[data-v-fee61331]{width:100%}}.footer-content[data-v-3b2cc39c]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.pagination-stats[data-v-3b2cc39c]{display:flex;align-items:center;justify-content:center;width:100%}.stats-text[data-v-3b2cc39c]{font-size:13px;color:var(--color-text-2);font-weight:500}.default-footer[data-v-3b2cc39c]{display:flex;align-items:center;justify-content:center;width:100%;color:var(--color-text-2);font-size:13px}.footer-info[data-v-3b2cc39c]{display:flex;align-items:center;gap:12px;padding:0 16px;background:linear-gradient(135deg,#6366f10d,#8b5cf60d);border-radius:20px;border:1px solid rgba(99,102,241,.1);transition:all .3s ease}.footer-info[data-v-3b2cc39c]:hover{background:linear-gradient(135deg,#6366f114,#8b5cf614);border-color:#6366f133;transform:translateY(-1px);box-shadow:0 2px 8px #6366f11a}.copyright-section[data-v-3b2cc39c],.project-section[data-v-3b2cc39c],.license-section[data-v-3b2cc39c]{display:flex;align-items:center;gap:4px}.footer-icon[data-v-3b2cc39c]{font-size:14px;color:var(--color-primary-6);transition:all .3s ease}.copyright-text[data-v-3b2cc39c],.license-text[data-v-3b2cc39c]{font-size:13px;color:var(--color-text-2);font-weight:500;transition:color .3s ease}.project-link[data-v-3b2cc39c]{font-size:13px;color:var(--color-primary-6);text-decoration:none;font-weight:500;transition:all .3s ease;position:relative}.project-link[data-v-3b2cc39c]:hover{color:var(--color-primary-7);transform:translateY(-1px)}.project-link[data-v-3b2cc39c]:after{content:"";position:absolute;bottom:-2px;left:0;width:0;height:1px;background:var(--color-primary-6);transition:width .3s ease}.project-link[data-v-3b2cc39c]:hover:after{width:100%}.separator[data-v-3b2cc39c]{color:var(--color-border-3);font-size:12px;opacity:.6}@media (max-width: 768px){.footer-info[data-v-3b2cc39c]{gap:8px;padding:0 12px;font-size:12px}.footer-icon[data-v-3b2cc39c],.copyright-text[data-v-3b2cc39c],.license-text[data-v-3b2cc39c],.project-link[data-v-3b2cc39c]{font-size:12px}}@media (max-width: 480px){.footer-info[data-v-3b2cc39c]{flex-direction:column;gap:4px;padding:8px 12px}.separator[data-v-3b2cc39c]{display:none}.copyright-section[data-v-3b2cc39c],.project-section[data-v-3b2cc39c],.license-section[data-v-3b2cc39c]{gap:3px}}.app-container[data-v-c3e63595]{height:100vh;width:100vw;overflow:hidden;position:relative}.fixed-header[data-v-c3e63595]{position:fixed;top:0;left:0;right:0;width:100vw;height:64px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border);z-index:1000;padding:0;display:flex;align-items:center}.layout-demo[data-v-c3e63595]{height:calc(100vh - 64px);background:var(--color-fill-2);border:1px solid var(--color-border);margin-top:64px;display:flex}.fixed-sider[data-v-c3e63595]{position:fixed!important;left:0;top:64px;bottom:0;z-index:999}.main-content[data-v-c3e63595]{flex:1;margin-left:200px;display:flex;flex-direction:column;height:100%;overflow:hidden;transition:margin-left .2s ease}.main-content.sider-collapsed[data-v-c3e63595]{margin-left:48px}.content-wrapper[data-v-c3e63595]{flex:1;overflow-y:auto;overflow-x:hidden;padding:0 24px 16px;background:var(--color-bg-3)}.content-wrapper.search-page[data-v-c3e63595],.content-wrapper.download-manager-page[data-v-c3e63595]{overflow:hidden;padding:0}.fixed-footer[data-v-c3e63595]{height:48px;background:var(--color-bg-3);border-top:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;color:var(--color-text-2);font-weight:400;font-size:14px;flex-shrink:0}.layout-demo[data-v-c3e63595] .arco-layout-sider .logo{margin:12px;background:#fff3;text-align:center;max-width:100px}.layout-demo[data-v-c3e63595] .arco-layout-sider-light .logo{background:var(--color-fill-2)}.layout-demo[data-v-c3e63595] .arco-layout-sider-light .logo img{max-width:100px}@media (max-width: 768px){.main-content[data-v-c3e63595]{margin-left:0}.fixed-sider[data-v-c3e63595]{transform:translate(-100%);transition:transform .3s ease}.layout-demo[data-v-c3e63595] .arco-layout-sider-collapsed{transform:translate(0)}}.action-toast[data-v-0de7c39c]{position:fixed!important;top:20px!important;left:50%!important;transform:translate(-50%)!important;padding:12px 24px;border-radius:6px;color:#fff;font-size:14px;z-index:99999!important;max-width:400px;text-align:center;box-shadow:0 4px 12px #00000026;pointer-events:none}.action-toast.success[data-v-0de7c39c]{background:#52c41a}.action-toast.error[data-v-0de7c39c]{background:#f5222d}.action-toast.warning[data-v-0de7c39c]{background:#faad14}.action-toast.info[data-v-0de7c39c]{background:#1890ff}.action-toast-enter-active[data-v-0de7c39c],.action-toast-leave-active[data-v-0de7c39c]{transition:all .3s ease}.action-toast-enter-from[data-v-0de7c39c],.action-toast-leave-to[data-v-0de7c39c]{opacity:0;transform:translate(-50%) translateY(-20px)}.action-doc-card[data-v-d143db2b]{margin-bottom:20px}.card-container[data-v-d143db2b]{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;box-shadow:0 8px 32px #0000001a;transition:all .3s ease}.card-container[data-v-d143db2b]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.card-title[data-v-d143db2b]{display:flex;align-items:center;color:#fff;font-weight:600;font-size:16px}.title-icon[data-v-d143db2b]{margin-right:8px;font-size:18px}.expand-btn[data-v-d143db2b]{color:#fff!important;border:1px solid rgba(255,255,255,.3)!important;background:#ffffff1a!important;transition:all .3s ease}.expand-btn[data-v-d143db2b]:hover{background:#fff3!important;border-color:#ffffff80!important}.card-content[data-v-d143db2b]{color:#fff}.overview-section[data-v-d143db2b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:20px;margin-bottom:20px}.overview-item[data-v-d143db2b]{text-align:center;padding:15px;background:#ffffff1a;border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.overview-label[data-v-d143db2b]{font-size:12px;opacity:.8;margin-bottom:5px}.overview-value[data-v-d143db2b]{font-size:24px;font-weight:700}.quick-nav[data-v-d143db2b]{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.nav-tag[data-v-d143db2b]{cursor:pointer;transition:all .3s ease}.nav-tag[data-v-d143db2b]:hover{transform:scale(1.05)}.expanded-content[data-v-d143db2b]{margin-top:20px}.section[data-v-d143db2b]{margin-bottom:30px;padding:20px;background:#ffffff0d;border-radius:8px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.section-title[data-v-d143db2b]{display:flex;align-items:center;margin-bottom:15px;color:#fff;font-size:18px;font-weight:600}.section-icon[data-v-d143db2b]{margin-right:8px;font-size:20px}.concept-grid[data-v-d143db2b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px}.concept-item[data-v-d143db2b]{padding:15px;background:#ffffff1a;border-radius:6px}.concept-title[data-v-d143db2b]{font-weight:600;margin-bottom:8px;color:gold}.concept-desc[data-v-d143db2b]{font-size:14px;line-height:1.5;opacity:.9}.action-types-grid[data-v-d143db2b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:15px}.action-type-card[data-v-d143db2b]{background:#ffffff1a!important;border:1px solid rgba(255,255,255,.2)!important}.action-type-header[data-v-d143db2b]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.action-type-code[data-v-d143db2b]{font-family:Courier New,monospace;background:#0000004d;padding:2px 6px;border-radius:4px;font-size:12px;color:gold}.action-type-desc[data-v-d143db2b]{color:#fff;margin-bottom:8px;font-size:14px}.action-type-usage[data-v-d143db2b]{color:#fffc;font-size:12px}.special-actions-list[data-v-d143db2b]{display:flex;flex-direction:column;gap:15px}.special-action-item[data-v-d143db2b]{padding:15px;background:#ffffff1a;border-radius:6px;border-left:4px solid #ffd700}.special-action-header[data-v-d143db2b]{display:flex;align-items:center;gap:10px;margin-bottom:8px}.action-id[data-v-d143db2b]{background:#0000004d;padding:4px 8px;border-radius:4px;font-family:Courier New,monospace;color:gold;font-size:12px}.action-name[data-v-d143db2b]{font-weight:600;color:#fff}.special-action-desc[data-v-d143db2b]{margin-bottom:8px;font-size:14px;opacity:.9}.special-action-params[data-v-d143db2b]{font-size:12px;opacity:.8}.param-tag[data-v-d143db2b]{display:inline-block;background:#fff3;padding:2px 6px;margin:0 4px 4px 0;border-radius:3px;font-family:Courier New,monospace}.params-grid[data-v-d143db2b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px}.param-item[data-v-d143db2b]{padding:12px;background:#ffffff1a;border-radius:6px}.param-header[data-v-d143db2b]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.param-name[data-v-d143db2b]{font-family:Courier New,monospace;background:#0000004d;padding:2px 6px;border-radius:4px;color:gold;font-size:12px}.param-desc[data-v-d143db2b]{font-size:14px;opacity:.9}.example-tabs[data-v-d143db2b]{background:#ffffff1a;border-radius:6px;padding:15px}.code-block[data-v-d143db2b]{background:#0000004d;padding:15px;border-radius:6px;color:gold;font-family:Courier New,monospace;font-size:12px;line-height:1.5;overflow-x:auto;white-space:pre-wrap}[data-v-d143db2b] .arco-card-header{background:transparent!important;border-bottom:1px solid rgba(255,255,255,.1)!important}[data-v-d143db2b] .arco-card-body{background:transparent!important}[data-v-d143db2b] .arco-tabs-nav{background:#ffffff1a!important}[data-v-d143db2b] .arco-tabs-tab{color:#fffc!important}[data-v-d143db2b] .arco-tabs-tab-active{color:#fff!important}[data-v-d143db2b] .arco-tabs-content{background:transparent!important}.home-container[data-v-217d9b8b]{height:100%;display:flex;flex-direction:column;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);min-height:100%}.dashboard-header[data-v-217d9b8b]{position:sticky;top:0;z-index:100;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--color-border-2);padding:20px 0;margin:0 -24px}.header-content[data-v-217d9b8b]{display:flex;justify-content:space-between;align-items:center;max-width:none;margin:0;padding:0 24px}.welcome-section[data-v-217d9b8b]{flex:1}.dashboard-title[data-v-217d9b8b]{font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px;display:flex;align-items:center;gap:12px}.title-icon[data-v-217d9b8b]{color:var(--color-primary-6);font-size:32px}.dashboard-subtitle[data-v-217d9b8b]{font-size:14px;color:var(--color-text-3);margin:0}.quick-stats[data-v-217d9b8b]{display:flex;gap:32px;align-items:center}.dashboard-content[data-v-217d9b8b]{flex:1;overflow-y:auto;padding:24px 0;margin:0 -24px}.content-grid[data-v-217d9b8b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px;max-width:none;margin:0;padding:0 24px}.dashboard-card[data-v-217d9b8b]{background:#fff;border-radius:12px;box-shadow:0 4px 12px #0000000d;border:1px solid var(--color-border-2);overflow:hidden;transition:all .3s ease}.dashboard-card[data-v-217d9b8b]:hover{box-shadow:0 8px 24px #0000001a;transform:translateY(-2px)}.card-header[data-v-217d9b8b]{padding:20px 24px 16px;border-bottom:1px solid var(--color-border-2);display:flex;justify-content:space-between;align-items:center}.card-title[data-v-217d9b8b]{font-size:16px;font-weight:600;color:var(--color-text-1);margin:0;display:flex;align-items:center;gap:8px}.card-icon[data-v-217d9b8b]{color:var(--color-primary-6);font-size:18px}.card-content[data-v-217d9b8b]{padding:20px 24px 24px}.watch-stats-card[data-v-217d9b8b]{grid-column:span 2}.stat-item[data-v-217d9b8b]{text-align:center;min-width:80px}.stat-value[data-v-217d9b8b]{font-size:24px;font-weight:600;color:var(--color-text-1);line-height:1;margin-bottom:4px}.stat-value.positive[data-v-217d9b8b]{color:var(--color-success-6)}.stat-value.negative[data-v-217d9b8b]{color:var(--color-danger-6)}.stat-label[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3);line-height:1}.chart[data-v-217d9b8b]{width:100%;height:300px}.update-log-card[data-v-217d9b8b]{grid-column:span 1}.timeline-content[data-v-217d9b8b]{margin-bottom:16px}.timeline-header[data-v-217d9b8b]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.version-tag[data-v-217d9b8b]{background:var(--color-primary-1);color:var(--color-primary-6);padding:2px 8px;border-radius:4px;font-size:12px;font-weight:500}.update-date[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3)}.update-title[data-v-217d9b8b]{font-size:14px;font-weight:500;color:var(--color-text-1);margin:0 0 8px}.update-description[data-v-217d9b8b]{font-size:13px;color:var(--color-text-2);margin:0 0 12px;line-height:1.5}.update-changes[data-v-217d9b8b]{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.more-changes[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3)}.recommend-card[data-v-217d9b8b]{grid-column:span 2}.recommend-grid[data-v-217d9b8b]{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.recommend-item[data-v-217d9b8b]{cursor:pointer;border-radius:8px;overflow:hidden;transition:all .3s ease;background:var(--color-bg-2)}.recommend-item[data-v-217d9b8b]:hover{transform:translateY(-4px);box-shadow:0 8px 20px #0000001a}.recommend-poster[data-v-217d9b8b]{position:relative;width:100%;height:120px;overflow:hidden}.poster-placeholder[data-v-217d9b8b]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:24px;font-weight:600;text-shadow:0 2px 4px rgba(0,0,0,.3)}.recommend-overlay[data-v-217d9b8b]{position:absolute;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease}.recommend-item:hover .recommend-overlay[data-v-217d9b8b]{opacity:1}.play-icon[data-v-217d9b8b]{color:#fff;font-size:32px}.trending-badge[data-v-217d9b8b]{position:absolute;top:8px;right:8px;background:linear-gradient(45deg,#ff6b6b,#ff8e53);color:#fff;padding:2px 6px;border-radius:4px;font-size:10px;font-weight:500}.recommend-info[data-v-217d9b8b]{padding:12px}.recommend-title[data-v-217d9b8b]{font-size:14px;font-weight:500;color:var(--color-text-1);margin:0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recommend-meta[data-v-217d9b8b]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.recommend-rating[data-v-217d9b8b]{display:flex;align-items:center;gap:2px;font-size:12px;color:var(--color-text-2)}.recommend-tags[data-v-217d9b8b]{display:flex;gap:4px;flex-wrap:wrap}.keywords-card[data-v-217d9b8b]{grid-column:span 1}.keywords-list[data-v-217d9b8b]{display:flex;flex-direction:column;gap:12px}.keyword-item[data-v-217d9b8b]{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:all .2s ease}.keyword-item[data-v-217d9b8b]:hover{background:var(--color-bg-2)}.keyword-rank[data-v-217d9b8b]{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;background:var(--color-fill-3);color:var(--color-text-2)}.keyword-rank.top-three[data-v-217d9b8b]{background:linear-gradient(45deg,#ff6b6b,#ff8e53);color:#fff}.keyword-content[data-v-217d9b8b]{flex:1;display:flex;justify-content:space-between;align-items:center}.keyword-text[data-v-217d9b8b]{font-size:14px;color:var(--color-text-1);font-weight:500}.keyword-meta[data-v-217d9b8b]{display:flex;align-items:center;gap:8px}.keyword-count[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3)}.keyword-trend[data-v-217d9b8b]{display:flex;align-items:center}.keyword-trend.up[data-v-217d9b8b]{color:var(--color-success-6)}.keyword-trend.down[data-v-217d9b8b]{color:var(--color-danger-6)}.keyword-trend.stable[data-v-217d9b8b]{color:var(--color-text-3)}.system-status-card[data-v-217d9b8b]{grid-column:span 1}.status-grid[data-v-217d9b8b]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.status-item[data-v-217d9b8b]{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;background:var(--color-bg-2)}.status-icon[data-v-217d9b8b]{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}.status-icon.online[data-v-217d9b8b]{background:var(--color-success-1);color:var(--color-success-6)}.status-icon.warning[data-v-217d9b8b]{background:var(--color-warning-1);color:var(--color-warning-6)}.status-icon.error[data-v-217d9b8b]{background:var(--color-danger-1);color:var(--color-danger-6)}.status-info[data-v-217d9b8b]{flex:1}.status-label[data-v-217d9b8b]{font-size:12px;color:var(--color-text-3);margin-bottom:2px}.status-value[data-v-217d9b8b]{font-size:14px;font-weight:500;color:var(--color-text-1)}@media (max-width: 1200px){.content-grid[data-v-217d9b8b]{grid-template-columns:1fr}.watch-stats-card[data-v-217d9b8b],.recommend-card[data-v-217d9b8b]{grid-column:span 1}.quick-stats[data-v-217d9b8b]{gap:20px}}@media (max-width: 768px){.dashboard-header[data-v-217d9b8b]{padding:16px 0}.header-content[data-v-217d9b8b]{flex-direction:column;gap:16px;align-items:flex-start;padding:0 20px}.quick-stats[data-v-217d9b8b]{align-self:stretch;justify-content:space-around}.dashboard-content[data-v-217d9b8b]{padding:16px 0}.content-grid[data-v-217d9b8b]{padding:0 20px}.content-grid[data-v-217d9b8b]{gap:16px}.card-header[data-v-217d9b8b],.card-content[data-v-217d9b8b]{padding:16px 20px}.recommend-grid[data-v-217d9b8b]{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.status-grid[data-v-217d9b8b]{grid-template-columns:1fr;gap:12px}}.update-log-modal[data-v-217d9b8b]{max-height:500px;overflow-y:auto}.update-log-modal .timeline-content[data-v-217d9b8b]{padding-bottom:20px}.update-log-modal .timeline-header[data-v-217d9b8b]{display:flex;align-items:center;gap:12px;margin-bottom:8px}.update-log-modal .type-tag[data-v-217d9b8b]{margin-left:auto}.update-log-modal .update-title[data-v-217d9b8b]{margin:8px 0;font-size:16px;font-weight:600;color:var(--color-text-1)}.update-log-modal .update-description[data-v-217d9b8b]{margin:8px 0;color:var(--color-text-2);line-height:1.5}.update-log-modal .update-changes[data-v-217d9b8b]{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.update-log-modal .change-tag[data-v-217d9b8b]{margin:0}.keywords-modal[data-v-217d9b8b]{max-height:500px;overflow-y:auto}.keywords-modal .keywords-list[data-v-217d9b8b]{display:flex;flex-direction:column;gap:12px}.keywords-modal .keyword-item[data-v-217d9b8b]{display:flex;align-items:center;gap:16px;padding:12px 16px;border-radius:8px;background:var(--color-bg-2);cursor:pointer;transition:all .2s ease}.keywords-modal .keyword-item[data-v-217d9b8b]:hover{background:var(--color-bg-3);transform:translateY(-1px)}.keywords-modal .keyword-rank[data-v-217d9b8b]{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;background:var(--color-fill-3);color:var(--color-text-2)}.keywords-modal .keyword-rank.top-three[data-v-217d9b8b]{background:linear-gradient(135deg,#ff6b6b,#ffa726);color:#fff}.keywords-modal .keyword-content[data-v-217d9b8b]{flex:1;display:flex;justify-content:space-between;align-items:center}.keywords-modal .keyword-text[data-v-217d9b8b]{font-size:16px;font-weight:500;color:var(--color-text-1)}.keywords-modal .keyword-meta[data-v-217d9b8b]{display:flex;align-items:center;gap:12px}.keywords-modal .keyword-count[data-v-217d9b8b]{font-size:14px;color:var(--color-text-3)}.keywords-modal .keyword-trend[data-v-217d9b8b]{display:flex;align-items:center;font-size:16px}.keywords-modal .keyword-trend.up[data-v-217d9b8b]{color:var(--color-success-6)}.keywords-modal .keyword-trend.down[data-v-217d9b8b]{color:var(--color-danger-6)}.keywords-modal .keyword-trend.stable[data-v-217d9b8b]{color:var(--color-text-3)}.change_rule_dialog .arco-modal-body{padding:20px!important}.change_rule_dialog .arco-modal-header{border-bottom:1px solid var(--color-border-2);padding:16px 20px}.change_rule_dialog .arco-modal-footer{border-top:1px solid var(--color-border-2);padding:16px 20px}.search-section[data-v-105ac4df]{margin-bottom:16px}.search-row[data-v-105ac4df]{display:flex;gap:8px;margin-bottom:8px}.site_filter_input[data-v-105ac4df]{flex:1}.tag-button[data-v-105ac4df]{min-width:60px}.source-count[data-v-105ac4df]{font-size:13px;color:var(--color-text-3);text-align:center}.sources-section[data-v-105ac4df]{min-height:180px;max-height:400px;overflow-y:auto}.empty-state[data-v-105ac4df]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:180px;color:var(--color-text-3)}.empty-state p[data-v-105ac4df]{margin-top:8px;font-size:13px}.button-container[data-v-105ac4df]{display:grid;gap:8px;padding:4px 0;grid-template-columns:repeat(4,1fr);width:100%;box-sizing:border-box;overflow:hidden}.btn-item[data-v-105ac4df]{position:relative}.btn-item.selected[data-v-105ac4df]{transform:scale(1.02);transition:transform .2s ease}.source-button[data-v-105ac4df]{width:100%;min-height:44px;max-height:60px;border-radius:6px;transition:all .2s ease;position:relative;overflow:hidden;padding:6px 8px;box-sizing:border-box;min-width:0}.source-button[data-v-105ac4df]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f}.source-info[data-v-105ac4df]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;position:relative;padding:2px}.source-name[data-v-105ac4df]{font-weight:500;font-size:12px;text-align:center;line-height:1.3;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all;-webkit-hyphens:auto;hyphens:auto}.current-source-button[data-v-105ac4df]{background:#52c41a!important;border-color:#52c41a!important;color:#fff!important;box-shadow:0 2px 8px #52c41a4d!important}.current-source-button[data-v-105ac4df]:hover{background:#389e0d!important;transform:translateY(-2px);box-shadow:0 4px 12px #52c41a66!important}.current-icon[data-v-105ac4df]{position:absolute;top:-6px;left:-6px;background:#52c41a;color:#fff;font-size:12px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px #0003;z-index:10}.dialog-footer[data-v-105ac4df]{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.footer-left[data-v-105ac4df]{display:flex}.footer-right[data-v-105ac4df]{display:flex;gap:8px}@media (max-width: 1200px){.button-container[data-v-105ac4df]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 768px){.button-container[data-v-105ac4df]{grid-template-columns:repeat(3,1fr);gap:6px}.source-button[data-v-105ac4df]{min-height:40px;max-height:56px;padding:4px 6px}.source-name[data-v-105ac4df]{font-size:11px;line-height:1.2}.current-icon[data-v-105ac4df]{font-size:10px;width:16px;height:16px;top:-4px;left:-4px}.dialog-footer[data-v-105ac4df]{flex-direction:column;gap:8px;margin-top:12px}.footer-right[data-v-105ac4df]{width:100%;justify-content:flex-end}.search-section[data-v-105ac4df]{margin-bottom:12px}.sources-section[data-v-105ac4df]{min-height:160px;max-height:350px}}@media (max-width: 480px){.button-container[data-v-105ac4df]{grid-template-columns:repeat(4,1fr);gap:4px}.source-button[data-v-105ac4df]{min-height:36px;max-height:50px;padding:3px 4px;border-radius:4px}.source-name[data-v-105ac4df]{font-size:10px;line-height:1.1}.current-icon[data-v-105ac4df]{font-size:8px;width:14px;height:14px;top:-3px;left:-3px}.sources-section[data-v-105ac4df]{min-height:140px;max-height:300px}.empty-state[data-v-105ac4df]{height:140px}.empty-state p[data-v-105ac4df]{font-size:12px}}@media (max-width: 360px){.button-container[data-v-105ac4df]{grid-template-columns:repeat(5,1fr);gap:3px}.source-button[data-v-105ac4df]{min-height:32px;max-height:44px;padding:2px 3px}.source-name[data-v-105ac4df]{font-size:9px}.current-icon[data-v-105ac4df]{font-size:6px;width:12px;height:12px;top:-2px;left:-2px}}.tag_dialog .arco-modal-body[data-v-105ac4df]{padding:16px!important}.tag-container[data-v-105ac4df]{display:flex;flex-wrap:wrap;gap:8px;max-height:300px;overflow-y:auto}.tag-item[data-v-105ac4df]{margin:4px;border-radius:4px}.sources-section[data-v-105ac4df]::-webkit-scrollbar,.tag-container[data-v-105ac4df]::-webkit-scrollbar{width:4px}.sources-section[data-v-105ac4df]::-webkit-scrollbar-track,.tag-container[data-v-105ac4df]::-webkit-scrollbar-track{background:var(--color-bg-2);border-radius:2px}.sources-section[data-v-105ac4df]::-webkit-scrollbar-thumb,.tag-container[data-v-105ac4df]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:2px}.sources-section[data-v-105ac4df]::-webkit-scrollbar-thumb:hover,.tag-container[data-v-105ac4df]::-webkit-scrollbar-thumb:hover{background:var(--color-border-4)}.action-mask[data-v-36eb5ad8]{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(0,0,0,calc(var(--dim-amount, .45)));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);overflow:hidden}.action-dialog[data-v-36eb5ad8]{position:relative;z-index:20001;background:#fffffff2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-2xl);box-shadow:0 25px 50px -12px #00000040,0 0 0 1px #ffffff1a inset;overflow:hidden;transform-origin:center;transition:all var(--ds-duration-normal) cubic-bezier(.34,1.56,.64,1);max-height:calc(100vh - 2rem);max-width:90vw;display:flex;flex-direction:column}.action-dialog-bg[data-v-36eb5ad8]{position:absolute;top:0;left:0;right:0;height:4px;opacity:.8;z-index:0}.action-dialog-close[data-v-36eb5ad8]{position:absolute;top:1rem;right:1rem;z-index:10;width:2.5rem;height:2.5rem;border:none;border-radius:var(--ds-radius-lg);background:#ffffff1a;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#0009;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--ds-duration-fast) ease;border:1px solid rgba(255,255,255,.2)}.action-dialog-close[data-v-36eb5ad8]:hover{background:#fff3;color:#000c;transform:scale(1.05);box-shadow:0 4px 12px #00000026}.action-dialog-close[data-v-36eb5ad8]:active{transform:scale(.95)}.action-dialog-header[data-v-36eb5ad8]{position:relative;z-index:1;padding:2rem 2rem 1rem;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);border-bottom:1px solid rgba(255,255,255,.1);flex-shrink:0}.action-dialog-title[data-v-36eb5ad8]{margin:0;font-size:1.25rem;font-weight:600;color:#000000d9;text-align:center;letter-spacing:-.025em}.action-dialog-content[data-v-36eb5ad8]{position:relative;z-index:1;padding:1.5rem 2rem;flex:1 1 auto;overflow:visible;min-height:0;max-height:100%}.action-dialog-footer[data-v-36eb5ad8]{position:relative;z-index:1;padding:1rem 2rem 2rem;background:linear-gradient(135deg,#ffffff0d,#ffffff1a);border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:flex-end;gap:.75rem;flex-shrink:0}.action-dialog-mobile[data-v-36eb5ad8]{margin:1rem;border-radius:var(--ds-radius-xl)}.action-dialog-mobile .action-dialog-header[data-v-36eb5ad8]{padding:1.5rem 1.5rem 1rem}.action-dialog-mobile .action-dialog-content[data-v-36eb5ad8]{padding:1rem 1.5rem}.action-dialog-mobile .action-dialog-footer[data-v-36eb5ad8]{padding:1rem 1.5rem 1.5rem}.action-dialog-mobile .action-dialog-close[data-v-36eb5ad8]{top:.75rem;right:.75rem;width:2rem;height:2rem}.action-mask-enter-active[data-v-36eb5ad8],.action-mask-leave-active[data-v-36eb5ad8]{transition:all var(--ds-duration-normal) ease}.action-mask-enter-from[data-v-36eb5ad8],.action-mask-leave-to[data-v-36eb5ad8]{opacity:0;backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px)}.action-dialog-enter-active[data-v-36eb5ad8]{transition:all var(--ds-duration-normal) cubic-bezier(.34,1.56,.64,1)}.action-dialog-leave-active[data-v-36eb5ad8]{transition:all var(--ds-duration-fast) ease-in}.action-dialog-enter-from[data-v-36eb5ad8]{opacity:0;transform:scale(.8) translateY(-2rem)}.action-dialog-leave-to[data-v-36eb5ad8]{opacity:0;transform:scale(.9) translateY(1rem)}@media (prefers-color-scheme: dark){.action-dialog[data-v-36eb5ad8]{background:#1e1e1ef2;border-color:#ffffff1a}.action-dialog-title[data-v-36eb5ad8]{color:#ffffffe6}.action-dialog-close[data-v-36eb5ad8]{color:#ffffffb3;background:#0003}.action-dialog-close[data-v-36eb5ad8]:hover{color:#ffffffe6;background:#0000004d}}@media (prefers-contrast: high){.action-dialog[data-v-36eb5ad8]{border:2px solid;backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}.action-dialog-close[data-v-36eb5ad8]{border:1px solid;backdrop-filter:none;-webkit-backdrop-filter:none}}@media (prefers-reduced-motion: reduce){.action-mask-enter-active[data-v-36eb5ad8],.action-mask-leave-active[data-v-36eb5ad8],.action-dialog-enter-active[data-v-36eb5ad8],.action-dialog-leave-active[data-v-36eb5ad8],.action-dialog-close[data-v-36eb5ad8]{transition:none}.action-dialog-close[data-v-36eb5ad8]:hover{transform:none}}.action-renderer[data-v-3c8cada7]{position:relative}.action-error[data-v-3c8cada7]{color:#f5222d}.action-error pre[data-v-3c8cada7]{background:#fff2f0;border:1px solid #ffccc7;border-radius:4px;padding:8px;margin-top:8px;font-size:12px;overflow-x:auto}.action-loading[data-v-3c8cada7]{text-align:center;padding:20px;color:#8c8c8c}.input-action-modern[data-v-5ccea77c]{padding:0;display:flex;flex-direction:column;gap:1.5rem}.message-section[data-v-5ccea77c]{margin-bottom:.5rem}.message-content[data-v-5ccea77c]{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;background:linear-gradient(135deg,#3b82f61a,#9333ea1a);border:1px solid rgba(59,130,246,.2);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.message-icon[data-v-5ccea77c]{flex-shrink:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;background:#3b82f61a;border-radius:var(--ds-radius-md);color:#3b82f6}.message-text[data-v-5ccea77c]{margin:0;color:#000c;font-size:.875rem;line-height:1.5;font-weight:500}.media-section[data-v-5ccea77c]{margin-bottom:.5rem}.image-container[data-v-5ccea77c]{text-align:center;padding:1rem;background:#ffffff80;border:1px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.action-image-modern[data-v-5ccea77c]{max-width:100%;height:auto;border-radius:var(--ds-radius-md);box-shadow:0 4px 12px #0000001a;transition:all var(--ds-duration-fast) ease}.action-image-modern.clickable[data-v-5ccea77c]{cursor:crosshair}.action-image-modern.clickable[data-v-5ccea77c]:hover{transform:scale(1.02);box-shadow:0 8px 25px #00000026}.coords-display[data-v-5ccea77c]{margin-top:.75rem;padding:.5rem 1rem;background:#22c55e1a;border:1px solid rgba(34,197,94,.2);border-radius:var(--ds-radius-md);display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem}.coords-label[data-v-5ccea77c]{color:#0009;font-weight:500}.coords-value[data-v-5ccea77c]{color:#22c55e;font-weight:600;font-family:Courier New,monospace}.qrcode-container[data-v-5ccea77c]{text-align:center;padding:1.5rem;background:#ffffff80;border:1px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.qrcode-wrapper[data-v-5ccea77c]{display:inline-block;padding:1rem;background:#fff;border-radius:var(--ds-radius-md);box-shadow:0 4px 12px #0000001a}.qrcode-image[data-v-5ccea77c]{max-width:100%;height:auto;display:block}.qrcode-text[data-v-5ccea77c]{margin:1rem 0 0;color:#000000b3;font-size:.875rem;font-weight:500;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;line-height:1.5;max-width:100%;overflow-wrap:break-word}.input-section[data-v-5ccea77c]{margin-bottom:.5rem}.input-group[data-v-5ccea77c]{display:flex;flex-direction:column;gap:.75rem}.input-label[data-v-5ccea77c]{font-size:.875rem;font-weight:600;color:#000c;margin:0;letter-spacing:-.025em}.input-container[data-v-5ccea77c],.textarea-container[data-v-5ccea77c]{position:relative}.input-wrapper-modern[data-v-5ccea77c],.textarea-wrapper-modern[data-v-5ccea77c]{position:relative;display:flex;align-items:stretch;background:#fffc;border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);transition:all var(--ds-duration-fast) ease;overflow:hidden}.input-wrapper-modern[data-v-5ccea77c]:focus-within,.textarea-wrapper-modern[data-v-5ccea77c]:focus-within{border-color:#3b82f680;background:#fffffff2;box-shadow:0 0 0 4px #3b82f61a,0 8px 25px #3b82f626;transform:translateY(-1px)}.input-field-modern[data-v-5ccea77c],.textarea-field-modern[data-v-5ccea77c]{flex:1;border:none;outline:none;background:transparent;padding:1rem 1.25rem;font-size:.875rem;line-height:1.5;color:#000000d9;font-weight:500;transition:all var(--ds-duration-fast) ease}.textarea-field-modern[data-v-5ccea77c]{resize:vertical;min-height:4rem;font-family:inherit}.input-field-modern[data-v-5ccea77c]::-moz-placeholder,.textarea-field-modern[data-v-5ccea77c]::-moz-placeholder{color:#0006;font-weight:400}.input-field-modern[data-v-5ccea77c]::placeholder,.textarea-field-modern[data-v-5ccea77c]::placeholder{color:#0006;font-weight:400}.input-field-modern.error[data-v-5ccea77c],.textarea-field-modern.error[data-v-5ccea77c]{color:#ef4444}.input-field-modern.error+.input-actions[data-v-5ccea77c],.textarea-field-modern.error~.expand-btn[data-v-5ccea77c]{border-left-color:#ef44444d}.input-wrapper-modern[data-v-5ccea77c]:has(.error),.textarea-wrapper-modern[data-v-5ccea77c]:has(.error){border-color:#ef444480;background:#fef2f2cc}.input-field-modern.success[data-v-5ccea77c],.textarea-field-modern.success[data-v-5ccea77c]{color:#22c55e}.input-wrapper-modern[data-v-5ccea77c]:has(.success),.textarea-wrapper-modern[data-v-5ccea77c]:has(.success){border-color:#22c55e4d}.input-actions[data-v-5ccea77c]{display:flex;align-items:center;border-left:1px solid rgba(255,255,255,.3)}.expand-btn[data-v-5ccea77c]{padding:.75rem;border:none;background:transparent;color:#00000080;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--ds-duration-fast) ease;border-radius:0}.expand-btn[data-v-5ccea77c]:hover{background:#3b82f61a;color:#3b82f6}.textarea-expand[data-v-5ccea77c]{position:absolute;top:.5rem;right:.5rem;padding:.5rem;border-radius:var(--ds-radius-md);background:#fffc;border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.input-status[data-v-5ccea77c]{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.5rem}.error-message[data-v-5ccea77c],.help-message[data-v-5ccea77c]{display:flex;align-items:center;gap:.5rem;font-size:.75rem;font-weight:500;flex:1}.error-message[data-v-5ccea77c]{color:#ef4444}.help-message[data-v-5ccea77c]{color:#0009}.char-count[data-v-5ccea77c]{font-size:.75rem;color:#00000080;font-weight:500;flex-shrink:0}.quick-select[data-v-5ccea77c]{margin-bottom:1rem}.quick-select-options[data-v-5ccea77c]{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-start}.quick-select-tag[data-v-5ccea77c]{cursor:pointer;transition:all var(--ds-duration-fast) ease;margin:.25rem;font-size:.875rem;font-weight:500;background-color:#6b7280!important;color:#fff!important;border:none!important;border-radius:12px!important;padding:6px 12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:auto!important;min-width:auto!important;line-height:1!important}.quick-select-tag[data-v-5ccea77c]:hover{background-color:#4b5563!important;transform:translateY(-1px);box-shadow:0 4px 12px #6b72804d}.quick-select-tag[data-v-5ccea77c]:active{transform:translateY(0);background-color:#374151!important}.timeout-section[data-v-5ccea77c]{margin-bottom:.5rem}.timeout-indicator[data-v-5ccea77c]{display:flex;align-items:center;gap:.75rem;padding:1rem;background:linear-gradient(135deg,#f59e0b1a,#fbbf241a);border:1px solid rgba(245,158,11,.2);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.timeout-icon[data-v-5ccea77c]{flex-shrink:0;color:#f59e0b}.timeout-text[data-v-5ccea77c]{flex:1;font-size:.875rem;font-weight:500;color:#000c}.timeout-progress[data-v-5ccea77c]{flex:1;height:4px;background:#f59e0b33;border-radius:2px;overflow:hidden}.timeout-progress-bar[data-v-5ccea77c]{height:100%;background:linear-gradient(90deg,#f59e0b,#fbbf24);border-radius:2px;transition:width var(--ds-duration-normal) ease}.modern-footer[data-v-5ccea77c]{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;margin:0;padding:0}.btn-modern[data-v-5ccea77c]{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border:2px solid transparent;border-radius:var(--ds-radius-lg);font-size:.875rem;font-weight:600;cursor:pointer;transition:all var(--ds-duration-fast) ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);position:relative;overflow:hidden}.btn-modern[data-v-5ccea77c]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left var(--ds-duration-normal) ease}.btn-modern[data-v-5ccea77c]:hover:before{left:100%}.btn-secondary[data-v-5ccea77c]{background:#fff9;border-color:#ffffff4d;color:#000000b3}.btn-secondary[data-v-5ccea77c]:hover{background:#fffc;border-color:#ffffff80;color:#000000e6;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.btn-primary[data-v-5ccea77c]{background:linear-gradient(135deg,#3b82f6,#9333ea);border-color:#3b82f64d;color:#fff;box-shadow:0 4px 12px #3b82f64d}.btn-primary[data-v-5ccea77c]:hover:not(.disabled){background:linear-gradient(135deg,#2563eb,#7e22ce);transform:translateY(-1px);box-shadow:0 8px 25px #3b82f666}.btn-primary.disabled[data-v-5ccea77c]{background:#0000001a;border-color:#0000001a;color:#0000004d;cursor:not-allowed;box-shadow:none}.btn-modern[data-v-5ccea77c]:active:not(.disabled){transform:translateY(0)}.text-editor[data-v-5ccea77c]{padding:0;display:flex;flex-direction:column;overflow:hidden}.text-editor-textarea[data-v-5ccea77c]{flex:1;width:100%;height:300px;max-height:400px;padding:1.25rem;border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);font-family:inherit;font-size:.875rem;line-height:1.6;color:#000000d9;resize:none;outline:none;overflow-y:auto;box-sizing:border-box;transition:all var(--ds-duration-fast) ease}.text-editor-textarea[data-v-5ccea77c]:focus{border-color:#3b82f680;background:#fffffff2;box-shadow:0 0 0 4px #3b82f61a,0 8px 25px #3b82f626}.text-editor-textarea[data-v-5ccea77c]::-moz-placeholder{color:#0006}.text-editor-textarea[data-v-5ccea77c]::placeholder{color:#0006}@media (max-width: 640px){.input-action-modern[data-v-5ccea77c]{gap:1rem}.message-content[data-v-5ccea77c]{padding:.75rem;gap:.5rem}.message-icon[data-v-5ccea77c]{width:1.5rem;height:1.5rem}.input-field-modern[data-v-5ccea77c],.textarea-field-modern[data-v-5ccea77c]{padding:.875rem 1rem;font-size:.875rem}.modern-footer[data-v-5ccea77c]{flex-direction:column-reverse;gap:.5rem}.btn-modern[data-v-5ccea77c]{width:100%;justify-content:center}.quick-select-grid[data-v-5ccea77c]{grid-template-columns:1fr}.quick-select-tag[data-v-5ccea77c]{margin:.125rem}.input-status[data-v-5ccea77c]{flex-direction:column;align-items:flex-start;gap:.5rem}.char-count[data-v-5ccea77c]{align-self:flex-end}}@media (prefers-color-scheme: dark){.message-content[data-v-5ccea77c]{background:linear-gradient(135deg,#3b82f626,#9333ea26);border-color:#3b82f64d}.message-text[data-v-5ccea77c]{color:#ffffffe6}.input-wrapper-modern[data-v-5ccea77c],.textarea-wrapper-modern[data-v-5ccea77c]{background:#0000004d;border-color:#fff3}.input-field-modern[data-v-5ccea77c],.textarea-field-modern[data-v-5ccea77c]{color:#ffffffe6}.input-field-modern[data-v-5ccea77c]::-moz-placeholder,.textarea-field-modern[data-v-5ccea77c]::-moz-placeholder{color:#ffffff80}.input-field-modern[data-v-5ccea77c]::placeholder,.textarea-field-modern[data-v-5ccea77c]::placeholder{color:#ffffff80}.btn-secondary[data-v-5ccea77c]{background:#0000004d;color:#fffc}.btn-secondary[data-v-5ccea77c]:hover{background:#00000080;color:#fffffff2}}@media (prefers-contrast: high){.input-wrapper-modern[data-v-5ccea77c],.textarea-wrapper-modern[data-v-5ccea77c],.quick-select-tag[data-v-5ccea77c],.btn-modern[data-v-5ccea77c]{backdrop-filter:none;-webkit-backdrop-filter:none;border-width:2px}}@media (prefers-reduced-motion: reduce){.input-wrapper-modern[data-v-5ccea77c],.textarea-wrapper-modern[data-v-5ccea77c],.quick-select-tag[data-v-5ccea77c],.btn-modern[data-v-5ccea77c],.expand-btn[data-v-5ccea77c],.action-image-modern[data-v-5ccea77c]{transition:none}.btn-modern[data-v-5ccea77c]:before{display:none}.btn-modern[data-v-5ccea77c]:hover,.quick-select-tag[data-v-5ccea77c]:hover,.action-image-modern[data-v-5ccea77c]:hover{transform:none}}.multi-input-action-modern[data-v-94c32ec1]{display:flex;flex-direction:column;height:100%;max-height:100vh;background:var(--ds-surface);border-radius:8px;overflow:hidden}.message-section[data-v-94c32ec1]{padding:12px 16px;background:var(--ds-background-information-subtle);border-bottom:1px solid var(--ds-border-subtle);flex-shrink:0}.message-content[data-v-94c32ec1]{display:flex;align-items:flex-start;gap:8px}.message-icon[data-v-94c32ec1]{flex-shrink:0;margin-top:2px}.message-text[data-v-94c32ec1]{flex:1;font-size:13px;line-height:1.5;color:var(--ds-text)}.media-section[data-v-94c32ec1]{padding:8px 16px;border-bottom:1px solid var(--ds-border-subtle);flex-shrink:0}.image-container[data-v-94c32ec1]{display:flex;justify-content:center;align-items:center;margin-bottom:8px}.action-image-modern[data-v-94c32ec1]{max-width:100%;max-height:200px;border-radius:6px;box-shadow:0 2px 8px #0000001a}.inputs-section[data-v-94c32ec1]{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;max-height:60vh}@media (max-width: 768px){.inputs-section[data-v-94c32ec1]{max-height:70vh}}@media (max-width: 480px){.inputs-section[data-v-94c32ec1]{max-height:75vh}}.inputs-container[data-v-94c32ec1]{flex:1;display:flex;flex-direction:column;gap:8px;padding:8px 16px;overflow-y:auto;overflow-x:hidden;min-height:0;max-height:100%;scrollbar-width:thin;scrollbar-color:var(--ds-border-subtle) transparent}@media (max-width: 768px){.inputs-container[data-v-94c32ec1]{padding:6px 12px;gap:6px}}@media (max-width: 480px){.inputs-container[data-v-94c32ec1]{padding:4px 8px;gap:4px}}.inputs-container[data-v-94c32ec1]::-webkit-scrollbar{width:6px}.inputs-container[data-v-94c32ec1]::-webkit-scrollbar-track{background:transparent}.inputs-container[data-v-94c32ec1]::-webkit-scrollbar-thumb{background:var(--ds-border-subtle);border-radius:3px}.inputs-container[data-v-94c32ec1]::-webkit-scrollbar-thumb:hover{background:var(--ds-border)}.input-item[data-v-94c32ec1]{display:flex;flex-direction:column;gap:4px;position:relative;background:var(--ds-background-subtle, #f6f8fa);border:1px solid var(--ds-border-subtle, #d1d9e0);border-radius:8px;padding:10px;transition:all .2s ease}.input-item[data-v-94c32ec1]:hover{border-color:var(--ds-border-brand);box-shadow:0 0 0 1px var(--ds-border-brand-alpha)}.input-label-container[data-v-94c32ec1]{display:flex;flex-direction:column;gap:2px}.input-label[data-v-94c32ec1]{font-size:13px;font-weight:500;color:var(--ds-text-subtle);display:flex;align-items:center;gap:4px;margin:0}.required-indicator[data-v-94c32ec1]{color:var(--ds-text-danger);font-size:12px}.help-button[data-v-94c32ec1]{background:#3742fa;color:#fff;border:none;border-radius:50%;width:18px;height:18px;font-size:12px;font-weight:700;cursor:pointer;margin-left:6px;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease}.help-button[data-v-94c32ec1]:hover{background:#2f3542;transform:scale(1.1)}.help-content[data-v-94c32ec1]{font-size:14px;line-height:1.6;color:var(--ds-text);padding:16px 0}.input-help[data-v-94c32ec1]{font-size:11px;color:var(--ds-text-subtlest);line-height:1.3}.input-group[data-v-94c32ec1]{display:flex;flex-direction:column;gap:6px}.quick-select[data-v-94c32ec1]{display:flex;flex-direction:column;gap:4px}.quick-select-options[data-v-94c32ec1]{display:flex;flex-wrap:wrap;gap:4px}.quick-select-tag[data-v-94c32ec1]{padding:3px 8px;font-size:11px;background:#f5f5f5;border:1px solid #d0d0d0;border-radius:4px;color:#333;cursor:pointer;transition:all .15s ease;white-space:nowrap;display:flex;align-items:center;gap:4px}.quick-select-tag[data-v-94c32ec1]:hover{background:#e8e8e8;border-color:#b0b0b0}.quick-select-tag[data-v-94c32ec1]:active{background:#d8d8d8}.quick-select-tag.selected[data-v-94c32ec1]{background:#22c55e;border-color:#16a34a;color:#fff}.quick-select-tag.selected[data-v-94c32ec1]:hover{background:#16a34a;border-color:#15803d}.quick-select-tag.selected[data-v-94c32ec1]:active{background:#15803d}.quick-select-tag.special-selector[data-v-94c32ec1]{background:var(--ds-background-brand-subtle);color:var(--ds-text-brand);border-color:var(--ds-border-brand)}.quick-select-tag.special-selector[data-v-94c32ec1]:hover{background:var(--ds-background-brand);color:var(--ds-text-inverse)}.selector-icon[data-v-94c32ec1]{flex-shrink:0}.input-container[data-v-94c32ec1]{position:relative}.input-wrapper-modern[data-v-94c32ec1]{position:relative;display:flex;align-items:center;background:var(--ds-surface, #ffffff);border:1px solid var(--ds-border, #d0d7de);border-radius:6px;transition:all .2s ease;overflow:hidden}.input-wrapper-modern[data-v-94c32ec1]:focus-within{border-color:var(--ds-border-focused);box-shadow:0 0 0 1px var(--ds-border-focused-alpha)}.input-field-modern[data-v-94c32ec1]{flex:1;padding:8px 10px;border:none;background:transparent;font-size:13px;color:var(--ds-text);outline:none;min-height:20px}.input-field-modern[data-v-94c32ec1]::-moz-placeholder{color:var(--ds-text-subtlest, #8b949e)}.input-field-modern[data-v-94c32ec1]::placeholder{color:var(--ds-text-subtlest, #8b949e)}.input-field-modern.error[data-v-94c32ec1]{color:var(--ds-text-danger)}.input-field-modern.success[data-v-94c32ec1]{color:var(--ds-text-success)}.date-picker-modern[data-v-94c32ec1]{flex:1;border:none;background:transparent;width:100%}.date-picker-modern[data-v-94c32ec1] .arco-picker{width:100%;border:none;background:transparent;box-shadow:none;padding:8px 10px;font-size:13px;min-height:20px}.date-picker-modern[data-v-94c32ec1] .arco-picker-input{color:var(--ds-text);font-size:13px}.date-picker-modern[data-v-94c32ec1] .arco-picker-input::-moz-placeholder{color:var(--ds-text-subtlest, #8b949e)}.date-picker-modern[data-v-94c32ec1] .arco-picker-input::placeholder{color:var(--ds-text-subtlest, #8b949e)}.date-picker-modern[data-v-94c32ec1] .arco-picker-suffix{color:var(--ds-text-subtle)}.date-picker-modern[data-v-94c32ec1] .arco-picker-dropdown,.date-picker-modern[data-v-94c32ec1] .arco-picker-panel,.date-picker-modern[data-v-94c32ec1] .arco-picker-popup{z-index:9999!important}.date-picker-modern[data-v-94c32ec1] .arco-picker-container{position:relative;z-index:1}.input-actions[data-v-94c32ec1]{display:flex;align-items:center;padding:0 6px}.expand-btn[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:var(--ds-text-subtle);cursor:pointer;border-radius:4px;transition:all .15s ease}.expand-btn[data-v-94c32ec1]:hover{background:var(--ds-background-neutral-hovered);color:var(--ds-text)}.expand-btn[data-v-94c32ec1]:active{background:var(--ds-background-neutral-pressed)}.expand-options-btn[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:var(--ds-text-subtle);cursor:pointer;border-radius:4px;transition:all .15s ease}.expand-options-btn[data-v-94c32ec1]:hover{background:var(--ds-background-neutral-hovered);color:var(--ds-text)}.expand-options-btn[data-v-94c32ec1]:active{background:var(--ds-background-neutral-pressed)}.special-input-btn[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;cursor:pointer;border-radius:4px;transition:all .15s ease}.special-input-btn[data-v-94c32ec1]:hover{background:var(--ds-background-neutral-hovered)}.special-input-btn[data-v-94c32ec1]:active{background:var(--ds-background-neutral-pressed)}.special-calendar[data-v-94c32ec1]{color:#3b82f6}.special-file[data-v-94c32ec1]{color:#10b981}.special-folder[data-v-94c32ec1]{color:#f59e0b}.special-image[data-v-94c32ec1]{color:#8b5cf6}.special-input-btn[data-v-94c32ec1]:hover{opacity:.8}.textarea-container[data-v-94c32ec1]{position:relative}.textarea-wrapper-modern[data-v-94c32ec1]{position:relative;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:6px;transition:all .2s ease}.textarea-wrapper-modern[data-v-94c32ec1]:focus-within{border-color:var(--ds-border-focused);box-shadow:0 0 0 1px var(--ds-border-focused-alpha)}.textarea-field-modern[data-v-94c32ec1]{width:100%;padding:8px 10px;border:none;background:transparent;font-size:13px;color:var(--ds-text);outline:none;resize:vertical;min-height:60px;line-height:1.4;font-family:inherit}.textarea-field-modern[data-v-94c32ec1]::-moz-placeholder{color:var(--ds-text-subtlest)}.textarea-field-modern[data-v-94c32ec1]::placeholder{color:var(--ds-text-subtlest)}.textarea-field-modern.error[data-v-94c32ec1]{color:var(--ds-text-danger)}.textarea-field-modern.success[data-v-94c32ec1]{color:var(--ds-text-success)}.textarea-expand[data-v-94c32ec1]{position:absolute;top:6px;right:6px;z-index:1}.input-status[data-v-94c32ec1]{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:16px}.error-message[data-v-94c32ec1]{display:flex;align-items:center;gap:4px;color:var(--ds-text-danger);font-size:11px}.char-count[data-v-94c32ec1]{font-size:10px;color:var(--ds-text-subtlest);white-space:nowrap}.remove-btn[data-v-94c32ec1]{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:var(--ds-background-danger-subtle);color:var(--ds-text-danger);border-radius:4px;cursor:pointer;transition:all .15s ease;z-index:2}.remove-btn[data-v-94c32ec1]:hover{background:var(--ds-background-danger);color:var(--ds-text-inverse)}.remove-btn[data-v-94c32ec1]:active{background:var(--ds-background-danger-bold)}.enhanced-section[data-v-94c32ec1]{padding:.75rem;background:#f8fafccc;border:1px solid rgba(0,0,0,.1);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.enhanced-controls[data-v-94c32ec1]{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:var(--ds-background-subtle);border:1px solid var(--ds-border-subtle);border-radius:6px;margin-top:8px;gap:8px}.enhanced-controls-left[data-v-94c32ec1],.enhanced-controls-right[data-v-94c32ec1]{display:flex;gap:6px}.add-input-btn[data-v-94c32ec1],.batch-action-btn[data-v-94c32ec1]{padding:4px 8px;font-size:11px;background:var(--ds-background-brand-subtle);color:var(--ds-text-brand);border:1px solid var(--ds-border-brand);border-radius:4px;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;gap:4px;white-space:nowrap}.add-input-btn[data-v-94c32ec1]:hover,.batch-action-btn[data-v-94c32ec1]:hover{background:var(--ds-background-brand);color:var(--ds-text-inverse)}.add-input-btn[data-v-94c32ec1]:active,.batch-action-btn[data-v-94c32ec1]:active{background:var(--ds-background-brand-bold)}.batch-controls[data-v-94c32ec1]{display:flex;gap:.375rem}.timeout-section[data-v-94c32ec1]{padding:.625rem .75rem;background:linear-gradient(135deg,#fbbf241a,#f59e0b1a);border:1px solid rgba(251,191,36,.2);border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.timeout-indicator[data-v-94c32ec1]{display:flex;align-items:center;gap:.75rem}.timeout-icon[data-v-94c32ec1]{flex-shrink:0;color:#f59e0b}.timeout-text[data-v-94c32ec1]{font-size:.875rem;font-weight:500;color:#000c}.timeout-progress[data-v-94c32ec1]{flex:1;height:.25rem;background:#f59e0b33;border-radius:var(--ds-radius-full);overflow:hidden}.timeout-progress-bar[data-v-94c32ec1]{height:100%;background:#f59e0b;transition:width 1s linear}.timeout-display[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;padding:6px 12px;background:var(--ds-background-warning-subtle);color:var(--ds-text-warning);border:1px solid var(--ds-border-warning);border-radius:6px;font-size:12px;font-weight:500;gap:6px;margin-top:8px}.timeout-icon[data-v-94c32ec1]{animation:pulse-94c32ec1 2s infinite}@keyframes pulse-94c32ec1{0%,to{opacity:1}50%{opacity:.5}}.modern-footer[data-v-94c32ec1]{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;margin:0;padding:0}.footer[data-v-94c32ec1]{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:12px 16px;background:var(--ds-background-subtle);border-top:1px solid var(--ds-border-subtle);margin-top:auto}.footer-btn[data-v-94c32ec1]{padding:6px 16px;font-size:13px;font-weight:500;border:1px solid var(--ds-border);border-radius:6px;cursor:pointer;transition:all .15s ease;min-width:60px;display:flex;align-items:center;justify-content:center;gap:4px}.footer-btn[data-v-94c32ec1]:disabled{opacity:.5;cursor:not-allowed}.footer-btn.cancel[data-v-94c32ec1]{background:var(--ds-background);color:var(--ds-text-subtle);border-color:var(--ds-border)}.footer-btn.cancel[data-v-94c32ec1]:hover:not(:disabled){background:var(--ds-background-neutral-hovered);color:var(--ds-text)}.footer-btn.reset[data-v-94c32ec1]{background:var(--ds-background-warning-subtle);color:var(--ds-text-warning);border-color:var(--ds-border-warning)}.footer-btn.reset[data-v-94c32ec1]:hover:not(:disabled){background:var(--ds-background-warning);color:var(--ds-text-inverse)}.footer-btn.confirm[data-v-94c32ec1]{background:var(--ds-background-brand);color:var(--ds-text-inverse);border-color:var(--ds-border-brand)}.footer-btn.confirm[data-v-94c32ec1]:hover:not(:disabled){background:var(--ds-background-brand-bold)}.footer-btn.confirm[data-v-94c32ec1]:active:not(:disabled){background:var(--ds-background-brand-boldest)}.btn-modern[data-v-94c32ec1]{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border:2px solid transparent;border-radius:var(--ds-radius-lg);font-size:.875rem;font-weight:600;cursor:pointer;transition:all var(--ds-duration-fast) ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);position:relative;overflow:hidden}.btn-modern[data-v-94c32ec1]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left var(--ds-duration-normal) ease}.btn-modern[data-v-94c32ec1]:hover:before{left:100%}.btn-secondary[data-v-94c32ec1]{background:#fff9;border-color:#ffffff4d;color:#000000b3}.btn-secondary[data-v-94c32ec1]:hover{background:#fffc;border-color:#ffffff80;color:#000000e6;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.btn-primary[data-v-94c32ec1]{background:linear-gradient(135deg,#3b82f6,#9333ea);border-color:#3b82f64d;color:#fff;box-shadow:0 4px 12px #3b82f64d}.btn-primary[data-v-94c32ec1]:hover:not(.disabled){background:linear-gradient(135deg,#2563eb,#7e22ce);transform:translateY(-1px);box-shadow:0 8px 25px #3b82f666}.btn-primary.disabled[data-v-94c32ec1]{background:#0000001a;border-color:#0000001a;color:#0000004d;cursor:not-allowed;box-shadow:none}.btn-modern[data-v-94c32ec1]:active:not(.disabled){transform:translateY(0)}.btn-modern.disabled[data-v-94c32ec1]{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}.text-editor[data-v-94c32ec1]{padding:0;display:flex;flex-direction:column;overflow:hidden}.text-editor-textarea[data-v-94c32ec1]{flex:1;width:100%;height:300px;max-height:400px;padding:1.25rem;border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);font-family:inherit;font-size:.875rem;line-height:1.6;color:#000000d9;resize:none;outline:none;overflow-y:auto;box-sizing:border-box;transition:all var(--ds-duration-fast) ease}.text-editor-textarea[data-v-94c32ec1]:focus{border-color:#3b82f680;background:#fffffff2;box-shadow:0 0 0 4px #3b82f61a,0 8px 25px #3b82f626}.text-editor-textarea[data-v-94c32ec1]::-moz-placeholder{color:#0006}.text-editor-textarea[data-v-94c32ec1]::placeholder{color:#0006}.large-text-editor .dialog-content[data-v-94c32ec1]{width:90vw;max-width:800px;height:70vh;max-height:600px;display:flex;flex-direction:column}.large-text-editor .dialog-header[data-v-94c32ec1]{padding:12px 16px;border-bottom:1px solid var(--ds-border-subtle);background:var(--ds-background-subtle)}.large-text-editor .dialog-title[data-v-94c32ec1]{font-size:14px;font-weight:600;color:var(--ds-text);margin:0}.large-text-editor .dialog-body[data-v-94c32ec1]{flex:1;padding:12px;display:flex;flex-direction:column}.large-text-editor .large-textarea[data-v-94c32ec1]{flex:1;width:100%;border:1px solid var(--ds-border);border-radius:6px;padding:12px;font-size:13px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;line-height:1.5;resize:none;outline:none;background:var(--ds-surface);color:var(--ds-text)}.large-text-editor .large-textarea[data-v-94c32ec1]:focus{border-color:var(--ds-border-focused);box-shadow:0 0 0 1px var(--ds-border-focused-alpha)}.large-text-editor .dialog-footer[data-v-94c32ec1]{padding:12px 16px;border-top:1px solid var(--ds-border-subtle);background:var(--ds-background-subtle);display:flex;justify-content:flex-end;gap:8px}@media (max-width: 640px){.multi-input-action-modern[data-v-94c32ec1]{gap:.75rem}.input-item[data-v-94c32ec1]{padding:.5rem}.enhanced-controls[data-v-94c32ec1]{flex-direction:column;align-items:stretch}.enhanced-controls-left[data-v-94c32ec1],.enhanced-controls-right[data-v-94c32ec1]{justify-content:center}.batch-controls[data-v-94c32ec1]{flex-direction:column}.modern-footer[data-v-94c32ec1]{flex-direction:column-reverse}.btn-modern[data-v-94c32ec1]{justify-content:center}}@media (prefers-reduced-motion: reduce){[data-v-94c32ec1]{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.btn-modern[data-v-94c32ec1]:hover,.expand-btn[data-v-94c32ec1]:hover,.textarea-expand[data-v-94c32ec1]:hover,.remove-btn[data-v-94c32ec1]:hover,.quick-select-tag[data-v-94c32ec1]:hover{transform:none}}.date-picker-container[data-v-94c32ec1]{padding:16px;display:flex;flex-direction:column;gap:12px}.date-picker-container[data-v-94c32ec1] .ant-picker{width:100%;height:40px;border-radius:6px;border:1px solid var(--ds-border, #d0d7de);font-size:14px}.date-picker-container[data-v-94c32ec1] .ant-picker-input>input{font-size:14px;color:var(--ds-text, #24292f)}.date-picker-container[data-v-94c32ec1] .ant-picker-input>input::-moz-placeholder{color:var(--ds-text-subtlest, #8b949e)}.date-picker-container[data-v-94c32ec1] .ant-picker-input>input::placeholder{color:var(--ds-text-subtlest, #8b949e)}.select-options-content[data-v-94c32ec1]{padding:16px}.radio-container[data-v-94c32ec1]{max-height:400px;overflow-y:auto;border:1px solid var(--ds-border, #d0d7de);border-radius:8px;background:var(--ds-surface, #ffffff);padding:8px}.radio-options-list[data-v-94c32ec1]{width:100%;display:flex;flex-direction:column;gap:4px}.radio-option-item[data-v-94c32ec1]{margin:0;padding:0}.radio-options-list[data-v-94c32ec1] .arco-radio{width:100%;margin:0;padding:0;border-radius:6px;border:1px solid var(--ds-border, #d0d7de);background:var(--ds-surface, #ffffff);transition:all .2s ease}.radio-options-list[data-v-94c32ec1] .arco-radio:hover{border-color:var(--ds-border-accent, #3b82f6);background:var(--ds-background-neutral-hovered, #f6f8fa)}.radio-options-list[data-v-94c32ec1] .arco-radio-checked{border-color:var(--ds-border-accent, #3b82f6);background:var(--ds-background-accent-subtle, #dbeafe)}.radio-options-list[data-v-94c32ec1] .arco-radio-checked:hover{background:var(--ds-background-accent-subtle-hovered, #bfdbfe)}.radio-options-list[data-v-94c32ec1] .arco-radio .arco-radio-label{width:100%;padding:8px 12px;margin:0;color:var(--ds-text, #24292f);font-size:13px;line-height:1.4;cursor:pointer}.radio-options-list[data-v-94c32ec1] .arco-radio-checked .arco-radio-label{color:var(--ds-text-accent, #1e40af);font-weight:500}.radio-options-list[data-v-94c32ec1] .arco-radio .arco-radio-button{margin:6px 0 6px 10px}.radio-options-list[data-v-94c32ec1] .arco-radio .arco-radio-button:after{border-color:var(--ds-border-accent, #3b82f6)}.radio-options-list[data-v-94c32ec1] .arco-radio-checked .arco-radio-button{border-color:var(--ds-border-accent, #3b82f6);background-color:var(--ds-background-accent, #3b82f6)}.multiselect-container[data-v-94c32ec1]{display:flex;gap:16px;min-height:300px}.multiselect-main[data-v-94c32ec1]{flex:1}.checkbox-grid[data-v-94c32ec1]{display:grid;gap:12px 16px;padding:8px}.checkbox-option-item[data-v-94c32ec1]{padding:8px 12px;border:1px solid var(--ds-border, #d1d5db);border-radius:6px;background:var(--ds-background, #ffffff);transition:all .2s ease;cursor:pointer;font-size:14px}.checkbox-option-item[data-v-94c32ec1]:hover{border-color:var(--ds-border-accent, #3b82f6);background:var(--ds-background-hover, #f8fafc)}.checkbox-option-item[data-v-94c32ec1] .arco-checkbox-checked .arco-checkbox-icon{background-color:var(--ds-background-accent, #3b82f6);border-color:var(--ds-border-accent, #3b82f6)}.multiselect-actions[data-v-94c32ec1]{display:flex;flex-direction:column;gap:8px;min-width:80px;padding:8px}.btn-small[data-v-94c32ec1]{padding:6px 12px;font-size:12px;min-height:32px;white-space:nowrap}.menu-action-modern[data-v-36a9fec1]{display:flex;flex-direction:column;gap:1.5rem;padding:0}.message-section[data-v-36a9fec1]{margin-bottom:.5rem}.message-content[data-v-36a9fec1]{position:relative;padding:1rem 1.25rem;border-radius:.75rem;overflow:hidden;border:1px solid rgba(255,255,255,.1)}.message-bg[data-v-36a9fec1]{position:absolute;inset:0;opacity:.1;z-index:0}.message-text[data-v-36a9fec1]{position:relative;z-index:1;color:var(--action-color-text);font-size:.875rem;line-height:1.5;font-weight:500}.media-section[data-v-36a9fec1]{margin-bottom:.5rem}.media-container[data-v-36a9fec1]{position:relative;padding:.75rem;border-radius:.75rem;overflow:hidden;border:1px solid rgba(255,255,255,.1);display:flex;justify-content:center;align-items:center}.media-bg[data-v-36a9fec1]{position:absolute;inset:0;opacity:.05;z-index:0}.media-image[data-v-36a9fec1]{position:relative;z-index:1;max-width:100%;border-radius:.5rem;box-shadow:var(--action-shadow-medium)}.search-section[data-v-36a9fec1]{margin-bottom:.5rem}.search-container[data-v-36a9fec1]{position:relative;display:flex;align-items:center}.search-icon[data-v-36a9fec1]{position:absolute;left:.75rem;z-index:2;color:var(--action-color-text-secondary);pointer-events:none}.search-input[data-v-36a9fec1]{width:100%;padding:.75rem .75rem .75rem 2.5rem;border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-lg);background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);color:#000000d9;font-size:.875rem;font-weight:500;transition:all var(--ds-duration-fast) ease;outline:none;box-shadow:0 4px 16px #0000001a}.search-input[data-v-36a9fec1]:focus{border-color:#3b82f680;background:#fffffff2;box-shadow:0 0 0 4px #3b82f61a,0 8px 25px #3b82f626;transform:translateY(-1px)}.search-input[data-v-36a9fec1]::-moz-placeholder{color:#0006;font-weight:400}.search-input[data-v-36a9fec1]::placeholder{color:#0006;font-weight:400}.menu-section[data-v-36a9fec1]{flex:1}.menu-layout[data-v-36a9fec1]{display:flex;gap:1rem;align-items:flex-start}.menu-options-container[data-v-36a9fec1]{flex:1;display:grid;grid-template-columns:repeat(2,1fr);gap:.625rem;max-height:400px;overflow-y:auto;padding-right:.25rem}.quick-actions-column[data-v-36a9fec1]{flex-shrink:0;width:120px;position:sticky;top:0}.quick-actions-container[data-v-36a9fec1]{background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border:2px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-lg);padding:.75rem;box-shadow:0 4px 16px #0000001a}.quick-actions-title[data-v-36a9fec1]{font-size:.75rem;font-weight:600;color:var(--action-color-text-secondary);margin-bottom:.5rem;text-align:center}.quick-actions-buttons[data-v-36a9fec1]{display:flex;flex-direction:column;gap:.5rem}.quick-action-btn[data-v-36a9fec1]{display:flex;align-items:center;justify-content:center;gap:.25rem;padding:.5rem;border:1px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-md);background:#fff9;color:var(--action-color-text);font-size:.75rem;font-weight:500;cursor:pointer;transition:all var(--ds-duration-fast) ease;outline:none}.quick-action-btn[data-v-36a9fec1]:hover:not(:disabled){border-color:#3b82f680;background:#3b82f61a;color:#3b82f6;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f626}.quick-action-btn[data-v-36a9fec1]:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #3b82f61a}.quick-action-btn[data-v-36a9fec1]:disabled{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}.quick-action-btn svg[data-v-36a9fec1]{flex-shrink:0}.quick-action-btn span[data-v-36a9fec1]{white-space:nowrap}.menu-options-container[data-v-36a9fec1]::-webkit-scrollbar{width:6px}.menu-options-container[data-v-36a9fec1]::-webkit-scrollbar-track{background:var(--action-color-bg-secondary);border-radius:3px}.menu-options-container[data-v-36a9fec1]::-webkit-scrollbar-thumb{background:var(--action-color-border);border-radius:3px}.menu-options-container[data-v-36a9fec1]::-webkit-scrollbar-thumb:hover{background:var(--action-color-text-secondary)}.menu-option-card[data-v-36a9fec1]{display:flex;align-items:center;padding:.75rem;border:2px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-lg);background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);cursor:pointer;transition:all var(--ds-duration-fast) ease;position:relative;overflow:hidden;box-shadow:0 4px 16px #0000001a}.menu-option-card[data-v-36a9fec1]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#3b82f61a,#9333ea1a);opacity:0;transition:opacity var(--ds-duration-fast) ease;z-index:0}.menu-option-card[data-v-36a9fec1]:hover:before{opacity:1}.menu-option-card[data-v-36a9fec1]:hover{border-color:#3b82f680;background:#fffffff2;transform:translateY(-2px);box-shadow:0 8px 24px #3b82f626}.menu-option-card.selected[data-v-36a9fec1]{border-color:#3b82f6;background:#3b82f61a;box-shadow:0 8px 24px #3b82f633}.menu-option-card.selected[data-v-36a9fec1]:before{opacity:1}.menu-option-card.disabled[data-v-36a9fec1]{opacity:.5;cursor:not-allowed;transform:none!important}.menu-option-card.disabled[data-v-36a9fec1]:hover{border-color:var(--action-color-border);box-shadow:none}.menu-option-card.has-description[data-v-36a9fec1]{align-items:flex-start;padding:1.25rem 1rem}.option-icon-container[data-v-36a9fec1]{position:relative;z-index:1;margin-right:.75rem;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:.5rem;background:rgba(var(--action-color-primary-rgb),.1)}.option-icon-image[data-v-36a9fec1]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;border-radius:.25rem}.option-icon-svg[data-v-36a9fec1]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--action-color-primary)}.option-icon-svg svg[data-v-36a9fec1]{width:1.25rem;height:1.25rem;fill:currentColor}.option-icon-unicode[data-v-36a9fec1]{font-size:1.125rem;line-height:1;color:var(--action-color-primary)}.option-icon-emoji[data-v-36a9fec1]{font-size:1.125rem;line-height:1}.option-icon-class[data-v-36a9fec1]{font-size:1rem;color:var(--action-color-primary);display:flex;align-items:center;justify-content:center}.option-content[data-v-36a9fec1]{position:relative;z-index:1;flex:1;min-width:0}.option-title[data-v-36a9fec1]{font-weight:600;color:var(--action-color-text);margin-bottom:.0625rem;font-size:.95rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.option-description[data-v-36a9fec1]{font-size:.8rem;color:var(--action-color-text-secondary);line-height:1.2;margin-top:.125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.option-selector[data-v-36a9fec1]{position:relative;z-index:1;margin-left:.75rem;flex-shrink:0}.checkbox-modern[data-v-36a9fec1]{position:relative}.checkbox-input[data-v-36a9fec1]{position:absolute;opacity:0;width:0;height:0}.checkbox-label[data-v-36a9fec1]{display:block;cursor:pointer}.checkbox-indicator[data-v-36a9fec1]{width:1.25rem;height:1.25rem;border:2px solid var(--action-color-border);border-radius:.375rem;background:var(--action-color-bg);display:flex;align-items:center;justify-content:center;transition:all var(--action-transition-duration);color:#fff}.checkbox-input:checked+.checkbox-label .checkbox-indicator[data-v-36a9fec1]{background:var(--action-color-primary);border-color:var(--action-color-primary);transform:scale(1.05)}.checkbox-input:focus+.checkbox-label .checkbox-indicator[data-v-36a9fec1]{box-shadow:0 0 0 3px rgba(var(--action-color-primary-rgb),.2)}.radio-modern[data-v-36a9fec1]{position:relative}.radio-input[data-v-36a9fec1]{position:absolute;opacity:0;width:0;height:0}.radio-label[data-v-36a9fec1]{display:block;cursor:pointer}.radio-indicator[data-v-36a9fec1]{width:1.25rem;height:1.25rem;border:2px solid var(--action-color-border);border-radius:50%;background:var(--action-color-bg);display:flex;align-items:center;justify-content:center;transition:all var(--action-transition-duration)}.radio-dot[data-v-36a9fec1]{width:.5rem;height:.5rem;background:#fff;border-radius:50%;transform:scale(0);transition:transform var(--action-transition-duration)}.radio-input:checked+.radio-label .radio-indicator[data-v-36a9fec1]{background:var(--action-color-primary);border-color:var(--action-color-primary);transform:scale(1.05)}.radio-input:checked+.radio-label .radio-dot[data-v-36a9fec1]{transform:scale(1)}.radio-input:focus+.radio-label .radio-indicator[data-v-36a9fec1]{box-shadow:0 0 0 3px rgba(var(--action-color-primary-rgb),.2)}.multi-select-controls[data-v-36a9fec1]{margin-top:1rem;padding:1rem;background:#fffc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border:2px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-lg);box-shadow:0 4px 16px #0000001a}.control-buttons[data-v-36a9fec1]{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.control-btn[data-v-36a9fec1]{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:linear-gradient(135deg,#3b82f6e6,#2563ebe6);border:2px solid rgba(255,255,255,.3);border-radius:var(--ds-radius-md);color:#fff;font-size:.875rem;font-weight:500;cursor:pointer;transition:all var(--ds-duration-fast) ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 2px 8px #3b82f64d;position:relative;overflow:hidden}.control-btn[data-v-36a9fec1]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transition:left var(--ds-duration-normal) ease}.control-btn[data-v-36a9fec1]:hover:not(:disabled){background:linear-gradient(135deg,#3b82f6,#2563eb);transform:translateY(-2px);box-shadow:0 4px 16px #3b82f666;border-color:#ffffff80}.control-btn[data-v-36a9fec1]:hover:not(:disabled):before{left:100%}.control-btn[data-v-36a9fec1]:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #3b82f64d}.control-btn[data-v-36a9fec1]:disabled{opacity:.5;cursor:not-allowed;transform:none;background:#9ca3af80;border-color:#9ca3af4d;box-shadow:none}.control-btn svg[data-v-36a9fec1]{flex-shrink:0}.selected-section[data-v-36a9fec1]{margin-top:1rem}.selected-container[data-v-36a9fec1]{position:relative;padding:1rem;border-radius:.75rem;overflow:hidden;border:1px solid rgba(255,255,255,.1)}.selected-bg[data-v-36a9fec1]{position:absolute;inset:0;opacity:.08;z-index:0}.selected-header[data-v-36a9fec1]{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.selected-title[data-v-36a9fec1]{font-size:.875rem;font-weight:600;color:var(--action-color-text)}.selected-count[data-v-36a9fec1]{background:var(--action-color-primary);color:#fff;padding:.25rem .5rem;border-radius:.375rem;font-size:.75rem;font-weight:600;min-width:1.5rem;text-align:center}.selected-items-grid[data-v-36a9fec1]{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:.5rem}.selected-item-tag[data-v-36a9fec1]{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:rgba(var(--action-color-primary-rgb),.1);border:1px solid rgba(var(--action-color-primary-rgb),.2);border-radius:.5rem;cursor:pointer;transition:all var(--action-transition-duration);font-size:.75rem}.selected-item-tag[data-v-36a9fec1]:hover{background:rgba(var(--action-color-danger-rgb),.1);border-color:rgba(var(--action-color-danger-rgb),.3);transform:translateY(-1px)}.selected-item-name[data-v-36a9fec1]{color:var(--action-color-text);font-weight:500}.selected-item-remove[data-v-36a9fec1]{display:flex;align-items:center;justify-content:center;color:var(--action-color-text-secondary);transition:color var(--action-transition-duration)}.selected-item-tag:hover .selected-item-remove[data-v-36a9fec1]{color:var(--action-color-danger)}.timeout-section[data-v-36a9fec1]{margin-top:.5rem}.timeout-container[data-v-36a9fec1]{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:rgba(var(--action-color-warning-rgb),.1);border:1px solid rgba(var(--action-color-warning-rgb),.2);border-radius:.5rem;font-size:.875rem}.timeout-icon[data-v-36a9fec1]{color:var(--action-color-warning);flex-shrink:0}.timeout-text[data-v-36a9fec1]{color:var(--action-color-text);font-weight:500;flex:1}.timeout-progress[data-v-36a9fec1]{flex:1;height:.25rem;background:rgba(var(--action-color-warning-rgb),.2);border-radius:.125rem;overflow:hidden}.timeout-progress-bar[data-v-36a9fec1]{height:100%;background:var(--action-color-warning);transition:width 1s linear;border-radius:.125rem}.modern-footer[data-v-36a9fec1]{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;margin:0;padding:0}.btn-modern[data-v-36a9fec1]{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;border:2px solid transparent;border-radius:var(--ds-radius-lg);font-size:.875rem;font-weight:600;cursor:pointer;transition:all var(--ds-duration-fast) ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);position:relative;overflow:hidden}.btn-modern[data-v-36a9fec1]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease}.btn-modern[data-v-36a9fec1]:hover:before{left:100%}.btn-modern span[data-v-36a9fec1]{position:relative;z-index:1}.btn-secondary[data-v-36a9fec1]{background:linear-gradient(135deg,#ffffff1a,#ffffff0d);border-color:#fff3;color:#000c;box-shadow:0 4px 16px #0000001a}.btn-secondary[data-v-36a9fec1]:hover{background:linear-gradient(135deg,#ffffff26,#ffffff14);border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 8px 24px #00000026}.btn-secondary[data-v-36a9fec1]:active{transform:translateY(0);box-shadow:0 4px 16px #0000001a}.btn-primary[data-v-36a9fec1]{background:linear-gradient(135deg,#3b82f6,#2563eb);border-color:#3b82f6;color:#fff;box-shadow:0 4px 16px #3b82f64d}.btn-primary[data-v-36a9fec1]:hover{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#2563eb;transform:translateY(-2px);box-shadow:0 8px 24px #3b82f666}.btn-primary[data-v-36a9fec1]:active{transform:translateY(0);box-shadow:0 4px 16px #3b82f64d}.btn-modern.disabled[data-v-36a9fec1],.btn-primary[data-v-36a9fec1]:disabled{background:linear-gradient(135deg,#9ca3af80,#6b728080);border-color:#9ca3af4d;color:#9ca3afcc;cursor:not-allowed;transform:none;box-shadow:none}.btn-modern.disabled[data-v-36a9fec1]:before,.btn-primary[data-v-36a9fec1]:disabled:before{display:none}@media (max-width: 768px){.menu-action-modern[data-v-36a9fec1]{gap:1rem}.menu-option-card[data-v-36a9fec1]{padding:.875rem}.option-icon-container[data-v-36a9fec1]{width:1.75rem;height:1.75rem;margin-right:.625rem}.selected-items-grid[data-v-36a9fec1]{flex-direction:column}.selected-item-tag[data-v-36a9fec1]{justify-content:space-between}.modern-footer[data-v-36a9fec1]{flex-direction:column-reverse}.btn-modern[data-v-36a9fec1]{width:100%;justify-content:center}}@media (max-width: 480px){.menu-action-modern[data-v-36a9fec1]{gap:.75rem}.message-content[data-v-36a9fec1],.media-container[data-v-36a9fec1],.selected-container[data-v-36a9fec1],.menu-option-card[data-v-36a9fec1]{padding:.75rem}.option-icon-container[data-v-36a9fec1]{width:1.5rem;height:1.5rem;margin-right:.5rem}.option-title[data-v-36a9fec1]{font-size:.8125rem}.option-description[data-v-36a9fec1]{font-size:.6875rem}}@media (prefers-color-scheme: dark){.menu-option-card[data-v-36a9fec1]{background:#ffffff05}.menu-option-card[data-v-36a9fec1]:hover{background:#ffffff0d}.menu-option-card.selected[data-v-36a9fec1]{background:rgba(var(--action-color-primary-rgb),.1)}}@media (prefers-contrast: high){.menu-option-card[data-v-36a9fec1],.checkbox-indicator[data-v-36a9fec1],.radio-indicator[data-v-36a9fec1],.btn-modern[data-v-36a9fec1]{border-width:3px}}@media (prefers-reduced-motion: reduce){.menu-option-card[data-v-36a9fec1],.checkbox-indicator[data-v-36a9fec1],.radio-indicator[data-v-36a9fec1],.btn-modern[data-v-36a9fec1],.selected-item-tag[data-v-36a9fec1],.timeout-progress-bar[data-v-36a9fec1]{transition:none}.menu-option-card[data-v-36a9fec1]:hover,.btn-modern[data-v-36a9fec1]:hover,.selected-item-tag[data-v-36a9fec1]:hover{transform:none}}.msgbox-action-modern[data-v-55d966d0]{padding:16px;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1)}.glass-effect[data-v-55d966d0]{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:12px;position:relative;overflow:hidden;transition:all .3s cubic-bezier(.4,0,.2,1)}.glass-effect[data-v-55d966d0]:hover{background:#ffffff26;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 8px 32px #0000001a}.gradient-primary[data-v-55d966d0]{background:linear-gradient(135deg,#667eea,#764ba2);opacity:.1;position:absolute;inset:0;z-index:-1}.gradient-secondary[data-v-55d966d0]{background:linear-gradient(135deg,#f093fb,#f5576c);opacity:.1;position:absolute;inset:0;z-index:-1}.gradient-accent[data-v-55d966d0]{background:linear-gradient(135deg,#4facfe,#00f2fe);opacity:.1;position:absolute;inset:0;z-index:-1}.gradient-warning[data-v-55d966d0]{background:linear-gradient(135deg,#fa709a,#fee140);opacity:.1;position:absolute;inset:0;z-index:-1}.icon-section[data-v-55d966d0]{display:flex;justify-content:center;margin-bottom:16px}.icon-container[data-v-55d966d0]{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;position:relative;overflow:hidden}.icon-bg[data-v-55d966d0]{position:absolute;inset:0;z-index:-1}.gradient-info[data-v-55d966d0]{background:linear-gradient(135deg,#667eea,#764ba2)}.gradient-success[data-v-55d966d0]{background:linear-gradient(135deg,#56ab2f,#a8e6cf)}.gradient-warning[data-v-55d966d0]{background:linear-gradient(135deg,#f093fb,#f5576c)}.gradient-error[data-v-55d966d0]{background:linear-gradient(135deg,#ff416c,#ff4b2b)}.gradient-question[data-v-55d966d0]{background:linear-gradient(135deg,#a8edea,#fed6e3)}.icon-wrapper[data-v-55d966d0]{display:flex;align-items:center;justify-content:center;color:#fff;z-index:1}.icon-container.info .icon-wrapper[data-v-55d966d0]{color:#667eea}.icon-container.success .icon-wrapper[data-v-55d966d0]{color:#56ab2f}.icon-container.warning .icon-wrapper[data-v-55d966d0]{color:#f093fb}.icon-container.error .icon-wrapper[data-v-55d966d0]{color:#ff416c}.icon-container.question .icon-wrapper[data-v-55d966d0]{color:#a8edea}.content-section[data-v-55d966d0]{display:flex;flex-direction:column;gap:12px}.message-container[data-v-55d966d0]{padding:16px;position:relative}.message-content[data-v-55d966d0]{display:flex;align-items:flex-start;gap:12px;position:relative;z-index:1}.message-icon[data-v-55d966d0]{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:50%;color:var(--primary-color)}.message-text[data-v-55d966d0]{flex:1;font-size:16px;line-height:1.6;color:var(--text-primary);font-weight:500}.detail-container[data-v-55d966d0]{padding:18px;position:relative}.detail-content[data-v-55d966d0]{display:flex;align-items:flex-start;gap:12px;position:relative;z-index:1}.detail-icon[data-v-55d966d0]{flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:50%;color:var(--secondary-color)}.detail-text[data-v-55d966d0]{flex:1;font-size:14px;line-height:1.5;color:var(--text-secondary)}.media-section[data-v-55d966d0]{display:flex;justify-content:center}.image-container[data-v-55d966d0],.qrcode-container[data-v-55d966d0]{padding:20px;text-align:center;position:relative;max-width:100%}.action-image-modern[data-v-55d966d0]{max-width:100%;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:12px;box-shadow:0 8px 32px #0000001a;position:relative;z-index:1}.qrcode-content[data-v-55d966d0]{position:relative;z-index:1}.qrcode-header[data-v-55d966d0]{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;color:var(--primary-color)}.qrcode-label[data-v-55d966d0]{font-size:14px;font-weight:600}.qrcode-image[data-v-55d966d0]{max-width:200px;border-radius:12px;box-shadow:0 8px 32px #0000001a}.qrcode-text[data-v-55d966d0]{margin-top:12px;font-size:12px;color:var(--text-secondary);opacity:.8}.progress-section[data-v-55d966d0]{margin:16px 0}.progress-container[data-v-55d966d0]{padding:20px;position:relative}.progress-content[data-v-55d966d0]{position:relative;z-index:1}.progress-header[data-v-55d966d0]{display:flex;align-items:center;gap:8px;margin-bottom:16px;color:var(--primary-color)}.progress-label[data-v-55d966d0]{font-size:14px;font-weight:600}.progress-bar-modern[data-v-55d966d0]{margin-bottom:12px}.progress-track[data-v-55d966d0]{width:100%;height:8px;background:#fff3;border-radius:4px;overflow:hidden;position:relative}.progress-fill-modern[data-v-55d966d0]{height:100%;background:linear-gradient(90deg,var(--primary-color),var(--primary-light));border-radius:4px;transition:width .3s cubic-bezier(.4,0,.2,1);position:relative}.progress-fill-modern[data-v-55d966d0]:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer-55d966d0 2s infinite}@keyframes shimmer-55d966d0{0%{transform:translate(-100%)}to{transform:translate(100%)}}.progress-text-modern[data-v-55d966d0]{font-size:14px;color:var(--text-secondary);text-align:center;font-weight:500}.list-section[data-v-55d966d0]{margin:16px 0}.list-container[data-v-55d966d0]{padding:20px;position:relative}.list-content[data-v-55d966d0]{position:relative;z-index:1}.list-header[data-v-55d966d0]{display:flex;align-items:center;gap:8px;margin-bottom:16px;color:var(--secondary-color)}.list-label[data-v-55d966d0]{font-size:14px;font-weight:600}.list-items[data-v-55d966d0]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.list-item[data-v-55d966d0]{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#ffffff1a;border-radius:8px;border-left:3px solid var(--primary-color);transition:all .2s ease}.list-item[data-v-55d966d0]:hover{background:#ffffff26;transform:translate(4px)}.item-marker[data-v-55d966d0]{width:6px;height:6px;background:var(--primary-color);border-radius:50%;flex-shrink:0}.item-text[data-v-55d966d0]{font-size:14px;line-height:1.4;color:var(--text-primary)}.timeout-section[data-v-55d966d0]{margin:16px 0}.timeout-container[data-v-55d966d0]{padding:20px;position:relative;border:1px solid rgba(245,158,11,.3)}.timeout-content[data-v-55d966d0]{display:flex;align-items:center;gap:16px;position:relative;z-index:1}.timeout-icon[data-v-55d966d0]{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#f59e0b33;border-radius:50%;color:#f59e0b;animation:pulse-55d966d0 2s infinite}@keyframes pulse-55d966d0{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.8}}.timeout-info[data-v-55d966d0]{flex:1}.timeout-text[data-v-55d966d0]{font-size:14px;color:#92400e;font-weight:500;margin-bottom:8px}.timeout-progress-modern[data-v-55d966d0]{width:100%;height:4px;background:#fbbf244d;border-radius:2px;overflow:hidden}.timeout-fill-modern[data-v-55d966d0]{height:100%;background:linear-gradient(90deg,#f59e0b,#fbbf24);border-radius:2px;transition:width .1s linear}.modern-footer[data-v-55d966d0]{display:flex;justify-content:flex-end;gap:12px;padding:20px 0 0;border-top:1px solid rgba(255,255,255,.1)}.btn-modern[data-v-55d966d0]{display:flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.btn-modern[data-v-55d966d0]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.btn-modern[data-v-55d966d0]:hover:before{left:100%}.btn-secondary[data-v-55d966d0]{background:#ffffff1a;color:var(--text-primary);border:1px solid rgba(255,255,255,.2)}.btn-secondary[data-v-55d966d0]:hover{background:#fff3;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 8px 25px #00000026}.btn-primary[data-v-55d966d0]{background:linear-gradient(135deg,var(--primary-color),var(--primary-light));color:#fff;border:1px solid var(--primary-color)}.btn-primary[data-v-55d966d0]:hover{background:linear-gradient(135deg,var(--primary-dark),var(--primary-color));transform:translateY(-2px);box-shadow:0 8px 25px rgba(var(--primary-color-rgb),.3)}.btn-modern[data-v-55d966d0]:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-modern[data-v-55d966d0]:disabled:hover{transform:none;box-shadow:none}@media (max-width: 768px){.msgbox-action-modern[data-v-55d966d0]{padding:20px}.icon-container[data-v-55d966d0]{width:60px;height:60px}.icon-container svg[data-v-55d966d0]{width:24px;height:24px}.message-container[data-v-55d966d0],.detail-container[data-v-55d966d0],.progress-container[data-v-55d966d0],.list-container[data-v-55d966d0],.timeout-container[data-v-55d966d0]{padding:16px}.message-text[data-v-55d966d0]{font-size:15px}.detail-text[data-v-55d966d0]{font-size:13px}.modern-footer[data-v-55d966d0]{flex-direction:column;gap:8px}.btn-modern[data-v-55d966d0]{width:100%;justify-content:center;padding:14px 20px}.timeout-content[data-v-55d966d0]{flex-direction:column;text-align:center;gap:12px}}@media (prefers-color-scheme: dark){.glass-effect[data-v-55d966d0]{background:#0003;border-color:#ffffff1a}.glass-effect[data-v-55d966d0]:hover{background:#0000004d;border-color:#fff3}.btn-secondary[data-v-55d966d0]{background:#0003;border-color:#ffffff1a}.btn-secondary[data-v-55d966d0]:hover{background:#0000004d;border-color:#fff3}}@media (prefers-contrast: high){.glass-effect[data-v-55d966d0],.btn-modern[data-v-55d966d0]{border-width:2px}}@media (prefers-reduced-motion: reduce){.glass-effect[data-v-55d966d0],.btn-modern[data-v-55d966d0],.list-item[data-v-55d966d0],.progress-fill-modern[data-v-55d966d0],.timeout-fill-modern[data-v-55d966d0]{transition:none}.timeout-icon[data-v-55d966d0]{animation:none}.progress-fill-modern[data-v-55d966d0]:after{animation:none}.btn-modern[data-v-55d966d0]:before{transition:none}}.webview-action[data-v-a119be1f]{padding:0;display:flex;flex-direction:column;height:100%;min-height:60vh;overflow:hidden}.webview-toolbar-modern[data-v-a119be1f]{display:flex;align-items:center;padding:1rem;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.1);gap:.75rem;min-height:60px;flex-shrink:0}.toolbar-nav-group[data-v-a119be1f]{display:flex;gap:.375rem;background:#ffffff1a;padding:.25rem;border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.toolbar-btn-modern[data-v-a119be1f]{display:flex;align-items:center;justify-content:center;padding:.5rem;border:none;border-radius:var(--ds-radius-md);background:transparent;color:#000000b3;cursor:pointer;transition:all var(--ds-duration-fast) ease;position:relative;overflow:hidden}.toolbar-btn-modern[data-v-a119be1f]:hover{background:#fff3;color:#000000d9;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.toolbar-btn-modern[data-v-a119be1f]:active{transform:translateY(0)}.toolbar-btn-modern.disabled[data-v-a119be1f]{opacity:.4;cursor:not-allowed;transform:none!important}.toolbar-btn-modern.disabled[data-v-a119be1f]:hover{background:transparent;box-shadow:none}.btn-icon[data-v-a119be1f]{width:18px;height:18px;stroke-width:2}.toolbar-address-modern[data-v-a119be1f]{flex:1;max-width:600px}.address-input-container[data-v-a119be1f]{display:flex;align-items:center;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:var(--ds-radius-lg);padding:.5rem .75rem;gap:.5rem;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:all var(--ds-duration-fast) ease}.address-input-container[data-v-a119be1f]:focus-within{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a;background:#ffffff26}.address-icon[data-v-a119be1f]{width:16px;height:16px;color:#00000080;flex-shrink:0}.address-input-modern[data-v-a119be1f]{flex:1;border:none;background:transparent;color:#000c;font-size:.875rem;outline:none;padding:.25rem 0}.address-input-modern[data-v-a119be1f]::-moz-placeholder{color:#00000080}.address-input-modern[data-v-a119be1f]::placeholder{color:#00000080}.address-go-btn[data-v-a119be1f]{padding:.375rem!important;background:#3b82f6!important;color:#fff!important;border-radius:var(--ds-radius-md)!important}.address-go-btn[data-v-a119be1f]:hover{background:#2563eb!important}.toolbar-actions-modern[data-v-a119be1f]{display:flex;gap:.375rem;background:#ffffff1a;padding:.25rem;border-radius:var(--ds-radius-lg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.webview-progress-modern[data-v-a119be1f]{height:3px;background:#ffffff1a;overflow:hidden;position:relative;flex-shrink:0}.progress-bar-modern[data-v-a119be1f]{height:100%;background:linear-gradient(90deg,#3b82f6,#9333ea);transition:width var(--ds-duration-normal) cubic-bezier(.4,0,.2,1);position:relative}.progress-bar-modern[data-v-a119be1f]:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer-a119be1f 2s infinite}@keyframes shimmer-a119be1f{0%{transform:translate(-100%)}to{transform:translate(100%)}}.webview-container-modern[data-v-a119be1f]{flex:1;position:relative;overflow:hidden;background:#fff;border-radius:var(--ds-radius-md);border:1px solid rgba(255,255,255,.2);min-height:400px;display:flex;flex-direction:column}.webview-container-modern.fullscreen[data-v-a119be1f]{position:fixed;inset:0;z-index:9999;background:var(--action-color-bg);border-radius:0}.webview-frame-modern[data-v-a119be1f]{width:100%;height:100%;border:none;background:#fff;border-radius:var(--ds-radius-md);flex:1}.webview-loading-modern[data-v-a119be1f]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;color:var(--action-color-text);z-index:10}.loading-spinner-modern[data-v-a119be1f]{width:48px;height:48px;border:3px solid rgba(255,255,255,.1);border-top:3px solid var(--action-color-primary);border-radius:50%;animation:spin-a119be1f 1s linear infinite;margin:0 auto 16px;position:relative}.loading-spinner-modern[data-v-a119be1f]:after{content:"";position:absolute;inset:6px;border:2px solid transparent;border-top:2px solid var(--action-color-primary-light);border-radius:50%;animation:spin-a119be1f 1.5s linear infinite reverse}@keyframes spin-a119be1f{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text-modern[data-v-a119be1f]{font-size:16px;font-weight:500;margin-bottom:8px;color:var(--action-color-text)}.loading-progress-text[data-v-a119be1f]{font-size:14px;color:var(--action-color-text-secondary);font-weight:600}.webview-error-modern[data-v-a119be1f]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10;width:90%;max-width:400px}.error-container[data-v-a119be1f]{text-align:center;padding:32px;background:#ffffff1a;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:16px;border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 32px #0000001a}.error-icon-modern[data-v-a119be1f]{width:64px;height:64px;color:var(--action-color-danger);margin:0 auto 16px;stroke-width:1.5}.error-title-modern[data-v-a119be1f]{font-size:20px;font-weight:600;margin-bottom:8px;color:var(--action-color-text)}.error-message-modern[data-v-a119be1f]{font-size:14px;color:var(--action-color-text-secondary);margin-bottom:24px;line-height:1.5}.webview-status-modern[data-v-a119be1f]{padding:12px 16px;background:#ffffff1a;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-top:1px solid rgba(255,255,255,.1);font-size:12px}.status-info-modern[data-v-a119be1f]{display:flex;justify-content:space-between;align-items:center;gap:16px}.status-url-container[data-v-a119be1f]{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.status-icon[data-v-a119be1f]{width:14px;height:14px;color:var(--action-color-text-secondary);flex-shrink:0}.status-url-modern[data-v-a119be1f]{color:var(--action-color-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace}.status-timeout-modern[data-v-a119be1f]{display:flex;align-items:center;gap:6px;color:var(--action-color-warning);background:#ffc1071a;padding:4px 8px;border-radius:8px;font-weight:500;flex-shrink:0}.timeout-icon[data-v-a119be1f]{width:14px;height:14px}.btn-modern[data-v-a119be1f]{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border:none;border-radius:12px;font-size:14px;font-weight:500;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;min-height:44px}.btn-modern[data-v-a119be1f]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#fff3,#ffffff1a);opacity:0;transition:opacity .3s ease}.btn-modern[data-v-a119be1f]:hover:before{opacity:1}.btn-modern[data-v-a119be1f]:hover{transform:translateY(-2px);box-shadow:0 8px 25px #00000026}.btn-modern[data-v-a119be1f]:active{transform:translateY(0)}.btn-secondary[data-v-a119be1f]{background:#ffffff1a;color:var(--action-color-text);border:1px solid rgba(255,255,255,.2)}.btn-secondary[data-v-a119be1f]:hover{background:#ffffff26;border-color:#ffffff4d}.btn-primary[data-v-a119be1f]{background:linear-gradient(135deg,var(--action-color-primary) 0%,var(--action-color-primary-dark) 100%);color:#fff;box-shadow:0 4px 15px rgba(var(--action-color-primary-rgb),.3)}.btn-primary[data-v-a119be1f]:hover{box-shadow:0 8px 25px rgba(var(--action-color-primary-rgb),.4)}.action-dialog-footer[data-v-a119be1f]{display:flex;justify-content:flex-end;gap:12px;margin:0;padding:0}@media (max-width: 768px){.webview-toolbar-modern[data-v-a119be1f]{flex-wrap:wrap;padding:12px;gap:8px}.toolbar-address-modern[data-v-a119be1f]{order:3;width:100%;margin-top:8px}.toolbar-btn-modern[data-v-a119be1f]{padding:10px}.btn-icon[data-v-a119be1f]{width:20px;height:20px}.action-dialog-footer[data-v-a119be1f]{flex-direction:column-reverse;gap:8px}.btn-modern[data-v-a119be1f]{width:100%;padding:14px 24px}.error-container[data-v-a119be1f]{padding:24px;margin:16px}.status-info-modern[data-v-a119be1f]{flex-direction:column;align-items:flex-start;gap:8px}.status-timeout-modern[data-v-a119be1f]{align-self:flex-end}}@media (prefers-color-scheme: dark){.webview-action-modern[data-v-a119be1f]{background:linear-gradient(135deg,#0000001a,#0000000d)}.webview-toolbar-modern[data-v-a119be1f],.webview-status-modern[data-v-a119be1f]{background:#0003;border-color:#ffffff1a}.toolbar-nav-group[data-v-a119be1f],.toolbar-actions-modern[data-v-a119be1f]{background:#0003}.address-input-container[data-v-a119be1f]{background:#0003;border-color:#ffffff1a}.address-input-container[data-v-a119be1f]:focus-within{background:#0000004d}.error-container[data-v-a119be1f]{background:#0000004d;border-color:#ffffff1a}.btn-secondary[data-v-a119be1f]{background:#0003;border-color:#ffffff1a}.btn-secondary[data-v-a119be1f]:hover{background:#0000004d;border-color:#fff3}}@media (prefers-contrast: high){.webview-toolbar-modern[data-v-a119be1f],.webview-status-modern[data-v-a119be1f]{border-width:2px}.toolbar-btn-modern[data-v-a119be1f]{border:1px solid currentColor}.address-input-container[data-v-a119be1f]{border-width:2px}.btn-modern[data-v-a119be1f]{border:2px solid currentColor}}@media (prefers-reduced-motion: reduce){.toolbar-btn-modern[data-v-a119be1f],.btn-modern[data-v-a119be1f],.progress-bar-modern[data-v-a119be1f],.loading-spinner-modern[data-v-a119be1f],.loading-spinner-modern[data-v-a119be1f]:after{transition:none;animation:none}.toolbar-btn-modern[data-v-a119be1f]:hover,.btn-modern[data-v-a119be1f]:hover{transform:none}}.help-action-modern[data-v-005dc119]{padding:0;max-height:85vh;overflow:hidden;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px}.help-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:12px;padding:24px;max-height:60vh;overflow-y:auto}.glass-effect[data-v-005dc119]{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 32px #0000001a}.help-message-modern[data-v-005dc119]{padding:16px;border-radius:12px;font-size:16px;line-height:1.7;color:#2d3748;white-space:pre-wrap;background:linear-gradient(135deg,#f8fafc,#e2e8f0);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-left:4px solid #3182ce;box-shadow:0 8px 32px #0000001a;transition:all .3s ease;margin-bottom:8px;display:flex;align-items:flex-start;gap:8px}.help-message-modern[data-v-005dc119]:hover{transform:translateY(-1px);box-shadow:0 6px 20px #0000001a}.message-icon[data-v-005dc119]{width:20px;height:20px;color:#3182ce;flex-shrink:0}.message-text-modern[data-v-005dc119]{flex:1;line-height:1.5;color:#2d3748;font-size:14px}.help-image-modern[data-v-005dc119]{text-align:center;margin-bottom:16px}.image-container[data-v-005dc119]{display:inline-block;padding:16px;border-radius:16px;transition:all .3s ease}.image-container[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.image-content-modern[data-v-005dc119]{max-width:100%;max-height:300px;border-radius:12px;box-shadow:0 4px 20px #0000001a;transition:all .3s ease}.image-content-modern[data-v-005dc119]:hover{transform:scale(1.02);box-shadow:0 8px 30px #00000026}.image-error-modern[data-v-005dc119]{color:#e53e3e;font-size:14px;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:8px}.image-error-modern svg[data-v-005dc119]{width:16px;height:16px}.help-qrcode-modern[data-v-005dc119]{text-align:center;margin-bottom:16px}.qrcode-container-modern[data-v-005dc119]{display:inline-block;padding:20px;border-radius:16px;transition:all .3s ease}.qrcode-container-modern[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.qrcode-header[data-v-005dc119]{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;color:#4299e1;font-weight:500}.qrcode-header svg[data-v-005dc119]{width:20px;height:20px}.qrcode-image-wrapper[data-v-005dc119]{position:relative}.qrcode-image-modern[data-v-005dc119]{width:150px;height:150px;border-radius:12px;box-shadow:0 4px 20px #0000001a;transition:all .3s ease}.qrcode-image-modern[data-v-005dc119]:hover{transform:scale(1.05);box-shadow:0 8px 30px #00000026}.qrcode-error-modern[data-v-005dc119]{color:#e53e3e;font-size:14px;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:8px}.qrcode-error-modern svg[data-v-005dc119]{width:16px;height:16px}.qrcode-text-modern[data-v-005dc119]{margin-top:12px;font-size:14px;color:#718096;font-weight:500}.help-image-modern[data-v-005dc119],.help-qrcode-modern[data-v-005dc119],.help-details-modern[data-v-005dc119],.help-steps-modern[data-v-005dc119],.help-faq-modern[data-v-005dc119],.help-links-modern[data-v-005dc119],.help-contact-modern[data-v-005dc119],.help-data-modern[data-v-005dc119]{padding:16px;border-radius:12px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);transition:all .3s ease;margin-bottom:8px}.help-image-modern[data-v-005dc119]:hover,.help-qrcode-modern[data-v-005dc119]:hover,.help-details-modern[data-v-005dc119]:hover,.help-steps-modern[data-v-005dc119]:hover,.help-faq-modern[data-v-005dc119]:hover,.help-links-modern[data-v-005dc119]:hover,.help-contact-modern[data-v-005dc119]:hover,.help-data-modern[data-v-005dc119]:hover{transform:translateY(-1px);box-shadow:0 6px 20px #0000001a}.help-details-modern[data-v-005dc119]{border-left:4px solid #4299e1}.help-steps-modern[data-v-005dc119]{border-left:4px solid #48bb78}.help-faq-modern[data-v-005dc119]{border-left:4px solid #ed8936}.help-links-modern[data-v-005dc119]{border-left:4px solid #38b2ac}.help-contact-modern[data-v-005dc119]{border-left:4px solid #9f7aea}.help-data-modern[data-v-005dc119]{background:linear-gradient(135deg,#f7fafc,#edf2f7);border-left:4px solid #4299e1}.section-header[data-v-005dc119]{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid rgba(0,0,0,.1)}.section-icon[data-v-005dc119]{width:20px;height:20px;color:#4299e1;flex-shrink:0}.section-icon svg[data-v-005dc119]{width:100%;height:100%}.section-title[data-v-005dc119]{font-size:16px;font-weight:600;color:#2d3748;margin:0}.details-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:16px}.detail-card[data-v-005dc119]{padding:16px 20px;border-radius:12px;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.detail-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 8px 30px #00000026}.detail-title-modern[data-v-005dc119]{font-weight:500;margin-bottom:8px;color:#2d3748;font-size:16px}.detail-text-modern[data-v-005dc119]{line-height:1.6;color:#4a5568}.data-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:8px}.data-item[data-v-005dc119]{padding:12px 16px;border-radius:8px;background:#fffc;transition:all .3s ease;border:1px solid rgba(0,0,0,.05)}.data-item[data-v-005dc119]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #00000014;background:#fffffff2}.data-title-modern[data-v-005dc119]{font-weight:500;margin-bottom:6px;color:#2d3748;font-size:14px}.data-text-modern[data-v-005dc119]{line-height:1.5;color:#4a5568;font-size:14px}.steps-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:16px}.step-card[data-v-005dc119]{display:flex;padding:20px;border-radius:12px;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.step-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 8px 30px #00000026}.step-number-modern[data-v-005dc119]{width:32px;height:32px;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;margin-right:16px;flex-shrink:0;box-shadow:0 4px 12px #48bb784d}.step-content-modern[data-v-005dc119]{flex:1}.step-title-modern[data-v-005dc119]{font-weight:500;margin-bottom:8px;color:#2d3748;font-size:16px}.step-text-modern[data-v-005dc119]{line-height:1.6;color:#4a5568;margin-bottom:12px}.step-image-modern[data-v-005dc119]{margin-top:12px}.step-img-modern[data-v-005dc119]{max-width:100%;max-height:200px;border-radius:8px;box-shadow:0 4px 12px #0000001a}.faq-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:16px}.faq-card[data-v-005dc119]{border-radius:12px;overflow:hidden;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.faq-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.faq-card.expanded[data-v-005dc119]{box-shadow:0 12px 40px #4299e133}.faq-question-modern[data-v-005dc119]{padding:20px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all .3s ease;background:#ffffff1a}.faq-question-modern[data-v-005dc119]:hover{background:#fff3}.question-content[data-v-005dc119]{display:flex;align-items:center;gap:12px;flex:1}.question-icon-wrapper[data-v-005dc119]{width:20px;height:20px;color:#4299e1;flex-shrink:0}.question-text-modern[data-v-005dc119]{font-weight:500;color:#2d3748;font-size:16px}.expand-icon[data-v-005dc119]{width:20px;height:20px;color:#4299e1;transition:transform .3s ease;flex-shrink:0}.expand-icon.rotated[data-v-005dc119]{transform:rotate(180deg)}.faq-answer-modern[data-v-005dc119]{background:#ffffff0d;border-top:1px solid rgba(255,255,255,.1)}.answer-text-modern[data-v-005dc119]{padding:20px;line-height:1.6;color:#4a5568}.links-content-modern[data-v-005dc119]{display:flex;flex-direction:column;gap:12px}.link-card[data-v-005dc119]{display:flex;align-items:center;gap:16px;padding:16px 20px;border-radius:12px;text-decoration:none;color:#2d3748;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.link-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 8px 30px #00000026;text-decoration:none;color:#4299e1;background:#4299e11a}.link-icon-modern[data-v-005dc119]{width:20px;height:20px;color:#4299e1;flex-shrink:0}.link-content[data-v-005dc119]{flex:1;display:flex;flex-direction:column;gap:4px}.link-text-modern[data-v-005dc119]{font-weight:500;font-size:16px}.link-desc-modern[data-v-005dc119]{font-size:14px;color:#718096}.link-arrow[data-v-005dc119]{width:16px;height:16px;color:#a0aec0;flex-shrink:0;transition:all .3s ease}.link-card:hover .link-arrow[data-v-005dc119]{color:#4299e1;transform:translate(4px)}.contact-content-modern[data-v-005dc119]{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.contact-card[data-v-005dc119]{display:flex;align-items:center;gap:16px;padding:16px 20px;border-radius:12px;transition:all .3s ease;border:1px solid rgba(255,255,255,.3)}.contact-card[data-v-005dc119]:hover{transform:translateY(-2px);box-shadow:0 8px 30px #00000026}.contact-icon[data-v-005dc119]{width:24px;height:24px;color:#9f7aea;flex-shrink:0}.contact-info[data-v-005dc119]{display:flex;flex-direction:column;gap:4px}.contact-label-modern[data-v-005dc119]{font-size:14px;color:#718096;font-weight:500}.contact-value-modern[data-v-005dc119]{color:#4299e1;text-decoration:none;font-weight:500;transition:all .3s ease}.contact-value-modern[data-v-005dc119]:hover{color:#2b6cb0;text-decoration:underline}.help-timeout-modern[data-v-005dc119]{display:flex;align-items:center;gap:8px;padding:12px 16px;background:linear-gradient(135deg,#fed7d7,#feb2b2);border-radius:8px;margin-top:12px;border-left:4px solid #e53e3e;font-size:14px;color:#742a2a;animation:pulse-005dc119 2s infinite}.timeout-icon[data-v-005dc119]{width:18px;height:18px;color:#e53e3e;flex-shrink:0}@keyframes pulse-005dc119{0%,to{opacity:1}50%{opacity:.8}}.action-dialog-footer[data-v-005dc119]{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.2)}.btn-modern[data-v-005dc119]{display:flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:12px;font-size:14px;font-weight:500;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden}.btn-modern[data-v-005dc119]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.btn-modern[data-v-005dc119]:hover:before{left:100%}.btn-modern svg[data-v-005dc119]{width:16px;height:16px;flex-shrink:0}.btn-secondary[data-v-005dc119]{background:#ffffff1a;color:#4a5568;border:1px solid rgba(255,255,255,.2)}.btn-secondary[data-v-005dc119]:hover{background:#fff3;color:#2d3748;transform:translateY(-2px);box-shadow:0 8px 25px #00000026}.btn-primary[data-v-005dc119]{background:linear-gradient(135deg,#4299e1,#667eea);color:#fff;border:1px solid rgba(255,255,255,.2)}.btn-primary[data-v-005dc119]:hover{background:linear-gradient(135deg,#3182ce,#5a67d8);transform:translateY(-2px);box-shadow:0 8px 25px #4299e166}.btn-modern[data-v-005dc119]:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.help-content-modern[data-v-005dc119] code{background:#4299e11a;color:#2b6cb0;padding:4px 8px;border-radius:6px;font-family:JetBrains Mono,Fira Code,Courier New,monospace;font-size:.9em;font-weight:500}.help-content-modern[data-v-005dc119] pre{background:#2d3748e6;color:#e2e8f0;padding:20px;border-radius:12px;overflow-x:auto;border-left:4px solid #4299e1;margin:16px 0}.help-content-modern[data-v-005dc119] pre code{background:none;color:inherit;padding:0}.help-content-modern[data-v-005dc119] strong{font-weight:600;color:#2d3748}.help-content-modern[data-v-005dc119] em{font-style:italic;color:#4a5568}.help-content-modern[data-v-005dc119]::-webkit-scrollbar{width:8px}.help-content-modern[data-v-005dc119]::-webkit-scrollbar-track{background:#ffffff1a;border-radius:4px}.help-content-modern[data-v-005dc119]::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:4px}.help-content-modern[data-v-005dc119]::-webkit-scrollbar-thumb:hover{background:#ffffff80}@media (max-width: 768px){.help-action-modern[data-v-005dc119]{max-height:90vh}.help-content-modern[data-v-005dc119]{padding:16px;gap:8px;max-height:calc(90vh - 70px)}.help-message-modern[data-v-005dc119],.help-image-modern[data-v-005dc119],.help-qrcode-modern[data-v-005dc119],.help-details-modern[data-v-005dc119],.help-steps-modern[data-v-005dc119],.help-faq-modern[data-v-005dc119],.help-links-modern[data-v-005dc119],.help-contact-modern[data-v-005dc119],.help-data-modern[data-v-005dc119]{padding:12px;margin-bottom:6px}.section-header[data-v-005dc119]{margin-bottom:8px}.section-title[data-v-005dc119]{font-size:14px}.step-card[data-v-005dc119]{flex-direction:column;align-items:flex-start}.step-number-modern[data-v-005dc119]{margin-right:0;margin-bottom:12px}.contact-content-modern[data-v-005dc119]{grid-template-columns:1fr}.action-dialog-footer[data-v-005dc119]{flex-direction:column;gap:8px;padding:16px}.btn-modern[data-v-005dc119]{width:100%;justify-content:center}.section-title[data-v-005dc119]{font-size:16px}.link-card[data-v-005dc119]{flex-direction:column;align-items:flex-start;gap:12px}.link-arrow[data-v-005dc119]{align-self:flex-end}}@media (prefers-color-scheme: dark){.help-action-modern[data-v-005dc119]{background:linear-gradient(135deg,#2d3748,#4a5568)}.glass-effect[data-v-005dc119]{background:#0003;border:1px solid rgba(255,255,255,.1)}.help-message-modern[data-v-005dc119]{background:linear-gradient(135deg,#2d3748f2,#1a202cf2);border-color:#ffffff1a}.help-image-modern[data-v-005dc119],.help-qrcode-modern[data-v-005dc119],.help-details-modern[data-v-005dc119],.help-steps-modern[data-v-005dc119],.help-faq-modern[data-v-005dc119],.help-links-modern[data-v-005dc119],.help-contact-modern[data-v-005dc119]{background:#2d3748f2;border-color:#ffffff1a}.help-data-modern[data-v-005dc119]{background:linear-gradient(135deg,#2d3748f2,#1a202cf2);border-color:#ffffff1a}.data-item[data-v-005dc119]{background:#1a202ccc;border-color:#ffffff0d}.data-item[data-v-005dc119]:hover{background:#1a202cf2}.section-title[data-v-005dc119],.question-text-modern[data-v-005dc119],.link-text-modern[data-v-005dc119],.detail-title-modern[data-v-005dc119],.step-title-modern[data-v-005dc119],.data-title-modern[data-v-005dc119]{color:#e2e8f0}.message-text-modern[data-v-005dc119],.detail-text-modern[data-v-005dc119],.step-text-modern[data-v-005dc119],.answer-text-modern[data-v-005dc119],.data-text-modern[data-v-005dc119]{color:#cbd5e0}}@media (prefers-contrast: high){.glass-effect[data-v-005dc119]{background:#fffffff2;border:2px solid #000}.btn-modern[data-v-005dc119]{border:2px solid #000}.section-title[data-v-005dc119],.question-text-modern[data-v-005dc119],.link-text-modern[data-v-005dc119]{color:#000;font-weight:700}}@media (prefers-reduced-motion: reduce){[data-v-005dc119]{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.btn-modern[data-v-005dc119]:before{display:none}}:root{--action-primary: #1890ff;--action-primary-hover: #40a9ff;--action-primary-active: #096dd9;--action-success: #52c41a;--action-warning: #faad14;--action-error: #f5222d;--action-text: #262626;--action-text-secondary: #8c8c8c;--action-text-disabled: #bfbfbf;--action-border: #d9d9d9;--action-border-hover: #40a9ff;--action-background: #ffffff;--action-background-light: #fafafa;--action-background-disabled: #f5f5f5;--action-color-primary: var(--action-primary);--action-color-primary-light: var(--action-primary-hover);--action-color-primary-dark: var(--action-primary-active);--action-color-primary-rgb: 24, 144, 255;--action-color-secondary: #6c757d;--action-color-secondary-rgb: 108, 117, 125;--action-color-success: var(--action-success);--action-color-warning: var(--action-warning);--action-color-error: var(--action-error);--action-color-text: var(--action-text);--action-color-text-secondary: var(--action-text-secondary);--action-color-text-disabled: var(--action-text-disabled);--action-color-border: var(--action-border);--action-color-border-hover: var(--action-border-hover);--action-color-bg: var(--action-background);--action-color-bg-light: var(--action-background-light);--action-color-bg-disabled: var(--action-background-disabled);--action-border-radius: 6px;--action-border-radius-sm: 4px;--action-border-radius-lg: 8px;--action-padding: 16px;--action-padding-sm: 8px;--action-padding-lg: 24px;--action-margin: 8px;--action-margin-sm: 4px;--action-margin-lg: 16px;--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--spacing-xl: 32px;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--font-size-xs: 12px;--font-size-sm: 14px;--font-size-md: 16px;--font-size-lg: 18px;--font-size-xl: 20px;--action-shadow: 0 2px 8px rgba(0, 0, 0, .15);--action-shadow-hover: 0 4px 12px rgba(0, 0, 0, .15);--action-shadow-active: 0 0 0 2px rgba(24, 144, 255, .2);--action-transition: all .3s cubic-bezier(.645, .045, .355, 1);--action-transition-fast: all .2s cubic-bezier(.645, .045, .355, 1);--action-transition-duration: .3s;--action-shadow-small: 0 1px 3px rgba(0, 0, 0, .12);--action-shadow-medium: 0 4px 6px rgba(0, 0, 0, .1);--action-shadow-large: 0 10px 25px rgba(0, 0, 0, .15);--action-shadow-xl: 0 20px 40px rgba(0, 0, 0, .2)}.action-component *{box-sizing:border-box}.action-mask{position:fixed;inset:0;background:#00000073;z-index:1000;display:flex;align-items:center;justify-content:center;animation:actionFadeIn .3s ease-out}.action-mask.closing{animation:actionFadeOut .3s ease-out}.action-dialog{background:var(--action-background);border-radius:var(--action-border-radius-lg);box-shadow:var(--action-shadow);max-width:90vw;max-height:90vh;overflow:hidden;animation:actionSlideIn .3s ease-out;position:relative}.action-dialog.closing{animation:actionSlideOut .3s ease-out}.action-dialog-header{padding:var(--action-padding) var(--action-padding) 0;border-bottom:1px solid var(--action-border);margin-bottom:var(--action-padding)}.action-dialog-title{font-size:16px;font-weight:600;color:var(--action-text);margin:0;padding-bottom:var(--action-padding-sm)}.action-dialog-content{padding:0 var(--action-padding)}.action-dialog-footer{padding:var(--action-padding);border-top:1px solid var(--action-border);margin-top:var(--action-padding);display:flex;justify-content:flex-end;gap:var(--action-margin)}.action-dialog-close{position:absolute;top:var(--action-padding-sm);right:var(--action-padding-sm);width:32px;height:32px;border:none;background:transparent;cursor:pointer;border-radius:var(--action-border-radius-sm);display:flex;align-items:center;justify-content:center;color:var(--action-text-secondary);transition:var(--action-transition-fast)}.action-dialog-close:hover{background:var(--action-background-light);color:var(--action-text)}.action-button{padding:var(--action-padding-sm) var(--action-padding);border:1px solid var(--action-border);border-radius:var(--action-border-radius);background:var(--action-background);color:var(--action-text);cursor:pointer;font-size:14px;line-height:1.5;transition:var(--action-transition);display:inline-flex;align-items:center;justify-content:center;min-width:80px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.action-button:hover{border-color:var(--action-border-hover);color:var(--action-primary)}.action-button:active{transform:translateY(1px)}.action-button:disabled{background:var(--action-background-disabled);border-color:var(--action-border);color:var(--action-text-disabled);cursor:not-allowed}.action-button-primary{background:var(--action-primary);border-color:var(--action-primary);color:#fff}.action-button-primary:hover{background:var(--action-primary-hover);border-color:var(--action-primary-hover);color:#fff}.action-button-primary:active{background:var(--action-primary-active);border-color:var(--action-primary-active)}.action-button-danger{background:var(--action-error);border-color:var(--action-error);color:#fff}.action-button-danger:hover{background:#ff4d4f;border-color:#ff4d4f;color:#fff}.action-input{width:100%;padding:var(--action-padding-sm) 12px;border:1px solid var(--action-border);border-radius:var(--action-border-radius);font-size:14px;line-height:1.5;color:var(--action-text);background:var(--action-background);transition:var(--action-transition)}.action-input:focus{border-color:var(--action-primary);outline:none;box-shadow:var(--action-shadow-active)}.action-input:disabled{background:var(--action-background-disabled);color:var(--action-text-disabled);cursor:not-allowed}.action-input.error{border-color:var(--action-error)}.action-input.error:focus{box-shadow:0 0 0 2px #f5222d33}.action-textarea{resize:vertical;min-height:80px;font-family:inherit}.action-label{display:block;margin-bottom:var(--action-margin-sm);font-size:14px;font-weight:500;color:var(--action-text)}.action-label.required:after{content:" *";color:var(--action-error)}.action-tip{font-size:12px;color:var(--action-text-secondary);margin-top:var(--action-margin-sm);line-height:1.4}.action-tip.error{color:var(--action-error)}.action-form-item{margin-bottom:var(--action-padding)}.action-form-item:last-child{margin-bottom:0}.action-option{padding:12px;border:1px solid var(--action-border);border-radius:var(--action-border-radius);cursor:pointer;transition:var(--action-transition);background:var(--action-background);margin-bottom:var(--action-margin);display:flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.action-option:hover{background:var(--action-background-light);border-color:var(--action-primary)}.action-option.selected{background:var(--action-primary);border-color:var(--action-primary);color:#fff}.action-option.disabled{background:var(--action-background-disabled);color:var(--action-text-disabled);cursor:not-allowed}.action-options-grid{display:grid;gap:var(--action-margin)}.action-options-grid.columns-1{grid-template-columns:1fr}.action-options-grid.columns-2{grid-template-columns:repeat(2,1fr)}.action-options-grid.columns-3{grid-template-columns:repeat(3,1fr)}.action-options-grid.columns-4{grid-template-columns:repeat(4,1fr)}.action-checkbox{width:16px;height:16px;margin-right:var(--action-margin);accent-color:var(--action-primary)}.action-image{max-width:100%;height:auto;border-radius:var(--action-border-radius);margin:var(--action-margin) 0;cursor:pointer;transition:var(--action-transition)}.action-image:hover{transform:scale(1.02);box-shadow:var(--action-shadow-hover)}.action-qrcode{text-align:center;margin:var(--action-padding) 0}.action-qrcode img{border:1px solid var(--action-border);border-radius:var(--action-border-radius)}.action-webview{width:100%;border:1px solid var(--action-border);border-radius:var(--action-border-radius);background:var(--action-background)}.action-loading{display:flex;align-items:center;justify-content:center;padding:var(--action-padding-lg);color:var(--action-text-secondary)}.action-loading:before{content:"";width:20px;height:20px;border:2px solid var(--action-border);border-top-color:var(--action-primary);border-radius:50%;animation:actionSpin 1s linear infinite;margin-right:var(--action-margin)}.action-error{padding:var(--action-padding);background:#fff2f0;border:1px solid #ffccc7;border-radius:var(--action-border-radius);color:var(--action-error);margin:var(--action-margin) 0}.action-success{padding:var(--action-padding);background:#f6ffed;border:1px solid #b7eb8f;border-radius:var(--action-border-radius);color:var(--action-success);margin:var(--action-margin) 0}.action-quick-select{display:flex;flex-wrap:wrap;gap:var(--action-margin-sm);margin-top:var(--action-margin)}.action-quick-select-item{padding:4px var(--action-margin);background:var(--action-background-light);border:1px solid var(--action-border);border-radius:var(--action-border-radius-sm);cursor:pointer;font-size:12px;transition:var(--action-transition-fast)}.action-quick-select-item:hover{background:var(--action-primary);border-color:var(--action-primary);color:#fff}.action-help{background:#f0f9ff;border:1px solid #91d5ff;border-radius:var(--action-border-radius);padding:var(--action-padding-sm);margin-top:var(--action-margin);font-size:12px;color:#1890ff;line-height:1.4}@media (max-width: 768px){.action-dialog{margin:var(--action-padding);max-width:calc(100vw - 32px)}.action-options-grid.columns-3,.action-options-grid.columns-4{grid-template-columns:repeat(2,1fr)}.action-dialog-footer{flex-direction:column-reverse}.action-button{width:100%}}@media (max-width: 480px){.action-options-grid.columns-2,.action-options-grid.columns-3,.action-options-grid.columns-4{grid-template-columns:1fr}}@keyframes actionFadeIn{0%{opacity:0}to{opacity:1}}@keyframes actionFadeOut{0%{opacity:1}to{opacity:0}}@keyframes actionSlideIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes actionSlideOut{0%{opacity:1;transform:scale(1) translateY(0)}to{opacity:0;transform:scale(.9) translateY(-20px)}}@keyframes actionSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.action-dialog-content::-webkit-scrollbar{width:6px}.action-dialog-content::-webkit-scrollbar-track{background:var(--action-background-light);border-radius:3px}.action-dialog-content::-webkit-scrollbar-thumb{background:var(--action-border);border-radius:3px}.action-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--action-text-secondary)}.global-action-dialog[data-v-cd5d9c46] .arco-modal-header{border-bottom:1px solid var(--color-border-2);padding:16px 24px}.global-action-dialog[data-v-cd5d9c46] .arco-modal-body{padding:0;max-height:70vh;overflow:hidden}.global-action-content[data-v-cd5d9c46]{display:flex;flex-direction:column;height:100%}.search-section[data-v-cd5d9c46]{padding:20px 24px 16px;border-bottom:1px solid var(--color-border-2);background:var(--color-bg-1)}.search-filters[data-v-cd5d9c46]{display:flex;gap:12px;align-items:center}.action-search[data-v-cd5d9c46]{flex:2;min-width:60%}.site-filter[data-v-cd5d9c46]{flex:1;min-width:100px;max-width:120px}.action-list-container[data-v-cd5d9c46]{flex:1;overflow-y:auto;min-height:300px;max-height:400px}.empty-state[data-v-cd5d9c46]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;text-align:center}.empty-icon[data-v-cd5d9c46]{font-size:48px;color:var(--color-text-4);margin-bottom:16px}.empty-text[data-v-cd5d9c46]{font-size:16px;font-weight:500;color:var(--color-text-2);margin-bottom:8px}.empty-hint[data-v-cd5d9c46]{font-size:14px;color:var(--color-text-3)}.action-list[data-v-cd5d9c46]{padding:8px 0}.action-item[data-v-cd5d9c46]{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;cursor:pointer;transition:all .2s ease;border-bottom:1px solid var(--color-border-1)}.action-item[data-v-cd5d9c46]:hover{background:var(--color-bg-2)}.action-item[data-v-cd5d9c46]:last-child{border-bottom:none}.action-main[data-v-cd5d9c46]{flex:1;display:flex;align-items:center;justify-content:space-between;min-width:0}.action-name[data-v-cd5d9c46]{display:flex;align-items:center;font-size:15px;font-weight:500;color:var(--color-text-1);flex:1;min-width:0}.action-icon[data-v-cd5d9c46]{margin-right:8px;color:var(--color-primary-6);font-size:16px;flex-shrink:0}.action-source[data-v-cd5d9c46]{display:flex;align-items:center;font-size:13px;color:var(--color-text-3);margin-left:16px;flex-shrink:0}.source-icon[data-v-cd5d9c46]{margin-right:4px;font-size:14px}.action-arrow[data-v-cd5d9c46]{margin-left:16px;color:var(--color-text-4);font-size:14px;flex-shrink:0}.action-stats[data-v-cd5d9c46]{display:flex;align-items:center;gap:24px;padding:16px 24px;background:var(--color-bg-2);border-top:1px solid var(--color-border-2)}.stats-item[data-v-cd5d9c46]{display:flex;align-items:center;font-size:13px}.stats-label[data-v-cd5d9c46]{color:var(--color-text-3);margin-right:4px}.stats-value[data-v-cd5d9c46]{color:var(--color-text-1);font-weight:500}@media (max-width: 768px){.global-action-dialog[data-v-cd5d9c46] .arco-modal{width:95vw!important;margin:20px auto}.search-filters[data-v-cd5d9c46]{flex-direction:column;gap:12px}.site-filter[data-v-cd5d9c46]{width:100%}.action-main[data-v-cd5d9c46]{flex-direction:column;align-items:flex-start;gap:8px}.action-source[data-v-cd5d9c46]{margin-left:0}.action-stats[data-v-cd5d9c46]{flex-direction:column;align-items:flex-start;gap:8px}}@media (prefers-color-scheme: dark){.search-section[data-v-cd5d9c46],.action-item[data-v-cd5d9c46]:hover,.action-stats[data-v-cd5d9c46]{background:var(--color-bg-3)}}.breadcrumb-container[data-v-2f29cc38]{display:flex;align-items:center;width:100%;padding:16px 20px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border-2);box-sizing:border-box}.header-left[data-v-2f29cc38]{display:flex;align-items:center;flex:0 0 auto;min-width:0}.navigation-title[data-v-2f29cc38]{font-size:16px;font-weight:600;color:var(--color-text-1);margin-right:16px;white-space:nowrap}.header-left button[data-v-2f29cc38]{margin-right:12px}.header-center[data-v-2f29cc38]{flex:1;display:flex;justify-content:center;padding:0 20px;min-width:0}.header-center[data-v-2f29cc38] .arco-input-search{max-width:400px;width:100%}.header-right[data-v-2f29cc38]{display:flex;align-items:center;flex:0 0 auto;min-width:0}.header-right button[data-v-2f29cc38]{margin-right:12px}.header-right button[data-v-2f29cc38]:last-of-type{margin-right:16px}.header-right[data-v-2f29cc38] .current-time{font-size:14px;color:var(--color-text-2);white-space:nowrap;margin-left:8px}.push-modal-content[data-v-2f29cc38]{padding:20px 0}.push-description[data-v-2f29cc38]{display:flex;align-items:center;margin-bottom:20px;font-size:16px;color:var(--color-text-1);font-weight:500}.push-icon[data-v-2f29cc38]{margin-right:8px;font-size:18px;color:var(--color-primary-6)}.push-textarea[data-v-2f29cc38]{margin-bottom:16px}.push-textarea[data-v-2f29cc38] .arco-textarea{border-radius:8px;border:2px solid var(--color-border-2);transition:all .3s ease;font-family:Consolas,Monaco,Courier New,monospace;line-height:1.6}.push-textarea[data-v-2f29cc38] .arco-textarea:focus{border-color:var(--color-primary-6);box-shadow:0 0 0 3px var(--color-primary-1)}.push-textarea[data-v-2f29cc38] .arco-textarea::-moz-placeholder{color:var(--color-text-3);font-style:italic}.push-textarea[data-v-2f29cc38] .arco-textarea::placeholder{color:var(--color-text-3);font-style:italic}.push-hint[data-v-2f29cc38]{background:var(--color-bg-2);border-radius:8px;padding:16px;border-left:4px solid var(--color-primary-6)}.hint-item[data-v-2f29cc38]{display:flex;align-items:flex-start;margin-bottom:8px;font-size:14px;color:var(--color-text-2);line-height:1.5}.hint-item[data-v-2f29cc38]:last-child{margin-bottom:0}.hint-icon[data-v-2f29cc38]{margin-right:8px;margin-top:2px;font-size:16px;color:var(--color-primary-6);flex-shrink:0}@media (max-width: 1200px){.header-center[data-v-2f29cc38] .arco-input-search{max-width:300px}}@media (max-width: 768px){.breadcrumb-container[data-v-2f29cc38]{padding:12px 16px}.navigation-title[data-v-2f29cc38]{font-size:14px;margin-right:12px}.header-center[data-v-2f29cc38]{padding:0 12px}.header-center[data-v-2f29cc38] .arco-input-search{max-width:250px}.header-left button[data-v-2f29cc38],.header-right button[data-v-2f29cc38]{margin-right:8px}}.filter-section[data-v-90bc92fe]{flex-shrink:0;background:#fff;z-index:99;margin-bottom:8px}.filter-header-left[data-v-90bc92fe]{display:flex;justify-content:flex-start;align-items:center;padding:8px 0;margin-bottom:4px}.filter-toggle-btn[data-v-90bc92fe]{display:flex;align-items:center;gap:4px;font-weight:500}.filter-header-with-reset[data-v-90bc92fe]{position:absolute;left:16px;top:4px;z-index:10;width:28px}.filter-reset-btn[data-v-90bc92fe]{color:#fff;font-size:12px;padding:4px;height:28px;width:28px;border-radius:6px;transition:all .2s ease;display:flex;align-items:center;justify-content:center;background-color:var(--color-primary-6);border:none;box-shadow:0 2px 4px #0000001a}.filter-reset-btn[data-v-90bc92fe]:hover{color:#fff;background-color:var(--color-primary-7);transform:translateY(-1px);box-shadow:0 4px 8px #00000026}.filter-content[data-v-90bc92fe]{position:relative;padding:0 16px 8px 52px}.filter-group[data-v-90bc92fe]{margin-bottom:4px;padding:4px 12px;background:var(--color-fill-1);border-radius:6px}.filter-group[data-v-90bc92fe]:last-child{margin-bottom:0}.filter-group-row[data-v-90bc92fe]{display:flex;align-items:center;gap:16px;min-height:28px}.filter-group-title[data-v-90bc92fe]{font-size:13px;font-weight:600;color:var(--color-text-2);white-space:nowrap;flex-shrink:0;min-width:70px;text-align:left;background:var(--color-fill-3);padding:4px 8px 4px 20px;border-radius:4px;position:relative}.filter-group-title[data-v-90bc92fe]:before{content:"";position:absolute;left:6px;top:50%;transform:translateY(-50%);width:8px;height:8px;background:var(--color-primary-light-4);border-radius:2px}.filter-options-container[data-v-90bc92fe]{flex:1;overflow:hidden}.filter-options[data-v-90bc92fe]{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:2px 0;scrollbar-width:thin;scrollbar-color:var(--color-border-3) transparent}.filter-options[data-v-90bc92fe]::-webkit-scrollbar{height:4px}.filter-options[data-v-90bc92fe]::-webkit-scrollbar-track{background:transparent}.filter-options[data-v-90bc92fe]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:2px}.filter-options[data-v-90bc92fe]::-webkit-scrollbar-thumb:hover{background:var(--color-border-2)}.filter-option-tag[data-v-90bc92fe]{cursor:pointer;transition:all .2s ease;white-space:nowrap;flex-shrink:0}.filter-option-tag[data-v-90bc92fe]:hover{transform:translateY(-1px)}.collapse-enter-active[data-v-90bc92fe],.collapse-leave-active[data-v-90bc92fe]{transition:all .3s ease;overflow:hidden}.collapse-enter-from[data-v-90bc92fe],.collapse-leave-to[data-v-90bc92fe]{max-height:0;opacity:0;padding-top:0;padding-bottom:0}.collapse-enter-to[data-v-90bc92fe],.collapse-leave-from[data-v-90bc92fe]{max-height:500px;opacity:1}.category-nav-container[data-v-9076ce57]{margin-bottom:16px}.category-nav-wrapper[data-v-9076ce57]{display:flex;align-items:center;position:relative;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:8px 8px 0 0;padding:0 16px;box-shadow:0 2px 8px #0000001a;z-index:2}.category-nav-container[data-v-9076ce57] .filter-section{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:0 0 8px 8px;border-top:1px solid rgba(0,0,0,.1);box-shadow:0 2px 8px #0000001a;margin-top:-1px;z-index:1}.category-tabs[data-v-9076ce57]{flex:1;overflow:hidden}.category-tabs[data-v-9076ce57] .arco-tabs-nav{margin-bottom:0;border-bottom:none}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab{padding:12px 16px;margin-right:8px;border-radius:6px 6px 0 0;transition:all .3s ease;color:#666;font-weight:500}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab:hover{color:#165dff}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:hover,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:focus,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active:hover{background-color:#165dff!important;background:#165dff!important;color:#fff!important;font-weight:600!important;border:none!important;border-color:transparent!important}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active .category-name,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:hover .category-name,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:focus .category-name,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active .category-name,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active:hover .category-name{color:#fff!important}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active .filter-icon,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:hover .filter-icon,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active:focus .filter-icon,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active .filter-icon,.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active.arco-tabs-tab-active:hover .filter-icon{color:#fff!important;opacity:1!important}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab.arco-tabs-nav-tab-active .filter-icon:hover{background:#fff3}.category-tabs[data-v-9076ce57] .arco-tabs-nav-ink{display:none}.category-tab-title[data-v-9076ce57]{display:flex;align-items:center;gap:4px;width:100%;padding:2px 4px;border-radius:4px;transition:all .3s ease}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab-active .category-tab-title{cursor:pointer}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab-active .category-tab-title:hover{background:#ffffff1a}.category-name[data-v-9076ce57]{cursor:pointer;flex:1}.filter-icon[data-v-9076ce57]{font-size:12px;transition:all .3s ease;opacity:.7;cursor:pointer;padding:2px;border-radius:2px;flex-shrink:0}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab[class*=active]{background-color:#165dff!important;background:#165dff!important;color:#fff!important}.category-tabs[data-v-9076ce57] .arco-tabs-nav-tab[class*=active] *{color:#fff!important}.filter-icon[data-v-9076ce57]:hover{opacity:1;background:#165dff1a}.filter-icon-active[data-v-9076ce57]{opacity:1;color:#165dff}.category-manage[data-v-9076ce57]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:6px;background:#165dff1a;color:#165dff;cursor:pointer;transition:all .3s ease;margin-left:12px}.special-category-close[data-v-9076ce57]{display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 12px;border-radius:6px;background:#f53f3f1a;color:#f53f3f;cursor:pointer;transition:all .3s ease;margin-left:12px;font-size:14px}.special-category-close[data-v-9076ce57]:hover{background:#f53f3f33;transform:translateY(-1px)}.special-category-header[data-v-9076ce57]{display:flex;align-items:center;height:40px;padding:0 16px;background:#165dff0d;border-radius:8px;border:1px solid rgba(22,93,255,.1)}.special-category-title[data-v-9076ce57]{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500}.special-category-title .category-name[data-v-9076ce57]{color:#165dff}.special-category-title .category-type[data-v-9076ce57]{color:#86909c;font-size:14px;font-weight:400}.category-manage[data-v-9076ce57]:hover{background:#165dff;color:#fff;transform:scale(1.05)}.video-grid-container[data-v-eac41610]{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;height:100%;min-height:0}.video-scroll-container[data-v-eac41610]{width:100%;flex:1;padding:2px 20px 2px 16px}.video_list_hover[data-v-eac41610]{transition:transform .2s ease}.video_list_hover[data-v-eac41610]:hover{transform:translateY(-2px)}.video_list_item[data-v-eac41610]{position:relative;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 1px 8px #0000000f;transition:all .3s cubic-bezier(.4,0,.2,1);height:auto;display:flex;flex-direction:column;cursor:pointer}.video_list_item[data-v-eac41610]:hover{box-shadow:0 4px 20px #0000001f;transform:translateY(-2px)}.video_list_item_img[data-v-eac41610]{position:relative;width:100%;overflow:hidden;background:#f5f5f5;border-top-left-radius:8px;border-top-right-radius:8px}.folder-icon-container[data-v-eac41610]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-top-left-radius:8px;border-top-right-radius:8px}.folder-icon[data-v-eac41610]{font-size:60px;color:#ffa940;transition:all .3s ease}.video_list_item:hover .folder-icon[data-v-eac41610]{color:#ff7a00;transform:scale(1.1)}.file-icon-container[data-v-eac41610]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-top-left-radius:8px;border-top-right-radius:8px}.file-type-icon[data-v-eac41610]{font-size:60px;color:#6c757d;transition:all .3s ease}.video_list_item:hover .file-type-icon[data-v-eac41610]{color:#495057;transform:scale(1.1)}.video_list_item_img_cover[data-v-eac41610]{width:100%;border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden;vertical-align:top;display:block}.video_list_item[data-v-eac41610] .arco-image-img{width:100%;height:300px;-o-object-fit:cover;object-fit:cover}.video_list_item:hover .video_list_item_img_cover[data-v-eac41610]{transform:scale(1.05)}.video_remarks_overlay[data-v-eac41610]{position:absolute;top:4px;right:4px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:500;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 4px #0000004d;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.video_list_item_title[data-v-eac41610]{padding:6px 8px;background:#fff;flex-shrink:0;height:auto;min-height:16px;display:flex;align-items:center;overflow:hidden;position:relative}.title-text[data-v-eac41610]{font-size:12px;font-weight:500;color:#2c2c2c;line-height:1;white-space:nowrap;transition:color .2s ease;margin:0;width:100%;display:block}.title-text[data-v-eac41610]:not([data-overflow=true]){overflow:hidden;text-overflow:ellipsis}.title-text[data-overflow=true][data-v-eac41610]{animation:marquee-eac41610 10s linear infinite;animation-delay:1s;width:-moz-max-content;width:max-content;min-width:100%}.title-text[data-overflow=true][data-v-eac41610]:hover{animation-play-state:paused}@keyframes marquee-eac41610{0%{transform:translate(0)}15%{transform:translate(0)}85%{transform:translate(calc(-100% + 100px))}to{transform:translate(calc(-100% + 100px))}}.video_list_item:hover .title-text[data-v-eac41610]{color:#1890ff}.loading-container[data-v-eac41610]{text-align:center;padding:20px}.loading-text[data-v-eac41610]{margin-top:8px;color:var(--color-text-3);font-size:14px}.no-more-data[data-v-eac41610]{text-align:center;padding:20px;color:var(--color-text-3);font-size:14px}.empty-state[data-v-eac41610]{text-align:center;padding:40px 20px;color:var(--color-text-3);font-size:16px}.bottom-spacer[data-v-eac41610]{height:8px}.category-modal-content[data-v-14f43b3d]{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;max-height:60vh;overflow-y:auto;padding:16px 0}.category-item[data-v-14f43b3d]{padding:12px 16px;background:#f7f8fa;border:1px solid #e5e6eb;border-radius:8px;text-align:center;cursor:pointer;transition:all .2s ease;font-size:14px;font-weight:500;color:#1d2129}.category-item[data-v-14f43b3d]:hover{background:#e8f3ff;border-color:#7bc4ff;color:#165dff;transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.category-item.active[data-v-14f43b3d]{background:#165dff!important;border-color:#165dff!important;color:#fff!important;font-weight:600}.category-item.active[data-v-14f43b3d]:hover{background:#4080ff!important;border-color:#4080ff!important;color:#fff!important}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar{width:6px}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-track{background:#f7f8fa;border-radius:3px}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-thumb{background:#c9cdd4;border-radius:3px}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-thumb:hover{background:#a9aeb8}@media (prefers-color-scheme: dark){.category-item[data-v-14f43b3d]{background:#2a2a2b;border-color:#3a3a3c;color:#fff}.category-item[data-v-14f43b3d]:hover{background:#1a3a5c;border-color:#4080ff;color:#7bc4ff}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-track{background:#2a2a2b}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-thumb{background:#4a4a4c}.category-modal-content[data-v-14f43b3d]::-webkit-scrollbar-thumb:hover{background:#5a5a5c}}.folder-breadcrumb[data-v-670af4b8]{background:#f8f9fa;border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 1px 3px #0000000d}.breadcrumb-container[data-v-670af4b8]{flex:1;min-width:0}.breadcrumb-item[data-v-670af4b8]{font-size:14px}.breadcrumb-link[data-v-670af4b8]{color:#1890ff;text-decoration:none;cursor:pointer;transition:color .2s ease;padding:4px 8px;border-radius:4px;display:inline-block}.breadcrumb-link[data-v-670af4b8]:hover{color:#40a9ff;background-color:#1890ff0f}.current-item[data-v-670af4b8]{color:#262626;font-weight:500;padding:4px 8px;background-color:#1890ff1a;border-radius:4px;display:inline-block}.breadcrumb-actions[data-v-670af4b8]{display:flex;gap:8px;flex-shrink:0}.action-btn[data-v-670af4b8]{color:#6b7280;border:1px solid #d1d5db;background:#fff;transition:all .2s ease}.action-btn[data-v-670af4b8]:hover:not(:disabled){color:#1890ff;border-color:#1890ff;background:#1890ff0a}.action-btn[data-v-670af4b8]:disabled{opacity:.5;cursor:not-allowed}.exit-btn[data-v-670af4b8]{background:#ff4d4f!important;border-color:#ff4d4f!important;color:#fff!important}.exit-btn[data-v-670af4b8]:hover:not(:disabled){background:#ff7875!important;border-color:#ff7875!important;color:#fff!important}@media (max-width: 768px){.folder-breadcrumb[data-v-670af4b8]{flex-direction:column;align-items:stretch;gap:12px}.breadcrumb-actions[data-v-670af4b8]{justify-content:center}.action-btn[data-v-670af4b8]{flex:1;max-width:120px}}.breadcrumb-container[data-v-670af4b8] .arco-breadcrumb{overflow:hidden}.breadcrumb-container[data-v-670af4b8] .arco-breadcrumb-item{max-width:200px;overflow:hidden}.breadcrumb-container[data-v-670af4b8] .arco-breadcrumb-item .breadcrumb-link,.breadcrumb-container[data-v-670af4b8] .arco-breadcrumb-item .current-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.video-list-container[data-v-1180b6ff]{height:100%;display:flex;flex-direction:column;overflow:hidden}.content-area[data-v-1180b6ff],.tab-content[data-v-1180b6ff]{flex:1;display:flex;flex-direction:column;overflow:hidden}.category-loading-container[data-v-1180b6ff]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;gap:16px}.loading-text[data-v-1180b6ff]{color:#666;font-size:14px}.search-grid-container[data-v-38747718]{width:100%;height:100%}.error-state[data-v-38747718],.loading-state[data-v-38747718],.empty-state[data-v-38747718]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px}.loading-text[data-v-38747718]{margin-top:16px;color:var(--color-text-3)}.search-scroll-container[data-v-38747718]{border-radius:8px;border:1px solid var(--color-border-2);height:100%;overflow:hidden}.search-results-grid[data-v-38747718]{padding:8px 16px}.video_list_item[data-v-38747718]{width:100%}.video_list_hover[data-v-38747718]{background:var(--color-bg-2);border-radius:8px;overflow:hidden;cursor:pointer;transition:all .3s ease;border:1px solid var(--color-border-2);height:100%;display:flex;flex-direction:column}.video_list_hover[data-v-38747718]:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000001a;border-color:var(--color-primary-light-4)}.video_list_item_img[data-v-38747718]{position:relative;width:100%;height:280px;overflow:hidden;flex-shrink:0;background:var(--color-fill-2);display:flex;align-items:center;justify-content:center;border-top-left-radius:8px;border-top-right-radius:8px}.video_list_item_img[data-v-38747718] .arco-image{width:100%;height:100%}.video_list_item_img[data-v-38747718] .arco-image img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.video_list_hover:hover .video_list_item_img[data-v-38747718] .arco-image img{transform:scale(1.05)}.video-info-simple[data-v-38747718]{padding:0;flex:1;display:flex;flex-direction:column}.video-title-simple[data-v-38747718]{margin:0;font-size:14px;font-weight:500;color:var(--color-text-1);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video_list_item_title[data-v-38747718]{padding:6px 8px;background:#fff;flex-shrink:0;height:auto;min-height:16px;display:flex;align-items:center;overflow:hidden;position:relative}.title-text[data-v-38747718]{font-size:12px;font-weight:500;color:#2c2c2c;line-height:1;white-space:nowrap;transition:color .2s ease;margin:0;width:100%;display:block}.title-text[data-v-38747718]:not([data-overflow=true]){overflow:hidden;text-overflow:ellipsis}.title-text[data-overflow=true][data-v-38747718]{animation:marquee-38747718 10s linear infinite;animation-delay:1s;width:-moz-max-content;width:max-content;min-width:100%}.title-text[data-overflow=true][data-v-38747718]:hover{animation-play-state:paused}@keyframes marquee-38747718{0%{transform:translate(0)}15%{transform:translate(0)}85%{transform:translate(calc(-100% + 100px))}to{transform:translate(calc(-100% + 100px))}}.video_list_hover:hover .title-text[data-v-38747718]{color:#1890ff}.video-card-item[data-v-38747718]{width:100%}.video-card[data-v-38747718]{background:var(--color-bg-2);border-radius:8px;overflow:hidden;cursor:pointer;transition:all .3s ease;border:1px solid var(--color-border-2);height:100%;display:flex;flex-direction:column}.video-card[data-v-38747718]:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000001a;border-color:var(--color-primary-light-4)}.video-poster[data-v-38747718]{position:relative;width:100%;height:280px;overflow:hidden;flex-shrink:0;background:var(--color-fill-2);display:flex;align-items:center;justify-content:center;border-top-left-radius:8px;border-top-right-radius:8px}.video-poster-img[data-v-38747718]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.video-card:hover .video-poster-img[data-v-38747718]{transform:scale(1.05)}.video-info[data-v-38747718]{padding:0;flex:1;display:flex;flex-direction:column}.video-title[data-v-38747718]{margin:0 0 8px;font-size:14px;font-weight:500;color:var(--color-text-1);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video-desc[data-v-38747718]{margin:0 0 8px;padding:0 8px;font-size:12px;color:var(--color-text-3);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video-meta[data-v-38747718]{display:flex;align-items:center;gap:8px;padding:0 8px 8px;font-size:12px;color:var(--color-text-3);flex-wrap:wrap}.video-note[data-v-38747718]{background:var(--color-primary-light-1);color:var(--color-primary-6);padding:2px 6px;border-radius:4px;font-size:11px;white-space:nowrap}.video-year[data-v-38747718],.video-area[data-v-38747718]{color:var(--color-text-3)}.folder-icon-container[data-v-38747718],.file-icon-container[data-v-38747718]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--color-fill-3)}.folder-icon[data-v-38747718],.file-icon[data-v-38747718]{font-size:48px;color:var(--color-text-3)}.play-overlay[data-v-38747718]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:50px;height:50px;background:#000000b3;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;opacity:0;transition:opacity .3s ease}.video-card:hover .play-overlay[data-v-38747718]{opacity:1}.action-badge[data-v-38747718]{position:absolute;top:8px;right:8px;width:24px;height:24px;background:var(--color-warning-6);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;z-index:2}.vod-remarks-overlay[data-v-38747718],.video-remarks-overlay[data-v-38747718]{position:absolute;top:4px;right:4px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:500;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 4px #0000004d;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:2}.load-more-container[data-v-38747718]{display:flex;justify-content:center;padding:16px 0}.no-more-data[data-v-38747718]{text-align:center;padding:16px 0;color:var(--color-text-3);font-size:14px}.bottom-spacing[data-v-38747718]{height:10px}.search-results-container[data-v-0e7e7688]{display:flex;flex-direction:column;height:100%;background:var(--color-bg-1)}.search-header[data-v-0e7e7688]{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.search-info[data-v-0e7e7688]{display:flex;align-items:center;gap:16px}.search-keyword[data-v-0e7e7688]{font-size:16px;font-weight:600;color:var(--color-text-1)}.search-count[data-v-0e7e7688]{font-size:14px;color:var(--color-text-3)}.search-actions[data-v-0e7e7688]{display:flex;gap:8px}.search-grid-container[data-v-0e7e7688]{flex:1;height:100%;overflow:hidden;display:flex;flex-direction:column}.main-container[data-v-27b31960]{height:calc(100% - 67px);display:flex;flex-direction:column;overflow:hidden}.content[data-v-27b31960]{flex:1;overflow:hidden;padding:0}.current-time[data-v-27b31960]{font-size:14px;color:var(--color-text-2);white-space:nowrap;padding:8px 12px;background:var(--color-bg-2);border-radius:6px;border:1px solid var(--color-border-2)}.current-time span[data-v-27b31960]{font-weight:500}.global-loading-overlay[data-v-27b31960]{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.global-loading-content[data-v-27b31960]{display:flex;flex-direction:column;align-items:center;gap:16px;padding:32px;background:var(--color-bg-1);border-radius:12px;box-shadow:0 8px 32px #0000004d;border:1px solid var(--color-border-2)}.loading-text[data-v-27b31960]{font-size:16px;color:var(--color-text-1);font-weight:500;text-align:center}.close-loading-btn[data-v-27b31960]{margin-top:8px;font-size:12px;padding:4px 12px;height:auto;min-height:28px}.player-header[data-v-e55c9055]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding:0 4px}.player-header h3[data-v-e55c9055]{margin:0 12px 0 0;font-size:16px;font-weight:600;color:#2c3e50;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-controls[data-v-e55c9055]{display:flex;align-items:center;gap:8px}.compact-button-group[data-v-e55c9055]{display:flex;align-items:center;gap:2px;background:#f8f9fa;border-radius:6px;padding:2px;border:1px solid #e9ecef}.compact-btn[data-v-e55c9055]{display:flex;align-items:center;gap:4px;padding:6px 10px;border-radius:4px;cursor:pointer;transition:all .2s ease;background:transparent;border:none;font-size:12px;font-weight:500;color:#495057;min-height:28px;position:relative}.compact-btn[data-v-e55c9055]:hover{background:#e9ecef;color:#212529;transform:translateY(-1px)}.compact-btn.active[data-v-e55c9055]{background:#23ade5;color:#fff;box-shadow:0 2px 8px #23ade54d}.compact-btn.active[data-v-e55c9055]:hover{background:#1e90ff}.compact-btn.close-btn[data-v-e55c9055]{color:#dc3545}.compact-btn.close-btn[data-v-e55c9055]:hover{background:#f8d7da;color:#721c24}.compact-btn.debug-btn[data-v-e55c9055]{color:#6f42c1}.compact-btn.debug-btn[data-v-e55c9055]:hover{background:#e2d9f3;color:#5a2d91}.btn-icon[data-v-e55c9055]{width:14px;height:14px;flex-shrink:0}.btn-text[data-v-e55c9055]{font-size:11px;white-space:nowrap}.selector-btn[data-v-e55c9055]{position:relative;padding:0;overflow:hidden}.compact-select[data-v-e55c9055]{border:none!important;background:transparent!important;box-shadow:none!important;min-width:120px}.compact-select[data-v-e55c9055] .arco-select-view{border:none!important;background:transparent!important;padding:6px 10px;font-size:11px;font-weight:500}.compact-select[data-v-e55c9055] .arco-select-view-suffix{color:currentColor}@media (max-width: 768px){.player-header[data-v-e55c9055]{flex-direction:column;align-items:flex-start;gap:8px}.player-header h3[data-v-e55c9055]{margin-right:0;font-size:15px}.compact-button-group[data-v-e55c9055]{flex-wrap:wrap;width:100%;justify-content:center}.compact-btn[data-v-e55c9055]{flex:1;min-width:80px;justify-content:center}.btn-text[data-v-e55c9055]{display:none}.selector-btn[data-v-e55c9055]{flex:2}.compact-select[data-v-e55c9055]{min-width:100px}}@media (max-width: 480px){.compact-btn[data-v-e55c9055]{padding:4px 6px;min-height:26px}.btn-icon[data-v-e55c9055]{width:12px;height:12px}}.skip-settings-overlay[data-v-c8c7504a]{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn-c8c7504a .2s ease-out}.skip-settings-dialog[data-v-c8c7504a]{background:#fff;border-radius:12px;box-shadow:0 20px 40px #00000026;width:90%;max-width:480px;max-height:90vh;overflow:hidden;animation:slideIn-c8c7504a .3s ease-out}.dialog-header[data-v-c8c7504a]{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #f0f0f0;background:#fafafa}.dialog-header h3[data-v-c8c7504a]{margin:0;font-size:18px;font-weight:600;color:#2c3e50}.close-btn[data-v-c8c7504a]{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;color:#666;transition:all .2s ease}.close-btn[data-v-c8c7504a]:hover{background:#e9ecef;color:#333}.close-btn svg[data-v-c8c7504a]{width:20px;height:20px}.dialog-content[data-v-c8c7504a]{padding:24px}.setting-row[data-v-c8c7504a]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;gap:16px}.setting-row[data-v-c8c7504a]:last-child{margin-bottom:0}.setting-label[data-v-c8c7504a]{flex:1}.setting-label span[data-v-c8c7504a]{font-size:16px;font-weight:500;color:#2c3e50;display:block;margin-bottom:4px}.setting-hint[data-v-c8c7504a]{font-size:13px;color:#6c757d;line-height:1.4}.setting-control[data-v-c8c7504a]{display:flex;align-items:center;gap:12px;flex-shrink:0}.seconds-input[data-v-c8c7504a]{width:80px}.unit[data-v-c8c7504a]{font-size:14px;color:#6c757d;font-weight:500}.setting-hint-global[data-v-c8c7504a]{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#e8f5e8;border-radius:8px;font-size:13px;color:#2d5a2d;margin-top:20px}.setting-hint-global svg[data-v-c8c7504a]{width:16px;height:16px;color:#28a745;flex-shrink:0}.dialog-footer[data-v-c8c7504a]{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #f0f0f0;background:#fafafa}@keyframes fadeIn-c8c7504a{0%{opacity:0}to{opacity:1}}@keyframes slideIn-c8c7504a{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 768px){.skip-settings-dialog[data-v-c8c7504a]{width:95%;margin:20px}.dialog-header[data-v-c8c7504a]{padding:16px 20px}.dialog-header h3[data-v-c8c7504a]{font-size:16px}.dialog-content[data-v-c8c7504a]{padding:20px}.setting-row[data-v-c8c7504a]{flex-direction:column;align-items:flex-start;gap:12px}.setting-control[data-v-c8c7504a]{width:100%;justify-content:flex-start}.dialog-footer[data-v-c8c7504a]{padding:12px 20px}}@media (max-width: 480px){.skip-settings-dialog[data-v-c8c7504a]{width:100%;height:100%;max-height:100vh;border-radius:0;margin:0}.dialog-header[data-v-c8c7504a]{padding:12px 16px}.dialog-content[data-v-c8c7504a]{padding:16px}.dialog-footer[data-v-c8c7504a]{padding:12px 16px}.setting-row[data-v-c8c7504a]{margin-bottom:20px}}.debug-info-overlay[data-v-d9075ed4]{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.debug-info-dialog[data-v-d9075ed4]{background:#fff;border-radius:12px;box-shadow:0 20px 40px #00000026;max-width:800px;width:90vw;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.dialog-header[data-v-d9075ed4]{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e9ecef;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.dialog-header h3[data-v-d9075ed4]{margin:0;font-size:18px;font-weight:600}.close-btn[data-v-d9075ed4]{background:none;border:none;color:#fff;cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s}.close-btn[data-v-d9075ed4]:hover{background:#fff3}.close-btn svg[data-v-d9075ed4]{width:20px;height:20px}.dialog-content[data-v-d9075ed4]{padding:24px;overflow-y:auto;flex:1}.info-section[data-v-d9075ed4]{margin-bottom:24px;border:1px solid #e9ecef;border-radius:8px;overflow:hidden}.section-header[data-v-d9075ed4]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#f8f9fa;border-bottom:1px solid #e9ecef}.section-actions[data-v-d9075ed4]{display:flex;align-items:center;gap:8px}.section-header h4[data-v-d9075ed4]{margin:0;font-size:14px;font-weight:600;color:#495057}.copy-btn[data-v-d9075ed4]{display:flex;align-items:center;gap:4px;padding:4px 8px;background:#23ade5;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px;transition:background-color .2s}.copy-btn[data-v-d9075ed4]:hover:not(:disabled){background:#1e90ff}.copy-btn[data-v-d9075ed4]:disabled{background:#6c757d;cursor:not-allowed}.copy-btn svg[data-v-d9075ed4]{width:14px;height:14px}.info-content[data-v-d9075ed4]{padding:16px}.url-display[data-v-d9075ed4]{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;padding:12px;font-family:Courier New,monospace;font-size:13px;word-break:break-all;line-height:1.4;color:#495057}.proxy-url[data-v-d9075ed4]{background:#e8f5e8;border-color:#4caf50;color:#2e7d32}.external-player-btn[data-v-d9075ed4]{display:flex;align-items:center;gap:4px;padding:4px 8px;border:none;border-radius:4px;cursor:pointer;font-size:12px;font-weight:500;transition:all .2s}.vlc-btn[data-v-d9075ed4]{background:#ff6b35;color:#fff}.vlc-btn[data-v-d9075ed4]:hover:not(:disabled){background:#e55a2b;transform:translateY(-1px)}.mpv-btn[data-v-d9075ed4]{background:#8e24aa;color:#fff}.mpv-btn[data-v-d9075ed4]:hover:not(:disabled){background:#7b1fa2;transform:translateY(-1px)}.external-player-btn[data-v-d9075ed4]:disabled{background:#6c757d;cursor:not-allowed;transform:none}.external-player-btn svg[data-v-d9075ed4]{width:14px;height:14px}.headers-display[data-v-d9075ed4]{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;padding:12px;min-height:60px}.no-data[data-v-d9075ed4]{color:#6c757d;font-style:italic;text-align:center;padding:20px}.headers-text[data-v-d9075ed4]{font-family:Courier New,monospace;font-size:13px;margin:0;white-space:pre-wrap;color:#495057;line-height:1.4}.format-info[data-v-d9075ed4],.player-info[data-v-d9075ed4]{display:flex;align-items:center;gap:8px}.format-label[data-v-d9075ed4],.player-label[data-v-d9075ed4]{font-weight:600;color:#495057}.format-value[data-v-d9075ed4],.player-value[data-v-d9075ed4]{background:#e3f2fd;color:#1976d2;padding:4px 8px;border-radius:4px;font-size:13px;font-weight:500}.action-section[data-v-d9075ed4]{margin-top:24px;padding-top:20px;border-top:1px solid #e9ecef;text-align:center}.copy-all-btn[data-v-d9075ed4]{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:transform .2s,box-shadow .2s}.copy-all-btn[data-v-d9075ed4]:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}.copy-all-btn svg[data-v-d9075ed4]{width:16px;height:16px}@media (max-width: 768px){.debug-info-dialog[data-v-d9075ed4]{width:95vw;max-height:90vh}.dialog-header[data-v-d9075ed4]{padding:16px 20px}.dialog-header h3[data-v-d9075ed4]{font-size:16px}.dialog-content[data-v-d9075ed4]{padding:20px}.section-header[data-v-d9075ed4]{flex-direction:column;align-items:flex-start;gap:8px}.section-actions[data-v-d9075ed4]{align-self:flex-end;flex-wrap:wrap}.copy-btn[data-v-d9075ed4],.external-player-btn[data-v-d9075ed4]{font-size:11px;padding:3px 6px}.url-display[data-v-d9075ed4],.headers-text[data-v-d9075ed4]{font-size:12px}}.video-player-section[data-v-30f32bd3]{margin-bottom:20px;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001f}.player-header[data-v-30f32bd3]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding:12px 16px;border-radius:8px;box-shadow:0 2px 8px #0000001a}.player-header h3[data-v-30f32bd3]{margin:0;color:#2c3e50;font-size:16px;font-weight:600}.player-controls[data-v-30f32bd3]{display:flex;align-items:center;gap:8px}.compact-button-group[data-v-30f32bd3]{display:flex;align-items:center;gap:4px}.compact-btn[data-v-30f32bd3]{display:flex;align-items:center;gap:6px;padding:4px 8px;height:28px;background:#fff;border:1px solid #d9d9d9;border-radius:4px;cursor:pointer;transition:all .2s ease;font-size:12px;color:#666}.compact-btn[data-v-30f32bd3]:hover{border-color:#1890ff;color:#1890ff}.compact-btn.active[data-v-30f32bd3]{background:#1890ff;border-color:#1890ff;color:#fff}.compact-btn.close-btn[data-v-30f32bd3]{background:#ff4d4f;border-color:#ff4d4f;color:#fff}.compact-btn.close-btn[data-v-30f32bd3]:hover{background:#ff7875;border-color:#ff7875}.btn-icon[data-v-30f32bd3]{width:14px;height:14px;flex-shrink:0}.btn-text[data-v-30f32bd3]{font-size:12px;white-space:nowrap}.compact-select[data-v-30f32bd3]{border:none!important;background:transparent!important;box-shadow:none!important;font-size:12px;min-width:80px}.compact-select .arco-select-view-single[data-v-30f32bd3]{border:none!important;background:transparent!important;padding:0!important;height:auto!important;min-height:auto!important}.selector-btn[data-v-30f32bd3]{min-width:120px}.video-player-container[data-v-30f32bd3]{position:relative;width:100%;background:#000;border-radius:8px;overflow:hidden}.video-player[data-v-30f32bd3]{width:100%;height:auto;min-height:400px;max-height:70vh;background:#000;outline:none}.video-player[data-v-30f32bd3]::-webkit-media-controls-panel{background-color:transparent}.video-player[data-v-30f32bd3]::-webkit-media-controls-play-button,.video-player[data-v-30f32bd3]::-webkit-media-controls-volume-slider,.video-player[data-v-30f32bd3]::-webkit-media-controls-timeline,.video-player[data-v-30f32bd3]::-webkit-media-controls-current-time-display,.video-player[data-v-30f32bd3]::-webkit-media-controls-time-remaining-display{color:#fff}.auto-next-dialog[data-v-30f32bd3]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000e6;border-radius:12px;padding:24px;z-index:1000;min-width:300px;text-align:center;box-shadow:0 8px 32px #00000080;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.auto-next-content[data-v-30f32bd3]{display:flex;flex-direction:column;gap:12px}.auto-next-title[data-v-30f32bd3]{font-size:16px;font-weight:600;color:#fff}.auto-next-episode[data-v-30f32bd3]{font-size:14px;color:#23ade5;font-weight:500}.auto-next-countdown[data-v-30f32bd3]{font-size:18px;font-weight:700;color:#ff6b6b}.auto-next-buttons[data-v-30f32bd3]{display:flex;gap:12px;justify-content:center;margin-top:8px}.btn-play-now[data-v-30f32bd3],.btn-cancel[data-v-30f32bd3]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease}.btn-play-now[data-v-30f32bd3]{background:#23ade5;color:#fff}.btn-play-now[data-v-30f32bd3]:hover{background:#1890d5}.btn-cancel[data-v-30f32bd3]{background:#666;color:#fff}.btn-cancel[data-v-30f32bd3]:hover{background:#555}.speed-control[data-v-30f32bd3]{position:absolute;top:10px;right:10px;background:#000000b3;padding:8px 12px;border-radius:6px;display:flex;align-items:center;gap:8px;z-index:10}.speed-control label[data-v-30f32bd3]{color:#fff;font-size:14px;font-weight:500}.speed-selector[data-v-30f32bd3]{background:#ffffffe6;border:1px solid #ddd;border-radius:4px;padding:4px 8px;font-size:14px;cursor:pointer;outline:none;transition:all .2s ease}.speed-selector[data-v-30f32bd3]:hover{background:#fff;border-color:#23ade5}.speed-selector[data-v-30f32bd3]:focus{border-color:#23ade5;box-shadow:0 0 0 2px #23ade533}@media (max-width: 768px){.player-header[data-v-30f32bd3]{flex-direction:column;gap:8px;align-items:flex-start}.player-header h3[data-v-30f32bd3]{font-size:14px}.video-player[data-v-30f32bd3]{min-height:200px}}.video-player-section[data-v-e22e3fdf]{margin-bottom:20px;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001f}.player-header[data-v-e22e3fdf]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding:12px 16px;border-radius:8px;box-shadow:0 2px 8px #0000001a}.player-header h3[data-v-e22e3fdf]{margin:0;color:#2c3e50;font-size:16px;font-weight:600}.player-controls[data-v-e22e3fdf]{display:flex;align-items:center;gap:8px}.art-player-container[data-v-e22e3fdf]{position:relative;width:100%;background:#000;border-radius:8px;overflow:hidden}.art-player[data-v-e22e3fdf]{width:100%;background:#000}@media (max-width: 768px){.player-header[data-v-e22e3fdf]{flex-direction:column;gap:8px;align-items:flex-start}.player-header h3[data-v-e22e3fdf]{font-size:14px}}[data-v-e22e3fdf] .art-video-player{border-radius:8px;overflow:hidden}[data-v-e22e3fdf] .art-bottom{background:linear-gradient(transparent,#000c)}[data-v-e22e3fdf] .art-control{color:#fff}[data-v-e22e3fdf] .art-control:hover{color:#23ade5}[data-v-e22e3fdf] .art-selector,[data-v-e22e3fdf] .art-control-selector .art-selector{bottom:45px!important;margin-bottom:5px!important}[data-v-e22e3fdf] .art-selector .art-selector-item{color:#fff!important;background:#000c!important}[data-v-e22e3fdf] .art-selector .art-selector-item:hover{background:#ffffff1a!important;color:#fff!important}[data-v-e22e3fdf] .art-selector .art-selector-item.art-current{color:#23ade5!important;background:#23ade51a!important}[data-v-e22e3fdf] .art-selector .art-selector-item.art-current:hover{color:#23ade5!important;background:#23ade533!important}.compact-button-group[data-v-e22e3fdf]{display:flex;align-items:center;gap:4px;padding:2px;background:#0000000d;border-radius:6px;border:1px solid rgba(0,0,0,.1)}.compact-btn[data-v-e22e3fdf]{display:flex;align-items:center;gap:4px;padding:4px 8px;height:28px;background:#fff;border:1px solid #d9d9d9;border-radius:4px;color:#666;cursor:pointer;transition:all .2s ease;font-size:11px;font-weight:500;white-space:nowrap;box-sizing:border-box}.compact-btn[data-v-e22e3fdf]:hover{background:#f5f5f5;border-color:#40a9ff;color:#40a9ff}.compact-btn.active[data-v-e22e3fdf]{background:#1890ff;border-color:#1890ff;color:#fff}.compact-btn.active[data-v-e22e3fdf]:hover{background:#40a9ff;border-color:#40a9ff}.compact-btn .btn-icon[data-v-e22e3fdf]{width:12px;height:12px;flex-shrink:0}.compact-btn .btn-text[data-v-e22e3fdf]{font-size:11px;font-weight:500;line-height:1}.compact-btn.selector-btn[data-v-e22e3fdf]{padding:4px 6px;position:relative}.compact-btn.selector-btn .compact-select[data-v-e22e3fdf]{border:none!important;background:transparent!important;box-shadow:none!important;font-size:11px;min-width:60px;height:20px}[data-v-e22e3fdf] .compact-btn.selector-btn .compact-select .arco-select-view-single{border:none!important;background:transparent!important;box-shadow:none!important;padding:0!important;height:20px!important;min-height:20px!important}[data-v-e22e3fdf] .compact-btn.selector-btn .compact-select .arco-select-view-value{color:inherit!important;font-weight:500;font-size:11px;line-height:20px;padding:0!important}[data-v-e22e3fdf] .compact-btn.selector-btn .compact-select .arco-select-view-suffix{color:inherit!important;font-size:10px}.compact-btn.close-btn[data-v-e22e3fdf]{background:#fff2f0;border-color:#ffccc7;color:#ff4d4f}.compact-btn.close-btn[data-v-e22e3fdf]:hover{background:#ff4d4f;border-color:#ff4d4f;color:#fff}.auto-next-dialog[data-v-e22e3fdf]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000e6;color:#fff;padding:20px;border-radius:8px;text-align:center;z-index:1000;min-width:280px;box-shadow:0 4px 20px #00000080}.auto-next-content[data-v-e22e3fdf]{display:flex;flex-direction:column;gap:12px}.auto-next-title[data-v-e22e3fdf]{font-size:16px;font-weight:600;color:#fff}.auto-next-episode[data-v-e22e3fdf]{font-size:14px;color:#23ade5;font-weight:500}.auto-next-countdown[data-v-e22e3fdf]{font-size:18px;font-weight:700;color:#ff6b6b}.auto-next-buttons[data-v-e22e3fdf]{display:flex;gap:12px;justify-content:center;margin-top:8px}.btn-play-now[data-v-e22e3fdf],.btn-cancel[data-v-e22e3fdf]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease}.btn-play-now[data-v-e22e3fdf]{background:#23ade5;color:#fff}.btn-play-now[data-v-e22e3fdf]:hover{background:#1890d5}.btn-cancel[data-v-e22e3fdf]{background:#666;color:#fff}.btn-cancel[data-v-e22e3fdf]:hover{background:#555}[data-v-e22e3fdf] .art-layer[data-name=episodeLayer]{display:flex!important;align-items:center;justify-content:center;background:#000000d9!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}[data-v-e22e3fdf] .episode-layer-background{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}[data-v-e22e3fdf] .episode-layer-content{background:#141414f2;border:1px solid rgba(255,255,255,.1);border-radius:16px;box-shadow:0 32px 64px #0006,0 0 0 1px #ffffff0d;max-width:900px;max-height:60vh;width:95%;overflow:hidden;animation:episodeLayerShow-e22e3fdf .4s cubic-bezier(.34,1.56,.64,1);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}@keyframes episodeLayerShow-e22e3fdf{0%{opacity:0;transform:scale(.8) translateY(-40px);filter:blur(4px)}to{opacity:1;transform:scale(1) translateY(0);filter:blur(0)}}[data-v-e22e3fdf] .episode-layer-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 12px;border-bottom:1px solid rgba(255,255,255,.08);background:#ffffff05}[data-v-e22e3fdf] .episode-layer-header h3{margin:0;font-size:20px;font-weight:700;color:#fff;letter-spacing:-.02em;text-shadow:0 1px 2px rgba(0,0,0,.3)}[data-v-e22e3fdf] .episode-layer-close{background:#ffffff14;border:1px solid rgba(255,255,255,.12);font-size:18px;cursor:pointer;color:#fffc;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s cubic-bezier(.4,0,.2,1);font-weight:300}[data-v-e22e3fdf] .episode-layer-close:hover{background:#ffffff26;border-color:#fff3;color:#fff;transform:scale(1.05)}[data-v-e22e3fdf] .episode-layer-close:active{transform:scale(.95)}[data-v-e22e3fdf] .episode-layer-list{padding:16px 20px 20px;max-height:45vh;overflow-y:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}[data-v-e22e3fdf] .episode-layer-list::-webkit-scrollbar{width:6px}[data-v-e22e3fdf] .episode-layer-list::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}[data-v-e22e3fdf] .episode-layer-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px;-webkit-transition:background .3s ease;transition:background .3s ease}[data-v-e22e3fdf] .episode-layer-list::-webkit-scrollbar-thumb:hover{background:#ffffff4d}[data-v-e22e3fdf] .episode-layer-item{display:flex;align-items:center;padding:12px 16px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:#ffffff0a;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);text-align:left;min-height:56px;position:relative;overflow:hidden}[data-v-e22e3fdf] .episode-layer-item:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);opacity:0;transition:opacity .3s ease;pointer-events:none}[data-v-e22e3fdf] .episode-layer-item:hover{border-color:#4096ff66;background:#4096ff14;transform:translateY(-2px) scale(1.02);box-shadow:0 8px 32px #4096ff26,0 0 0 1px #4096ff33}[data-v-e22e3fdf] .episode-layer-item:hover:before{opacity:1}[data-v-e22e3fdf] .episode-layer-item.current{border-color:#4096ff99;background:linear-gradient(135deg,#4096ff33,#64b4ff26);color:#fff;box-shadow:0 8px 32px #4096ff40,0 0 0 1px #4096ff66,inset 0 1px #ffffff1a;transform:scale(1.02)}[data-v-e22e3fdf] .episode-layer-item.current:before{opacity:1;background:linear-gradient(135deg,#ffffff26,#ffffff14)}[data-v-e22e3fdf] .episode-layer-item.current:hover{background:linear-gradient(135deg,#4096ff40,#64b4ff33);transform:translateY(-2px) scale(1.04);box-shadow:0 12px 40px #4096ff4d,0 0 0 1px #4096ff80,inset 0 1px #ffffff26}[data-v-e22e3fdf] .episode-layer-number{font-size:16px;font-weight:700;margin-right:12px;min-width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:6px;color:#ffffffe6;border:1px solid rgba(255,255,255,.15);transition:all .3s ease}.episode-layer-item.current .episode-layer-number[data-v-e22e3fdf]{background:#4096ff4d;border-color:#4096ff66;color:#fff;box-shadow:0 2px 8px #4096ff33}[data-v-e22e3fdf] .episode-layer-name{font-size:14px;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffffffe6;line-height:1.3;letter-spacing:-.01em}[data-v-e22e3fdf] .episode-layer-item.current .episode-layer-name{color:#fff;font-weight:600}@media (max-width: 1200px){[data-v-e22e3fdf] .episode-layer-list{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){[data-v-e22e3fdf] .episode-layer-content{max-width:95%;margin:0 12px;max-height:70vh}[data-v-e22e3fdf] .episode-layer-list{grid-template-columns:1fr;padding:16px 20px 20px;gap:12px;max-height:50vh}[data-v-e22e3fdf] .episode-layer-item{min-height:60px;padding:12px 14px}[data-v-e22e3fdf] .episode-layer-number{min-width:26px;height:26px;font-size:15px;margin-right:10px}[data-v-e22e3fdf] .episode-layer-name{font-size:13px}}@media (max-width: 480px){[data-v-e22e3fdf] .episode-layer-background{padding:12px}[data-v-e22e3fdf] .episode-layer-content{max-height:75vh}[data-v-e22e3fdf] .episode-layer-header{padding:14px 16px 10px}[data-v-e22e3fdf] .episode-layer-header h3{font-size:18px}[data-v-e22e3fdf] .episode-layer-list{max-height:55vh;padding:12px 16px 16px}}[data-v-e22e3fdf] .quality-layer-background{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}[data-v-e22e3fdf] .quality-layer-content{background:#141414f2;border:1px solid rgba(255,255,255,.1);border-radius:16px;box-shadow:0 32px 64px #0006,0 0 0 1px #ffffff0d;max-width:400px;max-height:60vh;width:95%;overflow:hidden;animation:qualityLayerShow-e22e3fdf .4s cubic-bezier(.34,1.56,.64,1);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}@keyframes qualityLayerShow-e22e3fdf{0%{opacity:0;transform:scale(.8) translateY(-40px);filter:blur(4px)}to{opacity:1;transform:scale(1) translateY(0);filter:blur(0)}}[data-v-e22e3fdf] .quality-layer-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 12px;border-bottom:1px solid rgba(255,255,255,.08);background:#ffffff05}[data-v-e22e3fdf] .quality-layer-header h3{margin:0;font-size:20px;font-weight:700;color:#fff;letter-spacing:-.02em;text-shadow:0 1px 2px rgba(0,0,0,.3)}[data-v-e22e3fdf] .quality-layer-close{background:#ffffff14;border:1px solid rgba(255,255,255,.12);font-size:18px;cursor:pointer;color:#fffc;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s cubic-bezier(.4,0,.2,1);font-weight:300}[data-v-e22e3fdf] .quality-layer-close:hover{background:#ffffff26;border-color:#fff3;color:#fff;transform:scale(1.05)}[data-v-e22e3fdf] .quality-layer-close:active{transform:scale(.95)}[data-v-e22e3fdf] .quality-layer-list{padding:16px 20px 20px;max-height:45vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px}[data-v-e22e3fdf] .quality-layer-list::-webkit-scrollbar{width:6px}[data-v-e22e3fdf] .quality-layer-list::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}[data-v-e22e3fdf] .quality-layer-list::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px;-webkit-transition:background .3s ease;transition:background .3s ease}[data-v-e22e3fdf] .quality-layer-list::-webkit-scrollbar-thumb:hover{background:#ffffff4d}[data-v-e22e3fdf] .quality-layer-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:#ffffff0a;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);text-align:left;min-height:48px;position:relative;overflow:hidden}[data-v-e22e3fdf] .quality-layer-item:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);opacity:0;transition:opacity .3s ease;pointer-events:none}[data-v-e22e3fdf] .quality-layer-item:hover{border-color:#4096ff66;background:#4096ff14;transform:translateY(-2px) scale(1.02);box-shadow:0 8px 32px #4096ff26,0 0 0 1px #4096ff33}[data-v-e22e3fdf] .quality-layer-item:hover:before{opacity:1}[data-v-e22e3fdf] .quality-layer-item.active{border-color:#4096ff99;background:linear-gradient(135deg,#4096ff33,#64b4ff26);color:#fff;box-shadow:0 8px 32px #4096ff40,0 0 0 1px #4096ff66,inset 0 1px #ffffff1a;transform:scale(1.02)}[data-v-e22e3fdf] .quality-layer-item.active:before{opacity:1;background:linear-gradient(135deg,#ffffff26,#ffffff14)}[data-v-e22e3fdf] .quality-layer-item.active:hover{background:linear-gradient(135deg,#4096ff40,#64b4ff33);transform:translateY(-2px) scale(1.04);box-shadow:0 12px 40px #4096ff4d,0 0 0 1px #4096ff80,inset 0 1px #ffffff26}[data-v-e22e3fdf] .quality-name{font-size:16px;font-weight:500;color:#ffffffe6;line-height:1.3;letter-spacing:-.01em}[data-v-e22e3fdf] .quality-layer-item.active .quality-name{color:#fff;font-weight:600}[data-v-e22e3fdf] .quality-current{font-size:12px;font-weight:600;color:#4096ffe6;background:#4096ff26;border:1px solid rgba(64,150,255,.3);border-radius:12px;padding:2px 8px;line-height:1.2}@media (max-width: 768px){[data-v-e22e3fdf] .quality-layer-content{max-width:320px;max-height:75vh}[data-v-e22e3fdf] .quality-layer-header{padding:14px 16px 10px}[data-v-e22e3fdf] .quality-layer-header h3{font-size:18px}[data-v-e22e3fdf] .quality-layer-list{max-height:55vh;padding:12px 16px 16px}}.play-section[data-v-1d197d0e]{margin-bottom:20px;border-radius:12px;box-shadow:0 4px 16px #00000014}.play-section h3[data-v-1d197d0e]{font-size:20px;font-weight:600;color:var(--color-text-1);margin-bottom:20px}.route-tabs[data-v-1d197d0e]{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}.route-btn[data-v-1d197d0e]{position:relative;border-radius:8px;font-weight:500;transition:all .2s ease;min-width:120px;height:40px}.route-btn[data-v-1d197d0e]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.route-name[data-v-1d197d0e]{margin-right:8px}.route-badge[data-v-1d197d0e]{font-size:12px}.episodes-section[data-v-1d197d0e]{margin-top:20px}.episodes-header[data-v-1d197d0e]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-wrap:wrap;gap:12px}.episodes-header h4[data-v-1d197d0e]{font-size:16px;font-weight:600;color:var(--color-text-1);margin:0}.episodes-controls[data-v-1d197d0e]{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.sort-btn[data-v-1d197d0e]{border-radius:6px;transition:all .2s ease}.strategy-select[data-v-1d197d0e],.layout-select[data-v-1d197d0e]{border-radius:6px}.episodes-grid[data-v-1d197d0e]{display:grid;grid-template-columns:repeat(var(--episodes-columns, 12),minmax(0,1fr));gap:8px;margin-top:16px;width:100%;box-sizing:border-box}.episode-btn[data-v-1d197d0e]{border-radius:6px;transition:all .2s ease;min-height:36px;font-size:13px;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}.episode-btn[data-v-1d197d0e]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.episode-text[data-v-1d197d0e]{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:0 8px}.no-play-section[data-v-1d197d0e]{text-align:center;padding:40px;border-radius:12px;box-shadow:0 4px 16px #00000014}@media (max-width: 768px){.episodes-header[data-v-1d197d0e]{flex-direction:column;align-items:flex-start}.episodes-controls[data-v-1d197d0e]{width:100%;justify-content:space-between}.strategy-select[data-v-1d197d0e],.layout-select[data-v-1d197d0e]{width:120px!important}.route-tabs[data-v-1d197d0e]{gap:8px}.route-btn[data-v-1d197d0e]{min-width:100px;height:36px;font-size:12px}.episodes-grid[data-v-1d197d0e]{gap:6px}.episode-btn[data-v-1d197d0e]{min-height:32px;font-size:12px}}@media (max-width: 480px){.episodes-grid[data-v-1d197d0e]{grid-template-columns:repeat(6,1fr)}.route-btn[data-v-1d197d0e]{min-width:80px;height:32px;font-size:11px}.episode-btn[data-v-1d197d0e]{min-height:28px;font-size:11px}}.reader-header[data-v-28cb62d6]{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2);position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-left[data-v-28cb62d6]{flex:0 0 auto}.close-btn[data-v-28cb62d6]{color:var(--color-text-1);font-weight:500}.header-center[data-v-28cb62d6]{flex:1;display:flex;justify-content:center;min-width:0}.book-info[data-v-28cb62d6]{text-align:center;max-width:400px}.book-title[data-v-28cb62d6]{font-size:16px;font-weight:600;color:var(--color-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}.chapter-info[data-v-28cb62d6]{display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px;color:var(--color-text-3)}.chapter-name[data-v-28cb62d6]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.chapter-progress[data-v-28cb62d6]{flex-shrink:0}.header-right[data-v-28cb62d6]{flex:0 0 auto;display:flex;align-items:center;gap:8px}.chapter-nav[data-v-28cb62d6]{display:flex;align-items:center;gap:4px}.nav-btn[data-v-28cb62d6],.chapter-list-btn[data-v-28cb62d6],.settings-btn[data-v-28cb62d6],.fullscreen-btn[data-v-28cb62d6]{color:var(--color-text-2);transition:color .2s ease}.nav-btn[data-v-28cb62d6]:hover,.chapter-list-btn[data-v-28cb62d6]:hover,.settings-btn[data-v-28cb62d6]:hover,.fullscreen-btn[data-v-28cb62d6]:hover{color:var(--color-text-1)}.nav-btn[data-v-28cb62d6]:disabled{color:var(--color-text-4)}[data-v-28cb62d6] .arco-dropdown-content{max-height:calc(100vh - 120px)!important;padding:0!important}.chapter-dropdown[data-v-28cb62d6]{width:300px;max-height:calc(100vh - 120px);display:flex;flex-direction:column}.chapter-dropdown-header[data-v-28cb62d6]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--color-border-2);font-weight:500;color:var(--color-text-1);flex-shrink:0;background:var(--color-bg-1)}.total-count[data-v-28cb62d6]{font-size:12px;color:var(--color-text-3);font-weight:400}.chapter-dropdown-content[data-v-28cb62d6]{flex:1;max-height:calc(100vh - 180px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--color-border-3) transparent}.chapter-dropdown-content[data-v-28cb62d6]::-webkit-scrollbar{width:6px}.chapter-dropdown-content[data-v-28cb62d6]::-webkit-scrollbar-track{background:transparent}.chapter-dropdown-content[data-v-28cb62d6]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:3px}.chapter-dropdown-content[data-v-28cb62d6]::-webkit-scrollbar-thumb:hover{background:var(--color-border-2)}.chapter-option[data-v-28cb62d6]{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;transition:background-color .2s ease}.chapter-option[data-v-28cb62d6]:hover{background:var(--color-fill-2)}.current-chapter .chapter-option[data-v-28cb62d6]{background:var(--color-primary-light-1);color:var(--color-primary-6)}.chapter-number[data-v-28cb62d6]{flex-shrink:0;font-size:12px;color:var(--color-text-3);width:30px}.chapter-title[data-v-28cb62d6]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.current-icon[data-v-28cb62d6]{flex-shrink:0;color:var(--color-primary-6);font-size:14px}@media (max-width: 768px){.reader-header[data-v-28cb62d6]{padding:8px 12px}.book-info[data-v-28cb62d6]{max-width:250px}.book-title[data-v-28cb62d6]{font-size:14px}.chapter-info[data-v-28cb62d6]{font-size:11px}.chapter-name[data-v-28cb62d6]{max-width:150px}.header-right[data-v-28cb62d6]{gap:4px}.chapter-dropdown[data-v-28cb62d6]{width:280px}}@media (max-width: 480px){.close-btn span[data-v-28cb62d6],.chapter-list-btn span[data-v-28cb62d6],.settings-btn span[data-v-28cb62d6]{display:none}.book-info[data-v-28cb62d6]{max-width:180px}.chapter-name[data-v-28cb62d6]{max-width:120px}}.reading-settings-dialog[data-v-4de406c1] .arco-modal{height:50vh;max-height:480px;display:flex;flex-direction:column}.reading-settings-dialog[data-v-4de406c1] .arco-modal-header{flex-shrink:0;border-bottom:1px solid var(--color-border-2);padding:12px 20px}.reading-settings-dialog[data-v-4de406c1] .arco-modal-body{padding:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.dialog-container[data-v-4de406c1]{display:flex;flex-direction:column;height:100%;overflow:hidden}.settings-content[data-v-4de406c1]{flex:1;padding:16px;overflow-y:auto;overflow-x:hidden}.setting-section[data-v-4de406c1]{margin-bottom:16px}.setting-section[data-v-4de406c1]:last-of-type{margin-bottom:0}.section-title[data-v-4de406c1]{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:600;color:var(--color-text-1);margin-bottom:12px;padding-bottom:6px;border-bottom:1px solid var(--color-border-2)}.setting-item[data-v-4de406c1]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.setting-label[data-v-4de406c1]{font-size:14px;color:var(--color-text-2);min-width:80px}.font-size-controls[data-v-4de406c1]{display:flex;align-items:center;gap:10px}.font-size-value[data-v-4de406c1]{font-size:14px;color:var(--color-text-1);min-width:40px;text-align:center}.line-height-slider[data-v-4de406c1],.max-width-slider[data-v-4de406c1],.font-family-select[data-v-4de406c1]{width:180px}.theme-options[data-v-4de406c1]{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px}.theme-option[data-v-4de406c1]{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;border:2px solid var(--color-border-2);border-radius:6px;cursor:pointer;transition:all .2s ease}.theme-option[data-v-4de406c1]:hover{border-color:var(--color-border-3);transform:translateY(-1px)}.theme-option.active[data-v-4de406c1]{border-color:var(--color-primary-6);background:var(--color-primary-light-1)}.theme-preview[data-v-4de406c1]{width:50px;height:32px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px}.theme-name[data-v-4de406c1]{font-size:11px;color:var(--color-text-2)}.color-settings[data-v-4de406c1]{display:flex;gap:16px}.color-item[data-v-4de406c1]{display:flex;flex-direction:column;align-items:center;gap:6px}.color-label[data-v-4de406c1]{font-size:11px;color:var(--color-text-2)}.color-picker[data-v-4de406c1]{width:36px;height:36px;border:none;border-radius:50%;cursor:pointer;outline:none}.preview-area[data-v-4de406c1]{padding:16px;border:1px solid var(--color-border-2);border-radius:6px;margin:0 auto;transition:all .3s ease}.preview-title[data-v-4de406c1]{margin:0 0 12px;font-weight:600}.preview-text[data-v-4de406c1]{margin:0;text-align:justify;text-indent:2em}.dialog-footer[data-v-4de406c1]{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-top:1px solid var(--color-border-2);background:var(--color-bg-1);flex-shrink:0}.action-buttons[data-v-4de406c1]{display:flex;gap:10px}.reset-btn[data-v-4de406c1]{color:var(--color-text-3)}@media (max-width: 768px){.settings-content[data-v-4de406c1]{padding:12px}.setting-item[data-v-4de406c1]{flex-direction:column;align-items:flex-start;gap:6px}.line-height-slider[data-v-4de406c1],.max-width-slider[data-v-4de406c1],.font-family-select[data-v-4de406c1]{width:100%}.theme-options[data-v-4de406c1]{grid-template-columns:repeat(2,1fr)}.color-settings[data-v-4de406c1]{justify-content:center}.dialog-footer[data-v-4de406c1]{flex-direction:column;gap:10px}.action-buttons[data-v-4de406c1]{width:100%;justify-content:center}}.settings-content[data-v-4de406c1]::-webkit-scrollbar{width:6px}.settings-content[data-v-4de406c1]::-webkit-scrollbar-track{background:var(--color-fill-1);border-radius:3px}.settings-content[data-v-4de406c1]::-webkit-scrollbar-thumb{background:var(--color-fill-3);border-radius:3px}.settings-content[data-v-4de406c1]::-webkit-scrollbar-thumb:hover{background:var(--color-fill-4)}.book-reader[data-v-0dd837ef]{position:fixed;inset:0;background:var(--color-bg-1);z-index:1000;display:flex;flex-direction:column}.reader-content[data-v-0dd837ef]{flex:1;overflow-y:auto;padding:20px;transition:all .3s ease}.loading-container[data-v-0dd837ef],.error-container[data-v-0dd837ef],.empty-container[data-v-0dd837ef]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:400px}.loading-text[data-v-0dd837ef]{margin-top:16px;color:var(--color-text-2);font-size:14px}.chapter-container[data-v-0dd837ef]{max-width:1000px;margin:0 auto;padding:40px 20px}.chapter-title[data-v-0dd837ef]{text-align:center;margin-bottom:40px;font-weight:600;border-bottom:2px solid var(--color-border-2);padding-bottom:20px}.chapter-text[data-v-0dd837ef]{margin:0 auto 60px;text-align:justify;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}.chapter-text[data-v-0dd837ef] p{margin-bottom:1.5em;text-indent:2em}.chapter-text[data-v-0dd837ef] p:first-child{margin-top:0}.chapter-text[data-v-0dd837ef] p:last-child{margin-bottom:0}.chapter-navigation[data-v-0dd837ef]{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-top:1px solid var(--color-border-2);margin-top:40px}.nav-btn[data-v-0dd837ef]{min-width:120px}.chapter-progress[data-v-0dd837ef]{font-size:14px;color:var(--color-text-2);font-weight:500}@media (max-width: 768px){.reader-content[data-v-0dd837ef]{padding:10px}.chapter-container[data-v-0dd837ef]{padding:20px 10px}.chapter-title[data-v-0dd837ef]{font-size:20px;margin-bottom:30px}.chapter-navigation[data-v-0dd837ef]{flex-direction:column;gap:15px}.nav-btn[data-v-0dd837ef]{width:100%;min-width:auto}}.book-reader[data-theme=dark][data-v-0dd837ef]{background:#1a1a1a}.book-reader[data-theme=sepia][data-v-0dd837ef]{background:#f4f1e8}.reader-header[data-v-1f6a371c]{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2);position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-left[data-v-1f6a371c]{flex:0 0 auto}.close-btn[data-v-1f6a371c]{color:var(--color-text-1);font-weight:500}.header-center[data-v-1f6a371c]{flex:1;display:flex;justify-content:center;min-width:0}.book-info[data-v-1f6a371c]{text-align:center;max-width:400px}.book-title[data-v-1f6a371c]{font-size:16px;font-weight:600;color:var(--color-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}.chapter-info[data-v-1f6a371c]{display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px;color:var(--color-text-3)}.chapter-name[data-v-1f6a371c]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.chapter-progress[data-v-1f6a371c]{flex-shrink:0}.header-right[data-v-1f6a371c]{flex:0 0 auto;display:flex;align-items:center;gap:8px}.chapter-nav[data-v-1f6a371c]{display:flex;align-items:center;gap:4px}.nav-btn[data-v-1f6a371c],.chapter-list-btn[data-v-1f6a371c],.settings-btn[data-v-1f6a371c],.fullscreen-btn[data-v-1f6a371c]{color:var(--color-text-2);transition:color .2s ease}.nav-btn[data-v-1f6a371c]:hover,.chapter-list-btn[data-v-1f6a371c]:hover,.settings-btn[data-v-1f6a371c]:hover,.fullscreen-btn[data-v-1f6a371c]:hover{color:var(--color-text-1)}.nav-btn[data-v-1f6a371c]:disabled{color:var(--color-text-4);cursor:not-allowed}.chapter-dropdown[data-v-1f6a371c]{width:320px;max-height:400px;background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:6px;box-shadow:0 4px 12px #0000001a;overflow:hidden}.chapter-dropdown-header[data-v-1f6a371c]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border-2);font-size:14px;font-weight:500;color:var(--color-text-1)}.total-count[data-v-1f6a371c]{font-size:12px;color:var(--color-text-3);font-weight:400}.chapter-dropdown-content[data-v-1f6a371c]{max-height:300px;overflow-y:auto}.chapter-dropdown-content[data-v-1f6a371c]::-webkit-scrollbar{width:6px}.chapter-dropdown-content[data-v-1f6a371c]::-webkit-scrollbar-track{background:transparent}.chapter-dropdown-content[data-v-1f6a371c]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:3px}.chapter-dropdown-content[data-v-1f6a371c]::-webkit-scrollbar-thumb:hover{background:var(--color-border-2)}.chapter-option[data-v-1f6a371c]{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;transition:background-color .2s ease}.chapter-option[data-v-1f6a371c]:hover{background:var(--color-fill-2)}.current-chapter .chapter-option[data-v-1f6a371c]{background:var(--color-primary-light-1);color:var(--color-primary-6)}.chapter-number[data-v-1f6a371c]{flex-shrink:0;font-size:12px;color:var(--color-text-3);width:30px}.chapter-title[data-v-1f6a371c]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.current-icon[data-v-1f6a371c]{flex-shrink:0;color:var(--color-primary-6);font-size:14px}@media (max-width: 768px){.reader-header[data-v-1f6a371c]{padding:8px 12px}.book-info[data-v-1f6a371c]{max-width:250px}.book-title[data-v-1f6a371c]{font-size:14px}.chapter-info[data-v-1f6a371c]{font-size:11px}.chapter-name[data-v-1f6a371c]{max-width:150px}.header-right[data-v-1f6a371c]{gap:4px}.chapter-dropdown[data-v-1f6a371c]{width:280px}}@media (max-width: 480px){.close-btn span[data-v-1f6a371c],.chapter-list-btn span[data-v-1f6a371c],.settings-btn span[data-v-1f6a371c]{display:none}.book-info[data-v-1f6a371c]{max-width:180px}.chapter-name[data-v-1f6a371c]{max-width:120px}}.header-center[data-v-1f6a371c]{display:flex;align-items:center;justify-content:center;flex:1}.header-center[data-v-1f6a371c] .arco-btn{color:var(--color-text-1);border-color:var(--color-border-2)}.header-center[data-v-1f6a371c] .arco-btn:hover{background:var(--color-fill-2);border-color:var(--color-border-3)}.header-center[data-v-1f6a371c] .arco-btn:disabled{color:var(--color-text-4);border-color:var(--color-border-1)}.header-right[data-v-1f6a371c]{display:flex;align-items:center;justify-content:flex-end;flex:1}.settings-btn[data-v-1f6a371c]{color:var(--color-text-1)}.settings-btn[data-v-1f6a371c]:hover{background:var(--color-fill-2)}@media (max-width: 768px){.header-content[data-v-1f6a371c]{padding:0 10px}.title-info[data-v-1f6a371c]{display:none}.header-center[data-v-1f6a371c] .arco-btn-group .arco-btn{padding:0 8px;font-size:12px}}@media (max-width: 480px){.comic-reader-header[data-v-1f6a371c]{height:50px}.header-center[data-v-1f6a371c] .arco-btn-group .arco-btn span{display:none}.header-center[data-v-1f6a371c] .arco-btn-group .arco-btn .arco-icon{margin:0}}.comic-settings[data-v-6adf651b]{padding:20px 0}.setting-section[data-v-6adf651b]{margin-bottom:32px}.setting-section[data-v-6adf651b]:last-of-type{margin-bottom:20px}.section-title[data-v-6adf651b]{font-size:16px;font-weight:600;margin-bottom:16px;color:var(--color-text-1);border-bottom:1px solid var(--color-border-2);padding-bottom:8px}.setting-item[data-v-6adf651b]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;min-height:32px}.setting-item[data-v-6adf651b]:last-child{margin-bottom:0}.setting-label[data-v-6adf651b]{font-size:14px;color:var(--color-text-1);min-width:80px;flex-shrink:0}.setting-control[data-v-6adf651b]{display:flex;align-items:center;gap:12px;flex:1;max-width:280px}.setting-control[data-v-6adf651b] .arco-slider{flex:1}.setting-value[data-v-6adf651b]{font-size:12px;color:var(--color-text-2);min-width:50px;text-align:right}.theme-options[data-v-6adf651b]{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px}.theme-option[data-v-6adf651b]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border:2px solid var(--color-border-2);border-radius:8px;cursor:pointer;transition:all .2s ease}.theme-option[data-v-6adf651b]:hover{border-color:var(--color-border-3);transform:translateY(-2px)}.theme-option.active[data-v-6adf651b]{border-color:var(--color-primary-6);background:var(--color-primary-light-1)}.theme-preview[data-v-6adf651b]{width:60px;height:40px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}.preview-text[data-v-6adf651b]{text-shadow:0 1px 2px rgba(0,0,0,.1)}.theme-name[data-v-6adf651b]{font-size:12px;color:var(--color-text-2);text-align:center}.color-settings[data-v-6adf651b]{display:flex;gap:20px}.color-item[data-v-6adf651b]{display:flex;flex-direction:column;align-items:center;gap:8px}.color-label[data-v-6adf651b]{font-size:14px;color:var(--color-text-2)}.color-picker[data-v-6adf651b]{width:60px;height:40px;border:none;border-radius:6px;cursor:pointer;outline:none}.setting-actions[data-v-6adf651b]{display:flex;justify-content:flex-end;gap:12px;margin-top:32px;padding-top:20px;border-top:1px solid var(--color-border-2)}@media (max-width: 480px){.setting-item[data-v-6adf651b]{flex-direction:column;align-items:flex-start;gap:8px}.setting-control[data-v-6adf651b]{width:100%;max-width:none}.theme-options[data-v-6adf651b]{width:100%}.theme-option[data-v-6adf651b]{flex:1;min-width:50px}}.comic-reader[data-v-50453960]{position:fixed;inset:0;background:var(--color-bg-1);z-index:1000;display:flex;flex-direction:column}.reader-content[data-v-50453960]{flex:1;overflow-y:auto;padding:20px;transition:all .3s ease}.loading-container[data-v-50453960],.error-container[data-v-50453960],.empty-container[data-v-50453960]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:400px}.loading-text[data-v-50453960]{margin-top:16px;color:var(--color-text-2);font-size:14px}.comic-container[data-v-50453960]{max-width:1000px;margin:0 auto;padding:40px 20px}.chapter-title[data-v-50453960]{text-align:center;margin-bottom:40px;font-weight:600;border-bottom:2px solid var(--color-border-2);padding-bottom:20px}.images-container[data-v-50453960]{display:flex;flex-direction:column;align-items:center;margin:0 auto 60px}.image-wrapper[data-v-50453960]{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;max-width:100%}.comic-image[data-v-50453960]{display:block;border-radius:8px;box-shadow:0 2px 8px var(--color-border-3);cursor:pointer;transition:transform .2s ease}.comic-image[data-v-50453960]:hover{transform:scale(1.02)}.image-loading[data-v-50453960],.image-error[data-v-50453960]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;background:var(--color-bg-2);border-radius:8px;color:var(--color-text-2);width:100%;max-width:800px}.image-error[data-v-50453960]{gap:12px}.error-text[data-v-50453960]{font-size:14px;color:var(--color-text-3)}.image-index[data-v-50453960]{position:absolute;top:10px;right:10px;background:#000000b3;color:inherit;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500;box-shadow:0 2px 4px #0000004d}.chapter-navigation[data-v-50453960]{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-top:1px solid rgba(255,255,255,.1);margin-top:40px}.nav-btn[data-v-50453960]{min-width:120px}.chapter-info[data-v-50453960]{text-align:center;color:inherit}.chapter-progress[data-v-50453960]{font-size:14px;color:inherit;opacity:.8;font-weight:500;margin-bottom:4px}.page-progress[data-v-50453960]{font-size:14px;color:inherit;opacity:.6}@media (max-width: 768px){.reader-content[data-v-50453960]{padding:10px}.comic-container[data-v-50453960]{padding:20px 10px}.chapter-title[data-v-50453960]{font-size:20px;margin-bottom:30px}.chapter-navigation[data-v-50453960]{flex-direction:column;gap:15px}.nav-btn[data-v-50453960]{width:100%;min-width:auto}}.viewer[data-v-50453960]{display:none}.comic-reader[data-theme=dark][data-v-50453960]{background:#1a1a1a}.comic-reader[data-theme=sepia][data-v-50453960]{background:#f4f1e8}.add-task-form[data-v-478714de]{max-height:600px;overflow-y:auto}.form-section[data-v-478714de]{margin-bottom:24px}.form-section h4[data-v-478714de]{margin:0 0 12px;font-size:14px;font-weight:600;color:var(--color-text-1);border-bottom:1px solid var(--color-border-2);padding-bottom:8px}.novel-info[data-v-478714de]{display:flex;gap:16px;padding:16px;background:var(--color-bg-1);border-radius:8px}.novel-cover img[data-v-478714de]{width:80px;height:120px;-o-object-fit:cover;object-fit:cover;border-radius:4px}.novel-details[data-v-478714de]{flex:1}.novel-details h3[data-v-478714de]{margin:0 0 8px;font-size:16px;color:var(--color-text-1)}.novel-author[data-v-478714de]{margin:0 0 8px;font-size:12px;color:var(--color-text-3)}.novel-desc[data-v-478714de]{margin:0 0 12px;font-size:12px;color:var(--color-text-2);line-height:1.5;max-height:60px;overflow:hidden}.novel-meta[data-v-478714de]{display:flex;gap:16px;font-size:12px;color:var(--color-text-3)}.no-novel[data-v-478714de]{padding:40px;text-align:center}.chapter-selection[data-v-478714de]{border:1px solid var(--color-border-2);border-radius:8px;padding:16px}.selection-controls[data-v-478714de]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-wrap:wrap;gap:12px}.range-selector[data-v-478714de]{display:flex;align-items:center;gap:8px;font-size:12px}.selected-info[data-v-478714de]{margin-bottom:16px;font-size:14px;font-weight:600;color:var(--color-primary-6)}.chapter-list[data-v-478714de]{max-height:300px;overflow-y:auto}.chapter-grid[data-v-478714de]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}.chapter-item[data-v-478714de]{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--color-border-2);border-radius:4px;cursor:pointer;transition:all .2s ease}.chapter-item[data-v-478714de]:hover{border-color:var(--color-primary-light-4);background:var(--color-primary-light-1)}.chapter-item.selected[data-v-478714de]{border-color:var(--color-primary-6);background:var(--color-primary-light-2)}.chapter-title[data-v-478714de]{font-size:12px;color:var(--color-text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-settings[data-v-478714de]{background:var(--color-bg-1);border-radius:8px;padding:16px}.setting-row[data-v-478714de]{display:flex;align-items:center;margin-bottom:16px;gap:12px}.setting-row[data-v-478714de]:last-child{margin-bottom:0}.setting-row label[data-v-478714de]{width:80px;font-size:14px;color:var(--color-text-2);flex-shrink:0}.setting-tip[data-v-478714de]{font-size:12px;color:var(--color-text-3)}.video-detail[data-v-9b86bd37]{min-height:100vh;background:var(--color-bg-1)}.detail-header[data-v-9b86bd37]{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2);position:sticky;top:0;z-index:100}.detail-header .left-section[data-v-9b86bd37]{display:flex;align-items:center;flex:1}.back-btn[data-v-9b86bd37]{margin-right:16px;flex-shrink:0}.header-title[data-v-9b86bd37]{font-size:16px;font-weight:600;color:var(--color-text-1);flex:1;min-width:0}.title-with-info[data-v-9b86bd37]{display:flex;flex-direction:column;gap:2px}.title-main[data-v-9b86bd37]{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.title-source[data-v-9b86bd37]{font-size:12px;color:var(--color-text-3);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-actions[data-v-9b86bd37]{display:flex;align-items:center;gap:12px;flex-shrink:0}.favorite-btn[data-v-9b86bd37]{display:flex;align-items:center;gap:6px;min-width:100px;justify-content:center}.loading-container[data-v-9b86bd37]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:16px}.loading-text[data-v-9b86bd37]{color:var(--color-text-2);font-size:14px}.error-container[data-v-9b86bd37]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:16px}.detail-content[data-v-9b86bd37]{padding:24px;max-width:1400px;margin:0 auto;width:100%}.video-info-card[data-v-9b86bd37]{margin-bottom:24px;transition:all .3s ease}.video-info-card.collapsed-when-playing[data-v-9b86bd37]{margin-bottom:16px}.video-info-card.collapsed-when-playing .video-header[data-v-9b86bd37]{margin-bottom:12px}.video-info-card.collapsed-when-playing .video-poster[data-v-9b86bd37]{width:120px;height:168px}.video-info-card.collapsed-when-playing .video-info[data-v-9b86bd37]{gap:8px}.video-info-card.collapsed-when-playing .title-main[data-v-9b86bd37]{font-size:18px;line-height:1.3}.video-info-card.collapsed-when-playing .video-meta[data-v-9b86bd37]{gap:8px}.video-info-card.collapsed-when-playing .meta-item[data-v-9b86bd37]{font-size:12px;padding:2px 6px}.video-info-card.collapsed-when-playing .video-description[data-v-9b86bd37]{margin-top:12px}.video-info-card.collapsed-when-playing .video-description h3[data-v-9b86bd37]{font-size:14px;margin-bottom:8px}.video-info-card.collapsed-when-playing .description-content[data-v-9b86bd37]{font-size:13px;line-height:1.4;max-height:60px;overflow:hidden}.video-info-card.collapsed-when-playing .description-content.expanded[data-v-9b86bd37]{max-height:none}.video-info-card.collapsed-when-playing .play-actions[data-v-9b86bd37]{gap:8px}.video-info-card.collapsed-when-playing .play-btn[data-v-9b86bd37],.video-info-card.collapsed-when-playing .copy-btn[data-v-9b86bd37]{height:32px;font-size:13px}.video-header[data-v-9b86bd37]{display:flex;gap:24px;margin-bottom:24px}.video-poster[data-v-9b86bd37]{flex-shrink:0;width:200px;height:280px;border-radius:8px;overflow:hidden;background:var(--color-bg-3);box-shadow:0 4px 12px #0000001a;position:relative;cursor:pointer}.video-poster img[data-v-9b86bd37]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.poster-overlay[data-v-9b86bd37]{position:absolute;inset:0;background:#00000080;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;opacity:0;transition:opacity .3s ease;pointer-events:none}.video-poster:hover .poster-overlay[data-v-9b86bd37]{opacity:1}.poster-overlay .view-icon[data-v-9b86bd37]{font-size:24px;margin-bottom:8px}.poster-overlay span[data-v-9b86bd37]{font-size:14px}.video-meta[data-v-9b86bd37]{flex:1}.video-title[data-v-9b86bd37]{font-size:28px;font-weight:700;color:var(--color-text-1);margin:0 0 16px;line-height:1.3}.video-tags[data-v-9b86bd37]{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.video-info-grid[data-v-9b86bd37]{display:flex;flex-direction:column;gap:12px}.info-item[data-v-9b86bd37]{display:flex;align-items:flex-start}.info-item .label[data-v-9b86bd37]{font-weight:600;color:var(--color-text-2);min-width:60px;flex-shrink:0}.info-item .value[data-v-9b86bd37]{color:var(--color-text-1);line-height:1.5}.video-description[data-v-9b86bd37]{border-top:1px solid var(--color-border-2);padding-top:24px}.video-description h3[data-v-9b86bd37]{font-size:18px;font-weight:600;color:var(--color-text-1);margin:0 0 16px}.description-content[data-v-9b86bd37]{color:var(--color-text-1);line-height:1.6;max-height:120px;overflow:hidden;transition:max-height .3s ease;white-space:pre-wrap;word-wrap:break-word}.description-content.expanded[data-v-9b86bd37]{max-height:none}.expand-btn[data-v-9b86bd37]{margin-top:8px;padding:0}.play-section[data-v-9b86bd37]{margin-bottom:24px}.play-section h3[data-v-9b86bd37]{font-size:18px;font-weight:600;color:var(--color-text-1);margin:0 0 16px}.route-tabs[data-v-9b86bd37]{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}.route-btn[data-v-9b86bd37]{min-width:120px;height:40px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;font-weight:500;transition:all .2s ease}.route-btn[data-v-9b86bd37]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.route-name[data-v-9b86bd37]{flex:1;text-align:center}.route-badge[data-v-9b86bd37]{flex-shrink:0}.episodes-header[data-v-9b86bd37]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.episodes-header h4[data-v-9b86bd37]{font-size:16px;font-weight:600;color:var(--color-text-1);margin:0}.episodes-controls[data-v-9b86bd37]{display:flex;align-items:center;gap:8px}.sort-btn[data-v-9b86bd37]{display:flex;align-items:center;gap:4px;color:var(--color-text-2);border-radius:6px;transition:all .2s ease}.sort-btn[data-v-9b86bd37]:hover{color:var(--color-text-1);background-color:var(--color-bg-2)}.strategy-select[data-v-9b86bd37],.layout-select[data-v-9b86bd37]{border-radius:6px}.strategy-select[data-v-9b86bd37] .arco-select-view-single,.layout-select[data-v-9b86bd37] .arco-select-view-single{background-color:transparent;border:none;color:var(--color-text-2);font-size:12px;padding:4px 8px;min-height:28px;white-space:nowrap;overflow:visible}.strategy-select[data-v-9b86bd37] .arco-select-view-single:hover,.layout-select[data-v-9b86bd37] .arco-select-view-single:hover{background-color:var(--color-bg-2);color:var(--color-text-1)}.strategy-select[data-v-9b86bd37] .arco-select-view-value,.layout-select[data-v-9b86bd37] .arco-select-view-value{overflow:visible;text-overflow:unset;white-space:nowrap}.strategy-select[data-v-9b86bd37] .arco-select-view-suffix,.layout-select[data-v-9b86bd37] .arco-select-view-suffix{margin-left:4px}.episodes-grid[data-v-9b86bd37]{display:grid;grid-template-columns:repeat(var(--episodes-columns, 12),1fr);gap:12px;margin-bottom:24px}.episode-btn[data-v-9b86bd37]{min-height:40px;border-radius:8px;font-weight:500;transition:all .2s ease;position:relative;overflow:hidden}.episode-btn[data-v-9b86bd37]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.episode-text[data-v-9b86bd37]{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:0 8px}.video-actions[data-v-9b86bd37]{margin-top:20px;padding:20px;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-radius:12px;border:1px solid #dee2e6}.play-actions[data-v-9b86bd37],.action-buttons[data-v-9b86bd37],.action-buttons-row[data-v-9b86bd37]{display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:center}.download-row[data-v-9b86bd37]{margin-top:16px;justify-content:flex-start!important}.play-btn[data-v-9b86bd37]{min-width:140px;height:44px;border-radius:8px;font-weight:600;font-size:16px;box-shadow:0 4px 12px #165dff4d;transition:all .2s ease}.play-btn[data-v-9b86bd37]:hover{transform:translateY(-2px);box-shadow:0 6px 16px #165dff66}.copy-btn[data-v-9b86bd37]{height:44px;border-radius:8px;font-weight:500;transition:all .2s ease}.copy-btn[data-v-9b86bd37]:hover{transform:translateY(-1px)}.download-btn[data-v-9b86bd37]{min-width:140px;height:44px;border-radius:8px;font-weight:600;font-size:16px;box-shadow:0 4px 12px #00b42a4d;transition:all .2s ease}.download-btn[data-v-9b86bd37]:hover{transform:translateY(-2px);box-shadow:0 6px 16px #00b42a66}.no-play-section[data-v-9b86bd37]{text-align:center;padding:40px}.video-player-section[data-v-9b86bd37]{margin-bottom:20px;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001f}.player-header[data-v-9b86bd37]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.player-header h3[data-v-9b86bd37]{font-size:18px;font-weight:600;color:var(--color-text-1);margin:0}.player-controls[data-v-9b86bd37]{display:flex;gap:8px}.video-player-container[data-v-9b86bd37]{position:relative;width:100%;background:#000;border-radius:8px;overflow:hidden}.video-player[data-v-9b86bd37]{width:100%;height:auto;min-height:400px;max-height:70vh;background:#000;outline:none}.video-player[data-v-9b86bd37]::-webkit-media-controls-panel{background-color:transparent}.video-player[data-v-9b86bd37]::-webkit-media-controls-play-button,.video-player[data-v-9b86bd37]::-webkit-media-controls-volume-slider,.video-player[data-v-9b86bd37]::-webkit-media-controls-timeline,.video-player[data-v-9b86bd37]::-webkit-media-controls-current-time-display,.video-player[data-v-9b86bd37]::-webkit-media-controls-time-remaining-display{color:#fff}@media (max-width: 1200px){.detail-content[data-v-9b86bd37]{max-width:100%;padding:20px}}@media (max-width: 768px){.detail-header[data-v-9b86bd37]{padding:12px 16px}.header-title[data-v-9b86bd37],.title-main[data-v-9b86bd37]{font-size:14px}.title-source[data-v-9b86bd37]{font-size:11px}.favorite-btn[data-v-9b86bd37]{min-width:80px;font-size:12px}.detail-content[data-v-9b86bd37]{padding:16px}.video-header[data-v-9b86bd37]{flex-direction:column;gap:16px}.video-poster[data-v-9b86bd37]{width:150px;height:210px;margin:0 auto}.video-title[data-v-9b86bd37]{font-size:24px;text-align:center}.route-tabs[data-v-9b86bd37]{gap:8px}.route-btn[data-v-9b86bd37]{min-width:100px;height:36px;font-size:14px}.episodes-grid[data-v-9b86bd37]{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px}.episode-btn[data-v-9b86bd37]{min-height:36px;font-size:12px}.play-actions[data-v-9b86bd37]{flex-direction:column;align-items:stretch}.play-btn[data-v-9b86bd37]{width:100%;height:40px;font-size:14px}.copy-btn[data-v-9b86bd37]{width:100%;height:40px}.video-player-section[data-v-9b86bd37]{margin-bottom:16px}.player-header h3[data-v-9b86bd37]{font-size:16px}.video-player[data-v-9b86bd37]{min-height:250px}.video-info-card.collapsed-when-playing .video-header[data-v-9b86bd37]{flex-direction:column;gap:12px}.video-info-card.collapsed-when-playing .video-poster[data-v-9b86bd37]{width:100px;height:140px;align-self:center}.video-info-card.collapsed-when-playing .title-main[data-v-9b86bd37]{font-size:16px}}@media (max-width: 480px){.detail-header[data-v-9b86bd37]{padding:10px 12px}.header-title[data-v-9b86bd37],.title-main[data-v-9b86bd37]{font-size:13px}.favorite-btn[data-v-9b86bd37]{min-width:70px;font-size:11px}.episodes-grid[data-v-9b86bd37]{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}.video-player-section[data-v-9b86bd37]{margin-bottom:12px}.player-header[data-v-9b86bd37]{flex-direction:column;gap:8px;align-items:flex-start}.player-header h3[data-v-9b86bd37]{font-size:14px}.video-player[data-v-9b86bd37]{min-height:200px}.video-info-card.collapsed-when-playing .video-poster[data-v-9b86bd37]{width:80px;height:112px}.video-info-card.collapsed-when-playing .title-main[data-v-9b86bd37]{font-size:14px}}.parse-dialog-content[data-v-9b86bd37]{padding:20px 0;text-align:center}.parse-message[data-v-9b86bd37]{font-size:16px;color:var(--color-text-1);margin-bottom:20px;line-height:1.5}.parse-hint[data-v-9b86bd37]{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px;background:var(--color-bg-2);border-radius:8px;border-left:4px solid var(--color-primary)}.hint-icon[data-v-9b86bd37]{color:var(--color-primary);font-size:18px}.hint-text[data-v-9b86bd37]{color:var(--color-text-2);font-size:14px}.parse-dialog-footer[data-v-9b86bd37]{display:flex;justify-content:center;padding-top:16px}.sniff-progress[data-v-9b86bd37]{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px;background:var(--color-bg-2);border-radius:8px;margin:16px 0;border-left:4px solid var(--color-warning)}.progress-icon[data-v-9b86bd37]{color:var(--color-warning)}.progress-text[data-v-9b86bd37]{color:var(--color-text-1);font-size:14px}.sniff-results[data-v-9b86bd37]{margin:16px 0;text-align:left}.results-title[data-v-9b86bd37]{font-size:14px;font-weight:500;color:var(--color-text-1);margin-bottom:12px}.results-list[data-v-9b86bd37]{background:var(--color-bg-2);border-radius:8px;padding:12px;border-left:4px solid var(--color-success)}.result-item[data-v-9b86bd37]{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px}.result-item[data-v-9b86bd37]:last-child{margin-bottom:0}.result-index[data-v-9b86bd37]{background:var(--color-success);color:#fff;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;flex-shrink:0}.result-info[data-v-9b86bd37]{flex:1;min-width:0}.result-url[data-v-9b86bd37]{font-size:12px;color:var(--color-text-2);word-break:break-all;line-height:1.4}.result-type[data-v-9b86bd37]{font-size:11px;color:var(--color-text-3);margin-top:2px}.more-results[data-v-9b86bd37]{font-size:12px;color:var(--color-text-3);text-align:center;margin-top:8px;padding-top:8px;border-top:1px solid var(--color-border-2)}.live-proxy-selector[data-v-638b32e0]{display:flex;align-items:center;gap:4px;padding:6px 10px;border-radius:4px;cursor:pointer;transition:all .2s ease;background:transparent;border:none;font-size:12px;font-weight:500;color:#495057;min-height:28px;position:relative}.live-proxy-selector[data-v-638b32e0]:hover{background:#e9ecef;color:#212529;transform:translateY(-1px)}.selector-icon[data-v-638b32e0]{width:14px;height:14px;flex-shrink:0}.proxy-select[data-v-638b32e0]{border:none!important;background:transparent!important;box-shadow:none!important;min-width:120px}.proxy-select[data-v-638b32e0] .arco-select-view{border:none!important;background:transparent!important;padding:0;font-size:11px;font-weight:500}.proxy-select[data-v-638b32e0] .arco-select-view-suffix,.proxy-select[data-v-638b32e0] .arco-select-view-value{color:currentColor}.live-container[data-v-725ef902]{height:100%;display:flex;flex-direction:column;overflow:hidden}.simple-header[data-v-725ef902]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 20px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border-2);box-sizing:border-box}.navigation-title[data-v-725ef902]{font-size:16px;font-weight:600;color:var(--color-text-1);white-space:nowrap}.header-actions[data-v-725ef902]{display:flex;align-items:center;gap:12px}.live-content[data-v-725ef902]{flex:1;padding:16px;overflow:hidden}.loading-container[data-v-725ef902],.error-container[data-v-725ef902],.no-config-container[data-v-725ef902]{height:100%;display:flex;align-items:center;justify-content:center}.live-main[data-v-725ef902]{height:100%;display:flex;gap:16px}.groups-panel[data-v-725ef902],.channels-panel[data-v-725ef902]{width:280px;background:var(--color-bg-2);border-radius:8px;border:1px solid var(--color-border-2);display:flex;flex-direction:column;overflow:hidden}.player-panel[data-v-725ef902]{flex:1;background:var(--color-bg-2);border-radius:8px;border:1px solid var(--color-border-2);display:flex;flex-direction:column;overflow:hidden;min-width:400px}.panel-header[data-v-725ef902]{padding:16px;border-bottom:1px solid var(--color-border-2);display:flex;align-items:center;justify-content:space-between;background:var(--color-bg-3)}.panel-header h3[data-v-725ef902]{margin:0;font-size:14px;font-weight:600;color:var(--color-text-1)}.group-count[data-v-725ef902],.channel-count[data-v-725ef902]{font-size:12px;color:var(--color-text-3)}.player-controls[data-v-725ef902]{display:flex;gap:8px}.groups-list[data-v-725ef902],.channels-list[data-v-725ef902]{flex:1;overflow-y:auto;padding:8px}.group-item[data-v-725ef902],.channel-item[data-v-725ef902]{padding:12px;border-radius:6px;cursor:pointer;transition:all .2s;margin-bottom:4px}.group-item[data-v-725ef902]:hover,.channel-item[data-v-725ef902]:hover{background:var(--color-fill-2)}.group-item.active[data-v-725ef902],.channel-item.active[data-v-725ef902]{background:var(--color-primary-light-1);color:var(--color-primary-6)}.group-info[data-v-725ef902]{display:flex;align-items:center;justify-content:space-between}.group-name[data-v-725ef902]{font-size:14px;font-weight:500}.channel-item[data-v-725ef902]{display:flex;align-items:center;gap:12px}.channel-logo[data-v-725ef902]{flex:1;height:45px;min-width:60px;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;position:relative}.channel-logo[data-v-725ef902]:before{content:"";position:absolute;inset:0;background:#ffffff1a;border-radius:6px}.channel-logo img[data-v-725ef902]{width:80%;height:80%;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 1px 2px rgba(0,0,0,.1))}.default-logo[data-v-725ef902]{font-size:20px;color:#ffffffe6;position:relative;z-index:1}.channel-info[data-v-725ef902]{width:120px;flex-shrink:0}.channel-name[data-v-725ef902]{font-size:14px;font-weight:500;color:var(--color-text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel-group[data-v-725ef902]{font-size:12px;color:var(--color-text-3);margin-top:2px}.player-content[data-v-725ef902]{flex:1;display:flex;flex-direction:column;overflow:hidden}.no-selection[data-v-725ef902]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--color-text-3)}.no-selection-icon[data-v-725ef902]{font-size:48px;margin-bottom:16px}.player-wrapper[data-v-725ef902]{flex:1;display:flex;flex-direction:column;overflow:hidden}.video-container[data-v-725ef902]{flex:1;position:relative;background:#000;display:flex;align-items:center;justify-content:center}.video-container video[data-v-725ef902]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.video-loading[data-v-725ef902],.video-error[data-v-725ef902]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#000c;color:#fff}.error-icon[data-v-725ef902]{font-size:48px;color:var(--color-danger-6);margin-bottom:16px}.error-detail[data-v-725ef902]{font-size:12px;color:var(--color-text-3);margin-top:8px;text-align:center}.groups-list[data-v-725ef902]::-webkit-scrollbar,.channels-list[data-v-725ef902]::-webkit-scrollbar{width:6px}.groups-list[data-v-725ef902]::-webkit-scrollbar-track,.channels-list[data-v-725ef902]::-webkit-scrollbar-track{background:var(--color-fill-2);border-radius:3px}.groups-list[data-v-725ef902]::-webkit-scrollbar-thumb,.channels-list[data-v-725ef902]::-webkit-scrollbar-thumb{background:var(--color-fill-4);border-radius:3px}.groups-list[data-v-725ef902]::-webkit-scrollbar-thumb:hover,.channels-list[data-v-725ef902]::-webkit-scrollbar-thumb:hover{background:var(--color-fill-6)}.parser-container[data-v-801d7d95]{height:100%;display:flex;flex-direction:column;overflow:hidden}.simple-header[data-v-801d7d95]{padding:16px 24px;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2)}.navigation-title[data-v-801d7d95]{font-size:18px;font-weight:600;color:var(--color-text-1)}.parser-header[data-v-801d7d95]{background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2);padding:16px 24px}.header-content[data-v-801d7d95]{display:flex;align-items:center;justify-content:space-between}.header-left[data-v-801d7d95]{display:flex;align-items:center;gap:16px}.header-info[data-v-801d7d95]{display:flex;flex-direction:column;gap:4px}.page-title[data-v-801d7d95]{font-size:16px;font-weight:600;color:var(--color-text-1);margin:0}.page-subtitle[data-v-801d7d95]{font-size:12px;color:var(--color-text-3);margin:0}.count-badge[data-v-801d7d95]{margin-left:8px}.header-actions[data-v-801d7d95]{display:flex;align-items:center;gap:12px}.parser-content[data-v-801d7d95]{flex:1;overflow-y:auto;padding:24px;background:var(--color-bg-1)}.loading-container[data-v-801d7d95],.error-container[data-v-801d7d95],.empty-container[data-v-801d7d95]{height:400px;display:flex;align-items:center;justify-content:center}.filter-section[data-v-801d7d95]{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;padding:16px;background:var(--color-bg-2);border-radius:8px;border:1px solid var(--color-border-2)}.filter-controls[data-v-801d7d95]{display:flex;align-items:center;gap:12px}.parsers-list[data-v-801d7d95]{background:var(--color-bg-2);border-radius:8px;border:1px solid var(--color-border-2);overflow:hidden}.drag-container[data-v-801d7d95]{min-height:100px}.parser-item[data-v-801d7d95]{display:flex;align-items:flex-start;padding:16px;border-bottom:1px solid var(--color-border-2);transition:all .2s ease;background:var(--color-bg-2)}.parser-item[data-v-801d7d95]:last-child{border-bottom:none}.parser-item[data-v-801d7d95]:hover{background:var(--color-fill-1)}.parser-item.disabled[data-v-801d7d95]{opacity:.6}.parser-drag-handle[data-v-801d7d95]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:12px;cursor:grab;color:var(--color-text-3)}.parser-drag-handle[data-v-801d7d95]:active{cursor:grabbing}.parser-info[data-v-801d7d95]{flex:1;min-width:0}.parser-header-row[data-v-801d7d95]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.parser-name[data-v-801d7d95]{font-size:16px;font-weight:600;color:var(--color-text-1)}.parser-actions[data-v-801d7d95]{display:flex;align-items:center;gap:8px}.parser-details[data-v-801d7d95]{margin-bottom:8px}.parser-url[data-v-801d7d95]{font-size:14px;color:var(--color-text-2);margin-bottom:8px;word-break:break-all}.parser-meta[data-v-801d7d95]{display:flex;align-items:center;gap:12px}.parser-flags[data-v-801d7d95]{font-size:12px;color:var(--color-text-3)}.test-result[data-v-801d7d95]{margin-top:12px}.danger-option[data-v-801d7d95]{color:var(--color-danger-6)}.form-help[data-v-801d7d95]{font-size:12px;color:var(--color-text-3);margin-top:4px}.upload-area[data-v-801d7d95]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;border:2px dashed var(--color-border-2);border-radius:8px;background:var(--color-fill-1);cursor:pointer;transition:all .2s ease}.upload-area[data-v-801d7d95]:hover{border-color:var(--color-primary-6);background:var(--color-primary-light-1)}.upload-text[data-v-801d7d95]{text-align:center;margin-top:12px}.upload-hint[data-v-801d7d95]{font-size:12px;color:var(--color-text-3);margin-top:4px}.batch-test-content[data-v-801d7d95]{max-height:500px;overflow-y:auto}.test-actions[data-v-801d7d95]{display:flex;gap:12px;margin:16px 0}.batch-results[data-v-801d7d95]{margin-top:24px}.results-list[data-v-801d7d95]{max-height:300px;overflow-y:auto}.result-item[data-v-801d7d95]{padding:12px;border:1px solid var(--color-border-2);border-radius:6px;margin-bottom:8px}.result-header[data-v-801d7d95]{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.result-message[data-v-801d7d95]{font-size:12px;color:var(--color-text-3)}@media (max-width: 768px){.parser-header[data-v-801d7d95]{padding:16px}.header-content[data-v-801d7d95]{flex-direction:column;gap:16px;align-items:stretch}.header-actions[data-v-801d7d95]{flex-wrap:wrap;justify-content:center}.filter-section[data-v-801d7d95]{flex-direction:column;gap:12px;align-items:stretch}.parser-content[data-v-801d7d95]{padding:16px}.parser-header-row[data-v-801d7d95]{flex-direction:column;align-items:flex-start;gap:8px}.parser-actions[data-v-801d7d95]{align-self:flex-end}}.video-card[data-v-c41f7fbb]{background:var(--color-bg-2);border-radius:8px;overflow:hidden;transition:all .3s ease;cursor:pointer;border:1px solid var(--color-border-2)}.video-card[data-v-c41f7fbb]:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0000001f;border-color:var(--color-primary-light-3)}.video-card.last-clicked .card-title[data-v-c41f7fbb]{color:var(--color-primary-6)}.card-poster[data-v-c41f7fbb]{position:relative;width:100%;height:240px;overflow:hidden}.card-poster img[data-v-c41f7fbb]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.video-card:hover .card-poster img[data-v-c41f7fbb]{transform:scale(1.05)}.card-overlay[data-v-c41f7fbb]{position:absolute;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;gap:8px;opacity:0;transition:opacity .3s ease}.video-card:hover .card-overlay[data-v-c41f7fbb]{opacity:1}.play-btn[data-v-c41f7fbb]{background:var(--color-primary);border:none}.image-btn[data-v-c41f7fbb],.remove-btn[data-v-c41f7fbb],.delete-btn[data-v-c41f7fbb]{background:#ffffffe6;border:none;color:var(--color-text-1)}.remove-btn[data-v-c41f7fbb]:hover,.delete-btn[data-v-c41f7fbb]:hover{background:var(--color-danger);color:#fff}.card-info[data-v-c41f7fbb]{padding:16px}.card-title[data-v-c41f7fbb]{font-size:16px;font-weight:600;margin:0 0 8px;color:var(--color-text-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-meta[data-v-c41f7fbb]{display:flex;gap:4px;margin-bottom:8px;flex-wrap:wrap}.card-history[data-v-c41f7fbb]{margin-bottom:8px}.history-episode[data-v-c41f7fbb]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--color-primary);background:var(--color-primary-light-1);padding:4px 8px;border-radius:4px}.card-source[data-v-c41f7fbb]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--color-text-3);margin-bottom:4px}.card-time[data-v-c41f7fbb]{font-size:12px;color:var(--color-text-4)}.video-remarks-overlay[data-v-c41f7fbb]{position:absolute;top:4px;right:4px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:500;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 4px #0000004d;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.video-card.last-clicked .card-title[data-v-c41f7fbb]{color:var(--color-primary)}.api-manager[data-v-0286105d]{max-height:70vh;overflow-y:auto}.stats-section[data-v-0286105d]{margin:16px 0;padding:16px;background:var(--color-fill-1);border-radius:6px}.analysis-section[data-v-0286105d]{margin:16px 0}.analysis-section h3[data-v-0286105d]{margin-bottom:12px;font-size:16px;font-weight:600}.replacement-section[data-v-0286105d]{margin:16px 0;padding:16px;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-1)}.replacement-section h3[data-v-0286105d]{margin-bottom:16px;font-size:16px;font-weight:600}.preview-section[data-v-0286105d]{margin-top:8px}.action-buttons[data-v-0286105d]{margin-top:24px;text-align:right;border-top:1px solid var(--color-border-2);padding-top:16px}[data-v-0286105d] .arco-table-cell{padding:8px 12px!important}[data-v-0286105d] .arco-typography{margin-bottom:0!important}.collection-container[data-v-a6d3540f]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1)}.collection-header[data-v-a6d3540f]{display:flex;align-items:center;justify-content:space-between;padding:24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.header-left[data-v-a6d3540f]{display:flex;align-items:center;gap:12px}.page-title[data-v-a6d3540f]{font-size:24px;font-weight:700;color:var(--color-text-1);margin:0}.count-badge[data-v-a6d3540f]{margin-left:8px}.header-actions[data-v-a6d3540f]{display:flex;align-items:center;gap:16px}.filter-section[data-v-a6d3540f]{padding:16px 24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.filter-tabs[data-v-a6d3540f]{display:flex;gap:8px;flex-wrap:wrap}.collection-content[data-v-a6d3540f]{flex:1;padding:24px;overflow-y:auto}.empty-state[data-v-a6d3540f]{display:flex;align-items:center;justify-content:center;min-height:400px}.favorites-grid[data-v-a6d3540f]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}.danger-option[data-v-a6d3540f]{color:var(--color-danger-6)}@media (max-width: 1200px){.favorites-grid[data-v-a6d3540f]{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}}@media (max-width: 768px){.collection-header[data-v-a6d3540f]{flex-direction:column;gap:16px;align-items:stretch}.header-actions[data-v-a6d3540f]{flex-direction:column;gap:12px}.header-actions .arco-input-wrapper[data-v-a6d3540f]{width:100%!important}.filter-section[data-v-a6d3540f]{padding:12px 16px}.collection-content[data-v-a6d3540f]{padding:16px}.favorites-grid[data-v-a6d3540f]{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}}@media (max-width: 480px){.collection-header[data-v-a6d3540f]{padding:16px}.page-title[data-v-a6d3540f]{font-size:20px}.favorites-grid[data-v-a6d3540f]{grid-template-columns:1fr}}.viewer[data-v-a6d3540f]{display:none}.history-container[data-v-6d5a9ba3]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1)}.history-header[data-v-6d5a9ba3]{display:flex;align-items:center;justify-content:space-between;padding:24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.header-left[data-v-6d5a9ba3]{display:flex;align-items:center;gap:12px}.page-title[data-v-6d5a9ba3]{font-size:24px;font-weight:700;color:var(--color-text-1);margin:0}.count-badge[data-v-6d5a9ba3]{margin-left:8px}.header-actions[data-v-6d5a9ba3]{display:flex;align-items:center;gap:16px}.filter-section[data-v-6d5a9ba3]{padding:16px 24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.filter-tabs[data-v-6d5a9ba3]{display:flex;gap:8px;flex-wrap:wrap}.history-content[data-v-6d5a9ba3]{flex:1;padding:24px;overflow-y:auto}.empty-state[data-v-6d5a9ba3]{display:flex;align-items:center;justify-content:center;min-height:400px}.history-grid[data-v-6d5a9ba3]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}.danger-option[data-v-6d5a9ba3]{color:var(--color-danger-6)}@media (max-width: 1200px){.history-grid[data-v-6d5a9ba3]{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}}@media (max-width: 768px){.history-header[data-v-6d5a9ba3]{flex-direction:column;gap:16px;align-items:stretch}.header-actions[data-v-6d5a9ba3]{flex-direction:column;gap:12px}.header-actions .arco-input-wrapper[data-v-6d5a9ba3]{width:100%!important}.filter-section[data-v-6d5a9ba3]{padding:12px 16px}.history-content[data-v-6d5a9ba3]{padding:16px}.history-grid[data-v-6d5a9ba3]{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}}@media (max-width: 480px){.history-header[data-v-6d5a9ba3]{padding:16px}.page-title[data-v-6d5a9ba3]{font-size:20px}.history-grid[data-v-6d5a9ba3]{grid-template-columns:1fr}}.viewer[data-v-6d5a9ba3]{display:none}.history-trigger-btn[data-v-1b7cbbb7]{color:var(--color-text-3);transition:all .3s ease}.history-trigger-btn[data-v-1b7cbbb7]:hover{color:var(--color-primary-6);background-color:var(--color-primary-light-1)}.address-history-content[data-v-1b7cbbb7]{width:380px;max-height:400px;background:#fff;border-radius:8px;overflow:hidden}.history-header[data-v-1b7cbbb7]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.history-title[data-v-1b7cbbb7]{font-size:14px;font-weight:500;color:var(--color-text-1)}.history-count[data-v-1b7cbbb7]{font-size:12px;color:var(--color-text-3);background:var(--color-fill-2);padding:2px 6px;border-radius:4px}.empty-state[data-v-1b7cbbb7]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;color:var(--color-text-3)}.empty-icon[data-v-1b7cbbb7]{font-size:32px;margin-bottom:8px;opacity:.5}.empty-text[data-v-1b7cbbb7]{font-size:14px}.history-list[data-v-1b7cbbb7]{max-height:300px;overflow-y:auto}.history-item[data-v-1b7cbbb7]{display:flex;align-items:center;padding:12px 16px;cursor:pointer;transition:all .2s ease;border-bottom:1px solid var(--color-border-3)}.history-item[data-v-1b7cbbb7]:hover{background:var(--color-bg-2)}.history-item[data-v-1b7cbbb7]:last-child{border-bottom:none}.history-content[data-v-1b7cbbb7]{flex:1;min-width:0;margin-right:8px}.history-url[data-v-1b7cbbb7]{font-size:13px;color:var(--color-text-1);word-break:break-all;line-height:1.4;margin-bottom:4px}.history-time[data-v-1b7cbbb7]{font-size:11px;color:var(--color-text-3)}.delete-btn[data-v-1b7cbbb7]{color:var(--color-text-4);opacity:0;transition:all .2s ease}.history-item:hover .delete-btn[data-v-1b7cbbb7]{opacity:1}.delete-btn[data-v-1b7cbbb7]:hover{color:var(--color-danger-6);background-color:var(--color-danger-light-1)}.history-footer[data-v-1b7cbbb7]{padding:8px 16px;background:var(--color-bg-1);border-top:1px solid var(--color-border-2);text-align:center}.clear-all-btn[data-v-1b7cbbb7]{color:var(--color-text-3);font-size:12px}.clear-all-btn[data-v-1b7cbbb7]:hover{color:var(--color-danger-6);background-color:var(--color-danger-light-1)}.history-list[data-v-1b7cbbb7]::-webkit-scrollbar{width:4px}.history-list[data-v-1b7cbbb7]::-webkit-scrollbar-track{background:var(--color-bg-2)}.history-list[data-v-1b7cbbb7]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:2px}.history-list[data-v-1b7cbbb7]::-webkit-scrollbar-thumb:hover{background:var(--color-border-2)}.player-selector[data-v-47648913]{padding:16px 0}.player-list[data-v-47648913]{display:flex;flex-direction:column;gap:12px}.player-item[data-v-47648913]{display:flex;align-items:center;justify-content:space-between;padding:16px;border:2px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all .3s ease;background:#fff}.player-item[data-v-47648913]:hover{border-color:#3b82f6;background:#f8faff;transform:translateY(-2px);box-shadow:0 4px 12px #3b82f626}.player-item.active[data-v-47648913]{border-color:#3b82f6;background:linear-gradient(135deg,#f8faff,#eff6ff);box-shadow:0 4px 16px #3b82f633}.player-info[data-v-47648913]{display:flex;align-items:center;gap:16px}.player-icon[data-v-47648913]{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;color:#fff;font-size:24px}.player-item.active .player-icon[data-v-47648913]{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.player-details[data-v-47648913]{flex:1}.player-name[data-v-47648913]{font-size:16px;font-weight:600;color:#1f2937;margin-bottom:4px}.player-desc[data-v-47648913]{font-size:14px;color:#6b7280;line-height:1.4}.player-check[data-v-47648913]{width:24px;height:24px;display:flex;align-items:center;justify-content:center}.check-icon[data-v-47648913]{font-size:24px;color:#3b82f6}@media (max-width: 640px){.player-item[data-v-47648913]{padding:12px}.player-icon[data-v-47648913]{width:40px;height:40px;font-size:20px}.player-info[data-v-47648913]{gap:12px}.player-name[data-v-47648913]{font-size:15px}.player-desc[data-v-47648913]{font-size:13px}}.backup-restore-container[data-v-fba616ca]{padding:4px 0}.section-title[data-v-fba616ca]{display:flex;align-items:center;font-size:16px;font-weight:600;color:var(--color-text-1);margin-bottom:8px}.title-icon[data-v-fba616ca]{margin-right:6px;color:var(--color-primary)}.stats-section[data-v-fba616ca]{margin-bottom:16px}.stats-grid[data-v-fba616ca]{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:8px}.stat-item[data-v-fba616ca]{text-align:center;padding:8px 4px;background:var(--color-bg-2);border-radius:6px;border:1px solid var(--color-border-2)}.stat-value[data-v-fba616ca]{font-size:18px;font-weight:600;color:var(--color-primary);margin-bottom:2px;line-height:1.2}.stat-label[data-v-fba616ca]{font-size:11px;color:var(--color-text-3);line-height:1.2}.data-size[data-v-fba616ca]{text-align:center;font-size:12px;color:var(--color-text-2);padding:6px;background:var(--color-bg-1);border-radius:4px;line-height:1.2}.operation-section[data-v-fba616ca]{margin-bottom:16px}.operation-content[data-v-fba616ca]{background:var(--color-bg-1);padding:12px;border-radius:8px;border:1px solid var(--color-border-2)}.operation-desc[data-v-fba616ca]{margin-bottom:10px;color:var(--color-text-2);line-height:1.3;font-size:13px}.restore-actions[data-v-fba616ca]{display:flex;flex-direction:column;gap:8px;margin-bottom:10px;align-items:flex-start}.selected-file[data-v-fba616ca]{display:flex;align-items:center;padding:8px;background:var(--color-bg-2);border-radius:6px;border:1px solid var(--color-border-2)}.file-icon[data-v-fba616ca]{margin-right:6px;color:var(--color-primary)}.file-name[data-v-fba616ca]{flex:1;font-size:13px;color:var(--color-text-1);word-break:break-all;line-height:1.3}.warning-section[data-v-fba616ca]{margin-top:12px}.warning-list[data-v-fba616ca]{margin:4px 0 0;padding-left:16px}.warning-list li[data-v-fba616ca]{margin-bottom:2px;color:var(--color-text-2);font-size:12px;line-height:1.3}.custom-file-list[data-v-fba616ca]{margin-top:8px}.restore-actions .arco-upload-list[data-v-fba616ca],.restore-actions .arco-upload-list-item[data-v-fba616ca]{display:none!important}.custom-upload-item[data-v-fba616ca]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--color-fill-2);border-radius:4px;margin-top:6px;min-height:36px}.file-info[data-v-fba616ca]{display:flex;align-items:center;flex:1;min-height:20px}.file-icon[data-v-fba616ca]{margin-right:6px;color:var(--color-text-3);font-size:14px}.file-name[data-v-fba616ca]{color:var(--color-text-1);font-weight:500;margin-right:6px;line-height:1.3;font-size:13px}.file-size[data-v-fba616ca]{color:var(--color-text-3);font-size:11px;line-height:1.3}.remove-btn[data-v-fba616ca]{color:var(--color-text-3);display:flex;align-items:center;justify-content:center;min-width:20px;min-height:20px}.remove-btn[data-v-fba616ca]:hover{color:var(--color-danger)}@media (max-width: 768px){.stats-grid[data-v-fba616ca]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 480px){.stats-grid[data-v-fba616ca]{grid-template-columns:repeat(2,1fr)}}.about-content[data-v-2955a8d5]{display:flex;flex-direction:column;height:100%}.about-header[data-v-2955a8d5]{display:flex;align-items:center;gap:20px;padding:24px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border-radius:12px 12px 0 0}.about-logo[data-v-2955a8d5]{display:flex;align-items:center;justify-content:center;width:64px;height:64px;background:#fff3;border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.logo-icon[data-v-2955a8d5]{font-size:32px;color:#fff}.about-title-section[data-v-2955a8d5]{flex:1}.about-title[data-v-2955a8d5]{font-size:28px;font-weight:700;margin:0 0 8px;color:#fff}.about-subtitle[data-v-2955a8d5]{font-size:16px;margin:0 0 12px;color:#ffffffe6;font-weight:400}.about-version[data-v-2955a8d5]{display:flex;align-items:center;gap:8px}.version-badge[data-v-2955a8d5]{background:#fff3;color:#fff;padding:4px 12px;border-radius:20px;font-size:14px;font-weight:600;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.about-scroll-content[data-v-2955a8d5]{flex:1;overflow-y:auto;padding:24px;max-height:calc(60vh - 140px)}.about-section[data-v-2955a8d5]{margin-bottom:32px}.about-section[data-v-2955a8d5]:last-child{margin-bottom:0}.section-title[data-v-2955a8d5]{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:600;color:#1e293b;margin:0 0 16px}.section-icon[data-v-2955a8d5]{font-size:20px;color:#6366f1}.section-content[data-v-2955a8d5]{font-size:14px;line-height:1.6;color:#64748b;margin:0}.features-grid[data-v-2955a8d5]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-top:16px}.feature-item[data-v-2955a8d5]{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#6366f10d;border-radius:12px;border:1px solid rgba(99,102,241,.1)}.feature-icon[data-v-2955a8d5]{font-size:20px;color:#6366f1;margin-top:2px;flex-shrink:0}.feature-text h4[data-v-2955a8d5]{font-size:14px;font-weight:600;color:#1e293b;margin:0 0 4px}.feature-text p[data-v-2955a8d5]{font-size:13px;color:#64748b;margin:0;line-height:1.4}.tech-stack[data-v-2955a8d5]{display:flex;flex-direction:column;gap:20px;margin-top:16px}.tech-category h4[data-v-2955a8d5]{font-size:14px;font-weight:600;color:#1e293b;margin:0 0 8px}.tech-tags[data-v-2955a8d5]{display:flex;flex-wrap:wrap;gap:8px}.tech-tag[data-v-2955a8d5]{background:linear-gradient(135deg,#f1f5f9,#e2e8f0);color:#475569;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:500;border:1px solid rgba(0,0,0,.05)}.links-section[data-v-2955a8d5]{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}.about-link[data-v-2955a8d5]{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#6366f11a;color:#6366f1;text-decoration:none;border-radius:8px;font-size:14px;font-weight:500;transition:all .3s ease;border:1px solid rgba(99,102,241,.2)}.about-link[data-v-2955a8d5]:hover{background:#6366f126;transform:translateY(-1px)}.link-icon[data-v-2955a8d5]{font-size:16px}.about-footer[data-v-2955a8d5]{text-align:center;padding:20px 0;border-top:1px solid #e2e8f0;margin-top:24px}.about-footer p[data-v-2955a8d5]{font-size:13px;color:#64748b;margin:4px 0}@media (max-width: 768px){.about-header[data-v-2955a8d5]{flex-direction:column;text-align:center;gap:16px}.features-grid[data-v-2955a8d5]{grid-template-columns:1fr}.links-section[data-v-2955a8d5]{flex-direction:column}.about-link[data-v-2955a8d5]{justify-content:center}}.scroll-to-bottom-btn[data-v-84fbc664]{position:fixed;right:var(--v52f4c3b6);bottom:var(--v1e9e685e);width:48px;height:48px;background:#6366f1;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px #6366f14d;transition:all .3s ease;z-index:1000;-webkit-user-select:none;-moz-user-select:none;user-select:none}.scroll-to-bottom-btn[data-v-84fbc664]:hover{background:#5855eb;transform:translateY(-2px);box-shadow:0 6px 16px #6366f166}.scroll-to-bottom-btn[data-v-84fbc664]:active{transform:translateY(0);box-shadow:0 2px 8px #6366f14d}.scroll-btn-icon[data-v-84fbc664]{font-size:20px;color:#fff;transition:transform .3s ease}.scroll-to-bottom-btn:hover .scroll-btn-icon[data-v-84fbc664]{transform:translateY(2px)}.scroll-btn-fade-enter-active[data-v-84fbc664],.scroll-btn-fade-leave-active[data-v-84fbc664]{transition:all .3s ease}.scroll-btn-fade-enter-from[data-v-84fbc664],.scroll-btn-fade-leave-to[data-v-84fbc664]{opacity:0;transform:translateY(20px) scale(.8)}.scroll-btn-fade-enter-to[data-v-84fbc664],.scroll-btn-fade-leave-from[data-v-84fbc664]{opacity:1;transform:translateY(0) scale(1)}.settings-container[data-v-75fc2361]{height:100%;display:flex;flex-direction:column;overflow:hidden}.simple-header[data-v-75fc2361]{display:flex;align-items:center;width:100%;padding:16px 20px;background:var(--color-bg-3);border-bottom:1px solid var(--color-border-2);box-sizing:border-box;flex-shrink:0}.navigation-title[data-v-75fc2361]{font-size:16px;font-weight:600;color:var(--color-text-1);white-space:nowrap}.settings-content[data-v-75fc2361]{flex:1;width:100%;max-width:none;margin:0;padding:20px 24px 40px;display:flex;flex-direction:column;gap:24px;overflow-y:auto;box-sizing:border-box;max-height:calc(100vh - 120px)}.settings-card[data-v-75fc2361]{width:100%;height:auto;border-radius:16px;box-shadow:0 8px 32px #0000001a;border:1px solid rgba(255,255,255,.2);background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .3s ease;overflow:visible;box-sizing:border-box}.settings-card[data-v-75fc2361]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #00000026}.settings-card[data-v-75fc2361] .arco-card-header{background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-bottom:1px solid rgba(0,0,0,.05);padding:20px 24px}.settings-card[data-v-75fc2361] .arco-card-header-title{font-size:18px;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:12px}.card-icon[data-v-75fc2361]{font-size:20px;color:#6366f1}.settings-card[data-v-75fc2361] .arco-card{height:auto}.settings-card[data-v-75fc2361] .arco-card-body{padding:24px;height:auto}.config-card[data-v-75fc2361]{background:linear-gradient(135deg,#6366f10d,#8b5cf60d)}.config-section[data-v-75fc2361]{display:flex;flex-direction:column;gap:20px;height:auto;min-height:auto}.config-input-group[data-v-75fc2361]{display:flex;gap:12px;align-items:flex-start;width:100%;max-width:100%;overflow:hidden;box-sizing:border-box}.config-input[data-v-75fc2361]{flex:1;min-width:0;max-width:calc(100% - 180px);overflow:hidden}.config-input[data-v-75fc2361] .arco-input{border-radius:12px;border:2px solid #e2e8f0;transition:all .3s ease;font-size:14px}.config-input[data-v-75fc2361] .arco-input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.config-actions[data-v-75fc2361]{display:flex;gap:8px;flex-shrink:0;max-width:170px;overflow:hidden}.config-actions .arco-btn[data-v-75fc2361]{border-radius:12px;font-weight:500;min-width:80px;transition:all .3s ease}.config-actions .arco-btn-primary[data-v-75fc2361]{background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none}.config-actions .arco-btn-primary[data-v-75fc2361]:hover{background:linear-gradient(135deg,#5b5bd6,#7c3aed);transform:translateY(-1px)}.config-actions .arco-btn-outline[data-v-75fc2361]{border:2px solid #e2e8f0;color:#64748b}.config-actions .arco-btn-outline[data-v-75fc2361]:hover{border-color:#6366f1;color:#6366f1;background:#6366f10d}.config-status[data-v-75fc2361]{margin-top:12px}.config-message[data-v-75fc2361]{display:flex;align-items:center;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:500;border:1px solid;background-color:#ffffffe6}.config-message-success[data-v-75fc2361]{color:#00b42a;background-color:#00b42a1a;border-color:#00b42a4d}.config-message-error[data-v-75fc2361]{color:#f53f3f;background-color:#f53f3f1a;border-color:#f53f3f4d}.config-message-warning[data-v-75fc2361]{color:#ff7d00;background-color:#ff7d001a;border-color:#ff7d004d}.config-icon[data-v-75fc2361]{margin-right:8px;font-size:16px;flex-shrink:0}.config-text[data-v-75fc2361]{flex:1;line-height:1.5}.settings-grid[data-v-75fc2361]{display:flex;flex-direction:column;gap:12px;height:auto;min-height:auto}.setting-item[data-v-75fc2361]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#ffffffb3;border:1px solid rgba(0,0,0,.05);border-radius:12px;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden;width:100%;max-width:100%;min-width:0;box-sizing:border-box}.setting-item[data-v-75fc2361]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(135deg,#6366f1,#8b5cf6);transform:scaleY(0);transition:transform .3s ease}.setting-item[data-v-75fc2361]:hover{background:#ffffffe6;border-color:#6366f133;transform:translate(4px)}.setting-item[data-v-75fc2361]:hover:before{transform:scaleY(1)}.setting-info[data-v-75fc2361]{display:flex;align-items:center;gap:16px;flex:1;min-width:0;max-width:calc(100% - 120px);overflow:hidden}.setting-icon[data-v-75fc2361]{font-size:20px;color:#6366f1;background:#6366f11a;padding:8px;border-radius:8px;flex-shrink:0}.setting-text[data-v-75fc2361]{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.setting-title[data-v-75fc2361]{font-size:16px;font-weight:600;color:#1e293b;line-height:1.2;word-wrap:break-word;overflow-wrap:break-word}.setting-desc[data-v-75fc2361]{font-size:13px;color:#64748b;line-height:1.3;word-wrap:break-word;overflow-wrap:break-word}.setting-value[data-v-75fc2361]{display:flex;align-items:center;gap:12px;flex-shrink:0;max-width:110px;overflow:hidden}.value-text[data-v-75fc2361]{font-size:14px;color:#475569;font-weight:500;background:#6366f11a;padding:4px 12px;border-radius:20px}.arrow-icon[data-v-75fc2361]{font-size:16px;color:#94a3b8;transition:all .3s ease}.setting-item:hover .arrow-icon[data-v-75fc2361]{color:#6366f1;transform:translate(2px)}.setting-value[data-v-75fc2361] .arco-switch{background:#e2e8f0}.setting-value[data-v-75fc2361] .arco-switch.arco-switch-checked{background:linear-gradient(135deg,#6366f1,#8b5cf6)}.address-settings-section[data-v-75fc2361]{display:flex;flex-direction:column;gap:20px}.address-config-item[data-v-75fc2361]{padding:16px;background:#ffffffb3;border:1px solid rgba(0,0,0,.05);border-radius:12px;transition:all .3s ease}.address-config-item[data-v-75fc2361]:hover{background:#ffffffe6;border-color:#6366f133;transform:translateY(-2px);box-shadow:0 4px 20px #0000001a}.address-config-row[data-v-75fc2361]{display:flex;align-items:center;gap:16px}.address-config-info[data-v-75fc2361]{display:flex;align-items:center;gap:12px;min-width:200px;flex-shrink:0}.address-config-icon[data-v-75fc2361]{font-size:18px;color:#6366f1;background:#6366f11a;padding:8px;border-radius:8px;flex-shrink:0}.address-config-text[data-v-75fc2361]{display:flex;flex-direction:column;gap:4px}.address-config-title[data-v-75fc2361]{font-size:15px;font-weight:600;color:#1e293b;line-height:1.2}.address-config-desc[data-v-75fc2361]{font-size:13px;color:#64748b;line-height:1.3}.address-config-input-group[data-v-75fc2361]{display:flex;align-items:center;gap:12px;flex:1}.address-config-switch[data-v-75fc2361]{flex-shrink:0}.address-config-input[data-v-75fc2361]{flex:1;min-width:200px}.address-config-input[data-v-75fc2361] .arco-input{border-radius:8px;border:1px solid #e2e8f0;background:#ffffffe6;transition:all .3s ease}.address-config-input[data-v-75fc2361] .arco-input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.address-config-input[data-v-75fc2361] .arco-input:disabled{background:#f8fafc;color:#94a3b8}.address-config-actions[data-v-75fc2361]{display:flex;align-items:center;gap:8px;flex-shrink:0}.address-config-actions[data-v-75fc2361] .arco-btn{border-radius:8px;font-weight:500;transition:all .3s ease}.address-config-actions[data-v-75fc2361] .arco-btn-primary{background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none}.address-config-actions[data-v-75fc2361] .arco-btn-primary:hover{background:linear-gradient(135deg,#5855eb,#7c3aed);transform:translateY(-1px);box-shadow:0 4px 12px #6366f14d}.address-config-actions[data-v-75fc2361] .arco-btn-outline{border-color:#e2e8f0;color:#6366f1}.address-config-actions[data-v-75fc2361] .arco-btn-outline:hover{border-color:#6366f1;background:#6366f10d}.address-config-status[data-v-75fc2361]{margin-top:8px}.address-config-switch[data-v-75fc2361] .arco-switch{background:#e2e8f0}.address-config-switch[data-v-75fc2361] .arco-switch.arco-switch-checked{background:linear-gradient(135deg,#6366f1,#8b5cf6)}@media (max-width: 768px){.settings-content[data-v-75fc2361]{padding:16px 16px 24px;gap:16px}.config-input-group[data-v-75fc2361]{flex-direction:column;gap:12px;align-items:stretch}.config-input[data-v-75fc2361]{width:100%;max-width:100%}.config-actions[data-v-75fc2361]{width:100%;max-width:100%;justify-content:stretch;flex-direction:row}.config-actions .arco-btn[data-v-75fc2361]{flex:1;min-width:0}.setting-item[data-v-75fc2361]{padding:14px 16px}.setting-info[data-v-75fc2361]{gap:12px;max-width:calc(100% - 80px)}.setting-icon[data-v-75fc2361]{font-size:18px;padding:6px}.setting-title[data-v-75fc2361]{font-size:15px}.setting-desc[data-v-75fc2361]{font-size:12px}}@media (max-width: 480px){.config-actions[data-v-75fc2361]{flex-direction:column;gap:8px}.config-actions .arco-btn[data-v-75fc2361]{width:100%;flex:none}.setting-item[data-v-75fc2361]{flex-direction:column;align-items:flex-start;gap:12px}.setting-value[data-v-75fc2361]{width:100%;max-width:100%;justify-content:space-between}}.book-gallery-container[data-v-d9f7ceb3]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1)}.book-gallery-header[data-v-d9f7ceb3]{display:flex;align-items:center;justify-content:space-between;padding:24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.header-left[data-v-d9f7ceb3]{display:flex;align-items:center;gap:12px}.page-title[data-v-d9f7ceb3]{font-size:24px;font-weight:700;color:var(--color-text-1);margin:0}.count-badge[data-v-d9f7ceb3]{margin-left:8px}.header-actions[data-v-d9f7ceb3]{display:flex;align-items:center;gap:16px}.filter-section[data-v-d9f7ceb3]{padding:16px 24px;background:var(--color-bg-2);border-bottom:1px solid var(--color-border-2)}.filter-container[data-v-d9f7ceb3]{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.filter-tabs[data-v-d9f7ceb3]{display:flex;gap:8px;flex-wrap:wrap}.book-gallery-content[data-v-d9f7ceb3]{flex:1;padding:24px;overflow-y:auto}.empty-state[data-v-d9f7ceb3]{display:flex;align-items:center;justify-content:center;min-height:400px}.books-grid[data-v-d9f7ceb3]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}.danger-option[data-v-d9f7ceb3]{color:var(--color-danger-6)}.storage-stats[data-v-d9f7ceb3]{flex-shrink:0}.storage-info[data-v-d9f7ceb3]{max-width:300px;min-width:250px}.storage-header[data-v-d9f7ceb3]{display:flex;align-items:center;gap:8px;margin-bottom:12px}.storage-icon[data-v-d9f7ceb3]{font-size:16px;color:var(--color-text-2)}.storage-title[data-v-d9f7ceb3]{font-size:14px;font-weight:500;color:var(--color-text-1)}.storage-progress[data-v-d9f7ceb3]{margin-bottom:8px}.storage-details[data-v-d9f7ceb3]{display:flex;gap:16px;font-size:12px;color:var(--color-text-3)}.storage-used[data-v-d9f7ceb3]{color:var(--color-text-2)}.storage-available[data-v-d9f7ceb3]{color:var(--color-success-6)}.storage-total[data-v-d9f7ceb3]{color:var(--color-text-3)}@media (max-width: 1200px){.books-grid[data-v-d9f7ceb3]{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}}@media (max-width: 768px){.book-gallery-header[data-v-d9f7ceb3]{flex-direction:column;gap:16px;align-items:stretch}.header-actions[data-v-d9f7ceb3]{flex-direction:column;gap:12px}.header-actions .arco-input-wrapper[data-v-d9f7ceb3]{width:100%!important}.filter-section[data-v-d9f7ceb3]{padding:12px 16px}.filter-container[data-v-d9f7ceb3]{flex-direction:column;gap:16px}.storage-info[data-v-d9f7ceb3]{max-width:none;min-width:auto}.book-gallery-content[data-v-d9f7ceb3]{padding:16px}.books-grid[data-v-d9f7ceb3]{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}}@media (max-width: 480px){.book-gallery-header[data-v-d9f7ceb3]{padding:16px}.page-title[data-v-d9f7ceb3]{font-size:20px}.books-grid[data-v-d9f7ceb3]{grid-template-columns:1fr}}.viewer[data-v-d9f7ceb3]{display:none}.action-test-container[data-v-274d770e]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1);overflow:hidden}.test-header[data-v-274d770e]{position:sticky;top:0;z-index:10;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2);padding:24px 32px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content[data-v-274d770e]{width:100%;margin:0;display:flex;justify-content:space-between;align-items:flex-start}.header-left[data-v-274d770e]{flex:1}.page-title[data-v-274d770e]{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px}.nav-button-group[data-v-274d770e]{max-width:-moz-fit-content;max-width:fit-content;max-height:200px;overflow-y:auto;padding:4px;border-radius:8px;background:var(--color-bg-2);border:1px solid var(--color-border-2)}.nav-button-grid[data-v-274d770e]{display:grid;grid-template-columns:auto auto;gap:6px;padding:6px;justify-content:start}.nav-grid-button[data-v-274d770e]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-button[data-v-274d770e]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f;background:var(--color-bg-3);border-color:var(--color-primary-6)}.nav-grid-button span[data-v-274d770e]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-grid-placeholder[data-v-274d770e]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;background:var(--color-bg-3);border:1px dashed var(--color-border-3);border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-placeholder[data-v-274d770e]:hover{border-color:var(--color-primary-6);background:var(--color-primary-1)}.placeholder-text[data-v-274d770e]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-4);text-align:center}.title-icon[data-v-274d770e]{font-size:32px;color:var(--color-primary-6)}.page-subtitle[data-v-274d770e]{color:var(--color-text-3);font-size:16px;margin:0;line-height:1.5}.test-content[data-v-274d770e]{flex:1;overflow-y:auto;padding:32px;width:100%;margin:0}.test-section[data-v-274d770e]{margin-bottom:32px;padding:24px;background:var(--color-bg-2);border-radius:12px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;transition:all .3s ease}.test-section[data-v-274d770e]:hover{box-shadow:0 4px 16px #00000014;border-color:var(--color-border-3)}.test-section h2[data-v-274d770e]{color:var(--color-text-1);margin-bottom:20px;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}.test-section h2[data-v-274d770e]:before{content:"";width:4px;height:20px;background:var(--color-primary-6);border-radius:2px}.test-buttons[data-v-274d770e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.status-info[data-v-274d770e]{background:var(--color-bg-2);padding:24px;border-radius:12px;margin-bottom:32px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.status-item[data-v-274d770e]{display:flex;justify-content:space-between;align-items:center;padding:16px;background:var(--color-bg-1);border-radius:8px;border:1px solid var(--color-border-1);transition:all .2s ease}.status-item[data-v-274d770e]:hover{background:var(--color-bg-3);border-color:var(--color-border-2);transform:translateY(-1px);box-shadow:0 2px 8px #00000014}.status-item label[data-v-274d770e]{font-weight:600;color:var(--color-text-1);font-size:14px}.status-item span[data-v-274d770e]{color:var(--color-primary-6);font-weight:600;font-size:16px}.status-buttons[data-v-274d770e]{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.result-area[data-v-274d770e]{max-height:500px;overflow-y:auto;background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:12px;margin-bottom:32px;padding:24px;box-shadow:0 2px 8px #0000000a}.result-item[data-v-274d770e]{display:grid;grid-template-columns:80px 120px 80px 1fr;gap:12px;padding:16px;border-bottom:1px solid var(--color-border-1);font-size:13px;background:var(--color-bg-1);border-radius:8px;margin-bottom:8px;transition:all .2s ease}.result-item[data-v-274d770e]:hover{background:var(--color-bg-3);transform:translate(2px);box-shadow:0 2px 8px #0000000f}.result-item[data-v-274d770e]:last-child{border-bottom:none;margin-bottom:0}.result-time[data-v-274d770e]{color:#6c757d}.result-type[data-v-274d770e]{font-weight:500;color:#495057}.result-status[data-v-274d770e]{font-weight:500}.result-status.success[data-v-274d770e]{color:#28a745}.result-status.error[data-v-274d770e]{color:#dc3545}.result-data[data-v-274d770e]{color:#6c757d;word-break:break-all;max-height:60px;overflow:hidden}.debug-area[data-v-274d770e]{background:#f8f9fa;border-radius:8px;padding:20px;margin-top:16px}.debug-input-section[data-v-274d770e]{margin-bottom:24px}.debug-input-section h3[data-v-274d770e]{color:#495057;margin-bottom:12px;font-size:16px}.debug-description[data-v-274d770e]{color:#6c757d;margin-bottom:12px;font-size:14px}.debug-textarea[data-v-274d770e]{font-family:Courier New,monospace;font-size:13px}.debug-buttons[data-v-274d770e]{margin-top:12px;display:flex;gap:12px}.debug-result-section[data-v-274d770e]{margin-bottom:24px;padding:16px;background:#fff;border-radius:6px;border:1px solid #dee2e6}.debug-result-section h3[data-v-274d770e]{color:#495057;margin-bottom:16px;font-size:16px}.debug-status[data-v-274d770e]{margin-bottom:16px}.debug-label[data-v-274d770e]{font-weight:600;color:#495057}.debug-success[data-v-274d770e]{color:#28a745;font-weight:600}.debug-error[data-v-274d770e]{color:#dc3545;font-weight:600}.debug-success-content h4[data-v-274d770e],.debug-error-content h4[data-v-274d770e]{color:#495057;margin:20px 0 12px;font-size:14px}.debug-json[data-v-274d770e]{background:#f8f9fa;padding:12px;border-radius:4px;overflow-x:auto;font-size:12px;font-family:Courier New,monospace;border:1px solid #e9ecef;margin-bottom:16px}.debug-fields[data-v-274d770e]{margin-bottom:16px}.debug-field[data-v-274d770e]{padding:6px 0;display:flex;align-items:center;gap:8px}.debug-field-label[data-v-274d770e]{font-weight:600;color:#495057;min-width:80px}.debug-field-value[data-v-274d770e]{background:#f8f9fa;padding:2px 8px;border-radius:3px;font-family:Courier New,monospace;font-size:12px;border:1px solid #e9ecef}.debug-test-section[data-v-274d770e]{margin-top:16px}.debug-error-content[data-v-274d770e]{color:#721c24}.debug-error-message[data-v-274d770e]{background:#f8d7da;padding:12px;border-radius:4px;color:#721c24;font-family:Courier New,monospace;font-size:12px;border:1px solid #f5c6cb}.debug-error-section[data-v-274d770e]{padding:16px;background:#f8d7da;border-radius:6px;border:1px solid #f5c6cb}.debug-error-section h4[data-v-274d770e]{color:#721c24;margin-bottom:12px;font-size:14px}.custom-action-style{--action-color-primary: #e91e63;--action-color-primary-light: #f8bbd9}.custom-style-example[data-v-274d770e]{background:linear-gradient(135deg,var(--color-primary-6) 0%,var(--color-primary-7) 100%);color:#fff;padding:24px;border-radius:12px;margin:24px 0;text-align:center;box-shadow:0 4px 16px rgba(var(--primary-6),.2)}.custom-style-example h4[data-v-274d770e]{margin:0 0 12px;font-size:20px;font-weight:600}.custom-style-example p[data-v-274d770e]{margin:0;opacity:.9;font-size:16px;line-height:1.5}.test-content[data-v-274d770e]::-webkit-scrollbar,.result-area[data-v-274d770e]::-webkit-scrollbar{width:6px}.test-content[data-v-274d770e]::-webkit-scrollbar-track,.result-area[data-v-274d770e]::-webkit-scrollbar-track{background:var(--color-bg-2);border-radius:3px}.test-content[data-v-274d770e]::-webkit-scrollbar-thumb,.result-area[data-v-274d770e]::-webkit-scrollbar-thumb{background:var(--color-border-3);border-radius:3px}.test-content[data-v-274d770e]::-webkit-scrollbar-thumb:hover,.result-area[data-v-274d770e]::-webkit-scrollbar-thumb:hover{background:var(--color-border-4)}@media (max-width: 1024px){.test-content[data-v-274d770e]{padding:24px}.test-buttons[data-v-274d770e]{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}}@media (max-width: 768px){.test-header[data-v-274d770e]{padding:20px 24px}.page-title[data-v-274d770e]{font-size:24px}.title-icon[data-v-274d770e]{font-size:28px}.test-content[data-v-274d770e]{padding:20px}.test-buttons[data-v-274d770e]{grid-template-columns:1fr;gap:12px}.test-section[data-v-274d770e]{padding:20px}.status-info[data-v-274d770e]{grid-template-columns:1fr;gap:12px}.status-buttons[data-v-274d770e]{flex-direction:column;gap:8px}.result-item[data-v-274d770e]{grid-template-columns:1fr;gap:8px;font-size:12px}}@media (max-width: 480px){.test-header[data-v-274d770e]{padding:16px 20px}.page-title[data-v-274d770e]{font-size:20px;flex-direction:column;gap:8px;text-align:center}.test-content[data-v-274d770e]{padding:16px}.test-section[data-v-274d770e]{padding:16px;margin-bottom:24px}.status-info[data-v-274d770e],.result-area[data-v-274d770e]{padding:16px}}.action-debug-test[data-v-253ba4a6]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1);overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.debug-header[data-v-253ba4a6]{position:sticky;top:0;z-index:10;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2);padding:24px 32px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content[data-v-253ba4a6]{width:100%;margin:0;display:flex;justify-content:space-between;align-items:flex-start}.header-left[data-v-253ba4a6]{flex:1}.page-title[data-v-253ba4a6]{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px}.title-icon[data-v-253ba4a6]{font-size:32px;color:var(--color-primary-6)}.page-subtitle[data-v-253ba4a6]{color:var(--color-text-3);font-size:16px;margin:0;line-height:1.5}.nav-button-group[data-v-253ba4a6]{max-width:-moz-fit-content;max-width:fit-content;background:var(--color-bg-2);border:1px solid var(--color-border-2);border-radius:8px;box-shadow:0 2px 8px #0000000a}.nav-button-grid[data-v-253ba4a6]{display:grid;grid-template-columns:auto auto;gap:6px;padding:6px;justify-content:start}.nav-grid-button[data-v-253ba4a6]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-button[data-v-253ba4a6]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f;background:var(--color-bg-3);border-color:var(--color-primary-6)}.nav-grid-button span[data-v-253ba4a6]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-grid-placeholder[data-v-253ba4a6]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;background:var(--color-bg-3);border:1px dashed var(--color-border-3);border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-placeholder[data-v-253ba4a6]:hover{border-color:var(--color-primary-6);background:var(--color-primary-1)}.placeholder-text[data-v-253ba4a6]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-4);text-align:center}.debug-content[data-v-253ba4a6]{flex:1;overflow-y:auto;padding:32px;width:100%;margin:0}.debug-sections[data-v-253ba4a6]{display:flex;flex-direction:column;gap:30px}.debug-section[data-v-253ba4a6]{margin-bottom:32px;padding:24px;background:var(--color-bg-2);border-radius:12px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;transition:all .3s ease}.debug-section[data-v-253ba4a6]:hover{box-shadow:0 4px 16px #00000014;border-color:var(--color-border-3)}.debug-section h2[data-v-253ba4a6]{color:var(--color-text-1);margin-bottom:20px;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}.debug-section h2[data-v-253ba4a6]:before{content:"";width:4px;height:20px;background:var(--color-primary-6);border-radius:2px}.debug-section p[data-v-253ba4a6]{color:var(--color-text-3);margin-bottom:15px}.debug-textarea[data-v-253ba4a6]{width:100%;min-height:120px;padding:12px;border:1px solid var(--color-border-2);border-radius:6px;background:var(--color-bg-1);color:var(--color-text-1);font-family:Courier New,monospace;font-size:12px;resize:vertical;margin-bottom:15px}.debug-result[data-v-253ba4a6]{margin-top:15px}.debug-result h3[data-v-253ba4a6]{color:var(--color-text-1);margin-bottom:15px}.debug-result h4[data-v-253ba4a6]{color:var(--color-text-2);margin:20px 0 10px;font-size:16px}.debug-json[data-v-253ba4a6]{background:var(--color-bg-1);border:1px solid var(--color-border-2);border-radius:6px;padding:15px;font-family:Courier New,monospace;font-size:12px;overflow-x:auto;color:var(--color-text-1)}.debug-fields[data-v-253ba4a6],.debug-validation[data-v-253ba4a6]{list-style:none;padding:0;margin:0}.debug-fields li[data-v-253ba4a6],.debug-validation li[data-v-253ba4a6]{padding:8px 0;border-bottom:1px solid var(--color-border-3);color:var(--color-text-2)}.debug-fields code[data-v-253ba4a6]{background:var(--color-bg-1);padding:2px 6px;border-radius:3px;font-family:Courier New,monospace;color:var(--color-text-1)}.success[data-v-253ba4a6]{color:#52c41a;font-weight:700}.error[data-v-253ba4a6]{color:#f5222d;font-weight:700}.debug-error[data-v-253ba4a6]{background:#fff2f0;border:1px solid #ffccc7;border-radius:6px;padding:15px;color:#f5222d;font-family:Courier New,monospace;font-size:12px;overflow-x:auto}.debug-error-box[data-v-253ba4a6]{margin-top:15px;padding:15px;background:#fff2f0;border:1px solid #ffccc7;border-radius:6px}.debug-error-box h4[data-v-253ba4a6]{color:#f5222d;margin-bottom:10px}.preset-buttons[data-v-253ba4a6]{display:flex;gap:10px;flex-wrap:wrap}.integration-test-subsection[data-v-253ba4a6]{margin-top:30px;padding:20px;border:1px solid var(--color-border-3);border-radius:6px;background:var(--color-bg-1)}.integration-test-subsection h3[data-v-253ba4a6]{color:var(--color-text-1);margin-bottom:10px;font-size:16px;font-weight:600}.integration-test-subsection p[data-v-253ba4a6]{color:var(--color-text-3);margin-bottom:15px;font-size:14px}.action-toast[data-v-253ba4a6]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:12px 24px;border-radius:6px;color:#fff;font-weight:500;z-index:9999;max-width:80%;text-align:center;box-shadow:0 4px 12px #00000026}.action-toast.success[data-v-253ba4a6]{background-color:#52c41a}.action-toast.error[data-v-253ba4a6]{background-color:#f5222d}.action-toast.warning[data-v-253ba4a6]{background-color:#faad14}.action-toast.info[data-v-253ba4a6]{background-color:#1890ff}.action-toast-enter-active[data-v-253ba4a6],.action-toast-leave-active[data-v-253ba4a6]{transition:all .3s ease}.action-toast-enter-from[data-v-253ba4a6],.action-toast-leave-to[data-v-253ba4a6]{opacity:0;transform:translate(-50%,-50%) scale(.8)}.integration-test-subsection[data-v-253ba4a6]:first-child{margin-top:20px}.video-test-container[data-v-fab87f30]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1);overflow:hidden}.test-header[data-v-fab87f30]{position:sticky;top:0;z-index:10;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2);padding:24px 32px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content[data-v-fab87f30]{width:100%;margin:0;display:flex;justify-content:space-between;align-items:flex-start}.header-left[data-v-fab87f30]{flex:1}.page-title[data-v-fab87f30]{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px}.nav-button-group[data-v-fab87f30]{max-width:-moz-fit-content;max-width:fit-content;max-height:200px;overflow-y:auto;padding:4px;border-radius:8px;background:var(--color-bg-2);border:1px solid var(--color-border-2)}.nav-button-grid[data-v-fab87f30]{display:grid;grid-template-columns:auto auto;gap:6px;padding:6px;justify-content:start}.nav-grid-button[data-v-fab87f30]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-button[data-v-fab87f30]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f;background:var(--color-bg-3);border-color:var(--color-primary-6)}.nav-grid-button span[data-v-fab87f30]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-grid-placeholder[data-v-fab87f30]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;background:var(--color-bg-3);border:1px dashed var(--color-border-3);border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-placeholder[data-v-fab87f30]:hover{border-color:var(--color-primary-6);background:var(--color-primary-1)}.placeholder-text[data-v-fab87f30]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-4);text-align:center}.title-icon[data-v-fab87f30]{font-size:32px;color:var(--color-primary-6)}.page-subtitle[data-v-fab87f30]{color:var(--color-text-3);font-size:16px;margin:0;line-height:1.5}.test-content[data-v-fab87f30]{flex:1;overflow-y:auto;padding:32px;width:100%;margin:0}.test-section[data-v-fab87f30]{margin-bottom:32px;padding:24px;background:var(--color-bg-2);border-radius:12px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;transition:all .3s ease}.test-section[data-v-fab87f30]:hover{box-shadow:0 4px 16px #00000014;border-color:var(--color-border-3)}.test-section h2[data-v-fab87f30]{color:var(--color-text-1);margin-bottom:20px;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}.test-section h2[data-v-fab87f30]:before{content:"";width:4px;height:20px;background:var(--color-primary-6);border-radius:2px}.test-buttons[data-v-fab87f30],.player-buttons[data-v-fab87f30]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.analysis-result[data-v-fab87f30]{background:var(--color-bg-1);padding:20px;border-radius:8px;border:1px solid var(--color-border-2);margin-top:16px}.analysis-result ul[data-v-fab87f30]{margin:12px 0;padding-left:24px}.analysis-result li[data-v-fab87f30]{margin-bottom:8px;color:var(--color-text-2)}.analysis-result p[data-v-fab87f30]{margin-bottom:12px;color:var(--color-text-1)}.native-video-header[data-v-fab87f30]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.native-video-header h2[data-v-fab87f30]{margin:0;color:var(--color-text-1)}.native-video-controls[data-v-fab87f30]{display:flex;gap:12px}.native-video-container[data-v-fab87f30]{width:100%;margin-bottom:20px;background:#000;border-radius:8px;overflow:hidden}.native-video-player[data-v-fab87f30]{width:100%;height:400px;display:block;background:#000}.native-video-logs[data-v-fab87f30]{margin-top:20px;max-height:300px;overflow-y:auto;background:var(--color-bg-1);padding:16px;border-radius:8px;border:1px solid var(--color-border-2)}.native-video-logs h3[data-v-fab87f30]{color:var(--color-text-1);margin-bottom:12px;font-size:16px;font-weight:600}.log-item[data-v-fab87f30]{font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;margin-bottom:6px;color:var(--color-text-2);line-height:1.4;padding:4px 8px;background:var(--color-bg-2);border-radius:4px;border-left:3px solid var(--color-primary-6)}.error-section[data-v-fab87f30]{background:var(--color-danger-light-1);border:1px solid var(--color-danger-light-3)}.error-section h2[data-v-fab87f30]{color:var(--color-danger-6)}.error-section pre[data-v-fab87f30]{color:var(--color-danger-6);white-space:pre-wrap;word-break:break-all;background:var(--color-bg-1);padding:16px;border-radius:6px;margin-top:12px;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5}.video-test-container[data-v-fab87f30] .video-player-section{margin:24px 0;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #0000001f}.player-section[data-v-fab87f30]{padding:0!important;background:transparent!important;border:none!important;box-shadow:none!important}.player-section h2[data-v-fab87f30]{padding:24px 24px 16px;margin-bottom:0;background:var(--color-bg-2);border-radius:12px 12px 0 0;border:1px solid var(--color-border-2);border-bottom:none}.video-test-container[data-v-fab87f30] .video-player-section{margin-bottom:0;border-radius:0 0 12px 12px;border-top:none}.video-test-container[data-v-fab87f30] .video-player-section .arco-card{width:100%;max-width:100%;background:var(--color-bg-1);border-radius:0 0 12px 12px;overflow:hidden;margin:0}.video-test-container[data-v-fab87f30] .video-player-section .arco-card-body{padding:0}.video-test-container[data-v-fab87f30] .video-player-container{position:relative;width:100%;max-width:100%;background:#000;border-radius:0;overflow:hidden}.video-test-container[data-v-fab87f30] .video-player{width:100%;height:auto;min-height:400px;max-height:60vh;background:#000;outline:none}.video-test-container[data-v-fab87f30] .art-player-container{position:relative;width:100%;max-width:100%;background:#000;border-radius:0;overflow:hidden}.video-test-container[data-v-fab87f30] .art-player-container .artplayer-app{width:100%;height:400px;max-height:60vh;border-radius:0;overflow:hidden}@media (max-width: 768px){.test-header[data-v-fab87f30]{padding:16px 20px}.header-content[data-v-fab87f30]{flex-direction:column;gap:16px}.nav-buttons[data-v-fab87f30]{align-items:stretch}.page-title[data-v-fab87f30]{font-size:24px}.test-content[data-v-fab87f30]{padding:20px}.test-section[data-v-fab87f30]{padding:20px;margin-bottom:24px}.test-buttons[data-v-fab87f30],.player-buttons[data-v-fab87f30]{grid-template-columns:1fr}.video-test-container[data-v-fab87f30] .video-player-section{padding:10px}.video-test-container[data-v-fab87f30] .video-player-section .arco-card{max-width:100%;max-height:95vh}.video-test-container[data-v-fab87f30] .video-player{min-height:200px;max-height:calc(95vh - 80px)}.video-test-container[data-v-fab87f30] .art-video-player{padding:10px!important}.video-test-container[data-v-fab87f30] .art-video-player .artplayer-app{max-width:100%!important;max-height:95vh!important}}.csp-test-container[data-v-882b9d3d]{height:100%;display:flex;flex-direction:column;background:var(--color-bg-1);overflow:hidden}.test-header[data-v-882b9d3d]{position:sticky;top:0;z-index:10;background:var(--color-bg-1);border-bottom:1px solid var(--color-border-2);padding:24px 32px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header-content[data-v-882b9d3d]{width:100%;margin:0;display:flex;justify-content:space-between;align-items:flex-start}.header-left[data-v-882b9d3d]{flex:1}.page-title[data-v-882b9d3d]{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:600;color:var(--color-text-1);margin:0 0 8px}.title-icon[data-v-882b9d3d]{font-size:32px;color:var(--color-primary-6)}.page-subtitle[data-v-882b9d3d]{color:var(--color-text-3);font-size:16px;margin:0;line-height:1.5}.nav-button-group[data-v-882b9d3d]{max-width:-moz-fit-content;max-width:fit-content;max-height:200px;overflow-y:auto;padding:4px;border-radius:8px;background:var(--color-bg-2);border:1px solid var(--color-border-2)}.nav-button-grid[data-v-882b9d3d]{display:grid;grid-template-columns:auto auto;gap:6px;padding:6px;justify-content:start}.nav-grid-button[data-v-882b9d3d]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-button[data-v-882b9d3d]:hover{transform:translateY(-1px);box-shadow:0 2px 8px #0000001f;background:var(--color-bg-3);border-color:var(--color-primary-6)}.nav-grid-button span[data-v-882b9d3d]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-grid-placeholder[data-v-882b9d3d]{min-height:32px;padding:6px 12px;display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;background:var(--color-bg-3);border:1px dashed var(--color-border-3);border-radius:6px;transition:all .3s ease;text-align:center;line-height:1;white-space:nowrap;width:-moz-fit-content;width:fit-content}.nav-grid-placeholder[data-v-882b9d3d]:hover{border-color:var(--color-primary-6);background:var(--color-primary-1)}.placeholder-text[data-v-882b9d3d]{font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-text-4);text-align:center}.test-content[data-v-882b9d3d]{flex:1;overflow-y:auto;padding:32px;width:100%;margin:0}.test-section[data-v-882b9d3d]{margin-bottom:32px;padding:24px;background:var(--color-bg-2);border-radius:12px;border:1px solid var(--color-border-2);box-shadow:0 2px 8px #0000000a;transition:all .3s ease}.test-section[data-v-882b9d3d]:hover{box-shadow:0 4px 16px #00000014;border-color:var(--color-border-3)}.test-section h2[data-v-882b9d3d]{color:var(--color-text-1);margin-bottom:20px;font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px}.test-section h2[data-v-882b9d3d]:before{content:"";width:4px;height:20px;background:var(--color-primary-6);border-radius:2px}.config-info[data-v-882b9d3d]{display:flex;flex-direction:column;gap:16px}.config-item[data-v-882b9d3d]{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--color-bg-1);border-radius:8px;border:1px solid var(--color-border-2)}.config-item label[data-v-882b9d3d]{font-weight:600;color:var(--color-text-2);min-width:120px}.status-enabled[data-v-882b9d3d]{color:var(--color-success-6);font-weight:600}.status-disabled[data-v-882b9d3d]{color:var(--color-danger-6);font-weight:600}.config-value[data-v-882b9d3d]{background:var(--color-fill-2);padding:4px 8px;border-radius:4px;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px}.config-name[data-v-882b9d3d]{color:var(--color-text-1);font-weight:500}.test-buttons[data-v-882b9d3d]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.video-test[data-v-882b9d3d]{display:flex;flex-direction:column;gap:16px}.video-test-buttons[data-v-882b9d3d]{display:flex;gap:12px;flex-wrap:wrap}.video-result[data-v-882b9d3d]{padding:16px;border-radius:8px;background:var(--color-bg-1);border:1px solid var(--color-border-2);font-weight:600;color:var(--color-text-1)}.test-results[data-v-882b9d3d]{max-height:400px;overflow-y:auto;border:1px solid var(--color-border-2);border-radius:8px;background:var(--color-bg-1)}.no-results[data-v-882b9d3d]{padding:32px;text-align:center;color:var(--color-text-3);font-style:italic}.test-result[data-v-882b9d3d]{padding:16px;border-bottom:1px solid var(--color-border-2);transition:background .2s ease}.test-result[data-v-882b9d3d]:last-child{border-bottom:none}.test-result[data-v-882b9d3d]:hover{background:var(--color-fill-1)}.result-header[data-v-882b9d3d]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.timestamp[data-v-882b9d3d]{font-size:12px;color:var(--color-text-3);font-family:Consolas,Monaco,Courier New,monospace}.result-status[data-v-882b9d3d]{font-size:12px;font-weight:600;padding:2px 8px;border-radius:12px;display:flex;align-items:center;gap:4px}.result-status.success[data-v-882b9d3d]{background:var(--color-success-light-1);color:var(--color-success-6)}.result-status.error[data-v-882b9d3d]{background:var(--color-danger-light-1);color:var(--color-danger-6)}.result-status.warning[data-v-882b9d3d]{background:var(--color-warning-light-1);color:var(--color-warning-6)}.result-status.info[data-v-882b9d3d]{background:var(--color-info-light-1);color:var(--color-info-6)}.result-message[data-v-882b9d3d]{color:var(--color-text-1);line-height:1.5;word-break:break-word}.system-info[data-v-882b9d3d]{display:flex;flex-direction:column;gap:16px}.info-item[data-v-882b9d3d]{display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--color-bg-1);border-radius:8px;border:1px solid var(--color-border-2)}.info-item label[data-v-882b9d3d]{font-weight:600;color:var(--color-text-2);font-size:14px}.user-agent[data-v-882b9d3d]{background:var(--color-fill-2);padding:8px 12px;border-radius:6px;font-family:Consolas,Monaco,Courier New,monospace;font-size:12px;word-break:break-all;line-height:1.4}.format-support[data-v-882b9d3d]{display:flex;flex-wrap:wrap;gap:8px}.format-item[data-v-882b9d3d]{padding:4px 8px;border-radius:4px;font-size:12px;font-weight:600}.format-item.supported[data-v-882b9d3d]{background:var(--color-success-light-1);color:var(--color-success-6)}.format-item.not-supported[data-v-882b9d3d]{background:var(--color-danger-light-1);color:var(--color-danger-6)}@media (max-width: 768px){.test-header[data-v-882b9d3d]{padding:16px 20px}.header-content[data-v-882b9d3d]{flex-direction:column;gap:16px}.nav-buttons[data-v-882b9d3d]{align-items:stretch}.page-title[data-v-882b9d3d]{font-size:24px}.test-content[data-v-882b9d3d]{padding:20px}.test-section[data-v-882b9d3d]{padding:20px;margin-bottom:24px}.test-buttons[data-v-882b9d3d]{grid-template-columns:1fr}.config-item[data-v-882b9d3d]{flex-direction:column;align-items:flex-start}.config-item label[data-v-882b9d3d]{min-width:auto}.video-test-buttons[data-v-882b9d3d]{flex-direction:column}}.search-aggregation[data-v-76e69201]{height:100vh;display:flex;flex-direction:column;background:var(--color-bg-1)}.search-content[data-v-76e69201]{flex:1;overflow:hidden}.search-home[data-v-76e69201]{padding:40px 20px;max-width:800px;margin:0 auto}.hot-search-section[data-v-76e69201]{padding:20px;max-width:800px;margin:0 auto 40px}.recent-search-section[data-v-76e69201]{padding:20px;max-width:800px;margin:0 auto 20px}.recent-search-tags[data-v-76e69201]{display:flex;flex-wrap:wrap;gap:12px}.recent-tag[data-v-76e69201]{cursor:pointer;transition:all .2s ease;border-radius:16px;padding:6px 16px}.recent-tag[data-v-76e69201]:hover{background:var(--color-fill-2);transform:translateY(-1px)}.section-header[data-v-76e69201]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-title[data-v-76e69201]{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:600;color:var(--color-text-1);margin:0}.refresh-btn[data-v-76e69201]{color:var(--color-text-3);transition:all .2s ease}.refresh-btn[data-v-76e69201]:hover{color:var(--color-primary-6)}.title-icon[data-v-76e69201]{font-size:20px;color:var(--color-primary-6)}.hot-search-tags[data-v-76e69201]{display:flex;flex-wrap:wrap;gap:12px}.hot-tag[data-v-76e69201]{cursor:pointer;transition:all .2s ease;border-radius:16px;padding:6px 16px}.hot-tag[data-v-76e69201]:hover{background:var(--color-primary-1);border-color:var(--color-primary-6);color:var(--color-primary-6);transform:translateY(-1px)}.recent-search-floating[data-v-76e69201],.search-suggestions[data-v-76e69201]{padding:20px;max-width:800px;margin:0 auto 8px}.suggestions-tags[data-v-76e69201]{display:flex;flex-wrap:wrap;gap:12px}.suggestion-tag[data-v-76e69201]{cursor:pointer;transition:all .2s ease;border-radius:16px;padding:6px 16px}.suggestion-tag[data-v-76e69201]:hover{background:var(--color-primary-1);border-color:var(--color-primary-6);color:var(--color-primary-6);transform:translateY(-1px)}.search-results[data-v-76e69201]{height:calc(100vh - 112px);overflow:hidden}.results-layout[data-v-76e69201]{display:flex;height:100%}.sources-sidebar[data-v-76e69201]{width:280px;background:var(--color-bg-2);border-right:1px solid var(--color-border-2);display:flex;flex-direction:column;height:100%}.sources-header[data-v-76e69201]{display:flex;align-items:center;gap:8px;padding:16px 20px;border-bottom:1px solid var(--color-border-2);background:var(--color-bg-2);position:sticky;top:0;z-index:10;flex-shrink:0}.sources-header h4[data-v-76e69201]{margin:0;font-size:16px;font-weight:600;color:var(--color-text-1)}.sources-count[data-v-76e69201]{color:var(--color-text-3);font-size:14px}.sources-result-tag[data-v-76e69201]{background:#52c41a;color:#fff;font-size:12px;padding:2px 8px;border-radius:12px;font-weight:500;margin-left:8px}.sources-time-tag[data-v-76e69201]{background:#1890ff;color:#fff;font-size:12px;padding:2px 8px;border-radius:12px;font-weight:500;margin-left:8px}.sources-list[data-v-76e69201]{flex:1;overflow-y:auto;padding:8px;height:0}.source-item[data-v-76e69201]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:8px;cursor:pointer;transition:all .2s ease;margin-bottom:4px}.source-item[data-v-76e69201]:hover{background:var(--color-fill-2)}.source-item.active[data-v-76e69201]{background:#1890ff!important;border:1px solid #0050b3!important;color:#fff!important}.source-item.active .source-name[data-v-76e69201]{color:#fff!important}.source-item.active .source-count[data-v-76e69201]{color:#fffc!important}.source-info[data-v-76e69201]{display:flex;flex-direction:column;gap:4px}.source-name[data-v-76e69201]{font-size:14px;font-weight:500;color:var(--color-text-1)}.source-count[data-v-76e69201]{font-size:12px;color:var(--color-text-3)}.source-status[data-v-76e69201]{display:flex;align-items:center}.status-success[data-v-76e69201]{color:var(--color-success-6);font-size:16px}.status-error[data-v-76e69201]{color:var(--color-danger-6);font-size:16px}.results-content[data-v-76e69201]{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%}.results-list[data-v-76e69201]{display:flex;flex-direction:column;height:100%}.results-header[data-v-76e69201]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--color-border-2);background:var(--color-bg-1);position:sticky;top:0;z-index:10;flex-shrink:0}.results-header h4[data-v-76e69201]{margin:0;font-size:16px;font-weight:600;color:var(--color-text-1)}.results-count[data-v-76e69201]{color:var(--color-text-3);font-size:14px}.loading-state[data-v-76e69201],.error-state[data-v-76e69201],.empty-state[data-v-76e69201]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--color-text-3)}.error-icon[data-v-76e69201],.empty-icon[data-v-76e69201]{font-size:48px;color:var(--color-text-4)}@media (max-width: 768px){.results-layout[data-v-76e69201]{flex-direction:column}.sources-sidebar[data-v-76e69201]{width:100%;height:200px}.sources-list[data-v-76e69201]{display:flex;flex-direction:row;overflow-x:auto;padding:8px 12px}.source-item[data-v-76e69201]{min-width:120px;margin-right:8px;margin-bottom:0}.search-header[data-v-76e69201]{padding:0 16px}.header-left[data-v-76e69201],.header-right[data-v-76e69201]{min-width:100px}}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-size:1em;font-family:monospace,monospace}a{background-color:transparent}abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:none}b,strong{font-weight:bolder}code,kbd,samp{font-size:1em;font-family:monospace,monospace}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-size:100%;font-family:inherit;line-height:1.15}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{display:table;box-sizing:border-box;max-width:100%;padding:0;color:inherit;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.arco-icon{display:inline-block;width:1em;height:1em;color:inherit;font-style:normal;vertical-align:-2px;outline:none;stroke:currentColor}.arco-icon-loading,.arco-icon-spin{animation:arco-loading-circle 1s infinite cubic-bezier(0,0,1,1)}@keyframes arco-loading-circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.arco-icon-hover{position:relative;display:inline-block;cursor:pointer;line-height:12px}.arco-icon-hover .arco-icon{position:relative}.arco-icon-hover:before{position:absolute;display:block;box-sizing:border-box;background-color:transparent;border-radius:var(--border-radius-circle);transition:background-color .1s cubic-bezier(0,0,1,1);content:""}.arco-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-icon-hover.arco-icon-hover-disabled:before{opacity:0}.arco-icon-hover:before{top:50%;left:50%;width:20px;height:20px;transform:translate(-50%,-50%)}.arco-icon-hover-size-mini{line-height:12px}.arco-icon-hover-size-mini:before{top:50%;left:50%;width:20px;height:20px;transform:translate(-50%,-50%)}.arco-icon-hover-size-small{line-height:12px}.arco-icon-hover-size-small:before{top:50%;left:50%;width:20px;height:20px;transform:translate(-50%,-50%)}.arco-icon-hover-size-large{line-height:12px}.arco-icon-hover-size-large:before{top:50%;left:50%;width:24px;height:24px;transform:translate(-50%,-50%)}.arco-icon-hover-size-huge{line-height:12px}.arco-icon-hover-size-huge:before{top:50%;left:50%;width:24px;height:24px;transform:translate(-50%,-50%)}.fade-in-standard-enter-from,.fade-in-standard-appear-from{opacity:0}.fade-in-standard-enter-to,.fade-in-standard-appear-to{opacity:1}.fade-in-standard-enter-active,.fade-in-standard-appear-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1)}.fade-in-standard-leave-from{opacity:1}.fade-in-standard-leave-to{opacity:0}.fade-in-standard-leave-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1)}.fade-in-enter-from,.fade-in-appear-from{opacity:0}.fade-in-enter-to,.fade-in-appear-to{opacity:1}.fade-in-enter-active,.fade-in-appear-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.fade-in-leave-from{opacity:1}.fade-in-leave-to{opacity:0}.fade-in-leave-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.zoom-in-enter-from,.zoom-in-appear-from{transform:scale(.5);opacity:0}.zoom-in-enter-to,.zoom-in-appear-to{transform:scale(1);opacity:1}.zoom-in-enter-active,.zoom-in-appear-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1),transform .3s cubic-bezier(.34,.69,.1,1)}.zoom-in-leave-from{transform:scale(1);opacity:1}.zoom-in-leave-to{transform:scale(.5);opacity:0}.zoom-in-leave-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1),transform .3s cubic-bezier(.34,.69,.1,1)}.zoom-in-fade-out-enter-from,.zoom-in-fade-out-appear-from{transform:scale(.5);opacity:0}.zoom-in-fade-out-enter-to,.zoom-in-fade-out-appear-to{transform:scale(1);opacity:1}.zoom-in-fade-out-enter-active,.zoom-in-fade-out-appear-active{transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-fade-out-leave-from{transform:scale(1);opacity:1}.zoom-in-fade-out-leave-to{transform:scale(.5);opacity:0}.zoom-in-fade-out-leave-active{transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-big-enter-from,.zoom-in-big-appear-from{transform:scale(.5);opacity:0}.zoom-in-big-enter-to,.zoom-in-big-appear-to{transform:scale(1);opacity:1}.zoom-in-big-enter-active,.zoom-in-big-appear-active{transition:opacity .2s cubic-bezier(0,0,1,1),transform .2s cubic-bezier(0,0,1,1)}.zoom-in-big-leave-from{transform:scale(1);opacity:1}.zoom-in-big-leave-to{transform:scale(.2);opacity:0}.zoom-in-big-leave-active{transition:opacity .2s cubic-bezier(0,0,1,1),transform .2s cubic-bezier(0,0,1,1)}.zoom-in-left-enter-from,.zoom-in-left-appear-from{transform:scale(.1);opacity:.1}.zoom-in-left-enter-to,.zoom-in-left-appear-to{transform:scale(1);opacity:1}.zoom-in-left-enter-active,.zoom-in-left-appear-active{transform-origin:0 50%;transition:opacity .3s cubic-bezier(0,0,1,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-left-leave-from{transform:scale(1);opacity:1}.zoom-in-left-leave-to{transform:scale(.1);opacity:.1}.zoom-in-left-leave-active{transform-origin:0 50%;transition:opacity .3s cubic-bezier(0,0,1,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-top-enter-from,.zoom-in-top-appear-from{transform:scaleY(.8) translateZ(0);opacity:0}.zoom-in-top-enter-to,.zoom-in-top-appear-to{transform:scaleY(1) translateZ(0);opacity:1}.zoom-in-top-enter-active,.zoom-in-top-appear-active{transform-origin:0 0;transition:transform .3s cubic-bezier(.3,1.3,.3,1),opacity .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-top-leave-from{transform:scaleY(1) translateZ(0);opacity:1}.zoom-in-top-leave-to{transform:scaleY(.8) translateZ(0);opacity:0}.zoom-in-top-leave-active{transform-origin:0 0;transition:transform .3s cubic-bezier(.3,1.3,.3,1),opacity .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-bottom-enter-from,.zoom-in-bottom-appear-from{transform:scaleY(.8) translateZ(0);opacity:0}.zoom-in-bottom-enter-to,.zoom-in-bottom-appear-to{transform:scaleY(1) translateZ(0);opacity:1}.zoom-in-bottom-enter-active,.zoom-in-bottom-appear-active{transform-origin:100% 100%;transition:transform .3s cubic-bezier(.3,1.3,.3,1),opacity .3s cubic-bezier(.3,1.3,.3,1)}.zoom-in-bottom-leave-from{transform:scaleY(1) translateZ(0);opacity:1}.zoom-in-bottom-leave-to{transform:scaleY(.8) translateZ(0);opacity:0}.zoom-in-bottom-leave-active{transform-origin:100% 100%;transition:transform .3s cubic-bezier(.3,1.3,.3,1),opacity .3s cubic-bezier(.3,1.3,.3,1)}.slide-dynamic-origin-enter-from,.slide-dynamic-origin-appear-from{transform:scaleY(.9);transform-origin:0 0;opacity:0}.slide-dynamic-origin-enter-to,.slide-dynamic-origin-appear-to{transform:scaleY(1);transform-origin:0 0;opacity:1}.slide-dynamic-origin-enter-active,.slide-dynamic-origin-appear-active{transition:transform .2s cubic-bezier(.34,.69,.1,1),opacity .2s cubic-bezier(.34,.69,.1,1)}.slide-dynamic-origin-leave-from{transform:scaleY(1);transform-origin:0 0;opacity:1}.slide-dynamic-origin-leave-to{transform:scaleY(.9);transform-origin:0 0;opacity:0}.slide-dynamic-origin-leave-active{transition:transform .2s cubic-bezier(.34,.69,.1,1),opacity .2s cubic-bezier(.34,.69,.1,1)}.slide-left-enter-from,.slide-left-appear-from{transform:translate(-100%)}.slide-left-enter-to,.slide-left-appear-to{transform:translate(0)}.slide-left-enter-active,.slide-left-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-left-leave-from{transform:translate(0)}.slide-left-leave-to{transform:translate(-100%)}.slide-left-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-right-enter-from,.slide-right-appear-from{transform:translate(100%)}.slide-right-enter-to,.slide-right-appear-to{transform:translate(0)}.slide-right-enter-active,.slide-right-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-right-leave-from{transform:translate(0)}.slide-right-leave-to{transform:translate(100%)}.slide-right-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-top-enter-from,.slide-top-appear-from{transform:translateY(-100%)}.slide-top-enter-to,.slide-top-appear-to{transform:translateY(0)}.slide-top-enter-active,.slide-top-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-top-leave-from{transform:translateY(0)}.slide-top-leave-to{transform:translateY(-100%)}.slide-top-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-bottom-enter-from,.slide-bottom-appear-from{transform:translateY(100%)}.slide-bottom-enter-to,.slide-bottom-appear-to{transform:translateY(0)}.slide-bottom-enter-active,.slide-bottom-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-bottom-leave-from{transform:translateY(0)}.slide-bottom-leave-to{transform:translateY(100%)}.slide-bottom-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}body{--red-1: 255,236,232;--red-2: 253,205,197;--red-3: 251,172,163;--red-4: 249,137,129;--red-5: 247,101,96;--red-6: 245,63,63;--red-7: 203,39,45;--red-8: 161,21,30;--red-9: 119,8,19;--red-10: 77,0,10;--orangered-1: 255,243,232;--orangered-2: 253,221,195;--orangered-3: 252,197,159;--orangered-4: 250,172,123;--orangered-5: 249,144,87;--orangered-6: 247,114,52;--orangered-7: 204,81,32;--orangered-8: 162,53,17;--orangered-9: 119,31,6;--orangered-10: 77,14,0;--orange-1: 255,247,232;--orange-2: 255,228,186;--orange-3: 255,207,139;--orange-4: 255,182,93;--orange-5: 255,154,46;--orange-6: 255,125,0;--orange-7: 210,95,0;--orange-8: 166,69,0;--orange-9: 121,46,0;--orange-10: 77,27,0;--gold-1: 255,252,232;--gold-2: 253,244,191;--gold-3: 252,233,150;--gold-4: 250,220,109;--gold-5: 249,204,69;--gold-6: 247,186,30;--gold-7: 204,146,19;--gold-8: 162,109,10;--gold-9: 119,75,4;--gold-10: 77,45,0;--yellow-1: 254,255,232;--yellow-2: 254,254,190;--yellow-3: 253,250,148;--yellow-4: 252,242,107;--yellow-5: 251,232,66;--yellow-6: 250,220,25;--yellow-7: 207,175,15;--yellow-8: 163,132,8;--yellow-9: 120,93,3;--yellow-10: 77,56,0;--lime-1: 252,255,232;--lime-2: 237,248,187;--lime-3: 220,241,144;--lime-4: 201,233,104;--lime-5: 181,226,65;--lime-6: 159,219,29;--lime-7: 126,183,18;--lime-8: 95,148,10;--lime-9: 67,112,4;--lime-10: 42,77,0;--green-1: 232,255,234;--green-2: 175,240,181;--green-3: 123,225,136;--green-4: 76,210,99;--green-5: 35,195,67;--green-6: 0,180,42;--green-7: 0,154,41;--green-8: 0,128,38;--green-9: 0,102,34;--green-10: 0,77,28;--cyan-1: 232,255,251;--cyan-2: 183,244,236;--cyan-3: 137,233,224;--cyan-4: 94,223,214;--cyan-5: 55,212,207;--cyan-6: 20,201,201;--cyan-7: 13,165,170;--cyan-8: 7,130,139;--cyan-9: 3,97,108;--cyan-10: 0,66,77;--blue-1: 232,247,255;--blue-2: 195,231,254;--blue-3: 159,212,253;--blue-4: 123,192,252;--blue-5: 87,169,251;--blue-6: 52,145,250;--blue-7: 32,108,207;--blue-8: 17,75,163;--blue-9: 6,48,120;--blue-10: 0,26,77;--arcoblue-1: 232,243,255;--arcoblue-2: 190,218,255;--arcoblue-3: 148,191,255;--arcoblue-4: 106,161,255;--arcoblue-5: 64,128,255;--arcoblue-6: 22,93,255;--arcoblue-7: 14,66,210;--arcoblue-8: 7,44,166;--arcoblue-9: 3,26,121;--arcoblue-10: 0,13,77;--purple-1: 245,232,255;--purple-2: 221,190,246;--purple-3: 195,150,237;--purple-4: 168,113,227;--purple-5: 141,78,218;--purple-6: 114,46,209;--purple-7: 85,29,176;--purple-8: 60,16,143;--purple-9: 39,6,110;--purple-10: 22,0,77;--pinkpurple-1: 255,232,251;--pinkpurple-2: 247,186,239;--pinkpurple-3: 240,142,230;--pinkpurple-4: 232,101,223;--pinkpurple-5: 225,62,219;--pinkpurple-6: 217,26,217;--pinkpurple-7: 176,16,182;--pinkpurple-8: 138,9,147;--pinkpurple-9: 101,3,112;--pinkpurple-10: 66,0,77;--magenta-1: 255,232,241;--magenta-2: 253,194,219;--magenta-3: 251,157,199;--magenta-4: 249,121,183;--magenta-5: 247,84,168;--magenta-6: 245,49,157;--magenta-7: 203,30,131;--magenta-8: 161,16,105;--magenta-9: 119,6,79;--magenta-10: 77,0,52;--gray-1: 247,248,250;--gray-2: 242,243,245;--gray-3: 229,230,235;--gray-4: 201,205,212;--gray-5: 169,174,184;--gray-6: 134,144,156;--gray-7: 107,119,133;--gray-8: 78,89,105;--gray-9: 39,46,59;--gray-10: 29,33,41;--success-1: var(--green-1);--success-2: var(--green-2);--success-3: var(--green-3);--success-4: var(--green-4);--success-5: var(--green-5);--success-6: var(--green-6);--success-7: var(--green-7);--success-8: var(--green-8);--success-9: var(--green-9);--success-10: var(--green-10);--primary-1: var(--arcoblue-1);--primary-2: var(--arcoblue-2);--primary-3: var(--arcoblue-3);--primary-4: var(--arcoblue-4);--primary-5: var(--arcoblue-5);--primary-6: var(--arcoblue-6);--primary-7: var(--arcoblue-7);--primary-8: var(--arcoblue-8);--primary-9: var(--arcoblue-9);--primary-10: var(--arcoblue-10);--danger-1: var(--red-1);--danger-2: var(--red-2);--danger-3: var(--red-3);--danger-4: var(--red-4);--danger-5: var(--red-5);--danger-6: var(--red-6);--danger-7: var(--red-7);--danger-8: var(--red-8);--danger-9: var(--red-9);--danger-10: var(--red-10);--warning-1: var(--orange-1);--warning-2: var(--orange-2);--warning-3: var(--orange-3);--warning-4: var(--orange-4);--warning-5: var(--orange-5);--warning-6: var(--orange-6);--warning-7: var(--orange-7);--warning-8: var(--orange-8);--warning-9: var(--orange-9);--warning-10: var(--orange-10);--link-1: var(--arcoblue-1);--link-2: var(--arcoblue-2);--link-3: var(--arcoblue-3);--link-4: var(--arcoblue-4);--link-5: var(--arcoblue-5);--link-6: var(--arcoblue-6);--link-7: var(--arcoblue-7);--link-8: var(--arcoblue-8);--link-9: var(--arcoblue-9);--link-10: var(--arcoblue-10)}body[arco-theme=dark]{--red-1: 77,0,10;--red-2: 119,6,17;--red-3: 161,22,31;--red-4: 203,46,52;--red-5: 245,78,78;--red-6: 247,105,101;--red-7: 249,141,134;--red-8: 251,176,167;--red-9: 253,209,202;--red-10: 255,240,236;--orangered-1: 77,14,0;--orangered-2: 119,30,5;--orangered-3: 162,55,20;--orangered-4: 204,87,41;--orangered-5: 247,126,69;--orangered-6: 249,146,90;--orangered-7: 250,173,125;--orangered-8: 252,198,161;--orangered-9: 253,222,197;--orangered-10: 255,244,235;--orange-1: 77,27,0;--orange-2: 121,48,4;--orange-3: 166,75,10;--orange-4: 210,105,19;--orange-5: 255,141,31;--orange-6: 255,150,38;--orange-7: 255,179,87;--orange-8: 255,205,135;--orange-9: 255,227,184;--orange-10: 255,247,232;--gold-1: 77,45,0;--gold-2: 119,75,4;--gold-3: 162,111,15;--gold-4: 204,150,31;--gold-5: 247,192,52;--gold-6: 249,204,68;--gold-7: 250,220,108;--gold-8: 252,233,149;--gold-9: 253,244,190;--gold-10: 255,252,232;--yellow-1: 77,56,0;--yellow-2: 120,94,7;--yellow-3: 163,134,20;--yellow-4: 207,179,37;--yellow-5: 250,225,60;--yellow-6: 251,233,75;--yellow-7: 252,243,116;--yellow-8: 253,250,157;--yellow-9: 254,254,198;--yellow-10: 254,255,240;--lime-1: 42,77,0;--lime-2: 68,112,6;--lime-3: 98,148,18;--lime-4: 132,183,35;--lime-5: 168,219,57;--lime-6: 184,226,75;--lime-7: 203,233,112;--lime-8: 222,241,152;--lime-9: 238,248,194;--lime-10: 253,255,238;--green-1: 0,77,28;--green-2: 4,102,37;--green-3: 10,128,45;--green-4: 18,154,55;--green-5: 29,180,64;--green-6: 39,195,70;--green-7: 80,210,102;--green-8: 126,225,139;--green-9: 178,240,183;--green-10: 235,255,236;--cyan-1: 0,66,77;--cyan-2: 6,97,108;--cyan-3: 17,131,139;--cyan-4: 31,166,170;--cyan-5: 48,201,201;--cyan-6: 63,212,207;--cyan-7: 102,223,215;--cyan-8: 144,233,225;--cyan-9: 190,244,237;--cyan-10: 240,255,252;--blue-1: 0,26,77;--blue-2: 5,47,120;--blue-3: 19,76,163;--blue-4: 41,113,207;--blue-5: 70,154,250;--blue-6: 90,170,251;--blue-7: 125,193,252;--blue-8: 161,213,253;--blue-9: 198,232,254;--blue-10: 234,248,255;--arcoblue-1: 0,13,77;--arcoblue-2: 4,27,121;--arcoblue-3: 14,50,166;--arcoblue-4: 29,77,210;--arcoblue-5: 48,111,255;--arcoblue-6: 60,126,255;--arcoblue-7: 104,159,255;--arcoblue-8: 147,190,255;--arcoblue-9: 190,218,255;--arcoblue-10: 234,244,255;--purple-1: 22,0,77;--purple-2: 39,6,110;--purple-3: 62,19,143;--purple-4: 90,37,176;--purple-5: 123,61,209;--purple-6: 142,81,218;--purple-7: 169,116,227;--purple-8: 197,154,237;--purple-9: 223,194,246;--purple-10: 247,237,255;--pinkpurple-1: 66,0,77;--pinkpurple-2: 101,3,112;--pinkpurple-3: 138,13,147;--pinkpurple-4: 176,27,182;--pinkpurple-5: 217,46,217;--pinkpurple-6: 225,61,219;--pinkpurple-7: 232,102,223;--pinkpurple-8: 240,146,230;--pinkpurple-9: 247,193,240;--pinkpurple-10: 255,242,253;--magenta-1: 77,0,52;--magenta-2: 119,8,80;--magenta-3: 161,23,108;--magenta-4: 203,43,136;--magenta-5: 245,69,166;--magenta-6: 247,86,169;--magenta-7: 249,122,184;--magenta-8: 251,158,200;--magenta-9: 253,195,219;--magenta-10: 255,232,241;--gray-1: 23,23,26;--gray-2: 46,46,48;--gray-3: 72,72,73;--gray-4: 95,95,96;--gray-5: 120,120,122;--gray-6: 146,146,147;--gray-7: 171,171,172;--gray-8: 197,197,197;--gray-9: 223,223,223;--gray-10: 246,246,246;--primary-1: var(--arcoblue-1);--primary-2: var(--arcoblue-2);--primary-3: var(--arcoblue-3);--primary-4: var(--arcoblue-4);--primary-5: var(--arcoblue-5);--primary-6: var(--arcoblue-6);--primary-7: var(--arcoblue-7);--primary-8: var(--arcoblue-8);--primary-9: var(--arcoblue-9);--primary-10: var(--arcoblue-10);--success-1: var(--green-1);--success-2: var(--green-2);--success-3: var(--green-3);--success-4: var(--green-4);--success-5: var(--green-5);--success-6: var(--green-6);--success-7: var(--green-7);--success-8: var(--green-8);--success-9: var(--green-9);--success-10: var(--green-10);--danger-1: var(--red-1);--danger-2: var(--red-2);--danger-3: var(--red-3);--danger-4: var(--red-4);--danger-5: var(--red-5);--danger-6: var(--red-6);--danger-7: var(--red-7);--danger-8: var(--red-8);--danger-9: var(--red-9);--danger-10: var(--red-10);--warning-1: var(--orange-1);--warning-2: var(--orange-2);--warning-3: var(--orange-3);--warning-4: var(--orange-4);--warning-5: var(--orange-5);--warning-6: var(--orange-6);--warning-7: var(--orange-7);--warning-8: var(--orange-8);--warning-9: var(--orange-9);--warning-10: var(--orange-10);--link-1: var(--arcoblue-1);--link-2: var(--arcoblue-2);--link-3: var(--arcoblue-3);--link-4: var(--arcoblue-4);--link-5: var(--arcoblue-5);--link-6: var(--arcoblue-6);--link-7: var(--arcoblue-7);--link-8: var(--arcoblue-8);--link-9: var(--arcoblue-9);--link-10: var(--arcoblue-10)}body{--color-white: #ffffff;--color-black: #000000;--color-border: rgb(var(--gray-3));--color-bg-popup: var(--color-bg-5);--color-bg-1: #fff;--color-bg-2: #fff;--color-bg-3: #fff;--color-bg-4: #fff;--color-bg-5: #fff;--color-bg-white: #fff;--color-neutral-1: rgb(var(--gray-1));--color-neutral-2: rgb(var(--gray-2));--color-neutral-3: rgb(var(--gray-3));--color-neutral-4: rgb(var(--gray-4));--color-neutral-5: rgb(var(--gray-5));--color-neutral-6: rgb(var(--gray-6));--color-neutral-7: rgb(var(--gray-7));--color-neutral-8: rgb(var(--gray-8));--color-neutral-9: rgb(var(--gray-9));--color-neutral-10: rgb(var(--gray-10));--color-text-1: var(--color-neutral-10);--color-text-2: var(--color-neutral-8);--color-text-3: var(--color-neutral-6);--color-text-4: var(--color-neutral-4);--color-border-1: var(--color-neutral-2);--color-border-2: var(--color-neutral-3);--color-border-3: var(--color-neutral-4);--color-border-4: var(--color-neutral-6);--color-fill-1: var(--color-neutral-1);--color-fill-2: var(--color-neutral-2);--color-fill-3: var(--color-neutral-3);--color-fill-4: var(--color-neutral-4);--color-primary-light-1: rgb(var(--primary-1));--color-primary-light-2: rgb(var(--primary-2));--color-primary-light-3: rgb(var(--primary-3));--color-primary-light-4: rgb(var(--primary-4));--color-link-light-1: rgb(var(--link-1));--color-link-light-2: rgb(var(--link-2));--color-link-light-3: rgb(var(--link-3));--color-link-light-4: rgb(var(--link-4));--color-secondary: var(--color-neutral-2);--color-secondary-hover: var(--color-neutral-3);--color-secondary-active: var(--color-neutral-4);--color-secondary-disabled: var(--color-neutral-1);--color-danger-light-1: rgb(var(--danger-1));--color-danger-light-2: rgb(var(--danger-2));--color-danger-light-3: rgb(var(--danger-3));--color-danger-light-4: rgb(var(--danger-4));--color-success-light-1: rgb(var(--success-1));--color-success-light-2: rgb(var(--success-2));--color-success-light-3: rgb(var(--success-3));--color-success-light-4: rgb(var(--success-4));--color-warning-light-1: rgb(var(--warning-1));--color-warning-light-2: rgb(var(--warning-2));--color-warning-light-3: rgb(var(--warning-3));--color-warning-light-4: rgb(var(--warning-4));--border-radius-none: 0;--border-radius-small: 2px;--border-radius-medium: 4px;--border-radius-large: 8px;--border-radius-circle: 50%;--color-tooltip-bg: rgb(var(--gray-10));--color-spin-layer-bg: rgba(255, 255, 255, .6);--color-menu-dark-bg: #232324;--color-menu-light-bg: #ffffff;--color-menu-dark-hover: rgba(255, 255, 255, .04);--color-mask-bg: rgba(29, 33, 41, .6)}body[arco-theme=dark]{--color-white: rgba(255, 255, 255, .9);--color-black: #000000;--color-border: #333335;--color-bg-1: #17171a;--color-bg-2: #232324;--color-bg-3: #2a2a2b;--color-bg-4: #313132;--color-bg-5: #373739;--color-bg-white: #f6f6f6;--color-text-1: rgba(255, 255, 255, .9);--color-text-2: rgba(255, 255, 255, .7);--color-text-3: rgba(255, 255, 255, .5);--color-text-4: rgba(255, 255, 255, .3);--color-fill-1: rgba(255, 255, 255, .04);--color-fill-2: rgba(255, 255, 255, .08);--color-fill-3: rgba(255, 255, 255, .12);--color-fill-4: rgba(255, 255, 255, .16);--color-primary-light-1: rgba(var(--primary-6), .2);--color-primary-light-2: rgba(var(--primary-6), .35);--color-primary-light-3: rgba(var(--primary-6), .5);--color-primary-light-4: rgba(var(--primary-6), .65);--color-secondary: rgba(var(--gray-9), .08);--color-secondary-hover: rgba(var(--gray-8), .16);--color-secondary-active: rgba(var(--gray-7), .24);--color-secondary-disabled: rgba(var(--gray-9), .08);--color-danger-light-1: rgba(var(--danger-6), .2);--color-danger-light-2: rgba(var(--danger-6), .35);--color-danger-light-3: rgba(var(--danger-6), .5);--color-danger-light-4: rgba(var(--danger-6), .65);--color-success-light-1: rgb(var(--success-6), .2);--color-success-light-2: rgb(var(--success-6), .35);--color-success-light-3: rgb(var(--success-6), .5);--color-success-light-4: rgb(var(--success-6), .65);--color-warning-light-1: rgb(var(--warning-6), .2);--color-warning-light-2: rgb(var(--warning-6), .35);--color-warning-light-3: rgb(var(--warning-6), .5);--color-warning-light-4: rgb(var(--warning-6), .65);--color-link-light-1: rgb(var(--link-6), .2);--color-link-light-2: rgb(var(--link-6), .35);--color-link-light-3: rgb(var(--link-6), .5);--color-link-light-4: rgb(var(--link-6), .65);--color-tooltip-bg: #373739;--color-spin-layer-bg: rgba(51, 51, 51, .6);--color-menu-dark-bg: #232324;--color-menu-light-bg: #232324;--color-menu-dark-hover: var(--color-fill-2);--color-mask-bg: rgba(23, 23, 26, .6)}body{font-size:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,noto sans,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.arco-trigger-wrapper{display:inline-block}.arco-trigger-popup{position:absolute;z-index:1000}.arco-trigger-arrow{position:absolute;z-index:-1;display:block;box-sizing:border-box;width:8px;height:8px;background-color:var(--color-bg-5);content:""}.arco-trigger-popup[trigger-placement=top] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=tl] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=tr] .arco-trigger-arrow{border-top:none;border-left:none;border-bottom-right-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=bottom] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=bl] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=br] .arco-trigger-arrow{border-right:none;border-bottom:none;border-top-left-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=left] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=lt] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=lb] .arco-trigger-arrow{border-bottom:none;border-left:none;border-top-right-radius:var(--border-radius-small)}.arco-trigger-popup[trigger-placement=right] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=rt] .arco-trigger-arrow,.arco-trigger-popup[trigger-placement=rb] .arco-trigger-arrow{border-top:none;border-right:none;border-bottom-left-radius:var(--border-radius-small)}.arco-auto-tooltip{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-input-label{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1);cursor:pointer}.arco-input-label.arco-input-label-search{cursor:text}.arco-input-label.arco-input-label-search .arco-input-label-value{pointer-events:none}.arco-input-label:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-input-label:focus-within,.arco-input-label.arco-input-label-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-input-label.arco-input-label-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-input-label.arco-input-label-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-input-label.arco-input-label-disabled .arco-input-label-prefix,.arco-input-label.arco-input-label-disabled .arco-input-label-suffix{color:inherit}.arco-input-label.arco-input-label-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-input-label.arco-input-label-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-input-label.arco-input-label-error:focus-within,.arco-input-label.arco-input-label-error.arco-input-label-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-input-label .arco-input-label-prefix,.arco-input-label .arco-input-label-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-input-label .arco-input-label-prefix>svg,.arco-input-label .arco-input-label-suffix>svg{font-size:14px}.arco-input-label .arco-input-label-prefix{padding-right:12px;color:var(--color-text-2)}.arco-input-label .arco-input-label-suffix{padding-left:12px;color:var(--color-text-2)}.arco-input-label .arco-input-label-suffix .arco-feedback-icon{display:inline-flex}.arco-input-label .arco-input-label-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-input-label .arco-input-label-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-input-label .arco-input-label-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-input-label .arco-input-label-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-input-label .arco-input-label-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-input-label .arco-input-label-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-input-label:hover .arco-input-label-clear-btn{visibility:visible}.arco-input-label:not(.arco-input-label-focus) .arco-input-label-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-input-label .arco-input-label-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.arco-input-label .arco-input-label-input::-moz-placeholder{color:var(--color-text-3)}.arco-input-label .arco-input-label-input::placeholder{color:var(--color-text-3)}.arco-input-label .arco-input-label-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-input-label .arco-input-label-input[disabled]::placeholder{color:var(--color-text-4)}.arco-input-label .arco-input-label-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-input-label .arco-input-label-input-hidden{position:absolute;width:0!important}.arco-input-label .arco-input-label-value{display:flex;align-items:center;box-sizing:border-box;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-input-label .arco-input-label-value:after{font-size:0;line-height:0;visibility:hidden;content:"."}.arco-input-label .arco-input-label-value-hidden{display:none}.arco-input-label.arco-input-label-size-mini .arco-input-label-input,.arco-input-label.arco-input-label-size-mini .arco-input-label-value{padding-top:1px;padding-bottom:1px;font-size:12px;line-height:1.667}.arco-input-label.arco-input-label-size-mini .arco-input-label-value{min-height:22px}.arco-input-label.arco-input-label-size-medium .arco-input-label-input,.arco-input-label.arco-input-label-size-medium .arco-input-label-value{padding-top:4px;padding-bottom:4px;font-size:14px;line-height:1.5715}.arco-input-label.arco-input-label-size-medium .arco-input-label-value{min-height:30px}.arco-input-label.arco-input-label-size-small .arco-input-label-input,.arco-input-label.arco-input-label-size-small .arco-input-label-value{padding-top:2px;padding-bottom:2px;font-size:14px;line-height:1.5715}.arco-input-label.arco-input-label-size-small .arco-input-label-value{min-height:26px}.arco-input-label.arco-input-label-size-large .arco-input-label-input,.arco-input-label.arco-input-label-size-large .arco-input-label-value{padding-top:6px;padding-bottom:6px;font-size:14px;line-height:1.5715}.arco-input-label.arco-input-label-size-large .arco-input-label-value{min-height:34px}.arco-picker{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:4px 11px 4px 4px;line-height:1.5715;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);transition:all .1s cubic-bezier(0,0,1,1)}.arco-picker-input{display:inline-flex;flex:1}.arco-picker input{width:100%;padding:0 0 0 8px;color:var(--color-text-2);line-height:1.5715;text-align:left;background-color:transparent;border:none;outline:none;transition:all .1s cubic-bezier(0,0,1,1)}.arco-picker input::-moz-placeholder{color:var(--color-text-3)}.arco-picker input::placeholder{color:var(--color-text-3)}.arco-picker input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-picker-has-prefix{padding-left:12px}.arco-picker-prefix{padding-right:4px;color:var(--color-text-2);font-size:14px}.arco-picker-suffix{display:inline-flex;align-items:center;margin-left:4px}.arco-picker-suffix .arco-feedback-icon{display:inline-flex}.arco-picker-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-picker-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-picker-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-picker-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-picker-suffix .arco-feedback-icon{margin-left:4px}.arco-picker-suffix-icon{color:var(--color-text-2)}.arco-picker .arco-picker-clear-icon{display:none;color:var(--color-text-2);font-size:12px}.arco-picker:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-picker:not(.arco-picker-disabled):hover .arco-picker-clear-icon{display:inline-block}.arco-picker:not(.arco-picker-disabled):hover .arco-picker-suffix .arco-picker-clear-icon+span{display:none}.arco-picker input[disabled]{color:var(--color-text-4);cursor:not-allowed}.arco-picker input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-picker input[disabled]::placeholder{color:var(--color-text-4)}.arco-picker-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-picker-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-picker-focused{box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-picker-focused,.arco-picker-focused:hover{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6))}.arco-picker-focused.arco-picker-error{border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-picker-focused .arco-picker-input-active input,.arco-picker-focused:hover .arco-picker-input-active input{background:var(--color-fill-2)}.arco-picker-disabled,.arco-picker-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-picker-disabled input[disabled],.arco-picker-disabled:hover input[disabled]{color:var(--color-text-4);cursor:not-allowed}.arco-picker-disabled input[disabled]::-moz-placeholder,.arco-picker-disabled:hover input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-picker-disabled input[disabled]::placeholder,.arco-picker-disabled:hover input[disabled]::placeholder{color:var(--color-text-4)}.arco-picker-separator{min-width:10px;padding:0 8px;color:var(--color-text-3)}.arco-picker-disabled .arco-picker-separator,.arco-picker-disabled .arco-picker-suffix-icon{color:var(--color-text-4)}.arco-picker-size-mini{height:24px}.arco-picker-size-mini input{font-size:12px}.arco-picker-size-small{height:28px}.arco-picker-size-small input{font-size:14px}.arco-picker-size-medium{height:32px}.arco-picker-size-medium input{font-size:14px}.arco-picker-size-large{height:36px}.arco-picker-size-large input{font-size:14px}.arco-select-view-single{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1);cursor:pointer}.arco-select-view-single.arco-select-view-search{cursor:text}.arco-select-view-single.arco-select-view-search .arco-select-view-value{pointer-events:none}.arco-select-view-single:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-select-view-single:focus-within,.arco-select-view-single.arco-select-view-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-select-view-single.arco-select-view-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-select-view-single.arco-select-view-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-select-view-single.arco-select-view-disabled .arco-select-view-prefix,.arco-select-view-single.arco-select-view-disabled .arco-select-view-suffix{color:inherit}.arco-select-view-single.arco-select-view-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-select-view-single.arco-select-view-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-select-view-single.arco-select-view-error:focus-within,.arco-select-view-single.arco-select-view-error.arco-select-view-single-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-select-view-single .arco-select-view-prefix,.arco-select-view-single .arco-select-view-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-select-view-single .arco-select-view-prefix>svg,.arco-select-view-single .arco-select-view-suffix>svg{font-size:14px}.arco-select-view-single .arco-select-view-prefix{padding-right:12px;color:var(--color-text-2)}.arco-select-view-single .arco-select-view-suffix{padding-left:12px;color:var(--color-text-2)}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon{display:inline-flex}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-select-view-single .arco-select-view-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-select-view-single .arco-select-view-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-select-view-single .arco-select-view-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-select-view-single:hover .arco-select-view-clear-btn{visibility:visible}.arco-select-view-single:not(.arco-select-view-focus) .arco-select-view-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-select-view-single .arco-select-view-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.arco-select-view-single .arco-select-view-input::-moz-placeholder{color:var(--color-text-3)}.arco-select-view-single .arco-select-view-input::placeholder{color:var(--color-text-3)}.arco-select-view-single .arco-select-view-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-select-view-single .arco-select-view-input[disabled]::placeholder{color:var(--color-text-4)}.arco-select-view-single .arco-select-view-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-select-view-single .arco-select-view-input-hidden{position:absolute;width:0!important}.arco-select-view-single .arco-select-view-value{display:flex;align-items:center;box-sizing:border-box;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-select-view-single .arco-select-view-value:after{font-size:0;line-height:0;visibility:hidden;content:"."}.arco-select-view-single .arco-select-view-value-hidden{display:none}.arco-select-view-single.arco-select-view-size-mini .arco-select-view-input,.arco-select-view-single.arco-select-view-size-mini .arco-select-view-value{padding-top:1px;padding-bottom:1px;font-size:12px;line-height:1.667}.arco-select-view-single.arco-select-view-size-mini .arco-select-view-value{min-height:22px}.arco-select-view-single.arco-select-view-size-medium .arco-select-view-input,.arco-select-view-single.arco-select-view-size-medium .arco-select-view-value{padding-top:4px;padding-bottom:4px;font-size:14px;line-height:1.5715}.arco-select-view-single.arco-select-view-size-medium .arco-select-view-value{min-height:30px}.arco-select-view-single.arco-select-view-size-small .arco-select-view-input,.arco-select-view-single.arco-select-view-size-small .arco-select-view-value{padding-top:2px;padding-bottom:2px;font-size:14px;line-height:1.5715}.arco-select-view-single.arco-select-view-size-small .arco-select-view-value{min-height:26px}.arco-select-view-single.arco-select-view-size-large .arco-select-view-input,.arco-select-view-single.arco-select-view-size-large .arco-select-view-value{padding-top:6px;padding-bottom:6px;font-size:14px;line-height:1.5715}.arco-select-view-single.arco-select-view-size-large .arco-select-view-value{min-height:34px}.arco-select-view-multiple{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1)}.arco-select-view-multiple:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-select-view-multiple:focus-within,.arco-select-view-multiple.arco-select-view-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-select-view-multiple.arco-select-view-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-select-view-multiple.arco-select-view-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-select-view-multiple.arco-select-view-disabled .arco-select-view-prefix,.arco-select-view-multiple.arco-select-view-disabled .arco-select-view-suffix{color:inherit}.arco-select-view-multiple.arco-select-view-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-select-view-multiple.arco-select-view-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-select-view-multiple.arco-select-view-error:focus-within,.arco-select-view-multiple.arco-select-view-error.arco-select-view-multiple-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-select-view-multiple .arco-select-view-prefix,.arco-select-view-multiple .arco-select-view-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-select-view-multiple .arco-select-view-prefix>svg,.arco-select-view-multiple .arco-select-view-suffix>svg{font-size:14px}.arco-select-view-multiple .arco-select-view-prefix{padding-right:12px;color:var(--color-text-2)}.arco-select-view-multiple .arco-select-view-suffix{padding-left:12px;color:var(--color-text-2)}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon{display:inline-flex}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-select-view-multiple .arco-select-view-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-select-view-multiple .arco-select-view-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-select-view-multiple .arco-select-view-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-select-view-multiple:hover .arco-select-view-clear-btn{visibility:visible}.arco-select-view-multiple:not(.arco-select-view-focus) .arco-select-view-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-select-view-multiple.arco-select-view-has-tag{padding-right:4px;padding-left:4px}.arco-select-view-multiple.arco-select-view-has-prefix{padding-left:12px}.arco-select-view-multiple.arco-select-view-has-suffix{padding-right:12px}.arco-select-view-multiple .arco-select-view-inner{flex:1;overflow:hidden;line-height:0}.arco-select-view-multiple .arco-select-view-inner.arco-select-view-nowrap{display:flex;flex-wrap:wrap}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-tag{display:inline-flex;align-items:center;margin-right:4px;color:var(--color-text-1);font-size:12px;white-space:pre-wrap;word-break:break-word;background-color:var(--color-bg-2);border-color:var(--color-fill-3)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-tag .arco-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-tag.arco-tag-custom-color{color:var(--color-white)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-tag.arco-tag-custom-color .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:#fff3}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input::-moz-placeholder{color:var(--color-text-3)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input::placeholder{color:var(--color-text-3)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input[disabled]::placeholder{color:var(--color-text-4)}.arco-select-view-multiple .arco-select-view-inner .arco-select-view-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-select-view-multiple .arco-select-view-mirror{position:absolute;top:0;left:0;white-space:pre;visibility:hidden;pointer-events:none}.arco-select-view-multiple.arco-select-view-focus .arco-select-view-tag{background-color:var(--color-fill-2);border-color:var(--color-fill-2)}.arco-select-view-multiple.arco-select-view-focus .arco-select-view-tag .arco-icon-hover:hover:before{background-color:var(--color-fill-3)}.arco-select-view-multiple.arco-select-view-disabled .arco-select-view-tag{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:var(--color-fill-3)}.arco-select-view-multiple.arco-select-view-readonly,.arco-select-view-multiple.arco-select-view-disabled-input{cursor:default}.arco-select-view-multiple.arco-select-view-size-mini{font-size:12px}.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-inner{padding-top:0;padding-bottom:0}.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-input{margin-top:1px;margin-bottom:1px;line-height:18px;vertical-align:middle}.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-mini .arco-select-view-input{height:auto;min-height:20px}.arco-select-view-multiple.arco-select-view-size-medium{font-size:14px}.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-inner{padding-top:2px;padding-bottom:2px}.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-input{margin-top:1px;margin-bottom:1px;line-height:22px;vertical-align:middle}.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-input{height:auto;min-height:24px}.arco-select-view-multiple.arco-select-view-size-small{font-size:14px}.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-inner{padding-top:2px;padding-bottom:2px}.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-input{margin-top:1px;margin-bottom:1px;line-height:18px;vertical-align:middle}.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-small .arco-select-view-input{height:auto;min-height:20px}.arco-select-view-multiple.arco-select-view-size-large{font-size:14px}.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-inner{padding-top:2px;padding-bottom:2px}.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-input{margin-top:1px;margin-bottom:1px;line-height:26px;vertical-align:middle}.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-tag,.arco-select-view-multiple.arco-select-view-size-large .arco-select-view-input{height:auto;min-height:28px}.arco-select-view-multiple.arco-select-view-disabled-input{cursor:pointer}.arco-select-view.arco-select-view-borderless{background:none!important;border:none!important;box-shadow:none!important}.arco-select-view-suffix .arco-feedback-icon{margin-left:4px}.arco-select-view-clear-btn svg,.arco-select-view-icon svg{display:block;font-size:12px}.arco-select-view-opened .arco-select-view-arrow-icon{transform:rotate(180deg)}.arco-select-view-expand-icon{transform:rotate(-45deg)}.arco-select-view-clear-btn{display:none;cursor:pointer}.arco-select-view:hover .arco-select-view-clear-btn{display:block}.arco-select-view:hover .arco-select-view-clear-btn~*{display:none}.arco-affix{position:fixed;z-index:999}.arco-alert{display:flex;align-items:center;box-sizing:border-box;width:100%;padding:8px 15px;overflow:hidden;font-size:14px;line-height:1.5715;text-align:left;border-radius:var(--border-radius-small)}.arco-alert-with-title{align-items:flex-start;padding:15px}.arco-alert-center{justify-content:center}.arco-alert-center .arco-alert-body{flex:initial}.arco-alert-normal{background-color:var(--color-neutral-2);border:1px solid transparent}.arco-alert-info{background-color:var(--color-primary-light-1);border:1px solid transparent}.arco-alert-success{background-color:var(--color-success-light-1);border:1px solid transparent}.arco-alert-warning{background-color:var(--color-warning-light-1);border:1px solid transparent}.arco-alert-error{background-color:var(--color-danger-light-1);border:1px solid transparent}.arco-alert-banner{border:none;border-radius:0}.arco-alert-body{position:relative;flex:1}.arco-alert-title{margin-bottom:4px;font-weight:500;font-size:16px;line-height:1.5}.arco-alert-normal .arco-alert-title,.arco-alert-normal .arco-alert-content{color:var(--color-text-1)}.arco-alert-normal.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-info .arco-alert-title,.arco-alert-info .arco-alert-content{color:var(--color-text-1)}.arco-alert-info.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-success .arco-alert-title,.arco-alert-success .arco-alert-content{color:var(--color-text-1)}.arco-alert-success.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-warning .arco-alert-title,.arco-alert-warning .arco-alert-content{color:var(--color-text-1)}.arco-alert-warning.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-error .arco-alert-title,.arco-alert-error .arco-alert-content{color:var(--color-text-1)}.arco-alert-error.arco-alert-with-title .arco-alert-content{color:var(--color-text-2)}.arco-alert-icon{margin-right:8px}.arco-alert-icon svg{font-size:16px;vertical-align:-3px}.arco-alert-with-title .arco-alert-icon svg{font-size:18px;vertical-align:-5px}.arco-alert-normal .arco-alert-icon svg{color:var(--color-neutral-4)}.arco-alert-info .arco-alert-icon svg{color:rgb(var(--primary-6))}.arco-alert-success .arco-alert-icon svg{color:rgb(var(--success-6))}.arco-alert-warning .arco-alert-icon svg{color:rgb(var(--warning-6))}.arco-alert-error .arco-alert-icon svg{color:rgb(var(--danger-6))}.arco-alert-close-btn{top:4px;right:0;box-sizing:border-box;margin-left:8px;padding:0;color:var(--color-text-2);font-size:12px;background-color:transparent;border:none;outline:none;cursor:pointer;transition:color .1s cubic-bezier(0,0,1,1)}.arco-alert-close-btn:hover{color:var(--color-text-1)}.arco-alert-action+.arco-alert-close-btn{margin-left:8px}.arco-alert-action{margin-left:8px}.arco-alert-with-title .arco-alert-close-btn{margin-top:0;margin-right:0}.arco-anchor{position:relative;width:150px;overflow:auto}.arco-anchor-line-slider{position:absolute;top:0;left:0;z-index:1;width:2px;height:12px;margin-top:9.0005px;background-color:rgb(var(--primary-6));transition:top .2s cubic-bezier(.34,.69,.1,1)}.arco-anchor-list{position:relative;margin-top:0;margin-bottom:0;margin-left:4px;padding-left:0;list-style:none}.arco-anchor-list:before{position:absolute;left:-4px;width:2px;height:100%;background-color:var(--color-fill-3);content:""}.arco-anchor-sublist{margin-top:0;margin-bottom:0;padding-left:0;list-style:none}.arco-anchor-link-item{margin-bottom:2px}.arco-anchor-link-item .arco-anchor-link{display:block;margin-bottom:2px;padding:4px 8px;overflow:hidden;color:var(--color-text-2);font-size:14px;line-height:1.5715;white-space:nowrap;text-decoration:none;text-overflow:ellipsis;border-radius:var(--border-radius-small);cursor:pointer}.arco-anchor-link-item .arco-anchor-link:hover{color:var(--color-text-1);font-weight:500;background-color:var(--color-fill-2)}.arco-anchor-link-active>.arco-anchor-link{color:var(--color-text-1);font-weight:500;transition:all .1s cubic-bezier(0,0,1,1)}.arco-anchor-link-item .arco-anchor-link-item{margin-left:16px}.arco-anchor-line-less .arco-anchor-list{margin-left:0}.arco-anchor-line-less .arco-anchor-list:before{display:none}.arco-anchor-line-less .arco-anchor-link-active>.arco-anchor-link{color:rgb(var(--primary-6));font-weight:500;background-color:var(--color-fill-2)}.arco-autocomplete-popup .arco-select-popup{background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-autocomplete-popup .arco-select-popup .arco-select-popup-inner{max-height:200px;padding:4px 0}.arco-autocomplete-popup .arco-select-popup .arco-select-option{height:36px;padding:0 12px;font-size:14px;line-height:36px;color:var(--color-text-1);background-color:var(--color-bg-popup)}.arco-autocomplete-popup .arco-select-popup .arco-select-option-selected{color:var(--color-text-1);background-color:var(--color-bg-popup)}.arco-autocomplete-popup .arco-select-popup .arco-select-option-hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-autocomplete-popup .arco-select-popup .arco-select-option-disabled{color:var(--color-text-4);background-color:var(--color-bg-popup)}.arco-autocomplete-popup .arco-select-popup .arco-select-option-selected{font-weight:500}.arco-avatar{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;width:40px;height:40px;color:var(--color-white);font-size:20px;white-space:nowrap;vertical-align:middle;background-color:var(--color-fill-4)}.arco-avatar-circle{border-radius:var(--border-radius-circle)}.arco-avatar-circle .arco-avatar-image{overflow:hidden;border-radius:var(--border-radius-circle)}.arco-avatar-square{border-radius:var(--border-radius-medium)}.arco-avatar-square .arco-avatar-image{overflow:hidden;border-radius:var(--border-radius-medium)}.arco-avatar-text{position:absolute;left:50%;font-weight:500;line-height:1;transform:translate(-50%);transform-origin:0 center}.arco-avatar-image{display:inline-block;width:100%;height:100%}.arco-avatar-image-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.arco-avatar-image img,.arco-avatar-image picture{width:100%;height:100%}.arco-avatar-trigger-icon-button{position:absolute;right:-4px;bottom:-4px;z-index:1;width:20px;height:20px;color:var(--color-fill-4);font-size:12px;line-height:20px;text-align:center;background-color:var(--color-neutral-2);border-radius:var(--border-radius-circle);transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-avatar-trigger-icon-mask{position:absolute;top:0;left:0;z-index:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--color-white);font-size:16px;background-color:#1d212999;border-radius:var(--border-radius-medium);opacity:0;transition:all .1s cubic-bezier(0,0,1,1)}.arco-avatar-circle .arco-avatar-trigger-icon-mask{border-radius:var(--border-radius-circle)}.arco-avatar-with-trigger-icon{cursor:pointer}.arco-avatar-with-trigger-icon:hover .arco-avatar-trigger-icon-mask{z-index:2;opacity:1}.arco-avatar-with-trigger-icon:hover .arco-avatar-trigger-icon-button{background-color:var(--color-neutral-3)}.arco-avatar-group{display:inline-block;line-height:0}.arco-avatar-group-max-count-avatar{color:var(--color-white);font-size:20px;cursor:default}.arco-avatar-group .arco-avatar{border:2px solid var(--color-bg-2)}.arco-avatar-group .arco-avatar:not(:first-child){margin-left:-10px}.arco-avatar-group-popover .arco-avatar:not(:first-child){margin-left:4px}.arco-back-top{position:fixed;right:24px;bottom:24px;z-index:100}.arco-back-top-btn{width:40px;height:40px;color:var(--color-white);font-size:12px;text-align:center;background-color:rgb(var(--primary-6));border:none;border-radius:var(--border-radius-circle);outline:none;cursor:pointer;transition:all .2s cubic-bezier(0,0,1,1)}.arco-back-top-btn:hover{background-color:rgb(var(--primary-5))}.arco-back-top-btn svg{font-size:14px}.arco-badge{position:relative;display:inline-block;line-height:1}.arco-badge-number,.arco-badge-dot,.arco-badge-text,.arco-badge-custom-dot{position:absolute;top:2px;right:2px;z-index:2;box-sizing:border-box;overflow:hidden;text-align:center;border-radius:20px;transform:translate(50%,-50%);transform-origin:100% 0%}.arco-badge-custom-dot{background-color:var(--color-bg-2)}.arco-badge-number,.arco-badge-text{min-width:20px;height:20px;padding:0 6px;color:var(--color-white);font-weight:500;font-size:12px;line-height:20px;background-color:rgb(var(--danger-6));box-shadow:0 0 0 2px var(--color-bg-2)}.arco-badge-dot{width:6px;height:6px;background-color:rgb(var(--danger-6));border-radius:var(--border-radius-circle);box-shadow:0 0 0 2px var(--color-bg-2)}.arco-badge-no-children .arco-badge-dot,.arco-badge-no-children .arco-badge-number,.arco-badge-no-children .arco-badge-text{position:relative;top:unset;right:unset;display:inline-block;transform:none}.arco-badge-status-wrapper{display:inline-flex;align-items:center}.arco-badge-status-dot{display:inline-block;width:6px;height:6px;border-radius:var(--border-radius-circle)}.arco-badge-status-normal{background-color:var(--color-fill-4)}.arco-badge-status-processing{background-color:rgb(var(--primary-6))}.arco-badge-status-success{background-color:rgb(var(--success-6))}.arco-badge-status-warning{background-color:rgb(var(--warning-6))}.arco-badge-status-danger,.arco-badge-color-red{background-color:rgb(var(--danger-6))}.arco-badge-color-orangered{background-color:#f77234}.arco-badge-color-orange{background-color:rgb(var(--orange-6))}.arco-badge-color-gold{background-color:rgb(var(--gold-6))}.arco-badge-color-lime{background-color:rgb(var(--lime-6))}.arco-badge-color-green{background-color:rgb(var(--success-6))}.arco-badge-color-cyan{background-color:rgb(var(--cyan-6))}.arco-badge-color-arcoblue{background-color:rgb(var(--primary-6))}.arco-badge-color-purple{background-color:rgb(var(--purple-6))}.arco-badge-color-pinkpurple{background-color:rgb(var(--pinkpurple-6))}.arco-badge-color-magenta{background-color:rgb(var(--magenta-6))}.arco-badge-color-gray{background-color:rgb(var(--gray-4))}.arco-badge .arco-badge-status-text{margin-left:8px;color:var(--color-text-1);font-size:12px;line-height:1.5715}.arco-badge-number-text{display:inline-block;animation:arco-badge-scale .5s cubic-bezier(.3,1.3,.3,1)}@keyframes arco-badge-scale{0%{transform:scale(0)}to{transform:scale(1)}}.badge-zoom-enter,.badge-zoom-appear{transform:translate(50%,-50%) scale(.2);transform-origin:center}.badge-zoom-enter-active,.badge-zoom-appear-active{transform:translate(50%,-50%) scale(1);transform-origin:center;opacity:1;transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.badge-zoom-exit{transform:translate(50%,-50%) scale(1);transform-origin:center;opacity:1}.badge-zoom-exit-active{transform:translate(50%,-50%) scale(.2);transform-origin:center;opacity:0;transition:opacity .3s cubic-bezier(.3,1.3,.3,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-breadcrumb{display:inline-flex;align-items:center;color:var(--color-text-2);font-size:14px}.arco-breadcrumb-icon{color:var(--color-text-2)}.arco-breadcrumb-item{display:inline-block;padding:0 4px;color:var(--color-text-2);line-height:24px;vertical-align:middle}.arco-breadcrumb-item>.arco-icon{color:var(--color-text-3)}.arco-breadcrumb-item a{display:inline-block;margin:0 -4px;padding:0 4px;color:var(--color-text-2);text-decoration:none;border-radius:var(--border-radius-small);background-color:transparent}.arco-breadcrumb-item a:hover{color:rgb(var(--link-6));background-color:var(--color-fill-2)}.arco-breadcrumb-item:last-child{color:var(--color-text-1);font-weight:500}.arco-breadcrumb-item-ellipses{position:relative;top:-3px;display:inline-block;padding:0 4px;color:var(--color-text-2)}.arco-breadcrumb-item-separator{display:inline-block;margin:0 4px;color:var(--color-text-4);line-height:24px;vertical-align:middle}.arco-breadcrumb-item-with-dropdown{cursor:pointer}.arco-breadcrumb-item-dropdown-icon{margin-left:4px;color:var(--color-text-2);font-size:12px}.arco-breadcrumb-item-dropdown-icon-active svg{transform:rotate(180deg)}.arco-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-weight:400;line-height:1.5715;white-space:nowrap;outline:none;cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1);-webkit-appearance:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-btn>a:only-child{color:currentColor}.arco-btn:active{transition:none}.arco-btn-long{display:flex;width:100%}.arco-btn-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.arco-btn-link:not([href]){color:var(--color-text-4)}.arco-btn-link:hover{text-decoration:none}.arco-btn-link.arco-btn-only-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:top}.arco-btn.arco-btn-only-icon .arco-btn-icon{display:flex;justify-content:center}.arco-btn-loading{position:relative;cursor:default}.arco-btn-loading:before{position:absolute;inset:-1px;z-index:1;display:block;background:#fff;border-radius:inherit;opacity:.4;transition:opacity .1s cubic-bezier(0,0,1,1);content:"";pointer-events:none}.arco-btn-loading-fixed-width{transition:none}.arco-btn-two-chinese-chars>*:not(svg){margin-right:-.3em;letter-spacing:.3em}.arco-btn-outline,.arco-btn-outline[type=button],.arco-btn-outline[type=submit]{color:rgb(var(--primary-6));background-color:transparent;border:1px solid rgb(var(--primary-6))}.arco-btn-outline:hover,.arco-btn-outline[type=button]:hover,.arco-btn-outline[type=submit]:hover{color:rgb(var(--primary-5));background-color:transparent;border-color:rgb(var(--primary-5))}.arco-btn-outline:focus-visible,.arco-btn-outline[type=button]:focus-visible,.arco-btn-outline[type=submit]:focus-visible{box-shadow:0 0 0 .25em rgb(var(--primary-3))}.arco-btn-outline:active,.arco-btn-outline[type=button]:active,.arco-btn-outline[type=submit]:active{color:rgb(var(--primary-7));background-color:transparent;border-color:rgb(var(--primary-7))}.arco-btn-outline.arco-btn-loading,.arco-btn-outline[type=button].arco-btn-loading,.arco-btn-outline[type=submit].arco-btn-loading{color:rgb(var(--primary-6));background-color:transparent;border:1px solid rgb(var(--primary-6))}.arco-btn-outline.arco-btn-disabled,.arco-btn-outline[type=button].arco-btn-disabled,.arco-btn-outline[type=submit].arco-btn-disabled{color:var(--color-primary-light-3);background-color:transparent;border:1px solid var(--color-primary-light-3);cursor:not-allowed}.arco-btn-outline.arco-btn-status-warning{color:rgb(var(--warning-6));background-color:transparent;border-color:rgb(var(--warning-6))}.arco-btn-outline.arco-btn-status-warning:hover{color:rgb(var(--warning-5));background-color:transparent;border-color:rgb(var(--warning-5))}.arco-btn-outline.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-outline.arco-btn-status-warning:active{color:rgb(var(--warning-7));background-color:transparent;border-color:rgb(var(--warning-7))}.arco-btn-outline.arco-btn-status-warning.arco-btn-loading{color:rgb(var(--warning-6));background-color:transparent;border-color:rgb(var(--warning-6))}.arco-btn-outline.arco-btn-status-warning.arco-btn-disabled{color:var(--color-warning-light-3);background-color:transparent;border:1px solid var(--color-warning-light-3)}.arco-btn-outline.arco-btn-status-danger{color:rgb(var(--danger-6));background-color:transparent;border-color:rgb(var(--danger-6))}.arco-btn-outline.arco-btn-status-danger:hover{color:rgb(var(--danger-5));background-color:transparent;border-color:rgb(var(--danger-5))}.arco-btn-outline.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-outline.arco-btn-status-danger:active{color:rgb(var(--danger-7));background-color:transparent;border-color:rgb(var(--danger-7))}.arco-btn-outline.arco-btn-status-danger.arco-btn-loading{color:rgb(var(--danger-6));background-color:transparent;border-color:rgb(var(--danger-6))}.arco-btn-outline.arco-btn-status-danger.arco-btn-disabled{color:var(--color-danger-light-3);background-color:transparent;border:1px solid var(--color-danger-light-3)}.arco-btn-outline.arco-btn-status-success{color:rgb(var(--success-6));background-color:transparent;border-color:rgb(var(--success-6))}.arco-btn-outline.arco-btn-status-success:hover{color:rgb(var(--success-5));background-color:transparent;border-color:rgb(var(--success-5))}.arco-btn-outline.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-outline.arco-btn-status-success:active{color:rgb(var(--success-7));background-color:transparent;border-color:rgb(var(--success-7))}.arco-btn-outline.arco-btn-status-success.arco-btn-loading{color:rgb(var(--success-6));background-color:transparent;border-color:rgb(var(--success-6))}.arco-btn-outline.arco-btn-status-success.arco-btn-disabled{color:var(--color-success-light-3);background-color:transparent;border:1px solid var(--color-success-light-3)}.arco-btn-primary,.arco-btn-primary[type=button],.arco-btn-primary[type=submit]{color:#fff;background-color:rgb(var(--primary-6));border:1px solid transparent}.arco-btn-primary:hover,.arco-btn-primary[type=button]:hover,.arco-btn-primary[type=submit]:hover{color:#fff;background-color:rgb(var(--primary-5));border-color:transparent}.arco-btn-primary:focus-visible,.arco-btn-primary[type=button]:focus-visible,.arco-btn-primary[type=submit]:focus-visible{box-shadow:0 0 0 .25em rgb(var(--primary-3))}.arco-btn-primary:active,.arco-btn-primary[type=button]:active,.arco-btn-primary[type=submit]:active{color:#fff;background-color:rgb(var(--primary-7));border-color:transparent}.arco-btn-primary.arco-btn-loading,.arco-btn-primary[type=button].arco-btn-loading,.arco-btn-primary[type=submit].arco-btn-loading{color:#fff;background-color:rgb(var(--primary-6));border:1px solid transparent}.arco-btn-primary.arco-btn-disabled,.arco-btn-primary[type=button].arco-btn-disabled,.arco-btn-primary[type=submit].arco-btn-disabled{color:#fff;background-color:var(--color-primary-light-3);border:1px solid transparent;cursor:not-allowed}.arco-btn-primary.arco-btn-status-warning{color:#fff;background-color:rgb(var(--warning-6));border-color:transparent}.arco-btn-primary.arco-btn-status-warning:hover{color:#fff;background-color:rgb(var(--warning-5));border-color:transparent}.arco-btn-primary.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-primary.arco-btn-status-warning:active{color:#fff;background-color:rgb(var(--warning-7));border-color:transparent}.arco-btn-primary.arco-btn-status-warning.arco-btn-loading{color:#fff;background-color:rgb(var(--warning-6));border-color:transparent}.arco-btn-primary.arco-btn-status-warning.arco-btn-disabled{color:#fff;background-color:var(--color-warning-light-3);border:1px solid transparent}.arco-btn-primary.arco-btn-status-danger{color:#fff;background-color:rgb(var(--danger-6));border-color:transparent}.arco-btn-primary.arco-btn-status-danger:hover{color:#fff;background-color:rgb(var(--danger-5));border-color:transparent}.arco-btn-primary.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-primary.arco-btn-status-danger:active{color:#fff;background-color:rgb(var(--danger-7));border-color:transparent}.arco-btn-primary.arco-btn-status-danger.arco-btn-loading{color:#fff;background-color:rgb(var(--danger-6));border-color:transparent}.arco-btn-primary.arco-btn-status-danger.arco-btn-disabled{color:#fff;background-color:var(--color-danger-light-3);border:1px solid transparent}.arco-btn-primary.arco-btn-status-success{color:#fff;background-color:rgb(var(--success-6));border-color:transparent}.arco-btn-primary.arco-btn-status-success:hover{color:#fff;background-color:rgb(var(--success-5));border-color:transparent}.arco-btn-primary.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-primary.arco-btn-status-success:active{color:#fff;background-color:rgb(var(--success-7));border-color:transparent}.arco-btn-primary.arco-btn-status-success.arco-btn-loading{color:#fff;background-color:rgb(var(--success-6));border-color:transparent}.arco-btn-primary.arco-btn-status-success.arco-btn-disabled{color:#fff;background-color:var(--color-success-light-3);border:1px solid transparent}.arco-btn-secondary,.arco-btn-secondary[type=button],.arco-btn-secondary[type=submit]{color:var(--color-text-2);background-color:var(--color-secondary);border:1px solid transparent}.arco-btn-secondary:hover,.arco-btn-secondary[type=button]:hover,.arco-btn-secondary[type=submit]:hover{color:var(--color-text-2);background-color:var(--color-secondary-hover);border-color:transparent}.arco-btn-secondary:focus-visible,.arco-btn-secondary[type=button]:focus-visible,.arco-btn-secondary[type=submit]:focus-visible{box-shadow:0 0 0 .25em var(--color-neutral-4)}.arco-btn-secondary:active,.arco-btn-secondary[type=button]:active,.arco-btn-secondary[type=submit]:active{color:var(--color-text-2);background-color:var(--color-secondary-active);border-color:transparent}.arco-btn-secondary.arco-btn-loading,.arco-btn-secondary[type=button].arco-btn-loading,.arco-btn-secondary[type=submit].arco-btn-loading{color:var(--color-text-2);background-color:var(--color-secondary);border:1px solid transparent}.arco-btn-secondary.arco-btn-disabled,.arco-btn-secondary[type=button].arco-btn-disabled,.arco-btn-secondary[type=submit].arco-btn-disabled{color:var(--color-text-4);background-color:var(--color-secondary-disabled);border:1px solid transparent;cursor:not-allowed}.arco-btn-secondary.arco-btn-status-warning{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-warning:hover{color:rgb(var(--warning-6));background-color:var(--color-warning-light-2);border-color:transparent}.arco-btn-secondary.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-secondary.arco-btn-status-warning:active{color:rgb(var(--warning-6));background-color:var(--color-warning-light-3);border-color:transparent}.arco-btn-secondary.arco-btn-status-warning.arco-btn-loading{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-warning.arco-btn-disabled{color:var(--color-warning-light-3);background-color:var(--color-warning-light-1);border:1px solid transparent}.arco-btn-secondary.arco-btn-status-danger{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-danger:hover{color:rgb(var(--danger-6));background-color:var(--color-danger-light-2);border-color:transparent}.arco-btn-secondary.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-secondary.arco-btn-status-danger:active{color:rgb(var(--danger-6));background-color:var(--color-danger-light-3);border-color:transparent}.arco-btn-secondary.arco-btn-status-danger.arco-btn-loading{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-danger.arco-btn-disabled{color:var(--color-danger-light-3);background-color:var(--color-danger-light-1);border:1px solid transparent}.arco-btn-secondary.arco-btn-status-success{color:rgb(var(--success-6));background-color:var(--color-success-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-success:hover{color:rgb(var(--success-6));background-color:var(--color-success-light-2);border-color:transparent}.arco-btn-secondary.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-secondary.arco-btn-status-success:active{color:rgb(var(--success-6));background-color:var(--color-success-light-3);border-color:transparent}.arco-btn-secondary.arco-btn-status-success.arco-btn-loading{color:rgb(var(--success-6));background-color:var(--color-success-light-1);border-color:transparent}.arco-btn-secondary.arco-btn-status-success.arco-btn-disabled{color:var(--color-success-light-3);background-color:var(--color-success-light-1);border:1px solid transparent}.arco-btn-dashed,.arco-btn-dashed[type=button],.arco-btn-dashed[type=submit]{color:var(--color-text-2);background-color:var(--color-fill-2);border:1px dashed var(--color-neutral-3)}.arco-btn-dashed:hover,.arco-btn-dashed[type=button]:hover,.arco-btn-dashed[type=submit]:hover{color:var(--color-text-2);background-color:var(--color-fill-3);border-color:var(--color-neutral-4)}.arco-btn-dashed:focus-visible,.arco-btn-dashed[type=button]:focus-visible,.arco-btn-dashed[type=submit]:focus-visible{box-shadow:0 0 0 .25em var(--color-neutral-4)}.arco-btn-dashed:active,.arco-btn-dashed[type=button]:active,.arco-btn-dashed[type=submit]:active{color:var(--color-text-2);background-color:var(--color-fill-4);border-color:var(--color-neutral-5)}.arco-btn-dashed.arco-btn-loading,.arco-btn-dashed[type=button].arco-btn-loading,.arco-btn-dashed[type=submit].arco-btn-loading{color:var(--color-text-2);background-color:var(--color-fill-2);border:1px dashed var(--color-neutral-3)}.arco-btn-dashed.arco-btn-disabled,.arco-btn-dashed[type=button].arco-btn-disabled,.arco-btn-dashed[type=submit].arco-btn-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border:1px dashed var(--color-neutral-3);cursor:not-allowed}.arco-btn-dashed.arco-btn-status-warning{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1);border-color:var(--color-warning-light-2)}.arco-btn-dashed.arco-btn-status-warning:hover{color:rgb(var(--warning-6));background-color:var(--color-warning-light-2);border-color:var(--color-warning-light-3)}.arco-btn-dashed.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-dashed.arco-btn-status-warning:active{color:rgb(var(--warning-6));background-color:var(--color-warning-light-3);border-color:var(--color-warning-light-4)}.arco-btn-dashed.arco-btn-status-warning.arco-btn-loading{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1);border-color:var(--color-warning-light-2)}.arco-btn-dashed.arco-btn-status-warning.arco-btn-disabled{color:var(--color-warning-light-3);background-color:var(--color-warning-light-1);border:1px dashed var(--color-warning-light-2)}.arco-btn-dashed.arco-btn-status-danger{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1);border-color:var(--color-danger-light-2)}.arco-btn-dashed.arco-btn-status-danger:hover{color:rgb(var(--danger-6));background-color:var(--color-danger-light-2);border-color:var(--color-danger-light-3)}.arco-btn-dashed.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-dashed.arco-btn-status-danger:active{color:rgb(var(--danger-6));background-color:var(--color-danger-light-3);border-color:var(--color-danger-light-4)}.arco-btn-dashed.arco-btn-status-danger.arco-btn-loading{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1);border-color:var(--color-danger-light-2)}.arco-btn-dashed.arco-btn-status-danger.arco-btn-disabled{color:var(--color-danger-light-3);background-color:var(--color-danger-light-1);border:1px dashed var(--color-danger-light-2)}.arco-btn-dashed.arco-btn-status-success{color:rgb(var(--success-6));background-color:var(--color-success-light-1);border-color:var(--color-success-light-2)}.arco-btn-dashed.arco-btn-status-success:hover{color:rgb(var(--success-6));background-color:var(--color-success-light-2);border-color:var(--color-success-light-3)}.arco-btn-dashed.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-dashed.arco-btn-status-success:active{color:rgb(var(--success-6));background-color:var(--color-success-light-3);border-color:var(--color-success-light-4)}.arco-btn-dashed.arco-btn-status-success.arco-btn-loading{color:rgb(var(--success-6));background-color:var(--color-success-light-1);border-color:var(--color-success-light-2)}.arco-btn-dashed.arco-btn-status-success.arco-btn-disabled{color:var(--color-success-light-3);background-color:var(--color-success-light-1);border:1px dashed var(--color-success-light-2)}.arco-btn-text,.arco-btn-text[type=button],.arco-btn-text[type=submit]{color:rgb(var(--primary-6));background-color:transparent;border:1px solid transparent}.arco-btn-text:hover,.arco-btn-text[type=button]:hover,.arco-btn-text[type=submit]:hover{color:rgb(var(--primary-6));background-color:var(--color-fill-2);border-color:transparent}.arco-btn-text:focus-visible,.arco-btn-text[type=button]:focus-visible,.arco-btn-text[type=submit]:focus-visible{box-shadow:0 0 0 .25em var(--color-neutral-4)}.arco-btn-text:active,.arco-btn-text[type=button]:active,.arco-btn-text[type=submit]:active{color:rgb(var(--primary-6));background-color:var(--color-fill-3);border-color:transparent}.arco-btn-text.arco-btn-loading,.arco-btn-text[type=button].arco-btn-loading,.arco-btn-text[type=submit].arco-btn-loading{color:rgb(var(--primary-6));background-color:transparent;border:1px solid transparent}.arco-btn-text.arco-btn-disabled,.arco-btn-text[type=button].arco-btn-disabled,.arco-btn-text[type=submit].arco-btn-disabled{color:var(--color-primary-light-3);background-color:transparent;border:1px solid transparent;cursor:not-allowed}.arco-btn-text.arco-btn-status-warning{color:rgb(var(--warning-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-warning:hover{color:rgb(var(--warning-6));background-color:var(--color-fill-2);border-color:transparent}.arco-btn-text.arco-btn-status-warning:focus-visible{box-shadow:0 0 0 .25em rgb(var(--warning-3))}.arco-btn-text.arco-btn-status-warning:active{color:rgb(var(--warning-6));background-color:var(--color-fill-3);border-color:transparent}.arco-btn-text.arco-btn-status-warning.arco-btn-loading{color:rgb(var(--warning-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-warning.arco-btn-disabled{color:var(--color-warning-light-3);background-color:transparent;border:1px solid transparent}.arco-btn-text.arco-btn-status-danger{color:rgb(var(--danger-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-danger:hover{color:rgb(var(--danger-6));background-color:var(--color-fill-2);border-color:transparent}.arco-btn-text.arco-btn-status-danger:focus-visible{box-shadow:0 0 0 .25em rgb(var(--danger-3))}.arco-btn-text.arco-btn-status-danger:active{color:rgb(var(--danger-6));background-color:var(--color-fill-3);border-color:transparent}.arco-btn-text.arco-btn-status-danger.arco-btn-loading{color:rgb(var(--danger-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-danger.arco-btn-disabled{color:var(--color-danger-light-3);background-color:transparent;border:1px solid transparent}.arco-btn-text.arco-btn-status-success{color:rgb(var(--success-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-success:hover{color:rgb(var(--success-6));background-color:var(--color-fill-2);border-color:transparent}.arco-btn-text.arco-btn-status-success:focus-visible{box-shadow:0 0 0 .25em rgb(var(--success-3))}.arco-btn-text.arco-btn-status-success:active{color:rgb(var(--success-6));background-color:var(--color-fill-3);border-color:transparent}.arco-btn-text.arco-btn-status-success.arco-btn-loading{color:rgb(var(--success-6));background-color:transparent;border-color:transparent}.arco-btn-text.arco-btn-status-success.arco-btn-disabled{color:var(--color-success-light-3);background-color:transparent;border:1px solid transparent}.arco-btn-size-mini{height:24px;padding:0 11px;font-size:12px;border-radius:var(--border-radius-small)}.arco-btn-size-mini:not(.arco-btn-only-icon) .arco-btn-icon{margin-right:4px}.arco-btn-size-mini svg{vertical-align:-1px}.arco-btn-size-mini.arco-btn-loading-fixed-width.arco-btn-loading{padding-right:3px;padding-left:3px}.arco-btn-size-mini.arco-btn-only-icon{width:24px;height:24px;padding:0}.arco-btn-size-mini.arco-btn-shape-circle{width:24px;height:24px;padding:0;text-align:center;border-radius:var(--border-radius-circle)}.arco-btn-size-mini.arco-btn-shape-round{border-radius:12px}.arco-btn-size-small{height:28px;padding:0 15px;font-size:14px;border-radius:var(--border-radius-small)}.arco-btn-size-small:not(.arco-btn-only-icon) .arco-btn-icon{margin-right:6px}.arco-btn-size-small svg{vertical-align:-2px}.arco-btn-size-small.arco-btn-loading-fixed-width.arco-btn-loading{padding-right:5px;padding-left:5px}.arco-btn-size-small.arco-btn-only-icon{width:28px;height:28px;padding:0}.arco-btn-size-small.arco-btn-shape-circle{width:28px;height:28px;padding:0;text-align:center;border-radius:var(--border-radius-circle)}.arco-btn-size-small.arco-btn-shape-round{border-radius:14px}.arco-btn-size-medium{height:32px;padding:0 15px;font-size:14px;border-radius:var(--border-radius-small)}.arco-btn-size-medium:not(.arco-btn-only-icon) .arco-btn-icon{margin-right:8px}.arco-btn-size-medium svg{vertical-align:-2px}.arco-btn-size-medium.arco-btn-loading-fixed-width.arco-btn-loading{padding-right:4px;padding-left:4px}.arco-btn-size-medium.arco-btn-only-icon{width:32px;height:32px;padding:0}.arco-btn-size-medium.arco-btn-shape-circle{width:32px;height:32px;padding:0;text-align:center;border-radius:var(--border-radius-circle)}.arco-btn-size-medium.arco-btn-shape-round{border-radius:16px}.arco-btn-size-large{height:36px;padding:0 19px;font-size:14px;border-radius:var(--border-radius-small)}.arco-btn-size-large:not(.arco-btn-only-icon) .arco-btn-icon{margin-right:8px}.arco-btn-size-large svg{vertical-align:-2px}.arco-btn-size-large.arco-btn-loading-fixed-width.arco-btn-loading{padding-right:8px;padding-left:8px}.arco-btn-size-large.arco-btn-only-icon{width:36px;height:36px;padding:0}.arco-btn-size-large.arco-btn-shape-circle{width:36px;height:36px;padding:0;text-align:center;border-radius:var(--border-radius-circle)}.arco-btn-size-large.arco-btn-shape-round{border-radius:18px}.arco-btn-group{display:inline-flex;align-items:center}.arco-btn-group .arco-btn-outline:not(:first-child),.arco-btn-group .arco-btn-dashed:not(:first-child){margin-left:-1px}.arco-btn-group .arco-btn-primary:not(:last-child){border-right:1px solid rgb(var(--primary-5))}.arco-btn-group .arco-btn-secondary:not(:last-child){border-right:1px solid var(--color-secondary-hover)}.arco-btn-group .arco-btn-status-warning:not(:last-child){border-right:1px solid rgb(var(--warning-5))}.arco-btn-group .arco-btn-status-danger:not(:last-child){border-right:1px solid rgb(var(--danger-5))}.arco-btn-group .arco-btn-status-success:not(:last-child){border-right:1px solid rgb(var(--success-5))}.arco-btn-group .arco-btn-outline:hover,.arco-btn-group .arco-btn-dashed:hover,.arco-btn-group .arco-btn-outline:active,.arco-btn-group .arco-btn-dashed:active{z-index:2}.arco-btn-group .arco-btn:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.arco-btn-group .arco-btn:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.arco-btn-group .arco-btn:not(:first-child):not(:last-child){border-radius:0}body[arco-theme=dark] .arco-btn-primary.arco-btn-disabled{color:#ffffff4d}.arco-calendar{box-sizing:border-box;border:1px solid var(--color-neutral-3)}.arco-calendar-header{display:flex;padding:24px}.arco-calendar-header-left{position:relative;display:flex;flex:1;align-items:center;height:28px;line-height:28px}.arco-calendar-header-right{position:relative;height:28px}.arco-calendar-header-value{color:var(--color-text-1);font-weight:500;font-size:20px}.arco-calendar-header-icon{width:28px;height:28px;margin-right:12px;color:var(--color-text-2);font-size:12px;line-height:28px;text-align:center;background-color:var(--color-bg-5);border-radius:50%;transition:all .1s cubic-bezier(0,0,1,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-calendar-header-icon:not(:first-child){margin:0 12px}.arco-calendar-header-icon:focus-visible{box-shadow:0 0 0 2px var(--color-primary-light-3)}.arco-calendar-header-icon:not(.arco-calendar-header-icon-hidden){cursor:pointer}.arco-calendar-header-icon:not(.arco-calendar-header-icon-hidden):hover{background-color:var(--color-fill-3)}.arco-calendar .arco-calendar-header-value-year{width:100px;margin-right:8px}.arco-calendar .arco-calendar-header-value-month{width:76px;margin-right:32px}.arco-calendar-month{width:100%}.arco-calendar-month-row{display:flex;height:100px}.arco-calendar-month-row .arco-calendar-cell{flex:1;overflow:hidden;border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-month-row:last-child .arco-calendar-cell{border-bottom:unset}.arco-calendar-month-cell-body{box-sizing:border-box}.arco-calendar-mode-month:not(.arco-calendar-panel) .arco-calendar-cell:not(:last-child){border-right:1px solid var(--color-neutral-3)}.arco-calendar-week-list{display:flex;box-sizing:border-box;width:100%;padding:0;border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-week-list-item{flex:1;padding:20px 16px;color:#7d7d7f;text-align:left}.arco-calendar-cell .arco-calendar-date{box-sizing:border-box;width:100%;height:100%;padding:10px;cursor:pointer}.arco-calendar-cell .arco-calendar-date-circle{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%}.arco-calendar-date-content{height:70px;overflow-y:auto}.arco-calendar-cell-today .arco-calendar-date-circle{box-sizing:border-box;border:1px solid rgb(var(--primary-6))}.arco-calendar-date-value{color:var(--color-text-4);font-weight:500;font-size:16px}.arco-calendar-cell-in-view .arco-calendar-date-value{color:var(--color-text-1)}.arco-calendar-mode-month .arco-calendar-cell-selected .arco-calendar-date-circle,.arco-calendar-mode-year .arco-calendar-cell-selected .arco-calendar-cell-selected .arco-calendar-date-circle{box-sizing:border-box;color:#fff;background-color:rgb(var(--primary-6));border:1px solid rgb(var(--primary-6))}.arco-calendar-mode-year:not(.arco-calendar-panel){min-width:820px}.arco-calendar-mode-year .arco-calendar-header{border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-mode-year .arco-calendar-body{padding:12px}.arco-calendar-mode-year .arco-calendar-year-row{display:flex}.arco-calendar-year-row>.arco-calendar-cell{flex:1;padding:20px 8px}.arco-calendar-year-row>.arco-calendar-cell:not(:last-child){border-right:1px solid var(--color-neutral-3)}.arco-calendar-year-row:not(:last-child)>.arco-calendar-cell{border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-month-with-days .arco-calendar-month-row{height:26px}.arco-calendar-month-with-days .arco-calendar-cell{border-bottom:0}.arco-calendar-month-with-days .arco-calendar-month-cell-body{padding:0}.arco-calendar-month-with-days .arco-calendar-month-title{padding:10px 6px;color:var(--color-text-1);font-weight:500;font-size:16px}.arco-calendar-month-cell{width:100%;font-size:12px}.arco-calendar-month-cell .arco-calendar-week-list{padding:0;border-bottom:unset}.arco-calendar-month-cell .arco-calendar-week-list-item{padding:6px;color:#7d7d7f;text-align:center}.arco-calendar-month-cell .arco-calendar-cell{text-align:center}.arco-calendar-month-cell .arco-calendar-date{padding:2px}.arco-calendar-month-cell .arco-calendar-date-value{font-size:14px}.arco-calendar-month-cell .arco-calendar-date-circle{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%}.arco-calendar-panel{background-color:var(--color-bg-5);border:1px solid var(--color-neutral-3)}.arco-calendar-panel .arco-calendar-header{padding:8px 16px;border-bottom:1px solid var(--color-neutral-3)}.arco-calendar-panel .arco-calendar-header-value{flex:1;font-size:14px;line-height:24px;text-align:center}.arco-calendar-panel .arco-calendar-header-icon{width:24px;height:24px;margin-right:2px;margin-left:2px;line-height:24px}.arco-calendar-panel .arco-calendar-body{padding:14px 16px}.arco-calendar-panel .arco-calendar-month-cell-body{padding:0}.arco-calendar-panel .arco-calendar-month-row{height:unset}.arco-calendar-panel .arco-calendar-week-list{padding:0;border-bottom:unset}.arco-calendar-panel .arco-calendar-week-list-item{height:32px;padding:0;font-weight:400;line-height:32px;text-align:center}.arco-calendar-panel .arco-calendar-cell,.arco-calendar-panel .arco-calendar-year-row .arco-calendar-cell{box-sizing:border-box;padding:2px 0;text-align:center;border-right:0;border-bottom:0}.arco-calendar-panel .arco-calendar-cell .arco-calendar-date{display:flex;justify-content:center;padding:4px 0}.arco-calendar-panel .arco-calendar-cell .arco-calendar-date-value{min-width:24px;height:24px;font-size:14px;line-height:24px;cursor:pointer}.arco-calendar-panel.arco-calendar-mode-year .arco-calendar-cell{padding:4px 0}.arco-calendar-panel.arco-calendar-mode-year .arco-calendar-cell .arco-calendar-date{padding:4px}.arco-calendar-panel.arco-calendar-mode-year .arco-calendar-cell .arco-calendar-date-value{width:100%;border-radius:12px}.arco-calendar-panel .arco-calendar-cell-selected .arco-calendar-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));border-radius:50%}.arco-calendar-panel .arco-calendar-cell:not(.arco-calendar-cell-selected):not(.arco-calendar-cell-range-start):not(.arco-calendar-cell-range-end):not(.arco-calendar-cell-hover-range-start):not(.arco-calendar-cell-hover-range-end):not(.arco-calendar-cell-disabled):not(.arco-calendar-cell-week) .arco-calendar-date-value:hover{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1);border-radius:50%}.arco-calendar-panel.arco-calendar-mode-year .arco-calendar-cell:not(.arco-calendar-cell-selected):not(.arco-calendar-cell-range-start):not(.arco-calendar-cell-range-end):not(.arco-calendar-cell-hover-range-start):not(.arco-calendar-cell-hover-range-end):not(.arco-calendar-cell-disabled) .arco-calendar-date-value:hover{border-radius:12px}.arco-calendar-panel .arco-calendar-cell-today{position:relative}.arco-calendar-panel .arco-calendar-cell-today:after{position:absolute;bottom:0;left:50%;display:block;width:4px;height:4px;margin-left:-2px;background-color:rgb(var(--primary-6));border-radius:50%;content:""}.arco-calendar-cell-in-range .arco-calendar-date{background-color:var(--color-primary-light-1)}.arco-calendar-cell-range-start .arco-calendar-date{border-radius:16px 0 0 16px}.arco-calendar-cell-range-end .arco-calendar-date{border-radius:0 16px 16px 0}.arco-calendar-cell-in-range-near-hover .arco-calendar-date{border-radius:0}.arco-calendar-cell-range-start .arco-calendar-date-value,.arco-calendar-cell-range-end .arco-calendar-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));border-radius:50%}.arco-calendar-cell-hover-in-range .arco-calendar-date{background-color:var(--color-primary-light-1)}.arco-calendar-cell-hover-range-start .arco-calendar-date{border-radius:16px 0 0 16px}.arco-calendar-cell-hover-range-end .arco-calendar-date{border-radius:0 16px 16px 0}.arco-calendar-cell-hover-range-start .arco-calendar-date-value,.arco-calendar-cell-hover-range-end .arco-calendar-date-value{color:var(--color-text-1);background-color:var(--color-primary-light-2);border-radius:50%}.arco-calendar-panel .arco-calendar-cell-disabled>.arco-calendar-date{background-color:var(--color-fill-1);cursor:not-allowed}.arco-calendar-panel .arco-calendar-cell-disabled>.arco-calendar-date>.arco-calendar-date-value{color:var(--color-text-4);background-color:var(--color-fill-1);cursor:not-allowed}.arco-calendar-panel .arco-calendar-footer-btn-wrapper{height:38px;color:var(--color-text-1);line-height:38px;text-align:center;border-top:1px solid var(--color-neutral-3);cursor:pointer}.arco-calendar-rtl{direction:rtl}.arco-calendar-rtl .arco-calendar-header-icon{margin-right:0;margin-left:12px;transform:scaleX(-1)}.arco-calendar-rtl .arco-calendar-week-list-item{text-align:right}.arco-calendar-rtl.arco-calendar-mode-month:not(.arco-calendar-panel) .arco-calendar-cell:not(:last-child){border-right:0;border-left:1px solid var(--color-neutral-3)}.arco-calendar-rtl .arco-calendar-header-value-year{margin-right:0;margin-left:8px}.arco-calendar-rtl .arco-calendar-header-value-month{margin-right:0;margin-left:32px}.arco-card{position:relative;background:var(--color-bg-2);border-radius:var(--border-radius-none);transition:box-shadow .2s cubic-bezier(0,0,1,1)}.arco-card-header{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;overflow:hidden;border-bottom:1px solid var(--color-neutral-3)}.arco-card-header-no-title:before{display:block;content:" "}.arco-card-header-title{flex:1;color:var(--color-text-1);font-weight:500;line-height:1.5715;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-card-header-extra{color:rgb(var(--primary-6));overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-card-body{color:var(--color-text-2)}.arco-card-cover{overflow:hidden}.arco-card-cover>*{display:block;width:100%}.arco-card-actions{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.arco-card-actions:before{visibility:hidden;content:""}.arco-card-actions-right{display:flex;align-items:center}.arco-card-actions-item{display:flex;align-items:center;justify-content:center;color:var(--color-text-2);cursor:pointer;transition:color .2s cubic-bezier(0,0,1,1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-card-actions-item:hover{color:rgb(var(--primary-6))}.arco-card-actions-item:not(:last-child){margin-right:12px}.arco-card-meta-footer{display:flex;align-items:center;justify-content:space-between}.arco-card-meta-footer:last-child{margin-top:20px}.arco-card-meta-footer-only-actions:before{visibility:hidden;content:""}.arco-card-meta-footer .arco-card-actions{margin-top:0}.arco-card-meta-title{color:var(--color-text-1);font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-card-meta-description:not(:first-child){margin-top:4px}.arco-card-grid{position:relative;box-sizing:border-box;width:33.33%;box-shadow:1px 0 0 0 var(--color-neutral-3),0 1px 0 0 var(--color-neutral-3),1px 1px 0 0 var(--color-neutral-3),1px 0 0 0 var(--color-neutral-3) inset,0 1px 0 0 var(--color-neutral-3) inset}.arco-card-grid:before{position:absolute;inset:0;transition:box-shadow .2s cubic-bezier(0,0,1,1);content:"";pointer-events:none}.arco-card-grid-hoverable:hover{z-index:1}.arco-card-grid-hoverable:hover:before{box-shadow:0 4px 10px rgb(var(--gray-2))}.arco-card-grid .arco-card{background:none;box-shadow:none}.arco-card-contain-grid:not(.arco-card-loading)>.arco-card-body{display:flex;flex-wrap:wrap;margin:0 -1px;padding:0}.arco-card-hoverable:hover{box-shadow:0 4px 10px rgb(var(--gray-2))}.arco-card-bordered{border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-small)}.arco-card-bordered .arco-card-cover{border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}.arco-card-loading .arco-card-body{overflow:hidden;text-align:center}.arco-card-size-medium{font-size:14px}.arco-card-size-medium .arco-card-header{height:46px;padding:10px 16px}.arco-card-size-medium .arco-card-header-title,.arco-card-size-medium .arco-card-meta-title{font-size:16px}.arco-card-size-medium .arco-card-header-extra{font-size:14px}.arco-card-size-medium .arco-card-body{padding:16px}.arco-card-size-small{font-size:14px}.arco-card-size-small .arco-card-header{height:40px;padding:8px 16px}.arco-card-size-small .arco-card-header-title,.arco-card-size-small .arco-card-meta-title{font-size:16px}.arco-card-size-small .arco-card-header-extra{font-size:14px}.arco-card-size-small .arco-card-body{padding:12px 16px}body[arco-theme=dark] .arco-card-grid-hoverable:hover:before,body[arco-theme=dark] .arco-card-hoverable:hover{box-shadow:0 4px 10px rgba(var(--gray-1),40%)}@keyframes arco-carousel-slide-x-in{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes arco-carousel-slide-x-out{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes arco-carousel-slide-x-in-reverse{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes arco-carousel-slide-x-out-reverse{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes arco-carousel-slide-y-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes arco-carousel-slide-y-out{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes arco-carousel-slide-y-in-reverse{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes arco-carousel-slide-y-out-reverse{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes arco-carousel-card-bottom-to-middle{0%{transform:translate(0) translateZ(-400px);opacity:0}to{transform:translate(0) translateZ(-200px);opacity:.4}}@keyframes arco-carousel-card-middle-to-bottom{0%{transform:translate(-100%) translateZ(-200px);opacity:.4}to{transform:translate(-100%) translateZ(-400px);opacity:0}}@keyframes arco-carousel-card-top-to-middle{0%{transform:translate(-50%) translateZ(0);opacity:1}to{transform:translate(-100%) translateZ(-200px);opacity:.4}}@keyframes arco-carousel-card-middle-to-top{0%{transform:translate(0) translateZ(-200px);opacity:.4}to{transform:translate(-50%) translateZ(0);opacity:1}}@keyframes arco-carousel-card-bottom-to-middle-reverse{0%{transform:translate(-100%) translateZ(-400px);opacity:0}to{transform:translate(-100%) translateZ(-200px);opacity:.4}}@keyframes arco-carousel-card-middle-to-bottom-reverse{0%{transform:translate(0) translateZ(-200px);opacity:.4}to{transform:translate(0) translateZ(-400px);opacity:0}}@keyframes arco-carousel-card-top-to-middle-reverse{0%{transform:translate(-50%) translateZ(0);opacity:1}to{transform:translate(0) translateZ(-200px);opacity:.4}}@keyframes arco-carousel-card-middle-to-top-reverse{0%{transform:translate(-100%) translateZ(-200px);opacity:.4}to{transform:translate(-50%) translateZ(0);opacity:1}}.arco-carousel{position:relative}.arco-carousel-indicator-position-outer{margin-bottom:30px}.arco-carousel-slide,.arco-carousel-card,.arco-carousel-fade{position:relative;width:100%;height:100%;overflow:hidden}.arco-carousel-slide>*,.arco-carousel-card>*,.arco-carousel-fade>*{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.arco-carousel-item-current{z-index:1}.arco-carousel-slide>*:not(.arco-carousel-item-current){display:none;visibility:hidden}.arco-carousel-slide.arco-carousel-horizontal .arco-carousel-item-slide-out{display:block;animation:arco-carousel-slide-x-out}.arco-carousel-slide.arco-carousel-horizontal .arco-carousel-item-slide-in{display:block;animation:arco-carousel-slide-x-in}.arco-carousel-slide.arco-carousel-horizontal.arco-carousel-negative .arco-carousel-item-slide-out{animation:arco-carousel-slide-x-out-reverse}.arco-carousel-slide.arco-carousel-horizontal.arco-carousel-negative .arco-carousel-item-slide-in{animation:arco-carousel-slide-x-in-reverse}.arco-carousel-slide.arco-carousel-vertical .arco-carousel-item-slide-out{display:block;animation:arco-carousel-slide-y-out}.arco-carousel-slide.arco-carousel-vertical .arco-carousel-item-slide-in{display:block;animation:arco-carousel-slide-y-in}.arco-carousel-slide.arco-carousel-vertical.arco-carousel-negative .arco-carousel-item-slide-out{animation:arco-carousel-slide-y-out-reverse}.arco-carousel-slide.arco-carousel-vertical.arco-carousel-negative .arco-carousel-item-slide-in{animation:arco-carousel-slide-y-in-reverse}.arco-carousel-card{perspective:800px}.arco-carousel-card>*{left:50%;transform:translate(-50%) translateZ(-400px);opacity:0;animation:arco-carousel-card-middle-to-bottom}.arco-carousel-card .arco-carousel-item-prev{transform:translate(-100%) translateZ(-200px);opacity:.4;animation:arco-carousel-card-top-to-middle}.arco-carousel-card .arco-carousel-item-next{transform:translate(0) translateZ(-200px);opacity:.4;animation:arco-carousel-card-bottom-to-middle}.arco-carousel-card .arco-carousel-item-current{transform:translate(-50%) translateZ(0);opacity:1;animation:arco-carousel-card-middle-to-top}.arco-carousel-card.arco-carousel-negative>*{animation:arco-carousel-card-middle-to-bottom-reverse}.arco-carousel-card.arco-carousel-negative .arco-carousel-item-prev{animation:arco-carousel-card-bottom-to-middle-reverse}.arco-carousel-card.arco-carousel-negative .arco-carousel-item-next{animation:arco-carousel-card-top-to-middle-reverse}.arco-carousel-card.arco-carousel-negative .arco-carousel-item-current{animation:arco-carousel-card-middle-to-top-reverse}.arco-carousel-fade>*{left:50%;transform:translate(-50%);opacity:0}.arco-carousel-fade .arco-carousel-item-current{opacity:1}.arco-carousel-indicator{position:absolute;display:flex;margin:0;padding:0}.arco-carousel-indicator-wrapper{position:absolute;z-index:2}.arco-carousel-indicator-wrapper-top{top:0;right:0;left:0;height:48px;background:linear-gradient(180deg,#00000026,#0000 87%)}.arco-carousel-indicator-wrapper-bottom{right:0;bottom:0;left:0;height:48px;background:linear-gradient(180deg,#0000 13%,#00000026)}.arco-carousel-indicator-wrapper-left{top:0;left:0;width:48px;height:100%;background:linear-gradient(90deg,#00000026,#0000 87%)}.arco-carousel-indicator-wrapper-right{top:0;right:0;width:48px;height:100%;background:linear-gradient(90deg,#0000 13%,#00000026)}.arco-carousel-indicator-wrapper-outer{right:0;left:0;background:none}.arco-carousel-indicator-bottom{bottom:12px;left:50%;transform:translate(-50%)}.arco-carousel-indicator-top{top:12px;left:50%;transform:translate(-50%)}.arco-carousel-indicator-left{top:50%;left:12px;transform:translate(-50%,-50%) rotate(90deg)}.arco-carousel-indicator-right{top:50%;right:12px;transform:translate(50%,-50%) rotate(90deg)}.arco-carousel-indicator-outer{left:50%;padding:4px;background-color:transparent;border-radius:20px;transform:translate(-50%)}.arco-carousel-indicator-outer.arco-carousel-indicator-dot{bottom:-22px}.arco-carousel-indicator-outer.arco-carousel-indicator-line{bottom:-20px}.arco-carousel-indicator-outer.arco-carousel-indicator-slider{bottom:-16px;padding:0;background-color:rgba(var(--gray-4),.5)}.arco-carousel-indicator-outer .arco-carousel-indicator-item{background-color:rgba(var(--gray-4),.5)}.arco-carousel-indicator-outer .arco-carousel-indicator-item:hover,.arco-carousel-indicator-outer .arco-carousel-indicator-item-active{background-color:var(--color-fill-4)}.arco-carousel-indicator-item{display:inline-block;background-color:#ffffff4d;border-radius:var(--border-radius-medium);cursor:pointer}.arco-carousel-indicator-item:hover,.arco-carousel-indicator-item-active{background-color:var(--color-white)}.arco-carousel-indicator-dot .arco-carousel-indicator-item{width:6px;height:6px;border-radius:50%}.arco-carousel-indicator-dot .arco-carousel-indicator-item:not(:last-child){margin-right:8px}.arco-carousel-indicator-line .arco-carousel-indicator-item{width:12px;height:4px}.arco-carousel-indicator-line .arco-carousel-indicator-item:not(:last-child){margin-right:8px}.arco-carousel-indicator-slider{width:48px;height:4px;background-color:#ffffff4d;border-radius:var(--border-radius-medium);cursor:pointer}.arco-carousel-indicator-slider .arco-carousel-indicator-item{position:absolute;top:0;height:100%;transition:left .3s}.arco-carousel-arrow>div{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--color-white);background-color:#ffffff4d;border-radius:50%;cursor:pointer}.arco-carousel-arrow>div>svg{color:var(--color-white);font-size:14px}.arco-carousel-arrow>div:hover{background-color:#ffffff80}.arco-carousel-arrow-left{top:50%;left:12px;transform:translateY(-50%)}.arco-carousel-arrow-right{top:50%;right:12px;transform:translateY(-50%)}.arco-carousel-arrow-top{top:12px;left:50%;transform:translate(-50%)}.arco-carousel-arrow-bottom{bottom:12px;left:50%;transform:translate(-50%)}.arco-carousel-arrow-hover div{opacity:0;transition:all .3s}.arco-carousel:hover .arco-carousel-arrow-hover div{opacity:1}body[arco-theme=dark] .arco-carousel-arrow>div{background-color:#17171a4d}body[arco-theme=dark] .arco-carousel-arrow>div:hover{background-color:#17171a80}body[arco-theme=dark] .arco-carousel-indicator-item,body[arco-theme=dark] .arco-carousel-indicator-slider{background-color:#17171a4d}body[arco-theme=dark] .arco-carousel-indicator-item-active,body[arco-theme=dark] .arco-carousel-indicator-item:hover{background-color:var(--color-white)}body[arco-theme=dark] .arco-carousel-indicator-outer.arco-carousel-indicator-slider{background-color:rgba(var(--gray-4),.5)}body[arco-theme=dark] .arco-carousel-indicator-outer .arco-carousel-indicator-item:hover,body[arco-theme=dark] .arco-carousel-indicator-outer .arco-carousel-indicator-item-active{background-color:var(--color-fill-4)}.arco-cascader-panel{display:inline-flex;box-sizing:border-box;height:200px;overflow:hidden;white-space:nowrap;list-style:none;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-cascader-search-panel{justify-content:flex-start;width:100%;overflow:auto}.arco-cascader-popup-trigger-hover .arco-cascader-list-item{transition:fontweight 0s}.arco-cascader-highlight{font-weight:500}.arco-cascader-panel-column{position:relative;display:inline-flex;flex-direction:column;min-width:120px;height:100%;max-height:200px;background-color:var(--color-bg-popup)}.arco-cascader-panel-column-loading{display:inline-flex;align-items:center;justify-content:center}.arco-cascader-panel-column:not(:last-of-type){border-right:1px solid var(--color-fill-3)}.arco-cascader-column-content{flex:1;max-height:200px;overflow-y:auto}.arco-cascader-list-wrapper{position:relative;display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding:4px 0}.arco-cascader-list-wrapper-with-footer{padding-bottom:0}.arco-cascader-list-empty{display:flex;align-items:center;width:100%;height:100%}.arco-cascader-list{flex:1;box-sizing:border-box;margin:0;padding:0;list-style:none}.arco-cascader-list-multiple .arco-cascader-option-label,.arco-cascader-list-strictly .arco-cascader-option-label{padding-left:0}.arco-cascader-list-multiple .arco-cascader-option,.arco-cascader-list-strictly .arco-cascader-option{padding-left:12px}.arco-cascader-list-multiple .arco-cascader-option .arco-checkbox,.arco-cascader-list-strictly .arco-cascader-option .arco-checkbox,.arco-cascader-list-multiple .arco-cascader-option .arco-radio,.arco-cascader-list-strictly .arco-cascader-option .arco-radio{margin-right:8px;padding-left:0}.arco-cascader-search-list.arco-cascader-list-multiple .arco-cascader-option-label{padding-right:12px}.arco-cascader-list-footer{box-sizing:border-box;height:36px;padding-left:12px;line-height:36px;border-top:1px solid var(--color-fill-3)}.arco-cascader-option,.arco-cascader-search-option{position:relative;display:flex;box-sizing:border-box;min-width:100px;height:36px;color:var(--color-text-1);font-size:14px;line-height:36px;background-color:transparent;cursor:pointer}.arco-cascader-option-label,.arco-cascader-search-option-label{flex-grow:1;padding-right:34px;padding-left:12px}.arco-cascader-option .arco-icon-right,.arco-cascader-search-option .arco-icon-right,.arco-cascader-option .arco-icon-check,.arco-cascader-search-option .arco-icon-check{position:absolute;top:50%;right:10px;color:var(--color-text-2);font-size:12px;transform:translateY(-50%)}.arco-cascader-option .arco-icon-check,.arco-cascader-search-option .arco-icon-check{color:rgb(var(--primary-6))}.arco-cascader-option .arco-icon-loading,.arco-cascader-search-option .arco-icon-loading{position:absolute;top:50%;right:10px;margin-top:-6px;color:rgb(var(--primary-6));font-size:12px}.arco-cascader-option:hover,.arco-cascader-search-option-hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-cascader-option:hover .arco-checkbox:not(.arco-checkbox-disabled):not(.arco-checkbox-checked):hover .arco-checkbox-icon-hover:before,.arco-cascader-search-option-hover .arco-checkbox:not(.arco-checkbox-disabled):not(.arco-checkbox-checked):hover .arco-checkbox-icon-hover:before{background-color:var(--color-fill-3)}.arco-cascader-option:hover .arco-radio:not(.arco-radio-disabled):not(.arco-radio-checked):hover .arco-radio-icon-hover:before,.arco-cascader-search-option-hover .arco-radio:not(.arco-radio-disabled):not(.arco-radio-checked):hover .arco-radio-icon-hover:before{background-color:var(--color-fill-3)}.arco-cascader-option-disabled,.arco-cascader-search-option-disabled,.arco-cascader-option-disabled:hover,.arco-cascader-search-option-disabled:hover{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-cascader-option-disabled .arco-icon-right,.arco-cascader-search-option-disabled .arco-icon-right,.arco-cascader-option-disabled:hover .arco-icon-right,.arco-cascader-search-option-disabled:hover .arco-icon-right{color:inherit}.arco-cascader-option-disabled .arco-icon-check,.arco-cascader-search-option-disabled .arco-icon-check,.arco-cascader-option-disabled:hover .arco-icon-check,.arco-cascader-search-option-disabled:hover .arco-icon-check{color:var(--color-primary-light-3)}.arco-cascader-option-active{color:var(--color-text-1);background-color:var(--color-fill-2);transition:all .2s cubic-bezier(0,0,1,1)}.arco-cascader-option-active:hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-cascader-option-active.arco-cascader-option-disabled,.arco-cascader-option-active.arco-cascader-option-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2)}.cascader-slide-enter-active,.cascader-slide-leave-active{transition:margin .3s cubic-bezier(.34,.69,.1,1)}.cascader-slide-enter-from,.cascader-slide-leave-to{margin-left:-120px}.cascader-slide-enter-to,.cascader-slide-leave-from{margin-left:0}.arco-icon-hover.arco-checkbox-icon-hover:before{width:24px;height:24px}.arco-checkbox{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding-left:5px;font-size:14px;line-height:unset;cursor:pointer}.arco-checkbox>input[type=checkbox]{position:absolute;top:0;left:0;width:0;height:0;opacity:0}.arco-checkbox>input[type=checkbox]:focus-visible+.arco-checkbox-icon-hover:before{background-color:var(--color-fill-2)}.arco-checkbox:hover .arco-checkbox-icon-hover:before{background-color:var(--color-fill-2)}.arco-checkbox-label{margin-left:8px;color:var(--color-text-1)}.arco-checkbox-icon{position:relative;box-sizing:border-box;width:14px;height:14px;background-color:var(--color-bg-2);border:2px solid var(--color-fill-3);border-radius:var(--border-radius-small);-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-checkbox-icon:after{position:absolute;top:50%;left:50%;display:block;width:6px;height:2px;background:var(--color-white);border-radius:.5px;transform:translate(-50%) translateY(-50%) scale(0);content:""}.arco-checkbox-icon-check{position:relative;display:block;width:8px;height:100%;margin:0 auto;color:var(--color-white);transform:scale(0);transform-origin:center 75%}.arco-checkbox:hover .arco-checkbox-icon{border-color:var(--color-fill-4);transition:border-color .1s cubic-bezier(0,0,1,1),transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-checked:hover .arco-checkbox-icon,.arco-checkbox-indeterminate:hover .arco-checkbox-icon{transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-checked .arco-checkbox-icon{background-color:rgb(var(--primary-6));border-color:transparent}.arco-checkbox-checked .arco-checkbox-icon-check{transform:scale(1);transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox-indeterminate .arco-checkbox-icon{background-color:rgb(var(--primary-6));border-color:transparent}.arco-checkbox-indeterminate .arco-checkbox-icon svg{transform:scale(0)}.arco-checkbox-indeterminate .arco-checkbox-icon:after{transform:translate(-50%) translateY(-50%) scale(1);transition:transform .3s cubic-bezier(.3,1.3,.3,1)}.arco-checkbox.arco-checkbox-disabled,.arco-checkbox.arco-checkbox-disabled .arco-checkbox-icon-hover{cursor:not-allowed}.arco-checkbox.arco-checkbox-disabled:hover .arco-checkbox-mask{border-color:var(--color-fill-3)}.arco-checkbox-checked:hover .arco-checkbox-icon,.arco-checkbox-indeterminate:hover .arco-checkbox-icon{border-color:transparent}.arco-checkbox-disabled .arco-checkbox-icon{background-color:var(--color-fill-2);border-color:var(--color-fill-3)}.arco-checkbox-disabled.arco-checkbox-checked .arco-checkbox-icon,.arco-checkbox-disabled.arco-checkbox-checked:hover .arco-checkbox-icon{background-color:var(--color-primary-light-3);border-color:transparent}.arco-checkbox-disabled:hover .arco-checkbox-icon-hover:before,.arco-checkbox-checked:hover .arco-checkbox-icon-hover:before,.arco-checkbox-indeterminate:hover .arco-checkbox-icon-hover:before{background-color:transparent}.arco-checkbox-disabled:hover .arco-checkbox-icon{border-color:var(--color-fill-3)}.arco-checkbox-disabled .arco-checkbox-label{color:var(--color-text-4)}.arco-checkbox-disabled .arco-checkbox-icon-check{color:var(--color-fill-3)}.arco-checkbox-group{display:inline-block}.arco-checkbox-group .arco-checkbox{margin-right:16px}.arco-checkbox-group-direction-vertical .arco-checkbox{display:flex;margin-right:0;line-height:32px}.arco-icon-hover.arco-collapse-item-icon-hover:before{width:16px;height:16px}.arco-icon-hover.arco-collapse-item-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-collapse{overflow:hidden;line-height:1.5715;border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium)}.arco-collapse-item{box-sizing:border-box;border-bottom:1px solid var(--color-border-2)}.arco-collapse-item-active>.arco-collapse-item-header{background-color:var(--color-bg-2);border-color:var(--color-neutral-3);transition:border-color 0s ease 0s}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-header-title{font-weight:500}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-expand-icon{transform:rotate(90deg)}.arco-collapse-item-active>.arco-collapse-item-header .arco-collapse-item-icon-right .arco-collapse-item-expand-icon{transform:rotate(-90deg)}.arco-collapse-item-header{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding-top:8px;padding-bottom:8px;overflow:hidden;color:var(--color-text-1);font-size:14px;line-height:24px;background-color:var(--color-bg-2);border-bottom:1px solid transparent;cursor:pointer;transition:border-color 0s ease .19s}.arco-collapse-item-header-left{padding-right:13px;padding-left:34px}.arco-collapse-item-header-right{padding-right:34px;padding-left:13px}.arco-collapse-item-header-right+.arco-collapse-item-content{padding-left:13px}.arco-collapse-item-header-disabled{color:var(--color-text-4);background-color:var(--color-bg-2);cursor:not-allowed}.arco-collapse-item-header-disabled .arco-collapse-item-header-icon{color:var(--color-text-4)}.arco-collapse-item-header-title{display:inline}.arco-collapse-item-header-extra{float:right}.arco-collapse-item .arco-collapse-item-icon-hover{position:absolute;top:50%;left:13px;text-align:center;transform:translateY(-50%)}.arco-collapse-item .arco-collapse-item-icon-right{right:13px;left:unset}.arco-collapse-item .arco-collapse-item-icon-right>.arco-collapse-item-header-icon-down{transform:rotate(-90deg)}.arco-collapse-item .arco-collapse-item-expand-icon{position:relative;display:block;color:var(--color-neutral-7);font-size:14px;vertical-align:middle;transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-collapse-item-content{position:relative;padding-right:13px;padding-left:34px;overflow:hidden;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-1)}.arco-collapse-item-content-expanded{display:block;height:auto}.arco-collapse-item-content-box{padding:8px 0}.arco-collapse-item.arco-collapse-item-disabled>.arco-collapse-item-content{color:var(--color-text-4)}.arco-collapse-item-no-icon>.arco-collapse-item-header{padding-right:13px;padding-left:13px}.arco-collapse-item:last-of-type{border-bottom:none}.arco-collapse.arco-collapse-borderless{border:none}.arco-collapse:after{display:table;clear:both;content:""}.collapse-slider-enter-from,.collapse-slider-leave-to{height:0}.collapse-slider-enter-active,.collapse-slider-leave-active{transition:height .2s cubic-bezier(.34,.69,.1,1)}.arco-color-picker{display:inline-flex;align-items:center;box-sizing:border-box;background-color:var(--color-fill-2);border-radius:2px}.arco-color-picker-preview{box-sizing:border-box;border:1px solid var(--color-border-2)}.arco-color-picker-value{margin-left:4px;color:var(--color-text-1);font-weight:400}.arco-color-picker-input{display:none}.arco-color-picker:hover{background-color:var(--color-fill-3);cursor:pointer}.arco-color-picker-size-medium{height:32px;padding:4px}.arco-color-picker-size-medium .arco-color-picker-preview{width:24px;height:24px}.arco-color-picker-size-medium .arco-color-picker-value{font-size:14px}.arco-color-picker-size-mini{height:24px;padding:4px}.arco-color-picker-size-mini .arco-color-picker-preview{width:16px;height:16px}.arco-color-picker-size-mini .arco-color-picker-value{font-size:12px}.arco-color-picker-size-small{height:28px;padding:3px 4px}.arco-color-picker-size-small .arco-color-picker-preview{width:22px;height:22px}.arco-color-picker-size-small .arco-color-picker-value{font-size:14px}.arco-color-picker-size-large{height:36px;padding:5px}.arco-color-picker-size-large .arco-color-picker-preview{width:26px;height:26px}.arco-color-picker-size-large .arco-color-picker-value{font-size:14px}.arco-color-picker.arco-color-picker-disabled{background-color:var(--color-fill-2);cursor:not-allowed}.arco-color-picker.arco-color-picker-disabled .arco-color-picker-value{color:var(--color-text-4)}.arco-color-picker-panel{width:260px;background-color:var(--color-bg-1);border-radius:2px;box-shadow:0 8px 20px #0000001a}.arco-color-picker-panel .arco-color-picker-palette{position:relative;box-sizing:border-box;width:100%;height:178px;overflow:hidden;background-image:linear-gradient(0deg,#000000,transparent),linear-gradient(90deg,#fff,#fff0);border-top:1px solid var(--color-border-2);border-right:1px solid var(--color-border-2);border-left:1px solid var(--color-border-2);cursor:pointer}.arco-color-picker-panel .arco-color-picker-palette .arco-color-picker-handler{position:absolute;box-sizing:border-box;width:16px;height:16px;background-color:transparent;border:2px solid var(--color-bg-white);border-radius:50%;transform:translate(-50%,-50%)}.arco-color-picker-panel .arco-color-picker-panel-control{padding:12px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-control-wrapper{display:flex;align-items:center}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-control-wrapper .arco-color-picker-preview{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:40px;height:40px;margin-left:auto;color:#fff;font-size:20px;border:1px solid var(--color-border-2);border-radius:4px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-control-wrapper .arco-color-picker-control-bar-alpha{margin-top:12px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper{display:flex;margin-top:12px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-color-picker-group-wrapper{display:flex;flex:1;margin-left:12px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-select-view,.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-input-wrapper{margin-right:0;padding:0 6px}.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-input-suffix,.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-input-prefix,.arco-color-picker-panel .arco-color-picker-panel-control .arco-color-picker-input-wrapper .arco-select-view-suffix{padding:0;font-size:12px}.arco-color-picker-panel .arco-color-picker-panel-colors{padding:12px;border-top:1px solid var(--color-fill-3)}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-section:not(:first-child){margin-top:12px}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-text{color:var(--color-text-1);font-weight:400;font-size:12px}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-empty{margin:12px 0;color:var(--color-text-3);font-size:12px}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-wrapper{margin-top:8px}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-colors-list{display:flex;flex-wrap:wrap;margin:-8px -4px 0}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-color-block{width:16px;height:16px;margin:6px 3px 0;overflow:hidden;background-image:conic-gradient(rgba(0,0,0,.06) 0 25%,transparent 0 50%,rgba(0,0,0,.06) 0 75%,transparent 0);background-size:8px 8px;border-radius:2px;cursor:pointer;transition:transform ease-out 60ms}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-color-block .arco-color-picker-block{width:100%;height:100%}.arco-color-picker-panel .arco-color-picker-panel-colors .arco-color-picker-color-block:hover{transform:scale(1.1)}.arco-color-picker-panel .arco-color-picker-control-bar-bg{background-image:conic-gradient(rgba(0,0,0,.06) 0 25%,transparent 0 50%,rgba(0,0,0,.06) 0 75%,transparent 0);background-size:8px 8px;border-radius:10px}.arco-color-picker-panel .arco-color-picker-control-bar{position:relative;box-sizing:border-box;width:182px;height:14px;border:1px solid var(--color-border-2);border-radius:10px;cursor:pointer}.arco-color-picker-panel .arco-color-picker-control-bar .arco-color-picker-handler{position:absolute;top:-2px;box-sizing:border-box;width:16px;height:16px;background-color:var(--color-bg-white);border:1px solid var(--color-border-2);border-radius:50%;transform:translate(-50%)}.arco-color-picker-panel .arco-color-picker-control-bar .arco-color-picker-handler:before{display:block;width:100%;height:100%;background:var(--color-bg-white);border-radius:50%;content:""}.arco-color-picker-panel .arco-color-picker-control-bar .arco-color-picker-handler:after{position:absolute;top:50%;left:50%;width:8px;height:8px;background:currentColor;border-radius:50%;transform:translate(-50%,-50%);content:""}.arco-color-picker-panel .arco-color-picker-control-bar-hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.arco-color-picker-panel .arco-color-picker-select{width:58px}.arco-color-picker-panel .arco-color-picker-input-alpha{flex:0 0 auto;width:52px}.arco-color-picker-panel .arco-color-picker-input-hex .arco-input{padding-left:4px}.arco-color-picker-panel.arco-color-picker-panel-disabled .arco-color-picker-palette,.arco-color-picker-panel.arco-color-picker-panel-disabled .arco-color-picker-control-bar,.arco-color-picker-panel.arco-color-picker-panel-disabled .arco-color-picker-color-block,.arco-color-picker-panel.arco-color-picker-panel-disabled .arco-color-picker-preview{cursor:not-allowed;opacity:.8}.arco-color-picker-select-popup .arco-select-option{font-size:12px!important;line-height:24px!important}.arco-comment{display:flex;flex-wrap:nowrap;font-size:14px;line-height:1.5715}.arco-comment:not(:first-of-type),.arco-comment-inner-comment{margin-top:20px}.arco-comment-inner{flex:1}.arco-comment-avatar{flex-shrink:0;margin-right:12px;cursor:pointer}.arco-comment-avatar>img{width:32px;height:32px;border-radius:var(--border-radius-circle)}.arco-comment-author{margin-right:8px;color:var(--color-text-2);font-size:14px}.arco-comment-datetime{color:var(--color-text-3);font-size:12px}.arco-comment-content{color:var(--color-text-1)}.arco-comment-title-align-right{display:flex;justify-content:space-between}.arco-comment-actions{margin-top:8px;color:var(--color-text-2);font-size:14px}.arco-comment-actions>*:not(:last-child){margin-right:8px}.arco-comment-actions-align-right{display:flex;justify-content:flex-end}.arco-picker-container,.arco-picker-range-container{box-sizing:border-box;min-height:60px;overflow:hidden;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px #0000001a}.arco-picker-container-shortcuts-placement-left,.arco-picker-range-container-shortcuts-placement-left,.arco-picker-container-shortcuts-placement-right,.arco-picker-range-container-shortcuts-placement-right{display:flex;align-items:flex-start}.arco-picker-container-shortcuts-placement-left>.arco-picker-shortcuts,.arco-picker-range-container-shortcuts-placement-left>.arco-picker-shortcuts,.arco-picker-container-shortcuts-placement-right>.arco-picker-shortcuts,.arco-picker-range-container-shortcuts-placement-right>.arco-picker-shortcuts{display:flex;flex-direction:column;box-sizing:border-box;padding:5px 8px;overflow-x:hidden;overflow-y:auto}.arco-picker-container-shortcuts-placement-left>.arco-picker-shortcuts>*,.arco-picker-range-container-shortcuts-placement-left>.arco-picker-shortcuts>*,.arco-picker-container-shortcuts-placement-right>.arco-picker-shortcuts>*,.arco-picker-range-container-shortcuts-placement-right>.arco-picker-shortcuts>*{margin:5px 0}.arco-picker-container-shortcuts-placement-left .arco-picker-panel-wrapper,.arco-picker-range-container-shortcuts-placement-left .arco-picker-panel-wrapper,.arco-picker-container-shortcuts-placement-left .arco-picker-range-panel-wrapper,.arco-picker-range-container-shortcuts-placement-left .arco-picker-range-panel-wrapper{border-left:1px solid var(--color-neutral-3)}.arco-picker-container-shortcuts-placement-right .arco-picker-panel-wrapper,.arco-picker-range-container-shortcuts-placement-right .arco-picker-panel-wrapper,.arco-picker-container-shortcuts-placement-right .arco-picker-range-panel-wrapper,.arco-picker-range-container-shortcuts-placement-right .arco-picker-range-panel-wrapper{border-right:1px solid var(--color-neutral-3)}.arco-picker-container-panel-only,.arco-picker-range-container-panel-only{box-shadow:none}.arco-picker-container-panel-only .arco-panel-date-inner,.arco-picker-range-container-panel-only .arco-panel-date-inner,.arco-picker-range-container-panel-only .arco-panel-date{width:100%}.arco-picker-header{display:flex;padding:8px 16px;border-bottom:1px solid var(--color-neutral-3)}.arco-picker-header-title{flex:1;color:var(--color-text-1);font-size:14px;line-height:24px;text-align:center}.arco-picker-header-icon{width:24px;height:24px;margin-right:2px;margin-left:2px;color:var(--color-text-2);font-size:12px;line-height:24px;text-align:center;background-color:var(--color-bg-popup);border-radius:50%;transition:all .1s cubic-bezier(0,0,1,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-picker-header-icon:not(.arco-picker-header-icon-hidden){cursor:pointer}.arco-picker-header-icon:not(.arco-picker-header-icon-hidden):hover{background-color:var(--color-fill-3)}.arco-picker-header-label{padding:2px;border-radius:2px;cursor:pointer;transition:all .1s}.arco-picker-header-label:hover{background-color:var(--color-fill-3)}.arco-picker-body{padding:14px 16px}.arco-picker-week-list{display:flex;box-sizing:border-box;width:100%;padding:14px 16px 0}.arco-picker-week-list-item{flex:1;height:32px;padding:0;color:#7d7d7f;font-weight:400;line-height:32px;text-align:center}.arco-picker-row{display:flex;padding:2px 0}.arco-picker-cell{flex:1}.arco-picker-cell .arco-picker-date{display:flex;justify-content:center;box-sizing:border-box;width:100%;height:100%;padding:4px 0;cursor:pointer}.arco-picker-date-value{min-width:24px;height:24px;color:var(--color-text-4);font-size:14px;line-height:24px;text-align:center;border-radius:var(--border-radius-circle);cursor:pointer}.arco-picker-cell-in-view .arco-picker-date-value{color:var(--color-text-1);font-weight:500}.arco-picker-cell-selected .arco-picker-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-picker-cell-in-view:not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end):not(.arco-picker-cell-disabled):not(.arco-picker-cell-week) .arco-picker-date-value:hover{color:var(--color-text-1);background-color:var(--color-fill-3)}.arco-picker-cell-today{position:relative}.arco-picker-cell-today:after{position:absolute;bottom:-2px;left:50%;display:block;width:4px;height:4px;margin-left:-2px;background-color:rgb(var(--primary-6));border-radius:50%;content:""}.arco-picker-cell-in-range .arco-picker-date{background-color:var(--color-primary-light-1)}.arco-picker-cell-range-start .arco-picker-date{border-top-left-radius:24px;border-bottom-left-radius:24px}.arco-picker-cell-range-end .arco-picker-date{border-top-right-radius:24px;border-bottom-right-radius:24px}.arco-picker-cell-in-range-near-hover .arco-picker-date{border-radius:0}.arco-picker-cell-range-start .arco-picker-date-value,.arco-picker-cell-range-end .arco-picker-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));border-radius:var(--border-radius-circle)}.arco-picker-cell-hover-in-range .arco-picker-date{background-color:var(--color-primary-light-1)}.arco-picker-cell-hover-range-start .arco-picker-date{border-radius:24px 0 0 24px}.arco-picker-cell-hover-range-end .arco-picker-date{border-radius:0 24px 24px 0}.arco-picker-cell-hover-range-start .arco-picker-date-value,.arco-picker-cell-hover-range-end .arco-picker-date-value{color:var(--color-text-1);background-color:var(--color-primary-light-2);border-radius:50%}.arco-picker-cell-disabled .arco-picker-date{background-color:var(--color-fill-1);cursor:not-allowed}.arco-picker-cell-disabled .arco-picker-date-value{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-picker-footer{width:-moz-min-content;width:min-content;min-width:100%}.arco-picker-footer-btn-wrapper{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding:3px 8px;border-top:1px solid var(--color-neutral-3)}.arco-picker-footer-btn-wrapper :only-child{margin-left:auto}.arco-picker-footer-extra-wrapper{box-sizing:border-box;padding:8px 24px;color:var(--color-text-1);font-size:12px;border-top:1px solid var(--color-neutral-3)}.arco-picker-footer-now-wrapper{box-sizing:border-box;height:36px;line-height:36px;text-align:center;border-top:1px solid var(--color-neutral-3)}.arco-picker-btn-confirm{margin:5px 0}.arco-picker-shortcuts{flex:1}.arco-picker-shortcuts>*{margin:5px 10px 5px 0}.arco-panel-date{display:flex;box-sizing:border-box}.arco-panel-date-inner{width:265px}.arco-panel-date-inner .arco-picker-body{padding-top:0}.arco-panel-date-timepicker{display:flex;flex-direction:column;border-left:1px solid var(--color-neutral-3)}.arco-panel-date-timepicker-title{width:100%;height:40px;color:var(--color-text-1);font-weight:400;font-size:14px;line-height:40px;text-align:center;border-bottom:1px solid var(--color-neutral-3)}.arco-panel-date-timepicker .arco-timepicker{height:276px;padding:0 6px;overflow:hidden}.arco-panel-date-timepicker .arco-timepicker-column{box-sizing:border-box;width:auto;height:100%;padding:0 4px}.arco-panel-date-timepicker .arco-timepicker-column::-webkit-scrollbar{width:0}.arco-panel-date-timepicker .arco-timepicker-column:not(:last-child){border-right:0}.arco-panel-date-timepicker .arco-timepicker ul:after{height:244px}.arco-panel-date-timepicker .arco-timepicker-cell{width:36px}.arco-panel-date-timepicker .arco-timepicker-cell-inner{padding-left:10px}.arco-panel-date-footer{border-right:1px solid var(--color-neutral-3)}.arco-panel-date-with-view-tabs{flex-direction:column;min-width:265px}.arco-panel-date-with-view-tabs .arco-panel-date-timepicker .arco-timepicker-column{flex:1}.arco-panel-date-with-view-tabs .arco-panel-date-timepicker .arco-timepicker-column::-webkit-scrollbar{width:0}.arco-panel-date-with-view-tabs .arco-panel-date-timepicker .arco-timepicker-cell{width:100%;text-align:center}.arco-panel-date-with-view-tabs .arco-panel-date-timepicker .arco-timepicker-cell-inner{padding-left:0}.arco-panel-date-view-tabs{display:flex;border-top:1px solid var(--color-neutral-3)}.arco-panel-date-view-tab-pane{flex:1;height:50px;color:var(--color-text-4);font-size:14px;line-height:50px;text-align:center;border-right:1px solid var(--color-neutral-3);cursor:pointer}.arco-panel-date-view-tab-pane:last-child{border-right:none}.arco-panel-date-view-tab-pane-text{margin-left:8px}.arco-panel-date-view-tab-pane-active{color:var(--color-text-1)}.arco-panel-month,.arco-panel-quarter,.arco-panel-year{box-sizing:border-box;width:265px}.arco-panel-month .arco-picker-date,.arco-panel-quarter .arco-picker-date,.arco-panel-year .arco-picker-date{padding:4px}.arco-panel-month .arco-picker-date-value,.arco-panel-quarter .arco-picker-date-value,.arco-panel-year .arco-picker-date-value{width:100%;border-radius:24px}.arco-panel-month .arco-picker-cell:not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end):not(.arco-picker-cell-disabled):not(.arco-picker-cell-week) .arco-picker-date-value:hover,.arco-panel-quarter .arco-picker-cell:not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end):not(.arco-picker-cell-disabled):not(.arco-picker-cell-week) .arco-picker-date-value:hover,.arco-panel-year .arco-picker-cell:not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end):not(.arco-picker-cell-disabled):not(.arco-picker-cell-week) .arco-picker-date-value:hover{border-radius:24px}.arco-panel-year{box-sizing:border-box;width:265px}.arco-panel-week{box-sizing:border-box}.arco-panel-week-wrapper{display:flex}.arco-panel-week-inner{width:298px}.arco-panel-week-inner .arco-picker-body{padding-top:0}.arco-panel-week .arco-picker-row-week{cursor:pointer}.arco-panel-week .arco-picker-row-week .arco-picker-date-value{width:100%;border-radius:0}.arco-panel-week .arco-picker-cell .arco-picker-date{border-radius:0}.arco-panel-week .arco-picker-cell:nth-child(2) .arco-picker-date{padding-left:4px;border-top-left-radius:24px;border-bottom-left-radius:24px}.arco-panel-week .arco-picker-cell:nth-child(2) .arco-picker-date .arco-picker-date-value{border-top-left-radius:24px;border-bottom-left-radius:24px}.arco-panel-week .arco-picker-cell:nth-child(8) .arco-picker-date{padding-right:4px;border-top-right-radius:24px;border-bottom-right-radius:24px}.arco-panel-week .arco-picker-cell:nth-child(8) .arco-picker-date .arco-picker-date-value{border-top-right-radius:24px;border-bottom-right-radius:24px}.arco-panel-week .arco-picker-row-week:hover .arco-picker-cell:not(.arco-picker-cell-week):not(.arco-picker-cell-selected):not(.arco-picker-cell-range-start):not(.arco-picker-cell-range-end) .arco-picker-date-value{background-color:var(--color-fill-3)}.arco-panel-quarter{box-sizing:border-box;width:265px}.arco-picker-range-wrapper{display:flex}.arco-datepicker-shortcuts-wrapper{box-sizing:border-box;width:106px;height:100%;max-height:300px;margin:10px 0 0;padding:0;overflow-y:auto;list-style:none}.arco-datepicker-shortcuts-wrapper>li{box-sizing:border-box;width:100%;padding:6px 16px;cursor:pointer}.arco-datepicker-shortcuts-wrapper>li:hover{color:rgb(var(--primary-6))}.arco-descriptions-table{width:100%;border-collapse:collapse}.arco-descriptions-table-layout-fixed table{table-layout:fixed}.arco-descriptions-title{margin-bottom:16px;color:var(--color-text-1);font-weight:500;font-size:16px;line-height:1.5715}.arco-descriptions-item,.arco-descriptions-item-label,.arco-descriptions-item-value{box-sizing:border-box;font-size:14px;line-height:1.5715;text-align:left}.arco-descriptions-table-layout-fixed .arco-descriptions-item-label{width:auto}.arco-descriptions-item-label-block{width:1px;padding:0 4px 12px 0;color:var(--color-text-3);font-weight:500;white-space:nowrap}.arco-descriptions-item-value-block{padding:0 4px 12px 0;color:var(--color-text-1);font-weight:400;white-space:pre-wrap;word-break:break-word}.arco-descriptions-item-label-inline,.arco-descriptions-item-value-inline{box-sizing:border-box;font-size:14px;line-height:1.5715;text-align:left}.arco-descriptions-item-label-inline{margin-bottom:2px;color:var(--color-text-3);font-weight:500}.arco-descriptions-item-value-inline{color:var(--color-text-1);font-weight:400}.arco-descriptions-layout-inline-horizontal .arco-descriptions-item-label-inline{margin-right:4px}.arco-descriptions-layout-inline-horizontal .arco-descriptions-item-label-inline,.arco-descriptions-layout-inline-horizontal .arco-descriptions-item-value-inline{display:inline-block;margin-bottom:0}.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:12px 20px}.arco-descriptions-border .arco-descriptions-body{overflow:hidden;border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium)}.arco-descriptions-border .arco-descriptions-row:not(:last-child){border-bottom:1px solid var(--color-neutral-3)}.arco-descriptions-border .arco-descriptions-item,.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-border .arco-descriptions-item-value-block{padding:7px 20px;border-right:1px solid var(--color-neutral-3)}.arco-descriptions-border .arco-descriptions-item-label-block{background-color:var(--color-fill-1)}.arco-descriptions-border .arco-descriptions-item-value-block:last-child{border-right:none}.arco-descriptions-border .arco-descriptions-item:last-child{border-right:none}.arco-descriptions-border.arco-descriptions-layout-vertical .arco-descriptions-item-label-block:last-child{border-right:none}.arco-descriptions-layout-vertical:not(.arco-descriptions-border) .arco-descriptions-item-value-block:first-child{padding-left:0}.arco-descriptions-size-mini .arco-descriptions-title{margin-bottom:6px}.arco-descriptions-size-mini .arco-descriptions-item-label-block,.arco-descriptions-size-mini .arco-descriptions-item-value-block{padding-right:20px;padding-bottom:2px;font-size:12px}.arco-descriptions-size-mini.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-size-mini.arco-descriptions-border .arco-descriptions-item-value-block{padding:3px 20px}.arco-descriptions-size-mini.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:8px 20px}.arco-descriptions-size-small .arco-descriptions-title{margin-bottom:8px}.arco-descriptions-size-small .arco-descriptions-item-label-block,.arco-descriptions-size-small .arco-descriptions-item-value-block{padding-right:20px;padding-bottom:4px;font-size:14px}.arco-descriptions-size-small.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-size-small.arco-descriptions-border .arco-descriptions-item-value-block{padding:3px 20px}.arco-descriptions-size-small.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:8px 20px}.arco-descriptions-size-medium .arco-descriptions-title{margin-bottom:12px}.arco-descriptions-size-medium .arco-descriptions-item-label-block,.arco-descriptions-size-medium .arco-descriptions-item-value-block{padding-right:20px;padding-bottom:8px;font-size:14px}.arco-descriptions-size-medium.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-size-medium.arco-descriptions-border .arco-descriptions-item-value-block{padding:5px 20px}.arco-descriptions-size-medium.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:10px 20px}.arco-descriptions-size-large .arco-descriptions-title{margin-bottom:20px}.arco-descriptions-size-large .arco-descriptions-item-label-block,.arco-descriptions-size-large .arco-descriptions-item-value-block{padding-right:20px;padding-bottom:16px;font-size:14px}.arco-descriptions-size-large.arco-descriptions-border .arco-descriptions-item-label-block,.arco-descriptions-size-large.arco-descriptions-border .arco-descriptions-item-value-block{padding:9px 20px}.arco-descriptions-size-large.arco-descriptions-border.arco-descriptions-layout-inline-vertical .arco-descriptions-item{padding:14px 20px}.arco-divider-horizontal{position:relative;clear:both;width:100%;min-width:100%;max-width:100%;margin:20px 0;border-bottom:1px solid var(--color-neutral-3)}.arco-divider-horizontal.arco-divider-with-text{margin:20px 0}.arco-divider-vertical{display:inline-block;min-width:1px;max-width:1px;min-height:1em;margin:0 12px;vertical-align:middle;border-left:1px solid var(--color-neutral-3)}.arco-divider-text{position:absolute;top:50%;box-sizing:border-box;padding:0 16px;color:var(--color-text-1);font-weight:500;font-size:14px;line-height:2;background:var(--color-bg-2);transform:translateY(-50%)}.arco-divider-text-center{left:50%;transform:translate(-50%,-50%)}.arco-divider-text-left{left:24px}.arco-divider-text-right{right:24px}.arco-drawer-container{position:fixed;inset:0;z-index:1001}.arco-drawer-mask{position:absolute;inset:0;background-color:var(--color-mask-bg)}.arco-drawer{position:absolute;display:flex;flex-direction:column;width:100%;height:100%;overflow:auto;line-height:1.5715;background-color:var(--color-bg-3)}.arco-drawer-header{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;width:100%;height:48px;padding:0 16px;border-bottom:1px solid var(--color-neutral-3)}.arco-drawer-header .arco-drawer-title{margin-right:auto;color:var(--color-text-1);font-weight:500;font-size:16px;text-align:left}.arco-drawer-header .arco-drawer-close-btn{margin-left:8px;color:var(--color-text-1);font-size:12px;cursor:pointer}.arco-drawer-footer{flex-shrink:0;box-sizing:border-box;padding:16px;text-align:right;border-top:1px solid var(--color-neutral-3)}.arco-drawer-footer>.arco-btn{margin-left:12px}.arco-drawer-body{position:relative;flex:1;box-sizing:border-box;height:100%;padding:12px 16px;overflow:auto;color:var(--color-text-1)}.fade-drawer-enter-from,.fade-drawer-appear-from{opacity:0}.fade-drawer-enter-to,.fade-drawer-appear-to{opacity:1}.fade-drawer-enter-active,.fade-drawer-appear-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1)}.fade-drawer-leave-from{opacity:1}.fade-drawer-leave-to{opacity:0}.fade-drawer-leave-active{transition:opacity .3s cubic-bezier(.34,.69,.1,1)}.slide-left-drawer-enter-from,.slide-left-drawer-appear-from{transform:translate(-100%)}.slide-left-drawer-enter-to,.slide-left-drawer-appear-to{transform:translate(0)}.slide-left-drawer-enter-active,.slide-left-drawer-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-left-drawer-leave-from{transform:translate(0)}.slide-left-drawer-leave-to{transform:translate(-100%)}.slide-left-drawer-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-right-drawer-enter-from,.slide-right-drawer-appear-from{transform:translate(100%)}.slide-right-drawer-enter-to,.slide-right-drawer-appear-to{transform:translate(0)}.slide-right-drawer-enter-active,.slide-right-drawer-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-right-drawer-leave-from{transform:translate(0)}.slide-right-drawer-leave-to{transform:translate(100%)}.slide-right-drawer-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-top-drawer-enter,.slide-top-drawer-appear,.slide-top-drawer-enter-from,.slide-top-drawer-appear-from{transform:translateY(-100%)}.slide-top-drawer-enter-to,.slide-top-drawer-appear-to{transform:translateY(0)}.slide-top-drawer-enter-active,.slide-top-drawer-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-top-drawer-leave-from{transform:translateY(0)}.slide-top-drawer-leave-to{transform:translateY(-100%)}.slide-top-drawer-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-bottom-drawer-enter-from,.slide-bottom-drawer-appear-from{transform:translateY(100%)}.slide-bottom-drawer-enter-to,.slide-bottom-drawer-appear-to{transform:translateY(0)}.slide-bottom-drawer-enter-active,.slide-bottom-drawer-appear-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.slide-bottom-drawer-leave-from{transform:translateY(0)}.slide-bottom-drawer-leave-to{transform:translateY(100%)}.slide-bottom-drawer-leave-active{transition:transform .3s cubic-bezier(.34,.69,.1,1)}.arco-dropdown{box-sizing:border-box;padding:4px 0;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-dropdown-list{margin-top:0;margin-bottom:0;padding-left:0;list-style:none}.arco-dropdown-list-wrapper{max-height:200px;overflow-y:auto}.arco-dropdown-option{position:relative;z-index:1;display:flex;align-items:center;box-sizing:border-box;width:100%;padding:0 12px;color:var(--color-text-1);font-size:14px;line-height:36px;text-align:left;background-color:transparent;cursor:pointer}.arco-dropdown-option-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-dropdown-option-has-suffix{justify-content:space-between}.arco-dropdown-option-active,.arco-dropdown-option:not(.arco-dropdown-option-disabled):hover{color:var(--color-text-1);background-color:var(--color-fill-2);transition:all .1s cubic-bezier(0,0,1,1)}.arco-dropdown-option-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-dropdown-option-icon{display:inline-flex;margin-right:8px}.arco-dropdown-option-suffix{margin-left:12px}.arco-dropdown-group:first-child .arco-dropdown-group-title{margin-top:8px}.arco-dropdown-group-title{box-sizing:border-box;width:100%;margin-top:8px;padding:0 12px;color:var(--color-text-3);font-size:12px;line-height:20px;cursor:default;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-dropdown-submenu{margin-top:-4px}.arco-dropdown.arco-dropdown-has-footer{padding-bottom:0}.arco-dropdown-footer{border-top:1px solid var(--color-fill-3)}.arco-empty{box-sizing:border-box;width:100%;padding:10px 0;text-align:center}.arco-empty-image{margin-bottom:4px;color:rgb(var(--gray-5));font-size:48px;line-height:1}.arco-empty-image img{height:80px}.arco-empty .arco-empty-description{color:rgb(var(--gray-5));font-size:14px}.arco-form-item-status-validating .arco-input-wrapper:not(.arco-input-disabled),.arco-form-item-status-validating .arco-textarea-wrapper:not(.arco-textarea-disabled){background-color:var(--color-fill-2);border-color:transparent}.arco-form-item-status-validating .arco-input-wrapper:not(.arco-input-disabled):hover,.arco-form-item-status-validating .arco-textarea-wrapper:not(.arco-textarea-disabled):hover{background-color:var(--color-fill-3);border-color:transparent}.arco-form-item-status-validating .arco-input-wrapper:not(.arco-input-disabled).arco-input-focus,.arco-form-item-status-validating .arco-textarea-wrapper:not(.arco-textarea-disabled).arco-textarea-focus{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-form-item-status-validating .arco-select-view:not(.arco-select-view-disabled),.arco-form-item-status-validating .arco-input-tag:not(.arco-input-tag-disabled){background-color:var(--color-fill-2);border-color:transparent}.arco-form-item-status-validating .arco-select-view:not(.arco-select-view-disabled):hover,.arco-form-item-status-validating .arco-input-tag:not(.arco-input-tag-disabled):hover{background-color:var(--color-fill-3);border-color:transparent}.arco-form-item-status-validating .arco-select-view:not(.arco-select-view-disabled).arco-select-view-focus,.arco-form-item-status-validating .arco-input-tag:not(.arco-input-tag-disabled).arco-input-tag-focus{background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-form-item-status-validating .arco-picker:not(.arco-picker-disabled){border-color:transparent;background-color:var(--color-fill-2)}.arco-form-item-status-validating .arco-picker:not(.arco-picker-disabled):hover{border-color:transparent;background-color:var(--color-fill-3)}.arco-form-item-status-validating .arco-picker-focused:not(.arco-picker-disabled),.arco-form-item-status-validating .arco-picker-focused:not(.arco-picker-disabled):hover{border-color:rgb(var(--primary-6));background-color:var(--color-bg-2);box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-form-item-status-validating .arco-form-item-message-help,.arco-form-item-status-validating .arco-form-item-feedback{color:rgb(var(--primary-6))}.arco-form-item-status-success .arco-input-wrapper:not(.arco-input-disabled),.arco-form-item-status-success .arco-textarea-wrapper:not(.arco-textarea-disabled){background-color:var(--color-fill-2);border-color:transparent}.arco-form-item-status-success .arco-input-wrapper:not(.arco-input-disabled):hover,.arco-form-item-status-success .arco-textarea-wrapper:not(.arco-textarea-disabled):hover{background-color:var(--color-fill-3);border-color:transparent}.arco-form-item-status-success .arco-input-wrapper:not(.arco-input-disabled).arco-input-focus,.arco-form-item-status-success .arco-textarea-wrapper:not(.arco-textarea-disabled).arco-textarea-focus{background-color:var(--color-bg-2);border-color:rgb(var(--success-6));box-shadow:0 0 0 0 var(--color-success-light-2)}.arco-form-item-status-success .arco-select-view:not(.arco-select-view-disabled),.arco-form-item-status-success .arco-input-tag:not(.arco-input-tag-disabled){background-color:var(--color-fill-2);border-color:transparent}.arco-form-item-status-success .arco-select-view:not(.arco-select-view-disabled):hover,.arco-form-item-status-success .arco-input-tag:not(.arco-input-tag-disabled):hover{background-color:var(--color-fill-3);border-color:transparent}.arco-form-item-status-success .arco-select-view:not(.arco-select-view-disabled).arco-select-view-focus,.arco-form-item-status-success .arco-input-tag:not(.arco-input-tag-disabled).arco-input-tag-focus{background-color:var(--color-bg-2);border-color:rgb(var(--success-6));box-shadow:0 0 0 0 var(--color-success-light-2)}.arco-form-item-status-success .arco-picker:not(.arco-picker-disabled){border-color:transparent;background-color:var(--color-fill-2)}.arco-form-item-status-success .arco-picker:not(.arco-picker-disabled):hover{border-color:transparent;background-color:var(--color-fill-3)}.arco-form-item-status-success .arco-picker-focused:not(.arco-picker-disabled),.arco-form-item-status-success .arco-picker-focused:not(.arco-picker-disabled):hover{border-color:rgb(var(--success-6));background-color:var(--color-bg-2);box-shadow:0 0 0 0 var(--color-success-light-2)}.arco-form-item-status-success .arco-form-item-message-help,.arco-form-item-status-success .arco-form-item-feedback{color:rgb(var(--success-6))}.arco-form-item-status-warning .arco-input-wrapper:not(.arco-input-disabled),.arco-form-item-status-warning .arco-textarea-wrapper:not(.arco-textarea-disabled){background-color:var(--color-warning-light-1);border-color:transparent}.arco-form-item-status-warning .arco-input-wrapper:not(.arco-input-disabled):hover,.arco-form-item-status-warning .arco-textarea-wrapper:not(.arco-textarea-disabled):hover{background-color:var(--color-warning-light-2);border-color:transparent}.arco-form-item-status-warning .arco-input-wrapper:not(.arco-input-disabled).arco-input-focus,.arco-form-item-status-warning .arco-textarea-wrapper:not(.arco-textarea-disabled).arco-textarea-focus{background-color:var(--color-bg-2);border-color:rgb(var(--warning-6));box-shadow:0 0 0 0 var(--color-warning-light-2)}.arco-form-item-status-warning .arco-select-view:not(.arco-select-view-disabled),.arco-form-item-status-warning .arco-input-tag:not(.arco-input-tag-disabled){background-color:var(--color-warning-light-1);border-color:transparent}.arco-form-item-status-warning .arco-select-view:not(.arco-select-view-disabled):hover,.arco-form-item-status-warning .arco-input-tag:not(.arco-input-tag-disabled):hover{background-color:var(--color-warning-light-2);border-color:transparent}.arco-form-item-status-warning .arco-select-view:not(.arco-select-view-disabled).arco-select-view-focus,.arco-form-item-status-warning .arco-input-tag:not(.arco-input-tag-disabled).arco-input-tag-focus{background-color:var(--color-bg-2);border-color:rgb(var(--warning-6));box-shadow:0 0 0 0 var(--color-warning-light-2)}.arco-form-item-status-warning .arco-picker:not(.arco-picker-disabled){border-color:transparent;background-color:var(--color-warning-light-1)}.arco-form-item-status-warning .arco-picker:not(.arco-picker-disabled):hover{border-color:transparent;background-color:var(--color-warning-light-2)}.arco-form-item-status-warning .arco-picker-focused:not(.arco-picker-disabled),.arco-form-item-status-warning .arco-picker-focused:not(.arco-picker-disabled):hover{border-color:rgb(var(--warning-6));background-color:var(--color-bg-2);box-shadow:0 0 0 0 var(--color-warning-light-2)}.arco-form-item-status-warning .arco-form-item-message-help,.arco-form-item-status-warning .arco-form-item-feedback{color:rgb(var(--warning-6))}.arco-form-item-status-error .arco-input-wrapper:not(.arco-input-disabled),.arco-form-item-status-error .arco-textarea-wrapper:not(.arco-textarea-disabled){background-color:var(--color-danger-light-1);border-color:transparent}.arco-form-item-status-error .arco-input-wrapper:not(.arco-input-disabled):hover,.arco-form-item-status-error .arco-textarea-wrapper:not(.arco-textarea-disabled):hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-form-item-status-error .arco-input-wrapper:not(.arco-input-disabled).arco-input-focus,.arco-form-item-status-error .arco-textarea-wrapper:not(.arco-textarea-disabled).arco-textarea-focus{background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-form-item-status-error .arco-select-view:not(.arco-select-view-disabled),.arco-form-item-status-error .arco-input-tag:not(.arco-input-tag-disabled){background-color:var(--color-danger-light-1);border-color:transparent}.arco-form-item-status-error .arco-select-view:not(.arco-select-view-disabled):hover,.arco-form-item-status-error .arco-input-tag:not(.arco-input-tag-disabled):hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-form-item-status-error .arco-select-view:not(.arco-select-view-disabled).arco-select-view-focus,.arco-form-item-status-error .arco-input-tag:not(.arco-input-tag-disabled).arco-input-tag-focus{background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-form-item-status-error .arco-picker:not(.arco-picker-disabled){border-color:transparent;background-color:var(--color-danger-light-1)}.arco-form-item-status-error .arco-picker:not(.arco-picker-disabled):hover{border-color:transparent;background-color:var(--color-danger-light-2)}.arco-form-item-status-error .arco-picker-focused:not(.arco-picker-disabled),.arco-form-item-status-error .arco-picker-focused:not(.arco-picker-disabled):hover{border-color:rgb(var(--danger-6));background-color:var(--color-bg-2);box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-form-item-status-error .arco-form-item-message-help,.arco-form-item-status-error .arco-form-item-feedback{color:rgb(var(--danger-6))}.arco-form-item-control-children{position:relative}.arco-form-item-feedback{position:absolute;top:50%;right:9px;font-size:14px;transform:translateY(-50%)}.arco-form-item-feedback .arco-icon-loading{font-size:12px}.arco-form-item-has-feedback .arco-input,.arco-form-item-has-feedback .arco-input-inner-wrapper,.arco-form-item-has-feedback .arco-textarea{padding-right:28px}.arco-form-item-has-feedback .arco-input-number-mode-embed .arco-input-number-step-layer{right:24px}.arco-form-item-has-feedback .arco-select.arco-select-multiple .arco-select-view,.arco-form-item-has-feedback .arco-select.arco-select-single .arco-select-view{padding-right:28px}.arco-form-item-has-feedback .arco-select.arco-select-multiple .arco-select-suffix{padding-right:0}.arco-form-item-has-feedback .arco-cascader.arco-cascader-multiple .arco-cascader-view,.arco-form-item-has-feedback .arco-cascader.arco-cascader-single .arco-cascader-view{padding-right:28px}.arco-form-item-has-feedback .arco-cascader.arco-cascader-multiple .arco-cascader-suffix{padding-right:0}.arco-form-item-has-feedback .arco-tree-select.arco-tree-select-multiple .arco-tree-select-view,.arco-form-item-has-feedback .arco-tree-select.arco-tree-select-single .arco-tree-select-view{padding-right:28px}.arco-form-item-has-feedback .arco-tree-select.arco-tree-select-multiple .arco-tree-select-suffix{padding-right:0}.arco-form-item-has-feedback .arco-picker{padding-right:28px}.arco-form-item-has-feedback .arco-picker-suffix .arco-picker-suffix-icon,.arco-form-item-has-feedback .arco-picker-suffix .arco-picker-clear-icon{margin-right:0;margin-left:0}.arco-form{display:flex;flex-direction:column;width:100%}.arco-form-layout-inline{flex-direction:row;flex-wrap:wrap}.arco-form-layout-inline .arco-form-item{width:auto;margin-bottom:8px}.arco-form-auto-label-width .arco-form-item-label-col>.arco-form-item-label{white-space:nowrap}.arco-form-item{display:flex;align-items:flex-start;justify-content:flex-start;width:100%;margin-bottom:20px}.arco-form-item-layout-vertical{display:block}.arco-form-item-layout-vertical>.arco-form-item-label-col{justify-content:flex-start;margin-bottom:8px;padding:0;line-height:1.5715;white-space:normal}.arco-form-item-layout-inline{margin-right:24px}.arco-form-item-label-col{padding-right:16px}.arco-form-item.arco-form-item-error,.arco-form-item.arco-form-item-has-help{margin-bottom:0}.arco-form-item-wrapper-flex.arco-col{flex:1}.arco-form-size-mini .arco-form-item-label-col{line-height:24px}.arco-form-size-mini .arco-form-item-label-col>.arco-form-item-label{font-size:12px}.arco-form-size-mini .arco-form-item-content,.arco-form-size-mini .arco-form-item-wrapper-col{min-height:24px}.arco-form-size-small .arco-form-item-label-col{line-height:28px}.arco-form-size-small .arco-form-item-label-col>.arco-form-item-label{font-size:14px}.arco-form-size-small .arco-form-item-content,.arco-form-size-small .arco-form-item-wrapper-col{min-height:28px}.arco-form-size-large .arco-form-item-label-col{line-height:36px}.arco-form-size-large .arco-form-item-label-col>.arco-form-item-label{font-size:14px}.arco-form-size-large .arco-form-item-content,.arco-form-size-large .arco-form-item-wrapper-col{min-height:36px}.arco-form-item-extra{margin-top:4px;color:var(--color-text-3);font-size:12px}.arco-form-item-message{min-height:20px;color:rgb(var(--danger-6));font-size:12px;line-height:20px}.arco-form-item-message-help{color:var(--color-text-3)}.arco-form-item-message+.arco-form-item-extra{margin-top:0;margin-bottom:4px}.arco-form-item-label-col{display:flex;flex-shrink:0;justify-content:flex-end;line-height:32px;white-space:nowrap}.arco-form-item-label-col-left{justify-content:flex-start}.arco-form-item-label-col>.arco-form-item-label{max-width:100%;color:var(--color-text-2);font-size:14px;white-space:normal}.arco-form-item-label-col.arco-form-item-label-col-flex{box-sizing:content-box}.arco-form-item-wrapper-col{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-width:0;min-height:32px}.arco-form-item-content{flex:1;max-width:100%;min-height:32px}.arco-form-item-content-wrapper{display:flex;align-items:center;justify-content:flex-start;width:100%}.arco-form-item-content-flex{display:flex;align-items:center;justify-content:flex-start}.arco-form .arco-slider{display:block}.arco-form-item-label-required-symbol{color:rgb(var(--danger-6));font-size:12px;line-height:1}.arco-form-item-label-required-symbol svg{display:inline-block;transform:scale(.5)}.arco-form-item-label-tooltip{margin-left:4px;color:var(--color-text-4)}.form-blink-enter-from,.form-blink-appear-from{opacity:0}.form-blink-enter-to,.form-blink-appear-to{opacity:1}.form-blink-enter-active,.form-blink-appear-active{transition:opacity .3s cubic-bezier(0,0,1,1);animation:arco-form-blink .5s cubic-bezier(0,0,1,1)}@keyframes arco-form-blink{0%{opacity:1}50%{opacity:.2}to{opacity:1}}.arco-row{display:flex;flex-flow:row wrap}.arco-row-nowrap{flex-wrap:nowrap}.arco-row-align-start{align-items:flex-start}.arco-row-align-center{align-items:center}.arco-row-align-end{align-items:flex-end}.arco-row-justify-start{justify-content:flex-start}.arco-row-justify-center{justify-content:center}.arco-row-justify-end{justify-content:flex-end}.arco-row-justify-space-around{justify-content:space-around}.arco-row-justify-space-between{justify-content:space-between}.arco-col{box-sizing:border-box}.arco-col-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-3{flex:0 0 12.5%;width:12.5%}.arco-col-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-6{flex:0 0 25%;width:25%}.arco-col-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-9{flex:0 0 37.5%;width:37.5%}.arco-col-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-12{flex:0 0 50%;width:50%}.arco-col-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-15{flex:0 0 62.5%;width:62.5%}.arco-col-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-18{flex:0 0 75%;width:75%}.arco-col-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-21{flex:0 0 87.5%;width:87.5%}.arco-col-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-24{flex:0 0 100%;width:100%}.arco-col-offset-1{margin-left:4.16666667%}.arco-col-offset-2{margin-left:8.33333333%}.arco-col-offset-3{margin-left:12.5%}.arco-col-offset-4{margin-left:16.66666667%}.arco-col-offset-5{margin-left:20.83333333%}.arco-col-offset-6{margin-left:25%}.arco-col-offset-7{margin-left:29.16666667%}.arco-col-offset-8{margin-left:33.33333333%}.arco-col-offset-9{margin-left:37.5%}.arco-col-offset-10{margin-left:41.66666667%}.arco-col-offset-11{margin-left:45.83333333%}.arco-col-offset-12{margin-left:50%}.arco-col-offset-13{margin-left:54.16666667%}.arco-col-offset-14{margin-left:58.33333333%}.arco-col-offset-15{margin-left:62.5%}.arco-col-offset-16{margin-left:66.66666667%}.arco-col-offset-17{margin-left:70.83333333%}.arco-col-offset-18{margin-left:75%}.arco-col-offset-19{margin-left:79.16666667%}.arco-col-offset-20{margin-left:83.33333333%}.arco-col-offset-21{margin-left:87.5%}.arco-col-offset-22{margin-left:91.66666667%}.arco-col-offset-23{margin-left:95.83333333%}.arco-col-order-1{order:1}.arco-col-order-2{order:2}.arco-col-order-3{order:3}.arco-col-order-4{order:4}.arco-col-order-5{order:5}.arco-col-order-6{order:6}.arco-col-order-7{order:7}.arco-col-order-8{order:8}.arco-col-order-9{order:9}.arco-col-order-10{order:10}.arco-col-order-11{order:11}.arco-col-order-12{order:12}.arco-col-order-13{order:13}.arco-col-order-14{order:14}.arco-col-order-15{order:15}.arco-col-order-16{order:16}.arco-col-order-17{order:17}.arco-col-order-18{order:18}.arco-col-order-19{order:19}.arco-col-order-20{order:20}.arco-col-order-21{order:21}.arco-col-order-22{order:22}.arco-col-order-23{order:23}.arco-col-order-24{order:24}.arco-col-xs-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-xs-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-xs-3{flex:0 0 12.5%;width:12.5%}.arco-col-xs-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-xs-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-xs-6{flex:0 0 25%;width:25%}.arco-col-xs-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-xs-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-xs-9{flex:0 0 37.5%;width:37.5%}.arco-col-xs-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-xs-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-xs-12{flex:0 0 50%;width:50%}.arco-col-xs-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-xs-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-xs-15{flex:0 0 62.5%;width:62.5%}.arco-col-xs-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-xs-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-xs-18{flex:0 0 75%;width:75%}.arco-col-xs-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-xs-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-xs-21{flex:0 0 87.5%;width:87.5%}.arco-col-xs-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-xs-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-xs-24{flex:0 0 100%;width:100%}.arco-col-xs-offset-1{margin-left:4.16666667%}.arco-col-xs-offset-2{margin-left:8.33333333%}.arco-col-xs-offset-3{margin-left:12.5%}.arco-col-xs-offset-4{margin-left:16.66666667%}.arco-col-xs-offset-5{margin-left:20.83333333%}.arco-col-xs-offset-6{margin-left:25%}.arco-col-xs-offset-7{margin-left:29.16666667%}.arco-col-xs-offset-8{margin-left:33.33333333%}.arco-col-xs-offset-9{margin-left:37.5%}.arco-col-xs-offset-10{margin-left:41.66666667%}.arco-col-xs-offset-11{margin-left:45.83333333%}.arco-col-xs-offset-12{margin-left:50%}.arco-col-xs-offset-13{margin-left:54.16666667%}.arco-col-xs-offset-14{margin-left:58.33333333%}.arco-col-xs-offset-15{margin-left:62.5%}.arco-col-xs-offset-16{margin-left:66.66666667%}.arco-col-xs-offset-17{margin-left:70.83333333%}.arco-col-xs-offset-18{margin-left:75%}.arco-col-xs-offset-19{margin-left:79.16666667%}.arco-col-xs-offset-20{margin-left:83.33333333%}.arco-col-xs-offset-21{margin-left:87.5%}.arco-col-xs-offset-22{margin-left:91.66666667%}.arco-col-xs-offset-23{margin-left:95.83333333%}.arco-col-xs-order-1{order:1}.arco-col-xs-order-2{order:2}.arco-col-xs-order-3{order:3}.arco-col-xs-order-4{order:4}.arco-col-xs-order-5{order:5}.arco-col-xs-order-6{order:6}.arco-col-xs-order-7{order:7}.arco-col-xs-order-8{order:8}.arco-col-xs-order-9{order:9}.arco-col-xs-order-10{order:10}.arco-col-xs-order-11{order:11}.arco-col-xs-order-12{order:12}.arco-col-xs-order-13{order:13}.arco-col-xs-order-14{order:14}.arco-col-xs-order-15{order:15}.arco-col-xs-order-16{order:16}.arco-col-xs-order-17{order:17}.arco-col-xs-order-18{order:18}.arco-col-xs-order-19{order:19}.arco-col-xs-order-20{order:20}.arco-col-xs-order-21{order:21}.arco-col-xs-order-22{order:22}.arco-col-xs-order-23{order:23}.arco-col-xs-order-24{order:24}@media (min-width: 576px){.arco-col-sm-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-sm-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-sm-3{flex:0 0 12.5%;width:12.5%}.arco-col-sm-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-sm-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-sm-6{flex:0 0 25%;width:25%}.arco-col-sm-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-sm-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-sm-9{flex:0 0 37.5%;width:37.5%}.arco-col-sm-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-sm-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-sm-12{flex:0 0 50%;width:50%}.arco-col-sm-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-sm-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-sm-15{flex:0 0 62.5%;width:62.5%}.arco-col-sm-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-sm-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-sm-18{flex:0 0 75%;width:75%}.arco-col-sm-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-sm-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-sm-21{flex:0 0 87.5%;width:87.5%}.arco-col-sm-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-sm-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-sm-24{flex:0 0 100%;width:100%}.arco-col-sm-offset-1{margin-left:4.16666667%}.arco-col-sm-offset-2{margin-left:8.33333333%}.arco-col-sm-offset-3{margin-left:12.5%}.arco-col-sm-offset-4{margin-left:16.66666667%}.arco-col-sm-offset-5{margin-left:20.83333333%}.arco-col-sm-offset-6{margin-left:25%}.arco-col-sm-offset-7{margin-left:29.16666667%}.arco-col-sm-offset-8{margin-left:33.33333333%}.arco-col-sm-offset-9{margin-left:37.5%}.arco-col-sm-offset-10{margin-left:41.66666667%}.arco-col-sm-offset-11{margin-left:45.83333333%}.arco-col-sm-offset-12{margin-left:50%}.arco-col-sm-offset-13{margin-left:54.16666667%}.arco-col-sm-offset-14{margin-left:58.33333333%}.arco-col-sm-offset-15{margin-left:62.5%}.arco-col-sm-offset-16{margin-left:66.66666667%}.arco-col-sm-offset-17{margin-left:70.83333333%}.arco-col-sm-offset-18{margin-left:75%}.arco-col-sm-offset-19{margin-left:79.16666667%}.arco-col-sm-offset-20{margin-left:83.33333333%}.arco-col-sm-offset-21{margin-left:87.5%}.arco-col-sm-offset-22{margin-left:91.66666667%}.arco-col-sm-offset-23{margin-left:95.83333333%}.arco-col-sm-order-1{order:1}.arco-col-sm-order-2{order:2}.arco-col-sm-order-3{order:3}.arco-col-sm-order-4{order:4}.arco-col-sm-order-5{order:5}.arco-col-sm-order-6{order:6}.arco-col-sm-order-7{order:7}.arco-col-sm-order-8{order:8}.arco-col-sm-order-9{order:9}.arco-col-sm-order-10{order:10}.arco-col-sm-order-11{order:11}.arco-col-sm-order-12{order:12}.arco-col-sm-order-13{order:13}.arco-col-sm-order-14{order:14}.arco-col-sm-order-15{order:15}.arco-col-sm-order-16{order:16}.arco-col-sm-order-17{order:17}.arco-col-sm-order-18{order:18}.arco-col-sm-order-19{order:19}.arco-col-sm-order-20{order:20}.arco-col-sm-order-21{order:21}.arco-col-sm-order-22{order:22}.arco-col-sm-order-23{order:23}.arco-col-sm-order-24{order:24}}@media (min-width: 768px){.arco-col-md-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-md-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-md-3{flex:0 0 12.5%;width:12.5%}.arco-col-md-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-md-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-md-6{flex:0 0 25%;width:25%}.arco-col-md-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-md-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-md-9{flex:0 0 37.5%;width:37.5%}.arco-col-md-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-md-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-md-12{flex:0 0 50%;width:50%}.arco-col-md-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-md-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-md-15{flex:0 0 62.5%;width:62.5%}.arco-col-md-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-md-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-md-18{flex:0 0 75%;width:75%}.arco-col-md-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-md-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-md-21{flex:0 0 87.5%;width:87.5%}.arco-col-md-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-md-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-md-24{flex:0 0 100%;width:100%}.arco-col-md-offset-1{margin-left:4.16666667%}.arco-col-md-offset-2{margin-left:8.33333333%}.arco-col-md-offset-3{margin-left:12.5%}.arco-col-md-offset-4{margin-left:16.66666667%}.arco-col-md-offset-5{margin-left:20.83333333%}.arco-col-md-offset-6{margin-left:25%}.arco-col-md-offset-7{margin-left:29.16666667%}.arco-col-md-offset-8{margin-left:33.33333333%}.arco-col-md-offset-9{margin-left:37.5%}.arco-col-md-offset-10{margin-left:41.66666667%}.arco-col-md-offset-11{margin-left:45.83333333%}.arco-col-md-offset-12{margin-left:50%}.arco-col-md-offset-13{margin-left:54.16666667%}.arco-col-md-offset-14{margin-left:58.33333333%}.arco-col-md-offset-15{margin-left:62.5%}.arco-col-md-offset-16{margin-left:66.66666667%}.arco-col-md-offset-17{margin-left:70.83333333%}.arco-col-md-offset-18{margin-left:75%}.arco-col-md-offset-19{margin-left:79.16666667%}.arco-col-md-offset-20{margin-left:83.33333333%}.arco-col-md-offset-21{margin-left:87.5%}.arco-col-md-offset-22{margin-left:91.66666667%}.arco-col-md-offset-23{margin-left:95.83333333%}.arco-col-md-order-1{order:1}.arco-col-md-order-2{order:2}.arco-col-md-order-3{order:3}.arco-col-md-order-4{order:4}.arco-col-md-order-5{order:5}.arco-col-md-order-6{order:6}.arco-col-md-order-7{order:7}.arco-col-md-order-8{order:8}.arco-col-md-order-9{order:9}.arco-col-md-order-10{order:10}.arco-col-md-order-11{order:11}.arco-col-md-order-12{order:12}.arco-col-md-order-13{order:13}.arco-col-md-order-14{order:14}.arco-col-md-order-15{order:15}.arco-col-md-order-16{order:16}.arco-col-md-order-17{order:17}.arco-col-md-order-18{order:18}.arco-col-md-order-19{order:19}.arco-col-md-order-20{order:20}.arco-col-md-order-21{order:21}.arco-col-md-order-22{order:22}.arco-col-md-order-23{order:23}.arco-col-md-order-24{order:24}}@media (min-width: 992px){.arco-col-lg-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-lg-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-lg-3{flex:0 0 12.5%;width:12.5%}.arco-col-lg-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-lg-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-lg-6{flex:0 0 25%;width:25%}.arco-col-lg-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-lg-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-lg-9{flex:0 0 37.5%;width:37.5%}.arco-col-lg-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-lg-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-lg-12{flex:0 0 50%;width:50%}.arco-col-lg-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-lg-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-lg-15{flex:0 0 62.5%;width:62.5%}.arco-col-lg-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-lg-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-lg-18{flex:0 0 75%;width:75%}.arco-col-lg-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-lg-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-lg-21{flex:0 0 87.5%;width:87.5%}.arco-col-lg-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-lg-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-lg-24{flex:0 0 100%;width:100%}.arco-col-lg-offset-1{margin-left:4.16666667%}.arco-col-lg-offset-2{margin-left:8.33333333%}.arco-col-lg-offset-3{margin-left:12.5%}.arco-col-lg-offset-4{margin-left:16.66666667%}.arco-col-lg-offset-5{margin-left:20.83333333%}.arco-col-lg-offset-6{margin-left:25%}.arco-col-lg-offset-7{margin-left:29.16666667%}.arco-col-lg-offset-8{margin-left:33.33333333%}.arco-col-lg-offset-9{margin-left:37.5%}.arco-col-lg-offset-10{margin-left:41.66666667%}.arco-col-lg-offset-11{margin-left:45.83333333%}.arco-col-lg-offset-12{margin-left:50%}.arco-col-lg-offset-13{margin-left:54.16666667%}.arco-col-lg-offset-14{margin-left:58.33333333%}.arco-col-lg-offset-15{margin-left:62.5%}.arco-col-lg-offset-16{margin-left:66.66666667%}.arco-col-lg-offset-17{margin-left:70.83333333%}.arco-col-lg-offset-18{margin-left:75%}.arco-col-lg-offset-19{margin-left:79.16666667%}.arco-col-lg-offset-20{margin-left:83.33333333%}.arco-col-lg-offset-21{margin-left:87.5%}.arco-col-lg-offset-22{margin-left:91.66666667%}.arco-col-lg-offset-23{margin-left:95.83333333%}.arco-col-lg-order-1{order:1}.arco-col-lg-order-2{order:2}.arco-col-lg-order-3{order:3}.arco-col-lg-order-4{order:4}.arco-col-lg-order-5{order:5}.arco-col-lg-order-6{order:6}.arco-col-lg-order-7{order:7}.arco-col-lg-order-8{order:8}.arco-col-lg-order-9{order:9}.arco-col-lg-order-10{order:10}.arco-col-lg-order-11{order:11}.arco-col-lg-order-12{order:12}.arco-col-lg-order-13{order:13}.arco-col-lg-order-14{order:14}.arco-col-lg-order-15{order:15}.arco-col-lg-order-16{order:16}.arco-col-lg-order-17{order:17}.arco-col-lg-order-18{order:18}.arco-col-lg-order-19{order:19}.arco-col-lg-order-20{order:20}.arco-col-lg-order-21{order:21}.arco-col-lg-order-22{order:22}.arco-col-lg-order-23{order:23}.arco-col-lg-order-24{order:24}}@media (min-width: 1200px){.arco-col-xl-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-xl-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-xl-3{flex:0 0 12.5%;width:12.5%}.arco-col-xl-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-xl-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-xl-6{flex:0 0 25%;width:25%}.arco-col-xl-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-xl-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-xl-9{flex:0 0 37.5%;width:37.5%}.arco-col-xl-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-xl-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-xl-12{flex:0 0 50%;width:50%}.arco-col-xl-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-xl-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-xl-15{flex:0 0 62.5%;width:62.5%}.arco-col-xl-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-xl-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-xl-18{flex:0 0 75%;width:75%}.arco-col-xl-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-xl-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-xl-21{flex:0 0 87.5%;width:87.5%}.arco-col-xl-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-xl-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-xl-24{flex:0 0 100%;width:100%}.arco-col-xl-offset-1{margin-left:4.16666667%}.arco-col-xl-offset-2{margin-left:8.33333333%}.arco-col-xl-offset-3{margin-left:12.5%}.arco-col-xl-offset-4{margin-left:16.66666667%}.arco-col-xl-offset-5{margin-left:20.83333333%}.arco-col-xl-offset-6{margin-left:25%}.arco-col-xl-offset-7{margin-left:29.16666667%}.arco-col-xl-offset-8{margin-left:33.33333333%}.arco-col-xl-offset-9{margin-left:37.5%}.arco-col-xl-offset-10{margin-left:41.66666667%}.arco-col-xl-offset-11{margin-left:45.83333333%}.arco-col-xl-offset-12{margin-left:50%}.arco-col-xl-offset-13{margin-left:54.16666667%}.arco-col-xl-offset-14{margin-left:58.33333333%}.arco-col-xl-offset-15{margin-left:62.5%}.arco-col-xl-offset-16{margin-left:66.66666667%}.arco-col-xl-offset-17{margin-left:70.83333333%}.arco-col-xl-offset-18{margin-left:75%}.arco-col-xl-offset-19{margin-left:79.16666667%}.arco-col-xl-offset-20{margin-left:83.33333333%}.arco-col-xl-offset-21{margin-left:87.5%}.arco-col-xl-offset-22{margin-left:91.66666667%}.arco-col-xl-offset-23{margin-left:95.83333333%}.arco-col-xl-order-1{order:1}.arco-col-xl-order-2{order:2}.arco-col-xl-order-3{order:3}.arco-col-xl-order-4{order:4}.arco-col-xl-order-5{order:5}.arco-col-xl-order-6{order:6}.arco-col-xl-order-7{order:7}.arco-col-xl-order-8{order:8}.arco-col-xl-order-9{order:9}.arco-col-xl-order-10{order:10}.arco-col-xl-order-11{order:11}.arco-col-xl-order-12{order:12}.arco-col-xl-order-13{order:13}.arco-col-xl-order-14{order:14}.arco-col-xl-order-15{order:15}.arco-col-xl-order-16{order:16}.arco-col-xl-order-17{order:17}.arco-col-xl-order-18{order:18}.arco-col-xl-order-19{order:19}.arco-col-xl-order-20{order:20}.arco-col-xl-order-21{order:21}.arco-col-xl-order-22{order:22}.arco-col-xl-order-23{order:23}.arco-col-xl-order-24{order:24}}@media (min-width: 1600px){.arco-col-xxl-1{flex:0 0 4.16666667%;width:4.16666667%}.arco-col-xxl-2{flex:0 0 8.33333333%;width:8.33333333%}.arco-col-xxl-3{flex:0 0 12.5%;width:12.5%}.arco-col-xxl-4{flex:0 0 16.66666667%;width:16.66666667%}.arco-col-xxl-5{flex:0 0 20.83333333%;width:20.83333333%}.arco-col-xxl-6{flex:0 0 25%;width:25%}.arco-col-xxl-7{flex:0 0 29.16666667%;width:29.16666667%}.arco-col-xxl-8{flex:0 0 33.33333333%;width:33.33333333%}.arco-col-xxl-9{flex:0 0 37.5%;width:37.5%}.arco-col-xxl-10{flex:0 0 41.66666667%;width:41.66666667%}.arco-col-xxl-11{flex:0 0 45.83333333%;width:45.83333333%}.arco-col-xxl-12{flex:0 0 50%;width:50%}.arco-col-xxl-13{flex:0 0 54.16666667%;width:54.16666667%}.arco-col-xxl-14{flex:0 0 58.33333333%;width:58.33333333%}.arco-col-xxl-15{flex:0 0 62.5%;width:62.5%}.arco-col-xxl-16{flex:0 0 66.66666667%;width:66.66666667%}.arco-col-xxl-17{flex:0 0 70.83333333%;width:70.83333333%}.arco-col-xxl-18{flex:0 0 75%;width:75%}.arco-col-xxl-19{flex:0 0 79.16666667%;width:79.16666667%}.arco-col-xxl-20{flex:0 0 83.33333333%;width:83.33333333%}.arco-col-xxl-21{flex:0 0 87.5%;width:87.5%}.arco-col-xxl-22{flex:0 0 91.66666667%;width:91.66666667%}.arco-col-xxl-23{flex:0 0 95.83333333%;width:95.83333333%}.arco-col-xxl-24{flex:0 0 100%;width:100%}.arco-col-xxl-offset-1{margin-left:4.16666667%}.arco-col-xxl-offset-2{margin-left:8.33333333%}.arco-col-xxl-offset-3{margin-left:12.5%}.arco-col-xxl-offset-4{margin-left:16.66666667%}.arco-col-xxl-offset-5{margin-left:20.83333333%}.arco-col-xxl-offset-6{margin-left:25%}.arco-col-xxl-offset-7{margin-left:29.16666667%}.arco-col-xxl-offset-8{margin-left:33.33333333%}.arco-col-xxl-offset-9{margin-left:37.5%}.arco-col-xxl-offset-10{margin-left:41.66666667%}.arco-col-xxl-offset-11{margin-left:45.83333333%}.arco-col-xxl-offset-12{margin-left:50%}.arco-col-xxl-offset-13{margin-left:54.16666667%}.arco-col-xxl-offset-14{margin-left:58.33333333%}.arco-col-xxl-offset-15{margin-left:62.5%}.arco-col-xxl-offset-16{margin-left:66.66666667%}.arco-col-xxl-offset-17{margin-left:70.83333333%}.arco-col-xxl-offset-18{margin-left:75%}.arco-col-xxl-offset-19{margin-left:79.16666667%}.arco-col-xxl-offset-20{margin-left:83.33333333%}.arco-col-xxl-offset-21{margin-left:87.5%}.arco-col-xxl-offset-22{margin-left:91.66666667%}.arco-col-xxl-offset-23{margin-left:95.83333333%}.arco-col-xxl-order-1{order:1}.arco-col-xxl-order-2{order:2}.arco-col-xxl-order-3{order:3}.arco-col-xxl-order-4{order:4}.arco-col-xxl-order-5{order:5}.arco-col-xxl-order-6{order:6}.arco-col-xxl-order-7{order:7}.arco-col-xxl-order-8{order:8}.arco-col-xxl-order-9{order:9}.arco-col-xxl-order-10{order:10}.arco-col-xxl-order-11{order:11}.arco-col-xxl-order-12{order:12}.arco-col-xxl-order-13{order:13}.arco-col-xxl-order-14{order:14}.arco-col-xxl-order-15{order:15}.arco-col-xxl-order-16{order:16}.arco-col-xxl-order-17{order:17}.arco-col-xxl-order-18{order:18}.arco-col-xxl-order-19{order:19}.arco-col-xxl-order-20{order:20}.arco-col-xxl-order-21{order:21}.arco-col-xxl-order-22{order:22}.arco-col-xxl-order-23{order:23}.arco-col-xxl-order-24{order:24}}.arco-grid{display:grid}.arco-image-trigger{padding:6px 4px;background:var(--color-bg-5);border:1px solid var(--color-neutral-3);border-radius:4px}.arco-image-trigger .arco-trigger-arrow{background-color:var(--color-bg-5);border:1px solid var(--color-neutral-3)}.arco-image{position:relative;display:inline-block;border-radius:var(--border-radius-small)}.arco-image-img{vertical-align:middle;border-radius:inherit}.arco-image-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.arco-image-footer{display:flex;width:100%;max-width:100%}.arco-image-footer-caption{flex:1 1 auto}.arco-image-footer-caption-title{font-weight:500;font-size:16px}.arco-image-footer-caption-description{font-size:14px}.arco-image-footer-extra{flex:0 0 auto;padding-left:12px}.arco-image-with-footer-inner .arco-image-footer{position:absolute;bottom:0;left:0;align-items:center;box-sizing:border-box;padding:9px 16px;color:var(--color-white);background:linear-gradient(360deg,#0000004d,#0000);border-bottom-right-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.arco-image-with-footer-inner .arco-image-footer-caption-title,.arco-image-with-footer-inner .arco-image-footer-caption-description{color:var(--color-white)}.arco-image-with-footer-outer .arco-image-footer{margin-top:4px;color:var(--color-neutral-8)}.arco-image-with-footer-outer .arco-image-footer-caption-title{color:var(--color-text-1)}.arco-image-with-footer-outer .arco-image-footer-caption-description{color:var(--color-neutral-6)}.arco-image-error{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;color:var(--color-neutral-4);background-color:var(--color-neutral-1)}.arco-image-error-icon{width:60px;max-width:100%;height:60px;max-height:100%}.arco-image-error-icon>svg{width:100%;height:100%}.arco-image-error-alt{padding:8px 16px;font-size:12px;line-height:1.6667;text-align:center}.arco-image-loader{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--color-neutral-1)}.arco-image-loader-spin{position:absolute;top:50%;left:50%;color:rgb(var(--primary-6));font-size:32px;text-align:center;transform:translate(-50%,-50%)}.arco-image-loader-spin-text{color:var(--color-neutral-6);font-size:16px}.arco-image-simple.arco-image-with-footer-inner .arco-image-footer{padding:12px 16px}.arco-image-loading .arco-image-img,.arco-image-loading-error .arco-image-img{visibility:hidden}.arco-image-preview{position:fixed;top:0;left:0;z-index:1001;width:100%;height:100%}.arco-image-preview-hide{display:none}.arco-image-preview-mask,.arco-image-preview-wrapper{position:absolute;top:0;left:0;width:100%;height:100%}.arco-image-preview-mask{background-color:var(--color-mask-bg)}.arco-image-preview-img-container{width:100%;height:100%;text-align:center}.arco-image-preview-img-container:before{display:inline-block;width:0;height:100%;vertical-align:middle;content:""}.arco-image-preview-img-container .arco-image-preview-img{display:inline-block;max-width:100%;max-height:100%;vertical-align:middle;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-image-preview-img-container .arco-image-preview-img.arco-image-preview-img-moving{cursor:grabbing}.arco-image-preview-scale-value{box-sizing:border-box;padding:7px 10px;color:var(--color-white);font-size:12px;line-height:initial;background-color:#ffffff14;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arco-image-preview-toolbar{position:absolute;bottom:46px;left:50%;display:flex;align-items:flex-start;padding:4px 16px;background-color:var(--color-bg-2);border-radius:var(--border-radius-medium);transform:translate(-50%)}.arco-image-preview-toolbar-action{display:flex;align-items:center;color:var(--color-neutral-8);font-size:14px;background-color:transparent;border-radius:var(--border-radius-small);cursor:pointer}.arco-image-preview-toolbar-action:not(:last-of-type){margin-right:0}.arco-image-preview-toolbar-action:hover{color:rgb(var(--primary-6));background-color:var(--color-neutral-2)}.arco-image-preview-toolbar-action-disabled,.arco-image-preview-toolbar-action-disabled:hover{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-image-preview-toolbar-action-name{padding-right:12px;font-size:12px}.arco-image-preview-toolbar-action-content{padding:13px;line-height:1}.arco-image-preview-loading{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:48px;height:48px;padding:10px;color:rgb(var(--primary-6));font-size:18px;background-color:#232324;border-radius:var(--border-radius-medium);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.arco-image-preview-close-btn{position:absolute;top:36px;right:36px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:var(--color-white);font-size:14px;line-height:32px;text-align:center;background:#00000080;border-radius:50%;cursor:pointer}.arco-image-preview-arrow-left,.arco-image-preview-arrow-right{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:var(--color-white);background-color:#ffffff4d;border-radius:50%;cursor:pointer}.arco-image-preview-arrow-left>svg,.arco-image-preview-arrow-right>svg{color:var(--color-white);font-size:16px}.arco-image-preview-arrow-left:hover,.arco-image-preview-arrow-right:hover{background-color:#ffffff80}.arco-image-preview-arrow-left{top:50%;left:20px;transform:translateY(-50%)}.arco-image-preview-arrow-right{top:50%;right:20px;transform:translateY(-50%)}.arco-image-preview-arrow-disabled{color:#ffffff4d;background-color:#fff3;cursor:not-allowed}.arco-image-preview-arrow-disabled>svg{color:#ffffff4d}.arco-image-preview-arrow-disabled:hover{background-color:#fff3}.image-fade-enter-from,.image-fade-leave-to{opacity:0}.image-fade-enter-to,.image-fade-leave-from{opacity:1}.image-fade-enter-active,.image-fade-leave-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1)}.arco-input-number{position:relative;box-sizing:border-box;width:100%;border-radius:var(--border-radius-small)}.arco-input-number-step-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;color:var(--color-text-2);background-color:var(--color-fill-2);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:all .1s cubic-bezier(0,0,1,1)}.arco-input-number-step-button:hover{background-color:var(--color-fill-3);border-color:var(--color-fill-3)}.arco-input-number-step-button:active{background-color:var(--color-fill-4);border-color:var(--color-fill-4)}.arco-input-number-step-button:disabled{color:var(--color-text-4);background-color:var(--color-fill-2);cursor:not-allowed}.arco-input-number-step-button:disabled:hover,.arco-input-number-step-button:disabled:active{background-color:var(--color-fill-2);border-color:var(--color-neutral-3)}.arco-input-number .arco-input-wrapper{position:relative}.arco-input-number-prefix,.arco-input-number-suffix{transition:all .1s cubic-bezier(0,0,1,1)}.arco-input-number-mode-embed .arco-input-number-step{position:absolute;top:4px;right:4px;bottom:4px;width:18px;overflow:hidden;border-radius:1px;opacity:0;transition:all .1s cubic-bezier(0,0,1,1)}.arco-input-number-mode-embed .arco-input-number-step .arco-input-number-step-button{width:100%;height:50%;font-size:10px;border:none;border-color:var(--color-neutral-3)}.arco-input-number-mode-embed .arco-input-suffix{justify-content:flex-end;min-width:6px}.arco-input-number-mode-embed .arco-input-suffix-has-feedback{min-width:32px}.arco-input-number-mode-embed .arco-input-suffix-has-feedback .arco-input-number-step{right:30px}.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):hover .arco-input-suffix:has(.arco-input-number-suffix),.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):focus-within .arco-input-suffix:has(.arco-input-number-suffix){padding-left:4px}.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):hover .arco-input-number-step,.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):focus-within .arco-input-number-step{opacity:1}.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):hover .arco-input-number-suffix,.arco-input-number-mode-embed:not(.arco-input-disabled):not(.arco-input-outer-disabled):focus-within .arco-input-number-suffix{opacity:0;pointer-events:none}.arco-input-number-mode-embed.arco-input-wrapper:not(.arco-input-focus) .arco-input-number-step-button:not(.arco-input-number-step-button-disabled):hover{background-color:var(--color-fill-4)}.arco-input-number-mode-button .arco-input-prepend,.arco-input-number-mode-button .arco-input-append{padding:0;border:none}.arco-input-number-mode-button .arco-input-prepend .arco-input-number-step-button{border-right:1px solid transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-number-mode-button .arco-input-prepend .arco-input-number-step-button:not(.arco-input-number-mode-button .arco-input-prepend .arco-input-number-step-button:active){border-right-color:var(--color-neutral-3)}.arco-input-number-mode-button .arco-input-append .arco-input-number-step-button{border-left:1px solid transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-number-mode-button .arco-input-append .arco-input-number-step-button:not(.arco-input-number-mode-button .arco-input-append .arco-input-number-step-button:active){border-left-color:var(--color-neutral-3)}.arco-input-number-readonly .arco-input-number-step-button{color:var(--color-text-4);pointer-events:none}.arco-input-tag{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1)}.arco-input-tag:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-input-tag:focus-within,.arco-input-tag.arco-input-tag-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-input-tag.arco-input-tag-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-input-tag.arco-input-tag-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-input-tag.arco-input-tag-disabled .arco-input-tag-prefix,.arco-input-tag.arco-input-tag-disabled .arco-input-tag-suffix{color:inherit}.arco-input-tag.arco-input-tag-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-input-tag.arco-input-tag-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-input-tag.arco-input-tag-error:focus-within,.arco-input-tag.arco-input-tag-error.arco-input-tag-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-input-tag .arco-input-tag-prefix,.arco-input-tag .arco-input-tag-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-input-tag .arco-input-tag-prefix>svg,.arco-input-tag .arco-input-tag-suffix>svg{font-size:14px}.arco-input-tag .arco-input-tag-prefix{padding-right:12px;color:var(--color-text-2)}.arco-input-tag .arco-input-tag-suffix{padding-left:12px;color:var(--color-text-2)}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon{display:inline-flex}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-input-tag .arco-input-tag-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-input-tag .arco-input-tag-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-input-tag .arco-input-tag-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-input-tag:hover .arco-input-tag-clear-btn{visibility:visible}.arco-input-tag:not(.arco-input-tag-focus) .arco-input-tag-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-input-tag.arco-input-tag-has-tag{padding-right:4px;padding-left:4px}.arco-input-tag.arco-input-tag-has-prefix{padding-left:12px}.arco-input-tag.arco-input-tag-has-suffix{padding-right:12px}.arco-input-tag .arco-input-tag-inner{flex:1;overflow:hidden;line-height:0}.arco-input-tag .arco-input-tag-inner.arco-input-tag-nowrap{display:flex;flex-wrap:wrap}.arco-input-tag .arco-input-tag-inner .arco-input-tag-tag{display:inline-flex;align-items:center;margin-right:4px;color:var(--color-text-1);font-size:12px;white-space:pre-wrap;word-break:break-word;background-color:var(--color-bg-2);border-color:var(--color-fill-3)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-tag .arco-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-tag.arco-tag-custom-color{color:var(--color-white)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-tag.arco-tag-custom-color .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:#fff3}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input::-moz-placeholder{color:var(--color-text-3)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input::placeholder{color:var(--color-text-3)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input[disabled]::placeholder{color:var(--color-text-4)}.arco-input-tag .arco-input-tag-inner .arco-input-tag-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-input-tag .arco-input-tag-mirror{position:absolute;top:0;left:0;white-space:pre;visibility:hidden;pointer-events:none}.arco-input-tag.arco-input-tag-focus .arco-input-tag-tag{background-color:var(--color-fill-2);border-color:var(--color-fill-2)}.arco-input-tag.arco-input-tag-focus .arco-input-tag-tag .arco-icon-hover:hover:before{background-color:var(--color-fill-3)}.arco-input-tag.arco-input-tag-disabled .arco-input-tag-tag{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:var(--color-fill-3)}.arco-input-tag.arco-input-tag-readonly,.arco-input-tag.arco-input-tag-disabled-input{cursor:default}.arco-input-tag.arco-input-tag-size-mini{font-size:12px}.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-inner{padding-top:0;padding-bottom:0}.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-input{margin-top:1px;margin-bottom:1px;line-height:18px;vertical-align:middle}.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-mini .arco-input-tag-input{height:auto;min-height:20px}.arco-input-tag.arco-input-tag-size-medium{font-size:14px}.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-inner{padding-top:2px;padding-bottom:2px}.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-input{margin-top:1px;margin-bottom:1px;line-height:22px;vertical-align:middle}.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-medium .arco-input-tag-input{height:auto;min-height:24px}.arco-input-tag.arco-input-tag-size-small{font-size:14px}.arco-input-tag.arco-input-tag-size-small .arco-input-tag-inner{padding-top:2px;padding-bottom:2px}.arco-input-tag.arco-input-tag-size-small .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-small .arco-input-tag-input{margin-top:1px;margin-bottom:1px;line-height:18px;vertical-align:middle}.arco-input-tag.arco-input-tag-size-small .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-small .arco-input-tag-input{height:auto;min-height:20px}.arco-input-tag.arco-input-tag-size-large{font-size:14px}.arco-input-tag.arco-input-tag-size-large .arco-input-tag-inner{padding-top:2px;padding-bottom:2px}.arco-input-tag.arco-input-tag-size-large .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-large .arco-input-tag-input{margin-top:1px;margin-bottom:1px;line-height:26px;vertical-align:middle}.arco-input-tag.arco-input-tag-size-large .arco-input-tag-tag,.arco-input-tag.arco-input-tag-size-large .arco-input-tag-input{height:auto;min-height:28px}.input-tag-zoom-enter-from{transform:scale(.5);opacity:0}.input-tag-zoom-enter-to{transform:scale(1);opacity:1}.input-tag-zoom-enter-active{transition:all .3s cubic-bezier(.34,.69,.1,1)}.input-tag-zoom-leave-from{transform:scale(1);opacity:1}.input-tag-zoom-leave-to{transform:scale(.5);opacity:0}.input-tag-zoom-leave-active{position:absolute;transition:all .3s cubic-bezier(.3,1.3,.3,1)}.input-tag-zoom-move{transition:all .3s cubic-bezier(.3,1.3,.3,1)}.arco-input-wrapper{display:inline-flex;box-sizing:border-box;width:100%;padding-right:12px;padding-left:12px;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1)}.arco-input-wrapper:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-input-wrapper:focus-within,.arco-input-wrapper.arco-input-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-input-wrapper.arco-input-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-input-wrapper.arco-input-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-input-wrapper.arco-input-disabled .arco-input-prefix,.arco-input-wrapper.arco-input-disabled .arco-input-suffix{color:inherit}.arco-input-wrapper.arco-input-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-input-wrapper.arco-input-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-input-wrapper.arco-input-error:focus-within,.arco-input-wrapper.arco-input-error.arco-input-wrapper-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-input-wrapper .arco-input-prefix,.arco-input-wrapper .arco-input-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-input-wrapper .arco-input-prefix>svg,.arco-input-wrapper .arco-input-suffix>svg{font-size:14px}.arco-input-wrapper .arco-input-prefix{padding-right:12px;color:var(--color-text-2)}.arco-input-wrapper .arco-input-suffix{padding-left:12px;color:var(--color-text-2)}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon{display:inline-flex}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-input-wrapper .arco-input-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-input-wrapper .arco-input-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-input-wrapper .arco-input-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-input-wrapper:hover .arco-input-clear-btn{visibility:visible}.arco-input-wrapper:not(.arco-input-focus) .arco-input-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-input-wrapper .arco-input{width:100%;padding-right:0;padding-left:0;color:inherit;line-height:1.5715;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.arco-input-wrapper .arco-input::-moz-placeholder{color:var(--color-text-3)}.arco-input-wrapper .arco-input::placeholder{color:var(--color-text-3)}.arco-input-wrapper .arco-input[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-input-wrapper .arco-input[disabled]::placeholder{color:var(--color-text-4)}.arco-input-wrapper .arco-input[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-input-wrapper .arco-input.arco-input-size-mini{padding-top:1px;padding-bottom:1px;font-size:12px;line-height:1.667}.arco-input-wrapper .arco-input.arco-input-size-small{padding-top:2px;padding-bottom:2px;font-size:14px;line-height:1.5715}.arco-input-wrapper .arco-input.arco-input-size-medium{padding-top:4px;padding-bottom:4px;font-size:14px;line-height:1.5715}.arco-input-wrapper .arco-input.arco-input-size-large{padding-top:6px;padding-bottom:6px;font-size:14px;line-height:1.5715}.arco-input-wrapper .arco-input-word-limit{color:var(--color-text-3);font-size:12px}.arco-input-outer{display:inline-flex;width:100%}.arco-input-outer>.arco-input-wrapper{border-radius:0}.arco-input-outer>:first-child{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.arco-input-outer>:last-child{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.arco-input-outer.arco-input-outer-size-mini .arco-input-outer,.arco-input-outer.arco-input-outer-size-mini .arco-input-wrapper .arco-input-prefix,.arco-input-outer.arco-input-outer-size-mini .arco-input-wrapper .arco-input-suffix{font-size:12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-wrapper .arco-input-prefix>svg,.arco-input-outer.arco-input-outer-size-mini .arco-input-wrapper .arco-input-suffix>svg{font-size:12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend,.arco-input-outer.arco-input-outer-size-mini .arco-input-append{font-size:12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend>svg,.arco-input-outer.arco-input-outer-size-mini .arco-input-append>svg{font-size:12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend .arco-input{width:auto;height:100%;margin:-1px -13px -1px -12px;border-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend .arco-select{width:auto;height:100%;margin:-1px -13px -1px -12px}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-mini .arco-input-prepend .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-mini .arco-input-append .arco-input{width:auto;height:100%;margin:-1px -12px -1px -13px;border-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-outer.arco-input-outer-size-mini .arco-input-append .arco-select{width:auto;height:100%;margin:-1px -12px -1px -13px}.arco-input-outer.arco-input-outer-size-mini .arco-input-append .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-mini .arco-input-append .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-small .arco-input-outer,.arco-input-outer.arco-input-outer-size-small .arco-input-wrapper .arco-input-prefix,.arco-input-outer.arco-input-outer-size-small .arco-input-wrapper .arco-input-suffix{font-size:14px}.arco-input-outer.arco-input-outer-size-small .arco-input-wrapper .arco-input-prefix>svg,.arco-input-outer.arco-input-outer-size-small .arco-input-wrapper .arco-input-suffix>svg{font-size:14px}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend,.arco-input-outer.arco-input-outer-size-small .arco-input-append{font-size:14px}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend>svg,.arco-input-outer.arco-input-outer-size-small .arco-input-append>svg{font-size:14px}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend .arco-input{width:auto;height:100%;margin:-1px -13px -1px -12px;border-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend .arco-select{width:auto;height:100%;margin:-1px -13px -1px -12px}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-small .arco-input-prepend .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-small .arco-input-append .arco-input{width:auto;height:100%;margin:-1px -12px -1px -13px;border-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-outer.arco-input-outer-size-small .arco-input-append .arco-select{width:auto;height:100%;margin:-1px -12px -1px -13px}.arco-input-outer.arco-input-outer-size-small .arco-input-append .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-small .arco-input-append .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-large .arco-input-outer,.arco-input-outer.arco-input-outer-size-large .arco-input-wrapper .arco-input-prefix,.arco-input-outer.arco-input-outer-size-large .arco-input-wrapper .arco-input-suffix{font-size:14px}.arco-input-outer.arco-input-outer-size-large .arco-input-wrapper .arco-input-prefix>svg,.arco-input-outer.arco-input-outer-size-large .arco-input-wrapper .arco-input-suffix>svg{font-size:14px}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend,.arco-input-outer.arco-input-outer-size-large .arco-input-append{font-size:14px}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend>svg,.arco-input-outer.arco-input-outer-size-large .arco-input-append>svg{font-size:14px}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend .arco-input{width:auto;height:100%;margin:-1px -13px -1px -12px;border-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend .arco-select{width:auto;height:100%;margin:-1px -13px -1px -12px}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-large .arco-input-prepend .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer.arco-input-outer-size-large .arco-input-append .arco-input{width:auto;height:100%;margin:-1px -12px -1px -13px;border-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-outer.arco-input-outer-size-large .arco-input-append .arco-select{width:auto;height:100%;margin:-1px -12px -1px -13px}.arco-input-outer.arco-input-outer-size-large .arco-input-append .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-outer.arco-input-outer-size-large .arco-input-append .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-outer-disabled{cursor:not-allowed}.arco-input-prepend,.arco-input-append{display:inline-flex;flex-shrink:0;align-items:center;box-sizing:border-box;padding:0 12px;color:var(--color-text-1);white-space:nowrap;background-color:var(--color-fill-2);border:1px solid transparent}.arco-input-prepend>svg,.arco-input-append>svg{font-size:14px}.arco-input-prepend{border-right:1px solid var(--color-neutral-3)}.arco-input-prepend .arco-input{width:auto;height:100%;margin:-1px -12px -1px -13px;border-color:transparent;border-top-right-radius:0;border-bottom-right-radius:0}.arco-input-prepend .arco-select{width:auto;height:100%;margin:-1px -12px -1px -13px}.arco-input-prepend .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-prepend .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-append{border-left:1px solid var(--color-neutral-3)}.arco-input-append .arco-input{width:auto;height:100%;margin:-1px -13px -1px -12px;border-color:transparent;border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-append .arco-select{width:auto;height:100%;margin:-1px -13px -1px -12px}.arco-input-append .arco-select .arco-select-view{background-color:inherit;border-color:transparent;border-radius:0}.arco-input-append .arco-select.arco-select-single .arco-select-view{height:100%}.arco-input-group{display:inline-flex;align-items:center}.arco-input-group>*{border-radius:0}.arco-input-group>*.arco-input-outer>:last-child,.arco-input-group>*.arco-input-outer>:first-child{border-radius:0}.arco-input-group>*:not(:last-child){position:relative;box-sizing:border-box}.arco-input-group>*:first-child,.arco-input-group>*:first-child .arco-input-group>*:first-child{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.arco-input-group>*:first-child .arco-select-view,.arco-input-group>*:first-child .arco-input-group>*:first-child .arco-select-view{border-top-left-radius:var(--border-radius-small);border-bottom-left-radius:var(--border-radius-small)}.arco-input-group>*:last-child,.arco-input-group>*:last-child .arco-input-outer>*:last-child{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.arco-input-group>*:last-child .arco-select-view,.arco-input-group>*:last-child .arco-input-outer>*:last-child .arco-select-view{border-top-right-radius:var(--border-radius-small);border-bottom-right-radius:var(--border-radius-small)}.arco-input-group>.arco-input-wrapper:not(:last-child),.arco-input-group>.arco-input-outer:not(:last-child),.arco-input-group>.arco-input-tag:not(:last-child),.arco-input-group>.arco-select-view:not(:last-child){margin-right:-1px;border-right:1px solid var(--color-neutral-3)}.arco-input-group>.arco-input-wrapper:not(:last-child):focus-within,.arco-input-group>.arco-input-outer:not(:last-child):focus-within,.arco-input-group>.arco-input-tag:not(:last-child):focus-within,.arco-input-group>.arco-select-view:not(:last-child):focus-within{border-right-color:rgb(var(--primary-6))}.arco-input-group>.arco-input-wrapper.arco-input-error:not(:last-child):focus-within{border-right-color:rgb(var(--danger-6))}.size-height-size-mini{padding-top:1px;padding-bottom:1px;font-size:12px;line-height:1.667}.size-height-size-small{padding-top:2px;padding-bottom:2px;font-size:14px}.size-height-size-large{padding-top:6px;padding-bottom:6px;font-size:14px}.arco-textarea-wrapper{position:relative;display:inline-block;width:100%}.arco-textarea-clear-wrapper:hover .arco-textarea-clear-icon{display:inline-block}.arco-textarea-clear-wrapper .arco-textarea{padding-right:20px}.arco-textarea-word-limit{position:absolute;right:10px;bottom:6px;color:var(--color-text-3);font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-textarea-clear-icon{position:absolute;top:10px;right:10px;display:none;font-size:12px}.arco-input-search .arco-input-append{padding:0;border:none}.arco-input-search .arco-input-suffix{color:var(--color-text-2);font-size:14px}.arco-input-search .arco-input-search-btn{border-top-left-radius:0;border-bottom-left-radius:0}.arco-input-wrapper.arco-input-password:not(.arco-input-disabled) .arco-input-suffix{color:var(--color-text-2);font-size:12px;cursor:pointer}.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:#fff3;cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.arco-link{display:inline-flex;align-items:center;justify-content:center;padding:1px 4px;color:rgb(var(--link-6));font-size:14px;line-height:1.5715;text-decoration:none;background-color:transparent;border-radius:var(--border-radius-small);cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-link:hover{color:rgb(var(--link-6));background-color:var(--color-fill-2)}.arco-link:active{color:rgb(var(--link-6));background-color:var(--color-fill-3);transition:none}.arco-link.arco-link-hoverless{display:inline;padding:0;background-color:unset}.arco-link.arco-link-hoverless:active,.arco-link.arco-link-hoverless:hover{background-color:unset}.arco-link.arco-link-disabled{color:var(--color-link-light-3);background:none;cursor:not-allowed}.arco-link.arco-link-loading{color:var(--color-link-light-3);background:none;cursor:default}.arco-link-status-success,.arco-link-status-success:hover,.arco-link-status-success:active{color:rgb(var(--success-6))}.arco-link-status-success.arco-link-disabled,.arco-link-status-success.arco-link-loading{color:var(--color-success-light-3)}.arco-link-status-danger,.arco-link-status-danger:hover,.arco-link-status-danger:active{color:rgb(var(--danger-6))}.arco-link-status-danger.arco-link-disabled,.arco-link-status-danger.arco-link-loading{color:var(--color-danger-light-3)}.arco-link-status-warning,.arco-link-status-warning:hover,.arco-link-status-warning:active{color:rgb(var(--warning-6))}.arco-link-status-warning.arco-link-disabled,.arco-link-status-warning.arco-link-loading{color:var(--color-warning-light-2)}.arco-link-icon{margin-right:6px;font-size:12px;vertical-align:middle}.arco-list{display:flex;flex-direction:column;box-sizing:border-box;width:100%;overflow-y:auto;color:var(--color-text-1);font-size:14px;line-height:1.5715;border-radius:var(--border-radius-medium)}.arco-list-wrapper{overflow:hidden}.arco-list-wrapper .arco-list-spin{display:block;height:100%;overflow:hidden}.arco-list-content{overflow:hidden}.arco-list-small .arco-list-content-wrapper .arco-list-header{padding:8px 20px}.arco-list-small .arco-list-content-wrapper .arco-list-footer,.arco-list-small .arco-list-content-wrapper .arco-list-content>.arco-list-item,.arco-list-small .arco-list-content-wrapper .arco-list-content .arco-list-col>.arco-list-item,.arco-list-small .arco-list-content-wrapper .arco-list-content.arco-list-virtual .arco-list-item{padding:9px 20px}.arco-list-medium .arco-list-content-wrapper .arco-list-header{padding:12px 20px}.arco-list-medium .arco-list-content-wrapper .arco-list-footer,.arco-list-medium .arco-list-content-wrapper .arco-list-content>.arco-list-item,.arco-list-medium .arco-list-content-wrapper .arco-list-content .arco-list-col>.arco-list-item,.arco-list-medium .arco-list-content-wrapper .arco-list-content.arco-list-virtual .arco-list-item{padding:13px 20px}.arco-list-large .arco-list-content-wrapper .arco-list-header{padding:16px 20px}.arco-list-large .arco-list-content-wrapper .arco-list-footer,.arco-list-large .arco-list-content-wrapper .arco-list-content>.arco-list-item,.arco-list-large .arco-list-content-wrapper .arco-list-content .arco-list-col>.arco-list-item,.arco-list-large .arco-list-content-wrapper .arco-list-content.arco-list-virtual .arco-list-item{padding:17px 20px}.arco-list-bordered{border:1px solid var(--color-neutral-3)}.arco-list-split .arco-list-header,.arco-list-split .arco-list-item:not(:last-child){border-bottom:1px solid var(--color-neutral-3)}.arco-list-split .arco-list-footer{border-top:1px solid var(--color-neutral-3)}.arco-list-header{color:var(--color-text-1);font-weight:500;font-size:16px;line-height:1.5}.arco-list-item{display:flex;justify-content:space-between;box-sizing:border-box;width:100%;overflow:hidden}.arco-list-item-main{flex:1}.arco-list-item-main .arco-list-item-action:not(:first-child){margin-top:4px}.arco-list-item-meta{display:flex;align-items:center;padding:4px 0}.arco-list-item-meta-avatar{display:flex}.arco-list-item-meta-avatar:not(:last-child){margin-right:16px}.arco-list-item-meta-title{color:var(--color-text-1);font-weight:500}.arco-list-item-meta-title:not(:last-child){margin-bottom:2px}.arco-list-item-meta-description{color:var(--color-text-2)}.arco-list-item-action{display:flex;flex-wrap:nowrap;align-self:center;margin:0;padding:0;list-style:none}.arco-list-item-action>li{display:inline-block;cursor:pointer}.arco-list-item-action>li:not(:last-child){margin-right:20px}.arco-list-hover .arco-list-item:hover{background-color:var(--color-fill-1)}.arco-list-pagination{float:right;margin-top:24px}.arco-list-pagination:after{display:block;clear:both;height:0;overflow:hidden;visibility:hidden;content:""}.arco-list-scroll-loading{display:flex;align-items:center;justify-content:center}.arco-list-content{flex:auto}.arco-list-content .arco-empty{display:flex;align-items:center;justify-content:center;height:100%}.arco-mention{position:relative;display:inline-block;box-sizing:border-box;width:100%}.arco-mention-measure{position:absolute;inset:0;overflow:auto;visibility:hidden;pointer-events:none}@keyframes arco-menu-selected-item-label-enter{0%{opacity:0}to{opacity:1}}.arco-menu{position:relative;box-sizing:border-box;width:100%;font-size:14px;line-height:1.5715;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-menu:focus-visible{outline:3px solid var(--color-primary-light-2)}.arco-menu-indent{display:inline-block;width:20px}.arco-menu .arco-menu-item,.arco-menu .arco-menu-group-title,.arco-menu .arco-menu-pop-header,.arco-menu .arco-menu-inline-header{position:relative;box-sizing:border-box;border-radius:var(--border-radius-small);cursor:pointer}.arco-menu .arco-menu-item.arco-menu-disabled,.arco-menu .arco-menu-group-title.arco-menu-disabled,.arco-menu .arco-menu-pop-header.arco-menu-disabled,.arco-menu .arco-menu-inline-header.arco-menu-disabled{cursor:not-allowed}.arco-menu .arco-menu-item.arco-menu-selected,.arco-menu .arco-menu-group-title.arco-menu-selected,.arco-menu .arco-menu-pop-header.arco-menu-selected,.arco-menu .arco-menu-inline-header.arco-menu-selected{font-weight:500;transition:color .2s cubic-bezier(0,0,1,1)}.arco-menu .arco-menu-item.arco-menu-selected svg,.arco-menu .arco-menu-group-title.arco-menu-selected svg,.arco-menu .arco-menu-pop-header.arco-menu-selected svg,.arco-menu .arco-menu-inline-header.arco-menu-selected svg{transition:color .2s cubic-bezier(0,0,1,1)}.arco-menu .arco-menu-item .arco-icon,.arco-menu .arco-menu-group-title .arco-icon,.arco-menu .arco-menu-pop-header .arco-icon,.arco-menu .arco-menu-inline-header .arco-icon,.arco-menu .arco-menu-item .arco-menu-icon,.arco-menu .arco-menu-group-title .arco-menu-icon,.arco-menu .arco-menu-pop-header .arco-menu-icon,.arco-menu .arco-menu-inline-header .arco-menu-icon{margin-right:16px}.arco-menu .arco-menu-item .arco-menu-icon .arco-icon,.arco-menu .arco-menu-group-title .arco-menu-icon .arco-icon,.arco-menu .arco-menu-pop-header .arco-menu-icon .arco-icon,.arco-menu .arco-menu-inline-header .arco-menu-icon .arco-icon{margin-right:0}.arco-menu-light{background-color:var(--color-menu-light-bg)}.arco-menu-light .arco-menu-item,.arco-menu-light .arco-menu-group-title,.arco-menu-light .arco-menu-pop-header,.arco-menu-light .arco-menu-inline-header{color:var(--color-text-2);background-color:var(--color-menu-light-bg)}.arco-menu-light .arco-menu-item .arco-icon,.arco-menu-light .arco-menu-group-title .arco-icon,.arco-menu-light .arco-menu-pop-header .arco-icon,.arco-menu-light .arco-menu-inline-header .arco-icon,.arco-menu-light .arco-menu-item .arco-menu-icon,.arco-menu-light .arco-menu-group-title .arco-menu-icon,.arco-menu-light .arco-menu-pop-header .arco-menu-icon,.arco-menu-light .arco-menu-inline-header .arco-menu-icon{color:var(--color-text-3)}.arco-menu-light .arco-menu-item:hover,.arco-menu-light .arco-menu-group-title:hover,.arco-menu-light .arco-menu-pop-header:hover,.arco-menu-light .arco-menu-inline-header:hover{color:var(--color-text-2);background-color:var(--color-fill-2)}.arco-menu-light .arco-menu-item:hover .arco-icon,.arco-menu-light .arco-menu-group-title:hover .arco-icon,.arco-menu-light .arco-menu-pop-header:hover .arco-icon,.arco-menu-light .arco-menu-inline-header:hover .arco-icon,.arco-menu-light .arco-menu-item:hover .arco-menu-icon,.arco-menu-light .arco-menu-group-title:hover .arco-menu-icon,.arco-menu-light .arco-menu-pop-header:hover .arco-menu-icon,.arco-menu-light .arco-menu-inline-header:hover .arco-menu-icon{color:var(--color-text-3)}.arco-menu-light .arco-menu-item.arco-menu-selected,.arco-menu-light .arco-menu-group-title.arco-menu-selected,.arco-menu-light .arco-menu-pop-header.arco-menu-selected,.arco-menu-light .arco-menu-inline-header.arco-menu-selected,.arco-menu-light .arco-menu-item.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-group-title.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-pop-header.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-item.arco-menu-selected .arco-menu-icon,.arco-menu-light .arco-menu-group-title.arco-menu-selected .arco-menu-icon,.arco-menu-light .arco-menu-pop-header.arco-menu-selected .arco-menu-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-menu-icon{color:rgb(var(--primary-6))}.arco-menu-light .arco-menu-item.arco-menu-disabled,.arco-menu-light .arco-menu-group-title.arco-menu-disabled,.arco-menu-light .arco-menu-pop-header.arco-menu-disabled,.arco-menu-light .arco-menu-inline-header.arco-menu-disabled{color:var(--color-text-4);background-color:var(--color-menu-light-bg)}.arco-menu-light .arco-menu-item.arco-menu-disabled .arco-icon,.arco-menu-light .arco-menu-group-title.arco-menu-disabled .arco-icon,.arco-menu-light .arco-menu-pop-header.arco-menu-disabled .arco-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-disabled .arco-icon,.arco-menu-light .arco-menu-item.arco-menu-disabled .arco-menu-icon,.arco-menu-light .arco-menu-group-title.arco-menu-disabled .arco-menu-icon,.arco-menu-light .arco-menu-pop-header.arco-menu-disabled .arco-menu-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-disabled .arco-menu-icon{color:var(--color-text-4)}.arco-menu-light .arco-menu-item.arco-menu-selected{background-color:var(--color-fill-2)}.arco-menu-light .arco-menu-inline-header.arco-menu-selected,.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-icon,.arco-menu-light .arco-menu-inline-header.arco-menu-selected .arco-menu-icon{color:rgb(var(--primary-6))}.arco-menu-light .arco-menu-inline-header.arco-menu-selected:hover{background-color:var(--color-fill-2)}.arco-menu-light.arco-menu-horizontal .arco-menu-item.arco-menu-selected,.arco-menu-light.arco-menu-horizontal .arco-menu-group-title.arco-menu-selected,.arco-menu-light.arco-menu-horizontal .arco-menu-pop-header.arco-menu-selected,.arco-menu-light.arco-menu-horizontal .arco-menu-inline-header.arco-menu-selected{background:none;transition:color .2s cubic-bezier(0,0,1,1)}.arco-menu-light.arco-menu-horizontal .arco-menu-item.arco-menu-selected:hover,.arco-menu-light.arco-menu-horizontal .arco-menu-group-title.arco-menu-selected:hover,.arco-menu-light.arco-menu-horizontal .arco-menu-pop-header.arco-menu-selected:hover,.arco-menu-light.arco-menu-horizontal .arco-menu-inline-header.arco-menu-selected:hover{background-color:var(--color-fill-2)}.arco-menu-light .arco-menu-group-title{color:var(--color-text-3);pointer-events:none}.arco-menu-light .arco-menu-collapse-button{color:var(--color-text-3);background-color:var(--color-fill-1)}.arco-menu-light .arco-menu-collapse-button:hover{background-color:var(--color-fill-3)}.arco-menu-dark{background-color:var(--color-menu-dark-bg)}.arco-menu-dark .arco-menu-item,.arco-menu-dark .arco-menu-group-title,.arco-menu-dark .arco-menu-pop-header,.arco-menu-dark .arco-menu-inline-header{color:var(--color-text-4);background-color:var(--color-menu-dark-bg)}.arco-menu-dark .arco-menu-item .arco-icon,.arco-menu-dark .arco-menu-group-title .arco-icon,.arco-menu-dark .arco-menu-pop-header .arco-icon,.arco-menu-dark .arco-menu-inline-header .arco-icon,.arco-menu-dark .arco-menu-item .arco-menu-icon,.arco-menu-dark .arco-menu-group-title .arco-menu-icon,.arco-menu-dark .arco-menu-pop-header .arco-menu-icon,.arco-menu-dark .arco-menu-inline-header .arco-menu-icon{color:var(--color-text-3)}.arco-menu-dark .arco-menu-item:hover,.arco-menu-dark .arco-menu-group-title:hover,.arco-menu-dark .arco-menu-pop-header:hover,.arco-menu-dark .arco-menu-inline-header:hover{color:var(--color-text-4);background-color:var(--color-menu-dark-hover)}.arco-menu-dark .arco-menu-item:hover .arco-icon,.arco-menu-dark .arco-menu-group-title:hover .arco-icon,.arco-menu-dark .arco-menu-pop-header:hover .arco-icon,.arco-menu-dark .arco-menu-inline-header:hover .arco-icon,.arco-menu-dark .arco-menu-item:hover .arco-menu-icon,.arco-menu-dark .arco-menu-group-title:hover .arco-menu-icon,.arco-menu-dark .arco-menu-pop-header:hover .arco-menu-icon,.arco-menu-dark .arco-menu-inline-header:hover .arco-menu-icon{color:var(--color-text-3)}.arco-menu-dark .arco-menu-item.arco-menu-selected,.arco-menu-dark .arco-menu-group-title.arco-menu-selected,.arco-menu-dark .arco-menu-pop-header.arco-menu-selected,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected,.arco-menu-dark .arco-menu-item.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-group-title.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-pop-header.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-item.arco-menu-selected .arco-menu-icon,.arco-menu-dark .arco-menu-group-title.arco-menu-selected .arco-menu-icon,.arco-menu-dark .arco-menu-pop-header.arco-menu-selected .arco-menu-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected .arco-menu-icon{color:var(--color-white)}.arco-menu-dark .arco-menu-item.arco-menu-disabled,.arco-menu-dark .arco-menu-group-title.arco-menu-disabled,.arco-menu-dark .arco-menu-pop-header.arco-menu-disabled,.arco-menu-dark .arco-menu-inline-header.arco-menu-disabled{color:var(--color-text-2);background-color:var(--color-menu-dark-bg)}.arco-menu-dark .arco-menu-item.arco-menu-disabled .arco-icon,.arco-menu-dark .arco-menu-group-title.arco-menu-disabled .arco-icon,.arco-menu-dark .arco-menu-pop-header.arco-menu-disabled .arco-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-disabled .arco-icon,.arco-menu-dark .arco-menu-item.arco-menu-disabled .arco-menu-icon,.arco-menu-dark .arco-menu-group-title.arco-menu-disabled .arco-menu-icon,.arco-menu-dark .arco-menu-pop-header.arco-menu-disabled .arco-menu-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-disabled .arco-menu-icon{color:var(--color-text-2)}.arco-menu-dark .arco-menu-item.arco-menu-selected{background-color:var(--color-menu-dark-hover)}.arco-menu-dark .arco-menu-inline-header.arco-menu-selected,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected .arco-icon,.arco-menu-dark .arco-menu-inline-header.arco-menu-selected .arco-menu-icon{color:rgb(var(--primary-6))}.arco-menu-dark .arco-menu-inline-header.arco-menu-selected:hover{background-color:var(--color-menu-dark-hover)}.arco-menu-dark.arco-menu-horizontal .arco-menu-item.arco-menu-selected,.arco-menu-dark.arco-menu-horizontal .arco-menu-group-title.arco-menu-selected,.arco-menu-dark.arco-menu-horizontal .arco-menu-pop-header.arco-menu-selected,.arco-menu-dark.arco-menu-horizontal .arco-menu-inline-header.arco-menu-selected{background:none;transition:color .2s cubic-bezier(0,0,1,1)}.arco-menu-dark.arco-menu-horizontal .arco-menu-item.arco-menu-selected:hover,.arco-menu-dark.arco-menu-horizontal .arco-menu-group-title.arco-menu-selected:hover,.arco-menu-dark.arco-menu-horizontal .arco-menu-pop-header.arco-menu-selected:hover,.arco-menu-dark.arco-menu-horizontal .arco-menu-inline-header.arco-menu-selected:hover{background-color:var(--color-menu-dark-hover)}.arco-menu-dark .arco-menu-group-title{color:var(--color-text-3);pointer-events:none}.arco-menu-dark .arco-menu-collapse-button{color:var(--color-white);background-color:rgb(var(--primary-6))}.arco-menu-dark .arco-menu-collapse-button:hover{background-color:rgb(var(--primary-7))}.arco-menu a,.arco-menu a:hover,.arco-menu a:focus,.arco-menu a:active{color:inherit;text-decoration:none;cursor:inherit}.arco-menu-inner{box-sizing:border-box;width:100%;height:100%;overflow:auto}.arco-menu-icon-suffix.is-open{transform:rotate(180deg)}.arco-menu-vertical .arco-menu-item,.arco-menu-vertical .arco-menu-group-title,.arco-menu-vertical .arco-menu-pop-header,.arco-menu-vertical .arco-menu-inline-header{padding:0 12px;line-height:40px}.arco-menu-vertical .arco-menu-item .arco-menu-icon-suffix .arco-icon,.arco-menu-vertical .arco-menu-group-title .arco-menu-icon-suffix .arco-icon,.arco-menu-vertical .arco-menu-pop-header .arco-menu-icon-suffix .arco-icon,.arco-menu-vertical .arco-menu-inline-header .arco-menu-icon-suffix .arco-icon{margin-right:0}.arco-menu-vertical .arco-menu-item,.arco-menu-vertical .arco-menu-group-title,.arco-menu-vertical .arco-menu-pop-header,.arco-menu-vertical .arco-menu-inline-header{margin-bottom:4px}.arco-menu-vertical .arco-menu-item:not(.arco-menu-has-icon),.arco-menu-vertical .arco-menu-group-title:not(.arco-menu-has-icon),.arco-menu-vertical .arco-menu-pop-header:not(.arco-menu-has-icon),.arco-menu-vertical .arco-menu-inline-header:not(.arco-menu-has-icon){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-menu-vertical .arco-menu-item.arco-menu-has-icon,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon{display:flex;align-items:center}.arco-menu-vertical .arco-menu-item.arco-menu-has-icon>.arco-menu-indent-list,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon>.arco-menu-indent-list,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon>.arco-menu-indent-list,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon>.arco-menu-indent-list,.arco-menu-vertical .arco-menu-item.arco-menu-has-icon>.arco-menu-icon,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon>.arco-menu-icon,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon>.arco-menu-icon,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon>.arco-menu-icon{flex:none}.arco-menu-vertical .arco-menu-item.arco-menu-has-icon .arco-menu-icon,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon .arco-menu-icon,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon .arco-menu-icon,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon .arco-menu-icon{line-height:1}.arco-menu-vertical .arco-menu-item.arco-menu-has-icon .arco-menu-title,.arco-menu-vertical .arco-menu-group-title.arco-menu-has-icon .arco-menu-title,.arco-menu-vertical .arco-menu-pop-header.arco-menu-has-icon .arco-menu-title,.arco-menu-vertical .arco-menu-inline-header.arco-menu-has-icon .arco-menu-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-menu-vertical .arco-menu-item .arco-menu-item-inner,.arco-menu-vertical .arco-menu-group-title .arco-menu-item-inner,.arco-menu-vertical .arco-menu-pop-header .arco-menu-item-inner,.arco-menu-vertical .arco-menu-inline-header .arco-menu-item-inner{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.arco-menu-vertical .arco-menu-item .arco-menu-icon-suffix,.arco-menu-vertical .arco-menu-group-title .arco-menu-icon-suffix,.arco-menu-vertical .arco-menu-pop-header .arco-menu-icon-suffix,.arco-menu-vertical .arco-menu-inline-header .arco-menu-icon-suffix{position:absolute;right:12px}.arco-menu-vertical .arco-menu-inner{padding:4px 8px}.arco-menu-vertical .arco-menu-item.arco-menu-item-indented{display:flex}.arco-menu-vertical .arco-menu-pop-header,.arco-menu-vertical .arco-menu-inline-header{padding-right:28px}.arco-menu-horizontal{width:100%;height:auto}.arco-menu-horizontal .arco-menu-item,.arco-menu-horizontal .arco-menu-group-title,.arco-menu-horizontal .arco-menu-pop-header,.arco-menu-horizontal .arco-menu-inline-header{padding:0 12px;line-height:30px}.arco-menu-horizontal .arco-menu-item .arco-menu-icon-suffix .arco-icon,.arco-menu-horizontal .arco-menu-group-title .arco-menu-icon-suffix .arco-icon,.arco-menu-horizontal .arco-menu-pop-header .arco-menu-icon-suffix .arco-icon,.arco-menu-horizontal .arco-menu-inline-header .arco-menu-icon-suffix .arco-icon{margin-right:0}.arco-menu-horizontal .arco-menu-item .arco-icon,.arco-menu-horizontal .arco-menu-group-title .arco-icon,.arco-menu-horizontal .arco-menu-pop-header .arco-icon,.arco-menu-horizontal .arco-menu-inline-header .arco-icon,.arco-menu-horizontal .arco-menu-item .arco-menu-icon,.arco-menu-horizontal .arco-menu-group-title .arco-menu-icon,.arco-menu-horizontal .arco-menu-pop-header .arco-menu-icon,.arco-menu-horizontal .arco-menu-inline-header .arco-menu-icon{margin-right:16px}.arco-menu-horizontal .arco-menu-item .arco-menu-icon-suffix,.arco-menu-horizontal .arco-menu-group-title .arco-menu-icon-suffix,.arco-menu-horizontal .arco-menu-pop-header .arco-menu-icon-suffix,.arco-menu-horizontal .arco-menu-inline-header .arco-menu-icon-suffix{margin-left:6px}.arco-menu-horizontal .arco-menu-inner{display:flex;align-items:center;padding:14px 20px}.arco-menu-horizontal .arco-menu-item,.arco-menu-horizontal .arco-menu-pop{display:inline-block;flex-shrink:0;vertical-align:middle}.arco-menu-horizontal .arco-menu-item:not(:first-child),.arco-menu-horizontal .arco-menu-pop:not(:first-child){margin-left:12px}.arco-menu-horizontal .arco-menu-pop:after{position:absolute;bottom:-14px;left:0;width:100%;height:14px;content:" "}.arco-menu-overflow-wrap{width:100%}.arco-menu-overflow-sub-menu-mirror,.arco-menu-overflow-hidden-menu-item{position:absolute!important;white-space:nowrap;visibility:hidden;pointer-events:none}.arco-menu-selected-label{position:absolute;right:12px;bottom:-14px;left:12px;height:3px;background-color:rgb(var(--primary-6));animation:arco-menu-selected-item-label-enter .2s cubic-bezier(0,0,1,1)}.arco-menu-pop-button{width:auto;background:none;box-shadow:none}.arco-menu-pop-button.arco-menu-collapsed{width:auto}.arco-menu-pop-button .arco-menu-item,.arco-menu-pop-button .arco-menu-group-title,.arco-menu-pop-button .arco-menu-pop-header,.arco-menu-pop-button .arco-menu-inline-header{width:40px;height:40px;margin-bottom:16px;line-height:40px;border:1px solid transparent;border-radius:50%;box-shadow:0 4px 10px #0000001a}.arco-menu-collapsed{width:48px}.arco-menu-collapsed .arco-menu-inner{padding:4px}.arco-menu-collapsed .arco-menu-icon-suffix{display:none}.arco-menu-collapsed .arco-menu-has-icon>*:not(.arco-menu-icon){opacity:0}.arco-menu-collapsed .arco-menu-item .arco-icon,.arco-menu-collapsed .arco-menu-group-title .arco-icon,.arco-menu-collapsed .arco-menu-pop-header .arco-icon,.arco-menu-collapsed .arco-menu-inline-header .arco-icon{margin-right:100%}.arco-menu-collapse-button{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--border-radius-small);cursor:pointer}.arco-menu-inline-content{height:auto;overflow:hidden;transition:height .2s cubic-bezier(.34,.69,.1,1)}.arco-menu-inline-content-hide{height:0}.arco-menu-item-tooltip a{color:inherit;cursor:text}.arco-menu-item-tooltip a:hover,.arco-menu-item-tooltip a:focus,.arco-menu-item-tooltip a:active{color:inherit}.arco-menu-pop-trigger.arco-trigger-position-bl{transform:translateY(14px)}.arco-menu-pop-trigger.arco-trigger-position-bl .arco-trigger-arrow{z-index:0;border-top:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-menu-pop-trigger.arco-trigger-position-rt{transform:translate(8px)}.arco-menu-pop-trigger.arco-trigger-position-rt .arco-trigger-arrow{z-index:0;border-bottom:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-menu-pop-trigger.arco-menu-pop-trigger-dark .arco-trigger-arrow{background-color:var(--color-menu-dark-bg);border-color:var(--color-menu-dark-bg)}.arco-trigger-menu{position:relative;box-sizing:border-box;max-height:200px;padding:4px 0;overflow:auto;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-trigger-menu-hidden{display:none}.arco-trigger-menu-item,.arco-trigger-menu-pop-header{position:relative;z-index:1;box-sizing:border-box;width:100%;height:36px;padding:0 12px;color:var(--color-text-1);font-size:14px;line-height:36px;text-align:left;background-color:transparent;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-trigger-menu-item.arco-trigger-menu-selected,.arco-trigger-menu-pop-header.arco-trigger-menu-selected{color:var(--color-text-1);font-weight:500;background-color:transparent;transition:all .1s cubic-bezier(0,0,1,1)}.arco-trigger-menu-item:hover,.arco-trigger-menu-pop-header:hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-trigger-menu-item.arco-trigger-menu-disabled,.arco-trigger-menu-pop-header.arco-trigger-menu-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-trigger-menu .arco-trigger-menu-has-icon{display:flex;align-items:center}.arco-trigger-menu .arco-trigger-menu-has-icon .arco-trigger-menu-icon{margin-right:8px;line-height:1}.arco-trigger-menu .arco-trigger-menu-has-icon>*{flex:none}.arco-trigger-menu .arco-trigger-menu-has-icon .arco-trigger-menu-title{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-trigger-menu-pop-header{display:flex;align-items:center;justify-content:space-between}.arco-trigger-menu-pop-header .arco-trigger-menu-icon-suffix{margin-left:12px}.arco-trigger-menu-group:first-child .arco-trigger-menu-group-title{padding-top:4px}.arco-trigger-menu-group-title{box-sizing:border-box;width:100%;padding:8px 12px 0;color:var(--color-text-3);font-size:12px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-trigger-menu-pop-trigger .arco-trigger-arrow{display:none}.arco-trigger-menu-dark{background-color:var(--color-menu-dark-bg);border-color:var(--color-menu-dark-bg)}.arco-trigger-menu-dark .arco-trigger-menu-item,.arco-trigger-menu-dark .arco-trigger-menu-pop-header{color:var(--color-text-4);background-color:transparent}.arco-trigger-menu-dark .arco-trigger-menu-item.arco-trigger-menu-selected,.arco-trigger-menu-dark .arco-trigger-menu-pop-header.arco-trigger-menu-selected{color:var(--color-white);background-color:transparent}.arco-trigger-menu-dark .arco-trigger-menu-item.arco-trigger-menu-selected:hover,.arco-trigger-menu-dark .arco-trigger-menu-pop-header.arco-trigger-menu-selected:hover{color:var(--color-white)}.arco-trigger-menu-dark .arco-trigger-menu-item:hover,.arco-trigger-menu-dark .arco-trigger-menu-pop-header:hover{color:var(--color-text-4);background-color:var(--color-menu-dark-hover)}.arco-trigger-menu-dark .arco-trigger-menu-item.arco-trigger-menu-disabled,.arco-trigger-menu-dark .arco-trigger-menu-pop-header.arco-trigger-menu-disabled{color:var(--color-text-2);background-color:transparent}.arco-trigger-menu-dark .arco-trigger-menu-group-title{color:var(--color-text-3)}.arco-message-list{position:fixed;z-index:1003;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100%;margin:0;padding:0 10px;text-align:center;pointer-events:none;left:0}.arco-message-list-top{top:40px}.arco-message-list-bottom{bottom:40px}.arco-message{position:relative;display:inline-flex;align-items:center;margin-bottom:16px;padding:10px 16px;overflow:hidden;line-height:1;text-align:center;list-style:none;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-small);box-shadow:0 4px 10px #0000001a;transition:all .1s cubic-bezier(0,0,1,1);pointer-events:auto}.arco-message-icon{display:inline-block;margin-right:8px;color:var(--color-text-1);font-size:20px;vertical-align:middle;animation:arco-msg-fade .1s cubic-bezier(0,0,1,1),arco-msg-fade .4s cubic-bezier(.3,1.3,.3,1)}.arco-message-content{font-size:14px;color:var(--color-text-1);vertical-align:middle}.arco-message-info{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-info .arco-message-icon{color:rgb(var(--primary-6))}.arco-message-info .arco-message-content{color:var(--color-text-1)}.arco-message-success{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-success .arco-message-icon{color:rgb(var(--success-6))}.arco-message-success .arco-message-content{color:var(--color-text-1)}.arco-message-warning{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-warning .arco-message-icon{color:rgb(var(--warning-6))}.arco-message-warning .arco-message-content{color:var(--color-text-1)}.arco-message-error{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-error .arco-message-icon{color:rgb(var(--danger-6))}.arco-message-error .arco-message-content{color:var(--color-text-1)}.arco-message-loading{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-message-loading .arco-message-icon{color:rgb(var(--primary-6))}.arco-message-loading .arco-message-content{color:var(--color-text-1)}.arco-message-close-btn{margin-left:8px;color:var(--color-text-1);font-size:12px}.arco-message .arco-icon-hover.arco-message-icon-hover:before{width:20px;height:20px}.fade-message-enter-from,.fade-message-appear-from{opacity:0}.fade-message-enter-to,.fade-message-appear-to{opacity:1}.fade-message-enter-active,.fade-message-appear-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.fade-message-leave-from{opacity:1}.fade-message-leave-to{opacity:0}.fade-message-leave-active{position:absolute}.flip-list-move{transition:transform .8s ease}@keyframes arco-msg-fade{0%{opacity:0}to{opacity:1}}@keyframes arco-msg-scale{0%{transform:scale(0)}to{transform:scale(1)}}.arco-modal-container{position:fixed;inset:0}.arco-modal-mask{position:absolute;inset:0;background-color:var(--color-mask-bg)}.arco-modal-wrapper{position:absolute;inset:0;overflow:auto;text-align:center}.arco-modal-wrapper.arco-modal-wrapper-align-center{white-space:nowrap}.arco-modal-wrapper.arco-modal-wrapper-align-center:after{display:inline-block;width:0;height:100%;vertical-align:middle;content:""}.arco-modal-wrapper.arco-modal-wrapper-align-center .arco-modal{top:0;vertical-align:middle}.arco-modal-wrapper.arco-modal-wrapper-moved{text-align:left}.arco-modal-wrapper.arco-modal-wrapper-moved .arco-modal{top:0;vertical-align:top}.arco-modal{position:relative;top:100px;display:inline-block;width:520px;margin:0 auto;line-height:1.5715;white-space:initial;text-align:left;background-color:var(--color-bg-3);border-radius:var(--border-radius-medium)}.arco-modal-draggable .arco-modal-header{cursor:move}.arco-modal-header{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;width:100%;height:48px;padding:0 20px;border-bottom:1px solid var(--color-neutral-3)}.arco-modal-header .arco-modal-title{display:flex;flex:1;align-items:center;justify-content:center}.arco-modal-header .arco-modal-title-align-start{justify-content:flex-start}.arco-modal-header .arco-modal-title-align-center{justify-content:center}.arco-modal-body{position:relative;padding:24px 20px;overflow:auto;color:var(--color-text-1);font-size:14px}.arco-modal-footer{flex-shrink:0;box-sizing:border-box;width:100%;padding:16px 20px;text-align:right;border-top:1px solid var(--color-neutral-3)}.arco-modal-footer>.arco-btn:not(:nth-child(1)){margin-left:12px}.arco-modal-close-btn{margin-left:-12px;color:var(--color-text-1);font-size:12px;cursor:pointer}.arco-modal-title{color:var(--color-text-1);font-weight:500;font-size:16px}.arco-modal-title-icon{margin-right:10px;font-size:18px;vertical-align:-.15em}.arco-modal-title-icon .arco-icon-info-circle-fill{color:rgb(var(--primary-6))}.arco-modal-title-icon .arco-icon-check-circle-fill{color:rgb(var(--success-6))}.arco-modal-title-icon .arco-icon-exclamation-circle-fill{color:rgb(var(--warning-6))}.arco-modal-title-icon .arco-icon-close-circle-fill{color:rgb(var(--danger-6))}.arco-modal-simple{width:400px;padding:24px 32px 32px}.arco-modal-simple .arco-modal-header,.arco-modal-simple .arco-modal-footer{height:unset;padding:0;border:none}.arco-modal-simple .arco-modal-header{margin-bottom:24px}.arco-modal-simple .arco-modal-title{justify-content:center}.arco-modal-simple .arco-modal-title-align-start{justify-content:flex-start}.arco-modal-simple .arco-modal-title-align-center{justify-content:center}.arco-modal-simple .arco-modal-footer{margin-top:32px;text-align:center}.arco-modal-simple .arco-modal-body{padding:0}.arco-modal-fullscreen{top:0;display:inline-flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%}.arco-modal-fullscreen .arco-modal-footer{margin-top:auto}.zoom-modal-enter-from,.zoom-modal-appear-from{transform:scale(.5);opacity:0}.zoom-modal-enter-to,.zoom-modal-appear-to{transform:scale(1);opacity:1}.zoom-modal-enter-active,.zoom-modal-appear-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1),transform .4s cubic-bezier(.3,1.3,.3,1)}.zoom-modal-leave-from{transform:scale(1);opacity:1}.zoom-modal-leave-to{transform:scale(.5);opacity:0}.zoom-modal-leave-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1),transform .4s cubic-bezier(.3,1.3,.3,1)}.fade-modal-enter-from,.fade-modal-appear-from{opacity:0}.fade-modal-enter-to,.fade-modal-appear-to{opacity:1}.fade-modal-enter-active,.fade-modal-appear-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1)}.fade-modal-leave-from{opacity:1}.fade-modal-leave-to{opacity:0}.fade-modal-leave-active{transition:opacity .4s cubic-bezier(.3,1.3,.3,1)}.arco-notification-list{position:fixed;z-index:1003;margin:0;padding-left:0}.arco-notification-list-top-left{top:20px;left:20px}.arco-notification-list-top-right{top:20px;right:20px}.arco-notification-list-top-right .arco-notification{margin-left:auto}.arco-notification-list-bottom-left{bottom:20px;left:20px}.arco-notification-list-bottom-right{right:20px;bottom:20px}.arco-notification-list-bottom-right .arco-notification{margin-left:auto}.arco-notification{position:relative;display:flex;box-sizing:border-box;width:340px;padding:20px;overflow:hidden;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 12px #00000026;opacity:1;transition:opacity .2s cubic-bezier(0,0,1,1)}.arco-notification:not(:last-child){margin-bottom:20px}.arco-notification-icon{display:flex;align-items:center;font-size:24px}.arco-notification-info{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-notification-info .arco-notification-icon{color:rgb(var(--primary-6))}.arco-notification-success{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-notification-success .arco-notification-icon{color:rgb(var(--success-6))}.arco-notification-warning{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-notification-warning .arco-notification-icon{color:rgb(var(--warning-6))}.arco-notification-error{background-color:var(--color-bg-popup);border-color:var(--color-neutral-3)}.arco-notification-error .arco-notification-icon{color:rgb(var(--danger-6))}.arco-notification-left{padding-right:16px}.arco-notification-right{flex:1;word-break:break-word}.arco-notification-title{color:var(--color-text-1);font-weight:500;font-size:16px}.arco-notification-title+.arco-notification-content{margin-top:4px}.arco-notification-content{color:var(--color-text-1);font-size:14px}.arco-notification-info .arco-notification-title,.arco-notification-info .arco-notification-content,.arco-notification-success .arco-notification-title,.arco-notification-success .arco-notification-content,.arco-notification-warning .arco-notification-title,.arco-notification-warning .arco-notification-content,.arco-notification-error .arco-notification-title,.arco-notification-error .arco-notification-content{color:var(--color-text-1)}.arco-notification-footer{margin-top:16px;text-align:right}.arco-notification-close-btn{position:absolute;top:12px;right:12px;color:var(--color-text-1);font-size:12px;cursor:pointer}.arco-notification-close-btn>svg{position:relative}.arco-notification .arco-icon-hover.arco-notification-icon-hover:before{width:20px;height:20px}.slide-left-notification-enter-from,.slide-left-notification-appear-from{transform:translate(-100%)}.slide-left-notification-enter-to,.slide-left-notification-appear-to{transform:translate(0)}.slide-left-notification-enter-active,.slide-left-notification-appear-active{transition:transform .4s cubic-bezier(.3,1.3,.3,1)}.slide-left-notification-leave-from{opacity:1}.slide-left-notification-leave-to{height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;opacity:0}.slide-left-notification-leave-active{transition:all .3s cubic-bezier(.34,.69,.1,1)}.slide-right-notification-enter-from,.slide-right-notification-appear-from{transform:translate(100%)}.slide-right-notification-enter-to,.slide-right-notification-appear-to{transform:translate(0)}.slide-right-notification-enter-active,.slide-right-notification-appear-active{transition:transform .4s cubic-bezier(.3,1.3,.3,1)}.slide-right-notification-leave-from{opacity:1}.slide-right-notification-leave-to{height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;opacity:0}.slide-right-notification-leave-active{transition:all .3s cubic-bezier(.34,.69,.1,1)}.arco-overflow-list{display:flex;align-items:center;justify-content:flex-start}.arco-overflow-list>*:not(:last-child){flex-shrink:0}.arco-overflow-list-spacer{flex:1;min-width:0;height:1px}.arco-page-header{padding:16px 0}.arco-page-header-breadcrumb+.arco-page-header-header{margin-top:4px}.arco-page-header-wrapper{padding-right:20px;padding-left:24px}.arco-page-header-header{display:flex;align-items:center;justify-content:space-between;line-height:28px}.arco-page-header-header-left{display:flex;align-items:center}.arco-page-header-main{display:flex;align-items:center;min-height:30px}.arco-page-header-main-with-back{margin-left:-8px;padding-left:8px}.arco-page-header-extra{overflow:hidden;white-space:nowrap}.arco-page-header .arco-icon-hover.arco-page-header-icon-hover:before{width:30px;height:30px}.arco-page-header .arco-icon-hover.arco-page-header-icon-hover:hover:before{background-color:var(--color-fill-2)}.arco-page-header-back-btn{margin-right:12px;color:var(--color-text-2);font-size:14px}.arco-page-header-back-btn-icon{position:relative}.arco-page-header-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--color-text-1);font-weight:600;font-size:20px}.arco-page-header-divider{width:1px;height:16px;margin-right:12px;margin-left:12px;background-color:var(--color-fill-3)}.arco-page-header-subtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--color-text-3);font-size:14px}.arco-page-header-content{padding:20px 32px;border-top:1px solid var(--color-neutral-3)}.arco-page-header-footer{padding:16px 20px 0 24px}.arco-page-header-with-breadcrumb{padding:12px 0}.arco-page-header-with-breadcrumb .arco-page-header-footer{padding-top:12px}.arco-page-header-with-content .arco-page-header-wrapper{padding-bottom:12px}.arco-page-header-with-footer{padding-bottom:0}.arco-page-header-wrapper .arco-page-header-header{flex-wrap:wrap}.arco-page-header-wrapper .arco-page-header-header .arco-page-header-head-extra{margin-top:4px}.arco-pagination{display:flex;align-items:center;font-size:14px}.arco-pagination-list{display:inline-block;margin:0;padding:0;white-space:nowrap;list-style:none}.arco-pagination-item{display:inline-block;box-sizing:border-box;padding:0 8px;color:var(--color-text-2);text-align:center;vertical-align:middle;list-style:none;background-color:transparent;border:0 solid transparent;border-radius:var(--border-radius-small);outline:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:32px;height:32px;font-size:14px;line-height:32px}.arco-pagination-item-previous,.arco-pagination-item-next{font-size:12px}.arco-pagination-item:hover{color:var(--color-text-2);background-color:var(--color-fill-1);border-color:transparent}.arco-pagination-item-active,.arco-pagination-item-active:hover{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1);border-color:transparent;transition:color .2s cubic-bezier(0,0,1,1),background-color .2s cubic-bezier(0,0,1,1)}.arco-pagination-item-disabled,.arco-pagination-item-disabled:hover{color:var(--color-text-4);background-color:transparent;border-color:transparent;cursor:not-allowed}.arco-pagination-item:not(:last-child){margin-right:8px}.arco-pagination-item-previous,.arco-pagination-item-next{color:var(--color-text-2);font-size:12px;background-color:transparent}.arco-pagination-item-previous:not(.arco-pagination-item-disabled):hover,.arco-pagination-item-next:not(.arco-pagination-item-disabled):hover{color:rgb(var(--primary-6));background-color:var(--color-fill-1)}.arco-pagination-item-previous:after,.arco-pagination-item-next:after{display:inline-block;font-size:0;vertical-align:middle;content:"."}.arco-pagination .arco-pagination-item-previous.arco-pagination-item-disabled,.arco-pagination .arco-pagination-item-next.arco-pagination-item-disabled{color:var(--color-text-4);background-color:transparent}.arco-pagination-item-jumper{font-size:16px}.arco-pagination-jumper{display:flex;align-items:center;margin-left:8px}.arco-pagination-jumper>span{font-size:14px}.arco-pagination-jumper-text-goto,.arco-pagination-jumper-prepend,.arco-pagination-jumper-append{color:var(--color-text-3);white-space:nowrap}.arco-pagination-jumper-prepend{margin-right:8px}.arco-pagination-jumper-append{margin-left:8px}.arco-pagination-jumper .arco-pagination-jumper-input{width:40px;padding-right:2px;padding-left:2px}.arco-pagination-jumper .arco-pagination-jumper-input input{text-align:center}.arco-pagination-options{position:relative;display:inline-block;flex:0 0 auto;min-width:0;margin-left:8px;text-align:center;vertical-align:middle}.arco-pagination-options .arco-select{width:auto}.arco-pagination-options .arco-select-view-value{padding-right:6px;overflow:inherit}.arco-pagination-total{display:inline-block;height:100%;margin-right:8px;color:var(--color-text-1);font-size:14px;line-height:32px;white-space:nowrap}.arco-pagination-jumper{flex:0 0 auto}.arco-pagination-jumper-separator{padding:0 12px}.arco-pagination-jumper-total-page{margin-right:8px}.arco-pagination-simple{display:flex;align-items:center}.arco-pagination-simple .arco-pagination-item{margin-right:0}.arco-pagination-simple .arco-pagination-jumper{margin:0 4px;color:var(--color-text-1)}.arco-pagination-simple .arco-pagination-jumper .arco-pagination-jumper-input{width:40px;margin-left:0}.arco-pagination-simple .arco-pagination-item-previous,.arco-pagination-simple .arco-pagination-item-next{color:var(--color-text-2);background-color:transparent}.arco-pagination-simple .arco-pagination-item-previous:not(.arco-pagination-item-disabled):hover,.arco-pagination-simple .arco-pagination-item-next:not(.arco-pagination-item-disabled):hover{color:rgb(var(--primary-6));background-color:var(--color-fill-1)}.arco-pagination-simple .arco-pagination-item-previous.arco-pagination-item-disabled,.arco-pagination-simple .arco-pagination-item-next.arco-pagination-item-disabled{color:var(--color-text-4);background-color:transparent}.arco-pagination-disabled{cursor:not-allowed}.arco-pagination-disabled .arco-pagination-item,.arco-pagination-disabled .arco-pagination-item:not(.arco-pagination-item-disabled):not(.arco-pagination-item-active):hover{color:var(--color-text-4);background-color:transparent;border-color:transparent;cursor:not-allowed}.arco-pagination.arco-pagination-disabled .arco-pagination-item-active{color:var(--color-primary-light-3);background-color:var(--color-fill-1);border-color:transparent}.arco-pagination-size-mini .arco-pagination-item{min-width:24px;height:24px;font-size:12px;line-height:24px}.arco-pagination-size-mini .arco-pagination-item-previous,.arco-pagination-size-mini .arco-pagination-item-next{font-size:12px}.arco-pagination-size-mini .arco-pagination-total{font-size:12px;line-height:24px}.arco-pagination-size-mini .arco-pagination-option{height:24px;font-size:12px;line-height:0}.arco-pagination-size-mini .arco-pagination-jumper>span{font-size:12px}.arco-pagination-size-small .arco-pagination-item{min-width:28px;height:28px;font-size:14px;line-height:28px}.arco-pagination-size-small .arco-pagination-item-previous,.arco-pagination-size-small .arco-pagination-item-next{font-size:12px}.arco-pagination-size-small .arco-pagination-total{font-size:14px;line-height:28px}.arco-pagination-size-small .arco-pagination-option{height:28px;font-size:14px;line-height:0}.arco-pagination-size-small .arco-pagination-jumper>span{font-size:14px}.arco-pagination-size-large .arco-pagination-item{min-width:36px;height:36px;font-size:14px;line-height:36px}.arco-pagination-size-large .arco-pagination-item-previous,.arco-pagination-size-large .arco-pagination-item-next{font-size:14px}.arco-pagination-size-large .arco-pagination-total{font-size:14px;line-height:36px}.arco-pagination-size-large .arco-pagination-option{height:36px;font-size:14px;line-height:0}.arco-pagination-size-large .arco-pagination-jumper>span{font-size:14px}.arco-popconfirm-popup-content{box-sizing:border-box;padding:16px;color:var(--color-text-2);font-size:14px;line-height:1.5715;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-popconfirm-popup-content .arco-popconfirm-body{position:relative;display:flex;align-items:flex-start;margin-bottom:16px;color:var(--color-text-1);font-size:14px}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon{display:inline-flex;align-items:center;height:22.001px;margin-right:8px;font-size:18px}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon .arco-icon-exclamation-circle-fill{color:rgb(var(--warning-6))}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon .arco-icon-check-circle-fill{color:rgb(var(--success-6))}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon .arco-icon-info-circle-fill{color:rgb(var(--primary-6))}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-icon .arco-icon-close-circle-fill{color:rgb(var(--danger-6))}.arco-popconfirm-popup-content .arco-popconfirm-body .arco-popconfirm-content{text-align:left;word-wrap:break-word}.arco-popconfirm-popup-content .arco-popconfirm-footer{text-align:right}.arco-popconfirm-popup-content .arco-popconfirm-footer>button{margin-left:8px}.arco-popconfirm-popup-arrow{z-index:1;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3)}.arco-popover-popup-content{box-sizing:border-box;padding:12px 16px;color:var(--color-text-2);font-size:14px;line-height:1.5715;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-popover-title{color:var(--color-text-1);font-weight:500;font-size:16px}.arco-popover-content{margin-top:4px;text-align:left;word-wrap:break-word}.arco-popover-popup-arrow{z-index:1;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3)}.arco-progress{position:relative;line-height:1;font-size:12px}.arco-progress-type-line,.arco-progress-type-steps{display:inline-block;max-width:100%;width:100%}.arco-progress-type-line.arco-progress-size-mini{width:auto}.arco-progress-line-wrapper,.arco-progress-steps-wrapper{display:flex;align-items:center;width:100%;max-width:100%;height:100%}.arco-progress-line-text,.arco-progress-steps-text{font-size:12px;margin-left:16px;color:var(--color-text-2);white-space:nowrap;text-align:right;flex-grow:1;flex-shrink:0;min-width:32px}.arco-progress-line-text .arco-icon,.arco-progress-steps-text .arco-icon{font-size:12px;margin-left:4px}.arco-progress-line{background-color:var(--color-fill-3);border-radius:100px;width:100%;position:relative;display:inline-block;overflow:hidden}.arco-progress-line-bar{height:100%;border-radius:100px;background-color:rgb(var(--primary-6));position:relative;transition:width .6s cubic-bezier(.34,.69,.1,1),background .3s cubic-bezier(.34,.69,.1,1);max-width:100%}.arco-progress-line-bar-buffer{position:absolute;background-color:var(--color-primary-light-3);height:100%;top:0;left:0;border-radius:0 100px 100px 0;max-width:100%;transition:all .6s cubic-bezier(.34,.69,.1,1)}.arco-progress-line-bar-animate:after{content:"";display:block;position:absolute;top:0;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,transparent 25%,rgba(255,255,255,.5) 50%,transparent 75%);background-size:400% 100%;animation:arco-progress-loading 1.5s cubic-bezier(.34,.69,.1,1) infinite}.arco-progress-line-text .arco-icon{color:var(--color-text-2)}.arco-progress-type-steps.arco-progress-size-small{width:auto}.arco-progress-type-steps.arco-progress-size-small .arco-progress-steps-item{width:2px;flex:unset;border-radius:2px}.arco-progress-type-steps.arco-progress-size-small .arco-progress-steps-item:not(:last-of-type){margin-right:3px}.arco-progress-steps{display:flex;width:100%}.arco-progress-steps-text{margin-left:8px;min-width:unset}.arco-progress-steps-text .arco-icon{color:var(--color-text-2)}.arco-progress-steps-item{height:100%;flex:1;background-color:var(--color-fill-3);position:relative;display:inline-block}.arco-progress-steps-item:not(:last-of-type){margin-right:3px}.arco-progress-steps-item:last-of-type{border-top-right-radius:100px;border-bottom-right-radius:100px}.arco-progress-steps-item:first-of-type{border-top-left-radius:100px;border-bottom-left-radius:100px}.arco-progress-steps-item-active{background-color:rgb(var(--primary-6))}.arco-progress-status-warning .arco-progress-line-bar,.arco-progress-status-warning .arco-progress-steps-item-active{background-color:rgb(var(--warning-6))}.arco-progress-status-warning .arco-progress-line-text .arco-icon,.arco-progress-status-warning .arco-progress-steps-text .arco-icon{color:rgb(var(--warning-6))}.arco-progress-status-success .arco-progress-line-bar,.arco-progress-status-success .arco-progress-steps-item-active{background-color:rgb(var(--success-6))}.arco-progress-status-success .arco-progress-line-text .arco-icon,.arco-progress-status-success .arco-progress-steps-text .arco-icon{color:rgb(var(--success-6))}.arco-progress-status-danger .arco-progress-line-bar,.arco-progress-status-danger .arco-progress-steps-item-active{background-color:rgb(var(--danger-6))}.arco-progress-status-danger .arco-progress-line-text .arco-icon,.arco-progress-status-danger .arco-progress-steps-text .arco-icon{color:rgb(var(--danger-6))}.arco-progress-size-small .arco-progress-line-text{font-size:12px;margin-left:16px}.arco-progress-size-small .arco-progress-line-text .arco-icon{font-size:12px}.arco-progress-size-large .arco-progress-line-text{font-size:16px;margin-left:16px}.arco-progress-size-large .arco-progress-line-text .arco-icon{font-size:14px}.arco-progress-type-circle{display:inline-block}.arco-progress-circle-wrapper{position:relative;text-align:center;line-height:1;display:inline-block;vertical-align:text-bottom}.arco-progress-circle-svg{transform:rotate(-90deg)}.arco-progress-circle-text{position:absolute;top:50%;left:50%;color:var(--color-text-3);transform:translate(-50%,-50%);font-size:14px}.arco-progress-circle-text .arco-icon{font-size:16px;color:var(--color-text-2)}.arco-progress-circle-bg{stroke:var(--color-fill-3)}.arco-progress-circle-bar{stroke:rgb(var(--primary-6));transition:stroke-dashoffset .6s cubic-bezier(0,0,1,1) 0s,stroke .6s cubic-bezier(0,0,1,1)}.arco-progress-size-mini .arco-progress-circle-bg{stroke:var(--color-primary-light-3)}.arco-progress-size-mini .arco-progress-circle-bar{stroke:rgb(var(--primary-6))}.arco-progress-size-mini.arco-progress-status-warning .arco-progress-circle-bg{stroke:var(--color-warning-light-3)}.arco-progress-size-mini.arco-progress-status-danger .arco-progress-circle-bg{stroke:var(--color-danger-light-3)}.arco-progress-size-mini.arco-progress-status-success .arco-progress-circle-bg{stroke:var(--color-success-light-3)}.arco-progress-size-mini .arco-progress-circle-wrapper .arco-icon-check{position:absolute;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.arco-progress-size-mini .arco-progress-circle-text{position:static;top:unset;left:unset;transform:unset}.arco-progress-size-small .arco-progress-circle-text{font-size:13px}.arco-progress-size-small .arco-progress-circle-text .arco-icon{font-size:14px}.arco-progress-size-large .arco-progress-circle-text,.arco-progress-size-large .arco-progress-circle-text .arco-icon{font-size:16px}.arco-progress-status-warning .arco-progress-circle-bar{stroke:rgb(var(--warning-6))}.arco-progress-status-warning .arco-icon{color:rgb(var(--warning-6))}.arco-progress-status-success .arco-progress-circle-bar{stroke:rgb(var(--success-6))}.arco-progress-status-success .arco-icon{color:rgb(var(--success-6))}.arco-progress-status-danger .arco-progress-circle-bar{stroke:rgb(var(--danger-6))}.arco-progress-status-danger .arco-icon{color:rgb(var(--danger-6))}@keyframes arco-progress-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.arco-radio>input[type=radio],.arco-radio-button>input[type=radio]{position:absolute;top:0;left:0;width:0;height:0;opacity:0}.arco-radio>input[type=radio]:focus+.arco-radio-icon-hover:before,.arco-radio-button>input[type=radio]:focus+.arco-radio-icon-hover:before{background-color:var(--color-fill-2)}.arco-icon-hover.arco-radio-icon-hover:before{width:24px;height:24px}.arco-radio{position:relative;display:inline-flex;align-items:center;padding-left:5px;font-size:14px;line-height:unset;cursor:pointer}.arco-radio-label{margin-left:8px;color:var(--color-text-1)}.arco-radio-icon{position:relative;display:block;box-sizing:border-box;width:14px;height:14px;line-height:14px;border:2px solid var(--color-neutral-3);border-radius:var(--border-radius-circle)}.arco-radio-icon:after{position:absolute;top:0;left:0;display:inline-block;box-sizing:border-box;width:10px;height:10px;background-color:var(--color-bg-2);border-radius:var(--border-radius-circle);transform:scale(1);transition:transform .3s cubic-bezier(.3,1.3,.3,1);content:""}.arco-radio:hover .arco-radio-icon{border-color:var(--color-neutral-3)}.arco-radio-checked .arco-radio-icon{background-color:rgb(var(--primary-6));border-color:rgb(var(--primary-6))}.arco-radio-checked .arco-radio-icon:after{background-color:var(--color-white);transform:scale(.4)}.arco-radio-checked:hover .arco-radio-icon{border-color:rgb(var(--primary-6))}.arco-radio-disabled,.arco-radio-disabled .arco-radio-icon-hover{cursor:not-allowed}.arco-radio-disabled .arco-radio-label{color:var(--color-text-4)}.arco-radio-disabled .arco-radio-icon{border-color:var(--color-neutral-3)}.arco-radio-disabled .arco-radio-icon:after{background-color:var(--color-fill-2)}.arco-radio-disabled:hover .arco-radio-icon{border-color:var(--color-neutral-3)}.arco-radio-checked.arco-radio-disabled .arco-radio-icon,.arco-radio-checked.arco-radio-disabled:hover .arco-radio-icon{background-color:var(--color-primary-light-3);border-color:transparent}.arco-radio-checked.arco-radio-disabled .arco-radio-icon:after{background-color:var(--color-fill-2)}.arco-radio-checked.arco-radio-disabled .arco-radio-label{color:var(--color-text-4)}.arco-radio:hover .arco-radio-icon-hover:before{background-color:var(--color-fill-2)}.arco-radio-group{display:inline-block;box-sizing:border-box}.arco-radio-group .arco-radio{margin-right:20px}.arco-radio-group-button{display:inline-flex;padding:1.5px;line-height:26px;background-color:var(--color-fill-2);border-radius:var(--border-radius-small)}.arco-radio-button{position:relative;display:inline-block;margin:1.5px;color:var(--color-text-2);font-size:14px;line-height:26px;background-color:transparent;border-radius:var(--border-radius-small);cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-radio-button-content{position:relative;display:block;padding:0 12px}.arco-radio-button:not(:first-of-type):before{position:absolute;top:50%;left:-2px;display:block;width:1px;height:14px;background-color:var(--color-neutral-3);transform:translateY(-50%);transition:all .1s cubic-bezier(0,0,1,1);content:""}.arco-radio-button:hover:before,.arco-radio-button:hover+.arco-radio-button:before,.arco-radio-button.arco-radio-checked:before,.arco-radio-button.arco-radio-checked+.arco-radio-button:before{opacity:0}.arco-radio-button:hover{color:var(--color-text-1);background-color:var(--color-bg-5)}.arco-radio-button.arco-radio-checked{color:rgb(var(--primary-6));background-color:var(--color-bg-5)}.arco-radio-button.arco-radio-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-radio-button.arco-radio-disabled.arco-radio-checked{color:var(--color-primary-light-3);background-color:var(--color-bg-5)}.arco-radio-group-size-small{line-height:28px}.arco-radio-group-size-small.arco-radio-group-button,.arco-radio-group-size-small .arco-radio-button{font-size:14px;line-height:22px}.arco-radio-group-size-large{line-height:36px}.arco-radio-group-size-large.arco-radio-group-button,.arco-radio-group-size-large .arco-radio-button{font-size:14px;line-height:30px}.arco-radio-group-size-mini{line-height:24px}.arco-radio-group-size-mini.arco-radio-group-button,.arco-radio-group-size-mini .arco-radio-button{font-size:12px;line-height:18px}.arco-radio-group-direction-vertical .arco-radio{display:flex;margin-right:0;line-height:32px}body[arco-theme=dark] .arco-radio-button.arco-radio-checked,body[arco-theme=dark] .arco-radio-button:not(.arco-radio-disabled):hover{background-color:var(--color-fill-3)}body[arco-theme=dark] .arco-radio-button:after{background-color:var(--color-bg-3)}.arco-rate{display:inline-flex;align-items:center;min-height:32px;font-size:24px;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-rate-disabled{cursor:not-allowed}.arco-rate-character{position:relative;color:var(--color-fill-3);transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-rate-character:not(:last-child){margin-right:8px}.arco-rate-character-left,.arco-rate-character-right{transition:inherit}.arco-rate-character-left>*,.arco-rate-character-right>*{float:left}.arco-rate-character-left{position:absolute;top:0;left:0;width:50%;overflow:hidden;white-space:nowrap;opacity:0}.arco-rate-character-scale{animation:arco-rate-scale .4s cubic-bezier(.34,.69,.1,1)}.arco-rate-character-full .arco-rate-character-right{color:rgb(var(--gold-6))}.arco-rate-character-half .arco-rate-character-left{color:rgb(var(--gold-6));opacity:1}.arco-rate-character-disabled{cursor:not-allowed}.arco-rate:not(.arco-rate-readonly):not(.arco-rate-disabled) .arco-rate-character{cursor:pointer}.arco-rate:not(.arco-rate-readonly):not(.arco-rate-disabled) .arco-rate-character:hover,.arco-rate:not(.arco-rate-readonly):not(.arco-rate-disabled) .arco-rate-character:focus{transform:scale(1.2)}@keyframes arco-rate-scale{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}.arco-resizebox{position:relative;width:100%;overflow:hidden}.arco-resizebox-direction-left,.arco-resizebox-direction-right,.arco-resizebox-direction-top,.arco-resizebox-direction-bottom{position:absolute;top:0;left:0;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-resizebox-direction-right{right:0;left:unset}.arco-resizebox-direction-bottom{top:unset;bottom:0}.arco-resizebox-trigger-icon-wrapper{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-text-1);font-size:12px;line-height:1;background-color:var(--color-neutral-3)}.arco-resizebox-trigger-icon{display:inline-block;margin:-3px}.arco-resizebox-trigger-vertical{height:100%;cursor:col-resize}.arco-resizebox-trigger-horizontal{width:100%;cursor:row-resize}.arco-result{box-sizing:border-box;width:100%;padding:32px 32px 24px}.arco-result-icon{margin-bottom:16px;font-size:20px;text-align:center}.arco-result-icon-tip{display:flex;width:45px;height:45px;align-items:center;justify-content:center;border-radius:50%;margin:0 auto}.arco-result-icon-custom .arco-result-icon-tip{font-size:45px;color:inherit;width:unset;height:unset}.arco-result-icon-success .arco-result-icon-tip{color:rgb(var(--success-6));background-color:var(--color-success-light-1)}.arco-result-icon-error .arco-result-icon-tip{color:rgb(var(--danger-6));background-color:var(--color-danger-light-1)}.arco-result-icon-info .arco-result-icon-tip{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1)}.arco-result-icon-warning .arco-result-icon-tip{color:rgb(var(--warning-6));background-color:var(--color-warning-light-1)}.arco-result-icon-404,.arco-result-icon-403,.arco-result-icon-500{padding-top:24px}.arco-result-icon-404 .arco-result-icon-tip,.arco-result-icon-403 .arco-result-icon-tip,.arco-result-icon-500 .arco-result-icon-tip{width:92px;height:92px;line-height:92px}.arco-result-title{color:var(--color-text-1);font-weight:500;font-size:14px;line-height:1.5715;text-align:center}.arco-result-subtitle{color:var(--color-text-2);font-size:14px;line-height:1.5715;text-align:center}.arco-result-extra{margin-top:20px;text-align:center}.arco-result-content{margin-top:20px}.arco-scrollbar{position:relative}.arco-scrollbar-container{position:relative;scrollbar-width:none}.arco-scrollbar-container::-webkit-scrollbar{display:none}.arco-scrollbar-track{position:absolute;z-index:100}.arco-scrollbar-track-direction-horizontal{bottom:0;left:0;box-sizing:border-box;width:100%;height:15px}.arco-scrollbar-track-direction-vertical{top:0;right:0;box-sizing:border-box;width:15px;height:100%}.arco-scrollbar-thumb{position:absolute;display:block;box-sizing:border-box}.arco-scrollbar-thumb-bar{width:100%;height:100%;background-color:var(--color-neutral-4);border-radius:6px}.arco-scrollbar-thumb:hover .arco-scrollbar-thumb-bar,.arco-scrollbar-thumb-dragging .arco-scrollbar-thumb-bar{background-color:var(--color-neutral-6)}.arco-scrollbar-thumb-direction-horizontal .arco-scrollbar-thumb-bar{height:9px;margin:3px 0}.arco-scrollbar-thumb-direction-vertical .arco-scrollbar-thumb-bar{width:9px;margin:0 3px}.arco-scrollbar.arco-scrollbar-type-embed .arco-scrollbar-thumb{opacity:0;transition:opacity ease .2s}.arco-scrollbar.arco-scrollbar-type-embed .arco-scrollbar-thumb-dragging,.arco-scrollbar.arco-scrollbar-type-embed:hover .arco-scrollbar-thumb{opacity:.8}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track{background-color:var(--color-neutral-1)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track-direction-horizontal{border-top:1px solid var(--color-neutral-3);border-bottom:1px solid var(--color-neutral-3)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-track-direction-vertical{border-right:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-thumb-direction-horizontal{margin:-1px 0}.arco-scrollbar.arco-scrollbar-type-track .arco-scrollbar-thumb-direction-vertical{margin:0 -1px}.arco-scrollbar.arco-scrollbar-type-track.arco-scrollbar-both .arco-scrollbar-track-direction-vertical:after{position:absolute;right:-1px;bottom:0;display:block;box-sizing:border-box;width:15px;height:15px;background-color:var(--color-neutral-1);border-right:1px solid var(--color-neutral-3);border-bottom:1px solid var(--color-neutral-3);content:""}.arco-select-dropdown{box-sizing:border-box;padding:4px 0;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-select-dropdown .arco-select-dropdown-loading{display:flex;align-items:center;justify-content:center;min-height:50px}.arco-select-dropdown-list{margin-top:0;margin-bottom:0;padding-left:0;list-style:none}.arco-select-dropdown-list-wrapper{max-height:200px;overflow-y:auto}.arco-select-dropdown .arco-select-option{position:relative;z-index:1;display:flex;align-items:center;box-sizing:border-box;width:100%;padding:0 12px;color:var(--color-text-1);font-size:14px;line-height:36px;text-align:left;background-color:var(--color-bg-popup);cursor:pointer}.arco-select-dropdown .arco-select-option-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-select-dropdown .arco-select-option-checkbox{overflow:hidden}.arco-select-dropdown .arco-select-option-checkbox .arco-checkbox-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-select-dropdown .arco-select-option-has-suffix{justify-content:space-between}.arco-select-dropdown .arco-select-option-selected{color:var(--color-text-1);font-weight:500;background-color:var(--color-bg-popup)}.arco-select-dropdown .arco-select-option-active,.arco-select-dropdown .arco-select-option:not(.arco-select-dropdown .arco-select-option-disabled):hover{color:var(--color-text-1);background-color:var(--color-fill-2);transition:all .1s cubic-bezier(0,0,1,1)}.arco-select-dropdown .arco-select-option-disabled{color:var(--color-text-4);background-color:var(--color-bg-popup);cursor:not-allowed}.arco-select-dropdown .arco-select-option-icon{display:inline-flex;margin-right:8px}.arco-select-dropdown .arco-select-option-suffix{margin-left:12px}.arco-select-dropdown .arco-select-group:first-child .arco-select-dropdown .arco-select-group-title{margin-top:8px}.arco-select-dropdown .arco-select-group-title{box-sizing:border-box;width:100%;margin-top:8px;padding:0 12px;color:var(--color-text-3);font-size:12px;line-height:20px;cursor:default;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-select-dropdown.arco-select-dropdown-has-header{padding-top:0}.arco-select-dropdown-header{border-bottom:1px solid var(--color-fill-3)}.arco-select-dropdown.arco-select-dropdown-has-footer{padding-bottom:0}.arco-select-dropdown-footer{border-top:1px solid var(--color-fill-3)}.arco-skeleton-shape{width:48px;height:48px;background-color:var(--color-fill-2);border-radius:var(--border-radius-small)}.arco-skeleton-shape-circle{border-radius:50%}.arco-skeleton-shape-small{width:36px;height:36px}.arco-skeleton-shape-large{width:60px;height:60px}.arco-skeleton-line{margin:0;padding:0;list-style:none}.arco-skeleton-line-row{height:16px;background-color:var(--color-fill-2)}.arco-skeleton-line-row:not(:last-child){margin-bottom:16px}.arco-skeleton-animation .arco-skeleton-shape,.arco-skeleton-animation .arco-skeleton-line-row{background:linear-gradient(90deg,var(--color-fill-2) 25%,var(--color-fill-3) 37%,var(--color-fill-2) 63%);background-size:400% 100%;animation:arco-skeleton-circle 1.5s cubic-bezier(0,0,1,1) infinite}@keyframes arco-skeleton-circle{0%{background-position:100% 50%}to{background-position:0 50%}}.arco-slider{display:inline-flex;align-items:center;width:100%}.arco-slider-vertical{display:inline-block;width:auto;min-width:22px;height:auto}.arco-slider-vertical .arco-slider-wrapper{flex-direction:column}.arco-slider-with-marks{margin-bottom:24px;padding:20px}.arco-slider-vertical.arco-slider-with-marks{margin-bottom:0;padding:0}.arco-slider-track{position:relative;flex:1;width:100%;height:12px;cursor:pointer}.arco-slider-track:before{position:absolute;top:50%;display:block;width:100%;height:2px;background-color:var(--color-fill-3);border-radius:2px;transform:translateY(-50%);content:""}.arco-slider-track.arco-slider-track-vertical{width:12px;max-width:12px;height:100%;min-height:200px;margin-right:0;margin-bottom:6px;margin-top:6px;transform:translateY(0)}.arco-slider-track.arco-slider-track-vertical:before{top:unset;left:50%;width:2px;height:100%;transform:translate(-50%)}.arco-slider-track.arco-slider-track-disabled:before{background-color:var(--color-fill-2)}.arco-slider-track.arco-slider-track-disabled .arco-slider-bar{background-color:var(--color-fill-3)}.arco-slider-track.arco-slider-track-disabled .arco-slider-btn{cursor:not-allowed}.arco-slider-track.arco-slider-track-disabled .arco-slider-btn:after{border-color:var(--color-fill-3)}.arco-slider-track.arco-slider-track-disabled .arco-slider-dots .arco-slider-dot{border-color:var(--color-fill-2)}.arco-slider-track.arco-slider-track-disabled .arco-slider-dots .arco-slider-dot-active{border-color:var(--color-fill-3)}.arco-slider-track.arco-slider-track-disabled .arco-slider-ticks .arco-slider-tick{background:var(--color-fill-2)}.arco-slider-track.arco-slider-track-disabled .arco-slider-ticks .arco-slider-tick-active{background:var(--color-fill-3)}.arco-slider-bar{position:absolute;top:50%;height:2px;background-color:rgb(var(--primary-6));border-radius:2px;transform:translateY(-50%)}.arco-slider-track-vertical .arco-slider-bar{top:unset;left:50%;width:2px;height:unset;transform:translate(-50%)}.arco-slider-btn{position:absolute;top:0;left:0;width:12px;height:12px;transform:translate(-50%)}.arco-slider-btn:after{position:absolute;top:0;left:0;display:inline-block;box-sizing:border-box;width:12px;height:12px;background:var(--color-bg-2);border:2px solid rgb(var(--primary-6));border-radius:50%;transition:all .3s cubic-bezier(.3,1.3,.3,1);content:""}.arco-slider-btn.arco-slider-btn-active:after,.arco-slider-btn:hover:after{box-shadow:0 2px 5px #0000001a;transform:scale(1.16666667)}.arco-slider-track-vertical .arco-slider-btn{top:unset;bottom:0;left:0;transform:translateY(50%)}.arco-slider-marks{position:absolute;top:12px;width:100%}.arco-slider-marks .arco-slider-mark{position:absolute;color:var(--color-text-3);font-size:14px;line-height:1;transform:translate(-50%);cursor:pointer}.arco-slider-track-vertical .arco-slider-marks{top:0;left:15px;height:100%}.arco-slider-track-vertical .arco-slider-marks .arco-slider-mark{transform:translateY(50%)}.arco-slider-dots{height:100%}.arco-slider-dots .arco-slider-dot-wrapper{position:absolute;top:50%;font-size:12px;transform:translate(-50%,-50%)}.arco-slider-track-vertical .arco-slider-dots .arco-slider-dot-wrapper{top:unset;left:50%;transform:translate(-50%,50%)}.arco-slider-dots .arco-slider-dot-wrapper .arco-slider-dot{box-sizing:border-box;width:8px;height:8px;background-color:var(--color-bg-2);border:2px solid var(--color-fill-3);border-radius:50%}.arco-slider-dots .arco-slider-dot-wrapper .arco-slider-dot-active{border-color:rgb(var(--primary-6))}.arco-slider-ticks .arco-slider-tick{position:absolute;top:50%;width:1px;height:3px;margin-top:-1px;background:var(--color-fill-3);transform:translate(-50%,-100%)}.arco-slider-ticks .arco-slider-tick-active{background:rgb(var(--primary-6))}.arco-slider-vertical .arco-slider-ticks .arco-slider-tick{top:unset;left:50%;width:3px;height:1px;margin-top:unset;transform:translate(1px,50%)}.arco-slider-input{display:flex;align-items:center;margin-left:20px}.arco-slider-vertical .arco-slider-input{margin-left:0}.arco-slider-input>.arco-input-number{width:60px;height:32px;overflow:visible;line-height:normal}.arco-slider-input>.arco-input-number input{text-align:center}.arco-slider-input-hyphens{margin:0 6px;width:8px;height:2px;background:rgb(var(--gray-6))}.arco-space{display:inline-flex}.arco-space-horizontal .arco-space-item{display:flex;align-items:center}.arco-space-vertical{flex-direction:column}.arco-space-align-baseline{align-items:baseline}.arco-space-align-start{align-items:flex-start}.arco-space-align-end{align-items:flex-end}.arco-space-align-center{align-items:center}.arco-space-wrap{flex-wrap:wrap}.arco-space-fill{display:flex}.arco-dot-loading{position:relative;display:inline-block;width:56px;height:8px;transform-style:preserve-3d;perspective:200px}.arco-dot-loading-item{position:absolute;top:0;left:50%;width:8px;height:8px;background-color:rgb(var(--primary-6));border-radius:var(--border-radius-circle);transform:translate(-50%) scale(0);animation:arco-dot-loading 2s cubic-bezier(0,0,1,1) infinite forwards}.arco-dot-loading-item:nth-child(2){background-color:rgb(var(--primary-5));animation-delay:.4s}.arco-dot-loading-item:nth-child(3){background-color:rgb(var(--primary-4));animation-delay:.8s}.arco-dot-loading-item:nth-child(4){background-color:rgb(var(--primary-4));animation-delay:1.2s}.arco-dot-loading-item:nth-child(5){background-color:rgb(var(--primary-2));animation-delay:1.6s}@keyframes arco-dot-loading{0%{transform:translate3D(-48.621%,0,-.985px) scale(.511)}2.778%{transform:translate3D(-95.766%,0,-.94px) scale(.545)}5.556%{transform:translate3D(-140%,0,-.866px) scale(.6)}8.333%{transform:translate3D(-179.981%,0,-.766px) scale(.675)}11.111%{transform:translate3D(-214.492%,0,-.643px) scale(.768)}13.889%{transform:translate3D(-242.487%,0,-.5px) scale(.875)}16.667%{transform:translate3D(-263.114%,0,-.342px) scale(.993)}19.444%{transform:translate3D(-275.746%,0,-.174px) scale(1.12)}22.222%{transform:translate3D(-280%,0,0) scale(1.25)}25%{transform:translate3D(-275.746%,0,.174px) scale(1.38)}27.778%{transform:translate3D(-263.114%,0,.342px) scale(1.507)}30.556%{transform:translate3D(-242.487%,0,.5px) scale(1.625)}33.333%{transform:translate3D(-214.492%,0,.643px) scale(1.732)}36.111%{transform:translate3D(-179.981%,0,.766px) scale(1.825)}38.889%{transform:translate3D(-140%,0,.866px) scale(1.9)}41.667%{transform:translate3D(-95.766%,0,.94px) scale(1.955)}44.444%{transform:translate3D(-48.621%,0,.985px) scale(1.989)}47.222%{transform:translateZ(1px) scale(2)}50%{transform:translate3D(48.621%,0,.985px) scale(1.989)}52.778%{transform:translate3D(95.766%,0,.94px) scale(1.955)}55.556%{transform:translate3D(140%,0,.866px) scale(1.9)}58.333%{transform:translate3D(179.981%,0,.766px) scale(1.825)}61.111%{transform:translate3D(214.492%,0,.643px) scale(1.732)}63.889%{transform:translate3D(242.487%,0,.5px) scale(1.625)}66.667%{transform:translate3D(263.114%,0,.342px) scale(1.507)}69.444%{transform:translate3D(275.746%,0,.174px) scale(1.38)}72.222%{transform:translate3D(280%,0,0) scale(1.25)}75%{transform:translate3D(275.746%,0,-.174px) scale(1.12)}77.778%{transform:translate3D(263.114%,0,-.342px) scale(.993)}80.556%{transform:translate3D(242.487%,0,-.5px) scale(.875)}83.333%{transform:translate3D(214.492%,0,-.643px) scale(.768)}86.111%{transform:translate3D(179.981%,0,-.766px) scale(.675)}88.889%{transform:translate3D(140%,0,-.866px) scale(.6)}91.667%{transform:translate3D(95.766%,0,-.94px) scale(.545)}94.444%{transform:translate3D(48.621%,0,-.985px) scale(.511)}97.222%{transform:translateZ(-1px) scale(.5)}}.arco-spin{display:inline-block}.arco-spin-with-tip{text-align:center}.arco-spin-icon{color:rgb(var(--primary-6));font-size:20px}.arco-spin-tip{margin-top:6px;color:rgb(var(--primary-6));font-weight:500;font-size:14px}.arco-spin-mask{position:absolute;inset:0;z-index:11;text-align:center;background-color:var(--color-spin-layer-bg);transition:opacity .1s cubic-bezier(0,0,1,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-spin-loading{position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-spin-loading .arco-spin-mask-icon{position:absolute;top:50%;left:50%;z-index:12;transform:translate(-50%,-50%)}.arco-spin-loading .arco-spin-children:after{opacity:1;pointer-events:auto}.arco-split{display:flex}.arco-split-pane{overflow:auto}.arco-split-pane-second{flex:1}.arco-split-horizontal{flex-direction:row}.arco-split-vertical{flex-direction:column}.arco-split-trigger-icon-wrapper{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-text-1);font-size:12px;line-height:1;background-color:var(--color-neutral-3)}.arco-split-trigger-icon{display:inline-block;margin:-3px}.arco-split-trigger-vertical{height:100%;cursor:col-resize}.arco-split-trigger-horizontal{width:100%;cursor:row-resize}.arco-statistic{display:inline-block;color:var(--color-text-2);line-height:1.5715}.arco-statistic-title{margin-bottom:8px;color:var(--color-text-2);font-size:14px}.arco-statistic-content .arco-statistic-value{color:var(--color-text-1);font-weight:500;font-size:26px;white-space:nowrap}.arco-statistic-content .arco-statistic-value-integer{font-size:inherit;white-space:nowrap}.arco-statistic-content .arco-statistic-value-decimal{display:inline-block;font-size:inherit}.arco-statistic-prefix,.arco-statistic-suffix{font-size:14px}.arco-statistic-extra{margin-top:8px;color:var(--color-text-2)}.arco-steps-item{position:relative;flex:1;margin-right:12px;overflow:hidden;white-space:nowrap;text-align:left}.arco-steps-item:last-child{flex:none;margin-right:0}.arco-steps-item-active .arco-steps-item-title{font-weight:500}.arco-steps-item-node{display:inline-block;margin-right:12px;font-weight:500;font-size:16px;vertical-align:top}.arco-steps-icon{box-sizing:border-box;width:28px;height:28px;line-height:26px;text-align:center;border-radius:var(--border-radius-circle);font-size:16px}.arco-steps-item-wait .arco-steps-icon{color:var(--color-text-2);background-color:var(--color-fill-2);border:1px solid transparent}.arco-steps-item-process .arco-steps-icon{color:var(--color-white);background-color:rgb(var(--primary-6));border:1px solid transparent}.arco-steps-item-finish .arco-steps-icon{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1);border:1px solid transparent}.arco-steps-item-error .arco-steps-icon{color:var(--color-white);background-color:rgb(var(--danger-6));border:1px solid transparent}.arco-steps-item-title{position:relative;display:inline-block;padding-right:12px;color:var(--color-text-2);font-size:16px;line-height:28px;white-space:nowrap}.arco-steps-item-wait .arco-steps-item-title{color:var(--color-text-2)}.arco-steps-item-process .arco-steps-item-title,.arco-steps-item-finish .arco-steps-item-title,.arco-steps-item-error .arco-steps-item-title{color:var(--color-text-1)}.arco-steps-item-content{display:inline-block}.arco-steps-item-description{max-width:140px;margin-top:2px;color:var(--color-text-3);font-size:12px;white-space:normal}.arco-steps-item-wait .arco-steps-item-description,.arco-steps-item-process .arco-steps-item-description,.arco-steps-item-finish .arco-steps-item-description,.arco-steps-item-error .arco-steps-item-description{color:var(--color-text-3)}.arco-steps-label-horizontal .arco-steps-item:not(:last-child) .arco-steps-item-title:after{position:absolute;top:13.5px;left:100%;display:block;box-sizing:border-box;width:5000px;height:1px;background-color:var(--color-neutral-3);content:""}.arco-steps-label-horizontal .arco-steps-item.arco-steps-item-process .arco-steps-item-title:after{background-color:var(--color-neutral-3)}.arco-steps-label-horizontal .arco-steps-item.arco-steps-item-finish .arco-steps-item-title:after{background-color:rgb(var(--primary-6))}.arco-steps-label-horizontal .arco-steps-item.arco-steps-item-next-error .arco-steps-item-title:after{background-color:rgb(var(--danger-6))}.arco-steps-item:not(:last-child) .arco-steps-item-tail{position:absolute;top:13.5px;box-sizing:border-box;width:100%;height:1px}.arco-steps-item:not(:last-child) .arco-steps-item-tail:after{display:block;width:100%;height:100%;background-color:var(--color-neutral-3);content:""}.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail{position:absolute;top:0;left:13.5px;box-sizing:border-box;width:1px;height:100%;padding:34px 0 6px}.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail:after{display:block;width:100%;height:100%;background-color:var(--color-neutral-3);content:""}.arco-steps-size-small.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail{left:11.5px;padding:30px 0 6px}.arco-steps-item:not(:last-child).arco-steps-item-finish .arco-steps-item-tail:after{background-color:rgb(var(--primary-6))}.arco-steps-item:not(:last-child).arco-steps-item-next-error .arco-steps-item-tail:after{background-color:rgb(var(--danger-6))}.arco-steps-size-small:not(.arco-steps-vertical) .arco-steps-item:not(:last-child) .arco-steps-item-tail{top:11.5px}.arco-steps-size-small .arco-steps-item-node{font-size:14px}.arco-steps-size-small .arco-steps-item-title{font-size:14px;line-height:24px}.arco-steps-size-small .arco-steps-item-description{font-size:12px}.arco-steps-size-small .arco-steps-icon{width:24px;height:24px;font-size:14px;line-height:22px}.arco-steps-size-small.arco-steps-label-horizontal .arco-steps-item:not(:last-child) .arco-steps-item-title:after{top:11.5px}.arco-steps-label-vertical .arco-steps-item{overflow:visible}.arco-steps-label-vertical .arco-steps-item-title{margin-top:2px;padding-right:0}.arco-steps-label-vertical .arco-steps-item-node{margin-left:56px}.arco-steps-label-vertical .arco-steps-item-tail{left:96px;padding-right:40px}.arco-steps-label-vertical.arco-steps-size-small .arco-steps-item-node{margin-left:58px}.arco-steps-label-vertical.arco-steps-size-small .arco-steps-item-tail{left:94px;padding-right:36px}.arco-steps-mode-dot .arco-steps-item{position:relative;flex:1;margin-right:16px;overflow:visible;white-space:nowrap;text-align:left}.arco-steps-mode-dot .arco-steps-item:last-child{flex:none;margin-right:0}.arco-steps-mode-dot .arco-steps-item-active .arco-steps-item-title{font-weight:500}.arco-steps-mode-dot .arco-steps-item-node{display:inline-block;box-sizing:border-box;width:8px;height:8px;vertical-align:top;border-radius:var(--border-radius-circle)}.arco-steps-mode-dot .arco-steps-item-active .arco-steps-item-node{width:10px;height:10px}.arco-steps-mode-dot .arco-steps-item-wait .arco-steps-item-node{background-color:var(--color-fill-4);border-color:var(--color-fill-4)}.arco-steps-mode-dot .arco-steps-item-process .arco-steps-item-node,.arco-steps-mode-dot .arco-steps-item-finish .arco-steps-item-node{background-color:rgb(var(--primary-6));border-color:rgb(var(--primary-6))}.arco-steps-mode-dot .arco-steps-item-error .arco-steps-item-node{background-color:rgb(var(--danger-6));border-color:rgb(var(--danger-6))}.arco-steps-mode-dot.arco-steps-horizontal .arco-steps-item-node{margin-left:66px}.arco-steps-mode-dot.arco-steps-horizontal .arco-steps-item-active .arco-steps-item-node{margin-top:-1px;margin-left:65px}.arco-steps-mode-dot .arco-steps-item-content{display:inline-block}.arco-steps-mode-dot .arco-steps-item-title{position:relative;display:inline-block;margin-top:4px;font-size:16px}.arco-steps-mode-dot .arco-steps-item-wait .arco-steps-item-title{color:var(--color-text-2)}.arco-steps-mode-dot .arco-steps-item-process .arco-steps-item-title,.arco-steps-mode-dot .arco-steps-item-finish .arco-steps-item-title,.arco-steps-mode-dot .arco-steps-item-error .arco-steps-item-title{color:var(--color-text-1)}.arco-steps-mode-dot .arco-steps-item-description{margin-top:4px;font-size:12px;white-space:normal}.arco-steps-mode-dot .arco-steps-item-wait .arco-steps-item-description,.arco-steps-mode-dot .arco-steps-item-process .arco-steps-item-description,.arco-steps-mode-dot .arco-steps-item-finish .arco-steps-item-description,.arco-steps-mode-dot .arco-steps-item-error .arco-steps-item-description{color:var(--color-text-3)}.arco-steps-mode-dot .arco-steps-item:not(:last-child) .arco-steps-item-tail{position:absolute;top:3.5px;left:78px;box-sizing:border-box;width:100%;height:1px;background-color:var(--color-neutral-3)}.arco-steps-mode-dot .arco-steps-item:not(:last-child).arco-steps-item-process .arco-steps-item-tail{background-color:var(--color-neutral-3)}.arco-steps-mode-dot .arco-steps-item:not(:last-child).arco-steps-item-finish .arco-steps-item-tail{background-color:rgb(var(--primary-6))}.arco-steps-mode-dot .arco-steps-item:not(:last-child).arco-steps-item-next-error .arco-steps-item-tail{background-color:rgb(var(--danger-6))}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-node{margin-right:16px}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-content{overflow:hidden}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-title{margin-top:-2px}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-description{margin-top:4px}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail{position:absolute;bottom:0;left:4px;box-sizing:border-box;width:1px;height:100%;padding-top:16px;padding-bottom:2px;background-color:transparent;transform:translate(-50%)}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child) .arco-steps-item-tail:after{display:block;width:100%;height:100%;background-color:var(--color-neutral-3);content:""}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child).arco-steps-item-process .arco-steps-item-tail:after{background-color:var(--color-neutral-3)}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child).arco-steps-item-finish .arco-steps-item-tail:after{background-color:rgb(var(--primary-6))}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item:not(:last-child).arco-steps-item-next-error .arco-steps-item-tail:after{background-color:rgb(var(--danger-6))}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item .arco-steps-item-node{margin-top:8px}.arco-steps-mode-dot.arco-steps-vertical .arco-steps-item-active .arco-steps-item-node{margin-top:6px;margin-left:-1px}.arco-steps-mode-arrow .arco-steps-item{position:relative;display:flex;flex:1;align-items:center;height:72px;overflow:visible;white-space:nowrap}.arco-steps-mode-arrow .arco-steps-item:not(:last-child){margin-right:4px}.arco-steps-mode-arrow .arco-steps-item-wait{background-color:var(--color-fill-1)}.arco-steps-mode-arrow .arco-steps-item-process{background-color:rgb(var(--primary-6))}.arco-steps-mode-arrow .arco-steps-item-finish{background-color:var(--color-primary-light-1)}.arco-steps-mode-arrow .arco-steps-item-error{background-color:rgb(var(--danger-6))}.arco-steps-mode-arrow .arco-steps-item-content{display:inline-block;box-sizing:border-box}.arco-steps-mode-arrow .arco-steps-item:first-child .arco-steps-item-content{padding-left:16px}.arco-steps-mode-arrow .arco-steps-item:not(:first-child) .arco-steps-item-content{padding-left:52px}.arco-steps-mode-arrow .arco-steps-item-title{position:relative;display:inline-block;font-size:16px;white-space:nowrap}.arco-steps-mode-arrow .arco-steps-item-title:after{display:none!important}.arco-steps-mode-arrow .arco-steps-item-wait .arco-steps-item-title{color:var(--color-text-2)}.arco-steps-mode-arrow .arco-steps-item-process .arco-steps-item-title{color:var(--color-white)}.arco-steps-mode-arrow .arco-steps-item-finish .arco-steps-item-title{color:var(--color-text-1)}.arco-steps-mode-arrow .arco-steps-item-error .arco-steps-item-title{color:var(--color-white)}.arco-steps-mode-arrow .arco-steps-item-active .arco-steps-item-title{font-weight:500}.arco-steps-mode-arrow .arco-steps-item-description{max-width:none;margin-top:0;font-size:12px;white-space:nowrap}.arco-steps-mode-arrow .arco-steps-item-wait .arco-steps-item-description{color:var(--color-text-3)}.arco-steps-mode-arrow .arco-steps-item-process .arco-steps-item-description{color:var(--color-white)}.arco-steps-mode-arrow .arco-steps-item-finish .arco-steps-item-description{color:var(--color-text-3)}.arco-steps-mode-arrow .arco-steps-item-error .arco-steps-item-description{color:var(--color-white)}.arco-steps-mode-arrow .arco-steps-item:not(:first-child):before{position:absolute;top:0;left:0;z-index:1;display:block;width:0;height:0;border-top:36px solid transparent;border-bottom:36px solid transparent;border-left:36px solid var(--color-bg-2);content:""}.arco-steps-mode-arrow .arco-steps-item:not(:last-child):after{position:absolute;top:0;right:-36px;z-index:2;display:block;clear:both;width:0;height:0;border-top:36px solid transparent;border-bottom:36px solid transparent;content:""}.arco-steps-mode-arrow .arco-steps-item:not(:last-child).arco-steps-item-wait:after{border-left:36px solid var(--color-fill-1)}.arco-steps-mode-arrow .arco-steps-item:not(:last-child).arco-steps-item-process:after{border-left:36px solid rgb(var(--primary-6))}.arco-steps-mode-arrow .arco-steps-item:not(:last-child).arco-steps-item-error:after{border-left:36px solid rgb(var(--danger-6))}.arco-steps-mode-arrow .arco-steps-item:not(:last-child).arco-steps-item-finish:after{border-left:36px solid var(--color-primary-light-1)}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item{height:40px}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item-title{font-size:14px}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item-description{display:none}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:first-child):before{border-top:20px solid transparent;border-bottom:20px solid transparent;border-left:20px solid var(--color-bg-2)}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:last-child):after{right:-20px;border-top:20px solid transparent;border-bottom:20px solid transparent;border-left:20px solid var(--color-fill-1)}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:first-child .arco-steps-item-content{padding-left:20px}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:first-child) .arco-steps-item-content{padding-left:40px}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item-error:not(:last-child):after{border-left:20px solid rgb(var(--danger-6))}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:last-child).arco-steps-item-wait:after{border-left:20px solid var(--color-fill-1)}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:last-child).arco-steps-item-process:after{border-left:20px solid rgb(var(--primary-6))}.arco-steps-mode-arrow.arco-steps-size-small .arco-steps-item:not(:last-child).arco-steps-item-finish:after{border-left:20px solid var(--color-primary-light-1)}.arco-steps-mode-navigation.arco-steps-label-horizontal .arco-steps-item:not(:last-child) .arco-steps-item-title:after{display:none}.arco-steps-mode-navigation .arco-steps-item{padding-left:20px;padding-right:10px;margin-right:32px}.arco-steps-mode-navigation .arco-steps-item:last-child{flex:1}.arco-steps-mode-navigation .arco-steps-item-content{margin-bottom:20px}.arco-steps-mode-navigation .arco-steps-item-description{padding-right:20px}.arco-steps-mode-navigation .arco-steps-item-active:after{content:"";position:absolute;display:block;height:2px;left:0;right:30px;bottom:0;background-color:rgb(var(--primary-6))}.arco-steps-mode-navigation .arco-steps-item-active:last-child:after{width:100%}.arco-steps-mode-navigation .arco-steps-item:not(:last-child) .arco-steps-item-content:after{position:absolute;top:10px;right:30px;display:inline-block;width:6px;height:6px;background-color:var(--color-bg-2);border:2px solid var(--color-text-4);border-bottom:none;border-left:none;transform:rotate(45deg);content:""}.arco-steps{display:flex}.arco-steps-changeable .arco-steps-item-title,.arco-steps-changeable .arco-steps-item-description{transition:all .1s cubic-bezier(0,0,1,1)}.arco-steps-changeable .arco-steps-item:not(.arco-steps-item-active):not(.arco-steps-item-disabled){cursor:pointer}.arco-steps-changeable .arco-steps-item:not(.arco-steps-item-active):not(.arco-steps-item-disabled):hover .arco-steps-item-content .arco-steps-item-title,.arco-steps-changeable .arco-steps-item:not(.arco-steps-item-active):not(.arco-steps-item-disabled):hover .arco-steps-item-content .arco-steps-item-description{color:rgb(var(--primary-6))}.arco-steps-line-less .arco-steps-item-title:after{display:none!important}.arco-steps-vertical{flex-direction:column}.arco-steps-vertical .arco-steps-item:not(:last-child){min-height:90px}.arco-steps-vertical .arco-steps-item-title:after{display:none!important}.arco-steps-vertical .arco-steps-item-description{max-width:none}.arco-steps-label-vertical .arco-steps-item-content{display:block;width:140px;text-align:center}.arco-steps-label-vertical .arco-steps-item-description{max-width:none}.switch-slide-text-enter-from{left:-100%!important}.switch-slide-text-enter-to{left:8px!important}.switch-slide-text-enter-active{transition:left .2s cubic-bezier(.34,.69,.1,1)}.switch-slide-text-leave-from{left:100%!important}.switch-slide-text-leave-to{left:26px!important}.switch-slide-text-leave-active{transition:left .2s cubic-bezier(.34,.69,.1,1)}.arco-switch{position:relative;box-sizing:border-box;min-width:40px;height:24px;padding:0;overflow:hidden;line-height:24px;vertical-align:middle;background-color:var(--color-fill-4);border:none;border-radius:12px;outline:none;cursor:pointer;transition:background-color .2s cubic-bezier(.34,.69,.1,1)}.arco-switch-handle{position:absolute;top:4px;left:4px;display:flex;align-items:center;justify-content:center;width:16px;height:16px;color:var(--color-neutral-3);font-size:12px;background-color:var(--color-bg-white);border-radius:50%;transition:all .2s cubic-bezier(.34,.69,.1,1)}.arco-switch-checked{background-color:rgb(var(--primary-6))}.arco-switch-checked .arco-switch-handle{left:calc(100% - 20px);color:rgb(var(--primary-6))}.arco-switch[disabled] .arco-switch-handle{color:var(--color-fill-2)}.arco-switch[disabled].arco-switch-checked .arco-switch-handle{color:var(--color-primary-light-3)}.arco-switch-text-holder{margin:0 8px 0 26px;font-size:12px;opacity:0}.arco-switch-text{position:absolute;top:0;left:26px;color:var(--color-white);font-size:12px}.arco-switch-checked .arco-switch-text-holder{margin:0 26px 0 8px}.arco-switch-checked .arco-switch-text{left:8px;color:var(--color-white)}.arco-switch[disabled]{background-color:var(--color-fill-2);cursor:not-allowed}.arco-switch[disabled] .arco-switch-text{color:var(--color-white)}.arco-switch[disabled].arco-switch-checked{background-color:var(--color-primary-light-3)}.arco-switch[disabled].arco-switch-checked .arco-switch-text{color:var(--color-white)}.arco-switch-loading{background-color:var(--color-fill-2)}.arco-switch-loading .arco-switch-handle{color:var(--color-neutral-3)}.arco-switch-loading .arco-switch-text{color:var(--color-white)}.arco-switch-loading.arco-switch-checked{background-color:var(--color-primary-light-3)}.arco-switch-loading.arco-switch-checked .arco-switch-handle{color:var(--color-primary-light-3)}.arco-switch-loading.arco-switch-checked .arco-switch-text{color:var(--color-primary-light-1)}.arco-switch-small{min-width:28px;height:16px;line-height:16px}.arco-switch-small.arco-switch-checked{padding-left:-2px}.arco-switch-small .arco-switch-handle{top:2px;left:2px;width:12px;height:12px;border-radius:8px}.arco-switch-small .arco-switch-handle-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(.66667)}.arco-switch-small.arco-switch-checked .arco-switch-handle{left:calc(100% - 14px)}.arco-switch-type-round{min-width:40px;border-radius:var(--border-radius-small)}.arco-switch-type-round .arco-switch-handle{border-radius:2px}.arco-switch-type-round.arco-switch-small{min-width:28px;height:16px;line-height:16px;border-radius:2px}.arco-switch-type-round.arco-switch-small .arco-switch-handle{border-radius:1px}.arco-switch-type-line{min-width:36px;overflow:unset;background-color:transparent}.arco-switch-type-line:after{display:block;width:100%;height:6px;background-color:var(--color-fill-4);border-radius:3px;transition:background-color .2s cubic-bezier(.34,.69,.1,1);content:""}.arco-switch-type-line .arco-switch-handle{top:2px;left:0;width:20px;height:20px;background-color:var(--color-bg-white);border-radius:10px;box-shadow:0 1px 3px var(--color-neutral-6)}.arco-switch-type-line.arco-switch-checked{background-color:transparent}.arco-switch-type-line.arco-switch-checked:after{background-color:rgb(var(--primary-6))}.arco-switch-type-line.arco-switch-custom-color{--custom-color: var(--color-fill-4)}.arco-switch-type-line.arco-switch-custom-color:after{background-color:var(--custom-color)}.arco-switch-type-line.arco-switch-custom-color.arco-switch-checked{--custom-color: rgb(var(--primary-6))}.arco-switch-type-line.arco-switch-checked .arco-switch-handle{left:calc(100% - 20px)}.arco-switch-type-line[disabled]{background-color:transparent;cursor:not-allowed}.arco-switch-type-line[disabled]:after{background-color:var(--color-fill-2)}.arco-switch-type-line[disabled].arco-switch-checked{background-color:transparent}.arco-switch-type-line[disabled].arco-switch-checked:after{background-color:var(--color-primary-light-3)}.arco-switch-type-line.arco-switch-loading{background-color:transparent}.arco-switch-type-line.arco-switch-loading:after{background-color:var(--color-fill-2)}.arco-switch-type-line.arco-switch-loading.arco-switch-checked{background-color:transparent}.arco-switch-type-line.arco-switch-loading.arco-switch-checked:after{background-color:var(--color-primary-light-3)}.arco-switch-type-line.arco-switch-small{min-width:28px;height:16px;line-height:16px}.arco-switch-type-line.arco-switch-small.arco-switch-checked{padding-left:0}.arco-switch-type-line.arco-switch-small .arco-switch-handle{top:0;width:16px;height:16px;border-radius:8px}.arco-switch-type-line.arco-switch-small .arco-switch-handle-icon{transform:translate(-50%,-50%) scale(1)}.arco-switch-type-line.arco-switch-small.arco-switch-checked .arco-switch-handle{left:calc(100% - 16px)}.arco-table-filters-content{box-sizing:border-box;min-width:100px;background:var(--color-bg-5);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px #0000001a}.arco-table-filters-list{max-height:200px;padding:4px 0;overflow-y:auto}.arco-table-filters-item{height:32px;padding:0 12px;font-size:14px;line-height:32px}.arco-table-filters-text{width:100%;max-width:160px;height:34px;margin-right:0;padding-left:10px;overflow:hidden;line-height:32px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.arco-table-filters-bottom{box-sizing:border-box;height:38px;padding:0 12px;overflow:hidden;line-height:38px;border-top:1px solid var(--color-neutral-3)}.arco-table-filters-bottom>*:not(*:last-child){margin-right:8px}.arco-table{position:relative}.arco-table-column-handle{position:absolute;top:0;right:-4px;z-index:1;width:8px;height:100%;cursor:col-resize}.arco-table .arco-spin{display:flex;flex-direction:column;height:100%}.arco-table>.arco-spin>.arco-spin-children:after{z-index:2}.arco-table-footer{border-radius:0 0 var(--border-radius-medium) var(--border-radius-medium)}.arco-table-scroll-position-right .arco-table-col-fixed-left-last:after,.arco-table-scroll-position-middle .arco-table-col-fixed-left-last:after{box-shadow:inset 6px 0 8px -3px #00000026}.arco-table-scroll-position-left .arco-table-col-fixed-right-first:after,.arco-table-scroll-position-middle .arco-table-col-fixed-right-first:after{box-shadow:inset -6px 0 8px -3px #00000026}.arco-table-layout-fixed .arco-table-element{table-layout:fixed}.arco-table .arco-table-element{width:100%;min-width:100%;margin:0;border-collapse:separate;border-spacing:0}.arco-table-th{position:relative;box-sizing:border-box;color:rgb(var(--gray-10));font-weight:500;line-height:1.5715;text-align:left;background-color:var(--color-neutral-2)}.arco-table-th[colspan]{text-align:center}.arco-table-th-align-right{text-align:right}.arco-table-th-align-right .arco-table-cell-with-sorter{justify-content:flex-end}.arco-table-th-align-center{text-align:center}.arco-table-th-align-center .arco-table-cell-with-sorter{justify-content:center}.arco-table-td{box-sizing:border-box;color:rgb(var(--gray-10));line-height:1.5715;text-align:left;word-break:break-all;background-color:var(--color-bg-2);border-bottom:1px solid var(--color-neutral-3)}.arco-table-td-align-right{text-align:right}.arco-table-td-align-center{text-align:center}.arco-table-td.arco-table-drag-handle{cursor:move}.arco-table-cell{display:flex;align-items:center}.arco-table-cell-align-right{justify-content:flex-end;text-align:right}.arco-table-cell-align-center{justify-content:center;text-align:center}.arco-table-text-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-table-td-content{display:block;width:100%}.arco-table-th.arco-table-col-sorted{background-color:var(--color-neutral-3)}.arco-table-td.arco-table-col-sorted{background-color:var(--color-fill-1)}.arco-table-col-fixed-left,.arco-table-col-fixed-right{position:sticky;z-index:10}.arco-table-col-fixed-left-last:after,.arco-table-col-fixed-right-first:after{position:absolute;top:0;bottom:-1px;left:0;width:10px;box-shadow:none;transform:translate(-100%);transition:box-shadow .1s cubic-bezier(0,0,1,1);content:"";pointer-events:none}.arco-table-col-fixed-left-last:after{right:0;left:unset;transform:translate(100%)}.arco-table-cell-text-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-table-editable-row .arco-table-cell-wrap-value{border:1px solid var(--color-white);border-radius:var(--border-radius-medium);cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-table-editable-row:hover .arco-table-cell-wrap-value{border:1px solid var(--color-neutral-3)}.arco-table .arco-table-expand-btn{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;padding:0;color:var(--color-text-2);font-size:12px;line-height:14px;background-color:var(--color-neutral-3);border:1px solid transparent;border-radius:2px;outline:none;cursor:pointer;transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-table .arco-table-expand-btn:hover{color:var(--color-text-1);background-color:var(--color-neutral-4);border-color:transparent}.arco-table-cell-expand-icon{display:flex;align-items:center}.arco-table-cell-expand-icon .arco-table-cell-inline-icon{display:inline-flex;margin-right:4px}.arco-table-cell-expand-icon .arco-table-cell-inline-icon .arco-icon-loading{color:rgb(var(--primary-6))}.arco-table-cell-expand-icon-hidden{display:inline-block;width:14px;height:14px;margin-right:4px}.arco-table-tr-expand .arco-table-td{background-color:var(--color-fill-1)}.arco-table-cell-fixed-expand{position:sticky;left:0;box-sizing:border-box}.arco-table-tr-expand .arco-table-td .arco-table .arco-table-container{border:none}.arco-table-tr-expand .arco-table-td .arco-table .arco-table-th{border-bottom:1px solid var(--color-neutral-3)}.arco-table-tr-expand .arco-table-td .arco-table .arco-table-th,.arco-table-tr-expand .arco-table-td .arco-table .arco-table-td{background-color:transparent}.arco-table-tr-expand .arco-table-td .arco-table .arco-table-pagination{margin-bottom:12px}.arco-table-th.arco-table-operation,.arco-table-td.arco-table-operation{text-align:center}.arco-table-th.arco-table-operation .arco-table-cell,.arco-table-td.arco-table-operation .arco-table-cell{display:flex;justify-content:center;padding:0}.arco-table-radio,.arco-table-checkbox{justify-content:center}.arco-table-checkbox .arco-checkbox,.arco-table-radio .arco-radio{padding-left:0}.arco-table-selection-checkbox-col,.arco-table-selection-radio-col,.arco-table-expand-col,.arco-table-drag-handle-col{width:40px;min-width:40px;max-width:40px}.arco-table-th{transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-table-cell-with-sorter{display:flex;align-items:center;cursor:pointer}.arco-table-cell-with-sorter:hover{background-color:rgba(var(--gray-4),.5)}.arco-table-cell-with-filter{display:flex;align-items:center}.arco-table-cell-next-ascend .arco-table-sorter-icon .arco-icon-caret-up,.arco-table-cell-next-descend .arco-table-sorter-icon .arco-icon-caret-down{color:var(--color-neutral-6)}.arco-table-sorter{display:inline-block;margin-left:8px;vertical-align:-3px}.arco-table-sorter.arco-table-sorter-direction-one{vertical-align:0}.arco-table-sorter-icon{position:relative;width:14px;height:8px;overflow:hidden;line-height:8px}.arco-table-sorter-icon .arco-icon-caret-up,.arco-table-sorter-icon .arco-icon-caret-down{position:absolute;top:50%;color:var(--color-neutral-5);font-size:12px;transition:all .1s cubic-bezier(0,0,1,1)}.arco-table-sorter-icon .arco-icon-caret-up{top:-2px;left:1px}.arco-table-sorter-icon .arco-icon-caret-down{top:-3px;left:1px}.arco-table-sorter-icon.arco-table-sorter-icon-active svg{color:rgb(var(--primary-6))}.arco-table-filters{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:24px;height:100%;line-height:1;vertical-align:0;background-color:transparent;cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-table-filters:hover,.arco-table-filters-open{background-color:var(--color-neutral-4)}.arco-table-filters svg{color:var(--color-text-2);font-size:16px;transition:all .1s cubic-bezier(0,0,1,1)}.arco-table-filters-active svg{color:rgb(var(--primary-6))}.arco-table-filters-align-left{position:relative;width:auto;margin-left:8px}.arco-table-filters-align-left svg{font-size:12px}.arco-table-filters-align-left:hover,.arco-table-filters-align-left-open{background:none}.arco-table-filters-align-left:hover:before,.arco-table-filters-align-left.arco-table-filters-open:before{background:var(--color-fill-4)}.arco-table-container{position:relative;border-radius:var(--border-radius-medium) var(--border-radius-medium) 0 0}.arco-table-header{flex-shrink:0;border-radius:var(--border-radius-medium) var(--border-radius-medium) 0 0}.arco-table-container{box-sizing:border-box;width:100%;min-height:0}.arco-table-container .arco-table-content{display:flex;flex-direction:column;width:auto;height:100%}.arco-table-container .arco-table-content-scroll-x{overflow-x:auto;overflow-y:hidden}.arco-table-container:before,.arco-table-container:after{position:absolute;z-index:1;width:10px;height:100%;box-shadow:none;transition:box-shadow .1s cubic-bezier(0,0,1,1);content:"";pointer-events:none}.arco-table-container:before{top:0;left:0;border-top-left-radius:var(--border-radius-medium)}.arco-table-container:after{top:0;right:0;border-top-right-radius:var(--border-radius-medium)}.arco-table-container:not(.arco-table-has-fixed-col-left).arco-table-scroll-position-right:before,.arco-table-container:not(.arco-table-has-fixed-col-left).arco-table-scroll-position-middle:before{box-shadow:inset 6px 0 8px -3px #00000026}.arco-table-container:not(.arco-table-has-fixed-col-right).arco-table-scroll-position-left:after,.arco-table-container:not(.arco-table-has-fixed-col-right).arco-table-scroll-position-middle:after{box-shadow:inset -6px 0 8px -3px #00000026}.arco-table-header{overflow-x:hidden;overflow-y:hidden;background-color:var(--color-neutral-2);scrollbar-color:transparent transparent}.arco-table-header-sticky{position:sticky;top:0;z-index:100}.arco-table:not(.arco-table-empty) .arco-table-header::-webkit-scrollbar{height:0;background-color:transparent}.arco-table.arco-table-empty .arco-table-header{overflow-x:auto}.arco-table-body{position:relative;width:100%;min-height:40px;overflow:auto;background-color:var(--color-bg-2)}.arco-table-border .arco-table-container{border-top:1px solid var(--color-neutral-3);border-left:1px solid var(--color-neutral-3)}.arco-table-border .arco-table-scroll-y{border-bottom:1px solid var(--color-neutral-3)}.arco-table-border .arco-table-scroll-y .arco-table-body .arco-table-tr:last-of-type .arco-table-td,.arco-table-border .arco-table-scroll-y tfoot .arco-table-tr:last-of-type .arco-table-td{border-bottom:none}.arco-table-border .arco-table-scroll-y .arco-table-body .arco-table-tr:last-of-type .arco-table-td.arco-table-col-fixed-left-last:after,.arco-table-border .arco-table-scroll-y tfoot .arco-table-tr:last-of-type .arco-table-td.arco-table-col-fixed-left-last:after,.arco-table-border .arco-table-scroll-y .arco-table-body .arco-table-tr:last-of-type .arco-table-td.arco-table-col-fixed-right-first:after,.arco-table-border .arco-table-scroll-y tfoot .arco-table-tr:last-of-type .arco-table-td.arco-table-col-fixed-right-first:after{bottom:0}.arco-table-border .arco-table-tr .arco-table-th{border-bottom:1px solid var(--color-neutral-3)}.arco-table-border .arco-table-footer{border:1px solid var(--color-neutral-3);border-top:0}.arco-table-border:not(.arco-table-border-cell) .arco-table-container{border-right:1px solid var(--color-neutral-3)}.arco-table-border-cell .arco-table-th,.arco-table-border-cell .arco-table-td:not(.arco-table-tr-expand){border-right:1px solid var(--color-neutral-3)}.arco-table-border-cell .arco-table-th-resizing,.arco-table-border-cell .arco-table-td-resizing:not(.arco-table-tr-expand){border-right-color:rgb(var(--primary-6))}.arco-table-border-header-cell .arco-table-th{border-right:1px solid var(--color-neutral-3);border-bottom:1px solid var(--color-neutral-3)}.arco-table-border-header-cell .arco-table-th-resizing,.arco-table-border-header-cell .arco-table-td-resizing:not(.arco-table-tr-expand){border-right-color:rgb(var(--primary-6))}.arco-table-border.arco-table-border-header-cell thead .arco-table-tr:first-child .arco-table-th:last-child{border-right:0}.arco-table-border-body-cell .arco-table-td:not(:last-child):not(.arco-table-tr-expand){border-right:1px solid var(--color-neutral-3)}.arco-table-stripe:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):nth-child(2n) .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right),.arco-table-stripe .arco-table-tr-drag .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){background-color:var(--color-fill-1)}.arco-table-stripe:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):nth-child(2n) .arco-table-td.arco-table-col-fixed-left:before,.arco-table-stripe .arco-table-tr-drag .arco-table-td.arco-table-col-fixed-left:before,.arco-table-stripe:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):nth-child(2n) .arco-table-td.arco-table-col-fixed-right:before,.arco-table-stripe .arco-table-tr-drag .arco-table-td.arco-table-col-fixed-right:before{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;background-color:var(--color-fill-1);content:""}.arco-table .arco-table-tr-draggable{cursor:move}.arco-table-hover:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):hover .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right),.arco-table-hover .arco-table-tr-drag .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){background-color:var(--color-fill-1)}.arco-table-hover:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):hover .arco-table-td.arco-table-col-fixed-left:before,.arco-table-hover .arco-table-tr-drag .arco-table-td.arco-table-col-fixed-left:before,.arco-table-hover:not(.arco-table-dragging) .arco-table-tr:not(.arco-table-tr-empty):not(.arco-table-tr-summary):hover .arco-table-td.arco-table-col-fixed-right:before,.arco-table-hover .arco-table-tr-drag .arco-table-td.arco-table-col-fixed-right:before{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;background-color:var(--color-fill-1);content:""}.arco-table-hover .arco-table-tr-expand:not(.arco-table-tr-empty):hover .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){background-color:var(--color-fill-1)}.arco-table-tr-expand .arco-table-td .arco-table-hover .arco-table-tr:not(.arco-table-tr-empty) .arco-table-td:not(.arco-table-col-fixed-left):not(.arco-table-col-fixed-right){background-color:transparent}.arco-table-tr-expand .arco-table-td .arco-table-hover .arco-table-tr:not(.arco-table-tr-empty) .arco-table-td.arco-table-col-fixed-left:before,.arco-table-tr-expand .arco-table-td .arco-table-hover .arco-table-tr:not(.arco-table-tr-empty) .arco-table-td.arco-table-col-fixed-right:before{background-color:transparent}.arco-table-tfoot{position:relative;z-index:1;flex-shrink:0;width:100%;overflow-x:auto;background-color:var(--color-neutral-2);box-shadow:0 -1px 0 var(--color-neutral-3);scrollbar-color:transparent transparent}.arco-table-tfoot::-webkit-scrollbar{height:0;background-color:transparent}.arco-table tfoot .arco-table-td{background-color:var(--color-neutral-2)}.arco-table-tr-checked .arco-table-td{background-color:var(--color-fill-1)}.arco-table .arco-table-cell{padding:9px 16px}.arco-table .arco-table-th,.arco-table .arco-table-td{font-size:14px}.arco-table .arco-table-footer{padding:9px 16px}.arco-table .arco-table-tr-expand .arco-table-td .arco-table{margin:-9px -16px -10px}.arco-table .arco-table-editable-row .arco-table-cell-wrap-value{padding:9px 16px}.arco-table-size-medium .arco-table-cell{padding:7px 16px}.arco-table-size-medium .arco-table-th,.arco-table-size-medium .arco-table-td{font-size:14px}.arco-table-size-medium .arco-table-footer{padding:7px 16px}.arco-table-size-medium .arco-table-tr-expand .arco-table-td .arco-table{margin:-7px -16px -8px}.arco-table-size-medium .arco-table-editable-row .arco-table-cell-wrap-value{padding:7px 16px}.arco-table-size-small .arco-table-cell{padding:5px 16px}.arco-table-size-small .arco-table-th,.arco-table-size-small .arco-table-td{font-size:14px}.arco-table-size-small .arco-table-footer{padding:5px 16px}.arco-table-size-small .arco-table-tr-expand .arco-table-td .arco-table{margin:-5px -16px -6px}.arco-table-size-small .arco-table-editable-row .arco-table-cell-wrap-value{padding:5px 16px}.arco-table-size-mini .arco-table-cell{padding:2px 16px}.arco-table-size-mini .arco-table-th,.arco-table-size-mini .arco-table-td{font-size:12px}.arco-table-size-mini .arco-table-footer{padding:2px 16px}.arco-table-size-mini .arco-table-tr-expand .arco-table-td .arco-table{margin:-2px -16px -3px}.arco-table-size-mini .arco-table-editable-row .arco-table-cell-wrap-value{padding:2px 16px}.arco-table-virtualized .arco-table-element{table-layout:fixed}.arco-table-virtualized div.arco-table-body div.arco-table-tr{display:flex}.arco-table-virtualized div.arco-table-body div.arco-table-td{display:flex;flex:1;align-items:center}.arco-table-pagination{display:flex;align-items:center;justify-content:flex-end;margin-top:12px}.arco-table-pagination-left{justify-content:flex-start}.arco-table-pagination-center{justify-content:center}.arco-table-pagination-top{margin-top:0;margin-bottom:12px}.arco-virtual-list>.arco-table-element{width:auto}body[arco-theme=dark] .arco-table-tr-checked .arco-table-td{background-color:var(--color-neutral-2)}.arco-icon-hover.arco-tabs-icon-hover:before{width:16px;height:16px}.arco-tabs .arco-tabs-icon-hover{color:var(--color-text-2);font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tabs-dropdown-icon{margin-left:6px;font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tabs-tab-close-btn{margin-left:8px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tabs-nav-add-btn{display:inline-flex;align-items:center;justify-content:center;padding:0 8px;font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tabs-add{position:relative}.arco-tabs-nav-button-left{margin-right:6px;margin-left:10px}.arco-tabs-nav-button-right{margin-right:10px;margin-left:6px}.arco-tabs-nav-button-up{margin-bottom:10px}.arco-tabs-nav-button-down{margin-top:10px}.arco-tabs-nav-button-disabled{color:var(--color-text-4);cursor:not-allowed}.arco-tabs{position:relative;overflow:hidden}.arco-tabs-nav{position:relative;flex-shrink:0}.arco-tabs-nav:before{position:absolute;right:0;bottom:0;left:0;display:block;clear:both;height:1px;background-color:var(--color-neutral-3);content:""}.arco-tabs-nav-tab{display:flex;flex:1;overflow:hidden}.arco-tabs-nav-tab-list{position:relative;display:inline-block;white-space:nowrap;transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-tabs-nav-extra{display:flex;align-items:center;width:auto;line-height:32px}.arco-tabs-nav-extra .arco-tabs-nav-add-btn{padding-left:0}.arco-tabs-tab{display:inline-flex;align-items:center;box-sizing:border-box;padding:4px 0;color:var(--color-text-2);font-size:14px;line-height:1.5715;outline:none;cursor:pointer;transition:color .2s cubic-bezier(0,0,1,1)}.arco-tabs-tab-title{display:inline-block}.arco-tabs-tab:hover{color:var(--color-text-2);font-weight:400}.arco-tabs-tab-disabled,.arco-tabs-tab-disabled:hover{color:var(--color-text-4);cursor:not-allowed}.arco-tabs-tab-active,.arco-tabs-tab-active:hover{color:rgb(var(--primary-6));font-weight:500}.arco-tabs-tab-active.arco-tabs-tab-disabled,.arco-tabs-tab-active:hover.arco-tabs-tab-disabled{color:var(--color-primary-light-3)}.arco-tabs-nav-ink{position:absolute;top:initial;right:initial;bottom:0;height:2px;background-color:rgb(var(--primary-6));transition:left .2s cubic-bezier(.34,.69,.1,1),width .2s cubic-bezier(.34,.69,.1,1)}.arco-tabs-nav-ink.arco-tabs-header-ink-no-animation{transition:none}.arco-tabs-nav-ink-disabled{background-color:var(--color-primary-light-3)}.arco-tabs-nav-type-line .arco-tabs-nav-extra{line-height:40px}.arco-tabs-nav-type-line .arco-tabs-tab{margin:0 16px;padding:8px 0;line-height:1.5715}.arco-tabs-nav-type-line .arco-tabs-tab-title{position:relative;display:inline-block;padding:1px 0}.arco-tabs-nav-type-line .arco-tabs-tab-title:before{position:absolute;inset:0 -8px;z-index:-1;background-color:transparent;border-radius:var(--border-radius-small);opacity:1;transition:background-color .2s cubic-bezier(0,0,1,1),opacity .2s cubic-bezier(0,0,1,1);content:""}.arco-tabs-nav-type-line .arco-tabs-tab:hover .arco-tabs-tab-title:before{background-color:var(--color-fill-2)}.arco-tabs-nav-type-line .arco-tabs-tab-active .arco-tabs-tab-title:before,.arco-tabs-nav-type-line .arco-tabs-tab-active:hover .arco-tabs-tab-title:before{background-color:transparent}.arco-tabs-nav-type-line .arco-tabs-tab-disabled .arco-tabs-tab-title:before,.arco-tabs-nav-type-line .arco-tabs-tab-disabled:hover .arco-tabs-tab-title:before{opacity:0}.arco-tabs-nav-type-line .arco-tabs-tab:focus-visible .arco-tabs-tab-title:before{border:2px solid rgb(var(--primary-6))}.arco-tabs-nav-type-line.arco-tabs-nav-horizontal>.arco-tabs-tab:first-of-type{margin-left:16px}.arco-tabs-nav-type-line.arco-tabs-nav-horizontal .arco-tabs-nav-tab-list-no-padding>.arco-tabs-tab:first-of-type,.arco-tabs-nav-text.arco-tabs-nav-horizontal .arco-tabs-nav-tab-list-no-padding>.arco-tabs-tab:first-of-type{margin-left:0}.arco-tabs-nav-type-card .arco-tabs-tab,.arco-tabs-nav-type-card-gutter .arco-tabs-tab{position:relative;padding:4px 16px;font-size:14px;border:1px solid var(--color-neutral-3);transition:padding .2s cubic-bezier(0,0,1,1),color .2s cubic-bezier(0,0,1,1)}.arco-tabs-nav-type-card .arco-tabs-tab-closable,.arco-tabs-nav-type-card-gutter .arco-tabs-tab-closable{padding-right:12px}.arco-tabs-nav-type-card .arco-tabs-tab-closable:not(.arco-tabs-tab-active):hover .arco-icon-hover:hover:before,.arco-tabs-nav-type-card-gutter .arco-tabs-tab-closable:not(.arco-tabs-tab-active):hover .arco-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-tabs-nav-type-card .arco-tabs-tab:focus-visible:before,.arco-tabs-nav-type-card-gutter .arco-tabs-tab:focus-visible:before{position:absolute;inset:-1px 0 -1px -1px;border:2px solid rgb(var(--primary-6));content:""}.arco-tabs-nav-type-card .arco-tabs-tab:last-child:focus-visible:before,.arco-tabs-nav-type-card-gutter .arco-tabs-tab:last-child:focus-visible:before{right:-1px}.arco-tabs-nav-type-card .arco-tabs-nav-add-btn,.arco-tabs-nav-type-card-gutter .arco-tabs-nav-add-btn{height:32px}.arco-tabs-nav-type-card .arco-tabs-tab{background-color:transparent;border-right:none}.arco-tabs-nav-type-card .arco-tabs-tab:last-child{border-right:1px solid var(--color-neutral-3);border-top-right-radius:var(--border-radius-small)}.arco-tabs-nav-type-card .arco-tabs-tab:first-child{border-top-left-radius:var(--border-radius-small)}.arco-tabs-nav-type-card .arco-tabs-tab:hover{background-color:var(--color-fill-3)}.arco-tabs-nav-type-card .arco-tabs-tab-disabled,.arco-tabs-nav-type-card .arco-tabs-tab-disabled:hover{background-color:transparent}.arco-tabs-nav-type-card .arco-tabs-tab-active,.arco-tabs-nav-type-card .arco-tabs-tab-active:hover{background-color:transparent;border-bottom-color:var(--color-bg-2)}.arco-tabs-nav-type-card-gutter .arco-tabs-tab{margin-left:4px;background-color:var(--color-fill-1);border-right:1px solid var(--color-neutral-3);border-radius:var(--border-radius-small) var(--border-radius-small) 0 0}.arco-tabs-nav-type-card-gutter .arco-tabs-tab:hover{background-color:var(--color-fill-3)}.arco-tabs-nav-type-card-gutter .arco-tabs-tab-disabled,.arco-tabs-nav-type-card-gutter .arco-tabs-tab-disabled:hover{background-color:var(--color-fill-1)}.arco-tabs-nav-type-card-gutter .arco-tabs-tab-active,.arco-tabs-nav-type-card-gutter .arco-tabs-tab-active:hover{background-color:transparent;border-bottom-color:var(--color-bg-2)}.arco-tabs-nav-type-card-gutter .arco-tabs-tab:first-child{margin-left:0}.arco-tabs-nav-type-text:before{display:none}.arco-tabs-nav-type-text .arco-tabs-tab{position:relative;margin:0 9px;padding:5px 0;font-size:14px;line-height:1.5715}.arco-tabs-nav-type-text .arco-tabs-tab:not(:first-of-type):before{position:absolute;top:50%;left:-9px;display:block;width:2px;height:12px;background-color:var(--color-fill-3);transform:translateY(-50%);content:""}.arco-tabs-nav-type-text .arco-tabs-tab-title{padding-right:8px;padding-left:8px;background-color:transparent}.arco-tabs-nav-type-text .arco-tabs-tab-title:hover{background-color:var(--color-fill-2)}.arco-tabs-nav-type-text .arco-tabs-tab-active .arco-tabs-tab-title,.arco-tabs-nav-type-text .arco-tabs-tab-active .arco-tabs-tab-title:hover,.arco-tabs-nav-type-text .arco-tabs-tab-disabled .arco-tabs-tab-title,.arco-tabs-nav-type-text .arco-tabs-tab-disabled .arco-tabs-tab-title:hover{background-color:transparent}.arco-tabs-nav-type-text .arco-tabs-tab-active.arco-tabs-nav-type-text .arco-tabs-tab-disabled .arco-tabs-tab-title,.arco-tabs-nav-type-text .arco-tabs-tab-active.arco-tabs-nav-type-text .arco-tabs-tab-disabled .arco-tabs-tab-title:hover{background-color:var(--color-primary-light-3)}.arco-tabs-nav-type-text .arco-tabs-tab:focus-visible .arco-tabs-tab-title{margin:-2px;border:2px solid rgb(var(--primary-6))}.arco-tabs-nav-type-rounded:before{display:none}.arco-tabs-nav-type-rounded .arco-tabs-tab{margin:0 6px;padding:5px 16px;font-size:14px;background-color:transparent;border-radius:32px}.arco-tabs-nav-type-rounded .arco-tabs-tab:hover{background-color:var(--color-fill-2)}.arco-tabs-nav-type-rounded .arco-tabs-tab-disabled:hover{background-color:transparent}.arco-tabs-nav-type-rounded .arco-tabs-tab-active,.arco-tabs-nav-type-rounded .arco-tabs-tab-active:hover{background-color:var(--color-fill-2)}.arco-tabs-nav-type-rounded .arco-tabs-tab:focus-visible{border-color:rgb(var(--primary-6))}.arco-tabs-nav-type-capsule:before{display:none}.arco-tabs-nav-type-capsule .arco-tabs-nav-tab:not(.arco-tabs-nav-tab-scroll){justify-content:flex-end}.arco-tabs-nav-type-capsule .arco-tabs-nav-tab-list{padding:3px;line-height:1;background-color:var(--color-fill-2);border-radius:var(--border-radius-small)}.arco-tabs-nav-type-capsule .arco-tabs-tab{position:relative;padding:0 10px;font-size:14px;line-height:26px;background-color:transparent}.arco-tabs-nav-type-capsule .arco-tabs-tab:hover{background-color:var(--color-bg-2)}.arco-tabs-nav-type-capsule .arco-tabs-tab-disabled:hover{background-color:unset}.arco-tabs-nav-type-capsule .arco-tabs-tab-active,.arco-tabs-nav-type-capsule .arco-tabs-tab-active:hover{background-color:var(--color-bg-2)}.arco-tabs-nav-type-capsule .arco-tabs-tab-active:before,.arco-tabs-nav-type-capsule .arco-tabs-tab-active:hover:before,.arco-tabs-nav-type-capsule .arco-tabs-tab-active+.arco-tabs-tab:before,.arco-tabs-nav-type-capsule .arco-tabs-tab-active:hover+.arco-tabs-tab:before{opacity:0}.arco-tabs-nav-type-capsule .arco-tabs-tab:focus-visible{border-color:rgb(var(--primary-6))}.arco-tabs-nav-type-capsule.arco-tabs-nav-horizontal .arco-tabs-tab:not(:first-of-type){margin-left:3px}.arco-tabs-nav-type-capsule.arco-tabs-nav-horizontal .arco-tabs-tab:not(:first-of-type):before{position:absolute;top:50%;left:-4px;display:block;width:1px;height:14px;background-color:var(--color-fill-3);transform:translateY(-50%);transition:all .2s cubic-bezier(0,0,1,1);content:""}.arco-tabs-nav{position:relative;display:flex;align-items:center;overflow:hidden}.arco-tabs-content{box-sizing:border-box;width:100%;padding-top:16px;overflow:hidden}.arco-tabs-content-hide{display:none}.arco-tabs-content .arco-tabs-content-list{display:flex;width:100%}.arco-tabs-content .arco-tabs-content-item{flex-shrink:0;width:100%;height:0;overflow:hidden}.arco-tabs-content .arco-tabs-content-item.arco-tabs-content-item-active{height:auto}.arco-tabs-type-card>.arco-tabs-content,.arco-tabs-type-card-gutter>.arco-tabs-content{border:1px solid var(--color-neutral-3);border-top:none}.arco-tabs-content-animation{transition:all .2s cubic-bezier(.34,.69,.1,1)}.arco-tabs-horizontal.arco-tabs-justify{display:flex;flex-direction:column;height:100%}.arco-tabs-horizontal.arco-tabs-justify .arco-tabs-content,.arco-tabs-horizontal.arco-tabs-justify .arco-tabs-content-list,.arco-tabs-horizontal.arco-tabs-justify .arco-tabs-pane{height:100%}.arco-tabs-nav-size-mini.arco-tabs-nav-type-line .arco-tabs-tab{padding-top:6px;padding-bottom:6px;font-size:12px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-line .arco-tabs-nav-extra{font-size:12px;line-height:32px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-card .arco-tabs-tab,.arco-tabs-nav-size-mini.arco-tabs-nav-type-card-gutter .arco-tabs-tab{padding-top:1px;padding-bottom:1px;font-size:12px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-card .arco-tabs-nav-extra,.arco-tabs-nav-size-mini.arco-tabs-nav-type-card-gutter .arco-tabs-nav-extra{font-size:12px;line-height:24px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-card .arco-tabs-nav-add-btn,.arco-tabs-nav-size-mini.arco-tabs-nav-type-card-gutter .arco-tabs-nav-add-btn{height:24px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-capsule .arco-tabs-tab{font-size:12px;line-height:18px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-capsule .arco-tabs-nav-extra{font-size:12px;line-height:24px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-rounded .arco-tabs-tab{padding-top:3px;padding-bottom:3px;font-size:12px}.arco-tabs-nav-size-mini.arco-tabs-nav-type-rounded .arco-tabs-nav-extra{font-size:12px;line-height:24px}.arco-tabs-nav-size-small.arco-tabs-nav-type-line .arco-tabs-tab{padding-top:6px;padding-bottom:6px;font-size:14px}.arco-tabs-nav-size-small.arco-tabs-nav-type-line .arco-tabs-nav-extra{font-size:14px;line-height:36px}.arco-tabs-nav-size-small.arco-tabs-nav-type-card .arco-tabs-tab,.arco-tabs-nav-size-small.arco-tabs-nav-type-card-gutter .arco-tabs-tab{padding-top:1px;padding-bottom:1px;font-size:14px}.arco-tabs-nav-size-small.arco-tabs-nav-type-card .arco-tabs-nav-extra,.arco-tabs-nav-size-small.arco-tabs-nav-type-card-gutter .arco-tabs-nav-extra{font-size:14px;line-height:28px}.arco-tabs-nav-size-small.arco-tabs-nav-type-card .arco-tabs-nav-add-btn,.arco-tabs-nav-size-small.arco-tabs-nav-type-card-gutter .arco-tabs-nav-add-btn{height:28px}.arco-tabs-nav-size-small.arco-tabs-nav-type-capsule .arco-tabs-tab{font-size:14px;line-height:22px}.arco-tabs-nav-size-small.arco-tabs-nav-type-capsule .arco-tabs-nav-extra{font-size:14px;line-height:28px}.arco-tabs-nav-size-small.arco-tabs-nav-type-rounded .arco-tabs-tab{padding-top:3px;padding-bottom:3px;font-size:14px}.arco-tabs-nav-size-small.arco-tabs-nav-type-rounded .arco-tabs-nav-extra{font-size:14px;line-height:28px}.arco-tabs-nav-size-large.arco-tabs-nav-type-line .arco-tabs-tab{padding-top:10px;padding-bottom:10px;font-size:14px}.arco-tabs-nav-size-large.arco-tabs-nav-type-line .arco-tabs-nav-extra{font-size:14px;line-height:44px}.arco-tabs-nav-size-large.arco-tabs-nav-type-card .arco-tabs-tab,.arco-tabs-nav-size-large.arco-tabs-nav-type-card-gutter .arco-tabs-tab{padding-top:5px;padding-bottom:5px;font-size:14px}.arco-tabs-nav-size-large.arco-tabs-nav-type-card .arco-tabs-nav-extra,.arco-tabs-nav-size-large.arco-tabs-nav-type-card-gutter .arco-tabs-nav-extra{font-size:14px;line-height:36px}.arco-tabs-nav-size-large.arco-tabs-nav-type-card .arco-tabs-nav-add-btn,.arco-tabs-nav-size-large.arco-tabs-nav-type-card-gutter .arco-tabs-nav-add-btn{height:36px}.arco-tabs-nav-size-large.arco-tabs-nav-type-capsule .arco-tabs-tab{font-size:14px;line-height:30px}.arco-tabs-nav-size-large.arco-tabs-nav-type-capsule .arco-tabs-nav-extra{font-size:14px;line-height:36px}.arco-tabs-nav-size-large.arco-tabs-nav-type-rounded .arco-tabs-tab{padding-top:7px;padding-bottom:7px;font-size:14px}.arco-tabs-nav-size-large.arco-tabs-nav-type-rounded .arco-tabs-nav-extra{font-size:14px;line-height:36px}.arco-tabs-nav-vertical{float:left;height:100%}.arco-tabs-nav-vertical:before{position:absolute;top:0;right:0;bottom:0;left:initial;clear:both;width:1px;height:100%}.arco-tabs-nav-vertical .arco-tabs-nav-add-btn{height:auto;margin-top:8px;margin-left:0;padding:0 16px}.arco-tabs-nav-right{float:right}.arco-tabs-nav-vertical{flex-direction:column}.arco-tabs-nav-vertical .arco-tabs-nav-tab{flex-direction:column;height:100%}.arco-tabs-nav-vertical .arco-tabs-nav-ink{position:absolute;right:0;bottom:initial;left:initial;width:2px;transition:top .2s cubic-bezier(.34,.69,.1,1),height .2s cubic-bezier(.34,.69,.1,1)}.arco-tabs-nav-vertical .arco-tabs-nav-tab-list{height:auto}.arco-tabs-nav-vertical .arco-tabs-nav-tab-list-overflow-scroll{padding:6px 0}.arco-tabs-nav-vertical .arco-tabs-tab{display:block;margin:12px 0 0;white-space:nowrap}.arco-tabs-nav-vertical .arco-tabs-tab:first-of-type{margin-top:0}.arco-tabs-nav-right:before{right:unset;left:0}.arco-tabs-nav-right .arco-tabs-nav-ink{right:unset;left:0}.arco-tabs-nav-vertical{position:relative;box-sizing:border-box;height:100%}.arco-tabs-nav-vertical.arco-tabs-nav-type-line .arco-tabs-tab{padding:0 20px}.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab{position:relative;margin:0;border:1px solid var(--color-neutral-3);border-bottom-color:transparent}.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab:first-child{border-top-left-radius:var(--border-radius-small)}.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab-active,.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab-active:hover{border-right-color:var(--color-bg-2);border-bottom-color:transparent}.arco-tabs-nav-vertical.arco-tabs-nav-type-card .arco-tabs-tab:last-child{border-bottom:1px solid var(--color-neutral-3);border-bottom-left-radius:var(--border-radius-small)}.arco-tabs-nav-vertical.arco-tabs-nav-type-card-gutter .arco-tabs-tab{position:relative;margin-left:0;border-radius:var(--border-radius-small) 0 0 var(--border-radius-small)}.arco-tabs-nav-vertical.arco-tabs-nav-type-card-gutter .arco-tabs-tab:not(:first-of-type){margin-top:4px}.arco-tabs-nav-vertical.arco-tabs-nav-type-card-gutter .arco-tabs-tab-active,.arco-tabs-nav-vertical.arco-tabs-nav-type-card-gutter .arco-tabs-tab-active:hover{border-right-color:var(--color-bg-2);border-bottom-color:var(--color-neutral-3)}.arco-tabs-vertical .arco-tabs-content{width:auto;height:100%;padding:0}.arco-tabs-right.arco-tabs-vertical .arco-tabs-content{padding-right:16px}.arco-tabs-left.arco-tabs-vertical .arco-tabs-content{padding-left:16px}.arco-tabs-vertical.arco-tabs-type-card>.arco-tabs-content,.arco-tabs-vertical.arco-tabs-type-card-gutter>.arco-tabs-content{border:1px solid var(--color-neutral-3);border-left:none}body[arco-theme=dark] .arco-tabs-nav-type-capsule .arco-tabs-tab-active,body[arco-theme=dark] .arco-tabs-nav-type-capsule .arco-tabs-tab:hover{background-color:var(--color-fill-3)}.arco-tag{display:inline-flex;align-items:center;box-sizing:border-box;height:24px;padding:0 8px;color:var(--color-text-1);font-weight:500;font-size:12px;line-height:22px;vertical-align:middle;border:1px solid transparent;border-radius:var(--border-radius-small);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-tag .arco-icon-hover.arco-tag-icon-hover:before{width:16px;height:16px}.arco-tag .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:var(--color-fill-3)}.arco-tag-checkable{cursor:pointer;transition:all .1s cubic-bezier(0,0,1,1)}.arco-tag-checkable:hover{background-color:var(--color-fill-2)}.arco-tag-checked{background-color:var(--color-fill-2);border-color:transparent}.arco-tag-checkable.arco-tag-checked:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-tag-bordered,.arco-tag-checkable.arco-tag-checked.arco-tag-bordered:hover{border-color:var(--color-border-2)}.arco-tag-size-small{height:20px;font-size:12px;line-height:18px}.arco-tag-size-medium{height:24px;font-size:12px;line-height:22px}.arco-tag-size-large{height:32px;font-size:14px;line-height:30px}.arco-tag-hide{display:none}.arco-tag-loading{cursor:default;opacity:.8}.arco-tag-icon{margin-right:4px;color:var(--color-text-2)}.arco-tag-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-tag.arco-tag-checked.arco-tag-red{color:rgb(var(--red-6));background-color:rgb(var(--red-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-red .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--red-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-red.arco-tag:hover{background-color:rgb(var(--red-2));border-color:transparent}.arco-tag-checked.arco-tag-red.arco-tag-bordered,.arco-tag-checked.arco-tag-red.arco-tag-bordered:hover{border-color:rgb(var(--red-6))}.arco-tag.arco-tag-checked.arco-tag-red .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-red .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-red .arco-tag-loading-icon{color:rgb(var(--red-6))}.arco-tag.arco-tag-checked.arco-tag-orangered{color:rgb(var(--orangered-6));background-color:rgb(var(--orangered-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-orangered .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--orangered-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-orangered.arco-tag:hover{background-color:rgb(var(--orangered-2));border-color:transparent}.arco-tag-checked.arco-tag-orangered.arco-tag-bordered,.arco-tag-checked.arco-tag-orangered.arco-tag-bordered:hover{border-color:rgb(var(--orangered-6))}.arco-tag.arco-tag-checked.arco-tag-orangered .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-orangered .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-orangered .arco-tag-loading-icon{color:rgb(var(--orangered-6))}.arco-tag.arco-tag-checked.arco-tag-orange{color:rgb(var(--orange-6));background-color:rgb(var(--orange-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-orange .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--orange-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-orange.arco-tag:hover{background-color:rgb(var(--orange-2));border-color:transparent}.arco-tag-checked.arco-tag-orange.arco-tag-bordered,.arco-tag-checked.arco-tag-orange.arco-tag-bordered:hover{border-color:rgb(var(--orange-6))}.arco-tag.arco-tag-checked.arco-tag-orange .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-orange .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-orange .arco-tag-loading-icon{color:rgb(var(--orange-6))}.arco-tag.arco-tag-checked.arco-tag-gold{color:rgb(var(--gold-6));background-color:rgb(var(--gold-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-gold .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--gold-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-gold.arco-tag:hover{background-color:rgb(var(--gold-3));border-color:transparent}.arco-tag-checked.arco-tag-gold.arco-tag-bordered,.arco-tag-checked.arco-tag-gold.arco-tag-bordered:hover{border-color:rgb(var(--gold-6))}.arco-tag.arco-tag-checked.arco-tag-gold .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-gold .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-gold .arco-tag-loading-icon{color:rgb(var(--gold-6))}.arco-tag.arco-tag-checked.arco-tag-lime{color:rgb(var(--lime-6));background-color:rgb(var(--lime-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-lime .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--lime-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-lime.arco-tag:hover{background-color:rgb(var(--lime-2));border-color:transparent}.arco-tag-checked.arco-tag-lime.arco-tag-bordered,.arco-tag-checked.arco-tag-lime.arco-tag-bordered:hover{border-color:rgb(var(--lime-6))}.arco-tag.arco-tag-checked.arco-tag-lime .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-lime .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-lime .arco-tag-loading-icon{color:rgb(var(--lime-6))}.arco-tag.arco-tag-checked.arco-tag-green{color:rgb(var(--green-6));background-color:rgb(var(--green-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-green .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--green-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-green.arco-tag:hover{background-color:rgb(var(--green-2));border-color:transparent}.arco-tag-checked.arco-tag-green.arco-tag-bordered,.arco-tag-checked.arco-tag-green.arco-tag-bordered:hover{border-color:rgb(var(--green-6))}.arco-tag.arco-tag-checked.arco-tag-green .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-green .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-green .arco-tag-loading-icon{color:rgb(var(--green-6))}.arco-tag.arco-tag-checked.arco-tag-cyan{color:rgb(var(--cyan-6));background-color:rgb(var(--cyan-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-cyan .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--cyan-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-cyan.arco-tag:hover{background-color:rgb(var(--cyan-2));border-color:transparent}.arco-tag-checked.arco-tag-cyan.arco-tag-bordered,.arco-tag-checked.arco-tag-cyan.arco-tag-bordered:hover{border-color:rgb(var(--cyan-6))}.arco-tag.arco-tag-checked.arco-tag-cyan .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-cyan .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-cyan .arco-tag-loading-icon{color:rgb(var(--cyan-6))}.arco-tag.arco-tag-checked.arco-tag-blue{color:rgb(var(--blue-6));background-color:rgb(var(--blue-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-blue .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--blue-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-blue.arco-tag:hover{background-color:rgb(var(--blue-2));border-color:transparent}.arco-tag-checked.arco-tag-blue.arco-tag-bordered,.arco-tag-checked.arco-tag-blue.arco-tag-bordered:hover{border-color:rgb(var(--blue-6))}.arco-tag.arco-tag-checked.arco-tag-blue .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-blue .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-blue .arco-tag-loading-icon{color:rgb(var(--blue-6))}.arco-tag.arco-tag-checked.arco-tag-arcoblue{color:rgb(var(--arcoblue-6));background-color:rgb(var(--arcoblue-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-arcoblue .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--arcoblue-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-arcoblue.arco-tag:hover{background-color:rgb(var(--arcoblue-2));border-color:transparent}.arco-tag-checked.arco-tag-arcoblue.arco-tag-bordered,.arco-tag-checked.arco-tag-arcoblue.arco-tag-bordered:hover{border-color:rgb(var(--arcoblue-6))}.arco-tag.arco-tag-checked.arco-tag-arcoblue .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-arcoblue .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-arcoblue .arco-tag-loading-icon{color:rgb(var(--arcoblue-6))}.arco-tag.arco-tag-checked.arco-tag-purple{color:rgb(var(--purple-6));background-color:rgb(var(--purple-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-purple .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--purple-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-purple.arco-tag:hover{background-color:rgb(var(--purple-2));border-color:transparent}.arco-tag-checked.arco-tag-purple.arco-tag-bordered,.arco-tag-checked.arco-tag-purple.arco-tag-bordered:hover{border-color:rgb(var(--purple-6))}.arco-tag.arco-tag-checked.arco-tag-purple .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-purple .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-purple .arco-tag-loading-icon{color:rgb(var(--purple-6))}.arco-tag.arco-tag-checked.arco-tag-pinkpurple{color:rgb(var(--pinkpurple-6));background-color:rgb(var(--pinkpurple-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-pinkpurple .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--pinkpurple-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-pinkpurple.arco-tag:hover{background-color:rgb(var(--pinkpurple-2));border-color:transparent}.arco-tag-checked.arco-tag-pinkpurple.arco-tag-bordered,.arco-tag-checked.arco-tag-pinkpurple.arco-tag-bordered:hover{border-color:rgb(var(--pinkpurple-6))}.arco-tag.arco-tag-checked.arco-tag-pinkpurple .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-pinkpurple .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-pinkpurple .arco-tag-loading-icon{color:rgb(var(--pinkpurple-6))}.arco-tag.arco-tag-checked.arco-tag-magenta{color:rgb(var(--magenta-6));background-color:rgb(var(--magenta-1));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-magenta .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--magenta-2))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-magenta.arco-tag:hover{background-color:rgb(var(--magenta-2));border-color:transparent}.arco-tag-checked.arco-tag-magenta.arco-tag-bordered,.arco-tag-checked.arco-tag-magenta.arco-tag-bordered:hover{border-color:rgb(var(--magenta-6))}.arco-tag.arco-tag-checked.arco-tag-magenta .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-magenta .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-magenta .arco-tag-loading-icon{color:rgb(var(--magenta-6))}.arco-tag.arco-tag-checked.arco-tag-gray{color:rgb(var(--gray-6));background-color:rgb(var(--gray-2));border:1px solid transparent}.arco-tag.arco-tag-checked.arco-tag-gray .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgb(var(--gray-3))}.arco-tag.arco-tag-checkable.arco-tag-checked.arco-tag-gray.arco-tag:hover{background-color:rgb(var(--gray-3));border-color:transparent}.arco-tag-checked.arco-tag-gray.arco-tag-bordered,.arco-tag-checked.arco-tag-gray.arco-tag-bordered:hover{border-color:rgb(var(--gray-6))}.arco-tag.arco-tag-checked.arco-tag-gray .arco-tag-icon,.arco-tag.arco-tag-checked.arco-tag-gray .arco-tag-close-btn,.arco-tag.arco-tag-checked.arco-tag-gray .arco-tag-loading-icon{color:rgb(var(--gray-6))}.arco-tag.arco-tag-custom-color{color:var(--color-white)}.arco-tag.arco-tag-custom-color .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:#fff3}.arco-tag .arco-tag-close-btn{margin-left:4px;font-size:12px}.arco-tag .arco-tag-close-btn>svg{position:relative}.arco-tag .arco-tag-loading-icon{margin-left:4px;font-size:12px}body[arco-theme=dark] .arco-tag-checked{color:#ffffffe6}body[arco-theme=dark] .arco-tag-checked.arco-tag-red{background-color:rgba(var(--red-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-red .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--red-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-red:hover{background-color:rgba(var(--red-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-orangered{background-color:rgba(var(--orangered-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-orangered .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--orangered-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-orangered:hover{background-color:rgba(var(--orangered-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-orange{background-color:rgba(var(--orange-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-orange .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--orange-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-orange:hover{background-color:rgba(var(--orange-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-gold{background-color:rgba(var(--gold-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-gold .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--gold-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-gold:hover{background-color:rgba(var(--gold-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-lime{background-color:rgba(var(--lime-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-lime .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--lime-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-lime:hover{background-color:rgba(var(--lime-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-green{background-color:rgba(var(--green-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-green .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--green-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-green:hover{background-color:rgba(var(--green-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-cyan{background-color:rgba(var(--cyan-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-cyan .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--cyan-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-cyan:hover{background-color:rgba(var(--cyan-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-blue{background-color:rgba(var(--blue-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-blue .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--blue-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-blue:hover{background-color:rgba(var(--blue-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-arcoblue{background-color:rgba(var(--arcoblue-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-arcoblue .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--arcoblue-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-arcoblue:hover{background-color:rgba(var(--arcoblue-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-purple{background-color:rgba(var(--purple-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-purple .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--purple-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-purple:hover{background-color:rgba(var(--purple-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-pinkpurple{background-color:rgba(var(--pinkpurple-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-pinkpurple .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--pinkpurple-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-pinkpurple:hover{background-color:rgba(var(--pinkpurple-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-magenta{background-color:rgba(var(--magenta-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-magenta .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--magenta-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-magenta:hover{background-color:rgba(var(--magenta-6),.35)}body[arco-theme=dark] .arco-tag-checked.arco-tag-gray{background-color:rgba(var(--gray-6),.2)}body[arco-theme=dark] .arco-tag-checked.arco-tag-gray .arco-icon-hover.arco-tag-icon-hover:hover:before{background-color:rgba(var(--gray-6),.35)}body[arco-theme=dark] .arco-tag-checkable.arco-tag-checked.arco-tag-gray:hover{background-color:rgba(var(--gray-6),.35)}.arco-textarea-wrapper{display:inline-flex;box-sizing:border-box;color:var(--color-text-1);font-size:14px;background-color:var(--color-fill-2);border:1px solid transparent;border-radius:var(--border-radius-small);cursor:text;transition:color .1s cubic-bezier(0,0,1,1),border-color .1s cubic-bezier(0,0,1,1),background-color .1s cubic-bezier(0,0,1,1);position:relative;display:inline-block;width:100%;padding-right:0;padding-left:0;overflow:hidden}.arco-textarea-wrapper:hover{background-color:var(--color-fill-3);border-color:transparent}.arco-textarea-wrapper:focus-within,.arco-textarea-wrapper.arco-textarea-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--primary-6));box-shadow:0 0 0 0 var(--color-primary-light-2)}.arco-textarea-wrapper.arco-textarea-disabled{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent;cursor:not-allowed}.arco-textarea-wrapper.arco-textarea-disabled:hover{color:var(--color-text-4);background-color:var(--color-fill-2);border-color:transparent}.arco-textarea-wrapper.arco-textarea-disabled .arco-textarea-prefix,.arco-textarea-wrapper.arco-textarea-disabled .arco-textarea-suffix{color:inherit}.arco-textarea-wrapper.arco-textarea-error{background-color:var(--color-danger-light-1);border-color:transparent}.arco-textarea-wrapper.arco-textarea-error:hover{background-color:var(--color-danger-light-2);border-color:transparent}.arco-textarea-wrapper.arco-textarea-error:focus-within,.arco-textarea-wrapper.arco-textarea-error.arco-textarea-wrapper-focus{z-index:1;background-color:var(--color-bg-2);border-color:rgb(var(--danger-6));box-shadow:0 0 0 0 var(--color-danger-light-2)}.arco-textarea-wrapper .arco-textarea-prefix,.arco-textarea-wrapper .arco-textarea-suffix{display:inline-flex;flex-shrink:0;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-textarea-wrapper .arco-textarea-prefix>svg,.arco-textarea-wrapper .arco-textarea-suffix>svg{font-size:14px}.arco-textarea-wrapper .arco-textarea-prefix{padding-right:12px;color:var(--color-text-2)}.arco-textarea-wrapper .arco-textarea-suffix{padding-left:12px;color:var(--color-text-2)}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon{display:inline-flex}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon-status-validating{color:rgb(var(--primary-6))}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon-status-success{color:rgb(var(--success-6))}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon-status-warning{color:rgb(var(--warning-6))}.arco-textarea-wrapper .arco-textarea-suffix .arco-feedback-icon-status-error{color:rgb(var(--danger-6))}.arco-textarea-wrapper .arco-textarea-clear-btn{align-self:center;color:var(--color-text-2);font-size:12px;visibility:hidden;cursor:pointer}.arco-textarea-wrapper .arco-textarea-clear-btn>svg{position:relative;transition:color .1s cubic-bezier(0,0,1,1)}.arco-textarea-wrapper:hover .arco-textarea-clear-btn{visibility:visible}.arco-textarea-wrapper:not(.arco-textarea-focus) .arco-textarea-icon-hover:hover:before{background-color:var(--color-fill-4)}.arco-textarea-wrapper .arco-textarea-word-limit{position:absolute;right:10px;bottom:6px;color:var(--color-text-3);font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-textarea-wrapper.arco-textarea-scroll .arco-textarea-word-limit{right:25px}.arco-textarea-wrapper .arco-textarea-clear-btn{position:absolute;top:50%;right:10px;transform:translateY(-50%)}.arco-textarea-wrapper.arco-textarea-scroll .arco-textarea-clear-btn{right:25px}.arco-textarea-wrapper:hover .arco-textarea-clear-btn{display:block}.arco-textarea-wrapper .arco-textarea-mirror{position:absolute;visibility:hidden}.arco-textarea{width:100%;color:inherit;background:none;border:none;border-radius:0;outline:none;cursor:inherit;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:block;box-sizing:border-box;height:100%;min-height:32px;padding:4px 12px;font-size:14px;line-height:1.5715;vertical-align:top;resize:vertical}.arco-textarea::-moz-placeholder{color:var(--color-text-3)}.arco-textarea::placeholder{color:var(--color-text-3)}.arco-textarea[disabled]::-moz-placeholder{color:var(--color-text-4)}.arco-textarea[disabled]::placeholder{color:var(--color-text-4)}.arco-textarea[disabled]{-webkit-text-fill-color:var(--color-text-4)}.arco-timepicker{position:relative;display:flex;box-sizing:border-box;padding:0}.arco-timepicker-container{overflow:hidden;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px #0000001a}.arco-timepicker-column{box-sizing:border-box;width:64px;height:224px;overflow:hidden}.arco-timepicker-column:not(:last-child){border-right:1px solid var(--color-neutral-3)}.arco-timepicker-column:hover{overflow-y:auto}.arco-timepicker-column ul{box-sizing:border-box;margin:0;padding:0;list-style:none}.arco-timepicker-column ul:after{display:block;width:100%;height:192px;content:""}.arco-timepicker-cell{padding:4px 0;color:var(--color-text-1);font-weight:500;cursor:pointer}.arco-timepicker-cell-inner{height:24px;padding-left:24px;font-size:14px;line-height:24px}.arco-timepicker-cell:not(.arco-timepicker-cell-selected):not(.arco-timepicker-cell-disabled):hover .arco-timepicker-cell-inner{background-color:var(--color-fill-2)}.arco-timepicker-cell-selected .arco-timepicker-cell-inner{font-weight:500;background-color:var(--color-fill-2)}.arco-timepicker-cell-disabled{color:var(--color-text-4);cursor:not-allowed}.arco-timepicker-footer-extra-wrapper{padding:8px;color:var(--color-text-1);font-size:12px;border-top:1px solid var(--color-neutral-3)}.arco-timepicker-footer-btn-wrapper{display:flex;justify-content:space-between;padding:8px;border-top:1px solid var(--color-neutral-3)}.arco-timepicker-footer-btn-wrapper :only-child{margin-left:auto}.arco-timeline{display:flex;flex-direction:column}.arco-timeline-item{position:relative;min-height:78px;padding-left:6px;color:var(--color-text-1);font-size:14px}.arco-timeline-item-label{color:var(--color-text-3);font-size:12px;line-height:1.667}.arco-timeline-item-content{margin-bottom:4px;color:var(--color-text-1);font-size:14px;line-height:1.5715}.arco-timeline-item-content-wrapper{position:relative;margin-left:16px}.arco-timeline-item.arco-timeline-item-last>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot-line{display:none}.arco-timeline-item-dot-wrapper{position:absolute;left:0;height:100%;text-align:center}.arco-timeline-item-dot-wrapper .arco-timeline-item-dot-content{position:relative;width:6px;height:22.001px;line-height:22.001px}.arco-timeline-item-dot{position:relative;top:50%;box-sizing:border-box;width:6px;height:6px;margin-top:-50%;color:rgb(var(--primary-6));border-radius:var(--border-radius-circle)}.arco-timeline-item-dot-solid{background-color:rgb(var(--primary-6))}.arco-timeline-item-dot-hollow{background-color:var(--color-bg-2);border:2px solid rgb(var(--primary-6))}.arco-timeline-item-dot-custom{position:absolute;top:50%;left:50%;display:inline-flex;box-sizing:border-box;color:rgb(var(--primary-6));background-color:var(--color-bg-2);transform:translate(-50%) translateY(-50%);transform-origin:center}.arco-timeline-item-dot-custom svg{color:inherit}.arco-timeline-item-dot-line{position:absolute;top:18.0005px;bottom:-4.0005px;left:50%;box-sizing:border-box;width:1px;border-color:var(--color-neutral-3);border-left-width:1px;transform:translate(-50%)}.arco-timeline-is-reverse{flex-direction:column-reverse}.arco-timeline-alternate{overflow:hidden}.arco-timeline-alternate .arco-timeline-item-vertical-left{padding-left:0}.arco-timeline-alternate .arco-timeline-item-vertical-left>.arco-timeline-item-dot-wrapper{left:50%}.arco-timeline-alternate .arco-timeline-item-vertical-left>.arco-timeline-item-content-wrapper{left:50%;width:50%;margin-left:22px;padding-right:22px}.arco-timeline-alternate .arco-timeline-item-vertical-right{padding-right:0}.arco-timeline-alternate .arco-timeline-item-vertical-right>.arco-timeline-item-dot-wrapper{left:50%}.arco-timeline-alternate .arco-timeline-item-vertical-right>.arco-timeline-item-content-wrapper{left:0;width:50%;margin-right:0;margin-left:-16px;padding-right:16px;text-align:right}.arco-timeline-right .arco-timeline-item-vertical-right{padding-right:6px}.arco-timeline-right .arco-timeline-item-vertical-right>.arco-timeline-item-dot-wrapper{right:0;left:unset}.arco-timeline-right .arco-timeline-item-vertical-right>.arco-timeline-item-content-wrapper{margin-right:16px;margin-left:0;text-align:right}.arco-timeline-item-label-relative>.arco-timeline-item-label{position:absolute;top:0;box-sizing:border-box;max-width:100px}.arco-timeline-item-vertical-left.arco-timeline-item-label-relative{margin-left:100px}.arco-timeline-item-vertical-left.arco-timeline-item-label-relative>.arco-timeline-item-label{left:0;padding-right:16px;text-align:right;transform:translate(-100%)}.arco-timeline-item-vertical-right.arco-timeline-item-label-relative{margin-right:100px}.arco-timeline-item-vertical-right.arco-timeline-item-label-relative>.arco-timeline-item-label{right:0;padding-left:16px;text-align:left;transform:translate(100%)}.arco-timeline-item-horizontal-top.arco-timeline-item-label-relative{margin-top:50px}.arco-timeline-item-horizontal-top.arco-timeline-item-label-relative>.arco-timeline-item-label{padding-bottom:16px;transform:translateY(-100%)}.arco-timeline-item-horizontal-top.arco-timeline-item-label-relative>.arco-timeline-item-content{margin-bottom:0}.arco-timeline-item-horizontal-bottom.arco-timeline-item-label-relative{margin-bottom:50px}.arco-timeline-item-horizontal-bottom.arco-timeline-item-label-relative>.arco-timeline-item-content{margin-bottom:0}.arco-timeline-item-horizontal-bottom.arco-timeline-item-label-relative>.arco-timeline-item-label{top:unset;bottom:0;padding-top:16px;text-align:left;transform:translateY(100%)}.arco-timeline-alternate .arco-timeline-item-vertical-left.arco-timeline-item-label-relative{margin-left:0}.arco-timeline-alternate .arco-timeline-item-vertical-left.arco-timeline-item-label-relative>.arco-timeline-item-label{left:0;width:50%;max-width:unset;transform:none}.arco-timeline-alternate .arco-timeline-item-vertical-right.arco-timeline-item-label-relative{margin-right:0}.arco-timeline-alternate .arco-timeline-item-vertical-right.arco-timeline-item-label-relative>.arco-timeline-item-label{right:0;width:50%;max-width:unset;transform:none}.arco-timeline-alternate .arco-timeline-item-horizontal-top.arco-timeline-item-label-relative{margin-top:0}.arco-timeline-alternate .arco-timeline-item-horizontal-bottom.arco-timeline-item-label-relative{margin-bottom:0}.arco-timeline-direction-horizontal{display:flex;flex-direction:row}.arco-timeline-direction-horizontal.arco-timeline-is-reverse{flex-direction:row-reverse}.arco-timeline-item-dot-line-is-horizontal{top:50%;right:4px;left:12px;width:unset;height:1px;border-top-width:1px;border-left:none;transform:translateY(-50%)}.arco-timeline-item-horizontal-bottom,.arco-timeline-item-horizontal-top{flex:1;min-height:unset;padding-right:0;padding-left:0}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-dot-wrapper,.arco-timeline-item-horizontal-top>.arco-timeline-item-dot-wrapper{top:0;width:100%;height:auto}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot,.arco-timeline-item-horizontal-top>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot{top:unset;margin-top:unset}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot-content,.arco-timeline-item-horizontal-top>.arco-timeline-item-dot-wrapper .arco-timeline-item-dot-content{height:6px;line-height:6px}.arco-timeline-item-horizontal-top{padding-top:6px}.arco-timeline-item-horizontal-top>.arco-timeline-item-dot-wrapper{top:0;bottom:unset}.arco-timeline-item-horizontal-top>.arco-timeline-item-content-wrapper{margin-top:16px;margin-left:0}.arco-timeline-item-horizontal-bottom{padding-bottom:6px}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-dot-wrapper{top:unset;bottom:0}.arco-timeline-item-horizontal-bottom>.arco-timeline-item-content-wrapper{margin-bottom:16px;margin-left:0}.arco-timeline-alternate.arco-timeline-direction-horizontal{align-items:center;min-height:200px;overflow:visible}.arco-timeline-alternate.arco-timeline-direction-horizontal .arco-timeline-item-horizontal-bottom{margin-top:6px;transform:translateY(-50%)}.arco-timeline-alternate.arco-timeline-direction-horizontal .arco-timeline-item-horizontal-top{margin-top:-6px;transform:translateY(50%)}.arco-tooltip-content{max-width:350px;padding:8px 12px;color:#fff;font-size:14px;line-height:1.5715;text-align:left;word-wrap:break-word;background-color:var(--color-tooltip-bg);border-radius:var(--border-radius-small)}.arco-tooltip-mini{padding:4px 12px;font-size:14px}.arco-tooltip-popup-arrow{background-color:var(--color-tooltip-bg)}.arco-transfer{display:flex;align-items:center}.arco-transfer-view{display:flex;flex-direction:column;box-sizing:border-box;width:200px;height:224px;border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-small)}.arco-transfer-view-search{padding:8px 12px 4px}.arco-transfer-view-list{flex:1}.arco-transfer-view-custom-list{flex:1;overflow:auto}.arco-transfer-view-header{display:flex;align-items:center;padding:0 10px}.arco-transfer-view-header>*:first-child{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-transfer-view-header>*:first-child:not(:last-child){margin-right:8px}.arco-transfer-view-header{height:40px;color:var(--color-text-1);font-weight:500;font-size:14px;line-height:40px;background-color:var(--color-fill-1)}.arco-transfer-view-header-title{display:flex;align-items:center}.arco-transfer-view-header-title .arco-checkbox{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:inherit}.arco-transfer-view-header-title .arco-checkbox-text{color:inherit}.arco-transfer-view-header-title .arco-checkbox-label,.arco-transfer-view-header-title-simple{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-transfer-view-header-clear-btn{color:var(--color-text-2);font-size:12px;cursor:pointer}.arco-transfer-view-header-clear-btn:hover:before{background-color:var(--color-fill-3)}.arco-transfer-view-header-count{margin-right:2px;color:var(--color-text-3);font-weight:400;font-size:12px}.arco-transfer-view-body{flex:1 1 auto;overflow:hidden}.arco-transfer-view-body .arco-transfer-view-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.arco-transfer-view .arco-scrollbar{height:100%}.arco-transfer-view .arco-scrollbar-container{height:100%;overflow:auto}.arco-transfer-view .arco-list{border-radius:0}.arco-transfer-view .arco-list-footer{position:relative;display:flex;align-items:center;box-sizing:border-box;height:40px;padding:0 8px}.arco-transfer-view .arco-list .arco-pagination{position:absolute;top:50%;right:8px;margin:0;transform:translateY(-50%)}.arco-transfer-view .arco-list .arco-pagination-jumper-input{width:24px}.arco-transfer-view .arco-list .arco-pagination-jumper-separator{padding:0 8px}.arco-transfer-view .arco-checkbox{padding-left:6px}.arco-transfer-view .arco-checkbox-wrapper{display:inline}.arco-transfer-view .arco-checkbox .arco-icon-hover:hover:before{background-color:var(--color-fill-3)}.arco-transfer-list-item{position:relative;display:flex;align-items:center;height:36px;padding:0 10px;color:var(--color-text-1);line-height:36px;list-style:none;background-color:transparent;cursor:default}.arco-transfer-list-item-content{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-transfer-list-item-checkbox .arco-checkbox-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.arco-transfer-list-item-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.arco-transfer-list-item:not(.arco-transfer-list-item-disabled):hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-transfer-list-item .arco-checkbox{width:100%}.arco-transfer-list-item .arco-checkbox-text{color:inherit}.arco-transfer-list-item-remove-btn{margin-left:auto;color:var(--color-text-2);font-size:12px;cursor:pointer}.arco-transfer-list-item-remove-btn:hover:before{background-color:var(--color-fill-3)}.arco-transfer-list-item-draggable:before{position:absolute;right:0;left:0;display:block;height:2px;border-radius:1px;content:""}.arco-transfer-list-item-gap-bottom:before{bottom:-2px;background-color:rgb(var(--primary-6))}.arco-transfer-list-item-gap-top:before{top:-2px;background-color:rgb(var(--primary-6))}.arco-transfer-list-item-dragging{color:var(--color-text-4)!important;background-color:var(--color-fill-1)!important}.arco-transfer-list-item-dragged{animation:arco-transfer-drag-item-blink .4s;animation-timing-function:cubic-bezier(0,0,1,1)}.arco-transfer-operations{padding:0 20px}.arco-transfer-operations .arco-btn{display:block}.arco-transfer-operations .arco-btn:last-child{margin-top:12px}.arco-transfer-operations-words .arco-btn{width:100%;padding:0 12px;text-align:left}.arco-transfer-simple .arco-transfer-view-source{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.arco-transfer-simple .arco-transfer-view-target{border-top-left-radius:0;border-bottom-left-radius:0}.arco-transfer-disabled .arco-transfer-view-header{color:var(--color-text-4)}@keyframes arco-transfer-drag-item-blink{0%{background-color:var(--color-primary-light-1)}to{background-color:transparent}}.arco-tree-select-popup{box-sizing:border-box;padding:4px 0;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:var(--border-radius-medium);box-shadow:0 4px 10px #0000001a}.arco-tree-select-popup .arco-tree-select-tree-wrapper{height:100%;max-height:200px;padding-right:4px;padding-left:10px;overflow:auto}.arco-tree-select-popup .arco-tree-node{padding-left:0}.arco-tree-select-highlight{font-weight:500}.arco-tree-select-has-header{padding-top:0}.arco-tree-select-header{border-bottom:1px solid var(--color-fill-3)}.arco-tree-select-has-footer{padding-bottom:0}.arco-tree-select-footer{border-top:1px solid var(--color-fill-3)}.arco-icon-hover.arco-tree-node-icon-hover:before{width:16px;height:16px}.arco-tree-node-switcher{position:relative;display:flex;flex-shrink:0;align-items:center;width:12px;height:32px;margin-right:10px;color:var(--color-text-2);font-size:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tree-node-switcher-icon{position:relative;margin:0 auto}.arco-tree-node-switcher-icon svg{position:relative;transform:rotate(-90deg);transition:transform .2s cubic-bezier(.34,.69,.1,1)}.arco-tree-node-expanded .arco-tree-node-switcher-icon svg,.arco-tree-node-is-leaf .arco-tree-node-switcher-icon svg{transform:rotate(0)}.arco-tree-node-drag-icon{margin-left:120px;color:rgb(var(--primary-6));opacity:0}.arco-tree-node-custom-icon{margin-right:10px;font-size:inherit;line-height:1;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.arco-tree-node .arco-icon-loading{color:rgb(var(--primary-6))}.arco-tree-node-minus-icon,.arco-tree-node-plus-icon{position:relative;display:block;width:14px;height:14px;background:var(--color-fill-2);border-radius:var(--border-radius-small);cursor:pointer}.arco-tree-node-minus-icon:after,.arco-tree-node-plus-icon:after{position:absolute;top:50%;left:50%;display:block;width:6px;height:2px;margin-top:-1px;margin-left:-3px;color:var(--color-text-2);background-color:var(--color-text-2);border-radius:.5px;content:""}.arco-tree-node-plus-icon:before{position:absolute;top:50%;left:50%;display:block;width:2px;height:6px;margin-top:-3px;margin-left:-1px;color:var(--color-text-2);background-color:var(--color-text-2);border-radius:.5px;content:""}.arco-tree{color:var(--color-text-1)}.arco-tree .arco-checkbox{margin-right:10px;padding-left:0;line-height:32px}.arco-tree-node{position:relative;display:flex;flex-wrap:nowrap;align-items:center;padding-left:2px;color:var(--color-text-1);line-height:1.5715;cursor:pointer}.arco-tree-node-selected .arco-tree-node-title,.arco-tree-node-selected .arco-tree-node-title:hover{color:rgb(var(--primary-6));transition:color .2s cubic-bezier(0,0,1,1)}.arco-tree-node-disabled-selectable .arco-tree-node-title,.arco-tree-node-disabled .arco-tree-node-title,.arco-tree-node-disabled-selectable .arco-tree-node-title:hover,.arco-tree-node-disabled .arco-tree-node-title:hover{color:var(--color-text-4);background:none;cursor:not-allowed}.arco-tree-node-disabled.arco-tree-node-selected .arco-tree-node-title{color:var(--color-primary-light-3)}.arco-tree-node-title-block{flex:1;box-sizing:content-box}.arco-tree-node-title-block .arco-tree-node-drag-icon{position:absolute;right:12px}.arco-tree-node-indent{position:relative;flex-shrink:0;align-self:stretch}.arco-tree-node-indent-block{position:relative;display:inline-block;width:12px;height:100%;margin-right:10px;vertical-align:top}.arco-tree-node-draggable{margin-top:2px}.arco-tree-node-title{position:relative;display:flex;align-items:center;margin-left:-4px;padding:5px 4px;font-size:14px;border-radius:var(--border-radius-small)}.arco-tree-node-title:hover{color:var(--color-text-1);background-color:var(--color-fill-2)}.arco-tree-node-title:hover .arco-tree-node-drag-icon{opacity:1}.arco-tree-node-title-draggable:before{position:absolute;top:-2px;right:0;left:0;display:block;height:2px;border-radius:1px;content:""}.arco-tree-node-title-gap-bottom:before{top:unset;bottom:-2px;background-color:rgb(var(--primary-6))}.arco-tree-node-title-gap-top:before{background-color:rgb(var(--primary-6))}.arco-tree-node-title-highlight{color:var(--color-text-1);background-color:var(--color-primary-light-1)}.arco-tree-node-title-dragging,.arco-tree-node-title-dragging:hover{color:var(--color-text-4);background-color:var(--color-fill-1)}.arco-tree-show-line{padding-left:1px}.arco-tree-show-line .arco-tree-node-switcher{width:14px;text-align:center}.arco-tree-show-line .arco-tree-node-switcher .arco-tree-node-icon-hover{width:100%}.arco-tree-show-line .arco-tree-node-indent-block{width:14px}.arco-tree-show-line .arco-tree-node-indent-block:before{position:absolute;left:50%;box-sizing:border-box;width:1px;border-left:1px solid var(--color-neutral-3);transform:translate(-50%);content:"";top:-5px;bottom:-5px}.arco-tree-show-line .arco-tree-node-is-leaf:not(.arco-tree-node-is-tail) .arco-tree-node-indent:after{position:absolute;right:-7px;box-sizing:border-box;width:1px;border-left:1px solid var(--color-neutral-3);transform:translate(50%);content:"";top:27px;bottom:-5px}.arco-tree-show-line .arco-tree-node-indent-block-lineless:before{display:none}.arco-tree-size-mini .arco-tree-node-switcher{height:24px}.arco-tree-size-mini .arco-checkbox{line-height:24px}.arco-tree-size-mini .arco-tree-node-title{padding-top:2px;padding-bottom:2px;font-size:12px;line-height:1.667}.arco-tree-size-mini .arco-tree-node-indent-block:after{top:23px;bottom:-1px}.arco-tree-size-mini .arco-tree-node-is-leaf:not(.arco-tree-node-is-tail) .arco-tree-node-indent:before{top:-1px;bottom:-1px}.arco-tree-size-small .arco-tree-node-switcher{height:28px}.arco-tree-size-small .arco-checkbox{line-height:28px}.arco-tree-size-small .arco-tree-node-title{padding-top:3px;padding-bottom:3px;font-size:14px}.arco-tree-size-small .arco-tree-node-indent-block:after{top:25px;bottom:-3px}.arco-tree-size-small .arco-tree-node-is-leaf:not(.arco-tree-node-is-tail) .arco-tree-node-indent:before{top:-3px;bottom:-3px}.arco-tree-size-large .arco-tree-node-switcher{height:36px}.arco-tree-size-large .arco-checkbox{line-height:36px}.arco-tree-size-large .arco-tree-node-title{padding-top:7px;padding-bottom:7px;font-size:14px}.arco-tree-size-large .arco-tree-node-indent-block:after{top:29px;bottom:-7px}.arco-tree-size-large .arco-tree-node-is-leaf:not(.arco-tree-node-is-tail) .arco-tree-node-indent:before{top:-7px;bottom:-7px}.arco-tree-node-list{overflow:hidden;transition:height .2s cubic-bezier(.34,.69,.1,1)}.arco-typography{color:var(--color-text-1);line-height:1.5715;white-space:normal;overflow-wrap:anywhere}h1.arco-typography,h2.arco-typography,h3.arco-typography,h4.arco-typography,h5.arco-typography,h6.arco-typography{margin-top:1em;margin-bottom:.5em;font-weight:500}h1.arco-typography{font-size:36px;line-height:1.23}h2.arco-typography{font-size:32px;line-height:1.25}h3.arco-typography{font-size:28px;line-height:1.29}h4.arco-typography{font-size:24px;line-height:1.33}h5.arco-typography{font-size:20px;line-height:1.4}h6.arco-typography{font-size:16px;line-height:1.5}div.arco-typography,p.arco-typography{margin-top:0;margin-bottom:1em}.arco-typography-primary{color:rgb(var(--primary-6))}.arco-typography-secondary{color:var(--color-text-2)}.arco-typography-success{color:rgb(var(--success-6))}.arco-typography-warning{color:rgb(var(--warning-6))}.arco-typography-danger{color:rgb(var(--danger-6))}.arco-typography-disabled{color:var(--color-text-4);cursor:not-allowed}.arco-typography mark{background-color:rgb(var(--yellow-4))}.arco-typography u{text-decoration:underline}.arco-typography del{text-decoration:line-through}.arco-typography b{font-weight:500}.arco-typography code{margin:0 2px;padding:2px 8px;color:var(--color-text-2);font-size:85%;background-color:var(--color-neutral-2);border:1px solid var(--color-neutral-3);border-radius:2px}.arco-typography blockquote{margin:0 0 1em;padding-left:8px;background-color:var(--color-bg-2);border-left:2px solid var(--color-neutral-6)}.arco-typography ol,.arco-typography ul{margin:0;padding:0}.arco-typography ul li,.arco-typography ol li{margin-left:20px}.arco-typography ul{list-style:circle}.arco-typography-spacing-close{line-height:1.3}.arco-typography-operation-copy,.arco-typography-operation-copied{margin-left:2px;padding:2px}.arco-typography-operation-copy{color:var(--color-text-2);background-color:transparent;border-radius:2px;cursor:pointer;transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-typography-operation-copy:hover{color:var(--color-text-2);background-color:var(--color-fill-2)}.arco-typography-operation-copied{color:rgb(var(--success-6))}.arco-typography-operation-edit{margin-left:2px;padding:2px;color:var(--color-text-2);background-color:transparent;border-radius:2px;cursor:pointer;transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-typography-operation-edit:hover{color:var(--color-text-2);background-color:var(--color-fill-2)}.arco-typography-operation-expand{margin:0 4px;color:rgb(var(--primary-6));cursor:pointer}.arco-typography-operation-expand:hover{color:rgb(var(--primary-5))}.arco-typography-edit-content{position:relative;left:-13px;margin-top:-5px;margin-right:-13px;margin-bottom:calc(1em - 5px)}.arco-typography-css-operation{margin-top:-1em;margin-bottom:1em;text-align:right}.arco-upload{display:inline-block;max-width:100%;cursor:pointer}.arco-upload.arco-upload-draggable{width:100%}.arco-upload-tip{margin-top:4px;overflow:hidden;color:var(--color-text-3);font-size:12px;line-height:1.5;white-space:nowrap;text-overflow:ellipsis}.arco-upload-picture-card{display:flex;flex-direction:column;justify-content:center;min-width:80px;height:80px;margin-bottom:0;color:var(--color-text-2);text-align:center;background:var(--color-fill-2);border:1px dashed var(--color-neutral-3);border-radius:var(--border-radius-small);transition:all .1s cubic-bezier(0,0,1,1)}.arco-upload-picture-card:hover{color:var(--color-text-2);background-color:var(--color-fill-3);border-color:var(--color-neutral-4)}.arco-upload-drag{width:100%;padding:50px 0;color:var(--color-text-1);text-align:center;background-color:var(--color-fill-1);border:1px dashed var(--color-neutral-3);border-radius:var(--border-radius-small);transition:all .2s ease}.arco-upload-drag .arco-icon-plus{margin-bottom:24px;color:var(--color-text-2);font-size:14px}.arco-upload-drag:hover{background-color:var(--color-fill-3);border-color:var(--color-neutral-4)}.arco-upload-drag:hover .arco-upload-drag-text{color:var(--color-text-1)}.arco-upload-drag:hover .arco-icon-plus{color:var(--color-text-2)}.arco-upload-drag-active{color:var(--color-text-1);background-color:var(--color-primary-light-1);border-color:rgb(var(--primary-6))}.arco-upload-drag-active .arco-upload-drag-text{color:var(--color-text-1)}.arco-upload-drag-active .arco-icon-plus{color:rgb(var(--primary-6))}.arco-upload-drag .arco-upload-tip{margin-top:0}.arco-upload-drag-text{color:var(--color-text-1);font-size:14px;line-height:1.5}.arco-upload-wrapper{width:100%}.arco-upload-wrapper.arco-upload-wrapper-type-picture-card{display:flex;justify-content:flex-start}.arco-upload-drag{width:100%}.arco-upload-hide{display:none}.arco-upload-disabled .arco-upload-picture-card,.arco-upload-disabled .arco-upload-picture-card:hover{color:var(--color-text-4);background-color:var(--color-fill-1);border-color:var(--color-neutral-4);cursor:not-allowed}.arco-upload-disabled .arco-upload-drag,.arco-upload-disabled .arco-upload-drag:hover{background-color:var(--color-fill-1);border-color:var(--color-text-4);cursor:not-allowed}.arco-upload-disabled .arco-upload-drag .arco-icon-plus,.arco-upload-disabled .arco-upload-drag:hover .arco-icon-plus,.arco-upload-disabled .arco-upload-drag .arco-upload-drag-text,.arco-upload-disabled .arco-upload-drag:hover .arco-upload-drag-text,.arco-upload-disabled .arco-upload-tip{color:var(--color-text-4)}.arco-upload-icon{cursor:pointer}.arco-upload-icon-error{margin-left:4px;color:rgb(var(--danger-6))}.arco-upload-icon-success{color:rgb(var(--success-6));font-size:14px;line-height:14px}.arco-upload-icon-remove{position:relative;font-size:14px}.arco-upload-icon-start,.arco-upload-icon-cancel{position:absolute;top:50%;left:50%;color:var(--color-white);font-size:12px;transform:translate(-50%) translateY(-50%)}.arco-upload-icon-upload{color:rgb(var(--primary-6));font-size:14px;cursor:pointer;transition:all .2s ease}.arco-upload-icon-upload:active,.arco-upload-icon-upload:hover{color:rgb(var(--primary-7))}.arco-upload-list{margin:0;padding:0;list-style:none}.arco-upload-list.arco-upload-list-type-text,.arco-upload-list.arco-upload-list-type-picture{width:100%}.arco-upload-list.arco-upload-list-type-text .arco-upload-list-item:first-of-type,.arco-upload-list.arco-upload-list-type-picture .arco-upload-list-item:first-of-type{margin-top:24px}.arco-upload-list-item-done .arco-upload-list-item-file-icon{color:rgb(var(--primary-6))}.arco-upload-list-item{position:relative;display:flex;align-items:center;box-sizing:border-box;margin-top:12px}.arco-upload-list-item-content{display:flex;flex:1;flex-wrap:nowrap;align-items:center;box-sizing:border-box;width:100%;padding:8px 10px 8px 12px;overflow:hidden;font-size:14px;background-color:var(--color-fill-1);border-radius:var(--border-radius-small);transition:background-color .1s cubic-bezier(0,0,1,1)}.arco-upload-list-item-file-icon{margin-right:12px;color:rgb(var(--primary-6));font-size:16px;line-height:16px}.arco-upload-list-item-thumbnail{flex-shrink:0;width:40px;height:40px;margin-right:12px}.arco-upload-list-item-thumbnail img{width:100%;height:100%}.arco-upload-list-item-name{display:flex;flex:1;align-items:center;margin-right:10px;overflow:hidden;color:var(--color-text-1);font-size:14px;line-height:1.4286;white-space:nowrap;text-overflow:ellipsis}.arco-upload-list-item-name-link{overflow:hidden;color:rgb(var(--link-6));text-decoration:none;text-overflow:ellipsis;cursor:pointer}.arco-upload-list-item-name-text{overflow:hidden;text-overflow:ellipsis;cursor:pointer}.arco-upload-list-item .arco-upload-progress{position:relative;margin-left:auto;line-height:12px}.arco-upload-list-item .arco-upload-progress:hover .arco-progress-circle-bg{stroke:rgba(var(--gray-10),.2)}.arco-upload-list-item .arco-upload-progress:hover .arco-progress-circle-bar{stroke:rgb(var(--primary-7))}.arco-upload-list-item-operation{margin-left:12px;color:var(--color-text-2);font-size:12px}.arco-upload-list-item-operation .arco-upload-icon-remove{font-size:inherit}.arco-upload-list-item-error .arco-upload-list-status,.arco-upload-list-item-done .arco-upload-list-status{display:none}.arco-upload-list-type-text .arco-upload-list-item-error .arco-upload-list-item-name-link,.arco-upload-list-type-text .arco-upload-list-item-error .arco-upload-list-item-name{color:rgb(var(--danger-6))}.arco-upload-list.arco-upload-list-type-picture-card{display:flex;flex-wrap:wrap;vertical-align:top}.arco-upload-list.arco-upload-list-type-picture-card .arco-upload-list-status{top:50%;margin-left:0;transform:translateY(-50%)}.arco-upload-list-picture{display:inline-block;margin-top:0;margin-right:8px;margin-bottom:8px;padding-right:0;overflow:hidden;vertical-align:top;transition:all .2s cubic-bezier(.34,.69,.1,1)}.arco-upload-list-picture-status-error .arco-upload-list-picture-mask{opacity:1}.arco-upload-list-picture{position:relative;box-sizing:border-box;width:80px;height:80px;overflow:hidden;line-height:80px;text-align:center;vertical-align:top;border-radius:var(--border-radius-small)}.arco-upload-list-picture img{width:100%;height:100%}.arco-upload-list-picture-mask{position:absolute;inset:0;color:var(--color-white);font-size:16px;line-height:80px;text-align:center;background:#00000080;cursor:pointer;opacity:0;transition:opacity .1s cubic-bezier(0,0,1,1)}.arco-upload-list-picture-operation{display:none;font-size:14px}.arco-upload-list-picture-operation .arco-upload-icon-retry{color:var(--color-white)}.arco-upload-list-picture-error-tip .arco-upload-icon-error{color:var(--color-white);font-size:26px}.arco-upload-list-picture-mask:hover{opacity:1}.arco-upload-list-picture-mask:hover .arco-upload-list-picture-operation{display:flex;justify-content:space-evenly}.arco-upload-list-picture-mask:hover .arco-upload-list-picture-error-tip{display:none}.arco-upload-list-type-picture .arco-upload-list-item-content{padding-top:8px;padding-bottom:8px}.arco-upload-list-type-picture .arco-upload-list-item-error .arco-upload-list-item-content{background-color:var(--color-danger-light-1)}.arco-upload-list-type-picture .arco-upload-list-item-error .arco-upload-list-item-name-link,.arco-upload-list-type-picture .arco-upload-list-item-error .arco-upload-list-item-name{color:rgb(var(--danger-6))}.arco-upload-hide+.arco-upload-list .arco-upload-list-item:first-of-type{margin-top:0}.arco-upload-slide-up-enter{opacity:0}.arco-upload-slide-up-enter-active{opacity:1;transition:opacity .2s cubic-bezier(.34,.69,.1,1)}.arco-upload-slide-up-exit{opacity:1}.arco-upload-slide-up-exit-active{margin:0;overflow:hidden;opacity:0;transition:opacity .1s cubic-bezier(0,0,1,1),height .3s cubic-bezier(.34,.69,.1,1) .1s,margin .3s cubic-bezier(.34,.69,.1,1) .1s}.arco-upload-list-item.arco-upload-slide-inline-enter{opacity:0}.arco-upload-list-item.arco-upload-slide-inline-enter-active{opacity:1;transition:opacity .2s cubic-bezier(0,0,1,1)}.arco-upload-list-item.arco-upload-slide-inline-exit{opacity:1}.arco-upload-list-item.arco-upload-slide-inline-exit-active{margin:0;overflow:hidden;opacity:0;transition:opacity .1s cubic-bezier(0,0,1,1),width .3s cubic-bezier(.34,.69,.1,1) .1s,margin .3s cubic-bezier(.34,.69,.1,1) .1s}.arco-verification-code{display:flex;align-items:center;justify-content:space-between;width:100%;-moz-column-gap:4px;column-gap:4px}.arco-verification-code .arco-input{width:32px;padding-right:0;padding-left:0;text-align:center}.arco-verification-code .arco-input-size-small{width:28px}.arco-verification-code .arco-input-size-mini{width:24px}.arco-verification-code .arco-input-size-large{width:36px}@font-face{font-family:iconfont;src:url(/apps/drplayer/assets/iconfont-BwMJWaRv.woff2?t=1760257974279) format("woff2"),url(/apps/drplayer/assets/iconfont-D8yemM1O.woff?t=1760257974279) format("woff"),url(/apps/drplayer/assets/iconfont-DKtXKolo.ttf?t=1760257974279) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-xiazai:before{content:"ﲹ"}.icon-kuake:before{content:""}.icon-folder:before{content:""}.icon-file:before{content:""}.icon-file_zip:before{content:""}.icon-file_excel:before{content:""}.icon-file_ppt:before{content:""}.icon-file_word:before{content:""}.icon-file_pdf:before{content:""}.icon-file_music:before{content:""}.icon-file_video:before{content:""}.icon-file_img:before{content:""}.icon-file_ai:before{content:""}.icon-file_psd:before{content:""}.icon-file_bt:before{content:""}.icon-file_txt:before{content:""}.icon-file_exe:before{content:""}.icon-file_html:before{content:""}.icon-file_cad:before{content:""}.icon-file_code:before{content:""}.icon-file_flash:before{content:""}.icon-file_iso:before{content:""}.icon-file_cloud:before{content:""}.icon-wenjianjia:before{content:""}.icon-zhuye:before{content:""}.icon-shezhi:before{content:""}.icon-shipinzhibo:before{content:""}.icon-lishi:before{content:""}.icon-jiexi:before{content:""}.icon-shoucang:before{content:""}.icon-ceshi:before{content:""}.icon-dianbo:before{content:""}.icon-zhuye1:before{content:""}.icon-shugui:before{content:""}/*! - * Viewer.js v1.11.7 - * https://fengyuanchen.github.io/viewerjs - * - * Copyright 2015-present Chen Fengyuan - * Released under the MIT license - * - * Date: 2024-11-24T04:32:14.526Z - */.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}} diff --git a/apps/drplayer/assets/index-CMzm-vph.js b/apps/drplayer/assets/index-wgOTNjuN.js similarity index 52% rename from apps/drplayer/assets/index-CMzm-vph.js rename to apps/drplayer/assets/index-wgOTNjuN.js index ade7d635..aacff5fb 100644 --- a/apps/drplayer/assets/index-CMzm-vph.js +++ b/apps/drplayer/assets/index-wgOTNjuN.js @@ -1,35 +1,35 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LocalBookReader-2xEexs_A.js","assets/LocalBookReader-DSZtIbrh.css","assets/NovelDownloader-yhDpHSwV.js","assets/NovelDownloader-CYlVu50L.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LocalBookReader-DP3lRsvE.js","assets/LocalBookReader-DSZtIbrh.css","assets/NovelDownloader-Csd3L03H.js","assets/NovelDownloader-CYlVu50L.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();/** * @vue/shared v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Ta(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ti={},am=[],Ca=()=>{},Jv=()=>!1,O0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u5=e=>e.startsWith("onUpdate:"),Ci=Object.assign,c5=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sTe=Object.prototype.hasOwnProperty,Ki=(e,t)=>sTe.call(e,t),Gn=Array.isArray,lm=e=>Ym(e)==="[object Map]",B0=e=>Ym(e)==="[object Set]",Aj=e=>Ym(e)==="[object Date]",Vde=e=>Ym(e)==="[object RegExp]",Ar=e=>typeof e=="function",Mr=e=>typeof e=="string",Jl=e=>typeof e=="symbol",Xi=e=>e!==null&&typeof e=="object",d5=e=>(Xi(e)||Ar(e))&&Ar(e.then)&&Ar(e.catch),TU=Object.prototype.toString,Ym=e=>TU.call(e),zde=e=>Ym(e).slice(8,-1),U_=e=>Ym(e)==="[object Object]",f5=e=>Mr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ih=Ta(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ude=Ta("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),h5=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},aTe=/-\w/g,Oo=h5(e=>e.replace(aTe,t=>t.slice(1).toUpperCase())),lTe=/\B([A-Z])/g,Sl=h5(e=>e.replace(lTe,"-$1").toLowerCase()),N0=h5(e=>e.charAt(0).toUpperCase()+e.slice(1)),um=h5(e=>e?`on${N0(e)}`:""),bl=(e,t)=>!Object.is(e,t),cm=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Hb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wb=e=>{const t=Mr(e)?Number(e):NaN;return isNaN(t)?e:t};let Xte;const H_=()=>Xte||(Xte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),uTe=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function cTe(e){return uTe.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function dTe(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const fTe={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},hTe={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},pTe={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},vTe={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},mTe={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},gTe="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",IU=Ta(gTe),yTe=IU,Zte=2;function Hde(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const i=r.filter((l,c)=>c%2===1);r=r.filter((l,c)=>c%2===0);let a=0;const s=[];for(let l=0;l=t){for(let c=l-Zte;c<=l+Zte||n>a;c++){if(c<0||c>=r.length)continue;const d=c+1;s.push(`${d}${" ".repeat(Math.max(3-String(d).length,0))}| ${r[c]}`);const h=r[c].length,p=i[c]&&i[c].length||0;if(c===l){const v=t-(a-(h+p)),g=Math.max(1,n>a?h-v:n-t);s.push(" | "+" ".repeat(v)+"^".repeat(g))}else if(c>l){if(n>a){const v=Math.max(Math.min(n-a,h),1);s.push(" | "+"^".repeat(v))}a+=h+p}}break}return s.join(` -`)}function Ye(e){if(Gn(e)){const t={};for(let n=0;n{if(n){const r=n.split(_Te);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function kTe(e){if(!e)return"";if(Mr(e))return e;let t="";for(const n in e){const r=e[n];if(Mr(r)||typeof r=="number"){const i=n.startsWith("--")?n:Sl(n);t+=`${i}:${r};`}}return t}function de(e){let t="";if(Mr(e))t=e;else if(Gn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,aP={};function ITe(e){if(aP.hasOwnProperty(e))return aP[e];const t=ATe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),aP[e]=!t}const LTe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DTe=Ta("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),PTe=Ta("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),RTe=Ta("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function MTe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const $Te=/["'&<>]/;function OTe(e){const t=""+e,n=$Te.exec(t);if(!n)return t;let r="",i,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function FTe(e,t){return e.replace(Zde,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function jTe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rFh(n,t))}const Jde=e=>!!(e&&e.__v_isRef===!0),Ne=e=>Mr(e)?e:e==null?"":Gn(e)||Xi(e)&&(e.toString===TU||!Ar(e.toString))?Jde(e)?Ne(e.value):JSON.stringify(e,Qde,2):String(e),Qde=(e,t)=>Jde(t)?Qde(e,t.value):lm(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],a)=>(n[lP(r,a)+" =>"]=i,n),{})}:B0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>lP(n))}:Jl(t)?lP(t):Xi(t)&&!Gn(t)&&!U_(t)?String(t):t,lP=(e,t="")=>{var n;return Jl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function efe(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const VTe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:am,EMPTY_OBJ:Ti,NO:Jv,NOOP:Ca,PatchFlagNames:hTe,PatchFlags:fTe,ShapeFlags:pTe,SlotFlags:vTe,camelize:Oo,capitalize:N0,cssVarNameEscapeSymbolsRE:Zde,def:AU,escapeHtml:OTe,escapeHtmlComment:NTe,extend:Ci,genCacheKey:dTe,genPropsAccessExp:cTe,generateCodeFrame:Hde,getEscapedCssVarName:FTe,getGlobalThis:H_,hasChanged:bl,hasOwn:Ki,hyphenate:Sl,includeBooleanAttr:DU,invokeArrayFns:cm,isArray:Gn,isBooleanAttr:TTe,isBuiltInDirective:Ude,isDate:Aj,isFunction:Ar,isGloballyAllowed:IU,isGloballyWhitelisted:yTe,isHTMLTag:Wde,isIntegerKey:f5,isKnownHtmlAttr:DTe,isKnownMathMLAttr:RTe,isKnownSvgAttr:PTe,isMap:lm,isMathMLTag:Kde,isModelListener:u5,isObject:Xi,isOn:O0,isPlainObject:U_,isPromise:d5,isRegExp:Vde,isRenderableAttrValue:MTe,isReservedProp:Ih,isSSRSafeAttrName:ITe,isSVGTag:Gde,isSet:B0,isSpecialBooleanAttr:Xde,isString:Mr,isSymbol:Jl,isVoidTag:qde,looseEqual:Fh,looseIndexOf:W_,looseToNumber:Hb,makeMap:Ta,normalizeClass:de,normalizeCssVarValue:efe,normalizeProps:qi,normalizeStyle:Ye,objectToString:TU,parseStringStyle:LU,propsToAttrMap:LTe,remove:c5,slotFlagsText:mTe,stringifyStyle:kTe,toDisplayString:Ne,toHandlerKey:um,toNumber:Wb,toRawType:zde,toTypeString:Ym},Symbol.toStringTag,{value:"Module"}));/** +**/function Ta(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ai={},um=[],xa=()=>{},em=()=>!1,F0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c5=e=>e.startsWith("onUpdate:"),xi=Object.assign,d5=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sTe=Object.prototype.hasOwnProperty,Ki=(e,t)=>sTe.call(e,t),Gn=Array.isArray,cm=e=>Xm(e)==="[object Map]",j0=e=>Xm(e)==="[object Set]",Lj=e=>Xm(e)==="[object Date]",Vde=e=>Xm(e)==="[object RegExp]",Ar=e=>typeof e=="function",Mr=e=>typeof e=="string",Jl=e=>typeof e=="symbol",Xi=e=>e!==null&&typeof e=="object",f5=e=>(Xi(e)||Ar(e))&&Ar(e.then)&&Ar(e.catch),IU=Object.prototype.toString,Xm=e=>IU.call(e),zde=e=>Xm(e).slice(8,-1),H_=e=>Xm(e)==="[object Object]",h5=e=>Mr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dh=Ta(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ude=Ta("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),p5=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},aTe=/-\w/g,$o=p5(e=>e.replace(aTe,t=>t.slice(1).toUpperCase())),lTe=/\B([A-Z])/g,Sl=p5(e=>e.replace(lTe,"-$1").toLowerCase()),V0=p5(e=>e.charAt(0).toUpperCase()+e.slice(1)),dm=p5(e=>e?`on${V0(e)}`:""),bl=(e,t)=>!Object.is(e,t),fm=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Hb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wb=e=>{const t=Mr(e)?Number(e):NaN;return isNaN(t)?e:t};let Xte;const W_=()=>Xte||(Xte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),uTe=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function cTe(e){return uTe.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function dTe(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const fTe={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},hTe={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},pTe={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},vTe={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},mTe={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},gTe="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",DU=Ta(gTe),yTe=DU,Zte=2;function Hde(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const i=r.filter((l,c)=>c%2===1);r=r.filter((l,c)=>c%2===0);let a=0;const s=[];for(let l=0;l=t){for(let c=l-Zte;c<=l+Zte||n>a;c++){if(c<0||c>=r.length)continue;const d=c+1;s.push(`${d}${" ".repeat(Math.max(3-String(d).length,0))}| ${r[c]}`);const h=r[c].length,p=i[c]&&i[c].length||0;if(c===l){const v=t-(a-(h+p)),g=Math.max(1,n>a?h-v:n-t);s.push(" | "+" ".repeat(v)+"^".repeat(g))}else if(c>l){if(n>a){const v=Math.max(Math.min(n-a,h),1);s.push(" | "+"^".repeat(v))}a+=h+p}}break}return s.join(` +`)}function qe(e){if(Gn(e)){const t={};for(let n=0;n{if(n){const r=n.split(_Te);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function kTe(e){if(!e)return"";if(Mr(e))return e;let t="";for(const n in e){const r=e[n];if(Mr(r)||typeof r=="number"){const i=n.startsWith("--")?n:Sl(n);t+=`${i}:${r};`}}return t}function fe(e){let t="";if(Mr(e))t=e;else if(Gn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,uP={};function ITe(e){if(uP.hasOwnProperty(e))return uP[e];const t=ATe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),uP[e]=!t}const LTe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DTe=Ta("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),PTe=Ta("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),RTe=Ta("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function MTe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const OTe=/["'&<>]/;function $Te(e){const t=""+e,n=OTe.exec(t);if(!n)return t;let r="",i,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function FTe(e,t){return e.replace(Zde,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function jTe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rVh(n,t))}const Jde=e=>!!(e&&e.__v_isRef===!0),je=e=>Mr(e)?e:e==null?"":Gn(e)||Xi(e)&&(e.toString===IU||!Ar(e.toString))?Jde(e)?je(e.value):JSON.stringify(e,Qde,2):String(e),Qde=(e,t)=>Jde(t)?Qde(e,t.value):cm(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],a)=>(n[cP(r,a)+" =>"]=i,n),{})}:j0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>cP(n))}:Jl(t)?cP(t):Xi(t)&&!Gn(t)&&!H_(t)?String(t):t,cP=(e,t="")=>{var n;return Jl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function efe(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const VTe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:um,EMPTY_OBJ:Ai,NO:em,NOOP:xa,PatchFlagNames:hTe,PatchFlags:fTe,ShapeFlags:pTe,SlotFlags:vTe,camelize:$o,capitalize:V0,cssVarNameEscapeSymbolsRE:Zde,def:LU,escapeHtml:$Te,escapeHtmlComment:NTe,extend:xi,genCacheKey:dTe,genPropsAccessExp:cTe,generateCodeFrame:Hde,getEscapedCssVarName:FTe,getGlobalThis:W_,hasChanged:bl,hasOwn:Ki,hyphenate:Sl,includeBooleanAttr:RU,invokeArrayFns:fm,isArray:Gn,isBooleanAttr:TTe,isBuiltInDirective:Ude,isDate:Lj,isFunction:Ar,isGloballyAllowed:DU,isGloballyWhitelisted:yTe,isHTMLTag:Wde,isIntegerKey:h5,isKnownHtmlAttr:DTe,isKnownMathMLAttr:RTe,isKnownSvgAttr:PTe,isMap:cm,isMathMLTag:Kde,isModelListener:c5,isObject:Xi,isOn:F0,isPlainObject:H_,isPromise:f5,isRegExp:Vde,isRenderableAttrValue:MTe,isReservedProp:Dh,isSSRSafeAttrName:ITe,isSVGTag:Gde,isSet:j0,isSpecialBooleanAttr:Xde,isString:Mr,isSymbol:Jl,isVoidTag:qde,looseEqual:Vh,looseIndexOf:G_,looseToNumber:Hb,makeMap:Ta,normalizeClass:fe,normalizeCssVarValue:efe,normalizeProps:qi,normalizeStyle:qe,objectToString:IU,parseStringStyle:PU,propsToAttrMap:LTe,remove:d5,slotFlagsText:mTe,stringifyStyle:kTe,toDisplayString:je,toHandlerKey:dm,toNumber:Wb,toRawType:zde,toTypeString:Xm},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let pl;class PU{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=pl,!t&&pl&&(this.index=(pl.scopes||(pl.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(pl=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Y4){let t=Y4;for(Y4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;q4;){let t=q4;for(q4=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function rfe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ife(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),BU(r),zTe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Ij(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ofe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ofe(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kb)||(e.globalVersion=Kb,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ij(e))))return;e.flags|=2;const t=e.dep,n=Ro,r=Id;Ro=e,Id=!0;try{rfe(e);const i=e.fn(e._value);(t.version===0||bl(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ro=n,Id=r,ife(e),e.flags&=-3}}function BU(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)BU(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zTe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function UTe(e,t){e.effect instanceof Gb&&(e=e.effect.fn);const n=new Gb(e);t&&Ci(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function HTe(e){e.effect.stop()}let Id=!0;const sfe=[];function jh(){sfe.push(Id),Id=!1}function Vh(){const e=sfe.pop();Id=e===void 0?!0:e}function Jte(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ro;Ro=void 0;try{t()}finally{Ro=n}}}let Kb=0,WTe=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class v5{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ro||!Id||Ro===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ro)n=this.activeLink=new WTe(Ro,this),Ro.deps?(n.prevDep=Ro.depsTail,Ro.depsTail.nextDep=n,Ro.depsTail=n):Ro.deps=Ro.depsTail=n,afe(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ro.depsTail,n.nextDep=void 0,Ro.depsTail.nextDep=n,Ro.depsTail=n,Ro.deps===n&&(Ro.deps=r)}return n}trigger(t){this.version++,Kb++,this.notify(t)}notify(t){$U();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{OU()}}}function afe(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)afe(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const T8=new WeakMap,dm=Symbol(""),Lj=Symbol(""),qb=Symbol("");function _l(e,t,n){if(Id&&Ro){let r=T8.get(e);r||T8.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new v5),i.map=r,i.key=n),i.track()}}function yh(e,t,n,r,i,a){const s=T8.get(e);if(!s){Kb++;return}const l=c=>{c&&c.trigger()};if($U(),t==="clear")s.forEach(l);else{const c=Gn(e),d=c&&f5(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,v)=>{(v==="length"||v===qb||!Jl(v)&&v>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),d&&l(s.get(qb)),t){case"add":c?d&&l(s.get("length")):(l(s.get(dm)),lm(e)&&l(s.get(Lj)));break;case"delete":c||(l(s.get(dm)),lm(e)&&l(s.get(Lj)));break;case"set":lm(e)&&l(s.get(dm));break}}OU()}function GTe(e,t){const n=T8.get(e);return n&&n.get(t)}function u1(e){const t=Bi(e);return t===e?t:(_l(t,"iterate",qb),lc(e)?t:t.map(za))}function m5(e){return _l(e=Bi(e),"iterate",qb),e}const KTe={__proto__:null,[Symbol.iterator](){return cP(this,Symbol.iterator,za)},concat(...e){return u1(this).concat(...e.map(t=>Gn(t)?u1(t):t))},entries(){return cP(this,"entries",e=>(e[1]=za(e[1]),e))},every(e,t){return oh(this,"every",e,t,void 0,arguments)},filter(e,t){return oh(this,"filter",e,t,n=>n.map(za),arguments)},find(e,t){return oh(this,"find",e,t,za,arguments)},findIndex(e,t){return oh(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return oh(this,"findLast",e,t,za,arguments)},findLastIndex(e,t){return oh(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return oh(this,"forEach",e,t,void 0,arguments)},includes(...e){return dP(this,"includes",e)},indexOf(...e){return dP(this,"indexOf",e)},join(e){return u1(this).join(e)},lastIndexOf(...e){return dP(this,"lastIndexOf",e)},map(e,t){return oh(this,"map",e,t,void 0,arguments)},pop(){return K2(this,"pop")},push(...e){return K2(this,"push",e)},reduce(e,...t){return Qte(this,"reduce",e,t)},reduceRight(e,...t){return Qte(this,"reduceRight",e,t)},shift(){return K2(this,"shift")},some(e,t){return oh(this,"some",e,t,void 0,arguments)},splice(...e){return K2(this,"splice",e)},toReversed(){return u1(this).toReversed()},toSorted(e){return u1(this).toSorted(e)},toSpliced(...e){return u1(this).toSpliced(...e)},unshift(...e){return K2(this,"unshift",e)},values(){return cP(this,"values",za)}};function cP(e,t,n){const r=m5(e),i=r[t]();return r!==e&&!lc(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=n(a.value)),a}),i}const qTe=Array.prototype;function oh(e,t,n,r,i,a){const s=m5(e),l=s!==e&&!lc(e),c=s[t];if(c!==qTe[t]){const p=c.apply(e,a);return l?za(p):p}let d=n;s!==e&&(l?d=function(p,v){return n.call(this,za(p),v,e)}:n.length>2&&(d=function(p,v){return n.call(this,p,v,e)}));const h=c.call(s,d,r);return l&&i?i(h):h}function Qte(e,t,n,r){const i=m5(e);let a=n;return i!==e&&(lc(e)?n.length>3&&(a=function(s,l,c){return n.call(this,s,l,c,e)}):a=function(s,l,c){return n.call(this,s,za(l),c,e)}),i[t](a,...r)}function dP(e,t,n){const r=Bi(e);_l(r,"iterate",qb);const i=r[t](...n);return(i===-1||i===!1)&&b5(n[0])?(n[0]=Bi(n[0]),r[t](...n)):i}function K2(e,t,n=[]){jh(),$U();const r=Bi(e)[t].apply(e,n);return OU(),Vh(),r}const YTe=Ta("__proto__,__v_isRef,__isVue"),lfe=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jl));function XTe(e){Jl(e)||(e=String(e));const t=Bi(this);return _l(t,"has",e),t.hasOwnProperty(e)}class ufe{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?vfe:pfe:a?hfe:ffe).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Gn(t);if(!i){let c;if(s&&(c=KTe[n]))return c;if(n==="hasOwnProperty")return XTe}const l=Reflect.get(t,n,Bo(t)?t:r);if((Jl(n)?lfe.has(n):YTe(n))||(i||_l(t,"get",n),a))return l;if(Bo(l)){const c=s&&f5(n)?l:l.value;return i&&Xi(c)?Yb(c):c}return Xi(l)?i?Yb(l):qt(l):l}}class cfe extends ufe{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];if(!this._isShallow){const c=zh(a);if(!lc(r)&&!zh(r)&&(a=Bi(a),r=Bi(r)),!Gn(t)&&Bo(a)&&!Bo(r))return c||(a.value=r),!0}const s=Gn(t)&&f5(n)?Number(n)e,ux=e=>Reflect.getPrototypeOf(e);function t5e(e,t,n){return function(...r){const i=this.__v_raw,a=Bi(i),s=lm(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=i[e](...r),h=n?Dj:t?A8:za;return!t&&_l(a,"iterate",c?Lj:dm),{next(){const{value:p,done:v}=d.next();return v?{value:p,done:v}:{value:l?[h(p[0]),h(p[1])]:h(p),done:v}},[Symbol.iterator](){return this}}}}function cx(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function n5e(e,t){const n={get(i){const a=this.__v_raw,s=Bi(a),l=Bi(i);e||(bl(i,l)&&_l(s,"get",i),_l(s,"get",l));const{has:c}=ux(s),d=t?Dj:e?A8:za;if(c.call(s,i))return d(a.get(i));if(c.call(s,l))return d(a.get(l));a!==s&&a.get(i)},get size(){const i=this.__v_raw;return!e&&_l(Bi(i),"iterate",dm),i.size},has(i){const a=this.__v_raw,s=Bi(a),l=Bi(i);return e||(bl(i,l)&&_l(s,"has",i),_l(s,"has",l)),i===l?a.has(i):a.has(i)||a.has(l)},forEach(i,a){const s=this,l=s.__v_raw,c=Bi(l),d=t?Dj:e?A8:za;return!e&&_l(c,"iterate",dm),l.forEach((h,p)=>i.call(a,d(h),d(p),s))}};return Ci(n,e?{add:cx("add"),set:cx("set"),delete:cx("delete"),clear:cx("clear")}:{add(i){!t&&!lc(i)&&!zh(i)&&(i=Bi(i));const a=Bi(this);return ux(a).has.call(a,i)||(a.add(i),yh(a,"add",i,i)),this},set(i,a){!t&&!lc(a)&&!zh(a)&&(a=Bi(a));const s=Bi(this),{has:l,get:c}=ux(s);let d=l.call(s,i);d||(i=Bi(i),d=l.call(s,i));const h=c.call(s,i);return s.set(i,a),d?bl(a,h)&&yh(s,"set",i,a):yh(s,"add",i,a),this},delete(i){const a=Bi(this),{has:s,get:l}=ux(a);let c=s.call(a,i);c||(i=Bi(i),c=s.call(a,i)),l&&l.call(a,i);const d=a.delete(i);return c&&yh(a,"delete",i,void 0),d},clear(){const i=Bi(this),a=i.size!==0,s=i.clear();return a&&yh(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=t5e(i,e,t)}),n}function g5(e,t){const n=n5e(e,t);return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ki(n,i)&&i in r?n:r,i,a)}const r5e={get:g5(!1,!1)},i5e={get:g5(!1,!0)},o5e={get:g5(!0,!1)},s5e={get:g5(!0,!0)},ffe=new WeakMap,hfe=new WeakMap,pfe=new WeakMap,vfe=new WeakMap;function a5e(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function l5e(e){return e.__v_skip||!Object.isExtensible(e)?0:a5e(zde(e))}function qt(e){return zh(e)?e:y5(e,!1,ZTe,r5e,ffe)}function NU(e){return y5(e,!1,QTe,i5e,hfe)}function Yb(e){return y5(e,!0,JTe,o5e,pfe)}function u5e(e){return y5(e,!0,e5e,s5e,vfe)}function y5(e,t,n,r,i){if(!Xi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=l5e(e);if(a===0)return e;const s=i.get(e);if(s)return s;const l=new Proxy(e,a===2?r:n);return i.set(e,l),l}function gf(e){return zh(e)?gf(e.__v_raw):!!(e&&e.__v_isReactive)}function zh(e){return!!(e&&e.__v_isReadonly)}function lc(e){return!!(e&&e.__v_isShallow)}function b5(e){return e?!!e.__v_raw:!1}function Bi(e){const t=e&&e.__v_raw;return t?Bi(t):e}function _5(e){return!Ki(e,"__v_skip")&&Object.isExtensible(e)&&AU(e,"__v_skip",!0),e}const za=e=>Xi(e)?qt(e):e,A8=e=>Xi(e)?Yb(e):e;function Bo(e){return e?e.__v_isRef===!0:!1}function ue(e){return mfe(e,!1)}function f0(e){return mfe(e,!0)}function mfe(e,t){return Bo(e)?e:new c5e(e,t)}class c5e{constructor(t,n){this.dep=new v5,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Bi(t),this._value=n?t:za(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||lc(t)||zh(t);t=r?t:Bi(t),bl(t,n)&&(this._rawValue=t,this._value=r?t:za(t),this.dep.trigger())}}function d5e(e){e.dep&&e.dep.trigger()}function rt(e){return Bo(e)?e.value:e}function f5e(e){return Ar(e)?e():rt(e)}const h5e={get:(e,t,n)=>t==="__v_raw"?e:rt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Bo(i)&&!Bo(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function FU(e){return gf(e)?e:new Proxy(e,h5e)}class p5e{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new v5,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function gfe(e){return new p5e(e)}function tn(e){const t=Gn(e)?new Array(e.length):{};for(const n in e)t[n]=yfe(e,n);return t}class v5e{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return GTe(Bi(this._object),this._key)}}class m5e{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Du(e,t,n){return Bo(e)?e:Ar(e)?new m5e(e):Xi(e)&&arguments.length>1?yfe(e,t,n):ue(e)}function yfe(e,t,n){const r=e[t];return Bo(r)?r:new v5e(e,t,n)}class g5e{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new v5(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kb-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ro!==this)return nfe(this,!0),!0}get value(){const t=this.dep.track();return ofe(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function y5e(e,t,n=!1){let r,i;return Ar(e)?r=e:(r=e.get,i=e.set),new g5e(r,i,n)}const b5e={GET:"get",HAS:"has",ITERATE:"iterate"},_5e={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},dx={},I8=new WeakMap;let Kp;function S5e(){return Kp}function bfe(e,t=!1,n=Kp){if(n){let r=I8.get(n);r||I8.set(n,r=[]),r.push(e)}}function k5e(e,t,n=Ti){const{immediate:r,deep:i,once:a,scheduler:s,augmentJob:l,call:c}=n,d=_=>i?_:lc(_)||i===!1||i===0?bh(_,1):bh(_);let h,p,v,g,y=!1,S=!1;if(Bo(e)?(p=()=>e.value,y=lc(e)):gf(e)?(p=()=>d(e),y=!0):Gn(e)?(S=!0,y=e.some(_=>gf(_)||lc(_)),p=()=>e.map(_=>{if(Bo(_))return _.value;if(gf(_))return d(_);if(Ar(_))return c?c(_,2):_()})):Ar(e)?t?p=c?()=>c(e,2):e:p=()=>{if(v){jh();try{v()}finally{Vh()}}const _=Kp;Kp=h;try{return c?c(e,3,[g]):e(g)}finally{Kp=_}}:p=Ca,t&&i){const _=p,T=i===!0?1/0:i;p=()=>bh(_(),T)}const k=p5(),C=()=>{h.stop(),k&&k.active&&c5(k.effects,h)};if(a&&t){const _=t;t=(...T)=>{_(...T),C()}}let x=S?new Array(e.length).fill(dx):dx;const E=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const T=h.run();if(i||y||(S?T.some((D,P)=>bl(D,x[P])):bl(T,x))){v&&v();const D=Kp;Kp=h;try{const P=[T,x===dx?void 0:S&&x[0]===dx?[]:x,g];x=T,c?c(t,3,P):t(...P)}finally{Kp=D}}}else h.run()};return l&&l(E),h=new Gb(p),h.scheduler=s?()=>s(E,!1):E,g=_=>bfe(_,!1,h),v=h.onStop=()=>{const _=I8.get(h);if(_){if(c)c(_,4);else for(const T of _)T();I8.delete(h)}},t?r?E(!0):x=h.run():s?s(E.bind(null,!0),!0):h.run(),C.pause=h.pause.bind(h),C.resume=h.resume.bind(h),C.stop=C,C}function bh(e,t=1/0,n){if(t<=0||!Xi(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Bo(e))bh(e.value,t,n);else if(Gn(e))for(let r=0;r{bh(r,t,n)});else if(U_(e)){for(const r in e)bh(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&bh(e[r],t,n)}return e}/** +**/let pl;class MU{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=pl,!t&&pl&&(this.index=(pl.scopes||(pl.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(pl=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Y4){let t=Y4;for(Y4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;q4;){let t=q4;for(q4=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function rfe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ife(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),FU(r),zTe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Dj(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ofe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ofe(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kb)||(e.globalVersion=Kb,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Dj(e))))return;e.flags|=2;const t=e.dep,n=Ro,r=Id;Ro=e,Id=!0;try{rfe(e);const i=e.fn(e._value);(t.version===0||bl(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ro=n,Id=r,ife(e),e.flags&=-3}}function FU(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)FU(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zTe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function UTe(e,t){e.effect instanceof Gb&&(e=e.effect.fn);const n=new Gb(e);t&&xi(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function HTe(e){e.effect.stop()}let Id=!0;const sfe=[];function zh(){sfe.push(Id),Id=!1}function Uh(){const e=sfe.pop();Id=e===void 0?!0:e}function Jte(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ro;Ro=void 0;try{t()}finally{Ro=n}}}let Kb=0,WTe=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class m5{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ro||!Id||Ro===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ro)n=this.activeLink=new WTe(Ro,this),Ro.deps?(n.prevDep=Ro.depsTail,Ro.depsTail.nextDep=n,Ro.depsTail=n):Ro.deps=Ro.depsTail=n,afe(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ro.depsTail,n.nextDep=void 0,Ro.depsTail.nextDep=n,Ro.depsTail=n,Ro.deps===n&&(Ro.deps=r)}return n}trigger(t){this.version++,Kb++,this.notify(t)}notify(t){BU();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{NU()}}}function afe(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)afe(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const A8=new WeakMap,hm=Symbol(""),Pj=Symbol(""),qb=Symbol("");function _l(e,t,n){if(Id&&Ro){let r=A8.get(e);r||A8.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new m5),i.map=r,i.key=n),i.track()}}function _h(e,t,n,r,i,a){const s=A8.get(e);if(!s){Kb++;return}const l=c=>{c&&c.trigger()};if(BU(),t==="clear")s.forEach(l);else{const c=Gn(e),d=c&&h5(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,v)=>{(v==="length"||v===qb||!Jl(v)&&v>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),d&&l(s.get(qb)),t){case"add":c?d&&l(s.get("length")):(l(s.get(hm)),cm(e)&&l(s.get(Pj)));break;case"delete":c||(l(s.get(hm)),cm(e)&&l(s.get(Pj)));break;case"set":cm(e)&&l(s.get(hm));break}}NU()}function GTe(e,t){const n=A8.get(e);return n&&n.get(t)}function c1(e){const t=Bi(e);return t===e?t:(_l(t,"iterate",qb),cc(e)?t:t.map(za))}function g5(e){return _l(e=Bi(e),"iterate",qb),e}const KTe={__proto__:null,[Symbol.iterator](){return fP(this,Symbol.iterator,za)},concat(...e){return c1(this).concat(...e.map(t=>Gn(t)?c1(t):t))},entries(){return fP(this,"entries",e=>(e[1]=za(e[1]),e))},every(e,t){return oh(this,"every",e,t,void 0,arguments)},filter(e,t){return oh(this,"filter",e,t,n=>n.map(za),arguments)},find(e,t){return oh(this,"find",e,t,za,arguments)},findIndex(e,t){return oh(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return oh(this,"findLast",e,t,za,arguments)},findLastIndex(e,t){return oh(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return oh(this,"forEach",e,t,void 0,arguments)},includes(...e){return hP(this,"includes",e)},indexOf(...e){return hP(this,"indexOf",e)},join(e){return c1(this).join(e)},lastIndexOf(...e){return hP(this,"lastIndexOf",e)},map(e,t){return oh(this,"map",e,t,void 0,arguments)},pop(){return K2(this,"pop")},push(...e){return K2(this,"push",e)},reduce(e,...t){return Qte(this,"reduce",e,t)},reduceRight(e,...t){return Qte(this,"reduceRight",e,t)},shift(){return K2(this,"shift")},some(e,t){return oh(this,"some",e,t,void 0,arguments)},splice(...e){return K2(this,"splice",e)},toReversed(){return c1(this).toReversed()},toSorted(e){return c1(this).toSorted(e)},toSpliced(...e){return c1(this).toSpliced(...e)},unshift(...e){return K2(this,"unshift",e)},values(){return fP(this,"values",za)}};function fP(e,t,n){const r=g5(e),i=r[t]();return r!==e&&!cc(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=n(a.value)),a}),i}const qTe=Array.prototype;function oh(e,t,n,r,i,a){const s=g5(e),l=s!==e&&!cc(e),c=s[t];if(c!==qTe[t]){const p=c.apply(e,a);return l?za(p):p}let d=n;s!==e&&(l?d=function(p,v){return n.call(this,za(p),v,e)}:n.length>2&&(d=function(p,v){return n.call(this,p,v,e)}));const h=c.call(s,d,r);return l&&i?i(h):h}function Qte(e,t,n,r){const i=g5(e);let a=n;return i!==e&&(cc(e)?n.length>3&&(a=function(s,l,c){return n.call(this,s,l,c,e)}):a=function(s,l,c){return n.call(this,s,za(l),c,e)}),i[t](a,...r)}function hP(e,t,n){const r=Bi(e);_l(r,"iterate",qb);const i=r[t](...n);return(i===-1||i===!1)&&_5(n[0])?(n[0]=Bi(n[0]),r[t](...n)):i}function K2(e,t,n=[]){zh(),BU();const r=Bi(e)[t].apply(e,n);return NU(),Uh(),r}const YTe=Ta("__proto__,__v_isRef,__isVue"),lfe=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jl));function XTe(e){Jl(e)||(e=String(e));const t=Bi(this);return _l(t,"has",e),t.hasOwnProperty(e)}class ufe{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?vfe:pfe:a?hfe:ffe).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Gn(t);if(!i){let c;if(s&&(c=KTe[n]))return c;if(n==="hasOwnProperty")return XTe}const l=Reflect.get(t,n,Bo(t)?t:r);if((Jl(n)?lfe.has(n):YTe(n))||(i||_l(t,"get",n),a))return l;if(Bo(l)){const c=s&&h5(n)?l:l.value;return i&&Xi(c)?Yb(c):c}return Xi(l)?i?Yb(l):Wt(l):l}}class cfe extends ufe{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];if(!this._isShallow){const c=Hh(a);if(!cc(r)&&!Hh(r)&&(a=Bi(a),r=Bi(r)),!Gn(t)&&Bo(a)&&!Bo(r))return c||(a.value=r),!0}const s=Gn(t)&&h5(n)?Number(n)e,cw=e=>Reflect.getPrototypeOf(e);function t5e(e,t,n){return function(...r){const i=this.__v_raw,a=Bi(i),s=cm(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=i[e](...r),h=n?Rj:t?I8:za;return!t&&_l(a,"iterate",c?Pj:hm),{next(){const{value:p,done:v}=d.next();return v?{value:p,done:v}:{value:l?[h(p[0]),h(p[1])]:h(p),done:v}},[Symbol.iterator](){return this}}}}function dw(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function n5e(e,t){const n={get(i){const a=this.__v_raw,s=Bi(a),l=Bi(i);e||(bl(i,l)&&_l(s,"get",i),_l(s,"get",l));const{has:c}=cw(s),d=t?Rj:e?I8:za;if(c.call(s,i))return d(a.get(i));if(c.call(s,l))return d(a.get(l));a!==s&&a.get(i)},get size(){const i=this.__v_raw;return!e&&_l(Bi(i),"iterate",hm),i.size},has(i){const a=this.__v_raw,s=Bi(a),l=Bi(i);return e||(bl(i,l)&&_l(s,"has",i),_l(s,"has",l)),i===l?a.has(i):a.has(i)||a.has(l)},forEach(i,a){const s=this,l=s.__v_raw,c=Bi(l),d=t?Rj:e?I8:za;return!e&&_l(c,"iterate",hm),l.forEach((h,p)=>i.call(a,d(h),d(p),s))}};return xi(n,e?{add:dw("add"),set:dw("set"),delete:dw("delete"),clear:dw("clear")}:{add(i){!t&&!cc(i)&&!Hh(i)&&(i=Bi(i));const a=Bi(this);return cw(a).has.call(a,i)||(a.add(i),_h(a,"add",i,i)),this},set(i,a){!t&&!cc(a)&&!Hh(a)&&(a=Bi(a));const s=Bi(this),{has:l,get:c}=cw(s);let d=l.call(s,i);d||(i=Bi(i),d=l.call(s,i));const h=c.call(s,i);return s.set(i,a),d?bl(a,h)&&_h(s,"set",i,a):_h(s,"add",i,a),this},delete(i){const a=Bi(this),{has:s,get:l}=cw(a);let c=s.call(a,i);c||(i=Bi(i),c=s.call(a,i)),l&&l.call(a,i);const d=a.delete(i);return c&&_h(a,"delete",i,void 0),d},clear(){const i=Bi(this),a=i.size!==0,s=i.clear();return a&&_h(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=t5e(i,e,t)}),n}function y5(e,t){const n=n5e(e,t);return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ki(n,i)&&i in r?n:r,i,a)}const r5e={get:y5(!1,!1)},i5e={get:y5(!1,!0)},o5e={get:y5(!0,!1)},s5e={get:y5(!0,!0)},ffe=new WeakMap,hfe=new WeakMap,pfe=new WeakMap,vfe=new WeakMap;function a5e(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function l5e(e){return e.__v_skip||!Object.isExtensible(e)?0:a5e(zde(e))}function Wt(e){return Hh(e)?e:b5(e,!1,ZTe,r5e,ffe)}function jU(e){return b5(e,!1,QTe,i5e,hfe)}function Yb(e){return b5(e,!0,JTe,o5e,pfe)}function u5e(e){return b5(e,!0,e5e,s5e,vfe)}function b5(e,t,n,r,i){if(!Xi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=l5e(e);if(a===0)return e;const s=i.get(e);if(s)return s;const l=new Proxy(e,a===2?r:n);return i.set(e,l),l}function gf(e){return Hh(e)?gf(e.__v_raw):!!(e&&e.__v_isReactive)}function Hh(e){return!!(e&&e.__v_isReadonly)}function cc(e){return!!(e&&e.__v_isShallow)}function _5(e){return e?!!e.__v_raw:!1}function Bi(e){const t=e&&e.__v_raw;return t?Bi(t):e}function S5(e){return!Ki(e,"__v_skip")&&Object.isExtensible(e)&&LU(e,"__v_skip",!0),e}const za=e=>Xi(e)?Wt(e):e,I8=e=>Xi(e)?Yb(e):e;function Bo(e){return e?e.__v_isRef===!0:!1}function ue(e){return mfe(e,!1)}function h0(e){return mfe(e,!0)}function mfe(e,t){return Bo(e)?e:new c5e(e,t)}class c5e{constructor(t,n){this.dep=new m5,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Bi(t),this._value=n?t:za(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||cc(t)||Hh(t);t=r?t:Bi(t),bl(t,n)&&(this._rawValue=t,this._value=r?t:za(t),this.dep.trigger())}}function d5e(e){e.dep&&e.dep.trigger()}function tt(e){return Bo(e)?e.value:e}function f5e(e){return Ar(e)?e():tt(e)}const h5e={get:(e,t,n)=>t==="__v_raw"?e:tt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Bo(i)&&!Bo(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function VU(e){return gf(e)?e:new Proxy(e,h5e)}class p5e{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new m5,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function gfe(e){return new p5e(e)}function tn(e){const t=Gn(e)?new Array(e.length):{};for(const n in e)t[n]=yfe(e,n);return t}class v5e{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return GTe(Bi(this._object),this._key)}}class m5e{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Pu(e,t,n){return Bo(e)?e:Ar(e)?new m5e(e):Xi(e)&&arguments.length>1?yfe(e,t,n):ue(e)}function yfe(e,t,n){const r=e[t];return Bo(r)?r:new v5e(e,t,n)}class g5e{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new m5(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kb-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ro!==this)return nfe(this,!0),!0}get value(){const t=this.dep.track();return ofe(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function y5e(e,t,n=!1){let r,i;return Ar(e)?r=e:(r=e.get,i=e.set),new g5e(r,i,n)}const b5e={GET:"get",HAS:"has",ITERATE:"iterate"},_5e={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},fw={},L8=new WeakMap;let qp;function S5e(){return qp}function bfe(e,t=!1,n=qp){if(n){let r=L8.get(n);r||L8.set(n,r=[]),r.push(e)}}function k5e(e,t,n=Ai){const{immediate:r,deep:i,once:a,scheduler:s,augmentJob:l,call:c}=n,d=_=>i?_:cc(_)||i===!1||i===0?Sh(_,1):Sh(_);let h,p,v,g,y=!1,S=!1;if(Bo(e)?(p=()=>e.value,y=cc(e)):gf(e)?(p=()=>d(e),y=!0):Gn(e)?(S=!0,y=e.some(_=>gf(_)||cc(_)),p=()=>e.map(_=>{if(Bo(_))return _.value;if(gf(_))return d(_);if(Ar(_))return c?c(_,2):_()})):Ar(e)?t?p=c?()=>c(e,2):e:p=()=>{if(v){zh();try{v()}finally{Uh()}}const _=qp;qp=h;try{return c?c(e,3,[g]):e(g)}finally{qp=_}}:p=xa,t&&i){const _=p,T=i===!0?1/0:i;p=()=>Sh(_(),T)}const k=v5(),w=()=>{h.stop(),k&&k.active&&d5(k.effects,h)};if(a&&t){const _=t;t=(...T)=>{_(...T),w()}}let x=S?new Array(e.length).fill(fw):fw;const E=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const T=h.run();if(i||y||(S?T.some((D,P)=>bl(D,x[P])):bl(T,x))){v&&v();const D=qp;qp=h;try{const P=[T,x===fw?void 0:S&&x[0]===fw?[]:x,g];x=T,c?c(t,3,P):t(...P)}finally{qp=D}}}else h.run()};return l&&l(E),h=new Gb(p),h.scheduler=s?()=>s(E,!1):E,g=_=>bfe(_,!1,h),v=h.onStop=()=>{const _=L8.get(h);if(_){if(c)c(_,4);else for(const T of _)T();L8.delete(h)}},t?r?E(!0):x=h.run():s?s(E.bind(null,!0),!0):h.run(),w.pause=h.pause.bind(h),w.resume=h.resume.bind(h),w.stop=w,w}function Sh(e,t=1/0,n){if(t<=0||!Xi(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Bo(e))Sh(e.value,t,n);else if(Gn(e))for(let r=0;r{Sh(r,t,n)});else if(H_(e)){for(const r in e)Sh(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Sh(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const _fe=[];function x5e(e){_fe.push(e)}function C5e(){_fe.pop()}function w5e(e,t){}const E5e={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},T5e={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function r3(e,t,n,r){try{return r?e(...r):e()}catch(i){Xm(i,t,n)}}function Zc(e,t,n,r){if(Ar(e)){const i=r3(e,t,n,r);return i&&d5(i)&&i.catch(a=>{Xm(a,t,n)}),i}if(Gn(e)){const i=[];for(let a=0;a>>1,i=Hl[r],a=Zb(i);a=Zb(n)?Hl.push(e):Hl.splice(I5e(t),0,e),e.flags|=1,kfe()}}function kfe(){L8||(L8=Sfe.then(xfe))}function Xb(e){Gn(e)?ry.push(...e):qp&&e.id===-1?qp.splice(B1+1,0,e):e.flags&1||(ry.push(e),e.flags|=1),kfe()}function ene(e,t,n=nf+1){for(;nZb(n)-Zb(r));if(ry.length=0,qp){qp.push(...t);return}for(qp=t,B1=0;B1e.id==null?e.flags&2?-1:1/0:e.id;function xfe(e){try{for(nf=0;nfN1.emit(i,...a)),fx=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{Cfe(a,t)}),setTimeout(()=>{N1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,fx=[])},3e3)):fx=[]}let qa=null,S5=null;function Jb(e){const t=qa;return qa=e,S5=e&&e.type.__scopeId||null,t}function L5e(e){S5=e}function D5e(){S5=null}const P5e=e=>fe;function fe(e,t=qa,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&t_(-1);const a=Jb(t);let s;try{s=e(...i)}finally{Jb(a),r._d&&t_(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ai(e,t){if(qa===null)return e;const n=q_(qa),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,X4=e=>e&&(e.disabled||e.disabled===""),tne=e=>e&&(e.defer||e.defer===""),nne=e=>typeof SVGElement<"u"&&e instanceof SVGElement,rne=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Pj=(e,t)=>{const n=e&&e.to;return Mr(n)?t?t(n):null:n},Tfe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,l,c,d){const{mc:h,pc:p,pbc:v,o:{insert:g,querySelector:y,createText:S,createComment:k}}=d,C=X4(t.props);let{shapeFlag:x,children:E,dynamicChildren:_}=t;if(e==null){const T=t.el=S(""),D=t.anchor=S("");g(T,n,r),g(D,n,r);const P=(O,L)=>{x&16&&h(E,O,L,i,a,s,l,c)},M=()=>{const O=t.target=Pj(t.props,y),L=Afe(O,t,S,g);O&&(s!=="svg"&&nne(O)?s="svg":s!=="mathml"&&rne(O)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(O),C||(P(O,L),ZC(t,!1)))};C&&(P(n,D),ZC(t,!0)),tne(t.props)?(t.el.__isMounted=!1,ua(()=>{M(),delete t.el.__isMounted},a)):M()}else{if(tne(t.props)&&e.el.__isMounted===!1){ua(()=>{Tfe.process(e,t,n,r,i,a,s,l,c,d)},a);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,D=t.target=e.target,P=t.targetAnchor=e.targetAnchor,M=X4(e.props),O=M?n:D,L=M?T:P;if(s==="svg"||nne(D)?s="svg":(s==="mathml"||rne(D))&&(s="mathml"),_?(v(e.dynamicChildren,_,O,i,a,s,l),QU(e,t,!0)):c||p(e,t,O,L,i,a,s,l,!1),C)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):hx(t,n,T,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Pj(t.props,y);B&&hx(t,B,null,d,0)}else M&&hx(t,D,P,d,1);ZC(t,C)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetStart:d,targetAnchor:h,target:p,props:v}=e;if(p&&(i(d),i(h)),a&&i(c),s&16){const g=a||!X4(v);for(let y=0;y{e.isMounted=!0}),_o(()=>{e.isUnmounting=!0}),e}const Cc=[Function,Array],zU={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Cc,onEnter:Cc,onAfterEnter:Cc,onEnterCancelled:Cc,onBeforeLeave:Cc,onLeave:Cc,onAfterLeave:Cc,onLeaveCancelled:Cc,onBeforeAppear:Cc,onAppear:Cc,onAfterAppear:Cc,onAppearCancelled:Cc},Ife=e=>{const t=e.subTree;return t.component?Ife(t.component):t},M5e={name:"BaseTransition",props:zU,setup(e,{slots:t}){const n=So(),r=VU();return()=>{const i=t.default&&k5(t.default(),!0);if(!i||!i.length)return;const a=Lfe(i),s=Bi(e),{mode:l}=s;if(r.isLeaving)return fP(a);const c=ine(a);if(!c)return fP(a);let d=Ay(c,s,r,n,p=>d=p);c.type!==ks&&Uh(c,d);let h=n.subTree&&ine(n.subTree);if(h&&h.type!==ks&&!wd(h,c)&&Ife(n).type!==ks){let p=Ay(h,s,r,n);if(Uh(h,p),l==="out-in"&&c.type!==ks)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},fP(a);l==="in-out"&&c.type!==ks?p.delayLeave=(v,g,y)=>{const S=Pfe(r,h);S[String(h.key)]=h,v[gh]=()=>{g(),v[gh]=void 0,delete d.delayedLeave,h=void 0},d.delayedLeave=()=>{y(),delete d.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return a}}};function Lfe(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ks){t=n;break}}return t}const Dfe=M5e;function Pfe(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ay(e,t,n,r,i){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:v,onLeave:g,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:k,onAppear:C,onAfterAppear:x,onAppearCancelled:E}=t,_=String(e.key),T=Pfe(n,e),D=(O,L)=>{O&&Zc(O,r,9,L)},P=(O,L)=>{const B=L[1];D(O,L),Gn(O)?O.every(j=>j.length<=1)&&B():O.length<=1&&B()},M={mode:s,persisted:l,beforeEnter(O){let L=c;if(!n.isMounted)if(a)L=k||c;else return;O[gh]&&O[gh](!0);const B=T[_];B&&wd(e,B)&&B.el[gh]&&B.el[gh](),D(L,[O])},enter(O){let L=d,B=h,j=p;if(!n.isMounted)if(a)L=C||d,B=x||h,j=E||p;else return;let H=!1;const U=O[px]=K=>{H||(H=!0,K?D(j,[O]):D(B,[O]),M.delayedLeave&&M.delayedLeave(),O[px]=void 0)};L?P(L,[O,U]):U()},leave(O,L){const B=String(e.key);if(O[px]&&O[px](!0),n.isUnmounting)return L();D(v,[O]);let j=!1;const H=O[gh]=U=>{j||(j=!0,L(),U?D(S,[O]):D(y,[O]),O[gh]=void 0,T[B]===e&&delete T[B])};T[B]=e,g?P(g,[O,H]):H()},clone(O){const L=Ay(O,t,n,r,i);return i&&i(L),L}};return M}function fP(e){if(G_(e))return e=El(e),e.children=null,e}function ine(e){if(!G_(e))return Efe(e.type)&&e.children?Lfe(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ar(n.default))return n.default()}}function Uh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Uh(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function k5(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;an.value,set:a=>n.value=a})}return n}const P8=new WeakMap;function iy(e,t,n,r,i=!1){if(Gn(e)){e.forEach((y,S)=>iy(y,t&&(Gn(t)?t[S]:t),n,r,i));return}if(h0(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&iy(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?q_(r.component):r.el,s=i?null:a,{i:l,r:c}=e,d=t&&t.r,h=l.refs===Ti?l.refs={}:l.refs,p=l.setupState,v=Bi(p),g=p===Ti?Jv:y=>Ki(v,y);if(d!=null&&d!==c){if(one(t),Mr(d))h[d]=null,g(d)&&(p[d]=null);else if(Bo(d)){d.value=null;const y=t;y.k&&(h[y.k]=null)}}if(Ar(c))r3(c,l,12,[s,h]);else{const y=Mr(c),S=Bo(c);if(y||S){const k=()=>{if(e.f){const C=y?g(c)?p[c]:h[c]:c.value;if(i)Gn(C)&&c5(C,a);else if(Gn(C))C.includes(a)||C.push(a);else if(y)h[c]=[a],g(c)&&(p[c]=h[c]);else{const x=[a];c.value=x,e.k&&(h[e.k]=x)}}else y?(h[c]=s,g(c)&&(p[c]=s)):S&&(c.value=s,e.k&&(h[e.k]=s))};if(s){const C=()=>{k(),P8.delete(e)};C.id=-1,P8.set(e,C),ua(C,n)}else one(e),k()}}}function one(e){const t=P8.get(e);t&&(t.flags|=8,P8.delete(e))}let sne=!1;const c1=()=>{sne||(console.error("Hydration completed but contains mismatches."),sne=!0)},B5e=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",N5e=e=>e.namespaceURI.includes("MathML"),vx=e=>{if(e.nodeType===1){if(B5e(e))return"svg";if(N5e(e))return"mathml"}},W1=e=>e.nodeType===8;function F5e(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:d}}=e,h=(E,_)=>{if(!_.hasChildNodes()){n(null,E,_),D8(),_._vnode=E;return}p(_.firstChild,E,null,null,null),D8(),_._vnode=E},p=(E,_,T,D,P,M=!1)=>{M=M||!!_.dynamicChildren;const O=W1(E)&&E.data==="[",L=()=>S(E,_,T,D,P,O),{type:B,ref:j,shapeFlag:H,patchFlag:U}=_;let K=E.nodeType;_.el=E,U===-2&&(M=!1,_.dynamicChildren=null);let Y=null;switch(B){case p0:K!==3?_.children===""?(c(_.el=i(""),s(E),E),Y=E):Y=L():(E.data!==_.children&&(c1(),E.data=_.children),Y=a(E));break;case ks:x(E)?(Y=a(E),C(_.el=E.content.firstChild,E,T)):K!==8||O?Y=L():Y=a(E);break;case hm:if(O&&(E=a(E),K=E.nodeType),K===1||K===3){Y=E;const ie=!_.children.length;for(let te=0;te<_.staticCount;te++)ie&&(_.children+=Y.nodeType===1?Y.outerHTML:Y.data),te===_.staticCount-1&&(_.anchor=Y),Y=a(Y);return O?a(Y):Y}else L();break;case Pt:O?Y=y(E,_,T,D,P,M):Y=L();break;default:if(H&1)(K!==1||_.type.toLowerCase()!==E.tagName.toLowerCase())&&!x(E)?Y=L():Y=v(E,_,T,D,P,M);else if(H&6){_.slotScopeIds=P;const ie=s(E);if(O?Y=k(E):W1(E)&&E.data==="teleport start"?Y=k(E,E.data,"teleport end"):Y=a(E),t(_,ie,null,T,D,vx(ie),M),h0(_)&&!_.type.__asyncResolved){let te;O?(te=$(Pt),te.anchor=Y?Y.previousSibling:ie.lastChild):te=E.nodeType===3?He(""):$("div"),te.el=E,_.component.subTree=te}}else H&64?K!==8?Y=L():Y=_.type.hydrate(E,_,T,D,P,M,e,g):H&128&&(Y=_.type.hydrate(E,_,T,D,vx(s(E)),P,M,e,p))}return j!=null&&iy(j,null,D,_),Y},v=(E,_,T,D,P,M)=>{M=M||!!_.dynamicChildren;const{type:O,props:L,patchFlag:B,shapeFlag:j,dirs:H,transition:U}=_,K=O==="input"||O==="option";if(K||B!==-1){H&&of(_,null,T,"created");let Y=!1;if(x(E)){Y=the(null,U)&&T&&T.vnode.props&&T.vnode.props.appear;const te=E.content.firstChild;if(Y){const W=te.getAttribute("class");W&&(te.$cls=W),U.beforeEnter(te)}C(te,E,T),_.el=E=te}if(j&16&&!(L&&(L.innerHTML||L.textContent))){let te=g(E.firstChild,_,E,T,D,P,M);for(;te;){mx(E,1)||c1();const W=te;te=te.nextSibling,l(W)}}else if(j&8){let te=_.children;te[0]===` -`&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(te=te.slice(1)),E.textContent!==te&&(mx(E,0)||c1(),E.textContent=_.children)}if(L){if(K||!M||B&48){const te=E.tagName.includes("-");for(const W in L)(K&&(W.endsWith("value")||W==="indeterminate")||O0(W)&&!Ih(W)||W[0]==="."||te)&&r(E,W,null,L[W],void 0,T)}else if(L.onClick)r(E,"onClick",null,L.onClick,void 0,T);else if(B&4&&gf(L.style))for(const te in L.style)L.style[te]}let ie;(ie=L&&L.onVnodeBeforeMount)&&mu(ie,T,_),H&&of(_,null,T,"beforeMount"),((ie=L&&L.onVnodeMounted)||H||Y)&&che(()=>{ie&&mu(ie,T,_),Y&&U.enter(E),H&&of(_,null,T,"mounted")},D)}return E.nextSibling},g=(E,_,T,D,P,M,O)=>{O=O||!!_.dynamicChildren;const L=_.children,B=L.length;for(let j=0;j{const{slotScopeIds:O}=_;O&&(P=P?P.concat(O):O);const L=s(E),B=g(a(E),_,L,T,D,P,M);return B&&W1(B)&&B.data==="]"?a(_.anchor=B):(c1(),c(_.anchor=d("]"),L,B),B)},S=(E,_,T,D,P,M)=>{if(mx(E.parentElement,1)||c1(),_.el=null,M){const B=k(E);for(;;){const j=a(E);if(j&&j!==B)l(j);else break}}const O=a(E),L=s(E);return l(E),n(null,_,L,O,T,D,vx(L),P),T&&(T.vnode.el=_.el,w5(T,_.el)),O},k=(E,_="[",T="]")=>{let D=0;for(;E;)if(E=a(E),E&&W1(E)&&(E.data===_&&D++,E.data===T)){if(D===0)return a(E);D--}return E},C=(E,_,T)=>{const D=_.parentNode;D&&D.replaceChild(E,_);let P=T;for(;P;)P.vnode.el===_&&(P.vnode.el=P.subTree.el=E),P=P.parent},x=E=>E.nodeType===1&&E.tagName==="TEMPLATE";return[h,p]}const ane="data-allow-mismatch",j5e={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function mx(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ane);)e=e.parentElement;const n=e&&e.getAttribute(ane);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(j5e[t])}}const V5e=H_().requestIdleCallback||(e=>setTimeout(e,1)),z5e=H_().cancelIdleCallback||(e=>clearTimeout(e)),U5e=(e=1e4)=>t=>{const n=V5e(t,{timeout:e});return()=>z5e(n)};function H5e(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:s}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{const r=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(H5e(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},G5e=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},K5e=(e=[])=>(t,n)=>{Mr(e)&&(e=[e]);let r=!1;const i=s=>{r||(r=!0,a(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},a=()=>{n(s=>{for(const l of e)s.removeEventListener(l,i)})};return n(s=>{for(const l of e)s.addEventListener(l,i,{once:!0})}),a};function q5e(e,t){if(W1(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(W1(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const h0=e=>!!e.type.__asyncLoader;function Jm(e){Ar(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:s,suspensible:l=!0,onError:c}=e;let d=null,h,p=0;const v=()=>(p++,d=null,g()),g=()=>{let y;return d||(y=d=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((k,C)=>{c(S,()=>k(v()),()=>C(S),p+1)});throw S}).then(S=>y!==d&&d?d:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return we({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(y,S,k){let C=!1;(S.bu||(S.bu=[])).push(()=>C=!0);const x=()=>{C||k()},E=a?()=>{const _=a(x,T=>q5e(y,T));_&&(S.bum||(S.bum=[])).push(_)}:x;h?E():g().then(()=>!S.isUnmounted&&E())},get __asyncResolved(){return h},setup(){const y=Ga;if(UU(y),h)return()=>hP(h,y);const S=E=>{d=null,Xm(E,y,13,!r)};if(l&&y.suspense||Iy)return g().then(E=>()=>hP(E,y)).catch(E=>(S(E),()=>r?$(r,{error:E}):null));const k=ue(!1),C=ue(),x=ue(!!i);return i&&setTimeout(()=>{x.value=!1},i),s!=null&&setTimeout(()=>{if(!k.value&&!C.value){const E=new Error(`Async component timed out after ${s}ms.`);S(E),C.value=E}},s),g().then(()=>{k.value=!0,y.parent&&G_(y.parent.vnode)&&y.parent.update()}).catch(E=>{S(E),C.value=E}),()=>{if(k.value&&h)return hP(h,y);if(C.value&&r)return $(r,{error:C.value});if(n&&!x.value)return $(n)}}})}function hP(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,s=$(e,r,i);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const G_=e=>e.type.__isKeepAlive,Y5e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=So(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const i=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:d,um:h,o:{createElement:p}}}=r,v=p("div");r.activate=(x,E,_,T,D)=>{const P=x.component;d(x,E,_,0,l),c(P.vnode,x,E,_,P,l,T,x.slotScopeIds,D),ua(()=>{P.isDeactivated=!1,P.a&&cm(P.a);const M=x.props&&x.props.onVnodeMounted;M&&mu(M,P.parent,x)},l)},r.deactivate=x=>{const E=x.component;M8(E.m),M8(E.a),d(x,v,null,1,l),ua(()=>{E.da&&cm(E.da);const _=x.props&&x.props.onVnodeUnmounted;_&&mu(_,E.parent,x),E.isDeactivated=!0},l)};function g(x){pP(x),h(x,n,l,!0)}function y(x){i.forEach((E,_)=>{const T=Uj(E.type);T&&!x(T)&&S(_)})}function S(x){const E=i.get(x);E&&(!s||!wd(E,s))?g(E):s&&pP(s),i.delete(x),a.delete(x)}It(()=>[e.include,e.exclude],([x,E])=>{x&&y(_=>A4(x,_)),E&&y(_=>!A4(E,_))},{flush:"post",deep:!0});let k=null;const C=()=>{k!=null&&($8(n.subTree.type)?ua(()=>{i.set(k,gx(n.subTree))},n.subTree.suspense):i.set(k,gx(n.subTree)))};return hn(C),tl(C),_o(()=>{i.forEach(x=>{const{subTree:E,suspense:_}=n,T=gx(E);if(x.type===T.type&&x.key===T.key){pP(T);const D=T.component.da;D&&ua(D,_);return}g(x)})}),()=>{if(k=null,!t.default)return s=null;const x=t.default(),E=x[0];if(x.length>1)return s=null,x;if(!Wi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return s=null,E;let _=gx(E);if(_.type===ks)return s=null,_;const T=_.type,D=Uj(h0(_)?_.type.__asyncResolved||{}:T),{include:P,exclude:M,max:O}=e;if(P&&(!D||!A4(P,D))||M&&D&&A4(M,D))return _.shapeFlag&=-257,s=_,E;const L=_.key==null?T:_.key,B=i.get(L);return _.el&&(_=El(_),E.shapeFlag&128&&(E.ssContent=_)),k=L,B?(_.el=B.el,_.component=B.component,_.transition&&Uh(_,_.transition),_.shapeFlag|=512,a.delete(L),a.add(L)):(a.add(L),O&&a.size>parseInt(O,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,$8(E.type)?E:_}}},X5e=Y5e;function A4(e,t){return Gn(e)?e.some(n=>A4(n,t)):Mr(e)?e.split(",").includes(t):Vde(e)?(e.lastIndex=0,e.test(t)):!1}function HU(e,t){Rfe(e,"a",t)}function WU(e,t){Rfe(e,"da",t)}function Rfe(e,t,n=Ga){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(x5(t,r,n),n){let i=n.parent;for(;i&&i.parent;)G_(i.parent.vnode)&&Z5e(r,t,n,i),i=i.parent}}function Z5e(e,t,n,r){const i=x5(t,e,r,!0);ii(()=>{c5(r[t],i)},n)}function pP(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function gx(e){return e.shapeFlag&128?e.ssContent:e}function x5(e,t,n=Ga,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{jh();const l=Im(n),c=Zc(t,n,e,s);return l(),Vh(),c});return r?i.unshift(a):i.push(a),a}}const qh=e=>(t,n=Ga)=>{(!Iy||e==="sp")&&x5(e,(...r)=>t(...r),n)},Mfe=qh("bm"),hn=qh("m"),GU=qh("bu"),tl=qh("u"),_o=qh("bum"),ii=qh("um"),$fe=qh("sp"),Ofe=qh("rtg"),Bfe=qh("rtc");function Nfe(e,t=Ga){x5("ec",e,t)}const KU="components",J5e="directives";function Te(e,t){return qU(KU,e,!0,t)||e}const Ffe=Symbol.for("v-ndc");function wa(e){return Mr(e)?qU(KU,e,!1)||e:e||Ffe}function i3(e){return qU(J5e,e)}function qU(e,t,n=!0,r=!1){const i=qa||Ga;if(i){const a=i.type;if(e===KU){const l=Uj(a,!1);if(l&&(l===t||l===Oo(t)||l===N0(Oo(t))))return a}const s=lne(i[e]||a[e],t)||lne(i.appContext[e],t);return!s&&r?a:s}}function lne(e,t){return e&&(e[t]||e[Oo(t)]||e[N0(Oo(t))])}function cn(e,t,n,r){let i;const a=n&&n[r],s=Gn(e);if(s||Mr(e)){const l=s&&gf(e);let c=!1,d=!1;l&&(c=!lc(e),d=zh(e),e=m5(e)),i=new Array(e.length);for(let h=0,p=e.length;ht(l,c,void 0,a&&a[c]));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,d=l.length;c{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function mt(e,t,n={},r,i){if(qa.ce||qa.parent&&h0(qa.parent)&&qa.parent.ce){const d=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),Ze(Pt,null,[$("slot",n,r&&r())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),z();const s=a&&YU(a(n)),l=n.key||s&&s.key,c=Ze(Pt,{key:(l&&!Jl(l)?l:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),a&&a._c&&(a._d=!0),c}function YU(e){return e.some(t=>Wi(t)?!(t.type===ks||t.type===Pt&&!YU(t.children)):!0)?e:null}function Q5e(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:um(r)]=e[r];return n}const Rj=e=>e?vhe(e)?q_(e):Rj(e.parent):null,Z4=Ci(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Rj(e.parent),$root:e=>Rj(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>XU(e),$forceUpdate:e=>e.f||(e.f=()=>{jU(e.update)}),$nextTick:e=>e.n||(e.n=dn.bind(e.proxy)),$watch:e=>IAe.bind(e)}),vP=(e,t)=>e!==Ti&&!e.__isScriptSetup&&Ki(e,t),Mj={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(vP(r,t))return s[t]=1,r[t];if(i!==Ti&&Ki(i,t))return s[t]=2,i[t];if((d=e.propsOptions[0])&&Ki(d,t))return s[t]=3,a[t];if(n!==Ti&&Ki(n,t))return s[t]=4,n[t];$j&&(s[t]=0)}}const h=Z4[t];let p,v;if(h)return t==="$attrs"&&_l(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Ti&&Ki(n,t))return s[t]=4,n[t];if(v=c.config.globalProperties,Ki(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return vP(i,t)?(i[t]=n,!0):r!==Ti&&Ki(r,t)?(r[t]=n,!0):Ki(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a,type:s}},l){let c,d;return!!(n[l]||e!==Ti&&l[0]!=="$"&&Ki(e,l)||vP(t,l)||(c=a[0])&&Ki(c,l)||Ki(r,l)||Ki(Z4,l)||Ki(i.config.globalProperties,l)||(d=s.__cssModules)&&d[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ki(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},eAe=Ci({},Mj,{get(e,t){if(t!==Symbol.unscopables)return Mj.get(e,t,e)},has(e,t){return t[0]!=="_"&&!IU(t)}});function tAe(){return null}function nAe(){return null}function rAe(e){}function iAe(e){}function oAe(){return null}function sAe(){}function aAe(e,t){return null}function lAe(){return jfe().slots}function uAe(){return jfe().attrs}function jfe(e){const t=So();return t.setupContext||(t.setupContext=yhe(t))}function Qb(e){return Gn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function cAe(e,t){const n=Qb(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Gn(i)||Ar(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function dAe(e,t){return!e||!t?e||t:Gn(e)&&Gn(t)?e.concat(t):Ci({},Qb(e),Qb(t))}function fAe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function hAe(e){const t=So();let n=e();return jj(),d5(n)&&(n=n.catch(r=>{throw Im(t),r})),[n,()=>Im(t)]}let $j=!0;function pAe(e){const t=XU(e),n=e.proxy,r=e.ctx;$j=!1,t.beforeCreate&&une(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:v,beforeUpdate:g,updated:y,activated:S,deactivated:k,beforeDestroy:C,beforeUnmount:x,destroyed:E,unmounted:_,render:T,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:O,expose:L,inheritAttrs:B,components:j,directives:H,filters:U}=t;if(d&&vAe(d,r,null),s)for(const ie in s){const te=s[ie];Ar(te)&&(r[ie]=te.bind(n))}if(i){const ie=i.call(n,n);Xi(ie)&&(e.data=qt(ie))}if($j=!0,a)for(const ie in a){const te=a[ie],W=Ar(te)?te.bind(n,n):Ar(te.get)?te.get.bind(n,n):Ca,q=!Ar(te)&&Ar(te.set)?te.set.bind(n):Ca,Q=F({get:W,set:q});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>Q.value,set:se=>Q.value=se})}if(l)for(const ie in l)Vfe(l[ie],r,n,ie);if(c){const ie=Ar(c)?c.call(n):c;Reflect.ownKeys(ie).forEach(te=>{ri(te,ie[te])})}h&&une(h,e,"c");function Y(ie,te){Gn(te)?te.forEach(W=>ie(W.bind(n))):te&&ie(te.bind(n))}if(Y(Mfe,p),Y(hn,v),Y(GU,g),Y(tl,y),Y(HU,S),Y(WU,k),Y(Nfe,M),Y(Bfe,D),Y(Ofe,P),Y(_o,x),Y(ii,_),Y($fe,O),Gn(L))if(L.length){const ie=e.exposed||(e.exposed={});L.forEach(te=>{Object.defineProperty(ie,te,{get:()=>n[te],set:W=>n[te]=W,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===Ca&&(e.render=T),B!=null&&(e.inheritAttrs=B),j&&(e.components=j),H&&(e.directives=H),O&&UU(e)}function vAe(e,t,n=Ca){Gn(e)&&(e=Oj(e));for(const r in e){const i=e[r];let a;Xi(i)?"default"in i?a=Pn(i.from||r,i.default,!0):a=Pn(i.from||r):a=Pn(i),Bo(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function une(e,t,n){Zc(Gn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vfe(e,t,n,r){let i=r.includes(".")?she(n,r):()=>n[r];if(Mr(e)){const a=t[e];Ar(a)&&It(i,a)}else if(Ar(e))It(i,e.bind(n));else if(Xi(e))if(Gn(e))e.forEach(a=>Vfe(a,t,n,r));else{const a=Ar(e.handler)?e.handler.bind(n):t[e.handler];Ar(a)&&It(i,a,e)}}function XU(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let c;return l?c=l:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(d=>R8(c,d,s,!0)),R8(c,t,s)),Xi(t)&&a.set(t,c),c}function R8(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&R8(e,a,n,!0),i&&i.forEach(s=>R8(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=mAe[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const mAe={data:cne,props:dne,emits:dne,methods:I4,computed:I4,beforeCreate:Fl,created:Fl,beforeMount:Fl,mounted:Fl,beforeUpdate:Fl,updated:Fl,beforeDestroy:Fl,beforeUnmount:Fl,destroyed:Fl,unmounted:Fl,activated:Fl,deactivated:Fl,errorCaptured:Fl,serverPrefetch:Fl,components:I4,directives:I4,watch:yAe,provide:cne,inject:gAe};function cne(e,t){return t?e?function(){return Ci(Ar(e)?e.call(this,this):e,Ar(t)?t.call(this,this):t)}:t:e}function gAe(e,t){return I4(Oj(e),Oj(t))}function Oj(e){if(Gn(e)){const t={};for(let n=0;n1)return n&&Ar(t)?t.call(r&&r.proxy):t}}function Ufe(){return!!(So()||fm)}const Hfe={},Wfe=()=>Object.create(Hfe),Gfe=e=>Object.getPrototypeOf(e)===Hfe;function SAe(e,t,n,r=!1){const i={},a=Wfe();e.propsDefaults=Object.create(null),Kfe(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:NU(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function kAe(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,l=Bi(i),[c]=e.propsOptions;let d=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[v,g]=qfe(p,t,!0);Ci(s,v),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!a&&!c)return Xi(e)&&r.set(e,am),am;if(Gn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",JU=e=>Gn(e)?e.map(yu):[yu(e)],CAe=(e,t,n)=>{if(t._n)return t;const r=fe((...i)=>JU(t(...i)),n);return r._c=!1,r},Yfe=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ZU(i))continue;const a=e[i];if(Ar(a))t[i]=CAe(i,a,r);else if(a!=null){const s=JU(a);t[i]=()=>s}}},Xfe=(e,t)=>{const n=JU(t);e.slots.default=()=>n},Zfe=(e,t,n)=>{for(const r in t)(n||!ZU(r))&&(e[r]=t[r])},wAe=(e,t,n)=>{const r=e.slots=Wfe();if(e.vnode.shapeFlag&32){const i=t._;i?(Zfe(r,t,n),n&&AU(r,"_",i,!0)):Yfe(t,r)}else t&&Xfe(e,t)},EAe=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=Ti;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Zfe(i,t,n):(a=!t.$stable,Yfe(t,i)),s=t}else t&&(Xfe(e,t),s={default:1});if(a)for(const l in i)!ZU(l)&&s[l]==null&&delete i[l]},ua=che;function Jfe(e){return ehe(e)}function Qfe(e){return ehe(e,F5e)}function ehe(e,t){const n=H_();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:s,createText:l,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:v,setScopeId:g=Ca,insertStaticContent:y}=e,S=(ve,me,Oe,qe=null,Ke=null,at=null,ft=void 0,ct=null,wt=!!me.dynamicChildren)=>{if(ve===me)return;ve&&!wd(ve,me)&&(qe=ge(ve),se(ve,Ke,at,!0),ve=null),me.patchFlag===-2&&(wt=!1,me.dynamicChildren=null);const{type:Ct,ref:Rt,shapeFlag:Ht}=me;switch(Ct){case p0:k(ve,me,Oe,qe);break;case ks:C(ve,me,Oe,qe);break;case hm:ve==null&&x(me,Oe,qe,ft);break;case Pt:j(ve,me,Oe,qe,Ke,at,ft,ct,wt);break;default:Ht&1?T(ve,me,Oe,qe,Ke,at,ft,ct,wt):Ht&6?H(ve,me,Oe,qe,Ke,at,ft,ct,wt):(Ht&64||Ht&128)&&Ct.process(ve,me,Oe,qe,Ke,at,ft,ct,wt,tt)}Rt!=null&&Ke?iy(Rt,ve&&ve.ref,at,me||ve,!me):Rt==null&&ve&&ve.ref!=null&&iy(ve.ref,null,at,ve,!0)},k=(ve,me,Oe,qe)=>{if(ve==null)r(me.el=l(me.children),Oe,qe);else{const Ke=me.el=ve.el;me.children!==ve.children&&d(Ke,me.children)}},C=(ve,me,Oe,qe)=>{ve==null?r(me.el=c(me.children||""),Oe,qe):me.el=ve.el},x=(ve,me,Oe,qe)=>{[ve.el,ve.anchor]=y(ve.children,me,Oe,qe,ve.el,ve.anchor)},E=({el:ve,anchor:me},Oe,qe)=>{let Ke;for(;ve&&ve!==me;)Ke=v(ve),r(ve,Oe,qe),ve=Ke;r(me,Oe,qe)},_=({el:ve,anchor:me})=>{let Oe;for(;ve&&ve!==me;)Oe=v(ve),i(ve),ve=Oe;i(me)},T=(ve,me,Oe,qe,Ke,at,ft,ct,wt)=>{me.type==="svg"?ft="svg":me.type==="math"&&(ft="mathml"),ve==null?D(me,Oe,qe,Ke,at,ft,ct,wt):O(ve,me,Ke,at,ft,ct,wt)},D=(ve,me,Oe,qe,Ke,at,ft,ct)=>{let wt,Ct;const{props:Rt,shapeFlag:Ht,transition:Jt,dirs:rn}=ve;if(wt=ve.el=s(ve.type,at,Rt&&Rt.is,Rt),Ht&8?h(wt,ve.children):Ht&16&&M(ve.children,wt,null,qe,Ke,mP(ve,at),ft,ct),rn&&of(ve,null,qe,"created"),P(wt,ve,ve.scopeId,ft,qe),Rt){for(const Fe in Rt)Fe!=="value"&&!Ih(Fe)&&a(wt,Fe,null,Rt[Fe],at,qe);"value"in Rt&&a(wt,"value",null,Rt.value,at),(Ct=Rt.onVnodeBeforeMount)&&mu(Ct,qe,ve)}rn&&of(ve,null,qe,"beforeMount");const vt=the(Ke,Jt);vt&&Jt.beforeEnter(wt),r(wt,me,Oe),((Ct=Rt&&Rt.onVnodeMounted)||vt||rn)&&ua(()=>{Ct&&mu(Ct,qe,ve),vt&&Jt.enter(wt),rn&&of(ve,null,qe,"mounted")},Ke)},P=(ve,me,Oe,qe,Ke)=>{if(Oe&&g(ve,Oe),qe)for(let at=0;at{for(let Ct=wt;Ct{const ct=me.el=ve.el;let{patchFlag:wt,dynamicChildren:Ct,dirs:Rt}=me;wt|=ve.patchFlag&16;const Ht=ve.props||Ti,Jt=me.props||Ti;let rn;if(Oe&&vv(Oe,!1),(rn=Jt.onVnodeBeforeUpdate)&&mu(rn,Oe,me,ve),Rt&&of(me,ve,Oe,"beforeUpdate"),Oe&&vv(Oe,!0),(Ht.innerHTML&&Jt.innerHTML==null||Ht.textContent&&Jt.textContent==null)&&h(ct,""),Ct?L(ve.dynamicChildren,Ct,ct,Oe,qe,mP(me,Ke),at):ft||te(ve,me,ct,null,Oe,qe,mP(me,Ke),at,!1),wt>0){if(wt&16)B(ct,Ht,Jt,Oe,Ke);else if(wt&2&&Ht.class!==Jt.class&&a(ct,"class",null,Jt.class,Ke),wt&4&&a(ct,"style",Ht.style,Jt.style,Ke),wt&8){const vt=me.dynamicProps;for(let Fe=0;Fe{rn&&mu(rn,Oe,me,ve),Rt&&of(me,ve,Oe,"updated")},qe)},L=(ve,me,Oe,qe,Ke,at,ft)=>{for(let ct=0;ct{if(me!==Oe){if(me!==Ti)for(const at in me)!Ih(at)&&!(at in Oe)&&a(ve,at,me[at],null,Ke,qe);for(const at in Oe){if(Ih(at))continue;const ft=Oe[at],ct=me[at];ft!==ct&&at!=="value"&&a(ve,at,ct,ft,Ke,qe)}"value"in Oe&&a(ve,"value",me.value,Oe.value,Ke)}},j=(ve,me,Oe,qe,Ke,at,ft,ct,wt)=>{const Ct=me.el=ve?ve.el:l(""),Rt=me.anchor=ve?ve.anchor:l("");let{patchFlag:Ht,dynamicChildren:Jt,slotScopeIds:rn}=me;rn&&(ct=ct?ct.concat(rn):rn),ve==null?(r(Ct,Oe,qe),r(Rt,Oe,qe),M(me.children||[],Oe,Rt,Ke,at,ft,ct,wt)):Ht>0&&Ht&64&&Jt&&ve.dynamicChildren?(L(ve.dynamicChildren,Jt,Oe,Ke,at,ft,ct),(me.key!=null||Ke&&me===Ke.subTree)&&QU(ve,me,!0)):te(ve,me,Oe,Rt,Ke,at,ft,ct,wt)},H=(ve,me,Oe,qe,Ke,at,ft,ct,wt)=>{me.slotScopeIds=ct,ve==null?me.shapeFlag&512?Ke.ctx.activate(me,Oe,qe,ft,wt):U(me,Oe,qe,Ke,at,ft,wt):K(ve,me,wt)},U=(ve,me,Oe,qe,Ke,at,ft)=>{const ct=ve.component=phe(ve,qe,Ke);if(G_(ve)&&(ct.ctx.renderer=tt),mhe(ct,!1,ft),ct.asyncDep){if(Ke&&Ke.registerDep(ct,Y,ft),!ve.el){const wt=ct.subTree=$(ks);C(null,wt,me,Oe),ve.placeholder=wt.el}}else Y(ct,ve,me,Oe,Ke,at,ft)},K=(ve,me,Oe)=>{const qe=me.component=ve.component;if(OAe(ve,me,Oe))if(qe.asyncDep&&!qe.asyncResolved){ie(qe,me,Oe);return}else qe.next=me,qe.update();else me.el=ve.el,qe.vnode=me},Y=(ve,me,Oe,qe,Ke,at,ft)=>{const ct=()=>{if(ve.isMounted){let{next:Ht,bu:Jt,u:rn,parent:vt,vnode:Fe}=ve;{const dt=nhe(ve);if(dt){Ht&&(Ht.el=Fe.el,ie(ve,Ht,ft)),dt.asyncDep.then(()=>{ve.isUnmounted||ct()});return}}let Me=Ht,Ee;vv(ve,!1),Ht?(Ht.el=Fe.el,ie(ve,Ht,ft)):Ht=Fe,Jt&&cm(Jt),(Ee=Ht.props&&Ht.props.onVnodeBeforeUpdate)&&mu(Ee,vt,Ht,Fe),vv(ve,!0);const We=JC(ve),$e=ve.subTree;ve.subTree=We,S($e,We,p($e.el),ge($e),ve,Ke,at),Ht.el=We.el,Me===null&&w5(ve,We.el),rn&&ua(rn,Ke),(Ee=Ht.props&&Ht.props.onVnodeUpdated)&&ua(()=>mu(Ee,vt,Ht,Fe),Ke)}else{let Ht;const{el:Jt,props:rn}=me,{bm:vt,m:Fe,parent:Me,root:Ee,type:We}=ve,$e=h0(me);if(vv(ve,!1),vt&&cm(vt),!$e&&(Ht=rn&&rn.onVnodeBeforeMount)&&mu(Ht,Me,me),vv(ve,!0),Jt&&_e){const dt=()=>{ve.subTree=JC(ve),_e(Jt,ve.subTree,ve,Ke,null)};$e&&We.__asyncHydrate?We.__asyncHydrate(Jt,ve,dt):dt()}else{Ee.ce&&Ee.ce._def.shadowRoot!==!1&&Ee.ce._injectChildStyle(We);const dt=ve.subTree=JC(ve);S(null,dt,Oe,qe,ve,Ke,at),me.el=dt.el}if(Fe&&ua(Fe,Ke),!$e&&(Ht=rn&&rn.onVnodeMounted)){const dt=me;ua(()=>mu(Ht,Me,dt),Ke)}(me.shapeFlag&256||Me&&h0(Me.vnode)&&Me.vnode.shapeFlag&256)&&ve.a&&ua(ve.a,Ke),ve.isMounted=!0,me=Oe=qe=null}};ve.scope.on();const wt=ve.effect=new Gb(ct);ve.scope.off();const Ct=ve.update=wt.run.bind(wt),Rt=ve.job=wt.runIfDirty.bind(wt);Rt.i=ve,Rt.id=ve.uid,wt.scheduler=()=>jU(Rt),vv(ve,!0),Ct()},ie=(ve,me,Oe)=>{me.component=ve;const qe=ve.vnode.props;ve.vnode=me,ve.next=null,kAe(ve,me.props,qe,Oe),EAe(ve,me.children,Oe),jh(),ene(ve),Vh()},te=(ve,me,Oe,qe,Ke,at,ft,ct,wt=!1)=>{const Ct=ve&&ve.children,Rt=ve?ve.shapeFlag:0,Ht=me.children,{patchFlag:Jt,shapeFlag:rn}=me;if(Jt>0){if(Jt&128){q(Ct,Ht,Oe,qe,Ke,at,ft,ct,wt);return}else if(Jt&256){W(Ct,Ht,Oe,qe,Ke,at,ft,ct,wt);return}}rn&8?(Rt&16&&Ve(Ct,Ke,at),Ht!==Ct&&h(Oe,Ht)):Rt&16?rn&16?q(Ct,Ht,Oe,qe,Ke,at,ft,ct,wt):Ve(Ct,Ke,at,!0):(Rt&8&&h(Oe,""),rn&16&&M(Ht,Oe,qe,Ke,at,ft,ct,wt))},W=(ve,me,Oe,qe,Ke,at,ft,ct,wt)=>{ve=ve||am,me=me||am;const Ct=ve.length,Rt=me.length,Ht=Math.min(Ct,Rt);let Jt;for(Jt=0;JtRt?Ve(ve,Ke,at,!0,!1,Ht):M(me,Oe,qe,Ke,at,ft,ct,wt,Ht)},q=(ve,me,Oe,qe,Ke,at,ft,ct,wt)=>{let Ct=0;const Rt=me.length;let Ht=ve.length-1,Jt=Rt-1;for(;Ct<=Ht&&Ct<=Jt;){const rn=ve[Ct],vt=me[Ct]=wt?Yp(me[Ct]):yu(me[Ct]);if(wd(rn,vt))S(rn,vt,Oe,null,Ke,at,ft,ct,wt);else break;Ct++}for(;Ct<=Ht&&Ct<=Jt;){const rn=ve[Ht],vt=me[Jt]=wt?Yp(me[Jt]):yu(me[Jt]);if(wd(rn,vt))S(rn,vt,Oe,null,Ke,at,ft,ct,wt);else break;Ht--,Jt--}if(Ct>Ht){if(Ct<=Jt){const rn=Jt+1,vt=rnJt)for(;Ct<=Ht;)se(ve[Ct],Ke,at,!0),Ct++;else{const rn=Ct,vt=Ct,Fe=new Map;for(Ct=vt;Ct<=Jt;Ct++){const ht=me[Ct]=wt?Yp(me[Ct]):yu(me[Ct]);ht.key!=null&&Fe.set(ht.key,Ct)}let Me,Ee=0;const We=Jt-vt+1;let $e=!1,dt=0;const Qe=new Array(We);for(Ct=0;Ct=We){se(ht,Ke,at,!0);continue}let Vt;if(ht.key!=null)Vt=Fe.get(ht.key);else for(Me=vt;Me<=Jt;Me++)if(Qe[Me-vt]===0&&wd(ht,me[Me])){Vt=Me;break}Vt===void 0?se(ht,Ke,at,!0):(Qe[Vt-vt]=Ct+1,Vt>=dt?dt=Vt:$e=!0,S(ht,me[Vt],Oe,null,Ke,at,ft,ct,wt),Ee++)}const Le=$e?TAe(Qe):am;for(Me=Le.length-1,Ct=We-1;Ct>=0;Ct--){const ht=vt+Ct,Vt=me[ht],Ut=me[ht+1],Lt=ht+1{const{el:at,type:ft,transition:ct,children:wt,shapeFlag:Ct}=ve;if(Ct&6){Q(ve.component.subTree,me,Oe,qe);return}if(Ct&128){ve.suspense.move(me,Oe,qe);return}if(Ct&64){ft.move(ve,me,Oe,tt);return}if(ft===Pt){r(at,me,Oe);for(let Ht=0;Htct.enter(at),Ke);else{const{leave:Ht,delayLeave:Jt,afterLeave:rn}=ct,vt=()=>{ve.ctx.isUnmounted?i(at):r(at,me,Oe)},Fe=()=>{at._isLeaving&&at[gh](!0),Ht(at,()=>{vt(),rn&&rn()})};Jt?Jt(at,vt,Fe):Fe()}else r(at,me,Oe)},se=(ve,me,Oe,qe=!1,Ke=!1)=>{const{type:at,props:ft,ref:ct,children:wt,dynamicChildren:Ct,shapeFlag:Rt,patchFlag:Ht,dirs:Jt,cacheIndex:rn}=ve;if(Ht===-2&&(Ke=!1),ct!=null&&(jh(),iy(ct,null,Oe,ve,!0),Vh()),rn!=null&&(me.renderCache[rn]=void 0),Rt&256){me.ctx.deactivate(ve);return}const vt=Rt&1&&Jt,Fe=!h0(ve);let Me;if(Fe&&(Me=ft&&ft.onVnodeBeforeUnmount)&&mu(Me,me,ve),Rt&6)Ce(ve.component,Oe,qe);else{if(Rt&128){ve.suspense.unmount(Oe,qe);return}vt&&of(ve,null,me,"beforeUnmount"),Rt&64?ve.type.remove(ve,me,Oe,tt,qe):Ct&&!Ct.hasOnce&&(at!==Pt||Ht>0&&Ht&64)?Ve(Ct,me,Oe,!1,!0):(at===Pt&&Ht&384||!Ke&&Rt&16)&&Ve(wt,me,Oe),qe&&ae(ve)}(Fe&&(Me=ft&&ft.onVnodeUnmounted)||vt)&&ua(()=>{Me&&mu(Me,me,ve),vt&&of(ve,null,me,"unmounted")},Oe)},ae=ve=>{const{type:me,el:Oe,anchor:qe,transition:Ke}=ve;if(me===Pt){re(Oe,qe);return}if(me===hm){_(ve);return}const at=()=>{i(Oe),Ke&&!Ke.persisted&&Ke.afterLeave&&Ke.afterLeave()};if(ve.shapeFlag&1&&Ke&&!Ke.persisted){const{leave:ft,delayLeave:ct}=Ke,wt=()=>ft(Oe,at);ct?ct(ve.el,at,wt):wt()}else at()},re=(ve,me)=>{let Oe;for(;ve!==me;)Oe=v(ve),i(ve),ve=Oe;i(me)},Ce=(ve,me,Oe)=>{const{bum:qe,scope:Ke,job:at,subTree:ft,um:ct,m:wt,a:Ct}=ve;M8(wt),M8(Ct),qe&&cm(qe),Ke.stop(),at&&(at.flags|=8,se(ft,ve,me,Oe)),ct&&ua(ct,me),ua(()=>{ve.isUnmounted=!0},me)},Ve=(ve,me,Oe,qe=!1,Ke=!1,at=0)=>{for(let ft=at;ft{if(ve.shapeFlag&6)return ge(ve.component.subTree);if(ve.shapeFlag&128)return ve.suspense.next();const me=v(ve.anchor||ve.el),Oe=me&&me[wfe];return Oe?v(Oe):me};let xe=!1;const Ge=(ve,me,Oe)=>{ve==null?me._vnode&&se(me._vnode,null,null,!0):S(me._vnode||null,ve,me,null,null,null,Oe),me._vnode=ve,xe||(xe=!0,ene(),D8(),xe=!1)},tt={p:S,um:se,m:Q,r:ae,mt:U,mc:M,pc:te,pbc:L,n:ge,o:e};let Ue,_e;return t&&([Ue,_e]=t(tt)),{render:Ge,hydrate:Ue,createApp:_Ae(Ge,Ue)}}function mP({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function vv({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function the(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function QU(e,t,n=!1){const r=e.children,i=t.children;if(Gn(r)&&Gn(i))for(let a=0;a>1,e[n[l]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function nhe(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nhe(t)}function M8(e){if(e)for(let t=0;tPn(rhe);function Os(e,t){return K_(e,null,t)}function AAe(e,t){return K_(e,null,{flush:"post"})}function ohe(e,t){return K_(e,null,{flush:"sync"})}function It(e,t,n){return K_(e,t,n)}function K_(e,t,n=Ti){const{immediate:r,deep:i,flush:a,once:s}=n,l=Ci({},n),c=t&&r||!t&&a!=="post";let d;if(Iy){if(a==="sync"){const g=ihe();d=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=Ca,g.resume=Ca,g.pause=Ca,g}}const h=Ga;l.call=(g,y,S)=>Zc(g,h,y,S);let p=!1;a==="post"?l.scheduler=g=>{ua(g,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(g,y)=>{y?g():jU(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,h&&(g.id=h.uid,g.i=h))};const v=k5e(e,t,l);return Iy&&(d?d.push(v):c&&v()),v}function IAe(e,t,n){const r=this.proxy,i=Mr(e)?e.includes(".")?she(r,e):()=>r[e]:e.bind(r,r);let a;Ar(t)?a=t:(a=t.handler,n=t);const s=Im(this),l=K_(i,a.bind(r),n);return s(),l}function she(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{let h,p=Ti,v;return ohe(()=>{const g=e[i];bl(h,g)&&(h=g,d())}),{get(){return c(),n.get?n.get(h):h},set(g){const y=n.set?n.set(g):g;if(!bl(y,h)&&!(p!==Ti&&bl(g,p)))return;const S=r.vnode.props;S&&(t in S||i in S||a in S)&&(`onUpdate:${t}`in S||`onUpdate:${i}`in S||`onUpdate:${a}`in S)||(h=g,d()),r.emit(`update:${t}`,y),bl(g,y)&&bl(g,p)&&!bl(y,v)&&d(),p=g,v=y}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||Ti:l,done:!1}:{done:!0}}}},l}const ahe=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oo(t)}Modifiers`]||e[`${Sl(t)}Modifiers`];function DAe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ti;let i=n;const a=t.startsWith("update:"),s=a&&ahe(r,t.slice(7));s&&(s.trim&&(i=n.map(h=>Mr(h)?h.trim():h)),s.number&&(i=n.map(Hb)));let l,c=r[l=um(t)]||r[l=um(Oo(t))];!c&&a&&(c=r[l=um(Sl(t))]),c&&Zc(c,e,6,i);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Zc(d,e,6,i)}}const PAe=new WeakMap;function lhe(e,t,n=!1){const r=n?PAe:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let s={},l=!1;if(!Ar(e)){const c=d=>{const h=lhe(d,t,!0);h&&(l=!0,Ci(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Xi(e)&&r.set(e,null),null):(Gn(a)?a.forEach(c=>s[c]=null):Ci(s,a),Xi(e)&&r.set(e,s),s)}function C5(e,t){return!e||!O0(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ki(e,t[0].toLowerCase()+t.slice(1))||Ki(e,Sl(t))||Ki(e,t))}function JC(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:l,emit:c,render:d,renderCache:h,props:p,data:v,setupState:g,ctx:y,inheritAttrs:S}=e,k=Jb(e);let C,x;try{if(n.shapeFlag&4){const _=i||r,T=_;C=yu(d.call(T,_,h,p,g,v,y)),x=l}else{const _=t;C=yu(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),x=t.props?l:MAe(l)}}catch(_){J4.length=0,Xm(_,e,1),C=$(ks)}let E=C;if(x&&S!==!1){const _=Object.keys(x),{shapeFlag:T}=E;_.length&&T&7&&(a&&_.some(u5)&&(x=$Ae(x,a)),E=El(E,x,!1,!0))}return n.dirs&&(E=El(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Uh(E,n.transition),C=E,Jb(k),C}function RAe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||O0(n))&&((t||(t={}))[n]=e[n]);return t},$Ae=(e,t)=>{const n={};for(const r in e)(!u5(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function OAe(e,t,n){const{props:r,children:i,component:a}=e,{props:s,children:l,patchFlag:c}=t,d=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?hne(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let Nj=0;const BAe={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,s,l,c,d){if(e==null)FAe(t,n,r,i,a,s,l,c,d);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}jAe(e,t,n,r,i,s,l,c,d)}},hydrate:VAe,normalize:zAe},NAe=BAe;function e_(e,t){const n=e.props&&e.props[t];Ar(n)&&n()}function FAe(e,t,n,r,i,a,s,l,c){const{p:d,o:{createElement:h}}=c,p=h("div"),v=e.suspense=uhe(e,i,r,t,p,n,a,s,l,c);d(null,v.pendingBranch=e.ssContent,p,null,r,v,a,s),v.deps>0?(e_(e,"onPending"),e_(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,a,s),oy(v,e.ssFallback)):v.resolve(!1,!0)}function jAe(e,t,n,r,i,a,s,l,{p:c,um:d,o:{createElement:h}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const v=t.ssContent,g=t.ssFallback,{activeBranch:y,pendingBranch:S,isInFallback:k,isHydrating:C}=p;if(S)p.pendingBranch=v,wd(S,v)?(c(S,v,p.hiddenContainer,null,i,p,a,s,l),p.deps<=0?p.resolve():k&&(C||(c(y,g,n,r,i,null,a,s,l),oy(p,g)))):(p.pendingId=Nj++,C?(p.isHydrating=!1,p.activeBranch=S):d(S,i,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),k?(c(null,v,p.hiddenContainer,null,i,p,a,s,l),p.deps<=0?p.resolve():(c(y,g,n,r,i,null,a,s,l),oy(p,g))):y&&wd(y,v)?(c(y,v,n,r,i,p,a,s,l),p.resolve(!0)):(c(null,v,p.hiddenContainer,null,i,p,a,s,l),p.deps<=0&&p.resolve()));else if(y&&wd(y,v))c(y,v,n,r,i,p,a,s,l),oy(p,v);else if(e_(t,"onPending"),p.pendingBranch=v,v.shapeFlag&512?p.pendingId=v.component.suspenseId:p.pendingId=Nj++,c(null,v,p.hiddenContainer,null,i,p,a,s,l),p.deps<=0)p.resolve();else{const{timeout:x,pendingId:E}=p;x>0?setTimeout(()=>{p.pendingId===E&&p.fallback(g)},x):x===0&&p.fallback(g)}}function uhe(e,t,n,r,i,a,s,l,c,d,h=!1){const{p,m:v,um:g,n:y,o:{parentNode:S,remove:k}}=d;let C;const x=UAe(e);x&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const E=e.props?Wb(e.props.timeout):void 0,_=a,T={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:Nj++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(D=!1,P=!1){const{vnode:M,activeBranch:O,pendingBranch:L,pendingId:B,effects:j,parentComponent:H,container:U}=T;let K=!1;T.isHydrating?T.isHydrating=!1:D||(K=O&&L.transition&&L.transition.mode==="out-in",K&&(O.transition.afterLeave=()=>{B===T.pendingId&&(v(L,U,a===_?y(O):a,0),Xb(j))}),O&&(S(O.el)===U&&(a=y(O)),g(O,H,T,!0)),K||v(L,U,a,0)),oy(T,L),T.pendingBranch=null,T.isInFallback=!1;let Y=T.parent,ie=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...j),ie=!0;break}Y=Y.parent}!ie&&!K&&Xb(j),T.effects=[],x&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),e_(M,"onResolve")},fallback(D){if(!T.pendingBranch)return;const{vnode:P,activeBranch:M,parentComponent:O,container:L,namespace:B}=T;e_(P,"onFallback");const j=y(M),H=()=>{T.isInFallback&&(p(null,D,L,j,O,null,B,l,c),oy(T,D))},U=D.transition&&D.transition.mode==="out-in";U&&(M.transition.afterLeave=H),T.isInFallback=!0,g(M,O,null,!0),U||H()},move(D,P,M){T.activeBranch&&v(T.activeBranch,D,P,M),T.container=D},next(){return T.activeBranch&&y(T.activeBranch)},registerDep(D,P,M){const O=!!T.pendingBranch;O&&T.deps++;const L=D.vnode.el;D.asyncDep.catch(B=>{Xm(B,D,0)}).then(B=>{if(D.isUnmounted||T.isUnmounted||T.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:j}=D;Vj(D,B,!1),L&&(j.el=L);const H=!L&&D.subTree.el;P(D,j,S(L||D.subTree.el),L?null:y(D.subTree),T,s,M),H&&k(H),w5(D,j.el),O&&--T.deps===0&&T.resolve()})},unmount(D,P){T.isUnmounted=!0,T.activeBranch&&g(T.activeBranch,n,D,P),T.pendingBranch&&g(T.pendingBranch,n,D,P)}};return T}function VAe(e,t,n,r,i,a,s,l,c){const d=t.suspense=uhe(t,r,n,e.parentNode,document.createElement("div"),null,i,a,s,l,!0),h=c(e,d.pendingBranch=t.ssContent,n,d,a,s);return d.deps===0&&d.resolve(!1,!0),h}function zAe(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=pne(r?n.default:n),e.ssFallback=r?pne(n.fallback):$(ks)}function pne(e){let t;if(Ar(e)){const n=Am&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=Cl,dhe())}return Gn(e)&&(e=RAe(e)),e=yu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function che(e,t){t&&t.pendingBranch?Gn(e)?t.effects.push(...e):t.effects.push(e):Xb(e)}function oy(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,w5(r,i))}function UAe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Pt=Symbol.for("v-fgt"),p0=Symbol.for("v-txt"),ks=Symbol.for("v-cmt"),hm=Symbol.for("v-stc"),J4=[];let Cl=null;function z(e=!1){J4.push(Cl=e?null:[])}function dhe(){J4.pop(),Cl=J4[J4.length-1]||null}let Am=1;function t_(e,t=!1){Am+=e,e<0&&Cl&&t&&(Cl.hasOnce=!0)}function fhe(e){return e.dynamicChildren=Am>0?Cl||am:null,dhe(),Am>0&&Cl&&Cl.push(e),e}function X(e,t,n,r,i,a){return fhe(I(e,t,n,r,i,a,!0))}function Ze(e,t,n,r,i){return fhe($(e,t,n,r,i,!0))}function Wi(e){return e?e.__v_isVNode===!0:!1}function wd(e,t){return e.type===t.type&&e.key===t.key}function HAe(e){}const hhe=({key:e})=>e??null,QC=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Mr(e)||Bo(e)||Ar(e)?{i:qa,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,i=null,a=e===Pt?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hhe(t),ref:t&&QC(t),scopeId:S5,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:qa};return l?(eH(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Mr(n)?8:16),Am>0&&!s&&Cl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Cl.push(c),c}const $=WAe;function WAe(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Ffe)&&(e=ks),Wi(e)){const l=El(e,t,!0);return n&&eH(l,n),Am>0&&!a&&Cl&&(l.shapeFlag&6?Cl[Cl.indexOf(e)]=l:Cl.push(l)),l.patchFlag=-2,l}if(JAe(e)&&(e=e.__vccOpts),t){t=xa(t);let{class:l,style:c}=t;l&&!Mr(l)&&(t.class=de(l)),Xi(c)&&(b5(c)&&!Gn(c)&&(c=Ci({},c)),t.style=Ye(c))}const s=Mr(e)?1:$8(e)?128:Efe(e)?64:Xi(e)?4:Ar(e)?2:0;return I(e,t,n,r,i,s,a,!0)}function xa(e){return e?b5(e)||Gfe(e)?Ci({},e):e:null}function El(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:l,transition:c}=e,d=t?Ft(i||{},t):i,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&hhe(d),ref:t&&t.ref?n&&a?Gn(a)?a.concat(QC(t)):[a,QC(t)]:QC(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&El(e.ssContent),ssFallback:e.ssFallback&&El(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Uh(h,c.clone(h)),h}function He(e=" ",t=0){return $(p0,null,e,t)}function xh(e,t){const n=$(hm,null,e);return n.staticCount=t,n}function Ie(e="",t=!1){return t?(z(),Ze(ks,null,e)):$(ks,null,e)}function yu(e){return e==null||typeof e=="boolean"?$(ks):Gn(e)?$(Pt,null,e.slice()):Wi(e)?Yp(e):$(p0,null,String(e))}function Yp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:El(e)}function eH(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Gn(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),eH(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Gfe(t)?t._ctx=qa:i===3&&qa&&(qa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ar(t)?(t={default:t,_ctx:qa},n=32):(t=String(t),r&64?(n=16,t=[He(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ft(...e){const t={};for(let n=0;nGa||qa;let O8,Fj;{const e=H_(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};O8=t("__VUE_INSTANCE_SETTERS__",n=>Ga=n),Fj=t("__VUE_SSR_SETTERS__",n=>Iy=n)}const Im=e=>{const t=Ga;return O8(e),e.scope.on(),()=>{e.scope.off(),O8(t)}},jj=()=>{Ga&&Ga.scope.off(),O8(null)};function vhe(e){return e.vnode.shapeFlag&4}let Iy=!1;function mhe(e,t=!1,n=!1){t&&Fj(t);const{props:r,children:i}=e.vnode,a=vhe(e);SAe(e,r,a,t),wAe(e,i,n||t);const s=a?qAe(e,t):void 0;return t&&Fj(!1),s}function qAe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Mj);const{setup:r}=n;if(r){jh();const i=e.setupContext=r.length>1?yhe(e):null,a=Im(e),s=r3(r,e,0,[e.props,i]),l=d5(s);if(Vh(),a(),(l||e.sp)&&!h0(e)&&UU(e),l){if(s.then(jj,jj),t)return s.then(c=>{Vj(e,c,t)}).catch(c=>{Xm(c,e,0)});e.asyncDep=s}else Vj(e,s,t)}else ghe(e,t)}function Vj(e,t,n){Ar(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xi(t)&&(e.setupState=FU(t)),ghe(e,n)}let B8,zj;function YAe(e){B8=e,zj=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,eAe))}}const XAe=()=>!B8;function ghe(e,t,n){const r=e.type;if(!e.render){if(!t&&B8&&!r.render){const i=r.template||XU(e).template;if(i){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=Ci(Ci({isCustomElement:a,delimiters:l},s),c);r.render=B8(i,d)}}e.render=r.render||Ca,zj&&zj(e)}{const i=Im(e);jh();try{pAe(e)}finally{Vh(),i()}}}const ZAe={get(e,t){return _l(e,"get",""),e[t]}};function yhe(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ZAe),slots:e.slots,emit:e.emit,expose:t}}function q_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(FU(_5(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Z4)return Z4[n](e)},has(t,n){return n in t||n in Z4}})):e.proxy}function Uj(e,t=!0){return Ar(e)?e.displayName||e.name:e.name||t&&e.__name}function JAe(e){return Ar(e)&&"__vccOpts"in e}const F=(e,t)=>y5e(e,t,Iy);function fa(e,t,n){try{t_(-1);const r=arguments.length;return r===2?Xi(t)&&!Gn(t)?Wi(t)?$(e,null,[t]):$(e,t):$(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wi(n)&&(n=[n]),$(e,t,n))}finally{t_(1)}}function QAe(){}function eIe(e,t,n,r){const i=n[r];if(i&&bhe(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function bhe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Cl&&Cl.push(e),!0}const _he="3.5.22",tIe=Ca,nIe=T5e,rIe=N1,iIe=Cfe,oIe={createComponentInstance:phe,setupComponent:mhe,renderComponentRoot:JC,setCurrentRenderingInstance:Jb,isVNode:Wi,normalizeVNode:yu,getComponentPublicInstance:q_,ensureValidVNode:YU,pushWarningContext:x5e,popWarningContext:C5e},sIe=oIe,aIe=null,lIe=null,uIe=null;/** +**/const _fe=[];function w5e(e){_fe.push(e)}function x5e(){_fe.pop()}function C5e(e,t){}const E5e={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},T5e={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function r3(e,t,n,r){try{return r?e(...r):e()}catch(i){Zm(i,t,n)}}function Zc(e,t,n,r){if(Ar(e)){const i=r3(e,t,n,r);return i&&f5(i)&&i.catch(a=>{Zm(a,t,n)}),i}if(Gn(e)){const i=[];for(let a=0;a>>1,i=Hl[r],a=Zb(i);a=Zb(n)?Hl.push(e):Hl.splice(I5e(t),0,e),e.flags|=1,kfe()}}function kfe(){D8||(D8=Sfe.then(wfe))}function Xb(e){Gn(e)?iy.push(...e):Yp&&e.id===-1?Yp.splice(N1+1,0,e):e.flags&1||(iy.push(e),e.flags|=1),kfe()}function ene(e,t,n=nf+1){for(;nZb(n)-Zb(r));if(iy.length=0,Yp){Yp.push(...t);return}for(Yp=t,N1=0;N1e.id==null?e.flags&2?-1:1/0:e.id;function wfe(e){try{for(nf=0;nfF1.emit(i,...a)),hw=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{xfe(a,t)}),setTimeout(()=>{F1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,hw=[])},3e3)):hw=[]}let qa=null,k5=null;function Jb(e){const t=qa;return qa=e,k5=e&&e.type.__scopeId||null,t}function L5e(e){k5=e}function D5e(){k5=null}const P5e=e=>ce;function ce(e,t=qa,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&t_(-1);const a=Jb(t);let s;try{s=e(...i)}finally{Jb(a),r._d&&t_(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ci(e,t){if(qa===null)return e;const n=Y_(qa),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,X4=e=>e&&(e.disabled||e.disabled===""),tne=e=>e&&(e.defer||e.defer===""),nne=e=>typeof SVGElement<"u"&&e instanceof SVGElement,rne=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Mj=(e,t)=>{const n=e&&e.to;return Mr(n)?t?t(n):null:n},Tfe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,l,c,d){const{mc:h,pc:p,pbc:v,o:{insert:g,querySelector:y,createText:S,createComment:k}}=d,w=X4(t.props);let{shapeFlag:x,children:E,dynamicChildren:_}=t;if(e==null){const T=t.el=S(""),D=t.anchor=S("");g(T,n,r),g(D,n,r);const P=($,L)=>{x&16&&h(E,$,L,i,a,s,l,c)},M=()=>{const $=t.target=Mj(t.props,y),L=Afe($,t,S,g);$&&(s!=="svg"&&nne($)?s="svg":s!=="mathml"&&rne($)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add($),w||(P($,L),Jx(t,!1)))};w&&(P(n,D),Jx(t,!0)),tne(t.props)?(t.el.__isMounted=!1,ua(()=>{M(),delete t.el.__isMounted},a)):M()}else{if(tne(t.props)&&e.el.__isMounted===!1){ua(()=>{Tfe.process(e,t,n,r,i,a,s,l,c,d)},a);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,D=t.target=e.target,P=t.targetAnchor=e.targetAnchor,M=X4(e.props),$=M?n:D,L=M?T:P;if(s==="svg"||nne(D)?s="svg":(s==="mathml"||rne(D))&&(s="mathml"),_?(v(e.dynamicChildren,_,$,i,a,s,l),tH(e,t,!0)):c||p(e,t,$,L,i,a,s,l,!1),w)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):pw(t,n,T,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Mj(t.props,y);B&&pw(t,B,null,d,0)}else M&&pw(t,D,P,d,1);Jx(t,w)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetStart:d,targetAnchor:h,target:p,props:v}=e;if(p&&(i(d),i(h)),a&&i(c),s&16){const g=a||!X4(v);for(let y=0;y{e.isMounted=!0}),_o(()=>{e.isUnmounting=!0}),e}const Ec=[Function,Array],HU={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ec,onEnter:Ec,onAfterEnter:Ec,onEnterCancelled:Ec,onBeforeLeave:Ec,onLeave:Ec,onAfterLeave:Ec,onLeaveCancelled:Ec,onBeforeAppear:Ec,onAppear:Ec,onAfterAppear:Ec,onAppearCancelled:Ec},Ife=e=>{const t=e.subTree;return t.component?Ife(t.component):t},M5e={name:"BaseTransition",props:HU,setup(e,{slots:t}){const n=So(),r=UU();return()=>{const i=t.default&&w5(t.default(),!0);if(!i||!i.length)return;const a=Lfe(i),s=Bi(e),{mode:l}=s;if(r.isLeaving)return pP(a);const c=ine(a);if(!c)return pP(a);let d=Iy(c,s,r,n,p=>d=p);c.type!==ws&&Wh(c,d);let h=n.subTree&&ine(n.subTree);if(h&&h.type!==ws&&!Cd(h,c)&&Ife(n).type!==ws){let p=Iy(h,s,r,n);if(Wh(h,p),l==="out-in"&&c.type!==ws)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},pP(a);l==="in-out"&&c.type!==ws?p.delayLeave=(v,g,y)=>{const S=Pfe(r,h);S[String(h.key)]=h,v[bh]=()=>{g(),v[bh]=void 0,delete d.delayedLeave,h=void 0},d.delayedLeave=()=>{y(),delete d.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return a}}};function Lfe(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ws){t=n;break}}return t}const Dfe=M5e;function Pfe(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Iy(e,t,n,r,i){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:v,onLeave:g,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:k,onAppear:w,onAfterAppear:x,onAppearCancelled:E}=t,_=String(e.key),T=Pfe(n,e),D=($,L)=>{$&&Zc($,r,9,L)},P=($,L)=>{const B=L[1];D($,L),Gn($)?$.every(j=>j.length<=1)&&B():$.length<=1&&B()},M={mode:s,persisted:l,beforeEnter($){let L=c;if(!n.isMounted)if(a)L=k||c;else return;$[bh]&&$[bh](!0);const B=T[_];B&&Cd(e,B)&&B.el[bh]&&B.el[bh](),D(L,[$])},enter($){let L=d,B=h,j=p;if(!n.isMounted)if(a)L=w||d,B=x||h,j=E||p;else return;let H=!1;const U=$[vw]=W=>{H||(H=!0,W?D(j,[$]):D(B,[$]),M.delayedLeave&&M.delayedLeave(),$[vw]=void 0)};L?P(L,[$,U]):U()},leave($,L){const B=String(e.key);if($[vw]&&$[vw](!0),n.isUnmounting)return L();D(v,[$]);let j=!1;const H=$[bh]=U=>{j||(j=!0,L(),U?D(S,[$]):D(y,[$]),$[bh]=void 0,T[B]===e&&delete T[B])};T[B]=e,g?P(g,[$,H]):H()},clone($){const L=Iy($,t,n,r,i);return i&&i(L),L}};return M}function pP(e){if(K_(e))return e=El(e),e.children=null,e}function ine(e){if(!K_(e))return Efe(e.type)&&e.children?Lfe(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ar(n.default))return n.default()}}function Wh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Wh(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function w5(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let a=0;an.value,set:a=>n.value=a})}return n}const R8=new WeakMap;function oy(e,t,n,r,i=!1){if(Gn(e)){e.forEach((y,S)=>oy(y,t&&(Gn(t)?t[S]:t),n,r,i));return}if(p0(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&oy(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Y_(r.component):r.el,s=i?null:a,{i:l,r:c}=e,d=t&&t.r,h=l.refs===Ai?l.refs={}:l.refs,p=l.setupState,v=Bi(p),g=p===Ai?em:y=>Ki(v,y);if(d!=null&&d!==c){if(one(t),Mr(d))h[d]=null,g(d)&&(p[d]=null);else if(Bo(d)){d.value=null;const y=t;y.k&&(h[y.k]=null)}}if(Ar(c))r3(c,l,12,[s,h]);else{const y=Mr(c),S=Bo(c);if(y||S){const k=()=>{if(e.f){const w=y?g(c)?p[c]:h[c]:c.value;if(i)Gn(w)&&d5(w,a);else if(Gn(w))w.includes(a)||w.push(a);else if(y)h[c]=[a],g(c)&&(p[c]=h[c]);else{const x=[a];c.value=x,e.k&&(h[e.k]=x)}}else y?(h[c]=s,g(c)&&(p[c]=s)):S&&(c.value=s,e.k&&(h[e.k]=s))};if(s){const w=()=>{k(),R8.delete(e)};w.id=-1,R8.set(e,w),ua(w,n)}else one(e),k()}}}function one(e){const t=R8.get(e);t&&(t.flags|=8,R8.delete(e))}let sne=!1;const d1=()=>{sne||(console.error("Hydration completed but contains mismatches."),sne=!0)},B5e=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",N5e=e=>e.namespaceURI.includes("MathML"),mw=e=>{if(e.nodeType===1){if(B5e(e))return"svg";if(N5e(e))return"mathml"}},G1=e=>e.nodeType===8;function F5e(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:d}}=e,h=(E,_)=>{if(!_.hasChildNodes()){n(null,E,_),P8(),_._vnode=E;return}p(_.firstChild,E,null,null,null),P8(),_._vnode=E},p=(E,_,T,D,P,M=!1)=>{M=M||!!_.dynamicChildren;const $=G1(E)&&E.data==="[",L=()=>S(E,_,T,D,P,$),{type:B,ref:j,shapeFlag:H,patchFlag:U}=_;let W=E.nodeType;_.el=E,U===-2&&(M=!1,_.dynamicChildren=null);let K=null;switch(B){case v0:W!==3?_.children===""?(c(_.el=i(""),s(E),E),K=E):K=L():(E.data!==_.children&&(d1(),E.data=_.children),K=a(E));break;case ws:x(E)?(K=a(E),w(_.el=E.content.firstChild,E,T)):W!==8||$?K=L():K=a(E);break;case vm:if($&&(E=a(E),W=E.nodeType),W===1||W===3){K=E;const oe=!_.children.length;for(let ae=0;ae<_.staticCount;ae++)oe&&(_.children+=K.nodeType===1?K.outerHTML:K.data),ae===_.staticCount-1&&(_.anchor=K),K=a(K);return $?a(K):K}else L();break;case Pt:$?K=y(E,_,T,D,P,M):K=L();break;default:if(H&1)(W!==1||_.type.toLowerCase()!==E.tagName.toLowerCase())&&!x(E)?K=L():K=v(E,_,T,D,P,M);else if(H&6){_.slotScopeIds=P;const oe=s(E);if($?K=k(E):G1(E)&&E.data==="teleport start"?K=k(E,E.data,"teleport end"):K=a(E),t(_,oe,null,T,D,mw(oe),M),p0(_)&&!_.type.__asyncResolved){let ae;$?(ae=O(Pt),ae.anchor=K?K.previousSibling:oe.lastChild):ae=E.nodeType===3?He(""):O("div"),ae.el=E,_.component.subTree=ae}}else H&64?W!==8?K=L():K=_.type.hydrate(E,_,T,D,P,M,e,g):H&128&&(K=_.type.hydrate(E,_,T,D,mw(s(E)),P,M,e,p))}return j!=null&&oy(j,null,D,_),K},v=(E,_,T,D,P,M)=>{M=M||!!_.dynamicChildren;const{type:$,props:L,patchFlag:B,shapeFlag:j,dirs:H,transition:U}=_,W=$==="input"||$==="option";if(W||B!==-1){H&&of(_,null,T,"created");let K=!1;if(x(E)){K=the(null,U)&&T&&T.vnode.props&&T.vnode.props.appear;const ae=E.content.firstChild;if(K){const ee=ae.getAttribute("class");ee&&(ae.$cls=ee),U.beforeEnter(ae)}w(ae,E,T),_.el=E=ae}if(j&16&&!(L&&(L.innerHTML||L.textContent))){let ae=g(E.firstChild,_,E,T,D,P,M);for(;ae;){gw(E,1)||d1();const ee=ae;ae=ae.nextSibling,l(ee)}}else if(j&8){let ae=_.children;ae[0]===` +`&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(ae=ae.slice(1)),E.textContent!==ae&&(gw(E,0)||d1(),E.textContent=_.children)}if(L){if(W||!M||B&48){const ae=E.tagName.includes("-");for(const ee in L)(W&&(ee.endsWith("value")||ee==="indeterminate")||F0(ee)&&!Dh(ee)||ee[0]==="."||ae)&&r(E,ee,null,L[ee],void 0,T)}else if(L.onClick)r(E,"onClick",null,L.onClick,void 0,T);else if(B&4&&gf(L.style))for(const ae in L.style)L.style[ae]}let oe;(oe=L&&L.onVnodeBeforeMount)&&mu(oe,T,_),H&&of(_,null,T,"beforeMount"),((oe=L&&L.onVnodeMounted)||H||K)&&che(()=>{oe&&mu(oe,T,_),K&&U.enter(E),H&&of(_,null,T,"mounted")},D)}return E.nextSibling},g=(E,_,T,D,P,M,$)=>{$=$||!!_.dynamicChildren;const L=_.children,B=L.length;for(let j=0;j{const{slotScopeIds:$}=_;$&&(P=P?P.concat($):$);const L=s(E),B=g(a(E),_,L,T,D,P,M);return B&&G1(B)&&B.data==="]"?a(_.anchor=B):(d1(),c(_.anchor=d("]"),L,B),B)},S=(E,_,T,D,P,M)=>{if(gw(E.parentElement,1)||d1(),_.el=null,M){const B=k(E);for(;;){const j=a(E);if(j&&j!==B)l(j);else break}}const $=a(E),L=s(E);return l(E),n(null,_,L,$,T,D,mw(L),P),T&&(T.vnode.el=_.el,E5(T,_.el)),$},k=(E,_="[",T="]")=>{let D=0;for(;E;)if(E=a(E),E&&G1(E)&&(E.data===_&&D++,E.data===T)){if(D===0)return a(E);D--}return E},w=(E,_,T)=>{const D=_.parentNode;D&&D.replaceChild(E,_);let P=T;for(;P;)P.vnode.el===_&&(P.vnode.el=P.subTree.el=E),P=P.parent},x=E=>E.nodeType===1&&E.tagName==="TEMPLATE";return[h,p]}const ane="data-allow-mismatch",j5e={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function gw(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ane);)e=e.parentElement;const n=e&&e.getAttribute(ane);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(j5e[t])}}const V5e=W_().requestIdleCallback||(e=>setTimeout(e,1)),z5e=W_().cancelIdleCallback||(e=>clearTimeout(e)),U5e=(e=1e4)=>t=>{const n=V5e(t,{timeout:e});return()=>z5e(n)};function H5e(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:s}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{const r=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(H5e(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},G5e=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},K5e=(e=[])=>(t,n)=>{Mr(e)&&(e=[e]);let r=!1;const i=s=>{r||(r=!0,a(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},a=()=>{n(s=>{for(const l of e)s.removeEventListener(l,i)})};return n(s=>{for(const l of e)s.addEventListener(l,i,{once:!0})}),a};function q5e(e,t){if(G1(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(G1(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const p0=e=>!!e.type.__asyncLoader;function Qm(e){Ar(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:s,suspensible:l=!0,onError:c}=e;let d=null,h,p=0;const v=()=>(p++,d=null,g()),g=()=>{let y;return d||(y=d=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((k,w)=>{c(S,()=>k(v()),()=>w(S),p+1)});throw S}).then(S=>y!==d&&d?d:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(y,S,k){let w=!1;(S.bu||(S.bu=[])).push(()=>w=!0);const x=()=>{w||k()},E=a?()=>{const _=a(x,T=>q5e(y,T));_&&(S.bum||(S.bum=[])).push(_)}:x;h?E():g().then(()=>!S.isUnmounted&&E())},get __asyncResolved(){return h},setup(){const y=Ga;if(WU(y),h)return()=>vP(h,y);const S=E=>{d=null,Zm(E,y,13,!r)};if(l&&y.suspense||Ly)return g().then(E=>()=>vP(E,y)).catch(E=>(S(E),()=>r?O(r,{error:E}):null));const k=ue(!1),w=ue(),x=ue(!!i);return i&&setTimeout(()=>{x.value=!1},i),s!=null&&setTimeout(()=>{if(!k.value&&!w.value){const E=new Error(`Async component timed out after ${s}ms.`);S(E),w.value=E}},s),g().then(()=>{k.value=!0,y.parent&&K_(y.parent.vnode)&&y.parent.update()}).catch(E=>{S(E),w.value=E}),()=>{if(k.value&&h)return vP(h,y);if(w.value&&r)return O(r,{error:w.value});if(n&&!x.value)return O(n)}}})}function vP(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,s=O(e,r,i);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const K_=e=>e.type.__isKeepAlive,Y5e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=So(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const i=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:d,um:h,o:{createElement:p}}}=r,v=p("div");r.activate=(x,E,_,T,D)=>{const P=x.component;d(x,E,_,0,l),c(P.vnode,x,E,_,P,l,T,x.slotScopeIds,D),ua(()=>{P.isDeactivated=!1,P.a&&fm(P.a);const M=x.props&&x.props.onVnodeMounted;M&&mu(M,P.parent,x)},l)},r.deactivate=x=>{const E=x.component;O8(E.m),O8(E.a),d(x,v,null,1,l),ua(()=>{E.da&&fm(E.da);const _=x.props&&x.props.onVnodeUnmounted;_&&mu(_,E.parent,x),E.isDeactivated=!0},l)};function g(x){mP(x),h(x,n,l,!0)}function y(x){i.forEach((E,_)=>{const T=Wj(E.type);T&&!x(T)&&S(_)})}function S(x){const E=i.get(x);E&&(!s||!Cd(E,s))?g(E):s&&mP(s),i.delete(x),a.delete(x)}It(()=>[e.include,e.exclude],([x,E])=>{x&&y(_=>A4(x,_)),E&&y(_=>!A4(E,_))},{flush:"post",deep:!0});let k=null;const w=()=>{k!=null&&($8(n.subTree.type)?ua(()=>{i.set(k,yw(n.subTree))},n.subTree.suspense):i.set(k,yw(n.subTree)))};return fn(w),tl(w),_o(()=>{i.forEach(x=>{const{subTree:E,suspense:_}=n,T=yw(E);if(x.type===T.type&&x.key===T.key){mP(T);const D=T.component.da;D&&ua(D,_);return}g(x)})}),()=>{if(k=null,!t.default)return s=null;const x=t.default(),E=x[0];if(x.length>1)return s=null,x;if(!Wi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return s=null,E;let _=yw(E);if(_.type===ws)return s=null,_;const T=_.type,D=Wj(p0(_)?_.type.__asyncResolved||{}:T),{include:P,exclude:M,max:$}=e;if(P&&(!D||!A4(P,D))||M&&D&&A4(M,D))return _.shapeFlag&=-257,s=_,E;const L=_.key==null?T:_.key,B=i.get(L);return _.el&&(_=El(_),E.shapeFlag&128&&(E.ssContent=_)),k=L,B?(_.el=B.el,_.component=B.component,_.transition&&Wh(_,_.transition),_.shapeFlag|=512,a.delete(L),a.add(L)):(a.add(L),$&&a.size>parseInt($,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,$8(E.type)?E:_}}},X5e=Y5e;function A4(e,t){return Gn(e)?e.some(n=>A4(n,t)):Mr(e)?e.split(",").includes(t):Vde(e)?(e.lastIndex=0,e.test(t)):!1}function GU(e,t){Rfe(e,"a",t)}function KU(e,t){Rfe(e,"da",t)}function Rfe(e,t,n=Ga){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(x5(t,r,n),n){let i=n.parent;for(;i&&i.parent;)K_(i.parent.vnode)&&Z5e(r,t,n,i),i=i.parent}}function Z5e(e,t,n,r){const i=x5(t,e,r,!0);Yr(()=>{d5(r[t],i)},n)}function mP(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function yw(e){return e.shapeFlag&128?e.ssContent:e}function x5(e,t,n=Ga,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{zh();const l=Dm(n),c=Zc(t,n,e,s);return l(),Uh(),c});return r?i.unshift(a):i.push(a),a}}const Xh=e=>(t,n=Ga)=>{(!Ly||e==="sp")&&x5(e,(...r)=>t(...r),n)},Mfe=Xh("bm"),fn=Xh("m"),qU=Xh("bu"),tl=Xh("u"),_o=Xh("bum"),Yr=Xh("um"),Ofe=Xh("sp"),$fe=Xh("rtg"),Bfe=Xh("rtc");function Nfe(e,t=Ga){x5("ec",e,t)}const YU="components",J5e="directives";function Ee(e,t){return XU(YU,e,!0,t)||e}const Ffe=Symbol.for("v-ndc");function Ca(e){return Mr(e)?XU(YU,e,!1)||e:e||Ffe}function i3(e){return XU(J5e,e)}function XU(e,t,n=!0,r=!1){const i=qa||Ga;if(i){const a=i.type;if(e===YU){const l=Wj(a,!1);if(l&&(l===t||l===$o(t)||l===V0($o(t))))return a}const s=lne(i[e]||a[e],t)||lne(i.appContext[e],t);return!s&&r?a:s}}function lne(e,t){return e&&(e[t]||e[$o(t)]||e[V0($o(t))])}function cn(e,t,n,r){let i;const a=n&&n[r],s=Gn(e);if(s||Mr(e)){const l=s&&gf(e);let c=!1,d=!1;l&&(c=!cc(e),d=Hh(e),e=g5(e)),i=new Array(e.length);for(let h=0,p=e.length;ht(l,c,void 0,a&&a[c]));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,d=l.length;c{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function mt(e,t,n={},r,i){if(qa.ce||qa.parent&&p0(qa.parent)&&qa.parent.ce){const d=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),Ze(Pt,null,[O("slot",n,r&&r())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),z();const s=a&&ZU(a(n)),l=n.key||s&&s.key,c=Ze(Pt,{key:(l&&!Jl(l)?l:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),a&&a._c&&(a._d=!0),c}function ZU(e){return e.some(t=>Wi(t)?!(t.type===ws||t.type===Pt&&!ZU(t.children)):!0)?e:null}function Q5e(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:dm(r)]=e[r];return n}const Oj=e=>e?vhe(e)?Y_(e):Oj(e.parent):null,Z4=xi(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Oj(e.parent),$root:e=>Oj(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>JU(e),$forceUpdate:e=>e.f||(e.f=()=>{zU(e.update)}),$nextTick:e=>e.n||(e.n=dn.bind(e.proxy)),$watch:e=>IAe.bind(e)}),gP=(e,t)=>e!==Ai&&!e.__isScriptSetup&&Ki(e,t),$j={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(gP(r,t))return s[t]=1,r[t];if(i!==Ai&&Ki(i,t))return s[t]=2,i[t];if((d=e.propsOptions[0])&&Ki(d,t))return s[t]=3,a[t];if(n!==Ai&&Ki(n,t))return s[t]=4,n[t];Bj&&(s[t]=0)}}const h=Z4[t];let p,v;if(h)return t==="$attrs"&&_l(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Ai&&Ki(n,t))return s[t]=4,n[t];if(v=c.config.globalProperties,Ki(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return gP(i,t)?(i[t]=n,!0):r!==Ai&&Ki(r,t)?(r[t]=n,!0):Ki(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a,type:s}},l){let c,d;return!!(n[l]||e!==Ai&&l[0]!=="$"&&Ki(e,l)||gP(t,l)||(c=a[0])&&Ki(c,l)||Ki(r,l)||Ki(Z4,l)||Ki(i.config.globalProperties,l)||(d=s.__cssModules)&&d[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ki(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},eAe=xi({},$j,{get(e,t){if(t!==Symbol.unscopables)return $j.get(e,t,e)},has(e,t){return t[0]!=="_"&&!DU(t)}});function tAe(){return null}function nAe(){return null}function rAe(e){}function iAe(e){}function oAe(){return null}function sAe(){}function aAe(e,t){return null}function lAe(){return jfe().slots}function uAe(){return jfe().attrs}function jfe(e){const t=So();return t.setupContext||(t.setupContext=yhe(t))}function Qb(e){return Gn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function cAe(e,t){const n=Qb(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Gn(i)||Ar(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function dAe(e,t){return!e||!t?e||t:Gn(e)&&Gn(t)?e.concat(t):xi({},Qb(e),Qb(t))}function fAe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function hAe(e){const t=So();let n=e();return zj(),f5(n)&&(n=n.catch(r=>{throw Dm(t),r})),[n,()=>Dm(t)]}let Bj=!0;function pAe(e){const t=JU(e),n=e.proxy,r=e.ctx;Bj=!1,t.beforeCreate&&une(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:v,beforeUpdate:g,updated:y,activated:S,deactivated:k,beforeDestroy:w,beforeUnmount:x,destroyed:E,unmounted:_,render:T,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:$,expose:L,inheritAttrs:B,components:j,directives:H,filters:U}=t;if(d&&vAe(d,r,null),s)for(const oe in s){const ae=s[oe];Ar(ae)&&(r[oe]=ae.bind(n))}if(i){const oe=i.call(n,n);Xi(oe)&&(e.data=Wt(oe))}if(Bj=!0,a)for(const oe in a){const ae=a[oe],ee=Ar(ae)?ae.bind(n,n):Ar(ae.get)?ae.get.bind(n,n):xa,Y=!Ar(ae)&&Ar(ae.set)?ae.set.bind(n):xa,Q=F({get:ee,set:Y});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>Q.value,set:ie=>Q.value=ie})}if(l)for(const oe in l)Vfe(l[oe],r,n,oe);if(c){const oe=Ar(c)?c.call(n):c;Reflect.ownKeys(oe).forEach(ae=>{oi(ae,oe[ae])})}h&&une(h,e,"c");function K(oe,ae){Gn(ae)?ae.forEach(ee=>oe(ee.bind(n))):ae&&oe(ae.bind(n))}if(K(Mfe,p),K(fn,v),K(qU,g),K(tl,y),K(GU,S),K(KU,k),K(Nfe,M),K(Bfe,D),K($fe,P),K(_o,x),K(Yr,_),K(Ofe,$),Gn(L))if(L.length){const oe=e.exposed||(e.exposed={});L.forEach(ae=>{Object.defineProperty(oe,ae,{get:()=>n[ae],set:ee=>n[ae]=ee,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===xa&&(e.render=T),B!=null&&(e.inheritAttrs=B),j&&(e.components=j),H&&(e.directives=H),$&&WU(e)}function vAe(e,t,n=xa){Gn(e)&&(e=Nj(e));for(const r in e){const i=e[r];let a;Xi(i)?"default"in i?a=Pn(i.from||r,i.default,!0):a=Pn(i.from||r):a=Pn(i),Bo(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function une(e,t,n){Zc(Gn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vfe(e,t,n,r){let i=r.includes(".")?she(n,r):()=>n[r];if(Mr(e)){const a=t[e];Ar(a)&&It(i,a)}else if(Ar(e))It(i,e.bind(n));else if(Xi(e))if(Gn(e))e.forEach(a=>Vfe(a,t,n,r));else{const a=Ar(e.handler)?e.handler.bind(n):t[e.handler];Ar(a)&&It(i,a,e)}}function JU(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let c;return l?c=l:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(d=>M8(c,d,s,!0)),M8(c,t,s)),Xi(t)&&a.set(t,c),c}function M8(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&M8(e,a,n,!0),i&&i.forEach(s=>M8(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=mAe[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const mAe={data:cne,props:dne,emits:dne,methods:I4,computed:I4,beforeCreate:Fl,created:Fl,beforeMount:Fl,mounted:Fl,beforeUpdate:Fl,updated:Fl,beforeDestroy:Fl,beforeUnmount:Fl,destroyed:Fl,unmounted:Fl,activated:Fl,deactivated:Fl,errorCaptured:Fl,serverPrefetch:Fl,components:I4,directives:I4,watch:yAe,provide:cne,inject:gAe};function cne(e,t){return t?e?function(){return xi(Ar(e)?e.call(this,this):e,Ar(t)?t.call(this,this):t)}:t:e}function gAe(e,t){return I4(Nj(e),Nj(t))}function Nj(e){if(Gn(e)){const t={};for(let n=0;n1)return n&&Ar(t)?t.call(r&&r.proxy):t}}function Ufe(){return!!(So()||pm)}const Hfe={},Wfe=()=>Object.create(Hfe),Gfe=e=>Object.getPrototypeOf(e)===Hfe;function SAe(e,t,n,r=!1){const i={},a=Wfe();e.propsDefaults=Object.create(null),Kfe(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:jU(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function kAe(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,l=Bi(i),[c]=e.propsOptions;let d=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[v,g]=qfe(p,t,!0);xi(s,v),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!a&&!c)return Xi(e)&&r.set(e,um),um;if(Gn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",eH=e=>Gn(e)?e.map(bu):[bu(e)],xAe=(e,t,n)=>{if(t._n)return t;const r=ce((...i)=>eH(t(...i)),n);return r._c=!1,r},Yfe=(e,t,n)=>{const r=e._ctx;for(const i in e){if(QU(i))continue;const a=e[i];if(Ar(a))t[i]=xAe(i,a,r);else if(a!=null){const s=eH(a);t[i]=()=>s}}},Xfe=(e,t)=>{const n=eH(t);e.slots.default=()=>n},Zfe=(e,t,n)=>{for(const r in t)(n||!QU(r))&&(e[r]=t[r])},CAe=(e,t,n)=>{const r=e.slots=Wfe();if(e.vnode.shapeFlag&32){const i=t._;i?(Zfe(r,t,n),n&&LU(r,"_",i,!0)):Yfe(t,r)}else t&&Xfe(e,t)},EAe=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=Ai;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Zfe(i,t,n):(a=!t.$stable,Yfe(t,i)),s=t}else t&&(Xfe(e,t),s={default:1});if(a)for(const l in i)!QU(l)&&s[l]==null&&delete i[l]},ua=che;function Jfe(e){return ehe(e)}function Qfe(e){return ehe(e,F5e)}function ehe(e,t){const n=W_();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:s,createText:l,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:v,setScopeId:g=xa,insertStaticContent:y}=e,S=(me,ge,Be,Ye=null,Ke=null,at=null,ft=void 0,ct=null,Ct=!!ge.dynamicChildren)=>{if(me===ge)return;me&&!Cd(me,ge)&&(Ye=ve(me),ie(me,Ke,at,!0),me=null),ge.patchFlag===-2&&(Ct=!1,ge.dynamicChildren=null);const{type:xt,ref:Rt,shapeFlag:Ht}=ge;switch(xt){case v0:k(me,ge,Be,Ye);break;case ws:w(me,ge,Be,Ye);break;case vm:me==null&&x(ge,Be,Ye,ft);break;case Pt:j(me,ge,Be,Ye,Ke,at,ft,ct,Ct);break;default:Ht&1?T(me,ge,Be,Ye,Ke,at,ft,ct,Ct):Ht&6?H(me,ge,Be,Ye,Ke,at,ft,ct,Ct):(Ht&64||Ht&128)&&xt.process(me,ge,Be,Ye,Ke,at,ft,ct,Ct,nt)}Rt!=null&&Ke?oy(Rt,me&&me.ref,at,ge||me,!ge):Rt==null&&me&&me.ref!=null&&oy(me.ref,null,at,me,!0)},k=(me,ge,Be,Ye)=>{if(me==null)r(ge.el=l(ge.children),Be,Ye);else{const Ke=ge.el=me.el;ge.children!==me.children&&d(Ke,ge.children)}},w=(me,ge,Be,Ye)=>{me==null?r(ge.el=c(ge.children||""),Be,Ye):ge.el=me.el},x=(me,ge,Be,Ye)=>{[me.el,me.anchor]=y(me.children,ge,Be,Ye,me.el,me.anchor)},E=({el:me,anchor:ge},Be,Ye)=>{let Ke;for(;me&&me!==ge;)Ke=v(me),r(me,Be,Ye),me=Ke;r(ge,Be,Ye)},_=({el:me,anchor:ge})=>{let Be;for(;me&&me!==ge;)Be=v(me),i(me),me=Be;i(ge)},T=(me,ge,Be,Ye,Ke,at,ft,ct,Ct)=>{ge.type==="svg"?ft="svg":ge.type==="math"&&(ft="mathml"),me==null?D(ge,Be,Ye,Ke,at,ft,ct,Ct):$(me,ge,Ke,at,ft,ct,Ct)},D=(me,ge,Be,Ye,Ke,at,ft,ct)=>{let Ct,xt;const{props:Rt,shapeFlag:Ht,transition:Jt,dirs:rn}=me;if(Ct=me.el=s(me.type,at,Rt&&Rt.is,Rt),Ht&8?h(Ct,me.children):Ht&16&&M(me.children,Ct,null,Ye,Ke,yP(me,at),ft,ct),rn&&of(me,null,Ye,"created"),P(Ct,me,me.scopeId,ft,Ye),Rt){for(const Ve in Rt)Ve!=="value"&&!Dh(Ve)&&a(Ct,Ve,null,Rt[Ve],at,Ye);"value"in Rt&&a(Ct,"value",null,Rt.value,at),(xt=Rt.onVnodeBeforeMount)&&mu(xt,Ye,me)}rn&&of(me,null,Ye,"beforeMount");const vt=the(Ke,Jt);vt&&Jt.beforeEnter(Ct),r(Ct,ge,Be),((xt=Rt&&Rt.onVnodeMounted)||vt||rn)&&ua(()=>{xt&&mu(xt,Ye,me),vt&&Jt.enter(Ct),rn&&of(me,null,Ye,"mounted")},Ke)},P=(me,ge,Be,Ye,Ke)=>{if(Be&&g(me,Be),Ye)for(let at=0;at{for(let xt=Ct;xt{const ct=ge.el=me.el;let{patchFlag:Ct,dynamicChildren:xt,dirs:Rt}=ge;Ct|=me.patchFlag&16;const Ht=me.props||Ai,Jt=ge.props||Ai;let rn;if(Be&&yv(Be,!1),(rn=Jt.onVnodeBeforeUpdate)&&mu(rn,Be,ge,me),Rt&&of(ge,me,Be,"beforeUpdate"),Be&&yv(Be,!0),(Ht.innerHTML&&Jt.innerHTML==null||Ht.textContent&&Jt.textContent==null)&&h(ct,""),xt?L(me.dynamicChildren,xt,ct,Be,Ye,yP(ge,Ke),at):ft||ae(me,ge,ct,null,Be,Ye,yP(ge,Ke),at,!1),Ct>0){if(Ct&16)B(ct,Ht,Jt,Be,Ke);else if(Ct&2&&Ht.class!==Jt.class&&a(ct,"class",null,Jt.class,Ke),Ct&4&&a(ct,"style",Ht.style,Jt.style,Ke),Ct&8){const vt=ge.dynamicProps;for(let Ve=0;Ve{rn&&mu(rn,Be,ge,me),Rt&&of(ge,me,Be,"updated")},Ye)},L=(me,ge,Be,Ye,Ke,at,ft)=>{for(let ct=0;ct{if(ge!==Be){if(ge!==Ai)for(const at in ge)!Dh(at)&&!(at in Be)&&a(me,at,ge[at],null,Ke,Ye);for(const at in Be){if(Dh(at))continue;const ft=Be[at],ct=ge[at];ft!==ct&&at!=="value"&&a(me,at,ct,ft,Ke,Ye)}"value"in Be&&a(me,"value",ge.value,Be.value,Ke)}},j=(me,ge,Be,Ye,Ke,at,ft,ct,Ct)=>{const xt=ge.el=me?me.el:l(""),Rt=ge.anchor=me?me.anchor:l("");let{patchFlag:Ht,dynamicChildren:Jt,slotScopeIds:rn}=ge;rn&&(ct=ct?ct.concat(rn):rn),me==null?(r(xt,Be,Ye),r(Rt,Be,Ye),M(ge.children||[],Be,Rt,Ke,at,ft,ct,Ct)):Ht>0&&Ht&64&&Jt&&me.dynamicChildren?(L(me.dynamicChildren,Jt,Be,Ke,at,ft,ct),(ge.key!=null||Ke&&ge===Ke.subTree)&&tH(me,ge,!0)):ae(me,ge,Be,Rt,Ke,at,ft,ct,Ct)},H=(me,ge,Be,Ye,Ke,at,ft,ct,Ct)=>{ge.slotScopeIds=ct,me==null?ge.shapeFlag&512?Ke.ctx.activate(ge,Be,Ye,ft,Ct):U(ge,Be,Ye,Ke,at,ft,Ct):W(me,ge,Ct)},U=(me,ge,Be,Ye,Ke,at,ft)=>{const ct=me.component=phe(me,Ye,Ke);if(K_(me)&&(ct.ctx.renderer=nt),mhe(ct,!1,ft),ct.asyncDep){if(Ke&&Ke.registerDep(ct,K,ft),!me.el){const Ct=ct.subTree=O(ws);w(null,Ct,ge,Be),me.placeholder=Ct.el}}else K(ct,me,ge,Be,Ke,at,ft)},W=(me,ge,Be)=>{const Ye=ge.component=me.component;if($Ae(me,ge,Be))if(Ye.asyncDep&&!Ye.asyncResolved){oe(Ye,ge,Be);return}else Ye.next=ge,Ye.update();else ge.el=me.el,Ye.vnode=ge},K=(me,ge,Be,Ye,Ke,at,ft)=>{const ct=()=>{if(me.isMounted){let{next:Ht,bu:Jt,u:rn,parent:vt,vnode:Ve}=me;{const dt=nhe(me);if(dt){Ht&&(Ht.el=Ve.el,oe(me,Ht,ft)),dt.asyncDep.then(()=>{me.isUnmounted||ct()});return}}let Oe=Ht,Ce;yv(me,!1),Ht?(Ht.el=Ve.el,oe(me,Ht,ft)):Ht=Ve,Jt&&fm(Jt),(Ce=Ht.props&&Ht.props.onVnodeBeforeUpdate)&&mu(Ce,vt,Ht,Ve),yv(me,!0);const We=Qx(me),$e=me.subTree;me.subTree=We,S($e,We,p($e.el),ve($e),me,Ke,at),Ht.el=We.el,Oe===null&&E5(me,We.el),rn&&ua(rn,Ke),(Ce=Ht.props&&Ht.props.onVnodeUpdated)&&ua(()=>mu(Ce,vt,Ht,Ve),Ke)}else{let Ht;const{el:Jt,props:rn}=ge,{bm:vt,m:Ve,parent:Oe,root:Ce,type:We}=me,$e=p0(ge);if(yv(me,!1),vt&&fm(vt),!$e&&(Ht=rn&&rn.onVnodeBeforeMount)&&mu(Ht,Oe,ge),yv(me,!0),Jt&&_e){const dt=()=>{me.subTree=Qx(me),_e(Jt,me.subTree,me,Ke,null)};$e&&We.__asyncHydrate?We.__asyncHydrate(Jt,me,dt):dt()}else{Ce.ce&&Ce.ce._def.shadowRoot!==!1&&Ce.ce._injectChildStyle(We);const dt=me.subTree=Qx(me);S(null,dt,Be,Ye,me,Ke,at),ge.el=dt.el}if(Ve&&ua(Ve,Ke),!$e&&(Ht=rn&&rn.onVnodeMounted)){const dt=ge;ua(()=>mu(Ht,Oe,dt),Ke)}(ge.shapeFlag&256||Oe&&p0(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&me.a&&ua(me.a,Ke),me.isMounted=!0,ge=Be=Ye=null}};me.scope.on();const Ct=me.effect=new Gb(ct);me.scope.off();const xt=me.update=Ct.run.bind(Ct),Rt=me.job=Ct.runIfDirty.bind(Ct);Rt.i=me,Rt.id=me.uid,Ct.scheduler=()=>zU(Rt),yv(me,!0),xt()},oe=(me,ge,Be)=>{ge.component=me;const Ye=me.vnode.props;me.vnode=ge,me.next=null,kAe(me,ge.props,Ye,Be),EAe(me,ge.children,Be),zh(),ene(me),Uh()},ae=(me,ge,Be,Ye,Ke,at,ft,ct,Ct=!1)=>{const xt=me&&me.children,Rt=me?me.shapeFlag:0,Ht=ge.children,{patchFlag:Jt,shapeFlag:rn}=ge;if(Jt>0){if(Jt&128){Y(xt,Ht,Be,Ye,Ke,at,ft,ct,Ct);return}else if(Jt&256){ee(xt,Ht,Be,Ye,Ke,at,ft,ct,Ct);return}}rn&8?(Rt&16&&Fe(xt,Ke,at),Ht!==xt&&h(Be,Ht)):Rt&16?rn&16?Y(xt,Ht,Be,Ye,Ke,at,ft,ct,Ct):Fe(xt,Ke,at,!0):(Rt&8&&h(Be,""),rn&16&&M(Ht,Be,Ye,Ke,at,ft,ct,Ct))},ee=(me,ge,Be,Ye,Ke,at,ft,ct,Ct)=>{me=me||um,ge=ge||um;const xt=me.length,Rt=ge.length,Ht=Math.min(xt,Rt);let Jt;for(Jt=0;JtRt?Fe(me,Ke,at,!0,!1,Ht):M(ge,Be,Ye,Ke,at,ft,ct,Ct,Ht)},Y=(me,ge,Be,Ye,Ke,at,ft,ct,Ct)=>{let xt=0;const Rt=ge.length;let Ht=me.length-1,Jt=Rt-1;for(;xt<=Ht&&xt<=Jt;){const rn=me[xt],vt=ge[xt]=Ct?Xp(ge[xt]):bu(ge[xt]);if(Cd(rn,vt))S(rn,vt,Be,null,Ke,at,ft,ct,Ct);else break;xt++}for(;xt<=Ht&&xt<=Jt;){const rn=me[Ht],vt=ge[Jt]=Ct?Xp(ge[Jt]):bu(ge[Jt]);if(Cd(rn,vt))S(rn,vt,Be,null,Ke,at,ft,ct,Ct);else break;Ht--,Jt--}if(xt>Ht){if(xt<=Jt){const rn=Jt+1,vt=rnJt)for(;xt<=Ht;)ie(me[xt],Ke,at,!0),xt++;else{const rn=xt,vt=xt,Ve=new Map;for(xt=vt;xt<=Jt;xt++){const ht=ge[xt]=Ct?Xp(ge[xt]):bu(ge[xt]);ht.key!=null&&Ve.set(ht.key,xt)}let Oe,Ce=0;const We=Jt-vt+1;let $e=!1,dt=0;const Qe=new Array(We);for(xt=0;xt=We){ie(ht,Ke,at,!0);continue}let Vt;if(ht.key!=null)Vt=Ve.get(ht.key);else for(Oe=vt;Oe<=Jt;Oe++)if(Qe[Oe-vt]===0&&Cd(ht,ge[Oe])){Vt=Oe;break}Vt===void 0?ie(ht,Ke,at,!0):(Qe[Vt-vt]=xt+1,Vt>=dt?dt=Vt:$e=!0,S(ht,ge[Vt],Be,null,Ke,at,ft,ct,Ct),Ce++)}const Le=$e?TAe(Qe):um;for(Oe=Le.length-1,xt=We-1;xt>=0;xt--){const ht=vt+xt,Vt=ge[ht],Ut=ge[ht+1],Lt=ht+1{const{el:at,type:ft,transition:ct,children:Ct,shapeFlag:xt}=me;if(xt&6){Q(me.component.subTree,ge,Be,Ye);return}if(xt&128){me.suspense.move(ge,Be,Ye);return}if(xt&64){ft.move(me,ge,Be,nt);return}if(ft===Pt){r(at,ge,Be);for(let Ht=0;Htct.enter(at),Ke);else{const{leave:Ht,delayLeave:Jt,afterLeave:rn}=ct,vt=()=>{me.ctx.isUnmounted?i(at):r(at,ge,Be)},Ve=()=>{at._isLeaving&&at[bh](!0),Ht(at,()=>{vt(),rn&&rn()})};Jt?Jt(at,vt,Ve):Ve()}else r(at,ge,Be)},ie=(me,ge,Be,Ye=!1,Ke=!1)=>{const{type:at,props:ft,ref:ct,children:Ct,dynamicChildren:xt,shapeFlag:Rt,patchFlag:Ht,dirs:Jt,cacheIndex:rn}=me;if(Ht===-2&&(Ke=!1),ct!=null&&(zh(),oy(ct,null,Be,me,!0),Uh()),rn!=null&&(ge.renderCache[rn]=void 0),Rt&256){ge.ctx.deactivate(me);return}const vt=Rt&1&&Jt,Ve=!p0(me);let Oe;if(Ve&&(Oe=ft&&ft.onVnodeBeforeUnmount)&&mu(Oe,ge,me),Rt&6)Se(me.component,Be,Ye);else{if(Rt&128){me.suspense.unmount(Be,Ye);return}vt&&of(me,null,ge,"beforeUnmount"),Rt&64?me.type.remove(me,ge,Be,nt,Ye):xt&&!xt.hasOnce&&(at!==Pt||Ht>0&&Ht&64)?Fe(xt,ge,Be,!1,!0):(at===Pt&&Ht&384||!Ke&&Rt&16)&&Fe(Ct,ge,Be),Ye&&q(me)}(Ve&&(Oe=ft&&ft.onVnodeUnmounted)||vt)&&ua(()=>{Oe&&mu(Oe,ge,me),vt&&of(me,null,ge,"unmounted")},Be)},q=me=>{const{type:ge,el:Be,anchor:Ye,transition:Ke}=me;if(ge===Pt){te(Be,Ye);return}if(ge===vm){_(me);return}const at=()=>{i(Be),Ke&&!Ke.persisted&&Ke.afterLeave&&Ke.afterLeave()};if(me.shapeFlag&1&&Ke&&!Ke.persisted){const{leave:ft,delayLeave:ct}=Ke,Ct=()=>ft(Be,at);ct?ct(me.el,at,Ct):Ct()}else at()},te=(me,ge)=>{let Be;for(;me!==ge;)Be=v(me),i(me),me=Be;i(ge)},Se=(me,ge,Be)=>{const{bum:Ye,scope:Ke,job:at,subTree:ft,um:ct,m:Ct,a:xt}=me;O8(Ct),O8(xt),Ye&&fm(Ye),Ke.stop(),at&&(at.flags|=8,ie(ft,me,ge,Be)),ct&&ua(ct,ge),ua(()=>{me.isUnmounted=!0},ge)},Fe=(me,ge,Be,Ye=!1,Ke=!1,at=0)=>{for(let ft=at;ft{if(me.shapeFlag&6)return ve(me.component.subTree);if(me.shapeFlag&128)return me.suspense.next();const ge=v(me.anchor||me.el),Be=ge&&ge[Cfe];return Be?v(Be):ge};let Re=!1;const Ge=(me,ge,Be)=>{me==null?ge._vnode&&ie(ge._vnode,null,null,!0):S(ge._vnode||null,me,ge,null,null,null,Be),ge._vnode=me,Re||(Re=!0,ene(),P8(),Re=!1)},nt={p:S,um:ie,m:Q,r:q,mt:U,mc:M,pc:ae,pbc:L,n:ve,o:e};let Ie,_e;return t&&([Ie,_e]=t(nt)),{render:Ge,hydrate:Ie,createApp:_Ae(Ge,Ie)}}function yP({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function yv({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function the(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function tH(e,t,n=!1){const r=e.children,i=t.children;if(Gn(r)&&Gn(i))for(let a=0;a>1,e[n[l]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function nhe(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nhe(t)}function O8(e){if(e)for(let t=0;tPn(rhe);function $s(e,t){return q_(e,null,t)}function AAe(e,t){return q_(e,null,{flush:"post"})}function ohe(e,t){return q_(e,null,{flush:"sync"})}function It(e,t,n){return q_(e,t,n)}function q_(e,t,n=Ai){const{immediate:r,deep:i,flush:a,once:s}=n,l=xi({},n),c=t&&r||!t&&a!=="post";let d;if(Ly){if(a==="sync"){const g=ihe();d=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=xa,g.resume=xa,g.pause=xa,g}}const h=Ga;l.call=(g,y,S)=>Zc(g,h,y,S);let p=!1;a==="post"?l.scheduler=g=>{ua(g,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(g,y)=>{y?g():zU(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,h&&(g.id=h.uid,g.i=h))};const v=k5e(e,t,l);return Ly&&(d?d.push(v):c&&v()),v}function IAe(e,t,n){const r=this.proxy,i=Mr(e)?e.includes(".")?she(r,e):()=>r[e]:e.bind(r,r);let a;Ar(t)?a=t:(a=t.handler,n=t);const s=Dm(this),l=q_(i,a.bind(r),n);return s(),l}function she(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{let h,p=Ai,v;return ohe(()=>{const g=e[i];bl(h,g)&&(h=g,d())}),{get(){return c(),n.get?n.get(h):h},set(g){const y=n.set?n.set(g):g;if(!bl(y,h)&&!(p!==Ai&&bl(g,p)))return;const S=r.vnode.props;S&&(t in S||i in S||a in S)&&(`onUpdate:${t}`in S||`onUpdate:${i}`in S||`onUpdate:${a}`in S)||(h=g,d()),r.emit(`update:${t}`,y),bl(g,y)&&bl(g,p)&&!bl(y,v)&&d(),p=g,v=y}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||Ai:l,done:!1}:{done:!0}}}},l}const ahe=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$o(t)}Modifiers`]||e[`${Sl(t)}Modifiers`];function DAe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ai;let i=n;const a=t.startsWith("update:"),s=a&&ahe(r,t.slice(7));s&&(s.trim&&(i=n.map(h=>Mr(h)?h.trim():h)),s.number&&(i=n.map(Hb)));let l,c=r[l=dm(t)]||r[l=dm($o(t))];!c&&a&&(c=r[l=dm(Sl(t))]),c&&Zc(c,e,6,i);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Zc(d,e,6,i)}}const PAe=new WeakMap;function lhe(e,t,n=!1){const r=n?PAe:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let s={},l=!1;if(!Ar(e)){const c=d=>{const h=lhe(d,t,!0);h&&(l=!0,xi(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Xi(e)&&r.set(e,null),null):(Gn(a)?a.forEach(c=>s[c]=null):xi(s,a),Xi(e)&&r.set(e,s),s)}function C5(e,t){return!e||!F0(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ki(e,t[0].toLowerCase()+t.slice(1))||Ki(e,Sl(t))||Ki(e,t))}function Qx(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:l,emit:c,render:d,renderCache:h,props:p,data:v,setupState:g,ctx:y,inheritAttrs:S}=e,k=Jb(e);let w,x;try{if(n.shapeFlag&4){const _=i||r,T=_;w=bu(d.call(T,_,h,p,g,v,y)),x=l}else{const _=t;w=bu(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),x=t.props?l:MAe(l)}}catch(_){J4.length=0,Zm(_,e,1),w=O(ws)}let E=w;if(x&&S!==!1){const _=Object.keys(x),{shapeFlag:T}=E;_.length&&T&7&&(a&&_.some(c5)&&(x=OAe(x,a)),E=El(E,x,!1,!0))}return n.dirs&&(E=El(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Wh(E,n.transition),w=E,Jb(k),w}function RAe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||F0(n))&&((t||(t={}))[n]=e[n]);return t},OAe=(e,t)=>{const n={};for(const r in e)(!c5(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function $Ae(e,t,n){const{props:r,children:i,component:a}=e,{props:s,children:l,patchFlag:c}=t,d=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?hne(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let jj=0;const BAe={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,s,l,c,d){if(e==null)FAe(t,n,r,i,a,s,l,c,d);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}jAe(e,t,n,r,i,s,l,c,d)}},hydrate:VAe,normalize:zAe},NAe=BAe;function e_(e,t){const n=e.props&&e.props[t];Ar(n)&&n()}function FAe(e,t,n,r,i,a,s,l,c){const{p:d,o:{createElement:h}}=c,p=h("div"),v=e.suspense=uhe(e,i,r,t,p,n,a,s,l,c);d(null,v.pendingBranch=e.ssContent,p,null,r,v,a,s),v.deps>0?(e_(e,"onPending"),e_(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,a,s),sy(v,e.ssFallback)):v.resolve(!1,!0)}function jAe(e,t,n,r,i,a,s,l,{p:c,um:d,o:{createElement:h}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const v=t.ssContent,g=t.ssFallback,{activeBranch:y,pendingBranch:S,isInFallback:k,isHydrating:w}=p;if(S)p.pendingBranch=v,Cd(S,v)?(c(S,v,p.hiddenContainer,null,i,p,a,s,l),p.deps<=0?p.resolve():k&&(w||(c(y,g,n,r,i,null,a,s,l),sy(p,g)))):(p.pendingId=jj++,w?(p.isHydrating=!1,p.activeBranch=S):d(S,i,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),k?(c(null,v,p.hiddenContainer,null,i,p,a,s,l),p.deps<=0?p.resolve():(c(y,g,n,r,i,null,a,s,l),sy(p,g))):y&&Cd(y,v)?(c(y,v,n,r,i,p,a,s,l),p.resolve(!0)):(c(null,v,p.hiddenContainer,null,i,p,a,s,l),p.deps<=0&&p.resolve()));else if(y&&Cd(y,v))c(y,v,n,r,i,p,a,s,l),sy(p,v);else if(e_(t,"onPending"),p.pendingBranch=v,v.shapeFlag&512?p.pendingId=v.component.suspenseId:p.pendingId=jj++,c(null,v,p.hiddenContainer,null,i,p,a,s,l),p.deps<=0)p.resolve();else{const{timeout:x,pendingId:E}=p;x>0?setTimeout(()=>{p.pendingId===E&&p.fallback(g)},x):x===0&&p.fallback(g)}}function uhe(e,t,n,r,i,a,s,l,c,d,h=!1){const{p,m:v,um:g,n:y,o:{parentNode:S,remove:k}}=d;let w;const x=UAe(e);x&&t&&t.pendingBranch&&(w=t.pendingId,t.deps++);const E=e.props?Wb(e.props.timeout):void 0,_=a,T={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:jj++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(D=!1,P=!1){const{vnode:M,activeBranch:$,pendingBranch:L,pendingId:B,effects:j,parentComponent:H,container:U}=T;let W=!1;T.isHydrating?T.isHydrating=!1:D||(W=$&&L.transition&&L.transition.mode==="out-in",W&&($.transition.afterLeave=()=>{B===T.pendingId&&(v(L,U,a===_?y($):a,0),Xb(j))}),$&&(S($.el)===U&&(a=y($)),g($,H,T,!0)),W||v(L,U,a,0)),sy(T,L),T.pendingBranch=null,T.isInFallback=!1;let K=T.parent,oe=!1;for(;K;){if(K.pendingBranch){K.effects.push(...j),oe=!0;break}K=K.parent}!oe&&!W&&Xb(j),T.effects=[],x&&t&&t.pendingBranch&&w===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),e_(M,"onResolve")},fallback(D){if(!T.pendingBranch)return;const{vnode:P,activeBranch:M,parentComponent:$,container:L,namespace:B}=T;e_(P,"onFallback");const j=y(M),H=()=>{T.isInFallback&&(p(null,D,L,j,$,null,B,l,c),sy(T,D))},U=D.transition&&D.transition.mode==="out-in";U&&(M.transition.afterLeave=H),T.isInFallback=!0,g(M,$,null,!0),U||H()},move(D,P,M){T.activeBranch&&v(T.activeBranch,D,P,M),T.container=D},next(){return T.activeBranch&&y(T.activeBranch)},registerDep(D,P,M){const $=!!T.pendingBranch;$&&T.deps++;const L=D.vnode.el;D.asyncDep.catch(B=>{Zm(B,D,0)}).then(B=>{if(D.isUnmounted||T.isUnmounted||T.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:j}=D;Uj(D,B,!1),L&&(j.el=L);const H=!L&&D.subTree.el;P(D,j,S(L||D.subTree.el),L?null:y(D.subTree),T,s,M),H&&k(H),E5(D,j.el),$&&--T.deps===0&&T.resolve()})},unmount(D,P){T.isUnmounted=!0,T.activeBranch&&g(T.activeBranch,n,D,P),T.pendingBranch&&g(T.pendingBranch,n,D,P)}};return T}function VAe(e,t,n,r,i,a,s,l,c){const d=t.suspense=uhe(t,r,n,e.parentNode,document.createElement("div"),null,i,a,s,l,!0),h=c(e,d.pendingBranch=t.ssContent,n,d,a,s);return d.deps===0&&d.resolve(!1,!0),h}function zAe(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=pne(r?n.default:n),e.ssFallback=r?pne(n.fallback):O(ws)}function pne(e){let t;if(Ar(e)){const n=Lm&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=xl,dhe())}return Gn(e)&&(e=RAe(e)),e=bu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function che(e,t){t&&t.pendingBranch?Gn(e)?t.effects.push(...e):t.effects.push(e):Xb(e)}function sy(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,E5(r,i))}function UAe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Pt=Symbol.for("v-fgt"),v0=Symbol.for("v-txt"),ws=Symbol.for("v-cmt"),vm=Symbol.for("v-stc"),J4=[];let xl=null;function z(e=!1){J4.push(xl=e?null:[])}function dhe(){J4.pop(),xl=J4[J4.length-1]||null}let Lm=1;function t_(e,t=!1){Lm+=e,e<0&&xl&&t&&(xl.hasOnce=!0)}function fhe(e){return e.dynamicChildren=Lm>0?xl||um:null,dhe(),Lm>0&&xl&&xl.push(e),e}function X(e,t,n,r,i,a){return fhe(I(e,t,n,r,i,a,!0))}function Ze(e,t,n,r,i){return fhe(O(e,t,n,r,i,!0))}function Wi(e){return e?e.__v_isVNode===!0:!1}function Cd(e,t){return e.type===t.type&&e.key===t.key}function HAe(e){}const hhe=({key:e})=>e??null,eC=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Mr(e)||Bo(e)||Ar(e)?{i:qa,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,i=null,a=e===Pt?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hhe(t),ref:t&&eC(t),scopeId:k5,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:qa};return l?(nH(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Mr(n)?8:16),Lm>0&&!s&&xl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&xl.push(c),c}const O=WAe;function WAe(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Ffe)&&(e=ws),Wi(e)){const l=El(e,t,!0);return n&&nH(l,n),Lm>0&&!a&&xl&&(l.shapeFlag&6?xl[xl.indexOf(e)]=l:xl.push(l)),l.patchFlag=-2,l}if(JAe(e)&&(e=e.__vccOpts),t){t=wa(t);let{class:l,style:c}=t;l&&!Mr(l)&&(t.class=fe(l)),Xi(c)&&(_5(c)&&!Gn(c)&&(c=xi({},c)),t.style=qe(c))}const s=Mr(e)?1:$8(e)?128:Efe(e)?64:Xi(e)?4:Ar(e)?2:0;return I(e,t,n,r,i,s,a,!0)}function wa(e){return e?_5(e)||Gfe(e)?xi({},e):e:null}function El(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:l,transition:c}=e,d=t?Ft(i||{},t):i,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&hhe(d),ref:t&&t.ref?n&&a?Gn(a)?a.concat(eC(t)):[a,eC(t)]:eC(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&El(e.ssContent),ssFallback:e.ssFallback&&El(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Wh(h,c.clone(h)),h}function He(e=" ",t=0){return O(v0,null,e,t)}function Ch(e,t){const n=O(vm,null,e);return n.staticCount=t,n}function Ae(e="",t=!1){return t?(z(),Ze(ws,null,e)):O(ws,null,e)}function bu(e){return e==null||typeof e=="boolean"?O(ws):Gn(e)?O(Pt,null,e.slice()):Wi(e)?Xp(e):O(v0,null,String(e))}function Xp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:El(e)}function nH(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Gn(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),nH(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Gfe(t)?t._ctx=qa:i===3&&qa&&(qa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ar(t)?(t={default:t,_ctx:qa},n=32):(t=String(t),r&64?(n=16,t=[He(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ft(...e){const t={};for(let n=0;nGa||qa;let B8,Vj;{const e=W_(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};B8=t("__VUE_INSTANCE_SETTERS__",n=>Ga=n),Vj=t("__VUE_SSR_SETTERS__",n=>Ly=n)}const Dm=e=>{const t=Ga;return B8(e),e.scope.on(),()=>{e.scope.off(),B8(t)}},zj=()=>{Ga&&Ga.scope.off(),B8(null)};function vhe(e){return e.vnode.shapeFlag&4}let Ly=!1;function mhe(e,t=!1,n=!1){t&&Vj(t);const{props:r,children:i}=e.vnode,a=vhe(e);SAe(e,r,a,t),CAe(e,i,n||t);const s=a?qAe(e,t):void 0;return t&&Vj(!1),s}function qAe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$j);const{setup:r}=n;if(r){zh();const i=e.setupContext=r.length>1?yhe(e):null,a=Dm(e),s=r3(r,e,0,[e.props,i]),l=f5(s);if(Uh(),a(),(l||e.sp)&&!p0(e)&&WU(e),l){if(s.then(zj,zj),t)return s.then(c=>{Uj(e,c,t)}).catch(c=>{Zm(c,e,0)});e.asyncDep=s}else Uj(e,s,t)}else ghe(e,t)}function Uj(e,t,n){Ar(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xi(t)&&(e.setupState=VU(t)),ghe(e,n)}let N8,Hj;function YAe(e){N8=e,Hj=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,eAe))}}const XAe=()=>!N8;function ghe(e,t,n){const r=e.type;if(!e.render){if(!t&&N8&&!r.render){const i=r.template||JU(e).template;if(i){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=xi(xi({isCustomElement:a,delimiters:l},s),c);r.render=N8(i,d)}}e.render=r.render||xa,Hj&&Hj(e)}{const i=Dm(e);zh();try{pAe(e)}finally{Uh(),i()}}}const ZAe={get(e,t){return _l(e,"get",""),e[t]}};function yhe(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ZAe),slots:e.slots,emit:e.emit,expose:t}}function Y_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(VU(S5(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Z4)return Z4[n](e)},has(t,n){return n in t||n in Z4}})):e.proxy}function Wj(e,t=!0){return Ar(e)?e.displayName||e.name:e.name||t&&e.__name}function JAe(e){return Ar(e)&&"__vccOpts"in e}const F=(e,t)=>y5e(e,t,Ly);function fa(e,t,n){try{t_(-1);const r=arguments.length;return r===2?Xi(t)&&!Gn(t)?Wi(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wi(n)&&(n=[n]),O(e,t,n))}finally{t_(1)}}function QAe(){}function eIe(e,t,n,r){const i=n[r];if(i&&bhe(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function bhe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&xl&&xl.push(e),!0}const _he="3.5.22",tIe=xa,nIe=T5e,rIe=F1,iIe=xfe,oIe={createComponentInstance:phe,setupComponent:mhe,renderComponentRoot:Qx,setCurrentRenderingInstance:Jb,isVNode:Wi,normalizeVNode:bu,getComponentPublicInstance:Y_,ensureValidVNode:ZU,pushWarningContext:w5e,popWarningContext:x5e},sIe=oIe,aIe=null,lIe=null,uIe=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Hj;const vne=typeof window<"u"&&window.trustedTypes;if(vne)try{Hj=vne.createPolicy("vue",{createHTML:e=>e})}catch{}const She=Hj?e=>Hj.createHTML(e):e=>e,cIe="http://www.w3.org/2000/svg",dIe="http://www.w3.org/1998/Math/MathML",hh=typeof document<"u"?document:null,mne=hh&&hh.createElement("template"),fIe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?hh.createElementNS(cIe,e):t==="mathml"?hh.createElementNS(dIe,e):n?hh.createElement(e,{is:n}):hh.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>hh.createTextNode(e),createComment:e=>hh.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>hh.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{mne.innerHTML=She(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=mne.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Cp="transition",q2="animation",Ly=Symbol("_vtc"),khe={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},xhe=Ci({},zU,khe),hIe=e=>(e.displayName="Transition",e.props=xhe,e),Cs=hIe((e,{slots:t})=>fa(Dfe,Che(e),t)),mv=(e,t=[])=>{Gn(e)?e.forEach(n=>n(...t)):e&&e(...t)},gne=e=>e?Gn(e)?e.some(t=>t.length>1):e.length>1:!1;function Che(e){const t={};for(const j in e)j in khe||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:d=s,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,y=pIe(i),S=y&&y[0],k=y&&y[1],{onBeforeEnter:C,onEnter:x,onEnterCancelled:E,onLeave:_,onLeaveCancelled:T,onBeforeAppear:D=C,onAppear:P=x,onAppearCancelled:M=E}=t,O=(j,H,U,K)=>{j._enterCancelled=K,Vp(j,H?h:l),Vp(j,H?d:s),U&&U()},L=(j,H)=>{j._isLeaving=!1,Vp(j,p),Vp(j,g),Vp(j,v),H&&H()},B=j=>(H,U)=>{const K=j?P:x,Y=()=>O(H,j,U);mv(K,[H,Y]),yne(()=>{Vp(H,j?c:a),tf(H,j?h:l),gne(K)||bne(H,r,S,Y)})};return Ci(t,{onBeforeEnter(j){mv(C,[j]),tf(j,a),tf(j,s)},onBeforeAppear(j){mv(D,[j]),tf(j,c),tf(j,d)},onEnter:B(!1),onAppear:B(!0),onLeave(j,H){j._isLeaving=!0;const U=()=>L(j,H);tf(j,p),j._enterCancelled?(tf(j,v),Wj(j)):(Wj(j),tf(j,v)),yne(()=>{j._isLeaving&&(Vp(j,p),tf(j,g),gne(_)||bne(j,r,k,U))}),mv(_,[j,U])},onEnterCancelled(j){O(j,!1,void 0,!0),mv(E,[j])},onAppearCancelled(j){O(j,!0,void 0,!0),mv(M,[j])},onLeaveCancelled(j){L(j),mv(T,[j])}})}function pIe(e){if(e==null)return null;if(Xi(e))return[gP(e.enter),gP(e.leave)];{const t=gP(e);return[t,t]}}function gP(e){return Wb(e)}function tf(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ly]||(e[Ly]=new Set)).add(t)}function Vp(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ly];n&&(n.delete(t),n.size||(e[Ly]=void 0))}function yne(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vIe=0;function bne(e,t,n,r){const i=e._endId=++vIe,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=whe(e,t);if(!s)return r();const d=s+"end";let h=0;const p=()=>{e.removeEventListener(d,v),a()},v=g=>{g.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[y]||"").split(", "),i=r(`${Cp}Delay`),a=r(`${Cp}Duration`),s=_ne(i,a),l=r(`${q2}Delay`),c=r(`${q2}Duration`),d=_ne(l,c);let h=null,p=0,v=0;t===Cp?s>0&&(h=Cp,p=s,v=a.length):t===q2?d>0&&(h=q2,p=d,v=c.length):(p=Math.max(s,d),h=p>0?s>d?Cp:q2:null,v=h?h===Cp?a.length:c.length:0);const g=h===Cp&&/\b(?:transform|all)(?:,|$)/.test(r(`${Cp}Property`).toString());return{type:h,timeout:p,propCount:v,hasTransform:g}}function _ne(e,t){for(;e.lengthSne(n)+Sne(e[r])))}function Sne(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Wj(e){return(e?e.ownerDocument:document).body.offsetHeight}function mIe(e,t,n){const r=e[Ly];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const N8=Symbol("_vod"),Ehe=Symbol("_vsh"),es={name:"show",beforeMount(e,{value:t},{transition:n}){e[N8]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Y2(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Y2(e,!0),r.enter(e)):r.leave(e,()=>{Y2(e,!1)}):Y2(e,t))},beforeUnmount(e,{value:t}){Y2(e,t)}};function Y2(e,t){e.style.display=t?e[N8]:"none",e[Ehe]=!t}function gIe(){es.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const The=Symbol("");function Ahe(e){const t=So();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>F8(a,i))},r=()=>{const i=e(t.proxy);t.ce?F8(t.ce,i):Gj(t.subTree,i),n(i)};GU(()=>{Xb(r)}),hn(()=>{It(r,Ca,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),ii(()=>i.disconnect())})}function Gj(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Gj(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)F8(e.el,t);else if(e.type===Pt)e.children.forEach(n=>Gj(n,t));else if(e.type===hm){let{el:n,anchor:r}=e;for(;n&&(F8(n,t),n!==r);)n=n.nextSibling}}function F8(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const a=efe(t[i]);n.setProperty(`--${i}`,a),r+=`--${i}: ${a};`}n[The]=r}}const yIe=/(?:^|;)\s*display\s*:/;function bIe(e,t,n){const r=e.style,i=Mr(n);let a=!1;if(n&&!i){if(t)if(Mr(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&ew(r,l,"")}else for(const s in t)n[s]==null&&ew(r,s,"");for(const s in n)s==="display"&&(a=!0),ew(r,s,n[s])}else if(i){if(t!==n){const s=r[The];s&&(n+=";"+s),r.cssText=n,a=yIe.test(n)}}else t&&e.removeAttribute("style");N8 in e&&(e[N8]=a?r.display:"",e[Ehe]&&(r.display="none"))}const kne=/\s*!important$/;function ew(e,t,n){if(Gn(n))n.forEach(r=>ew(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_Ie(e,t);kne.test(n)?e.setProperty(Sl(r),n.replace(kne,""),"important"):e[r]=n}}const xne=["Webkit","Moz","ms"],yP={};function _Ie(e,t){const n=yP[t];if(n)return n;let r=Oo(t);if(r!=="filter"&&r in e)return yP[t]=r;r=N0(r);for(let i=0;ibP||(CIe.then(()=>bP=0),bP=Date.now());function EIe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Zc(TIe(r,n.value),t,5,[r])};return n.value=e,n.attached=wIe(),n}function TIe(e,t){if(Gn(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Ine=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,AIe=(e,t,n,r,i,a)=>{const s=i==="svg";t==="class"?mIe(e,r,s):t==="style"?bIe(e,n,r):O0(t)?u5(t)||kIe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):IIe(e,t,r,s))?(Ene(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&wne(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Mr(r))?Ene(e,Oo(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),wne(e,t,r,s))};function IIe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ine(t)&&Ar(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ine(t)&&Mr(n)?!1:t in e}const Lne={};function Ihe(e,t,n){let r=we(e,t);U_(r)&&(r=Ci({},r,t));class i extends E5{constructor(s){super(r,s,n)}}return i.def=r,i}const LIe=((e,t)=>Ihe(e,t,Nhe)),DIe=typeof HTMLElement<"u"?HTMLElement:class{};class E5 extends DIe{constructor(t,n={},r=Py){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Py?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ci({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof E5){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,dn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:s}=r;let l;if(a&&!Gn(a))for(const c in a){const d=a[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Wb(this._props[c])),(l||(l=Object.create(null)))[Oo(c)]=!0)}this._numberProps=l,this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Ki(this,r)||Object.defineProperty(this,r,{get:()=>rt(n[r])})}_resolveProps(t){const{props:n}=t,r=Gn(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(Oo))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Lne;const i=Oo(t);n&&this._numberProps&&this._numberProps[i]&&(r=Wb(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(n===Lne?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const a=this._ob;a&&(this._processMutations(a.takeRecords()),a.disconnect()),n===!0?this.setAttribute(Sl(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Sl(t),n+""):n||this.removeAttribute(Sl(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Jc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=$(this._def,Ci(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(a,s)=>{this.dispatchEvent(new CustomEvent(a,U_(s[0])?Ci({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{i(a,s),Sl(a)!==a&&i(Sl(a),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=t.length-1;i>=0;i--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[i],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r(n.push(...Array.from(r.querySelectorAll("slot"))),n),[])}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function Lhe(e){const t=So(),n=t&&t.ce;return n||null}function PIe(){const e=Lhe();return e&&e.shadowRoot}function RIe(e="$style"){{const t=So();if(!t)return Ti;const n=t.type.__cssModules;if(!n)return Ti;const r=n[e];return r||Ti}}const Dhe=new WeakMap,Phe=new WeakMap,j8=Symbol("_moveCb"),Dne=Symbol("_enterCb"),MIe=e=>(delete e.props.mode,e),$Ie=MIe({name:"TransitionGroup",props:Ci({},xhe,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=So(),r=VU();let i,a;return tl(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!FIe(i[0].el,n.vnode.el,s)){i=[];return}i.forEach(OIe),i.forEach(BIe);const l=i.filter(NIe);Wj(n.vnode.el),l.forEach(c=>{const d=c.el,h=d.style;tf(d,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=d[j8]=v=>{v&&v.target!==d||(!v||v.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",p),d[j8]=null,Vp(d,s))};d.addEventListener("transitionend",p)}),i=[]}),()=>{const s=Bi(e),l=Che(s);let c=s.tag||Pt;if(i=[],a)for(let d=0;d{l.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=whe(r);return a.removeChild(r),s}const S0=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Gn(t)?n=>cm(t,n):t};function jIe(e){e.target.composing=!0}function Pne(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Uc=Symbol("_assign"),Ql={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Uc]=S0(i);const a=r||i.props&&i.props.type==="number";_h(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=Hb(l)),e[Uc](l)}),n&&_h(e,"change",()=>{e.value=e.value.trim()}),t||(_h(e,"compositionstart",jIe),_h(e,"compositionend",Pne),_h(e,"change",Pne))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[Uc]=S0(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?Hb(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},tH={deep:!0,created(e,t,n){e[Uc]=S0(n),_h(e,"change",()=>{const r=e._modelValue,i=Dy(e),a=e.checked,s=e[Uc];if(Gn(r)){const l=W_(r,i),c=l!==-1;if(a&&!c)s(r.concat(i));else if(!a&&c){const d=[...r];d.splice(l,1),s(d)}}else if(B0(r)){const l=new Set(r);a?l.add(i):l.delete(i),s(l)}else s(Rhe(e,a))})},mounted:Rne,beforeUpdate(e,t,n){e[Uc]=S0(n),Rne(e,t,n)}};function Rne(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Gn(t))i=W_(t,r.props.value)>-1;else if(B0(t))i=t.has(r.props.value);else{if(t===n)return;i=Fh(t,Rhe(e,!0))}e.checked!==i&&(e.checked=i)}const nH={created(e,{value:t},n){e.checked=Fh(t,n.props.value),e[Uc]=S0(n),_h(e,"change",()=>{e[Uc](Dy(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Uc]=S0(r),t!==n&&(e.checked=Fh(t,r.props.value))}},rH={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=B0(t);_h(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Hb(Dy(s)):Dy(s));e[Uc](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,dn(()=>{e._assigning=!1})}),e[Uc]=S0(r)},mounted(e,{value:t}){Mne(e,t)},beforeUpdate(e,t,n){e[Uc]=S0(n)},updated(e,{value:t}){e._assigning||Mne(e,t)}};function Mne(e,t){const n=e.multiple,r=Gn(t);if(!(n&&!r&&!B0(t))){for(let i=0,a=e.options.length;iString(d)===String(l)):s.selected=W_(t,l)>-1}else s.selected=t.has(l);else if(Fh(Dy(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Dy(e){return"_value"in e?e._value:e.value}function Rhe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const T5={created(e,t,n){yx(e,t,n,null,"created")},mounted(e,t,n){yx(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){yx(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){yx(e,t,n,r,"updated")}};function Mhe(e,t){switch(e){case"SELECT":return rH;case"TEXTAREA":return Ql;default:switch(t){case"checkbox":return tH;case"radio":return nH;default:return Ql}}}function yx(e,t,n,r,i){const s=Mhe(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}function VIe(){Ql.getSSRProps=({value:e})=>({value:e}),nH.getSSRProps=({value:e},t)=>{if(t.props&&Fh(t.props.value,e))return{checked:!0}},tH.getSSRProps=({value:e},t)=>{if(Gn(e)){if(t.props&&W_(e,t.props.value)>-1)return{checked:!0}}else if(B0(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},T5.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Mhe(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const zIe=["ctrl","shift","alt","meta"],UIe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>zIe.some(n=>e[`${n}Key`]&&!t.includes(n))},cs=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...a)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const a=Sl(i.key);if(t.some(s=>s===a||HIe[s]===a))return e(i)}))},$he=Ci({patchProp:AIe},fIe);let Q4,$ne=!1;function Ohe(){return Q4||(Q4=Jfe($he))}function Bhe(){return Q4=$ne?Q4:Qfe($he),$ne=!0,Q4}const Jc=((...e)=>{Ohe().render(...e)}),WIe=((...e)=>{Bhe().hydrate(...e)}),Py=((...e)=>{const t=Ohe().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=jhe(r);if(!i)return;const a=t._component;!Ar(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,Fhe(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t}),Nhe=((...e)=>{const t=Bhe().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=jhe(r);if(i)return n(i,!0,Fhe(i))},t});function Fhe(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jhe(e){return Mr(e)?document.querySelector(e):e}let One=!1;const GIe=()=>{One||(One=!0,VIe(),gIe())},KIe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Dfe,BaseTransitionPropsValidators:zU,Comment:ks,DeprecationTypes:uIe,EffectScope:PU,ErrorCodes:E5e,ErrorTypeStrings:nIe,Fragment:Pt,KeepAlive:X5e,ReactiveEffect:Gb,Static:hm,Suspense:NAe,Teleport:Zm,Text:p0,TrackOpTypes:b5e,Transition:Cs,TransitionGroup:o3,TriggerOpTypes:_5e,VueElement:E5,assertNumber:w5e,callWithAsyncErrorHandling:Zc,callWithErrorHandling:r3,camelize:Oo,capitalize:N0,cloneVNode:El,compatUtils:lIe,computed:F,createApp:Py,createBlock:Ze,createCommentVNode:Ie,createElementBlock:X,createElementVNode:I,createHydrationRenderer:Qfe,createPropsRestProxy:fAe,createRenderer:Jfe,createSSRApp:Nhe,createSlots:yo,createStaticVNode:xh,createTextVNode:He,createVNode:$,customRef:gfe,defineAsyncComponent:Jm,defineComponent:we,defineCustomElement:Ihe,defineEmits:nAe,defineExpose:rAe,defineModel:sAe,defineOptions:iAe,defineProps:tAe,defineSSRCustomElement:LIe,defineSlots:oAe,devtools:rIe,effect:UTe,effectScope:RU,getCurrentInstance:So,getCurrentScope:p5,getCurrentWatcher:S5e,getTransitionRawChildren:k5,guardReactiveProps:xa,h:fa,handleError:Xm,hasInjectionContext:Ufe,hydrate:WIe,hydrateOnIdle:U5e,hydrateOnInteraction:K5e,hydrateOnMediaQuery:G5e,hydrateOnVisible:W5e,initCustomFormatter:QAe,initDirectivesForSSR:GIe,inject:Pn,isMemoSame:bhe,isProxy:b5,isReactive:gf,isReadonly:zh,isRef:Bo,isRuntimeOnly:XAe,isShallow:lc,isVNode:Wi,markRaw:_5,mergeDefaults:cAe,mergeModels:dAe,mergeProps:Ft,nextTick:dn,normalizeClass:de,normalizeProps:qi,normalizeStyle:Ye,onActivated:HU,onBeforeMount:Mfe,onBeforeUnmount:_o,onBeforeUpdate:GU,onDeactivated:WU,onErrorCaptured:Nfe,onMounted:hn,onRenderTracked:Bfe,onRenderTriggered:Ofe,onScopeDispose:MU,onServerPrefetch:$fe,onUnmounted:ii,onUpdated:tl,onWatcherCleanup:bfe,openBlock:z,popScopeId:D5e,provide:ri,proxyRefs:FU,pushScopeId:L5e,queuePostFlushCb:Xb,reactive:qt,readonly:Yb,ref:ue,registerRuntimeCompiler:YAe,render:Jc,renderList:cn,renderSlot:mt,resolveComponent:Te,resolveDirective:i3,resolveDynamicComponent:wa,resolveFilter:aIe,resolveTransitionHooks:Ay,setBlockTracking:t_,setDevtoolsHook:iIe,setTransitionHooks:Uh,shallowReactive:NU,shallowReadonly:u5e,shallowRef:f0,ssrContextKey:rhe,ssrUtils:sIe,stop:HTe,toDisplayString:Ne,toHandlerKey:um,toHandlers:Q5e,toRaw:Bi,toRef:Du,toRefs:tn,toValue:f5e,transformVNodeArgs:HAe,triggerRef:d5e,unref:rt,useAttrs:uAe,useCssModule:RIe,useCssVars:Ahe,useHost:Lhe,useId:$5e,useModel:LAe,useSSRContext:ihe,useShadowRoot:PIe,useSlots:lAe,useTemplateRef:O5e,useTransitionState:VU,vModelCheckbox:tH,vModelDynamic:T5,vModelRadio:nH,vModelSelect:rH,vModelText:Ql,vShow:es,version:_he,warn:tIe,watch:It,watchEffect:Os,watchPostEffect:AAe,watchSyncEffect:ohe,withAsyncContext:hAe,withCtx:fe,withDefaults:aAe,withDirectives:Ai,withKeys:df,withMemo:eIe,withModifiers:cs,withScopeId:P5e},Symbol.toStringTag,{value:"Module"}));/*! +**/let Gj;const vne=typeof window<"u"&&window.trustedTypes;if(vne)try{Gj=vne.createPolicy("vue",{createHTML:e=>e})}catch{}const She=Gj?e=>Gj.createHTML(e):e=>e,cIe="http://www.w3.org/2000/svg",dIe="http://www.w3.org/1998/Math/MathML",vh=typeof document<"u"?document:null,mne=vh&&vh.createElement("template"),fIe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?vh.createElementNS(cIe,e):t==="mathml"?vh.createElementNS(dIe,e):n?vh.createElement(e,{is:n}):vh.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>vh.createTextNode(e),createComment:e=>vh.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vh.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{mne.innerHTML=She(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=mne.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ep="transition",q2="animation",Dy=Symbol("_vtc"),khe={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},whe=xi({},HU,khe),hIe=e=>(e.displayName="Transition",e.props=whe,e),Cs=hIe((e,{slots:t})=>fa(Dfe,xhe(e),t)),bv=(e,t=[])=>{Gn(e)?e.forEach(n=>n(...t)):e&&e(...t)},gne=e=>e?Gn(e)?e.some(t=>t.length>1):e.length>1:!1;function xhe(e){const t={};for(const j in e)j in khe||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:d=s,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,y=pIe(i),S=y&&y[0],k=y&&y[1],{onBeforeEnter:w,onEnter:x,onEnterCancelled:E,onLeave:_,onLeaveCancelled:T,onBeforeAppear:D=w,onAppear:P=x,onAppearCancelled:M=E}=t,$=(j,H,U,W)=>{j._enterCancelled=W,Up(j,H?h:l),Up(j,H?d:s),U&&U()},L=(j,H)=>{j._isLeaving=!1,Up(j,p),Up(j,g),Up(j,v),H&&H()},B=j=>(H,U)=>{const W=j?P:x,K=()=>$(H,j,U);bv(W,[H,K]),yne(()=>{Up(H,j?c:a),tf(H,j?h:l),gne(W)||bne(H,r,S,K)})};return xi(t,{onBeforeEnter(j){bv(w,[j]),tf(j,a),tf(j,s)},onBeforeAppear(j){bv(D,[j]),tf(j,c),tf(j,d)},onEnter:B(!1),onAppear:B(!0),onLeave(j,H){j._isLeaving=!0;const U=()=>L(j,H);tf(j,p),j._enterCancelled?(tf(j,v),Kj(j)):(Kj(j),tf(j,v)),yne(()=>{j._isLeaving&&(Up(j,p),tf(j,g),gne(_)||bne(j,r,k,U))}),bv(_,[j,U])},onEnterCancelled(j){$(j,!1,void 0,!0),bv(E,[j])},onAppearCancelled(j){$(j,!0,void 0,!0),bv(M,[j])},onLeaveCancelled(j){L(j),bv(T,[j])}})}function pIe(e){if(e==null)return null;if(Xi(e))return[bP(e.enter),bP(e.leave)];{const t=bP(e);return[t,t]}}function bP(e){return Wb(e)}function tf(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Dy]||(e[Dy]=new Set)).add(t)}function Up(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Dy];n&&(n.delete(t),n.size||(e[Dy]=void 0))}function yne(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vIe=0;function bne(e,t,n,r){const i=e._endId=++vIe,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=Che(e,t);if(!s)return r();const d=s+"end";let h=0;const p=()=>{e.removeEventListener(d,v),a()},v=g=>{g.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[y]||"").split(", "),i=r(`${Ep}Delay`),a=r(`${Ep}Duration`),s=_ne(i,a),l=r(`${q2}Delay`),c=r(`${q2}Duration`),d=_ne(l,c);let h=null,p=0,v=0;t===Ep?s>0&&(h=Ep,p=s,v=a.length):t===q2?d>0&&(h=q2,p=d,v=c.length):(p=Math.max(s,d),h=p>0?s>d?Ep:q2:null,v=h?h===Ep?a.length:c.length:0);const g=h===Ep&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ep}Property`).toString());return{type:h,timeout:p,propCount:v,hasTransform:g}}function _ne(e,t){for(;e.lengthSne(n)+Sne(e[r])))}function Sne(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Kj(e){return(e?e.ownerDocument:document).body.offsetHeight}function mIe(e,t,n){const r=e[Dy];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const F8=Symbol("_vod"),Ehe=Symbol("_vsh"),Ko={name:"show",beforeMount(e,{value:t},{transition:n}){e[F8]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Y2(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Y2(e,!0),r.enter(e)):r.leave(e,()=>{Y2(e,!1)}):Y2(e,t))},beforeUnmount(e,{value:t}){Y2(e,t)}};function Y2(e,t){e.style.display=t?e[F8]:"none",e[Ehe]=!t}function gIe(){Ko.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const The=Symbol("");function Ahe(e){const t=So();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>j8(a,i))},r=()=>{const i=e(t.proxy);t.ce?j8(t.ce,i):qj(t.subTree,i),n(i)};qU(()=>{Xb(r)}),fn(()=>{It(r,xa,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Yr(()=>i.disconnect())})}function qj(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{qj(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)j8(e.el,t);else if(e.type===Pt)e.children.forEach(n=>qj(n,t));else if(e.type===vm){let{el:n,anchor:r}=e;for(;n&&(j8(n,t),n!==r);)n=n.nextSibling}}function j8(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const a=efe(t[i]);n.setProperty(`--${i}`,a),r+=`--${i}: ${a};`}n[The]=r}}const yIe=/(?:^|;)\s*display\s*:/;function bIe(e,t,n){const r=e.style,i=Mr(n);let a=!1;if(n&&!i){if(t)if(Mr(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&tC(r,l,"")}else for(const s in t)n[s]==null&&tC(r,s,"");for(const s in n)s==="display"&&(a=!0),tC(r,s,n[s])}else if(i){if(t!==n){const s=r[The];s&&(n+=";"+s),r.cssText=n,a=yIe.test(n)}}else t&&e.removeAttribute("style");F8 in e&&(e[F8]=a?r.display:"",e[Ehe]&&(r.display="none"))}const kne=/\s*!important$/;function tC(e,t,n){if(Gn(n))n.forEach(r=>tC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_Ie(e,t);kne.test(n)?e.setProperty(Sl(r),n.replace(kne,""),"important"):e[r]=n}}const wne=["Webkit","Moz","ms"],_P={};function _Ie(e,t){const n=_P[t];if(n)return n;let r=$o(t);if(r!=="filter"&&r in e)return _P[t]=r;r=V0(r);for(let i=0;iSP||(xIe.then(()=>SP=0),SP=Date.now());function EIe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Zc(TIe(r,n.value),t,5,[r])};return n.value=e,n.attached=CIe(),n}function TIe(e,t){if(Gn(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Ine=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,AIe=(e,t,n,r,i,a)=>{const s=i==="svg";t==="class"?mIe(e,r,s):t==="style"?bIe(e,n,r):F0(t)?c5(t)||kIe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):IIe(e,t,r,s))?(Ene(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Cne(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Mr(r))?Ene(e,$o(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Cne(e,t,r,s))};function IIe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ine(t)&&Ar(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ine(t)&&Mr(n)?!1:t in e}const Lne={};function Ihe(e,t,n){let r=xe(e,t);H_(r)&&(r=xi({},r,t));class i extends T5{constructor(s){super(r,s,n)}}return i.def=r,i}const LIe=((e,t)=>Ihe(e,t,Nhe)),DIe=typeof HTMLElement<"u"?HTMLElement:class{};class T5 extends DIe{constructor(t,n={},r=Ry){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Ry?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(xi({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof T5){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,dn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:s}=r;let l;if(a&&!Gn(a))for(const c in a){const d=a[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Wb(this._props[c])),(l||(l=Object.create(null)))[$o(c)]=!0)}this._numberProps=l,this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Ki(this,r)||Object.defineProperty(this,r,{get:()=>tt(n[r])})}_resolveProps(t){const{props:n}=t,r=Gn(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map($o))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Lne;const i=$o(t);n&&this._numberProps&&this._numberProps[i]&&(r=Wb(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(n===Lne?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const a=this._ob;a&&(this._processMutations(a.takeRecords()),a.disconnect()),n===!0?this.setAttribute(Sl(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Sl(t),n+""):n||this.removeAttribute(Sl(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Jc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=O(this._def,xi(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(a,s)=>{this.dispatchEvent(new CustomEvent(a,H_(s[0])?xi({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{i(a,s),Sl(a)!==a&&i(Sl(a),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=t.length-1;i>=0;i--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[i],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r(n.push(...Array.from(r.querySelectorAll("slot"))),n),[])}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function Lhe(e){const t=So(),n=t&&t.ce;return n||null}function PIe(){const e=Lhe();return e&&e.shadowRoot}function RIe(e="$style"){{const t=So();if(!t)return Ai;const n=t.type.__cssModules;if(!n)return Ai;const r=n[e];return r||Ai}}const Dhe=new WeakMap,Phe=new WeakMap,V8=Symbol("_moveCb"),Dne=Symbol("_enterCb"),MIe=e=>(delete e.props.mode,e),OIe=MIe({name:"TransitionGroup",props:xi({},whe,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=So(),r=UU();let i,a;return tl(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!FIe(i[0].el,n.vnode.el,s)){i=[];return}i.forEach($Ie),i.forEach(BIe);const l=i.filter(NIe);Kj(n.vnode.el),l.forEach(c=>{const d=c.el,h=d.style;tf(d,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=d[V8]=v=>{v&&v.target!==d||(!v||v.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",p),d[V8]=null,Up(d,s))};d.addEventListener("transitionend",p)}),i=[]}),()=>{const s=Bi(e),l=xhe(s);let c=s.tag||Pt;if(i=[],a)for(let d=0;d{l.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=Che(r);return a.removeChild(r),s}const k0=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Gn(t)?n=>fm(t,n):t};function jIe(e){e.target.composing=!0}function Pne(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Uc=Symbol("_assign"),Ql={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Uc]=k0(i);const a=r||i.props&&i.props.type==="number";kh(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=Hb(l)),e[Uc](l)}),n&&kh(e,"change",()=>{e.value=e.value.trim()}),t||(kh(e,"compositionstart",jIe),kh(e,"compositionend",Pne),kh(e,"change",Pne))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[Uc]=k0(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?Hb(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c))}},rH={deep:!0,created(e,t,n){e[Uc]=k0(n),kh(e,"change",()=>{const r=e._modelValue,i=Py(e),a=e.checked,s=e[Uc];if(Gn(r)){const l=G_(r,i),c=l!==-1;if(a&&!c)s(r.concat(i));else if(!a&&c){const d=[...r];d.splice(l,1),s(d)}}else if(j0(r)){const l=new Set(r);a?l.add(i):l.delete(i),s(l)}else s(Rhe(e,a))})},mounted:Rne,beforeUpdate(e,t,n){e[Uc]=k0(n),Rne(e,t,n)}};function Rne(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Gn(t))i=G_(t,r.props.value)>-1;else if(j0(t))i=t.has(r.props.value);else{if(t===n)return;i=Vh(t,Rhe(e,!0))}e.checked!==i&&(e.checked=i)}const iH={created(e,{value:t},n){e.checked=Vh(t,n.props.value),e[Uc]=k0(n),kh(e,"change",()=>{e[Uc](Py(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Uc]=k0(r),t!==n&&(e.checked=Vh(t,r.props.value))}},oH={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=j0(t);kh(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Hb(Py(s)):Py(s));e[Uc](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,dn(()=>{e._assigning=!1})}),e[Uc]=k0(r)},mounted(e,{value:t}){Mne(e,t)},beforeUpdate(e,t,n){e[Uc]=k0(n)},updated(e,{value:t}){e._assigning||Mne(e,t)}};function Mne(e,t){const n=e.multiple,r=Gn(t);if(!(n&&!r&&!j0(t))){for(let i=0,a=e.options.length;iString(d)===String(l)):s.selected=G_(t,l)>-1}else s.selected=t.has(l);else if(Vh(Py(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Py(e){return"_value"in e?e._value:e.value}function Rhe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const A5={created(e,t,n){bw(e,t,n,null,"created")},mounted(e,t,n){bw(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){bw(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){bw(e,t,n,r,"updated")}};function Mhe(e,t){switch(e){case"SELECT":return oH;case"TEXTAREA":return Ql;default:switch(t){case"checkbox":return rH;case"radio":return iH;default:return Ql}}}function bw(e,t,n,r,i){const s=Mhe(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}function VIe(){Ql.getSSRProps=({value:e})=>({value:e}),iH.getSSRProps=({value:e},t)=>{if(t.props&&Vh(t.props.value,e))return{checked:!0}},rH.getSSRProps=({value:e},t)=>{if(Gn(e)){if(t.props&&G_(e,t.props.value)>-1)return{checked:!0}}else if(j0(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},A5.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Mhe(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const zIe=["ctrl","shift","alt","meta"],UIe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>zIe.some(n=>e[`${n}Key`]&&!t.includes(n))},fs=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...a)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const a=Sl(i.key);if(t.some(s=>s===a||HIe[s]===a))return e(i)}))},Ohe=xi({patchProp:AIe},fIe);let Q4,One=!1;function $he(){return Q4||(Q4=Jfe(Ohe))}function Bhe(){return Q4=One?Q4:Qfe(Ohe),One=!0,Q4}const Jc=((...e)=>{$he().render(...e)}),WIe=((...e)=>{Bhe().hydrate(...e)}),Ry=((...e)=>{const t=$he().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=jhe(r);if(!i)return;const a=t._component;!Ar(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,Fhe(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t}),Nhe=((...e)=>{const t=Bhe().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=jhe(r);if(i)return n(i,!0,Fhe(i))},t});function Fhe(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jhe(e){return Mr(e)?document.querySelector(e):e}let $ne=!1;const GIe=()=>{$ne||($ne=!0,VIe(),gIe())},KIe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Dfe,BaseTransitionPropsValidators:HU,Comment:ws,DeprecationTypes:uIe,EffectScope:MU,ErrorCodes:E5e,ErrorTypeStrings:nIe,Fragment:Pt,KeepAlive:X5e,ReactiveEffect:Gb,Static:vm,Suspense:NAe,Teleport:Jm,Text:v0,TrackOpTypes:b5e,Transition:Cs,TransitionGroup:o3,TriggerOpTypes:_5e,VueElement:T5,assertNumber:C5e,callWithAsyncErrorHandling:Zc,callWithErrorHandling:r3,camelize:$o,capitalize:V0,cloneVNode:El,compatUtils:lIe,computed:F,createApp:Ry,createBlock:Ze,createCommentVNode:Ae,createElementBlock:X,createElementVNode:I,createHydrationRenderer:Qfe,createPropsRestProxy:fAe,createRenderer:Jfe,createSSRApp:Nhe,createSlots:yo,createStaticVNode:Ch,createTextVNode:He,createVNode:O,customRef:gfe,defineAsyncComponent:Qm,defineComponent:xe,defineCustomElement:Ihe,defineEmits:nAe,defineExpose:rAe,defineModel:sAe,defineOptions:iAe,defineProps:tAe,defineSSRCustomElement:LIe,defineSlots:oAe,devtools:rIe,effect:UTe,effectScope:OU,getCurrentInstance:So,getCurrentScope:v5,getCurrentWatcher:S5e,getTransitionRawChildren:w5,guardReactiveProps:wa,h:fa,handleError:Zm,hasInjectionContext:Ufe,hydrate:WIe,hydrateOnIdle:U5e,hydrateOnInteraction:K5e,hydrateOnMediaQuery:G5e,hydrateOnVisible:W5e,initCustomFormatter:QAe,initDirectivesForSSR:GIe,inject:Pn,isMemoSame:bhe,isProxy:_5,isReactive:gf,isReadonly:Hh,isRef:Bo,isRuntimeOnly:XAe,isShallow:cc,isVNode:Wi,markRaw:S5,mergeDefaults:cAe,mergeModels:dAe,mergeProps:Ft,nextTick:dn,normalizeClass:fe,normalizeProps:qi,normalizeStyle:qe,onActivated:GU,onBeforeMount:Mfe,onBeforeUnmount:_o,onBeforeUpdate:qU,onDeactivated:KU,onErrorCaptured:Nfe,onMounted:fn,onRenderTracked:Bfe,onRenderTriggered:$fe,onScopeDispose:$U,onServerPrefetch:Ofe,onUnmounted:Yr,onUpdated:tl,onWatcherCleanup:bfe,openBlock:z,popScopeId:D5e,provide:oi,proxyRefs:VU,pushScopeId:L5e,queuePostFlushCb:Xb,reactive:Wt,readonly:Yb,ref:ue,registerRuntimeCompiler:YAe,render:Jc,renderList:cn,renderSlot:mt,resolveComponent:Ee,resolveDirective:i3,resolveDynamicComponent:Ca,resolveFilter:aIe,resolveTransitionHooks:Iy,setBlockTracking:t_,setDevtoolsHook:iIe,setTransitionHooks:Wh,shallowReactive:jU,shallowReadonly:u5e,shallowRef:h0,ssrContextKey:rhe,ssrUtils:sIe,stop:HTe,toDisplayString:je,toHandlerKey:dm,toHandlers:Q5e,toRaw:Bi,toRef:Pu,toRefs:tn,toValue:f5e,transformVNodeArgs:HAe,triggerRef:d5e,unref:tt,useAttrs:uAe,useCssModule:RIe,useCssVars:Ahe,useHost:Lhe,useId:O5e,useModel:LAe,useSSRContext:ihe,useShadowRoot:PIe,useSlots:lAe,useTemplateRef:$5e,useTransitionState:UU,vModelCheckbox:rH,vModelDynamic:A5,vModelRadio:iH,vModelSelect:oH,vModelText:Ql,vShow:Ko,version:_he,warn:tIe,watch:It,watchEffect:$s,watchPostEffect:AAe,watchSyncEffect:ohe,withAsyncContext:hAe,withCtx:ce,withDefaults:aAe,withDirectives:Ci,withKeys:df,withMemo:eIe,withModifiers:fs,withScopeId:P5e},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT - */const F1=typeof document<"u";function Vhe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function qIe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Vhe(e.default)}const so=Object.assign;function _P(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ld(i)?i.map(e):e(i)}return n}const eb=()=>{},Ld=Array.isArray,zhe=/#/g,YIe=/&/g,XIe=/\//g,ZIe=/=/g,JIe=/\?/g,Uhe=/\+/g,QIe=/%5B/g,eLe=/%5D/g,Hhe=/%5E/g,tLe=/%60/g,Whe=/%7B/g,nLe=/%7C/g,Ghe=/%7D/g,rLe=/%20/g;function iH(e){return encodeURI(""+e).replace(nLe,"|").replace(QIe,"[").replace(eLe,"]")}function iLe(e){return iH(e).replace(Whe,"{").replace(Ghe,"}").replace(Hhe,"^")}function Kj(e){return iH(e).replace(Uhe,"%2B").replace(rLe,"+").replace(zhe,"%23").replace(YIe,"%26").replace(tLe,"`").replace(Whe,"{").replace(Ghe,"}").replace(Hhe,"^")}function oLe(e){return Kj(e).replace(ZIe,"%3D")}function sLe(e){return iH(e).replace(zhe,"%23").replace(JIe,"%3F")}function aLe(e){return e==null?"":sLe(e).replace(XIe,"%2F")}function n_(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const lLe=/\/$/,uLe=e=>e.replace(lLe,"");function SP(e,t,n="/"){let r,i={},a="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,l>-1?l:t.length),i=e(a)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=hLe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:i,hash:n_(s)}}function cLe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Bne(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dLe(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ry(t.matched[r],n.matched[i])&&Khe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ry(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Khe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fLe(e[n],t[n]))return!1;return!0}function fLe(e,t){return Ld(e)?Nne(e,t):Ld(t)?Nne(t,e):e===t}function Nne(e,t){return Ld(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function hLe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const wp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var r_;(function(e){e.pop="pop",e.push="push"})(r_||(r_={}));var tb;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tb||(tb={}));function pLe(e){if(!e)if(F1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uLe(e)}const vLe=/^[^#]+#/;function mLe(e,t){return e.replace(vLe,"#")+t}function gLe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const A5=()=>({left:window.scrollX,top:window.scrollY});function yLe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=gLe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Fne(e,t){return(history.state?history.state.position-t:-1)+e}const qj=new Map;function bLe(e,t){qj.set(e,t)}function _Le(e){const t=qj.get(e);return qj.delete(e),t}let SLe=()=>location.protocol+"//"+location.host;function qhe(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let l=i.includes(e.slice(a))?e.slice(a).length:1,c=i.slice(l);return c[0]!=="/"&&(c="/"+c),Bne(c,"")}return Bne(n,e)+r+i}function kLe(e,t,n,r){let i=[],a=[],s=null;const l=({state:v})=>{const g=qhe(e,location),y=n.value,S=t.value;let k=0;if(v){if(n.value=g,t.value=v,s&&s===y){s=null;return}k=S?v.position-S.position:0}else r(g);i.forEach(C=>{C(n.value,y,{delta:k,type:r_.pop,direction:k?k>0?tb.forward:tb.back:tb.unknown})})};function c(){s=n.value}function d(v){i.push(v);const g=()=>{const y=i.indexOf(v);y>-1&&i.splice(y,1)};return a.push(g),g}function h(){const{history:v}=window;v.state&&v.replaceState(so({},v.state,{scroll:A5()}),"")}function p(){for(const v of a)v();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:d,destroy:p}}function jne(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?A5():null}}function xLe(e){const{history:t,location:n}=window,r={value:qhe(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,d,h){const p=e.indexOf("#"),v=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:SLe()+e+c;try{t[h?"replaceState":"pushState"](d,"",v),i.value=d}catch(g){console.error(g),n[h?"replace":"assign"](v)}}function s(c,d){const h=so({},t.state,jne(i.value.back,c,i.value.forward,!0),d,{position:i.value.position});a(c,h,!0),r.value=c}function l(c,d){const h=so({},i.value,t.state,{forward:c,scroll:A5()});a(h.current,h,!0);const p=so({},jne(r.value,c,null),{position:h.position+1},d);a(c,p,!1),r.value=c}return{location:r,state:i,push:l,replace:s}}function CLe(e){e=pLe(e);const t=xLe(e),n=kLe(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=so({location:"",base:e,go:r,createHref:mLe.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function wLe(e){return typeof e=="string"||e&&typeof e=="object"}function Yhe(e){return typeof e=="string"||typeof e=="symbol"}const Xhe=Symbol("");var Vne;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Vne||(Vne={}));function My(e,t){return so(new Error,{type:e,[Xhe]:!0},t)}function sh(e,t){return e instanceof Error&&Xhe in e&&(t==null||!!(e.type&t))}const zne="[^/]+?",ELe={sensitive:!1,strict:!1,start:!0,end:!0},TLe=/[.+*?^${}()[\]/\\]/g;function ALe(e,t){const n=so({},ELe,t),r=[];let i=n.start?"^":"";const a=[];for(const d of e){const h=d.length?[]:[90];n.strict&&!d.length&&(i+="/");for(let p=0;pt.length?t.length===1&&t[0]===80?1:-1:0}function Zhe(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const LLe={type:0,value:""},DLe=/[a-zA-Z0-9_]/;function PLe(e){if(!e)return[[]];if(e==="/")return[[LLe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${d}": ${g}`)}let n=0,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let l=0,c,d="",h="";function p(){d&&(n===0?a.push({type:0,value:d}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:d,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function v(){d+=c}for(;l{s(E)}:eb}function s(p){if(Yhe(p)){const v=r.get(p);v&&(r.delete(p),n.splice(n.indexOf(v),1),v.children.forEach(s),v.alias.forEach(s))}else{const v=n.indexOf(p);v>-1&&(n.splice(v,1),p.record.name&&r.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function l(){return n}function c(p){const v=BLe(p,n);n.splice(v,0,p),p.record.name&&!Gne(p)&&r.set(p.record.name,p)}function d(p,v){let g,y={},S,k;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw My(1,{location:p});k=g.record.name,y=so(Hne(v.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),p.params&&Hne(p.params,g.keys.map(E=>E.name))),S=g.stringify(y)}else if(p.path!=null)S=p.path,g=n.find(E=>E.re.test(S)),g&&(y=g.parse(S),k=g.record.name);else{if(g=v.name?r.get(v.name):n.find(E=>E.re.test(v.path)),!g)throw My(1,{location:p,currentLocation:v});k=g.record.name,y=so({},v.params,p.params),S=g.stringify(y)}const C=[];let x=g;for(;x;)C.unshift(x.record),x=x.parent;return{name:k,path:S,params:y,matched:C,meta:OLe(C)}}e.forEach(p=>a(p));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:d,removeRoute:s,clearRoutes:h,getRoutes:l,getRecordMatcher:i}}function Hne(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Wne(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:$Le(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function $Le(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Gne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function OLe(e){return e.reduce((t,n)=>so(t,n.meta),{})}function Kne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function BLe(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Zhe(e,t[a])<0?r=a:n=a+1}const i=NLe(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function NLe(e){let t=e;for(;t=t.parent;)if(Jhe(t)&&Zhe(e,t)===0)return t}function Jhe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function FLe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&Kj(a)):[r&&Kj(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function jLe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ld(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const VLe=Symbol(""),Yne=Symbol(""),I5=Symbol(""),oH=Symbol(""),Yj=Symbol("");function X2(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Xp(e,t,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,c)=>{const d=v=>{v===!1?c(My(4,{from:n,to:t})):v instanceof Error?c(v):wLe(v)?c(My(2,{from:t,to:v})):(s&&r.enterCallbacks[i]===s&&typeof v=="function"&&s.push(v),l())},h=a(()=>e.call(r&&r.instances[i],t,n,d));let p=Promise.resolve(h);e.length<3&&(p=p.then(d)),p.catch(v=>c(v))})}function kP(e,t,n,r,i=a=>a()){const a=[];for(const s of e)for(const l in s.components){let c=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(Vhe(c)){const h=(c.__vccOpts||c)[t];h&&a.push(Xp(h,n,r,s,l,i))}else{let d=c();a.push(()=>d.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const p=qIe(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Xp(g,n,r,s,l,i)()}))}}return a}function Xne(e){const t=Pn(I5),n=Pn(oH),r=F(()=>{const c=rt(e.to);return t.resolve(c)}),i=F(()=>{const{matched:c}=r.value,{length:d}=c,h=c[d-1],p=n.matched;if(!h||!p.length)return-1;const v=p.findIndex(Ry.bind(null,h));if(v>-1)return v;const g=Zne(c[d-2]);return d>1&&Zne(h)===g&&p[p.length-1].path!==g?p.findIndex(Ry.bind(null,c[d-2])):v}),a=F(()=>i.value>-1&&GLe(n.params,r.value.params)),s=F(()=>i.value>-1&&i.value===n.matched.length-1&&Khe(n.params,r.value.params));function l(c={}){if(WLe(c)){const d=t[rt(e.replace)?"replace":"push"](rt(e.to)).catch(eb);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:F(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function zLe(e){return e.length===1?e[0]:e}const ULe=we({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Xne,setup(e,{slots:t}){const n=qt(Xne(e)),{options:r}=Pn(I5),i=F(()=>({[Jne(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Jne(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&zLe(t.default(n));return e.custom?a:fa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),HLe=ULe;function WLe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function GLe(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ld(i)||i.length!==r.length||r.some((a,s)=>a!==i[s]))return!1}return!0}function Zne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jne=(e,t,n)=>e??t??n,KLe=we({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Pn(Yj),i=F(()=>e.route||r.value),a=Pn(Yne,0),s=F(()=>{let d=rt(a);const{matched:h}=i.value;let p;for(;(p=h[d])&&!p.components;)d++;return d}),l=F(()=>i.value.matched[s.value]);ri(Yne,F(()=>s.value+1)),ri(VLe,l),ri(Yj,i);const c=ue();return It(()=>[c.value,l.value,e.name],([d,h,p],[v,g,y])=>{h&&(h.instances[p]=d,g&&g!==h&&d&&d===v&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),d&&h&&(!g||!Ry(h,g)||!v)&&(h.enterCallbacks[p]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=i.value,h=e.name,p=l.value,v=p&&p.components[h];if(!v)return Qne(n.default,{Component:v,route:d});const g=p.props[h],y=g?g===!0?d.params:typeof g=="function"?g(d):g:null,k=fa(v,so({},y,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return Qne(n.default,{Component:k,route:d})||k}}});function Qne(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qLe=KLe;function YLe(e){const t=MLe(e.routes,e),n=e.parseQuery||FLe,r=e.stringifyQuery||qne,i=e.history,a=X2(),s=X2(),l=X2(),c=f0(wp);let d=wp;F1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=_P.bind(null,ge=>""+ge),p=_P.bind(null,aLe),v=_P.bind(null,n_);function g(ge,xe){let Ge,tt;return Yhe(ge)?(Ge=t.getRecordMatcher(ge),tt=xe):tt=ge,t.addRoute(tt,Ge)}function y(ge){const xe=t.getRecordMatcher(ge);xe&&t.removeRoute(xe)}function S(){return t.getRoutes().map(ge=>ge.record)}function k(ge){return!!t.getRecordMatcher(ge)}function C(ge,xe){if(xe=so({},xe||c.value),typeof ge=="string"){const me=SP(n,ge,xe.path),Oe=t.resolve({path:me.path},xe),qe=i.createHref(me.fullPath);return so(me,Oe,{params:v(Oe.params),hash:n_(me.hash),redirectedFrom:void 0,href:qe})}let Ge;if(ge.path!=null)Ge=so({},ge,{path:SP(n,ge.path,xe.path).path});else{const me=so({},ge.params);for(const Oe in me)me[Oe]==null&&delete me[Oe];Ge=so({},ge,{params:p(me)}),xe.params=p(xe.params)}const tt=t.resolve(Ge,xe),Ue=ge.hash||"";tt.params=h(v(tt.params));const _e=cLe(r,so({},ge,{hash:iLe(Ue),path:tt.path})),ve=i.createHref(_e);return so({fullPath:_e,hash:Ue,query:r===qne?jLe(ge.query):ge.query||{}},tt,{redirectedFrom:void 0,href:ve})}function x(ge){return typeof ge=="string"?SP(n,ge,c.value.path):so({},ge)}function E(ge,xe){if(d!==ge)return My(8,{from:xe,to:ge})}function _(ge){return P(ge)}function T(ge){return _(so(x(ge),{replace:!0}))}function D(ge){const xe=ge.matched[ge.matched.length-1];if(xe&&xe.redirect){const{redirect:Ge}=xe;let tt=typeof Ge=="function"?Ge(ge):Ge;return typeof tt=="string"&&(tt=tt.includes("?")||tt.includes("#")?tt=x(tt):{path:tt},tt.params={}),so({query:ge.query,hash:ge.hash,params:tt.path!=null?{}:ge.params},tt)}}function P(ge,xe){const Ge=d=C(ge),tt=c.value,Ue=ge.state,_e=ge.force,ve=ge.replace===!0,me=D(Ge);if(me)return P(so(x(me),{state:typeof me=="object"?so({},Ue,me.state):Ue,force:_e,replace:ve}),xe||Ge);const Oe=Ge;Oe.redirectedFrom=xe;let qe;return!_e&&dLe(r,tt,Ge)&&(qe=My(16,{to:Oe,from:tt}),Q(tt,tt,!0,!1)),(qe?Promise.resolve(qe):L(Oe,tt)).catch(Ke=>sh(Ke)?sh(Ke,2)?Ke:q(Ke):te(Ke,Oe,tt)).then(Ke=>{if(Ke){if(sh(Ke,2))return P(so({replace:ve},x(Ke.to),{state:typeof Ke.to=="object"?so({},Ue,Ke.to.state):Ue,force:_e}),xe||Oe)}else Ke=j(Oe,tt,!0,ve,Ue);return B(Oe,tt,Ke),Ke})}function M(ge,xe){const Ge=E(ge,xe);return Ge?Promise.reject(Ge):Promise.resolve()}function O(ge){const xe=re.values().next().value;return xe&&typeof xe.runWithContext=="function"?xe.runWithContext(ge):ge()}function L(ge,xe){let Ge;const[tt,Ue,_e]=XLe(ge,xe);Ge=kP(tt.reverse(),"beforeRouteLeave",ge,xe);for(const me of tt)me.leaveGuards.forEach(Oe=>{Ge.push(Xp(Oe,ge,xe))});const ve=M.bind(null,ge,xe);return Ge.push(ve),Ve(Ge).then(()=>{Ge=[];for(const me of a.list())Ge.push(Xp(me,ge,xe));return Ge.push(ve),Ve(Ge)}).then(()=>{Ge=kP(Ue,"beforeRouteUpdate",ge,xe);for(const me of Ue)me.updateGuards.forEach(Oe=>{Ge.push(Xp(Oe,ge,xe))});return Ge.push(ve),Ve(Ge)}).then(()=>{Ge=[];for(const me of _e)if(me.beforeEnter)if(Ld(me.beforeEnter))for(const Oe of me.beforeEnter)Ge.push(Xp(Oe,ge,xe));else Ge.push(Xp(me.beforeEnter,ge,xe));return Ge.push(ve),Ve(Ge)}).then(()=>(ge.matched.forEach(me=>me.enterCallbacks={}),Ge=kP(_e,"beforeRouteEnter",ge,xe,O),Ge.push(ve),Ve(Ge))).then(()=>{Ge=[];for(const me of s.list())Ge.push(Xp(me,ge,xe));return Ge.push(ve),Ve(Ge)}).catch(me=>sh(me,8)?me:Promise.reject(me))}function B(ge,xe,Ge){l.list().forEach(tt=>O(()=>tt(ge,xe,Ge)))}function j(ge,xe,Ge,tt,Ue){const _e=E(ge,xe);if(_e)return _e;const ve=xe===wp,me=F1?history.state:{};Ge&&(tt||ve?i.replace(ge.fullPath,so({scroll:ve&&me&&me.scroll},Ue)):i.push(ge.fullPath,Ue)),c.value=ge,Q(ge,xe,Ge,ve),q()}let H;function U(){H||(H=i.listen((ge,xe,Ge)=>{if(!Ce.listening)return;const tt=C(ge),Ue=D(tt);if(Ue){P(so(Ue,{replace:!0,force:!0}),tt).catch(eb);return}d=tt;const _e=c.value;F1&&bLe(Fne(_e.fullPath,Ge.delta),A5()),L(tt,_e).catch(ve=>sh(ve,12)?ve:sh(ve,2)?(P(so(x(ve.to),{force:!0}),tt).then(me=>{sh(me,20)&&!Ge.delta&&Ge.type===r_.pop&&i.go(-1,!1)}).catch(eb),Promise.reject()):(Ge.delta&&i.go(-Ge.delta,!1),te(ve,tt,_e))).then(ve=>{ve=ve||j(tt,_e,!1),ve&&(Ge.delta&&!sh(ve,8)?i.go(-Ge.delta,!1):Ge.type===r_.pop&&sh(ve,20)&&i.go(-1,!1)),B(tt,_e,ve)}).catch(eb)}))}let K=X2(),Y=X2(),ie;function te(ge,xe,Ge){q(ge);const tt=Y.list();return tt.length?tt.forEach(Ue=>Ue(ge,xe,Ge)):console.error(ge),Promise.reject(ge)}function W(){return ie&&c.value!==wp?Promise.resolve():new Promise((ge,xe)=>{K.add([ge,xe])})}function q(ge){return ie||(ie=!ge,U(),K.list().forEach(([xe,Ge])=>ge?Ge(ge):xe()),K.reset()),ge}function Q(ge,xe,Ge,tt){const{scrollBehavior:Ue}=e;if(!F1||!Ue)return Promise.resolve();const _e=!Ge&&_Le(Fne(ge.fullPath,0))||(tt||!Ge)&&history.state&&history.state.scroll||null;return dn().then(()=>Ue(ge,xe,_e)).then(ve=>ve&&yLe(ve)).catch(ve=>te(ve,ge,xe))}const se=ge=>i.go(ge);let ae;const re=new Set,Ce={currentRoute:c,listening:!0,addRoute:g,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:C,options:e,push:_,replace:T,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:Y.add,isReady:W,install(ge){const xe=this;ge.component("RouterLink",HLe),ge.component("RouterView",qLe),ge.config.globalProperties.$router=xe,Object.defineProperty(ge.config.globalProperties,"$route",{enumerable:!0,get:()=>rt(c)}),F1&&!ae&&c.value===wp&&(ae=!0,_(i.location).catch(Ue=>{}));const Ge={};for(const Ue in wp)Object.defineProperty(Ge,Ue,{get:()=>c.value[Ue],enumerable:!0});ge.provide(I5,xe),ge.provide(oH,NU(Ge)),ge.provide(Yj,c);const tt=ge.unmount;re.add(ge),ge.unmount=function(){re.delete(ge),re.size<1&&(d=wp,H&&H(),H=null,c.value=wp,ae=!1,ie=!1),tt()}}};function Ve(ge){return ge.reduce((xe,Ge)=>xe.then(()=>O(Ge)),Promise.resolve())}return Ce}function XLe(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sRy(d,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(d=>Ry(d,c))||i.push(c))}return[n,r,i]}function ma(){return Pn(I5)}function s3(e){return Pn(oH)}const Qm=Object.prototype.toString;function nr(e){return Qm.call(e)==="[object Array]"}function Al(e){return Qm.call(e)==="[object Null]"}function Tl(e){return Qm.call(e)==="[object Boolean]"}function gr(e){return Qm.call(e)==="[object Object]"}const Lm=e=>Qm.call(e)==="[object Promise]";function ds(e){return Qm.call(e)==="[object String]"}function et(e){return Qm.call(e)==="[object Number]"&&e===e}function xn(e){return e===void 0}function Sn(e){return typeof e=="function"}function ZLe(e){return gr(e)&&Object.keys(e).length===0}function ere(e){return e||e===0}function tw(e){return e===window}const Qhe=e=>e?.$!==void 0,JLe=e=>/\[Q]Q/.test(e);function Hc(e){return gr(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const Za=Symbol("ArcoConfigProvider"),bx={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},QLe={locale:"zh-CN",empty:{description:"暂无数据"},drawer:{okText:"确定",cancelText:"取消"},popconfirm:{okText:"确定",cancelText:"取消"},modal:{okText:"确定",cancelText:"取消"},pagination:{goto:"前往",page:"页",countPerPage:"条/页",total:"共 {0} 条"},table:{okText:"确定",resetText:"重置"},upload:{start:"开始",cancel:"取消",delete:"删除",retry:"点击重试",buttonText:"点击上传",preview:"预览",drag:"点击或拖拽文件到此处上传",dragHover:"释放文件并开始上传",error:"上传失败"},calendar:bx,datePicker:{view:bx.view,month:bx.month,week:bx.week,placeholder:{date:"请选择日期",week:"请选择周",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",time:"请选择时间"},rangePlaceholder:{date:["开始日期","结束日期"],week:["开始周","结束周"],month:["开始月份","结束月份"],year:["开始年份","结束年份"],quarter:["开始季度","结束季度"],time:["开始时间","结束时间"]},selectTime:"选择时间",today:"今天",now:"此刻",ok:"确定"},image:{loading:"加载中"},imagePreview:{fullScreen:"全屏",rotateRight:"向右旋转",rotateLeft:"向左旋转",zoomIn:"放大",zoomOut:"缩小",originalSize:"原始尺寸"},typography:{copied:"已复制",copy:"复制",expand:"展开",collapse:"折叠",edit:"编辑"},form:{validateMessages:{required:"#{field} 是必填项",type:{string:"#{field} 不是合法的文本类型",number:"#{field} 不是合法的数字类型",boolean:"#{field} 不是合法的布尔类型",array:"#{field} 不是合法的数组类型",object:"#{field} 不是合法的对象类型",url:"#{field} 不是合法的 url 地址",email:"#{field} 不是合法的邮箱地址",ip:"#{field} 不是合法的 IP 地址"},number:{min:"`#{value}` 小于最小值 `#{min}`",max:"`#{value}` 大于最大值 `#{max}`",equal:"`#{value}` 不等于 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 范围内",positive:"`#{value}` 不是正数",negative:"`#{value}` 不是负数"},array:{length:"`#{field}` 个数不等于 #{length}",minLength:"`#{field}` 个数最少为 #{minLength}",maxLength:"`#{field}` 个数最多为 #{maxLength}",includes:"#{field} 不包含 #{includes}",deepEqual:"#{field} 不等于 #{deepEqual}",empty:"`#{field}` 不是空数组"},string:{minLength:"字符数最少为 #{minLength}",maxLength:"字符数最多为 #{maxLength}",length:"字符数必须是 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 必须全大写",lowercase:"`#{value}` 必须全小写"},object:{deepEqual:"`#{field}` 不等于期望值",hasKeys:"`#{field}` 不包含必须字段",empty:"`#{field}` 不是对象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}},colorPicker:{history:"最近使用颜色",preset:"系统预设颜色",empty:"暂无"}},sH=ue("zh-CN"),V8=qt({"zh-CN":QLe}),e7e=(e,t)=>{for(const n of Object.keys(e))(!V8[n]||t?.overwrite)&&(V8[n]=e[n])},t7e=e=>{if(!V8[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}sH.value=e},n7e=()=>sH.value,No=()=>{const e=Pn(Za,void 0),t=F(()=>{var i;return(i=e?.locale)!=null?i:V8[sH.value]}),n=F(()=>t.value.locale);return{i18nMessage:t,locale:n,t:(i,...a)=>{const s=i.split(".");let l=t.value;for(const c of s){if(!l[c])return i;l=l[c]}return ds(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,d)=>{var h;return(h=a[d])!=null?h:c}):l}}},r7e="A",i7e="arco",Xj="$arco",Kn=e=>{var t;return(t=e?.componentPrefix)!=null?t:r7e},qn=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[Xj]={...(n=e.config.globalProperties[Xj])!=null?n:{},classPrefix:t.classPrefix})},Re=e=>{var t,n,r;const i=So(),a=Pn(Za,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=i?.appContext.config.globalProperties[Xj])==null?void 0:t.classPrefix)!=null?r:i7e;return e?`${s}-${e}`:s};var epe=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i0},e.prototype.connect_=function(){!Zj||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c7e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Zj||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=u7e.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),tpe=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof $y(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new b7e(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof $y(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new _7e(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),rpe=typeof WeakMap<"u"?new WeakMap:new epe,ipe=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d7e.getInstance(),r=new S7e(t,n,this);rpe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){ipe.prototype[e]=function(){var t;return(t=rpe.get(this))[e].apply(t,arguments)}});var D5=(function(){return typeof z8.ResizeObserver<"u"?z8.ResizeObserver:ipe})();const P5=e=>!!(e&&e.shapeFlag&1),Y_=(e,t)=>!!(e&&e.shapeFlag&6),k7e=(e,t)=>!!(e&&e.shapeFlag&8),R5=(e,t)=>!!(e&&e.shapeFlag&16),M5=(e,t)=>!!(e&&e.shapeFlag&32),sy=e=>{var t,n;if(e)for(const r of e){if(P5(r)||Y_(r))return r;if(R5(r,r.children)){const i=sy(r.children);if(i)return i}else if(M5(r,r.children)){const i=(n=(t=r.children).default)==null?void 0:n.call(t);if(i){const a=sy(i);if(a)return a}}else if(nr(r)){const i=sy(r);if(i)return i}}},x7e=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},ope=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&ope(i,t))return!0}return!1},aH=e=>{if(R5(e,e.children))return e.children;if(nr(e))return e},spe=e=>{var t,n;if(P5(e))return e.el;if(Y_(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=spe(e.component.subTree);if(r)return r}}else{const r=aH(e);return ape(r)}},ape=e=>{if(e&&e.length>0)for(const t of e){const n=spe(t);if(n)return n}},yf=(e,t=!1)=>{var n,r;const i=[];for(const a of e??[])P5(a)||Y_(a)||t&&k7e(a,a.children)?i.push(a):R5(a,a.children)?i.push(...yf(a.children,t)):M5(a,a.children)?i.push(...yf((r=(n=a.children).default)==null?void 0:r.call(n),t)):nr(a)&&i.push(...yf(a,t));return i};function C7e(e){function t(n){const r=[];return n.forEach(i=>{var a,s;Wi(i)&&i.type===Pt?M5(i,i.children)?r.push(...t(((s=(a=i.children).default)==null?void 0:s.call(a))||[])):R5(i,i.children)?r.push(...t(i.children)):ds(i.children)&&r.push(i.children):r.push(i)}),r}return t(e)}const Wl=e=>{if(e)return Sn(e)?e:()=>e},lpe=(e,t)=>{var n;const r=[];if(Y_(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...lpe(e.component.subTree,t));else{const i=aH(e);i&&r.push(...upe(i,t))}return r},upe=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...lpe(r,t));return n};var Dd=we({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const i=ue(),a=F(()=>Qhe(i.value)?i.value.$el:i.value),s=c=>{c&&(r=new D5(d=>{const h=d[0];t("resize",h)}),r.observe(c))},l=()=>{r&&(r.disconnect(),r=null)};return It(a,c=>{r&&l(),c&&s(c)}),hn(()=>{a.value&&s(a.value)}),ii(()=>{l()}),()=>{var c,d;const h=sy((d=(c=n.default)==null?void 0:c.call(n))!=null?d:[]);return h?El(h,{ref:i},!0):null}}});const cpe=typeof window>"u"?global:window,dpe=cpe.requestAnimationFrame,H8=cpe.cancelAnimationFrame;function Dm(e){let t=0;const n=(...r)=>{t&&H8(t),t=dpe(()=>{e(...r),t=0})};return n.cancel=()=>{H8(t),t=0},n}const ay=()=>{},fpe=()=>{const{body:e}=document,t=document.documentElement;let n;try{n=(window.top||window.self||window).document.body}catch{}return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight,n?.scrollHeight||0,n?.clientHeight||0),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth,n?.scrollWidth||0,n?.clientWidth||0)}},X_=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Mi=X_?ay:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},no=X_?ay:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},w7e=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},$5=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},hpe=(e,t)=>{var n;return X_?ay():(n=(t??document).querySelector(e))!=null?n:void 0},af=(e,t)=>{if(ds(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return hpe(n,t)}return e},E7e=(e,t)=>{const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return{top:n.top-r.top,bottom:r.bottom-n.bottom,left:n.left-r.left,right:r.right-n.right,width:n.width,height:n.height}},T7e=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,A7e=e=>e.tagName==="BODY"?window.innerWidth-fpe().width:e.offsetWidth-e.clientWidth;var ze=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function I7e(e){return tw(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const L7e=we({name:"Affix",components:{ResizeObserver:Dd},props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},target:{type:[String,Object,Function]},targetContainer:{type:[String,Object,Function]}},emits:{change:e=>!0},setup(e,{emit:t}){const n=Re("affix"),{target:r,targetContainer:i}=tn(e),a=ue(),s=ue(),l=ue(!1),c=ue({}),d=ue({}),h=F(()=>({[n]:l.value})),p=Dm(()=>{if(!a.value||!s.value)return;const{offsetTop:v,offsetBottom:g}=e,y=xn(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=I7e(s.value);let C=!1,x={};const E={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};y==="top"?(C=S.top-k.top<(v||0),x=C?{position:"fixed",top:`${k.top+(v||0)}px`}:{}):(C=k.bottom-S.bottom<(g||0),x=C?{position:"fixed",bottom:`${window.innerHeight-k.bottom+(g||0)}px`}:{}),C!==l.value&&(l.value=C,t("change",C)),c.value=E,d.value={...x,...C?E:{}}});return hn(()=>{Os(v=>{const g=r&&r.value!==window&&af(r.value)||window;s.value=g,g&&(Mi(g,"scroll",p),Mi(g,"resize",p),v(()=>{no(g,"scroll",p),no(g,"resize",p)}))}),Os(v=>{if(!s.value)return;const g=i&&i.value!==window&&af(i.value)||window;g&&(Mi(g,"scroll",p),Mi(g,"resize",p),v(()=>{no(g,"scroll",p),no(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:d,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),D7e={ref:"wrapperRef"};function P7e(e,t,n,r,i,a){const s=Te("ResizeObserver");return z(),Ze(s,{onResize:e.updatePositionThrottle},{default:fe(()=>[I("div",D7e,[e.isFixed?(z(),X("div",{key:0,style:Ye(e.placeholderStyles)},null,4)):Ie("v-if",!0),I("div",{class:de(e.classNames),style:Ye(e.fixedStyles)},[$(s,{onResize:e.updatePositionThrottle},{default:fe(()=>[mt(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var xP=ze(L7e,[["render",P7e]]);const R7e=Object.assign(xP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+xP.name,xP)}}),M7e=we({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Re("icon-hover")}}});function $7e(e,t,n,r,i,a){return z(),X("span",{class:de([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[mt(e.$slots,"default")],2)}var Lo=ze(M7e,[["render",$7e]]);const O7e=we({name:"IconClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),B7e=["stroke-width","stroke-linecap","stroke-linejoin"];function N7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"},null,-1)]),14,B7e)}var CP=ze(O7e,[["render",N7e]]);const fs=Object.assign(CP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CP.name,CP)}}),F7e=we({name:"IconInfoCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),j7e=["stroke-width","stroke-linecap","stroke-linejoin"];function V7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null,-1)]),14,j7e)}var wP=ze(F7e,[["render",V7e]]);const a3=Object.assign(wP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wP.name,wP)}}),z7e=we({name:"IconCheckCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),U7e=["stroke-width","stroke-linecap","stroke-linejoin"];function H7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,U7e)}var EP=ze(z7e,[["render",H7e]]);const Yh=Object.assign(EP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EP.name,EP)}}),W7e=we({name:"IconExclamationCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),G7e=["stroke-width","stroke-linecap","stroke-linejoin"];function K7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,G7e)}var TP=ze(W7e,[["render",K7e]]);const If=Object.assign(TP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TP.name,TP)}}),q7e=we({name:"IconCloseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Y7e=["stroke-width","stroke-linecap","stroke-linejoin"];function X7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Y7e)}var AP=ze(q7e,[["render",X7e]]);const eg=Object.assign(AP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AP.name,AP)}}),Z7e=we({name:"Alert",components:{IconHover:Lo,IconClose:fs,IconInfoCircleFill:a3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:eg},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},title:String,banner:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:{close:e=>!0,afterClose:()=>!0},setup(e,{slots:t,emit:n}){const r=Re("alert"),i=ue(!0),a=c=>{i.value=!1,n("close",c)},s=()=>{n("afterClose")},l=F(()=>[r,`${r}-${e.type}`,{[`${r}-with-title`]:!!(e.title||t.title),[`${r}-banner`]:e.banner,[`${r}-center`]:e.center}]);return{prefixCls:r,cls:l,visible:i,handleClose:a,handleAfterLeave:s}}});function J7e(e,t,n,r,i,a){const s=Te("icon-info-circle-fill"),l=Te("icon-check-circle-fill"),c=Te("icon-exclamation-circle-fill"),d=Te("icon-close-circle-fill"),h=Te("icon-close"),p=Te("icon-hover");return z(),Ze(Cs,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:fe(()=>[e.visible?(z(),X("div",{key:0,role:"alert",class:de(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),X("div",{key:0,class:de(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):Ie("v-if",!0)])],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2)],2),e.$slots.action?(z(),X("div",{key:1,class:de(`${e.prefixCls}-action`)},[mt(e.$slots,"action")],2)):Ie("v-if",!0),e.closable?(z(),X("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:de(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...v)=>e.handleClose&&e.handleClose(...v))},[mt(e.$slots,"close-element",{},()=>[$(p,null,{default:fe(()=>[$(h)]),_:1})])],2)):Ie("v-if",!0)],2)):Ie("v-if",!0)]),_:3},8,["onAfterLeave"])}var IP=ze(Z7e,[["render",J7e]]);const ppe=Object.assign(IP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+IP.name,IP)}});function nre(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function rre(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function LP(e,t){if(e.clientHeightt||a>e&&s=t&&l>=n?a-e-r:s>t&&ln?s-t+i:0}var Jj=function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,s=t.boundary,l=t.skipOverflowHiddenElements,c=typeof s=="function"?s:function(me){return me!==s};if(!nre(e))throw new TypeError("Invalid target");for(var d,h,p=document.scrollingElement||document.documentElement,v=[],g=e;nre(g)&&c(g);){if((g=(h=(d=g).parentElement)==null?d.getRootNode().host||null:h)===p){v.push(g);break}g!=null&&g===document.body&&LP(g)&&!LP(document.documentElement)||g!=null&&LP(g,l)&&v.push(g)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,S=n.visualViewport?n.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),E=x.height,_=x.width,T=x.top,D=x.right,P=x.bottom,M=x.left,O=i==="start"||i==="nearest"?T:i==="end"?P:T+E/2,L=a==="center"?M+_/2:a==="end"?D:M,B=[],j=0;j=0&&M>=0&&P<=S&&D<=y&&T>=ie&&P<=W&&M>=q&&D<=te)return B;var Q=getComputedStyle(H),se=parseInt(Q.borderLeftWidth,10),ae=parseInt(Q.borderTopWidth,10),re=parseInt(Q.borderRightWidth,10),Ce=parseInt(Q.borderBottomWidth,10),Ve=0,ge=0,xe="offsetWidth"in H?H.offsetWidth-H.clientWidth-se-re:0,Ge="offsetHeight"in H?H.offsetHeight-H.clientHeight-ae-Ce:0,tt="offsetWidth"in H?H.offsetWidth===0?0:Y/H.offsetWidth:0,Ue="offsetHeight"in H?H.offsetHeight===0?0:K/H.offsetHeight:0;if(p===H)Ve=i==="start"?O:i==="end"?O-S:i==="nearest"?_x(C,C+S,S,ae,Ce,C+O,C+O+E,E):O-S/2,ge=a==="start"?L:a==="center"?L-y/2:a==="end"?L-y:_x(k,k+y,y,se,re,k+L,k+L+_,_),Ve=Math.max(0,Ve+C),ge=Math.max(0,ge+k);else{Ve=i==="start"?O-ie-ae:i==="end"?O-W+Ce+Ge:i==="nearest"?_x(ie,W,K,ae,Ce+Ge,O,O+E,E):O-(ie+K/2)+Ge/2,ge=a==="start"?L-q-se:a==="center"?L-(q+Y/2)+xe/2:a==="end"?L-te+re+xe:_x(q,te,Y,se,re+xe,L,L+_,_);var _e=H.scrollLeft,ve=H.scrollTop;O+=ve-(Ve=Math.max(0,Math.min(ve+Ve/Ue,H.scrollHeight-K/Ue+Ge))),L+=_e-(ge=Math.max(0,Math.min(_e+ge/tt,H.scrollWidth-Y/tt+xe)))}B.push({el:H,top:Ve,left:ge})}return B},Z_=function(e){return function(t){return Math.pow(t,e)}},J_=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},O5=function(e){return function(t){return t<.5?Z_(e)(t*2)/2:J_(e)(t*2-1)/2+.5}},Q7e=function(e){return e},eDe=Z_(2),tDe=J_(2),nDe=O5(2),rDe=Z_(3),iDe=J_(3),oDe=O5(3),sDe=Z_(4),aDe=J_(4),lDe=O5(4),uDe=Z_(5),cDe=J_(5),dDe=O5(5),fDe=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},hDe=function(e){return Math.sin(Math.PI/2*e)},pDe=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},lH=function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?(e-=1.5/n,t*e*e+.75):e<2.5/n?(e-=2.25/n,t*e*e+.9375):(e-=2.625/n,t*e*e+.984375)},vpe=function(e){return 1-lH(1-e)},vDe=function(e){return e<.5?vpe(e*2)*.5:lH(e*2-1)*.5+.5},mDe=Object.freeze({linear:Q7e,quadIn:eDe,quadOut:tDe,quadInOut:nDe,cubicIn:rDe,cubicOut:iDe,cubicInOut:oDe,quartIn:sDe,quartOut:aDe,quartInOut:lDe,quintIn:uDe,quintOut:cDe,quintInOut:dDe,sineIn:fDe,sineOut:hDe,sineInOut:pDe,bounceOut:lH,bounceIn:vpe,bounceInOut:vDe}),tg=function(t){var n=t.from,r=t.to,i=t.duration,a=t.delay,s=t.easing,l=t.onStart,c=t.onUpdate,d=t.onFinish;for(var h in n)r[h]===void 0&&(r[h]=n[h]);for(var p in r)n[p]===void 0&&(n[p]=r[p]);this.from=n,this.to=r,this.duration=i||500,this.delay=a||0,this.easing=s||"linear",this.onStart=l,this.onUpdate=c||function(){},this.onFinish=d,this.startTime=Date.now()+this.delay,this.started=!1,this.finished=!1,this.timer=null,this.keys={}};tg.prototype.update=function(){if(this.time=Date.now(),!(this.timethis.duration?this.duration:this.elapsed;for(var t in this.to)this.keys[t]=this.from[t]+(this.to[t]-this.from[t])*mDe[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};tg.prototype.start=function(){var t=this;this.startTime=Date.now()+this.delay;var n=function(){t.update(),t.timer=requestAnimationFrame(n),t.finished&&(cancelAnimationFrame(t.timer),t.timer=null)};n()};tg.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function gDe(e,t,n){new tg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:i=>{e.scrollTop=i.scrollTop},onFinish:()=>{Sn(n)&&n()}}).start()}const mpe=Symbol("ArcoAnchor"),yDe=["start","end","center","nearest"],bDe=we({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>et(e)||yDe.includes(e)},lineLess:{type:Boolean,default:!1},scrollContainer:{type:[String,Object]},changeHash:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},emits:{select:(e,t)=>!0,change:e=>!0},setup(e,{emit:t}){const n=Re("anchor"),r=ue(),i=ue(),a=qt({}),s=ue(""),l=ue(!1),c=ue(),d=ue(),h=(T,D)=>{T&&(a[T]=D)},p=T=>{delete a[T]},v=(T,D)=>{e.changeHash||T.preventDefault(),D&&(g(D),S(D)),t("select",D,s.value)},g=T=>{try{const D=af(T);if(!D)return;let P,M=0;et(e.boundary)?(P="start",M=e.boundary):P=e.boundary;const O=Jj(D,{block:P});if(!O.length)return;const{el:L,top:B}=O[0],j=B-M;gDe(L,j,()=>{l.value=!1}),l.value=!0}catch(D){console.error(D)}},y=Dm(()=>{if(l.value)return;const T=k();if(T&&T.id){const D=`#${T.id}`;S(D)}}),S=T=>{if(!a[T]&&r.value){const D=af(`a[data-href='${T}']`,r.value);if(!D)return;a[T]=D}T!==s.value&&(s.value=T,dn(()=>{t("change",T)}))},k=()=>{if(!c.value||!d.value)return;const T=et(e.boundary)?e.boundary:0,D=d.value.getBoundingClientRect();for(const P of Object.keys(a)){const M=af(P);if(M){const{top:O}=M.getBoundingClientRect(),L=tw(c.value)?O-T:O-D.top-T;if(L>=0&&L<=D.height/2)return M}}};It(s,()=>{const T=a[s.value];!e.lineLess&&T&&i.value&&(i.value.style.top=`${T.offsetTop}px`)});const C=()=>{c.value&&Mi(c.value,"scroll",y)},x=()=>{c.value&&no(c.value,"scroll",y)},E=()=>{e.scrollContainer?(c.value=tw(e.scrollContainer)?window:af(e.scrollContainer),d.value=tw(e.scrollContainer)?document.documentElement:af(e.scrollContainer)):(c.value=window,d.value=document.documentElement)};hn(()=>{E();const T=decodeURIComponent(window.location.hash);T?(g(T),S(T)):y(),C()}),_o(()=>{x()}),ri(mpe,qt({currentLink:s,addLink:h,removeLink:p,handleClick:v}));const _=F(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:i}}});function _De(e,t,n,r,i,a){return z(),X("div",{ref:"anchorRef",class:de(e.cls)},[e.lineLess?Ie("v-if",!0):(z(),X("div",{key:0,ref:"lineSliderRef",class:de(`${e.prefixCls}-line-slider`)},null,2)),I("ul",{class:de(`${e.prefixCls}-list`)},[mt(e.$slots,"default")],2)],2)}var DP=ze(bDe,[["render",_De]]);const SDe=we({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Re("anchor"),n=`${t}-link`,r=ue(),i=Pn(mpe,void 0);hn(()=>{e.href&&r.value&&i?.addLink(e.href,r.value)});const a=F(()=>[`${n}-item`,{[`${n}-active`]:i?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>i?.handleClick(l,e.href)}}}),kDe=["href"];function xDe(e,t,n,r,i,a){return z(),X("li",{ref:"linkRef",class:de(e.cls)},[I("a",{class:de(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[mt(e.$slots,"default",{},()=>[He(Ne(e.title),1)])],10,kDe),e.$slots.sublist?(z(),X("ul",{key:0,class:de(`${e.prefixCls}-sublist`)},[mt(e.$slots,"sublist")],2)):Ie("v-if",!0)],2)}var nw=ze(SDe,[["render",xDe]]);const CDe=Object.assign(DP,{Link:nw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+DP.name,DP),e.component(n+nw.name,nw)}}),B5=["info","success","warning","error"],k0=["onFocus","onFocusin","onFocusout","onBlur","onChange","onBeforeinput","onInput","onReset","onSubmit","onInvalid","onKeydown","onKeypress","onKeyup","onCopy","onCut","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onSelect","autocomplete","autofocus","maxlength","minlength","name","pattern","readonly","required"],wDe=we({name:"IconLoading",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),EDe=["stroke-width","stroke-linecap","stroke-linejoin"];function TDe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1)]),14,EDe)}var PP=ze(wDe,[["render",TDe]]);const Ja=Object.assign(PP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PP.name,PP)}}),ADe=we({name:"FeedbackIcon",components:{IconLoading:Ja,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:eg},props:{type:{type:String}},setup(e){const t=Re("feedback-icon");return{cls:F(()=>[t,`${t}-status-${e.type}`])}}});function IDe(e,t,n,r,i,a){const s=Te("icon-loading"),l=Te("icon-check-circle-fill"),c=Te("icon-exclamation-circle-fill"),d=Te("icon-close-circle-fill");return z(),X("span",{class:de(e.cls)},[e.type==="validating"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):Ie("v-if",!0)],2)}var Q_=ze(ADe,[["render",IDe]]);const uH={key:"Enter"},gpe={key:"Backspace",code:"Backspace"},LDe={code:"ArrowLeft"},DDe={code:"ArrowRight"},Ea=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function kf(e,t){const n={};return t.forEach(r=>{const i=r;r in e&&(n[i]=e[i])}),n}const Qj=Symbol("ArcoFormItemContext"),cH=Symbol("ArcoFormContext"),Do=({size:e,disabled:t,error:n,uninject:r}={})=>{const i=r?{}:Pn(Qj,{}),a=F(()=>{var h;return(h=e?.value)!=null?h:i.size}),s=F(()=>t?.value||i.disabled),l=F(()=>n?.value||i.error),c=Du(i,"feedback"),d=Du(i,"eventHandlers");return{formItemCtx:i,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:d}},Aa=(e,{defaultValue:t="medium"}={})=>{const n=Pn(Za,void 0);return{mergedSize:F(()=>{var i,a;return(a=(i=e?.value)!=null?i:n?.size)!=null?a:t})}};function ype(e){const t=ue();function n(){if(!e.value)return;const{selectionStart:i,selectionEnd:a,value:s}=e.value;if(i==null||a==null)return;const l=s.slice(0,Math.max(0,i)),c=s.slice(Math.max(0,a));t.value={selectionStart:i,selectionEnd:a,value:s,beforeTxt:l,afterTxt:c}}function r(){if(!e.value||!t.value)return;const{value:i}=e.value,{beforeTxt:a,afterTxt:s,selectionStart:l}=t.value;if(!a||!s||!l)return;let c=i.length;if(i.endsWith(s))c=i.length-s.length;else if(i.startsWith(a))c=a.length;else{const d=a[l-1],h=i.indexOf(d,l-1);h!==-1&&(c=h+1)}e.value.setSelectionRange(c,c)}return[n,r]}var nb=we({name:"Input",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},size:{type:String},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},placeholder:String,maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},wordLength:{type:Function},wordSlice:{type:Function},inputAttrs:{type:Object},type:{type:String,default:"text"},prepend:String,append:String},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,pressEnter:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:i,disabled:a,error:s,modelValue:l}=tn(e),c=Re("input"),d=ue(),{mergedSize:h,mergedDisabled:p,mergedError:v,feedback:g,eventHandlers:y}=Do({size:i,disabled:a,error:s}),{mergedSize:S}=Aa(h),[k,C]=ype(d),x=ue(e.defaultValue),E=F(()=>{var ve;return(ve=e.modelValue)!=null?ve:x.value});let _=E.value;It(l,ve=>{(xn(ve)||Al(ve))&&(x.value="")}),It(E,(ve,me)=>{_=me});const T=ue(!1),D=F(()=>e.allowClear&&!e.readonly&&!p.value&&!!E.value),P=ue(!1),M=ue(""),O=ve=>{var me;return Sn(e.wordLength)?e.wordLength(ve):(me=ve.length)!=null?me:0},L=F(()=>O(E.value)),B=F(()=>v.value||!!(gr(e.maxLength)&&e.maxLength.errorOnly&&L.value>H.value)),j=F(()=>gr(e.maxLength)&&!!e.maxLength.errorOnly),H=F(()=>gr(e.maxLength)?e.maxLength.length:e.maxLength),U=F(()=>{const ve=O("a");return Math.floor(H.value/ve)}),K=ve=>{var me,Oe;H.value&&!j.value&&O(ve)>H.value&&(ve=(Oe=(me=e.wordSlice)==null?void 0:me.call(e,ve,H.value))!=null?Oe:ve.slice(0,U.value)),x.value=ve,t("update:modelValue",ve)},Y=ve=>{d.value&&ve.target!==d.value&&(ve.preventDefault(),d.value.focus())},ie=(ve,me)=>{var Oe,qe;ve!==_&&(_=ve,t("change",ve,me),(qe=(Oe=y.value)==null?void 0:Oe.onChange)==null||qe.call(Oe,me))},te=ve=>{var me,Oe;T.value=!0,t("focus",ve),(Oe=(me=y.value)==null?void 0:me.onFocus)==null||Oe.call(me,ve)},W=ve=>{var me,Oe;T.value=!1,ie(E.value,ve),t("blur",ve),(Oe=(me=y.value)==null?void 0:me.onBlur)==null||Oe.call(me,ve)},q=ve=>{var me,Oe,qe;const{value:Ke,selectionStart:at,selectionEnd:ft}=ve.target;if(ve.type==="compositionend"){if(P.value=!1,M.value="",H.value&&!j.value&&L.value>=H.value&&O(Ke)>H.value&&at===ft){Q();return}K(Ke),t("input",Ke,ve),(Oe=(me=y.value)==null?void 0:me.onInput)==null||Oe.call(me,ve),Q()}else P.value=!0,M.value=E.value+((qe=ve.data)!=null?qe:"")},Q=()=>{k(),dn(()=>{d.value&&E.value!==d.value.value&&(d.value.value=E.value,C())})},se=ve=>{var me,Oe;const{value:qe}=ve.target;if(!P.value){if(H.value&&!j.value&&L.value>=H.value&&O(qe)>H.value&&ve.inputType==="insertText"){Q();return}K(qe),t("input",qe,ve),(Oe=(me=y.value)==null?void 0:me.onInput)==null||Oe.call(me,ve),Q()}},ae=ve=>{K(""),ie("",ve),t("clear",ve)},re=ve=>{const me=ve.key||ve.code;!P.value&&me===uH.key&&(ie(E.value,ve),t("pressEnter",ve))},Ce=F(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),Ve=F(()=>[`${c}-wrapper`,{[`${c}-error`]:B.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:T.value}]),ge=F(()=>[c,`${c}-size-${S.value}`]),xe=F(()=>Ea(r,k0)),Ge=F(()=>kf(r,k0)),tt=F(()=>{const ve={...Ge.value,...e.inputAttrs};return B.value&&(ve["aria-invalid"]=!0),ve}),Ue=ve=>{var me;return $("span",Ft({class:Ve.value,onMousedown:Y},ve?void 0:xe.value),[n.prefix&&$("span",{class:`${c}-prefix`},[n.prefix()]),$("input",Ft({ref:d,class:ge.value,value:E.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:se,onKeydown:re,onFocus:te,onBlur:W,onCompositionstart:q,onCompositionupdate:q,onCompositionend:q},tt.value),null),D.value&&$(Lo,{prefix:c,class:`${c}-clear-btn`,onClick:ae},{default:()=>[$(fs,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!g.value)&&$("span",{class:[`${c}-suffix`,{[`${c}-suffix-has-feedback`]:g.value}]},[!!e.maxLength&&e.showWordLimit&&$("span",{class:`${c}-word-limit`},[L.value,He("/"),H.value]),(me=n.suffix)==null?void 0:me.call(n),!!g.value&&$(Q_,{type:g.value},null)])])};return{inputRef:d,render:()=>n.prepend||n.append||e.prepend||e.append?$("span",Ft({class:Ce.value},xe.value),[(n.prepend||e.prepend)&&$("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Ue(!0),(n.append||e.append)&&$("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Ue()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const PDe=we({name:"IconSearch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),RDe=["stroke-width","stroke-linecap","stroke-linejoin"];function MDe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"},null,-1)]),14,RDe)}var RP=ze(PDe,[["render",MDe]]);const Pm=Object.assign(RP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RP.name,RP)}}),bpe=Symbol("ArcoButtonGroup"),$De=we({name:"Button",components:{IconLoading:Ja},props:{type:{type:String},shape:{type:String},status:{type:String},size:{type:String},long:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean},htmlType:{type:String,default:"button"},autofocus:{type:Boolean,default:!1},href:String},emits:{click:e=>!0},setup(e,{emit:t}){const{size:n,disabled:r}=tn(e),i=Re("btn"),a=Pn(bpe,void 0),s=F(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=F(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:d}=Do({size:s,disabled:l}),{mergedSize:h}=Aa(c),p=F(()=>{var g,y,S,k,C,x;return[i,`${i}-${(y=(g=e.type)!=null?g:a?.type)!=null?y:"secondary"}`,`${i}-shape-${(k=(S=e.shape)!=null?S:a?.shape)!=null?k:"square"}`,`${i}-size-${h.value}`,`${i}-status-${(x=(C=e.status)!=null?C:a?.status)!=null?x:"normal"}`,{[`${i}-long`]:e.long,[`${i}-loading`]:e.loading,[`${i}-disabled`]:d.value,[`${i}-link`]:ds(e.href)}]});return{prefixCls:i,cls:p,mergedDisabled:d,handleClick:g=>{if(e.disabled||e.loading){g.preventDefault();return}t("click",g)}}}}),ODe=["href"],BDe=["type","disabled","autofocus"];function NDe(e,t,n,r,i,a){const s=Te("icon-loading");return e.href?(z(),X("a",{key:0,class:de([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),href:e.mergedDisabled||e.loading?void 0:e.href,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(z(),X("span",{key:0,class:de(`${e.prefixCls}-icon`)},[e.loading?(z(),Ze(s,{key:0,spin:"true"})):mt(e.$slots,"icon",{key:1})],2)):Ie("v-if",!0),mt(e.$slots,"default")],10,ODe)):(z(),X("button",{key:1,class:de([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),type:e.htmlType,disabled:e.mergedDisabled,autofocus:e.autofocus,onClick:t[1]||(t[1]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(z(),X("span",{key:0,class:de(`${e.prefixCls}-icon`)},[e.loading?(z(),Ze(s,{key:0,spin:!0})):mt(e.$slots,"icon",{key:1})],2)):Ie("v-if",!0),mt(e.$slots,"default")],10,BDe))}var MP=ze($De,[["render",NDe]]);const FDe=we({name:"ButtonGroup",props:{type:{type:String},status:{type:String},shape:{type:String},size:{type:String},disabled:{type:Boolean}},setup(e){const{type:t,size:n,status:r,disabled:i,shape:a}=tn(e),s=Re("btn-group");return ri(bpe,qt({type:t,size:n,shape:a,status:r,disabled:i})),{prefixCls:s}}});function jDe(e,t,n,r,i,a){return z(),X("div",{class:de(e.prefixCls)},[mt(e.$slots,"default")],2)}var rb=ze(FDe,[["render",jDe]]);const Xo=Object.assign(MP,{Group:rb,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+MP.name,MP),e.component(n+rb.name,rb)}});var rw=we({name:"InputSearch",props:{searchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},buttonText:{type:String},buttonProps:{type:Object}},emits:{search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r}=tn(e),i=Re("input-search"),{mergedSize:a}=Aa(r),s=ue(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return $(Pt,null,[e.loading?$(Ja,null,null):$(Lo,{onClick:l},{default:()=>[$(Pm,null,null)]}),(p=n.suffix)==null?void 0:p.call(n)])},d=()=>{var p;let v={};return e.buttonText||n["button-default"]||n["button-icon"]?v={default:(p=n["button-default"])!=null?p:e.buttonText?()=>e.buttonText:void 0,icon:n["button-icon"]}:v={icon:()=>$(Pm,null,null)},$(Xo,Ft({type:"primary",class:`${i}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),v)};return{inputRef:s,render:()=>$(nb,{ref:s,class:i,size:a.value,disabled:e.disabled},{prepend:n.prepend,prefix:n.prefix,suffix:e.searchButton?n.suffix:c,append:e.searchButton?d:n.append})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const VDe=we({name:"IconEye",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zDe=["stroke-width","stroke-linecap","stroke-linejoin"];function UDe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"},null,-1),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)]),14,zDe)}var $P=ze(VDe,[["render",UDe]]);const x0=Object.assign($P,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$P.name,$P)}}),HDe=we({name:"IconEyeInvisible",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),WDe=["stroke-width","stroke-linecap","stroke-linejoin"];function GDe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1)]),14,WDe)}var OP=ze(HDe,[["render",GDe]]);const _pe=Object.assign(OP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OP.name,OP)}});function Ya(e){const t=ue(e);return[t,r=>{t.value=r}]}function pa(e,t){const{value:n}=tn(t),[r,i]=Ya(xn(n.value)?e:n.value);return It(n,s=>{xn(s)&&i(void 0)}),[F(()=>xn(n.value)?r.value:n.value),i,r]}const KDe=we({name:"InputPassword",components:{IconEye:x0,IconEyeInvisible:_pe,AIconHover:Lo,AInput:nb},props:{visibility:{type:Boolean,default:void 0},defaultVisibility:{type:Boolean,default:!0},invisibleButton:{type:Boolean,default:!0}},emits:["visibility-change","update:visibility"],setup(e,{emit:t}){const{visibility:n,defaultVisibility:r}=tn(e),i=ue(),a=()=>{c(!s.value)},[s,l]=pa(r.value,qt({value:n})),c=d=>{d!==s.value&&(t("visibility-change",d),t("update:visibility",d),l(d))};return{inputRef:i,mergedVisible:s,handleInvisible:a}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}}});function qDe(e,t,n,r,i,a){const s=Te("icon-eye"),l=Te("icon-eye-invisible"),c=Te("a-icon-hover"),d=Te("a-input");return z(),Ze(d,{ref:"inputRef",type:e.mergedVisible?"password":"text"},yo({_:2},[e.$slots.prepend?{name:"prepend",fn:fe(()=>[mt(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:fe(()=>[mt(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:fe(()=>[e.invisibleButton?(z(),Ze(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=cs(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=cs(()=>{},["prevent"]))},{default:fe(()=>[e.mergedVisible?(z(),Ze(l,{key:1})):(z(),Ze(s,{key:0}))]),_:1},8,["onClick"])):Ie("v-if",!0),mt(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:fe(()=>[mt(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var iw=ze(KDe,[["render",qDe]]);const YDe=we({name:"InputGroup",setup(){return{prefixCls:Re("input-group")}}});function XDe(e,t,n,r,i,a){return z(),X("div",{class:de(e.prefixCls)},[mt(e.$slots,"default")],2)}var ly=ze(YDe,[["render",XDe]]);const F0=Object.assign(nb,{Search:rw,Password:iw,Group:ly,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+nb.name,nb),e.component(n+ly.name,ly),e.component(n+rw.name,rw),e.component(n+iw.name,iw)}}),ZDe=()=>{const{height:e,width:t}=fpe();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},ire=(e,t)=>{var n,r;const i=e.getBoundingClientRect();return{top:i.top,bottom:i.bottom,left:i.left,right:i.right,scrollTop:i.top-t.top,scrollBottom:i.bottom-t.top,scrollLeft:i.left-t.left,scrollRight:i.right-t.left,width:(n=e.offsetWidth)!=null?n:e.clientWidth,height:(r=e.offsetHeight)!=null?r:e.clientHeight}},JDe=e=>{switch(e){case"top":case"tl":case"tr":return"top";case"bottom":case"bl":case"br":return"bottom";case"left":case"lt":case"lb":return"left";case"right":case"rt":case"rb":return"right";default:return"top"}},Sx=(e,t)=>{switch(t){case"top":switch(e){case"bottom":return"top";case"bl":return"tl";case"br":return"tr";default:return e}case"bottom":switch(e){case"top":return"bottom";case"tl":return"bl";case"tr":return"br";default:return e}case"left":switch(e){case"right":return"left";case"rt":return"lt";case"rb":return"lb";default:return e}case"right":switch(e){case"left":return"right";case"lt":return"rt";case"lb":return"rb";default:return e}default:return e}},QDe=(e,t,{containerRect:n,triggerRect:r,popupRect:i,offset:a,translate:s})=>{const l=JDe(e),c=ZDe(),d={top:n.top+t.top,bottom:c.height-(n.top+t.top+i.height),left:n.left+t.left,right:c.width-(n.left+t.left+i.width)};let h=e;if(l==="top"&&d.top<0)if(r.top>i.height)t.top=-n.top;else{const p=L4("bottom",r,i,{offset:a,translate:s});c.height-(n.top+p.top+i.height)>0&&(h=Sx(e,"bottom"),t.top=p.top)}if(l==="bottom"&&d.bottom<0)if(c.height-r.bottom>i.height)t.top=-n.top+(c.height-i.height);else{const p=L4("top",r,i,{offset:a,translate:s});n.top+p.top>0&&(h=Sx(e,"top"),t.top=p.top)}if(l==="left"&&d.left<0)if(r.left>i.width)t.left=-n.left;else{const p=L4("right",r,i,{offset:a,translate:s});c.width-(n.left+p.left+i.width)>0&&(h=Sx(e,"right"),t.left=p.left)}if(l==="right"&&d.right<0)if(c.width-r.right>i.width)t.left=-n.left+(c.width-i.width);else{const p=L4("left",r,i,{offset:a,translate:s});n.left+p.left>0&&(h=Sx(e,"left"),t.left=p.left)}return(l==="top"||l==="bottom")&&(d.left<0?t.left=-n.left:d.right<0&&(t.left=-n.left+(c.width-i.width))),(l==="left"||l==="right")&&(d.top<0?t.top=-n.top:d.bottom<0&&(t.top=-n.top+(c.height-i.height))),{popupPosition:t,position:h}},L4=(e,t,n,{offset:r=0,translate:i=[0,0]}={})=>{var a;const s=(a=nr(i)?i:i[e])!=null?a:[0,0];switch(e){case"top":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+s[0],top:t.scrollTop-n.height-r+s[1]};case"tl":return{left:t.scrollLeft+s[0],top:t.scrollTop-n.height-r+s[1]};case"tr":return{left:t.scrollRight-n.width+s[0],top:t.scrollTop-n.height-r+s[1]};case"bottom":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+s[0],top:t.scrollBottom+r+s[1]};case"bl":return{left:t.scrollLeft+s[0],top:t.scrollBottom+r+s[1]};case"br":return{left:t.scrollRight-n.width+s[0],top:t.scrollBottom+r+s[1]};case"left":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+s[1]};case"lt":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollTop+s[1]};case"lb":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollBottom-n.height+s[1]};case"right":return{left:t.scrollRight+r+s[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+s[1]};case"rt":return{left:t.scrollRight+r+s[0],top:t.scrollTop+s[1]};case"rb":return{left:t.scrollRight+r+s[0],top:t.scrollBottom-n.height+s[1]};default:return{left:0,top:0}}},ePe=e=>{let t="0";["top","bottom"].includes(e)?t="50%":["left","lt","lb","tr","br"].includes(e)&&(t="100%");let n="0";return["left","right"].includes(e)?n="50%":["top","tl","tr","lb","rb"].includes(e)&&(n="100%"),`${t} ${n}`},tPe=(e,t,n,r,{offset:i=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,d=L4(e,n,r,{offset:i,translate:a});if(l){const p=QDe(e,d,{containerRect:t,popupRect:r,triggerRect:n,offset:i,translate:a});d=p.popupPosition,c=p.position}return{style:{left:`${d.left}px`,top:`${d.top}px`,...s},position:c}},nPe=(e,t,n,{customStyle:r={}})=>{if(["top","tl","tr","bottom","bl","br"].includes(e)){let a=Math.abs(t.scrollLeft+t.width/2-n.scrollLeft);return a>n.width-8&&(t.width>n.width?a=n.width/2:a=n.width-8),["top","tl","tr"].includes(e)?{left:`${a}px`,bottom:"0",transform:"translate(-50%,50%) rotate(45deg)",...r}:{left:`${a}px`,top:"0",transform:"translate(-50%,-50%) rotate(45deg)",...r}}let i=Math.abs(t.scrollTop+t.height/2-n.scrollTop);return i>n.height-8&&(t.height>n.height?i=n.height/2:i=n.height-8),["left","lt","lb"].includes(e)?{top:`${i}px`,right:"0",transform:"translate(50%,-50%) rotate(45deg)",...r}:{top:`${i}px`,left:"0",transform:"translate(-50%,-50%) rotate(45deg)",...r}},rPe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,ore=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)rPe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},Spe=()=>{const e={},t=ue(),n=()=>{const r=ape(e.value);r!==t.value&&(t.value=r)};return hn(()=>n()),tl(()=>n()),{children:e,firstElement:t}};var C0=we({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:i}=Spe();let a;const s=c=>{c&&(a=new D5(d=>{const h=d[0];t("resize",h)}),a.observe(c))},l=()=>{a&&(a.disconnect(),a=null)};return It(i,c=>{a&&l(),c&&s(c)}),_o(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function Cd(e,t){const n=ue(e[t]);return tl(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const sre=Symbol("ArcoTrigger"),iPe=1e3,oPe=5e3,sPe=1;class aPe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||oPe:Array.from(this.popupStack.popup).pop()||iPe)+sPe,this.add=t=>{const n=this.getNextZIndex(t);return this.popupStack[t].add(n),t==="dialog"&&this.popupStack.popup.add(n),n},this.delete=(t,n)=>{this.popupStack[n].delete(t),n==="dialog"&&this.popupStack.popup.delete(t)},this.isLastDialog=t=>this.popupStack.dialog.size>1?t===Array.from(this.popupStack.dialog).pop():!0}}const BP=new aPe;function l3(e,{visible:t,runOnMounted:n}={}){const r=ue(0),i=()=>{r.value=BP.add(e)},a=()=>{BP.delete(r.value,e)},s=()=>e==="dialog"?BP.isLastDialog(r.value):!1;return It(()=>t?.value,l=>{l?i():a()},{immediate:!0}),n&&(hn(()=>{i()}),_o(()=>{a()})),{zIndex:Yb(r),open:i,close:a,isLastDialog:s}}const lPe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new D5(a=>{const s=a[0];Sn(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var dH=we({name:"ClientOnly",setup(e,{slots:t}){const n=ue(!1);return hn(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const fH=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const i=ue(e.value),a=ue(),s=()=>{const l=af(e.value),c=l?e.value:n,d=l??(r?document.documentElement:af(n));c!==i.value&&(i.value=c),d!==a.value&&(a.value=d)};return hn(()=>s()),It(t,l=>{i.value!==e.value&&l&&s()}),{teleportContainer:i,containerRef:a}},uPe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var NP=we({name:"Trigger",inheritAttrs:!1,props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},popupOffset:{type:Number,default:0},popupTranslate:{type:[Array,Object]},showArrow:{type:Boolean,default:!1},alignPoint:{type:Boolean,default:!1},popupHoverStay:{type:Boolean,default:!0},blurToClose:{type:Boolean,default:!0},clickToClose:{type:Boolean,default:!0},clickOutsideToClose:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!0},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupStyle:{type:Object},animationName:{type:String,default:"fade-in"},duration:{type:[Number,Object]},mouseEnterDelay:{type:Number,default:100},mouseLeaveDelay:{type:Number,default:100},focusDelay:{type:Number,default:0},autoFitPopupWidth:{type:Boolean,default:!1},autoFitPopupMinWidth:{type:Boolean,default:!1},autoFixPosition:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},updateAtScroll:{type:Boolean,default:!1},autoFitTransformOrigin:{type:Boolean,default:!1},hideEmpty:{type:Boolean,default:!1},openedClass:{type:[String,Array,Object]},autoFitPosition:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},preventFocus:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},scrollToCloseDistance:{type:Number,default:0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,show:()=>!0,hide:()=>!0,resize:()=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{popupContainer:i}=tn(e),a=Re("trigger"),s=F(()=>Ea(r,uPe)),l=Pn(Za,void 0),c=F(()=>[].concat(e.trigger)),d=new Set,h=Pn(sre,void 0),{children:p,firstElement:v}=Spe(),g=ue(),y=ue(e.defaultPopupVisible),S=ue(e.position),k=ue({}),C=ue({}),x=ue({}),E=ue(),_=ue({top:0,left:0});let T=null,D=null;const P=F(()=>{var Fe;return(Fe=e.popupVisible)!=null?Fe:y.value}),{teleportContainer:M,containerRef:O}=fH({popupContainer:i,visible:P,documentContainer:!0}),{zIndex:L}=l3("popup",{visible:P});let B=0,j=!1,H=!1;const U=()=>{B&&(window.clearTimeout(B),B=0)},K=Fe=>{if(e.alignPoint){const{pageX:Me,pageY:Ee}=Fe;_.value={top:Ee,left:Me}}},Y=()=>{if(!v.value||!g.value||!O.value)return;const Fe=O.value.getBoundingClientRect(),Me=e.alignPoint?{top:_.value.top,bottom:_.value.top,left:_.value.left,right:_.value.left,scrollTop:_.value.top,scrollBottom:_.value.top,scrollLeft:_.value.left,scrollRight:_.value.left,width:0,height:0}:ire(v.value,Fe),Ee=()=>ire(g.value,Fe),We=Ee(),{style:$e,position:dt}=tPe(e.position,Fe,Me,We,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(C.value={transformOrigin:ePe(dt)}),e.autoFitPopupMinWidth?$e.minWidth=`${Me.width}px`:e.autoFitPopupWidth&&($e.width=`${Me.width}px`),S.value!==dt&&(S.value=dt),k.value=$e,e.showArrow&&dn(()=>{x.value=nPe(dt,Me,Ee(),{customStyle:e.arrowStyle})})},ie=(Fe,Me)=>{if(Fe===P.value&&B===0)return;const Ee=()=>{y.value=Fe,t("update:popupVisible",Fe),t("popupVisibleChange",Fe),Fe&&dn(()=>{Y()})};Fe||(T=null,D=null),Me?(U(),Fe!==P.value&&(B=window.setTimeout(Ee,Me))):Ee()},te=Fe=>{var Me;(Me=r.onClick)==null||Me.call(r,Fe),!(e.disabled||P.value&&!e.clickToClose)&&(c.value.includes("click")?(K(Fe),ie(!P.value)):c.value.includes("contextMenu")&&P.value&&ie(!1))},W=Fe=>{var Me;(Me=r.onMouseenter)==null||Me.call(r,Fe),!(e.disabled||!c.value.includes("hover"))&&(K(Fe),ie(!0,e.mouseEnterDelay))},q=Fe=>{h?.onMouseenter(Fe),W(Fe)},Q=Fe=>{var Me;(Me=r.onMouseleave)==null||Me.call(r,Fe),!(e.disabled||!c.value.includes("hover"))&&ie(!1,e.mouseLeaveDelay)},se=Fe=>{h?.onMouseleave(Fe),Q(Fe)},ae=Fe=>{var Me;(Me=r.onFocusin)==null||Me.call(r,Fe),!(e.disabled||!c.value.includes("focus"))&&ie(!0,e.focusDelay)},re=Fe=>{var Me;(Me=r.onFocusout)==null||Me.call(r,Fe),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&ie(!1)},Ce=Fe=>{var Me;(Me=r.onContextmenu)==null||Me.call(r,Fe),!(e.disabled||!c.value.includes("contextMenu")||P.value&&!e.clickToClose)&&(K(Fe),ie(!P.value),Fe.preventDefault())};ri(sre,qt({onMouseenter:q,onMouseleave:se,addChildRef:Fe=>{d.add(Fe),h?.addChildRef(Fe)},removeChildRef:Fe=>{d.delete(Fe),h?.removeChildRef(Fe)}}));const xe=()=>{no(document.documentElement,"mousedown",Ue),j=!1},Ge=Cd(n,"content"),tt=F(()=>{var Fe;return e.hideEmpty&&x7e((Fe=Ge.value)==null?void 0:Fe.call(Ge))}),Ue=Fe=>{var Me,Ee,We;if(!((Me=v.value)!=null&&Me.contains(Fe.target)||(Ee=g.value)!=null&&Ee.contains(Fe.target))){for(const $e of d)if((We=$e.value)!=null&&We.contains(Fe.target))return;xe(),ie(!1)}},_e=(Fe,Me)=>{const[Ee,We]=Fe,{scrollTop:$e,scrollLeft:dt}=Me;return Math.abs($e-Ee)>=e.scrollToCloseDistance||Math.abs(dt-We)>=e.scrollToCloseDistance},ve=Dm(Fe=>{if(P.value)if(e.scrollToClose||l?.scrollToClose){const Me=Fe.target;T||(T=[Me.scrollTop,Me.scrollLeft]),_e(T,Me)?ie(!1):Y()}else Y()}),me=()=>{no(window,"scroll",Oe),H=!1},Oe=Dm(Fe=>{const Me=Fe.target.documentElement;D||(D=[Me.scrollTop,Me.scrollLeft]),_e(D,Me)&&(ie(!1),me())}),qe=()=>{P.value&&Y()},Ke=()=>{qe(),t("resize")},at=Fe=>{e.preventFocus&&Fe.preventDefault()};h?.addChildRef(g);const ft=F(()=>P.value?e.openedClass:void 0);let ct;It(P,Fe=>{if(e.clickOutsideToClose&&(!Fe&&j?xe():Fe&&!j&&(Mi(document.documentElement,"mousedown",Ue),j=!0)),(e.scrollToClose||l?.scrollToClose)&&(Mi(window,"scroll",Oe),H=!0),e.updateAtScroll||l?.updateAtScroll){if(Fe){ct=ore(v.value);for(const Me of ct)Me.addEventListener("scroll",ve)}else if(ct){for(const Me of ct)Me.removeEventListener("scroll",ve);ct=void 0}}Fe&&(Rt.value=!0)}),It(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{P.value&&Y()});const{createResizeObserver:wt,destroyResizeObserver:Ct}=lPe({elementRef:O,onResize:qe});hn(()=>{if(wt(),P.value&&(Y(),e.clickOutsideToClose&&!j&&(Mi(document.documentElement,"mousedown",Ue),j=!0),e.updateAtScroll||l?.updateAtScroll)){ct=ore(v.value);for(const Fe of ct)Fe.addEventListener("scroll",ve)}}),tl(()=>{P.value&&Y()}),WU(()=>{ie(!1)}),_o(()=>{if(h?.removeChildRef(g),Ct(),j&&xe(),H&&me(),ct){for(const Fe of ct)Fe.removeEventListener("scroll",ve);ct=void 0}});const Rt=ue(P.value),Ht=ue(!1),Jt=()=>{Ht.value=!0},rn=()=>{Ht.value=!1,P.value&&t("show")},vt=()=>{Ht.value=!1,P.value||(Rt.value=!1,t("hide"))};return()=>{var Fe,Me;return p.value=(Me=(Fe=n.default)==null?void 0:Fe.call(n))!=null?Me:[],ope(p.value,{class:ft.value,onClick:te,onMouseenter:W,onMouseleave:Q,onFocusin:ae,onFocusout:re,onContextmenu:Ce}),$(Pt,null,[e.autoFixPosition?$(C0,{onResize:Ke},{default:()=>[p.value]}):p.value,$(dH,null,{default:()=>[$(Zm,{to:M.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||P.value||Rt.value)&&!tt.value&&$(C0,{onResize:qe},{default:()=>[$("div",Ft({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:L.value,pointerEvents:Ht.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:q,onMouseleave:se,onMousedown:at},s.value),[$(Cs,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Jt,onAfterEnter:rn,onBeforeLeave:Jt,onAfterLeave:vt},{default:()=>{var Ee;return[Ai($("div",{class:`${a}-popup-wrapper`,style:C.value},[$("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Ee=n.content)==null?void 0:Ee.call(n)]),e.showArrow&&$("div",{ref:E,class:[`${a}-arrow`,e.arrowClass],style:x.value},null)]),[[es,P.value]])]}})])]})]})]})])}}});const va=Object.assign(NP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+NP.name,NP)}}),cPe=we({name:"IconEmpty",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dPe=["stroke-width","stroke-linecap","stroke-linejoin"];function fPe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"},null,-1)]),14,dPe)}var FP=ze(cPe,[["render",fPe]]);const N5=Object.assign(FP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FP.name,FP)}});var ow=we({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=Re("empty"),{t:i}=No(),a=Pn(Za,void 0);return()=>{var s,l,c,d;return!e.inConfigProvider&&a?.slots.empty&&!(t.image||e.imgSrc||e.description)?a.slots.empty({component:"empty"}):$("div",Ft({class:r},n),[$("div",{class:`${r}-image`},[(l=(s=t.image)==null?void 0:s.call(t))!=null?l:e.imgSrc?$("img",{src:e.imgSrc,alt:e.description||"empty"},null):$(N5,null,null)]),$("div",{class:`${r}-description`},[(d=(c=t.default)==null?void 0:c.call(t))!=null?d:e.description||i("empty.description")])])}}});const Xh=Object.assign(ow,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+ow.name,ow)}}),hPe=5;var pPe=we({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=Re("dot-loading");return()=>{const n=e.size?{width:`${e.size}px`,height:`${e.size}px`}:{};return $("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(hPe).fill(1).map((r,i)=>$("div",{class:`${t}-item`,key:i,style:n},null))])}}}),jP=we({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Re("spin"),r=Pn(Za,void 0),i=F(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=sy(t.icon());if(l)return El(l,{spin:!0})}return t.element?t.element():e.dot?$(pPe,{size:e.size},null):r?.slots.loading?r.slots.loading():$(Ja,{spin:!0,size:e.size},null)},s=()=>{var l,c,d;const h=e.size?{fontSize:`${e.size}px`}:void 0,p=!!((l=t.tip)!=null?l:e.tip);return $(Pt,null,[!e.hideIcon&&$("div",{class:`${n}-icon`,style:h},[a()]),p&&$("div",{class:`${n}-tip`},[(d=(c=t.tip)==null?void 0:c.call(t))!=null?d:e.tip])])};return()=>$("div",{class:i.value},[t.default?$(Pt,null,[t.default(),e.loading&&$("div",{class:`${n}-mask`},[$("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const Pd=Object.assign(jP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+jP.name,jP)}}),vPe=we({name:"Thumb",props:{data:{type:Object},direction:{type:String,default:"horizontal"},alwaysShow:{type:Boolean,default:!1},both:{type:Boolean,default:!1}},emits:["scroll"],setup(e,{emit:t}){const n=Re("scrollbar"),r=ue(!1),i=ue(),a=ue(),s=F(()=>e.direction==="horizontal"?{size:"width",direction:"left",offset:"offsetWidth",client:"clientX"}:{size:"height",direction:"top",offset:"offsetHeight",client:"clientY"}),l=ue(0),c=ue(!1),d=ue(0),h=F(()=>{var x,E;return{[s.value.size]:`${(E=(x=e.data)==null?void 0:x.thumbSize)!=null?E:0}px`,[s.value.direction]:`${l.value}px`}}),p=x=>{x.preventDefault(),a.value&&(d.value=x[s.value.client]-a.value.getBoundingClientRect()[s.value.direction],c.value=!0,Mi(window,"mousemove",y),Mi(window,"mouseup",S),Mi(window,"contextmenu",S))},v=x=>{var E,_,T,D;if(x.preventDefault(),a.value){const P=g(x[s.value.client]>a.value.getBoundingClientRect()[s.value.direction]?l.value+((_=(E=e.data)==null?void 0:E.thumbSize)!=null?_:0):l.value-((D=(T=e.data)==null?void 0:T.thumbSize)!=null?D:0));P!==l.value&&(l.value=P,t("scroll",P))}},g=x=>x<0?0:e.data&&x>e.data.max?e.data.max:x,y=x=>{if(i.value&&a.value){const E=g(x[s.value.client]-i.value.getBoundingClientRect()[s.value.direction]-d.value);E!==l.value&&(l.value=E,t("scroll",E))}},S=()=>{c.value=!1,no(window,"mousemove",y),no(window,"mouseup",S)},k=x=>{c.value||(x=g(x),x!==l.value&&(l.value=x))},C=F(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:c.value}]);return{visible:r,trackRef:i,thumbRef:a,prefixCls:n,thumbCls:C,thumbStyle:h,handleThumbMouseDown:p,handleTrackClick:v,setOffset:k}}});function mPe(e,t,n,r,i,a){return z(),Ze(Cs,null,{default:fe(()=>[I("div",{ref:"trackRef",class:de([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=cs((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[I("div",{ref:"thumbRef",class:de(e.thumbCls),style:Ye(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[I("div",{class:de(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var gPe=ze(vPe,[["render",mPe]]);const are=20,kx=15,yPe=we({name:"Scrollbar",components:{ResizeObserver:C0,Thumb:gPe},inheritAttrs:!1,props:{type:{type:String,default:"embed"},outerClass:[String,Object,Array],outerStyle:{type:[String,Object,Array]},hide:{type:Boolean,default:!1},disableHorizontal:{type:Boolean,default:!1},disableVertical:{type:Boolean,default:!1}},emits:{scroll:e=>!0},setup(e,{emit:t}){const n=Re("scrollbar"),r=ue(),i=ue(),a=ue(),s=ue(),l=ue(),c=ue(!1),d=ue(!1),h=F(()=>c.value&&!e.disableHorizontal),p=F(()=>d.value&&!e.disableVertical),v=ue(!1),g=()=>{var _,T,D,P,M,O;if(r.value){const{clientWidth:L,clientHeight:B,offsetWidth:j,offsetHeight:H,scrollWidth:U,scrollHeight:K,scrollTop:Y,scrollLeft:ie}=r.value;c.value=U>L,d.value=K>B,v.value=h.value&&p.value;const te=e.type==="embed"&&v.value?j-kx:j,W=e.type==="embed"&&v.value?H-kx:H,q=Math.round(te/Math.min(U/L,te/are)),Q=te-q,se=(U-L)/Q,ae=Math.round(W/Math.min(K/B,W/are)),re=W-ae,Ce=(K-B)/re;if(i.value={ratio:se,thumbSize:q,max:Q},a.value={ratio:Ce,thumbSize:ae,max:re},Y>0){const Ve=Math.round(Y/((T=(_=a.value)==null?void 0:_.ratio)!=null?T:1));(D=l.value)==null||D.setOffset(Ve)}if(ie>0){const Ve=Math.round(ie/((M=(P=a.value)==null?void 0:P.ratio)!=null?M:1));(O=s.value)==null||O.setOffset(Ve)}}};hn(()=>{g()});const y=()=>{g()},S=_=>{var T,D,P,M,O,L;if(r.value){if(h.value&&!e.disableHorizontal){const B=Math.round(r.value.scrollLeft/((D=(T=i.value)==null?void 0:T.ratio)!=null?D:1));(P=s.value)==null||P.setOffset(B)}if(p.value&&!e.disableVertical){const B=Math.round(r.value.scrollTop/((O=(M=a.value)==null?void 0:M.ratio)!=null?O:1));(L=l.value)==null||L.setOffset(B)}}t("scroll",_)},k=_=>{var T,D;r.value&&r.value.scrollTo({left:_*((D=(T=i.value)==null?void 0:T.ratio)!=null?D:1)})},C=_=>{var T,D;r.value&&r.value.scrollTo({top:_*((D=(T=a.value)==null?void 0:T.ratio)!=null?D:1)})},x=F(()=>{const _={};return e.type==="track"&&(h.value&&(_.paddingBottom=`${kx}px`),p.value&&(_.paddingRight=`${kx}px`)),[_,e.outerStyle]}),E=F(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:v.value},e.outerClass]);return{prefixCls:n,cls:E,style:x,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:i,verticalData:a,isBoth:v,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:y,handleScroll:S,handleHorizontalScroll:k,handleVerticalScroll:C}},methods:{scrollTo(e,t){var n,r;gr(e)?(n=this.$refs.containerRef)==null||n.scrollTo(e):(e||t)&&((r=this.$refs.containerRef)==null||r.scrollTo(e,t))},scrollTop(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({top:e})},scrollLeft(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({left:e})}}});function bPe(e,t,n,r,i,a){const s=Te("ResizeObserver"),l=Te("thumb");return z(),X("div",{class:de(e.cls),style:Ye(e.style)},[$(s,{onResize:e.handleResize},{default:fe(()=>[I("div",Ft({ref:"containerRef",class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||(t[0]=(...c)=>e.handleScroll&&e.handleScroll(...c))}),[$(s,{onResize:e.handleResize},{default:fe(()=>[mt(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(z(),Ze(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Ie("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(z(),Ze(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Ie("v-if",!0)],6)}var VP=ze(yPe,[["render",bPe]]);const Rd=Object.assign(VP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+VP.name,VP)}}),G1=e=>{const t=ue(),n=()=>Qhe(t.value)?t.value.$refs[e]:t.value,r=ue();return hn(()=>{r.value=n()}),It([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},F5=e=>{const t=F(()=>!!e.value),n=F(()=>{if(e.value)return{type:"embed",...Tl(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},_Pe=we({name:"SelectDropdown",components:{ScrollbarComponent:Rd,Empty:Xh,Spin:Pd},props:{loading:Boolean,empty:Boolean,virtualList:Boolean,bottomOffset:{type:Number,default:0},scrollbar:{type:[Boolean,Object],default:!0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){var r,i,a;const{scrollbar:s}=tn(e),l=Re("select-dropdown"),c=Pn(Za,void 0),d=(a=(i=c==null?void 0:(r=c.slots).empty)==null?void 0:i.call(r,{component:"select"}))==null?void 0:a[0],{componentRef:h,elementRef:p}=G1("containerRef"),{displayScrollbar:v,scrollbarProps:g}=F5(s),y=k=>{const{scrollTop:C,scrollHeight:x,offsetHeight:E}=k.target;x-(C+E)<=e.bottomOffset&&t("reachBottom",k),t("scroll",k)},S=F(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:d,cls:S,wrapperRef:p,wrapperComRef:h,handleScroll:y,displayScrollbar:v,scrollbarProps:g}}});function SPe(e,t,n,r,i,a){const s=Te("spin");return z(),X("div",{class:de(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(z(),X("div",{key:0,class:de(`${e.prefixCls}-header`)},[mt(e.$slots,"header")],2)):Ie("v-if",!0),e.loading?(z(),Ze(s,{key:1,class:de(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(z(),X("div",{key:2,class:de(`${e.prefixCls}-empty`)},[mt(e.$slots,"empty",{},()=>[(z(),Ze(wa(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Ie("v-if",!0),e.virtualList&&!e.loading&&!e.empty?mt(e.$slots,"virtual-list",{key:3}):Ie("v-if",!0),e.virtualList?Ie("v-if",!0):Ai((z(),Ze(wa(e.displayScrollbar?"ScrollbarComponent":"div"),Ft({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:fe(()=>[I("ul",{class:de(`${e.prefixCls}-list`)},[mt(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[es,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(z(),X("div",{key:5,class:de(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer")],2)):Ie("v-if",!0)],2)}var hH=ze(_Pe,[["render",SPe]]),lre=we({name:"IconCheck",render(){return $("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},[$("path",{d:"M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z","p-id":"840"},null)])}});const kpe=Symbol("ArcoCheckboxGroup");var sw=we({name:"Checkbox",components:{IconCheck:lre,IconHover:Lo},props:{modelValue:{type:[Boolean,Array],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean]},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r,modelValue:i}=tn(e),a=Re("checkbox"),s=ue(),l=e.uninjectGroupContext?void 0:Pn(kpe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:d,eventHandlers:h}=Do({disabled:r}),p=ue(e.defaultChecked),v=F(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=F(()=>{var _;return nr(v.value)?v.value.includes((_=e.value)!=null?_:!0):v.value}),y=F(()=>l?.disabled||d?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var T,D,P,M;const{checked:O}=_.target;let L=O;if(nr(v.value)){const B=new Set(v.value);O?B.add((T=e.value)!=null?T:!0):B.delete((D=e.value)!=null?D:!0),L=Array.from(B)}p.value=O,c&&nr(L)?l?.handleChange(L,_):(t("update:modelValue",L),t("change",L,_),(M=(P=h.value)==null?void 0:P.onChange)==null||M.call(P,_)),dn(()=>{s.value&&s.value.checked!==g.value&&(s.value.checked=g.value)})},C=F(()=>[a,{[`${a}-checked`]:g.value,[`${a}-indeterminate`]:e.indeterminate,[`${a}-disabled`]:y.value}]),x=_=>{var T,D;(D=(T=h.value)==null?void 0:T.onFocus)==null||D.call(T,_)},E=_=>{var T,D;(D=(T=h.value)==null?void 0:T.onBlur)==null||D.call(T,_)};return It(i,_=>{(xn(_)||Al(_))&&(p.value=!1)}),It(v,_=>{var T;let D;nr(_)?D=_.includes((T=e.value)!=null?T:!0):D=_,p.value!==D&&(p.value=D),s.value&&s.value.checked!==D&&(s.value.checked=D)}),()=>{var _,T,D,P;return $("label",{"aria-disabled":y.value,class:C.value},[$("input",{ref:s,type:"checkbox",checked:g.value,value:e.value,class:`${a}-target`,disabled:y.value,onClick:S,onChange:k,onFocus:x,onBlur:E},null),(P=(D=(T=n.checkbox)!=null?T:(_=l?.slots)==null?void 0:_.checkbox)==null?void 0:D({checked:g.value,disabled:y.value}))!=null?P:$(Lo,{class:`${a}-icon-hover`,disabled:y.value||g.value},{default:()=>[$("div",{class:`${a}-icon`},[g.value&&$(lre,{class:`${a}-icon-check`},null)])]}),n.default&&$("span",{class:`${a}-label`},[n.default()])])}}}),ib=we({name:"CheckboxGroup",props:{modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},max:{type:Number},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r}=tn(e),i=Re("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=Do({disabled:r}),l=ue(e.defaultValue),c=F(()=>nr(e.modelValue)?e.modelValue:l.value),d=F(()=>e.max===void 0?!1:c.value.length>=e.max),h=F(()=>{var y;return((y=e.options)!=null?y:[]).map(S=>ds(S)||et(S)?{label:S,value:S}:S)});ri(kpe,qt({name:"ArcoCheckboxGroup",computedValue:c,disabled:a,isMaxed:d,slots:n,handleChange:(y,S)=>{var k,C;l.value=y,t("update:modelValue",y),t("change",y,S),(C=(k=s.value)==null?void 0:k.onChange)==null||C.call(k,S)}}));const v=F(()=>[i,`${i}-direction-${e.direction}`]);It(()=>e.modelValue,y=>{nr(y)?l.value=[...y]:l.value=[]});const g=()=>h.value.map(y=>{const S=c.value.includes(y.value);return $(sw,{key:y.value,value:y.value,disabled:y.disabled||!S&&d.value,indeterminate:y.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:y}):Sn(y.label)?y.label():y.label]})});return()=>{var y;return $("span",{class:v.value},[h.value.length>0?g():(y=n.default)==null?void 0:y.call(n)])}}});const Wc=Object.assign(sw,{Group:ib,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+sw.name,sw),e.component(n+ib.name,ib)}}),xpe=Symbol("ArcoSelectContext"),kPe=e=>gr(e)&&"isGroup"in e,Cpe=e=>gr(e)&&"isGroup"in e,xPe=(e,t="value")=>String(gr(e)?e[t]:e),Rm=(e,t="value")=>gr(e)?`__arco__option__object__${e[t]}`:e||et(e)||ds(e)||Tl(e)?`__arco__option__${typeof e}-${e}`:"",CPe=e=>e.has("__arco__option__string-"),wPe=(e,{valueKey:t,fieldNames:n,origin:r,index:i=-1})=>{var a;if(gr(e)){const l=e[n.value];return{raw:e,index:i,key:Rm(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:xPe(l,t),render:e[n.render],disabled:!!e[n.disabled],tagProps:e[n.tagProps]}}const s={value:e,label:String(e),disabled:!1};return{raw:s,index:i,key:Rm(e,t),origin:r,...s}},eV=(e,{valueKey:t,fieldNames:n,origin:r,optionInfoMap:i})=>{var a;const s=[];for(const l of e)if(kPe(l)){const c=eV((a=l.options)!=null?a:[],{valueKey:t,fieldNames:n,origin:r,optionInfoMap:i});c.length>0&&s.push({...l,key:`__arco__group__${l.label}`,options:c})}else{const c=wPe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),i.get(c.key)||i.set(c.key,c)}return s},ure=(e,{inputValue:t,filterOption:n})=>{const r=i=>{var a;const s=[];for(const l of i)if(Cpe(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else j5(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},j5=(e,{inputValue:t,filterOption:n})=>Sn(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,EPe=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!u3(e[n],t[n]))return!1;return!0},TPe=(e,t)=>{if(!e||!t)return!1;const{length:n}=e;if(n!==t.length)return!1;for(let r=0;r{const n=Object.prototype.toString.call(e);return n!==Object.prototype.toString.call(t)?!1:n==="[object Object]"?EPe(e,t):n==="[object Array]"?TPe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},APe=we({name:"Option",components:{Checkbox:Wc},props:{value:{type:[String,Number,Boolean,Object],default:void 0},label:String,disabled:Boolean,tagProps:{type:Object},extra:{type:Object},index:{type:Number},internal:Boolean},setup(e){const{disabled:t,tagProps:n,index:r}=tn(e),i=Re("select-option"),a=Pn(xpe,void 0),s=So(),l=ue(),c=ue(n.value);It(n,(D,P)=>{u3(D,P)||(c.value=D)});const d=ue(""),h=F(()=>{var D,P;return(P=(D=e.value)!=null?D:e.label)!=null?P:d.value}),p=F(()=>{var D;return(D=e.label)!=null?D:d.value}),v=F(()=>Rm(h.value,a?.valueKey)),g=F(()=>{var D;return(D=a?.component)!=null?D:"li"}),y=()=>{var D;if(!e.label&&l.value){const P=(D=l.value.textContent)!=null?D:"";d.value!==P&&(d.value=P)}};hn(()=>y()),tl(()=>y());const S=F(()=>{var D;return(D=a?.valueKeys.includes(v.value))!=null?D:!1}),k=F(()=>a?.activeKey===v.value);let C=ue(!0);if(!e.internal){const D=qt({raw:{value:h,label:p,disabled:t,tagProps:c},ref:l,index:r,key:v,origin:"slot",value:h,label:p,disabled:t,tagProps:c});C=F(()=>j5(D,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,D),_o(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const x=D=>{e.disabled||a?.onSelect(v.value,D)},E=()=>{e.disabled||a?.setActiveKey(v.value)},_=()=>{e.disabled||a?.setActiveKey()},T=F(()=>[i,{[`${i}-disabled`]:e.disabled,[`${i}-selected`]:S.value,[`${i}-active`]:k.value,[`${i}-multiple`]:a?.multiple}]);return{prefixCls:i,cls:T,selectCtx:a,itemRef:l,component:g,isSelected:S,isValid:C,handleClick:x,handleMouseEnter:E,handleMouseLeave:_}}});function IPe(e,t,n,r,i,a){const s=Te("checkbox");return Ai((z(),Ze(wa(e.component),{ref:"itemRef",class:de([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:fe(()=>[e.$slots.icon?(z(),X("span",{key:0,class:de(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon")],2)):Ie("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(z(),Ze(s,{key:1,class:de(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:fe(()=>[mt(e.$slots,"default",{},()=>[He(Ne(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(z(),X("span",{key:2,class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"default",{},()=>[He(Ne(e.label),1)])],2)),e.$slots.suffix?(z(),X("span",{key:3,class:de(`${e.prefixCls}-suffix`)},[mt(e.$slots,"suffix")],2)):Ie("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[es,e.isValid]])}var pm=ze(APe,[["render",IPe]]);const LPe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},DPe=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:i,valueKey:a,fieldNames:s})=>{const l=F(()=>({...LPe,...s?.value})),c=qt(new Map),d=F(()=>Array.from(c.values()).sort((E,_)=>et(E.index)&&et(_.index)?E.index-_.index:0)),h=F(()=>{var E,_;const T=new Map;return{optionInfos:eV((E=e?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"options",optionInfoMap:T}),optionInfoMap:T}}),p=F(()=>{var E,_;const T=new Map;return{optionInfos:eV((E=t?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:T}),optionInfoMap:T}}),v=qt(new Map);It([d,e??ue([]),t??ue([]),a??ue("value")],()=>{v.clear(),d.value.forEach((E,_)=>{v.set(E.key,{...E,index:_})}),h.value.optionInfoMap.forEach(E=>{v.has(E.key)||(E.index=v.size,v.set(E.key,E))}),p.value.optionInfoMap.forEach(E=>{v.has(E.key)||(E.index=v.size,v.set(E.key,E))})},{immediate:!0,deep:!0});const g=F(()=>{var E;const _=ure(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((E=i?.value)==null||E)&&_.push(...ure(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),y=F(()=>Array.from(v.values()).filter(E=>E.origin==="extraOptions"&&i?.value===!1?!1:j5(E,{inputValue:n?.value,filterOption:r?.value}))),S=F(()=>y.value.filter(E=>!E.disabled).map(E=>E.key));return{validOptions:g,optionInfoMap:v,validOptionInfos:y,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(E,_)=>{c.set(E,_)},removeSlotOptionInfo:E=>{c.delete(E)}}},Ho={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},cre=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),V5=e=>{const t={};return e.forEach((n,r)=>{const i=ds(r)?{key:r}:r;t[cre(i)]=n}),n=>{const r=cre({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),i=t[r];i&&(n.stopPropagation(),i(n))}},pH=({multiple:e,options:t,extraOptions:n,inputValue:r,filterOption:i,showExtraOptions:a,component:s,valueKey:l,fieldNames:c,loading:d,popupVisible:h,valueKeys:p,dropdownRef:v,optionRefs:g,virtualListRef:y,onSelect:S,onPopupVisibleChange:k,enterToOpen:C=!0,defaultActiveFirstOption:x})=>{const{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:O}=DPe({options:t,extraOptions:n,inputValue:r,filterOption:i,showExtraOptions:a,valueKey:l,fieldNames:c}),L=ue();It(D,K=>{(!L.value||!K.includes(L.value))&&(L.value=K[0])});const B=K=>{L.value=K},j=K=>{const Y=D.value.length;if(Y===0)return;if(!L.value)return K==="down"?D.value[0]:D.value[Y-1];const ie=D.value.indexOf(L.value),te=(Y+ie+(K==="up"?-1:1))%Y;return D.value[te]},H=K=>{var Y,ie;y?.value&&y.value.scrollTo({key:K});const te=_.get(K),W=(Y=v?.value)==null?void 0:Y.wrapperRef,q=(ie=g?.value[K])!=null?ie:te?.ref;if(!W||!q||W.scrollHeight===W.offsetHeight)return;const Q=E7e(q,W),se=W.scrollTop;Q.top<0?W.scrollTo(0,se+Q.top):Q.bottom<0&&W.scrollTo(0,se-Q.bottom)};It(h,K=>{var Y;if(K){const ie=p.value[p.value.length-1];let te=(Y=x?.value)==null||Y?D.value[0]:void 0;D.value.includes(ie)&&(te=ie),te!==L.value&&(L.value=te),dn(()=>{L.value&&H(L.value)})}});const U=V5(new Map([[Ho.ENTER,K=>{!d?.value&&!K.isComposing&&(h.value?L.value&&(S(L.value,K),K.preventDefault()):C&&(k(!0),K.preventDefault()))}],[Ho.ESC,K=>{h.value&&(k(!1),K.preventDefault())}],[Ho.ARROW_DOWN,K=>{if(h.value){const Y=j("down");Y&&(L.value=Y,H(Y)),K.preventDefault()}}],[Ho.ARROW_UP,K=>{if(h.value){const Y=j("up");Y&&(L.value=Y,H(Y)),K.preventDefault()}}]]));return ri(xpe,qt({multiple:e,valueKey:l,inputValue:r,filterOption:i,component:s,valueKeys:p,activeKey:L,setActiveKey:B,onSelect:S,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:O})),{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,activeKey:L,setActiveKey:B,addSlotOptionInfo:M,removeSlotOptionInfo:O,getNextActiveKey:j,scrollIntoView:H,handleKeyDown:U}},PPe=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:i})=>{const a=ue(0),s=new Map,l=F(()=>e.value.length),c=ue(0),d=F(()=>{const P=c.value+i.value*3;return P>l.value?l.value:P}),h=F(()=>{const P=l.value-i.value*3;return P<0?0:P}),p=P=>{P<0?c.value=0:P>h.value?c.value=h.value:c.value=P},v=ue(n.value),g=F(()=>r.value!==30?r.value:a.value||r.value),y=(P,M)=>{s.set(P,M)},S=P=>{var M;if(v.value)return g.value;const O=e.value[P];return(M=s.get(O))!=null?M:g.value},k=P=>s.has(P);hn(()=>{const P=Array.from(s.values()).reduce((M,O)=>M+O,0);P>0&&(a.value=P/s.size)});const C=P=>v.value?g.value*P:x(0,P),x=(P,M)=>{let O=0;for(let L=P;Lv.value?g.value*c.value:x(0,c.value)),_=P=>{const M=P>=E.value;let O=Math.abs(P-E.value);const L=M?c.value:c.value-1;let B=0;for(;O>0;)O-=S(L+B),M?B++:B--;return B},T=P=>{const M=_(P),O=c.value+M-i.value;return O<0?0:O>h.value?h.value:O},D=F(()=>v.value?g.value*(l.value-d.value):x(d.value,l.value));return{frontPadding:E,behindPadding:D,start:c,end:d,getStartByScroll:T,setItemSize:y,hasItemSize:k,setStart:p,getScrollOffset:C}};var RPe=we({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=So())==null?void 0:n.vnode.key,i=ue(),a=()=>{var s,l,c,d;const h=(l=(s=i.value)==null?void 0:s.$el)!=null?l:i.value,p=(d=(c=h?.getBoundingClientRect)==null?void 0:c.call(h).height)!=null?d:h?.offsetHeight;p&&e.setItemSize(r,p)};return hn(()=>a()),_o(()=>a()),()=>{var s;const l=sy((s=t.default)==null?void 0:s.call(t));return l?El(l,{ref:i},!0):null}}});const MPe=we({name:"VirtualList",components:{VirtualListItem:RPe},props:{height:{type:[Number,String],default:200},data:{type:Array,default:()=>[]},threshold:{type:Number,default:0},itemKey:{type:String,default:"key"},fixedSize:{type:Boolean,default:!1},estimatedSize:{type:Number,default:30},buffer:{type:Number,default:10},component:{type:[String,Object],default:"div"},listAttrs:{type:Object},contentAttrs:{type:Object},paddingPosition:{type:String,default:"content"}},emits:{scroll:e=>!0,reachBottom:e=>!0},setup(e,{emit:t}){const{data:n,itemKey:r,fixedSize:i,estimatedSize:a,buffer:s,height:l}=tn(e),c=Re("virtual-list"),d=F(()=>gr(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=ue(),p=ue(),v=F(()=>({height:et(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=F(()=>n.value.map((L,B)=>{var j;return(j=L[r.value])!=null?j:B})),{frontPadding:y,behindPadding:S,start:k,end:C,getStartByScroll:x,setItemSize:E,hasItemSize:_,setStart:T,getScrollOffset:D}=PPe({dataKeys:g,contentRef:p,fixedSize:i,estimatedSize:a,buffer:s}),P=F(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(k.value,C.value)),M=L=>{const{scrollTop:B,scrollHeight:j,offsetHeight:H}=L.target,U=x(B);U!==k.value&&(T(U),dn(()=>{O(B)})),t("scroll",L),Math.floor(j-(B+H))<=0&&t("reachBottom",L)},O=L=>{var B,j;if(h.value)if(et(L))h.value.scrollTop=L;else{const H=(j=L.index)!=null?j:g.value.indexOf((B=L.key)!=null?B:"");T(H-s.value),h.value.scrollTop=D(H),dn(()=>{if(h.value){const U=D(H);U!==h.value.scrollTop&&(h.value.scrollTop=U)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:y,currentList:P,behindPadding:S,onScroll:M,setItemSize:E,hasItemSize:_,start:k,scrollTo:O,style:v,mergedComponent:d}}});function $Pe(e,t,n,r,i,a){const s=Te("VirtualListItem");return z(),Ze(wa(e.mergedComponent.container),{ref:"containerRef",class:de(e.prefixCls),style:Ye(e.style),onScroll:e.onScroll},{default:fe(()=>[(z(),Ze(wa(e.mergedComponent.list),Ft(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:fe(()=>[(z(),Ze(wa(e.mergedComponent.content),Ft({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:fe(()=>[(z(!0),X(Pt,null,cn(e.currentList,(l,c)=>{var d;return z(),Ze(s,{key:(d=l[e.itemKey])!=null?d:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:fe(()=>[mt(e.$slots,"item",{item:l,index:e.start+c})]),_:2},1032,["has-item-size","set-item-size"])}),128))]),_:3},16,["style"]))]),_:3},16,["style"]))]),_:3},40,["class","style","onScroll"])}var c3=ze(MPe,[["render",$Pe]]),zP=we({name:"AutoComplete",inheritAttrs:!1,props:{modelValue:{type:String,default:void 0},defaultValue:{type:String,default:""},disabled:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},popupContainer:{type:[String,Object]},strict:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},triggerProps:{type:Object},allowClear:{type:Boolean,default:!1},virtualListProps:{type:Object}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:e=>!0,select:e=>!0,clear:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const{modelValue:i}=tn(e),a=Re("auto-complete"),{mergedDisabled:s,eventHandlers:l}=Do({disabled:Du(e,"disabled")}),c=ue(e.defaultValue),d=ue(),h=F(()=>{var q;return(q=e.modelValue)!=null?q:c.value});It(i,q=>{(xn(q)||Al(q))&&(c.value="")});const p=F(()=>h.value?[Rm(h.value)]:[]),{data:v}=tn(e),g=ue(),y=ue({}),S=ue(!1),k=F(()=>S.value&&U.value.length>0),C=ue(),x=F(()=>e.virtualListProps?"div":"li"),E=q=>{S.value=q},_=(q,Q)=>{var se;return!!((se=Q.label)!=null&&se.includes(q))},T=F(()=>Sn(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),D=q=>{var Q,se;c.value=q,t("update:modelValue",q),t("change",q),(se=(Q=l.value)==null?void 0:Q.onChange)==null||se.call(Q)},P=q=>{var Q,se;c.value="",t("update:modelValue",""),t("change",""),(se=(Q=l.value)==null?void 0:Q.onChange)==null||se.call(Q),t("clear",q)},M=(q,Q)=>{var se,ae;const re=(se=H.get(q))==null?void 0:se.value;t("select",re),D(re),(ae=d.value)==null||ae.blur()},O=q=>{t("search",q),D(q)},L=q=>{t("dropdownScroll",q)},B=q=>{t("dropdownReachBottom",q)},{validOptions:j,optionInfoMap:H,validOptionInfos:U,handleKeyDown:K}=pH({options:v,inputValue:h,filterOption:T,popupVisible:k,valueKeys:p,component:x,dropdownRef:g,optionRefs:y,onSelect:M,onPopupVisibleChange:E}),Y=q=>{if(Sn(r.option)&&q.value){const Q=H.get(q.key),se=r.option;return()=>se({data:Q})}return()=>q.label},ie=q=>$(pm,{ref:Q=>{Q?.$el&&(y.value[q.key]=Q.$el)},key:q.key,value:q.value,disabled:q.disabled,internal:!0},{default:Y(q)}),te=()=>$(hH,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:L,onReachBottom:B},{default:()=>[...j.value.map(q=>ie(q))],"virtual-list":()=>$(c3,Ft(e.virtualListProps,{ref:C,data:j.value}),{item:({item:q})=>ie(q)}),footer:r.footer});return{inputRef:d,render:()=>$(va,Ft({trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",autoFitTransformOrigin:!0,popupVisible:k.value,clickToClose:!1,preventFocus:!0,popupOffset:4,disabled:s.value,autoFitPopupWidth:!0},e.triggerProps,{onPopupVisibleChange:E}),{default:()=>[$(F0,Ft({ref:d},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:O,onClear:P,onKeydown:K}),r)],content:te})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const OPe=Object.assign(zP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+zP.name,zP)}}),vH=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const i=ue(-1),a=F(()=>{var d;return(d=n?.value)!=null?d:i.value}),s=ue(),l=()=>{var d,h,p;let v=(h=(d=e.value)==null?void 0:d.parentElement)!=null?h:void 0;if(r)for(;v&&!v.className.includes(r);)v=(p=v.parentElement)!=null?p:void 0;return v},c=()=>{if(xn(n?.value)&&s.value&&e.value){const d=Array.from(s.value.querySelectorAll(t)).indexOf(e.value);d!==i.value&&(i.value=d)}};return It(e,()=>{e.value&&!s.value&&(s.value=l())}),hn(()=>{e.value&&(s.value=l()),c()}),tl(()=>c()),{computedIndex:a}},wpe=Symbol("ArcoAvatarGroup"),BPe=we({name:"IconImageClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NPe=["stroke-width","stroke-linecap","stroke-linejoin"];function FPe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,NPe)}var UP=ze(BPe,[["render",FPe]]);const z5=Object.assign(UP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UP.name,UP)}}),jPe=we({name:"Avatar",components:{ResizeObserver:C0,IconImageClose:z5,IconLoading:Ja},props:{shape:{type:String,default:"circle"},imageUrl:String,size:Number,autoFixFontSize:{type:Boolean,default:!0},triggerType:{type:String,default:"button"},triggerIconStyle:{type:Object},objectFit:{type:String}},emits:{click:e=>!0,error:()=>!0,load:()=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{shape:i,size:a,autoFixFontSize:s,triggerType:l,triggerIconStyle:c}=tn(e),d=Re("avatar"),h=Pn(wpe,void 0),p=ue(),v=ue(),g=F(()=>{var U;return(U=h?.shape)!=null?U:i.value}),y=F(()=>{var U;return(U=h?.size)!=null?U:a.value}),S=F(()=>{var U;return(U=h?.autoFixFontSize)!=null?U:s.value}),k=ue(!1),C=ue(!1),x=ue(!0),E=ue(!1),_=h?vH({itemRef:p,selector:`.${d}`}).computedIndex:ue(-1),T=F(()=>{var U;const K=et(y.value)?{width:`${y.value}px`,height:`${y.value}px`,fontSize:`${y.value/2}px`}:{};return h&&(K.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,K.marginLeft=_.value!==0?`-${((U=y.value)!=null?U:40)/4}px`:"0"),K}),D=VPe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),P=()=>{!k.value&&!e.imageUrl&&dn(()=>{var U;if(!v.value||!p.value)return;const K=v.value.clientWidth,Y=(U=y.value)!=null?U:p.value.offsetWidth,ie=Y/(K+8);Y&&ie<1&&(v.value.style.transform=`scale(${ie}) translateX(-50%)`),x.value=!0})};hn(()=>{var U;(U=v.value)!=null&&U.firstElementChild&&["IMG","PICTURE"].includes(v.value.firstElementChild.tagName)&&(k.value=!0),S.value&&P()}),It(a,()=>{S.value&&P()});const M=F(()=>[d,`${d}-${g.value}`]),O=F(()=>k.value||e.imageUrl?`${d}-image`:`${d}-text`);return{prefixCls:d,itemRef:p,cls:M,outerStyle:T,wrapperRef:v,wrapperCls:O,computedTriggerIconStyle:D,isImage:k,shouldLoad:x,isLoaded:E,hasError:C,onClick:U=>{n("click",U)},handleResize:()=>{S.value&&P()},handleImgLoad:()=>{E.value=!0,n("load")},handleImgError:()=>{C.value=!0,n("error")}}}}),VPe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},zPe=["src"];function UPe(e,t,n,r,i,a){const s=Te("IconImageClose"),l=Te("IconLoading"),c=Te("resize-observer");return z(),X("div",{ref:"itemRef",style:Ye(e.outerStyle),class:de([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...d)=>e.onClick&&e.onClick(...d))},[$(c,{onResize:e.handleResize},{default:fe(()=>[I("span",{ref:"wrapperRef",class:de(e.wrapperCls)},[e.imageUrl?(z(),X(Pt,{key:0},[e.hasError?mt(e.$slots,"error",{key:0},()=>[I("div",{class:de(`${e.prefixCls}-image-icon`)},[$(s)],2)]):Ie("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?mt(e.$slots,"default",{key:1},()=>[I("div",{class:de(`${e.prefixCls}-image-icon`)},[$(l)],2)]):Ie("v-if",!0),e.hasError||!e.shouldLoad?Ie("v-if",!0):(z(),X("img",{key:2,src:e.imageUrl,style:Ye({width:e.size+"px",height:e.size+"px",objectFit:e.objectFit}),alt:"avatar",onLoad:t[0]||(t[0]=(...d)=>e.handleImgLoad&&e.handleImgLoad(...d)),onError:t[1]||(t[1]=(...d)=>e.handleImgError&&e.handleImgError(...d))},null,44,zPe))],64)):mt(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(z(),X("div",{key:0,class:de(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:Ye(e.computedTriggerIconStyle)},[mt(e.$slots,"trigger-icon")],6)):Ie("v-if",!0)],6)}var aw=ze(jPe,[["render",UPe]]);const HPe=we({name:"Popover",components:{Trigger:va},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},title:String,content:String,trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"top"},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Re("popover"),r=ue(e.defaultPopupVisible),i=F(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=F(()=>[`${n}-popup-content`,e.contentClass]),l=F(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:i,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function WPe(e,t,n,r,i,a){const s=Te("trigger");return z(),Ze(s,{class:de(e.prefixCls),trigger:e.trigger,position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"show-arrow":"","popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:fe(()=>[I("div",{class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2),I("div",{class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"content",{},()=>[He(Ne(e.content),1)])],2)]),default:fe(()=>[mt(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var HP=ze(HPe,[["render",WPe]]);const mH=Object.assign(HP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+HP.name,HP)}}),lw=we({name:"AvatarGroup",props:{shape:{type:String,default:"circle"},size:Number,autoFixFontSize:{type:Boolean,default:!0},maxCount:{type:Number,default:0},zIndexAscend:{type:Boolean,default:!1},maxStyle:{type:Object},maxPopoverTriggerProps:{type:Object}},setup(e,{slots:t}){const{shape:n,size:r,autoFixFontSize:i,zIndexAscend:a}=tn(e),s=Re("avatar-group"),l=ue(0);return ri(wpe,qt({shape:n,size:r,autoFixFontSize:i,zIndexAscend:a,total:l})),()=>{var c,d;const h=yf((d=(c=t.default)==null?void 0:c.call(t))!=null?d:[]),p=e.maxCount>0?h.slice(0,e.maxCount):h,v=e.maxCount>0?h.slice(e.maxCount):[];return l.value!==h.length&&(l.value=h.length),$("div",{class:s},[p,v.length>0&&$(mH,e.maxPopoverTriggerProps,{default:()=>[$(aw,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[He("+"),v.length]})],content:()=>$("div",null,[v])})])}}}),GPe=Object.assign(aw,{Group:lw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+aw.name,aw),e.component(n+lw.name,lw)}}),KPe=we({name:"IconToTop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),qPe=["stroke-width","stroke-linecap","stroke-linejoin"];function YPe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),I("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qPe)}var WP=ze(KPe,[["render",YPe]]);const Epe=Object.assign(WP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WP.name,WP)}}),XPe=we({name:"BackTop",components:{IconToTop:Epe},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Re("back-top"),n=ue(!1),r=ue(),i=!e.targetContainer,a=Dm(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:d}=r.value;n.value=d>=c}}),s=c=>ds(c)?document.querySelector(c):c;return hn(()=>{r.value=i?document?.documentElement:s(e.targetContainer),r.value&&(Mi(i?window:r.value,"scroll",a),a())}),ii(()=>{a.cancel(),r.value&&no(i?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new tg({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function ZPe(e,t,n,r,i,a){const s=Te("icon-to-top");return z(),Ze(Cs,{name:"fade-in"},{default:fe(()=>[e.visible?(z(),X("div",{key:0,class:de(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[mt(e.$slots,"default",{},()=>[I("button",{class:de(`${e.prefixCls}-btn`)},[$(s)],2)])],2)):Ie("v-if",!0)]),_:3})}var GP=ze(XPe,[["render",ZPe]]);const JPe=Object.assign(GP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+GP.name,GP)}}),QPe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],eRe=["normal","processing","success","warning","danger"];var KP=we({name:"Badge",props:{text:{type:String},dot:{type:Boolean},dotStyle:{type:Object},maxCount:{type:Number,default:99},offset:{type:Array,default:()=>[]},color:{type:String},status:{type:String,validator:e=>eRe.includes(e)},count:{type:Number}},setup(e,{slots:t}){const{status:n,color:r,dotStyle:i,offset:a,text:s,dot:l,maxCount:c,count:d}=tn(e),h=Re("badge"),p=tRe(h,n?.value,t?.default),v=F(()=>{const y={...i?.value||{}},[S,k]=a?.value||[];S&&(y.marginRight=`${-S}px`),k&&(y.marginTop=`${k}px`);const C=!r?.value||QPe.includes(r?.value)?{}:{backgroundColor:r.value};return{mergedStyle:{...C,...y},computedDotStyle:y,computedColorStyle:C}}),g=()=>{const y=s?.value,S=r?.value,k=n?.value,C=l?.value,x=Number(d?.value),E=d?.value!=null,{computedDotStyle:_,mergedStyle:T}=v.value;return t.content?$("span",{class:`${h}-custom-dot`,style:_},[t.content()]):y&&!S&&!k?$("span",{class:`${h}-text`,style:_},[y]):k||S&&!E?$("span",{class:`${h}-status-wrapper`},[$("span",{class:[`${h}-status-dot`,{[`${h}-status-${k}`]:k,[`${h}-color-${S}`]:S}],style:T},null),y&&$("span",{class:`${h}-status-text`},[y])]):(C||S)&&x>0?$("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:T},null):x===0?null:$("span",{class:`${h}-number`,style:T},[$("span",null,[c.value&&x>c.value?`${c.value}+`:x])])};return()=>$("span",{class:p.value},[t.default&&t.default(),g()])}});const tRe=(e,t,n)=>F(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),nRe=Object.assign(KP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+KP.name,KP)}}),Tpe=Symbol("ArcoBreadcrumb"),rRe=we({name:"IconMore",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iRe=["stroke-width","stroke-linecap","stroke-linejoin"];function oRe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1)]),14,iRe)}var qP=ze(rRe,[["render",oRe]]);const j0=Object.assign(qP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qP.name,qP)}}),sRe=we({name:"IconDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aRe=["stroke-width","stroke-linecap","stroke-linejoin"];function lRe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1)]),14,aRe)}var YP=ze(sRe,[["render",lRe]]);const Zh=Object.assign(YP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YP.name,YP)}}),uRe=we({name:"IconObliqueLine",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),cRe=["stroke-width","stroke-linecap","stroke-linejoin"];function dRe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)]),14,cRe)}var XP=ze(uRe,[["render",dRe]]);const Ape=Object.assign(XP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XP.name,XP)}}),gH=Symbol("ArcoDropdown"),fRe=we({name:"DropdownPanel",components:{Scrollbar:Rd,Empty:Xh},props:{loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},bottomOffset:{type:Number,default:0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){const r=Re("dropdown"),i=Pn(gH,{}),a=ue(),s=d=>{const{scrollTop:h,scrollHeight:p,offsetHeight:v}=d.target;p-(h+v)<=e.bottomOffset&&t("reachBottom",d),t("scroll",d)},l=F(()=>{if(et(i.popupMaxHeight))return{maxHeight:`${i.popupMaxHeight}px`};if(!i.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=F(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function hRe(e,t,n,r,i,a){const s=Te("empty"),l=Te("Scrollbar");return z(),X("div",{class:de(e.cls)},[e.isEmpty?(z(),X("div",{key:0,class:de(`${e.prefixCls}-empty`)},[mt(e.$slots,"empty",{},()=>[$(s)])],2)):Ie("v-if",!0),$(l,{ref:"wrapperRef",class:de(`${e.prefixCls}-list-wrapper`),style:Ye(e.style),onScroll:e.handleScroll},{default:fe(()=>[I("ul",{class:de(`${e.prefixCls}-list`)},[mt(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(z(),X("div",{key:1,class:de(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer")],2)):Ie("v-if",!0)],2)}var Ipe=ze(fRe,[["render",hRe]]);const U5=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const i=ue((r=t?.value)!=null?r:!1),a=F(()=>{var l;return(l=e?.value)!=null?l:i.value}),s=l=>{l!==a.value&&(i.value=l,n("update:popupVisible",l),n("popupVisibleChange",l))};return It(a,l=>{i.value!==l&&(i.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},pRe=we({name:"Dropdown",components:{Trigger:va,DropdownPanel:Ipe},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"bottom"},popupContainer:{type:[String,Object]},popupMaxHeight:{type:[Boolean,Number],default:!0},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r,popupMaxHeight:i}=tn(e),a=Re("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=U5({defaultPopupVisible:n,popupVisible:r,emit:t});return ri(gH,qt({popupMaxHeight:i,onOptionClick:(d,h)=>{t("select",d,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function vRe(e,t,n,r,i,a){const s=Te("DropdownPanel"),l=Te("Trigger");return z(),Ze(l,{"popup-visible":e.computedPopupVisible,"animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"",trigger:e.trigger,position:e.position,"popup-offset":4,"popup-container":e.popupContainer,"opened-class":`${e.prefixCls}-open`,onPopupVisibleChange:e.handlePopupVisibleChange},{content:fe(()=>[$(s,null,yo({default:fe(()=>[mt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:fe(()=>[mt(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:fe(()=>[mt(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var uw=ze(pRe,[["render",vRe]]);const mRe=we({name:"Doption",props:{value:{type:[String,Number,Object]},disabled:{type:Boolean,default:!1},active:Boolean,uninjectContext:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("dropdown-option"),r=ue(),i=F(()=>{var c,d,h;return(h=(d=e.value)!=null?d:(c=r.value)==null?void 0:c.textContent)!=null?h:void 0}),a=e.uninjectContext?void 0:Pn(gH,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(i.value,c))},l=F(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function gRe(e,t,n,r,i,a){return z(),X("li",{ref:"liRef",class:de([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(z(),X("span",{key:0,class:de(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon")],2)):Ie("v-if",!0),I("span",{class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2),e.$slots.suffix?(z(),X("span",{key:1,class:de(`${e.prefixCls}-suffix`)},[mt(e.$slots,"suffix")],2)):Ie("v-if",!0)],2)}var uy=ze(mRe,[["render",gRe]]);const yRe=we({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Re("dropdown-group")}}});function bRe(e,t,n,r,i,a){return z(),X(Pt,null,[I("li",{class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2),mt(e.$slots,"default")],64)}var cw=ze(yRe,[["render",bRe]]);const _Re=we({name:"IconRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),SRe=["stroke-width","stroke-linecap","stroke-linejoin"];function kRe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1)]),14,SRe)}var ZP=ze(_Re,[["render",kRe]]);const Hi=Object.assign(ZP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZP.name,ZP)}}),xRe=we({name:"Dsubmenu",components:{Trigger:va,DropdownPanel:Ipe,DropdownOption:uy,IconRight:Hi},props:{value:{type:[String,Number]},disabled:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},optionProps:{type:Object}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r}=tn(e),i=Re("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=U5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:i,computedPopupVisible:a,handlePopupVisibleChange:s}}});function CRe(e,t,n,r,i,a){const s=Te("IconRight"),l=Te("dropdown-option"),c=Te("dropdown-panel"),d=Te("Trigger");return z(),Ze(d,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:fe(()=>[$(c,{class:de(`${e.prefixCls}-submenu`)},yo({default:fe(()=>[mt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:fe(()=>[mt(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:fe(()=>[$(l,Ft(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),yo({suffix:fe(()=>[mt(e.$slots,"suffix",{},()=>[$(s)])]),default:fe(()=>[mt(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:fe(()=>[mt(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var dw=ze(xRe,[["render",CRe]]);const wRe=we({name:"DropdownButton",components:{IconMore:j0,Button:Xo,ButtonGroup:rb,Dropdown:uw},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"br"},popupContainer:{type:[String,Object]},disabled:{type:Boolean,default:!1},type:{type:String},size:{type:String},buttonProps:{type:Object},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,click:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r}=tn(e),i=Re("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=U5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:i,computedPopupVisible:a,handleClick:d=>{t("click",d)},handleSelect:(d,h)=>{t("select",d,h)},handlePopupVisibleChange:s}}});function ERe(e,t,n,r,i,a){const s=Te("Button"),l=Te("IconMore"),c=Te("Dropdown"),d=Te("ButtonGroup");return z(),Ze(d,null,{default:fe(()=>[$(s,Ft({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:fe(()=>[mt(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),$(c,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,"popup-container":e.popupContainer,"hide-on-select":e.hideOnSelect,onSelect:e.handleSelect,onPopupVisibleChange:e.handlePopupVisibleChange},{content:fe(()=>[mt(e.$slots,"content")]),default:fe(()=>[$(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:fe(()=>[mt(e.$slots,"icon",{popupVisible:e.computedPopupVisible},()=>[$(l)])]),_:3},8,["size","type","disabled"])]),_:3},8,["popup-visible","trigger","position","popup-container","hide-on-select","onSelect","onPopupVisibleChange"])]),_:3})}var fw=ze(wRe,[["render",ERe]]);const Lpe=Object.assign(uw,{Option:uy,Group:cw,Submenu:dw,Button:fw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+uw.name,uw),e.component(n+uy.name,uy),e.component(n+cw.name,cw),e.component(n+dw.name,dw),e.component(n+fw.name,fw)}});var ob=we({name:"BreadcrumbItem",inheritAttrs:!1,props:{separator:{type:[String,Number]},droplist:{type:Array},dropdownProps:{type:Object},index:{type:Number,default:0}},setup(e,{slots:t,attrs:n}){const r=Re("breadcrumb-item"),i=Pn(Tpe,void 0),a=ue(!1),s=F(()=>!(i&&i.needHide&&e.index>1&&e.index<=i.total-i.maxCount)),l=F(()=>i&&i.needHide?e.index===1:!1),c=F(()=>i?e.index{a.value=y},h=()=>{var y,S,k,C,x,E,_;if(!c.value)return null;const T=(_=(E=(x=(S=(y=t.separator)==null?void 0:y.call(t))!=null?S:e.separator)!=null?x:(C=i==null?void 0:(k=i.slots).separator)==null?void 0:C.call(k))!=null?E:i?.separator)!=null?_:$(Ape,null,null);return $("div",{"aria-hidden":"true",class:`${r}-separator`},[T])},p=()=>{var y,S,k,C;return $("div",Ft({role:"listitem",class:[r,{[`${r}-with-dropdown`]:e.droplist||t.droplist}]},l.value?{"aria-label":"ellipses of breadcrumb items"}:void 0,n),[l.value?(k=(S=i==null?void 0:(y=i.slots)["more-icon"])==null?void 0:S.call(y))!=null?k:$(j0,null,null):(C=t.default)==null?void 0:C.call(t),(e.droplist||t.droplist)&&$("span",{"aria-hidden":!0,class:[`${r}-dropdown-icon`,{[`${r}-dropdown-icon-active`]:a.value}]},[$(Zh,null,null)])])},v=()=>{var y,S,k;return(k=(y=t.droplist)==null?void 0:y.call(t))!=null?k:(S=e.droplist)==null?void 0:S.map(C=>$(uy,{value:C.path},{default:()=>[C.label]}))},g=()=>$(Lpe,Ft({popupVisible:a.value,onPopupVisibleChange:d},e.dropdownProps),{default:()=>[p()],content:v});return()=>s.value?$(Pt,null,[t.droplist||e.droplist?g():p(),h()]):null}}),JP=we({name:"Breadcrumb",props:{maxCount:{type:Number,default:0},routes:{type:Array},separator:{type:[String,Number]},customUrl:{type:Function}},setup(e,{slots:t}){const{maxCount:n,separator:r,routes:i}=tn(e),a=Re("breadcrumb"),s=ue(0),l=F(()=>n.value>0&&s.value>n.value+1);ri(Tpe,qt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,v,g)=>{var y,S;if(v.indexOf(p)===v.length-1)return $("span",null,[p.label]);const k=(S=(y=e.customUrl)==null?void 0:y.call(e,g))!=null?S:`#/${g.join("/").replace(/^\//,"")}`;return $("a",{href:k},[p.label])},d=()=>{var p;if(!((p=i.value)!=null&&p.length))return null;s.value!==i.value.length&&(s.value=i.value.length);const v=[];return i.value.map((g,y,S)=>{v.push((g.path||"").replace(/^\//,""));const k=[...v];return $(ob,{key:g.path||g.label,index:y,droplist:g.children},{default:()=>{var C,x;return[(x=(C=t["item-render"])==null?void 0:C.call(t,{route:g,routes:S,paths:k}))!=null?x:c(g,S,k)]}})})},h=()=>{var p,v;const g=yf((v=(p=t.default)==null?void 0:p.call(t))!=null?v:[]);return s.value!==g.length&&(s.value=g.length),g.map((y,S)=>{var k;return y.props=Ft((k=y.props)!=null?k:{},{index:S}),y})};return()=>$("div",{role:"list",class:a},[t.default?h():d()])}});const TRe=Object.assign(JP,{Item:ob,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+JP.name,JP),e.component(n+ob.name,ob)}});var hw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eS(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var pw={exports:{}},ARe=pw.exports,dre;function Dpe(){return dre||(dre=1,(function(e,t){(function(n,r){e.exports=r()})(ARe,(function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",l="minute",c="hour",d="day",h="week",p="month",v="quarter",g="year",y="date",S="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var K=["th","st","nd","rd"],Y=U%100;return"["+U+(K[(Y-20)%10]||K[Y]||K[0])+"]"}},E=function(U,K,Y){var ie=String(U);return!ie||ie.length>=K?U:""+Array(K+1-ie.length).join(Y)+U},_={s:E,z:function(U){var K=-U.utcOffset(),Y=Math.abs(K),ie=Math.floor(Y/60),te=Y%60;return(K<=0?"+":"-")+E(ie,2,"0")+":"+E(te,2,"0")},m:function U(K,Y){if(K.date()1)return U(q[0])}else{var Q=K.name;D[Q]=K,te=Q}return!ie&&te&&(T=te),te||!ie&&T},L=function(U,K){if(M(U))return U.clone();var Y=typeof K=="object"?K:{};return Y.date=U,Y.args=arguments,new j(Y)},B=_;B.l=O,B.i=M,B.w=function(U,K){return L(U,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var j=(function(){function U(Y){this.$L=O(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[P]=!0}var K=U.prototype;return K.parse=function(Y){this.$d=(function(ie){var te=ie.date,W=ie.utc;if(te===null)return new Date(NaN);if(B.u(te))return new Date;if(te instanceof Date)return new Date(te);if(typeof te=="string"&&!/Z$/i.test(te)){var q=te.match(k);if(q){var Q=q[2]-1||0,se=(q[7]||"0").substring(0,3);return W?new Date(Date.UTC(q[1],Q,q[3]||1,q[4]||0,q[5]||0,q[6]||0,se)):new Date(q[1],Q,q[3]||1,q[4]||0,q[5]||0,q[6]||0,se)}}return new Date(te)})(Y),this.init()},K.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},K.$utils=function(){return B},K.isValid=function(){return this.$d.toString()!==S},K.isSame=function(Y,ie){var te=L(Y);return this.startOf(ie)<=te&&te<=this.endOf(ie)},K.isAfter=function(Y,ie){return L(Y)68?1900:2e3)},h=function(k){return function(C){this[k]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var x=C.match(/([+-]|\d\d)/g),E=60*x[1]+(+x[2]||0);return E===0?0:x[0]==="+"?-E:E})(k)}],v=function(k){var C=c[k];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(k,C){var x,E=c.meridiem;if(E){for(var _=1;_<=24;_+=1)if(k.indexOf(E(_,0,C))>-1){x=_>12;break}}else x=k===(C?"pm":"PM");return x},y={A:[l,function(k){this.afternoon=g(k,!1)}],a:[l,function(k){this.afternoon=g(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[a,h("day")],Do:[l,function(k){var C=c.ordinal,x=k.match(/\d+/);if(this.day=x[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===k&&(this.day=E)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(k){var C=v("months"),x=(v("monthsShort")||C.map((function(E){return E.slice(0,3)}))).indexOf(k)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(k){var C=v("months").indexOf(k)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,h("year")],YY:[a,function(k){this.year=d(k)}],YYYY:[/\d{4}/,h("year")],Z:p,ZZ:p};function S(k){var C,x;C=k,x=c&&c.formats;for(var E=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,B,j){var H=j&&j.toUpperCase();return B||x[j]||n[j]||x[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(U,K,Y){return K||Y.slice(1)}))}))).match(r),_=E.length,T=0;T<_;T+=1){var D=E[T],P=y[D],M=P&&P[0],O=P&&P[1];E[T]=O?{regex:M,parser:O}:D.replace(/^\[|\]$/g,"")}return function(L){for(var B={},j=0,H=0;j<_;j+=1){var U=E[j];if(typeof U=="string")H+=U.length;else{var K=U.regex,Y=U.parser,ie=L.slice(H),te=K.exec(ie)[0];Y.call(B,te),L=L.replace(te,"")}}return(function(W){var q=W.afternoon;if(q!==void 0){var Q=W.hours;q?Q<12&&(W.hours+=12):Q===12&&(W.hours=0),delete W.afternoon}})(B),B}}return function(k,C,x){x.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var E=C.prototype,_=E.parse;E.parse=function(T){var D=T.date,P=T.utc,M=T.args;this.$u=P;var O=M[1];if(typeof O=="string"){var L=M[2]===!0,B=M[3]===!0,j=L||B,H=M[2];B&&(H=M[2]),c=this.$locale(),!L&&H&&(c=x.Ls[H]),this.$d=(function(ie,te,W,q){try{if(["x","X"].indexOf(te)>-1)return new Date((te==="X"?1e3:1)*ie);var Q=S(te)(ie),se=Q.year,ae=Q.month,re=Q.day,Ce=Q.hours,Ve=Q.minutes,ge=Q.seconds,xe=Q.milliseconds,Ge=Q.zone,tt=Q.week,Ue=new Date,_e=re||(se||ae?1:Ue.getDate()),ve=se||Ue.getFullYear(),me=0;se&&!ae||(me=ae>0?ae-1:Ue.getMonth());var Oe,qe=Ce||0,Ke=Ve||0,at=ge||0,ft=xe||0;return Ge?new Date(Date.UTC(ve,me,_e,qe,Ke,at,ft+60*Ge.offset*1e3)):W?new Date(Date.UTC(ve,me,_e,qe,Ke,at,ft)):(Oe=new Date(ve,me,_e,qe,Ke,at,ft),tt&&(Oe=q(Oe).week(tt).toDate()),Oe)}catch{return new Date("")}})(D,O,P,x),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),j&&D!=this.format(O)&&(this.$d=new Date("")),c={}}else if(O instanceof Array)for(var U=O.length,K=1;K<=U;K+=1){M[1]=O[K-1];var Y=x.apply(this,M);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}K===U&&(this.$d=new Date(""))}else _.call(this,T)}}}))})(vw)),vw.exports}var PRe=DRe();const RRe=rd(PRe);var mw={exports:{}},MRe=mw.exports,hre;function $Re(){return hre||(hre=1,(function(e,t){(function(n,r){e.exports=r()})(MRe,(function(){return function(n,r,i){r.prototype.isBetween=function(a,s,l,c){var d=i(a),h=i(s),p=(c=c||"()")[0]==="(",v=c[1]===")";return(p?this.isAfter(d,l):!this.isBefore(d,l))&&(v?this.isBefore(h,l):!this.isAfter(h,l))||(p?this.isBefore(d,l):!this.isAfter(d,l))&&(v?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(mw)),mw.exports}var ORe=$Re();const BRe=rd(ORe);var gw={exports:{}},NRe=gw.exports,pre;function FRe(){return pre||(pre=1,(function(e,t){(function(n,r){e.exports=r()})(NRe,(function(){var n="week",r="year";return function(i,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(r).add(1,r).date(d),p=s(this).endOf(n);if(h.isBefore(p))return 1}var v=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),g=this.diff(v,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(gw)),gw.exports}var jRe=FRe();const VRe=rd(jRe);var yw={exports:{}},zRe=yw.exports,vre;function URe(){return vre||(vre=1,(function(e,t){(function(n,r){e.exports=r()})(zRe,(function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),h=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}}));return a.bind(this)(h)}}}))})(yw)),yw.exports}var HRe=URe();const WRe=rd(HRe);var bw={exports:{}},GRe=bw.exports,mre;function KRe(){return mre||(mre=1,(function(e,t){(function(n,r){e.exports=r()})(GRe,(function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),s=this.year();return a===1&&i===11?s+1:i===0&&a>=52?s-1:s}}}))})(bw)),bw.exports}var qRe=KRe();const YRe=rd(qRe);var _w={exports:{}},XRe=_w.exports,gre;function ZRe(){return gre||(gre=1,(function(e,t){(function(n,r){e.exports=r()})(XRe,(function(){var n="month",r="quarter";return function(i,a){var s=a.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var l=s.add;s.add=function(d,h){return d=Number(d),this.$utils().p(h)===r?this.add(3*d,n):l.bind(this)(d,h)};var c=s.startOf;s.startOf=function(d,h){var p=this.$utils(),v=!!p.u(h)||h;if(p.p(d)===r){var g=this.quarter()-1;return v?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(d,h)}}}))})(_w)),_w.exports}var JRe=ZRe();const QRe=rd(JRe);var Sw={exports:{}},eMe=Sw.exports,yre;function tMe(){return yre||(yre=1,(function(e,t){(function(n,r){e.exports=r(Dpe())})(eMe,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var c=100*s+l;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a}))})(Sw)),Sw.exports}tMe();const nMe=(e,t,n)=>{n=function(a,s){if(Hc(a))return a.clone();const l=typeof s=="object"?s:{};return l.date=a,l.args=arguments,new t(l)};const r=t.prototype,i=r.$utils;r.$utils=()=>{const a=i();return a.i=Hc,a},n.isDayjs=Hc};gl.extend(nMe);gl.extend(RRe);gl.extend(BRe);gl.extend(VRe);gl.extend(WRe);gl.extend(YRe);gl.extend(QRe);const Ms=gl,Xs={add(e,t,n){return e.add(t,n)},subtract(e,t,n){return e.subtract(t,n)},startOf(e,t){return e.startOf(t)},startOfWeek(e,t){const n=e.day();let r=e.subtract(n-t,"day");return r.isAfter(e)&&(r=r.subtract(7,"day")),r},endOf(e,t){return e.endOf(t)},set(e,t,n){return e.set(t,n)},isSameWeek(e,t,n){const r=i=>{const a=i.day(),s=a-n+(at.valueOf()-n.valueOf())}function yH(e,t){const n=(r,i)=>r===void 0&&i===void 0?!1:r&&!i||!r&&i?!0:r?.valueOf()!==i?.valueOf();return t===void 0&&e===void 0?!1:nr(t)&&nr(e)?n(t[0],e[0])||n(t[1],e[1]):!nr(t)&&!nr(e)?n(t,e):!0}function dc(e,t){const n=i=>{const a=/(Q1)|(Q2)|(Q3)|(Q4)/,s={Q1:"01",Q2:"04",Q3:"07",Q4:"10"},[l]=a.exec(i);return i.replace(a,s[l])},r=i=>{if(i){if(typeof i=="string"){if(JLe(t))return Ms(n(i),t.replace(/\[Q]Q/,"MM"));if(Ms(i,t).isValid())return Ms(i,t)}return Ms(i)}};return nr(e)?e.map(r):r(e)}function Cu(e){const t=n=>n?n.toDate():void 0;return nr(e)?e.map(t):t(e)}function Ppe(e,t){Ms.locale({...Ms.Ls[e.toLocaleLowerCase()],weekStart:t})}function rMe(e){const t={};return e&&Object.keys(e).forEach(n=>{const r=String(n);r.indexOf("data-")===0&&(t[r]=e[r]),r.indexOf("aria-")===0&&(t[r]=e[r])}),t}function vm(e,t,n=" "){const r=String(e),i=r.length$("div",{class:a},[l.map(c=>$("div",{class:`${a}-item`,key:c},[s(`calendar.week.${r.value||i.value==="year"?"short":"long"}.${c}`)]))])}});function xx(e,t){if(e&&nr(e))return e[t]}function Rpe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:i,isSameTime:a,innerMode:s}){return function(c,d){const h=xx(n,0),p=xx(n,1),v=xx(r,0),g=xx(r,1),y=!c.isPrev&&!c.isNext,S=y&&i,k=S,C=S;v&&h&&v.isBefore(h);const E=p&&g&&g.isAfter(p)&&C;let _=a(c.time,Xa());return s==="year"&&(_=Xa().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:y,[`${e}-cell-today`]:_,[`${e}-cell-selected`]:t&&a(c.time,t),[`${e}-cell-range-start`]:k,[`${e}-cell-range-end`]:C,[`${e}-cell-in-range`]:S,[`${e}-cell-in-range-near-hover`]:E,[`${e}-cell-hover-range-start`]:S,[`${e}-cell-hover-range-end`]:S,[`${e}-cell-hover-in-range`]:S,[`${e}-cell-disabled`]:d}]}}const bre=42,W8=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),oMe=e=>({start:W8(Xs.startOf(e,"month")),end:W8(Xs.endOf(e,"month")),days:e.daysInMonth()});function Mpe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=oMe(e),i=Array(bre).fill(null).map(()=>({})),a=t===0?r.start.day:(r.start.day||7)-1;i[a]={...r.start,isCurrent:!0};for(let l=0;l=r.days-1};const s=Array(6).fill(null).map(()=>[]);for(let l=0;l<6;l++)if(s[l]=i.slice(l*7,7*(l+1)),n){const c=s[l][0].time,d=[...s[l]];s[l].unshift({weekRows:d,weekOfYear:c.week()})}return s}var $pe=we({name:"Month",props:{cell:{type:Boolean},pageData:{type:Array},current:{type:Number},value:{type:Object,required:!0},selectHandler:{type:Function,required:!0},mode:{type:String},pageShowDate:{type:Object,required:!0},panel:{type:Boolean},dayStartOfWeek:{type:Number,required:!0},isWeek:{type:Boolean,required:!0}},setup(e,{slots:t}){const{pageData:n}=tn(e),r=Re("calendar"),i=e.pageShowDate.year(),a=F(()=>Rpe({prefixCls:r,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(c,d)=>c.isSame(d,"day")}));function s(c){return c.map((d,h)=>{var p;if(d.time){const v=()=>e.selectHandler(d.time,!1),g=e.isWeek?{onClick:v}:{},y=e.isWeek?{}:{onClick:v};return $("div",Ft({key:h,class:a.value(d,!1)},g),[t.default?(p=t.default)==null?void 0:p.call(t,{year:d.year,month:d.month,date:d.date}):$("div",Ft({class:`${r}-date`},y),[$("div",{class:`${r}-date-value`},[e.panel?d.date:$("div",{class:`${r}-date-circle`},[d.date])])])])}if("weekOfYear"in d){const v=e.value.year(),g=e.value.month()+1,y=e.value.week(),S=e.value&&d.weekRows.find(k=>k.year===v&&k.month===g)&&y===d.weekOfYear;return $("div",{key:h,class:[`${r}-cell`,`${r}-cell-week`,{[`${r}-cell-selected-week`]:S,[`${r}-cell-in-range`]:S}]},[$("div",{class:`${r}-date`},[$("div",{class:`${r}-date-value`},[d.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=Mpe(Ms(`${i}-${vm(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>$("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[$(iMe,{value:e.value,selectHandler:e.selectHandler,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,panel:e.panel,mode:e.mode,pageShowData:e.pageShowDate,pageData:e.pageData},null),$("div",{class:`${r}-month-cell-body`},[l?.map((c,d)=>$("div",{key:d,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const Ope=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),Bpe=Array(3);for(let e=0;e<3;e++)Bpe[e]=Ope.slice(e*4,4*(e+1));const Npe=Array(4);for(let e=0;e<4;e++)Npe[e]=Ope.slice(e*3,3*(e+1));var sMe=we({name:"Year",props:{mode:{type:String,required:!0},dayStartOfWeek:{type:Number,required:!0},value:{type:Object,required:!0},isWeek:{type:Boolean},panel:{type:Boolean,default:!1},pageShowData:{type:Object,required:!0},pageData:{type:Array},selectHandler:{type:Function,required:!0}},setup(e){const t=Re("calendar"),n=F(()=>Rpe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=No(),i=F(()=>e.pageShowData.year()),a=e.panel?Npe:Bpe;return()=>$("div",{class:`${t}-year`},[a.map((s,l)=>$("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const d=Ms(`${i.value}-${vm(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(d,!1)}:{};return $("div",{key:c.value,class:n.value({...c,time:d},!1)},[e.panel?$("div",Ft({class:`${t}-date`},h),[$("div",{class:`${t}-date-value`},[r(`calendar.month.short.${c.name}`)])]):$("div",{class:`${t}-month-with-days`},[$("div",{class:`${t}-month-title`},[r(`calendar.month.long.${c.name}`)]),$($pe,{pageShowDate:e.pageShowData,pageData:e.pageData,dayStartOfWeek:e.dayStartOfWeek,selectHandler:e.selectHandler,isWeek:e.isWeek,cell:!0,current:c.value,value:e.value,mode:e.mode},null)])])})]))])}});const aMe=({defaultValue:e,modelValue:t,emit:n,eventName:r="input",updateEventName:i="update:modelValue",eventHandlers:a})=>{var s;const l=ue(),c=ue((s=e?.value)!=null?s:""),d=ue(!1),h=ue(!1),p=ue("");let v;const g=F(()=>{var D;return(D=t?.value)!=null?D:c.value}),y=(D,P)=>{c.value=D,n(i,D),n(r,D,P)},S=D=>{const{value:P}=D.target;h.value||(y(P,D),dn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)}))},k=D=>{r==="input"&&g.value!==v&&(v=g.value,n("change",g.value,D))},C=D=>{var P;const{value:M}=D.target;D.type==="compositionend"?(h.value=!1,p.value="",y(M,D),dn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)})):(h.value=!0,p.value=g.value+((P=D.data)!=null?P:""))},x=D=>{var P,M;d.value=!0,v=g.value,n("focus",D),(M=(P=a?.value)==null?void 0:P.onFocus)==null||M.call(P,D)},E=D=>{var P,M;d.value=!1,n("blur",D),(M=(P=a?.value)==null?void 0:P.onBlur)==null||M.call(P,D),k(D)},_=D=>{const P=D.key||D.code;!h.value&&P===uH.key&&(n("pressEnter",D),k(D))},T=D=>{l.value&&D.target!==l.value&&(D.preventDefault(),l.value.focus())};return It(g,D=>{l.value&&D!==l.value.value&&(l.value.value=D)}),{inputRef:l,_value:c,_focused:d,isComposition:h,compositionValue:p,computedValue:g,handleInput:S,handleComposition:C,handleFocus:x,handleBlur:E,handleKeyDown:_,handleMousedown:T}};var lMe=we({name:"InputLabel",inheritAttrs:!1,props:{modelValue:Object,inputValue:{type:String,default:""},enabledInput:Boolean,formatLabel:Function,placeholder:String,retainInputValue:Boolean,disabled:Boolean,baseCls:String,size:String,error:Boolean,focused:Boolean,uninjectFormItemContext:Boolean},emits:["update:inputValue","inputValueChange","focus","blur"],setup(e,{attrs:t,emit:n,slots:r}){var i;const{size:a,disabled:s,error:l,inputValue:c,uninjectFormItemContext:d}=tn(e),h=(i=e.baseCls)!=null?i:Re("input-label"),{mergedSize:p,mergedDisabled:v,mergedError:g,eventHandlers:y}=Do({size:a,disabled:s,error:l,uninject:d?.value}),{mergedSize:S}=Aa(p),{inputRef:k,_focused:C,computedValue:x,handleInput:E,handleComposition:_,handleFocus:T,handleBlur:D,handleMousedown:P}=aMe({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:y}),M=F(()=>{var ie;return(ie=e.focused)!=null?ie:C.value}),O=F(()=>e.enabledInput&&C.value||!e.modelValue),L=()=>{var ie,te;return e.modelValue?(te=(ie=e.formatLabel)==null?void 0:ie.call(e,e.modelValue))!=null?te:e.modelValue.label:""},B=F(()=>e.enabledInput&&e.modelValue?L():e.placeholder),j=()=>{var ie,te;return e.modelValue?(te=(ie=r.default)==null?void 0:ie.call(r,{data:e.modelValue}))!=null?te:L():null},H=F(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:M.value,[`${h}-disabled`]:v.value,[`${h}-error`]:g.value}]),U=F(()=>Ea(t,k0)),K=F(()=>kf(t,k0));return{inputRef:k,render:()=>$("span",Ft(U.value,{class:H.value,title:L(),onMousedown:P}),[r.prefix&&$("span",{class:`${h}-prefix`},[r.prefix()]),$("input",Ft(K.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!O.value}],value:x.value,readonly:!e.enabledInput,placeholder:B.value,disabled:v.value,onInput:E,onFocus:T,onBlur:D,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),$("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:O.value}]},[j()]),r.suffix&&$("span",{class:`${h}-suffix`},[r.suffix()])])}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const uMe=(e,t)=>{const n=[];for(const r of e)if(gr(r))n.push({raw:r,value:r[t.value],label:r[t.label],closable:r[t.closable],tagProps:r[t.tagProps]});else if(e||et(e)){const i={value:r,label:String(r),closable:!0};n.push({raw:i,...i})}return n},_re=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],cMe=we({name:"Tag",components:{IconHover:Lo,IconClose:fs,IconLoading:Ja},props:{color:{type:String},size:{type:String},bordered:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:!0},nowrap:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,"update:checked":e=>!0,close:e=>!0,check:(e,t)=>!0},setup(e,{emit:t}){const{size:n}=tn(e),r=Re("tag"),i=F(()=>e.color&&_re.includes(e.color)),a=F(()=>e.color&&!_re.includes(e.color)),s=ue(e.defaultVisible),l=ue(e.defaultChecked),c=F(()=>{var k;return(k=e.visible)!=null?k:s.value}),d=F(()=>{var k;return e.checkable?(k=e.checked)!=null?k:l.value:!0}),{mergedSize:h}=Aa(n),p=F(()=>h.value==="mini"?"small":h.value),v=k=>{s.value=!1,t("update:visible",!1),t("close",k)},g=k=>{if(e.checkable){const C=!d.value;l.value=C,t("update:checked",C),t("check",C,k)}},y=F(()=>[r,`${r}-size-${p.value}`,{[`${r}-loading`]:e.loading,[`${r}-hide`]:!c.value,[`${r}-${e.color}`]:i.value,[`${r}-bordered`]:e.bordered,[`${r}-checkable`]:e.checkable,[`${r}-checked`]:d.value,[`${r}-custom-color`]:a.value}]),S=F(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:y,style:S,computedVisible:c,computedChecked:d,handleClick:g,handleClose:v}}});function dMe(e,t,n,r,i,a){const s=Te("icon-close"),l=Te("icon-hover"),c=Te("icon-loading");return e.computedVisible?(z(),X("span",{key:0,class:de(e.cls),style:Ye(e.style),onClick:t[0]||(t[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.$slots.icon?(z(),X("span",{key:0,class:de(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon")],2)):Ie("v-if",!0),e.nowrap?(z(),X("span",{key:1,class:de(`${e.prefixCls}-text`)},[mt(e.$slots,"default")],2)):mt(e.$slots,"default",{key:2}),e.closable?(z(),Ze(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:de(`${e.prefixCls}-close-btn`),onClick:cs(e.handleClose,["stop"])},{default:fe(()=>[mt(e.$slots,"close-icon",{},()=>[$(s)])]),_:3},8,["prefix","class","onClick"])):Ie("v-if",!0),e.loading?(z(),X("span",{key:4,class:de(`${e.prefixCls}-loading-icon`)},[$(c)],2)):Ie("v-if",!0)],6)):Ie("v-if",!0)}var QP=ze(cMe,[["render",dMe]]);const bH=Object.assign(QP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+QP.name,QP)}}),fMe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var eR=we({name:"InputTag",inheritAttrs:!1,props:{modelValue:{type:Array},defaultValue:{type:Array,default:()=>[]},inputValue:String,defaultInputValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{type:String},maxTagCount:{type:Number,default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{type:Function},uniqueValue:{type:Boolean,default:!1},fieldNames:{type:Object},tagNowrap:{type:Boolean,default:!1},baseCls:String,focused:Boolean,disabledInput:Boolean,uninjectFormItemContext:Boolean},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,change:(e,t)=>!0,inputValueChange:(e,t)=>!0,pressEnter:(e,t)=>!0,remove:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:i,disabled:a,error:s,uninjectFormItemContext:l,modelValue:c}=tn(e),d=e.baseCls||Re("input-tag"),h=ue(),p=ue(),{mergedSize:v,mergedDisabled:g,mergedError:y,feedback:S,eventHandlers:k}=Do({size:i,disabled:a,error:s,uninject:l?.value}),{mergedSize:C}=Aa(v),x=F(()=>({...fMe,...e.fieldNames})),E=ue(!1),_=ue(e.defaultValue),T=ue(e.defaultInputValue),D=ue(!1),P=ue(""),M=F(()=>gr(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),O=qt({width:"12px"}),L=F(()=>e.focused||E.value),B=(me,Oe)=>{T.value=me,t("update:inputValue",me),t("inputValueChange",me,Oe)},j=me=>{var Oe;const{value:qe}=me.target;me.type==="compositionend"?(D.value=!1,P.value="",B(qe,me),dn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)})):(D.value=!0,P.value=U.value+((Oe=me.data)!=null?Oe:""))},H=F(()=>{var me;return(me=e.modelValue)!=null?me:_.value}),U=F(()=>{var me;return(me=e.inputValue)!=null?me:T.value});It(c,me=>{(xn(me)||Al(me))&&(_.value=[])});const K=me=>{h.value&&me.target!==h.value&&(me.preventDefault(),h.value.focus())},Y=me=>{const{value:Oe}=me.target;D.value||(B(Oe,me),dn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)}))},ie=F(()=>uMe(H.value,x.value)),te=F(()=>{if(e.maxTagCount>0){const me=ie.value.length-e.maxTagCount;if(me>0){const Oe=ie.value.slice(0,e.maxTagCount),qe={value:"__arco__more",label:`+${me}...`,closable:!1};return Oe.push({raw:qe,...qe}),Oe}}return ie.value}),W=(me,Oe)=>{var qe,Ke;_.value=me,t("update:modelValue",me),t("change",me,Oe),(Ke=(qe=k.value)==null?void 0:qe.onChange)==null||Ke.call(qe,Oe)},q=(me,Oe,qe)=>{var Ke;const at=(Ke=H.value)==null?void 0:Ke.filter((ft,ct)=>ct!==Oe);W(at,qe),t("remove",me,qe)},Q=me=>{W([],me),t("clear",me)},se=F(()=>!g.value&&!e.readonly&&e.allowClear&&!!H.value.length),ae=me=>{var Oe;if(U.value){if(me.preventDefault(),e.uniqueValue&&((Oe=H.value)!=null&&Oe.includes(U.value))){t("pressEnter",U.value,me);return}const qe=H.value.concat(U.value);W(qe,me),t("pressEnter",U.value,me),M.value.create||B("",me)}},re=me=>{var Oe,qe;E.value=!0,t("focus",me),(qe=(Oe=k.value)==null?void 0:Oe.onFocus)==null||qe.call(Oe,me)},Ce=me=>{var Oe,qe;E.value=!1,!M.value.blur&&U.value&&B("",me),t("blur",me),(qe=(Oe=k.value)==null?void 0:Oe.onBlur)==null||qe.call(Oe,me)},Ve=()=>{for(let me=ie.value.length-1;me>=0;me--)if(ie.value[me].closable)return me;return-1},ge=me=>{if(g.value||e.readonly)return;const Oe=me.key||me.code;if(!D.value&&U.value&&Oe===uH.key&&ae(me),!D.value&&te.value.length>0&&!U.value&&Oe===gpe.key){const qe=Ve();qe>=0&&q(ie.value[qe].value,qe,me)}},xe=me=>{me>12?O.width=`${me}px`:O.width="12px"};hn(()=>{p.value&&xe(p.value.offsetWidth)});const Ge=()=>{p.value&&xe(p.value.offsetWidth)};It(U,me=>{h.value&&!D.value&&me!==h.value.value&&(h.value.value=me)});const tt=F(()=>[d,`${d}-size-${C.value}`,{[`${d}-disabled`]:g.value,[`${d}-disabled-input`]:e.disabledInput,[`${d}-error`]:y.value,[`${d}-focus`]:L.value,[`${d}-readonly`]:e.readonly,[`${d}-has-tag`]:te.value.length>0,[`${d}-has-prefix`]:!!n.prefix,[`${d}-has-suffix`]:!!n.suffix||se.value||S.value,[`${d}-has-placeholder`]:!H.value.length}]),Ue=F(()=>Ea(r,k0)),_e=F(()=>kf(r,k0));return{inputRef:h,render:()=>{var me;return $("span",Ft({class:tt.value,onMousedown:K},Ue.value),[$(Dd,{onResize:Ge},{default:()=>[$("span",{ref:p,class:`${d}-mirror`},[te.value.length>0?P.value||U.value:P.value||U.value||e.placeholder])]}),n.prefix&&$("span",{class:`${d}-prefix`},[n.prefix()]),$(o3,{tag:"span",name:"input-tag-zoom",class:[`${d}-inner`,{[`${d}-nowrap`]:e.tagNowrap}]},{default:()=>[te.value.map((Oe,qe)=>$(bH,Ft({key:`tag-${Oe.value}`,class:`${d}-tag`,closable:!g.value&&!e.readonly&&Oe.closable,visible:!0,nowrap:e.tagNowrap},Oe.tagProps,{onClose:Ke=>q(Oe.value,qe,Ke)}),{default:()=>{var Ke,at,ft,ct;return[(ct=(ft=(Ke=n.tag)==null?void 0:Ke.call(n,{data:Oe.raw}))!=null?ft:(at=e.formatTag)==null?void 0:at.call(e,Oe.raw))!=null?ct:Oe.label]}})),$("input",Ft(_e.value,{ref:h,key:"input-tag-input",class:`${d}-input`,style:O,placeholder:te.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:Y,onKeydown:ge,onFocus:re,onBlur:Ce,onCompositionstart:j,onCompositionupdate:j,onCompositionend:j}),null)]}),se.value&&$(Lo,{class:`${d}-clear-btn`,onClick:Q,onMousedown:Oe=>Oe.stopPropagation()},{default:()=>[$(fs,null,null)]}),(n.suffix||!!S.value)&&$("span",{class:`${d}-suffix`},[(me=n.suffix)==null?void 0:me.call(n),!!S.value&&$(Q_,{type:S.value},null)])])}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Fpe=Object.assign(eR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+eR.name,eR)}});var G8=we({name:"SelectView",props:{modelValue:{type:Array,required:!0},inputValue:String,placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},opened:{type:Boolean,default:!1},size:{type:String},bordered:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>nr(e.modelValue)},maxTagCount:{type:Number,default:0},tagNowrap:{type:Boolean,default:!1},retainInputValue:{type:Boolean,default:!1}},emits:["remove","clear","focus","blur"],setup(e,{emit:t,slots:n}){const{size:r,disabled:i,error:a}=tn(e),s=Re("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:d,mergedSize:h,mergedError:p}=Do({size:r,disabled:i,error:a}),{mergedSize:v}=Aa(h),{opened:g}=tn(e),y=ue(),S=F(()=>{var B;return(B=y.value)==null?void 0:B.inputRef}),k=F(()=>e.modelValue.length===0),C=F(()=>e.allowSearch||e.allowCreate),x=F(()=>e.allowClear&&!e.disabled&&!k.value),E=B=>{var j,H;t("focus",B),(H=(j=c.value)==null?void 0:j.onFocus)==null||H.call(j,B)},_=B=>{var j,H;t("blur",B),(H=(j=c.value)==null?void 0:j.onBlur)==null||H.call(j,B)},T=B=>{t("remove",B)},D=B=>{t("clear",B)},P=()=>{var B,j,H,U;return e.loading?(j=(B=n["loading-icon"])==null?void 0:B.call(n))!=null?j:$(Ja,null,null):e.allowSearch&&e.opened?(U=(H=n["search-icon"])==null?void 0:H.call(n))!=null?U:$(Pm,null,null):n["arrow-icon"]?n["arrow-icon"]():$(Zh,{class:`${s}-arrow-icon`},null)},M=()=>$(Pt,null,[x.value&&$(Lo,{class:`${s}-clear-btn`,onClick:D,onMousedown:B=>B.stopPropagation()},{default:()=>[$(fs,null,null)]}),$("span",{class:`${s}-icon`},[P()]),!!l.value&&$(Q_,{type:l.value},null)]);It(g,B=>{!B&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const O=F(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:E,handleBlur:_,render:()=>e.multiple?$(Fpe,{ref:y,baseCls:s,class:O.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:v.value,error:p.value,maxTagCount:e.maxTagCount,disabledInput:!e.allowSearch&&!e.allowCreate,tagNowrap:e.tagNowrap,retainInputValue:!0,uninjectFormItemContext:!0,onRemove:T,onFocus:E,onBlur:_},{prefix:n.prefix,suffix:M,tag:n.label}):$(lMe,{ref:y,baseCls:s,class:O.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:v.value,error:p.value,enabledInput:C.value,uninjectFormItemContext:!0,onFocus:E,onBlur:_},{default:n.label,prefix:n.prefix,suffix:M})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const hMe=we({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Re("select-group")}}});function pMe(e,t,n,r,i,a){return z(),X(Pt,null,[I("li",{class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"label",{},()=>[He(Ne(e.label),1)])],2),mt(e.$slots,"default")],64)}var sb=ze(hMe,[["render",pMe]]);const Sre=typeof window>"u"?global:window;function o_(e,t){let n=0;return(...r)=>{n&&Sre.clearTimeout(n),n=Sre.setTimeout(()=>{n=0,e(...r)},t)}}function vMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const mMe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var tR=we({name:"Select",components:{Trigger:va,SelectView:G8},inheritAttrs:!1,props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:e=>xn(e.multiple)?"":[]},inputValue:{type:String},defaultInputValue:{type:String,default:""},size:{type:String},placeholder:String,loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{type:Number,default:0},popupContainer:{type:[String,Object]},bordered:{type:Boolean,default:!0},defaultActiveFirstOption:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountOnClose:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},options:{type:Array,default:()=>[]},virtualListProps:{type:Object},triggerProps:{type:Object},formatLabel:{type:Function},fallbackOption:{type:[Boolean,Function],default:!0},showExtraOptions:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},searchDelay:{type:Number,default:500},limit:{type:Number,default:0},fieldNames:{type:Object},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,popupVisibleChange:e=>!0,clear:e=>!0,remove:e=>!0,search:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0,exceedLimit:(e,t)=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{size:i,disabled:a,error:s,options:l,filterOption:c,valueKey:d,multiple:h,popupVisible:p,defaultPopupVisible:v,showExtraOptions:g,modelValue:y,fieldNames:S,loading:k,defaultActiveFirstOption:C}=tn(e),x=Re("select"),{mergedSize:E,mergedDisabled:_,mergedError:T,eventHandlers:D}=Do({size:i,disabled:a,error:s}),P=F(()=>e.virtualListProps?"div":"li"),M=F(()=>gr(e.allowSearch)&&!!e.allowSearch.retainInputValue);F(()=>{if(Sn(e.formatLabel))return vt=>{const Fe=at.get(vt.value);return e.formatLabel(Fe)}});const O=ue(),L=ue({}),B=ue(),{computedPopupVisible:j,handlePopupVisibleChange:H}=U5({popupVisible:p,defaultPopupVisible:v,emit:n}),U=ue(e.defaultValue),K=F(()=>{var vt;const Fe=(vt=e.modelValue)!=null?vt:U.value;return(nr(Fe)?Fe:Fe||et(Fe)||ds(Fe)||Tl(Fe)?[Fe]:[]).map(Ee=>({value:Ee,key:Rm(Ee,e.valueKey)}))});It(y,vt=>{(xn(vt)||Al(vt))&&(U.value=h.value?[]:vt)});const Y=F(()=>K.value.map(vt=>vt.key)),ie=F(()=>({...mMe,...S?.value})),te=ue(),W=vt=>{const Fe={};return vt.forEach(Me=>{Fe[Me]=at.get(Me)}),Fe},q=vt=>{te.value=W(vt)},Q=vt=>Sn(e.fallbackOption)?e.fallbackOption(vt):{[ie.value.value]:vt,[ie.value.label]:String(gr(vt)?vt[d?.value]:vt)},se=()=>{const vt=[],Fe=[];if(e.allowCreate||e.fallbackOption){for(const Me of K.value)if(!Fe.includes(Me.key)&&Me.value!==""){const Ee=at.get(Me.key);(!Ee||Ee.origin==="extraOptions")&&(vt.push(Me),Fe.push(Me.key))}}if(e.allowCreate&&Ve.value){const Me=Rm(Ve.value);if(!Fe.includes(Me)){const Ee=at.get(Me);(!Ee||Ee.origin==="extraOptions")&&vt.push({value:Ve.value,key:Me})}}return vt},ae=ue([]),re=F(()=>ae.value.map(vt=>{var Fe;let Me=Q(vt.value);const Ee=(Fe=te.value)==null?void 0:Fe[vt.key];return!xn(Ee)&&!ZLe(Ee)&&(Me={...Me,...Ee}),Me}));dn(()=>{Os(()=>{var vt;const Fe=se();if(Fe.length!==ae.value.length)ae.value=Fe;else if(Fe.length>0){for(let Me=0;Me{var vt;return(vt=e.inputValue)!=null?vt:Ce.value});It(j,vt=>{!vt&&!M.value&&Ve.value&&Ge("")});const ge=vt=>{var Fe,Me;return e.multiple?vt.map(Ee=>{var We,$e;return($e=(We=at.get(Ee))==null?void 0:We.value)!=null?$e:""}):(Me=(Fe=at.get(vt[0]))==null?void 0:Fe.value)!=null?Me:CPe(at)?void 0:""},xe=vt=>{var Fe,Me;const Ee=ge(vt);U.value=Ee,n("update:modelValue",Ee),n("change",Ee),(Me=(Fe=D.value)==null?void 0:Fe.onChange)==null||Me.call(Fe),q(vt)},Ge=vt=>{Ce.value=vt,n("update:inputValue",vt),n("inputValueChange",vt)},tt=(vt,Fe)=>{if(e.multiple){if(Y.value.includes(vt)){const Me=Y.value.filter(Ee=>Ee!==vt);xe(Me)}else if(ct.value.includes(vt))if(e.limit>0&&Y.value.length>=e.limit){const Me=at.get(vt);n("exceedLimit",Me?.value,Fe)}else{const Me=Y.value.concat(vt);xe(Me)}M.value||Ge("")}else{if(vt!==Y.value[0]&&xe([vt]),M.value){const Me=at.get(vt);Me&&Ge(Me.label)}H(!1)}},Ue=o_(vt=>{n("search",vt)},e.searchDelay),_e=vt=>{vt!==Ve.value&&(j.value||H(!0),Ge(vt),e.allowSearch&&Ue(vt))},ve=vt=>{const Fe=at.get(vt),Me=Y.value.filter(Ee=>Ee!==vt);xe(Me),n("remove",Fe?.value)},me=vt=>{vt?.stopPropagation();const Fe=Y.value.filter(Me=>{var Ee;return(Ee=at.get(Me))==null?void 0:Ee.disabled});xe(Fe),Ge(""),n("clear",vt)},Oe=vt=>{n("dropdownScroll",vt)},qe=vt=>{n("dropdownReachBottom",vt)},{validOptions:Ke,optionInfoMap:at,validOptionInfos:ft,enabledOptionKeys:ct,handleKeyDown:wt}=pH({multiple:h,options:l,extraOptions:re,inputValue:Ve,filterOption:c,showExtraOptions:g,component:P,valueKey:d,fieldNames:S,loading:k,popupVisible:j,valueKeys:Y,dropdownRef:O,optionRefs:L,virtualListRef:B,defaultActiveFirstOption:C,onSelect:tt,onPopupVisibleChange:H}),Ct=F(()=>{var vt;const Fe=[];for(const Me of K.value){const Ee=at.get(Me.key);Ee&&Fe.push({...Ee,value:Me.key,label:(vt=Ee?.label)!=null?vt:String(gr(Me.value)?Me.value[d?.value]:Me.value),closable:!Ee?.disabled,tagProps:Ee?.tagProps})}return Fe}),Rt=vt=>{if(Sn(t.option)){const Fe=t.option;return()=>Fe({data:vt.raw})}return Sn(vt.render)?vt.render:()=>vt.label},Ht=vt=>{if(Cpe(vt)){let Fe;return $(sb,{key:vt.key,label:vt.label},vMe(Fe=vt.options.map(Me=>Ht(Me)))?Fe:{default:()=>[Fe]})}return j5(vt,{inputValue:Ve.value,filterOption:c?.value})?$(pm,{ref:Fe=>{Fe?.$el&&(L.value[vt.key]=Fe.$el)},key:vt.key,value:vt.value,label:vt.label,disabled:vt.disabled,internal:!0},{default:Rt(vt)}):null},Jt=()=>$(hH,{ref:O,loading:e.loading,empty:ft.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Oe,onReachBottom:qe},{default:()=>{var vt,Fe;return[...(Fe=(vt=t.default)==null?void 0:vt.call(t))!=null?Fe:[],...Ke.value.map(Ht)]},"virtual-list":()=>$(c3,Ft(e.virtualListProps,{ref:B,data:Ke.value}),{item:({item:vt})=>Ht(vt)}),empty:t.empty,header:t.header,footer:t.footer}),rn=({data:vt})=>{var Fe,Me,Ee,We;if((t.label||Sn(e.formatLabel))&&vt){const $e=at.get(vt.value);if($e?.raw)return(Ee=(Fe=t.label)==null?void 0:Fe.call(t,{data:$e.raw}))!=null?Ee:(Me=e.formatLabel)==null?void 0:Me.call(e,$e.raw)}return(We=vt?.label)!=null?We:""};return()=>$(va,Ft({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:_.value,popupVisible:j.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:H},e.triggerProps),{default:()=>{var vt,Fe;return[(Fe=(vt=t.trigger)==null?void 0:vt.call(t))!=null?Fe:$(G8,Ft({class:x,modelValue:Ct.value,inputValue:Ve.value,multiple:e.multiple,disabled:_.value,error:T.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:j.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:E.value,tagNowrap:e.tagNowrap,onInputValueChange:_e,onRemove:ve,onClear:me,onKeydown:wt},r),{label:rn,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Jt})}});const s_=Object.assign(tR,{Option:pm,OptGroup:sb,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+tR.name,tR),e.component(n+pm.name,pm),e.component(n+sb.name,sb)}}),jpe=Symbol("RadioGroup");var kw=we({name:"Radio",components:{IconHover:Lo},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!0},type:{type:String,default:"radio"},disabled:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Re("radio"),{modelValue:i}=tn(e),a=e.uninjectGroupContext?void 0:Pn(jpe,void 0),{mergedDisabled:s,eventHandlers:l}=Do({disabled:Du(e,"disabled")}),c=ue(null),d=ue(e.defaultChecked),h=F(()=>a?.name==="ArcoRadioGroup"),p=F(()=>{var _;return(_=a?.type)!=null?_:e.type}),v=F(()=>a?.disabled||s.value),g=F(()=>{var _,T;return h.value?a?.value===((_=e.value)!=null?_:!0):xn(e.modelValue)?d.value:e.modelValue===((T=e.value)!=null?T:!0)});It(i,_=>{(xn(_)||Al(_))&&(d.value=!1)}),It(g,(_,T)=>{_!==T&&(d.value=_,c.value&&(c.value.checked=_))});const y=_=>{var T,D;(D=(T=l.value)==null?void 0:T.onFocus)==null||D.call(T,_)},S=_=>{var T,D;(D=(T=l.value)==null?void 0:T.onBlur)==null||D.call(T,_)},k=_=>{_.stopPropagation()},C=_=>{var T,D,P,M,O;d.value=!0,h.value?a?.handleChange((T=e.value)!=null?T:!0,_):(t("update:modelValue",(D=e.value)!=null?D:!0),t("change",(P=e.value)!=null?P:!0,_),(O=(M=l.value)==null?void 0:M.onChange)==null||O.call(M,_)),dn(()=>{c.value&&c.value.checked!==g.value&&(c.value.checked=g.value)})},x=F(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:g.value,[`${r}-disabled`]:v.value}]),E=()=>$(Pt,null,[$(Te("icon-hover"),{class:`${r}-icon-hover`,disabled:v.value||g.value},{default:()=>[$("span",{class:`${r}-icon`},null)]}),n.default&&$("span",{class:`${r}-label`},[n.default()])]);return()=>{var _,T,D,P;return $("label",{class:x.value},[$("input",{ref:c,type:"radio",checked:g.value,value:e.value,class:`${r}-target`,disabled:v.value,onClick:k,onChange:C,onFocus:y,onBlur:S},null),p.value==="radio"?(P=(D=(T=n.radio)!=null?T:(_=a?.slots)==null?void 0:_.radio)==null?void 0:D({checked:g.value,disabled:v.value}))!=null?P:E():$("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),ab=we({name:"RadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean],default:""},type:{type:String,default:"radio"},size:{type:String},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Re("radio-group"),{size:i,type:a,disabled:s,modelValue:l}=tn(e),{mergedDisabled:c,mergedSize:d,eventHandlers:h}=Do({size:i,disabled:s}),{mergedSize:p}=Aa(d),v=ue(e.defaultValue),g=F(()=>{var x;return(x=e.modelValue)!=null?x:v.value}),y=F(()=>{var x;return((x=e.options)!=null?x:[]).map(E=>ds(E)||et(E)?{label:E,value:E}:E)});ri(jpe,qt({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(x,E)=>{var _,T;v.value=x,t("update:modelValue",x),t("change",x,E),(T=(_=h.value)==null?void 0:_.onChange)==null||T.call(_,E)}})),It(g,x=>{v.value!==x&&(v.value=x)}),It(l,x=>{(xn(x)||Al(x))&&(v.value="")});const k=F(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),C=()=>y.value.map(x=>$(kw,{key:x.value,value:x.value,disabled:x.disabled,modelValue:g.value===x.value},{default:()=>[n.label?n.label({data:x}):Sn(x.label)?x.label():x.label]}));return()=>{var x;return $("span",{class:k.value},[y.value.length>0?C():(x=n.default)==null?void 0:x.call(n)])}}});const Mm=Object.assign(kw,{Group:ab,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+kw.name,kw),e.component(n+ab.name,ab)}}),gMe=we({name:"IconLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yMe=["stroke-width","stroke-linecap","stroke-linejoin"];function bMe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1)]),14,yMe)}var nR=ze(gMe,[["render",bMe]]);const Il=Object.assign(nR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nR.name,nR)}});function _Me(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}function kre(e){return e.parentElement}var SMe=we({name:"Header",props:{mode:{type:String},dayStartOfWeek:{type:Number},isWeek:{type:Boolean},panel:{type:Boolean},modes:{type:Array},headerType:{type:String},pageShowData:{type:Object,required:!0},move:{type:Function,required:!0},onYearChange:{type:Function,required:!0},onMonthChange:{type:Function,required:!0},changePageShowDate:{type:Function,required:!0},onModeChange:{type:Function,required:!0},headerValueFormat:{type:String,required:!0}},emits:["yearChange","monthChange"],setup(e,{slots:t}){const n=Re("calendar"),{t:r}=No(),i=nr(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=F(()=>e.pageShowData.year()),l=F(()=>e.pageShowData.month()+1),c=F(()=>{const h=[s.value];for(let p=1;p<=10;p++)h.unshift(s.value-p);for(let p=1;p<10;p++)h.push(s.value+p);return h}),d=[1,2,3,4,5,6,7,8,9,10,11,12];return()=>{let h;return $("div",{class:`${n}-header`},[$("div",{class:`${n}-header-left`},[a?$(Pt,null,[$(s_,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:kre},null),e.mode==="month"&&$(s_,{size:"small",class:`${n}-header-value-month`,value:l,options:d,onChange:e.onMonthChange,getPopupContainer:kre},null)]):$(Pt,null,[$("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[$(Il,null,null)]),$("div",{class:`${n}-header-value`},[t.default?t.default({year:s,month:l}):e.pageShowData.format(e.headerValueFormat)]),$("div",{role:"button",tabIndex:0,class:`${n}-header-icon`,onClick:()=>e.changePageShowDate("next",e.mode)},[$(Hi,null,null)])]),$(Xo,{size:"small",onClick:()=>e.move(Xa())},_Me(h=r("datePicker.today"))?h:{default:()=>[h]})]),$("div",{class:`${n}-header-right`},[$(Mm.Group,{size:"small",type:"button",options:i,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function kMe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var rR=we({name:"Calendar",props:{modelValue:{type:Date,default:void 0},defaultValue:{type:Date},mode:{type:String},defaultMode:{type:String,default:"month"},modes:{type:Array,default:()=>["month","year"]},allowSelect:{type:Boolean,default:!0},panel:{type:Boolean,default:!1},panelWidth:{type:Number},panelTodayBtn:{type:Boolean,default:!1},dayStartOfWeek:{type:Number,default:0},isWeek:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,panelChange:e=>!0},setup(e,{emit:t,slots:n}){const{dayStartOfWeek:r,isWeek:i}=tn(e),a=Re("calendar"),s=ue(e.defaultMode),{t:l}=No(),c=F(()=>e.mode?e.mode:s.value),d=kMe(c.value,e.panel),h=ue(dc(e.defaultValue||Date.now(),d)),p=F(()=>e.modelValue?dc(e.modelValue,d):h.value),v=ue(p.value||Xa()),g=F(()=>Mpe(v.value,{dayStartOfWeek:r.value,isWeek:i.value}));function y(M){v.value=M,t("panelChange",M.toDate())}function S(M){h.value=M,t("change",M.toDate()),t("update:modelValue",M.toDate()),y(M)}function k(M,O=!1){O||S(M)}let C="";c.value==="month"?C=l("calendar.formatMonth"):c.value==="year"&&(C=l("calendar.formatYear"));function x(M,O){M==="prev"&&(v.value=Xs.subtract(v.value,1,O)),M==="next"&&(v.value=Xs.add(v.value,1,O)),t("panelChange",v.value.toDate())}function E(M){const O=Xs.set(v.value,"year",M);v.value=O,t("panelChange",O.toDate())}function _(M){const O=Xs.set(v.value,"month",M-1);v.value=O,t("panelChange",O.toDate())}function T(M){s.value=M}const D=F(()=>[a,c.value==="month"?`${a}-mode-month`:`${a}-mode-year`,{[`${a}-panel`]:e.panel&&(c.value==="month"||c.value==="year")}]),P=e.panel?{width:e.panelWidth}:{};return()=>$("div",Ft({class:D.value,style:P},rMe(e)),[$(SMe,{move:S,headerValueFormat:C,modes:e.modes,mode:c.value,pageShowData:v.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:T,onYearChange:E,onMonthChange:_,changePageShowDate:x},{default:n.header}),c.value==="month"&&$("div",{class:`${a}-body`},[$($pe,{key:v.value.month(),pageData:g.value,value:p.value,mode:c.value,selectHandler:k,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:v.value},{default:n.default})]),c.value==="year"&&$("div",{class:`${a}-body`},[$(sMe,{key:v.value.year(),pageData:g.value,pageShowData:v.value,mode:c.value,isWeek:e.isWeek,value:p.value,dayStartOfWeek:e.dayStartOfWeek,selectHandler:k},null)]),e.panel&&e.panelTodayBtn&&$("div",{class:`${a}-footer-btn-wrapper`},[l("today")])])}});const Vpe=Object.assign(rR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+rR.name,rR)}}),_H=Symbol("ArcoCard");var iR=we({name:"Card",components:{Spin:Pd},props:{bordered:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{type:String},headerStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({})},title:{type:String},extra:{type:String}},setup(e,{slots:t}){const n=Re("card"),{size:r}=tn(e),{mergedSize:i}=Aa(r),a=F(()=>i.value==="small"||i.value==="mini"?"small":"medium"),s=d=>{const h=yf(d);return $("div",{class:`${n}-actions`},[$("div",{class:`${n}-actions-right`},[h.map((p,v)=>$("span",{key:`action-${v}`,class:`${n}-actions-item`},[p]))])])},l=qt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});ri(_H,l);const c=F(()=>[n,`${n}-size-${a.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:l.hasGrid}]);return()=>{var d,h,p,v,g,y,S;const k=!!((d=t.title)!=null?d:e.title),C=!!((h=t.extra)!=null?h:e.extra);return $("div",{class:c.value},[(k||C)&&$("div",{class:[`${n}-header`,{[`${n}-header-no-title`]:!k}],style:e.headerStyle},[k&&$("div",{class:`${n}-header-title`},[(v=(p=t.title)==null?void 0:p.call(t))!=null?v:e.title]),C&&$("div",{class:`${n}-header-extra`},[(y=(g=t.extra)==null?void 0:g.call(t))!=null?y:e.extra])]),t.cover&&$("div",{class:`${n}-cover`},[t.cover()]),$("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?$(Pd,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),xw=we({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Re("card-meta"),r=Pn(_H);return hn(()=>{r&&(r.hasMeta=!0)}),()=>{var i,a,s,l,c,d;const h=!!((i=t.title)!=null?i:e.title),p=!!((a=t.description)!=null?a:e.description);return $("div",{class:n},[(h||p)&&$("div",{class:`${n}-content`},[h&&$("div",{class:`${n}-title`},[(l=(s=t.title)==null?void 0:s.call(t))!=null?l:e.title]),p&&$("div",{class:`${n}-description`},[(d=(c=t.description)==null?void 0:c.call(t))!=null?d:e.description])]),(t.avatar||r?.slots.actions)&&$("div",{class:[`${n}-footer `,{[`${n}-footer-only-actions`]:!t.avatar}]},[t.avatar&&$("div",{class:`${n}-avatar`},[t.avatar()]),r&&r.slots.actions&&r.renderActions(r.slots.actions())])])}}});const xMe=we({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Re("card-grid"),n=Pn(_H);return hn(()=>{n&&(n.hasGrid=!0)}),{cls:F(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function CMe(e,t,n,r,i,a){return z(),X("div",{class:de(e.cls)},[mt(e.$slots,"default")],2)}var Cw=ze(xMe,[["render",CMe]]);const wMe=Object.assign(iR,{Meta:xw,Grid:Cw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+iR.name,iR),e.component(n+xw.name,xw),e.component(n+Cw.name,Cw)}}),EMe=we({name:"Indicator",props:{count:{type:Number,default:2},activeIndex:{type:Number,default:0},type:{type:String,default:"line"},position:{type:String,default:"bottom"},trigger:{type:String,default:"click"}},emits:["select"],setup(e,{emit:t}){const n=Re("carousel-indicator"),r=l=>{var c;if(l.preventDefault(),e.type==="slider"){const d=l.offsetX,h=l.currentTarget.clientWidth;if(l.target===l.currentTarget){const p=Math.floor(d/h*e.count);p!==e.activeIndex&&t("select",p)}}else{const d=Number.parseInt((c=l.target.getAttribute("data-index"))!=null?c:"",10);!Number.isNaN(d)&&d!==e.activeIndex&&t("select",d)}},i=F(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=F(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=F(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:i,cls:a,sliderStyle:s}}}),TMe=["data-index"];function AMe(e,t,n,r,i,a){return z(),X("div",Ft({class:e.cls},e.eventHandlers),[e.type==="slider"?(z(),X("span",{key:0,style:Ye(e.sliderStyle),class:de([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(z(!0),X(Pt,{key:1},cn(Array(e.count),(s,l)=>(z(),X("span",{key:l,"data-index":l,class:de([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,TMe))),128))],16)}var IMe=ze(EMe,[["render",AMe]]);const LMe=we({name:"IconUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DMe=["stroke-width","stroke-linecap","stroke-linejoin"];function PMe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1)]),14,DMe)}var oR=ze(LMe,[["render",PMe]]);const tS=Object.assign(oR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oR.name,oR)}}),RMe=we({name:"Arrow",components:{IconUp:tS,IconDown:Zh,IconLeft:Il,IconRight:Hi},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=Re("carousel"),r=s=>{t("previousClick",s)},i=s=>{t("nextClick",s)},a=F(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:i}}});function MMe(e,t,n,r,i,a){const s=Te("IconLeft"),l=Te("IconUp"),c=Te("IconRight"),d=Te("IconDown");return z(),X("div",{class:de(e.cls)},[I("div",{class:de(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(z(),Ze(s,{key:0})):(z(),Ze(l,{key:1}))],2),I("div",{class:de(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(z(),Ze(c,{key:0})):(z(),Ze(d,{key:1}))],2)],2)}var $Me=ze(RMe,[["render",MMe]]);const zpe=Symbol("ArcoCarousel"),nS=e=>{const t={},n=ue([]),r=()=>{if(t.value){const i=upe(t.value,e);(i.length!==n.value.length||i.toString()!==n.value.toString())&&(n.value=i)}};return hn(()=>r()),tl(()=>r()),{children:t,components:n}},xre={interval:3e3,hoverToPause:!0};function sR(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var aR=we({name:"Carousel",props:{current:{type:Number},defaultCurrent:{type:Number,default:1},autoPlay:{type:[Boolean,Object],default:!1},moveSpeed:{type:Number,default:500},animationName:{type:String,default:"slide"},trigger:{type:String,default:"click"},direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"},arrowClass:{type:String,default:""},indicatorType:{type:String,default:"dot"},indicatorPosition:{type:String,default:"bottom"},indicatorClass:{type:String,default:""},transitionTimingFunction:{type:String,default:"cubic-bezier(0.34, 0.69, 0.1, 1)"}},emits:{"update:current":e=>!0,change:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{current:r,animationName:i,moveSpeed:a,transitionTimingFunction:s}=tn(e),l=Re("carousel"),c=ue(!1),d=ue(),h=ue(),p=F(()=>gr(e.autoPlay)?{...xre,...e.autoPlay}:e.autoPlay?xre:{});let v=0,g=0;const{children:y,components:S}=nS("CarouselItem"),k=ue(e.defaultCurrent-1),C=F(()=>{const U=S.value.length,K=et(r.value)?sR(r.value-1,U):k.value,Y=sR(K-1,U),ie=sR(K+1,U);return{mergedIndex:K,mergedPrevIndex:Y,mergedNextIndex:ie}}),x=qt({items:S,slideTo:_,mergedIndexes:C,previousIndex:d,animationName:i,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});ri(zpe,x);const E=()=>{v&&window.clearInterval(v)};Os(()=>{var U;const{interval:K}=p.value||{},{mergedNextIndex:Y}=C.value,ie=((U=S.value)==null?void 0:U.length)>1&&!c.value&&!!K;E(),ie&&(v=window.setInterval(()=>{_({targetIndex:Y})},K))}),_o(()=>{E()});function _({targetIndex:U,isNegative:K=!1,isManual:Y=!1}){!g&&U!==C.value.mergedIndex&&(d.value=k.value,k.value=U,h.value=K?"negative":"positive",g=window.setTimeout(()=>{g=0},a.value),t("update:current",k.value+1),t("change",k.value+1,d.value+1,Y))}const T=()=>_({targetIndex:C.value.mergedPrevIndex,isNegative:!0,isManual:!0}),D=()=>_({targetIndex:C.value.mergedNextIndex,isManual:!0}),P=U=>_({targetIndex:U,isNegative:Up.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),O=F(()=>e.indicatorType!=="never"&&S.value.length>1),L=F(()=>e.showArrow!=="never"&&S.value.length>1),B=F(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),j=F(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),H=F(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var U;return y.value=(U=n.default)==null?void 0:U.call(n),$("div",Ft({class:B.value},M.value),[$("div",{class:j.value},[y.value]),O.value&&$("div",{class:H.value},[$(IMe,{class:e.indicatorClass,type:e.indicatorType,count:S.value.length,activeIndex:C.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:P},null)]),L.value&&$($Me,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:T,onNextClick:D},null)])}}});const OMe=we({name:"CarouselItem",setup(){const e=Re("carousel-item"),t=So(),n=Pn(zpe,{}),r=F(()=>{var l,c,d;return(d=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?d:-1}),i=F(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=F(()=>{const{previousIndex:l,animationName:c,slideDirection:d,mergedIndexes:h}=n;return{[`${e}-prev`]:r.value===h?.mergedPrevIndex,[`${e}-next`]:r.value===h?.mergedNextIndex,[`${e}-current`]:i.value,[`${e}-slide-in`]:c==="slide"&&d&&i.value,[`${e}-slide-out`]:c==="slide"&&d&&r.value===l}}),s=F(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:i}}}),BMe=["aria-hidden"];function NMe(e,t,n,r,i,a){return z(),X("div",{"aria-hidden":!e.isCurrent,class:de(e.cls),style:Ye(e.animationStyle)},[mt(e.$slots,"default")],14,BMe)}var ww=ze(OMe,[["render",NMe]]);const FMe=Object.assign(aR,{Item:ww,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+aR.name,aR),e.component(n+ww.name,ww)}}),Upe=(e,{optionMap:t,leafOptionMap:n,leafOptionSet:r,leafOptionValueMap:i,totalLevel:a,checkStrictly:s,enabledLazyLoad:l,lazyLoadOptions:c,valueKey:d,fieldNames:h})=>{let p=0;const v=(y,S,k)=>{var C;const x=(C=S?.path)!=null?C:[];return p=Math.max(p,k??1),y.map((E,_)=>{var T;const D=E[h.value],P={raw:E,value:D,label:(T=E[h.label])!=null?T:String(D),disabled:!!E[h.disabled],selectionDisabled:!1,render:E[h.render],tagProps:E[h.tagProps],isLeaf:E[h.isLeaf],level:x.length,index:_,key:"",valueKey:String(gr(D)?D[d.value]:D),parent:S,path:[],pathValue:[]},M=x.concat(P),O=[],L=M.map(B=>(O.push(B.value),B.valueKey)).join("-");return P.path=M,P.pathValue=O,P.key=L,E[h.children]?(P.isLeaf=!1,P.children=v(E[h.children],P,(k??1)+1)):l&&!P.isLeaf?(P.isLeaf=!1,c[L]&&(P.children=v(c[L],P,(k??1)+1))):P.isLeaf=!0,P.children&&!P.disabled&&(P.totalLeafOptions=P.children.reduce((B,j)=>et(j.totalLeafOptions)?B+j.totalLeafOptions:j.disabled||j.selectionDisabled?B:B+(j.isLeaf?1:0),0),P.totalLeafOptions===0&&!s.value&&(P.selectionDisabled=!0)),t.set(P.key,P),(P.isLeaf||s.value)&&(r.add(P),n.set(P.key,P),i.has(P.valueKey)||i.set(P.valueKey,P.key)),P})},g=v(e);return a.value=p,g},SH=(e,t)=>{var n,r;let i=!1,a=!1;if(e.isLeaf)t?.has(e.key)&&(i=!0);else{const s=new RegExp(`^${e.key}(-|$)`),l=Array.from((n=t?.keys())!=null?n:[]).reduce((c,d)=>s.test(d)?c+1:c,0);l>0&&l>=((r=e.totalLeafOptions)!=null?r:1)?i=!0:l>0&&(a=!0)}return{checked:i,indeterminate:a}},kH=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...kH(n));return t},xH=e=>{const t=[];if(e.disabled||e.selectionDisabled)return t;if(e.isLeaf)t.push(e);else if(e.children)for(const n of e.children)t.push(...xH(n));return t},Hpe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(nr(e))return e.map(a=>gr(a)?a[t]:a).join("-");const i=gr(e)?e[t]:e;return(r=n.get(String(i)))!=null?r:String(i)},Wpe=(e,{multiple:t,pathMode:n})=>nr(e)?n&&!t&&e.length>0&&!nr(e[0])?[e]:e:xn(e)||Al(e)||e===""?[]:[e],Gpe=e=>e.path.map(t=>t.label).join(" / "),CH=Symbol("ArcoCascader");var tV=we({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Re("cascader-option"),n=Pn(CH,{}),r=ue(!1),i={},a=h=>{var p;if(Sn(n.loadMore)&&!e.option.isLeaf){const{isLeaf:v,children:g,key:y}=e.option;!v&&!g&&(r.value=!0,new Promise(S=>{var k;(k=n.loadMore)==null||k.call(n,e.option.raw,S)}).then(S=>{var k;r.value=!1,S&&((k=n.addLazyLoadOptions)==null||k.call(n,S,y))}))}(p=n.setSelectedPath)==null||p.call(n,e.option.key)};e.option.disabled||(i.onMouseenter=[()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n,e.option.key)}],i.onMouseleave=()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n)},i.onClick=[],n.expandTrigger==="hover"?i.onMouseenter.push(h=>a()):i.onClick.push(h=>a()),e.option.isLeaf&&!e.multiple&&i.onClick.push(h=>{var p;a(),(p=n.onClickOption)==null||p.call(n,e.option)}));const s=F(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=F(()=>{var h;return e.checkStrictly?{checked:(h=n.valueMap)==null?void 0:h.has(e.option.key),indeterminate:!1}:SH(e.option,n.valueMap)}),c=()=>{var h,p,v;return e.pathLabel?(p=(h=n?.formatLabel)==null?void 0:h.call(n,e.option.path.map(g=>g.raw)))!=null?p:Gpe(e.option):(v=n.slots)!=null&&v.option?n.slots.option({data:e.option}):Sn(e.option.render)?e.option.render():e.option.label},d=()=>r.value?$(Ja,null,null):!e.searchOption&&!e.option.isLeaf?$(Hi,null,null):null;return()=>{var h;return $("li",Ft({tabindex:"0",role:"menuitem","aria-disabled":e.option.disabled,"aria-haspopup":!e.option.isLeaf,"aria-expanded":!e.option.isLeaf&&e.active,title:e.option.label,class:s.value},i),[e.multiple&&$(Wc,{modelValue:l.value.checked,indeterminate:l.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(p,v)=>{var g;v.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!l.value.checked)},onClick:p=>p.stopPropagation()},null),e.checkStrictly&&!e.multiple&&$(Mm,{modelValue:(h=n.valueMap)==null?void 0:h.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(p,v)=>{var g;v.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!0)},onClick:p=>p.stopPropagation()},null),$("div",{class:`${t}-label`},[c(),d()])])}}}),jMe=we({name:"CascaderColumn",props:{column:{type:Array,required:!0},level:{type:Number,default:0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Re("cascader"),r=Pn(Za,void 0),i=ue(),a=ue(!!e.virtualListProps),s=()=>{var l,c,d,h,p;return(p=(h=(l=t.empty)==null?void 0:l.call(t))!=null?h:(d=r==null?void 0:(c=r.slots).empty)==null?void 0:d.call(c,{component:"cascader"}))!=null?p:$(Xh,null,null)};return()=>{var l;return $("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?$(Rd,{class:`${n}-column-content`},{default:()=>[$("div",{class:`${n}-list-empty`},[s()])]}):a.value?$(c3,Ft({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:i,data:e.column}),{item:({item:c})=>$(tV,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):$(Rd,{class:`${n}-column-content`},{default:()=>[$("ul",{role:"menu",class:[`${n}-list`,{[`${n}-list-multiple`]:!!e?.multiple,[`${n}-list-strictly`]:!!e?.checkStrictly}]},[e.column.map(c=>$(tV,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function VMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var Kpe=we({name:"BaseCascaderPanel",props:{displayColumns:{type:Array,required:!0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,loading:Boolean,dropdown:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Re("cascader"),r=Pn(Za,void 0),i=()=>{var s,l,c,d,h;return(h=(d=(s=t.empty)==null?void 0:s.call(t))!=null?d:(c=r==null?void 0:(l=r.slots).empty)==null?void 0:c.call(l,{component:"cascader"}))!=null?h:$(Xh,null,null)},a=()=>e.loading?$("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[$(Pd,null,null)]):e.displayColumns.length===0?$("div",{key:"panel-column-empty",class:`${n}-panel-column`},[$("div",{class:`${n}-list-empty`},[i()])]):e.displayColumns.map((s,l)=>$(jMe,{key:`column-${l}`,column:s,level:l,selectedPath:e.selectedPath,activeKey:e.activeKey,totalLevel:e.totalLevel,multiple:e.multiple,checkStrictly:e.checkStrictly,virtualListProps:e.virtualListProps},{empty:t.empty}));return()=>{let s;return $(o3,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},VMe(s=a())?s:{default:()=>[s]})}}});function zMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var UMe=we({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Re("cascader"),r=Pn(Za,void 0),i=()=>{var a,s,l,c,d;return e.loading?$(Pd,null,null):e.options.length===0?$("div",{class:`${n}-list-empty`},[(d=(c=(a=t.empty)==null?void 0:a.call(t))!=null?c:(l=r==null?void 0:(s=r.slots).empty)==null?void 0:l.call(s,{component:"cascader"}))!=null?d:$(Xh,null,null)]):$("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>$(tV,{key:h.key,class:`${n}-search-option`,option:h,active:h.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly,pathLabel:e.pathLabel,searchOption:!0},null))])};return()=>{let a;return $(Rd,{class:[`${n}-panel`,`${n}-search-panel`]},zMe(a=i())?a:{default:()=>[a]})}}});const qpe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:i})=>{const a=ue(),s=F(()=>{if(a.value)return t.get(a.value)}),l=ue([]),c=F(()=>{const y=[e.value];for(const S of l.value){const k=t.get(S);k?.children&&y.push(k.children)}return y}),d=y=>{var S;const k=v(y);l.value=(S=k?.path.map(C=>C.key))!=null?S:[]},h=y=>{a.value=y},p=F(()=>{var y;return r?.value?n.value.filter(S=>!S.disabled):s.value&&s.value.parent?(y=s.value.parent.children)==null?void 0:y.filter(S=>!S.disabled):e.value.filter(S=>!S.disabled)}),v=y=>{let S=y?t.get(y):void 0;if(i.value)for(;S&&S.children&&S.children.length>0;)S=S.children[0];return S};return{activeKey:a,activeOption:s,selectedPath:l,displayColumns:c,setActiveKey:h,setSelectedPath:d,getNextActiveNode:y=>{var S,k,C,x,E,_,T;const D=(k=(S=p.value)==null?void 0:S.length)!=null?k:0;if(a.value){const P=(x=(C=p.value)==null?void 0:C.findIndex(M=>M.key===a.value))!=null?x:0;return y==="next"?(E=p.value)==null?void 0:E[(D+P+1)%D]:(_=p.value)==null?void 0:_[(D+P-1)%D]}return(T=p.value)==null?void 0:T[0]}}},HMe=we({name:"Cascader",components:{Trigger:va,SelectView:G8,BaseCascaderPanel:Kpe,CascaderSearchPanel:UMe},inheritAttrs:!1,props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{type:String},allowSearch:{type:Boolean,default:e=>!!e.multiple},allowClear:{type:Boolean,default:!1},inputValue:{type:String,default:void 0},defaultInputValue:{type:String,default:""},popupVisible:{type:Boolean,default:void 0},expandTrigger:{type:String,default:"click"},defaultPopupVisible:{type:Boolean,default:!1},placeholder:String,filterOption:{type:Function},popupContainer:{type:[String,Object]},maxTagCount:{type:Number,default:0},formatLabel:{type:Function},triggerProps:{type:Object},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{type:Number,default:500},fieldNames:{type:Object},valueKey:{type:String,default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},virtualListProps:{type:Object},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,clear:()=>!0,search:e=>!0,popupVisibleChange:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:i,loadMore:a,formatLabel:s,modelValue:l,disabled:c,valueKey:d,expandTrigger:h,expandChild:p,pathMode:v,multiple:g}=tn(e),y=ue(e.defaultValue),S=ue(e.defaultInputValue),k=ue(e.defaultPopupVisible),{mergedDisabled:C,eventHandlers:x}=Do({disabled:c});It(l,ft=>{(xn(ft)||Al(ft))&&(y.value=e.multiple?[]:void 0)});const E=ue([]),_=ue(1),T=qt(new Map),D=qt(new Map),P=qt(new Map),M=qt(new Set),O=qt({}),L=(ft,ct)=>{O[ct]=ft},B={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},j=F(()=>({...B,...e.fieldNames}));It([r,O,j],([ft,ct,wt])=>{T.clear(),D.clear(),P.clear(),M.clear(),E.value=Upe(ft??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:O,optionMap:T,leafOptionSet:M,leafOptionMap:D,leafOptionValueMap:P,totalLevel:_,checkStrictly:i,valueKey:d,fieldNames:wt})},{immediate:!0,deep:!0});const H=F(()=>{var ft;const ct=Wpe((ft=e.modelValue)!=null?ft:y.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(ct.map(wt=>[Hpe(wt,{valueKey:e.valueKey,leafOptionValueMap:P}),wt]))}),U=F(()=>{var ft;return(ft=e.inputValue)!=null?ft:S.value}),K=F(()=>{var ft;return(ft=e.popupVisible)!=null?ft:k.value}),Y=ft=>{var ct;return ft?.toLocaleLowerCase().includes((ct=U.value)==null?void 0:ct.toLocaleLowerCase())},ie=F(()=>(e.checkStrictly?Array.from(T.values()):Array.from(M)).filter(ct=>{var wt;return Sn(e.filterOption)?e.filterOption(U.value,ct.raw):e.checkStrictly?Y(ct.label):(wt=ct.path)==null?void 0:wt.find(Ct=>Y(Ct.label))})),te=ft=>{var ct,wt,Ct;const Rt=e.multiple?ft:(ct=ft[0])!=null?ct:"";ft.length===0&&(Oe(),me()),y.value=Rt,t("update:modelValue",Rt),t("change",Rt),(Ct=(wt=x.value)==null?void 0:wt.onChange)==null||Ct.call(wt)};It([g,v],()=>{const ft=[];H.value.forEach((ct,wt)=>{const Ct=D.get(wt);Ct&&ft.push(v.value?Ct.pathValue:Ct.value)}),te(ft)});const W=ft=>{K.value!==ft&&(k.value=ft,t("popupVisibleChange",ft))},q=ft=>{if(e.multiple){const ct=D.get(ft);if(ct)se(ct,!1);else{const wt=[];H.value.forEach((Ct,Rt)=>{Rt!==ft&&wt.push(Ct)}),te(wt)}}},Q=ft=>{te([e.pathMode?ft.pathValue:ft.value]),W(!1)},se=(ft,ct)=>{if(ct){const wt=e.checkStrictly?[ft]:xH(ft);te([...H.value.values(),...wt.filter(Ct=>!H.value.has(Ct.key)).map(Ct=>e.pathMode?Ct.pathValue:Ct.value)])}else{const wt=e.checkStrictly?[ft.key]:kH(ft),Ct=[];H.value.forEach((Rt,Ht)=>{wt.includes(Ht)||Ct.push(Rt)}),te(Ct)}Ce("","optionChecked")},ae=(ft,ct)=>{e.multiple?se(ft,ct??!0):Q(ft)},re=o_(ft=>{t("search",ft)},e.searchDelay),Ce=(ft,ct)=>{ft!==U.value&&(ct==="manual"&&!K.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=ft,t("inputValueChange",ft),e.allowSearch&&re(ft))};It(K,ft=>{if(ft){if(H.value.size>0){const ct=Array.from(H.value.keys()),wt=ct[ct.length-1],Ct=D.get(wt);Ct&&Ct.key!==tt.value&&(Oe(Ct.key),me(Ct.key))}}else H.value.size===0&&(Oe(),me()),Ce("","optionListHide")});const Ve=ft=>{if(ft.stopPropagation(),e.multiple){const ct=[];H.value.forEach((wt,Ct)=>{const Rt=D.get(Ct);Rt?.disabled&&ct.push(e.pathMode?Rt.pathValue:Rt.value)}),te(ct)}else te([]);Ce("","manual"),t("clear")},ge=F(()=>e.allowSearch&&U.value.length>0),xe=ft=>{t("focus",ft)},Ge=ft=>{t("blur",ft)},{activeKey:tt,activeOption:Ue,selectedPath:_e,displayColumns:ve,setActiveKey:me,setSelectedPath:Oe,getNextActiveNode:qe}=qpe(E,{optionMap:T,filteredLeafOptions:ie,showSearchPanel:ge,expandChild:p});ri(CH,qt({onClickOption:ae,setActiveKey:me,setSelectedPath:Oe,loadMore:a,expandTrigger:h,addLazyLoadOptions:L,formatLabel:s,slots:n,valueMap:H}));const Ke=V5(new Map([[Ho.ENTER,ft=>{if(K.value){if(Ue.value){let ct;e.checkStrictly||Ue.value.isLeaf?ct=!H.value.has(Ue.value.key):ct=!SH(Ue.value,H.value).checked,Oe(Ue.value.key),ae(Ue.value,ct)}}else W(!0)}],[Ho.ESC,ft=>{W(!1)}],[Ho.ARROW_DOWN,ft=>{ft.preventDefault();const ct=qe("next");me(ct?.key)}],[Ho.ARROW_UP,ft=>{ft.preventDefault();const ct=qe("preview");me(ct?.key)}],[Ho.ARROW_RIGHT,ft=>{var ct,wt;ge.value||(ft.preventDefault(),(ct=Ue.value)!=null&&ct.children&&(Oe(Ue.value.key),me((wt=Ue.value.children[0])==null?void 0:wt.key)))}],[Ho.ARROW_LEFT,ft=>{var ct;ge.value||(ft.preventDefault(),(ct=Ue.value)!=null&&ct.parent&&(Oe(Ue.value.parent.key),me(Ue.value.parent.key)))}]])),at=F(()=>{const ft=[];return H.value.forEach((ct,wt)=>{var Ct,Rt;const Ht=D.get(wt);if(Ht)ft.push({value:wt,label:(Rt=(Ct=e.formatLabel)==null?void 0:Ct.call(e,Ht.path.map(Jt=>Jt.raw)))!=null?Rt:Gpe(Ht),closable:!Ht.disabled,tagProps:Ht.tagProps});else if(e.fallback){const Jt=Sn(e.fallback)?e.fallback(ct):nr(ct)?ct.join(" / "):String(ct);ft.push({value:wt,label:Jt,closable:!0})}}),ft});return{optionInfos:E,filteredLeafOptions:ie,selectedPath:_e,activeKey:tt,displayColumns:ve,computedInputValue:U,computedPopupVisible:K,handleClear:Ve,selectViewValue:at,handleInputValueChange:Ce,showSearchPanel:ge,handlePopupVisibleChange:W,handleFocus:xe,handleBlur:Ge,handleRemove:q,mergedDisabled:C,handleKeyDown:Ke,totalLevel:_}}});function WMe(e,t,n,r,i,a){const s=Te("select-view"),l=Te("cascader-search-panel"),c=Te("base-cascader-panel"),d=Te("trigger");return z(),Ze(d,Ft(e.triggerProps,{trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","popup-visible":e.computedPopupVisible,position:"bl",disabled:e.mergedDisabled,"popup-offset":4,"auto-fit-popup-width":e.showSearchPanel,"popup-container":e.popupContainer,"prevent-focus":!0,"click-to-close":!e.allowSearch,onPopupVisibleChange:e.handlePopupVisibleChange}),{content:fe(()=>[e.showSearchPanel?(z(),Ze(l,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},yo({_:2},[e.$slots.empty?{name:"empty",fn:fe(()=>[mt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(z(),Ze(c,{key:1,"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,loading:e.loading,"virtual-list-props":e.virtualListProps,dropdown:""},yo({_:2},[e.$slots.empty?{name:"empty",fn:fe(()=>[mt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","loading","virtual-list-props"]))]),default:fe(()=>[$(s,Ft({"model-value":e.selectViewValue,"input-value":e.computedInputValue,disabled:e.mergedDisabled,error:e.error,multiple:e.multiple,"allow-clear":e.allowClear,"allow-search":e.allowSearch,size:e.size,opened:e.computedPopupVisible,placeholder:e.placeholder,loading:e.loading,"max-tag-count":e.maxTagCount,"tag-nowrap":e.tagNowrap},e.$attrs,{onInputValueChange:e.handleInputValueChange,onClear:e.handleClear,onFocus:e.handleFocus,onBlur:e.handleBlur,onRemove:e.handleRemove,onKeydown:e.handleKeyDown}),yo({_:2},[e.$slots.label?{name:"label",fn:fe(h=>[mt(e.$slots,"label",qi(xa(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:fe(()=>[mt(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:fe(()=>[mt(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:fe(()=>[mt(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:fe(()=>[mt(e.$slots,"search-icon")]),key:"4"}:void 0]),1040,["model-value","input-value","disabled","error","multiple","allow-clear","allow-search","size","opened","placeholder","loading","max-tag-count","tag-nowrap","onInputValueChange","onClear","onFocus","onBlur","onRemove","onKeydown"])]),_:3},16,["popup-visible","disabled","auto-fit-popup-width","popup-container","click-to-close","onPopupVisibleChange"])}var lR=ze(HMe,[["render",WMe]]);const GMe=we({name:"CascaderPanel",components:{BaseCascaderPanel:Kpe},props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},fieldNames:{type:Object},valueKey:{type:String,default:"value"},expandChild:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:i,loadMore:a,modelValue:s,valueKey:l,expandChild:c,expandTrigger:d}=tn(e),h=ue(e.defaultValue);It(s,W=>{(xn(W)||Al(W))&&(h.value=e.multiple?[]:void 0)});const p=ue([]),v=ue(1),g=qt(new Map),y=qt(new Map),S=qt(new Map),k=qt(new Set),C=qt({}),x=(W,q)=>{C[q]=W},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=F(()=>({...E,...e.fieldNames}));It([r,C,_],([W,q,Q])=>{g.clear(),y.clear(),S.clear(),k.clear(),p.value=Upe(W??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:q,optionMap:g,leafOptionSet:k,leafOptionMap:y,leafOptionValueMap:S,totalLevel:v,checkStrictly:i,fieldNames:Q,valueKey:l})},{immediate:!0});const T=F(()=>{var W;const q=Wpe((W=e.modelValue)!=null?W:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(q.map(Q=>[Hpe(Q,{valueKey:e.valueKey,leafOptionValueMap:S}),Q]))}),D=F(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),P=W=>{var q;const Q=e.multiple?W:(q=W[0])!=null?q:"";W.length===0&&(Y(),K()),h.value=Q,t("update:modelValue",Q),t("change",Q)},M=W=>{P([e.pathMode?W.pathValue:W.value])},O=(W,q)=>{if(q){const Q=e.checkStrictly?[W]:xH(W);P([...T.value.values(),...Q.filter(se=>!T.value.has(se.key)).map(se=>e.pathMode?se.pathValue:se.value)])}else{const Q=e.checkStrictly?[W.key]:kH(W),se=[];T.value.forEach((ae,re)=>{Q.includes(re)||se.push(ae)}),P(se)}},L=(W,q)=>{e.multiple?O(W,q??!0):M(W)},{activeKey:B,activeOption:j,selectedPath:H,displayColumns:U,setActiveKey:K,setSelectedPath:Y,getNextActiveNode:ie}=qpe(p,{optionMap:g,filteredLeafOptions:D,expandChild:c});ri(CH,qt({onClickOption:L,setActiveKey:K,setSelectedPath:Y,loadMore:a,addLazyLoadOptions:x,slots:n,valueMap:T,expandTrigger:d}));const te=V5(new Map([[Ho.ENTER,W=>{if(j.value){let q;e.checkStrictly||j.value.isLeaf?q=!T.value.has(j.value.key):q=!SH(j.value,T.value).checked,Y(j.value.key),L(j.value,q)}}],[Ho.ARROW_DOWN,W=>{W.preventDefault();const q=ie("next");K(q?.key)}],[Ho.ARROW_UP,W=>{W.preventDefault();const q=ie("preview");K(q?.key)}],[Ho.ARROW_RIGHT,W=>{var q,Q;W.preventDefault(),(q=j.value)!=null&&q.children&&(Y(j.value.key),K((Q=j.value.children[0])==null?void 0:Q.key))}],[Ho.ARROW_LEFT,W=>{var q;W.preventDefault(),(q=j.value)!=null&&q.parent&&(Y(j.value.parent.key),K(j.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:D,selectedPath:H,activeKey:B,displayColumns:U,handleKeyDown:te,totalLevel:v}}});function KMe(e,t,n,r,i,a){const s=Te("base-cascader-panel");return z(),Ze(s,{"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,onKeydown:e.handleKeyDown},yo({_:2},[e.$slots.empty?{name:"empty",fn:fe(()=>[mt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var Ew=ze(GMe,[["render",KMe]]);const qMe=Object.assign(lR,{CascaderPanel:Ew,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+lR.name,lR),e.component(n+Ew.name,Ew)}}),Ype=Symbol("collapseCtx"),YMe=we({name:"Collapse",props:{activeKey:{type:Array,default:void 0},defaultActiveKey:{type:Array,default:()=>[]},accordion:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:void 0},expandIconPosition:{type:String,default:"left"},bordered:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},emits:{"update:activeKey":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{expandIconPosition:r,destroyOnHide:i,showExpandIcon:a}=tn(e),s=Re("collapse"),l=ue(e.defaultActiveKey),c=F(()=>{var p;const v=(p=e.activeKey)!=null?p:l.value;return nr(v)?v:[v]});ri(Ype,qt({activeKeys:c,slots:n,showExpandIcon:a,expandIconPosition:r,destroyOnHide:i,handleClick:(p,v)=>{let g=[];if(e.accordion)c.value.includes(p)||(g=[p]),l.value=g;else{g=[...c.value];const y=g.indexOf(p);y>-1?g.splice(y,1):e.accordion?g=[p]:g.push(p),l.value=g}t("update:activeKey",g),t("change",g,v)}}));const h=F(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function XMe(e,t,n,r,i,a){return z(),X("div",{class:de(e.cls)},[mt(e.$slots,"default")],2)}var uR=ze(YMe,[["render",XMe]]);const ZMe=we({name:"IconCaretRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),JMe=["stroke-width","stroke-linecap","stroke-linejoin"];function QMe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.829 23.063c.6.48.6 1.394 0 1.874L17.949 38.44c-.785.629-1.949.07-1.949-.937V10.497c0-1.007 1.164-1.566 1.95-.937l16.879 13.503Z",fill:"currentColor",stroke:"none"},null,-1)]),14,JMe)}var cR=ze(ZMe,[["render",QMe]]);const wH=Object.assign(cR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cR.name,cR)}}),e9e=we({name:"IconCaretLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),t9e=["stroke-width","stroke-linecap","stroke-linejoin"];function n9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z",fill:"currentColor",stroke:"none"},null,-1)]),14,t9e)}var dR=ze(e9e,[["render",n9e]]);const EH=Object.assign(dR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dR.name,dR)}});var Tw=we({name:"CollapseItem",components:{IconHover:Lo,IconCaretRight:wH,IconCaretLeft:EH},props:{header:String,disabled:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const r=So(),i=Re("collapse-item"),a=Pn(Ype,{}),s=r&&et(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=F(()=>{var _;return(_=a.activeKeys)==null?void 0:_.includes(s)}),c=F(()=>a.destroyOnHide||e.destroyOnHide),d=F(()=>{var _;return(_=a?.showExpandIcon)!=null?_:e.showExpandIcon}),h=ue(c.value?l.value:!0),p=F(()=>{var _;return(_=a?.expandIconPosition)!=null?_:"left"}),v=_=>{var T;e.disabled||(T=a.handleClick)==null||T.call(a,s,_)};It(l,_=>{_&&!h.value&&(h.value=!0)});const g={onEnter:_=>{_.style.height=`${_.scrollHeight}px`},onAfterEnter:_=>{_.style.height="auto"},onBeforeLeave:_=>{_.style.height=`${_.scrollHeight}px`},onLeave:_=>{_.style.height="0"},onAfterLeave:()=>{c.value&&(h.value=!1)}},y=F(()=>[i,{[`${i}-active`]:l.value}]),S=F(()=>[`${i}-header`,`${i}-header-${a?.expandIconPosition}`,{[`${i}-header-disabled`]:e.disabled}]),k=F(()=>[{[`${i}-icon-right`]:a?.expandIconPosition==="right"}]),C=F(()=>[`${i}-content`,{[`${i}-content-expend`]:l.value}]),x=()=>p.value==="right"?$(Te("icon-caret-left"),{class:`${i}-expand-icon`},null):$(Te("icon-caret-right"),{class:`${i}-expand-icon`},null),E=()=>d.value&&$(Te("icon-hover"),{prefix:i,class:k.value,disabled:e.disabled},{default:()=>{var _,T,D,P;return[(P=(D=(T=t["expand-icon"])!=null?T:(_=a?.slots)==null?void 0:_["expand-icon"])==null?void 0:D({active:l.value,disabled:e.disabled,position:p.value}))!=null?P:x()]}});return()=>{var _,T,D;return $("div",{class:y.value},[$("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:S.value,onClick:v},[E(),$("div",{class:`${i}-header-title`},[(T=(_=t.header)==null?void 0:_.call(t))!=null?T:e.header]),t.extra&&$("div",{class:`${i}-header-extra`},[(D=t.extra)==null?void 0:D.call(t)])]),$(Cs,Ft({name:"collapse-slider"},g),{default:()=>{var P;return[Ai($("div",{role:"region",class:C.value},[h.value&&$("div",{ref:"contentBoxRef",class:`${i}-content-box`},[(P=t.default)==null?void 0:P.call(t)])]),[[es,l.value]])]}})])}}});const r9e=Object.assign(uR,{Item:Tw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+uR.name,uR),e.component(n+Tw.name,Tw)}}),i9e=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Xpe=(e,t,n)=>{const r=Math.floor(e*6),i=e*6-r,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=r%6,d=[n,s,a,a,l,n][c],h=[l,n,n,s,a,a][c],p=[a,a,l,n,n,s][c];return{r:Math.round(d*255),g:Math.round(h*255),b:Math.round(p*255)}},H5=(e,t,n)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),i=Math.min(e,t,n);let a=0;const s=r,l=r-i,c=r===0?0:l/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/l+(tparseInt(e,16),Cre=e=>aa(e)/255,u9e=e=>{let t=Zp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=Zp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=Zp.hex8.exec(e),t?{r:aa(t[1]),g:aa(t[2]),b:aa(t[3]),a:Cre(t[4])}:(t=Zp.hex6.exec(e),t?{r:aa(t[1]),g:aa(t[2]),b:aa(t[3])}:(t=Zp.hex4.exec(e),t?{r:aa(t[1]+t[1]),g:aa(t[2]+t[2]),b:aa(t[3]+t[3]),a:Cre(t[4]+t[4])}:(t=Zp.hex3.exec(e),t?{r:aa(t[1]+t[1]),g:aa(t[2]+t[2]),b:aa(t[3]+t[3])}:!1)))))},c9e=e=>{var t;const n=u9e(e);return n?{...H5(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Zpe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=Zp.hex6.exec(e);return t?{r:aa(t[1]),g:aa(t[2]),b:aa(t[3])}:(t=Zp.hex3.exec(e),t?{r:aa(t[1]+t[1]),g:aa(t[2]+t[2]),b:aa(t[3]+t[3])}:!1)},wre=(e,t,n)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0")].join("").toUpperCase(),d9e=(e,t,n,r)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0"),Math.round(r*255).toString(16).padStart(2,"0")].join("").toUpperCase(),Jpe=({value:e,onChange:t})=>{const n=ue(!1),r=ue(),i=ue(),a=(h,p)=>h<0?0:h>p?1:h/p,s=h=>{if(!r.value)return;const{clientX:p,clientY:v}=h,g=r.value.getBoundingClientRect(),y=[a(p-g.x,g.width),a(v-g.y,g.height)];(y[0]!==e[0]||y[1]!==e[1])&&t?.(y)},l=()=>{n.value=!1,window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",l),window.removeEventListener("contextmenu",l)},c=h=>{n.value=!0,s(h),window.addEventListener("mousemove",d),window.addEventListener("mouseup",l),window.addEventListener("contextmenu",l)};function d(h){h.preventDefault(),h.buttons>0?s(h):l()}return{active:n,blockRef:r,handlerRef:i,onMouseDown:c}};var Ere=we({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=Re("color-picker"),n=F(()=>e.color.rgb),{blockRef:r,handlerRef:i,onMouseDown:a}=Jpe({value:[e.x,0],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0])}}),s=()=>$("div",{ref:i,class:`${t}-handler`,style:{left:`${e.x*100}%`,color:e.colorString}},null);return()=>e.type==="alpha"?$("div",{class:`${t}-control-bar-bg`},[$("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-alpha`],style:{background:`linear-gradient(to right, rgba(0, 0, 0, 0), rgb(${n.value.r}, ${n.value.g}, ${n.value.b}))`},onMousedown:a},[s()])]):$("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-hue`],onMousedown:a},[s()])}}),f9e=we({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Re("color-picker"),n=F(()=>e.color.hsv),{blockRef:r,handlerRef:i,onMouseDown:a}=Jpe({value:[n.value.s,1-n.value.v],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0],1-l[1])}}),s=F(()=>{const l=Xpe(n.value.h,1,1);return`rgb(${l.r}, ${l.g}, ${l.b})`});return()=>$("div",{ref:r,class:`${t}-palette`,style:{backgroundColor:s.value},onMousedown:a},[$("div",{ref:i,class:`${t}-handler`,style:{top:`${(1-n.value.v)*100}%`,left:`${n.value.s*100}%`}},null)])}});function TH(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function xf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function a_(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=xf(e);return t>0?TH(Number(e)*Math.pow(10,t)):Number(e)}function nV(e){e0e&&(e>Number.MAX_SAFE_INTEGER||e["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),y9e=["stroke-width","stroke-linecap","stroke-linejoin"];function b9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38M24 5v38"},null,-1)]),14,y9e)}var fR=ze(g9e,[["render",b9e]]);const Cf=Object.assign(fR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fR.name,fR)}}),_9e=we({name:"IconMinus",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),S9e=["stroke-width","stroke-linecap","stroke-linejoin"];function k9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38"},null,-1)]),14,S9e)}var hR=ze(_9e,[["render",k9e]]);const $m=Object.assign(hR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hR.name,hR)}}),x9e=800,C9e=150;Yl.enableBoundaryChecking(!1);var pR=we({name:"InputNumber",props:{modelValue:Number,defaultValue:Number,mode:{type:String,default:"embed"},precision:Number,step:{type:Number,default:1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},formatter:{type:Function},parser:{type:Function},placeholder:String,hideButton:{type:Boolean,default:!1},size:{type:String},allowClear:{type:Boolean,default:!1},modelEvent:{type:String,default:"change"},readOnly:{type:Boolean,default:!1},inputAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0,clear:e=>!0,input:(e,t,n)=>!0,keydown:e=>!0},setup(e,{emit:t,slots:n}){var r;const{size:i,disabled:a}=tn(e),s=Re("input-number"),l=ue(),{mergedSize:c,mergedDisabled:d,eventHandlers:h}=Do({size:i,disabled:a}),{mergedSize:p}=Aa(c),v=F(()=>{if(et(e.precision)){const Q=`${e.step}`.split(".")[1],se=Q&&Q.length||0;return Math.max(se,e.precision)}}),g=Q=>{var se,ae;if(!et(Q))return"";const re=v.value?Q.toFixed(v.value):String(Q);return(ae=(se=e.formatter)==null?void 0:se.call(e,re))!=null?ae:re},y=ue(g((r=e.modelValue)!=null?r:e.defaultValue)),S=F(()=>{var Q,se;if(!y.value)return;const ae=Number((se=(Q=e.parser)==null?void 0:Q.call(e,y.value))!=null?se:y.value);return Number.isNaN(ae)?void 0:ae}),k=ue(et(S.value)&&S.value<=e.min),C=ue(et(S.value)&&S.value>=e.max);let x=0;const E=()=>{x&&(window.clearTimeout(x),x=0)},_=Q=>{if(!xn(Q))return et(e.min)&&Qe.max&&(Q=e.max),et(v.value)?Yl.round(Q,v.value):Q},T=Q=>{let se=!1,ae=!1;et(Q)&&(Q<=e.min&&(se=!0),Q>=e.max&&(ae=!0)),C.value!==ae&&(C.value=ae),k.value!==se&&(k.value=se)},D=()=>{const Q=_(S.value),se=g(Q);(Q!==S.value||y.value!==se)&&(y.value=se),t("update:modelValue",Q)};It(()=>[e.max,e.min],()=>{D(),T(S.value)});const P=(Q,se)=>{if(d.value||Q==="plus"&&C.value||Q==="minus"&&k.value)return;let ae;et(S.value)?ae=_(Yl[Q](S.value,e.step)):ae=e.min===-1/0?0:e.min,y.value=g(ae),T(ae),t("update:modelValue",ae),t("change",ae,se)},M=(Q,se,ae=!1)=>{var re;Q.preventDefault(),!e.readOnly&&((re=l.value)==null||re.focus(),P(se,Q),ae&&(x=window.setTimeout(()=>Q.target.dispatchEvent(Q),x?C9e:x9e)))},O=(Q,se)=>{var ae,re,Ce,Ve;Q=Q.trim().replace(/。/g,"."),Q=(re=(ae=e.parser)==null?void 0:ae.call(e,Q))!=null?re:Q,(et(Number(Q))||/^(\.|-)$/.test(Q))&&(y.value=(Ve=(Ce=e.formatter)==null?void 0:Ce.call(e,Q))!=null?Ve:Q,T(S.value),t("input",S.value,y.value,se),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,se)))},L=Q=>{t("focus",Q)},B=(Q,se)=>{se instanceof MouseEvent&&!Q||(D(),t("change",S.value,se))},j=Q=>{t("blur",Q)},H=Q=>{var se,ae;y.value="",t("update:modelValue",void 0),t("change",void 0,Q),(ae=(se=h.value)==null?void 0:se.onChange)==null||ae.call(se,Q),t("clear",Q)},U=V5(new Map([[Ho.ARROW_UP,Q=>{Q.preventDefault(),!e.readOnly&&P("plus",Q)}],[Ho.ARROW_DOWN,Q=>{Q.preventDefault(),!e.readOnly&&P("minus",Q)}]])),K=Q=>{t("keydown",Q),Q.defaultPrevented||U(Q)};It(()=>e.modelValue,Q=>{Q!==S.value&&(y.value=g(Q),T(Q))});const Y=()=>{var Q,se,ae;return e.readOnly?null:$(Pt,null,[n.suffix&&$("div",{class:`${s}-suffix`},[(Q=n.suffix)==null?void 0:Q.call(n)]),$("div",{class:`${s}-step`},[$("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||C.value}],type:"button",tabindex:"-1",disabled:d.value||C.value,onMousedown:re=>M(re,"plus",!0),onMouseup:E,onMouseleave:E},[n.plus?(se=n.plus)==null?void 0:se.call(n):$(tS,null,null)]),$("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||k.value}],type:"button",tabindex:"-1",disabled:d.value||k.value,onMousedown:re=>M(re,"minus",!0),onMouseup:E,onMouseleave:E},[n.minus?(ae=n.minus)==null?void 0:ae.call(n):$(Zh,null,null)])])])},ie=F(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),te=()=>$(Xo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||k.value,onMousedown:Q=>M(Q,"minus",!0),onMouseup:E,onMouseleave:E},{icon:()=>$($m,null,null)}),W=()=>$(Xo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||C.value,onMousedown:Q=>M(Q,"plus",!0),onMouseup:E,onMouseleave:E},{icon:()=>$(Cf,null,null)});return{inputRef:l,render:()=>{const Q=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:Y,append:n.append}:{prepend:e.hideButton?n.prepend:te,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:W};return $(F0,{key:`__arco__${e.mode}`,ref:l,class:ie.value,type:"text",allowClear:e.allowClear,size:p.value,modelValue:y.value,placeholder:e.placeholder,disabled:d.value,readonly:e.readOnly,error:e.error,inputAttrs:{role:"spinbutton","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":y.value,...e.inputAttrs},onInput:O,onFocus:L,onBlur:j,onClear:H,onChange:B,onKeydown:K},Q)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const rS=Object.assign(pR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+pR.name,pR)}});var t0e=we({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Re("color-picker");return()=>$(rS,{class:`${t}-input-alpha`,size:"mini",min:0,max:100,disabled:e.disabled,modelValue:Math.round(e.value*100),onChange:(n=100)=>{var r;return(r=e.onChange)==null?void 0:r.call(e,n/100)}},{suffix:()=>"%"})}}),w9e=we({name:"InputRgb",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Re("color-picker"),{color:n}=tn(e),r=i=>{var a;const s={...n.value.rgb,...i},l=H5(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>$(ly,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(i=>$(rS,{key:i,size:"mini",min:0,max:255,disabled:e.disabled,modelValue:n.value.rgb[i],hideButton:!0,onChange:(a=0)=>r({[i]:a})},null)),!e.disabledAlpha&&$(t0e,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),E9e=we({name:"InputHex",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Re("color-picker"),{color:n}=tn(e),[r,i]=Ya(n.value.hex),a=c=>{var d;const h=Zpe(c)||{r:255,g:0,b:0},p=H5(h.r,h.g,h.b);(d=e.onHsvChange)==null||d.call(e,p)},s=c=>{var d,h;const p=(h=(d=c.match(/[a-fA-F0-9]*/g))==null?void 0:d.join(""))!=null?h:"";p!==n.value.hex&&a(p.toUpperCase())},l=c=>{if(!c.clipboardData)return;let d=c.clipboardData.getData("Text");d.startsWith("#")&&(d=d.slice(1)),s(d),c.preventDefault()};return It(n,()=>{n.value.hex!==r.value&&i(n.value.hex)}),()=>$(ly,{class:`${t}-input-group`},{default:()=>[$(F0,{class:`${t}-input-hex`,size:"mini",maxLength:6,disabled:e.disabled,modelValue:r.value,onInput:i,onChange:s,onBlur:()=>a,onPressEnter:()=>a,onPaste:l},{prefix:()=>"#"}),!e.disabledAlpha&&$(t0e,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),T9e=we({name:"Panel",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},colorString:String,disabled:Boolean,disabledAlpha:Boolean,showHistory:Boolean,showPreset:Boolean,format:String,historyColors:Array,presetColors:Array,onAlphaChange:Function,onHsvChange:Function},setup(e){const{t}=No(),n=Re("color-picker"),r=F(()=>e.color.hsv),[i,a]=Ya(e.format||"hex"),s=v=>{a(v)};ue(!1);const l=v=>{var g;const y=Zpe(v)||{r:255,g:0,b:0},S=H5(y.r,y.g,y.b);(g=e.onHsvChange)==null||g.call(e,S)},c=()=>{const v={color:e.color,alpha:e.alpha,disabled:e.disabled,disabledAlpha:e.disabledAlpha,onHsvChange:e.onHsvChange,onAlphaChange:e.onAlphaChange};return i.value==="rgb"?$(w9e,v,null):$(E9e,v,null)},d=v=>$("div",{key:v,class:`${n}-color-block`,style:{backgroundColor:v},onClick:()=>l(v)},[$("div",{class:`${n}-block`,style:{backgroundColor:v}},null)]),h=(v,g)=>$("div",{class:`${n}-colors-section`},[$("div",{class:`${n}-colors-text`},[v]),$("div",{class:`${n}-colors-wrapper`},[g?.length?$("div",{class:`${n}-colors-list`},[g.map(d)]):$("span",{class:`${n}-colors-empty`},[t("colorPicker.empty")])])]),p=()=>e.showHistory||e.showPreset?$("div",{class:`${n}-panel-colors`},[e.showHistory&&h(t("colorPicker.history"),e.historyColors),e.showPreset&&h(t("colorPicker.preset"),e.presetColors)]):null;return()=>$("div",{class:{[`${n}-panel`]:!0,[`${n}-panel-disabled`]:e.disabled}},[$(f9e,{color:e.color,onChange:(v,g)=>{var y;return(y=e.onHsvChange)==null?void 0:y.call(e,{h:r.value.h,s:v,v:g})}},null),$("div",{class:`${n}-panel-control`},[$("div",{class:`${n}-control-wrapper`},[$("div",null,[$(Ere,{type:"hue",x:r.value.h,color:e.color,colorString:e.colorString,onChange:v=>{var g;return(g=e.onHsvChange)==null?void 0:g.call(e,{h:v,s:r.value.s,v:r.value.v})}},null),!e.disabledAlpha&&$(Ere,{type:"alpha",x:e.alpha,color:e.color,colorString:e.colorString,onChange:e.onAlphaChange},null)]),$("div",{class:`${n}-preview`,style:{backgroundColor:e.colorString}},null)]),$("div",{class:`${n}-input-wrapper`},[$(s_,{class:`${n}-select`,size:"mini","trigger-props":{class:`${n}-select-popup`},options:[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"}],modelValue:i.value,onChange:s},null),$("div",{class:`${n}-group-wrapper`},[c()])])]),p()])}}),vR=we({name:"ColorPicker",props:{modelValue:String,defaultValue:{type:String},format:{type:String},size:{type:String,default:"medium"},showText:{type:Boolean,default:!1},showHistory:{type:Boolean,default:!1},showPreset:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledAlpha:{type:Boolean,default:!1},hideTrigger:{type:Boolean},triggerProps:{type:Object},historyColors:{type:Array},presetColors:{type:Array,default:()=>i9e}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Re("color-picker"),i=F(()=>{var x;return(x=e.modelValue)!=null?x:e.defaultValue}),a=F(()=>c9e(i.value||"")),[s,l]=Ya(a.value.a),[c,d]=Ya({h:a.value.h,s:a.value.s,v:a.value.v});It(()=>a.value,x=>{i.value!==v.value&&(l(x.a),d({h:x.h,s:x.s,v:x.v}))});const h=F(()=>{const x=Xpe(c.value.h,c.value.s,c.value.v),E=wre(x.r,x.g,x.b);return{hsv:c.value,rgb:x,hex:E}}),p=F(()=>{const{r:x,g:E,b:_}=h.value.rgb;return`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`}),v=F(()=>{const{r:x,g:E,b:_}=h.value.rgb;return e.format==="rgb"?s.value<1&&!e.disabledAlpha?`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`:`rgb(${x}, ${E}, ${_})`:s.value<1&&!e.disabledAlpha?`#${d9e(x,E,_,s.value)}`:`#${wre(x,E,_)}`});It(v,x=>{t("update:modelValue",x),t("change",x)});const g=x=>{!e.disabled&&d(x)},y=x=>{!e.disabled&&l(x)},S=x=>{t("popup-visible-change",x,v.value)},k=()=>$("div",{class:{[r]:!0,[`${r}-size-${e.size}`]:e.size,[`${r}-disabled`]:e.disabled}},[$("div",{class:`${r}-preview`,style:{backgroundColor:v.value}},null),e.showText&&$("div",{class:`${r}-value`},[v.value]),$("input",{class:`${r}-input`,value:v.value,disabled:e.disabled},null)]),C=()=>$(T9e,{color:h.value,alpha:s.value,colorString:p.value,historyColors:e.historyColors,presetColors:e.presetColors,showHistory:e.showHistory,showPreset:e.showPreset,disabled:e.disabled,disabledAlpha:e.disabledAlpha,format:e.format,onHsvChange:g,onAlphaChange:y},null);return()=>e.hideTrigger?C():$(va,Ft({trigger:"click",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,disabled:e.disabled,onPopupVisibleChange:S},e.triggerProps),{default:()=>[n.default?n.default():k()],content:C})}});const A9e=Object.assign(vR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+vR.name,vR)}});function n0e(e,t,n){return F(()=>!!(e[n]||t[n]))}const I9e=we({name:"Comment",props:{author:{type:String},avatar:{type:String},content:{type:String},datetime:{type:String},align:{type:[String,Object],default:"left"}},setup(e,{slots:t}){const n=Re("comment"),[r,i,a,s]=["author","avatar","content","datetime"].map(c=>n0e(e,t,c)),l=F(()=>{const{align:c}=e;return{...ds(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:i,hasContent:a,hasDatetime:s,computedAlign:l}}}),L9e=["src"],D9e={key:0},P9e={key:0},R9e={key:0};function M9e(e,t,n,r,i,a){return z(),X("div",{class:de(e.prefixCls)},[e.hasAvatar?(z(),X("div",{key:0,class:de(`${e.prefixCls}-avatar`)},[e.avatar?(z(),X("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,L9e)):mt(e.$slots,"avatar",{key:1})],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-inner`)},[I("div",{class:de(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(z(),X("span",{key:0,class:de(`${e.prefixCls}-author`)},[e.author?(z(),X("span",D9e,Ne(e.author),1)):mt(e.$slots,"author",{key:1})],2)):Ie("v-if",!0),e.hasDatetime?(z(),X("span",{key:1,class:de(`${e.prefixCls}-datetime`)},[e.datetime?(z(),X("span",P9e,Ne(e.datetime),1)):mt(e.$slots,"datetime",{key:1})],2)):Ie("v-if",!0)],2)):Ie("v-if",!0),e.hasContent?(z(),X("div",{key:1,class:de(`${e.prefixCls}-content`)},[e.content?(z(),X("span",R9e,Ne(e.content),1)):mt(e.$slots,"content",{key:1})],2)):Ie("v-if",!0),e.$slots.actions?(z(),X("div",{key:2,class:de(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[mt(e.$slots,"actions")],2)):Ie("v-if",!0)],2),e.$slots.default?(z(),X("div",{key:0,class:de(`${e.prefixCls}-inner-comment`)},[mt(e.$slots,"default")],2)):Ie("v-if",!0)],2)],2)}var mR=ze(I9e,[["render",M9e]]);const $9e=Object.assign(mR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+mR.name,mR)}}),O9e=we({name:"ConfigProvider",props:{prefixCls:{type:String,default:"arco"},locale:{type:Object},size:{type:String},global:{type:Boolean,default:!1},updateAtScroll:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},exchangeTime:{type:Boolean,default:!0}},setup(e,{slots:t}){const{prefixCls:n,locale:r,size:i,updateAtScroll:a,scrollToClose:s,exchangeTime:l}=tn(e),c=qt({slots:t,prefixCls:n,locale:r,size:i,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const d=So();d&&d.appContext.app.provide(Za,c)}else ri(Za,c)}});function B9e(e,t,n,r,i,a){return mt(e.$slots,"default")}var gR=ze(O9e,[["render",B9e]]);const N9e=Object.assign(gR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+gR.name,gR)}});function F9e(e){const{modelValue:t,defaultValue:n,format:r}=tn(e),i=F(()=>dc(t.value,r.value)),a=F(()=>dc(n.value,r.value)),[s,l]=Ya(xn(i.value)?xn(a.value)?void 0:a.value:i.value);return It(i,()=>{xn(i.value)&&l(void 0)}),{value:F(()=>i.value||s.value),setValue:l}}const j9e=we({name:"DateInput",components:{IconHover:Lo,IconClose:fs,FeedbackIcon:Q_},props:{size:{type:String},focused:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},error:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:String},inputValue:{type:String},value:{type:Object},format:{type:[String,Function],required:!0}},emits:["clear","press-enter","change","blur"],setup(e,{emit:t,slots:n}){const{error:r,focused:i,disabled:a,size:s,value:l,format:c,inputValue:d}=tn(e),{mergedSize:h,mergedDisabled:p,mergedError:v,feedback:g}=Do({size:s,disabled:a,error:r}),{mergedSize:y}=Aa(h),S=Re("picker"),k=F(()=>[S,`${S}-size-${y.value}`,{[`${S}-focused`]:i.value,[`${S}-disabled`]:p.value,[`${S}-error`]:v.value,[`${S}-has-prefix`]:n.prefix}]),C=F(()=>{if(d?.value)return d?.value;if(l?.value&&Hc(l.value))return Sn(c.value)?c.value(l.value):l.value.format(c.value)}),x=ue();return{feedback:g,prefixCls:S,classNames:k,displayValue:C,mergedDisabled:p,refInput:x,onPressEnter(){t("press-enter")},onChange(E){t("change",E)},onClear(E){t("clear",E)},onBlur(E){t("blur",E)}}},methods:{focus(){this.refInput&&this.refInput.focus&&this.refInput.focus()},blur(){this.refInput&&this.refInput.blur&&this.refInput.blur()}}}),V9e=["disabled","placeholder","value"];function z9e(e,t,n,r,i,a){const s=Te("IconClose"),l=Te("IconHover"),c=Te("FeedbackIcon");return z(),X("div",{class:de(e.classNames)},[e.$slots.prefix?(z(),X("div",{key:0,class:de(`${e.prefixCls}-prefix`)},[mt(e.$slots,"prefix")],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-input`)},[I("input",Ft({ref:"refInput",disabled:e.mergedDisabled,placeholder:e.placeholder,class:`${e.prefixCls}-start-time`,value:e.displayValue},e.readonly?{readonly:!0}:{},{onKeydown:t[0]||(t[0]=df((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),onInput:t[1]||(t[1]=(...d)=>e.onChange&&e.onChange(...d)),onBlur:t[2]||(t[2]=(...d)=>e.onBlur&&e.onBlur(...d))}),null,16,V9e)],2),I("div",{class:de(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(z(),Ze(l,{key:0,prefix:e.prefixCls,class:de(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:fe(()=>[$(s)]),_:1},8,["prefix","class","onClick"])):Ie("v-if",!0),I("span",{class:de(`${e.prefixCls}-suffix-icon`)},[mt(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ze(c,{key:1,type:e.feedback},null,8,["type"])):Ie("v-if",!0)],2)],2)}var r0e=ze(j9e,[["render",z9e]]);function rV(e){const t=["H","h","m","s","a","A"],n=[];let r=!1;return t.forEach(i=>{e.indexOf(i)!==-1&&(n.push(i),(i==="a"||i==="A")&&(r=!0))}),{list:n,use12Hours:r}}const Tre=new Map;function U9e(e,t,n){const r=Tre.get(e);xn(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),Tre.set(e,requestAnimationFrame(()=>{new tg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function ff(e,t){const n=r=>{if(nr(r))return r.map(i=>n(i));if(!xn(r))return r.format(t)};return n(e)}function D4(e){return xn(e)?!0:nr(e)?e.length===0||e.length===2&&Hc(e[0])&&Hc(e[1]):!1}function K8(e,t){return e?typeof e=="string"&&Ms(e,t).format(t)===e:!1}function H9e(e,{disabledHours:t,disabledMinutes:n,disabledSeconds:r}){if(!e)return!1;const i=e.hour(),a=e.minute(),s=e.second(),l=t?.()||[],c=n?.(i)||[],d=r?.(i,a)||[],h=(p,v)=>!xn(p)&&v.includes(p);return h(i,l)||h(a,c)||h(s,d)}var Jh=we({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const i0e=Symbol("PickerInjectionKey");function iS(){const{datePickerT:e}=Pn(i0e)||{};return e||((t,...n)=>t)}const W9e=we({name:"PanelShortcuts",components:{Button:Xo,RenderFunction:Jh},props:{prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},showNowBtn:{type:Boolean}},emits:["item-click","item-mouse-enter","item-mouse-leave","now-click"],setup(e,{emit:t}){return{datePickerT:iS(),onItemClick:r=>{t("item-click",r)},onItemMouseEnter:r=>{t("item-mouse-enter",r)},onItemMouseLeave:r=>{t("item-mouse-leave",r)},onNowClick:()=>{t("now-click")},isFunction:Sn}}});function G9e(e,t,n,r,i,a){const s=Te("Button"),l=Te("RenderFunction");return z(),X("div",{class:de(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(z(),Ze(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:fe(()=>[He(Ne(e.datePickerT("datePicker.now")),1)]),_:1})):Ie("v-if",!0),(z(!0),X(Pt,null,cn(e.shortcuts,(c,d)=>(z(),Ze(s,{key:d,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:fe(()=>[e.isFunction(c.label)?(z(),Ze(l,{key:0,"render-func":c.label},null,8,["render-func"])):(z(),X(Pt,{key:1},[He(Ne(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var o0e=ze(W9e,[["render",G9e]]);function Oy(e){return[...Array(e)]}function iV(e){if(!xn(e))return nr(e)?e:[e,void 0]}function zp(e){return!!e&&Hc(e[0])&&Hc(e[1])}function K9e(e){return xn(e)||e.length===0||zp(e)}function s0e(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const q9e=we({name:"IconDoubleLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Y9e=["stroke-width","stroke-linecap","stroke-linejoin"];function X9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M36.857 9.9 22.715 24.042l14.142 14.142M25.544 9.9 11.402 24.042l14.142 14.142"},null,-1)]),14,Y9e)}var yR=ze(q9e,[["render",X9e]]);const a0e=Object.assign(yR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yR.name,yR)}}),Z9e=we({name:"IconDoubleRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),J9e=["stroke-width","stroke-linecap","stroke-linejoin"];function Q9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.143 38.1 14.142-14.142L11.143 9.816M22.456 38.1l14.142-14.142L22.456 9.816"},null,-1)]),14,J9e)}var bR=ze(Z9e,[["render",Q9e]]);const l0e=Object.assign(bR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bR.name,bR)}}),e$e=we({name:"PanelHeader",components:{IconLeft:Il,IconRight:Hi,IconDoubleLeft:a0e,IconDoubleRight:l0e,RenderFunction:Jh},props:{prefixCls:{type:String,required:!0},title:{type:String,required:!0},mode:{type:String,default:"date"},value:{type:Object},icons:{type:Object},onPrev:{type:Function},onSuperPrev:{type:Function},onNext:{type:Function},onSuperNext:{type:Function},onLabelClick:{type:Function}},emits:["label-click"],setup(e){return{showPrev:F(()=>Sn(e.onPrev)),showSuperPrev:F(()=>Sn(e.onSuperPrev)),showNext:F(()=>Sn(e.onNext)),showSuperNext:F(()=>Sn(e.onSuperNext)),year:F(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:F(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),t$e={key:1};function n$e(e,t,n,r,i,a){const s=Te("RenderFunction"),l=Te("IconDoubleLeft"),c=Te("IconLeft"),d=Te("IconRight"),h=Te("IconDoubleRight");return z(),X("div",{class:de(`${e.prefixCls}-header`)},[I("div",{class:de(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(z(),X(Pt,{key:0},[e.icons&&e.icons.prevDouble?(z(),Ze(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(z(),Ze(l,{key:1}))],64)):Ie("v-if",!0)],2),I("div",{class:de(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(z(),X(Pt,{key:0},[e.icons&&e.icons.prev?(z(),Ze(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(z(),Ze(c,{key:1}))],64)):Ie("v-if",!0)],2),I("div",{class:de(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(z(),X(Pt,{key:0},[e.year?(z(),X("span",{key:0,class:de(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},Ne(e.year),3)):Ie("v-if",!0),e.year&&e.month?(z(),X("span",t$e,"-")):Ie("v-if",!0),e.month?(z(),X("span",{key:2,class:de(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},Ne(e.month),3)):Ie("v-if",!0)],64)):(z(),X(Pt,{key:1},[He(Ne(e.title),1)],64))],2),I("div",{class:de(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(z(),X(Pt,{key:0},[e.icons&&e.icons.next?(z(),Ze(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(z(),Ze(d,{key:1}))],64)):Ie("v-if",!0)],2),I("div",{class:de(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(z(),X(Pt,{key:0},[e.icons&&e.icons.nextDouble?(z(),Ze(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(z(),Ze(h,{key:1}))],64)):Ie("v-if",!0)],2)],2)}var G5=ze(e$e,[["render",n$e]]);function r$e(e){const{rangeValues:t}=tn(e),n=F(()=>t?.value&&t.value.every(Hc)?i_(t.value):t?.value),r=F(()=>{var a;return(a=n.value)==null?void 0:a[0]}),i=F(()=>{var a;return(a=n.value)==null?void 0:a[1]});return{getCellClassName:(a,s)=>{const{value:l,isSameTime:c,mode:d,prefixCls:h}=e,p=!a.isPrev&&!a.isNext,v=l&&c(a.value,l);let g=c(a.value,Xa());d==="week"&&(g=Xa().isSame(a.value,"date"));const y=p&&r.value&&c(a.value,r.value),S=p&&i.value&&c(a.value,i.value),k=p&&r.value&&i.value&&(y||S||a.value.isBetween(r.value,i.value,null,"[]"));return[`${h}-cell`,{[`${h}-cell-in-view`]:p,[`${h}-cell-today`]:g,[`${h}-cell-selected`]:v,[`${h}-cell-range-start`]:y,[`${h}-cell-range-end`]:S,[`${h}-cell-in-range`]:k,[`${h}-cell-disabled`]:s},a.classNames]}}}const i$e=we({name:"PanelBody",components:{RenderFunction:Jh},props:{prefixCls:{type:String,required:!0},rows:{type:Array,default:()=>[]},value:{type:Object},disabledDate:{type:Function},isSameTime:{type:Function,required:!0},mode:{type:String},rangeValues:{type:Array},dateRender:{type:Function}},emits:["cell-click","cell-mouse-enter"],setup(e,{emit:t}){const{prefixCls:n,value:r,disabledDate:i,isSameTime:a,mode:s,rangeValues:l}=tn(e),{getCellClassName:c}=r$e(qt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),d=h=>!!(Sn(i?.value)&&i?.value(Cu(h.value)));return{isWeek:F(()=>s?.value==="week"),getCellClassName:h=>{const p=d(h);return c(h,p)},onCellClick:h=>{d(h)||t("cell-click",h)},onCellMouseEnter:h=>{d(h)||t("cell-mouse-enter",h)},onCellMouseLeave:h=>{d(h)||t("cell-mouse-enter",h)},getDateValue:Cu}}}),o$e=["onMouseenter","onMouseleave","onClick"];function s$e(e,t,n,r,i,a){const s=Te("RenderFunction");return z(),X("div",{class:de(`${e.prefixCls}-body`)},[(z(!0),X(Pt,null,cn(e.rows,(l,c)=>(z(),X("div",{key:c,class:de([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(z(!0),X(Pt,null,cn(l,(d,h)=>(z(),X(Pt,null,[Ie(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(z(),X("div",{key:h,class:de([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[I("div",{class:de(`${e.prefixCls}-date`)},[I("div",{class:de(`${e.prefixCls}-date-value`)},Ne(d.label),3)],2)],2)):(z(),X("div",{key:h,class:de(e.getCellClassName(d)),onMouseenter:()=>{e.onCellMouseEnter(d)},onMouseleave:()=>{e.onCellMouseLeave(d)},onClick:()=>{e.onCellClick(d)}},[e.dateRender?(z(),Ze(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(d.value)},null,8,["render-func","date"])):(z(),X("div",{key:1,class:de(`${e.prefixCls}-date`)},[I("div",{class:de(`${e.prefixCls}-date-value`)},Ne(d.label),3)],2))],42,o$e))],64))),256))],2))),128))],2)}var K5=ze(i$e,[["render",s$e]]);const a$e=we({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=iS();return{labelList:F(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function l$e(e,t,n,r,i,a){return z(),X("div",{class:de(`${e.prefixCls}-week-list`)},[(z(!0),X(Pt,null,cn(e.weekList,s=>(z(),X("div",{key:s,class:de(`${e.prefixCls}-week-list-item`)},Ne(e.labelList[s]||""),3))),128))],2)}var u$e=ze(a$e,[["render",l$e]]);const c$e=we({name:"TimePickerColumn",props:{prefixCls:{type:String,required:!0},list:{type:Array,required:!0},value:{type:[Number,String]},visible:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const{visible:n,value:r}=tn(e),i=ue(new Map),a=ue();function s(l=!1){if(!a.value||xn(r?.value)||!n?.value)return;const c=i.value.get(r.value);c&&U9e(a.value,c.offsetTop,l?100:0)}return It([r,n],(l,[,c])=>{n.value!==c?dn(()=>{s()}):s(!0)}),hn(()=>{s()}),{refWrapper:a,refMap:i,onItemRef(l,c){i.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),d$e=["onClick"];function f$e(e,t,n,r,i,a){return z(),X("div",{ref:"refWrapper",class:de(`${e.prefixCls}-column`)},[I("ul",null,[(z(!0),X(Pt,null,cn(e.list,s=>(z(),X("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:de([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[I("div",{class:de(`${e.prefixCls}-cell-inner`)},Ne(s.label),3)],10,d$e))),128))])],2)}var h$e=ze(c$e,[["render",f$e]]);function p$e(e){const{format:t,step:n,use12Hours:r,hideDisabledOptions:i,disabledHours:a,disabledMinutes:s,disabledSeconds:l,selectedHour:c,selectedMinute:d,selectedSecond:h,selectedAmpm:p,disabled:v}=tn(e),g=F(()=>{var x;const{hour:E=1}=n?.value||{},_=((x=a?.value)==null?void 0:x.call(a))||[];let T=[];for(let D=0;D<(r.value?12:24);D+=E)T.push(D);return r.value&&(T[0]=12),i.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:vm(D,2,"0"),value:D,selected:c.value===D,disabled:v?.value||_.includes(D)}))}),y=F(()=>{var x;const{minute:E=1}=n?.value||{},_=((x=s?.value)==null?void 0:x.call(s,c.value))||[];let T=[];for(let D=0;D<60;D+=E)T.push(D);return i.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:vm(D,2,"0"),value:D,selected:d.value===D,disabled:v?.value||_.includes(D)}))}),S=F(()=>{var x;const{second:E=1}=n?.value||{},_=((x=l?.value)==null?void 0:x.call(l,c.value,d.value))||[];let T=[];for(let D=0;D<60;D+=E)T.push(D);return i.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:vm(D,2,"0"),value:D,selected:h.value===D,disabled:v?.value||_.includes(D)}))}),k=["am","pm"],C=F(()=>{const x=rV(t.value).list.includes("A");return k.map(E=>({label:x?E.toUpperCase():E,value:E,selected:p.value===E,disabled:v?.value}))});return{hours:g,minutes:y,seconds:S,ampmList:C}}function AH(e){const{format:t,use12Hours:n,defaultFormat:r}=tn(e),i=F(()=>{let d=t?.value||r?.value;return(!d||!rV(d).list.length)&&(d=n?.value?"hh:mm:ss a":"HH:mm:ss"),d}),a=F(()=>rV(i.value)),s=F(()=>a.value.list),l=F(()=>a.value.use12Hours),c=F(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:i}}function u0e(e){const t=n=>H9e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>nr(n)?n.some(r=>t(r)):t(n)}const v$e=we({name:"TimePickerPanel",components:{TimeColumn:h$e,Button:Xo},props:{value:{type:Object},visible:{type:Boolean},format:{type:String,default:"HH:mm:ss"},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},hideFooter:{type:Boolean},isRange:{type:Boolean},disabled:{type:Boolean}},emits:{select:e=>Hc(e),confirm:e=>Hc(e)},setup(e,{emit:t}){const{value:n,visible:r,format:i,step:a,use12Hours:s,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,disabled:p}=tn(e),v=Re("timepicker"),{t:g}=No(),{columns:y,use12Hours:S,format:k}=AH(qt({format:i,use12Hours:s})),C=ue(n?.value),x=Y=>{C.value=Y};It([r,n],()=>{r.value&&x(n?.value)});const E=F(()=>{var Y;const ie=(Y=C.value)==null?void 0:Y.hour();return xn(ie)||!S.value?ie:ie>12?ie-12:ie===0?12:ie}),_=F(()=>{var Y;return(Y=C.value)==null?void 0:Y.minute()}),T=F(()=>{var Y;return(Y=C.value)==null?void 0:Y.second()}),D=F(()=>{var Y;const ie=(Y=C.value)==null?void 0:Y.hour();return!xn(ie)&&ie>=12?"pm":"am"}),{hours:P,minutes:M,seconds:O,ampmList:L}=p$e(qt({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,disabled:p})),B=u0e(qt({disabledHours:c,disabledMinutes:d,disabledSeconds:h})),j=F(()=>B(C.value));function H(Y){xn(Y)||t("confirm",Y)}function U(Y){x(Y),t("select",Y)}function K(Y,ie="hour"){let te;const W=E.value||"00",q=_.value||"00",Q=T.value||"00",se=D.value||"am";switch(ie){case"hour":te=`${Y}:${q}:${Q}`;break;case"minute":te=`${W}:${Y}:${Q}`;break;case"second":te=`${W}:${q}:${Y}`;break;case"ampm":te=`${W}:${q}:${Q} ${Y}`;break;default:te="00:00:00"}let ae="HH:mm:ss";S.value&&(ae="HH:mm:ss a",ie!=="ampm"&&(te=`${te} ${se}`)),te=Ms(te,ae),U(te)}return{prefixCls:v,t:g,hours:P,minutes:M,seconds:O,ampmList:L,selectedValue:C,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,computedUse12Hours:S,confirmBtnDisabled:j,columns:y,onSelect:K,onSelectNow(){const Y=Ms(new Date);U(Y)},onConfirm(){H(C.value)}}}});function m$e(e,t,n,r,i,a){const s=Te("TimeColumn"),l=Te("Button");return z(),X(Pt,null,[I("div",{class:de(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(z(),Ze(s,{key:0,value:e.selectedHour,list:e.hours,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[0]||(t[0]=c=>{e.onSelect(c,"hour")})},null,8,["value","list","prefix-cls","visible"])):Ie("v-if",!0),e.columns.includes("m")?(z(),Ze(s,{key:1,value:e.selectedMinute,list:e.minutes,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[1]||(t[1]=c=>{e.onSelect(c,"minute")})},null,8,["value","list","prefix-cls","visible"])):Ie("v-if",!0),e.columns.includes("s")?(z(),Ze(s,{key:2,value:e.selectedSecond,list:e.seconds,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[2]||(t[2]=c=>{e.onSelect(c,"second")})},null,8,["value","list","prefix-cls","visible"])):Ie("v-if",!0),e.computedUse12Hours?(z(),Ze(s,{key:3,value:e.selectedAmpm,list:e.ampmList,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[3]||(t[3]=c=>{e.onSelect(c,"ampm")})},null,8,["value","list","prefix-cls","visible"])):Ie("v-if",!0)],2),e.$slots["extra-footer"]?(z(),X("div",{key:0,class:de(`${e.prefixCls}-footer-extra-wrapper`)},[mt(e.$slots,"extra-footer")],2)):Ie("v-if",!0),e.hideFooter?Ie("v-if",!0):(z(),X("div",{key:1,class:de(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Ie("v-if",!0):(z(),Ze(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:fe(()=>[He(Ne(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),$(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:fe(()=>[He(Ne(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var q8=ze(v$e,[["render",m$e]]);const g$e=we({name:"IconCalendar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),y$e=["stroke-width","stroke-linecap","stroke-linejoin"];function b$e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 22h34M14 5v8m20-8v8M8 41h32a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1Z"},null,-1)]),14,y$e)}var _R=ze(g$e,[["render",b$e]]);const oS=Object.assign(_R,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_R.name,_R)}}),_$e=we({name:"IconClockCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),S$e=["stroke-width","stroke-linecap","stroke-linejoin"];function k$e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,S$e)}var SR=ze(_$e,[["render",k$e]]);const l_=Object.assign(SR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SR.name,SR)}}),c0e=6,oV=7,x$e=c0e*oV;function C$e(e){return{label:e.date(),value:e}}const w$e=we({name:"DatePanel",components:{PanelHeader:G5,PanelBody:K5,PanelWeekList:u$e,TimePanel:q8,IconCalendar:oS,IconClockCircle:l_},props:{isRange:{type:Boolean},value:{type:Object},rangeValues:{type:Array},headerValue:{type:Object,required:!0},footerValue:{type:Object},timePickerValue:{type:Object},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},isSameTime:{type:Function},mode:{type:String,default:"date"},showTime:{type:Boolean},timePickerProps:{type:Object},currentView:{type:String},dateRender:{type:Function},disabled:{type:Boolean},onHeaderLabelClick:{type:Function}},emits:["select","time-picker-select","cell-mouse-enter","current-view-change","update:currentView"],setup(e,{emit:t}){const{isRange:n,headerValue:r,footerValue:i,dayStartOfWeek:a,isSameTime:s,mode:l,showTime:c,currentView:d,disabledTime:h}=tn(e),p=iS(),v=F(()=>l?.value==="week"),g=F(()=>Re(v.value?"panel-week":"panel-date")),y=Re("picker"),[S,k]=pa("date",qt({value:d})),C=F(()=>c.value&&n.value),x=F(()=>!c.value||!C.value||S.value==="date"),E=F(()=>c.value&&(!C.value||S.value==="time")),_=F(()=>[g.value,{[`${g.value}-with-view-tabs`]:C.value}]),T=F(()=>r.value.format("YYYY-MM")),D=F(()=>{var H;return c.value&&((H=h?.value)==null?void 0:H.call(h,Cu(i?.value||Xa())))||{}}),P=F(()=>{const H=[0,1,2,3,4,5,6],U=Math.max(a.value%7,0);return[...H.slice(U),...H.slice(0,U)]}),M=F(()=>{const H=Xs.startOf(r.value,"month"),U=H.day(),K=H.daysInMonth(),Y=P.value.indexOf(U),ie=Oy(x$e);for(let W=0;WY+K-1};return Oy(c0e).map((W,q)=>{const Q=ie.slice(q*oV,(q+1)*oV);if(v.value){const se=Q[0].value;Q.unshift({label:se.week(),value:se})}return Q})}),O=F(()=>s?.value||((H,U)=>H.isSame(U,"day")));function L(H){t("select",H.value)}function B(H){t("time-picker-select",H)}function j(H){t("cell-mouse-enter",H.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:y,headerTitle:T,rows:M,weekList:F(()=>v.value?[-1,...P.value]:P.value),mergedIsSameTime:O,disabledTimeProps:D,onCellClick:L,onCellMouseEnter:j,onTimePanelSelect:B,showViewTabs:C,showDateView:x,showTimeView:E,changeViewTo:H=>{t("current-view-change",H),t("update:currentView",H),k(H)},datePickerT:p}}});function E$e(e,t,n,r,i,a){const s=Te("PanelHeader"),l=Te("PanelWeekList"),c=Te("PanelBody"),d=Te("TimePanel"),h=Te("IconCalendar"),p=Te("IconClockCircle");return z(),X("div",{class:de(e.classNames)},[e.showDateView?(z(),X("div",{key:0,class:de(`${e.prefixCls}-inner`)},[$(s,Ft({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:e.mode,value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","mode","value","on-label-click"]),$(l,{"prefix-cls":e.pickerPrefixCls,"week-list":e.weekList},null,8,["prefix-cls","week-list"]),$(c,{mode:e.mode,"prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.isRange?void 0:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.mergedIsSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["mode","prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)):Ie("v-if",!0),e.showTimeView?(z(),X("div",{key:1,class:de(`${e.prefixCls}-timepicker`)},[I("header",{class:de(`${e.prefixCls}-timepicker-title`)},Ne(e.datePickerT("datePicker.selectTime")),3),$(d,Ft({...e.timePickerProps,...e.disabledTimeProps},{"hide-footer":"",value:e.value||e.isRange?e.timePickerValue:void 0,disabled:e.disabled,onSelect:e.onTimePanelSelect}),null,16,["value","disabled","onSelect"])],2)):Ie("v-if",!0),e.showViewTabs?(z(),X("div",{key:2,class:de(`${e.prefixCls}-footer`)},[I("div",{class:de(`${e.prefixCls}-view-tabs`)},[I("div",{class:de([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[$(h),I("span",{class:de(`${e.prefixCls}-view-tab-pane-text`)},Ne(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),I("div",{class:de([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[$(p),I("span",{class:de(`${e.prefixCls}-view-tab-pane-text`)},Ne(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Ie("v-if",!0)],2)}var IH=ze(w$e,[["render",E$e]]);const T$e=we({name:"WeekPanel",components:{DatePanel:IH},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return No(),{isSameTime:(r,i)=>Xs.isSameWeek(r,i,e.dayStartOfWeek),onSelect:r=>{const i=Xs.startOfWeek(r,e.dayStartOfWeek);t("select",i)},onCellMouseEnter:r=>{const i=Xs.startOfWeek(r,e.dayStartOfWeek);t("cell-mouse-enter",i)}}}});function A$e(e,t,n,r,i,a){const s=Te("DatePanel");return z(),Ze(s,Ft(e.$attrs,{mode:"week","is-week":"","day-start-of-week":e.dayStartOfWeek,"is-same-time":e.isSameTime,onSelect:e.onSelect,onCellMouseEnter:e.onCellMouseEnter}),null,16,["day-start-of-week","is-same-time","onSelect","onCellMouseEnter"])}var d0e=ze(T$e,[["render",A$e]]);const I$e=["January","February","March","April","May","June","July","August","September","October","November","December"],L$e=12,D$e=4,Are=3,P$e=we({name:"MonthPanel",components:{PanelHeader:G5,PanelBody:K5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function},abbreviation:{type:Boolean,default:!0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const n=iS(),{headerValue:r}=tn(e),i=F(()=>Re("panel-month")),a=Re("picker"),s=F(()=>r.value.format("YYYY")),l=F(()=>{const p=r.value.year(),v=e.abbreviation?"short":"long",g=Oy(L$e).map((S,k)=>({label:n(`datePicker.month.${v}.${I$e[k]}`),value:Ms(`${p}-${k+1}`,"YYYY-M")}));return Oy(D$e).map((S,k)=>g.slice(k*Are,(k+1)*Are))}),c=(p,v)=>p.isSame(v,"month");function d(p){t("select",p.value)}function h(p){t("cell-mouse-enter",p.value)}return{prefixCls:i,pickerPrefixCls:a,headerTitle:s,rows:l,isSameTime:c,onCellClick:d,onCellMouseEnter:h}}});function R$e(e,t,n,r,i,a){const s=Te("PanelHeader"),l=Te("PanelBody");return z(),X("div",{class:de(e.prefixCls)},[I("div",{class:de(`${e.prefixCls}-inner`)},[$(s,Ft({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"month",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),$(l,{mode:"month","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var f0e=ze(P$e,[["render",R$e]]);const sV=4,Aw=3,M$e=sV*Aw,kR=10,$$e=we({name:"YearPanel",components:{PanelHeader:G5,PanelBody:K5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=tn(e),r=F(()=>Re("panel-year")),i=Re("picker"),a=F(()=>{const h=Math.floor(n.value.year()/kR)*kR-1,p=Oy(M$e).map((g,y)=>({label:h+y,value:Ms(`${h+y}`,"YYYY"),isPrev:y<1,isNext:y>kR}));return Oy(sV).map((g,y)=>p.slice(y*Aw,(y+1)*Aw))}),s=F(()=>`${a.value[0][1].label}-${a.value[sV-1][Aw-1].label}`),l=(h,p)=>h.isSame(p,"year");function c(h){t("select",h.value)}function d(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:i,headerTitle:s,rows:a,isSameTime:l,onCellClick:c,onCellMouseEnter:d}}});function O$e(e,t,n,r,i,a){const s=Te("PanelHeader"),l=Te("PanelBody");return z(),X("div",{class:de(e.prefixCls)},[I("div",{class:de(`${e.prefixCls}-inner`)},[$(s,Ft({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle}),null,16,["prefix-cls","title"]),$(l,{mode:"year","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var h0e=ze($$e,[["render",O$e]]);const B$e=we({name:"QuarterPanel",components:{PanelHeader:G5,PanelBody:K5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=tn(e),r=F(()=>Re("panel-quarter")),i=Re("picker"),a=F(()=>n.value.format("YYYY")),s=F(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:Ms(`${h}-${vm((p-1)*3+1,2,"0")}-01`)}))]}),l=(h,p)=>h.isSame(p,"month")||h.isSame(p,"year")&&Math.floor(h.month()/3)===Math.floor(p.month()/3);function c(h){t("select",h.value)}function d(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:i,headerTitle:a,rows:s,isSameTime:l,onCellClick:c,onCellMouseEnter:d}}});function N$e(e,t,n,r,i,a){const s=Te("PanelHeader"),l=Te("PanelBody");return z(),X("div",{class:de(e.prefixCls)},[I("div",{class:de(`${e.prefixCls}-inner`)},[$(s,Ft({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"quarter",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),$(l,{mode:"quarter","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var p0e=ze(B$e,[["render",N$e]]);const F$e=we({name:"IconLink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),j$e=["stroke-width","stroke-linecap","stroke-linejoin"];function V$e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"},null,-1)]),14,j$e)}var xR=ze(F$e,[["render",V$e]]);const Mc=Object.assign(xR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xR.name,xR)}}),z$e=we({name:"Link",components:{IconLink:Mc,IconLoading:Ja},props:{href:String,status:{type:String,default:"normal"},hoverable:{type:Boolean,default:!0},icon:Boolean,loading:Boolean,disabled:Boolean},emits:{click:e=>!0},setup(e,{slots:t,emit:n}){const r=Re("link"),i=n0e(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:F(()=>[r,`${r}-status-${e.status}`,{[`${r}-disabled`]:e.disabled,[`${r}-loading`]:e.loading,[`${r}-hoverless`]:!e.hoverable,[`${r}-with-icon`]:e.loading||i.value}]),prefixCls:r,showIcon:i,handleClick:a}}}),U$e=["href"];function H$e(e,t,n,r,i,a){const s=Te("icon-loading"),l=Te("icon-link");return z(),X("a",{href:e.disabled?void 0:e.href,class:de(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(z(),X("span",{key:0,class:de(`${e.prefixCls}-icon`)},[e.loading?(z(),Ze(s,{key:0})):mt(e.$slots,"icon",{key:1},()=>[$(l)])],2)):Ie("v-if",!0),mt(e.$slots,"default")],10,U$e)}var CR=ze(z$e,[["render",H$e]]);const v0e=Object.assign(CR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+CR.name,CR)}}),W$e=we({name:"PanelFooter",components:{Link:v0e,Button:Xo},props:{prefixCls:{type:String,required:!0},showTodayBtn:{type:Boolean},showConfirmBtn:{type:Boolean},confirmBtnDisabled:{type:Boolean}},emits:["today-btn-click","confirm-btn-click"],setup(e,{emit:t}){return{datePickerT:iS(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function G$e(e,t,n,r,i,a){const s=Te("Link"),l=Te("Button");return z(),X("div",{class:de(`${e.prefixCls}-footer`)},[e.$slots.extra?(z(),X("div",{key:0,class:de(`${e.prefixCls}-footer-extra-wrapper`)},[mt(e.$slots,"extra")],2)):Ie("v-if",!0),e.showTodayBtn?(z(),X("div",{key:1,class:de(`${e.prefixCls}-footer-now-wrapper`)},[$(s,{onClick:e.onTodayClick},{default:fe(()=>[He(Ne(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Ie("v-if",!0),e.$slots.btn||e.showConfirmBtn?(z(),X("div",{key:2,class:de(`${e.prefixCls}-footer-btn-wrapper`)},[mt(e.$slots,"btn"),e.showConfirmBtn?(z(),Ze(l,{key:0,class:de(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:fe(()=>[He(Ne(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Ie("v-if",!0)],2)):Ie("v-if",!0)],2)}var m0e=ze(W$e,[["render",G$e]]);function g0e(e){const{mode:t}=tn(e),n=F(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=F(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function Y8(e){const{mode:t,value:n,defaultValue:r,selectedValue:i,format:a,onChange:s}=tn(e),l=F(()=>t?.value||"date"),{span:c,superSpan:d}=g0e(qt({mode:l})),h=(T,D)=>{const P=l.value==="date"||l.value==="week"?"M":"y";return T.isSame(D,P)},p=F(()=>dc(n?.value,a.value)),v=F(()=>dc(r?.value,a.value)),g=ue(v.value||Xa()),y=F(()=>p.value||g.value),S=T=>{T&&(g.value=T)},k=(T,D=!0)=>{var P;T&&(D&&!h(y.value,T)&&((P=s?.value)==null||P.call(s,T)),S(T))};i?.value&&S(i.value),It(()=>i?.value,T=>{k(T)});function C(){return i?.value||v.value||Xa()}function x(T=!0){const D=C();T?k(D):S(D)}const E=F(()=>c.value!==d.value),_=F(()=>({onSuperPrev:()=>{k(Xs.subtract(y.value,d.value,"M"))},onPrev:E.value?()=>{k(Xs.subtract(y.value,c.value,"M"))}:void 0,onNext:E.value?()=>{k(Xs.add(y.value,c.value,"M"))}:void 0,onSuperNext:()=>{k(Xs.add(y.value,d.value,"M"))}}));return{headerValue:y,setHeaderValue:k,headerOperations:_,resetHeaderValue:x,getDefaultLocalValue:C}}const K$e=we({name:"DatePikerPanel",components:{DatePanel:IH,PanelShortcuts:o0e,PanelFooter:m0e,WeekPanel:d0e,MonthPanel:f0e,YearPanel:h0e,QuarterPanel:p0e,RenderFunction:Jh},props:{mode:{type:String},headerMode:{type:String},prefixCls:{type:String,required:!0},value:{type:Object},headerValue:{type:Object,required:!0},timePickerValue:{type:Object},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},confirmBtnDisabled:{type:Boolean},showNowBtn:{type:Boolean},headerIcons:{type:Object,default:()=>({})},headerOperations:{type:Object},abbreviation:{type:Boolean}},emits:["cell-click","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","today-btn-click","header-label-click","header-select","month-header-click"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:i,format:a,value:s,disabledDate:l,hideTrigger:c,showNowBtn:d,dateRender:h,showConfirmBtn:p,headerValue:v,headerIcons:g,headerOperations:y,headerMode:S}=tn(e),k=F(()=>!!(r.value&&r.value.length)),C=F(()=>d.value&&p.value&&!k.value),x=F(()=>C.value||k.value),E=F(()=>x.value&&i.value==="left"),_=F(()=>x.value&&i.value==="right"),T=F(()=>x.value&&i.value==="bottom"),D=F(()=>[`${n.value}-container`,{[`${n.value}-container-panel-only`]:c.value,[`${n.value}-container-shortcuts-placement-left`]:E.value,[`${n.value}-container-shortcuts-placement-right`]:_.value}]),P=F(()=>s?.value||Xa()),{headerValue:M,setHeaderValue:O,headerOperations:L}=Y8(qt({mode:S,format:a}));It(v,re=>{O(re)});function B(re){const{value:Ce}=re;return dc(Sn(Ce)?Ce():Ce,re.format||a.value)}function j(re){t("shortcut-click",B(re),re)}function H(re){t("shortcut-mouse-enter",B(re))}function U(re){t("shortcut-mouse-leave",B(re))}function K(re){t("cell-click",re)}function Y(re){t("time-picker-select",re)}function ie(){t("today-btn-click",Xa())}function te(){t("confirm")}function W(re){t("header-label-click",re)}function q(re){t("header-select",re)}function Q(){t("month-header-click")}const se=qt({prefixCls:n,shortcuts:r,showNowBtn:C,onItemClick:j,onItemMouseEnter:H,onItemMouseLeave:U,onNowClick:ie}),ae=qt({value:s,headerValue:v,headerIcons:g,headerOperations:y,disabledDate:l,dateRender:h,onSelect:K,onHeaderLabelClick:W});return{classNames:D,showShortcutsInLeft:E,showShortcutsInRight:_,showShortcutsInBottom:T,shortcutsProps:se,commonPanelProps:ae,footerValue:P,onTodayBtnClick:ie,onConfirmBtnClick:te,onTimePickerSelect:Y,onHeaderPanelSelect:q,headerPanelHeaderValue:M,headerPanelHeaderOperations:L,onMonthHeaderLabelClick:Q}}});function q$e(e,t,n,r,i,a){const s=Te("PanelShortcuts"),l=Te("YearPanel"),c=Te("MonthPanel"),d=Te("WeekPanel"),h=Te("QuarterPanel"),p=Te("DatePanel"),v=Te("RenderFunction"),g=Te("PanelFooter");return z(),X("div",{class:de(e.classNames)},[e.showShortcutsInLeft?(z(),Ze(s,qi(Ft({key:0},e.shortcutsProps)),null,16)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(z(),X(Pt,{key:0},[e.headerMode==="year"?(z(),Ze(l,{key:0,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,onSelect:e.onHeaderPanelSelect},null,8,["header-value","header-icons","header-operations","onSelect"])):e.headerMode==="month"?(z(),Ze(c,{key:1,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,abbreviation:e.abbreviation,onSelect:e.onHeaderPanelSelect,onHeaderLabelClick:e.onMonthHeaderLabelClick},null,8,["header-value","header-icons","header-operations","abbreviation","onSelect","onHeaderLabelClick"])):Ie("v-if",!0)],64)):(z(),X(Pt,{key:1},[e.mode==="week"?(z(),Ze(d,Ft({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(z(),Ze(c,Ft({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(z(),Ze(l,qi(Ft({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(z(),Ze(h,qi(Ft({key:3},e.commonPanelProps)),null,16)):(z(),Ze(p,Ft({key:4},e.commonPanelProps,{mode:"date","show-time":e.showTime,"time-picker-props":e.timePickerProps,"day-start-of-week":e.dayStartOfWeek,"footer-value":e.footerValue,"time-picker-value":e.timePickerValue,"disabled-time":e.disabledTime,onTimePickerSelect:e.onTimePickerSelect}),null,16,["show-time","time-picker-props","day-start-of-week","footer-value","time-picker-value","disabled-time","onTimePickerSelect"])),$(g,{"prefix-cls":e.prefixCls,"show-today-btn":e.showNowBtn&&!(e.showConfirmBtn||e.showShortcutsInBottom),"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onTodayBtnClick:e.onTodayBtnClick,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra?{name:"extra",fn:fe(()=>[e.extra?(z(),Ze(v,{key:0,"render-func":e.extra},null,8,["render-func"])):Ie("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:fe(()=>[$(s,qi(xa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-today-btn","show-confirm-btn","confirm-btn-disabled","onTodayBtnClick","onConfirmBtnClick"])],64))],2),e.showShortcutsInRight?(z(),Ze(s,qi(Ft({key:1},e.shortcutsProps)),null,16)):Ie("v-if",!0)],2)}var Y$e=ze(K$e,[["render",q$e]]);function X$e(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"gggg-wo";case"quarter":return"YYYY-[Q]Q";default:return"YYYY-MM-DD"}}function Z$e(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"YYYY-MM-DD";case"quarter":return"YYYY-MM";default:return"YYYY-MM-DD"}}function y0e(e){const{format:t,mode:n,showTime:r,valueFormat:i}=tn(e),a=F(()=>!Sn(t?.value)&&t?.value||X$e(n?.value,r?.value)),s=F(()=>i?.value||Z$e(n?.value,r?.value)),l=F(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function b0e(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:i,isRange:a}=tn(e),s=F(()=>t?.value==="date"&&n?.value),l=F(()=>(h,p)=>{if(!r?.value)return!1;const v=Cu(h);return a?.value?r.value(v,p):r.value(v)}),c=(h,p)=>(p?.()||[]).includes(h),d=F(()=>(h,p)=>{if(!s.value||!i?.value)return!1;const v=Cu(h),g=a?.value?i.value(v,p):i.value(v);return c(h.hour(),g.disabledHours)||c(h.minute(),g.disabledMinutes)||c(h.second(),g.disabledSeconds)});return function(p,v){return p&&(l.value(p,v||"start")||d.value(p,v||"start"))}}const mm=(e,t)=>{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const n=t.split(".");if(n.length===0)return;let r=e;for(let i=0;i{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const i=t.split(".");if(i.length===0)return;let a=e;for(let s=0;s{const l=a.startsWith("datePicker.")?a.split(".").slice(1).join("."):a;return mm(t?.value||{},l)||r(a,...s)};return ri(i0e,{datePickerT:i}),i}function aV(e){const{timePickerProps:t,selectedValue:n}=tn(e),r=F(()=>{var p;return(p=t?.value)==null?void 0:p.format}),i=F(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=AH(qt({format:r,use12Hours:i})),s=F(()=>{var p;return dc((p=t?.value)==null?void 0:p.defaultValue,a.value)}),l=()=>n?.value||s.value||Xa(),c=ue(l());function d(p){p&&(c.value=p)}function h(){c.value=l()}return It(n,p=>{d(p)}),[c,d,h]}function S0e(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function J$e(e){const{format:t}=tn(e);return n=>S0e(n,t.value)}function wR(e,t){return e.map(n=>n?S0e(n,t):void 0)}const Q$e=we({name:"Picker",components:{DateInput:r0e,Trigger:va,PickerPanel:Y$e,IconCalendar:oS},inheritAttrs:!1,props:{locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean},placeholder:{type:String},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},pickerValue:{type:[Object,String,Number]},defaultPickerValue:{type:[Object,String,Number]},popupContainer:{type:[String,Object]},mode:{type:String,default:"date"},format:{type:[String,Function]},valueFormat:{type:String},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},showTime:{type:Boolean},timePickerProps:{type:Object},showNowBtn:{type:Boolean,default:!0},dayStartOfWeek:{type:Number,default:0},modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,modelValue:i,defaultValue:a,format:s,valueFormat:l,placeholder:c,popupVisible:d,defaultPopupVisible:h,disabled:p,showTime:v,timePickerProps:g,disabledDate:y,disabledTime:S,readonly:k,locale:C,pickerValue:x,defaultPickerValue:E,dayStartOfWeek:_,previewShortcut:T,showConfirmBtn:D}=tn(e),{locale:P}=No();Os(()=>{Ppe(P.value,_.value)});const{mergedDisabled:M,eventHandlers:O}=Do({disabled:p}),L=_0e(qt({locale:C})),B=Re("picker"),j=ue(),H=F(()=>c?.value||{date:L("datePicker.placeholder.date"),month:L("datePicker.placeholder.month"),year:L("datePicker.placeholder.year"),week:L("datePicker.placeholder.week"),quarter:L("datePicker.placeholder.quarter")}[r.value]||L("datePicker.placeholder.date")),{format:U,valueFormat:K,parseValueFormat:Y}=y0e(qt({format:s,mode:r,showTime:v,valueFormat:l})),ie=F(()=>s&&Sn(s.value)?un=>{var Xn;return(Xn=s.value)==null?void 0:Xn.call(s,Cu(un))}:U.value),te=J$e(qt({format:K})),W=b0e(qt({mode:r,disabledDate:y,disabledTime:S,showTime:v})),q=F(()=>v.value||D.value),Q=F(()=>q.value&&(!Ge.value||W(Ge.value))),se=F(()=>r.value==="date"&&v.value),{value:ae,setValue:re}=F9e(qt({modelValue:i,defaultValue:a,format:Y})),[Ce,Ve]=Ya(),[ge,xe]=Ya(),Ge=F(()=>{var un;return(un=Ce.value)!=null?un:ae.value}),tt=F(()=>{var un,Xn;return(Xn=(un=ge.value)!=null?un:Ce.value)!=null?Xn:ae.value}),[Ue,_e]=Ya(),[ve,me]=pa(h.value,qt({value:d})),Oe=un=>{ve.value!==un&&(me(un),t("popup-visible-change",un),t("update:popupVisible",un))},{headerValue:qe,setHeaderValue:Ke,headerOperations:at,resetHeaderValue:ft}=Y8(qt({mode:r,value:x,defaultValue:E,selectedValue:tt,format:Y,onChange:un=>{const Xn=te(un),wr=ff(un,Y.value),ro=Cu(un);t("picker-value-change",Xn,ro,wr),t("update:pickerValue",Xn)}})),[ct,,wt]=aV(qt({timePickerProps:g,selectedValue:tt})),Ct=F(()=>!k.value&&!Sn(ie.value)),Rt=ue();It(ve,un=>{Ve(void 0),xe(void 0),Rt.value=void 0,un&&(ft(),wt()),un||_e(void 0)});function Ht(un,Xn){var wr,ro;const Ot=un?te(un):void 0,bn=ff(un,Y.value),kr=Cu(un);yH(un,ae.value)&&(t("update:modelValue",Ot),t("change",Ot,kr,bn),(ro=(wr=O.value)==null?void 0:wr.onChange)==null||ro.call(wr)),Xn&&t("ok",Ot,kr,bn)}function Jt(un,Xn,wr){W(un)||(Ht(un,wr),re(un),Ve(void 0),xe(void 0),_e(void 0),Rt.value=void 0,Tl(Xn)&&Oe(Xn))}function rn(un,Xn){if(Ve(un),xe(void 0),_e(void 0),Rt.value=void 0,Xn){const wr=un?te(un):void 0,ro=ff(un,Y.value),Ot=Cu(un);t("select",wr,Ot,ro)}}function vt(un){j.value&&j.value.focus&&j.value.focus(un)}function Fe(un,Xn){return!se.value&&!g.value?un:s0e(Xa(),un,Xn)}function Me(un){M.value||Oe(un)}function Ee(un){un.stopPropagation(),Jt(void 0),t("clear")}function We(){var un,Xn;(Xn=(un=O.value)==null?void 0:un.onBlur)==null||Xn.call(un)}function $e(un){Oe(!0);const Xn=un.target.value;if(_e(Xn),!K8(Xn,U.value))return;const wr=Ms(Xn,U.value);W(wr)||(q.value?rn(wr):Jt(wr,!0))}function dt(){Jt(tt.value,!1)}function Qe(un){q.value?rn(un,!0):Jt(un,!1)}function Le(un){const Xn=Fe(un,ct.value);Qe(Xn)}function ht(un){const Xn=Fe(tt.value||Xa(),un);Qe(Xn)}function Vt(){Jt(tt.value,!1,!0)}function Ut(){e.disabledInput&&vt()}let Lt;ii(()=>{clearTimeout(Lt)});function Xt(un){clearTimeout(Lt),xe(un),_e(void 0)}function Dn(){clearTimeout(Lt),Lt=setTimeout(()=>{xe(void 0)},100)}function rr(un,Xn){t("select-shortcut",Xn),Jt(un,!1)}function qr(un){Rt.value=un}function Wt(){Rt.value="year"}function Yt(un){let Xn=qe.value;if(Xn=Xn.set("year",un.year()),Rt.value==="month"&&(Xn=Xn.set("month",un.month())),Ke(Xn),r.value==="quarter"||r.value==="month"){Rt.value=void 0;return}Rt.value=Rt.value==="year"?"month":void 0}const sn=F(()=>({format:U.value,...Ea(g?.value||{},["defaultValue"]),visible:ve.value})),An=F(()=>({...kf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:B,format:Y.value,value:tt.value,visible:ve.value,showConfirmBtn:q.value,confirmBtnDisabled:Q.value,timePickerProps:sn.value,extra:n.extra,dateRender:n.cell,headerValue:qe.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:at.value,timePickerValue:ct.value,headerMode:Rt.value,onCellClick:Le,onTimePickerSelect:ht,onConfirm:Vt,onShortcutClick:rr,onShortcutMouseEnter:T.value?Xt:void 0,onShortcutMouseLeave:T.value?Dn:void 0,onTodayBtnClick:Qe,onHeaderLabelClick:qr,onHeaderSelect:Yt,onMonthHeaderClick:Wt}));return{prefixCls:B,refInput:j,panelProps:An,panelValue:tt,inputValue:Ue,selectedValue:ae,inputFormat:ie,computedPlaceholder:H,panelVisible:ve,inputEditable:Ct,needConfirm:q,mergedDisabled:M,onPanelVisibleChange:Me,onInputClear:Ee,onInputChange:$e,onInputPressEnter:dt,onInputBlur:We,onPanelClick:Ut}}});function eOe(e,t,n,r,i,a){const s=Te("IconCalendar"),l=Te("DateInput"),c=Te("PickerPanel"),d=Te("Trigger");return e.hideTrigger?(z(),Ze(c,qi(Ft({key:1},{...e.$attrs,...e.panelProps})),null,16)):(z(),Ze(d,Ft({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{position:e.position,disabled:e.mergedDisabled||e.readonly,"prevent-focus":!0,"popup-visible":e.panelVisible,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:fe(()=>[$(c,Ft(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:fe(()=>[mt(e.$slots,"default",{},()=>[$(l,Ft(e.$attrs,{ref:"refInput",size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.mergedDisabled,readonly:!e.inputEditable||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.needConfirm?e.panelValue:e.selectedValue,format:e.inputFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter,onBlur:e.onInputBlur}),yo({"suffix-icon":fe(()=>[mt(e.$slots,"suffix-icon",{},()=>[$(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:fe(()=>[mt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter","onBlur"])])]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"]))}var sS=ze(Q$e,[["render",eOe]]),ER=we({name:"DatePicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:[String,Function]},dayStartOfWeek:{type:Number,default:0},showTime:{type:Boolean},timePickerProps:{type:Object},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},showNowBtn:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){return()=>$(sS,Ft(e,t,{mode:"date"}),n)}}),Iw=we({name:"WeekPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"gggg-wo"},valueFormat:{type:String,default:"YYYY-MM-DD"},dayStartOfWeek:{type:Number,default:0}},setup(e,{attrs:t,slots:n}){return()=>$(sS,Ft(e,t,{mode:"week"}),n)}}),Lw=we({name:"MonthPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>$(sS,Ft(e,t,{mode:"month"}),n)}}),Dw=we({name:"YearPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY"}},setup(e,{attrs:t,slots:n}){return()=>$(sS,Ft(e,t,{mode:"year"}),n)}}),Pw=we({name:"QuarterPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-[Q]Q"},valueFormat:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>$(sS,Ft(e,t,{mode:"quarter"}),n)}});function tOe(e){const{modelValue:t,defaultValue:n,format:r}=tn(e),i=F(()=>dc(iV(t.value),r.value)),a=F(()=>dc(iV(n.value),r.value)),[s,l]=Ya(xn(i.value)?xn(a.value)?[]:a.value:i.value);return It(i,()=>{xn(i.value)&&l([])}),{value:F(()=>i.value||s.value),setValue:l}}function nOe(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:i,defaultValue:a,selectedValue:s,format:l,onChange:c}=tn(e),d=F(()=>["date","week"].includes(r.value)),h=F(()=>d.value?"M":"y"),p=(Ce,Ve)=>Ce.isSame(Ve,h.value),{span:v,superSpan:g}=g0e(qt({mode:r})),y=F(()=>t?.value||r.value),S=F(()=>n?.value||r.value),k=F(()=>{var Ce;return(Ce=i.value)==null?void 0:Ce[0]}),C=F(()=>{var Ce;return(Ce=i.value)==null?void 0:Ce[1]}),x=F(()=>{var Ce;return(Ce=a.value)==null?void 0:Ce[0]}),E=F(()=>{var Ce;return(Ce=a.value)==null?void 0:Ce[1]}),_=Ce=>{c?.value&&c.value(Ce)},{headerValue:T,setHeaderValue:D,headerOperations:P,getDefaultLocalValue:M}=Y8(qt({mode:y,value:k,defaultValue:x,selectedValue:void 0,format:l,onChange:Ce=>{_([Ce,O.value])}})),{headerValue:O,setHeaderValue:L,headerOperations:B,getDefaultLocalValue:j}=Y8(qt({mode:S,value:C,defaultValue:E,selectedValue:void 0,format:l,onChange:Ce=>{_([T.value,Ce])}})),H=Ce=>{const Ve=p(T.value,Ce[0]),ge=p(O.value,Ce[1]);D(Ce[0],!1),L(Ce[1],!1),(!Ve||!ge)&&c?.value&&c?.value(Ce)};function U(Ce){let[Ve,ge]=i_(Ce);const xe=Xs.add(Ve,v.value,"M");return ge.isBefore(xe,h.value)&&(ge=xe),[Ve,ge]}function K(){var Ce,Ve;let ge=(Ce=s.value)==null?void 0:Ce[0],xe=(Ve=s.value)==null?void 0:Ve[1];return ge&&xe&&([ge,xe]=i_([ge,xe])),[ge,xe]}const[Y,ie]=K(),[te,W]=U([Y||T.value,ie||O.value]);D(te,!1),L(W,!1);const q=()=>{const Ce=M(),Ve=j();dn(()=>{const[ge,xe]=K(),[Ge,tt]=U([ge||Ce,xe||Ve]);H([Ge,tt])})},Q=F(()=>Xs.add(T.value,v.value,"M").isBefore(O.value,h.value)),se=F(()=>Xs.add(T.value,g.value,"M").isBefore(O.value,h.value)),ae=F(()=>{const Ce=["onSuperPrev"];return d.value&&Ce.push("onPrev"),Q.value&&d&&Ce.push("onNext"),se.value&&Ce.push("onSuperNext"),kf(P.value,Ce)}),re=F(()=>{const Ce=["onSuperNext"];return d.value&&Ce.push("onNext"),Q.value&&d.value&&Ce.push("onPrev"),se.value&&Ce.push("onSuperPrev"),kf(B.value,Ce)});return{startHeaderValue:T,endHeaderValue:O,startHeaderOperations:ae,endHeaderOperations:re,setHeaderValue:H,resetHeaderValue:q}}const rOe=we({name:"DateInputRange",components:{IconHover:Lo,IconClose:fs,FeedbackIcon:Q_},props:{size:{type:String},focused:{type:Boolean},focusedIndex:{type:Number},error:{type:Boolean},disabled:{type:[Boolean,Array],default:!1},readonly:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:Array,default:()=>[]},inputValue:{type:Array},value:{type:Array,default:()=>[]},format:{type:[String,Function],required:!0}},emits:["focused-index-change","update:focusedIndex","change","clear","press-enter"],setup(e,{emit:t,slots:n}){const{error:r,focused:i,disabled:a,size:s,value:l,format:c,focusedIndex:d,inputValue:h}=tn(e),{mergedSize:p,mergedDisabled:v,mergedError:g,feedback:y}=Do({size:s,error:r}),{mergedSize:S}=Aa(p),k=ue(),C=ue(),x=Y=>v.value?v.value:nr(a.value)?a.value[Y]:a.value,E=F(()=>x(0)),_=F(()=>x(1)),T=Re("picker"),D=F(()=>[T,`${T}-range`,`${T}-size-${S.value}`,{[`${T}-focused`]:i.value,[`${T}-disabled`]:E.value&&_.value,[`${T}-error`]:g.value,[`${T}-has-prefix`]:n.prefix}]);function P(Y){return[`${T}-input`,{[`${T}-input-active`]:Y===d?.value}]}function M(Y){var ie,te;if(h?.value)return(ie=h?.value)==null?void 0:ie[Y];const W=(te=l?.value)==null?void 0:te[Y];if(W&&Hc(W))return Sn(c.value)?c.value(W):W.format(c.value)}const O=F(()=>M(0)),L=F(()=>M(1));function B(Y){t("focused-index-change",Y),t("update:focusedIndex",Y)}function j(Y){Y.stopPropagation(),t("change",Y)}function H(){t("press-enter")}function U(Y){Y.preventDefault()}function K(Y){t("clear",Y)}return{prefixCls:T,classNames:D,refInput0:k,refInput1:C,disabled0:E,disabled1:_,mergedDisabled:v,getDisabled:x,getInputWrapClassName:P,displayValue0:O,displayValue1:L,changeFocusedInput:B,onChange:j,onPressEnter:H,onPressTab:U,onClear:K,feedback:y}},methods:{focus(e){const t=et(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!xn(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),iOe=["disabled","placeholder","value"],oOe=["disabled","placeholder","value"];function sOe(e,t,n,r,i,a){const s=Te("IconClose"),l=Te("IconHover"),c=Te("FeedbackIcon");return z(),X("div",{class:de(e.classNames)},[e.$slots.prefix?(z(),X("div",{key:0,class:de(`${e.prefixCls}-prefix`)},[mt(e.$slots,"prefix")],2)):Ie("v-if",!0),I("div",{class:de(e.getInputWrapClassName(0))},[I("input",Ft({ref:"refInput0",disabled:e.disabled0,placeholder:e.placeholder[0],value:e.displayValue0},e.readonly?{readonly:!0}:{},{onInput:t[0]||(t[0]=(...d)=>e.onChange&&e.onChange(...d)),onKeydown:[t[1]||(t[1]=df((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),t[2]||(t[2]=df((...d)=>e.onPressTab&&e.onPressTab(...d),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,iOe)],2),I("span",{class:de(`${e.prefixCls}-separator`)},[mt(e.$slots,"separator",{},()=>[t[8]||(t[8]=He(" - "))])],2),I("div",{class:de(e.getInputWrapClassName(1))},[I("input",Ft({ref:"refInput1",disabled:e.disabled1,placeholder:e.placeholder[1],value:e.displayValue1},e.readonly?{readonly:!0}:{},{onInput:t[4]||(t[4]=(...d)=>e.onChange&&e.onChange(...d)),onKeydown:[t[5]||(t[5]=df((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),t[6]||(t[6]=df((...d)=>e.onPressTab&&e.onPressTab(...d),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,oOe)],2),I("div",{class:de(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(z(),Ze(l,{key:0,prefix:e.prefixCls,class:de(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:fe(()=>[$(s)]),_:1},8,["prefix","class","onClick"])):Ie("v-if",!0),I("span",{class:de(`${e.prefixCls}-suffix-icon`)},[mt(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ze(c,{key:1,type:e.feedback},null,8,["type"])):Ie("v-if",!0)],2)],2)}var k0e=ze(rOe,[["render",sOe]]);const aOe=we({name:"DateRangePikerPanel",components:{PanelShortcuts:o0e,PanelFooter:m0e,RenderFunction:Jh,DatePanel:IH,WeekPanel:d0e,MonthPanel:f0e,YearPanel:h0e,QuarterPanel:p0e},props:{mode:{type:String,default:"date"},value:{type:Array,default:()=>[]},footerValue:{type:Array},timePickerValue:{type:Array},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},startHeaderProps:{type:Object,default:()=>({})},endHeaderProps:{type:Object,default:()=>({})},confirmBtnDisabled:{type:Boolean},disabled:{type:Array,default:()=>[!1,!1]},visible:{type:Boolean},startHeaderMode:{type:String},endHeaderMode:{type:String},abbreviation:{type:Boolean}},emits:["cell-click","cell-mouse-enter","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","start-header-label-click","end-header-label-click","start-header-select","end-header-select"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:i,format:a,hideTrigger:s,value:l,disabledDate:c,disabledTime:d,startHeaderProps:h,endHeaderProps:p,dateRender:v,visible:g,startHeaderMode:y,endHeaderMode:S}=tn(e),k=F(()=>nr(r.value)&&r.value.length),C=F(()=>[`${n.value}-range-container`,{[`${n.value}-range-container-panel-only`]:s.value,[`${n.value}-range-container-shortcuts-placement-left`]:k.value&&i.value==="left",[`${n.value}-range-container-shortcuts-placement-right`]:k.value&&i.value==="right"}]),x=ue("date");It(g,(se,ae)=>{se&&!ae&&(x.value="date")});function E(se){return dc(iV(Sn(se.value)?se.value():se.value),se.format||a.value)}function _(se){t("shortcut-click",E(se),se)}function T(se){t("shortcut-mouse-enter",E(se))}function D(se){t("shortcut-mouse-leave",E(se))}function P(se){t("cell-click",se)}function M(se){t("cell-mouse-enter",se)}function O(){t("confirm")}function L(se){t("time-picker-select",se,"start")}function B(se){t("time-picker-select",se,"end")}function j(se){t("start-header-label-click",se)}function H(se){t("end-header-label-click",se)}function U(se){t("start-header-select",se)}function K(se){t("end-header-select",se)}function Y(se){return Sn(c?.value)?ae=>{var re;return((re=c?.value)==null?void 0:re.call(c,ae,se===0?"start":"end"))||!1}:void 0}function ie(se){return Sn(d?.value)?ae=>{var re;return((re=d?.value)==null?void 0:re.call(d,ae,se===0?"start":"end"))||!1}:void 0}function te(se){return Sn(v?.value)?ae=>{var re;const Ce={...ae,type:se===0?"start":"end"};return(re=v?.value)==null?void 0:re.call(v,Ce)}:void 0}const W=qt({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:T,onItemMouseLeave:D}),q=F(()=>({...h.value,rangeValues:l.value,disabledDate:Y(0),dateRender:te(0),onSelect:y.value?U:P,onCellMouseEnter:M,onHeaderLabelClick:j})),Q=F(()=>({...p.value,rangeValues:l.value,disabledDate:Y(1),dateRender:te(1),onSelect:S.value?K:P,onCellMouseEnter:M,onHeaderLabelClick:H}));return{pick:kf,classNames:C,showShortcuts:k,shortcutsProps:W,startPanelProps:q,endPanelProps:Q,getDisabledTimeFunc:ie,onConfirmBtnClick:O,currentDateView:x,onStartTimePickerSelect:L,onEndTimePickerSelect:B,onStartHeaderPanelSelect:U,onEndHeaderPanelSelect:K}}});function lOe(e,t,n,r,i,a){const s=Te("PanelShortcuts"),l=Te("YearPanel"),c=Te("MonthPanel"),d=Te("WeekPanel"),h=Te("QuarterPanel"),p=Te("DatePanel"),v=Te("RenderFunction"),g=Te("PanelFooter");return z(),X("div",{class:de(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(z(),Ze(s,qi(Ft({key:0},e.shortcutsProps)),null,16)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-range-panel-wrapper`)},[Ie(" panel "),I("div",{class:de(`${e.prefixCls}-range`)},[I("div",{class:de(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(z(),X(Pt,{key:0},[e.startHeaderMode==="year"?(z(),Ze(l,qi(Ft({key:0},e.startPanelProps)),null,16)):Ie("v-if",!0),e.endHeaderMode==="year"?(z(),Ze(l,qi(Ft({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(z(),Ze(c,Ft({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(z(),Ze(c,Ft({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Ie("v-if",!0)],64)):(z(),X(Pt,{key:1},[Ie(" week "),e.mode==="week"?(z(),X(Pt,{key:0},[$(d,Ft(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),$(d,Ft(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(z(),X(Pt,{key:1},[Ie(" month "),$(c,Ft(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),$(c,Ft(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(z(),X(Pt,{key:2},[Ie(" year "),$(l,qi(xa(e.startPanelProps)),null,16),$(l,qi(xa(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(z(),X(Pt,{key:3},[Ie(" quarter "),$(h,qi(xa(e.startPanelProps)),null,16),$(h,qi(xa(e.endPanelProps)),null,16)],64)):(z(),X(Pt,{key:4},[Ie(" date "),$(p,Ft({currentView:e.currentDateView,"onUpdate:currentView":t[0]||(t[0]=y=>e.currentDateView=y)},e.startPanelProps,{"is-range":"",value:e.value&&e.value[0],"footer-value":e.footerValue&&e.footerValue[0],"time-picker-value":e.timePickerValue&&e.timePickerValue[0],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(0),disabled:e.disabled[0],onTimePickerSelect:e.onStartTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"]),$(p,Ft({currentView:e.currentDateView,"onUpdate:currentView":t[1]||(t[1]=y=>e.currentDateView=y)},e.endPanelProps,{"is-range":"",value:e.value&&e.value[1],"footer-value":e.footerValue&&e.footerValue[1],"time-picker-value":e.timePickerValue&&e.timePickerValue[1],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(1),disabled:e.disabled[1],onTimePickerSelect:e.onEndTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"])],64))],64))],2)],2),Ie(" footer "),$(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:fe(()=>[e.$slots.extra?mt(e.$slots,"extra",{key:0}):(z(),Ze(v,{key:1,"render-func":e.extra},null,8,["render-func"]))]),key:"0"}:void 0,e.showShortcuts&&e.shortcutsPosition==="bottom"?{name:"btn",fn:fe(()=>[$(s,qi(xa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-confirm-btn","confirm-btn-disabled","onConfirmBtnClick"])],2),e.showShortcuts&&e.shortcutsPosition==="right"?(z(),Ze(s,qi(Ft({key:1},e.shortcutsProps)),null,16)):Ie("v-if",!0)],2)}var uOe=ze(aOe,[["render",lOe]]);function cOe(e){const{timePickerProps:t,selectedValue:n}=tn(e),r=F(()=>{var C;return(C=n?.value)==null?void 0:C[0]}),i=F(()=>{var C;return(C=n?.value)==null?void 0:C[1]}),a=F(()=>{var C;return(C=t?.value)==null?void 0:C.defaultValue}),s=F(()=>nr(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=F(()=>nr(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,d,h]=aV(qt({timePickerProps:s,selectedValue:r})),[p,v,g]=aV(qt({timePickerProps:l,selectedValue:i})),y=F(()=>[c.value,p.value]);function S(C){C&&(d(C[0]),v(C[1]))}function k(){h(),g()}return[y,S,k]}const dOe=we({name:"RangePicker",components:{RangePickerPanel:uOe,DateRangeInput:k0e,Trigger:va,IconCalendar:oS},inheritAttrs:!1,props:{mode:{type:String,default:"date"},modelValue:{type:Array},defaultValue:{type:Array},pickerValue:{type:Array},defaultPickerValue:{type:Array},disabled:{type:[Boolean,Array],default:!1},dayStartOfWeek:{type:Number,default:0},format:{type:String},valueFormat:{type:String},showTime:{type:Boolean},timePickerProps:{type:Object},placeholder:{type:Array},disabledDate:{type:Function},disabledTime:{type:Function},separator:{type:String},exchangeTime:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},triggerProps:{type:Object},unmountOnClose:{type:Boolean},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,showTime:i,format:a,modelValue:s,defaultValue:l,popupVisible:c,defaultPopupVisible:d,placeholder:h,timePickerProps:p,disabled:v,disabledDate:g,disabledTime:y,locale:S,pickerValue:k,defaultPickerValue:C,valueFormat:x,size:E,error:_,dayStartOfWeek:T,exchangeTime:D,previewShortcut:P,showConfirmBtn:M}=tn(e),{locale:O}=No(),L=Pn(Za,void 0);Os(()=>{Ppe(O.value,T.value)});const B=F(()=>{var st;return!(!D.value||!((st=L?.exchangeTime)==null||st))}),{mergedSize:j,mergedDisabled:H,mergedError:U,eventHandlers:K}=Do({size:E,error:_}),Y=_0e(qt({locale:S})),ie=Re("picker"),te=F(()=>h?.value||{date:Y("datePicker.rangePlaceholder.date"),month:Y("datePicker.rangePlaceholder.month"),year:Y("datePicker.rangePlaceholder.year"),week:Y("datePicker.rangePlaceholder.week"),quarter:Y("datePicker.rangePlaceholder.quarter")}[r.value]||Y("datePicker.rangePlaceholder.date")),{format:W,valueFormat:q,parseValueFormat:Q}=y0e(qt({mode:r,format:a,showTime:i,valueFormat:x})),se=F(()=>{const st=v.value===!0||H.value||nr(v.value)&&v.value[0]===!0,ut=v.value===!0||H.value||nr(v.value)&&v.value[1]===!0;return[st,ut]}),ae=F(()=>se.value[0]&&se.value[1]);function re(st=0){return se.value[st]?st^1:st}const Ce=ue(),Ve=ue(re()),ge=F(()=>{const st=Ve.value,ut=st^1;return se.value[ut]?st:ut}),xe=F(()=>se.value[Ve.value^1]),{value:Ge,setValue:tt}=tOe(qt({modelValue:s,defaultValue:l,format:Q})),[Ue,_e]=Ya(),[ve,me]=Ya(),Oe=F(()=>{var st;return(st=Ue.value)!=null?st:Ge.value}),qe=F(()=>{var st,ut;return(ut=(st=ve.value)!=null?st:Ue.value)!=null?ut:Ge.value}),[Ke,at]=Ya(),ft=ue(),ct=ue(),[wt,Ct]=pa(d.value,qt({value:c})),Rt=st=>{wt.value!==st&&(Ct(st),t("popup-visible-change",st),t("update:popupVisible",st))},{startHeaderValue:Ht,endHeaderValue:Jt,startHeaderOperations:rn,endHeaderOperations:vt,resetHeaderValue:Fe,setHeaderValue:Me}=nOe(qt({mode:r,startHeaderMode:ft,endHeaderMode:ct,value:k,defaultValue:C,selectedValue:qe,format:Q,onChange:st=>{const ut=wR(st,q.value),Mt=ff(st,Q.value),Qt=Cu(st);t("picker-value-change",ut,Qt,Mt),t("update:pickerValue",ut)}}));function Ee(st){ft.value=st}function We(st){ct.value=st}function $e(st){let ut=Ht.value;ut=ut.set("year",st.year()),ft.value==="month"&&(ut=ut.set("month",st.month())),Me([ut,Jt.value]),ft.value=void 0}function dt(st){let ut=Jt.value;ut=ut.set("year",st.year()),ct.value==="month"&&(ut=ut.set("month",st.month())),Me([Ht.value,ut]),ct.value=void 0}const Qe=ue([qe.value[0]||Xa(),qe.value[1]||Xa()]);It(qe,()=>{const[st,ut]=qe.value;Qe.value[0]=st||Qe.value[0],Qe.value[1]=ut||Qe.value[1]});const[Le,ht,Vt]=cOe(qt({timePickerProps:p,selectedValue:qe})),Ut=F(()=>r.value==="date"&&i.value),Lt=F(()=>Ut.value||p.value),Xt=b0e(qt({mode:r,isRange:!0,showTime:i,disabledDate:g,disabledTime:y})),Dn=F(()=>Ut.value||M.value),rr=F(()=>Dn.value&&(!zp(Oe.value)||Xt(Oe.value[0],"start")||Xt(Oe.value[1],"end")));It(wt,st=>{ft.value=void 0,ct.value=void 0,_e(void 0),me(void 0),st&&(Fe(),Vt(),Ve.value=re(Ve.value),dn(()=>Xn(Ve.value))),st||at(void 0)}),It(Ve,()=>{e.disabledInput&&(Xn(Ve.value),at(void 0))});function qr(st,ut){var Mt,Qt;const Gt=st?wR(st,q.value):void 0,pn=ff(st,Q.value),mn=Cu(st);yH(st,Ge.value)&&(t("update:modelValue",Gt),t("change",Gt,mn,pn),(Qt=(Mt=K.value)==null?void 0:Mt.onChange)==null||Qt.call(Mt)),ut&&t("ok",Gt,mn,pn)}function Wt(st){let ut=i_(st);return Lt.value&&!B.value&&(ut=[wr(ut[0],st[0]),wr(ut[1],st[1])]),ut}function Yt(st,ut,Mt){if(Xt(st?.[0],"start")||Xt(st?.[1],"end"))return;let Qt=st?[...st]:void 0;zp(Qt)&&(Qt=Wt(Qt)),qr(Qt,Mt),tt(Qt||[]),_e(void 0),me(void 0),at(void 0),ft.value=void 0,ct.value=void 0,Tl(ut)&&Rt(ut)}function sn(st){const ut=wR(st,q.value),Mt=ff(st,Q.value),Qt=Cu(st);t("select",ut,Qt,Mt)}function An(st,ut){const{emitSelect:Mt=!1,updateHeader:Qt=!1}=ut||{};let Gt=[...st];zp(Gt)&&(Gt=Wt(Gt)),_e(Gt),me(void 0),at(void 0),ft.value=void 0,ct.value=void 0,Mt&&sn(Gt),Qt&&Fe()}function un(st,ut){const{updateHeader:Mt=!1}=ut||{};me(st),at(void 0),Mt&&Fe()}function Xn(st){Ce.value&&Ce.value.focus&&Ce.value.focus(st)}function wr(st,ut){return Lt.value?s0e(Xa(),st,ut):st}function ro(st){Rt(st)}function Ot(st){if(Ue.value&&qe.value[ge.value]&&(!Dn.value||!zp(Ue.value))){const ut=[...qe.value],Mt=wr(st,Le.value[Ve.value]);ut[Ve.value]=Mt,un(ut)}}function bn(st=!1){return xe.value?[...Ge.value]:Ue.value?st||!zp(Ue.value)?[...Ue.value]:[]:st?[...Ge.value]:[]}function kr(st){const ut=bn(),Mt=wr(st,Le.value[Ve.value]);ut[Ve.value]=Mt,sn(ut),!Dn.value&&zp(ut)?Yt(ut,!1):(An(ut),zp(ut)?Ve.value=0:Ve.value=ge.value)}function sr(st,ut){const Mt=ut==="start"?0:1,Qt=wr(Le.value[Mt],st),Gt=[...Le.value];Gt[Mt]=Qt,ht(Gt);const pn=bn(!0);pn[Mt]&&(pn[Mt]=Qt,An(pn,{emitSelect:!0}))}let zr;ii(()=>{clearTimeout(zr)});function oe(st){clearTimeout(zr),un(st,{updateHeader:!0})}function ne(){clearTimeout(zr),zr=setTimeout(()=>{me(void 0),at(void 0),Fe()},100)}function ee(st,ut){t("select-shortcut",ut),Yt(st,!1)}function J(){Yt(qe.value,!1,!0)}function ce(st){st.stopPropagation(),Yt(void 0),t("clear")}function Se(st){Rt(!0);const ut=st.target.value;if(!ut){at(void 0);return}const Mt=ff(qe.value,W.value),Qt=nr(Ke.value)?[...Ke.value]:Mt||[];if(Qt[Ve.value]=ut,at(Qt),!K8(ut,W.value))return;const Gt=Ms(ut,W.value);if(Xt(Gt,Ve.value===0?"start":"end"))return;const pn=nr(qe.value)?[...qe.value]:[];pn[Ve.value]=Gt,An(pn,{updateHeader:!0})}function ke(){K9e(qe.value)?Yt(qe.value,!1):Ve.value=ge.value}const Ae=F(()=>({format:W.value,...Ea(p?.value||{},["defaultValue"]),visible:wt.value})),nt=F(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),ot=qt({headerValue:Ht,headerOperations:rn,headerIcons:nt}),gt=qt({headerValue:Jt,headerOperations:vt,headerIcons:nt}),De=F(()=>({...kf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:ie,format:Q.value,value:qe.value,showConfirmBtn:Dn.value,confirmBtnDisabled:rr.value,timePickerValue:Le.value,timePickerProps:Ae.value,extra:n.extra,dateRender:n.cell,startHeaderProps:ot,endHeaderProps:gt,footerValue:Qe.value,disabled:se.value,visible:wt.value,onCellClick:kr,onCellMouseEnter:Ot,onShortcutClick:ee,onShortcutMouseEnter:P.value?oe:void 0,onShortcutMouseLeave:P.value?ne:void 0,onConfirm:J,onTimePickerSelect:sr,startHeaderMode:ft.value,endHeaderMode:ct.value,onStartHeaderLabelClick:Ee,onEndHeaderLabelClick:We,onStartHeaderSelect:$e,onEndHeaderSelect:dt}));return{prefixCls:ie,refInput:Ce,computedFormat:W,computedPlaceholder:te,panelVisible:wt,panelValue:qe,inputValue:Ke,focusedIndex:Ve,triggerDisabled:ae,mergedSize:j,mergedError:U,onPanelVisibleChange:ro,onInputClear:ce,onInputChange:Se,onInputPressEnter:ke,rangePanelProps:De}}});function fOe(e,t,n,r,i,a){const s=Te("IconCalendar"),l=Te("DateRangeInput"),c=Te("RangePickerPanel"),d=Te("Trigger");return e.hideTrigger?(z(),Ze(c,qi(Ft({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(z(),Ze(d,Ft({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{"unmount-on-close":e.unmountOnClose,position:e.position,disabled:e.triggerDisabled||e.readonly,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:fe(()=>[$(c,qi(xa(e.rangePanelProps)),null,16)]),default:fe(()=>[mt(e.$slots,"default",{},()=>[$(l,Ft({ref:"refInput"},e.$attrs,{focusedIndex:e.focusedIndex,"onUpdate:focusedIndex":t[0]||(t[0]=h=>e.focusedIndex=h),size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.disabled,readonly:e.readonly||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.panelValue,format:e.computedFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter}),yo({"suffix-icon":fe(()=>[mt(e.$slots,"suffix-icon",{},()=>[$(s)])]),separator:fe(()=>[mt(e.$slots,"separator",{},()=>[He(Ne(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:fe(()=>[mt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["focusedIndex","size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter"])])]),_:3},16,["unmount-on-close","position","disabled","popup-visible","popup-container","onPopupVisibleChange"]))}var Rw=ze(dOe,[["render",fOe]]);const x0e=Object.assign(ER,{WeekPicker:Iw,MonthPicker:Lw,YearPicker:Dw,QuarterPicker:Pw,RangePicker:Rw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+ER.name,ER),e.component(n+Dw.name,Dw),e.component(n+Pw.name,Pw),e.component(n+Lw.name,Lw),e.component(n+Iw.name,Iw),e.component(n+Rw.name,Rw)}}),Z8=["xxl","xl","lg","md","sm","xs"],Cx={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};let gv=[],hOe=-1,Ex={};const J8={matchHandlers:{},dispatch(e,t){return Ex=e,gv.length<1?!1:(gv.forEach(n=>{n.func(Ex,t)}),!0)},subscribe(e){gv.length===0&&this.register();const t=(++hOe).toString();return gv.push({token:t,func:e}),e(Ex,null),t},unsubscribe(e){gv=gv.filter(t=>t.token!==e),gv.length===0&&this.unregister()},unregister(){Object.keys(Cx).forEach(e=>{const t=Cx[e];if(!t)return;const n=this.matchHandlers[t];n&&n.mql&&n.listener&&(n.mql.removeEventListener?n.mql.removeEventListener("change",n.listener):n.mql.removeListener(n.listener))})},register(){Object.keys(Cx).forEach(e=>{const t=Cx[e];if(!t)return;const n=({matches:i})=>{this.dispatch({...Ex,[e]:i},e)},r=window.matchMedia(t);r.addEventListener?r.addEventListener("change",n):r.addListener(n),this.matchHandlers[t]={mql:r,listener:n},n(r)})}};function Ire(e){return gr(e)}function Lh(e,t,n=!1){const r=ue({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),i=F(()=>{let s=t;if(Ire(e.value))for(let l=0;l{a=J8.subscribe(s=>{Ire(e.value)&&(r.value=s)})}),ii(()=>{a&&J8.unsubscribe(a)}),i}var TR=we({name:"Descriptions",props:{data:{type:Array,default:()=>[]},column:{type:[Number,Object],default:3},title:String,layout:{type:String,default:"horizontal"},align:{type:[String,Object],default:"left"},size:{type:String},bordered:{type:Boolean,default:!1},labelStyle:{type:Object},valueStyle:{type:Object},tableLayout:{type:String,default:"auto"}},setup(e,{slots:t}){const{column:n,size:r}=tn(e),i=Re("descriptions"),{mergedSize:a}=Aa(r),s=Lh(n,3,!0),l=F(()=>{var T;return(T=gr(e.align)?e.align.label:e.align)!=null?T:"left"}),c=F(()=>{var T;return(T=gr(e.align)?e.align.value:e.align)!=null?T:"left"}),d=F(()=>({textAlign:l.value,...e.labelStyle})),h=F(()=>({textAlign:c.value,...e.valueStyle})),p=T=>{const D=[];let P=[],M=0;const O=()=>{if(P.length){const L=s.value-M;P[P.length-1].span+=L,D.push(P)}};return T.forEach(L=>{var B,j;const H=Math.min((j=Wi(L)?(B=L.props)==null?void 0:B.span:L.span)!=null?j:1,s.value);M+H>s.value&&(O(),P=[],M=0),P.push({data:L,span:H}),M+=H}),O(),D},v=F(()=>{var T;return p((T=e.data)!=null?T:[])}),g=(T,D)=>{var P,M,O,L,B;return Wi(T)?M5(T,T.children)&&((M=(P=T.children).label)==null?void 0:M.call(P))||((O=T.props)==null?void 0:O.label):(B=(L=t.label)==null?void 0:L.call(t,{label:T.label,index:D,data:T}))!=null?B:Sn(T.label)?T.label():T.label},y=(T,D)=>{var P,M;return Wi(T)?T:(M=(P=t.value)==null?void 0:P.call(t,{value:T.value,index:D,data:T}))!=null?M:Sn(T.value)?T.value():T.value},S=T=>$(Pt,null,[$("tr",{class:`${i}-row`},[T.map((D,P)=>$("td",{key:`label-${P}`,class:[`${i}-item-label`,`${i}-item-label-block`],style:d.value,colspan:D.span},[g(D.data,P)]))]),$("tr",{class:`${i}-row`},[T.map((D,P)=>$("td",{key:`value-${P}`,class:[`${i}-item-value`,`${i}-item-value-block`],style:h.value,colspan:D.span},[y(D.data,P)]))])]),k=(T,D)=>$("tr",{class:`${i}-row`,key:`tr-${D}`},[T.map(P=>$(Pt,null,[$("td",{class:[`${i}-item-label`,`${i}-item-label-block`],style:d.value},[g(P.data,D)]),$("td",{class:[`${i}-item-value`,`${i}-item-value-block`],style:h.value,colspan:P.span*2-1},[y(P.data,D)])]))]),C=(T,D)=>$("tr",{class:`${i}-row`,key:`inline-${D}`},[T.map((P,M)=>$("td",{key:`item-${M}`,class:`${i}-item`,colspan:P.span},[$("div",{class:[`${i}-item-label`,`${i}-item-label-inline`],style:d.value},[g(P.data,M)]),$("div",{class:[`${i}-item-value`,`${i}-item-value-inline`],style:h.value},[y(P.data,M)])]))]),x=(T,D)=>["inline-horizontal","inline-vertical"].includes(e.layout)?C(T,D):e.layout==="vertical"?S(T):k(T,D),E=F(()=>[i,`${i}-layout-${e.layout}`,`${i}-size-${a.value}`,{[`${i}-border`]:e.bordered},{[`${i}-table-layout-fixed`]:e.tableLayout==="fixed"}]),_=()=>{var T,D;const P=(D=(T=t.title)==null?void 0:T.call(t))!=null?D:e.title;return P?$("div",{class:`${i}-title`},[P]):null};return()=>{const T=t.default?p(yf(t.default())):v.value;return $("div",{class:E.value},[_(),$("div",{class:`${i}-body`},[$("table",{class:`${i}-table`},[$("tbody",null,[T.map((D,P)=>x(D,P))])])])])}}});const pOe=we({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Re("descriptions")}}});function vOe(e,t,n,r,i,a){return mt(e.$slots,"default")}var Mw=ze(pOe,[["render",vOe]]);const mOe=Object.assign(TR,{DescriptionsItem:Mw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+TR.name,TR),e.component(n+Mw.name,Mw)}});var AR=we({name:"Divider",props:{direction:{type:String,default:"horizontal"},orientation:{type:String,default:"center"},type:{type:String},size:{type:Number},margin:{type:[Number,String]}},setup(e,{slots:t}){const n=Re("divider"),r=F(()=>e.direction==="horizontal"),i=F(()=>{const a={};if(e.size&&(a[r.value?"border-bottom-width":"border-left-width"]=et(e.size)?`${e.size}px`:e.size),e.type&&(a[r.value?"border-bottom-style":"border-left-style"]=e.type),!xn(e.margin)){const s=et(e.margin)?`${e.margin}px`:e.margin;a.margin=r.value?`${s} 0`:`0 ${s}`}return a});return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t),l=[n,`${n}-${e.direction}`,{[`${n}-with-text`]:s}];return $("div",{role:"separator",class:l,style:i.value},[s&&e.direction==="horizontal"&&$("span",{class:[`${n}-text`,`${n}-text-${e.orientation}`]},[s])])}}});const gOe=Object.assign(AR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+AR.name,AR)}}),C0e=e=>{const t=ue(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const a=e.value;if(!t.value&&a.style.overflow!=="hidden"){const s=A7e(a);(s>0||T7e(a))&&(n.overflow=a.style.overflow,n.width=a.style.width,n.boxSizing=a.style.boxSizing,a.style.overflow="hidden",a.style.width=`${a.offsetWidth-s}px`,a.style.boxSizing="border-box",t.value=!0)}}},resetOverflow:()=>{if(e.value&&t.value){const a=e.value;a.style.overflow=n.overflow,a.style.width=n.width,a.style.boxSizing=n.boxSizing,t.value=!1}}}},yOe=["top","right","bottom","left"],bOe=we({name:"Drawer",components:{ClientOnly:dH,ArcoButton:Xo,IconHover:Lo,IconClose:fs},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>yOe.includes(e)},title:String,mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},unmountOnClose:Boolean,width:{type:[Number,String],default:250},height:{type:[Number,String],default:250},popupContainer:{type:[String,Object],default:"body"},drawerStyle:{type:Object},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{popupContainer:n}=tn(e),r=Re("drawer"),{t:i}=No(),a=ue(e.defaultVisible),s=F(()=>{var H;return(H=e.visible)!=null?H:a.value}),l=ue(!1),c=F(()=>e.okLoading||l.value),{teleportContainer:d,containerRef:h}=fH({popupContainer:n,visible:s}),p=ue(s.value);let v=!1;const g=H=>{e.escToClose&&H.key===Ho.ESC&&C()&&D(H)},y=()=>{e.escToClose&&!v&&(v=!0,Mi(document.documentElement,"keydown",g))},S=()=>{v&&(v=!1,no(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:C}=l3("dialog",{visible:s}),x=F(()=>h?.value===document.body);let E=0;const _=()=>{E++,l.value&&(l.value=!1),a.value=!1,t("update:visible",!1)},T=async H=>{const U=E,K=await new Promise(async Y=>{var ie;if(Sn(e.onBeforeOk)){let te=e.onBeforeOk((W=!0)=>Y(W));if((Lm(te)||!Tl(te))&&(l.value=!0),Lm(te))try{te=(ie=await te)!=null?ie:!0}catch(W){throw te=!1,W}Tl(te)&&Y(te)}else Y(!0)});U===E&&(K?(t("ok",H),_()):l.value&&(l.value=!1))},D=H=>{var U;let K=!0;Sn(e.onBeforeCancel)&&(K=(U=e.onBeforeCancel())!=null?U:!1),K&&(t("cancel",H),_())},P=H=>{e.maskClosable&&D(H)},M=()=>{s.value&&t("open")},O=()=>{s.value||(p.value=!1,B(),t("close"))},{setOverflowHidden:L,resetOverflow:B}=C0e(h);hn(()=>{s.value&&(p.value=!0,L(),y())}),_o(()=>{B(),S()}),It(s,H=>{a.value!==H&&(a.value=H),H?(t("beforeOpen"),p.value=!0,L(),y()):(t("beforeClose"),S())});const j=F(()=>{var H;const U={[e.placement]:0,...(H=e.drawerStyle)!=null?H:{}};return["right","left"].includes(e.placement)?U.width=et(e.width)?`${e.width}px`:e.width:U.height=et(e.height)?`${e.height}px`:e.height,U});return{prefixCls:r,style:j,t:i,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:T,handleCancel:D,handleOpen:M,handleClose:O,handleMask:P,isFixed:x,teleportContainer:d}}});function _Oe(e,t,n,r,i,a){const s=Te("icon-close"),l=Te("icon-hover"),c=Te("arco-button"),d=Te("client-only");return z(),Ze(d,null,{default:fe(()=>[(z(),Ze(Zm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ai((z(),X("div",Ft({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[$(Cs,{name:"fade-drawer",appear:""},{default:fe(()=>[e.mask?Ai((z(),X("div",{key:0,class:de(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[es,e.computedVisible]]):Ie("v-if",!0)]),_:1}),$(Cs,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:fe(()=>[Ai(I("div",{class:de(e.prefixCls),style:Ye(e.style)},[e.header?(z(),X("div",{key:0,class:de(`${e.prefixCls}-header`)},[mt(e.$slots,"header",{},()=>[e.$slots.title||e.title?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ie("v-if",!0),e.closable?(z(),X("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:de(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[$(l,null,{default:fe(()=>[$(s)]),_:1})],2)):Ie("v-if",!0)])],2)):Ie("v-if",!0),I("div",{class:de([`${e.prefixCls}-body`,e.bodyClass]),style:Ye(e.bodyStyle)},[mt(e.$slots,"default")],6),e.footer?(z(),X("div",{key:1,class:de(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer",{},()=>[e.hideCancel?Ie("v-if",!0):(z(),Ze(c,Ft({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:fe(()=>[He(Ne(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),$(c,Ft({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:fe(()=>[He(Ne(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Ie("v-if",!0)],6),[[es,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[es,e.computedVisible||e.mounted]]):Ie("v-if",!0)],8,["to","disabled"]))]),_:3})}var $w=ze(bOe,[["render",_Oe]]);const Lre=(e,t)=>{let n=$5("drawer");const r=()=>{d.component&&(d.component.props.visible=!1),Sn(e.onOk)&&e.onOk()},i=()=>{d.component&&(d.component.props.visible=!1),Sn(e.onCancel)&&e.onCancel()},a=async()=>{await dn(),n&&(Jc(null,n),document.body.removeChild(n)),n=null,Sn(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,v])=>{d.component.props[p]=v})},d=$($w,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:i,onClose:a},...Ea(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),header:typeof e.header=="boolean"?e.header:void 0,footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Wl(e.content),header:typeof e.header!="boolean"?Wl(e.header):void 0,title:Wl(e.title),footer:typeof e.footer!="boolean"?Wl(e.footer):void 0});return(t??lV._context)&&(d.appContext=t??lV._context),Jc(d,n),document.body.appendChild(n),{close:s,update:l}},lV=Object.assign($w,{open:Lre,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+$w.name,$w);const r={open:(i,a=e._context)=>Lre(i,a)};e.config.globalProperties.$drawer=r},_context:null});function w0e(e){return e===Object(e)&&Object.keys(e).length!==0}function SOe(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var i=r.el,a=r.top,s=r.left;i.scroll&&n?i.scroll({top:a,left:s,behavior:t}):(i.scrollTop=a,i.scrollLeft=s)})}function kOe(e){return e===!1?{block:"end",inline:"nearest"}:w0e(e)?e:{block:"start",inline:"nearest"}}function E0e(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(w0e(t)&&typeof t.behavior=="function")return t.behavior(n?Jj(e,t):[]);if(n){var r=kOe(t);return SOe(Jj(e,r),r.behavior)}}const Dre=["success","warning","error","validating"],xOe=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||Dre.indexOf(r)>Dre.indexOf(t))&&(t=e[n])}return t},COe=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},T0e=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},wOe=we({name:"Form",props:{model:{type:Object,required:!0},layout:{type:String,default:"horizontal"},size:{type:String},labelColProps:{type:Object,default:()=>({span:5,offset:0})},wrapperColProps:{type:Object,default:()=>({span:19,offset:0})},labelColStyle:Object,wrapperColStyle:Object,labelAlign:{type:String,default:"right"},disabled:{type:Boolean,default:void 0},rules:{type:Object},autoLabelWidth:{type:Boolean,default:!1},id:{type:String},scrollToFirstError:{type:Boolean,default:!1}},emits:{submit:(e,t)=>!0,submitSuccess:(e,t)=>!0,submitFailed:(e,t)=>!0},setup(e,{emit:t}){const n=Re("form"),r=ue(),{id:i,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:v,size:g,rules:y}=tn(e),{mergedSize:S}=Aa(g),k=F(()=>e.layout==="horizontal"&&e.autoLabelWidth),C=[],x=[],E=qt({}),_=F(()=>Math.max(...Object.values(E))),T=te=>{te&&te.field&&C.push(te)},D=te=>{te&&te.field&&C.splice(C.indexOf(te),1)},P=te=>{C.forEach(W=>{te[W.field]&&W.setField(te[W.field])})},M=(te,W)=>{W&&E[W]!==te&&(E[W]=te)},O=te=>{te&&delete E[te]},L=te=>{const W=te?[].concat(te):[];C.forEach(q=>{(W.length===0||W.includes(q.field))&&q.resetField()})},B=te=>{const W=te?[].concat(te):[];C.forEach(q=>{(W.length===0||W.includes(q.field))&&q.clearValidate()})},j=(te,W)=>{const Q=(r.value||document.body).querySelector(`#${T0e(e.id,te)}`);Q&&E0e(Q,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...W})},H=te=>{const W=Tl(e.scrollToFirstError)?void 0:e.scrollToFirstError;j(te,W)},U=te=>{const W=[];return C.forEach(q=>{W.push(q.validate())}),Promise.all(W).then(q=>{const Q={};let se=!1;return q.forEach(ae=>{ae&&(se=!0,Q[ae.field]=ae)}),se&&e.scrollToFirstError&&H(Object.keys(Q)[0]),Sn(te)&&te(se?Q:void 0),se?Q:void 0})},K=(te,W)=>{const q=[];for(const Q of C)(nr(te)&&te.includes(Q.field)||te===Q.field)&&q.push(Q.validate());return Promise.all(q).then(Q=>{const se={};let ae=!1;return Q.forEach(re=>{re&&(ae=!0,se[re.field]=re)}),ae&&e.scrollToFirstError&&H(Object.keys(se)[0]),Sn(W)&&W(ae?se:void 0),ae?se:void 0})},Y=te=>{const W=[];C.forEach(q=>{W.push(q.validate())}),Promise.all(W).then(q=>{const Q={};let se=!1;q.forEach(ae=>{ae&&(se=!0,Q[ae.field]=ae)}),se?(e.scrollToFirstError&&H(Object.keys(Q)[0]),t("submitFailed",{values:a.value,errors:Q},te)):t("submitSuccess",a.value,te),t("submit",{values:a.value,errors:se?Q:void 0},te)})};return ri(cH,qt({id:i,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:v,model:a,size:S,rules:y,fields:C,touchedFields:x,addField:T,removeField:D,validateField:K,setLabelWidth:M,removeLabelWidth:O,maxLabelWidth:_,autoLabelWidth:k})),{cls:F(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:Y,innerValidate:U,innerValidateField:K,innerResetFields:L,innerClearValidate:B,innerSetFields:P,innerScrollToField:j}},methods:{validate(e){return this.innerValidate(e)},validateField(e,t){return this.innerValidateField(e,t)},resetFields(e){return this.innerResetFields(e)},clearValidate(e){return this.innerClearValidate(e)},setFields(e){return this.innerSetFields(e)},scrollToField(e){return this.innerScrollToField(e)}}}),EOe=["id"];function TOe(e,t,n,r,i,a){return z(),X("form",{id:e.id,ref:"formRef",class:de(e.cls),onSubmit:t[0]||(t[0]=cs((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[mt(e.$slots,"default")],42,EOe)}var IR=ze(wOe,[["render",TOe]]),d3=Object.prototype.toString;function q5(e){return d3.call(e)==="[object Array]"}function Dh(e){return d3.call(e)==="[object Object]"}function uV(e){return d3.call(e)==="[object String]"}function AOe(e){return d3.call(e)==="[object Number]"&&e===e}function IOe(e){return d3.call(e)==="[object Boolean]"}function cV(e){return d3.call(e)==="[object Function]"}function LOe(e){return Dh(e)&&Object.keys(e).length===0}function Wv(e){return e==null||e===""}function A0e(e){return q5(e)&&!e.length}var LH=function(e,t){if(typeof e!="object"||typeof t!="object")return e===t;if(cV(e)&&cV(t))return e===t||e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){var r=LH(e[n],t[n]);if(!r)return!1}return!0},DH=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var i=n[r],a=t?.[r];n[r]=Dh(i)?Object.assign(Object.assign({},i),a):a||i}),n},DOe=function(e,t){for(var n=t.split("."),r=e,i=0;i=i,this.getValidateMsg("string.minLength",{minLength:i})):this},t.prototype.length=function(i){return this.obj?this.validate(this.obj.length===i,this.getValidateMsg("string.length",{length:i})):this},t.prototype.match=function(i){var a=i instanceof RegExp;return a&&(i.lastIndex=0),this.validate(this.obj===void 0||a&&i.test(this.obj),this.getValidateMsg("string.match",{pattern:i}))},n.uppercase.get=function(){return this.obj?this.validate(this.obj.toUpperCase()===this.obj,this.getValidateMsg("string.uppercase")):this},n.lowercase.get=function(){return this.obj?this.validate(this.obj.toLowerCase()===this.obj,this.getValidateMsg("string.lowercase")):this},Object.defineProperties(t.prototype,n),t})(Od),MOe=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"number"})),this.validate(i&&i.strict?AOe(this.obj):!0,this.getValidateMsg("type.number"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={positive:{configurable:!0},negative:{configurable:!0}};return t.prototype.min=function(i){return Wv(this.obj)?this:this.validate(this.obj>=i,this.getValidateMsg("number.min",{min:i}))},t.prototype.max=function(i){return Wv(this.obj)?this:this.validate(this.obj<=i,this.getValidateMsg("number.max",{max:i}))},t.prototype.equal=function(i){return Wv(this.obj)?this:this.validate(this.obj===i,this.getValidateMsg("number.equal",{equal:i}))},t.prototype.range=function(i,a){return Wv(this.obj)?this:this.validate(this.obj>=i&&this.obj<=a,this.getValidateMsg("number.range",{min:i,max:a}))},n.positive.get=function(){return Wv(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return Wv(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})(Od),$Oe=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"array"})),this.validate(i&&i.strict?q5(this.obj):!0,this.getValidateMsg("type.array",{value:this.obj,type:this.type}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.length=function(i){return this.obj?this.validate(this.obj.length===i,this.getValidateMsg("array.length",{value:this.obj,length:i})):this},t.prototype.minLength=function(i){return this.obj?this.validate(this.obj.length>=i,this.getValidateMsg("array.minLength",{value:this.obj,minLength:i})):this},t.prototype.maxLength=function(i){return this.obj?this.validate(this.obj.length<=i,this.getValidateMsg("array.maxLength",{value:this.obj,maxLength:i})):this},t.prototype.includes=function(i){var a=this;return this.obj?this.validate(i.every(function(s){return a.obj.indexOf(s)!==-1}),this.getValidateMsg("array.includes",{value:this.obj,includes:i})):this},t.prototype.deepEqual=function(i){return this.obj?this.validate(LH(this.obj,i),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:i})):this},n.empty.get=function(){return this.validate(A0e(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})(Od),OOe=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"object"})),this.validate(i&&i.strict?Dh(this.obj):!0,this.getValidateMsg("type.object"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.deepEqual=function(i){return this.obj?this.validate(LH(this.obj,i),this.getValidateMsg("object.deepEqual",{deepEqual:i})):this},t.prototype.hasKeys=function(i){var a=this;return this.obj?this.validate(i.every(function(s){return a.obj[s]}),this.getValidateMsg("object.hasKeys",{keys:i})):this},n.empty.get=function(){return this.validate(LOe(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})(Od),BOe=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"boolean"})),this.validate(i&&i.strict?IOe(this.obj):!0,this.getValidateMsg("type.boolean"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={true:{configurable:!0},false:{configurable:!0}};return n.true.get=function(){return this.validate(this.obj===!0,this.getValidateMsg("boolean.true"))},n.false.get=function(){return this.validate(this.obj===!1,this.getValidateMsg("boolean.false"))},Object.defineProperties(t.prototype,n),t})(Od),NOe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,FOe=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),jOe=/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/,VOe=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"type"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={email:{configurable:!0},url:{configurable:!0},ip:{configurable:!0}};return n.email.get=function(){return this.type="email",this.validate(this.obj===void 0||NOe.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||FOe.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||jOe.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})(Od),zOe=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"custom"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={validate:{configurable:!0}};return n.validate.get=function(){var r=this;return function(i,a){var s;if(i)return s=i(r.obj,r.addError.bind(r)),s&&s.then?(a&&s.then(function(){a&&a(r.error)},function(l){console.error(l)}),[s,r]):(a&&a(r.error),r.error)}},Object.defineProperties(t.prototype,n),t})(Od),Q8=function(e,t){return new I0e(e,Object.assign({field:"value"},t))};Q8.globalConfig={};Q8.setGlobalConfig=function(e){Q8.globalConfig=e||{}};var I0e=function(t,n){var r=Q8.globalConfig,i=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:DH(r.validateMessages,n.validateMessages)});this.string=new ROe(t,i),this.number=new MOe(t,i),this.array=new $Oe(t,i),this.object=new OOe(t,i),this.boolean=new BOe(t,i),this.type=new VOe(t,i),this.custom=new zOe(t,i)},PH=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};PH.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:DH(this.options.validateMessages,t)})};PH.prototype.validate=function(t,n){var r=this;if(!Dh(t))return;var i=[],a=null;function s(l,c){a||(a={}),(!a[l]||c.requiredError)&&(a[l]=c)}this.schema&&Object.keys(this.schema).forEach(function(l){if(q5(r.schema[l]))for(var c=function(p){var v=r.schema[l][p],g=v.type,y=v.message;if(!g&&!v.validator)throw"You must specify a type to field "+l+"!";var S=Object.assign(Object.assign({},r.options),{message:y,field:l});"ignoreEmptyString"in v&&(S.ignoreEmptyString=v.ignoreEmptyString),"strict"in v&&(S.strict=v.strict);var k=new I0e(t[l],S),C=k.type[g]||null;if(!C)if(v.validator){C=k.custom.validate(v.validator),Object.prototype.toString.call(C)==="[object Array]"&&C[0].then?i.push({function:C[0],_this:C[1],key:l}):C&&s(l,C);return}else C=k[g];if(Object.keys(v).forEach(function(x){v.required&&(C=C.isRequired),x!=="message"&&C[x]&&v[x]&&typeof C[x]=="object"&&(C=C[x]),C[x]&&v[x]!==void 0&&typeof C[x]=="function"&&(C=C[x](v[x]))}),C.collect(function(x){x&&s(l,x)}),a)return"break"},d=0;d0?Promise.all(i.map(function(l){return l.function})).then(function(){i.forEach(function(l){l._this.error&&s(l.key,l._this.error)}),n&&n(a)}):n&&n(a)};const L0e=Symbol("RowContextInjectionKey"),D0e=Symbol("GridContextInjectionKey"),P0e=Symbol("GridDataCollectorInjectionKey"),UOe=we({name:"Row",props:{gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start"},align:{type:String,default:"start"},div:{type:Boolean},wrap:{type:Boolean,default:!0}},setup(e){const{gutter:t,align:n,justify:r,div:i,wrap:a}=tn(e),s=Re("row"),l=F(()=>({[`${s}`]:!i.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=F(()=>Array.isArray(t.value)?t.value[0]:t.value),d=F(()=>Array.isArray(t.value)?t.value[1]:0),h=Lh(c,0),p=Lh(d,0),v=F(()=>{const y={};if((h.value||p.value)&&!i.value){const S=-h.value/2,k=-p.value/2;S&&(y.marginLeft=`${S}px`,y.marginRight=`${S}px`),k&&(y.marginTop=`${k}px`,y.marginBottom=`${k}px`)}return y}),g=F(()=>[h.value,p.value]);return ri(L0e,qt({gutter:g,div:i})),{classNames:l,styles:v}}});function HOe(e,t,n,r,i,a){return z(),X("div",{class:de(e.classNames),style:Ye(e.styles)},[mt(e.$slots,"default")],6)}var lb=ze(UOe,[["render",HOe]]);function WOe(e){return F(()=>{const{val:n,key:r,xs:i,sm:a,md:s,lg:l,xl:c,xxl:d}=e.value;if(!i&&!a&&!s&&!l&&!c&&!d)return n;const h={};return Z8.forEach(p=>{const v=e.value[p];et(v)?h[p]=v:gr(v)&&et(v[r])&&(h[p]=v[r])}),h})}function GOe(e){if(ds(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||et(e))return e;if(ds(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const KOe=we({name:"Col",props:{span:{type:Number,default:24},offset:{type:Number},order:{type:Number},xs:{type:[Number,Object]},sm:{type:[Number,Object]},md:{type:[Number,Object]},lg:{type:[Number,Object]},xl:{type:[Number,Object]},xxl:{type:[Number,Object]},flex:{type:[Number,String]}},setup(e){const t=Re("col"),n=Pn(L0e,{}),r=F(()=>GOe(e.flex)),i=F(()=>{const{div:p}=n,{span:v,offset:g,order:y,xs:S,sm:k,md:C,lg:x,xl:E,xxl:_}=e,T={[`${t}`]:!p,[`${t}-order-${y}`]:y,[`${t}-${v}`]:!p&&!S&&!k&&!C&&!x&&!E&&!_,[`${t}-offset-${g}`]:g&&g>0},D={xs:S,sm:k,md:C,lg:x,xl:E,xxl:_};return Object.keys(D).forEach(P=>{const M=D[P];M&&et(M)?T[`${t}-${P}-${M}`]=!0:M&&gr(M)&&(T[`${t}-${P}-${M.span}`]=M.span,T[`${t}-${P}-offset-${M.offset}`]=M.offset,T[`${t}-${P}-order-${M.order}`]=M.order)}),T}),a=F(()=>r.value?t:i.value),s=F(()=>{const{gutter:p,div:v}=n,g={};if(Array.isArray(p)&&!v){const y=p[0]&&p[0]/2||0,S=p[1]&&p[1]/2||0;y&&(g.paddingLeft=`${y}px`,g.paddingRight=`${y}px`),S&&(g.paddingTop=`${S}px`,g.paddingBottom=`${S}px`)}return g}),l=F(()=>r.value?{flex:r.value}:{}),c=F(()=>kf(e,Z8)),d=WOe(F(()=>({val:e.span,key:"span",...c.value}))),h=Lh(d,24,!0);return{visible:F(()=>!!h.value),classNames:a,styles:F(()=>({...s.value,...l.value}))}}});function qOe(e,t,n,r,i,a){return e.visible?(z(),X("div",{key:0,class:de(e.classNames),style:Ye(e.styles)},[mt(e.$slots,"default")],6)):Ie("v-if",!0)}var ub=ze(KOe,[["render",qOe]]);function YOe(e,t){var n,r;const i=(n=t.span)!=null?n:1,a=(r=t.offset)!=null?r:0,s=Math.min(a,e);return{span:Math.min(s>0?i+a:i,e),offset:s,suffix:"suffix"in t?t.suffix!==!1:!1}}function XOe({cols:e,collapsed:t,collapsedRows:n,itemDataList:r}){let i=!1,a=[];function s(l){return Math.ceil(l/e)>n}if(t){let l=0;for(let c=0;c!c.suffix&&!a.includes(d))}else a=r.map((l,c)=>c);return{overflow:i,displayIndexList:a}}const ZOe=we({name:"Grid",props:{cols:{type:[Number,Object],default:24},rowGap:{type:[Number,Object],default:0},colGap:{type:[Number,Object],default:0},collapsed:{type:Boolean,default:!1},collapsedRows:{type:Number,default:1}},setup(e){const{cols:t,rowGap:n,colGap:r,collapsedRows:i,collapsed:a}=tn(e),s=Lh(t,24),l=Lh(r,0),c=Lh(n,0),d=Re("grid"),h=F(()=>[d]),p=F(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),v=qt(new Map),g=F(()=>{const S=[];for(const[k,C]of v.entries())S[k]=C;return S}),y=qt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return Os(()=>{y.cols=s.value,y.colGap=l.value}),Os(()=>{const S=XOe({cols:s.value,collapsed:a.value,collapsedRows:i.value,itemDataList:g.value});y.overflow=S.overflow,y.displayIndexList=S.displayIndexList}),ri(D0e,y),ri(P0e,{collectItemData(S,k){v.set(S,k)},removeItemData(S){v.delete(S)}}),{classNames:h,style:p}}});function JOe(e,t,n,r,i,a){return z(),X("div",{class:de(e.classNames),style:Ye(e.style)},[mt(e.$slots,"default")],6)}var LR=ze(ZOe,[["render",JOe]]);const QOe=we({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Re("grid-item"),n=ue(),{computedIndex:r}=vH({itemRef:n,selector:`.${t}`}),i=Pn(D0e,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=Pn(P0e),s=F(()=>{var k;return(k=i?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=tn(e),d=Lh(l,1),h=Lh(c,0),p=F(()=>YOe(i.cols,{...e,span:d.value,offset:h.value})),v=F(()=>[t]),g=F(()=>{const{offset:k,span:C}=p.value,{colGap:x}=i;return k>0?{"margin-left":`calc((${`(100% - ${x*(C-1)}px) / ${C}`} * ${k}) + ${x*k}px)`}:{}}),y=F(()=>{const{suffix:k,span:C}=p.value,{cols:x}=i;return k?`${x-C+1}`:`span ${C}`}),S=F(()=>{const{span:k}=p.value;return n.value?[{"grid-column":`${y.value} / span ${k}`},g.value,!s.value||k===0?{display:"none"}:{}]:[]});return Os(()=>{r.value!==-1&&a?.collectItemData(r.value,p.value)}),ii(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:v,style:S,domRef:n,overflow:F(()=>i.overflow)}}});function eBe(e,t,n,r,i,a){return z(),X("div",{ref:"domRef",class:de(e.classNames),style:Ye(e.style)},[mt(e.$slots,"default",{overflow:e.overflow})],6)}var Ow=ze(QOe,[["render",eBe]]);const P4=Object.assign(LR,{Row:lb,Col:ub,Item:Ow,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+lb.name,lb),e.component(n+ub.name,ub),e.component(n+LR.name,LR),e.component(n+Ow.name,Ow)}}),tBe=we({name:"Tooltip",components:{Trigger:va},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},content:String,position:{type:String,default:"top"},mini:{type:Boolean,default:!1},backgroundColor:{type:String},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Re("tooltip"),r=ue(e.defaultPopupVisible),i=F(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=F(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=F(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=F(()=>[`${n}-popup-arrow`,e.arrowClass]),d=F(()=>{if(e.backgroundColor||e.arrowStyle)return{backgroundColor:e.backgroundColor,...e.arrowStyle}});return{prefixCls:n,computedPopupVisible:i,contentCls:s,computedContentStyle:l,arrowCls:c,computedArrowStyle:d,handlePopupVisibleChange:a}}});function nBe(e,t,n,r,i,a){const s=Te("Trigger");return z(),Ze(s,{class:de(e.prefixCls),trigger:"hover",position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"show-arrow":"","content-class":e.contentCls,"content-style":e.computedContentStyle,"arrow-class":e.arrowCls,"arrow-style":e.computedArrowStyle,"popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",role:"tooltip",onPopupVisibleChange:e.handlePopupVisibleChange},{content:fe(()=>[mt(e.$slots,"content",{},()=>[He(Ne(e.content),1)])]),default:fe(()=>[mt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var DR=ze(tBe,[["render",nBe]]);const Qc=Object.assign(DR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+DR.name,DR)}}),rBe=we({name:"IconQuestionCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iBe=["stroke-width","stroke-linecap","stroke-linejoin"];function oBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465"},null,-1)]),14,iBe)}var PR=ze(rBe,[["render",oBe]]);const RH=Object.assign(PR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PR.name,PR)}}),sBe=we({name:"FormItemLabel",components:{ResizeObserver:C0,Tooltip:Qc,IconQuestionCircle:RH},props:{required:{type:Boolean,default:!1},showColon:{type:Boolean,default:!1},component:{type:String,default:"label"},asteriskPosition:{type:String,default:"start"},tooltip:{type:String},attrs:Object},setup(){const e=Re("form-item-label"),t=Pn(cH,void 0),n=So(),r=ue(),i=()=>{r.value&&et(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return hn(()=>{r.value&&et(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),_o(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:i}}});function aBe(e,t,n,r,i,a){const s=Te("icon-question-circle"),l=Te("Tooltip"),c=Te("ResizeObserver");return z(),Ze(c,{onResize:e.handleResize},{default:fe(()=>[(z(),Ze(wa(e.component),Ft({ref:"labelRef",class:e.prefixCls},e.attrs),{default:fe(()=>[e.required&&e.asteriskPosition==="start"?(z(),X("strong",{key:0,class:de(`${e.prefixCls}-required-symbol`)},t[0]||(t[0]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Ie("v-if",!0),mt(e.$slots,"default"),e.tooltip?(z(),Ze(l,{key:1,content:e.tooltip},{default:fe(()=>[$(s,{class:de(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Ie("v-if",!0),e.required&&e.asteriskPosition==="end"?(z(),X("strong",{key:2,class:de(`${e.prefixCls}-required-symbol`)},t[1]||(t[1]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Ie("v-if",!0),He(" "+Ne(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var lBe=ze(sBe,[["render",aBe]]);const uBe=we({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Re("form-item-message")}}});function cBe(e,t,n,r,i,a){return e.error.length>0?(z(!0),X(Pt,{key:0},cn(e.error,s=>(z(),Ze(Cs,{key:s,name:"form-blink",appear:""},{default:fe(()=>[I("div",{role:"alert",class:de([e.prefixCls])},Ne(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(z(),Ze(Cs,{key:1,name:"form-blink",appear:""},{default:fe(()=>[I("div",{class:de([e.prefixCls,`${e.prefixCls}-help`])},[mt(e.$slots,"help",{},()=>[He(Ne(e.help),1)])],2)]),_:3})):Ie("v-if",!0)}var dBe=ze(uBe,[["render",cBe]]);const fBe=we({name:"FormItem",components:{ArcoRow:lb,ArcoCol:ub,FormItemLabel:lBe,FormItemMessage:dBe},props:{field:{type:String,default:""},label:String,tooltip:{type:String},showColon:{type:Boolean,default:!1},noStyle:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},help:String,extra:String,required:{type:Boolean,default:!1},asteriskPosition:{type:String,default:"start"},rules:{type:[Object,Array]},validateStatus:{type:String},validateTrigger:{type:[String,Array],default:"change"},labelColProps:Object,wrapperColProps:Object,hideLabel:{type:Boolean,default:!1},hideAsterisk:{type:Boolean,default:!1},labelColStyle:Object,wrapperColStyle:Object,rowProps:Object,rowClass:[String,Array,Object],contentClass:[String,Array,Object],contentFlex:{type:Boolean,default:!0},mergeProps:{type:[Boolean,Function],default:!0},labelColFlex:{type:[Number,String]},feedback:{type:Boolean,default:!1},labelComponent:{type:String,default:"label"},labelAttrs:Object},setup(e){const t=Re("form-item"),{field:n}=tn(e),r=Pn(cH,{}),{autoLabelWidth:i,layout:a}=tn(r),{i18nMessage:s}=No(),l=F(()=>{var q;const Q={...(q=e.labelColProps)!=null?q:r.labelColProps};return e.labelColFlex?Q.flex=e.labelColFlex:r.autoLabelWidth&&(Q.flex=`${r.maxLabelWidth}px`),Q}),c=F(()=>{var q;const Q={...(q=e.wrapperColProps)!=null?q:r.wrapperColProps};return n.value&&(Q.id=T0e(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(Q.flex="auto"),Q}),d=F(()=>{var q;return(q=e.labelColStyle)!=null?q:r.labelColStyle}),h=F(()=>{var q;return(q=e.wrapperColStyle)!=null?q:r.wrapperColStyle}),p=mm(r.model,e.field),v=qt({}),g=qt({}),y=F(()=>xOe(v)),S=F(()=>COe(g)),k=ue(!1),C=F(()=>mm(r.model,e.field)),x=F(()=>{var q;return!!((q=e.disabled)!=null?q:r?.disabled)}),E=F(()=>{var q;return(q=e.validateStatus)!=null?q:y.value}),_=F(()=>E.value==="error"),T=F(()=>{var q,Q,se;const ae=[].concat((se=(Q=e.rules)!=null?Q:(q=r?.rules)==null?void 0:q[e.field])!=null?se:[]),re=ae.some(Ce=>Ce.required);return e.required&&!re?[{required:!0}].concat(ae):ae}),D=F(()=>T.value.some(q=>q.required)),P=e.noStyle?Pn(Qj,void 0):void 0,M=(q,{status:Q,message:se})=>{v[q]=Q,g[q]=se,e.noStyle&&P?.updateValidateState(q,{status:Q,message:se})},O=F(()=>e.feedback&&E.value?E.value:void 0),L=()=>{var q;if(k.value)return Promise.resolve();const Q=T.value;if(!n.value||Q.length===0)return y.value&&H(),Promise.resolve();const se=n.value,ae=C.value;M(se,{status:"",message:""});const re=new PH({[se]:Q.map(({...Ce})=>(!Ce.type&&!Ce.validator&&(Ce.type="string"),Ce))},{ignoreEmptyString:!0,validateMessages:(q=s.value.form)==null?void 0:q.validateMessages});return new Promise(Ce=>{re.validate({[se]:ae},Ve=>{var ge;const xe=!!Ve?.[se];M(se,{status:xe?"error":"",message:(ge=Ve?.[se].message)!=null?ge:""});const Ge=xe?{label:e.label,field:n.value,value:Ve[se].value,type:Ve[se].type,isRequiredError:!!Ve[se].requiredError,message:Ve[se].message}:void 0;Ce(Ge)})})},B=F(()=>[].concat(e.validateTrigger)),j=F(()=>B.value.reduce((q,Q)=>{switch(Q){case"change":return q.onChange=()=>{L()},q;case"input":return q.onInput=()=>{dn(()=>{L()})},q;case"focus":return q.onFocus=()=>{L()},q;case"blur":return q.onBlur=()=>{L()},q;default:return q}},{}));ri(Qj,qt({eventHandlers:j,size:r&&Du(r,"size"),disabled:x,error:_,feedback:O,updateValidateState:M}));const H=()=>{n.value&&M(n.value,{status:"",message:""})},Y=qt({field:n,disabled:x,error:_,validate:L,clearValidate:H,resetField:()=>{H(),k.value=!0,r?.model&&n.value&&X8(r.model,n.value,p),dn(()=>{k.value=!1})},setField:q=>{var Q,se;n.value&&(k.value=!0,"value"in q&&r?.model&&n.value&&X8(r.model,n.value,q.value),(q.status||q.message)&&M(n.value,{status:(Q=q.status)!=null?Q:"",message:(se=q.message)!=null?se:""}),dn(()=>{k.value=!1}))}});hn(()=>{var q;Y.field&&((q=r.addField)==null||q.call(r,Y))}),_o(()=>{var q;Y.field&&((q=r.removeField)==null||q.call(r,Y))});const ie=F(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${E.value}`]:!!E.value},e.rowClass]),te=F(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),W=F(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:ie,isRequired:D,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:te,autoLabelWidth:i,layout:a,mergedLabelStyle:d,wrapperColCls:W,mergedWrapperStyle:h}}});function hBe(e,t,n,r,i,a){var s;const l=Te("FormItemLabel"),c=Te("ArcoCol"),d=Te("FormItemMessage"),h=Te("ArcoRow");return e.noStyle?mt(e.$slots,"default",{key:0}):(z(),Ze(h,Ft({key:1,class:[e.cls,{[`${e.prefixCls}-has-help`]:!!((s=e.$slots.help)!=null?s:e.help)}],wrap:!(e.labelColFlex||e.autoLabelWidth),div:e.layout!=="horizontal"||e.hideLabel},e.rowProps),{default:fe(()=>[e.hideLabel?Ie("v-if",!0):(z(),Ze(c,Ft({key:0,class:e.labelColCls,style:e.mergedLabelStyle},e.mergedLabelCol),{default:fe(()=>[$(l,{required:e.hideAsterisk?!1:e.isRequired,"show-colon":e.showColon,"asterisk-position":e.asteriskPosition,component:e.labelComponent,attrs:e.labelAttrs,tooltip:e.tooltip},{default:fe(()=>[e.$slots.label||e.label?mt(e.$slots,"label",{key:0},()=>[He(Ne(e.label),1)]):Ie("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),$(c,Ft({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:fe(()=>[I("div",{class:de(`${e.prefixCls}-content-wrapper`)},[I("div",{class:de([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[mt(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(z(),Ze(d,{key:0,error:e.finalMessage,help:e.help},yo({_:2},[e.$slots.help?{name:"help",fn:fe(()=>[mt(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Ie("v-if",!0),e.$slots.extra||e.extra?(z(),X("div",{key:1,class:de(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra",{},()=>[He(Ne(e.extra),1)])],2)):Ie("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var Bw=ze(fBe,[["render",hBe]]);const pBe=Object.assign(IR,{Item:Bw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+IR.name,IR),e.component(n+Bw.name,Bw)}}),vBe=we({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Re("icon"),n=F(()=>{const i={};return e.size&&(i.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(i.transform=`rotate(${e.rotate}deg)`),i});return{cls:F(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function mBe(e,t,n,r,i,a){return z(),X("svg",{class:de(e.cls),style:Ye(e.innerStyle),fill:"currentColor"},[mt(e.$slots,"default")],6)}var Nw=ze(vBe,[["render",mBe]]);function gBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const Pre=[],yBe=e=>{const{src:t,extraProps:n={}}=e;if(!X_&&t?.length&&!Pre.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),Pre.push(t),document.body.appendChild(r)}return we({name:"IconFont",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(r,{slots:i}){return()=>{var a;const s=r.type?$("use",{"xlink:href":`#${r.type}`},null):(a=i.default)==null?void 0:a.call(i);return $(Nw,Ft(r,n),gBe(s)?s:{default:()=>[s]})}}})},bBe=Object.assign(Nw,{addFromIconFontCn:yBe,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+Nw.name,Nw)}}),_Be=we({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Re("image-footer")}}}),SBe=["title"],kBe=["title"];function xBe(e,t,n,r,i,a){return z(),X("div",{class:de(e.prefixCls)},[e.title||e.description?(z(),X("div",{key:0,class:de(`${e.prefixCls}-caption`)},[e.title?(z(),X("div",{key:0,class:de(`${e.prefixCls}-caption-title`),title:e.title},Ne(e.title),11,SBe)):Ie("v-if",!0),e.description?(z(),X("div",{key:1,class:de(`${e.prefixCls}-caption-description`),title:e.description},Ne(e.description),11,kBe)):Ie("v-if",!0)],2)):Ie("v-if",!0),e.$slots.extra?(z(),X("div",{key:1,class:de(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra")],2)):Ie("v-if",!0)],2)}var CBe=ze(_Be,[["render",xBe]]);const wBe=we({name:"ImagePreviewArrow",components:{IconLeft:Il,IconRight:Hi},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Re("image-preview-arrow")}}});function EBe(e,t,n,r,i,a){const s=Te("icon-left"),l=Te("icon-right");return z(),X("div",{class:de(e.prefixCls)},[I("div",{class:de([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=c=>{c.preventDefault(),e.onPrev&&e.onPrev()})},[$(s)],2),I("div",{class:de([`${e.prefixCls}-right`,{[`${e.prefixCls}-disabled`]:!e.onNext}]),onClick:t[1]||(t[1]=c=>{c.preventDefault(),e.onNext&&e.onNext()})},[$(l)],2)],2)}var TBe=ze(wBe,[["render",EBe]]);function ABe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var eT=we({name:"ImagePreviewAction",components:{Tooltip:Qc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=Re("image-preview-toolbar-action");return()=>{var i;const{name:a,disabled:s}=e,l=(i=t.default)==null?void 0:i.call(t);if(!l||!l.length)return null;const c=$("div",Ft({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:d=>{d.preventDefault()}},n),[$("span",{class:`${r}-content`},[l])]);return a?$(Qc,{class:`${r}-tooltip`,content:a},ABe(c)?c:{default:()=>[c]}):c}}}),IBe=we({name:"ImagePreviewToolbar",components:{RenderFunction:Jh,PreviewAction:eT},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=tn(e),r=Re("image-preview-toolbar"),i=F(()=>{const a=new Set(n.value),s=c=>a.has(c.key);return t.value.filter(s).sort((c,d)=>{const h=n.value.indexOf(c.key),p=n.value.indexOf(d.key);return h>p?1:-1})});return{prefixCls:r,resultActions:i}}});function LBe(e,t,n,r,i,a){const s=Te("RenderFunction"),l=Te("PreviewAction");return z(),X("div",{class:de(e.prefixCls)},[(z(!0),X(Pt,null,cn(e.resultActions,c=>(z(),Ze(l,{key:c.key,name:c.name,disabled:c.disabled,onClick:c.onClick},{default:fe(()=>[$(s,{"render-func":c.content},null,8,["render-func"])]),_:2},1032,["name","disabled","onClick"]))),128)),mt(e.$slots,"default")],2)}var DBe=ze(IBe,[["render",LBe]]);function R0e(e){const t=ue("beforeLoad"),n=F(()=>t.value==="beforeLoad"),r=F(()=>t.value==="loading"),i=F(()=>t.value==="error"),a=F(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:i,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function PBe(e,t,n,r,i){let a=n,s=r;return n&&(e.width>t.width?a=0:(t.left>e.left&&(a-=Math.abs(e.left-t.left)/i),t.rightt.height?s=0:(t.top>e.top&&(s-=Math.abs(e.top-t.top)/i),t.bottom{if(!t.value||!n.value)return;const y=t.value.getBoundingClientRect(),S=n.value.getBoundingClientRect(),[k,C]=PBe(y,S,i.value[0],i.value[1],r.value);(k!==i.value[0]||C!==i.value[1])&&(i.value=[k,C])},h=y=>{y.preventDefault&&y.preventDefault();const S=c[0]+(y.pageX-s)/r.value,k=c[1]+(y.pageY-l)/r.value;i.value=[S,k]},p=y=>{y.preventDefault&&y.preventDefault(),a.value=!1,d(),g()},v=y=>{y.target===y.currentTarget&&(y.preventDefault&&y.preventDefault(),a.value=!0,s=y.pageX,l=y.pageY,c=[...i.value],Mi(window,"mousemove",h,!1),Mi(window,"mouseup",p,!1))};function g(){no(window,"mousemove",h,!1),no(window,"mouseup",p,!1)}return Os(y=>{n.value&&Mi(n.value,"mousedown",v),y(()=>{n.value&&no(n.value,"mousedown",v),g()})}),It([r],()=>{dn(()=>d())}),{translate:i,moving:a,resetTranslate(){i.value=[0,0]}}}const MBe=we({name:"IconZoomOut",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),$Be=["stroke-width","stroke-linecap","stroke-linejoin"];function OBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"},null,-1)]),14,$Be)}var RR=ze(MBe,[["render",OBe]]);const M0e=Object.assign(RR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RR.name,RR)}}),BBe=we({name:"IconZoomIn",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NBe=["stroke-width","stroke-linecap","stroke-linejoin"];function FBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"},null,-1)]),14,NBe)}var MR=ze(BBe,[["render",FBe]]);const $0e=Object.assign(MR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MR.name,MR)}}),jBe=we({name:"IconFullscreen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),VBe=["stroke-width","stroke-linecap","stroke-linejoin"];function zBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"},null,-1)]),14,VBe)}var $R=ze(jBe,[["render",zBe]]);const X5=Object.assign($R,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$R.name,$R)}}),UBe=we({name:"IconRotateLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),HBe=["stroke-width","stroke-linecap","stroke-linejoin"];function WBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"},null,-1)]),14,HBe)}var OR=ze(UBe,[["render",WBe]]);const O0e=Object.assign(OR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OR.name,OR)}}),GBe=we({name:"IconRotateRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),KBe=["stroke-width","stroke-linecap","stroke-linejoin"];function qBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"},null,-1)]),14,KBe)}var BR=ze(GBe,[["render",qBe]]);const B0e=Object.assign(BR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BR.name,BR)}}),YBe=we({name:"IconOriginalSize",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XBe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1)]),14,XBe)}var NR=ze(YBe,[["render",ZBe]]);const N0e=Object.assign(NR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NR.name,NR)}});function JBe(e){const{container:t,hidden:n}=tn(e);let r=!1,i={};const a=c=>c.tagName==="BODY"?window.innerWidth-(document.body.clientWidth||document.documentElement.clientWidth):c.offsetWidth-c.clientWidth,s=()=>{if(t.value&&t.value.style.overflow!=="hidden"){const c=t.value.style;r=!0;const d=a(t.value);d&&(i.width=c.width,t.value.style.width=`calc(${t.value.style.width||"100%"} - ${d}px)`),i.overflow=c.overflow,t.value.style.overflow="hidden"}},l=()=>{if(t.value&&r){const c=i;Object.keys(c).forEach(d=>{t.value.style[d]=c[d]})}r=!1,i={}};return Os(c=>{n.value?s():l(),c(()=>{l()})}),[l,s]}function QBe(e,t){const{popupContainer:n}=tn(t);return F(()=>(ds(n.value)?hpe(n.value):n.value)||e)}const Ed=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),F0e=Ed[0],j0e=Ed[Ed.length-1];function eNe(e=1,t="zoomIn"){let n=Ed.indexOf(e);return n===-1&&(n=nNe(e)),t==="zoomIn"?n===Ed.length-1?e:Ed[n+1]:n===0?e:Ed[n-1]}function tNe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,i=Number.parseFloat((e*r).toFixed(3));return Math.min(j0e,Math.max(F0e,i))}function nNe(e){let t=Ed.length-1;for(let n=0;n["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[Object,String]},inGroup:{type:Boolean,default:!1},groupArrowProps:{type:Object,default:()=>({})},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{type:Number,default:1},zoomRate:{type:Number,default:1.1}},emits:["close","update:visible"],setup(e,{emit:t}){const{t:n}=No(),{src:r,popupContainer:i,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:d,zoomRate:h}=tn(e),p=ue(),v=ue(),g=Re("image-preview"),[y,S]=pa(s.value,qt({value:a})),k=F(()=>[g,{[`${g}-hide`]:!y.value}]),C=QBe(document.body,qt({popupContainer:i})),x=F(()=>C.value===document.body),{zIndex:E}=l3("dialog",{visible:y}),_=F(()=>({...x.value?{zIndex:E.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:T,isLoaded:D,setLoadStatus:P}=R0e(),M=ue(0),O=ue(d.value),{translate:L,moving:B,resetTranslate:j}=RBe(qt({wrapperEl:p,imageEl:v,visible:y,scale:O})),H=ue(!1);let U=null;const K=()=>{!H.value&&(H.value=!0),U&&clearTimeout(U),U=setTimeout(()=>{H.value=!1},1e3)};JBe(qt({container:C,hidden:y}));function Y(){M.value=0,O.value=d.value,j()}const ie=Ge=>c.value.includes(Ge),te=Ge=>{switch(Ge.stopPropagation(),Ge.preventDefault(),Ge.key){case Ho.ESC:e.escToClose&&ae();break;case Ho.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case Ho.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case Ho.ARROW_UP:ie("zoomIn")&&xe("zoomIn");break;case Ho.ARROW_DOWN:ie("zoomOut")&&xe("zoomOut");break;case Ho.SPACE:ie("originalSize")&&Ce(1);break}},W=Dm(Ge=>{if(Ge.preventDefault(),Ge.stopPropagation(),!e.wheelZoom)return;const Ue=(Ge.deltaY||Ge.deltaX)>0?"zoomOut":"zoomIn",_e=tNe(O.value,h.value,Ue);Ce(_e)});let q=!1;const Q=()=>{dn(()=>{var Ge;(Ge=p?.value)==null||Ge.focus()}),e.keyboard&&!q&&(q=!0,Mi(C.value,"keydown",te))},se=()=>{q&&(q=!1,no(C.value,"keydown",te))};It([r,y],()=>{y.value?(Y(),P("loading"),Q()):se()});function ae(){y.value&&(t("close"),t("update:visible",!1),S(!1))}function re(Ge){var tt;(tt=p?.value)==null||tt.focus(),l.value&&Ge.target===Ge.currentTarget&&ae()}function Ce(Ge){O.value!==Ge&&(O.value=Ge,K())}function Ve(){const Ge=p.value.getBoundingClientRect(),tt=v.value.getBoundingClientRect(),Ue=Ge.height/(tt.height/O.value),_e=Ge.width/(tt.width/O.value),ve=Math.max(Ue,_e);Ce(ve)}function ge(Ge){const Ue=Ge==="clockwise"?(M.value+FR)%360:M.value===0?360-FR:M.value-FR;M.value=Ue}function xe(Ge){const tt=eNe(O.value,Ge);Ce(tt)}return _o(()=>{se()}),{prefixCls:g,classNames:k,container:C,wrapperStyles:_,scale:O,translate:L,rotate:M,moving:B,mergedVisible:y,isLoading:T,isLoaded:D,scaleValueVisible:H,refWrapper:p,refImage:v,onWheel:W,onMaskClick:re,onCloseClick:ae,onImgLoad(){P("loaded")},onImgError(){P("error")},actions:F(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>fa(X5),onClick:()=>Ve()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>fa(B0e),onClick:()=>ge("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>fa(O0e),onClick:()=>ge("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>fa($0e),onClick:()=>xe("zoomIn"),disabled:O.value===j0e},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>fa(M0e),onClick:()=>xe("zoomOut"),disabled:O.value===F0e},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>fa(N0e),onClick:()=>Ce(1)}])}}});const iNe=["src"];function oNe(e,t,n,r,i,a){const s=Te("IconLoading"),l=Te("PreviewToolbar"),c=Te("IconClose"),d=Te("PreviewArrow");return z(),Ze(Zm,{to:e.container,disabled:!e.renderToBody},[I("div",{class:de(e.classNames),style:Ye(e.wrapperStyles)},[$(Cs,{name:"image-fade",onBeforeEnter:t[0]||(t[0]=h=>h.parentElement&&(h.parentElement.style.display="block")),onAfterLeave:t[1]||(t[1]=h=>h.parentElement&&(h.parentElement.style.display="")),persisted:""},{default:fe(()=>[Ai(I("div",{class:de(`${e.prefixCls}-mask`)},null,2),[[es,e.mergedVisible]])]),_:1}),e.mergedVisible?(z(),X("div",{key:0,ref:"refWrapper",tabindex:"0",class:de(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...h)=>e.onMaskClick&&e.onMaskClick(...h)),onWheel:t[7]||(t[7]=cs((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[Ie(" img "),I("div",{class:de(`${e.prefixCls}-img-container`),style:Ye({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(z(),X("img",{ref:"refImage",key:e.src,src:e.src,class:de([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:Ye({transform:`translate(${e.translate[0]}px, ${e.translate[1]}px) rotate(${e.rotate}deg)`}),onLoad:t[2]||(t[2]=(...h)=>e.onImgLoad&&e.onImgLoad(...h)),onError:t[3]||(t[3]=(...h)=>e.onImgError&&e.onImgError(...h))},null,46,iNe))],6),Ie(" loading "),e.isLoading?(z(),X("div",{key:0,class:de(`${e.prefixCls}-loading`)},[$(s)],2)):Ie("v-if",!0),Ie(" scale value "),$(Cs,{name:"image-fade"},{default:fe(()=>[e.scaleValueVisible?(z(),X("div",{key:0,class:de(`${e.prefixCls}-scale-value`)},Ne((e.scale*100).toFixed(0))+"% ",3)):Ie("v-if",!0)]),_:1}),Ie(" toolbar "),e.isLoaded&&e.actionsLayout.length?(z(),Ze(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:fe(()=>[mt(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Ie("v-if",!0),Ie(" close btn "),e.closable?(z(),X("div",{key:2,class:de(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[$(c)],2)):Ie("v-if",!0),Ie(" group arrow "),e.inGroup?(z(),Ze(d,qi(Ft({key:3},e.groupArrowProps)),null,16)):Ie("v-if",!0)],34)):Ie("v-if",!0)],6)],8,["to","disabled"])}var cy=ze(rNe,[["render",oNe]]);function Rre(e){if(xn(e))return;if(!et(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return et(t)?`${t}px`:void 0}const V0e=Symbol("PreviewGroupInjectionKey");let sNe=0;const aNe=we({name:"Image",components:{IconImageClose:z5,IconLoading:Ja,ImageFooter:CBe,ImagePreview:cy},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},src:{type:String},width:{type:[String,Number]},height:{type:[String,Number]},title:{type:String},description:{type:String},fit:{type:String},alt:{type:String},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{type:String,default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{type:Object},footerClass:{type:[String,Array,Object]}},emits:["preview-visible-change","update:previewVisible"],setup(e,{attrs:t,slots:n,emit:r}){const{t:i}=No(),{height:a,width:s,hideFooter:l,title:c,description:d,src:h,footerPosition:p,defaultPreviewVisible:v,previewVisible:g,preview:y,previewProps:S}=tn(e),k=Pn(V0e,void 0),C=Re("image"),x=ue(),{isLoaded:E,isError:_,isLoading:T,setLoadStatus:D}=R0e(),P=F(()=>({width:Rre(s?.value),height:Rre(a?.value)})),M=F(()=>e.fit?{objectFit:e.fit}:{}),O=F(()=>[`${C}`,{[`${C}-loading`]:T.value,[`${C}-loading-error`]:_.value,[`${C}-with-footer-inner`]:E&&B&&p.value==="inner",[`${C}-with-footer-outer`]:E&&B&&p.value==="outer"},t.class]),L=F(()=>[P.value,t.style]),B=F(()=>c?.value||d?.value||n.extra?Tl(l.value)?!l.value&&E.value:l.value==="never":!1),j=F(()=>Ea(t,["class","style"])),[H,U]=pa(v.value,qt({value:g})),K=F(()=>!k?.preview&&y.value);Os(()=>{X_||!x.value||(x.value.src=h?.value,D("loading"))});const Y=sNe++;Os(Q=>{var se,ae,re;const Ce=(re=k?.registerImageUrl)==null?void 0:re.call(k,Y,((ae=(se=S?.value)==null?void 0:se.src)!=null?ae:h?.value)||"",y.value);Q(()=>{Ce?.()})});function ie(){D("loaded")}function te(){D("error")}function W(){y.value&&(k?.preview?k.preview(Y):(r("preview-visible-change",!0),U(!0)))}function q(){r("preview-visible-change",!1),U(!1)}return{t:i,refImg:x,prefixCls:C,wrapperClassNames:O,wrapperStyles:L,showFooter:B,imgProps:j,imgStyle:P,isLoaded:E,isError:_,isLoading:T,mergedPreviewVisible:H,mergePreview:K,onImgLoaded:ie,onImgLoadError:te,onImgClick:W,onPreviewClose:q,fitStyle:M}}}),lNe=["title","alt"];function uNe(e,t,n,r,i,a){const s=Te("IconImageClose"),l=Te("IconLoading"),c=Te("ImageFooter"),d=Te("ImagePreview");return z(),X("div",{class:de(e.wrapperClassNames),style:Ye(e.wrapperStyles)},[I("img",Ft({ref:"refImg",class:`${e.prefixCls}-img`},e.imgProps,{style:{...e.imgStyle,...e.fitStyle},title:e.title,alt:e.alt,onLoad:t[0]||(t[0]=(...h)=>e.onImgLoaded&&e.onImgLoaded(...h)),onError:t[1]||(t[1]=(...h)=>e.onImgLoadError&&e.onImgLoadError(...h)),onClick:t[2]||(t[2]=(...h)=>e.onImgClick&&e.onImgClick(...h))}),null,16,lNe),e.isLoaded?Ie("v-if",!0):(z(),X("div",{key:0,class:de(`${e.prefixCls}-overlay`)},[e.isError?mt(e.$slots,"error",{key:0},()=>[I("div",{class:de(`${e.prefixCls}-error`)},[I("div",{class:de(`${e.prefixCls}-error-icon`)},[mt(e.$slots,"error-icon",{},()=>[$(s)])],2),e.alt||e.description?(z(),X("div",{key:0,class:de(`${e.prefixCls}-error-alt`)},Ne(e.alt||e.description),3)):Ie("v-if",!0)],2)]):Ie("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?mt(e.$slots,"loader",{key:1},()=>[I("div",{class:de([`${e.prefixCls}-loader`])},[I("div",{class:de(`${e.prefixCls}-loader-spin`)},[$(l),I("div",{class:de(`${e.prefixCls}-loader-spin-text`)},Ne(e.t("image.loading")),3)],2)],2)]):Ie("v-if",!0)],2)),e.showFooter?(z(),Ze(c,{key:1,class:de(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},yo({_:2},[e.$slots.extra?{name:"extra",fn:fe(()=>[mt(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Ie("v-if",!0),e.isLoaded&&e.mergePreview?(z(),Ze(d,Ft({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:fe(()=>[mt(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Ie("v-if",!0)],6)}var jR=ze(aNe,[["render",uNe]]),cNe=we({name:"ImagePreviewGroup",components:{ImagePreview:cy},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},srcList:{type:Array},current:{type:Number},defaultCurrent:{type:Number,default:0},infinite:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{type:Array,default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[String,Object]}},emits:["change","update:current","visible-change","update:visible"],setup(e,{emit:t}){const{srcList:n,visible:r,defaultVisible:i,current:a,defaultCurrent:s,infinite:l}=tn(e),[c,d]=pa(i.value,qt({value:r})),h=L=>{L!==c.value&&(t("visible-change",L),t("update:visible",L),d(L))},p=F(()=>new Map(nr(n?.value)?n?.value.map((L,B)=>[B,{url:L,canPreview:!0}]):[])),v=ue(new Map(p.value||[])),g=F(()=>Array.from(v.value.keys())),y=F(()=>g.value.length);function S(L,B,j){return p.value.has(L)||v.value.set(L,{url:B,canPreview:j}),function(){p.value.has(L)||v.value.delete(L)}}It(p,()=>{v.value=new Map(p.value||[])});const[k,C]=pa(s.value,qt({value:a})),x=L=>{L!==k.value&&(t("change",L),t("update:current",L),C(L))},E=F(()=>g.value[k.value]),_=L=>{const B=g.value.indexOf(L);B!==k.value&&x(B)},T=F(()=>{var L;return(L=v.value.get(E.value))==null?void 0:L.url});ri(V0e,qt({registerImageUrl:S,preview:L=>{h(!0),_(L)}}));const D=F(()=>{const L=(j,H)=>{var U;for(let K=j;K<=H;K++){const Y=g.value[K];if((U=v.value.get(Y))!=null&&U.canPreview)return K}},B=L(k.value+1,y.value-1);return xn(B)&&l.value?L(0,k.value-1):B}),P=F(()=>{const L=(j,H)=>{var U;for(let K=j;K>=H;K--){const Y=g.value[K];if((U=v.value.get(Y))!=null&&U.canPreview)return K}},B=L(k.value-1,0);return xn(B)&&l.value?L(y.value-1,k.value+1):B}),M=F(()=>xn(P.value)?void 0:()=>{!xn(P.value)&&x(P.value)}),O=F(()=>xn(D.value)?void 0:()=>{!xn(D.value)&&x(D.value)});return{mergedVisible:c,currentUrl:T,prevIndex:P,nextIndex:D,onClose(){h(!1)},groupArrowProps:qt({onPrev:M,onNext:O})}}});function dNe(e,t,n,r,i,a){const s=Te("ImagePreview");return z(),X(Pt,null,[mt(e.$slots,"default"),$(s,Ft({...e.$attrs,groupArrowProps:e.groupArrowProps},{"in-group":"",src:e.currentUrl,visible:e.mergedVisible,"mask-closable":e.maskClosable,closable:e.closable,"actions-layout":e.actionsLayout,"popup-container":e.popupContainer,"render-to-body":e.renderToBody,onClose:e.onClose}),yo({_:2},[e.$slots.actions?{name:"actions",fn:fe(()=>[mt(e.$slots,"actions",{url:e.currentUrl})]),key:"0"}:void 0]),1040,["src","visible","mask-closable","closable","actions-layout","popup-container","render-to-body","onClose"])],64)}var cb=ze(cNe,[["render",dNe]]);const fNe=Object.assign(jR,{Preview:cy,PreviewGroup:cb,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+jR.name,jR),e.component(n+cy.name,cy),e.component(n+cb.name,cb),e.component(n+eT.name,eT)}}),z0e=Symbol("LayoutSiderInjectionKey"),U0e=Symbol("SiderInjectionKey");var hNe=we({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=ue([]),n=Re("layout"),r=F(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return ri(z0e,{onSiderMount:i=>t.value.push(i),onSiderUnMount:i=>{t.value=t.value.filter(a=>a!==i)}}),{classNames:r}}});function pNe(e,t,n,r,i,a){return z(),X("section",{class:de(e.classNames)},[mt(e.$slots,"default")],2)}var VR=ze(hNe,[["render",pNe]]);const vNe=we({name:"LayoutHeader",setup(){return{classNames:[Re("layout-header")]}}});function mNe(e,t,n,r,i,a){return z(),X("header",{class:de(e.classNames)},[mt(e.$slots,"default")],2)}var Fw=ze(vNe,[["render",mNe]]);const gNe=we({name:"LayoutContent",setup(){return{classNames:[Re("layout-content")]}}});function yNe(e,t,n,r,i,a){return z(),X("main",{class:de(e.classNames)},[mt(e.$slots,"default")],2)}var jw=ze(gNe,[["render",yNe]]);const bNe=we({name:"LayoutFooter",setup(){return{classNames:[Re("layout-footer")]}}});function _Ne(e,t,n,r,i,a){return z(),X("footer",{class:de(e.classNames)},[mt(e.$slots,"default")],2)}var Vw=ze(bNe,[["render",_Ne]]);const SNe=we({name:"IconDragDot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kNe=["stroke-width","stroke-linecap","stroke-linejoin"];function xNe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1)]),14,kNe)}var zR=ze(SNe,[["render",xNe]]);const H0e=Object.assign(zR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zR.name,zR)}}),CNe=we({name:"IconDragDotVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),wNe=["stroke-width","stroke-linecap","stroke-linejoin"];function ENe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1)]),14,wNe)}var UR=ze(CNe,[["render",ENe]]);const Z5=Object.assign(UR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UR.name,UR)}});var TNe=we({name:"ResizeTrigger",components:{ResizeObserver:Dd,IconDragDot:H0e,IconDragDotVertical:Z5},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=tn(e),i=F(()=>n?.value==="horizontal");return{classNames:F(()=>[r.value,{[`${r.value}-horizontal`]:i.value,[`${r.value}-vertical`]:!i.value}]),onResize:l=>{t("resize",l)},isHorizontal:i}}});function ANe(e,t,n,r,i,a){const s=Te("IconDragDot"),l=Te("IconDragDotVertical"),c=Te("ResizeObserver");return z(),Ze(c,{onResize:e.onResize},{default:fe(()=>[I("div",{class:de(e.classNames)},[Ie(" @slot 自定义内容 "),mt(e.$slots,"default",{},()=>[I("div",{class:de(`${e.prefixCls}-icon-wrapper`)},[Ie(" @slot 自定义 icon "),mt(e.$slots,"icon",{},()=>[e.isHorizontal?(z(),Ze(s,{key:0,class:de(`${e.prefixCls}-icon`)},null,8,["class"])):(z(),Ze(l,{key:1,class:de(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var W0e=ze(TNe,[["render",ANe]]);const G0e="left",K0e="right",MH="top",$H="bottom",INe=[G0e,K0e,MH,$H];function Mre(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function HR(e){return[MH,$H].indexOf(e)>-1}const LNe=we({name:"ResizeBox",components:{ResizeTrigger:W0e},inheritAttrs:!1,props:{width:{type:Number},height:{type:Number},component:{type:String,default:"div"},directions:{type:Array,default:()=>["right"]}},emits:{"update:width":e=>!0,"update:height":e=>!0,movingStart:e=>!0,moving:(e,t)=>!0,movingEnd:e=>!0},setup(e,{emit:t}){const{height:n,width:r,directions:i}=tn(e),[a,s]=pa(null,qt({value:r})),[l,c]=pa(null,qt({value:n})),d=ue(),h=qt({}),p=Re("resizebox"),v=F(()=>[p]),g=F(()=>({...et(a.value)?{width:`${a.value}px`}:{},...et(l.value)?{height:`${l.value}px`}:{},...h})),y=F(()=>i.value.filter(_=>INe.includes(_))),S={direction:"",startPageX:0,startPageY:0,startWidth:0,startHeight:0,moving:!1,padding:{left:0,right:0,top:0,bottom:0}};function k(_){if(!S.moving)return;const{startPageX:T,startPageY:D,startWidth:P,startHeight:M,direction:O}=S;let L=P,B=M;const j=_.pageX-T,H=_.pageY-D;switch(O){case G0e:L=P-j,s(L),t("update:width",L);break;case K0e:L=P+j,s(L),t("update:width",L);break;case MH:B=M-H,c(B),t("update:height",B);break;case $H:B=M+H,c(B),t("update:height",B);break}t("moving",{width:L,height:B},_)}function C(_){S.moving=!1,no(window,"mousemove",k),no(window,"mouseup",C),no(window,"contextmenu",C),document.body.style.cursor="default",t("movingEnd",_)}function x(_,T){var D,P;t("movingStart",T),S.moving=!0,S.startPageX=T.pageX,S.startPageY=T.pageY,S.direction=_;const{top:M,left:O,right:L,bottom:B}=S.padding;S.startWidth=Mre(((D=d.value)==null?void 0:D.clientWidth)||0,O+L),S.startHeight=Mre(((P=d.value)==null?void 0:P.clientHeight)||0,M+B),Mi(window,"mousemove",k),Mi(window,"mouseup",C),Mi(window,"contextmenu",C),document.body.style.cursor=HR(_)?"row-resize":"col-resize"}function E(_,T){const{width:D,height:P}=T.contentRect,M=HR(_)?P:D;S.padding[_]=M,h[`padding-${_}`]=`${M}px`}return{prefixCls:p,classNames:v,styles:g,wrapperRef:d,onMoveStart:x,isHorizontal:HR,allowDirections:y,onTiggerResize:E}}});function DNe(e,t,n,r,i,a){const s=Te("ResizeTrigger");return z(),Ze(wa(e.component),Ft({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:fe(()=>[mt(e.$slots,"default"),(z(!0),X(Pt,null,cn(e.allowDirections,l=>(z(),Ze(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:de(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},yo({default:fe(()=>[e.$slots["resize-trigger"]?mt(e.$slots,"resize-trigger",{key:0,direction:l}):Ie("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:fe(()=>[mt(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var WR=ze(LNe,[["render",DNe]]);const q0e=Object.assign(WR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+WR.name,WR)}});function Y0e(e,t){const n=F(()=>Bo(e)?e.value:e);let r="";hn(()=>{r=J8.subscribe((i,a)=>{n.value&&(!a||a===n.value)&&t(!!i[n.value])})}),ii(()=>{r&&J8.unsubscribe(r)})}const PNe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var RNe=we({name:"LayoutSider",components:{IconLeft:Il,IconRight:Hi,ResizeBox:q0e},props:{theme:{type:String,default:"light"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsible:{type:Boolean},width:{type:Number,default:200},collapsedWidth:{type:Number,default:48},reverseArrow:{type:Boolean},breakpoint:{type:String},resizeDirections:{type:Array,default:void 0},hideTrigger:{type:Boolean}},emits:["collapse","update:collapsed","breakpoint"],setup(e,{emit:t}){const{theme:n,collapsed:r,defaultCollapsed:i,collapsible:a,hideTrigger:s,breakpoint:l,collapsedWidth:c,resizeDirections:d}=tn(e),[h,p]=pa(i.value,qt({value:r})),v=F(()=>d.value?"ResizeBox":"div"),g=F(()=>a.value&&!s.value),y=Re("layout-sider"),S=F(()=>[y,{[`${y}-light`]:n.value==="light",[`${y}-has-trigger`]:g.value,[`${y}-collapsed`]:r.value}]),k=F(()=>{const{width:T,collapsedWidth:D}=e,P=h.value?D:T;return et(P)?`${P}px`:String(P)}),C=F(()=>[`${y}-trigger`,{[`${y}-trigger-light`]:n.value==="light"}]),x=()=>{const T=!h.value;p(T),t("update:collapsed",T),t("collapse",T,"clickTrigger")};Y0e(l,T=>{const D=!T;D!==h.value&&(p(D),t("update:collapsed",D),t("collapse",D,"responsive"),t("breakpoint",D))});const E=PNe("__arco_layout_sider"),_=Pn(z0e,void 0);return hn(()=>{var T;(T=_?.onSiderMount)==null||T.call(_,E)}),ii(()=>{var T;(T=_?.onSiderUnMount)==null||T.call(_,E)}),ri(U0e,qt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:v,prefixCls:y,classNames:S,triggerClassNames:C,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:x}}});const MNe={key:0},$Ne={key:1};function ONe(e,t,n,r,i,a){const s=Te("IconLeft"),l=Te("IconRight");return z(),Ze(wa(e.componentTag),Ft({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:fe(()=>[I("div",{class:de(`${e.prefixCls}-children`)},[mt(e.$slots,"default")],2),e.showTrigger?(z(),X("div",{key:0,class:de(e.triggerClassNames),style:Ye({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[mt(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(z(),X("div",$Ne,[e.localCollapsed?(z(),Ze(s,{key:0})):(z(),Ze(l,{key:1}))])):(z(),X("div",MNe,[e.localCollapsed?(z(),Ze(l,{key:1})):(z(),Ze(s,{key:0}))]))])],6)):Ie("v-if",!0)]),_:3},16,["class","style"])}var zw=ze(RNe,[["render",ONe]]);const BNe=Object.assign(VR,{Header:Fw,Content:jw,Footer:Vw,Sider:zw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+VR.name,VR),e.component(n+Fw.name,Fw),e.component(n+jw.name,jw),e.component(n+Vw.name,Vw),e.component(n+zw.name,zw)}}),NNe=we({name:"Pager",props:{pageNumber:{type:Number},current:{type:Number},disabled:{type:Boolean,default:!1},style:{type:Object},activeStyle:{type:Object}},emits:["click"],setup(e,{emit:t}){const n=Re("pagination-item"),r=F(()=>e.current===e.pageNumber),i=l=>{e.disabled||t("click",e.pageNumber,l)},a=F(()=>[n,{[`${n}-active`]:r.value}]),s=F(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:i}}});function FNe(e,t,n,r,i,a){return z(),X("li",{class:de(e.cls),style:Ye(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[mt(e.$slots,"default",{page:e.pageNumber},()=>[He(Ne(e.pageNumber),1)])],6)}var jNe=ze(NNe,[["render",FNe]]);const X0e=(e,{min:t,max:n})=>en?n:e,VNe=we({name:"StepPager",components:{IconLeft:Il,IconRight:Hi},props:{pages:{type:Number,required:!0},current:{type:Number,required:!0},type:{type:String,required:!0},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=Re("pagination-item"),r=e.type==="next",i=F(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=F(()=>X0e(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{i.value||t("click",a.value)},l=F(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:i.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function zNe(e,t,n,r,i,a){const s=Te("icon-right"),l=Te("icon-left");return z(),Ze(wa(e.simple?"span":"li"),{class:de(e.cls),onClick:e.handleClick},{default:fe(()=>[mt(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(z(),Ze(s,{key:0})):(z(),Ze(l,{key:1}))])]),_:3},8,["class","onClick"])}var $re=ze(VNe,[["render",zNe]]);const UNe=we({name:"EllipsisPager",components:{IconMore:j0},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=Re("pagination-item"),r=F(()=>X0e(e.current+e.step,{min:1,max:e.pages})),i=s=>{t("click",r.value)},a=F(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:i}}});function HNe(e,t,n,r,i,a){const s=Te("icon-more");return z(),X("li",{class:de(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[mt(e.$slots,"default",{},()=>[$(s)])],2)}var WNe=ze(UNe,[["render",HNe]]);const GNe=we({name:"PageJumper",components:{InputNumber:rS},props:{current:{type:Number,required:!0},simple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},pages:{type:Number,required:!0},size:{type:String},onChange:{type:Function}},emits:["change"],setup(e,{emit:t}){const n=Re("pagination-jumper"),{t:r}=No(),i=ue(e.simple?e.current:void 0),a=c=>{const d=parseInt(c.toString(),10);return Number.isNaN(d)?void 0:String(d)},s=c=>{t("change",i.value),dn(()=>{e.simple||(i.value=void 0)})};It(()=>e.current,c=>{e.simple&&c!==i.value&&(i.value=c)});const l=F(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:i,handleChange:s,handleFormatter:a}}});function KNe(e,t,n,r,i,a){const s=Te("input-number");return z(),X("span",{class:de(e.cls)},[e.simple?Ie("v-if",!0):(z(),X("span",{key:0,class:de([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[mt(e.$slots,"jumper-prepend",{},()=>[He(Ne(e.t("pagination.goto")),1)])],2)),$(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:de(`${e.prefixCls}-input`),min:1,max:e.pages,size:e.size,disabled:e.disabled,"hide-button":"",formatter:e.handleFormatter,onChange:e.handleChange},null,8,["modelValue","class","max","size","disabled","formatter","onChange"]),e.$slots["jumper-append"]?(z(),X("span",{key:1,class:de(`${e.prefixCls}-append`)},[mt(e.$slots,"jumper-append")],2)):Ie("v-if",!0),e.simple?(z(),X(Pt,{key:2},[I("span",{class:de(`${e.prefixCls}-separator`)},"/",2),I("span",{class:de(`${e.prefixCls}-total-page`)},Ne(e.pages),3)],64)):Ie("v-if",!0)],2)}var Ore=ze(GNe,[["render",KNe]]);const qNe=we({name:"PageOptions",components:{ArcoSelect:s_},props:{sizeOptions:{type:Array,required:!0},pageSize:Number,disabled:Boolean,size:{type:String},onChange:{type:Function},selectProps:{type:Object}},emits:["change"],setup(e,{emit:t}){const n=Re("pagination-options"),{t:r}=No(),i=F(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:i,handleChange:s=>{t("change",s)}}}});function YNe(e,t,n,r,i,a){const s=Te("arco-select");return z(),X("span",{class:de(e.prefixCls)},[$(s,Ft({"model-value":e.pageSize,options:e.options,size:e.size,disabled:e.disabled},e.selectProps,{onChange:e.handleChange}),null,16,["model-value","options","size","disabled","onChange"])],2)}var XNe=ze(qNe,[["render",YNe]]),GR=we({name:"Pagination",props:{total:{type:Number,required:!0},current:Number,defaultCurrent:{type:Number,default:1},pageSize:Number,defaultPageSize:{type:Number,default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{type:Array,default:()=>[10,20,30,40,50]},pageSizeProps:{type:Object},size:{type:String},pageItemStyle:{type:Object},activePageItemStyle:{type:Object},baseSize:{type:Number,default:6},bufferSize:{type:Number,default:2},autoAdjust:{type:Boolean,default:!0}},emits:{"update:current":e=>!0,"update:pageSize":e=>!0,change:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const r=Re("pagination"),{t:i}=No(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=tn(e),{mergedSize:d}=Aa(c),h=ue(e.defaultCurrent),p=ue(e.defaultPageSize),v=F(()=>{var D;return(D=e.current)!=null?D:h.value}),g=F(()=>{var D;return(D=e.pageSize)!=null?D:p.value}),y=F(()=>Math.ceil(e.total/g.value)),S=D=>{D!==v.value&&et(D)&&!e.disabled&&(h.value=D,t("update:current",D),t("change",D))},k=D=>{p.value=D,t("update:pageSize",D),t("pageSizeChange",D)},C=qt({current:v,pages:y,disabled:a,style:s,activeStyle:l,onClick:S}),x=(D,P={})=>D==="more"?$(WNe,Ft(P,C),{default:n["page-item-ellipsis"]}):D==="previous"?$($re,Ft({type:"previous"},P,C),{default:n["page-item-step"]}):D==="next"?$($re,Ft({type:"next"},P,C),{default:n["page-item-step"]}):$(jNe,Ft(P,C),{default:n["page-item"]}),E=F(()=>{const D=[];if(y.value2+e.bufferSize&&(O=!0,P=Math.min(v.value-e.bufferSize,y.value-2*e.bufferSize)),v.valuee.simple?$("span",{class:`${r}-simple`},[x("previous",{simple:!0}),$(Ore,{disabled:e.disabled,current:v.value,size:d.value,pages:y.value,simple:!0,onChange:S},null),x("next",{simple:!0})]):$("ul",{class:`${r}-list`},[x("previous",{simple:!0}),E.value,e.showMore&&x("more",{key:"more",step:e.bufferSize*2+1}),x("next",{simple:!0})]);It(g,(D,P)=>{if(e.autoAdjust&&D!==P&&v.value>1){const M=P*(v.value-1)+1,O=Math.ceil(M/D);O!==v.value&&(h.value=O,t("update:current",O),t("change",O))}}),It(y,(D,P)=>{if(e.autoAdjust&&D!==P&&v.value>1&&v.value>D){const M=Math.max(D,1);h.value=M,t("update:current",M),t("change",M)}});const T=F(()=>[r,`${r}-size-${d.value}`,{[`${r}-simple`]:e.simple,[`${r}-disabled`]:e.disabled}]);return()=>{var D,P;return e.hideOnSinglePage&&y.value<=1?null:$("div",{class:T.value},[e.showTotal&&$("span",{class:`${r}-total`},[(P=(D=n.total)==null?void 0:D.call(n,{total:e.total}))!=null?P:i("pagination.total",e.total)]),_(),e.showPageSize&&$(XNe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:d.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&$(Ore,{disabled:e.disabled,current:v.value,pages:y.value,size:d.value,onChange:S},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const OH=Object.assign(GR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+GR.name,GR)}}),ZNe=(e,{emit:t})=>{var n,r;const i=ue(gr(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=ue(gr(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=F(()=>{var h;return gr(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:i.value}),l=F(()=>{var h;return gr(e.paginationProps)&&(h=e.paginationProps.pageSize)!=null?h:a.value});return{current:s,pageSize:l,handlePageChange:h=>{i.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}};function Bre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var KR=we({name:"List",props:{data:{type:Array},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},split:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},paginationProps:{type:Object},gridProps:{type:Object},maxHeight:{type:[String,Number],default:0},bottomOffset:{type:Number,default:0},virtualListProps:{type:Object},scrollbar:{type:[Object,Boolean],default:!0}},emits:{scroll:()=>!0,reachBottom:()=>!0,pageChange:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const{scrollbar:r}=tn(e),i=Re("list"),a=Pn(Za,void 0),{componentRef:s,elementRef:l}=G1("containerRef"),c=F(()=>e.virtualListProps),{displayScrollbar:d,scrollbarProps:h}=F5(r);let p=0;const v=U=>{const{scrollTop:K,scrollHeight:Y,offsetHeight:ie}=U.target,te=Math.floor(Y-(K+ie));K>p&&te<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=K};hn(()=>{if(l.value){const{scrollTop:U,scrollHeight:K,offsetHeight:Y}=l.value;K<=U+Y&&t("reachBottom")}});const{current:g,pageSize:y,handlePageChange:S,handlePageSizeChange:k}=ZNe(e,{emit:t}),C=U=>{if(!e.paginationProps)return U;if(e.paginationProps&&U.length>y.value){const K=(g.value-1)*y.value;return U.slice(K,K+y.value)}return U},x=U=>{let K;if(!e.gridProps)return null;const Y=C(U);if(e.gridProps.span){const ie=[],te=24/e.gridProps.span;for(let W=0;W{var Ce;return $(P4.Col,{key:`${se}-${re}`,class:`${i}-col`,span:(Ce=e.gridProps)==null?void 0:Ce.span},{default:()=>{var Ve;return[Wi(ae)?ae:(Ve=n.item)==null?void 0:Ve.call(n,{item:ae,index:re})]}})}))?q:{default:()=>[q]}))}return ie}return $(P4.Row,{class:`${i}-row`,gutter:e.gridProps.gutter},Bre(K=Y.map((ie,te)=>$(P4.Col,Ft({key:te,class:`${i}-col`},Ea(e.gridProps,["gutter"])),{default:()=>{var W;return[Wi(ie)?ie:(W=n.item)==null?void 0:W.call(n,{item:ie,index:te})]}})))?K:{default:()=>[K]})},E=U=>C(U).map((Y,ie)=>{var te;return Wi(Y)?Y:(te=n.item)==null?void 0:te.call(n,{item:Y,index:ie})}),_=()=>{const U=n.default?yf(n.default()):e.data;return U&&U.length>0?e.gridProps?x(U):E(U):j()},T=()=>{if(!e.paginationProps)return null;const U=Ea(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return $(OH,Ft({class:`${i}-pagination`},U,{current:g.value,pageSize:y.value,onChange:S,onPageSizeChange:k}),null)},D=F(()=>[i,`${i}-${e.size}`,{[`${i}-bordered`]:e.bordered,[`${i}-split`]:e.split,[`${i}-hover`]:e.hoverable}]),P=F(()=>{if(e.maxHeight)return{maxHeight:et(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),M=F(()=>[`${i}-content`,{[`${i}-virtual`]:c.value}]),O=ue(),L=()=>{var U;const K=C((U=e.data)!=null?U:[]);return K.length?$(c3,Ft({ref:O,class:M.value,data:K},e.virtualListProps,{onScroll:v}),{item:({item:Y,index:ie})=>{var te;return(te=n.item)==null?void 0:te.call(n,{item:Y,index:ie})}}):j()},B=()=>n["scroll-loading"]?$("div",{class:[`${i}-item`,`${i}-scroll-loading`]},[n["scroll-loading"]()]):null,j=()=>{var U,K,Y,ie,te;return n["scroll-loading"]?null:(te=(ie=(U=n.empty)==null?void 0:U.call(n))!=null?ie:(Y=a==null?void 0:(K=a.slots).empty)==null?void 0:Y.call(K,{component:"list"}))!=null?te:$(Xh,null,null)};return{virtualListRef:O,render:()=>{const U=d.value?Rd:"div";return $("div",{class:`${i}-wrapper`},[$(Pd,{class:`${i}-spin`,loading:e.loading},{default:()=>[$(U,Ft({ref:s,class:D.value,style:P.value},h.value,{onScroll:v}),{default:()=>[$("div",{class:`${i}-content-wrapper`},[n.header&&$("div",{class:`${i}-header`},[n.header()]),c.value&&!e.gridProps?$(Pt,null,[L(),B()]):$("div",{role:"list",class:M.value},[_(),B()]),n.footer&&$("div",{class:`${i}-footer`},[n.footer()])])]}),T()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),Uw=we({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=Re("list-item"),r=()=>{var i;const a=(i=t.actions)==null?void 0:i.call(t);return!a||!a.length?null:$("ul",{class:`${n}-action`},[a.map((s,l)=>$("li",{key:`${n}-action-${l}`},[s]))])};return()=>{var i,a;return $("div",{role:"listitem",class:n},[$("div",{class:`${n}-main`},[(i=t.meta)==null?void 0:i.call(t),$("div",{class:`${n}-content`},[(a=t.default)==null?void 0:a.call(t)]),e.actionLayout==="vertical"&&r()]),e.actionLayout==="horizontal"&&r(),t.extra&&$("div",{class:`${n}-extra`},[t.extra()])])}}});const JNe=we({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=Re("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function QNe(e,t,n,r,i,a){return z(),X("div",{class:de(e.prefixCls)},[e.$slots.avatar?(z(),X("div",{key:0,class:de(`${e.prefixCls}-avatar`)},[mt(e.$slots,"avatar")],2)):Ie("v-if",!0),e.hasContent?(z(),X("div",{key:1,class:de(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ie("v-if",!0),e.$slots.description||e.description?(z(),X("div",{key:1,class:de(`${e.prefixCls}-description`)},[mt(e.$slots,"description",{},()=>[He(Ne(e.description),1)])],2)):Ie("v-if",!0)],2)):Ie("v-if",!0)],2)}var Hw=ze(JNe,[["render",QNe]]);const Z0e=Object.assign(KR,{Item:Object.assign(Uw,{Meta:Hw}),install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+KR.name,KR),e.component(n+Uw.name,Uw),e.component(n+Hw.name,Hw)}}),eFe=["border-width","box-sizing","font-family","font-weight","font-size","font-variant","letter-spacing","line-height","padding-top","padding-bottom","padding-left","padding-right","text-indent","text-rendering","text-transform","white-space","overflow-wrap","width"],dV=e=>{const t={};return eFe.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},tFe=we({name:"Textarea",components:{ResizeObserver:Dd,IconHover:Lo,IconClose:fs},inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},autoSize:{type:[Boolean,Object],default:!1},wordLength:{type:Function},wordSlice:{type:Function},textareaAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n}){const{disabled:r,error:i,modelValue:a}=tn(e),s=Re("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:d}=Do({disabled:r,error:i}),h=ue(),p=ue(),v=ue(),g=ue(),y=ue(e.defaultValue),S=F(()=>{var Oe;return(Oe=a.value)!=null?Oe:y.value}),[k,C]=ype(h);It(a,Oe=>{(xn(Oe)||Al(Oe))&&(y.value="")});const x=F(()=>gr(e.maxLength)&&!!e.maxLength.errorOnly),E=F(()=>gr(e.maxLength)?e.maxLength.length:e.maxLength),_=Oe=>{var qe;return Sn(e.wordLength)?e.wordLength(Oe):(qe=Oe.length)!=null?qe:0},T=F(()=>_(S.value)),D=F(()=>c.value||!!(E.value&&x.value&&T.value>E.value)),P=ue(!1),M=ue(!1),O=F(()=>e.allowClear&&!l.value&&S.value),L=ue(!1),B=ue(""),j=()=>{k(),dn(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,C())})},H=(Oe,qe=!0)=>{var Ke,at;E.value&&!x.value&&_(Oe)>E.value&&(Oe=(at=(Ke=e.wordSlice)==null?void 0:Ke.call(e,Oe,E.value))!=null?at:Oe.slice(0,E.value)),y.value=Oe,qe&&t("update:modelValue",Oe),j()};let U=S.value;const K=(Oe,qe)=>{var Ke,at;Oe!==U&&(U=Oe,t("change",Oe,qe),(at=(Ke=d.value)==null?void 0:Ke.onChange)==null||at.call(Ke,qe))},Y=Oe=>{var qe,Ke;M.value=!0,U=S.value,t("focus",Oe),(Ke=(qe=d.value)==null?void 0:qe.onFocus)==null||Ke.call(qe,Oe)},ie=Oe=>{var qe,Ke;M.value=!1,t("blur",Oe),(Ke=(qe=d.value)==null?void 0:qe.onBlur)==null||Ke.call(qe,Oe),K(S.value,Oe)},te=Oe=>{var qe,Ke;const{value:at}=Oe.target;if(Oe.type==="compositionend"){if(L.value=!1,B.value="",E.value&&!x.value&&S.value.length>=E.value&&_(at)>E.value){j();return}t("input",at,Oe),H(at),(Ke=(qe=d.value)==null?void 0:qe.onInput)==null||Ke.call(qe,Oe)}else L.value=!0},W=Oe=>{var qe,Ke;const{value:at}=Oe.target;if(L.value)B.value=at;else{if(E.value&&!x.value&&S.value.length>=E.value&&_(at)>E.value&&Oe.inputType==="insertText"){j();return}t("input",at,Oe),H(at),(Ke=(qe=d.value)==null?void 0:qe.onInput)==null||Ke.call(qe,Oe)}},q=Oe=>{H(""),K("",Oe),t("clear",Oe)};It(a,Oe=>{Oe!==S.value&&H(Oe??"",!1)});const Q=Oe=>Ea(n,k0),se=Oe=>kf(n,k0),ae=se(),re=F(()=>{const Oe={...ae,...e.textareaAttrs};return D.value&&(Oe["aria-invalid"]=!0),Oe}),Ce=F(()=>[`${s}-wrapper`,{[`${s}-focus`]:M.value,[`${s}-disabled`]:l.value,[`${s}-error`]:D.value,[`${s}-scroll`]:P.value}]);let Ve;const ge=ue(0),xe=ue(0),Ge=F(()=>!gr(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*ge.value+xe.value),tt=F(()=>!gr(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*ge.value+xe.value),Ue=()=>{const Oe=dV(Ve);ge.value=Number.parseInt(Oe["line-height"]||0,10),xe.value=Number.parseInt(Oe["border-width"]||0,10)*2+Number.parseInt(Oe["padding-top"]||0,10)+Number.parseInt(Oe["padding-bottom"]||0,10),g.value=Oe,dn(()=>{var qe;const Ke=(qe=v.value)==null?void 0:qe.offsetHeight;let at=Ke??0,ft="hidden";Ge.value&&attt.value&&(at=tt.value,ft="auto"),p.value={height:`${at}px`,resize:"none",overflow:ft}})};hn(()=>{h.value&&(Ve=window.getComputedStyle(h.value),e.autoSize&&Ue()),me()});const _e=()=>{e.autoSize&&v.value&&Ue(),me()},ve=Oe=>{h.value&&Oe.target!==h.value&&(Oe.preventDefault(),h.value.focus())},me=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?P.value||(P.value=!0):P.value&&(P.value=!1))};return It(S,()=>{e.autoSize&&v.value&&Ue(),me()}),{prefixCls:s,wrapperCls:Ce,textareaRef:h,textareaStyle:p,mirrorRef:v,mirrorStyle:g,computedValue:S,showClearBtn:O,valueLength:T,computedMaxLength:E,mergedDisabled:l,mergeTextareaAttrs:re,getWrapperAttrs:Q,getTextareaAttrs:se,handleInput:W,handleFocus:Y,handleBlur:ie,handleComposition:te,handleClear:q,handleResize:_e,handleMousedown:ve}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),nFe=["disabled","value","placeholder"];function rFe(e,t,n,r,i,a){const s=Te("resize-observer"),l=Te("icon-close"),c=Te("icon-hover");return z(),X("div",Ft(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...d)=>e.handleMousedown&&e.handleMousedown(...d))}),[e.autoSize?(z(),X("div",{key:0,ref:"mirrorRef",class:de(`${e.prefixCls}-mirror`),style:Ye(e.mirrorStyle)},Ne(`${e.computedValue} -`),7)):Ie("v-if",!0),$(s,{onResize:e.handleResize},{default:fe(()=>[I("textarea",Ft({ref:"textareaRef"},e.mergeTextareaAttrs,{disabled:e.mergedDisabled,class:e.prefixCls,style:e.textareaStyle,value:e.computedValue,placeholder:e.placeholder,onInput:t[0]||(t[0]=(...d)=>e.handleInput&&e.handleInput(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onCompositionstart:t[3]||(t[3]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionupdate:t[4]||(t[4]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionend:t[5]||(t[5]=(...d)=>e.handleComposition&&e.handleComposition(...d))}),null,16,nFe)]),_:1},8,["onResize"]),mt(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(z(),X("div",{key:1,class:de(`${e.prefixCls}-word-limit`)},Ne(e.valueLength)+"/"+Ne(e.computedMaxLength),3)):Ie("v-if",!0),e.showClearBtn?(z(),X("div",{key:2,class:de(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...d)=>e.handleClear&&e.handleClear(...d))},[$(c,null,{default:fe(()=>[$(l)]),_:1})],2)):Ie("v-if",!0)],16)}var qR=ze(tFe,[["render",rFe]]);const J0e=Object.assign(qR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+qR.name,qR)}}),iFe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},oFe=(e,t)=>[].concat(t).reduce((r,i)=>{const a=e.lastIndexOf(i);return a>r.location?{location:a,prefix:i}:r},{location:-1,prefix:""}),sFe=(e,t)=>!t||!e.includes(t);function aFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var YR=we({name:"Mention",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},data:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@"},split:{type:String,default:" "},type:{type:String,default:"input"},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:(e,t)=>!0,select:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const i=Re("mention");let a;const{mergedDisabled:s,eventHandlers:l}=Do({disabled:Du(e,"disabled")}),{data:c,modelValue:d}=tn(e),h=ue(),p=ue({}),v=ue(e.defaultValue),g=F(()=>{var ae;return(ae=e.modelValue)!=null?ae:v.value});It(d,ae=>{(xn(ae)||Al(ae))&&(v.value="")});const y=F(()=>g.value?[Rm(g.value)]:[]),S=ue({measuring:!1,location:-1,prefix:"",text:""}),k=()=>{S.value={measuring:!1,location:-1,prefix:"",text:""}},C=ue(),x=F(()=>S.value.text),E=ue(!0),_=(ae,re)=>{var Ce,Ve;const ge=iFe(re.target),xe=oFe(ge,e.prefix);if(xe.location>-1){const Ge=ge.slice(xe.location+xe.prefix.length);sFe(Ge,e.split)?(D.value=!0,S.value={measuring:!0,text:Ge,...xe},t("search",Ge,xe.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();v.value=ae,t("update:modelValue",ae),t("change",ae),(Ve=(Ce=l.value)==null?void 0:Ce.onChange)==null||Ve.call(Ce)},T=ae=>{var re,Ce;v.value="",t("update:modelValue",""),t("change",""),(Ce=(re=l.value)==null?void 0:re.onChange)==null||Ce.call(re),t("clear",ae)},D=ue(!1),P=F(()=>D.value&&S.value.measuring&&H.value.length>0),M=()=>{K.value=dV(a)},O=ae=>{D.value=ae},L=(ae,re)=>{var Ce,Ve,ge;const{value:xe}=(Ce=j.get(ae))!=null?Ce:{},Ge=S.value.location,tt=S.value.location+S.value.text.length;let Ue=v.value.slice(0,Ge),_e=v.value.slice(tt+1);Ue+=!Ue||Ue.endsWith(e.split)||Ue.endsWith(` + */const j1=typeof document<"u";function Vhe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function qIe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Vhe(e.default)}const so=Object.assign;function kP(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ld(i)?i.map(e):e(i)}return n}const eb=()=>{},Ld=Array.isArray,zhe=/#/g,YIe=/&/g,XIe=/\//g,ZIe=/=/g,JIe=/\?/g,Uhe=/\+/g,QIe=/%5B/g,eLe=/%5D/g,Hhe=/%5E/g,tLe=/%60/g,Whe=/%7B/g,nLe=/%7C/g,Ghe=/%7D/g,rLe=/%20/g;function sH(e){return encodeURI(""+e).replace(nLe,"|").replace(QIe,"[").replace(eLe,"]")}function iLe(e){return sH(e).replace(Whe,"{").replace(Ghe,"}").replace(Hhe,"^")}function Yj(e){return sH(e).replace(Uhe,"%2B").replace(rLe,"+").replace(zhe,"%23").replace(YIe,"%26").replace(tLe,"`").replace(Whe,"{").replace(Ghe,"}").replace(Hhe,"^")}function oLe(e){return Yj(e).replace(ZIe,"%3D")}function sLe(e){return sH(e).replace(zhe,"%23").replace(JIe,"%3F")}function aLe(e){return e==null?"":sLe(e).replace(XIe,"%2F")}function n_(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const lLe=/\/$/,uLe=e=>e.replace(lLe,"");function wP(e,t,n="/"){let r,i={},a="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,l>-1?l:t.length),i=e(a)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=hLe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:i,hash:n_(s)}}function cLe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Bne(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dLe(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&My(t.matched[r],n.matched[i])&&Khe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function My(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Khe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fLe(e[n],t[n]))return!1;return!0}function fLe(e,t){return Ld(e)?Nne(e,t):Ld(t)?Nne(t,e):e===t}function Nne(e,t){return Ld(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function hLe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const Tp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var r_;(function(e){e.pop="pop",e.push="push"})(r_||(r_={}));var tb;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tb||(tb={}));function pLe(e){if(!e)if(j1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uLe(e)}const vLe=/^[^#]+#/;function mLe(e,t){return e.replace(vLe,"#")+t}function gLe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const I5=()=>({left:window.scrollX,top:window.scrollY});function yLe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=gLe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Fne(e,t){return(history.state?history.state.position-t:-1)+e}const Xj=new Map;function bLe(e,t){Xj.set(e,t)}function _Le(e){const t=Xj.get(e);return Xj.delete(e),t}let SLe=()=>location.protocol+"//"+location.host;function qhe(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let l=i.includes(e.slice(a))?e.slice(a).length:1,c=i.slice(l);return c[0]!=="/"&&(c="/"+c),Bne(c,"")}return Bne(n,e)+r+i}function kLe(e,t,n,r){let i=[],a=[],s=null;const l=({state:v})=>{const g=qhe(e,location),y=n.value,S=t.value;let k=0;if(v){if(n.value=g,t.value=v,s&&s===y){s=null;return}k=S?v.position-S.position:0}else r(g);i.forEach(w=>{w(n.value,y,{delta:k,type:r_.pop,direction:k?k>0?tb.forward:tb.back:tb.unknown})})};function c(){s=n.value}function d(v){i.push(v);const g=()=>{const y=i.indexOf(v);y>-1&&i.splice(y,1)};return a.push(g),g}function h(){const{history:v}=window;v.state&&v.replaceState(so({},v.state,{scroll:I5()}),"")}function p(){for(const v of a)v();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:d,destroy:p}}function jne(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?I5():null}}function wLe(e){const{history:t,location:n}=window,r={value:qhe(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,d,h){const p=e.indexOf("#"),v=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:SLe()+e+c;try{t[h?"replaceState":"pushState"](d,"",v),i.value=d}catch(g){console.error(g),n[h?"replace":"assign"](v)}}function s(c,d){const h=so({},t.state,jne(i.value.back,c,i.value.forward,!0),d,{position:i.value.position});a(c,h,!0),r.value=c}function l(c,d){const h=so({},i.value,t.state,{forward:c,scroll:I5()});a(h.current,h,!0);const p=so({},jne(r.value,c,null),{position:h.position+1},d);a(c,p,!1),r.value=c}return{location:r,state:i,push:l,replace:s}}function xLe(e){e=pLe(e);const t=wLe(e),n=kLe(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=so({location:"",base:e,go:r,createHref:mLe.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function CLe(e){return typeof e=="string"||e&&typeof e=="object"}function Yhe(e){return typeof e=="string"||typeof e=="symbol"}const Xhe=Symbol("");var Vne;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Vne||(Vne={}));function Oy(e,t){return so(new Error,{type:e,[Xhe]:!0},t)}function sh(e,t){return e instanceof Error&&Xhe in e&&(t==null||!!(e.type&t))}const zne="[^/]+?",ELe={sensitive:!1,strict:!1,start:!0,end:!0},TLe=/[.+*?^${}()[\]/\\]/g;function ALe(e,t){const n=so({},ELe,t),r=[];let i=n.start?"^":"";const a=[];for(const d of e){const h=d.length?[]:[90];n.strict&&!d.length&&(i+="/");for(let p=0;pt.length?t.length===1&&t[0]===80?1:-1:0}function Zhe(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const LLe={type:0,value:""},DLe=/[a-zA-Z0-9_]/;function PLe(e){if(!e)return[[]];if(e==="/")return[[LLe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${d}": ${g}`)}let n=0,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let l=0,c,d="",h="";function p(){d&&(n===0?a.push({type:0,value:d}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:d,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function v(){d+=c}for(;l{s(E)}:eb}function s(p){if(Yhe(p)){const v=r.get(p);v&&(r.delete(p),n.splice(n.indexOf(v),1),v.children.forEach(s),v.alias.forEach(s))}else{const v=n.indexOf(p);v>-1&&(n.splice(v,1),p.record.name&&r.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function l(){return n}function c(p){const v=BLe(p,n);n.splice(v,0,p),p.record.name&&!Gne(p)&&r.set(p.record.name,p)}function d(p,v){let g,y={},S,k;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw Oy(1,{location:p});k=g.record.name,y=so(Hne(v.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),p.params&&Hne(p.params,g.keys.map(E=>E.name))),S=g.stringify(y)}else if(p.path!=null)S=p.path,g=n.find(E=>E.re.test(S)),g&&(y=g.parse(S),k=g.record.name);else{if(g=v.name?r.get(v.name):n.find(E=>E.re.test(v.path)),!g)throw Oy(1,{location:p,currentLocation:v});k=g.record.name,y=so({},v.params,p.params),S=g.stringify(y)}const w=[];let x=g;for(;x;)w.unshift(x.record),x=x.parent;return{name:k,path:S,params:y,matched:w,meta:$Le(w)}}e.forEach(p=>a(p));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:d,removeRoute:s,clearRoutes:h,getRoutes:l,getRecordMatcher:i}}function Hne(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Wne(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:OLe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function OLe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Gne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $Le(e){return e.reduce((t,n)=>so(t,n.meta),{})}function Kne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function BLe(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Zhe(e,t[a])<0?r=a:n=a+1}const i=NLe(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function NLe(e){let t=e;for(;t=t.parent;)if(Jhe(t)&&Zhe(e,t)===0)return t}function Jhe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function FLe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&Yj(a)):[r&&Yj(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function jLe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ld(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const VLe=Symbol(""),Yne=Symbol(""),L5=Symbol(""),aH=Symbol(""),Zj=Symbol("");function X2(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Zp(e,t,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,c)=>{const d=v=>{v===!1?c(Oy(4,{from:n,to:t})):v instanceof Error?c(v):CLe(v)?c(Oy(2,{from:t,to:v})):(s&&r.enterCallbacks[i]===s&&typeof v=="function"&&s.push(v),l())},h=a(()=>e.call(r&&r.instances[i],t,n,d));let p=Promise.resolve(h);e.length<3&&(p=p.then(d)),p.catch(v=>c(v))})}function xP(e,t,n,r,i=a=>a()){const a=[];for(const s of e)for(const l in s.components){let c=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(Vhe(c)){const h=(c.__vccOpts||c)[t];h&&a.push(Zp(h,n,r,s,l,i))}else{let d=c();a.push(()=>d.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const p=qIe(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Zp(g,n,r,s,l,i)()}))}}return a}function Xne(e){const t=Pn(L5),n=Pn(aH),r=F(()=>{const c=tt(e.to);return t.resolve(c)}),i=F(()=>{const{matched:c}=r.value,{length:d}=c,h=c[d-1],p=n.matched;if(!h||!p.length)return-1;const v=p.findIndex(My.bind(null,h));if(v>-1)return v;const g=Zne(c[d-2]);return d>1&&Zne(h)===g&&p[p.length-1].path!==g?p.findIndex(My.bind(null,c[d-2])):v}),a=F(()=>i.value>-1&&GLe(n.params,r.value.params)),s=F(()=>i.value>-1&&i.value===n.matched.length-1&&Khe(n.params,r.value.params));function l(c={}){if(WLe(c)){const d=t[tt(e.replace)?"replace":"push"](tt(e.to)).catch(eb);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:F(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function zLe(e){return e.length===1?e[0]:e}const ULe=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Xne,setup(e,{slots:t}){const n=Wt(Xne(e)),{options:r}=Pn(L5),i=F(()=>({[Jne(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Jne(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&zLe(t.default(n));return e.custom?a:fa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),HLe=ULe;function WLe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function GLe(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ld(i)||i.length!==r.length||r.some((a,s)=>a!==i[s]))return!1}return!0}function Zne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jne=(e,t,n)=>e??t??n,KLe=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Pn(Zj),i=F(()=>e.route||r.value),a=Pn(Yne,0),s=F(()=>{let d=tt(a);const{matched:h}=i.value;let p;for(;(p=h[d])&&!p.components;)d++;return d}),l=F(()=>i.value.matched[s.value]);oi(Yne,F(()=>s.value+1)),oi(VLe,l),oi(Zj,i);const c=ue();return It(()=>[c.value,l.value,e.name],([d,h,p],[v,g,y])=>{h&&(h.instances[p]=d,g&&g!==h&&d&&d===v&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),d&&h&&(!g||!My(h,g)||!v)&&(h.enterCallbacks[p]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=i.value,h=e.name,p=l.value,v=p&&p.components[h];if(!v)return Qne(n.default,{Component:v,route:d});const g=p.props[h],y=g?g===!0?d.params:typeof g=="function"?g(d):g:null,k=fa(v,so({},y,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return Qne(n.default,{Component:k,route:d})||k}}});function Qne(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qLe=KLe;function YLe(e){const t=MLe(e.routes,e),n=e.parseQuery||FLe,r=e.stringifyQuery||qne,i=e.history,a=X2(),s=X2(),l=X2(),c=h0(Tp);let d=Tp;j1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=kP.bind(null,ve=>""+ve),p=kP.bind(null,aLe),v=kP.bind(null,n_);function g(ve,Re){let Ge,nt;return Yhe(ve)?(Ge=t.getRecordMatcher(ve),nt=Re):nt=ve,t.addRoute(nt,Ge)}function y(ve){const Re=t.getRecordMatcher(ve);Re&&t.removeRoute(Re)}function S(){return t.getRoutes().map(ve=>ve.record)}function k(ve){return!!t.getRecordMatcher(ve)}function w(ve,Re){if(Re=so({},Re||c.value),typeof ve=="string"){const ge=wP(n,ve,Re.path),Be=t.resolve({path:ge.path},Re),Ye=i.createHref(ge.fullPath);return so(ge,Be,{params:v(Be.params),hash:n_(ge.hash),redirectedFrom:void 0,href:Ye})}let Ge;if(ve.path!=null)Ge=so({},ve,{path:wP(n,ve.path,Re.path).path});else{const ge=so({},ve.params);for(const Be in ge)ge[Be]==null&&delete ge[Be];Ge=so({},ve,{params:p(ge)}),Re.params=p(Re.params)}const nt=t.resolve(Ge,Re),Ie=ve.hash||"";nt.params=h(v(nt.params));const _e=cLe(r,so({},ve,{hash:iLe(Ie),path:nt.path})),me=i.createHref(_e);return so({fullPath:_e,hash:Ie,query:r===qne?jLe(ve.query):ve.query||{}},nt,{redirectedFrom:void 0,href:me})}function x(ve){return typeof ve=="string"?wP(n,ve,c.value.path):so({},ve)}function E(ve,Re){if(d!==ve)return Oy(8,{from:Re,to:ve})}function _(ve){return P(ve)}function T(ve){return _(so(x(ve),{replace:!0}))}function D(ve){const Re=ve.matched[ve.matched.length-1];if(Re&&Re.redirect){const{redirect:Ge}=Re;let nt=typeof Ge=="function"?Ge(ve):Ge;return typeof nt=="string"&&(nt=nt.includes("?")||nt.includes("#")?nt=x(nt):{path:nt},nt.params={}),so({query:ve.query,hash:ve.hash,params:nt.path!=null?{}:ve.params},nt)}}function P(ve,Re){const Ge=d=w(ve),nt=c.value,Ie=ve.state,_e=ve.force,me=ve.replace===!0,ge=D(Ge);if(ge)return P(so(x(ge),{state:typeof ge=="object"?so({},Ie,ge.state):Ie,force:_e,replace:me}),Re||Ge);const Be=Ge;Be.redirectedFrom=Re;let Ye;return!_e&&dLe(r,nt,Ge)&&(Ye=Oy(16,{to:Be,from:nt}),Q(nt,nt,!0,!1)),(Ye?Promise.resolve(Ye):L(Be,nt)).catch(Ke=>sh(Ke)?sh(Ke,2)?Ke:Y(Ke):ae(Ke,Be,nt)).then(Ke=>{if(Ke){if(sh(Ke,2))return P(so({replace:me},x(Ke.to),{state:typeof Ke.to=="object"?so({},Ie,Ke.to.state):Ie,force:_e}),Re||Be)}else Ke=j(Be,nt,!0,me,Ie);return B(Be,nt,Ke),Ke})}function M(ve,Re){const Ge=E(ve,Re);return Ge?Promise.reject(Ge):Promise.resolve()}function $(ve){const Re=te.values().next().value;return Re&&typeof Re.runWithContext=="function"?Re.runWithContext(ve):ve()}function L(ve,Re){let Ge;const[nt,Ie,_e]=XLe(ve,Re);Ge=xP(nt.reverse(),"beforeRouteLeave",ve,Re);for(const ge of nt)ge.leaveGuards.forEach(Be=>{Ge.push(Zp(Be,ve,Re))});const me=M.bind(null,ve,Re);return Ge.push(me),Fe(Ge).then(()=>{Ge=[];for(const ge of a.list())Ge.push(Zp(ge,ve,Re));return Ge.push(me),Fe(Ge)}).then(()=>{Ge=xP(Ie,"beforeRouteUpdate",ve,Re);for(const ge of Ie)ge.updateGuards.forEach(Be=>{Ge.push(Zp(Be,ve,Re))});return Ge.push(me),Fe(Ge)}).then(()=>{Ge=[];for(const ge of _e)if(ge.beforeEnter)if(Ld(ge.beforeEnter))for(const Be of ge.beforeEnter)Ge.push(Zp(Be,ve,Re));else Ge.push(Zp(ge.beforeEnter,ve,Re));return Ge.push(me),Fe(Ge)}).then(()=>(ve.matched.forEach(ge=>ge.enterCallbacks={}),Ge=xP(_e,"beforeRouteEnter",ve,Re,$),Ge.push(me),Fe(Ge))).then(()=>{Ge=[];for(const ge of s.list())Ge.push(Zp(ge,ve,Re));return Ge.push(me),Fe(Ge)}).catch(ge=>sh(ge,8)?ge:Promise.reject(ge))}function B(ve,Re,Ge){l.list().forEach(nt=>$(()=>nt(ve,Re,Ge)))}function j(ve,Re,Ge,nt,Ie){const _e=E(ve,Re);if(_e)return _e;const me=Re===Tp,ge=j1?history.state:{};Ge&&(nt||me?i.replace(ve.fullPath,so({scroll:me&&ge&&ge.scroll},Ie)):i.push(ve.fullPath,Ie)),c.value=ve,Q(ve,Re,Ge,me),Y()}let H;function U(){H||(H=i.listen((ve,Re,Ge)=>{if(!Se.listening)return;const nt=w(ve),Ie=D(nt);if(Ie){P(so(Ie,{replace:!0,force:!0}),nt).catch(eb);return}d=nt;const _e=c.value;j1&&bLe(Fne(_e.fullPath,Ge.delta),I5()),L(nt,_e).catch(me=>sh(me,12)?me:sh(me,2)?(P(so(x(me.to),{force:!0}),nt).then(ge=>{sh(ge,20)&&!Ge.delta&&Ge.type===r_.pop&&i.go(-1,!1)}).catch(eb),Promise.reject()):(Ge.delta&&i.go(-Ge.delta,!1),ae(me,nt,_e))).then(me=>{me=me||j(nt,_e,!1),me&&(Ge.delta&&!sh(me,8)?i.go(-Ge.delta,!1):Ge.type===r_.pop&&sh(me,20)&&i.go(-1,!1)),B(nt,_e,me)}).catch(eb)}))}let W=X2(),K=X2(),oe;function ae(ve,Re,Ge){Y(ve);const nt=K.list();return nt.length?nt.forEach(Ie=>Ie(ve,Re,Ge)):console.error(ve),Promise.reject(ve)}function ee(){return oe&&c.value!==Tp?Promise.resolve():new Promise((ve,Re)=>{W.add([ve,Re])})}function Y(ve){return oe||(oe=!ve,U(),W.list().forEach(([Re,Ge])=>ve?Ge(ve):Re()),W.reset()),ve}function Q(ve,Re,Ge,nt){const{scrollBehavior:Ie}=e;if(!j1||!Ie)return Promise.resolve();const _e=!Ge&&_Le(Fne(ve.fullPath,0))||(nt||!Ge)&&history.state&&history.state.scroll||null;return dn().then(()=>Ie(ve,Re,_e)).then(me=>me&&yLe(me)).catch(me=>ae(me,ve,Re))}const ie=ve=>i.go(ve);let q;const te=new Set,Se={currentRoute:c,listening:!0,addRoute:g,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:w,options:e,push:_,replace:T,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:K.add,isReady:ee,install(ve){const Re=this;ve.component("RouterLink",HLe),ve.component("RouterView",qLe),ve.config.globalProperties.$router=Re,Object.defineProperty(ve.config.globalProperties,"$route",{enumerable:!0,get:()=>tt(c)}),j1&&!q&&c.value===Tp&&(q=!0,_(i.location).catch(Ie=>{}));const Ge={};for(const Ie in Tp)Object.defineProperty(Ge,Ie,{get:()=>c.value[Ie],enumerable:!0});ve.provide(L5,Re),ve.provide(aH,jU(Ge)),ve.provide(Zj,c);const nt=ve.unmount;te.add(ve),ve.unmount=function(){te.delete(ve),te.size<1&&(d=Tp,H&&H(),H=null,c.value=Tp,q=!1,oe=!1),nt()}}};function Fe(ve){return ve.reduce((Re,Ge)=>Re.then(()=>$(Ge)),Promise.resolve())}return Se}function XLe(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sMy(d,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(d=>My(d,c))||i.push(c))}return[n,r,i]}function ma(){return Pn(L5)}function s3(e){return Pn(aH)}const eg=Object.prototype.toString;function nr(e){return eg.call(e)==="[object Array]"}function Al(e){return eg.call(e)==="[object Null]"}function Tl(e){return eg.call(e)==="[object Boolean]"}function gr(e){return eg.call(e)==="[object Object]"}const Pm=e=>eg.call(e)==="[object Promise]";function hs(e){return eg.call(e)==="[object String]"}function et(e){return eg.call(e)==="[object Number]"&&e===e}function wn(e){return e===void 0}function Sn(e){return typeof e=="function"}function ZLe(e){return gr(e)&&Object.keys(e).length===0}function ere(e){return e||e===0}function nC(e){return e===window}const Qhe=e=>e?.$!==void 0,JLe=e=>/\[Q]Q/.test(e);function Hc(e){return gr(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const Za=Symbol("ArcoConfigProvider"),_w={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},QLe={locale:"zh-CN",empty:{description:"暂无数据"},drawer:{okText:"确定",cancelText:"取消"},popconfirm:{okText:"确定",cancelText:"取消"},modal:{okText:"确定",cancelText:"取消"},pagination:{goto:"前往",page:"页",countPerPage:"条/页",total:"共 {0} 条"},table:{okText:"确定",resetText:"重置"},upload:{start:"开始",cancel:"取消",delete:"删除",retry:"点击重试",buttonText:"点击上传",preview:"预览",drag:"点击或拖拽文件到此处上传",dragHover:"释放文件并开始上传",error:"上传失败"},calendar:_w,datePicker:{view:_w.view,month:_w.month,week:_w.week,placeholder:{date:"请选择日期",week:"请选择周",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",time:"请选择时间"},rangePlaceholder:{date:["开始日期","结束日期"],week:["开始周","结束周"],month:["开始月份","结束月份"],year:["开始年份","结束年份"],quarter:["开始季度","结束季度"],time:["开始时间","结束时间"]},selectTime:"选择时间",today:"今天",now:"此刻",ok:"确定"},image:{loading:"加载中"},imagePreview:{fullScreen:"全屏",rotateRight:"向右旋转",rotateLeft:"向左旋转",zoomIn:"放大",zoomOut:"缩小",originalSize:"原始尺寸"},typography:{copied:"已复制",copy:"复制",expand:"展开",collapse:"折叠",edit:"编辑"},form:{validateMessages:{required:"#{field} 是必填项",type:{string:"#{field} 不是合法的文本类型",number:"#{field} 不是合法的数字类型",boolean:"#{field} 不是合法的布尔类型",array:"#{field} 不是合法的数组类型",object:"#{field} 不是合法的对象类型",url:"#{field} 不是合法的 url 地址",email:"#{field} 不是合法的邮箱地址",ip:"#{field} 不是合法的 IP 地址"},number:{min:"`#{value}` 小于最小值 `#{min}`",max:"`#{value}` 大于最大值 `#{max}`",equal:"`#{value}` 不等于 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 范围内",positive:"`#{value}` 不是正数",negative:"`#{value}` 不是负数"},array:{length:"`#{field}` 个数不等于 #{length}",minLength:"`#{field}` 个数最少为 #{minLength}",maxLength:"`#{field}` 个数最多为 #{maxLength}",includes:"#{field} 不包含 #{includes}",deepEqual:"#{field} 不等于 #{deepEqual}",empty:"`#{field}` 不是空数组"},string:{minLength:"字符数最少为 #{minLength}",maxLength:"字符数最多为 #{maxLength}",length:"字符数必须是 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 必须全大写",lowercase:"`#{value}` 必须全小写"},object:{deepEqual:"`#{field}` 不等于期望值",hasKeys:"`#{field}` 不包含必须字段",empty:"`#{field}` 不是对象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}},colorPicker:{history:"最近使用颜色",preset:"系统预设颜色",empty:"暂无"}},lH=ue("zh-CN"),z8=Wt({"zh-CN":QLe}),e7e=(e,t)=>{for(const n of Object.keys(e))(!z8[n]||t?.overwrite)&&(z8[n]=e[n])},t7e=e=>{if(!z8[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}lH.value=e},n7e=()=>lH.value,No=()=>{const e=Pn(Za,void 0),t=F(()=>{var i;return(i=e?.locale)!=null?i:z8[lH.value]}),n=F(()=>t.value.locale);return{i18nMessage:t,locale:n,t:(i,...a)=>{const s=i.split(".");let l=t.value;for(const c of s){if(!l[c])return i;l=l[c]}return hs(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,d)=>{var h;return(h=a[d])!=null?h:c}):l}}},r7e="A",i7e="arco",Jj="$arco",Kn=e=>{var t;return(t=e?.componentPrefix)!=null?t:r7e},qn=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[Jj]={...(n=e.config.globalProperties[Jj])!=null?n:{},classPrefix:t.classPrefix})},Me=e=>{var t,n,r;const i=So(),a=Pn(Za,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=i?.appContext.config.globalProperties[Jj])==null?void 0:t.classPrefix)!=null?r:i7e;return e?`${s}-${e}`:s};var epe=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i0},e.prototype.connect_=function(){!Qj||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c7e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Qj||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=u7e.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),tpe=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof $y(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new b7e(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof $y(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new _7e(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),rpe=typeof WeakMap<"u"?new WeakMap:new epe,ipe=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d7e.getInstance(),r=new S7e(t,n,this);rpe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){ipe.prototype[e]=function(){var t;return(t=rpe.get(this))[e].apply(t,arguments)}});var P5=(function(){return typeof U8.ResizeObserver<"u"?U8.ResizeObserver:ipe})();const R5=e=>!!(e&&e.shapeFlag&1),X_=(e,t)=>!!(e&&e.shapeFlag&6),k7e=(e,t)=>!!(e&&e.shapeFlag&8),M5=(e,t)=>!!(e&&e.shapeFlag&16),O5=(e,t)=>!!(e&&e.shapeFlag&32),ay=e=>{var t,n;if(e)for(const r of e){if(R5(r)||X_(r))return r;if(M5(r,r.children)){const i=ay(r.children);if(i)return i}else if(O5(r,r.children)){const i=(n=(t=r.children).default)==null?void 0:n.call(t);if(i){const a=ay(i);if(a)return a}}else if(nr(r)){const i=ay(r);if(i)return i}}},w7e=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},ope=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&ope(i,t))return!0}return!1},uH=e=>{if(M5(e,e.children))return e.children;if(nr(e))return e},spe=e=>{var t,n;if(R5(e))return e.el;if(X_(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=spe(e.component.subTree);if(r)return r}}else{const r=uH(e);return ape(r)}},ape=e=>{if(e&&e.length>0)for(const t of e){const n=spe(t);if(n)return n}},yf=(e,t=!1)=>{var n,r;const i=[];for(const a of e??[])R5(a)||X_(a)||t&&k7e(a,a.children)?i.push(a):M5(a,a.children)?i.push(...yf(a.children,t)):O5(a,a.children)?i.push(...yf((r=(n=a.children).default)==null?void 0:r.call(n),t)):nr(a)&&i.push(...yf(a,t));return i};function x7e(e){function t(n){const r=[];return n.forEach(i=>{var a,s;Wi(i)&&i.type===Pt?O5(i,i.children)?r.push(...t(((s=(a=i.children).default)==null?void 0:s.call(a))||[])):M5(i,i.children)?r.push(...t(i.children)):hs(i.children)&&r.push(i.children):r.push(i)}),r}return t(e)}const Wl=e=>{if(e)return Sn(e)?e:()=>e},lpe=(e,t)=>{var n;const r=[];if(X_(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...lpe(e.component.subTree,t));else{const i=uH(e);i&&r.push(...upe(i,t))}return r},upe=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...lpe(r,t));return n};var Dd=xe({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const i=ue(),a=F(()=>Qhe(i.value)?i.value.$el:i.value),s=c=>{c&&(r=new P5(d=>{const h=d[0];t("resize",h)}),r.observe(c))},l=()=>{r&&(r.disconnect(),r=null)};return It(a,c=>{r&&l(),c&&s(c)}),fn(()=>{a.value&&s(a.value)}),Yr(()=>{l()}),()=>{var c,d;const h=ay((d=(c=n.default)==null?void 0:c.call(n))!=null?d:[]);return h?El(h,{ref:i},!0):null}}});const cpe=typeof window>"u"?global:window,dpe=cpe.requestAnimationFrame,W8=cpe.cancelAnimationFrame;function Rm(e){let t=0;const n=(...r)=>{t&&W8(t),t=dpe(()=>{e(...r),t=0})};return n.cancel=()=>{W8(t),t=0},n}const ly=()=>{},fpe=()=>{const{body:e}=document,t=document.documentElement;let n;try{n=(window.top||window.self||window).document.body}catch{}return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight,n?.scrollHeight||0,n?.clientHeight||0),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth,n?.scrollWidth||0,n?.clientWidth||0)}},Z_=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Mi=Z_?ly:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},no=Z_?ly:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},C7e=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},$5=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},hpe=(e,t)=>{var n;return Z_?ly():(n=(t??document).querySelector(e))!=null?n:void 0},af=(e,t)=>{if(hs(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return hpe(n,t)}return e},E7e=(e,t)=>{const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return{top:n.top-r.top,bottom:r.bottom-n.bottom,left:n.left-r.left,right:r.right-n.right,width:n.width,height:n.height}},T7e=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,A7e=e=>e.tagName==="BODY"?window.innerWidth-fpe().width:e.offsetWidth-e.clientWidth;var Ue=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function I7e(e){return nC(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const L7e=xe({name:"Affix",components:{ResizeObserver:Dd},props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},target:{type:[String,Object,Function]},targetContainer:{type:[String,Object,Function]}},emits:{change:e=>!0},setup(e,{emit:t}){const n=Me("affix"),{target:r,targetContainer:i}=tn(e),a=ue(),s=ue(),l=ue(!1),c=ue({}),d=ue({}),h=F(()=>({[n]:l.value})),p=Rm(()=>{if(!a.value||!s.value)return;const{offsetTop:v,offsetBottom:g}=e,y=wn(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=I7e(s.value);let w=!1,x={};const E={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};y==="top"?(w=S.top-k.top<(v||0),x=w?{position:"fixed",top:`${k.top+(v||0)}px`}:{}):(w=k.bottom-S.bottom<(g||0),x=w?{position:"fixed",bottom:`${window.innerHeight-k.bottom+(g||0)}px`}:{}),w!==l.value&&(l.value=w,t("change",w)),c.value=E,d.value={...x,...w?E:{}}});return fn(()=>{$s(v=>{const g=r&&r.value!==window&&af(r.value)||window;s.value=g,g&&(Mi(g,"scroll",p),Mi(g,"resize",p),v(()=>{no(g,"scroll",p),no(g,"resize",p)}))}),$s(v=>{if(!s.value)return;const g=i&&i.value!==window&&af(i.value)||window;g&&(Mi(g,"scroll",p),Mi(g,"resize",p),v(()=>{no(g,"scroll",p),no(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:d,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),D7e={ref:"wrapperRef"};function P7e(e,t,n,r,i,a){const s=Ee("ResizeObserver");return z(),Ze(s,{onResize:e.updatePositionThrottle},{default:ce(()=>[I("div",D7e,[e.isFixed?(z(),X("div",{key:0,style:qe(e.placeholderStyles)},null,4)):Ae("v-if",!0),I("div",{class:fe(e.classNames),style:qe(e.fixedStyles)},[O(s,{onResize:e.updatePositionThrottle},{default:ce(()=>[mt(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var CP=Ue(L7e,[["render",P7e]]);const R7e=Object.assign(CP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+CP.name,CP)}}),M7e=xe({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Me("icon-hover")}}});function O7e(e,t,n,r,i,a){return z(),X("span",{class:fe([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[mt(e.$slots,"default")],2)}var Lo=Ue(M7e,[["render",O7e]]);const $7e=xe({name:"IconClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),B7e=["stroke-width","stroke-linecap","stroke-linejoin"];function N7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"},null,-1)]),14,B7e)}var EP=Ue($7e,[["render",N7e]]);const rs=Object.assign(EP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EP.name,EP)}}),F7e=xe({name:"IconInfoCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),j7e=["stroke-width","stroke-linecap","stroke-linejoin"];function V7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null,-1)]),14,j7e)}var TP=Ue(F7e,[["render",V7e]]);const a3=Object.assign(TP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TP.name,TP)}}),z7e=xe({name:"IconCheckCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),U7e=["stroke-width","stroke-linecap","stroke-linejoin"];function H7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,U7e)}var AP=Ue(z7e,[["render",H7e]]);const Zh=Object.assign(AP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AP.name,AP)}}),W7e=xe({name:"IconExclamationCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),G7e=["stroke-width","stroke-linecap","stroke-linejoin"];function K7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,G7e)}var IP=Ue(W7e,[["render",K7e]]);const If=Object.assign(IP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IP.name,IP)}}),q7e=xe({name:"IconCloseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Y7e=["stroke-width","stroke-linecap","stroke-linejoin"];function X7e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Y7e)}var LP=Ue(q7e,[["render",X7e]]);const tg=Object.assign(LP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LP.name,LP)}}),Z7e=xe({name:"Alert",components:{IconHover:Lo,IconClose:rs,IconInfoCircleFill:a3,IconCheckCircleFill:Zh,IconExclamationCircleFill:If,IconCloseCircleFill:tg},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},title:String,banner:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:{close:e=>!0,afterClose:()=>!0},setup(e,{slots:t,emit:n}){const r=Me("alert"),i=ue(!0),a=c=>{i.value=!1,n("close",c)},s=()=>{n("afterClose")},l=F(()=>[r,`${r}-${e.type}`,{[`${r}-with-title`]:!!(e.title||t.title),[`${r}-banner`]:e.banner,[`${r}-center`]:e.center}]);return{prefixCls:r,cls:l,visible:i,handleClose:a,handleAfterLeave:s}}});function J7e(e,t,n,r,i,a){const s=Ee("icon-info-circle-fill"),l=Ee("icon-check-circle-fill"),c=Ee("icon-exclamation-circle-fill"),d=Ee("icon-close-circle-fill"),h=Ee("icon-close"),p=Ee("icon-hover");return z(),Ze(Cs,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:ce(()=>[e.visible?(z(),X("div",{key:0,role:"alert",class:fe(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):Ae("v-if",!0)])],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2)],2),e.$slots.action?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-action`)},[mt(e.$slots,"action")],2)):Ae("v-if",!0),e.closable?(z(),X("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:fe(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...v)=>e.handleClose&&e.handleClose(...v))},[mt(e.$slots,"close-element",{},()=>[O(p,null,{default:ce(()=>[O(h)]),_:1})])],2)):Ae("v-if",!0)],2)):Ae("v-if",!0)]),_:3},8,["onAfterLeave"])}var DP=Ue(Z7e,[["render",J7e]]);const ppe=Object.assign(DP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+DP.name,DP)}});function nre(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function rre(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function PP(e,t){if(e.clientHeightt||a>e&&s=t&&l>=n?a-e-r:s>t&&ln?s-t+i:0}var eV=function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,s=t.boundary,l=t.skipOverflowHiddenElements,c=typeof s=="function"?s:function(ge){return ge!==s};if(!nre(e))throw new TypeError("Invalid target");for(var d,h,p=document.scrollingElement||document.documentElement,v=[],g=e;nre(g)&&c(g);){if((g=(h=(d=g).parentElement)==null?d.getRootNode().host||null:h)===p){v.push(g);break}g!=null&&g===document.body&&PP(g)&&!PP(document.documentElement)||g!=null&&PP(g,l)&&v.push(g)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,S=n.visualViewport?n.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),E=x.height,_=x.width,T=x.top,D=x.right,P=x.bottom,M=x.left,$=i==="start"||i==="nearest"?T:i==="end"?P:T+E/2,L=a==="center"?M+_/2:a==="end"?D:M,B=[],j=0;j=0&&M>=0&&P<=S&&D<=y&&T>=oe&&P<=ee&&M>=Y&&D<=ae)return B;var Q=getComputedStyle(H),ie=parseInt(Q.borderLeftWidth,10),q=parseInt(Q.borderTopWidth,10),te=parseInt(Q.borderRightWidth,10),Se=parseInt(Q.borderBottomWidth,10),Fe=0,ve=0,Re="offsetWidth"in H?H.offsetWidth-H.clientWidth-ie-te:0,Ge="offsetHeight"in H?H.offsetHeight-H.clientHeight-q-Se:0,nt="offsetWidth"in H?H.offsetWidth===0?0:K/H.offsetWidth:0,Ie="offsetHeight"in H?H.offsetHeight===0?0:W/H.offsetHeight:0;if(p===H)Fe=i==="start"?$:i==="end"?$-S:i==="nearest"?Sw(w,w+S,S,q,Se,w+$,w+$+E,E):$-S/2,ve=a==="start"?L:a==="center"?L-y/2:a==="end"?L-y:Sw(k,k+y,y,ie,te,k+L,k+L+_,_),Fe=Math.max(0,Fe+w),ve=Math.max(0,ve+k);else{Fe=i==="start"?$-oe-q:i==="end"?$-ee+Se+Ge:i==="nearest"?Sw(oe,ee,W,q,Se+Ge,$,$+E,E):$-(oe+W/2)+Ge/2,ve=a==="start"?L-Y-ie:a==="center"?L-(Y+K/2)+Re/2:a==="end"?L-ae+te+Re:Sw(Y,ae,K,ie,te+Re,L,L+_,_);var _e=H.scrollLeft,me=H.scrollTop;$+=me-(Fe=Math.max(0,Math.min(me+Fe/Ie,H.scrollHeight-W/Ie+Ge))),L+=_e-(ve=Math.max(0,Math.min(_e+ve/nt,H.scrollWidth-K/nt+Re)))}B.push({el:H,top:Fe,left:ve})}return B},J_=function(e){return function(t){return Math.pow(t,e)}},Q_=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},B5=function(e){return function(t){return t<.5?J_(e)(t*2)/2:Q_(e)(t*2-1)/2+.5}},Q7e=function(e){return e},eDe=J_(2),tDe=Q_(2),nDe=B5(2),rDe=J_(3),iDe=Q_(3),oDe=B5(3),sDe=J_(4),aDe=Q_(4),lDe=B5(4),uDe=J_(5),cDe=Q_(5),dDe=B5(5),fDe=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},hDe=function(e){return Math.sin(Math.PI/2*e)},pDe=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},cH=function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?(e-=1.5/n,t*e*e+.75):e<2.5/n?(e-=2.25/n,t*e*e+.9375):(e-=2.625/n,t*e*e+.984375)},vpe=function(e){return 1-cH(1-e)},vDe=function(e){return e<.5?vpe(e*2)*.5:cH(e*2-1)*.5+.5},mDe=Object.freeze({linear:Q7e,quadIn:eDe,quadOut:tDe,quadInOut:nDe,cubicIn:rDe,cubicOut:iDe,cubicInOut:oDe,quartIn:sDe,quartOut:aDe,quartInOut:lDe,quintIn:uDe,quintOut:cDe,quintInOut:dDe,sineIn:fDe,sineOut:hDe,sineInOut:pDe,bounceOut:cH,bounceIn:vpe,bounceInOut:vDe}),ng=function(t){var n=t.from,r=t.to,i=t.duration,a=t.delay,s=t.easing,l=t.onStart,c=t.onUpdate,d=t.onFinish;for(var h in n)r[h]===void 0&&(r[h]=n[h]);for(var p in r)n[p]===void 0&&(n[p]=r[p]);this.from=n,this.to=r,this.duration=i||500,this.delay=a||0,this.easing=s||"linear",this.onStart=l,this.onUpdate=c||function(){},this.onFinish=d,this.startTime=Date.now()+this.delay,this.started=!1,this.finished=!1,this.timer=null,this.keys={}};ng.prototype.update=function(){if(this.time=Date.now(),!(this.timethis.duration?this.duration:this.elapsed;for(var t in this.to)this.keys[t]=this.from[t]+(this.to[t]-this.from[t])*mDe[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};ng.prototype.start=function(){var t=this;this.startTime=Date.now()+this.delay;var n=function(){t.update(),t.timer=requestAnimationFrame(n),t.finished&&(cancelAnimationFrame(t.timer),t.timer=null)};n()};ng.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function gDe(e,t,n){new ng({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:i=>{e.scrollTop=i.scrollTop},onFinish:()=>{Sn(n)&&n()}}).start()}const mpe=Symbol("ArcoAnchor"),yDe=["start","end","center","nearest"],bDe=xe({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>et(e)||yDe.includes(e)},lineLess:{type:Boolean,default:!1},scrollContainer:{type:[String,Object]},changeHash:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},emits:{select:(e,t)=>!0,change:e=>!0},setup(e,{emit:t}){const n=Me("anchor"),r=ue(),i=ue(),a=Wt({}),s=ue(""),l=ue(!1),c=ue(),d=ue(),h=(T,D)=>{T&&(a[T]=D)},p=T=>{delete a[T]},v=(T,D)=>{e.changeHash||T.preventDefault(),D&&(g(D),S(D)),t("select",D,s.value)},g=T=>{try{const D=af(T);if(!D)return;let P,M=0;et(e.boundary)?(P="start",M=e.boundary):P=e.boundary;const $=eV(D,{block:P});if(!$.length)return;const{el:L,top:B}=$[0],j=B-M;gDe(L,j,()=>{l.value=!1}),l.value=!0}catch(D){console.error(D)}},y=Rm(()=>{if(l.value)return;const T=k();if(T&&T.id){const D=`#${T.id}`;S(D)}}),S=T=>{if(!a[T]&&r.value){const D=af(`a[data-href='${T}']`,r.value);if(!D)return;a[T]=D}T!==s.value&&(s.value=T,dn(()=>{t("change",T)}))},k=()=>{if(!c.value||!d.value)return;const T=et(e.boundary)?e.boundary:0,D=d.value.getBoundingClientRect();for(const P of Object.keys(a)){const M=af(P);if(M){const{top:$}=M.getBoundingClientRect(),L=nC(c.value)?$-T:$-D.top-T;if(L>=0&&L<=D.height/2)return M}}};It(s,()=>{const T=a[s.value];!e.lineLess&&T&&i.value&&(i.value.style.top=`${T.offsetTop}px`)});const w=()=>{c.value&&Mi(c.value,"scroll",y)},x=()=>{c.value&&no(c.value,"scroll",y)},E=()=>{e.scrollContainer?(c.value=nC(e.scrollContainer)?window:af(e.scrollContainer),d.value=nC(e.scrollContainer)?document.documentElement:af(e.scrollContainer)):(c.value=window,d.value=document.documentElement)};fn(()=>{E();const T=decodeURIComponent(window.location.hash);T?(g(T),S(T)):y(),w()}),_o(()=>{x()}),oi(mpe,Wt({currentLink:s,addLink:h,removeLink:p,handleClick:v}));const _=F(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:i}}});function _De(e,t,n,r,i,a){return z(),X("div",{ref:"anchorRef",class:fe(e.cls)},[e.lineLess?Ae("v-if",!0):(z(),X("div",{key:0,ref:"lineSliderRef",class:fe(`${e.prefixCls}-line-slider`)},null,2)),I("ul",{class:fe(`${e.prefixCls}-list`)},[mt(e.$slots,"default")],2)],2)}var RP=Ue(bDe,[["render",_De]]);const SDe=xe({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Me("anchor"),n=`${t}-link`,r=ue(),i=Pn(mpe,void 0);fn(()=>{e.href&&r.value&&i?.addLink(e.href,r.value)});const a=F(()=>[`${n}-item`,{[`${n}-active`]:i?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>i?.handleClick(l,e.href)}}}),kDe=["href"];function wDe(e,t,n,r,i,a){return z(),X("li",{ref:"linkRef",class:fe(e.cls)},[I("a",{class:fe(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[mt(e.$slots,"default",{},()=>[He(je(e.title),1)])],10,kDe),e.$slots.sublist?(z(),X("ul",{key:0,class:fe(`${e.prefixCls}-sublist`)},[mt(e.$slots,"sublist")],2)):Ae("v-if",!0)],2)}var rC=Ue(SDe,[["render",wDe]]);const xDe=Object.assign(RP,{Link:rC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+RP.name,RP),e.component(n+rC.name,rC)}}),N5=["info","success","warning","error"],w0=["onFocus","onFocusin","onFocusout","onBlur","onChange","onBeforeinput","onInput","onReset","onSubmit","onInvalid","onKeydown","onKeypress","onKeyup","onCopy","onCut","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onSelect","autocomplete","autofocus","maxlength","minlength","name","pattern","readonly","required"],CDe=xe({name:"IconLoading",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),EDe=["stroke-width","stroke-linecap","stroke-linejoin"];function TDe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1)]),14,EDe)}var MP=Ue(CDe,[["render",TDe]]);const Ja=Object.assign(MP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MP.name,MP)}}),ADe=xe({name:"FeedbackIcon",components:{IconLoading:Ja,IconCheckCircleFill:Zh,IconExclamationCircleFill:If,IconCloseCircleFill:tg},props:{type:{type:String}},setup(e){const t=Me("feedback-icon");return{cls:F(()=>[t,`${t}-status-${e.type}`])}}});function IDe(e,t,n,r,i,a){const s=Ee("icon-loading"),l=Ee("icon-check-circle-fill"),c=Ee("icon-exclamation-circle-fill"),d=Ee("icon-close-circle-fill");return z(),X("span",{class:fe(e.cls)},[e.type==="validating"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):Ae("v-if",!0)],2)}var eS=Ue(ADe,[["render",IDe]]);const dH={key:"Enter"},gpe={key:"Backspace",code:"Backspace"},LDe={code:"ArrowLeft"},DDe={code:"ArrowRight"},Ea=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function kf(e,t){const n={};return t.forEach(r=>{const i=r;r in e&&(n[i]=e[i])}),n}const tV=Symbol("ArcoFormItemContext"),fH=Symbol("ArcoFormContext"),Do=({size:e,disabled:t,error:n,uninject:r}={})=>{const i=r?{}:Pn(tV,{}),a=F(()=>{var h;return(h=e?.value)!=null?h:i.size}),s=F(()=>t?.value||i.disabled),l=F(()=>n?.value||i.error),c=Pu(i,"feedback"),d=Pu(i,"eventHandlers");return{formItemCtx:i,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:d}},Aa=(e,{defaultValue:t="medium"}={})=>{const n=Pn(Za,void 0);return{mergedSize:F(()=>{var i,a;return(a=(i=e?.value)!=null?i:n?.size)!=null?a:t})}};function ype(e){const t=ue();function n(){if(!e.value)return;const{selectionStart:i,selectionEnd:a,value:s}=e.value;if(i==null||a==null)return;const l=s.slice(0,Math.max(0,i)),c=s.slice(Math.max(0,a));t.value={selectionStart:i,selectionEnd:a,value:s,beforeTxt:l,afterTxt:c}}function r(){if(!e.value||!t.value)return;const{value:i}=e.value,{beforeTxt:a,afterTxt:s,selectionStart:l}=t.value;if(!a||!s||!l)return;let c=i.length;if(i.endsWith(s))c=i.length-s.length;else if(i.startsWith(a))c=a.length;else{const d=a[l-1],h=i.indexOf(d,l-1);h!==-1&&(c=h+1)}e.value.setSelectionRange(c,c)}return[n,r]}var nb=xe({name:"Input",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},size:{type:String},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},placeholder:String,maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},wordLength:{type:Function},wordSlice:{type:Function},inputAttrs:{type:Object},type:{type:String,default:"text"},prepend:String,append:String},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,pressEnter:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:i,disabled:a,error:s,modelValue:l}=tn(e),c=Me("input"),d=ue(),{mergedSize:h,mergedDisabled:p,mergedError:v,feedback:g,eventHandlers:y}=Do({size:i,disabled:a,error:s}),{mergedSize:S}=Aa(h),[k,w]=ype(d),x=ue(e.defaultValue),E=F(()=>{var me;return(me=e.modelValue)!=null?me:x.value});let _=E.value;It(l,me=>{(wn(me)||Al(me))&&(x.value="")}),It(E,(me,ge)=>{_=ge});const T=ue(!1),D=F(()=>e.allowClear&&!e.readonly&&!p.value&&!!E.value),P=ue(!1),M=ue(""),$=me=>{var ge;return Sn(e.wordLength)?e.wordLength(me):(ge=me.length)!=null?ge:0},L=F(()=>$(E.value)),B=F(()=>v.value||!!(gr(e.maxLength)&&e.maxLength.errorOnly&&L.value>H.value)),j=F(()=>gr(e.maxLength)&&!!e.maxLength.errorOnly),H=F(()=>gr(e.maxLength)?e.maxLength.length:e.maxLength),U=F(()=>{const me=$("a");return Math.floor(H.value/me)}),W=me=>{var ge,Be;H.value&&!j.value&&$(me)>H.value&&(me=(Be=(ge=e.wordSlice)==null?void 0:ge.call(e,me,H.value))!=null?Be:me.slice(0,U.value)),x.value=me,t("update:modelValue",me)},K=me=>{d.value&&me.target!==d.value&&(me.preventDefault(),d.value.focus())},oe=(me,ge)=>{var Be,Ye;me!==_&&(_=me,t("change",me,ge),(Ye=(Be=y.value)==null?void 0:Be.onChange)==null||Ye.call(Be,ge))},ae=me=>{var ge,Be;T.value=!0,t("focus",me),(Be=(ge=y.value)==null?void 0:ge.onFocus)==null||Be.call(ge,me)},ee=me=>{var ge,Be;T.value=!1,oe(E.value,me),t("blur",me),(Be=(ge=y.value)==null?void 0:ge.onBlur)==null||Be.call(ge,me)},Y=me=>{var ge,Be,Ye;const{value:Ke,selectionStart:at,selectionEnd:ft}=me.target;if(me.type==="compositionend"){if(P.value=!1,M.value="",H.value&&!j.value&&L.value>=H.value&&$(Ke)>H.value&&at===ft){Q();return}W(Ke),t("input",Ke,me),(Be=(ge=y.value)==null?void 0:ge.onInput)==null||Be.call(ge,me),Q()}else P.value=!0,M.value=E.value+((Ye=me.data)!=null?Ye:"")},Q=()=>{k(),dn(()=>{d.value&&E.value!==d.value.value&&(d.value.value=E.value,w())})},ie=me=>{var ge,Be;const{value:Ye}=me.target;if(!P.value){if(H.value&&!j.value&&L.value>=H.value&&$(Ye)>H.value&&me.inputType==="insertText"){Q();return}W(Ye),t("input",Ye,me),(Be=(ge=y.value)==null?void 0:ge.onInput)==null||Be.call(ge,me),Q()}},q=me=>{W(""),oe("",me),t("clear",me)},te=me=>{const ge=me.key||me.code;!P.value&&ge===dH.key&&(oe(E.value,me),t("pressEnter",me))},Se=F(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),Fe=F(()=>[`${c}-wrapper`,{[`${c}-error`]:B.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:T.value}]),ve=F(()=>[c,`${c}-size-${S.value}`]),Re=F(()=>Ea(r,w0)),Ge=F(()=>kf(r,w0)),nt=F(()=>{const me={...Ge.value,...e.inputAttrs};return B.value&&(me["aria-invalid"]=!0),me}),Ie=me=>{var ge;return O("span",Ft({class:Fe.value,onMousedown:K},me?void 0:Re.value),[n.prefix&&O("span",{class:`${c}-prefix`},[n.prefix()]),O("input",Ft({ref:d,class:ve.value,value:E.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:ie,onKeydown:te,onFocus:ae,onBlur:ee,onCompositionstart:Y,onCompositionupdate:Y,onCompositionend:Y},nt.value),null),D.value&&O(Lo,{prefix:c,class:`${c}-clear-btn`,onClick:q},{default:()=>[O(rs,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!g.value)&&O("span",{class:[`${c}-suffix`,{[`${c}-suffix-has-feedback`]:g.value}]},[!!e.maxLength&&e.showWordLimit&&O("span",{class:`${c}-word-limit`},[L.value,He("/"),H.value]),(ge=n.suffix)==null?void 0:ge.call(n),!!g.value&&O(eS,{type:g.value},null)])])};return{inputRef:d,render:()=>n.prepend||n.append||e.prepend||e.append?O("span",Ft({class:Se.value},Re.value),[(n.prepend||e.prepend)&&O("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Ie(!0),(n.append||e.append)&&O("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Ie()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const PDe=xe({name:"IconSearch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),RDe=["stroke-width","stroke-linecap","stroke-linejoin"];function MDe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"},null,-1)]),14,RDe)}var OP=Ue(PDe,[["render",MDe]]);const Mm=Object.assign(OP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OP.name,OP)}}),bpe=Symbol("ArcoButtonGroup"),ODe=xe({name:"Button",components:{IconLoading:Ja},props:{type:{type:String},shape:{type:String},status:{type:String},size:{type:String},long:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean},htmlType:{type:String,default:"button"},autofocus:{type:Boolean,default:!1},href:String},emits:{click:e=>!0},setup(e,{emit:t}){const{size:n,disabled:r}=tn(e),i=Me("btn"),a=Pn(bpe,void 0),s=F(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=F(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:d}=Do({size:s,disabled:l}),{mergedSize:h}=Aa(c),p=F(()=>{var g,y,S,k,w,x;return[i,`${i}-${(y=(g=e.type)!=null?g:a?.type)!=null?y:"secondary"}`,`${i}-shape-${(k=(S=e.shape)!=null?S:a?.shape)!=null?k:"square"}`,`${i}-size-${h.value}`,`${i}-status-${(x=(w=e.status)!=null?w:a?.status)!=null?x:"normal"}`,{[`${i}-long`]:e.long,[`${i}-loading`]:e.loading,[`${i}-disabled`]:d.value,[`${i}-link`]:hs(e.href)}]});return{prefixCls:i,cls:p,mergedDisabled:d,handleClick:g=>{if(e.disabled||e.loading){g.preventDefault();return}t("click",g)}}}}),$De=["href"],BDe=["type","disabled","autofocus"];function NDe(e,t,n,r,i,a){const s=Ee("icon-loading");return e.href?(z(),X("a",{key:0,class:fe([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),href:e.mergedDisabled||e.loading?void 0:e.href,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-icon`)},[e.loading?(z(),Ze(s,{key:0,spin:"true"})):mt(e.$slots,"icon",{key:1})],2)):Ae("v-if",!0),mt(e.$slots,"default")],10,$De)):(z(),X("button",{key:1,class:fe([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),type:e.htmlType,disabled:e.mergedDisabled,autofocus:e.autofocus,onClick:t[1]||(t[1]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-icon`)},[e.loading?(z(),Ze(s,{key:0,spin:!0})):mt(e.$slots,"icon",{key:1})],2)):Ae("v-if",!0),mt(e.$slots,"default")],10,BDe))}var $P=Ue(ODe,[["render",NDe]]);const FDe=xe({name:"ButtonGroup",props:{type:{type:String},status:{type:String},shape:{type:String},size:{type:String},disabled:{type:Boolean}},setup(e){const{type:t,size:n,status:r,disabled:i,shape:a}=tn(e),s=Me("btn-group");return oi(bpe,Wt({type:t,size:n,shape:a,status:r,disabled:i})),{prefixCls:s}}});function jDe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.prefixCls)},[mt(e.$slots,"default")],2)}var rb=Ue(FDe,[["render",jDe]]);const Jo=Object.assign($P,{Group:rb,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+$P.name,$P),e.component(n+rb.name,rb)}});var iC=xe({name:"InputSearch",props:{searchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},buttonText:{type:String},buttonProps:{type:Object}},emits:{search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r}=tn(e),i=Me("input-search"),{mergedSize:a}=Aa(r),s=ue(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return O(Pt,null,[e.loading?O(Ja,null,null):O(Lo,{onClick:l},{default:()=>[O(Mm,null,null)]}),(p=n.suffix)==null?void 0:p.call(n)])},d=()=>{var p;let v={};return e.buttonText||n["button-default"]||n["button-icon"]?v={default:(p=n["button-default"])!=null?p:e.buttonText?()=>e.buttonText:void 0,icon:n["button-icon"]}:v={icon:()=>O(Mm,null,null)},O(Jo,Ft({type:"primary",class:`${i}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),v)};return{inputRef:s,render:()=>O(nb,{ref:s,class:i,size:a.value,disabled:e.disabled},{prepend:n.prepend,prefix:n.prefix,suffix:e.searchButton?n.suffix:c,append:e.searchButton?d:n.append})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const VDe=xe({name:"IconEye",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zDe=["stroke-width","stroke-linecap","stroke-linejoin"];function UDe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"},null,-1),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)]),14,zDe)}var BP=Ue(VDe,[["render",UDe]]);const x0=Object.assign(BP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BP.name,BP)}}),HDe=xe({name:"IconEyeInvisible",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),WDe=["stroke-width","stroke-linecap","stroke-linejoin"];function GDe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1)]),14,WDe)}var NP=Ue(HDe,[["render",GDe]]);const _pe=Object.assign(NP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NP.name,NP)}});function Ya(e){const t=ue(e);return[t,r=>{t.value=r}]}function pa(e,t){const{value:n}=tn(t),[r,i]=Ya(wn(n.value)?e:n.value);return It(n,s=>{wn(s)&&i(void 0)}),[F(()=>wn(n.value)?r.value:n.value),i,r]}const KDe=xe({name:"InputPassword",components:{IconEye:x0,IconEyeInvisible:_pe,AIconHover:Lo,AInput:nb},props:{visibility:{type:Boolean,default:void 0},defaultVisibility:{type:Boolean,default:!0},invisibleButton:{type:Boolean,default:!0}},emits:["visibility-change","update:visibility"],setup(e,{emit:t}){const{visibility:n,defaultVisibility:r}=tn(e),i=ue(),a=()=>{c(!s.value)},[s,l]=pa(r.value,Wt({value:n})),c=d=>{d!==s.value&&(t("visibility-change",d),t("update:visibility",d),l(d))};return{inputRef:i,mergedVisible:s,handleInvisible:a}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}}});function qDe(e,t,n,r,i,a){const s=Ee("icon-eye"),l=Ee("icon-eye-invisible"),c=Ee("a-icon-hover"),d=Ee("a-input");return z(),Ze(d,{ref:"inputRef",type:e.mergedVisible?"password":"text"},yo({_:2},[e.$slots.prepend?{name:"prepend",fn:ce(()=>[mt(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:ce(()=>[mt(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:ce(()=>[e.invisibleButton?(z(),Ze(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=fs(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=fs(()=>{},["prevent"]))},{default:ce(()=>[e.mergedVisible?(z(),Ze(l,{key:1})):(z(),Ze(s,{key:0}))]),_:1},8,["onClick"])):Ae("v-if",!0),mt(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:ce(()=>[mt(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var oC=Ue(KDe,[["render",qDe]]);const YDe=xe({name:"InputGroup",setup(){return{prefixCls:Me("input-group")}}});function XDe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.prefixCls)},[mt(e.$slots,"default")],2)}var uy=Ue(YDe,[["render",XDe]]);const z0=Object.assign(nb,{Search:iC,Password:oC,Group:uy,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+nb.name,nb),e.component(n+uy.name,uy),e.component(n+iC.name,iC),e.component(n+oC.name,oC)}}),ZDe=()=>{const{height:e,width:t}=fpe();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},ire=(e,t)=>{var n,r;const i=e.getBoundingClientRect();return{top:i.top,bottom:i.bottom,left:i.left,right:i.right,scrollTop:i.top-t.top,scrollBottom:i.bottom-t.top,scrollLeft:i.left-t.left,scrollRight:i.right-t.left,width:(n=e.offsetWidth)!=null?n:e.clientWidth,height:(r=e.offsetHeight)!=null?r:e.clientHeight}},JDe=e=>{switch(e){case"top":case"tl":case"tr":return"top";case"bottom":case"bl":case"br":return"bottom";case"left":case"lt":case"lb":return"left";case"right":case"rt":case"rb":return"right";default:return"top"}},kw=(e,t)=>{switch(t){case"top":switch(e){case"bottom":return"top";case"bl":return"tl";case"br":return"tr";default:return e}case"bottom":switch(e){case"top":return"bottom";case"tl":return"bl";case"tr":return"br";default:return e}case"left":switch(e){case"right":return"left";case"rt":return"lt";case"rb":return"lb";default:return e}case"right":switch(e){case"left":return"right";case"lt":return"rt";case"lb":return"rb";default:return e}default:return e}},QDe=(e,t,{containerRect:n,triggerRect:r,popupRect:i,offset:a,translate:s})=>{const l=JDe(e),c=ZDe(),d={top:n.top+t.top,bottom:c.height-(n.top+t.top+i.height),left:n.left+t.left,right:c.width-(n.left+t.left+i.width)};let h=e;if(l==="top"&&d.top<0)if(r.top>i.height)t.top=-n.top;else{const p=L4("bottom",r,i,{offset:a,translate:s});c.height-(n.top+p.top+i.height)>0&&(h=kw(e,"bottom"),t.top=p.top)}if(l==="bottom"&&d.bottom<0)if(c.height-r.bottom>i.height)t.top=-n.top+(c.height-i.height);else{const p=L4("top",r,i,{offset:a,translate:s});n.top+p.top>0&&(h=kw(e,"top"),t.top=p.top)}if(l==="left"&&d.left<0)if(r.left>i.width)t.left=-n.left;else{const p=L4("right",r,i,{offset:a,translate:s});c.width-(n.left+p.left+i.width)>0&&(h=kw(e,"right"),t.left=p.left)}if(l==="right"&&d.right<0)if(c.width-r.right>i.width)t.left=-n.left+(c.width-i.width);else{const p=L4("left",r,i,{offset:a,translate:s});n.left+p.left>0&&(h=kw(e,"left"),t.left=p.left)}return(l==="top"||l==="bottom")&&(d.left<0?t.left=-n.left:d.right<0&&(t.left=-n.left+(c.width-i.width))),(l==="left"||l==="right")&&(d.top<0?t.top=-n.top:d.bottom<0&&(t.top=-n.top+(c.height-i.height))),{popupPosition:t,position:h}},L4=(e,t,n,{offset:r=0,translate:i=[0,0]}={})=>{var a;const s=(a=nr(i)?i:i[e])!=null?a:[0,0];switch(e){case"top":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+s[0],top:t.scrollTop-n.height-r+s[1]};case"tl":return{left:t.scrollLeft+s[0],top:t.scrollTop-n.height-r+s[1]};case"tr":return{left:t.scrollRight-n.width+s[0],top:t.scrollTop-n.height-r+s[1]};case"bottom":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+s[0],top:t.scrollBottom+r+s[1]};case"bl":return{left:t.scrollLeft+s[0],top:t.scrollBottom+r+s[1]};case"br":return{left:t.scrollRight-n.width+s[0],top:t.scrollBottom+r+s[1]};case"left":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+s[1]};case"lt":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollTop+s[1]};case"lb":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollBottom-n.height+s[1]};case"right":return{left:t.scrollRight+r+s[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+s[1]};case"rt":return{left:t.scrollRight+r+s[0],top:t.scrollTop+s[1]};case"rb":return{left:t.scrollRight+r+s[0],top:t.scrollBottom-n.height+s[1]};default:return{left:0,top:0}}},ePe=e=>{let t="0";["top","bottom"].includes(e)?t="50%":["left","lt","lb","tr","br"].includes(e)&&(t="100%");let n="0";return["left","right"].includes(e)?n="50%":["top","tl","tr","lb","rb"].includes(e)&&(n="100%"),`${t} ${n}`},tPe=(e,t,n,r,{offset:i=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,d=L4(e,n,r,{offset:i,translate:a});if(l){const p=QDe(e,d,{containerRect:t,popupRect:r,triggerRect:n,offset:i,translate:a});d=p.popupPosition,c=p.position}return{style:{left:`${d.left}px`,top:`${d.top}px`,...s},position:c}},nPe=(e,t,n,{customStyle:r={}})=>{if(["top","tl","tr","bottom","bl","br"].includes(e)){let a=Math.abs(t.scrollLeft+t.width/2-n.scrollLeft);return a>n.width-8&&(t.width>n.width?a=n.width/2:a=n.width-8),["top","tl","tr"].includes(e)?{left:`${a}px`,bottom:"0",transform:"translate(-50%,50%) rotate(45deg)",...r}:{left:`${a}px`,top:"0",transform:"translate(-50%,-50%) rotate(45deg)",...r}}let i=Math.abs(t.scrollTop+t.height/2-n.scrollTop);return i>n.height-8&&(t.height>n.height?i=n.height/2:i=n.height-8),["left","lt","lb"].includes(e)?{top:`${i}px`,right:"0",transform:"translate(50%,-50%) rotate(45deg)",...r}:{top:`${i}px`,left:"0",transform:"translate(-50%,-50%) rotate(45deg)",...r}},rPe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,ore=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)rPe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},Spe=()=>{const e={},t=ue(),n=()=>{const r=ape(e.value);r!==t.value&&(t.value=r)};return fn(()=>n()),tl(()=>n()),{children:e,firstElement:t}};var C0=xe({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:i}=Spe();let a;const s=c=>{c&&(a=new P5(d=>{const h=d[0];t("resize",h)}),a.observe(c))},l=()=>{a&&(a.disconnect(),a=null)};return It(i,c=>{a&&l(),c&&s(c)}),_o(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function xd(e,t){const n=ue(e[t]);return tl(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const sre=Symbol("ArcoTrigger"),iPe=1e3,oPe=5e3,sPe=1;class aPe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||oPe:Array.from(this.popupStack.popup).pop()||iPe)+sPe,this.add=t=>{const n=this.getNextZIndex(t);return this.popupStack[t].add(n),t==="dialog"&&this.popupStack.popup.add(n),n},this.delete=(t,n)=>{this.popupStack[n].delete(t),n==="dialog"&&this.popupStack.popup.delete(t)},this.isLastDialog=t=>this.popupStack.dialog.size>1?t===Array.from(this.popupStack.dialog).pop():!0}}const FP=new aPe;function l3(e,{visible:t,runOnMounted:n}={}){const r=ue(0),i=()=>{r.value=FP.add(e)},a=()=>{FP.delete(r.value,e)},s=()=>e==="dialog"?FP.isLastDialog(r.value):!1;return It(()=>t?.value,l=>{l?i():a()},{immediate:!0}),n&&(fn(()=>{i()}),_o(()=>{a()})),{zIndex:Yb(r),open:i,close:a,isLastDialog:s}}const lPe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new P5(a=>{const s=a[0];Sn(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var hH=xe({name:"ClientOnly",setup(e,{slots:t}){const n=ue(!1);return fn(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const pH=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const i=ue(e.value),a=ue(),s=()=>{const l=af(e.value),c=l?e.value:n,d=l??(r?document.documentElement:af(n));c!==i.value&&(i.value=c),d!==a.value&&(a.value=d)};return fn(()=>s()),It(t,l=>{i.value!==e.value&&l&&s()}),{teleportContainer:i,containerRef:a}},uPe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var jP=xe({name:"Trigger",inheritAttrs:!1,props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},popupOffset:{type:Number,default:0},popupTranslate:{type:[Array,Object]},showArrow:{type:Boolean,default:!1},alignPoint:{type:Boolean,default:!1},popupHoverStay:{type:Boolean,default:!0},blurToClose:{type:Boolean,default:!0},clickToClose:{type:Boolean,default:!0},clickOutsideToClose:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!0},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupStyle:{type:Object},animationName:{type:String,default:"fade-in"},duration:{type:[Number,Object]},mouseEnterDelay:{type:Number,default:100},mouseLeaveDelay:{type:Number,default:100},focusDelay:{type:Number,default:0},autoFitPopupWidth:{type:Boolean,default:!1},autoFitPopupMinWidth:{type:Boolean,default:!1},autoFixPosition:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},updateAtScroll:{type:Boolean,default:!1},autoFitTransformOrigin:{type:Boolean,default:!1},hideEmpty:{type:Boolean,default:!1},openedClass:{type:[String,Array,Object]},autoFitPosition:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},preventFocus:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},scrollToCloseDistance:{type:Number,default:0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,show:()=>!0,hide:()=>!0,resize:()=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{popupContainer:i}=tn(e),a=Me("trigger"),s=F(()=>Ea(r,uPe)),l=Pn(Za,void 0),c=F(()=>[].concat(e.trigger)),d=new Set,h=Pn(sre,void 0),{children:p,firstElement:v}=Spe(),g=ue(),y=ue(e.defaultPopupVisible),S=ue(e.position),k=ue({}),w=ue({}),x=ue({}),E=ue(),_=ue({top:0,left:0});let T=null,D=null;const P=F(()=>{var Ve;return(Ve=e.popupVisible)!=null?Ve:y.value}),{teleportContainer:M,containerRef:$}=pH({popupContainer:i,visible:P,documentContainer:!0}),{zIndex:L}=l3("popup",{visible:P});let B=0,j=!1,H=!1;const U=()=>{B&&(window.clearTimeout(B),B=0)},W=Ve=>{if(e.alignPoint){const{pageX:Oe,pageY:Ce}=Ve;_.value={top:Ce,left:Oe}}},K=()=>{if(!v.value||!g.value||!$.value)return;const Ve=$.value.getBoundingClientRect(),Oe=e.alignPoint?{top:_.value.top,bottom:_.value.top,left:_.value.left,right:_.value.left,scrollTop:_.value.top,scrollBottom:_.value.top,scrollLeft:_.value.left,scrollRight:_.value.left,width:0,height:0}:ire(v.value,Ve),Ce=()=>ire(g.value,Ve),We=Ce(),{style:$e,position:dt}=tPe(e.position,Ve,Oe,We,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(w.value={transformOrigin:ePe(dt)}),e.autoFitPopupMinWidth?$e.minWidth=`${Oe.width}px`:e.autoFitPopupWidth&&($e.width=`${Oe.width}px`),S.value!==dt&&(S.value=dt),k.value=$e,e.showArrow&&dn(()=>{x.value=nPe(dt,Oe,Ce(),{customStyle:e.arrowStyle})})},oe=(Ve,Oe)=>{if(Ve===P.value&&B===0)return;const Ce=()=>{y.value=Ve,t("update:popupVisible",Ve),t("popupVisibleChange",Ve),Ve&&dn(()=>{K()})};Ve||(T=null,D=null),Oe?(U(),Ve!==P.value&&(B=window.setTimeout(Ce,Oe))):Ce()},ae=Ve=>{var Oe;(Oe=r.onClick)==null||Oe.call(r,Ve),!(e.disabled||P.value&&!e.clickToClose)&&(c.value.includes("click")?(W(Ve),oe(!P.value)):c.value.includes("contextMenu")&&P.value&&oe(!1))},ee=Ve=>{var Oe;(Oe=r.onMouseenter)==null||Oe.call(r,Ve),!(e.disabled||!c.value.includes("hover"))&&(W(Ve),oe(!0,e.mouseEnterDelay))},Y=Ve=>{h?.onMouseenter(Ve),ee(Ve)},Q=Ve=>{var Oe;(Oe=r.onMouseleave)==null||Oe.call(r,Ve),!(e.disabled||!c.value.includes("hover"))&&oe(!1,e.mouseLeaveDelay)},ie=Ve=>{h?.onMouseleave(Ve),Q(Ve)},q=Ve=>{var Oe;(Oe=r.onFocusin)==null||Oe.call(r,Ve),!(e.disabled||!c.value.includes("focus"))&&oe(!0,e.focusDelay)},te=Ve=>{var Oe;(Oe=r.onFocusout)==null||Oe.call(r,Ve),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&oe(!1)},Se=Ve=>{var Oe;(Oe=r.onContextmenu)==null||Oe.call(r,Ve),!(e.disabled||!c.value.includes("contextMenu")||P.value&&!e.clickToClose)&&(W(Ve),oe(!P.value),Ve.preventDefault())};oi(sre,Wt({onMouseenter:Y,onMouseleave:ie,addChildRef:Ve=>{d.add(Ve),h?.addChildRef(Ve)},removeChildRef:Ve=>{d.delete(Ve),h?.removeChildRef(Ve)}}));const Re=()=>{no(document.documentElement,"mousedown",Ie),j=!1},Ge=xd(n,"content"),nt=F(()=>{var Ve;return e.hideEmpty&&w7e((Ve=Ge.value)==null?void 0:Ve.call(Ge))}),Ie=Ve=>{var Oe,Ce,We;if(!((Oe=v.value)!=null&&Oe.contains(Ve.target)||(Ce=g.value)!=null&&Ce.contains(Ve.target))){for(const $e of d)if((We=$e.value)!=null&&We.contains(Ve.target))return;Re(),oe(!1)}},_e=(Ve,Oe)=>{const[Ce,We]=Ve,{scrollTop:$e,scrollLeft:dt}=Oe;return Math.abs($e-Ce)>=e.scrollToCloseDistance||Math.abs(dt-We)>=e.scrollToCloseDistance},me=Rm(Ve=>{if(P.value)if(e.scrollToClose||l?.scrollToClose){const Oe=Ve.target;T||(T=[Oe.scrollTop,Oe.scrollLeft]),_e(T,Oe)?oe(!1):K()}else K()}),ge=()=>{no(window,"scroll",Be),H=!1},Be=Rm(Ve=>{const Oe=Ve.target.documentElement;D||(D=[Oe.scrollTop,Oe.scrollLeft]),_e(D,Oe)&&(oe(!1),ge())}),Ye=()=>{P.value&&K()},Ke=()=>{Ye(),t("resize")},at=Ve=>{e.preventFocus&&Ve.preventDefault()};h?.addChildRef(g);const ft=F(()=>P.value?e.openedClass:void 0);let ct;It(P,Ve=>{if(e.clickOutsideToClose&&(!Ve&&j?Re():Ve&&!j&&(Mi(document.documentElement,"mousedown",Ie),j=!0)),(e.scrollToClose||l?.scrollToClose)&&(Mi(window,"scroll",Be),H=!0),e.updateAtScroll||l?.updateAtScroll){if(Ve){ct=ore(v.value);for(const Oe of ct)Oe.addEventListener("scroll",me)}else if(ct){for(const Oe of ct)Oe.removeEventListener("scroll",me);ct=void 0}}Ve&&(Rt.value=!0)}),It(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{P.value&&K()});const{createResizeObserver:Ct,destroyResizeObserver:xt}=lPe({elementRef:$,onResize:Ye});fn(()=>{if(Ct(),P.value&&(K(),e.clickOutsideToClose&&!j&&(Mi(document.documentElement,"mousedown",Ie),j=!0),e.updateAtScroll||l?.updateAtScroll)){ct=ore(v.value);for(const Ve of ct)Ve.addEventListener("scroll",me)}}),tl(()=>{P.value&&K()}),KU(()=>{oe(!1)}),_o(()=>{if(h?.removeChildRef(g),xt(),j&&Re(),H&&ge(),ct){for(const Ve of ct)Ve.removeEventListener("scroll",me);ct=void 0}});const Rt=ue(P.value),Ht=ue(!1),Jt=()=>{Ht.value=!0},rn=()=>{Ht.value=!1,P.value&&t("show")},vt=()=>{Ht.value=!1,P.value||(Rt.value=!1,t("hide"))};return()=>{var Ve,Oe;return p.value=(Oe=(Ve=n.default)==null?void 0:Ve.call(n))!=null?Oe:[],ope(p.value,{class:ft.value,onClick:ae,onMouseenter:ee,onMouseleave:Q,onFocusin:q,onFocusout:te,onContextmenu:Se}),O(Pt,null,[e.autoFixPosition?O(C0,{onResize:Ke},{default:()=>[p.value]}):p.value,O(hH,null,{default:()=>[O(Jm,{to:M.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||P.value||Rt.value)&&!nt.value&&O(C0,{onResize:Ye},{default:()=>[O("div",Ft({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:L.value,pointerEvents:Ht.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:Y,onMouseleave:ie,onMousedown:at},s.value),[O(Cs,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Jt,onAfterEnter:rn,onBeforeLeave:Jt,onAfterLeave:vt},{default:()=>{var Ce;return[Ci(O("div",{class:`${a}-popup-wrapper`,style:w.value},[O("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Ce=n.content)==null?void 0:Ce.call(n)]),e.showArrow&&O("div",{ref:E,class:[`${a}-arrow`,e.arrowClass],style:x.value},null)]),[[Ko,P.value]])]}})])]})]})]})])}}});const va=Object.assign(jP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+jP.name,jP)}}),cPe=xe({name:"IconEmpty",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dPe=["stroke-width","stroke-linecap","stroke-linejoin"];function fPe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"},null,-1)]),14,dPe)}var VP=Ue(cPe,[["render",fPe]]);const F5=Object.assign(VP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VP.name,VP)}});var sC=xe({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=Me("empty"),{t:i}=No(),a=Pn(Za,void 0);return()=>{var s,l,c,d;return!e.inConfigProvider&&a?.slots.empty&&!(t.image||e.imgSrc||e.description)?a.slots.empty({component:"empty"}):O("div",Ft({class:r},n),[O("div",{class:`${r}-image`},[(l=(s=t.image)==null?void 0:s.call(t))!=null?l:e.imgSrc?O("img",{src:e.imgSrc,alt:e.description||"empty"},null):O(F5,null,null)]),O("div",{class:`${r}-description`},[(d=(c=t.default)==null?void 0:c.call(t))!=null?d:e.description||i("empty.description")])])}}});const Jh=Object.assign(sC,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+sC.name,sC)}}),hPe=5;var pPe=xe({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=Me("dot-loading");return()=>{const n=e.size?{width:`${e.size}px`,height:`${e.size}px`}:{};return O("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(hPe).fill(1).map((r,i)=>O("div",{class:`${t}-item`,key:i,style:n},null))])}}}),zP=xe({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Me("spin"),r=Pn(Za,void 0),i=F(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=ay(t.icon());if(l)return El(l,{spin:!0})}return t.element?t.element():e.dot?O(pPe,{size:e.size},null):r?.slots.loading?r.slots.loading():O(Ja,{spin:!0,size:e.size},null)},s=()=>{var l,c,d;const h=e.size?{fontSize:`${e.size}px`}:void 0,p=!!((l=t.tip)!=null?l:e.tip);return O(Pt,null,[!e.hideIcon&&O("div",{class:`${n}-icon`,style:h},[a()]),p&&O("div",{class:`${n}-tip`},[(d=(c=t.tip)==null?void 0:c.call(t))!=null?d:e.tip])])};return()=>O("div",{class:i.value},[t.default?O(Pt,null,[t.default(),e.loading&&O("div",{class:`${n}-mask`},[O("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const Pd=Object.assign(zP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+zP.name,zP)}}),vPe=xe({name:"Thumb",props:{data:{type:Object},direction:{type:String,default:"horizontal"},alwaysShow:{type:Boolean,default:!1},both:{type:Boolean,default:!1}},emits:["scroll"],setup(e,{emit:t}){const n=Me("scrollbar"),r=ue(!1),i=ue(),a=ue(),s=F(()=>e.direction==="horizontal"?{size:"width",direction:"left",offset:"offsetWidth",client:"clientX"}:{size:"height",direction:"top",offset:"offsetHeight",client:"clientY"}),l=ue(0),c=ue(!1),d=ue(0),h=F(()=>{var x,E;return{[s.value.size]:`${(E=(x=e.data)==null?void 0:x.thumbSize)!=null?E:0}px`,[s.value.direction]:`${l.value}px`}}),p=x=>{x.preventDefault(),a.value&&(d.value=x[s.value.client]-a.value.getBoundingClientRect()[s.value.direction],c.value=!0,Mi(window,"mousemove",y),Mi(window,"mouseup",S),Mi(window,"contextmenu",S))},v=x=>{var E,_,T,D;if(x.preventDefault(),a.value){const P=g(x[s.value.client]>a.value.getBoundingClientRect()[s.value.direction]?l.value+((_=(E=e.data)==null?void 0:E.thumbSize)!=null?_:0):l.value-((D=(T=e.data)==null?void 0:T.thumbSize)!=null?D:0));P!==l.value&&(l.value=P,t("scroll",P))}},g=x=>x<0?0:e.data&&x>e.data.max?e.data.max:x,y=x=>{if(i.value&&a.value){const E=g(x[s.value.client]-i.value.getBoundingClientRect()[s.value.direction]-d.value);E!==l.value&&(l.value=E,t("scroll",E))}},S=()=>{c.value=!1,no(window,"mousemove",y),no(window,"mouseup",S)},k=x=>{c.value||(x=g(x),x!==l.value&&(l.value=x))},w=F(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:c.value}]);return{visible:r,trackRef:i,thumbRef:a,prefixCls:n,thumbCls:w,thumbStyle:h,handleThumbMouseDown:p,handleTrackClick:v,setOffset:k}}});function mPe(e,t,n,r,i,a){return z(),Ze(Cs,null,{default:ce(()=>[I("div",{ref:"trackRef",class:fe([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=fs((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[I("div",{ref:"thumbRef",class:fe(e.thumbCls),style:qe(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[I("div",{class:fe(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var gPe=Ue(vPe,[["render",mPe]]);const are=20,ww=15,yPe=xe({name:"Scrollbar",components:{ResizeObserver:C0,Thumb:gPe},inheritAttrs:!1,props:{type:{type:String,default:"embed"},outerClass:[String,Object,Array],outerStyle:{type:[String,Object,Array]},hide:{type:Boolean,default:!1},disableHorizontal:{type:Boolean,default:!1},disableVertical:{type:Boolean,default:!1}},emits:{scroll:e=>!0},setup(e,{emit:t}){const n=Me("scrollbar"),r=ue(),i=ue(),a=ue(),s=ue(),l=ue(),c=ue(!1),d=ue(!1),h=F(()=>c.value&&!e.disableHorizontal),p=F(()=>d.value&&!e.disableVertical),v=ue(!1),g=()=>{var _,T,D,P,M,$;if(r.value){const{clientWidth:L,clientHeight:B,offsetWidth:j,offsetHeight:H,scrollWidth:U,scrollHeight:W,scrollTop:K,scrollLeft:oe}=r.value;c.value=U>L,d.value=W>B,v.value=h.value&&p.value;const ae=e.type==="embed"&&v.value?j-ww:j,ee=e.type==="embed"&&v.value?H-ww:H,Y=Math.round(ae/Math.min(U/L,ae/are)),Q=ae-Y,ie=(U-L)/Q,q=Math.round(ee/Math.min(W/B,ee/are)),te=ee-q,Se=(W-B)/te;if(i.value={ratio:ie,thumbSize:Y,max:Q},a.value={ratio:Se,thumbSize:q,max:te},K>0){const Fe=Math.round(K/((T=(_=a.value)==null?void 0:_.ratio)!=null?T:1));(D=l.value)==null||D.setOffset(Fe)}if(oe>0){const Fe=Math.round(oe/((M=(P=a.value)==null?void 0:P.ratio)!=null?M:1));($=s.value)==null||$.setOffset(Fe)}}};fn(()=>{g()});const y=()=>{g()},S=_=>{var T,D,P,M,$,L;if(r.value){if(h.value&&!e.disableHorizontal){const B=Math.round(r.value.scrollLeft/((D=(T=i.value)==null?void 0:T.ratio)!=null?D:1));(P=s.value)==null||P.setOffset(B)}if(p.value&&!e.disableVertical){const B=Math.round(r.value.scrollTop/(($=(M=a.value)==null?void 0:M.ratio)!=null?$:1));(L=l.value)==null||L.setOffset(B)}}t("scroll",_)},k=_=>{var T,D;r.value&&r.value.scrollTo({left:_*((D=(T=i.value)==null?void 0:T.ratio)!=null?D:1)})},w=_=>{var T,D;r.value&&r.value.scrollTo({top:_*((D=(T=a.value)==null?void 0:T.ratio)!=null?D:1)})},x=F(()=>{const _={};return e.type==="track"&&(h.value&&(_.paddingBottom=`${ww}px`),p.value&&(_.paddingRight=`${ww}px`)),[_,e.outerStyle]}),E=F(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:v.value},e.outerClass]);return{prefixCls:n,cls:E,style:x,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:i,verticalData:a,isBoth:v,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:y,handleScroll:S,handleHorizontalScroll:k,handleVerticalScroll:w}},methods:{scrollTo(e,t){var n,r;gr(e)?(n=this.$refs.containerRef)==null||n.scrollTo(e):(e||t)&&((r=this.$refs.containerRef)==null||r.scrollTo(e,t))},scrollTop(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({top:e})},scrollLeft(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({left:e})}}});function bPe(e,t,n,r,i,a){const s=Ee("ResizeObserver"),l=Ee("thumb");return z(),X("div",{class:fe(e.cls),style:qe(e.style)},[O(s,{onResize:e.handleResize},{default:ce(()=>[I("div",Ft({ref:"containerRef",class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||(t[0]=(...c)=>e.handleScroll&&e.handleScroll(...c))}),[O(s,{onResize:e.handleResize},{default:ce(()=>[mt(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(z(),Ze(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Ae("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(z(),Ze(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Ae("v-if",!0)],6)}var UP=Ue(yPe,[["render",bPe]]);const Rd=Object.assign(UP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+UP.name,UP)}}),K1=e=>{const t=ue(),n=()=>Qhe(t.value)?t.value.$refs[e]:t.value,r=ue();return fn(()=>{r.value=n()}),It([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},j5=e=>{const t=F(()=>!!e.value),n=F(()=>{if(e.value)return{type:"embed",...Tl(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},_Pe=xe({name:"SelectDropdown",components:{ScrollbarComponent:Rd,Empty:Jh,Spin:Pd},props:{loading:Boolean,empty:Boolean,virtualList:Boolean,bottomOffset:{type:Number,default:0},scrollbar:{type:[Boolean,Object],default:!0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){var r,i,a;const{scrollbar:s}=tn(e),l=Me("select-dropdown"),c=Pn(Za,void 0),d=(a=(i=c==null?void 0:(r=c.slots).empty)==null?void 0:i.call(r,{component:"select"}))==null?void 0:a[0],{componentRef:h,elementRef:p}=K1("containerRef"),{displayScrollbar:v,scrollbarProps:g}=j5(s),y=k=>{const{scrollTop:w,scrollHeight:x,offsetHeight:E}=k.target;x-(w+E)<=e.bottomOffset&&t("reachBottom",k),t("scroll",k)},S=F(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:d,cls:S,wrapperRef:p,wrapperComRef:h,handleScroll:y,displayScrollbar:v,scrollbarProps:g}}});function SPe(e,t,n,r,i,a){const s=Ee("spin");return z(),X("div",{class:fe(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-header`)},[mt(e.$slots,"header")],2)):Ae("v-if",!0),e.loading?(z(),Ze(s,{key:1,class:fe(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-empty`)},[mt(e.$slots,"empty",{},()=>[(z(),Ze(Ca(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Ae("v-if",!0),e.virtualList&&!e.loading&&!e.empty?mt(e.$slots,"virtual-list",{key:3}):Ae("v-if",!0),e.virtualList?Ae("v-if",!0):Ci((z(),Ze(Ca(e.displayScrollbar?"ScrollbarComponent":"div"),Ft({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:ce(()=>[I("ul",{class:fe(`${e.prefixCls}-list`)},[mt(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[Ko,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(z(),X("div",{key:5,class:fe(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer")],2)):Ae("v-if",!0)],2)}var vH=Ue(_Pe,[["render",SPe]]),lre=xe({name:"IconCheck",render(){return O("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},[O("path",{d:"M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z","p-id":"840"},null)])}});const kpe=Symbol("ArcoCheckboxGroup");var aC=xe({name:"Checkbox",components:{IconCheck:lre,IconHover:Lo},props:{modelValue:{type:[Boolean,Array],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean]},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r,modelValue:i}=tn(e),a=Me("checkbox"),s=ue(),l=e.uninjectGroupContext?void 0:Pn(kpe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:d,eventHandlers:h}=Do({disabled:r}),p=ue(e.defaultChecked),v=F(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=F(()=>{var _;return nr(v.value)?v.value.includes((_=e.value)!=null?_:!0):v.value}),y=F(()=>l?.disabled||d?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var T,D,P,M;const{checked:$}=_.target;let L=$;if(nr(v.value)){const B=new Set(v.value);$?B.add((T=e.value)!=null?T:!0):B.delete((D=e.value)!=null?D:!0),L=Array.from(B)}p.value=$,c&&nr(L)?l?.handleChange(L,_):(t("update:modelValue",L),t("change",L,_),(M=(P=h.value)==null?void 0:P.onChange)==null||M.call(P,_)),dn(()=>{s.value&&s.value.checked!==g.value&&(s.value.checked=g.value)})},w=F(()=>[a,{[`${a}-checked`]:g.value,[`${a}-indeterminate`]:e.indeterminate,[`${a}-disabled`]:y.value}]),x=_=>{var T,D;(D=(T=h.value)==null?void 0:T.onFocus)==null||D.call(T,_)},E=_=>{var T,D;(D=(T=h.value)==null?void 0:T.onBlur)==null||D.call(T,_)};return It(i,_=>{(wn(_)||Al(_))&&(p.value=!1)}),It(v,_=>{var T;let D;nr(_)?D=_.includes((T=e.value)!=null?T:!0):D=_,p.value!==D&&(p.value=D),s.value&&s.value.checked!==D&&(s.value.checked=D)}),()=>{var _,T,D,P;return O("label",{"aria-disabled":y.value,class:w.value},[O("input",{ref:s,type:"checkbox",checked:g.value,value:e.value,class:`${a}-target`,disabled:y.value,onClick:S,onChange:k,onFocus:x,onBlur:E},null),(P=(D=(T=n.checkbox)!=null?T:(_=l?.slots)==null?void 0:_.checkbox)==null?void 0:D({checked:g.value,disabled:y.value}))!=null?P:O(Lo,{class:`${a}-icon-hover`,disabled:y.value||g.value},{default:()=>[O("div",{class:`${a}-icon`},[g.value&&O(lre,{class:`${a}-icon-check`},null)])]}),n.default&&O("span",{class:`${a}-label`},[n.default()])])}}}),ib=xe({name:"CheckboxGroup",props:{modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},max:{type:Number},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r}=tn(e),i=Me("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=Do({disabled:r}),l=ue(e.defaultValue),c=F(()=>nr(e.modelValue)?e.modelValue:l.value),d=F(()=>e.max===void 0?!1:c.value.length>=e.max),h=F(()=>{var y;return((y=e.options)!=null?y:[]).map(S=>hs(S)||et(S)?{label:S,value:S}:S)});oi(kpe,Wt({name:"ArcoCheckboxGroup",computedValue:c,disabled:a,isMaxed:d,slots:n,handleChange:(y,S)=>{var k,w;l.value=y,t("update:modelValue",y),t("change",y,S),(w=(k=s.value)==null?void 0:k.onChange)==null||w.call(k,S)}}));const v=F(()=>[i,`${i}-direction-${e.direction}`]);It(()=>e.modelValue,y=>{nr(y)?l.value=[...y]:l.value=[]});const g=()=>h.value.map(y=>{const S=c.value.includes(y.value);return O(aC,{key:y.value,value:y.value,disabled:y.disabled||!S&&d.value,indeterminate:y.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:y}):Sn(y.label)?y.label():y.label]})});return()=>{var y;return O("span",{class:v.value},[h.value.length>0?g():(y=n.default)==null?void 0:y.call(n)])}}});const Wc=Object.assign(aC,{Group:ib,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+aC.name,aC),e.component(n+ib.name,ib)}}),wpe=Symbol("ArcoSelectContext"),kPe=e=>gr(e)&&"isGroup"in e,xpe=e=>gr(e)&&"isGroup"in e,wPe=(e,t="value")=>String(gr(e)?e[t]:e),Om=(e,t="value")=>gr(e)?`__arco__option__object__${e[t]}`:e||et(e)||hs(e)||Tl(e)?`__arco__option__${typeof e}-${e}`:"",xPe=e=>e.has("__arco__option__string-"),CPe=(e,{valueKey:t,fieldNames:n,origin:r,index:i=-1})=>{var a;if(gr(e)){const l=e[n.value];return{raw:e,index:i,key:Om(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:wPe(l,t),render:e[n.render],disabled:!!e[n.disabled],tagProps:e[n.tagProps]}}const s={value:e,label:String(e),disabled:!1};return{raw:s,index:i,key:Om(e,t),origin:r,...s}},nV=(e,{valueKey:t,fieldNames:n,origin:r,optionInfoMap:i})=>{var a;const s=[];for(const l of e)if(kPe(l)){const c=nV((a=l.options)!=null?a:[],{valueKey:t,fieldNames:n,origin:r,optionInfoMap:i});c.length>0&&s.push({...l,key:`__arco__group__${l.label}`,options:c})}else{const c=CPe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),i.get(c.key)||i.set(c.key,c)}return s},ure=(e,{inputValue:t,filterOption:n})=>{const r=i=>{var a;const s=[];for(const l of i)if(xpe(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else V5(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},V5=(e,{inputValue:t,filterOption:n})=>Sn(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,EPe=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!u3(e[n],t[n]))return!1;return!0},TPe=(e,t)=>{if(!e||!t)return!1;const{length:n}=e;if(n!==t.length)return!1;for(let r=0;r{const n=Object.prototype.toString.call(e);return n!==Object.prototype.toString.call(t)?!1:n==="[object Object]"?EPe(e,t):n==="[object Array]"?TPe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},APe=xe({name:"Option",components:{Checkbox:Wc},props:{value:{type:[String,Number,Boolean,Object],default:void 0},label:String,disabled:Boolean,tagProps:{type:Object},extra:{type:Object},index:{type:Number},internal:Boolean},setup(e){const{disabled:t,tagProps:n,index:r}=tn(e),i=Me("select-option"),a=Pn(wpe,void 0),s=So(),l=ue(),c=ue(n.value);It(n,(D,P)=>{u3(D,P)||(c.value=D)});const d=ue(""),h=F(()=>{var D,P;return(P=(D=e.value)!=null?D:e.label)!=null?P:d.value}),p=F(()=>{var D;return(D=e.label)!=null?D:d.value}),v=F(()=>Om(h.value,a?.valueKey)),g=F(()=>{var D;return(D=a?.component)!=null?D:"li"}),y=()=>{var D;if(!e.label&&l.value){const P=(D=l.value.textContent)!=null?D:"";d.value!==P&&(d.value=P)}};fn(()=>y()),tl(()=>y());const S=F(()=>{var D;return(D=a?.valueKeys.includes(v.value))!=null?D:!1}),k=F(()=>a?.activeKey===v.value);let w=ue(!0);if(!e.internal){const D=Wt({raw:{value:h,label:p,disabled:t,tagProps:c},ref:l,index:r,key:v,origin:"slot",value:h,label:p,disabled:t,tagProps:c});w=F(()=>V5(D,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,D),_o(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const x=D=>{e.disabled||a?.onSelect(v.value,D)},E=()=>{e.disabled||a?.setActiveKey(v.value)},_=()=>{e.disabled||a?.setActiveKey()},T=F(()=>[i,{[`${i}-disabled`]:e.disabled,[`${i}-selected`]:S.value,[`${i}-active`]:k.value,[`${i}-multiple`]:a?.multiple}]);return{prefixCls:i,cls:T,selectCtx:a,itemRef:l,component:g,isSelected:S,isValid:w,handleClick:x,handleMouseEnter:E,handleMouseLeave:_}}});function IPe(e,t,n,r,i,a){const s=Ee("checkbox");return Ci((z(),Ze(Ca(e.component),{ref:"itemRef",class:fe([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:ce(()=>[e.$slots.icon?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon")],2)):Ae("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(z(),Ze(s,{key:1,class:fe(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:ce(()=>[mt(e.$slots,"default",{},()=>[He(je(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(z(),X("span",{key:2,class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"default",{},()=>[He(je(e.label),1)])],2)),e.$slots.suffix?(z(),X("span",{key:3,class:fe(`${e.prefixCls}-suffix`)},[mt(e.$slots,"suffix")],2)):Ae("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[Ko,e.isValid]])}var mm=Ue(APe,[["render",IPe]]);const LPe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},DPe=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:i,valueKey:a,fieldNames:s})=>{const l=F(()=>({...LPe,...s?.value})),c=Wt(new Map),d=F(()=>Array.from(c.values()).sort((E,_)=>et(E.index)&&et(_.index)?E.index-_.index:0)),h=F(()=>{var E,_;const T=new Map;return{optionInfos:nV((E=e?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"options",optionInfoMap:T}),optionInfoMap:T}}),p=F(()=>{var E,_;const T=new Map;return{optionInfos:nV((E=t?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:T}),optionInfoMap:T}}),v=Wt(new Map);It([d,e??ue([]),t??ue([]),a??ue("value")],()=>{v.clear(),d.value.forEach((E,_)=>{v.set(E.key,{...E,index:_})}),h.value.optionInfoMap.forEach(E=>{v.has(E.key)||(E.index=v.size,v.set(E.key,E))}),p.value.optionInfoMap.forEach(E=>{v.has(E.key)||(E.index=v.size,v.set(E.key,E))})},{immediate:!0,deep:!0});const g=F(()=>{var E;const _=ure(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((E=i?.value)==null||E)&&_.push(...ure(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),y=F(()=>Array.from(v.values()).filter(E=>E.origin==="extraOptions"&&i?.value===!1?!1:V5(E,{inputValue:n?.value,filterOption:r?.value}))),S=F(()=>y.value.filter(E=>!E.disabled).map(E=>E.key));return{validOptions:g,optionInfoMap:v,validOptionInfos:y,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(E,_)=>{c.set(E,_)},removeSlotOptionInfo:E=>{c.delete(E)}}},Wo={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},cre=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),z5=e=>{const t={};return e.forEach((n,r)=>{const i=hs(r)?{key:r}:r;t[cre(i)]=n}),n=>{const r=cre({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),i=t[r];i&&(n.stopPropagation(),i(n))}},mH=({multiple:e,options:t,extraOptions:n,inputValue:r,filterOption:i,showExtraOptions:a,component:s,valueKey:l,fieldNames:c,loading:d,popupVisible:h,valueKeys:p,dropdownRef:v,optionRefs:g,virtualListRef:y,onSelect:S,onPopupVisibleChange:k,enterToOpen:w=!0,defaultActiveFirstOption:x})=>{const{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:$}=DPe({options:t,extraOptions:n,inputValue:r,filterOption:i,showExtraOptions:a,valueKey:l,fieldNames:c}),L=ue();It(D,W=>{(!L.value||!W.includes(L.value))&&(L.value=W[0])});const B=W=>{L.value=W},j=W=>{const K=D.value.length;if(K===0)return;if(!L.value)return W==="down"?D.value[0]:D.value[K-1];const oe=D.value.indexOf(L.value),ae=(K+oe+(W==="up"?-1:1))%K;return D.value[ae]},H=W=>{var K,oe;y?.value&&y.value.scrollTo({key:W});const ae=_.get(W),ee=(K=v?.value)==null?void 0:K.wrapperRef,Y=(oe=g?.value[W])!=null?oe:ae?.ref;if(!ee||!Y||ee.scrollHeight===ee.offsetHeight)return;const Q=E7e(Y,ee),ie=ee.scrollTop;Q.top<0?ee.scrollTo(0,ie+Q.top):Q.bottom<0&&ee.scrollTo(0,ie-Q.bottom)};It(h,W=>{var K;if(W){const oe=p.value[p.value.length-1];let ae=(K=x?.value)==null||K?D.value[0]:void 0;D.value.includes(oe)&&(ae=oe),ae!==L.value&&(L.value=ae),dn(()=>{L.value&&H(L.value)})}});const U=z5(new Map([[Wo.ENTER,W=>{!d?.value&&!W.isComposing&&(h.value?L.value&&(S(L.value,W),W.preventDefault()):w&&(k(!0),W.preventDefault()))}],[Wo.ESC,W=>{h.value&&(k(!1),W.preventDefault())}],[Wo.ARROW_DOWN,W=>{if(h.value){const K=j("down");K&&(L.value=K,H(K)),W.preventDefault()}}],[Wo.ARROW_UP,W=>{if(h.value){const K=j("up");K&&(L.value=K,H(K)),W.preventDefault()}}]]));return oi(wpe,Wt({multiple:e,valueKey:l,inputValue:r,filterOption:i,component:s,valueKeys:p,activeKey:L,setActiveKey:B,onSelect:S,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:$})),{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,activeKey:L,setActiveKey:B,addSlotOptionInfo:M,removeSlotOptionInfo:$,getNextActiveKey:j,scrollIntoView:H,handleKeyDown:U}},PPe=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:i})=>{const a=ue(0),s=new Map,l=F(()=>e.value.length),c=ue(0),d=F(()=>{const P=c.value+i.value*3;return P>l.value?l.value:P}),h=F(()=>{const P=l.value-i.value*3;return P<0?0:P}),p=P=>{P<0?c.value=0:P>h.value?c.value=h.value:c.value=P},v=ue(n.value),g=F(()=>r.value!==30?r.value:a.value||r.value),y=(P,M)=>{s.set(P,M)},S=P=>{var M;if(v.value)return g.value;const $=e.value[P];return(M=s.get($))!=null?M:g.value},k=P=>s.has(P);fn(()=>{const P=Array.from(s.values()).reduce((M,$)=>M+$,0);P>0&&(a.value=P/s.size)});const w=P=>v.value?g.value*P:x(0,P),x=(P,M)=>{let $=0;for(let L=P;Lv.value?g.value*c.value:x(0,c.value)),_=P=>{const M=P>=E.value;let $=Math.abs(P-E.value);const L=M?c.value:c.value-1;let B=0;for(;$>0;)$-=S(L+B),M?B++:B--;return B},T=P=>{const M=_(P),$=c.value+M-i.value;return $<0?0:$>h.value?h.value:$},D=F(()=>v.value?g.value*(l.value-d.value):x(d.value,l.value));return{frontPadding:E,behindPadding:D,start:c,end:d,getStartByScroll:T,setItemSize:y,hasItemSize:k,setStart:p,getScrollOffset:w}};var RPe=xe({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=So())==null?void 0:n.vnode.key,i=ue(),a=()=>{var s,l,c,d;const h=(l=(s=i.value)==null?void 0:s.$el)!=null?l:i.value,p=(d=(c=h?.getBoundingClientRect)==null?void 0:c.call(h).height)!=null?d:h?.offsetHeight;p&&e.setItemSize(r,p)};return fn(()=>a()),_o(()=>a()),()=>{var s;const l=ay((s=t.default)==null?void 0:s.call(t));return l?El(l,{ref:i},!0):null}}});const MPe=xe({name:"VirtualList",components:{VirtualListItem:RPe},props:{height:{type:[Number,String],default:200},data:{type:Array,default:()=>[]},threshold:{type:Number,default:0},itemKey:{type:String,default:"key"},fixedSize:{type:Boolean,default:!1},estimatedSize:{type:Number,default:30},buffer:{type:Number,default:10},component:{type:[String,Object],default:"div"},listAttrs:{type:Object},contentAttrs:{type:Object},paddingPosition:{type:String,default:"content"}},emits:{scroll:e=>!0,reachBottom:e=>!0},setup(e,{emit:t}){const{data:n,itemKey:r,fixedSize:i,estimatedSize:a,buffer:s,height:l}=tn(e),c=Me("virtual-list"),d=F(()=>gr(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=ue(),p=ue(),v=F(()=>({height:et(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=F(()=>n.value.map((L,B)=>{var j;return(j=L[r.value])!=null?j:B})),{frontPadding:y,behindPadding:S,start:k,end:w,getStartByScroll:x,setItemSize:E,hasItemSize:_,setStart:T,getScrollOffset:D}=PPe({dataKeys:g,contentRef:p,fixedSize:i,estimatedSize:a,buffer:s}),P=F(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(k.value,w.value)),M=L=>{const{scrollTop:B,scrollHeight:j,offsetHeight:H}=L.target,U=x(B);U!==k.value&&(T(U),dn(()=>{$(B)})),t("scroll",L),Math.floor(j-(B+H))<=0&&t("reachBottom",L)},$=L=>{var B,j;if(h.value)if(et(L))h.value.scrollTop=L;else{const H=(j=L.index)!=null?j:g.value.indexOf((B=L.key)!=null?B:"");T(H-s.value),h.value.scrollTop=D(H),dn(()=>{if(h.value){const U=D(H);U!==h.value.scrollTop&&(h.value.scrollTop=U)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:y,currentList:P,behindPadding:S,onScroll:M,setItemSize:E,hasItemSize:_,start:k,scrollTo:$,style:v,mergedComponent:d}}});function OPe(e,t,n,r,i,a){const s=Ee("VirtualListItem");return z(),Ze(Ca(e.mergedComponent.container),{ref:"containerRef",class:fe(e.prefixCls),style:qe(e.style),onScroll:e.onScroll},{default:ce(()=>[(z(),Ze(Ca(e.mergedComponent.list),Ft(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:ce(()=>[(z(),Ze(Ca(e.mergedComponent.content),Ft({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:ce(()=>[(z(!0),X(Pt,null,cn(e.currentList,(l,c)=>{var d;return z(),Ze(s,{key:(d=l[e.itemKey])!=null?d:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:ce(()=>[mt(e.$slots,"item",{item:l,index:e.start+c})]),_:2},1032,["has-item-size","set-item-size"])}),128))]),_:3},16,["style"]))]),_:3},16,["style"]))]),_:3},40,["class","style","onScroll"])}var c3=Ue(MPe,[["render",OPe]]),HP=xe({name:"AutoComplete",inheritAttrs:!1,props:{modelValue:{type:String,default:void 0},defaultValue:{type:String,default:""},disabled:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},popupContainer:{type:[String,Object]},strict:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},triggerProps:{type:Object},allowClear:{type:Boolean,default:!1},virtualListProps:{type:Object}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:e=>!0,select:e=>!0,clear:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const{modelValue:i}=tn(e),a=Me("auto-complete"),{mergedDisabled:s,eventHandlers:l}=Do({disabled:Pu(e,"disabled")}),c=ue(e.defaultValue),d=ue(),h=F(()=>{var Y;return(Y=e.modelValue)!=null?Y:c.value});It(i,Y=>{(wn(Y)||Al(Y))&&(c.value="")});const p=F(()=>h.value?[Om(h.value)]:[]),{data:v}=tn(e),g=ue(),y=ue({}),S=ue(!1),k=F(()=>S.value&&U.value.length>0),w=ue(),x=F(()=>e.virtualListProps?"div":"li"),E=Y=>{S.value=Y},_=(Y,Q)=>{var ie;return!!((ie=Q.label)!=null&&ie.includes(Y))},T=F(()=>Sn(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),D=Y=>{var Q,ie;c.value=Y,t("update:modelValue",Y),t("change",Y),(ie=(Q=l.value)==null?void 0:Q.onChange)==null||ie.call(Q)},P=Y=>{var Q,ie;c.value="",t("update:modelValue",""),t("change",""),(ie=(Q=l.value)==null?void 0:Q.onChange)==null||ie.call(Q),t("clear",Y)},M=(Y,Q)=>{var ie,q;const te=(ie=H.get(Y))==null?void 0:ie.value;t("select",te),D(te),(q=d.value)==null||q.blur()},$=Y=>{t("search",Y),D(Y)},L=Y=>{t("dropdownScroll",Y)},B=Y=>{t("dropdownReachBottom",Y)},{validOptions:j,optionInfoMap:H,validOptionInfos:U,handleKeyDown:W}=mH({options:v,inputValue:h,filterOption:T,popupVisible:k,valueKeys:p,component:x,dropdownRef:g,optionRefs:y,onSelect:M,onPopupVisibleChange:E}),K=Y=>{if(Sn(r.option)&&Y.value){const Q=H.get(Y.key),ie=r.option;return()=>ie({data:Q})}return()=>Y.label},oe=Y=>O(mm,{ref:Q=>{Q?.$el&&(y.value[Y.key]=Q.$el)},key:Y.key,value:Y.value,disabled:Y.disabled,internal:!0},{default:K(Y)}),ae=()=>O(vH,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:L,onReachBottom:B},{default:()=>[...j.value.map(Y=>oe(Y))],"virtual-list":()=>O(c3,Ft(e.virtualListProps,{ref:w,data:j.value}),{item:({item:Y})=>oe(Y)}),footer:r.footer});return{inputRef:d,render:()=>O(va,Ft({trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",autoFitTransformOrigin:!0,popupVisible:k.value,clickToClose:!1,preventFocus:!0,popupOffset:4,disabled:s.value,autoFitPopupWidth:!0},e.triggerProps,{onPopupVisibleChange:E}),{default:()=>[O(z0,Ft({ref:d},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:$,onClear:P,onKeydown:W}),r)],content:ae})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const $Pe=Object.assign(HP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+HP.name,HP)}}),gH=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const i=ue(-1),a=F(()=>{var d;return(d=n?.value)!=null?d:i.value}),s=ue(),l=()=>{var d,h,p;let v=(h=(d=e.value)==null?void 0:d.parentElement)!=null?h:void 0;if(r)for(;v&&!v.className.includes(r);)v=(p=v.parentElement)!=null?p:void 0;return v},c=()=>{if(wn(n?.value)&&s.value&&e.value){const d=Array.from(s.value.querySelectorAll(t)).indexOf(e.value);d!==i.value&&(i.value=d)}};return It(e,()=>{e.value&&!s.value&&(s.value=l())}),fn(()=>{e.value&&(s.value=l()),c()}),tl(()=>c()),{computedIndex:a}},Cpe=Symbol("ArcoAvatarGroup"),BPe=xe({name:"IconImageClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NPe=["stroke-width","stroke-linecap","stroke-linejoin"];function FPe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[Ch('',5)]),14,NPe)}var WP=Ue(BPe,[["render",FPe]]);const U5=Object.assign(WP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WP.name,WP)}}),jPe=xe({name:"Avatar",components:{ResizeObserver:C0,IconImageClose:U5,IconLoading:Ja},props:{shape:{type:String,default:"circle"},imageUrl:String,size:Number,autoFixFontSize:{type:Boolean,default:!0},triggerType:{type:String,default:"button"},triggerIconStyle:{type:Object},objectFit:{type:String}},emits:{click:e=>!0,error:()=>!0,load:()=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{shape:i,size:a,autoFixFontSize:s,triggerType:l,triggerIconStyle:c}=tn(e),d=Me("avatar"),h=Pn(Cpe,void 0),p=ue(),v=ue(),g=F(()=>{var U;return(U=h?.shape)!=null?U:i.value}),y=F(()=>{var U;return(U=h?.size)!=null?U:a.value}),S=F(()=>{var U;return(U=h?.autoFixFontSize)!=null?U:s.value}),k=ue(!1),w=ue(!1),x=ue(!0),E=ue(!1),_=h?gH({itemRef:p,selector:`.${d}`}).computedIndex:ue(-1),T=F(()=>{var U;const W=et(y.value)?{width:`${y.value}px`,height:`${y.value}px`,fontSize:`${y.value/2}px`}:{};return h&&(W.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,W.marginLeft=_.value!==0?`-${((U=y.value)!=null?U:40)/4}px`:"0"),W}),D=VPe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),P=()=>{!k.value&&!e.imageUrl&&dn(()=>{var U;if(!v.value||!p.value)return;const W=v.value.clientWidth,K=(U=y.value)!=null?U:p.value.offsetWidth,oe=K/(W+8);K&&oe<1&&(v.value.style.transform=`scale(${oe}) translateX(-50%)`),x.value=!0})};fn(()=>{var U;(U=v.value)!=null&&U.firstElementChild&&["IMG","PICTURE"].includes(v.value.firstElementChild.tagName)&&(k.value=!0),S.value&&P()}),It(a,()=>{S.value&&P()});const M=F(()=>[d,`${d}-${g.value}`]),$=F(()=>k.value||e.imageUrl?`${d}-image`:`${d}-text`);return{prefixCls:d,itemRef:p,cls:M,outerStyle:T,wrapperRef:v,wrapperCls:$,computedTriggerIconStyle:D,isImage:k,shouldLoad:x,isLoaded:E,hasError:w,onClick:U=>{n("click",U)},handleResize:()=>{S.value&&P()},handleImgLoad:()=>{E.value=!0,n("load")},handleImgError:()=>{w.value=!0,n("error")}}}}),VPe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},zPe=["src"];function UPe(e,t,n,r,i,a){const s=Ee("IconImageClose"),l=Ee("IconLoading"),c=Ee("resize-observer");return z(),X("div",{ref:"itemRef",style:qe(e.outerStyle),class:fe([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...d)=>e.onClick&&e.onClick(...d))},[O(c,{onResize:e.handleResize},{default:ce(()=>[I("span",{ref:"wrapperRef",class:fe(e.wrapperCls)},[e.imageUrl?(z(),X(Pt,{key:0},[e.hasError?mt(e.$slots,"error",{key:0},()=>[I("div",{class:fe(`${e.prefixCls}-image-icon`)},[O(s)],2)]):Ae("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?mt(e.$slots,"default",{key:1},()=>[I("div",{class:fe(`${e.prefixCls}-image-icon`)},[O(l)],2)]):Ae("v-if",!0),e.hasError||!e.shouldLoad?Ae("v-if",!0):(z(),X("img",{key:2,src:e.imageUrl,style:qe({width:e.size+"px",height:e.size+"px",objectFit:e.objectFit}),alt:"avatar",onLoad:t[0]||(t[0]=(...d)=>e.handleImgLoad&&e.handleImgLoad(...d)),onError:t[1]||(t[1]=(...d)=>e.handleImgError&&e.handleImgError(...d))},null,44,zPe))],64)):mt(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:qe(e.computedTriggerIconStyle)},[mt(e.$slots,"trigger-icon")],6)):Ae("v-if",!0)],6)}var lC=Ue(jPe,[["render",UPe]]);const HPe=xe({name:"Popover",components:{Trigger:va},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},title:String,content:String,trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"top"},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Me("popover"),r=ue(e.defaultPopupVisible),i=F(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=F(()=>[`${n}-popup-content`,e.contentClass]),l=F(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:i,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function WPe(e,t,n,r,i,a){const s=Ee("trigger");return z(),Ze(s,{class:fe(e.prefixCls),trigger:e.trigger,position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"show-arrow":"","popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:ce(()=>[I("div",{class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2),I("div",{class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"content",{},()=>[He(je(e.content),1)])],2)]),default:ce(()=>[mt(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var GP=Ue(HPe,[["render",WPe]]);const yH=Object.assign(GP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+GP.name,GP)}}),uC=xe({name:"AvatarGroup",props:{shape:{type:String,default:"circle"},size:Number,autoFixFontSize:{type:Boolean,default:!0},maxCount:{type:Number,default:0},zIndexAscend:{type:Boolean,default:!1},maxStyle:{type:Object},maxPopoverTriggerProps:{type:Object}},setup(e,{slots:t}){const{shape:n,size:r,autoFixFontSize:i,zIndexAscend:a}=tn(e),s=Me("avatar-group"),l=ue(0);return oi(Cpe,Wt({shape:n,size:r,autoFixFontSize:i,zIndexAscend:a,total:l})),()=>{var c,d;const h=yf((d=(c=t.default)==null?void 0:c.call(t))!=null?d:[]),p=e.maxCount>0?h.slice(0,e.maxCount):h,v=e.maxCount>0?h.slice(e.maxCount):[];return l.value!==h.length&&(l.value=h.length),O("div",{class:s},[p,v.length>0&&O(yH,e.maxPopoverTriggerProps,{default:()=>[O(lC,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[He("+"),v.length]})],content:()=>O("div",null,[v])})])}}}),GPe=Object.assign(lC,{Group:uC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+lC.name,lC),e.component(n+uC.name,uC)}}),KPe=xe({name:"IconToTop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),qPe=["stroke-width","stroke-linecap","stroke-linejoin"];function YPe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),I("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qPe)}var KP=Ue(KPe,[["render",YPe]]);const Epe=Object.assign(KP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KP.name,KP)}}),XPe=xe({name:"BackTop",components:{IconToTop:Epe},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Me("back-top"),n=ue(!1),r=ue(),i=!e.targetContainer,a=Rm(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:d}=r.value;n.value=d>=c}}),s=c=>hs(c)?document.querySelector(c):c;return fn(()=>{r.value=i?document?.documentElement:s(e.targetContainer),r.value&&(Mi(i?window:r.value,"scroll",a),a())}),Yr(()=>{a.cancel(),r.value&&no(i?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new ng({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function ZPe(e,t,n,r,i,a){const s=Ee("icon-to-top");return z(),Ze(Cs,{name:"fade-in"},{default:ce(()=>[e.visible?(z(),X("div",{key:0,class:fe(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[mt(e.$slots,"default",{},()=>[I("button",{class:fe(`${e.prefixCls}-btn`)},[O(s)],2)])],2)):Ae("v-if",!0)]),_:3})}var qP=Ue(XPe,[["render",ZPe]]);const JPe=Object.assign(qP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+qP.name,qP)}}),QPe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],eRe=["normal","processing","success","warning","danger"];var YP=xe({name:"Badge",props:{text:{type:String},dot:{type:Boolean},dotStyle:{type:Object},maxCount:{type:Number,default:99},offset:{type:Array,default:()=>[]},color:{type:String},status:{type:String,validator:e=>eRe.includes(e)},count:{type:Number}},setup(e,{slots:t}){const{status:n,color:r,dotStyle:i,offset:a,text:s,dot:l,maxCount:c,count:d}=tn(e),h=Me("badge"),p=tRe(h,n?.value,t?.default),v=F(()=>{const y={...i?.value||{}},[S,k]=a?.value||[];S&&(y.marginRight=`${-S}px`),k&&(y.marginTop=`${k}px`);const w=!r?.value||QPe.includes(r?.value)?{}:{backgroundColor:r.value};return{mergedStyle:{...w,...y},computedDotStyle:y,computedColorStyle:w}}),g=()=>{const y=s?.value,S=r?.value,k=n?.value,w=l?.value,x=Number(d?.value),E=d?.value!=null,{computedDotStyle:_,mergedStyle:T}=v.value;return t.content?O("span",{class:`${h}-custom-dot`,style:_},[t.content()]):y&&!S&&!k?O("span",{class:`${h}-text`,style:_},[y]):k||S&&!E?O("span",{class:`${h}-status-wrapper`},[O("span",{class:[`${h}-status-dot`,{[`${h}-status-${k}`]:k,[`${h}-color-${S}`]:S}],style:T},null),y&&O("span",{class:`${h}-status-text`},[y])]):(w||S)&&x>0?O("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:T},null):x===0?null:O("span",{class:`${h}-number`,style:T},[O("span",null,[c.value&&x>c.value?`${c.value}+`:x])])};return()=>O("span",{class:p.value},[t.default&&t.default(),g()])}});const tRe=(e,t,n)=>F(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),nRe=Object.assign(YP,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+YP.name,YP)}}),Tpe=Symbol("ArcoBreadcrumb"),rRe=xe({name:"IconMore",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iRe=["stroke-width","stroke-linecap","stroke-linejoin"];function oRe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1)]),14,iRe)}var XP=Ue(rRe,[["render",oRe]]);const U0=Object.assign(XP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XP.name,XP)}}),sRe=xe({name:"IconDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aRe=["stroke-width","stroke-linecap","stroke-linejoin"];function lRe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1)]),14,aRe)}var ZP=Ue(sRe,[["render",lRe]]);const Qh=Object.assign(ZP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZP.name,ZP)}}),uRe=xe({name:"IconObliqueLine",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),cRe=["stroke-width","stroke-linecap","stroke-linejoin"];function dRe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)]),14,cRe)}var JP=Ue(uRe,[["render",dRe]]);const Ape=Object.assign(JP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JP.name,JP)}}),bH=Symbol("ArcoDropdown"),fRe=xe({name:"DropdownPanel",components:{Scrollbar:Rd,Empty:Jh},props:{loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},bottomOffset:{type:Number,default:0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){const r=Me("dropdown"),i=Pn(bH,{}),a=ue(),s=d=>{const{scrollTop:h,scrollHeight:p,offsetHeight:v}=d.target;p-(h+v)<=e.bottomOffset&&t("reachBottom",d),t("scroll",d)},l=F(()=>{if(et(i.popupMaxHeight))return{maxHeight:`${i.popupMaxHeight}px`};if(!i.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=F(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function hRe(e,t,n,r,i,a){const s=Ee("empty"),l=Ee("Scrollbar");return z(),X("div",{class:fe(e.cls)},[e.isEmpty?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-empty`)},[mt(e.$slots,"empty",{},()=>[O(s)])],2)):Ae("v-if",!0),O(l,{ref:"wrapperRef",class:fe(`${e.prefixCls}-list-wrapper`),style:qe(e.style),onScroll:e.handleScroll},{default:ce(()=>[I("ul",{class:fe(`${e.prefixCls}-list`)},[mt(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer")],2)):Ae("v-if",!0)],2)}var Ipe=Ue(fRe,[["render",hRe]]);const H5=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const i=ue((r=t?.value)!=null?r:!1),a=F(()=>{var l;return(l=e?.value)!=null?l:i.value}),s=l=>{l!==a.value&&(i.value=l,n("update:popupVisible",l),n("popupVisibleChange",l))};return It(a,l=>{i.value!==l&&(i.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},pRe=xe({name:"Dropdown",components:{Trigger:va,DropdownPanel:Ipe},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"bottom"},popupContainer:{type:[String,Object]},popupMaxHeight:{type:[Boolean,Number],default:!0},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r,popupMaxHeight:i}=tn(e),a=Me("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=H5({defaultPopupVisible:n,popupVisible:r,emit:t});return oi(bH,Wt({popupMaxHeight:i,onOptionClick:(d,h)=>{t("select",d,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function vRe(e,t,n,r,i,a){const s=Ee("DropdownPanel"),l=Ee("Trigger");return z(),Ze(l,{"popup-visible":e.computedPopupVisible,"animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"",trigger:e.trigger,position:e.position,"popup-offset":4,"popup-container":e.popupContainer,"opened-class":`${e.prefixCls}-open`,onPopupVisibleChange:e.handlePopupVisibleChange},{content:ce(()=>[O(s,null,yo({default:ce(()=>[mt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:ce(()=>[mt(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:ce(()=>[mt(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var cC=Ue(pRe,[["render",vRe]]);const mRe=xe({name:"Doption",props:{value:{type:[String,Number,Object]},disabled:{type:Boolean,default:!1},active:Boolean,uninjectContext:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("dropdown-option"),r=ue(),i=F(()=>{var c,d,h;return(h=(d=e.value)!=null?d:(c=r.value)==null?void 0:c.textContent)!=null?h:void 0}),a=e.uninjectContext?void 0:Pn(bH,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(i.value,c))},l=F(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function gRe(e,t,n,r,i,a){return z(),X("li",{ref:"liRef",class:fe([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon")],2)):Ae("v-if",!0),I("span",{class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2),e.$slots.suffix?(z(),X("span",{key:1,class:fe(`${e.prefixCls}-suffix`)},[mt(e.$slots,"suffix")],2)):Ae("v-if",!0)],2)}var cy=Ue(mRe,[["render",gRe]]);const yRe=xe({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Me("dropdown-group")}}});function bRe(e,t,n,r,i,a){return z(),X(Pt,null,[I("li",{class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2),mt(e.$slots,"default")],64)}var dC=Ue(yRe,[["render",bRe]]);const _Re=xe({name:"IconRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),SRe=["stroke-width","stroke-linecap","stroke-linejoin"];function kRe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1)]),14,SRe)}var QP=Ue(_Re,[["render",kRe]]);const Hi=Object.assign(QP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QP.name,QP)}}),wRe=xe({name:"Dsubmenu",components:{Trigger:va,DropdownPanel:Ipe,DropdownOption:cy,IconRight:Hi},props:{value:{type:[String,Number]},disabled:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},optionProps:{type:Object}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r}=tn(e),i=Me("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=H5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:i,computedPopupVisible:a,handlePopupVisibleChange:s}}});function xRe(e,t,n,r,i,a){const s=Ee("IconRight"),l=Ee("dropdown-option"),c=Ee("dropdown-panel"),d=Ee("Trigger");return z(),Ze(d,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:ce(()=>[O(c,{class:fe(`${e.prefixCls}-submenu`)},yo({default:ce(()=>[mt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:ce(()=>[mt(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:ce(()=>[O(l,Ft(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),yo({suffix:ce(()=>[mt(e.$slots,"suffix",{},()=>[O(s)])]),default:ce(()=>[mt(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ce(()=>[mt(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var fC=Ue(wRe,[["render",xRe]]);const CRe=xe({name:"DropdownButton",components:{IconMore:U0,Button:Jo,ButtonGroup:rb,Dropdown:cC},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"br"},popupContainer:{type:[String,Object]},disabled:{type:Boolean,default:!1},type:{type:String},size:{type:String},buttonProps:{type:Object},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,click:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r}=tn(e),i=Me("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=H5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:i,computedPopupVisible:a,handleClick:d=>{t("click",d)},handleSelect:(d,h)=>{t("select",d,h)},handlePopupVisibleChange:s}}});function ERe(e,t,n,r,i,a){const s=Ee("Button"),l=Ee("IconMore"),c=Ee("Dropdown"),d=Ee("ButtonGroup");return z(),Ze(d,null,{default:ce(()=>[O(s,Ft({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:ce(()=>[mt(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),O(c,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,"popup-container":e.popupContainer,"hide-on-select":e.hideOnSelect,onSelect:e.handleSelect,onPopupVisibleChange:e.handlePopupVisibleChange},{content:ce(()=>[mt(e.$slots,"content")]),default:ce(()=>[O(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:ce(()=>[mt(e.$slots,"icon",{popupVisible:e.computedPopupVisible},()=>[O(l)])]),_:3},8,["size","type","disabled"])]),_:3},8,["popup-visible","trigger","position","popup-container","hide-on-select","onSelect","onPopupVisibleChange"])]),_:3})}var hC=Ue(CRe,[["render",ERe]]);const Lpe=Object.assign(cC,{Option:cy,Group:dC,Submenu:fC,Button:hC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+cC.name,cC),e.component(n+cy.name,cy),e.component(n+dC.name,dC),e.component(n+fC.name,fC),e.component(n+hC.name,hC)}});var ob=xe({name:"BreadcrumbItem",inheritAttrs:!1,props:{separator:{type:[String,Number]},droplist:{type:Array},dropdownProps:{type:Object},index:{type:Number,default:0}},setup(e,{slots:t,attrs:n}){const r=Me("breadcrumb-item"),i=Pn(Tpe,void 0),a=ue(!1),s=F(()=>!(i&&i.needHide&&e.index>1&&e.index<=i.total-i.maxCount)),l=F(()=>i&&i.needHide?e.index===1:!1),c=F(()=>i?e.index{a.value=y},h=()=>{var y,S,k,w,x,E,_;if(!c.value)return null;const T=(_=(E=(x=(S=(y=t.separator)==null?void 0:y.call(t))!=null?S:e.separator)!=null?x:(w=i==null?void 0:(k=i.slots).separator)==null?void 0:w.call(k))!=null?E:i?.separator)!=null?_:O(Ape,null,null);return O("div",{"aria-hidden":"true",class:`${r}-separator`},[T])},p=()=>{var y,S,k,w;return O("div",Ft({role:"listitem",class:[r,{[`${r}-with-dropdown`]:e.droplist||t.droplist}]},l.value?{"aria-label":"ellipses of breadcrumb items"}:void 0,n),[l.value?(k=(S=i==null?void 0:(y=i.slots)["more-icon"])==null?void 0:S.call(y))!=null?k:O(U0,null,null):(w=t.default)==null?void 0:w.call(t),(e.droplist||t.droplist)&&O("span",{"aria-hidden":!0,class:[`${r}-dropdown-icon`,{[`${r}-dropdown-icon-active`]:a.value}]},[O(Qh,null,null)])])},v=()=>{var y,S,k;return(k=(y=t.droplist)==null?void 0:y.call(t))!=null?k:(S=e.droplist)==null?void 0:S.map(w=>O(cy,{value:w.path},{default:()=>[w.label]}))},g=()=>O(Lpe,Ft({popupVisible:a.value,onPopupVisibleChange:d},e.dropdownProps),{default:()=>[p()],content:v});return()=>s.value?O(Pt,null,[t.droplist||e.droplist?g():p(),h()]):null}}),eR=xe({name:"Breadcrumb",props:{maxCount:{type:Number,default:0},routes:{type:Array},separator:{type:[String,Number]},customUrl:{type:Function}},setup(e,{slots:t}){const{maxCount:n,separator:r,routes:i}=tn(e),a=Me("breadcrumb"),s=ue(0),l=F(()=>n.value>0&&s.value>n.value+1);oi(Tpe,Wt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,v,g)=>{var y,S;if(v.indexOf(p)===v.length-1)return O("span",null,[p.label]);const k=(S=(y=e.customUrl)==null?void 0:y.call(e,g))!=null?S:`#/${g.join("/").replace(/^\//,"")}`;return O("a",{href:k},[p.label])},d=()=>{var p;if(!((p=i.value)!=null&&p.length))return null;s.value!==i.value.length&&(s.value=i.value.length);const v=[];return i.value.map((g,y,S)=>{v.push((g.path||"").replace(/^\//,""));const k=[...v];return O(ob,{key:g.path||g.label,index:y,droplist:g.children},{default:()=>{var w,x;return[(x=(w=t["item-render"])==null?void 0:w.call(t,{route:g,routes:S,paths:k}))!=null?x:c(g,S,k)]}})})},h=()=>{var p,v;const g=yf((v=(p=t.default)==null?void 0:p.call(t))!=null?v:[]);return s.value!==g.length&&(s.value=g.length),g.map((y,S)=>{var k;return y.props=Ft((k=y.props)!=null?k:{},{index:S}),y})};return()=>O("div",{role:"list",class:a},[t.default?h():d()])}});const TRe=Object.assign(eR,{Item:ob,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+eR.name,eR),e.component(n+ob.name,ob)}});var pC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tS(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var vC={exports:{}},ARe=vC.exports,dre;function Dpe(){return dre||(dre=1,(function(e,t){(function(n,r){e.exports=r()})(ARe,(function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",l="minute",c="hour",d="day",h="week",p="month",v="quarter",g="year",y="date",S="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var W=["th","st","nd","rd"],K=U%100;return"["+U+(W[(K-20)%10]||W[K]||W[0])+"]"}},E=function(U,W,K){var oe=String(U);return!oe||oe.length>=W?U:""+Array(W+1-oe.length).join(K)+U},_={s:E,z:function(U){var W=-U.utcOffset(),K=Math.abs(W),oe=Math.floor(K/60),ae=K%60;return(W<=0?"+":"-")+E(oe,2,"0")+":"+E(ae,2,"0")},m:function U(W,K){if(W.date()1)return U(Y[0])}else{var Q=W.name;D[Q]=W,ae=Q}return!oe&&ae&&(T=ae),ae||!oe&&T},L=function(U,W){if(M(U))return U.clone();var K=typeof W=="object"?W:{};return K.date=U,K.args=arguments,new j(K)},B=_;B.l=$,B.i=M,B.w=function(U,W){return L(U,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var j=(function(){function U(K){this.$L=$(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[P]=!0}var W=U.prototype;return W.parse=function(K){this.$d=(function(oe){var ae=oe.date,ee=oe.utc;if(ae===null)return new Date(NaN);if(B.u(ae))return new Date;if(ae instanceof Date)return new Date(ae);if(typeof ae=="string"&&!/Z$/i.test(ae)){var Y=ae.match(k);if(Y){var Q=Y[2]-1||0,ie=(Y[7]||"0").substring(0,3);return ee?new Date(Date.UTC(Y[1],Q,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ie)):new Date(Y[1],Q,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ie)}}return new Date(ae)})(K),this.init()},W.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},W.$utils=function(){return B},W.isValid=function(){return this.$d.toString()!==S},W.isSame=function(K,oe){var ae=L(K);return this.startOf(oe)<=ae&&ae<=this.endOf(oe)},W.isAfter=function(K,oe){return L(K)68?1900:2e3)},h=function(k){return function(w){this[k]=+w}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var x=w.match(/([+-]|\d\d)/g),E=60*x[1]+(+x[2]||0);return E===0?0:x[0]==="+"?-E:E})(k)}],v=function(k){var w=c[k];return w&&(w.indexOf?w:w.s.concat(w.f))},g=function(k,w){var x,E=c.meridiem;if(E){for(var _=1;_<=24;_+=1)if(k.indexOf(E(_,0,w))>-1){x=_>12;break}}else x=k===(w?"pm":"PM");return x},y={A:[l,function(k){this.afternoon=g(k,!1)}],a:[l,function(k){this.afternoon=g(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[a,h("day")],Do:[l,function(k){var w=c.ordinal,x=k.match(/\d+/);if(this.day=x[0],w)for(var E=1;E<=31;E+=1)w(E).replace(/\[|\]/g,"")===k&&(this.day=E)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(k){var w=v("months"),x=(v("monthsShort")||w.map((function(E){return E.slice(0,3)}))).indexOf(k)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(k){var w=v("months").indexOf(k)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,h("year")],YY:[a,function(k){this.year=d(k)}],YYYY:[/\d{4}/,h("year")],Z:p,ZZ:p};function S(k){var w,x;w=k,x=c&&c.formats;for(var E=(k=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,B,j){var H=j&&j.toUpperCase();return B||x[j]||n[j]||x[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(U,W,K){return W||K.slice(1)}))}))).match(r),_=E.length,T=0;T<_;T+=1){var D=E[T],P=y[D],M=P&&P[0],$=P&&P[1];E[T]=$?{regex:M,parser:$}:D.replace(/^\[|\]$/g,"")}return function(L){for(var B={},j=0,H=0;j<_;j+=1){var U=E[j];if(typeof U=="string")H+=U.length;else{var W=U.regex,K=U.parser,oe=L.slice(H),ae=W.exec(oe)[0];K.call(B,ae),L=L.replace(ae,"")}}return(function(ee){var Y=ee.afternoon;if(Y!==void 0){var Q=ee.hours;Y?Q<12&&(ee.hours+=12):Q===12&&(ee.hours=0),delete ee.afternoon}})(B),B}}return function(k,w,x){x.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var E=w.prototype,_=E.parse;E.parse=function(T){var D=T.date,P=T.utc,M=T.args;this.$u=P;var $=M[1];if(typeof $=="string"){var L=M[2]===!0,B=M[3]===!0,j=L||B,H=M[2];B&&(H=M[2]),c=this.$locale(),!L&&H&&(c=x.Ls[H]),this.$d=(function(oe,ae,ee,Y){try{if(["x","X"].indexOf(ae)>-1)return new Date((ae==="X"?1e3:1)*oe);var Q=S(ae)(oe),ie=Q.year,q=Q.month,te=Q.day,Se=Q.hours,Fe=Q.minutes,ve=Q.seconds,Re=Q.milliseconds,Ge=Q.zone,nt=Q.week,Ie=new Date,_e=te||(ie||q?1:Ie.getDate()),me=ie||Ie.getFullYear(),ge=0;ie&&!q||(ge=q>0?q-1:Ie.getMonth());var Be,Ye=Se||0,Ke=Fe||0,at=ve||0,ft=Re||0;return Ge?new Date(Date.UTC(me,ge,_e,Ye,Ke,at,ft+60*Ge.offset*1e3)):ee?new Date(Date.UTC(me,ge,_e,Ye,Ke,at,ft)):(Be=new Date(me,ge,_e,Ye,Ke,at,ft),nt&&(Be=Y(Be).week(nt).toDate()),Be)}catch{return new Date("")}})(D,$,P,x),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),j&&D!=this.format($)&&(this.$d=new Date("")),c={}}else if($ instanceof Array)for(var U=$.length,W=1;W<=U;W+=1){M[1]=$[W-1];var K=x.apply(this,M);if(K.isValid()){this.$d=K.$d,this.$L=K.$L,this.init();break}W===U&&(this.$d=new Date(""))}else _.call(this,T)}}}))})(mC)),mC.exports}var PRe=DRe();const RRe=rd(PRe);var gC={exports:{}},MRe=gC.exports,hre;function ORe(){return hre||(hre=1,(function(e,t){(function(n,r){e.exports=r()})(MRe,(function(){return function(n,r,i){r.prototype.isBetween=function(a,s,l,c){var d=i(a),h=i(s),p=(c=c||"()")[0]==="(",v=c[1]===")";return(p?this.isAfter(d,l):!this.isBefore(d,l))&&(v?this.isBefore(h,l):!this.isAfter(h,l))||(p?this.isBefore(d,l):!this.isAfter(d,l))&&(v?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(gC)),gC.exports}var $Re=ORe();const BRe=rd($Re);var yC={exports:{}},NRe=yC.exports,pre;function FRe(){return pre||(pre=1,(function(e,t){(function(n,r){e.exports=r()})(NRe,(function(){var n="week",r="year";return function(i,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(r).add(1,r).date(d),p=s(this).endOf(n);if(h.isBefore(p))return 1}var v=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),g=this.diff(v,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(yC)),yC.exports}var jRe=FRe();const VRe=rd(jRe);var bC={exports:{}},zRe=bC.exports,vre;function URe(){return vre||(vre=1,(function(e,t){(function(n,r){e.exports=r()})(zRe,(function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),h=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}}));return a.bind(this)(h)}}}))})(bC)),bC.exports}var HRe=URe();const WRe=rd(HRe);var _C={exports:{}},GRe=_C.exports,mre;function KRe(){return mre||(mre=1,(function(e,t){(function(n,r){e.exports=r()})(GRe,(function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),s=this.year();return a===1&&i===11?s+1:i===0&&a>=52?s-1:s}}}))})(_C)),_C.exports}var qRe=KRe();const YRe=rd(qRe);var SC={exports:{}},XRe=SC.exports,gre;function ZRe(){return gre||(gre=1,(function(e,t){(function(n,r){e.exports=r()})(XRe,(function(){var n="month",r="quarter";return function(i,a){var s=a.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var l=s.add;s.add=function(d,h){return d=Number(d),this.$utils().p(h)===r?this.add(3*d,n):l.bind(this)(d,h)};var c=s.startOf;s.startOf=function(d,h){var p=this.$utils(),v=!!p.u(h)||h;if(p.p(d)===r){var g=this.quarter()-1;return v?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(d,h)}}}))})(SC)),SC.exports}var JRe=ZRe();const QRe=rd(JRe);var kC={exports:{}},eMe=kC.exports,yre;function tMe(){return yre||(yre=1,(function(e,t){(function(n,r){e.exports=r(Dpe())})(eMe,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var c=100*s+l;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a}))})(kC)),kC.exports}tMe();const nMe=(e,t,n)=>{n=function(a,s){if(Hc(a))return a.clone();const l=typeof s=="object"?s:{};return l.date=a,l.args=arguments,new t(l)};const r=t.prototype,i=r.$utils;r.$utils=()=>{const a=i();return a.i=Hc,a},n.isDayjs=Hc};gl.extend(nMe);gl.extend(RRe);gl.extend(BRe);gl.extend(VRe);gl.extend(WRe);gl.extend(YRe);gl.extend(QRe);const Ms=gl,Xs={add(e,t,n){return e.add(t,n)},subtract(e,t,n){return e.subtract(t,n)},startOf(e,t){return e.startOf(t)},startOfWeek(e,t){const n=e.day();let r=e.subtract(n-t,"day");return r.isAfter(e)&&(r=r.subtract(7,"day")),r},endOf(e,t){return e.endOf(t)},set(e,t,n){return e.set(t,n)},isSameWeek(e,t,n){const r=i=>{const a=i.day(),s=a-n+(at.valueOf()-n.valueOf())}function _H(e,t){const n=(r,i)=>r===void 0&&i===void 0?!1:r&&!i||!r&&i?!0:r?.valueOf()!==i?.valueOf();return t===void 0&&e===void 0?!1:nr(t)&&nr(e)?n(t[0],e[0])||n(t[1],e[1]):!nr(t)&&!nr(e)?n(t,e):!0}function hc(e,t){const n=i=>{const a=/(Q1)|(Q2)|(Q3)|(Q4)/,s={Q1:"01",Q2:"04",Q3:"07",Q4:"10"},[l]=a.exec(i);return i.replace(a,s[l])},r=i=>{if(i){if(typeof i=="string"){if(JLe(t))return Ms(n(i),t.replace(/\[Q]Q/,"MM"));if(Ms(i,t).isValid())return Ms(i,t)}return Ms(i)}};return nr(e)?e.map(r):r(e)}function Cu(e){const t=n=>n?n.toDate():void 0;return nr(e)?e.map(t):t(e)}function Ppe(e,t){Ms.locale({...Ms.Ls[e.toLocaleLowerCase()],weekStart:t})}function rMe(e){const t={};return e&&Object.keys(e).forEach(n=>{const r=String(n);r.indexOf("data-")===0&&(t[r]=e[r]),r.indexOf("aria-")===0&&(t[r]=e[r])}),t}function gm(e,t,n=" "){const r=String(e),i=r.lengthO("div",{class:a},[l.map(c=>O("div",{class:`${a}-item`,key:c},[s(`calendar.week.${r.value||i.value==="year"?"short":"long"}.${c}`)]))])}});function xw(e,t){if(e&&nr(e))return e[t]}function Rpe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:i,isSameTime:a,innerMode:s}){return function(c,d){const h=xw(n,0),p=xw(n,1),v=xw(r,0),g=xw(r,1),y=!c.isPrev&&!c.isNext,S=y&&i,k=S,w=S;v&&h&&v.isBefore(h);const E=p&&g&&g.isAfter(p)&&w;let _=a(c.time,Xa());return s==="year"&&(_=Xa().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:y,[`${e}-cell-today`]:_,[`${e}-cell-selected`]:t&&a(c.time,t),[`${e}-cell-range-start`]:k,[`${e}-cell-range-end`]:w,[`${e}-cell-in-range`]:S,[`${e}-cell-in-range-near-hover`]:E,[`${e}-cell-hover-range-start`]:S,[`${e}-cell-hover-range-end`]:S,[`${e}-cell-hover-in-range`]:S,[`${e}-cell-disabled`]:d}]}}const bre=42,G8=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),oMe=e=>({start:G8(Xs.startOf(e,"month")),end:G8(Xs.endOf(e,"month")),days:e.daysInMonth()});function Mpe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=oMe(e),i=Array(bre).fill(null).map(()=>({})),a=t===0?r.start.day:(r.start.day||7)-1;i[a]={...r.start,isCurrent:!0};for(let l=0;l=r.days-1};const s=Array(6).fill(null).map(()=>[]);for(let l=0;l<6;l++)if(s[l]=i.slice(l*7,7*(l+1)),n){const c=s[l][0].time,d=[...s[l]];s[l].unshift({weekRows:d,weekOfYear:c.week()})}return s}var Ope=xe({name:"Month",props:{cell:{type:Boolean},pageData:{type:Array},current:{type:Number},value:{type:Object,required:!0},selectHandler:{type:Function,required:!0},mode:{type:String},pageShowDate:{type:Object,required:!0},panel:{type:Boolean},dayStartOfWeek:{type:Number,required:!0},isWeek:{type:Boolean,required:!0}},setup(e,{slots:t}){const{pageData:n}=tn(e),r=Me("calendar"),i=e.pageShowDate.year(),a=F(()=>Rpe({prefixCls:r,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(c,d)=>c.isSame(d,"day")}));function s(c){return c.map((d,h)=>{var p;if(d.time){const v=()=>e.selectHandler(d.time,!1),g=e.isWeek?{onClick:v}:{},y=e.isWeek?{}:{onClick:v};return O("div",Ft({key:h,class:a.value(d,!1)},g),[t.default?(p=t.default)==null?void 0:p.call(t,{year:d.year,month:d.month,date:d.date}):O("div",Ft({class:`${r}-date`},y),[O("div",{class:`${r}-date-value`},[e.panel?d.date:O("div",{class:`${r}-date-circle`},[d.date])])])])}if("weekOfYear"in d){const v=e.value.year(),g=e.value.month()+1,y=e.value.week(),S=e.value&&d.weekRows.find(k=>k.year===v&&k.month===g)&&y===d.weekOfYear;return O("div",{key:h,class:[`${r}-cell`,`${r}-cell-week`,{[`${r}-cell-selected-week`]:S,[`${r}-cell-in-range`]:S}]},[O("div",{class:`${r}-date`},[O("div",{class:`${r}-date-value`},[d.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=Mpe(Ms(`${i}-${gm(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>O("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[O(iMe,{value:e.value,selectHandler:e.selectHandler,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,panel:e.panel,mode:e.mode,pageShowData:e.pageShowDate,pageData:e.pageData},null),O("div",{class:`${r}-month-cell-body`},[l?.map((c,d)=>O("div",{key:d,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const $pe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),Bpe=Array(3);for(let e=0;e<3;e++)Bpe[e]=$pe.slice(e*4,4*(e+1));const Npe=Array(4);for(let e=0;e<4;e++)Npe[e]=$pe.slice(e*3,3*(e+1));var sMe=xe({name:"Year",props:{mode:{type:String,required:!0},dayStartOfWeek:{type:Number,required:!0},value:{type:Object,required:!0},isWeek:{type:Boolean},panel:{type:Boolean,default:!1},pageShowData:{type:Object,required:!0},pageData:{type:Array},selectHandler:{type:Function,required:!0}},setup(e){const t=Me("calendar"),n=F(()=>Rpe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=No(),i=F(()=>e.pageShowData.year()),a=e.panel?Npe:Bpe;return()=>O("div",{class:`${t}-year`},[a.map((s,l)=>O("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const d=Ms(`${i.value}-${gm(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(d,!1)}:{};return O("div",{key:c.value,class:n.value({...c,time:d},!1)},[e.panel?O("div",Ft({class:`${t}-date`},h),[O("div",{class:`${t}-date-value`},[r(`calendar.month.short.${c.name}`)])]):O("div",{class:`${t}-month-with-days`},[O("div",{class:`${t}-month-title`},[r(`calendar.month.long.${c.name}`)]),O(Ope,{pageShowDate:e.pageShowData,pageData:e.pageData,dayStartOfWeek:e.dayStartOfWeek,selectHandler:e.selectHandler,isWeek:e.isWeek,cell:!0,current:c.value,value:e.value,mode:e.mode},null)])])})]))])}});const aMe=({defaultValue:e,modelValue:t,emit:n,eventName:r="input",updateEventName:i="update:modelValue",eventHandlers:a})=>{var s;const l=ue(),c=ue((s=e?.value)!=null?s:""),d=ue(!1),h=ue(!1),p=ue("");let v;const g=F(()=>{var D;return(D=t?.value)!=null?D:c.value}),y=(D,P)=>{c.value=D,n(i,D),n(r,D,P)},S=D=>{const{value:P}=D.target;h.value||(y(P,D),dn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)}))},k=D=>{r==="input"&&g.value!==v&&(v=g.value,n("change",g.value,D))},w=D=>{var P;const{value:M}=D.target;D.type==="compositionend"?(h.value=!1,p.value="",y(M,D),dn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)})):(h.value=!0,p.value=g.value+((P=D.data)!=null?P:""))},x=D=>{var P,M;d.value=!0,v=g.value,n("focus",D),(M=(P=a?.value)==null?void 0:P.onFocus)==null||M.call(P,D)},E=D=>{var P,M;d.value=!1,n("blur",D),(M=(P=a?.value)==null?void 0:P.onBlur)==null||M.call(P,D),k(D)},_=D=>{const P=D.key||D.code;!h.value&&P===dH.key&&(n("pressEnter",D),k(D))},T=D=>{l.value&&D.target!==l.value&&(D.preventDefault(),l.value.focus())};return It(g,D=>{l.value&&D!==l.value.value&&(l.value.value=D)}),{inputRef:l,_value:c,_focused:d,isComposition:h,compositionValue:p,computedValue:g,handleInput:S,handleComposition:w,handleFocus:x,handleBlur:E,handleKeyDown:_,handleMousedown:T}};var lMe=xe({name:"InputLabel",inheritAttrs:!1,props:{modelValue:Object,inputValue:{type:String,default:""},enabledInput:Boolean,formatLabel:Function,placeholder:String,retainInputValue:Boolean,disabled:Boolean,baseCls:String,size:String,error:Boolean,focused:Boolean,uninjectFormItemContext:Boolean},emits:["update:inputValue","inputValueChange","focus","blur"],setup(e,{attrs:t,emit:n,slots:r}){var i;const{size:a,disabled:s,error:l,inputValue:c,uninjectFormItemContext:d}=tn(e),h=(i=e.baseCls)!=null?i:Me("input-label"),{mergedSize:p,mergedDisabled:v,mergedError:g,eventHandlers:y}=Do({size:a,disabled:s,error:l,uninject:d?.value}),{mergedSize:S}=Aa(p),{inputRef:k,_focused:w,computedValue:x,handleInput:E,handleComposition:_,handleFocus:T,handleBlur:D,handleMousedown:P}=aMe({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:y}),M=F(()=>{var oe;return(oe=e.focused)!=null?oe:w.value}),$=F(()=>e.enabledInput&&w.value||!e.modelValue),L=()=>{var oe,ae;return e.modelValue?(ae=(oe=e.formatLabel)==null?void 0:oe.call(e,e.modelValue))!=null?ae:e.modelValue.label:""},B=F(()=>e.enabledInput&&e.modelValue?L():e.placeholder),j=()=>{var oe,ae;return e.modelValue?(ae=(oe=r.default)==null?void 0:oe.call(r,{data:e.modelValue}))!=null?ae:L():null},H=F(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:M.value,[`${h}-disabled`]:v.value,[`${h}-error`]:g.value}]),U=F(()=>Ea(t,w0)),W=F(()=>kf(t,w0));return{inputRef:k,render:()=>O("span",Ft(U.value,{class:H.value,title:L(),onMousedown:P}),[r.prefix&&O("span",{class:`${h}-prefix`},[r.prefix()]),O("input",Ft(W.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!$.value}],value:x.value,readonly:!e.enabledInput,placeholder:B.value,disabled:v.value,onInput:E,onFocus:T,onBlur:D,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),O("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:$.value}]},[j()]),r.suffix&&O("span",{class:`${h}-suffix`},[r.suffix()])])}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const uMe=(e,t)=>{const n=[];for(const r of e)if(gr(r))n.push({raw:r,value:r[t.value],label:r[t.label],closable:r[t.closable],tagProps:r[t.tagProps]});else if(e||et(e)){const i={value:r,label:String(r),closable:!0};n.push({raw:i,...i})}return n},_re=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],cMe=xe({name:"Tag",components:{IconHover:Lo,IconClose:rs,IconLoading:Ja},props:{color:{type:String},size:{type:String},bordered:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:!0},nowrap:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,"update:checked":e=>!0,close:e=>!0,check:(e,t)=>!0},setup(e,{emit:t}){const{size:n}=tn(e),r=Me("tag"),i=F(()=>e.color&&_re.includes(e.color)),a=F(()=>e.color&&!_re.includes(e.color)),s=ue(e.defaultVisible),l=ue(e.defaultChecked),c=F(()=>{var k;return(k=e.visible)!=null?k:s.value}),d=F(()=>{var k;return e.checkable?(k=e.checked)!=null?k:l.value:!0}),{mergedSize:h}=Aa(n),p=F(()=>h.value==="mini"?"small":h.value),v=k=>{s.value=!1,t("update:visible",!1),t("close",k)},g=k=>{if(e.checkable){const w=!d.value;l.value=w,t("update:checked",w),t("check",w,k)}},y=F(()=>[r,`${r}-size-${p.value}`,{[`${r}-loading`]:e.loading,[`${r}-hide`]:!c.value,[`${r}-${e.color}`]:i.value,[`${r}-bordered`]:e.bordered,[`${r}-checkable`]:e.checkable,[`${r}-checked`]:d.value,[`${r}-custom-color`]:a.value}]),S=F(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:y,style:S,computedVisible:c,computedChecked:d,handleClick:g,handleClose:v}}});function dMe(e,t,n,r,i,a){const s=Ee("icon-close"),l=Ee("icon-hover"),c=Ee("icon-loading");return e.computedVisible?(z(),X("span",{key:0,class:fe(e.cls),style:qe(e.style),onClick:t[0]||(t[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.$slots.icon?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon")],2)):Ae("v-if",!0),e.nowrap?(z(),X("span",{key:1,class:fe(`${e.prefixCls}-text`)},[mt(e.$slots,"default")],2)):mt(e.$slots,"default",{key:2}),e.closable?(z(),Ze(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:fe(`${e.prefixCls}-close-btn`),onClick:fs(e.handleClose,["stop"])},{default:ce(()=>[mt(e.$slots,"close-icon",{},()=>[O(s)])]),_:3},8,["prefix","class","onClick"])):Ae("v-if",!0),e.loading?(z(),X("span",{key:4,class:fe(`${e.prefixCls}-loading-icon`)},[O(c)],2)):Ae("v-if",!0)],6)):Ae("v-if",!0)}var tR=Ue(cMe,[["render",dMe]]);const SH=Object.assign(tR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+tR.name,tR)}}),fMe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var nR=xe({name:"InputTag",inheritAttrs:!1,props:{modelValue:{type:Array},defaultValue:{type:Array,default:()=>[]},inputValue:String,defaultInputValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{type:String},maxTagCount:{type:Number,default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{type:Function},uniqueValue:{type:Boolean,default:!1},fieldNames:{type:Object},tagNowrap:{type:Boolean,default:!1},baseCls:String,focused:Boolean,disabledInput:Boolean,uninjectFormItemContext:Boolean},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,change:(e,t)=>!0,inputValueChange:(e,t)=>!0,pressEnter:(e,t)=>!0,remove:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:i,disabled:a,error:s,uninjectFormItemContext:l,modelValue:c}=tn(e),d=e.baseCls||Me("input-tag"),h=ue(),p=ue(),{mergedSize:v,mergedDisabled:g,mergedError:y,feedback:S,eventHandlers:k}=Do({size:i,disabled:a,error:s,uninject:l?.value}),{mergedSize:w}=Aa(v),x=F(()=>({...fMe,...e.fieldNames})),E=ue(!1),_=ue(e.defaultValue),T=ue(e.defaultInputValue),D=ue(!1),P=ue(""),M=F(()=>gr(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),$=Wt({width:"12px"}),L=F(()=>e.focused||E.value),B=(ge,Be)=>{T.value=ge,t("update:inputValue",ge),t("inputValueChange",ge,Be)},j=ge=>{var Be;const{value:Ye}=ge.target;ge.type==="compositionend"?(D.value=!1,P.value="",B(Ye,ge),dn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)})):(D.value=!0,P.value=U.value+((Be=ge.data)!=null?Be:""))},H=F(()=>{var ge;return(ge=e.modelValue)!=null?ge:_.value}),U=F(()=>{var ge;return(ge=e.inputValue)!=null?ge:T.value});It(c,ge=>{(wn(ge)||Al(ge))&&(_.value=[])});const W=ge=>{h.value&&ge.target!==h.value&&(ge.preventDefault(),h.value.focus())},K=ge=>{const{value:Be}=ge.target;D.value||(B(Be,ge),dn(()=>{h.value&&U.value!==h.value.value&&(h.value.value=U.value)}))},oe=F(()=>uMe(H.value,x.value)),ae=F(()=>{if(e.maxTagCount>0){const ge=oe.value.length-e.maxTagCount;if(ge>0){const Be=oe.value.slice(0,e.maxTagCount),Ye={value:"__arco__more",label:`+${ge}...`,closable:!1};return Be.push({raw:Ye,...Ye}),Be}}return oe.value}),ee=(ge,Be)=>{var Ye,Ke;_.value=ge,t("update:modelValue",ge),t("change",ge,Be),(Ke=(Ye=k.value)==null?void 0:Ye.onChange)==null||Ke.call(Ye,Be)},Y=(ge,Be,Ye)=>{var Ke;const at=(Ke=H.value)==null?void 0:Ke.filter((ft,ct)=>ct!==Be);ee(at,Ye),t("remove",ge,Ye)},Q=ge=>{ee([],ge),t("clear",ge)},ie=F(()=>!g.value&&!e.readonly&&e.allowClear&&!!H.value.length),q=ge=>{var Be;if(U.value){if(ge.preventDefault(),e.uniqueValue&&((Be=H.value)!=null&&Be.includes(U.value))){t("pressEnter",U.value,ge);return}const Ye=H.value.concat(U.value);ee(Ye,ge),t("pressEnter",U.value,ge),M.value.create||B("",ge)}},te=ge=>{var Be,Ye;E.value=!0,t("focus",ge),(Ye=(Be=k.value)==null?void 0:Be.onFocus)==null||Ye.call(Be,ge)},Se=ge=>{var Be,Ye;E.value=!1,!M.value.blur&&U.value&&B("",ge),t("blur",ge),(Ye=(Be=k.value)==null?void 0:Be.onBlur)==null||Ye.call(Be,ge)},Fe=()=>{for(let ge=oe.value.length-1;ge>=0;ge--)if(oe.value[ge].closable)return ge;return-1},ve=ge=>{if(g.value||e.readonly)return;const Be=ge.key||ge.code;if(!D.value&&U.value&&Be===dH.key&&q(ge),!D.value&&ae.value.length>0&&!U.value&&Be===gpe.key){const Ye=Fe();Ye>=0&&Y(oe.value[Ye].value,Ye,ge)}},Re=ge=>{ge>12?$.width=`${ge}px`:$.width="12px"};fn(()=>{p.value&&Re(p.value.offsetWidth)});const Ge=()=>{p.value&&Re(p.value.offsetWidth)};It(U,ge=>{h.value&&!D.value&&ge!==h.value.value&&(h.value.value=ge)});const nt=F(()=>[d,`${d}-size-${w.value}`,{[`${d}-disabled`]:g.value,[`${d}-disabled-input`]:e.disabledInput,[`${d}-error`]:y.value,[`${d}-focus`]:L.value,[`${d}-readonly`]:e.readonly,[`${d}-has-tag`]:ae.value.length>0,[`${d}-has-prefix`]:!!n.prefix,[`${d}-has-suffix`]:!!n.suffix||ie.value||S.value,[`${d}-has-placeholder`]:!H.value.length}]),Ie=F(()=>Ea(r,w0)),_e=F(()=>kf(r,w0));return{inputRef:h,render:()=>{var ge;return O("span",Ft({class:nt.value,onMousedown:W},Ie.value),[O(Dd,{onResize:Ge},{default:()=>[O("span",{ref:p,class:`${d}-mirror`},[ae.value.length>0?P.value||U.value:P.value||U.value||e.placeholder])]}),n.prefix&&O("span",{class:`${d}-prefix`},[n.prefix()]),O(o3,{tag:"span",name:"input-tag-zoom",class:[`${d}-inner`,{[`${d}-nowrap`]:e.tagNowrap}]},{default:()=>[ae.value.map((Be,Ye)=>O(SH,Ft({key:`tag-${Be.value}`,class:`${d}-tag`,closable:!g.value&&!e.readonly&&Be.closable,visible:!0,nowrap:e.tagNowrap},Be.tagProps,{onClose:Ke=>Y(Be.value,Ye,Ke)}),{default:()=>{var Ke,at,ft,ct;return[(ct=(ft=(Ke=n.tag)==null?void 0:Ke.call(n,{data:Be.raw}))!=null?ft:(at=e.formatTag)==null?void 0:at.call(e,Be.raw))!=null?ct:Be.label]}})),O("input",Ft(_e.value,{ref:h,key:"input-tag-input",class:`${d}-input`,style:$,placeholder:ae.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:K,onKeydown:ve,onFocus:te,onBlur:Se,onCompositionstart:j,onCompositionupdate:j,onCompositionend:j}),null)]}),ie.value&&O(Lo,{class:`${d}-clear-btn`,onClick:Q,onMousedown:Be=>Be.stopPropagation()},{default:()=>[O(rs,null,null)]}),(n.suffix||!!S.value)&&O("span",{class:`${d}-suffix`},[(ge=n.suffix)==null?void 0:ge.call(n),!!S.value&&O(eS,{type:S.value},null)])])}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Fpe=Object.assign(nR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+nR.name,nR)}});var K8=xe({name:"SelectView",props:{modelValue:{type:Array,required:!0},inputValue:String,placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},opened:{type:Boolean,default:!1},size:{type:String},bordered:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>nr(e.modelValue)},maxTagCount:{type:Number,default:0},tagNowrap:{type:Boolean,default:!1},retainInputValue:{type:Boolean,default:!1}},emits:["remove","clear","focus","blur"],setup(e,{emit:t,slots:n}){const{size:r,disabled:i,error:a}=tn(e),s=Me("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:d,mergedSize:h,mergedError:p}=Do({size:r,disabled:i,error:a}),{mergedSize:v}=Aa(h),{opened:g}=tn(e),y=ue(),S=F(()=>{var B;return(B=y.value)==null?void 0:B.inputRef}),k=F(()=>e.modelValue.length===0),w=F(()=>e.allowSearch||e.allowCreate),x=F(()=>e.allowClear&&!e.disabled&&!k.value),E=B=>{var j,H;t("focus",B),(H=(j=c.value)==null?void 0:j.onFocus)==null||H.call(j,B)},_=B=>{var j,H;t("blur",B),(H=(j=c.value)==null?void 0:j.onBlur)==null||H.call(j,B)},T=B=>{t("remove",B)},D=B=>{t("clear",B)},P=()=>{var B,j,H,U;return e.loading?(j=(B=n["loading-icon"])==null?void 0:B.call(n))!=null?j:O(Ja,null,null):e.allowSearch&&e.opened?(U=(H=n["search-icon"])==null?void 0:H.call(n))!=null?U:O(Mm,null,null):n["arrow-icon"]?n["arrow-icon"]():O(Qh,{class:`${s}-arrow-icon`},null)},M=()=>O(Pt,null,[x.value&&O(Lo,{class:`${s}-clear-btn`,onClick:D,onMousedown:B=>B.stopPropagation()},{default:()=>[O(rs,null,null)]}),O("span",{class:`${s}-icon`},[P()]),!!l.value&&O(eS,{type:l.value},null)]);It(g,B=>{!B&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const $=F(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:E,handleBlur:_,render:()=>e.multiple?O(Fpe,{ref:y,baseCls:s,class:$.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:v.value,error:p.value,maxTagCount:e.maxTagCount,disabledInput:!e.allowSearch&&!e.allowCreate,tagNowrap:e.tagNowrap,retainInputValue:!0,uninjectFormItemContext:!0,onRemove:T,onFocus:E,onBlur:_},{prefix:n.prefix,suffix:M,tag:n.label}):O(lMe,{ref:y,baseCls:s,class:$.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:v.value,error:p.value,enabledInput:w.value,uninjectFormItemContext:!0,onFocus:E,onBlur:_},{default:n.label,prefix:n.prefix,suffix:M})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const hMe=xe({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Me("select-group")}}});function pMe(e,t,n,r,i,a){return z(),X(Pt,null,[I("li",{class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"label",{},()=>[He(je(e.label),1)])],2),mt(e.$slots,"default")],64)}var sb=Ue(hMe,[["render",pMe]]);const Sre=typeof window>"u"?global:window;function o_(e,t){let n=0;return(...r)=>{n&&Sre.clearTimeout(n),n=Sre.setTimeout(()=>{n=0,e(...r)},t)}}function vMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const mMe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var rR=xe({name:"Select",components:{Trigger:va,SelectView:K8},inheritAttrs:!1,props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:e=>wn(e.multiple)?"":[]},inputValue:{type:String},defaultInputValue:{type:String,default:""},size:{type:String},placeholder:String,loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{type:Number,default:0},popupContainer:{type:[String,Object]},bordered:{type:Boolean,default:!0},defaultActiveFirstOption:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountOnClose:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},options:{type:Array,default:()=>[]},virtualListProps:{type:Object},triggerProps:{type:Object},formatLabel:{type:Function},fallbackOption:{type:[Boolean,Function],default:!0},showExtraOptions:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},searchDelay:{type:Number,default:500},limit:{type:Number,default:0},fieldNames:{type:Object},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,popupVisibleChange:e=>!0,clear:e=>!0,remove:e=>!0,search:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0,exceedLimit:(e,t)=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{size:i,disabled:a,error:s,options:l,filterOption:c,valueKey:d,multiple:h,popupVisible:p,defaultPopupVisible:v,showExtraOptions:g,modelValue:y,fieldNames:S,loading:k,defaultActiveFirstOption:w}=tn(e),x=Me("select"),{mergedSize:E,mergedDisabled:_,mergedError:T,eventHandlers:D}=Do({size:i,disabled:a,error:s}),P=F(()=>e.virtualListProps?"div":"li"),M=F(()=>gr(e.allowSearch)&&!!e.allowSearch.retainInputValue);F(()=>{if(Sn(e.formatLabel))return vt=>{const Ve=at.get(vt.value);return e.formatLabel(Ve)}});const $=ue(),L=ue({}),B=ue(),{computedPopupVisible:j,handlePopupVisibleChange:H}=H5({popupVisible:p,defaultPopupVisible:v,emit:n}),U=ue(e.defaultValue),W=F(()=>{var vt;const Ve=(vt=e.modelValue)!=null?vt:U.value;return(nr(Ve)?Ve:Ve||et(Ve)||hs(Ve)||Tl(Ve)?[Ve]:[]).map(Ce=>({value:Ce,key:Om(Ce,e.valueKey)}))});It(y,vt=>{(wn(vt)||Al(vt))&&(U.value=h.value?[]:vt)});const K=F(()=>W.value.map(vt=>vt.key)),oe=F(()=>({...mMe,...S?.value})),ae=ue(),ee=vt=>{const Ve={};return vt.forEach(Oe=>{Ve[Oe]=at.get(Oe)}),Ve},Y=vt=>{ae.value=ee(vt)},Q=vt=>Sn(e.fallbackOption)?e.fallbackOption(vt):{[oe.value.value]:vt,[oe.value.label]:String(gr(vt)?vt[d?.value]:vt)},ie=()=>{const vt=[],Ve=[];if(e.allowCreate||e.fallbackOption){for(const Oe of W.value)if(!Ve.includes(Oe.key)&&Oe.value!==""){const Ce=at.get(Oe.key);(!Ce||Ce.origin==="extraOptions")&&(vt.push(Oe),Ve.push(Oe.key))}}if(e.allowCreate&&Fe.value){const Oe=Om(Fe.value);if(!Ve.includes(Oe)){const Ce=at.get(Oe);(!Ce||Ce.origin==="extraOptions")&&vt.push({value:Fe.value,key:Oe})}}return vt},q=ue([]),te=F(()=>q.value.map(vt=>{var Ve;let Oe=Q(vt.value);const Ce=(Ve=ae.value)==null?void 0:Ve[vt.key];return!wn(Ce)&&!ZLe(Ce)&&(Oe={...Oe,...Ce}),Oe}));dn(()=>{$s(()=>{var vt;const Ve=ie();if(Ve.length!==q.value.length)q.value=Ve;else if(Ve.length>0){for(let Oe=0;Oe{var vt;return(vt=e.inputValue)!=null?vt:Se.value});It(j,vt=>{!vt&&!M.value&&Fe.value&&Ge("")});const ve=vt=>{var Ve,Oe;return e.multiple?vt.map(Ce=>{var We,$e;return($e=(We=at.get(Ce))==null?void 0:We.value)!=null?$e:""}):(Oe=(Ve=at.get(vt[0]))==null?void 0:Ve.value)!=null?Oe:xPe(at)?void 0:""},Re=vt=>{var Ve,Oe;const Ce=ve(vt);U.value=Ce,n("update:modelValue",Ce),n("change",Ce),(Oe=(Ve=D.value)==null?void 0:Ve.onChange)==null||Oe.call(Ve),Y(vt)},Ge=vt=>{Se.value=vt,n("update:inputValue",vt),n("inputValueChange",vt)},nt=(vt,Ve)=>{if(e.multiple){if(K.value.includes(vt)){const Oe=K.value.filter(Ce=>Ce!==vt);Re(Oe)}else if(ct.value.includes(vt))if(e.limit>0&&K.value.length>=e.limit){const Oe=at.get(vt);n("exceedLimit",Oe?.value,Ve)}else{const Oe=K.value.concat(vt);Re(Oe)}M.value||Ge("")}else{if(vt!==K.value[0]&&Re([vt]),M.value){const Oe=at.get(vt);Oe&&Ge(Oe.label)}H(!1)}},Ie=o_(vt=>{n("search",vt)},e.searchDelay),_e=vt=>{vt!==Fe.value&&(j.value||H(!0),Ge(vt),e.allowSearch&&Ie(vt))},me=vt=>{const Ve=at.get(vt),Oe=K.value.filter(Ce=>Ce!==vt);Re(Oe),n("remove",Ve?.value)},ge=vt=>{vt?.stopPropagation();const Ve=K.value.filter(Oe=>{var Ce;return(Ce=at.get(Oe))==null?void 0:Ce.disabled});Re(Ve),Ge(""),n("clear",vt)},Be=vt=>{n("dropdownScroll",vt)},Ye=vt=>{n("dropdownReachBottom",vt)},{validOptions:Ke,optionInfoMap:at,validOptionInfos:ft,enabledOptionKeys:ct,handleKeyDown:Ct}=mH({multiple:h,options:l,extraOptions:te,inputValue:Fe,filterOption:c,showExtraOptions:g,component:P,valueKey:d,fieldNames:S,loading:k,popupVisible:j,valueKeys:K,dropdownRef:$,optionRefs:L,virtualListRef:B,defaultActiveFirstOption:w,onSelect:nt,onPopupVisibleChange:H}),xt=F(()=>{var vt;const Ve=[];for(const Oe of W.value){const Ce=at.get(Oe.key);Ce&&Ve.push({...Ce,value:Oe.key,label:(vt=Ce?.label)!=null?vt:String(gr(Oe.value)?Oe.value[d?.value]:Oe.value),closable:!Ce?.disabled,tagProps:Ce?.tagProps})}return Ve}),Rt=vt=>{if(Sn(t.option)){const Ve=t.option;return()=>Ve({data:vt.raw})}return Sn(vt.render)?vt.render:()=>vt.label},Ht=vt=>{if(xpe(vt)){let Ve;return O(sb,{key:vt.key,label:vt.label},vMe(Ve=vt.options.map(Oe=>Ht(Oe)))?Ve:{default:()=>[Ve]})}return V5(vt,{inputValue:Fe.value,filterOption:c?.value})?O(mm,{ref:Ve=>{Ve?.$el&&(L.value[vt.key]=Ve.$el)},key:vt.key,value:vt.value,label:vt.label,disabled:vt.disabled,internal:!0},{default:Rt(vt)}):null},Jt=()=>O(vH,{ref:$,loading:e.loading,empty:ft.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Be,onReachBottom:Ye},{default:()=>{var vt,Ve;return[...(Ve=(vt=t.default)==null?void 0:vt.call(t))!=null?Ve:[],...Ke.value.map(Ht)]},"virtual-list":()=>O(c3,Ft(e.virtualListProps,{ref:B,data:Ke.value}),{item:({item:vt})=>Ht(vt)}),empty:t.empty,header:t.header,footer:t.footer}),rn=({data:vt})=>{var Ve,Oe,Ce,We;if((t.label||Sn(e.formatLabel))&&vt){const $e=at.get(vt.value);if($e?.raw)return(Ce=(Ve=t.label)==null?void 0:Ve.call(t,{data:$e.raw}))!=null?Ce:(Oe=e.formatLabel)==null?void 0:Oe.call(e,$e.raw)}return(We=vt?.label)!=null?We:""};return()=>O(va,Ft({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:_.value,popupVisible:j.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:H},e.triggerProps),{default:()=>{var vt,Ve;return[(Ve=(vt=t.trigger)==null?void 0:vt.call(t))!=null?Ve:O(K8,Ft({class:x,modelValue:xt.value,inputValue:Fe.value,multiple:e.multiple,disabled:_.value,error:T.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:j.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:E.value,tagNowrap:e.tagNowrap,onInputValueChange:_e,onRemove:me,onClear:ge,onKeydown:Ct},r),{label:rn,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Jt})}});const s_=Object.assign(rR,{Option:mm,OptGroup:sb,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+rR.name,rR),e.component(n+mm.name,mm),e.component(n+sb.name,sb)}}),jpe=Symbol("RadioGroup");var wC=xe({name:"Radio",components:{IconHover:Lo},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!0},type:{type:String,default:"radio"},disabled:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Me("radio"),{modelValue:i}=tn(e),a=e.uninjectGroupContext?void 0:Pn(jpe,void 0),{mergedDisabled:s,eventHandlers:l}=Do({disabled:Pu(e,"disabled")}),c=ue(null),d=ue(e.defaultChecked),h=F(()=>a?.name==="ArcoRadioGroup"),p=F(()=>{var _;return(_=a?.type)!=null?_:e.type}),v=F(()=>a?.disabled||s.value),g=F(()=>{var _,T;return h.value?a?.value===((_=e.value)!=null?_:!0):wn(e.modelValue)?d.value:e.modelValue===((T=e.value)!=null?T:!0)});It(i,_=>{(wn(_)||Al(_))&&(d.value=!1)}),It(g,(_,T)=>{_!==T&&(d.value=_,c.value&&(c.value.checked=_))});const y=_=>{var T,D;(D=(T=l.value)==null?void 0:T.onFocus)==null||D.call(T,_)},S=_=>{var T,D;(D=(T=l.value)==null?void 0:T.onBlur)==null||D.call(T,_)},k=_=>{_.stopPropagation()},w=_=>{var T,D,P,M,$;d.value=!0,h.value?a?.handleChange((T=e.value)!=null?T:!0,_):(t("update:modelValue",(D=e.value)!=null?D:!0),t("change",(P=e.value)!=null?P:!0,_),($=(M=l.value)==null?void 0:M.onChange)==null||$.call(M,_)),dn(()=>{c.value&&c.value.checked!==g.value&&(c.value.checked=g.value)})},x=F(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:g.value,[`${r}-disabled`]:v.value}]),E=()=>O(Pt,null,[O(Ee("icon-hover"),{class:`${r}-icon-hover`,disabled:v.value||g.value},{default:()=>[O("span",{class:`${r}-icon`},null)]}),n.default&&O("span",{class:`${r}-label`},[n.default()])]);return()=>{var _,T,D,P;return O("label",{class:x.value},[O("input",{ref:c,type:"radio",checked:g.value,value:e.value,class:`${r}-target`,disabled:v.value,onClick:k,onChange:w,onFocus:y,onBlur:S},null),p.value==="radio"?(P=(D=(T=n.radio)!=null?T:(_=a?.slots)==null?void 0:_.radio)==null?void 0:D({checked:g.value,disabled:v.value}))!=null?P:E():O("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),ab=xe({name:"RadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean],default:""},type:{type:String,default:"radio"},size:{type:String},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Me("radio-group"),{size:i,type:a,disabled:s,modelValue:l}=tn(e),{mergedDisabled:c,mergedSize:d,eventHandlers:h}=Do({size:i,disabled:s}),{mergedSize:p}=Aa(d),v=ue(e.defaultValue),g=F(()=>{var x;return(x=e.modelValue)!=null?x:v.value}),y=F(()=>{var x;return((x=e.options)!=null?x:[]).map(E=>hs(E)||et(E)?{label:E,value:E}:E)});oi(jpe,Wt({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(x,E)=>{var _,T;v.value=x,t("update:modelValue",x),t("change",x,E),(T=(_=h.value)==null?void 0:_.onChange)==null||T.call(_,E)}})),It(g,x=>{v.value!==x&&(v.value=x)}),It(l,x=>{(wn(x)||Al(x))&&(v.value="")});const k=F(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),w=()=>y.value.map(x=>O(wC,{key:x.value,value:x.value,disabled:x.disabled,modelValue:g.value===x.value},{default:()=>[n.label?n.label({data:x}):Sn(x.label)?x.label():x.label]}));return()=>{var x;return O("span",{class:k.value},[y.value.length>0?w():(x=n.default)==null?void 0:x.call(n)])}}});const $m=Object.assign(wC,{Group:ab,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+wC.name,wC),e.component(n+ab.name,ab)}}),gMe=xe({name:"IconLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yMe=["stroke-width","stroke-linecap","stroke-linejoin"];function bMe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1)]),14,yMe)}var iR=Ue(gMe,[["render",bMe]]);const Il=Object.assign(iR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iR.name,iR)}});function _Me(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}function kre(e){return e.parentElement}var SMe=xe({name:"Header",props:{mode:{type:String},dayStartOfWeek:{type:Number},isWeek:{type:Boolean},panel:{type:Boolean},modes:{type:Array},headerType:{type:String},pageShowData:{type:Object,required:!0},move:{type:Function,required:!0},onYearChange:{type:Function,required:!0},onMonthChange:{type:Function,required:!0},changePageShowDate:{type:Function,required:!0},onModeChange:{type:Function,required:!0},headerValueFormat:{type:String,required:!0}},emits:["yearChange","monthChange"],setup(e,{slots:t}){const n=Me("calendar"),{t:r}=No(),i=nr(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=F(()=>e.pageShowData.year()),l=F(()=>e.pageShowData.month()+1),c=F(()=>{const h=[s.value];for(let p=1;p<=10;p++)h.unshift(s.value-p);for(let p=1;p<10;p++)h.push(s.value+p);return h}),d=[1,2,3,4,5,6,7,8,9,10,11,12];return()=>{let h;return O("div",{class:`${n}-header`},[O("div",{class:`${n}-header-left`},[a?O(Pt,null,[O(s_,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:kre},null),e.mode==="month"&&O(s_,{size:"small",class:`${n}-header-value-month`,value:l,options:d,onChange:e.onMonthChange,getPopupContainer:kre},null)]):O(Pt,null,[O("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[O(Il,null,null)]),O("div",{class:`${n}-header-value`},[t.default?t.default({year:s,month:l}):e.pageShowData.format(e.headerValueFormat)]),O("div",{role:"button",tabIndex:0,class:`${n}-header-icon`,onClick:()=>e.changePageShowDate("next",e.mode)},[O(Hi,null,null)])]),O(Jo,{size:"small",onClick:()=>e.move(Xa())},_Me(h=r("datePicker.today"))?h:{default:()=>[h]})]),O("div",{class:`${n}-header-right`},[O($m.Group,{size:"small",type:"button",options:i,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function kMe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var oR=xe({name:"Calendar",props:{modelValue:{type:Date,default:void 0},defaultValue:{type:Date},mode:{type:String},defaultMode:{type:String,default:"month"},modes:{type:Array,default:()=>["month","year"]},allowSelect:{type:Boolean,default:!0},panel:{type:Boolean,default:!1},panelWidth:{type:Number},panelTodayBtn:{type:Boolean,default:!1},dayStartOfWeek:{type:Number,default:0},isWeek:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,panelChange:e=>!0},setup(e,{emit:t,slots:n}){const{dayStartOfWeek:r,isWeek:i}=tn(e),a=Me("calendar"),s=ue(e.defaultMode),{t:l}=No(),c=F(()=>e.mode?e.mode:s.value),d=kMe(c.value,e.panel),h=ue(hc(e.defaultValue||Date.now(),d)),p=F(()=>e.modelValue?hc(e.modelValue,d):h.value),v=ue(p.value||Xa()),g=F(()=>Mpe(v.value,{dayStartOfWeek:r.value,isWeek:i.value}));function y(M){v.value=M,t("panelChange",M.toDate())}function S(M){h.value=M,t("change",M.toDate()),t("update:modelValue",M.toDate()),y(M)}function k(M,$=!1){$||S(M)}let w="";c.value==="month"?w=l("calendar.formatMonth"):c.value==="year"&&(w=l("calendar.formatYear"));function x(M,$){M==="prev"&&(v.value=Xs.subtract(v.value,1,$)),M==="next"&&(v.value=Xs.add(v.value,1,$)),t("panelChange",v.value.toDate())}function E(M){const $=Xs.set(v.value,"year",M);v.value=$,t("panelChange",$.toDate())}function _(M){const $=Xs.set(v.value,"month",M-1);v.value=$,t("panelChange",$.toDate())}function T(M){s.value=M}const D=F(()=>[a,c.value==="month"?`${a}-mode-month`:`${a}-mode-year`,{[`${a}-panel`]:e.panel&&(c.value==="month"||c.value==="year")}]),P=e.panel?{width:e.panelWidth}:{};return()=>O("div",Ft({class:D.value,style:P},rMe(e)),[O(SMe,{move:S,headerValueFormat:w,modes:e.modes,mode:c.value,pageShowData:v.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:T,onYearChange:E,onMonthChange:_,changePageShowDate:x},{default:n.header}),c.value==="month"&&O("div",{class:`${a}-body`},[O(Ope,{key:v.value.month(),pageData:g.value,value:p.value,mode:c.value,selectHandler:k,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:v.value},{default:n.default})]),c.value==="year"&&O("div",{class:`${a}-body`},[O(sMe,{key:v.value.year(),pageData:g.value,pageShowData:v.value,mode:c.value,isWeek:e.isWeek,value:p.value,dayStartOfWeek:e.dayStartOfWeek,selectHandler:k},null)]),e.panel&&e.panelTodayBtn&&O("div",{class:`${a}-footer-btn-wrapper`},[l("today")])])}});const Vpe=Object.assign(oR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+oR.name,oR)}}),kH=Symbol("ArcoCard");var sR=xe({name:"Card",components:{Spin:Pd},props:{bordered:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{type:String},headerStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({})},title:{type:String},extra:{type:String}},setup(e,{slots:t}){const n=Me("card"),{size:r}=tn(e),{mergedSize:i}=Aa(r),a=F(()=>i.value==="small"||i.value==="mini"?"small":"medium"),s=d=>{const h=yf(d);return O("div",{class:`${n}-actions`},[O("div",{class:`${n}-actions-right`},[h.map((p,v)=>O("span",{key:`action-${v}`,class:`${n}-actions-item`},[p]))])])},l=Wt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});oi(kH,l);const c=F(()=>[n,`${n}-size-${a.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:l.hasGrid}]);return()=>{var d,h,p,v,g,y,S;const k=!!((d=t.title)!=null?d:e.title),w=!!((h=t.extra)!=null?h:e.extra);return O("div",{class:c.value},[(k||w)&&O("div",{class:[`${n}-header`,{[`${n}-header-no-title`]:!k}],style:e.headerStyle},[k&&O("div",{class:`${n}-header-title`},[(v=(p=t.title)==null?void 0:p.call(t))!=null?v:e.title]),w&&O("div",{class:`${n}-header-extra`},[(y=(g=t.extra)==null?void 0:g.call(t))!=null?y:e.extra])]),t.cover&&O("div",{class:`${n}-cover`},[t.cover()]),O("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?O(Pd,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),xC=xe({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Me("card-meta"),r=Pn(kH);return fn(()=>{r&&(r.hasMeta=!0)}),()=>{var i,a,s,l,c,d;const h=!!((i=t.title)!=null?i:e.title),p=!!((a=t.description)!=null?a:e.description);return O("div",{class:n},[(h||p)&&O("div",{class:`${n}-content`},[h&&O("div",{class:`${n}-title`},[(l=(s=t.title)==null?void 0:s.call(t))!=null?l:e.title]),p&&O("div",{class:`${n}-description`},[(d=(c=t.description)==null?void 0:c.call(t))!=null?d:e.description])]),(t.avatar||r?.slots.actions)&&O("div",{class:[`${n}-footer `,{[`${n}-footer-only-actions`]:!t.avatar}]},[t.avatar&&O("div",{class:`${n}-avatar`},[t.avatar()]),r&&r.slots.actions&&r.renderActions(r.slots.actions())])])}}});const wMe=xe({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Me("card-grid"),n=Pn(kH);return fn(()=>{n&&(n.hasGrid=!0)}),{cls:F(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function xMe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.cls)},[mt(e.$slots,"default")],2)}var CC=Ue(wMe,[["render",xMe]]);const CMe=Object.assign(sR,{Meta:xC,Grid:CC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+sR.name,sR),e.component(n+xC.name,xC),e.component(n+CC.name,CC)}}),EMe=xe({name:"Indicator",props:{count:{type:Number,default:2},activeIndex:{type:Number,default:0},type:{type:String,default:"line"},position:{type:String,default:"bottom"},trigger:{type:String,default:"click"}},emits:["select"],setup(e,{emit:t}){const n=Me("carousel-indicator"),r=l=>{var c;if(l.preventDefault(),e.type==="slider"){const d=l.offsetX,h=l.currentTarget.clientWidth;if(l.target===l.currentTarget){const p=Math.floor(d/h*e.count);p!==e.activeIndex&&t("select",p)}}else{const d=Number.parseInt((c=l.target.getAttribute("data-index"))!=null?c:"",10);!Number.isNaN(d)&&d!==e.activeIndex&&t("select",d)}},i=F(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=F(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=F(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:i,cls:a,sliderStyle:s}}}),TMe=["data-index"];function AMe(e,t,n,r,i,a){return z(),X("div",Ft({class:e.cls},e.eventHandlers),[e.type==="slider"?(z(),X("span",{key:0,style:qe(e.sliderStyle),class:fe([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(z(!0),X(Pt,{key:1},cn(Array(e.count),(s,l)=>(z(),X("span",{key:l,"data-index":l,class:fe([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,TMe))),128))],16)}var IMe=Ue(EMe,[["render",AMe]]);const LMe=xe({name:"IconUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DMe=["stroke-width","stroke-linecap","stroke-linejoin"];function PMe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1)]),14,DMe)}var aR=Ue(LMe,[["render",PMe]]);const nS=Object.assign(aR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aR.name,aR)}}),RMe=xe({name:"Arrow",components:{IconUp:nS,IconDown:Qh,IconLeft:Il,IconRight:Hi},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=Me("carousel"),r=s=>{t("previousClick",s)},i=s=>{t("nextClick",s)},a=F(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:i}}});function MMe(e,t,n,r,i,a){const s=Ee("IconLeft"),l=Ee("IconUp"),c=Ee("IconRight"),d=Ee("IconDown");return z(),X("div",{class:fe(e.cls)},[I("div",{class:fe(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(z(),Ze(s,{key:0})):(z(),Ze(l,{key:1}))],2),I("div",{class:fe(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(z(),Ze(c,{key:0})):(z(),Ze(d,{key:1}))],2)],2)}var OMe=Ue(RMe,[["render",MMe]]);const zpe=Symbol("ArcoCarousel"),rS=e=>{const t={},n=ue([]),r=()=>{if(t.value){const i=upe(t.value,e);(i.length!==n.value.length||i.toString()!==n.value.toString())&&(n.value=i)}};return fn(()=>r()),tl(()=>r()),{children:t,components:n}},wre={interval:3e3,hoverToPause:!0};function lR(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var uR=xe({name:"Carousel",props:{current:{type:Number},defaultCurrent:{type:Number,default:1},autoPlay:{type:[Boolean,Object],default:!1},moveSpeed:{type:Number,default:500},animationName:{type:String,default:"slide"},trigger:{type:String,default:"click"},direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"},arrowClass:{type:String,default:""},indicatorType:{type:String,default:"dot"},indicatorPosition:{type:String,default:"bottom"},indicatorClass:{type:String,default:""},transitionTimingFunction:{type:String,default:"cubic-bezier(0.34, 0.69, 0.1, 1)"}},emits:{"update:current":e=>!0,change:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{current:r,animationName:i,moveSpeed:a,transitionTimingFunction:s}=tn(e),l=Me("carousel"),c=ue(!1),d=ue(),h=ue(),p=F(()=>gr(e.autoPlay)?{...wre,...e.autoPlay}:e.autoPlay?wre:{});let v=0,g=0;const{children:y,components:S}=rS("CarouselItem"),k=ue(e.defaultCurrent-1),w=F(()=>{const U=S.value.length,W=et(r.value)?lR(r.value-1,U):k.value,K=lR(W-1,U),oe=lR(W+1,U);return{mergedIndex:W,mergedPrevIndex:K,mergedNextIndex:oe}}),x=Wt({items:S,slideTo:_,mergedIndexes:w,previousIndex:d,animationName:i,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});oi(zpe,x);const E=()=>{v&&window.clearInterval(v)};$s(()=>{var U;const{interval:W}=p.value||{},{mergedNextIndex:K}=w.value,oe=((U=S.value)==null?void 0:U.length)>1&&!c.value&&!!W;E(),oe&&(v=window.setInterval(()=>{_({targetIndex:K})},W))}),_o(()=>{E()});function _({targetIndex:U,isNegative:W=!1,isManual:K=!1}){!g&&U!==w.value.mergedIndex&&(d.value=k.value,k.value=U,h.value=W?"negative":"positive",g=window.setTimeout(()=>{g=0},a.value),t("update:current",k.value+1),t("change",k.value+1,d.value+1,K))}const T=()=>_({targetIndex:w.value.mergedPrevIndex,isNegative:!0,isManual:!0}),D=()=>_({targetIndex:w.value.mergedNextIndex,isManual:!0}),P=U=>_({targetIndex:U,isNegative:Up.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),$=F(()=>e.indicatorType!=="never"&&S.value.length>1),L=F(()=>e.showArrow!=="never"&&S.value.length>1),B=F(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),j=F(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),H=F(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var U;return y.value=(U=n.default)==null?void 0:U.call(n),O("div",Ft({class:B.value},M.value),[O("div",{class:j.value},[y.value]),$.value&&O("div",{class:H.value},[O(IMe,{class:e.indicatorClass,type:e.indicatorType,count:S.value.length,activeIndex:w.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:P},null)]),L.value&&O(OMe,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:T,onNextClick:D},null)])}}});const $Me=xe({name:"CarouselItem",setup(){const e=Me("carousel-item"),t=So(),n=Pn(zpe,{}),r=F(()=>{var l,c,d;return(d=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?d:-1}),i=F(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=F(()=>{const{previousIndex:l,animationName:c,slideDirection:d,mergedIndexes:h}=n;return{[`${e}-prev`]:r.value===h?.mergedPrevIndex,[`${e}-next`]:r.value===h?.mergedNextIndex,[`${e}-current`]:i.value,[`${e}-slide-in`]:c==="slide"&&d&&i.value,[`${e}-slide-out`]:c==="slide"&&d&&r.value===l}}),s=F(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:i}}}),BMe=["aria-hidden"];function NMe(e,t,n,r,i,a){return z(),X("div",{"aria-hidden":!e.isCurrent,class:fe(e.cls),style:qe(e.animationStyle)},[mt(e.$slots,"default")],14,BMe)}var EC=Ue($Me,[["render",NMe]]);const FMe=Object.assign(uR,{Item:EC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+uR.name,uR),e.component(n+EC.name,EC)}}),Upe=(e,{optionMap:t,leafOptionMap:n,leafOptionSet:r,leafOptionValueMap:i,totalLevel:a,checkStrictly:s,enabledLazyLoad:l,lazyLoadOptions:c,valueKey:d,fieldNames:h})=>{let p=0;const v=(y,S,k)=>{var w;const x=(w=S?.path)!=null?w:[];return p=Math.max(p,k??1),y.map((E,_)=>{var T;const D=E[h.value],P={raw:E,value:D,label:(T=E[h.label])!=null?T:String(D),disabled:!!E[h.disabled],selectionDisabled:!1,render:E[h.render],tagProps:E[h.tagProps],isLeaf:E[h.isLeaf],level:x.length,index:_,key:"",valueKey:String(gr(D)?D[d.value]:D),parent:S,path:[],pathValue:[]},M=x.concat(P),$=[],L=M.map(B=>($.push(B.value),B.valueKey)).join("-");return P.path=M,P.pathValue=$,P.key=L,E[h.children]?(P.isLeaf=!1,P.children=v(E[h.children],P,(k??1)+1)):l&&!P.isLeaf?(P.isLeaf=!1,c[L]&&(P.children=v(c[L],P,(k??1)+1))):P.isLeaf=!0,P.children&&!P.disabled&&(P.totalLeafOptions=P.children.reduce((B,j)=>et(j.totalLeafOptions)?B+j.totalLeafOptions:j.disabled||j.selectionDisabled?B:B+(j.isLeaf?1:0),0),P.totalLeafOptions===0&&!s.value&&(P.selectionDisabled=!0)),t.set(P.key,P),(P.isLeaf||s.value)&&(r.add(P),n.set(P.key,P),i.has(P.valueKey)||i.set(P.valueKey,P.key)),P})},g=v(e);return a.value=p,g},wH=(e,t)=>{var n,r;let i=!1,a=!1;if(e.isLeaf)t?.has(e.key)&&(i=!0);else{const s=new RegExp(`^${e.key}(-|$)`),l=Array.from((n=t?.keys())!=null?n:[]).reduce((c,d)=>s.test(d)?c+1:c,0);l>0&&l>=((r=e.totalLeafOptions)!=null?r:1)?i=!0:l>0&&(a=!0)}return{checked:i,indeterminate:a}},xH=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...xH(n));return t},CH=e=>{const t=[];if(e.disabled||e.selectionDisabled)return t;if(e.isLeaf)t.push(e);else if(e.children)for(const n of e.children)t.push(...CH(n));return t},Hpe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(nr(e))return e.map(a=>gr(a)?a[t]:a).join("-");const i=gr(e)?e[t]:e;return(r=n.get(String(i)))!=null?r:String(i)},Wpe=(e,{multiple:t,pathMode:n})=>nr(e)?n&&!t&&e.length>0&&!nr(e[0])?[e]:e:wn(e)||Al(e)||e===""?[]:[e],Gpe=e=>e.path.map(t=>t.label).join(" / "),EH=Symbol("ArcoCascader");var rV=xe({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Me("cascader-option"),n=Pn(EH,{}),r=ue(!1),i={},a=h=>{var p;if(Sn(n.loadMore)&&!e.option.isLeaf){const{isLeaf:v,children:g,key:y}=e.option;!v&&!g&&(r.value=!0,new Promise(S=>{var k;(k=n.loadMore)==null||k.call(n,e.option.raw,S)}).then(S=>{var k;r.value=!1,S&&((k=n.addLazyLoadOptions)==null||k.call(n,S,y))}))}(p=n.setSelectedPath)==null||p.call(n,e.option.key)};e.option.disabled||(i.onMouseenter=[()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n,e.option.key)}],i.onMouseleave=()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n)},i.onClick=[],n.expandTrigger==="hover"?i.onMouseenter.push(h=>a()):i.onClick.push(h=>a()),e.option.isLeaf&&!e.multiple&&i.onClick.push(h=>{var p;a(),(p=n.onClickOption)==null||p.call(n,e.option)}));const s=F(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=F(()=>{var h;return e.checkStrictly?{checked:(h=n.valueMap)==null?void 0:h.has(e.option.key),indeterminate:!1}:wH(e.option,n.valueMap)}),c=()=>{var h,p,v;return e.pathLabel?(p=(h=n?.formatLabel)==null?void 0:h.call(n,e.option.path.map(g=>g.raw)))!=null?p:Gpe(e.option):(v=n.slots)!=null&&v.option?n.slots.option({data:e.option}):Sn(e.option.render)?e.option.render():e.option.label},d=()=>r.value?O(Ja,null,null):!e.searchOption&&!e.option.isLeaf?O(Hi,null,null):null;return()=>{var h;return O("li",Ft({tabindex:"0",role:"menuitem","aria-disabled":e.option.disabled,"aria-haspopup":!e.option.isLeaf,"aria-expanded":!e.option.isLeaf&&e.active,title:e.option.label,class:s.value},i),[e.multiple&&O(Wc,{modelValue:l.value.checked,indeterminate:l.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(p,v)=>{var g;v.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!l.value.checked)},onClick:p=>p.stopPropagation()},null),e.checkStrictly&&!e.multiple&&O($m,{modelValue:(h=n.valueMap)==null?void 0:h.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(p,v)=>{var g;v.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!0)},onClick:p=>p.stopPropagation()},null),O("div",{class:`${t}-label`},[c(),d()])])}}}),jMe=xe({name:"CascaderColumn",props:{column:{type:Array,required:!0},level:{type:Number,default:0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Me("cascader"),r=Pn(Za,void 0),i=ue(),a=ue(!!e.virtualListProps),s=()=>{var l,c,d,h,p;return(p=(h=(l=t.empty)==null?void 0:l.call(t))!=null?h:(d=r==null?void 0:(c=r.slots).empty)==null?void 0:d.call(c,{component:"cascader"}))!=null?p:O(Jh,null,null)};return()=>{var l;return O("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?O(Rd,{class:`${n}-column-content`},{default:()=>[O("div",{class:`${n}-list-empty`},[s()])]}):a.value?O(c3,Ft({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:i,data:e.column}),{item:({item:c})=>O(rV,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):O(Rd,{class:`${n}-column-content`},{default:()=>[O("ul",{role:"menu",class:[`${n}-list`,{[`${n}-list-multiple`]:!!e?.multiple,[`${n}-list-strictly`]:!!e?.checkStrictly}]},[e.column.map(c=>O(rV,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function VMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var Kpe=xe({name:"BaseCascaderPanel",props:{displayColumns:{type:Array,required:!0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,loading:Boolean,dropdown:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Me("cascader"),r=Pn(Za,void 0),i=()=>{var s,l,c,d,h;return(h=(d=(s=t.empty)==null?void 0:s.call(t))!=null?d:(c=r==null?void 0:(l=r.slots).empty)==null?void 0:c.call(l,{component:"cascader"}))!=null?h:O(Jh,null,null)},a=()=>e.loading?O("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[O(Pd,null,null)]):e.displayColumns.length===0?O("div",{key:"panel-column-empty",class:`${n}-panel-column`},[O("div",{class:`${n}-list-empty`},[i()])]):e.displayColumns.map((s,l)=>O(jMe,{key:`column-${l}`,column:s,level:l,selectedPath:e.selectedPath,activeKey:e.activeKey,totalLevel:e.totalLevel,multiple:e.multiple,checkStrictly:e.checkStrictly,virtualListProps:e.virtualListProps},{empty:t.empty}));return()=>{let s;return O(o3,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},VMe(s=a())?s:{default:()=>[s]})}}});function zMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var UMe=xe({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Me("cascader"),r=Pn(Za,void 0),i=()=>{var a,s,l,c,d;return e.loading?O(Pd,null,null):e.options.length===0?O("div",{class:`${n}-list-empty`},[(d=(c=(a=t.empty)==null?void 0:a.call(t))!=null?c:(l=r==null?void 0:(s=r.slots).empty)==null?void 0:l.call(s,{component:"cascader"}))!=null?d:O(Jh,null,null)]):O("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>O(rV,{key:h.key,class:`${n}-search-option`,option:h,active:h.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly,pathLabel:e.pathLabel,searchOption:!0},null))])};return()=>{let a;return O(Rd,{class:[`${n}-panel`,`${n}-search-panel`]},zMe(a=i())?a:{default:()=>[a]})}}});const qpe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:i})=>{const a=ue(),s=F(()=>{if(a.value)return t.get(a.value)}),l=ue([]),c=F(()=>{const y=[e.value];for(const S of l.value){const k=t.get(S);k?.children&&y.push(k.children)}return y}),d=y=>{var S;const k=v(y);l.value=(S=k?.path.map(w=>w.key))!=null?S:[]},h=y=>{a.value=y},p=F(()=>{var y;return r?.value?n.value.filter(S=>!S.disabled):s.value&&s.value.parent?(y=s.value.parent.children)==null?void 0:y.filter(S=>!S.disabled):e.value.filter(S=>!S.disabled)}),v=y=>{let S=y?t.get(y):void 0;if(i.value)for(;S&&S.children&&S.children.length>0;)S=S.children[0];return S};return{activeKey:a,activeOption:s,selectedPath:l,displayColumns:c,setActiveKey:h,setSelectedPath:d,getNextActiveNode:y=>{var S,k,w,x,E,_,T;const D=(k=(S=p.value)==null?void 0:S.length)!=null?k:0;if(a.value){const P=(x=(w=p.value)==null?void 0:w.findIndex(M=>M.key===a.value))!=null?x:0;return y==="next"?(E=p.value)==null?void 0:E[(D+P+1)%D]:(_=p.value)==null?void 0:_[(D+P-1)%D]}return(T=p.value)==null?void 0:T[0]}}},HMe=xe({name:"Cascader",components:{Trigger:va,SelectView:K8,BaseCascaderPanel:Kpe,CascaderSearchPanel:UMe},inheritAttrs:!1,props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{type:String},allowSearch:{type:Boolean,default:e=>!!e.multiple},allowClear:{type:Boolean,default:!1},inputValue:{type:String,default:void 0},defaultInputValue:{type:String,default:""},popupVisible:{type:Boolean,default:void 0},expandTrigger:{type:String,default:"click"},defaultPopupVisible:{type:Boolean,default:!1},placeholder:String,filterOption:{type:Function},popupContainer:{type:[String,Object]},maxTagCount:{type:Number,default:0},formatLabel:{type:Function},triggerProps:{type:Object},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{type:Number,default:500},fieldNames:{type:Object},valueKey:{type:String,default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},virtualListProps:{type:Object},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,clear:()=>!0,search:e=>!0,popupVisibleChange:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:i,loadMore:a,formatLabel:s,modelValue:l,disabled:c,valueKey:d,expandTrigger:h,expandChild:p,pathMode:v,multiple:g}=tn(e),y=ue(e.defaultValue),S=ue(e.defaultInputValue),k=ue(e.defaultPopupVisible),{mergedDisabled:w,eventHandlers:x}=Do({disabled:c});It(l,ft=>{(wn(ft)||Al(ft))&&(y.value=e.multiple?[]:void 0)});const E=ue([]),_=ue(1),T=Wt(new Map),D=Wt(new Map),P=Wt(new Map),M=Wt(new Set),$=Wt({}),L=(ft,ct)=>{$[ct]=ft},B={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},j=F(()=>({...B,...e.fieldNames}));It([r,$,j],([ft,ct,Ct])=>{T.clear(),D.clear(),P.clear(),M.clear(),E.value=Upe(ft??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:$,optionMap:T,leafOptionSet:M,leafOptionMap:D,leafOptionValueMap:P,totalLevel:_,checkStrictly:i,valueKey:d,fieldNames:Ct})},{immediate:!0,deep:!0});const H=F(()=>{var ft;const ct=Wpe((ft=e.modelValue)!=null?ft:y.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(ct.map(Ct=>[Hpe(Ct,{valueKey:e.valueKey,leafOptionValueMap:P}),Ct]))}),U=F(()=>{var ft;return(ft=e.inputValue)!=null?ft:S.value}),W=F(()=>{var ft;return(ft=e.popupVisible)!=null?ft:k.value}),K=ft=>{var ct;return ft?.toLocaleLowerCase().includes((ct=U.value)==null?void 0:ct.toLocaleLowerCase())},oe=F(()=>(e.checkStrictly?Array.from(T.values()):Array.from(M)).filter(ct=>{var Ct;return Sn(e.filterOption)?e.filterOption(U.value,ct.raw):e.checkStrictly?K(ct.label):(Ct=ct.path)==null?void 0:Ct.find(xt=>K(xt.label))})),ae=ft=>{var ct,Ct,xt;const Rt=e.multiple?ft:(ct=ft[0])!=null?ct:"";ft.length===0&&(Be(),ge()),y.value=Rt,t("update:modelValue",Rt),t("change",Rt),(xt=(Ct=x.value)==null?void 0:Ct.onChange)==null||xt.call(Ct)};It([g,v],()=>{const ft=[];H.value.forEach((ct,Ct)=>{const xt=D.get(Ct);xt&&ft.push(v.value?xt.pathValue:xt.value)}),ae(ft)});const ee=ft=>{W.value!==ft&&(k.value=ft,t("popupVisibleChange",ft))},Y=ft=>{if(e.multiple){const ct=D.get(ft);if(ct)ie(ct,!1);else{const Ct=[];H.value.forEach((xt,Rt)=>{Rt!==ft&&Ct.push(xt)}),ae(Ct)}}},Q=ft=>{ae([e.pathMode?ft.pathValue:ft.value]),ee(!1)},ie=(ft,ct)=>{if(ct){const Ct=e.checkStrictly?[ft]:CH(ft);ae([...H.value.values(),...Ct.filter(xt=>!H.value.has(xt.key)).map(xt=>e.pathMode?xt.pathValue:xt.value)])}else{const Ct=e.checkStrictly?[ft.key]:xH(ft),xt=[];H.value.forEach((Rt,Ht)=>{Ct.includes(Ht)||xt.push(Rt)}),ae(xt)}Se("","optionChecked")},q=(ft,ct)=>{e.multiple?ie(ft,ct??!0):Q(ft)},te=o_(ft=>{t("search",ft)},e.searchDelay),Se=(ft,ct)=>{ft!==U.value&&(ct==="manual"&&!W.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=ft,t("inputValueChange",ft),e.allowSearch&&te(ft))};It(W,ft=>{if(ft){if(H.value.size>0){const ct=Array.from(H.value.keys()),Ct=ct[ct.length-1],xt=D.get(Ct);xt&&xt.key!==nt.value&&(Be(xt.key),ge(xt.key))}}else H.value.size===0&&(Be(),ge()),Se("","optionListHide")});const Fe=ft=>{if(ft.stopPropagation(),e.multiple){const ct=[];H.value.forEach((Ct,xt)=>{const Rt=D.get(xt);Rt?.disabled&&ct.push(e.pathMode?Rt.pathValue:Rt.value)}),ae(ct)}else ae([]);Se("","manual"),t("clear")},ve=F(()=>e.allowSearch&&U.value.length>0),Re=ft=>{t("focus",ft)},Ge=ft=>{t("blur",ft)},{activeKey:nt,activeOption:Ie,selectedPath:_e,displayColumns:me,setActiveKey:ge,setSelectedPath:Be,getNextActiveNode:Ye}=qpe(E,{optionMap:T,filteredLeafOptions:oe,showSearchPanel:ve,expandChild:p});oi(EH,Wt({onClickOption:q,setActiveKey:ge,setSelectedPath:Be,loadMore:a,expandTrigger:h,addLazyLoadOptions:L,formatLabel:s,slots:n,valueMap:H}));const Ke=z5(new Map([[Wo.ENTER,ft=>{if(W.value){if(Ie.value){let ct;e.checkStrictly||Ie.value.isLeaf?ct=!H.value.has(Ie.value.key):ct=!wH(Ie.value,H.value).checked,Be(Ie.value.key),q(Ie.value,ct)}}else ee(!0)}],[Wo.ESC,ft=>{ee(!1)}],[Wo.ARROW_DOWN,ft=>{ft.preventDefault();const ct=Ye("next");ge(ct?.key)}],[Wo.ARROW_UP,ft=>{ft.preventDefault();const ct=Ye("preview");ge(ct?.key)}],[Wo.ARROW_RIGHT,ft=>{var ct,Ct;ve.value||(ft.preventDefault(),(ct=Ie.value)!=null&&ct.children&&(Be(Ie.value.key),ge((Ct=Ie.value.children[0])==null?void 0:Ct.key)))}],[Wo.ARROW_LEFT,ft=>{var ct;ve.value||(ft.preventDefault(),(ct=Ie.value)!=null&&ct.parent&&(Be(Ie.value.parent.key),ge(Ie.value.parent.key)))}]])),at=F(()=>{const ft=[];return H.value.forEach((ct,Ct)=>{var xt,Rt;const Ht=D.get(Ct);if(Ht)ft.push({value:Ct,label:(Rt=(xt=e.formatLabel)==null?void 0:xt.call(e,Ht.path.map(Jt=>Jt.raw)))!=null?Rt:Gpe(Ht),closable:!Ht.disabled,tagProps:Ht.tagProps});else if(e.fallback){const Jt=Sn(e.fallback)?e.fallback(ct):nr(ct)?ct.join(" / "):String(ct);ft.push({value:Ct,label:Jt,closable:!0})}}),ft});return{optionInfos:E,filteredLeafOptions:oe,selectedPath:_e,activeKey:nt,displayColumns:me,computedInputValue:U,computedPopupVisible:W,handleClear:Fe,selectViewValue:at,handleInputValueChange:Se,showSearchPanel:ve,handlePopupVisibleChange:ee,handleFocus:Re,handleBlur:Ge,handleRemove:Y,mergedDisabled:w,handleKeyDown:Ke,totalLevel:_}}});function WMe(e,t,n,r,i,a){const s=Ee("select-view"),l=Ee("cascader-search-panel"),c=Ee("base-cascader-panel"),d=Ee("trigger");return z(),Ze(d,Ft(e.triggerProps,{trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","popup-visible":e.computedPopupVisible,position:"bl",disabled:e.mergedDisabled,"popup-offset":4,"auto-fit-popup-width":e.showSearchPanel,"popup-container":e.popupContainer,"prevent-focus":!0,"click-to-close":!e.allowSearch,onPopupVisibleChange:e.handlePopupVisibleChange}),{content:ce(()=>[e.showSearchPanel?(z(),Ze(l,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},yo({_:2},[e.$slots.empty?{name:"empty",fn:ce(()=>[mt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(z(),Ze(c,{key:1,"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,loading:e.loading,"virtual-list-props":e.virtualListProps,dropdown:""},yo({_:2},[e.$slots.empty?{name:"empty",fn:ce(()=>[mt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","loading","virtual-list-props"]))]),default:ce(()=>[O(s,Ft({"model-value":e.selectViewValue,"input-value":e.computedInputValue,disabled:e.mergedDisabled,error:e.error,multiple:e.multiple,"allow-clear":e.allowClear,"allow-search":e.allowSearch,size:e.size,opened:e.computedPopupVisible,placeholder:e.placeholder,loading:e.loading,"max-tag-count":e.maxTagCount,"tag-nowrap":e.tagNowrap},e.$attrs,{onInputValueChange:e.handleInputValueChange,onClear:e.handleClear,onFocus:e.handleFocus,onBlur:e.handleBlur,onRemove:e.handleRemove,onKeydown:e.handleKeyDown}),yo({_:2},[e.$slots.label?{name:"label",fn:ce(h=>[mt(e.$slots,"label",qi(wa(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:ce(()=>[mt(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:ce(()=>[mt(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:ce(()=>[mt(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:ce(()=>[mt(e.$slots,"search-icon")]),key:"4"}:void 0]),1040,["model-value","input-value","disabled","error","multiple","allow-clear","allow-search","size","opened","placeholder","loading","max-tag-count","tag-nowrap","onInputValueChange","onClear","onFocus","onBlur","onRemove","onKeydown"])]),_:3},16,["popup-visible","disabled","auto-fit-popup-width","popup-container","click-to-close","onPopupVisibleChange"])}var cR=Ue(HMe,[["render",WMe]]);const GMe=xe({name:"CascaderPanel",components:{BaseCascaderPanel:Kpe},props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},fieldNames:{type:Object},valueKey:{type:String,default:"value"},expandChild:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:i,loadMore:a,modelValue:s,valueKey:l,expandChild:c,expandTrigger:d}=tn(e),h=ue(e.defaultValue);It(s,ee=>{(wn(ee)||Al(ee))&&(h.value=e.multiple?[]:void 0)});const p=ue([]),v=ue(1),g=Wt(new Map),y=Wt(new Map),S=Wt(new Map),k=Wt(new Set),w=Wt({}),x=(ee,Y)=>{w[Y]=ee},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=F(()=>({...E,...e.fieldNames}));It([r,w,_],([ee,Y,Q])=>{g.clear(),y.clear(),S.clear(),k.clear(),p.value=Upe(ee??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:Y,optionMap:g,leafOptionSet:k,leafOptionMap:y,leafOptionValueMap:S,totalLevel:v,checkStrictly:i,fieldNames:Q,valueKey:l})},{immediate:!0});const T=F(()=>{var ee;const Y=Wpe((ee=e.modelValue)!=null?ee:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(Y.map(Q=>[Hpe(Q,{valueKey:e.valueKey,leafOptionValueMap:S}),Q]))}),D=F(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),P=ee=>{var Y;const Q=e.multiple?ee:(Y=ee[0])!=null?Y:"";ee.length===0&&(K(),W()),h.value=Q,t("update:modelValue",Q),t("change",Q)},M=ee=>{P([e.pathMode?ee.pathValue:ee.value])},$=(ee,Y)=>{if(Y){const Q=e.checkStrictly?[ee]:CH(ee);P([...T.value.values(),...Q.filter(ie=>!T.value.has(ie.key)).map(ie=>e.pathMode?ie.pathValue:ie.value)])}else{const Q=e.checkStrictly?[ee.key]:xH(ee),ie=[];T.value.forEach((q,te)=>{Q.includes(te)||ie.push(q)}),P(ie)}},L=(ee,Y)=>{e.multiple?$(ee,Y??!0):M(ee)},{activeKey:B,activeOption:j,selectedPath:H,displayColumns:U,setActiveKey:W,setSelectedPath:K,getNextActiveNode:oe}=qpe(p,{optionMap:g,filteredLeafOptions:D,expandChild:c});oi(EH,Wt({onClickOption:L,setActiveKey:W,setSelectedPath:K,loadMore:a,addLazyLoadOptions:x,slots:n,valueMap:T,expandTrigger:d}));const ae=z5(new Map([[Wo.ENTER,ee=>{if(j.value){let Y;e.checkStrictly||j.value.isLeaf?Y=!T.value.has(j.value.key):Y=!wH(j.value,T.value).checked,K(j.value.key),L(j.value,Y)}}],[Wo.ARROW_DOWN,ee=>{ee.preventDefault();const Y=oe("next");W(Y?.key)}],[Wo.ARROW_UP,ee=>{ee.preventDefault();const Y=oe("preview");W(Y?.key)}],[Wo.ARROW_RIGHT,ee=>{var Y,Q;ee.preventDefault(),(Y=j.value)!=null&&Y.children&&(K(j.value.key),W((Q=j.value.children[0])==null?void 0:Q.key))}],[Wo.ARROW_LEFT,ee=>{var Y;ee.preventDefault(),(Y=j.value)!=null&&Y.parent&&(K(j.value.parent.key),W(j.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:D,selectedPath:H,activeKey:B,displayColumns:U,handleKeyDown:ae,totalLevel:v}}});function KMe(e,t,n,r,i,a){const s=Ee("base-cascader-panel");return z(),Ze(s,{"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,onKeydown:e.handleKeyDown},yo({_:2},[e.$slots.empty?{name:"empty",fn:ce(()=>[mt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var TC=Ue(GMe,[["render",KMe]]);const qMe=Object.assign(cR,{CascaderPanel:TC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+cR.name,cR),e.component(n+TC.name,TC)}}),Ype=Symbol("collapseCtx"),YMe=xe({name:"Collapse",props:{activeKey:{type:Array,default:void 0},defaultActiveKey:{type:Array,default:()=>[]},accordion:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:void 0},expandIconPosition:{type:String,default:"left"},bordered:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},emits:{"update:activeKey":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{expandIconPosition:r,destroyOnHide:i,showExpandIcon:a}=tn(e),s=Me("collapse"),l=ue(e.defaultActiveKey),c=F(()=>{var p;const v=(p=e.activeKey)!=null?p:l.value;return nr(v)?v:[v]});oi(Ype,Wt({activeKeys:c,slots:n,showExpandIcon:a,expandIconPosition:r,destroyOnHide:i,handleClick:(p,v)=>{let g=[];if(e.accordion)c.value.includes(p)||(g=[p]),l.value=g;else{g=[...c.value];const y=g.indexOf(p);y>-1?g.splice(y,1):e.accordion?g=[p]:g.push(p),l.value=g}t("update:activeKey",g),t("change",g,v)}}));const h=F(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function XMe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.cls)},[mt(e.$slots,"default")],2)}var dR=Ue(YMe,[["render",XMe]]);const ZMe=xe({name:"IconCaretRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),JMe=["stroke-width","stroke-linecap","stroke-linejoin"];function QMe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.829 23.063c.6.48.6 1.394 0 1.874L17.949 38.44c-.785.629-1.949.07-1.949-.937V10.497c0-1.007 1.164-1.566 1.95-.937l16.879 13.503Z",fill:"currentColor",stroke:"none"},null,-1)]),14,JMe)}var fR=Ue(ZMe,[["render",QMe]]);const TH=Object.assign(fR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fR.name,fR)}}),e9e=xe({name:"IconCaretLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),t9e=["stroke-width","stroke-linecap","stroke-linejoin"];function n9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z",fill:"currentColor",stroke:"none"},null,-1)]),14,t9e)}var hR=Ue(e9e,[["render",n9e]]);const AH=Object.assign(hR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hR.name,hR)}});var AC=xe({name:"CollapseItem",components:{IconHover:Lo,IconCaretRight:TH,IconCaretLeft:AH},props:{header:String,disabled:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const r=So(),i=Me("collapse-item"),a=Pn(Ype,{}),s=r&&et(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=F(()=>{var _;return(_=a.activeKeys)==null?void 0:_.includes(s)}),c=F(()=>a.destroyOnHide||e.destroyOnHide),d=F(()=>{var _;return(_=a?.showExpandIcon)!=null?_:e.showExpandIcon}),h=ue(c.value?l.value:!0),p=F(()=>{var _;return(_=a?.expandIconPosition)!=null?_:"left"}),v=_=>{var T;e.disabled||(T=a.handleClick)==null||T.call(a,s,_)};It(l,_=>{_&&!h.value&&(h.value=!0)});const g={onEnter:_=>{_.style.height=`${_.scrollHeight}px`},onAfterEnter:_=>{_.style.height="auto"},onBeforeLeave:_=>{_.style.height=`${_.scrollHeight}px`},onLeave:_=>{_.style.height="0"},onAfterLeave:()=>{c.value&&(h.value=!1)}},y=F(()=>[i,{[`${i}-active`]:l.value}]),S=F(()=>[`${i}-header`,`${i}-header-${a?.expandIconPosition}`,{[`${i}-header-disabled`]:e.disabled}]),k=F(()=>[{[`${i}-icon-right`]:a?.expandIconPosition==="right"}]),w=F(()=>[`${i}-content`,{[`${i}-content-expend`]:l.value}]),x=()=>p.value==="right"?O(Ee("icon-caret-left"),{class:`${i}-expand-icon`},null):O(Ee("icon-caret-right"),{class:`${i}-expand-icon`},null),E=()=>d.value&&O(Ee("icon-hover"),{prefix:i,class:k.value,disabled:e.disabled},{default:()=>{var _,T,D,P;return[(P=(D=(T=t["expand-icon"])!=null?T:(_=a?.slots)==null?void 0:_["expand-icon"])==null?void 0:D({active:l.value,disabled:e.disabled,position:p.value}))!=null?P:x()]}});return()=>{var _,T,D;return O("div",{class:y.value},[O("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:S.value,onClick:v},[E(),O("div",{class:`${i}-header-title`},[(T=(_=t.header)==null?void 0:_.call(t))!=null?T:e.header]),t.extra&&O("div",{class:`${i}-header-extra`},[(D=t.extra)==null?void 0:D.call(t)])]),O(Cs,Ft({name:"collapse-slider"},g),{default:()=>{var P;return[Ci(O("div",{role:"region",class:w.value},[h.value&&O("div",{ref:"contentBoxRef",class:`${i}-content-box`},[(P=t.default)==null?void 0:P.call(t)])]),[[Ko,l.value]])]}})])}}});const r9e=Object.assign(dR,{Item:AC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+dR.name,dR),e.component(n+AC.name,AC)}}),i9e=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Xpe=(e,t,n)=>{const r=Math.floor(e*6),i=e*6-r,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=r%6,d=[n,s,a,a,l,n][c],h=[l,n,n,s,a,a][c],p=[a,a,l,n,n,s][c];return{r:Math.round(d*255),g:Math.round(h*255),b:Math.round(p*255)}},W5=(e,t,n)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),i=Math.min(e,t,n);let a=0;const s=r,l=r-i,c=r===0?0:l/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/l+(tparseInt(e,16),xre=e=>aa(e)/255,u9e=e=>{let t=Jp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=Jp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=Jp.hex8.exec(e),t?{r:aa(t[1]),g:aa(t[2]),b:aa(t[3]),a:xre(t[4])}:(t=Jp.hex6.exec(e),t?{r:aa(t[1]),g:aa(t[2]),b:aa(t[3])}:(t=Jp.hex4.exec(e),t?{r:aa(t[1]+t[1]),g:aa(t[2]+t[2]),b:aa(t[3]+t[3]),a:xre(t[4]+t[4])}:(t=Jp.hex3.exec(e),t?{r:aa(t[1]+t[1]),g:aa(t[2]+t[2]),b:aa(t[3]+t[3])}:!1)))))},c9e=e=>{var t;const n=u9e(e);return n?{...W5(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Zpe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=Jp.hex6.exec(e);return t?{r:aa(t[1]),g:aa(t[2]),b:aa(t[3])}:(t=Jp.hex3.exec(e),t?{r:aa(t[1]+t[1]),g:aa(t[2]+t[2]),b:aa(t[3]+t[3])}:!1)},Cre=(e,t,n)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0")].join("").toUpperCase(),d9e=(e,t,n,r)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0"),Math.round(r*255).toString(16).padStart(2,"0")].join("").toUpperCase(),Jpe=({value:e,onChange:t})=>{const n=ue(!1),r=ue(),i=ue(),a=(h,p)=>h<0?0:h>p?1:h/p,s=h=>{if(!r.value)return;const{clientX:p,clientY:v}=h,g=r.value.getBoundingClientRect(),y=[a(p-g.x,g.width),a(v-g.y,g.height)];(y[0]!==e[0]||y[1]!==e[1])&&t?.(y)},l=()=>{n.value=!1,window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",l),window.removeEventListener("contextmenu",l)},c=h=>{n.value=!0,s(h),window.addEventListener("mousemove",d),window.addEventListener("mouseup",l),window.addEventListener("contextmenu",l)};function d(h){h.preventDefault(),h.buttons>0?s(h):l()}return{active:n,blockRef:r,handlerRef:i,onMouseDown:c}};var Ere=xe({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=Me("color-picker"),n=F(()=>e.color.rgb),{blockRef:r,handlerRef:i,onMouseDown:a}=Jpe({value:[e.x,0],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0])}}),s=()=>O("div",{ref:i,class:`${t}-handler`,style:{left:`${e.x*100}%`,color:e.colorString}},null);return()=>e.type==="alpha"?O("div",{class:`${t}-control-bar-bg`},[O("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-alpha`],style:{background:`linear-gradient(to right, rgba(0, 0, 0, 0), rgb(${n.value.r}, ${n.value.g}, ${n.value.b}))`},onMousedown:a},[s()])]):O("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-hue`],onMousedown:a},[s()])}}),f9e=xe({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Me("color-picker"),n=F(()=>e.color.hsv),{blockRef:r,handlerRef:i,onMouseDown:a}=Jpe({value:[n.value.s,1-n.value.v],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0],1-l[1])}}),s=F(()=>{const l=Xpe(n.value.h,1,1);return`rgb(${l.r}, ${l.g}, ${l.b})`});return()=>O("div",{ref:r,class:`${t}-palette`,style:{backgroundColor:s.value},onMousedown:a},[O("div",{ref:i,class:`${t}-handler`,style:{top:`${(1-n.value.v)*100}%`,left:`${n.value.s*100}%`}},null)])}});function IH(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function wf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function a_(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=wf(e);return t>0?IH(Number(e)*Math.pow(10,t)):Number(e)}function iV(e){e0e&&(e>Number.MAX_SAFE_INTEGER||e["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),y9e=["stroke-width","stroke-linecap","stroke-linejoin"];function b9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38M24 5v38"},null,-1)]),14,y9e)}var pR=Ue(g9e,[["render",b9e]]);const xf=Object.assign(pR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pR.name,pR)}}),_9e=xe({name:"IconMinus",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),S9e=["stroke-width","stroke-linecap","stroke-linejoin"];function k9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38"},null,-1)]),14,S9e)}var vR=Ue(_9e,[["render",k9e]]);const T0=Object.assign(vR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vR.name,vR)}}),w9e=800,x9e=150;Yl.enableBoundaryChecking(!1);var mR=xe({name:"InputNumber",props:{modelValue:Number,defaultValue:Number,mode:{type:String,default:"embed"},precision:Number,step:{type:Number,default:1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},formatter:{type:Function},parser:{type:Function},placeholder:String,hideButton:{type:Boolean,default:!1},size:{type:String},allowClear:{type:Boolean,default:!1},modelEvent:{type:String,default:"change"},readOnly:{type:Boolean,default:!1},inputAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0,clear:e=>!0,input:(e,t,n)=>!0,keydown:e=>!0},setup(e,{emit:t,slots:n}){var r;const{size:i,disabled:a}=tn(e),s=Me("input-number"),l=ue(),{mergedSize:c,mergedDisabled:d,eventHandlers:h}=Do({size:i,disabled:a}),{mergedSize:p}=Aa(c),v=F(()=>{if(et(e.precision)){const Q=`${e.step}`.split(".")[1],ie=Q&&Q.length||0;return Math.max(ie,e.precision)}}),g=Q=>{var ie,q;if(!et(Q))return"";const te=v.value?Q.toFixed(v.value):String(Q);return(q=(ie=e.formatter)==null?void 0:ie.call(e,te))!=null?q:te},y=ue(g((r=e.modelValue)!=null?r:e.defaultValue)),S=F(()=>{var Q,ie;if(!y.value)return;const q=Number((ie=(Q=e.parser)==null?void 0:Q.call(e,y.value))!=null?ie:y.value);return Number.isNaN(q)?void 0:q}),k=ue(et(S.value)&&S.value<=e.min),w=ue(et(S.value)&&S.value>=e.max);let x=0;const E=()=>{x&&(window.clearTimeout(x),x=0)},_=Q=>{if(!wn(Q))return et(e.min)&&Qe.max&&(Q=e.max),et(v.value)?Yl.round(Q,v.value):Q},T=Q=>{let ie=!1,q=!1;et(Q)&&(Q<=e.min&&(ie=!0),Q>=e.max&&(q=!0)),w.value!==q&&(w.value=q),k.value!==ie&&(k.value=ie)},D=()=>{const Q=_(S.value),ie=g(Q);(Q!==S.value||y.value!==ie)&&(y.value=ie),t("update:modelValue",Q)};It(()=>[e.max,e.min],()=>{D(),T(S.value)});const P=(Q,ie)=>{if(d.value||Q==="plus"&&w.value||Q==="minus"&&k.value)return;let q;et(S.value)?q=_(Yl[Q](S.value,e.step)):q=e.min===-1/0?0:e.min,y.value=g(q),T(q),t("update:modelValue",q),t("change",q,ie)},M=(Q,ie,q=!1)=>{var te;Q.preventDefault(),!e.readOnly&&((te=l.value)==null||te.focus(),P(ie,Q),q&&(x=window.setTimeout(()=>Q.target.dispatchEvent(Q),x?x9e:w9e)))},$=(Q,ie)=>{var q,te,Se,Fe;Q=Q.trim().replace(/。/g,"."),Q=(te=(q=e.parser)==null?void 0:q.call(e,Q))!=null?te:Q,(et(Number(Q))||/^(\.|-)$/.test(Q))&&(y.value=(Fe=(Se=e.formatter)==null?void 0:Se.call(e,Q))!=null?Fe:Q,T(S.value),t("input",S.value,y.value,ie),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,ie)))},L=Q=>{t("focus",Q)},B=(Q,ie)=>{ie instanceof MouseEvent&&!Q||(D(),t("change",S.value,ie))},j=Q=>{t("blur",Q)},H=Q=>{var ie,q;y.value="",t("update:modelValue",void 0),t("change",void 0,Q),(q=(ie=h.value)==null?void 0:ie.onChange)==null||q.call(ie,Q),t("clear",Q)},U=z5(new Map([[Wo.ARROW_UP,Q=>{Q.preventDefault(),!e.readOnly&&P("plus",Q)}],[Wo.ARROW_DOWN,Q=>{Q.preventDefault(),!e.readOnly&&P("minus",Q)}]])),W=Q=>{t("keydown",Q),Q.defaultPrevented||U(Q)};It(()=>e.modelValue,Q=>{Q!==S.value&&(y.value=g(Q),T(Q))});const K=()=>{var Q,ie,q;return e.readOnly?null:O(Pt,null,[n.suffix&&O("div",{class:`${s}-suffix`},[(Q=n.suffix)==null?void 0:Q.call(n)]),O("div",{class:`${s}-step`},[O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||w.value}],type:"button",tabindex:"-1",disabled:d.value||w.value,onMousedown:te=>M(te,"plus",!0),onMouseup:E,onMouseleave:E},[n.plus?(ie=n.plus)==null?void 0:ie.call(n):O(nS,null,null)]),O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||k.value}],type:"button",tabindex:"-1",disabled:d.value||k.value,onMousedown:te=>M(te,"minus",!0),onMouseup:E,onMouseleave:E},[n.minus?(q=n.minus)==null?void 0:q.call(n):O(Qh,null,null)])])])},oe=F(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),ae=()=>O(Jo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||k.value,onMousedown:Q=>M(Q,"minus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(T0,null,null)}),ee=()=>O(Jo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||w.value,onMousedown:Q=>M(Q,"plus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(xf,null,null)});return{inputRef:l,render:()=>{const Q=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:K,append:n.append}:{prepend:e.hideButton?n.prepend:ae,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:ee};return O(z0,{key:`__arco__${e.mode}`,ref:l,class:oe.value,type:"text",allowClear:e.allowClear,size:p.value,modelValue:y.value,placeholder:e.placeholder,disabled:d.value,readonly:e.readOnly,error:e.error,inputAttrs:{role:"spinbutton","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":y.value,...e.inputAttrs},onInput:$,onFocus:L,onBlur:j,onClear:H,onChange:B,onKeydown:W},Q)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const iS=Object.assign(mR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+mR.name,mR)}});var t0e=xe({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Me("color-picker");return()=>O(iS,{class:`${t}-input-alpha`,size:"mini",min:0,max:100,disabled:e.disabled,modelValue:Math.round(e.value*100),onChange:(n=100)=>{var r;return(r=e.onChange)==null?void 0:r.call(e,n/100)}},{suffix:()=>"%"})}}),C9e=xe({name:"InputRgb",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Me("color-picker"),{color:n}=tn(e),r=i=>{var a;const s={...n.value.rgb,...i},l=W5(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>O(uy,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(i=>O(iS,{key:i,size:"mini",min:0,max:255,disabled:e.disabled,modelValue:n.value.rgb[i],hideButton:!0,onChange:(a=0)=>r({[i]:a})},null)),!e.disabledAlpha&&O(t0e,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),E9e=xe({name:"InputHex",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Me("color-picker"),{color:n}=tn(e),[r,i]=Ya(n.value.hex),a=c=>{var d;const h=Zpe(c)||{r:255,g:0,b:0},p=W5(h.r,h.g,h.b);(d=e.onHsvChange)==null||d.call(e,p)},s=c=>{var d,h;const p=(h=(d=c.match(/[a-fA-F0-9]*/g))==null?void 0:d.join(""))!=null?h:"";p!==n.value.hex&&a(p.toUpperCase())},l=c=>{if(!c.clipboardData)return;let d=c.clipboardData.getData("Text");d.startsWith("#")&&(d=d.slice(1)),s(d),c.preventDefault()};return It(n,()=>{n.value.hex!==r.value&&i(n.value.hex)}),()=>O(uy,{class:`${t}-input-group`},{default:()=>[O(z0,{class:`${t}-input-hex`,size:"mini",maxLength:6,disabled:e.disabled,modelValue:r.value,onInput:i,onChange:s,onBlur:()=>a,onPressEnter:()=>a,onPaste:l},{prefix:()=>"#"}),!e.disabledAlpha&&O(t0e,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),T9e=xe({name:"Panel",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},colorString:String,disabled:Boolean,disabledAlpha:Boolean,showHistory:Boolean,showPreset:Boolean,format:String,historyColors:Array,presetColors:Array,onAlphaChange:Function,onHsvChange:Function},setup(e){const{t}=No(),n=Me("color-picker"),r=F(()=>e.color.hsv),[i,a]=Ya(e.format||"hex"),s=v=>{a(v)};ue(!1);const l=v=>{var g;const y=Zpe(v)||{r:255,g:0,b:0},S=W5(y.r,y.g,y.b);(g=e.onHsvChange)==null||g.call(e,S)},c=()=>{const v={color:e.color,alpha:e.alpha,disabled:e.disabled,disabledAlpha:e.disabledAlpha,onHsvChange:e.onHsvChange,onAlphaChange:e.onAlphaChange};return i.value==="rgb"?O(C9e,v,null):O(E9e,v,null)},d=v=>O("div",{key:v,class:`${n}-color-block`,style:{backgroundColor:v},onClick:()=>l(v)},[O("div",{class:`${n}-block`,style:{backgroundColor:v}},null)]),h=(v,g)=>O("div",{class:`${n}-colors-section`},[O("div",{class:`${n}-colors-text`},[v]),O("div",{class:`${n}-colors-wrapper`},[g?.length?O("div",{class:`${n}-colors-list`},[g.map(d)]):O("span",{class:`${n}-colors-empty`},[t("colorPicker.empty")])])]),p=()=>e.showHistory||e.showPreset?O("div",{class:`${n}-panel-colors`},[e.showHistory&&h(t("colorPicker.history"),e.historyColors),e.showPreset&&h(t("colorPicker.preset"),e.presetColors)]):null;return()=>O("div",{class:{[`${n}-panel`]:!0,[`${n}-panel-disabled`]:e.disabled}},[O(f9e,{color:e.color,onChange:(v,g)=>{var y;return(y=e.onHsvChange)==null?void 0:y.call(e,{h:r.value.h,s:v,v:g})}},null),O("div",{class:`${n}-panel-control`},[O("div",{class:`${n}-control-wrapper`},[O("div",null,[O(Ere,{type:"hue",x:r.value.h,color:e.color,colorString:e.colorString,onChange:v=>{var g;return(g=e.onHsvChange)==null?void 0:g.call(e,{h:v,s:r.value.s,v:r.value.v})}},null),!e.disabledAlpha&&O(Ere,{type:"alpha",x:e.alpha,color:e.color,colorString:e.colorString,onChange:e.onAlphaChange},null)]),O("div",{class:`${n}-preview`,style:{backgroundColor:e.colorString}},null)]),O("div",{class:`${n}-input-wrapper`},[O(s_,{class:`${n}-select`,size:"mini","trigger-props":{class:`${n}-select-popup`},options:[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"}],modelValue:i.value,onChange:s},null),O("div",{class:`${n}-group-wrapper`},[c()])])]),p()])}}),gR=xe({name:"ColorPicker",props:{modelValue:String,defaultValue:{type:String},format:{type:String},size:{type:String,default:"medium"},showText:{type:Boolean,default:!1},showHistory:{type:Boolean,default:!1},showPreset:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledAlpha:{type:Boolean,default:!1},hideTrigger:{type:Boolean},triggerProps:{type:Object},historyColors:{type:Array},presetColors:{type:Array,default:()=>i9e}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Me("color-picker"),i=F(()=>{var x;return(x=e.modelValue)!=null?x:e.defaultValue}),a=F(()=>c9e(i.value||"")),[s,l]=Ya(a.value.a),[c,d]=Ya({h:a.value.h,s:a.value.s,v:a.value.v});It(()=>a.value,x=>{i.value!==v.value&&(l(x.a),d({h:x.h,s:x.s,v:x.v}))});const h=F(()=>{const x=Xpe(c.value.h,c.value.s,c.value.v),E=Cre(x.r,x.g,x.b);return{hsv:c.value,rgb:x,hex:E}}),p=F(()=>{const{r:x,g:E,b:_}=h.value.rgb;return`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`}),v=F(()=>{const{r:x,g:E,b:_}=h.value.rgb;return e.format==="rgb"?s.value<1&&!e.disabledAlpha?`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`:`rgb(${x}, ${E}, ${_})`:s.value<1&&!e.disabledAlpha?`#${d9e(x,E,_,s.value)}`:`#${Cre(x,E,_)}`});It(v,x=>{t("update:modelValue",x),t("change",x)});const g=x=>{!e.disabled&&d(x)},y=x=>{!e.disabled&&l(x)},S=x=>{t("popup-visible-change",x,v.value)},k=()=>O("div",{class:{[r]:!0,[`${r}-size-${e.size}`]:e.size,[`${r}-disabled`]:e.disabled}},[O("div",{class:`${r}-preview`,style:{backgroundColor:v.value}},null),e.showText&&O("div",{class:`${r}-value`},[v.value]),O("input",{class:`${r}-input`,value:v.value,disabled:e.disabled},null)]),w=()=>O(T9e,{color:h.value,alpha:s.value,colorString:p.value,historyColors:e.historyColors,presetColors:e.presetColors,showHistory:e.showHistory,showPreset:e.showPreset,disabled:e.disabled,disabledAlpha:e.disabledAlpha,format:e.format,onHsvChange:g,onAlphaChange:y},null);return()=>e.hideTrigger?w():O(va,Ft({trigger:"click",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,disabled:e.disabled,onPopupVisibleChange:S},e.triggerProps),{default:()=>[n.default?n.default():k()],content:w})}});const A9e=Object.assign(gR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+gR.name,gR)}});function n0e(e,t,n){return F(()=>!!(e[n]||t[n]))}const I9e=xe({name:"Comment",props:{author:{type:String},avatar:{type:String},content:{type:String},datetime:{type:String},align:{type:[String,Object],default:"left"}},setup(e,{slots:t}){const n=Me("comment"),[r,i,a,s]=["author","avatar","content","datetime"].map(c=>n0e(e,t,c)),l=F(()=>{const{align:c}=e;return{...hs(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:i,hasContent:a,hasDatetime:s,computedAlign:l}}}),L9e=["src"],D9e={key:0},P9e={key:0},R9e={key:0};function M9e(e,t,n,r,i,a){return z(),X("div",{class:fe(e.prefixCls)},[e.hasAvatar?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-avatar`)},[e.avatar?(z(),X("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,L9e)):mt(e.$slots,"avatar",{key:1})],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-inner`)},[I("div",{class:fe(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-author`)},[e.author?(z(),X("span",D9e,je(e.author),1)):mt(e.$slots,"author",{key:1})],2)):Ae("v-if",!0),e.hasDatetime?(z(),X("span",{key:1,class:fe(`${e.prefixCls}-datetime`)},[e.datetime?(z(),X("span",P9e,je(e.datetime),1)):mt(e.$slots,"datetime",{key:1})],2)):Ae("v-if",!0)],2)):Ae("v-if",!0),e.hasContent?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-content`)},[e.content?(z(),X("span",R9e,je(e.content),1)):mt(e.$slots,"content",{key:1})],2)):Ae("v-if",!0),e.$slots.actions?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[mt(e.$slots,"actions")],2)):Ae("v-if",!0)],2),e.$slots.default?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-inner-comment`)},[mt(e.$slots,"default")],2)):Ae("v-if",!0)],2)],2)}var yR=Ue(I9e,[["render",M9e]]);const O9e=Object.assign(yR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+yR.name,yR)}}),$9e=xe({name:"ConfigProvider",props:{prefixCls:{type:String,default:"arco"},locale:{type:Object},size:{type:String},global:{type:Boolean,default:!1},updateAtScroll:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},exchangeTime:{type:Boolean,default:!0}},setup(e,{slots:t}){const{prefixCls:n,locale:r,size:i,updateAtScroll:a,scrollToClose:s,exchangeTime:l}=tn(e),c=Wt({slots:t,prefixCls:n,locale:r,size:i,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const d=So();d&&d.appContext.app.provide(Za,c)}else oi(Za,c)}});function B9e(e,t,n,r,i,a){return mt(e.$slots,"default")}var bR=Ue($9e,[["render",B9e]]);const N9e=Object.assign(bR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+bR.name,bR)}});function F9e(e){const{modelValue:t,defaultValue:n,format:r}=tn(e),i=F(()=>hc(t.value,r.value)),a=F(()=>hc(n.value,r.value)),[s,l]=Ya(wn(i.value)?wn(a.value)?void 0:a.value:i.value);return It(i,()=>{wn(i.value)&&l(void 0)}),{value:F(()=>i.value||s.value),setValue:l}}const j9e=xe({name:"DateInput",components:{IconHover:Lo,IconClose:rs,FeedbackIcon:eS},props:{size:{type:String},focused:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},error:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:String},inputValue:{type:String},value:{type:Object},format:{type:[String,Function],required:!0}},emits:["clear","press-enter","change","blur"],setup(e,{emit:t,slots:n}){const{error:r,focused:i,disabled:a,size:s,value:l,format:c,inputValue:d}=tn(e),{mergedSize:h,mergedDisabled:p,mergedError:v,feedback:g}=Do({size:s,disabled:a,error:r}),{mergedSize:y}=Aa(h),S=Me("picker"),k=F(()=>[S,`${S}-size-${y.value}`,{[`${S}-focused`]:i.value,[`${S}-disabled`]:p.value,[`${S}-error`]:v.value,[`${S}-has-prefix`]:n.prefix}]),w=F(()=>{if(d?.value)return d?.value;if(l?.value&&Hc(l.value))return Sn(c.value)?c.value(l.value):l.value.format(c.value)}),x=ue();return{feedback:g,prefixCls:S,classNames:k,displayValue:w,mergedDisabled:p,refInput:x,onPressEnter(){t("press-enter")},onChange(E){t("change",E)},onClear(E){t("clear",E)},onBlur(E){t("blur",E)}}},methods:{focus(){this.refInput&&this.refInput.focus&&this.refInput.focus()},blur(){this.refInput&&this.refInput.blur&&this.refInput.blur()}}}),V9e=["disabled","placeholder","value"];function z9e(e,t,n,r,i,a){const s=Ee("IconClose"),l=Ee("IconHover"),c=Ee("FeedbackIcon");return z(),X("div",{class:fe(e.classNames)},[e.$slots.prefix?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-prefix`)},[mt(e.$slots,"prefix")],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-input`)},[I("input",Ft({ref:"refInput",disabled:e.mergedDisabled,placeholder:e.placeholder,class:`${e.prefixCls}-start-time`,value:e.displayValue},e.readonly?{readonly:!0}:{},{onKeydown:t[0]||(t[0]=df((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),onInput:t[1]||(t[1]=(...d)=>e.onChange&&e.onChange(...d)),onBlur:t[2]||(t[2]=(...d)=>e.onBlur&&e.onBlur(...d))}),null,16,V9e)],2),I("div",{class:fe(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(z(),Ze(l,{key:0,prefix:e.prefixCls,class:fe(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:ce(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Ae("v-if",!0),I("span",{class:fe(`${e.prefixCls}-suffix-icon`)},[mt(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ze(c,{key:1,type:e.feedback},null,8,["type"])):Ae("v-if",!0)],2)],2)}var r0e=Ue(j9e,[["render",z9e]]);function oV(e){const t=["H","h","m","s","a","A"],n=[];let r=!1;return t.forEach(i=>{e.indexOf(i)!==-1&&(n.push(i),(i==="a"||i==="A")&&(r=!0))}),{list:n,use12Hours:r}}const Tre=new Map;function U9e(e,t,n){const r=Tre.get(e);wn(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),Tre.set(e,requestAnimationFrame(()=>{new ng({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function ff(e,t){const n=r=>{if(nr(r))return r.map(i=>n(i));if(!wn(r))return r.format(t)};return n(e)}function D4(e){return wn(e)?!0:nr(e)?e.length===0||e.length===2&&Hc(e[0])&&Hc(e[1]):!1}function q8(e,t){return e?typeof e=="string"&&Ms(e,t).format(t)===e:!1}function H9e(e,{disabledHours:t,disabledMinutes:n,disabledSeconds:r}){if(!e)return!1;const i=e.hour(),a=e.minute(),s=e.second(),l=t?.()||[],c=n?.(i)||[],d=r?.(i,a)||[],h=(p,v)=>!wn(p)&&v.includes(p);return h(i,l)||h(a,c)||h(s,d)}var ep=xe({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const i0e=Symbol("PickerInjectionKey");function oS(){const{datePickerT:e}=Pn(i0e)||{};return e||((t,...n)=>t)}const W9e=xe({name:"PanelShortcuts",components:{Button:Jo,RenderFunction:ep},props:{prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},showNowBtn:{type:Boolean}},emits:["item-click","item-mouse-enter","item-mouse-leave","now-click"],setup(e,{emit:t}){return{datePickerT:oS(),onItemClick:r=>{t("item-click",r)},onItemMouseEnter:r=>{t("item-mouse-enter",r)},onItemMouseLeave:r=>{t("item-mouse-leave",r)},onNowClick:()=>{t("now-click")},isFunction:Sn}}});function G9e(e,t,n,r,i,a){const s=Ee("Button"),l=Ee("RenderFunction");return z(),X("div",{class:fe(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(z(),Ze(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:ce(()=>[He(je(e.datePickerT("datePicker.now")),1)]),_:1})):Ae("v-if",!0),(z(!0),X(Pt,null,cn(e.shortcuts,(c,d)=>(z(),Ze(s,{key:d,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:ce(()=>[e.isFunction(c.label)?(z(),Ze(l,{key:0,"render-func":c.label},null,8,["render-func"])):(z(),X(Pt,{key:1},[He(je(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var o0e=Ue(W9e,[["render",G9e]]);function By(e){return[...Array(e)]}function sV(e){if(!wn(e))return nr(e)?e:[e,void 0]}function Hp(e){return!!e&&Hc(e[0])&&Hc(e[1])}function K9e(e){return wn(e)||e.length===0||Hp(e)}function s0e(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const q9e=xe({name:"IconDoubleLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Y9e=["stroke-width","stroke-linecap","stroke-linejoin"];function X9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M36.857 9.9 22.715 24.042l14.142 14.142M25.544 9.9 11.402 24.042l14.142 14.142"},null,-1)]),14,Y9e)}var _R=Ue(q9e,[["render",X9e]]);const a0e=Object.assign(_R,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_R.name,_R)}}),Z9e=xe({name:"IconDoubleRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),J9e=["stroke-width","stroke-linecap","stroke-linejoin"];function Q9e(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.143 38.1 14.142-14.142L11.143 9.816M22.456 38.1l14.142-14.142L22.456 9.816"},null,-1)]),14,J9e)}var SR=Ue(Z9e,[["render",Q9e]]);const l0e=Object.assign(SR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SR.name,SR)}}),eOe=xe({name:"PanelHeader",components:{IconLeft:Il,IconRight:Hi,IconDoubleLeft:a0e,IconDoubleRight:l0e,RenderFunction:ep},props:{prefixCls:{type:String,required:!0},title:{type:String,required:!0},mode:{type:String,default:"date"},value:{type:Object},icons:{type:Object},onPrev:{type:Function},onSuperPrev:{type:Function},onNext:{type:Function},onSuperNext:{type:Function},onLabelClick:{type:Function}},emits:["label-click"],setup(e){return{showPrev:F(()=>Sn(e.onPrev)),showSuperPrev:F(()=>Sn(e.onSuperPrev)),showNext:F(()=>Sn(e.onNext)),showSuperNext:F(()=>Sn(e.onSuperNext)),year:F(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:F(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),tOe={key:1};function nOe(e,t,n,r,i,a){const s=Ee("RenderFunction"),l=Ee("IconDoubleLeft"),c=Ee("IconLeft"),d=Ee("IconRight"),h=Ee("IconDoubleRight");return z(),X("div",{class:fe(`${e.prefixCls}-header`)},[I("div",{class:fe(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(z(),X(Pt,{key:0},[e.icons&&e.icons.prevDouble?(z(),Ze(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(z(),Ze(l,{key:1}))],64)):Ae("v-if",!0)],2),I("div",{class:fe(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(z(),X(Pt,{key:0},[e.icons&&e.icons.prev?(z(),Ze(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(z(),Ze(c,{key:1}))],64)):Ae("v-if",!0)],2),I("div",{class:fe(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(z(),X(Pt,{key:0},[e.year?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},je(e.year),3)):Ae("v-if",!0),e.year&&e.month?(z(),X("span",tOe,"-")):Ae("v-if",!0),e.month?(z(),X("span",{key:2,class:fe(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},je(e.month),3)):Ae("v-if",!0)],64)):(z(),X(Pt,{key:1},[He(je(e.title),1)],64))],2),I("div",{class:fe(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(z(),X(Pt,{key:0},[e.icons&&e.icons.next?(z(),Ze(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(z(),Ze(d,{key:1}))],64)):Ae("v-if",!0)],2),I("div",{class:fe(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(z(),X(Pt,{key:0},[e.icons&&e.icons.nextDouble?(z(),Ze(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(z(),Ze(h,{key:1}))],64)):Ae("v-if",!0)],2)],2)}var K5=Ue(eOe,[["render",nOe]]);function rOe(e){const{rangeValues:t}=tn(e),n=F(()=>t?.value&&t.value.every(Hc)?i_(t.value):t?.value),r=F(()=>{var a;return(a=n.value)==null?void 0:a[0]}),i=F(()=>{var a;return(a=n.value)==null?void 0:a[1]});return{getCellClassName:(a,s)=>{const{value:l,isSameTime:c,mode:d,prefixCls:h}=e,p=!a.isPrev&&!a.isNext,v=l&&c(a.value,l);let g=c(a.value,Xa());d==="week"&&(g=Xa().isSame(a.value,"date"));const y=p&&r.value&&c(a.value,r.value),S=p&&i.value&&c(a.value,i.value),k=p&&r.value&&i.value&&(y||S||a.value.isBetween(r.value,i.value,null,"[]"));return[`${h}-cell`,{[`${h}-cell-in-view`]:p,[`${h}-cell-today`]:g,[`${h}-cell-selected`]:v,[`${h}-cell-range-start`]:y,[`${h}-cell-range-end`]:S,[`${h}-cell-in-range`]:k,[`${h}-cell-disabled`]:s},a.classNames]}}}const iOe=xe({name:"PanelBody",components:{RenderFunction:ep},props:{prefixCls:{type:String,required:!0},rows:{type:Array,default:()=>[]},value:{type:Object},disabledDate:{type:Function},isSameTime:{type:Function,required:!0},mode:{type:String},rangeValues:{type:Array},dateRender:{type:Function}},emits:["cell-click","cell-mouse-enter"],setup(e,{emit:t}){const{prefixCls:n,value:r,disabledDate:i,isSameTime:a,mode:s,rangeValues:l}=tn(e),{getCellClassName:c}=rOe(Wt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),d=h=>!!(Sn(i?.value)&&i?.value(Cu(h.value)));return{isWeek:F(()=>s?.value==="week"),getCellClassName:h=>{const p=d(h);return c(h,p)},onCellClick:h=>{d(h)||t("cell-click",h)},onCellMouseEnter:h=>{d(h)||t("cell-mouse-enter",h)},onCellMouseLeave:h=>{d(h)||t("cell-mouse-enter",h)},getDateValue:Cu}}}),oOe=["onMouseenter","onMouseleave","onClick"];function sOe(e,t,n,r,i,a){const s=Ee("RenderFunction");return z(),X("div",{class:fe(`${e.prefixCls}-body`)},[(z(!0),X(Pt,null,cn(e.rows,(l,c)=>(z(),X("div",{key:c,class:fe([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(z(!0),X(Pt,null,cn(l,(d,h)=>(z(),X(Pt,null,[Ae(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(z(),X("div",{key:h,class:fe([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[I("div",{class:fe(`${e.prefixCls}-date`)},[I("div",{class:fe(`${e.prefixCls}-date-value`)},je(d.label),3)],2)],2)):(z(),X("div",{key:h,class:fe(e.getCellClassName(d)),onMouseenter:()=>{e.onCellMouseEnter(d)},onMouseleave:()=>{e.onCellMouseLeave(d)},onClick:()=>{e.onCellClick(d)}},[e.dateRender?(z(),Ze(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(d.value)},null,8,["render-func","date"])):(z(),X("div",{key:1,class:fe(`${e.prefixCls}-date`)},[I("div",{class:fe(`${e.prefixCls}-date-value`)},je(d.label),3)],2))],42,oOe))],64))),256))],2))),128))],2)}var q5=Ue(iOe,[["render",sOe]]);const aOe=xe({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=oS();return{labelList:F(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function lOe(e,t,n,r,i,a){return z(),X("div",{class:fe(`${e.prefixCls}-week-list`)},[(z(!0),X(Pt,null,cn(e.weekList,s=>(z(),X("div",{key:s,class:fe(`${e.prefixCls}-week-list-item`)},je(e.labelList[s]||""),3))),128))],2)}var uOe=Ue(aOe,[["render",lOe]]);const cOe=xe({name:"TimePickerColumn",props:{prefixCls:{type:String,required:!0},list:{type:Array,required:!0},value:{type:[Number,String]},visible:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const{visible:n,value:r}=tn(e),i=ue(new Map),a=ue();function s(l=!1){if(!a.value||wn(r?.value)||!n?.value)return;const c=i.value.get(r.value);c&&U9e(a.value,c.offsetTop,l?100:0)}return It([r,n],(l,[,c])=>{n.value!==c?dn(()=>{s()}):s(!0)}),fn(()=>{s()}),{refWrapper:a,refMap:i,onItemRef(l,c){i.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),dOe=["onClick"];function fOe(e,t,n,r,i,a){return z(),X("div",{ref:"refWrapper",class:fe(`${e.prefixCls}-column`)},[I("ul",null,[(z(!0),X(Pt,null,cn(e.list,s=>(z(),X("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:fe([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[I("div",{class:fe(`${e.prefixCls}-cell-inner`)},je(s.label),3)],10,dOe))),128))])],2)}var hOe=Ue(cOe,[["render",fOe]]);function pOe(e){const{format:t,step:n,use12Hours:r,hideDisabledOptions:i,disabledHours:a,disabledMinutes:s,disabledSeconds:l,selectedHour:c,selectedMinute:d,selectedSecond:h,selectedAmpm:p,disabled:v}=tn(e),g=F(()=>{var x;const{hour:E=1}=n?.value||{},_=((x=a?.value)==null?void 0:x.call(a))||[];let T=[];for(let D=0;D<(r.value?12:24);D+=E)T.push(D);return r.value&&(T[0]=12),i.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:gm(D,2,"0"),value:D,selected:c.value===D,disabled:v?.value||_.includes(D)}))}),y=F(()=>{var x;const{minute:E=1}=n?.value||{},_=((x=s?.value)==null?void 0:x.call(s,c.value))||[];let T=[];for(let D=0;D<60;D+=E)T.push(D);return i.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:gm(D,2,"0"),value:D,selected:d.value===D,disabled:v?.value||_.includes(D)}))}),S=F(()=>{var x;const{second:E=1}=n?.value||{},_=((x=l?.value)==null?void 0:x.call(l,c.value,d.value))||[];let T=[];for(let D=0;D<60;D+=E)T.push(D);return i.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:gm(D,2,"0"),value:D,selected:h.value===D,disabled:v?.value||_.includes(D)}))}),k=["am","pm"],w=F(()=>{const x=oV(t.value).list.includes("A");return k.map(E=>({label:x?E.toUpperCase():E,value:E,selected:p.value===E,disabled:v?.value}))});return{hours:g,minutes:y,seconds:S,ampmList:w}}function LH(e){const{format:t,use12Hours:n,defaultFormat:r}=tn(e),i=F(()=>{let d=t?.value||r?.value;return(!d||!oV(d).list.length)&&(d=n?.value?"hh:mm:ss a":"HH:mm:ss"),d}),a=F(()=>oV(i.value)),s=F(()=>a.value.list),l=F(()=>a.value.use12Hours),c=F(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:i}}function u0e(e){const t=n=>H9e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>nr(n)?n.some(r=>t(r)):t(n)}const vOe=xe({name:"TimePickerPanel",components:{TimeColumn:hOe,Button:Jo},props:{value:{type:Object},visible:{type:Boolean},format:{type:String,default:"HH:mm:ss"},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},hideFooter:{type:Boolean},isRange:{type:Boolean},disabled:{type:Boolean}},emits:{select:e=>Hc(e),confirm:e=>Hc(e)},setup(e,{emit:t}){const{value:n,visible:r,format:i,step:a,use12Hours:s,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,disabled:p}=tn(e),v=Me("timepicker"),{t:g}=No(),{columns:y,use12Hours:S,format:k}=LH(Wt({format:i,use12Hours:s})),w=ue(n?.value),x=K=>{w.value=K};It([r,n],()=>{r.value&&x(n?.value)});const E=F(()=>{var K;const oe=(K=w.value)==null?void 0:K.hour();return wn(oe)||!S.value?oe:oe>12?oe-12:oe===0?12:oe}),_=F(()=>{var K;return(K=w.value)==null?void 0:K.minute()}),T=F(()=>{var K;return(K=w.value)==null?void 0:K.second()}),D=F(()=>{var K;const oe=(K=w.value)==null?void 0:K.hour();return!wn(oe)&&oe>=12?"pm":"am"}),{hours:P,minutes:M,seconds:$,ampmList:L}=pOe(Wt({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,disabled:p})),B=u0e(Wt({disabledHours:c,disabledMinutes:d,disabledSeconds:h})),j=F(()=>B(w.value));function H(K){wn(K)||t("confirm",K)}function U(K){x(K),t("select",K)}function W(K,oe="hour"){let ae;const ee=E.value||"00",Y=_.value||"00",Q=T.value||"00",ie=D.value||"am";switch(oe){case"hour":ae=`${K}:${Y}:${Q}`;break;case"minute":ae=`${ee}:${K}:${Q}`;break;case"second":ae=`${ee}:${Y}:${K}`;break;case"ampm":ae=`${ee}:${Y}:${Q} ${K}`;break;default:ae="00:00:00"}let q="HH:mm:ss";S.value&&(q="HH:mm:ss a",oe!=="ampm"&&(ae=`${ae} ${ie}`)),ae=Ms(ae,q),U(ae)}return{prefixCls:v,t:g,hours:P,minutes:M,seconds:$,ampmList:L,selectedValue:w,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,computedUse12Hours:S,confirmBtnDisabled:j,columns:y,onSelect:W,onSelectNow(){const K=Ms(new Date);U(K)},onConfirm(){H(w.value)}}}});function mOe(e,t,n,r,i,a){const s=Ee("TimeColumn"),l=Ee("Button");return z(),X(Pt,null,[I("div",{class:fe(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(z(),Ze(s,{key:0,value:e.selectedHour,list:e.hours,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[0]||(t[0]=c=>{e.onSelect(c,"hour")})},null,8,["value","list","prefix-cls","visible"])):Ae("v-if",!0),e.columns.includes("m")?(z(),Ze(s,{key:1,value:e.selectedMinute,list:e.minutes,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[1]||(t[1]=c=>{e.onSelect(c,"minute")})},null,8,["value","list","prefix-cls","visible"])):Ae("v-if",!0),e.columns.includes("s")?(z(),Ze(s,{key:2,value:e.selectedSecond,list:e.seconds,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[2]||(t[2]=c=>{e.onSelect(c,"second")})},null,8,["value","list","prefix-cls","visible"])):Ae("v-if",!0),e.computedUse12Hours?(z(),Ze(s,{key:3,value:e.selectedAmpm,list:e.ampmList,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[3]||(t[3]=c=>{e.onSelect(c,"ampm")})},null,8,["value","list","prefix-cls","visible"])):Ae("v-if",!0)],2),e.$slots["extra-footer"]?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-footer-extra-wrapper`)},[mt(e.$slots,"extra-footer")],2)):Ae("v-if",!0),e.hideFooter?Ae("v-if",!0):(z(),X("div",{key:1,class:fe(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Ae("v-if",!0):(z(),Ze(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:ce(()=>[He(je(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),O(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:ce(()=>[He(je(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var Y8=Ue(vOe,[["render",mOe]]);const gOe=xe({name:"IconCalendar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yOe=["stroke-width","stroke-linecap","stroke-linejoin"];function bOe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 22h34M14 5v8m20-8v8M8 41h32a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1Z"},null,-1)]),14,yOe)}var kR=Ue(gOe,[["render",bOe]]);const sS=Object.assign(kR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kR.name,kR)}}),_Oe=xe({name:"IconClockCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),SOe=["stroke-width","stroke-linecap","stroke-linejoin"];function kOe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,SOe)}var wR=Ue(_Oe,[["render",kOe]]);const l_=Object.assign(wR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wR.name,wR)}}),c0e=6,aV=7,wOe=c0e*aV;function xOe(e){return{label:e.date(),value:e}}const COe=xe({name:"DatePanel",components:{PanelHeader:K5,PanelBody:q5,PanelWeekList:uOe,TimePanel:Y8,IconCalendar:sS,IconClockCircle:l_},props:{isRange:{type:Boolean},value:{type:Object},rangeValues:{type:Array},headerValue:{type:Object,required:!0},footerValue:{type:Object},timePickerValue:{type:Object},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},isSameTime:{type:Function},mode:{type:String,default:"date"},showTime:{type:Boolean},timePickerProps:{type:Object},currentView:{type:String},dateRender:{type:Function},disabled:{type:Boolean},onHeaderLabelClick:{type:Function}},emits:["select","time-picker-select","cell-mouse-enter","current-view-change","update:currentView"],setup(e,{emit:t}){const{isRange:n,headerValue:r,footerValue:i,dayStartOfWeek:a,isSameTime:s,mode:l,showTime:c,currentView:d,disabledTime:h}=tn(e),p=oS(),v=F(()=>l?.value==="week"),g=F(()=>Me(v.value?"panel-week":"panel-date")),y=Me("picker"),[S,k]=pa("date",Wt({value:d})),w=F(()=>c.value&&n.value),x=F(()=>!c.value||!w.value||S.value==="date"),E=F(()=>c.value&&(!w.value||S.value==="time")),_=F(()=>[g.value,{[`${g.value}-with-view-tabs`]:w.value}]),T=F(()=>r.value.format("YYYY-MM")),D=F(()=>{var H;return c.value&&((H=h?.value)==null?void 0:H.call(h,Cu(i?.value||Xa())))||{}}),P=F(()=>{const H=[0,1,2,3,4,5,6],U=Math.max(a.value%7,0);return[...H.slice(U),...H.slice(0,U)]}),M=F(()=>{const H=Xs.startOf(r.value,"month"),U=H.day(),W=H.daysInMonth(),K=P.value.indexOf(U),oe=By(wOe);for(let ee=0;eeK+W-1};return By(c0e).map((ee,Y)=>{const Q=oe.slice(Y*aV,(Y+1)*aV);if(v.value){const ie=Q[0].value;Q.unshift({label:ie.week(),value:ie})}return Q})}),$=F(()=>s?.value||((H,U)=>H.isSame(U,"day")));function L(H){t("select",H.value)}function B(H){t("time-picker-select",H)}function j(H){t("cell-mouse-enter",H.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:y,headerTitle:T,rows:M,weekList:F(()=>v.value?[-1,...P.value]:P.value),mergedIsSameTime:$,disabledTimeProps:D,onCellClick:L,onCellMouseEnter:j,onTimePanelSelect:B,showViewTabs:w,showDateView:x,showTimeView:E,changeViewTo:H=>{t("current-view-change",H),t("update:currentView",H),k(H)},datePickerT:p}}});function EOe(e,t,n,r,i,a){const s=Ee("PanelHeader"),l=Ee("PanelWeekList"),c=Ee("PanelBody"),d=Ee("TimePanel"),h=Ee("IconCalendar"),p=Ee("IconClockCircle");return z(),X("div",{class:fe(e.classNames)},[e.showDateView?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-inner`)},[O(s,Ft({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:e.mode,value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","mode","value","on-label-click"]),O(l,{"prefix-cls":e.pickerPrefixCls,"week-list":e.weekList},null,8,["prefix-cls","week-list"]),O(c,{mode:e.mode,"prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.isRange?void 0:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.mergedIsSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["mode","prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)):Ae("v-if",!0),e.showTimeView?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-timepicker`)},[I("header",{class:fe(`${e.prefixCls}-timepicker-title`)},je(e.datePickerT("datePicker.selectTime")),3),O(d,Ft({...e.timePickerProps,...e.disabledTimeProps},{"hide-footer":"",value:e.value||e.isRange?e.timePickerValue:void 0,disabled:e.disabled,onSelect:e.onTimePanelSelect}),null,16,["value","disabled","onSelect"])],2)):Ae("v-if",!0),e.showViewTabs?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-footer`)},[I("div",{class:fe(`${e.prefixCls}-view-tabs`)},[I("div",{class:fe([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[O(h),I("span",{class:fe(`${e.prefixCls}-view-tab-pane-text`)},je(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),I("div",{class:fe([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[O(p),I("span",{class:fe(`${e.prefixCls}-view-tab-pane-text`)},je(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Ae("v-if",!0)],2)}var DH=Ue(COe,[["render",EOe]]);const TOe=xe({name:"WeekPanel",components:{DatePanel:DH},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return No(),{isSameTime:(r,i)=>Xs.isSameWeek(r,i,e.dayStartOfWeek),onSelect:r=>{const i=Xs.startOfWeek(r,e.dayStartOfWeek);t("select",i)},onCellMouseEnter:r=>{const i=Xs.startOfWeek(r,e.dayStartOfWeek);t("cell-mouse-enter",i)}}}});function AOe(e,t,n,r,i,a){const s=Ee("DatePanel");return z(),Ze(s,Ft(e.$attrs,{mode:"week","is-week":"","day-start-of-week":e.dayStartOfWeek,"is-same-time":e.isSameTime,onSelect:e.onSelect,onCellMouseEnter:e.onCellMouseEnter}),null,16,["day-start-of-week","is-same-time","onSelect","onCellMouseEnter"])}var d0e=Ue(TOe,[["render",AOe]]);const IOe=["January","February","March","April","May","June","July","August","September","October","November","December"],LOe=12,DOe=4,Are=3,POe=xe({name:"MonthPanel",components:{PanelHeader:K5,PanelBody:q5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function},abbreviation:{type:Boolean,default:!0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const n=oS(),{headerValue:r}=tn(e),i=F(()=>Me("panel-month")),a=Me("picker"),s=F(()=>r.value.format("YYYY")),l=F(()=>{const p=r.value.year(),v=e.abbreviation?"short":"long",g=By(LOe).map((S,k)=>({label:n(`datePicker.month.${v}.${IOe[k]}`),value:Ms(`${p}-${k+1}`,"YYYY-M")}));return By(DOe).map((S,k)=>g.slice(k*Are,(k+1)*Are))}),c=(p,v)=>p.isSame(v,"month");function d(p){t("select",p.value)}function h(p){t("cell-mouse-enter",p.value)}return{prefixCls:i,pickerPrefixCls:a,headerTitle:s,rows:l,isSameTime:c,onCellClick:d,onCellMouseEnter:h}}});function ROe(e,t,n,r,i,a){const s=Ee("PanelHeader"),l=Ee("PanelBody");return z(),X("div",{class:fe(e.prefixCls)},[I("div",{class:fe(`${e.prefixCls}-inner`)},[O(s,Ft({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"month",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(l,{mode:"month","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var f0e=Ue(POe,[["render",ROe]]);const lV=4,IC=3,MOe=lV*IC,xR=10,OOe=xe({name:"YearPanel",components:{PanelHeader:K5,PanelBody:q5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=tn(e),r=F(()=>Me("panel-year")),i=Me("picker"),a=F(()=>{const h=Math.floor(n.value.year()/xR)*xR-1,p=By(MOe).map((g,y)=>({label:h+y,value:Ms(`${h+y}`,"YYYY"),isPrev:y<1,isNext:y>xR}));return By(lV).map((g,y)=>p.slice(y*IC,(y+1)*IC))}),s=F(()=>`${a.value[0][1].label}-${a.value[lV-1][IC-1].label}`),l=(h,p)=>h.isSame(p,"year");function c(h){t("select",h.value)}function d(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:i,headerTitle:s,rows:a,isSameTime:l,onCellClick:c,onCellMouseEnter:d}}});function $Oe(e,t,n,r,i,a){const s=Ee("PanelHeader"),l=Ee("PanelBody");return z(),X("div",{class:fe(e.prefixCls)},[I("div",{class:fe(`${e.prefixCls}-inner`)},[O(s,Ft({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle}),null,16,["prefix-cls","title"]),O(l,{mode:"year","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var h0e=Ue(OOe,[["render",$Oe]]);const BOe=xe({name:"QuarterPanel",components:{PanelHeader:K5,PanelBody:q5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=tn(e),r=F(()=>Me("panel-quarter")),i=Me("picker"),a=F(()=>n.value.format("YYYY")),s=F(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:Ms(`${h}-${gm((p-1)*3+1,2,"0")}-01`)}))]}),l=(h,p)=>h.isSame(p,"month")||h.isSame(p,"year")&&Math.floor(h.month()/3)===Math.floor(p.month()/3);function c(h){t("select",h.value)}function d(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:i,headerTitle:a,rows:s,isSameTime:l,onCellClick:c,onCellMouseEnter:d}}});function NOe(e,t,n,r,i,a){const s=Ee("PanelHeader"),l=Ee("PanelBody");return z(),X("div",{class:fe(e.prefixCls)},[I("div",{class:fe(`${e.prefixCls}-inner`)},[O(s,Ft({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"quarter",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(l,{mode:"quarter","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var p0e=Ue(BOe,[["render",NOe]]);const FOe=xe({name:"IconLink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),jOe=["stroke-width","stroke-linecap","stroke-linejoin"];function VOe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"},null,-1)]),14,jOe)}var CR=Ue(FOe,[["render",VOe]]);const gu=Object.assign(CR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CR.name,CR)}}),zOe=xe({name:"Link",components:{IconLink:gu,IconLoading:Ja},props:{href:String,status:{type:String,default:"normal"},hoverable:{type:Boolean,default:!0},icon:Boolean,loading:Boolean,disabled:Boolean},emits:{click:e=>!0},setup(e,{slots:t,emit:n}){const r=Me("link"),i=n0e(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:F(()=>[r,`${r}-status-${e.status}`,{[`${r}-disabled`]:e.disabled,[`${r}-loading`]:e.loading,[`${r}-hoverless`]:!e.hoverable,[`${r}-with-icon`]:e.loading||i.value}]),prefixCls:r,showIcon:i,handleClick:a}}}),UOe=["href"];function HOe(e,t,n,r,i,a){const s=Ee("icon-loading"),l=Ee("icon-link");return z(),X("a",{href:e.disabled?void 0:e.href,class:fe(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-icon`)},[e.loading?(z(),Ze(s,{key:0})):mt(e.$slots,"icon",{key:1},()=>[O(l)])],2)):Ae("v-if",!0),mt(e.$slots,"default")],10,UOe)}var ER=Ue(zOe,[["render",HOe]]);const v0e=Object.assign(ER,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+ER.name,ER)}}),WOe=xe({name:"PanelFooter",components:{Link:v0e,Button:Jo},props:{prefixCls:{type:String,required:!0},showTodayBtn:{type:Boolean},showConfirmBtn:{type:Boolean},confirmBtnDisabled:{type:Boolean}},emits:["today-btn-click","confirm-btn-click"],setup(e,{emit:t}){return{datePickerT:oS(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function GOe(e,t,n,r,i,a){const s=Ee("Link"),l=Ee("Button");return z(),X("div",{class:fe(`${e.prefixCls}-footer`)},[e.$slots.extra?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-footer-extra-wrapper`)},[mt(e.$slots,"extra")],2)):Ae("v-if",!0),e.showTodayBtn?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-footer-now-wrapper`)},[O(s,{onClick:e.onTodayClick},{default:ce(()=>[He(je(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Ae("v-if",!0),e.$slots.btn||e.showConfirmBtn?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-footer-btn-wrapper`)},[mt(e.$slots,"btn"),e.showConfirmBtn?(z(),Ze(l,{key:0,class:fe(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:ce(()=>[He(je(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Ae("v-if",!0)],2)):Ae("v-if",!0)],2)}var m0e=Ue(WOe,[["render",GOe]]);function g0e(e){const{mode:t}=tn(e),n=F(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=F(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function X8(e){const{mode:t,value:n,defaultValue:r,selectedValue:i,format:a,onChange:s}=tn(e),l=F(()=>t?.value||"date"),{span:c,superSpan:d}=g0e(Wt({mode:l})),h=(T,D)=>{const P=l.value==="date"||l.value==="week"?"M":"y";return T.isSame(D,P)},p=F(()=>hc(n?.value,a.value)),v=F(()=>hc(r?.value,a.value)),g=ue(v.value||Xa()),y=F(()=>p.value||g.value),S=T=>{T&&(g.value=T)},k=(T,D=!0)=>{var P;T&&(D&&!h(y.value,T)&&((P=s?.value)==null||P.call(s,T)),S(T))};i?.value&&S(i.value),It(()=>i?.value,T=>{k(T)});function w(){return i?.value||v.value||Xa()}function x(T=!0){const D=w();T?k(D):S(D)}const E=F(()=>c.value!==d.value),_=F(()=>({onSuperPrev:()=>{k(Xs.subtract(y.value,d.value,"M"))},onPrev:E.value?()=>{k(Xs.subtract(y.value,c.value,"M"))}:void 0,onNext:E.value?()=>{k(Xs.add(y.value,c.value,"M"))}:void 0,onSuperNext:()=>{k(Xs.add(y.value,d.value,"M"))}}));return{headerValue:y,setHeaderValue:k,headerOperations:_,resetHeaderValue:x,getDefaultLocalValue:w}}const KOe=xe({name:"DatePikerPanel",components:{DatePanel:DH,PanelShortcuts:o0e,PanelFooter:m0e,WeekPanel:d0e,MonthPanel:f0e,YearPanel:h0e,QuarterPanel:p0e,RenderFunction:ep},props:{mode:{type:String},headerMode:{type:String},prefixCls:{type:String,required:!0},value:{type:Object},headerValue:{type:Object,required:!0},timePickerValue:{type:Object},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},confirmBtnDisabled:{type:Boolean},showNowBtn:{type:Boolean},headerIcons:{type:Object,default:()=>({})},headerOperations:{type:Object},abbreviation:{type:Boolean}},emits:["cell-click","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","today-btn-click","header-label-click","header-select","month-header-click"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:i,format:a,value:s,disabledDate:l,hideTrigger:c,showNowBtn:d,dateRender:h,showConfirmBtn:p,headerValue:v,headerIcons:g,headerOperations:y,headerMode:S}=tn(e),k=F(()=>!!(r.value&&r.value.length)),w=F(()=>d.value&&p.value&&!k.value),x=F(()=>w.value||k.value),E=F(()=>x.value&&i.value==="left"),_=F(()=>x.value&&i.value==="right"),T=F(()=>x.value&&i.value==="bottom"),D=F(()=>[`${n.value}-container`,{[`${n.value}-container-panel-only`]:c.value,[`${n.value}-container-shortcuts-placement-left`]:E.value,[`${n.value}-container-shortcuts-placement-right`]:_.value}]),P=F(()=>s?.value||Xa()),{headerValue:M,setHeaderValue:$,headerOperations:L}=X8(Wt({mode:S,format:a}));It(v,te=>{$(te)});function B(te){const{value:Se}=te;return hc(Sn(Se)?Se():Se,te.format||a.value)}function j(te){t("shortcut-click",B(te),te)}function H(te){t("shortcut-mouse-enter",B(te))}function U(te){t("shortcut-mouse-leave",B(te))}function W(te){t("cell-click",te)}function K(te){t("time-picker-select",te)}function oe(){t("today-btn-click",Xa())}function ae(){t("confirm")}function ee(te){t("header-label-click",te)}function Y(te){t("header-select",te)}function Q(){t("month-header-click")}const ie=Wt({prefixCls:n,shortcuts:r,showNowBtn:w,onItemClick:j,onItemMouseEnter:H,onItemMouseLeave:U,onNowClick:oe}),q=Wt({value:s,headerValue:v,headerIcons:g,headerOperations:y,disabledDate:l,dateRender:h,onSelect:W,onHeaderLabelClick:ee});return{classNames:D,showShortcutsInLeft:E,showShortcutsInRight:_,showShortcutsInBottom:T,shortcutsProps:ie,commonPanelProps:q,footerValue:P,onTodayBtnClick:oe,onConfirmBtnClick:ae,onTimePickerSelect:K,onHeaderPanelSelect:Y,headerPanelHeaderValue:M,headerPanelHeaderOperations:L,onMonthHeaderLabelClick:Q}}});function qOe(e,t,n,r,i,a){const s=Ee("PanelShortcuts"),l=Ee("YearPanel"),c=Ee("MonthPanel"),d=Ee("WeekPanel"),h=Ee("QuarterPanel"),p=Ee("DatePanel"),v=Ee("RenderFunction"),g=Ee("PanelFooter");return z(),X("div",{class:fe(e.classNames)},[e.showShortcutsInLeft?(z(),Ze(s,qi(Ft({key:0},e.shortcutsProps)),null,16)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(z(),X(Pt,{key:0},[e.headerMode==="year"?(z(),Ze(l,{key:0,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,onSelect:e.onHeaderPanelSelect},null,8,["header-value","header-icons","header-operations","onSelect"])):e.headerMode==="month"?(z(),Ze(c,{key:1,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,abbreviation:e.abbreviation,onSelect:e.onHeaderPanelSelect,onHeaderLabelClick:e.onMonthHeaderLabelClick},null,8,["header-value","header-icons","header-operations","abbreviation","onSelect","onHeaderLabelClick"])):Ae("v-if",!0)],64)):(z(),X(Pt,{key:1},[e.mode==="week"?(z(),Ze(d,Ft({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(z(),Ze(c,Ft({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(z(),Ze(l,qi(Ft({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(z(),Ze(h,qi(Ft({key:3},e.commonPanelProps)),null,16)):(z(),Ze(p,Ft({key:4},e.commonPanelProps,{mode:"date","show-time":e.showTime,"time-picker-props":e.timePickerProps,"day-start-of-week":e.dayStartOfWeek,"footer-value":e.footerValue,"time-picker-value":e.timePickerValue,"disabled-time":e.disabledTime,onTimePickerSelect:e.onTimePickerSelect}),null,16,["show-time","time-picker-props","day-start-of-week","footer-value","time-picker-value","disabled-time","onTimePickerSelect"])),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":e.showNowBtn&&!(e.showConfirmBtn||e.showShortcutsInBottom),"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onTodayBtnClick:e.onTodayBtnClick,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra?{name:"extra",fn:ce(()=>[e.extra?(z(),Ze(v,{key:0,"render-func":e.extra},null,8,["render-func"])):Ae("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:ce(()=>[O(s,qi(wa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-today-btn","show-confirm-btn","confirm-btn-disabled","onTodayBtnClick","onConfirmBtnClick"])],64))],2),e.showShortcutsInRight?(z(),Ze(s,qi(Ft({key:1},e.shortcutsProps)),null,16)):Ae("v-if",!0)],2)}var YOe=Ue(KOe,[["render",qOe]]);function XOe(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"gggg-wo";case"quarter":return"YYYY-[Q]Q";default:return"YYYY-MM-DD"}}function ZOe(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"YYYY-MM-DD";case"quarter":return"YYYY-MM";default:return"YYYY-MM-DD"}}function y0e(e){const{format:t,mode:n,showTime:r,valueFormat:i}=tn(e),a=F(()=>!Sn(t?.value)&&t?.value||XOe(n?.value,r?.value)),s=F(()=>i?.value||ZOe(n?.value,r?.value)),l=F(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function b0e(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:i,isRange:a}=tn(e),s=F(()=>t?.value==="date"&&n?.value),l=F(()=>(h,p)=>{if(!r?.value)return!1;const v=Cu(h);return a?.value?r.value(v,p):r.value(v)}),c=(h,p)=>(p?.()||[]).includes(h),d=F(()=>(h,p)=>{if(!s.value||!i?.value)return!1;const v=Cu(h),g=a?.value?i.value(v,p):i.value(v);return c(h.hour(),g.disabledHours)||c(h.minute(),g.disabledMinutes)||c(h.second(),g.disabledSeconds)});return function(p,v){return p&&(l.value(p,v||"start")||d.value(p,v||"start"))}}const ym=(e,t)=>{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const n=t.split(".");if(n.length===0)return;let r=e;for(let i=0;i{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const i=t.split(".");if(i.length===0)return;let a=e;for(let s=0;s{const l=a.startsWith("datePicker.")?a.split(".").slice(1).join("."):a;return ym(t?.value||{},l)||r(a,...s)};return oi(i0e,{datePickerT:i}),i}function uV(e){const{timePickerProps:t,selectedValue:n}=tn(e),r=F(()=>{var p;return(p=t?.value)==null?void 0:p.format}),i=F(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=LH(Wt({format:r,use12Hours:i})),s=F(()=>{var p;return hc((p=t?.value)==null?void 0:p.defaultValue,a.value)}),l=()=>n?.value||s.value||Xa(),c=ue(l());function d(p){p&&(c.value=p)}function h(){c.value=l()}return It(n,p=>{d(p)}),[c,d,h]}function S0e(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function JOe(e){const{format:t}=tn(e);return n=>S0e(n,t.value)}function TR(e,t){return e.map(n=>n?S0e(n,t):void 0)}const QOe=xe({name:"Picker",components:{DateInput:r0e,Trigger:va,PickerPanel:YOe,IconCalendar:sS},inheritAttrs:!1,props:{locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean},placeholder:{type:String},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},pickerValue:{type:[Object,String,Number]},defaultPickerValue:{type:[Object,String,Number]},popupContainer:{type:[String,Object]},mode:{type:String,default:"date"},format:{type:[String,Function]},valueFormat:{type:String},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},showTime:{type:Boolean},timePickerProps:{type:Object},showNowBtn:{type:Boolean,default:!0},dayStartOfWeek:{type:Number,default:0},modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,modelValue:i,defaultValue:a,format:s,valueFormat:l,placeholder:c,popupVisible:d,defaultPopupVisible:h,disabled:p,showTime:v,timePickerProps:g,disabledDate:y,disabledTime:S,readonly:k,locale:w,pickerValue:x,defaultPickerValue:E,dayStartOfWeek:_,previewShortcut:T,showConfirmBtn:D}=tn(e),{locale:P}=No();$s(()=>{Ppe(P.value,_.value)});const{mergedDisabled:M,eventHandlers:$}=Do({disabled:p}),L=_0e(Wt({locale:w})),B=Me("picker"),j=ue(),H=F(()=>c?.value||{date:L("datePicker.placeholder.date"),month:L("datePicker.placeholder.month"),year:L("datePicker.placeholder.year"),week:L("datePicker.placeholder.week"),quarter:L("datePicker.placeholder.quarter")}[r.value]||L("datePicker.placeholder.date")),{format:U,valueFormat:W,parseValueFormat:K}=y0e(Wt({format:s,mode:r,showTime:v,valueFormat:l})),oe=F(()=>s&&Sn(s.value)?un=>{var Xn;return(Xn=s.value)==null?void 0:Xn.call(s,Cu(un))}:U.value),ae=JOe(Wt({format:W})),ee=b0e(Wt({mode:r,disabledDate:y,disabledTime:S,showTime:v})),Y=F(()=>v.value||D.value),Q=F(()=>Y.value&&(!Ge.value||ee(Ge.value))),ie=F(()=>r.value==="date"&&v.value),{value:q,setValue:te}=F9e(Wt({modelValue:i,defaultValue:a,format:K})),[Se,Fe]=Ya(),[ve,Re]=Ya(),Ge=F(()=>{var un;return(un=Se.value)!=null?un:q.value}),nt=F(()=>{var un,Xn;return(Xn=(un=ve.value)!=null?un:Se.value)!=null?Xn:q.value}),[Ie,_e]=Ya(),[me,ge]=pa(h.value,Wt({value:d})),Be=un=>{me.value!==un&&(ge(un),t("popup-visible-change",un),t("update:popupVisible",un))},{headerValue:Ye,setHeaderValue:Ke,headerOperations:at,resetHeaderValue:ft}=X8(Wt({mode:r,value:x,defaultValue:E,selectedValue:nt,format:K,onChange:un=>{const Xn=ae(un),Cr=ff(un,K.value),ro=Cu(un);t("picker-value-change",Xn,ro,Cr),t("update:pickerValue",Xn)}})),[ct,,Ct]=uV(Wt({timePickerProps:g,selectedValue:nt})),xt=F(()=>!k.value&&!Sn(oe.value)),Rt=ue();It(me,un=>{Fe(void 0),Re(void 0),Rt.value=void 0,un&&(ft(),Ct()),un||_e(void 0)});function Ht(un,Xn){var Cr,ro;const $t=un?ae(un):void 0,bn=ff(un,K.value),kr=Cu(un);_H(un,q.value)&&(t("update:modelValue",$t),t("change",$t,kr,bn),(ro=(Cr=$.value)==null?void 0:Cr.onChange)==null||ro.call(Cr)),Xn&&t("ok",$t,kr,bn)}function Jt(un,Xn,Cr){ee(un)||(Ht(un,Cr),te(un),Fe(void 0),Re(void 0),_e(void 0),Rt.value=void 0,Tl(Xn)&&Be(Xn))}function rn(un,Xn){if(Fe(un),Re(void 0),_e(void 0),Rt.value=void 0,Xn){const Cr=un?ae(un):void 0,ro=ff(un,K.value),$t=Cu(un);t("select",Cr,$t,ro)}}function vt(un){j.value&&j.value.focus&&j.value.focus(un)}function Ve(un,Xn){return!ie.value&&!g.value?un:s0e(Xa(),un,Xn)}function Oe(un){M.value||Be(un)}function Ce(un){un.stopPropagation(),Jt(void 0),t("clear")}function We(){var un,Xn;(Xn=(un=$.value)==null?void 0:un.onBlur)==null||Xn.call(un)}function $e(un){Be(!0);const Xn=un.target.value;if(_e(Xn),!q8(Xn,U.value))return;const Cr=Ms(Xn,U.value);ee(Cr)||(Y.value?rn(Cr):Jt(Cr,!0))}function dt(){Jt(nt.value,!1)}function Qe(un){Y.value?rn(un,!0):Jt(un,!1)}function Le(un){const Xn=Ve(un,ct.value);Qe(Xn)}function ht(un){const Xn=Ve(nt.value||Xa(),un);Qe(Xn)}function Vt(){Jt(nt.value,!1,!0)}function Ut(){e.disabledInput&&vt()}let Lt;Yr(()=>{clearTimeout(Lt)});function Xt(un){clearTimeout(Lt),Re(un),_e(void 0)}function Dn(){clearTimeout(Lt),Lt=setTimeout(()=>{Re(void 0)},100)}function rr(un,Xn){t("select-shortcut",Xn),Jt(un,!1)}function Xr(un){Rt.value=un}function Gt(){Rt.value="year"}function Yt(un){let Xn=Ye.value;if(Xn=Xn.set("year",un.year()),Rt.value==="month"&&(Xn=Xn.set("month",un.month())),Ke(Xn),r.value==="quarter"||r.value==="month"){Rt.value=void 0;return}Rt.value=Rt.value==="year"?"month":void 0}const sn=F(()=>({format:U.value,...Ea(g?.value||{},["defaultValue"]),visible:me.value})),An=F(()=>({...kf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:B,format:K.value,value:nt.value,visible:me.value,showConfirmBtn:Y.value,confirmBtnDisabled:Q.value,timePickerProps:sn.value,extra:n.extra,dateRender:n.cell,headerValue:Ye.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:at.value,timePickerValue:ct.value,headerMode:Rt.value,onCellClick:Le,onTimePickerSelect:ht,onConfirm:Vt,onShortcutClick:rr,onShortcutMouseEnter:T.value?Xt:void 0,onShortcutMouseLeave:T.value?Dn:void 0,onTodayBtnClick:Qe,onHeaderLabelClick:Xr,onHeaderSelect:Yt,onMonthHeaderClick:Gt}));return{prefixCls:B,refInput:j,panelProps:An,panelValue:nt,inputValue:Ie,selectedValue:q,inputFormat:oe,computedPlaceholder:H,panelVisible:me,inputEditable:xt,needConfirm:Y,mergedDisabled:M,onPanelVisibleChange:Oe,onInputClear:Ce,onInputChange:$e,onInputPressEnter:dt,onInputBlur:We,onPanelClick:Ut}}});function e$e(e,t,n,r,i,a){const s=Ee("IconCalendar"),l=Ee("DateInput"),c=Ee("PickerPanel"),d=Ee("Trigger");return e.hideTrigger?(z(),Ze(c,qi(Ft({key:1},{...e.$attrs,...e.panelProps})),null,16)):(z(),Ze(d,Ft({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{position:e.position,disabled:e.mergedDisabled||e.readonly,"prevent-focus":!0,"popup-visible":e.panelVisible,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:ce(()=>[O(c,Ft(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:ce(()=>[mt(e.$slots,"default",{},()=>[O(l,Ft(e.$attrs,{ref:"refInput",size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.mergedDisabled,readonly:!e.inputEditable||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.needConfirm?e.panelValue:e.selectedValue,format:e.inputFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter,onBlur:e.onInputBlur}),yo({"suffix-icon":ce(()=>[mt(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:ce(()=>[mt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter","onBlur"])])]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"]))}var aS=Ue(QOe,[["render",e$e]]),AR=xe({name:"DatePicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:[String,Function]},dayStartOfWeek:{type:Number,default:0},showTime:{type:Boolean},timePickerProps:{type:Object},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},showNowBtn:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){return()=>O(aS,Ft(e,t,{mode:"date"}),n)}}),LC=xe({name:"WeekPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"gggg-wo"},valueFormat:{type:String,default:"YYYY-MM-DD"},dayStartOfWeek:{type:Number,default:0}},setup(e,{attrs:t,slots:n}){return()=>O(aS,Ft(e,t,{mode:"week"}),n)}}),DC=xe({name:"MonthPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(aS,Ft(e,t,{mode:"month"}),n)}}),PC=xe({name:"YearPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY"}},setup(e,{attrs:t,slots:n}){return()=>O(aS,Ft(e,t,{mode:"year"}),n)}}),RC=xe({name:"QuarterPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-[Q]Q"},valueFormat:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(aS,Ft(e,t,{mode:"quarter"}),n)}});function t$e(e){const{modelValue:t,defaultValue:n,format:r}=tn(e),i=F(()=>hc(sV(t.value),r.value)),a=F(()=>hc(sV(n.value),r.value)),[s,l]=Ya(wn(i.value)?wn(a.value)?[]:a.value:i.value);return It(i,()=>{wn(i.value)&&l([])}),{value:F(()=>i.value||s.value),setValue:l}}function n$e(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:i,defaultValue:a,selectedValue:s,format:l,onChange:c}=tn(e),d=F(()=>["date","week"].includes(r.value)),h=F(()=>d.value?"M":"y"),p=(Se,Fe)=>Se.isSame(Fe,h.value),{span:v,superSpan:g}=g0e(Wt({mode:r})),y=F(()=>t?.value||r.value),S=F(()=>n?.value||r.value),k=F(()=>{var Se;return(Se=i.value)==null?void 0:Se[0]}),w=F(()=>{var Se;return(Se=i.value)==null?void 0:Se[1]}),x=F(()=>{var Se;return(Se=a.value)==null?void 0:Se[0]}),E=F(()=>{var Se;return(Se=a.value)==null?void 0:Se[1]}),_=Se=>{c?.value&&c.value(Se)},{headerValue:T,setHeaderValue:D,headerOperations:P,getDefaultLocalValue:M}=X8(Wt({mode:y,value:k,defaultValue:x,selectedValue:void 0,format:l,onChange:Se=>{_([Se,$.value])}})),{headerValue:$,setHeaderValue:L,headerOperations:B,getDefaultLocalValue:j}=X8(Wt({mode:S,value:w,defaultValue:E,selectedValue:void 0,format:l,onChange:Se=>{_([T.value,Se])}})),H=Se=>{const Fe=p(T.value,Se[0]),ve=p($.value,Se[1]);D(Se[0],!1),L(Se[1],!1),(!Fe||!ve)&&c?.value&&c?.value(Se)};function U(Se){let[Fe,ve]=i_(Se);const Re=Xs.add(Fe,v.value,"M");return ve.isBefore(Re,h.value)&&(ve=Re),[Fe,ve]}function W(){var Se,Fe;let ve=(Se=s.value)==null?void 0:Se[0],Re=(Fe=s.value)==null?void 0:Fe[1];return ve&&Re&&([ve,Re]=i_([ve,Re])),[ve,Re]}const[K,oe]=W(),[ae,ee]=U([K||T.value,oe||$.value]);D(ae,!1),L(ee,!1);const Y=()=>{const Se=M(),Fe=j();dn(()=>{const[ve,Re]=W(),[Ge,nt]=U([ve||Se,Re||Fe]);H([Ge,nt])})},Q=F(()=>Xs.add(T.value,v.value,"M").isBefore($.value,h.value)),ie=F(()=>Xs.add(T.value,g.value,"M").isBefore($.value,h.value)),q=F(()=>{const Se=["onSuperPrev"];return d.value&&Se.push("onPrev"),Q.value&&d&&Se.push("onNext"),ie.value&&Se.push("onSuperNext"),kf(P.value,Se)}),te=F(()=>{const Se=["onSuperNext"];return d.value&&Se.push("onNext"),Q.value&&d.value&&Se.push("onPrev"),ie.value&&Se.push("onSuperPrev"),kf(B.value,Se)});return{startHeaderValue:T,endHeaderValue:$,startHeaderOperations:q,endHeaderOperations:te,setHeaderValue:H,resetHeaderValue:Y}}const r$e=xe({name:"DateInputRange",components:{IconHover:Lo,IconClose:rs,FeedbackIcon:eS},props:{size:{type:String},focused:{type:Boolean},focusedIndex:{type:Number},error:{type:Boolean},disabled:{type:[Boolean,Array],default:!1},readonly:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:Array,default:()=>[]},inputValue:{type:Array},value:{type:Array,default:()=>[]},format:{type:[String,Function],required:!0}},emits:["focused-index-change","update:focusedIndex","change","clear","press-enter"],setup(e,{emit:t,slots:n}){const{error:r,focused:i,disabled:a,size:s,value:l,format:c,focusedIndex:d,inputValue:h}=tn(e),{mergedSize:p,mergedDisabled:v,mergedError:g,feedback:y}=Do({size:s,error:r}),{mergedSize:S}=Aa(p),k=ue(),w=ue(),x=K=>v.value?v.value:nr(a.value)?a.value[K]:a.value,E=F(()=>x(0)),_=F(()=>x(1)),T=Me("picker"),D=F(()=>[T,`${T}-range`,`${T}-size-${S.value}`,{[`${T}-focused`]:i.value,[`${T}-disabled`]:E.value&&_.value,[`${T}-error`]:g.value,[`${T}-has-prefix`]:n.prefix}]);function P(K){return[`${T}-input`,{[`${T}-input-active`]:K===d?.value}]}function M(K){var oe,ae;if(h?.value)return(oe=h?.value)==null?void 0:oe[K];const ee=(ae=l?.value)==null?void 0:ae[K];if(ee&&Hc(ee))return Sn(c.value)?c.value(ee):ee.format(c.value)}const $=F(()=>M(0)),L=F(()=>M(1));function B(K){t("focused-index-change",K),t("update:focusedIndex",K)}function j(K){K.stopPropagation(),t("change",K)}function H(){t("press-enter")}function U(K){K.preventDefault()}function W(K){t("clear",K)}return{prefixCls:T,classNames:D,refInput0:k,refInput1:w,disabled0:E,disabled1:_,mergedDisabled:v,getDisabled:x,getInputWrapClassName:P,displayValue0:$,displayValue1:L,changeFocusedInput:B,onChange:j,onPressEnter:H,onPressTab:U,onClear:W,feedback:y}},methods:{focus(e){const t=et(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!wn(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),i$e=["disabled","placeholder","value"],o$e=["disabled","placeholder","value"];function s$e(e,t,n,r,i,a){const s=Ee("IconClose"),l=Ee("IconHover"),c=Ee("FeedbackIcon");return z(),X("div",{class:fe(e.classNames)},[e.$slots.prefix?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-prefix`)},[mt(e.$slots,"prefix")],2)):Ae("v-if",!0),I("div",{class:fe(e.getInputWrapClassName(0))},[I("input",Ft({ref:"refInput0",disabled:e.disabled0,placeholder:e.placeholder[0],value:e.displayValue0},e.readonly?{readonly:!0}:{},{onInput:t[0]||(t[0]=(...d)=>e.onChange&&e.onChange(...d)),onKeydown:[t[1]||(t[1]=df((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),t[2]||(t[2]=df((...d)=>e.onPressTab&&e.onPressTab(...d),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,i$e)],2),I("span",{class:fe(`${e.prefixCls}-separator`)},[mt(e.$slots,"separator",{},()=>[t[8]||(t[8]=He(" - "))])],2),I("div",{class:fe(e.getInputWrapClassName(1))},[I("input",Ft({ref:"refInput1",disabled:e.disabled1,placeholder:e.placeholder[1],value:e.displayValue1},e.readonly?{readonly:!0}:{},{onInput:t[4]||(t[4]=(...d)=>e.onChange&&e.onChange(...d)),onKeydown:[t[5]||(t[5]=df((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),t[6]||(t[6]=df((...d)=>e.onPressTab&&e.onPressTab(...d),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,o$e)],2),I("div",{class:fe(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(z(),Ze(l,{key:0,prefix:e.prefixCls,class:fe(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:ce(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Ae("v-if",!0),I("span",{class:fe(`${e.prefixCls}-suffix-icon`)},[mt(e.$slots,"suffix-icon")],2),e.feedback?(z(),Ze(c,{key:1,type:e.feedback},null,8,["type"])):Ae("v-if",!0)],2)],2)}var k0e=Ue(r$e,[["render",s$e]]);const a$e=xe({name:"DateRangePikerPanel",components:{PanelShortcuts:o0e,PanelFooter:m0e,RenderFunction:ep,DatePanel:DH,WeekPanel:d0e,MonthPanel:f0e,YearPanel:h0e,QuarterPanel:p0e},props:{mode:{type:String,default:"date"},value:{type:Array,default:()=>[]},footerValue:{type:Array},timePickerValue:{type:Array},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},startHeaderProps:{type:Object,default:()=>({})},endHeaderProps:{type:Object,default:()=>({})},confirmBtnDisabled:{type:Boolean},disabled:{type:Array,default:()=>[!1,!1]},visible:{type:Boolean},startHeaderMode:{type:String},endHeaderMode:{type:String},abbreviation:{type:Boolean}},emits:["cell-click","cell-mouse-enter","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","start-header-label-click","end-header-label-click","start-header-select","end-header-select"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:i,format:a,hideTrigger:s,value:l,disabledDate:c,disabledTime:d,startHeaderProps:h,endHeaderProps:p,dateRender:v,visible:g,startHeaderMode:y,endHeaderMode:S}=tn(e),k=F(()=>nr(r.value)&&r.value.length),w=F(()=>[`${n.value}-range-container`,{[`${n.value}-range-container-panel-only`]:s.value,[`${n.value}-range-container-shortcuts-placement-left`]:k.value&&i.value==="left",[`${n.value}-range-container-shortcuts-placement-right`]:k.value&&i.value==="right"}]),x=ue("date");It(g,(ie,q)=>{ie&&!q&&(x.value="date")});function E(ie){return hc(sV(Sn(ie.value)?ie.value():ie.value),ie.format||a.value)}function _(ie){t("shortcut-click",E(ie),ie)}function T(ie){t("shortcut-mouse-enter",E(ie))}function D(ie){t("shortcut-mouse-leave",E(ie))}function P(ie){t("cell-click",ie)}function M(ie){t("cell-mouse-enter",ie)}function $(){t("confirm")}function L(ie){t("time-picker-select",ie,"start")}function B(ie){t("time-picker-select",ie,"end")}function j(ie){t("start-header-label-click",ie)}function H(ie){t("end-header-label-click",ie)}function U(ie){t("start-header-select",ie)}function W(ie){t("end-header-select",ie)}function K(ie){return Sn(c?.value)?q=>{var te;return((te=c?.value)==null?void 0:te.call(c,q,ie===0?"start":"end"))||!1}:void 0}function oe(ie){return Sn(d?.value)?q=>{var te;return((te=d?.value)==null?void 0:te.call(d,q,ie===0?"start":"end"))||!1}:void 0}function ae(ie){return Sn(v?.value)?q=>{var te;const Se={...q,type:ie===0?"start":"end"};return(te=v?.value)==null?void 0:te.call(v,Se)}:void 0}const ee=Wt({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:T,onItemMouseLeave:D}),Y=F(()=>({...h.value,rangeValues:l.value,disabledDate:K(0),dateRender:ae(0),onSelect:y.value?U:P,onCellMouseEnter:M,onHeaderLabelClick:j})),Q=F(()=>({...p.value,rangeValues:l.value,disabledDate:K(1),dateRender:ae(1),onSelect:S.value?W:P,onCellMouseEnter:M,onHeaderLabelClick:H}));return{pick:kf,classNames:w,showShortcuts:k,shortcutsProps:ee,startPanelProps:Y,endPanelProps:Q,getDisabledTimeFunc:oe,onConfirmBtnClick:$,currentDateView:x,onStartTimePickerSelect:L,onEndTimePickerSelect:B,onStartHeaderPanelSelect:U,onEndHeaderPanelSelect:W}}});function l$e(e,t,n,r,i,a){const s=Ee("PanelShortcuts"),l=Ee("YearPanel"),c=Ee("MonthPanel"),d=Ee("WeekPanel"),h=Ee("QuarterPanel"),p=Ee("DatePanel"),v=Ee("RenderFunction"),g=Ee("PanelFooter");return z(),X("div",{class:fe(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(z(),Ze(s,qi(Ft({key:0},e.shortcutsProps)),null,16)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-range-panel-wrapper`)},[Ae(" panel "),I("div",{class:fe(`${e.prefixCls}-range`)},[I("div",{class:fe(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(z(),X(Pt,{key:0},[e.startHeaderMode==="year"?(z(),Ze(l,qi(Ft({key:0},e.startPanelProps)),null,16)):Ae("v-if",!0),e.endHeaderMode==="year"?(z(),Ze(l,qi(Ft({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(z(),Ze(c,Ft({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(z(),Ze(c,Ft({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Ae("v-if",!0)],64)):(z(),X(Pt,{key:1},[Ae(" week "),e.mode==="week"?(z(),X(Pt,{key:0},[O(d,Ft(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),O(d,Ft(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(z(),X(Pt,{key:1},[Ae(" month "),O(c,Ft(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),O(c,Ft(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(z(),X(Pt,{key:2},[Ae(" year "),O(l,qi(wa(e.startPanelProps)),null,16),O(l,qi(wa(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(z(),X(Pt,{key:3},[Ae(" quarter "),O(h,qi(wa(e.startPanelProps)),null,16),O(h,qi(wa(e.endPanelProps)),null,16)],64)):(z(),X(Pt,{key:4},[Ae(" date "),O(p,Ft({currentView:e.currentDateView,"onUpdate:currentView":t[0]||(t[0]=y=>e.currentDateView=y)},e.startPanelProps,{"is-range":"",value:e.value&&e.value[0],"footer-value":e.footerValue&&e.footerValue[0],"time-picker-value":e.timePickerValue&&e.timePickerValue[0],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(0),disabled:e.disabled[0],onTimePickerSelect:e.onStartTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"]),O(p,Ft({currentView:e.currentDateView,"onUpdate:currentView":t[1]||(t[1]=y=>e.currentDateView=y)},e.endPanelProps,{"is-range":"",value:e.value&&e.value[1],"footer-value":e.footerValue&&e.footerValue[1],"time-picker-value":e.timePickerValue&&e.timePickerValue[1],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(1),disabled:e.disabled[1],onTimePickerSelect:e.onEndTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"])],64))],64))],2)],2),Ae(" footer "),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:ce(()=>[e.$slots.extra?mt(e.$slots,"extra",{key:0}):(z(),Ze(v,{key:1,"render-func":e.extra},null,8,["render-func"]))]),key:"0"}:void 0,e.showShortcuts&&e.shortcutsPosition==="bottom"?{name:"btn",fn:ce(()=>[O(s,qi(wa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-confirm-btn","confirm-btn-disabled","onConfirmBtnClick"])],2),e.showShortcuts&&e.shortcutsPosition==="right"?(z(),Ze(s,qi(Ft({key:1},e.shortcutsProps)),null,16)):Ae("v-if",!0)],2)}var u$e=Ue(a$e,[["render",l$e]]);function c$e(e){const{timePickerProps:t,selectedValue:n}=tn(e),r=F(()=>{var w;return(w=n?.value)==null?void 0:w[0]}),i=F(()=>{var w;return(w=n?.value)==null?void 0:w[1]}),a=F(()=>{var w;return(w=t?.value)==null?void 0:w.defaultValue}),s=F(()=>nr(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=F(()=>nr(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,d,h]=uV(Wt({timePickerProps:s,selectedValue:r})),[p,v,g]=uV(Wt({timePickerProps:l,selectedValue:i})),y=F(()=>[c.value,p.value]);function S(w){w&&(d(w[0]),v(w[1]))}function k(){h(),g()}return[y,S,k]}const d$e=xe({name:"RangePicker",components:{RangePickerPanel:u$e,DateRangeInput:k0e,Trigger:va,IconCalendar:sS},inheritAttrs:!1,props:{mode:{type:String,default:"date"},modelValue:{type:Array},defaultValue:{type:Array},pickerValue:{type:Array},defaultPickerValue:{type:Array},disabled:{type:[Boolean,Array],default:!1},dayStartOfWeek:{type:Number,default:0},format:{type:String},valueFormat:{type:String},showTime:{type:Boolean},timePickerProps:{type:Object},placeholder:{type:Array},disabledDate:{type:Function},disabledTime:{type:Function},separator:{type:String},exchangeTime:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},triggerProps:{type:Object},unmountOnClose:{type:Boolean},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,showTime:i,format:a,modelValue:s,defaultValue:l,popupVisible:c,defaultPopupVisible:d,placeholder:h,timePickerProps:p,disabled:v,disabledDate:g,disabledTime:y,locale:S,pickerValue:k,defaultPickerValue:w,valueFormat:x,size:E,error:_,dayStartOfWeek:T,exchangeTime:D,previewShortcut:P,showConfirmBtn:M}=tn(e),{locale:$}=No(),L=Pn(Za,void 0);$s(()=>{Ppe($.value,T.value)});const B=F(()=>{var st;return!(!D.value||!((st=L?.exchangeTime)==null||st))}),{mergedSize:j,mergedDisabled:H,mergedError:U,eventHandlers:W}=Do({size:E,error:_}),K=_0e(Wt({locale:S})),oe=Me("picker"),ae=F(()=>h?.value||{date:K("datePicker.rangePlaceholder.date"),month:K("datePicker.rangePlaceholder.month"),year:K("datePicker.rangePlaceholder.year"),week:K("datePicker.rangePlaceholder.week"),quarter:K("datePicker.rangePlaceholder.quarter")}[r.value]||K("datePicker.rangePlaceholder.date")),{format:ee,valueFormat:Y,parseValueFormat:Q}=y0e(Wt({mode:r,format:a,showTime:i,valueFormat:x})),ie=F(()=>{const st=v.value===!0||H.value||nr(v.value)&&v.value[0]===!0,ut=v.value===!0||H.value||nr(v.value)&&v.value[1]===!0;return[st,ut]}),q=F(()=>ie.value[0]&&ie.value[1]);function te(st=0){return ie.value[st]?st^1:st}const Se=ue(),Fe=ue(te()),ve=F(()=>{const st=Fe.value,ut=st^1;return ie.value[ut]?st:ut}),Re=F(()=>ie.value[Fe.value^1]),{value:Ge,setValue:nt}=t$e(Wt({modelValue:s,defaultValue:l,format:Q})),[Ie,_e]=Ya(),[me,ge]=Ya(),Be=F(()=>{var st;return(st=Ie.value)!=null?st:Ge.value}),Ye=F(()=>{var st,ut;return(ut=(st=me.value)!=null?st:Ie.value)!=null?ut:Ge.value}),[Ke,at]=Ya(),ft=ue(),ct=ue(),[Ct,xt]=pa(d.value,Wt({value:c})),Rt=st=>{Ct.value!==st&&(xt(st),t("popup-visible-change",st),t("update:popupVisible",st))},{startHeaderValue:Ht,endHeaderValue:Jt,startHeaderOperations:rn,endHeaderOperations:vt,resetHeaderValue:Ve,setHeaderValue:Oe}=n$e(Wt({mode:r,startHeaderMode:ft,endHeaderMode:ct,value:k,defaultValue:w,selectedValue:Ye,format:Q,onChange:st=>{const ut=TR(st,Y.value),Mt=ff(st,Q.value),Qt=Cu(st);t("picker-value-change",ut,Qt,Mt),t("update:pickerValue",ut)}}));function Ce(st){ft.value=st}function We(st){ct.value=st}function $e(st){let ut=Ht.value;ut=ut.set("year",st.year()),ft.value==="month"&&(ut=ut.set("month",st.month())),Oe([ut,Jt.value]),ft.value=void 0}function dt(st){let ut=Jt.value;ut=ut.set("year",st.year()),ct.value==="month"&&(ut=ut.set("month",st.month())),Oe([Ht.value,ut]),ct.value=void 0}const Qe=ue([Ye.value[0]||Xa(),Ye.value[1]||Xa()]);It(Ye,()=>{const[st,ut]=Ye.value;Qe.value[0]=st||Qe.value[0],Qe.value[1]=ut||Qe.value[1]});const[Le,ht,Vt]=c$e(Wt({timePickerProps:p,selectedValue:Ye})),Ut=F(()=>r.value==="date"&&i.value),Lt=F(()=>Ut.value||p.value),Xt=b0e(Wt({mode:r,isRange:!0,showTime:i,disabledDate:g,disabledTime:y})),Dn=F(()=>Ut.value||M.value),rr=F(()=>Dn.value&&(!Hp(Be.value)||Xt(Be.value[0],"start")||Xt(Be.value[1],"end")));It(Ct,st=>{ft.value=void 0,ct.value=void 0,_e(void 0),ge(void 0),st&&(Ve(),Vt(),Fe.value=te(Fe.value),dn(()=>Xn(Fe.value))),st||at(void 0)}),It(Fe,()=>{e.disabledInput&&(Xn(Fe.value),at(void 0))});function Xr(st,ut){var Mt,Qt;const Kt=st?TR(st,Y.value):void 0,pn=ff(st,Q.value),mn=Cu(st);_H(st,Ge.value)&&(t("update:modelValue",Kt),t("change",Kt,mn,pn),(Qt=(Mt=W.value)==null?void 0:Mt.onChange)==null||Qt.call(Mt)),ut&&t("ok",Kt,mn,pn)}function Gt(st){let ut=i_(st);return Lt.value&&!B.value&&(ut=[Cr(ut[0],st[0]),Cr(ut[1],st[1])]),ut}function Yt(st,ut,Mt){if(Xt(st?.[0],"start")||Xt(st?.[1],"end"))return;let Qt=st?[...st]:void 0;Hp(Qt)&&(Qt=Gt(Qt)),Xr(Qt,Mt),nt(Qt||[]),_e(void 0),ge(void 0),at(void 0),ft.value=void 0,ct.value=void 0,Tl(ut)&&Rt(ut)}function sn(st){const ut=TR(st,Y.value),Mt=ff(st,Q.value),Qt=Cu(st);t("select",ut,Qt,Mt)}function An(st,ut){const{emitSelect:Mt=!1,updateHeader:Qt=!1}=ut||{};let Kt=[...st];Hp(Kt)&&(Kt=Gt(Kt)),_e(Kt),ge(void 0),at(void 0),ft.value=void 0,ct.value=void 0,Mt&&sn(Kt),Qt&&Ve()}function un(st,ut){const{updateHeader:Mt=!1}=ut||{};ge(st),at(void 0),Mt&&Ve()}function Xn(st){Se.value&&Se.value.focus&&Se.value.focus(st)}function Cr(st,ut){return Lt.value?s0e(Xa(),st,ut):st}function ro(st){Rt(st)}function $t(st){if(Ie.value&&Ye.value[ve.value]&&(!Dn.value||!Hp(Ie.value))){const ut=[...Ye.value],Mt=Cr(st,Le.value[Fe.value]);ut[Fe.value]=Mt,un(ut)}}function bn(st=!1){return Re.value?[...Ge.value]:Ie.value?st||!Hp(Ie.value)?[...Ie.value]:[]:st?[...Ge.value]:[]}function kr(st){const ut=bn(),Mt=Cr(st,Le.value[Fe.value]);ut[Fe.value]=Mt,sn(ut),!Dn.value&&Hp(ut)?Yt(ut,!1):(An(ut),Hp(ut)?Fe.value=0:Fe.value=ve.value)}function ar(st,ut){const Mt=ut==="start"?0:1,Qt=Cr(Le.value[Mt],st),Kt=[...Le.value];Kt[Mt]=Qt,ht(Kt);const pn=bn(!0);pn[Mt]&&(pn[Mt]=Qt,An(pn,{emitSelect:!0}))}let Ur;Yr(()=>{clearTimeout(Ur)});function se(st){clearTimeout(Ur),un(st,{updateHeader:!0})}function re(){clearTimeout(Ur),Ur=setTimeout(()=>{ge(void 0),at(void 0),Ve()},100)}function ne(st,ut){t("select-shortcut",ut),Yt(st,!1)}function J(){Yt(Ye.value,!1,!0)}function de(st){st.stopPropagation(),Yt(void 0),t("clear")}function ke(st){Rt(!0);const ut=st.target.value;if(!ut){at(void 0);return}const Mt=ff(Ye.value,ee.value),Qt=nr(Ke.value)?[...Ke.value]:Mt||[];if(Qt[Fe.value]=ut,at(Qt),!q8(ut,ee.value))return;const Kt=Ms(ut,ee.value);if(Xt(Kt,Fe.value===0?"start":"end"))return;const pn=nr(Ye.value)?[...Ye.value]:[];pn[Fe.value]=Kt,An(pn,{updateHeader:!0})}function we(){K9e(Ye.value)?Yt(Ye.value,!1):Fe.value=ve.value}const Te=F(()=>({format:ee.value,...Ea(p?.value||{},["defaultValue"]),visible:Ct.value})),rt=F(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),ot=Wt({headerValue:Ht,headerOperations:rn,headerIcons:rt}),yt=Wt({headerValue:Jt,headerOperations:vt,headerIcons:rt}),De=F(()=>({...kf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:oe,format:Q.value,value:Ye.value,showConfirmBtn:Dn.value,confirmBtnDisabled:rr.value,timePickerValue:Le.value,timePickerProps:Te.value,extra:n.extra,dateRender:n.cell,startHeaderProps:ot,endHeaderProps:yt,footerValue:Qe.value,disabled:ie.value,visible:Ct.value,onCellClick:kr,onCellMouseEnter:$t,onShortcutClick:ne,onShortcutMouseEnter:P.value?se:void 0,onShortcutMouseLeave:P.value?re:void 0,onConfirm:J,onTimePickerSelect:ar,startHeaderMode:ft.value,endHeaderMode:ct.value,onStartHeaderLabelClick:Ce,onEndHeaderLabelClick:We,onStartHeaderSelect:$e,onEndHeaderSelect:dt}));return{prefixCls:oe,refInput:Se,computedFormat:ee,computedPlaceholder:ae,panelVisible:Ct,panelValue:Ye,inputValue:Ke,focusedIndex:Fe,triggerDisabled:q,mergedSize:j,mergedError:U,onPanelVisibleChange:ro,onInputClear:de,onInputChange:ke,onInputPressEnter:we,rangePanelProps:De}}});function f$e(e,t,n,r,i,a){const s=Ee("IconCalendar"),l=Ee("DateRangeInput"),c=Ee("RangePickerPanel"),d=Ee("Trigger");return e.hideTrigger?(z(),Ze(c,qi(Ft({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(z(),Ze(d,Ft({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{"unmount-on-close":e.unmountOnClose,position:e.position,disabled:e.triggerDisabled||e.readonly,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:ce(()=>[O(c,qi(wa(e.rangePanelProps)),null,16)]),default:ce(()=>[mt(e.$slots,"default",{},()=>[O(l,Ft({ref:"refInput"},e.$attrs,{focusedIndex:e.focusedIndex,"onUpdate:focusedIndex":t[0]||(t[0]=h=>e.focusedIndex=h),size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.disabled,readonly:e.readonly||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.panelValue,format:e.computedFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter}),yo({"suffix-icon":ce(()=>[mt(e.$slots,"suffix-icon",{},()=>[O(s)])]),separator:ce(()=>[mt(e.$slots,"separator",{},()=>[He(je(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:ce(()=>[mt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["focusedIndex","size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter"])])]),_:3},16,["unmount-on-close","position","disabled","popup-visible","popup-container","onPopupVisibleChange"]))}var MC=Ue(d$e,[["render",f$e]]);const w0e=Object.assign(AR,{WeekPicker:LC,MonthPicker:DC,YearPicker:PC,QuarterPicker:RC,RangePicker:MC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+AR.name,AR),e.component(n+PC.name,PC),e.component(n+RC.name,RC),e.component(n+DC.name,DC),e.component(n+LC.name,LC),e.component(n+MC.name,MC)}}),J8=["xxl","xl","lg","md","sm","xs"],Cw={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};let _v=[],h$e=-1,Ew={};const Q8={matchHandlers:{},dispatch(e,t){return Ew=e,_v.length<1?!1:(_v.forEach(n=>{n.func(Ew,t)}),!0)},subscribe(e){_v.length===0&&this.register();const t=(++h$e).toString();return _v.push({token:t,func:e}),e(Ew,null),t},unsubscribe(e){_v=_v.filter(t=>t.token!==e),_v.length===0&&this.unregister()},unregister(){Object.keys(Cw).forEach(e=>{const t=Cw[e];if(!t)return;const n=this.matchHandlers[t];n&&n.mql&&n.listener&&(n.mql.removeEventListener?n.mql.removeEventListener("change",n.listener):n.mql.removeListener(n.listener))})},register(){Object.keys(Cw).forEach(e=>{const t=Cw[e];if(!t)return;const n=({matches:i})=>{this.dispatch({...Ew,[e]:i},e)},r=window.matchMedia(t);r.addEventListener?r.addEventListener("change",n):r.addListener(n),this.matchHandlers[t]={mql:r,listener:n},n(r)})}};function Ire(e){return gr(e)}function Ph(e,t,n=!1){const r=ue({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),i=F(()=>{let s=t;if(Ire(e.value))for(let l=0;l{a=Q8.subscribe(s=>{Ire(e.value)&&(r.value=s)})}),Yr(()=>{a&&Q8.unsubscribe(a)}),i}var IR=xe({name:"Descriptions",props:{data:{type:Array,default:()=>[]},column:{type:[Number,Object],default:3},title:String,layout:{type:String,default:"horizontal"},align:{type:[String,Object],default:"left"},size:{type:String},bordered:{type:Boolean,default:!1},labelStyle:{type:Object},valueStyle:{type:Object},tableLayout:{type:String,default:"auto"}},setup(e,{slots:t}){const{column:n,size:r}=tn(e),i=Me("descriptions"),{mergedSize:a}=Aa(r),s=Ph(n,3,!0),l=F(()=>{var T;return(T=gr(e.align)?e.align.label:e.align)!=null?T:"left"}),c=F(()=>{var T;return(T=gr(e.align)?e.align.value:e.align)!=null?T:"left"}),d=F(()=>({textAlign:l.value,...e.labelStyle})),h=F(()=>({textAlign:c.value,...e.valueStyle})),p=T=>{const D=[];let P=[],M=0;const $=()=>{if(P.length){const L=s.value-M;P[P.length-1].span+=L,D.push(P)}};return T.forEach(L=>{var B,j;const H=Math.min((j=Wi(L)?(B=L.props)==null?void 0:B.span:L.span)!=null?j:1,s.value);M+H>s.value&&($(),P=[],M=0),P.push({data:L,span:H}),M+=H}),$(),D},v=F(()=>{var T;return p((T=e.data)!=null?T:[])}),g=(T,D)=>{var P,M,$,L,B;return Wi(T)?O5(T,T.children)&&((M=(P=T.children).label)==null?void 0:M.call(P))||(($=T.props)==null?void 0:$.label):(B=(L=t.label)==null?void 0:L.call(t,{label:T.label,index:D,data:T}))!=null?B:Sn(T.label)?T.label():T.label},y=(T,D)=>{var P,M;return Wi(T)?T:(M=(P=t.value)==null?void 0:P.call(t,{value:T.value,index:D,data:T}))!=null?M:Sn(T.value)?T.value():T.value},S=T=>O(Pt,null,[O("tr",{class:`${i}-row`},[T.map((D,P)=>O("td",{key:`label-${P}`,class:[`${i}-item-label`,`${i}-item-label-block`],style:d.value,colspan:D.span},[g(D.data,P)]))]),O("tr",{class:`${i}-row`},[T.map((D,P)=>O("td",{key:`value-${P}`,class:[`${i}-item-value`,`${i}-item-value-block`],style:h.value,colspan:D.span},[y(D.data,P)]))])]),k=(T,D)=>O("tr",{class:`${i}-row`,key:`tr-${D}`},[T.map(P=>O(Pt,null,[O("td",{class:[`${i}-item-label`,`${i}-item-label-block`],style:d.value},[g(P.data,D)]),O("td",{class:[`${i}-item-value`,`${i}-item-value-block`],style:h.value,colspan:P.span*2-1},[y(P.data,D)])]))]),w=(T,D)=>O("tr",{class:`${i}-row`,key:`inline-${D}`},[T.map((P,M)=>O("td",{key:`item-${M}`,class:`${i}-item`,colspan:P.span},[O("div",{class:[`${i}-item-label`,`${i}-item-label-inline`],style:d.value},[g(P.data,M)]),O("div",{class:[`${i}-item-value`,`${i}-item-value-inline`],style:h.value},[y(P.data,M)])]))]),x=(T,D)=>["inline-horizontal","inline-vertical"].includes(e.layout)?w(T,D):e.layout==="vertical"?S(T):k(T,D),E=F(()=>[i,`${i}-layout-${e.layout}`,`${i}-size-${a.value}`,{[`${i}-border`]:e.bordered},{[`${i}-table-layout-fixed`]:e.tableLayout==="fixed"}]),_=()=>{var T,D;const P=(D=(T=t.title)==null?void 0:T.call(t))!=null?D:e.title;return P?O("div",{class:`${i}-title`},[P]):null};return()=>{const T=t.default?p(yf(t.default())):v.value;return O("div",{class:E.value},[_(),O("div",{class:`${i}-body`},[O("table",{class:`${i}-table`},[O("tbody",null,[T.map((D,P)=>x(D,P))])])])])}}});const p$e=xe({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Me("descriptions")}}});function v$e(e,t,n,r,i,a){return mt(e.$slots,"default")}var OC=Ue(p$e,[["render",v$e]]);const m$e=Object.assign(IR,{DescriptionsItem:OC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+IR.name,IR),e.component(n+OC.name,OC)}});var LR=xe({name:"Divider",props:{direction:{type:String,default:"horizontal"},orientation:{type:String,default:"center"},type:{type:String},size:{type:Number},margin:{type:[Number,String]}},setup(e,{slots:t}){const n=Me("divider"),r=F(()=>e.direction==="horizontal"),i=F(()=>{const a={};if(e.size&&(a[r.value?"border-bottom-width":"border-left-width"]=et(e.size)?`${e.size}px`:e.size),e.type&&(a[r.value?"border-bottom-style":"border-left-style"]=e.type),!wn(e.margin)){const s=et(e.margin)?`${e.margin}px`:e.margin;a.margin=r.value?`${s} 0`:`0 ${s}`}return a});return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t),l=[n,`${n}-${e.direction}`,{[`${n}-with-text`]:s}];return O("div",{role:"separator",class:l,style:i.value},[s&&e.direction==="horizontal"&&O("span",{class:[`${n}-text`,`${n}-text-${e.orientation}`]},[s])])}}});const g$e=Object.assign(LR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+LR.name,LR)}}),x0e=e=>{const t=ue(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const a=e.value;if(!t.value&&a.style.overflow!=="hidden"){const s=A7e(a);(s>0||T7e(a))&&(n.overflow=a.style.overflow,n.width=a.style.width,n.boxSizing=a.style.boxSizing,a.style.overflow="hidden",a.style.width=`${a.offsetWidth-s}px`,a.style.boxSizing="border-box",t.value=!0)}}},resetOverflow:()=>{if(e.value&&t.value){const a=e.value;a.style.overflow=n.overflow,a.style.width=n.width,a.style.boxSizing=n.boxSizing,t.value=!1}}}},y$e=["top","right","bottom","left"],b$e=xe({name:"Drawer",components:{ClientOnly:hH,ArcoButton:Jo,IconHover:Lo,IconClose:rs},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>y$e.includes(e)},title:String,mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},unmountOnClose:Boolean,width:{type:[Number,String],default:250},height:{type:[Number,String],default:250},popupContainer:{type:[String,Object],default:"body"},drawerStyle:{type:Object},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{popupContainer:n}=tn(e),r=Me("drawer"),{t:i}=No(),a=ue(e.defaultVisible),s=F(()=>{var H;return(H=e.visible)!=null?H:a.value}),l=ue(!1),c=F(()=>e.okLoading||l.value),{teleportContainer:d,containerRef:h}=pH({popupContainer:n,visible:s}),p=ue(s.value);let v=!1;const g=H=>{e.escToClose&&H.key===Wo.ESC&&w()&&D(H)},y=()=>{e.escToClose&&!v&&(v=!0,Mi(document.documentElement,"keydown",g))},S=()=>{v&&(v=!1,no(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:w}=l3("dialog",{visible:s}),x=F(()=>h?.value===document.body);let E=0;const _=()=>{E++,l.value&&(l.value=!1),a.value=!1,t("update:visible",!1)},T=async H=>{const U=E,W=await new Promise(async K=>{var oe;if(Sn(e.onBeforeOk)){let ae=e.onBeforeOk((ee=!0)=>K(ee));if((Pm(ae)||!Tl(ae))&&(l.value=!0),Pm(ae))try{ae=(oe=await ae)!=null?oe:!0}catch(ee){throw ae=!1,ee}Tl(ae)&&K(ae)}else K(!0)});U===E&&(W?(t("ok",H),_()):l.value&&(l.value=!1))},D=H=>{var U;let W=!0;Sn(e.onBeforeCancel)&&(W=(U=e.onBeforeCancel())!=null?U:!1),W&&(t("cancel",H),_())},P=H=>{e.maskClosable&&D(H)},M=()=>{s.value&&t("open")},$=()=>{s.value||(p.value=!1,B(),t("close"))},{setOverflowHidden:L,resetOverflow:B}=x0e(h);fn(()=>{s.value&&(p.value=!0,L(),y())}),_o(()=>{B(),S()}),It(s,H=>{a.value!==H&&(a.value=H),H?(t("beforeOpen"),p.value=!0,L(),y()):(t("beforeClose"),S())});const j=F(()=>{var H;const U={[e.placement]:0,...(H=e.drawerStyle)!=null?H:{}};return["right","left"].includes(e.placement)?U.width=et(e.width)?`${e.width}px`:e.width:U.height=et(e.height)?`${e.height}px`:e.height,U});return{prefixCls:r,style:j,t:i,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:T,handleCancel:D,handleOpen:M,handleClose:$,handleMask:P,isFixed:x,teleportContainer:d}}});function _$e(e,t,n,r,i,a){const s=Ee("icon-close"),l=Ee("icon-hover"),c=Ee("arco-button"),d=Ee("client-only");return z(),Ze(d,null,{default:ce(()=>[(z(),Ze(Jm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ci((z(),X("div",Ft({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[O(Cs,{name:"fade-drawer",appear:""},{default:ce(()=>[e.mask?Ci((z(),X("div",{key:0,class:fe(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[Ko,e.computedVisible]]):Ae("v-if",!0)]),_:1}),O(Cs,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:ce(()=>[Ci(I("div",{class:fe(e.prefixCls),style:qe(e.style)},[e.header?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-header`)},[mt(e.$slots,"header",{},()=>[e.$slots.title||e.title?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)):Ae("v-if",!0),e.closable?(z(),X("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:fe(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[O(l,null,{default:ce(()=>[O(s)]),_:1})],2)):Ae("v-if",!0)])],2)):Ae("v-if",!0),I("div",{class:fe([`${e.prefixCls}-body`,e.bodyClass]),style:qe(e.bodyStyle)},[mt(e.$slots,"default")],6),e.footer?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer",{},()=>[e.hideCancel?Ae("v-if",!0):(z(),Ze(c,Ft({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:ce(()=>[He(je(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),O(c,Ft({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:ce(()=>[He(je(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Ae("v-if",!0)],6),[[Ko,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[Ko,e.computedVisible||e.mounted]]):Ae("v-if",!0)],8,["to","disabled"]))]),_:3})}var $C=Ue(b$e,[["render",_$e]]);const Lre=(e,t)=>{let n=$5("drawer");const r=()=>{d.component&&(d.component.props.visible=!1),Sn(e.onOk)&&e.onOk()},i=()=>{d.component&&(d.component.props.visible=!1),Sn(e.onCancel)&&e.onCancel()},a=async()=>{await dn(),n&&(Jc(null,n),document.body.removeChild(n)),n=null,Sn(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,v])=>{d.component.props[p]=v})},d=O($C,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:i,onClose:a},...Ea(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),header:typeof e.header=="boolean"?e.header:void 0,footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Wl(e.content),header:typeof e.header!="boolean"?Wl(e.header):void 0,title:Wl(e.title),footer:typeof e.footer!="boolean"?Wl(e.footer):void 0});return(t??cV._context)&&(d.appContext=t??cV._context),Jc(d,n),document.body.appendChild(n),{close:s,update:l}},cV=Object.assign($C,{open:Lre,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+$C.name,$C);const r={open:(i,a=e._context)=>Lre(i,a)};e.config.globalProperties.$drawer=r},_context:null});function C0e(e){return e===Object(e)&&Object.keys(e).length!==0}function S$e(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var i=r.el,a=r.top,s=r.left;i.scroll&&n?i.scroll({top:a,left:s,behavior:t}):(i.scrollTop=a,i.scrollLeft=s)})}function k$e(e){return e===!1?{block:"end",inline:"nearest"}:C0e(e)?e:{block:"start",inline:"nearest"}}function E0e(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(C0e(t)&&typeof t.behavior=="function")return t.behavior(n?eV(e,t):[]);if(n){var r=k$e(t);return S$e(eV(e,r),r.behavior)}}const Dre=["success","warning","error","validating"],w$e=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||Dre.indexOf(r)>Dre.indexOf(t))&&(t=e[n])}return t},x$e=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},T0e=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},C$e=xe({name:"Form",props:{model:{type:Object,required:!0},layout:{type:String,default:"horizontal"},size:{type:String},labelColProps:{type:Object,default:()=>({span:5,offset:0})},wrapperColProps:{type:Object,default:()=>({span:19,offset:0})},labelColStyle:Object,wrapperColStyle:Object,labelAlign:{type:String,default:"right"},disabled:{type:Boolean,default:void 0},rules:{type:Object},autoLabelWidth:{type:Boolean,default:!1},id:{type:String},scrollToFirstError:{type:Boolean,default:!1}},emits:{submit:(e,t)=>!0,submitSuccess:(e,t)=>!0,submitFailed:(e,t)=>!0},setup(e,{emit:t}){const n=Me("form"),r=ue(),{id:i,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:v,size:g,rules:y}=tn(e),{mergedSize:S}=Aa(g),k=F(()=>e.layout==="horizontal"&&e.autoLabelWidth),w=[],x=[],E=Wt({}),_=F(()=>Math.max(...Object.values(E))),T=ae=>{ae&&ae.field&&w.push(ae)},D=ae=>{ae&&ae.field&&w.splice(w.indexOf(ae),1)},P=ae=>{w.forEach(ee=>{ae[ee.field]&&ee.setField(ae[ee.field])})},M=(ae,ee)=>{ee&&E[ee]!==ae&&(E[ee]=ae)},$=ae=>{ae&&delete E[ae]},L=ae=>{const ee=ae?[].concat(ae):[];w.forEach(Y=>{(ee.length===0||ee.includes(Y.field))&&Y.resetField()})},B=ae=>{const ee=ae?[].concat(ae):[];w.forEach(Y=>{(ee.length===0||ee.includes(Y.field))&&Y.clearValidate()})},j=(ae,ee)=>{const Q=(r.value||document.body).querySelector(`#${T0e(e.id,ae)}`);Q&&E0e(Q,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...ee})},H=ae=>{const ee=Tl(e.scrollToFirstError)?void 0:e.scrollToFirstError;j(ae,ee)},U=ae=>{const ee=[];return w.forEach(Y=>{ee.push(Y.validate())}),Promise.all(ee).then(Y=>{const Q={};let ie=!1;return Y.forEach(q=>{q&&(ie=!0,Q[q.field]=q)}),ie&&e.scrollToFirstError&&H(Object.keys(Q)[0]),Sn(ae)&&ae(ie?Q:void 0),ie?Q:void 0})},W=(ae,ee)=>{const Y=[];for(const Q of w)(nr(ae)&&ae.includes(Q.field)||ae===Q.field)&&Y.push(Q.validate());return Promise.all(Y).then(Q=>{const ie={};let q=!1;return Q.forEach(te=>{te&&(q=!0,ie[te.field]=te)}),q&&e.scrollToFirstError&&H(Object.keys(ie)[0]),Sn(ee)&&ee(q?ie:void 0),q?ie:void 0})},K=ae=>{const ee=[];w.forEach(Y=>{ee.push(Y.validate())}),Promise.all(ee).then(Y=>{const Q={};let ie=!1;Y.forEach(q=>{q&&(ie=!0,Q[q.field]=q)}),ie?(e.scrollToFirstError&&H(Object.keys(Q)[0]),t("submitFailed",{values:a.value,errors:Q},ae)):t("submitSuccess",a.value,ae),t("submit",{values:a.value,errors:ie?Q:void 0},ae)})};return oi(fH,Wt({id:i,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:v,model:a,size:S,rules:y,fields:w,touchedFields:x,addField:T,removeField:D,validateField:W,setLabelWidth:M,removeLabelWidth:$,maxLabelWidth:_,autoLabelWidth:k})),{cls:F(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:K,innerValidate:U,innerValidateField:W,innerResetFields:L,innerClearValidate:B,innerSetFields:P,innerScrollToField:j}},methods:{validate(e){return this.innerValidate(e)},validateField(e,t){return this.innerValidateField(e,t)},resetFields(e){return this.innerResetFields(e)},clearValidate(e){return this.innerClearValidate(e)},setFields(e){return this.innerSetFields(e)},scrollToField(e){return this.innerScrollToField(e)}}}),E$e=["id"];function T$e(e,t,n,r,i,a){return z(),X("form",{id:e.id,ref:"formRef",class:fe(e.cls),onSubmit:t[0]||(t[0]=fs((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[mt(e.$slots,"default")],42,E$e)}var DR=Ue(C$e,[["render",T$e]]),d3=Object.prototype.toString;function Y5(e){return d3.call(e)==="[object Array]"}function Rh(e){return d3.call(e)==="[object Object]"}function dV(e){return d3.call(e)==="[object String]"}function A$e(e){return d3.call(e)==="[object Number]"&&e===e}function I$e(e){return d3.call(e)==="[object Boolean]"}function fV(e){return d3.call(e)==="[object Function]"}function L$e(e){return Rh(e)&&Object.keys(e).length===0}function Kv(e){return e==null||e===""}function A0e(e){return Y5(e)&&!e.length}var PH=function(e,t){if(typeof e!="object"||typeof t!="object")return e===t;if(fV(e)&&fV(t))return e===t||e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){var r=PH(e[n],t[n]);if(!r)return!1}return!0},RH=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var i=n[r],a=t?.[r];n[r]=Rh(i)?Object.assign(Object.assign({},i),a):a||i}),n},D$e=function(e,t){for(var n=t.split("."),r=e,i=0;i=i,this.getValidateMsg("string.minLength",{minLength:i})):this},t.prototype.length=function(i){return this.obj?this.validate(this.obj.length===i,this.getValidateMsg("string.length",{length:i})):this},t.prototype.match=function(i){var a=i instanceof RegExp;return a&&(i.lastIndex=0),this.validate(this.obj===void 0||a&&i.test(this.obj),this.getValidateMsg("string.match",{pattern:i}))},n.uppercase.get=function(){return this.obj?this.validate(this.obj.toUpperCase()===this.obj,this.getValidateMsg("string.uppercase")):this},n.lowercase.get=function(){return this.obj?this.validate(this.obj.toLowerCase()===this.obj,this.getValidateMsg("string.lowercase")):this},Object.defineProperties(t.prototype,n),t})($d),M$e=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"number"})),this.validate(i&&i.strict?A$e(this.obj):!0,this.getValidateMsg("type.number"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={positive:{configurable:!0},negative:{configurable:!0}};return t.prototype.min=function(i){return Kv(this.obj)?this:this.validate(this.obj>=i,this.getValidateMsg("number.min",{min:i}))},t.prototype.max=function(i){return Kv(this.obj)?this:this.validate(this.obj<=i,this.getValidateMsg("number.max",{max:i}))},t.prototype.equal=function(i){return Kv(this.obj)?this:this.validate(this.obj===i,this.getValidateMsg("number.equal",{equal:i}))},t.prototype.range=function(i,a){return Kv(this.obj)?this:this.validate(this.obj>=i&&this.obj<=a,this.getValidateMsg("number.range",{min:i,max:a}))},n.positive.get=function(){return Kv(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return Kv(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})($d),O$e=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"array"})),this.validate(i&&i.strict?Y5(this.obj):!0,this.getValidateMsg("type.array",{value:this.obj,type:this.type}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.length=function(i){return this.obj?this.validate(this.obj.length===i,this.getValidateMsg("array.length",{value:this.obj,length:i})):this},t.prototype.minLength=function(i){return this.obj?this.validate(this.obj.length>=i,this.getValidateMsg("array.minLength",{value:this.obj,minLength:i})):this},t.prototype.maxLength=function(i){return this.obj?this.validate(this.obj.length<=i,this.getValidateMsg("array.maxLength",{value:this.obj,maxLength:i})):this},t.prototype.includes=function(i){var a=this;return this.obj?this.validate(i.every(function(s){return a.obj.indexOf(s)!==-1}),this.getValidateMsg("array.includes",{value:this.obj,includes:i})):this},t.prototype.deepEqual=function(i){return this.obj?this.validate(PH(this.obj,i),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:i})):this},n.empty.get=function(){return this.validate(A0e(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})($d),$$e=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"object"})),this.validate(i&&i.strict?Rh(this.obj):!0,this.getValidateMsg("type.object"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.deepEqual=function(i){return this.obj?this.validate(PH(this.obj,i),this.getValidateMsg("object.deepEqual",{deepEqual:i})):this},t.prototype.hasKeys=function(i){var a=this;return this.obj?this.validate(i.every(function(s){return a.obj[s]}),this.getValidateMsg("object.hasKeys",{keys:i})):this},n.empty.get=function(){return this.validate(L$e(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})($d),B$e=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"boolean"})),this.validate(i&&i.strict?I$e(this.obj):!0,this.getValidateMsg("type.boolean"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={true:{configurable:!0},false:{configurable:!0}};return n.true.get=function(){return this.validate(this.obj===!0,this.getValidateMsg("boolean.true"))},n.false.get=function(){return this.validate(this.obj===!1,this.getValidateMsg("boolean.false"))},Object.defineProperties(t.prototype,n),t})($d),N$e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,F$e=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),j$e=/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/,V$e=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"type"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={email:{configurable:!0},url:{configurable:!0},ip:{configurable:!0}};return n.email.get=function(){return this.type="email",this.validate(this.obj===void 0||N$e.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||F$e.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||j$e.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})($d),z$e=(function(e){function t(r,i){e.call(this,r,Object.assign(Object.assign({},i),{type:"custom"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={validate:{configurable:!0}};return n.validate.get=function(){var r=this;return function(i,a){var s;if(i)return s=i(r.obj,r.addError.bind(r)),s&&s.then?(a&&s.then(function(){a&&a(r.error)},function(l){console.error(l)}),[s,r]):(a&&a(r.error),r.error)}},Object.defineProperties(t.prototype,n),t})($d),eT=function(e,t){return new I0e(e,Object.assign({field:"value"},t))};eT.globalConfig={};eT.setGlobalConfig=function(e){eT.globalConfig=e||{}};var I0e=function(t,n){var r=eT.globalConfig,i=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:RH(r.validateMessages,n.validateMessages)});this.string=new R$e(t,i),this.number=new M$e(t,i),this.array=new O$e(t,i),this.object=new $$e(t,i),this.boolean=new B$e(t,i),this.type=new V$e(t,i),this.custom=new z$e(t,i)},MH=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};MH.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:RH(this.options.validateMessages,t)})};MH.prototype.validate=function(t,n){var r=this;if(!Rh(t))return;var i=[],a=null;function s(l,c){a||(a={}),(!a[l]||c.requiredError)&&(a[l]=c)}this.schema&&Object.keys(this.schema).forEach(function(l){if(Y5(r.schema[l]))for(var c=function(p){var v=r.schema[l][p],g=v.type,y=v.message;if(!g&&!v.validator)throw"You must specify a type to field "+l+"!";var S=Object.assign(Object.assign({},r.options),{message:y,field:l});"ignoreEmptyString"in v&&(S.ignoreEmptyString=v.ignoreEmptyString),"strict"in v&&(S.strict=v.strict);var k=new I0e(t[l],S),w=k.type[g]||null;if(!w)if(v.validator){w=k.custom.validate(v.validator),Object.prototype.toString.call(w)==="[object Array]"&&w[0].then?i.push({function:w[0],_this:w[1],key:l}):w&&s(l,w);return}else w=k[g];if(Object.keys(v).forEach(function(x){v.required&&(w=w.isRequired),x!=="message"&&w[x]&&v[x]&&typeof w[x]=="object"&&(w=w[x]),w[x]&&v[x]!==void 0&&typeof w[x]=="function"&&(w=w[x](v[x]))}),w.collect(function(x){x&&s(l,x)}),a)return"break"},d=0;d0?Promise.all(i.map(function(l){return l.function})).then(function(){i.forEach(function(l){l._this.error&&s(l.key,l._this.error)}),n&&n(a)}):n&&n(a)};const L0e=Symbol("RowContextInjectionKey"),D0e=Symbol("GridContextInjectionKey"),P0e=Symbol("GridDataCollectorInjectionKey"),U$e=xe({name:"Row",props:{gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start"},align:{type:String,default:"start"},div:{type:Boolean},wrap:{type:Boolean,default:!0}},setup(e){const{gutter:t,align:n,justify:r,div:i,wrap:a}=tn(e),s=Me("row"),l=F(()=>({[`${s}`]:!i.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=F(()=>Array.isArray(t.value)?t.value[0]:t.value),d=F(()=>Array.isArray(t.value)?t.value[1]:0),h=Ph(c,0),p=Ph(d,0),v=F(()=>{const y={};if((h.value||p.value)&&!i.value){const S=-h.value/2,k=-p.value/2;S&&(y.marginLeft=`${S}px`,y.marginRight=`${S}px`),k&&(y.marginTop=`${k}px`,y.marginBottom=`${k}px`)}return y}),g=F(()=>[h.value,p.value]);return oi(L0e,Wt({gutter:g,div:i})),{classNames:l,styles:v}}});function H$e(e,t,n,r,i,a){return z(),X("div",{class:fe(e.classNames),style:qe(e.styles)},[mt(e.$slots,"default")],6)}var lb=Ue(U$e,[["render",H$e]]);function W$e(e){return F(()=>{const{val:n,key:r,xs:i,sm:a,md:s,lg:l,xl:c,xxl:d}=e.value;if(!i&&!a&&!s&&!l&&!c&&!d)return n;const h={};return J8.forEach(p=>{const v=e.value[p];et(v)?h[p]=v:gr(v)&&et(v[r])&&(h[p]=v[r])}),h})}function G$e(e){if(hs(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||et(e))return e;if(hs(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const K$e=xe({name:"Col",props:{span:{type:Number,default:24},offset:{type:Number},order:{type:Number},xs:{type:[Number,Object]},sm:{type:[Number,Object]},md:{type:[Number,Object]},lg:{type:[Number,Object]},xl:{type:[Number,Object]},xxl:{type:[Number,Object]},flex:{type:[Number,String]}},setup(e){const t=Me("col"),n=Pn(L0e,{}),r=F(()=>G$e(e.flex)),i=F(()=>{const{div:p}=n,{span:v,offset:g,order:y,xs:S,sm:k,md:w,lg:x,xl:E,xxl:_}=e,T={[`${t}`]:!p,[`${t}-order-${y}`]:y,[`${t}-${v}`]:!p&&!S&&!k&&!w&&!x&&!E&&!_,[`${t}-offset-${g}`]:g&&g>0},D={xs:S,sm:k,md:w,lg:x,xl:E,xxl:_};return Object.keys(D).forEach(P=>{const M=D[P];M&&et(M)?T[`${t}-${P}-${M}`]=!0:M&&gr(M)&&(T[`${t}-${P}-${M.span}`]=M.span,T[`${t}-${P}-offset-${M.offset}`]=M.offset,T[`${t}-${P}-order-${M.order}`]=M.order)}),T}),a=F(()=>r.value?t:i.value),s=F(()=>{const{gutter:p,div:v}=n,g={};if(Array.isArray(p)&&!v){const y=p[0]&&p[0]/2||0,S=p[1]&&p[1]/2||0;y&&(g.paddingLeft=`${y}px`,g.paddingRight=`${y}px`),S&&(g.paddingTop=`${S}px`,g.paddingBottom=`${S}px`)}return g}),l=F(()=>r.value?{flex:r.value}:{}),c=F(()=>kf(e,J8)),d=W$e(F(()=>({val:e.span,key:"span",...c.value}))),h=Ph(d,24,!0);return{visible:F(()=>!!h.value),classNames:a,styles:F(()=>({...s.value,...l.value}))}}});function q$e(e,t,n,r,i,a){return e.visible?(z(),X("div",{key:0,class:fe(e.classNames),style:qe(e.styles)},[mt(e.$slots,"default")],6)):Ae("v-if",!0)}var ub=Ue(K$e,[["render",q$e]]);function Y$e(e,t){var n,r;const i=(n=t.span)!=null?n:1,a=(r=t.offset)!=null?r:0,s=Math.min(a,e);return{span:Math.min(s>0?i+a:i,e),offset:s,suffix:"suffix"in t?t.suffix!==!1:!1}}function X$e({cols:e,collapsed:t,collapsedRows:n,itemDataList:r}){let i=!1,a=[];function s(l){return Math.ceil(l/e)>n}if(t){let l=0;for(let c=0;c!c.suffix&&!a.includes(d))}else a=r.map((l,c)=>c);return{overflow:i,displayIndexList:a}}const Z$e=xe({name:"Grid",props:{cols:{type:[Number,Object],default:24},rowGap:{type:[Number,Object],default:0},colGap:{type:[Number,Object],default:0},collapsed:{type:Boolean,default:!1},collapsedRows:{type:Number,default:1}},setup(e){const{cols:t,rowGap:n,colGap:r,collapsedRows:i,collapsed:a}=tn(e),s=Ph(t,24),l=Ph(r,0),c=Ph(n,0),d=Me("grid"),h=F(()=>[d]),p=F(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),v=Wt(new Map),g=F(()=>{const S=[];for(const[k,w]of v.entries())S[k]=w;return S}),y=Wt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return $s(()=>{y.cols=s.value,y.colGap=l.value}),$s(()=>{const S=X$e({cols:s.value,collapsed:a.value,collapsedRows:i.value,itemDataList:g.value});y.overflow=S.overflow,y.displayIndexList=S.displayIndexList}),oi(D0e,y),oi(P0e,{collectItemData(S,k){v.set(S,k)},removeItemData(S){v.delete(S)}}),{classNames:h,style:p}}});function J$e(e,t,n,r,i,a){return z(),X("div",{class:fe(e.classNames),style:qe(e.style)},[mt(e.$slots,"default")],6)}var PR=Ue(Z$e,[["render",J$e]]);const Q$e=xe({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Me("grid-item"),n=ue(),{computedIndex:r}=gH({itemRef:n,selector:`.${t}`}),i=Pn(D0e,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=Pn(P0e),s=F(()=>{var k;return(k=i?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=tn(e),d=Ph(l,1),h=Ph(c,0),p=F(()=>Y$e(i.cols,{...e,span:d.value,offset:h.value})),v=F(()=>[t]),g=F(()=>{const{offset:k,span:w}=p.value,{colGap:x}=i;return k>0?{"margin-left":`calc((${`(100% - ${x*(w-1)}px) / ${w}`} * ${k}) + ${x*k}px)`}:{}}),y=F(()=>{const{suffix:k,span:w}=p.value,{cols:x}=i;return k?`${x-w+1}`:`span ${w}`}),S=F(()=>{const{span:k}=p.value;return n.value?[{"grid-column":`${y.value} / span ${k}`},g.value,!s.value||k===0?{display:"none"}:{}]:[]});return $s(()=>{r.value!==-1&&a?.collectItemData(r.value,p.value)}),Yr(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:v,style:S,domRef:n,overflow:F(()=>i.overflow)}}});function eBe(e,t,n,r,i,a){return z(),X("div",{ref:"domRef",class:fe(e.classNames),style:qe(e.style)},[mt(e.$slots,"default",{overflow:e.overflow})],6)}var BC=Ue(Q$e,[["render",eBe]]);const P4=Object.assign(PR,{Row:lb,Col:ub,Item:BC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+lb.name,lb),e.component(n+ub.name,ub),e.component(n+PR.name,PR),e.component(n+BC.name,BC)}}),tBe=xe({name:"Tooltip",components:{Trigger:va},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},content:String,position:{type:String,default:"top"},mini:{type:Boolean,default:!1},backgroundColor:{type:String},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Me("tooltip"),r=ue(e.defaultPopupVisible),i=F(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=F(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=F(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=F(()=>[`${n}-popup-arrow`,e.arrowClass]),d=F(()=>{if(e.backgroundColor||e.arrowStyle)return{backgroundColor:e.backgroundColor,...e.arrowStyle}});return{prefixCls:n,computedPopupVisible:i,contentCls:s,computedContentStyle:l,arrowCls:c,computedArrowStyle:d,handlePopupVisibleChange:a}}});function nBe(e,t,n,r,i,a){const s=Ee("Trigger");return z(),Ze(s,{class:fe(e.prefixCls),trigger:"hover",position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"show-arrow":"","content-class":e.contentCls,"content-style":e.computedContentStyle,"arrow-class":e.arrowCls,"arrow-style":e.computedArrowStyle,"popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",role:"tooltip",onPopupVisibleChange:e.handlePopupVisibleChange},{content:ce(()=>[mt(e.$slots,"content",{},()=>[He(je(e.content),1)])]),default:ce(()=>[mt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var RR=Ue(tBe,[["render",nBe]]);const Qc=Object.assign(RR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+RR.name,RR)}}),rBe=xe({name:"IconQuestionCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iBe=["stroke-width","stroke-linecap","stroke-linejoin"];function oBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465"},null,-1)]),14,iBe)}var MR=Ue(rBe,[["render",oBe]]);const OH=Object.assign(MR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MR.name,MR)}}),sBe=xe({name:"FormItemLabel",components:{ResizeObserver:C0,Tooltip:Qc,IconQuestionCircle:OH},props:{required:{type:Boolean,default:!1},showColon:{type:Boolean,default:!1},component:{type:String,default:"label"},asteriskPosition:{type:String,default:"start"},tooltip:{type:String},attrs:Object},setup(){const e=Me("form-item-label"),t=Pn(fH,void 0),n=So(),r=ue(),i=()=>{r.value&&et(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return fn(()=>{r.value&&et(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),_o(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:i}}});function aBe(e,t,n,r,i,a){const s=Ee("icon-question-circle"),l=Ee("Tooltip"),c=Ee("ResizeObserver");return z(),Ze(c,{onResize:e.handleResize},{default:ce(()=>[(z(),Ze(Ca(e.component),Ft({ref:"labelRef",class:e.prefixCls},e.attrs),{default:ce(()=>[e.required&&e.asteriskPosition==="start"?(z(),X("strong",{key:0,class:fe(`${e.prefixCls}-required-symbol`)},t[0]||(t[0]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Ae("v-if",!0),mt(e.$slots,"default"),e.tooltip?(z(),Ze(l,{key:1,content:e.tooltip},{default:ce(()=>[O(s,{class:fe(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Ae("v-if",!0),e.required&&e.asteriskPosition==="end"?(z(),X("strong",{key:2,class:fe(`${e.prefixCls}-required-symbol`)},t[1]||(t[1]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Ae("v-if",!0),He(" "+je(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var lBe=Ue(sBe,[["render",aBe]]);const uBe=xe({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Me("form-item-message")}}});function cBe(e,t,n,r,i,a){return e.error.length>0?(z(!0),X(Pt,{key:0},cn(e.error,s=>(z(),Ze(Cs,{key:s,name:"form-blink",appear:""},{default:ce(()=>[I("div",{role:"alert",class:fe([e.prefixCls])},je(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(z(),Ze(Cs,{key:1,name:"form-blink",appear:""},{default:ce(()=>[I("div",{class:fe([e.prefixCls,`${e.prefixCls}-help`])},[mt(e.$slots,"help",{},()=>[He(je(e.help),1)])],2)]),_:3})):Ae("v-if",!0)}var dBe=Ue(uBe,[["render",cBe]]);const fBe=xe({name:"FormItem",components:{ArcoRow:lb,ArcoCol:ub,FormItemLabel:lBe,FormItemMessage:dBe},props:{field:{type:String,default:""},label:String,tooltip:{type:String},showColon:{type:Boolean,default:!1},noStyle:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},help:String,extra:String,required:{type:Boolean,default:!1},asteriskPosition:{type:String,default:"start"},rules:{type:[Object,Array]},validateStatus:{type:String},validateTrigger:{type:[String,Array],default:"change"},labelColProps:Object,wrapperColProps:Object,hideLabel:{type:Boolean,default:!1},hideAsterisk:{type:Boolean,default:!1},labelColStyle:Object,wrapperColStyle:Object,rowProps:Object,rowClass:[String,Array,Object],contentClass:[String,Array,Object],contentFlex:{type:Boolean,default:!0},mergeProps:{type:[Boolean,Function],default:!0},labelColFlex:{type:[Number,String]},feedback:{type:Boolean,default:!1},labelComponent:{type:String,default:"label"},labelAttrs:Object},setup(e){const t=Me("form-item"),{field:n}=tn(e),r=Pn(fH,{}),{autoLabelWidth:i,layout:a}=tn(r),{i18nMessage:s}=No(),l=F(()=>{var Y;const Q={...(Y=e.labelColProps)!=null?Y:r.labelColProps};return e.labelColFlex?Q.flex=e.labelColFlex:r.autoLabelWidth&&(Q.flex=`${r.maxLabelWidth}px`),Q}),c=F(()=>{var Y;const Q={...(Y=e.wrapperColProps)!=null?Y:r.wrapperColProps};return n.value&&(Q.id=T0e(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(Q.flex="auto"),Q}),d=F(()=>{var Y;return(Y=e.labelColStyle)!=null?Y:r.labelColStyle}),h=F(()=>{var Y;return(Y=e.wrapperColStyle)!=null?Y:r.wrapperColStyle}),p=ym(r.model,e.field),v=Wt({}),g=Wt({}),y=F(()=>w$e(v)),S=F(()=>x$e(g)),k=ue(!1),w=F(()=>ym(r.model,e.field)),x=F(()=>{var Y;return!!((Y=e.disabled)!=null?Y:r?.disabled)}),E=F(()=>{var Y;return(Y=e.validateStatus)!=null?Y:y.value}),_=F(()=>E.value==="error"),T=F(()=>{var Y,Q,ie;const q=[].concat((ie=(Q=e.rules)!=null?Q:(Y=r?.rules)==null?void 0:Y[e.field])!=null?ie:[]),te=q.some(Se=>Se.required);return e.required&&!te?[{required:!0}].concat(q):q}),D=F(()=>T.value.some(Y=>Y.required)),P=e.noStyle?Pn(tV,void 0):void 0,M=(Y,{status:Q,message:ie})=>{v[Y]=Q,g[Y]=ie,e.noStyle&&P?.updateValidateState(Y,{status:Q,message:ie})},$=F(()=>e.feedback&&E.value?E.value:void 0),L=()=>{var Y;if(k.value)return Promise.resolve();const Q=T.value;if(!n.value||Q.length===0)return y.value&&H(),Promise.resolve();const ie=n.value,q=w.value;M(ie,{status:"",message:""});const te=new MH({[ie]:Q.map(({...Se})=>(!Se.type&&!Se.validator&&(Se.type="string"),Se))},{ignoreEmptyString:!0,validateMessages:(Y=s.value.form)==null?void 0:Y.validateMessages});return new Promise(Se=>{te.validate({[ie]:q},Fe=>{var ve;const Re=!!Fe?.[ie];M(ie,{status:Re?"error":"",message:(ve=Fe?.[ie].message)!=null?ve:""});const Ge=Re?{label:e.label,field:n.value,value:Fe[ie].value,type:Fe[ie].type,isRequiredError:!!Fe[ie].requiredError,message:Fe[ie].message}:void 0;Se(Ge)})})},B=F(()=>[].concat(e.validateTrigger)),j=F(()=>B.value.reduce((Y,Q)=>{switch(Q){case"change":return Y.onChange=()=>{L()},Y;case"input":return Y.onInput=()=>{dn(()=>{L()})},Y;case"focus":return Y.onFocus=()=>{L()},Y;case"blur":return Y.onBlur=()=>{L()},Y;default:return Y}},{}));oi(tV,Wt({eventHandlers:j,size:r&&Pu(r,"size"),disabled:x,error:_,feedback:$,updateValidateState:M}));const H=()=>{n.value&&M(n.value,{status:"",message:""})},K=Wt({field:n,disabled:x,error:_,validate:L,clearValidate:H,resetField:()=>{H(),k.value=!0,r?.model&&n.value&&Z8(r.model,n.value,p),dn(()=>{k.value=!1})},setField:Y=>{var Q,ie;n.value&&(k.value=!0,"value"in Y&&r?.model&&n.value&&Z8(r.model,n.value,Y.value),(Y.status||Y.message)&&M(n.value,{status:(Q=Y.status)!=null?Q:"",message:(ie=Y.message)!=null?ie:""}),dn(()=>{k.value=!1}))}});fn(()=>{var Y;K.field&&((Y=r.addField)==null||Y.call(r,K))}),_o(()=>{var Y;K.field&&((Y=r.removeField)==null||Y.call(r,K))});const oe=F(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${E.value}`]:!!E.value},e.rowClass]),ae=F(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),ee=F(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:oe,isRequired:D,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:ae,autoLabelWidth:i,layout:a,mergedLabelStyle:d,wrapperColCls:ee,mergedWrapperStyle:h}}});function hBe(e,t,n,r,i,a){var s;const l=Ee("FormItemLabel"),c=Ee("ArcoCol"),d=Ee("FormItemMessage"),h=Ee("ArcoRow");return e.noStyle?mt(e.$slots,"default",{key:0}):(z(),Ze(h,Ft({key:1,class:[e.cls,{[`${e.prefixCls}-has-help`]:!!((s=e.$slots.help)!=null?s:e.help)}],wrap:!(e.labelColFlex||e.autoLabelWidth),div:e.layout!=="horizontal"||e.hideLabel},e.rowProps),{default:ce(()=>[e.hideLabel?Ae("v-if",!0):(z(),Ze(c,Ft({key:0,class:e.labelColCls,style:e.mergedLabelStyle},e.mergedLabelCol),{default:ce(()=>[O(l,{required:e.hideAsterisk?!1:e.isRequired,"show-colon":e.showColon,"asterisk-position":e.asteriskPosition,component:e.labelComponent,attrs:e.labelAttrs,tooltip:e.tooltip},{default:ce(()=>[e.$slots.label||e.label?mt(e.$slots,"label",{key:0},()=>[He(je(e.label),1)]):Ae("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),O(c,Ft({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:ce(()=>[I("div",{class:fe(`${e.prefixCls}-content-wrapper`)},[I("div",{class:fe([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[mt(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(z(),Ze(d,{key:0,error:e.finalMessage,help:e.help},yo({_:2},[e.$slots.help?{name:"help",fn:ce(()=>[mt(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Ae("v-if",!0),e.$slots.extra||e.extra?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra",{},()=>[He(je(e.extra),1)])],2)):Ae("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var NC=Ue(fBe,[["render",hBe]]);const pBe=Object.assign(DR,{Item:NC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+DR.name,DR),e.component(n+NC.name,NC)}}),vBe=xe({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Me("icon"),n=F(()=>{const i={};return e.size&&(i.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(i.transform=`rotate(${e.rotate}deg)`),i});return{cls:F(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function mBe(e,t,n,r,i,a){return z(),X("svg",{class:fe(e.cls),style:qe(e.innerStyle),fill:"currentColor"},[mt(e.$slots,"default")],6)}var FC=Ue(vBe,[["render",mBe]]);function gBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const Pre=[],yBe=e=>{const{src:t,extraProps:n={}}=e;if(!Z_&&t?.length&&!Pre.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),Pre.push(t),document.body.appendChild(r)}return xe({name:"IconFont",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(r,{slots:i}){return()=>{var a;const s=r.type?O("use",{"xlink:href":`#${r.type}`},null):(a=i.default)==null?void 0:a.call(i);return O(FC,Ft(r,n),gBe(s)?s:{default:()=>[s]})}}})},bBe=Object.assign(FC,{addFromIconFontCn:yBe,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+FC.name,FC)}}),_Be=xe({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Me("image-footer")}}}),SBe=["title"],kBe=["title"];function wBe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.prefixCls)},[e.title||e.description?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-caption`)},[e.title?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-caption-title`),title:e.title},je(e.title),11,SBe)):Ae("v-if",!0),e.description?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-caption-description`),title:e.description},je(e.description),11,kBe)):Ae("v-if",!0)],2)):Ae("v-if",!0),e.$slots.extra?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra")],2)):Ae("v-if",!0)],2)}var xBe=Ue(_Be,[["render",wBe]]);const CBe=xe({name:"ImagePreviewArrow",components:{IconLeft:Il,IconRight:Hi},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Me("image-preview-arrow")}}});function EBe(e,t,n,r,i,a){const s=Ee("icon-left"),l=Ee("icon-right");return z(),X("div",{class:fe(e.prefixCls)},[I("div",{class:fe([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=c=>{c.preventDefault(),e.onPrev&&e.onPrev()})},[O(s)],2),I("div",{class:fe([`${e.prefixCls}-right`,{[`${e.prefixCls}-disabled`]:!e.onNext}]),onClick:t[1]||(t[1]=c=>{c.preventDefault(),e.onNext&&e.onNext()})},[O(l)],2)],2)}var TBe=Ue(CBe,[["render",EBe]]);function ABe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var tT=xe({name:"ImagePreviewAction",components:{Tooltip:Qc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=Me("image-preview-toolbar-action");return()=>{var i;const{name:a,disabled:s}=e,l=(i=t.default)==null?void 0:i.call(t);if(!l||!l.length)return null;const c=O("div",Ft({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:d=>{d.preventDefault()}},n),[O("span",{class:`${r}-content`},[l])]);return a?O(Qc,{class:`${r}-tooltip`,content:a},ABe(c)?c:{default:()=>[c]}):c}}}),IBe=xe({name:"ImagePreviewToolbar",components:{RenderFunction:ep,PreviewAction:tT},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=tn(e),r=Me("image-preview-toolbar"),i=F(()=>{const a=new Set(n.value),s=c=>a.has(c.key);return t.value.filter(s).sort((c,d)=>{const h=n.value.indexOf(c.key),p=n.value.indexOf(d.key);return h>p?1:-1})});return{prefixCls:r,resultActions:i}}});function LBe(e,t,n,r,i,a){const s=Ee("RenderFunction"),l=Ee("PreviewAction");return z(),X("div",{class:fe(e.prefixCls)},[(z(!0),X(Pt,null,cn(e.resultActions,c=>(z(),Ze(l,{key:c.key,name:c.name,disabled:c.disabled,onClick:c.onClick},{default:ce(()=>[O(s,{"render-func":c.content},null,8,["render-func"])]),_:2},1032,["name","disabled","onClick"]))),128)),mt(e.$slots,"default")],2)}var DBe=Ue(IBe,[["render",LBe]]);function R0e(e){const t=ue("beforeLoad"),n=F(()=>t.value==="beforeLoad"),r=F(()=>t.value==="loading"),i=F(()=>t.value==="error"),a=F(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:i,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function PBe(e,t,n,r,i){let a=n,s=r;return n&&(e.width>t.width?a=0:(t.left>e.left&&(a-=Math.abs(e.left-t.left)/i),t.rightt.height?s=0:(t.top>e.top&&(s-=Math.abs(e.top-t.top)/i),t.bottom{if(!t.value||!n.value)return;const y=t.value.getBoundingClientRect(),S=n.value.getBoundingClientRect(),[k,w]=PBe(y,S,i.value[0],i.value[1],r.value);(k!==i.value[0]||w!==i.value[1])&&(i.value=[k,w])},h=y=>{y.preventDefault&&y.preventDefault();const S=c[0]+(y.pageX-s)/r.value,k=c[1]+(y.pageY-l)/r.value;i.value=[S,k]},p=y=>{y.preventDefault&&y.preventDefault(),a.value=!1,d(),g()},v=y=>{y.target===y.currentTarget&&(y.preventDefault&&y.preventDefault(),a.value=!0,s=y.pageX,l=y.pageY,c=[...i.value],Mi(window,"mousemove",h,!1),Mi(window,"mouseup",p,!1))};function g(){no(window,"mousemove",h,!1),no(window,"mouseup",p,!1)}return $s(y=>{n.value&&Mi(n.value,"mousedown",v),y(()=>{n.value&&no(n.value,"mousedown",v),g()})}),It([r],()=>{dn(()=>d())}),{translate:i,moving:a,resetTranslate(){i.value=[0,0]}}}const MBe=xe({name:"IconZoomOut",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),OBe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Be(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"},null,-1)]),14,OBe)}var OR=Ue(MBe,[["render",$Be]]);const M0e=Object.assign(OR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OR.name,OR)}}),BBe=xe({name:"IconZoomIn",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NBe=["stroke-width","stroke-linecap","stroke-linejoin"];function FBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"},null,-1)]),14,NBe)}var $R=Ue(BBe,[["render",FBe]]);const O0e=Object.assign($R,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$R.name,$R)}}),jBe=xe({name:"IconFullscreen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),VBe=["stroke-width","stroke-linecap","stroke-linejoin"];function zBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"},null,-1)]),14,VBe)}var BR=Ue(jBe,[["render",zBe]]);const Z5=Object.assign(BR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BR.name,BR)}}),UBe=xe({name:"IconRotateLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),HBe=["stroke-width","stroke-linecap","stroke-linejoin"];function WBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"},null,-1)]),14,HBe)}var NR=Ue(UBe,[["render",WBe]]);const $0e=Object.assign(NR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NR.name,NR)}}),GBe=xe({name:"IconRotateRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),KBe=["stroke-width","stroke-linecap","stroke-linejoin"];function qBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"},null,-1)]),14,KBe)}var FR=Ue(GBe,[["render",qBe]]);const B0e=Object.assign(FR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FR.name,FR)}}),YBe=xe({name:"IconOriginalSize",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XBe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZBe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1)]),14,XBe)}var jR=Ue(YBe,[["render",ZBe]]);const N0e=Object.assign(jR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jR.name,jR)}});function JBe(e){const{container:t,hidden:n}=tn(e);let r=!1,i={};const a=c=>c.tagName==="BODY"?window.innerWidth-(document.body.clientWidth||document.documentElement.clientWidth):c.offsetWidth-c.clientWidth,s=()=>{if(t.value&&t.value.style.overflow!=="hidden"){const c=t.value.style;r=!0;const d=a(t.value);d&&(i.width=c.width,t.value.style.width=`calc(${t.value.style.width||"100%"} - ${d}px)`),i.overflow=c.overflow,t.value.style.overflow="hidden"}},l=()=>{if(t.value&&r){const c=i;Object.keys(c).forEach(d=>{t.value.style[d]=c[d]})}r=!1,i={}};return $s(c=>{n.value?s():l(),c(()=>{l()})}),[l,s]}function QBe(e,t){const{popupContainer:n}=tn(t);return F(()=>(hs(n.value)?hpe(n.value):n.value)||e)}const Ed=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),F0e=Ed[0],j0e=Ed[Ed.length-1];function eNe(e=1,t="zoomIn"){let n=Ed.indexOf(e);return n===-1&&(n=nNe(e)),t==="zoomIn"?n===Ed.length-1?e:Ed[n+1]:n===0?e:Ed[n-1]}function tNe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,i=Number.parseFloat((e*r).toFixed(3));return Math.min(j0e,Math.max(F0e,i))}function nNe(e){let t=Ed.length-1;for(let n=0;n["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[Object,String]},inGroup:{type:Boolean,default:!1},groupArrowProps:{type:Object,default:()=>({})},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{type:Number,default:1},zoomRate:{type:Number,default:1.1}},emits:["close","update:visible"],setup(e,{emit:t}){const{t:n}=No(),{src:r,popupContainer:i,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:d,zoomRate:h}=tn(e),p=ue(),v=ue(),g=Me("image-preview"),[y,S]=pa(s.value,Wt({value:a})),k=F(()=>[g,{[`${g}-hide`]:!y.value}]),w=QBe(document.body,Wt({popupContainer:i})),x=F(()=>w.value===document.body),{zIndex:E}=l3("dialog",{visible:y}),_=F(()=>({...x.value?{zIndex:E.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:T,isLoaded:D,setLoadStatus:P}=R0e(),M=ue(0),$=ue(d.value),{translate:L,moving:B,resetTranslate:j}=RBe(Wt({wrapperEl:p,imageEl:v,visible:y,scale:$})),H=ue(!1);let U=null;const W=()=>{!H.value&&(H.value=!0),U&&clearTimeout(U),U=setTimeout(()=>{H.value=!1},1e3)};JBe(Wt({container:w,hidden:y}));function K(){M.value=0,$.value=d.value,j()}const oe=Ge=>c.value.includes(Ge),ae=Ge=>{switch(Ge.stopPropagation(),Ge.preventDefault(),Ge.key){case Wo.ESC:e.escToClose&&q();break;case Wo.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case Wo.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case Wo.ARROW_UP:oe("zoomIn")&&Re("zoomIn");break;case Wo.ARROW_DOWN:oe("zoomOut")&&Re("zoomOut");break;case Wo.SPACE:oe("originalSize")&&Se(1);break}},ee=Rm(Ge=>{if(Ge.preventDefault(),Ge.stopPropagation(),!e.wheelZoom)return;const Ie=(Ge.deltaY||Ge.deltaX)>0?"zoomOut":"zoomIn",_e=tNe($.value,h.value,Ie);Se(_e)});let Y=!1;const Q=()=>{dn(()=>{var Ge;(Ge=p?.value)==null||Ge.focus()}),e.keyboard&&!Y&&(Y=!0,Mi(w.value,"keydown",ae))},ie=()=>{Y&&(Y=!1,no(w.value,"keydown",ae))};It([r,y],()=>{y.value?(K(),P("loading"),Q()):ie()});function q(){y.value&&(t("close"),t("update:visible",!1),S(!1))}function te(Ge){var nt;(nt=p?.value)==null||nt.focus(),l.value&&Ge.target===Ge.currentTarget&&q()}function Se(Ge){$.value!==Ge&&($.value=Ge,W())}function Fe(){const Ge=p.value.getBoundingClientRect(),nt=v.value.getBoundingClientRect(),Ie=Ge.height/(nt.height/$.value),_e=Ge.width/(nt.width/$.value),me=Math.max(Ie,_e);Se(me)}function ve(Ge){const Ie=Ge==="clockwise"?(M.value+VR)%360:M.value===0?360-VR:M.value-VR;M.value=Ie}function Re(Ge){const nt=eNe($.value,Ge);Se(nt)}return _o(()=>{ie()}),{prefixCls:g,classNames:k,container:w,wrapperStyles:_,scale:$,translate:L,rotate:M,moving:B,mergedVisible:y,isLoading:T,isLoaded:D,scaleValueVisible:H,refWrapper:p,refImage:v,onWheel:ee,onMaskClick:te,onCloseClick:q,onImgLoad(){P("loaded")},onImgError(){P("error")},actions:F(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>fa(Z5),onClick:()=>Fe()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>fa(B0e),onClick:()=>ve("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>fa($0e),onClick:()=>ve("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>fa(O0e),onClick:()=>Re("zoomIn"),disabled:$.value===j0e},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>fa(M0e),onClick:()=>Re("zoomOut"),disabled:$.value===F0e},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>fa(N0e),onClick:()=>Se(1)}])}}});const iNe=["src"];function oNe(e,t,n,r,i,a){const s=Ee("IconLoading"),l=Ee("PreviewToolbar"),c=Ee("IconClose"),d=Ee("PreviewArrow");return z(),Ze(Jm,{to:e.container,disabled:!e.renderToBody},[I("div",{class:fe(e.classNames),style:qe(e.wrapperStyles)},[O(Cs,{name:"image-fade",onBeforeEnter:t[0]||(t[0]=h=>h.parentElement&&(h.parentElement.style.display="block")),onAfterLeave:t[1]||(t[1]=h=>h.parentElement&&(h.parentElement.style.display="")),persisted:""},{default:ce(()=>[Ci(I("div",{class:fe(`${e.prefixCls}-mask`)},null,2),[[Ko,e.mergedVisible]])]),_:1}),e.mergedVisible?(z(),X("div",{key:0,ref:"refWrapper",tabindex:"0",class:fe(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...h)=>e.onMaskClick&&e.onMaskClick(...h)),onWheel:t[7]||(t[7]=fs((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[Ae(" img "),I("div",{class:fe(`${e.prefixCls}-img-container`),style:qe({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(z(),X("img",{ref:"refImage",key:e.src,src:e.src,class:fe([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:qe({transform:`translate(${e.translate[0]}px, ${e.translate[1]}px) rotate(${e.rotate}deg)`}),onLoad:t[2]||(t[2]=(...h)=>e.onImgLoad&&e.onImgLoad(...h)),onError:t[3]||(t[3]=(...h)=>e.onImgError&&e.onImgError(...h))},null,46,iNe))],6),Ae(" loading "),e.isLoading?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-loading`)},[O(s)],2)):Ae("v-if",!0),Ae(" scale value "),O(Cs,{name:"image-fade"},{default:ce(()=>[e.scaleValueVisible?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-scale-value`)},je((e.scale*100).toFixed(0))+"% ",3)):Ae("v-if",!0)]),_:1}),Ae(" toolbar "),e.isLoaded&&e.actionsLayout.length?(z(),Ze(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:ce(()=>[mt(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Ae("v-if",!0),Ae(" close btn "),e.closable?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[O(c)],2)):Ae("v-if",!0),Ae(" group arrow "),e.inGroup?(z(),Ze(d,qi(Ft({key:3},e.groupArrowProps)),null,16)):Ae("v-if",!0)],34)):Ae("v-if",!0)],6)],8,["to","disabled"])}var dy=Ue(rNe,[["render",oNe]]);function Rre(e){if(wn(e))return;if(!et(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return et(t)?`${t}px`:void 0}const V0e=Symbol("PreviewGroupInjectionKey");let sNe=0;const aNe=xe({name:"Image",components:{IconImageClose:U5,IconLoading:Ja,ImageFooter:xBe,ImagePreview:dy},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},src:{type:String},width:{type:[String,Number]},height:{type:[String,Number]},title:{type:String},description:{type:String},fit:{type:String},alt:{type:String},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{type:String,default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{type:Object},footerClass:{type:[String,Array,Object]}},emits:["preview-visible-change","update:previewVisible"],setup(e,{attrs:t,slots:n,emit:r}){const{t:i}=No(),{height:a,width:s,hideFooter:l,title:c,description:d,src:h,footerPosition:p,defaultPreviewVisible:v,previewVisible:g,preview:y,previewProps:S}=tn(e),k=Pn(V0e,void 0),w=Me("image"),x=ue(),{isLoaded:E,isError:_,isLoading:T,setLoadStatus:D}=R0e(),P=F(()=>({width:Rre(s?.value),height:Rre(a?.value)})),M=F(()=>e.fit?{objectFit:e.fit}:{}),$=F(()=>[`${w}`,{[`${w}-loading`]:T.value,[`${w}-loading-error`]:_.value,[`${w}-with-footer-inner`]:E&&B&&p.value==="inner",[`${w}-with-footer-outer`]:E&&B&&p.value==="outer"},t.class]),L=F(()=>[P.value,t.style]),B=F(()=>c?.value||d?.value||n.extra?Tl(l.value)?!l.value&&E.value:l.value==="never":!1),j=F(()=>Ea(t,["class","style"])),[H,U]=pa(v.value,Wt({value:g})),W=F(()=>!k?.preview&&y.value);$s(()=>{Z_||!x.value||(x.value.src=h?.value,D("loading"))});const K=sNe++;$s(Q=>{var ie,q,te;const Se=(te=k?.registerImageUrl)==null?void 0:te.call(k,K,((q=(ie=S?.value)==null?void 0:ie.src)!=null?q:h?.value)||"",y.value);Q(()=>{Se?.()})});function oe(){D("loaded")}function ae(){D("error")}function ee(){y.value&&(k?.preview?k.preview(K):(r("preview-visible-change",!0),U(!0)))}function Y(){r("preview-visible-change",!1),U(!1)}return{t:i,refImg:x,prefixCls:w,wrapperClassNames:$,wrapperStyles:L,showFooter:B,imgProps:j,imgStyle:P,isLoaded:E,isError:_,isLoading:T,mergedPreviewVisible:H,mergePreview:W,onImgLoaded:oe,onImgLoadError:ae,onImgClick:ee,onPreviewClose:Y,fitStyle:M}}}),lNe=["title","alt"];function uNe(e,t,n,r,i,a){const s=Ee("IconImageClose"),l=Ee("IconLoading"),c=Ee("ImageFooter"),d=Ee("ImagePreview");return z(),X("div",{class:fe(e.wrapperClassNames),style:qe(e.wrapperStyles)},[I("img",Ft({ref:"refImg",class:`${e.prefixCls}-img`},e.imgProps,{style:{...e.imgStyle,...e.fitStyle},title:e.title,alt:e.alt,onLoad:t[0]||(t[0]=(...h)=>e.onImgLoaded&&e.onImgLoaded(...h)),onError:t[1]||(t[1]=(...h)=>e.onImgLoadError&&e.onImgLoadError(...h)),onClick:t[2]||(t[2]=(...h)=>e.onImgClick&&e.onImgClick(...h))}),null,16,lNe),e.isLoaded?Ae("v-if",!0):(z(),X("div",{key:0,class:fe(`${e.prefixCls}-overlay`)},[e.isError?mt(e.$slots,"error",{key:0},()=>[I("div",{class:fe(`${e.prefixCls}-error`)},[I("div",{class:fe(`${e.prefixCls}-error-icon`)},[mt(e.$slots,"error-icon",{},()=>[O(s)])],2),e.alt||e.description?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-error-alt`)},je(e.alt||e.description),3)):Ae("v-if",!0)],2)]):Ae("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?mt(e.$slots,"loader",{key:1},()=>[I("div",{class:fe([`${e.prefixCls}-loader`])},[I("div",{class:fe(`${e.prefixCls}-loader-spin`)},[O(l),I("div",{class:fe(`${e.prefixCls}-loader-spin-text`)},je(e.t("image.loading")),3)],2)],2)]):Ae("v-if",!0)],2)),e.showFooter?(z(),Ze(c,{key:1,class:fe(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},yo({_:2},[e.$slots.extra?{name:"extra",fn:ce(()=>[mt(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Ae("v-if",!0),e.isLoaded&&e.mergePreview?(z(),Ze(d,Ft({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:ce(()=>[mt(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Ae("v-if",!0)],6)}var zR=Ue(aNe,[["render",uNe]]),cNe=xe({name:"ImagePreviewGroup",components:{ImagePreview:dy},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},srcList:{type:Array},current:{type:Number},defaultCurrent:{type:Number,default:0},infinite:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{type:Array,default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[String,Object]}},emits:["change","update:current","visible-change","update:visible"],setup(e,{emit:t}){const{srcList:n,visible:r,defaultVisible:i,current:a,defaultCurrent:s,infinite:l}=tn(e),[c,d]=pa(i.value,Wt({value:r})),h=L=>{L!==c.value&&(t("visible-change",L),t("update:visible",L),d(L))},p=F(()=>new Map(nr(n?.value)?n?.value.map((L,B)=>[B,{url:L,canPreview:!0}]):[])),v=ue(new Map(p.value||[])),g=F(()=>Array.from(v.value.keys())),y=F(()=>g.value.length);function S(L,B,j){return p.value.has(L)||v.value.set(L,{url:B,canPreview:j}),function(){p.value.has(L)||v.value.delete(L)}}It(p,()=>{v.value=new Map(p.value||[])});const[k,w]=pa(s.value,Wt({value:a})),x=L=>{L!==k.value&&(t("change",L),t("update:current",L),w(L))},E=F(()=>g.value[k.value]),_=L=>{const B=g.value.indexOf(L);B!==k.value&&x(B)},T=F(()=>{var L;return(L=v.value.get(E.value))==null?void 0:L.url});oi(V0e,Wt({registerImageUrl:S,preview:L=>{h(!0),_(L)}}));const D=F(()=>{const L=(j,H)=>{var U;for(let W=j;W<=H;W++){const K=g.value[W];if((U=v.value.get(K))!=null&&U.canPreview)return W}},B=L(k.value+1,y.value-1);return wn(B)&&l.value?L(0,k.value-1):B}),P=F(()=>{const L=(j,H)=>{var U;for(let W=j;W>=H;W--){const K=g.value[W];if((U=v.value.get(K))!=null&&U.canPreview)return W}},B=L(k.value-1,0);return wn(B)&&l.value?L(y.value-1,k.value+1):B}),M=F(()=>wn(P.value)?void 0:()=>{!wn(P.value)&&x(P.value)}),$=F(()=>wn(D.value)?void 0:()=>{!wn(D.value)&&x(D.value)});return{mergedVisible:c,currentUrl:T,prevIndex:P,nextIndex:D,onClose(){h(!1)},groupArrowProps:Wt({onPrev:M,onNext:$})}}});function dNe(e,t,n,r,i,a){const s=Ee("ImagePreview");return z(),X(Pt,null,[mt(e.$slots,"default"),O(s,Ft({...e.$attrs,groupArrowProps:e.groupArrowProps},{"in-group":"",src:e.currentUrl,visible:e.mergedVisible,"mask-closable":e.maskClosable,closable:e.closable,"actions-layout":e.actionsLayout,"popup-container":e.popupContainer,"render-to-body":e.renderToBody,onClose:e.onClose}),yo({_:2},[e.$slots.actions?{name:"actions",fn:ce(()=>[mt(e.$slots,"actions",{url:e.currentUrl})]),key:"0"}:void 0]),1040,["src","visible","mask-closable","closable","actions-layout","popup-container","render-to-body","onClose"])],64)}var cb=Ue(cNe,[["render",dNe]]);const fNe=Object.assign(zR,{Preview:dy,PreviewGroup:cb,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+zR.name,zR),e.component(n+dy.name,dy),e.component(n+cb.name,cb),e.component(n+tT.name,tT)}}),z0e=Symbol("LayoutSiderInjectionKey"),U0e=Symbol("SiderInjectionKey");var hNe=xe({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=ue([]),n=Me("layout"),r=F(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return oi(z0e,{onSiderMount:i=>t.value.push(i),onSiderUnMount:i=>{t.value=t.value.filter(a=>a!==i)}}),{classNames:r}}});function pNe(e,t,n,r,i,a){return z(),X("section",{class:fe(e.classNames)},[mt(e.$slots,"default")],2)}var UR=Ue(hNe,[["render",pNe]]);const vNe=xe({name:"LayoutHeader",setup(){return{classNames:[Me("layout-header")]}}});function mNe(e,t,n,r,i,a){return z(),X("header",{class:fe(e.classNames)},[mt(e.$slots,"default")],2)}var jC=Ue(vNe,[["render",mNe]]);const gNe=xe({name:"LayoutContent",setup(){return{classNames:[Me("layout-content")]}}});function yNe(e,t,n,r,i,a){return z(),X("main",{class:fe(e.classNames)},[mt(e.$slots,"default")],2)}var VC=Ue(gNe,[["render",yNe]]);const bNe=xe({name:"LayoutFooter",setup(){return{classNames:[Me("layout-footer")]}}});function _Ne(e,t,n,r,i,a){return z(),X("footer",{class:fe(e.classNames)},[mt(e.$slots,"default")],2)}var zC=Ue(bNe,[["render",_Ne]]);const SNe=xe({name:"IconDragDot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kNe=["stroke-width","stroke-linecap","stroke-linejoin"];function wNe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1)]),14,kNe)}var HR=Ue(SNe,[["render",wNe]]);const H0e=Object.assign(HR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HR.name,HR)}}),xNe=xe({name:"IconDragDotVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),CNe=["stroke-width","stroke-linecap","stroke-linejoin"];function ENe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1)]),14,CNe)}var WR=Ue(xNe,[["render",ENe]]);const J5=Object.assign(WR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WR.name,WR)}});var TNe=xe({name:"ResizeTrigger",components:{ResizeObserver:Dd,IconDragDot:H0e,IconDragDotVertical:J5},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=tn(e),i=F(()=>n?.value==="horizontal");return{classNames:F(()=>[r.value,{[`${r.value}-horizontal`]:i.value,[`${r.value}-vertical`]:!i.value}]),onResize:l=>{t("resize",l)},isHorizontal:i}}});function ANe(e,t,n,r,i,a){const s=Ee("IconDragDot"),l=Ee("IconDragDotVertical"),c=Ee("ResizeObserver");return z(),Ze(c,{onResize:e.onResize},{default:ce(()=>[I("div",{class:fe(e.classNames)},[Ae(" @slot 自定义内容 "),mt(e.$slots,"default",{},()=>[I("div",{class:fe(`${e.prefixCls}-icon-wrapper`)},[Ae(" @slot 自定义 icon "),mt(e.$slots,"icon",{},()=>[e.isHorizontal?(z(),Ze(s,{key:0,class:fe(`${e.prefixCls}-icon`)},null,8,["class"])):(z(),Ze(l,{key:1,class:fe(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var W0e=Ue(TNe,[["render",ANe]]);const G0e="left",K0e="right",$H="top",BH="bottom",INe=[G0e,K0e,$H,BH];function Mre(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function GR(e){return[$H,BH].indexOf(e)>-1}const LNe=xe({name:"ResizeBox",components:{ResizeTrigger:W0e},inheritAttrs:!1,props:{width:{type:Number},height:{type:Number},component:{type:String,default:"div"},directions:{type:Array,default:()=>["right"]}},emits:{"update:width":e=>!0,"update:height":e=>!0,movingStart:e=>!0,moving:(e,t)=>!0,movingEnd:e=>!0},setup(e,{emit:t}){const{height:n,width:r,directions:i}=tn(e),[a,s]=pa(null,Wt({value:r})),[l,c]=pa(null,Wt({value:n})),d=ue(),h=Wt({}),p=Me("resizebox"),v=F(()=>[p]),g=F(()=>({...et(a.value)?{width:`${a.value}px`}:{},...et(l.value)?{height:`${l.value}px`}:{},...h})),y=F(()=>i.value.filter(_=>INe.includes(_))),S={direction:"",startPageX:0,startPageY:0,startWidth:0,startHeight:0,moving:!1,padding:{left:0,right:0,top:0,bottom:0}};function k(_){if(!S.moving)return;const{startPageX:T,startPageY:D,startWidth:P,startHeight:M,direction:$}=S;let L=P,B=M;const j=_.pageX-T,H=_.pageY-D;switch($){case G0e:L=P-j,s(L),t("update:width",L);break;case K0e:L=P+j,s(L),t("update:width",L);break;case $H:B=M-H,c(B),t("update:height",B);break;case BH:B=M+H,c(B),t("update:height",B);break}t("moving",{width:L,height:B},_)}function w(_){S.moving=!1,no(window,"mousemove",k),no(window,"mouseup",w),no(window,"contextmenu",w),document.body.style.cursor="default",t("movingEnd",_)}function x(_,T){var D,P;t("movingStart",T),S.moving=!0,S.startPageX=T.pageX,S.startPageY=T.pageY,S.direction=_;const{top:M,left:$,right:L,bottom:B}=S.padding;S.startWidth=Mre(((D=d.value)==null?void 0:D.clientWidth)||0,$+L),S.startHeight=Mre(((P=d.value)==null?void 0:P.clientHeight)||0,M+B),Mi(window,"mousemove",k),Mi(window,"mouseup",w),Mi(window,"contextmenu",w),document.body.style.cursor=GR(_)?"row-resize":"col-resize"}function E(_,T){const{width:D,height:P}=T.contentRect,M=GR(_)?P:D;S.padding[_]=M,h[`padding-${_}`]=`${M}px`}return{prefixCls:p,classNames:v,styles:g,wrapperRef:d,onMoveStart:x,isHorizontal:GR,allowDirections:y,onTiggerResize:E}}});function DNe(e,t,n,r,i,a){const s=Ee("ResizeTrigger");return z(),Ze(Ca(e.component),Ft({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:ce(()=>[mt(e.$slots,"default"),(z(!0),X(Pt,null,cn(e.allowDirections,l=>(z(),Ze(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:fe(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},yo({default:ce(()=>[e.$slots["resize-trigger"]?mt(e.$slots,"resize-trigger",{key:0,direction:l}):Ae("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:ce(()=>[mt(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var KR=Ue(LNe,[["render",DNe]]);const q0e=Object.assign(KR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+KR.name,KR)}});function Y0e(e,t){const n=F(()=>Bo(e)?e.value:e);let r="";fn(()=>{r=Q8.subscribe((i,a)=>{n.value&&(!a||a===n.value)&&t(!!i[n.value])})}),Yr(()=>{r&&Q8.unsubscribe(r)})}const PNe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var RNe=xe({name:"LayoutSider",components:{IconLeft:Il,IconRight:Hi,ResizeBox:q0e},props:{theme:{type:String,default:"light"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsible:{type:Boolean},width:{type:Number,default:200},collapsedWidth:{type:Number,default:48},reverseArrow:{type:Boolean},breakpoint:{type:String},resizeDirections:{type:Array,default:void 0},hideTrigger:{type:Boolean}},emits:["collapse","update:collapsed","breakpoint"],setup(e,{emit:t}){const{theme:n,collapsed:r,defaultCollapsed:i,collapsible:a,hideTrigger:s,breakpoint:l,collapsedWidth:c,resizeDirections:d}=tn(e),[h,p]=pa(i.value,Wt({value:r})),v=F(()=>d.value?"ResizeBox":"div"),g=F(()=>a.value&&!s.value),y=Me("layout-sider"),S=F(()=>[y,{[`${y}-light`]:n.value==="light",[`${y}-has-trigger`]:g.value,[`${y}-collapsed`]:r.value}]),k=F(()=>{const{width:T,collapsedWidth:D}=e,P=h.value?D:T;return et(P)?`${P}px`:String(P)}),w=F(()=>[`${y}-trigger`,{[`${y}-trigger-light`]:n.value==="light"}]),x=()=>{const T=!h.value;p(T),t("update:collapsed",T),t("collapse",T,"clickTrigger")};Y0e(l,T=>{const D=!T;D!==h.value&&(p(D),t("update:collapsed",D),t("collapse",D,"responsive"),t("breakpoint",D))});const E=PNe("__arco_layout_sider"),_=Pn(z0e,void 0);return fn(()=>{var T;(T=_?.onSiderMount)==null||T.call(_,E)}),Yr(()=>{var T;(T=_?.onSiderUnMount)==null||T.call(_,E)}),oi(U0e,Wt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:v,prefixCls:y,classNames:S,triggerClassNames:w,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:x}}});const MNe={key:0},ONe={key:1};function $Ne(e,t,n,r,i,a){const s=Ee("IconLeft"),l=Ee("IconRight");return z(),Ze(Ca(e.componentTag),Ft({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:ce(()=>[I("div",{class:fe(`${e.prefixCls}-children`)},[mt(e.$slots,"default")],2),e.showTrigger?(z(),X("div",{key:0,class:fe(e.triggerClassNames),style:qe({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[mt(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(z(),X("div",ONe,[e.localCollapsed?(z(),Ze(s,{key:0})):(z(),Ze(l,{key:1}))])):(z(),X("div",MNe,[e.localCollapsed?(z(),Ze(l,{key:1})):(z(),Ze(s,{key:0}))]))])],6)):Ae("v-if",!0)]),_:3},16,["class","style"])}var UC=Ue(RNe,[["render",$Ne]]);const BNe=Object.assign(UR,{Header:jC,Content:VC,Footer:zC,Sider:UC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+UR.name,UR),e.component(n+jC.name,jC),e.component(n+VC.name,VC),e.component(n+zC.name,zC),e.component(n+UC.name,UC)}}),NNe=xe({name:"Pager",props:{pageNumber:{type:Number},current:{type:Number},disabled:{type:Boolean,default:!1},style:{type:Object},activeStyle:{type:Object}},emits:["click"],setup(e,{emit:t}){const n=Me("pagination-item"),r=F(()=>e.current===e.pageNumber),i=l=>{e.disabled||t("click",e.pageNumber,l)},a=F(()=>[n,{[`${n}-active`]:r.value}]),s=F(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:i}}});function FNe(e,t,n,r,i,a){return z(),X("li",{class:fe(e.cls),style:qe(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[mt(e.$slots,"default",{page:e.pageNumber},()=>[He(je(e.pageNumber),1)])],6)}var jNe=Ue(NNe,[["render",FNe]]);const X0e=(e,{min:t,max:n})=>en?n:e,VNe=xe({name:"StepPager",components:{IconLeft:Il,IconRight:Hi},props:{pages:{type:Number,required:!0},current:{type:Number,required:!0},type:{type:String,required:!0},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=Me("pagination-item"),r=e.type==="next",i=F(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=F(()=>X0e(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{i.value||t("click",a.value)},l=F(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:i.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function zNe(e,t,n,r,i,a){const s=Ee("icon-right"),l=Ee("icon-left");return z(),Ze(Ca(e.simple?"span":"li"),{class:fe(e.cls),onClick:e.handleClick},{default:ce(()=>[mt(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(z(),Ze(s,{key:0})):(z(),Ze(l,{key:1}))])]),_:3},8,["class","onClick"])}var Ore=Ue(VNe,[["render",zNe]]);const UNe=xe({name:"EllipsisPager",components:{IconMore:U0},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=Me("pagination-item"),r=F(()=>X0e(e.current+e.step,{min:1,max:e.pages})),i=s=>{t("click",r.value)},a=F(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:i}}});function HNe(e,t,n,r,i,a){const s=Ee("icon-more");return z(),X("li",{class:fe(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[mt(e.$slots,"default",{},()=>[O(s)])],2)}var WNe=Ue(UNe,[["render",HNe]]);const GNe=xe({name:"PageJumper",components:{InputNumber:iS},props:{current:{type:Number,required:!0},simple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},pages:{type:Number,required:!0},size:{type:String},onChange:{type:Function}},emits:["change"],setup(e,{emit:t}){const n=Me("pagination-jumper"),{t:r}=No(),i=ue(e.simple?e.current:void 0),a=c=>{const d=parseInt(c.toString(),10);return Number.isNaN(d)?void 0:String(d)},s=c=>{t("change",i.value),dn(()=>{e.simple||(i.value=void 0)})};It(()=>e.current,c=>{e.simple&&c!==i.value&&(i.value=c)});const l=F(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:i,handleChange:s,handleFormatter:a}}});function KNe(e,t,n,r,i,a){const s=Ee("input-number");return z(),X("span",{class:fe(e.cls)},[e.simple?Ae("v-if",!0):(z(),X("span",{key:0,class:fe([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[mt(e.$slots,"jumper-prepend",{},()=>[He(je(e.t("pagination.goto")),1)])],2)),O(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:fe(`${e.prefixCls}-input`),min:1,max:e.pages,size:e.size,disabled:e.disabled,"hide-button":"",formatter:e.handleFormatter,onChange:e.handleChange},null,8,["modelValue","class","max","size","disabled","formatter","onChange"]),e.$slots["jumper-append"]?(z(),X("span",{key:1,class:fe(`${e.prefixCls}-append`)},[mt(e.$slots,"jumper-append")],2)):Ae("v-if",!0),e.simple?(z(),X(Pt,{key:2},[I("span",{class:fe(`${e.prefixCls}-separator`)},"/",2),I("span",{class:fe(`${e.prefixCls}-total-page`)},je(e.pages),3)],64)):Ae("v-if",!0)],2)}var $re=Ue(GNe,[["render",KNe]]);const qNe=xe({name:"PageOptions",components:{ArcoSelect:s_},props:{sizeOptions:{type:Array,required:!0},pageSize:Number,disabled:Boolean,size:{type:String},onChange:{type:Function},selectProps:{type:Object}},emits:["change"],setup(e,{emit:t}){const n=Me("pagination-options"),{t:r}=No(),i=F(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:i,handleChange:s=>{t("change",s)}}}});function YNe(e,t,n,r,i,a){const s=Ee("arco-select");return z(),X("span",{class:fe(e.prefixCls)},[O(s,Ft({"model-value":e.pageSize,options:e.options,size:e.size,disabled:e.disabled},e.selectProps,{onChange:e.handleChange}),null,16,["model-value","options","size","disabled","onChange"])],2)}var XNe=Ue(qNe,[["render",YNe]]),qR=xe({name:"Pagination",props:{total:{type:Number,required:!0},current:Number,defaultCurrent:{type:Number,default:1},pageSize:Number,defaultPageSize:{type:Number,default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{type:Array,default:()=>[10,20,30,40,50]},pageSizeProps:{type:Object},size:{type:String},pageItemStyle:{type:Object},activePageItemStyle:{type:Object},baseSize:{type:Number,default:6},bufferSize:{type:Number,default:2},autoAdjust:{type:Boolean,default:!0}},emits:{"update:current":e=>!0,"update:pageSize":e=>!0,change:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const r=Me("pagination"),{t:i}=No(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=tn(e),{mergedSize:d}=Aa(c),h=ue(e.defaultCurrent),p=ue(e.defaultPageSize),v=F(()=>{var D;return(D=e.current)!=null?D:h.value}),g=F(()=>{var D;return(D=e.pageSize)!=null?D:p.value}),y=F(()=>Math.ceil(e.total/g.value)),S=D=>{D!==v.value&&et(D)&&!e.disabled&&(h.value=D,t("update:current",D),t("change",D))},k=D=>{p.value=D,t("update:pageSize",D),t("pageSizeChange",D)},w=Wt({current:v,pages:y,disabled:a,style:s,activeStyle:l,onClick:S}),x=(D,P={})=>D==="more"?O(WNe,Ft(P,w),{default:n["page-item-ellipsis"]}):D==="previous"?O(Ore,Ft({type:"previous"},P,w),{default:n["page-item-step"]}):D==="next"?O(Ore,Ft({type:"next"},P,w),{default:n["page-item-step"]}):O(jNe,Ft(P,w),{default:n["page-item"]}),E=F(()=>{const D=[];if(y.value2+e.bufferSize&&($=!0,P=Math.min(v.value-e.bufferSize,y.value-2*e.bufferSize)),v.valuee.simple?O("span",{class:`${r}-simple`},[x("previous",{simple:!0}),O($re,{disabled:e.disabled,current:v.value,size:d.value,pages:y.value,simple:!0,onChange:S},null),x("next",{simple:!0})]):O("ul",{class:`${r}-list`},[x("previous",{simple:!0}),E.value,e.showMore&&x("more",{key:"more",step:e.bufferSize*2+1}),x("next",{simple:!0})]);It(g,(D,P)=>{if(e.autoAdjust&&D!==P&&v.value>1){const M=P*(v.value-1)+1,$=Math.ceil(M/D);$!==v.value&&(h.value=$,t("update:current",$),t("change",$))}}),It(y,(D,P)=>{if(e.autoAdjust&&D!==P&&v.value>1&&v.value>D){const M=Math.max(D,1);h.value=M,t("update:current",M),t("change",M)}});const T=F(()=>[r,`${r}-size-${d.value}`,{[`${r}-simple`]:e.simple,[`${r}-disabled`]:e.disabled}]);return()=>{var D,P;return e.hideOnSinglePage&&y.value<=1?null:O("div",{class:T.value},[e.showTotal&&O("span",{class:`${r}-total`},[(P=(D=n.total)==null?void 0:D.call(n,{total:e.total}))!=null?P:i("pagination.total",e.total)]),_(),e.showPageSize&&O(XNe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:d.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&O($re,{disabled:e.disabled,current:v.value,pages:y.value,size:d.value,onChange:S},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const NH=Object.assign(qR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+qR.name,qR)}}),ZNe=(e,{emit:t})=>{var n,r;const i=ue(gr(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=ue(gr(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=F(()=>{var h;return gr(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:i.value}),l=F(()=>{var h;return gr(e.paginationProps)&&(h=e.paginationProps.pageSize)!=null?h:a.value});return{current:s,pageSize:l,handlePageChange:h=>{i.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}};function Bre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var YR=xe({name:"List",props:{data:{type:Array},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},split:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},paginationProps:{type:Object},gridProps:{type:Object},maxHeight:{type:[String,Number],default:0},bottomOffset:{type:Number,default:0},virtualListProps:{type:Object},scrollbar:{type:[Object,Boolean],default:!0}},emits:{scroll:()=>!0,reachBottom:()=>!0,pageChange:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const{scrollbar:r}=tn(e),i=Me("list"),a=Pn(Za,void 0),{componentRef:s,elementRef:l}=K1("containerRef"),c=F(()=>e.virtualListProps),{displayScrollbar:d,scrollbarProps:h}=j5(r);let p=0;const v=U=>{const{scrollTop:W,scrollHeight:K,offsetHeight:oe}=U.target,ae=Math.floor(K-(W+oe));W>p&&ae<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=W};fn(()=>{if(l.value){const{scrollTop:U,scrollHeight:W,offsetHeight:K}=l.value;W<=U+K&&t("reachBottom")}});const{current:g,pageSize:y,handlePageChange:S,handlePageSizeChange:k}=ZNe(e,{emit:t}),w=U=>{if(!e.paginationProps)return U;if(e.paginationProps&&U.length>y.value){const W=(g.value-1)*y.value;return U.slice(W,W+y.value)}return U},x=U=>{let W;if(!e.gridProps)return null;const K=w(U);if(e.gridProps.span){const oe=[],ae=24/e.gridProps.span;for(let ee=0;ee{var Se;return O(P4.Col,{key:`${ie}-${te}`,class:`${i}-col`,span:(Se=e.gridProps)==null?void 0:Se.span},{default:()=>{var Fe;return[Wi(q)?q:(Fe=n.item)==null?void 0:Fe.call(n,{item:q,index:te})]}})}))?Y:{default:()=>[Y]}))}return oe}return O(P4.Row,{class:`${i}-row`,gutter:e.gridProps.gutter},Bre(W=K.map((oe,ae)=>O(P4.Col,Ft({key:ae,class:`${i}-col`},Ea(e.gridProps,["gutter"])),{default:()=>{var ee;return[Wi(oe)?oe:(ee=n.item)==null?void 0:ee.call(n,{item:oe,index:ae})]}})))?W:{default:()=>[W]})},E=U=>w(U).map((K,oe)=>{var ae;return Wi(K)?K:(ae=n.item)==null?void 0:ae.call(n,{item:K,index:oe})}),_=()=>{const U=n.default?yf(n.default()):e.data;return U&&U.length>0?e.gridProps?x(U):E(U):j()},T=()=>{if(!e.paginationProps)return null;const U=Ea(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return O(NH,Ft({class:`${i}-pagination`},U,{current:g.value,pageSize:y.value,onChange:S,onPageSizeChange:k}),null)},D=F(()=>[i,`${i}-${e.size}`,{[`${i}-bordered`]:e.bordered,[`${i}-split`]:e.split,[`${i}-hover`]:e.hoverable}]),P=F(()=>{if(e.maxHeight)return{maxHeight:et(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),M=F(()=>[`${i}-content`,{[`${i}-virtual`]:c.value}]),$=ue(),L=()=>{var U;const W=w((U=e.data)!=null?U:[]);return W.length?O(c3,Ft({ref:$,class:M.value,data:W},e.virtualListProps,{onScroll:v}),{item:({item:K,index:oe})=>{var ae;return(ae=n.item)==null?void 0:ae.call(n,{item:K,index:oe})}}):j()},B=()=>n["scroll-loading"]?O("div",{class:[`${i}-item`,`${i}-scroll-loading`]},[n["scroll-loading"]()]):null,j=()=>{var U,W,K,oe,ae;return n["scroll-loading"]?null:(ae=(oe=(U=n.empty)==null?void 0:U.call(n))!=null?oe:(K=a==null?void 0:(W=a.slots).empty)==null?void 0:K.call(W,{component:"list"}))!=null?ae:O(Jh,null,null)};return{virtualListRef:$,render:()=>{const U=d.value?Rd:"div";return O("div",{class:`${i}-wrapper`},[O(Pd,{class:`${i}-spin`,loading:e.loading},{default:()=>[O(U,Ft({ref:s,class:D.value,style:P.value},h.value,{onScroll:v}),{default:()=>[O("div",{class:`${i}-content-wrapper`},[n.header&&O("div",{class:`${i}-header`},[n.header()]),c.value&&!e.gridProps?O(Pt,null,[L(),B()]):O("div",{role:"list",class:M.value},[_(),B()]),n.footer&&O("div",{class:`${i}-footer`},[n.footer()])])]}),T()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),HC=xe({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=Me("list-item"),r=()=>{var i;const a=(i=t.actions)==null?void 0:i.call(t);return!a||!a.length?null:O("ul",{class:`${n}-action`},[a.map((s,l)=>O("li",{key:`${n}-action-${l}`},[s]))])};return()=>{var i,a;return O("div",{role:"listitem",class:n},[O("div",{class:`${n}-main`},[(i=t.meta)==null?void 0:i.call(t),O("div",{class:`${n}-content`},[(a=t.default)==null?void 0:a.call(t)]),e.actionLayout==="vertical"&&r()]),e.actionLayout==="horizontal"&&r(),t.extra&&O("div",{class:`${n}-extra`},[t.extra()])])}}});const JNe=xe({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=Me("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function QNe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.prefixCls)},[e.$slots.avatar?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-avatar`)},[mt(e.$slots,"avatar")],2)):Ae("v-if",!0),e.hasContent?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)):Ae("v-if",!0),e.$slots.description||e.description?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-description`)},[mt(e.$slots,"description",{},()=>[He(je(e.description),1)])],2)):Ae("v-if",!0)],2)):Ae("v-if",!0)],2)}var WC=Ue(JNe,[["render",QNe]]);const Z0e=Object.assign(YR,{Item:Object.assign(HC,{Meta:WC}),install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+YR.name,YR),e.component(n+HC.name,HC),e.component(n+WC.name,WC)}}),eFe=["border-width","box-sizing","font-family","font-weight","font-size","font-variant","letter-spacing","line-height","padding-top","padding-bottom","padding-left","padding-right","text-indent","text-rendering","text-transform","white-space","overflow-wrap","width"],hV=e=>{const t={};return eFe.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},tFe=xe({name:"Textarea",components:{ResizeObserver:Dd,IconHover:Lo,IconClose:rs},inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},autoSize:{type:[Boolean,Object],default:!1},wordLength:{type:Function},wordSlice:{type:Function},textareaAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n}){const{disabled:r,error:i,modelValue:a}=tn(e),s=Me("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:d}=Do({disabled:r,error:i}),h=ue(),p=ue(),v=ue(),g=ue(),y=ue(e.defaultValue),S=F(()=>{var Be;return(Be=a.value)!=null?Be:y.value}),[k,w]=ype(h);It(a,Be=>{(wn(Be)||Al(Be))&&(y.value="")});const x=F(()=>gr(e.maxLength)&&!!e.maxLength.errorOnly),E=F(()=>gr(e.maxLength)?e.maxLength.length:e.maxLength),_=Be=>{var Ye;return Sn(e.wordLength)?e.wordLength(Be):(Ye=Be.length)!=null?Ye:0},T=F(()=>_(S.value)),D=F(()=>c.value||!!(E.value&&x.value&&T.value>E.value)),P=ue(!1),M=ue(!1),$=F(()=>e.allowClear&&!l.value&&S.value),L=ue(!1),B=ue(""),j=()=>{k(),dn(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,w())})},H=(Be,Ye=!0)=>{var Ke,at;E.value&&!x.value&&_(Be)>E.value&&(Be=(at=(Ke=e.wordSlice)==null?void 0:Ke.call(e,Be,E.value))!=null?at:Be.slice(0,E.value)),y.value=Be,Ye&&t("update:modelValue",Be),j()};let U=S.value;const W=(Be,Ye)=>{var Ke,at;Be!==U&&(U=Be,t("change",Be,Ye),(at=(Ke=d.value)==null?void 0:Ke.onChange)==null||at.call(Ke,Ye))},K=Be=>{var Ye,Ke;M.value=!0,U=S.value,t("focus",Be),(Ke=(Ye=d.value)==null?void 0:Ye.onFocus)==null||Ke.call(Ye,Be)},oe=Be=>{var Ye,Ke;M.value=!1,t("blur",Be),(Ke=(Ye=d.value)==null?void 0:Ye.onBlur)==null||Ke.call(Ye,Be),W(S.value,Be)},ae=Be=>{var Ye,Ke;const{value:at}=Be.target;if(Be.type==="compositionend"){if(L.value=!1,B.value="",E.value&&!x.value&&S.value.length>=E.value&&_(at)>E.value){j();return}t("input",at,Be),H(at),(Ke=(Ye=d.value)==null?void 0:Ye.onInput)==null||Ke.call(Ye,Be)}else L.value=!0},ee=Be=>{var Ye,Ke;const{value:at}=Be.target;if(L.value)B.value=at;else{if(E.value&&!x.value&&S.value.length>=E.value&&_(at)>E.value&&Be.inputType==="insertText"){j();return}t("input",at,Be),H(at),(Ke=(Ye=d.value)==null?void 0:Ye.onInput)==null||Ke.call(Ye,Be)}},Y=Be=>{H(""),W("",Be),t("clear",Be)};It(a,Be=>{Be!==S.value&&H(Be??"",!1)});const Q=Be=>Ea(n,w0),ie=Be=>kf(n,w0),q=ie(),te=F(()=>{const Be={...q,...e.textareaAttrs};return D.value&&(Be["aria-invalid"]=!0),Be}),Se=F(()=>[`${s}-wrapper`,{[`${s}-focus`]:M.value,[`${s}-disabled`]:l.value,[`${s}-error`]:D.value,[`${s}-scroll`]:P.value}]);let Fe;const ve=ue(0),Re=ue(0),Ge=F(()=>!gr(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*ve.value+Re.value),nt=F(()=>!gr(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*ve.value+Re.value),Ie=()=>{const Be=hV(Fe);ve.value=Number.parseInt(Be["line-height"]||0,10),Re.value=Number.parseInt(Be["border-width"]||0,10)*2+Number.parseInt(Be["padding-top"]||0,10)+Number.parseInt(Be["padding-bottom"]||0,10),g.value=Be,dn(()=>{var Ye;const Ke=(Ye=v.value)==null?void 0:Ye.offsetHeight;let at=Ke??0,ft="hidden";Ge.value&&atnt.value&&(at=nt.value,ft="auto"),p.value={height:`${at}px`,resize:"none",overflow:ft}})};fn(()=>{h.value&&(Fe=window.getComputedStyle(h.value),e.autoSize&&Ie()),ge()});const _e=()=>{e.autoSize&&v.value&&Ie(),ge()},me=Be=>{h.value&&Be.target!==h.value&&(Be.preventDefault(),h.value.focus())},ge=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?P.value||(P.value=!0):P.value&&(P.value=!1))};return It(S,()=>{e.autoSize&&v.value&&Ie(),ge()}),{prefixCls:s,wrapperCls:Se,textareaRef:h,textareaStyle:p,mirrorRef:v,mirrorStyle:g,computedValue:S,showClearBtn:$,valueLength:T,computedMaxLength:E,mergedDisabled:l,mergeTextareaAttrs:te,getWrapperAttrs:Q,getTextareaAttrs:ie,handleInput:ee,handleFocus:K,handleBlur:oe,handleComposition:ae,handleClear:Y,handleResize:_e,handleMousedown:me}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),nFe=["disabled","value","placeholder"];function rFe(e,t,n,r,i,a){const s=Ee("resize-observer"),l=Ee("icon-close"),c=Ee("icon-hover");return z(),X("div",Ft(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...d)=>e.handleMousedown&&e.handleMousedown(...d))}),[e.autoSize?(z(),X("div",{key:0,ref:"mirrorRef",class:fe(`${e.prefixCls}-mirror`),style:qe(e.mirrorStyle)},je(`${e.computedValue} +`),7)):Ae("v-if",!0),O(s,{onResize:e.handleResize},{default:ce(()=>[I("textarea",Ft({ref:"textareaRef"},e.mergeTextareaAttrs,{disabled:e.mergedDisabled,class:e.prefixCls,style:e.textareaStyle,value:e.computedValue,placeholder:e.placeholder,onInput:t[0]||(t[0]=(...d)=>e.handleInput&&e.handleInput(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onCompositionstart:t[3]||(t[3]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionupdate:t[4]||(t[4]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionend:t[5]||(t[5]=(...d)=>e.handleComposition&&e.handleComposition(...d))}),null,16,nFe)]),_:1},8,["onResize"]),mt(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-word-limit`)},je(e.valueLength)+"/"+je(e.computedMaxLength),3)):Ae("v-if",!0),e.showClearBtn?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...d)=>e.handleClear&&e.handleClear(...d))},[O(c,null,{default:ce(()=>[O(l)]),_:1})],2)):Ae("v-if",!0)],16)}var XR=Ue(tFe,[["render",rFe]]);const J0e=Object.assign(XR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+XR.name,XR)}}),iFe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},oFe=(e,t)=>[].concat(t).reduce((r,i)=>{const a=e.lastIndexOf(i);return a>r.location?{location:a,prefix:i}:r},{location:-1,prefix:""}),sFe=(e,t)=>!t||!e.includes(t);function aFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var ZR=xe({name:"Mention",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},data:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@"},split:{type:String,default:" "},type:{type:String,default:"input"},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:(e,t)=>!0,select:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const i=Me("mention");let a;const{mergedDisabled:s,eventHandlers:l}=Do({disabled:Pu(e,"disabled")}),{data:c,modelValue:d}=tn(e),h=ue(),p=ue({}),v=ue(e.defaultValue),g=F(()=>{var q;return(q=e.modelValue)!=null?q:v.value});It(d,q=>{(wn(q)||Al(q))&&(v.value="")});const y=F(()=>g.value?[Om(g.value)]:[]),S=ue({measuring:!1,location:-1,prefix:"",text:""}),k=()=>{S.value={measuring:!1,location:-1,prefix:"",text:""}},w=ue(),x=F(()=>S.value.text),E=ue(!0),_=(q,te)=>{var Se,Fe;const ve=iFe(te.target),Re=oFe(ve,e.prefix);if(Re.location>-1){const Ge=ve.slice(Re.location+Re.prefix.length);sFe(Ge,e.split)?(D.value=!0,S.value={measuring:!0,text:Ge,...Re},t("search",Ge,Re.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();v.value=q,t("update:modelValue",q),t("change",q),(Fe=(Se=l.value)==null?void 0:Se.onChange)==null||Fe.call(Se)},T=q=>{var te,Se;v.value="",t("update:modelValue",""),t("change",""),(Se=(te=l.value)==null?void 0:te.onChange)==null||Se.call(te),t("clear",q)},D=ue(!1),P=F(()=>D.value&&S.value.measuring&&H.value.length>0),M=()=>{W.value=hV(a)},$=q=>{D.value=q},L=(q,te)=>{var Se,Fe,ve;const{value:Re}=(Se=j.get(q))!=null?Se:{},Ge=S.value.location,nt=S.value.location+S.value.text.length;let Ie=v.value.slice(0,Ge),_e=v.value.slice(nt+1);Ie+=!Ie||Ie.endsWith(e.split)||Ie.endsWith(` `)?"":e.split,_e=(!_e||_e.startsWith(e.split)||_e.startsWith(` -`)?"":e.split)+_e;const ve=`${S.value.prefix}${xe}`,me=`${Ue}${ve}${_e}`;v.value=me,t("select",xe),t("update:modelValue",me),t("change",me),k(),(ge=(Ve=l.value)==null?void 0:Ve.onChange)==null||ge.call(Ve)},{validOptions:B,optionInfoMap:j,validOptionInfos:H,handleKeyDown:U}=pH({options:c,inputValue:x,filterOption:E,popupVisible:P,valueKeys:y,dropdownRef:h,optionRefs:p,onSelect:L,onPopupVisibleChange:O,enterToOpen:!1}),K=ue();hn(()=>{var ae;e.type==="textarea"&&((ae=C.value)!=null&&ae.textareaRef)&&(a=window.getComputedStyle(C.value.textareaRef),K.value=dV(a))});const Y=ae=>{if(Sn(r.option)&&ae.value){const re=j.get(ae.key),Ce=r.option;return()=>Ce({data:re})}return()=>ae.label},ie=ae=>$(pm,{ref:re=>{re?.$el&&(p.value[ae.key]=re.$el)},key:ae.key,value:ae.value,disabled:ae.disabled,internal:!0},{default:Y(ae)}),te=()=>{let ae;return $(hH,{ref:h},aFe(ae=B.value.map(re=>ie(re)))?ae:{default:()=>[ae]})},W=ue();It(P,ae=>{e.type==="textarea"&&ae&&dn(()=>{var re,Ce;(re=C.value)!=null&&re.textareaRef&&C.value.textareaRef.scrollTop>0&&((Ce=W.value)==null||Ce.scrollTo(0,C.value.textareaRef.scrollTop))})});const q=ae=>{t("focus",ae)},Q=ae=>{t("blur",ae)};return{inputRef:C,render:()=>{var ae;return e.type==="textarea"?$("div",{class:i},[$(Dd,{onResize:M},{default:()=>[$(J0e,Ft(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:Q,onKeydown:U}),null)]}),S.value.measuring&&H.value.length>0&&$("div",{ref:W,style:K.value,class:`${i}-measure`},[(ae=g.value)==null?void 0:ae.slice(0,S.value.location),$(va,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,onPopupVisibleChange:O},{default:()=>[$("span",null,[He("@")])],content:te})])]):$(va,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:s.value,onPopupVisibleChange:O},{default:()=>[$(F0,Ft(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:Q,onKeydown:U}),r)],content:te})}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const lFe=Object.assign(YR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+YR.name,YR)}}),BH=Symbol("MenuInjectionKey"),NH=Symbol("LevelInjectionKey"),Q0e=Symbol("DataCollectorInjectionKey"),uFe=we({name:"IconMenuFold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),cFe=["stroke-width","stroke-linecap","stroke-linejoin"];function dFe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1)]),14,cFe)}var XR=ze(uFe,[["render",dFe]]);const eve=Object.assign(XR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XR.name,XR)}}),fFe=we({name:"IconMenuUnfold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),hFe=["stroke-width","stroke-linecap","stroke-linejoin"];function pFe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1)]),14,hFe)}var ZR=ze(fFe,[["render",pFe]]);const tve=Object.assign(ZR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZR.name,ZR)}});function FH(e){const t=F(()=>Bo(e)?e.value:e);ri(NH,qt({level:t}))}function aS(e){const{provideNextLevel:t}=e||{},n=Pn(NH),r=F(()=>n?.level||1);if(t){const i=F(()=>r.value+1);FH(i)}return{level:r}}function Nre(e,t){const n=[],r=i=>{i.forEach(a=>{t(a)&&n.push(a.key),a.children&&r(a.children)})};return r(e),n}function nve(e=!1){return e?void 0:Pn(Q0e)}function rve(e){const{key:t,type:n}=e,r=ue([]),i=nve(n==="menu");return ri(Q0e,{collectSubMenu(s,l,c=!1){const d={key:s,children:l};if(c){const h=r.value.find(p=>p.key===s);h?h.children=l:r.value.push(d)}else r.value=[...r.value,d];c&&(n==="popupMenu"?i?.reportMenuData(r.value):n==="subMenu"&&!xn(s)&&i?.collectSubMenu(s,r.value,!0))},removeSubMenu(s){r.value=r.value.filter(l=>l.key!==s)},collectMenuItem(s){r.value.push({key:s})},removeMenuItem(s){r.value=r.value.filter(l=>l.key!==s)},reportMenuData(s){r.value=s,n==="subMenu"&&!xn(t)&&i?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!xn(t)?(hn(()=>{i?.collectSubMenu(t,r.value)}),ii(()=>{i?.removeSubMenu(t)})):n==="popupMenu"&&hn(()=>{i?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:F(()=>Nre(r.value,s=>!!s.children)),menuItemKeys:F(()=>Nre(r.value,s=>!s.children))}}function vFe(e,t){const n=[],r=i=>{for(let a=0;a{d.value=y};It(t,()=>{xn(t.value)&&h([])});let p=[];hn(()=>{p=[...a.value];let y=[];if(r.value&&(y=c.value?a.value.slice(0,1):[...a.value]),i.value){const S=s.value.map(k=>vFe(l.value,k));S.length&&(!r.value||c.value)&&(y=c.value?S[0]:[...new Set([].concat(...S))])}y.length&&h(y)});let v=!1;It(a,(y,S=[])=>{if(v||!mFe(y,p)){const k=g.value.filter(C=>y.includes(C));if(r.value){const C=y.filter(x=>!S.includes(x));k.push(...C)}h(c.value?k.slice(0,1):k)}v=!0});const g=F(()=>t.value||d.value);return{openKeys:g,localOpenKeys:d,setOpenKeys:h,open(y,S){let k=[];return g.value.indexOf(y)>-1?c.value&&S===1?k=[]:k=g.value.filter(C=>C!==y):c.value&&S===1?k=[y]:k=g.value.concat([y]),h(k),k}}}const yFe=we({name:"BaseMenu",components:{IconMenuFold:eve,IconMenuUnfold:tve},inheritAttrs:!1,props:{style:{type:Object},theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},levelIndent:{type:Number},autoOpen:{type:Boolean},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsedWidth:{type:Number},accordion:{type:Boolean},autoScrollIntoView:{type:Boolean},showCollapseButton:{type:Boolean},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array,default:()=>[]},openKeys:{type:Array},defaultOpenKeys:{type:Array,default:()=>[]},scrollConfig:{type:Object},triggerProps:{type:Object},tooltipProps:{type:Object},autoOpenSelected:{type:Boolean},breakpoint:{type:String},popupMaxHeight:{type:[Boolean,Number],default:!0},prefixCls:{type:String},inTrigger:{type:Boolean},siderCollapsed:{type:Boolean},isRoot:{type:Boolean}},emits:["update:collapsed","update:selectedKeys","update:openKeys","collapse","menu-item-click","sub-menu-click"],setup(e,{emit:t,slots:n}){const{style:r,mode:i,theme:a,levelIndent:s,accordion:l,showCollapseButton:c,scrollConfig:d,autoScrollIntoView:h,collapsedWidth:p,autoOpen:v,collapsed:g,defaultCollapsed:y,selectedKeys:S,defaultSelectedKeys:k,openKeys:C,defaultOpenKeys:x,triggerProps:E,tooltipProps:_,autoOpenSelected:T,breakpoint:D,popupMaxHeight:P,prefixCls:M,inTrigger:O,siderCollapsed:L,isRoot:B}=tn(e),{subMenuKeys:j,menuData:H}=rve({type:B.value?"menu":"popupMenu"}),[U,K]=pa(k.value,qt({value:S})),{openKeys:Y,setOpenKeys:ie,open:te}=gFe(qt({modelValue:C,defaultValue:x,autoOpen:v,autoOpenSelected:T,selectedKeys:U,subMenuKeys:j,menuData:H,accordion:l})),[W,q]=pa(y.value,qt({value:g})),Q=F(()=>L.value||W.value||i.value==="popButton"),se=F(()=>["horizontal","popButton"].indexOf(i.value)<0&&!O.value&&c.value),ae=(Ue,_e)=>{Ue!==W.value&&(q(Ue),t("update:collapsed",Ue),t("collapse",Ue,_e))},re=()=>{ae(!W.value,"clickTrigger")};Y0e(D,Ue=>{ae(!Ue,"responsive")});const Ce=F(()=>M?.value||Re("menu")),Ve=F(()=>[Ce.value,`${Ce.value}-${a?.value}`,{[`${Ce.value}-horizontal`]:i.value==="horizontal",[`${Ce.value}-vertical`]:i.value!=="horizontal",[`${Ce.value}-collapsed`]:Q.value,[`${Ce.value}-pop`]:i.value==="pop"||Q.value,[`${Ce.value}-pop-button`]:i.value==="popButton"}]),ge=F(()=>{const Ue=et(p.value)?`${p.value}px`:void 0,_e=gr(r.value)?r.value:void 0,ve=Q.value?Ue:_e?.width;return[_e?Ea(_e,["width"]):r.value,{width:ve}]}),xe=Cd(n,"expand-icon-down"),Ge=Cd(n,"expand-icon-right"),tt=qt({theme:a,mode:i,levelIndent:s,autoScrollIntoView:h,selectedKeys:U,openKeys:Y,prefixCls:Ce,scrollConfig:d,inTrigger:O,collapsed:Q,triggerProps:E,tooltipProps:_,popupMaxHeight:P,expandIconDown:xe,expandIconRight:Ge,onMenuItemClick:Ue=>{K([Ue]),t("update:selectedKeys",[Ue]),t("menu-item-click",Ue)},onSubMenuClick:(Ue,_e)=>{const ve=te(Ue,_e);ie(ve),t("update:openKeys",ve),t("sub-menu-click",Ue,ve)}});return ri(BH,tt),FH(1),{computedPrefixCls:Ce,classNames:Ve,computedStyle:ge,computedCollapsed:Q,computedHasCollapseButton:se,onCollapseBtnClick:re}}});function bFe(e,t,n,r,i,a){const s=Te("IconMenuUnfold"),l=Te("IconMenuFold");return z(),X("div",Ft({class:e.classNames},e.$attrs,{style:e.computedStyle}),[I("div",{class:de(`${e.computedPrefixCls}-inner`)},[mt(e.$slots,"default")],2),e.computedHasCollapseButton?(z(),X("div",{key:0,class:de(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[mt(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(z(),Ze(s,{key:0})):(z(),Ze(l,{key:1}))])],2)):Ie("v-if",!0)],16)}var fV=ze(yFe,[["render",bFe]]);function Fre(e,t){if(!e||!t)return null;let n=t;n==="float"&&(n="cssFloat");try{if(document.defaultView){const r=document.defaultView.getComputedStyle(e,"");return e.style[n]||r?r[n]:""}}catch{return e.style[n]}return null}function ng(){return Pn(BH)||{}}const _Fe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function J5(){const e=So();return{key:F(()=>e?.vnode.key||_Fe("__arco_menu"))}}const SFe=we({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Re("menu"),t=ng();return{prefixCls:e,levelIndent:Du(t,"levelIndent")}}});function kFe(e,t,n,r,i,a){return e.level>1?(z(),X("span",{key:0,class:de(`${e.prefixCls}-indent-list`)},[(z(!0),X(Pt,null,cn(e.level-1,s=>(z(),X("span",{key:s,class:de(`${e.prefixCls}-indent`),style:Ye(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Ie("v-if",!0)}var Q5=ze(SFe,[["render",kFe]]);const xFe=we({name:"ExpandTransition",setup(){return{onBeforeEnter(e){e.style.height="0"},onEnter(e){e.style.height=`${e.scrollHeight}px`},onAfterEnter(e){e.style.height=""},onBeforeLeave(e){e.style.height=`${e.scrollHeight}px`},onLeave(e){e.style.height="0"},onAfterLeave(e){e.style.height=""}}}});function CFe(e,t,n,r,i,a){return z(),Ze(Cs,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:fe(()=>[mt(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var wFe=ze(xFe,[["render",CFe]]);const EFe=we({name:"SubMenuInline",components:{MenuIndent:Q5,ExpandTransition:wFe},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=J5(),{level:n}=aS({provideNextLevel:!0}),r=ng(),i=F(()=>r.prefixCls),a=F(()=>`${i.value}-inline`),s=F(()=>[a.value]),l=F(()=>e.isChildrenSelected),c=F(()=>(r.openKeys||[]).indexOf(t.value)>-1);return{prefixCls:a,menuPrefixCls:i,classNames:s,level:n,isSelected:l,isOpen:c,onHeaderClick:()=>{r.onSubMenuClick&&r.onSubMenuClick(t.value,n.value)}}}});function TFe(e,t,n,r,i,a){const s=Te("MenuIndent"),l=Te("ExpandTransition");return z(),X("div",{class:de(e.classNames)},[I("div",{class:de([`${e.prefixCls}-header`,{[`${e.menuPrefixCls}-selected`]:e.isSelected,[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}]),onClick:t[0]||(t[0]=(...c)=>e.onHeaderClick&&e.onHeaderClick(...c))},[$(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),X(Pt,{key:0},[I("span",{class:de(`${e.menuPrefixCls}-icon`)},[mt(e.$slots,"icon")],2),I("span",{class:de(`${e.menuPrefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)],64)):mt(e.$slots,"title",{key:1},()=>[He(Ne(e.title),1)]),I("span",{class:de([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[mt(e.$slots,"expand-icon-down")],2)],2),$(l,null,{default:fe(()=>[Ai(I("div",{class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2),[[es,e.isOpen]])]),_:3})],2)}var AFe=ze(EFe,[["render",TFe]]);const IFe=we({name:"SubMenuPop",components:{Menu:fV,Trigger:va,MenuIndent:Q5,RenderFunction:Jh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=J5(),{level:n}=aS(),{selectable:r,isChildrenSelected:i,popupMaxHeight:a}=tn(e),s=ng(),{onSubMenuClick:l,onMenuItemClick:c}=s,d=F(()=>s.prefixCls),h=F(()=>s.mode),p=F(()=>s.selectedKeys||[]),v=F(()=>`${d.value}-pop`),g=F(()=>r.value&&p.value.includes(t.value)||i.value),y=F(()=>[`${v.value}`,`${v.value}-header`,{[`${d.value}-selected`]:g.value}]),S=F(()=>h.value==="horizontal"&&!s.inTrigger),k=ue(!1),C=T=>{k.value=T},x=Re("trigger"),E=F(()=>{var T;return[`${v.value}-trigger`,{[`${v.value}-trigger-dark`]:s.theme==="dark"},(T=s.triggerProps)==null?void 0:T.class]}),_=F(()=>Ea(s.triggerProps||{},["class"]));return{menuPrefixCls:d,mode:h,level:n,classNames:y,isSelected:g,selectedKeys:p,needPopOnBottom:S,popVisible:k,triggerPrefixCls:x,triggerClassNames:E,triggerProps:_,menuContext:s,popupMenuStyles:F(()=>{var T;const D=(T=a.value)!=null?T:s.popupMaxHeight;return et(D)?{maxHeight:`${D}px`}:D?{}:{maxHeight:"unset"}}),onClick:()=>{l&&l(t.value,n.value),r.value&&c&&c(t.value)},onMenuItemClick:T=>{c&&c(T),C(!1)},onVisibleChange:T=>{C(T)}}}});function LFe(e,t,n,r,i,a){const s=Te("MenuIndent"),l=Te("RenderFunction"),c=Te("Menu"),d=Te("Trigger");return z(),Ze(d,Ft({trigger:"hover",class:e.triggerClassNames,position:e.needPopOnBottom?"bl":"rt","show-arrow":"","animation-class":"fade-in","mouse-enter-delay":50,"mouse-leave-delay":50,"popup-offset":4,"auto-fit-popup-min-width":!0,duration:100},e.triggerProps,{"unmount-on-close":!1,"popup-visible":e.popVisible,onPopupVisibleChange:e.onVisibleChange}),{content:fe(()=>[$(c,{"in-trigger":"","prefix-cls":`${e.triggerPrefixCls}-menu`,"selected-keys":e.selectedKeys,theme:e.menuContext.theme,"trigger-props":e.menuContext.triggerProps,style:Ye(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},yo({default:fe(()=>[mt(e.$slots,"default")]),_:2},[e.menuContext.expandIconDown?{name:"expand-icon-down",fn:fe(()=>[$(l,{"render-func":e.menuContext.expandIconDown},null,8,["render-func"])]),key:"0"}:void 0,e.menuContext.expandIconRight?{name:"expand-icon-right",fn:fe(()=>[$(l,{"render-func":e.menuContext.expandIconRight},null,8,["render-func"])]),key:"1"}:void 0]),1032,["prefix-cls","selected-keys","theme","trigger-props","style","onMenuItemClick"])]),default:fe(()=>[I("div",Ft({class:[e.classNames,{[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}],"aria-haspopup":"true"},e.$attrs,{onClick:t[0]||(t[0]=(...h)=>e.onClick&&e.onClick(...h))}),[Ie(" header "),$(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),X(Pt,{key:0},[I("span",{class:de(`${e.menuPrefixCls}-icon`)},[mt(e.$slots,"icon")],2),I("span",{class:de(`${e.menuPrefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)],64)):mt(e.$slots,"title",{key:1},()=>[He(Ne(e.title),1)]),Ie(" suffix "),I("span",{class:de(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?mt(e.$slots,"expand-icon-down",{key:0}):mt(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(z(),X("div",{key:2,class:de(`${e.menuPrefixCls}-selected-label`)},null,2)):Ie("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var DFe=ze(IFe,[["render",LFe]]),db=we({name:"SubMenu",props:{title:{type:String},selectable:{type:Boolean},popup:{type:[Boolean,Function],default:!1},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e,{attrs:t}){const{key:n}=J5(),{level:r}=aS(),{popup:i}=tn(e),a=ng(),s=F(()=>{const{mode:h,collapsed:p,inTrigger:v}=a;return!!(typeof i.value=="function"?i.value(r.value):i.value)||p||v||h!=="vertical"}),{subMenuKeys:l,menuItemKeys:c}=rve({key:n.value,type:"subMenu"}),d=F(()=>{const h=a.selectedKeys||[],p=v=>{for(let g=0;g[$(Zh,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[$(Hi,null,null)])};return r?$(DFe,Ft({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):$(AFe,Ft({key:n,title:e.title,isChildrenSelected:s},t),l)}});const PFe=10;function jre(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function Vre(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var RFe=we({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${ng().prefixCls}-overflow`,i=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=ue(),c=ue(null),d=ue();function h(){const p=l.value,v=jre(p),g=[].slice.call(p.children);let y=0,S=0,k=0;for(let C=0;C-1,T=E.indexOf(s)>-1;if(_)continue;const D=jre(x)+Vre(Fre(x,"marginLeft"))+Vre(Fre(x,"marginRight"));if(T){k=D;continue}if(S+=D,S+k+PFe>v){c.value=y-1;return}y++}c.value=null}return hn(()=>{h(),d.value=new D5(p=>{p.forEach(h)}),l.value&&d.value.observe(l.value)}),ii(()=>{d.value&&d.value.disconnect()}),()=>{const p=(g,y)=>{const{isMirror:S=!1,props:k={}}=y||{};return $(db,Ft({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:i},k),{title:()=>$("span",null,[He("...")]),default:()=>g})},v=()=>{var g;const y=((g=t.default)==null?void 0:g.call(t))||[],S=C7e(y);let k=null;const C=p(null,{isMirror:!0}),x=S.map((E,_)=>{const T=El(E,c.value!==null&&_>c.value?{class:a}:{class:""});if(c.value!==null&&_===c.value+1){const D=S.slice(_).map(P=>El(P));k=p(D)}return T});return[C,...x,k]};return $("div",{class:`${r}-wrap`,ref:l},[v()])}}}),JR=we({name:"Menu",components:{BaseMenu:fV},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:r,mode:i}=tn(e),a=Pn(U0e,void 0),s=F(()=>a?.collapsed||!1),l=F(()=>r?.value||a?.theme||"light");return ri(BH,void 0),ri(NH,void 0),()=>$(fV,Ft(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:i.value==="horizontal"&&n.default?()=>$(RFe,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),Ww=we({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=J5(),{level:r}=aS(),i=ng(),a=ue(),s=F(()=>(i.selectedKeys||[]).indexOf(n.value)>-1),l=nve();hn(()=>{l?.collectMenuItem(n.value)}),ii(()=>{l?.removeMenuItem(n.value)});function c(){i.autoScrollIntoView&&a.value&&s.value&&E0e(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...i.scrollConfig||{}})}let d;return hn(()=>{d=setTimeout(()=>{c()},500)}),ii(()=>{clearTimeout(d)}),It([s],()=>{c()}),{menuContext:i,level:r,isSelected:s,refItemElement:a,onClick(h){e.disabled||(i.onMenuItemClick&&i.onMenuItemClick(n.value),t("click",h))}}},render(){var e,t;const{level:n,menuContext:r,disabled:i,isSelected:a,onClick:s}=this,{prefixCls:l,collapsed:c,inTrigger:d,mode:h,tooltipProps:p}=r,v=c&&!d&&n===1,g=h==="vertical"&&n>1,y=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],S=g&&!d&&!c,k=this.$slots.icon&&this.$slots.icon(),C=[S&&$(Q5,{level:n},null),k&&$("span",{class:`${l}-icon`},[k]),S||k?$("span",{class:[`${l}-item-inner`,{[`${l}-title`]:k}]},[y]):y].filter(Boolean),x=$("div",Ft({ref:"refItemElement",class:[`${l}-item`,{[`${l}-disabled`]:i,[`${l}-selected`]:a,[`${l}-has-icon`]:k}]},this.$attrs,{onClick:s}),[C,a&&h==="horizontal"&&$("div",{class:`${l}-selected-label`},null)]);if(v){const E=[`${l}-item-tooltip`,p?.class];return $(Qc,Ft({trigger:"hover",position:"right",class:E},Ea(p||{},["class"])),{default:()=>x,content:()=>y})}return x}});const MFe=we({name:"MenuItemGroup",components:{MenuIndent:Q5},props:{title:{type:String}},setup(){const{level:e}=aS(),t=F(()=>e.value===1?e.value+1:e.value);FH(t);const n=ng(),r=F(()=>n.prefixCls),i=F(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:i,level:e}}});function $Fe(e,t,n,r,i,a){const s=Te("MenuIndent");return z(),X("div",{class:de(e.classNames)},[I("div",{class:de(`${e.prefixCls}-group-title`)},[$(s,{level:e.level},null,8,["level"]),mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2),mt(e.$slots,"default")],2)}var Gw=ze(MFe,[["render",$Fe]]);const OFe=Object.assign(JR,{Item:Ww,ItemGroup:Gw,SubMenu:db,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+JR.name,JR),e.component(n+Ww.name,Ww),e.component(n+Gw.name,Gw),e.component(n+db.name,db)}}),BFe=we({name:"Message",components:{AIconHover:Lo,IconInfoCircleFill:a3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:eg,IconClose:fs,IconLoading:Ja},props:{type:{type:String,default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1},resetOnHover:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=Re("message");let r=0;const i=()=>{t("close")},a=()=>{e.duration>0&&(r=window.setTimeout(i,e.duration))},s=()=>{r&&(window.clearTimeout(r),r=0)};return hn(()=>{a()}),tl(()=>{e.resetOnUpdate&&(s(),a())}),ii(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:i}}});function NFe(e,t,n,r,i,a){const s=Te("icon-info-circle-fill"),l=Te("icon-check-circle-fill"),c=Te("icon-exclamation-circle-fill"),d=Te("icon-close-circle-fill"),h=Te("icon-loading"),p=Te("icon-close"),v=Te("a-icon-hover");return z(),X("li",{role:"alert",class:de([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}]),onMouseenter:t[1]||(t[1]=(...g)=>e.handleMouseEnter&&e.handleMouseEnter(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),X("span",{key:0,class:de(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):e.type==="loading"?(z(),Ze(h,{key:4})):Ie("v-if",!0)])],2)):Ie("v-if",!0),I("span",{class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2),e.closable?(z(),X("span",{key:1,class:de(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[$(v,null,{default:fe(()=>[$(p)]),_:1})],2)):Ie("v-if",!0)],34)}var FFe=ze(BFe,[["render",NFe]]);function jFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var VFe=we({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=Re("message-list"),{zIndex:r}=l3("message",{runOnMounted:!0});return()=>{let i;return $(o3,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},jFe(i=e.messages.map(a=>{const s={default:Wl(a.content),icon:Wl(a.icon)};return $(FFe,{key:a.id,type:a.type,duration:a.duration,closable:a.closable,resetOnUpdate:a.resetOnUpdate,resetOnHover:a.resetOnHover,onClose:()=>t.emit("close",a.id)},s)}))?i:{default:()=>[i]})}}});class zFe{constructor(t,n){this.messageCount=0,this.add=a=>{var s;this.messageCount++;const l=(s=a.id)!=null?s:`__arco_message_${this.messageCount}`;if(this.messageIds.has(l))return this.update(l,a);const c=qt({id:l,...a});return this.messages.value.push(c),this.messageIds.add(l),{close:()=>this.remove(l)}},this.update=(a,s)=>{for(let l=0;lthis.remove(a)}},this.remove=a=>{for(let s=0;s{this.messages.value.splice(0)},this.destroy=()=>{this.messages.value.length===0&&this.container&&(Jc(null,this.container),document.body.removeChild(this.container),this.container=null,dy[this.position]=void 0)};const{position:r="top"}=t;this.container=$5("message"),this.messageIds=new Set,this.messages=ue([]),this.position=r;const i=$(VFe,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??yt._context)&&(i.appContext=n??yt._context),Jc(i,this.container),document.body.appendChild(this.container)}}const dy={},ive=[...B5,"loading","normal"],Kw=ive.reduce((e,t)=>(e[t]=(n,r)=>{ds(n)&&(n={content:n});const i={type:t,...n},{position:a="top"}=i;return dy[a]||(dy[a]=new zFe(i,r)),dy[a].add(i)},e),{});Kw.clear=e=>{var t;e?(t=dy[e])==null||t.clear():Object.values(dy).forEach(n=>n?.clear())};const yt={...Kw,install:e=>{const t={clear:Kw.clear};for(const n of ive)t[n]=(r,i=e._context)=>Kw[n](r,i);e.config.globalProperties.$message=t},_context:null},UFe=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:r})=>{const i=ue(!1),a=ue([0,0]),s=ue([0,0]),l=ue(),c=ue([0,0]),d=ue([0,0]),h=()=>{var y,S,k;if(t.value&&e.value){const{top:C,left:x}=t.value.getBoundingClientRect(),{clientWidth:E,clientHeight:_}=t.value,{top:T,left:D,width:P,height:M}=e.value.getBoundingClientRect(),O=r.value?0:(y=e.value)==null?void 0:y.offsetTop,L=D-x,B=T-C-O;(L!==((S=s.value)==null?void 0:S[0])||B!==((k=s.value)==null?void 0:k[1]))&&(s.value=[L,B]);const j=E>P?E-P:0,H=_>M?_-M-O:0;(j!==d.value[0]||H!==d.value[1])&&(d.value=[j,H]),O&&(c.value=[0,0-O])}},p=y=>{n.value&&(y.preventDefault(),i.value=!0,h(),a.value=[y.x,y.y],Mi(window,"mousemove",v),Mi(window,"mouseup",g),Mi(window,"contextmenu",g))},v=y=>{if(i.value){const S=y.x-a.value[0],k=y.y-a.value[1];let C=s.value[0]+S,x=s.value[1]+k;Cd.value[0]&&(C=d.value[0]),xd.value[1]&&(x=d.value[1]),l.value=[C,x]}},g=()=>{i.value=!1,no(window,"mousemove",v),no(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var HFe=we({name:"Modal",components:{ClientOnly:dH,ArcoButton:Xo,IconHover:Lo,IconClose:fs,IconInfoCircleFill:a3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:eg},inheritAttrs:!1,props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{type:[Number,String]},top:{type:[Number,String]},mask:{type:Boolean,default:!0},title:{type:String},titleAlign:{type:String,default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:Boolean,maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},simple:{type:Boolean,default:e=>e.notice},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{type:[String,Object],default:"body"},maskStyle:{type:Object},modalClass:{type:[String,Array]},modalStyle:{type:Object},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{type:String,default:e=>e.fullscreen?"fade-in-standard":"fade-modal"},modalAnimationName:{type:String,default:e=>e.fullscreen?"zoom-in":"zoom-modal"},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},messageType:{type:String},hideTitle:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{fullscreen:n,popupContainer:r,alignCenter:i}=tn(e),a=Re("modal"),{t:s}=No(),l=ue(),c=ue(),d=ue(e.defaultVisible),h=F(()=>{var Ce;return(Ce=e.visible)!=null?Ce:d.value}),p=ue(!1),v=F(()=>e.okLoading||p.value),g=F(()=>e.draggable&&!e.fullscreen),{teleportContainer:y,containerRef:S}=fH({popupContainer:r,visible:h}),k=ue(h.value),C=F(()=>e.okText||s("modal.okText")),x=F(()=>e.cancelText||s("modal.cancelText")),{zIndex:E,isLastDialog:_}=l3("dialog",{visible:h});let T=!1;const D=Ce=>{e.escToClose&&Ce.key===Ho.ESC&&_()&&U(Ce)},P=()=>{e.escToClose&&!T&&(T=!0,Mi(document.documentElement,"keydown",D))},M=()=>{T=!1,no(document.documentElement,"keydown",D)};let O=0;const{position:L,handleMoveDown:B}=UFe({wrapperRef:l,modalRef:c,draggable:g,alignCenter:i}),j=()=>{O++,p.value&&(p.value=!1),d.value=!1,t("update:visible",!1)},H=async Ce=>{const Ve=O,ge=await new Promise(async xe=>{var Ge;if(Sn(e.onBeforeOk)){let tt=e.onBeforeOk((Ue=!0)=>xe(Ue));if((Lm(tt)||!Tl(tt))&&(p.value=!0),Lm(tt))try{tt=(Ge=await tt)!=null?Ge:!0}catch(Ue){throw tt=!1,Ue}Tl(tt)&&xe(tt)}else xe(!0)});Ve===O&&(ge?(t("ok",Ce),j()):p.value&&(p.value=!1))},U=Ce=>{var Ve;let ge=!0;Sn(e.onBeforeCancel)&&(ge=(Ve=e.onBeforeCancel())!=null?Ve:!1),ge&&(t("cancel",Ce),j())},K=ue(!1),Y=Ce=>{Ce.target===l.value&&(K.value=!0)},ie=Ce=>{e.mask&&e.maskClosable&&K.value&&U(Ce)},te=()=>{h.value&&(!w7e(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},W=()=>{h.value||(g.value&&(L.value=void 0),k.value=!1,Q(),t("close"))},{setOverflowHidden:q,resetOverflow:Q}=C0e(S);hn(()=>{S.value=af(e.popupContainer),h.value&&(q(),e.escToClose&&P())}),_o(()=>{Q(),M()}),It(h,Ce=>{d.value!==Ce&&(d.value=Ce),Ce?(t("beforeOpen"),k.value=!0,K.value=!1,q(),P()):(t("beforeClose"),M())}),It(n,()=>{L.value&&(L.value=void 0)});const se=F(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!L.value}]),ae=F(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),re=F(()=>{var Ce;const Ve={...(Ce=e.modalStyle)!=null?Ce:{}};return e.width&&!e.fullscreen&&(Ve.width=et(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(Ve.top=et(e.top)?`${e.top}px`:e.top),L.value&&(Ve.transform=`translate(${L.value[0]}px, ${L.value[1]}px)`),Ve});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:re,okDisplayText:C,cancelDisplayText:x,zIndex:E,handleOk:H,handleCancel:U,handleMaskClick:ie,handleMaskMouseDown:Y,handleOpen:te,handleClose:W,mergedOkLoading:v,modalRef:c,wrapperCls:se,modalCls:ae,teleportContainer:y,handleMoveDown:B}}});function WFe(e,t,n,r,i,a){const s=Te("icon-info-circle-fill"),l=Te("icon-check-circle-fill"),c=Te("icon-exclamation-circle-fill"),d=Te("icon-close-circle-fill"),h=Te("icon-close"),p=Te("icon-hover"),v=Te("arco-button"),g=Te("client-only");return z(),Ze(g,null,{default:fe(()=>[(z(),Ze(Zm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ai((z(),X("div",Ft({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[$(Cs,{name:e.maskAnimationName,appear:""},{default:fe(()=>[e.mask?Ai((z(),X("div",{key:0,ref:"maskRef",class:de(`${e.prefixCls}-mask`),style:Ye(e.maskStyle)},null,6)),[[es,e.computedVisible]]):Ie("v-if",!0)]),_:1},8,["name"]),I("div",{ref:"wrapperRef",class:de(e.wrapperCls),onClick:t[2]||(t[2]=cs((...y)=>e.handleMaskClick&&e.handleMaskClick(...y),["self"])),onMousedown:t[3]||(t[3]=cs((...y)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...y),["self"]))},[$(Cs,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:fe(()=>[Ai(I("div",{ref:"modalRef",class:de(e.modalCls),style:Ye(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(z(),X("div",{key:0,class:de(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...y)=>e.handleMoveDown&&e.handleMoveDown(...y))},[e.$slots.title||e.title?(z(),X("div",{key:0,class:de([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(z(),Ze(s,{key:0})):Ie("v-if",!0),e.messageType==="success"?(z(),Ze(l,{key:1})):Ie("v-if",!0),e.messageType==="warning"?(z(),Ze(c,{key:2})):Ie("v-if",!0),e.messageType==="error"?(z(),Ze(d,{key:3})):Ie("v-if",!0)],2)):Ie("v-if",!0),mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ie("v-if",!0),!e.simple&&e.closable?(z(),X("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:de(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...y)=>e.handleCancel&&e.handleCancel(...y))},[$(p,null,{default:fe(()=>[$(h)]),_:1})],2)):Ie("v-if",!0)],34)):Ie("v-if",!0),I("div",{class:de([`${e.prefixCls}-body`,e.bodyClass]),style:Ye(e.bodyStyle)},[mt(e.$slots,"default")],6),e.footer?(z(),X("div",{key:1,class:de(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer",{},()=>[e.hideCancel?Ie("v-if",!0):(z(),Ze(v,Ft({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:fe(()=>[He(Ne(e.cancelDisplayText),1)]),_:1},16,["onClick"])),$(v,Ft({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:fe(()=>[He(Ne(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Ie("v-if",!0)],6),[[es,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[es,e.computedVisible||e.mounted]]):Ie("v-if",!0)],8,["to","disabled"]))]),_:3})}var qw=ze(HFe,[["render",WFe]]);const QR=(e,t)=>{let n=$5("modal");const r=()=>{d.component&&(d.component.props.visible=!1),Sn(e.onOk)&&e.onOk()},i=()=>{d.component&&(d.component.props.visible=!1),Sn(e.onCancel)&&e.onCancel()},a=async()=>{await dn(),n&&(Jc(null,n),document.body.removeChild(n)),n=null,Sn(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,v])=>{d.component.props[p]=v})},d=$(qw,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:i,onClose:a},...Ea(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Wl(e.content),title:Wl(e.title),footer:typeof e.footer!="boolean"?Wl(e.footer):void 0});return(t??Xl._context)&&(d.appContext=t??Xl._context),Jc(d,n),document.body.appendChild(n),{close:s,update:l}},eM={open:QR,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return QR(n,t)},...B5.reduce((e,t)=>(e[t]=(n,r)=>{const i={simple:!0,hideCancel:!0,messageType:t,...n};return QR(i,r)},e),{})},Xl=Object.assign(qw,{...eM,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+qw.name,qw);const r={};for(const i of Object.keys(eM))r[i]=(a,s=e._context)=>eM[i](a,s);e.config.globalProperties.$modal=r},_context:null}),GFe=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),KFe=we({name:"Notification",components:{AIconHover:Lo,IconInfoCircleFill:a3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:eg,IconClose:fs},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1}},emits:["close"],setup(e,t){const n=Re("notification");let r=0;const i=()=>{t.emit("close")};return hn(()=>{e.duration>0&&(r=window.setTimeout(i,e.duration))}),tl(()=>{e.resetOnUpdate&&(r&&(window.clearTimeout(r),r=0),e.duration>0&&(r=window.setTimeout(i,e.duration)))}),ii(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:i}}});function qFe(e,t,n,r,i,a){const s=Te("icon-info-circle-fill"),l=Te("icon-check-circle-fill"),c=Te("icon-exclamation-circle-fill"),d=Te("icon-close-circle-fill"),h=Te("icon-close"),p=Te("a-icon-hover");return z(),X("li",{role:"alert",class:de([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(z(),X("div",{key:0,class:de(`${e.prefixCls}-left`)},[I("div",{class:de(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):Ie("v-if",!0)])],2)],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-right`)},[e.$slots.default?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"default")],2)):Ie("v-if",!0),e.$slots.content?(z(),X("div",{key:1,class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"content")],2)):Ie("v-if",!0),e.$slots.footer?(z(),X("div",{key:2,class:de(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer")],2)):Ie("v-if",!0)],2),e.closable?(z(),X("div",{key:1,class:de(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...v)=>e.handleClose&&e.handleClose(...v))},[mt(e.$slots,"closeIconElement",{},()=>[$(p,null,{default:fe(()=>[mt(e.$slots,"closeIcon",{},()=>[$(h)])]),_:3})])],2)):Ie("v-if",!0)],2)}var YFe=ze(KFe,[["render",qFe]]);const XFe=["topLeft","topRight","bottomLeft","bottomRight"];function ZFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var JFe=we({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>XFe.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Re("notification-list"),r=GFe(e.position),{zIndex:i}=l3("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return $(o3,{class:[n,`${n}-${r}`],style:{zIndex:i.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},ZFe(s=e.notifications.map(l=>{const c={default:Wl(l.title),content:Wl(l.content),icon:Wl(l.icon),footer:Wl(l.footer),closeIcon:Wl(l.closeIcon),closeIconElement:Wl(l.closeIconElement)};return $(YFe,{key:l.id,type:l.type,style:l.style,class:l.class,duration:l.duration,closable:l.closable,showIcon:l.showIcon,resetOnUpdate:l.resetOnUpdate,onClose:()=>t.emit("close",l.id)},c)}))?s:{default:()=>[s]})}}});class QFe{constructor(t,n){this.notificationCount=0,this.add=a=>{var s;this.notificationCount++;const l=(s=a.id)!=null?s:`__arco_notification_${this.notificationCount}`;if(this.notificationIds.has(l))return this.update(l,a);const c=qt({id:l,...a});return this.notifications.value.push(c),this.notificationIds.add(l),{close:()=>this.remove(l)}},this.update=(a,s)=>{for(let l=0;lthis.remove(a)}},this.remove=a=>{for(let s=0;s{this.notifications.value.splice(0)},this.destroy=()=>{this.notifications.value.length===0&&this.container&&(Jc(null,this.container),document.body.removeChild(this.container),this.container=null,gm[this.position]=void 0)};const{position:r="topRight"}=t;this.container=$5("notification"),this.notificationIds=new Set,this.notifications=ue([]),this.position=r;const i=$(JFe,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??hV._context)&&(i.appContext=n??hV._context),Jc(i,this.container),document.body.appendChild(this.container)}}const gm={},fb=B5.reduce((e,t)=>(e[t]=(n,r)=>{ds(n)&&(n={content:n});const i={type:t,...n},{position:a="topRight"}=i;return gm[a]||(gm[a]=new QFe(i,r)),gm[a].add(i)},e),{});fb.remove=e=>{e&&Object.values(gm).forEach(t=>t?.remove(e))};fb.clear=e=>{var t;e?(t=gm[e])==null||t.clear():Object.values(gm).forEach(n=>n?.clear())};const hV={...fb,install:e=>{const t={clear:fb.clear};for(const n of B5)t[n]=(r,i=e._context)=>fb[n](r,i);e.config.globalProperties.$notification=t},_context:null},eje=we({name:"PageHeader",components:{AIconHover:Lo,IconLeft:Il},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=Re("page-header"),i=s=>{t("back",s)},a=F(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:i}}});function tje(e,t,n,r,i,a){const s=Te("icon-left"),l=Te("a-icon-hover");return z(),X("div",{class:de(e.cls)},[I("div",{class:de(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(z(),X("div",{key:0,class:de(`${e.prefixCls}-breadcrumb`)},[mt(e.$slots,"breadcrumb")],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-header`)},[I("span",{class:de(`${e.prefixCls}-main`)},[e.showBack?(z(),Ze(l,{key:0,class:de(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:fe(()=>[mt(e.$slots,"back-icon",{},()=>[$(s)])]),_:3},8,["class","prefix","onClick"])):Ie("v-if",!0),I("span",{class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(z(),X("span",{key:1,class:de(`${e.prefixCls}-divider`)},null,2)):Ie("v-if",!0),e.$slots.subtitle||e.subtitle?(z(),X("span",{key:2,class:de(`${e.prefixCls}-subtitle`)},[mt(e.$slots,"subtitle",{},()=>[He(Ne(e.subtitle),1)])],2)):Ie("v-if",!0)],2),e.$slots.extra?(z(),X("span",{key:0,class:de(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra")],2)):Ie("v-if",!0)],2)],2),e.$slots.default?(z(),X("div",{key:0,class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2)):Ie("v-if",!0)],2)}var tM=ze(eje,[["render",tje]]);const nje=Object.assign(tM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+tM.name,tM)}}),rje=we({name:"Popconfirm",components:{ArcoButton:Xo,Trigger:va,IconInfoCircleFill:a3,IconCheckCircleFill:Yh,IconExclamationCircleFill:If,IconCloseCircleFill:eg},props:{content:String,position:{type:String,default:"top"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},type:{type:String,default:"info"},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,ok:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const n=Re("popconfirm"),{t:r}=No(),i=ue(e.defaultPopupVisible),a=F(()=>{var S;return(S=e.popupVisible)!=null?S:i.value}),s=ue(!1),l=F(()=>e.okLoading||s.value);let c=0;const d=()=>{c++,s.value&&(s.value=!1),i.value=!1,t("update:popupVisible",!1),t("popupVisibleChange",!1)},h=S=>{S?(i.value=S,t("update:popupVisible",S),t("popupVisibleChange",S)):d()},p=async()=>{const S=c,k=await new Promise(async C=>{var x;if(Sn(e.onBeforeOk)){let E=e.onBeforeOk((_=!0)=>C(_));if((Lm(E)||!Tl(E))&&(s.value=!0),Lm(E))try{E=(x=await E)!=null?x:!0}catch(_){throw E=!1,_}Tl(E)&&C(E)}else C(!0)});S===c&&(k?(t("ok"),d()):s.value&&(s.value=!1))},v=()=>{var S;let k=!0;Sn(e.onBeforeCancel)&&(k=(S=e.onBeforeCancel())!=null?S:!1),k&&(t("cancel"),d())},g=F(()=>[`${n}-popup-content`,e.contentClass]),y=F(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:g,arrowCls:y,computedPopupVisible:a,mergedOkLoading:l,handlePopupVisibleChange:h,handleOk:p,handleCancel:v,t:r}}});function ije(e,t,n,r,i,a){const s=Te("icon-info-circle-fill"),l=Te("icon-check-circle-fill"),c=Te("icon-exclamation-circle-fill"),d=Te("icon-close-circle-fill"),h=Te("arco-button"),p=Te("trigger");return z(),Ze(p,{class:de(e.prefixCls),trigger:"click",position:e.position,"show-arrow":"","popup-visible":e.computedPopupVisible,"popup-offset":10,"popup-container":e.popupContainer,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:fe(()=>[I("div",{class:de(`${e.prefixCls}-body`)},[I("span",{class:de(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):Ie("v-if",!0)])],2),I("span",{class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"content",{},()=>[He(Ne(e.content),1)])],2)],2),I("div",{class:de(`${e.prefixCls}-footer`)},[$(h,Ft({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:fe(()=>[He(Ne(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),$(h,Ft({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:fe(()=>[He(Ne(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:fe(()=>[mt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var nM=ze(rje,[["render",ije]]);const oje=Object.assign(nM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+nM.name,nM)}}),sje={small:3,medium:4,large:8},aje=e=>{if(e)return gr(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},lje=we({name:"ProgressLine",components:{IconExclamationCircleFill:If},props:{percent:{type:Number,default:0},animation:{type:Boolean,default:!1},size:{type:String,default:"medium"},strokeWidth:{type:Number,default:4},width:{type:[Number,String],default:"100%"},color:{type:[String,Object],default:void 0},trackColor:String,formatText:{type:Function,default:void 0},status:{type:String},showText:Boolean},setup(e){const t=Re("progress-line"),n=F(()=>e.strokeWidth!==4?e.strokeWidth:sje[e.size]),r=F(()=>`${Yl.times(e.percent,100)}%`),i=F(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=F(()=>({width:`${e.percent*100}%`,...aje(e.color)}));return{prefixCls:t,style:i,barStyle:a,text:r}}}),uje=["aria-valuenow"];function cje(e,t,n,r,i,a){const s=Te("icon-exclamation-circle-fill");return z(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:de(`${e.prefixCls}-wrapper`)},[I("div",{class:de(e.prefixCls),style:Ye(e.style)},[I("div",{class:de(`${e.prefixCls}-bar-buffer`)},null,2),I("div",{class:de([`${e.prefixCls}-bar`]),style:Ye(e.barStyle)},null,6)],6),e.showText?(z(),X("div",{key:0,class:de(`${e.prefixCls}-text`)},[mt(e.$slots,"text",{percent:e.percent},()=>[He(Ne(e.text)+" ",1),e.status==="danger"?(z(),Ze(s,{key:0})):Ie("v-if",!0)])],2)):Ie("v-if",!0)],10,uje)}var dje=ze(lje,[["render",cje]]);const fje=we({name:"IconExclamation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),hje=["stroke-width","stroke-linecap","stroke-linejoin"];function pje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23 9h2v21h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),I("path",{d:"M23 37h2v2h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1)]),14,hje)}var rM=ze(fje,[["render",pje]]);const jH=Object.assign(rM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rM.name,rM)}}),vje=we({name:"IconCheck",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mje=["stroke-width","stroke-linecap","stroke-linejoin"];function gje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1)]),14,mje)}var iM=ze(vje,[["render",gje]]);const rg=Object.assign(iM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iM.name,iM)}});let zre=0;const yje={mini:16,small:48,medium:64,large:80},bje={mini:4,small:3,medium:4,large:4},_je=we({name:"ProgressCircle",components:{IconExclamation:jH,IconCheck:rg},props:{percent:{type:Number,default:0},type:{type:String},size:{type:String,default:"medium"},strokeWidth:{type:Number},width:{type:Number,default:void 0},color:{type:[String,Object],default:void 0},trackColor:String,status:{type:String,default:void 0},showText:{type:Boolean,default:!0},pathStrokeWidth:{type:Number}},setup(e){const t=Re("progress-circle"),n=gr(e.color),r=F(()=>{var p;return(p=e.width)!=null?p:yje[e.size]}),i=F(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:bje[e.size]}),a=F(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?i.value:Math.max(2,i.value-2)}),s=F(()=>(r.value-i.value)/2),l=F(()=>Math.PI*2*s.value),c=F(()=>r.value/2),d=F(()=>(zre+=1,`${t}-linear-gradient-${zre}`)),h=F(()=>`${Yl.times(e.percent,100)}%`);return{prefixCls:t,isLinearGradient:n,radius:s,text:h,perimeter:l,center:c,mergedWidth:r,mergedStrokeWidth:i,mergedPathStrokeWidth:a,linearGradientId:d}}}),Sje=["aria-valuenow"],kje=["viewBox"],xje={key:0},Cje=["id"],wje=["offset","stop-color"],Eje=["cx","cy","r","stroke-width"],Tje=["cx","cy","r","stroke-width"];function Aje(e,t,n,r,i,a){const s=Te("icon-check"),l=Te("icon-exclamation");return z(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:de(`${e.prefixCls}-wrapper`),style:Ye({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(z(),Ze(s,{key:0,style:Ye({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(z(),X("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:de(`${e.prefixCls}-svg`)},[e.isLinearGradient?(z(),X("defs",xje,[I("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(z(!0),X(Pt,null,cn(Object.keys(e.color),c=>(z(),X("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,wje))),128))],8,Cje)])):Ie("v-if",!0),I("circle",{class:de(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:Ye({stroke:e.trackColor})},null,14,Eje),I("circle",{class:de(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:Ye({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,Tje)],10,kje)),e.showText&&e.size!=="mini"?(z(),X("div",{key:2,class:de(`${e.prefixCls}-text`)},[mt(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(z(),Ze(l,{key:0})):e.status==="success"?(z(),Ze(s,{key:1})):(z(),X(Pt,{key:2},[He(Ne(e.text),1)],64))])],2)):Ie("v-if",!0)],14,Sje)}var Ije=ze(_je,[["render",Aje]]);const Lje=we({name:"ProgressSteps",components:{IconExclamationCircleFill:If},props:{steps:{type:Number,default:0},percent:{type:Number,default:0},size:{type:String},color:{type:[String,Object],default:void 0},trackColor:String,strokeWidth:{type:Number},status:{type:String,default:void 0},showText:{type:Boolean,default:!0}},setup(e){const t=Re("progress-steps"),n=F(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=F(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),i=F(()=>`${Yl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:i}}}),Dje=["aria-valuenow"];function Pje(e,t,n,r,i,a){const s=Te("icon-exclamation-circle-fill");return z(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:de(`${e.prefixCls}-wrapper`)},[I("div",{class:de(e.prefixCls),style:Ye({height:`${e.mergedStrokeWidth}px`})},[(z(!0),X(Pt,null,cn(e.stepList,(l,c)=>(z(),X("div",{key:c,class:de([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:Ye({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(z(),X("div",{key:0,class:de(`${e.prefixCls}-text`)},[mt(e.$slots,"text",{percent:e.percent},()=>[He(Ne(e.text)+" ",1),e.status==="danger"?(z(),Ze(s,{key:0})):Ie("v-if",!0)])],2)):Ie("v-if",!0)],10,Dje)}var Rje=ze(Lje,[["render",Pje]]);const Mje=we({name:"Progress",components:{ProgressLine:dje,ProgressCircle:Ije,ProgressSteps:Rje},props:{type:{type:String,default:"line"},size:{type:String},percent:{type:Number,default:0},steps:{type:Number,default:0},animation:{type:Boolean,default:!1},strokeWidth:{type:Number},width:{type:[Number,String]},color:{type:[String,Object]},trackColor:String,bufferColor:{type:[String,Object]},showText:{type:Boolean,default:!0},status:{type:String}},setup(e){const t=Re("progress"),{size:n}=tn(e),r=F(()=>e.steps>0?"steps":e.type),i=F(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=Aa(n);return{cls:F(()=>[t,`${t}-type-${r.value}`,`${t}-size-${a.value}`,`${t}-status-${i.value}`]),computedStatus:i,mergedSize:a}}});function $je(e,t,n,r,i,a){const s=Te("progress-steps"),l=Te("progress-line"),c=Te("progress-circle");return z(),X("div",{class:de(e.cls)},[e.steps>0?(z(),Ze(s,{key:0,"stroke-width":e.strokeWidth,percent:e.percent,color:e.color,"track-color":e.trackColor,width:e.width,steps:e.steps,size:e.mergedSize,"show-text":e.showText},yo({_:2},[e.$slots.text?{name:"text",fn:fe(d=>[mt(e.$slots,"text",qi(xa(d)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(z(),Ze(l,{key:1,"stroke-width":e.strokeWidth,animation:e.animation,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"buffer-color":e.bufferColor,width:e.width,"show-text":e.showText,status:e.computedStatus},yo({_:2},[e.$slots.text?{name:"text",fn:fe(d=>[mt(e.$slots,"text",qi(xa(d)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(z(),Ze(c,{key:2,type:e.type,"stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,"path-stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,width:e.width,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"show-text":e.showText,status:e.computedStatus},yo({_:2},[e.$slots.text?{name:"text",fn:fe(d=>[mt(e.$slots,"text",qi(xa(d)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var oM=ze(Mje,[["render",$je]]);const ove=Object.assign(oM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+oM.name,oM)}}),Oje=we({name:"IconStarFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Bje=["stroke-width","stroke-linecap","stroke-linejoin"];function Nje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22.683 5.415c.568-1.043 2.065-1.043 2.634 0l5.507 10.098a1.5 1.5 0 0 0 1.04.756l11.306 2.117c1.168.219 1.63 1.642.814 2.505l-7.902 8.359a1.5 1.5 0 0 0-.397 1.223l1.48 11.407c.153 1.177-1.058 2.057-2.131 1.548l-10.391-4.933a1.5 1.5 0 0 0-1.287 0l-10.39 4.933c-1.073.51-2.284-.37-2.131-1.548l1.48-11.407a1.5 1.5 0 0 0-.398-1.223L4.015 20.89c-.816-.863-.353-2.286.814-2.505l11.306-2.117a1.5 1.5 0 0 0 1.04-.756l5.508-10.098Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Bje)}var sM=ze(Oje,[["render",Nje]]);const VH=Object.assign(sM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sM.name,sM)}}),Fje=we({name:"IconFaceMehFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),jje=["stroke-width","stroke-linecap","stroke-linejoin"];function Vje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM15.999 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jje)}var aM=ze(Fje,[["render",Vje]]);const pV=Object.assign(aM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aM.name,aM)}}),zje=we({name:"IconFaceSmileFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Uje=["stroke-width","stroke-linecap","stroke-linejoin"];function Hje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-.355 9.953a1.91 1.91 0 0 1 2.694.177 6.66 6.66 0 0 0 5.026 2.279c1.918 0 3.7-.81 4.961-2.206a1.91 1.91 0 0 1 2.834 2.558 10.476 10.476 0 0 1-7.795 3.466 10.477 10.477 0 0 1-7.897-3.58 1.91 1.91 0 0 1 .177-2.694Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Uje)}var lM=ze(zje,[["render",Hje]]);const sve=Object.assign(lM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lM.name,lM)}}),Wje=we({name:"IconFaceFrownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Gje=["stroke-width","stroke-linecap","stroke-linejoin"];function Kje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.322-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM31.68 32.88a1.91 1.91 0 0 1-2.694-.176 6.66 6.66 0 0 0-5.026-2.28c-1.918 0-3.701.81-4.962 2.207a1.91 1.91 0 0 1-2.834-2.559 10.476 10.476 0 0 1 7.796-3.465c3.063 0 5.916 1.321 7.896 3.58a1.909 1.909 0 0 1-.176 2.693Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Gje)}var uM=ze(Wje,[["render",Kje]]);const ave=Object.assign(uM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uM.name,uM)}});var cM=we({name:"Rate",props:{count:{type:Number,default:5},modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:0},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},grading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:[String,Object]}},emits:{"update:modelValue":e=>!0,change:e=>!0,hoverChange:e=>!0},setup(e,{emit:t,slots:n}){const{modelValue:r}=tn(e),i=Re("rate"),{mergedDisabled:a,eventHandlers:s}=Do({disabled:Du(e,"disabled")}),l=ue(e.defaultValue),c=ue(!1);It(r,M=>{(xn(M)||Al(M))&&(l.value=0)});const d=ue(0),h=F(()=>{var M;return(M=e.modelValue)!=null?M:l.value}),p=F(()=>{const M=e.allowHalf?Yl.times(Yl.round(Yl.divide(h.value,.5),0),.5):Math.round(h.value);return d.value||M}),v=F(()=>a.value||e.readonly),g=F(()=>[...Array(e.grading?5:e.count)]),y=F(()=>{var M;if(ds(e.color))return g.value.map(()=>e.color);if(gr(e.color)){const O=Object.keys(e.color).map(B=>Number(B)).sort((B,j)=>j-B);let L=(M=O.pop())!=null?M:g.value.length;return g.value.map((B,j)=>{var H;return j+1>L&&(L=(H=O.pop())!=null?H:L),e.color[String(L)]})}}),S=()=>{d.value&&(d.value=0,t("hoverChange",0))},k=(M,O)=>{const L=O&&e.allowHalf?M+.5:M+1;L!==d.value&&(d.value=L,t("hoverChange",L))},C=(M,O)=>{var L,B,j,H;const U=O&&e.allowHalf?M+.5:M+1;c.value=!0,U!==h.value?(l.value=U,t("update:modelValue",U),t("change",U),(B=(L=s.value)==null?void 0:L.onChange)==null||B.call(L)):e.allowClear&&(l.value=0,t("update:modelValue",0),t("change",0),(H=(j=s.value)==null?void 0:j.onChange)==null||H.call(j))},x=M=>{c.value&&M+1>=h.value-1&&(c.value=!1)},E=(M,O)=>M>O?$(pV,null,null):O<=2?$(ave,null,null):O<=3?$(pV,null,null):$(sve,null,null),_=(M,O=!1)=>({role:"radio","aria-checked":M+(O?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":M+(O?.5:1)}),T=M=>e.grading?E(M,p.value):n.character?n.character({index:M}):$(VH,null,null),D=M=>{const O=v.value?{}:{onMouseenter:()=>k(M,!0),onClick:()=>C(M,!0)},L=v.value?{}:{onMouseenter:()=>k(M,!1),onClick:()=>C(M,!1)},B=c.value?{animationDelay:`${50*M}ms`}:void 0,j=Math.ceil(p.value)-1,H=y.value&&e.allowHalf&&M+.5===p.value?{color:y.value[j]}:void 0,U=y.value&&M+1<=p.value?{color:y.value[j]}:void 0,K=[`${i}-character`,{[`${i}-character-half`]:e.allowHalf&&M+.5===p.value,[`${i}-character-full`]:M+1<=p.value,[`${i}-character-scale`]:c.value&&M+1x(M)}),[$("div",Ft({class:`${i}-character-left`,style:H},O,e.allowHalf?_(M,!0):void 0),[T(M)]),$("div",Ft({class:`${i}-character-right`,style:U},L,e.allowHalf?_(M):void 0),[T(M)])])},P=F(()=>[i,{[`${i}-readonly`]:e.readonly,[`${i}-disabled`]:a.value}]);return()=>$("div",{class:P.value,onMouseleave:S},[g.value.map((M,O)=>D(O))])}});const qje=Object.assign(cM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+cM.name,cM)}}),Yje=we({name:"IconInfo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Xje=["stroke-width","stroke-linecap","stroke-linejoin"];function Zje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 39h-2V18h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),I("path",{d:"M25 11h-2V9h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1)]),14,Xje)}var dM=ze(Yje,[["render",Zje]]);const lve=Object.assign(dM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dM.name,dM)}});var Jje=we({name:"ResultForbidden",render(){return $("svg",{viewBox:"0 0 213 213",height:"100%",width:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[$("g",{transform:"matrix(1,0,0,1,-871.485,-445.62)"},[$("g",null,[$("g",{transform:"matrix(1,0,0,1,-75.2684,-87.3801)"},[$("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),$("g",{transform:"matrix(1,0,0,1,246.523,295.575)"},[$("g",{transform:"matrix(0.316667,0,0,0.316667,277.545,71.0298)"},[$("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),$("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[$("g",{transform:"matrix(1,0,0,1,-6,-6)"},[$("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),$("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[$("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),$("g",{transform:"matrix(0.182997,0.105653,-0.494902,0.285732,814.161,66.3087)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),$("g",{transform:"matrix(0.316667,0,0,0.316667,237.301,94.2647)"},[$("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),$("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[$("g",{transform:"matrix(1,0,0,1,-6,-6)"},[$("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),$("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[$("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),$("g",{transform:"matrix(0.474953,0,0,0.474953,538.938,8.95289)"},[$("g",{transform:"matrix(0.180615,0.104278,-0.973879,0.562269,790.347,286.159)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),$("g",{transform:"matrix(0.473356,0,0,0.473356,294.481,129.741)"},[$("g",null,[$("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[$("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),$("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[$("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),$("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),$("g",{transform:"matrix(0.473356,0,0,0.473356,192.621,188.549)"},[$("g",null,[$("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[$("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),$("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[$("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),$("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),$("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-49.2109)"},[$("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),$("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-91.97)"},[$("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),$("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(0.701585,5.16096e-35,-5.16096e-35,0.701585,-546.219,-21.3487)"},[$("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1033.27,615.815)"},[$("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),$("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1035.25,616.977)"},[$("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),$("g",{transform:"matrix(1,0,0,1,418.673,507.243)"},[$("path",{d:"M1088.34,192.063C1089.79,191.209 1090.78,191.821 1090.78,191.821L1092.71,192.944C1092.71,192.944 1092.29,192.721 1091.7,192.763C1090.99,192.813 1090.34,193.215 1090.34,193.215C1090.34,193.215 1088.85,192.362 1088.34,192.063Z",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(1,0,0,1,235.984,-39.1315)"},[$("path",{d:"M1164.02,805.247C1164.05,802.517 1165.64,799.379 1167.67,798.118L1169.67,799.272C1167.58,800.648 1166.09,803.702 1166.02,806.402L1164.02,805.247Z",style:{fill:"url(#_Linear1)"}},null)]),$("g",{transform:"matrix(0.396683,0,0,0.396683,1000.22,516.921)"},[$("path",{d:"M1011.2,933.14C1009.31,932.075 1008.05,929.696 1007.83,926.324L1012.87,929.235C1012.87,929.235 1012.96,930.191 1013.04,930.698C1013.16,931.427 1013.42,932.344 1013.62,932.845C1013.79,933.255 1014.59,935.155 1016.22,936.046C1015.83,935.781 1011.19,933.139 1011.19,933.139L1011.2,933.14Z",style:{fill:"rgb(238, 238, 238)"}},null)]),$("g",{transform:"matrix(0.253614,-0.146424,4.87691e-17,0.338152,1209.98,830.02)"},[$("circle",{cx:"975.681",cy:"316.681",r:"113.681",style:{fill:"rgb(245, 63, 63)"}},null),$("g",{transform:"matrix(1.08844,0,0,0.61677,-99.9184,125.436)"},[$("path",{d:"M1062,297.556C1062,296.697 1061.61,296 1061.12,296L915.882,296C915.395,296 915,296.697 915,297.556L915,333.356C915,334.215 915.395,334.912 915.882,334.912L1061.12,334.912C1061.61,334.912 1062,334.215 1062,333.356L1062,297.556Z",style:{fill:"white"}},null)])]),$("g",{transform:"matrix(5.57947,-3.22131,0.306277,0.176829,-6260.71,4938.32)"},[$("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.10726,0.0619268,-1.83335e-14,18.1609,1256.76,-11932.8)"},[$("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(238, 238, 238)"}},null)])])]),$("g",{transform:"matrix(0.316667,0,0,0.316667,269.139,37.8829)"},[$("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),$("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[$("g",{transform:"matrix(1,0,0,1,-6,-6)"},[$("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),$("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[$("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])])])])]),$("defs",null,[$("linearGradient",{id:"_Linear1",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-2.64571,4.04098,-4.04098,-2.64571,1167.67,799.269)"},[$("stop",{offset:"0",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null),$("stop",{offset:"1",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null)])])])}}),Qje=we({name:"ResultNotFound",render(){return $("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[$("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[$("g",null,[$("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[$("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),$("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[$("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),$("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),$("g",{transform:"matrix(1,0,0,1,275,-15)"},[$("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),$("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[$("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[$("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),$("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[$("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[$("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),$("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[$("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[$("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),$("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[$("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",null,[$("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[$("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(132, 97, 51)"}},null)]),$("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[$("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[$("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),$("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[$("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),$("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),$("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[$("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),$("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[$("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),$("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),$("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[$("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),$("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[$("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),$("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),$("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),$("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[$("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),$("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",null,[$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[$("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),$("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[$("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),$("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),$("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),$("g",null,[$("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[$("path",{d:"M1776.14,1326C1776.14,1321.19 1772.15,1317.28 1767.24,1317.28L1684.37,1317.28C1679.46,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.46,1404.46 1684.37,1404.46L1767.24,1404.46C1772.15,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:{fill:"white"}},null)]),$("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[$("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[$("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[$("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[He("?")])])])])])])])])}}),eVe=we({name:"ResultServerError",render(){return $("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[$("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[$("g",null,[$("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[$("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),$("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill-opacity: 0.1;"},null)]),$("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),$("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),$("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[$("clipPath",{id:"_clip1"},[$("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),$("g",{"clip-path":"url(#_clip1)"},[$("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[$("use",{href:"#_Image2",x:"50.54",y:"112.301",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[$("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[$("clipPath",{id:"_clip3"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),$("g",{"clip-path":"url(#_clip3)"},[$("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[$("use",{href:"#_Image4",x:"50.54",y:"56.312",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),$("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),$("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),$("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[$("clipPath",{id:"_clip5"},[$("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),$("g",{"clip-path":"url(#_clip5)"},[$("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[$("use",{href:"#_Image2",x:"50.54",y:"89.692",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[$("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[$("clipPath",{id:"_clip6"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),$("g",{"clip-path":"url(#_clip6)"},[$("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[$("use",{href:"#_Image7",x:"50.54",y:"31.563",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),$("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),$("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),$("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[$("clipPath",{id:"_clip8"},[$("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),$("g",{"clip-path":"url(#_clip8)"},[$("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[$("use",{href:"#_Image2",x:"50.54",y:"64.644",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[$("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[$("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[$("clipPath",{id:"_clip9"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),$("g",{"clip-path":"url(#_clip9)"},[$("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[$("use",{href:"#_Image10",x:"53.151",y:"30.14",width:"106.825px",height:"61.676px",transform:"matrix(0.998367,0,0,0.994768,0,0)"},null)])])]),$("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[$("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:'fill: url("#_Linear11");'},null)]),$("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[$("clipPath",{id:"_clip12"},[$("path",{d:"M1461.07,554.317C1461.07,556.747 1459.6,559.067 1456.6,560.8L1342.04,626.943C1335.41,630.767 1323.83,630.287 1316.18,625.871L1205.33,561.871C1201.14,559.456 1199,556.361 1199,553.426L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,554.317Z"},null)]),$("g",{"clip-path":"url(#_clip12)"},[$("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[$("use",{href:"#_Image13",x:"53.151",y:"58.978",width:"106.825px",height:"33.517px",transform:"matrix(0.998367,0,0,0.985808,0,0)"},null)])])]),$("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[$("clipPath",{id:"_clip14"},[$("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z"},null)]),$("g",{"clip-path":"url(#_clip14)"},[$("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[$("use",{href:"#_Image15",x:"121.882",y:"76.034",width:"37.393px",height:"61.803px",transform:"matrix(0.984021,0,0,0.996825,0,0)"},null)])])]),$("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[$("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:"fill: white; stop-opacity: 0.9;"},null)]),$("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[$("path",{d:"M1306.5,1286.73C1307.09,1285.72 1308.6,1285.48 1310.36,1286.12C1312.13,1286.76 1313.84,1288.16 1314.73,1289.7C1326.44,1309.98 1355.4,1360.15 1363.73,1374.57C1364.33,1375.61 1364.49,1376.61 1364.18,1377.35C1363.87,1378.09 1363.11,1378.5 1362.07,1378.5C1346.41,1378.5 1288.17,1378.5 1264.07,1378.5C1262.42,1378.5 1260.37,1377.48 1258.9,1375.94C1257.44,1374.41 1256.88,1372.67 1257.5,1371.6C1268.1,1353.25 1296.8,1303.53 1306.5,1286.73Z"},null)]),$("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[$("text",{x:"1170.88px",y:"1451.42px",style:'font-family: NunitoSans-Bold, "Nunito Sans"; font-weight: 700; font-size: 41.569px; fill: white; fill-opacity: 0.9;'},[He("!")])])])]),$("defs",null,[$("image",{id:"_Image2",width:"113px",height:"47px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAAvCAYAAADU+iVXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABVUlEQVR4nO2aQRKCMAxFxUN4O+9/DNw4CoiTliZN8vPfQlm00ykvP3aQ5fFc11sjy/L+/nx8r3ffm7Fn845jz+aJa23XOJvfs9Zh7NBawv3YrSGtdbj+x10egkFzpRrNt+SSxMgbqkiZJCJDiQDoSmSfdYFJ3JD18GMmcXhDTHUzNZIIXhA1JIJDib0MptqiKbhKzHqQiAaT6IlSFVIiAJQIACUGpLfLhpfIw49Ml8T2v4/JTPySyIJQI3w7JTIYEp2fong3FXWJ3huqCEYSNUlYhZRoyaSCoEQAKHESlqF0kZj9NBgNJhEASgSAEgNx9WfCTmLxpygzYRIBmCORsTIlXxJZED/kk0h+KC1x9E2FKG86qEkMsh8/HG9A6SSGYqAIKDEinUIpUSDDYXiqxAw3JCNMIgDXJTIWYdBJIvukK2ynARit4XASUZ6izCScRFWKCH0BfLM84oTw1Z8AAAAASUVORK5CYII="},null),$("image",{id:"_Image4",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAASeElEQVR4nN2d6ZbcNpKFL5cs9UN1W5bntWxr6XmsWTzLQ7mSJDA/gh/iApWyLalUy+AcnypVJkEAsd24EaQn/T8Yb9+XKknrOuk4pOM4tCyLpkkqpWpZJu170TzPKqVoWWZJUq3Sbx+m6VkX/wjjVW/gH7/sdZ5nTacc5lkqJT6rtWqaJtVaVUrRNE26XGbd3+9alkW1Vi3LrFKq/uvj/KrP4dUu/t3HWkupmuepWVspIcjrddc8z1qWWcdRTusLwc3z3Cz1OA5dLouOo+o4Dv3vv15e5Xm8ukX//eetTtOkdV20bWFVkrQsk+ZZOo74Xq3SNMVPqXextYal1lq1rrNqlfb90LrGXP/5/nW52Fez2B8/1FpPiSxLLLsUaV2lfZdKiZiHkHCtuFWPj/73cvpfLDQseNJxvB43++IX+cOvR5WkZQkBbdsh4uCySNtWWkxEuLVKx1HOuLecFjdp3/NnWiYKUbSuAXiOIwR8HIf+55/riz+jF73Anz7VWkq4RSkEI+m0Fun+ftflsra/r+usfY/fATVY3DzP2ratCe3Nm7UhWawv3KzO69PtllJetDBf5MJ++hRHWWu4QCkOm1h4HH2agJuVpHme2ufHUXS5zLpeQ1B8Ns9zu2ZdU3gAJdwxFh3zxjUv0cW+qAX9+KFWhMV/Urg6kCUWcxzpRvlsmno3ehwBVhDKcWRMZQ6uQ4D7HsgI1MrcDIT/koT5IhaC28T17fuudV0bWAmhTJ0QpN56ti1cq4MXSR1wiWv6+ChJ12ukGpJaunG5rJpnad9rm+NyWVRKgqiXQhQ8+yI87pEicDQIRApAg3US60gvPPYhbBceqYTH17DEo8VLSVqWTFGmKdKOZVm0LDKlqIaEQ+GeO798tpu/fV/qPE+nCwwLiwNVi1FhCaUJIFxbury7uxAiwrled0k6Dz6F78J2FgcBk2qs66J9T/QrpRt2MoH7RX6ZXuO/Py3Pcp5PftMffj0qdBeHF4AlXJwU4ETSGavUMSsAD1AlqYDHvut1P61y6QRPMg/g2bbSudnJvCNCgmsFQKEE8Z2p+1x6Hi72SW/47mPk6/u+txwNa4vfpw4hYi3Lok7AHBiHCfjArTr6ZE4Sfr+W+aVAqQgVpUCJJBQq1kas7FFxAqTLZdK//fx0wnySG/3LP2sl1uEKU4uX9r1Siu7uliYwhHwctR0y1zmz4gwO80gp3OM4dHe3NqIAy3R36kjX4yvVj31P4OR0HYJluPVOk/Qfv35/YX7XG/z4IVSVQ8d11lp1ucydsNxlLsukbQth4zLnWQ8sA85zWZYm7LCiiFEp7J6O477rOul6TU5VUpdHjgJmL4QDKiGxzmSP3OqJ8d+Tj/0uE//w61EBI57jSWldUk+hxWc9OR1Wk+4WYWNNaD2jlNKsxdMOEnZJ7dC3bTcFmZpQSimNzXHl81ok7tndvAOlW8KXvl9u+eiTAlyoIozuB4DhrAt/w6qkdL3kb1Jymli0xzSH/Vi153QcLqmJX0t6c70erTqyrusfKhPEggOjmGvqANAIxNZ10r//8rhW+WiTkTI4iCDuOGAZ+U8osXWddH+/twMn5iEIeFEswasRkroir49l4cDVhM/Bcshc44LwCkcKZD6tfW75JHN6jRJlQnld+NzzOB4vJfnmSd59rHWMTwEkFh3HeDBxDVaIwB1JjlxofhZCj0pG7bQ9508rIH+bJq6JU/eaYsybaczd3dJVRXCZpajVLhEMua2j5VueIeZxAqNXnlrrNwvzqy/+6VP1s+6Sdnpd/LAYxJ1lWbTv+2mpc8ekeOz5XJINkPEknbSABN/dIfFrniddr9uZm65tPudsGS4gLyqzX9ZTSgIq9iipoWfQKyGm1qyDxn2+DcV+1YU/faqVxbEZL8Iy3AURV0Z2Bgjv8aPW2iyJgbDcejk4YiCQnwEH6gpGuuHxknV5GAApe+rhjBIM0Zs362dJAwTM2uNzNWAnPQRtX1Py+qILEJ4kXS6Tfv89ER6D2ITLjEPpSWjiCL8DXvhezrO0eIhuJILNQ6IqUUqS2lJAfikQKWi01tq5enJBXKQn/SiK57LO3XrvDvdxZgfSAC+xbXvjat3K2a+fyZe42L/0RfI94sO+H11S7ptzwDFCbQcKHuTTitVZhR+g/x13u+/HGaPWJtBucwZOGNQXmddjl9cYr9fjjIlzQ6EolO9vjIHM4Yo65o6+L1CuK76j2b+SlvzhF959rBWEySY9r/IWBxeapJsxgs9gP9y6cHlj99q+9zwow8tRzIFr4l4jqHJkPOaAzOFzOnjy3z3ZZw73HJwRQM/PZZzLz5bwdH+/6e7ucirDnxeiP/shqPN63U1rMo5J6nI/YgiaD9IbUahX19mwI1dHp+6SRvDgBzIWbaHvIu7VB4dIHCwly09es8TF46JZH6AJl4i18H2KyMuS83tbpSvXuk4nKs70ybGBnwWe4XPx8sEf//7zVtd17YAKNJgjPrSNSjqCy5bBjBmx+FyUC5IxghyPM1w75nMIxF0v6yVmjqzQmJT7YaKYYdUJtCQ1ZaKjwNMPZ4ig+dwlxv6mdi2CJm0ZvYafnYcg1jNWSto/3r4v9ZZms/HRlTjKQ0ggMQcCXhPctiwZObr0+7iC8D0npEHCgBuGu0f+/ebN2oTh1ZFQjhAUwvBiMMriB+kpTwi1z1P9++wF0OSAB4HggpkDz+WKFF6uV2z3fljm5IgTM0ZjRqQ2ukKPDSzO3aa7orHhyGONI8FsR8wD8Prfus5dh/donX4PDjYtZ+q8ixecHUl6l/jIf8LYcOC33Dnu2lOQEEAqsKPymPchNnDBj/2yDnwmmnK9h2WEzLhWhifcnvDimm5B5xH0eFwZEah/lw2wMdryuX6sMKTVBnrl87E7oFZ1uagDHPZIDuzC2/eoF+57368z5pPUTDGMUaHhjdnPSNXhacbvO4BrBoNWQEthUQ7NXSNCcHHQYSnxtzjgZFxG7eU+6S5n0856WmJfaOXacKHTef/ZWJ4ERB4BYv0xN4IJ96fu4CC5Y/299W7b3pRx33cdx9GUwKszpFnpVQL8ZQpTT4XILvTLJWuRtVZdLuvpcY4GchAg3wnsQdf7fLJiZ7nucoleTvpViEfRbLurlKJ9P0R9zjcQ2l5PTcxDpIgaLjc/QFvRqlLKqWW90gSY6asBbNoJ5/QYcd3lMneQnYNIIAQhjkLoTAVK21+eQWrF5bI2yO9rZB8BpNxT8GwITExt3kuKpmcPJft+nCEj8QHnOU2TLpelU7JQdhR60gzHSWCPw4kvRNse6Cpb58NNhN/3+MXNp4lmpfk8uIxzjiyzWiCt63JuPONcBPjpVCSaoJhrOQ+otPgUrj3dZ+ynnGWp0lkTQMsbo6KaklYFmYBFuXsOoKS2/rT+uSl74Ae8SQhynjPnDYusZwpVTmFmTJXCC4T7zHXFd0u754zv9aQ6hJDawE1i0nrGtNHNzp3Gx3dDMwJKT6ebqJ2WpSstLb5SPkLYcbhrs66Ma7W7p1sdG5+mqeV2d3f5eFsp0UcKp5nxWuf9lnbYXjCutbbQwz7dK3C4t/7tqBdwlLhj7lgkUheUi/RlXRMLtNDkQuDQ2EwejE6Txh0Gyrpe9xYj0MrrdWtaFDeSKcbcDrBPvp2P7BXBlQPrgtlY16nrYNu2ox22K1Ek7rV5m5hD5uZAxulmM16lN7hcLlpXd9mJavEarBe37fGbGOasUn/mx2mpkPJHM6DoWCgNaHEPSZoxSQIrpr8sKcTQjocVgiAFKPMEyPnb3y7NbXiciU7qkTlJITT/PmM5STaQNzn4Oo6qbStdyoOg2XgSErWzOD+MzHOnM/bXbn2wOl4uC1DUK7S7PI/5/MTL8W/iIvdGwblH/7SXt3hSgMjcc/7twzQFsKhnHOu7zxws3mIWvM/kONRATghy7jbM4XBAaDNaz+/ExQQ2vav0DjMs7+5ubRZfStWbN+tpFRmTwhVu56GGJUfYANpHQTs9TD1jYW3MET2trCNqolCEEXe3bX8Q23wsy3KS9tNZ2chqTICsuB8MkbNEefY6UfCUjA09oeR+TjPBRDhMJj/yZHesQLjvHvnDyHcOcz+525HKg3DgQBB23BNSvafFXPHCivdWe/T0BCKBkEDO5wfrMZ690k7iBLfv2+/Nnih3ZZqVzV6eQ2ca1VOfyAVlpYPuAXf6w69HRTDOSUJ1OUODK4VJyUCftUQqERRnnTz3p47CctON4Ipo9/BnIjzPQ3mc2+WQ6d9hH5DiHJz37XDIsf5UNhTTFQY35uuE4QqFedgoxVhX6f4+FS7z2KPjSsdaLGSF9Afc6Tho+B0tKm6Q7A6jTzN6rXRqzVGVL9gZDRTBm4wkDe0cbm09COO7zsZwyM6lIhj3QOMenT1yxiisI1MtUD50JHO612B/sz04RGbg/UCu3G6lnytJfVaIDIhxKUtPvmkHFH6QuLVbLfmOEhGCF0bd/2MJY/u+Wyqbj8/yIFAsn+9WYXp0b27NiQbVXR/INSx726L+xx5w3azLH/Rx78Y8biBO03nnwB/VFP9UiFI+N4/b+1wNzA8AV0Tux8K8y8sJdCeV4T1HlwPmwn07F+oCxI17DB3LQAyvdXa51/A01Gjld3fe/9P3lUaumUqO1/E+G+ZBuM6fEo+lv9Zw/JeEyHj7vtSE6KW5tlhYDwhwB+5SvGDsKYs3XAVK7J+7cMDi7i0P0d9Tk4/Lcf3Y+uCIGqGS81FZGEEE8SnnDJxwf7+1RN2TeI+3faGgXzfM0RiyvqRb/IuEyPAne/0gvGbn8XAM0qNFjMjSEaWDFag7Ns3fYo5wYR5fODzosh6mZ58se0iXP3VKABd8qyls7FCgQoM38aIwrvXubhXPjYT1hiAvl+WrWhe/SoiMdx9r3ba9FYcdsPATq0MLSV04SEeCoE93yxyAIzxHjMsy6XpNAQaAWdr3cYNYqb/ACEXyZzWSe+1flcKAfPBWjFt9SCPwGoGUdyIg/K99Q8c3CVFK4DPmiuNz8xRzqbGND7k4MMFyvJHJEWBel+4JZcLaoarI/WLusWUkrdJDgIMdVybAjyNp0iLQqgvM+2K5npqkM1ff+qDNNwuRwZNQkiO51OQR+IyFUM+r+mfk+2Ymb5kYXVm3MQMitxDo+HQVa/Jiredmjh79+35fqvUoknce4GkgSEopj/as/6MJkfH2faluhYAF75qT+ke66TDzxByXOLpD4qbnpWPq4vkWvUDjsxOOHhGw9w8FNTbdtGLefeO4AKtjnW6hxHvW+tiPhD+6EBkgWafi0NxMqLMxV1JzO/nSvRDMSGUx3NW5sBwZ8293Y2Mvq6PbsbKQCHlurNDIEI05rOefTliU8n3eTPXdhCipPXQDqPEOs/FgsB7i3mGMgLfCe46aaDIZfY9rntLwaJv0UHnGFAIheC+QP3rnDE78VKsNEoOdTqz1+76Q4bsKkfHjh3z8jYP2eIF78u4zb8N482bV/X0++CllY7ET0t7z6k1bWA6oOL4TPz2mpkt/yBG7O7/VsXeLbXqqF/w9iRAZvCk4qyL9YUk9HUZMcsAwHhYgyHNCrMU5Tql3dQjM06Jb77FhjZ97xM4JArzIND3tO1OfVIgM3tntVsWIikc0JXkJa3y2A+33vM+tydkbKd359Rrm+rlccryPs0kjIxPr7b2HpCd/KdGzCFGKlCRLTA9fTuSVhs/1nYIo/ZAdaY6v9fL6IDVLYh41O3JcrIoOB2I3aQgx1K99ited3BrPJkSGv0k/QU1SXaBIJwPGOOYpRyLTqfs+sdObgD1l8WqL1yoldUwQXgHhS8//xsVnFyLjxw+13mJn/O1Okk5O9eGrouuNup2/+MgRqZeaHAzxXQTtL2tAOUh7njru/dG40QHyPOO3D9ME6EGAPUUWLvH337cmJBJorwyEi0xrTlaIZuVDNCtfr4fot6EXKB9Xyw6+7FxLxXopApRekCX6ePexVtzc+MZhSc1KnEgAzUpZb/SHVp3IdvLZLXPsOhgrM4/Bc36P8eIW5IP/9wWW5+S354hSz6z4+25IJ2BzmCuuiZ+AFn9x4EiKv5QX1N4aL3ZhPqDwvN/H63vENqe6kgbrCXAHObcq+k504w1eovX5eNGL8/GPX4KJBpXi4oh/lLrGd7tRdIUsx7L89SjEv/EFuS9deIxXsUgf8LF9p3a+o3TsO3UOk1eQSLQY5iulqXpIz58yfOl4VYv14awPeZ0XpEnE+Y7Hwuw4ry33k16f8BivctE+/H8/5IBkfLmfv2Wf3NIF/ZKBy5+NV7twH2OVRPJH1fp3vsG0IMTnevn6Y47/AxX1K5XSf237AAAAAElFTkSuQmCC"},null),$("image",{id:"_Image7",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAMrklEQVR4nOVdW2LbNhAcUD5Xkl4scXqxpr0XiX7AQwwGu7Rj2RLV7o8lknjtc3YBygX/Afr2XOu2bQCAZVkAALVWlFJQClAr9mvLUrBt7R4A/Hp++fDA9NAL+PpjqwBQSkF9kVQkOBIFx2vLUlDr4wvyYSf/7blJghanglFLc9q2DZfLgnXddqvl9X/+vDwkPx5u0l9/bFWtTf+q8Hidwt22DaWUXYCtj3H5bPNolvkwk2Xc05hHcjep1yk8Fy4tksSmfH5ZCv768RjCPP0k3W3ysxKFtSwLaq0vAGYZXC2vtefHmKn9Lkv7TKt+BKs89QT/+FnrtnVECYwghuRukfcpOL1N4fgzrZ/umgHsbvfsVnnKiX35vlYFHUpMJQAMwMQtqpSCdV3x9HTBujbXSUUAZmVQa876A84ZL081oS/f1+qAQwGLusx+vz/rSNUtbk5FZvccpSuOdmut+PvnchrenWIidJvAKJRIaPpZY6B+Z/6nAlBrisjjp4KezKWfRZB3n8QfP2tlKuBWAHS0SMZqOFSAwu+R1QA9sVdhupA5riNapUjY946Xdxv823OtHnfIFGp+lv+pZSiaZH/e1gVIlmseCXRBk1SBFO26i6fA7xUvbz4oS2UABoaua699ZjFK25CJ/NzajukBgMmNerzUNuyD1Rw2U6XR/ihAzhu4D/C56YDM+QAMDMqScrUiYMzjiDjVmjT2aTLvlhtZLeOvI9RufWWyRCUt9906Xt5kIFpf5uaUKarlR0jUy2p+X2Nh62+2bi3faaxz1JoBInf1nr/WWm9Sj/3UAb7+2KrHo6hC4gJ0kAOMwMSf0RwwSgu8isNrDpSU1KIVBY9zX+Rz9xAaP3n/My3zUzrWOqdbhLpGPqMuFMhjkGu8pxZRKuE5H0ljYFaC0z60b8ZNutllAbatC1PdcxurPftZgvzwTnWDFuhJdSlzHFOozudGsHBsxeMYc5xiHxm6jdyx11mVojHVkt2zaJ/6+aOF+WGdffm+7hu0zrB9sCC2ULiRNUUF6fa5l9H0GjCX4nRsF9BRPsj2kVC8fyofx88KC5/lYq/uhPt7zni6FFoetZaCjQU2okPgWBBqtXrfXbczmP2qmz7a5oqAVwR6Mkv1Zz3eXpuWvLux7jBwog7bIyKTNaboEjQ+7ZMUl+RQnvdVYTKE6S48AiD6LOepwMmVTfs6Qsw+P1/XNVb5roaa7wFjzIqAgloHidaoRyUiVOruz9MOIE4ZpoVapcfben9ODpAyC9M+dc1UWmCuDGnb9wjztxqo65wXNqcNUVDXeBmdc4kWqsKLQBL78zIcx6U71aMZfa6xW86uOeKOarU6R3fZ6n2y3Bj4vcrPmx789lyrx7QsH9OFXC4F6xqnGBHo0aqJCihzpa+hV33OEWpk/ZGFkJWeh0YVI953ZSU+UIGyzeVSQDDvHgF4m2UePsAiNRmoNUXX9NcOIDkTyJhs0R782/PxZzLAtZ3XNYXxeKhMzRivfbW1XlKX/1oakn3XsVyxXtslSW+q61QNjayv1oqnp+VlMnGVxRnnwEKFQAaocFQx9BkHPWSIV1OyfUUfb2KQeRnPL13wJHWrkedyZY3auSfKrHK6mIEW7YyTd2txbVbw0vuL9/1GxvXPtG510W3xs6X4wtXyiJo9Trml6jo1vqqCaHvOVcd1AWdgz/FFBu6cTx4v9y9R3BsZO2uPCkM1Xl1vhvwi16j967PKKP0cxTMFFC4k9umxl8r2lvlmTPa4TXIBet+RG414wvbqrVhcL9xZ10Hcuo6OO0QD8/MoiNnqdIKZ4pB8AY4ql4VKNQ0zzU3XGrlgjdk6F80ds3VxHd6vto3G8fyTc4x2ftimlLYRXfx9Bg/+RxoRAYMIYUX3IxfdJz6fOHPGt+8Yis9jSjDHnAzRcj56cDg686NziEALKQNdLhQKg89oKVHvR25+2BPVCXECOvkuVGWyl7fmZF7jUCljfNB2nem8P277aIzhuG0BdJ0ag0bm6PEKlQX7dNR6uSwTCGLb7gEU0I0xMFJQzoHt13Xb16BEdE8Z1NpPOyiPW1/kbVOUJy6+MaUMGuaW1jvE3hlJNYptIhfZJ6CId0aL/XhEmdqy7yjuRrlnmz+ZU3amKVCJ5sO+lZlRESFCvbyuSuHgiXzkGN3tLnt7kuIN9zBPFIpqfktkL4NAI4TlVRXVDk6ScYBMIXEBbMt9RUd8ruVdaGXoT4Wsa1ENZ36nCkjk7IwZ4/Wcv+l1pVHZ66R4kZtuAtKxxudU4I7qSylYdHK8p9pNBvRFjh3rgtpkutvRwTtYKnJPraYrQ3OF82I5R3V1zlB3b02Rln1MjtUtYi4ucA0zSi7Wd//chD4K0EOClyL7sx2YqWA7Nhnz4a7kbdyFDSh9jxMx7MYuMHdZFAQnNrYru4A4MQBD+SqD8XroieMrc3Ujms9qfFXLJwP6urcpduv8KVi9766xucMYuLkSjC61DoqrMX/Mr0fF7Ir24k5ZBxy1I/bxbn1uGRHkBub9ui60Lnx+VjfJ/hXWKyR3N6fITZmpcZ9/+wszfc9ThcM41ePQnMwreFJBUYk0DXIBdtc5sGxYp7r+plTtu26PLb+eS9Fis1pes6hZc2gFZEhHq8s+GLWTWtMtaazAaL9kJEmhvgZ7R6M9PleJf8uLhVe48ilq1O+cqwqBHqqHmrIrjzJdleNy6crl6+acPZy4B+S6xnl2DzEAOH7gyywKWrzyoaiwI7h8OyY6/qBWM2rtnJvRerLjGGOs7Qm0H0T2Z9RiIytRiqzHrU7bRWiXbfnXT+dpH17A8KOd6g32io1PmoVvAFjX1VxbXAgYAUpvq2hQ6WhfLXc5M9DxcSOXFjGabfW6CjUqcGTz8XU3IY3u1wERkKc4vn72rWN6IXxWvRfSQngWrFWjfTG+aPZ2lFtFWsrJ6zjqLbQUxTFG1DimGmq97hK1LRALVj2HMz1atyuok3o8XU+0qZ5tFKdCJOm7EzqZyGqUGdGiIgaxjbpMzS3VYltfnEd3tRq7FOFqnOHzylivZWZzzcKB3su8hc5TQ4saQOQu3WCOdvpfFSLQD0VlKCsThPrvvtjxJRqPmd6nMydihraL4mAkkGynnVbrrjD6q3OLGD8x+6AvnyObv+W1uTcJkcSd/sjslZFR3Iqq+srQ6Liiotr2fY4vc/yMT75pm+hsaCk9pXDhZ3E5U+bIUx3FPi+8v2U3X+m3hEji9pW6uKOJRxpHxmg88A1gXfDR+ZouiDnuaLw8iu0TY4LrPjb78L5UOTxsRHxQPr3nDOq7hEjyHwaKDjpFsTJzJZGL3Cdaeo7Fw1fRM1FKQWUBxkIC73Hu0Y8zeExrfcRbVUcuNVN4Heu9h4ivEiLQUawDhkAOALRgsEzxTZ9xrScz94kbkFGA47sb6g5Lab+q0Sw9Pi7ZxxjzP68kqTVyHvxOPmTHULgPClz/YurVQiTpu/fDAAkQcMa6Fkcbq15XVQFGxwd53wGIx0udBxAXFzxdorJkz+kcVMBt7e3vR73r/2FCJPm7GRkgIJGpwJhAq9D8tJ3qicdHLbpHqNaF6CAt3hQe88kIWPn61KXrXwAf/uLphwuR5O/mAzEIUe1u17XwO8Y1t1rdQPb+dQwlzw0jhJmVHCNAlYGkTMCf8U7/pwkRGH+XDRhztAhgROhTBaUC8SqNWjzHygBTlgY4ZejV+1aX6aiT1x7uTWGn6PW3iMmkjBEeWzLk6y7TyWObu9YobrZ2CEt3fN7jfa23+TWNmwiRpL9dE0HwaOdbGeIC6e44P2LpVSG3IHePfiSQlBUAVNDX5nvvpZsKkURhZpYF5AXpKN3gcx6TFDkeKU0Elvg3eukGiBWOz9/6t2zuIkRgfFknQoJRhUaL4wo6nDKAEVWAvBzom9aRq492VIDrXhS9hu4mRJL+LKaDE1IE+9vz84azu9hIgBHAigCOWqgKj6+j8dr/9rfdnHzLi+Qul9eAectHD3rpfbf43maOi442gX5kg5vcFOZZfmUx/mXYO5AyRC3MXWP0mbLUE3BKUWrCds1ix+OPHLe3WXC5XNL53ptOMxElLaz7ybUsufadBY9/fu4mugZgf7vZx6SQz/hvF043ISX/Mdsoz9QYmCX8fMYL0hEqzXLWM1me02knpuRbXsC8tdM+x7vmWmrrQh/P7mgMVGU4A3B5jU49OaXX/i8Gy3N+iizKEbPKkVvsma1P6SEmqeRVH2U8CwGa/wHjXqG++KPWrHniGePeET3UZJX05VhgLouR/H526uxWdc7PoIectBJ/a8B3872yoxvHwHxu51EFCPwHhAjMv/gBzNUYIP5duEeJe0f0L+D749HrhKeLAAAAAElFTkSuQmCC"},null),$("image",{id:"_Image10",width:"107px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA+CAYAAAAs/OVIAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nN2dWa8saXaWn5jnzMjMPZ5T1V3tsrGR+TNIvjAgC+y2uw22bIONzB/gBgkEAowZJbiBCyR+CzdIIHDX0Gfvs4fMjHmO+LhYEbGrrabdQw2nCKl0ztlDROQ3rPWu933XVxpf0+vn/0CpplEAeJ7G83MBQByHmCaczzVx7GEYMI7QtjAMA/f/1tK+yvf+Wa6v5Yt/4+8olWU5YRgCYJoawyATZxgargtVBZoGZVlhWRamaeJ5Gl0HRVFx/I/B1+6zf61e+Ju/o1TXDTw/P3N7e4NhQN8rbFujaUY0TSMMdU6nhjh2GUfoezBN+a/rIM9LLi8DHh8LNpuQj/+l9rUZg6/Fi17+eq00TaNpGjabDZ6noesyEY4jk2BZUBQKTdPQNIgiyHMYx4lpmnh+fiaKIq6vAz799MxmsyEMDboOlOJrMWnv9Au++s6gLMvgeDxzc7Pj+Tnn4iICIElqLMvCMAxcV2MYoOtGdF0HoOs6NhuH47HAMAw8z0PXIQyhruHx8cwHH+zo+2Wi4aN/8W5P2Dv7cq+/OyrL0jFNAQhl2RIEDtMEwzDRNA2GYWCaJrZtcDwm7PcxVdXQdR37/Ya2HTFNg7bt6LqOi4uQpoEggGGQnFYUA45jzvcdiWOD//GP3s1Je+de6uf/QKkkqXFdlzDUyLKR/d7g+bmfJ0Yjy+T7fd8DEAQ2AIYhIbGqGkzTpCxLttstcSwTrhSk6YjrGuS5THZZllxcxOg6uK6EzjiWifzv//DdmrR35mVuf6tXlmUyTYqqqthuAwxDBm0YBCBoGjw9CURXSrHbRUyT/P4wTLiujq5DWY4YhsHbt2/58MMbHh4KXr8OOZ8nlFJM04TnWVRVh67r6LqO7+u8fZsQxzGGAUVREwTeO5XL3okX+cU/VCpNe7quw3VdbNtgmmQnBAGkqYSq5+czV1e7dVeM40gQuOuEdV2P61r0vXzBsnSaRnZkVVVomkbXdWiaxmazwTDk44+jQinFOI64rkXXCbLUdZ0ggKendwPqf6Uv8Oo7gxrHkf3eJk0FHBiGhmVJ2Hp6EmBR1xPavMCTJMGyLDRNIwgC6rpmHEeUUmy3EXXdst87VBV4HhTFhOPo1PVAFJn0Pei63B9kxyoFeS45sW1Hmqbh/fcD2lZ28+Njxe2tT5Iovv+n+lc2Zl/Jg3e/lisAwzC4ufFmiK0wTY2qahnHEd/3sSxBba7rMk0Tr14FVJUMcF0LPO86uWffy78fH1s8z1mfVVWyC+PYommgrjtc10bXwbbh+bnC932qqsLzPDRNI0kSwjDEtk0sS+6tafJf3yt8X+N//ZMvPzx+qQ/8xt9RCgR1WZZBVTW4rouuQ123dF3H9XXE+dxydeXQdTIxaTphWfoKApJEQMfpNLLdSsh8fq4YxxHLstjvXepaQmieK6JIo65hGGRBLGiwaWQyHcdhGAa2W4tpetl1SVLiui5ZlrHb7VBKYRgamw0cjyN3/8b8UsdP/7IedPG3KrXdwjQp2ralLGvC0GW3g+0WqqqawxlomsbxOFCWE30vNVPT9HSdoq5hszE4HgeCwJjBwIRpmrx+HXFx4ZIkHY4jfGDXdYyj1FKGIbTU+TzO7MbIxYVLHGsMw0Cej+i6TFLfw/vvB2y3Bo7jEEl5R5YVvH3bSH77lUe1/Rup+rLG8AtfGX/p7yk1jpAkFWHoM00CsR1HcsfjY0UQ+KRpNoceHcOQHVUUijjWqCqYJil6o8jANOGTTxLeey+maaDrJrquw/Nc2rbDcWyKouT6OkDTIMvkPkmi2Gw0jsduDXv7vUNZQlEUbLchj49HXr8+rCVA27YEQYBpmozjOIdUeHrqmaYJy7IA2G71L7w++8Ju/kt/pFTfQ12P9H2PruvEsY1SMlF3dxWvXvlkGWw28uGVUvi+jWHA8SiDl+cVjiM5KAyNleuzrIVOGpkmgeS2bWOazPBdBvPyUn738VFyl6ZpuK5J3yssS8P3hfRdCuhpUniexjRBUXQz+2GsTMeSv2ybmd3vsW2ZsGGQ+PlFhcfPPQxef7tVv/zHStU1pGlNFBlEkQtInkjTjrKE/d7n/r7G8+D+vp4LXpthgKoaiaKQYVDouo6maWy3BgB13VPXik8+OdO2LUmSsNtZTJNwgAtpOwwDYejQNHA6DTPMt+j7nr5XpGmK5wlQUUrAjiwkYebbVhFFNk3ToJSE7+MxZxwnum7g/v5MVUEUWXRdTxDAdmuQ5znv/231hYTGz3WyXn93VI5j07ZwOiV4nkdZKrKsZr+3CUPwfZtxhDzvKYqC47HB9z0MQxJ/FMlAx7Hcs65r+r7n8bECIAyteSJCuk6K2rKUwfZ9naIYaBrwfY++l/DbdR1RFOA4cH3tsdlInfX01OD7EpYNQ547DLKDhmGgaRS+73M+SyE+DAOapnE4mDNDUtP3cHtr0XWQJAPvvy9F9eavJ+qD3/18J+1z2a7X324VgOMI7XM6nQHQdZ3NZoNlCYL63vdSXr3aUlUSMmzboGl6qqpis9lgmhpJkq/E636vkabQdVIUN00/k7fQNBJa27YlDP0VtpumCcjAWpZFGOqkac9mYzEMzEVuz25nUZbQNO2aj2zbRinZdZeX8VqTLXVf0wwYhuxw09RwHAmhris5tW0VYaiRJBLSlVJ4nkPTdDz8e+dnHuuf6Qa7X8vV9XWIZcFHHyVzYbrFdfWVfTif1YzIRnY7n7aVAQCJ/a4Lb9/mRFFEXdd4nkdVCejoup793sKy4HhU6LrIH6dTwqtXMVk24Lom4whFUc7PD9E0Zgguz7ZtG8PQqKqGvu85HCK6DsqyxDRNHMdZ0eMCfJoG+n7g6srk6UlykYANH5CclSQ1tm0TBAZv30qxHscBXSclwgI3TFNy3c/K6v/Uv3z567WKY3fl4ZqmIQhc6rrjcLDpe3h4SLm93a4F7MIqZJmiLEssS0Ka7/szoRry9JQTx4KTpwnqull3y7ID0jTl9es9b9+m2LaNZVl0XUcY+tR1y/W1gIqylHukqYSxzSZkHBXDMNC27TyJBpZlcDolXF7GaJrsEAmJA77vEYbyzn3fs9lImJ8m+bfr2uu7Sn6THRVFPmEoIGgYhIGxLA3DgP/9T3+6SfuJc1b0187qm7+j1OWly/lcs9sJlHYchywrVz2p72G/3zIM8nt5Ln+ezwNxrKGUwjRN4jjgcNB4770Qz4M4juYBG5gmNSNEk67r6Pue3c7A9/05pAXYto1tm/PPQRg6HI8jeS7vUNcdnucRxyF9/8L5tW3LdmvTdR2GARcXMVXVUxQdti1j+eqVx/Pzcf3sSikeHzMA0jRlu7Vpmo7n5xOmCRcXLlHkYZomeV5xOo0YhnCURVHg+/JOr74zqJvf7H7ifPZjz/B7vz0ppdScrF2Uku3dNPIhNE2jqiouLnzGUVZaWUrN07YdFxf2al4ZRzgeG4Zh4OYm5OGhJAwDxlF4vDR9get5nrPbCdooipKLi4Dz+QWGT9PEdmtTlhNBoK9C4kIPCZID3xdC+HAwub+v5h1lEQQ6SdLOSHSYw6KEsK57uUfbdrNtwMJx5BllKWHQ9405Cgzouo5t63TdRBjKwjVNuL8v8TyPpmnWksVxZPw++ZMfb6f9hTvrw99X6hf+rlJZlqFpGp7nkqYVVdXx9JSTpikguSeKfE6nBtuWiYoim74fmKaJuoaHh448Z4buAufrGrbbYKaREspSapv9XuqbwyGmKEpME3zfp2nkd7MsI45Ntlt7DrM6x2PFOC6c4Uhd9+i6TPLjY8luZ/LxxwkAlmWRpum8++p5UGWH6jo8PCSM40RZ1ozjRBjKLpSwquj7kcPBmxeMLEDPM2fKC8JQ5/4+pSwVaarYbAKqShbhQoVlWU/X9T821P+Rk/X6u6MaR6mPvvWtLbouRSSI4HdzExGGIaapMY4yQI7j8OmnCZqmEUWsVX8Uwc2NvSZw4flcum6kbUf6njnW27RtS9+/cHSO49A0I0GgMU2KcYT9fr8O0jAMdB3Ytk3XQZoKEnVdi6YZub2VcFmWsNvFXF0Jcbvb7ajrnutr2bmbjYZl6bQt3N7GGIbOxYXH4aBTliK1TJP8XF3XGIY8p+tk8ppmxLYtzueGuoY43hIEkqvO52z+2W7O5xVKKW5vLTQNfu73lFpQ9f/r+qHbz/qr9+rDD28YBkE8mqZxdeVyd1dwcRFi27K6hmHAcSzOZwESDw9iD3McDaUkPrvuwihIQnYcG8+TuibLFK6rkeeyC7tOVNokEUjteQ6nk8j1SskOCYIAXRdEeDjEKyNSVeJyenqS+s5xnJmyknDrui5RZFJVijzP2W43lGU112cOeV6x3/v0vYTMtoXHxwTf99ls7DXcPzw88OrVDUVRYds24zhS1zWHQzwvnhc5x/MEUCyFN8i96/olvC6k8v19MpcvOn3/w0niH/hC+KsntdvtZugrDPM4KrZbjTyXAZYQJ1SNhBjxN3zwQcgwvEB1WTUuZSmUU1EU7HbbFY3VdU0cb6iqBt93KQqB63kuyO2zxpcoivB9g2GQiX96+qym5dP3gmIOB5OyhCQRm5llQV1PxLHO42OzcodRZK8KdJIUKKUIw5BhGFZRU9O0dZJlMQitFcfCzJ9O9fw9bd79gnYXrWwcX+ist28rdjt//nvLdisLqSwlFwpQkXquqiRvRpF8/7NKtQbwwe8q5TiQpsJzaZo8XOCo1AwgyEoEQgPL0lY+7XxOuLqKSdMa3xcXkePA8VgzTRPX18G6A85ncRgdjx2bjXCFCwgYBlkMS6gcR7i/zzFNk7Zt8TyP16+FQioKIV89z8OyjHWVlqXcbwm/4ziuueLy0uajj8SGJpKIQ12rVb8KQ4u2lR0kphsHTRP+b7+3yHN5pmVZc8h2sW1517Zd0GdDXYvzStd1HMdhuzXWiWzbkTA0SFPR1dq2xzAM0jTl1asdZTlhmjrjqKjrGsdx1l2m/ZV/oFSWsdq08lyI1ft7QTq6rs+eBYHowj4M+L6JbcPp1BEENlUlrECWTUSRzt1dShxvGQZRgPu+ZxxHwtADpPa5vAxnmkaK4jiGLBPpQrg84Qo9j3kXy4TI7pYdGwQGeS6DWZby/U8/TbBtmzj2ybKGsizZ7/fzhLtkmTwvyzJev96QptOsWcV0nZhwltJCPBpwPqdcX285nSo2G5++V+tOdBydthXH1cWFT1lKydE0DTc3AooELcoY6LrOMAwcDj739xJql5C6eBkXt1YQyOe2bdAXo6Ss4oq6btcJCQKDYRjYbAzGcVFoayzLpK7HWSey6Hvh7N68STEMna4Tri7LcnRdRylFENhEkYemycDHcbjunu02IgzhdJrWWmgphA1DVm2ajmgavHmT8NFHKboutU6evyT+/V5W99VVjO/7KAW+73I4HCjLcg1pcRyhlMJxnBnF6ViWhW0LMXt5abHbCdAR24Di8nJLnvdcXvqcz1I0TtOEbctkmqbObuevoXu71TkcfO7uCqZJFGZRqxtcVxaSbcN778WM40iWZRiGweOj3PvqKp69IRIeTRP0slQUxTCHPmf2IahVCGya5geS7n7vMU0KxzE4nxsBJJaEy/1+S98PZFm91jGyKwUxDQNkWUWeN2voEGGx43zu15eWUKtTlt2cv8A0DYZhJIoibm+3WBYcDvsZTWmczx2nk8T2cZQoIQ0JPZoGFxfhCsuXLOB5Ds/PFedzRRAEPD1l1LWi70VLMwyDIBB4Lova4ulJgIXjaBwODsMgu2ah0IZBFnRdy9d3u5CybHFdjdOp5fXreJVXJMf3OI6DrutEkcyBUswLRyPLJpSSn9Vlpk08T1ZKkkiCD8OQtpU/01TY5b6XxBqGGk0zcHUl3ogXWM3skHWpqgrXdbm8NGYxUQrNqyufw8FlGCR+L+Kd48ifu91uDpkTrmtTVR1ZVmNZsNsJrVUUE3kOux3c3QmYsSwLz5OFs4Tn8znFdS2mSdgNIWtllSdJQt+PRJE/85Adt7cbgkCjKCRP931P2/Zst3A+J2ga3Nz4aJpGWfZzflQURTtrW6IMbLfbWcHuOR4z4tjh8VGose9//8zpVJGm/ZyrRYv7xjdC7u8lH55OCXUNd3fZLP0IwNEOf7NUC+sgtY7krDRlVVOXLg2ZWBddXxjnabV3Lbxd3/c0TUMcx0SRwfEoqElW3UCWZWw2G+LY4nwWVsC2rRni9mRZNsvoIUEgFb5hvDAiS/ja7eDP/uzFmqaU4vra4/m5m8OnQd/3DMMw+wJ9np6eME0TTdP45jdjigKyTJiFKNLpe1nBS+gRH7wiy7LZpxjT98PMZBjc3yfz38MZlhtomoyLMBmSb9++fSF8FyI7z8Woo2lSpvR9z8VFyPlcz5KRLOZpmnAcWYjaYlNumn71zJ1OJ25uLgHW9plFUZWXkUnbbGQwxxEeH4/s93tsW3ZQmopJMgjg7dty5vVi6loMKotnT9fh+VlI1CU0+v4LU11VkqzP5zOO43A4hOS5wF0pxGVAl8vztJmz9DidxEL25k1BEAT4vsbxWBFF/uqL3++1Wf4QdTkIRErx/UUsbZmmadbHBmzbZBgkVzXNsOZWXWeWbsY53ztUVTfbDTxc18B1hRsVf6KzSi+uK97EIPDRdXn2w0M1q+sueT4DE8PQGQaF686zp2lcXFzQNBLrP/nkiK7LRNV1MwuELuM4znWCmgFDPPsbsjlceLRtP/Nr2oy+cm5uXA4Hjb4fqev2MywFc64oSJKONFWzu0m6R0zTxHVdDEPYk9Oppm3VHIYbDEPD8zSSRMwsAqV7qkpCeRRpFMU452XZBV3XkSSyQNpWEQQWx2NOlhXzTh7nWs6b84hJ28rAdd1EURQ4juSoMISuU+vC6bppLTeapqHrFEky4jgmwzBg26xCZ9PA7a1ocraQ+Fxe+nPBrdjvLbZbV+imzUabfd6KoijQdY3NxqIoGl6/PpDn1Sp9C3qCKDJ4fj6jaRrPz+lniladp6eMqoI4lrpFaKBOaoa7isfHgSgy2G4lmb56FVOWzDkkpKoqTFOjrru5PnN49WqLpmmzaRMuLz0cR4jc3c7j6em4vuP1tWha2+2WPJe6pyjAsowZaUqxfH3tEMfw+Jiy2Whz2PJo23ZGlwKSzueUNE1xXbBtsQbYtr7SW+M48sknCXGsURTFHLrElp1l2Spquq4xRzB3DrkTRTFwPCYkiXCIadpxPIr14fY2mEsIyX9rdfxLf6RUUYjOdHkZkiQtUeTMiGrAssw11CxajoQRk/N5XF9sAQy7nb+WBOKulXadZcX7vkWaVtzc+PNASjhI08U2JtJ/HFsoBff36YzCHJqmYZomwjCc2fF+VYa3W5MkEfV5yVXDMHBxIS7d+fVoGoH+oiZL7ghDef5CChyPJZtNQBiymkvzfFhFUssyOZ3OxHFMWZa8ehXy8CAOYc/z8H2Dh4eE29uYtoWm6fA8e65XpUYUEfOFohJ0LX+vKvn5PBf79g/QTe/99qQ8TyPP+1WgE1len7sw1JwIhR5ZFFnPg48/lmTfdWrt/kiShIuLA1mWc3sbUVXC6d3cxNS18ILCM76Ic54nAzkMwp6/fSsTKsWyTHKSlPK+7wWzfCE5482bZGYWIjYbE8OA+/uCOA5n4CBq89L8YNs2fd/jeR5ZlnF1teV0KmeNzJpRsZhKNxuDspR8soAe8XgkXFzEFIV0W3adjIfY7xr2e5eqkp/b72NcVxbMxx9L4f76tc+bNxXTNHE4hLMFrub62qMsf1Bd/qFE7vW3W3VxYfPxx0LNyPaVVhmxNBe4rsswDFxfuzw8CL8nu47ZFqZxPhc4joPrWivddDxWbLc+VSXU1uKB2O8NkkTNZpiXnxeXVMnNTUCWiXVZdkU2W6xNsixnv49WC/WnnyazsBnSNOJxf3jIuLraoGmQJC23tw53d/Le0/RS4I6jLELDWDzwNZuNmG+macIw9BURGoZBXQuYEZpKJsX3fS4v7bWrsusk5IHoc9/85pb7e6lFw9CmbcX+JjRagW3bP9Sz8SNFL/dXHtXFxcUqyi3EbpIk3N7ueHrKORwimuZlGxuGwPrvfe8tH3xwQ1VJK87iim0aOJ/Pcy2i43mQJB2WZeE4Ur9EkbUW0GHoE8fw/Cwf1vd1hmGRRl6oLN+3aZqBvu8JAo9xlETvuhpFIQtjATFSZE6z1yOY/YUG9/fC9KephOyFXpP7QFGM+L6B5wlhLbltWkGI9IcpLi+liBZ7tlBISdICzKDE4fY2pCggzwt0Xef2VqLHjxIif6Se1fzXK+37f6prCyEq6rA228BEjxKI3X8GlS3o5oY8l0Q8lyFzp2GBaZr0fc/5nJDnQrhO08T5XHJxYVHXiq6bCAIfzxOzzOEgWlBRDKRpObMZxsyE27guM1vt0TQdbdtSVRVVNVKW5QyH09nvLjWk7/trC1CaCqMxjmr2lKjZONNiGHB3dyYM5et3dxVBoLHdujiOQxx7zAgeXdf45JNqNd90XUdVKaLImZVpcfem6UTX9VxdhbP/Uf2FivGPLevf/lavxnEkihzqesRxDLpOGOKlvgBmuf1Fspa6TAq9um6wLIu2bbm99TmdFh5Q53xOef16uxLBDw/CpARBgKaJ1CCrmzVESn0npGwQQJL0lGXJbhdTltXqbNrv/dVSIMy/7Ib9XuPTTyWnWZaE8PNZdvMwCPQW86m1cppZJnJHUfT0fc9+768O3cfHdmbahWfsOmZILwtFhFoBFVnWcnHhkKYTb/618WPNw0/ssvm531OqqiRUSfErjMF2a/P0VHB9HfL8XHN15VFVUFXtHJqCub5Y6jl4eCjm5jkhYpcicRzVGtocB56f61lM1ElTETiXGL+gvsUDcn29o20FvLx9K/1dWSbhCiCOPaZJNDEhdh1cV6Np1ErcfvjhjtNJ7h2GPlXVEIYuWVZxOPgUxThbD2TXAytRvKgLi3NqYdilTpTnOI5GXf/kXSg/tRXt6jcatds5ZNlAGJorKmuaht3OpW2XLvh+RjpCej495VxeRiRJQxRJu8/xWLDbhZzPBVEkMdOy4HyWMytAEr4UlQZl2a4OJSmUDYpCWArD0EnTjJubzbxYRNJYitRhGNjtIvJcdjvIbhP/vRhy7u7On+EoRzzPJQzh6amZuU/xMmZZtxpbF5/7QjjbtsEwCHBoW1G5bdvm+tr6qXuVf2aX6F/++0rJJEnyrSoRJIXYlGTq+xZdJ6v9fK7mVWYTRfDmjfzMxYXFRx+d125GOadCm3WrmosLj/NZtLOuU7MPQpiCpTkhihzKsl9lGYA4Nueww9pDLMYWKcLD0FgprbaVRSCuX52yrFYuse97osinqgRJns/LCTYiNEoXypY0TWeUKnLI5aXH83OzaoOf/quf3uj5udinf/mPpWPk6Unif5IUvP9+SJqKRLEgSduWvJAkFXHs0zQCl/v+Bbm1LatAB5Kg5XvCNhgGPD2p2e+3AB9h3S3LWOX052epa8TTCHd3+SxDBKv7Vu4riK8opEl8IV2X0LrbidD58HAmiiK6ruPmxl89KEFgzfodlKUYXZUS/tTz3PUZn0en5OfamvLeb09KQp5BnktCXpqzP2tpLsuSzSbkdEpm352P677UJGUpk1nXUowuRPLiUxgGGYAsm6jrmv0+4HgsOBzEzHN/L+1Ci1IQRUIoPz8LUfvmzRO6rnN9fZhbTyXnSDuQuy6WIDBWqJ9lEqIti1VvWkJ9WU6cz2cuLw+AfEbZ6Qb/8x9/fj1bX0gf0TJpfd8Thu6aH3xfEJthGGuN9fwsSXwcpZAWL4bi+fmZ/X6PruszMdtyOATkeT9bzPrZhLOjLKVoXgjZaRKJ4nQ68fr1AcuSfKfrOufzmffe2895pCaKPBwH8nyakZzk0JubkDwXXUuUXmHcXfflqIdPPz3yC79w4O5OdpGgYvHfT9Pnf8TQF9ZMd/UbjdpuRQZ4eKhm+O3N/cPdipSyLOP997eMI5zP3bqq+75fm+kuLvx1hy6QuG1lwNp2YrvV5w5IxX4vH0kpePtWlOzt1uXhQSxqfd/zjW9IiO77ic1G5/m54fLS5XTqubiw1ibyYZAdE8/9R8LMmPT9uDq0ttvt6nHf7Xy67sd32P6k1xfepvr6u6NaTCdNs8j0+io3RJGF6wqt1PfM9ZI0iKdpznYrTQrL15cmiO3W5XgsaNuWq6vDLOP0q74kjXVyFBC85MHbW4ePP5b7iggou35RbTVNI4417u7KuRbzSVOZvLIUoFOWi7G0WwXEsvziz8r40rrNlxNklILj8cirV4f1WATTlB2T5xO+r5PnPYeDWL/O5wTDMNhsIoZhXLs0tltr3lmsNdrzsyjbck9Rt4W81Wcm5AWJ1nWL4zgrk7H0MS8uX8mfPZ5n0bbjeqCKlCbe7NUQ0+oXtZP+/PWln+Xw4e8rlSQyQHVdz40A1mxFlhDXdf0s95ukqdRlZSmtPldX+zUkLpY1zxPTpijHclLNe+8Fs2AquXMxhcqgO6sBaJFFhkHAzCITXV+Hs/dBmPoFVb55I7LK0qZ0+k/hlzaGX8mhJT//B0qlabNyi0tH4vEo0FfafWRGgsBeqaCyHFe/uFILdA6wLI00FWu1uGuFSLVtGVzf9/E8a0Wjcp6FPnNzFlUFed4xTRP7vYvrwsODyDHLwsiyksMhIE2lFnv77+z/vw8t+fNX+Ksntd/vVmtY2/azVGHjujLgi4zuOA6bjRTJYfiieS1HNeS5eBjKUsBM0zR861s7zmcpxstSjKnzQWozky8F/HYr/vqlt3ix4rVtSxQFNE1HGNqUZf+VTNJyfWmHlvywq/gve+2TP9E0yQ8DRVGsO0aI4A7ft9ak//QkHpCPPz7PTW/Mztd+1paa+SxcjziOOZ/FmZTn3Xw24dLoPc4yy4jvC7sh8jucTvIOeZ6vB0q6rs3/+Wea9lVOFLwjp6It1y/+oTzw8moAAAHYSURBVFJl+cJOLBrZZmOQ52IWTVOxQ4vxJVhdUkqJoadtWyzL4nDw1zZWOWjEnk+gfhH6kkSOrNM0+V3fd9fifQE9bQvf++df/jlNP+x6J17is9f1t1slsNtc/eJRFK2+jEWUXPyMy0Eii31rYfhBmtsk1y07zqTr5J6CEB36fmS3M+beXykZyrKmbVvy/7x7p8bnnXqZz17f/B2lmqabpXRhuhf6yLZt8jxns9ng+8I6LKzC6TSujLznuSuh7Hketm3MLMo4d+2LMzjPO4ZhmPWp7Tt7Vu47+VKfvV59Z1B1Xa/Iz/etGVio9biE5aihpVuy7wWG17XkvcPB5u4un21rW5qmY7ezubtL567MkGmSXPlV56Ufdb2zL/bZ6+Y3O+W6FmXZrAJfFFkUxbDmryhyZxVYWAyhgnyaZlxNKLe3Huezms0uL4eN/CRN2F/l9c6/4GevX/ojpapKitMX1gPyXDjA5WyLxUMoNmWXzcbg8bFkuw3WBkA5zvXLPzPwZ7m+Ni/62Wv5/5Asx4W7rs3pJK2rV1fB3GB9nifKo22Fxlr8hVXV8vgf3K/dZ//avfBnr8tfr9UC1a+u/PXM9udnYc+zbPH+vfx/Sx4eHuj/2+3X8nP/X8+jjAy2QdiEAAAAAElFTkSuQmCC"},null),$("linearGradient",{id:"_Linear11",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-118.47,-106.79,210.785,-180.125,69.2121,1372.7)"},[$("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),$("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),$("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),$("image",{id:"_Image15",width:"38px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGaElEQVRogcVZSWLjOAwsblIu+oD+/zZ/YC4di8sc7IKLsJzJdCdpXGxLXIACUADpgL8oIYR9jKG/wd/hL+m080uMEb33pwHpR9UBkFLaU7ptW0rBGAOKGgAsy/KjiO3Aw105Z4wx0FpDSgmtNVPqer0if7c2Oee91oqUEsYY5rZaK5ZlQYwRx3HY+J+IsSmOQghPqKhwTO8dIYRvU8yU0kzzEmPEGGNSiGO/Ovh3ABtwQ4UI5ZxRSjEFKBprYwyUUtB7v6H3hQqhlGIb1loRY0RKCcdxIKWE3rshUkqZYsvLHykWQthjjJZZGtwqpRS01ia3MaZCCKi1cj2MMZBS+n1XhhB2brKuK2qtj/hIyeJHkVEypft678g5I+c8uf53FNsBbLoJF6RwU800kirjinM18HXcpxULIewANi5KyDWT1nWd3KquXZbF5tGVmq2qXO/9UzG2f/SSyK3rivf395e1T5/TmBAClmXB+/u7AnBD+7NK5fwoEiE822OM7d7lnBFjtIwlmkSMga97hBBelqRdraTf1SIvnsm1/gEwVBgCfMfPpwQ6UWgj0XGQxgrfeUWJFIO7tYacs20WYzRDPbqkDcZs790U25dl2ai9xoKK+V+oQFEhspzvWZ4kC2DKTK6tCRBjjDtd4RVZlgVvb2/T4lqMj+Ow9yRaRU/Xi/E5nIkUjWLMpZSQxhibn8C6dhyHlRZa6Ru73jtKKbYgDeBmWor8PN2LLmf8JdyLrsKrlV7hp+XeRa01G+/jjaj4hGE49N6ngm/vVakQgqU1N9c2uPc+pTdLjyqpn7qOFz6PMU48RjBsVcaHr/hqPZVZ13XKMn3v+U4zmiWKhur6mpm994diDDwN2BDCxD80wD9TZWqttimfE1lPQYyndV2n32OMW4xp6jI7vGi80CqSr48PRZGGkttSShO/sV9b19XHcjSkmEWKmP5mcKsiipaXs/hjCFCUO1ncASDFGLdXmxJBjRFFk4VbfxNVpRi6h/F2tgfBoRdiaw3LshifeCGPsW3hQsCj/lER5T1SCN3nWd76rhehk0IIGxVQC7iAh3xZlmksUVQC1eMaS5gqRve/OoXXWm/Br0jwANFas3aFStFNuomlt7iZ2aeErUox8Espxp9U1GomgJ0WTec6l23+HcvIWWPIHoytkM7lfYWi7ue21hBZ/9TiUsqUPWcMT746U6rWOvVnOvdVJaAYjeScNwYorSeFeDL0LO838W5WQ/S7ZZ4klc/4eL1eLViZsrVW8z39f9a2eKR8u8Mg93NpZGsNx3FMBxTzEoDt7KCqCcFNtTNVK1+dK1trljxKEWyVfDfLLM05I7Fz1c191tVarbPwLlXOMjecKKWbMtEo/s6s945IjWutBq1apxbpUR94JAkX00Kv8aSuZDZynWVZTCltNs2VHikN/DP+okvOEsCHA68BPFLa3XoujZqFKlqctRx5BfQsSI7iHACWeeoySmvt6eDDsmaIeSF18PbPu5ZjtCroe7+mP01pS+T3tZM4G7uzWGCvpNZpdhExZqx2ptpRKPX47oJoszMG7j2/xoIqx8DU1oYLcxwTxbfkPl5jjFN4MAP53p8nIsmV15G+9yICXIyKcNHjOKY5KjqXY6kc6yzXbK0ZkjFGhFLKzoH2UG75xIIP6xzT3X8HHg3B2TGOzabe+/PiblOfn8UEn3MToqnI6R0GjfOJoOXNcx7r552CLmmMsem1NjdX7uGiSqa6IUWPa2eZzoOtntBVeu8XAP8AuF1D5ZytmKoVFH/0OpNX79St/lMo5uLnJdzvUzXwpk5SiFTpwlv9qnfXYm8F+jHPEPJiaUR21gzTf8fUytba1E2Qw/TcSdECzaS6U8sTShPS/MKOk27T9FXxqKirSBetNby9veHXr182XrL0Q4UokVdInnO0vj1Zc+ciJUV2HloVXON4+axSAJDJ2F4Bn+p6tD9rhbkGkZee//JR0rySlHPelLfOWhUqqH966gFFKYRz7p+fRuhJsRDCaWtNJf1JiJvqkf6E4y6999Ns+6xkbVtIE2enZ0XKX4VzPP5HDP2XGI8B81W5lhTlOZYiV3YuY4w/QshLVJeR/TVOBA0TF49fhpJKptXaT/mSoZlLRa/X67coRAkAdt+OnP2ZLvKtClEy8Bz4L5T6EYUoU2utqGm9+2mlAMz/vunfxHda+HGFKP8C6wW6ett+DK8AAAAASUVORK5CYII="},null)])])}});const tVe=["info","success","warning","error","403","404","500",null],nVe=we({name:"Result",components:{IconInfo:lve,IconCheck:rg,IconExclamation:jH,IconClose:fs,ResultForbidden:Jje,ResultNotFound:Qje,ResultServerError:eVe},props:{status:{type:String,default:"info",validator:e=>tVe.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Re("result")}}});function rVe(e,t,n,r,i,a){const s=Te("icon-info"),l=Te("icon-check"),c=Te("icon-exclamation"),d=Te("icon-close"),h=Te("result-forbidden"),p=Te("result-not-found"),v=Te("result-server-error");return z(),X("div",{class:de(e.prefixCls)},[I("div",{class:de([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[I("div",{class:de(`${e.prefixCls}-icon-tip`)},[mt(e.$slots,"icon",{},()=>[e.status==="info"?(z(),Ze(s,{key:0})):e.status==="success"?(z(),Ze(l,{key:1})):e.status==="warning"?(z(),Ze(c,{key:2})):e.status==="error"?(z(),Ze(d,{key:3})):e.status==="403"?(z(),Ze(h,{key:4})):e.status==="404"?(z(),Ze(p,{key:5})):e.status==="500"?(z(),Ze(v,{key:6})):Ie("v-if",!0)])],2)],2),e.title||e.$slots.title?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ie("v-if",!0),e.subtitle||e.$slots.subtitle?(z(),X("div",{key:1,class:de(`${e.prefixCls}-subtitle`)},[mt(e.$slots,"subtitle",{},()=>[He(Ne(e.subtitle),1)])],2)):Ie("v-if",!0),e.$slots.extra?(z(),X("div",{key:2,class:de(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra")],2)):Ie("v-if",!0),e.$slots.default?(z(),X("div",{key:3,class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2)):Ie("v-if",!0)],2)}var fM=ze(nVe,[["render",rVe]]);const iVe=Object.assign(fM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+fM.name,fM)}}),oVe=we({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Re("skeleton"),n=F(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function sVe(e,t,n,r,i,a){return z(),X("div",{class:de(e.cls)},[e.loading?mt(e.$slots,"default",{key:0}):mt(e.$slots,"content",{key:1})],2)}var hM=ze(oVe,[["render",sVe]]);const aVe=we({name:"SkeletonLine",props:{rows:{type:Number,default:1},widths:{type:Array,default:()=>[]},lineHeight:{type:Number,default:20},lineSpacing:{type:Number,default:15}},setup(e){const t=Re("skeleton-line"),n=[];for(let r=0;r0&&(i.marginTop=`${e.lineSpacing}px`),n.push(i)}return{prefixCls:t,lines:n}}});function lVe(e,t,n,r,i,a){return z(!0),X(Pt,null,cn(e.lines,(s,l)=>(z(),X("ul",{key:l,class:de(e.prefixCls)},[I("li",{class:de(`${e.prefixCls}-row`),style:Ye(s)},null,6)],2))),128)}var Yw=ze(aVe,[["render",lVe]]);const uVe=we({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Re("skeleton-shape"),n=F(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function cVe(e,t,n,r,i,a){return z(),X("div",{class:de(e.cls)},null,2)}var Xw=ze(uVe,[["render",cVe]]);const dVe=Object.assign(hM,{Line:Yw,Shape:Xw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+hM.name,hM),e.component(n+Yw.name,Yw),e.component(n+Xw.name,Xw)}}),fVe=we({name:"SliderButton",components:{Tooltip:Qc},inheritAttrs:!1,props:{direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},formatTooltip:{type:Function},value:[String,Number],tooltipPosition:{type:String},showTooltip:{type:Boolean,default:!0}},emits:["movestart","moving","moveend"],setup(e,{emit:t}){const n=Re("slider-btn"),r=ue(!1),i=p=>{e.disabled||(p.preventDefault(),r.value=!0,Mi(window,"mousemove",a),Mi(window,"touchmove",a),Mi(window,"mouseup",s),Mi(window,"contextmenu",s),Mi(window,"touchend",s),t("movestart"))},a=p=>{let v,g;p.type.startsWith("touch")?(g=p.touches[0].clientY,v=p.touches[0].clientX):(g=p.clientY,v=p.clientX),t("moving",v,g)},s=()=>{r.value=!1,no(window,"mousemove",a),no(window,"mouseup",s),no(window,"touchend",s),t("moveend")},l=F(()=>[n]),c=F(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),d=F(()=>{var p,v;return(v=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?v:`${e.value}`}),h=F(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:d,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:i}}}),hVe=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function pVe(e,t,n,r,i,a){const s=Te("tooltip");return z(),Ze(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:fe(()=>[I("div",Ft(e.$attrs,{tabindex:"0",role:"slider","aria-disabled":e.disabled,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":e.value,"aria-valuetext":e.tooltipContent,class:e.cls,onMousedown:t[0]||(t[0]=(...l)=>e.handleMouseDown&&e.handleMouseDown(...l)),onTouchstart:t[1]||(t[1]=(...l)=>e.handleMouseDown&&e.handleMouseDown(...l)),onContextmenu:t[2]||(t[2]=cs(()=>{},["prevent"])),onClick:t[3]||(t[3]=cs(()=>{},["stop"]))}),null,16,hVe)]),_:1},8,["popup-visible","position","content"])}var vVe=ze(fVe,[["render",pVe]]);const n0=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${Yl.round(r*100,2)}%`},eA=(e,t)=>t==="vertical"?{bottom:e}:{left:e},mVe=we({name:"SliderDots",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Re("slider"),getStyle:r=>eA(n0(r,[e.min,e.max]),e.direction)}}});function gVe(e,t,n,r,i,a){return z(),X("div",{class:de(`${e.prefixCls}-dots`)},[(z(!0),X(Pt,null,cn(e.data,(s,l)=>(z(),X("div",{key:l,class:de(`${e.prefixCls}-dot-wrapper`),style:Ye(e.getStyle(s.key))},[I("div",{class:de([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var yVe=ze(mVe,[["render",gVe]]);const bVe=we({name:"SliderMarks",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Re("slider"),getStyle:r=>eA(n0(r,[e.min,e.max]),e.direction)}}});function _Ve(e,t,n,r,i,a){return z(),X("div",{class:de(`${e.prefixCls}-marks`)},[(z(!0),X(Pt,null,cn(e.data,(s,l)=>(z(),X("div",{key:l,"aria-hidden":"true",class:de(`${e.prefixCls}-mark`),style:Ye(e.getStyle(s.key))},Ne(s.content),7))),128))],2)}var SVe=ze(bVe,[["render",_Ve]]);const kVe=we({name:"SliderTicks",props:{value:{type:Array,required:!0},step:{type:Number,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){const t=Re("slider"),n=F(()=>{const i=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=Yl.plus(s*e.step,e.min);l<=e.min||l>=e.max||i.push({key:l,isActive:l>=e.value[0]&&l<=e.value[1]})}return i});return{prefixCls:t,steps:n,getStyle:i=>eA(n0(i,[e.min,e.max]),e.direction)}}});function xVe(e,t,n,r,i,a){return z(),X("div",{class:de(`${e.prefixCls}-ticks`)},[(z(!0),X(Pt,null,cn(e.steps,(s,l)=>(z(),X("div",{key:l,class:de([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:Ye(e.getStyle(s.key))},null,6))),128))],2)}var CVe=ze(kVe,[["render",xVe]]);const wVe=we({name:"SliderInput",components:{InputNumber:rS},props:{modelValue:{type:Array,required:!0},min:{type:Number},max:{type:Number},step:{type:Number},disabled:{type:Boolean},range:{type:Boolean}},emits:["startChange","endChange"],setup(e,{emit:t}){return{prefixCls:Re("slider")}}});function EVe(e,t,n,r,i,a){const s=Te("input-number");return z(),X("div",{class:de(`${e.prefixCls}-input`)},[e.range?(z(),X(Pt,{key:0},[$(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[0],"hide-button":"",onChange:t[0]||(t[0]=l=>e.$emit("startChange",l))},null,8,["min","max","step","disabled","model-value"]),I("div",{class:de(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Ie("v-if",!0),$(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[1],"hide-button":"",onChange:t[1]||(t[1]=l=>e.$emit("endChange",l))},null,8,["min","max","step","disabled","model-value"])],2)}var TVe=ze(wVe,[["render",EVe]]);const AVe=we({name:"Slider",components:{SliderButton:vVe,SliderDots:yVe,SliderMarks:SVe,SliderTicks:CVe,SliderInput:TVe},props:{modelValue:{type:[Number,Array],default:void 0},defaultValue:{type:[Number,Array],default:0},step:{type:Number,default:1},min:{type:Number,default:0},marks:{type:Object},max:{type:Number,default:100},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},showTicks:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},range:{type:Boolean,default:!1},formatTooltip:{type:Function},showTooltip:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t}){const{modelValue:n}=tn(e),r=Re("slider"),{mergedDisabled:i,eventHandlers:a}=Do({disabled:Du(e,"disabled")}),s=ue(null),l=ue(),c=e.modelValue?e.modelValue:e.defaultValue,d=ue(nr(c)?c[0]:0),h=ue(nr(c)?c[1]:c);It(n,B=>{var j,H,U,K,Y;nr(B)?(d.value=(H=(j=B[0])!=null?j:e.min)!=null?H:0,h.value=(K=(U=B[1])!=null?U:e.min)!=null?K:0):h.value=(Y=B??e.min)!=null?Y:0});const p=()=>{var B,j;e.range?(t("update:modelValue",[d.value,h.value]),t("change",[d.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(j=(B=a.value)==null?void 0:B.onChange)==null||j.call(B)},v=B=>{B=B??e.min,d.value=B,p()},g=B=>{B=B??e.min,h.value=B,p()},y=F(()=>{var B,j,H;return e.range?nr(e.modelValue)?e.modelValue:[d.value,(B=e.modelValue)!=null?B:h.value]:xn(e.modelValue)?[d.value,h.value]:nr(e.modelValue)?[(j=e.min)!=null?j:0,e.modelValue[1]]:[(H=e.min)!=null?H:0,e.modelValue]}),S=F(()=>Object.keys(e.marks||{}).map(B=>{var j;const H=Number(B);return{key:H,content:(j=e.marks)==null?void 0:j[H],isActive:H>=y.value[0]&&H<=y.value[1]}})),k=B=>eA(n0(B,[e.min,e.max]),e.direction),C=ue(!1),x=()=>{C.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function E(B,j){if(!l.value)return 0;const{left:H,top:U,width:K,height:Y}=l.value,ie=e.direction==="horizontal"?K:Y,te=ie*e.step/(e.max-e.min);let W=e.direction==="horizontal"?B-H:U+Y-j;W<0&&(W=0),W>ie&&(W=ie);const q=Math.round(W/te);return Yl.plus(e.min,Yl.times(q,e.step))}const _=(B,j)=>{h.value=E(B,j),p()},T=B=>{if(i.value)return;const{clientX:j,clientY:H}=B;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=E(j,H),p()};function D([B,j]){return B>j&&([B,j]=[j,B]),e.direction==="vertical"?{bottom:n0(B,[e.min,e.max]),top:n0(e.max+e.min-j,[e.min,e.max])}:{left:n0(B,[e.min,e.max]),right:n0(e.max+e.min-j,[e.min,e.max])}}const P=(B,j)=>{d.value=E(B,j),p()},M=()=>{C.value=!1},O=F(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),L=F(()=>[`${r}-track`,{[`${r}-track-disabled`]:i.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:O,trackCls:L,trackRef:s,computedValue:y,mergedDisabled:i,markList:S,getBtnStyle:k,getBarStyle:D,handleClick:T,handleMoveStart:x,handleEndMoving:_,handleMoveEnd:M,handleStartMoving:P,handleStartChange:v,handleEndChange:g}}});function IVe(e,t,n,r,i,a){const s=Te("slider-ticks"),l=Te("slider-dots"),c=Te("slider-marks"),d=Te("slider-button"),h=Te("slider-input");return z(),X("div",{class:de(e.cls)},[I("div",{ref:"trackRef",class:de(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[I("div",{class:de(`${e.prefixCls}-bar`),style:Ye(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(z(),Ze(s,{key:0,value:e.computedValue,step:e.step,min:e.min,max:e.max,direction:e.direction},null,8,["value","step","min","max","direction"])):Ie("v-if",!0),e.marks?(z(),Ze(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Ie("v-if",!0),e.marks?(z(),Ze(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Ie("v-if",!0),e.range?(z(),Ze(d,{key:3,style:Ye(e.getBtnStyle(e.computedValue[0])),value:e.computedValue[0],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleStartMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])):Ie("v-if",!0),$(d,{style:Ye(e.getBtnStyle(e.computedValue[1])),value:e.computedValue[1],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleEndMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])],2),e.showInput?(z(),Ze(h,{key:0,"model-value":e.computedValue,min:e.min,max:e.max,step:e.step,range:e.range,disabled:e.disabled,onStartChange:e.handleStartChange,onEndChange:e.handleEndChange},null,8,["model-value","min","max","step","range","disabled","onStartChange","onEndChange"])):Ie("v-if",!0)],2)}var pM=ze(AVe,[["render",IVe]]);const LVe=Object.assign(pM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+pM.name,pM)}});var vM=we({name:"Space",props:{align:{type:String},direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:"small"},wrap:{type:Boolean},fill:{type:Boolean}},setup(e,{slots:t}){const n=Re("space"),r=F(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),i=F(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${r.value}`]:r.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function a(l){if(et(l))return l;switch(l){case"mini":return 4;case"small":return 8;case"medium":return 16;case"large":return 24;default:return 8}}const s=l=>{const c={},d=`${a(nr(e.size)?e.size[0]:e.size)}px`,h=`${a(nr(e.size)?e.size[1]:e.size)}px`;return l?e.wrap?{marginBottom:h}:{}:(e.direction==="horizontal"&&(c.marginRight=d),(e.direction==="vertical"||e.wrap)&&(c.marginBottom=h),c)};return()=>{var l;const c=yf((l=t.default)==null?void 0:l.call(t),!0).filter(d=>d.type!==ks);return $("div",{class:i.value},[c.map((d,h)=>{var p,v;const g=t.split&&h>0;return $(Pt,{key:(p=d.key)!=null?p:`item-${h}`},[g&&$("div",{class:`${n}-item-split`,style:s(!1)},[(v=t.split)==null?void 0:v.call(t)]),$("div",{class:`${n}-item`,style:s(h===c.length-1)},[d])])})])}}});const DVe=Object.assign(vM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+vM.name,vM)}});function uve(e){const t=ds(e)?parseFloat(e):e;let n="";return et(e)||String(t)===e?n=t>1?"px":"%":n="px",{size:t,unit:n,isPx:n==="px"}}function Tx({size:e,defaultSize:t,containerSize:n}){const r=uve(e??t);return r.isPx?r.size:r.size*n}function PVe(e,t){return parseFloat(e)/parseFloat(t)}const RVe=we({name:"Split",components:{ResizeTrigger:W0e},props:{component:{type:String,default:"div"},direction:{type:String,default:"horizontal"},size:{type:[Number,String],default:void 0},defaultSize:{type:[Number,String],default:.5},min:{type:[Number,String]},max:{type:[Number,String]},disabled:{type:Boolean,default:!1}},emits:{moveStart:e=>!0,moving:e=>!0,moveEnd:e=>!0,"update:size":e=>!0},setup(e,{emit:t}){const{direction:n,size:r,defaultSize:i,min:a,max:s}=tn(e),l=ue(0),c=ue(),d=Re("split"),[h,p]=pa(i.value,qt({value:r})),v=F(()=>uve(h.value)),g=F(()=>n.value==="horizontal"),y=F(()=>[d,{[`${d}-horizontal`]:g.value,[`${d}-vertical`]:!g.value}]),S=F(()=>{const{size:O,unit:L,isPx:B}=v.value;return{flex:`0 0 calc(${B?O:O*100}${L} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function C(){const O=()=>{var L,B;return g.value?(L=c.value)==null?void 0:L.clientWidth:((B=c.value)==null?void 0:B.clientHeight)||0};return(!c.value||O())&&await dn(),O()}function x(O,L){if(!L)return;const B=v.value.isPx?`${O}px`:PVe(O,L);h.value!==B&&(p(B),t("update:size",B))}function E(O,L){const B=Tx({size:O,containerSize:L}),j=Tx({size:a.value,defaultSize:"0px",containerSize:L}),H=Tx({size:s.value,defaultSize:`${L}px`,containerSize:L});let U=B;return U=Math.max(U,j),U=Math.min(U,H),U}function _({startContainerSize:O,startSize:L,startPosition:B,endPosition:j}){const H=Tx({size:L,containerSize:O});return E(`${H+(j-B)}px`,O)}function T(O){t("moving",O);const L=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:O.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:O.pageY});x(L,k.startContainerSize)}function D(O){no(window,"mousemove",T),no(window,"mouseup",D),no(window,"contextmenu",D),document.body.style.cursor="default",t("moveEnd",O)}async function P(O){t("moveStart",O),k.startPageX=O.pageX,k.startPageY=O.pageY,k.startContainerSize=await C(),k.startSize=h.value,Mi(window,"mousemove",T),Mi(window,"mouseup",D),Mi(window,"contextmenu",D),document.body.style.cursor=g.value?"col-resize":"row-resize"}function M(O){const{width:L,height:B}=O.contentRect;l.value=g.value?L:B}return hn(async()=>{const O=await C(),L=E(h.value,O);x(L,O)}),{prefixCls:d,classNames:y,isHorizontal:g,wrapperRef:c,onMoveStart:P,onTriggerResize:M,firstPaneStyles:S}}});function MVe(e,t,n,r,i,a){const s=Te("ResizeTrigger");return z(),Ze(wa(e.component),{ref:"wrapperRef",class:de(e.classNames)},{default:fe(()=>[I("div",{class:de([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:Ye(e.firstPaneStyles)},[mt(e.$slots,"first")],6),e.disabled?Ie("v-if",!0):(z(),Ze(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:fe(()=>[mt(e.$slots,"resize-trigger")]),icon:fe(()=>[mt(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),I("div",{class:de([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[mt(e.$slots,"second")],2)]),_:3},8,["class"])}var mM=ze(RVe,[["render",MVe]]);const $Ve=Object.assign(mM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+mM.name,mM)}}),OVe=we({name:"Statistic",props:{title:String,value:{type:[Number,Object]},format:{type:String,default:"HH:mm:ss"},extra:String,start:{type:Boolean,default:!0},precision:{type:Number,default:0},separator:String,showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{type:Number,default:2e3},valueFrom:{type:Number,default:void 0},placeholder:{type:String},valueStyle:{type:Object}},setup(e){var t;const n=Re("statistic"),r=F(()=>et(e.value)?e.value:0),i=ue((t=e.valueFrom)!=null?t:e.value),a=ue(null),{value:s}=tn(e),l=F(()=>xn(e.value)),c=(h=(v=>(v=e.valueFrom)!=null?v:0)(),p=r.value)=>{var v;h!==p&&(a.value=new tg({from:{value:h},to:{value:p},duration:e.animationDuration,easing:"quartOut",onUpdate:g=>{i.value=g.value},onFinish:()=>{i.value=p}}),(v=a.value)==null||v.start())},d=F(()=>{let h=i.value;if(et(h)){et(e.precision)&&(h=Yl.round(h,e.precision).toFixed(e.precision));const p=String(h).split("."),v=e.showGroupSeparator?Number(p[0]).toLocaleString("en-US"):p[0],g=p[1];return{isNumber:!0,integer:v,decimal:g}}return e.format&&(h=gl(h).format(e.format)),{isNumber:!1,value:h}});return hn(()=>{e.animation&&e.start&&c()}),It(()=>e.start,h=>{h&&e.animation&&!a.value&&c()}),It(s,h=>{var p;a.value&&((p=a.value)==null||p.stop(),a.value=null),i.value=h,e.animation&&e.start&&c()}),{prefixCls:n,showPlaceholder:l,formatValue:d}}}),BVe={key:0};function NVe(e,t,n,r,i,a){return z(),X("div",{class:de(e.prefixCls)},[e.title||e.$slots.title?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-content`)},[I("div",{class:de(`${e.prefixCls}-value`),style:Ye(e.valueStyle)},[e.showPlaceholder?(z(),X("span",BVe,Ne(e.placeholder),1)):(z(),X(Pt,{key:1},[e.$slots.prefix?(z(),X("span",{key:0,class:de(`${e.prefixCls}-prefix`)},[mt(e.$slots,"prefix")],2)):Ie("v-if",!0),e.formatValue.isNumber?(z(),X(Pt,{key:1},[I("span",{class:de(`${e.prefixCls}-value-integer`)},Ne(e.formatValue.integer),3),e.formatValue.decimal?(z(),X("span",{key:0,class:de(`${e.prefixCls}-value-decimal`)}," ."+Ne(e.formatValue.decimal),3)):Ie("v-if",!0)],64)):(z(),X(Pt,{key:2},[He(Ne(e.formatValue.value),1)],64)),e.$slots.suffix?(z(),X("span",{key:3,class:de(`${e.prefixCls}-suffix`)},[mt(e.$slots,"suffix")],2)):Ie("v-if",!0)],64))],6),e.extra||e.$slots.extra?(z(),X("div",{key:0,class:de(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra",{},()=>[He(Ne(e.extra),1)])],2)):Ie("v-if",!0)],2)],2)}var gM=ze(OVe,[["render",NVe]]);const FVe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function yM(e,t){let n=e;return FVe.reduce((r,[i,a])=>{if(r.indexOf(i)!==-1){const s=Math.floor(n/a);return n-=s*a,r.replace(new RegExp(`${i}+`,"g"),l=>{const c=l.length;return String(s).padStart(c,"0")})}return r},t)}const jVe=we({name:"Countdown",props:{title:String,value:{type:Number,default:()=>Date.now()+3e5},now:{type:Number,default:()=>Date.now()},format:{type:String,default:"HH:mm:ss"},start:{type:Boolean,default:!0},valueStyle:{type:Object}},emits:{finish:()=>!0},setup(e,{emit:t}){const n=Re("statistic"),{start:r,value:i,now:a,format:s}=tn(e),l=ue(yM(Math.max(gl(e.value).diff(gl(e.now),"millisecond"),0),e.format));It([i,a,s],()=>{const p=yM(Math.max(gl(e.value).diff(gl(e.now),"millisecond"),0),e.format);p!==l.value&&(l.value=p)});const c=ue(0),d=()=>{c.value&&(window.clearInterval(c.value),c.value=0)},h=()=>{gl(e.value).valueOf(){const p=gl(e.value).diff(gl(),"millisecond");p<=0&&(d(),t("finish")),l.value=yM(Math.max(p,0),e.format)},1e3/30))};return hn(()=>{e.start&&h()}),_o(()=>{d()}),It(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function VVe(e,t,n,r,i,a){return z(),X("div",{class:de([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(z(),X("div",{key:0,class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(Ne(e.title),1)])],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-content`)},[I("div",{class:de(`${e.prefixCls}-value`),style:Ye(e.valueStyle)},Ne(e.displayValue),7)],2)],2)}var Zw=ze(jVe,[["render",VVe]]);const zVe=Object.assign(gM,{Countdown:Zw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+gM.name,gM),e.component(n+Zw.name,Zw)}}),cve=Symbol("ArcoSteps"),UVe=we({name:"Steps",props:{type:{type:String,default:"default"},direction:{type:String,default:"horizontal"},labelPlacement:{type:String,default:"horizontal"},current:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},status:{type:String,default:"process"},lineLess:{type:Boolean,default:!1},small:{type:Boolean,default:!1},changeable:{type:Boolean,default:!1}},emits:{"update:current":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{type:r,lineLess:i}=tn(e),a=Re("steps"),s=ue(e.defaultCurrent),l=F(()=>{var C;return(C=e.current)!=null?C:s.value}),c=F(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),d=F(()=>e.type==="dot"?c.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),h=C=>Cl.value?"wait":e.status,p=(C,x)=>{e.changeable&&(s.value=C,t("update:current",C),t("change",C,x))},v=qt(new Map),g=F(()=>Array.from(v.values()).filter(C=>C.status==="error").map(C=>C.step)),y=(C,x)=>{v.set(C,x)},S=C=>{v.delete(C)},k=F(()=>[a,`${a}-${c.value}`,`${a}-label-${d.value}`,`${a}-mode-${r.value}`,{[`${a}-changeable`]:e.changeable,[`${a}-size-small`]:e.small&&e.type!=="dot",[`${a}-line-less`]:i.value}]);return ri(cve,qt({type:r,direction:c,labelPlacement:d,lineLess:i,current:l,errorSteps:g,getStatus:h,addItem:y,removeItem:S,onClick:p,parentCls:a})),{cls:k}}});function HVe(e,t,n,r,i,a){return z(),X("div",{class:de(e.cls)},[mt(e.$slots,"default")],2)}var bM=ze(UVe,[["render",HVe]]);const WVe=we({name:"Step",components:{IconCheck:rg,IconClose:fs},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Re("steps-item"),n=So(),r=Re("steps-icon"),i=Pn(cve,void 0),a=F(()=>{var y;return(y=i?.type)!=null?y:"default"}),s=ue(),{computedIndex:l}=vH({itemRef:s,selector:`.${t}`,parentClassName:i?.parentCls}),c=F(()=>l.value+1),d=F(()=>{var y,S;return(S=(y=e.status)!=null?y:i?.getStatus(c.value))!=null?S:"process"}),h=F(()=>{var y;return(y=i?.errorSteps.includes(c.value+1))!=null?y:!1});n&&i?.addItem(n.uid,qt({step:c,status:d})),_o(()=>{n&&i?.removeItem(n.uid)});const p=F(()=>!i?.lineLess&&(i?.labelPlacement==="vertical"||i?.direction==="vertical")),v=y=>{e.disabled||i?.onClick(c.value,y)},g=F(()=>[t,`${t}-${d.value}`,{[`${t}-active`]:c.value===i?.current,[`${t}-next-error`]:h.value,[`${t}-disabled`]:e.disabled}]);return{prefixCls:t,iconCls:r,cls:g,itemRef:s,showTail:p,stepNumber:c,computedStatus:d,type:a,handleClick:v}}});function GVe(e,t,n,r,i,a){const s=Te("icon-check"),l=Te("icon-close");return z(),X("div",{ref:"itemRef",class:de(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(z(),X("div",{key:0,class:de(`${e.prefixCls}-tail`)},null,2)):Ie("v-if",!0),e.type!=="arrow"?(z(),X("div",{key:1,class:de(`${e.prefixCls}-node`)},[mt(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(z(),X("div",{key:0,class:de(e.iconCls)},[mt(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(z(),Ze(s,{key:0})):e.computedStatus==="error"?(z(),Ze(l,{key:1})):(z(),X(Pt,{key:2},[He(Ne(e.stepNumber),1)],64))])],2)):Ie("v-if",!0)])],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-content`)},[I("div",{class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"default",{},()=>[He(Ne(e.title),1)])],2),e.description||e.$slots.description?(z(),X("div",{key:0,class:de(`${e.prefixCls}-description`)},[mt(e.$slots,"description",{},()=>[He(Ne(e.description),1)])],2)):Ie("v-if",!0)],2)],2)}var Jw=ze(WVe,[["render",GVe]]);const KVe=Object.assign(bM,{Step:Jw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+bM.name,bM),e.component(n+Jw.name,Jw)}}),qVe=we({name:"Switch",components:{IconLoading:Ja},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{type:String,default:"circle"},size:{type:String},checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},checkedColor:{type:String},uncheckedColor:{type:String},beforeChange:{type:Function},checkedText:{type:String},uncheckedText:{type:String}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t}){const{disabled:n,size:r,modelValue:i}=tn(e),a=Re("switch"),{mergedSize:s}=Aa(r),{mergedDisabled:l,mergedSize:c,eventHandlers:d}=Do({disabled:n,size:s}),h=ue(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=F(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),v=ue(!1),g=F(()=>v.value||e.loading),y=(_,T)=>{var D,P;h.value=_?e.checkedValue:e.uncheckedValue,t("update:modelValue",h.value),t("change",h.value,T),(P=(D=d.value)==null?void 0:D.onChange)==null||P.call(D,T)},S=async _=>{if(g.value||l.value)return;const T=!p.value,D=T?e.checkedValue:e.uncheckedValue,P=e.beforeChange;if(Sn(P)){v.value=!0;try{const M=await P(D);(M??!0)&&y(T,_)}finally{v.value=!1}}else y(T,_)},k=_=>{var T,D;t("focus",_),(D=(T=d.value)==null?void 0:T.onFocus)==null||D.call(T,_)},C=_=>{var T,D;t("blur",_),(D=(T=d.value)==null?void 0:T.onBlur)==null||D.call(T,_)};It(i,_=>{(xn(_)||Al(_))&&(h.value=e.uncheckedValue)});const x=F(()=>[a,`${a}-type-${e.type}`,{[`${a}-small`]:c.value==="small"||c.value==="mini",[`${a}-checked`]:p.value,[`${a}-disabled`]:l.value,[`${a}-loading`]:g.value,[`${a}-custom-color`]:e.type==="line"&&(e.checkedColor||e.uncheckedColor)}]),E=F(()=>{if(p.value&&e.checkedColor)return e.type==="line"?{"--custom-color":e.checkedColor}:{backgroundColor:e.checkedColor};if(!p.value&&e.uncheckedColor)return e.type==="line"?{"--custom-color":e.uncheckedColor}:{backgroundColor:e.uncheckedColor}});return{prefixCls:a,cls:x,mergedDisabled:l,buttonStyle:E,computedCheck:p,computedLoading:g,handleClick:S,handleFocus:k,handleBlur:C}}}),YVe=["aria-checked","disabled"];function XVe(e,t,n,r,i,a){const s=Te("icon-loading");return z(),X("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:de(e.cls),style:Ye(e.buttonStyle),disabled:e.mergedDisabled,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onBlur:t[2]||(t[2]=(...l)=>e.handleBlur&&e.handleBlur(...l))},[I("span",{class:de(`${e.prefixCls}-handle`)},[I("span",{class:de(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(z(),Ze(s,{key:0})):(z(),X(Pt,{key:1},[e.computedCheck?mt(e.$slots,"checked-icon",{key:0}):mt(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Ie(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(z(),X(Pt,{key:0},[I("span",{class:de(`${e.prefixCls}-text-holder`)},[e.computedCheck?mt(e.$slots,"checked",{key:0},()=>[He(Ne(e.checkedText),1)]):mt(e.$slots,"unchecked",{key:1},()=>[He(Ne(e.uncheckedText),1)])],2),I("span",{class:de(`${e.prefixCls}-text`)},[e.computedCheck?mt(e.$slots,"checked",{key:0},()=>[He(Ne(e.checkedText),1)]):mt(e.$slots,"unchecked",{key:1},()=>[He(Ne(e.uncheckedText),1)])],2)],64)):Ie("v-if",!0)],46,YVe)}var _M=ze(qVe,[["render",XVe]]);const ZVe=Object.assign(_M,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+_M.name,_M)}}),JVe=e=>{let t=0;const n=r=>{if(nr(r)&&r.length>0)for(const i of r)i.children?n(i.children):t+=1};return n(e),t},dve=e=>{let t=0;if(nr(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=dve(n.children);r>0&&(t=Math.max(t,r+1))}}return t},Ure=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},QVe=(e,t,n)=>{const r=dve(e);t.clear();const i=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(d,{level:h=0,parent:p,fixed:v}={})=>{var g;for(const y of d){const S={...y,parent:p};if(nr(S.children)){const k=JVe(S.children);k>1&&(S.colSpan=k),a[h].push(S),c(S.children,{level:h+1,parent:S,fixed:S.fixed})}else{const k=r-h;k>1&&(S.rowSpan=k),(v||S.fixed)&&(S.fixed=(g=S.fixed)!=null?g:v,S.fixed==="left"?s=i.length:xn(l)&&(l=i.length)),(xn(S.dataIndex)||Al(S.dataIndex))&&(S.dataIndex=`__arco_data_index_${i.length}`),n[S.dataIndex]&&(S._resizeWidth=n[S.dataIndex]),t.set(S.dataIndex,S),i.push(S),a[h].push(S)}}};return c(e),xn(s)||(i[s].isLastLeftFixed=!0,Ure(i[s],"left")),xn(l)||(i[l].isFirstRightFixed=!0,Ure(i[l],"right")),{dataColumns:i,groupColumns:a}},eze=(e,t)=>{for(let n=0;n{var n;const r=eze(t,e.name);if(r<=0)return 0;let i=0;const a=t.slice(0,r);for(const s of a)i+=(n=s.width)!=null?n:0;return i},zH=e=>e.children&&e.children.length>0?zH(e.children[0]):e,nze=e=>e.children&&e.children.length>0?zH(e.children[e.children.length-1]):e,rze=(e,{dataColumns:t,operations:n})=>{var r,i,a;let s=0;if(e.fixed==="left"){for(const d of n)s+=(r=d.width)!=null?r:40;const c=zH(e);for(const d of t){if(c.dataIndex===d.dataIndex)break;s+=(a=(i=d._resizeWidth)!=null?i:d.width)!=null?a:0}return s}const l=nze(e);for(let c=t.length-1;c>0;c--){const d=t[c];if(l.dataIndex===d.dataIndex)break;d.fixed==="right"&&(s+=d.width)}return s},fve=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],hve=(e,t)=>t.fixed==="left"?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:t.fixed==="right"?[`${e}-col-fixed-right`,{[`${e}-col-fixed-right-first`]:t.isFirstRightFixed}]:[],pve=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${rze(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},vve=(e,t)=>e.fixed?{left:`${tze(e,t)}px`}:{};function mve(e){return e.map(t=>{const n={...t};return n.children&&(n.children=mve(n.children)),n})}function gve(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=gve(t.children)),t.raw})}const UH=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...UH(n));return t},ize=(e,t)=>{let n=!1,r=!1;const i=t.filter(a=>e.includes(a));return i.length>0&&(i.length>=t.length?n=!0:r=!0),{checked:n,indeterminate:r}},Z2=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),oze=e=>{const t=[];for(let n=0;n{var s,l,c;const d=F(()=>{var E;return((E=n.value)==null?void 0:E.type)==="radio"}),h=ue((c=(l=t.value)!=null?l:(s=n.value)==null?void 0:s.defaultSelectedRowKeys)!=null?c:[]),p=F(()=>{var E,_,T;return(T=(_=e.value)!=null?_:(E=n.value)==null?void 0:E.selectedRowKeys)!=null?T:h.value}),v=F(()=>p.value.filter(E=>r.value.includes(E)));return{isRadio:d,selectedRowKeys:p,currentSelectedRowKeys:v,handleSelectAll:E=>{const _=Z2(p.value,i.value,!E);h.value=_,a("selectAll",E),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(E,_)=>{const T=d.value?[_.key]:Z2(p.value,[_.key],!E);h.value=T,a("select",T,_.key,_.raw),a("selectionChange",T),a("update:selectedKeys",T)},handleSelectAllLeafs:(E,_)=>{const T=Z2(p.value,UH(E),!_);h.value=T,a("select",T,E.key,E.raw),a("selectionChange",T),a("update:selectedKeys",T)},select:(E,_=!0)=>{const T=[].concat(E),D=d.value?T:Z2(p.value,T,!_);h.value=D,a("selectionChange",D),a("update:selectedKeys",D)},selectAll:(E=!0)=>{const _=Z2(p.value,i.value,!E);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},aze=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:i,emit:a})=>{const l=ue((()=>{var v,g;return t.value?t.value:(v=r.value)!=null&&v.defaultExpandedRowKeys?r.value.defaultExpandedRowKeys:n.value||(g=r.value)!=null&&g.defaultExpandAllRows?[...i.value]:[]})()),c=F(()=>{var v,g,y;return(y=(g=e.value)!=null?g:(v=r.value)==null?void 0:v.expandedRowKeys)!=null?y:l.value});return{expandedRowKeys:c,handleExpand:(v,g)=>{const S=c.value.includes(v)?c.value.filter(k=>v!==k):c.value.concat(v);l.value=S,a("expand",v,g),a("expandedChange",S),a("update:expandedKeys",S)},expand:(v,g=!0)=>{const y=[].concat(v),S=g?c.value.concat(y):c.value.filter(k=>!y.includes(k));l.value=S,a("expandedChange",S),a("update:expandedKeys",S)},expandAll:(v=!0)=>{const g=v?[...i.value]:[];l.value=g,a("expandedChange",g),a("update:expandedKeys",g)}}},lze=(e,t)=>{var n,r;const i=ue(gr(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=ue(gr(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=F(()=>{var h;return gr(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:F(()=>{var h;return gr(e.pagination)&&(h=e.pagination.current)!=null?h:i.value}),pageSize:s,handlePageChange:h=>{i.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}},uze=we({name:"ColGroup",props:{dataColumns:{type:Array,required:!0},operations:{type:Array,required:!0},columnWidth:{type:Object}},setup(){return{fixedWidth:(t,n)=>{if(t){const r=Math.max(t,n||0);return{width:`${t}px`,minWidth:`${r}px`,maxWidth:`${t}px`}}if(n)return{minWidth:`${n}px`}}}}});function cze(e,t,n,r,i,a){return z(),X("colgroup",null,[(z(!0),X(Pt,null,cn(e.operations,s=>(z(),X("col",{key:`arco-col-${s.name}`,class:de(`arco-table-${s.name}-col`),style:Ye(e.fixedWidth(s.width))},null,6))),128)),(z(!0),X(Pt,null,cn(e.dataColumns,s=>(z(),X("col",{key:`arco-col-${s.dataIndex}`,style:Ye(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var Ax=ze(uze,[["render",cze]]),hb=we({name:"Thead",setup(e,{slots:t}){return()=>{var n,r;return $((r=(n=t.thead)==null?void 0:n.call(t)[0])!=null?r:"thead",null,{default:t.default})}}}),pb=we({name:"Tbody",setup(e,{slots:t}){return()=>{var n,r;return $((r=(n=t.tbody)==null?void 0:n.call(t)[0])!=null?r:"tbody",null,{default:t.default})}}}),Sh=we({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Re("table"),r=F(()=>[`${n}-tr`,{[`${n}-tr-expand`]:e.expand,[`${n}-tr-empty`]:e.empty,[`${n}-tr-checked`]:e.checked}]);return()=>{var i,a,s;return $((s=(a=t.tr)==null?void 0:a.call(t,{rowIndex:e.rowIndex,record:(i=e.record)==null?void 0:i.raw})[0])!=null?s:"tr",{class:r.value},{default:t.default})}}});const dze=we({name:"IconCaretDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fze=["stroke-width","stroke-linecap","stroke-linejoin"];function hze(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.938 34.829a1.2 1.2 0 0 1-1.875 0L9.56 17.949c-.628-.785-.069-1.949.937-1.949h27.007c1.006 0 1.565 1.164.937 1.95L24.937 34.829Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fze)}var SM=ze(dze,[["render",hze]]);const HH=Object.assign(SM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SM.name,SM)}}),pze=we({name:"IconCaretUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vze=["stroke-width","stroke-linecap","stroke-linejoin"];function mze(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.063 13.171a1.2 1.2 0 0 1 1.875 0l13.503 16.88c.628.785.069 1.949-.937 1.949H10.497c-1.006 0-1.565-1.164-.937-1.95l13.503-16.879Z",fill:"currentColor",stroke:"none"},null,-1)]),14,vze)}var kM=ze(pze,[["render",mze]]);const yve=Object.assign(kM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kM.name,kM)}}),gze=we({name:"IconFilter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yze=["stroke-width","stroke-linecap","stroke-linejoin"];function bze(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"},null,-1)]),14,yze)}var xM=ze(gze,[["render",bze]]);const WH=Object.assign(xM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xM.name,xM)}}),_ze=({column:e,tableCtx:t})=>{const n=F(()=>{var d;if(e.value.dataIndex&&e.value.dataIndex===((d=t.sorter)==null?void 0:d.field))return t.sorter.direction}),r=F(()=>{var d,h,p;return(p=(h=(d=e.value)==null?void 0:d.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),i=F(()=>r.value.length>0),a=F(()=>r.value.includes("ascend")),s=F(()=>r.value.includes("descend")),l=F(()=>{var d,h;return n.value?n.value===r.value[0]&&(h=r.value[1])!=null?h:"":(d=r.value[0])!=null?d:""});return{sortOrder:n,hasSorter:i,hasAscendBtn:a,hasDescendBtn:s,nextSortOrder:l,handleClickSorter:d=>{var h;e.value.dataIndex&&((h=t.onSorterChange)==null||h.call(t,e.value.dataIndex,l.value,d))}}},Sze=({column:e,tableCtx:t})=>{const n=F(()=>{var g;return e.value.dataIndex&&((g=t.filters)!=null&&g[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=ue(!1),i=F(()=>n.value.length>0),a=F(()=>{var g;return!!((g=e.value.filterable)!=null&&g.multiple)}),s=ue(n.value);It(n,g=>{nr(g)&&String(g)!==String(s.value)&&(s.value=g)});const l=g=>{r.value=g},c=g=>{s.value=g};return{filterPopupVisible:r,isFilterActive:i,isMultipleFilter:a,columnFilterValue:s,handleFilterPopupVisibleChange:l,setFilterValue:c,handleCheckboxFilterChange:g=>{c(g)},handleRadioFilterChange:g=>{c([g])},handleFilterConfirm:g=>{var y;e.value.dataIndex&&((y=t.onFilterChange)==null||y.call(t,e.value.dataIndex,s.value,g)),l(!1)},handleFilterReset:g=>{var y;c([]),e.value.dataIndex&&((y=t.onFilterChange)==null||y.call(t,e.value.dataIndex,s.value,g)),l(!1)}}},f3=Symbol("ArcoTable"),Hre=Symbol("ArcoTableColumn");function Wre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var bve=we({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=Re("auto-tooltip"),i=ue(),a=ue(),s=ue(""),l=ue(!1),c=()=>{if(i.value&&a.value){const v=a.value.offsetWidth>i.value.offsetWidth;v!==l.value&&(l.value=v)}},d=()=>{var v;(v=a.value)!=null&&v.textContent&&a.value.textContent!==s.value&&(s.value=a.value.textContent)},h=()=>{d(),c()};hn(()=>{d(),c()}),tl(()=>{d(),c()});const p=()=>$("span",Ft({ref:i,class:r},t),[$(C0,{onResize:h},{default:()=>{var v;return[$("span",{ref:a,class:`${r}-content`},[(v=n.default)==null?void 0:v.call(n)])]}})]);return()=>{let v;if(l.value){let g;return $(Qc,Ft({content:s.value,onResize:h},e.tooltipProps),Wre(g=p())?g:{default:()=>[g]})}return $(C0,{onResize:h},Wre(v=p())?v:{default:()=>[v]})}}});function CM(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var vb=we({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=tn(e),r=Re("table"),{t:i}=No(),a=Pn(f3,{}),s=F(()=>{var ie;return((ie=e.column)==null?void 0:ie.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=F(()=>{var ie;if(gr((ie=e.column)==null?void 0:ie.tooltip))return e.column.tooltip}),c=F(()=>{var ie;return(ie=e.column)!=null&&ie.filterable&&Tl(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:d,hasSorter:h,hasAscendBtn:p,hasDescendBtn:v,nextSortOrder:g,handleClickSorter:y}=_ze({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:C,columnFilterValue:x,handleFilterPopupVisibleChange:E,setFilterValue:_,handleCheckboxFilterChange:T,handleRadioFilterChange:D,handleFilterConfirm:P,handleFilterReset:M}=Sze({column:n,tableCtx:a}),O=()=>{var ie,te,W,q,Q;let se,ae;const{filterable:re}=e.column;return(ie=e.column.slots)!=null&&ie["filter-content"]?(te=e.column.slots)==null?void 0:te["filter-content"]({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):re?.slotName?(q=(W=a?.slots)==null?void 0:W[re?.slotName])==null?void 0:q.call(W,{filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):re?.renderContent?re.renderContent({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):$("div",{class:`${r}-filters-content`},[$("ul",{class:`${r}-filters-list`},[(Q=re?.filters)==null?void 0:Q.map((Ce,Ve)=>{var ge;return $("li",{class:`${r}-filters-item`,key:Ve},[C.value?$(Wc,{value:Ce.value,modelValue:x.value,uninjectGroupContext:!0,onChange:T},{default:()=>[Ce.text]}):$(Mm,{value:Ce.value,modelValue:(ge=x.value[0])!=null?ge:"",uninjectGroupContext:!0,onChange:D},{default:()=>[Ce.text]})])})]),$("div",{class:`${r}-filters-bottom`},[$(Xo,{size:"mini",onClick:M},CM(se=i("table.resetText"))?se:{default:()=>[se]}),$(Xo,{type:"primary",size:"mini",onClick:P},CM(ae=i("table.okText"))?ae:{default:()=>[ae]})])])},L=()=>{const{filterable:ie}=e.column;return ie?$(va,Ft({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:E},ie.triggerProps),{default:()=>[$(Lo,{class:[`${r}-filters`,{[`${r}-filters-active`]:k.value,[`${r}-filters-open`]:S.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:te=>te.stopPropagation()},{default:()=>{var te,W,q,Q,se;return[(se=(Q=(W=(te=e.column.slots)==null?void 0:te["filter-icon"])==null?void 0:W.call(te))!=null?Q:(q=ie.icon)==null?void 0:q.call(ie))!=null?se:$(WH,null,null)]}})],content:O}):null},B=F(()=>{var ie,te;const W=[`${r}-cell`,`${r}-cell-align-${(te=(ie=e.column)==null?void 0:ie.align)!=null?te:e.column.children?"center":"left"}`];return h.value&&W.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:g.value==="ascend",[`${r}-cell-next-descend`]:g.value==="descend"}),c.value&&W.push(`${r}-cell-with-filter`),W}),j=()=>{var ie,te,W,q,Q,se;return t.default?t.default():(ie=e.column)!=null&&ie.titleSlotName&&((te=a.slots)!=null&&te[e.column.titleSlotName])?(q=(W=a.slots)[e.column.titleSlotName])==null?void 0:q.call(W,{column:e.column}):(se=(Q=e.column)==null?void 0:Q.slots)!=null&&se.title?e.column.slots.title():Sn(e.column.title)?e.column.title():e.column.title},H=()=>{var ie,te,W;let q;return $("span",{class:B.value,onClick:h.value?y:void 0},[(ie=e.column)!=null&&ie.ellipsis&&((te=e.column)!=null&&te.tooltip)?$(bve,{class:`${r}-th-title`,tooltipProps:l.value},CM(q=j())?q:{default:()=>[q]}):$("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(W=e.column)==null?void 0:W.ellipsis}]},[j()]),h.value&&$("span",{class:`${r}-sorter`},[p.value&&$("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="ascend"}]},[$(yve,null,null)]),v.value&&$("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="descend"}]},[$(HH,null,null)])]),c.value&&L()])},U=F(()=>{var ie,te;return{...pve(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(ie=e.column)==null?void 0:ie.cellStyle,...(te=e.column)==null?void 0:te.headerCellStyle}}),K=F(()=>{var ie,te;return[`${r}-th`,{[`${r}-col-sorted`]:!!d.value,[`${r}-th-resizing`]:s.value},...hve(r,e.column),(ie=e.column)==null?void 0:ie.cellClass,(te=e.column)==null?void 0:te.headerCellClass]}),Y=ie=>{var te,W,q;(te=e.column)!=null&&te.dataIndex&&((q=a.onThMouseDown)==null||q.call(a,(W=e.column)==null?void 0:W.dataIndex,ie))};return()=>{var ie,te,W,q;const Q=(ie=e.column.colSpan)!=null?ie:1,se=(te=e.column.rowSpan)!=null?te:1;return $((q=(W=t.th)==null?void 0:W.call(t,{column:e.column})[0])!=null?q:"th",{class:K.value,style:U.value,colspan:Q>1?Q:void 0,rowspan:se>1?se:void 0},{default:()=>[H(),!c.value&&L(),e.resizable&&$("span",{class:`${r}-column-handle`,onMousedown:Y},null)]})}}});function kze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var i0=we({name:"Td",props:{rowIndex:Number,record:{type:Object,default:()=>({})},column:{type:Object,default:()=>({})},type:{type:String,default:"normal"},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},isFixedExpand:{type:Boolean,default:!1},containerWidth:{type:Number},showExpandBtn:{type:Boolean,default:!1},indentSize:{type:Number,default:0},renderExpandBtn:{type:Function},summary:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Re("table"),r=F(()=>{var k;if(gr((k=e.column)==null?void 0:k.tooltip))return e.column.tooltip}),i=F(()=>{var k,C;return((k=e.column)==null?void 0:k.dataIndex)&&((C=p.sorter)==null?void 0:C.field)===e.column.dataIndex}),a=F(()=>{var k;return((k=e.column)==null?void 0:k.dataIndex)&&p.resizingColumn===e.column.dataIndex}),s=()=>{var k,C,x,E,_,T;return e.summary?Sn((k=e.column)==null?void 0:k.summaryCellClass)?e.column.summaryCellClass((C=e.record)==null?void 0:C.raw):(x=e.column)==null?void 0:x.summaryCellClass:Sn((E=e.column)==null?void 0:E.bodyCellClass)?e.column.bodyCellClass((_=e.record)==null?void 0:_.raw):(T=e.column)==null?void 0:T.bodyCellClass},l=F(()=>{var k;return[`${n}-td`,{[`${n}-col-sorted`]:i.value,[`${n}-td-resizing`]:a.value},...hve(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,C,x,E,_,T;return e.summary?Sn((k=e.column)==null?void 0:k.summaryCellStyle)?e.column.summaryCellStyle((C=e.record)==null?void 0:C.raw):(x=e.column)==null?void 0:x.summaryCellStyle:Sn((E=e.column)==null?void 0:E.bodyCellStyle)?e.column.bodyCellStyle((_=e.record)==null?void 0:_.raw):(T=e.column)==null?void 0:T.bodyCellStyle},d=F(()=>{var k;const C=pve(e.column,{dataColumns:e.dataColumns,operations:e.operations}),x=c();return{...C,...(k=e.column)==null?void 0:k.cellStyle,...x}}),h=F(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=Pn(f3,{}),v=()=>{var k,C,x,E,_,T,D,P;if(t.default)return t.default();const M={record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1};return t.cell?t.cell(M):(x=e.column.slots)!=null&&x.cell?e.column.slots.cell(M):e.column.render?e.column.render(M):e.column.slotName&&((E=p.slots)!=null&&E[e.column.slotName])?(T=(_=p.slots)[e.column.slotName])==null?void 0:T.call(_,M):String((P=mm((D=e.record)==null?void 0:D.raw,e.column.dataIndex))!=null?P:"")},g=ue(!1),y=k=>{var C,x;Sn(p.loadMore)&&!((C=e.record)!=null&&C.isLeaf)&&!((x=e.record)!=null&&x.children)&&(g.value=!0,new Promise(E=>{var _;(_=p.loadMore)==null||_.call(p,e.record.raw,E)}).then(E=>{var _;(_=p.addLazyLoadData)==null||_.call(p,E,e.record),g.value=!1})),k.stopPropagation()},S=()=>{var k,C,x,E,_,T;let D;return $("span",{class:[`${n}-cell`,`${n}-cell-align-${(C=(k=e.column)==null?void 0:k.align)!=null?C:"left"}`,{[`${n}-cell-fixed-expand`]:e.isFixedExpand,[`${n}-cell-expand-icon`]:e.showExpandBtn}],style:h.value},[e.indentSize>0&&$("span",{style:{paddingLeft:`${e.indentSize}px`}},null),e.showExpandBtn&&$("span",{class:`${n}-cell-inline-icon`,onClick:y},[g.value?$(Ja,null,null):(x=e.renderExpandBtn)==null?void 0:x.call(e,e.record,!1)]),(E=e.column)!=null&&E.ellipsis&&((_=e.column)!=null&&_.tooltip)?$(bve,{class:`${n}-td-content`,tooltipProps:r.value},kze(D=v())?D:{default:()=>[D]}):$("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(T=e.column)==null?void 0:T.ellipsis}]},[v()])])};return()=>{var k,C,x,E;return $((E=(x=t.td)==null?void 0:x.call(t,{record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1})[0])!=null?E:"td",{class:l.value,style:d.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[S()]})}}}),xze=we({name:"OperationTh",props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},rowSpan:{type:Number,default:1},selectAll:{type:Boolean,default:!1}},setup(e){const t=Re("table"),n=Pn(f3,{}),r=F(()=>{var l,c,d,h;let p=!1,v=!1;const y=((c=(l=n.currentSelectedRowKeys)==null?void 0:l.filter(k=>{var C,x;return(x=(C=n.currentAllEnabledRowKeys)==null?void 0:C.includes(k))!=null?x:!0}))!=null?c:[]).length,S=(h=(d=n.currentAllEnabledRowKeys)==null?void 0:d.length)!=null?h:0;return y>0&&(y>=S?p=!0:v=!0),{checked:p,indeterminate:v}}),i=()=>e.selectAll?$(Wc,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:Sn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?Sn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=F(()=>vve(e.operationColumn,e.operations)),s=F(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...fve(t,e.operationColumn)]);return()=>$("th",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0},[$("span",{class:`${t}-cell`},[i()])])}}),Gre=we({name:"OperationTd",components:{Checkbox:Wc,Radio:Mm,IconPlus:Cf,IconMinus:$m},props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},record:{type:Object,required:!0},hasExpand:{type:Boolean,default:!1},selectedRowKeys:{type:Array},renderExpandBtn:{type:Function},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},summary:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t,slots:n}){const r=Re("table"),i=Pn(f3,{}),a=F(()=>vve(e.operationColumn,e.operations)),s=F(()=>[`${r}-td`,`${r}-operation`,{[`${r}-checkbox`]:e.operationColumn.name==="selection-checkbox",[`${r}-radio`]:e.operationColumn.name==="selection-radio",[`${r}-expand`]:e.operationColumn.name==="expand",[`${r}-drag-handle`]:e.operationColumn.name==="drag-handle"},...fve(r,e.operationColumn)]),l=F(()=>UH(e.record)),c=F(()=>{var h;return ize((h=i.currentSelectedRowKeys)!=null?h:[],l.value)}),d=()=>{var h,p,v,g,y,S;if(e.summary)return null;if(e.operationColumn.render)return e.operationColumn.render(e.record.raw);if(e.operationColumn.name==="selection-checkbox"){const k=e.record.key;return!i.checkStrictly&&!e.record.isLeaf?$(Wc,{modelValue:c.value.checked,indeterminate:c.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=i.onSelectAllLeafs)==null?void 0:x.call(i,e.record,C)},onClick:C=>C.stopPropagation()},null):$(Wc,{modelValue:(p=(h=e.selectedRowKeys)==null?void 0:h.includes(k))!=null?p:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=i.onSelect)==null?void 0:x.call(i,C,e.record)},onClick:C=>C.stopPropagation()},null)}if(e.operationColumn.name==="selection-radio"){const k=e.record.key;return $(Mm,{modelValue:(g=(v=e.selectedRowKeys)==null?void 0:v.includes(k))!=null?g:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=i.onSelect)==null?void 0:x.call(i,C,e.record)},onClick:C=>C.stopPropagation()},null)}return e.operationColumn.name==="expand"?e.hasExpand&&e.renderExpandBtn?e.renderExpandBtn(e.record):null:e.operationColumn.name==="drag-handle"?(S=(y=n["drag-handle-icon"])==null?void 0:y.call(n))!=null?S:$(Z5,null,null):null};return()=>$("td",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},[$("span",{class:`${r}-cell`},[d()])])}});const Cze=e=>{const t=F(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=qt({dragging:!1,sourceKey:"",sourcePath:[],targetPath:[],data:{}}),r=()=>{n.dragging=!1,n.sourceKey="",n.sourcePath=[],n.targetPath=[],n.data={}};return{dragType:t,dragState:n,handleDragStart:(h,p,v,g)=>{if(h.dataTransfer&&(h.dataTransfer.effectAllowed="move",h.target&&h.target.tagName==="TD")){const{parentElement:y}=h.target;y&&y.tagName==="TR"&&h.dataTransfer.setDragImage(y,0,0)}n.dragging=!0,n.sourceKey=p,n.sourcePath=v,n.targetPath=[...v],n.data=g},handleDragEnter:(h,p)=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),n.targetPath.toString()!==p.toString()&&(n.targetPath=p),h.preventDefault()},handleDragLeave:h=>{},handleDragover:h=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),h.preventDefault()},handleDragEnd:h=>{var p;((p=h.dataTransfer)==null?void 0:p.dropEffect)==="none"&&r()},handleDrop:h=>{r(),h.preventDefault()}}},wze=(e,t)=>{const n=ue(""),r=qt({}),i=(l,c)=>{c.preventDefault(),n.value=l,Mi(window,"mousemove",s),Mi(window,"mouseup",a),Mi(window,"contextmenu",a)},a=()=>{n.value="",no(window,"mousemove",s),no(window,"mouseup",a),no(window,"contextmenu",a)},s=l=>{const c=e.value[n.value];if(c){const{clientX:d}=l,{x:h}=c.getBoundingClientRect();let p=Math.ceil(d-h);p<40&&(p=40),r[n.value]=p,t("columnResize",n.value,p)}};return{resizingColumn:n,columnWidth:r,handleThMouseDown:i,handleThMouseUp:a}},Eze=({columns:e,onFilterChange:t})=>{const n=ue(Kre(e.value));It(e,s=>{const l=Kre(s);u3(l,n.value)||(n.value=l)});const r=F(()=>{var s,l;const c={};for(const d of e.value)if(d.dataIndex){const h=(l=(s=d.filterable)==null?void 0:s.filteredValue)!=null?l:n.value[d.dataIndex];h&&(c[d.dataIndex]=h)}return c});return{_filters:n,computedFilters:r,resetFilters:s=>{var l;const c=s?[].concat(s):[],d={};for(const h of e.value)if(h.dataIndex&&h.filterable&&(c.length===0||c.includes(h.dataIndex))){const p=(l=h.filterable.defaultFilteredValue)!=null?l:[];d[h.dataIndex]=p,t(h.dataIndex,p)}n.value=d},clearFilters:s=>{const l=s?[].concat(s):[],c={};for(const d of e.value)if(d.dataIndex&&d.filterable&&(l.length===0||l.includes(d.dataIndex))){const h=[];c[d.dataIndex]=h,t(d.dataIndex,h)}n.value=c}}},Kre=e=>{var t;const n={};for(const r of e)r.dataIndex&&((t=r.filterable)!=null&&t.defaultFilteredValue)&&(n[r.dataIndex]=r.filterable.defaultFilteredValue);return n},Tze=({columns:e,onSorterChange:t})=>{const n=ue(qre(e.value));It(e,s=>{const l=qre(s);u3(l,n.value)||(n.value=l)});const r=F(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=ds(l.sortable.sortOrder)?l.sortable.sortOrder:((s=n.value)==null?void 0:s.field)===l.dataIndex?n.value.direction:"";if(c)return{field:l.dataIndex,direction:c}}});return{_sorter:n,computedSorter:r,resetSorters:()=>{var s;let l;for(const c of e.value)c.dataIndex&&c.sortable&&(!l&&c.sortable.defaultSortOrder&&(l={field:c.dataIndex,direction:c.sortable.defaultSortOrder}),t(c.dataIndex,(s=c.sortable.defaultSortOrder)!=null?s:""));n.value=l},clearSorters:()=>{for(const s of e.value)s.dataIndex&&s.sortable&&t(s.dataIndex,"")}}},qre=e=>{var t;for(const n of e)if(n.dataIndex&&((t=n.sortable)!=null&&t.defaultSortOrder))return{field:n.dataIndex,direction:n.sortable.defaultSortOrder}},Yre=({spanMethod:e,data:t,columns:n})=>{const r=(l,c)=>{l?.forEach((d,h)=>{var p;d.hasSubtree&&((p=d.children)!=null&&p.length)&&r(d.children||[],c),n.value.forEach((v,g)=>{var y,S;const{rowspan:k=1,colspan:C=1}=(S=(y=e.value)==null?void 0:y.call(e,{record:d.raw,column:v,rowIndex:h,columnIndex:g}))!=null?S:{};(k>1||C>1)&&(c[`${h}-${g}-${d.key}`]=[k,C],Array.from({length:k}).forEach((x,E)=>{var _;if(h+E{g+P{const l={};return i.value={},e.value&&r(t.value,l),l}),s=F(()=>{const l=[];for(const c of Object.keys(i.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function Aze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const Xre={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var wM=we({name:"Table",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},bordered:{type:[Boolean,Object],default:!0},hoverable:{type:Boolean,default:!0},stripe:{type:Boolean,default:!1},size:{type:String,default:()=>{var e,t;return(t=(e=Pn(Za,void 0))==null?void 0:e.size)!=null?t:"large"}},tableLayoutFixed:{type:Boolean,default:!1},loading:{type:[Boolean,Object],default:!1},rowSelection:{type:Object},expandable:{type:Object},scroll:{type:Object},pagination:{type:[Boolean,Object],default:!0},pagePosition:{type:String,default:"br"},indentSize:{type:Number,default:16},rowKey:{type:String,default:"key"},showHeader:{type:Boolean,default:!0},virtualListProps:{type:Object},spanMethod:{type:Function},spanAll:{type:Boolean,default:!1},components:{type:Object},loadMore:{type:Function},filterIconAlignLeft:{type:Boolean,default:!1},hideExpandButtonOnEmpty:{type:Boolean,default:!1},rowClass:{type:[String,Array,Object,Function]},draggable:{type:Object},rowNumber:{type:[Boolean,Object]},columnResizable:{type:Boolean},summary:{type:[Boolean,Function]},summaryText:{type:String,default:"Summary"},summarySpanMethod:{type:Function},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},expandedKeys:{type:Array},defaultExpandedKeys:{type:Array},defaultExpandAllRows:{type:Boolean,default:!1},stickyHeader:{type:[Boolean,Number],default:!1},scrollbar:{type:[Object,Boolean],default:!0},showEmptyTree:{type:Boolean,default:!1}},emits:{"update:selectedKeys":e=>!0,"update:expandedKeys":e=>!0,expand:(e,t)=>!0,expandedChange:e=>!0,select:(e,t,n)=>!0,selectAll:e=>!0,selectionChange:e=>!0,sorterChange:(e,t)=>!0,filterChange:(e,t)=>!0,pageChange:e=>!0,pageSizeChange:e=>!0,change:(e,t,n)=>!0,cellMouseEnter:(e,t,n)=>!0,cellMouseLeave:(e,t,n)=>!0,cellClick:(e,t,n)=>!0,rowClick:(e,t)=>!0,headerClick:(e,t)=>!0,columnResize:(e,t)=>!0,rowDblclick:(e,t)=>!0,cellDblclick:(e,t,n)=>!0,rowContextmenu:(e,t)=>!0,cellContextmenu:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{columns:r,rowKey:i,rowSelection:a,expandable:s,loadMore:l,filterIconAlignLeft:c,selectedKeys:d,defaultSelectedKeys:h,expandedKeys:p,defaultExpandedKeys:v,defaultExpandAllRows:g,spanMethod:y,draggable:S,summarySpanMethod:k,scrollbar:C,showEmptyTree:x}=tn(e),E=Re("table"),_=Pn(Za,void 0),T=F(()=>gr(e.bordered)?{...Xre,...e.bordered}:{...Xre,wrapper:e.bordered}),{children:D,components:P}=nS("TableColumn"),M=F(()=>{var At,Zt;return(Zt=(At=a.value)==null?void 0:At.checkStrictly)!=null?Zt:!0}),{displayScrollbar:O,scrollbarProps:L}=F5(C),B=F(()=>{var At,Zt,on,fn;const En=!!((At=e.scroll)!=null&&At.x||(Zt=e.scroll)!=null&&Zt.minWidth),Zn=!!((on=e.scroll)!=null&&on.y||(fn=e.scroll)!=null&&fn.maxHeight);return{x:En,y:Zn}}),j=ue(),H=ue({}),{componentRef:U,elementRef:K}=G1("containerRef"),{componentRef:Y,elementRef:ie}=G1("containerRef"),{elementRef:te}=G1("viewportRef"),{componentRef:W,elementRef:q}=G1("containerRef"),Q=F(()=>se.value?wn.value?te.value:ie.value:K.value),se=F(()=>B.value.y||e.stickyHeader||wn.value||B.value.x&&ce.value.length===0),ae=qt(new Map),re=ue();It([P,ae],([At,Zt])=>{if(At.length>0){const on=[];At.forEach(fn=>{const En=Zt.get(fn);En&&on.push(En)}),re.value=on}else re.value=void 0});const Ce=new Map,Ve=ue([]),ge=ue([]),{resizingColumn:xe,columnWidth:Ge,handleThMouseDown:tt}=wze(H,t);It([r,re,Ge],([At,Zt])=>{var on;const fn=QVe((on=Zt??At)!=null?on:[],Ce,Ge);Ve.value=fn.dataColumns,ge.value=fn.groupColumns},{immediate:!0,deep:!0});const Ue=F(()=>["tl","top","tr"].includes(e.pagePosition)),_e=ue(!1),ve=ue(!1),me=ue(!1);Os(()=>{var At,Zt,on;let fn=!1,En=!1,Zn=!1;((At=e.rowSelection)!=null&&At.fixed||(Zt=e.expandable)!=null&&Zt.fixed||(on=e.draggable)!=null&&on.fixed)&&(fn=!0);for(const Er of Ve.value)Er.fixed==="left"?(fn=!0,Zn=!0):Er.fixed==="right"&&(En=!0);fn!==_e.value&&(_e.value=fn),En!==ve.value&&(ve.value=En),Zn!==me.value&&(me.value=Zn)});const Oe=F(()=>{for(const At of Ve.value)if(At.ellipsis)return!0;return!1}),qe=At=>{const Zt={type:At,page:zr.value,pageSize:oe.value,sorter:Ht.value,filters:ct.value,dragTarget:At==="drag"?An.data:void 0};t("change",Se.value,Zt,sr.value)},Ke=(At,Zt)=>{ft.value={...ct.value,[At]:Zt},t("filterChange",At,Zt),qe("filter")},at=(At,Zt)=>{Rt.value=Zt?{field:At,direction:Zt}:void 0,t("sorterChange",At,Zt),qe("sorter")},{_filters:ft,computedFilters:ct,resetFilters:wt,clearFilters:Ct}=Eze({columns:Ve,onFilterChange:Ke}),{_sorter:Rt,computedSorter:Ht,resetSorters:Jt,clearSorters:rn}=Tze({columns:Ve,onSorterChange:at}),vt=new Set,Fe=F(()=>{const At=[];vt.clear();const Zt=on=>{if(nr(on)&&on.length>0)for(const fn of on)At.push(fn[i.value]),fn.disabled&&vt.add(fn[i.value]),fn.children&&Zt(fn.children)};return Zt(e.data),At}),Me=F(()=>{const At=[],Zt=on=>{for(const fn of on)At.push(fn.key),fn.children&&Zt(fn.children)};return Zt(ce.value),At}),Ee=F(()=>{const At=[],Zt=on=>{for(const fn of on)fn.disabled||At.push(fn.key),fn.children&&Zt(fn.children)};return Zt(ce.value),At}),{selectedRowKeys:We,currentSelectedRowKeys:$e,handleSelect:dt,handleSelectAllLeafs:Qe,handleSelectAll:Le,select:ht,selectAll:Vt,clearSelected:Ut}=sze({selectedKeys:d,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:Me,currentAllEnabledRowKeys:Ee,emit:t}),{expandedRowKeys:Lt,handleExpand:Xt,expand:Dn,expandAll:rr}=aze({expandedKeys:p,defaultExpandedKeys:v,defaultExpandAllRows:g,expandable:s,allRowKeys:Fe,emit:t}),qr=qt({}),Wt=(At,Zt)=>{At&&(qr[Zt.key]=At)},Yt=At=>{var Zt,on;for(const fn of Object.keys(ct.value)){const En=ct.value[fn],Zn=Ce.get(fn);if(Zn&&((Zt=Zn.filterable)!=null&&Zt.filter)&&En.length>0){const Er=(on=Zn.filterable)==null?void 0:on.filter(En,At.raw);if(!Er)return Er}}return!0},{dragType:sn,dragState:An,handleDragStart:un,handleDragEnter:Xn,handleDragover:wr,handleDragEnd:ro,handleDrop:Ot}=Cze(S),bn=F(()=>{var At;const Zt=on=>{const fn=[];for(const En of on){const Zn={raw:En,key:En[e.rowKey],disabled:En.disabled,expand:En.expand,isLeaf:En.isLeaf};En.children?(Zn.isLeaf=!1,Zn.children=Zt(En.children)):e.loadMore&&!En.isLeaf?(Zn.isLeaf=!1,qr[Zn.key]&&(Zn.children=Zt(qr[Zn.key]))):Zn.isLeaf=!0,Zn.hasSubtree=!!(Zn.children?!e.hideExpandButtonOnEmpty||Zn.children.length>0:e.loadMore&&!Zn.isLeaf),fn.push(Zn)}return fn};return Zt((At=e.data)!=null?At:[])}),kr=F(()=>{const At=Zt=>Zt.filter(on=>Yt(on)?(on.children&&(on.children=At(on.children)),!0):!1);return Object.keys(ct.value).length>0?At(bn.value):bn.value}),sr=F(()=>{var At,Zt,on;const fn=mve(kr.value);if(fn.length>0){if((At=Ht.value)!=null&&At.field){const Er=Ce.get(Ht.value.field);if(Er&&((Zt=Er.sortable)==null?void 0:Zt.sorter)!==!0){const{field:ci,direction:Zi}=Ht.value;fn.sort((Ts,Nu)=>{var yc;const Nr=mm(Ts.raw,ci),_r=mm(Nu.raw,ci);if((yc=Er.sortable)!=null&&yc.sorter&&Sn(Er.sortable.sorter))return Er.sortable.sorter(Ts.raw,Nu.raw,{dataIndex:ci,direction:Zi});const mo=Nr>_r?1:-1;return Zi==="descend"?-mo:mo})}}const{sourcePath:En,targetPath:Zn}=An;if(An.dragging&&Zn.length&&Zn.toString()!==En.toString()&&En.length===Zn.length&&En.slice(0,-1).toString()===Zn.slice(0,-1).toString()){let Er=fn;for(let ci=0;ci=En.length-1){const Nu=Er[Zi],yc=Zn[ci];yc>Zi?(Er.splice(yc+1,0,Nu),Er.splice(Zi,1)):(Er.splice(yc,0,Nu),Er.splice(Zi+1,1))}else Er=(on=Er[Zi].children)!=null?on:[]}}}return fn}),{page:zr,pageSize:oe,handlePageChange:ne,handlePageSizeChange:ee}=lze(e,t),J=F(()=>{var At,Zt;return(Zt=(At=a.value)==null?void 0:At.onlyCurrent)!=null?Zt:!1});It(zr,(At,Zt)=>{At!==Zt&&J.value&&Ut()});const ce=F(()=>e.pagination&&sr.value.length>oe.value?sr.value.slice((zr.value-1)*oe.value,zr.value*oe.value):sr.value),Se=F(()=>gve(ce.value)),ke=()=>Ve.value.reduce((At,Zt,on)=>{if(Zt.dataIndex)if(on===0)X8(At,Zt.dataIndex,e.summaryText,{addPath:!0});else{let fn=0,En=!1;ce.value.forEach(Zn=>{if(Zt.dataIndex){const Er=mm(Zn.raw,Zt.dataIndex);et(Er)?fn+=Er:!xn(Er)&&!Al(Er)&&(En=!0)}}),X8(At,Zt.dataIndex,En?"":fn,{addPath:!0})}return At},{}),Ae=At=>At&&At.length>0?At.map(Zt=>({raw:Zt,key:Zt[e.rowKey]})):[],nt=F(()=>e.summary?Sn(e.summary)?Ae(e.summary({columns:Ve.value,data:Se.value})):Ae([ke()]):[]),ot=ue(0),gt=ue(!0),De=ue(!0),st=()=>{let At=!0,Zt=!0;const on=Q.value;on&&(At=ot.value===0,Zt=Math.ceil(ot.value+on.offsetWidth)>=on.scrollWidth),At!==gt.value&&(gt.value=At),Zt!==De.value&&(De.value=Zt)},ut=()=>gt.value&&De.value?`${E}-scroll-position-both`:gt.value?`${E}-scroll-position-left`:De.value?`${E}-scroll-position-right`:`${E}-scroll-position-middle`,Mt=()=>{const At=[];return _e.value&&At.push(`${E}-has-fixed-col-left`),ve.value&&At.push(`${E}-has-fixed-col-right`),At},Qt=At=>{At.target.scrollLeft!==ot.value&&(ot.value=At.target.scrollLeft),st()},Gt=At=>{Qt(At);const{scrollLeft:Zt}=At.target;q.value&&(q.value.scrollLeft=Zt),j.value&&(j.value.scrollLeft=Zt)},pn=(At,Zt)=>{t("rowClick",At.raw,Zt)},mn=(At,Zt)=>{t("rowDblclick",At.raw,Zt)},ln=(At,Zt)=>{t("rowContextmenu",At.raw,Zt)},dr=(At,Zt,on)=>{t("cellClick",At.raw,Zt,on)},tr=o_((At,Zt,on)=>{t("cellMouseEnter",At.raw,Zt,on)},30),_n=o_((At,Zt,on)=>{t("cellMouseLeave",At.raw,Zt,on)},30),Yn=(At,Zt,on)=>{t("cellDblclick",At.raw,Zt,on)},fr=(At,Zt,on)=>{t("cellContextmenu",At.raw,Zt,on)},ir=(At,Zt)=>{t("headerClick",At,Zt)},Ln=F(()=>{var At,Zt;const on=[],fn=_e.value||ve.value;let En,Zn,Er;((At=e.draggable)==null?void 0:At.type)==="handle"&&(En={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||fn},on.push(En)),e.expandable&&(Zn={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||fn},on.push(Zn)),e.rowSelection&&(Er={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||fn},on.push(Er)),!me.value&&on.length>0&&on[on.length-1].fixed&&(on[on.length-1].isLastLeftFixed=!0);const ci=(Zt=e.components)==null?void 0:Zt.operations;return Sn(ci)?ci({dragHandle:En,expand:Zn,selection:Er}):on}),or=F(()=>{var At,Zt,on,fn;if(B.value.x){const En={width:et((At=e.scroll)==null?void 0:At.x)?`${(Zt=e.scroll)==null?void 0:Zt.x}px`:(on=e.scroll)==null?void 0:on.x};return(fn=e.scroll)!=null&&fn.minWidth&&(En.minWidth=et(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),En}}),vr=F(()=>{var At,Zt,on,fn;if(B.value.x&&ce.value.length>0){const En={width:et((At=e.scroll)==null?void 0:At.x)?`${(Zt=e.scroll)==null?void 0:Zt.x}px`:(on=e.scroll)==null?void 0:on.x};return(fn=e.scroll)!=null&&fn.minWidth&&(En.minWidth=et(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),En}});ri(f3,qt({loadMore:l,addLazyLoadData:Wt,slots:n,sorter:Ht,filters:ct,filterIconAlignLeft:c,resizingColumn:xe,checkStrictly:M,currentAllEnabledRowKeys:Ee,currentSelectedRowKeys:$e,addColumn:(At,Zt)=>{ae.set(At,Zt)},removeColumn:At=>{ae.delete(At)},onSelectAll:Le,onSelect:dt,onSelectAllLeafs:Qe,onSorterChange:at,onFilterChange:Ke,onThMouseDown:tt}));const yi=F(()=>[E,`${E}-size-${e.size}`,{[`${E}-border`]:T.value.wrapper,[`${E}-border-cell`]:T.value.cell,[`${E}-border-header-cell`]:!T.value.cell&&T.value.headerCell,[`${E}-border-body-cell`]:!T.value.cell&&T.value.bodyCell,[`${E}-stripe`]:e.stripe,[`${E}-hover`]:e.hoverable,[`${E}-dragging`]:An.dragging,[`${E}-type-selection`]:!!e.rowSelection,[`${E}-empty`]:e.data&&ce.value.length===0,[`${E}-layout-fixed`]:e.tableLayoutFixed||B.value.x||se.value||Oe.value}]),li=F(()=>[`${E}-pagination`,{[`${E}-pagination-left`]:e.pagePosition==="tl"||e.pagePosition==="bl",[`${E}-pagination-center`]:e.pagePosition==="top"||e.pagePosition==="bottom",[`${E}-pagination-right`]:e.pagePosition==="tr"||e.pagePosition==="br",[`${E}-pagination-top`]:Ue.value}]),La=F(()=>{const At=Mt();return B.value.x&&At.push(ut()),se.value&&At.push(`${E}-scroll-y`),At}),wn=F(()=>!!e.virtualListProps),Yr=ue({}),ws=()=>{const At={};for(const Zt of Object.keys(H.value))At[Zt]=H.value[Zt].offsetWidth;Yr.value=At},Fo=ue(!1),Go=()=>ie.value?ie.value.offsetWidth>ie.value.clientWidth:!1,ui=()=>{const At=Go();Fo.value!==At&&(Fo.value=At),st(),ws()};hn(()=>{Fo.value=Go(),ws()});const tu=F(()=>gr(e.loading)?e.loading:{loading:e.loading}),Ll=()=>$(Sh,{empty:!0},{default:()=>[$(i0,{colSpan:Ve.value.length+Ln.value.length},{default:()=>{var At,Zt,on,fn,En;return[(En=(fn=(At=n.empty)==null?void 0:At.call(n))!=null?fn:(on=_==null?void 0:(Zt=_.slots).empty)==null?void 0:on.call(Zt,{component:"table"}))!=null?En:$(Xh,null,null)]}})]}),jo=At=>{var Zt;if(At.expand)return Sn(At.expand)?At.expand():At.expand;if(n["expand-row"])return n["expand-row"]({record:At.raw});if((Zt=e.expandable)!=null&&Zt.expandedRowRender)return e.expandable.expandedRowRender(At.raw)},hc=F(()=>[].concat(Ln.value,Ve.value)),ug=F(()=>e.spanAll?hc.value:Ve.value),{tableSpan:$f,removedCells:nu}=Yre({spanMethod:y,data:ce,columns:ug}),{tableSpan:pc,removedCells:np}=Yre({spanMethod:k,data:nt,columns:hc}),Ns=At=>{if(!(!wn.value||!At||!Yr.value[At]))return{width:`${Yr.value[At]}px`}},Of=(At,Zt)=>$(Sh,{key:`table-summary-${Zt}`,class:[`${E}-tr-summary`,Sn(e.rowClass)?e.rowClass(At.raw,Zt):e.rowClass],onClick:on=>pn(At,on)},{default:()=>[Ln.value.map((on,fn)=>{var En;const Zn=`${Zt}-${fn}-${At.key}`,[Er,ci]=(En=pc.value[Zn])!=null?En:[1,1];if(np.value.includes(Zn))return null;const Zi=Ns(on.name);return $(Gre,{style:Zi,operationColumn:on,operations:Ln.value,record:At,rowSpan:Er,colSpan:ci,summary:!0},null)}),Ve.value.map((on,fn)=>{var En;const Zn=`${Zt}-${Ln.value.length+fn}-${At.key}`,[Er,ci]=(En=pc.value[Zn])!=null?En:[1,1];if(np.value.includes(Zn))return null;const Zi=Ns(on.dataIndex);return $(i0,{key:`td-${Zn}`,style:Zi,rowIndex:Zt,record:At,column:on,operations:Ln.value,dataColumns:Ve.value,rowSpan:Er,colSpan:ci,summary:!0,onClick:Ts=>dr(At,on,Ts),onDblclick:Ts=>Yn(At,on,Ts),onMouseenter:Ts=>tr(At,on,Ts),onMouseleave:Ts=>_n(At,on,Ts),onContextmenu:Ts=>fr(At,on,Ts)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),sd=()=>nt.value&&nt.value.length>0?$("tfoot",null,[nt.value.map((At,Zt)=>Of(At,Zt))]):null,jd=(At,Zt=!0)=>{var on,fn,En,Zn,Er;const ci=At.key,Zi=Lt.value.includes(ci);return $("button",{type:"button",class:`${E}-expand-btn`,onClick:Ts=>{Xt(ci,At.raw),Zt&&Ts.stopPropagation()}},[(Er=(Zn=(on=n["expand-icon"])==null?void 0:on.call(n,{expanded:Zi,record:At.raw}))!=null?Zn:(En=(fn=e.expandable)==null?void 0:fn.icon)==null?void 0:En.call(fn,Zi,At.raw))!=null?Er:$(Zi?$m:Cf,null,null)])},Ou=(At,{indentSize:Zt,indexPath:on,allowDrag:fn,expandContent:En})=>{var Zn,Er;if(At.hasSubtree)return((Zn=At.children)==null?void 0:Zn.length)===0&&x.value?Ll():(Er=At.children)==null?void 0:Er.map((ci,Zi)=>nl(ci,Zi,{indentSize:Zt,indexPath:on,allowDrag:fn}));if(En){const ci=Q.value;return $(Sh,{key:`${At.key}-expand`,expand:!0},{default:()=>[$(i0,{isFixedExpand:_e.value||ve.value,containerWidth:ci?.clientWidth,colSpan:Ve.value.length+Ln.value.length},Aze(En)?En:{default:()=>[En]})]})}return null},nl=(At,Zt,{indentSize:on=0,indexPath:fn,allowDrag:En=!0}={})=>{var Zn;const Er=At.key,ci=(fn??[]).concat(Zt),Zi=jo(At),Ts=Lt.value.includes(Er),Nu=An.sourceKey===At.key,yc=sn.value?{draggable:En,onDragstart:_r=>{En&&un(_r,At.key,ci,At.raw)},onDragend:_r=>{En&&ro(_r)}}:{},Nr=sn.value?{onDragenter:_r=>{En&&Xn(_r,ci)},onDragover:_r=>{En&&wr(_r)},onDrop:_r=>{En&&(qe("drag"),Ot(_r))}}:{};return $(Pt,null,[$(Sh,Ft({key:Er,class:[{[`${E}-tr-draggable`]:sn.value==="row",[`${E}-tr-drag`]:Nu},Sn(e.rowClass)?e.rowClass(At.raw,Zt):e.rowClass],rowIndex:Zt,record:At,checked:e.rowSelection&&((Zn=We.value)==null?void 0:Zn.includes(Er)),onClick:_r=>pn(At,_r),onDblclick:_r=>mn(At,_r),onContextmenu:_r=>ln(At,_r)},sn.value==="row"?yc:{},Nr),{default:()=>[Ln.value.map((_r,mo)=>{var Da;const ai=`${Zt}-${mo}-${At.key}`,[Pa,Mn]=e.spanAll?(Da=$f.value[ai])!=null?Da:[1,1]:[1,1];if(e.spanAll&&nu.value.includes(ai))return null;const Fu=Ns(_r.name);return $(Gre,Ft({key:`operation-td-${mo}`,style:Fu,operationColumn:_r,operations:Ln.value,record:At,hasExpand:!!Zi,selectedRowKeys:$e.value,rowSpan:Pa,colSpan:Mn,renderExpandBtn:jd},sn.value==="handle"?yc:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),Ve.value.map((_r,mo)=>{var Da;const ai=`${Zt}-${e.spanAll?Ln.value.length+mo:mo}-${At.key}`,[Pa,Mn]=(Da=$f.value[ai])!=null?Da:[1,1];if(nu.value.includes(ai))return null;const Fu=mo===0?{showExpandBtn:At.hasSubtree,indentSize:At.hasSubtree?on-20:on}:{},PS=Ns(_r.dataIndex);return $(i0,Ft({key:`td-${mo}`,style:PS,rowIndex:Zt,record:At,column:_r,operations:Ln.value,dataColumns:Ve.value,rowSpan:Pa,renderExpandBtn:jd,colSpan:Mn},Fu,{onClick:Fs=>dr(At,_r,Fs),onDblclick:Fs=>Yn(At,_r,Fs),onMouseenter:Fs=>tr(At,_r,Fs),onMouseleave:Fs=>_n(At,_r,Fs),onContextmenu:Fs=>fr(At,_r,Fs)}),{td:n.td})})],tr:n.tr}),Ts&&Ou(At,{indentSize:on+e.indentSize,indexPath:ci,allowDrag:En&&!Nu,expandContent:Zi})])},Es=()=>{const At=ce.value.some(Zt=>!!Zt.hasSubtree);return $(pb,null,{default:()=>[ce.value.length>0?ce.value.map((Zt,on)=>nl(Zt,on,{indentSize:At?20:0})):Ll()],tbody:n.tbody})},rp=()=>$(hb,null,{default:()=>[ge.value.map((At,Zt)=>$(Sh,{key:`header-row-${Zt}`},{default:()=>[Zt===0&&Ln.value.map((on,fn)=>{var En;return $(xze,{key:`operation-th-${fn}`,ref:Zn=>{Zn?.$el&&on.name&&(H.value[on.name]=Zn.$el)},operationColumn:on,operations:Ln.value,selectAll:!!(on.name==="selection-checkbox"&&((En=e.rowSelection)!=null&&En.showCheckedAll)),rowSpan:ge.value.length},null)}),At.map((on,fn)=>{const En=e.columnResizable&&!!on.dataIndex&&fn{Zn?.$el&&on.dataIndex&&(H.value[on.dataIndex]=Zn.$el)},column:on,operations:Ln.value,dataColumns:Ve.value,resizable:En,onClick:Zn=>ir(on,Zn)},{th:n.th})})]}))],thead:n.thead}),vc=()=>{var At,Zt;if(se.value){const on=et(e.stickyHeader)?`${e.stickyHeader}px`:void 0,fn=[(At=L.value)==null?void 0:At.outerClass];e.stickyHeader&&fn.push(`${E}-header-sticky`);const En={top:on,...(Zt=L.value)==null?void 0:Zt.outerStyle},Zn=O.value?Rd:"div";return $(Pt,null,[e.showHeader&&$(Zn,Ft({ref:W,class:[`${E}-header`,{[`${E}-header-sticky`]:e.stickyHeader&&!O.value}],style:{overflowY:Fo.value?"scroll":void 0,top:O.value?void 0:on}},C.value?{hide:ce.value.length!==0,disableVertical:!0,...L.value,outerClass:fn,outerStyle:En}:void 0),{default:()=>[$("table",{class:`${E}-element`,style:or.value,cellpadding:0,cellspacing:0},[$(Ax,{dataColumns:Ve.value,operations:Ln.value,columnWidth:Ge},null),rp()])]}),$(Dd,{onResize:ui},{default:()=>{var Er,ci;return[wn.value&&ce.value.length?$(c3,Ft({ref:Zi=>{Zi?.$el&&(ie.value=Zi.$el)},class:`${E}-body`,data:ce.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${E}-element`,style:vr.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:Gt}),{item:({item:Zi,index:Ts})=>nl(Zi,Ts)}):$(Zn,Ft({ref:Y,class:`${E}-body`,style:{maxHeight:et((Er=e.scroll)==null?void 0:Er.y)?`${(ci=e.scroll)==null?void 0:ci.y}px`:"100%"}},C.value?{outerStyle:{display:"flex",minHeight:"0"},...L.value}:void 0,{onScroll:Gt}),{default:()=>[$("table",{class:`${E}-element`,style:vr.value,cellpadding:0,cellspacing:0},[ce.value.length!==0&&$(Ax,{dataColumns:Ve.value,operations:Ln.value,columnWidth:Ge},null),Es()])]})]}}),nt.value&&nt.value.length>0&&$("div",{ref:j,class:`${E}-tfoot`,style:{overflowY:Fo.value?"scroll":"hidden"}},[$("table",{class:`${E}-element`,style:vr.value,cellpadding:0,cellspacing:0},[$(Ax,{dataColumns:Ve.value,operations:Ln.value,columnWidth:Ge},null),sd()])])])}return $(Dd,{onResize:()=>st()},{default:()=>[$("table",{class:`${E}-element`,cellpadding:0,cellspacing:0,style:vr.value},[$(Ax,{dataColumns:Ve.value,operations:Ln.value,columnWidth:Ge},null),e.showHeader&&rp(),Es(),nt.value&&nt.value.length>0&&sd()])]})},mc=At=>{var Zt;const on=(Zt=e.scroll)!=null&&Zt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,fn=O.value?Rd:"div";return $(Pt,null,[$("div",{class:[`${E}-container`,La.value]},[$(fn,Ft({ref:U,class:[`${E}-content`,{[`${E}-content-scroll-x`]:!se.value}],style:on},C.value?{outerStyle:{height:"100%"},...L.value}:void 0,{onScroll:Qt}),{default:()=>[At?$("table",{class:`${E}-element`,cellpadding:0,cellspacing:0},[At()]):vc()]})]),n.footer&&$("div",{class:`${E}-footer`},[n.footer()])])},Bu=()=>{var At,Zt;const on=gr(e.pagination)?Ea(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return $("div",{class:li.value},[(At=n["pagination-left"])==null?void 0:At.call(n),$(OH,Ft({total:kr.value.length,current:zr.value,pageSize:oe.value,onChange:fn=>{ne(fn),qe("pagination")},onPageSizeChange:fn=>{ee(fn),qe("pagination")}},on),null),(Zt=n["pagination-right"])==null?void 0:Zt.call(n)])},gc=F(()=>{var At,Zt;if(ds((At=e.scroll)==null?void 0:At.y))return{height:(Zt=e.scroll)==null?void 0:Zt.y}});return{render:()=>{var At;return n.default?$("div",{class:yi.value},[mc(n.default)]):(D.value=(At=n.columns)==null?void 0:At.call(n),$("div",{class:yi.value,style:gc.value},[D.value,$(Pd,tu.value,{default:()=>[e.pagination!==!1&&(ce.value.length>0||sr.value.length>0)&&Ue.value&&Bu(),mc(),e.pagination!==!1&&(ce.value.length>0||sr.value.length>0)&&!Ue.value&&Bu()]})]))},selfExpand:Dn,selfExpandAll:rr,selfSelect:ht,selfSelectAll:Vt,selfResetFilters:wt,selfClearFilters:Ct,selfResetSorters:Jt,selfClearSorters:rn}},methods:{selectAll(e){return this.selfSelectAll(e)},select(e,t){return this.selfSelect(e,t)},expandAll(e){return this.selfExpandAll(e)},expand(e,t){return this.selfExpand(e,t)},resetFilters(e){return this.selfResetFilters(e)},clearFilters(e){return this.selfClearFilters(e)},resetSorters(){return this.selfResetSorters()},clearSorters(){return this.selfClearSorters()}},render(){return this.render()}});const dd=(e,t)=>{const n=Du(e,t),r=ue(n.value);return It(n,(i,a)=>{u3(i,a)||(r.value=i)}),r};var Qw=we({name:"TableColumn",props:{dataIndex:String,title:String,width:Number,minWidth:Number,align:{type:String},fixed:{type:String},ellipsis:{type:Boolean,default:!1},sortable:{type:Object,default:void 0},filterable:{type:Object,default:void 0},cellClass:{type:[String,Array,Object]},headerCellClass:{type:[String,Array,Object]},bodyCellClass:{type:[String,Array,Object,Function]},summaryCellClass:{type:[String,Array,Object,Function]},cellStyle:{type:Object},headerCellStyle:{type:Object},bodyCellStyle:{type:[Object,Function]},summaryCellStyle:{type:[Object,Function]},index:{type:Number},tooltip:{type:[Boolean,Object],default:!1}},setup(e,{slots:t}){var n;const{dataIndex:r,title:i,width:a,align:s,fixed:l,ellipsis:c,index:d,minWidth:h}=tn(e),p=dd(e,"sortable"),v=dd(e,"filterable"),g=dd(e,"cellClass"),y=dd(e,"headerCellClass"),S=dd(e,"bodyCellClass"),k=dd(e,"summaryCellClass"),C=dd(e,"cellStyle"),x=dd(e,"headerCellStyle"),E=dd(e,"bodyCellStyle"),_=dd(e,"summaryCellStyle"),T=dd(e,"tooltip"),D=So(),P=Pn(f3,{}),M=Pn(Hre,void 0),{children:O,components:L}=nS("TableColumn"),B=qt(new Map);ri(Hre,{addChild:(Y,ie)=>{B.set(Y,ie)},removeChild:Y=>{B.delete(Y)}});const U=ue();It([L,B],([Y,ie])=>{if(Y.length>0){const te=[];Y.forEach(W=>{const q=ie.get(W);q&&te.push(q)}),U.value=te}else U.value=void 0});const K=qt({dataIndex:r,title:i,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:v,cellClass:g,headerCellClass:y,bodyCellClass:S,summaryCellClass:k,cellStyle:C,headerCellStyle:x,bodyCellStyle:E,summaryCellStyle:_,index:d,tooltip:T,children:U,slots:t});return D&&(M?M.addChild(D.uid,K):(n=P.addColumn)==null||n.call(P,D.uid,K)),_o(()=>{var Y;D&&(M?M.removeChild(D.uid):(Y=P.removeColumn)==null||Y.call(P,D.uid))}),()=>{var Y;return O.value=(Y=t.default)==null?void 0:Y.call(t),O.value}}});const Ize=Object.assign(wM,{Thead:hb,Tbody:pb,Tr:Sh,Th:vb,Td:i0,Column:Qw,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+wM.name,wM),e.component(n+hb.name,hb),e.component(n+pb.name,pb),e.component(n+Sh.name,Sh),e.component(n+vb.name,vb),e.component(n+i0.name,i0),e.component(n+Qw.name,Qw)}}),Lze=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},Dze=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},GH=Symbol("ArcoTabs"),Pze=we({name:"TabsTab",components:{IconHover:Lo,IconClose:fs},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Re("tabs-tab"),r=Pn(GH,{}),i=d=>{e.tab.disabled||t("click",e.tab.key,d)},a=d=>{d.key==="Enter"&&i(d)},s=F(()=>Object.assign(r.trigger==="click"?{onClick:i}:{onMouseover:i},{onKeydown:a})),l=d=>{e.tab.disabled||t("delete",e.tab.key,d)},c=F(()=>[n,{[`${n}-active`]:e.active,[`${n}-closable`]:e.editable&&e.tab.closable,[`${n}-disabled`]:e.tab.disabled}]);return{prefixCls:n,cls:c,eventHandlers:s,handleDelete:l}}});function Rze(e,t,n,r,i,a){const s=Te("icon-close"),l=Te("icon-hover");return z(),X("div",Ft({tabindex:"0",class:e.cls},e.eventHandlers),[I("span",{class:de(`${e.prefixCls}-title`)},[mt(e.$slots,"default")],2),e.editable&&e.tab.closable?(z(),Ze(l,{key:0,class:de(`${e.prefixCls}-close-btn`),onClick:cs(e.handleDelete,["stop"])},{default:fe(()=>[$(s)]),_:1},8,["class","onClick"])):Ie("v-if",!0)],16)}var Mze=ze(Pze,[["render",Rze]]);function $ze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var Zre=we({name:"TabsButton",props:{type:{type:String,default:"next"},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},onClick:{type:Function}},emits:["click"],setup(e,{emit:t}){const n=Re("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},i=()=>e.direction==="horizontal"?e.type==="next"?$(Hi,null,null):$(Il,null,null):e.type==="next"?$(Zh,null,null):$(tS,null,null),a=F(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-left`]:e.direction==="horizontal"&&e.type==="previous",[`${n}-right`]:e.direction==="horizontal"&&e.type==="next",[`${n}-up`]:e.direction==="vertical"&&e.type==="previous",[`${n}-down`]:e.direction==="vertical"&&e.type==="next"}]);return()=>{let s;return $("div",{class:a.value,onClick:r},[$(Lo,{disabled:e.disabled},$ze(s=i())?s:{default:()=>[s]})])}}});const Oze=we({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=tn(e),n=Re("tabs-nav-ink"),r=ue(0),i=ue(0),a=F(()=>e.direction==="vertical"?{top:`${r.value}px`,height:`${i.value}px`}:{left:`${r.value}px`,width:`${i.value}px`}),s=()=>{if(t.value){const c=e.direction==="vertical"?t.value.offsetTop:t.value.offsetLeft,d=e.direction==="vertical"?t.value.offsetHeight:t.value.offsetWidth;(c!==r.value||d!==i.value)&&(r.value=c,i.value=d)}};hn(()=>{dn(()=>s())}),tl(()=>{s()});const l=F(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function Bze(e,t,n,r,i,a){return z(),X("div",{class:de(e.cls),style:Ye(e.style)},null,6)}var Nze=ze(Oze,[["render",Bze]]),Fze=we({name:"TabsNav",props:{tabs:{type:Array,required:!0},direction:{type:String,required:!0},type:{type:String,required:!0},activeKey:{type:[String,Number]},activeIndex:{type:Number,required:!0},position:{type:String,required:!0},size:{type:String,required:!0},showAddButton:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},animation:{type:Boolean,required:!0},headerPadding:{type:Boolean,default:!0},scrollPosition:{type:String,default:"auto"}},emits:["click","add","delete"],setup(e,{emit:t,slots:n}){const{tabs:r,activeKey:i,activeIndex:a,direction:s,scrollPosition:l}=tn(e),c=Re("tabs-nav"),d=ue(),h=ue(),p=ue({}),v=F(()=>{if(!xn(i.value))return p.value[i.value]}),g=ue(),y=F(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),S=ue(!1),k=ue(0),C=ue(0),x=ue(0),E=()=>{var W,q,Q;return(Q=s.value==="vertical"?(W=d.value)==null?void 0:W.offsetHeight:(q=d.value)==null?void 0:q.offsetWidth)!=null?Q:0},_=()=>!h.value||!d.value?0:s.value==="vertical"?h.value.offsetHeight-d.value.offsetHeight:h.value.offsetWidth-d.value.offsetWidth,T=()=>{S.value=D(),S.value?(k.value=E(),C.value=_(),x.value>C.value&&(x.value=C.value)):x.value=0},D=()=>d.value&&h.value?e.direction==="vertical"?h.value.offsetHeight>d.value.offsetHeight:h.value.offsetWidth>d.value.offsetWidth:!1,P=W=>{(!d.value||!h.value||W<0)&&(W=0),x.value=Math.min(W,C.value)},M=()=>{if(!v.value||!d.value||!S.value)return;Dze(d.value,s.value);const W=s.value==="horizontal",q=W?"offsetLeft":"offsetTop",Q=W?"offsetWidth":"offsetHeight",se=v.value[q],ae=v.value[Q],re=d.value[Q],Ce=window.getComputedStyle(v.value),Ve=W?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",ge=parseFloat(Ce[Ve])||0;l.value==="auto"?sex.value+re&&P(se+ae-re+ge):l.value==="center"?P(se+(ae-re+ge)/2):l.value==="start"?P(se-ge):l.value==="end"?P(se+ae-re+ge):et(l.value)&&P(se-l.value)},O=W=>{if(!S.value)return;W.preventDefault();const{deltaX:q,deltaY:Q}=W;Math.abs(q)>Math.abs(Q)?P(x.value+q):P(x.value+Q)},L=(W,q)=>{t("click",W,q)},B=(W,q)=>{t("delete",W,q),dn(()=>{delete p.value[W]})},j=W=>{const q=W==="previous"?x.value-k.value:x.value+k.value;P(q)},H=()=>{T(),g.value&&g.value.$forceUpdate()};It(r,()=>{dn(()=>{T()})}),It([a,l],()=>{setTimeout(()=>{M()},0)}),hn(()=>{T(),d.value&&Mi(d.value,"wheel",O,{passive:!1})}),ii(()=>{d.value&&no(d.value,"wheel",O)});const U=()=>!y.value||!e.showAddButton?null:$("div",{class:`${c}-add-btn`,onClick:W=>t("add",W)},[$(Lo,null,{default:()=>[$(Cf,null,null)]})]),K=F(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),Y=F(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),ie=F(()=>Lze({direction:e.direction,type:e.type,offset:x.value})),te=F(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var W;return $("div",{class:K.value},[S.value&&$(Zre,{type:"previous",direction:e.direction,disabled:x.value<=0,onClick:j},null),$(Dd,{onResize:()=>T()},{default:()=>[$("div",{class:te.value,ref:d},[$(Dd,{onResize:H},{default:()=>[$("div",{ref:h,class:Y.value,style:ie.value},[e.tabs.map((q,Q)=>$(Mze,{key:q.key,ref:se=>{se?.$el&&(p.value[q.key]=se.$el)},active:q.key===i.value,tab:q,editable:e.editable,onClick:L,onDelete:B},{default:()=>{var se,ae,re;return[(re=(ae=(se=q.slots).title)==null?void 0:ae.call(se))!=null?re:q.title]}})),e.type==="line"&&v.value&&$(Nze,{ref:g,activeTabRef:v.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&U()])]}),S.value&&$(Zre,{type:"next",direction:e.direction,disabled:x.value>=C.value,onClick:j},null),$("div",{class:`${c}-extra`},[S.value&&U(),(W=n.extra)==null?void 0:W.call(n)])])}}}),EM=we({name:"Tabs",props:{activeKey:{type:[String,Number],default:void 0},defaultActiveKey:{type:[String,Number],default:void 0},position:{type:String,default:"top"},size:{type:String},type:{type:String,default:"line"},direction:{type:String,default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destroyOnHide:{type:Boolean,default:!1},lazyLoad:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{type:String,default:"click"},scrollPosition:{type:[String,Number],default:"auto"}},emits:{"update:activeKey":e=>!0,change:e=>!0,tabClick:(e,t)=>!0,add:e=>!0,delete:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r,lazyLoad:i,destroyOnHide:a,trigger:s}=tn(e),l=Re("tabs"),{mergedSize:c}=Aa(r),d=F(()=>e.direction==="vertical"?"left":e.position),h=F(()=>["left","right"].includes(d.value)?"vertical":"horizontal"),{children:p,components:v}=nS("TabPane"),g=qt(new Map),y=F(()=>{const B=[];return v.value.forEach(j=>{const H=g.get(j);H&&B.push(H)}),B}),S=F(()=>y.value.map(B=>B.key)),k=(B,j)=>{g.set(B,j)},C=B=>{g.delete(B)},x=ue(e.defaultActiveKey),E=F(()=>{var B;const j=(B=e.activeKey)!=null?B:x.value;return xn(j)?S.value[0]:j}),_=F(()=>{const B=S.value.indexOf(E.value);return B===-1?0:B});ri(GH,qt({lazyLoad:i,destroyOnHide:a,activeKey:E,addItem:k,removeItem:C,trigger:s}));const T=B=>{B!==E.value&&(x.value=B,t("update:activeKey",B),t("change",B))},D=(B,j)=>{T(B),t("tabClick",B,j)},P=B=>{t("add",B),e.autoSwitch&&dn(()=>{const j=S.value[S.value.length-1];T(j)})},M=(B,j)=>{t("delete",B,j)},O=()=>$("div",{class:[`${l}-content`,{[`${l}-content-hide`]:e.hideContent}]},[$("div",{class:[`${l}-content-list`,{[`${l}-content-animation`]:e.animation}],style:{marginLeft:`-${_.value*100}%`}},[p.value])]),L=F(()=>[l,`${l}-${h.value}`,`${l}-${d.value}`,`${l}-type-${e.type}`,`${l}-size-${c.value}`,{[`${l}-justify`]:e.justify}]);return()=>{var B;return p.value=(B=n.default)==null?void 0:B.call(n),$("div",{class:L.value},[d.value==="bottom"&&O(),$(Fze,{tabs:y.value,activeKey:E.value,activeIndex:_.value,direction:h.value,position:d.value,editable:e.editable,animation:e.animation,showAddButton:e.showAddButton,headerPadding:e.headerPadding,scrollPosition:e.scrollPosition,size:c.value,type:e.type,onClick:D,onAdd:P,onDelete:M},{extra:n.extra}),d.value!=="bottom"&&O()])}}});const jze=we({name:"TabPane",props:{title:String,disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const{title:r,disabled:i,closable:a}=tn(e),s=So(),l=Re("tabs"),c=Pn(GH,{}),d=ue(),h=F(()=>s?.vnode.key),p=F(()=>h.value===c.activeKey),v=ue(c.lazyLoad?p.value:!0),g=qt({key:h,title:r,disabled:i,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),_o(()=>{var y;s?.uid&&((y=c.removeItem)==null||y.call(c,s.uid))}),It(p,y=>{y?v.value||(v.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(v.value=!1)}),tl(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:d,mounted:v}}});function Vze(e,t,n,r,i,a){return z(),X("div",{ref:"itemRef",class:de([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(z(),X("div",{key:0,class:de(`${e.prefixCls}-pane`)},[mt(e.$slots,"default")],2)):Ie("v-if",!0)],2)}var eE=ze(jze,[["render",Vze]]);const zze=Object.assign(EM,{TabPane:eE,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+EM.name,EM),e.component(n+eE.name,eE)}});function Uze(e){const{modelValue:t,defaultValue:n,format:r,isRange:i}=tn(e);function a(){return i.value?[]:void 0}function s(k){if(!xn(k))return i.value?nr(k)?k:[k,void 0]:k}const l=F(()=>{const k=s(t.value);return dc(k,r.value)}),c=F(()=>{const k=s(n.value);return dc(k,r.value)}),[d,h]=Ya(xn(l.value)?xn(c.value)?a():c.value:l.value);It(l,()=>{xn(l.value)&&h(a())});const p=F(()=>l.value||d.value),[v,g]=Ya(p.value);It([p],()=>{g(p.value)});const[y,S]=Ya();return It([v],()=>{S(void 0)}),{computedValue:p,panelValue:v,inputValue:y,setValue:h,setPanelValue:g,setInputValue:S}}var Hze=we({name:"TimePickerRangePanel",components:{Panel:q8},props:{value:{type:Array},displayIndex:{type:Number,default:0}},emits:["select","confirm","update:displayIndex","display-index-change"],setup(e,{emit:t}){const{value:n,displayIndex:r}=tn(e),i=ue(r.value);It(r,()=>{i.value=r.value});const a=F(()=>n?.value?n.value[i.value]:void 0);function s(c){const d=xn(n)||xn(n?.value)?[]:[...n.value];d[i.value]=c,t("select",d)}function l(){if(D4(n?.value))t("confirm",n?.value);else{const c=(i.value+1)%2;i.value=c,t("display-index-change",c),t("update:displayIndex",c)}}return{displayValue:a,onSelect:s,onConfirm:l}},render(){const e={...this.$attrs,isRange:!0,value:this.displayValue,onSelect:this.onSelect,onConfirm:this.onConfirm};return $(q8,e,this.$slots)}});const Wze=we({name:"TimePicker",components:{Trigger:va,DateInput:r0e,DateRangeInput:k0e,Panel:q8,RangePanel:Hze,IconClockCircle:l_},inheritAttrs:!1,props:{type:{type:String,default:"time"},modelValue:{type:[String,Number,Date,Array]},defaultValue:{type:[String,Number,Date,Array]},disabled:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Array]},size:{type:String},popupContainer:{type:[String,Object]},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},disableConfirm:{type:Boolean},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean}},emits:{change:(e,t)=>!0,"update:modelValue":e=>!0,select:(e,t)=>!0,clear:()=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0},setup(e,{emit:t}){const{type:n,format:r,use12Hours:i,modelValue:a,defaultValue:s,popupVisible:l,defaultPopupVisible:c,disabled:d,placeholder:h,disableConfirm:p,disabledHours:v,disabledMinutes:g,disabledSeconds:y}=tn(e),{mergedDisabled:S,eventHandlers:k}=Do({disabled:d}),C=F(()=>n.value==="time-range"),x=Re("timepicker"),E=ue(),{format:_,use12Hours:T}=AH(qt({format:r,use12Hours:i})),{computedValue:D,panelValue:P,inputValue:M,setValue:O,setPanelValue:L,setInputValue:B}=Uze(qt({modelValue:a,defaultValue:s,isRange:C,format:_})),[j,H]=pa(c.value,qt({value:l})),U=me=>{me!==j.value&&(H(me),t("popup-visible-change",me),t("update:popupVisible",me))},{t:K}=No(),[Y,ie]=Ya(0),te=F(()=>{const me=h?.value;return C.value?xn(me)?K("datePicker.rangePlaceholder.time"):nr(me)?me:[me,me]:xn(me)?K("datePicker.placeholder.time"):me}),W=u0e(qt({disabledHours:v,disabledMinutes:g,disabledSeconds:y}));function q(me){var Oe,qe;if(yH(me,D.value)){const Ke=ff(me,_.value),at=Cu(me);t("update:modelValue",Ke),t("change",Ke,at),(qe=(Oe=k.value)==null?void 0:Oe.onChange)==null||qe.call(Oe)}}function Q(me,Oe){if(W(me))return;let qe=me;if(nr(me)){const Ke=Ms();qe=me.map(at=>(at&&(at=at.year(Ke.year()),at=at.month(Ke.month()),at=at.date(Ke.date())),at)),D4(qe)&&(qe=i_(qe)),qe?.length===0&&(qe=void 0)}q(qe),O(qe),Oe!==j.value&&U(Oe)}function se(me,Oe){L(me),Oe!==j.value&&U(Oe)}function ae(me){E.value&&E.value.focus&&E.value.focus(me)}function re(me){S.value||(U(me),me&&dn(()=>{ae(Y.value)}))}function Ce(me){const Oe=ff(me,_.value),qe=Cu(me);t("select",Oe,qe),p.value&&(!C.value||D4(me))?Q(me,!0):(se(me,!0),B(void 0))}function Ve(me){Q(me,!1)}function ge(){Q(P.value||D.value,!1)}function xe(){if(D4(P.value))Q(P.value,!1);else{const me=(Y.value+1)%2;ie(me),ae(me)}}function Ge(me){U(!0);const Oe=me.target.value;if(B(Oe),!K8(Oe,_.value))return;const qe=Ms(Oe,_.value);W(qe)||(p.value?Q(qe,!0):se(qe,!0))}function tt(me){U(!0);const Oe=me.target.value,qe=nr(M.value)?[...M.value]:nr(P.value)&&ff(P.value,_.value)||[];if(qe[Y.value]=Oe,B(qe),!K8(Oe,_.value))return;const Ke=Ms(Oe,_.value);if(W(Ke))return;const at=nr(P.value)?[...P.value]:[];at[Y.value]=Ke,p.value&&D4(at)?Q(at,!0):se(at,!0)}function Ue(me){me.stopPropagation(),L(void 0),Q(void 0,C.value)}It(j,(me,Oe)=>{me!==Oe&&L(D.value),me||B(void 0)});const _e=F(()=>C.value?{focusedIndex:Y.value,onFocusedIndexChange:me=>{ie(me)},onChange:tt,onPressEnter:xe}:{onChange:Ge,onPressEnter:ge}),ve=F(()=>C.value?{displayIndex:Y.value,onDisplayIndexChange:me=>{ie(me),ae(me)}}:{});return{refInput:E,isRange:C,prefixCls:x,panelVisible:j,focusedInputIndex:Y,computedPlaceholder:te,panelValue:P,inputValue:M,computedFormat:_,computedUse12Hours:T,inputProps:_e,panelProps:ve,mergedDisabled:S,onPanelVisibleChange:re,onInputClear:Ue,onPanelSelect:Ce,onPanelConfirm:Ve,onPanelClick:()=>{ae(Y.value)}}}});function Gze(e,t,n,r,i,a){const s=Te("IconClockCircle"),l=Te("Trigger");return z(),Ze(l,Ft({trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,position:e.position,disabled:e.mergedDisabled||e.readonly,"popup-offset":4,"popup-visible":e.panelVisible,"prevent-focus":!0,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer},{...e.triggerProps},{onPopupVisibleChange:e.onPanelVisibleChange}),{content:fe(()=>[I("div",{class:de(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(z(),Ze(wa(e.isRange?"RangePanel":"Panel"),Ft(e.panelProps,{value:e.panelValue,visible:e.panelVisible,format:e.computedFormat,"use12-hours":e.computedUse12Hours,step:e.step,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions,"hide-footer":e.disableConfirm,onSelect:e.onPanelSelect,onConfirm:e.onPanelConfirm}),yo({_:2},[e.$slots.extra?{name:"extra-footer",fn:fe(()=>[mt(e.$slots,"extra")]),key:"0"}:void 0]),1040,["value","visible","format","use12-hours","step","disabled-hours","disabled-minutes","disabled-seconds","hide-disabled-options","hide-footer","onSelect","onConfirm"]))],2)]),default:fe(()=>[(z(),Ze(wa(e.isRange?"DateRangeInput":"DateInput"),Ft({...e.$attrs,...e.inputProps},{ref:"refInput","input-value":e.inputValue,value:e.panelValue,size:e.size,focused:e.panelVisible,format:e.computedFormat,visible:e.panelVisible,disabled:e.mergedDisabled,error:e.error,readonly:e.readonly,editable:!e.readonly,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,onClear:e.onInputClear}),yo({"suffix-icon":fe(()=>[mt(e.$slots,"suffix-icon",{},()=>[$(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:fe(()=>[mt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["input-value","value","size","focused","format","visible","disabled","error","readonly","editable","allow-clear","placeholder","onClear"]))]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"])}var TM=ze(Wze,[["render",Gze]]);const Kze=Object.assign(TM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+TM.name,TM)}}),_ve=Symbol("ArcoTimeline"),qze=(e,t,n,r)=>{let i=["left","right"];n==="horizontal"&&(i=["top","bottom"]);const a=t==="alternate"?r||i[e%2]:t;return i.indexOf(a)>-1?a:i[0]},Yze=we({name:"TimelineItem",props:{dotColor:{type:String},dotType:{type:String,default:"solid"},lineType:{type:String,default:"solid"},lineColor:{type:String},label:{type:String},position:{type:String}},setup(e){const t=Re("timeline-item"),n=So(),r=Pn(_ve,{}),i=F(()=>{var v,g,y;return(y=(g=r.items)==null?void 0:g.indexOf((v=n?.uid)!=null?v:-1))!=null?y:-1}),a=F(()=>{var v;return(v=r?.direction)!=null?v:"vertical"}),s=F(()=>{var v;return(v=r?.labelPosition)!=null?v:"same"}),l=F(()=>{const{items:v=[],reverse:g,labelPosition:y,mode:S="left"}=r,k=a.value,C=qze(i.value,S,k,e.position);return[t,{[`${t}-${k}-${C}`]:k,[`${t}-label-${y}`]:y,[`${t}-last`]:i.value===(g===!0?0:v.length-1)}]}),c=F(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),d=F(()=>{const{direction:v}=r||{};return{[v==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=F(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=F(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:d,computedDotStyle:p,labelPosition:s}}});function Xze(e,t,n,r,i,a){return z(),X("div",{role:"listitem",class:de(e.cls)},[I("div",{class:de(`${e.prefixCls}-dot-wrapper`)},[I("div",{class:de(e.dotLineCls),style:Ye(e.computedDotLineStyle)},null,6),I("div",{class:de(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(z(),X("div",{key:0,class:de(`${e.prefixCls}-dot-custom`)},[mt(e.$slots,"dot")],2)):(z(),X("div",{key:1,class:de(e.dotTypeCls),style:Ye(e.computedDotStyle)},null,6))],2)],2),I("div",{class:de(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(z(),X("div",{key:0,class:de(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2)):Ie("v-if",!0),e.labelPosition!=="relative"?(z(),X("div",{key:1,class:de(`${e.prefixCls}-label`)},[e.$slots.label?mt(e.$slots,"label",{key:0}):(z(),X(Pt,{key:1},[He(Ne(e.label),1)],64))],2)):Ie("v-if",!0)],2),e.labelPosition==="relative"?(z(),X("div",{key:0,class:de(`${e.prefixCls}-label`)},[e.$slots.label?mt(e.$slots,"label",{key:0}):(z(),X(Pt,{key:1},[He(Ne(e.label),1)],64))],2)):Ie("v-if",!0)],2)}var fy=ze(Yze,[["render",Xze]]),AM=we({name:"Timeline",components:{Item:fy,Spin:Pd},props:{reverse:{type:Boolean},direction:{type:String,default:"vertical"},mode:{type:String,default:"left"},pending:{type:[Boolean,String]},labelPosition:{type:String,default:"same"}},setup(e,{slots:t}){const n=Re("timeline"),r=F(()=>e.pending||t.pending),{children:i,components:a}=nS("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:d}=tn(e),h=qt({items:a,direction:l,reverse:s,labelPosition:c,mode:d});ri(_ve,h);const p=F(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var v,g;return r.value?i.value=(v=t.default)==null?void 0:v.call(t).concat($(fy,{lineType:"dashed"},{default:()=>[e.pending!==!0&&$("div",null,[e.pending])],dot:()=>{var y,S;return(S=(y=t.dot)==null?void 0:y.call(t))!=null?S:$(Pd,{size:12},null)}})):i.value=(g=t.default)==null?void 0:g.call(t),$("div",{role:"list",class:p.value},[i.value])}}});const Zze=Object.assign(AM,{Item:fy,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+AM.name,AM),e.component(n+fy.name,fy)}}),Jze=we({name:"IconDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qze=["stroke-width","stroke-linecap","stroke-linejoin"];function eUe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1)]),14,Qze)}var IM=ze(Jze,[["render",eUe]]);const Pu=Object.assign(IM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IM.name,IM)}}),KH=Symbol("ArcoTransfer");var tUe=we({name:"TransferListItem",props:{type:{type:String},data:{type:Object,required:!0},allowClear:{type:Boolean},disabled:{type:Boolean},draggable:{type:Boolean},simple:Boolean},setup(e){const t=Re("transfer-list-item"),n=Pn(KH,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},i=F(()=>[t,{[`${t}-disabled`]:e.disabled,[`${t}-draggable`]:e.draggable}]),a=()=>{n?.moveTo([e.data.value],"source")};return()=>{var s,l,c;return $("div",{class:i.value,onClick:r},[e.allowClear||e.simple?$("span",{class:`${t}-content`},[(c=(l=n==null?void 0:(s=n.slots).item)==null?void 0:l.call(s,{label:e.data.label,value:e.data.value}))!=null?c:e.data.label]):$(Wc,{class:[`${t}-content`,`${t}-checkbox`],modelValue:n?.selected,value:e.data.value,onChange:d=>n?.onSelect(d),uninjectGroupContext:!0,disabled:e.disabled},{default:()=>{var d,h,p;return[(p=(h=n==null?void 0:(d=n.slots).item)==null?void 0:h.call(d,{label:e.data.label,value:e.data.value}))!=null?p:e.data.label]}}),e.allowClear&&!e.disabled&&$(Lo,{class:`${t}-remove-btn`,onClick:a},{default:()=>[$(fs,null,null)]})])}}});const nUe=we({name:"TransferView",components:{Empty:ow,Checkbox:Wc,IconHover:Lo,IconDelete:Pu,InputSearch:F0.Search,List:Z0e,TransferListItem:tUe,Scrollbar:Rd},props:{type:{type:String},dataInfo:{type:Object,required:!0},title:String,data:{type:Array,required:!0},disabled:Boolean,allowClear:Boolean,selected:{type:Array,required:!0},showSearch:Boolean,showSelectAll:Boolean,simple:Boolean,inputSearchProps:{type:Object}},emits:["search"],setup(e,{emit:t}){const n=Re("transfer-view"),r=ue(""),i=Pn(KH,void 0),a=F(()=>e.dataInfo.selected.length),s=F(()=>e.dataInfo.data.length),l=F(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=F(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length{g?i?.onSelect([...e.selected,...e.dataInfo.allValidValues]):i?.onSelect(e.selected.filter(y=>!e.dataInfo.allValidValues.includes(y)))},h=F(()=>e.dataInfo.data.filter(g=>r.value?g.label.includes(r.value):!0));return{prefixCls:n,filteredData:h,filter:r,checked:l,indeterminate:c,countSelected:a,countRendered:s,handleSelectAllChange:d,handleSearch:g=>{t("search",g,e.type)},handleClear:()=>{i?.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:i}}});function rUe(e,t,n,r,i,a){const s=Te("checkbox"),l=Te("icon-delete"),c=Te("icon-hover"),d=Te("input-search"),h=Te("transfer-list-item"),p=Te("list"),v=Te("Scrollbar"),g=Te("Empty");return z(),X("div",{class:de(e.prefixCls)},[I("div",{class:de(`${e.prefixCls}-header`)},[mt(e.$slots,"title",{countTotal:e.dataInfo.data.length,countSelected:e.dataInfo.selected.length,searchValue:e.filter,checked:e.checked,indeterminate:e.indeterminate,onSelectAllChange:e.handleSelectAllChange,onClear:e.handleClear},()=>[I("span",{class:de(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(z(),X("span",{key:0,class:de(`${e.prefixCls}-header-title-simple`)},Ne(e.title),3)):(z(),Ze(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:fe(()=>[He(Ne(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(z(),Ze(c,{key:0,disabled:e.disabled,class:de(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:fe(()=>[$(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Ie("v-if",!0):(z(),X("span",{key:1,class:de(`${e.prefixCls}-header-count`)},Ne(e.dataInfo.selected.length)+" / "+Ne(e.dataInfo.data.length),3))])],2),e.showSearch?(z(),X("div",{key:0,class:de(`${e.prefixCls}-search`)},[$(d,Ft({modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=y=>e.filter=y),disabled:e.disabled},e.inputSearchProps,{onChange:e.handleSearch}),null,16,["modelValue","disabled","onChange"])],2)):Ie("v-if",!0),I("div",{class:de(`${e.prefixCls}-body`)},[e.filteredData.length>0?(z(),Ze(v,{key:0},{default:fe(()=>{var y,S;return[mt(e.$slots,"default",{data:e.filteredData,selectedKeys:(y=e.transferCtx)==null?void 0:y.selected,onSelect:(S=e.transferCtx)==null?void 0:S.onSelect},()=>[$(p,{class:de(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:fe(()=>[(z(!0),X(Pt,null,cn(e.filteredData,k=>(z(),Ze(h,{key:k.value,type:e.type,data:k,simple:e.simple,"allow-clear":e.allowClear,disabled:e.disabled||k.disabled},null,8,["type","data","simple","allow-clear","disabled"]))),128))]),_:1},8,["class"])])]}),_:3})):(z(),Ze(g,{key:1,class:de(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var iUe=ze(nUe,[["render",rUe]]);const oUe=we({name:"Transfer",components:{ArcoButton:Xo,TransferView:iUe,IconLeft:Il,IconRight:Hi},props:{data:{type:Array,default:()=>[]},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},selected:{type:Array,default:void 0},defaultSelected:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},oneWay:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},showSelectAll:{type:Boolean,default:!0},title:{type:Array,default:()=>["Source","Target"]},sourceInputSearchProps:{type:Object},targetInputSearchProps:{type:Object}},emits:{"update:modelValue":e=>!0,"update:selected":e=>!0,change:e=>!0,select:e=>!0,search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{mergedDisabled:r,eventHandlers:i}=Do({disabled:Du(e,"disabled")}),a=Re("transfer"),s=ue(e.defaultValue),l=F(()=>{var x;return(x=e.modelValue)!=null?x:s.value}),c=ue(e.defaultSelected),d=F(()=>{var x;return(x=e.selected)!=null?x:c.value}),h=F(()=>{var x;return(x=e.title)==null?void 0:x[0]}),p=F(()=>{var x;return(x=e.title)==null?void 0:x[1]}),v=F(()=>{const x={data:[],allValidValues:[],selected:[],validSelected:[]},E={data:[],allValidValues:[],selected:[],validSelected:[]};for(const _ of e.data)l.value.includes(_.value)?(E.data.push(_),_.disabled||E.allValidValues.push(_.value),d.value.includes(_.value)&&(E.selected.push(_.value),_.disabled||E.validSelected.push(_.value))):(x.data.push(_),_.disabled||x.allValidValues.push(_.value),d.value.includes(_.value)&&(x.selected.push(_.value),_.disabled||x.validSelected.push(_.value)));return{sourceInfo:x,targetInfo:E}}),g=(x,E)=>{t("search",x,E)},y=(x,E)=>{var _,T;const D=E==="target"?[...l.value,...x]:l.value.filter(P=>!x.includes(P));k(v.value[E==="target"?"targetInfo":"sourceInfo"].selected),s.value=D,t("update:modelValue",D),t("change",D),(T=(_=i.value)==null?void 0:_.onChange)==null||T.call(_)},S=x=>{const E=x==="target"?v.value.sourceInfo.validSelected:v.value.targetInfo.validSelected;y(E,x)},k=x=>{c.value=x,t("update:selected",x),t("select",x)};ri(KH,qt({selected:d,slots:n,moveTo:y,onSelect:k}));const C=F(()=>[a,{[`${a}-simple`]:e.simple,[`${a}-disabled`]:r.value}]);return{prefixCls:a,cls:C,dataInfo:v,computedSelected:d,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:S,handleSearch:g}}});function sUe(e,t,n,r,i,a){const s=Te("transfer-view"),l=Te("icon-right"),c=Te("arco-button"),d=Te("icon-left");return z(),X("div",{class:de(e.cls)},[$(s,{type:"source",class:de(`${e.prefixCls}-view-source`),title:e.sourceTitle,"data-info":e.dataInfo.sourceInfo,data:e.dataInfo.sourceInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.sourceInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.source?{name:"default",fn:fe(h=>[mt(e.$slots,"source",qi(xa(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:fe(h=>[mt(e.$slots,"source-title",qi(xa(h)))]),key:"1"}:void 0]),1032,["class","title","data-info","data","disabled","selected","show-search","show-select-all","simple","input-search-props","onSearch"]),e.simple?Ie("v-if",!0):(z(),X("div",{key:0,class:de([`${e.prefixCls}-operations`])},[$(c,{tabindex:"-1","aria-label":"Move selected right",size:"small",shape:"round",disabled:e.dataInfo.sourceInfo.validSelected.length===0,onClick:t[0]||(t[0]=h=>e.handleClick("target"))},{icon:fe(()=>[mt(e.$slots,"to-target-icon",{},()=>[$(l)])]),_:3},8,["disabled"]),e.oneWay?Ie("v-if",!0):(z(),Ze(c,{key:0,tabindex:"-1","aria-label":"Move selected left",size:"small",shape:"round",disabled:e.dataInfo.targetInfo.validSelected.length===0,onClick:t[1]||(t[1]=h=>e.handleClick("source"))},{icon:fe(()=>[mt(e.$slots,"to-source-icon",{},()=>[$(d)])]),_:3},8,["disabled"]))],2)),$(s,{type:"target",class:de(`${e.prefixCls}-view-target`),title:e.targetTitle,"data-info":e.dataInfo.targetInfo,data:e.dataInfo.targetInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"allow-clear":e.oneWay,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.targetInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.target?{name:"default",fn:fe(h=>[mt(e.$slots,"target",qi(xa(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:fe(h=>[mt(e.$slots,"target-title",qi(xa(h)))]),key:"1"}:void 0]),1032,["class","title","data-info","data","disabled","selected","allow-clear","show-search","show-select-all","simple","input-search-props","onSearch"])],2)}var LM=ze(oUe,[["render",sUe]]);const aUe=Object.assign(LM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+LM.name,LM)}}),Sve=Symbol("TreeInjectionKey");function lUe(e){const t=[];function n(r){r&&r.forEach(i=>{t.push(i),n(i.children)})}return n(e),t}function uUe(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function vV(e){return e.selectable&&!e.disabled}function Jre(e){return!e.isLeaf&&e.children}function cUe(e){return Tl(e.isLeaf)?e.isLeaf:!e.children}function mV(e){return Set.prototype.add.bind(e)}function gV(e){return Set.prototype.delete.bind(e)}function ym(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function qH(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{ym(r)&&n.push(r.key,...qH(r))}),n}function kve(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:i}=e;let a=n.parent;for(;a;){if(ym(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(ym))||[];let c=0;const d=l.length;l.some(({key:h})=>{if(r.has(h))c+=1;else if(i.has(h))return c+=.5,!0;return!1}),c&&c!==d?i.add(s):i.delete(s),c&&c===d?r.add(s):r.delete(s)}a=a.parent}}function yV(e){const{node:t,checked:n,checkedKeys:r,indeterminateKeys:i,checkStrictly:a=!1}=e,{key:s}=t,l=new Set(r),c=new Set(i);if(n?l.add(s):l.delete(s),c.delete(s),!a){const d=qH(t);n?d.forEach(mV(l)):d.forEach(gV(l)),d.forEach(gV(c)),kve({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function dUe(e){const{initCheckedKeys:t,key2TreeNode:n,checkStrictly:r,onlyCheckLeaf:i}=e,a=new Set,s=new Set,l=new Set;return r?t.forEach(mV(a)):t.forEach(c=>{var d;const h=n.get(c);if(!h||s.has(c)||i&&((d=h.children)!=null&&d.length))return;const p=qH(h);p.forEach(mV(s)),p.forEach(gV(l)),a.add(c),l.delete(c),kve({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function tA(){return Pn(Sve)||{}}const fUe=we({name:"IconFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),hUe=["stroke-width","stroke-linecap","stroke-linejoin"];function pUe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1)]),14,hUe)}var DM=ze(fUe,[["render",pUe]]);const lS=Object.assign(DM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DM.name,DM)}});var vUe=we({name:"TreeNodeSwitcher",components:{IconLoading:Ja,RenderFunction:Jh},props:{prefixCls:String,loading:Boolean,showLine:Boolean,treeNodeData:{type:Object},icons:{type:Object},nodeStatus:{type:Object}},emits:["click"],setup(e,{slots:t,emit:n}){const{icons:r,nodeStatus:i,treeNodeData:a}=tn(e),s=tA(),l=Cd(t,"switcher-icon"),c=Cd(t,"loading-icon");return{getSwitcherIcon:()=>{var d,h,p;const v=(h=(d=r?.value)==null?void 0:d.switcherIcon)!=null?h:l.value;return v?v(i.value):(p=s.switcherIcon)==null?void 0:p.call(s,a.value,i.value)},getLoadingIcon:()=>{var d,h,p;const v=(h=(d=r?.value)==null?void 0:d.loadingIcon)!=null?h:c.value;return v?v(i.value):(p=s.loadingIcon)==null?void 0:p.call(s,a.value,i.value)},onClick(d){n("click",d)}}},render(){var e,t,n;const{prefixCls:r,getSwitcherIcon:i,getLoadingIcon:a,onClick:s,nodeStatus:l={},loading:c,showLine:d}=this,{expanded:h,isLeaf:p}=l;if(c)return(e=a())!=null?e:fa(Ja);let v=null,g=!1;if(p)d&&(v=(n=i())!=null?n:fa(lS));else{const S=d?fa("span",{class:`${r}-${h?"minus":"plus"}-icon`}):fa(HH);v=(t=i())!=null?t:S,g=!d}if(!v)return null;const y=fa("span",{class:`${r}-switcher-icon`,onClick:s},v);return g?fa(Lo,{class:`${r}-icon-hover`},()=>y):y}});const xve=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function mUe(e,t){return!!(xn(e)?t:e)}function gUe(e,t){const n={...e};return t&&Object.keys(t).forEach(i=>{const a=t[i];a!==i&&(n[i]=e[a],delete n[a])}),n}function Qre({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:i}){return xn(e)?Sn(t)?t(r,{isLeaf:n,level:i}):t??!1:e}function yUe(e){var t,n;const{treeNodeData:r,parentNode:i,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=gUe(r,l),d=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=i?i.level+1:0,p={...Ea(c,["children"]),key:(n=c.key)!=null?n:xve(),selectable:Qre({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:d,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:Qre({subEnable:c.checkable,superEnable:s?.checkable,isLeaf:d,level:h,treeNodeData:r}),isLeaf:d,isTail:a,blockNode:!!s?.blockNode,showLine:!!s?.showLine,level:h,lineless:i?[...i.lineless,i.isTail]:[],draggable:mUe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:i,parentKey:i?.key,pathParentKeys:i?[...i.pathParentKeys,i.key]:[]}}function bUe(e,t){function n(r,i){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const d=yUe({treeNodeData:l,treeProps:t,parentNode:i,isTail:c===r.length-1});d.children=n(l[a?.children||"children"],d),s.push(d)}),s}return n(e)}function Cve(){const e=So(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:xve()},n=ue(t());return tl(()=>{n.value=t()}),n}function _Ue(e){const{key:t,refTitle:n}=tn(e),r=tA(),i=ue(!1),a=ue(!1),s=ue(!1),l=ue(0),c=Dm(d=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:v}=d,g=h.height/4,y=v-p;l.value=y[]}},setup(e){const t=Cve(),n=Re("tree-node"),r=tA(),i=F(()=>{var ie;return(ie=r.key2TreeNode)==null?void 0:ie.get(t.value)}),a=F(()=>i.value.treeNodeData),s=F(()=>i.value.children),l=F(()=>{var ie;const te=(ie=r.treeProps)==null?void 0:ie.actionOnNodeClick;return te?SUe(te):[]}),{isLeaf:c,isTail:d,selectable:h,disabled:p,disableCheckbox:v,draggable:g}=tn(e),y=F(()=>{var ie;return[`${n}`,{[`${n}-selected`]:M.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:d.value,[`${n}-expanded`]:O.value,[`${n}-disabled-selectable`]:!h.value&&!((ie=r.treeProps)!=null&&ie.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),S=ue(),{isDragOver:k,isDragging:C,isAllowDrop:x,dropPosition:E,setDragStatus:_}=_Ue(qt({key:t,refTitle:S})),T=F(()=>[`${n}-title`,{[`${n}-title-draggable`]:g.value,[`${n}-title-gap-top`]:k.value&&x.value&&E.value<0,[`${n}-title-gap-bottom`]:k.value&&x.value&&E.value>0,[`${n}-title-highlight`]:!C.value&&k.value&&x.value&&E.value===0,[`${n}-title-dragging`]:C.value,[`${n}-title-block`]:i.value.blockNode}]),D=F(()=>{var ie,te;return(te=(ie=r.checkedKeys)==null?void 0:ie.includes)==null?void 0:te.call(ie,t.value)}),P=F(()=>{var ie,te;return(te=(ie=r.indeterminateKeys)==null?void 0:ie.includes)==null?void 0:te.call(ie,t.value)}),M=F(()=>{var ie,te;return(te=(ie=r.selectedKeys)==null?void 0:ie.includes)==null?void 0:te.call(ie,t.value)}),O=F(()=>{var ie,te;return(te=(ie=r.expandedKeys)==null?void 0:ie.includes)==null?void 0:te.call(ie,t.value)}),L=F(()=>{var ie,te;return(te=(ie=r.loadingKeys)==null?void 0:ie.includes)==null?void 0:te.call(ie,t.value)}),B=F(()=>r.dragIcon),j=F(()=>r.nodeIcon);function H(ie){var te,W;c.value||(!((te=s.value)!=null&&te.length)&&Sn(r.onLoadMore)?r.onLoadMore(t.value):(W=r?.onExpand)==null||W.call(r,!O.value,t.value,ie))}const U=qt({loading:L,checked:D,selected:M,indeterminate:P,expanded:O,isLeaf:c}),K=F(()=>r.nodeTitle?()=>{var ie;return(ie=r.nodeTitle)==null?void 0:ie.call(r,a.value,U)}:void 0),Y=F(()=>r.nodeExtra?()=>{var ie;return(ie=r.nodeExtra)==null?void 0:ie.call(r,a.value,U)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:y,titleClassNames:T,indeterminate:P,checked:D,expanded:O,selected:M,treeTitle:K,treeNodeData:a,loading:L,treeDragIcon:B,treeNodeIcon:j,extra:Y,nodeStatus:U,onCheckboxChange(ie,te){var W;v.value||p.value||(W=r.onCheck)==null||W.call(r,ie,t.value,te)},onTitleClick(ie){var te;l.value.includes("expand")&&H(ie),!(!h.value||p.value)&&((te=r.onSelect)==null||te.call(r,t.value,ie))},onSwitcherClick:H,onDragStart(ie){var te;if(g.value){ie.stopPropagation(),_("dragStart",ie);try{(te=ie.dataTransfer)==null||te.setData("text/plain","")}catch{}}},onDragEnd(ie){g.value&&(ie.stopPropagation(),_("dragEnd",ie))},onDragOver(ie){g&&(ie.stopPropagation(),ie.preventDefault(),_("dragOver",ie))},onDragLeave(ie){g.value&&(ie.stopPropagation(),_("dragLeave",ie))},onDrop(ie){!g.value||!x.value||(ie.stopPropagation(),ie.preventDefault(),_("drop",ie))}}}}),xUe=["data-level","data-key"],CUe=["draggable"];function wUe(e,t,n,r,i,a){const s=Te("NodeSwitcher"),l=Te("Checkbox"),c=Te("RenderFunction"),d=Te("IconDragDotVertical");return z(),X("div",{class:de(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Ie(" 缩进 "),I("span",{class:de(`${e.prefixCls}-indent`)},[(z(!0),X(Pt,null,cn(e.level,h=>(z(),X("span",{key:h,class:de([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Ie(" switcher "),I("span",{class:de([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[$(s,{"prefix-cls":e.prefixCls,loading:e.loading,"show-line":e.showLine,"tree-node-data":e.treeNodeData,icons:{switcherIcon:e.switcherIcon,loadingIcon:e.loadingIcon},"node-status":e.nodeStatus,onClick:e.onSwitcherClick},yo({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:fe(()=>[Ie(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),mt(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:fe(()=>[Ie(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),mt(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Ie(" checkbox "),e.checkable?(z(),Ze(l,{key:0,disabled:e.disableCheckbox||e.disabled,"model-value":e.checked,indeterminate:e.indeterminate,"uninject-group-context":"",onChange:e.onCheckboxChange},null,8,["disabled","model-value","indeterminate","onChange"])):Ie("v-if",!0),Ie(" 内容 "),I("span",{ref:"refTitle",class:de(e.titleClassNames),draggable:e.draggable,onDragstart:t[0]||(t[0]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[1]||(t[1]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDragover:t[2]||(t[2]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[3]||(t[3]=(...h)=>e.onDragLeave&&e.onDragLeave(...h)),onDrop:t[4]||(t[4]=(...h)=>e.onDrop&&e.onDrop(...h)),onClick:t[5]||(t[5]=(...h)=>e.onTitleClick&&e.onTitleClick(...h))},[e.$slots.icon||e.icon||e.treeNodeIcon?(z(),X("span",{key:0,class:de([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Ie(" 节点图标 "),e.$slots.icon?mt(e.$slots,"icon",qi(Ft({key:0},e.nodeStatus))):e.icon?(z(),Ze(c,Ft({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(z(),Ze(c,Ft({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Ie("v-if",!0)],2)):Ie("v-if",!0),I("span",{class:de(`${e.prefixCls}-title-text`)},[e.treeTitle?(z(),Ze(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(z(),X(Pt,{key:1},[Ie(" 标题,treeTitle 优先级高于节点的 title "),mt(e.$slots,"title",{title:e.title},()=>[He(Ne(e.title),1)])],2112)),e.draggable?(z(),X("span",{key:2,class:de([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Ie(" 拖拽图标 "),e.$slots["drag-icon"]?mt(e.$slots,"drag-icon",qi(Ft({key:0},e.nodeStatus))):e.dragIcon?(z(),Ze(c,Ft({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(z(),Ze(c,Ft({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(z(),Ze(d,{key:3}))],2)):Ie("v-if",!0)],2)],42,CUe),Ie(" 额外 "),e.extra?(z(),Ze(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Ie("v-if",!0)],10,xUe)}var bV=ze(kUe,[["render",wUe]]);const EUe=we({name:"ExpandTransition",props:{expanded:Boolean},emits:["end"],setup(e,{emit:t}){return{onEnter(n){const r=`${n.scrollHeight}px`;n.style.height=e.expanded?"0":r,n.offsetHeight,n.style.height=e.expanded?r:"0"},onAfterEnter(n){n.style.height=e.expanded?"":"0",t("end")},onBeforeLeave(n){n.style.display="none"}}}});function TUe(e,t,n,r,i,a){return z(),Ze(Cs,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:fe(()=>[mt(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var AUe=ze(EUe,[["render",TUe]]);const IUe=we({name:"TransitionNodeList",components:{ExpandTransition:AUe,BaseTreeNode:bV},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Re("tree")}-node-list`],r=tA(),{nodeKey:i}=tn(e),a=F(()=>{var c,d;return(d=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:d.call(c,i.value)}),s=F(()=>{var c;const d=new Set(r.expandedKeys||[]),h=(c=r.flattenTreeData)==null?void 0:c.filter(p=>{var v,g;return(v=p.pathParentKeys)!=null&&v.includes(i.value)?!r.filterTreeNode||((g=r.filterTreeNode)==null?void 0:g.call(r,p.treeNodeData)):!1});return h?.filter(p=>{var v;if(a.value)return(v=p.pathParentKeys)==null?void 0:v.every(y=>d.has(y));const g=p.pathParentKeys.indexOf(i.value);return p.pathParentKeys.slice(g+1).every(y=>d.has(y))})}),l=F(()=>{var c,d;return((c=r.currentExpandKeys)==null?void 0:c.includes(i.value))&&((d=s.value)==null?void 0:d.length)});return{classNames:n,visibleNodeList:s,show:l,expanded:a,onTransitionEnd(){var c;(c=r.onExpandEnd)==null||c.call(r,i.value)}}}});function LUe(e,t,n,r,i,a){const s=Te("BaseTreeNode"),l=Te("ExpandTransition");return z(),Ze(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:fe(()=>[e.show?(z(),X("div",{key:0,class:de(e.classNames)},[(z(!0),X(Pt,null,cn(e.visibleNodeList,c=>(z(),Ze(s,Ft({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Ie("v-if",!0)]),_:1},8,["expanded","onEnd"])}var DUe=ze(IUe,[["render",LUe]]),PUe=we({name:"TreeNode",inheritAttrs:!1,props:{...bV.props},setup(e,{slots:t,attrs:n}){const r=Cve();return()=>$(Pt,null,[$(bV,Ft(e,n,{key:r.value}),t),$(DUe,{key:r.value,nodeKey:r.value},null)])}});function RUe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:i,halfCheckedKeys:a,onlyCheckLeaf:s}=tn(e),l=ue(!1),c=ue([]),d=ue([]),h=ue(),p=ue(),v=y=>dUe({initCheckedKeys:y,key2TreeNode:r.value,checkStrictly:i.value,onlyCheckLeaf:s.value}),g=y=>{const S=v(y);[c.value,d.value]=S};return g(n.value||t?.value||[]),Os(()=>{n.value?[h.value,p.value]=v(n.value):l.value&&(h.value=void 0,p.value=void 0,c.value=[],d.value=[]),l.value||(l.value=!0)}),{checkedKeys:F(()=>h.value||c.value),indeterminateKeys:F(()=>i.value&&a.value?a.value:p.value||d.value),setCheckedState(y,S,k=!1){return k?g(y):(c.value=y,d.value=S),[c.value,d.value]}}}function wve(e){const{treeData:t,fieldNames:n,selectable:r,showLine:i,blockNode:a,checkable:s,loadMore:l,draggable:c}=tn(e),d=ue([]);Os(()=>{var v,g;d.value=bUe(t.value||[],{selectable:(v=r?.value)!=null?v:!1,showLine:!!i?.value,blockNode:!!a?.value,checkable:(g=s?.value)!=null?g:!1,fieldNames:n?.value,loadMore:!!l?.value,draggable:!!c?.value})});const h=F(()=>lUe(d.value)),p=F(()=>uUe(h.value));return{treeData:d,flattenTreeData:h,key2TreeNode:p}}const MUe=we({name:"Tree",components:{VirtualList:c3,TreeNode:PUe},props:{size:{type:String,default:"medium"},blockNode:{type:Boolean},defaultExpandAll:{type:Boolean,default:!0},multiple:{type:Boolean},checkable:{type:[Boolean,String,Function],default:!1},selectable:{type:[Boolean,Function],default:!0},checkStrictly:{type:Boolean},checkedStrategy:{type:String,default:"all"},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:Array},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},data:{type:Array,default:()=>[]},fieldNames:{type:Object},showLine:{type:Boolean},loadMore:{type:Function},draggable:{type:Boolean},allowDrop:{type:Function},filterTreeNode:{type:Function},searchValue:{type:String,default:""},virtualListProps:{type:Object},defaultExpandSelected:{type:Boolean},defaultExpandChecked:{type:Boolean},autoExpandParent:{type:Boolean,default:!0},halfCheckedKeys:{type:Array},onlyCheckLeaf:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},actionOnNodeClick:{type:String},disableSelectActionOnly:{type:Boolean,default:!1}},emits:{select:(e,t)=>!0,"update:selectedKeys":e=>!0,check:(e,t)=>!0,"update:checkedKeys":e=>!0,"update:halfCheckedKeys":e=>!0,expand:(e,t)=>!0,"update:expandedKeys":e=>!0,dragStart:(e,t)=>!0,dragEnd:(e,t)=>!0,dragOver:(e,t)=>!0,dragLeave:(e,t)=>!0,drop:e=>!0},setup(e,{emit:t,slots:n}){const{data:r,showLine:i,multiple:a,loadMore:s,checkStrictly:l,checkedKeys:c,defaultCheckedKeys:d,selectedKeys:h,defaultSelectedKeys:p,expandedKeys:v,defaultExpandedKeys:g,checkedStrategy:y,selectable:S,checkable:k,blockNode:C,fieldNames:x,size:E,defaultExpandAll:_,filterTreeNode:T,draggable:D,allowDrop:P,defaultExpandSelected:M,defaultExpandChecked:O,autoExpandParent:L,halfCheckedKeys:B,onlyCheckLeaf:j,animation:H}=tn(e),U=Re("tree"),K=F(()=>[`${U}`,{[`${U}-checkable`]:k.value,[`${U}-show-line`]:i.value},`${U}-size-${E.value}`]),Y=Cd(n,"switcher-icon"),ie=Cd(n,"loading-icon"),te=Cd(n,"drag-icon"),W=Cd(n,"icon"),q=Cd(n,"title"),Q=Cd(n,"extra"),{treeData:se,flattenTreeData:ae,key2TreeNode:re}=wve(qt({treeData:r,selectable:S,showLine:i,blockNode:C,checkable:k,fieldNames:x,loadMore:s,draggable:D})),{checkedKeys:Ce,indeterminateKeys:Ve,setCheckedState:ge}=RUe(qt({defaultCheckedKeys:d,checkedKeys:c,checkStrictly:l,key2TreeNode:re,halfCheckedKeys:B,onlyCheckLeaf:j})),[xe,Ge]=pa(p?.value||[],qt({value:h})),tt=ue([]),Ue=ue();function _e(){if(g?.value){const Qe=new Set([]);return g.value.forEach(Le=>{if(Qe.has(Le))return;const ht=re.value.get(Le);ht&&[...L.value?ht.pathParentKeys:[],Le].forEach(Vt=>Qe.add(Vt))}),[...Qe]}if(_.value)return ae.value.filter(Qe=>Qe.children&&Qe.children.length).map(Qe=>Qe.key);if(M.value||O.value){const Qe=new Set([]),Le=ht=>{ht.forEach(Vt=>{const Ut=re.value.get(Vt);Ut&&(Ut.pathParentKeys||[]).forEach(Lt=>Qe.add(Lt))})};return M.value&&Le(xe.value),O.value&&Le(Ce.value),[...Qe]}return[]}const[ve,me]=pa(_e(),qt({value:v})),Oe=ue([]),qe=F(()=>{const Qe=new Set(ve.value),Le=new Set(Oe.value);return ae.value.filter(ht=>{var Vt;if(!(!T||!T.value||T?.value(ht.treeNodeData)))return!1;const Lt=xn(ht.parentKey),Xt=(Vt=ht.pathParentKeys)==null?void 0:Vt.every(Dn=>Qe.has(Dn)&&!Le.has(Dn));return Lt||Xt})});function Ke(Qe,Le=y.value){let ht=[...Qe];return Le==="parent"?ht=Qe.filter(Vt=>{const Ut=re.value.get(Vt);return Ut&&!(!xn(Ut.parentKey)&&Qe.includes(Ut.parentKey))}):Le==="child"&&(ht=Qe.filter(Vt=>{var Ut,Lt;return!((Lt=(Ut=re.value.get(Vt))==null?void 0:Ut.children)!=null&&Lt.length)})),ht}function at(Qe){return Qe.map(Le=>{var ht;return((ht=re.value.get(Le))==null?void 0:ht.treeNodeData)||void 0}).filter(Boolean)}function ft(Qe){const{targetKey:Le,targetChecked:ht,newCheckedKeys:Vt,newIndeterminateKeys:Ut,event:Lt}=Qe,Xt=Le?re.value.get(Le):void 0,Dn=Ke(Vt);t("update:checkedKeys",Dn),t("update:halfCheckedKeys",Ut),t("check",Dn,{checked:ht,node:Xt?.treeNodeData,checkedNodes:at(Dn),halfCheckedKeys:Ut,halfCheckedNodes:at(Ut),e:Lt})}function ct(Qe){const{targetKey:Le,targetSelected:ht,newSelectedKeys:Vt,event:Ut}=Qe,Lt=Le?re.value.get(Le):void 0;t("update:selectedKeys",Vt),t("select",Vt,{selected:ht,node:Lt?.treeNodeData,selectedNodes:at(Vt),e:Ut})}function wt(Qe){const{targetKey:Le,targetExpanded:ht,newExpandedKeys:Vt,event:Ut}=Qe,Lt=Le?re.value.get(Le):void 0;t("expand",Vt,{expanded:ht,node:Lt?.treeNodeData,expandedNodes:at(Vt),e:Ut}),t("update:expandedKeys",Vt)}function Ct(Qe){const[Le,ht]=ge(Qe,[],!0);ft({newCheckedKeys:Le,newIndeterminateKeys:ht})}function Rt(Qe){let Le=Qe;!a.value&&Qe.length>1&&(Le=[Qe[0]]),Ge(Le),ct({newSelectedKeys:Le})}function Ht(Qe){Oe.value=[],me(Qe),wt({newExpandedKeys:Qe})}function Jt(Qe,Le,ht){if(!Qe.length)return;let Vt=[...Ce.value],Ut=[...Ve.value];Qe.forEach(Lt=>{const Xt=re.value.get(Lt);Xt&&([Vt,Ut]=yV({node:Xt,checked:Le,checkedKeys:[...Vt],indeterminateKeys:[...Ut],checkStrictly:l.value}))}),ge(Vt,Ut),ft({targetKey:ht,targetChecked:xn(ht)?void 0:Le,newCheckedKeys:Vt,newIndeterminateKeys:Ut})}function rn(Qe,Le,ht){if(!Qe.length)return;let Vt;if(a.value){const Ut=new Set(xe.value);Qe.forEach(Lt=>{Le?Ut.add(Lt):Ut.delete(Lt)}),Vt=[...Ut]}else Vt=Le?[Qe[0]]:[];Ge(Vt),ct({targetKey:ht,targetSelected:xn(ht)?void 0:Le,newSelectedKeys:Vt})}function vt(Qe,Le,ht){const Vt=new Set(ve.value);Qe.forEach(Lt=>{Le?Vt.add(Lt):Vt.delete(Lt),We(Lt)});const Ut=[...Vt];me(Ut),wt({targetKey:ht,targetExpanded:xn(ht)?void 0:Le,newExpandedKeys:Ut})}function Fe(Qe,Le,ht){const Vt=re.value.get(Le);if(!Vt)return;const[Ut,Lt]=yV({node:Vt,checked:Qe,checkedKeys:Ce.value,indeterminateKeys:Ve.value,checkStrictly:l.value});ge(Ut,Lt),ft({targetKey:Le,targetChecked:Qe,newCheckedKeys:Ut,newIndeterminateKeys:Lt,event:ht})}function Me(Qe,Le){if(!re.value.get(Qe))return;let Vt,Ut;if(a.value){const Lt=new Set(xe.value);Ut=!Lt.has(Qe),Ut?Lt.add(Qe):Lt.delete(Qe),Vt=[...Lt]}else Ut=!0,Vt=[Qe];Ge(Vt),ct({targetKey:Qe,targetSelected:Ut,newSelectedKeys:Vt,event:Le})}function Ee(Qe,Le,ht){if(Oe.value.includes(Le)||!re.value.get(Le))return;const Ut=new Set(ve.value);Qe?Ut.add(Le):Ut.delete(Le);const Lt=[...Ut];me(Lt),H.value&&Oe.value.push(Le),wt({targetKey:Le,targetExpanded:Qe,newExpandedKeys:Lt,event:ht})}function We(Qe){const Le=Oe.value.indexOf(Qe);Oe.value.splice(Le,1)}const $e=F(()=>s?.value?async Qe=>{if(!Sn(s.value))return;const Le=re.value.get(Qe);if(!Le)return;const{treeNodeData:ht}=Le;tt.value=[...new Set([...tt.value,Qe])];try{await s.value(ht),tt.value=tt.value.filter(Vt=>Vt!==Qe),Ee(!0,Qe),Ce.value.includes(Qe)&&Fe(!0,Qe)}catch(Vt){tt.value=tt.value.filter(Ut=>Ut!==Qe),console.error("[tree]load data error: ",Vt)}}:void 0),dt=qt({treeProps:e,switcherIcon:Y,loadingIcon:ie,dragIcon:te,nodeIcon:W,nodeTitle:q,nodeExtra:Q,treeData:se,flattenTreeData:ae,key2TreeNode:re,checkedKeys:Ce,indeterminateKeys:Ve,selectedKeys:xe,expandedKeys:ve,loadingKeys:tt,currentExpandKeys:Oe,onLoadMore:$e,filterTreeNode:T,onCheck:Fe,onSelect:Me,onExpand:Ee,onExpandEnd:We,allowDrop(Qe,Le){const ht=re.value.get(Qe);return ht&&Sn(P.value)?!!P.value({dropNode:ht.treeNodeData,dropPosition:Le}):!0},onDragStart(Qe,Le){const ht=re.value.get(Qe);Ue.value=ht,ht&&t("dragStart",Le,ht.treeNodeData)},onDragEnd(Qe,Le){const ht=re.value.get(Qe);Ue.value=void 0,ht&&t("dragEnd",Le,ht.treeNodeData)},onDragOver(Qe,Le){const ht=re.value.get(Qe);ht&&t("dragOver",Le,ht.treeNodeData)},onDragLeave(Qe,Le){const ht=re.value.get(Qe);ht&&t("dragLeave",Le,ht.treeNodeData)},onDrop(Qe,Le,ht){const Vt=re.value.get(Qe);Ue.value&&Vt&&!(Vt.key===Ue.value.key||Vt.pathParentKeys.includes(Ue.value.key||""))&&t("drop",{e:ht,dragNode:Ue.value.treeNodeData,dropNode:Vt.treeNodeData,dropPosition:Le})}});return ri(Sve,dt),{classNames:K,visibleTreeNodeList:qe,treeContext:dt,virtualListRef:ue(),computedSelectedKeys:xe,computedExpandedKeys:ve,computedCheckedKeys:Ce,computedIndeterminateKeys:Ve,getPublicCheckedKeys:Ke,getNodes:at,internalCheckNodes:Jt,internalSetCheckedKeys:Ct,internalSelectNodes:rn,internalSetSelectedKeys:Rt,internalExpandNodes:vt,internalSetExpandedKeys:Ht}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:i}=this.treeContext,a=!i.includes(e),s=n.get(e);s&&ym(s)&&r(a,e,t)},scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)},getSelectedNodes(){return this.getNodes(this.computedSelectedKeys)},getCheckedNodes(e={}){const{checkedStrategy:t,includeHalfChecked:n}=e,r=this.getPublicCheckedKeys(this.computedCheckedKeys,t);return[...this.getNodes(r),...n?this.getHalfCheckedNodes():[]]},getHalfCheckedNodes(){return this.getNodes(this.computedIndeterminateKeys)},getExpandedNodes(){return this.getNodes(this.computedExpandedKeys)},checkAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const i=t.get(r);return i&&ym(i)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:i}=this,{key2TreeNode:a}=i,s=nr(e),l=(s?e:[e]).filter(c=>{const d=a.get(c);return d&&ym(d)&&(r||!n||cUe(d))});this.internalCheckNodes(l,t,s?void 0:e)},selectAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const i=t.get(r);return i&&vV(i)}):[];this.internalSetSelectedKeys(n)},selectNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=nr(e),i=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&vV(s)});this.internalSelectNodes(i,t,r?void 0:e)},expandAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const i=t.get(r);return i&&Jre(i)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=nr(e),i=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&Jre(s)});this.internalExpandNodes(i,t,r?void 0:e)}}});function $Ue(e,t,n,r,i,a){const s=Te("TreeNode"),l=Te("VirtualList");return z(),X("div",{class:de(e.classNames)},[e.virtualListProps?(z(),Ze(l,Ft({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:fe(({item:c})=>[(z(),Ze(s,Ft({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(z(!0),X(Pt,{key:1},cn(e.visibleTreeNodeList,c=>(z(),Ze(s,Ft({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var PM=ze(MUe,[["render",$Ue]]);const _V=Object.assign(PM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+PM.name,PM)}}),OUe=we({name:"Typography",setup(){return{classNames:[Re("typography")]}}});function BUe(e,t,n,r,i,a){return z(),X("article",{class:de(e.classNames)},[mt(e.$slots,"default")],2)}var RM=ze(OUe,[["render",BUe]]);const NUe=we({name:"TypographyEditContent",components:{Input:F0},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${Re("typography")}-edit-content`],i=ue();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return hn(()=>{if(!i.value||!i.value.$el)return;const l=i.value.$el.querySelector("input");if(!l)return;l.focus&&l.focus();const{length:c}=l.value;l.setSelectionRange(c,c)}),{classNames:r,inputRef:i,onBlur:s,onChange:a,onEnd:s}}});function FUe(e,t,n,r,i,a){const s=Te("Input");return z(),X("div",{class:de(e.classNames)},[$(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:df(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var jUe=ze(NUe,[["render",FUe]]);const VUe=we({name:"IconCopy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zUe=["stroke-width","stroke-linecap","stroke-linejoin"];function UUe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)]),14,zUe)}var MM=ze(VUe,[["render",UUe]]);const nA=Object.assign(MM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MM.name,MM)}}),HUe=we({name:"IconEdit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),WUe=["stroke-width","stroke-linecap","stroke-linejoin"];function GUe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)]),14,WUe)}var $M=ze(HUe,[["render",GUe]]);const YH=Object.assign($M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$M.name,$M)}}),KUe=we({name:"TypographyOperations",components:{Tooltip:Qc,IconCheckCircleFill:Yh,IconCopy:nA,IconEdit:YH},props:{editable:Boolean,copyable:Boolean,expandable:Boolean,isCopied:Boolean,isEllipsis:Boolean,expanded:Boolean,forceRenderExpand:Boolean,editTooltipProps:Object,copyTooltipProps:Object},emits:{edit:()=>!0,copy:()=>!0,expand:()=>!0},setup(e,{emit:t}){const n=Re("typography"),r=F(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:i}=No();return{prefixCls:n,showExpand:r,t:i,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function qUe(e,t,n,r,i,a){const s=Te("IconEdit"),l=Te("Tooltip"),c=Te("IconCheckCircleFill"),d=Te("IconCopy");return z(),X(Pt,null,[e.editable?(z(),Ze(l,Ft({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:fe(()=>[I("span",{class:de(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=cs((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[$(s)],2)]),_:1},16,["content"])):Ie("v-if",!0),e.copyable?(z(),Ze(l,qi(Ft({key:1},e.copyTooltipProps)),{content:fe(()=>[mt(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[He(Ne(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:fe(()=>[I("span",{class:de({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=cs((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[mt(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(z(),Ze(c,{key:0})):(z(),Ze(d,{key:1}))])],2)]),_:3},16)):Ie("v-if",!0),e.showExpand?(z(),X("a",{key:2,class:de(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=cs((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[mt(e.$slots,"expand-node",{expanded:e.expanded},()=>[He(Ne(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Ie("v-if",!0)],64)}var eie=ze(KUe,[["render",qUe]]);let Gs;function YUe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function OM(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var XUe=(e,t,n,r)=>{Gs||(Gs=document.createElement("div"),document.body.appendChild(Gs));const{rows:i,suffix:a,ellipsisStr:s}=t,l=window.getComputedStyle(e),c=YUe(l),d=OM(l.lineHeight),h=Math.round(d*i+OM(l.paddingTop)+OM(l.paddingBottom));Gs.setAttribute("style",c),Gs.setAttribute("aria-hidden","true"),Gs.style.height="auto",Gs.style.minHeight="auto",Gs.style.maxHeight="auto",Gs.style.position="fixed",Gs.style.left="0",Gs.style.top="-99999999px",Gs.style.zIndex="-200",Gs.style.whiteSpace="normal";const p=Py({render(){return $("span",null,[n])}});p.mount(Gs);const v=Array.prototype.slice.apply(Gs.childNodes[0].cloneNode(!0).childNodes);p.unmount(),Gs.innerHTML="";const g=document.createTextNode(`${s}${a}`);Gs.appendChild(g),v.forEach(C=>{Gs.appendChild(C)});const y=document.createTextNode(r);Gs.insertBefore(y,g);function S(){return Gs.offsetHeight<=h}if(S())return{ellipsis:!1,text:r};function k(C,x=0,E=r.length,_=0){const T=Math.floor((x+E)/2),D=r.slice(0,T);if(C.textContent=D,x>=E-1)for(let P=E;P>=x;P-=1){const M=r.slice(0,P);if(C.textContent=M,S()||!M)return}S()?k(C,T,E,T):k(C,x,T,_)}return k(y),{text:y.textContent,ellipsis:!0}};const ZUe=async e=>{var t;if((t=navigator.clipboard)!=null&&t.writeText)try{await navigator.clipboard.writeText(e);return}catch(a){console.error(a??new DOMException("The request is not allowed","NotAllowedError"))}const n=document.createElement("span");n.textContent=e,n.style.whiteSpace="pre",document.body.appendChild(n);const r=window.getSelection(),i=window.document.createRange();r?.removeAllRanges(),i.selectNode(n),r?.addRange(i);try{window.document.execCommand("copy")}catch(a){console.error(`execCommand Error: ${a}`)}r?.removeAllRanges(),window.document.body.removeChild(n)};let d1;function JUe(e){if(!e)return"";d1||(d1=document.createElement("div"),d1.setAttribute("aria-hidden","true"),document.body.appendChild(d1));const t=Py({render(){return $("div",null,[e])}});t.mount(d1);const n=d1.innerText;return t.unmount(),n}function Eve(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}function QUe(e){const{bold:t,mark:n,underline:r,delete:i,code:a}=e,s=[];return t&&s.push("b"),r&&s.push("u"),i&&s.push("del"),a&&s.push("code"),n&&s.push("mark"),s}function tie(e,t){const{mark:n}=e,r=QUe(e),i=gr(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>$(s,s==="mark"?{style:i}:{},Eve(a)?a:{default:()=>[a]}),t)}function eHe(e){const t=!!e.showTooltip,n=gr(e.showTooltip)&&e.showTooltip.type==="popover"?mH:Qc,r=gr(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...Ea(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var XH=we({name:"TypographyBase",inheritAttrs:!1,props:{component:{type:String,required:!0},type:{type:String},bold:{type:Boolean},mark:{type:[Boolean,Object],default:!1},underline:{type:Boolean},delete:{type:Boolean},code:{type:Boolean},disabled:{type:Boolean},editable:{type:Boolean},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean},editText:{type:String},copyable:{type:Boolean},copyText:{type:String},copyDelay:{type:Number,default:3e3},ellipsis:{type:[Boolean,Object],default:!1},editTooltipProps:{type:Object},copyTooltipProps:{type:Object}},emits:{editStart:()=>!0,change:e=>!0,"update:editText":e=>!0,editEnd:()=>!0,"update:editing":e=>!0,copy:e=>!0,ellipsis:e=>!0,expand:e=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{editing:i,defaultEditing:a,ellipsis:s,copyable:l,editable:c,copyText:d,editText:h,copyDelay:p,component:v}=tn(e),g=Re("typography"),y=F(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=ue(),k=ue(""),[C,x]=pa(a.value,qt({value:i})),E=F(()=>c.value&&C.value);function _(){n("update:editing",!0),n("editStart"),x(!0)}function T(Ce){n("update:editText",Ce),n("change",Ce)}function D(){C.value&&(n("update:editing",!1),n("editEnd"),x(!1))}const P=ue(!1);let M=null;function O(){var Ce;const Ve=(Ce=d.value)!=null?Ce:k.value;ZUe(Ve||""),P.value=!0,n("copy",Ve),M=setTimeout(()=>{P.value=!1},p.value)}ii(()=>{M&&clearTimeout(M),M=null});const L=ue(!1),B=ue(!1),j=ue(""),H=F(()=>eHe(gr(s.value)&&s.value||{}));let U=null;function K(){const Ce=!B.value;B.value=Ce,n("expand",Ce)}function Y(Ce=!1){return H.value.css?$(eie,{editable:c.value,copyable:l.value,expandable:H.value.expandable,isCopied:P.value,isEllipsis:se.value,expanded:B.value,forceRenderExpand:Ce||B.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:O,onExpand:K},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):$(eie,{editable:c.value,copyable:l.value,expandable:H.value.expandable,isCopied:P.value,isEllipsis:L.value,expanded:B.value,forceRenderExpand:Ce,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:O,onExpand:K},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function ie(){if(!S.value)return;const{ellipsis:Ce,text:Ve}=XUe(S.value,H.value,Y(!!H.value.expandable),k.value);L.value!==Ce&&(L.value=Ce,H.value.css||n("ellipsis",Ce)),j.value!==Ve&&(j.value=Ve||"")}function te(){s.value&&!B.value&&(H8(U),U=dpe(()=>{ie()}))}ii(()=>{H8(U)}),It(()=>H.value.rows,()=>{te()}),It(s,Ce=>{Ce?te():L.value=!1});let W=[];const q=()=>{if(s.value||l.value||c.value){const Ce=JUe(W);Ce!==k.value&&(k.value=Ce,te())}};hn(q),tl(q);const Q=ue(),se=ue(!1),ae=()=>{if(S.value&&Q.value){const Ce=Q.value.offsetHeight>S.value.offsetHeight;Ce!==se.value&&(se.value=Ce,n("ellipsis",Ce))}},re=F(()=>B.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":H.value.rows,"-webkit-box-orient":"vertical"});return()=>{var Ce,Ve;if(W=((Ce=t.default)==null?void 0:Ce.call(t))||[],E.value){const qe=(Ve=h.value)!=null?Ve:k.value;return $(jUe,{text:qe,onChange:Ke=>{Ke!==qe&&T(Ke)},onEnd:D},null)}const{suffix:ge,ellipsisStr:xe,showTooltip:Ge,tooltipProps:tt,TooltipComponent:Ue}=H.value,_e=L.value&&!B.value,ve=_e&&!Ge?{title:k.value}:{},me=v.value;if(H.value.css){const qe=tie(e,W),Ke=$(me,Ft({class:y.value,ref:S,style:re.value},ve,r),{default:()=>[$("span",{ref:Q},[qe])]});return se.value?$(Ue,Ft(tt,{onResize:()=>ae()}),{default:()=>[Ke],content:()=>k.value}):$(Dd,{onResize:()=>{ae()}},Eve(Ke)?Ke:{default:()=>[Ke]})}const Oe=tie(e,_e?j.value:W);return $(Dd,{onResize:()=>te()},{default:()=>[$(me,Ft({class:y.value,ref:S},ve,r),{default:()=>[_e&&Ge?$(Ue,tt,{default:()=>[$("span",null,[Oe])],content:()=>k.value}):Oe,_e?xe:null,ge,Y()]})]})}}}),tE=we({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=tn(e),r=Re("typography"),i=F(()=>t?.value?"blockquote":"div"),a=F(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:i,classNames:a}},render(){const{component:e,classNames:t}=this;return $(XH,Ft({class:t},this.$attrs,{component:e}),this.$slots)}}),nE=we({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=tn(e);return{component:F(()=>`h${t?.value}`)}},render(){const{component:e}=this;return $(XH,Ft(this.$attrs,{component:e}),this.$slots)}}),rE=we({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=tn(e);return{component:F(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return $(XH,Ft(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const tHe=Object.assign(RM,{Paragraph:tE,Title:nE,Text:rE,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+RM.name,RM),e.component(n+tE.name,tE),e.component(n+nE.name,nE),e.component(n+rE.name,rE)}}),nie=e=>{const t=e.responseText||e.response;if(!t)return;const n=e.getResponseHeader("Content-Type");if(n&&n.includes("json"))try{return JSON.parse(t)}catch{return t}return t},nHe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},rie=(e,t)=>Sn(e)?e(t):e,rHe=({fileItem:e,action:t,name:n,data:r,headers:i={},withCredentials:a=!1,onProgress:s=ay,onSuccess:l=ay,onError:c=ay})=>{const d=rie(n,e)||"file",h=rie(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=g=>{const y=g.total>0?Yl.round(g.loaded/g.total,2):0;s(y,g)},p.onerror=function(y){c(y)},p.onload=()=>{if(p.status<200||p.status>=300){c(nie(p));return}l(nie(p))};const v=new FormData;if(h)for(const g of Object.keys(h))v.append(g,h[g]);e.file&&v.append(d,e.file),p.open("post",t??"",!0);for(const g of Object.keys(i))p.setRequestHeader(g,i[g]);return p.send(v),{abort(){p.abort()}}},Tve=(e,t)=>{if(t&&e){const n=nr(t)?t:t.split(",").map(i=>i.trim()).filter(i=>i),r=(e.name.indexOf(".")>-1?`.${e.name.split(".").pop()}`:"").toLowerCase();return n.some(i=>{const a=i&&i.toLowerCase(),s=(e.type||"").toLowerCase(),l=s.split("/")[0];if(a===s||`${l}${r.replace(".","/")}`===a||/^\*(\/\*)?$/.test(a))return!0;if(/\/\*/.test(a))return s.replace(/\/.*$/,"")===a.replace(/\/.*$/,"");if(/\..*/.test(a)){let c=[a];return(a===".jpg"||a===".jpeg")&&(c=[".jpg",".jpeg"]),c.indexOf(r)>-1}return!1})}return!!e},iHe=(e,t,n)=>{const r=[];let i=0;const a=()=>{!i&&n(r)},s=l=>{if(i+=1,l?.isFile){l.file(c=>{i-=1,Tve(c,t)&&(Object.defineProperty(c,"webkitRelativePath",{value:l.fullPath.replace(/^\//,"")}),r.push(c)),a()});return}if(l?.isDirectory){const c=l.createReader();let d=!1;const h=()=>{c.readEntries(p=>{d||(i-=1,d=!0),p.length===0?a():(h(),p.forEach(s))})};h();return}i-=1,a()};[].slice.call(e).forEach(l=>l.webkitGetAsEntry&&s(l.webkitGetAsEntry()))},oHe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},BM=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>Tve(r,t)):n},sHe=we({name:"IconUpload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aHe=["stroke-width","stroke-linecap","stroke-linejoin"];function lHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)]),14,aHe)}var NM=ze(sHe,[["render",lHe]]);const E0=Object.assign(NM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NM.name,NM)}});var uHe=we({name:"UploadButton",props:{disabled:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},accept:String,listType:{type:String},tip:String,draggable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},uploadFiles:{type:Function,required:!0},hide:Boolean,onButtonClick:{type:Function}},setup(e,{slots:t}){const n=Re("upload"),{t:r}=No(),i=ue(!1),a=ue(null),s=ue(null),l=ue(0),c=k=>{k==="subtract"?l.value-=1:k==="add"?l.value+=1:k==="reset"&&(l.value=0)},d=k=>{if(!e.disabled){if(Sn(e.onButtonClick)){const C=e.onButtonClick(k);if(Lm(C)){C.then(x=>{e.uploadFiles(BM(x))});return}}a.value&&a.value.click()}},h=k=>{const C=k.target;C.files&&e.uploadFiles(BM(C.files)),C.value=""},p=k=>{var C,x;if(k.preventDefault(),i.value=!1,c("reset"),!e.disabled)if(e.directory&&((C=k.dataTransfer)!=null&&C.items))iHe(k.dataTransfer.items,e.accept,E=>{e.uploadFiles(E)});else{const E=BM((x=k.dataTransfer)==null?void 0:x.files,e.accept);e.uploadFiles(e.multiple?E:E.slice(0,1))}},v=k=>{k.preventDefault(),c("subtract"),l.value===0&&(i.value=!1,c("reset"))},g=k=>{k.preventDefault(),!e.disabled&&!i.value&&(i.value=!0)},y=()=>t.default?$("span",null,[t.default()]):e.listType==="picture-card"?$("div",{class:`${n}-picture-card`},[$("div",{class:`${n}-picture-card-text`},[$(Cf,null,null)]),e.tip&&$("div",{class:`${n}-tip`},[e.tip])]):e.draggable?$("div",{class:[`${n}-drag`,{[`${n}-drag-active`]:i.value}]},[$("div",null,[$(Cf,null,null)]),$("div",{class:`${n}-drag-text`},[i.value?r("upload.dragHover"):r("upload.drag")]),e.tip&&$("div",{class:`${n}-tip`},[e.tip])]):$(Xo,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>$(E0,null,null)}),S=F(()=>[n,{[`${n}-type-picture-card`]:e.listType==="picture-card",[`${n}-draggable`]:e.draggable,[`${n}-disabled`]:e.disabled,[`${n}-hide`]:e.hide}]);return()=>$("span",{ref:s,class:S.value,onClick:d,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:v},[$("input",Ft({ref:a,type:"file",style:{display:"none"},disabled:e.disabled,accept:e.accept,multiple:e.multiple},e.directory?{webkitdirectory:"webkitdirectory"}:{},{onChange:h}),null),y()])}});const cHe=we({name:"IconPause",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dHe=["stroke-width","stroke-linecap","stroke-linejoin"];function fHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1)]),14,dHe)}var FM=ze(cHe,[["render",fHe]]);const Ave=Object.assign(FM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FM.name,FM)}}),hHe=we({name:"IconPlayArrowFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),pHe=["stroke-width","stroke-linecap","stroke-linejoin"];function vHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688L17.533 10.974Z",fill:"currentColor",stroke:"none"},null,-1)]),14,pHe)}var jM=ze(hHe,[["render",vHe]]);const Ive=Object.assign(jM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jM.name,jM)}}),rA=Symbol("ArcoUpload");var Lve=we({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Re("upload-progress"),{t:n}=No(),r=Pn(rA,void 0),i=()=>{var s,l,c,d,h,p,v,g,y,S,k;return e.file.status==="error"?$("span",{class:[r?.iconCls,`${r?.iconCls}-upload`],onClick:()=>r?.onUpload(e.file)},[r?.showRetryButton&&((h=(l=r==null?void 0:(s=r.slots)["retry-icon"])==null?void 0:l.call(s))!=null?h:(d=(c=r?.customIcon)==null?void 0:c.retryIcon)!=null&&d.call(c))||e.listType==="picture-card"?$(E0,null,null):n("upload.retry")]):e.file.status==="done"?$("span",{class:[r?.iconCls,`${r?.iconCls}-success`]},[(k=(S=(v=r==null?void 0:(p=r.slots)["success-icon"])==null?void 0:v.call(p))!=null?S:(y=(g=r?.customIcon)==null?void 0:g.successIcon)==null?void 0:y.call(g))!=null?k:$(rg,null,null)]):e.file.status==="init"?$(Qc,{content:n("upload.start")},{default:()=>{var C,x,E,_,T,D;return[$("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[(D=(T=(x=r==null?void 0:(C=r.slots)["start-icon"])==null?void 0:x.call(C))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.startIcon)==null?void 0:_.call(E))!=null?D:$(Ive,null,null)])]}}):r?.showCancelButton&&$(Qc,{content:n("upload.cancel")},{default:()=>{var C,x,E,_,T,D;return[$("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[(D=(T=(x=r==null?void 0:(C=r.slots)["cancel-icon"])==null?void 0:x.call(C))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.cancelIcon)==null?void 0:_.call(E))!=null?D:$(Ave,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=nHe(e.file.status);return $(ove,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>$("span",{class:t},[a(),i()])}});const mHe=we({name:"IconFilePdf",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),gHe=["stroke-width","stroke-linecap","stroke-linejoin"];function yHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 42h26a2 2 0 0 0 2-2V13.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 31.172 6H11a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2Z"},null,-1),I("path",{d:"M22.305 21.028c.874 1.939 3.506 6.265 4.903 8.055 1.747 2.237 3.494 2.685 4.368 2.237.873-.447 1.21-4.548-7.425-2.685-7.523 1.623-7.424 3.58-6.988 4.476.728 1.193 2.522 2.627 5.678-6.266C25.699 18.79 24.489 17 23.277 17c-1.409 0-2.538.805-.972 4.028Z"},null,-1)]),14,gHe)}var VM=ze(mHe,[["render",yHe]]);const Dve=Object.assign(VM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VM.name,VM)}}),bHe=we({name:"IconFileImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_He=["stroke-width","stroke-linecap","stroke-linejoin"];function SHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m26 33 5-6v6h-5Zm0 0-3-4-4 4h7Zm11 9H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2ZM17 19h1v1h-1v-1Z"},null,-1)]),14,_He)}var zM=ze(bHe,[["render",SHe]]);const ZH=Object.assign(zM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zM.name,zM)}}),kHe=we({name:"IconFileVideo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xHe=["stroke-width","stroke-linecap","stroke-linejoin"];function CHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),I("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1)]),14,xHe)}var UM=ze(kHe,[["render",CHe]]);const JH=Object.assign(UM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UM.name,UM)}}),wHe=we({name:"IconFileAudio",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),EHe=["stroke-width","stroke-linecap","stroke-linejoin"];function THe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm0 0-.951-12.363a.5.5 0 0 1 .58-.532L30 18"},null,-1)]),14,EHe)}var HM=ze(wHe,[["render",THe]]);const QH=Object.assign(HM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HM.name,HM)}});var iie=we({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Re("upload-list")}-item`,{t:r}=No(),i=Pn(rA,void 0),a=()=>{var s,l;let c="";if(e.file.file&&e.file.file.type)c=e.file.file.type;else{const d=(l=(s=e.file.name)==null?void 0:s.split(".")[1])!=null?l:"";["png","jpg","jpeg","bmp","gif","webp"].includes(d)?c="image":["mp4","m2v","mkv","m4v","mov"].includes(d)?c="video":["mp3","wav","wmv","m4a","acc","flac"].includes(d)&&(c="audio")}return c.includes("image")?$(ZH,null,null):c.includes("pdf")?$(Dve,null,null):c.includes("audio")?$(QH,null,null):c.includes("video")?$(JH,null,null):$(lS,null,null)};return()=>{var s,l,c,d,h,p,v,g,y,S,k,C,x,E,_,T,D,P,M,O,L,B,j;return $("div",{class:[n,`${n}-${e.file.status}`]},[$("div",{class:`${n}-content`},[i?.listType==="picture"&&$("span",{class:`${n}-thumbnail`},[(c=(l=i==null?void 0:(s=i.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:$("img",Ft({src:e.file.url,alt:e.file.name},i?.imageLoading?{loading:i.imageLoading}:void 0),null)]),$("div",{class:`${n}-name`},[i?.listType==="text"&&$("span",{class:`${n}-file-icon`},[(y=(g=(h=i==null?void 0:(d=i.slots)["file-icon"])==null?void 0:h.call(d,{fileItem:e.file}))!=null?g:(v=(p=i?.customIcon)==null?void 0:p.fileIcon)==null?void 0:v.call(p,e.file))!=null?y:a()]),i?.showLink&&e.file.url?$("a",Ft({class:`${n}-name-link`,target:"_blank",href:e.file.url},i?.download?{download:e.file.name}:void 0),[(_=(E=(k=i==null?void 0:(S=i.slots)["file-name"])==null?void 0:k.call(S,{fileItem:e.file}))!=null?E:(x=(C=i?.customIcon)==null?void 0:C.fileName)==null?void 0:x.call(C,e.file))!=null?_:e.file.name]):$("span",{class:`${n}-name-text`,onClick:()=>i?.onPreview(e.file)},[(L=(O=(D=i==null?void 0:(T=i.slots)["file-name"])==null?void 0:D.call(T,{fileItem:e.file}))!=null?O:(M=(P=i?.customIcon)==null?void 0:P.fileName)==null?void 0:M.call(P,e.file))!=null?L:e.file.name]),e.file.status==="error"&&$(Qc,{content:r("upload.error")},{default:()=>{var H,U,K,Y,ie,te;return[$("span",{class:[i?.iconCls,`${i?.iconCls}-error`]},[(te=(ie=(U=i==null?void 0:(H=i.slots)["error-icon"])==null?void 0:U.call(H))!=null?ie:(Y=(K=i?.customIcon)==null?void 0:K.errorIcon)==null?void 0:Y.call(K))!=null?te:$(If,null,null)])]}})]),$(Lve,{file:e.file,listType:e.listType},null)]),i?.showRemoveButton&&$("span",{class:`${n}-operation`},[$(Lo,{onClick:()=>{var H;return(H=i?.onRemove)==null?void 0:H.call(i,e.file)}},{default:()=>{var H,U,K,Y,ie,te;return[$("span",{class:[i?.iconCls,`${i?.iconCls}-remove`]},[(te=(ie=(U=i==null?void 0:(H=i.slots)["remove-icon"])==null?void 0:U.call(H))!=null?ie:(Y=(K=i?.customIcon)==null?void 0:K.removeIcon)==null?void 0:Y.call(K))!=null?te:$(Pu,null,null)])]}})]),(j=i==null?void 0:(B=i.slots)["extra-button"])==null?void 0:j.call(B,{fileItem:e.file})])}}}),oie=we({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Re("upload-list")}-picture`,r=F(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),i=Pn(rA,void 0),a=()=>{var s,l,c,d,h,p,v,g,y,S,k,C,x,E,_,T,D,P,M,O,L,B,j,H,U,K,Y,ie,te;return e.file.status==="uploading"?$(Lve,{file:e.file,listType:"picture-card"},null):$(Pt,null,[(c=(l=i==null?void 0:(s=i.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:$("img",Ft({src:e.file.url,alt:e.file.name},i?.imageLoading?{loading:i.imageLoading}:void 0),null),$("div",{class:`${n}-mask`},[e.file.status==="error"&&i?.showCancelButton&&$("div",{class:`${n}-error-tip`},[$("span",{class:[i?.iconCls,`${i?.iconCls}-error`]},[(y=(g=(h=i==null?void 0:(d=i.slots)["error-icon"])==null?void 0:h.call(d))!=null?g:(v=(p=i?.customIcon)==null?void 0:p.errorIcon)==null?void 0:v.call(p))!=null?y:$(z5,null,null)])]),$("div",{class:`${n}-operation`},[e.file.status!=="error"&&i?.showPreviewButton&&$("span",{class:[i?.iconCls,`${i?.iconCls}-preview`],onClick:()=>i?.onPreview(e.file)},[(_=(E=(k=i==null?void 0:(S=i.slots)["preview-icon"])==null?void 0:k.call(S))!=null?E:(x=(C=i?.customIcon)==null?void 0:C.previewIcon)==null?void 0:x.call(C))!=null?_:$(x0,null,null)]),["init","error"].includes(e.file.status)&&i?.showRetryButton&&$("span",{class:[i?.iconCls,`${i?.iconCls}-upload`],onClick:()=>i?.onUpload(e.file)},[(L=(O=(D=i==null?void 0:(T=i.slots)["retry-icon"])==null?void 0:D.call(T))!=null?O:(M=(P=i?.customIcon)==null?void 0:P.retryIcon)==null?void 0:M.call(P))!=null?L:$(E0,null,null)]),!i?.disabled&&i?.showRemoveButton&&$("span",{class:[i?.iconCls,`${i?.iconCls}-remove`],onClick:()=>i?.onRemove(e.file)},[(Y=(K=(j=i==null?void 0:(B=i.slots)["remove-icon"])==null?void 0:j.call(B))!=null?K:(U=(H=i?.customIcon)==null?void 0:H.removeIcon)==null?void 0:U.call(H))!=null?Y:$(Pu,null,null)]),(te=i==null?void 0:(ie=i.slots)["extra-button"])==null?void 0:te.call(ie,e.file)])])])};return()=>$("span",{class:r.value},[a()])}}),AHe=we({name:"UploadList",components:{UploadListItem:iie,UploadPictureItem:oie},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Re("upload"),r=F(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),i=(a,s)=>Sn(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?$(oie,{file:a,key:`item-${s}`},null):$(iie,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>$(o3,{tag:"div",class:r.value},{default:()=>{var a;return[...e.fileList.map((s,l)=>i(s,l)),e.listType==="picture-card"&&((a=t["upload-button"])==null?void 0:a.call(t))]}})}}),WM=we({name:"Upload",props:{fileList:{type:Array,default:void 0},defaultFileList:{type:Array,default:()=>[]},accept:String,action:String,disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tip:String,headers:{type:Object},data:{type:[Object,Function]},name:{type:[String,Function]},withCredentials:{type:Boolean,default:!1},customRequest:{type:Function},limit:{type:Number,default:0},autoUpload:{type:Boolean,default:!0},showFileList:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showRetryButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showUploadButton:{type:[Boolean,Object],default:!0},showPreviewButton:{type:Boolean,default:!0},download:{type:Boolean,default:!1},showLink:{type:Boolean,default:!0},imageLoading:{type:String},listType:{type:String,default:"text"},responseUrlKey:{type:[String,Function]},customIcon:{type:Object},imagePreview:{type:Boolean,default:!1},onBeforeUpload:{type:Function},onBeforeRemove:{type:Function},onButtonClick:{type:Function}},emits:{"update:fileList":e=>!0,exceedLimit:(e,t)=>!0,change:(e,t)=>!0,progress:(e,t)=>!0,preview:e=>!0,success:e=>!0,error:e=>!0},setup(e,{emit:t,slots:n}){const{fileList:r,disabled:i,listType:a,customIcon:s,showRetryButton:l,showCancelButton:c,showRemoveButton:d,showPreviewButton:h,imageLoading:p,download:v,showLink:g}=tn(e),y=Re("upload"),{mergedDisabled:S,eventHandlers:k}=Do({disabled:i}),C=ue([]),x=new Map,E=new Map,_=F(()=>e.limit>0&&C.value.length>=e.limit),T=re=>{x.clear();const Ce=re?.map((Ve,ge)=>{var xe,Ge,tt;const Ue=(xe=Ve.status)!=null?xe:"done",_e=qt({...Ve,uid:(Ge=Ve.uid)!=null?Ge:`${Date.now()}${ge}`,status:Ue,percent:(tt=Ve.percent)!=null?tt:["error","init"].indexOf(Ue)>-1?0:1});return x.set(_e.uid,_e),_e});C.value=Ce??[]};T(e.defaultFileList),It(r,re=>{re&&T(re)},{immediate:!0,deep:!0});const D=re=>{var Ce,Ve;t("update:fileList",C.value),t("change",C.value,re),(Ve=(Ce=k.value)==null?void 0:Ce.onChange)==null||Ve.call(Ce)},P=(re,Ce)=>{for(const Ve of C.value)if(Ve.uid===re){Ve.file=Ce,D(Ve);break}},M=re=>{const Ce=(tt,Ue)=>{const _e=x.get(re.uid);_e&&(_e.status="uploading",_e.percent=tt,t("progress",_e,Ue),D(_e))},Ve=tt=>{const Ue=x.get(re.uid);Ue&&(Ue.status="done",Ue.percent=1,Ue.response=tt,e.responseUrlKey&&(Sn(e.responseUrlKey)?Ue.url=e.responseUrlKey(Ue):tt[e.responseUrlKey]&&(Ue.url=tt[e.responseUrlKey])),E.delete(Ue.uid),t("success",Ue),D(Ue))},ge=tt=>{const Ue=x.get(re.uid);Ue&&(Ue.status="error",Ue.percent=0,Ue.response=tt,E.delete(Ue.uid),t("error",Ue),D(Ue))},xe={fileItem:re,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:Ce,onSuccess:Ve,onError:ge};re.status="uploading",re.percent=0;const Ge=Sn(e.customRequest)?e.customRequest(xe):rHe(xe);E.set(re.uid,Ge),D(re)},O=re=>{var Ce;const Ve=E.get(re.uid);if(Ve){(Ce=Ve.abort)==null||Ce.call(Ve),E.delete(re.uid);const ge=x.get(re.uid);ge&&(ge.status="error",ge.percent=0,D(ge))}},L=re=>{if(re){const Ce=x.get(re.uid);Ce&&M(Ce)}else for(const Ce of C.value)Ce.status==="init"&&M(Ce)},B=async(re,Ce)=>{const Ve=`${Date.now()}-${Ce}`,ge=oHe(re)?URL.createObjectURL(re):void 0,xe=qt({uid:Ve,file:re,url:ge,name:re.name,status:"init",percent:0});x.set(Ve,xe),C.value=[...C.value,xe],D(xe),e.autoUpload&&M(xe)},j=re=>{if(e.limit>0&&C.value.length+re.length>e.limit){t("exceedLimit",C.value,re);return}for(let Ce=0;Ce{ge&&B(Tl(ge)?Ve:ge,Ce)}).catch(ge=>{console.error(ge)}):B(Ve,Ce)}},H=re=>{C.value=C.value.filter(Ce=>Ce.uid!==re.uid),D(re)},U=re=>{Sn(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(re)).then(Ce=>{Ce&&H(re)}).catch(Ce=>{console.error(Ce)}):H(re)},K=re=>{if(e.imagePreview&&re.url){const Ce=se.value.indexOf(re.url);Ce>-1&&(W.value=Ce,te.value=!0)}t("preview",re)};ri(rA,qt({disabled:S,listType:a,iconCls:`${y}-icon`,showRemoveButton:d,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:g,imageLoading:p,download:v,customIcon:s,slots:n,onUpload:M,onAbort:O,onRemove:U,onPreview:K}));const Y=F(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),ie=()=>{const re=$(uHe,{key:"arco-upload-button",disabled:S.value,draggable:e.draggable,listType:e.listType,uploadFiles:j,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||_.value&&!(gr(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:Y.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?$("span",null,[re,$("div",{class:`${y}-tip`},[e.tip])]):re},te=ue(!1),W=ue(0),q=re=>{W.value=re},Q=re=>{te.value=re},se=F(()=>C.value.filter(re=>!!re.url).map(re=>re.url));return{prefixCls:y,render:()=>e.showFileList?$("div",{class:[`${y}-wrapper`,`${y}-wrapper-type-${e.listType}`]},[e.imagePreview&&se.value.length>0&&$(cb,{srcList:se.value,visible:te.value,current:W.value,onChange:q,onVisibleChange:Q},null),e.listType!=="picture-card"&&e.showUploadButton&&ie(),$(AHe,{fileList:C.value,listType:e.listType},{"upload-button":ie,"upload-item":n["upload-item"]})]):e.showUploadButton&&ie(),innerSubmit:L,innerAbort:O,innerUpdateFile:P,innerUpload:j}},methods:{submit(e){return this.innerSubmit(e)},abort(e){return this.innerAbort(e)},updateFile(e,t){return this.innerUpdateFile(e,t)},upload(e){return this.innerUpload(e)}},render(){return this.render()}});const IHe=Object.assign(WM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+WM.name,WM)}});var GM=we({name:"OverflowList",props:{min:{type:Number,default:0},margin:{type:Number,default:8},from:{type:String,default:"end"}},emits:{change:e=>!0},setup(e,{emit:t,slots:n}){const r=Re("overflow-list"),i=ue(),a=ue(),s=ue(),l={},c=[],d=ue(0),h=ue(0),p=F(()=>h.value>0),v=ue(0),g=F(()=>e.from==="start");It(d,(k,C)=>{h.value>0&&(h.value+=k-C,h.value<0&&(h.value=0))}),It(h,k=>{t("change",k)});const y=()=>{var k,C,x;if(i.value&&l.value&&s.value){const E=s.value.offsetWidth;if(E>1&&(h.value===0||Ey(),{flush:"post"}),hn(()=>{s.value&&s.value.offsetWidth<1&&y()});const S=()=>{var k,C;const x=g.value?{marginRight:`${e.margin}px`}:void 0;return $("div",{ref:a,class:`${r}-overflow`,style:x},[(C=(k=n.overflow)==null?void 0:k.call(n,{number:h.value}))!=null?C:$(bH,null,{default:()=>[He("+"),h.value]})])};return()=>{var k,C;l.value=yf((k=n.default)==null?void 0:k.call(n)),d.value!==l.value.length&&(d.value=l.value.length,c.length=d.value);let x=l.value;h.value>0&&(x=g.value?l.value.slice(h.value):l.value.slice(0,-h.value));const E=h.value===0||g.value?x.length-1:x.length;for(let _=0;_0&&S(),x,!g.value&&h.value>0&&S(),$(C0,{onResize:y},{default:()=>[$("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const LHe=Object.assign(GM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+GM.name,GM)}});var KM=we({name:"VerificationCode",props:{modelValue:String,defaultValue:{type:String,default:""},length:{type:Number,default:6},size:{type:String},disabled:Boolean,masked:Boolean,readonly:Boolean,error:{type:Boolean,default:!1},separator:{type:Function},formatter:{type:Function}},emits:{"update:modelValue":e=>!0,change:e=>!0,finish:e=>!0,input:(e,t,n)=>!0},setup(e,{emit:t}){const n=Re("verification-code"),r=Re("input"),i=ue([]),a=F(()=>{var k;return(k=e.modelValue)!=null?k:e.defaultValue}),s=F(()=>e.masked?"password":"text"),l=F(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=F(()=>{const k=String(a.value).split("");return new Array(e.length).fill("").map((C,x)=>ere(k[x])?String(k[x]):"")}),d=ue(c.value);It(a,()=>{d.value=c.value});const h=()=>{const k=d.value.join("").trim();t("update:modelValue",k),t("change",k),k.length===e.length&&t("finish",k),v()},p=k=>i?.value[k].focus(),v=k=>{if(!(ere(k)&&d.value[k])){for(let C=0;C{k.preventDefault();const{clipboardData:x}=k,E=x?.getData("text");E&&(E.split("").forEach((_,T)=>{if(!(C+T>=e.length)){if(Sn(e.formatter)){const D=e.formatter(_,C+T,d.value.join(""));if(D===!1){C-=1;return}ds(D)&&(_=D.charAt(0))}d.value[C+T]=_}}),h())},y=(k,C)=>{const x=C.code||C.key;x===gpe.code&&!d.value[k]?(C.preventDefault(),d.value[Math.max(k-1,0)]="",h()):x===LDe.code&&k>0?(C.preventDefault(),p(k-1)):x===DDe.code&&d.value[k]&&k{let E=(C||"").trim().charAt(C.length-1);if(t("input",E,k,x),Sn(e.formatter)){const _=e.formatter(E,k,d.value.join(""));if(_===!1)return;ds(_)&&(E=_.charAt(0))}d.value[k]=E,h()};return()=>$("div",{class:n},[d.value.map((k,C)=>{var x;return $(Pt,null,[$(F0,{key:C,ref:E=>i.value[C]=E,type:s.value,class:l.value,modelValue:k,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>v(C),onInput:(E,_)=>S(C,E,_),onKeydown:E=>y(C,E),onPaste:E=>g(E,C)},null),(x=e.separator)==null?void 0:x.call(e,C,k)])})])}});const DHe=Object.assign(KM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+KM.name,KM)}}),PHe=typeof window<"u"?window:void 0;function RHe(e){var t;const n=rt(e);return(t=n?.$el)!=null?t:n}function MHe(e){return p5()?(MU(e),!0):!1}function Pve(e,t,n={}){const{window:r=PHe,...i}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=It(()=>RHe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,i))},{immediate:!0}),d=()=>{l(),c()};return MHe(d),{isSupported:a,stop:d}}const qM="arco-theme",Ix={Dark:"dark",Light:"light"},$He=e=>{const t=ue(Ix.Light),n=i=>{t.value=i},r=i=>i.getAttribute(qM)===Ix.Dark?Ix.Dark:Ix.Light;return Pve(document.body,i=>{for(const a of i)if(a.type==="attributes"&&a.attributeName===qM){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[qM],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function OHe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function BHe(e){return Object.entries(e).map(([t,n])=>`${OHe(t)}:${n}`).join(";")}function NHe(e){const t=e.getContext("2d");if(!t)return;const n=t.getImageData(0,0,e.width,e.height),{data:r}=n;for(let i=0;i[90,90]},offset:{type:Array},rotate:{type:Number,default:-22},font:{type:Object},zIndex:{type:Number,default:6},alpha:{type:Number,default:1},antiTamper:{type:Boolean,default:!0},grayscale:{type:Boolean,default:!1},repeat:{type:Boolean,default:!0},staggered:{type:Boolean,default:!0}},setup(e,{slots:t,attrs:n}){const{width:r,height:i,image:a,rotate:s,alpha:l,repeat:c,grayscale:d}=tn(e),h=Re("watermark"),p=window.devicePixelRatio||1,v=f0(),g=ue(new Map),y=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.fontSize)!=null?q:16}),S=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.fontWeight)!=null?q:"normal"}),k=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.fontStyle)!=null?q:"normal"}),C=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.fontFamily)!=null?q:"sans-serif"}),x=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.textAlign)!=null?q:"center"}),E=F(()=>nr(e.content)?e.content:[e.content]),_=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.color)!=null?q:te.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),T=F(()=>{var W,q;return(q=(W=e.gap)==null?void 0:W[0])!=null?q:90}),D=F(()=>{var W,q;return(q=(W=e.gap)==null?void 0:W[1])!=null?q:90}),P=F(()=>T.value/2),M=F(()=>D.value/2),O=F(()=>{var W,q;return(q=(W=e.offset)==null?void 0:W[0])!=null?q:P.value}),L=F(()=>{var W,q;return(q=(W=e.offset)==null?void 0:W[1])!=null?q:M.value}),B=F(()=>{var W;const q=O.value-P.value,Q=L.value-M.value;return{position:"absolute",left:q>0?`${q}px`:0,top:Q>0?`${Q}px`:0,width:q>0?`calc(100% - ${q}px)`:"100%",height:Q>0?`calc(100% - ${Q}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${q>0?0:q}px ${Q>0?0:Q}px`,zIndex:(W=e.zIndex)!=null?W:6}}),j=F(()=>e.repeat&&e.staggered),H=(W,q)=>{var Q;if(v.value){const se=g.value.get(v.value);se&&(v.value.contains(se)&&v.value.removeChild(se),g.value.delete(v.value));const ae=document.createElement("div");ae.setAttribute("style",BHe({...B.value,backgroundImage:`url('${W}')`,backgroundSize:`${q}px`})),(Q=v.value)==null||Q.append(ae),g.value.set(v.value,ae)}},U=W=>{var q,Q;let se=120,ae=28;if(!a.value&&W.measureText){W.font=`${y.value}px ${C.value}`;const re=E.value.map(Ce=>W.measureText(Ce).width);se=Math.ceil(Math.max(...re)),ae=y.value*E.value.length+(E.value.length-1)*3}return[(q=r.value)!=null?q:se,(Q=i.value)!=null?Q:ae]},K=()=>{var W;const q=document.createElement("canvas"),Q=q.getContext("2d");if(!Q)return;const[se,ae]=U(Q),re=se*p,Ce=ae*p,Ve=(T.value+se)*p,ge=(D.value+ae)*p,xe=T.value/2*p,Ge=D.value/2*p,tt=Ve/2,Ue=ge/2,_e=j.value?2:1,ve=(T.value+se)*_e;q.width=Ve*_e,q.height=ge*_e,Q.globalAlpha=l.value,Q.save(),Q.translate(tt,Ue),Q.rotate(Math.PI/180*s.value),Q.translate(-tt,-Ue);const me=()=>{Q.restore(),j.value&&Q.drawImage(q,0,0,Ve,ge,Ve,ge,Ve,ge),d.value&&NHe(q),H(q.toDataURL(),ve)};if(a.value){const Oe=new Image;Oe.onload=()=>{Q.drawImage(Oe,xe,Ge,re,Ce),me()},Oe.crossOrigin="anonymous",Oe.referrerPolicy="no-referrer",Oe.src=a.value}else{const Oe=Number(y.value)*p;Q.font=`${k.value} normal ${S.value} ${Oe}px/${ae}px ${C.value}`,Q.fillStyle=_.value,Q.textAlign=x.value,Q.textBaseline="top",Q.translate(re/2,0),(W=E.value)==null||W.forEach((qe,Ke)=>{Q.fillText(qe??"",xe,Ge+Ke*(Oe+3*p))}),me()}},Y=W=>Array.from(g.value.values()).includes(W),ie=W=>{if(e.antiTamper)for(const q of W){const Q=Array.from(q.removedNodes).some(ae=>Y(ae)),se=q.type==="attributes"&&Y(q.target);if(Q||se){K();break}}},{theme:te}=$He(K);return hn(()=>{K(),Pve(v.value,ie,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),It(e,K,{deep:!0,flush:"post"}),()=>{var W;return $("div",Ft({ref:v,class:h,style:{position:"relative",overflow:"hidden"}},n),[(W=t.default)==null?void 0:W.call(t)])}}});const FHe=Object.assign(YM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+YM.name,YM)}});function jHe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var VHe=we({name:"TreeSelectPanel",components:{Tree:_V},props:{treeProps:{type:Object,default:()=>({})},selectedKeys:{type:Array},showCheckable:{type:Boolean},treeSlots:{type:Object,default:()=>({})},scrollbar:{type:[Boolean,Object],default:!0}},emits:["change"],setup(e,{emit:t}){const{showCheckable:n,selectedKeys:r,treeProps:i,scrollbar:a}=tn(e),{displayScrollbar:s,scrollbarProps:l}=F5(a),c=Re("tree-select"),d=ue(),h=F(()=>({...i.value,disableSelectActionOnly:!0,checkedKeys:n.value?r.value:[],selectedKeys:n.value?[]:r.value})),p=(y,S)=>{var k,C;n.value?(C=(k=d.value)==null?void 0:k.toggleCheck)==null||C.call(k,y[0],S):t("change",y)},v=y=>{t("change",y)},g=()=>$(_V,Ft({ref:d},h.value,{onSelect:p,onCheck:v}),e.treeSlots);return()=>{if(s.value){let y;return $(Rd,Ft({class:`${c}-tree-wrapper`},l.value),jHe(y=g())?y:{default:()=>[y]})}return $("div",{class:`${c}-tree-wrapper`},[g()])}}});function eW(e){return gr(e)}function Rve(e){return e!=null&&e!==""}function tW(e){return eW(e)?e.value:e}function zHe(e){return eW(e)?e.label:void 0}function sie(e){const t=tW(e);return Rve(t)}function aie(e){return e.map(tW).filter(Rve)}function UHe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:i,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=tn(e);function d(_){const T=(nr(_)?_:[_]).filter(sie);return a?.value||s?.value?T:T.slice(0,1)}function h(_,T){const D=[],P=_?_.filter(sie):[];if(P.length){const M=new Map;T?.forEach(O=>{M.set(O.value,O)}),P.forEach(O=>{var L,B,j,H,U;const K=tW(O),Y=M.get(K),ie=i.value.get(K);let te=null;const W=((L=c?.value)==null?void 0:L.title)||"title";if(!ie){const q=Sn(l?.value)?l?.value(K):l?.value;if(q===!1)return;gr(q)&&(te=q)}D.push({...eW(O)?O:{},...Y||{},value:K,label:(U=(H=(j=(B=zHe(O))!=null?B:ie?.title)!=null?j:Y?.label)!=null?H:te?.[W])!=null?U:K})})}return D}const p=ue(),v=ue();Os(()=>{var _;const T=r?.value!==void 0,D=d((_=r?.value)!=null?_:[]),P=aie(D);v.value=T?h(P,h(D)):void 0,p.value=T?P:void 0});const g=d((t=n?.value)!=null?t:[]),y=aie(g),S=h(y,h(g)),k=ue(y||[]),C=ue(S);It(k,()=>{C.value=h(k.value,S)}),It([p,v],([_,T])=>{k.value=_||[],C.value=T||[]});const x=F(()=>{var _;return(_=p.value)!=null?_:k.value}),E=F(()=>{var _;return(_=v.value)!=null?_:C.value});return{selectedKeys:x,selectedValue:E,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:C}}function HHe(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:i,fieldNames:a}=tn(e),s=F(()=>{var y;return((y=a.value)==null?void 0:y.key)||"key"}),l=(y,S)=>{const k=S[s.value];return!xn(k)&&String(k).indexOf(y)>-1},c=F(()=>r?.value||l),d=ue(),h=F(()=>!!t.value),p=F(()=>!i?.value&&h.value&&d.value&&d.value.size===0),v=F(()=>i?.value?void 0:y=>{var S,k;if(!h.value)return!0;const C=y[s.value];return(k=(S=d.value)==null?void 0:S.has(C||""))!=null?k:!1}),g=o_((y,S)=>{const k=y.filter(x=>c.value(S,x.treeNodeData)),C=new Set;k.forEach(x=>{C.add(x.key),x.pathParentKeys.forEach(E=>{C.add(E)})}),d.value=C},100);return Os(()=>{i?.value?d.value=void 0:g(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:v}}function WHe(e,t){const n=`${t}-slot-`;return Object.keys(e).reduce((i,a)=>{if(a.startsWith(n)){const s=a.slice(n.length);s&&(i[s]=e[a])}return i},{})}const GHe=we({name:"TreeSelect",components:{Trigger:va,SelectView:G8,Panel:VHe,Empty:Xh,Spin:Pd},inheritAttrs:!1,props:{disabled:{type:Boolean},loading:{type:Boolean},error:{type:Boolean},size:{type:String},border:{type:Boolean,default:!0},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowClear:{type:Boolean},placeholder:{type:String},maxTagCount:{type:Number},multiple:{type:Boolean},defaultValue:{type:[String,Number,Array,Object]},modelValue:{type:[String,Number,Array,Object]},fieldNames:{type:Object},data:{type:Array,default:()=>[]},labelInValue:{type:Boolean},treeCheckable:{type:Boolean},treeCheckStrictly:{type:Boolean},treeCheckedStrategy:{type:String,default:"all"},treeProps:{type:Object},triggerProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},dropdownStyle:{type:Object},dropdownClassName:{type:[String,Array]},filterTreeNode:{type:Function},loadMore:{type:Function},disableFilter:{type:Boolean},popupContainer:{type:[String,Object]},fallbackOption:{type:[Boolean,Function],default:!0},selectable:{type:[Boolean,String,Function],default:!0},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},inputValue:{type:String},defaultInputValue:{type:String,default:""}},emits:{change:e=>!0,"update:modelValue":e=>!0,"update:inputValue":e=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,search:e=>!0,clear:()=>!0,inputValueChange:e=>!0},setup(e,{emit:t,slots:n}){var r,i,a;const{defaultValue:s,modelValue:l,multiple:c,popupVisible:d,defaultPopupVisible:h,treeCheckable:p,treeCheckStrictly:v,data:g,fieldNames:y,disabled:S,labelInValue:k,filterTreeNode:C,disableFilter:x,dropdownStyle:E,treeProps:_,fallbackOption:T,selectable:D,dropdownClassName:P}=tn(e),{mergedDisabled:M,eventHandlers:O}=Do({disabled:S}),L=Re("tree-select"),B=Pn(Za,void 0),j=(a=(i=B==null?void 0:(r=B.slots).empty)==null?void 0:i.call(r,{component:"tree-select"}))==null?void 0:a[0],H=F(()=>c.value||p.value),U=(ct,wt)=>{var Ct;return D.value==="leaf"?wt.isLeaf:Sn(D.value)?D.value(ct,wt):(Ct=D.value)!=null?Ct:!1},K=F(()=>p.value?U:!1),Y=F(()=>gr(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:ie,key2TreeNode:te}=wve(qt({treeData:g,fieldNames:y,selectable:U,checkable:K})),{selectedKeys:W,selectedValue:q,setLocalSelectedKeys:Q,localSelectedKeys:se,localSelectedValue:ae}=UHe(qt({defaultValue:s,modelValue:l,key2TreeNode:te,multiple:c,treeCheckable:p,treeCheckStrictly:v,fallbackOption:T,fieldNames:y}));function re(ct){return p.value?ym(ct):vV(ct)}const Ce=F(()=>xn(q.value)?[]:H.value&&!M.value?q.value.map(ct=>{const wt=te.value.get(ct.value);return{...ct,closable:!wt||re(wt)}}):q.value),Ve=ct=>{Q(ct),dn(()=>{var wt,Ct;const Rt=(k.value?ae.value:se.value)||[],Ht=H.value?Rt:Rt[0];t("update:modelValue",Ht),t("change",Ht),(Ct=(wt=O.value)==null?void 0:wt.onChange)==null||Ct.call(wt)})},ge=ue(e.defaultInputValue),xe=F(()=>{var ct;return(ct=e.inputValue)!=null?ct:ge.value}),Ge=ct=>{ge.value=ct,t("update:inputValue",ct),t("inputValueChange",ct)},tt=ct=>{ct!==xe.value&&(ve(!0),Ge(ct),e.allowSearch&&t("search",ct))},[Ue,_e]=pa(h.value,qt({value:d})),ve=ct=>{ct!==Ue.value&&(_e(ct),t("popup-visible-change",ct),t("update:popupVisible",ct)),ct||Ke.value&&Ke.value.blur&&Ke.value.blur()},{isEmptyFilterResult:me,filterTreeNode:Oe}=HHe(qt({searchValue:xe,flattenTreeData:ie,filterMethod:C,disableFilter:x,fieldNames:y})),qe=F(()=>!ie.value.length||me.value),Ke=ue(),at=F(()=>{var ct;return[E?.value||{},(ct=_?.value)!=null&&ct.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:Ke,prefixCls:L,TreeSelectEmpty:j,selectedValue:q,selectedKeys:W,mergedDisabled:M,searchValue:xe,panelVisible:Ue,isEmpty:qe,computedFilterTreeNode:Oe,isMultiple:H,selectViewValue:Ce,computedDropdownStyle:at,onSearchValueChange:tt,onSelectChange(ct){Ve(ct),!Y.value&&xe.value&&Ge(""),H.value||ve(!1)},onVisibleChange:ve,onInnerClear(){Ve([]),t("clear")},pickSubCompSlots:WHe,isSelectable:U,isCheckable:K,onBlur:()=>{!Y.value&&xe.value&&Ge("")},onItemRemove(ct){if(M.value)return;const wt=te.value.get(ct);if(p.value&&wt){if(re(wt)){const[Ct]=yV({node:wt,checked:!1,checkedKeys:W.value,indeterminateKeys:[],checkStrictly:v.value});Ve(Ct)}}else{const Ct=W.value.filter(Rt=>Rt!==ct);Ve(Ct)}}}}});function KHe(e,t,n,r,i,a){const s=Te("SelectView"),l=Te("Spin"),c=Te("Panel"),d=Te("Trigger");return z(),Ze(d,Ft({class:`${e.prefixCls}-trigger`,"auto-fit-popup-min-width":"",trigger:"click",position:"bl","popup-offset":4,"animation-name":"slide-dynamic-origin","prevent-focus":!0},e.triggerProps,{disabled:e.mergedDisabled,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,"click-to-close":!e.allowSearch,"auto-fit-transform-origin":"",onPopupVisibleChange:e.onVisibleChange}),{content:fe(()=>[I("div",{class:de([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:Ye(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(z(),X("div",{key:0,class:de(`${e.prefixCls}-header`)},[mt(e.$slots,"header")],2)):Ie("v-if",!0),e.loading?mt(e.$slots,"loader",{key:1},()=>[$(l)]):e.isEmpty?mt(e.$slots,"empty",{key:2},()=>[(z(),Ze(wa(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(z(),Ze(c,{key:3,"selected-keys":e.selectedKeys,"show-checkable":e.treeCheckable,scrollbar:e.scrollbar,"tree-props":{actionOnNodeClick:e.selectable==="leaf"?"expand":void 0,blockNode:!0,...e.treeProps,data:e.data,checkStrictly:e.treeCheckStrictly,checkedStrategy:e.treeCheckedStrategy,fieldNames:e.fieldNames,multiple:e.multiple,loadMore:e.loadMore,filterTreeNode:e.computedFilterTreeNode,size:e.size,checkable:e.isCheckable,selectable:e.isSelectable,searchValue:e.searchValue},"tree-slots":e.pickSubCompSlots(e.$slots,"tree"),onChange:e.onSelectChange},null,8,["selected-keys","show-checkable","scrollbar","tree-props","tree-slots","onChange"])),e.$slots.footer&&(!e.isEmpty||e.showFooterOnEmpty)?(z(),X("div",{key:4,class:de(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer")],2)):Ie("v-if",!0)],6)]),default:fe(()=>[mt(e.$slots,"trigger",{},()=>[$(s,Ft({ref:"refSelectView","model-value":e.selectViewValue,"input-value":e.searchValue,"allow-search":!!e.allowSearch,"allow-clear":e.allowClear,loading:e.loading,size:e.size,"max-tag-count":e.maxTagCount,disabled:e.mergedDisabled,opened:e.panelVisible,error:e.error,bordered:e.border,placeholder:e.placeholder,multiple:e.isMultiple},e.$attrs,{onInputValueChange:e.onSearchValueChange,onClear:e.onInnerClear,onRemove:e.onItemRemove,onBlur:e.onBlur}),yo({_:2},[e.$slots.prefix?{name:"prefix",fn:fe(()=>[mt(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:fe(h=>[mt(e.$slots,"label",qi(xa(h)))]),key:"1"}:void 0]),1040,["model-value","input-value","allow-search","allow-clear","loading","size","max-tag-count","disabled","opened","error","bordered","placeholder","multiple","onInputValueChange","onClear","onRemove","onBlur"])])]),_:3},16,["class","disabled","popup-visible","popup-container","click-to-close","onPopupVisibleChange"])}var XM=ze(GHe,[["render",KHe]]);const qHe=Object.assign(XM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+XM.name,XM)}}),SV={Button:Xo,Link:v0e,Typography:tHe,Divider:gOe,Grid:P4,Layout:BNe,Space:DVe,Avatar:GPe,Badge:nRe,Calendar:Vpe,Card:wMe,Carousel:FMe,Collapse:r9e,Comment:$9e,ColorPicker:A9e,Descriptions:mOe,Empty:Xh,Image:fNe,Scrollbar:Rd,List:Z0e,Popover:mH,Statistic:zVe,Table:Ize,Tabs:zze,Tag:bH,Timeline:Zze,Tooltip:Qc,AutoComplete:OPe,Cascader:qMe,Checkbox:Wc,DatePicker:x0e,Form:pBe,Input:F0,InputNumber:rS,InputTag:Fpe,Mention:lFe,Radio:Mm,Rate:qje,Select:s_,Slider:LVe,Switch:ZVe,Textarea:J0e,TimePicker:Kze,Transfer:aUe,Tree:_V,Upload:IHe,TreeSelect:qHe,Alert:ppe,Drawer:lV,Message:yt,Modal:Xl,Notification:hV,Popconfirm:oje,Progress:ove,Result:iVe,Spin:Pd,Skeleton:dVe,Breadcrumb:TRe,Dropdown:Lpe,Menu:OFe,PageHeader:nje,Pagination:OH,Steps:KVe,Affix:R7e,Anchor:CDe,BackTop:JPe,ConfigProvider:N9e,ResizeBox:q0e,Trigger:va,Split:$Ve,Icon:bBe,OverflowList:LHe,Watermark:FHe,VerificationCode:DHe},YHe=(e,t)=>{for(const n of Object.keys(SV))e.use(SV[n],t)},XHe={...SV,Alter:ppe,AnchorLink:nw,AvatarGroup:lw,BreadcrumbItem:ob,ButtonGroup:rb,Calendar:Vpe,CardMeta:xw,CardGrid:Cw,CarouselItem:ww,CascaderPanel:Ew,CheckboxGroup:ib,CollapseItem:Tw,DescriptionsItem:Mw,WeekPicker:Iw,MonthPicker:Lw,YearPicker:Dw,QuarterPicker:Pw,RangePicker:Rw,Doption:uy,Dgroup:cw,Dsubmenu:dw,DropdownButton:fw,FormItem:Bw,Row:lb,Col:ub,GridItem:Ow,ImagePreview:cy,ImagePreviewAction:eT,ImagePreviewGroup:cb,InputGroup:ly,InputSearch:rw,InputPassword:iw,LayoutHeader:Fw,LayoutContent:jw,LayoutFooter:Vw,LayoutSider:zw,ListItem:Uw,ListItemMeta:Hw,MenuItem:Ww,MenuItemGroup:Gw,SubMenu:db,RadioGroup:ab,Option:pm,Optgroup:sb,SkeletonLine:Yw,SkeletonShape:Xw,Countdown:Zw,Step:Jw,Thead:hb,Td:i0,Th:vb,Tr:Sh,Tbody:pb,TableColumn:Qw,TabPane:eE,TimelineItem:fy,TypographyParagraph:tE,TypographyTitle:nE,TypographyText:rE,install:YHe,addI18nMessages:e7e,useLocale:t7e,getLocale:n7e,useFormItem:Do},ZHe=we({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),JHe=["stroke-width","stroke-linecap","stroke-linejoin"];function QHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1)]),14,JHe)}var ZM=ze(ZHe,[["render",QHe]]);const kV=Object.assign(ZM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZM.name,ZM)}}),eWe=we({name:"IconArrowFall",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),tWe=["stroke-width","stroke-linecap","stroke-linejoin"];function nWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.008 41.99a.01.01 0 0 1-.016 0l-9.978-11.974A.01.01 0 0 1 14.02 30H33.98a.01.01 0 0 1 .007.016l-9.978 11.975Z"},null,-1),I("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M22 6h4v26h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1)]),14,tWe)}var JM=ze(eWe,[["render",nWe]]);const rWe=Object.assign(JM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JM.name,JM)}}),iWe=we({name:"IconArrowLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),oWe=["stroke-width","stroke-linecap","stroke-linejoin"];function sWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1)]),14,oWe)}var QM=ze(iWe,[["render",sWe]]);const nW=Object.assign(QM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QM.name,QM)}}),aWe=we({name:"IconArrowRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),lWe=["stroke-width","stroke-linecap","stroke-linejoin"];function uWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1)]),14,lWe)}var e9=ze(aWe,[["render",uWe]]);const cWe=Object.assign(e9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e9.name,e9)}}),dWe=we({name:"IconArrowRise",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fWe=["stroke-width","stroke-linecap","stroke-linejoin"];function hWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.992 6.01a.01.01 0 0 1 .016 0l9.978 11.974a.01.01 0 0 1-.007.016H14.02a.01.01 0 0 1-.007-.016l9.978-11.975Z"},null,-1),I("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M26 42h-4V16h4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1)]),14,fWe)}var t9=ze(dWe,[["render",hWe]]);const pWe=Object.assign(t9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t9.name,t9)}}),vWe=we({name:"IconArrowUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mWe=["stroke-width","stroke-linecap","stroke-linejoin"];function gWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1)]),14,mWe)}var n9=ze(vWe,[["render",gWe]]);const xV=Object.assign(n9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n9.name,n9)}}),yWe=we({name:"IconDoubleDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bWe=["stroke-width","stroke-linecap","stroke-linejoin"];function _We(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.9 11.142 14.143 14.142 14.142-14.142M9.9 22.456l14.143 14.142 14.142-14.142"},null,-1)]),14,bWe)}var r9=ze(yWe,[["render",_We]]);const SWe=Object.assign(r9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r9.name,r9)}}),kWe=we({name:"IconDoubleUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xWe=["stroke-width","stroke-linecap","stroke-linejoin"];function CWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.1 36.858 23.957 22.716 9.816 36.858M38.1 25.544 23.957 11.402 9.816 25.544"},null,-1)]),14,xWe)}var i9=ze(kWe,[["render",CWe]]);const wWe=Object.assign(i9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i9.name,i9)}}),EWe=we({name:"IconDownCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),TWe=["stroke-width","stroke-linecap","stroke-linejoin"];function AWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),I("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1)]),14,TWe)}var o9=ze(EWe,[["render",AWe]]);const IWe=Object.assign(o9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o9.name,o9)}}),LWe=we({name:"IconDragArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DWe=["stroke-width","stroke-linecap","stroke-linejoin"];function PWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 24h34M24 7v34M30 12l-6-6-6 6M36 30l6-6-6-6M12 30l-6-6 6-6M18 36l6 6 6-6"},null,-1)]),14,DWe)}var s9=ze(LWe,[["render",PWe]]);const Mve=Object.assign(s9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s9.name,s9)}}),RWe=we({name:"IconExpand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MWe=["stroke-width","stroke-linecap","stroke-linejoin"];function $We(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1)]),14,MWe)}var a9=ze(RWe,[["render",$We]]);const OWe=Object.assign(a9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a9.name,a9)}}),BWe=we({name:"IconLeftCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NWe=["stroke-width","stroke-linecap","stroke-linejoin"];function FWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1)]),14,NWe)}var l9=ze(BWe,[["render",FWe]]);const jWe=Object.assign(l9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l9.name,l9)}}),VWe=we({name:"IconRightCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zWe=["stroke-width","stroke-linecap","stroke-linejoin"];function UWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1)]),14,zWe)}var u9=ze(VWe,[["render",UWe]]);const HWe=Object.assign(u9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u9.name,u9)}}),WWe=we({name:"IconShrink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GWe=["stroke-width","stroke-linecap","stroke-linejoin"];function KWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1)]),14,GWe)}var c9=ze(WWe,[["render",KWe]]);const qWe=Object.assign(c9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c9.name,c9)}}),YWe=we({name:"IconSwap",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XWe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 17h35.586c.89 0 1.337-1.077.707-1.707L33 7M43 31H7.414c-.89 0-1.337 1.077-.707 1.707L15 41"},null,-1)]),14,XWe)}var d9=ze(YWe,[["render",ZWe]]);const $ve=Object.assign(d9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d9.name,d9)}}),JWe=we({name:"IconToBottom",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),QWe=["stroke-width","stroke-linecap","stroke-linejoin"];function eGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),I("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QWe)}var f9=ze(JWe,[["render",eGe]]);const tGe=Object.assign(f9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f9.name,f9)}}),nGe=we({name:"IconToLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rGe=["stroke-width","stroke-linecap","stroke-linejoin"];function iGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),I("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,rGe)}var h9=ze(nGe,[["render",iGe]]);const oGe=Object.assign(h9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h9.name,h9)}}),sGe=we({name:"IconToRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aGe=["stroke-width","stroke-linecap","stroke-linejoin"];function lGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),I("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,aGe)}var p9=ze(sGe,[["render",lGe]]);const uGe=Object.assign(p9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p9.name,p9)}}),cGe=we({name:"IconUpCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dGe=["stroke-width","stroke-linecap","stroke-linejoin"];function fGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1)]),14,dGe)}var v9=ze(cGe,[["render",fGe]]);const hGe=Object.assign(v9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v9.name,v9)}}),pGe=we({name:"IconExclamationPolygonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vGe=["stroke-width","stroke-linecap","stroke-linejoin"];function mGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.553 4a1 1 0 0 0-.74.327L4.26 15.937a1 1 0 0 0-.26.672V31.39a1 1 0 0 0 .26.673l10.553 11.609a1 1 0 0 0 .74.327h16.893a1 1 0 0 0 .74-.327l10.554-11.61a1 1 0 0 0 .26-.672V16.61a1 1 0 0 0-.26-.673L33.187 4.327a1 1 0 0 0-.74-.327H15.553ZM22 33a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,vGe)}var m9=ze(pGe,[["render",mGe]]);const gGe=Object.assign(m9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m9.name,m9)}}),yGe=we({name:"IconMinusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bGe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ge(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-7-22a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H17Z",fill:"currentColor",stroke:"none"},null,-1)]),14,bGe)}var g9=ze(yGe,[["render",_Ge]]);const SGe=Object.assign(g9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g9.name,g9)}}),kGe=we({name:"IconPlusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xGe=["stroke-width","stroke-linecap","stroke-linejoin"];function CGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-28v6h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,xGe)}var y9=ze(kGe,[["render",CGe]]);const wGe=Object.assign(y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y9.name,y9)}}),EGe=we({name:"IconQuestionCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),TGe=["stroke-width","stroke-linecap","stroke-linejoin"];function AGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-3.862-24.021a.461.461 0 0 0 .462-.462 2.37 2.37 0 0 1 .636-1.615C21.64 17.48 22.43 17 23.988 17c1.465 0 2.483.7 3.002 1.493.555.848.446 1.559.182 1.914-.328.444-.736.853-1.228 1.296-.15.135-.335.296-.533.468-.354.308-.75.654-1.067.955C23.22 24.195 22 25.686 22 28v.013a1 1 0 0 0 1.006.993l2.008-.012a.993.993 0 0 0 .986-1c.002-.683.282-1.19 1.101-1.97.276-.262.523-.477.806-.722.21-.18.439-.379.713-.626.57-.513 1.205-1.13 1.767-1.888 1.516-2.047 1.161-4.634-.05-6.485C29.092 14.398 26.825 13 23.988 13c-2.454 0-4.357.794-5.642 2.137-1.25 1.307-1.742 2.954-1.746 4.37 0 .26.21.472.47.472h3.068Zm1.868 14.029a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V32a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2.008Z",fill:"currentColor",stroke:"none"},null,-1)]),14,TGe)}var b9=ze(EGe,[["render",AGe]]);const IGe=Object.assign(b9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b9.name,b9)}}),LGe=we({name:"IconCheckCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DGe=["stroke-width","stroke-linecap","stroke-linejoin"];function PGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,DGe)}var _9=ze(LGe,[["render",PGe]]);const gu=Object.assign(_9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_9.name,_9)}}),RGe=we({name:"IconCheckSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MGe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ge(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.603 16.672 21.168 30.107l-7.778-7.779M8 41h32a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1Z"},null,-1)]),14,MGe)}var S9=ze(RGe,[["render",$Ge]]);const OGe=Object.assign(S9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S9.name,S9)}}),BGe=we({name:"IconCloseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NGe=["stroke-width","stroke-linecap","stroke-linejoin"];function FGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,NGe)}var k9=ze(BGe,[["render",FGe]]);const Ove=Object.assign(k9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k9.name,k9)}}),jGe=we({name:"IconExclamationCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),VGe=["stroke-width","stroke-linecap","stroke-linejoin"];function zGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"},null,-1)]),14,VGe)}var x9=ze(jGe,[["render",zGe]]);const $c=Object.assign(x9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x9.name,x9)}}),UGe=we({name:"IconInfoCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),HGe=["stroke-width","stroke-linecap","stroke-linejoin"];function WGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 20v14m0-16v-4m18 10c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,HGe)}var C9=ze(UGe,[["render",WGe]]);const Pc=Object.assign(C9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C9.name,C9)}}),GGe=we({name:"IconMinusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),KGe=["stroke-width","stroke-linecap","stroke-linejoin"];function qGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 24H16m26 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,KGe)}var w9=ze(GGe,[["render",qGe]]);const YGe=Object.assign(w9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w9.name,w9)}}),XGe=we({name:"IconPlusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ZGe=["stroke-width","stroke-linecap","stroke-linejoin"];function JGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 24h-8m-8 0h8m0 0v8m0-8v-8m18 8c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,ZGe)}var E9=ze(XGe,[["render",JGe]]);const QGe=Object.assign(E9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E9.name,E9)}}),eKe=we({name:"IconQuestion",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),tKe=["stroke-width","stroke-linecap","stroke-linejoin"];function nKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 17c0-5.523 4.925-10 11-10s11 4.477 11 10c0 3.607-2.1 6.767-5.25 8.526C26.857 27.142 24 29.686 24 33v3m0 5h.02v.02H24V41Z"},null,-1)]),14,tKe)}var T9=ze(eKe,[["render",nKe]]);const rKe=Object.assign(T9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T9.name,T9)}}),iKe=we({name:"IconStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),oKe=["stroke-width","stroke-linecap","stroke-linejoin"];function sKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M36.728 36.728c7.03-7.03 7.03-18.427 0-25.456-7.03-7.03-18.427-7.03-25.456 0m25.456 25.456c-7.03 7.03-18.427 7.03-25.456 0-7.03-7.03-7.03-18.427 0-25.456m25.456 25.456L11.272 11.272"},null,-1)]),14,oKe)}var A9=ze(iKe,[["render",sKe]]);const aKe=Object.assign(A9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A9.name,A9)}}),lKe=we({name:"IconHeartFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),uKe=["stroke-width","stroke-linecap","stroke-linejoin"];function cKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 10.541c4.35-4.522 11.405-4.814 15.756-.292 4.35 4.522 4.15 11.365.448 17.135C36.153 33.7 28 41.5 24 42c-4-.5-12.152-8.3-16.204-14.616-3.702-5.77-3.902-12.613.448-17.135C12.595 5.727 19.65 6.019 24 10.54Z",fill:"currentColor",stroke:"none"},null,-1)]),14,uKe)}var I9=ze(lKe,[["render",cKe]]);const rW=Object.assign(I9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I9.name,I9)}}),dKe=we({name:"IconThumbDownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fKe=["stroke-width","stroke-linecap","stroke-linejoin"];function hKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M20.9 43.537a2 2 0 0 0 2.83-.364L32.964 31H36V5H12.424a2 2 0 0 0-1.89 1.346L4.838 25.692C3.938 28.29 5.868 31 8.618 31h10.568l-2.421 5.448a4 4 0 0 0 1.184 4.77l2.951 2.32Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fKe)}var L9=ze(dKe,[["render",hKe]]);const pKe=Object.assign(L9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L9.name,L9)}}),vKe=we({name:"IconThumbUpFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mKe=["stroke-width","stroke-linecap","stroke-linejoin"];function gKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M27.1 4.463a2 2 0 0 0-2.83.364L15.036 17H12v26h23.576a2 2 0 0 0 1.89-1.346l5.697-19.346c.899-2.598-1.03-5.308-3.78-5.308h-10.57l2.422-5.448a4 4 0 0 0-1.184-4.77L27.1 4.462Z",fill:"currentColor",stroke:"none"},null,-1)]),14,mKe)}var D9=ze(vKe,[["render",gKe]]);const yKe=Object.assign(D9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D9.name,D9)}}),bKe=we({name:"IconAt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_Ke=["stroke-width","stroke-linecap","stroke-linejoin"];function SKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31 23a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm0 0c0 3.038 2.462 6.5 5.5 6.5A5.5 5.5 0 0 0 42 24c0-9.941-8.059-18-18-18S6 14.059 6 24s8.059 18 18 18c4.244 0 8.145-1.469 11.222-3.925"},null,-1)]),14,_Ke)}var P9=ze(bKe,[["render",SKe]]);const kKe=Object.assign(P9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P9.name,P9)}}),xKe=we({name:"IconCloudDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),CKe=["stroke-width","stroke-linecap","stroke-linejoin"];function wKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 22c0-7.732-6.492-14-14.5-14S14 14.268 14 22v.055A9.001 9.001 0 0 0 15 40h13m16.142-5.929-7.07 7.071L30 34.072M37.07 26v15"},null,-1)]),14,CKe)}var R9=ze(xKe,[["render",wKe]]);const EKe=Object.assign(R9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R9.name,R9)}}),TKe=we({name:"IconCodeBlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),AKe=["stroke-width","stroke-linecap","stroke-linejoin"];function IKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 6h-4a3 3 0 0 0-3 3v10c0 3-4.343 5-6 5 1.657 0 6 2 6 5v10a3 3 0 0 0 3 3h4M29 6h4a3 3 0 0 1 3 3v10c0 3 4.343 5 6 5-1.657 0-6 2-6 5v10a3 3 0 0 1-3 3h-4"},null,-1)]),14,AKe)}var M9=ze(TKe,[["render",IKe]]);const Bve=Object.assign(M9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M9.name,M9)}}),LKe=we({name:"IconCodeSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DKe=["stroke-width","stroke-linecap","stroke-linejoin"];function PKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.071 17 16 24.071l7.071 7.071m9.001-14.624-4.14 15.454M9 42h30a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1Z"},null,-1)]),14,DKe)}var $9=ze(LKe,[["render",PKe]]);const RKe=Object.assign($9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$9.name,$9)}}),MKe=we({name:"IconCode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),$Ke=["stroke-width","stroke-linecap","stroke-linejoin"];function OKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16.734 12.686 5.42 24l11.314 11.314m14.521-22.628L42.57 24 31.255 35.314M27.2 6.28l-6.251 35.453"},null,-1)]),14,$Ke)}var O9=ze(MKe,[["render",OKe]]);const T0=Object.assign(O9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O9.name,O9)}}),BKe=we({name:"IconCustomerService",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NKe=["stroke-width","stroke-linecap","stroke-linejoin"];function FKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 31V20c0-7.18 5.82-13 13-13s13 5.82 13 13v8c0 5.784-3.778 10.686-9 12.373m0 0A12.99 12.99 0 0 1 24 41h-3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2.373Zm0 0V41m9-20h3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-3v-8Zm-26 0H8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3v-8Z"},null,-1)]),14,NKe)}var B9=ze(BKe,[["render",FKe]]);const jKe=Object.assign(B9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B9.name,B9)}}),VKe=we({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zKe=["stroke-width","stroke-linecap","stroke-linejoin"];function UKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1)]),14,zKe)}var N9=ze(VKe,[["render",UKe]]);const Ph=Object.assign(N9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N9.name,N9)}}),HKe=we({name:"IconExport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),WKe=["stroke-width","stroke-linecap","stroke-linejoin"];function GKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1)]),14,WKe)}var F9=ze(HKe,[["render",GKe]]);const iA=Object.assign(F9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F9.name,F9)}}),KKe=we({name:"IconHeart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),qKe=["stroke-width","stroke-linecap","stroke-linejoin"];function YKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.083 12.912a9.929 9.929 0 0 1 .177 13.878l-.177.18L25.76 39.273c-.972.97-2.548.97-3.52 0L9.917 26.971l-.177-.181a9.929 9.929 0 0 1 .177-13.878c3.889-3.883 10.194-3.883 14.083 0 3.889-3.883 10.194-3.883 14.083 0Z"},null,-1)]),14,qKe)}var j9=ze(KKe,[["render",YKe]]);const oA=Object.assign(j9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j9.name,j9)}}),XKe=we({name:"IconHistory",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ZKe=["stroke-width","stroke-linecap","stroke-linejoin"];function JKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18c-6.26 0-11.775-3.197-15-8.047M6 24l-.5-.757h1L6 24Zm26 2h-9v-9"},null,-1)]),14,ZKe)}var V9=ze(XKe,[["render",JKe]]);const Om=Object.assign(V9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V9.name,V9)}}),QKe=we({name:"IconHome",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),eqe=["stroke-width","stroke-linecap","stroke-linejoin"];function tqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),I("path",{d:"M20 28h8v13h-8V28Z"},null,-1)]),14,eqe)}var z9=ze(QKe,[["render",tqe]]);const h3=Object.assign(z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z9.name,z9)}}),nqe=we({name:"IconImport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rqe=["stroke-width","stroke-linecap","stroke-linejoin"];function iqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1)]),14,rqe)}var U9=ze(nqe,[["render",iqe]]);const sA=Object.assign(U9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U9.name,U9)}}),oqe=we({name:"IconLaunch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function aqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"},null,-1)]),14,sqe)}var H9=ze(oqe,[["render",aqe]]);const Nve=Object.assign(H9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H9.name,H9)}}),lqe=we({name:"IconList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),uqe=["stroke-width","stroke-linecap","stroke-linejoin"];function cqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1)]),14,uqe)}var W9=ze(lqe,[["render",cqe]]);const iW=Object.assign(W9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W9.name,W9)}}),dqe=we({name:"IconMessageBanned",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fqe=["stroke-width","stroke-linecap","stroke-linejoin"];function hqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40.527 20C38.727 12.541 32.01 7 24 7 14.611 7 7 14.611 7 24v17h14m19.364-.636a9 9 0 0 0-12.728-12.728m12.728 12.728a9 9 0 0 1-12.728-12.728m12.728 12.728L27.636 27.636M13 20h12m-12 9h6"},null,-1)]),14,fqe)}var G9=ze(dqe,[["render",hqe]]);const pqe=Object.assign(G9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G9.name,G9)}}),vqe=we({name:"IconMessage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mqe=["stroke-width","stroke-linecap","stroke-linejoin"];function gqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 20h18m-18 9h9M7 41h17.63C33.67 41 41 33.67 41 24.63V24c0-9.389-7.611-17-17-17S7 14.611 7 24v17Z"},null,-1)]),14,mqe)}var K9=ze(vqe,[["render",gqe]]);const yqe=Object.assign(K9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K9.name,K9)}}),bqe=we({name:"IconMoreVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_qe=["stroke-width","stroke-linecap","stroke-linejoin"];function Sqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1)]),14,_qe)}var q9=ze(bqe,[["render",Sqe]]);const kqe=Object.assign(q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q9.name,q9)}}),xqe=we({name:"IconPoweroff",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Cqe=["stroke-width","stroke-linecap","stroke-linejoin"];function wqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15.5 9.274C10.419 12.214 7 17.708 7 24c0 9.389 7.611 17 17 17s17-7.611 17-17c0-6.292-3.419-11.786-8.5-14.726M24 5v22"},null,-1)]),14,Cqe)}var Y9=ze(xqe,[["render",wqe]]);const Eqe=Object.assign(Y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y9.name,Y9)}}),Tqe=we({name:"IconRefresh",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Aqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Iqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30"},null,-1)]),14,Aqe)}var X9=ze(Tqe,[["render",Iqe]]);const zc=Object.assign(X9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X9.name,X9)}}),Lqe=we({name:"IconReply",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Dqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Pqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m6.642 24.684 14.012 14.947a.2.2 0 0 0 .346-.137v-8.949A23.077 23.077 0 0 1 26 30c6.208 0 11.84 2.459 15.978 6.456a.01.01 0 0 0 .017-.007C42 36.299 42 36.15 42 36c0-10.493-8.506-19-19-19-.675 0-1.342.035-2 .104V8.506a.2.2 0 0 0-.346-.137L6.642 23.316a1 1 0 0 0 0 1.368Z"},null,-1)]),14,Dqe)}var Z9=ze(Lqe,[["render",Pqe]]);const Rqe=Object.assign(Z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z9.name,Z9)}}),Mqe=we({name:"IconSave",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),$qe=["stroke-width","stroke-linecap","stroke-linejoin"];function Oqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M21 13v9m18 20H9a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h22.55a1 1 0 0 1 .748.336l7.45 8.38a1 1 0 0 1 .252.664V41a1 1 0 0 1-1 1ZM14 6h14v15a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V6Z"},null,-1)]),14,$qe)}var J9=ze(Mqe,[["render",Oqe]]);const Up=Object.assign(J9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J9.name,J9)}}),Bqe=we({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Nqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Fqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1)]),14,Nqe)}var Q9=ze(Bqe,[["render",Fqe]]);const jqe=Object.assign(Q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q9.name,Q9)}}),Vqe=we({name:"IconSelectAll",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Uqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m17.314 7.243-7.071 7.07L6 10.072m11.314 10.172-7.071 7.07L6 23.072m11.314 10.172-7.071 7.07L6 36.072M21 11h22M21 25h22M21 39h22"},null,-1)]),14,zqe)}var e$=ze(Vqe,[["render",Uqe]]);const Hqe=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),Wqe=we({name:"IconSend",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Gqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Kqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1)]),14,Gqe)}var t$=ze(Wqe,[["render",Kqe]]);const qqe=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),Yqe=we({name:"IconSettings",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Xqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Zqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,Xqe)}var n$=ze(Yqe,[["render",Zqe]]);const Lf=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),Jqe=we({name:"IconShareAlt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qqe=["stroke-width","stroke-linecap","stroke-linejoin"];function eYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.442 21.552a4.5 4.5 0 1 1 .065 4.025m-.065-4.025-16.884-8.104m16.884 8.104A4.483 4.483 0 0 0 32 23.5c0 .75.183 1.455.507 2.077m-16.95-12.13a4.5 4.5 0 1 1-8.113-3.895 4.5 4.5 0 0 1 8.114 3.896Zm-.064 20.977A4.5 4.5 0 1 0 11.5 41c3.334-.001 5.503-3.68 3.993-6.578Zm0 0 17.014-8.847"},null,-1)]),14,Qqe)}var r$=ze(Jqe,[["render",eYe]]);const tYe=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),nYe=we({name:"IconShareExternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rYe=["stroke-width","stroke-linecap","stroke-linejoin"];function iYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 20h-7a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V21a1 1 0 0 0-1-1h-7m2.368-5.636L24.004 6l-8.364 8.364M24.003 28V6.604","stroke-miterlimit":"16"},null,-1)]),14,rYe)}var i$=ze(nYe,[["render",iYe]]);const oYe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),sYe=we({name:"IconShareInternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aYe=["stroke-width","stroke-linecap","stroke-linejoin"];function lYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 35v6H8v-6m1.108-4c1.29-8.868 13.917-15.85 29.392-15.998M30 6l9 9-9 9"},null,-1)]),14,aYe)}var o$=ze(sYe,[["render",lYe]]);const uYe=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),cYe=we({name:"IconStar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dYe=["stroke-width","stroke-linecap","stroke-linejoin"];function fYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22.552 6.908a.5.5 0 0 1 .896 0l5.02 10.17a.5.5 0 0 0 .376.274l11.224 1.631a.5.5 0 0 1 .277.853l-8.122 7.916a.5.5 0 0 0-.143.443l1.917 11.178a.5.5 0 0 1-.726.527l-10.038-5.278a.5.5 0 0 0-.466 0L12.73 39.9a.5.5 0 0 1-.726-.527l1.918-11.178a.5.5 0 0 0-.144-.443l-8.122-7.916a.5.5 0 0 1 .278-.853l11.223-1.63a.5.5 0 0 0 .376-.274l5.02-10.17Z"},null,-1)]),14,dYe)}var s$=ze(cYe,[["render",fYe]]);const aA=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),hYe=we({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),pYe=["stroke-width","stroke-linecap","stroke-linejoin"];function vYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1)]),14,pYe)}var a$=ze(hYe,[["render",vYe]]);const mYe=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),gYe=we({name:"IconThumbDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yYe=["stroke-width","stroke-linecap","stroke-linejoin"];function bYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 31V5M5.83 26.394l5.949-18.697A1 1 0 0 1 12.732 7H34v22h-3l-9.403 12.223a1 1 0 0 1-1.386.196l-2.536-1.87a6 6 0 0 1-2.043-6.974L17 29H7.736a2 2 0 0 1-1.906-2.606Z"},null,-1)]),14,yYe)}var l$=ze(gYe,[["render",bYe]]);const _Ye=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),SYe=we({name:"IconThumbUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kYe=["stroke-width","stroke-linecap","stroke-linejoin"];function xYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17v26m35.17-21.394-5.948 18.697a1 1 0 0 1-.953.697H14V19h3l9.403-12.223a1 1 0 0 1 1.386-.196l2.535 1.87a6 6 0 0 1 2.044 6.974L31 19h9.265a2 2 0 0 1 1.906 2.606Z"},null,-1)]),14,kYe)}var u$=ze(SYe,[["render",xYe]]);const CYe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),wYe=we({name:"IconTranslate",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),EYe=["stroke-width","stroke-linecap","stroke-linejoin"];function TYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 25c0 9.941-8.059 18-18 18-6.867 0-12.836-3.845-15.87-9.5M28.374 27 25 18h-2l-3.375 9m8.75 0L31 34m-2.625-7h-8.75m0 0L17 34M6 25c0-9.941 8.059-18 18-18 6.867 0 12.836 3.845 15.87 9.5M43 25h-2l1-1 1 1ZM5 25h2l-1 1-1-1Z"},null,-1)]),14,EYe)}var c$=ze(wYe,[["render",TYe]]);const AYe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),IYe=we({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),LYe=["stroke-width","stroke-linecap","stroke-linejoin"];function DYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1)]),14,LYe)}var d$=ze(IYe,[["render",DYe]]);const PYe=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),RYe=we({name:"IconAlignCenter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MYe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ye(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1)]),14,MYe)}var f$=ze(RYe,[["render",$Ye]]);const OYe=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),BYe=we({name:"IconAlignLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NYe=["stroke-width","stroke-linecap","stroke-linejoin"];function FYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1)]),14,NYe)}var h$=ze(BYe,[["render",FYe]]);const jYe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),VYe=we({name:"IconAlignRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zYe=["stroke-width","stroke-linecap","stroke-linejoin"];function UYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1)]),14,zYe)}var p$=ze(VYe,[["render",UYe]]);const HYe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),WYe=we({name:"IconAttachment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GYe=["stroke-width","stroke-linecap","stroke-linejoin"];function KYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.037 15.236s-9.174 9.267-11.48 11.594c-2.305 2.327-1.646 4.987-.329 6.316 1.317 1.33 3.994 1.953 6.258-.332L37.32 18.851c3.623-3.657 2.092-8.492 0-10.639-2.093-2.147-6.916-3.657-10.54 0L11.3 23.838c-3.623 3.657-3.953 10.638.329 14.96 4.282 4.322 11.115 4.105 14.821.333 3.706-3.773 8.74-8.822 11.224-11.33"},null,-1)]),14,GYe)}var v$=ze(WYe,[["render",KYe]]);const qYe=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),YYe=we({name:"IconBgColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XYe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.442 25.25 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25H9.442Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M19 5.25 22.75 9m0 0 12.043 12.043a1 1 0 0 1 0 1.414L32 25.25M22.75 9 8.693 23.057a1 1 0 0 0-.013 1.4l.762.793m0 0 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25m-22.558 0H32M6 42h36"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.013 29.812 37.201 27l-2.812 2.812a4 4 0 1 0 5.624 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,XYe)}var m$=ze(YYe,[["render",ZYe]]);const Fve=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),JYe=we({name:"IconBold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),QYe=["stroke-width","stroke-linecap","stroke-linejoin"];function eXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h12a8 8 0 1 0 0-16H13.2a.2.2 0 0 0-.2.2V24Zm0 0h16a8 8 0 1 1 0 16H13.2a.2.2 0 0 1-.2-.2V24Z"},null,-1)]),14,QYe)}var g$=ze(JYe,[["render",eXe]]);const tXe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),nXe=we({name:"IconBrush",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rXe=["stroke-width","stroke-linecap","stroke-linejoin"];function iXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33 13h7a1 1 0 0 1 1 1v12.14a1 1 0 0 1-.85.99l-21.3 3.24a1 1 0 0 0-.85.99V43M33 8v10.002A.998.998 0 0 1 32 19H8a1 1 0 0 1-1-1V8c0-.552.444-1 .997-1H32.01c.552 0 .99.447.99 1Z"},null,-1)]),14,rXe)}var y$=ze(nXe,[["render",iXe]]);const oXe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),sXe=we({name:"IconEraser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aXe=["stroke-width","stroke-linecap","stroke-linejoin"];function lXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25.5 40.503 14.914 40.5a1 1 0 0 1-.707-.293l-9-9a1 1 0 0 1 0-1.414L13.5 21.5m12 19.003L44 40.5m-18.5.003L29 37M13.5 21.5 26.793 8.207a1 1 0 0 1 1.414 0l14.086 14.086a1 1 0 0 1 0 1.414L29 37M13.5 21.5 29 37"},null,-1)]),14,aXe)}var b$=ze(sXe,[["render",lXe]]);const uXe=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),cXe=we({name:"IconFindReplace",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dXe=["stroke-width","stroke-linecap","stroke-linejoin"];function fXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42.353 40.854 36.01 34.51m0 0a9 9 0 0 1-15.364-6.364c0-5 4-9 9-9s9 4 9 9a8.972 8.972 0 0 1-2.636 6.364Zm5.636-26.365h-36m10 16h-10m10 16h-10"},null,-1)]),14,dXe)}var _$=ze(cXe,[["render",fXe]]);const hXe=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),pXe=we({name:"IconFontColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vXe=["stroke-width","stroke-linecap","stroke-linejoin"];function mXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9 41h30M16.467 22 11.5 34m20.032-12L24.998 7h-2l-6.532 15h15.065Zm0 0H16.467h15.065Zm0 0L36.5 34l-4.968-12Z"},null,-1)]),14,vXe)}var S$=ze(pXe,[["render",mXe]]);const jve=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),gXe=we({name:"IconFormula",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yXe=["stroke-width","stroke-linecap","stroke-linejoin"];function bXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 8H10a1 1 0 0 0-1 1v.546a1 1 0 0 0 .341.753L24.17 23.273a1 1 0 0 1 .026 1.482l-.195.183L9.343 37.7a1 1 0 0 0-.343.754V39a1 1 0 0 0 1 1h30"},null,-1)]),14,yXe)}var k$=ze(gXe,[["render",bXe]]);const _Xe=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),SXe=we({name:"IconH1",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kXe=["stroke-width","stroke-linecap","stroke-linejoin"];function xXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1)]),14,kXe)}var x$=ze(SXe,[["render",xXe]]);const CXe=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),wXe=we({name:"IconH2",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),EXe=["stroke-width","stroke-linecap","stroke-linejoin"];function TXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M44 40H32v-.5l7.5-9c.914-1.117 2.5-3 2.5-5 0-2.485-2.239-4.5-5-4.5s-5 2.515-5 5"},null,-1)]),14,EXe)}var C$=ze(wXe,[["render",TXe]]);const AXe=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),IXe=we({name:"IconH3",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),LXe=["stroke-width","stroke-linecap","stroke-linejoin"];function DXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M37.001 30h-2m2 0a5 5 0 0 0 0-10h-.556a4.444 4.444 0 0 0-4.444 4.444m5 5.556a5 5 0 0 1 0 10h-.556a4.444 4.444 0 0 1-4.444-4.444"},null,-1)]),14,LXe)}var w$=ze(IXe,[["render",DXe]]);const PXe=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),RXe=we({name:"IconH4",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MXe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Xe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1)]),14,MXe)}var E$=ze(RXe,[["render",$Xe]]);const OXe=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),BXe=we({name:"IconH5",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NXe=["stroke-width","stroke-linecap","stroke-linejoin"];function FXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M43 21H32.5v9h.5s1.5-1 4-1a5 5 0 0 1 5 5v1a5 5 0 0 1-5 5c-2.05 0-4.728-1.234-5.5-3"},null,-1)]),14,NXe)}var T$=ze(BXe,[["render",FXe]]);const jXe=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),VXe=we({name:"IconH6",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zXe=["stroke-width","stroke-linecap","stroke-linejoin"];function UXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M32 34.5c0 3.038 2.239 5.5 5 5.5s5-2.462 5-5.5-2.239-5.5-5-5.5-5 2.462-5 5.5Zm0 0v-5.73c0-4.444 3.867-7.677 8-7.263.437.044.736.08.952.115"},null,-1)]),14,zXe)}var A$=ze(VXe,[["render",UXe]]);const HXe=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),WXe=we({name:"IconH7",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GXe=["stroke-width","stroke-linecap","stroke-linejoin"];function KXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1)]),14,GXe)}var I$=ze(WXe,[["render",KXe]]);const qXe=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),YXe=we({name:"IconHighlight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XXe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 18V9.28a1 1 0 0 1 .758-.97l8-2A1 1 0 0 1 29 7.28V18m-10 0h-4a1 1 0 0 0-1 1v8h-4a1 1 0 0 0-1 1v15m10-25h10m0 0h4a1 1 0 0 1 1 1v8h4a1 1 0 0 1 1 1v15"},null,-1)]),14,XXe)}var L$=ze(YXe,[["render",ZXe]]);const JXe=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),QXe=we({name:"IconItalic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),eZe=["stroke-width","stroke-linecap","stroke-linejoin"];function tZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1)]),14,eZe)}var D$=ze(QXe,[["render",tZe]]);const nZe=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),rZe=we({name:"IconLineHeight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iZe=["stroke-width","stroke-linecap","stroke-linejoin"];function oZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),I("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1)]),14,iZe)}var P$=ze(rZe,[["render",oZe]]);const sZe=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),aZe=we({name:"IconOrderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),lZe=["stroke-width","stroke-linecap","stroke-linejoin"];function uZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.578 13.06v1.695h5.041V13.06H9.164V7.555H7.748L5.255 8.968l.763 1.513 1.114-.636v3.215H5.578ZM5.37 26.205v1.49h5.07V26H7.964l.94-.94c.454-.44.783-.86.982-1.258.199-.404.298-.826.298-1.266 0-.686-.224-1.225-.683-1.6-.45-.372-1.093-.55-1.912-.55-.473 0-.933.072-1.38.214a3.63 3.63 0 0 0-1.133.582l-.066.053.652 1.533.113-.085c.263-.199.524-.345.783-.44.266-.094.524-.141.774-.141.309 0 .52.06.652.165.128.1.198.252.198.477 0 .177-.05.356-.154.54l-.001.002c-.099.186-.274.416-.528.69L5.37 26.205ZM10.381 38.344c0-.443-.118-.826-.358-1.145a1.702 1.702 0 0 0-.713-.56 1.652 1.652 0 0 0 .586-.52 1.73 1.73 0 0 0 .307-1.022c0-.404-.108-.763-.327-1.074a2.076 2.076 0 0 0-.918-.71c-.386-.166-.833-.247-1.34-.247-.48 0-.952.071-1.417.213-.459.134-.836.318-1.127.554l-.065.053.652 1.486.11-.076c.275-.193.563-.34.863-.442h.002c.3-.109.581-.162.844-.162.266 0 .454.065.579.18l.004.002c.128.107.198.262.198.48 0 .201-.07.33-.197.412-.138.089-.376.141-.733.141h-1.01v1.626h1.188c.371 0 .614.056.75.15.127.085.2.23.2.463 0 .254-.078.412-.21.503l-.002.002c-.136.097-.386.157-.777.157-.595 0-1.194-.199-1.8-.605l-.11-.073-.65 1.483.064.053c.285.236.662.424 1.127.565h.002c.465.136.95.203 1.456.203.852 0 1.538-.178 2.045-.546.517-.377.777-.896.777-1.544Z",fill:"currentColor",stroke:"none"},null,-1)]),14,lZe)}var R$=ze(aZe,[["render",uZe]]);const cZe=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),dZe=we({name:"IconPaste",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fZe=["stroke-width","stroke-linecap","stroke-linejoin"];function hZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1)]),14,fZe)}var M$=ze(dZe,[["render",hZe]]);const pZe=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),vZe=we({name:"IconQuote",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mZe=["stroke-width","stroke-linecap","stroke-linejoin"];function gZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6ZM39.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M6.08 33.093a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24m6 24a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24"},null,-1)]),14,mZe)}var $$=ze(vZe,[["render",gZe]]);const yZe=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),bZe=we({name:"IconRedo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_Ze=["stroke-width","stroke-linecap","stroke-linejoin"];function SZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m32.678 23.78 7.778-7.778-7.778-7.778M39.19 16H18.5C12.149 16 7 21.15 7 27.5 7 33.852 12.149 39 18.5 39H31"},null,-1)]),14,_Ze)}var O$=ze(bZe,[["render",SZe]]);const kZe=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),xZe=we({name:"IconScissor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),CZe=["stroke-width","stroke-linecap","stroke-linejoin"];function wZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m40.293 7.707-23.05 23.05m0 0a6 6 0 1 0-8.485 8.485 6 6 0 0 0 8.485-8.485Zm13.514 0a6 6 0 1 0 8.485 8.485 6 6 0 0 0-8.485-8.485Zm0 0L7.707 7.707"},null,-1)]),14,CZe)}var B$=ze(xZe,[["render",wZe]]);const EZe=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),TZe=we({name:"IconSortAscending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),AZe=["stroke-width","stroke-linecap","stroke-linejoin"];function IZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 6v33.759a.1.1 0 0 1-.17.07L8 33m17-6h10.4v.65L27 39.35V40h11m-1-19L31.4 8h-.8L25 21"},null,-1)]),14,AZe)}var N$=ze(TZe,[["render",IZe]]);const Vve=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),LZe=we({name:"IconSortDescending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DZe=["stroke-width","stroke-linecap","stroke-linejoin"];function PZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 27h10.4v.65L27 39.35V40h11m-21.999 2V7.24a.1.1 0 0 0-.17-.07L9 14m28 7L31.4 8h-.8L25 21"},null,-1)]),14,DZe)}var F$=ze(LZe,[["render",PZe]]);const zve=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),RZe=we({name:"IconSort",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MZe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ze(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1)]),14,MZe)}var j$=ze(RZe,[["render",$Ze]]);const OZe=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),BZe=we({name:"IconStrikethrough",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NZe=["stroke-width","stroke-linecap","stroke-linejoin"];function FZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 32c0 5.246 5.149 9 11.5 9S36 36.746 36 31.5c0-1.708-.5-4.5-3.5-5.695m0 0H43m-10.5 0H5M34 14.5C34 10.358 29.523 7 24 7s-10 3.358-10 7.5c0 1.794 1.6 4.21 3 5.5"},null,-1)]),14,NZe)}var V$=ze(BZe,[["render",FZe]]);const jZe=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),VZe=we({name:"IconUnderline",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zZe=["stroke-width","stroke-linecap","stroke-linejoin"];function UZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1)]),14,zZe)}var z$=ze(VZe,[["render",UZe]]);const HZe=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),WZe=we({name:"IconUndo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GZe=["stroke-width","stroke-linecap","stroke-linejoin"];function KZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m15.322 23.78-7.778-7.778 7.778-7.778M8.81 16H29.5C35.851 16 41 21.15 41 27.5 41 33.852 35.851 39 29.5 39H17"},null,-1)]),14,GZe)}var U$=ze(WZe,[["render",KZe]]);const qZe=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),YZe=we({name:"IconUnorderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XZe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1)]),14,XZe)}var H$=ze(YZe,[["render",ZZe]]);const JZe=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),QZe=we({name:"IconMuteFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),eJe=["stroke-width","stroke-linecap","stroke-linejoin"];function tJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93L5.931 13.001ZM35.27 28.199l-3.311-3.313a7.985 7.985 0 0 0-1.96-6.107.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252ZM41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.492.492 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114ZM26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8v10.928Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012l2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,eJe)}var W$=ze(QZe,[["render",tJe]]);const nJe=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),rJe=we({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iJe=["stroke-width","stroke-linecap","stroke-linejoin"];function oJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1)]),14,iJe)}var G$=ze(rJe,[["render",oJe]]);const sJe=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),aJe=we({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),lJe=["stroke-width","stroke-linecap","stroke-linejoin"];function uJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1)]),14,lJe)}var K$=ze(aJe,[["render",uJe]]);const cJe=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),dJe=we({name:"IconSkipNextFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fJe=["stroke-width","stroke-linecap","stroke-linejoin"];function hJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.585 12.145a1 1 0 0 0-1.585.81v22.09a1 1 0 0 0 1.585.81L28.878 24.81a1 1 0 0 0 0-1.622L13.585 12.145Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 36a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fJe)}var q$=ze(dJe,[["render",hJe]]);const pJe=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),vJe=we({name:"IconSkipPreviousFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mJe=["stroke-width","stroke-linecap","stroke-linejoin"];function gJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.414 35.855a1 1 0 0 0 1.586-.81v-22.09a1 1 0 0 0-1.586-.81L19.122 23.19a1 1 0 0 0 0 1.622l15.292 11.044Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,mJe)}var Y$=ze(vJe,[["render",gJe]]);const yJe=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),bJe=we({name:"IconSoundFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_Je=["stroke-width","stroke-linecap","stroke-linejoin"];function SJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24.924 6.226A2 2 0 0 1 26 8v32a2 2 0 0 1-3.147 1.639L13.37 35H6a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2h7.37l9.483-6.638a2 2 0 0 1 2.07-.136ZM35.314 35.042c6.248-6.249 6.248-16.38 0-22.628l2.828-2.828c7.81 7.81 7.81 20.474 0 28.284l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M29.657 29.728a8 8 0 0 0 0-11.314l2.828-2.828c4.687 4.686 4.687 12.284 0 16.97l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,_Je)}var X$=ze(bJe,[["render",SJe]]);const kJe=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),xJe=we({name:"IconBackward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),CJe=["stroke-width","stroke-linecap","stroke-linejoin"];function wJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.293 36.293 26.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707v23.172c0 .89-1.077 1.337-1.707.707ZM21 12.414v23.172c0 .89-1.077 1.337-1.707.707L7.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707Z"},null,-1)]),14,CJe)}var Z$=ze(xJe,[["render",wJe]]);const EJe=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),TJe=we({name:"IconForward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),AJe=["stroke-width","stroke-linecap","stroke-linejoin"];function IJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.707 11.707 11.586 11.586a1 1 0 0 1 0 1.414L9.707 36.293c-.63.63-1.707.184-1.707-.707V12.414c0-.89 1.077-1.337 1.707-.707ZM27 35.586V12.414c0-.89 1.077-1.337 1.707-.707l11.586 11.586a1 1 0 0 1 0 1.414L28.707 36.293c-.63.63-1.707.184-1.707-.707Z"},null,-1)]),14,AJe)}var J$=ze(TJe,[["render",IJe]]);const LJe=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),DJe=we({name:"IconFullscreenExit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),PJe=["stroke-width","stroke-linecap","stroke-linejoin"];function RJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4"},null,-1)]),14,PJe)}var Q$=ze(DJe,[["render",RJe]]);const oW=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),MJe=we({name:"IconLiveBroadcast",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),$Je=["stroke-width","stroke-linecap","stroke-linejoin"];function OJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29 16h12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V17a1 1 0 0 1 1-1h12m10 0 8-9m-8 9H19m0 0-8-9m17.281 21.88-6.195 4.475a1 1 0 0 1-1.586-.81v-8.262a1 1 0 0 1 1.521-.853l6.196 3.786a1 1 0 0 1 .064 1.664Z"},null,-1)]),14,$Je)}var eO=ze(MJe,[["render",OJe]]);const u_=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),BJe=we({name:"IconMusic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NJe=["stroke-width","stroke-linecap","stroke-linejoin"];function FJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V18.5M41 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V16.5m-26 2V9.926a1 1 0 0 1 .923-.997l24-1.846A1 1 0 0 1 41 8.08v8.42m-26 2 26-2"},null,-1)]),14,NJe)}var tO=ze(BJe,[["render",FJe]]);const jJe=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),VJe=we({name:"IconMute",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zJe=["stroke-width","stroke-linecap","stroke-linejoin"];function UJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35"},null,-1)]),14,zJe)}var nO=ze(VJe,[["render",UJe]]);const HJe=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),WJe=we({name:"IconPauseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GJe=["stroke-width","stroke-linecap","stroke-linejoin"];function KJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1)]),14,GJe)}var rO=ze(WJe,[["render",KJe]]);const qJe=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),YJe=we({name:"IconPlayArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XJe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z"},null,-1)]),14,XJe)}var iO=ze(YJe,[["render",ZJe]]);const ha=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),JJe=we({name:"IconPlayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),QJe=["stroke-width","stroke-linecap","stroke-linejoin"];function eQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6 6 14.059 6 24s8.059 18 18 18Z"},null,-1),I("path",{d:"M19 17v14l12-7-12-7Z"},null,-1)]),14,QJe)}var oO=ze(JJe,[["render",eQe]]);const By=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),tQe=we({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),nQe=["stroke-width","stroke-linecap","stroke-linejoin"];function rQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),I("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1)]),14,nQe)}var sO=ze(tQe,[["render",rQe]]);const iQe=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),oQe=we({name:"IconRecord",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),sQe=["stroke-width","stroke-linecap","stroke-linejoin"];function aQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,sQe)}var aO=ze(oQe,[["render",aQe]]);const lQe=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),uQe=we({name:"IconSkipNext",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),cQe=["stroke-width","stroke-linecap","stroke-linejoin"];function dQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),I("path",{d:"M38 6v36"},null,-1)]),14,cQe)}var lO=ze(uQe,[["render",dQe]]);const fQe=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),hQe=we({name:"IconSkipPrevious",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),pQe=["stroke-width","stroke-linecap","stroke-linejoin"];function vQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),I("path",{d:"M10 6v36"},null,-1)]),14,pQe)}var uO=ze(hQe,[["render",vQe]]);const mQe=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),gQe=we({name:"IconSound",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yQe=["stroke-width","stroke-linecap","stroke-linejoin"];function bQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),I("path",{d:"M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456"},null,-1)]),14,yQe)}var cO=ze(gQe,[["render",bQe]]);const Uve=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),_Qe=we({name:"IconBytedanceColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),SQe=["stroke-width","stroke-linecap","stroke-linejoin"];function kQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),I("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),I("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),I("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1)]),14,SQe)}var dO=ze(_Qe,[["render",kQe]]);const xQe=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),CQe=we({name:"IconLarkColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),wQe=["stroke-width","stroke-linecap","stroke-linejoin"];function EQe(e,t,n,r,i,a){return z(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{fill:"#00d6b9",d:"m273.46 264.31 1.01-1.01c.65-.65 1.36-1.36 2.06-2.01l1.41-1.36 4.17-4.12 5.73-5.58 4.88-4.83 4.57-4.52 4.78-4.73 4.37-4.32 6.13-6.03c1.16-1.16 2.36-2.26 3.57-3.37 2.21-2.01 4.52-3.97 6.84-5.88 2.16-1.71 4.37-3.37 6.64-4.98 3.17-2.26 6.43-4.32 9.75-6.33 3.27-1.91 6.64-3.72 10.05-5.43 3.22-1.56 6.54-3.02 9.9-4.32 1.86-.75 3.77-1.41 5.68-2.06.96-.3 1.91-.65 2.92-.96a241.19 241.19 0 0 0-45.6-91.5c-4.17-5.18-10.51-8.19-17.14-8.19H128.97c-1.81 0-3.32 1.46-3.32 3.32 0 1.06.5 2.01 1.36 2.66 60.13 44.09 110 100.75 146.04 166l.4-.45Z"},null,-1),I("path",{fill:"#133c9a",d:"M203.43 419.4c90.99 0 170.27-50.22 211.6-124.43 1.46-2.61 2.87-5.23 4.22-7.89a96.374 96.374 0 0 1-6.94 11.41c-.9 1.26-1.81 2.51-2.77 3.77-1.21 1.56-2.41 3.02-3.67 4.47a98.086 98.086 0 0 1-3.07 3.37 85.486 85.486 0 0 1-6.64 6.28c-1.31 1.11-2.56 2.16-3.92 3.17a76.24 76.24 0 0 1-4.78 3.42c-1.01.7-2.06 1.36-3.12 2.01-1.06.65-2.16 1.31-3.32 1.96a91.35 91.35 0 0 1-6.99 3.52c-2.06.9-4.17 1.76-6.28 2.56a82.5 82.5 0 0 1-7.04 2.26 86.613 86.613 0 0 1-10.81 2.31c-2.61.4-5.33.7-7.99.9-2.82.2-5.68.25-8.55.25-3.17-.05-6.33-.25-9.55-.6-2.36-.25-4.73-.6-7.09-1.01-2.06-.35-4.12-.8-6.18-1.31-1.11-.25-2.16-.55-3.27-.85-3.02-.8-6.03-1.66-9.05-2.51-1.51-.45-3.02-.85-4.47-1.31-2.26-.65-4.47-1.36-6.69-2.06-1.81-.55-3.62-1.16-5.43-1.76-1.71-.55-3.47-1.11-5.18-1.71l-3.52-1.21c-1.41-.5-2.87-1.01-4.27-1.51l-3.02-1.11c-2.01-.7-4.02-1.46-5.98-2.21-1.16-.45-2.31-.85-3.47-1.31-1.56-.6-3.07-1.21-4.63-1.81-1.61-.65-3.27-1.31-4.88-1.96l-3.17-1.31-3.92-1.61-3.02-1.26-3.12-1.36-2.71-1.21-2.46-1.11-2.51-1.16-2.56-1.21-3.27-1.51-3.42-1.61c-1.21-.6-2.41-1.16-3.62-1.76l-3.07-1.51A508.746 508.746 0 0 1 65.6 190.35c-1.26-1.31-3.32-1.41-4.68-.15-.65.6-1.06 1.51-1.06 2.41l.1 155.49v12.62c0 7.34 3.62 14.18 9.7 18.25 39.56 26.44 86.12 40.47 133.73 40.37"},null,-1),I("path",{fill:"#3370ff",d:"M470.83 200.21c-30.72-15.03-65.86-18.25-98.79-9-1.41.4-2.77.8-4.12 1.21-.96.3-1.91.6-2.92.96-1.91.65-3.82 1.36-5.68 2.06-3.37 1.31-6.64 2.77-9.9 4.32-3.42 1.66-6.79 3.47-10.05 5.38-3.37 1.96-6.59 4.07-9.75 6.33-2.26 1.61-4.47 3.27-6.64 4.98-2.36 1.91-4.63 3.82-6.84 5.88-1.21 1.11-2.36 2.21-3.57 3.37l-6.13 6.03-4.37 4.32-4.78 4.73-4.57 4.52-4.88 4.83-5.68 5.63-4.17 4.12-1.41 1.36c-.65.65-1.36 1.36-2.06 2.01l-1.01 1.01-1.56 1.46-1.76 1.61c-15.13 13.93-32.02 25.84-50.17 35.54l3.27 1.51 2.56 1.21 2.51 1.16 2.46 1.11 2.71 1.21 3.12 1.36 3.02 1.26 3.92 1.61 3.17 1.31c1.61.65 3.27 1.31 4.88 1.96 1.51.6 3.07 1.21 4.63 1.81 1.16.45 2.31.85 3.47 1.31 2.01.75 4.02 1.46 5.98 2.21l3.02 1.11c1.41.5 2.82 1.01 4.27 1.51l3.52 1.21c1.71.55 3.42 1.16 5.18 1.71 1.81.6 3.62 1.16 5.43 1.76 2.21.7 4.47 1.36 6.69 2.06 1.51.45 3.02.9 4.47 1.31 3.02.85 6.03 1.71 9.05 2.51 1.11.3 2.16.55 3.27.85 2.06.5 4.12.9 6.18 1.31 2.36.4 4.73.75 7.09 1.01 3.22.35 6.38.55 9.55.6 2.87.05 5.73-.05 8.55-.25 2.71-.2 5.38-.5 7.99-.9 3.62-.55 7.24-1.36 10.81-2.31 2.36-.65 4.73-1.41 7.04-2.26a75.16 75.16 0 0 0 6.28-2.56 91.35 91.35 0 0 0 6.99-3.52c1.11-.6 2.21-1.26 3.32-1.96 1.11-.65 2.11-1.36 3.12-2.01 1.61-1.11 3.22-2.21 4.78-3.42 1.36-1.01 2.66-2.06 3.92-3.17 2.26-1.96 4.47-4.07 6.59-6.28 1.06-1.11 2.06-2.21 3.07-3.37 1.26-1.46 2.51-2.97 3.67-4.47a73.33 73.33 0 0 0 2.77-3.77c2.51-3.62 4.83-7.39 6.89-11.31l2.36-4.68 21.01-41.88.25-.5c6.94-14.98 16.39-28.45 28-39.97Z"},null,-1)]),14,wQe)}var fO=ze(CQe,[["render",EQe]]);const TQe=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),AQe=we({name:"IconTiktokColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),IQe=["stroke-width","stroke-linecap","stroke-linejoin"];function LQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,IQe)}var hO=ze(AQe,[["render",LQe]]);const DQe=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),PQe=we({name:"IconXiguaColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),RQe=["stroke-width","stroke-linecap","stroke-linejoin"];function MQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M381.968 38.684c-202.85 54.614-351.085 232.757-371.89 446.01C-.326 590.018 28.281 630.328 140.108 668.037c104.026 33.808 176.843 101.425 209.351 189.846 40.31 115.729 44.211 122.23 91.023 144.336 40.31 19.504 58.514 19.504 131.332 7.802 211.951-36.41 362.788-171.642 416.101-374.492C1059.434 368.965 882.59 90.697 605.623 32.183 517.2 13.978 470.39 15.279 381.968 38.684zm176.843 322.48c158.64 74.117 201.55 158.638 119.63 237.957-102.725 97.524-240.56 136.534-291.271 80.62-20.806-23.406-24.707-48.112-24.707-161.24s3.901-137.833 24.707-161.239c32.507-36.409 88.421-35.108 171.641 3.901z",fill:"#FE163E"},null,-1)]),14,RQe)}var pO=ze(PQe,[["render",MQe]]);const $Qe=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),OQe=we({name:"IconFaceBookCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),BQe=["stroke-width","stroke-linecap","stroke-linejoin"];function NQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 1C11.29 1 1 11.29 1 24s10.29 23 23 23 23-10.29 23-23S36.71 1 24 1Zm6.172 22.88H26.18v14.404h-5.931V23.88H17.22v-4.962h3.027V15.89c0-3.993 1.695-6.414 6.414-6.414h3.993v4.962h-2.421c-1.815 0-1.936.727-1.936 1.936v2.421h4.478l-.605 5.084h.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,BQe)}var vO=ze(OQe,[["render",NQe]]);const FQe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),jQe=we({name:"IconFacebookSquareFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),VQe=["stroke-width","stroke-linecap","stroke-linejoin"];function zQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.125 2.475c.6 0 1.2.225 1.688.713.524.487.75 1.012.75 1.612v38.363c0 .6-.263 1.2-.75 1.612-.526.488-1.088.713-1.688.713H32.138V28.913h5.625l.825-6.563h-6.45v-4.275c0-2.137 1.087-3.225 3.3-3.225h3.374V9.263c-1.2-.225-2.85-.338-5.024-.338-2.513 0-4.5.75-6.038 2.25-1.538 1.5-2.288 3.675-2.288 6.375v4.8h-5.625v6.563h5.625v16.575h-20.7c-.6 0-1.2-.225-1.612-.713-.487-.487-.712-1.012-.712-1.612V4.8c0-.6.224-1.2.712-1.612.488-.488 1.012-.713 1.613-.713h38.362Z",fill:"currentColor",stroke:"none"},null,-1)]),14,VQe)}var mO=ze(jQe,[["render",zQe]]);const UQe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),HQe=we({name:"IconGoogleCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),WQe=["stroke-width","stroke-linecap","stroke-linejoin"];function GQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.571 33.526c-2.084 1.92-4.927 3.05-8.322 3.05a12.568 12.568 0 0 1-12.572-12.577A12.58 12.58 0 0 1 24.25 11.416a12.103 12.103 0 0 1 8.414 3.277L29.061 18.3a6.787 6.787 0 0 0-4.807-1.88c-3.277 0-6.045 2.213-7.037 5.186a7.567 7.567 0 0 0-.394 2.392c0 .833.144 1.638.394 2.391.992 2.973 3.763 5.187 7.032 5.187 1.696 0 3.133-.449 4.254-1.202a5.778 5.778 0 0 0 2.513-3.8h-6.767V21.71h11.844c.15.825.227 1.682.227 2.57 0 3.835-1.371 7.055-3.749 9.246ZM24 1A23 23 0 1 0 24 47 23 23 0 0 0 24 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,WQe)}var gO=ze(HQe,[["render",GQe]]);const KQe=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),qQe=we({name:"IconQqCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),YQe=["stroke-width","stroke-linecap","stroke-linejoin"];function XQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.007 1C11.281 1 1 11.281 1 24.007c0 13.23 11.216 23.87 24.733 22.936 11.288-.791 20.49-9.994 21.21-21.354C47.877 12.144 37.237 1 24.007 1Zm11.36 29.262s-.79 2.23-2.3 4.242c0 0 2.66.935 2.444 3.236 0 0 .072 2.66-5.68 2.444 0 0-4.026-.287-5.248-2.013h-1.079c-1.222 1.726-5.248 2.013-5.248 2.013-5.752.216-5.68-2.444-5.68-2.444-.216-2.373 2.444-3.236 2.444-3.236-1.51-2.013-2.3-4.241-2.3-4.241-3.596 5.895-3.236-.791-3.236-.791.647-3.955 3.523-6.543 3.523-6.543-.431-3.595 1.078-4.242 1.078-4.242.216-11.072 9.707-10.929 9.922-10.929.216 0 9.707-.215 9.994 10.929 0 0 1.51.647 1.079 4.242 0 0 2.876 2.588 3.523 6.543 0 0 .36 6.686-3.236.79Z",fill:"currentColor",stroke:"none"},null,-1)]),14,YQe)}var yO=ze(qQe,[["render",XQe]]);const ZQe=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),JQe=we({name:"IconTwitterCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),QQe=["stroke-width","stroke-linecap","stroke-linejoin"];function eet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 1C11.296 1 1 11.297 1 24s10.296 23 23 23c12.703 0 23-10.297 23-23S36.703 1 24 1Zm11.698 18.592c-.13 9.818-6.408 16.542-15.78 16.965-3.864.176-6.664-1.072-9.1-2.62 2.855.456 6.397-.686 8.292-2.307-2.8-.273-4.458-1.698-5.233-3.991.808.14 1.66.103 2.43-.06-2.527-.846-4.331-2.407-4.424-5.68.709.323 1.448.626 2.43.686-1.891-1.075-3.29-5.007-1.688-7.607 2.806 3.076 6.182 5.586 11.724 5.926-1.391-5.949 6.492-9.175 9.791-5.177 1.395-.27 2.53-.799 3.622-1.374-.45 1.381-1.315 2.347-2.37 3.119 1.158-.157 2.184-.44 3.06-.872-.544 1.128-1.732 2.14-2.754 2.992Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QQe)}var bO=ze(JQe,[["render",eet]]);const tet=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),net=we({name:"IconWeiboCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ret=["stroke-width","stroke-linecap","stroke-linejoin"];function iet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 47a23 23 0 1 1 23-23 22.988 22.988 0 0 1-23 23Zm1.276-26.994c-.544.063-2.259 1.171-1.297-1.108C25 15 20.235 15.293 17.874 16.16A23.776 23.776 0 0 0 7.649 27.283c-2.007 6.419 5.018 10.329 10.246 11.123 5.227.795 13.068-.502 16.622-4.85 2.635-3.179 3.137-7.507-1.84-8.761-1.651-.398-.69-1.088-.271-2.259a2.775 2.775 0 0 0-2.175-3.24 2.092 2.092 0 0 0-.335-.042 12.468 12.468 0 0 0-4.62.752Zm7.004-3.889a2.326 2.326 0 0 0-1.903.544c-.377.339-.418 1.338.962 1.652.458.021.913.084 1.36.188a1.836 1.836 0 0 1 1.233 2.07c-.21 1.924.878 2.237 1.652 1.714a1.647 1.647 0 0 0 .627-1.338 4.117 4.117 0 0 0-3.325-4.767c-.042-.008-.61-.063-.606-.063Zm7.423.084a8.408 8.408 0 0 0-6.838-4.6c-1.129-.126-3.512-.397-3.784 1.15a1.17 1.17 0 0 0 .857 1.4c.042 0 .084.022.126.022.523.02 1.048 0 1.568-.063a6.481 6.481 0 0 1 6.524 6.44c0 .3-.02.601-.063.9-.063.355-.105.71-.147 1.066A1.277 1.277 0 0 0 38.93 24a1.255 1.255 0 0 0 1.338-.648c.71-2.373.501-4.926-.585-7.151h.02ZM21.616 36.44c-5.457.69-10.245-1.673-10.684-5.27-.44-3.595 3.575-7.066 9.033-7.756 5.457-.69 10.245 1.672 10.705 5.269.46 3.596-3.617 7.088-9.075 7.757h.021Zm-1.484-10.266a5.181 5.181 0 0 0-5.353 4.913 4.662 4.662 0 0 0 4.935 4.391c.14-.004.28-.017.418-.042a5.503 5.503 0 0 0 5.185-5.143 4.472 4.472 0 0 0-4.746-4.182l-.44.063Zm1.003 4.244a.669.669 0 0 1-.773-.544v-.083a.76.76 0 0 1 .774-.711.642.642 0 0 1 .731.544.076.076 0 0 1 .021.062.807.807 0 0 1-.753.732Zm-2.78 2.781a1.65 1.65 0 0 1-1.861-1.422.266.266 0 0 1-.021-.125 1.844 1.844 0 0 1 1.882-1.736 1.562 1.562 0 0 1 1.819 1.297.46.46 0 0 1 .02.167 1.96 1.96 0 0 1-1.84 1.819Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ret)}var _O=ze(net,[["render",iet]]);const oet=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),set=we({name:"IconAlipayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aet=["stroke-width","stroke-linecap","stroke-linejoin"];function uet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10.8 27.025c-.566.456-1.174 1.122-1.35 1.968-.24 1.156-.05 2.604 1.065 3.739 1.352 1.376 3.405 1.753 4.292 1.818 2.41.174 4.978-1.02 6.913-2.384.759-.535 2.058-1.61 3.3-3.268-2.783-1.437-6.257-3.026-9.97-2.87-1.898.079-3.256.472-4.25.997Zm35.29 6.354A23.872 23.872 0 0 0 48 24C48 10.767 37.234 0 24 0S0 10.767 0 24c0 13.234 10.766 24 24 24 7.987 0 15.07-3.925 19.436-9.943a2688.801 2688.801 0 0 0-15.11-7.467c-1.999 2.277-4.953 4.56-8.29 5.554-2.097.623-3.986.86-5.963.457-1.956-.4-3.397-1.317-4.237-2.235-.428-.469-.92-1.064-1.275-1.773.033.09.056.143.056.143s-.204-.353-.361-.914a4.03 4.03 0 0 1-.157-.85 4.383 4.383 0 0 1-.009-.612 4.409 4.409 0 0 1 .078-1.128c.197-.948.601-2.054 1.649-3.08 2.3-2.251 5.38-2.372 6.976-2.363 2.363.014 6.47 1.048 9.928 2.27.958-2.04 1.573-4.221 1.97-5.676H14.31v-1.555h7.384V15.72h-8.938v-1.555h8.938v-3.108c0-.427.084-.778.777-.778h3.498v3.886h9.717v1.555H25.97v3.11h7.773s-.78 4.35-3.221 8.64c5.416 1.934 13.037 4.914 15.568 5.91Z",fill:"currentColor",stroke:"none"},null,-1)]),14,aet)}var SO=ze(set,[["render",uet]]);const cet=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),det=we({name:"IconCodeSandbox",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fet=["stroke-width","stroke-linecap","stroke-linejoin"];function het(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m25.002 1.6 17.9 10.3c.6.4 1 1 1 1.7v20.7c0 .7-.4 1.4-1 1.7l-17.9 10.4c-.6.4-1.4.4-2 0l-17.9-10.3c-.6-.4-1-1-1-1.7V13.7c0-.7.4-1.4 1-1.7l17.9-10.4c.6-.4 1.4-.4 2 0Zm13.5 12.4-7.9-4.5-6.6 4.5-6.5-4-7.3 4.3 13.8 8.7 14.5-9Zm-16.5 26.4V26.3l-14-8.9v7.9l8 5.5V37l6 3.4Zm4 0 6-3.5v-5.2l8-5.5v-8.9l-14 8.9v14.2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fet)}var kO=ze(det,[["render",het]]);const pet=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),vet=we({name:"IconCodepen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),met=["stroke-width","stroke-linecap","stroke-linejoin"];function get(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M45 15.7v17.1L24.5 44.7c-.3.2-.7.2-1 0l-20-11.5c-.3-.2-.5-.5-.5-.9V15.7c0-.4.2-.7.5-.9l20-11.6c.3-.2.7-.2 1 0l20 11.6c.3.2.5.5.5.9ZM26 9v9.8l5.5 3.2 8.5-4.9L26 9Zm-4 0L8 17.1l8.4 4.9 5.6-3.2V9Zm0 21.2L16.5 27 9 31.4 22 39v-8.8Zm17 1.2L31.4 27 26 30.2V39l13-7.6Zm2-3.4v-6l-5 3 5 3Zm-29-3-5-3v6l5-3Zm8 0 4 2 4-2-4-2-4 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,met)}var xO=ze(vet,[["render",get]]);const yet=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),bet=we({name:"IconFacebook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_et=["stroke-width","stroke-linecap","stroke-linejoin"];function ket(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M35.184 15.727 34.312 24h-6.613v24h-9.933V24h-4.95v-8.273h4.95v-4.98C17.766 4.016 20.564 0 28.518 0h6.61v8.273H30.99c-3.086 0-3.292 1.166-3.292 3.32v4.134h7.485Z",fill:"currentColor",stroke:"none"},null,-1)]),14,_et)}var CO=ze(bet,[["render",ket]]);const xet=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),Cet=we({name:"IconGithub",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),wet=["stroke-width","stroke-linecap","stroke-linejoin"];function Eet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M.056 24.618c0 10.454 6.7 19.344 16.038 22.608 1.259.32 1.067-.582 1.067-1.19v-4.148c-7.265.853-7.553-3.957-8.043-4.758-.987-1.686-3.312-2.112-2.62-2.912 1.654-.853 3.34.213 5.291 3.1 1.413 2.09 4.166 1.738 5.562 1.385a6.777 6.777 0 0 1 1.856-3.253C11.687 34.112 8.55 29.519 8.55 24.057c0-2.646.874-5.082 2.586-7.045-1.088-3.243.102-6.01.26-6.422 3.11-.282 6.337 2.225 6.587 2.421 1.766-.474 3.782-.73 6.038-.73 2.266 0 4.293.26 6.069.74.603-.458 3.6-2.608 6.49-2.345.155.41 1.317 3.12.294 6.315 1.734 1.968 2.62 4.422 2.62 7.077 0 5.472-3.158 10.07-10.699 11.397a6.82 6.82 0 0 1 2.037 4.875v6.02c.042.48 0 .96.806.96 9.477-3.194 16.299-12.15 16.299-22.697C47.938 11.396 37.218.68 23.996.68 10.77.675.055 11.391.055 24.617l.001.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,wet)}var wO=ze(Cet,[["render",Eet]]);const Hve=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),Tet=we({name:"IconGitlab",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Aet=["stroke-width","stroke-linecap","stroke-linejoin"];function Iet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M45.53 26.154 39.694 6.289v-.005c-.407-1.227-1.377-1.955-2.587-1.955-1.254 0-2.277.723-2.663 1.885L30.62 17.625H17.4l-3.825-11.41c-.386-1.163-1.41-1.886-2.663-1.886-1.237 0-2.276.792-2.592 1.96l-5.83 19.865a2.047 2.047 0 0 0 .724 2.18l19.741 14.807c.14.193.332.338.557.418l.461.343.455-.343c.263-.091.483-.252.638-.477L44.8 28.33a2.03 2.03 0 0 0 .728-2.175ZM36.84 6.932c.053-.096.155-.102.187-.102.06 0 .134.016.182.161l3.183 10.704H33.24l3.6-10.763Zm-26.11.054c.047-.14.122-.156.181-.156.145 0 .156.006.183.091L14.699 17.7H7.633l3.096-10.714ZM5.076 26.502l1.511-5.213 10.843 14.475-12.354-9.262Zm3.96-6.236h6.54l4.865 15.23-11.406-15.23Zm15.01 17.877-5.743-17.877h11.48l-5.737 17.877Zm8.459-17.877h6.402L27.642 35.31l4.864-15.043Zm-2.18 15.745L41.43 21.187l1.58 5.315-12.685 9.509Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Aet)}var EO=ze(Tet,[["render",Iet]]);const Let=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),Det=we({name:"IconGoogle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Pet=["stroke-width","stroke-linecap","stroke-linejoin"];function Ret(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.997 21.054h19.42a19.46 19.46 0 0 1 .321 3.428c0 3.875-.812 7.335-2.437 10.38-1.625 3.044-3.942 5.424-6.951 7.138-3.01 1.714-6.46 2.572-10.353 2.572-2.803 0-5.473-.54-8.009-1.621-2.535-1.08-4.723-2.54-6.562-4.38-1.84-1.839-3.3-4.026-4.38-6.562A20.223 20.223 0 0 1 3.426 24c0-2.803.54-5.473 1.62-8.009 1.08-2.535 2.54-4.723 4.38-6.562 1.84-1.84 4.027-3.3 6.562-4.38a20.223 20.223 0 0 1 8.01-1.62c5.356 0 9.955 1.794 13.794 5.384l-5.598 5.384c-2.197-2.125-4.929-3.188-8.197-3.188-2.303 0-4.433.58-6.388 1.741a12.83 12.83 0 0 0-4.648 4.728c-1.142 1.99-1.714 4.165-1.714 6.522s.572 4.531 1.714 6.523a12.83 12.83 0 0 0 4.648 4.727c1.955 1.16 4.085 1.741 6.388 1.741 1.554 0 2.982-.214 4.286-.643 1.303-.428 2.375-.964 3.214-1.607a11.63 11.63 0 0 0 2.197-2.196c.625-.822 1.084-1.598 1.38-2.33a9.84 9.84 0 0 0 .602-2.09H23.997v-7.071Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Pet)}var TO=ze(Det,[["render",Ret]]);const Met=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),$et=we({name:"IconQqZone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Oet=["stroke-width","stroke-linecap","stroke-linejoin"];function Bet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25.1 3.9c.2.1.4.3.5.5l6.8 10L44 17.8c1.1.3 1.7 1.4 1.4 2.5-.1.2-.2.5-.3.7l-7.4 9.5.4 12c0 1.1-.8 2-1.9 2.1-.2 0-.5 0-.7-.1L24 40.4l-11.3 4.1c-1 .4-2.2-.2-2.6-1.2-.1-.3-.1-.6-.1-.8l.4-12L3 20.9c-.7-.9-.5-2.1.4-2.8.2-.2.4-.3.7-.3l11.6-3.4 6.8-10c.5-.9 1.7-1.1 2.6-.5ZM24 9.1l-5.9 8.7-10.1 3 6.5 8.3-.3 10.5 9.9-3.6 9.9 3.6-.3-10.5 6.5-8.3-10.1-3L24 9.1Zm5 11.5c.8 0 1.5.5 1.8 1.2.3.7.1 1.6-.5 2.1L24 29.6h5c1 0 1.9.9 1.9 1.9 0 1-.9 1.9-1.9 1.9H19c-.8 0-1.5-.5-1.8-1.2-.3-.7-.1-1.6.5-2.1l6.3-5.7h-5c-1 0-1.9-.9-1.9-1.9 0-1 .9-1.9 1.9-1.9h10Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Oet)}var AO=ze($et,[["render",Bet]]);const Net=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),Fet=we({name:"IconQq",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),jet=["stroke-width","stroke-linecap","stroke-linejoin"];function Vet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7.85 32.825s1.153 3.136 3.264 5.955c0 0-3.779 1.281-3.458 4.61 0 0-.128 3.714 8.069 3.458 0 0 5.764-.45 7.494-2.88h1.52c1.73 2.432 7.494 2.88 7.494 2.88 8.193.256 8.068-3.457 8.068-3.457.318-3.33-3.458-4.611-3.458-4.611 2.11-2.82 3.264-5.955 3.264-5.955 5.122 8.259 4.611-1.154 4.611-1.154-.96-5.57-4.995-9.221-4.995-9.221.576-5.058-1.537-5.955-1.537-5.955C37.742.844 24.26 1.12 23.978 1.126 23.694 1.12 10.21.846 9.767 16.495c0 0-2.113.897-1.537 5.955 0 0-4.034 3.65-4.995 9.221.005 0-.51 9.413 4.615 1.154Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jet)}var IO=ze(Fet,[["render",Vet]]);const zet=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),Uet=we({name:"IconTwitter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Het=["stroke-width","stroke-linecap","stroke-linejoin"];function Wet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.277 13.575c0 16.613-10.912 28.575-26.962 29.1-6.788.525-11.438-1.537-15.6-4.65 4.65.525 10.912-1.012 13.987-4.163-4.65 0-7.275-2.625-8.812-6.187h4.162C5.89 26.1 2.74 22.987 2.74 17.812c1.012.525 2.062 1.013 4.162 1.013-3.637-2.063-5.7-8.813-3.112-12.975 4.65 5.175 10.35 9.863 19.762 10.35C20.927 5.85 34.465.6 40.165 7.388c2.625-.525 4.162-1.538 6.187-2.625-.525 2.625-2.062 4.162-4.162 5.175 2.062 0 3.637-.525 5.175-1.538-.488 2.063-2.55 4.162-4.088 5.175Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Het)}var LO=ze(Uet,[["render",Wet]]);const Get=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),Ket=we({name:"IconWechat",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),qet=["stroke-width","stroke-linecap","stroke-linejoin"];function Yet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.09 16.362a14.39 14.39 0 0 0-6.927 1.716 13.087 13.087 0 0 0-5.008 4.676 11.936 11.936 0 0 0-1.856 6.473c.01 1.137.185 2.273.517 3.36h-1.505a26.653 26.653 0 0 1-4.766-.593l-.925-.166-5.665 2.93 1.55-4.848C3.179 26.783 1.018 23.077 1 18.792a11.951 11.951 0 0 1 2.188-6.927 14.943 14.943 0 0 1 5.938-5.027 18.579 18.579 0 0 1 8.248-1.837A18.82 18.82 0 0 1 24.8 6.506a16.863 16.863 0 0 1 5.893 4.128 11.963 11.963 0 0 1 2.992 5.817 17.922 17.922 0 0 0-1.595-.09Zm-20.152-.414a2.167 2.167 0 0 0 1.505-.471c.405-.378.62-.908.593-1.46a1.881 1.881 0 0 0-.592-1.46 2.025 2.025 0 0 0-1.506-.535 2.778 2.778 0 0 0-1.67.535c-.454.323-.728.849-.728 1.401a1.708 1.708 0 0 0 .727 1.523 2.925 2.925 0 0 0 1.671.467ZM47 28.99a9.573 9.573 0 0 1-1.59 5.193c-1.128 1.6-2.52 3-4.129 4.128l1.258 4.129-4.51-2.413h-.243a20.758 20.758 0 0 1-4.6.76 15.538 15.538 0 0 1-7.03-1.59 13.089 13.089 0 0 1-5.008-4.313 10.501 10.501 0 0 1-1.838-5.939 10.29 10.29 0 0 1 1.838-5.92c1.266-1.847 3-3.334 5.008-4.313a15.579 15.579 0 0 1 7.03-1.59 14.919 14.919 0 0 1 6.761 1.59 13.286 13.286 0 0 1 5.09 4.312 10.004 10.004 0 0 1 1.94 5.966H47ZM23.407 11.955a2.77 2.77 0 0 0-1.747.534 1.65 1.65 0 0 0-.76 1.46c-.017.584.27 1.146.76 1.46.498.36 1.1.544 1.716.535a2.083 2.083 0 0 0 1.505-.472c.368-.404.561-.925.534-1.46a1.834 1.834 0 0 0-.534-1.532 1.887 1.887 0 0 0-1.532-.534h.063v.009h-.005Zm5.256 15.03a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.612 1.612 0 0 0-.534-1.136 2.062 2.062 0 0 0-1.46-.499 1.58 1.58 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.288.305.679.48 1.092.499Zm8.953 0a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.558 1.558 0 0 0-.593-1.136 2.12 2.12 0 0 0-1.401-.499 1.493 1.493 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.279.305.674.49 1.092.499Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qet)}var DO=ze(Ket,[["render",Yet]]);const Xet=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),Zet=we({name:"IconWechatpay",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Jet=["stroke-width","stroke-linecap","stroke-linejoin"];function Qet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.514 29.52a1.502 1.502 0 0 1-.715.165c-.608 0-1.104-.33-1.38-.826l-.113-.219-4.357-9.493c-.054-.112-.054-.219-.054-.33 0-.444.331-.774.774-.774.165 0 .33.053.496.165l5.13 3.643c.384.218.827.384 1.323.384.277 0 .55-.054.827-.166l24.058-10.704C39.2 6.288 32.085 2.976 24.026 2.976 10.896 2.976.191 11.861.191 22.837c0 5.958 3.2 11.366 8.22 15.008.383.278.66.774.66 1.27 0 .165-.053.33-.112.496-.384 1.488-1.05 3.92-1.05 4.026a2.025 2.025 0 0 0-.112.608c0 .443.33.774.773.774.165 0 .33-.054.443-.166l5.184-3.034c.384-.219.826-.384 1.27-.384.218 0 .495.053.714.112a27.712 27.712 0 0 0 7.781 1.104c13.13 0 23.835-8.886 23.835-19.862 0-3.312-.992-6.453-2.704-9.216L17.679 29.408l-.165.112Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Jet)}var PO=ze(Zet,[["render",Qet]]);const ett=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),ttt=we({name:"IconWeibo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ntt=["stroke-width","stroke-linecap","stroke-linejoin"];function rtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.82 5.6c-1.445.635-1.776 2.144-.727 3.192.515.516.993.608 3.11.608 2.952 0 4.94.781 6.448 2.53 1.84 2.079 2.052 2.714 2.052 6.513 0 3.377 0 3.441.782 3.892 1.812 1.021 3.017-.24 3.44-3.616.544-4.397-2.078-9.531-6.025-11.877-2.595-1.509-7.029-2.116-9.08-1.242Zm-14.831 5.612c-3.376 1.205-6.633 3.524-10.13 7.268-8.288 8.804-7.746 17.186 1.39 21.648 9.494 4.636 22.282 3.1 29.247-3.533 5.216-4.94 4.581-11.16-1.353-13.267-1.058-.358-1.389-.634-1.232-.966.542-1.324.726-2.86.423-3.772-.939-2.86-4.343-3.523-9.403-1.812l-2.024.69.184-2.024c.212-2.383-.303-3.68-1.72-4.398-1.187-.588-3.45-.524-5.382.166Zm8.381 11.666c4.49 1.232 7.231 3.946 7.231 7.176 0 3.588-3.192 6.817-8.38 8.528-2.77.902-7.931 1.086-10.461.396-4.793-1.353-7.507-4.012-7.507-7.416 0-1.867.81-3.496 2.594-5.152 1.656-1.564 2.926-2.318 5.364-3.137 3.689-1.242 7.636-1.389 11.16-.395Zm-9.494 2.925c-3.045 1.417-4.674 3.588-4.674 6.302 0 2.475 1.086 4.159 3.469 5.428 1.84.994 5.216.902 7.268-.147 2.622-1.39 4.342-3.947 4.342-6.45-.028-2.05-1.84-4.489-3.984-5.363-1.72-.736-4.609-.616-6.421.23Zm2.199 5.667c.211.212.358.727.358 1.178 0 1.509-2.53 2.742-3.56 1.72-.57-.57-.423-1.987.24-2.65.662-.662 2.391-.818 2.962-.248Zm14.26-19.688c-1.39 1.39-.451 3.046 1.748 3.046 1.895 0 2.741.966 2.741 3.137 0 1.352.12 1.748.663 2.107 1.628 1.15 2.953-.12 2.953-2.806 0-3.285-2.355-5.76-5.695-5.999-1.509-.12-1.868-.027-2.41.515Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ntt)}var RO=ze(ttt,[["render",rtt]]);const itt=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),ott=we({name:"IconChineseFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),stt=["stroke-width","stroke-linecap","stroke-linejoin"];function att(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.954 4 4 12.954 4 24s8.954 20 20 20 20-8.954 20-20S35.046 4 24 4Zm2 13v-5h-4v5h-6.5a2.5 2.5 0 0 0-2.5 2.5v7.094a2.5 2.5 0 0 0 2.5 2.5H22V36h4v-6.906h6.5a2.5 2.5 0 0 0 2.5-2.5V19.5a2.5 2.5 0 0 0-2.5-2.5H26Z",fill:"currentColor",stroke:"none"},null,-1)]),14,stt)}var MO=ze(ott,[["render",att]]);const ltt=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),utt=we({name:"IconEnglishFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ctt=["stroke-width","stroke-linecap","stroke-linejoin"];function dtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.2 4C12.596 4 4 12.596 4 23.2v1.6C4 35.404 12.596 44 23.2 44h1.6C35.404 44 44 35.404 44 24.8v-1.6C44 12.596 35.404 4 24.8 4h-1.6Zm-9.086 10A2.114 2.114 0 0 0 12 16.114v15.772c0 1.167.947 2.114 2.114 2.114H25v-4h-9v-4h7.778v-4H16v-4h9v-4H14.114ZM32.4 22a5.4 5.4 0 0 0-5.4 5.4V34h4v-6.6a1.4 1.4 0 0 1 2.801 0V34h4v-6.6a5.4 5.4 0 0 0-5.4-5.4Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ctt)}var $O=ze(utt,[["render",dtt]]);const ftt=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),htt=we({name:"IconMoonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ptt=["stroke-width","stroke-linecap","stroke-linejoin"];function vtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42.108 29.769c.124-.387-.258-.736-.645-.613A17.99 17.99 0 0 1 36 30c-9.941 0-18-8.059-18-18 0-1.904.296-3.74.844-5.463.123-.387-.226-.768-.613-.645C10.558 8.334 5 15.518 5 24c0 10.493 8.507 19 19 19 8.482 0 15.666-5.558 18.108-13.231Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ptt)}var OO=ze(htt,[["render",vtt]]);const mtt=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),gtt=we({name:"IconPenFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ytt=["stroke-width","stroke-linecap","stroke-linejoin"];function btt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{fill:"currentColor",stroke:"none",d:"m31.07 8.444 8.485 8.485L19.05 37.435l-8.485-8.485zM33.9 5.615a2 2 0 0 1 2.829 0l5.657 5.657a2 2 0 0 1 0 2.829l-1.415 1.414-8.485-8.486L33.9 5.615ZM17.636 38.85 9.15 30.363l-3.61 10.83a1 1 0 0 0 1.265 1.265l10.83-3.61Z"},null,-1)]),14,ytt)}var BO=ze(gtt,[["render",btt]]);const _tt=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),Stt=we({name:"IconSunFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ktt=["stroke-width","stroke-linecap","stroke-linejoin"];function xtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M21 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM21 37.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM42.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM10.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM39.203 34.96a.5.5 0 0 1 0 .707l-3.536 3.536a.5.5 0 0 1-.707 0l-3.535-3.536a.5.5 0 0 1 0-.707l3.535-3.535a.5.5 0 0 1 .707 0l3.536 3.535ZM16.575 12.333a.5.5 0 0 1 0 .707l-3.535 3.535a.5.5 0 0 1-.707 0L8.797 13.04a.5.5 0 0 1 0-.707l3.536-3.536a.5.5 0 0 1 .707 0l3.535 3.536ZM13.04 39.203a.5.5 0 0 1-.707 0l-3.536-3.536a.5.5 0 0 1 0-.707l3.536-3.535a.5.5 0 0 1 .707 0l3.536 3.535a.5.5 0 0 1 0 .707l-3.536 3.536ZM35.668 16.575a.5.5 0 0 1-.708 0l-3.535-3.535a.5.5 0 0 1 0-.707l3.535-3.536a.5.5 0 0 1 .708 0l3.535 3.536a.5.5 0 0 1 0 .707l-3.535 3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ktt)}var NO=ze(Stt,[["render",xtt]]);const Ctt=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),wtt=we({name:"IconApps",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ett=["stroke-width","stroke-linecap","stroke-linejoin"];function Ttt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1)]),14,Ett)}var FO=ze(wtt,[["render",Ttt]]);const Wve=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),Att=we({name:"IconArchive",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Itt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ltt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),I("path",{d:"M6 9a1 1 0 0 1 1-1h34a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9ZM19 27h10"},null,-1)]),14,Itt)}var jO=ze(Att,[["render",Ltt]]);const Dtt=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),Ptt=we({name:"IconBarChart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Rtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1)]),14,Rtt)}var VO=ze(Ptt,[["render",Mtt]]);const Gve=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),$tt=we({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ott=["stroke-width","stroke-linecap","stroke-linejoin"];function Btt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1)]),14,Ott)}var zO=ze($tt,[["render",Btt]]);const c_=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),Ntt=we({name:"IconBookmark",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ftt=["stroke-width","stroke-linecap","stroke-linejoin"];function jtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 16h16M16 24h8"},null,-1),I("path",{d:"M24 41H8V6h32v17"},null,-1),I("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1)]),14,Ftt)}var UO=ze(Ntt,[["render",jtt]]);const Vtt=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),ztt=we({name:"IconBranch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Utt=["stroke-width","stroke-linecap","stroke-linejoin"];function Htt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM38 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM19 38a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM15 15v15m0 3.5V30m0 0c0-5 19-7 19-15"},null,-1)]),14,Utt)}var HO=ze(ztt,[["render",Htt]]);const Wtt=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),Gtt=we({name:"IconBug",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ktt=["stroke-width","stroke-linecap","stroke-linejoin"];function qtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 42c-6.075 0-11-4.925-11-11V18h22v13c0 6.075-4.925 11-11 11Zm0 0V23m11 4h8M5 27h8M7 14a4 4 0 0 0 4 4h26a4 4 0 0 0 4-4m0 28v-.5a6.5 6.5 0 0 0-6.5-6.5M7 42v-.5a6.5 6.5 0 0 1 6.5-6.5M17 14a7 7 0 1 1 14 0"},null,-1)]),14,Ktt)}var WO=ze(Gtt,[["render",qtt]]);const Ny=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),Ytt=we({name:"IconBulb",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Xtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ztt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 42h14m6-24c0 2.823-.9 5.437-2.43 7.568-1.539 2.147-3.185 4.32-3.77 6.897l-.623 2.756A1 1 0 0 1 29.2 36H18.8a1 1 0 0 1-.976-.779l-.624-2.756c-.584-2.576-2.23-4.75-3.77-6.897A12.94 12.94 0 0 1 11 18c0-7.18 5.82-13 13-13s13 5.82 13 13Z"},null,-1)]),14,Xtt)}var GO=ze(Ytt,[["render",Ztt]]);const Kve=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),Jtt=we({name:"IconCalendarClock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qtt=["stroke-width","stroke-linecap","stroke-linejoin"];function ent(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 22h34V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h18M34 5v8M14 5v8"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 44a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.5-9.75V29h-3v8.25H42v-3h-4.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Qtt)}var KO=ze(Jtt,[["render",ent]]);const tnt=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),nnt=we({name:"IconCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rnt=["stroke-width","stroke-linecap","stroke-linejoin"];function int(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"},null,-1)]),14,rnt)}var qO=ze(nnt,[["render",int]]);const ont=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),snt=we({name:"IconCloud",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ant=["stroke-width","stroke-linecap","stroke-linejoin"];function lnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 29a9 9 0 0 0 9 9h19c5.523 0 10-4.477 10-10 0-5.312-4.142-9.657-9.373-9.98C32.3 12.833 27.598 9 22 9c-6.606 0-11.965 5.338-12 11.935A9 9 0 0 0 5 29Z"},null,-1)]),14,ant)}var YO=ze(snt,[["render",lnt]]);const unt=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),cnt=we({name:"IconCommand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dnt=["stroke-width","stroke-linecap","stroke-linejoin"];function fnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29 19v-6a6 6 0 1 1 6 6h-6Zm0 0v10m0-10H19m10 10v6a6 6 0 1 0 6-6h-6Zm0 0H19m0-10v10m0-10v-6a6 6 0 1 0-6 6h6Zm0 10v6a6 6 0 1 1-6-6h6Z"},null,-1)]),14,dnt)}var XO=ze(cnt,[["render",fnt]]);const hnt=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),pnt=we({name:"IconCommon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vnt=["stroke-width","stroke-linecap","stroke-linejoin"];function mnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1)]),14,vnt)}var ZO=ze(pnt,[["render",mnt]]);const gnt=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),ynt=we({name:"IconCompass",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bnt=["stroke-width","stroke-linecap","stroke-linejoin"];function _nt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"m21.177 21.183 10.108-4.717a.2.2 0 0 1 .266.265L26.834 26.84l-10.109 4.717a.2.2 0 0 1-.266-.266l4.718-10.108Z"},null,-1)]),14,bnt)}var JO=ze(ynt,[["render",_nt]]);const Snt=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),knt=we({name:"IconComputer",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Cnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H7v22h34V7Z"},null,-1),I("path",{d:"M23.778 29v10"},null,-1),I("path",{d:"M16 39h16"},null,-1),I("path",{d:"m20.243 14.657 5.657 5.657M15.414 22.314l7.071-7.071M24.485 21.728l7.071-7.071"},null,-1)]),14,xnt)}var QO=ze(knt,[["render",Cnt]]);const sW=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),wnt=we({name:"IconCopyright",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ent=["stroke-width","stroke-linecap","stroke-linejoin"];function Tnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.292 18a8 8 0 1 0 0 12M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,Ent)}var eB=ze(wnt,[["render",Tnt]]);const qve=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),Ant=we({name:"IconDashboard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Int=["stroke-width","stroke-linecap","stroke-linejoin"];function Lnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.808 24c.118 4.63-1.486 9.333-5.21 13m5.21-13h-8.309m8.309 0c-.112-4.38-1.767-8.694-4.627-12M24 6c5.531 0 10.07 2.404 13.18 6M24 6c-5.724 0-10.384 2.574-13.5 6.38M24 6v7.5M37.18 12 31 17.5m-20.5-5.12L17 17.5m-6.5-5.12C6.99 16.662 5.44 22.508 6.53 28m4.872 9c-2.65-2.609-4.226-5.742-4.873-9m0 0 8.97-3.5"},null,-1),I("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1)]),14,Int)}var tB=ze(Ant,[["render",Lnt]]);const Dnt=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),Pnt=we({name:"IconDesktop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Rnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z"},null,-1)]),14,Rnt)}var nB=ze(Pnt,[["render",Mnt]]);const tT=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),$nt=we({name:"IconDice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ont=["stroke-width","stroke-linecap","stroke-linejoin"];function Bnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',11)]),14,Ont)}var rB=ze($nt,[["render",Bnt]]);const Nnt=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),Fnt=we({name:"IconDriveFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),jnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Vnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.5 17H29a1 1 0 0 1-1-1V6.5m0-.5H10a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1h28a1 1 0 0 0 1-1V17L28 6Z"},null,-1)]),14,jnt)}var iB=ze(Fnt,[["render",Vnt]]);const znt=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),Unt=we({name:"IconEar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Hnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Wnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 15.528C14.32 12.386 18.403 6.977 23.556 7c7.944.036 14.514 8.528 10.116 15.71-4.399 7.181-5.718 10.323-6.598 14.363-.82 3.766-9.288 7.143-11.498-1.515M20 18.5c1-3.083 4.5-4.5 6.5-2 2.85 3.562-3.503 8.312-5.5 12.5"},null,-1)]),14,Hnt)}var oB=ze(Unt,[["render",Wnt]]);const Gnt=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),Knt=we({name:"IconEmail",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),qnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ynt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),I("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1)]),14,qnt)}var sB=ze(Knt,[["render",Ynt]]);const Xnt=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),Znt=we({name:"IconExperiment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Jnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Qnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10.5 7h6m0 0v10.5l-5.25 14M16.5 7h15m0 0h6m-6 0v10.5L37 32.167M11.25 31.5l-2.344 6.853A2 2 0 0 0 10.8 41h26.758a2 2 0 0 0 1.86-2.737L37 32.167M11.25 31.5c1.916 1.833 7.05 4.4 12.25 0s11.166-1.389 13.5.667M26 22.5v.01"},null,-1)]),14,Jnt)}var aB=ze(Znt,[["render",Qnt]]);const ert=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),trt=we({name:"IconFire",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),nrt=["stroke-width","stroke-linecap","stroke-linejoin"];function rrt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.577 27.477C20.022 22.579 17.041 12.98 24.546 6c0 0-1.156 15.55 5.36 17.181 2.145.537 2.68-5.369 4.289-8.59 0 0 .536 4.832 2.68 8.59 3.217 7.517-1 14.117-5.896 17.182-4.289 2.684-14.587 2.807-19.835-5.37-4.824-7.516 0-15.57 0-15.57s4.289 12.35 6.433 8.054Z"},null,-1)]),14,nrt)}var lB=ze(trt,[["render",rrt]]);const aW=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),irt=we({name:"IconFolderAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ort=["stroke-width","stroke-linecap","stroke-linejoin"];function srt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 19v14m-7-7h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,ort)}var uB=ze(irt,[["render",srt]]);const art=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),lrt=we({name:"IconFolderDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),urt=["stroke-width","stroke-linecap","stroke-linejoin"];function crt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 26h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,urt)}var cB=ze(lrt,[["render",crt]]);const drt=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),frt=we({name:"IconFolder",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),hrt=["stroke-width","stroke-linecap","stroke-linejoin"];function prt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,hrt)}var dB=ze(frt,[["render",prt]]);const lW=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),vrt=we({name:"IconGift",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mrt=["stroke-width","stroke-linecap","stroke-linejoin"];function grt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.45 14.043H8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-4.893m-21.657 0c-1.036-2.833-.615-5.6 1.182-6.637 2.152-1.243 5.464.464 7.397 3.812.539.933.914 1.896 1.127 2.825m-9.706 0h9.706m0 0H25.4m0 0a10.31 10.31 0 0 1 1.128-2.825c1.933-3.348 5.244-5.055 7.397-3.812 1.797 1.037 2.217 3.804 1.182 6.637m-9.707 0h9.707M10 26.043a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H12a2 2 0 0 1-2-2v-13Z"},null,-1)]),14,mrt)}var fB=ze(vrt,[["render",grt]]);const yrt=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),brt=we({name:"IconIdcard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_rt=["stroke-width","stroke-linecap","stroke-linejoin"];function Srt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 17h9m-9 7h9m-9 7h5m-8 9h32a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2Z"},null,-1),I("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),I("circle",{cx:"29",cy:"20",r:"4"},null,-1)]),14,_rt)}var hB=ze(brt,[["render",Srt]]);const krt=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),xrt=we({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Crt=["stroke-width","stroke-linecap","stroke-linejoin"];function wrt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),I("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1)]),14,Crt)}var pB=ze(xrt,[["render",wrt]]);const lA=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),Ert=we({name:"IconInteraction",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Trt=["stroke-width","stroke-linecap","stroke-linejoin"];function Art(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M8 19h16m16 0H24m0 0v23m14 0H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v32a2 2 0 0 1-2 2Z"},null,-1)]),14,Trt)}var vB=ze(Ert,[["render",Art]]);const Irt=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),Lrt=we({name:"IconLanguage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Drt=["stroke-width","stroke-linecap","stroke-linejoin"];function Prt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m42 43-2.385-6M26 43l2.384-6m11.231 0-.795-2-4.18-10h-1.28l-4.181 10-.795 2m11.231 0h-11.23M17 5l1 5M5 11h26M11 11s1.889 7.826 6.611 12.174C22.333 27.522 30 31 30 31"},null,-1),I("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1)]),14,Drt)}var mB=ze(Lrt,[["render",Prt]]);const Yve=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),Rrt=we({name:"IconLayers",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Mrt=["stroke-width","stroke-linecap","stroke-linejoin"];function $rt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),I("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1)]),14,Mrt)}var gB=ze(Rrt,[["render",$rt]]);const Ort=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),Brt=we({name:"IconLayout",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Nrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Frt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 40V8m23 2a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h32a2 2 0 0 0 2-2V10Z"},null,-1)]),14,Nrt)}var yB=ze(Brt,[["render",Frt]]);const jrt=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),Vrt=we({name:"IconLocation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Urt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"19",r:"5"},null,-1),I("path",{d:"M39 20.405C39 28.914 24 43 24 43S9 28.914 9 20.405C9 11.897 15.716 5 24 5c8.284 0 15 6.897 15 15.405Z"},null,-1)]),14,zrt)}var bB=ze(Vrt,[["render",Urt]]);const Hrt=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),Wrt=we({name:"IconLock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Grt=["stroke-width","stroke-linecap","stroke-linejoin"];function Krt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1)]),14,Grt)}var _B=ze(Wrt,[["render",Krt]]);const qrt=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),Yrt=we({name:"IconLoop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Xrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Zrt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 38c-7.732 0-14-6.268-14-14 0-3.815 1.526-7.273 4-9.798M24 10c7.732 0 14 6.268 14 14 0 3.815-1.526 7.273-4 9.798M24 7v6l-4-3 4-3Zm0 33v-6l4 3-4 3Z"},null,-1)]),14,Xrt)}var SB=ze(Yrt,[["render",Zrt]]);const Jrt=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),Qrt=we({name:"IconMan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),eit=["stroke-width","stroke-linecap","stroke-linejoin"];function tit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 8 29.68 18.321M31 8h9v9m-7 10c0 7.18-5.82 13-13 13S7 34.18 7 27s5.82-13 13-13 13 5.82 13 13Z"},null,-1)]),14,eit)}var kB=ze(Qrt,[["render",tit]]);const nit=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),rit=we({name:"IconMenu",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iit=["stroke-width","stroke-linecap","stroke-linejoin"];function oit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1)]),14,iit)}var xB=ze(rit,[["render",oit]]);const Xve=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),sit=we({name:"IconMindMapping",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ait=["stroke-width","stroke-linecap","stroke-linejoin"];function lit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 10h23M20 24h23M20 38h23M9 12v28m0-28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 26h7M9 24h7"},null,-1)]),14,ait)}var CB=ze(sit,[["render",lit]]);const uit=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),cit=we({name:"IconMobile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dit=["stroke-width","stroke-linecap","stroke-linejoin"];function fit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 14h14m6.125 28h-26.25C9.839 42 9 41.105 9 40V8c0-1.105.84-2 1.875-2h26.25C38.16 6 39 6.895 39 8v32c0 1.105-.84 2-1.875 2ZM22 33a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"},null,-1),I("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1)]),14,dit)}var wB=ze(cit,[["render",fit]]);const Zve=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),hit=we({name:"IconMoon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),pit=["stroke-width","stroke-linecap","stroke-linejoin"];function vit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.979 29.241c.11-.344-.23-.654-.574-.544-1.53.487-3.162.75-4.855.75-8.834 0-15.997-7.163-15.997-15.997 0-1.693.263-3.324.75-4.855.11-.344-.2-.684-.544-.574C11.939 10.19 7 16.576 7 24.114 7 33.44 14.56 41 23.886 41c7.538 0 13.923-4.94 16.093-11.759Z"},null,-1)]),14,pit)}var EB=ze(hit,[["render",vit]]);const mit=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),git=we({name:"IconMosaic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yit=["stroke-width","stroke-linecap","stroke-linejoin"];function bit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z"},null,-1)]),14,yit)}var TB=ze(git,[["render",bit]]);const _it=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),Sit=we({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kit=["stroke-width","stroke-linecap","stroke-linejoin"];function xit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1)]),14,kit)}var AB=ze(Sit,[["render",xit]]);const Cit=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),wit=we({name:"IconNotificationClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Eit=["stroke-width","stroke-linecap","stroke-linejoin"];function Tit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 35V22c0-1.835.38-3.58 1.066-5.163M11 35H6m5 0h15.5M24 9c7.18 0 13 5.82 13 13v7.5M24 9V4m0 5a12.94 12.94 0 0 0-6.5 1.74M17 42h14M6 4l36 40"},null,-1)]),14,Eit)}var IB=ze(wit,[["render",Tit]]);const Ait=Object.assign(IB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IB.name,IB)}}),Iit=we({name:"IconNotification",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Lit=["stroke-width","stroke-linecap","stroke-linejoin"];function Dit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 9c7.18 0 13 5.82 13 13v13H11V22c0-7.18 5.82-13 13-13Zm0 0V4M6 35h36m-25 7h14"},null,-1)]),14,Lit)}var LB=ze(Iit,[["render",Dit]]);const Pit=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Rit=we({name:"IconPalette",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Mit=["stroke-width","stroke-linecap","stroke-linejoin"];function $it(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,Mit)}var DB=ze(Rit,[["render",$it]]);const uW=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),Oit=we({name:"IconPen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Bit=["stroke-width","stroke-linecap","stroke-linejoin"];function Nit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m28.364 11.565 7.07 7.071M7.15 32.778 33.313 6.615l7.071 7.071L14.221 39.85h-7.07v-7.07Z"},null,-1)]),14,Bit)}var PB=ze(Oit,[["render",Nit]]);const Fit=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),jit=we({name:"IconPhone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Vit=["stroke-width","stroke-linecap","stroke-linejoin"];function zit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6.707 34.284a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l4.95 4.95s3.535-1.414 7.778-5.657c4.243-4.243 5.657-7.778 5.657-7.778l-4.95-4.95a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l6.01 6.01s3.183 7.425-8.485 19.092c-11.667 11.668-19.092 8.485-19.092 8.485l-6.01-6.01Z"},null,-1)]),14,Vit)}var RB=ze(jit,[["render",zit]]);const Uit=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),Hit=we({name:"IconPrinter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Wit=["stroke-width","stroke-linecap","stroke-linejoin"];function Git(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 15V8a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7m-20 0H7a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h6m1-19h20m0 0h7a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-6m-22 0v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6m-22 0v-5a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v5"},null,-1)]),14,Wit)}var MB=ze(Hit,[["render",Git]]);const Kit=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),qit=we({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Yit=["stroke-width","stroke-linecap","stroke-linejoin"];function Xit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,Yit)}var $B=ze(qit,[["render",Xit]]);const Zit=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),Jit=we({name:"IconPushpin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qit=["stroke-width","stroke-linecap","stroke-linejoin"];function eot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.921 28.163 7.193 40.89m12.728-12.728 8.884 8.883c.17.17.447.17.617 0l5.12-5.12a7.862 7.862 0 0 0 1.667-8.655.093.093 0 0 1 .02-.102l4.906-4.906a2 2 0 0 0 0-2.828L32.648 6.95a2 2 0 0 0-2.828 0l-4.89 4.889a.126.126 0 0 1-.139.027 7.828 7.828 0 0 0-8.618 1.66l-5.027 5.026a.591.591 0 0 0 0 .836l8.774 8.775Z"},null,-1)]),14,Qit)}var OB=ze(Jit,[["render",eot]]);const tot=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),not=we({name:"IconQrcode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rot=["stroke-width","stroke-linecap","stroke-linejoin"];function iot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 30v4m0 3v6m19-19h-6m-3 0h-4M7 7h17v17H7V7Zm0 25h9v9H7v-9Zm25 0h9v9h-9v-9Zm0-25h9v9h-9V7Zm-18 7h3v3h-3v-3Z"},null,-1)]),14,rot)}var BB=ze(not,[["render",iot]]);const oot=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),sot=we({name:"IconRelation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aot=["stroke-width","stroke-linecap","stroke-linejoin"];function lot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.714 14C15.204 15.784 12 20.302 12 25.593c0 1.142.15 2.247.429 3.298m16.285-14.712C32.998 16.073 36 20.471 36 25.593c0 1.07-.131 2.11-.378 3.102m-18.32 7.194a11.676 11.676 0 0 0 13.556-.112"},null,-1),I("path",{d:"M24 19a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM36 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM12 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"},null,-1)]),14,aot)}var NB=ze(sot,[["render",lot]]);const uot=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),cot=we({name:"IconRobotAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dot=["stroke-width","stroke-linecap","stroke-linejoin"];function fot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,dot)}var FB=ze(cot,[["render",fot]]);const hot=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),pot=we({name:"IconRobot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vot=["stroke-width","stroke-linecap","stroke-linejoin"];function mot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,vot)}var jB=ze(pot,[["render",mot]]);const got=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),yot=we({name:"IconSafe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bot=["stroke-width","stroke-linecap","stroke-linejoin"];function _ot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16.825 22.165 6 6 10-10M24 6c7 4 16 5 16 5v15s-2 12-16 16.027C10 38 8 26 8 26V11s9-1 16-5Z"},null,-1)]),14,bot)}var VB=ze(yot,[["render",_ot]]);const bf=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),Sot=we({name:"IconSchedule",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kot=["stroke-width","stroke-linecap","stroke-linejoin"];function xot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M24 13v10l6.5 7"},null,-1)]),14,kot)}var zB=ze(Sot,[["render",xot]]);const Cot=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),wot=we({name:"IconShake",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Eot=["stroke-width","stroke-linecap","stroke-linejoin"];function Tot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.092 27.536 31.778 38.849M20.465 4.91 9.15 16.221m9.192 14.85a1 1 0 1 1-1.414-1.415 1 1 0 0 1 1.414 1.414ZM6.323 28.95 19.05 41.678a1 1 0 0 0 1.415 0l21.213-21.213a1 1 0 0 0 0-1.415L28.95 6.322a1 1 0 0 0-1.415 0L6.322 27.536a1 1 0 0 0 0 1.414Z"},null,-1),I("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1)]),14,Eot)}var UB=ze(wot,[["render",Tot]]);const Aot=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),Iot=we({name:"IconSkin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Lot=["stroke-width","stroke-linecap","stroke-linejoin"];function Dot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.936 6H7a1 1 0 0 0-1 1v17.559a1 1 0 0 0 1 1h4V40a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V25.559h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H30.064C28.854 7.23 26.59 9.059 24 9.059S19.147 7.23 17.936 6Z"},null,-1)]),14,Lot)}var HB=ze(Iot,[["render",Dot]]);const Pot=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Rot=we({name:"IconStamp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Mot=["stroke-width","stroke-linecap","stroke-linejoin"];function $ot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 33a1 1 0 0 1 1-1h32a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-7ZM29.081 21.18a8 8 0 1 0-10.163 0L14 32h20l-4.919-10.82Z"},null,-1)]),14,Mot)}var WB=ze(Rot,[["render",$ot]]);const Oot=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Bot=we({name:"IconStorage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Not=["stroke-width","stroke-linecap","stroke-linejoin"];function Fot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 18h34v12H7V18ZM40 6H8a1 1 0 0 0-1 1v11h34V7a1 1 0 0 0-1-1ZM7 30h34v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V30Z"},null,-1),I("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),I("path",{d:"M13 12v-2h-2v2h2Zm.02 0h2v-2h-2v2Zm0 .02v2h2v-2h-2Zm-.02 0h-2v2h2v-2ZM13 14h.02v-4H13v4Zm-1.98-2v.02h4V12h-4Zm2-1.98H13v4h.02v-4Zm1.98 2V12h-4v.02h4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1)]),14,Not)}var GB=ze(Bot,[["render",Fot]]);const CV=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),jot=we({name:"IconSubscribeAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Vot=["stroke-width","stroke-linecap","stroke-linejoin"];function zot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.53 6.007H9.97c-.535 0-.97.449-.97 1.003V41.8c0 .148.152.245.28.179l15.25-7.881 14.248 7.88c.129.067.28-.03.28-.179V22.06M27.413 11.023h6.794m0 0H41m-6.794 0V4m0 7.023v7.023"},null,-1)]),14,Vot)}var KB=ze(jot,[["render",zot]]);const Uot=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),Hot=we({name:"IconSubscribe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Wot=["stroke-width","stroke-linecap","stroke-linejoin"];function Got(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9 7v34.667a.2.2 0 0 0 .294.176L24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1Z"},null,-1)]),14,Wot)}var qB=ze(Hot,[["render",Got]]);const Kot=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),qot=we({name:"IconSubscribed",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Yot=["stroke-width","stroke-linecap","stroke-linejoin"];function Xot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m31.289 15.596-9.193 9.193-4.95-4.95M24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1v34.667a.2.2 0 0 0 .294.176L24 34Z"},null,-1)]),14,Yot)}var YB=ze(qot,[["render",Xot]]);const Zot=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),Jot=we({name:"IconSun",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qot=["stroke-width","stroke-linecap","stroke-linejoin"];function est(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"7"},null,-1),I("path",{d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1)]),14,Qot)}var XB=ze(Jot,[["render",est]]);const tst=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),nst=we({name:"IconTag",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rst=["stroke-width","stroke-linecap","stroke-linejoin"];function ist(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.835 6.035a1 1 0 0 1 .903-.273l12.964 2.592a1 1 0 0 1 .784.785l2.593 12.963a1 1 0 0 1-.274.904L21.678 43.133a1 1 0 0 1-1.415 0L4.708 27.577a1 1 0 0 1 0-1.414L24.835 6.035Z"},null,-1),I("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),I("path",{d:"M31.582 17.349a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,rst)}var ZB=ze(nst,[["render",ist]]);const ost=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),sst=we({name:"IconTags",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ast=["stroke-width","stroke-linecap","stroke-linejoin"];function lst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m37.581 28.123-14.849 14.85a1 1 0 0 1-1.414 0L8.59 30.243m25.982-22.68-10.685-.628a1 1 0 0 0-.766.291L9.297 21.052a1 1 0 0 0 0 1.414L20.61 33.78a1 1 0 0 0 1.415 0l13.824-13.825a1 1 0 0 0 .291-.765l-.628-10.686a1 1 0 0 0-.94-.94Zm-6.874 7.729a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z"},null,-1),I("path",{d:"M27.697 15.292a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ast)}var JB=ze(sst,[["render",lst]]);const ust=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),cst=we({name:"IconThunderbolt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dst=["stroke-width","stroke-linecap","stroke-linejoin"];function fst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M27.824 5.203A.1.1 0 0 1 28 5.27V21h10.782a.1.1 0 0 1 .075.165L20.176 42.797A.1.1 0 0 1 20 42.73V27H9.219a.1.1 0 0 1-.076-.165L27.824 5.203Z"},null,-1)]),14,dst)}var QB=ze(cst,[["render",fst]]);const hst=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),pst=we({name:"IconTool",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vst=["stroke-width","stroke-linecap","stroke-linejoin"];function mst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.994 11.035c3.66-3.659 9.094-4.46 13.531-2.405a.1.1 0 0 1 .028.16l-6.488 6.488a1 1 0 0 0 0 1.414l4.243 4.243a1 1 0 0 0 1.414 0l6.488-6.488a.1.1 0 0 1 .16.028c2.056 4.437 1.254 9.872-2.405 13.53-3.695 3.696-9.2 4.477-13.66 2.347L12.923 40.733a1 1 0 0 1-1.414 0L7.266 36.49a1 1 0 0 1 0-1.414l10.382-10.382c-2.13-4.46-1.349-9.965 2.346-13.66Z"},null,-1)]),14,vst)}var eN=ze(pst,[["render",mst]]);const gst=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),yst=we({name:"IconTrophy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bst=["stroke-width","stroke-linecap","stroke-linejoin"];function _st(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 33c-6.075 0-11-4.925-11-11m11 11c6.075 0 11-4.925 11-11M24 33v8M13 22V7h22v15m-22 0V9H7v7a6 6 0 0 0 6 6Zm22 0V9h6v7a6 6 0 0 1-6 6ZM12 41h24"},null,-1)]),14,bst)}var tN=ze(yst,[["render",_st]]);const Sst=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),kst=we({name:"IconUnlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xst=["stroke-width","stroke-linecap","stroke-linejoin"];function Cst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1)]),14,xst)}var nN=ze(kst,[["render",Cst]]);const wst=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),Est=we({name:"IconUserAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Tst=["stroke-width","stroke-linecap","stroke-linejoin"];function Ast(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 27h-8c-5.523 0-10 4.477-10 10v4h18m11-14v8m0 0v8m0-8h8m-8 0h-8m3-21a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"},null,-1)]),14,Tst)}var rN=ze(Est,[["render",Ast]]);const Ist=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),Lst=we({name:"IconUserGroup",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Dst=["stroke-width","stroke-linecap","stroke-linejoin"];function Pst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"18",cy:"15",r:"7"},null,-1),I("circle",{cx:"34",cy:"19",r:"4"},null,-1),I("path",{d:"M6 34a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v6H6v-6ZM34 30h4a4 4 0 0 1 4 4v4h-8"},null,-1)]),14,Dst)}var iN=ze(Lst,[["render",Pst]]);const Rst=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),Mst=we({name:"IconUser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),$st=["stroke-width","stroke-linecap","stroke-linejoin"];function Ost(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 37c0-4.97 4.03-8 9-8h16c4.97 0 9 3.03 9 8v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3Z"},null,-1),I("circle",{cx:"24",cy:"15",r:"8"},null,-1)]),14,$st)}var oN=ze(Mst,[["render",Ost]]);const Bst=Object.assign(oN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oN.name,oN)}}),Nst=we({name:"IconVideoCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Fst=["stroke-width","stroke-linecap","stroke-linejoin"];function jst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33 18v12m0-12v-6a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v24a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1v-6m0-12 8.713-2.614a1 1 0 0 1 1.287.958v15.312a1 1 0 0 1-1.287.958L33 30M11 19h6"},null,-1)]),14,Fst)}var sN=ze(Nst,[["render",jst]]);const Jve=Object.assign(sN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sN.name,sN)}}),Vst=we({name:"IconWifi",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zst=["stroke-width","stroke-linecap","stroke-linejoin"];function Ust(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.587 31.485A9.978 9.978 0 0 0 24 28a9.977 9.977 0 0 0-7.586 3.485M37.255 25.822A17.953 17.953 0 0 0 24 20a17.953 17.953 0 0 0-13.256 5.822M43.618 19.449C38.696 14.246 31.728 11 24 11c-7.727 0-14.696 3.246-19.617 8.449"},null,-1),I("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zst)}var aN=ze(Vst,[["render",Ust]]);const Hst=Object.assign(aN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aN.name,aN)}}),Wst=we({name:"IconWoman",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Re("icon"),r=F(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Gst=["stroke-width","stroke-linecap","stroke-linejoin"];function Kst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:de(e.cls),style:Ye(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 29c6.075 0 11-4.925 11-11S30.075 7 24 7s-11 4.925-11 11 4.925 11 11 11Zm0 0v15M15 36h18"},null,-1)]),14,Gst)}var lN=ze(Wst,[["render",Kst]]);const qst=Object.assign(lN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lN.name,lN)}}),wV={IconArrowDown:kV,IconArrowFall:rWe,IconArrowLeft:nW,IconArrowRight:cWe,IconArrowRise:pWe,IconArrowUp:xV,IconCaretDown:HH,IconCaretLeft:EH,IconCaretRight:wH,IconCaretUp:yve,IconDoubleDown:SWe,IconDoubleLeft:a0e,IconDoubleRight:l0e,IconDoubleUp:wWe,IconDownCircle:IWe,IconDown:Zh,IconDragArrow:Mve,IconExpand:OWe,IconLeftCircle:jWe,IconLeft:Il,IconMenuFold:eve,IconMenuUnfold:tve,IconRightCircle:HWe,IconRight:Hi,IconRotateLeft:O0e,IconRotateRight:B0e,IconShrink:qWe,IconSwap:$ve,IconToBottom:tGe,IconToLeft:oGe,IconToRight:uGe,IconToTop:Epe,IconUpCircle:hGe,IconUp:tS,IconCheckCircleFill:Yh,IconCloseCircleFill:eg,IconExclamationCircleFill:If,IconExclamationPolygonFill:gGe,IconInfoCircleFill:a3,IconMinusCircleFill:SGe,IconPlusCircleFill:wGe,IconQuestionCircleFill:IGe,IconCheckCircle:gu,IconCheckSquare:OGe,IconCheck:rg,IconClockCircle:l_,IconCloseCircle:Ove,IconClose:fs,IconExclamationCircle:$c,IconExclamation:jH,IconInfoCircle:Pc,IconInfo:lve,IconMinusCircle:YGe,IconMinus:$m,IconPlusCircle:QGe,IconPlus:Cf,IconQuestionCircle:RH,IconQuestion:rKe,IconStop:aKe,IconHeartFill:rW,IconStarFill:VH,IconThumbDownFill:pKe,IconThumbUpFill:yKe,IconAt:kKe,IconCloudDownload:EKe,IconCodeBlock:Bve,IconCodeSquare:RKe,IconCode:T0,IconCustomerService:jKe,IconDownload:Ph,IconExport:iA,IconEyeInvisible:_pe,IconEye:x0,IconHeart:oA,IconHistory:Om,IconHome:h3,IconImport:sA,IconLaunch:Nve,IconList:iW,IconMessageBanned:pqe,IconMessage:yqe,IconMoreVertical:kqe,IconMore:j0,IconPoweroff:Eqe,IconRefresh:zc,IconReply:Rqe,IconSave:Up,IconScan:jqe,IconSearch:Pm,IconSelectAll:Hqe,IconSend:qqe,IconSettings:Lf,IconShareAlt:tYe,IconShareExternal:oYe,IconShareInternal:uYe,IconStar:aA,IconSync:mYe,IconThumbDown:_Ye,IconThumbUp:CYe,IconTranslate:AYe,IconUpload:E0,IconVoice:PYe,IconAlignCenter:OYe,IconAlignLeft:jYe,IconAlignRight:HYe,IconAttachment:qYe,IconBgColors:Fve,IconBold:tXe,IconBrush:oXe,IconCopy:nA,IconDelete:Pu,IconEdit:YH,IconEraser:uXe,IconFilter:WH,IconFindReplace:hXe,IconFontColors:jve,IconFormula:_Xe,IconH1:CXe,IconH2:AXe,IconH3:PXe,IconH4:OXe,IconH5:jXe,IconH6:HXe,IconH7:qXe,IconHighlight:JXe,IconItalic:nZe,IconLineHeight:sZe,IconLink:Mc,IconObliqueLine:Ape,IconOrderedList:cZe,IconOriginalSize:N0e,IconPaste:pZe,IconQuote:yZe,IconRedo:kZe,IconScissor:EZe,IconSortAscending:Vve,IconSortDescending:zve,IconSort:OZe,IconStrikethrough:jZe,IconUnderline:HZe,IconUndo:qZe,IconUnorderedList:JZe,IconZoomIn:$0e,IconZoomOut:M0e,IconMuteFill:nJe,IconPauseCircleFill:sJe,IconPlayArrowFill:Ive,IconPlayCircleFill:cJe,IconSkipNextFill:pJe,IconSkipPreviousFill:yJe,IconSoundFill:kJe,IconBackward:EJe,IconForward:LJe,IconFullscreenExit:oW,IconFullscreen:X5,IconLiveBroadcast:u_,IconMusic:jJe,IconMute:HJe,IconPauseCircle:qJe,IconPause:Ave,IconPlayArrow:ha,IconPlayCircle:By,IconRecordStop:iQe,IconRecord:lQe,IconSkipNext:fQe,IconSkipPrevious:mQe,IconSound:Uve,IconBytedanceColor:xQe,IconLarkColor:TQe,IconTiktokColor:DQe,IconXiguaColor:$Qe,IconFaceBookCircleFill:FQe,IconFacebookSquareFill:UQe,IconGoogleCircleFill:KQe,IconQqCircleFill:ZQe,IconTwitterCircleFill:tet,IconWeiboCircleFill:oet,IconAlipayCircle:cet,IconCodeSandbox:pet,IconCodepen:yet,IconFacebook:xet,IconGithub:Hve,IconGitlab:Let,IconGoogle:Met,IconQqZone:Net,IconQq:zet,IconTwitter:Get,IconWechat:Xet,IconWechatpay:ett,IconWeibo:itt,IconChineseFill:ltt,IconEnglishFill:ftt,IconFaceFrownFill:ave,IconFaceMehFill:pV,IconFaceSmileFill:sve,IconMoonFill:mtt,IconPenFill:_tt,IconSunFill:Ctt,IconApps:Wve,IconArchive:Dtt,IconBarChart:Gve,IconBook:c_,IconBookmark:Vtt,IconBranch:Wtt,IconBug:Ny,IconBulb:Kve,IconCalendarClock:tnt,IconCalendar:oS,IconCamera:ont,IconCloud:unt,IconCommand:hnt,IconCommon:gnt,IconCompass:Snt,IconComputer:sW,IconCopyright:qve,IconDashboard:Dnt,IconDesktop:tT,IconDice:Nnt,IconDragDotVertical:Z5,IconDragDot:H0e,IconDriveFile:znt,IconEar:Gnt,IconEmail:Xnt,IconEmpty:N5,IconExperiment:ert,IconFileAudio:QH,IconFileImage:ZH,IconFilePdf:Dve,IconFileVideo:JH,IconFile:lS,IconFire:aW,IconFolderAdd:art,IconFolderDelete:drt,IconFolder:lW,IconGift:yrt,IconIdcard:krt,IconImageClose:z5,IconImage:lA,IconInteraction:Irt,IconLanguage:Yve,IconLayers:Ort,IconLayout:jrt,IconLoading:Ja,IconLocation:Hrt,IconLock:qrt,IconLoop:Jrt,IconMan:nit,IconMenu:Xve,IconMindMapping:uit,IconMobile:Zve,IconMoon:mit,IconMosaic:_it,IconNav:Cit,IconNotificationClose:Ait,IconNotification:Pit,IconPalette:uW,IconPen:Fit,IconPhone:Uit,IconPrinter:Kit,IconPublic:Zit,IconPushpin:tot,IconQrcode:oot,IconRelation:uot,IconRobotAdd:hot,IconRobot:got,IconSafe:bf,IconSchedule:Cot,IconShake:Aot,IconSkin:Pot,IconStamp:Oot,IconStorage:CV,IconSubscribeAdd:Uot,IconSubscribe:Kot,IconSubscribed:Zot,IconSun:tst,IconTag:ost,IconTags:ust,IconThunderbolt:hst,IconTool:gst,IconTrophy:Sst,IconUnlock:wst,IconUserAdd:Ist,IconUserGroup:Rst,IconUser:Bst,IconVideoCamera:Jve,IconWifi:Hst,IconWoman:qst},Yst=(e,t)=>{for(const n of Object.keys(wV))e.use(wV[n],t)},Xst={...wV,install:Yst};function Qve(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zst}=Object.prototype,{getPrototypeOf:cW}=Object,{iterator:uA,toStringTag:eme}=Symbol,cA=(e=>t=>{const n=Zst.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bd=e=>(e=e.toLowerCase(),t=>cA(t)===e),dA=e=>t=>typeof t===e,{isArray:p3}=Array,Fy=dA("undefined");function uS(e){return e!==null&&!Fy(e)&&e.constructor!==null&&!Fy(e.constructor)&&Au(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tme=Bd("ArrayBuffer");function Jst(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tme(e.buffer),t}const Qst=dA("string"),Au=dA("function"),nme=dA("number"),cS=e=>e!==null&&typeof e=="object",eat=e=>e===!0||e===!1,iE=e=>{if(cA(e)!=="object")return!1;const t=cW(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(eme in e)&&!(uA in e)},tat=e=>{if(!cS(e)||uS(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nat=Bd("Date"),rat=Bd("File"),iat=Bd("Blob"),oat=Bd("FileList"),sat=e=>cS(e)&&Au(e.pipe),aat=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Au(e.append)&&((t=cA(e))==="formdata"||t==="object"&&Au(e.toString)&&e.toString()==="[object FormData]"))},lat=Bd("URLSearchParams"),[uat,cat,dat,fat]=["ReadableStream","Request","Response","Headers"].map(Bd),hat=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),p3(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const em=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ime=e=>!Fy(e)&&e!==em;function EV(){const{caseless:e,skipUndefined:t}=ime(this)&&this||{},n={},r=(i,a)=>{const s=e&&rme(n,a)||a;iE(n[s])&&iE(i)?n[s]=EV(n[s],i):iE(i)?n[s]=EV({},i):p3(i)?n[s]=i.slice():(!t||!Fy(i))&&(n[s]=i)};for(let i=0,a=arguments.length;i(dS(t,(i,a)=>{n&&Au(i)?e[a]=Qve(i,n):e[a]=i},{allOwnKeys:r}),e),vat=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mat=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gat=(e,t,n,r)=>{let i,a,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&cW(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yat=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bat=e=>{if(!e)return null;if(p3(e))return e;let t=e.length;if(!nme(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_at=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cW(Uint8Array)),Sat=(e,t)=>{const r=(e&&e[uA]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},kat=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},xat=Bd("HTMLFormElement"),Cat=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),lie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wat=Bd("RegExp"),ome=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};dS(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},Eat=e=>{ome(e,(t,n)=>{if(Au(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Au(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Tat=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return p3(e)?r(e):r(String(e).split(t)),n},Aat=()=>{},Iat=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Lat(e){return!!(e&&Au(e.append)&&e[eme]==="FormData"&&e[uA])}const Dat=e=>{const t=new Array(10),n=(r,i)=>{if(cS(r)){if(t.indexOf(r)>=0)return;if(uS(r))return r;if(!("toJSON"in r)){t[i]=r;const a=p3(r)?[]:{};return dS(r,(s,l)=>{const c=n(s,i+1);!Fy(c)&&(a[l]=c)}),t[i]=void 0,a}}return r};return n(e,0)},Pat=Bd("AsyncFunction"),Rat=e=>e&&(cS(e)||Au(e))&&Au(e.then)&&Au(e.catch),sme=((e,t)=>e?setImmediate:t?((n,r)=>(em.addEventListener("message",({source:i,data:a})=>{i===em&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),em.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Au(em.postMessage)),Mat=typeof queueMicrotask<"u"?queueMicrotask.bind(em):typeof process<"u"&&process.nextTick||sme,$at=e=>e!=null&&Au(e[uA]),en={isArray:p3,isArrayBuffer:tme,isBuffer:uS,isFormData:aat,isArrayBufferView:Jst,isString:Qst,isNumber:nme,isBoolean:eat,isObject:cS,isPlainObject:iE,isEmptyObject:tat,isReadableStream:uat,isRequest:cat,isResponse:dat,isHeaders:fat,isUndefined:Fy,isDate:nat,isFile:rat,isBlob:iat,isRegExp:wat,isFunction:Au,isStream:sat,isURLSearchParams:lat,isTypedArray:_at,isFileList:oat,forEach:dS,merge:EV,extend:pat,trim:hat,stripBOM:vat,inherits:mat,toFlatObject:gat,kindOf:cA,kindOfTest:Bd,endsWith:yat,toArray:bat,forEachEntry:Sat,matchAll:kat,isHTMLForm:xat,hasOwnProperty:lie,hasOwnProp:lie,reduceDescriptors:ome,freezeMethods:Eat,toObjectSet:Tat,toCamelCase:Cat,noop:Aat,toFiniteNumber:Iat,findKey:rme,global:em,isContextDefined:ime,isSpecCompliantForm:Lat,toJSONObject:Dat,isAsyncFn:Pat,isThenable:Rat,setImmediate:sme,asap:Mat,isIterable:$at};function ti(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}en.inherits(ti,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:en.toJSONObject(this.config),code:this.code,status:this.status}}});const ame=ti.prototype,lme={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lme[e]={value:e}});Object.defineProperties(ti,lme);Object.defineProperty(ame,"isAxiosError",{value:!0});ti.from=(e,t,n,r,i,a)=>{const s=Object.create(ame);en.toFlatObject(e,s,function(h){return h!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ti.call(s,l,c,n,r,i),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};const Oat=null;function TV(e){return en.isPlainObject(e)||en.isArray(e)}function ume(e){return en.endsWith(e,"[]")?e.slice(0,-2):e}function uie(e,t,n){return e?e.concat(t).map(function(i,a){return i=ume(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Bat(e){return en.isArray(e)&&!e.some(TV)}const Nat=en.toFlatObject(en,{},null,function(t){return/^is[A-Z]/.test(t)});function fA(e,t,n){if(!en.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=en.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!en.isUndefined(k[S])});const r=n.metaTokens,i=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&en.isSpecCompliantForm(t);if(!en.isFunction(i))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(en.isDate(y))return y.toISOString();if(en.isBoolean(y))return y.toString();if(!c&&en.isBlob(y))throw new ti("Blob is not supported. Use a Buffer instead.");return en.isArrayBuffer(y)||en.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y,S,k){let C=y;if(y&&!k&&typeof y=="object"){if(en.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=JSON.stringify(y);else if(en.isArray(y)&&Bat(y)||(en.isFileList(y)||en.endsWith(S,"[]"))&&(C=en.toArray(y)))return S=ume(S),C.forEach(function(E,_){!(en.isUndefined(E)||E===null)&&t.append(s===!0?uie([S],_,a):s===null?S:S+"[]",d(E))}),!1}return TV(y)?!0:(t.append(uie(k,S,a),d(y)),!1)}const p=[],v=Object.assign(Nat,{defaultVisitor:h,convertValue:d,isVisitable:TV});function g(y,S){if(!en.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(y),en.forEach(y,function(C,x){(!(en.isUndefined(C)||C===null)&&i.call(t,C,en.isString(x)?x.trim():x,S,v))===!0&&g(C,S?S.concat(x):[x])}),p.pop()}}if(!en.isObject(e))throw new TypeError("data must be an object");return g(e),t}function cie(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function dW(e,t){this._pairs=[],e&&fA(e,this,t)}const cme=dW.prototype;cme.append=function(t,n){this._pairs.push([t,n])};cme.toString=function(t){const n=t?function(r){return t.call(this,r,cie)}:cie;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Fat(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dme(e,t,n){if(!t)return e;const r=n&&n.encode||Fat;en.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=en.isURLSearchParams(t)?t.toString():new dW(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class die{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){en.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fme={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jat=typeof URLSearchParams<"u"?URLSearchParams:dW,Vat=typeof FormData<"u"?FormData:null,zat=typeof Blob<"u"?Blob:null,Uat={isBrowser:!0,classes:{URLSearchParams:jat,FormData:Vat,Blob:zat},protocols:["http","https","file","blob","url","data"]},fW=typeof window<"u"&&typeof document<"u",AV=typeof navigator=="object"&&navigator||void 0,Hat=fW&&(!AV||["ReactNative","NativeScript","NS"].indexOf(AV.product)<0),Wat=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gat=fW&&window.location.href||"http://localhost",Kat=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fW,hasStandardBrowserEnv:Hat,hasStandardBrowserWebWorkerEnv:Wat,navigator:AV,origin:Gat},Symbol.toStringTag,{value:"Module"})),kl={...Kat,...Uat};function qat(e,t){return fA(e,new kl.classes.URLSearchParams,{visitor:function(n,r,i,a){return kl.isNode&&en.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function Yat(e){return en.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xat(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&en.isArray(i)?i.length:s,c?(en.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!en.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&en.isArray(i[s])&&(i[s]=Xat(i[s])),!l)}if(en.isFormData(e)&&en.isFunction(e.entries)){const n={};return en.forEachEntry(e,(r,i)=>{t(Yat(r),i,n,0)}),n}return null}function Zat(e,t,n){if(en.isString(e))try{return(t||JSON.parse)(e),en.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const fS={transitional:fme,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=en.isObject(t);if(a&&en.isHTMLForm(t)&&(t=new FormData(t)),en.isFormData(t))return i?JSON.stringify(hme(t)):t;if(en.isArrayBuffer(t)||en.isBuffer(t)||en.isStream(t)||en.isFile(t)||en.isBlob(t)||en.isReadableStream(t))return t;if(en.isArrayBufferView(t))return t.buffer;if(en.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qat(t,this.formSerializer).toString();if((l=en.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return fA(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Zat(t)):t}],transformResponse:[function(t){const n=this.transitional||fS.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(en.isResponse(t)||en.isReadableStream(t))return t;if(t&&en.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?ti.from(l,ti.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kl.classes.FormData,Blob:kl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};en.forEach(["delete","get","head","post","put","patch"],e=>{fS.headers[e]={}});const Jat=en.toObjectSet(["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"]),Qat=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Jat[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fie=Symbol("internals");function J2(e){return e&&String(e).trim().toLowerCase()}function oE(e){return e===!1||e==null?e:en.isArray(e)?e.map(oE):String(e)}function elt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const tlt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uN(e,t,n,r,i){if(en.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!en.isString(t)){if(en.isString(r))return t.indexOf(r)!==-1;if(en.isRegExp(r))return r.test(t)}}function nlt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rlt(e,t){const n=en.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let Iu=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(l,c,d){const h=J2(c);if(!h)throw new Error("header name must be a non-empty string");const p=en.findKey(i,h);(!p||i[p]===void 0||d===!0||d===void 0&&i[p]!==!1)&&(i[p||c]=oE(l))}const s=(l,c)=>en.forEach(l,(d,h)=>a(d,h,c));if(en.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(en.isString(t)&&(t=t.trim())&&!tlt(t))s(Qat(t),n);else if(en.isObject(t)&&en.isIterable(t)){let l={},c,d;for(const h of t){if(!en.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[d=h[0]]=(c=l[d])?en.isArray(c)?[...c,h[1]]:[c,h[1]]:h[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=J2(t),t){const r=en.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return elt(i);if(en.isFunction(n))return n.call(this,i,r);if(en.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=J2(t),t){const r=en.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||uN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=J2(s),s){const l=en.findKey(r,s);l&&(!n||uN(r,r[l],l,n))&&(delete r[l],i=!0)}}return en.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||uN(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return en.forEach(this,(i,a)=>{const s=en.findKey(r,a);if(s){n[s]=oE(i),delete n[a];return}const l=t?nlt(a):String(a).trim();l!==a&&delete n[a],n[l]=oE(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return en.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&en.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[fie]=this[fie]={accessors:{}}).accessors,i=this.prototype;function a(s){const l=J2(s);r[l]||(rlt(i,s),r[l]=!0)}return en.isArray(t)?t.forEach(a):a(t),this}};Iu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);en.reduceDescriptors(Iu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});en.freezeMethods(Iu);function cN(e,t){const n=this||fS,r=t||n,i=Iu.from(r.headers);let a=r.data;return en.forEach(e,function(l){a=l.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function pme(e){return!!(e&&e.__CANCEL__)}function v3(e,t,n){ti.call(this,e??"canceled",ti.ERR_CANCELED,t,n),this.name="CanceledError"}en.inherits(v3,ti,{__CANCEL__:!0});function vme(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ti("Request failed with status code "+n.status,[ti.ERR_BAD_REQUEST,ti.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ilt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function olt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),h=r[a];s||(s=d),n[i]=c,r[i]=d;let p=a,v=0;for(;p!==i;)v+=n[p++],p=p%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),d-s{n=h,i=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const h=Date.now(),p=h-n;p>=r?s(d,h):(i=d,a||(a=setTimeout(()=>{a=null,s(i)},r-p)))},()=>i&&s(i)]}const nT=(e,t,n=3)=>{let r=0;const i=olt(50,250);return slt(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-r,d=i(c),h=s<=l;r=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&h?(l-s)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},hie=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pie=e=>(...t)=>en.asap(()=>e(...t)),alt=kl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kl.origin),kl.navigator&&/(msie|trident)/i.test(kl.navigator.userAgent)):()=>!0,llt=kl.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];en.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),en.isString(r)&&s.push("path="+r),en.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ult(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function clt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mme(e,t,n){let r=!ult(t);return e&&(r||n==!1)?clt(e,t):t}const vie=e=>e instanceof Iu?{...e}:e;function Bm(e,t){t=t||{};const n={};function r(d,h,p,v){return en.isPlainObject(d)&&en.isPlainObject(h)?en.merge.call({caseless:v},d,h):en.isPlainObject(h)?en.merge({},h):en.isArray(h)?h.slice():h}function i(d,h,p,v){if(en.isUndefined(h)){if(!en.isUndefined(d))return r(void 0,d,p,v)}else return r(d,h,p,v)}function a(d,h){if(!en.isUndefined(h))return r(void 0,h)}function s(d,h){if(en.isUndefined(h)){if(!en.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function l(d,h,p){if(p in t)return r(d,h);if(p in e)return r(void 0,d)}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,h,p)=>i(vie(d),vie(h),p,!0)};return en.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||i,v=p(e[h],t[h],h);en.isUndefined(v)&&p!==l||(n[h]=v)}),n}const gme=e=>{const t=Bm({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Iu.from(s),t.url=dme(mme(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),en.isFormData(n)){if(kl.hasStandardBrowserEnv||kl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(en.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([h,p])=>{d.includes(h.toLowerCase())&&s.set(h,p)})}}if(kl.hasStandardBrowserEnv&&(r&&en.isFunction(r)&&(r=r(t)),r||r!==!1&&alt(t.url))){const c=i&&a&&llt.read(a);c&&s.set(i,c)}return t},dlt=typeof XMLHttpRequest<"u",flt=dlt&&function(e){return new Promise(function(n,r){const i=gme(e);let a=i.data;const s=Iu.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=i,h,p,v,g,y;function S(){g&&g(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let k=new XMLHttpRequest;k.open(i.method.toUpperCase(),i.url,!0),k.timeout=i.timeout;function C(){if(!k)return;const E=Iu.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),T={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:E,config:e,request:k};vme(function(P){n(P),S()},function(P){r(P),S()},T),k=null}"onloadend"in k?k.onloadend=C:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(C)},k.onabort=function(){k&&(r(new ti("Request aborted",ti.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const T=_&&_.message?_.message:"Network Error",D=new ti(T,ti.ERR_NETWORK,e,k);D.event=_||null,r(D),k=null},k.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||fme;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new ti(_,T.clarifyTimeoutError?ti.ETIMEDOUT:ti.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&en.forEach(s.toJSON(),function(_,T){k.setRequestHeader(T,_)}),en.isUndefined(i.withCredentials)||(k.withCredentials=!!i.withCredentials),l&&l!=="json"&&(k.responseType=i.responseType),d&&([v,y]=nT(d,!0),k.addEventListener("progress",v)),c&&k.upload&&([p,g]=nT(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(h=E=>{k&&(r(!E||E.type?new v3(null,e,k):E),k.abort(),k=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const x=ilt(i.url);if(x&&kl.protocols.indexOf(x)===-1){r(new ti("Unsupported protocol "+x+":",ti.ERR_BAD_REQUEST,e));return}k.send(a||null)})},hlt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(d){if(!i){i=!0,l();const h=d instanceof Error?d:this.reason;r.abort(h instanceof ti?h:new v3(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new ti(`timeout ${t} of ms exceeded`,ti.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>en.asap(l),c}},plt=function*(e,t){let n=e.byteLength;if(n{const i=vlt(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:h}=await i.next();if(d){l(),c.close();return}let p=h.byteLength;if(n){let v=a+=p;n(v)}c.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},gie=64*1024,{isFunction:Lx}=en,yme=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(en.global),{ReadableStream:yie,TextEncoder:bie}=en.global,_ie=(e,...t)=>{try{return!!e(...t)}catch{return!1}},glt=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},yme,e),i=Lx(t),a=Lx(n),s=Lx(r);if(!i)return!1;const l=i&&Lx(yie),c=i&&(typeof bie=="function"?(y=>S=>y.encode(S))(new bie):async y=>new Uint8Array(await new n(y).arrayBuffer())),d=a&&l&&_ie(()=>{let y=!1;const S=new n(kl.origin,{body:new yie,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!S}),h=s&&l&&_ie(()=>en.isReadableStream(new r("").body)),p={stream:h&&(y=>y.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!p[y]&&(p[y]=(S,k)=>{let C=S&&S[y];if(C)return C.call(S);throw new ti(`Response type '${y}' is not supported`,ti.ERR_NOT_SUPPORT,k)})});const v=async y=>{if(y==null)return 0;if(en.isBlob(y))return y.size;if(en.isSpecCompliantForm(y))return(await new n(kl.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(en.isArrayBufferView(y)||en.isArrayBuffer(y))return y.byteLength;if(en.isURLSearchParams(y)&&(y=y+""),en.isString(y))return(await c(y)).byteLength},g=async(y,S)=>{const k=en.toFiniteNumber(y.getContentLength());return k??v(S)};return async y=>{let{url:S,method:k,data:C,signal:x,cancelToken:E,timeout:_,onDownloadProgress:T,onUploadProgress:D,responseType:P,headers:M,withCredentials:O="same-origin",fetchOptions:L}=gme(y);P=P?(P+"").toLowerCase():"text";let B=hlt([x,E&&E.toAbortSignal()],_),j=null;const H=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let U;try{if(D&&d&&k!=="get"&&k!=="head"&&(U=await g(M,C))!==0){let q=new n(S,{method:"POST",body:C,duplex:"half"}),Q;if(en.isFormData(C)&&(Q=q.headers.get("content-type"))&&M.setContentType(Q),q.body){const[se,ae]=hie(U,nT(pie(D)));C=mie(q.body,gie,se,ae)}}en.isString(O)||(O=O?"include":"omit");const K=a&&"credentials"in n.prototype,Y={...L,signal:B,method:k.toUpperCase(),headers:M.normalize().toJSON(),body:C,duplex:"half",credentials:K?O:void 0};j=a&&new n(S,Y);let ie=await(a?t(j,L):t(S,Y));const te=h&&(P==="stream"||P==="response");if(h&&(T||te&&H)){const q={};["status","statusText","headers"].forEach(re=>{q[re]=ie[re]});const Q=en.toFiniteNumber(ie.headers.get("content-length")),[se,ae]=T&&hie(Q,nT(pie(T),!0))||[];ie=new r(mie(ie.body,gie,se,()=>{ae&&ae(),H&&H()}),q)}P=P||"text";let W=await p[en.findKey(p,P)||"text"](ie,y);return!te&&H&&H(),await new Promise((q,Q)=>{vme(q,Q,{data:W,headers:Iu.from(ie.headers),status:ie.status,statusText:ie.statusText,config:y,request:j})})}catch(K){throw H&&H(),K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new ti("Network Error",ti.ERR_NETWORK,y,j),{cause:K.cause||K}):ti.from(K,K&&K.code,y,j)}}},ylt=new Map,bme=e=>{let t=en.merge.call({skipUndefined:!0},yme,e?e.env:null);const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let s=a.length,l=s,c,d,h=ylt;for(;l--;)c=a[l],d=h.get(c),d===void 0&&h.set(c,d=l?new Map:glt(t)),h=d;return d};bme();const IV={http:Oat,xhr:flt,fetch:{get:bme}};en.forEach(IV,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Sie=e=>`- ${e}`,blt=e=>en.isFunction(e)||e===null||e===!1,_me={getAdapter:(e,t)=>{e=en.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let s=0;s`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since : +`)?"":e.split)+_e;const me=`${S.value.prefix}${Re}`,ge=`${Ie}${me}${_e}`;v.value=ge,t("select",Re),t("update:modelValue",ge),t("change",ge),k(),(ve=(Fe=l.value)==null?void 0:Fe.onChange)==null||ve.call(Fe)},{validOptions:B,optionInfoMap:j,validOptionInfos:H,handleKeyDown:U}=mH({options:c,inputValue:x,filterOption:E,popupVisible:P,valueKeys:y,dropdownRef:h,optionRefs:p,onSelect:L,onPopupVisibleChange:$,enterToOpen:!1}),W=ue();fn(()=>{var q;e.type==="textarea"&&((q=w.value)!=null&&q.textareaRef)&&(a=window.getComputedStyle(w.value.textareaRef),W.value=hV(a))});const K=q=>{if(Sn(r.option)&&q.value){const te=j.get(q.key),Se=r.option;return()=>Se({data:te})}return()=>q.label},oe=q=>O(mm,{ref:te=>{te?.$el&&(p.value[q.key]=te.$el)},key:q.key,value:q.value,disabled:q.disabled,internal:!0},{default:K(q)}),ae=()=>{let q;return O(vH,{ref:h},aFe(q=B.value.map(te=>oe(te)))?q:{default:()=>[q]})},ee=ue();It(P,q=>{e.type==="textarea"&&q&&dn(()=>{var te,Se;(te=w.value)!=null&&te.textareaRef&&w.value.textareaRef.scrollTop>0&&((Se=ee.value)==null||Se.scrollTo(0,w.value.textareaRef.scrollTop))})});const Y=q=>{t("focus",q)},Q=q=>{t("blur",q)};return{inputRef:w,render:()=>{var q;return e.type==="textarea"?O("div",{class:i},[O(Dd,{onResize:M},{default:()=>[O(J0e,Ft(n,{ref:w,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:Y,onBlur:Q,onKeydown:U}),null)]}),S.value.measuring&&H.value.length>0&&O("div",{ref:ee,style:W.value,class:`${i}-measure`},[(q=g.value)==null?void 0:q.slice(0,S.value.location),O(va,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,onPopupVisibleChange:$},{default:()=>[O("span",null,[He("@")])],content:ae})])]):O(va,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:s.value,onPopupVisibleChange:$},{default:()=>[O(z0,Ft(n,{ref:w,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:Y,onBlur:Q,onKeydown:U}),r)],content:ae})}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const lFe=Object.assign(ZR,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+ZR.name,ZR)}}),FH=Symbol("MenuInjectionKey"),jH=Symbol("LevelInjectionKey"),Q0e=Symbol("DataCollectorInjectionKey"),uFe=xe({name:"IconMenuFold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),cFe=["stroke-width","stroke-linecap","stroke-linejoin"];function dFe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1)]),14,cFe)}var JR=Ue(uFe,[["render",dFe]]);const eve=Object.assign(JR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JR.name,JR)}}),fFe=xe({name:"IconMenuUnfold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),hFe=["stroke-width","stroke-linecap","stroke-linejoin"];function pFe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1)]),14,hFe)}var QR=Ue(fFe,[["render",pFe]]);const tve=Object.assign(QR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QR.name,QR)}});function VH(e){const t=F(()=>Bo(e)?e.value:e);oi(jH,Wt({level:t}))}function lS(e){const{provideNextLevel:t}=e||{},n=Pn(jH),r=F(()=>n?.level||1);if(t){const i=F(()=>r.value+1);VH(i)}return{level:r}}function Nre(e,t){const n=[],r=i=>{i.forEach(a=>{t(a)&&n.push(a.key),a.children&&r(a.children)})};return r(e),n}function nve(e=!1){return e?void 0:Pn(Q0e)}function rve(e){const{key:t,type:n}=e,r=ue([]),i=nve(n==="menu");return oi(Q0e,{collectSubMenu(s,l,c=!1){const d={key:s,children:l};if(c){const h=r.value.find(p=>p.key===s);h?h.children=l:r.value.push(d)}else r.value=[...r.value,d];c&&(n==="popupMenu"?i?.reportMenuData(r.value):n==="subMenu"&&!wn(s)&&i?.collectSubMenu(s,r.value,!0))},removeSubMenu(s){r.value=r.value.filter(l=>l.key!==s)},collectMenuItem(s){r.value.push({key:s})},removeMenuItem(s){r.value=r.value.filter(l=>l.key!==s)},reportMenuData(s){r.value=s,n==="subMenu"&&!wn(t)&&i?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!wn(t)?(fn(()=>{i?.collectSubMenu(t,r.value)}),Yr(()=>{i?.removeSubMenu(t)})):n==="popupMenu"&&fn(()=>{i?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:F(()=>Nre(r.value,s=>!!s.children)),menuItemKeys:F(()=>Nre(r.value,s=>!s.children))}}function vFe(e,t){const n=[],r=i=>{for(let a=0;a{d.value=y};It(t,()=>{wn(t.value)&&h([])});let p=[];fn(()=>{p=[...a.value];let y=[];if(r.value&&(y=c.value?a.value.slice(0,1):[...a.value]),i.value){const S=s.value.map(k=>vFe(l.value,k));S.length&&(!r.value||c.value)&&(y=c.value?S[0]:[...new Set([].concat(...S))])}y.length&&h(y)});let v=!1;It(a,(y,S=[])=>{if(v||!mFe(y,p)){const k=g.value.filter(w=>y.includes(w));if(r.value){const w=y.filter(x=>!S.includes(x));k.push(...w)}h(c.value?k.slice(0,1):k)}v=!0});const g=F(()=>t.value||d.value);return{openKeys:g,localOpenKeys:d,setOpenKeys:h,open(y,S){let k=[];return g.value.indexOf(y)>-1?c.value&&S===1?k=[]:k=g.value.filter(w=>w!==y):c.value&&S===1?k=[y]:k=g.value.concat([y]),h(k),k}}}const yFe=xe({name:"BaseMenu",components:{IconMenuFold:eve,IconMenuUnfold:tve},inheritAttrs:!1,props:{style:{type:Object},theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},levelIndent:{type:Number},autoOpen:{type:Boolean},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsedWidth:{type:Number},accordion:{type:Boolean},autoScrollIntoView:{type:Boolean},showCollapseButton:{type:Boolean},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array,default:()=>[]},openKeys:{type:Array},defaultOpenKeys:{type:Array,default:()=>[]},scrollConfig:{type:Object},triggerProps:{type:Object},tooltipProps:{type:Object},autoOpenSelected:{type:Boolean},breakpoint:{type:String},popupMaxHeight:{type:[Boolean,Number],default:!0},prefixCls:{type:String},inTrigger:{type:Boolean},siderCollapsed:{type:Boolean},isRoot:{type:Boolean}},emits:["update:collapsed","update:selectedKeys","update:openKeys","collapse","menu-item-click","sub-menu-click"],setup(e,{emit:t,slots:n}){const{style:r,mode:i,theme:a,levelIndent:s,accordion:l,showCollapseButton:c,scrollConfig:d,autoScrollIntoView:h,collapsedWidth:p,autoOpen:v,collapsed:g,defaultCollapsed:y,selectedKeys:S,defaultSelectedKeys:k,openKeys:w,defaultOpenKeys:x,triggerProps:E,tooltipProps:_,autoOpenSelected:T,breakpoint:D,popupMaxHeight:P,prefixCls:M,inTrigger:$,siderCollapsed:L,isRoot:B}=tn(e),{subMenuKeys:j,menuData:H}=rve({type:B.value?"menu":"popupMenu"}),[U,W]=pa(k.value,Wt({value:S})),{openKeys:K,setOpenKeys:oe,open:ae}=gFe(Wt({modelValue:w,defaultValue:x,autoOpen:v,autoOpenSelected:T,selectedKeys:U,subMenuKeys:j,menuData:H,accordion:l})),[ee,Y]=pa(y.value,Wt({value:g})),Q=F(()=>L.value||ee.value||i.value==="popButton"),ie=F(()=>["horizontal","popButton"].indexOf(i.value)<0&&!$.value&&c.value),q=(Ie,_e)=>{Ie!==ee.value&&(Y(Ie),t("update:collapsed",Ie),t("collapse",Ie,_e))},te=()=>{q(!ee.value,"clickTrigger")};Y0e(D,Ie=>{q(!Ie,"responsive")});const Se=F(()=>M?.value||Me("menu")),Fe=F(()=>[Se.value,`${Se.value}-${a?.value}`,{[`${Se.value}-horizontal`]:i.value==="horizontal",[`${Se.value}-vertical`]:i.value!=="horizontal",[`${Se.value}-collapsed`]:Q.value,[`${Se.value}-pop`]:i.value==="pop"||Q.value,[`${Se.value}-pop-button`]:i.value==="popButton"}]),ve=F(()=>{const Ie=et(p.value)?`${p.value}px`:void 0,_e=gr(r.value)?r.value:void 0,me=Q.value?Ie:_e?.width;return[_e?Ea(_e,["width"]):r.value,{width:me}]}),Re=xd(n,"expand-icon-down"),Ge=xd(n,"expand-icon-right"),nt=Wt({theme:a,mode:i,levelIndent:s,autoScrollIntoView:h,selectedKeys:U,openKeys:K,prefixCls:Se,scrollConfig:d,inTrigger:$,collapsed:Q,triggerProps:E,tooltipProps:_,popupMaxHeight:P,expandIconDown:Re,expandIconRight:Ge,onMenuItemClick:Ie=>{W([Ie]),t("update:selectedKeys",[Ie]),t("menu-item-click",Ie)},onSubMenuClick:(Ie,_e)=>{const me=ae(Ie,_e);oe(me),t("update:openKeys",me),t("sub-menu-click",Ie,me)}});return oi(FH,nt),VH(1),{computedPrefixCls:Se,classNames:Fe,computedStyle:ve,computedCollapsed:Q,computedHasCollapseButton:ie,onCollapseBtnClick:te}}});function bFe(e,t,n,r,i,a){const s=Ee("IconMenuUnfold"),l=Ee("IconMenuFold");return z(),X("div",Ft({class:e.classNames},e.$attrs,{style:e.computedStyle}),[I("div",{class:fe(`${e.computedPrefixCls}-inner`)},[mt(e.$slots,"default")],2),e.computedHasCollapseButton?(z(),X("div",{key:0,class:fe(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[mt(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(z(),Ze(s,{key:0})):(z(),Ze(l,{key:1}))])],2)):Ae("v-if",!0)],16)}var pV=Ue(yFe,[["render",bFe]]);function Fre(e,t){if(!e||!t)return null;let n=t;n==="float"&&(n="cssFloat");try{if(document.defaultView){const r=document.defaultView.getComputedStyle(e,"");return e.style[n]||r?r[n]:""}}catch{return e.style[n]}return null}function rg(){return Pn(FH)||{}}const _Fe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function Q5(){const e=So();return{key:F(()=>e?.vnode.key||_Fe("__arco_menu"))}}const SFe=xe({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Me("menu"),t=rg();return{prefixCls:e,levelIndent:Pu(t,"levelIndent")}}});function kFe(e,t,n,r,i,a){return e.level>1?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-indent-list`)},[(z(!0),X(Pt,null,cn(e.level-1,s=>(z(),X("span",{key:s,class:fe(`${e.prefixCls}-indent`),style:qe(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Ae("v-if",!0)}var eA=Ue(SFe,[["render",kFe]]);const wFe=xe({name:"ExpandTransition",setup(){return{onBeforeEnter(e){e.style.height="0"},onEnter(e){e.style.height=`${e.scrollHeight}px`},onAfterEnter(e){e.style.height=""},onBeforeLeave(e){e.style.height=`${e.scrollHeight}px`},onLeave(e){e.style.height="0"},onAfterLeave(e){e.style.height=""}}}});function xFe(e,t,n,r,i,a){return z(),Ze(Cs,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:ce(()=>[mt(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var CFe=Ue(wFe,[["render",xFe]]);const EFe=xe({name:"SubMenuInline",components:{MenuIndent:eA,ExpandTransition:CFe},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=Q5(),{level:n}=lS({provideNextLevel:!0}),r=rg(),i=F(()=>r.prefixCls),a=F(()=>`${i.value}-inline`),s=F(()=>[a.value]),l=F(()=>e.isChildrenSelected),c=F(()=>(r.openKeys||[]).indexOf(t.value)>-1);return{prefixCls:a,menuPrefixCls:i,classNames:s,level:n,isSelected:l,isOpen:c,onHeaderClick:()=>{r.onSubMenuClick&&r.onSubMenuClick(t.value,n.value)}}}});function TFe(e,t,n,r,i,a){const s=Ee("MenuIndent"),l=Ee("ExpandTransition");return z(),X("div",{class:fe(e.classNames)},[I("div",{class:fe([`${e.prefixCls}-header`,{[`${e.menuPrefixCls}-selected`]:e.isSelected,[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}]),onClick:t[0]||(t[0]=(...c)=>e.onHeaderClick&&e.onHeaderClick(...c))},[O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),X(Pt,{key:0},[I("span",{class:fe(`${e.menuPrefixCls}-icon`)},[mt(e.$slots,"icon")],2),I("span",{class:fe(`${e.menuPrefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)],64)):mt(e.$slots,"title",{key:1},()=>[He(je(e.title),1)]),I("span",{class:fe([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[mt(e.$slots,"expand-icon-down")],2)],2),O(l,null,{default:ce(()=>[Ci(I("div",{class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2),[[Ko,e.isOpen]])]),_:3})],2)}var AFe=Ue(EFe,[["render",TFe]]);const IFe=xe({name:"SubMenuPop",components:{Menu:pV,Trigger:va,MenuIndent:eA,RenderFunction:ep},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=Q5(),{level:n}=lS(),{selectable:r,isChildrenSelected:i,popupMaxHeight:a}=tn(e),s=rg(),{onSubMenuClick:l,onMenuItemClick:c}=s,d=F(()=>s.prefixCls),h=F(()=>s.mode),p=F(()=>s.selectedKeys||[]),v=F(()=>`${d.value}-pop`),g=F(()=>r.value&&p.value.includes(t.value)||i.value),y=F(()=>[`${v.value}`,`${v.value}-header`,{[`${d.value}-selected`]:g.value}]),S=F(()=>h.value==="horizontal"&&!s.inTrigger),k=ue(!1),w=T=>{k.value=T},x=Me("trigger"),E=F(()=>{var T;return[`${v.value}-trigger`,{[`${v.value}-trigger-dark`]:s.theme==="dark"},(T=s.triggerProps)==null?void 0:T.class]}),_=F(()=>Ea(s.triggerProps||{},["class"]));return{menuPrefixCls:d,mode:h,level:n,classNames:y,isSelected:g,selectedKeys:p,needPopOnBottom:S,popVisible:k,triggerPrefixCls:x,triggerClassNames:E,triggerProps:_,menuContext:s,popupMenuStyles:F(()=>{var T;const D=(T=a.value)!=null?T:s.popupMaxHeight;return et(D)?{maxHeight:`${D}px`}:D?{}:{maxHeight:"unset"}}),onClick:()=>{l&&l(t.value,n.value),r.value&&c&&c(t.value)},onMenuItemClick:T=>{c&&c(T),w(!1)},onVisibleChange:T=>{w(T)}}}});function LFe(e,t,n,r,i,a){const s=Ee("MenuIndent"),l=Ee("RenderFunction"),c=Ee("Menu"),d=Ee("Trigger");return z(),Ze(d,Ft({trigger:"hover",class:e.triggerClassNames,position:e.needPopOnBottom?"bl":"rt","show-arrow":"","animation-class":"fade-in","mouse-enter-delay":50,"mouse-leave-delay":50,"popup-offset":4,"auto-fit-popup-min-width":!0,duration:100},e.triggerProps,{"unmount-on-close":!1,"popup-visible":e.popVisible,onPopupVisibleChange:e.onVisibleChange}),{content:ce(()=>[O(c,{"in-trigger":"","prefix-cls":`${e.triggerPrefixCls}-menu`,"selected-keys":e.selectedKeys,theme:e.menuContext.theme,"trigger-props":e.menuContext.triggerProps,style:qe(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},yo({default:ce(()=>[mt(e.$slots,"default")]),_:2},[e.menuContext.expandIconDown?{name:"expand-icon-down",fn:ce(()=>[O(l,{"render-func":e.menuContext.expandIconDown},null,8,["render-func"])]),key:"0"}:void 0,e.menuContext.expandIconRight?{name:"expand-icon-right",fn:ce(()=>[O(l,{"render-func":e.menuContext.expandIconRight},null,8,["render-func"])]),key:"1"}:void 0]),1032,["prefix-cls","selected-keys","theme","trigger-props","style","onMenuItemClick"])]),default:ce(()=>[I("div",Ft({class:[e.classNames,{[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}],"aria-haspopup":"true"},e.$attrs,{onClick:t[0]||(t[0]=(...h)=>e.onClick&&e.onClick(...h))}),[Ae(" header "),O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),X(Pt,{key:0},[I("span",{class:fe(`${e.menuPrefixCls}-icon`)},[mt(e.$slots,"icon")],2),I("span",{class:fe(`${e.menuPrefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)],64)):mt(e.$slots,"title",{key:1},()=>[He(je(e.title),1)]),Ae(" suffix "),I("span",{class:fe(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?mt(e.$slots,"expand-icon-down",{key:0}):mt(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(z(),X("div",{key:2,class:fe(`${e.menuPrefixCls}-selected-label`)},null,2)):Ae("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var DFe=Ue(IFe,[["render",LFe]]),db=xe({name:"SubMenu",props:{title:{type:String},selectable:{type:Boolean},popup:{type:[Boolean,Function],default:!1},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e,{attrs:t}){const{key:n}=Q5(),{level:r}=lS(),{popup:i}=tn(e),a=rg(),s=F(()=>{const{mode:h,collapsed:p,inTrigger:v}=a;return!!(typeof i.value=="function"?i.value(r.value):i.value)||p||v||h!=="vertical"}),{subMenuKeys:l,menuItemKeys:c}=rve({key:n.value,type:"subMenu"}),d=F(()=>{const h=a.selectedKeys||[],p=v=>{for(let g=0;g[O(Qh,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[O(Hi,null,null)])};return r?O(DFe,Ft({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):O(AFe,Ft({key:n,title:e.title,isChildrenSelected:s},t),l)}});const PFe=10;function jre(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function Vre(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var RFe=xe({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${rg().prefixCls}-overflow`,i=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=ue(),c=ue(null),d=ue();function h(){const p=l.value,v=jre(p),g=[].slice.call(p.children);let y=0,S=0,k=0;for(let w=0;w-1,T=E.indexOf(s)>-1;if(_)continue;const D=jre(x)+Vre(Fre(x,"marginLeft"))+Vre(Fre(x,"marginRight"));if(T){k=D;continue}if(S+=D,S+k+PFe>v){c.value=y-1;return}y++}c.value=null}return fn(()=>{h(),d.value=new P5(p=>{p.forEach(h)}),l.value&&d.value.observe(l.value)}),Yr(()=>{d.value&&d.value.disconnect()}),()=>{const p=(g,y)=>{const{isMirror:S=!1,props:k={}}=y||{};return O(db,Ft({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:i},k),{title:()=>O("span",null,[He("...")]),default:()=>g})},v=()=>{var g;const y=((g=t.default)==null?void 0:g.call(t))||[],S=x7e(y);let k=null;const w=p(null,{isMirror:!0}),x=S.map((E,_)=>{const T=El(E,c.value!==null&&_>c.value?{class:a}:{class:""});if(c.value!==null&&_===c.value+1){const D=S.slice(_).map(P=>El(P));k=p(D)}return T});return[w,...x,k]};return O("div",{class:`${r}-wrap`,ref:l},[v()])}}}),eM=xe({name:"Menu",components:{BaseMenu:pV},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:r,mode:i}=tn(e),a=Pn(U0e,void 0),s=F(()=>a?.collapsed||!1),l=F(()=>r?.value||a?.theme||"light");return oi(FH,void 0),oi(jH,void 0),()=>O(pV,Ft(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:i.value==="horizontal"&&n.default?()=>O(RFe,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),GC=xe({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=Q5(),{level:r}=lS(),i=rg(),a=ue(),s=F(()=>(i.selectedKeys||[]).indexOf(n.value)>-1),l=nve();fn(()=>{l?.collectMenuItem(n.value)}),Yr(()=>{l?.removeMenuItem(n.value)});function c(){i.autoScrollIntoView&&a.value&&s.value&&E0e(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...i.scrollConfig||{}})}let d;return fn(()=>{d=setTimeout(()=>{c()},500)}),Yr(()=>{clearTimeout(d)}),It([s],()=>{c()}),{menuContext:i,level:r,isSelected:s,refItemElement:a,onClick(h){e.disabled||(i.onMenuItemClick&&i.onMenuItemClick(n.value),t("click",h))}}},render(){var e,t;const{level:n,menuContext:r,disabled:i,isSelected:a,onClick:s}=this,{prefixCls:l,collapsed:c,inTrigger:d,mode:h,tooltipProps:p}=r,v=c&&!d&&n===1,g=h==="vertical"&&n>1,y=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],S=g&&!d&&!c,k=this.$slots.icon&&this.$slots.icon(),w=[S&&O(eA,{level:n},null),k&&O("span",{class:`${l}-icon`},[k]),S||k?O("span",{class:[`${l}-item-inner`,{[`${l}-title`]:k}]},[y]):y].filter(Boolean),x=O("div",Ft({ref:"refItemElement",class:[`${l}-item`,{[`${l}-disabled`]:i,[`${l}-selected`]:a,[`${l}-has-icon`]:k}]},this.$attrs,{onClick:s}),[w,a&&h==="horizontal"&&O("div",{class:`${l}-selected-label`},null)]);if(v){const E=[`${l}-item-tooltip`,p?.class];return O(Qc,Ft({trigger:"hover",position:"right",class:E},Ea(p||{},["class"])),{default:()=>x,content:()=>y})}return x}});const MFe=xe({name:"MenuItemGroup",components:{MenuIndent:eA},props:{title:{type:String}},setup(){const{level:e}=lS(),t=F(()=>e.value===1?e.value+1:e.value);VH(t);const n=rg(),r=F(()=>n.prefixCls),i=F(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:i,level:e}}});function OFe(e,t,n,r,i,a){const s=Ee("MenuIndent");return z(),X("div",{class:fe(e.classNames)},[I("div",{class:fe(`${e.prefixCls}-group-title`)},[O(s,{level:e.level},null,8,["level"]),mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2),mt(e.$slots,"default")],2)}var KC=Ue(MFe,[["render",OFe]]);const $Fe=Object.assign(eM,{Item:GC,ItemGroup:KC,SubMenu:db,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+eM.name,eM),e.component(n+GC.name,GC),e.component(n+KC.name,KC),e.component(n+db.name,db)}}),BFe=xe({name:"Message",components:{AIconHover:Lo,IconInfoCircleFill:a3,IconCheckCircleFill:Zh,IconExclamationCircleFill:If,IconCloseCircleFill:tg,IconClose:rs,IconLoading:Ja},props:{type:{type:String,default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1},resetOnHover:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=Me("message");let r=0;const i=()=>{t("close")},a=()=>{e.duration>0&&(r=window.setTimeout(i,e.duration))},s=()=>{r&&(window.clearTimeout(r),r=0)};return fn(()=>{a()}),tl(()=>{e.resetOnUpdate&&(s(),a())}),Yr(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:i}}});function NFe(e,t,n,r,i,a){const s=Ee("icon-info-circle-fill"),l=Ee("icon-check-circle-fill"),c=Ee("icon-exclamation-circle-fill"),d=Ee("icon-close-circle-fill"),h=Ee("icon-loading"),p=Ee("icon-close"),v=Ee("a-icon-hover");return z(),X("li",{role:"alert",class:fe([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}]),onMouseenter:t[1]||(t[1]=(...g)=>e.handleMouseEnter&&e.handleMouseEnter(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):e.type==="loading"?(z(),Ze(h,{key:4})):Ae("v-if",!0)])],2)):Ae("v-if",!0),I("span",{class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2),e.closable?(z(),X("span",{key:1,class:fe(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[O(v,null,{default:ce(()=>[O(p)]),_:1})],2)):Ae("v-if",!0)],34)}var FFe=Ue(BFe,[["render",NFe]]);function jFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var VFe=xe({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=Me("message-list"),{zIndex:r}=l3("message",{runOnMounted:!0});return()=>{let i;return O(o3,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},jFe(i=e.messages.map(a=>{const s={default:Wl(a.content),icon:Wl(a.icon)};return O(FFe,{key:a.id,type:a.type,duration:a.duration,closable:a.closable,resetOnUpdate:a.resetOnUpdate,resetOnHover:a.resetOnHover,onClose:()=>t.emit("close",a.id)},s)}))?i:{default:()=>[i]})}}});class zFe{constructor(t,n){this.messageCount=0,this.add=a=>{var s;this.messageCount++;const l=(s=a.id)!=null?s:`__arco_message_${this.messageCount}`;if(this.messageIds.has(l))return this.update(l,a);const c=Wt({id:l,...a});return this.messages.value.push(c),this.messageIds.add(l),{close:()=>this.remove(l)}},this.update=(a,s)=>{for(let l=0;lthis.remove(a)}},this.remove=a=>{for(let s=0;s{this.messages.value.splice(0)},this.destroy=()=>{this.messages.value.length===0&&this.container&&(Jc(null,this.container),document.body.removeChild(this.container),this.container=null,fy[this.position]=void 0)};const{position:r="top"}=t;this.container=$5("message"),this.messageIds=new Set,this.messages=ue([]),this.position=r;const i=O(VFe,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??gt._context)&&(i.appContext=n??gt._context),Jc(i,this.container),document.body.appendChild(this.container)}}const fy={},ive=[...N5,"loading","normal"],qC=ive.reduce((e,t)=>(e[t]=(n,r)=>{hs(n)&&(n={content:n});const i={type:t,...n},{position:a="top"}=i;return fy[a]||(fy[a]=new zFe(i,r)),fy[a].add(i)},e),{});qC.clear=e=>{var t;e?(t=fy[e])==null||t.clear():Object.values(fy).forEach(n=>n?.clear())};const gt={...qC,install:e=>{const t={clear:qC.clear};for(const n of ive)t[n]=(r,i=e._context)=>qC[n](r,i);e.config.globalProperties.$message=t},_context:null},UFe=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:r})=>{const i=ue(!1),a=ue([0,0]),s=ue([0,0]),l=ue(),c=ue([0,0]),d=ue([0,0]),h=()=>{var y,S,k;if(t.value&&e.value){const{top:w,left:x}=t.value.getBoundingClientRect(),{clientWidth:E,clientHeight:_}=t.value,{top:T,left:D,width:P,height:M}=e.value.getBoundingClientRect(),$=r.value?0:(y=e.value)==null?void 0:y.offsetTop,L=D-x,B=T-w-$;(L!==((S=s.value)==null?void 0:S[0])||B!==((k=s.value)==null?void 0:k[1]))&&(s.value=[L,B]);const j=E>P?E-P:0,H=_>M?_-M-$:0;(j!==d.value[0]||H!==d.value[1])&&(d.value=[j,H]),$&&(c.value=[0,0-$])}},p=y=>{n.value&&(y.preventDefault(),i.value=!0,h(),a.value=[y.x,y.y],Mi(window,"mousemove",v),Mi(window,"mouseup",g),Mi(window,"contextmenu",g))},v=y=>{if(i.value){const S=y.x-a.value[0],k=y.y-a.value[1];let w=s.value[0]+S,x=s.value[1]+k;wd.value[0]&&(w=d.value[0]),xd.value[1]&&(x=d.value[1]),l.value=[w,x]}},g=()=>{i.value=!1,no(window,"mousemove",v),no(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var HFe=xe({name:"Modal",components:{ClientOnly:hH,ArcoButton:Jo,IconHover:Lo,IconClose:rs,IconInfoCircleFill:a3,IconCheckCircleFill:Zh,IconExclamationCircleFill:If,IconCloseCircleFill:tg},inheritAttrs:!1,props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{type:[Number,String]},top:{type:[Number,String]},mask:{type:Boolean,default:!0},title:{type:String},titleAlign:{type:String,default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:Boolean,maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},simple:{type:Boolean,default:e=>e.notice},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{type:[String,Object],default:"body"},maskStyle:{type:Object},modalClass:{type:[String,Array]},modalStyle:{type:Object},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{type:String,default:e=>e.fullscreen?"fade-in-standard":"fade-modal"},modalAnimationName:{type:String,default:e=>e.fullscreen?"zoom-in":"zoom-modal"},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},messageType:{type:String},hideTitle:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{fullscreen:n,popupContainer:r,alignCenter:i}=tn(e),a=Me("modal"),{t:s}=No(),l=ue(),c=ue(),d=ue(e.defaultVisible),h=F(()=>{var Se;return(Se=e.visible)!=null?Se:d.value}),p=ue(!1),v=F(()=>e.okLoading||p.value),g=F(()=>e.draggable&&!e.fullscreen),{teleportContainer:y,containerRef:S}=pH({popupContainer:r,visible:h}),k=ue(h.value),w=F(()=>e.okText||s("modal.okText")),x=F(()=>e.cancelText||s("modal.cancelText")),{zIndex:E,isLastDialog:_}=l3("dialog",{visible:h});let T=!1;const D=Se=>{e.escToClose&&Se.key===Wo.ESC&&_()&&U(Se)},P=()=>{e.escToClose&&!T&&(T=!0,Mi(document.documentElement,"keydown",D))},M=()=>{T=!1,no(document.documentElement,"keydown",D)};let $=0;const{position:L,handleMoveDown:B}=UFe({wrapperRef:l,modalRef:c,draggable:g,alignCenter:i}),j=()=>{$++,p.value&&(p.value=!1),d.value=!1,t("update:visible",!1)},H=async Se=>{const Fe=$,ve=await new Promise(async Re=>{var Ge;if(Sn(e.onBeforeOk)){let nt=e.onBeforeOk((Ie=!0)=>Re(Ie));if((Pm(nt)||!Tl(nt))&&(p.value=!0),Pm(nt))try{nt=(Ge=await nt)!=null?Ge:!0}catch(Ie){throw nt=!1,Ie}Tl(nt)&&Re(nt)}else Re(!0)});Fe===$&&(ve?(t("ok",Se),j()):p.value&&(p.value=!1))},U=Se=>{var Fe;let ve=!0;Sn(e.onBeforeCancel)&&(ve=(Fe=e.onBeforeCancel())!=null?Fe:!1),ve&&(t("cancel",Se),j())},W=ue(!1),K=Se=>{Se.target===l.value&&(W.value=!0)},oe=Se=>{e.mask&&e.maskClosable&&W.value&&U(Se)},ae=()=>{h.value&&(!C7e(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},ee=()=>{h.value||(g.value&&(L.value=void 0),k.value=!1,Q(),t("close"))},{setOverflowHidden:Y,resetOverflow:Q}=x0e(S);fn(()=>{S.value=af(e.popupContainer),h.value&&(Y(),e.escToClose&&P())}),_o(()=>{Q(),M()}),It(h,Se=>{d.value!==Se&&(d.value=Se),Se?(t("beforeOpen"),k.value=!0,W.value=!1,Y(),P()):(t("beforeClose"),M())}),It(n,()=>{L.value&&(L.value=void 0)});const ie=F(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!L.value}]),q=F(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),te=F(()=>{var Se;const Fe={...(Se=e.modalStyle)!=null?Se:{}};return e.width&&!e.fullscreen&&(Fe.width=et(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(Fe.top=et(e.top)?`${e.top}px`:e.top),L.value&&(Fe.transform=`translate(${L.value[0]}px, ${L.value[1]}px)`),Fe});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:te,okDisplayText:w,cancelDisplayText:x,zIndex:E,handleOk:H,handleCancel:U,handleMaskClick:oe,handleMaskMouseDown:K,handleOpen:ae,handleClose:ee,mergedOkLoading:v,modalRef:c,wrapperCls:ie,modalCls:q,teleportContainer:y,handleMoveDown:B}}});function WFe(e,t,n,r,i,a){const s=Ee("icon-info-circle-fill"),l=Ee("icon-check-circle-fill"),c=Ee("icon-exclamation-circle-fill"),d=Ee("icon-close-circle-fill"),h=Ee("icon-close"),p=Ee("icon-hover"),v=Ee("arco-button"),g=Ee("client-only");return z(),Ze(g,null,{default:ce(()=>[(z(),Ze(Jm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ci((z(),X("div",Ft({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[O(Cs,{name:e.maskAnimationName,appear:""},{default:ce(()=>[e.mask?Ci((z(),X("div",{key:0,ref:"maskRef",class:fe(`${e.prefixCls}-mask`),style:qe(e.maskStyle)},null,6)),[[Ko,e.computedVisible]]):Ae("v-if",!0)]),_:1},8,["name"]),I("div",{ref:"wrapperRef",class:fe(e.wrapperCls),onClick:t[2]||(t[2]=fs((...y)=>e.handleMaskClick&&e.handleMaskClick(...y),["self"])),onMousedown:t[3]||(t[3]=fs((...y)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...y),["self"]))},[O(Cs,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:ce(()=>[Ci(I("div",{ref:"modalRef",class:fe(e.modalCls),style:qe(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...y)=>e.handleMoveDown&&e.handleMoveDown(...y))},[e.$slots.title||e.title?(z(),X("div",{key:0,class:fe([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(z(),Ze(s,{key:0})):Ae("v-if",!0),e.messageType==="success"?(z(),Ze(l,{key:1})):Ae("v-if",!0),e.messageType==="warning"?(z(),Ze(c,{key:2})):Ae("v-if",!0),e.messageType==="error"?(z(),Ze(d,{key:3})):Ae("v-if",!0)],2)):Ae("v-if",!0),mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)):Ae("v-if",!0),!e.simple&&e.closable?(z(),X("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:fe(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...y)=>e.handleCancel&&e.handleCancel(...y))},[O(p,null,{default:ce(()=>[O(h)]),_:1})],2)):Ae("v-if",!0)],34)):Ae("v-if",!0),I("div",{class:fe([`${e.prefixCls}-body`,e.bodyClass]),style:qe(e.bodyStyle)},[mt(e.$slots,"default")],6),e.footer?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer",{},()=>[e.hideCancel?Ae("v-if",!0):(z(),Ze(v,Ft({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:ce(()=>[He(je(e.cancelDisplayText),1)]),_:1},16,["onClick"])),O(v,Ft({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:ce(()=>[He(je(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Ae("v-if",!0)],6),[[Ko,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[Ko,e.computedVisible||e.mounted]]):Ae("v-if",!0)],8,["to","disabled"]))]),_:3})}var YC=Ue(HFe,[["render",WFe]]);const tM=(e,t)=>{let n=$5("modal");const r=()=>{d.component&&(d.component.props.visible=!1),Sn(e.onOk)&&e.onOk()},i=()=>{d.component&&(d.component.props.visible=!1),Sn(e.onCancel)&&e.onCancel()},a=async()=>{await dn(),n&&(Jc(null,n),document.body.removeChild(n)),n=null,Sn(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,v])=>{d.component.props[p]=v})},d=O(YC,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:i,onClose:a},...Ea(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Wl(e.content),title:Wl(e.title),footer:typeof e.footer!="boolean"?Wl(e.footer):void 0});return(t??Xl._context)&&(d.appContext=t??Xl._context),Jc(d,n),document.body.appendChild(n),{close:s,update:l}},nM={open:tM,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return tM(n,t)},...N5.reduce((e,t)=>(e[t]=(n,r)=>{const i={simple:!0,hideCancel:!0,messageType:t,...n};return tM(i,r)},e),{})},Xl=Object.assign(YC,{...nM,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+YC.name,YC);const r={};for(const i of Object.keys(nM))r[i]=(a,s=e._context)=>nM[i](a,s);e.config.globalProperties.$modal=r},_context:null}),GFe=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),KFe=xe({name:"Notification",components:{AIconHover:Lo,IconInfoCircleFill:a3,IconCheckCircleFill:Zh,IconExclamationCircleFill:If,IconCloseCircleFill:tg,IconClose:rs},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1}},emits:["close"],setup(e,t){const n=Me("notification");let r=0;const i=()=>{t.emit("close")};return fn(()=>{e.duration>0&&(r=window.setTimeout(i,e.duration))}),tl(()=>{e.resetOnUpdate&&(r&&(window.clearTimeout(r),r=0),e.duration>0&&(r=window.setTimeout(i,e.duration)))}),Yr(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:i}}});function qFe(e,t,n,r,i,a){const s=Ee("icon-info-circle-fill"),l=Ee("icon-check-circle-fill"),c=Ee("icon-exclamation-circle-fill"),d=Ee("icon-close-circle-fill"),h=Ee("icon-close"),p=Ee("a-icon-hover");return z(),X("li",{role:"alert",class:fe([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-left`)},[I("div",{class:fe(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):Ae("v-if",!0)])],2)],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-right`)},[e.$slots.default?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"default")],2)):Ae("v-if",!0),e.$slots.content?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"content")],2)):Ae("v-if",!0),e.$slots.footer?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer")],2)):Ae("v-if",!0)],2),e.closable?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...v)=>e.handleClose&&e.handleClose(...v))},[mt(e.$slots,"closeIconElement",{},()=>[O(p,null,{default:ce(()=>[mt(e.$slots,"closeIcon",{},()=>[O(h)])]),_:3})])],2)):Ae("v-if",!0)],2)}var YFe=Ue(KFe,[["render",qFe]]);const XFe=["topLeft","topRight","bottomLeft","bottomRight"];function ZFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var JFe=xe({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>XFe.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Me("notification-list"),r=GFe(e.position),{zIndex:i}=l3("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return O(o3,{class:[n,`${n}-${r}`],style:{zIndex:i.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},ZFe(s=e.notifications.map(l=>{const c={default:Wl(l.title),content:Wl(l.content),icon:Wl(l.icon),footer:Wl(l.footer),closeIcon:Wl(l.closeIcon),closeIconElement:Wl(l.closeIconElement)};return O(YFe,{key:l.id,type:l.type,style:l.style,class:l.class,duration:l.duration,closable:l.closable,showIcon:l.showIcon,resetOnUpdate:l.resetOnUpdate,onClose:()=>t.emit("close",l.id)},c)}))?s:{default:()=>[s]})}}});class QFe{constructor(t,n){this.notificationCount=0,this.add=a=>{var s;this.notificationCount++;const l=(s=a.id)!=null?s:`__arco_notification_${this.notificationCount}`;if(this.notificationIds.has(l))return this.update(l,a);const c=Wt({id:l,...a});return this.notifications.value.push(c),this.notificationIds.add(l),{close:()=>this.remove(l)}},this.update=(a,s)=>{for(let l=0;lthis.remove(a)}},this.remove=a=>{for(let s=0;s{this.notifications.value.splice(0)},this.destroy=()=>{this.notifications.value.length===0&&this.container&&(Jc(null,this.container),document.body.removeChild(this.container),this.container=null,bm[this.position]=void 0)};const{position:r="topRight"}=t;this.container=$5("notification"),this.notificationIds=new Set,this.notifications=ue([]),this.position=r;const i=O(JFe,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??vV._context)&&(i.appContext=n??vV._context),Jc(i,this.container),document.body.appendChild(this.container)}}const bm={},fb=N5.reduce((e,t)=>(e[t]=(n,r)=>{hs(n)&&(n={content:n});const i={type:t,...n},{position:a="topRight"}=i;return bm[a]||(bm[a]=new QFe(i,r)),bm[a].add(i)},e),{});fb.remove=e=>{e&&Object.values(bm).forEach(t=>t?.remove(e))};fb.clear=e=>{var t;e?(t=bm[e])==null||t.clear():Object.values(bm).forEach(n=>n?.clear())};const vV={...fb,install:e=>{const t={clear:fb.clear};for(const n of N5)t[n]=(r,i=e._context)=>fb[n](r,i);e.config.globalProperties.$notification=t},_context:null},eje=xe({name:"PageHeader",components:{AIconHover:Lo,IconLeft:Il},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=Me("page-header"),i=s=>{t("back",s)},a=F(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:i}}});function tje(e,t,n,r,i,a){const s=Ee("icon-left"),l=Ee("a-icon-hover");return z(),X("div",{class:fe(e.cls)},[I("div",{class:fe(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-breadcrumb`)},[mt(e.$slots,"breadcrumb")],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-header`)},[I("span",{class:fe(`${e.prefixCls}-main`)},[e.showBack?(z(),Ze(l,{key:0,class:fe(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:ce(()=>[mt(e.$slots,"back-icon",{},()=>[O(s)])]),_:3},8,["class","prefix","onClick"])):Ae("v-if",!0),I("span",{class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(z(),X("span",{key:1,class:fe(`${e.prefixCls}-divider`)},null,2)):Ae("v-if",!0),e.$slots.subtitle||e.subtitle?(z(),X("span",{key:2,class:fe(`${e.prefixCls}-subtitle`)},[mt(e.$slots,"subtitle",{},()=>[He(je(e.subtitle),1)])],2)):Ae("v-if",!0)],2),e.$slots.extra?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra")],2)):Ae("v-if",!0)],2)],2),e.$slots.default?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2)):Ae("v-if",!0)],2)}var rM=Ue(eje,[["render",tje]]);const nje=Object.assign(rM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+rM.name,rM)}}),rje=xe({name:"Popconfirm",components:{ArcoButton:Jo,Trigger:va,IconInfoCircleFill:a3,IconCheckCircleFill:Zh,IconExclamationCircleFill:If,IconCloseCircleFill:tg},props:{content:String,position:{type:String,default:"top"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},type:{type:String,default:"info"},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,ok:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const n=Me("popconfirm"),{t:r}=No(),i=ue(e.defaultPopupVisible),a=F(()=>{var S;return(S=e.popupVisible)!=null?S:i.value}),s=ue(!1),l=F(()=>e.okLoading||s.value);let c=0;const d=()=>{c++,s.value&&(s.value=!1),i.value=!1,t("update:popupVisible",!1),t("popupVisibleChange",!1)},h=S=>{S?(i.value=S,t("update:popupVisible",S),t("popupVisibleChange",S)):d()},p=async()=>{const S=c,k=await new Promise(async w=>{var x;if(Sn(e.onBeforeOk)){let E=e.onBeforeOk((_=!0)=>w(_));if((Pm(E)||!Tl(E))&&(s.value=!0),Pm(E))try{E=(x=await E)!=null?x:!0}catch(_){throw E=!1,_}Tl(E)&&w(E)}else w(!0)});S===c&&(k?(t("ok"),d()):s.value&&(s.value=!1))},v=()=>{var S;let k=!0;Sn(e.onBeforeCancel)&&(k=(S=e.onBeforeCancel())!=null?S:!1),k&&(t("cancel"),d())},g=F(()=>[`${n}-popup-content`,e.contentClass]),y=F(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:g,arrowCls:y,computedPopupVisible:a,mergedOkLoading:l,handlePopupVisibleChange:h,handleOk:p,handleCancel:v,t:r}}});function ije(e,t,n,r,i,a){const s=Ee("icon-info-circle-fill"),l=Ee("icon-check-circle-fill"),c=Ee("icon-exclamation-circle-fill"),d=Ee("icon-close-circle-fill"),h=Ee("arco-button"),p=Ee("trigger");return z(),Ze(p,{class:fe(e.prefixCls),trigger:"click",position:e.position,"show-arrow":"","popup-visible":e.computedPopupVisible,"popup-offset":10,"popup-container":e.popupContainer,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:ce(()=>[I("div",{class:fe(`${e.prefixCls}-body`)},[I("span",{class:fe(`${e.prefixCls}-icon`)},[mt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),Ze(s,{key:0})):e.type==="success"?(z(),Ze(l,{key:1})):e.type==="warning"?(z(),Ze(c,{key:2})):e.type==="error"?(z(),Ze(d,{key:3})):Ae("v-if",!0)])],2),I("span",{class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"content",{},()=>[He(je(e.content),1)])],2)],2),I("div",{class:fe(`${e.prefixCls}-footer`)},[O(h,Ft({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:ce(()=>[He(je(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),O(h,Ft({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:ce(()=>[He(je(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:ce(()=>[mt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var iM=Ue(rje,[["render",ije]]);const oje=Object.assign(iM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+iM.name,iM)}}),sje={small:3,medium:4,large:8},aje=e=>{if(e)return gr(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},lje=xe({name:"ProgressLine",components:{IconExclamationCircleFill:If},props:{percent:{type:Number,default:0},animation:{type:Boolean,default:!1},size:{type:String,default:"medium"},strokeWidth:{type:Number,default:4},width:{type:[Number,String],default:"100%"},color:{type:[String,Object],default:void 0},trackColor:String,formatText:{type:Function,default:void 0},status:{type:String},showText:Boolean},setup(e){const t=Me("progress-line"),n=F(()=>e.strokeWidth!==4?e.strokeWidth:sje[e.size]),r=F(()=>`${Yl.times(e.percent,100)}%`),i=F(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=F(()=>({width:`${e.percent*100}%`,...aje(e.color)}));return{prefixCls:t,style:i,barStyle:a,text:r}}}),uje=["aria-valuenow"];function cje(e,t,n,r,i,a){const s=Ee("icon-exclamation-circle-fill");return z(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:fe(`${e.prefixCls}-wrapper`)},[I("div",{class:fe(e.prefixCls),style:qe(e.style)},[I("div",{class:fe(`${e.prefixCls}-bar-buffer`)},null,2),I("div",{class:fe([`${e.prefixCls}-bar`]),style:qe(e.barStyle)},null,6)],6),e.showText?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-text`)},[mt(e.$slots,"text",{percent:e.percent},()=>[He(je(e.text)+" ",1),e.status==="danger"?(z(),Ze(s,{key:0})):Ae("v-if",!0)])],2)):Ae("v-if",!0)],10,uje)}var dje=Ue(lje,[["render",cje]]);const fje=xe({name:"IconExclamation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),hje=["stroke-width","stroke-linecap","stroke-linejoin"];function pje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23 9h2v21h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),I("path",{d:"M23 37h2v2h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1)]),14,hje)}var oM=Ue(fje,[["render",pje]]);const zH=Object.assign(oM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oM.name,oM)}}),vje=xe({name:"IconCheck",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mje=["stroke-width","stroke-linecap","stroke-linejoin"];function gje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1)]),14,mje)}var sM=Ue(vje,[["render",gje]]);const ig=Object.assign(sM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sM.name,sM)}});let zre=0;const yje={mini:16,small:48,medium:64,large:80},bje={mini:4,small:3,medium:4,large:4},_je=xe({name:"ProgressCircle",components:{IconExclamation:zH,IconCheck:ig},props:{percent:{type:Number,default:0},type:{type:String},size:{type:String,default:"medium"},strokeWidth:{type:Number},width:{type:Number,default:void 0},color:{type:[String,Object],default:void 0},trackColor:String,status:{type:String,default:void 0},showText:{type:Boolean,default:!0},pathStrokeWidth:{type:Number}},setup(e){const t=Me("progress-circle"),n=gr(e.color),r=F(()=>{var p;return(p=e.width)!=null?p:yje[e.size]}),i=F(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:bje[e.size]}),a=F(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?i.value:Math.max(2,i.value-2)}),s=F(()=>(r.value-i.value)/2),l=F(()=>Math.PI*2*s.value),c=F(()=>r.value/2),d=F(()=>(zre+=1,`${t}-linear-gradient-${zre}`)),h=F(()=>`${Yl.times(e.percent,100)}%`);return{prefixCls:t,isLinearGradient:n,radius:s,text:h,perimeter:l,center:c,mergedWidth:r,mergedStrokeWidth:i,mergedPathStrokeWidth:a,linearGradientId:d}}}),Sje=["aria-valuenow"],kje=["viewBox"],wje={key:0},xje=["id"],Cje=["offset","stop-color"],Eje=["cx","cy","r","stroke-width"],Tje=["cx","cy","r","stroke-width"];function Aje(e,t,n,r,i,a){const s=Ee("icon-check"),l=Ee("icon-exclamation");return z(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:fe(`${e.prefixCls}-wrapper`),style:qe({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(z(),Ze(s,{key:0,style:qe({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(z(),X("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:fe(`${e.prefixCls}-svg`)},[e.isLinearGradient?(z(),X("defs",wje,[I("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(z(!0),X(Pt,null,cn(Object.keys(e.color),c=>(z(),X("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,Cje))),128))],8,xje)])):Ae("v-if",!0),I("circle",{class:fe(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:qe({stroke:e.trackColor})},null,14,Eje),I("circle",{class:fe(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:qe({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,Tje)],10,kje)),e.showText&&e.size!=="mini"?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-text`)},[mt(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(z(),Ze(l,{key:0})):e.status==="success"?(z(),Ze(s,{key:1})):(z(),X(Pt,{key:2},[He(je(e.text),1)],64))])],2)):Ae("v-if",!0)],14,Sje)}var Ije=Ue(_je,[["render",Aje]]);const Lje=xe({name:"ProgressSteps",components:{IconExclamationCircleFill:If},props:{steps:{type:Number,default:0},percent:{type:Number,default:0},size:{type:String},color:{type:[String,Object],default:void 0},trackColor:String,strokeWidth:{type:Number},status:{type:String,default:void 0},showText:{type:Boolean,default:!0}},setup(e){const t=Me("progress-steps"),n=F(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=F(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),i=F(()=>`${Yl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:i}}}),Dje=["aria-valuenow"];function Pje(e,t,n,r,i,a){const s=Ee("icon-exclamation-circle-fill");return z(),X("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:fe(`${e.prefixCls}-wrapper`)},[I("div",{class:fe(e.prefixCls),style:qe({height:`${e.mergedStrokeWidth}px`})},[(z(!0),X(Pt,null,cn(e.stepList,(l,c)=>(z(),X("div",{key:c,class:fe([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:qe({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-text`)},[mt(e.$slots,"text",{percent:e.percent},()=>[He(je(e.text)+" ",1),e.status==="danger"?(z(),Ze(s,{key:0})):Ae("v-if",!0)])],2)):Ae("v-if",!0)],10,Dje)}var Rje=Ue(Lje,[["render",Pje]]);const Mje=xe({name:"Progress",components:{ProgressLine:dje,ProgressCircle:Ije,ProgressSteps:Rje},props:{type:{type:String,default:"line"},size:{type:String},percent:{type:Number,default:0},steps:{type:Number,default:0},animation:{type:Boolean,default:!1},strokeWidth:{type:Number},width:{type:[Number,String]},color:{type:[String,Object]},trackColor:String,bufferColor:{type:[String,Object]},showText:{type:Boolean,default:!0},status:{type:String}},setup(e){const t=Me("progress"),{size:n}=tn(e),r=F(()=>e.steps>0?"steps":e.type),i=F(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=Aa(n);return{cls:F(()=>[t,`${t}-type-${r.value}`,`${t}-size-${a.value}`,`${t}-status-${i.value}`]),computedStatus:i,mergedSize:a}}});function Oje(e,t,n,r,i,a){const s=Ee("progress-steps"),l=Ee("progress-line"),c=Ee("progress-circle");return z(),X("div",{class:fe(e.cls)},[e.steps>0?(z(),Ze(s,{key:0,"stroke-width":e.strokeWidth,percent:e.percent,color:e.color,"track-color":e.trackColor,width:e.width,steps:e.steps,size:e.mergedSize,"show-text":e.showText},yo({_:2},[e.$slots.text?{name:"text",fn:ce(d=>[mt(e.$slots,"text",qi(wa(d)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(z(),Ze(l,{key:1,"stroke-width":e.strokeWidth,animation:e.animation,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"buffer-color":e.bufferColor,width:e.width,"show-text":e.showText,status:e.computedStatus},yo({_:2},[e.$slots.text?{name:"text",fn:ce(d=>[mt(e.$slots,"text",qi(wa(d)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(z(),Ze(c,{key:2,type:e.type,"stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,"path-stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,width:e.width,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"show-text":e.showText,status:e.computedStatus},yo({_:2},[e.$slots.text?{name:"text",fn:ce(d=>[mt(e.$slots,"text",qi(wa(d)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var aM=Ue(Mje,[["render",Oje]]);const ove=Object.assign(aM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+aM.name,aM)}}),$je=xe({name:"IconStarFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Bje=["stroke-width","stroke-linecap","stroke-linejoin"];function Nje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22.683 5.415c.568-1.043 2.065-1.043 2.634 0l5.507 10.098a1.5 1.5 0 0 0 1.04.756l11.306 2.117c1.168.219 1.63 1.642.814 2.505l-7.902 8.359a1.5 1.5 0 0 0-.397 1.223l1.48 11.407c.153 1.177-1.058 2.057-2.131 1.548l-10.391-4.933a1.5 1.5 0 0 0-1.287 0l-10.39 4.933c-1.073.51-2.284-.37-2.131-1.548l1.48-11.407a1.5 1.5 0 0 0-.398-1.223L4.015 20.89c-.816-.863-.353-2.286.814-2.505l11.306-2.117a1.5 1.5 0 0 0 1.04-.756l5.508-10.098Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Bje)}var lM=Ue($je,[["render",Nje]]);const UH=Object.assign(lM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lM.name,lM)}}),Fje=xe({name:"IconFaceMehFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),jje=["stroke-width","stroke-linecap","stroke-linejoin"];function Vje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM15.999 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jje)}var uM=Ue(Fje,[["render",Vje]]);const mV=Object.assign(uM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uM.name,uM)}}),zje=xe({name:"IconFaceSmileFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Uje=["stroke-width","stroke-linecap","stroke-linejoin"];function Hje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-.355 9.953a1.91 1.91 0 0 1 2.694.177 6.66 6.66 0 0 0 5.026 2.279c1.918 0 3.7-.81 4.961-2.206a1.91 1.91 0 0 1 2.834 2.558 10.476 10.476 0 0 1-7.795 3.466 10.477 10.477 0 0 1-7.897-3.58 1.91 1.91 0 0 1 .177-2.694Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Uje)}var cM=Ue(zje,[["render",Hje]]);const sve=Object.assign(cM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cM.name,cM)}}),Wje=xe({name:"IconFaceFrownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Gje=["stroke-width","stroke-linecap","stroke-linejoin"];function Kje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.322-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM31.68 32.88a1.91 1.91 0 0 1-2.694-.176 6.66 6.66 0 0 0-5.026-2.28c-1.918 0-3.701.81-4.962 2.207a1.91 1.91 0 0 1-2.834-2.559 10.476 10.476 0 0 1 7.796-3.465c3.063 0 5.916 1.321 7.896 3.58a1.909 1.909 0 0 1-.176 2.693Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Gje)}var dM=Ue(Wje,[["render",Kje]]);const ave=Object.assign(dM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dM.name,dM)}});var fM=xe({name:"Rate",props:{count:{type:Number,default:5},modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:0},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},grading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:[String,Object]}},emits:{"update:modelValue":e=>!0,change:e=>!0,hoverChange:e=>!0},setup(e,{emit:t,slots:n}){const{modelValue:r}=tn(e),i=Me("rate"),{mergedDisabled:a,eventHandlers:s}=Do({disabled:Pu(e,"disabled")}),l=ue(e.defaultValue),c=ue(!1);It(r,M=>{(wn(M)||Al(M))&&(l.value=0)});const d=ue(0),h=F(()=>{var M;return(M=e.modelValue)!=null?M:l.value}),p=F(()=>{const M=e.allowHalf?Yl.times(Yl.round(Yl.divide(h.value,.5),0),.5):Math.round(h.value);return d.value||M}),v=F(()=>a.value||e.readonly),g=F(()=>[...Array(e.grading?5:e.count)]),y=F(()=>{var M;if(hs(e.color))return g.value.map(()=>e.color);if(gr(e.color)){const $=Object.keys(e.color).map(B=>Number(B)).sort((B,j)=>j-B);let L=(M=$.pop())!=null?M:g.value.length;return g.value.map((B,j)=>{var H;return j+1>L&&(L=(H=$.pop())!=null?H:L),e.color[String(L)]})}}),S=()=>{d.value&&(d.value=0,t("hoverChange",0))},k=(M,$)=>{const L=$&&e.allowHalf?M+.5:M+1;L!==d.value&&(d.value=L,t("hoverChange",L))},w=(M,$)=>{var L,B,j,H;const U=$&&e.allowHalf?M+.5:M+1;c.value=!0,U!==h.value?(l.value=U,t("update:modelValue",U),t("change",U),(B=(L=s.value)==null?void 0:L.onChange)==null||B.call(L)):e.allowClear&&(l.value=0,t("update:modelValue",0),t("change",0),(H=(j=s.value)==null?void 0:j.onChange)==null||H.call(j))},x=M=>{c.value&&M+1>=h.value-1&&(c.value=!1)},E=(M,$)=>M>$?O(mV,null,null):$<=2?O(ave,null,null):$<=3?O(mV,null,null):O(sve,null,null),_=(M,$=!1)=>({role:"radio","aria-checked":M+($?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":M+($?.5:1)}),T=M=>e.grading?E(M,p.value):n.character?n.character({index:M}):O(UH,null,null),D=M=>{const $=v.value?{}:{onMouseenter:()=>k(M,!0),onClick:()=>w(M,!0)},L=v.value?{}:{onMouseenter:()=>k(M,!1),onClick:()=>w(M,!1)},B=c.value?{animationDelay:`${50*M}ms`}:void 0,j=Math.ceil(p.value)-1,H=y.value&&e.allowHalf&&M+.5===p.value?{color:y.value[j]}:void 0,U=y.value&&M+1<=p.value?{color:y.value[j]}:void 0,W=[`${i}-character`,{[`${i}-character-half`]:e.allowHalf&&M+.5===p.value,[`${i}-character-full`]:M+1<=p.value,[`${i}-character-scale`]:c.value&&M+1x(M)}),[O("div",Ft({class:`${i}-character-left`,style:H},$,e.allowHalf?_(M,!0):void 0),[T(M)]),O("div",Ft({class:`${i}-character-right`,style:U},L,e.allowHalf?_(M):void 0),[T(M)])])},P=F(()=>[i,{[`${i}-readonly`]:e.readonly,[`${i}-disabled`]:a.value}]);return()=>O("div",{class:P.value,onMouseleave:S},[g.value.map((M,$)=>D($))])}});const qje=Object.assign(fM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+fM.name,fM)}}),Yje=xe({name:"IconInfo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Xje=["stroke-width","stroke-linecap","stroke-linejoin"];function Zje(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 39h-2V18h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),I("path",{d:"M25 11h-2V9h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1)]),14,Xje)}var hM=Ue(Yje,[["render",Zje]]);const lve=Object.assign(hM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hM.name,hM)}});var Jje=xe({name:"ResultForbidden",render(){return O("svg",{viewBox:"0 0 213 213",height:"100%",width:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-871.485,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-75.2684,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(1,0,0,1,246.523,295.575)"},[O("g",{transform:"matrix(0.316667,0,0,0.316667,277.545,71.0298)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.182997,0.105653,-0.494902,0.285732,814.161,66.3087)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.316667,0,0,0.316667,237.301,94.2647)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.474953,0,0,0.474953,538.938,8.95289)"},[O("g",{transform:"matrix(0.180615,0.104278,-0.973879,0.562269,790.347,286.159)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.473356,0,0,0.473356,294.481,129.741)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.473356,0,0,0.473356,192.621,188.549)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-49.2109)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-91.97)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.701585,5.16096e-35,-5.16096e-35,0.701585,-546.219,-21.3487)"},[O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1033.27,615.815)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1035.25,616.977)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(1,0,0,1,418.673,507.243)"},[O("path",{d:"M1088.34,192.063C1089.79,191.209 1090.78,191.821 1090.78,191.821L1092.71,192.944C1092.71,192.944 1092.29,192.721 1091.7,192.763C1090.99,192.813 1090.34,193.215 1090.34,193.215C1090.34,193.215 1088.85,192.362 1088.34,192.063Z",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(1,0,0,1,235.984,-39.1315)"},[O("path",{d:"M1164.02,805.247C1164.05,802.517 1165.64,799.379 1167.67,798.118L1169.67,799.272C1167.58,800.648 1166.09,803.702 1166.02,806.402L1164.02,805.247Z",style:{fill:"url(#_Linear1)"}},null)]),O("g",{transform:"matrix(0.396683,0,0,0.396683,1000.22,516.921)"},[O("path",{d:"M1011.2,933.14C1009.31,932.075 1008.05,929.696 1007.83,926.324L1012.87,929.235C1012.87,929.235 1012.96,930.191 1013.04,930.698C1013.16,931.427 1013.42,932.344 1013.62,932.845C1013.79,933.255 1014.59,935.155 1016.22,936.046C1015.83,935.781 1011.19,933.139 1011.19,933.139L1011.2,933.14Z",style:{fill:"rgb(238, 238, 238)"}},null)]),O("g",{transform:"matrix(0.253614,-0.146424,4.87691e-17,0.338152,1209.98,830.02)"},[O("circle",{cx:"975.681",cy:"316.681",r:"113.681",style:{fill:"rgb(245, 63, 63)"}},null),O("g",{transform:"matrix(1.08844,0,0,0.61677,-99.9184,125.436)"},[O("path",{d:"M1062,297.556C1062,296.697 1061.61,296 1061.12,296L915.882,296C915.395,296 915,296.697 915,297.556L915,333.356C915,334.215 915.395,334.912 915.882,334.912L1061.12,334.912C1061.61,334.912 1062,334.215 1062,333.356L1062,297.556Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(5.57947,-3.22131,0.306277,0.176829,-6260.71,4938.32)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.10726,0.0619268,-1.83335e-14,18.1609,1256.76,-11932.8)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(238, 238, 238)"}},null)])])]),O("g",{transform:"matrix(0.316667,0,0,0.316667,269.139,37.8829)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])])])])]),O("defs",null,[O("linearGradient",{id:"_Linear1",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-2.64571,4.04098,-4.04098,-2.64571,1167.67,799.269)"},[O("stop",{offset:"0",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null),O("stop",{offset:"1",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null)])])])}}),Qje=xe({name:"ResultNotFound",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[O("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(1,0,0,1,275,-15)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",null,[O("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),O("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[O("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",null,[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),O("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),O("g",null,[O("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.15,1317.28 1767.24,1317.28L1684.37,1317.28C1679.46,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.46,1404.46 1684.37,1404.46L1767.24,1404.46C1772.15,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[O("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[O("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[O("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[He("?")])])])])])])])])}}),eVe=xe({name:"ResultServerError",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[O("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill-opacity: 0.1;"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[O("clipPath",{id:"_clip1"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip1)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"112.301",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[O("clipPath",{id:"_clip3"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip3)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[O("use",{href:"#_Image4",x:"50.54",y:"56.312",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[O("clipPath",{id:"_clip5"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip5)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"89.692",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[O("clipPath",{id:"_clip6"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip6)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[O("use",{href:"#_Image7",x:"50.54",y:"31.563",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[O("clipPath",{id:"_clip8"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip8)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[O("use",{href:"#_Image2",x:"50.54",y:"64.644",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[O("clipPath",{id:"_clip9"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip9)"},[O("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[O("use",{href:"#_Image10",x:"53.151",y:"30.14",width:"106.825px",height:"61.676px",transform:"matrix(0.998367,0,0,0.994768,0,0)"},null)])])]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:'fill: url("#_Linear11");'},null)]),O("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[O("clipPath",{id:"_clip12"},[O("path",{d:"M1461.07,554.317C1461.07,556.747 1459.6,559.067 1456.6,560.8L1342.04,626.943C1335.41,630.767 1323.83,630.287 1316.18,625.871L1205.33,561.871C1201.14,559.456 1199,556.361 1199,553.426L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,554.317Z"},null)]),O("g",{"clip-path":"url(#_clip12)"},[O("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[O("use",{href:"#_Image13",x:"53.151",y:"58.978",width:"106.825px",height:"33.517px",transform:"matrix(0.998367,0,0,0.985808,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[O("clipPath",{id:"_clip14"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z"},null)]),O("g",{"clip-path":"url(#_clip14)"},[O("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[O("use",{href:"#_Image15",x:"121.882",y:"76.034",width:"37.393px",height:"61.803px",transform:"matrix(0.984021,0,0,0.996825,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:"fill: white; stop-opacity: 0.9;"},null)]),O("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[O("path",{d:"M1306.5,1286.73C1307.09,1285.72 1308.6,1285.48 1310.36,1286.12C1312.13,1286.76 1313.84,1288.16 1314.73,1289.7C1326.44,1309.98 1355.4,1360.15 1363.73,1374.57C1364.33,1375.61 1364.49,1376.61 1364.18,1377.35C1363.87,1378.09 1363.11,1378.5 1362.07,1378.5C1346.41,1378.5 1288.17,1378.5 1264.07,1378.5C1262.42,1378.5 1260.37,1377.48 1258.9,1375.94C1257.44,1374.41 1256.88,1372.67 1257.5,1371.6C1268.1,1353.25 1296.8,1303.53 1306.5,1286.73Z"},null)]),O("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[O("text",{x:"1170.88px",y:"1451.42px",style:'font-family: NunitoSans-Bold, "Nunito Sans"; font-weight: 700; font-size: 41.569px; fill: white; fill-opacity: 0.9;'},[He("!")])])])]),O("defs",null,[O("image",{id:"_Image2",width:"113px",height:"47px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAAvCAYAAADU+iVXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABVUlEQVR4nO2aQRKCMAxFxUN4O+9/DNw4CoiTliZN8vPfQlm00ykvP3aQ5fFc11sjy/L+/nx8r3ffm7Fn845jz+aJa23XOJvfs9Zh7NBawv3YrSGtdbj+x10egkFzpRrNt+SSxMgbqkiZJCJDiQDoSmSfdYFJ3JD18GMmcXhDTHUzNZIIXhA1JIJDib0MptqiKbhKzHqQiAaT6IlSFVIiAJQIACUGpLfLhpfIw49Ml8T2v4/JTPySyIJQI3w7JTIYEp2fong3FXWJ3huqCEYSNUlYhZRoyaSCoEQAKHESlqF0kZj9NBgNJhEASgSAEgNx9WfCTmLxpygzYRIBmCORsTIlXxJZED/kk0h+KC1x9E2FKG86qEkMsh8/HG9A6SSGYqAIKDEinUIpUSDDYXiqxAw3JCNMIgDXJTIWYdBJIvukK2ynARit4XASUZ6izCScRFWKCH0BfLM84oTw1Z8AAAAASUVORK5CYII="},null),O("image",{id:"_Image4",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAASeElEQVR4nN2d6ZbcNpKFL5cs9UN1W5bntWxr6XmsWTzLQ7mSJDA/gh/iApWyLalUy+AcnypVJkEAsd24EaQn/T8Yb9+XKknrOuk4pOM4tCyLpkkqpWpZJu170TzPKqVoWWZJUq3Sbx+m6VkX/wjjVW/gH7/sdZ5nTacc5lkqJT6rtWqaJtVaVUrRNE26XGbd3+9alkW1Vi3LrFKq/uvj/KrP4dUu/t3HWkupmuepWVspIcjrddc8z1qWWcdRTusLwc3z3Cz1OA5dLouOo+o4Dv3vv15e5Xm8ukX//eetTtOkdV20bWFVkrQsk+ZZOo74Xq3SNMVPqXextYal1lq1rrNqlfb90LrGXP/5/nW52Fez2B8/1FpPiSxLLLsUaV2lfZdKiZiHkHCtuFWPj/73cvpfLDQseNJxvB43++IX+cOvR5WkZQkBbdsh4uCySNtWWkxEuLVKx1HOuLecFjdp3/NnWiYKUbSuAXiOIwR8HIf+55/riz+jF73Anz7VWkq4RSkEI+m0Fun+ftflsra/r+usfY/fATVY3DzP2ratCe3Nm7UhWawv3KzO69PtllJetDBf5MJ++hRHWWu4QCkOm1h4HH2agJuVpHme2ufHUXS5zLpeQ1B8Ns9zu2ZdU3gAJdwxFh3zxjUv0cW+qAX9+KFWhMV/Urg6kCUWcxzpRvlsmno3ehwBVhDKcWRMZQ6uQ4D7HsgI1MrcDIT/koT5IhaC28T17fuudV0bWAmhTJ0QpN56ti1cq4MXSR1wiWv6+ChJ12ukGpJaunG5rJpnad9rm+NyWVRKgqiXQhQ8+yI87pEicDQIRApAg3US60gvPPYhbBceqYTH17DEo8VLSVqWTFGmKdKOZVm0LDKlqIaEQ+GeO798tpu/fV/qPE+nCwwLiwNVi1FhCaUJIFxbury7uxAiwrled0k6Dz6F78J2FgcBk2qs66J9T/QrpRt2MoH7RX6ZXuO/Py3Pcp5PftMffj0qdBeHF4AlXJwU4ETSGavUMSsAD1AlqYDHvut1P61y6QRPMg/g2bbSudnJvCNCgmsFQKEE8Z2p+1x6Hi72SW/47mPk6/u+txwNa4vfpw4hYi3Lok7AHBiHCfjArTr6ZE4Sfr+W+aVAqQgVpUCJJBQq1kas7FFxAqTLZdK//fx0wnySG/3LP2sl1uEKU4uX9r1Siu7uliYwhHwctR0y1zmz4gwO80gp3OM4dHe3NqIAy3R36kjX4yvVj31P4OR0HYJluPVOk/Qfv35/YX7XG/z4IVSVQ8d11lp1ucydsNxlLsukbQth4zLnWQ8sA85zWZYm7LCiiFEp7J6O477rOul6TU5VUpdHjgJmL4QDKiGxzmSP3OqJ8d+Tj/0uE//w61EBI57jSWldUk+hxWc9OR1Wk+4WYWNNaD2jlNKsxdMOEnZJ7dC3bTcFmZpQSimNzXHl81ok7tndvAOlW8KXvl9u+eiTAlyoIozuB4DhrAt/w6qkdL3kb1Jymli0xzSH/Vi153QcLqmJX0t6c70erTqyrusfKhPEggOjmGvqANAIxNZ10r//8rhW+WiTkTI4iCDuOGAZ+U8osXWddH+/twMn5iEIeFEswasRkroir49l4cDVhM/Bcshc44LwCkcKZD6tfW75JHN6jRJlQnld+NzzOB4vJfnmSd59rHWMTwEkFh3HeDBxDVaIwB1JjlxofhZCj0pG7bQ9508rIH+bJq6JU/eaYsybaczd3dJVRXCZpajVLhEMua2j5VueIeZxAqNXnlrrNwvzqy/+6VP1s+6Sdnpd/LAYxJ1lWbTv+2mpc8ekeOz5XJINkPEknbSABN/dIfFrniddr9uZm65tPudsGS4gLyqzX9ZTSgIq9iipoWfQKyGm1qyDxn2+DcV+1YU/faqVxbEZL8Iy3AURV0Z2Bgjv8aPW2iyJgbDcejk4YiCQnwEH6gpGuuHxknV5GAApe+rhjBIM0Zs362dJAwTM2uNzNWAnPQRtX1Py+qILEJ4kXS6Tfv89ER6D2ITLjEPpSWjiCL8DXvhezrO0eIhuJILNQ6IqUUqS2lJAfikQKWi01tq5enJBXKQn/SiK57LO3XrvDvdxZgfSAC+xbXvjat3K2a+fyZe42L/0RfI94sO+H11S7ptzwDFCbQcKHuTTitVZhR+g/x13u+/HGaPWJtBucwZOGNQXmddjl9cYr9fjjIlzQ6EolO9vjIHM4Yo65o6+L1CuK76j2b+SlvzhF959rBWEySY9r/IWBxeapJsxgs9gP9y6cHlj99q+9zwow8tRzIFr4l4jqHJkPOaAzOFzOnjy3z3ZZw73HJwRQM/PZZzLz5bwdH+/6e7ucirDnxeiP/shqPN63U1rMo5J6nI/YgiaD9IbUahX19mwI1dHp+6SRvDgBzIWbaHvIu7VB4dIHCwly09es8TF46JZH6AJl4i18H2KyMuS83tbpSvXuk4nKs70ybGBnwWe4XPx8sEf//7zVtd17YAKNJgjPrSNSjqCy5bBjBmx+FyUC5IxghyPM1w75nMIxF0v6yVmjqzQmJT7YaKYYdUJtCQ1ZaKjwNMPZ4ig+dwlxv6mdi2CJm0ZvYafnYcg1jNWSto/3r4v9ZZms/HRlTjKQ0ggMQcCXhPctiwZObr0+7iC8D0npEHCgBuGu0f+/ebN2oTh1ZFQjhAUwvBiMMriB+kpTwi1z1P9++wF0OSAB4HggpkDz+WKFF6uV2z3fljm5IgTM0ZjRqQ2ukKPDSzO3aa7orHhyGONI8FsR8wD8Prfus5dh/donX4PDjYtZ+q8ixecHUl6l/jIf8LYcOC33Dnu2lOQEEAqsKPymPchNnDBj/2yDnwmmnK9h2WEzLhWhifcnvDimm5B5xH0eFwZEah/lw2wMdryuX6sMKTVBnrl87E7oFZ1uagDHPZIDuzC2/eoF+57368z5pPUTDGMUaHhjdnPSNXhacbvO4BrBoNWQEthUQ7NXSNCcHHQYSnxtzjgZFxG7eU+6S5n0856WmJfaOXacKHTef/ZWJ4ERB4BYv0xN4IJ96fu4CC5Y/299W7b3pRx33cdx9GUwKszpFnpVQL8ZQpTT4XILvTLJWuRtVZdLuvpcY4GchAg3wnsQdf7fLJiZ7nucoleTvpViEfRbLurlKJ9P0R9zjcQ2l5PTcxDpIgaLjc/QFvRqlLKqWW90gSY6asBbNoJ5/QYcd3lMneQnYNIIAQhjkLoTAVK21+eQWrF5bI2yO9rZB8BpNxT8GwITExt3kuKpmcPJft+nCEj8QHnOU2TLpelU7JQdhR60gzHSWCPw4kvRNse6Cpb58NNhN/3+MXNp4lmpfk8uIxzjiyzWiCt63JuPONcBPjpVCSaoJhrOQ+otPgUrj3dZ+ynnGWp0lkTQMsbo6KaklYFmYBFuXsOoKS2/rT+uSl74Ae8SQhynjPnDYusZwpVTmFmTJXCC4T7zHXFd0u754zv9aQ6hJDawE1i0nrGtNHNzp3Gx3dDMwJKT6ebqJ2WpSstLb5SPkLYcbhrs66Ma7W7p1sdG5+mqeV2d3f5eFsp0UcKp5nxWuf9lnbYXjCutbbQwz7dK3C4t/7tqBdwlLhj7lgkUheUi/RlXRMLtNDkQuDQ2EwejE6Txh0Gyrpe9xYj0MrrdWtaFDeSKcbcDrBPvp2P7BXBlQPrgtlY16nrYNu2ox22K1Ek7rV5m5hD5uZAxulmM16lN7hcLlpXd9mJavEarBe37fGbGOasUn/mx2mpkPJHM6DoWCgNaHEPSZoxSQIrpr8sKcTQjocVgiAFKPMEyPnb3y7NbXiciU7qkTlJITT/PmM5STaQNzn4Oo6qbStdyoOg2XgSErWzOD+MzHOnM/bXbn2wOl4uC1DUK7S7PI/5/MTL8W/iIvdGwblH/7SXt3hSgMjcc/7twzQFsKhnHOu7zxws3mIWvM/kONRATghy7jbM4XBAaDNaz+/ExQQ2vav0DjMs7+5ubRZfStWbN+tpFRmTwhVu56GGJUfYANpHQTs9TD1jYW3MET2trCNqolCEEXe3bX8Q23wsy3KS9tNZ2chqTICsuB8MkbNEefY6UfCUjA09oeR+TjPBRDhMJj/yZHesQLjvHvnDyHcOcz+525HKg3DgQBB23BNSvafFXPHCivdWe/T0BCKBkEDO5wfrMZ690k7iBLfv2+/Nnih3ZZqVzV6eQ2ca1VOfyAVlpYPuAXf6w69HRTDOSUJ1OUODK4VJyUCftUQqERRnnTz3p47CctON4Ipo9/BnIjzPQ3mc2+WQ6d9hH5DiHJz37XDIsf5UNhTTFQY35uuE4QqFedgoxVhX6f4+FS7z2KPjSsdaLGSF9Afc6Tho+B0tKm6Q7A6jTzN6rXRqzVGVL9gZDRTBm4wkDe0cbm09COO7zsZwyM6lIhj3QOMenT1yxiisI1MtUD50JHO612B/sz04RGbg/UCu3G6lnytJfVaIDIhxKUtPvmkHFH6QuLVbLfmOEhGCF0bd/2MJY/u+Wyqbj8/yIFAsn+9WYXp0b27NiQbVXR/INSx726L+xx5w3azLH/Rx78Y8biBO03nnwB/VFP9UiFI+N4/b+1wNzA8AV0Tux8K8y8sJdCeV4T1HlwPmwn07F+oCxI17DB3LQAyvdXa51/A01Gjld3fe/9P3lUaumUqO1/E+G+ZBuM6fEo+lv9Zw/JeEyHj7vtSE6KW5tlhYDwhwB+5SvGDsKYs3XAVK7J+7cMDi7i0P0d9Tk4/Lcf3Y+uCIGqGS81FZGEEE8SnnDJxwf7+1RN2TeI+3faGgXzfM0RiyvqRb/IuEyPAne/0gvGbn8XAM0qNFjMjSEaWDFag7Ns3fYo5wYR5fODzosh6mZ58se0iXP3VKABd8qyls7FCgQoM38aIwrvXubhXPjYT1hiAvl+WrWhe/SoiMdx9r3ba9FYcdsPATq0MLSV04SEeCoE93yxyAIzxHjMsy6XpNAQaAWdr3cYNYqb/ACEXyZzWSe+1flcKAfPBWjFt9SCPwGoGUdyIg/K99Q8c3CVFK4DPmiuNz8xRzqbGND7k4MMFyvJHJEWBel+4JZcLaoarI/WLusWUkrdJDgIMdVybAjyNp0iLQqgvM+2K5npqkM1ff+qDNNwuRwZNQkiO51OQR+IyFUM+r+mfk+2Ymb5kYXVm3MQMitxDo+HQVa/Jiredmjh79+35fqvUoknce4GkgSEopj/as/6MJkfH2faluhYAF75qT+ke66TDzxByXOLpD4qbnpWPq4vkWvUDjsxOOHhGw9w8FNTbdtGLefeO4AKtjnW6hxHvW+tiPhD+6EBkgWafi0NxMqLMxV1JzO/nSvRDMSGUx3NW5sBwZ8293Y2Mvq6PbsbKQCHlurNDIEI05rOefTliU8n3eTPXdhCipPXQDqPEOs/FgsB7i3mGMgLfCe46aaDIZfY9rntLwaJv0UHnGFAIheC+QP3rnDE78VKsNEoOdTqz1+76Q4bsKkfHjh3z8jYP2eIF78u4zb8N482bV/X0++CllY7ET0t7z6k1bWA6oOL4TPz2mpkt/yBG7O7/VsXeLbXqqF/w9iRAZvCk4qyL9YUk9HUZMcsAwHhYgyHNCrMU5Tql3dQjM06Jb77FhjZ97xM4JArzIND3tO1OfVIgM3tntVsWIikc0JXkJa3y2A+33vM+tydkbKd359Rrm+rlccryPs0kjIxPr7b2HpCd/KdGzCFGKlCRLTA9fTuSVhs/1nYIo/ZAdaY6v9fL6IDVLYh41O3JcrIoOB2I3aQgx1K99ited3BrPJkSGv0k/QU1SXaBIJwPGOOYpRyLTqfs+sdObgD1l8WqL1yoldUwQXgHhS8//xsVnFyLjxw+13mJn/O1Okk5O9eGrouuNup2/+MgRqZeaHAzxXQTtL2tAOUh7njru/dG40QHyPOO3D9ME6EGAPUUWLvH337cmJBJorwyEi0xrTlaIZuVDNCtfr4fot6EXKB9Xyw6+7FxLxXopApRekCX6ePexVtzc+MZhSc1KnEgAzUpZb/SHVp3IdvLZLXPsOhgrM4/Bc36P8eIW5IP/9wWW5+S354hSz6z4+25IJ2BzmCuuiZ+AFn9x4EiKv5QX1N4aL3ZhPqDwvN/H63vENqe6kgbrCXAHObcq+k504w1eovX5eNGL8/GPX4KJBpXi4oh/lLrGd7tRdIUsx7L89SjEv/EFuS9deIxXsUgf8LF9p3a+o3TsO3UOk1eQSLQY5iulqXpIz58yfOl4VYv14awPeZ0XpEnE+Y7Hwuw4ry33k16f8BivctE+/H8/5IBkfLmfv2Wf3NIF/ZKBy5+NV7twH2OVRPJH1fp3vsG0IMTnevn6Y47/AxX1K5XSf237AAAAAElFTkSuQmCC"},null),O("image",{id:"_Image7",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAMrklEQVR4nOVdW2LbNhAcUD5Xkl4scXqxpr0XiX7AQwwGu7Rj2RLV7o8lknjtc3YBygX/Afr2XOu2bQCAZVkAALVWlFJQClAr9mvLUrBt7R4A/Hp++fDA9NAL+PpjqwBQSkF9kVQkOBIFx2vLUlDr4wvyYSf/7blJghanglFLc9q2DZfLgnXddqvl9X/+vDwkPx5u0l9/bFWtTf+q8Hidwt22DaWUXYCtj3H5bPNolvkwk2Xc05hHcjep1yk8Fy4tksSmfH5ZCv768RjCPP0k3W3ysxKFtSwLaq0vAGYZXC2vtefHmKn9Lkv7TKt+BKs89QT/+FnrtnVECYwghuRukfcpOL1N4fgzrZ/umgHsbvfsVnnKiX35vlYFHUpMJQAMwMQtqpSCdV3x9HTBujbXSUUAZmVQa876A84ZL081oS/f1+qAQwGLusx+vz/rSNUtbk5FZvccpSuOdmut+PvnchrenWIidJvAKJRIaPpZY6B+Z/6nAlBrisjjp4KezKWfRZB3n8QfP2tlKuBWAHS0SMZqOFSAwu+R1QA9sVdhupA5riNapUjY946Xdxv823OtHnfIFGp+lv+pZSiaZH/e1gVIlmseCXRBk1SBFO26i6fA7xUvbz4oS2UABoaua699ZjFK25CJ/NzajukBgMmNerzUNuyD1Rw2U6XR/ihAzhu4D/C56YDM+QAMDMqScrUiYMzjiDjVmjT2aTLvlhtZLeOvI9RufWWyRCUt9906Xt5kIFpf5uaUKarlR0jUy2p+X2Nh62+2bi3faaxz1JoBInf1nr/WWm9Sj/3UAb7+2KrHo6hC4gJ0kAOMwMSf0RwwSgu8isNrDpSU1KIVBY9zX+Rz9xAaP3n/My3zUzrWOqdbhLpGPqMuFMhjkGu8pxZRKuE5H0ljYFaC0z60b8ZNutllAbatC1PdcxurPftZgvzwTnWDFuhJdSlzHFOozudGsHBsxeMYc5xiHxm6jdyx11mVojHVkt2zaJ/6+aOF+WGdffm+7hu0zrB9sCC2ULiRNUUF6fa5l9H0GjCX4nRsF9BRPsj2kVC8fyofx88KC5/lYq/uhPt7zni6FFoetZaCjQU2okPgWBBqtXrfXbczmP2qmz7a5oqAVwR6Mkv1Zz3eXpuWvLux7jBwog7bIyKTNaboEjQ+7ZMUl+RQnvdVYTKE6S48AiD6LOepwMmVTfs6Qsw+P1/XNVb5roaa7wFjzIqAgloHidaoRyUiVOruz9MOIE4ZpoVapcfben9ODpAyC9M+dc1UWmCuDGnb9wjztxqo65wXNqcNUVDXeBmdc4kWqsKLQBL78zIcx6U71aMZfa6xW86uOeKOarU6R3fZ6n2y3Bj4vcrPmx789lyrx7QsH9OFXC4F6xqnGBHo0aqJCihzpa+hV33OEWpk/ZGFkJWeh0YVI953ZSU+UIGyzeVSQDDvHgF4m2UePsAiNRmoNUXX9NcOIDkTyJhs0R782/PxZzLAtZ3XNYXxeKhMzRivfbW1XlKX/1oakn3XsVyxXtslSW+q61QNjayv1oqnp+VlMnGVxRnnwEKFQAaocFQx9BkHPWSIV1OyfUUfb2KQeRnPL13wJHWrkedyZY3auSfKrHK6mIEW7YyTd2txbVbw0vuL9/1GxvXPtG510W3xs6X4wtXyiJo9Trml6jo1vqqCaHvOVcd1AWdgz/FFBu6cTx4v9y9R3BsZO2uPCkM1Xl1vhvwi16j967PKKP0cxTMFFC4k9umxl8r2lvlmTPa4TXIBet+RG414wvbqrVhcL9xZ10Hcuo6OO0QD8/MoiNnqdIKZ4pB8AY4ql4VKNQ0zzU3XGrlgjdk6F80ds3VxHd6vto3G8fyTc4x2ftimlLYRXfx9Bg/+RxoRAYMIYUX3IxfdJz6fOHPGt+8Yis9jSjDHnAzRcj56cDg686NziEALKQNdLhQKg89oKVHvR25+2BPVCXECOvkuVGWyl7fmZF7jUCljfNB2nem8P277aIzhuG0BdJ0ag0bm6PEKlQX7dNR6uSwTCGLb7gEU0I0xMFJQzoHt13Xb16BEdE8Z1NpPOyiPW1/kbVOUJy6+MaUMGuaW1jvE3hlJNYptIhfZJ6CId0aL/XhEmdqy7yjuRrlnmz+ZU3amKVCJ5sO+lZlRESFCvbyuSuHgiXzkGN3tLnt7kuIN9zBPFIpqfktkL4NAI4TlVRXVDk6ScYBMIXEBbMt9RUd8ruVdaGXoT4Wsa1ENZ36nCkjk7IwZ4/Wcv+l1pVHZ66R4kZtuAtKxxudU4I7qSylYdHK8p9pNBvRFjh3rgtpkutvRwTtYKnJPraYrQ3OF82I5R3V1zlB3b02Rln1MjtUtYi4ucA0zSi7Wd//chD4K0EOClyL7sx2YqWA7Nhnz4a7kbdyFDSh9jxMx7MYuMHdZFAQnNrYru4A4MQBD+SqD8XroieMrc3Ujms9qfFXLJwP6urcpduv8KVi9766xucMYuLkSjC61DoqrMX/Mr0fF7Ir24k5ZBxy1I/bxbn1uGRHkBub9ui60Lnx+VjfJ/hXWKyR3N6fITZmpcZ9/+wszfc9ThcM41ePQnMwreFJBUYk0DXIBdtc5sGxYp7r+plTtu26PLb+eS9Fis1pes6hZc2gFZEhHq8s+GLWTWtMtaazAaL9kJEmhvgZ7R6M9PleJf8uLhVe48ilq1O+cqwqBHqqHmrIrjzJdleNy6crl6+acPZy4B+S6xnl2DzEAOH7gyywKWrzyoaiwI7h8OyY6/qBWM2rtnJvRerLjGGOs7Qm0H0T2Z9RiIytRiqzHrU7bRWiXbfnXT+dpH17A8KOd6g32io1PmoVvAFjX1VxbXAgYAUpvq2hQ6WhfLXc5M9DxcSOXFjGabfW6CjUqcGTz8XU3IY3u1wERkKc4vn72rWN6IXxWvRfSQngWrFWjfTG+aPZ2lFtFWsrJ6zjqLbQUxTFG1DimGmq97hK1LRALVj2HMz1atyuok3o8XU+0qZ5tFKdCJOm7EzqZyGqUGdGiIgaxjbpMzS3VYltfnEd3tRq7FOFqnOHzylivZWZzzcKB3su8hc5TQ4saQOQu3WCOdvpfFSLQD0VlKCsThPrvvtjxJRqPmd6nMydihraL4mAkkGynnVbrrjD6q3OLGD8x+6AvnyObv+W1uTcJkcSd/sjslZFR3Iqq+srQ6Liiotr2fY4vc/yMT75pm+hsaCk9pXDhZ3E5U+bIUx3FPi+8v2U3X+m3hEji9pW6uKOJRxpHxmg88A1gXfDR+ZouiDnuaLw8iu0TY4LrPjb78L5UOTxsRHxQPr3nDOq7hEjyHwaKDjpFsTJzJZGL3Cdaeo7Fw1fRM1FKQWUBxkIC73Hu0Y8zeExrfcRbVUcuNVN4Heu9h4ivEiLQUawDhkAOALRgsEzxTZ9xrScz94kbkFGA47sb6g5Lab+q0Sw9Pi7ZxxjzP68kqTVyHvxOPmTHULgPClz/YurVQiTpu/fDAAkQcMa6Fkcbq15XVQFGxwd53wGIx0udBxAXFzxdorJkz+kcVMBt7e3vR73r/2FCJPm7GRkgIJGpwJhAq9D8tJ3qicdHLbpHqNaF6CAt3hQe88kIWPn61KXrXwAf/uLphwuR5O/mAzEIUe1u17XwO8Y1t1rdQPb+dQwlzw0jhJmVHCNAlYGkTMCf8U7/pwkRGH+XDRhztAhgROhTBaUC8SqNWjzHygBTlgY4ZejV+1aX6aiT1x7uTWGn6PW3iMmkjBEeWzLk6y7TyWObu9YobrZ2CEt3fN7jfa23+TWNmwiRpL9dE0HwaOdbGeIC6e44P2LpVSG3IHePfiSQlBUAVNDX5nvvpZsKkURhZpYF5AXpKN3gcx6TFDkeKU0Elvg3eukGiBWOz9/6t2zuIkRgfFknQoJRhUaL4wo6nDKAEVWAvBzom9aRq492VIDrXhS9hu4mRJL+LKaDE1IE+9vz84azu9hIgBHAigCOWqgKj6+j8dr/9rfdnHzLi+Qul9eAectHD3rpfbf43maOi442gX5kg5vcFOZZfmUx/mXYO5AyRC3MXWP0mbLUE3BKUWrCds1ix+OPHLe3WXC5XNL53ptOMxElLaz7ybUsufadBY9/fu4mugZgf7vZx6SQz/hvF043ISX/Mdsoz9QYmCX8fMYL0hEqzXLWM1me02knpuRbXsC8tdM+x7vmWmrrQh/P7mgMVGU4A3B5jU49OaXX/i8Gy3N+iizKEbPKkVvsma1P6SEmqeRVH2U8CwGa/wHjXqG++KPWrHniGePeET3UZJX05VhgLouR/H526uxWdc7PoIectBJ/a8B3872yoxvHwHxu51EFCPwHhAjMv/gBzNUYIP5duEeJe0f0L+D749HrhKeLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image10",width:"107px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA+CAYAAAAs/OVIAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nN2dWa8saXaWn5jnzMjMPZ5T1V3tsrGR+TNIvjAgC+y2uw22bIONzB/gBgkEAowZJbiBCyR+CzdIIHDX0Gfvs4fMjHmO+LhYEbGrrabdQw2nCKl0ztlDROQ3rPWu933XVxpf0+vn/0CpplEAeJ7G83MBQByHmCaczzVx7GEYMI7QtjAMA/f/1tK+yvf+Wa6v5Yt/4+8olWU5YRgCYJoawyATZxgargtVBZoGZVlhWRamaeJ5Gl0HRVFx/I/B1+6zf61e+Ju/o1TXDTw/P3N7e4NhQN8rbFujaUY0TSMMdU6nhjh2GUfoezBN+a/rIM9LLi8DHh8LNpuQj/+l9rUZg6/Fi17+eq00TaNpGjabDZ6noesyEY4jk2BZUBQKTdPQNIgiyHMYx4lpmnh+fiaKIq6vAz799MxmsyEMDboOlOJrMWnv9Au++s6gLMvgeDxzc7Pj+Tnn4iICIElqLMvCMAxcV2MYoOtGdF0HoOs6NhuH47HAMAw8z0PXIQyhruHx8cwHH+zo+2Wi4aN/8W5P2Dv7cq+/OyrL0jFNAQhl2RIEDtMEwzDRNA2GYWCaJrZtcDwm7PcxVdXQdR37/Ya2HTFNg7bt6LqOi4uQpoEggGGQnFYUA45jzvcdiWOD//GP3s1Je+de6uf/QKkkqXFdlzDUyLKR/d7g+bmfJ0Yjy+T7fd8DEAQ2AIYhIbGqGkzTpCxLttstcSwTrhSk6YjrGuS5THZZllxcxOg6uK6EzjiWifzv//DdmrR35mVuf6tXlmUyTYqqqthuAwxDBm0YBCBoGjw9CURXSrHbRUyT/P4wTLiujq5DWY4YhsHbt2/58MMbHh4KXr8OOZ8nlFJM04TnWVRVh67r6LqO7+u8fZsQxzGGAUVREwTeO5XL3okX+cU/VCpNe7quw3VdbNtgmmQnBAGkqYSq5+czV1e7dVeM40gQuOuEdV2P61r0vXzBsnSaRnZkVVVomkbXdWiaxmazwTDk44+jQinFOI64rkXXCbLUdZ0ggKendwPqf6Uv8Oo7gxrHkf3eJk0FHBiGhmVJ2Hp6EmBR1xPavMCTJMGyLDRNIwgC6rpmHEeUUmy3EXXdst87VBV4HhTFhOPo1PVAFJn0Pei63B9kxyoFeS45sW1Hmqbh/fcD2lZ28+Njxe2tT5Iovv+n+lc2Zl/Jg3e/lisAwzC4ufFmiK0wTY2qahnHEd/3sSxBba7rMk0Tr14FVJUMcF0LPO86uWffy78fH1s8z1mfVVWyC+PYommgrjtc10bXwbbh+bnC932qqsLzPDRNI0kSwjDEtk0sS+6tafJf3yt8X+N//ZMvPzx+qQ/8xt9RCgR1WZZBVTW4rouuQ123dF3H9XXE+dxydeXQdTIxaTphWfoKApJEQMfpNLLdSsh8fq4YxxHLstjvXepaQmieK6JIo65hGGRBLGiwaWQyHcdhGAa2W4tpetl1SVLiui5ZlrHb7VBKYRgamw0cjyN3/8b8UsdP/7IedPG3KrXdwjQp2ralLGvC0GW3g+0WqqqawxlomsbxOFCWE30vNVPT9HSdoq5hszE4HgeCwJjBwIRpmrx+HXFx4ZIkHY4jfGDXdYyj1FKGIbTU+TzO7MbIxYVLHGsMw0Cej+i6TFLfw/vvB2y3Bo7jEEl5R5YVvH3bSH77lUe1/Rup+rLG8AtfGX/p7yk1jpAkFWHoM00CsR1HcsfjY0UQ+KRpNoceHcOQHVUUijjWqCqYJil6o8jANOGTTxLeey+maaDrJrquw/Nc2rbDcWyKouT6OkDTIMvkPkmi2Gw0jsduDXv7vUNZQlEUbLchj49HXr8+rCVA27YEQYBpmozjOIdUeHrqmaYJy7IA2G71L7w++8Ju/kt/pFTfQ12P9H2PruvEsY1SMlF3dxWvXvlkGWw28uGVUvi+jWHA8SiDl+cVjiM5KAyNleuzrIVOGpkmgeS2bWOazPBdBvPyUn738VFyl6ZpuK5J3yssS8P3hfRdCuhpUniexjRBUXQz+2GsTMeSv2ybmd3vsW2ZsGGQ+PlFhcfPPQxef7tVv/zHStU1pGlNFBlEkQtInkjTjrKE/d7n/r7G8+D+vp4LXpthgKoaiaKQYVDouo6maWy3BgB13VPXik8+OdO2LUmSsNtZTJNwgAtpOwwDYejQNHA6DTPMt+j7nr5XpGmK5wlQUUrAjiwkYebbVhFFNk3ToJSE7+MxZxwnum7g/v5MVUEUWXRdTxDAdmuQ5znv/231hYTGz3WyXn93VI5j07ZwOiV4nkdZKrKsZr+3CUPwfZtxhDzvKYqC47HB9z0MQxJ/FMlAx7Hcs65r+r7n8bECIAyteSJCuk6K2rKUwfZ9naIYaBrwfY++l/DbdR1RFOA4cH3tsdlInfX01OD7EpYNQ547DLKDhmGgaRS+73M+SyE+DAOapnE4mDNDUtP3cHtr0XWQJAPvvy9F9eavJ+qD3/18J+1z2a7X324VgOMI7XM6nQHQdZ3NZoNlCYL63vdSXr3aUlUSMmzboGl6qqpis9lgmhpJkq/E636vkabQdVIUN00/k7fQNBJa27YlDP0VtpumCcjAWpZFGOqkac9mYzEMzEVuz25nUZbQNO2aj2zbRinZdZeX8VqTLXVf0wwYhuxw09RwHAmhris5tW0VYaiRJBLSlVJ4nkPTdDz8e+dnHuuf6Qa7X8vV9XWIZcFHHyVzYbrFdfWVfTif1YzIRnY7n7aVAQCJ/a4Lb9/mRFFEXdd4nkdVCejoup793sKy4HhU6LrIH6dTwqtXMVk24Lom4whFUc7PD9E0Zgguz7ZtG8PQqKqGvu85HCK6DsqyxDRNHMdZ0eMCfJoG+n7g6srk6UlykYANH5CclSQ1tm0TBAZv30qxHscBXSclwgI3TFNy3c/K6v/Uv3z567WKY3fl4ZqmIQhc6rrjcLDpe3h4SLm93a4F7MIqZJmiLEssS0Ka7/szoRry9JQTx4KTpwnqull3y7ID0jTl9es9b9+m2LaNZVl0XUcY+tR1y/W1gIqylHukqYSxzSZkHBXDMNC27TyJBpZlcDolXF7GaJrsEAmJA77vEYbyzn3fs9lImJ8m+bfr2uu7Sn6THRVFPmEoIGgYhIGxLA3DgP/9T3+6SfuJc1b0187qm7+j1OWly/lcs9sJlHYchywrVz2p72G/3zIM8nt5Ln+ezwNxrKGUwjRN4jjgcNB4770Qz4M4juYBG5gmNSNEk67r6Pue3c7A9/05pAXYto1tm/PPQRg6HI8jeS7vUNcdnucRxyF9/8L5tW3LdmvTdR2GARcXMVXVUxQdti1j+eqVx/Pzcf3sSikeHzMA0jRlu7Vpmo7n5xOmCRcXLlHkYZomeV5xOo0YhnCURVHg+/JOr74zqJvf7H7ifPZjz/B7vz0ppdScrF2Uku3dNPIhNE2jqiouLnzGUVZaWUrN07YdFxf2al4ZRzgeG4Zh4OYm5OGhJAwDxlF4vDR9get5nrPbCdooipKLi4Dz+QWGT9PEdmtTlhNBoK9C4kIPCZID3xdC+HAwub+v5h1lEQQ6SdLOSHSYw6KEsK57uUfbdrNtwMJx5BllKWHQ9405Cgzouo5t63TdRBjKwjVNuL8v8TyPpmnWksVxZPw++ZMfb6f9hTvrw99X6hf+rlJZlqFpGp7nkqYVVdXx9JSTpikguSeKfE6nBtuWiYoim74fmKaJuoaHh448Z4buAufrGrbbYKaREspSapv9XuqbwyGmKEpME3zfp2nkd7MsI45Ntlt7DrM6x2PFOC6c4Uhd9+i6TPLjY8luZ/LxxwkAlmWRpum8++p5UGWH6jo8PCSM40RZ1ozjRBjKLpSwquj7kcPBmxeMLEDPM2fKC8JQ5/4+pSwVaarYbAKqShbhQoVlWU/X9T821P+Rk/X6u6MaR6mPvvWtLbouRSSI4HdzExGGIaapMY4yQI7j8OmnCZqmEUWsVX8Uwc2NvSZw4flcum6kbUf6njnW27RtS9+/cHSO49A0I0GgMU2KcYT9fr8O0jAMdB3Ytk3XQZoKEnVdi6YZub2VcFmWsNvFXF0Jcbvb7ajrnutr2bmbjYZl6bQt3N7GGIbOxYXH4aBTliK1TJP8XF3XGIY8p+tk8ppmxLYtzueGuoY43hIEkqvO52z+2W7O5xVKKW5vLTQNfu73lFpQ9f/r+qHbz/qr9+rDD28YBkE8mqZxdeVyd1dwcRFi27K6hmHAcSzOZwESDw9iD3McDaUkPrvuwihIQnYcG8+TuibLFK6rkeeyC7tOVNokEUjteQ6nk8j1SskOCYIAXRdEeDjEKyNSVeJyenqS+s5xnJmyknDrui5RZFJVijzP2W43lGU112cOeV6x3/v0vYTMtoXHxwTf99ls7DXcPzw88OrVDUVRYds24zhS1zWHQzwvnhc5x/MEUCyFN8i96/olvC6k8v19MpcvOn3/w0niH/hC+KsntdvtZugrDPM4KrZbjTyXAZYQJ1SNhBjxN3zwQcgwvEB1WTUuZSmUU1EU7HbbFY3VdU0cb6iqBt93KQqB63kuyO2zxpcoivB9g2GQiX96+qym5dP3gmIOB5OyhCQRm5llQV1PxLHO42OzcodRZK8KdJIUKKUIw5BhGFZRU9O0dZJlMQitFcfCzJ9O9fw9bd79gnYXrWwcX+ist28rdjt//nvLdisLqSwlFwpQkXquqiRvRpF8/7NKtQbwwe8q5TiQpsJzaZo8XOCo1AwgyEoEQgPL0lY+7XxOuLqKSdMa3xcXkePA8VgzTRPX18G6A85ncRgdjx2bjXCFCwgYBlkMS6gcR7i/zzFNk7Zt8TyP16+FQioKIV89z8OyjHWVlqXcbwm/4ziuueLy0uajj8SGJpKIQ12rVb8KQ4u2lR0kphsHTRP+b7+3yHN5pmVZc8h2sW1517Zd0GdDXYvzStd1HMdhuzXWiWzbkTA0SFPR1dq2xzAM0jTl1asdZTlhmjrjqKjrGsdx1l2m/ZV/oFSWsdq08lyI1ft7QTq6rs+eBYHowj4M+L6JbcPp1BEENlUlrECWTUSRzt1dShxvGQZRgPu+ZxxHwtADpPa5vAxnmkaK4jiGLBPpQrg84Qo9j3kXy4TI7pYdGwQGeS6DWZby/U8/TbBtmzj2ybKGsizZ7/fzhLtkmTwvyzJev96QptOsWcV0nZhwltJCPBpwPqdcX285nSo2G5++V+tOdBydthXH1cWFT1lKydE0DTc3AooELcoY6LrOMAwcDj739xJql5C6eBkXt1YQyOe2bdAXo6Ss4oq6btcJCQKDYRjYbAzGcVFoayzLpK7HWSey6Hvh7N68STEMna4Tri7LcnRdRylFENhEkYemycDHcbjunu02IgzhdJrWWmgphA1DVm2ajmgavHmT8NFHKboutU6evyT+/V5W99VVjO/7KAW+73I4HCjLcg1pcRyhlMJxnBnF6ViWhW0LMXt5abHbCdAR24Di8nJLnvdcXvqcz1I0TtOEbctkmqbObuevoXu71TkcfO7uCqZJFGZRqxtcVxaSbcN778WM40iWZRiGweOj3PvqKp69IRIeTRP0slQUxTCHPmf2IahVCGya5geS7n7vMU0KxzE4nxsBJJaEy/1+S98PZFm91jGyKwUxDQNkWUWeN2voEGGx43zu15eWUKtTlt2cv8A0DYZhJIoibm+3WBYcDvsZTWmczx2nk8T2cZQoIQ0JPZoGFxfhCsuXLOB5Ds/PFedzRRAEPD1l1LWi70VLMwyDIBB4Lova4ulJgIXjaBwODsMgu2ah0IZBFnRdy9d3u5CybHFdjdOp5fXreJVXJMf3OI6DrutEkcyBUswLRyPLJpSSn9Vlpk08T1ZKkkiCD8OQtpU/01TY5b6XxBqGGk0zcHUl3ogXWM3skHWpqgrXdbm8NGYxUQrNqyufw8FlGCR+L+Kd48ifu91uDpkTrmtTVR1ZVmNZsNsJrVUUE3kOux3c3QmYsSwLz5OFs4Tn8znFdS2mSdgNIWtllSdJQt+PRJE/85Adt7cbgkCjKCRP931P2/Zst3A+J2ga3Nz4aJpGWfZzflQURTtrW6IMbLfbWcHuOR4z4tjh8VGose9//8zpVJGm/ZyrRYv7xjdC7u8lH55OCXUNd3fZLP0IwNEOf7NUC+sgtY7krDRlVVOXLg2ZWBddXxjnabV3Lbxd3/c0TUMcx0SRwfEoqElW3UCWZWw2G+LY4nwWVsC2rRni9mRZNsvoIUEgFb5hvDAiS/ja7eDP/uzFmqaU4vra4/m5m8OnQd/3DMMw+wJ9np6eME0TTdP45jdjigKyTJiFKNLpe1nBS+gRH7wiy7LZpxjT98PMZBjc3yfz38MZlhtomoyLMBmSb9++fSF8FyI7z8Woo2lSpvR9z8VFyPlcz5KRLOZpmnAcWYjaYlNumn71zJ1OJ25uLgHW9plFUZWXkUnbbGQwxxEeH4/s93tsW3ZQmopJMgjg7dty5vVi6loMKotnT9fh+VlI1CU0+v4LU11VkqzP5zOO43A4hOS5wF0pxGVAl8vztJmz9DidxEL25k1BEAT4vsbxWBFF/uqL3++1Wf4QdTkIRErx/UUsbZmmadbHBmzbZBgkVzXNsOZWXWeWbsY53ztUVTfbDTxc18B1hRsVf6KzSi+uK97EIPDRdXn2w0M1q+sueT4DE8PQGQaF686zp2lcXFzQNBLrP/nkiK7LRNV1MwuELuM4znWCmgFDPPsbsjlceLRtP/Nr2oy+cm5uXA4Hjb4fqev2MywFc64oSJKONFWzu0m6R0zTxHVdDEPYk9Oppm3VHIYbDEPD8zSSRMwsAqV7qkpCeRRpFMU452XZBV3XkSSyQNpWEQQWx2NOlhXzTh7nWs6b84hJ28rAdd1EURQ4juSoMISuU+vC6bppLTeapqHrFEky4jgmwzBg26xCZ9PA7a1ocraQ+Fxe+nPBrdjvLbZbV+imzUabfd6KoijQdY3NxqIoGl6/PpDn1Sp9C3qCKDJ4fj6jaRrPz+lniladp6eMqoI4lrpFaKBOaoa7isfHgSgy2G4lmb56FVOWzDkkpKoqTFOjrru5PnN49WqLpmmzaRMuLz0cR4jc3c7j6em4vuP1tWha2+2WPJe6pyjAsowZaUqxfH3tEMfw+Jiy2Whz2PJo23ZGlwKSzueUNE1xXbBtsQbYtr7SW+M48sknCXGsURTFHLrElp1l2Spquq4xRzB3DrkTRTFwPCYkiXCIadpxPIr14fY2mEsIyX9rdfxLf6RUUYjOdHkZkiQtUeTMiGrAssw11CxajoQRk/N5XF9sAQy7nb+WBOKulXadZcX7vkWaVtzc+PNASjhI08U2JtJ/HFsoBff36YzCHJqmYZomwjCc2fF+VYa3W5MkEfV5yVXDMHBxIS7d+fVoGoH+oiZL7ghDef5CChyPJZtNQBiymkvzfFhFUssyOZ3OxHFMWZa8ehXy8CAOYc/z8H2Dh4eE29uYtoWm6fA8e65XpUYUEfOFohJ0LX+vKvn5PBf79g/QTe/99qQ8TyPP+1WgE1len7sw1JwIhR5ZFFnPg48/lmTfdWrt/kiShIuLA1mWc3sbUVXC6d3cxNS18ILCM76Ic54nAzkMwp6/fSsTKsWyTHKSlPK+7wWzfCE5482bZGYWIjYbE8OA+/uCOA5n4CBq89L8YNs2fd/jeR5ZlnF1teV0KmeNzJpRsZhKNxuDspR8soAe8XgkXFzEFIV0W3adjIfY7xr2e5eqkp/b72NcVxbMxx9L4f76tc+bNxXTNHE4hLMFrub62qMsf1Bd/qFE7vW3W3VxYfPxx0LNyPaVVhmxNBe4rsswDFxfuzw8CL8nu47ZFqZxPhc4joPrWivddDxWbLc+VSXU1uKB2O8NkkTNZpiXnxeXVMnNTUCWiXVZdkU2W6xNsixnv49WC/WnnyazsBnSNOJxf3jIuLraoGmQJC23tw53d/Le0/RS4I6jLELDWDzwNZuNmG+macIw9BURGoZBXQuYEZpKJsX3fS4v7bWrsusk5IHoc9/85pb7e6lFw9CmbcX+JjRagW3bP9Sz8SNFL/dXHtXFxcUqyi3EbpIk3N7ueHrKORwimuZlGxuGwPrvfe8tH3xwQ1VJK87iim0aOJ/Pcy2i43mQJB2WZeE4Ur9EkbUW0GHoE8fw/Cwf1vd1hmGRRl6oLN+3aZqBvu8JAo9xlETvuhpFIQtjATFSZE6z1yOY/YUG9/fC9KephOyFXpP7QFGM+L6B5wlhLbltWkGI9IcpLi+liBZ7tlBISdICzKDE4fY2pCggzwt0Xef2VqLHjxIif6Se1fzXK+37f6prCyEq6rA228BEjxKI3X8GlS3o5oY8l0Q8lyFzp2GBaZr0fc/5nJDnQrhO08T5XHJxYVHXiq6bCAIfzxOzzOEgWlBRDKRpObMZxsyE27guM1vt0TQdbdtSVRVVNVKW5QyH09nvLjWk7/trC1CaCqMxjmr2lKjZONNiGHB3dyYM5et3dxVBoLHdujiOQxx7zAgeXdf45JNqNd90XUdVKaLImZVpcfem6UTX9VxdhbP/Uf2FivGPLevf/lavxnEkihzqesRxDLpOGOKlvgBmuf1Fspa6TAq9um6wLIu2bbm99TmdFh5Q53xOef16uxLBDw/CpARBgKaJ1CCrmzVESn0npGwQQJL0lGXJbhdTltXqbNrv/dVSIMy/7Ib9XuPTTyWnWZaE8PNZdvMwCPQW86m1cppZJnJHUfT0fc9+768O3cfHdmbahWfsOmZILwtFhFoBFVnWcnHhkKYTb/618WPNw0/ssvm531OqqiRUSfErjMF2a/P0VHB9HfL8XHN15VFVUFXtHJqCub5Y6jl4eCjm5jkhYpcicRzVGtocB56f61lM1ElTETiXGL+gvsUDcn29o20FvLx9K/1dWSbhCiCOPaZJNDEhdh1cV6Np1ErcfvjhjtNJ7h2GPlXVEIYuWVZxOPgUxThbD2TXAytRvKgLi3NqYdilTpTnOI5GXf/kXSg/tRXt6jcatds5ZNlAGJorKmuaht3OpW2XLvh+RjpCej495VxeRiRJQxRJu8/xWLDbhZzPBVEkMdOy4HyWMytAEr4UlQZl2a4OJSmUDYpCWArD0EnTjJubzbxYRNJYitRhGNjtIvJcdjvIbhP/vRhy7u7On+EoRzzPJQzh6amZuU/xMmZZtxpbF5/7QjjbtsEwCHBoW1G5bdvm+tr6qXuVf2aX6F/++0rJJEnyrSoRJIXYlGTq+xZdJ6v9fK7mVWYTRfDmjfzMxYXFRx+d125GOadCm3WrmosLj/NZtLOuU7MPQpiCpTkhihzKsl9lGYA4Nueww9pDLMYWKcLD0FgprbaVRSCuX52yrFYuse97osinqgRJns/LCTYiNEoXypY0TWeUKnLI5aXH83OzaoOf/quf3uj5udinf/mPpWPk6Unif5IUvP9+SJqKRLEgSduWvJAkFXHs0zQCl/v+Bbm1LatAB5Kg5XvCNhgGPD2p2e+3AB9h3S3LWOX052epa8TTCHd3+SxDBKv7Vu4riK8opEl8IV2X0LrbidD58HAmiiK6ruPmxl89KEFgzfodlKUYXZUS/tTz3PUZn0en5OfamvLeb09KQp5BnktCXpqzP2tpLsuSzSbkdEpm352P677UJGUpk1nXUowuRPLiUxgGGYAsm6jrmv0+4HgsOBzEzHN/L+1Ci1IQRUIoPz8LUfvmzRO6rnN9fZhbTyXnSDuQuy6WIDBWqJ9lEqIti1VvWkJ9WU6cz2cuLw+AfEbZ6Qb/8x9/fj1bX0gf0TJpfd8Thu6aH3xfEJthGGuN9fwsSXwcpZAWL4bi+fmZ/X6PruszMdtyOATkeT9bzPrZhLOjLKVoXgjZaRKJ4nQ68fr1AcuSfKfrOufzmffe2895pCaKPBwH8nyakZzk0JubkDwXXUuUXmHcXfflqIdPPz3yC79w4O5OdpGgYvHfT9Pnf8TQF9ZMd/UbjdpuRQZ4eKhm+O3N/cPdipSyLOP997eMI5zP3bqq+75fm+kuLvx1hy6QuG1lwNp2YrvV5w5IxX4vH0kpePtWlOzt1uXhQSxqfd/zjW9IiO77ic1G5/m54fLS5XTqubiw1ibyYZAdE8/9R8LMmPT9uDq0ttvt6nHf7Xy67sd32P6k1xfepvr6u6NaTCdNs8j0+io3RJGF6wqt1PfM9ZI0iKdpznYrTQrL15cmiO3W5XgsaNuWq6vDLOP0q74kjXVyFBC85MHbW4ePP5b7iggou35RbTVNI4417u7KuRbzSVOZvLIUoFOWi7G0WwXEsvziz8r40rrNlxNklILj8cirV4f1WATTlB2T5xO+r5PnPYeDWL/O5wTDMNhsIoZhXLs0tltr3lmsNdrzsyjbck9Rt4W81Wcm5AWJ1nWL4zgrk7H0MS8uX8mfPZ5n0bbjeqCKlCbe7NUQ0+oXtZP+/PWln+Xw4e8rlSQyQHVdz40A1mxFlhDXdf0s95ukqdRlZSmtPldX+zUkLpY1zxPTpijHclLNe+8Fs2AquXMxhcqgO6sBaJFFhkHAzCITXV+Hs/dBmPoFVb55I7LK0qZ0+k/hlzaGX8mhJT//B0qlabNyi0tH4vEo0FfafWRGgsBeqaCyHFe/uFILdA6wLI00FWu1uGuFSLVtGVzf9/E8a0Wjcp6FPnNzFlUFed4xTRP7vYvrwsODyDHLwsiyksMhIE2lFnv77+z/vw8t+fNX+Ksntd/vVmtY2/azVGHjujLgi4zuOA6bjRTJYfiieS1HNeS5eBjKUsBM0zR861s7zmcpxstSjKnzQWozky8F/HYr/vqlt3ix4rVtSxQFNE1HGNqUZf+VTNJyfWmHlvywq/gve+2TP9E0yQ8DRVGsO0aI4A7ft9ak//QkHpCPPz7PTW/Mztd+1paa+SxcjziOOZ/FmZTn3Xw24dLoPc4yy4jvC7sh8jucTvIOeZ6vB0q6rs3/+Wea9lVOFLwjp6It1y/+oTzw8moAAAHYSURBVFJl+cJOLBrZZmOQ52IWTVOxQ4vxJVhdUkqJoadtWyzL4nDw1zZWOWjEnk+gfhH6kkSOrNM0+V3fd9fifQE9bQvf++df/jlNP+x6J17is9f1t1slsNtc/eJRFK2+jEWUXPyMy0Eii31rYfhBmtsk1y07zqTr5J6CEB36fmS3M+beXykZyrKmbVvy/7x7p8bnnXqZz17f/B2lmqabpXRhuhf6yLZt8jxns9ng+8I6LKzC6TSujLznuSuh7Hketm3MLMo4d+2LMzjPO4ZhmPWp7Tt7Vu47+VKfvV59Z1B1Xa/Iz/etGVio9biE5aihpVuy7wWG17XkvcPB5u4un21rW5qmY7ezubtL567MkGmSXPlV56Ufdb2zL/bZ6+Y3O+W6FmXZrAJfFFkUxbDmryhyZxVYWAyhgnyaZlxNKLe3Huezms0uL4eN/CRN2F/l9c6/4GevX/ojpapKitMX1gPyXDjA5WyLxUMoNmWXzcbg8bFkuw3WBkA5zvXLPzPwZ7m+Ni/62Wv5/5Asx4W7rs3pJK2rV1fB3GB9nifKo22Fxlr8hVXV8vgf3K/dZ//avfBnr8tfr9UC1a+u/PXM9udnYc+zbPH+vfx/Sx4eHuj/2+3X8nP/X8+jjAy2QdiEAAAAAElFTkSuQmCC"},null),O("linearGradient",{id:"_Linear11",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-118.47,-106.79,210.785,-180.125,69.2121,1372.7)"},[O("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),O("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),O("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image15",width:"38px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGaElEQVRogcVZSWLjOAwsblIu+oD+/zZ/YC4di8sc7IKLsJzJdCdpXGxLXIACUADpgL8oIYR9jKG/wd/hL+m080uMEb33pwHpR9UBkFLaU7ptW0rBGAOKGgAsy/KjiO3Aw105Z4wx0FpDSgmtNVPqer0if7c2Oee91oqUEsYY5rZaK5ZlQYwRx3HY+J+IsSmOQghPqKhwTO8dIYRvU8yU0kzzEmPEGGNSiGO/Ovh3ABtwQ4UI5ZxRSjEFKBprYwyUUtB7v6H3hQqhlGIb1loRY0RKCcdxIKWE3rshUkqZYsvLHykWQthjjJZZGtwqpRS01ia3MaZCCKi1cj2MMZBS+n1XhhB2brKuK2qtj/hIyeJHkVEypft678g5I+c8uf53FNsBbLoJF6RwU800kirjinM18HXcpxULIewANi5KyDWT1nWd3KquXZbF5tGVmq2qXO/9UzG2f/SSyK3rivf395e1T5/TmBAClmXB+/u7AnBD+7NK5fwoEiE822OM7d7lnBFjtIwlmkSMga97hBBelqRdraTf1SIvnsm1/gEwVBgCfMfPpwQ6UWgj0XGQxgrfeUWJFIO7tYacs20WYzRDPbqkDcZs790U25dl2ai9xoKK+V+oQFEhspzvWZ4kC2DKTK6tCRBjjDtd4RVZlgVvb2/T4lqMj+Ow9yRaRU/Xi/E5nIkUjWLMpZSQxhibn8C6dhyHlRZa6Ru73jtKKbYgDeBmWor8PN2LLmf8JdyLrsKrlV7hp+XeRa01G+/jjaj4hGE49N6ngm/vVakQgqU1N9c2uPc+pTdLjyqpn7qOFz6PMU48RjBsVcaHr/hqPZVZ13XKMn3v+U4zmiWKhur6mpm994diDDwN2BDCxD80wD9TZWqttimfE1lPQYyndV2n32OMW4xp6jI7vGi80CqSr48PRZGGkttSShO/sV9b19XHcjSkmEWKmP5mcKsiipaXs/hjCFCUO1ncASDFGLdXmxJBjRFFk4VbfxNVpRi6h/F2tgfBoRdiaw3LshifeCGPsW3hQsCj/lER5T1SCN3nWd76rhehk0IIGxVQC7iAh3xZlmksUVQC1eMaS5gqRve/OoXXWm/Br0jwANFas3aFStFNuomlt7iZ2aeErUox8Espxp9U1GomgJ0WTec6l23+HcvIWWPIHoytkM7lfYWi7ue21hBZ/9TiUsqUPWcMT746U6rWOvVnOvdVJaAYjeScNwYorSeFeDL0LO838W5WQ/S7ZZ4klc/4eL1eLViZsrVW8z39f9a2eKR8u8Mg93NpZGsNx3FMBxTzEoDt7KCqCcFNtTNVK1+dK1trljxKEWyVfDfLLM05I7Fz1c191tVarbPwLlXOMjecKKWbMtEo/s6s945IjWutBq1apxbpUR94JAkX00Kv8aSuZDZynWVZTCltNs2VHikN/DP+okvOEsCHA68BPFLa3XoujZqFKlqctRx5BfQsSI7iHACWeeoySmvt6eDDsmaIeSF18PbPu5ZjtCroe7+mP01pS+T3tZM4G7uzWGCvpNZpdhExZqx2ptpRKPX47oJoszMG7j2/xoIqx8DU1oYLcxwTxbfkPl5jjFN4MAP53p8nIsmV15G+9yICXIyKcNHjOKY5KjqXY6kc6yzXbK0ZkjFGhFLKzoH2UG75xIIP6xzT3X8HHg3B2TGOzabe+/PiblOfn8UEn3MToqnI6R0GjfOJoOXNcx7r552CLmmMsem1NjdX7uGiSqa6IUWPa2eZzoOtntBVeu8XAP8AuF1D5ZytmKoVFH/0OpNX79St/lMo5uLnJdzvUzXwpk5SiFTpwlv9qnfXYm8F+jHPEPJiaUR21gzTf8fUytba1E2Qw/TcSdECzaS6U8sTShPS/MKOk27T9FXxqKirSBetNby9veHXr182XrL0Q4UokVdInnO0vj1Zc+ciJUV2HloVXON4+axSAJDJ2F4Bn+p6tD9rhbkGkZee//JR0rySlHPelLfOWhUqqH966gFFKYRz7p+fRuhJsRDCaWtNJf1JiJvqkf6E4y6999Ns+6xkbVtIE2enZ0XKX4VzPP5HDP2XGI8B81W5lhTlOZYiV3YuY4w/QshLVJeR/TVOBA0TF49fhpJKptXaT/mSoZlLRa/X67coRAkAdt+OnP2ZLvKtClEy8Bz4L5T6EYUoU2utqGm9+2mlAMz/vunfxHda+HGFKP8C6wW6ett+DK8AAAAASUVORK5CYII="},null)])])}});const tVe=["info","success","warning","error","403","404","500",null],nVe=xe({name:"Result",components:{IconInfo:lve,IconCheck:ig,IconExclamation:zH,IconClose:rs,ResultForbidden:Jje,ResultNotFound:Qje,ResultServerError:eVe},props:{status:{type:String,default:"info",validator:e=>tVe.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Me("result")}}});function rVe(e,t,n,r,i,a){const s=Ee("icon-info"),l=Ee("icon-check"),c=Ee("icon-exclamation"),d=Ee("icon-close"),h=Ee("result-forbidden"),p=Ee("result-not-found"),v=Ee("result-server-error");return z(),X("div",{class:fe(e.prefixCls)},[I("div",{class:fe([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[I("div",{class:fe(`${e.prefixCls}-icon-tip`)},[mt(e.$slots,"icon",{},()=>[e.status==="info"?(z(),Ze(s,{key:0})):e.status==="success"?(z(),Ze(l,{key:1})):e.status==="warning"?(z(),Ze(c,{key:2})):e.status==="error"?(z(),Ze(d,{key:3})):e.status==="403"?(z(),Ze(h,{key:4})):e.status==="404"?(z(),Ze(p,{key:5})):e.status==="500"?(z(),Ze(v,{key:6})):Ae("v-if",!0)])],2)],2),e.title||e.$slots.title?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)):Ae("v-if",!0),e.subtitle||e.$slots.subtitle?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-subtitle`)},[mt(e.$slots,"subtitle",{},()=>[He(je(e.subtitle),1)])],2)):Ae("v-if",!0),e.$slots.extra?(z(),X("div",{key:2,class:fe(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra")],2)):Ae("v-if",!0),e.$slots.default?(z(),X("div",{key:3,class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2)):Ae("v-if",!0)],2)}var pM=Ue(nVe,[["render",rVe]]);const iVe=Object.assign(pM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+pM.name,pM)}}),oVe=xe({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Me("skeleton"),n=F(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function sVe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.cls)},[e.loading?mt(e.$slots,"default",{key:0}):mt(e.$slots,"content",{key:1})],2)}var vM=Ue(oVe,[["render",sVe]]);const aVe=xe({name:"SkeletonLine",props:{rows:{type:Number,default:1},widths:{type:Array,default:()=>[]},lineHeight:{type:Number,default:20},lineSpacing:{type:Number,default:15}},setup(e){const t=Me("skeleton-line"),n=[];for(let r=0;r0&&(i.marginTop=`${e.lineSpacing}px`),n.push(i)}return{prefixCls:t,lines:n}}});function lVe(e,t,n,r,i,a){return z(!0),X(Pt,null,cn(e.lines,(s,l)=>(z(),X("ul",{key:l,class:fe(e.prefixCls)},[I("li",{class:fe(`${e.prefixCls}-row`),style:qe(s)},null,6)],2))),128)}var XC=Ue(aVe,[["render",lVe]]);const uVe=xe({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Me("skeleton-shape"),n=F(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function cVe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.cls)},null,2)}var ZC=Ue(uVe,[["render",cVe]]);const dVe=Object.assign(vM,{Line:XC,Shape:ZC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+vM.name,vM),e.component(n+XC.name,XC),e.component(n+ZC.name,ZC)}}),fVe=xe({name:"SliderButton",components:{Tooltip:Qc},inheritAttrs:!1,props:{direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},formatTooltip:{type:Function},value:[String,Number],tooltipPosition:{type:String},showTooltip:{type:Boolean,default:!0}},emits:["movestart","moving","moveend"],setup(e,{emit:t}){const n=Me("slider-btn"),r=ue(!1),i=p=>{e.disabled||(p.preventDefault(),r.value=!0,Mi(window,"mousemove",a),Mi(window,"touchmove",a),Mi(window,"mouseup",s),Mi(window,"contextmenu",s),Mi(window,"touchend",s),t("movestart"))},a=p=>{let v,g;p.type.startsWith("touch")?(g=p.touches[0].clientY,v=p.touches[0].clientX):(g=p.clientY,v=p.clientX),t("moving",v,g)},s=()=>{r.value=!1,no(window,"mousemove",a),no(window,"mouseup",s),no(window,"touchend",s),t("moveend")},l=F(()=>[n]),c=F(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),d=F(()=>{var p,v;return(v=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?v:`${e.value}`}),h=F(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:d,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:i}}}),hVe=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function pVe(e,t,n,r,i,a){const s=Ee("tooltip");return z(),Ze(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:ce(()=>[I("div",Ft(e.$attrs,{tabindex:"0",role:"slider","aria-disabled":e.disabled,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":e.value,"aria-valuetext":e.tooltipContent,class:e.cls,onMousedown:t[0]||(t[0]=(...l)=>e.handleMouseDown&&e.handleMouseDown(...l)),onTouchstart:t[1]||(t[1]=(...l)=>e.handleMouseDown&&e.handleMouseDown(...l)),onContextmenu:t[2]||(t[2]=fs(()=>{},["prevent"])),onClick:t[3]||(t[3]=fs(()=>{},["stop"]))}),null,16,hVe)]),_:1},8,["popup-visible","position","content"])}var vVe=Ue(fVe,[["render",pVe]]);const r0=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${Yl.round(r*100,2)}%`},tA=(e,t)=>t==="vertical"?{bottom:e}:{left:e},mVe=xe({name:"SliderDots",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Me("slider"),getStyle:r=>tA(r0(r,[e.min,e.max]),e.direction)}}});function gVe(e,t,n,r,i,a){return z(),X("div",{class:fe(`${e.prefixCls}-dots`)},[(z(!0),X(Pt,null,cn(e.data,(s,l)=>(z(),X("div",{key:l,class:fe(`${e.prefixCls}-dot-wrapper`),style:qe(e.getStyle(s.key))},[I("div",{class:fe([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var yVe=Ue(mVe,[["render",gVe]]);const bVe=xe({name:"SliderMarks",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Me("slider"),getStyle:r=>tA(r0(r,[e.min,e.max]),e.direction)}}});function _Ve(e,t,n,r,i,a){return z(),X("div",{class:fe(`${e.prefixCls}-marks`)},[(z(!0),X(Pt,null,cn(e.data,(s,l)=>(z(),X("div",{key:l,"aria-hidden":"true",class:fe(`${e.prefixCls}-mark`),style:qe(e.getStyle(s.key))},je(s.content),7))),128))],2)}var SVe=Ue(bVe,[["render",_Ve]]);const kVe=xe({name:"SliderTicks",props:{value:{type:Array,required:!0},step:{type:Number,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){const t=Me("slider"),n=F(()=>{const i=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=Yl.plus(s*e.step,e.min);l<=e.min||l>=e.max||i.push({key:l,isActive:l>=e.value[0]&&l<=e.value[1]})}return i});return{prefixCls:t,steps:n,getStyle:i=>tA(r0(i,[e.min,e.max]),e.direction)}}});function wVe(e,t,n,r,i,a){return z(),X("div",{class:fe(`${e.prefixCls}-ticks`)},[(z(!0),X(Pt,null,cn(e.steps,(s,l)=>(z(),X("div",{key:l,class:fe([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:qe(e.getStyle(s.key))},null,6))),128))],2)}var xVe=Ue(kVe,[["render",wVe]]);const CVe=xe({name:"SliderInput",components:{InputNumber:iS},props:{modelValue:{type:Array,required:!0},min:{type:Number},max:{type:Number},step:{type:Number},disabled:{type:Boolean},range:{type:Boolean}},emits:["startChange","endChange"],setup(e,{emit:t}){return{prefixCls:Me("slider")}}});function EVe(e,t,n,r,i,a){const s=Ee("input-number");return z(),X("div",{class:fe(`${e.prefixCls}-input`)},[e.range?(z(),X(Pt,{key:0},[O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[0],"hide-button":"",onChange:t[0]||(t[0]=l=>e.$emit("startChange",l))},null,8,["min","max","step","disabled","model-value"]),I("div",{class:fe(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Ae("v-if",!0),O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[1],"hide-button":"",onChange:t[1]||(t[1]=l=>e.$emit("endChange",l))},null,8,["min","max","step","disabled","model-value"])],2)}var TVe=Ue(CVe,[["render",EVe]]);const AVe=xe({name:"Slider",components:{SliderButton:vVe,SliderDots:yVe,SliderMarks:SVe,SliderTicks:xVe,SliderInput:TVe},props:{modelValue:{type:[Number,Array],default:void 0},defaultValue:{type:[Number,Array],default:0},step:{type:Number,default:1},min:{type:Number,default:0},marks:{type:Object},max:{type:Number,default:100},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},showTicks:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},range:{type:Boolean,default:!1},formatTooltip:{type:Function},showTooltip:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t}){const{modelValue:n}=tn(e),r=Me("slider"),{mergedDisabled:i,eventHandlers:a}=Do({disabled:Pu(e,"disabled")}),s=ue(null),l=ue(),c=e.modelValue?e.modelValue:e.defaultValue,d=ue(nr(c)?c[0]:0),h=ue(nr(c)?c[1]:c);It(n,B=>{var j,H,U,W,K;nr(B)?(d.value=(H=(j=B[0])!=null?j:e.min)!=null?H:0,h.value=(W=(U=B[1])!=null?U:e.min)!=null?W:0):h.value=(K=B??e.min)!=null?K:0});const p=()=>{var B,j;e.range?(t("update:modelValue",[d.value,h.value]),t("change",[d.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(j=(B=a.value)==null?void 0:B.onChange)==null||j.call(B)},v=B=>{B=B??e.min,d.value=B,p()},g=B=>{B=B??e.min,h.value=B,p()},y=F(()=>{var B,j,H;return e.range?nr(e.modelValue)?e.modelValue:[d.value,(B=e.modelValue)!=null?B:h.value]:wn(e.modelValue)?[d.value,h.value]:nr(e.modelValue)?[(j=e.min)!=null?j:0,e.modelValue[1]]:[(H=e.min)!=null?H:0,e.modelValue]}),S=F(()=>Object.keys(e.marks||{}).map(B=>{var j;const H=Number(B);return{key:H,content:(j=e.marks)==null?void 0:j[H],isActive:H>=y.value[0]&&H<=y.value[1]}})),k=B=>tA(r0(B,[e.min,e.max]),e.direction),w=ue(!1),x=()=>{w.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function E(B,j){if(!l.value)return 0;const{left:H,top:U,width:W,height:K}=l.value,oe=e.direction==="horizontal"?W:K,ae=oe*e.step/(e.max-e.min);let ee=e.direction==="horizontal"?B-H:U+K-j;ee<0&&(ee=0),ee>oe&&(ee=oe);const Y=Math.round(ee/ae);return Yl.plus(e.min,Yl.times(Y,e.step))}const _=(B,j)=>{h.value=E(B,j),p()},T=B=>{if(i.value)return;const{clientX:j,clientY:H}=B;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=E(j,H),p()};function D([B,j]){return B>j&&([B,j]=[j,B]),e.direction==="vertical"?{bottom:r0(B,[e.min,e.max]),top:r0(e.max+e.min-j,[e.min,e.max])}:{left:r0(B,[e.min,e.max]),right:r0(e.max+e.min-j,[e.min,e.max])}}const P=(B,j)=>{d.value=E(B,j),p()},M=()=>{w.value=!1},$=F(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),L=F(()=>[`${r}-track`,{[`${r}-track-disabled`]:i.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:$,trackCls:L,trackRef:s,computedValue:y,mergedDisabled:i,markList:S,getBtnStyle:k,getBarStyle:D,handleClick:T,handleMoveStart:x,handleEndMoving:_,handleMoveEnd:M,handleStartMoving:P,handleStartChange:v,handleEndChange:g}}});function IVe(e,t,n,r,i,a){const s=Ee("slider-ticks"),l=Ee("slider-dots"),c=Ee("slider-marks"),d=Ee("slider-button"),h=Ee("slider-input");return z(),X("div",{class:fe(e.cls)},[I("div",{ref:"trackRef",class:fe(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[I("div",{class:fe(`${e.prefixCls}-bar`),style:qe(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(z(),Ze(s,{key:0,value:e.computedValue,step:e.step,min:e.min,max:e.max,direction:e.direction},null,8,["value","step","min","max","direction"])):Ae("v-if",!0),e.marks?(z(),Ze(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Ae("v-if",!0),e.marks?(z(),Ze(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Ae("v-if",!0),e.range?(z(),Ze(d,{key:3,style:qe(e.getBtnStyle(e.computedValue[0])),value:e.computedValue[0],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleStartMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])):Ae("v-if",!0),O(d,{style:qe(e.getBtnStyle(e.computedValue[1])),value:e.computedValue[1],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleEndMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])],2),e.showInput?(z(),Ze(h,{key:0,"model-value":e.computedValue,min:e.min,max:e.max,step:e.step,range:e.range,disabled:e.disabled,onStartChange:e.handleStartChange,onEndChange:e.handleEndChange},null,8,["model-value","min","max","step","range","disabled","onStartChange","onEndChange"])):Ae("v-if",!0)],2)}var mM=Ue(AVe,[["render",IVe]]);const LVe=Object.assign(mM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+mM.name,mM)}});var gM=xe({name:"Space",props:{align:{type:String},direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:"small"},wrap:{type:Boolean},fill:{type:Boolean}},setup(e,{slots:t}){const n=Me("space"),r=F(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),i=F(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${r.value}`]:r.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function a(l){if(et(l))return l;switch(l){case"mini":return 4;case"small":return 8;case"medium":return 16;case"large":return 24;default:return 8}}const s=l=>{const c={},d=`${a(nr(e.size)?e.size[0]:e.size)}px`,h=`${a(nr(e.size)?e.size[1]:e.size)}px`;return l?e.wrap?{marginBottom:h}:{}:(e.direction==="horizontal"&&(c.marginRight=d),(e.direction==="vertical"||e.wrap)&&(c.marginBottom=h),c)};return()=>{var l;const c=yf((l=t.default)==null?void 0:l.call(t),!0).filter(d=>d.type!==ws);return O("div",{class:i.value},[c.map((d,h)=>{var p,v;const g=t.split&&h>0;return O(Pt,{key:(p=d.key)!=null?p:`item-${h}`},[g&&O("div",{class:`${n}-item-split`,style:s(!1)},[(v=t.split)==null?void 0:v.call(t)]),O("div",{class:`${n}-item`,style:s(h===c.length-1)},[d])])})])}}});const DVe=Object.assign(gM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+gM.name,gM)}});function uve(e){const t=hs(e)?parseFloat(e):e;let n="";return et(e)||String(t)===e?n=t>1?"px":"%":n="px",{size:t,unit:n,isPx:n==="px"}}function Tw({size:e,defaultSize:t,containerSize:n}){const r=uve(e??t);return r.isPx?r.size:r.size*n}function PVe(e,t){return parseFloat(e)/parseFloat(t)}const RVe=xe({name:"Split",components:{ResizeTrigger:W0e},props:{component:{type:String,default:"div"},direction:{type:String,default:"horizontal"},size:{type:[Number,String],default:void 0},defaultSize:{type:[Number,String],default:.5},min:{type:[Number,String]},max:{type:[Number,String]},disabled:{type:Boolean,default:!1}},emits:{moveStart:e=>!0,moving:e=>!0,moveEnd:e=>!0,"update:size":e=>!0},setup(e,{emit:t}){const{direction:n,size:r,defaultSize:i,min:a,max:s}=tn(e),l=ue(0),c=ue(),d=Me("split"),[h,p]=pa(i.value,Wt({value:r})),v=F(()=>uve(h.value)),g=F(()=>n.value==="horizontal"),y=F(()=>[d,{[`${d}-horizontal`]:g.value,[`${d}-vertical`]:!g.value}]),S=F(()=>{const{size:$,unit:L,isPx:B}=v.value;return{flex:`0 0 calc(${B?$:$*100}${L} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function w(){const $=()=>{var L,B;return g.value?(L=c.value)==null?void 0:L.clientWidth:((B=c.value)==null?void 0:B.clientHeight)||0};return(!c.value||$())&&await dn(),$()}function x($,L){if(!L)return;const B=v.value.isPx?`${$}px`:PVe($,L);h.value!==B&&(p(B),t("update:size",B))}function E($,L){const B=Tw({size:$,containerSize:L}),j=Tw({size:a.value,defaultSize:"0px",containerSize:L}),H=Tw({size:s.value,defaultSize:`${L}px`,containerSize:L});let U=B;return U=Math.max(U,j),U=Math.min(U,H),U}function _({startContainerSize:$,startSize:L,startPosition:B,endPosition:j}){const H=Tw({size:L,containerSize:$});return E(`${H+(j-B)}px`,$)}function T($){t("moving",$);const L=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:$.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:$.pageY});x(L,k.startContainerSize)}function D($){no(window,"mousemove",T),no(window,"mouseup",D),no(window,"contextmenu",D),document.body.style.cursor="default",t("moveEnd",$)}async function P($){t("moveStart",$),k.startPageX=$.pageX,k.startPageY=$.pageY,k.startContainerSize=await w(),k.startSize=h.value,Mi(window,"mousemove",T),Mi(window,"mouseup",D),Mi(window,"contextmenu",D),document.body.style.cursor=g.value?"col-resize":"row-resize"}function M($){const{width:L,height:B}=$.contentRect;l.value=g.value?L:B}return fn(async()=>{const $=await w(),L=E(h.value,$);x(L,$)}),{prefixCls:d,classNames:y,isHorizontal:g,wrapperRef:c,onMoveStart:P,onTriggerResize:M,firstPaneStyles:S}}});function MVe(e,t,n,r,i,a){const s=Ee("ResizeTrigger");return z(),Ze(Ca(e.component),{ref:"wrapperRef",class:fe(e.classNames)},{default:ce(()=>[I("div",{class:fe([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:qe(e.firstPaneStyles)},[mt(e.$slots,"first")],6),e.disabled?Ae("v-if",!0):(z(),Ze(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:ce(()=>[mt(e.$slots,"resize-trigger")]),icon:ce(()=>[mt(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),I("div",{class:fe([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[mt(e.$slots,"second")],2)]),_:3},8,["class"])}var yM=Ue(RVe,[["render",MVe]]);const OVe=Object.assign(yM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+yM.name,yM)}}),$Ve=xe({name:"Statistic",props:{title:String,value:{type:[Number,Object]},format:{type:String,default:"HH:mm:ss"},extra:String,start:{type:Boolean,default:!0},precision:{type:Number,default:0},separator:String,showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{type:Number,default:2e3},valueFrom:{type:Number,default:void 0},placeholder:{type:String},valueStyle:{type:Object}},setup(e){var t;const n=Me("statistic"),r=F(()=>et(e.value)?e.value:0),i=ue((t=e.valueFrom)!=null?t:e.value),a=ue(null),{value:s}=tn(e),l=F(()=>wn(e.value)),c=(h=(v=>(v=e.valueFrom)!=null?v:0)(),p=r.value)=>{var v;h!==p&&(a.value=new ng({from:{value:h},to:{value:p},duration:e.animationDuration,easing:"quartOut",onUpdate:g=>{i.value=g.value},onFinish:()=>{i.value=p}}),(v=a.value)==null||v.start())},d=F(()=>{let h=i.value;if(et(h)){et(e.precision)&&(h=Yl.round(h,e.precision).toFixed(e.precision));const p=String(h).split("."),v=e.showGroupSeparator?Number(p[0]).toLocaleString("en-US"):p[0],g=p[1];return{isNumber:!0,integer:v,decimal:g}}return e.format&&(h=gl(h).format(e.format)),{isNumber:!1,value:h}});return fn(()=>{e.animation&&e.start&&c()}),It(()=>e.start,h=>{h&&e.animation&&!a.value&&c()}),It(s,h=>{var p;a.value&&((p=a.value)==null||p.stop(),a.value=null),i.value=h,e.animation&&e.start&&c()}),{prefixCls:n,showPlaceholder:l,formatValue:d}}}),BVe={key:0};function NVe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.prefixCls)},[e.title||e.$slots.title?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-content`)},[I("div",{class:fe(`${e.prefixCls}-value`),style:qe(e.valueStyle)},[e.showPlaceholder?(z(),X("span",BVe,je(e.placeholder),1)):(z(),X(Pt,{key:1},[e.$slots.prefix?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-prefix`)},[mt(e.$slots,"prefix")],2)):Ae("v-if",!0),e.formatValue.isNumber?(z(),X(Pt,{key:1},[I("span",{class:fe(`${e.prefixCls}-value-integer`)},je(e.formatValue.integer),3),e.formatValue.decimal?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-value-decimal`)}," ."+je(e.formatValue.decimal),3)):Ae("v-if",!0)],64)):(z(),X(Pt,{key:2},[He(je(e.formatValue.value),1)],64)),e.$slots.suffix?(z(),X("span",{key:3,class:fe(`${e.prefixCls}-suffix`)},[mt(e.$slots,"suffix")],2)):Ae("v-if",!0)],64))],6),e.extra||e.$slots.extra?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-extra`)},[mt(e.$slots,"extra",{},()=>[He(je(e.extra),1)])],2)):Ae("v-if",!0)],2)],2)}var bM=Ue($Ve,[["render",NVe]]);const FVe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function _M(e,t){let n=e;return FVe.reduce((r,[i,a])=>{if(r.indexOf(i)!==-1){const s=Math.floor(n/a);return n-=s*a,r.replace(new RegExp(`${i}+`,"g"),l=>{const c=l.length;return String(s).padStart(c,"0")})}return r},t)}const jVe=xe({name:"Countdown",props:{title:String,value:{type:Number,default:()=>Date.now()+3e5},now:{type:Number,default:()=>Date.now()},format:{type:String,default:"HH:mm:ss"},start:{type:Boolean,default:!0},valueStyle:{type:Object}},emits:{finish:()=>!0},setup(e,{emit:t}){const n=Me("statistic"),{start:r,value:i,now:a,format:s}=tn(e),l=ue(_M(Math.max(gl(e.value).diff(gl(e.now),"millisecond"),0),e.format));It([i,a,s],()=>{const p=_M(Math.max(gl(e.value).diff(gl(e.now),"millisecond"),0),e.format);p!==l.value&&(l.value=p)});const c=ue(0),d=()=>{c.value&&(window.clearInterval(c.value),c.value=0)},h=()=>{gl(e.value).valueOf(){const p=gl(e.value).diff(gl(),"millisecond");p<=0&&(d(),t("finish")),l.value=_M(Math.max(p,0),e.format)},1e3/30))};return fn(()=>{e.start&&h()}),_o(()=>{d()}),It(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function VVe(e,t,n,r,i,a){return z(),X("div",{class:fe([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"title",{},()=>[He(je(e.title),1)])],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-content`)},[I("div",{class:fe(`${e.prefixCls}-value`),style:qe(e.valueStyle)},je(e.displayValue),7)],2)],2)}var JC=Ue(jVe,[["render",VVe]]);const zVe=Object.assign(bM,{Countdown:JC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+bM.name,bM),e.component(n+JC.name,JC)}}),cve=Symbol("ArcoSteps"),UVe=xe({name:"Steps",props:{type:{type:String,default:"default"},direction:{type:String,default:"horizontal"},labelPlacement:{type:String,default:"horizontal"},current:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},status:{type:String,default:"process"},lineLess:{type:Boolean,default:!1},small:{type:Boolean,default:!1},changeable:{type:Boolean,default:!1}},emits:{"update:current":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{type:r,lineLess:i}=tn(e),a=Me("steps"),s=ue(e.defaultCurrent),l=F(()=>{var w;return(w=e.current)!=null?w:s.value}),c=F(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),d=F(()=>e.type==="dot"?c.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),h=w=>wl.value?"wait":e.status,p=(w,x)=>{e.changeable&&(s.value=w,t("update:current",w),t("change",w,x))},v=Wt(new Map),g=F(()=>Array.from(v.values()).filter(w=>w.status==="error").map(w=>w.step)),y=(w,x)=>{v.set(w,x)},S=w=>{v.delete(w)},k=F(()=>[a,`${a}-${c.value}`,`${a}-label-${d.value}`,`${a}-mode-${r.value}`,{[`${a}-changeable`]:e.changeable,[`${a}-size-small`]:e.small&&e.type!=="dot",[`${a}-line-less`]:i.value}]);return oi(cve,Wt({type:r,direction:c,labelPlacement:d,lineLess:i,current:l,errorSteps:g,getStatus:h,addItem:y,removeItem:S,onClick:p,parentCls:a})),{cls:k}}});function HVe(e,t,n,r,i,a){return z(),X("div",{class:fe(e.cls)},[mt(e.$slots,"default")],2)}var SM=Ue(UVe,[["render",HVe]]);const WVe=xe({name:"Step",components:{IconCheck:ig,IconClose:rs},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Me("steps-item"),n=So(),r=Me("steps-icon"),i=Pn(cve,void 0),a=F(()=>{var y;return(y=i?.type)!=null?y:"default"}),s=ue(),{computedIndex:l}=gH({itemRef:s,selector:`.${t}`,parentClassName:i?.parentCls}),c=F(()=>l.value+1),d=F(()=>{var y,S;return(S=(y=e.status)!=null?y:i?.getStatus(c.value))!=null?S:"process"}),h=F(()=>{var y;return(y=i?.errorSteps.includes(c.value+1))!=null?y:!1});n&&i?.addItem(n.uid,Wt({step:c,status:d})),_o(()=>{n&&i?.removeItem(n.uid)});const p=F(()=>!i?.lineLess&&(i?.labelPlacement==="vertical"||i?.direction==="vertical")),v=y=>{e.disabled||i?.onClick(c.value,y)},g=F(()=>[t,`${t}-${d.value}`,{[`${t}-active`]:c.value===i?.current,[`${t}-next-error`]:h.value,[`${t}-disabled`]:e.disabled}]);return{prefixCls:t,iconCls:r,cls:g,itemRef:s,showTail:p,stepNumber:c,computedStatus:d,type:a,handleClick:v}}});function GVe(e,t,n,r,i,a){const s=Ee("icon-check"),l=Ee("icon-close");return z(),X("div",{ref:"itemRef",class:fe(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-tail`)},null,2)):Ae("v-if",!0),e.type!=="arrow"?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-node`)},[mt(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(z(),X("div",{key:0,class:fe(e.iconCls)},[mt(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(z(),Ze(s,{key:0})):e.computedStatus==="error"?(z(),Ze(l,{key:1})):(z(),X(Pt,{key:2},[He(je(e.stepNumber),1)],64))])],2)):Ae("v-if",!0)])],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-content`)},[I("div",{class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"default",{},()=>[He(je(e.title),1)])],2),e.description||e.$slots.description?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-description`)},[mt(e.$slots,"description",{},()=>[He(je(e.description),1)])],2)):Ae("v-if",!0)],2)],2)}var QC=Ue(WVe,[["render",GVe]]);const KVe=Object.assign(SM,{Step:QC,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+SM.name,SM),e.component(n+QC.name,QC)}}),qVe=xe({name:"Switch",components:{IconLoading:Ja},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{type:String,default:"circle"},size:{type:String},checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},checkedColor:{type:String},uncheckedColor:{type:String},beforeChange:{type:Function},checkedText:{type:String},uncheckedText:{type:String}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t}){const{disabled:n,size:r,modelValue:i}=tn(e),a=Me("switch"),{mergedSize:s}=Aa(r),{mergedDisabled:l,mergedSize:c,eventHandlers:d}=Do({disabled:n,size:s}),h=ue(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=F(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),v=ue(!1),g=F(()=>v.value||e.loading),y=(_,T)=>{var D,P;h.value=_?e.checkedValue:e.uncheckedValue,t("update:modelValue",h.value),t("change",h.value,T),(P=(D=d.value)==null?void 0:D.onChange)==null||P.call(D,T)},S=async _=>{if(g.value||l.value)return;const T=!p.value,D=T?e.checkedValue:e.uncheckedValue,P=e.beforeChange;if(Sn(P)){v.value=!0;try{const M=await P(D);(M??!0)&&y(T,_)}finally{v.value=!1}}else y(T,_)},k=_=>{var T,D;t("focus",_),(D=(T=d.value)==null?void 0:T.onFocus)==null||D.call(T,_)},w=_=>{var T,D;t("blur",_),(D=(T=d.value)==null?void 0:T.onBlur)==null||D.call(T,_)};It(i,_=>{(wn(_)||Al(_))&&(h.value=e.uncheckedValue)});const x=F(()=>[a,`${a}-type-${e.type}`,{[`${a}-small`]:c.value==="small"||c.value==="mini",[`${a}-checked`]:p.value,[`${a}-disabled`]:l.value,[`${a}-loading`]:g.value,[`${a}-custom-color`]:e.type==="line"&&(e.checkedColor||e.uncheckedColor)}]),E=F(()=>{if(p.value&&e.checkedColor)return e.type==="line"?{"--custom-color":e.checkedColor}:{backgroundColor:e.checkedColor};if(!p.value&&e.uncheckedColor)return e.type==="line"?{"--custom-color":e.uncheckedColor}:{backgroundColor:e.uncheckedColor}});return{prefixCls:a,cls:x,mergedDisabled:l,buttonStyle:E,computedCheck:p,computedLoading:g,handleClick:S,handleFocus:k,handleBlur:w}}}),YVe=["aria-checked","disabled"];function XVe(e,t,n,r,i,a){const s=Ee("icon-loading");return z(),X("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:fe(e.cls),style:qe(e.buttonStyle),disabled:e.mergedDisabled,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onBlur:t[2]||(t[2]=(...l)=>e.handleBlur&&e.handleBlur(...l))},[I("span",{class:fe(`${e.prefixCls}-handle`)},[I("span",{class:fe(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(z(),Ze(s,{key:0})):(z(),X(Pt,{key:1},[e.computedCheck?mt(e.$slots,"checked-icon",{key:0}):mt(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Ae(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(z(),X(Pt,{key:0},[I("span",{class:fe(`${e.prefixCls}-text-holder`)},[e.computedCheck?mt(e.$slots,"checked",{key:0},()=>[He(je(e.checkedText),1)]):mt(e.$slots,"unchecked",{key:1},()=>[He(je(e.uncheckedText),1)])],2),I("span",{class:fe(`${e.prefixCls}-text`)},[e.computedCheck?mt(e.$slots,"checked",{key:0},()=>[He(je(e.checkedText),1)]):mt(e.$slots,"unchecked",{key:1},()=>[He(je(e.uncheckedText),1)])],2)],64)):Ae("v-if",!0)],46,YVe)}var kM=Ue(qVe,[["render",XVe]]);const ZVe=Object.assign(kM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+kM.name,kM)}}),JVe=e=>{let t=0;const n=r=>{if(nr(r)&&r.length>0)for(const i of r)i.children?n(i.children):t+=1};return n(e),t},dve=e=>{let t=0;if(nr(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=dve(n.children);r>0&&(t=Math.max(t,r+1))}}return t},Ure=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},QVe=(e,t,n)=>{const r=dve(e);t.clear();const i=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(d,{level:h=0,parent:p,fixed:v}={})=>{var g;for(const y of d){const S={...y,parent:p};if(nr(S.children)){const k=JVe(S.children);k>1&&(S.colSpan=k),a[h].push(S),c(S.children,{level:h+1,parent:S,fixed:S.fixed})}else{const k=r-h;k>1&&(S.rowSpan=k),(v||S.fixed)&&(S.fixed=(g=S.fixed)!=null?g:v,S.fixed==="left"?s=i.length:wn(l)&&(l=i.length)),(wn(S.dataIndex)||Al(S.dataIndex))&&(S.dataIndex=`__arco_data_index_${i.length}`),n[S.dataIndex]&&(S._resizeWidth=n[S.dataIndex]),t.set(S.dataIndex,S),i.push(S),a[h].push(S)}}};return c(e),wn(s)||(i[s].isLastLeftFixed=!0,Ure(i[s],"left")),wn(l)||(i[l].isFirstRightFixed=!0,Ure(i[l],"right")),{dataColumns:i,groupColumns:a}},eze=(e,t)=>{for(let n=0;n{var n;const r=eze(t,e.name);if(r<=0)return 0;let i=0;const a=t.slice(0,r);for(const s of a)i+=(n=s.width)!=null?n:0;return i},HH=e=>e.children&&e.children.length>0?HH(e.children[0]):e,nze=e=>e.children&&e.children.length>0?HH(e.children[e.children.length-1]):e,rze=(e,{dataColumns:t,operations:n})=>{var r,i,a;let s=0;if(e.fixed==="left"){for(const d of n)s+=(r=d.width)!=null?r:40;const c=HH(e);for(const d of t){if(c.dataIndex===d.dataIndex)break;s+=(a=(i=d._resizeWidth)!=null?i:d.width)!=null?a:0}return s}const l=nze(e);for(let c=t.length-1;c>0;c--){const d=t[c];if(l.dataIndex===d.dataIndex)break;d.fixed==="right"&&(s+=d.width)}return s},fve=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],hve=(e,t)=>t.fixed==="left"?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:t.fixed==="right"?[`${e}-col-fixed-right`,{[`${e}-col-fixed-right-first`]:t.isFirstRightFixed}]:[],pve=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${rze(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},vve=(e,t)=>e.fixed?{left:`${tze(e,t)}px`}:{};function mve(e){return e.map(t=>{const n={...t};return n.children&&(n.children=mve(n.children)),n})}function gve(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=gve(t.children)),t.raw})}const WH=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...WH(n));return t},ize=(e,t)=>{let n=!1,r=!1;const i=t.filter(a=>e.includes(a));return i.length>0&&(i.length>=t.length?n=!0:r=!0),{checked:n,indeterminate:r}},Z2=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),oze=e=>{const t=[];for(let n=0;n{var s,l,c;const d=F(()=>{var E;return((E=n.value)==null?void 0:E.type)==="radio"}),h=ue((c=(l=t.value)!=null?l:(s=n.value)==null?void 0:s.defaultSelectedRowKeys)!=null?c:[]),p=F(()=>{var E,_,T;return(T=(_=e.value)!=null?_:(E=n.value)==null?void 0:E.selectedRowKeys)!=null?T:h.value}),v=F(()=>p.value.filter(E=>r.value.includes(E)));return{isRadio:d,selectedRowKeys:p,currentSelectedRowKeys:v,handleSelectAll:E=>{const _=Z2(p.value,i.value,!E);h.value=_,a("selectAll",E),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(E,_)=>{const T=d.value?[_.key]:Z2(p.value,[_.key],!E);h.value=T,a("select",T,_.key,_.raw),a("selectionChange",T),a("update:selectedKeys",T)},handleSelectAllLeafs:(E,_)=>{const T=Z2(p.value,WH(E),!_);h.value=T,a("select",T,E.key,E.raw),a("selectionChange",T),a("update:selectedKeys",T)},select:(E,_=!0)=>{const T=[].concat(E),D=d.value?T:Z2(p.value,T,!_);h.value=D,a("selectionChange",D),a("update:selectedKeys",D)},selectAll:(E=!0)=>{const _=Z2(p.value,i.value,!E);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},aze=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:i,emit:a})=>{const l=ue((()=>{var v,g;return t.value?t.value:(v=r.value)!=null&&v.defaultExpandedRowKeys?r.value.defaultExpandedRowKeys:n.value||(g=r.value)!=null&&g.defaultExpandAllRows?[...i.value]:[]})()),c=F(()=>{var v,g,y;return(y=(g=e.value)!=null?g:(v=r.value)==null?void 0:v.expandedRowKeys)!=null?y:l.value});return{expandedRowKeys:c,handleExpand:(v,g)=>{const S=c.value.includes(v)?c.value.filter(k=>v!==k):c.value.concat(v);l.value=S,a("expand",v,g),a("expandedChange",S),a("update:expandedKeys",S)},expand:(v,g=!0)=>{const y=[].concat(v),S=g?c.value.concat(y):c.value.filter(k=>!y.includes(k));l.value=S,a("expandedChange",S),a("update:expandedKeys",S)},expandAll:(v=!0)=>{const g=v?[...i.value]:[];l.value=g,a("expandedChange",g),a("update:expandedKeys",g)}}},lze=(e,t)=>{var n,r;const i=ue(gr(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=ue(gr(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=F(()=>{var h;return gr(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:F(()=>{var h;return gr(e.pagination)&&(h=e.pagination.current)!=null?h:i.value}),pageSize:s,handlePageChange:h=>{i.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}},uze=xe({name:"ColGroup",props:{dataColumns:{type:Array,required:!0},operations:{type:Array,required:!0},columnWidth:{type:Object}},setup(){return{fixedWidth:(t,n)=>{if(t){const r=Math.max(t,n||0);return{width:`${t}px`,minWidth:`${r}px`,maxWidth:`${t}px`}}if(n)return{minWidth:`${n}px`}}}}});function cze(e,t,n,r,i,a){return z(),X("colgroup",null,[(z(!0),X(Pt,null,cn(e.operations,s=>(z(),X("col",{key:`arco-col-${s.name}`,class:fe(`arco-table-${s.name}-col`),style:qe(e.fixedWidth(s.width))},null,6))),128)),(z(!0),X(Pt,null,cn(e.dataColumns,s=>(z(),X("col",{key:`arco-col-${s.dataIndex}`,style:qe(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var Aw=Ue(uze,[["render",cze]]),hb=xe({name:"Thead",setup(e,{slots:t}){return()=>{var n,r;return O((r=(n=t.thead)==null?void 0:n.call(t)[0])!=null?r:"thead",null,{default:t.default})}}}),pb=xe({name:"Tbody",setup(e,{slots:t}){return()=>{var n,r;return O((r=(n=t.tbody)==null?void 0:n.call(t)[0])!=null?r:"tbody",null,{default:t.default})}}}),wh=xe({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Me("table"),r=F(()=>[`${n}-tr`,{[`${n}-tr-expand`]:e.expand,[`${n}-tr-empty`]:e.empty,[`${n}-tr-checked`]:e.checked}]);return()=>{var i,a,s;return O((s=(a=t.tr)==null?void 0:a.call(t,{rowIndex:e.rowIndex,record:(i=e.record)==null?void 0:i.raw})[0])!=null?s:"tr",{class:r.value},{default:t.default})}}});const dze=xe({name:"IconCaretDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fze=["stroke-width","stroke-linecap","stroke-linejoin"];function hze(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.938 34.829a1.2 1.2 0 0 1-1.875 0L9.56 17.949c-.628-.785-.069-1.949.937-1.949h27.007c1.006 0 1.565 1.164.937 1.95L24.937 34.829Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fze)}var wM=Ue(dze,[["render",hze]]);const GH=Object.assign(wM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wM.name,wM)}}),pze=xe({name:"IconCaretUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vze=["stroke-width","stroke-linecap","stroke-linejoin"];function mze(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.063 13.171a1.2 1.2 0 0 1 1.875 0l13.503 16.88c.628.785.069 1.949-.937 1.949H10.497c-1.006 0-1.565-1.164-.937-1.95l13.503-16.879Z",fill:"currentColor",stroke:"none"},null,-1)]),14,vze)}var xM=Ue(pze,[["render",mze]]);const yve=Object.assign(xM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xM.name,xM)}}),gze=xe({name:"IconFilter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yze=["stroke-width","stroke-linecap","stroke-linejoin"];function bze(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"},null,-1)]),14,yze)}var CM=Ue(gze,[["render",bze]]);const KH=Object.assign(CM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CM.name,CM)}}),_ze=({column:e,tableCtx:t})=>{const n=F(()=>{var d;if(e.value.dataIndex&&e.value.dataIndex===((d=t.sorter)==null?void 0:d.field))return t.sorter.direction}),r=F(()=>{var d,h,p;return(p=(h=(d=e.value)==null?void 0:d.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),i=F(()=>r.value.length>0),a=F(()=>r.value.includes("ascend")),s=F(()=>r.value.includes("descend")),l=F(()=>{var d,h;return n.value?n.value===r.value[0]&&(h=r.value[1])!=null?h:"":(d=r.value[0])!=null?d:""});return{sortOrder:n,hasSorter:i,hasAscendBtn:a,hasDescendBtn:s,nextSortOrder:l,handleClickSorter:d=>{var h;e.value.dataIndex&&((h=t.onSorterChange)==null||h.call(t,e.value.dataIndex,l.value,d))}}},Sze=({column:e,tableCtx:t})=>{const n=F(()=>{var g;return e.value.dataIndex&&((g=t.filters)!=null&&g[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=ue(!1),i=F(()=>n.value.length>0),a=F(()=>{var g;return!!((g=e.value.filterable)!=null&&g.multiple)}),s=ue(n.value);It(n,g=>{nr(g)&&String(g)!==String(s.value)&&(s.value=g)});const l=g=>{r.value=g},c=g=>{s.value=g};return{filterPopupVisible:r,isFilterActive:i,isMultipleFilter:a,columnFilterValue:s,handleFilterPopupVisibleChange:l,setFilterValue:c,handleCheckboxFilterChange:g=>{c(g)},handleRadioFilterChange:g=>{c([g])},handleFilterConfirm:g=>{var y;e.value.dataIndex&&((y=t.onFilterChange)==null||y.call(t,e.value.dataIndex,s.value,g)),l(!1)},handleFilterReset:g=>{var y;c([]),e.value.dataIndex&&((y=t.onFilterChange)==null||y.call(t,e.value.dataIndex,s.value,g)),l(!1)}}},f3=Symbol("ArcoTable"),Hre=Symbol("ArcoTableColumn");function Wre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var bve=xe({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=Me("auto-tooltip"),i=ue(),a=ue(),s=ue(""),l=ue(!1),c=()=>{if(i.value&&a.value){const v=a.value.offsetWidth>i.value.offsetWidth;v!==l.value&&(l.value=v)}},d=()=>{var v;(v=a.value)!=null&&v.textContent&&a.value.textContent!==s.value&&(s.value=a.value.textContent)},h=()=>{d(),c()};fn(()=>{d(),c()}),tl(()=>{d(),c()});const p=()=>O("span",Ft({ref:i,class:r},t),[O(C0,{onResize:h},{default:()=>{var v;return[O("span",{ref:a,class:`${r}-content`},[(v=n.default)==null?void 0:v.call(n)])]}})]);return()=>{let v;if(l.value){let g;return O(Qc,Ft({content:s.value,onResize:h},e.tooltipProps),Wre(g=p())?g:{default:()=>[g]})}return O(C0,{onResize:h},Wre(v=p())?v:{default:()=>[v]})}}});function EM(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var vb=xe({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=tn(e),r=Me("table"),{t:i}=No(),a=Pn(f3,{}),s=F(()=>{var oe;return((oe=e.column)==null?void 0:oe.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=F(()=>{var oe;if(gr((oe=e.column)==null?void 0:oe.tooltip))return e.column.tooltip}),c=F(()=>{var oe;return(oe=e.column)!=null&&oe.filterable&&Tl(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:d,hasSorter:h,hasAscendBtn:p,hasDescendBtn:v,nextSortOrder:g,handleClickSorter:y}=_ze({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:w,columnFilterValue:x,handleFilterPopupVisibleChange:E,setFilterValue:_,handleCheckboxFilterChange:T,handleRadioFilterChange:D,handleFilterConfirm:P,handleFilterReset:M}=Sze({column:n,tableCtx:a}),$=()=>{var oe,ae,ee,Y,Q;let ie,q;const{filterable:te}=e.column;return(oe=e.column.slots)!=null&&oe["filter-content"]?(ae=e.column.slots)==null?void 0:ae["filter-content"]({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):te?.slotName?(Y=(ee=a?.slots)==null?void 0:ee[te?.slotName])==null?void 0:Y.call(ee,{filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):te?.renderContent?te.renderContent({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):O("div",{class:`${r}-filters-content`},[O("ul",{class:`${r}-filters-list`},[(Q=te?.filters)==null?void 0:Q.map((Se,Fe)=>{var ve;return O("li",{class:`${r}-filters-item`,key:Fe},[w.value?O(Wc,{value:Se.value,modelValue:x.value,uninjectGroupContext:!0,onChange:T},{default:()=>[Se.text]}):O($m,{value:Se.value,modelValue:(ve=x.value[0])!=null?ve:"",uninjectGroupContext:!0,onChange:D},{default:()=>[Se.text]})])})]),O("div",{class:`${r}-filters-bottom`},[O(Jo,{size:"mini",onClick:M},EM(ie=i("table.resetText"))?ie:{default:()=>[ie]}),O(Jo,{type:"primary",size:"mini",onClick:P},EM(q=i("table.okText"))?q:{default:()=>[q]})])])},L=()=>{const{filterable:oe}=e.column;return oe?O(va,Ft({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:E},oe.triggerProps),{default:()=>[O(Lo,{class:[`${r}-filters`,{[`${r}-filters-active`]:k.value,[`${r}-filters-open`]:S.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:ae=>ae.stopPropagation()},{default:()=>{var ae,ee,Y,Q,ie;return[(ie=(Q=(ee=(ae=e.column.slots)==null?void 0:ae["filter-icon"])==null?void 0:ee.call(ae))!=null?Q:(Y=oe.icon)==null?void 0:Y.call(oe))!=null?ie:O(KH,null,null)]}})],content:$}):null},B=F(()=>{var oe,ae;const ee=[`${r}-cell`,`${r}-cell-align-${(ae=(oe=e.column)==null?void 0:oe.align)!=null?ae:e.column.children?"center":"left"}`];return h.value&&ee.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:g.value==="ascend",[`${r}-cell-next-descend`]:g.value==="descend"}),c.value&&ee.push(`${r}-cell-with-filter`),ee}),j=()=>{var oe,ae,ee,Y,Q,ie;return t.default?t.default():(oe=e.column)!=null&&oe.titleSlotName&&((ae=a.slots)!=null&&ae[e.column.titleSlotName])?(Y=(ee=a.slots)[e.column.titleSlotName])==null?void 0:Y.call(ee,{column:e.column}):(ie=(Q=e.column)==null?void 0:Q.slots)!=null&&ie.title?e.column.slots.title():Sn(e.column.title)?e.column.title():e.column.title},H=()=>{var oe,ae,ee;let Y;return O("span",{class:B.value,onClick:h.value?y:void 0},[(oe=e.column)!=null&&oe.ellipsis&&((ae=e.column)!=null&&ae.tooltip)?O(bve,{class:`${r}-th-title`,tooltipProps:l.value},EM(Y=j())?Y:{default:()=>[Y]}):O("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(ee=e.column)==null?void 0:ee.ellipsis}]},[j()]),h.value&&O("span",{class:`${r}-sorter`},[p.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="ascend"}]},[O(yve,null,null)]),v.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="descend"}]},[O(GH,null,null)])]),c.value&&L()])},U=F(()=>{var oe,ae;return{...pve(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(oe=e.column)==null?void 0:oe.cellStyle,...(ae=e.column)==null?void 0:ae.headerCellStyle}}),W=F(()=>{var oe,ae;return[`${r}-th`,{[`${r}-col-sorted`]:!!d.value,[`${r}-th-resizing`]:s.value},...hve(r,e.column),(oe=e.column)==null?void 0:oe.cellClass,(ae=e.column)==null?void 0:ae.headerCellClass]}),K=oe=>{var ae,ee,Y;(ae=e.column)!=null&&ae.dataIndex&&((Y=a.onThMouseDown)==null||Y.call(a,(ee=e.column)==null?void 0:ee.dataIndex,oe))};return()=>{var oe,ae,ee,Y;const Q=(oe=e.column.colSpan)!=null?oe:1,ie=(ae=e.column.rowSpan)!=null?ae:1;return O((Y=(ee=t.th)==null?void 0:ee.call(t,{column:e.column})[0])!=null?Y:"th",{class:W.value,style:U.value,colspan:Q>1?Q:void 0,rowspan:ie>1?ie:void 0},{default:()=>[H(),!c.value&&L(),e.resizable&&O("span",{class:`${r}-column-handle`,onMousedown:K},null)]})}}});function kze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var o0=xe({name:"Td",props:{rowIndex:Number,record:{type:Object,default:()=>({})},column:{type:Object,default:()=>({})},type:{type:String,default:"normal"},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},isFixedExpand:{type:Boolean,default:!1},containerWidth:{type:Number},showExpandBtn:{type:Boolean,default:!1},indentSize:{type:Number,default:0},renderExpandBtn:{type:Function},summary:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Me("table"),r=F(()=>{var k;if(gr((k=e.column)==null?void 0:k.tooltip))return e.column.tooltip}),i=F(()=>{var k,w;return((k=e.column)==null?void 0:k.dataIndex)&&((w=p.sorter)==null?void 0:w.field)===e.column.dataIndex}),a=F(()=>{var k;return((k=e.column)==null?void 0:k.dataIndex)&&p.resizingColumn===e.column.dataIndex}),s=()=>{var k,w,x,E,_,T;return e.summary?Sn((k=e.column)==null?void 0:k.summaryCellClass)?e.column.summaryCellClass((w=e.record)==null?void 0:w.raw):(x=e.column)==null?void 0:x.summaryCellClass:Sn((E=e.column)==null?void 0:E.bodyCellClass)?e.column.bodyCellClass((_=e.record)==null?void 0:_.raw):(T=e.column)==null?void 0:T.bodyCellClass},l=F(()=>{var k;return[`${n}-td`,{[`${n}-col-sorted`]:i.value,[`${n}-td-resizing`]:a.value},...hve(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,w,x,E,_,T;return e.summary?Sn((k=e.column)==null?void 0:k.summaryCellStyle)?e.column.summaryCellStyle((w=e.record)==null?void 0:w.raw):(x=e.column)==null?void 0:x.summaryCellStyle:Sn((E=e.column)==null?void 0:E.bodyCellStyle)?e.column.bodyCellStyle((_=e.record)==null?void 0:_.raw):(T=e.column)==null?void 0:T.bodyCellStyle},d=F(()=>{var k;const w=pve(e.column,{dataColumns:e.dataColumns,operations:e.operations}),x=c();return{...w,...(k=e.column)==null?void 0:k.cellStyle,...x}}),h=F(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=Pn(f3,{}),v=()=>{var k,w,x,E,_,T,D,P;if(t.default)return t.default();const M={record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(w=e.rowIndex)!=null?w:-1};return t.cell?t.cell(M):(x=e.column.slots)!=null&&x.cell?e.column.slots.cell(M):e.column.render?e.column.render(M):e.column.slotName&&((E=p.slots)!=null&&E[e.column.slotName])?(T=(_=p.slots)[e.column.slotName])==null?void 0:T.call(_,M):String((P=ym((D=e.record)==null?void 0:D.raw,e.column.dataIndex))!=null?P:"")},g=ue(!1),y=k=>{var w,x;Sn(p.loadMore)&&!((w=e.record)!=null&&w.isLeaf)&&!((x=e.record)!=null&&x.children)&&(g.value=!0,new Promise(E=>{var _;(_=p.loadMore)==null||_.call(p,e.record.raw,E)}).then(E=>{var _;(_=p.addLazyLoadData)==null||_.call(p,E,e.record),g.value=!1})),k.stopPropagation()},S=()=>{var k,w,x,E,_,T;let D;return O("span",{class:[`${n}-cell`,`${n}-cell-align-${(w=(k=e.column)==null?void 0:k.align)!=null?w:"left"}`,{[`${n}-cell-fixed-expand`]:e.isFixedExpand,[`${n}-cell-expand-icon`]:e.showExpandBtn}],style:h.value},[e.indentSize>0&&O("span",{style:{paddingLeft:`${e.indentSize}px`}},null),e.showExpandBtn&&O("span",{class:`${n}-cell-inline-icon`,onClick:y},[g.value?O(Ja,null,null):(x=e.renderExpandBtn)==null?void 0:x.call(e,e.record,!1)]),(E=e.column)!=null&&E.ellipsis&&((_=e.column)!=null&&_.tooltip)?O(bve,{class:`${n}-td-content`,tooltipProps:r.value},kze(D=v())?D:{default:()=>[D]}):O("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(T=e.column)==null?void 0:T.ellipsis}]},[v()])])};return()=>{var k,w,x,E;return O((E=(x=t.td)==null?void 0:x.call(t,{record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(w=e.rowIndex)!=null?w:-1})[0])!=null?E:"td",{class:l.value,style:d.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[S()]})}}}),wze=xe({name:"OperationTh",props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},rowSpan:{type:Number,default:1},selectAll:{type:Boolean,default:!1}},setup(e){const t=Me("table"),n=Pn(f3,{}),r=F(()=>{var l,c,d,h;let p=!1,v=!1;const y=((c=(l=n.currentSelectedRowKeys)==null?void 0:l.filter(k=>{var w,x;return(x=(w=n.currentAllEnabledRowKeys)==null?void 0:w.includes(k))!=null?x:!0}))!=null?c:[]).length,S=(h=(d=n.currentAllEnabledRowKeys)==null?void 0:d.length)!=null?h:0;return y>0&&(y>=S?p=!0:v=!0),{checked:p,indeterminate:v}}),i=()=>e.selectAll?O(Wc,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:Sn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?Sn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=F(()=>vve(e.operationColumn,e.operations)),s=F(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...fve(t,e.operationColumn)]);return()=>O("th",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0},[O("span",{class:`${t}-cell`},[i()])])}}),Gre=xe({name:"OperationTd",components:{Checkbox:Wc,Radio:$m,IconPlus:xf,IconMinus:T0},props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},record:{type:Object,required:!0},hasExpand:{type:Boolean,default:!1},selectedRowKeys:{type:Array},renderExpandBtn:{type:Function},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},summary:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t,slots:n}){const r=Me("table"),i=Pn(f3,{}),a=F(()=>vve(e.operationColumn,e.operations)),s=F(()=>[`${r}-td`,`${r}-operation`,{[`${r}-checkbox`]:e.operationColumn.name==="selection-checkbox",[`${r}-radio`]:e.operationColumn.name==="selection-radio",[`${r}-expand`]:e.operationColumn.name==="expand",[`${r}-drag-handle`]:e.operationColumn.name==="drag-handle"},...fve(r,e.operationColumn)]),l=F(()=>WH(e.record)),c=F(()=>{var h;return ize((h=i.currentSelectedRowKeys)!=null?h:[],l.value)}),d=()=>{var h,p,v,g,y,S;if(e.summary)return null;if(e.operationColumn.render)return e.operationColumn.render(e.record.raw);if(e.operationColumn.name==="selection-checkbox"){const k=e.record.key;return!i.checkStrictly&&!e.record.isLeaf?O(Wc,{modelValue:c.value.checked,indeterminate:c.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:w=>{var x;return(x=i.onSelectAllLeafs)==null?void 0:x.call(i,e.record,w)},onClick:w=>w.stopPropagation()},null):O(Wc,{modelValue:(p=(h=e.selectedRowKeys)==null?void 0:h.includes(k))!=null?p:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:w=>{var x;return(x=i.onSelect)==null?void 0:x.call(i,w,e.record)},onClick:w=>w.stopPropagation()},null)}if(e.operationColumn.name==="selection-radio"){const k=e.record.key;return O($m,{modelValue:(g=(v=e.selectedRowKeys)==null?void 0:v.includes(k))!=null?g:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:w=>{var x;return(x=i.onSelect)==null?void 0:x.call(i,w,e.record)},onClick:w=>w.stopPropagation()},null)}return e.operationColumn.name==="expand"?e.hasExpand&&e.renderExpandBtn?e.renderExpandBtn(e.record):null:e.operationColumn.name==="drag-handle"?(S=(y=n["drag-handle-icon"])==null?void 0:y.call(n))!=null?S:O(J5,null,null):null};return()=>O("td",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},[O("span",{class:`${r}-cell`},[d()])])}});const xze=e=>{const t=F(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=Wt({dragging:!1,sourceKey:"",sourcePath:[],targetPath:[],data:{}}),r=()=>{n.dragging=!1,n.sourceKey="",n.sourcePath=[],n.targetPath=[],n.data={}};return{dragType:t,dragState:n,handleDragStart:(h,p,v,g)=>{if(h.dataTransfer&&(h.dataTransfer.effectAllowed="move",h.target&&h.target.tagName==="TD")){const{parentElement:y}=h.target;y&&y.tagName==="TR"&&h.dataTransfer.setDragImage(y,0,0)}n.dragging=!0,n.sourceKey=p,n.sourcePath=v,n.targetPath=[...v],n.data=g},handleDragEnter:(h,p)=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),n.targetPath.toString()!==p.toString()&&(n.targetPath=p),h.preventDefault()},handleDragLeave:h=>{},handleDragover:h=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),h.preventDefault()},handleDragEnd:h=>{var p;((p=h.dataTransfer)==null?void 0:p.dropEffect)==="none"&&r()},handleDrop:h=>{r(),h.preventDefault()}}},Cze=(e,t)=>{const n=ue(""),r=Wt({}),i=(l,c)=>{c.preventDefault(),n.value=l,Mi(window,"mousemove",s),Mi(window,"mouseup",a),Mi(window,"contextmenu",a)},a=()=>{n.value="",no(window,"mousemove",s),no(window,"mouseup",a),no(window,"contextmenu",a)},s=l=>{const c=e.value[n.value];if(c){const{clientX:d}=l,{x:h}=c.getBoundingClientRect();let p=Math.ceil(d-h);p<40&&(p=40),r[n.value]=p,t("columnResize",n.value,p)}};return{resizingColumn:n,columnWidth:r,handleThMouseDown:i,handleThMouseUp:a}},Eze=({columns:e,onFilterChange:t})=>{const n=ue(Kre(e.value));It(e,s=>{const l=Kre(s);u3(l,n.value)||(n.value=l)});const r=F(()=>{var s,l;const c={};for(const d of e.value)if(d.dataIndex){const h=(l=(s=d.filterable)==null?void 0:s.filteredValue)!=null?l:n.value[d.dataIndex];h&&(c[d.dataIndex]=h)}return c});return{_filters:n,computedFilters:r,resetFilters:s=>{var l;const c=s?[].concat(s):[],d={};for(const h of e.value)if(h.dataIndex&&h.filterable&&(c.length===0||c.includes(h.dataIndex))){const p=(l=h.filterable.defaultFilteredValue)!=null?l:[];d[h.dataIndex]=p,t(h.dataIndex,p)}n.value=d},clearFilters:s=>{const l=s?[].concat(s):[],c={};for(const d of e.value)if(d.dataIndex&&d.filterable&&(l.length===0||l.includes(d.dataIndex))){const h=[];c[d.dataIndex]=h,t(d.dataIndex,h)}n.value=c}}},Kre=e=>{var t;const n={};for(const r of e)r.dataIndex&&((t=r.filterable)!=null&&t.defaultFilteredValue)&&(n[r.dataIndex]=r.filterable.defaultFilteredValue);return n},Tze=({columns:e,onSorterChange:t})=>{const n=ue(qre(e.value));It(e,s=>{const l=qre(s);u3(l,n.value)||(n.value=l)});const r=F(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=hs(l.sortable.sortOrder)?l.sortable.sortOrder:((s=n.value)==null?void 0:s.field)===l.dataIndex?n.value.direction:"";if(c)return{field:l.dataIndex,direction:c}}});return{_sorter:n,computedSorter:r,resetSorters:()=>{var s;let l;for(const c of e.value)c.dataIndex&&c.sortable&&(!l&&c.sortable.defaultSortOrder&&(l={field:c.dataIndex,direction:c.sortable.defaultSortOrder}),t(c.dataIndex,(s=c.sortable.defaultSortOrder)!=null?s:""));n.value=l},clearSorters:()=>{for(const s of e.value)s.dataIndex&&s.sortable&&t(s.dataIndex,"")}}},qre=e=>{var t;for(const n of e)if(n.dataIndex&&((t=n.sortable)!=null&&t.defaultSortOrder))return{field:n.dataIndex,direction:n.sortable.defaultSortOrder}},Yre=({spanMethod:e,data:t,columns:n})=>{const r=(l,c)=>{l?.forEach((d,h)=>{var p;d.hasSubtree&&((p=d.children)!=null&&p.length)&&r(d.children||[],c),n.value.forEach((v,g)=>{var y,S;const{rowspan:k=1,colspan:w=1}=(S=(y=e.value)==null?void 0:y.call(e,{record:d.raw,column:v,rowIndex:h,columnIndex:g}))!=null?S:{};(k>1||w>1)&&(c[`${h}-${g}-${d.key}`]=[k,w],Array.from({length:k}).forEach((x,E)=>{var _;if(h+E{g+P{const l={};return i.value={},e.value&&r(t.value,l),l}),s=F(()=>{const l=[];for(const c of Object.keys(i.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function Aze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const Xre={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var TM=xe({name:"Table",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},bordered:{type:[Boolean,Object],default:!0},hoverable:{type:Boolean,default:!0},stripe:{type:Boolean,default:!1},size:{type:String,default:()=>{var e,t;return(t=(e=Pn(Za,void 0))==null?void 0:e.size)!=null?t:"large"}},tableLayoutFixed:{type:Boolean,default:!1},loading:{type:[Boolean,Object],default:!1},rowSelection:{type:Object},expandable:{type:Object},scroll:{type:Object},pagination:{type:[Boolean,Object],default:!0},pagePosition:{type:String,default:"br"},indentSize:{type:Number,default:16},rowKey:{type:String,default:"key"},showHeader:{type:Boolean,default:!0},virtualListProps:{type:Object},spanMethod:{type:Function},spanAll:{type:Boolean,default:!1},components:{type:Object},loadMore:{type:Function},filterIconAlignLeft:{type:Boolean,default:!1},hideExpandButtonOnEmpty:{type:Boolean,default:!1},rowClass:{type:[String,Array,Object,Function]},draggable:{type:Object},rowNumber:{type:[Boolean,Object]},columnResizable:{type:Boolean},summary:{type:[Boolean,Function]},summaryText:{type:String,default:"Summary"},summarySpanMethod:{type:Function},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},expandedKeys:{type:Array},defaultExpandedKeys:{type:Array},defaultExpandAllRows:{type:Boolean,default:!1},stickyHeader:{type:[Boolean,Number],default:!1},scrollbar:{type:[Object,Boolean],default:!0},showEmptyTree:{type:Boolean,default:!1}},emits:{"update:selectedKeys":e=>!0,"update:expandedKeys":e=>!0,expand:(e,t)=>!0,expandedChange:e=>!0,select:(e,t,n)=>!0,selectAll:e=>!0,selectionChange:e=>!0,sorterChange:(e,t)=>!0,filterChange:(e,t)=>!0,pageChange:e=>!0,pageSizeChange:e=>!0,change:(e,t,n)=>!0,cellMouseEnter:(e,t,n)=>!0,cellMouseLeave:(e,t,n)=>!0,cellClick:(e,t,n)=>!0,rowClick:(e,t)=>!0,headerClick:(e,t)=>!0,columnResize:(e,t)=>!0,rowDblclick:(e,t)=>!0,cellDblclick:(e,t,n)=>!0,rowContextmenu:(e,t)=>!0,cellContextmenu:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{columns:r,rowKey:i,rowSelection:a,expandable:s,loadMore:l,filterIconAlignLeft:c,selectedKeys:d,defaultSelectedKeys:h,expandedKeys:p,defaultExpandedKeys:v,defaultExpandAllRows:g,spanMethod:y,draggable:S,summarySpanMethod:k,scrollbar:w,showEmptyTree:x}=tn(e),E=Me("table"),_=Pn(Za,void 0),T=F(()=>gr(e.bordered)?{...Xre,...e.bordered}:{...Xre,wrapper:e.bordered}),{children:D,components:P}=rS("TableColumn"),M=F(()=>{var At,Zt;return(Zt=(At=a.value)==null?void 0:At.checkStrictly)!=null?Zt:!0}),{displayScrollbar:$,scrollbarProps:L}=j5(w),B=F(()=>{var At,Zt,on,hn;const En=!!((At=e.scroll)!=null&&At.x||(Zt=e.scroll)!=null&&Zt.minWidth),Zn=!!((on=e.scroll)!=null&&on.y||(hn=e.scroll)!=null&&hn.maxHeight);return{x:En,y:Zn}}),j=ue(),H=ue({}),{componentRef:U,elementRef:W}=K1("containerRef"),{componentRef:K,elementRef:oe}=K1("containerRef"),{elementRef:ae}=K1("viewportRef"),{componentRef:ee,elementRef:Y}=K1("containerRef"),Q=F(()=>ie.value?Cn.value?ae.value:oe.value:W.value),ie=F(()=>B.value.y||e.stickyHeader||Cn.value||B.value.x&&de.value.length===0),q=Wt(new Map),te=ue();It([P,q],([At,Zt])=>{if(At.length>0){const on=[];At.forEach(hn=>{const En=Zt.get(hn);En&&on.push(En)}),te.value=on}else te.value=void 0});const Se=new Map,Fe=ue([]),ve=ue([]),{resizingColumn:Re,columnWidth:Ge,handleThMouseDown:nt}=Cze(H,t);It([r,te,Ge],([At,Zt])=>{var on;const hn=QVe((on=Zt??At)!=null?on:[],Se,Ge);Fe.value=hn.dataColumns,ve.value=hn.groupColumns},{immediate:!0,deep:!0});const Ie=F(()=>["tl","top","tr"].includes(e.pagePosition)),_e=ue(!1),me=ue(!1),ge=ue(!1);$s(()=>{var At,Zt,on;let hn=!1,En=!1,Zn=!1;((At=e.rowSelection)!=null&&At.fixed||(Zt=e.expandable)!=null&&Zt.fixed||(on=e.draggable)!=null&&on.fixed)&&(hn=!0);for(const Er of Fe.value)Er.fixed==="left"?(hn=!0,Zn=!0):Er.fixed==="right"&&(En=!0);hn!==_e.value&&(_e.value=hn),En!==me.value&&(me.value=En),Zn!==ge.value&&(ge.value=Zn)});const Be=F(()=>{for(const At of Fe.value)if(At.ellipsis)return!0;return!1}),Ye=At=>{const Zt={type:At,page:Ur.value,pageSize:se.value,sorter:Ht.value,filters:ct.value,dragTarget:At==="drag"?An.data:void 0};t("change",ke.value,Zt,ar.value)},Ke=(At,Zt)=>{ft.value={...ct.value,[At]:Zt},t("filterChange",At,Zt),Ye("filter")},at=(At,Zt)=>{Rt.value=Zt?{field:At,direction:Zt}:void 0,t("sorterChange",At,Zt),Ye("sorter")},{_filters:ft,computedFilters:ct,resetFilters:Ct,clearFilters:xt}=Eze({columns:Fe,onFilterChange:Ke}),{_sorter:Rt,computedSorter:Ht,resetSorters:Jt,clearSorters:rn}=Tze({columns:Fe,onSorterChange:at}),vt=new Set,Ve=F(()=>{const At=[];vt.clear();const Zt=on=>{if(nr(on)&&on.length>0)for(const hn of on)At.push(hn[i.value]),hn.disabled&&vt.add(hn[i.value]),hn.children&&Zt(hn.children)};return Zt(e.data),At}),Oe=F(()=>{const At=[],Zt=on=>{for(const hn of on)At.push(hn.key),hn.children&&Zt(hn.children)};return Zt(de.value),At}),Ce=F(()=>{const At=[],Zt=on=>{for(const hn of on)hn.disabled||At.push(hn.key),hn.children&&Zt(hn.children)};return Zt(de.value),At}),{selectedRowKeys:We,currentSelectedRowKeys:$e,handleSelect:dt,handleSelectAllLeafs:Qe,handleSelectAll:Le,select:ht,selectAll:Vt,clearSelected:Ut}=sze({selectedKeys:d,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:Oe,currentAllEnabledRowKeys:Ce,emit:t}),{expandedRowKeys:Lt,handleExpand:Xt,expand:Dn,expandAll:rr}=aze({expandedKeys:p,defaultExpandedKeys:v,defaultExpandAllRows:g,expandable:s,allRowKeys:Ve,emit:t}),Xr=Wt({}),Gt=(At,Zt)=>{At&&(Xr[Zt.key]=At)},Yt=At=>{var Zt,on;for(const hn of Object.keys(ct.value)){const En=ct.value[hn],Zn=Se.get(hn);if(Zn&&((Zt=Zn.filterable)!=null&&Zt.filter)&&En.length>0){const Er=(on=Zn.filterable)==null?void 0:on.filter(En,At.raw);if(!Er)return Er}}return!0},{dragType:sn,dragState:An,handleDragStart:un,handleDragEnter:Xn,handleDragover:Cr,handleDragEnd:ro,handleDrop:$t}=xze(S),bn=F(()=>{var At;const Zt=on=>{const hn=[];for(const En of on){const Zn={raw:En,key:En[e.rowKey],disabled:En.disabled,expand:En.expand,isLeaf:En.isLeaf};En.children?(Zn.isLeaf=!1,Zn.children=Zt(En.children)):e.loadMore&&!En.isLeaf?(Zn.isLeaf=!1,Xr[Zn.key]&&(Zn.children=Zt(Xr[Zn.key]))):Zn.isLeaf=!0,Zn.hasSubtree=!!(Zn.children?!e.hideExpandButtonOnEmpty||Zn.children.length>0:e.loadMore&&!Zn.isLeaf),hn.push(Zn)}return hn};return Zt((At=e.data)!=null?At:[])}),kr=F(()=>{const At=Zt=>Zt.filter(on=>Yt(on)?(on.children&&(on.children=At(on.children)),!0):!1);return Object.keys(ct.value).length>0?At(bn.value):bn.value}),ar=F(()=>{var At,Zt,on;const hn=mve(kr.value);if(hn.length>0){if((At=Ht.value)!=null&&At.field){const Er=Se.get(Ht.value.field);if(Er&&((Zt=Er.sortable)==null?void 0:Zt.sorter)!==!0){const{field:di,direction:Zi}=Ht.value;hn.sort((As,Fu)=>{var _c;const Fr=ym(As.raw,di),_r=ym(Fu.raw,di);if((_c=Er.sortable)!=null&&_c.sorter&&Sn(Er.sortable.sorter))return Er.sortable.sorter(As.raw,Fu.raw,{dataIndex:di,direction:Zi});const mo=Fr>_r?1:-1;return Zi==="descend"?-mo:mo})}}const{sourcePath:En,targetPath:Zn}=An;if(An.dragging&&Zn.length&&Zn.toString()!==En.toString()&&En.length===Zn.length&&En.slice(0,-1).toString()===Zn.slice(0,-1).toString()){let Er=hn;for(let di=0;di=En.length-1){const Fu=Er[Zi],_c=Zn[di];_c>Zi?(Er.splice(_c+1,0,Fu),Er.splice(Zi,1)):(Er.splice(_c,0,Fu),Er.splice(Zi+1,1))}else Er=(on=Er[Zi].children)!=null?on:[]}}}return hn}),{page:Ur,pageSize:se,handlePageChange:re,handlePageSizeChange:ne}=lze(e,t),J=F(()=>{var At,Zt;return(Zt=(At=a.value)==null?void 0:At.onlyCurrent)!=null?Zt:!1});It(Ur,(At,Zt)=>{At!==Zt&&J.value&&Ut()});const de=F(()=>e.pagination&&ar.value.length>se.value?ar.value.slice((Ur.value-1)*se.value,Ur.value*se.value):ar.value),ke=F(()=>gve(de.value)),we=()=>Fe.value.reduce((At,Zt,on)=>{if(Zt.dataIndex)if(on===0)Z8(At,Zt.dataIndex,e.summaryText,{addPath:!0});else{let hn=0,En=!1;de.value.forEach(Zn=>{if(Zt.dataIndex){const Er=ym(Zn.raw,Zt.dataIndex);et(Er)?hn+=Er:!wn(Er)&&!Al(Er)&&(En=!0)}}),Z8(At,Zt.dataIndex,En?"":hn,{addPath:!0})}return At},{}),Te=At=>At&&At.length>0?At.map(Zt=>({raw:Zt,key:Zt[e.rowKey]})):[],rt=F(()=>e.summary?Sn(e.summary)?Te(e.summary({columns:Fe.value,data:ke.value})):Te([we()]):[]),ot=ue(0),yt=ue(!0),De=ue(!0),st=()=>{let At=!0,Zt=!0;const on=Q.value;on&&(At=ot.value===0,Zt=Math.ceil(ot.value+on.offsetWidth)>=on.scrollWidth),At!==yt.value&&(yt.value=At),Zt!==De.value&&(De.value=Zt)},ut=()=>yt.value&&De.value?`${E}-scroll-position-both`:yt.value?`${E}-scroll-position-left`:De.value?`${E}-scroll-position-right`:`${E}-scroll-position-middle`,Mt=()=>{const At=[];return _e.value&&At.push(`${E}-has-fixed-col-left`),me.value&&At.push(`${E}-has-fixed-col-right`),At},Qt=At=>{At.target.scrollLeft!==ot.value&&(ot.value=At.target.scrollLeft),st()},Kt=At=>{Qt(At);const{scrollLeft:Zt}=At.target;Y.value&&(Y.value.scrollLeft=Zt),j.value&&(j.value.scrollLeft=Zt)},pn=(At,Zt)=>{t("rowClick",At.raw,Zt)},mn=(At,Zt)=>{t("rowDblclick",At.raw,Zt)},ln=(At,Zt)=>{t("rowContextmenu",At.raw,Zt)},dr=(At,Zt,on)=>{t("cellClick",At.raw,Zt,on)},tr=o_((At,Zt,on)=>{t("cellMouseEnter",At.raw,Zt,on)},30),_n=o_((At,Zt,on)=>{t("cellMouseLeave",At.raw,Zt,on)},30),Yn=(At,Zt,on)=>{t("cellDblclick",At.raw,Zt,on)},fr=(At,Zt,on)=>{t("cellContextmenu",At.raw,Zt,on)},ir=(At,Zt)=>{t("headerClick",At,Zt)},Ln=F(()=>{var At,Zt;const on=[],hn=_e.value||me.value;let En,Zn,Er;((At=e.draggable)==null?void 0:At.type)==="handle"&&(En={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||hn},on.push(En)),e.expandable&&(Zn={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||hn},on.push(Zn)),e.rowSelection&&(Er={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||hn},on.push(Er)),!ge.value&&on.length>0&&on[on.length-1].fixed&&(on[on.length-1].isLastLeftFixed=!0);const di=(Zt=e.components)==null?void 0:Zt.operations;return Sn(di)?di({dragHandle:En,expand:Zn,selection:Er}):on}),or=F(()=>{var At,Zt,on,hn;if(B.value.x){const En={width:et((At=e.scroll)==null?void 0:At.x)?`${(Zt=e.scroll)==null?void 0:Zt.x}px`:(on=e.scroll)==null?void 0:on.x};return(hn=e.scroll)!=null&&hn.minWidth&&(En.minWidth=et(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),En}}),vr=F(()=>{var At,Zt,on,hn;if(B.value.x&&de.value.length>0){const En={width:et((At=e.scroll)==null?void 0:At.x)?`${(Zt=e.scroll)==null?void 0:Zt.x}px`:(on=e.scroll)==null?void 0:on.x};return(hn=e.scroll)!=null&&hn.minWidth&&(En.minWidth=et(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),En}});oi(f3,Wt({loadMore:l,addLazyLoadData:Gt,slots:n,sorter:Ht,filters:ct,filterIconAlignLeft:c,resizingColumn:Re,checkStrictly:M,currentAllEnabledRowKeys:Ce,currentSelectedRowKeys:$e,addColumn:(At,Zt)=>{q.set(At,Zt)},removeColumn:At=>{q.delete(At)},onSelectAll:Le,onSelect:dt,onSelectAllLeafs:Qe,onSorterChange:at,onFilterChange:Ke,onThMouseDown:nt}));const bi=F(()=>[E,`${E}-size-${e.size}`,{[`${E}-border`]:T.value.wrapper,[`${E}-border-cell`]:T.value.cell,[`${E}-border-header-cell`]:!T.value.cell&&T.value.headerCell,[`${E}-border-body-cell`]:!T.value.cell&&T.value.bodyCell,[`${E}-stripe`]:e.stripe,[`${E}-hover`]:e.hoverable,[`${E}-dragging`]:An.dragging,[`${E}-type-selection`]:!!e.rowSelection,[`${E}-empty`]:e.data&&de.value.length===0,[`${E}-layout-fixed`]:e.tableLayoutFixed||B.value.x||ie.value||Be.value}]),ui=F(()=>[`${E}-pagination`,{[`${E}-pagination-left`]:e.pagePosition==="tl"||e.pagePosition==="bl",[`${E}-pagination-center`]:e.pagePosition==="top"||e.pagePosition==="bottom",[`${E}-pagination-right`]:e.pagePosition==="tr"||e.pagePosition==="br",[`${E}-pagination-top`]:Ie.value}]),La=F(()=>{const At=Mt();return B.value.x&&At.push(ut()),ie.value&&At.push(`${E}-scroll-y`),At}),Cn=F(()=>!!e.virtualListProps),Zr=ue({}),Es=()=>{const At={};for(const Zt of Object.keys(H.value))At[Zt]=H.value[Zt].offsetWidth;Zr.value=At},Fo=ue(!1),qo=()=>oe.value?oe.value.offsetWidth>oe.value.clientWidth:!1,ci=()=>{const At=qo();Fo.value!==At&&(Fo.value=At),st(),Es()};fn(()=>{Fo.value=qo(),Es()});const tu=F(()=>gr(e.loading)?e.loading:{loading:e.loading}),Ll=()=>O(wh,{empty:!0},{default:()=>[O(o0,{colSpan:Fe.value.length+Ln.value.length},{default:()=>{var At,Zt,on,hn,En;return[(En=(hn=(At=n.empty)==null?void 0:At.call(n))!=null?hn:(on=_==null?void 0:(Zt=_.slots).empty)==null?void 0:on.call(Zt,{component:"table"}))!=null?En:O(Jh,null,null)]}})]}),jo=At=>{var Zt;if(At.expand)return Sn(At.expand)?At.expand():At.expand;if(n["expand-row"])return n["expand-row"]({record:At.raw});if((Zt=e.expandable)!=null&&Zt.expandedRowRender)return e.expandable.expandedRowRender(At.raw)},vc=F(()=>[].concat(Ln.value,Fe.value)),cg=F(()=>e.spanAll?vc.value:Fe.value),{tableSpan:Of,removedCells:nu}=Yre({spanMethod:y,data:de,columns:cg}),{tableSpan:mc,removedCells:ip}=Yre({spanMethod:k,data:rt,columns:vc}),Ns=At=>{if(!(!Cn.value||!At||!Zr.value[At]))return{width:`${Zr.value[At]}px`}},$f=(At,Zt)=>O(wh,{key:`table-summary-${Zt}`,class:[`${E}-tr-summary`,Sn(e.rowClass)?e.rowClass(At.raw,Zt):e.rowClass],onClick:on=>pn(At,on)},{default:()=>[Ln.value.map((on,hn)=>{var En;const Zn=`${Zt}-${hn}-${At.key}`,[Er,di]=(En=mc.value[Zn])!=null?En:[1,1];if(ip.value.includes(Zn))return null;const Zi=Ns(on.name);return O(Gre,{style:Zi,operationColumn:on,operations:Ln.value,record:At,rowSpan:Er,colSpan:di,summary:!0},null)}),Fe.value.map((on,hn)=>{var En;const Zn=`${Zt}-${Ln.value.length+hn}-${At.key}`,[Er,di]=(En=mc.value[Zn])!=null?En:[1,1];if(ip.value.includes(Zn))return null;const Zi=Ns(on.dataIndex);return O(o0,{key:`td-${Zn}`,style:Zi,rowIndex:Zt,record:At,column:on,operations:Ln.value,dataColumns:Fe.value,rowSpan:Er,colSpan:di,summary:!0,onClick:As=>dr(At,on,As),onDblclick:As=>Yn(At,on,As),onMouseenter:As=>tr(At,on,As),onMouseleave:As=>_n(At,on,As),onContextmenu:As=>fr(At,on,As)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),sd=()=>rt.value&&rt.value.length>0?O("tfoot",null,[rt.value.map((At,Zt)=>$f(At,Zt))]):null,jd=(At,Zt=!0)=>{var on,hn,En,Zn,Er;const di=At.key,Zi=Lt.value.includes(di);return O("button",{type:"button",class:`${E}-expand-btn`,onClick:As=>{Xt(di,At.raw),Zt&&As.stopPropagation()}},[(Er=(Zn=(on=n["expand-icon"])==null?void 0:on.call(n,{expanded:Zi,record:At.raw}))!=null?Zn:(En=(hn=e.expandable)==null?void 0:hn.icon)==null?void 0:En.call(hn,Zi,At.raw))!=null?Er:O(Zi?T0:xf,null,null)])},Bu=(At,{indentSize:Zt,indexPath:on,allowDrag:hn,expandContent:En})=>{var Zn,Er;if(At.hasSubtree)return((Zn=At.children)==null?void 0:Zn.length)===0&&x.value?Ll():(Er=At.children)==null?void 0:Er.map((di,Zi)=>nl(di,Zi,{indentSize:Zt,indexPath:on,allowDrag:hn}));if(En){const di=Q.value;return O(wh,{key:`${At.key}-expand`,expand:!0},{default:()=>[O(o0,{isFixedExpand:_e.value||me.value,containerWidth:di?.clientWidth,colSpan:Fe.value.length+Ln.value.length},Aze(En)?En:{default:()=>[En]})]})}return null},nl=(At,Zt,{indentSize:on=0,indexPath:hn,allowDrag:En=!0}={})=>{var Zn;const Er=At.key,di=(hn??[]).concat(Zt),Zi=jo(At),As=Lt.value.includes(Er),Fu=An.sourceKey===At.key,_c=sn.value?{draggable:En,onDragstart:_r=>{En&&un(_r,At.key,di,At.raw)},onDragend:_r=>{En&&ro(_r)}}:{},Fr=sn.value?{onDragenter:_r=>{En&&Xn(_r,di)},onDragover:_r=>{En&&Cr(_r)},onDrop:_r=>{En&&(Ye("drag"),$t(_r))}}:{};return O(Pt,null,[O(wh,Ft({key:Er,class:[{[`${E}-tr-draggable`]:sn.value==="row",[`${E}-tr-drag`]:Fu},Sn(e.rowClass)?e.rowClass(At.raw,Zt):e.rowClass],rowIndex:Zt,record:At,checked:e.rowSelection&&((Zn=We.value)==null?void 0:Zn.includes(Er)),onClick:_r=>pn(At,_r),onDblclick:_r=>mn(At,_r),onContextmenu:_r=>ln(At,_r)},sn.value==="row"?_c:{},Fr),{default:()=>[Ln.value.map((_r,mo)=>{var Da;const li=`${Zt}-${mo}-${At.key}`,[Pa,Mn]=e.spanAll?(Da=Of.value[li])!=null?Da:[1,1]:[1,1];if(e.spanAll&&nu.value.includes(li))return null;const ju=Ns(_r.name);return O(Gre,Ft({key:`operation-td-${mo}`,style:ju,operationColumn:_r,operations:Ln.value,record:At,hasExpand:!!Zi,selectedRowKeys:$e.value,rowSpan:Pa,colSpan:Mn,renderExpandBtn:jd},sn.value==="handle"?_c:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),Fe.value.map((_r,mo)=>{var Da;const li=`${Zt}-${e.spanAll?Ln.value.length+mo:mo}-${At.key}`,[Pa,Mn]=(Da=Of.value[li])!=null?Da:[1,1];if(nu.value.includes(li))return null;const ju=mo===0?{showExpandBtn:At.hasSubtree,indentSize:At.hasSubtree?on-20:on}:{},RS=Ns(_r.dataIndex);return O(o0,Ft({key:`td-${mo}`,style:RS,rowIndex:Zt,record:At,column:_r,operations:Ln.value,dataColumns:Fe.value,rowSpan:Pa,renderExpandBtn:jd,colSpan:Mn},ju,{onClick:Fs=>dr(At,_r,Fs),onDblclick:Fs=>Yn(At,_r,Fs),onMouseenter:Fs=>tr(At,_r,Fs),onMouseleave:Fs=>_n(At,_r,Fs),onContextmenu:Fs=>fr(At,_r,Fs)}),{td:n.td})})],tr:n.tr}),As&&Bu(At,{indentSize:on+e.indentSize,indexPath:di,allowDrag:En&&!Fu,expandContent:Zi})])},Ts=()=>{const At=de.value.some(Zt=>!!Zt.hasSubtree);return O(pb,null,{default:()=>[de.value.length>0?de.value.map((Zt,on)=>nl(Zt,on,{indentSize:At?20:0})):Ll()],tbody:n.tbody})},op=()=>O(hb,null,{default:()=>[ve.value.map((At,Zt)=>O(wh,{key:`header-row-${Zt}`},{default:()=>[Zt===0&&Ln.value.map((on,hn)=>{var En;return O(wze,{key:`operation-th-${hn}`,ref:Zn=>{Zn?.$el&&on.name&&(H.value[on.name]=Zn.$el)},operationColumn:on,operations:Ln.value,selectAll:!!(on.name==="selection-checkbox"&&((En=e.rowSelection)!=null&&En.showCheckedAll)),rowSpan:ve.value.length},null)}),At.map((on,hn)=>{const En=e.columnResizable&&!!on.dataIndex&&hn{Zn?.$el&&on.dataIndex&&(H.value[on.dataIndex]=Zn.$el)},column:on,operations:Ln.value,dataColumns:Fe.value,resizable:En,onClick:Zn=>ir(on,Zn)},{th:n.th})})]}))],thead:n.thead}),gc=()=>{var At,Zt;if(ie.value){const on=et(e.stickyHeader)?`${e.stickyHeader}px`:void 0,hn=[(At=L.value)==null?void 0:At.outerClass];e.stickyHeader&&hn.push(`${E}-header-sticky`);const En={top:on,...(Zt=L.value)==null?void 0:Zt.outerStyle},Zn=$.value?Rd:"div";return O(Pt,null,[e.showHeader&&O(Zn,Ft({ref:ee,class:[`${E}-header`,{[`${E}-header-sticky`]:e.stickyHeader&&!$.value}],style:{overflowY:Fo.value?"scroll":void 0,top:$.value?void 0:on}},w.value?{hide:de.value.length!==0,disableVertical:!0,...L.value,outerClass:hn,outerStyle:En}:void 0),{default:()=>[O("table",{class:`${E}-element`,style:or.value,cellpadding:0,cellspacing:0},[O(Aw,{dataColumns:Fe.value,operations:Ln.value,columnWidth:Ge},null),op()])]}),O(Dd,{onResize:ci},{default:()=>{var Er,di;return[Cn.value&&de.value.length?O(c3,Ft({ref:Zi=>{Zi?.$el&&(oe.value=Zi.$el)},class:`${E}-body`,data:de.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${E}-element`,style:vr.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:Kt}),{item:({item:Zi,index:As})=>nl(Zi,As)}):O(Zn,Ft({ref:K,class:`${E}-body`,style:{maxHeight:et((Er=e.scroll)==null?void 0:Er.y)?`${(di=e.scroll)==null?void 0:di.y}px`:"100%"}},w.value?{outerStyle:{display:"flex",minHeight:"0"},...L.value}:void 0,{onScroll:Kt}),{default:()=>[O("table",{class:`${E}-element`,style:vr.value,cellpadding:0,cellspacing:0},[de.value.length!==0&&O(Aw,{dataColumns:Fe.value,operations:Ln.value,columnWidth:Ge},null),Ts()])]})]}}),rt.value&&rt.value.length>0&&O("div",{ref:j,class:`${E}-tfoot`,style:{overflowY:Fo.value?"scroll":"hidden"}},[O("table",{class:`${E}-element`,style:vr.value,cellpadding:0,cellspacing:0},[O(Aw,{dataColumns:Fe.value,operations:Ln.value,columnWidth:Ge},null),sd()])])])}return O(Dd,{onResize:()=>st()},{default:()=>[O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0,style:vr.value},[O(Aw,{dataColumns:Fe.value,operations:Ln.value,columnWidth:Ge},null),e.showHeader&&op(),Ts(),rt.value&&rt.value.length>0&&sd()])]})},yc=At=>{var Zt;const on=(Zt=e.scroll)!=null&&Zt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,hn=$.value?Rd:"div";return O(Pt,null,[O("div",{class:[`${E}-container`,La.value]},[O(hn,Ft({ref:U,class:[`${E}-content`,{[`${E}-content-scroll-x`]:!ie.value}],style:on},w.value?{outerStyle:{height:"100%"},...L.value}:void 0,{onScroll:Qt}),{default:()=>[At?O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0},[At()]):gc()]})]),n.footer&&O("div",{class:`${E}-footer`},[n.footer()])])},Nu=()=>{var At,Zt;const on=gr(e.pagination)?Ea(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return O("div",{class:ui.value},[(At=n["pagination-left"])==null?void 0:At.call(n),O(NH,Ft({total:kr.value.length,current:Ur.value,pageSize:se.value,onChange:hn=>{re(hn),Ye("pagination")},onPageSizeChange:hn=>{ne(hn),Ye("pagination")}},on),null),(Zt=n["pagination-right"])==null?void 0:Zt.call(n)])},bc=F(()=>{var At,Zt;if(hs((At=e.scroll)==null?void 0:At.y))return{height:(Zt=e.scroll)==null?void 0:Zt.y}});return{render:()=>{var At;return n.default?O("div",{class:bi.value},[yc(n.default)]):(D.value=(At=n.columns)==null?void 0:At.call(n),O("div",{class:bi.value,style:bc.value},[D.value,O(Pd,tu.value,{default:()=>[e.pagination!==!1&&(de.value.length>0||ar.value.length>0)&&Ie.value&&Nu(),yc(),e.pagination!==!1&&(de.value.length>0||ar.value.length>0)&&!Ie.value&&Nu()]})]))},selfExpand:Dn,selfExpandAll:rr,selfSelect:ht,selfSelectAll:Vt,selfResetFilters:Ct,selfClearFilters:xt,selfResetSorters:Jt,selfClearSorters:rn}},methods:{selectAll(e){return this.selfSelectAll(e)},select(e,t){return this.selfSelect(e,t)},expandAll(e){return this.selfExpandAll(e)},expand(e,t){return this.selfExpand(e,t)},resetFilters(e){return this.selfResetFilters(e)},clearFilters(e){return this.selfClearFilters(e)},resetSorters(){return this.selfResetSorters()},clearSorters(){return this.selfClearSorters()}},render(){return this.render()}});const dd=(e,t)=>{const n=Pu(e,t),r=ue(n.value);return It(n,(i,a)=>{u3(i,a)||(r.value=i)}),r};var eE=xe({name:"TableColumn",props:{dataIndex:String,title:String,width:Number,minWidth:Number,align:{type:String},fixed:{type:String},ellipsis:{type:Boolean,default:!1},sortable:{type:Object,default:void 0},filterable:{type:Object,default:void 0},cellClass:{type:[String,Array,Object]},headerCellClass:{type:[String,Array,Object]},bodyCellClass:{type:[String,Array,Object,Function]},summaryCellClass:{type:[String,Array,Object,Function]},cellStyle:{type:Object},headerCellStyle:{type:Object},bodyCellStyle:{type:[Object,Function]},summaryCellStyle:{type:[Object,Function]},index:{type:Number},tooltip:{type:[Boolean,Object],default:!1}},setup(e,{slots:t}){var n;const{dataIndex:r,title:i,width:a,align:s,fixed:l,ellipsis:c,index:d,minWidth:h}=tn(e),p=dd(e,"sortable"),v=dd(e,"filterable"),g=dd(e,"cellClass"),y=dd(e,"headerCellClass"),S=dd(e,"bodyCellClass"),k=dd(e,"summaryCellClass"),w=dd(e,"cellStyle"),x=dd(e,"headerCellStyle"),E=dd(e,"bodyCellStyle"),_=dd(e,"summaryCellStyle"),T=dd(e,"tooltip"),D=So(),P=Pn(f3,{}),M=Pn(Hre,void 0),{children:$,components:L}=rS("TableColumn"),B=Wt(new Map);oi(Hre,{addChild:(K,oe)=>{B.set(K,oe)},removeChild:K=>{B.delete(K)}});const U=ue();It([L,B],([K,oe])=>{if(K.length>0){const ae=[];K.forEach(ee=>{const Y=oe.get(ee);Y&&ae.push(Y)}),U.value=ae}else U.value=void 0});const W=Wt({dataIndex:r,title:i,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:v,cellClass:g,headerCellClass:y,bodyCellClass:S,summaryCellClass:k,cellStyle:w,headerCellStyle:x,bodyCellStyle:E,summaryCellStyle:_,index:d,tooltip:T,children:U,slots:t});return D&&(M?M.addChild(D.uid,W):(n=P.addColumn)==null||n.call(P,D.uid,W)),_o(()=>{var K;D&&(M?M.removeChild(D.uid):(K=P.removeColumn)==null||K.call(P,D.uid))}),()=>{var K;return $.value=(K=t.default)==null?void 0:K.call(t),$.value}}});const Ize=Object.assign(TM,{Thead:hb,Tbody:pb,Tr:wh,Th:vb,Td:o0,Column:eE,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+TM.name,TM),e.component(n+hb.name,hb),e.component(n+pb.name,pb),e.component(n+wh.name,wh),e.component(n+vb.name,vb),e.component(n+o0.name,o0),e.component(n+eE.name,eE)}}),Lze=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},Dze=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},qH=Symbol("ArcoTabs"),Pze=xe({name:"TabsTab",components:{IconHover:Lo,IconClose:rs},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Me("tabs-tab"),r=Pn(qH,{}),i=d=>{e.tab.disabled||t("click",e.tab.key,d)},a=d=>{d.key==="Enter"&&i(d)},s=F(()=>Object.assign(r.trigger==="click"?{onClick:i}:{onMouseover:i},{onKeydown:a})),l=d=>{e.tab.disabled||t("delete",e.tab.key,d)},c=F(()=>[n,{[`${n}-active`]:e.active,[`${n}-closable`]:e.editable&&e.tab.closable,[`${n}-disabled`]:e.tab.disabled}]);return{prefixCls:n,cls:c,eventHandlers:s,handleDelete:l}}});function Rze(e,t,n,r,i,a){const s=Ee("icon-close"),l=Ee("icon-hover");return z(),X("div",Ft({tabindex:"0",class:e.cls},e.eventHandlers),[I("span",{class:fe(`${e.prefixCls}-title`)},[mt(e.$slots,"default")],2),e.editable&&e.tab.closable?(z(),Ze(l,{key:0,class:fe(`${e.prefixCls}-close-btn`),onClick:fs(e.handleDelete,["stop"])},{default:ce(()=>[O(s)]),_:1},8,["class","onClick"])):Ae("v-if",!0)],16)}var Mze=Ue(Pze,[["render",Rze]]);function Oze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var Zre=xe({name:"TabsButton",props:{type:{type:String,default:"next"},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},onClick:{type:Function}},emits:["click"],setup(e,{emit:t}){const n=Me("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},i=()=>e.direction==="horizontal"?e.type==="next"?O(Hi,null,null):O(Il,null,null):e.type==="next"?O(Qh,null,null):O(nS,null,null),a=F(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-left`]:e.direction==="horizontal"&&e.type==="previous",[`${n}-right`]:e.direction==="horizontal"&&e.type==="next",[`${n}-up`]:e.direction==="vertical"&&e.type==="previous",[`${n}-down`]:e.direction==="vertical"&&e.type==="next"}]);return()=>{let s;return O("div",{class:a.value,onClick:r},[O(Lo,{disabled:e.disabled},Oze(s=i())?s:{default:()=>[s]})])}}});const $ze=xe({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=tn(e),n=Me("tabs-nav-ink"),r=ue(0),i=ue(0),a=F(()=>e.direction==="vertical"?{top:`${r.value}px`,height:`${i.value}px`}:{left:`${r.value}px`,width:`${i.value}px`}),s=()=>{if(t.value){const c=e.direction==="vertical"?t.value.offsetTop:t.value.offsetLeft,d=e.direction==="vertical"?t.value.offsetHeight:t.value.offsetWidth;(c!==r.value||d!==i.value)&&(r.value=c,i.value=d)}};fn(()=>{dn(()=>s())}),tl(()=>{s()});const l=F(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function Bze(e,t,n,r,i,a){return z(),X("div",{class:fe(e.cls),style:qe(e.style)},null,6)}var Nze=Ue($ze,[["render",Bze]]),Fze=xe({name:"TabsNav",props:{tabs:{type:Array,required:!0},direction:{type:String,required:!0},type:{type:String,required:!0},activeKey:{type:[String,Number]},activeIndex:{type:Number,required:!0},position:{type:String,required:!0},size:{type:String,required:!0},showAddButton:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},animation:{type:Boolean,required:!0},headerPadding:{type:Boolean,default:!0},scrollPosition:{type:String,default:"auto"}},emits:["click","add","delete"],setup(e,{emit:t,slots:n}){const{tabs:r,activeKey:i,activeIndex:a,direction:s,scrollPosition:l}=tn(e),c=Me("tabs-nav"),d=ue(),h=ue(),p=ue({}),v=F(()=>{if(!wn(i.value))return p.value[i.value]}),g=ue(),y=F(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),S=ue(!1),k=ue(0),w=ue(0),x=ue(0),E=()=>{var ee,Y,Q;return(Q=s.value==="vertical"?(ee=d.value)==null?void 0:ee.offsetHeight:(Y=d.value)==null?void 0:Y.offsetWidth)!=null?Q:0},_=()=>!h.value||!d.value?0:s.value==="vertical"?h.value.offsetHeight-d.value.offsetHeight:h.value.offsetWidth-d.value.offsetWidth,T=()=>{S.value=D(),S.value?(k.value=E(),w.value=_(),x.value>w.value&&(x.value=w.value)):x.value=0},D=()=>d.value&&h.value?e.direction==="vertical"?h.value.offsetHeight>d.value.offsetHeight:h.value.offsetWidth>d.value.offsetWidth:!1,P=ee=>{(!d.value||!h.value||ee<0)&&(ee=0),x.value=Math.min(ee,w.value)},M=()=>{if(!v.value||!d.value||!S.value)return;Dze(d.value,s.value);const ee=s.value==="horizontal",Y=ee?"offsetLeft":"offsetTop",Q=ee?"offsetWidth":"offsetHeight",ie=v.value[Y],q=v.value[Q],te=d.value[Q],Se=window.getComputedStyle(v.value),Fe=ee?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",ve=parseFloat(Se[Fe])||0;l.value==="auto"?iex.value+te&&P(ie+q-te+ve):l.value==="center"?P(ie+(q-te+ve)/2):l.value==="start"?P(ie-ve):l.value==="end"?P(ie+q-te+ve):et(l.value)&&P(ie-l.value)},$=ee=>{if(!S.value)return;ee.preventDefault();const{deltaX:Y,deltaY:Q}=ee;Math.abs(Y)>Math.abs(Q)?P(x.value+Y):P(x.value+Q)},L=(ee,Y)=>{t("click",ee,Y)},B=(ee,Y)=>{t("delete",ee,Y),dn(()=>{delete p.value[ee]})},j=ee=>{const Y=ee==="previous"?x.value-k.value:x.value+k.value;P(Y)},H=()=>{T(),g.value&&g.value.$forceUpdate()};It(r,()=>{dn(()=>{T()})}),It([a,l],()=>{setTimeout(()=>{M()},0)}),fn(()=>{T(),d.value&&Mi(d.value,"wheel",$,{passive:!1})}),Yr(()=>{d.value&&no(d.value,"wheel",$)});const U=()=>!y.value||!e.showAddButton?null:O("div",{class:`${c}-add-btn`,onClick:ee=>t("add",ee)},[O(Lo,null,{default:()=>[O(xf,null,null)]})]),W=F(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),K=F(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),oe=F(()=>Lze({direction:e.direction,type:e.type,offset:x.value})),ae=F(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var ee;return O("div",{class:W.value},[S.value&&O(Zre,{type:"previous",direction:e.direction,disabled:x.value<=0,onClick:j},null),O(Dd,{onResize:()=>T()},{default:()=>[O("div",{class:ae.value,ref:d},[O(Dd,{onResize:H},{default:()=>[O("div",{ref:h,class:K.value,style:oe.value},[e.tabs.map((Y,Q)=>O(Mze,{key:Y.key,ref:ie=>{ie?.$el&&(p.value[Y.key]=ie.$el)},active:Y.key===i.value,tab:Y,editable:e.editable,onClick:L,onDelete:B},{default:()=>{var ie,q,te;return[(te=(q=(ie=Y.slots).title)==null?void 0:q.call(ie))!=null?te:Y.title]}})),e.type==="line"&&v.value&&O(Nze,{ref:g,activeTabRef:v.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&U()])]}),S.value&&O(Zre,{type:"next",direction:e.direction,disabled:x.value>=w.value,onClick:j},null),O("div",{class:`${c}-extra`},[S.value&&U(),(ee=n.extra)==null?void 0:ee.call(n)])])}}}),AM=xe({name:"Tabs",props:{activeKey:{type:[String,Number],default:void 0},defaultActiveKey:{type:[String,Number],default:void 0},position:{type:String,default:"top"},size:{type:String},type:{type:String,default:"line"},direction:{type:String,default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destroyOnHide:{type:Boolean,default:!1},lazyLoad:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{type:String,default:"click"},scrollPosition:{type:[String,Number],default:"auto"}},emits:{"update:activeKey":e=>!0,change:e=>!0,tabClick:(e,t)=>!0,add:e=>!0,delete:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r,lazyLoad:i,destroyOnHide:a,trigger:s}=tn(e),l=Me("tabs"),{mergedSize:c}=Aa(r),d=F(()=>e.direction==="vertical"?"left":e.position),h=F(()=>["left","right"].includes(d.value)?"vertical":"horizontal"),{children:p,components:v}=rS("TabPane"),g=Wt(new Map),y=F(()=>{const B=[];return v.value.forEach(j=>{const H=g.get(j);H&&B.push(H)}),B}),S=F(()=>y.value.map(B=>B.key)),k=(B,j)=>{g.set(B,j)},w=B=>{g.delete(B)},x=ue(e.defaultActiveKey),E=F(()=>{var B;const j=(B=e.activeKey)!=null?B:x.value;return wn(j)?S.value[0]:j}),_=F(()=>{const B=S.value.indexOf(E.value);return B===-1?0:B});oi(qH,Wt({lazyLoad:i,destroyOnHide:a,activeKey:E,addItem:k,removeItem:w,trigger:s}));const T=B=>{B!==E.value&&(x.value=B,t("update:activeKey",B),t("change",B))},D=(B,j)=>{T(B),t("tabClick",B,j)},P=B=>{t("add",B),e.autoSwitch&&dn(()=>{const j=S.value[S.value.length-1];T(j)})},M=(B,j)=>{t("delete",B,j)},$=()=>O("div",{class:[`${l}-content`,{[`${l}-content-hide`]:e.hideContent}]},[O("div",{class:[`${l}-content-list`,{[`${l}-content-animation`]:e.animation}],style:{marginLeft:`-${_.value*100}%`}},[p.value])]),L=F(()=>[l,`${l}-${h.value}`,`${l}-${d.value}`,`${l}-type-${e.type}`,`${l}-size-${c.value}`,{[`${l}-justify`]:e.justify}]);return()=>{var B;return p.value=(B=n.default)==null?void 0:B.call(n),O("div",{class:L.value},[d.value==="bottom"&&$(),O(Fze,{tabs:y.value,activeKey:E.value,activeIndex:_.value,direction:h.value,position:d.value,editable:e.editable,animation:e.animation,showAddButton:e.showAddButton,headerPadding:e.headerPadding,scrollPosition:e.scrollPosition,size:c.value,type:e.type,onClick:D,onAdd:P,onDelete:M},{extra:n.extra}),d.value!=="bottom"&&$()])}}});const jze=xe({name:"TabPane",props:{title:String,disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const{title:r,disabled:i,closable:a}=tn(e),s=So(),l=Me("tabs"),c=Pn(qH,{}),d=ue(),h=F(()=>s?.vnode.key),p=F(()=>h.value===c.activeKey),v=ue(c.lazyLoad?p.value:!0),g=Wt({key:h,title:r,disabled:i,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),_o(()=>{var y;s?.uid&&((y=c.removeItem)==null||y.call(c,s.uid))}),It(p,y=>{y?v.value||(v.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(v.value=!1)}),tl(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:d,mounted:v}}});function Vze(e,t,n,r,i,a){return z(),X("div",{ref:"itemRef",class:fe([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-pane`)},[mt(e.$slots,"default")],2)):Ae("v-if",!0)],2)}var tE=Ue(jze,[["render",Vze]]);const zze=Object.assign(AM,{TabPane:tE,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+AM.name,AM),e.component(n+tE.name,tE)}});function Uze(e){const{modelValue:t,defaultValue:n,format:r,isRange:i}=tn(e);function a(){return i.value?[]:void 0}function s(k){if(!wn(k))return i.value?nr(k)?k:[k,void 0]:k}const l=F(()=>{const k=s(t.value);return hc(k,r.value)}),c=F(()=>{const k=s(n.value);return hc(k,r.value)}),[d,h]=Ya(wn(l.value)?wn(c.value)?a():c.value:l.value);It(l,()=>{wn(l.value)&&h(a())});const p=F(()=>l.value||d.value),[v,g]=Ya(p.value);It([p],()=>{g(p.value)});const[y,S]=Ya();return It([v],()=>{S(void 0)}),{computedValue:p,panelValue:v,inputValue:y,setValue:h,setPanelValue:g,setInputValue:S}}var Hze=xe({name:"TimePickerRangePanel",components:{Panel:Y8},props:{value:{type:Array},displayIndex:{type:Number,default:0}},emits:["select","confirm","update:displayIndex","display-index-change"],setup(e,{emit:t}){const{value:n,displayIndex:r}=tn(e),i=ue(r.value);It(r,()=>{i.value=r.value});const a=F(()=>n?.value?n.value[i.value]:void 0);function s(c){const d=wn(n)||wn(n?.value)?[]:[...n.value];d[i.value]=c,t("select",d)}function l(){if(D4(n?.value))t("confirm",n?.value);else{const c=(i.value+1)%2;i.value=c,t("display-index-change",c),t("update:displayIndex",c)}}return{displayValue:a,onSelect:s,onConfirm:l}},render(){const e={...this.$attrs,isRange:!0,value:this.displayValue,onSelect:this.onSelect,onConfirm:this.onConfirm};return O(Y8,e,this.$slots)}});const Wze=xe({name:"TimePicker",components:{Trigger:va,DateInput:r0e,DateRangeInput:k0e,Panel:Y8,RangePanel:Hze,IconClockCircle:l_},inheritAttrs:!1,props:{type:{type:String,default:"time"},modelValue:{type:[String,Number,Date,Array]},defaultValue:{type:[String,Number,Date,Array]},disabled:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Array]},size:{type:String},popupContainer:{type:[String,Object]},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},disableConfirm:{type:Boolean},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean}},emits:{change:(e,t)=>!0,"update:modelValue":e=>!0,select:(e,t)=>!0,clear:()=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0},setup(e,{emit:t}){const{type:n,format:r,use12Hours:i,modelValue:a,defaultValue:s,popupVisible:l,defaultPopupVisible:c,disabled:d,placeholder:h,disableConfirm:p,disabledHours:v,disabledMinutes:g,disabledSeconds:y}=tn(e),{mergedDisabled:S,eventHandlers:k}=Do({disabled:d}),w=F(()=>n.value==="time-range"),x=Me("timepicker"),E=ue(),{format:_,use12Hours:T}=LH(Wt({format:r,use12Hours:i})),{computedValue:D,panelValue:P,inputValue:M,setValue:$,setPanelValue:L,setInputValue:B}=Uze(Wt({modelValue:a,defaultValue:s,isRange:w,format:_})),[j,H]=pa(c.value,Wt({value:l})),U=ge=>{ge!==j.value&&(H(ge),t("popup-visible-change",ge),t("update:popupVisible",ge))},{t:W}=No(),[K,oe]=Ya(0),ae=F(()=>{const ge=h?.value;return w.value?wn(ge)?W("datePicker.rangePlaceholder.time"):nr(ge)?ge:[ge,ge]:wn(ge)?W("datePicker.placeholder.time"):ge}),ee=u0e(Wt({disabledHours:v,disabledMinutes:g,disabledSeconds:y}));function Y(ge){var Be,Ye;if(_H(ge,D.value)){const Ke=ff(ge,_.value),at=Cu(ge);t("update:modelValue",Ke),t("change",Ke,at),(Ye=(Be=k.value)==null?void 0:Be.onChange)==null||Ye.call(Be)}}function Q(ge,Be){if(ee(ge))return;let Ye=ge;if(nr(ge)){const Ke=Ms();Ye=ge.map(at=>(at&&(at=at.year(Ke.year()),at=at.month(Ke.month()),at=at.date(Ke.date())),at)),D4(Ye)&&(Ye=i_(Ye)),Ye?.length===0&&(Ye=void 0)}Y(Ye),$(Ye),Be!==j.value&&U(Be)}function ie(ge,Be){L(ge),Be!==j.value&&U(Be)}function q(ge){E.value&&E.value.focus&&E.value.focus(ge)}function te(ge){S.value||(U(ge),ge&&dn(()=>{q(K.value)}))}function Se(ge){const Be=ff(ge,_.value),Ye=Cu(ge);t("select",Be,Ye),p.value&&(!w.value||D4(ge))?Q(ge,!0):(ie(ge,!0),B(void 0))}function Fe(ge){Q(ge,!1)}function ve(){Q(P.value||D.value,!1)}function Re(){if(D4(P.value))Q(P.value,!1);else{const ge=(K.value+1)%2;oe(ge),q(ge)}}function Ge(ge){U(!0);const Be=ge.target.value;if(B(Be),!q8(Be,_.value))return;const Ye=Ms(Be,_.value);ee(Ye)||(p.value?Q(Ye,!0):ie(Ye,!0))}function nt(ge){U(!0);const Be=ge.target.value,Ye=nr(M.value)?[...M.value]:nr(P.value)&&ff(P.value,_.value)||[];if(Ye[K.value]=Be,B(Ye),!q8(Be,_.value))return;const Ke=Ms(Be,_.value);if(ee(Ke))return;const at=nr(P.value)?[...P.value]:[];at[K.value]=Ke,p.value&&D4(at)?Q(at,!0):ie(at,!0)}function Ie(ge){ge.stopPropagation(),L(void 0),Q(void 0,w.value)}It(j,(ge,Be)=>{ge!==Be&&L(D.value),ge||B(void 0)});const _e=F(()=>w.value?{focusedIndex:K.value,onFocusedIndexChange:ge=>{oe(ge)},onChange:nt,onPressEnter:Re}:{onChange:Ge,onPressEnter:ve}),me=F(()=>w.value?{displayIndex:K.value,onDisplayIndexChange:ge=>{oe(ge),q(ge)}}:{});return{refInput:E,isRange:w,prefixCls:x,panelVisible:j,focusedInputIndex:K,computedPlaceholder:ae,panelValue:P,inputValue:M,computedFormat:_,computedUse12Hours:T,inputProps:_e,panelProps:me,mergedDisabled:S,onPanelVisibleChange:te,onInputClear:Ie,onPanelSelect:Se,onPanelConfirm:Fe,onPanelClick:()=>{q(K.value)}}}});function Gze(e,t,n,r,i,a){const s=Ee("IconClockCircle"),l=Ee("Trigger");return z(),Ze(l,Ft({trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,position:e.position,disabled:e.mergedDisabled||e.readonly,"popup-offset":4,"popup-visible":e.panelVisible,"prevent-focus":!0,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer},{...e.triggerProps},{onPopupVisibleChange:e.onPanelVisibleChange}),{content:ce(()=>[I("div",{class:fe(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(z(),Ze(Ca(e.isRange?"RangePanel":"Panel"),Ft(e.panelProps,{value:e.panelValue,visible:e.panelVisible,format:e.computedFormat,"use12-hours":e.computedUse12Hours,step:e.step,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions,"hide-footer":e.disableConfirm,onSelect:e.onPanelSelect,onConfirm:e.onPanelConfirm}),yo({_:2},[e.$slots.extra?{name:"extra-footer",fn:ce(()=>[mt(e.$slots,"extra")]),key:"0"}:void 0]),1040,["value","visible","format","use12-hours","step","disabled-hours","disabled-minutes","disabled-seconds","hide-disabled-options","hide-footer","onSelect","onConfirm"]))],2)]),default:ce(()=>[(z(),Ze(Ca(e.isRange?"DateRangeInput":"DateInput"),Ft({...e.$attrs,...e.inputProps},{ref:"refInput","input-value":e.inputValue,value:e.panelValue,size:e.size,focused:e.panelVisible,format:e.computedFormat,visible:e.panelVisible,disabled:e.mergedDisabled,error:e.error,readonly:e.readonly,editable:!e.readonly,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,onClear:e.onInputClear}),yo({"suffix-icon":ce(()=>[mt(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:ce(()=>[mt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["input-value","value","size","focused","format","visible","disabled","error","readonly","editable","allow-clear","placeholder","onClear"]))]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"])}var IM=Ue(Wze,[["render",Gze]]);const Kze=Object.assign(IM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+IM.name,IM)}}),_ve=Symbol("ArcoTimeline"),qze=(e,t,n,r)=>{let i=["left","right"];n==="horizontal"&&(i=["top","bottom"]);const a=t==="alternate"?r||i[e%2]:t;return i.indexOf(a)>-1?a:i[0]},Yze=xe({name:"TimelineItem",props:{dotColor:{type:String},dotType:{type:String,default:"solid"},lineType:{type:String,default:"solid"},lineColor:{type:String},label:{type:String},position:{type:String}},setup(e){const t=Me("timeline-item"),n=So(),r=Pn(_ve,{}),i=F(()=>{var v,g,y;return(y=(g=r.items)==null?void 0:g.indexOf((v=n?.uid)!=null?v:-1))!=null?y:-1}),a=F(()=>{var v;return(v=r?.direction)!=null?v:"vertical"}),s=F(()=>{var v;return(v=r?.labelPosition)!=null?v:"same"}),l=F(()=>{const{items:v=[],reverse:g,labelPosition:y,mode:S="left"}=r,k=a.value,w=qze(i.value,S,k,e.position);return[t,{[`${t}-${k}-${w}`]:k,[`${t}-label-${y}`]:y,[`${t}-last`]:i.value===(g===!0?0:v.length-1)}]}),c=F(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),d=F(()=>{const{direction:v}=r||{};return{[v==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=F(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=F(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:d,computedDotStyle:p,labelPosition:s}}});function Xze(e,t,n,r,i,a){return z(),X("div",{role:"listitem",class:fe(e.cls)},[I("div",{class:fe(`${e.prefixCls}-dot-wrapper`)},[I("div",{class:fe(e.dotLineCls),style:qe(e.computedDotLineStyle)},null,6),I("div",{class:fe(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-dot-custom`)},[mt(e.$slots,"dot")],2)):(z(),X("div",{key:1,class:fe(e.dotTypeCls),style:qe(e.computedDotStyle)},null,6))],2)],2),I("div",{class:fe(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-content`)},[mt(e.$slots,"default")],2)):Ae("v-if",!0),e.labelPosition!=="relative"?(z(),X("div",{key:1,class:fe(`${e.prefixCls}-label`)},[e.$slots.label?mt(e.$slots,"label",{key:0}):(z(),X(Pt,{key:1},[He(je(e.label),1)],64))],2)):Ae("v-if",!0)],2),e.labelPosition==="relative"?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-label`)},[e.$slots.label?mt(e.$slots,"label",{key:0}):(z(),X(Pt,{key:1},[He(je(e.label),1)],64))],2)):Ae("v-if",!0)],2)}var hy=Ue(Yze,[["render",Xze]]),LM=xe({name:"Timeline",components:{Item:hy,Spin:Pd},props:{reverse:{type:Boolean},direction:{type:String,default:"vertical"},mode:{type:String,default:"left"},pending:{type:[Boolean,String]},labelPosition:{type:String,default:"same"}},setup(e,{slots:t}){const n=Me("timeline"),r=F(()=>e.pending||t.pending),{children:i,components:a}=rS("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:d}=tn(e),h=Wt({items:a,direction:l,reverse:s,labelPosition:c,mode:d});oi(_ve,h);const p=F(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var v,g;return r.value?i.value=(v=t.default)==null?void 0:v.call(t).concat(O(hy,{lineType:"dashed"},{default:()=>[e.pending!==!0&&O("div",null,[e.pending])],dot:()=>{var y,S;return(S=(y=t.dot)==null?void 0:y.call(t))!=null?S:O(Pd,{size:12},null)}})):i.value=(g=t.default)==null?void 0:g.call(t),O("div",{role:"list",class:p.value},[i.value])}}});const Zze=Object.assign(LM,{Item:hy,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+LM.name,LM),e.component(n+hy.name,hy)}}),Jze=xe({name:"IconDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qze=["stroke-width","stroke-linecap","stroke-linejoin"];function eUe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1)]),14,Qze)}var DM=Ue(Jze,[["render",eUe]]);const Ru=Object.assign(DM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DM.name,DM)}}),YH=Symbol("ArcoTransfer");var tUe=xe({name:"TransferListItem",props:{type:{type:String},data:{type:Object,required:!0},allowClear:{type:Boolean},disabled:{type:Boolean},draggable:{type:Boolean},simple:Boolean},setup(e){const t=Me("transfer-list-item"),n=Pn(YH,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},i=F(()=>[t,{[`${t}-disabled`]:e.disabled,[`${t}-draggable`]:e.draggable}]),a=()=>{n?.moveTo([e.data.value],"source")};return()=>{var s,l,c;return O("div",{class:i.value,onClick:r},[e.allowClear||e.simple?O("span",{class:`${t}-content`},[(c=(l=n==null?void 0:(s=n.slots).item)==null?void 0:l.call(s,{label:e.data.label,value:e.data.value}))!=null?c:e.data.label]):O(Wc,{class:[`${t}-content`,`${t}-checkbox`],modelValue:n?.selected,value:e.data.value,onChange:d=>n?.onSelect(d),uninjectGroupContext:!0,disabled:e.disabled},{default:()=>{var d,h,p;return[(p=(h=n==null?void 0:(d=n.slots).item)==null?void 0:h.call(d,{label:e.data.label,value:e.data.value}))!=null?p:e.data.label]}}),e.allowClear&&!e.disabled&&O(Lo,{class:`${t}-remove-btn`,onClick:a},{default:()=>[O(rs,null,null)]})])}}});const nUe=xe({name:"TransferView",components:{Empty:sC,Checkbox:Wc,IconHover:Lo,IconDelete:Ru,InputSearch:z0.Search,List:Z0e,TransferListItem:tUe,Scrollbar:Rd},props:{type:{type:String},dataInfo:{type:Object,required:!0},title:String,data:{type:Array,required:!0},disabled:Boolean,allowClear:Boolean,selected:{type:Array,required:!0},showSearch:Boolean,showSelectAll:Boolean,simple:Boolean,inputSearchProps:{type:Object}},emits:["search"],setup(e,{emit:t}){const n=Me("transfer-view"),r=ue(""),i=Pn(YH,void 0),a=F(()=>e.dataInfo.selected.length),s=F(()=>e.dataInfo.data.length),l=F(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=F(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length{g?i?.onSelect([...e.selected,...e.dataInfo.allValidValues]):i?.onSelect(e.selected.filter(y=>!e.dataInfo.allValidValues.includes(y)))},h=F(()=>e.dataInfo.data.filter(g=>r.value?g.label.includes(r.value):!0));return{prefixCls:n,filteredData:h,filter:r,checked:l,indeterminate:c,countSelected:a,countRendered:s,handleSelectAllChange:d,handleSearch:g=>{t("search",g,e.type)},handleClear:()=>{i?.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:i}}});function rUe(e,t,n,r,i,a){const s=Ee("checkbox"),l=Ee("icon-delete"),c=Ee("icon-hover"),d=Ee("input-search"),h=Ee("transfer-list-item"),p=Ee("list"),v=Ee("Scrollbar"),g=Ee("Empty");return z(),X("div",{class:fe(e.prefixCls)},[I("div",{class:fe(`${e.prefixCls}-header`)},[mt(e.$slots,"title",{countTotal:e.dataInfo.data.length,countSelected:e.dataInfo.selected.length,searchValue:e.filter,checked:e.checked,indeterminate:e.indeterminate,onSelectAllChange:e.handleSelectAllChange,onClear:e.handleClear},()=>[I("span",{class:fe(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(z(),X("span",{key:0,class:fe(`${e.prefixCls}-header-title-simple`)},je(e.title),3)):(z(),Ze(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:ce(()=>[He(je(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(z(),Ze(c,{key:0,disabled:e.disabled,class:fe(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:ce(()=>[O(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Ae("v-if",!0):(z(),X("span",{key:1,class:fe(`${e.prefixCls}-header-count`)},je(e.dataInfo.selected.length)+" / "+je(e.dataInfo.data.length),3))])],2),e.showSearch?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-search`)},[O(d,Ft({modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=y=>e.filter=y),disabled:e.disabled},e.inputSearchProps,{onChange:e.handleSearch}),null,16,["modelValue","disabled","onChange"])],2)):Ae("v-if",!0),I("div",{class:fe(`${e.prefixCls}-body`)},[e.filteredData.length>0?(z(),Ze(v,{key:0},{default:ce(()=>{var y,S;return[mt(e.$slots,"default",{data:e.filteredData,selectedKeys:(y=e.transferCtx)==null?void 0:y.selected,onSelect:(S=e.transferCtx)==null?void 0:S.onSelect},()=>[O(p,{class:fe(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:ce(()=>[(z(!0),X(Pt,null,cn(e.filteredData,k=>(z(),Ze(h,{key:k.value,type:e.type,data:k,simple:e.simple,"allow-clear":e.allowClear,disabled:e.disabled||k.disabled},null,8,["type","data","simple","allow-clear","disabled"]))),128))]),_:1},8,["class"])])]}),_:3})):(z(),Ze(g,{key:1,class:fe(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var iUe=Ue(nUe,[["render",rUe]]);const oUe=xe({name:"Transfer",components:{ArcoButton:Jo,TransferView:iUe,IconLeft:Il,IconRight:Hi},props:{data:{type:Array,default:()=>[]},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},selected:{type:Array,default:void 0},defaultSelected:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},oneWay:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},showSelectAll:{type:Boolean,default:!0},title:{type:Array,default:()=>["Source","Target"]},sourceInputSearchProps:{type:Object},targetInputSearchProps:{type:Object}},emits:{"update:modelValue":e=>!0,"update:selected":e=>!0,change:e=>!0,select:e=>!0,search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{mergedDisabled:r,eventHandlers:i}=Do({disabled:Pu(e,"disabled")}),a=Me("transfer"),s=ue(e.defaultValue),l=F(()=>{var x;return(x=e.modelValue)!=null?x:s.value}),c=ue(e.defaultSelected),d=F(()=>{var x;return(x=e.selected)!=null?x:c.value}),h=F(()=>{var x;return(x=e.title)==null?void 0:x[0]}),p=F(()=>{var x;return(x=e.title)==null?void 0:x[1]}),v=F(()=>{const x={data:[],allValidValues:[],selected:[],validSelected:[]},E={data:[],allValidValues:[],selected:[],validSelected:[]};for(const _ of e.data)l.value.includes(_.value)?(E.data.push(_),_.disabled||E.allValidValues.push(_.value),d.value.includes(_.value)&&(E.selected.push(_.value),_.disabled||E.validSelected.push(_.value))):(x.data.push(_),_.disabled||x.allValidValues.push(_.value),d.value.includes(_.value)&&(x.selected.push(_.value),_.disabled||x.validSelected.push(_.value)));return{sourceInfo:x,targetInfo:E}}),g=(x,E)=>{t("search",x,E)},y=(x,E)=>{var _,T;const D=E==="target"?[...l.value,...x]:l.value.filter(P=>!x.includes(P));k(v.value[E==="target"?"targetInfo":"sourceInfo"].selected),s.value=D,t("update:modelValue",D),t("change",D),(T=(_=i.value)==null?void 0:_.onChange)==null||T.call(_)},S=x=>{const E=x==="target"?v.value.sourceInfo.validSelected:v.value.targetInfo.validSelected;y(E,x)},k=x=>{c.value=x,t("update:selected",x),t("select",x)};oi(YH,Wt({selected:d,slots:n,moveTo:y,onSelect:k}));const w=F(()=>[a,{[`${a}-simple`]:e.simple,[`${a}-disabled`]:r.value}]);return{prefixCls:a,cls:w,dataInfo:v,computedSelected:d,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:S,handleSearch:g}}});function sUe(e,t,n,r,i,a){const s=Ee("transfer-view"),l=Ee("icon-right"),c=Ee("arco-button"),d=Ee("icon-left");return z(),X("div",{class:fe(e.cls)},[O(s,{type:"source",class:fe(`${e.prefixCls}-view-source`),title:e.sourceTitle,"data-info":e.dataInfo.sourceInfo,data:e.dataInfo.sourceInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.sourceInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.source?{name:"default",fn:ce(h=>[mt(e.$slots,"source",qi(wa(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:ce(h=>[mt(e.$slots,"source-title",qi(wa(h)))]),key:"1"}:void 0]),1032,["class","title","data-info","data","disabled","selected","show-search","show-select-all","simple","input-search-props","onSearch"]),e.simple?Ae("v-if",!0):(z(),X("div",{key:0,class:fe([`${e.prefixCls}-operations`])},[O(c,{tabindex:"-1","aria-label":"Move selected right",size:"small",shape:"round",disabled:e.dataInfo.sourceInfo.validSelected.length===0,onClick:t[0]||(t[0]=h=>e.handleClick("target"))},{icon:ce(()=>[mt(e.$slots,"to-target-icon",{},()=>[O(l)])]),_:3},8,["disabled"]),e.oneWay?Ae("v-if",!0):(z(),Ze(c,{key:0,tabindex:"-1","aria-label":"Move selected left",size:"small",shape:"round",disabled:e.dataInfo.targetInfo.validSelected.length===0,onClick:t[1]||(t[1]=h=>e.handleClick("source"))},{icon:ce(()=>[mt(e.$slots,"to-source-icon",{},()=>[O(d)])]),_:3},8,["disabled"]))],2)),O(s,{type:"target",class:fe(`${e.prefixCls}-view-target`),title:e.targetTitle,"data-info":e.dataInfo.targetInfo,data:e.dataInfo.targetInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"allow-clear":e.oneWay,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.targetInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.target?{name:"default",fn:ce(h=>[mt(e.$slots,"target",qi(wa(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:ce(h=>[mt(e.$slots,"target-title",qi(wa(h)))]),key:"1"}:void 0]),1032,["class","title","data-info","data","disabled","selected","allow-clear","show-search","show-select-all","simple","input-search-props","onSearch"])],2)}var PM=Ue(oUe,[["render",sUe]]);const aUe=Object.assign(PM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+PM.name,PM)}}),Sve=Symbol("TreeInjectionKey");function lUe(e){const t=[];function n(r){r&&r.forEach(i=>{t.push(i),n(i.children)})}return n(e),t}function uUe(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function gV(e){return e.selectable&&!e.disabled}function Jre(e){return!e.isLeaf&&e.children}function cUe(e){return Tl(e.isLeaf)?e.isLeaf:!e.children}function yV(e){return Set.prototype.add.bind(e)}function bV(e){return Set.prototype.delete.bind(e)}function _m(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function XH(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{_m(r)&&n.push(r.key,...XH(r))}),n}function kve(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:i}=e;let a=n.parent;for(;a;){if(_m(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(_m))||[];let c=0;const d=l.length;l.some(({key:h})=>{if(r.has(h))c+=1;else if(i.has(h))return c+=.5,!0;return!1}),c&&c!==d?i.add(s):i.delete(s),c&&c===d?r.add(s):r.delete(s)}a=a.parent}}function _V(e){const{node:t,checked:n,checkedKeys:r,indeterminateKeys:i,checkStrictly:a=!1}=e,{key:s}=t,l=new Set(r),c=new Set(i);if(n?l.add(s):l.delete(s),c.delete(s),!a){const d=XH(t);n?d.forEach(yV(l)):d.forEach(bV(l)),d.forEach(bV(c)),kve({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function dUe(e){const{initCheckedKeys:t,key2TreeNode:n,checkStrictly:r,onlyCheckLeaf:i}=e,a=new Set,s=new Set,l=new Set;return r?t.forEach(yV(a)):t.forEach(c=>{var d;const h=n.get(c);if(!h||s.has(c)||i&&((d=h.children)!=null&&d.length))return;const p=XH(h);p.forEach(yV(s)),p.forEach(bV(l)),a.add(c),l.delete(c),kve({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function nA(){return Pn(Sve)||{}}const fUe=xe({name:"IconFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),hUe=["stroke-width","stroke-linecap","stroke-linejoin"];function pUe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1)]),14,hUe)}var RM=Ue(fUe,[["render",pUe]]);const uS=Object.assign(RM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RM.name,RM)}});var vUe=xe({name:"TreeNodeSwitcher",components:{IconLoading:Ja,RenderFunction:ep},props:{prefixCls:String,loading:Boolean,showLine:Boolean,treeNodeData:{type:Object},icons:{type:Object},nodeStatus:{type:Object}},emits:["click"],setup(e,{slots:t,emit:n}){const{icons:r,nodeStatus:i,treeNodeData:a}=tn(e),s=nA(),l=xd(t,"switcher-icon"),c=xd(t,"loading-icon");return{getSwitcherIcon:()=>{var d,h,p;const v=(h=(d=r?.value)==null?void 0:d.switcherIcon)!=null?h:l.value;return v?v(i.value):(p=s.switcherIcon)==null?void 0:p.call(s,a.value,i.value)},getLoadingIcon:()=>{var d,h,p;const v=(h=(d=r?.value)==null?void 0:d.loadingIcon)!=null?h:c.value;return v?v(i.value):(p=s.loadingIcon)==null?void 0:p.call(s,a.value,i.value)},onClick(d){n("click",d)}}},render(){var e,t,n;const{prefixCls:r,getSwitcherIcon:i,getLoadingIcon:a,onClick:s,nodeStatus:l={},loading:c,showLine:d}=this,{expanded:h,isLeaf:p}=l;if(c)return(e=a())!=null?e:fa(Ja);let v=null,g=!1;if(p)d&&(v=(n=i())!=null?n:fa(uS));else{const S=d?fa("span",{class:`${r}-${h?"minus":"plus"}-icon`}):fa(GH);v=(t=i())!=null?t:S,g=!d}if(!v)return null;const y=fa("span",{class:`${r}-switcher-icon`,onClick:s},v);return g?fa(Lo,{class:`${r}-icon-hover`},()=>y):y}});const wve=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function mUe(e,t){return!!(wn(e)?t:e)}function gUe(e,t){const n={...e};return t&&Object.keys(t).forEach(i=>{const a=t[i];a!==i&&(n[i]=e[a],delete n[a])}),n}function Qre({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:i}){return wn(e)?Sn(t)?t(r,{isLeaf:n,level:i}):t??!1:e}function yUe(e){var t,n;const{treeNodeData:r,parentNode:i,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=gUe(r,l),d=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=i?i.level+1:0,p={...Ea(c,["children"]),key:(n=c.key)!=null?n:wve(),selectable:Qre({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:d,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:Qre({subEnable:c.checkable,superEnable:s?.checkable,isLeaf:d,level:h,treeNodeData:r}),isLeaf:d,isTail:a,blockNode:!!s?.blockNode,showLine:!!s?.showLine,level:h,lineless:i?[...i.lineless,i.isTail]:[],draggable:mUe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:i,parentKey:i?.key,pathParentKeys:i?[...i.pathParentKeys,i.key]:[]}}function bUe(e,t){function n(r,i){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const d=yUe({treeNodeData:l,treeProps:t,parentNode:i,isTail:c===r.length-1});d.children=n(l[a?.children||"children"],d),s.push(d)}),s}return n(e)}function xve(){const e=So(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:wve()},n=ue(t());return tl(()=>{n.value=t()}),n}function _Ue(e){const{key:t,refTitle:n}=tn(e),r=nA(),i=ue(!1),a=ue(!1),s=ue(!1),l=ue(0),c=Rm(d=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:v}=d,g=h.height/4,y=v-p;l.value=y[]}},setup(e){const t=xve(),n=Me("tree-node"),r=nA(),i=F(()=>{var oe;return(oe=r.key2TreeNode)==null?void 0:oe.get(t.value)}),a=F(()=>i.value.treeNodeData),s=F(()=>i.value.children),l=F(()=>{var oe;const ae=(oe=r.treeProps)==null?void 0:oe.actionOnNodeClick;return ae?SUe(ae):[]}),{isLeaf:c,isTail:d,selectable:h,disabled:p,disableCheckbox:v,draggable:g}=tn(e),y=F(()=>{var oe;return[`${n}`,{[`${n}-selected`]:M.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:d.value,[`${n}-expanded`]:$.value,[`${n}-disabled-selectable`]:!h.value&&!((oe=r.treeProps)!=null&&oe.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),S=ue(),{isDragOver:k,isDragging:w,isAllowDrop:x,dropPosition:E,setDragStatus:_}=_Ue(Wt({key:t,refTitle:S})),T=F(()=>[`${n}-title`,{[`${n}-title-draggable`]:g.value,[`${n}-title-gap-top`]:k.value&&x.value&&E.value<0,[`${n}-title-gap-bottom`]:k.value&&x.value&&E.value>0,[`${n}-title-highlight`]:!w.value&&k.value&&x.value&&E.value===0,[`${n}-title-dragging`]:w.value,[`${n}-title-block`]:i.value.blockNode}]),D=F(()=>{var oe,ae;return(ae=(oe=r.checkedKeys)==null?void 0:oe.includes)==null?void 0:ae.call(oe,t.value)}),P=F(()=>{var oe,ae;return(ae=(oe=r.indeterminateKeys)==null?void 0:oe.includes)==null?void 0:ae.call(oe,t.value)}),M=F(()=>{var oe,ae;return(ae=(oe=r.selectedKeys)==null?void 0:oe.includes)==null?void 0:ae.call(oe,t.value)}),$=F(()=>{var oe,ae;return(ae=(oe=r.expandedKeys)==null?void 0:oe.includes)==null?void 0:ae.call(oe,t.value)}),L=F(()=>{var oe,ae;return(ae=(oe=r.loadingKeys)==null?void 0:oe.includes)==null?void 0:ae.call(oe,t.value)}),B=F(()=>r.dragIcon),j=F(()=>r.nodeIcon);function H(oe){var ae,ee;c.value||(!((ae=s.value)!=null&&ae.length)&&Sn(r.onLoadMore)?r.onLoadMore(t.value):(ee=r?.onExpand)==null||ee.call(r,!$.value,t.value,oe))}const U=Wt({loading:L,checked:D,selected:M,indeterminate:P,expanded:$,isLeaf:c}),W=F(()=>r.nodeTitle?()=>{var oe;return(oe=r.nodeTitle)==null?void 0:oe.call(r,a.value,U)}:void 0),K=F(()=>r.nodeExtra?()=>{var oe;return(oe=r.nodeExtra)==null?void 0:oe.call(r,a.value,U)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:y,titleClassNames:T,indeterminate:P,checked:D,expanded:$,selected:M,treeTitle:W,treeNodeData:a,loading:L,treeDragIcon:B,treeNodeIcon:j,extra:K,nodeStatus:U,onCheckboxChange(oe,ae){var ee;v.value||p.value||(ee=r.onCheck)==null||ee.call(r,oe,t.value,ae)},onTitleClick(oe){var ae;l.value.includes("expand")&&H(oe),!(!h.value||p.value)&&((ae=r.onSelect)==null||ae.call(r,t.value,oe))},onSwitcherClick:H,onDragStart(oe){var ae;if(g.value){oe.stopPropagation(),_("dragStart",oe);try{(ae=oe.dataTransfer)==null||ae.setData("text/plain","")}catch{}}},onDragEnd(oe){g.value&&(oe.stopPropagation(),_("dragEnd",oe))},onDragOver(oe){g&&(oe.stopPropagation(),oe.preventDefault(),_("dragOver",oe))},onDragLeave(oe){g.value&&(oe.stopPropagation(),_("dragLeave",oe))},onDrop(oe){!g.value||!x.value||(oe.stopPropagation(),oe.preventDefault(),_("drop",oe))}}}}),wUe=["data-level","data-key"],xUe=["draggable"];function CUe(e,t,n,r,i,a){const s=Ee("NodeSwitcher"),l=Ee("Checkbox"),c=Ee("RenderFunction"),d=Ee("IconDragDotVertical");return z(),X("div",{class:fe(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Ae(" 缩进 "),I("span",{class:fe(`${e.prefixCls}-indent`)},[(z(!0),X(Pt,null,cn(e.level,h=>(z(),X("span",{key:h,class:fe([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Ae(" switcher "),I("span",{class:fe([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[O(s,{"prefix-cls":e.prefixCls,loading:e.loading,"show-line":e.showLine,"tree-node-data":e.treeNodeData,icons:{switcherIcon:e.switcherIcon,loadingIcon:e.loadingIcon},"node-status":e.nodeStatus,onClick:e.onSwitcherClick},yo({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:ce(()=>[Ae(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),mt(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:ce(()=>[Ae(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),mt(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Ae(" checkbox "),e.checkable?(z(),Ze(l,{key:0,disabled:e.disableCheckbox||e.disabled,"model-value":e.checked,indeterminate:e.indeterminate,"uninject-group-context":"",onChange:e.onCheckboxChange},null,8,["disabled","model-value","indeterminate","onChange"])):Ae("v-if",!0),Ae(" 内容 "),I("span",{ref:"refTitle",class:fe(e.titleClassNames),draggable:e.draggable,onDragstart:t[0]||(t[0]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[1]||(t[1]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDragover:t[2]||(t[2]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[3]||(t[3]=(...h)=>e.onDragLeave&&e.onDragLeave(...h)),onDrop:t[4]||(t[4]=(...h)=>e.onDrop&&e.onDrop(...h)),onClick:t[5]||(t[5]=(...h)=>e.onTitleClick&&e.onTitleClick(...h))},[e.$slots.icon||e.icon||e.treeNodeIcon?(z(),X("span",{key:0,class:fe([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Ae(" 节点图标 "),e.$slots.icon?mt(e.$slots,"icon",qi(Ft({key:0},e.nodeStatus))):e.icon?(z(),Ze(c,Ft({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(z(),Ze(c,Ft({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Ae("v-if",!0)],2)):Ae("v-if",!0),I("span",{class:fe(`${e.prefixCls}-title-text`)},[e.treeTitle?(z(),Ze(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(z(),X(Pt,{key:1},[Ae(" 标题,treeTitle 优先级高于节点的 title "),mt(e.$slots,"title",{title:e.title},()=>[He(je(e.title),1)])],2112)),e.draggable?(z(),X("span",{key:2,class:fe([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Ae(" 拖拽图标 "),e.$slots["drag-icon"]?mt(e.$slots,"drag-icon",qi(Ft({key:0},e.nodeStatus))):e.dragIcon?(z(),Ze(c,Ft({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(z(),Ze(c,Ft({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(z(),Ze(d,{key:3}))],2)):Ae("v-if",!0)],2)],42,xUe),Ae(" 额外 "),e.extra?(z(),Ze(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Ae("v-if",!0)],10,wUe)}var SV=Ue(kUe,[["render",CUe]]);const EUe=xe({name:"ExpandTransition",props:{expanded:Boolean},emits:["end"],setup(e,{emit:t}){return{onEnter(n){const r=`${n.scrollHeight}px`;n.style.height=e.expanded?"0":r,n.offsetHeight,n.style.height=e.expanded?r:"0"},onAfterEnter(n){n.style.height=e.expanded?"":"0",t("end")},onBeforeLeave(n){n.style.display="none"}}}});function TUe(e,t,n,r,i,a){return z(),Ze(Cs,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:ce(()=>[mt(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var AUe=Ue(EUe,[["render",TUe]]);const IUe=xe({name:"TransitionNodeList",components:{ExpandTransition:AUe,BaseTreeNode:SV},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Me("tree")}-node-list`],r=nA(),{nodeKey:i}=tn(e),a=F(()=>{var c,d;return(d=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:d.call(c,i.value)}),s=F(()=>{var c;const d=new Set(r.expandedKeys||[]),h=(c=r.flattenTreeData)==null?void 0:c.filter(p=>{var v,g;return(v=p.pathParentKeys)!=null&&v.includes(i.value)?!r.filterTreeNode||((g=r.filterTreeNode)==null?void 0:g.call(r,p.treeNodeData)):!1});return h?.filter(p=>{var v;if(a.value)return(v=p.pathParentKeys)==null?void 0:v.every(y=>d.has(y));const g=p.pathParentKeys.indexOf(i.value);return p.pathParentKeys.slice(g+1).every(y=>d.has(y))})}),l=F(()=>{var c,d;return((c=r.currentExpandKeys)==null?void 0:c.includes(i.value))&&((d=s.value)==null?void 0:d.length)});return{classNames:n,visibleNodeList:s,show:l,expanded:a,onTransitionEnd(){var c;(c=r.onExpandEnd)==null||c.call(r,i.value)}}}});function LUe(e,t,n,r,i,a){const s=Ee("BaseTreeNode"),l=Ee("ExpandTransition");return z(),Ze(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:ce(()=>[e.show?(z(),X("div",{key:0,class:fe(e.classNames)},[(z(!0),X(Pt,null,cn(e.visibleNodeList,c=>(z(),Ze(s,Ft({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Ae("v-if",!0)]),_:1},8,["expanded","onEnd"])}var DUe=Ue(IUe,[["render",LUe]]),PUe=xe({name:"TreeNode",inheritAttrs:!1,props:{...SV.props},setup(e,{slots:t,attrs:n}){const r=xve();return()=>O(Pt,null,[O(SV,Ft(e,n,{key:r.value}),t),O(DUe,{key:r.value,nodeKey:r.value},null)])}});function RUe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:i,halfCheckedKeys:a,onlyCheckLeaf:s}=tn(e),l=ue(!1),c=ue([]),d=ue([]),h=ue(),p=ue(),v=y=>dUe({initCheckedKeys:y,key2TreeNode:r.value,checkStrictly:i.value,onlyCheckLeaf:s.value}),g=y=>{const S=v(y);[c.value,d.value]=S};return g(n.value||t?.value||[]),$s(()=>{n.value?[h.value,p.value]=v(n.value):l.value&&(h.value=void 0,p.value=void 0,c.value=[],d.value=[]),l.value||(l.value=!0)}),{checkedKeys:F(()=>h.value||c.value),indeterminateKeys:F(()=>i.value&&a.value?a.value:p.value||d.value),setCheckedState(y,S,k=!1){return k?g(y):(c.value=y,d.value=S),[c.value,d.value]}}}function Cve(e){const{treeData:t,fieldNames:n,selectable:r,showLine:i,blockNode:a,checkable:s,loadMore:l,draggable:c}=tn(e),d=ue([]);$s(()=>{var v,g;d.value=bUe(t.value||[],{selectable:(v=r?.value)!=null?v:!1,showLine:!!i?.value,blockNode:!!a?.value,checkable:(g=s?.value)!=null?g:!1,fieldNames:n?.value,loadMore:!!l?.value,draggable:!!c?.value})});const h=F(()=>lUe(d.value)),p=F(()=>uUe(h.value));return{treeData:d,flattenTreeData:h,key2TreeNode:p}}const MUe=xe({name:"Tree",components:{VirtualList:c3,TreeNode:PUe},props:{size:{type:String,default:"medium"},blockNode:{type:Boolean},defaultExpandAll:{type:Boolean,default:!0},multiple:{type:Boolean},checkable:{type:[Boolean,String,Function],default:!1},selectable:{type:[Boolean,Function],default:!0},checkStrictly:{type:Boolean},checkedStrategy:{type:String,default:"all"},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:Array},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},data:{type:Array,default:()=>[]},fieldNames:{type:Object},showLine:{type:Boolean},loadMore:{type:Function},draggable:{type:Boolean},allowDrop:{type:Function},filterTreeNode:{type:Function},searchValue:{type:String,default:""},virtualListProps:{type:Object},defaultExpandSelected:{type:Boolean},defaultExpandChecked:{type:Boolean},autoExpandParent:{type:Boolean,default:!0},halfCheckedKeys:{type:Array},onlyCheckLeaf:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},actionOnNodeClick:{type:String},disableSelectActionOnly:{type:Boolean,default:!1}},emits:{select:(e,t)=>!0,"update:selectedKeys":e=>!0,check:(e,t)=>!0,"update:checkedKeys":e=>!0,"update:halfCheckedKeys":e=>!0,expand:(e,t)=>!0,"update:expandedKeys":e=>!0,dragStart:(e,t)=>!0,dragEnd:(e,t)=>!0,dragOver:(e,t)=>!0,dragLeave:(e,t)=>!0,drop:e=>!0},setup(e,{emit:t,slots:n}){const{data:r,showLine:i,multiple:a,loadMore:s,checkStrictly:l,checkedKeys:c,defaultCheckedKeys:d,selectedKeys:h,defaultSelectedKeys:p,expandedKeys:v,defaultExpandedKeys:g,checkedStrategy:y,selectable:S,checkable:k,blockNode:w,fieldNames:x,size:E,defaultExpandAll:_,filterTreeNode:T,draggable:D,allowDrop:P,defaultExpandSelected:M,defaultExpandChecked:$,autoExpandParent:L,halfCheckedKeys:B,onlyCheckLeaf:j,animation:H}=tn(e),U=Me("tree"),W=F(()=>[`${U}`,{[`${U}-checkable`]:k.value,[`${U}-show-line`]:i.value},`${U}-size-${E.value}`]),K=xd(n,"switcher-icon"),oe=xd(n,"loading-icon"),ae=xd(n,"drag-icon"),ee=xd(n,"icon"),Y=xd(n,"title"),Q=xd(n,"extra"),{treeData:ie,flattenTreeData:q,key2TreeNode:te}=Cve(Wt({treeData:r,selectable:S,showLine:i,blockNode:w,checkable:k,fieldNames:x,loadMore:s,draggable:D})),{checkedKeys:Se,indeterminateKeys:Fe,setCheckedState:ve}=RUe(Wt({defaultCheckedKeys:d,checkedKeys:c,checkStrictly:l,key2TreeNode:te,halfCheckedKeys:B,onlyCheckLeaf:j})),[Re,Ge]=pa(p?.value||[],Wt({value:h})),nt=ue([]),Ie=ue();function _e(){if(g?.value){const Qe=new Set([]);return g.value.forEach(Le=>{if(Qe.has(Le))return;const ht=te.value.get(Le);ht&&[...L.value?ht.pathParentKeys:[],Le].forEach(Vt=>Qe.add(Vt))}),[...Qe]}if(_.value)return q.value.filter(Qe=>Qe.children&&Qe.children.length).map(Qe=>Qe.key);if(M.value||$.value){const Qe=new Set([]),Le=ht=>{ht.forEach(Vt=>{const Ut=te.value.get(Vt);Ut&&(Ut.pathParentKeys||[]).forEach(Lt=>Qe.add(Lt))})};return M.value&&Le(Re.value),$.value&&Le(Se.value),[...Qe]}return[]}const[me,ge]=pa(_e(),Wt({value:v})),Be=ue([]),Ye=F(()=>{const Qe=new Set(me.value),Le=new Set(Be.value);return q.value.filter(ht=>{var Vt;if(!(!T||!T.value||T?.value(ht.treeNodeData)))return!1;const Lt=wn(ht.parentKey),Xt=(Vt=ht.pathParentKeys)==null?void 0:Vt.every(Dn=>Qe.has(Dn)&&!Le.has(Dn));return Lt||Xt})});function Ke(Qe,Le=y.value){let ht=[...Qe];return Le==="parent"?ht=Qe.filter(Vt=>{const Ut=te.value.get(Vt);return Ut&&!(!wn(Ut.parentKey)&&Qe.includes(Ut.parentKey))}):Le==="child"&&(ht=Qe.filter(Vt=>{var Ut,Lt;return!((Lt=(Ut=te.value.get(Vt))==null?void 0:Ut.children)!=null&&Lt.length)})),ht}function at(Qe){return Qe.map(Le=>{var ht;return((ht=te.value.get(Le))==null?void 0:ht.treeNodeData)||void 0}).filter(Boolean)}function ft(Qe){const{targetKey:Le,targetChecked:ht,newCheckedKeys:Vt,newIndeterminateKeys:Ut,event:Lt}=Qe,Xt=Le?te.value.get(Le):void 0,Dn=Ke(Vt);t("update:checkedKeys",Dn),t("update:halfCheckedKeys",Ut),t("check",Dn,{checked:ht,node:Xt?.treeNodeData,checkedNodes:at(Dn),halfCheckedKeys:Ut,halfCheckedNodes:at(Ut),e:Lt})}function ct(Qe){const{targetKey:Le,targetSelected:ht,newSelectedKeys:Vt,event:Ut}=Qe,Lt=Le?te.value.get(Le):void 0;t("update:selectedKeys",Vt),t("select",Vt,{selected:ht,node:Lt?.treeNodeData,selectedNodes:at(Vt),e:Ut})}function Ct(Qe){const{targetKey:Le,targetExpanded:ht,newExpandedKeys:Vt,event:Ut}=Qe,Lt=Le?te.value.get(Le):void 0;t("expand",Vt,{expanded:ht,node:Lt?.treeNodeData,expandedNodes:at(Vt),e:Ut}),t("update:expandedKeys",Vt)}function xt(Qe){const[Le,ht]=ve(Qe,[],!0);ft({newCheckedKeys:Le,newIndeterminateKeys:ht})}function Rt(Qe){let Le=Qe;!a.value&&Qe.length>1&&(Le=[Qe[0]]),Ge(Le),ct({newSelectedKeys:Le})}function Ht(Qe){Be.value=[],ge(Qe),Ct({newExpandedKeys:Qe})}function Jt(Qe,Le,ht){if(!Qe.length)return;let Vt=[...Se.value],Ut=[...Fe.value];Qe.forEach(Lt=>{const Xt=te.value.get(Lt);Xt&&([Vt,Ut]=_V({node:Xt,checked:Le,checkedKeys:[...Vt],indeterminateKeys:[...Ut],checkStrictly:l.value}))}),ve(Vt,Ut),ft({targetKey:ht,targetChecked:wn(ht)?void 0:Le,newCheckedKeys:Vt,newIndeterminateKeys:Ut})}function rn(Qe,Le,ht){if(!Qe.length)return;let Vt;if(a.value){const Ut=new Set(Re.value);Qe.forEach(Lt=>{Le?Ut.add(Lt):Ut.delete(Lt)}),Vt=[...Ut]}else Vt=Le?[Qe[0]]:[];Ge(Vt),ct({targetKey:ht,targetSelected:wn(ht)?void 0:Le,newSelectedKeys:Vt})}function vt(Qe,Le,ht){const Vt=new Set(me.value);Qe.forEach(Lt=>{Le?Vt.add(Lt):Vt.delete(Lt),We(Lt)});const Ut=[...Vt];ge(Ut),Ct({targetKey:ht,targetExpanded:wn(ht)?void 0:Le,newExpandedKeys:Ut})}function Ve(Qe,Le,ht){const Vt=te.value.get(Le);if(!Vt)return;const[Ut,Lt]=_V({node:Vt,checked:Qe,checkedKeys:Se.value,indeterminateKeys:Fe.value,checkStrictly:l.value});ve(Ut,Lt),ft({targetKey:Le,targetChecked:Qe,newCheckedKeys:Ut,newIndeterminateKeys:Lt,event:ht})}function Oe(Qe,Le){if(!te.value.get(Qe))return;let Vt,Ut;if(a.value){const Lt=new Set(Re.value);Ut=!Lt.has(Qe),Ut?Lt.add(Qe):Lt.delete(Qe),Vt=[...Lt]}else Ut=!0,Vt=[Qe];Ge(Vt),ct({targetKey:Qe,targetSelected:Ut,newSelectedKeys:Vt,event:Le})}function Ce(Qe,Le,ht){if(Be.value.includes(Le)||!te.value.get(Le))return;const Ut=new Set(me.value);Qe?Ut.add(Le):Ut.delete(Le);const Lt=[...Ut];ge(Lt),H.value&&Be.value.push(Le),Ct({targetKey:Le,targetExpanded:Qe,newExpandedKeys:Lt,event:ht})}function We(Qe){const Le=Be.value.indexOf(Qe);Be.value.splice(Le,1)}const $e=F(()=>s?.value?async Qe=>{if(!Sn(s.value))return;const Le=te.value.get(Qe);if(!Le)return;const{treeNodeData:ht}=Le;nt.value=[...new Set([...nt.value,Qe])];try{await s.value(ht),nt.value=nt.value.filter(Vt=>Vt!==Qe),Ce(!0,Qe),Se.value.includes(Qe)&&Ve(!0,Qe)}catch(Vt){nt.value=nt.value.filter(Ut=>Ut!==Qe),console.error("[tree]load data error: ",Vt)}}:void 0),dt=Wt({treeProps:e,switcherIcon:K,loadingIcon:oe,dragIcon:ae,nodeIcon:ee,nodeTitle:Y,nodeExtra:Q,treeData:ie,flattenTreeData:q,key2TreeNode:te,checkedKeys:Se,indeterminateKeys:Fe,selectedKeys:Re,expandedKeys:me,loadingKeys:nt,currentExpandKeys:Be,onLoadMore:$e,filterTreeNode:T,onCheck:Ve,onSelect:Oe,onExpand:Ce,onExpandEnd:We,allowDrop(Qe,Le){const ht=te.value.get(Qe);return ht&&Sn(P.value)?!!P.value({dropNode:ht.treeNodeData,dropPosition:Le}):!0},onDragStart(Qe,Le){const ht=te.value.get(Qe);Ie.value=ht,ht&&t("dragStart",Le,ht.treeNodeData)},onDragEnd(Qe,Le){const ht=te.value.get(Qe);Ie.value=void 0,ht&&t("dragEnd",Le,ht.treeNodeData)},onDragOver(Qe,Le){const ht=te.value.get(Qe);ht&&t("dragOver",Le,ht.treeNodeData)},onDragLeave(Qe,Le){const ht=te.value.get(Qe);ht&&t("dragLeave",Le,ht.treeNodeData)},onDrop(Qe,Le,ht){const Vt=te.value.get(Qe);Ie.value&&Vt&&!(Vt.key===Ie.value.key||Vt.pathParentKeys.includes(Ie.value.key||""))&&t("drop",{e:ht,dragNode:Ie.value.treeNodeData,dropNode:Vt.treeNodeData,dropPosition:Le})}});return oi(Sve,dt),{classNames:W,visibleTreeNodeList:Ye,treeContext:dt,virtualListRef:ue(),computedSelectedKeys:Re,computedExpandedKeys:me,computedCheckedKeys:Se,computedIndeterminateKeys:Fe,getPublicCheckedKeys:Ke,getNodes:at,internalCheckNodes:Jt,internalSetCheckedKeys:xt,internalSelectNodes:rn,internalSetSelectedKeys:Rt,internalExpandNodes:vt,internalSetExpandedKeys:Ht}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:i}=this.treeContext,a=!i.includes(e),s=n.get(e);s&&_m(s)&&r(a,e,t)},scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)},getSelectedNodes(){return this.getNodes(this.computedSelectedKeys)},getCheckedNodes(e={}){const{checkedStrategy:t,includeHalfChecked:n}=e,r=this.getPublicCheckedKeys(this.computedCheckedKeys,t);return[...this.getNodes(r),...n?this.getHalfCheckedNodes():[]]},getHalfCheckedNodes(){return this.getNodes(this.computedIndeterminateKeys)},getExpandedNodes(){return this.getNodes(this.computedExpandedKeys)},checkAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const i=t.get(r);return i&&_m(i)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:i}=this,{key2TreeNode:a}=i,s=nr(e),l=(s?e:[e]).filter(c=>{const d=a.get(c);return d&&_m(d)&&(r||!n||cUe(d))});this.internalCheckNodes(l,t,s?void 0:e)},selectAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const i=t.get(r);return i&&gV(i)}):[];this.internalSetSelectedKeys(n)},selectNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=nr(e),i=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&gV(s)});this.internalSelectNodes(i,t,r?void 0:e)},expandAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const i=t.get(r);return i&&Jre(i)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=nr(e),i=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&Jre(s)});this.internalExpandNodes(i,t,r?void 0:e)}}});function OUe(e,t,n,r,i,a){const s=Ee("TreeNode"),l=Ee("VirtualList");return z(),X("div",{class:fe(e.classNames)},[e.virtualListProps?(z(),Ze(l,Ft({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:ce(({item:c})=>[(z(),Ze(s,Ft({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(z(!0),X(Pt,{key:1},cn(e.visibleTreeNodeList,c=>(z(),Ze(s,Ft({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var MM=Ue(MUe,[["render",OUe]]);const kV=Object.assign(MM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+MM.name,MM)}}),$Ue=xe({name:"Typography",setup(){return{classNames:[Me("typography")]}}});function BUe(e,t,n,r,i,a){return z(),X("article",{class:fe(e.classNames)},[mt(e.$slots,"default")],2)}var OM=Ue($Ue,[["render",BUe]]);const NUe=xe({name:"TypographyEditContent",components:{Input:z0},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${Me("typography")}-edit-content`],i=ue();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return fn(()=>{if(!i.value||!i.value.$el)return;const l=i.value.$el.querySelector("input");if(!l)return;l.focus&&l.focus();const{length:c}=l.value;l.setSelectionRange(c,c)}),{classNames:r,inputRef:i,onBlur:s,onChange:a,onEnd:s}}});function FUe(e,t,n,r,i,a){const s=Ee("Input");return z(),X("div",{class:fe(e.classNames)},[O(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:df(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var jUe=Ue(NUe,[["render",FUe]]);const VUe=xe({name:"IconCopy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zUe=["stroke-width","stroke-linecap","stroke-linejoin"];function UUe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)]),14,zUe)}var $M=Ue(VUe,[["render",UUe]]);const rA=Object.assign($M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$M.name,$M)}}),HUe=xe({name:"IconEdit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),WUe=["stroke-width","stroke-linecap","stroke-linejoin"];function GUe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)]),14,WUe)}var BM=Ue(HUe,[["render",GUe]]);const ZH=Object.assign(BM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BM.name,BM)}}),KUe=xe({name:"TypographyOperations",components:{Tooltip:Qc,IconCheckCircleFill:Zh,IconCopy:rA,IconEdit:ZH},props:{editable:Boolean,copyable:Boolean,expandable:Boolean,isCopied:Boolean,isEllipsis:Boolean,expanded:Boolean,forceRenderExpand:Boolean,editTooltipProps:Object,copyTooltipProps:Object},emits:{edit:()=>!0,copy:()=>!0,expand:()=>!0},setup(e,{emit:t}){const n=Me("typography"),r=F(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:i}=No();return{prefixCls:n,showExpand:r,t:i,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function qUe(e,t,n,r,i,a){const s=Ee("IconEdit"),l=Ee("Tooltip"),c=Ee("IconCheckCircleFill"),d=Ee("IconCopy");return z(),X(Pt,null,[e.editable?(z(),Ze(l,Ft({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:ce(()=>[I("span",{class:fe(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=fs((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[O(s)],2)]),_:1},16,["content"])):Ae("v-if",!0),e.copyable?(z(),Ze(l,qi(Ft({key:1},e.copyTooltipProps)),{content:ce(()=>[mt(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[He(je(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:ce(()=>[I("span",{class:fe({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=fs((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[mt(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(z(),Ze(c,{key:0})):(z(),Ze(d,{key:1}))])],2)]),_:3},16)):Ae("v-if",!0),e.showExpand?(z(),X("a",{key:2,class:fe(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=fs((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[mt(e.$slots,"expand-node",{expanded:e.expanded},()=>[He(je(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Ae("v-if",!0)],64)}var eie=Ue(KUe,[["render",qUe]]);let Gs;function YUe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function NM(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var XUe=(e,t,n,r)=>{Gs||(Gs=document.createElement("div"),document.body.appendChild(Gs));const{rows:i,suffix:a,ellipsisStr:s}=t,l=window.getComputedStyle(e),c=YUe(l),d=NM(l.lineHeight),h=Math.round(d*i+NM(l.paddingTop)+NM(l.paddingBottom));Gs.setAttribute("style",c),Gs.setAttribute("aria-hidden","true"),Gs.style.height="auto",Gs.style.minHeight="auto",Gs.style.maxHeight="auto",Gs.style.position="fixed",Gs.style.left="0",Gs.style.top="-99999999px",Gs.style.zIndex="-200",Gs.style.whiteSpace="normal";const p=Ry({render(){return O("span",null,[n])}});p.mount(Gs);const v=Array.prototype.slice.apply(Gs.childNodes[0].cloneNode(!0).childNodes);p.unmount(),Gs.innerHTML="";const g=document.createTextNode(`${s}${a}`);Gs.appendChild(g),v.forEach(w=>{Gs.appendChild(w)});const y=document.createTextNode(r);Gs.insertBefore(y,g);function S(){return Gs.offsetHeight<=h}if(S())return{ellipsis:!1,text:r};function k(w,x=0,E=r.length,_=0){const T=Math.floor((x+E)/2),D=r.slice(0,T);if(w.textContent=D,x>=E-1)for(let P=E;P>=x;P-=1){const M=r.slice(0,P);if(w.textContent=M,S()||!M)return}S()?k(w,T,E,T):k(w,x,T,_)}return k(y),{text:y.textContent,ellipsis:!0}};const ZUe=async e=>{var t;if((t=navigator.clipboard)!=null&&t.writeText)try{await navigator.clipboard.writeText(e);return}catch(a){console.error(a??new DOMException("The request is not allowed","NotAllowedError"))}const n=document.createElement("span");n.textContent=e,n.style.whiteSpace="pre",document.body.appendChild(n);const r=window.getSelection(),i=window.document.createRange();r?.removeAllRanges(),i.selectNode(n),r?.addRange(i);try{window.document.execCommand("copy")}catch(a){console.error(`execCommand Error: ${a}`)}r?.removeAllRanges(),window.document.body.removeChild(n)};let f1;function JUe(e){if(!e)return"";f1||(f1=document.createElement("div"),f1.setAttribute("aria-hidden","true"),document.body.appendChild(f1));const t=Ry({render(){return O("div",null,[e])}});t.mount(f1);const n=f1.innerText;return t.unmount(),n}function Eve(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}function QUe(e){const{bold:t,mark:n,underline:r,delete:i,code:a}=e,s=[];return t&&s.push("b"),r&&s.push("u"),i&&s.push("del"),a&&s.push("code"),n&&s.push("mark"),s}function tie(e,t){const{mark:n}=e,r=QUe(e),i=gr(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>O(s,s==="mark"?{style:i}:{},Eve(a)?a:{default:()=>[a]}),t)}function eHe(e){const t=!!e.showTooltip,n=gr(e.showTooltip)&&e.showTooltip.type==="popover"?yH:Qc,r=gr(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...Ea(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var JH=xe({name:"TypographyBase",inheritAttrs:!1,props:{component:{type:String,required:!0},type:{type:String},bold:{type:Boolean},mark:{type:[Boolean,Object],default:!1},underline:{type:Boolean},delete:{type:Boolean},code:{type:Boolean},disabled:{type:Boolean},editable:{type:Boolean},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean},editText:{type:String},copyable:{type:Boolean},copyText:{type:String},copyDelay:{type:Number,default:3e3},ellipsis:{type:[Boolean,Object],default:!1},editTooltipProps:{type:Object},copyTooltipProps:{type:Object}},emits:{editStart:()=>!0,change:e=>!0,"update:editText":e=>!0,editEnd:()=>!0,"update:editing":e=>!0,copy:e=>!0,ellipsis:e=>!0,expand:e=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{editing:i,defaultEditing:a,ellipsis:s,copyable:l,editable:c,copyText:d,editText:h,copyDelay:p,component:v}=tn(e),g=Me("typography"),y=F(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=ue(),k=ue(""),[w,x]=pa(a.value,Wt({value:i})),E=F(()=>c.value&&w.value);function _(){n("update:editing",!0),n("editStart"),x(!0)}function T(Se){n("update:editText",Se),n("change",Se)}function D(){w.value&&(n("update:editing",!1),n("editEnd"),x(!1))}const P=ue(!1);let M=null;function $(){var Se;const Fe=(Se=d.value)!=null?Se:k.value;ZUe(Fe||""),P.value=!0,n("copy",Fe),M=setTimeout(()=>{P.value=!1},p.value)}Yr(()=>{M&&clearTimeout(M),M=null});const L=ue(!1),B=ue(!1),j=ue(""),H=F(()=>eHe(gr(s.value)&&s.value||{}));let U=null;function W(){const Se=!B.value;B.value=Se,n("expand",Se)}function K(Se=!1){return H.value.css?O(eie,{editable:c.value,copyable:l.value,expandable:H.value.expandable,isCopied:P.value,isEllipsis:ie.value,expanded:B.value,forceRenderExpand:Se||B.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:W},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):O(eie,{editable:c.value,copyable:l.value,expandable:H.value.expandable,isCopied:P.value,isEllipsis:L.value,expanded:B.value,forceRenderExpand:Se,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:W},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function oe(){if(!S.value)return;const{ellipsis:Se,text:Fe}=XUe(S.value,H.value,K(!!H.value.expandable),k.value);L.value!==Se&&(L.value=Se,H.value.css||n("ellipsis",Se)),j.value!==Fe&&(j.value=Fe||"")}function ae(){s.value&&!B.value&&(W8(U),U=dpe(()=>{oe()}))}Yr(()=>{W8(U)}),It(()=>H.value.rows,()=>{ae()}),It(s,Se=>{Se?ae():L.value=!1});let ee=[];const Y=()=>{if(s.value||l.value||c.value){const Se=JUe(ee);Se!==k.value&&(k.value=Se,ae())}};fn(Y),tl(Y);const Q=ue(),ie=ue(!1),q=()=>{if(S.value&&Q.value){const Se=Q.value.offsetHeight>S.value.offsetHeight;Se!==ie.value&&(ie.value=Se,n("ellipsis",Se))}},te=F(()=>B.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":H.value.rows,"-webkit-box-orient":"vertical"});return()=>{var Se,Fe;if(ee=((Se=t.default)==null?void 0:Se.call(t))||[],E.value){const Ye=(Fe=h.value)!=null?Fe:k.value;return O(jUe,{text:Ye,onChange:Ke=>{Ke!==Ye&&T(Ke)},onEnd:D},null)}const{suffix:ve,ellipsisStr:Re,showTooltip:Ge,tooltipProps:nt,TooltipComponent:Ie}=H.value,_e=L.value&&!B.value,me=_e&&!Ge?{title:k.value}:{},ge=v.value;if(H.value.css){const Ye=tie(e,ee),Ke=O(ge,Ft({class:y.value,ref:S,style:te.value},me,r),{default:()=>[O("span",{ref:Q},[Ye])]});return ie.value?O(Ie,Ft(nt,{onResize:()=>q()}),{default:()=>[Ke],content:()=>k.value}):O(Dd,{onResize:()=>{q()}},Eve(Ke)?Ke:{default:()=>[Ke]})}const Be=tie(e,_e?j.value:ee);return O(Dd,{onResize:()=>ae()},{default:()=>[O(ge,Ft({class:y.value,ref:S},me,r),{default:()=>[_e&&Ge?O(Ie,nt,{default:()=>[O("span",null,[Be])],content:()=>k.value}):Be,_e?Re:null,ve,K()]})]})}}}),nE=xe({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=tn(e),r=Me("typography"),i=F(()=>t?.value?"blockquote":"div"),a=F(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:i,classNames:a}},render(){const{component:e,classNames:t}=this;return O(JH,Ft({class:t},this.$attrs,{component:e}),this.$slots)}}),rE=xe({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=tn(e);return{component:F(()=>`h${t?.value}`)}},render(){const{component:e}=this;return O(JH,Ft(this.$attrs,{component:e}),this.$slots)}}),iE=xe({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=tn(e);return{component:F(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return O(JH,Ft(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const tHe=Object.assign(OM,{Paragraph:nE,Title:rE,Text:iE,install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+OM.name,OM),e.component(n+nE.name,nE),e.component(n+rE.name,rE),e.component(n+iE.name,iE)}}),nie=e=>{const t=e.responseText||e.response;if(!t)return;const n=e.getResponseHeader("Content-Type");if(n&&n.includes("json"))try{return JSON.parse(t)}catch{return t}return t},nHe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},rie=(e,t)=>Sn(e)?e(t):e,rHe=({fileItem:e,action:t,name:n,data:r,headers:i={},withCredentials:a=!1,onProgress:s=ly,onSuccess:l=ly,onError:c=ly})=>{const d=rie(n,e)||"file",h=rie(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=g=>{const y=g.total>0?Yl.round(g.loaded/g.total,2):0;s(y,g)},p.onerror=function(y){c(y)},p.onload=()=>{if(p.status<200||p.status>=300){c(nie(p));return}l(nie(p))};const v=new FormData;if(h)for(const g of Object.keys(h))v.append(g,h[g]);e.file&&v.append(d,e.file),p.open("post",t??"",!0);for(const g of Object.keys(i))p.setRequestHeader(g,i[g]);return p.send(v),{abort(){p.abort()}}},Tve=(e,t)=>{if(t&&e){const n=nr(t)?t:t.split(",").map(i=>i.trim()).filter(i=>i),r=(e.name.indexOf(".")>-1?`.${e.name.split(".").pop()}`:"").toLowerCase();return n.some(i=>{const a=i&&i.toLowerCase(),s=(e.type||"").toLowerCase(),l=s.split("/")[0];if(a===s||`${l}${r.replace(".","/")}`===a||/^\*(\/\*)?$/.test(a))return!0;if(/\/\*/.test(a))return s.replace(/\/.*$/,"")===a.replace(/\/.*$/,"");if(/\..*/.test(a)){let c=[a];return(a===".jpg"||a===".jpeg")&&(c=[".jpg",".jpeg"]),c.indexOf(r)>-1}return!1})}return!!e},iHe=(e,t,n)=>{const r=[];let i=0;const a=()=>{!i&&n(r)},s=l=>{if(i+=1,l?.isFile){l.file(c=>{i-=1,Tve(c,t)&&(Object.defineProperty(c,"webkitRelativePath",{value:l.fullPath.replace(/^\//,"")}),r.push(c)),a()});return}if(l?.isDirectory){const c=l.createReader();let d=!1;const h=()=>{c.readEntries(p=>{d||(i-=1,d=!0),p.length===0?a():(h(),p.forEach(s))})};h();return}i-=1,a()};[].slice.call(e).forEach(l=>l.webkitGetAsEntry&&s(l.webkitGetAsEntry()))},oHe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},FM=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>Tve(r,t)):n},sHe=xe({name:"IconUpload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aHe=["stroke-width","stroke-linecap","stroke-linejoin"];function lHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)]),14,aHe)}var jM=Ue(sHe,[["render",lHe]]);const A0=Object.assign(jM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jM.name,jM)}});var uHe=xe({name:"UploadButton",props:{disabled:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},accept:String,listType:{type:String},tip:String,draggable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},uploadFiles:{type:Function,required:!0},hide:Boolean,onButtonClick:{type:Function}},setup(e,{slots:t}){const n=Me("upload"),{t:r}=No(),i=ue(!1),a=ue(null),s=ue(null),l=ue(0),c=k=>{k==="subtract"?l.value-=1:k==="add"?l.value+=1:k==="reset"&&(l.value=0)},d=k=>{if(!e.disabled){if(Sn(e.onButtonClick)){const w=e.onButtonClick(k);if(Pm(w)){w.then(x=>{e.uploadFiles(FM(x))});return}}a.value&&a.value.click()}},h=k=>{const w=k.target;w.files&&e.uploadFiles(FM(w.files)),w.value=""},p=k=>{var w,x;if(k.preventDefault(),i.value=!1,c("reset"),!e.disabled)if(e.directory&&((w=k.dataTransfer)!=null&&w.items))iHe(k.dataTransfer.items,e.accept,E=>{e.uploadFiles(E)});else{const E=FM((x=k.dataTransfer)==null?void 0:x.files,e.accept);e.uploadFiles(e.multiple?E:E.slice(0,1))}},v=k=>{k.preventDefault(),c("subtract"),l.value===0&&(i.value=!1,c("reset"))},g=k=>{k.preventDefault(),!e.disabled&&!i.value&&(i.value=!0)},y=()=>t.default?O("span",null,[t.default()]):e.listType==="picture-card"?O("div",{class:`${n}-picture-card`},[O("div",{class:`${n}-picture-card-text`},[O(xf,null,null)]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):e.draggable?O("div",{class:[`${n}-drag`,{[`${n}-drag-active`]:i.value}]},[O("div",null,[O(xf,null,null)]),O("div",{class:`${n}-drag-text`},[i.value?r("upload.dragHover"):r("upload.drag")]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):O(Jo,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>O(A0,null,null)}),S=F(()=>[n,{[`${n}-type-picture-card`]:e.listType==="picture-card",[`${n}-draggable`]:e.draggable,[`${n}-disabled`]:e.disabled,[`${n}-hide`]:e.hide}]);return()=>O("span",{ref:s,class:S.value,onClick:d,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:v},[O("input",Ft({ref:a,type:"file",style:{display:"none"},disabled:e.disabled,accept:e.accept,multiple:e.multiple},e.directory?{webkitdirectory:"webkitdirectory"}:{},{onChange:h}),null),y()])}});const cHe=xe({name:"IconPause",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dHe=["stroke-width","stroke-linecap","stroke-linejoin"];function fHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1)]),14,dHe)}var VM=Ue(cHe,[["render",fHe]]);const Ave=Object.assign(VM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VM.name,VM)}}),hHe=xe({name:"IconPlayArrowFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),pHe=["stroke-width","stroke-linecap","stroke-linejoin"];function vHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688L17.533 10.974Z",fill:"currentColor",stroke:"none"},null,-1)]),14,pHe)}var zM=Ue(hHe,[["render",vHe]]);const Ive=Object.assign(zM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zM.name,zM)}}),iA=Symbol("ArcoUpload");var Lve=xe({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Me("upload-progress"),{t:n}=No(),r=Pn(iA,void 0),i=()=>{var s,l,c,d,h,p,v,g,y,S,k;return e.file.status==="error"?O("span",{class:[r?.iconCls,`${r?.iconCls}-upload`],onClick:()=>r?.onUpload(e.file)},[r?.showRetryButton&&((h=(l=r==null?void 0:(s=r.slots)["retry-icon"])==null?void 0:l.call(s))!=null?h:(d=(c=r?.customIcon)==null?void 0:c.retryIcon)!=null&&d.call(c))||e.listType==="picture-card"?O(A0,null,null):n("upload.retry")]):e.file.status==="done"?O("span",{class:[r?.iconCls,`${r?.iconCls}-success`]},[(k=(S=(v=r==null?void 0:(p=r.slots)["success-icon"])==null?void 0:v.call(p))!=null?S:(y=(g=r?.customIcon)==null?void 0:g.successIcon)==null?void 0:y.call(g))!=null?k:O(ig,null,null)]):e.file.status==="init"?O(Qc,{content:n("upload.start")},{default:()=>{var w,x,E,_,T,D;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[(D=(T=(x=r==null?void 0:(w=r.slots)["start-icon"])==null?void 0:x.call(w))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.startIcon)==null?void 0:_.call(E))!=null?D:O(Ive,null,null)])]}}):r?.showCancelButton&&O(Qc,{content:n("upload.cancel")},{default:()=>{var w,x,E,_,T,D;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[(D=(T=(x=r==null?void 0:(w=r.slots)["cancel-icon"])==null?void 0:x.call(w))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.cancelIcon)==null?void 0:_.call(E))!=null?D:O(Ave,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=nHe(e.file.status);return O(ove,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>O("span",{class:t},[a(),i()])}});const mHe=xe({name:"IconFilePdf",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),gHe=["stroke-width","stroke-linecap","stroke-linejoin"];function yHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 42h26a2 2 0 0 0 2-2V13.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 31.172 6H11a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2Z"},null,-1),I("path",{d:"M22.305 21.028c.874 1.939 3.506 6.265 4.903 8.055 1.747 2.237 3.494 2.685 4.368 2.237.873-.447 1.21-4.548-7.425-2.685-7.523 1.623-7.424 3.58-6.988 4.476.728 1.193 2.522 2.627 5.678-6.266C25.699 18.79 24.489 17 23.277 17c-1.409 0-2.538.805-.972 4.028Z"},null,-1)]),14,gHe)}var UM=Ue(mHe,[["render",yHe]]);const Dve=Object.assign(UM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UM.name,UM)}}),bHe=xe({name:"IconFileImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_He=["stroke-width","stroke-linecap","stroke-linejoin"];function SHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m26 33 5-6v6h-5Zm0 0-3-4-4 4h7Zm11 9H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2ZM17 19h1v1h-1v-1Z"},null,-1)]),14,_He)}var HM=Ue(bHe,[["render",SHe]]);const QH=Object.assign(HM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HM.name,HM)}}),kHe=xe({name:"IconFileVideo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),wHe=["stroke-width","stroke-linecap","stroke-linejoin"];function xHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),I("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1)]),14,wHe)}var WM=Ue(kHe,[["render",xHe]]);const eW=Object.assign(WM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WM.name,WM)}}),CHe=xe({name:"IconFileAudio",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),EHe=["stroke-width","stroke-linecap","stroke-linejoin"];function THe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm0 0-.951-12.363a.5.5 0 0 1 .58-.532L30 18"},null,-1)]),14,EHe)}var GM=Ue(CHe,[["render",THe]]);const tW=Object.assign(GM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GM.name,GM)}});var iie=xe({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Me("upload-list")}-item`,{t:r}=No(),i=Pn(iA,void 0),a=()=>{var s,l;let c="";if(e.file.file&&e.file.file.type)c=e.file.file.type;else{const d=(l=(s=e.file.name)==null?void 0:s.split(".")[1])!=null?l:"";["png","jpg","jpeg","bmp","gif","webp"].includes(d)?c="image":["mp4","m2v","mkv","m4v","mov"].includes(d)?c="video":["mp3","wav","wmv","m4a","acc","flac"].includes(d)&&(c="audio")}return c.includes("image")?O(QH,null,null):c.includes("pdf")?O(Dve,null,null):c.includes("audio")?O(tW,null,null):c.includes("video")?O(eW,null,null):O(uS,null,null)};return()=>{var s,l,c,d,h,p,v,g,y,S,k,w,x,E,_,T,D,P,M,$,L,B,j;return O("div",{class:[n,`${n}-${e.file.status}`]},[O("div",{class:`${n}-content`},[i?.listType==="picture"&&O("span",{class:`${n}-thumbnail`},[(c=(l=i==null?void 0:(s=i.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",Ft({src:e.file.url,alt:e.file.name},i?.imageLoading?{loading:i.imageLoading}:void 0),null)]),O("div",{class:`${n}-name`},[i?.listType==="text"&&O("span",{class:`${n}-file-icon`},[(y=(g=(h=i==null?void 0:(d=i.slots)["file-icon"])==null?void 0:h.call(d,{fileItem:e.file}))!=null?g:(v=(p=i?.customIcon)==null?void 0:p.fileIcon)==null?void 0:v.call(p,e.file))!=null?y:a()]),i?.showLink&&e.file.url?O("a",Ft({class:`${n}-name-link`,target:"_blank",href:e.file.url},i?.download?{download:e.file.name}:void 0),[(_=(E=(k=i==null?void 0:(S=i.slots)["file-name"])==null?void 0:k.call(S,{fileItem:e.file}))!=null?E:(x=(w=i?.customIcon)==null?void 0:w.fileName)==null?void 0:x.call(w,e.file))!=null?_:e.file.name]):O("span",{class:`${n}-name-text`,onClick:()=>i?.onPreview(e.file)},[(L=($=(D=i==null?void 0:(T=i.slots)["file-name"])==null?void 0:D.call(T,{fileItem:e.file}))!=null?$:(M=(P=i?.customIcon)==null?void 0:P.fileName)==null?void 0:M.call(P,e.file))!=null?L:e.file.name]),e.file.status==="error"&&O(Qc,{content:r("upload.error")},{default:()=>{var H,U,W,K,oe,ae;return[O("span",{class:[i?.iconCls,`${i?.iconCls}-error`]},[(ae=(oe=(U=i==null?void 0:(H=i.slots)["error-icon"])==null?void 0:U.call(H))!=null?oe:(K=(W=i?.customIcon)==null?void 0:W.errorIcon)==null?void 0:K.call(W))!=null?ae:O(If,null,null)])]}})]),O(Lve,{file:e.file,listType:e.listType},null)]),i?.showRemoveButton&&O("span",{class:`${n}-operation`},[O(Lo,{onClick:()=>{var H;return(H=i?.onRemove)==null?void 0:H.call(i,e.file)}},{default:()=>{var H,U,W,K,oe,ae;return[O("span",{class:[i?.iconCls,`${i?.iconCls}-remove`]},[(ae=(oe=(U=i==null?void 0:(H=i.slots)["remove-icon"])==null?void 0:U.call(H))!=null?oe:(K=(W=i?.customIcon)==null?void 0:W.removeIcon)==null?void 0:K.call(W))!=null?ae:O(Ru,null,null)])]}})]),(j=i==null?void 0:(B=i.slots)["extra-button"])==null?void 0:j.call(B,{fileItem:e.file})])}}}),oie=xe({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Me("upload-list")}-picture`,r=F(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),i=Pn(iA,void 0),a=()=>{var s,l,c,d,h,p,v,g,y,S,k,w,x,E,_,T,D,P,M,$,L,B,j,H,U,W,K,oe,ae;return e.file.status==="uploading"?O(Lve,{file:e.file,listType:"picture-card"},null):O(Pt,null,[(c=(l=i==null?void 0:(s=i.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",Ft({src:e.file.url,alt:e.file.name},i?.imageLoading?{loading:i.imageLoading}:void 0),null),O("div",{class:`${n}-mask`},[e.file.status==="error"&&i?.showCancelButton&&O("div",{class:`${n}-error-tip`},[O("span",{class:[i?.iconCls,`${i?.iconCls}-error`]},[(y=(g=(h=i==null?void 0:(d=i.slots)["error-icon"])==null?void 0:h.call(d))!=null?g:(v=(p=i?.customIcon)==null?void 0:p.errorIcon)==null?void 0:v.call(p))!=null?y:O(U5,null,null)])]),O("div",{class:`${n}-operation`},[e.file.status!=="error"&&i?.showPreviewButton&&O("span",{class:[i?.iconCls,`${i?.iconCls}-preview`],onClick:()=>i?.onPreview(e.file)},[(_=(E=(k=i==null?void 0:(S=i.slots)["preview-icon"])==null?void 0:k.call(S))!=null?E:(x=(w=i?.customIcon)==null?void 0:w.previewIcon)==null?void 0:x.call(w))!=null?_:O(x0,null,null)]),["init","error"].includes(e.file.status)&&i?.showRetryButton&&O("span",{class:[i?.iconCls,`${i?.iconCls}-upload`],onClick:()=>i?.onUpload(e.file)},[(L=($=(D=i==null?void 0:(T=i.slots)["retry-icon"])==null?void 0:D.call(T))!=null?$:(M=(P=i?.customIcon)==null?void 0:P.retryIcon)==null?void 0:M.call(P))!=null?L:O(A0,null,null)]),!i?.disabled&&i?.showRemoveButton&&O("span",{class:[i?.iconCls,`${i?.iconCls}-remove`],onClick:()=>i?.onRemove(e.file)},[(K=(W=(j=i==null?void 0:(B=i.slots)["remove-icon"])==null?void 0:j.call(B))!=null?W:(U=(H=i?.customIcon)==null?void 0:H.removeIcon)==null?void 0:U.call(H))!=null?K:O(Ru,null,null)]),(ae=i==null?void 0:(oe=i.slots)["extra-button"])==null?void 0:ae.call(oe,e.file)])])])};return()=>O("span",{class:r.value},[a()])}}),AHe=xe({name:"UploadList",components:{UploadListItem:iie,UploadPictureItem:oie},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Me("upload"),r=F(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),i=(a,s)=>Sn(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?O(oie,{file:a,key:`item-${s}`},null):O(iie,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>O(o3,{tag:"div",class:r.value},{default:()=>{var a;return[...e.fileList.map((s,l)=>i(s,l)),e.listType==="picture-card"&&((a=t["upload-button"])==null?void 0:a.call(t))]}})}}),KM=xe({name:"Upload",props:{fileList:{type:Array,default:void 0},defaultFileList:{type:Array,default:()=>[]},accept:String,action:String,disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tip:String,headers:{type:Object},data:{type:[Object,Function]},name:{type:[String,Function]},withCredentials:{type:Boolean,default:!1},customRequest:{type:Function},limit:{type:Number,default:0},autoUpload:{type:Boolean,default:!0},showFileList:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showRetryButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showUploadButton:{type:[Boolean,Object],default:!0},showPreviewButton:{type:Boolean,default:!0},download:{type:Boolean,default:!1},showLink:{type:Boolean,default:!0},imageLoading:{type:String},listType:{type:String,default:"text"},responseUrlKey:{type:[String,Function]},customIcon:{type:Object},imagePreview:{type:Boolean,default:!1},onBeforeUpload:{type:Function},onBeforeRemove:{type:Function},onButtonClick:{type:Function}},emits:{"update:fileList":e=>!0,exceedLimit:(e,t)=>!0,change:(e,t)=>!0,progress:(e,t)=>!0,preview:e=>!0,success:e=>!0,error:e=>!0},setup(e,{emit:t,slots:n}){const{fileList:r,disabled:i,listType:a,customIcon:s,showRetryButton:l,showCancelButton:c,showRemoveButton:d,showPreviewButton:h,imageLoading:p,download:v,showLink:g}=tn(e),y=Me("upload"),{mergedDisabled:S,eventHandlers:k}=Do({disabled:i}),w=ue([]),x=new Map,E=new Map,_=F(()=>e.limit>0&&w.value.length>=e.limit),T=te=>{x.clear();const Se=te?.map((Fe,ve)=>{var Re,Ge,nt;const Ie=(Re=Fe.status)!=null?Re:"done",_e=Wt({...Fe,uid:(Ge=Fe.uid)!=null?Ge:`${Date.now()}${ve}`,status:Ie,percent:(nt=Fe.percent)!=null?nt:["error","init"].indexOf(Ie)>-1?0:1});return x.set(_e.uid,_e),_e});w.value=Se??[]};T(e.defaultFileList),It(r,te=>{te&&T(te)},{immediate:!0,deep:!0});const D=te=>{var Se,Fe;t("update:fileList",w.value),t("change",w.value,te),(Fe=(Se=k.value)==null?void 0:Se.onChange)==null||Fe.call(Se)},P=(te,Se)=>{for(const Fe of w.value)if(Fe.uid===te){Fe.file=Se,D(Fe);break}},M=te=>{const Se=(nt,Ie)=>{const _e=x.get(te.uid);_e&&(_e.status="uploading",_e.percent=nt,t("progress",_e,Ie),D(_e))},Fe=nt=>{const Ie=x.get(te.uid);Ie&&(Ie.status="done",Ie.percent=1,Ie.response=nt,e.responseUrlKey&&(Sn(e.responseUrlKey)?Ie.url=e.responseUrlKey(Ie):nt[e.responseUrlKey]&&(Ie.url=nt[e.responseUrlKey])),E.delete(Ie.uid),t("success",Ie),D(Ie))},ve=nt=>{const Ie=x.get(te.uid);Ie&&(Ie.status="error",Ie.percent=0,Ie.response=nt,E.delete(Ie.uid),t("error",Ie),D(Ie))},Re={fileItem:te,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:Se,onSuccess:Fe,onError:ve};te.status="uploading",te.percent=0;const Ge=Sn(e.customRequest)?e.customRequest(Re):rHe(Re);E.set(te.uid,Ge),D(te)},$=te=>{var Se;const Fe=E.get(te.uid);if(Fe){(Se=Fe.abort)==null||Se.call(Fe),E.delete(te.uid);const ve=x.get(te.uid);ve&&(ve.status="error",ve.percent=0,D(ve))}},L=te=>{if(te){const Se=x.get(te.uid);Se&&M(Se)}else for(const Se of w.value)Se.status==="init"&&M(Se)},B=async(te,Se)=>{const Fe=`${Date.now()}-${Se}`,ve=oHe(te)?URL.createObjectURL(te):void 0,Re=Wt({uid:Fe,file:te,url:ve,name:te.name,status:"init",percent:0});x.set(Fe,Re),w.value=[...w.value,Re],D(Re),e.autoUpload&&M(Re)},j=te=>{if(e.limit>0&&w.value.length+te.length>e.limit){t("exceedLimit",w.value,te);return}for(let Se=0;Se{ve&&B(Tl(ve)?Fe:ve,Se)}).catch(ve=>{console.error(ve)}):B(Fe,Se)}},H=te=>{w.value=w.value.filter(Se=>Se.uid!==te.uid),D(te)},U=te=>{Sn(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(te)).then(Se=>{Se&&H(te)}).catch(Se=>{console.error(Se)}):H(te)},W=te=>{if(e.imagePreview&&te.url){const Se=ie.value.indexOf(te.url);Se>-1&&(ee.value=Se,ae.value=!0)}t("preview",te)};oi(iA,Wt({disabled:S,listType:a,iconCls:`${y}-icon`,showRemoveButton:d,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:g,imageLoading:p,download:v,customIcon:s,slots:n,onUpload:M,onAbort:$,onRemove:U,onPreview:W}));const K=F(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),oe=()=>{const te=O(uHe,{key:"arco-upload-button",disabled:S.value,draggable:e.draggable,listType:e.listType,uploadFiles:j,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||_.value&&!(gr(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:K.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?O("span",null,[te,O("div",{class:`${y}-tip`},[e.tip])]):te},ae=ue(!1),ee=ue(0),Y=te=>{ee.value=te},Q=te=>{ae.value=te},ie=F(()=>w.value.filter(te=>!!te.url).map(te=>te.url));return{prefixCls:y,render:()=>e.showFileList?O("div",{class:[`${y}-wrapper`,`${y}-wrapper-type-${e.listType}`]},[e.imagePreview&&ie.value.length>0&&O(cb,{srcList:ie.value,visible:ae.value,current:ee.value,onChange:Y,onVisibleChange:Q},null),e.listType!=="picture-card"&&e.showUploadButton&&oe(),O(AHe,{fileList:w.value,listType:e.listType},{"upload-button":oe,"upload-item":n["upload-item"]})]):e.showUploadButton&&oe(),innerSubmit:L,innerAbort:$,innerUpdateFile:P,innerUpload:j}},methods:{submit(e){return this.innerSubmit(e)},abort(e){return this.innerAbort(e)},updateFile(e,t){return this.innerUpdateFile(e,t)},upload(e){return this.innerUpload(e)}},render(){return this.render()}});const IHe=Object.assign(KM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+KM.name,KM)}});var qM=xe({name:"OverflowList",props:{min:{type:Number,default:0},margin:{type:Number,default:8},from:{type:String,default:"end"}},emits:{change:e=>!0},setup(e,{emit:t,slots:n}){const r=Me("overflow-list"),i=ue(),a=ue(),s=ue(),l={},c=[],d=ue(0),h=ue(0),p=F(()=>h.value>0),v=ue(0),g=F(()=>e.from==="start");It(d,(k,w)=>{h.value>0&&(h.value+=k-w,h.value<0&&(h.value=0))}),It(h,k=>{t("change",k)});const y=()=>{var k,w,x;if(i.value&&l.value&&s.value){const E=s.value.offsetWidth;if(E>1&&(h.value===0||Ey(),{flush:"post"}),fn(()=>{s.value&&s.value.offsetWidth<1&&y()});const S=()=>{var k,w;const x=g.value?{marginRight:`${e.margin}px`}:void 0;return O("div",{ref:a,class:`${r}-overflow`,style:x},[(w=(k=n.overflow)==null?void 0:k.call(n,{number:h.value}))!=null?w:O(SH,null,{default:()=>[He("+"),h.value]})])};return()=>{var k,w;l.value=yf((k=n.default)==null?void 0:k.call(n)),d.value!==l.value.length&&(d.value=l.value.length,c.length=d.value);let x=l.value;h.value>0&&(x=g.value?l.value.slice(h.value):l.value.slice(0,-h.value));const E=h.value===0||g.value?x.length-1:x.length;for(let _=0;_0&&S(),x,!g.value&&h.value>0&&S(),O(C0,{onResize:y},{default:()=>[O("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const LHe=Object.assign(qM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+qM.name,qM)}});var YM=xe({name:"VerificationCode",props:{modelValue:String,defaultValue:{type:String,default:""},length:{type:Number,default:6},size:{type:String},disabled:Boolean,masked:Boolean,readonly:Boolean,error:{type:Boolean,default:!1},separator:{type:Function},formatter:{type:Function}},emits:{"update:modelValue":e=>!0,change:e=>!0,finish:e=>!0,input:(e,t,n)=>!0},setup(e,{emit:t}){const n=Me("verification-code"),r=Me("input"),i=ue([]),a=F(()=>{var k;return(k=e.modelValue)!=null?k:e.defaultValue}),s=F(()=>e.masked?"password":"text"),l=F(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=F(()=>{const k=String(a.value).split("");return new Array(e.length).fill("").map((w,x)=>ere(k[x])?String(k[x]):"")}),d=ue(c.value);It(a,()=>{d.value=c.value});const h=()=>{const k=d.value.join("").trim();t("update:modelValue",k),t("change",k),k.length===e.length&&t("finish",k),v()},p=k=>i?.value[k].focus(),v=k=>{if(!(ere(k)&&d.value[k])){for(let w=0;w{k.preventDefault();const{clipboardData:x}=k,E=x?.getData("text");E&&(E.split("").forEach((_,T)=>{if(!(w+T>=e.length)){if(Sn(e.formatter)){const D=e.formatter(_,w+T,d.value.join(""));if(D===!1){w-=1;return}hs(D)&&(_=D.charAt(0))}d.value[w+T]=_}}),h())},y=(k,w)=>{const x=w.code||w.key;x===gpe.code&&!d.value[k]?(w.preventDefault(),d.value[Math.max(k-1,0)]="",h()):x===LDe.code&&k>0?(w.preventDefault(),p(k-1)):x===DDe.code&&d.value[k]&&k{let E=(w||"").trim().charAt(w.length-1);if(t("input",E,k,x),Sn(e.formatter)){const _=e.formatter(E,k,d.value.join(""));if(_===!1)return;hs(_)&&(E=_.charAt(0))}d.value[k]=E,h()};return()=>O("div",{class:n},[d.value.map((k,w)=>{var x;return O(Pt,null,[O(z0,{key:w,ref:E=>i.value[w]=E,type:s.value,class:l.value,modelValue:k,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>v(w),onInput:(E,_)=>S(w,E,_),onKeydown:E=>y(w,E),onPaste:E=>g(E,w)},null),(x=e.separator)==null?void 0:x.call(e,w,k)])})])}});const DHe=Object.assign(YM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+YM.name,YM)}}),PHe=typeof window<"u"?window:void 0;function RHe(e){var t;const n=tt(e);return(t=n?.$el)!=null?t:n}function MHe(e){return v5()?($U(e),!0):!1}function Pve(e,t,n={}){const{window:r=PHe,...i}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=It(()=>RHe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,i))},{immediate:!0}),d=()=>{l(),c()};return MHe(d),{isSupported:a,stop:d}}const XM="arco-theme",Iw={Dark:"dark",Light:"light"},OHe=e=>{const t=ue(Iw.Light),n=i=>{t.value=i},r=i=>i.getAttribute(XM)===Iw.Dark?Iw.Dark:Iw.Light;return Pve(document.body,i=>{for(const a of i)if(a.type==="attributes"&&a.attributeName===XM){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[XM],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function $He(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function BHe(e){return Object.entries(e).map(([t,n])=>`${$He(t)}:${n}`).join(";")}function NHe(e){const t=e.getContext("2d");if(!t)return;const n=t.getImageData(0,0,e.width,e.height),{data:r}=n;for(let i=0;i[90,90]},offset:{type:Array},rotate:{type:Number,default:-22},font:{type:Object},zIndex:{type:Number,default:6},alpha:{type:Number,default:1},antiTamper:{type:Boolean,default:!0},grayscale:{type:Boolean,default:!1},repeat:{type:Boolean,default:!0},staggered:{type:Boolean,default:!0}},setup(e,{slots:t,attrs:n}){const{width:r,height:i,image:a,rotate:s,alpha:l,repeat:c,grayscale:d}=tn(e),h=Me("watermark"),p=window.devicePixelRatio||1,v=h0(),g=ue(new Map),y=F(()=>{var ee,Y;return(Y=(ee=e.font)==null?void 0:ee.fontSize)!=null?Y:16}),S=F(()=>{var ee,Y;return(Y=(ee=e.font)==null?void 0:ee.fontWeight)!=null?Y:"normal"}),k=F(()=>{var ee,Y;return(Y=(ee=e.font)==null?void 0:ee.fontStyle)!=null?Y:"normal"}),w=F(()=>{var ee,Y;return(Y=(ee=e.font)==null?void 0:ee.fontFamily)!=null?Y:"sans-serif"}),x=F(()=>{var ee,Y;return(Y=(ee=e.font)==null?void 0:ee.textAlign)!=null?Y:"center"}),E=F(()=>nr(e.content)?e.content:[e.content]),_=F(()=>{var ee,Y;return(Y=(ee=e.font)==null?void 0:ee.color)!=null?Y:ae.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),T=F(()=>{var ee,Y;return(Y=(ee=e.gap)==null?void 0:ee[0])!=null?Y:90}),D=F(()=>{var ee,Y;return(Y=(ee=e.gap)==null?void 0:ee[1])!=null?Y:90}),P=F(()=>T.value/2),M=F(()=>D.value/2),$=F(()=>{var ee,Y;return(Y=(ee=e.offset)==null?void 0:ee[0])!=null?Y:P.value}),L=F(()=>{var ee,Y;return(Y=(ee=e.offset)==null?void 0:ee[1])!=null?Y:M.value}),B=F(()=>{var ee;const Y=$.value-P.value,Q=L.value-M.value;return{position:"absolute",left:Y>0?`${Y}px`:0,top:Q>0?`${Q}px`:0,width:Y>0?`calc(100% - ${Y}px)`:"100%",height:Q>0?`calc(100% - ${Q}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${Y>0?0:Y}px ${Q>0?0:Q}px`,zIndex:(ee=e.zIndex)!=null?ee:6}}),j=F(()=>e.repeat&&e.staggered),H=(ee,Y)=>{var Q;if(v.value){const ie=g.value.get(v.value);ie&&(v.value.contains(ie)&&v.value.removeChild(ie),g.value.delete(v.value));const q=document.createElement("div");q.setAttribute("style",BHe({...B.value,backgroundImage:`url('${ee}')`,backgroundSize:`${Y}px`})),(Q=v.value)==null||Q.append(q),g.value.set(v.value,q)}},U=ee=>{var Y,Q;let ie=120,q=28;if(!a.value&&ee.measureText){ee.font=`${y.value}px ${w.value}`;const te=E.value.map(Se=>ee.measureText(Se).width);ie=Math.ceil(Math.max(...te)),q=y.value*E.value.length+(E.value.length-1)*3}return[(Y=r.value)!=null?Y:ie,(Q=i.value)!=null?Q:q]},W=()=>{var ee;const Y=document.createElement("canvas"),Q=Y.getContext("2d");if(!Q)return;const[ie,q]=U(Q),te=ie*p,Se=q*p,Fe=(T.value+ie)*p,ve=(D.value+q)*p,Re=T.value/2*p,Ge=D.value/2*p,nt=Fe/2,Ie=ve/2,_e=j.value?2:1,me=(T.value+ie)*_e;Y.width=Fe*_e,Y.height=ve*_e,Q.globalAlpha=l.value,Q.save(),Q.translate(nt,Ie),Q.rotate(Math.PI/180*s.value),Q.translate(-nt,-Ie);const ge=()=>{Q.restore(),j.value&&Q.drawImage(Y,0,0,Fe,ve,Fe,ve,Fe,ve),d.value&&NHe(Y),H(Y.toDataURL(),me)};if(a.value){const Be=new Image;Be.onload=()=>{Q.drawImage(Be,Re,Ge,te,Se),ge()},Be.crossOrigin="anonymous",Be.referrerPolicy="no-referrer",Be.src=a.value}else{const Be=Number(y.value)*p;Q.font=`${k.value} normal ${S.value} ${Be}px/${q}px ${w.value}`,Q.fillStyle=_.value,Q.textAlign=x.value,Q.textBaseline="top",Q.translate(te/2,0),(ee=E.value)==null||ee.forEach((Ye,Ke)=>{Q.fillText(Ye??"",Re,Ge+Ke*(Be+3*p))}),ge()}},K=ee=>Array.from(g.value.values()).includes(ee),oe=ee=>{if(e.antiTamper)for(const Y of ee){const Q=Array.from(Y.removedNodes).some(q=>K(q)),ie=Y.type==="attributes"&&K(Y.target);if(Q||ie){W();break}}},{theme:ae}=OHe(W);return fn(()=>{W(),Pve(v.value,oe,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),It(e,W,{deep:!0,flush:"post"}),()=>{var ee;return O("div",Ft({ref:v,class:h,style:{position:"relative",overflow:"hidden"}},n),[(ee=t.default)==null?void 0:ee.call(t)])}}});const FHe=Object.assign(ZM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+ZM.name,ZM)}});function jHe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var VHe=xe({name:"TreeSelectPanel",components:{Tree:kV},props:{treeProps:{type:Object,default:()=>({})},selectedKeys:{type:Array},showCheckable:{type:Boolean},treeSlots:{type:Object,default:()=>({})},scrollbar:{type:[Boolean,Object],default:!0}},emits:["change"],setup(e,{emit:t}){const{showCheckable:n,selectedKeys:r,treeProps:i,scrollbar:a}=tn(e),{displayScrollbar:s,scrollbarProps:l}=j5(a),c=Me("tree-select"),d=ue(),h=F(()=>({...i.value,disableSelectActionOnly:!0,checkedKeys:n.value?r.value:[],selectedKeys:n.value?[]:r.value})),p=(y,S)=>{var k,w;n.value?(w=(k=d.value)==null?void 0:k.toggleCheck)==null||w.call(k,y[0],S):t("change",y)},v=y=>{t("change",y)},g=()=>O(kV,Ft({ref:d},h.value,{onSelect:p,onCheck:v}),e.treeSlots);return()=>{if(s.value){let y;return O(Rd,Ft({class:`${c}-tree-wrapper`},l.value),jHe(y=g())?y:{default:()=>[y]})}return O("div",{class:`${c}-tree-wrapper`},[g()])}}});function nW(e){return gr(e)}function Rve(e){return e!=null&&e!==""}function rW(e){return nW(e)?e.value:e}function zHe(e){return nW(e)?e.label:void 0}function sie(e){const t=rW(e);return Rve(t)}function aie(e){return e.map(rW).filter(Rve)}function UHe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:i,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=tn(e);function d(_){const T=(nr(_)?_:[_]).filter(sie);return a?.value||s?.value?T:T.slice(0,1)}function h(_,T){const D=[],P=_?_.filter(sie):[];if(P.length){const M=new Map;T?.forEach($=>{M.set($.value,$)}),P.forEach($=>{var L,B,j,H,U;const W=rW($),K=M.get(W),oe=i.value.get(W);let ae=null;const ee=((L=c?.value)==null?void 0:L.title)||"title";if(!oe){const Y=Sn(l?.value)?l?.value(W):l?.value;if(Y===!1)return;gr(Y)&&(ae=Y)}D.push({...nW($)?$:{},...K||{},value:W,label:(U=(H=(j=(B=zHe($))!=null?B:oe?.title)!=null?j:K?.label)!=null?H:ae?.[ee])!=null?U:W})})}return D}const p=ue(),v=ue();$s(()=>{var _;const T=r?.value!==void 0,D=d((_=r?.value)!=null?_:[]),P=aie(D);v.value=T?h(P,h(D)):void 0,p.value=T?P:void 0});const g=d((t=n?.value)!=null?t:[]),y=aie(g),S=h(y,h(g)),k=ue(y||[]),w=ue(S);It(k,()=>{w.value=h(k.value,S)}),It([p,v],([_,T])=>{k.value=_||[],w.value=T||[]});const x=F(()=>{var _;return(_=p.value)!=null?_:k.value}),E=F(()=>{var _;return(_=v.value)!=null?_:w.value});return{selectedKeys:x,selectedValue:E,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:w}}function HHe(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:i,fieldNames:a}=tn(e),s=F(()=>{var y;return((y=a.value)==null?void 0:y.key)||"key"}),l=(y,S)=>{const k=S[s.value];return!wn(k)&&String(k).indexOf(y)>-1},c=F(()=>r?.value||l),d=ue(),h=F(()=>!!t.value),p=F(()=>!i?.value&&h.value&&d.value&&d.value.size===0),v=F(()=>i?.value?void 0:y=>{var S,k;if(!h.value)return!0;const w=y[s.value];return(k=(S=d.value)==null?void 0:S.has(w||""))!=null?k:!1}),g=o_((y,S)=>{const k=y.filter(x=>c.value(S,x.treeNodeData)),w=new Set;k.forEach(x=>{w.add(x.key),x.pathParentKeys.forEach(E=>{w.add(E)})}),d.value=w},100);return $s(()=>{i?.value?d.value=void 0:g(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:v}}function WHe(e,t){const n=`${t}-slot-`;return Object.keys(e).reduce((i,a)=>{if(a.startsWith(n)){const s=a.slice(n.length);s&&(i[s]=e[a])}return i},{})}const GHe=xe({name:"TreeSelect",components:{Trigger:va,SelectView:K8,Panel:VHe,Empty:Jh,Spin:Pd},inheritAttrs:!1,props:{disabled:{type:Boolean},loading:{type:Boolean},error:{type:Boolean},size:{type:String},border:{type:Boolean,default:!0},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowClear:{type:Boolean},placeholder:{type:String},maxTagCount:{type:Number},multiple:{type:Boolean},defaultValue:{type:[String,Number,Array,Object]},modelValue:{type:[String,Number,Array,Object]},fieldNames:{type:Object},data:{type:Array,default:()=>[]},labelInValue:{type:Boolean},treeCheckable:{type:Boolean},treeCheckStrictly:{type:Boolean},treeCheckedStrategy:{type:String,default:"all"},treeProps:{type:Object},triggerProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},dropdownStyle:{type:Object},dropdownClassName:{type:[String,Array]},filterTreeNode:{type:Function},loadMore:{type:Function},disableFilter:{type:Boolean},popupContainer:{type:[String,Object]},fallbackOption:{type:[Boolean,Function],default:!0},selectable:{type:[Boolean,String,Function],default:!0},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},inputValue:{type:String},defaultInputValue:{type:String,default:""}},emits:{change:e=>!0,"update:modelValue":e=>!0,"update:inputValue":e=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,search:e=>!0,clear:()=>!0,inputValueChange:e=>!0},setup(e,{emit:t,slots:n}){var r,i,a;const{defaultValue:s,modelValue:l,multiple:c,popupVisible:d,defaultPopupVisible:h,treeCheckable:p,treeCheckStrictly:v,data:g,fieldNames:y,disabled:S,labelInValue:k,filterTreeNode:w,disableFilter:x,dropdownStyle:E,treeProps:_,fallbackOption:T,selectable:D,dropdownClassName:P}=tn(e),{mergedDisabled:M,eventHandlers:$}=Do({disabled:S}),L=Me("tree-select"),B=Pn(Za,void 0),j=(a=(i=B==null?void 0:(r=B.slots).empty)==null?void 0:i.call(r,{component:"tree-select"}))==null?void 0:a[0],H=F(()=>c.value||p.value),U=(ct,Ct)=>{var xt;return D.value==="leaf"?Ct.isLeaf:Sn(D.value)?D.value(ct,Ct):(xt=D.value)!=null?xt:!1},W=F(()=>p.value?U:!1),K=F(()=>gr(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:oe,key2TreeNode:ae}=Cve(Wt({treeData:g,fieldNames:y,selectable:U,checkable:W})),{selectedKeys:ee,selectedValue:Y,setLocalSelectedKeys:Q,localSelectedKeys:ie,localSelectedValue:q}=UHe(Wt({defaultValue:s,modelValue:l,key2TreeNode:ae,multiple:c,treeCheckable:p,treeCheckStrictly:v,fallbackOption:T,fieldNames:y}));function te(ct){return p.value?_m(ct):gV(ct)}const Se=F(()=>wn(Y.value)?[]:H.value&&!M.value?Y.value.map(ct=>{const Ct=ae.value.get(ct.value);return{...ct,closable:!Ct||te(Ct)}}):Y.value),Fe=ct=>{Q(ct),dn(()=>{var Ct,xt;const Rt=(k.value?q.value:ie.value)||[],Ht=H.value?Rt:Rt[0];t("update:modelValue",Ht),t("change",Ht),(xt=(Ct=$.value)==null?void 0:Ct.onChange)==null||xt.call(Ct)})},ve=ue(e.defaultInputValue),Re=F(()=>{var ct;return(ct=e.inputValue)!=null?ct:ve.value}),Ge=ct=>{ve.value=ct,t("update:inputValue",ct),t("inputValueChange",ct)},nt=ct=>{ct!==Re.value&&(me(!0),Ge(ct),e.allowSearch&&t("search",ct))},[Ie,_e]=pa(h.value,Wt({value:d})),me=ct=>{ct!==Ie.value&&(_e(ct),t("popup-visible-change",ct),t("update:popupVisible",ct)),ct||Ke.value&&Ke.value.blur&&Ke.value.blur()},{isEmptyFilterResult:ge,filterTreeNode:Be}=HHe(Wt({searchValue:Re,flattenTreeData:oe,filterMethod:w,disableFilter:x,fieldNames:y})),Ye=F(()=>!oe.value.length||ge.value),Ke=ue(),at=F(()=>{var ct;return[E?.value||{},(ct=_?.value)!=null&&ct.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:Ke,prefixCls:L,TreeSelectEmpty:j,selectedValue:Y,selectedKeys:ee,mergedDisabled:M,searchValue:Re,panelVisible:Ie,isEmpty:Ye,computedFilterTreeNode:Be,isMultiple:H,selectViewValue:Se,computedDropdownStyle:at,onSearchValueChange:nt,onSelectChange(ct){Fe(ct),!K.value&&Re.value&&Ge(""),H.value||me(!1)},onVisibleChange:me,onInnerClear(){Fe([]),t("clear")},pickSubCompSlots:WHe,isSelectable:U,isCheckable:W,onBlur:()=>{!K.value&&Re.value&&Ge("")},onItemRemove(ct){if(M.value)return;const Ct=ae.value.get(ct);if(p.value&&Ct){if(te(Ct)){const[xt]=_V({node:Ct,checked:!1,checkedKeys:ee.value,indeterminateKeys:[],checkStrictly:v.value});Fe(xt)}}else{const xt=ee.value.filter(Rt=>Rt!==ct);Fe(xt)}}}}});function KHe(e,t,n,r,i,a){const s=Ee("SelectView"),l=Ee("Spin"),c=Ee("Panel"),d=Ee("Trigger");return z(),Ze(d,Ft({class:`${e.prefixCls}-trigger`,"auto-fit-popup-min-width":"",trigger:"click",position:"bl","popup-offset":4,"animation-name":"slide-dynamic-origin","prevent-focus":!0},e.triggerProps,{disabled:e.mergedDisabled,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,"click-to-close":!e.allowSearch,"auto-fit-transform-origin":"",onPopupVisibleChange:e.onVisibleChange}),{content:ce(()=>[I("div",{class:fe([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:qe(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(z(),X("div",{key:0,class:fe(`${e.prefixCls}-header`)},[mt(e.$slots,"header")],2)):Ae("v-if",!0),e.loading?mt(e.$slots,"loader",{key:1},()=>[O(l)]):e.isEmpty?mt(e.$slots,"empty",{key:2},()=>[(z(),Ze(Ca(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(z(),Ze(c,{key:3,"selected-keys":e.selectedKeys,"show-checkable":e.treeCheckable,scrollbar:e.scrollbar,"tree-props":{actionOnNodeClick:e.selectable==="leaf"?"expand":void 0,blockNode:!0,...e.treeProps,data:e.data,checkStrictly:e.treeCheckStrictly,checkedStrategy:e.treeCheckedStrategy,fieldNames:e.fieldNames,multiple:e.multiple,loadMore:e.loadMore,filterTreeNode:e.computedFilterTreeNode,size:e.size,checkable:e.isCheckable,selectable:e.isSelectable,searchValue:e.searchValue},"tree-slots":e.pickSubCompSlots(e.$slots,"tree"),onChange:e.onSelectChange},null,8,["selected-keys","show-checkable","scrollbar","tree-props","tree-slots","onChange"])),e.$slots.footer&&(!e.isEmpty||e.showFooterOnEmpty)?(z(),X("div",{key:4,class:fe(`${e.prefixCls}-footer`)},[mt(e.$slots,"footer")],2)):Ae("v-if",!0)],6)]),default:ce(()=>[mt(e.$slots,"trigger",{},()=>[O(s,Ft({ref:"refSelectView","model-value":e.selectViewValue,"input-value":e.searchValue,"allow-search":!!e.allowSearch,"allow-clear":e.allowClear,loading:e.loading,size:e.size,"max-tag-count":e.maxTagCount,disabled:e.mergedDisabled,opened:e.panelVisible,error:e.error,bordered:e.border,placeholder:e.placeholder,multiple:e.isMultiple},e.$attrs,{onInputValueChange:e.onSearchValueChange,onClear:e.onInnerClear,onRemove:e.onItemRemove,onBlur:e.onBlur}),yo({_:2},[e.$slots.prefix?{name:"prefix",fn:ce(()=>[mt(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:ce(h=>[mt(e.$slots,"label",qi(wa(h)))]),key:"1"}:void 0]),1040,["model-value","input-value","allow-search","allow-clear","loading","size","max-tag-count","disabled","opened","error","bordered","placeholder","multiple","onInputValueChange","onClear","onRemove","onBlur"])])]),_:3},16,["class","disabled","popup-visible","popup-container","click-to-close","onPopupVisibleChange"])}var JM=Ue(GHe,[["render",KHe]]);const qHe=Object.assign(JM,{install:(e,t)=>{qn(e,t);const n=Kn(t);e.component(n+JM.name,JM)}}),wV={Button:Jo,Link:v0e,Typography:tHe,Divider:g$e,Grid:P4,Layout:BNe,Space:DVe,Avatar:GPe,Badge:nRe,Calendar:Vpe,Card:CMe,Carousel:FMe,Collapse:r9e,Comment:O9e,ColorPicker:A9e,Descriptions:m$e,Empty:Jh,Image:fNe,Scrollbar:Rd,List:Z0e,Popover:yH,Statistic:zVe,Table:Ize,Tabs:zze,Tag:SH,Timeline:Zze,Tooltip:Qc,AutoComplete:$Pe,Cascader:qMe,Checkbox:Wc,DatePicker:w0e,Form:pBe,Input:z0,InputNumber:iS,InputTag:Fpe,Mention:lFe,Radio:$m,Rate:qje,Select:s_,Slider:LVe,Switch:ZVe,Textarea:J0e,TimePicker:Kze,Transfer:aUe,Tree:kV,Upload:IHe,TreeSelect:qHe,Alert:ppe,Drawer:cV,Message:gt,Modal:Xl,Notification:vV,Popconfirm:oje,Progress:ove,Result:iVe,Spin:Pd,Skeleton:dVe,Breadcrumb:TRe,Dropdown:Lpe,Menu:$Fe,PageHeader:nje,Pagination:NH,Steps:KVe,Affix:R7e,Anchor:xDe,BackTop:JPe,ConfigProvider:N9e,ResizeBox:q0e,Trigger:va,Split:OVe,Icon:bBe,OverflowList:LHe,Watermark:FHe,VerificationCode:DHe},YHe=(e,t)=>{for(const n of Object.keys(wV))e.use(wV[n],t)},XHe={...wV,Alter:ppe,AnchorLink:rC,AvatarGroup:uC,BreadcrumbItem:ob,ButtonGroup:rb,Calendar:Vpe,CardMeta:xC,CardGrid:CC,CarouselItem:EC,CascaderPanel:TC,CheckboxGroup:ib,CollapseItem:AC,DescriptionsItem:OC,WeekPicker:LC,MonthPicker:DC,YearPicker:PC,QuarterPicker:RC,RangePicker:MC,Doption:cy,Dgroup:dC,Dsubmenu:fC,DropdownButton:hC,FormItem:NC,Row:lb,Col:ub,GridItem:BC,ImagePreview:dy,ImagePreviewAction:tT,ImagePreviewGroup:cb,InputGroup:uy,InputSearch:iC,InputPassword:oC,LayoutHeader:jC,LayoutContent:VC,LayoutFooter:zC,LayoutSider:UC,ListItem:HC,ListItemMeta:WC,MenuItem:GC,MenuItemGroup:KC,SubMenu:db,RadioGroup:ab,Option:mm,Optgroup:sb,SkeletonLine:XC,SkeletonShape:ZC,Countdown:JC,Step:QC,Thead:hb,Td:o0,Th:vb,Tr:wh,Tbody:pb,TableColumn:eE,TabPane:tE,TimelineItem:hy,TypographyParagraph:nE,TypographyTitle:rE,TypographyText:iE,install:YHe,addI18nMessages:e7e,useLocale:t7e,getLocale:n7e,useFormItem:Do},ZHe=xe({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),JHe=["stroke-width","stroke-linecap","stroke-linejoin"];function QHe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1)]),14,JHe)}var QM=Ue(ZHe,[["render",QHe]]);const xV=Object.assign(QM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QM.name,QM)}}),eWe=xe({name:"IconArrowFall",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),tWe=["stroke-width","stroke-linecap","stroke-linejoin"];function nWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.008 41.99a.01.01 0 0 1-.016 0l-9.978-11.974A.01.01 0 0 1 14.02 30H33.98a.01.01 0 0 1 .007.016l-9.978 11.975Z"},null,-1),I("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M22 6h4v26h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1)]),14,tWe)}var e9=Ue(eWe,[["render",nWe]]);const rWe=Object.assign(e9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e9.name,e9)}}),iWe=xe({name:"IconArrowLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),oWe=["stroke-width","stroke-linecap","stroke-linejoin"];function sWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1)]),14,oWe)}var t9=Ue(iWe,[["render",sWe]]);const iW=Object.assign(t9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t9.name,t9)}}),aWe=xe({name:"IconArrowRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),lWe=["stroke-width","stroke-linecap","stroke-linejoin"];function uWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1)]),14,lWe)}var n9=Ue(aWe,[["render",uWe]]);const cWe=Object.assign(n9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n9.name,n9)}}),dWe=xe({name:"IconArrowRise",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fWe=["stroke-width","stroke-linecap","stroke-linejoin"];function hWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.992 6.01a.01.01 0 0 1 .016 0l9.978 11.974a.01.01 0 0 1-.007.016H14.02a.01.01 0 0 1-.007-.016l9.978-11.975Z"},null,-1),I("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M26 42h-4V16h4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1)]),14,fWe)}var r9=Ue(dWe,[["render",hWe]]);const pWe=Object.assign(r9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r9.name,r9)}}),vWe=xe({name:"IconArrowUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mWe=["stroke-width","stroke-linecap","stroke-linejoin"];function gWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1)]),14,mWe)}var i9=Ue(vWe,[["render",gWe]]);const CV=Object.assign(i9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i9.name,i9)}}),yWe=xe({name:"IconDoubleDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bWe=["stroke-width","stroke-linecap","stroke-linejoin"];function _We(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.9 11.142 14.143 14.142 14.142-14.142M9.9 22.456l14.143 14.142 14.142-14.142"},null,-1)]),14,bWe)}var o9=Ue(yWe,[["render",_We]]);const SWe=Object.assign(o9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o9.name,o9)}}),kWe=xe({name:"IconDoubleUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),wWe=["stroke-width","stroke-linecap","stroke-linejoin"];function xWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.1 36.858 23.957 22.716 9.816 36.858M38.1 25.544 23.957 11.402 9.816 25.544"},null,-1)]),14,wWe)}var s9=Ue(kWe,[["render",xWe]]);const CWe=Object.assign(s9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s9.name,s9)}}),EWe=xe({name:"IconDownCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),TWe=["stroke-width","stroke-linecap","stroke-linejoin"];function AWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),I("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1)]),14,TWe)}var a9=Ue(EWe,[["render",AWe]]);const IWe=Object.assign(a9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a9.name,a9)}}),LWe=xe({name:"IconDragArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DWe=["stroke-width","stroke-linecap","stroke-linejoin"];function PWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 24h34M24 7v34M30 12l-6-6-6 6M36 30l6-6-6-6M12 30l-6-6 6-6M18 36l6 6 6-6"},null,-1)]),14,DWe)}var l9=Ue(LWe,[["render",PWe]]);const Mve=Object.assign(l9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l9.name,l9)}}),RWe=xe({name:"IconExpand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MWe=["stroke-width","stroke-linecap","stroke-linejoin"];function OWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1)]),14,MWe)}var u9=Ue(RWe,[["render",OWe]]);const $We=Object.assign(u9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u9.name,u9)}}),BWe=xe({name:"IconLeftCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NWe=["stroke-width","stroke-linecap","stroke-linejoin"];function FWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1)]),14,NWe)}var c9=Ue(BWe,[["render",FWe]]);const jWe=Object.assign(c9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c9.name,c9)}}),VWe=xe({name:"IconRightCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zWe=["stroke-width","stroke-linecap","stroke-linejoin"];function UWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1)]),14,zWe)}var d9=Ue(VWe,[["render",UWe]]);const HWe=Object.assign(d9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d9.name,d9)}}),WWe=xe({name:"IconShrink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GWe=["stroke-width","stroke-linecap","stroke-linejoin"];function KWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1)]),14,GWe)}var f9=Ue(WWe,[["render",KWe]]);const qWe=Object.assign(f9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f9.name,f9)}}),YWe=xe({name:"IconSwap",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XWe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZWe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 17h35.586c.89 0 1.337-1.077.707-1.707L33 7M43 31H7.414c-.89 0-1.337 1.077-.707 1.707L15 41"},null,-1)]),14,XWe)}var h9=Ue(YWe,[["render",ZWe]]);const Ove=Object.assign(h9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h9.name,h9)}}),JWe=xe({name:"IconToBottom",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),QWe=["stroke-width","stroke-linecap","stroke-linejoin"];function eGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),I("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QWe)}var p9=Ue(JWe,[["render",eGe]]);const tGe=Object.assign(p9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p9.name,p9)}}),nGe=xe({name:"IconToLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rGe=["stroke-width","stroke-linecap","stroke-linejoin"];function iGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),I("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,rGe)}var v9=Ue(nGe,[["render",iGe]]);const oGe=Object.assign(v9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v9.name,v9)}}),sGe=xe({name:"IconToRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aGe=["stroke-width","stroke-linecap","stroke-linejoin"];function lGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),I("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,aGe)}var m9=Ue(sGe,[["render",lGe]]);const uGe=Object.assign(m9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m9.name,m9)}}),cGe=xe({name:"IconUpCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dGe=["stroke-width","stroke-linecap","stroke-linejoin"];function fGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1)]),14,dGe)}var g9=Ue(cGe,[["render",fGe]]);const hGe=Object.assign(g9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g9.name,g9)}}),pGe=xe({name:"IconExclamationPolygonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vGe=["stroke-width","stroke-linecap","stroke-linejoin"];function mGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.553 4a1 1 0 0 0-.74.327L4.26 15.937a1 1 0 0 0-.26.672V31.39a1 1 0 0 0 .26.673l10.553 11.609a1 1 0 0 0 .74.327h16.893a1 1 0 0 0 .74-.327l10.554-11.61a1 1 0 0 0 .26-.672V16.61a1 1 0 0 0-.26-.673L33.187 4.327a1 1 0 0 0-.74-.327H15.553ZM22 33a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,vGe)}var y9=Ue(pGe,[["render",mGe]]);const gGe=Object.assign(y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y9.name,y9)}}),yGe=xe({name:"IconMinusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bGe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ge(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-7-22a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H17Z",fill:"currentColor",stroke:"none"},null,-1)]),14,bGe)}var b9=Ue(yGe,[["render",_Ge]]);const SGe=Object.assign(b9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b9.name,b9)}}),kGe=xe({name:"IconPlusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),wGe=["stroke-width","stroke-linecap","stroke-linejoin"];function xGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-28v6h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,wGe)}var _9=Ue(kGe,[["render",xGe]]);const CGe=Object.assign(_9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_9.name,_9)}}),EGe=xe({name:"IconQuestionCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),TGe=["stroke-width","stroke-linecap","stroke-linejoin"];function AGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-3.862-24.021a.461.461 0 0 0 .462-.462 2.37 2.37 0 0 1 .636-1.615C21.64 17.48 22.43 17 23.988 17c1.465 0 2.483.7 3.002 1.493.555.848.446 1.559.182 1.914-.328.444-.736.853-1.228 1.296-.15.135-.335.296-.533.468-.354.308-.75.654-1.067.955C23.22 24.195 22 25.686 22 28v.013a1 1 0 0 0 1.006.993l2.008-.012a.993.993 0 0 0 .986-1c.002-.683.282-1.19 1.101-1.97.276-.262.523-.477.806-.722.21-.18.439-.379.713-.626.57-.513 1.205-1.13 1.767-1.888 1.516-2.047 1.161-4.634-.05-6.485C29.092 14.398 26.825 13 23.988 13c-2.454 0-4.357.794-5.642 2.137-1.25 1.307-1.742 2.954-1.746 4.37 0 .26.21.472.47.472h3.068Zm1.868 14.029a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V32a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2.008Z",fill:"currentColor",stroke:"none"},null,-1)]),14,TGe)}var S9=Ue(EGe,[["render",AGe]]);const IGe=Object.assign(S9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S9.name,S9)}}),LGe=xe({name:"IconCheckCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DGe=["stroke-width","stroke-linecap","stroke-linejoin"];function PGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,DGe)}var k9=Ue(LGe,[["render",PGe]]);const yu=Object.assign(k9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k9.name,k9)}}),RGe=xe({name:"IconCheckSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MGe=["stroke-width","stroke-linecap","stroke-linejoin"];function OGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.603 16.672 21.168 30.107l-7.778-7.779M8 41h32a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1Z"},null,-1)]),14,MGe)}var w9=Ue(RGe,[["render",OGe]]);const $Ge=Object.assign(w9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w9.name,w9)}}),BGe=xe({name:"IconCloseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NGe=["stroke-width","stroke-linecap","stroke-linejoin"];function FGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,NGe)}var x9=Ue(BGe,[["render",FGe]]);const $ve=Object.assign(x9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x9.name,x9)}}),jGe=xe({name:"IconExclamationCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),VGe=["stroke-width","stroke-linecap","stroke-linejoin"];function zGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"},null,-1)]),14,VGe)}var C9=Ue(jGe,[["render",zGe]]);const $c=Object.assign(C9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C9.name,C9)}}),UGe=xe({name:"IconInfoCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),HGe=["stroke-width","stroke-linecap","stroke-linejoin"];function WGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 20v14m0-16v-4m18 10c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,HGe)}var E9=Ue(UGe,[["render",WGe]]);const Mc=Object.assign(E9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E9.name,E9)}}),GGe=xe({name:"IconMinusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),KGe=["stroke-width","stroke-linecap","stroke-linejoin"];function qGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 24H16m26 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,KGe)}var T9=Ue(GGe,[["render",qGe]]);const YGe=Object.assign(T9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T9.name,T9)}}),XGe=xe({name:"IconPlusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ZGe=["stroke-width","stroke-linecap","stroke-linejoin"];function JGe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 24h-8m-8 0h8m0 0v8m0-8v-8m18 8c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,ZGe)}var A9=Ue(XGe,[["render",JGe]]);const QGe=Object.assign(A9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A9.name,A9)}}),eKe=xe({name:"IconQuestion",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),tKe=["stroke-width","stroke-linecap","stroke-linejoin"];function nKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 17c0-5.523 4.925-10 11-10s11 4.477 11 10c0 3.607-2.1 6.767-5.25 8.526C26.857 27.142 24 29.686 24 33v3m0 5h.02v.02H24V41Z"},null,-1)]),14,tKe)}var I9=Ue(eKe,[["render",nKe]]);const rKe=Object.assign(I9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I9.name,I9)}}),iKe=xe({name:"IconStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),oKe=["stroke-width","stroke-linecap","stroke-linejoin"];function sKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M36.728 36.728c7.03-7.03 7.03-18.427 0-25.456-7.03-7.03-18.427-7.03-25.456 0m25.456 25.456c-7.03 7.03-18.427 7.03-25.456 0-7.03-7.03-7.03-18.427 0-25.456m25.456 25.456L11.272 11.272"},null,-1)]),14,oKe)}var L9=Ue(iKe,[["render",sKe]]);const aKe=Object.assign(L9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L9.name,L9)}}),lKe=xe({name:"IconHeartFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),uKe=["stroke-width","stroke-linecap","stroke-linejoin"];function cKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 10.541c4.35-4.522 11.405-4.814 15.756-.292 4.35 4.522 4.15 11.365.448 17.135C36.153 33.7 28 41.5 24 42c-4-.5-12.152-8.3-16.204-14.616-3.702-5.77-3.902-12.613.448-17.135C12.595 5.727 19.65 6.019 24 10.54Z",fill:"currentColor",stroke:"none"},null,-1)]),14,uKe)}var D9=Ue(lKe,[["render",cKe]]);const oW=Object.assign(D9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D9.name,D9)}}),dKe=xe({name:"IconThumbDownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fKe=["stroke-width","stroke-linecap","stroke-linejoin"];function hKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M20.9 43.537a2 2 0 0 0 2.83-.364L32.964 31H36V5H12.424a2 2 0 0 0-1.89 1.346L4.838 25.692C3.938 28.29 5.868 31 8.618 31h10.568l-2.421 5.448a4 4 0 0 0 1.184 4.77l2.951 2.32Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fKe)}var P9=Ue(dKe,[["render",hKe]]);const pKe=Object.assign(P9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P9.name,P9)}}),vKe=xe({name:"IconThumbUpFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mKe=["stroke-width","stroke-linecap","stroke-linejoin"];function gKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M27.1 4.463a2 2 0 0 0-2.83.364L15.036 17H12v26h23.576a2 2 0 0 0 1.89-1.346l5.697-19.346c.899-2.598-1.03-5.308-3.78-5.308h-10.57l2.422-5.448a4 4 0 0 0-1.184-4.77L27.1 4.462Z",fill:"currentColor",stroke:"none"},null,-1)]),14,mKe)}var R9=Ue(vKe,[["render",gKe]]);const yKe=Object.assign(R9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R9.name,R9)}}),bKe=xe({name:"IconAt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_Ke=["stroke-width","stroke-linecap","stroke-linejoin"];function SKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31 23a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm0 0c0 3.038 2.462 6.5 5.5 6.5A5.5 5.5 0 0 0 42 24c0-9.941-8.059-18-18-18S6 14.059 6 24s8.059 18 18 18c4.244 0 8.145-1.469 11.222-3.925"},null,-1)]),14,_Ke)}var M9=Ue(bKe,[["render",SKe]]);const kKe=Object.assign(M9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M9.name,M9)}}),wKe=xe({name:"IconCloudDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xKe=["stroke-width","stroke-linecap","stroke-linejoin"];function CKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 22c0-7.732-6.492-14-14.5-14S14 14.268 14 22v.055A9.001 9.001 0 0 0 15 40h13m16.142-5.929-7.07 7.071L30 34.072M37.07 26v15"},null,-1)]),14,xKe)}var O9=Ue(wKe,[["render",CKe]]);const EKe=Object.assign(O9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O9.name,O9)}}),TKe=xe({name:"IconCodeBlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),AKe=["stroke-width","stroke-linecap","stroke-linejoin"];function IKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 6h-4a3 3 0 0 0-3 3v10c0 3-4.343 5-6 5 1.657 0 6 2 6 5v10a3 3 0 0 0 3 3h4M29 6h4a3 3 0 0 1 3 3v10c0 3 4.343 5 6 5-1.657 0-6 2-6 5v10a3 3 0 0 1-3 3h-4"},null,-1)]),14,AKe)}var $9=Ue(TKe,[["render",IKe]]);const Bve=Object.assign($9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$9.name,$9)}}),LKe=xe({name:"IconCodeSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DKe=["stroke-width","stroke-linecap","stroke-linejoin"];function PKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.071 17 16 24.071l7.071 7.071m9.001-14.624-4.14 15.454M9 42h30a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1Z"},null,-1)]),14,DKe)}var B9=Ue(LKe,[["render",PKe]]);const RKe=Object.assign(B9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B9.name,B9)}}),MKe=xe({name:"IconCode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),OKe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ke(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16.734 12.686 5.42 24l11.314 11.314m14.521-22.628L42.57 24 31.255 35.314M27.2 6.28l-6.251 35.453"},null,-1)]),14,OKe)}var N9=Ue(MKe,[["render",$Ke]]);const I0=Object.assign(N9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N9.name,N9)}}),BKe=xe({name:"IconCustomerService",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NKe=["stroke-width","stroke-linecap","stroke-linejoin"];function FKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 31V20c0-7.18 5.82-13 13-13s13 5.82 13 13v8c0 5.784-3.778 10.686-9 12.373m0 0A12.99 12.99 0 0 1 24 41h-3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2.373Zm0 0V41m9-20h3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-3v-8Zm-26 0H8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3v-8Z"},null,-1)]),14,NKe)}var F9=Ue(BKe,[["render",FKe]]);const jKe=Object.assign(F9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F9.name,F9)}}),VKe=xe({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zKe=["stroke-width","stroke-linecap","stroke-linejoin"];function UKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1)]),14,zKe)}var j9=Ue(VKe,[["render",UKe]]);const Mh=Object.assign(j9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j9.name,j9)}}),HKe=xe({name:"IconExport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),WKe=["stroke-width","stroke-linecap","stroke-linejoin"];function GKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1)]),14,WKe)}var V9=Ue(HKe,[["render",GKe]]);const oA=Object.assign(V9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V9.name,V9)}}),KKe=xe({name:"IconHeart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),qKe=["stroke-width","stroke-linecap","stroke-linejoin"];function YKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.083 12.912a9.929 9.929 0 0 1 .177 13.878l-.177.18L25.76 39.273c-.972.97-2.548.97-3.52 0L9.917 26.971l-.177-.181a9.929 9.929 0 0 1 .177-13.878c3.889-3.883 10.194-3.883 14.083 0 3.889-3.883 10.194-3.883 14.083 0Z"},null,-1)]),14,qKe)}var z9=Ue(KKe,[["render",YKe]]);const sA=Object.assign(z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z9.name,z9)}}),XKe=xe({name:"IconHistory",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ZKe=["stroke-width","stroke-linecap","stroke-linejoin"];function JKe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18c-6.26 0-11.775-3.197-15-8.047M6 24l-.5-.757h1L6 24Zm26 2h-9v-9"},null,-1)]),14,ZKe)}var U9=Ue(XKe,[["render",JKe]]);const Bm=Object.assign(U9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U9.name,U9)}}),QKe=xe({name:"IconHome",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),eqe=["stroke-width","stroke-linecap","stroke-linejoin"];function tqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),I("path",{d:"M20 28h8v13h-8V28Z"},null,-1)]),14,eqe)}var H9=Ue(QKe,[["render",tqe]]);const h3=Object.assign(H9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H9.name,H9)}}),nqe=xe({name:"IconImport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rqe=["stroke-width","stroke-linecap","stroke-linejoin"];function iqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1)]),14,rqe)}var W9=Ue(nqe,[["render",iqe]]);const aA=Object.assign(W9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W9.name,W9)}}),oqe=xe({name:"IconLaunch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function aqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"},null,-1)]),14,sqe)}var G9=Ue(oqe,[["render",aqe]]);const Nve=Object.assign(G9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G9.name,G9)}}),lqe=xe({name:"IconList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),uqe=["stroke-width","stroke-linecap","stroke-linejoin"];function cqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1)]),14,uqe)}var K9=Ue(lqe,[["render",cqe]]);const sW=Object.assign(K9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K9.name,K9)}}),dqe=xe({name:"IconMessageBanned",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fqe=["stroke-width","stroke-linecap","stroke-linejoin"];function hqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40.527 20C38.727 12.541 32.01 7 24 7 14.611 7 7 14.611 7 24v17h14m19.364-.636a9 9 0 0 0-12.728-12.728m12.728 12.728a9 9 0 0 1-12.728-12.728m12.728 12.728L27.636 27.636M13 20h12m-12 9h6"},null,-1)]),14,fqe)}var q9=Ue(dqe,[["render",hqe]]);const pqe=Object.assign(q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q9.name,q9)}}),vqe=xe({name:"IconMessage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mqe=["stroke-width","stroke-linecap","stroke-linejoin"];function gqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 20h18m-18 9h9M7 41h17.63C33.67 41 41 33.67 41 24.63V24c0-9.389-7.611-17-17-17S7 14.611 7 24v17Z"},null,-1)]),14,mqe)}var Y9=Ue(vqe,[["render",gqe]]);const yqe=Object.assign(Y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y9.name,Y9)}}),bqe=xe({name:"IconMoreVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_qe=["stroke-width","stroke-linecap","stroke-linejoin"];function Sqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1)]),14,_qe)}var X9=Ue(bqe,[["render",Sqe]]);const kqe=Object.assign(X9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X9.name,X9)}}),wqe=xe({name:"IconPoweroff",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Cqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15.5 9.274C10.419 12.214 7 17.708 7 24c0 9.389 7.611 17 17 17s17-7.611 17-17c0-6.292-3.419-11.786-8.5-14.726M24 5v22"},null,-1)]),14,xqe)}var Z9=Ue(wqe,[["render",Cqe]]);const Eqe=Object.assign(Z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z9.name,Z9)}}),Tqe=xe({name:"IconRefresh",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Aqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Iqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30"},null,-1)]),14,Aqe)}var J9=Ue(Tqe,[["render",Iqe]]);const sc=Object.assign(J9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J9.name,J9)}}),Lqe=xe({name:"IconReply",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Dqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Pqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m6.642 24.684 14.012 14.947a.2.2 0 0 0 .346-.137v-8.949A23.077 23.077 0 0 1 26 30c6.208 0 11.84 2.459 15.978 6.456a.01.01 0 0 0 .017-.007C42 36.299 42 36.15 42 36c0-10.493-8.506-19-19-19-.675 0-1.342.035-2 .104V8.506a.2.2 0 0 0-.346-.137L6.642 23.316a1 1 0 0 0 0 1.368Z"},null,-1)]),14,Dqe)}var Q9=Ue(Lqe,[["render",Pqe]]);const Rqe=Object.assign(Q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q9.name,Q9)}}),Mqe=xe({name:"IconSave",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Oqe=["stroke-width","stroke-linecap","stroke-linejoin"];function $qe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M21 13v9m18 20H9a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h22.55a1 1 0 0 1 .748.336l7.45 8.38a1 1 0 0 1 .252.664V41a1 1 0 0 1-1 1ZM14 6h14v15a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V6Z"},null,-1)]),14,Oqe)}var eO=Ue(Mqe,[["render",$qe]]);const hh=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),Bqe=xe({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Nqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Fqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1)]),14,Nqe)}var tO=Ue(Bqe,[["render",Fqe]]);const jqe=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),Vqe=xe({name:"IconSelectAll",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Uqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m17.314 7.243-7.071 7.07L6 10.072m11.314 10.172-7.071 7.07L6 23.072m11.314 10.172-7.071 7.07L6 36.072M21 11h22M21 25h22M21 39h22"},null,-1)]),14,zqe)}var nO=Ue(Vqe,[["render",Uqe]]);const Hqe=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),Wqe=xe({name:"IconSend",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Gqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Kqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1)]),14,Gqe)}var rO=Ue(Wqe,[["render",Kqe]]);const qqe=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),Yqe=xe({name:"IconSettings",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Xqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Zqe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,Xqe)}var iO=Ue(Yqe,[["render",Zqe]]);const Lf=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),Jqe=xe({name:"IconShareAlt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qqe=["stroke-width","stroke-linecap","stroke-linejoin"];function eYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.442 21.552a4.5 4.5 0 1 1 .065 4.025m-.065-4.025-16.884-8.104m16.884 8.104A4.483 4.483 0 0 0 32 23.5c0 .75.183 1.455.507 2.077m-16.95-12.13a4.5 4.5 0 1 1-8.113-3.895 4.5 4.5 0 0 1 8.114 3.896Zm-.064 20.977A4.5 4.5 0 1 0 11.5 41c3.334-.001 5.503-3.68 3.993-6.578Zm0 0 17.014-8.847"},null,-1)]),14,Qqe)}var oO=Ue(Jqe,[["render",eYe]]);const tYe=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),nYe=xe({name:"IconShareExternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rYe=["stroke-width","stroke-linecap","stroke-linejoin"];function iYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 20h-7a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V21a1 1 0 0 0-1-1h-7m2.368-5.636L24.004 6l-8.364 8.364M24.003 28V6.604","stroke-miterlimit":"16"},null,-1)]),14,rYe)}var sO=Ue(nYe,[["render",iYe]]);const oYe=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),sYe=xe({name:"IconShareInternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aYe=["stroke-width","stroke-linecap","stroke-linejoin"];function lYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 35v6H8v-6m1.108-4c1.29-8.868 13.917-15.85 29.392-15.998M30 6l9 9-9 9"},null,-1)]),14,aYe)}var aO=Ue(sYe,[["render",lYe]]);const uYe=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),cYe=xe({name:"IconStar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dYe=["stroke-width","stroke-linecap","stroke-linejoin"];function fYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22.552 6.908a.5.5 0 0 1 .896 0l5.02 10.17a.5.5 0 0 0 .376.274l11.224 1.631a.5.5 0 0 1 .277.853l-8.122 7.916a.5.5 0 0 0-.143.443l1.917 11.178a.5.5 0 0 1-.726.527l-10.038-5.278a.5.5 0 0 0-.466 0L12.73 39.9a.5.5 0 0 1-.726-.527l1.918-11.178a.5.5 0 0 0-.144-.443l-8.122-7.916a.5.5 0 0 1 .278-.853l11.223-1.63a.5.5 0 0 0 .376-.274l5.02-10.17Z"},null,-1)]),14,dYe)}var lO=Ue(cYe,[["render",fYe]]);const lA=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),hYe=xe({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),pYe=["stroke-width","stroke-linecap","stroke-linejoin"];function vYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1)]),14,pYe)}var uO=Ue(hYe,[["render",vYe]]);const mYe=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),gYe=xe({name:"IconThumbDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yYe=["stroke-width","stroke-linecap","stroke-linejoin"];function bYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 31V5M5.83 26.394l5.949-18.697A1 1 0 0 1 12.732 7H34v22h-3l-9.403 12.223a1 1 0 0 1-1.386.196l-2.536-1.87a6 6 0 0 1-2.043-6.974L17 29H7.736a2 2 0 0 1-1.906-2.606Z"},null,-1)]),14,yYe)}var cO=Ue(gYe,[["render",bYe]]);const _Ye=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),SYe=xe({name:"IconThumbUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kYe=["stroke-width","stroke-linecap","stroke-linejoin"];function wYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17v26m35.17-21.394-5.948 18.697a1 1 0 0 1-.953.697H14V19h3l9.403-12.223a1 1 0 0 1 1.386-.196l2.535 1.87a6 6 0 0 1 2.044 6.974L31 19h9.265a2 2 0 0 1 1.906 2.606Z"},null,-1)]),14,kYe)}var dO=Ue(SYe,[["render",wYe]]);const xYe=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),CYe=xe({name:"IconTranslate",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),EYe=["stroke-width","stroke-linecap","stroke-linejoin"];function TYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 25c0 9.941-8.059 18-18 18-6.867 0-12.836-3.845-15.87-9.5M28.374 27 25 18h-2l-3.375 9m8.75 0L31 34m-2.625-7h-8.75m0 0L17 34M6 25c0-9.941 8.059-18 18-18 6.867 0 12.836 3.845 15.87 9.5M43 25h-2l1-1 1 1ZM5 25h2l-1 1-1-1Z"},null,-1)]),14,EYe)}var fO=Ue(CYe,[["render",TYe]]);const AYe=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),IYe=xe({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),LYe=["stroke-width","stroke-linecap","stroke-linejoin"];function DYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1)]),14,LYe)}var hO=Ue(IYe,[["render",DYe]]);const PYe=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),RYe=xe({name:"IconAlignCenter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MYe=["stroke-width","stroke-linecap","stroke-linejoin"];function OYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1)]),14,MYe)}var pO=Ue(RYe,[["render",OYe]]);const $Ye=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),BYe=xe({name:"IconAlignLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NYe=["stroke-width","stroke-linecap","stroke-linejoin"];function FYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1)]),14,NYe)}var vO=Ue(BYe,[["render",FYe]]);const jYe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),VYe=xe({name:"IconAlignRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zYe=["stroke-width","stroke-linecap","stroke-linejoin"];function UYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1)]),14,zYe)}var mO=Ue(VYe,[["render",UYe]]);const HYe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),WYe=xe({name:"IconAttachment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GYe=["stroke-width","stroke-linecap","stroke-linejoin"];function KYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.037 15.236s-9.174 9.267-11.48 11.594c-2.305 2.327-1.646 4.987-.329 6.316 1.317 1.33 3.994 1.953 6.258-.332L37.32 18.851c3.623-3.657 2.092-8.492 0-10.639-2.093-2.147-6.916-3.657-10.54 0L11.3 23.838c-3.623 3.657-3.953 10.638.329 14.96 4.282 4.322 11.115 4.105 14.821.333 3.706-3.773 8.74-8.822 11.224-11.33"},null,-1)]),14,GYe)}var gO=Ue(WYe,[["render",KYe]]);const qYe=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),YYe=xe({name:"IconBgColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XYe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZYe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.442 25.25 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25H9.442Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M19 5.25 22.75 9m0 0 12.043 12.043a1 1 0 0 1 0 1.414L32 25.25M22.75 9 8.693 23.057a1 1 0 0 0-.013 1.4l.762.793m0 0 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25m-22.558 0H32M6 42h36"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.013 29.812 37.201 27l-2.812 2.812a4 4 0 1 0 5.624 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,XYe)}var yO=Ue(YYe,[["render",ZYe]]);const Fve=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),JYe=xe({name:"IconBold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),QYe=["stroke-width","stroke-linecap","stroke-linejoin"];function eXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h12a8 8 0 1 0 0-16H13.2a.2.2 0 0 0-.2.2V24Zm0 0h16a8 8 0 1 1 0 16H13.2a.2.2 0 0 1-.2-.2V24Z"},null,-1)]),14,QYe)}var bO=Ue(JYe,[["render",eXe]]);const tXe=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),nXe=xe({name:"IconBrush",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rXe=["stroke-width","stroke-linecap","stroke-linejoin"];function iXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33 13h7a1 1 0 0 1 1 1v12.14a1 1 0 0 1-.85.99l-21.3 3.24a1 1 0 0 0-.85.99V43M33 8v10.002A.998.998 0 0 1 32 19H8a1 1 0 0 1-1-1V8c0-.552.444-1 .997-1H32.01c.552 0 .99.447.99 1Z"},null,-1)]),14,rXe)}var _O=Ue(nXe,[["render",iXe]]);const oXe=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),sXe=xe({name:"IconEraser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aXe=["stroke-width","stroke-linecap","stroke-linejoin"];function lXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25.5 40.503 14.914 40.5a1 1 0 0 1-.707-.293l-9-9a1 1 0 0 1 0-1.414L13.5 21.5m12 19.003L44 40.5m-18.5.003L29 37M13.5 21.5 26.793 8.207a1 1 0 0 1 1.414 0l14.086 14.086a1 1 0 0 1 0 1.414L29 37M13.5 21.5 29 37"},null,-1)]),14,aXe)}var SO=Ue(sXe,[["render",lXe]]);const uXe=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),cXe=xe({name:"IconFindReplace",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dXe=["stroke-width","stroke-linecap","stroke-linejoin"];function fXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42.353 40.854 36.01 34.51m0 0a9 9 0 0 1-15.364-6.364c0-5 4-9 9-9s9 4 9 9a8.972 8.972 0 0 1-2.636 6.364Zm5.636-26.365h-36m10 16h-10m10 16h-10"},null,-1)]),14,dXe)}var kO=Ue(cXe,[["render",fXe]]);const hXe=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),pXe=xe({name:"IconFontColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vXe=["stroke-width","stroke-linecap","stroke-linejoin"];function mXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9 41h30M16.467 22 11.5 34m20.032-12L24.998 7h-2l-6.532 15h15.065Zm0 0H16.467h15.065Zm0 0L36.5 34l-4.968-12Z"},null,-1)]),14,vXe)}var wO=Ue(pXe,[["render",mXe]]);const jve=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),gXe=xe({name:"IconFormula",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yXe=["stroke-width","stroke-linecap","stroke-linejoin"];function bXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 8H10a1 1 0 0 0-1 1v.546a1 1 0 0 0 .341.753L24.17 23.273a1 1 0 0 1 .026 1.482l-.195.183L9.343 37.7a1 1 0 0 0-.343.754V39a1 1 0 0 0 1 1h30"},null,-1)]),14,yXe)}var xO=Ue(gXe,[["render",bXe]]);const _Xe=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),SXe=xe({name:"IconH1",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kXe=["stroke-width","stroke-linecap","stroke-linejoin"];function wXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1)]),14,kXe)}var CO=Ue(SXe,[["render",wXe]]);const xXe=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),CXe=xe({name:"IconH2",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),EXe=["stroke-width","stroke-linecap","stroke-linejoin"];function TXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M44 40H32v-.5l7.5-9c.914-1.117 2.5-3 2.5-5 0-2.485-2.239-4.5-5-4.5s-5 2.515-5 5"},null,-1)]),14,EXe)}var EO=Ue(CXe,[["render",TXe]]);const AXe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),IXe=xe({name:"IconH3",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),LXe=["stroke-width","stroke-linecap","stroke-linejoin"];function DXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M37.001 30h-2m2 0a5 5 0 0 0 0-10h-.556a4.444 4.444 0 0 0-4.444 4.444m5 5.556a5 5 0 0 1 0 10h-.556a4.444 4.444 0 0 1-4.444-4.444"},null,-1)]),14,LXe)}var TO=Ue(IXe,[["render",DXe]]);const PXe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),RXe=xe({name:"IconH4",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MXe=["stroke-width","stroke-linecap","stroke-linejoin"];function OXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1)]),14,MXe)}var AO=Ue(RXe,[["render",OXe]]);const $Xe=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),BXe=xe({name:"IconH5",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NXe=["stroke-width","stroke-linecap","stroke-linejoin"];function FXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M43 21H32.5v9h.5s1.5-1 4-1a5 5 0 0 1 5 5v1a5 5 0 0 1-5 5c-2.05 0-4.728-1.234-5.5-3"},null,-1)]),14,NXe)}var IO=Ue(BXe,[["render",FXe]]);const jXe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),VXe=xe({name:"IconH6",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zXe=["stroke-width","stroke-linecap","stroke-linejoin"];function UXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M32 34.5c0 3.038 2.239 5.5 5 5.5s5-2.462 5-5.5-2.239-5.5-5-5.5-5 2.462-5 5.5Zm0 0v-5.73c0-4.444 3.867-7.677 8-7.263.437.044.736.08.952.115"},null,-1)]),14,zXe)}var LO=Ue(VXe,[["render",UXe]]);const HXe=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),WXe=xe({name:"IconH7",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GXe=["stroke-width","stroke-linecap","stroke-linejoin"];function KXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1)]),14,GXe)}var DO=Ue(WXe,[["render",KXe]]);const qXe=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),YXe=xe({name:"IconHighlight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XXe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZXe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 18V9.28a1 1 0 0 1 .758-.97l8-2A1 1 0 0 1 29 7.28V18m-10 0h-4a1 1 0 0 0-1 1v8h-4a1 1 0 0 0-1 1v15m10-25h10m0 0h4a1 1 0 0 1 1 1v8h4a1 1 0 0 1 1 1v15"},null,-1)]),14,XXe)}var PO=Ue(YXe,[["render",ZXe]]);const JXe=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),QXe=xe({name:"IconItalic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),eZe=["stroke-width","stroke-linecap","stroke-linejoin"];function tZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1)]),14,eZe)}var RO=Ue(QXe,[["render",tZe]]);const nZe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),rZe=xe({name:"IconLineHeight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iZe=["stroke-width","stroke-linecap","stroke-linejoin"];function oZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),I("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1)]),14,iZe)}var MO=Ue(rZe,[["render",oZe]]);const sZe=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),aZe=xe({name:"IconOrderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),lZe=["stroke-width","stroke-linecap","stroke-linejoin"];function uZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.578 13.06v1.695h5.041V13.06H9.164V7.555H7.748L5.255 8.968l.763 1.513 1.114-.636v3.215H5.578ZM5.37 26.205v1.49h5.07V26H7.964l.94-.94c.454-.44.783-.86.982-1.258.199-.404.298-.826.298-1.266 0-.686-.224-1.225-.683-1.6-.45-.372-1.093-.55-1.912-.55-.473 0-.933.072-1.38.214a3.63 3.63 0 0 0-1.133.582l-.066.053.652 1.533.113-.085c.263-.199.524-.345.783-.44.266-.094.524-.141.774-.141.309 0 .52.06.652.165.128.1.198.252.198.477 0 .177-.05.356-.154.54l-.001.002c-.099.186-.274.416-.528.69L5.37 26.205ZM10.381 38.344c0-.443-.118-.826-.358-1.145a1.702 1.702 0 0 0-.713-.56 1.652 1.652 0 0 0 .586-.52 1.73 1.73 0 0 0 .307-1.022c0-.404-.108-.763-.327-1.074a2.076 2.076 0 0 0-.918-.71c-.386-.166-.833-.247-1.34-.247-.48 0-.952.071-1.417.213-.459.134-.836.318-1.127.554l-.065.053.652 1.486.11-.076c.275-.193.563-.34.863-.442h.002c.3-.109.581-.162.844-.162.266 0 .454.065.579.18l.004.002c.128.107.198.262.198.48 0 .201-.07.33-.197.412-.138.089-.376.141-.733.141h-1.01v1.626h1.188c.371 0 .614.056.75.15.127.085.2.23.2.463 0 .254-.078.412-.21.503l-.002.002c-.136.097-.386.157-.777.157-.595 0-1.194-.199-1.8-.605l-.11-.073-.65 1.483.064.053c.285.236.662.424 1.127.565h.002c.465.136.95.203 1.456.203.852 0 1.538-.178 2.045-.546.517-.377.777-.896.777-1.544Z",fill:"currentColor",stroke:"none"},null,-1)]),14,lZe)}var OO=Ue(aZe,[["render",uZe]]);const cZe=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),dZe=xe({name:"IconPaste",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fZe=["stroke-width","stroke-linecap","stroke-linejoin"];function hZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1)]),14,fZe)}var $O=Ue(dZe,[["render",hZe]]);const pZe=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),vZe=xe({name:"IconQuote",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mZe=["stroke-width","stroke-linecap","stroke-linejoin"];function gZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6ZM39.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M6.08 33.093a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24m6 24a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24"},null,-1)]),14,mZe)}var BO=Ue(vZe,[["render",gZe]]);const yZe=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),bZe=xe({name:"IconRedo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_Ze=["stroke-width","stroke-linecap","stroke-linejoin"];function SZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m32.678 23.78 7.778-7.778-7.778-7.778M39.19 16H18.5C12.149 16 7 21.15 7 27.5 7 33.852 12.149 39 18.5 39H31"},null,-1)]),14,_Ze)}var NO=Ue(bZe,[["render",SZe]]);const kZe=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),wZe=xe({name:"IconScissor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xZe=["stroke-width","stroke-linecap","stroke-linejoin"];function CZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m40.293 7.707-23.05 23.05m0 0a6 6 0 1 0-8.485 8.485 6 6 0 0 0 8.485-8.485Zm13.514 0a6 6 0 1 0 8.485 8.485 6 6 0 0 0-8.485-8.485Zm0 0L7.707 7.707"},null,-1)]),14,xZe)}var FO=Ue(wZe,[["render",CZe]]);const EZe=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),TZe=xe({name:"IconSortAscending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),AZe=["stroke-width","stroke-linecap","stroke-linejoin"];function IZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 6v33.759a.1.1 0 0 1-.17.07L8 33m17-6h10.4v.65L27 39.35V40h11m-1-19L31.4 8h-.8L25 21"},null,-1)]),14,AZe)}var jO=Ue(TZe,[["render",IZe]]);const Vve=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),LZe=xe({name:"IconSortDescending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),DZe=["stroke-width","stroke-linecap","stroke-linejoin"];function PZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 27h10.4v.65L27 39.35V40h11m-21.999 2V7.24a.1.1 0 0 0-.17-.07L9 14m28 7L31.4 8h-.8L25 21"},null,-1)]),14,DZe)}var VO=Ue(LZe,[["render",PZe]]);const zve=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),RZe=xe({name:"IconSort",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),MZe=["stroke-width","stroke-linecap","stroke-linejoin"];function OZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1)]),14,MZe)}var zO=Ue(RZe,[["render",OZe]]);const $Ze=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),BZe=xe({name:"IconStrikethrough",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NZe=["stroke-width","stroke-linecap","stroke-linejoin"];function FZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 32c0 5.246 5.149 9 11.5 9S36 36.746 36 31.5c0-1.708-.5-4.5-3.5-5.695m0 0H43m-10.5 0H5M34 14.5C34 10.358 29.523 7 24 7s-10 3.358-10 7.5c0 1.794 1.6 4.21 3 5.5"},null,-1)]),14,NZe)}var UO=Ue(BZe,[["render",FZe]]);const jZe=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),VZe=xe({name:"IconUnderline",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zZe=["stroke-width","stroke-linecap","stroke-linejoin"];function UZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1)]),14,zZe)}var HO=Ue(VZe,[["render",UZe]]);const HZe=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),WZe=xe({name:"IconUndo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GZe=["stroke-width","stroke-linecap","stroke-linejoin"];function KZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m15.322 23.78-7.778-7.778 7.778-7.778M8.81 16H29.5C35.851 16 41 21.15 41 27.5 41 33.852 35.851 39 29.5 39H17"},null,-1)]),14,GZe)}var WO=Ue(WZe,[["render",KZe]]);const qZe=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),YZe=xe({name:"IconUnorderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XZe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZZe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1)]),14,XZe)}var GO=Ue(YZe,[["render",ZZe]]);const JZe=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),QZe=xe({name:"IconMuteFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),eJe=["stroke-width","stroke-linecap","stroke-linejoin"];function tJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93L5.931 13.001ZM35.27 28.199l-3.311-3.313a7.985 7.985 0 0 0-1.96-6.107.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252ZM41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.492.492 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114ZM26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8v10.928Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012l2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,eJe)}var KO=Ue(QZe,[["render",tJe]]);const nJe=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),rJe=xe({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iJe=["stroke-width","stroke-linecap","stroke-linejoin"];function oJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1)]),14,iJe)}var qO=Ue(rJe,[["render",oJe]]);const sJe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),aJe=xe({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),lJe=["stroke-width","stroke-linecap","stroke-linejoin"];function uJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1)]),14,lJe)}var YO=Ue(aJe,[["render",uJe]]);const cJe=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),dJe=xe({name:"IconSkipNextFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fJe=["stroke-width","stroke-linecap","stroke-linejoin"];function hJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.585 12.145a1 1 0 0 0-1.585.81v22.09a1 1 0 0 0 1.585.81L28.878 24.81a1 1 0 0 0 0-1.622L13.585 12.145Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 36a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fJe)}var XO=Ue(dJe,[["render",hJe]]);const pJe=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),vJe=xe({name:"IconSkipPreviousFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mJe=["stroke-width","stroke-linecap","stroke-linejoin"];function gJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34.414 35.855a1 1 0 0 0 1.586-.81v-22.09a1 1 0 0 0-1.586-.81L19.122 23.19a1 1 0 0 0 0 1.622l15.292 11.044Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,mJe)}var ZO=Ue(vJe,[["render",gJe]]);const yJe=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),bJe=xe({name:"IconSoundFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_Je=["stroke-width","stroke-linecap","stroke-linejoin"];function SJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24.924 6.226A2 2 0 0 1 26 8v32a2 2 0 0 1-3.147 1.639L13.37 35H6a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2h7.37l9.483-6.638a2 2 0 0 1 2.07-.136ZM35.314 35.042c6.248-6.249 6.248-16.38 0-22.628l2.828-2.828c7.81 7.81 7.81 20.474 0 28.284l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M29.657 29.728a8 8 0 0 0 0-11.314l2.828-2.828c4.687 4.686 4.687 12.284 0 16.97l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,_Je)}var JO=Ue(bJe,[["render",SJe]]);const kJe=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),wJe=xe({name:"IconBackward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xJe=["stroke-width","stroke-linecap","stroke-linejoin"];function CJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.293 36.293 26.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707v23.172c0 .89-1.077 1.337-1.707.707ZM21 12.414v23.172c0 .89-1.077 1.337-1.707.707L7.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707Z"},null,-1)]),14,xJe)}var QO=Ue(wJe,[["render",CJe]]);const EJe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),TJe=xe({name:"IconForward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),AJe=["stroke-width","stroke-linecap","stroke-linejoin"];function IJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m9.707 11.707 11.586 11.586a1 1 0 0 1 0 1.414L9.707 36.293c-.63.63-1.707.184-1.707-.707V12.414c0-.89 1.077-1.337 1.707-.707ZM27 35.586V12.414c0-.89 1.077-1.337 1.707-.707l11.586 11.586a1 1 0 0 1 0 1.414L28.707 36.293c-.63.63-1.707.184-1.707-.707Z"},null,-1)]),14,AJe)}var e$=Ue(TJe,[["render",IJe]]);const LJe=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),DJe=xe({name:"IconFullscreenExit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),PJe=["stroke-width","stroke-linecap","stroke-linejoin"];function RJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4"},null,-1)]),14,PJe)}var t$=Ue(DJe,[["render",RJe]]);const aW=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),MJe=xe({name:"IconLiveBroadcast",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),OJe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Je(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29 16h12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V17a1 1 0 0 1 1-1h12m10 0 8-9m-8 9H19m0 0-8-9m17.281 21.88-6.195 4.475a1 1 0 0 1-1.586-.81v-8.262a1 1 0 0 1 1.521-.853l6.196 3.786a1 1 0 0 1 .064 1.664Z"},null,-1)]),14,OJe)}var n$=Ue(MJe,[["render",$Je]]);const u_=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),BJe=xe({name:"IconMusic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),NJe=["stroke-width","stroke-linecap","stroke-linejoin"];function FJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V18.5M41 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V16.5m-26 2V9.926a1 1 0 0 1 .923-.997l24-1.846A1 1 0 0 1 41 8.08v8.42m-26 2 26-2"},null,-1)]),14,NJe)}var r$=Ue(BJe,[["render",FJe]]);const jJe=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),VJe=xe({name:"IconMute",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zJe=["stroke-width","stroke-linecap","stroke-linejoin"];function UJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35"},null,-1)]),14,zJe)}var i$=Ue(VJe,[["render",UJe]]);const HJe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),WJe=xe({name:"IconPauseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),GJe=["stroke-width","stroke-linecap","stroke-linejoin"];function KJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1)]),14,GJe)}var o$=Ue(WJe,[["render",KJe]]);const qJe=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),YJe=xe({name:"IconPlayArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),XJe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZJe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z"},null,-1)]),14,XJe)}var s$=Ue(YJe,[["render",ZJe]]);const ha=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),JJe=xe({name:"IconPlayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),QJe=["stroke-width","stroke-linecap","stroke-linejoin"];function eQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6 6 14.059 6 24s8.059 18 18 18Z"},null,-1),I("path",{d:"M19 17v14l12-7-12-7Z"},null,-1)]),14,QJe)}var a$=Ue(JJe,[["render",eQe]]);const Ny=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),tQe=xe({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),nQe=["stroke-width","stroke-linecap","stroke-linejoin"];function rQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),I("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1)]),14,nQe)}var l$=Ue(tQe,[["render",rQe]]);const iQe=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),oQe=xe({name:"IconRecord",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),sQe=["stroke-width","stroke-linecap","stroke-linejoin"];function aQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,sQe)}var u$=Ue(oQe,[["render",aQe]]);const lQe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),uQe=xe({name:"IconSkipNext",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),cQe=["stroke-width","stroke-linecap","stroke-linejoin"];function dQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),I("path",{d:"M38 6v36"},null,-1)]),14,cQe)}var c$=Ue(uQe,[["render",dQe]]);const fQe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),hQe=xe({name:"IconSkipPrevious",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),pQe=["stroke-width","stroke-linecap","stroke-linejoin"];function vQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),I("path",{d:"M10 6v36"},null,-1)]),14,pQe)}var d$=Ue(hQe,[["render",vQe]]);const mQe=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),gQe=xe({name:"IconSound",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yQe=["stroke-width","stroke-linecap","stroke-linejoin"];function bQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),I("path",{d:"M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456"},null,-1)]),14,yQe)}var f$=Ue(gQe,[["render",bQe]]);const Uve=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),_Qe=xe({name:"IconBytedanceColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),SQe=["stroke-width","stroke-linecap","stroke-linejoin"];function kQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),I("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),I("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),I("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1)]),14,SQe)}var h$=Ue(_Qe,[["render",kQe]]);const wQe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),xQe=xe({name:"IconLarkColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),CQe=["stroke-width","stroke-linecap","stroke-linejoin"];function EQe(e,t,n,r,i,a){return z(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{fill:"#00d6b9",d:"m273.46 264.31 1.01-1.01c.65-.65 1.36-1.36 2.06-2.01l1.41-1.36 4.17-4.12 5.73-5.58 4.88-4.83 4.57-4.52 4.78-4.73 4.37-4.32 6.13-6.03c1.16-1.16 2.36-2.26 3.57-3.37 2.21-2.01 4.52-3.97 6.84-5.88 2.16-1.71 4.37-3.37 6.64-4.98 3.17-2.26 6.43-4.32 9.75-6.33 3.27-1.91 6.64-3.72 10.05-5.43 3.22-1.56 6.54-3.02 9.9-4.32 1.86-.75 3.77-1.41 5.68-2.06.96-.3 1.91-.65 2.92-.96a241.19 241.19 0 0 0-45.6-91.5c-4.17-5.18-10.51-8.19-17.14-8.19H128.97c-1.81 0-3.32 1.46-3.32 3.32 0 1.06.5 2.01 1.36 2.66 60.13 44.09 110 100.75 146.04 166l.4-.45Z"},null,-1),I("path",{fill:"#133c9a",d:"M203.43 419.4c90.99 0 170.27-50.22 211.6-124.43 1.46-2.61 2.87-5.23 4.22-7.89a96.374 96.374 0 0 1-6.94 11.41c-.9 1.26-1.81 2.51-2.77 3.77-1.21 1.56-2.41 3.02-3.67 4.47a98.086 98.086 0 0 1-3.07 3.37 85.486 85.486 0 0 1-6.64 6.28c-1.31 1.11-2.56 2.16-3.92 3.17a76.24 76.24 0 0 1-4.78 3.42c-1.01.7-2.06 1.36-3.12 2.01-1.06.65-2.16 1.31-3.32 1.96a91.35 91.35 0 0 1-6.99 3.52c-2.06.9-4.17 1.76-6.28 2.56a82.5 82.5 0 0 1-7.04 2.26 86.613 86.613 0 0 1-10.81 2.31c-2.61.4-5.33.7-7.99.9-2.82.2-5.68.25-8.55.25-3.17-.05-6.33-.25-9.55-.6-2.36-.25-4.73-.6-7.09-1.01-2.06-.35-4.12-.8-6.18-1.31-1.11-.25-2.16-.55-3.27-.85-3.02-.8-6.03-1.66-9.05-2.51-1.51-.45-3.02-.85-4.47-1.31-2.26-.65-4.47-1.36-6.69-2.06-1.81-.55-3.62-1.16-5.43-1.76-1.71-.55-3.47-1.11-5.18-1.71l-3.52-1.21c-1.41-.5-2.87-1.01-4.27-1.51l-3.02-1.11c-2.01-.7-4.02-1.46-5.98-2.21-1.16-.45-2.31-.85-3.47-1.31-1.56-.6-3.07-1.21-4.63-1.81-1.61-.65-3.27-1.31-4.88-1.96l-3.17-1.31-3.92-1.61-3.02-1.26-3.12-1.36-2.71-1.21-2.46-1.11-2.51-1.16-2.56-1.21-3.27-1.51-3.42-1.61c-1.21-.6-2.41-1.16-3.62-1.76l-3.07-1.51A508.746 508.746 0 0 1 65.6 190.35c-1.26-1.31-3.32-1.41-4.68-.15-.65.6-1.06 1.51-1.06 2.41l.1 155.49v12.62c0 7.34 3.62 14.18 9.7 18.25 39.56 26.44 86.12 40.47 133.73 40.37"},null,-1),I("path",{fill:"#3370ff",d:"M470.83 200.21c-30.72-15.03-65.86-18.25-98.79-9-1.41.4-2.77.8-4.12 1.21-.96.3-1.91.6-2.92.96-1.91.65-3.82 1.36-5.68 2.06-3.37 1.31-6.64 2.77-9.9 4.32-3.42 1.66-6.79 3.47-10.05 5.38-3.37 1.96-6.59 4.07-9.75 6.33-2.26 1.61-4.47 3.27-6.64 4.98-2.36 1.91-4.63 3.82-6.84 5.88-1.21 1.11-2.36 2.21-3.57 3.37l-6.13 6.03-4.37 4.32-4.78 4.73-4.57 4.52-4.88 4.83-5.68 5.63-4.17 4.12-1.41 1.36c-.65.65-1.36 1.36-2.06 2.01l-1.01 1.01-1.56 1.46-1.76 1.61c-15.13 13.93-32.02 25.84-50.17 35.54l3.27 1.51 2.56 1.21 2.51 1.16 2.46 1.11 2.71 1.21 3.12 1.36 3.02 1.26 3.92 1.61 3.17 1.31c1.61.65 3.27 1.31 4.88 1.96 1.51.6 3.07 1.21 4.63 1.81 1.16.45 2.31.85 3.47 1.31 2.01.75 4.02 1.46 5.98 2.21l3.02 1.11c1.41.5 2.82 1.01 4.27 1.51l3.52 1.21c1.71.55 3.42 1.16 5.18 1.71 1.81.6 3.62 1.16 5.43 1.76 2.21.7 4.47 1.36 6.69 2.06 1.51.45 3.02.9 4.47 1.31 3.02.85 6.03 1.71 9.05 2.51 1.11.3 2.16.55 3.27.85 2.06.5 4.12.9 6.18 1.31 2.36.4 4.73.75 7.09 1.01 3.22.35 6.38.55 9.55.6 2.87.05 5.73-.05 8.55-.25 2.71-.2 5.38-.5 7.99-.9 3.62-.55 7.24-1.36 10.81-2.31 2.36-.65 4.73-1.41 7.04-2.26a75.16 75.16 0 0 0 6.28-2.56 91.35 91.35 0 0 0 6.99-3.52c1.11-.6 2.21-1.26 3.32-1.96 1.11-.65 2.11-1.36 3.12-2.01 1.61-1.11 3.22-2.21 4.78-3.42 1.36-1.01 2.66-2.06 3.92-3.17 2.26-1.96 4.47-4.07 6.59-6.28 1.06-1.11 2.06-2.21 3.07-3.37 1.26-1.46 2.51-2.97 3.67-4.47a73.33 73.33 0 0 0 2.77-3.77c2.51-3.62 4.83-7.39 6.89-11.31l2.36-4.68 21.01-41.88.25-.5c6.94-14.98 16.39-28.45 28-39.97Z"},null,-1)]),14,CQe)}var p$=Ue(xQe,[["render",EQe]]);const TQe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),AQe=xe({name:"IconTiktokColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),IQe=["stroke-width","stroke-linecap","stroke-linejoin"];function LQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[Ch('',5)]),14,IQe)}var v$=Ue(AQe,[["render",LQe]]);const DQe=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),PQe=xe({name:"IconXiguaColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),RQe=["stroke-width","stroke-linecap","stroke-linejoin"];function MQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M381.968 38.684c-202.85 54.614-351.085 232.757-371.89 446.01C-.326 590.018 28.281 630.328 140.108 668.037c104.026 33.808 176.843 101.425 209.351 189.846 40.31 115.729 44.211 122.23 91.023 144.336 40.31 19.504 58.514 19.504 131.332 7.802 211.951-36.41 362.788-171.642 416.101-374.492C1059.434 368.965 882.59 90.697 605.623 32.183 517.2 13.978 470.39 15.279 381.968 38.684zm176.843 322.48c158.64 74.117 201.55 158.638 119.63 237.957-102.725 97.524-240.56 136.534-291.271 80.62-20.806-23.406-24.707-48.112-24.707-161.24s3.901-137.833 24.707-161.239c32.507-36.409 88.421-35.108 171.641 3.901z",fill:"#FE163E"},null,-1)]),14,RQe)}var m$=Ue(PQe,[["render",MQe]]);const OQe=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),$Qe=xe({name:"IconFaceBookCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),BQe=["stroke-width","stroke-linecap","stroke-linejoin"];function NQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 1C11.29 1 1 11.29 1 24s10.29 23 23 23 23-10.29 23-23S36.71 1 24 1Zm6.172 22.88H26.18v14.404h-5.931V23.88H17.22v-4.962h3.027V15.89c0-3.993 1.695-6.414 6.414-6.414h3.993v4.962h-2.421c-1.815 0-1.936.727-1.936 1.936v2.421h4.478l-.605 5.084h.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,BQe)}var g$=Ue($Qe,[["render",NQe]]);const FQe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),jQe=xe({name:"IconFacebookSquareFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),VQe=["stroke-width","stroke-linecap","stroke-linejoin"];function zQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.125 2.475c.6 0 1.2.225 1.688.713.524.487.75 1.012.75 1.612v38.363c0 .6-.263 1.2-.75 1.612-.526.488-1.088.713-1.688.713H32.138V28.913h5.625l.825-6.563h-6.45v-4.275c0-2.137 1.087-3.225 3.3-3.225h3.374V9.263c-1.2-.225-2.85-.338-5.024-.338-2.513 0-4.5.75-6.038 2.25-1.538 1.5-2.288 3.675-2.288 6.375v4.8h-5.625v6.563h5.625v16.575h-20.7c-.6 0-1.2-.225-1.612-.713-.487-.487-.712-1.012-.712-1.612V4.8c0-.6.224-1.2.712-1.612.488-.488 1.012-.713 1.613-.713h38.362Z",fill:"currentColor",stroke:"none"},null,-1)]),14,VQe)}var y$=Ue(jQe,[["render",zQe]]);const UQe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),HQe=xe({name:"IconGoogleCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),WQe=["stroke-width","stroke-linecap","stroke-linejoin"];function GQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.571 33.526c-2.084 1.92-4.927 3.05-8.322 3.05a12.568 12.568 0 0 1-12.572-12.577A12.58 12.58 0 0 1 24.25 11.416a12.103 12.103 0 0 1 8.414 3.277L29.061 18.3a6.787 6.787 0 0 0-4.807-1.88c-3.277 0-6.045 2.213-7.037 5.186a7.567 7.567 0 0 0-.394 2.392c0 .833.144 1.638.394 2.391.992 2.973 3.763 5.187 7.032 5.187 1.696 0 3.133-.449 4.254-1.202a5.778 5.778 0 0 0 2.513-3.8h-6.767V21.71h11.844c.15.825.227 1.682.227 2.57 0 3.835-1.371 7.055-3.749 9.246ZM24 1A23 23 0 1 0 24 47 23 23 0 0 0 24 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,WQe)}var b$=Ue(HQe,[["render",GQe]]);const KQe=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),qQe=xe({name:"IconQqCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),YQe=["stroke-width","stroke-linecap","stroke-linejoin"];function XQe(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.007 1C11.281 1 1 11.281 1 24.007c0 13.23 11.216 23.87 24.733 22.936 11.288-.791 20.49-9.994 21.21-21.354C47.877 12.144 37.237 1 24.007 1Zm11.36 29.262s-.79 2.23-2.3 4.242c0 0 2.66.935 2.444 3.236 0 0 .072 2.66-5.68 2.444 0 0-4.026-.287-5.248-2.013h-1.079c-1.222 1.726-5.248 2.013-5.248 2.013-5.752.216-5.68-2.444-5.68-2.444-.216-2.373 2.444-3.236 2.444-3.236-1.51-2.013-2.3-4.241-2.3-4.241-3.596 5.895-3.236-.791-3.236-.791.647-3.955 3.523-6.543 3.523-6.543-.431-3.595 1.078-4.242 1.078-4.242.216-11.072 9.707-10.929 9.922-10.929.216 0 9.707-.215 9.994 10.929 0 0 1.51.647 1.079 4.242 0 0 2.876 2.588 3.523 6.543 0 0 .36 6.686-3.236.79Z",fill:"currentColor",stroke:"none"},null,-1)]),14,YQe)}var _$=Ue(qQe,[["render",XQe]]);const ZQe=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),JQe=xe({name:"IconTwitterCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),QQe=["stroke-width","stroke-linecap","stroke-linejoin"];function eet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 1C11.296 1 1 11.297 1 24s10.296 23 23 23c12.703 0 23-10.297 23-23S36.703 1 24 1Zm11.698 18.592c-.13 9.818-6.408 16.542-15.78 16.965-3.864.176-6.664-1.072-9.1-2.62 2.855.456 6.397-.686 8.292-2.307-2.8-.273-4.458-1.698-5.233-3.991.808.14 1.66.103 2.43-.06-2.527-.846-4.331-2.407-4.424-5.68.709.323 1.448.626 2.43.686-1.891-1.075-3.29-5.007-1.688-7.607 2.806 3.076 6.182 5.586 11.724 5.926-1.391-5.949 6.492-9.175 9.791-5.177 1.395-.27 2.53-.799 3.622-1.374-.45 1.381-1.315 2.347-2.37 3.119 1.158-.157 2.184-.44 3.06-.872-.544 1.128-1.732 2.14-2.754 2.992Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QQe)}var S$=Ue(JQe,[["render",eet]]);const tet=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),net=xe({name:"IconWeiboCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ret=["stroke-width","stroke-linecap","stroke-linejoin"];function iet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 47a23 23 0 1 1 23-23 22.988 22.988 0 0 1-23 23Zm1.276-26.994c-.544.063-2.259 1.171-1.297-1.108C25 15 20.235 15.293 17.874 16.16A23.776 23.776 0 0 0 7.649 27.283c-2.007 6.419 5.018 10.329 10.246 11.123 5.227.795 13.068-.502 16.622-4.85 2.635-3.179 3.137-7.507-1.84-8.761-1.651-.398-.69-1.088-.271-2.259a2.775 2.775 0 0 0-2.175-3.24 2.092 2.092 0 0 0-.335-.042 12.468 12.468 0 0 0-4.62.752Zm7.004-3.889a2.326 2.326 0 0 0-1.903.544c-.377.339-.418 1.338.962 1.652.458.021.913.084 1.36.188a1.836 1.836 0 0 1 1.233 2.07c-.21 1.924.878 2.237 1.652 1.714a1.647 1.647 0 0 0 .627-1.338 4.117 4.117 0 0 0-3.325-4.767c-.042-.008-.61-.063-.606-.063Zm7.423.084a8.408 8.408 0 0 0-6.838-4.6c-1.129-.126-3.512-.397-3.784 1.15a1.17 1.17 0 0 0 .857 1.4c.042 0 .084.022.126.022.523.02 1.048 0 1.568-.063a6.481 6.481 0 0 1 6.524 6.44c0 .3-.02.601-.063.9-.063.355-.105.71-.147 1.066A1.277 1.277 0 0 0 38.93 24a1.255 1.255 0 0 0 1.338-.648c.71-2.373.501-4.926-.585-7.151h.02ZM21.616 36.44c-5.457.69-10.245-1.673-10.684-5.27-.44-3.595 3.575-7.066 9.033-7.756 5.457-.69 10.245 1.672 10.705 5.269.46 3.596-3.617 7.088-9.075 7.757h.021Zm-1.484-10.266a5.181 5.181 0 0 0-5.353 4.913 4.662 4.662 0 0 0 4.935 4.391c.14-.004.28-.017.418-.042a5.503 5.503 0 0 0 5.185-5.143 4.472 4.472 0 0 0-4.746-4.182l-.44.063Zm1.003 4.244a.669.669 0 0 1-.773-.544v-.083a.76.76 0 0 1 .774-.711.642.642 0 0 1 .731.544.076.076 0 0 1 .021.062.807.807 0 0 1-.753.732Zm-2.78 2.781a1.65 1.65 0 0 1-1.861-1.422.266.266 0 0 1-.021-.125 1.844 1.844 0 0 1 1.882-1.736 1.562 1.562 0 0 1 1.819 1.297.46.46 0 0 1 .02.167 1.96 1.96 0 0 1-1.84 1.819Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ret)}var k$=Ue(net,[["render",iet]]);const oet=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),set=xe({name:"IconAlipayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aet=["stroke-width","stroke-linecap","stroke-linejoin"];function uet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10.8 27.025c-.566.456-1.174 1.122-1.35 1.968-.24 1.156-.05 2.604 1.065 3.739 1.352 1.376 3.405 1.753 4.292 1.818 2.41.174 4.978-1.02 6.913-2.384.759-.535 2.058-1.61 3.3-3.268-2.783-1.437-6.257-3.026-9.97-2.87-1.898.079-3.256.472-4.25.997Zm35.29 6.354A23.872 23.872 0 0 0 48 24C48 10.767 37.234 0 24 0S0 10.767 0 24c0 13.234 10.766 24 24 24 7.987 0 15.07-3.925 19.436-9.943a2688.801 2688.801 0 0 0-15.11-7.467c-1.999 2.277-4.953 4.56-8.29 5.554-2.097.623-3.986.86-5.963.457-1.956-.4-3.397-1.317-4.237-2.235-.428-.469-.92-1.064-1.275-1.773.033.09.056.143.056.143s-.204-.353-.361-.914a4.03 4.03 0 0 1-.157-.85 4.383 4.383 0 0 1-.009-.612 4.409 4.409 0 0 1 .078-1.128c.197-.948.601-2.054 1.649-3.08 2.3-2.251 5.38-2.372 6.976-2.363 2.363.014 6.47 1.048 9.928 2.27.958-2.04 1.573-4.221 1.97-5.676H14.31v-1.555h7.384V15.72h-8.938v-1.555h8.938v-3.108c0-.427.084-.778.777-.778h3.498v3.886h9.717v1.555H25.97v3.11h7.773s-.78 4.35-3.221 8.64c5.416 1.934 13.037 4.914 15.568 5.91Z",fill:"currentColor",stroke:"none"},null,-1)]),14,aet)}var w$=Ue(set,[["render",uet]]);const cet=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),det=xe({name:"IconCodeSandbox",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),fet=["stroke-width","stroke-linecap","stroke-linejoin"];function het(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m25.002 1.6 17.9 10.3c.6.4 1 1 1 1.7v20.7c0 .7-.4 1.4-1 1.7l-17.9 10.4c-.6.4-1.4.4-2 0l-17.9-10.3c-.6-.4-1-1-1-1.7V13.7c0-.7.4-1.4 1-1.7l17.9-10.4c.6-.4 1.4-.4 2 0Zm13.5 12.4-7.9-4.5-6.6 4.5-6.5-4-7.3 4.3 13.8 8.7 14.5-9Zm-16.5 26.4V26.3l-14-8.9v7.9l8 5.5V37l6 3.4Zm4 0 6-3.5v-5.2l8-5.5v-8.9l-14 8.9v14.2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,fet)}var x$=Ue(det,[["render",het]]);const pet=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),vet=xe({name:"IconCodepen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),met=["stroke-width","stroke-linecap","stroke-linejoin"];function get(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M45 15.7v17.1L24.5 44.7c-.3.2-.7.2-1 0l-20-11.5c-.3-.2-.5-.5-.5-.9V15.7c0-.4.2-.7.5-.9l20-11.6c.3-.2.7-.2 1 0l20 11.6c.3.2.5.5.5.9ZM26 9v9.8l5.5 3.2 8.5-4.9L26 9Zm-4 0L8 17.1l8.4 4.9 5.6-3.2V9Zm0 21.2L16.5 27 9 31.4 22 39v-8.8Zm17 1.2L31.4 27 26 30.2V39l13-7.6Zm2-3.4v-6l-5 3 5 3Zm-29-3-5-3v6l5-3Zm8 0 4 2 4-2-4-2-4 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,met)}var C$=Ue(vet,[["render",get]]);const yet=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),bet=xe({name:"IconFacebook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_et=["stroke-width","stroke-linecap","stroke-linejoin"];function ket(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M35.184 15.727 34.312 24h-6.613v24h-9.933V24h-4.95v-8.273h4.95v-4.98C17.766 4.016 20.564 0 28.518 0h6.61v8.273H30.99c-3.086 0-3.292 1.166-3.292 3.32v4.134h7.485Z",fill:"currentColor",stroke:"none"},null,-1)]),14,_et)}var E$=Ue(bet,[["render",ket]]);const wet=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),xet=xe({name:"IconGithub",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Cet=["stroke-width","stroke-linecap","stroke-linejoin"];function Eet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M.056 24.618c0 10.454 6.7 19.344 16.038 22.608 1.259.32 1.067-.582 1.067-1.19v-4.148c-7.265.853-7.553-3.957-8.043-4.758-.987-1.686-3.312-2.112-2.62-2.912 1.654-.853 3.34.213 5.291 3.1 1.413 2.09 4.166 1.738 5.562 1.385a6.777 6.777 0 0 1 1.856-3.253C11.687 34.112 8.55 29.519 8.55 24.057c0-2.646.874-5.082 2.586-7.045-1.088-3.243.102-6.01.26-6.422 3.11-.282 6.337 2.225 6.587 2.421 1.766-.474 3.782-.73 6.038-.73 2.266 0 4.293.26 6.069.74.603-.458 3.6-2.608 6.49-2.345.155.41 1.317 3.12.294 6.315 1.734 1.968 2.62 4.422 2.62 7.077 0 5.472-3.158 10.07-10.699 11.397a6.82 6.82 0 0 1 2.037 4.875v6.02c.042.48 0 .96.806.96 9.477-3.194 16.299-12.15 16.299-22.697C47.938 11.396 37.218.68 23.996.68 10.77.675.055 11.391.055 24.617l.001.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Cet)}var T$=Ue(xet,[["render",Eet]]);const Hve=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),Tet=xe({name:"IconGitlab",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Aet=["stroke-width","stroke-linecap","stroke-linejoin"];function Iet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M45.53 26.154 39.694 6.289v-.005c-.407-1.227-1.377-1.955-2.587-1.955-1.254 0-2.277.723-2.663 1.885L30.62 17.625H17.4l-3.825-11.41c-.386-1.163-1.41-1.886-2.663-1.886-1.237 0-2.276.792-2.592 1.96l-5.83 19.865a2.047 2.047 0 0 0 .724 2.18l19.741 14.807c.14.193.332.338.557.418l.461.343.455-.343c.263-.091.483-.252.638-.477L44.8 28.33a2.03 2.03 0 0 0 .728-2.175ZM36.84 6.932c.053-.096.155-.102.187-.102.06 0 .134.016.182.161l3.183 10.704H33.24l3.6-10.763Zm-26.11.054c.047-.14.122-.156.181-.156.145 0 .156.006.183.091L14.699 17.7H7.633l3.096-10.714ZM5.076 26.502l1.511-5.213 10.843 14.475-12.354-9.262Zm3.96-6.236h6.54l4.865 15.23-11.406-15.23Zm15.01 17.877-5.743-17.877h11.48l-5.737 17.877Zm8.459-17.877h6.402L27.642 35.31l4.864-15.043Zm-2.18 15.745L41.43 21.187l1.58 5.315-12.685 9.509Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Aet)}var A$=Ue(Tet,[["render",Iet]]);const Let=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),Det=xe({name:"IconGoogle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Pet=["stroke-width","stroke-linecap","stroke-linejoin"];function Ret(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23.997 21.054h19.42a19.46 19.46 0 0 1 .321 3.428c0 3.875-.812 7.335-2.437 10.38-1.625 3.044-3.942 5.424-6.951 7.138-3.01 1.714-6.46 2.572-10.353 2.572-2.803 0-5.473-.54-8.009-1.621-2.535-1.08-4.723-2.54-6.562-4.38-1.84-1.839-3.3-4.026-4.38-6.562A20.223 20.223 0 0 1 3.426 24c0-2.803.54-5.473 1.62-8.009 1.08-2.535 2.54-4.723 4.38-6.562 1.84-1.84 4.027-3.3 6.562-4.38a20.223 20.223 0 0 1 8.01-1.62c5.356 0 9.955 1.794 13.794 5.384l-5.598 5.384c-2.197-2.125-4.929-3.188-8.197-3.188-2.303 0-4.433.58-6.388 1.741a12.83 12.83 0 0 0-4.648 4.728c-1.142 1.99-1.714 4.165-1.714 6.522s.572 4.531 1.714 6.523a12.83 12.83 0 0 0 4.648 4.727c1.955 1.16 4.085 1.741 6.388 1.741 1.554 0 2.982-.214 4.286-.643 1.303-.428 2.375-.964 3.214-1.607a11.63 11.63 0 0 0 2.197-2.196c.625-.822 1.084-1.598 1.38-2.33a9.84 9.84 0 0 0 .602-2.09H23.997v-7.071Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Pet)}var I$=Ue(Det,[["render",Ret]]);const Met=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),Oet=xe({name:"IconQqZone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),$et=["stroke-width","stroke-linecap","stroke-linejoin"];function Bet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25.1 3.9c.2.1.4.3.5.5l6.8 10L44 17.8c1.1.3 1.7 1.4 1.4 2.5-.1.2-.2.5-.3.7l-7.4 9.5.4 12c0 1.1-.8 2-1.9 2.1-.2 0-.5 0-.7-.1L24 40.4l-11.3 4.1c-1 .4-2.2-.2-2.6-1.2-.1-.3-.1-.6-.1-.8l.4-12L3 20.9c-.7-.9-.5-2.1.4-2.8.2-.2.4-.3.7-.3l11.6-3.4 6.8-10c.5-.9 1.7-1.1 2.6-.5ZM24 9.1l-5.9 8.7-10.1 3 6.5 8.3-.3 10.5 9.9-3.6 9.9 3.6-.3-10.5 6.5-8.3-10.1-3L24 9.1Zm5 11.5c.8 0 1.5.5 1.8 1.2.3.7.1 1.6-.5 2.1L24 29.6h5c1 0 1.9.9 1.9 1.9 0 1-.9 1.9-1.9 1.9H19c-.8 0-1.5-.5-1.8-1.2-.3-.7-.1-1.6.5-2.1l6.3-5.7h-5c-1 0-1.9-.9-1.9-1.9 0-1 .9-1.9 1.9-1.9h10Z",fill:"currentColor",stroke:"none"},null,-1)]),14,$et)}var L$=Ue(Oet,[["render",Bet]]);const Net=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),Fet=xe({name:"IconQq",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),jet=["stroke-width","stroke-linecap","stroke-linejoin"];function Vet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7.85 32.825s1.153 3.136 3.264 5.955c0 0-3.779 1.281-3.458 4.61 0 0-.128 3.714 8.069 3.458 0 0 5.764-.45 7.494-2.88h1.52c1.73 2.432 7.494 2.88 7.494 2.88 8.193.256 8.068-3.457 8.068-3.457.318-3.33-3.458-4.611-3.458-4.611 2.11-2.82 3.264-5.955 3.264-5.955 5.122 8.259 4.611-1.154 4.611-1.154-.96-5.57-4.995-9.221-4.995-9.221.576-5.058-1.537-5.955-1.537-5.955C37.742.844 24.26 1.12 23.978 1.126 23.694 1.12 10.21.846 9.767 16.495c0 0-2.113.897-1.537 5.955 0 0-4.034 3.65-4.995 9.221.005 0-.51 9.413 4.615 1.154Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jet)}var D$=Ue(Fet,[["render",Vet]]);const zet=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),Uet=xe({name:"IconTwitter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Het=["stroke-width","stroke-linecap","stroke-linejoin"];function Wet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.277 13.575c0 16.613-10.912 28.575-26.962 29.1-6.788.525-11.438-1.537-15.6-4.65 4.65.525 10.912-1.012 13.987-4.163-4.65 0-7.275-2.625-8.812-6.187h4.162C5.89 26.1 2.74 22.987 2.74 17.812c1.012.525 2.062 1.013 4.162 1.013-3.637-2.063-5.7-8.813-3.112-12.975 4.65 5.175 10.35 9.863 19.762 10.35C20.927 5.85 34.465.6 40.165 7.388c2.625-.525 4.162-1.538 6.187-2.625-.525 2.625-2.062 4.162-4.162 5.175 2.062 0 3.637-.525 5.175-1.538-.488 2.063-2.55 4.162-4.088 5.175Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Het)}var P$=Ue(Uet,[["render",Wet]]);const Get=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),Ket=xe({name:"IconWechat",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),qet=["stroke-width","stroke-linecap","stroke-linejoin"];function Yet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32.09 16.362a14.39 14.39 0 0 0-6.927 1.716 13.087 13.087 0 0 0-5.008 4.676 11.936 11.936 0 0 0-1.856 6.473c.01 1.137.185 2.273.517 3.36h-1.505a26.653 26.653 0 0 1-4.766-.593l-.925-.166-5.665 2.93 1.55-4.848C3.179 26.783 1.018 23.077 1 18.792a11.951 11.951 0 0 1 2.188-6.927 14.943 14.943 0 0 1 5.938-5.027 18.579 18.579 0 0 1 8.248-1.837A18.82 18.82 0 0 1 24.8 6.506a16.863 16.863 0 0 1 5.893 4.128 11.963 11.963 0 0 1 2.992 5.817 17.922 17.922 0 0 0-1.595-.09Zm-20.152-.414a2.167 2.167 0 0 0 1.505-.471c.405-.378.62-.908.593-1.46a1.881 1.881 0 0 0-.592-1.46 2.025 2.025 0 0 0-1.506-.535 2.778 2.778 0 0 0-1.67.535c-.454.323-.728.849-.728 1.401a1.708 1.708 0 0 0 .727 1.523 2.925 2.925 0 0 0 1.671.467ZM47 28.99a9.573 9.573 0 0 1-1.59 5.193c-1.128 1.6-2.52 3-4.129 4.128l1.258 4.129-4.51-2.413h-.243a20.758 20.758 0 0 1-4.6.76 15.538 15.538 0 0 1-7.03-1.59 13.089 13.089 0 0 1-5.008-4.313 10.501 10.501 0 0 1-1.838-5.939 10.29 10.29 0 0 1 1.838-5.92c1.266-1.847 3-3.334 5.008-4.313a15.579 15.579 0 0 1 7.03-1.59 14.919 14.919 0 0 1 6.761 1.59 13.286 13.286 0 0 1 5.09 4.312 10.004 10.004 0 0 1 1.94 5.966H47ZM23.407 11.955a2.77 2.77 0 0 0-1.747.534 1.65 1.65 0 0 0-.76 1.46c-.017.584.27 1.146.76 1.46.498.36 1.1.544 1.716.535a2.083 2.083 0 0 0 1.505-.472c.368-.404.561-.925.534-1.46a1.834 1.834 0 0 0-.534-1.532 1.887 1.887 0 0 0-1.532-.534h.063v.009h-.005Zm5.256 15.03a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.612 1.612 0 0 0-.534-1.136 2.062 2.062 0 0 0-1.46-.499 1.58 1.58 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.288.305.679.48 1.092.499Zm8.953 0a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.558 1.558 0 0 0-.593-1.136 2.12 2.12 0 0 0-1.401-.499 1.493 1.493 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.279.305.674.49 1.092.499Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qet)}var R$=Ue(Ket,[["render",Yet]]);const Xet=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),Zet=xe({name:"IconWechatpay",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Jet=["stroke-width","stroke-linecap","stroke-linejoin"];function Qet(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.514 29.52a1.502 1.502 0 0 1-.715.165c-.608 0-1.104-.33-1.38-.826l-.113-.219-4.357-9.493c-.054-.112-.054-.219-.054-.33 0-.444.331-.774.774-.774.165 0 .33.053.496.165l5.13 3.643c.384.218.827.384 1.323.384.277 0 .55-.054.827-.166l24.058-10.704C39.2 6.288 32.085 2.976 24.026 2.976 10.896 2.976.191 11.861.191 22.837c0 5.958 3.2 11.366 8.22 15.008.383.278.66.774.66 1.27 0 .165-.053.33-.112.496-.384 1.488-1.05 3.92-1.05 4.026a2.025 2.025 0 0 0-.112.608c0 .443.33.774.773.774.165 0 .33-.054.443-.166l5.184-3.034c.384-.219.826-.384 1.27-.384.218 0 .495.053.714.112a27.712 27.712 0 0 0 7.781 1.104c13.13 0 23.835-8.886 23.835-19.862 0-3.312-.992-6.453-2.704-9.216L17.679 29.408l-.165.112Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Jet)}var M$=Ue(Zet,[["render",Qet]]);const ett=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),ttt=xe({name:"IconWeibo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ntt=["stroke-width","stroke-linecap","stroke-linejoin"];function rtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.82 5.6c-1.445.635-1.776 2.144-.727 3.192.515.516.993.608 3.11.608 2.952 0 4.94.781 6.448 2.53 1.84 2.079 2.052 2.714 2.052 6.513 0 3.377 0 3.441.782 3.892 1.812 1.021 3.017-.24 3.44-3.616.544-4.397-2.078-9.531-6.025-11.877-2.595-1.509-7.029-2.116-9.08-1.242Zm-14.831 5.612c-3.376 1.205-6.633 3.524-10.13 7.268-8.288 8.804-7.746 17.186 1.39 21.648 9.494 4.636 22.282 3.1 29.247-3.533 5.216-4.94 4.581-11.16-1.353-13.267-1.058-.358-1.389-.634-1.232-.966.542-1.324.726-2.86.423-3.772-.939-2.86-4.343-3.523-9.403-1.812l-2.024.69.184-2.024c.212-2.383-.303-3.68-1.72-4.398-1.187-.588-3.45-.524-5.382.166Zm8.381 11.666c4.49 1.232 7.231 3.946 7.231 7.176 0 3.588-3.192 6.817-8.38 8.528-2.77.902-7.931 1.086-10.461.396-4.793-1.353-7.507-4.012-7.507-7.416 0-1.867.81-3.496 2.594-5.152 1.656-1.564 2.926-2.318 5.364-3.137 3.689-1.242 7.636-1.389 11.16-.395Zm-9.494 2.925c-3.045 1.417-4.674 3.588-4.674 6.302 0 2.475 1.086 4.159 3.469 5.428 1.84.994 5.216.902 7.268-.147 2.622-1.39 4.342-3.947 4.342-6.45-.028-2.05-1.84-4.489-3.984-5.363-1.72-.736-4.609-.616-6.421.23Zm2.199 5.667c.211.212.358.727.358 1.178 0 1.509-2.53 2.742-3.56 1.72-.57-.57-.423-1.987.24-2.65.662-.662 2.391-.818 2.962-.248Zm14.26-19.688c-1.39 1.39-.451 3.046 1.748 3.046 1.895 0 2.741.966 2.741 3.137 0 1.352.12 1.748.663 2.107 1.628 1.15 2.953-.12 2.953-2.806 0-3.285-2.355-5.76-5.695-5.999-1.509-.12-1.868-.027-2.41.515Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ntt)}var O$=Ue(ttt,[["render",rtt]]);const itt=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),ott=xe({name:"IconChineseFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),stt=["stroke-width","stroke-linecap","stroke-linejoin"];function att(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.954 4 4 12.954 4 24s8.954 20 20 20 20-8.954 20-20S35.046 4 24 4Zm2 13v-5h-4v5h-6.5a2.5 2.5 0 0 0-2.5 2.5v7.094a2.5 2.5 0 0 0 2.5 2.5H22V36h4v-6.906h6.5a2.5 2.5 0 0 0 2.5-2.5V19.5a2.5 2.5 0 0 0-2.5-2.5H26Z",fill:"currentColor",stroke:"none"},null,-1)]),14,stt)}var $$=Ue(ott,[["render",att]]);const ltt=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),utt=xe({name:"IconEnglishFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ctt=["stroke-width","stroke-linecap","stroke-linejoin"];function dtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.2 4C12.596 4 4 12.596 4 23.2v1.6C4 35.404 12.596 44 23.2 44h1.6C35.404 44 44 35.404 44 24.8v-1.6C44 12.596 35.404 4 24.8 4h-1.6Zm-9.086 10A2.114 2.114 0 0 0 12 16.114v15.772c0 1.167.947 2.114 2.114 2.114H25v-4h-9v-4h7.778v-4H16v-4h9v-4H14.114ZM32.4 22a5.4 5.4 0 0 0-5.4 5.4V34h4v-6.6a1.4 1.4 0 0 1 2.801 0V34h4v-6.6a5.4 5.4 0 0 0-5.4-5.4Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ctt)}var B$=Ue(utt,[["render",dtt]]);const ftt=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),htt=xe({name:"IconMoonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ptt=["stroke-width","stroke-linecap","stroke-linejoin"];function vtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42.108 29.769c.124-.387-.258-.736-.645-.613A17.99 17.99 0 0 1 36 30c-9.941 0-18-8.059-18-18 0-1.904.296-3.74.844-5.463.123-.387-.226-.768-.613-.645C10.558 8.334 5 15.518 5 24c0 10.493 8.507 19 19 19 8.482 0 15.666-5.558 18.108-13.231Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ptt)}var N$=Ue(htt,[["render",vtt]]);const mtt=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),gtt=xe({name:"IconPenFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ytt=["stroke-width","stroke-linecap","stroke-linejoin"];function btt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{fill:"currentColor",stroke:"none",d:"m31.07 8.444 8.485 8.485L19.05 37.435l-8.485-8.485zM33.9 5.615a2 2 0 0 1 2.829 0l5.657 5.657a2 2 0 0 1 0 2.829l-1.415 1.414-8.485-8.486L33.9 5.615ZM17.636 38.85 9.15 30.363l-3.61 10.83a1 1 0 0 0 1.265 1.265l10.83-3.61Z"},null,-1)]),14,ytt)}var F$=Ue(gtt,[["render",btt]]);const _tt=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),Stt=xe({name:"IconSunFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ktt=["stroke-width","stroke-linecap","stroke-linejoin"];function wtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M21 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM21 37.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM42.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM10.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM39.203 34.96a.5.5 0 0 1 0 .707l-3.536 3.536a.5.5 0 0 1-.707 0l-3.535-3.536a.5.5 0 0 1 0-.707l3.535-3.535a.5.5 0 0 1 .707 0l3.536 3.535ZM16.575 12.333a.5.5 0 0 1 0 .707l-3.535 3.535a.5.5 0 0 1-.707 0L8.797 13.04a.5.5 0 0 1 0-.707l3.536-3.536a.5.5 0 0 1 .707 0l3.535 3.536ZM13.04 39.203a.5.5 0 0 1-.707 0l-3.536-3.536a.5.5 0 0 1 0-.707l3.536-3.535a.5.5 0 0 1 .707 0l3.536 3.535a.5.5 0 0 1 0 .707l-3.536 3.536ZM35.668 16.575a.5.5 0 0 1-.708 0l-3.535-3.535a.5.5 0 0 1 0-.707l3.535-3.536a.5.5 0 0 1 .708 0l3.535 3.536a.5.5 0 0 1 0 .707l-3.535 3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ktt)}var j$=Ue(Stt,[["render",wtt]]);const xtt=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),Ctt=xe({name:"IconApps",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ett=["stroke-width","stroke-linecap","stroke-linejoin"];function Ttt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1)]),14,Ett)}var V$=Ue(Ctt,[["render",Ttt]]);const Wve=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),Att=xe({name:"IconArchive",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Itt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ltt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),I("path",{d:"M6 9a1 1 0 0 1 1-1h34a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9ZM19 27h10"},null,-1)]),14,Itt)}var z$=Ue(Att,[["render",Ltt]]);const Dtt=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),Ptt=xe({name:"IconBarChart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Rtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1)]),14,Rtt)}var U$=Ue(Ptt,[["render",Mtt]]);const Gve=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),Ott=xe({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),$tt=["stroke-width","stroke-linecap","stroke-linejoin"];function Btt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1)]),14,$tt)}var H$=Ue(Ott,[["render",Btt]]);const c_=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),Ntt=xe({name:"IconBookmark",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ftt=["stroke-width","stroke-linecap","stroke-linejoin"];function jtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 16h16M16 24h8"},null,-1),I("path",{d:"M24 41H8V6h32v17"},null,-1),I("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1)]),14,Ftt)}var W$=Ue(Ntt,[["render",jtt]]);const Vtt=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),ztt=xe({name:"IconBranch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Utt=["stroke-width","stroke-linecap","stroke-linejoin"];function Htt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM38 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM19 38a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM15 15v15m0 3.5V30m0 0c0-5 19-7 19-15"},null,-1)]),14,Utt)}var G$=Ue(ztt,[["render",Htt]]);const Wtt=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),Gtt=xe({name:"IconBug",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ktt=["stroke-width","stroke-linecap","stroke-linejoin"];function qtt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 42c-6.075 0-11-4.925-11-11V18h22v13c0 6.075-4.925 11-11 11Zm0 0V23m11 4h8M5 27h8M7 14a4 4 0 0 0 4 4h26a4 4 0 0 0 4-4m0 28v-.5a6.5 6.5 0 0 0-6.5-6.5M7 42v-.5a6.5 6.5 0 0 1 6.5-6.5M17 14a7 7 0 1 1 14 0"},null,-1)]),14,Ktt)}var K$=Ue(Gtt,[["render",qtt]]);const L0=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),Ytt=xe({name:"IconBulb",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Xtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ztt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 42h14m6-24c0 2.823-.9 5.437-2.43 7.568-1.539 2.147-3.185 4.32-3.77 6.897l-.623 2.756A1 1 0 0 1 29.2 36H18.8a1 1 0 0 1-.976-.779l-.624-2.756c-.584-2.576-2.23-4.75-3.77-6.897A12.94 12.94 0 0 1 11 18c0-7.18 5.82-13 13-13s13 5.82 13 13Z"},null,-1)]),14,Xtt)}var q$=Ue(Ytt,[["render",Ztt]]);const Kve=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),Jtt=xe({name:"IconCalendarClock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qtt=["stroke-width","stroke-linecap","stroke-linejoin"];function ent(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 22h34V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h18M34 5v8M14 5v8"},null,-1),I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 44a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.5-9.75V29h-3v8.25H42v-3h-4.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Qtt)}var Y$=Ue(Jtt,[["render",ent]]);const tnt=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),nnt=xe({name:"IconCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rnt=["stroke-width","stroke-linecap","stroke-linejoin"];function int(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"},null,-1)]),14,rnt)}var X$=Ue(nnt,[["render",int]]);const ont=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),snt=xe({name:"IconCloud",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ant=["stroke-width","stroke-linecap","stroke-linejoin"];function lnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 29a9 9 0 0 0 9 9h19c5.523 0 10-4.477 10-10 0-5.312-4.142-9.657-9.373-9.98C32.3 12.833 27.598 9 22 9c-6.606 0-11.965 5.338-12 11.935A9 9 0 0 0 5 29Z"},null,-1)]),14,ant)}var Z$=Ue(snt,[["render",lnt]]);const unt=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),cnt=xe({name:"IconCommand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dnt=["stroke-width","stroke-linecap","stroke-linejoin"];function fnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29 19v-6a6 6 0 1 1 6 6h-6Zm0 0v10m0-10H19m10 10v6a6 6 0 1 0 6-6h-6Zm0 0H19m0-10v10m0-10v-6a6 6 0 1 0-6 6h6Zm0 10v6a6 6 0 1 1-6-6h6Z"},null,-1)]),14,dnt)}var J$=Ue(cnt,[["render",fnt]]);const hnt=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),pnt=xe({name:"IconCommon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vnt=["stroke-width","stroke-linecap","stroke-linejoin"];function mnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1)]),14,vnt)}var Q$=Ue(pnt,[["render",mnt]]);const gnt=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),ynt=xe({name:"IconCompass",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bnt=["stroke-width","stroke-linecap","stroke-linejoin"];function _nt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),I("path",{d:"m21.177 21.183 10.108-4.717a.2.2 0 0 1 .266.265L26.834 26.84l-10.109 4.717a.2.2 0 0 1-.266-.266l4.718-10.108Z"},null,-1)]),14,bnt)}var eB=Ue(ynt,[["render",_nt]]);const Snt=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),knt=xe({name:"IconComputer",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),wnt=["stroke-width","stroke-linecap","stroke-linejoin"];function xnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H7v22h34V7Z"},null,-1),I("path",{d:"M23.778 29v10"},null,-1),I("path",{d:"M16 39h16"},null,-1),I("path",{d:"m20.243 14.657 5.657 5.657M15.414 22.314l7.071-7.071M24.485 21.728l7.071-7.071"},null,-1)]),14,wnt)}var tB=Ue(knt,[["render",xnt]]);const d_=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),Cnt=xe({name:"IconCopyright",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ent=["stroke-width","stroke-linecap","stroke-linejoin"];function Tnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.292 18a8 8 0 1 0 0 12M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,Ent)}var nB=Ue(Cnt,[["render",Tnt]]);const qve=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),Ant=xe({name:"IconDashboard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Int=["stroke-width","stroke-linecap","stroke-linejoin"];function Lnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.808 24c.118 4.63-1.486 9.333-5.21 13m5.21-13h-8.309m8.309 0c-.112-4.38-1.767-8.694-4.627-12M24 6c5.531 0 10.07 2.404 13.18 6M24 6c-5.724 0-10.384 2.574-13.5 6.38M24 6v7.5M37.18 12 31 17.5m-20.5-5.12L17 17.5m-6.5-5.12C6.99 16.662 5.44 22.508 6.53 28m4.872 9c-2.65-2.609-4.226-5.742-4.873-9m0 0 8.97-3.5"},null,-1),I("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1)]),14,Int)}var rB=Ue(Ant,[["render",Lnt]]);const Dnt=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),Pnt=xe({name:"IconDesktop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Rnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z"},null,-1)]),14,Rnt)}var iB=Ue(Pnt,[["render",Mnt]]);const nT=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),Ont=xe({name:"IconDice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),$nt=["stroke-width","stroke-linecap","stroke-linejoin"];function Bnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[Ch('',11)]),14,$nt)}var oB=Ue(Ont,[["render",Bnt]]);const Nnt=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),Fnt=xe({name:"IconDriveFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),jnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Vnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38.5 17H29a1 1 0 0 1-1-1V6.5m0-.5H10a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1h28a1 1 0 0 0 1-1V17L28 6Z"},null,-1)]),14,jnt)}var sB=Ue(Fnt,[["render",Vnt]]);const znt=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),Unt=xe({name:"IconEar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Hnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Wnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 15.528C14.32 12.386 18.403 6.977 23.556 7c7.944.036 14.514 8.528 10.116 15.71-4.399 7.181-5.718 10.323-6.598 14.363-.82 3.766-9.288 7.143-11.498-1.515M20 18.5c1-3.083 4.5-4.5 6.5-2 2.85 3.562-3.503 8.312-5.5 12.5"},null,-1)]),14,Hnt)}var aB=Ue(Unt,[["render",Wnt]]);const Gnt=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),Knt=xe({name:"IconEmail",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),qnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ynt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),I("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1)]),14,qnt)}var lB=Ue(Knt,[["render",Ynt]]);const Xnt=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),Znt=xe({name:"IconExperiment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Jnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Qnt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M10.5 7h6m0 0v10.5l-5.25 14M16.5 7h15m0 0h6m-6 0v10.5L37 32.167M11.25 31.5l-2.344 6.853A2 2 0 0 0 10.8 41h26.758a2 2 0 0 0 1.86-2.737L37 32.167M11.25 31.5c1.916 1.833 7.05 4.4 12.25 0s11.166-1.389 13.5.667M26 22.5v.01"},null,-1)]),14,Jnt)}var uB=Ue(Znt,[["render",Qnt]]);const ert=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),trt=xe({name:"IconFire",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),nrt=["stroke-width","stroke-linecap","stroke-linejoin"];function rrt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.577 27.477C20.022 22.579 17.041 12.98 24.546 6c0 0-1.156 15.55 5.36 17.181 2.145.537 2.68-5.369 4.289-8.59 0 0 .536 4.832 2.68 8.59 3.217 7.517-1 14.117-5.896 17.182-4.289 2.684-14.587 2.807-19.835-5.37-4.824-7.516 0-15.57 0-15.57s4.289 12.35 6.433 8.054Z"},null,-1)]),14,nrt)}var cB=Ue(trt,[["render",rrt]]);const lW=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),irt=xe({name:"IconFolderAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ort=["stroke-width","stroke-linecap","stroke-linejoin"];function srt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 19v14m-7-7h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,ort)}var dB=Ue(irt,[["render",srt]]);const art=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),lrt=xe({name:"IconFolderDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),urt=["stroke-width","stroke-linecap","stroke-linejoin"];function crt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 26h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,urt)}var fB=Ue(lrt,[["render",crt]]);const drt=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),frt=xe({name:"IconFolder",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),hrt=["stroke-width","stroke-linecap","stroke-linejoin"];function prt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,hrt)}var hB=Ue(frt,[["render",prt]]);const uA=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),vrt=xe({name:"IconGift",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),mrt=["stroke-width","stroke-linecap","stroke-linejoin"];function grt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13.45 14.043H8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-4.893m-21.657 0c-1.036-2.833-.615-5.6 1.182-6.637 2.152-1.243 5.464.464 7.397 3.812.539.933.914 1.896 1.127 2.825m-9.706 0h9.706m0 0H25.4m0 0a10.31 10.31 0 0 1 1.128-2.825c1.933-3.348 5.244-5.055 7.397-3.812 1.797 1.037 2.217 3.804 1.182 6.637m-9.707 0h9.707M10 26.043a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H12a2 2 0 0 1-2-2v-13Z"},null,-1)]),14,mrt)}var pB=Ue(vrt,[["render",grt]]);const yrt=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),brt=xe({name:"IconIdcard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),_rt=["stroke-width","stroke-linecap","stroke-linejoin"];function Srt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 17h9m-9 7h9m-9 7h5m-8 9h32a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2Z"},null,-1),I("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),I("circle",{cx:"29",cy:"20",r:"4"},null,-1)]),14,_rt)}var vB=Ue(brt,[["render",Srt]]);const krt=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),wrt=xe({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),xrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Crt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),I("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1)]),14,xrt)}var mB=Ue(wrt,[["render",Crt]]);const cA=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),Ert=xe({name:"IconInteraction",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Trt=["stroke-width","stroke-linecap","stroke-linejoin"];function Art(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M8 19h16m16 0H24m0 0v23m14 0H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v32a2 2 0 0 1-2 2Z"},null,-1)]),14,Trt)}var gB=Ue(Ert,[["render",Art]]);const Irt=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),Lrt=xe({name:"IconLanguage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Drt=["stroke-width","stroke-linecap","stroke-linejoin"];function Prt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m42 43-2.385-6M26 43l2.384-6m11.231 0-.795-2-4.18-10h-1.28l-4.181 10-.795 2m11.231 0h-11.23M17 5l1 5M5 11h26M11 11s1.889 7.826 6.611 12.174C22.333 27.522 30 31 30 31"},null,-1),I("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1)]),14,Drt)}var yB=Ue(Lrt,[["render",Prt]]);const Yve=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),Rrt=xe({name:"IconLayers",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Mrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ort(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),I("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1)]),14,Mrt)}var bB=Ue(Rrt,[["render",Ort]]);const $rt=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),Brt=xe({name:"IconLayout",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Nrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Frt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19 40V8m23 2a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h32a2 2 0 0 0 2-2V10Z"},null,-1)]),14,Nrt)}var _B=Ue(Brt,[["render",Frt]]);const jrt=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),Vrt=xe({name:"IconLocation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Urt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"19",r:"5"},null,-1),I("path",{d:"M39 20.405C39 28.914 24 43 24 43S9 28.914 9 20.405C9 11.897 15.716 5 24 5c8.284 0 15 6.897 15 15.405Z"},null,-1)]),14,zrt)}var SB=Ue(Vrt,[["render",Urt]]);const Hrt=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),Wrt=xe({name:"IconLock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Grt=["stroke-width","stroke-linecap","stroke-linejoin"];function Krt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1)]),14,Grt)}var kB=Ue(Wrt,[["render",Krt]]);const qrt=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),Yrt=xe({name:"IconLoop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Xrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Zrt(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 38c-7.732 0-14-6.268-14-14 0-3.815 1.526-7.273 4-9.798M24 10c7.732 0 14 6.268 14 14 0 3.815-1.526 7.273-4 9.798M24 7v6l-4-3 4-3Zm0 33v-6l4 3-4 3Z"},null,-1)]),14,Xrt)}var wB=Ue(Yrt,[["render",Zrt]]);const Jrt=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),Qrt=xe({name:"IconMan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),eit=["stroke-width","stroke-linecap","stroke-linejoin"];function tit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M40 8 29.68 18.321M31 8h9v9m-7 10c0 7.18-5.82 13-13 13S7 34.18 7 27s5.82-13 13-13 13 5.82 13 13Z"},null,-1)]),14,eit)}var xB=Ue(Qrt,[["render",tit]]);const nit=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),rit=xe({name:"IconMenu",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),iit=["stroke-width","stroke-linecap","stroke-linejoin"];function oit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1)]),14,iit)}var CB=Ue(rit,[["render",oit]]);const Xve=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),sit=xe({name:"IconMindMapping",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ait=["stroke-width","stroke-linecap","stroke-linejoin"];function lit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 10h23M20 24h23M20 38h23M9 12v28m0-28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 26h7M9 24h7"},null,-1)]),14,ait)}var EB=Ue(sit,[["render",lit]]);const uit=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),cit=xe({name:"IconMobile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dit=["stroke-width","stroke-linecap","stroke-linejoin"];function fit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17 14h14m6.125 28h-26.25C9.839 42 9 41.105 9 40V8c0-1.105.84-2 1.875-2h26.25C38.16 6 39 6.895 39 8v32c0 1.105-.84 2-1.875 2ZM22 33a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"},null,-1),I("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1)]),14,dit)}var TB=Ue(cit,[["render",fit]]);const Zve=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),hit=xe({name:"IconMoon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),pit=["stroke-width","stroke-linecap","stroke-linejoin"];function vit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.979 29.241c.11-.344-.23-.654-.574-.544-1.53.487-3.162.75-4.855.75-8.834 0-15.997-7.163-15.997-15.997 0-1.693.263-3.324.75-4.855.11-.344-.2-.684-.544-.574C11.939 10.19 7 16.576 7 24.114 7 33.44 14.56 41 23.886 41c7.538 0 13.923-4.94 16.093-11.759Z"},null,-1)]),14,pit)}var AB=Ue(hit,[["render",vit]]);const mit=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),git=xe({name:"IconMosaic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),yit=["stroke-width","stroke-linecap","stroke-linejoin"];function bit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z"},null,-1)]),14,yit)}var IB=Ue(git,[["render",bit]]);const _it=Object.assign(IB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IB.name,IB)}}),Sit=xe({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kit=["stroke-width","stroke-linecap","stroke-linejoin"];function wit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1)]),14,kit)}var LB=Ue(Sit,[["render",wit]]);const xit=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Cit=xe({name:"IconNotificationClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Eit=["stroke-width","stroke-linecap","stroke-linejoin"];function Tit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11 35V22c0-1.835.38-3.58 1.066-5.163M11 35H6m5 0h15.5M24 9c7.18 0 13 5.82 13 13v7.5M24 9V4m0 5a12.94 12.94 0 0 0-6.5 1.74M17 42h14M6 4l36 40"},null,-1)]),14,Eit)}var DB=Ue(Cit,[["render",Tit]]);const Ait=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),Iit=xe({name:"IconNotification",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Lit=["stroke-width","stroke-linecap","stroke-linejoin"];function Dit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 9c7.18 0 13 5.82 13 13v13H11V22c0-7.18 5.82-13 13-13Zm0 0V4M6 35h36m-25 7h14"},null,-1)]),14,Lit)}var PB=Ue(Iit,[["render",Dit]]);const Pit=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),Rit=xe({name:"IconPalette",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Mit=["stroke-width","stroke-linecap","stroke-linejoin"];function Oit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[Ch('',5)]),14,Mit)}var RB=Ue(Rit,[["render",Oit]]);const uW=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),$it=xe({name:"IconPen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Bit=["stroke-width","stroke-linecap","stroke-linejoin"];function Nit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m28.364 11.565 7.07 7.071M7.15 32.778 33.313 6.615l7.071 7.071L14.221 39.85h-7.07v-7.07Z"},null,-1)]),14,Bit)}var MB=Ue($it,[["render",Nit]]);const Fit=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),jit=xe({name:"IconPhone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Vit=["stroke-width","stroke-linecap","stroke-linejoin"];function zit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6.707 34.284a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l4.95 4.95s3.535-1.414 7.778-5.657c4.243-4.243 5.657-7.778 5.657-7.778l-4.95-4.95a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l6.01 6.01s3.183 7.425-8.485 19.092c-11.667 11.668-19.092 8.485-19.092 8.485l-6.01-6.01Z"},null,-1)]),14,Vit)}var OB=Ue(jit,[["render",zit]]);const Uit=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),Hit=xe({name:"IconPrinter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Wit=["stroke-width","stroke-linecap","stroke-linejoin"];function Git(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 15V8a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7m-20 0H7a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h6m1-19h20m0 0h7a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-6m-22 0v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6m-22 0v-5a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v5"},null,-1)]),14,Wit)}var $B=Ue(Hit,[["render",Git]]);const Kit=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),qit=xe({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Yit=["stroke-width","stroke-linecap","stroke-linejoin"];function Xit(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,Yit)}var BB=Ue(qit,[["render",Xit]]);const Zit=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),Jit=xe({name:"IconPushpin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qit=["stroke-width","stroke-linecap","stroke-linejoin"];function eot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.921 28.163 7.193 40.89m12.728-12.728 8.884 8.883c.17.17.447.17.617 0l5.12-5.12a7.862 7.862 0 0 0 1.667-8.655.093.093 0 0 1 .02-.102l4.906-4.906a2 2 0 0 0 0-2.828L32.648 6.95a2 2 0 0 0-2.828 0l-4.89 4.889a.126.126 0 0 1-.139.027 7.828 7.828 0 0 0-8.618 1.66l-5.027 5.026a.591.591 0 0 0 0 .836l8.774 8.775Z"},null,-1)]),14,Qit)}var NB=Ue(Jit,[["render",eot]]);const tot=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),not=xe({name:"IconQrcode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rot=["stroke-width","stroke-linecap","stroke-linejoin"];function iot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 30v4m0 3v6m19-19h-6m-3 0h-4M7 7h17v17H7V7Zm0 25h9v9H7v-9Zm25 0h9v9h-9v-9Zm0-25h9v9h-9V7Zm-18 7h3v3h-3v-3Z"},null,-1)]),14,rot)}var FB=Ue(not,[["render",iot]]);const oot=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),sot=xe({name:"IconRelation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),aot=["stroke-width","stroke-linecap","stroke-linejoin"];function lot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.714 14C15.204 15.784 12 20.302 12 25.593c0 1.142.15 2.247.429 3.298m16.285-14.712C32.998 16.073 36 20.471 36 25.593c0 1.07-.131 2.11-.378 3.102m-18.32 7.194a11.676 11.676 0 0 0 13.556-.112"},null,-1),I("path",{d:"M24 19a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM36 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM12 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"},null,-1)]),14,aot)}var jB=Ue(sot,[["render",lot]]);const uot=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),cot=xe({name:"IconRobotAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dot=["stroke-width","stroke-linecap","stroke-linejoin"];function fot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,dot)}var VB=Ue(cot,[["render",fot]]);const hot=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),pot=xe({name:"IconRobot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vot=["stroke-width","stroke-linecap","stroke-linejoin"];function mot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,vot)}var zB=Ue(pot,[["render",mot]]);const got=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),yot=xe({name:"IconSafe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bot=["stroke-width","stroke-linecap","stroke-linejoin"];function _ot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16.825 22.165 6 6 10-10M24 6c7 4 16 5 16 5v15s-2 12-16 16.027C10 38 8 26 8 26V11s9-1 16-5Z"},null,-1)]),14,bot)}var UB=Ue(yot,[["render",_ot]]);const bf=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),Sot=xe({name:"IconSchedule",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),kot=["stroke-width","stroke-linecap","stroke-linejoin"];function wot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M24 13v10l6.5 7"},null,-1)]),14,kot)}var HB=Ue(Sot,[["render",wot]]);const xot=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Cot=xe({name:"IconShake",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Eot=["stroke-width","stroke-linecap","stroke-linejoin"];function Tot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43.092 27.536 31.778 38.849M20.465 4.91 9.15 16.221m9.192 14.85a1 1 0 1 1-1.414-1.415 1 1 0 0 1 1.414 1.414ZM6.323 28.95 19.05 41.678a1 1 0 0 0 1.415 0l21.213-21.213a1 1 0 0 0 0-1.415L28.95 6.322a1 1 0 0 0-1.415 0L6.322 27.536a1 1 0 0 0 0 1.414Z"},null,-1),I("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1)]),14,Eot)}var WB=Ue(Cot,[["render",Tot]]);const Aot=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Iot=xe({name:"IconSkin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Lot=["stroke-width","stroke-linecap","stroke-linejoin"];function Dot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M17.936 6H7a1 1 0 0 0-1 1v17.559a1 1 0 0 0 1 1h4V40a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V25.559h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H30.064C28.854 7.23 26.59 9.059 24 9.059S19.147 7.23 17.936 6Z"},null,-1)]),14,Lot)}var GB=Ue(Iot,[["render",Dot]]);const Pot=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),Rot=xe({name:"IconStamp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Mot=["stroke-width","stroke-linecap","stroke-linejoin"];function Oot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 33a1 1 0 0 1 1-1h32a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-7ZM29.081 21.18a8 8 0 1 0-10.163 0L14 32h20l-4.919-10.82Z"},null,-1)]),14,Mot)}var KB=Ue(Rot,[["render",Oot]]);const $ot=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),Bot=xe({name:"IconStorage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Not=["stroke-width","stroke-linecap","stroke-linejoin"];function Fot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 18h34v12H7V18ZM40 6H8a1 1 0 0 0-1 1v11h34V7a1 1 0 0 0-1-1ZM7 30h34v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V30Z"},null,-1),I("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),I("path",{d:"M13 12v-2h-2v2h2Zm.02 0h2v-2h-2v2Zm0 .02v2h2v-2h-2Zm-.02 0h-2v2h2v-2ZM13 14h.02v-4H13v4Zm-1.98-2v.02h4V12h-4Zm2-1.98H13v4h.02v-4Zm1.98 2V12h-4v.02h4Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1)]),14,Not)}var qB=Ue(Bot,[["render",Fot]]);const EV=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),jot=xe({name:"IconSubscribeAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Vot=["stroke-width","stroke-linecap","stroke-linejoin"];function zot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.53 6.007H9.97c-.535 0-.97.449-.97 1.003V41.8c0 .148.152.245.28.179l15.25-7.881 14.248 7.88c.129.067.28-.03.28-.179V22.06M27.413 11.023h6.794m0 0H41m-6.794 0V4m0 7.023v7.023"},null,-1)]),14,Vot)}var YB=Ue(jot,[["render",zot]]);const Uot=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),Hot=xe({name:"IconSubscribe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Wot=["stroke-width","stroke-linecap","stroke-linejoin"];function Got(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M9 7v34.667a.2.2 0 0 0 .294.176L24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1Z"},null,-1)]),14,Wot)}var XB=Ue(Hot,[["render",Got]]);const Kot=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),qot=xe({name:"IconSubscribed",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Yot=["stroke-width","stroke-linecap","stroke-linejoin"];function Xot(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m31.289 15.596-9.193 9.193-4.95-4.95M24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1v34.667a.2.2 0 0 0 .294.176L24 34Z"},null,-1)]),14,Yot)}var ZB=Ue(qot,[["render",Xot]]);const Zot=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),Jot=xe({name:"IconSun",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Qot=["stroke-width","stroke-linecap","stroke-linejoin"];function est(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"7"},null,-1),I("path",{d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1)]),14,Qot)}var JB=Ue(Jot,[["render",est]]);const tst=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),nst=xe({name:"IconTag",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),rst=["stroke-width","stroke-linecap","stroke-linejoin"];function ist(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.835 6.035a1 1 0 0 1 .903-.273l12.964 2.592a1 1 0 0 1 .784.785l2.593 12.963a1 1 0 0 1-.274.904L21.678 43.133a1 1 0 0 1-1.415 0L4.708 27.577a1 1 0 0 1 0-1.414L24.835 6.035Z"},null,-1),I("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),I("path",{d:"M31.582 17.349a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,rst)}var QB=Ue(nst,[["render",ist]]);const ost=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),sst=xe({name:"IconTags",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),ast=["stroke-width","stroke-linecap","stroke-linejoin"];function lst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m37.581 28.123-14.849 14.85a1 1 0 0 1-1.414 0L8.59 30.243m25.982-22.68-10.685-.628a1 1 0 0 0-.766.291L9.297 21.052a1 1 0 0 0 0 1.414L20.61 33.78a1 1 0 0 0 1.415 0l13.824-13.825a1 1 0 0 0 .291-.765l-.628-10.686a1 1 0 0 0-.94-.94Zm-6.874 7.729a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z"},null,-1),I("path",{d:"M27.697 15.292a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ast)}var eN=Ue(sst,[["render",lst]]);const ust=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),cst=xe({name:"IconThunderbolt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),dst=["stroke-width","stroke-linecap","stroke-linejoin"];function fst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M27.824 5.203A.1.1 0 0 1 28 5.27V21h10.782a.1.1 0 0 1 .075.165L20.176 42.797A.1.1 0 0 1 20 42.73V27H9.219a.1.1 0 0 1-.076-.165L27.824 5.203Z"},null,-1)]),14,dst)}var tN=Ue(cst,[["render",fst]]);const hst=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),pst=xe({name:"IconTool",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),vst=["stroke-width","stroke-linecap","stroke-linejoin"];function mst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M19.994 11.035c3.66-3.659 9.094-4.46 13.531-2.405a.1.1 0 0 1 .028.16l-6.488 6.488a1 1 0 0 0 0 1.414l4.243 4.243a1 1 0 0 0 1.414 0l6.488-6.488a.1.1 0 0 1 .16.028c2.056 4.437 1.254 9.872-2.405 13.53-3.695 3.696-9.2 4.477-13.66 2.347L12.923 40.733a1 1 0 0 1-1.414 0L7.266 36.49a1 1 0 0 1 0-1.414l10.382-10.382c-2.13-4.46-1.349-9.965 2.346-13.66Z"},null,-1)]),14,vst)}var nN=Ue(pst,[["render",mst]]);const gst=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),yst=xe({name:"IconTrophy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),bst=["stroke-width","stroke-linecap","stroke-linejoin"];function _st(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 33c-6.075 0-11-4.925-11-11m11 11c6.075 0 11-4.925 11-11M24 33v8M13 22V7h22v15m-22 0V9H7v7a6 6 0 0 0 6 6Zm22 0V9h6v7a6 6 0 0 1-6 6ZM12 41h24"},null,-1)]),14,bst)}var rN=Ue(yst,[["render",_st]]);const Sst=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),kst=xe({name:"IconUnlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),wst=["stroke-width","stroke-linecap","stroke-linejoin"];function xst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1)]),14,wst)}var iN=Ue(kst,[["render",xst]]);const Cst=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),Est=xe({name:"IconUserAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Tst=["stroke-width","stroke-linecap","stroke-linejoin"];function Ast(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 27h-8c-5.523 0-10 4.477-10 10v4h18m11-14v8m0 0v8m0-8h8m-8 0h-8m3-21a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"},null,-1)]),14,Tst)}var oN=Ue(Est,[["render",Ast]]);const Ist=Object.assign(oN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oN.name,oN)}}),Lst=xe({name:"IconUserGroup",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Dst=["stroke-width","stroke-linecap","stroke-linejoin"];function Pst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"18",cy:"15",r:"7"},null,-1),I("circle",{cx:"34",cy:"19",r:"4"},null,-1),I("path",{d:"M6 34a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v6H6v-6ZM34 30h4a4 4 0 0 1 4 4v4h-8"},null,-1)]),14,Dst)}var sN=Ue(Lst,[["render",Pst]]);const Rst=Object.assign(sN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sN.name,sN)}}),Mst=xe({name:"IconUser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Ost=["stroke-width","stroke-linecap","stroke-linejoin"];function $st(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 37c0-4.97 4.03-8 9-8h16c4.97 0 9 3.03 9 8v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3Z"},null,-1),I("circle",{cx:"24",cy:"15",r:"8"},null,-1)]),14,Ost)}var aN=Ue(Mst,[["render",$st]]);const Bst=Object.assign(aN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aN.name,aN)}}),Nst=xe({name:"IconVideoCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Fst=["stroke-width","stroke-linecap","stroke-linejoin"];function jst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M33 18v12m0-12v-6a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v24a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1v-6m0-12 8.713-2.614a1 1 0 0 1 1.287.958v15.312a1 1 0 0 1-1.287.958L33 30M11 19h6"},null,-1)]),14,Fst)}var lN=Ue(Nst,[["render",jst]]);const Jve=Object.assign(lN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lN.name,lN)}}),Vst=xe({name:"IconWifi",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),zst=["stroke-width","stroke-linecap","stroke-linejoin"];function Ust(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.587 31.485A9.978 9.978 0 0 0 24 28a9.977 9.977 0 0 0-7.586 3.485M37.255 25.822A17.953 17.953 0 0 0 24 20a17.953 17.953 0 0 0-13.256 5.822M43.618 19.449C38.696 14.246 31.728 11 24 11c-7.727 0-14.696 3.246-19.617 8.449"},null,-1),I("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zst)}var uN=Ue(Vst,[["render",Ust]]);const Hst=Object.assign(uN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uN.name,uN)}}),Wst=xe({name:"IconWoman",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Me("icon"),r=F(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),i=F(()=>{const s={};return e.size&&(s.fontSize=et(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:i,onClick:s=>{t("click",s)}}}}),Gst=["stroke-width","stroke-linecap","stroke-linejoin"];function Kst(e,t,n,r,i,a){return z(),X("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:fe(e.cls),style:qe(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 29c6.075 0 11-4.925 11-11S30.075 7 24 7s-11 4.925-11 11 4.925 11 11 11Zm0 0v15M15 36h18"},null,-1)]),14,Gst)}var cN=Ue(Wst,[["render",Kst]]);const qst=Object.assign(cN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cN.name,cN)}}),TV={IconArrowDown:xV,IconArrowFall:rWe,IconArrowLeft:iW,IconArrowRight:cWe,IconArrowRise:pWe,IconArrowUp:CV,IconCaretDown:GH,IconCaretLeft:AH,IconCaretRight:TH,IconCaretUp:yve,IconDoubleDown:SWe,IconDoubleLeft:a0e,IconDoubleRight:l0e,IconDoubleUp:CWe,IconDownCircle:IWe,IconDown:Qh,IconDragArrow:Mve,IconExpand:$We,IconLeftCircle:jWe,IconLeft:Il,IconMenuFold:eve,IconMenuUnfold:tve,IconRightCircle:HWe,IconRight:Hi,IconRotateLeft:$0e,IconRotateRight:B0e,IconShrink:qWe,IconSwap:Ove,IconToBottom:tGe,IconToLeft:oGe,IconToRight:uGe,IconToTop:Epe,IconUpCircle:hGe,IconUp:nS,IconCheckCircleFill:Zh,IconCloseCircleFill:tg,IconExclamationCircleFill:If,IconExclamationPolygonFill:gGe,IconInfoCircleFill:a3,IconMinusCircleFill:SGe,IconPlusCircleFill:CGe,IconQuestionCircleFill:IGe,IconCheckCircle:yu,IconCheckSquare:$Ge,IconCheck:ig,IconClockCircle:l_,IconCloseCircle:$ve,IconClose:rs,IconExclamationCircle:$c,IconExclamation:zH,IconInfoCircle:Mc,IconInfo:lve,IconMinusCircle:YGe,IconMinus:T0,IconPlusCircle:QGe,IconPlus:xf,IconQuestionCircle:OH,IconQuestion:rKe,IconStop:aKe,IconHeartFill:oW,IconStarFill:UH,IconThumbDownFill:pKe,IconThumbUpFill:yKe,IconAt:kKe,IconCloudDownload:EKe,IconCodeBlock:Bve,IconCodeSquare:RKe,IconCode:I0,IconCustomerService:jKe,IconDownload:Mh,IconExport:oA,IconEyeInvisible:_pe,IconEye:x0,IconHeart:sA,IconHistory:Bm,IconHome:h3,IconImport:aA,IconLaunch:Nve,IconList:sW,IconMessageBanned:pqe,IconMessage:yqe,IconMoreVertical:kqe,IconMore:U0,IconPoweroff:Eqe,IconRefresh:sc,IconReply:Rqe,IconSave:hh,IconScan:jqe,IconSearch:Mm,IconSelectAll:Hqe,IconSend:qqe,IconSettings:Lf,IconShareAlt:tYe,IconShareExternal:oYe,IconShareInternal:uYe,IconStar:lA,IconSync:mYe,IconThumbDown:_Ye,IconThumbUp:xYe,IconTranslate:AYe,IconUpload:A0,IconVoice:PYe,IconAlignCenter:$Ye,IconAlignLeft:jYe,IconAlignRight:HYe,IconAttachment:qYe,IconBgColors:Fve,IconBold:tXe,IconBrush:oXe,IconCopy:rA,IconDelete:Ru,IconEdit:ZH,IconEraser:uXe,IconFilter:KH,IconFindReplace:hXe,IconFontColors:jve,IconFormula:_Xe,IconH1:xXe,IconH2:AXe,IconH3:PXe,IconH4:$Xe,IconH5:jXe,IconH6:HXe,IconH7:qXe,IconHighlight:JXe,IconItalic:nZe,IconLineHeight:sZe,IconLink:gu,IconObliqueLine:Ape,IconOrderedList:cZe,IconOriginalSize:N0e,IconPaste:pZe,IconQuote:yZe,IconRedo:kZe,IconScissor:EZe,IconSortAscending:Vve,IconSortDescending:zve,IconSort:$Ze,IconStrikethrough:jZe,IconUnderline:HZe,IconUndo:qZe,IconUnorderedList:JZe,IconZoomIn:O0e,IconZoomOut:M0e,IconMuteFill:nJe,IconPauseCircleFill:sJe,IconPlayArrowFill:Ive,IconPlayCircleFill:cJe,IconSkipNextFill:pJe,IconSkipPreviousFill:yJe,IconSoundFill:kJe,IconBackward:EJe,IconForward:LJe,IconFullscreenExit:aW,IconFullscreen:Z5,IconLiveBroadcast:u_,IconMusic:jJe,IconMute:HJe,IconPauseCircle:qJe,IconPause:Ave,IconPlayArrow:ha,IconPlayCircle:Ny,IconRecordStop:iQe,IconRecord:lQe,IconSkipNext:fQe,IconSkipPrevious:mQe,IconSound:Uve,IconBytedanceColor:wQe,IconLarkColor:TQe,IconTiktokColor:DQe,IconXiguaColor:OQe,IconFaceBookCircleFill:FQe,IconFacebookSquareFill:UQe,IconGoogleCircleFill:KQe,IconQqCircleFill:ZQe,IconTwitterCircleFill:tet,IconWeiboCircleFill:oet,IconAlipayCircle:cet,IconCodeSandbox:pet,IconCodepen:yet,IconFacebook:wet,IconGithub:Hve,IconGitlab:Let,IconGoogle:Met,IconQqZone:Net,IconQq:zet,IconTwitter:Get,IconWechat:Xet,IconWechatpay:ett,IconWeibo:itt,IconChineseFill:ltt,IconEnglishFill:ftt,IconFaceFrownFill:ave,IconFaceMehFill:mV,IconFaceSmileFill:sve,IconMoonFill:mtt,IconPenFill:_tt,IconSunFill:xtt,IconApps:Wve,IconArchive:Dtt,IconBarChart:Gve,IconBook:c_,IconBookmark:Vtt,IconBranch:Wtt,IconBug:L0,IconBulb:Kve,IconCalendarClock:tnt,IconCalendar:sS,IconCamera:ont,IconCloud:unt,IconCommand:hnt,IconCommon:gnt,IconCompass:Snt,IconComputer:d_,IconCopyright:qve,IconDashboard:Dnt,IconDesktop:nT,IconDice:Nnt,IconDragDotVertical:J5,IconDragDot:H0e,IconDriveFile:znt,IconEar:Gnt,IconEmail:Xnt,IconEmpty:F5,IconExperiment:ert,IconFileAudio:tW,IconFileImage:QH,IconFilePdf:Dve,IconFileVideo:eW,IconFile:uS,IconFire:lW,IconFolderAdd:art,IconFolderDelete:drt,IconFolder:uA,IconGift:yrt,IconIdcard:krt,IconImageClose:U5,IconImage:cA,IconInteraction:Irt,IconLanguage:Yve,IconLayers:$rt,IconLayout:jrt,IconLoading:Ja,IconLocation:Hrt,IconLock:qrt,IconLoop:Jrt,IconMan:nit,IconMenu:Xve,IconMindMapping:uit,IconMobile:Zve,IconMoon:mit,IconMosaic:_it,IconNav:xit,IconNotificationClose:Ait,IconNotification:Pit,IconPalette:uW,IconPen:Fit,IconPhone:Uit,IconPrinter:Kit,IconPublic:Zit,IconPushpin:tot,IconQrcode:oot,IconRelation:uot,IconRobotAdd:hot,IconRobot:got,IconSafe:bf,IconSchedule:xot,IconShake:Aot,IconSkin:Pot,IconStamp:$ot,IconStorage:EV,IconSubscribeAdd:Uot,IconSubscribe:Kot,IconSubscribed:Zot,IconSun:tst,IconTag:ost,IconTags:ust,IconThunderbolt:hst,IconTool:gst,IconTrophy:Sst,IconUnlock:Cst,IconUserAdd:Ist,IconUserGroup:Rst,IconUser:Bst,IconVideoCamera:Jve,IconWifi:Hst,IconWoman:qst},Yst=(e,t)=>{for(const n of Object.keys(TV))e.use(TV[n],t)},Xst={...TV,install:Yst};function Qve(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zst}=Object.prototype,{getPrototypeOf:cW}=Object,{iterator:dA,toStringTag:eme}=Symbol,fA=(e=>t=>{const n=Zst.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bd=e=>(e=e.toLowerCase(),t=>fA(t)===e),hA=e=>t=>typeof t===e,{isArray:p3}=Array,Fy=hA("undefined");function cS(e){return e!==null&&!Fy(e)&&e.constructor!==null&&!Fy(e.constructor)&&Iu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tme=Bd("ArrayBuffer");function Jst(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tme(e.buffer),t}const Qst=hA("string"),Iu=hA("function"),nme=hA("number"),dS=e=>e!==null&&typeof e=="object",eat=e=>e===!0||e===!1,oE=e=>{if(fA(e)!=="object")return!1;const t=cW(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(eme in e)&&!(dA in e)},tat=e=>{if(!dS(e)||cS(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nat=Bd("Date"),rat=Bd("File"),iat=Bd("Blob"),oat=Bd("FileList"),sat=e=>dS(e)&&Iu(e.pipe),aat=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Iu(e.append)&&((t=fA(e))==="formdata"||t==="object"&&Iu(e.toString)&&e.toString()==="[object FormData]"))},lat=Bd("URLSearchParams"),[uat,cat,dat,fat]=["ReadableStream","Request","Response","Headers"].map(Bd),hat=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),p3(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const nm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ime=e=>!Fy(e)&&e!==nm;function AV(){const{caseless:e,skipUndefined:t}=ime(this)&&this||{},n={},r=(i,a)=>{const s=e&&rme(n,a)||a;oE(n[s])&&oE(i)?n[s]=AV(n[s],i):oE(i)?n[s]=AV({},i):p3(i)?n[s]=i.slice():(!t||!Fy(i))&&(n[s]=i)};for(let i=0,a=arguments.length;i(fS(t,(i,a)=>{n&&Iu(i)?e[a]=Qve(i,n):e[a]=i},{allOwnKeys:r}),e),vat=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mat=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gat=(e,t,n,r)=>{let i,a,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&cW(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yat=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bat=e=>{if(!e)return null;if(p3(e))return e;let t=e.length;if(!nme(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_at=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cW(Uint8Array)),Sat=(e,t)=>{const r=(e&&e[dA]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},kat=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wat=Bd("HTMLFormElement"),xat=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),lie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cat=Bd("RegExp"),ome=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fS(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},Eat=e=>{ome(e,(t,n)=>{if(Iu(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Iu(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Tat=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return p3(e)?r(e):r(String(e).split(t)),n},Aat=()=>{},Iat=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Lat(e){return!!(e&&Iu(e.append)&&e[eme]==="FormData"&&e[dA])}const Dat=e=>{const t=new Array(10),n=(r,i)=>{if(dS(r)){if(t.indexOf(r)>=0)return;if(cS(r))return r;if(!("toJSON"in r)){t[i]=r;const a=p3(r)?[]:{};return fS(r,(s,l)=>{const c=n(s,i+1);!Fy(c)&&(a[l]=c)}),t[i]=void 0,a}}return r};return n(e,0)},Pat=Bd("AsyncFunction"),Rat=e=>e&&(dS(e)||Iu(e))&&Iu(e.then)&&Iu(e.catch),sme=((e,t)=>e?setImmediate:t?((n,r)=>(nm.addEventListener("message",({source:i,data:a})=>{i===nm&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),nm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Iu(nm.postMessage)),Mat=typeof queueMicrotask<"u"?queueMicrotask.bind(nm):typeof process<"u"&&process.nextTick||sme,Oat=e=>e!=null&&Iu(e[dA]),en={isArray:p3,isArrayBuffer:tme,isBuffer:cS,isFormData:aat,isArrayBufferView:Jst,isString:Qst,isNumber:nme,isBoolean:eat,isObject:dS,isPlainObject:oE,isEmptyObject:tat,isReadableStream:uat,isRequest:cat,isResponse:dat,isHeaders:fat,isUndefined:Fy,isDate:nat,isFile:rat,isBlob:iat,isRegExp:Cat,isFunction:Iu,isStream:sat,isURLSearchParams:lat,isTypedArray:_at,isFileList:oat,forEach:fS,merge:AV,extend:pat,trim:hat,stripBOM:vat,inherits:mat,toFlatObject:gat,kindOf:fA,kindOfTest:Bd,endsWith:yat,toArray:bat,forEachEntry:Sat,matchAll:kat,isHTMLForm:wat,hasOwnProperty:lie,hasOwnProp:lie,reduceDescriptors:ome,freezeMethods:Eat,toObjectSet:Tat,toCamelCase:xat,noop:Aat,toFiniteNumber:Iat,findKey:rme,global:nm,isContextDefined:ime,isSpecCompliantForm:Lat,toJSONObject:Dat,isAsyncFn:Pat,isThenable:Rat,setImmediate:sme,asap:Mat,isIterable:Oat};function ri(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}en.inherits(ri,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:en.toJSONObject(this.config),code:this.code,status:this.status}}});const ame=ri.prototype,lme={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lme[e]={value:e}});Object.defineProperties(ri,lme);Object.defineProperty(ame,"isAxiosError",{value:!0});ri.from=(e,t,n,r,i,a)=>{const s=Object.create(ame);en.toFlatObject(e,s,function(h){return h!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ri.call(s,l,c,n,r,i),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};const $at=null;function IV(e){return en.isPlainObject(e)||en.isArray(e)}function ume(e){return en.endsWith(e,"[]")?e.slice(0,-2):e}function uie(e,t,n){return e?e.concat(t).map(function(i,a){return i=ume(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Bat(e){return en.isArray(e)&&!e.some(IV)}const Nat=en.toFlatObject(en,{},null,function(t){return/^is[A-Z]/.test(t)});function pA(e,t,n){if(!en.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=en.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!en.isUndefined(k[S])});const r=n.metaTokens,i=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&en.isSpecCompliantForm(t);if(!en.isFunction(i))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(en.isDate(y))return y.toISOString();if(en.isBoolean(y))return y.toString();if(!c&&en.isBlob(y))throw new ri("Blob is not supported. Use a Buffer instead.");return en.isArrayBuffer(y)||en.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y,S,k){let w=y;if(y&&!k&&typeof y=="object"){if(en.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=JSON.stringify(y);else if(en.isArray(y)&&Bat(y)||(en.isFileList(y)||en.endsWith(S,"[]"))&&(w=en.toArray(y)))return S=ume(S),w.forEach(function(E,_){!(en.isUndefined(E)||E===null)&&t.append(s===!0?uie([S],_,a):s===null?S:S+"[]",d(E))}),!1}return IV(y)?!0:(t.append(uie(k,S,a),d(y)),!1)}const p=[],v=Object.assign(Nat,{defaultVisitor:h,convertValue:d,isVisitable:IV});function g(y,S){if(!en.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(y),en.forEach(y,function(w,x){(!(en.isUndefined(w)||w===null)&&i.call(t,w,en.isString(x)?x.trim():x,S,v))===!0&&g(w,S?S.concat(x):[x])}),p.pop()}}if(!en.isObject(e))throw new TypeError("data must be an object");return g(e),t}function cie(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function dW(e,t){this._pairs=[],e&&pA(e,this,t)}const cme=dW.prototype;cme.append=function(t,n){this._pairs.push([t,n])};cme.toString=function(t){const n=t?function(r){return t.call(this,r,cie)}:cie;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Fat(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dme(e,t,n){if(!t)return e;const r=n&&n.encode||Fat;en.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=en.isURLSearchParams(t)?t.toString():new dW(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class die{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){en.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fme={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jat=typeof URLSearchParams<"u"?URLSearchParams:dW,Vat=typeof FormData<"u"?FormData:null,zat=typeof Blob<"u"?Blob:null,Uat={isBrowser:!0,classes:{URLSearchParams:jat,FormData:Vat,Blob:zat},protocols:["http","https","file","blob","url","data"]},fW=typeof window<"u"&&typeof document<"u",LV=typeof navigator=="object"&&navigator||void 0,Hat=fW&&(!LV||["ReactNative","NativeScript","NS"].indexOf(LV.product)<0),Wat=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gat=fW&&window.location.href||"http://localhost",Kat=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fW,hasStandardBrowserEnv:Hat,hasStandardBrowserWebWorkerEnv:Wat,navigator:LV,origin:Gat},Symbol.toStringTag,{value:"Module"})),kl={...Kat,...Uat};function qat(e,t){return pA(e,new kl.classes.URLSearchParams,{visitor:function(n,r,i,a){return kl.isNode&&en.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function Yat(e){return en.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xat(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&en.isArray(i)?i.length:s,c?(en.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!en.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&en.isArray(i[s])&&(i[s]=Xat(i[s])),!l)}if(en.isFormData(e)&&en.isFunction(e.entries)){const n={};return en.forEachEntry(e,(r,i)=>{t(Yat(r),i,n,0)}),n}return null}function Zat(e,t,n){if(en.isString(e))try{return(t||JSON.parse)(e),en.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const hS={transitional:fme,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=en.isObject(t);if(a&&en.isHTMLForm(t)&&(t=new FormData(t)),en.isFormData(t))return i?JSON.stringify(hme(t)):t;if(en.isArrayBuffer(t)||en.isBuffer(t)||en.isStream(t)||en.isFile(t)||en.isBlob(t)||en.isReadableStream(t))return t;if(en.isArrayBufferView(t))return t.buffer;if(en.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qat(t,this.formSerializer).toString();if((l=en.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return pA(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),Zat(t)):t}],transformResponse:[function(t){const n=this.transitional||hS.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(en.isResponse(t)||en.isReadableStream(t))return t;if(t&&en.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?ri.from(l,ri.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kl.classes.FormData,Blob:kl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};en.forEach(["delete","get","head","post","put","patch"],e=>{hS.headers[e]={}});const Jat=en.toObjectSet(["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"]),Qat=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Jat[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fie=Symbol("internals");function J2(e){return e&&String(e).trim().toLowerCase()}function sE(e){return e===!1||e==null?e:en.isArray(e)?e.map(sE):String(e)}function elt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const tlt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dN(e,t,n,r,i){if(en.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!en.isString(t)){if(en.isString(r))return t.indexOf(r)!==-1;if(en.isRegExp(r))return r.test(t)}}function nlt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rlt(e,t){const n=en.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let Lu=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(l,c,d){const h=J2(c);if(!h)throw new Error("header name must be a non-empty string");const p=en.findKey(i,h);(!p||i[p]===void 0||d===!0||d===void 0&&i[p]!==!1)&&(i[p||c]=sE(l))}const s=(l,c)=>en.forEach(l,(d,h)=>a(d,h,c));if(en.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(en.isString(t)&&(t=t.trim())&&!tlt(t))s(Qat(t),n);else if(en.isObject(t)&&en.isIterable(t)){let l={},c,d;for(const h of t){if(!en.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[d=h[0]]=(c=l[d])?en.isArray(c)?[...c,h[1]]:[c,h[1]]:h[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=J2(t),t){const r=en.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return elt(i);if(en.isFunction(n))return n.call(this,i,r);if(en.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=J2(t),t){const r=en.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||dN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=J2(s),s){const l=en.findKey(r,s);l&&(!n||dN(r,r[l],l,n))&&(delete r[l],i=!0)}}return en.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||dN(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return en.forEach(this,(i,a)=>{const s=en.findKey(r,a);if(s){n[s]=sE(i),delete n[a];return}const l=t?nlt(a):String(a).trim();l!==a&&delete n[a],n[l]=sE(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return en.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&en.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[fie]=this[fie]={accessors:{}}).accessors,i=this.prototype;function a(s){const l=J2(s);r[l]||(rlt(i,s),r[l]=!0)}return en.isArray(t)?t.forEach(a):a(t),this}};Lu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);en.reduceDescriptors(Lu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});en.freezeMethods(Lu);function fN(e,t){const n=this||hS,r=t||n,i=Lu.from(r.headers);let a=r.data;return en.forEach(e,function(l){a=l.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function pme(e){return!!(e&&e.__CANCEL__)}function v3(e,t,n){ri.call(this,e??"canceled",ri.ERR_CANCELED,t,n),this.name="CanceledError"}en.inherits(v3,ri,{__CANCEL__:!0});function vme(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ri("Request failed with status code "+n.status,[ri.ERR_BAD_REQUEST,ri.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ilt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function olt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),h=r[a];s||(s=d),n[i]=c,r[i]=d;let p=a,v=0;for(;p!==i;)v+=n[p++],p=p%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),d-s{n=h,i=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const h=Date.now(),p=h-n;p>=r?s(d,h):(i=d,a||(a=setTimeout(()=>{a=null,s(i)},r-p)))},()=>i&&s(i)]}const rT=(e,t,n=3)=>{let r=0;const i=olt(50,250);return slt(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-r,d=i(c),h=s<=l;r=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&h?(l-s)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},hie=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pie=e=>(...t)=>en.asap(()=>e(...t)),alt=kl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kl.origin),kl.navigator&&/(msie|trident)/i.test(kl.navigator.userAgent)):()=>!0,llt=kl.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];en.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),en.isString(r)&&s.push("path="+r),en.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ult(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function clt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mme(e,t,n){let r=!ult(t);return e&&(r||n==!1)?clt(e,t):t}const vie=e=>e instanceof Lu?{...e}:e;function Nm(e,t){t=t||{};const n={};function r(d,h,p,v){return en.isPlainObject(d)&&en.isPlainObject(h)?en.merge.call({caseless:v},d,h):en.isPlainObject(h)?en.merge({},h):en.isArray(h)?h.slice():h}function i(d,h,p,v){if(en.isUndefined(h)){if(!en.isUndefined(d))return r(void 0,d,p,v)}else return r(d,h,p,v)}function a(d,h){if(!en.isUndefined(h))return r(void 0,h)}function s(d,h){if(en.isUndefined(h)){if(!en.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function l(d,h,p){if(p in t)return r(d,h);if(p in e)return r(void 0,d)}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,h,p)=>i(vie(d),vie(h),p,!0)};return en.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||i,v=p(e[h],t[h],h);en.isUndefined(v)&&p!==l||(n[h]=v)}),n}const gme=e=>{const t=Nm({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Lu.from(s),t.url=dme(mme(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),en.isFormData(n)){if(kl.hasStandardBrowserEnv||kl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(en.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([h,p])=>{d.includes(h.toLowerCase())&&s.set(h,p)})}}if(kl.hasStandardBrowserEnv&&(r&&en.isFunction(r)&&(r=r(t)),r||r!==!1&&alt(t.url))){const c=i&&a&&llt.read(a);c&&s.set(i,c)}return t},dlt=typeof XMLHttpRequest<"u",flt=dlt&&function(e){return new Promise(function(n,r){const i=gme(e);let a=i.data;const s=Lu.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=i,h,p,v,g,y;function S(){g&&g(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let k=new XMLHttpRequest;k.open(i.method.toUpperCase(),i.url,!0),k.timeout=i.timeout;function w(){if(!k)return;const E=Lu.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),T={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:E,config:e,request:k};vme(function(P){n(P),S()},function(P){r(P),S()},T),k=null}"onloadend"in k?k.onloadend=w:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(w)},k.onabort=function(){k&&(r(new ri("Request aborted",ri.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const T=_&&_.message?_.message:"Network Error",D=new ri(T,ri.ERR_NETWORK,e,k);D.event=_||null,r(D),k=null},k.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||fme;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new ri(_,T.clarifyTimeoutError?ri.ETIMEDOUT:ri.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&en.forEach(s.toJSON(),function(_,T){k.setRequestHeader(T,_)}),en.isUndefined(i.withCredentials)||(k.withCredentials=!!i.withCredentials),l&&l!=="json"&&(k.responseType=i.responseType),d&&([v,y]=rT(d,!0),k.addEventListener("progress",v)),c&&k.upload&&([p,g]=rT(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(h=E=>{k&&(r(!E||E.type?new v3(null,e,k):E),k.abort(),k=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const x=ilt(i.url);if(x&&kl.protocols.indexOf(x)===-1){r(new ri("Unsupported protocol "+x+":",ri.ERR_BAD_REQUEST,e));return}k.send(a||null)})},hlt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(d){if(!i){i=!0,l();const h=d instanceof Error?d:this.reason;r.abort(h instanceof ri?h:new v3(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new ri(`timeout ${t} of ms exceeded`,ri.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>en.asap(l),c}},plt=function*(e,t){let n=e.byteLength;if(n{const i=vlt(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:h}=await i.next();if(d){l(),c.close();return}let p=h.byteLength;if(n){let v=a+=p;n(v)}c.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},gie=64*1024,{isFunction:Lw}=en,yme=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(en.global),{ReadableStream:yie,TextEncoder:bie}=en.global,_ie=(e,...t)=>{try{return!!e(...t)}catch{return!1}},glt=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},yme,e),i=Lw(t),a=Lw(n),s=Lw(r);if(!i)return!1;const l=i&&Lw(yie),c=i&&(typeof bie=="function"?(y=>S=>y.encode(S))(new bie):async y=>new Uint8Array(await new n(y).arrayBuffer())),d=a&&l&&_ie(()=>{let y=!1;const S=new n(kl.origin,{body:new yie,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!S}),h=s&&l&&_ie(()=>en.isReadableStream(new r("").body)),p={stream:h&&(y=>y.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!p[y]&&(p[y]=(S,k)=>{let w=S&&S[y];if(w)return w.call(S);throw new ri(`Response type '${y}' is not supported`,ri.ERR_NOT_SUPPORT,k)})});const v=async y=>{if(y==null)return 0;if(en.isBlob(y))return y.size;if(en.isSpecCompliantForm(y))return(await new n(kl.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(en.isArrayBufferView(y)||en.isArrayBuffer(y))return y.byteLength;if(en.isURLSearchParams(y)&&(y=y+""),en.isString(y))return(await c(y)).byteLength},g=async(y,S)=>{const k=en.toFiniteNumber(y.getContentLength());return k??v(S)};return async y=>{let{url:S,method:k,data:w,signal:x,cancelToken:E,timeout:_,onDownloadProgress:T,onUploadProgress:D,responseType:P,headers:M,withCredentials:$="same-origin",fetchOptions:L}=gme(y);P=P?(P+"").toLowerCase():"text";let B=hlt([x,E&&E.toAbortSignal()],_),j=null;const H=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let U;try{if(D&&d&&k!=="get"&&k!=="head"&&(U=await g(M,w))!==0){let Y=new n(S,{method:"POST",body:w,duplex:"half"}),Q;if(en.isFormData(w)&&(Q=Y.headers.get("content-type"))&&M.setContentType(Q),Y.body){const[ie,q]=hie(U,rT(pie(D)));w=mie(Y.body,gie,ie,q)}}en.isString($)||($=$?"include":"omit");const W=a&&"credentials"in n.prototype,K={...L,signal:B,method:k.toUpperCase(),headers:M.normalize().toJSON(),body:w,duplex:"half",credentials:W?$:void 0};j=a&&new n(S,K);let oe=await(a?t(j,L):t(S,K));const ae=h&&(P==="stream"||P==="response");if(h&&(T||ae&&H)){const Y={};["status","statusText","headers"].forEach(te=>{Y[te]=oe[te]});const Q=en.toFiniteNumber(oe.headers.get("content-length")),[ie,q]=T&&hie(Q,rT(pie(T),!0))||[];oe=new r(mie(oe.body,gie,ie,()=>{q&&q(),H&&H()}),Y)}P=P||"text";let ee=await p[en.findKey(p,P)||"text"](oe,y);return!ae&&H&&H(),await new Promise((Y,Q)=>{vme(Y,Q,{data:ee,headers:Lu.from(oe.headers),status:oe.status,statusText:oe.statusText,config:y,request:j})})}catch(W){throw H&&H(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new ri("Network Error",ri.ERR_NETWORK,y,j),{cause:W.cause||W}):ri.from(W,W&&W.code,y,j)}}},ylt=new Map,bme=e=>{let t=en.merge.call({skipUndefined:!0},yme,e?e.env:null);const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let s=a.length,l=s,c,d,h=ylt;for(;l--;)c=a[l],d=h.get(c),d===void 0&&h.set(c,d=l?new Map:glt(t)),h=d;return d};bme();const DV={http:$at,xhr:flt,fetch:{get:bme}};en.forEach(DV,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Sie=e=>`- ${e}`,blt=e=>en.isFunction(e)||e===null||e===!1,_me={getAdapter:(e,t)=>{e=en.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let s=0;s`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since : `+s.map(Sie).join(` -`):" "+Sie(s[0]):"as no adapter specified";throw new ti("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:IV};function dN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new v3(null,e)}function kie(e){return dN(e),e.headers=Iu.from(e.headers),e.data=cN.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_me.getAdapter(e.adapter||fS.adapter,e)(e).then(function(r){return dN(e),r.data=cN.call(e,e.transformResponse,r),r.headers=Iu.from(r.headers),r},function(r){return pme(r)||(dN(e),r&&r.response&&(r.response.data=cN.call(e,e.transformResponse,r.response),r.response.headers=Iu.from(r.response.headers))),Promise.reject(r)})}const Sme="1.12.0",hA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hA[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xie={};hA.transitional=function(t,n,r){function i(a,s){return"[Axios v"+Sme+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new ti(i(s," has been removed"+(n?" in "+n:"")),ti.ERR_DEPRECATED);return n&&!xie[s]&&(xie[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};hA.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function _lt(e,t,n){if(typeof e!="object")throw new ti("options must be an object",ti.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new ti("option "+a+" must be "+c,ti.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ti("Unknown option "+a,ti.ERR_BAD_OPTION)}}const sE={assertOptions:_lt,validators:hA},qd=sE.validators;let bm=class{constructor(t){this.defaults=t||{},this.interceptors={request:new die,response:new die}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bm(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&sE.assertOptions(r,{silentJSONParsing:qd.transitional(qd.boolean),forcedJSONParsing:qd.transitional(qd.boolean),clarifyTimeoutError:qd.transitional(qd.boolean)},!1),i!=null&&(en.isFunction(i)?n.paramsSerializer={serialize:i}:sE.assertOptions(i,{encode:qd.function,serialize:qd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),sE.assertOptions(n,{baseUrl:qd.spelling("baseURL"),withXsrfToken:qd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&en.merge(a.common,a[n.method]);a&&en.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Iu.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let h,p=0,v;if(!c){const y=[kie.bind(this),void 0];for(y.unshift(...l),y.push(...d),v=y.length,h=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(l=>{r.subscribe(l),a=l}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new v3(a,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kme(function(i){t=i}),cancel:t}}};function klt(e){return function(n){return e.apply(null,n)}}function xlt(e){return en.isObject(e)&&e.isAxiosError===!0}const LV={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(LV).forEach(([e,t])=>{LV[t]=e});function xme(e){const t=new bm(e),n=Qve(bm.prototype.request,t);return en.extend(n,bm.prototype,t,{allOwnKeys:!0}),en.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return xme(Bm(e,i))},n}const uo=xme(fS);uo.Axios=bm;uo.CanceledError=v3;uo.CancelToken=Slt;uo.isCancel=pme;uo.VERSION=Sme;uo.toFormData=fA;uo.AxiosError=ti;uo.Cancel=uo.CanceledError;uo.all=function(t){return Promise.all(t)};uo.spread=klt;uo.isAxiosError=xlt;uo.mergeConfig=Bm;uo.AxiosHeaders=Iu;uo.formToJSON=e=>hme(en.isHTMLForm(e)?new FormData(e):e);uo.getAdapter=_me.getAdapter;uo.HttpStatusCode=LV;uo.default=uo;const{Axios:Clt,AxiosError:wlt,CanceledError:Elt,isCancel:Tlt,CancelToken:Alt,VERSION:Ilt,all:Llt,Cancel:Dlt,isAxiosError:Plt,spread:Rlt,toFormData:Mlt,AxiosHeaders:$lt,HttpStatusCode:Olt,formToJSON:Blt,getAdapter:Nlt,mergeConfig:Flt}=uo,hW=Object.freeze(Object.defineProperty({__proto__:null,Axios:Clt,AxiosError:wlt,AxiosHeaders:$lt,Cancel:Dlt,CancelToken:Alt,CanceledError:Elt,HttpStatusCode:Olt,VERSION:Ilt,all:Llt,default:uo,formToJSON:Blt,getAdapter:Nlt,isAxiosError:Plt,isCancel:Tlt,mergeConfig:Flt,spread:Rlt,toFormData:Mlt},Symbol.toStringTag,{value:"Module"})),jlt=()=>{try{return(JSON.parse(localStorage.getItem("addressSettings")||"{}").apiTimeout||30)*1e3}catch(e){return console.warn("Failed to get API timeout from settings, using default:",e),3e4}},pW=()=>{try{const t=JSON.parse(localStorage.getItem("addressSettings")||"{}").apiTimeout||30;return Math.max(t*3,100)*1e3}catch(e){return console.warn("Failed to get Action timeout from settings, using default:",e),1e5}},v0={BASE_URL:"http://localhost:5707",get TIMEOUT(){return jlt()},HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},vW={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},pA={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},Vlt={SUCCESS:200},Cme={DEFAULT_PAGE:1},mW=uo.create({baseURL:v0.BASE_URL,timeout:v0.TIMEOUT,headers:v0.HEADERS});mW.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.method==="get"&&(e.params={...e.params,_t:Date.now()}),console.log("API Request:",e.method?.toUpperCase(),e.url,e.params||e.data),e},e=>(console.error("Request Error:",e),Promise.reject(e)));mW.interceptors.response.use(e=>{const{data:t,status:n}=e;if(console.log("API Response:",e.config.url,t),n!==200)throw new Error(`HTTP Error: ${n}`);if(t.code&&t.code!==Vlt.SUCCESS)throw new Error(t.msg||`Business Error: ${t.code}`);return t},e=>{if(console.error("Response Error:",e),!e.response)throw new Error("网络连接失败,请检查网络设置");const{status:t}=e.response;switch(t){case 404:throw new Error("请求的资源不存在");case 500:throw new Error("服务器内部错误");case 401:throw new Error("未授权访问");case 403:throw new Error("访问被禁止");default:throw new Error(`请求失败: ${t}`)}});const vA=async(e,t={})=>{try{return await mW({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},V0=(e,t={})=>vA(e,{method:"GET",params:t}),wme=(e,t={})=>vA(e,{method:"POST",data:t}),zlt=(e,t={})=>vA(e,{method:"PUT",data:t}),Ult=(e,t={})=>vA(e,{method:"DELETE",params:t}),mA=(e,t="")=>{const n=`${vW.PROXY}/${e}`;return t?`${n}/${t}`:n},Hlt=async(e,t="",n={})=>{const r=mA(e,t);return V0(r,n)},Wlt=async(e,t="",n={})=>{const r=mA(e,t);return wme(r,n)},Glt=async(e,t="",n={})=>{const r=mA(e,t);return zlt(r,n)},Klt=async(e,t="",n={})=>{const r=mA(e,t);return Ult(r,n)},qlt=async(e,t="",n={})=>{const{method:r="GET",params:i,data:a}=n;switch(r.toUpperCase()){case"GET":return Hlt(e,t,i);case"POST":return Wlt(e,t,a);case"PUT":return Glt(e,t,a);case"DELETE":return Klt(e,t,i);default:throw new Error(`不支持的请求方法: ${r}`)}};var aE={exports:{}};function Ylt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lE={exports:{}};const Xlt={},Zlt=Object.freeze(Object.defineProperty({__proto__:null,default:Xlt},Symbol.toStringTag,{value:"Module"})),Jlt=eS(Zlt);var Qlt=lE.exports,Cie;function Ni(){return Cie||(Cie=1,(function(e,t){(function(n,r){e.exports=r()})(Qlt,function(){var n=n||(function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof hw<"u"&&hw.crypto&&(a=hw.crypto),!a&&typeof Ylt=="function")try{a=Jlt}catch{}var s=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||(function(){function x(){}return function(E){var _;return x.prototype=E,_=new x,x.prototype=null,_}})(),c={},d=c.lib={},h=d.Base=(function(){return{extend:function(x){var E=l(this);return x&&E.mixIn(x),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var E in x)x.hasOwnProperty(E)&&(this[E]=x[E]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),p=d.WordArray=h.extend({init:function(x,E){x=this.words=x||[],E!=i?this.sigBytes=E:this.sigBytes=x.length*4},toString:function(x){return(x||g).stringify(this)},concat:function(x){var E=this.words,_=x.words,T=this.sigBytes,D=x.sigBytes;if(this.clamp(),T%4)for(var P=0;P>>2]>>>24-P%4*8&255;E[T+P>>>2]|=M<<24-(T+P)%4*8}else for(var O=0;O>>2]=_[O>>>2];return this.sigBytes+=D,this},clamp:function(){var x=this.words,E=this.sigBytes;x[E>>>2]&=4294967295<<32-E%4*8,x.length=r.ceil(E/4)},clone:function(){var x=h.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var E=[],_=0;_>>2]>>>24-D%4*8&255;T.push((P>>>4).toString(16)),T.push((P&15).toString(16))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>3]|=parseInt(x.substr(T,2),16)<<24-T%8*4;return new p.init(_,E/2)}},y=v.Latin1={stringify:function(x){for(var E=x.words,_=x.sigBytes,T=[],D=0;D<_;D++){var P=E[D>>>2]>>>24-D%4*8&255;T.push(String.fromCharCode(P))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>2]|=(x.charCodeAt(T)&255)<<24-T%4*8;return new p.init(_,E)}},S=v.Utf8={stringify:function(x){try{return decodeURIComponent(escape(y.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return y.parse(unescape(encodeURIComponent(x)))}},k=d.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=S.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var E,_=this._data,T=_.words,D=_.sigBytes,P=this.blockSize,M=P*4,O=D/M;x?O=r.ceil(O):O=r.max((O|0)-this._minBufferSize,0);var L=O*P,B=r.min(L*4,D);if(L){for(var j=0;j>>2]|=c[p]<<24-p%4*8;s.call(this,h,d)}else s.apply(this,arguments)};l.prototype=a}})(),n.lib.WordArray})})(cE)),cE.exports}var dE={exports:{}},rut=dE.exports,Tie;function iut(){return Tie||(Tie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(rut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],v=0;v>>2]>>>16-v%4*8&65535;p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=c.charCodeAt(p)<<16-p%2*16;return a.create(h,d*2)}},s.Utf16LE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],v=0;v>>2]>>>16-v%4*8&65535);p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=l(c.charCodeAt(p)<<16-p%2*16);return a.create(h,d*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}})(),n.enc.Utf16})})(dE)),dE.exports}var fE={exports:{}},out=fE.exports,Aie;function ig(){return Aie||(Aie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(out,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Base64={stringify:function(c){var d=c.words,h=c.sigBytes,p=this._map;c.clamp();for(var v=[],g=0;g>>2]>>>24-g%4*8&255,S=d[g+1>>>2]>>>24-(g+1)%4*8&255,k=d[g+2>>>2]>>>24-(g+2)%4*8&255,C=y<<16|S<<8|k,x=0;x<4&&g+x*.75>>6*(3-x)&63));var E=p.charAt(64);if(E)for(;v.length%4;)v.push(E);return v.join("")},parse:function(c){var d=c.length,h=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var v=0;v>>6-g%4*2,k=y|S;p[v>>>2]|=k<<24-v%4*8,v++}return a.create(p,v)}})(),n.enc.Base64})})(fE)),fE.exports}var hE={exports:{}},sut=hE.exports,Iie;function aut(){return Iie||(Iie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(sut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Base64url={stringify:function(c,d){d===void 0&&(d=!0);var h=c.words,p=c.sigBytes,v=d?this._safe_map:this._map;c.clamp();for(var g=[],y=0;y>>2]>>>24-y%4*8&255,k=h[y+1>>>2]>>>24-(y+1)%4*8&255,C=h[y+2>>>2]>>>24-(y+2)%4*8&255,x=S<<16|k<<8|C,E=0;E<4&&y+E*.75>>6*(3-E)&63));var _=v.charAt(64);if(_)for(;g.length%4;)g.push(_);return g.join("")},parse:function(c,d){d===void 0&&(d=!0);var h=c.length,p=d?this._safe_map:this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var g=0;g>>6-g%4*2,k=y|S;p[v>>>2]|=k<<24-v%4*8,v++}return a.create(p,v)}})(),n.enc.Base64url})})(hE)),hE.exports}var pE={exports:{}},lut=pE.exports,Lie;function og(){return Lie||(Lie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(lut,function(n){return(function(r){var i=n,a=i.lib,s=a.WordArray,l=a.Hasher,c=i.algo,d=[];(function(){for(var S=0;S<64;S++)d[S]=r.abs(r.sin(S+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(S,k){for(var C=0;C<16;C++){var x=k+C,E=S[x];S[x]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var _=this._hash.words,T=S[k+0],D=S[k+1],P=S[k+2],M=S[k+3],O=S[k+4],L=S[k+5],B=S[k+6],j=S[k+7],H=S[k+8],U=S[k+9],K=S[k+10],Y=S[k+11],ie=S[k+12],te=S[k+13],W=S[k+14],q=S[k+15],Q=_[0],se=_[1],ae=_[2],re=_[3];Q=p(Q,se,ae,re,T,7,d[0]),re=p(re,Q,se,ae,D,12,d[1]),ae=p(ae,re,Q,se,P,17,d[2]),se=p(se,ae,re,Q,M,22,d[3]),Q=p(Q,se,ae,re,O,7,d[4]),re=p(re,Q,se,ae,L,12,d[5]),ae=p(ae,re,Q,se,B,17,d[6]),se=p(se,ae,re,Q,j,22,d[7]),Q=p(Q,se,ae,re,H,7,d[8]),re=p(re,Q,se,ae,U,12,d[9]),ae=p(ae,re,Q,se,K,17,d[10]),se=p(se,ae,re,Q,Y,22,d[11]),Q=p(Q,se,ae,re,ie,7,d[12]),re=p(re,Q,se,ae,te,12,d[13]),ae=p(ae,re,Q,se,W,17,d[14]),se=p(se,ae,re,Q,q,22,d[15]),Q=v(Q,se,ae,re,D,5,d[16]),re=v(re,Q,se,ae,B,9,d[17]),ae=v(ae,re,Q,se,Y,14,d[18]),se=v(se,ae,re,Q,T,20,d[19]),Q=v(Q,se,ae,re,L,5,d[20]),re=v(re,Q,se,ae,K,9,d[21]),ae=v(ae,re,Q,se,q,14,d[22]),se=v(se,ae,re,Q,O,20,d[23]),Q=v(Q,se,ae,re,U,5,d[24]),re=v(re,Q,se,ae,W,9,d[25]),ae=v(ae,re,Q,se,M,14,d[26]),se=v(se,ae,re,Q,H,20,d[27]),Q=v(Q,se,ae,re,te,5,d[28]),re=v(re,Q,se,ae,P,9,d[29]),ae=v(ae,re,Q,se,j,14,d[30]),se=v(se,ae,re,Q,ie,20,d[31]),Q=g(Q,se,ae,re,L,4,d[32]),re=g(re,Q,se,ae,H,11,d[33]),ae=g(ae,re,Q,se,Y,16,d[34]),se=g(se,ae,re,Q,W,23,d[35]),Q=g(Q,se,ae,re,D,4,d[36]),re=g(re,Q,se,ae,O,11,d[37]),ae=g(ae,re,Q,se,j,16,d[38]),se=g(se,ae,re,Q,K,23,d[39]),Q=g(Q,se,ae,re,te,4,d[40]),re=g(re,Q,se,ae,T,11,d[41]),ae=g(ae,re,Q,se,M,16,d[42]),se=g(se,ae,re,Q,B,23,d[43]),Q=g(Q,se,ae,re,U,4,d[44]),re=g(re,Q,se,ae,ie,11,d[45]),ae=g(ae,re,Q,se,q,16,d[46]),se=g(se,ae,re,Q,P,23,d[47]),Q=y(Q,se,ae,re,T,6,d[48]),re=y(re,Q,se,ae,j,10,d[49]),ae=y(ae,re,Q,se,W,15,d[50]),se=y(se,ae,re,Q,L,21,d[51]),Q=y(Q,se,ae,re,ie,6,d[52]),re=y(re,Q,se,ae,M,10,d[53]),ae=y(ae,re,Q,se,K,15,d[54]),se=y(se,ae,re,Q,D,21,d[55]),Q=y(Q,se,ae,re,H,6,d[56]),re=y(re,Q,se,ae,q,10,d[57]),ae=y(ae,re,Q,se,B,15,d[58]),se=y(se,ae,re,Q,te,21,d[59]),Q=y(Q,se,ae,re,O,6,d[60]),re=y(re,Q,se,ae,Y,10,d[61]),ae=y(ae,re,Q,se,P,15,d[62]),se=y(se,ae,re,Q,U,21,d[63]),_[0]=_[0]+Q|0,_[1]=_[1]+se|0,_[2]=_[2]+ae|0,_[3]=_[3]+re|0},_doFinalize:function(){var S=this._data,k=S.words,C=this._nDataBytes*8,x=S.sigBytes*8;k[x>>>5]|=128<<24-x%32;var E=r.floor(C/4294967296),_=C;k[(x+64>>>9<<4)+15]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,k[(x+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,S.sigBytes=(k.length+1)*4,this._process();for(var T=this._hash,D=T.words,P=0;P<4;P++){var M=D[P];D[P]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return T},clone:function(){var S=l.clone.call(this);return S._hash=this._hash.clone(),S}});function p(S,k,C,x,E,_,T){var D=S+(k&C|~k&x)+E+T;return(D<<_|D>>>32-_)+k}function v(S,k,C,x,E,_,T){var D=S+(k&x|C&~x)+E+T;return(D<<_|D>>>32-_)+k}function g(S,k,C,x,E,_,T){var D=S+(k^C^x)+E+T;return(D<<_|D>>>32-_)+k}function y(S,k,C,x,E,_,T){var D=S+(C^(k|~x))+E+T;return(D<<_|D>>>32-_)+k}i.MD5=l._createHelper(h),i.HmacMD5=l._createHmacHelper(h)})(Math),n.MD5})})(pE)),pE.exports}var vE={exports:{}},uut=vE.exports,Die;function Eme(){return Die||(Die=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(uut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=i.Hasher,l=r.algo,c=[],d=l.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,p){for(var v=this._hash.words,g=v[0],y=v[1],S=v[2],k=v[3],C=v[4],x=0;x<80;x++){if(x<16)c[x]=h[p+x]|0;else{var E=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=E<<1|E>>>31}var _=(g<<5|g>>>27)+C+c[x];x<20?_+=(y&S|~y&k)+1518500249:x<40?_+=(y^S^k)+1859775393:x<60?_+=(y&S|y&k|S&k)-1894007588:_+=(y^S^k)-899497514,C=k,k=S,S=y<<30|y>>>2,y=g,g=_}v[0]=v[0]+g|0,v[1]=v[1]+y|0,v[2]=v[2]+S|0,v[3]=v[3]+k|0,v[4]=v[4]+C|0},_doFinalize:function(){var h=this._data,p=h.words,v=this._nDataBytes*8,g=h.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=Math.floor(v/4294967296),p[(g+64>>>9<<4)+15]=v,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=s._createHelper(d),r.HmacSHA1=s._createHmacHelper(d)})(),n.SHA1})})(vE)),vE.exports}var mE={exports:{}},cut=mE.exports,Pie;function gW(){return Pie||(Pie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(cut,function(n){return(function(r){var i=n,a=i.lib,s=a.WordArray,l=a.Hasher,c=i.algo,d=[],h=[];(function(){function g(C){for(var x=r.sqrt(C),E=2;E<=x;E++)if(!(C%E))return!1;return!0}function y(C){return(C-(C|0))*4294967296|0}for(var S=2,k=0;k<64;)g(S)&&(k<8&&(d[k]=y(r.pow(S,1/2))),h[k]=y(r.pow(S,1/3)),k++),S++})();var p=[],v=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(d.slice(0))},_doProcessBlock:function(g,y){for(var S=this._hash.words,k=S[0],C=S[1],x=S[2],E=S[3],_=S[4],T=S[5],D=S[6],P=S[7],M=0;M<64;M++){if(M<16)p[M]=g[y+M]|0;else{var O=p[M-15],L=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,B=p[M-2],j=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;p[M]=L+p[M-7]+j+p[M-16]}var H=_&T^~_&D,U=k&C^k&x^C&x,K=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),Y=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),ie=P+Y+H+h[M]+p[M],te=K+U;P=D,D=T,T=_,_=E+ie|0,E=x,x=C,C=k,k=ie+te|0}S[0]=S[0]+k|0,S[1]=S[1]+C|0,S[2]=S[2]+x|0,S[3]=S[3]+E|0,S[4]=S[4]+_|0,S[5]=S[5]+T|0,S[6]=S[6]+D|0,S[7]=S[7]+P|0},_doFinalize:function(){var g=this._data,y=g.words,S=this._nDataBytes*8,k=g.sigBytes*8;return y[k>>>5]|=128<<24-k%32,y[(k+64>>>9<<4)+14]=r.floor(S/4294967296),y[(k+64>>>9<<4)+15]=S,g.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});i.SHA256=l._createHelper(v),i.HmacSHA256=l._createHmacHelper(v)})(Math),n.SHA256})})(mE)),mE.exports}var gE={exports:{}},dut=gE.exports,Rie;function fut(){return Rie||(Rie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),gW())})(dut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=r.algo,l=s.SHA256,c=s.SHA224=l.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=4,d}});r.SHA224=l._createHelper(c),r.HmacSHA224=l._createHmacHelper(c)})(),n.SHA224})})(gE)),gE.exports}var yE={exports:{}},hut=yE.exports,Mie;function Tme(){return Mie||(Mie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),gA())})(hut,function(n){return(function(){var r=n,i=r.lib,a=i.Hasher,s=r.x64,l=s.Word,c=s.WordArray,d=r.algo;function h(){return l.create.apply(l,arguments)}var p=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],v=[];(function(){for(var y=0;y<80;y++)v[y]=h()})();var g=d.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,S){for(var k=this._hash.words,C=k[0],x=k[1],E=k[2],_=k[3],T=k[4],D=k[5],P=k[6],M=k[7],O=C.high,L=C.low,B=x.high,j=x.low,H=E.high,U=E.low,K=_.high,Y=_.low,ie=T.high,te=T.low,W=D.high,q=D.low,Q=P.high,se=P.low,ae=M.high,re=M.low,Ce=O,Ve=L,ge=B,xe=j,Ge=H,tt=U,Ue=K,_e=Y,ve=ie,me=te,Oe=W,qe=q,Ke=Q,at=se,ft=ae,ct=re,wt=0;wt<80;wt++){var Ct,Rt,Ht=v[wt];if(wt<16)Rt=Ht.high=y[S+wt*2]|0,Ct=Ht.low=y[S+wt*2+1]|0;else{var Jt=v[wt-15],rn=Jt.high,vt=Jt.low,Fe=(rn>>>1|vt<<31)^(rn>>>8|vt<<24)^rn>>>7,Me=(vt>>>1|rn<<31)^(vt>>>8|rn<<24)^(vt>>>7|rn<<25),Ee=v[wt-2],We=Ee.high,$e=Ee.low,dt=(We>>>19|$e<<13)^(We<<3|$e>>>29)^We>>>6,Qe=($e>>>19|We<<13)^($e<<3|We>>>29)^($e>>>6|We<<26),Le=v[wt-7],ht=Le.high,Vt=Le.low,Ut=v[wt-16],Lt=Ut.high,Xt=Ut.low;Ct=Me+Vt,Rt=Fe+ht+(Ct>>>0>>0?1:0),Ct=Ct+Qe,Rt=Rt+dt+(Ct>>>0>>0?1:0),Ct=Ct+Xt,Rt=Rt+Lt+(Ct>>>0>>0?1:0),Ht.high=Rt,Ht.low=Ct}var Dn=ve&Oe^~ve&Ke,rr=me&qe^~me&at,qr=Ce&ge^Ce&Ge^ge&Ge,Wt=Ve&xe^Ve&tt^xe&tt,Yt=(Ce>>>28|Ve<<4)^(Ce<<30|Ve>>>2)^(Ce<<25|Ve>>>7),sn=(Ve>>>28|Ce<<4)^(Ve<<30|Ce>>>2)^(Ve<<25|Ce>>>7),An=(ve>>>14|me<<18)^(ve>>>18|me<<14)^(ve<<23|me>>>9),un=(me>>>14|ve<<18)^(me>>>18|ve<<14)^(me<<23|ve>>>9),Xn=p[wt],wr=Xn.high,ro=Xn.low,Ot=ct+un,bn=ft+An+(Ot>>>0>>0?1:0),Ot=Ot+rr,bn=bn+Dn+(Ot>>>0>>0?1:0),Ot=Ot+ro,bn=bn+wr+(Ot>>>0>>0?1:0),Ot=Ot+Ct,bn=bn+Rt+(Ot>>>0>>0?1:0),kr=sn+Wt,sr=Yt+qr+(kr>>>0>>0?1:0);ft=Ke,ct=at,Ke=Oe,at=qe,Oe=ve,qe=me,me=_e+Ot|0,ve=Ue+bn+(me>>>0<_e>>>0?1:0)|0,Ue=Ge,_e=tt,Ge=ge,tt=xe,ge=Ce,xe=Ve,Ve=Ot+kr|0,Ce=bn+sr+(Ve>>>0>>0?1:0)|0}L=C.low=L+Ve,C.high=O+Ce+(L>>>0>>0?1:0),j=x.low=j+xe,x.high=B+ge+(j>>>0>>0?1:0),U=E.low=U+tt,E.high=H+Ge+(U>>>0>>0?1:0),Y=_.low=Y+_e,_.high=K+Ue+(Y>>>0<_e>>>0?1:0),te=T.low=te+me,T.high=ie+ve+(te>>>0>>0?1:0),q=D.low=q+qe,D.high=W+Oe+(q>>>0>>0?1:0),se=P.low=se+at,P.high=Q+Ke+(se>>>0>>0?1:0),re=M.low=re+ct,M.high=ae+ft+(re>>>0>>0?1:0)},_doFinalize:function(){var y=this._data,S=y.words,k=this._nDataBytes*8,C=y.sigBytes*8;S[C>>>5]|=128<<24-C%32,S[(C+128>>>10<<5)+30]=Math.floor(k/4294967296),S[(C+128>>>10<<5)+31]=k,y.sigBytes=S.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});r.SHA512=a._createHelper(g),r.HmacSHA512=a._createHmacHelper(g)})(),n.SHA512})})(yE)),yE.exports}var bE={exports:{}},put=bE.exports,$ie;function vut(){return $ie||($ie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),gA(),Tme())})(put,function(n){return(function(){var r=n,i=r.x64,a=i.Word,s=i.WordArray,l=r.algo,c=l.SHA512,d=l.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var h=c._doFinalize.call(this);return h.sigBytes-=16,h}});r.SHA384=c._createHelper(d),r.HmacSHA384=c._createHmacHelper(d)})(),n.SHA384})})(bE)),bE.exports}var _E={exports:{}},mut=_E.exports,Oie;function gut(){return Oie||(Oie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),gA())})(mut,function(n){return(function(r){var i=n,a=i.lib,s=a.WordArray,l=a.Hasher,c=i.x64,d=c.Word,h=i.algo,p=[],v=[],g=[];(function(){for(var k=1,C=0,x=0;x<24;x++){p[k+5*C]=(x+1)*(x+2)/2%64;var E=C%5,_=(2*k+3*C)%5;k=E,C=_}for(var k=0;k<5;k++)for(var C=0;C<5;C++)v[k+5*C]=C+(2*k+3*C)%5*5;for(var T=1,D=0;D<24;D++){for(var P=0,M=0,O=0;O<7;O++){if(T&1){var L=(1<>>24)&16711935|(T<<24|T>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var P=x[_];P.high^=D,P.low^=T}for(var M=0;M<24;M++){for(var O=0;O<5;O++){for(var L=0,B=0,j=0;j<5;j++){var P=x[O+5*j];L^=P.high,B^=P.low}var H=y[O];H.high=L,H.low=B}for(var O=0;O<5;O++)for(var U=y[(O+4)%5],K=y[(O+1)%5],Y=K.high,ie=K.low,L=U.high^(Y<<1|ie>>>31),B=U.low^(ie<<1|Y>>>31),j=0;j<5;j++){var P=x[O+5*j];P.high^=L,P.low^=B}for(var te=1;te<25;te++){var L,B,P=x[te],W=P.high,q=P.low,Q=p[te];Q<32?(L=W<>>32-Q,B=q<>>32-Q):(L=q<>>64-Q,B=W<>>64-Q);var se=y[v[te]];se.high=L,se.low=B}var ae=y[0],re=x[0];ae.high=re.high,ae.low=re.low;for(var O=0;O<5;O++)for(var j=0;j<5;j++){var te=O+5*j,P=x[te],Ce=y[te],Ve=y[(O+1)%5+5*j],ge=y[(O+2)%5+5*j];P.high=Ce.high^~Ve.high&ge.high,P.low=Ce.low^~Ve.low&ge.low}var P=x[0],xe=g[M];P.high^=xe.high,P.low^=xe.low}},_doFinalize:function(){var k=this._data,C=k.words;this._nDataBytes*8;var x=k.sigBytes*8,E=this.blockSize*32;C[x>>>5]|=1<<24-x%32,C[(r.ceil((x+1)/E)*E>>>5)-1]|=128,k.sigBytes=C.length*4,this._process();for(var _=this._state,T=this.cfg.outputLength/8,D=T/8,P=[],M=0;M>>24)&16711935|(L<<24|L>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P.push(B),P.push(L)}return new s.init(P,T)},clone:function(){for(var k=l.clone.call(this),C=k._state=this._state.slice(0),x=0;x<25;x++)C[x]=C[x].clone();return k}});i.SHA3=l._createHelper(S),i.HmacSHA3=l._createHmacHelper(S)})(Math),n.SHA3})})(_E)),_E.exports}var SE={exports:{}},yut=SE.exports,Bie;function but(){return Bie||(Bie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(yut,function(n){/** @preserve +`):" "+Sie(s[0]):"as no adapter specified";throw new ri("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:DV};function hN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new v3(null,e)}function kie(e){return hN(e),e.headers=Lu.from(e.headers),e.data=fN.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_me.getAdapter(e.adapter||hS.adapter,e)(e).then(function(r){return hN(e),r.data=fN.call(e,e.transformResponse,r),r.headers=Lu.from(r.headers),r},function(r){return pme(r)||(hN(e),r&&r.response&&(r.response.data=fN.call(e,e.transformResponse,r.response),r.response.headers=Lu.from(r.response.headers))),Promise.reject(r)})}const Sme="1.12.0",vA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vA[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wie={};vA.transitional=function(t,n,r){function i(a,s){return"[Axios v"+Sme+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new ri(i(s," has been removed"+(n?" in "+n:"")),ri.ERR_DEPRECATED);return n&&!wie[s]&&(wie[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};vA.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function _lt(e,t,n){if(typeof e!="object")throw new ri("options must be an object",ri.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new ri("option "+a+" must be "+c,ri.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ri("Unknown option "+a,ri.ERR_BAD_OPTION)}}const aE={assertOptions:_lt,validators:vA},qd=aE.validators;let Sm=class{constructor(t){this.defaults=t||{},this.interceptors={request:new die,response:new die}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Nm(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&aE.assertOptions(r,{silentJSONParsing:qd.transitional(qd.boolean),forcedJSONParsing:qd.transitional(qd.boolean),clarifyTimeoutError:qd.transitional(qd.boolean)},!1),i!=null&&(en.isFunction(i)?n.paramsSerializer={serialize:i}:aE.assertOptions(i,{encode:qd.function,serialize:qd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),aE.assertOptions(n,{baseUrl:qd.spelling("baseURL"),withXsrfToken:qd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&en.merge(a.common,a[n.method]);a&&en.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Lu.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let h,p=0,v;if(!c){const y=[kie.bind(this),void 0];for(y.unshift(...l),y.push(...d),v=y.length,h=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(l=>{r.subscribe(l),a=l}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new v3(a,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kme(function(i){t=i}),cancel:t}}};function klt(e){return function(n){return e.apply(null,n)}}function wlt(e){return en.isObject(e)&&e.isAxiosError===!0}const PV={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(PV).forEach(([e,t])=>{PV[t]=e});function wme(e){const t=new Sm(e),n=Qve(Sm.prototype.request,t);return en.extend(n,Sm.prototype,t,{allOwnKeys:!0}),en.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return wme(Nm(e,i))},n}const uo=wme(hS);uo.Axios=Sm;uo.CanceledError=v3;uo.CancelToken=Slt;uo.isCancel=pme;uo.VERSION=Sme;uo.toFormData=pA;uo.AxiosError=ri;uo.Cancel=uo.CanceledError;uo.all=function(t){return Promise.all(t)};uo.spread=klt;uo.isAxiosError=wlt;uo.mergeConfig=Nm;uo.AxiosHeaders=Lu;uo.formToJSON=e=>hme(en.isHTMLForm(e)?new FormData(e):e);uo.getAdapter=_me.getAdapter;uo.HttpStatusCode=PV;uo.default=uo;const{Axios:xlt,AxiosError:Clt,CanceledError:Elt,isCancel:Tlt,CancelToken:Alt,VERSION:Ilt,all:Llt,Cancel:Dlt,isAxiosError:Plt,spread:Rlt,toFormData:Mlt,AxiosHeaders:Olt,HttpStatusCode:$lt,formToJSON:Blt,getAdapter:Nlt,mergeConfig:Flt}=uo,hW=Object.freeze(Object.defineProperty({__proto__:null,Axios:xlt,AxiosError:Clt,AxiosHeaders:Olt,Cancel:Dlt,CancelToken:Alt,CanceledError:Elt,HttpStatusCode:$lt,VERSION:Ilt,all:Llt,default:uo,formToJSON:Blt,getAdapter:Nlt,isAxiosError:Plt,isCancel:Tlt,mergeConfig:Flt,spread:Rlt,toFormData:Mlt},Symbol.toStringTag,{value:"Module"})),jlt=()=>{try{return(JSON.parse(localStorage.getItem("addressSettings")||"{}").apiTimeout||30)*1e3}catch(e){return console.warn("Failed to get API timeout from settings, using default:",e),3e4}},pW=()=>{try{const t=JSON.parse(localStorage.getItem("addressSettings")||"{}").apiTimeout||30;return Math.max(t*3,100)*1e3}catch(e){return console.warn("Failed to get Action timeout from settings, using default:",e),1e5}},m0={BASE_URL:"http://localhost:5707",get TIMEOUT(){return jlt()},HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},vW={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},mA={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},Vlt={SUCCESS:200},xme={DEFAULT_PAGE:1},mW=uo.create({baseURL:m0.BASE_URL,timeout:m0.TIMEOUT,headers:m0.HEADERS});mW.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.method==="get"&&(e.params={...e.params,_t:Date.now()}),console.log("API Request:",e.method?.toUpperCase(),e.url,e.params||e.data),e},e=>(console.error("Request Error:",e),Promise.reject(e)));mW.interceptors.response.use(e=>{const{data:t,status:n}=e;if(console.log("API Response:",e.config.url,t),n!==200)throw new Error(`HTTP Error: ${n}`);if(t.code&&t.code!==Vlt.SUCCESS)throw new Error(t.msg||`Business Error: ${t.code}`);return t},e=>{if(console.error("Response Error:",e),!e.response)throw new Error("网络连接失败,请检查网络设置");const{status:t}=e.response;switch(t){case 404:throw new Error("请求的资源不存在");case 500:throw new Error("服务器内部错误");case 401:throw new Error("未授权访问");case 403:throw new Error("访问被禁止");default:throw new Error(`请求失败: ${t}`)}});const gA=async(e,t={})=>{try{return await mW({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},H0=(e,t={})=>gA(e,{method:"GET",params:t}),Cme=(e,t={})=>gA(e,{method:"POST",data:t}),zlt=(e,t={})=>gA(e,{method:"PUT",data:t}),Ult=(e,t={})=>gA(e,{method:"DELETE",params:t}),yA=(e,t="")=>{const n=`${vW.PROXY}/${e}`;return t?`${n}/${t}`:n},Hlt=async(e,t="",n={})=>{const r=yA(e,t);return H0(r,n)},Wlt=async(e,t="",n={})=>{const r=yA(e,t);return Cme(r,n)},Glt=async(e,t="",n={})=>{const r=yA(e,t);return zlt(r,n)},Klt=async(e,t="",n={})=>{const r=yA(e,t);return Ult(r,n)},qlt=async(e,t="",n={})=>{const{method:r="GET",params:i,data:a}=n;switch(r.toUpperCase()){case"GET":return Hlt(e,t,i);case"POST":return Wlt(e,t,a);case"PUT":return Glt(e,t,a);case"DELETE":return Klt(e,t,i);default:throw new Error(`不支持的请求方法: ${r}`)}};var lE={exports:{}};function Ylt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var uE={exports:{}};const Xlt={},Zlt=Object.freeze(Object.defineProperty({__proto__:null,default:Xlt},Symbol.toStringTag,{value:"Module"})),Jlt=tS(Zlt);var Qlt=uE.exports,xie;function Ni(){return xie||(xie=1,(function(e,t){(function(n,r){e.exports=r()})(Qlt,function(){var n=n||(function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof pC<"u"&&pC.crypto&&(a=pC.crypto),!a&&typeof Ylt=="function")try{a=Jlt}catch{}var s=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||(function(){function x(){}return function(E){var _;return x.prototype=E,_=new x,x.prototype=null,_}})(),c={},d=c.lib={},h=d.Base=(function(){return{extend:function(x){var E=l(this);return x&&E.mixIn(x),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var E in x)x.hasOwnProperty(E)&&(this[E]=x[E]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),p=d.WordArray=h.extend({init:function(x,E){x=this.words=x||[],E!=i?this.sigBytes=E:this.sigBytes=x.length*4},toString:function(x){return(x||g).stringify(this)},concat:function(x){var E=this.words,_=x.words,T=this.sigBytes,D=x.sigBytes;if(this.clamp(),T%4)for(var P=0;P>>2]>>>24-P%4*8&255;E[T+P>>>2]|=M<<24-(T+P)%4*8}else for(var $=0;$>>2]=_[$>>>2];return this.sigBytes+=D,this},clamp:function(){var x=this.words,E=this.sigBytes;x[E>>>2]&=4294967295<<32-E%4*8,x.length=r.ceil(E/4)},clone:function(){var x=h.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var E=[],_=0;_>>2]>>>24-D%4*8&255;T.push((P>>>4).toString(16)),T.push((P&15).toString(16))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>3]|=parseInt(x.substr(T,2),16)<<24-T%8*4;return new p.init(_,E/2)}},y=v.Latin1={stringify:function(x){for(var E=x.words,_=x.sigBytes,T=[],D=0;D<_;D++){var P=E[D>>>2]>>>24-D%4*8&255;T.push(String.fromCharCode(P))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>2]|=(x.charCodeAt(T)&255)<<24-T%4*8;return new p.init(_,E)}},S=v.Utf8={stringify:function(x){try{return decodeURIComponent(escape(y.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return y.parse(unescape(encodeURIComponent(x)))}},k=d.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=S.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var E,_=this._data,T=_.words,D=_.sigBytes,P=this.blockSize,M=P*4,$=D/M;x?$=r.ceil($):$=r.max(($|0)-this._minBufferSize,0);var L=$*P,B=r.min(L*4,D);if(L){for(var j=0;j>>2]|=c[p]<<24-p%4*8;s.call(this,h,d)}else s.apply(this,arguments)};l.prototype=a}})(),n.lib.WordArray})})(dE)),dE.exports}var fE={exports:{}},rut=fE.exports,Tie;function iut(){return Tie||(Tie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(rut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],v=0;v>>2]>>>16-v%4*8&65535;p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=c.charCodeAt(p)<<16-p%2*16;return a.create(h,d*2)}},s.Utf16LE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],v=0;v>>2]>>>16-v%4*8&65535);p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=l(c.charCodeAt(p)<<16-p%2*16);return a.create(h,d*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}})(),n.enc.Utf16})})(fE)),fE.exports}var hE={exports:{}},out=hE.exports,Aie;function og(){return Aie||(Aie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(out,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Base64={stringify:function(c){var d=c.words,h=c.sigBytes,p=this._map;c.clamp();for(var v=[],g=0;g>>2]>>>24-g%4*8&255,S=d[g+1>>>2]>>>24-(g+1)%4*8&255,k=d[g+2>>>2]>>>24-(g+2)%4*8&255,w=y<<16|S<<8|k,x=0;x<4&&g+x*.75>>6*(3-x)&63));var E=p.charAt(64);if(E)for(;v.length%4;)v.push(E);return v.join("")},parse:function(c){var d=c.length,h=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var v=0;v>>6-g%4*2,k=y|S;p[v>>>2]|=k<<24-v%4*8,v++}return a.create(p,v)}})(),n.enc.Base64})})(hE)),hE.exports}var pE={exports:{}},sut=pE.exports,Iie;function aut(){return Iie||(Iie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(sut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=r.enc;s.Base64url={stringify:function(c,d){d===void 0&&(d=!0);var h=c.words,p=c.sigBytes,v=d?this._safe_map:this._map;c.clamp();for(var g=[],y=0;y>>2]>>>24-y%4*8&255,k=h[y+1>>>2]>>>24-(y+1)%4*8&255,w=h[y+2>>>2]>>>24-(y+2)%4*8&255,x=S<<16|k<<8|w,E=0;E<4&&y+E*.75>>6*(3-E)&63));var _=v.charAt(64);if(_)for(;g.length%4;)g.push(_);return g.join("")},parse:function(c,d){d===void 0&&(d=!0);var h=c.length,p=d?this._safe_map:this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var g=0;g>>6-g%4*2,k=y|S;p[v>>>2]|=k<<24-v%4*8,v++}return a.create(p,v)}})(),n.enc.Base64url})})(pE)),pE.exports}var vE={exports:{}},lut=vE.exports,Lie;function sg(){return Lie||(Lie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(lut,function(n){return(function(r){var i=n,a=i.lib,s=a.WordArray,l=a.Hasher,c=i.algo,d=[];(function(){for(var S=0;S<64;S++)d[S]=r.abs(r.sin(S+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(S,k){for(var w=0;w<16;w++){var x=k+w,E=S[x];S[x]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var _=this._hash.words,T=S[k+0],D=S[k+1],P=S[k+2],M=S[k+3],$=S[k+4],L=S[k+5],B=S[k+6],j=S[k+7],H=S[k+8],U=S[k+9],W=S[k+10],K=S[k+11],oe=S[k+12],ae=S[k+13],ee=S[k+14],Y=S[k+15],Q=_[0],ie=_[1],q=_[2],te=_[3];Q=p(Q,ie,q,te,T,7,d[0]),te=p(te,Q,ie,q,D,12,d[1]),q=p(q,te,Q,ie,P,17,d[2]),ie=p(ie,q,te,Q,M,22,d[3]),Q=p(Q,ie,q,te,$,7,d[4]),te=p(te,Q,ie,q,L,12,d[5]),q=p(q,te,Q,ie,B,17,d[6]),ie=p(ie,q,te,Q,j,22,d[7]),Q=p(Q,ie,q,te,H,7,d[8]),te=p(te,Q,ie,q,U,12,d[9]),q=p(q,te,Q,ie,W,17,d[10]),ie=p(ie,q,te,Q,K,22,d[11]),Q=p(Q,ie,q,te,oe,7,d[12]),te=p(te,Q,ie,q,ae,12,d[13]),q=p(q,te,Q,ie,ee,17,d[14]),ie=p(ie,q,te,Q,Y,22,d[15]),Q=v(Q,ie,q,te,D,5,d[16]),te=v(te,Q,ie,q,B,9,d[17]),q=v(q,te,Q,ie,K,14,d[18]),ie=v(ie,q,te,Q,T,20,d[19]),Q=v(Q,ie,q,te,L,5,d[20]),te=v(te,Q,ie,q,W,9,d[21]),q=v(q,te,Q,ie,Y,14,d[22]),ie=v(ie,q,te,Q,$,20,d[23]),Q=v(Q,ie,q,te,U,5,d[24]),te=v(te,Q,ie,q,ee,9,d[25]),q=v(q,te,Q,ie,M,14,d[26]),ie=v(ie,q,te,Q,H,20,d[27]),Q=v(Q,ie,q,te,ae,5,d[28]),te=v(te,Q,ie,q,P,9,d[29]),q=v(q,te,Q,ie,j,14,d[30]),ie=v(ie,q,te,Q,oe,20,d[31]),Q=g(Q,ie,q,te,L,4,d[32]),te=g(te,Q,ie,q,H,11,d[33]),q=g(q,te,Q,ie,K,16,d[34]),ie=g(ie,q,te,Q,ee,23,d[35]),Q=g(Q,ie,q,te,D,4,d[36]),te=g(te,Q,ie,q,$,11,d[37]),q=g(q,te,Q,ie,j,16,d[38]),ie=g(ie,q,te,Q,W,23,d[39]),Q=g(Q,ie,q,te,ae,4,d[40]),te=g(te,Q,ie,q,T,11,d[41]),q=g(q,te,Q,ie,M,16,d[42]),ie=g(ie,q,te,Q,B,23,d[43]),Q=g(Q,ie,q,te,U,4,d[44]),te=g(te,Q,ie,q,oe,11,d[45]),q=g(q,te,Q,ie,Y,16,d[46]),ie=g(ie,q,te,Q,P,23,d[47]),Q=y(Q,ie,q,te,T,6,d[48]),te=y(te,Q,ie,q,j,10,d[49]),q=y(q,te,Q,ie,ee,15,d[50]),ie=y(ie,q,te,Q,L,21,d[51]),Q=y(Q,ie,q,te,oe,6,d[52]),te=y(te,Q,ie,q,M,10,d[53]),q=y(q,te,Q,ie,W,15,d[54]),ie=y(ie,q,te,Q,D,21,d[55]),Q=y(Q,ie,q,te,H,6,d[56]),te=y(te,Q,ie,q,Y,10,d[57]),q=y(q,te,Q,ie,B,15,d[58]),ie=y(ie,q,te,Q,ae,21,d[59]),Q=y(Q,ie,q,te,$,6,d[60]),te=y(te,Q,ie,q,K,10,d[61]),q=y(q,te,Q,ie,P,15,d[62]),ie=y(ie,q,te,Q,U,21,d[63]),_[0]=_[0]+Q|0,_[1]=_[1]+ie|0,_[2]=_[2]+q|0,_[3]=_[3]+te|0},_doFinalize:function(){var S=this._data,k=S.words,w=this._nDataBytes*8,x=S.sigBytes*8;k[x>>>5]|=128<<24-x%32;var E=r.floor(w/4294967296),_=w;k[(x+64>>>9<<4)+15]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,k[(x+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,S.sigBytes=(k.length+1)*4,this._process();for(var T=this._hash,D=T.words,P=0;P<4;P++){var M=D[P];D[P]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return T},clone:function(){var S=l.clone.call(this);return S._hash=this._hash.clone(),S}});function p(S,k,w,x,E,_,T){var D=S+(k&w|~k&x)+E+T;return(D<<_|D>>>32-_)+k}function v(S,k,w,x,E,_,T){var D=S+(k&x|w&~x)+E+T;return(D<<_|D>>>32-_)+k}function g(S,k,w,x,E,_,T){var D=S+(k^w^x)+E+T;return(D<<_|D>>>32-_)+k}function y(S,k,w,x,E,_,T){var D=S+(w^(k|~x))+E+T;return(D<<_|D>>>32-_)+k}i.MD5=l._createHelper(h),i.HmacMD5=l._createHmacHelper(h)})(Math),n.MD5})})(vE)),vE.exports}var mE={exports:{}},uut=mE.exports,Die;function Eme(){return Die||(Die=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(uut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=i.Hasher,l=r.algo,c=[],d=l.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,p){for(var v=this._hash.words,g=v[0],y=v[1],S=v[2],k=v[3],w=v[4],x=0;x<80;x++){if(x<16)c[x]=h[p+x]|0;else{var E=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=E<<1|E>>>31}var _=(g<<5|g>>>27)+w+c[x];x<20?_+=(y&S|~y&k)+1518500249:x<40?_+=(y^S^k)+1859775393:x<60?_+=(y&S|y&k|S&k)-1894007588:_+=(y^S^k)-899497514,w=k,k=S,S=y<<30|y>>>2,y=g,g=_}v[0]=v[0]+g|0,v[1]=v[1]+y|0,v[2]=v[2]+S|0,v[3]=v[3]+k|0,v[4]=v[4]+w|0},_doFinalize:function(){var h=this._data,p=h.words,v=this._nDataBytes*8,g=h.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=Math.floor(v/4294967296),p[(g+64>>>9<<4)+15]=v,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=s._createHelper(d),r.HmacSHA1=s._createHmacHelper(d)})(),n.SHA1})})(mE)),mE.exports}var gE={exports:{}},cut=gE.exports,Pie;function gW(){return Pie||(Pie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(cut,function(n){return(function(r){var i=n,a=i.lib,s=a.WordArray,l=a.Hasher,c=i.algo,d=[],h=[];(function(){function g(w){for(var x=r.sqrt(w),E=2;E<=x;E++)if(!(w%E))return!1;return!0}function y(w){return(w-(w|0))*4294967296|0}for(var S=2,k=0;k<64;)g(S)&&(k<8&&(d[k]=y(r.pow(S,1/2))),h[k]=y(r.pow(S,1/3)),k++),S++})();var p=[],v=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(d.slice(0))},_doProcessBlock:function(g,y){for(var S=this._hash.words,k=S[0],w=S[1],x=S[2],E=S[3],_=S[4],T=S[5],D=S[6],P=S[7],M=0;M<64;M++){if(M<16)p[M]=g[y+M]|0;else{var $=p[M-15],L=($<<25|$>>>7)^($<<14|$>>>18)^$>>>3,B=p[M-2],j=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;p[M]=L+p[M-7]+j+p[M-16]}var H=_&T^~_&D,U=k&w^k&x^w&x,W=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),K=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),oe=P+K+H+h[M]+p[M],ae=W+U;P=D,D=T,T=_,_=E+oe|0,E=x,x=w,w=k,k=oe+ae|0}S[0]=S[0]+k|0,S[1]=S[1]+w|0,S[2]=S[2]+x|0,S[3]=S[3]+E|0,S[4]=S[4]+_|0,S[5]=S[5]+T|0,S[6]=S[6]+D|0,S[7]=S[7]+P|0},_doFinalize:function(){var g=this._data,y=g.words,S=this._nDataBytes*8,k=g.sigBytes*8;return y[k>>>5]|=128<<24-k%32,y[(k+64>>>9<<4)+14]=r.floor(S/4294967296),y[(k+64>>>9<<4)+15]=S,g.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});i.SHA256=l._createHelper(v),i.HmacSHA256=l._createHmacHelper(v)})(Math),n.SHA256})})(gE)),gE.exports}var yE={exports:{}},dut=yE.exports,Rie;function fut(){return Rie||(Rie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),gW())})(dut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=r.algo,l=s.SHA256,c=s.SHA224=l.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=4,d}});r.SHA224=l._createHelper(c),r.HmacSHA224=l._createHmacHelper(c)})(),n.SHA224})})(yE)),yE.exports}var bE={exports:{}},hut=bE.exports,Mie;function Tme(){return Mie||(Mie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),bA())})(hut,function(n){return(function(){var r=n,i=r.lib,a=i.Hasher,s=r.x64,l=s.Word,c=s.WordArray,d=r.algo;function h(){return l.create.apply(l,arguments)}var p=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],v=[];(function(){for(var y=0;y<80;y++)v[y]=h()})();var g=d.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,S){for(var k=this._hash.words,w=k[0],x=k[1],E=k[2],_=k[3],T=k[4],D=k[5],P=k[6],M=k[7],$=w.high,L=w.low,B=x.high,j=x.low,H=E.high,U=E.low,W=_.high,K=_.low,oe=T.high,ae=T.low,ee=D.high,Y=D.low,Q=P.high,ie=P.low,q=M.high,te=M.low,Se=$,Fe=L,ve=B,Re=j,Ge=H,nt=U,Ie=W,_e=K,me=oe,ge=ae,Be=ee,Ye=Y,Ke=Q,at=ie,ft=q,ct=te,Ct=0;Ct<80;Ct++){var xt,Rt,Ht=v[Ct];if(Ct<16)Rt=Ht.high=y[S+Ct*2]|0,xt=Ht.low=y[S+Ct*2+1]|0;else{var Jt=v[Ct-15],rn=Jt.high,vt=Jt.low,Ve=(rn>>>1|vt<<31)^(rn>>>8|vt<<24)^rn>>>7,Oe=(vt>>>1|rn<<31)^(vt>>>8|rn<<24)^(vt>>>7|rn<<25),Ce=v[Ct-2],We=Ce.high,$e=Ce.low,dt=(We>>>19|$e<<13)^(We<<3|$e>>>29)^We>>>6,Qe=($e>>>19|We<<13)^($e<<3|We>>>29)^($e>>>6|We<<26),Le=v[Ct-7],ht=Le.high,Vt=Le.low,Ut=v[Ct-16],Lt=Ut.high,Xt=Ut.low;xt=Oe+Vt,Rt=Ve+ht+(xt>>>0>>0?1:0),xt=xt+Qe,Rt=Rt+dt+(xt>>>0>>0?1:0),xt=xt+Xt,Rt=Rt+Lt+(xt>>>0>>0?1:0),Ht.high=Rt,Ht.low=xt}var Dn=me&Be^~me&Ke,rr=ge&Ye^~ge&at,Xr=Se&ve^Se&Ge^ve&Ge,Gt=Fe&Re^Fe&nt^Re&nt,Yt=(Se>>>28|Fe<<4)^(Se<<30|Fe>>>2)^(Se<<25|Fe>>>7),sn=(Fe>>>28|Se<<4)^(Fe<<30|Se>>>2)^(Fe<<25|Se>>>7),An=(me>>>14|ge<<18)^(me>>>18|ge<<14)^(me<<23|ge>>>9),un=(ge>>>14|me<<18)^(ge>>>18|me<<14)^(ge<<23|me>>>9),Xn=p[Ct],Cr=Xn.high,ro=Xn.low,$t=ct+un,bn=ft+An+($t>>>0>>0?1:0),$t=$t+rr,bn=bn+Dn+($t>>>0>>0?1:0),$t=$t+ro,bn=bn+Cr+($t>>>0>>0?1:0),$t=$t+xt,bn=bn+Rt+($t>>>0>>0?1:0),kr=sn+Gt,ar=Yt+Xr+(kr>>>0>>0?1:0);ft=Ke,ct=at,Ke=Be,at=Ye,Be=me,Ye=ge,ge=_e+$t|0,me=Ie+bn+(ge>>>0<_e>>>0?1:0)|0,Ie=Ge,_e=nt,Ge=ve,nt=Re,ve=Se,Re=Fe,Fe=$t+kr|0,Se=bn+ar+(Fe>>>0<$t>>>0?1:0)|0}L=w.low=L+Fe,w.high=$+Se+(L>>>0>>0?1:0),j=x.low=j+Re,x.high=B+ve+(j>>>0>>0?1:0),U=E.low=U+nt,E.high=H+Ge+(U>>>0>>0?1:0),K=_.low=K+_e,_.high=W+Ie+(K>>>0<_e>>>0?1:0),ae=T.low=ae+ge,T.high=oe+me+(ae>>>0>>0?1:0),Y=D.low=Y+Ye,D.high=ee+Be+(Y>>>0>>0?1:0),ie=P.low=ie+at,P.high=Q+Ke+(ie>>>0>>0?1:0),te=M.low=te+ct,M.high=q+ft+(te>>>0>>0?1:0)},_doFinalize:function(){var y=this._data,S=y.words,k=this._nDataBytes*8,w=y.sigBytes*8;S[w>>>5]|=128<<24-w%32,S[(w+128>>>10<<5)+30]=Math.floor(k/4294967296),S[(w+128>>>10<<5)+31]=k,y.sigBytes=S.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});r.SHA512=a._createHelper(g),r.HmacSHA512=a._createHmacHelper(g)})(),n.SHA512})})(bE)),bE.exports}var _E={exports:{}},put=_E.exports,Oie;function vut(){return Oie||(Oie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),bA(),Tme())})(put,function(n){return(function(){var r=n,i=r.x64,a=i.Word,s=i.WordArray,l=r.algo,c=l.SHA512,d=l.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var h=c._doFinalize.call(this);return h.sigBytes-=16,h}});r.SHA384=c._createHelper(d),r.HmacSHA384=c._createHmacHelper(d)})(),n.SHA384})})(_E)),_E.exports}var SE={exports:{}},mut=SE.exports,$ie;function gut(){return $ie||($ie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),bA())})(mut,function(n){return(function(r){var i=n,a=i.lib,s=a.WordArray,l=a.Hasher,c=i.x64,d=c.Word,h=i.algo,p=[],v=[],g=[];(function(){for(var k=1,w=0,x=0;x<24;x++){p[k+5*w]=(x+1)*(x+2)/2%64;var E=w%5,_=(2*k+3*w)%5;k=E,w=_}for(var k=0;k<5;k++)for(var w=0;w<5;w++)v[k+5*w]=w+(2*k+3*w)%5*5;for(var T=1,D=0;D<24;D++){for(var P=0,M=0,$=0;$<7;$++){if(T&1){var L=(1<<$)-1;L<32?M^=1<>>24)&16711935|(T<<24|T>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var P=x[_];P.high^=D,P.low^=T}for(var M=0;M<24;M++){for(var $=0;$<5;$++){for(var L=0,B=0,j=0;j<5;j++){var P=x[$+5*j];L^=P.high,B^=P.low}var H=y[$];H.high=L,H.low=B}for(var $=0;$<5;$++)for(var U=y[($+4)%5],W=y[($+1)%5],K=W.high,oe=W.low,L=U.high^(K<<1|oe>>>31),B=U.low^(oe<<1|K>>>31),j=0;j<5;j++){var P=x[$+5*j];P.high^=L,P.low^=B}for(var ae=1;ae<25;ae++){var L,B,P=x[ae],ee=P.high,Y=P.low,Q=p[ae];Q<32?(L=ee<>>32-Q,B=Y<>>32-Q):(L=Y<>>64-Q,B=ee<>>64-Q);var ie=y[v[ae]];ie.high=L,ie.low=B}var q=y[0],te=x[0];q.high=te.high,q.low=te.low;for(var $=0;$<5;$++)for(var j=0;j<5;j++){var ae=$+5*j,P=x[ae],Se=y[ae],Fe=y[($+1)%5+5*j],ve=y[($+2)%5+5*j];P.high=Se.high^~Fe.high&ve.high,P.low=Se.low^~Fe.low&ve.low}var P=x[0],Re=g[M];P.high^=Re.high,P.low^=Re.low}},_doFinalize:function(){var k=this._data,w=k.words;this._nDataBytes*8;var x=k.sigBytes*8,E=this.blockSize*32;w[x>>>5]|=1<<24-x%32,w[(r.ceil((x+1)/E)*E>>>5)-1]|=128,k.sigBytes=w.length*4,this._process();for(var _=this._state,T=this.cfg.outputLength/8,D=T/8,P=[],M=0;M>>24)&16711935|(L<<24|L>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P.push(B),P.push(L)}return new s.init(P,T)},clone:function(){for(var k=l.clone.call(this),w=k._state=this._state.slice(0),x=0;x<25;x++)w[x]=w[x].clone();return k}});i.SHA3=l._createHelper(S),i.HmacSHA3=l._createHmacHelper(S)})(Math),n.SHA3})})(SE)),SE.exports}var kE={exports:{}},yut=kE.exports,Bie;function but(){return Bie||(Bie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(yut,function(n){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -38,15 +38,15 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LocalBookReader - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return(function(r){var i=n,a=i.lib,s=a.WordArray,l=a.Hasher,c=i.algo,d=s.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]),h=s.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]),p=s.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]),v=s.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]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),S=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(D,P){for(var M=0;M<16;M++){var O=P+M,L=D[O];D[O]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}var B=this._hash.words,j=g.words,H=y.words,U=d.words,K=h.words,Y=p.words,ie=v.words,te,W,q,Q,se,ae,re,Ce,Ve,ge;ae=te=B[0],re=W=B[1],Ce=q=B[2],Ve=Q=B[3],ge=se=B[4];for(var xe,M=0;M<80;M+=1)xe=te+D[P+U[M]]|0,M<16?xe+=k(W,q,Q)+j[0]:M<32?xe+=C(W,q,Q)+j[1]:M<48?xe+=x(W,q,Q)+j[2]:M<64?xe+=E(W,q,Q)+j[3]:xe+=_(W,q,Q)+j[4],xe=xe|0,xe=T(xe,Y[M]),xe=xe+se|0,te=se,se=Q,Q=T(q,10),q=W,W=xe,xe=ae+D[P+K[M]]|0,M<16?xe+=_(re,Ce,Ve)+H[0]:M<32?xe+=E(re,Ce,Ve)+H[1]:M<48?xe+=x(re,Ce,Ve)+H[2]:M<64?xe+=C(re,Ce,Ve)+H[3]:xe+=k(re,Ce,Ve)+H[4],xe=xe|0,xe=T(xe,ie[M]),xe=xe+ge|0,ae=ge,ge=Ve,Ve=T(Ce,10),Ce=re,re=xe;xe=B[1]+q+Ve|0,B[1]=B[2]+Q+ge|0,B[2]=B[3]+se+ae|0,B[3]=B[4]+te+re|0,B[4]=B[0]+W+Ce|0,B[0]=xe},_doFinalize:function(){var D=this._data,P=D.words,M=this._nDataBytes*8,O=D.sigBytes*8;P[O>>>5]|=128<<24-O%32,P[(O+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,D.sigBytes=(P.length+1)*4,this._process();for(var L=this._hash,B=L.words,j=0;j<5;j++){var H=B[j];B[j]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return L},clone:function(){var D=l.clone.call(this);return D._hash=this._hash.clone(),D}});function k(D,P,M){return D^P^M}function C(D,P,M){return D&P|~D&M}function x(D,P,M){return(D|~P)^M}function E(D,P,M){return D&M|P&~M}function _(D,P,M){return D^(P|~M)}function T(D,P){return D<>>32-P}i.RIPEMD160=l._createHelper(S),i.HmacRIPEMD160=l._createHmacHelper(S)})(),n.RIPEMD160})})(SE)),SE.exports}var kE={exports:{}},_ut=kE.exports,Nie;function yW(){return Nie||(Nie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(_ut,function(n){(function(){var r=n,i=r.lib,a=i.Base,s=r.enc,l=s.Utf8,c=r.algo;c.HMAC=a.extend({init:function(d,h){d=this._hasher=new d.init,typeof h=="string"&&(h=l.parse(h));var p=d.blockSize,v=p*4;h.sigBytes>v&&(h=d.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),y=this._iKey=h.clone(),S=g.words,k=y.words,C=0;C>>2]&255;L.sigBytes-=B}};a.BlockCipher=g.extend({cfg:g.cfg.extend({mode:k,padding:x}),reset:function(){var L;g.reset.call(this);var B=this.cfg,j=B.iv,H=B.mode;this._xformMode==this._ENC_XFORM_MODE?L=H.createEncryptor:(L=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==L?this._mode.init(this,j&&j.words):(this._mode=L.call(H,this,j&&j.words),this._mode.__creator=L)},_doProcessBlock:function(L,B){this._mode.processBlock(L,B)},_doFinalize:function(){var L,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),L=this._process(!0)):(L=this._process(!0),B.unpad(L)),L},blockSize:128/32});var E=a.CipherParams=s.extend({init:function(L){this.mixIn(L)},toString:function(L){return(L||this.formatter).stringify(this)}}),_=i.format={},T=_.OpenSSL={stringify:function(L){var B,j=L.ciphertext,H=L.salt;return H?B=l.create([1398893684,1701076831]).concat(H).concat(j):B=j,B.toString(h)},parse:function(L){var B,j=h.parse(L),H=j.words;return H[0]==1398893684&&H[1]==1701076831&&(B=l.create(H.slice(2,4)),H.splice(0,4),j.sigBytes-=16),E.create({ciphertext:j,salt:B})}},D=a.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(L,B,j,H){H=this.cfg.extend(H);var U=L.createEncryptor(j,H),K=U.finalize(B),Y=U.cfg;return E.create({ciphertext:K,key:j,iv:Y.iv,algorithm:L,mode:Y.mode,padding:Y.padding,blockSize:L.blockSize,formatter:H.format})},decrypt:function(L,B,j,H){H=this.cfg.extend(H),B=this._parse(B,H.format);var U=L.createDecryptor(j,H).finalize(B.ciphertext);return U},_parse:function(L,B){return typeof L=="string"?B.parse(L,this):L}}),P=i.kdf={},M=P.OpenSSL={execute:function(L,B,j,H,U){if(H||(H=l.random(64/8)),U)var K=v.create({keySize:B+j,hasher:U}).compute(L,H);else var K=v.create({keySize:B+j}).compute(L,H);var Y=l.create(K.words.slice(B),j*4);return K.sigBytes=B*4,E.create({key:K,iv:Y,salt:H})}},O=a.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:M}),encrypt:function(L,B,j,H){H=this.cfg.extend(H);var U=H.kdf.execute(j,L.keySize,L.ivSize,H.salt,H.hasher);H.iv=U.iv;var K=D.encrypt.call(this,L,B,U.key,H);return K.mixIn(U),K},decrypt:function(L,B,j,H){H=this.cfg.extend(H),B=this._parse(B,H.format);var U=H.kdf.execute(j,L.keySize,L.ivSize,B.salt,H.hasher);H.iv=U.iv;var K=D.decrypt.call(this,L,B,U.key,H);return K}})})()})})(wE)),wE.exports}var EE={exports:{}},wut=EE.exports,zie;function Eut(){return zie||(zie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(wut,function(n){return n.mode.CFB=(function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize;i.call(this,a,s,c,l),this._prevBlock=a.slice(s,s+c)}}),r.Decryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize,d=a.slice(s,s+c);i.call(this,a,s,c,l),this._prevBlock=d}});function i(a,s,l,c){var d,h=this._iv;h?(d=h.slice(0),this._iv=void 0):d=this._prevBlock,c.encryptBlock(d,0);for(var p=0;p>>24)&16711935|(L<<24|L>>>8)&4278255360}var B=this._hash.words,j=g.words,H=y.words,U=d.words,W=h.words,K=p.words,oe=v.words,ae,ee,Y,Q,ie,q,te,Se,Fe,ve;q=ae=B[0],te=ee=B[1],Se=Y=B[2],Fe=Q=B[3],ve=ie=B[4];for(var Re,M=0;M<80;M+=1)Re=ae+D[P+U[M]]|0,M<16?Re+=k(ee,Y,Q)+j[0]:M<32?Re+=w(ee,Y,Q)+j[1]:M<48?Re+=x(ee,Y,Q)+j[2]:M<64?Re+=E(ee,Y,Q)+j[3]:Re+=_(ee,Y,Q)+j[4],Re=Re|0,Re=T(Re,K[M]),Re=Re+ie|0,ae=ie,ie=Q,Q=T(Y,10),Y=ee,ee=Re,Re=q+D[P+W[M]]|0,M<16?Re+=_(te,Se,Fe)+H[0]:M<32?Re+=E(te,Se,Fe)+H[1]:M<48?Re+=x(te,Se,Fe)+H[2]:M<64?Re+=w(te,Se,Fe)+H[3]:Re+=k(te,Se,Fe)+H[4],Re=Re|0,Re=T(Re,oe[M]),Re=Re+ve|0,q=ve,ve=Fe,Fe=T(Se,10),Se=te,te=Re;Re=B[1]+Y+Fe|0,B[1]=B[2]+Q+ve|0,B[2]=B[3]+ie+q|0,B[3]=B[4]+ae+te|0,B[4]=B[0]+ee+Se|0,B[0]=Re},_doFinalize:function(){var D=this._data,P=D.words,M=this._nDataBytes*8,$=D.sigBytes*8;P[$>>>5]|=128<<24-$%32,P[($+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,D.sigBytes=(P.length+1)*4,this._process();for(var L=this._hash,B=L.words,j=0;j<5;j++){var H=B[j];B[j]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return L},clone:function(){var D=l.clone.call(this);return D._hash=this._hash.clone(),D}});function k(D,P,M){return D^P^M}function w(D,P,M){return D&P|~D&M}function x(D,P,M){return(D|~P)^M}function E(D,P,M){return D&M|P&~M}function _(D,P,M){return D^(P|~M)}function T(D,P){return D<>>32-P}i.RIPEMD160=l._createHelper(S),i.HmacRIPEMD160=l._createHmacHelper(S)})(),n.RIPEMD160})})(kE)),kE.exports}var wE={exports:{}},_ut=wE.exports,Nie;function yW(){return Nie||(Nie=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(_ut,function(n){(function(){var r=n,i=r.lib,a=i.Base,s=r.enc,l=s.Utf8,c=r.algo;c.HMAC=a.extend({init:function(d,h){d=this._hasher=new d.init,typeof h=="string"&&(h=l.parse(h));var p=d.blockSize,v=p*4;h.sigBytes>v&&(h=d.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),y=this._iKey=h.clone(),S=g.words,k=y.words,w=0;w>>2]&255;L.sigBytes-=B}};a.BlockCipher=g.extend({cfg:g.cfg.extend({mode:k,padding:x}),reset:function(){var L;g.reset.call(this);var B=this.cfg,j=B.iv,H=B.mode;this._xformMode==this._ENC_XFORM_MODE?L=H.createEncryptor:(L=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==L?this._mode.init(this,j&&j.words):(this._mode=L.call(H,this,j&&j.words),this._mode.__creator=L)},_doProcessBlock:function(L,B){this._mode.processBlock(L,B)},_doFinalize:function(){var L,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),L=this._process(!0)):(L=this._process(!0),B.unpad(L)),L},blockSize:128/32});var E=a.CipherParams=s.extend({init:function(L){this.mixIn(L)},toString:function(L){return(L||this.formatter).stringify(this)}}),_=i.format={},T=_.OpenSSL={stringify:function(L){var B,j=L.ciphertext,H=L.salt;return H?B=l.create([1398893684,1701076831]).concat(H).concat(j):B=j,B.toString(h)},parse:function(L){var B,j=h.parse(L),H=j.words;return H[0]==1398893684&&H[1]==1701076831&&(B=l.create(H.slice(2,4)),H.splice(0,4),j.sigBytes-=16),E.create({ciphertext:j,salt:B})}},D=a.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(L,B,j,H){H=this.cfg.extend(H);var U=L.createEncryptor(j,H),W=U.finalize(B),K=U.cfg;return E.create({ciphertext:W,key:j,iv:K.iv,algorithm:L,mode:K.mode,padding:K.padding,blockSize:L.blockSize,formatter:H.format})},decrypt:function(L,B,j,H){H=this.cfg.extend(H),B=this._parse(B,H.format);var U=L.createDecryptor(j,H).finalize(B.ciphertext);return U},_parse:function(L,B){return typeof L=="string"?B.parse(L,this):L}}),P=i.kdf={},M=P.OpenSSL={execute:function(L,B,j,H,U){if(H||(H=l.random(64/8)),U)var W=v.create({keySize:B+j,hasher:U}).compute(L,H);else var W=v.create({keySize:B+j}).compute(L,H);var K=l.create(W.words.slice(B),j*4);return W.sigBytes=B*4,E.create({key:W,iv:K,salt:H})}},$=a.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:M}),encrypt:function(L,B,j,H){H=this.cfg.extend(H);var U=H.kdf.execute(j,L.keySize,L.ivSize,H.salt,H.hasher);H.iv=U.iv;var W=D.encrypt.call(this,L,B,U.key,H);return W.mixIn(U),W},decrypt:function(L,B,j,H){H=this.cfg.extend(H),B=this._parse(B,H.format);var U=H.kdf.execute(j,L.keySize,L.ivSize,B.salt,H.hasher);H.iv=U.iv;var W=D.decrypt.call(this,L,B,U.key,H);return W}})})()})})(EE)),EE.exports}var TE={exports:{}},Cut=TE.exports,zie;function Eut(){return zie||(zie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Cut,function(n){return n.mode.CFB=(function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize;i.call(this,a,s,c,l),this._prevBlock=a.slice(s,s+c)}}),r.Decryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize,d=a.slice(s,s+c);i.call(this,a,s,c,l),this._prevBlock=d}});function i(a,s,l,c){var d,h=this._iv;h?(d=h.slice(0),this._iv=void 0):d=this._prevBlock,c.encryptBlock(d,0);for(var p=0;p>24&255)===255){var c=l>>16&255,d=l>>8&255,h=l&255;c===255?(c=0,d===255?(d=0,h===255?h=0:++h):++d):++c,l=0,l+=c<<16,l+=d<<8,l+=h}else l+=1<<24;return l}function a(l){return(l[0]=i(l[0]))===0&&(l[1]=i(l[1])),l}var s=r.Encryptor=r.extend({processBlock:function(l,c){var d=this._cipher,h=d.blockSize,p=this._iv,v=this._counter;p&&(v=this._counter=p.slice(0),this._iv=void 0),a(v);var g=v.slice(0);d.encryptBlock(g,0);for(var y=0;y>>2]|=l<<24-c%4*8,r.sigBytes+=l},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})})(DE)),DE.exports}var PE={exports:{}},But=PE.exports,qie;function Nut(){return qie||(qie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(But,function(n){return n.pad.Iso10126={pad:function(r,i){var a=i*4,s=a-r.sigBytes%a;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})})(PE)),PE.exports}var RE={exports:{}},Fut=RE.exports,Yie;function jut(){return Yie||(Yie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Fut,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})})(RE)),RE.exports}var ME={exports:{}},Vut=ME.exports,Xie;function zut(){return Xie||(Xie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Vut,function(n){return n.pad.ZeroPadding={pad:function(r,i){var a=i*4;r.clamp(),r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){for(var i=r.words,a=r.sigBytes-1,a=r.sigBytes-1;a>=0;a--)if(i[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}},n.pad.ZeroPadding})})(ME)),ME.exports}var $E={exports:{}},Uut=$E.exports,Zie;function Hut(){return Zie||(Zie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Uut,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})($E)),$E.exports}var OE={exports:{}},Wut=OE.exports,Jie;function Gut(){return Jie||(Jie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Wut,function(n){return(function(r){var i=n,a=i.lib,s=a.CipherParams,l=i.enc,c=l.Hex,d=i.format;d.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var p=c.parse(h);return s.create({ciphertext:p})}}})(),n.format.Hex})})(OE)),OE.exports}var BE={exports:{}},Kut=BE.exports,Qie;function qut(){return Qie||(Qie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),ig(),og(),z0(),Ia())})(Kut,function(n){return(function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo,l=[],c=[],d=[],h=[],p=[],v=[],g=[],y=[],S=[],k=[];(function(){for(var E=[],_=0;_<256;_++)_<128?E[_]=_<<1:E[_]=_<<1^283;for(var T=0,D=0,_=0;_<256;_++){var P=D^D<<1^D<<2^D<<3^D<<4;P=P>>>8^P&255^99,l[T]=P,c[P]=T;var M=E[T],O=E[M],L=E[O],B=E[P]*257^P*16843008;d[T]=B<<24|B>>>8,h[T]=B<<16|B>>>16,p[T]=B<<8|B>>>24,v[T]=B;var B=L*16843009^O*65537^M*257^T*16843008;g[P]=B<<24|B>>>8,y[P]=B<<16|B>>>16,S[P]=B<<8|B>>>24,k[P]=B,T?(T=M^E[E[E[L^M]]],D^=E[E[D]]):T=D=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=a.extend({_doReset:function(){var E;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,T=_.words,D=_.sigBytes/4,P=this._nRounds=D+6,M=(P+1)*4,O=this._keySchedule=[],L=0;L6&&L%D==4&&(E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255]):(E=E<<8|E>>>24,E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255],E^=C[L/D|0]<<24),O[L]=O[L-D]^E);for(var B=this._invKeySchedule=[],j=0;j>>24]]^y[l[E>>>16&255]]^S[l[E>>>8&255]]^k[l[E&255]]}}},encryptBlock:function(E,_){this._doCryptBlock(E,_,this._keySchedule,d,h,p,v,l)},decryptBlock:function(E,_){var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T,this._doCryptBlock(E,_,this._invKeySchedule,g,y,S,k,c);var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T},_doCryptBlock:function(E,_,T,D,P,M,O,L){for(var B=this._nRounds,j=E[_]^T[0],H=E[_+1]^T[1],U=E[_+2]^T[2],K=E[_+3]^T[3],Y=4,ie=1;ie>>24]^P[H>>>16&255]^M[U>>>8&255]^O[K&255]^T[Y++],W=D[H>>>24]^P[U>>>16&255]^M[K>>>8&255]^O[j&255]^T[Y++],q=D[U>>>24]^P[K>>>16&255]^M[j>>>8&255]^O[H&255]^T[Y++],Q=D[K>>>24]^P[j>>>16&255]^M[H>>>8&255]^O[U&255]^T[Y++];j=te,H=W,U=q,K=Q}var te=(L[j>>>24]<<24|L[H>>>16&255]<<16|L[U>>>8&255]<<8|L[K&255])^T[Y++],W=(L[H>>>24]<<24|L[U>>>16&255]<<16|L[K>>>8&255]<<8|L[j&255])^T[Y++],q=(L[U>>>24]<<24|L[K>>>16&255]<<16|L[j>>>8&255]<<8|L[H&255])^T[Y++],Q=(L[K>>>24]<<24|L[j>>>16&255]<<16|L[H>>>8&255]<<8|L[U&255])^T[Y++];E[_]=te,E[_+1]=W,E[_+2]=q,E[_+3]=Q},keySize:256/32});r.AES=a._createHelper(x)})(),n.AES})})(BE)),BE.exports}var NE={exports:{}},Yut=NE.exports,eoe;function Xut(){return eoe||(eoe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),ig(),og(),z0(),Ia())})(Yut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=i.BlockCipher,l=r.algo,c=[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],d=[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],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{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}],v=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var C=this._key,x=C.words,E=[],_=0;_<56;_++){var T=c[_]-1;E[_]=x[T>>>5]>>>31-T%32&1}for(var D=this._subKeys=[],P=0;P<16;P++){for(var M=D[P]=[],O=h[P],_=0;_<24;_++)M[_/6|0]|=E[(d[_]-1+O)%28]<<31-_%6,M[4+(_/6|0)]|=E[28+(d[_+24]-1+O)%28]<<31-_%6;M[0]=M[0]<<1|M[0]>>>31;for(var _=1;_<7;_++)M[_]=M[_]>>>(_-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var L=this._invSubKeys=[],_=0;_<16;_++)L[_]=D[15-_]},encryptBlock:function(C,x){this._doCryptBlock(C,x,this._subKeys)},decryptBlock:function(C,x){this._doCryptBlock(C,x,this._invSubKeys)},_doCryptBlock:function(C,x,E){this._lBlock=C[x],this._rBlock=C[x+1],y.call(this,4,252645135),y.call(this,16,65535),S.call(this,2,858993459),S.call(this,8,16711935),y.call(this,1,1431655765);for(var _=0;_<16;_++){for(var T=E[_],D=this._lBlock,P=this._rBlock,M=0,O=0;O<8;O++)M|=p[O][((P^T[O])&v[O])>>>0];this._lBlock=P,this._rBlock=D^M}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,y.call(this,1,1431655765),S.call(this,8,16711935),S.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),C[x]=this._lBlock,C[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(C,x){var E=(this._lBlock>>>C^this._rBlock)&x;this._rBlock^=E,this._lBlock^=E<>>C^this._lBlock)&x;this._lBlock^=E,this._rBlock^=E<192.");var E=x.slice(0,2),_=x.length<4?x.slice(0,2):x.slice(2,4),T=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=g.createEncryptor(a.create(E)),this._des2=g.createEncryptor(a.create(_)),this._des3=g.createEncryptor(a.create(T))},encryptBlock:function(C,x){this._des1.encryptBlock(C,x),this._des2.decryptBlock(C,x),this._des3.encryptBlock(C,x)},decryptBlock:function(C,x){this._des3.decryptBlock(C,x),this._des2.encryptBlock(C,x),this._des1.decryptBlock(C,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(k)})(),n.TripleDES})})(NE)),NE.exports}var FE={exports:{}},Zut=FE.exports,toe;function Jut(){return toe||(toe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),ig(),og(),z0(),Ia())})(Zut,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=s.RC4=a.extend({_doReset:function(){for(var h=this._key,p=h.words,v=h.sigBytes,g=this._S=[],y=0;y<256;y++)g[y]=y;for(var y=0,S=0;y<256;y++){var k=y%v,C=p[k>>>2]>>>24-k%4*8&255;S=(S+g[y]+C)%256;var x=g[y];g[y]=g[S],g[S]=x}this._i=this._j=0},_doProcessBlock:function(h,p){h[p]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,p=this._i,v=this._j,g=0,y=0;y<4;y++){p=(p+1)%256,v=(v+h[p])%256;var S=h[p];h[p]=h[v],h[v]=S,g|=h[(h[p]+h[v])%256]<<24-y*8}return this._i=p,this._j=v,g}r.RC4=a._createHelper(l);var d=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)c.call(this)}});r.RC4Drop=a._createHelper(d)})(),n.RC4})})(FE)),FE.exports}var jE={exports:{}},Qut=jE.exports,noe;function ect(){return noe||(noe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),ig(),og(),z0(),Ia())})(Qut,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.Rabbit=a.extend({_doReset:function(){for(var v=this._key.words,g=this.cfg.iv,y=0;y<4;y++)v[y]=(v[y]<<8|v[y]>>>24)&16711935|(v[y]<<24|v[y]>>>8)&4278255360;var S=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],k=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)k[y]^=S[y+4&7];if(g){var C=g.words,x=C[0],E=C[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;k[0]^=_,k[1]^=D,k[2]^=T,k[3]^=P,k[4]^=_,k[5]^=D,k[6]^=T,k[7]^=P;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(v,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=v[y]+g[y],k=S&65535,C=S>>>16,x=((k*k>>>17)+k*C>>>15)+C*C,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.Rabbit=a._createHelper(h)})(),n.Rabbit})})(jE)),jE.exports}var VE={exports:{}},tct=VE.exports,roe;function nct(){return roe||(roe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),ig(),og(),z0(),Ia())})(tct,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.RabbitLegacy=a.extend({_doReset:function(){var v=this._key.words,g=this.cfg.iv,y=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],S=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var k=0;k<4;k++)p.call(this);for(var k=0;k<8;k++)S[k]^=y[k+4&7];if(g){var C=g.words,x=C[0],E=C[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;S[0]^=_,S[1]^=D,S[2]^=T,S[3]^=P,S[4]^=_,S[5]^=D,S[6]^=T,S[7]^=P;for(var k=0;k<4;k++)p.call(this)}},_doProcessBlock:function(v,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=v[y]+g[y],k=S&65535,C=S>>>16,x=((k*k>>>17)+k*C>>>15)+C*C,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.RabbitLegacy=a._createHelper(h)})(),n.RabbitLegacy})})(VE)),VE.exports}var zE={exports:{}},rct=zE.exports,ioe;function ict(){return ioe||(ioe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),ig(),og(),z0(),Ia())})(rct,function(n){return(function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo;const l=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[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 h={pbox:[],sbox:[]};function p(k,C){let x=C>>24&255,E=C>>16&255,_=C>>8&255,T=C&255,D=k.sbox[0][x]+k.sbox[1][E];return D=D^k.sbox[2][_],D=D+k.sbox[3][T],D}function v(k,C,x){let E=C,_=x,T;for(let D=0;D1;--D)E=E^k.pbox[D],_=p(k,E)^_,T=E,E=_,_=T;return T=E,E=_,_=T,_=_^k.pbox[1],E=E^k.pbox[0],{left:E,right:_}}function y(k,C,x){for(let P=0;P<4;P++){k.sbox[P]=[];for(let M=0;M<256;M++)k.sbox[P][M]=d[P][M]}let E=0;for(let P=0;P=x&&(E=0);let _=0,T=0,D=0;for(let P=0;Psoe.enc.Base64.stringify(soe.enc.Utf8.parse(e)),lct=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return Ame(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},Tp=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),uct=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},cct={NORMAL:"normal"},dct=()=>({vod_id:"",vod_name:"",vod_pic:"",vod_remarks:"",vod_content:"",vod_play_from:"",vod_play_url:"",vod_time:"",vod_year:"",vod_area:"",vod_lang:"",vod_actor:"",vod_director:"",vod_writer:"",vod_blurb:"",vod_class:"",vod_tag:"",vod_score:"",vod_hits:0,vod_duration:"",vod_total:0,vod_serial:0,vod_tv:"",vod_weekday:"",vod_status:cct.NORMAL}),fct=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),hct=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:"",more:null});class pct{constructor(){this.configUrl=null,this.configData=null,this.lastFetchTime=null,this.cacheExpiry=300*1e3,this.liveConfigUrl=null,this.loadConfigFromStorage()}async setConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("配置地址格式不正确,请输入有效的HTTP/HTTPS地址");if(!await this.validateConfigUrl(t))throw new Error("配置地址无法访问或数据格式不正确");return this.configUrl=t,this.saveConfigToStorage(),await this.autoSetLiveConfigUrl(),console.log("配置地址设置成功:",t),!0}catch(n){throw console.error("设置配置地址失败:",n),n}}async setLiveConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("直播配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("直播配置地址格式不正确,请输入有效的HTTP/HTTPS地址");return this.liveConfigUrl=t,this.saveConfigToStorage(),console.log("直播配置地址设置成功:",t),!0}catch(n){throw console.error("设置直播配置地址失败:",n),n}}getLiveConfigUrl(){return this.liveConfigUrl}async autoSetLiveConfigUrl(){try{if(this.liveConfigUrl)return!1;const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("自动设置直播配置地址成功:",n.url),!0)}catch(t){return console.error("自动设置直播配置地址失败:",t),!1}}async resetLiveConfigUrl(){try{const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接,无法重置"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url,无法重置"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("直播配置地址重置成功:",n.url),!0)}catch(t){return console.error("重置直播配置地址失败:",t),!1}}getConfigUrl(){return this.configUrl}async validateConfigUrl(t){try{const n=await uo.get(t,{timeout:1e4,headers:{Accept:"application/json"}});if(!n.data)return!1;const r=n.data;if(!r.sites||!Array.isArray(r.sites))return!1;if(r.sites.length>0){const i=r.sites[0];if(!i.key||!i.name||!i.api)return!1}return!0}catch(n){return console.error("验证配置地址失败:",n),!1}}async getConfigData(t=!1){try{if(!this.configUrl)throw new Error("未设置配置地址");const n=Date.now(),r=this.configData&&this.lastFetchTime&&n-this.lastFetchTime{try{this.addSite(r)?n.success++:(n.failed++,n.errors.push(`第${i+1}个站点添加失败`))}catch(a){n.failed++,n.errors.push(`第${i+1}个站点添加失败: ${a.message}`)}}),console.log("批量导入站点完成:",n),n}exportSites(){return this.getAllSites()}async testSiteConnection(t){const n=this.sites.get(t);if(!n)throw new Error("站点不存在");try{const r=await qlt(n.key,"",{method:"GET",params:{test:!0}});return{success:!0,message:"连接成功",responseTime:Date.now(),data:r}}catch(r){return{success:!1,message:r.message||"连接失败",error:r}}}getSiteStats(){const t=this.getAllSites();return{total:t.length,searchable:t.filter(n=>n.searchable).length,filterable:t.filter(n=>n.filterable).length,quickSearch:t.filter(n=>n.quickSearch).length,byType:this.groupSitesByType(t)}}groupSitesByType(t){const n={};return t.forEach(r=>{const i=r.type||0;n[i]||(n[i]=[]),n[i].push(r)}),n}searchSites(t){if(!t||t.trim().length===0)return this.getAllSites();const n=t.trim().toLowerCase();return this.getAllSites().filter(r=>r.name.toLowerCase().includes(n)||r.key.toLowerCase().includes(n)||r.api&&r.api.toLowerCase().includes(n))}formatSiteInfo(t){const n=hct();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n.searchable=t.searchable?1:0,n.quickSearch=t.quickSearch?1:0,n.filterable=t.filterable?1:0,n.type=parseInt(t.type)||0,n.order=parseInt(t.order)||0,n}loadSitesFromStorage(){try{const t=localStorage.getItem("drplayer_sites"),n=localStorage.getItem("drplayer_current_site");t&&JSON.parse(t).forEach(i=>{this.sites.set(i.key,i)}),n&&(this.currentSite=this.sites.get(n)),console.log("从本地存储加载站点配置成功")}catch(t){console.error("加载站点配置失败:",t)}}saveSitesToStorage(){try{const t=this.getAllSites();localStorage.setItem("drplayer_sites",JSON.stringify(t)),this.currentSite?localStorage.setItem("drplayer_current_site",this.currentSite.key):localStorage.removeItem("drplayer_current_site"),console.log("保存站点配置到本地存储成功")}catch(t){console.error("保存站点配置失败:",t)}}emitSiteChange(t){console.log("站点已切换:",t.name),typeof window<"u"&&window.dispatchEvent(new CustomEvent("siteChange",{detail:{site:t}}))}clearAllSites(){this.sites.clear(),this.currentSite=null,this.saveSitesToStorage(),console.log("已清空所有站点配置")}async initializeFromConfig(){try{yl.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await yl.getSites(t);if(n&&n.length>0){const r=this.currentSite,i=Array.from(this.sites.values()).filter(a=>a.isLocal);return this.sites.clear(),i.forEach(a=>{this.sites.set(a.key,a)}),n.forEach(a=>{const s=this.formatSiteInfo(a);s.isFromConfig=!0,this.sites.set(s.key,s)}),this.handleSmartSiteSwitch(r),this.saveSitesToStorage(),console.log(`从配置加载了 ${n.length} 个站点`),this.emitSitesUpdate(),n}return[]}catch(n){throw console.error("从配置加载站点失败:",n),n}}async refreshConfig(){try{return await this.loadSitesFromConfig(!0)}catch(t){throw console.error("刷新配置失败:",t),t}}getConfigStatus(){return yl.getConfigStatus()}async setConfigUrl(t){try{const n=await yl.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return yl.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}handleSmartSiteSwitch(t){let n=!1;if(t&&t.key)if(this.sites.has(t.key))this.currentSite=this.sites.get(t.key),console.log("保持当前源:",this.currentSite.name);else{const i=this.getAllSites();if(i.length>0){const a=i.find(s=>s.type===4)||i[0];this.currentSite=a,n=!0,console.log("自动切换到新源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}else{const r=this.getAllSites();if(r.length>0){const i=r.find(a=>a.type===4)||r[0];this.currentSite=i,n=!0,console.log("设置默认源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}n&&this.emitReloadSource()}emitReloadSource(){typeof window<"u"&&(window.dispatchEvent(new CustomEvent("reloadSource",{detail:{site:this.currentSite,timestamp:Date.now()}})),console.log("触发重载源事件"))}}const Zo=new vct,cr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},mct=we({name:"SearchSettingsModal",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","confirm"],setup(e,{emit:t}){const n=ue(!1),r=ue([]),i=ue([]),a=ue(!1),s=ue(""),l=F(()=>i.value.length>0&&i.value.length{if(!s.value.trim())return r.value;const E=s.value.toLowerCase().trim();return r.value.filter(_=>_.name.toLowerCase().includes(E)||_.api&&_.api.toLowerCase().includes(E)||_.group&&_.group.toLowerCase().includes(E)||_.key.toLowerCase().includes(E))}),d=()=>{try{const E=Zo.getAllSites();r.value=E.filter(_=>_.searchable&&_.searchable!==0).map(_=>({key:_.key,name:_.name||_.key,api:_.api,group:_.group,searchable:_.searchable,quickSearch:_.quickSearch})),console.log("可用搜索源:",r.value)}catch(E){console.error("加载搜索源失败:",E),yt.error("加载搜索源失败"),r.value=[]}},h=()=>{try{const E=localStorage.getItem("searchAggregationSettings");if(E){const _=JSON.parse(E);if(_&&Array.isArray(_.selectedSources)){const T=_.selectedSources.filter(D=>r.value.some(P=>P.key===D));i.value=T,console.log("已加载搜索设置:",{selectedSources:T})}else i.value=r.value.map(T=>T.key),console.log("设置格式无效,使用默认配置")}else i.value=r.value.map(_=>_.key),console.log("未找到保存的设置,使用默认配置");i.value.length===0&&r.value.length>0&&(i.value=[r.value[0].key],console.log("没有有效的选中源,选择第一个可用源")),p()}catch(E){console.error("加载搜索设置失败:",E),i.value=r.value.map(_=>_.key),p()}},p=()=>{const E=c.value.map(T=>T.key),_=i.value.filter(T=>E.includes(T)).length;a.value=_===c.value.length&&c.value.length>0},v=E=>{const _=c.value.map(T=>T.key);if(E){const T=[...i.value];_.forEach(D=>{T.includes(D)||T.push(D)}),i.value=T}else i.value=i.value.filter(T=>!_.includes(T))},g=()=>{p()},y=()=>{d(),yt.success("已刷新搜索源列表")},S=()=>{i.value=r.value.map(E=>E.key),p(),yt.info("已恢复默认选择,点击“确定”后保存")},k=()=>{p()},C=()=>{if(i.value.length===0){yt.warning("请至少选择一个搜索源");return}const E={selectedSources:i.value,updatedAt:Date.now()};try{localStorage.setItem("searchAggregationSettings",JSON.stringify(E)),console.log("搜索设置已保存:",E)}catch(_){console.error("保存搜索设置失败:",_),yt.error("保存设置失败");return}t("confirm",E),n.value=!1},x=()=>{n.value=!1,h()};return It(()=>e.visible,E=>{n.value=E,E&&(d(),h())}),It(n,E=>{t("update:visible",E)}),It(i,()=>{p()},{deep:!0}),It(c,()=>{p()},{deep:!0}),hn(()=>{d()}),{modalVisible:n,availableSources:r,filteredSources:c,selectedSources:i,selectAll:a,indeterminate:l,searchFilter:s,handleSelectAll:v,handleSourceChange:g,refreshSources:y,resetToDefault:S,onSearchFilterChange:k,handleConfirm:C,handleCancel:x}}}),gct={class:"search-settings"},yct={class:"settings-header"},bct={class:"header-right"},_ct={class:"search-tip"},Sct={class:"sources-section"},kct={class:"section-header"},xct={class:"select-all-container"},Cct={class:"selected-count"},wct={class:"header-actions"},Ect={class:"search-filter-container"},Tct={class:"sources-list"},Act={class:"source-info"},Ict={class:"source-main"},Lct={class:"source-name"},Dct={class:"source-tags"},Pct={class:"source-meta"},Rct={key:0,class:"meta-item"},Mct={key:1,class:"meta-item"},$ct={key:0,class:"empty-sources"},Oct={key:0},Bct={key:1},Nct={key:2,class:"empty-desc"},Fct={key:3,class:"empty-desc"},jct={class:"modal-footer"};function Vct(e,t,n,r,i,a){const s=Te("icon-info-circle"),l=Te("a-checkbox"),c=Te("icon-undo"),d=Te("a-button"),h=Te("icon-refresh"),p=Te("icon-search"),v=Te("a-input"),g=Te("a-tag"),y=Te("icon-empty"),S=Te("a-modal");return z(),Ze(S,{visible:e.modalVisible,"onUpdate:visible":t[3]||(t[3]=k=>e.modalVisible=k),title:"搜索设置",width:800,"mask-closable":!1,onOk:e.handleConfirm,onCancel:e.handleCancel},{footer:fe(()=>[I("div",jct,[$(d,{onClick:e.handleCancel},{default:fe(()=>[...t[12]||(t[12]=[He("取消",-1)])]),_:1},8,["onClick"]),$(d,{type:"primary",onClick:e.handleConfirm,disabled:e.selectedSources.length===0},{default:fe(()=>[He(" 确定 ("+Ne(e.selectedSources.length)+") ",1)]),_:1},8,["onClick","disabled"])])]),default:fe(()=>[I("div",gct,[I("div",yct,[t[5]||(t[5]=I("div",{class:"header-left"},[I("h4",null,"选择搜索源"),I("p",{class:"settings-desc"},"选择要参与聚合搜索的数据源")],-1)),I("div",bct,[I("div",_ct,[$(s,{class:"tip-icon"}),t[4]||(t[4]=I("span",{class:"tip-text"},"只有 searchable 属性不为 0 的源才支持搜索功能",-1))])])]),I("div",Sct,[I("div",kct,[I("div",xct,[$(l,{modelValue:e.selectAll,"onUpdate:modelValue":t[0]||(t[0]=k=>e.selectAll=k),indeterminate:e.indeterminate,onChange:e.handleSelectAll},{default:fe(()=>[...t[6]||(t[6]=[He(" 全选 ",-1)])]),_:1},8,["modelValue","indeterminate","onChange"]),I("span",Cct," 已选择 "+Ne(e.selectedSources.length)+" / "+Ne(e.filteredSources.length)+" 个源 ",1)]),I("div",wct,[$(d,{size:"small",onClick:e.resetToDefault},{icon:fe(()=>[$(c)]),default:fe(()=>[t[7]||(t[7]=He(" 重置 ",-1))]),_:1},8,["onClick"]),$(d,{size:"small",onClick:e.refreshSources},{icon:fe(()=>[$(h)]),default:fe(()=>[t[8]||(t[8]=He(" 刷新 ",-1))]),_:1},8,["onClick"])])]),I("div",Ect,[$(v,{modelValue:e.searchFilter,"onUpdate:modelValue":t[1]||(t[1]=k=>e.searchFilter=k),placeholder:"搜索源名称、API或分组...","allow-clear":"",onInput:e.onSearchFilterChange},{prefix:fe(()=>[$(p)]),_:1},8,["modelValue","onInput"])]),I("div",Tct,[(z(!0),X(Pt,null,cn(e.filteredSources,k=>(z(),X("div",{key:k.key,class:"source-item"},[$(l,{modelValue:e.selectedSources,"onUpdate:modelValue":t[2]||(t[2]=C=>e.selectedSources=C),value:k.key,onChange:e.handleSourceChange},{default:fe(()=>[I("div",Act,[I("div",Ict,[I("span",Lct,Ne(k.name),1),I("div",Dct,[k.quickSearch?(z(),Ze(g,{key:0,color:"green",size:"small"},{default:fe(()=>[...t[9]||(t[9]=[He(" 快搜 ",-1)])]),_:1})):Ie("",!0),k.searchable===1?(z(),Ze(g,{key:1,color:"blue",size:"small"},{default:fe(()=>[...t[10]||(t[10]=[He(" 标准搜索 ",-1)])]),_:1})):Ie("",!0),k.searchable===2?(z(),Ze(g,{key:2,color:"orange",size:"small"},{default:fe(()=>[...t[11]||(t[11]=[He(" 高级搜索 ",-1)])]),_:1})):Ie("",!0)])]),I("div",Pct,[k.api?(z(),X("span",Rct,Ne(k.api),1)):Ie("",!0),k.group?(z(),X("span",Mct,Ne(k.group),1)):Ie("",!0)])])]),_:2},1032,["modelValue","value","onChange"])]))),128))]),e.filteredSources.length===0?(z(),X("div",$ct,[$(y,{class:"empty-icon"}),e.availableSources.length===0?(z(),X("p",Oct,"暂无可用的搜索源")):(z(),X("p",Bct,"未找到匹配的搜索源")),e.availableSources.length===0?(z(),X("p",Nct,"请确保已配置支持搜索的数据源")):(z(),X("p",Fct,"请尝试其他关键词或清空搜索条件"))])):Ie("",!0)])])]),_:1},8,["visible","onOk","onCancel"])}const Ime=cr(mct,[["render",Vct],["__scopeId","data-v-2ba355df"]]),zct=we({components:{SearchSettingsModal:Ime},setup(){const e=s3(),t=ma(),n=ue(!1),r=ue(""),i=F(()=>e.name==="SearchAggregation"),a=F(()=>{if(c.value,!i.value)return!1;if(e.query.keyword)return!0;try{const h=localStorage.getItem("pageState_searchAggregation");if(h){const p=JSON.parse(h);return p.hasSearched&&p.searchKeyword}}catch(h){console.error("检查搜索状态失败:",h)}return!1}),s=()=>{try{const h=localStorage.getItem("appSettings");if(h)return JSON.parse(h).searchAggregation||!1}catch(h){console.error("获取聚搜状态失败:",h)}return!1},l=ue(s()),c=ue(0),d=()=>{l.value=s(),c.value++};return window.addEventListener("storage",d),setInterval(d,1e3),It(()=>e.query.keyword,h=>{h&&i.value&&(r.value=h)},{immediate:!0}),It(()=>e.name,h=>{h!=="SearchAggregation"&&(r.value="")}),{showConfirmModal:n,searchAggregationEnabled:l,searchValue:r,showSearchSettings:ue(!1),isSearchAggregationPage:i,hasSearchResults:a,router:t}},methods:{goBack(){yt.info("前进按钮")},goBackFromSearch(){window.history.length>1?this.$router.back():this.$router.push({name:"Home"})},goForward(){yt.info("后退按钮")},refreshPage(){yt.info("刷新页面"),window.location.reload()},onSearch(e){if(console.log("🔍 [Header] onSearch被触发:",{value:e,isSearchPage:this.isSearchAggregationPage}),!e||!e.trim()){yt.warning("请输入搜索内容");return}const t=e.trim();console.log("🔍 [Header] 准备执行搜索:",{keyword:t,currentRoute:this.$route.name}),this.isSearchAggregationPage?(console.log("🔍 [Header] 在搜索页面,更新查询参数"),this.$router.push({name:"SearchAggregation",query:{keyword:t,_t:Date.now()}})):(console.log("🔍 [Header] 不在搜索页面,跳转到搜索页面"),this.$router.push({name:"SearchAggregation",query:{keyword:t}}))},handleSearchClick(){this.isSearchAggregationPage||this.$router.push({name:"SearchAggregation"})},handleSearchInput(e){if(this.isSearchAggregationPage){const t={...this.$route.query,keywordDraft:e};this.$router.push({name:"SearchAggregation",query:t})}},handleSearchClear(){if(this.isSearchAggregationPage){const e={...this.$route.query};delete e.keywordDraft,this.$router.push({name:"SearchAggregation",query:e})}},openSearchSettings(){this.showSearchSettings=!0},onSearchSettingsConfirm(e){const t=e.selectedSources?e.selectedSources.length:0;yt.success(`已选择 ${t} 个搜索源`),this.showSearchSettings=!1,window.dispatchEvent(new CustomEvent("searchSettingsChanged",{detail:e}))},closeSearchResults(){this.searchValue="";try{localStorage.removeItem("pageState_searchAggregation"),console.log("🔄 [状态清理] 已清除聚合搜索页面保存的状态")}catch(e){console.error("清除页面状态失败:",e)}this.$router.push({name:"SearchAggregation"})},minimize(){yt.info("最小化窗口"),this.exitFullScreen()},maximize(){yt.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},clearSessionStorage(){try{sessionStorage.clear(),this.showConfirmModal=!1,yt.success("缓存已清除")}catch(e){console.error("清除缓存失败:",e),yt.error("清除缓存失败")}},confirmClose(){this.showConfirmModal=!1,yt.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(yt.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),yt.error("关闭失败,请手动关闭浏览器标签页")}},enterFullScreen(){let e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},exitFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}}),Uct={class:"header-left"},Hct={class:"search-container"},Wct={class:"header-right"},Gct={class:"modal-header"},Kct={class:"modal-footer"};function qct(e,t,n,r,i,a){const s=Te("icon-left"),l=Te("a-button"),c=Te("icon-right"),d=Te("icon-refresh"),h=Te("a-input-search"),p=Te("icon-settings"),v=Te("icon-close"),g=Te("icon-shrink"),y=Te("icon-expand"),S=Te("icon-exclamation-circle-fill"),k=Te("SearchSettingsModal"),C=Te("a-layout-header");return z(),Ze(C,{class:"header"},{default:fe(()=>[I("div",Uct,[e.isSearchAggregationPage?(z(),X(Pt,{key:0},[$(l,{shape:"circle",onClick:e.goBackFromSearch},{icon:fe(()=>[$(s)]),_:1},8,["onClick"]),t[5]||(t[5]=I("span",{class:"search-page-title"},"聚合搜索",-1))],64)):(z(),X(Pt,{key:1},[$(l,{shape:"circle",onClick:e.goBack},{icon:fe(()=>[$(s)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.goForward},{icon:fe(()=>[$(c)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.refreshPage},{icon:fe(()=>[$(d)]),_:1},8,["onClick"])],64))]),e.searchAggregationEnabled?(z(),X("div",{key:0,class:de(["header-center",{"search-page-mode":e.isSearchAggregationPage}])},[I("div",Hct,[$(h,{modelValue:e.searchValue,"onUpdate:modelValue":t[0]||(t[0]=x=>e.searchValue=x),placeholder:"搜索内容...","enter-button":"搜索","allow-clear":"",onSearch:e.onSearch,onKeyup:t[1]||(t[1]=df(x=>e.onSearch(e.searchValue),["enter"])),onClick:e.handleSearchClick,onInput:e.handleSearchInput,onClear:e.handleSearchClear},null,8,["modelValue","onSearch","onClick","onInput","onClear"]),$(l,{class:"search-settings-btn",shape:"circle",onClick:e.openSearchSettings,title:"搜索设置"},{icon:fe(()=>[$(p)]),_:1},8,["onClick"]),e.hasSearchResults?(z(),Ze(l,{key:0,class:"close-search-btn",shape:"circle",onClick:e.closeSearchResults,title:"关闭搜索结果"},{icon:fe(()=>[$(v)]),_:1},8,["onClick"])):Ie("",!0)])],2)):Ie("",!0),I("div",Wct,[$(l,{shape:"circle",onClick:e.minimize},{icon:fe(()=>[$(g)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.maximize},{icon:fe(()=>[$(y)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:fe(()=>[$(v)]),_:1},8,["onClick"])]),e.showConfirmModal?(z(),X("div",{key:1,class:"confirm-modal-overlay",onClick:t[3]||(t[3]=(...x)=>e.hideCloseConfirm&&e.hideCloseConfirm(...x))},[I("div",{class:"confirm-modal",onClick:t[2]||(t[2]=cs(()=>{},["stop"]))},[I("div",Gct,[$(S,{class:"warning-icon"}),t[6]||(t[6]=I("h3",{class:"modal-title"},"确认关闭",-1))]),t[10]||(t[10]=I("div",{class:"modal-content"},[I("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),I("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),I("div",Kct,[$(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:fe(()=>[...t[7]||(t[7]=[He(" 取消 ",-1)])]),_:1},8,["onClick"]),$(l,{type:"primary",status:"warning",class:"clear-cache-btn",onClick:e.clearSessionStorage},{default:fe(()=>[...t[8]||(t[8]=[He(" 仅清缓存 ",-1)])]),_:1},8,["onClick"]),$(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:fe(()=>[...t[9]||(t[9]=[He(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Ie("",!0),$(k,{visible:e.showSearchSettings,"onUpdate:visible":t[4]||(t[4]=x=>e.showSearchSettings=x),onConfirm:e.onSearchSettingsConfirm},null,8,["visible","onConfirm"])]),_:1})}const Yct=cr(zct,[["render",qct],["__scopeId","data-v-fee61331"]]);/*! + */return n.mode.CTRGladman=(function(){var r=n.lib.BlockCipherMode.extend();function i(l){if((l>>24&255)===255){var c=l>>16&255,d=l>>8&255,h=l&255;c===255?(c=0,d===255?(d=0,h===255?h=0:++h):++d):++c,l=0,l+=c<<16,l+=d<<8,l+=h}else l+=1<<24;return l}function a(l){return(l[0]=i(l[0]))===0&&(l[1]=i(l[1])),l}var s=r.Encryptor=r.extend({processBlock:function(l,c){var d=this._cipher,h=d.blockSize,p=this._iv,v=this._counter;p&&(v=this._counter=p.slice(0),this._iv=void 0),a(v);var g=v.slice(0);d.encryptBlock(g,0);for(var y=0;y>>2]|=l<<24-c%4*8,r.sigBytes+=l},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})})(PE)),PE.exports}var RE={exports:{}},But=RE.exports,qie;function Nut(){return qie||(qie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(But,function(n){return n.pad.Iso10126={pad:function(r,i){var a=i*4,s=a-r.sigBytes%a;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})})(RE)),RE.exports}var ME={exports:{}},Fut=ME.exports,Yie;function jut(){return Yie||(Yie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Fut,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})})(ME)),ME.exports}var OE={exports:{}},Vut=OE.exports,Xie;function zut(){return Xie||(Xie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Vut,function(n){return n.pad.ZeroPadding={pad:function(r,i){var a=i*4;r.clamp(),r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){for(var i=r.words,a=r.sigBytes-1,a=r.sigBytes-1;a>=0;a--)if(i[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}},n.pad.ZeroPadding})})(OE)),OE.exports}var $E={exports:{}},Uut=$E.exports,Zie;function Hut(){return Zie||(Zie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Uut,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})($E)),$E.exports}var BE={exports:{}},Wut=BE.exports,Jie;function Gut(){return Jie||(Jie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),Ia())})(Wut,function(n){return(function(r){var i=n,a=i.lib,s=a.CipherParams,l=i.enc,c=l.Hex,d=i.format;d.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var p=c.parse(h);return s.create({ciphertext:p})}}})(),n.format.Hex})})(BE)),BE.exports}var NE={exports:{}},Kut=NE.exports,Qie;function qut(){return Qie||(Qie=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),og(),sg(),W0(),Ia())})(Kut,function(n){return(function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo,l=[],c=[],d=[],h=[],p=[],v=[],g=[],y=[],S=[],k=[];(function(){for(var E=[],_=0;_<256;_++)_<128?E[_]=_<<1:E[_]=_<<1^283;for(var T=0,D=0,_=0;_<256;_++){var P=D^D<<1^D<<2^D<<3^D<<4;P=P>>>8^P&255^99,l[T]=P,c[P]=T;var M=E[T],$=E[M],L=E[$],B=E[P]*257^P*16843008;d[T]=B<<24|B>>>8,h[T]=B<<16|B>>>16,p[T]=B<<8|B>>>24,v[T]=B;var B=L*16843009^$*65537^M*257^T*16843008;g[P]=B<<24|B>>>8,y[P]=B<<16|B>>>16,S[P]=B<<8|B>>>24,k[P]=B,T?(T=M^E[E[E[L^M]]],D^=E[E[D]]):T=D=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=a.extend({_doReset:function(){var E;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,T=_.words,D=_.sigBytes/4,P=this._nRounds=D+6,M=(P+1)*4,$=this._keySchedule=[],L=0;L6&&L%D==4&&(E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255]):(E=E<<8|E>>>24,E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255],E^=w[L/D|0]<<24),$[L]=$[L-D]^E);for(var B=this._invKeySchedule=[],j=0;j>>24]]^y[l[E>>>16&255]]^S[l[E>>>8&255]]^k[l[E&255]]}}},encryptBlock:function(E,_){this._doCryptBlock(E,_,this._keySchedule,d,h,p,v,l)},decryptBlock:function(E,_){var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T,this._doCryptBlock(E,_,this._invKeySchedule,g,y,S,k,c);var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T},_doCryptBlock:function(E,_,T,D,P,M,$,L){for(var B=this._nRounds,j=E[_]^T[0],H=E[_+1]^T[1],U=E[_+2]^T[2],W=E[_+3]^T[3],K=4,oe=1;oe>>24]^P[H>>>16&255]^M[U>>>8&255]^$[W&255]^T[K++],ee=D[H>>>24]^P[U>>>16&255]^M[W>>>8&255]^$[j&255]^T[K++],Y=D[U>>>24]^P[W>>>16&255]^M[j>>>8&255]^$[H&255]^T[K++],Q=D[W>>>24]^P[j>>>16&255]^M[H>>>8&255]^$[U&255]^T[K++];j=ae,H=ee,U=Y,W=Q}var ae=(L[j>>>24]<<24|L[H>>>16&255]<<16|L[U>>>8&255]<<8|L[W&255])^T[K++],ee=(L[H>>>24]<<24|L[U>>>16&255]<<16|L[W>>>8&255]<<8|L[j&255])^T[K++],Y=(L[U>>>24]<<24|L[W>>>16&255]<<16|L[j>>>8&255]<<8|L[H&255])^T[K++],Q=(L[W>>>24]<<24|L[j>>>16&255]<<16|L[H>>>8&255]<<8|L[U&255])^T[K++];E[_]=ae,E[_+1]=ee,E[_+2]=Y,E[_+3]=Q},keySize:256/32});r.AES=a._createHelper(x)})(),n.AES})})(NE)),NE.exports}var FE={exports:{}},Yut=FE.exports,eoe;function Xut(){return eoe||(eoe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),og(),sg(),W0(),Ia())})(Yut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=i.BlockCipher,l=r.algo,c=[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],d=[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],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{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}],v=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var w=this._key,x=w.words,E=[],_=0;_<56;_++){var T=c[_]-1;E[_]=x[T>>>5]>>>31-T%32&1}for(var D=this._subKeys=[],P=0;P<16;P++){for(var M=D[P]=[],$=h[P],_=0;_<24;_++)M[_/6|0]|=E[(d[_]-1+$)%28]<<31-_%6,M[4+(_/6|0)]|=E[28+(d[_+24]-1+$)%28]<<31-_%6;M[0]=M[0]<<1|M[0]>>>31;for(var _=1;_<7;_++)M[_]=M[_]>>>(_-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var L=this._invSubKeys=[],_=0;_<16;_++)L[_]=D[15-_]},encryptBlock:function(w,x){this._doCryptBlock(w,x,this._subKeys)},decryptBlock:function(w,x){this._doCryptBlock(w,x,this._invSubKeys)},_doCryptBlock:function(w,x,E){this._lBlock=w[x],this._rBlock=w[x+1],y.call(this,4,252645135),y.call(this,16,65535),S.call(this,2,858993459),S.call(this,8,16711935),y.call(this,1,1431655765);for(var _=0;_<16;_++){for(var T=E[_],D=this._lBlock,P=this._rBlock,M=0,$=0;$<8;$++)M|=p[$][((P^T[$])&v[$])>>>0];this._lBlock=P,this._rBlock=D^M}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,y.call(this,1,1431655765),S.call(this,8,16711935),S.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),w[x]=this._lBlock,w[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(w,x){var E=(this._lBlock>>>w^this._rBlock)&x;this._rBlock^=E,this._lBlock^=E<>>w^this._lBlock)&x;this._lBlock^=E,this._rBlock^=E<192.");var E=x.slice(0,2),_=x.length<4?x.slice(0,2):x.slice(2,4),T=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=g.createEncryptor(a.create(E)),this._des2=g.createEncryptor(a.create(_)),this._des3=g.createEncryptor(a.create(T))},encryptBlock:function(w,x){this._des1.encryptBlock(w,x),this._des2.decryptBlock(w,x),this._des3.encryptBlock(w,x)},decryptBlock:function(w,x){this._des3.decryptBlock(w,x),this._des2.encryptBlock(w,x),this._des1.decryptBlock(w,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(k)})(),n.TripleDES})})(FE)),FE.exports}var jE={exports:{}},Zut=jE.exports,toe;function Jut(){return toe||(toe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),og(),sg(),W0(),Ia())})(Zut,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=s.RC4=a.extend({_doReset:function(){for(var h=this._key,p=h.words,v=h.sigBytes,g=this._S=[],y=0;y<256;y++)g[y]=y;for(var y=0,S=0;y<256;y++){var k=y%v,w=p[k>>>2]>>>24-k%4*8&255;S=(S+g[y]+w)%256;var x=g[y];g[y]=g[S],g[S]=x}this._i=this._j=0},_doProcessBlock:function(h,p){h[p]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,p=this._i,v=this._j,g=0,y=0;y<4;y++){p=(p+1)%256,v=(v+h[p])%256;var S=h[p];h[p]=h[v],h[v]=S,g|=h[(h[p]+h[v])%256]<<24-y*8}return this._i=p,this._j=v,g}r.RC4=a._createHelper(l);var d=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)c.call(this)}});r.RC4Drop=a._createHelper(d)})(),n.RC4})})(jE)),jE.exports}var VE={exports:{}},Qut=VE.exports,noe;function ect(){return noe||(noe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),og(),sg(),W0(),Ia())})(Qut,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.Rabbit=a.extend({_doReset:function(){for(var v=this._key.words,g=this.cfg.iv,y=0;y<4;y++)v[y]=(v[y]<<8|v[y]>>>24)&16711935|(v[y]<<24|v[y]>>>8)&4278255360;var S=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],k=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)k[y]^=S[y+4&7];if(g){var w=g.words,x=w[0],E=w[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;k[0]^=_,k[1]^=D,k[2]^=T,k[3]^=P,k[4]^=_,k[5]^=D,k[6]^=T,k[7]^=P;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(v,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=v[y]+g[y],k=S&65535,w=S>>>16,x=((k*k>>>17)+k*w>>>15)+w*w,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.Rabbit=a._createHelper(h)})(),n.Rabbit})})(VE)),VE.exports}var zE={exports:{}},tct=zE.exports,roe;function nct(){return roe||(roe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),og(),sg(),W0(),Ia())})(tct,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.RabbitLegacy=a.extend({_doReset:function(){var v=this._key.words,g=this.cfg.iv,y=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],S=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var k=0;k<4;k++)p.call(this);for(var k=0;k<8;k++)S[k]^=y[k+4&7];if(g){var w=g.words,x=w[0],E=w[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;S[0]^=_,S[1]^=D,S[2]^=T,S[3]^=P,S[4]^=_,S[5]^=D,S[6]^=T,S[7]^=P;for(var k=0;k<4;k++)p.call(this)}},_doProcessBlock:function(v,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=v[y]+g[y],k=S&65535,w=S>>>16,x=((k*k>>>17)+k*w>>>15)+w*w,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.RabbitLegacy=a._createHelper(h)})(),n.RabbitLegacy})})(zE)),zE.exports}var UE={exports:{}},rct=UE.exports,ioe;function ict(){return ioe||(ioe=1,(function(e,t){(function(n,r,i){e.exports=r(Ni(),og(),sg(),W0(),Ia())})(rct,function(n){return(function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo;const l=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[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 h={pbox:[],sbox:[]};function p(k,w){let x=w>>24&255,E=w>>16&255,_=w>>8&255,T=w&255,D=k.sbox[0][x]+k.sbox[1][E];return D=D^k.sbox[2][_],D=D+k.sbox[3][T],D}function v(k,w,x){let E=w,_=x,T;for(let D=0;D1;--D)E=E^k.pbox[D],_=p(k,E)^_,T=E,E=_,_=T;return T=E,E=_,_=T,_=_^k.pbox[1],E=E^k.pbox[0],{left:E,right:_}}function y(k,w,x){for(let P=0;P<4;P++){k.sbox[P]=[];for(let M=0;M<256;M++)k.sbox[P][M]=d[P][M]}let E=0;for(let P=0;P=x&&(E=0);let _=0,T=0,D=0;for(let P=0;Psoe.enc.Base64.stringify(soe.enc.Utf8.parse(e)),lct=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return Ame(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},Ip=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),uct=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},cct={NORMAL:"normal"},dct=()=>({vod_id:"",vod_name:"",vod_pic:"",vod_remarks:"",vod_content:"",vod_play_from:"",vod_play_url:"",vod_time:"",vod_year:"",vod_area:"",vod_lang:"",vod_actor:"",vod_director:"",vod_writer:"",vod_blurb:"",vod_class:"",vod_tag:"",vod_score:"",vod_hits:0,vod_duration:"",vod_total:0,vod_serial:0,vod_tv:"",vod_weekday:"",vod_status:cct.NORMAL}),fct=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),hct=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:"",more:null});class pct{constructor(){this.configUrl=null,this.configData=null,this.lastFetchTime=null,this.cacheExpiry=300*1e3,this.liveConfigUrl=null,this.loadConfigFromStorage()}async setConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("配置地址格式不正确,请输入有效的HTTP/HTTPS地址");if(!await this.validateConfigUrl(t))throw new Error("配置地址无法访问或数据格式不正确");return this.configUrl=t,this.saveConfigToStorage(),await this.autoSetLiveConfigUrl(),console.log("配置地址设置成功:",t),!0}catch(n){throw console.error("设置配置地址失败:",n),n}}async setLiveConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("直播配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("直播配置地址格式不正确,请输入有效的HTTP/HTTPS地址");return this.liveConfigUrl=t,this.saveConfigToStorage(),console.log("直播配置地址设置成功:",t),!0}catch(n){throw console.error("设置直播配置地址失败:",n),n}}getLiveConfigUrl(){return this.liveConfigUrl}async autoSetLiveConfigUrl(){try{if(this.liveConfigUrl)return!1;const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("自动设置直播配置地址成功:",n.url),!0)}catch(t){return console.error("自动设置直播配置地址失败:",t),!1}}async resetLiveConfigUrl(){try{const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接,无法重置"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url,无法重置"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("直播配置地址重置成功:",n.url),!0)}catch(t){return console.error("重置直播配置地址失败:",t),!1}}getConfigUrl(){return this.configUrl}async validateConfigUrl(t){try{const n=await uo.get(t,{timeout:1e4,headers:{Accept:"application/json"}});if(!n.data)return!1;const r=n.data;if(!r.sites||!Array.isArray(r.sites))return!1;if(r.sites.length>0){const i=r.sites[0];if(!i.key||!i.name||!i.api)return!1}return!0}catch(n){return console.error("验证配置地址失败:",n),!1}}async getConfigData(t=!1){try{if(!this.configUrl)throw new Error("未设置配置地址");const n=Date.now(),r=this.configData&&this.lastFetchTime&&n-this.lastFetchTime{try{this.addSite(r)?n.success++:(n.failed++,n.errors.push(`第${i+1}个站点添加失败`))}catch(a){n.failed++,n.errors.push(`第${i+1}个站点添加失败: ${a.message}`)}}),console.log("批量导入站点完成:",n),n}exportSites(){return this.getAllSites()}async testSiteConnection(t){const n=this.sites.get(t);if(!n)throw new Error("站点不存在");try{const r=await qlt(n.key,"",{method:"GET",params:{test:!0}});return{success:!0,message:"连接成功",responseTime:Date.now(),data:r}}catch(r){return{success:!1,message:r.message||"连接失败",error:r}}}getSiteStats(){const t=this.getAllSites();return{total:t.length,searchable:t.filter(n=>n.searchable).length,filterable:t.filter(n=>n.filterable).length,quickSearch:t.filter(n=>n.quickSearch).length,byType:this.groupSitesByType(t)}}groupSitesByType(t){const n={};return t.forEach(r=>{const i=r.type||0;n[i]||(n[i]=[]),n[i].push(r)}),n}searchSites(t){if(!t||t.trim().length===0)return this.getAllSites();const n=t.trim().toLowerCase();return this.getAllSites().filter(r=>r.name.toLowerCase().includes(n)||r.key.toLowerCase().includes(n)||r.api&&r.api.toLowerCase().includes(n))}formatSiteInfo(t){const n=hct();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n.searchable=t.searchable?1:0,n.quickSearch=t.quickSearch?1:0,n.filterable=t.filterable?1:0,n.type=parseInt(t.type)||0,n.order=parseInt(t.order)||0,n}loadSitesFromStorage(){try{const t=localStorage.getItem("drplayer_sites"),n=localStorage.getItem("drplayer_current_site");t&&JSON.parse(t).forEach(i=>{this.sites.set(i.key,i)}),n&&(this.currentSite=this.sites.get(n)),console.log("从本地存储加载站点配置成功")}catch(t){console.error("加载站点配置失败:",t)}}saveSitesToStorage(){try{const t=this.getAllSites();localStorage.setItem("drplayer_sites",JSON.stringify(t)),this.currentSite?localStorage.setItem("drplayer_current_site",this.currentSite.key):localStorage.removeItem("drplayer_current_site"),console.log("保存站点配置到本地存储成功")}catch(t){console.error("保存站点配置失败:",t)}}emitSiteChange(t){console.log("站点已切换:",t.name),typeof window<"u"&&window.dispatchEvent(new CustomEvent("siteChange",{detail:{site:t}}))}clearAllSites(){this.sites.clear(),this.currentSite=null,this.saveSitesToStorage(),console.log("已清空所有站点配置")}async initializeFromConfig(){try{yl.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await yl.getSites(t);if(n&&n.length>0){const r=this.currentSite,i=Array.from(this.sites.values()).filter(a=>a.isLocal);return this.sites.clear(),i.forEach(a=>{this.sites.set(a.key,a)}),n.forEach(a=>{const s=this.formatSiteInfo(a);s.isFromConfig=!0,this.sites.set(s.key,s)}),this.handleSmartSiteSwitch(r),this.saveSitesToStorage(),console.log(`从配置加载了 ${n.length} 个站点`),this.emitSitesUpdate(),n}return[]}catch(n){throw console.error("从配置加载站点失败:",n),n}}async refreshConfig(){try{return await this.loadSitesFromConfig(!0)}catch(t){throw console.error("刷新配置失败:",t),t}}getConfigStatus(){return yl.getConfigStatus()}async setConfigUrl(t){try{const n=await yl.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return yl.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}handleSmartSiteSwitch(t){let n=!1;if(t&&t.key)if(this.sites.has(t.key))this.currentSite=this.sites.get(t.key),console.log("保持当前源:",this.currentSite.name);else{const i=this.getAllSites();if(i.length>0){const a=i.find(s=>s.type===4)||i[0];this.currentSite=a,n=!0,console.log("自动切换到新源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}else{const r=this.getAllSites();if(r.length>0){const i=r.find(a=>a.type===4)||r[0];this.currentSite=i,n=!0,console.log("设置默认源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}n&&this.emitReloadSource()}emitReloadSource(){typeof window<"u"&&(window.dispatchEvent(new CustomEvent("reloadSource",{detail:{site:this.currentSite,timestamp:Date.now()}})),console.log("触发重载源事件"))}}const Qo=new vct,sr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},mct=xe({name:"SearchSettingsModal",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","confirm"],setup(e,{emit:t}){const n=ue(!1),r=ue([]),i=ue([]),a=ue(!1),s=ue(""),l=F(()=>i.value.length>0&&i.value.length{if(!s.value.trim())return r.value;const E=s.value.toLowerCase().trim();return r.value.filter(_=>_.name.toLowerCase().includes(E)||_.api&&_.api.toLowerCase().includes(E)||_.group&&_.group.toLowerCase().includes(E)||_.key.toLowerCase().includes(E))}),d=()=>{try{const E=Qo.getAllSites();r.value=E.filter(_=>_.searchable&&_.searchable!==0).map(_=>({key:_.key,name:_.name||_.key,api:_.api,group:_.group,searchable:_.searchable,quickSearch:_.quickSearch})),console.log("可用搜索源:",r.value)}catch(E){console.error("加载搜索源失败:",E),gt.error("加载搜索源失败"),r.value=[]}},h=()=>{try{const E=localStorage.getItem("searchAggregationSettings");if(E){const _=JSON.parse(E);if(_&&Array.isArray(_.selectedSources)){const T=_.selectedSources.filter(D=>r.value.some(P=>P.key===D));i.value=T,console.log("已加载搜索设置:",{selectedSources:T})}else i.value=r.value.map(T=>T.key),console.log("设置格式无效,使用默认配置")}else i.value=r.value.map(_=>_.key),console.log("未找到保存的设置,使用默认配置");i.value.length===0&&r.value.length>0&&(i.value=[r.value[0].key],console.log("没有有效的选中源,选择第一个可用源")),p()}catch(E){console.error("加载搜索设置失败:",E),i.value=r.value.map(_=>_.key),p()}},p=()=>{const E=c.value.map(T=>T.key),_=i.value.filter(T=>E.includes(T)).length;a.value=_===c.value.length&&c.value.length>0},v=E=>{const _=c.value.map(T=>T.key);if(E){const T=[...i.value];_.forEach(D=>{T.includes(D)||T.push(D)}),i.value=T}else i.value=i.value.filter(T=>!_.includes(T))},g=()=>{p()},y=()=>{d(),gt.success("已刷新搜索源列表")},S=()=>{i.value=r.value.map(E=>E.key),p(),gt.info("已恢复默认选择,点击“确定”后保存")},k=()=>{p()},w=()=>{if(i.value.length===0){gt.warning("请至少选择一个搜索源");return}const E={selectedSources:i.value,updatedAt:Date.now()};try{localStorage.setItem("searchAggregationSettings",JSON.stringify(E)),console.log("搜索设置已保存:",E)}catch(_){console.error("保存搜索设置失败:",_),gt.error("保存设置失败");return}t("confirm",E),n.value=!1},x=()=>{n.value=!1,h()};return It(()=>e.visible,E=>{n.value=E,E&&(d(),h())}),It(n,E=>{t("update:visible",E)}),It(i,()=>{p()},{deep:!0}),It(c,()=>{p()},{deep:!0}),fn(()=>{d()}),{modalVisible:n,availableSources:r,filteredSources:c,selectedSources:i,selectAll:a,indeterminate:l,searchFilter:s,handleSelectAll:v,handleSourceChange:g,refreshSources:y,resetToDefault:S,onSearchFilterChange:k,handleConfirm:w,handleCancel:x}}}),gct={class:"search-settings"},yct={class:"settings-header"},bct={class:"header-right"},_ct={class:"search-tip"},Sct={class:"sources-section"},kct={class:"section-header"},wct={class:"select-all-container"},xct={class:"selected-count"},Cct={class:"header-actions"},Ect={class:"search-filter-container"},Tct={class:"sources-list"},Act={class:"source-info"},Ict={class:"source-main"},Lct={class:"source-name"},Dct={class:"source-tags"},Pct={class:"source-meta"},Rct={key:0,class:"meta-item"},Mct={key:1,class:"meta-item"},Oct={key:0,class:"empty-sources"},$ct={key:0},Bct={key:1},Nct={key:2,class:"empty-desc"},Fct={key:3,class:"empty-desc"},jct={class:"modal-footer"};function Vct(e,t,n,r,i,a){const s=Ee("icon-info-circle"),l=Ee("a-checkbox"),c=Ee("icon-undo"),d=Ee("a-button"),h=Ee("icon-refresh"),p=Ee("icon-search"),v=Ee("a-input"),g=Ee("a-tag"),y=Ee("icon-empty"),S=Ee("a-modal");return z(),Ze(S,{visible:e.modalVisible,"onUpdate:visible":t[3]||(t[3]=k=>e.modalVisible=k),title:"搜索设置",width:800,"mask-closable":!1,onOk:e.handleConfirm,onCancel:e.handleCancel},{footer:ce(()=>[I("div",jct,[O(d,{onClick:e.handleCancel},{default:ce(()=>[...t[12]||(t[12]=[He("取消",-1)])]),_:1},8,["onClick"]),O(d,{type:"primary",onClick:e.handleConfirm,disabled:e.selectedSources.length===0},{default:ce(()=>[He(" 确定 ("+je(e.selectedSources.length)+") ",1)]),_:1},8,["onClick","disabled"])])]),default:ce(()=>[I("div",gct,[I("div",yct,[t[5]||(t[5]=I("div",{class:"header-left"},[I("h4",null,"选择搜索源"),I("p",{class:"settings-desc"},"选择要参与聚合搜索的数据源")],-1)),I("div",bct,[I("div",_ct,[O(s,{class:"tip-icon"}),t[4]||(t[4]=I("span",{class:"tip-text"},"只有 searchable 属性不为 0 的源才支持搜索功能",-1))])])]),I("div",Sct,[I("div",kct,[I("div",wct,[O(l,{modelValue:e.selectAll,"onUpdate:modelValue":t[0]||(t[0]=k=>e.selectAll=k),indeterminate:e.indeterminate,onChange:e.handleSelectAll},{default:ce(()=>[...t[6]||(t[6]=[He(" 全选 ",-1)])]),_:1},8,["modelValue","indeterminate","onChange"]),I("span",xct," 已选择 "+je(e.selectedSources.length)+" / "+je(e.filteredSources.length)+" 个源 ",1)]),I("div",Cct,[O(d,{size:"small",onClick:e.resetToDefault},{icon:ce(()=>[O(c)]),default:ce(()=>[t[7]||(t[7]=He(" 重置 ",-1))]),_:1},8,["onClick"]),O(d,{size:"small",onClick:e.refreshSources},{icon:ce(()=>[O(h)]),default:ce(()=>[t[8]||(t[8]=He(" 刷新 ",-1))]),_:1},8,["onClick"])])]),I("div",Ect,[O(v,{modelValue:e.searchFilter,"onUpdate:modelValue":t[1]||(t[1]=k=>e.searchFilter=k),placeholder:"搜索源名称、API或分组...","allow-clear":"",onInput:e.onSearchFilterChange},{prefix:ce(()=>[O(p)]),_:1},8,["modelValue","onInput"])]),I("div",Tct,[(z(!0),X(Pt,null,cn(e.filteredSources,k=>(z(),X("div",{key:k.key,class:"source-item"},[O(l,{modelValue:e.selectedSources,"onUpdate:modelValue":t[2]||(t[2]=w=>e.selectedSources=w),value:k.key,onChange:e.handleSourceChange},{default:ce(()=>[I("div",Act,[I("div",Ict,[I("span",Lct,je(k.name),1),I("div",Dct,[k.quickSearch?(z(),Ze(g,{key:0,color:"green",size:"small"},{default:ce(()=>[...t[9]||(t[9]=[He(" 快搜 ",-1)])]),_:1})):Ae("",!0),k.searchable===1?(z(),Ze(g,{key:1,color:"blue",size:"small"},{default:ce(()=>[...t[10]||(t[10]=[He(" 标准搜索 ",-1)])]),_:1})):Ae("",!0),k.searchable===2?(z(),Ze(g,{key:2,color:"orange",size:"small"},{default:ce(()=>[...t[11]||(t[11]=[He(" 高级搜索 ",-1)])]),_:1})):Ae("",!0)])]),I("div",Pct,[k.api?(z(),X("span",Rct,je(k.api),1)):Ae("",!0),k.group?(z(),X("span",Mct,je(k.group),1)):Ae("",!0)])])]),_:2},1032,["modelValue","value","onChange"])]))),128))]),e.filteredSources.length===0?(z(),X("div",Oct,[O(y,{class:"empty-icon"}),e.availableSources.length===0?(z(),X("p",$ct,"暂无可用的搜索源")):(z(),X("p",Bct,"未找到匹配的搜索源")),e.availableSources.length===0?(z(),X("p",Nct,"请确保已配置支持搜索的数据源")):(z(),X("p",Fct,"请尝试其他关键词或清空搜索条件"))])):Ae("",!0)])])]),_:1},8,["visible","onOk","onCancel"])}const Ime=sr(mct,[["render",Vct],["__scopeId","data-v-2ba355df"]]),zct=xe({components:{SearchSettingsModal:Ime},setup(){const e=s3(),t=ma(),n=ue(!1),r=ue(""),i=F(()=>e.name==="SearchAggregation"),a=F(()=>{if(c.value,!i.value)return!1;if(e.query.keyword)return!0;try{const h=localStorage.getItem("pageState_searchAggregation");if(h){const p=JSON.parse(h);return p.hasSearched&&p.searchKeyword}}catch(h){console.error("检查搜索状态失败:",h)}return!1}),s=()=>{try{const h=localStorage.getItem("appSettings");if(h)return JSON.parse(h).searchAggregation||!1}catch(h){console.error("获取聚搜状态失败:",h)}return!1},l=ue(s()),c=ue(0),d=()=>{l.value=s(),c.value++};return window.addEventListener("storage",d),setInterval(d,1e3),It(()=>e.query.keyword,h=>{h&&i.value&&(r.value=h)},{immediate:!0}),It(()=>e.name,h=>{h!=="SearchAggregation"&&(r.value="")}),{showConfirmModal:n,searchAggregationEnabled:l,searchValue:r,showSearchSettings:ue(!1),isSearchAggregationPage:i,hasSearchResults:a,router:t}},methods:{goBack(){gt.info("前进按钮")},goBackFromSearch(){window.history.length>1?this.$router.back():this.$router.push({name:"Home"})},goForward(){gt.info("后退按钮")},refreshPage(){gt.info("刷新页面"),window.location.reload()},onSearch(e){if(console.log("🔍 [Header] onSearch被触发:",{value:e,isSearchPage:this.isSearchAggregationPage}),!e||!e.trim()){gt.warning("请输入搜索内容");return}const t=e.trim();console.log("🔍 [Header] 准备执行搜索:",{keyword:t,currentRoute:this.$route.name}),this.isSearchAggregationPage?(console.log("🔍 [Header] 在搜索页面,更新查询参数"),this.$router.push({name:"SearchAggregation",query:{keyword:t,_t:Date.now()}})):(console.log("🔍 [Header] 不在搜索页面,跳转到搜索页面"),this.$router.push({name:"SearchAggregation",query:{keyword:t}}))},handleSearchClick(){this.isSearchAggregationPage||this.$router.push({name:"SearchAggregation"})},handleSearchInput(e){if(this.isSearchAggregationPage){const t={...this.$route.query,keywordDraft:e};this.$router.push({name:"SearchAggregation",query:t})}},handleSearchClear(){if(this.isSearchAggregationPage){const e={...this.$route.query};delete e.keywordDraft,this.$router.push({name:"SearchAggregation",query:e})}},openSearchSettings(){this.showSearchSettings=!0},onSearchSettingsConfirm(e){const t=e.selectedSources?e.selectedSources.length:0;gt.success(`已选择 ${t} 个搜索源`),this.showSearchSettings=!1,window.dispatchEvent(new CustomEvent("searchSettingsChanged",{detail:e}))},closeSearchResults(){this.searchValue="";try{localStorage.removeItem("pageState_searchAggregation"),console.log("🔄 [状态清理] 已清除聚合搜索页面保存的状态")}catch(e){console.error("清除页面状态失败:",e)}this.$router.push({name:"SearchAggregation"})},minimize(){gt.info("最小化窗口"),this.exitFullScreen()},maximize(){gt.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},clearSessionStorage(){try{sessionStorage.clear(),this.showConfirmModal=!1,gt.success("缓存已清除")}catch(e){console.error("清除缓存失败:",e),gt.error("清除缓存失败")}},confirmClose(){this.showConfirmModal=!1,gt.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(gt.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),gt.error("关闭失败,请手动关闭浏览器标签页")}},enterFullScreen(){let e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},exitFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}}),Uct={class:"header-left"},Hct={class:"search-container"},Wct={class:"header-right"},Gct={class:"modal-header"},Kct={class:"modal-footer"};function qct(e,t,n,r,i,a){const s=Ee("icon-left"),l=Ee("a-button"),c=Ee("icon-right"),d=Ee("icon-refresh"),h=Ee("a-input-search"),p=Ee("icon-settings"),v=Ee("icon-close"),g=Ee("icon-shrink"),y=Ee("icon-expand"),S=Ee("icon-exclamation-circle-fill"),k=Ee("SearchSettingsModal"),w=Ee("a-layout-header");return z(),Ze(w,{class:"header"},{default:ce(()=>[I("div",Uct,[e.isSearchAggregationPage?(z(),X(Pt,{key:0},[O(l,{shape:"circle",onClick:e.goBackFromSearch},{icon:ce(()=>[O(s)]),_:1},8,["onClick"]),t[5]||(t[5]=I("span",{class:"search-page-title"},"聚合搜索",-1))],64)):(z(),X(Pt,{key:1},[O(l,{shape:"circle",onClick:e.goBack},{icon:ce(()=>[O(s)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.goForward},{icon:ce(()=>[O(c)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.refreshPage},{icon:ce(()=>[O(d)]),_:1},8,["onClick"])],64))]),e.searchAggregationEnabled?(z(),X("div",{key:0,class:fe(["header-center",{"search-page-mode":e.isSearchAggregationPage}])},[I("div",Hct,[O(h,{modelValue:e.searchValue,"onUpdate:modelValue":t[0]||(t[0]=x=>e.searchValue=x),placeholder:"搜索内容...","enter-button":"搜索","allow-clear":"",onSearch:e.onSearch,onKeyup:t[1]||(t[1]=df(x=>e.onSearch(e.searchValue),["enter"])),onClick:e.handleSearchClick,onInput:e.handleSearchInput,onClear:e.handleSearchClear},null,8,["modelValue","onSearch","onClick","onInput","onClear"]),O(l,{class:"search-settings-btn",shape:"circle",onClick:e.openSearchSettings,title:"搜索设置"},{icon:ce(()=>[O(p)]),_:1},8,["onClick"]),e.hasSearchResults?(z(),Ze(l,{key:0,class:"close-search-btn",shape:"circle",onClick:e.closeSearchResults,title:"关闭搜索结果"},{icon:ce(()=>[O(v)]),_:1},8,["onClick"])):Ae("",!0)])],2)):Ae("",!0),I("div",Wct,[O(l,{shape:"circle",onClick:e.minimize},{icon:ce(()=>[O(g)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.maximize},{icon:ce(()=>[O(y)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:ce(()=>[O(v)]),_:1},8,["onClick"])]),e.showConfirmModal?(z(),X("div",{key:1,class:"confirm-modal-overlay",onClick:t[3]||(t[3]=(...x)=>e.hideCloseConfirm&&e.hideCloseConfirm(...x))},[I("div",{class:"confirm-modal",onClick:t[2]||(t[2]=fs(()=>{},["stop"]))},[I("div",Gct,[O(S,{class:"warning-icon"}),t[6]||(t[6]=I("h3",{class:"modal-title"},"确认关闭",-1))]),t[10]||(t[10]=I("div",{class:"modal-content"},[I("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),I("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),I("div",Kct,[O(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:ce(()=>[...t[7]||(t[7]=[He(" 取消 ",-1)])]),_:1},8,["onClick"]),O(l,{type:"primary",status:"warning",class:"clear-cache-btn",onClick:e.clearSessionStorage},{default:ce(()=>[...t[8]||(t[8]=[He(" 仅清缓存 ",-1)])]),_:1},8,["onClick"]),O(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:ce(()=>[...t[9]||(t[9]=[He(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Ae("",!0),O(k,{visible:e.showSearchSettings,"onUpdate:visible":t[4]||(t[4]=x=>e.showSearchSettings=x),onConfirm:e.onSearchSettingsConfirm},null,8,["visible","onConfirm"])]),_:1})}const Yct=sr(zct,[["render",qct],["__scopeId","data-v-fee61331"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let Lme;const yA=e=>Lme=e,Dme=Symbol();function DV(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var mb;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(mb||(mb={}));function Xct(){const e=RU(!0),t=e.run(()=>ue({}));let n=[],r=[];const i=_5({install(a){yA(i),i._a=a,a.provide(Dme,i),a.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Pme=()=>{};function aoe(e,t,n,r=Pme){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&p5()&&MU(i),i}function f1(e,...t){e.slice().forEach(n=>{n(...t)})}const Zct=e=>e(),loe=Symbol(),fN=Symbol();function PV(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];DV(i)&&DV(r)&&e.hasOwnProperty(n)&&!Bo(r)&&!gf(r)?e[n]=PV(i,r):e[n]=r}return e}const Jct=Symbol();function Qct(e){return!DV(e)||!e.hasOwnProperty(Jct)}const{assign:Hp}=Object;function edt(e){return!!(Bo(e)&&e.effect)}function tdt(e,t,n,r){const{state:i,actions:a,getters:s}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=i?i():{});const h=tn(n.state.value[e]);return Hp(h,a,Object.keys(s||{}).reduce((p,v)=>(p[v]=_5(F(()=>{yA(n);const g=n._s.get(e);return s[v].call(g,g)})),p),{}))}return c=Rme(e,d,t,n,r,!0),c}function Rme(e,t,n={},r,i,a){let s;const l=Hp({actions:{}},n),c={deep:!0};let d,h,p=[],v=[],g;const y=r.state.value[e];!a&&!y&&(r.state.value[e]={}),ue({});let S;function k(M){let O;d=h=!1,typeof M=="function"?(M(r.state.value[e]),O={type:mb.patchFunction,storeId:e,events:g}):(PV(r.state.value[e],M),O={type:mb.patchObject,payload:M,storeId:e,events:g});const L=S=Symbol();dn().then(()=>{S===L&&(d=!0)}),h=!0,f1(p,O,r.state.value[e])}const C=a?function(){const{state:O}=n,L=O?O():{};this.$patch(B=>{Hp(B,L)})}:Pme;function x(){s.stop(),p=[],v=[],r._s.delete(e)}const E=(M,O="")=>{if(loe in M)return M[fN]=O,M;const L=function(){yA(r);const B=Array.from(arguments),j=[],H=[];function U(ie){j.push(ie)}function K(ie){H.push(ie)}f1(v,{args:B,name:L[fN],store:T,after:U,onError:K});let Y;try{Y=M.apply(this&&this.$id===e?this:T,B)}catch(ie){throw f1(H,ie),ie}return Y instanceof Promise?Y.then(ie=>(f1(j,ie),ie)).catch(ie=>(f1(H,ie),Promise.reject(ie))):(f1(j,Y),Y)};return L[loe]=!0,L[fN]=O,L},_={_p:r,$id:e,$onAction:aoe.bind(null,v),$patch:k,$reset:C,$subscribe(M,O={}){const L=aoe(p,M,O.detached,()=>B()),B=s.run(()=>It(()=>r.state.value[e],j=>{(O.flush==="sync"?h:d)&&M({storeId:e,type:mb.direct,events:g},j)},Hp({},c,O)));return L},$dispose:x},T=qt(_);r._s.set(e,T);const P=(r._a&&r._a.runWithContext||Zct)(()=>r._e.run(()=>(s=RU()).run(()=>t({action:E}))));for(const M in P){const O=P[M];if(Bo(O)&&!edt(O)||gf(O))a||(y&&Qct(O)&&(Bo(O)?O.value=y[M]:PV(O,y[M])),r.state.value[e][M]=O);else if(typeof O=="function"){const L=E(O,M);P[M]=L,l.actions[M]=O}}return Hp(T,P),Hp(Bi(T),P),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:M=>{k(O=>{Hp(O,M)})}}),r._p.forEach(M=>{Hp(T,s.run(()=>M({store:T,app:r._a,pinia:r,options:l})))}),y&&a&&n.hydrate&&n.hydrate(T.$state,y),d=!0,h=!0,T}/*! #__NO_SIDE_EFFECTS__ */function sg(e,t,n){let r,i;const a=typeof t=="function";typeof e=="string"?(r=e,i=a?n:t):(i=e,r=e.id);function s(l,c){const d=Ufe();return l=l||(d?Pn(Dme,null):null),l&&yA(l),l=Lme,l._s.has(r)||(a?Rme(r,t,i,l):tdt(r,i,l)),l._s.get(r)}return s.$id=r,s}const m3=sg("pagination",{state:()=>({statsText:"",isVisible:!1,currentRoute:""}),actions:{updateStats(e){this.statsText=e,this.isVisible=!!e},clearStats(){this.statsText="",this.isVisible=!1},setCurrentRoute(e){this.currentRoute=e,e!=="/video"&&e!=="/search"&&this.clearStats()}},getters:{shouldShow:e=>e.isVisible&&(e.currentRoute==="/video"||e.currentRoute==="/search")}}),ndt={class:"footer-content"},rdt={key:0,class:"pagination-stats"},idt={class:"stats-text"},odt={key:1,class:"default-footer"},sdt={class:"footer-info"},adt={class:"copyright-section"},ldt={class:"copyright-text"},udt={class:"project-section"},cdt={class:"license-section"},ddt={__name:"Footer",setup(e){const t=m3(),n=F(()=>new Date().getFullYear()),r=()=>{yt.success("正在跳转到项目主页...")};return(i,a)=>(z(),X("div",ndt,[rt(t).shouldShow?(z(),X("div",rdt,[I("span",idt,Ne(rt(t).statsText),1)])):(z(),X("div",odt,[I("div",sdt,[I("div",adt,[$(rt(qve),{class:"footer-icon"}),I("span",ldt,Ne(n.value)+" DrPlayer",1)]),a[1]||(a[1]=I("div",{class:"separator"},"|",-1)),I("div",udt,[$(rt(Hve),{class:"footer-icon"}),I("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=I("div",{class:"separator"},"|",-1)),I("div",cdt,[$(rt(bf),{class:"footer-icon"}),a[0]||(a[0]=I("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},fdt=cr(ddt,[["__scopeId","data-v-3b2cc39c"]]),hdt="/apps/drplayer/assets/logo-5LtmOeIe.png";window._iconfont_svg_string_5032989='',(e=>{var t=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,i,a,s,l,c=function(p,v){v.parentNode.insertBefore(p,v)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(p){console&&console.log(p)}}r=function(){var p,v=document.createElement("div");v.innerHTML=e._iconfont_svg_string_5032989,(v=v.getElementsByTagName("svg")[0])&&(v.setAttribute("aria-hidden","true"),v.style.position="absolute",v.style.width=0,v.style.height=0,v.style.overflow="hidden",v=v,(p=document.body).firstChild?c(v,p.firstChild):p.appendChild(v))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),r()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(a=r,s=e.document,l=!1,h(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,d())})}function d(){l||(l=!0,a())}function h(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}d()}})(window);const pdt=we({components:{IconCaretRight:wH,IconCaretLeft:EH,IconHome:h3,IconCalendar:oS,Header:Yct,Footer:fdt},setup(){const e=s3(),t=m3(),n=F(()=>e.path==="/search"||e.name==="SearchAggregation"),r=F(()=>e.path==="/download-manager"||e.name==="DownloadManager"),i=ue(!1),a=ue([{id:1,name:"主页",icon:"icon-zhuye",route:"/"},{id:2,name:"点播",icon:"icon-dianbo",route:"/video"},{id:4,name:"直播",icon:"icon-shipinzhibo",route:"/live"},{id:5,name:"书画柜",icon:"icon-shugui",route:"/book-gallery"},{id:6,name:"解析",icon:"icon-jiexi",route:"/parser"},{id:7,name:"收藏",icon:"icon-shoucang",route:"/collection"},{id:8,name:"历史",icon:"icon-lishi",route:"/history"},{id:11,name:"下载",icon:"icon-xiazai",route:"/download-manager"},{id:10,name:"测试",icon:"icon-ceshi",route:"/action-test"},{id:9,name:"设置",icon:"icon-shezhi",route:"/settings"}]),s=ue(hdt),l=ue("欢迎使用DrPlayer");return It(()=>e.path,h=>{t.setCurrentRoute(h)},{immediate:!0}),{siderCollapsed:i,menuItems:a,logoSrc:s,logoDesc:l,onClickMenuItem:h=>{let p=a.value.find(g=>g.id===h).name,v=`You select ${h},${p}`;console.log(v)},onSiderCollapse:h=>{i.value=h,console.log("侧边栏折叠状态:",h)},isSearchPage:n,isDownloadManagerPage:r}}}),vdt={class:"app-container"},mdt={class:"fixed-header"},gdt={class:"logo"},ydt={style:{width:"20px",height:"20px","margin-right":"8px"}},bdt=["href"],_dt={class:"fixed-footer"};function Sdt(e,t,n,r,i,a){const s=Te("Header"),l=Te("a-image"),c=Te("a-popover"),d=Te("a-menu-item"),h=Te("router-link"),p=Te("a-menu"),v=Te("IconCaretRight"),g=Te("IconCaretLeft"),y=Te("a-layout-sider"),S=Te("Footer"),k=Te("a-layout");return z(),X("div",vdt,[I("div",mdt,[$(s)]),$(k,{class:"layout-demo"},{default:fe(()=>[$(y,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:fe(({collapsed:C})=>[C?(z(),Ze(v,{key:0})):(z(),Ze(g,{key:1}))]),default:fe(()=>[I("div",gdt,[$(c,{title:"道长: 您好!"},{content:fe(()=>[I("p",null,Ne(e.logoDesc),1)]),default:fe(()=>[$(l,{width:"100%",src:e.logoSrc,alt:e.logoDesc,preview:!1,onClick:t[0]||(t[0]=()=>this.$message.success("欢迎使用Hipy定制版壳子"))},null,8,["src","alt"])]),_:1})]),$(p,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:fe(()=>[(z(!0),X(Pt,null,cn(e.menuItems,(C,x)=>(z(),Ze(h,{key:x,to:C.route,class:"menu-item"},{default:fe(()=>[(z(),Ze(d,{key:C.id},{default:fe(()=>[(z(),X("svg",ydt,[I("use",{href:`#${C.icon}`},null,8,bdt)])),He(" "+Ne(C.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),I("div",{class:de(["main-content",{"sider-collapsed":e.siderCollapsed}])},[I("div",{class:de(["content-wrapper",{"search-page":e.isSearchPage,"download-manager-page":e.isDownloadManagerPage}])},[mt(e.$slots,"default",{},void 0,!0)],2),I("div",_dt,[$(S)])],2)]),_:3})])}const kdt=cr(pdt,[["render",Sdt],["__scopeId","data-v-c3e63595"]]),gb=ue({show:!1,message:"",type:"success",duration:3e3});function Hn(e,t="success",n=3e3){gb.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{xdt()},n)}function xdt(){gb.value.show=!1}const Cdt={__name:"GlobalToast",setup(e){return(t,n)=>(z(),Ze(Zm,{to:"body"},[$(Cs,{name:"action-toast"},{default:fe(()=>[rt(gb).show?(z(),X("div",{key:0,class:de(["action-toast",rt(gb).type])},Ne(rt(gb).message),3)):Ie("",!0)]),_:1})]))}},wdt=cr(Cdt,[["__scopeId","data-v-0de7c39c"]]),hS=sg("visited",{state:()=>({lastClickedVideoId:null,lastClickedVideoName:null}),getters:{isLastClicked:e=>t=>e.lastClickedVideoId===t},actions:{setLastClicked(e,t){e&&(this.lastClickedVideoId=e,this.lastClickedVideoName=t,this.saveToStorage())},clear(){this.lastClickedVideoId=null,this.lastClickedVideoName=null,localStorage.removeItem("last-clicked-video")},saveToStorage(){try{const e={videoId:this.lastClickedVideoId,videoName:this.lastClickedVideoName};localStorage.setItem("last-clicked-video",JSON.stringify(e))}catch(e){console.warn("保存最后点击视频失败:",e)}},loadFromStorage(){try{const e=localStorage.getItem("last-clicked-video");if(e){const t=JSON.parse(e);this.lastClickedVideoId=t.videoId,this.lastClickedVideoName=t.videoName}}catch(e){console.warn("加载最后点击视频失败:",e),this.clear()}}}}),Edt={name:"App",components:{Layout:kdt,GlobalToast:wdt},setup(){const e=hS();return hn(()=>{e.loadFromStorage()}),{}}};function Tdt(e,t,n,r,i,a){const s=Te("router-view"),l=Te("Layout"),c=Te("GlobalToast");return z(),X(Pt,null,[$(l,null,{default:fe(()=>[$(s)]),_:1}),$(c)],64)}const Adt=cr(Edt,[["render",Tdt]]),Idt="modulepreload",Ldt=function(e){return"/apps/drplayer/"+e},uoe={},fc=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=c(n.map(d=>{if(d=Ldt(d),d in uoe)return;uoe[d]=!0;const h=d.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":Idt,h||(v.as="script"),v.crossOrigin="",v.href=d,l&&v.setAttribute("nonce",l),document.head.appendChild(v),h)return new Promise((g,y)=>{v.addEventListener("load",g),v.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})};/*! ***************************************************************************** + */let Lme;const _A=e=>Lme=e,Dme=Symbol();function RV(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var mb;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(mb||(mb={}));function Xct(){const e=OU(!0),t=e.run(()=>ue({}));let n=[],r=[];const i=S5({install(a){_A(i),i._a=a,a.provide(Dme,i),a.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Pme=()=>{};function aoe(e,t,n,r=Pme){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&v5()&&$U(i),i}function h1(e,...t){e.slice().forEach(n=>{n(...t)})}const Zct=e=>e(),loe=Symbol(),pN=Symbol();function MV(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];RV(i)&&RV(r)&&e.hasOwnProperty(n)&&!Bo(r)&&!gf(r)?e[n]=MV(i,r):e[n]=r}return e}const Jct=Symbol();function Qct(e){return!RV(e)||!e.hasOwnProperty(Jct)}const{assign:Wp}=Object;function edt(e){return!!(Bo(e)&&e.effect)}function tdt(e,t,n,r){const{state:i,actions:a,getters:s}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=i?i():{});const h=tn(n.state.value[e]);return Wp(h,a,Object.keys(s||{}).reduce((p,v)=>(p[v]=S5(F(()=>{_A(n);const g=n._s.get(e);return s[v].call(g,g)})),p),{}))}return c=Rme(e,d,t,n,r,!0),c}function Rme(e,t,n={},r,i,a){let s;const l=Wp({actions:{}},n),c={deep:!0};let d,h,p=[],v=[],g;const y=r.state.value[e];!a&&!y&&(r.state.value[e]={}),ue({});let S;function k(M){let $;d=h=!1,typeof M=="function"?(M(r.state.value[e]),$={type:mb.patchFunction,storeId:e,events:g}):(MV(r.state.value[e],M),$={type:mb.patchObject,payload:M,storeId:e,events:g});const L=S=Symbol();dn().then(()=>{S===L&&(d=!0)}),h=!0,h1(p,$,r.state.value[e])}const w=a?function(){const{state:$}=n,L=$?$():{};this.$patch(B=>{Wp(B,L)})}:Pme;function x(){s.stop(),p=[],v=[],r._s.delete(e)}const E=(M,$="")=>{if(loe in M)return M[pN]=$,M;const L=function(){_A(r);const B=Array.from(arguments),j=[],H=[];function U(oe){j.push(oe)}function W(oe){H.push(oe)}h1(v,{args:B,name:L[pN],store:T,after:U,onError:W});let K;try{K=M.apply(this&&this.$id===e?this:T,B)}catch(oe){throw h1(H,oe),oe}return K instanceof Promise?K.then(oe=>(h1(j,oe),oe)).catch(oe=>(h1(H,oe),Promise.reject(oe))):(h1(j,K),K)};return L[loe]=!0,L[pN]=$,L},_={_p:r,$id:e,$onAction:aoe.bind(null,v),$patch:k,$reset:w,$subscribe(M,$={}){const L=aoe(p,M,$.detached,()=>B()),B=s.run(()=>It(()=>r.state.value[e],j=>{($.flush==="sync"?h:d)&&M({storeId:e,type:mb.direct,events:g},j)},Wp({},c,$)));return L},$dispose:x},T=Wt(_);r._s.set(e,T);const P=(r._a&&r._a.runWithContext||Zct)(()=>r._e.run(()=>(s=OU()).run(()=>t({action:E}))));for(const M in P){const $=P[M];if(Bo($)&&!edt($)||gf($))a||(y&&Qct($)&&(Bo($)?$.value=y[M]:MV($,y[M])),r.state.value[e][M]=$);else if(typeof $=="function"){const L=E($,M);P[M]=L,l.actions[M]=$}}return Wp(T,P),Wp(Bi(T),P),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:M=>{k($=>{Wp($,M)})}}),r._p.forEach(M=>{Wp(T,s.run(()=>M({store:T,app:r._a,pinia:r,options:l})))}),y&&a&&n.hydrate&&n.hydrate(T.$state,y),d=!0,h=!0,T}/*! #__NO_SIDE_EFFECTS__ */function ag(e,t,n){let r,i;const a=typeof t=="function";typeof e=="string"?(r=e,i=a?n:t):(i=e,r=e.id);function s(l,c){const d=Ufe();return l=l||(d?Pn(Dme,null):null),l&&_A(l),l=Lme,l._s.has(r)||(a?Rme(r,t,i,l):tdt(r,i,l)),l._s.get(r)}return s.$id=r,s}const m3=ag("pagination",{state:()=>({statsText:"",isVisible:!1,currentRoute:""}),actions:{updateStats(e){this.statsText=e,this.isVisible=!!e},clearStats(){this.statsText="",this.isVisible=!1},setCurrentRoute(e){this.currentRoute=e,e!=="/video"&&e!=="/search"&&this.clearStats()}},getters:{shouldShow:e=>e.isVisible&&(e.currentRoute==="/video"||e.currentRoute==="/search")}}),ndt={class:"footer-content"},rdt={key:0,class:"pagination-stats"},idt={class:"stats-text"},odt={key:1,class:"default-footer"},sdt={class:"footer-info"},adt={class:"copyright-section"},ldt={class:"copyright-text"},udt={class:"project-section"},cdt={class:"license-section"},ddt={__name:"Footer",setup(e){const t=m3(),n=F(()=>new Date().getFullYear()),r=()=>{gt.success("正在跳转到项目主页...")};return(i,a)=>(z(),X("div",ndt,[tt(t).shouldShow?(z(),X("div",rdt,[I("span",idt,je(tt(t).statsText),1)])):(z(),X("div",odt,[I("div",sdt,[I("div",adt,[O(tt(qve),{class:"footer-icon"}),I("span",ldt,je(n.value)+" DrPlayer",1)]),a[1]||(a[1]=I("div",{class:"separator"},"|",-1)),I("div",udt,[O(tt(Hve),{class:"footer-icon"}),I("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=I("div",{class:"separator"},"|",-1)),I("div",cdt,[O(tt(bf),{class:"footer-icon"}),a[0]||(a[0]=I("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},fdt=sr(ddt,[["__scopeId","data-v-3b2cc39c"]]),hdt="/apps/drplayer/assets/logo-5LtmOeIe.png";window._iconfont_svg_string_5032989='',(e=>{var t=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,i,a,s,l,c=function(p,v){v.parentNode.insertBefore(p,v)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(p){console&&console.log(p)}}r=function(){var p,v=document.createElement("div");v.innerHTML=e._iconfont_svg_string_5032989,(v=v.getElementsByTagName("svg")[0])&&(v.setAttribute("aria-hidden","true"),v.style.position="absolute",v.style.width=0,v.style.height=0,v.style.overflow="hidden",v=v,(p=document.body).firstChild?c(v,p.firstChild):p.appendChild(v))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),r()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(a=r,s=e.document,l=!1,h(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,d())})}function d(){l||(l=!0,a())}function h(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}d()}})(window);const pdt=xe({components:{IconCaretRight:TH,IconCaretLeft:AH,IconHome:h3,IconCalendar:sS,Header:Yct,Footer:fdt},setup(){const e=s3(),t=m3(),n=F(()=>e.path==="/search"||e.name==="SearchAggregation"),r=F(()=>e.path==="/download-manager"||e.name==="DownloadManager"),i=ue(!1),a=ue([{id:1,name:"主页",icon:"icon-zhuye",route:"/"},{id:2,name:"点播",icon:"icon-dianbo",route:"/video"},{id:4,name:"直播",icon:"icon-shipinzhibo",route:"/live"},{id:5,name:"书画柜",icon:"icon-shugui",route:"/book-gallery"},{id:6,name:"解析",icon:"icon-jiexi",route:"/parser"},{id:7,name:"收藏",icon:"icon-shoucang",route:"/collection"},{id:8,name:"历史",icon:"icon-lishi",route:"/history"},{id:11,name:"下载",icon:"icon-xiazai",route:"/download-manager"},{id:10,name:"测试",icon:"icon-ceshi",route:"/action-test"},{id:9,name:"设置",icon:"icon-shezhi",route:"/settings"}]),s=ue(hdt),l=ue("欢迎使用DrPlayer");return It(()=>e.path,h=>{t.setCurrentRoute(h)},{immediate:!0}),{siderCollapsed:i,menuItems:a,logoSrc:s,logoDesc:l,onClickMenuItem:h=>{let p=a.value.find(g=>g.id===h).name,v=`You select ${h},${p}`;console.log(v)},onSiderCollapse:h=>{i.value=h,console.log("侧边栏折叠状态:",h)},isSearchPage:n,isDownloadManagerPage:r}}}),vdt={class:"app-container"},mdt={class:"fixed-header"},gdt={class:"logo"},ydt={style:{width:"20px",height:"20px","margin-right":"8px"}},bdt=["href"],_dt={class:"fixed-footer"};function Sdt(e,t,n,r,i,a){const s=Ee("Header"),l=Ee("a-image"),c=Ee("a-popover"),d=Ee("a-menu-item"),h=Ee("router-link"),p=Ee("a-menu"),v=Ee("IconCaretRight"),g=Ee("IconCaretLeft"),y=Ee("a-layout-sider"),S=Ee("Footer"),k=Ee("a-layout");return z(),X("div",vdt,[I("div",mdt,[O(s)]),O(k,{class:"layout-demo"},{default:ce(()=>[O(y,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:ce(({collapsed:w})=>[w?(z(),Ze(v,{key:0})):(z(),Ze(g,{key:1}))]),default:ce(()=>[I("div",gdt,[O(c,{title:"道长: 您好!"},{content:ce(()=>[I("p",null,je(e.logoDesc),1)]),default:ce(()=>[O(l,{width:"100%",src:e.logoSrc,alt:e.logoDesc,preview:!1,onClick:t[0]||(t[0]=()=>this.$message.success("欢迎使用Hipy定制版壳子"))},null,8,["src","alt"])]),_:1})]),O(p,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:ce(()=>[(z(!0),X(Pt,null,cn(e.menuItems,(w,x)=>(z(),Ze(h,{key:x,to:w.route,class:"menu-item"},{default:ce(()=>[(z(),Ze(d,{key:w.id},{default:ce(()=>[(z(),X("svg",ydt,[I("use",{href:`#${w.icon}`},null,8,bdt)])),He(" "+je(w.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),I("div",{class:fe(["main-content",{"sider-collapsed":e.siderCollapsed}])},[I("div",{class:fe(["content-wrapper",{"search-page":e.isSearchPage,"download-manager-page":e.isDownloadManagerPage}])},[mt(e.$slots,"default",{},void 0,!0)],2),I("div",_dt,[O(S)])],2)]),_:3})])}const kdt=sr(pdt,[["render",Sdt],["__scopeId","data-v-c3e63595"]]),gb=ue({show:!1,message:"",type:"success",duration:3e3});function Hn(e,t="success",n=3e3){gb.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{wdt()},n)}function wdt(){gb.value.show=!1}const xdt={__name:"GlobalToast",setup(e){return(t,n)=>(z(),Ze(Jm,{to:"body"},[O(Cs,{name:"action-toast"},{default:ce(()=>[tt(gb).show?(z(),X("div",{key:0,class:fe(["action-toast",tt(gb).type])},je(tt(gb).message),3)):Ae("",!0)]),_:1})]))}},Cdt=sr(xdt,[["__scopeId","data-v-0de7c39c"]]),Edt=["title"],Tdt={class:"window-title"},Adt={class:"window-controls"},Idt={class:"window-content"},Ldt=["src"],Ddt={__name:"FloatingIframe",props:{defaultUrl:{type:String,default:"https://www.baidu.com"},defaultPosition:{type:Object,default:()=>({x:33,y:604})},defaultSize:{type:Object,default:()=>({width:419,height:883})},buttonTitle:{type:String,default:"打开浮窗"},windowTitle:{type:String,default:"浮窗浏览器"}},setup(e,{expose:t}){const n=e,r=ue(!1),i=ue(n.defaultUrl),a=ue({enabled:!1,url:""}),s=()=>{try{const W=localStorage.getItem("debugSettings");if(W){const K=JSON.parse(W);a.value={enabled:K.enabled===!0,url:K.url||""}}else a.value={enabled:!1,url:""}}catch(W){console.error("Failed to load debug settings:",W),a.value={enabled:!1,url:""}}},l=F(()=>a.value.enabled),c=F(()=>l.value),d=()=>a.value.enabled&&a.value.url?a.value.url:n.defaultUrl,h=F(()=>d()),p=W=>{W.key==="debugSettings"&&s()},v=W=>{s()},g=ue(1e3),y=Wt({x:n.defaultPosition.x,y:n.defaultPosition.y}),S=Wt({x:1696,y:130}),k=Wt({width:n.defaultSize.width,height:n.defaultSize.height}),w=Wt({isDragging:!1,isResizing:!1,startX:0,startY:0,startLeft:0,startTop:0,startWidth:0,startHeight:0,dragType:""}),x=()=>{if(r.value){E();return}r.value=!0;const W=d();i.value!==W&&(i.value=W),localStorage.getItem("floating-iframe-window-position")||(S.x=1696,S.y=130),T()},E=()=>{j(),H(),r.value=!1},_=()=>{j(),H(),r.value=!1},T=()=>{g.value=Date.now()},D=W=>{W.button===0&&(w.isDragging=!0,w.dragType="button",w.startX=W.clientX,w.startY=W.clientY,w.startLeft=y.x,w.startTop=y.y,W.preventDefault(),W.stopPropagation())},P=W=>{W.button===0&&(w.isDragging=!0,w.dragType="window",w.startX=W.clientX,w.startY=W.clientY,w.startLeft=S.x,w.startTop=S.y,W.preventDefault(),W.stopPropagation())},M=W=>{W.button===0&&(w.isResizing=!0,w.dragType="resize",w.startX=W.clientX,w.startY=W.clientY,w.startWidth=k.width,w.startHeight=k.height,W.preventDefault(),W.stopPropagation())},$=W=>{if(!w.isDragging&&!w.isResizing)return;const K=W.clientX-w.startX,oe=W.clientY-w.startY;if(w.dragType==="button")y.x=Math.max(0,Math.min(window.innerWidth-50,w.startLeft+K)),y.y=Math.max(0,Math.min(window.innerHeight-50,w.startTop+oe));else if(w.dragType==="window")S.x=Math.max(0,Math.min(window.innerWidth-200,w.startLeft+K)),S.y=Math.max(0,Math.min(window.innerHeight-100,w.startTop+oe));else if(w.dragType==="resize"){const ae=Math.max(300,w.startWidth+K),ee=Math.max(200,w.startHeight+oe);k.width=Math.min(ae,window.innerWidth-S.x),k.height=Math.min(ee,window.innerHeight-S.y)}},L=()=>{w.dragType==="button"?B():w.dragType==="window"?j():w.dragType==="resize"&&H(),w.isDragging=!1,w.isResizing=!1,w.dragType=""},B=()=>{localStorage.setItem("floating-iframe-button-position",JSON.stringify({x:y.x,y:y.y}))},j=()=>{localStorage.setItem("floating-iframe-window-position",JSON.stringify({x:S.x,y:S.y}))},H=()=>{localStorage.setItem("floating-iframe-window-size",JSON.stringify({width:k.width,height:k.height}))},U=()=>{const W=localStorage.getItem("floating-iframe-button-position");if(W)try{const ae=JSON.parse(W);y.x=ae.x,y.y=ae.y}catch(ae){console.warn("Failed to parse saved button position:",ae)}const K=localStorage.getItem("floating-iframe-window-position");if(K)try{const ae=JSON.parse(K);S.x=ae.x,S.y=ae.y}catch(ae){console.warn("Failed to parse saved window position:",ae)}const oe=localStorage.getItem("floating-iframe-window-size");if(oe)try{const ae=JSON.parse(oe);k.width=ae.width,k.height=ae.height}catch(ae){console.warn("Failed to parse saved window size:",ae)}};return It(h,(W,K)=>{W!==K&&r.value&&(i.value=W)}),fn(()=>{document.addEventListener("mousemove",$),document.addEventListener("mouseup",L),window.addEventListener("storage",p),window.addEventListener("debugSettingsChanged",v),U(),s(),i.value===n.defaultUrl&&(i.value=d())}),Yr(()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",L),window.removeEventListener("storage",p),window.removeEventListener("debugSettingsChanged",v),B(),j(),H()}),t({openWindow:x,closeWindow:E,setUrl:W=>{i.value=W}}),(W,K)=>(z(),X(Pt,null,[c.value?(z(),X("div",{key:0,class:"floating-button",style:qe({left:y.x+"px",top:y.y+"px"}),onClick:x,onMousedown:D,title:e.buttonTitle},[O(tt(d_),{class:"button-icon"})],44,Edt)):Ae("",!0),Ci(I("div",{class:"floating-window",style:qe({left:S.x+"px",top:S.y+"px",width:k.width+"px",height:k.height+"px",zIndex:g.value}),onMousedown:T},[I("div",{class:"window-header",onMousedown:P},[I("div",Tdt,[O(tt(d_),{class:"title-icon"}),I("span",null,je(e.windowTitle),1)]),I("div",Adt,[I("button",{class:"control-btn minimize-btn",onClick:_,title:"最小化"},[O(tt(T0))]),I("button",{class:"control-btn close-btn",onClick:E,title:"关闭"},[O(tt(rs))])])],32),I("div",Idt,[I("iframe",{src:i.value,class:"iframe-content",frameborder:"0",allowfullscreen:"",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms"},null,8,Ldt)]),I("div",{class:"resize-handle resize-se",onMousedown:M},null,32)],36),[[Ko,r.value]])],64))}},Pdt=sr(Ddt,[["__scopeId","data-v-e26c6722"]]),pS=ag("visited",{state:()=>({lastClickedVideoId:null,lastClickedVideoName:null}),getters:{isLastClicked:e=>t=>e.lastClickedVideoId===t},actions:{setLastClicked(e,t){e&&(this.lastClickedVideoId=e,this.lastClickedVideoName=t,this.saveToStorage())},clear(){this.lastClickedVideoId=null,this.lastClickedVideoName=null,localStorage.removeItem("last-clicked-video")},saveToStorage(){try{const e={videoId:this.lastClickedVideoId,videoName:this.lastClickedVideoName};localStorage.setItem("last-clicked-video",JSON.stringify(e))}catch(e){console.warn("保存最后点击视频失败:",e)}},loadFromStorage(){try{const e=localStorage.getItem("last-clicked-video");if(e){const t=JSON.parse(e);this.lastClickedVideoId=t.videoId,this.lastClickedVideoName=t.videoName}}catch(e){console.warn("加载最后点击视频失败:",e),this.clear()}}}}),Rdt={name:"App",components:{Layout:kdt,GlobalToast:Cdt,FloatingIframe:Pdt},setup(){const e=pS();return fn(()=>{e.loadFromStorage()}),{}}};function Mdt(e,t,n,r,i,a){const s=Ee("router-view"),l=Ee("Layout"),c=Ee("GlobalToast"),d=Ee("FloatingIframe");return z(),X(Pt,null,[O(l,null,{default:ce(()=>[O(s)]),_:1}),O(c),O(d,{"default-url":"https://www.baidu.com","default-position":{x:33,y:604},"default-size":{width:419,height:883},"button-title":"打开浮窗浏览器","window-title":"浮窗浏览器"})],64)}const Odt=sr(Rdt,[["render",Mdt]]),$dt="modulepreload",Bdt=function(e){return"/apps/drplayer/"+e},uoe={},pc=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=c(n.map(d=>{if(d=Bdt(d),d in uoe)return;uoe[d]=!0;const h=d.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":$dt,h||(v.as="script"),v.crossOrigin="",v.href=d,l&&v.setAttribute("nonce",l),document.head.appendChild(v),h)return new Promise((g,y)=>{v.addEventListener("load",g),v.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -59,8 +59,8 @@ 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 RV=function(e,t){return RV=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},RV(e,t)};function Nn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");RV(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ddt=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Pdt=(function(){function e(){this.browser=new Ddt,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),Vr=new Pdt;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vr.wxa=!0,Vr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Vr.worker=!0:!Vr.hasGlobalWindow||"Deno"in window?(Vr.node=!0,Vr.svgSupported=!0):Rdt(navigator.userAgent,Vr);function Rdt(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),s&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var bW=12,Mdt="sans-serif",Nm=bW+"px "+Mdt,$dt=20,Odt=100,Bdt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Ndt(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)l=s*n.length;else for(var c=0;c>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",i[d]+":0",r[1-c]+":auto",i[1-d]+":auto",""].join("!important;"),e.appendChild(s),n.push(s)}return n}function lft(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,s=[],l=[],c=!0,d=0;d<4;d++){var h=e[d].getBoundingClientRect(),p=2*d,v=h.left,g=h.top;s.push(v,g),c=c&&a&&v===a[p]&&g===a[p+1],l.push(e[d].offsetLeft,e[d].offsetTop)}return c&&i?i:(t.srcCoords=s,t[r]=n?hoe(l,s):hoe(s,l))}function Vme(e){return e.nodeName.toUpperCase()==="CANVAS"}var uft=/([&<>"'])/g,cft={"&":"&","<":"<",">":">",'"':""","'":"'"};function bu(e){return e==null?"":(e+"").replace(uft,function(t,n){return cft[n]})}var dft=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mN=[],fft=Vr.browser.firefox&&+Vr.browser.version.split(".")[0]<39;function jV(e,t,n,r){return n=n||{},r?voe(e,t,n):fft&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):voe(e,t,n),n}function voe(e,t,n){if(Vr.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Vme(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(FV(mN,e,r,i)){n.zrX=mN[0],n.zrY=mN[1];return}}n.zrX=n.zrY=0}function CW(e){return e||window.event}function Lc(e,t,n){if(t=CW(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var s=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];s&&jV(e,s,t,n)}else{jV(e,t,t,n);var a=hft(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&dft.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function hft(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function pft(e,t,n,r){e.addEventListener(t,n,r)}function vft(e,t,n,r){e.removeEventListener(t,n,r)}var zme=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},mft=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var a={points:[],touches:[],target:n,event:t},s=0,l=i.length;s1&&r&&r.length>1){var a=moe(r)/moe(i);!isFinite(a)&&(a=1),t.pinchScale=a;var s=gft(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function py(){return[1,0,0,1,0,0]}function wW(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yft(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function vy(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],s=t[1]*n[2]+t[3]*n[3],l=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=s,e[4]=l,e[5]=c,e}function VV(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function EW(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],s=t[4],l=t[1],c=t[3],d=t[5],h=Math.sin(n),p=Math.cos(n);return e[0]=i*p+l*h,e[1]=-i*h+l*p,e[2]=a*p+c*h,e[3]=-a*h+p*c,e[4]=p*(s-r[0])+h*(d-r[1])+r[0],e[5]=p*(d-r[1])-h*(s-r[0])+r[1],e}function bft(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function TW(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],s=t[3],l=t[5],c=n*s-a*r;return c?(c=1/c,e[0]=s*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*l-s*i)*c,e[5]=(a*i-n*l)*c,e):null}var Wr=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var a=1-i;t.x=a*n.x+i*r.x,t.y=a*n.y+i*r.y},e})(),Px=Math.min,Rx=Math.max,yv=new Wr,bv=new Wr,_v=new Wr,Sv=new Wr,Q2=new Wr,e4=new Wr,lo=(function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=Px(t.x,this.x),r=Px(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Rx(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Rx(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,a=py();return VV(a,a,[-n.x,-n.y]),bft(a,a,[r,i]),VV(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,c=t.x,d=t.x+t.width,h=t.y,p=t.y+t.height,v=!(ay&&(y=E,Sy&&(y=_,C=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],s=r[4],l=r[5];t.x=n.x*i+s,t.y=n.y*a+l,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}yv.x=_v.x=n.x,yv.y=Sv.y=n.y,bv.x=Sv.x=n.x+n.width,bv.y=_v.y=n.y+n.height,yv.transform(r),Sv.transform(r),bv.transform(r),_v.transform(r),t.x=Px(yv.x,bv.x,_v.x,Sv.x),t.y=Px(yv.y,bv.y,_v.y,Sv.y);var c=Rx(yv.x,bv.x,_v.x,Sv.x),d=Rx(yv.y,bv.y,_v.y,Sv.y);t.width=c-t.x,t.height=d-t.y},e})(),Ume="silent";function _ft(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Sft}}function Sft(){zme(this.event)}var kft=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Pf),t4=(function(){function e(t,n){this.x=t,this.y=n}return e})(),xft=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],yN=new lo(0,0,0,0),Hme=(function(e){Nn(t,e);function t(n,r,i,a,s){var l=e.call(this)||this;return l._hovered=new t4(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,i=i||new kft,l.proxy=null,l.setHandlerProxy(i),l._draggingMgr=new ift(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Et(xft,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,a=Wme(this,r,i),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var c=this._hovered=a?new t4(r,i):this.findHover(r,i),d=c.target,h=this.proxy;h.setCursor&&h.setCursor(d?d.cursor:"default"),l&&d!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(c,"mousemove",n),d&&d!==l&&this.dispatchToElement(c,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new t4(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var a=n.target;if(!(a&&a.silent)){for(var s="on"+r,l=_ft(r,n,i);a&&(a[s]&&(l.cancelBubble=!!a[s].call(a,l)),a.trigger(r,l),a=a.__hostTarget?a.__hostTarget:a.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(r,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){typeof c[s]=="function"&&c[s].call(c,l),c.trigger&&c.trigger(r,l)}))}},t.prototype.findHover=function(n,r,i){var a=this.storage.getDisplayList(),s=new t4(n,r);if(goe(a,s,n,r,i),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,d=c/2,h=new lo(n-d,r-d,c,c),p=a.length-1;p>=0;p--){var v=a[p];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(yN.copy(v.getBoundingRect()),v.transform&&yN.applyTransform(v.transform),yN.intersect(h)&&l.push(v))}if(l.length)for(var g=4,y=Math.PI/12,S=Math.PI*2,k=0;k4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Cft(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var s=r.getClipPath();if(s&&!s.contain(t,n))return!1}r.silent&&(i=!0);var l=r.__hostTarget;r=l||r.parent}return i?Ume:!0}return!1}function goe(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var s=e[a],l=void 0;if(s!==i&&!s.ignore&&(l=Cft(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==Ume)){t.target=s;break}}}function Wme(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Gme=32,n4=7;function wft(e){for(var t=0;e>=Gme;)t|=e&1,e>>=1;return e+t}function yoe(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Eft(e,t,n){for(n--;t>>1,i(a,e[c])<0?l=c:s=c+1;var d=r-s;switch(d){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;d>0;)e[s+d]=e[s+d-1],d--}e[s]=a}}function bN(e,t,n,r,i,a){var s=0,l=0,c=1;if(a(e,t[n+i])>0){for(l=r-i;c0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=i,c+=i}else{for(l=i+1;cl&&(c=l);var d=s;s=i-c,c=i-d}for(s++;s>>1);a(e,t[n+h])>0?s=h+1:c=h}return c}function _N(e,t,n,r,i,a){var s=0,l=0,c=1;if(a(e,t[n+i])<0){for(l=i+1;cl&&(c=l);var d=s;s=i-c,c=i-d}else{for(l=r-i;c=0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=i,c+=i}for(s++;s>>1);a(e,t[n+h])<0?c=h:s=h+1}return c}function Tft(e,t){var n=n4,r,i,a=0,s=[];r=[],i=[];function l(g,y){r[a]=g,i[a]=y,a+=1}function c(){for(;a>1;){var g=a-2;if(g>=1&&i[g-1]<=i[g]+i[g+1]||g>=2&&i[g-2]<=i[g]+i[g-1])i[g-1]i[g+1])break;h(g)}}function d(){for(;a>1;){var g=a-2;g>0&&i[g-1]=n4||P>=n4);if(M)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),y===1){for(C=0;C=0;C--)e[D+C]=e[T+C];e[_]=s[E];return}for(var P=n;;){var M=0,O=0,L=!1;do if(t(s[E],e[x])<0){if(e[_--]=e[x--],M++,O=0,--y===0){L=!0;break}}else if(e[_--]=s[E--],O++,M=0,--k===1){L=!0;break}while((M|O)=0;C--)e[D+C]=e[T+C];if(y===0){L=!0;break}}if(e[_--]=s[E--],--k===1){L=!0;break}if(O=k-bN(e[x],s,0,k,k-1,t),O!==0){for(_-=O,E-=O,k-=O,D=_+1,T=E+1,C=0;C=n4||O>=n4);if(L)break;P<0&&(P=0),P+=2}if(n=P,n<1&&(n=1),k===1){for(_-=y,x-=y,D=_+1,T=x+1,C=y-1;C>=0;C--)e[D+C]=e[T+C];e[_]=s[E]}else{if(k===0)throw new Error;for(T=_-(k-1),C=0;Cl&&(c=l),boe(e,n,n+c,n+a,t),a=c}s.pushRun(n,a),s.mergeRuns(),i-=a,n+=a}while(i!==0);s.forceMergeRuns()}}var oc=1,R4=2,j1=4,_oe=!1;function SN(){_oe||(_oe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Soe(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Aft=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Soe}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(SN(),h.z=0),isNaN(h.z2)&&(SN(),h.z2=0),isNaN(h.zlevel)&&(SN(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,n,r);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,n,r);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),iT;iT=Vr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var _b={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-_b.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?_b.bounceIn(e*2)*.5:_b.bounceOut(e*2-1)*.5+.5}},Mx=Math.pow,m0=Math.sqrt,oT=1e-8,Kme=1e-4,koe=m0(3),$x=1/3,lf=y3(),Oc=y3(),my=y3();function o0(e){return e>-oT&&eoT||e<-oT}function Ha(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function xoe(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function sT(e,t,n,r,i,a){var s=r+3*(t-n)-e,l=3*(n-t*2+e),c=3*(t-e),d=e-i,h=l*l-3*s*c,p=l*c-9*s*d,v=c*c-3*l*d,g=0;if(o0(h)&&o0(p))if(o0(l))a[0]=0;else{var y=-c/l;y>=0&&y<=1&&(a[g++]=y)}else{var S=p*p-4*h*v;if(o0(S)){var k=p/h,y=-l/s+k,C=-k/2;y>=0&&y<=1&&(a[g++]=y),C>=0&&C<=1&&(a[g++]=C)}else if(S>0){var x=m0(S),E=h*l+1.5*s*(-p+x),_=h*l+1.5*s*(-p-x);E<0?E=-Mx(-E,$x):E=Mx(E,$x),_<0?_=-Mx(-_,$x):_=Mx(_,$x);var y=(-l-(E+_))/(3*s);y>=0&&y<=1&&(a[g++]=y)}else{var T=(2*h*l-3*s*p)/(2*m0(h*h*h)),D=Math.acos(T)/3,P=m0(h),M=Math.cos(D),y=(-l-2*P*M)/(3*s),C=(-l+P*(M+koe*Math.sin(D)))/(3*s),O=(-l+P*(M-koe*Math.sin(D)))/(3*s);y>=0&&y<=1&&(a[g++]=y),C>=0&&C<=1&&(a[g++]=C),O>=0&&O<=1&&(a[g++]=O)}}return g}function Yme(e,t,n,r,i){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(o0(s)){if(qme(a)){var d=-l/a;d>=0&&d<=1&&(i[c++]=d)}}else{var h=a*a-4*s*l;if(o0(h))i[0]=-a/(2*s);else if(h>0){var p=m0(h),d=(-a+p)/(2*s),v=(-a-p)/(2*s);d>=0&&d<=1&&(i[c++]=d),v>=0&&v<=1&&(i[c++]=v)}}return c}function aT(e,t,n,r,i,a){var s=(t-e)*i+e,l=(n-t)*i+t,c=(r-n)*i+n,d=(l-s)*i+s,h=(c-l)*i+l,p=(h-d)*i+d;a[0]=e,a[1]=s,a[2]=d,a[3]=p,a[4]=p,a[5]=h,a[6]=c,a[7]=r}function Ift(e,t,n,r,i,a,s,l,c,d,h){var p,v=.005,g=1/0,y,S,k,C;lf[0]=c,lf[1]=d;for(var x=0;x<1;x+=.05)Oc[0]=Ha(e,n,i,s,x),Oc[1]=Ha(t,r,a,l,x),k=hy(lf,Oc),k=0&&k=0&&d<=1&&(i[c++]=d)}}else{var h=s*s-4*a*l;if(o0(h)){var d=-s/(2*a);d>=0&&d<=1&&(i[c++]=d)}else if(h>0){var p=m0(h),d=(-s+p)/(2*a),v=(-s-p)/(2*a);d>=0&&d<=1&&(i[c++]=d),v>=0&&v<=1&&(i[c++]=v)}}return c}function Xme(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function lT(e,t,n,r,i){var a=(t-e)*r+e,s=(n-t)*r+t,l=(s-a)*r+a;i[0]=e,i[1]=a,i[2]=l,i[3]=l,i[4]=s,i[5]=n}function Pft(e,t,n,r,i,a,s,l,c){var d,h=.005,p=1/0;lf[0]=s,lf[1]=l;for(var v=0;v<1;v+=.05){Oc[0]=_u(e,n,i,v),Oc[1]=_u(t,r,a,v);var g=hy(lf,Oc);g=0&&g=1?1:sT(0,r,a,1,c,l)&&Ha(0,i,s,1,l[0])}}}var $ft=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Lu,this.ondestroy=t.ondestroy||Lu,this.onrestart=t.onrestart||Lu,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var s=this.easingFunc,l=s?s(a):a;if(this.onframe(l),a===1)if(this.loop){var c=i%r;this._startTime=t-c,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ni(t)?t:_b[t]||Zme(t)},e})(),Jme=(function(){function e(t){this.value=t}return e})(),Oft=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new Jme(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),vS=(function(){function e(t){this._list=new Oft,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,a=null;if(i[t]==null){var s=r.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var c=r.head;r.remove(c),delete i[c.key],a=c.value,this._lastRemovedEntry=c}l?l.value=n:l=new Jme(n),l.key=t,r.insertEntry(l),i[t]=l}return a},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),woe={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function g0(e){return e=Math.round(e),e<0?0:e>255?255:e}function zV(e){return e<0?0:e>1?1:e}function kN(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?g0(parseFloat(t)/100*255):g0(parseInt(t,10))}function Sb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?zV(parseFloat(t)/100):zV(parseFloat(t))}function xN(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Ox(e,t,n){return e+(t-e)*n}function Ic(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function UV(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Qme=new vS(20),Bx=null;function p1(e,t){Bx&&UV(Bx,t),Bx=Qme.put(e,Bx||t.slice())}function Rh(e,t){if(e){t=t||[];var n=Qme.get(e);if(n)return UV(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in woe)return UV(t,woe[r]),p1(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ic(t,0,0,0,1);return}return Ic(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),p1(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ic(t,0,0,0,1);return}return Ic(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),p1(e,t),t}return}var s=r.indexOf("("),l=r.indexOf(")");if(s!==-1&&l+1===i){var c=r.substr(0,s),d=r.substr(s+1,l-(s+1)).split(","),h=1;switch(c){case"rgba":if(d.length!==4)return d.length===3?Ic(t,+d[0],+d[1],+d[2],1):Ic(t,0,0,0,1);h=Sb(d.pop());case"rgb":if(d.length>=3)return Ic(t,kN(d[0]),kN(d[1]),kN(d[2]),d.length===3?h:Sb(d[3])),p1(e,t),t;Ic(t,0,0,0,1);return;case"hsla":if(d.length!==4){Ic(t,0,0,0,1);return}return d[3]=Sb(d[3]),Eoe(d,t),p1(e,t),t;case"hsl":if(d.length!==3){Ic(t,0,0,0,1);return}return Eoe(d,t),p1(e,t),t;default:return}}Ic(t,0,0,0,1)}}function Eoe(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Sb(e[1]),i=Sb(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=i*2-a;return t=t||[],Ic(t,g0(xN(s,a,n+1/3)*255),g0(xN(s,a,n)*255),g0(xN(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Toe(e,t){var n=Rh(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return kA(n,n.length===4?"rgba":"rgb")}}function Bft(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),s=Rh(t[i]),l=Rh(t[a]),c=r-i,d=kA([g0(Ox(s[0],l[0],c)),g0(Ox(s[1],l[1],c)),g0(Ox(s[2],l[2],c)),zV(Ox(s[3],l[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:a,value:r}:d}}function kA(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function uT(e,t){var n=Rh(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Aoe=new vS(100);function Ioe(e){if(br(e)){var t=Aoe.get(e);return t||(t=Toe(e,-.1),Aoe.put(e,t)),t}else if(_A(e)){var n=yn({},e);return n.colorStops=Cr(e.colorStops,function(r){return{offset:r.offset,color:Toe(r.color,-.1)}}),n}return e}function Nft(e){return e.type==="linear"}function Fft(e){return e.type==="radial"}(function(){return Vr.hasGlobalWindow&&ni(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var HV=Array.prototype.slice;function ph(e,t,n){return(t-e)*n+e}function CN(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),s=i[a-1]||{color:[0,0,0,0],offset:0},l=a;ls;if(l)r.length=s;else for(var c=a;c=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,a=i.length,s=!1,l=Doe,c=n;if(Ru(n)){var d=Uft(n);l=d,(d===1&&!Io(n[0])||d===2&&!Io(n[0][0]))&&(s=!0)}else if(Io(n)&&!rT(n))l=Fx;else if(br(n))if(!isNaN(+n))l=Fx;else{var h=Rh(n);h&&(c=h,l=M4)}else if(_A(n)){var p=yn({},c);p.colorStops=Cr(n.colorStops,function(g){return{offset:g.offset,color:Rh(g.color)}}),Nft(n)?l=WV:Fft(n)&&(l=GV),c=p}a===0?this.valType=l:(l!==this.valType||l===Doe)&&(s=!0),this.discrete=this.discrete||s;var v={time:t,value:c,rawValue:n,percent:0};return r&&(v.easing=r,v.easingFunc=ni(r)?r:_b[r]||Zme(r)),i.push(v),v},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(S,k){return S.time-k.time});for(var i=this.valType,a=r.length,s=r[a-1],l=this.discrete,c=jx(i),d=Poe(i),h=0;h=0&&!(s[h].percent<=n);h--);h=v(h,l-2)}else{for(h=p;hn);h++);h=v(h-1,l-2)}y=s[h+1],g=s[h]}if(g&&y){this._lastFr=h,this._lastFrP=n;var k=y.percent-g.percent,C=k===0?1:v((n-g.percent)/k,1);y.easingFunc&&(C=y.easingFunc(C));var x=r?this._additiveValue:d?r4:t[c];if((jx(a)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)t[c]=C<1?g.rawValue:y.rawValue;else if(jx(a))a===GE?CN(x,g[i],y[i],C):jft(x,g[i],y[i],C);else if(Poe(a)){var E=g[i],_=y[i],T=a===WV;t[c]={type:T?"linear":"radial",x:ph(E.x,_.x,C),y:ph(E.y,_.y,C),colorStops:Cr(E.colorStops,function(P,M){var O=_.colorStops[M];return{offset:ph(P.offset,O.offset,C),color:WE(CN([],P.color,O.color,C))}}),global:_.global},T?(t[c].x2=ph(E.x2,_.x2,C),t[c].y2=ph(E.y2,_.y2,C)):t[c].r=ph(E.r,_.r,C)}else if(d)CN(x,g[i],y[i],C),r||(t[c]=WE(x));else{var D=ph(g[i],y[i],C);r?this._additiveValue=D:t[c]=D}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===Fx?t[r]=t[r]+i:n===M4?(Rh(t[r],r4),Nx(r4,r4,i,1),t[r]=WE(r4)):n===GE?Nx(t[r],t[r],i,1):n===ege&&Loe(t[r],t[r],i,1)},e})(),AW=(function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){kW("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,ts(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,HE(d),i),this._trackKeys.push(l)}c.addKeyframe(t,HE(n[l]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,a=0;a1){var l=s.pop();a.addKeyframe(l.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function Y1(){return new Date().getTime()}var Wft=(function(e){Nn(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=Y1()-this._pausedTime,i=r-this._time,a=this._head;a;){var s=a.next,l=a.step(r,i);l&&(a.ondestroy(),this.removeClip(a)),a=s}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(iT(r),!n._paused&&n.update())}iT(r)},t.prototype.start=function(){this._running||(this._time=Y1(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Y1(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Y1()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new AW(n,r.loop);return this.addAnimator(i),i},t})(Pf),Gft=300,wN=Vr.domSupported,EN=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Cr(e,function(i){var a=i.replace("mouse","pointer");return n.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:r}})(),Roe={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Moe=!1;function KV(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Kft(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function TN(e){e&&(e.zrByTouch=!0)}function qft(e,t){return Lc(e.dom,new Yft(e,t),!0)}function tge(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Yft=(function(){function e(t,n){this.stopPropagation=Lu,this.stopImmediatePropagation=Lu,this.preventDefault=Lu,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),bd={mousedown:function(e){e=Lc(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Lc(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Lc(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Lc(this.dom,e);var t=e.toElement||e.relatedTarget;tge(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Moe=!0,e=Lc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Moe||(e=Lc(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Lc(this.dom,e),TN(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),bd.mousemove.call(this,e),bd.mousedown.call(this,e)},touchmove:function(e){e=Lc(this.dom,e),TN(e),this.handler.processGesture(e,"change"),bd.mousemove.call(this,e)},touchend:function(e){e=Lc(this.dom,e),TN(e),this.handler.processGesture(e,"end"),bd.mouseup.call(this,e),+new Date-+this.__lastTouchMomentBoe||e<-Boe}var xv=[],v1=[],IN=py(),LN=Math.abs,IW=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return kv(this.rotation)||kv(this.x)||kv(this.y)||kv(this.scaleX-1)||kv(this.scaleY-1)||kv(this.skewX)||kv(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(Ooe(r),this.invTransform=null);return}r=r||py(),n?this.getLocalTransform(r):Ooe(r),t&&(n?vy(r,t,r):yft(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(xv);var r=xv[0]<0?-1:1,i=xv[1]<0?-1:1,a=((xv[0]-r)*n+r)/xv[0]||0,s=((xv[1]-i)*n+i)/xv[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||py(),TW(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||py(),vy(v1,t.invTransform,n),n=v1);var r=this.originX,i=this.originY;(r||i)&&(IN[4]=r,IN[5]=i,vy(v1,n,IN),v1[4]-=r,v1[5]-=i,n=v1),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Gc(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Gc(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&LN(t[0]-1)>1e-10&&LN(t[3]-1)>1e-10?Math.sqrt(LN(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){eht(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,a=t.scaleX,s=t.scaleY,l=t.anchorX,c=t.anchorY,d=t.rotation||0,h=t.x,p=t.y,v=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(r||i||l||c){var y=r+l,S=i+c;n[4]=-y*a-v*S*s,n[5]=-S*s-g*y*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=g*a,n[2]=v*s,d&&EW(n,n,d),n[4]+=r+h,n[5]+=i+p,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),h_=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function eht(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function dT(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,a=n.height,s=n.width,l=a/2,c=n.x,d=n.y,h="left",p="top";if(r instanceof Array)c+=I0(r[0],n.width),d+=I0(r[1],n.height),h=null,p=null;else switch(r){case"left":c-=i,d+=l,h="right",p="middle";break;case"right":c+=i+s,d+=l,p="middle";break;case"top":c+=s/2,d-=i,h="center",p="bottom";break;case"bottom":c+=s/2,d+=a+i,h="center";break;case"inside":c+=s/2,d+=l,h="center",p="middle";break;case"insideLeft":c+=i,d+=l,p="middle";break;case"insideRight":c+=s-i,d+=l,h="right",p="middle";break;case"insideTop":c+=s/2,d+=i,h="center";break;case"insideBottom":c+=s/2,d+=a-i,h="center",p="bottom";break;case"insideTopLeft":c+=i,d+=i;break;case"insideTopRight":c+=s-i,d+=i,h="right";break;case"insideBottomLeft":c+=i,d+=a-i,p="bottom";break;case"insideBottomRight":c+=s-i,d+=a-i,h="right",p="bottom";break}return e=e||{},e.x=c,e.y=d,e.align=h,e.verticalAlign=p,e}var DN="__zr_normal__",PN=h_.concat(["ignore"]),tht=A0(h_,function(e,t){return e[t]=!0,e},{ignore:!1}),m1={},nht=new lo(0,0,0,0),xA=(function(){function e(t){this.id=Ome(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,a=n.innerTransformable,s=void 0,l=void 0,c=!1;a.parent=i?this:null;var d=!1;if(a.copyTransform(n),r.position!=null){var h=nht;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(m1,r,h):dT(m1,r,h),a.x=m1.x,a.y=m1.y,s=m1.align,l=m1.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var v=void 0,g=void 0;p==="center"?(v=h.width*.5,g=h.height*.5):(v=I0(p[0],h.width),g=I0(p[1],h.height)),d=!0,a.originX=-a.x+v+(i?0:h.x),a.originY=-a.y+g+(i?0:h.y)}}r.rotation!=null&&(a.rotation=r.rotation);var y=r.offset;y&&(a.x+=y[0],a.y+=y[1],d||(a.originX=-y[0],a.originY=-y[1]));var S=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,k=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),C=void 0,x=void 0,E=void 0;S&&this.canBeInsideText()?(C=r.insideFill,x=r.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(C),E=!0)):(C=r.outsideFill,x=r.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(C),E=!0)),C=C||"#000",(C!==k.fill||x!==k.stroke||E!==k.autoStroke||s!==k.align||l!==k.verticalAlign)&&(c=!0,k.fill=C,k.stroke=x,k.autoStroke=E,k.align=s,k.verticalAlign=l,n.setDefaultTextStyle(k)),n.__dirty|=oc,c&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ZV:XV},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Rh(n);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),s=0;s<3;s++)r[s]=r[s]*i+(a?0:255)*(1-i);return r[3]=1,kA(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},yn(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Ir(t))for(var r=t,i=ts(r),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(DN,!1,t)},e.prototype.useState=function(t,n,r,i){var a=t===DN,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(go(l,t)>=0&&(n||l.length===1))){var d;if(this.stateProxy&&!a&&(d=this.stateProxy(t)),d||(d=this.states&&this.states[t]),!d&&!a){kW("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(d);var h=!!(d&&d.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,d,this._normalState,n,!r&&!this.__inHover&&c&&c.duration>0,c);var p=this._textContent,v=this._textGuide;return p&&p.useState(t,n,r,h),v&&v.useState(t,n,r,h),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oc),d}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,s=t.length,l=s===a.length;if(l){for(var c=0;c0,y);var S=this._textContent,k=this._textGuide;S&&S.useStates(t,n,v),k&&k.useStates(t,n,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oc)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),a=go(i,t),s=go(i,n)>=0;a>=0?s?i.splice(a,1):i[a]=n:r&&!s&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i=0&&a.splice(s,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,a=[],s=0;s0&&n.during&&a[0].during(function(y,S){n.during(S)});for(var v=0;v0||i.force&&!s.length){var M=void 0,O=void 0,L=void 0;if(l){O={},v&&(M={});for(var _=0;_=0&&(i.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=go(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,a=i[r];if(n&&n!==this&&n.parent!==this&&n!==a){i[r]=n,a.parent=null;var s=this.__zr;s&&a.removeSelfFromZr(s),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,a=go(i,n);return a<0?this:(i.splice(a,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i"u"&&typeof self<"u"?zr.worker=!0:!zr.hasGlobalWindow||"Deno"in window?(zr.node=!0,zr.svgSupported=!0):jdt(navigator.userAgent,zr);function jdt(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),s&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var bW=12,Vdt="sans-serif",Fm=bW+"px "+Vdt,zdt=20,Udt=100,Hdt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Wdt(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)l=s*n.length;else for(var c=0;c>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",i[d]+":0",r[1-c]+":auto",i[1-d]+":auto",""].join("!important;"),e.appendChild(s),n.push(s)}return n}function vft(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,s=[],l=[],c=!0,d=0;d<4;d++){var h=e[d].getBoundingClientRect(),p=2*d,v=h.left,g=h.top;s.push(v,g),c=c&&a&&v===a[p]&&g===a[p+1],l.push(e[d].offsetLeft,e[d].offsetTop)}return c&&i?i:(t.srcCoords=s,t[r]=n?hoe(l,s):hoe(s,l))}function Vme(e){return e.nodeName.toUpperCase()==="CANVAS"}var mft=/([&<>"'])/g,gft={"&":"&","<":"<",">":">",'"':""","'":"'"};function _u(e){return e==null?"":(e+"").replace(mft,function(t,n){return gft[n]})}var yft=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yN=[],bft=zr.browser.firefox&&+zr.browser.version.split(".")[0]<39;function zV(e,t,n,r){return n=n||{},r?voe(e,t,n):bft&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):voe(e,t,n),n}function voe(e,t,n){if(zr.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Vme(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(VV(yN,e,r,i)){n.zrX=yN[0],n.zrY=yN[1];return}}n.zrX=n.zrY=0}function xW(e){return e||window.event}function Pc(e,t,n){if(t=xW(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var s=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];s&&zV(e,s,t,n)}else{zV(e,t,t,n);var a=_ft(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&yft.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function _ft(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Sft(e,t,n,r){e.addEventListener(t,n,r)}function kft(e,t,n,r){e.removeEventListener(t,n,r)}var zme=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},wft=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var a={points:[],touches:[],target:n,event:t},s=0,l=i.length;s1&&r&&r.length>1){var a=moe(r)/moe(i);!isFinite(a)&&(a=1),t.pinchScale=a;var s=xft(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function vy(){return[1,0,0,1,0,0]}function CW(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Cft(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function my(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],s=t[1]*n[2]+t[3]*n[3],l=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=s,e[4]=l,e[5]=c,e}function UV(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function EW(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],s=t[4],l=t[1],c=t[3],d=t[5],h=Math.sin(n),p=Math.cos(n);return e[0]=i*p+l*h,e[1]=-i*h+l*p,e[2]=a*p+c*h,e[3]=-a*h+p*c,e[4]=p*(s-r[0])+h*(d-r[1])+r[0],e[5]=p*(d-r[1])-h*(s-r[0])+r[1],e}function Eft(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function TW(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],s=t[3],l=t[5],c=n*s-a*r;return c?(c=1/c,e[0]=s*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*l-s*i)*c,e[5]=(a*i-n*l)*c,e):null}var Gr=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var a=1-i;t.x=a*n.x+i*r.x,t.y=a*n.y+i*r.y},e})(),Pw=Math.min,Rw=Math.max,Sv=new Gr,kv=new Gr,wv=new Gr,xv=new Gr,Q2=new Gr,e4=new Gr,lo=(function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=Pw(t.x,this.x),r=Pw(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Rw(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Rw(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,a=vy();return UV(a,a,[-n.x,-n.y]),Eft(a,a,[r,i]),UV(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,c=t.x,d=t.x+t.width,h=t.y,p=t.y+t.height,v=!(ay&&(y=E,Sy&&(y=_,w=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],s=r[4],l=r[5];t.x=n.x*i+s,t.y=n.y*a+l,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Sv.x=wv.x=n.x,Sv.y=xv.y=n.y,kv.x=xv.x=n.x+n.width,kv.y=wv.y=n.y+n.height,Sv.transform(r),xv.transform(r),kv.transform(r),wv.transform(r),t.x=Pw(Sv.x,kv.x,wv.x,xv.x),t.y=Pw(Sv.y,kv.y,wv.y,xv.y);var c=Rw(Sv.x,kv.x,wv.x,xv.x),d=Rw(Sv.y,kv.y,wv.y,xv.y);t.width=c-t.x,t.height=d-t.y},e})(),Ume="silent";function Tft(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Aft}}function Aft(){zme(this.event)}var Ift=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Pf),t4=(function(){function e(t,n){this.x=t,this.y=n}return e})(),Lft=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_N=new lo(0,0,0,0),Hme=(function(e){Nn(t,e);function t(n,r,i,a,s){var l=e.call(this)||this;return l._hovered=new t4(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,i=i||new Ift,l.proxy=null,l.setHandlerProxy(i),l._draggingMgr=new dft(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Et(Lft,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,a=Wme(this,r,i),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var c=this._hovered=a?new t4(r,i):this.findHover(r,i),d=c.target,h=this.proxy;h.setCursor&&h.setCursor(d?d.cursor:"default"),l&&d!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(c,"mousemove",n),d&&d!==l&&this.dispatchToElement(c,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new t4(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var a=n.target;if(!(a&&a.silent)){for(var s="on"+r,l=Tft(r,n,i);a&&(a[s]&&(l.cancelBubble=!!a[s].call(a,l)),a.trigger(r,l),a=a.__hostTarget?a.__hostTarget:a.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(r,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){typeof c[s]=="function"&&c[s].call(c,l),c.trigger&&c.trigger(r,l)}))}},t.prototype.findHover=function(n,r,i){var a=this.storage.getDisplayList(),s=new t4(n,r);if(goe(a,s,n,r,i),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,d=c/2,h=new lo(n-d,r-d,c,c),p=a.length-1;p>=0;p--){var v=a[p];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(_N.copy(v.getBoundingRect()),v.transform&&_N.applyTransform(v.transform),_N.intersect(h)&&l.push(v))}if(l.length)for(var g=4,y=Math.PI/12,S=Math.PI*2,k=0;k4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Dft(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var s=r.getClipPath();if(s&&!s.contain(t,n))return!1}r.silent&&(i=!0);var l=r.__hostTarget;r=l||r.parent}return i?Ume:!0}return!1}function goe(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var s=e[a],l=void 0;if(s!==i&&!s.ignore&&(l=Dft(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==Ume)){t.target=s;break}}}function Wme(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Gme=32,n4=7;function Pft(e){for(var t=0;e>=Gme;)t|=e&1,e>>=1;return e+t}function yoe(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Rft(e,t,n){for(n--;t>>1,i(a,e[c])<0?l=c:s=c+1;var d=r-s;switch(d){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;d>0;)e[s+d]=e[s+d-1],d--}e[s]=a}}function SN(e,t,n,r,i,a){var s=0,l=0,c=1;if(a(e,t[n+i])>0){for(l=r-i;c0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=i,c+=i}else{for(l=i+1;cl&&(c=l);var d=s;s=i-c,c=i-d}for(s++;s>>1);a(e,t[n+h])>0?s=h+1:c=h}return c}function kN(e,t,n,r,i,a){var s=0,l=0,c=1;if(a(e,t[n+i])<0){for(l=i+1;cl&&(c=l);var d=s;s=i-c,c=i-d}else{for(l=r-i;c=0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=i,c+=i}for(s++;s>>1);a(e,t[n+h])<0?c=h:s=h+1}return c}function Mft(e,t){var n=n4,r,i,a=0,s=[];r=[],i=[];function l(g,y){r[a]=g,i[a]=y,a+=1}function c(){for(;a>1;){var g=a-2;if(g>=1&&i[g-1]<=i[g]+i[g+1]||g>=2&&i[g-2]<=i[g]+i[g-1])i[g-1]i[g+1])break;h(g)}}function d(){for(;a>1;){var g=a-2;g>0&&i[g-1]=n4||P>=n4);if(M)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),y===1){for(w=0;w=0;w--)e[D+w]=e[T+w];e[_]=s[E];return}for(var P=n;;){var M=0,$=0,L=!1;do if(t(s[E],e[x])<0){if(e[_--]=e[x--],M++,$=0,--y===0){L=!0;break}}else if(e[_--]=s[E--],$++,M=0,--k===1){L=!0;break}while((M|$)=0;w--)e[D+w]=e[T+w];if(y===0){L=!0;break}}if(e[_--]=s[E--],--k===1){L=!0;break}if($=k-SN(e[x],s,0,k,k-1,t),$!==0){for(_-=$,E-=$,k-=$,D=_+1,T=E+1,w=0;w<$;w++)e[D+w]=s[T+w];if(k<=1){L=!0;break}}if(e[_--]=e[x--],--y===0){L=!0;break}P--}while(M>=n4||$>=n4);if(L)break;P<0&&(P=0),P+=2}if(n=P,n<1&&(n=1),k===1){for(_-=y,x-=y,D=_+1,T=x+1,w=y-1;w>=0;w--)e[D+w]=e[T+w];e[_]=s[E]}else{if(k===0)throw new Error;for(T=_-(k-1),w=0;wl&&(c=l),boe(e,n,n+c,n+a,t),a=c}s.pushRun(n,a),s.mergeRuns(),i-=a,n+=a}while(i!==0);s.forceMergeRuns()}}var ac=1,R4=2,V1=4,_oe=!1;function wN(){_oe||(_oe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Soe(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Oft=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Soe}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(wN(),h.z=0),isNaN(h.z2)&&(wN(),h.z2=0),isNaN(h.zlevel)&&(wN(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,n,r);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,n,r);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),oT;oT=zr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var _b={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-_b.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?_b.bounceIn(e*2)*.5:_b.bounceOut(e*2-1)*.5+.5}},Mw=Math.pow,g0=Math.sqrt,sT=1e-8,Kme=1e-4,koe=g0(3),Ow=1/3,lf=y3(),Bc=y3(),gy=y3();function s0(e){return e>-sT&&esT||e<-sT}function Ha(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function woe(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function aT(e,t,n,r,i,a){var s=r+3*(t-n)-e,l=3*(n-t*2+e),c=3*(t-e),d=e-i,h=l*l-3*s*c,p=l*c-9*s*d,v=c*c-3*l*d,g=0;if(s0(h)&&s0(p))if(s0(l))a[0]=0;else{var y=-c/l;y>=0&&y<=1&&(a[g++]=y)}else{var S=p*p-4*h*v;if(s0(S)){var k=p/h,y=-l/s+k,w=-k/2;y>=0&&y<=1&&(a[g++]=y),w>=0&&w<=1&&(a[g++]=w)}else if(S>0){var x=g0(S),E=h*l+1.5*s*(-p+x),_=h*l+1.5*s*(-p-x);E<0?E=-Mw(-E,Ow):E=Mw(E,Ow),_<0?_=-Mw(-_,Ow):_=Mw(_,Ow);var y=(-l-(E+_))/(3*s);y>=0&&y<=1&&(a[g++]=y)}else{var T=(2*h*l-3*s*p)/(2*g0(h*h*h)),D=Math.acos(T)/3,P=g0(h),M=Math.cos(D),y=(-l-2*P*M)/(3*s),w=(-l+P*(M+koe*Math.sin(D)))/(3*s),$=(-l+P*(M-koe*Math.sin(D)))/(3*s);y>=0&&y<=1&&(a[g++]=y),w>=0&&w<=1&&(a[g++]=w),$>=0&&$<=1&&(a[g++]=$)}}return g}function Yme(e,t,n,r,i){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(s0(s)){if(qme(a)){var d=-l/a;d>=0&&d<=1&&(i[c++]=d)}}else{var h=a*a-4*s*l;if(s0(h))i[0]=-a/(2*s);else if(h>0){var p=g0(h),d=(-a+p)/(2*s),v=(-a-p)/(2*s);d>=0&&d<=1&&(i[c++]=d),v>=0&&v<=1&&(i[c++]=v)}}return c}function lT(e,t,n,r,i,a){var s=(t-e)*i+e,l=(n-t)*i+t,c=(r-n)*i+n,d=(l-s)*i+s,h=(c-l)*i+l,p=(h-d)*i+d;a[0]=e,a[1]=s,a[2]=d,a[3]=p,a[4]=p,a[5]=h,a[6]=c,a[7]=r}function $ft(e,t,n,r,i,a,s,l,c,d,h){var p,v=.005,g=1/0,y,S,k,w;lf[0]=c,lf[1]=d;for(var x=0;x<1;x+=.05)Bc[0]=Ha(e,n,i,s,x),Bc[1]=Ha(t,r,a,l,x),k=py(lf,Bc),k=0&&k=0&&d<=1&&(i[c++]=d)}}else{var h=s*s-4*a*l;if(s0(h)){var d=-s/(2*a);d>=0&&d<=1&&(i[c++]=d)}else if(h>0){var p=g0(h),d=(-s+p)/(2*a),v=(-s-p)/(2*a);d>=0&&d<=1&&(i[c++]=d),v>=0&&v<=1&&(i[c++]=v)}}return c}function Xme(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function uT(e,t,n,r,i){var a=(t-e)*r+e,s=(n-t)*r+t,l=(s-a)*r+a;i[0]=e,i[1]=a,i[2]=l,i[3]=l,i[4]=s,i[5]=n}function Fft(e,t,n,r,i,a,s,l,c){var d,h=.005,p=1/0;lf[0]=s,lf[1]=l;for(var v=0;v<1;v+=.05){Bc[0]=Su(e,n,i,v),Bc[1]=Su(t,r,a,v);var g=py(lf,Bc);g=0&&g=1?1:aT(0,r,a,1,c,l)&&Ha(0,i,s,1,l[0])}}}var zft=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Du,this.ondestroy=t.ondestroy||Du,this.onrestart=t.onrestart||Du,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var s=this.easingFunc,l=s?s(a):a;if(this.onframe(l),a===1)if(this.loop){var c=i%r;this._startTime=t-c,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ii(t)?t:_b[t]||Zme(t)},e})(),Jme=(function(){function e(t){this.value=t}return e})(),Uft=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new Jme(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),mS=(function(){function e(t){this._list=new Uft,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,a=null;if(i[t]==null){var s=r.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var c=r.head;r.remove(c),delete i[c.key],a=c.value,this._lastRemovedEntry=c}l?l.value=n:l=new Jme(n),l.key=t,r.insertEntry(l),i[t]=l}return a},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),Coe={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function y0(e){return e=Math.round(e),e<0?0:e>255?255:e}function HV(e){return e<0?0:e>1?1:e}function xN(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?y0(parseFloat(t)/100*255):y0(parseInt(t,10))}function Sb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?HV(parseFloat(t)/100):HV(parseFloat(t))}function CN(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function $w(e,t,n){return e+(t-e)*n}function Dc(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function WV(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Qme=new mS(20),Bw=null;function v1(e,t){Bw&&WV(Bw,t),Bw=Qme.put(e,Bw||t.slice())}function Oh(e,t){if(e){t=t||[];var n=Qme.get(e);if(n)return WV(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in Coe)return WV(t,Coe[r]),v1(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Dc(t,0,0,0,1);return}return Dc(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),v1(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Dc(t,0,0,0,1);return}return Dc(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),v1(e,t),t}return}var s=r.indexOf("("),l=r.indexOf(")");if(s!==-1&&l+1===i){var c=r.substr(0,s),d=r.substr(s+1,l-(s+1)).split(","),h=1;switch(c){case"rgba":if(d.length!==4)return d.length===3?Dc(t,+d[0],+d[1],+d[2],1):Dc(t,0,0,0,1);h=Sb(d.pop());case"rgb":if(d.length>=3)return Dc(t,xN(d[0]),xN(d[1]),xN(d[2]),d.length===3?h:Sb(d[3])),v1(e,t),t;Dc(t,0,0,0,1);return;case"hsla":if(d.length!==4){Dc(t,0,0,0,1);return}return d[3]=Sb(d[3]),Eoe(d,t),v1(e,t),t;case"hsl":if(d.length!==3){Dc(t,0,0,0,1);return}return Eoe(d,t),v1(e,t),t;default:return}}Dc(t,0,0,0,1)}}function Eoe(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Sb(e[1]),i=Sb(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=i*2-a;return t=t||[],Dc(t,y0(CN(s,a,n+1/3)*255),y0(CN(s,a,n)*255),y0(CN(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Toe(e,t){var n=Oh(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return xA(n,n.length===4?"rgba":"rgb")}}function Hft(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),s=Oh(t[i]),l=Oh(t[a]),c=r-i,d=xA([y0($w(s[0],l[0],c)),y0($w(s[1],l[1],c)),y0($w(s[2],l[2],c)),HV($w(s[3],l[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:a,value:r}:d}}function xA(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function cT(e,t){var n=Oh(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Aoe=new mS(100);function Ioe(e){if(br(e)){var t=Aoe.get(e);return t||(t=Toe(e,-.1),Aoe.put(e,t)),t}else if(kA(e)){var n=yn({},e);return n.colorStops=xr(e.colorStops,function(r){return{offset:r.offset,color:Toe(r.color,-.1)}}),n}return e}function Wft(e){return e.type==="linear"}function Gft(e){return e.type==="radial"}(function(){return zr.hasGlobalWindow&&ii(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var GV=Array.prototype.slice;function mh(e,t,n){return(t-e)*n+e}function EN(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),s=i[a-1]||{color:[0,0,0,0],offset:0},l=a;ls;if(l)r.length=s;else for(var c=a;c=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,a=i.length,s=!1,l=Doe,c=n;if(Mu(n)){var d=Xft(n);l=d,(d===1&&!Io(n[0])||d===2&&!Io(n[0][0]))&&(s=!0)}else if(Io(n)&&!iT(n))l=Fw;else if(br(n))if(!isNaN(+n))l=Fw;else{var h=Oh(n);h&&(c=h,l=M4)}else if(kA(n)){var p=yn({},c);p.colorStops=xr(n.colorStops,function(g){return{offset:g.offset,color:Oh(g.color)}}),Wft(n)?l=KV:Gft(n)&&(l=qV),c=p}a===0?this.valType=l:(l!==this.valType||l===Doe)&&(s=!0),this.discrete=this.discrete||s;var v={time:t,value:c,rawValue:n,percent:0};return r&&(v.easing=r,v.easingFunc=ii(r)?r:_b[r]||Zme(r)),i.push(v),v},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(S,k){return S.time-k.time});for(var i=this.valType,a=r.length,s=r[a-1],l=this.discrete,c=jw(i),d=Poe(i),h=0;h=0&&!(s[h].percent<=n);h--);h=v(h,l-2)}else{for(h=p;hn);h++);h=v(h-1,l-2)}y=s[h+1],g=s[h]}if(g&&y){this._lastFr=h,this._lastFrP=n;var k=y.percent-g.percent,w=k===0?1:v((n-g.percent)/k,1);y.easingFunc&&(w=y.easingFunc(w));var x=r?this._additiveValue:d?r4:t[c];if((jw(a)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)t[c]=w<1?g.rawValue:y.rawValue;else if(jw(a))a===KE?EN(x,g[i],y[i],w):Kft(x,g[i],y[i],w);else if(Poe(a)){var E=g[i],_=y[i],T=a===KV;t[c]={type:T?"linear":"radial",x:mh(E.x,_.x,w),y:mh(E.y,_.y,w),colorStops:xr(E.colorStops,function(P,M){var $=_.colorStops[M];return{offset:mh(P.offset,$.offset,w),color:GE(EN([],P.color,$.color,w))}}),global:_.global},T?(t[c].x2=mh(E.x2,_.x2,w),t[c].y2=mh(E.y2,_.y2,w)):t[c].r=mh(E.r,_.r,w)}else if(d)EN(x,g[i],y[i],w),r||(t[c]=GE(x));else{var D=mh(g[i],y[i],w);r?this._additiveValue=D:t[c]=D}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===Fw?t[r]=t[r]+i:n===M4?(Oh(t[r],r4),Nw(r4,r4,i,1),t[r]=GE(r4)):n===KE?Nw(t[r],t[r],i,1):n===ege&&Loe(t[r],t[r],i,1)},e})(),AW=(function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){kW("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,ns(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,WE(d),i),this._trackKeys.push(l)}c.addKeyframe(t,WE(n[l]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,a=0;a1){var l=s.pop();a.addKeyframe(l.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function X1(){return new Date().getTime()}var Jft=(function(e){Nn(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=X1()-this._pausedTime,i=r-this._time,a=this._head;a;){var s=a.next,l=a.step(r,i);l&&(a.ondestroy(),this.removeClip(a)),a=s}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(oT(r),!n._paused&&n.update())}oT(r)},t.prototype.start=function(){this._running||(this._time=X1(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=X1(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=X1()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new AW(n,r.loop);return this.addAnimator(i),i},t})(Pf),Qft=300,TN=zr.domSupported,AN=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=xr(e,function(i){var a=i.replace("mouse","pointer");return n.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:r}})(),Roe={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Moe=!1;function YV(e){var t=e.pointerType;return t==="pen"||t==="touch"}function eht(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function IN(e){e&&(e.zrByTouch=!0)}function tht(e,t){return Pc(e.dom,new nht(e,t),!0)}function tge(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var nht=(function(){function e(t,n){this.stopPropagation=Du,this.stopImmediatePropagation=Du,this.preventDefault=Du,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),bd={mousedown:function(e){e=Pc(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Pc(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Pc(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Pc(this.dom,e);var t=e.toElement||e.relatedTarget;tge(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Moe=!0,e=Pc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Moe||(e=Pc(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Pc(this.dom,e),IN(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),bd.mousemove.call(this,e),bd.mousedown.call(this,e)},touchmove:function(e){e=Pc(this.dom,e),IN(e),this.handler.processGesture(e,"change"),bd.mousemove.call(this,e)},touchend:function(e){e=Pc(this.dom,e),IN(e),this.handler.processGesture(e,"end"),bd.mouseup.call(this,e),+new Date-+this.__lastTouchMomentBoe||e<-Boe}var Ev=[],m1=[],DN=vy(),PN=Math.abs,IW=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Cv(this.rotation)||Cv(this.x)||Cv(this.y)||Cv(this.scaleX-1)||Cv(this.scaleY-1)||Cv(this.skewX)||Cv(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&($oe(r),this.invTransform=null);return}r=r||vy(),n?this.getLocalTransform(r):$oe(r),t&&(n?my(r,t,r):Cft(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Ev);var r=Ev[0]<0?-1:1,i=Ev[1]<0?-1:1,a=((Ev[0]-r)*n+r)/Ev[0]||0,s=((Ev[1]-i)*n+i)/Ev[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||vy(),TW(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||vy(),my(m1,t.invTransform,n),n=m1);var r=this.originX,i=this.originY;(r||i)&&(DN[4]=r,DN[5]=i,my(m1,n,DN),m1[4]-=r,m1[5]-=i,n=m1),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Gc(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Gc(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&PN(t[0]-1)>1e-10&&PN(t[3]-1)>1e-10?Math.sqrt(PN(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){aht(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,a=t.scaleX,s=t.scaleY,l=t.anchorX,c=t.anchorY,d=t.rotation||0,h=t.x,p=t.y,v=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(r||i||l||c){var y=r+l,S=i+c;n[4]=-y*a-v*S*s,n[5]=-S*s-g*y*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=g*a,n[2]=v*s,d&&EW(n,n,d),n[4]+=r+h,n[5]+=i+p,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),p_=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function aht(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function fT(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,a=n.height,s=n.width,l=a/2,c=n.x,d=n.y,h="left",p="top";if(r instanceof Array)c+=P0(r[0],n.width),d+=P0(r[1],n.height),h=null,p=null;else switch(r){case"left":c-=i,d+=l,h="right",p="middle";break;case"right":c+=i+s,d+=l,p="middle";break;case"top":c+=s/2,d-=i,h="center",p="bottom";break;case"bottom":c+=s/2,d+=a+i,h="center";break;case"inside":c+=s/2,d+=l,h="center",p="middle";break;case"insideLeft":c+=i,d+=l,p="middle";break;case"insideRight":c+=s-i,d+=l,h="right",p="middle";break;case"insideTop":c+=s/2,d+=i,h="center";break;case"insideBottom":c+=s/2,d+=a-i,h="center",p="bottom";break;case"insideTopLeft":c+=i,d+=i;break;case"insideTopRight":c+=s-i,d+=i,h="right";break;case"insideBottomLeft":c+=i,d+=a-i,p="bottom";break;case"insideBottomRight":c+=s-i,d+=a-i,h="right",p="bottom";break}return e=e||{},e.x=c,e.y=d,e.align=h,e.verticalAlign=p,e}var RN="__zr_normal__",MN=p_.concat(["ignore"]),lht=D0(p_,function(e,t){return e[t]=!0,e},{ignore:!1}),g1={},uht=new lo(0,0,0,0),CA=(function(){function e(t){this.id=$me(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,a=n.innerTransformable,s=void 0,l=void 0,c=!1;a.parent=i?this:null;var d=!1;if(a.copyTransform(n),r.position!=null){var h=uht;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g1,r,h):fT(g1,r,h),a.x=g1.x,a.y=g1.y,s=g1.align,l=g1.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var v=void 0,g=void 0;p==="center"?(v=h.width*.5,g=h.height*.5):(v=P0(p[0],h.width),g=P0(p[1],h.height)),d=!0,a.originX=-a.x+v+(i?0:h.x),a.originY=-a.y+g+(i?0:h.y)}}r.rotation!=null&&(a.rotation=r.rotation);var y=r.offset;y&&(a.x+=y[0],a.y+=y[1],d||(a.originX=-y[0],a.originY=-y[1]));var S=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,k=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),w=void 0,x=void 0,E=void 0;S&&this.canBeInsideText()?(w=r.insideFill,x=r.insideStroke,(w==null||w==="auto")&&(w=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(w),E=!0)):(w=r.outsideFill,x=r.outsideStroke,(w==null||w==="auto")&&(w=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(w),E=!0)),w=w||"#000",(w!==k.fill||x!==k.stroke||E!==k.autoStroke||s!==k.align||l!==k.verticalAlign)&&(c=!0,k.fill=w,k.stroke=x,k.autoStroke=E,k.align=s,k.verticalAlign=l,n.setDefaultTextStyle(k)),n.__dirty|=ac,c&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?QV:JV},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Oh(n);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),s=0;s<3;s++)r[s]=r[s]*i+(a?0:255)*(1-i);return r[3]=1,xA(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},yn(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Ir(t))for(var r=t,i=ns(r),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(RN,!1,t)},e.prototype.useState=function(t,n,r,i){var a=t===RN,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(go(l,t)>=0&&(n||l.length===1))){var d;if(this.stateProxy&&!a&&(d=this.stateProxy(t)),d||(d=this.states&&this.states[t]),!d&&!a){kW("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(d);var h=!!(d&&d.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,d,this._normalState,n,!r&&!this.__inHover&&c&&c.duration>0,c);var p=this._textContent,v=this._textGuide;return p&&p.useState(t,n,r,h),v&&v.useState(t,n,r,h),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ac),d}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,s=t.length,l=s===a.length;if(l){for(var c=0;c0,y);var S=this._textContent,k=this._textGuide;S&&S.useStates(t,n,v),k&&k.useStates(t,n,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ac)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),a=go(i,t),s=go(i,n)>=0;a>=0?s?i.splice(a,1):i[a]=n:r&&!s&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i=0&&a.splice(s,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,a=[],s=0;s0&&n.during&&a[0].during(function(y,S){n.during(S)});for(var v=0;v0||i.force&&!s.length){var M=void 0,$=void 0,L=void 0;if(l){$={},v&&(M={});for(var _=0;_=0&&(i.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=go(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,a=i[r];if(n&&n!==this&&n.parent!==this&&n!==a){i[r]=n,a.parent=null;var s=this.__zr;s&&a.removeSelfFromZr(s),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,a=go(i,n);return a<0?this:(i.splice(a,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n0){if(e<=i)return s;if(e>=a)return l}else{if(e>=i)return s;if(e<=a)return l}else{if(e===i)return s;if(e===a)return l}return(e-i)/c*d+s}function Qo(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return br(e)?dht(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Zs(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),oge),e=(+e).toFixed(t),n?e:+e}function Ch(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return fht(e)}function fht(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),s=a<0?0:i-1-a;return Math.max(0,s-r)}function hht(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),s=Math.min(Math.max(-i+a,0),20);return isFinite(s)?s:20}function pht(e,t){var n=A0(e,function(g,y){return g+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,t),i=Cr(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=Cr(i,function(g){return Math.floor(g)}),l=A0(s,function(g,y){return g+y},0),c=Cr(i,function(g,y){return g-s[y]});ld&&(d=c[p],h=p);++s[h],c[h]=0,++l}return Cr(s,function(g){return g/r})}function vht(e,t){var n=Math.max(Ch(e),Ch(t)),r=e+t;return n>oge?r:Zs(r,n)}function sge(e){var t=Math.PI*2;return(e%t+t)%t}function fT(e){return e>-Voe&&e=10&&t++,t}function age(e,t){var n=PW(e),r=Math.pow(10,n),i=e/r,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*r,n>=-20?+e.toFixed(n<0?-n:0):e}function hT(e){var t=parseFloat(e);return t==e&&(t!==0||!br(e)||e.indexOf("x")<=0)?t:NaN}function yht(e){return!isNaN(hT(e))}function lge(){return Math.round(Math.random()*9)}function uge(e,t){return t===0?e:uge(t,e%t)}function zoe(e,t){return e==null?t:t==null?e:e*t/uge(e,t)}function Su(e){throw new Error(e)}function Uoe(e,t,n){return(t-e)*n+e}var cge="series\0",bht="\0_ec_\0";function Zl(e){return e instanceof Array?e:e==null?[]:[e]}function QV(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=0||a&&go(a,c)<0)){var d=r.getShallow(c,t);d!=null&&(s[e[l][0]]=d)}}return s}}var zht=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Uht=v_(zht),Hht=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Uht(this,t,n)},e})(),ez=new vS(50);function Wht(e){if(typeof e=="string"){var t=ez.get(e);return t&&t.image}else return e}function vge(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=ez.get(e),s={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!wA(t)&&a.pending.push(s)):(t=g3.loadImage(e,Woe,Woe),t.__zrImageSrc=e,ez.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Woe(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n0){if(e<=i)return s;if(e>=a)return l}else{if(e>=i)return s;if(e<=a)return l}else{if(e===i)return s;if(e===a)return l}return(e-i)/c*d+s}function ts(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return br(e)?yht(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Zs(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),oge),e=(+e).toFixed(t),n?e:+e}function Eh(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return bht(e)}function bht(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),s=a<0?0:i-1-a;return Math.max(0,s-r)}function _ht(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),s=Math.min(Math.max(-i+a,0),20);return isFinite(s)?s:20}function Sht(e,t){var n=D0(e,function(g,y){return g+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,t),i=xr(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=xr(i,function(g){return Math.floor(g)}),l=D0(s,function(g,y){return g+y},0),c=xr(i,function(g,y){return g-s[y]});ld&&(d=c[p],h=p);++s[h],c[h]=0,++l}return xr(s,function(g){return g/r})}function kht(e,t){var n=Math.max(Eh(e),Eh(t)),r=e+t;return n>oge?r:Zs(r,n)}function sge(e){var t=Math.PI*2;return(e%t+t)%t}function hT(e){return e>-Voe&&e=10&&t++,t}function age(e,t){var n=PW(e),r=Math.pow(10,n),i=e/r,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*r,n>=-20?+e.toFixed(n<0?-n:0):e}function pT(e){var t=parseFloat(e);return t==e&&(t!==0||!br(e)||e.indexOf("x")<=0)?t:NaN}function Cht(e){return!isNaN(pT(e))}function lge(){return Math.round(Math.random()*9)}function uge(e,t){return t===0?e:uge(t,e%t)}function zoe(e,t){return e==null?t:t==null?e:e*t/uge(e,t)}function ku(e){throw new Error(e)}function Uoe(e,t,n){return(t-e)*n+e}var cge="series\0",Eht="\0_ec_\0";function Zl(e){return e instanceof Array?e:e==null?[]:[e]}function tz(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=0||a&&go(a,c)<0)){var d=r.getShallow(c,t);d!=null&&(s[e[l][0]]=d)}}return s}}var Yht=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Xht=m_(Yht),Zht=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Xht(this,t,n)},e})(),nz=new mS(50);function Jht(e){if(typeof e=="string"){var t=nz.get(e);return t&&t.image}else return e}function vge(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=nz.get(e),s={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!TA(t)&&a.pending.push(s)):(t=g3.loadImage(e,Woe,Woe),t.__zrImageSrc=e,nz.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Woe(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var d=uc(n,t);return d>l&&(n="",d=0),l=e-d,i.ellipsis=n,i.ellipsisWidth=d,i.contentWidth=l,i.containerWidth=e,i}function gge(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=uc(t,i);if(s<=r){e.textLine=t,e.isTruncated=!1;return}for(var l=0;;l++){if(s<=a||l>=n.maxIterations){t+=n.ellipsis;break}var c=l===0?Kht(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=uc(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Kht(e,t,n,r){for(var i=0,a=0,s=e.length;ay&&d){var S=Math.floor(y/l);h=h||v.length>S,v=v.slice(0,S)}if(e&&a&&p!=null)for(var k=mge(p,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},x=0;xl&&BN(n,e.substring(l,d),t,s),BN(n,c[2],t,s,c[1]),l=ON.lastIndex}li){var H=n.lines.length;D>0?(E.tokens=E.tokens.slice(0,D),C(E,T,_),n.lines=n.lines.slice(0,x+1)):n.lines=n.lines.slice(0,x),n.isTruncated=n.isTruncated||n.lines.length0&&y+r.accumWidth>r.width&&(h=t.split(` +`),e.isTruncated=l}function mge(e,t,n,r){r=r||{};var i=yn({},r);i.font=t,n=yi(n,"..."),i.maxIterations=yi(r.maxIterations,2);var a=i.minChar=yi(r.minChar,0);i.cnCharWidth=dc("国",t);var s=i.ascCharWidth=dc("a",t);i.placeholder=yi(r.placeholder,"");for(var l=e=Math.max(0,e-1),c=0;c=s;c++)l-=s;var d=dc(n,t);return d>l&&(n="",d=0),l=e-d,i.ellipsis=n,i.ellipsisWidth=d,i.contentWidth=l,i.containerWidth=e,i}function gge(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=dc(t,i);if(s<=r){e.textLine=t,e.isTruncated=!1;return}for(var l=0;;l++){if(s<=a||l>=n.maxIterations){t+=n.ellipsis;break}var c=l===0?ept(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=dc(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function ept(e,t,n,r){for(var i=0,a=0,s=e.length;ay&&d){var S=Math.floor(y/l);h=h||v.length>S,v=v.slice(0,S)}if(e&&a&&p!=null)for(var k=mge(p,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w={},x=0;xl&&FN(n,e.substring(l,d),t,s),FN(n,c[2],t,s,c[1]),l=NN.lastIndex}li){var H=n.lines.length;D>0?(E.tokens=E.tokens.slice(0,D),w(E,T,_),n.lines=n.lines.slice(0,x+1)):n.lines=n.lines.slice(0,x),n.isTruncated=n.isTruncated||n.lines.length0&&y+r.accumWidth>r.width&&(h=t.split(` `),d=!0),r.accumWidth=y}else{var S=yge(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=S.accumWidth+g,p=S.linesWidths,h=S.lines}}else h=t.split(` -`);for(var k=0;k=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Qht=A0(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function ept(e){return Jht(e)?!!Qht[e]:!0}function yge(e,t,n,r,i){for(var a=[],s=[],l="",c="",d=0,h=0,p=0;pn:i+h+g>n){h?(l||c)&&(y?(l||(l=c,c="",d=0,h=d),a.push(l),s.push(h-d),c+=v,d+=g,l="",h=d):(c&&(l+=c,c="",d=0),a.push(l),s.push(h),l=v,h=g)):y?(a.push(c),s.push(d),c=v,d=g):(a.push(v),s.push(g));continue}h+=g,y?(c+=v,d+=g):(c&&(l+=c,c="",d=0),l+=v)}return!a.length&&!l&&(l=e,c="",d=0),c&&(l+=c),l&&(a.push(l),s.push(h)),a.length===1&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}var tz="__zr_style_"+Math.round(Math.random()*10),_m={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},EA={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_m[tz]=!0;var Koe=["z","z2","invisible"],tpt=["invisible"],yS=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=ts(n),i=0;i1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Vx[0]=VN(i)*n+e,Vx[1]=jN(i)*r+t,zx[0]=VN(a)*n+e,zx[1]=jN(a)*r+t,d(l,Vx,zx),h(c,Vx,zx),i=i%wv,i<0&&(i=i+wv),a=a%wv,a<0&&(a=a+wv),i>a&&!s?a+=wv:ii&&(Ux[0]=VN(g)*n+e,Ux[1]=jN(g)*r+t,d(l,Ux,l),h(c,Ux,c))}var oo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ev=[],Tv=[],Yd=[],Ap=[],Xd=[],Zd=[],zN=Math.min,UN=Math.max,Av=Math.cos,Iv=Math.sin,ah=Math.abs,nz=Math.PI,Wp=nz*2,HN=typeof Float32Array<"u",i4=[];function WN(e){var t=Math.round(e/nz*1e8)/1e8;return t%2*nz}function bge(e,t){var n=WN(e[0]);n<0&&(n+=Wp);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Wp?i=n+Wp:t&&n-i>=Wp?i=n-Wp:!t&&n>i?i=n+(Wp-WN(n-i)):t&&n0&&(this._ux=ah(r/cT/t)||0,this._uy=ah(r/cT/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(oo.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=ah(t-this._xi),i=ah(n-this._yi),a=r>this._ux||i>this._uy;if(this.addData(oo.L,t,n),this._ctx&&a&&this._ctx.lineTo(t,n),a)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var s=r*r+i*i;s>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=s)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,a,s){return this._drawPendingPt(),this.addData(oo.C,t,n,r,i,a,s),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,a,s),this._xi=a,this._yi=s,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(oo.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,a,s){this._drawPendingPt(),i4[0]=i,i4[1]=a,bge(i4,s),i=i4[0],a=i4[1];var l=a-i;return this.addData(oo.A,t,n,r,r,i,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,i,a,s),this._xi=Av(a)*r+t,this._yi=Iv(a)*r+n,this},e.prototype.arcTo=function(t,n,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,a),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(oo.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(oo.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&HN&&(this.data=new Float32Array(n));for(var r=0;rh.length&&(this._expandData(),h=this.data);for(var p=0;p0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Yd[0]=Yd[1]=Xd[0]=Xd[1]=Number.MAX_VALUE,Ap[0]=Ap[1]=Zd[0]=Zd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,a=0,s;for(s=0;sr||ah(E)>i||v===n-1)&&(S=Math.sqrt(x*x+E*E),a=k,s=C);break}case oo.C:{var _=t[v++],T=t[v++],k=t[v++],C=t[v++],D=t[v++],P=t[v++];S=Lft(a,s,_,T,k,C,D,P,10),a=D,s=P;break}case oo.Q:{var _=t[v++],T=t[v++],k=t[v++],C=t[v++];S=Rft(a,s,_,T,k,C,10),a=k,s=C;break}case oo.A:var M=t[v++],O=t[v++],L=t[v++],B=t[v++],j=t[v++],H=t[v++],U=H+j;v+=1,y&&(l=Av(j)*L+M,c=Iv(j)*B+O),S=UN(L,B)*zN(Wp,Math.abs(H)),a=Av(U)*L+M,s=Iv(U)*B+O;break;case oo.R:{l=a=t[v++],c=s=t[v++];var K=t[v++],Y=t[v++];S=K*2+Y*2;break}case oo.Z:{var x=l-a,E=c-s;S=Math.sqrt(x*x+E*E),a=l,s=c;break}}S>=0&&(d[p++]=S,h+=S)}return this._pathLen=h,h},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,a=this._uy,s=this._len,l,c,d,h,p,v,g=n<1,y,S,k=0,C=0,x,E=0,_,T;if(!(g&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,S=this._pathLen,x=n*S,!x)))e:for(var D=0;D0&&(t.lineTo(_,T),E=0),P){case oo.M:l=d=r[D++],c=h=r[D++],t.moveTo(d,h);break;case oo.L:{p=r[D++],v=r[D++];var O=ah(p-d),L=ah(v-h);if(O>i||L>a){if(g){var B=y[C++];if(k+B>x){var j=(x-k)/B;t.lineTo(d*(1-j)+p*j,h*(1-j)+v*j);break e}k+=B}t.lineTo(p,v),d=p,h=v,E=0}else{var H=O*O+L*L;H>E&&(_=p,T=v,E=H)}break}case oo.C:{var U=r[D++],K=r[D++],Y=r[D++],ie=r[D++],te=r[D++],W=r[D++];if(g){var B=y[C++];if(k+B>x){var j=(x-k)/B;aT(d,U,Y,te,j,Ev),aT(h,K,ie,W,j,Tv),t.bezierCurveTo(Ev[1],Tv[1],Ev[2],Tv[2],Ev[3],Tv[3]);break e}k+=B}t.bezierCurveTo(U,K,Y,ie,te,W),d=te,h=W;break}case oo.Q:{var U=r[D++],K=r[D++],Y=r[D++],ie=r[D++];if(g){var B=y[C++];if(k+B>x){var j=(x-k)/B;lT(d,U,Y,j,Ev),lT(h,K,ie,j,Tv),t.quadraticCurveTo(Ev[1],Tv[1],Ev[2],Tv[2]);break e}k+=B}t.quadraticCurveTo(U,K,Y,ie),d=Y,h=ie;break}case oo.A:var q=r[D++],Q=r[D++],se=r[D++],ae=r[D++],re=r[D++],Ce=r[D++],Ve=r[D++],ge=!r[D++],xe=se>ae?se:ae,Ge=ah(se-ae)>.001,tt=re+Ce,Ue=!1;if(g){var B=y[C++];k+B>x&&(tt=re+Ce*(x-k)/B,Ue=!0),k+=B}if(Ge&&t.ellipse?t.ellipse(q,Q,se,ae,Ve,re,tt,ge):t.arc(q,Q,xe,re,tt,ge),Ue)break e;M&&(l=Av(re)*se+q,c=Iv(re)*ae+Q),d=Av(tt)*se+q,h=Iv(tt)*ae+Q;break;case oo.R:l=d=r[D],c=h=r[D+1],p=r[D++],v=r[D++];var _e=r[D++],ve=r[D++];if(g){var B=y[C++];if(k+B>x){var me=x-k;t.moveTo(p,v),t.lineTo(p+zN(me,_e),v),me-=_e,me>0&&t.lineTo(p+_e,v+zN(me,ve)),me-=ve,me>0&&t.lineTo(p+UN(_e-me,0),v+ve),me-=_e,me>0&&t.lineTo(p,v+UN(ve-me,0));break e}k+=B}t.rect(p,v,_e,ve);break;case oo.Z:if(g){var B=y[C++];if(k+B>x){var j=(x-k)/B;t.lineTo(d*(1-j)+l*j,h*(1-j)+c*j);break e}k+=B}t.closePath(),d=l,h=c}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=oo,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function g1(e,t,n,r,i,a,s){if(i===0)return!1;var l=i,c=0,d=e;if(s>t+l&&s>r+l||se+l&&a>n+l||at+p&&h>r+p&&h>a+p&&h>l+p||he+p&&d>n+p&&d>i+p&&d>s+p||dt+d&&c>r+d&&c>a+d||ce+d&&l>n+d&&l>i+d||ln||h+di&&(i+=o4);var v=Math.atan2(c,l);return v<0&&(v+=o4),v>=r&&v<=i||v+o4>=r&&v+o4<=i}function Lv(e,t,n,r,i,a){if(a>t&&a>r||ai?l:0}var Ip=Vm.CMD,Dv=Math.PI*2,upt=1e-4;function cpt(e,t){return Math.abs(e-t)t&&d>r&&d>a&&d>l||d1&&dpt(),g=Ha(t,r,a,l,Rc[0]),v>1&&(y=Ha(t,r,a,l,Rc[1]))),v===2?kt&&l>r&&l>a||l=0&&d<=1){for(var h=0,p=_u(t,r,a,d),v=0;vn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);Vl[0]=-c,Vl[1]=c;var d=Math.abs(r-i);if(d<1e-4)return 0;if(d>=Dv-1e-4){r=0,i=Dv;var h=a?1:-1;return s>=Vl[0]+e&&s<=Vl[1]+e?h:0}if(r>i){var p=r;r=i,i=p}r<0&&(r+=Dv,i+=Dv);for(var v=0,g=0;g<2;g++){var y=Vl[g];if(y+e>s){var S=Math.atan2(l,y),h=a?1:-1;S<0&&(S=Dv+S),(S>=r&&S<=i||S+Dv>=r&&S+Dv<=i)&&(S>Math.PI/2&&S1&&(n||(l+=Lv(c,d,h,p,r,i))),k&&(c=a[y],d=a[y+1],h=c,p=d),S){case Ip.M:h=a[y++],p=a[y++],c=h,d=p;break;case Ip.L:if(n){if(g1(c,d,a[y],a[y+1],t,r,i))return!0}else l+=Lv(c,d,a[y],a[y+1],r,i)||0;c=a[y++],d=a[y++];break;case Ip.C:if(n){if(spt(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],t,r,i))return!0}else l+=fpt(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],r,i)||0;c=a[y++],d=a[y++];break;case Ip.Q:if(n){if(apt(c,d,a[y++],a[y++],a[y],a[y+1],t,r,i))return!0}else l+=hpt(c,d,a[y++],a[y++],a[y],a[y+1],r,i)||0;c=a[y++],d=a[y++];break;case Ip.A:var C=a[y++],x=a[y++],E=a[y++],_=a[y++],T=a[y++],D=a[y++];y+=1;var P=!!(1-a[y++]);v=Math.cos(T)*E+C,g=Math.sin(T)*_+x,k?(h=v,p=g):l+=Lv(c,d,v,g,r,i);var M=(r-C)*_/E+C;if(n){if(lpt(C,x,_,T,T+D,P,t,M,i))return!0}else l+=ppt(C,x,_,T,T+D,P,M,i);c=Math.cos(T+D)*E+C,d=Math.sin(T+D)*_+x;break;case Ip.R:h=c=a[y++],p=d=a[y++];var O=a[y++],L=a[y++];if(v=h+O,g=p+L,n){if(g1(h,p,v,p,t,r,i)||g1(v,p,v,g,t,r,i)||g1(v,g,h,g,t,r,i)||g1(h,g,h,p,t,r,i))return!0}else l+=Lv(v,p,v,g,r,i),l+=Lv(h,g,h,p,r,i);break;case Ip.Z:if(n){if(g1(c,d,h,p,t,r,i))return!0}else l+=Lv(c,d,h,p,r,i);c=h,d=p;break}}return!n&&!cpt(d,p)&&(l+=Lv(c,d,h,p,r,i)||0),l!==0}function vpt(e,t,n){return _ge(e,0,!1,t,n)}function mpt(e,t,n,r){return _ge(e,t,!0,n,r)}var Sge=co({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_m),gpt={style:co({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},EA.style)},GN=h_.concat(["invisible","culling","z","z2","zlevel","parent"]),vo=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(c){n.buildPath(c,n.shape)}),i.silent=!0;var a=i.style;for(var s in r)a[s]!==r[s]&&(a[s]=r[s]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var l=0;l.5?XV:r>.2?Qft:ZV}else if(n)return ZV}return XV},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(br(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),s=uT(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var s=this.path;(a||this.__dirty&j1)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),n=s.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){l.copy(n);var c=r.strokeNoScale?this.getLineScale():1,d=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;d=Math.max(d,h??4)}c>1e-10&&(l.width+=d/c,l.height+=d/c,l.x-=d/c/2,l.y-=d/c/2)}return l}return n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect(),s=this.style;if(n=i[0],r=i[1],a.contain(n,r)){var l=this.path;if(this.hasStroke()){var c=s.lineWidth,d=s.strokeNoScale?this.getLineScale():1;if(d>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),mpt(l,c/d,n,r)))return!0}if(this.hasFill())return vpt(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=j1,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:yn(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&j1)},t.prototype.createStyle=function(n){return SA(Sge,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=yn({},this.shape))},t.prototype._applyStateObj=function(n,r,i,a,s,l){e.prototype._applyStateObj.call(this,n,r,i,a,s,l);var c=!(r&&a),d;if(r&&r.shape?s?a?d=r.shape:(d=yn({},i.shape),yn(d,r.shape)):(d=yn({},a?this.shape:i.shape),yn(d,r.shape)):c&&(d=i.shape),d)if(s){this.shape=yn({},this.shape);for(var h={},p=ts(d),v=0;v0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return SA(ypt,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=LW(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var a=n.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(yS);pT.prototype.type="tspan";var bpt=co({x:0,y:0},_m),_pt={style:co({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},EA.style)};function Spt(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var U0=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return SA(bpt,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var a=Spt(r.image)?r.image:this.__image;if(!a)return 0;var s=n==="width"?"height":"width",l=r[s];return l==null?a[n]:a[n]/a[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return _pt},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new lo(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(yS);U0.prototype.type="image";function kpt(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,s=t.r,l,c,d,h;i<0&&(n=n+i,i=-i),a<0&&(r=r+a,a=-a),typeof s=="number"?l=c=d=h=s:s instanceof Array?s.length===1?l=c=d=h=s[0]:s.length===2?(l=d=s[0],c=h=s[1]):s.length===3?(l=s[0],c=h=s[1],d=s[2]):(l=s[0],c=s[1],d=s[2],h=s[3]):l=c=d=h=0;var p;l+c>i&&(p=l+c,l*=i/p,c*=i/p),d+h>i&&(p=d+h,d*=i/p,h*=i/p),c+d>a&&(p=c+d,c*=a/p,d*=a/p),l+h>a&&(p=l+h,l*=a/p,h*=a/p),e.moveTo(n+l,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-d),d!==0&&e.arc(n+i-d,r+a-d,d,0,Math.PI/2),e.lineTo(n+h,r+a),h!==0&&e.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),e.lineTo(n,r+l),l!==0&&e.arc(n+l,r+l,l,Math.PI,Math.PI*1.5)}var X1=Math.round;function kge(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,s=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=s;var l=n&&n.lineWidth;return l&&(X1(r*2)===X1(i*2)&&(e.x1=e.x2=tm(r,l,!0)),X1(a*2)===X1(s*2)&&(e.y1=e.y2=tm(a,l,!0))),e}}function xge(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,s=t.height;e.x=r,e.y=i,e.width=a,e.height=s;var l=n&&n.lineWidth;return l&&(e.x=tm(r,l,!0),e.y=tm(i,l,!0),e.width=Math.max(tm(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(tm(i+s,l,!1)-e.y,s===0?0:1)),e}}function tm(e,t,n){if(!t)return e;var r=X1(e*2);return(r+X1(t))%2===0?r/2:(r+(n?1:-1))/2}var xpt=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Cpt={},Js=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new xpt},t.prototype.buildPath=function(n,r){var i,a,s,l;if(this.subPixelOptimize){var c=xge(Cpt,r,this.style);i=c.x,a=c.y,s=c.width,l=c.height,c.r=r.r,r=c}else i=r.x,a=r.y,s=r.width,l=r.height;r.r?kpt(n,r):n.rect(i,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(vo);Js.prototype.type="rect";var Joe={fill:"#000"},Qoe=2,wpt={style:co({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},EA.style)},el=(function(e){Nn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Joe,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,j=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),H=s.calculatedLineHeight,U=0;U=0&&(U=D[H],U.align==="right");)this._placeToken(U,n,M,C,j,"right",E),O-=U.width,j-=U.width,H--;for(B+=(a-(B-k)-(x-j)-O)/2;L<=H;)U=D[L],this._placeToken(U,n,M,C,B+U.width/2,"center",E),B+=U.width,L++;C+=M}},t.prototype._placeToken=function(n,r,i,a,s,l,c){var d=r.rich[n.styleName]||{};d.text=n.text;var h=n.verticalAlign,p=a+i/2;h==="top"?p=a+n.height/2:h==="bottom"&&(p=a+i-n.height/2);var v=!n.isLineHolder&&KN(d);v&&this._renderBackground(d,r,l==="right"?s-n.width:l==="center"?s-n.width/2:s,p-n.height/2,n.width,n.height);var g=!!d.backgroundColor,y=n.textPadding;y&&(s=ose(s,l,y),p-=n.height/2-y[0]-n.innerHeight/2);var S=this._getOrCreateChild(pT),k=S.createStyle();S.useStyle(k);var C=this._defaultStyle,x=!1,E=0,_=ise("fill"in d?d.fill:"fill"in r?r.fill:(x=!0,C.fill)),T=rse("stroke"in d?d.stroke:"stroke"in r?r.stroke:!g&&!c&&(!C.autoStroke||x)?(E=Qoe,C.stroke):null),D=d.textShadowBlur>0||r.textShadowBlur>0;k.text=n.text,k.x=s,k.y=p,D&&(k.shadowBlur=d.textShadowBlur||r.textShadowBlur||0,k.shadowColor=d.textShadowColor||r.textShadowColor||"transparent",k.shadowOffsetX=d.textShadowOffsetX||r.textShadowOffsetX||0,k.shadowOffsetY=d.textShadowOffsetY||r.textShadowOffsetY||0),k.textAlign=l,k.textBaseline="middle",k.font=n.font||Nm,k.opacity=yb(d.opacity,r.opacity,1),tse(k,d),T&&(k.lineWidth=yb(d.lineWidth,r.lineWidth,E),k.lineDash=gi(d.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=T),_&&(k.fill=_);var P=n.contentWidth,M=n.contentHeight;S.setBoundingRect(new lo($4(k.x,P,k.textAlign),V1(k.y,M,k.textBaseline),P,M))},t.prototype._renderBackground=function(n,r,i,a,s,l){var c=n.backgroundColor,d=n.borderWidth,h=n.borderColor,p=c&&c.image,v=c&&!p,g=n.borderRadius,y=this,S,k;if(v||n.lineHeight||d&&h){S=this._getOrCreateChild(Js),S.useStyle(S.createStyle()),S.style.fill=null;var C=S.shape;C.x=i,C.y=a,C.width=s,C.height=l,C.r=g,S.dirtyShape()}if(v){var x=S.style;x.fill=c||null,x.fillOpacity=gi(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(U0),k.onload=function(){y.dirtyStyle()};var E=k.style;E.image=c.image,E.x=i,E.y=a,E.width=s,E.height=l}if(d&&h){var x=S.style;x.lineWidth=d,x.stroke=h,x.strokeOpacity=gi(n.strokeOpacity,1),x.lineDash=n.borderDash,x.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var _=(S||k).style;_.shadowBlur=n.shadowBlur||0,_.shadowColor=n.shadowColor||"transparent",_.shadowOffsetX=n.shadowOffsetX||0,_.shadowOffsetY=n.shadowOffsetY||0,_.opacity=yb(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Ipt(n)&&(r=[n.fontStyle,n.fontWeight,Apt(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&hf(r)||n.textFont||n.font},t})(yS),Ept={left:!0,right:1,center:1},Tpt={top:1,bottom:1,middle:1},ese=["fontStyle","fontWeight","fontSize","fontFamily"];function Apt(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?bW+"px":e+"px"}function tse(e,t){for(var n=0;n=0,a=!1;if(e instanceof vo){var s=Cge(e),l=i&&s.selectFill||s.normalFill,c=i&&s.selectStroke||s.normalStroke;if(y1(l)||y1(c)){r=r||{};var d=r.style||{};d.fill==="inherit"?(a=!0,r=yn({},r),d=yn({},d),d.fill=l):!y1(d.fill)&&y1(l)?(a=!0,r=yn({},r),d=yn({},d),d.fill=Ioe(l)):!y1(d.stroke)&&y1(c)&&(a||(r=yn({},r),d=yn({},d)),d.stroke=Ioe(c)),r.style=d}}if(r&&r.z2==null){a||(r=yn({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Ppt)}return r}function Npt(e,t,n){if(n&&n.z2==null){n=yn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Rpt)}return n}function Fpt(e,t,n){var r=go(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Opt(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=yn({},n),s=yn({opacity:r?i:a.opacity*.1},s),n.style=s),n}function qN(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Bpt(this,e,t,n);if(e==="blur")return Fpt(this,e,n);if(e==="select")return Npt(this,e,n)}return n}function jpt(e){e.stateProxy=qN;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=qN),n&&(n.stateProxy=qN)}function dse(e,t){!Dge(e,t)&&!e.__highByOuter&&Qh(e,wge)}function fse(e,t){!Dge(e,t)&&!e.__highByOuter&&Qh(e,Ege)}function mT(e,t){e.__highByOuter|=1<<(t||0),Qh(e,wge)}function gT(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Qh(e,Ege)}function Vpt(e){Qh(e,NW)}function Age(e){Qh(e,Tge)}function Ige(e){Qh(e,Mpt)}function Lge(e){Qh(e,$pt)}function Dge(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Pge(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,a){var s=OW(a),l=i==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(d){Tge(d)}),l&&n.push(a)),s.isBlured=!1}),Et(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function rz(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function a(d,h){for(var p=0;p0){var l={dataIndex:s,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function oz(e,t,n){Rge(e,!0),Qh(e,jpt),qpt(e,t,n)}function Kpt(e){Rge(e,!1)}function m_(e,t,n,r){r?Kpt(e):oz(e,t,n)}function qpt(e,t,n){var r=Yi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var pse=["emphasis","blur","select"],Ypt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function yT(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(s*=YN(y),l*=YN(y));var S=(i===a?-1:1)*YN((s*s*(l*l)-s*s*(g*g)-l*l*(v*v))/(s*s*(g*g)+l*l*(v*v)))||0,k=S*s*g/l,C=S*-l*v/s,x=(e+n)/2+Gx(p)*k-Wx(p)*C,E=(t+r)/2+Wx(p)*k+Gx(p)*C,_=yse([1,0],[(v-k)/s,(g-C)/l]),T=[(v-k)/s,(g-C)/l],D=[(-1*v-k)/s,(-1*g-C)/l],P=yse(T,D);if(lz(T,D)<=-1&&(P=s4),lz(T,D)>=1&&(P=0),P<0){var M=Math.round(P/s4*1e6)/1e6;P=s4*2+M%2*s4}h.addData(d,x,E,s,l,_,P,p,a)}var t0t=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,n0t=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function r0t(e){var t=new Vm;if(!e)return t;var n=0,r=0,i=n,a=r,s,l=Vm.CMD,c=e.match(t0t);if(!c)return t;for(var d=0;dU*U+K*K&&(M=L,O=B),{cx:M,cy:O,x0:-h,y0:-p,x1:M*(i/T-1),y1:O*(i/T-1)}}function d0t(e){var t;if(er(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function f0t(e,t){var n,r=O4(t.r,0),i=O4(t.r0||0,0),a=r>0,s=i>0;if(!(!a&&!s)){if(a||(r=i,i=0),i>r){var l=r;r=i,i=l}var c=t.startAngle,d=t.endAngle;if(!(isNaN(c)||isNaN(d))){var h=t.cx,p=t.cy,v=!!t.clockwise,g=_se(d-c),y=g>XN&&g%XN;if(y>gd&&(g=y),!(r>gd))e.moveTo(h,p);else if(g>XN-gd)e.moveTo(h+r*_1(c),p+r*Pv(c)),e.arc(h,p,r,c,d,!v),i>gd&&(e.moveTo(h+i*_1(d),p+i*Pv(d)),e.arc(h,p,i,d,c,v));else{var S=void 0,k=void 0,C=void 0,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0,P=void 0,M=void 0,O=void 0,L=void 0,B=void 0,j=void 0,H=void 0,U=void 0,K=r*_1(c),Y=r*Pv(c),ie=i*_1(d),te=i*Pv(d),W=g>gd;if(W){var q=t.cornerRadius;q&&(n=d0t(q),S=n[0],k=n[1],C=n[2],x=n[3]);var Q=_se(r-i)/2;if(E=Jd(Q,C),_=Jd(Q,x),T=Jd(Q,S),D=Jd(Q,k),O=P=O4(E,_),L=M=O4(T,D),(P>gd||M>gd)&&(B=r*_1(d),j=r*Pv(d),H=i*_1(c),U=i*Pv(c),ggd){var Ge=Jd(C,O),tt=Jd(x,O),Ue=Kx(H,U,K,Y,r,Ge,v),_e=Kx(B,j,ie,te,r,tt,v);e.moveTo(h+Ue.cx+Ue.x0,p+Ue.cy+Ue.y0),O0&&e.arc(h+Ue.cx,p+Ue.cy,Ge,ul(Ue.y0,Ue.x0),ul(Ue.y1,Ue.x1),!v),e.arc(h,p,r,ul(Ue.cy+Ue.y1,Ue.cx+Ue.x1),ul(_e.cy+_e.y1,_e.cx+_e.x1),!v),tt>0&&e.arc(h+_e.cx,p+_e.cy,tt,ul(_e.y1,_e.x1),ul(_e.y0,_e.x0),!v))}else e.moveTo(h+K,p+Y),e.arc(h,p,r,c,d,!v);if(!(i>gd)||!W)e.lineTo(h+ie,p+te);else if(L>gd){var Ge=Jd(S,L),tt=Jd(k,L),Ue=Kx(ie,te,B,j,i,-tt,v),_e=Kx(K,Y,H,U,i,-Ge,v);e.lineTo(h+Ue.cx+Ue.x0,p+Ue.cy+Ue.y0),L0&&e.arc(h+Ue.cx,p+Ue.cy,tt,ul(Ue.y0,Ue.x0),ul(Ue.y1,Ue.x1),!v),e.arc(h,p,i,ul(Ue.cy+Ue.y1,Ue.cx+Ue.x1),ul(_e.cy+_e.y1,_e.cx+_e.x1),v),Ge>0&&e.arc(h+_e.cx,p+_e.cy,Ge,ul(_e.y1,_e.x1),ul(_e.y0,_e.x0),!v))}else e.lineTo(h+ie,p+te),e.arc(h,p,i,d,c,v)}e.closePath()}}}var h0t=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),H0=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new h0t},t.prototype.buildPath=function(n,r){f0t(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(vo);H0.prototype.type="sector";var p0t=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),VW=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new p0t},t.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,s=Math.PI*2;n.moveTo(i+r.r,a),n.arc(i,a,r.r,0,s,!1),n.moveTo(i+r.r0,a),n.arc(i,a,r.r0,0,s,!0)},t})(vo);VW.prototype.type="ring";function v0t(e,t,n,r){var i=[],a=[],s=[],l=[],c,d,h,p;if(r){h=[1/0,1/0],p=[-1/0,-1/0];for(var v=0,g=e.length;v=2){if(r){var a=v0t(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var s=i.length,l=0;l<(n?s:s-1);l++){var c=a[l*2],d=a[l*2+1],h=i[(l+1)%s];e.bezierCurveTo(c[0],c[1],d[0],d[1],h[0],h[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var l=1,p=i.length;lMv[1]){if(l=!1,a)return l;var h=Math.abs(Mv[0]-Rv[1]),p=Math.abs(Rv[0]-Mv[1]);Math.min(h,p)>i.len()&&(h0){var p=h.duration,v=h.delay,g=h.easing,y={duration:p,delay:v||0,easing:g,done:a,force:!!a||!!s,setToFinal:!d,scope:e,during:s};l?t.animateFrom(n,y):t.animateTo(n,y)}else t.stopAnimation(),!l&&t.attr(n),s&&s(1),a&&a()}function eu(e,t,n,r,i,a){HW("update",e,t,n,r,i,a)}function Kc(e,t,n,r,i,a){HW("enter",e,t,n,r,i,a)}function Eb(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function xse(e){return!e.isGroup}function B0t(e){return e.shape!=null}function Hge(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){xse(c)&&c.anid&&(l[c.anid]=c)}),l}function i(s){var l={x:s.x,y:s.y,rotation:s.rotation};return B0t(s)&&(l.shape=yn({},s.shape)),l}var a=r(e);t.traverse(function(s){if(xse(s)&&s.anid){var l=a[s.anid];if(l){var c=i(s);s.attr(i(l)),eu(s,c,n,Yi(s).dataIndex)}}})}function N0t(e,t){return Cr(e,function(n){var r=n[0];r=kT(r,t.x),r=xT(r,t.x+t.width);var i=n[1];return i=kT(i,t.y),i=xT(i,t.y+t.height),[r,i]})}function F0t(e,t){var n=kT(e.x,t.x),r=xT(e.x+e.width,t.x+t.width),i=kT(e.y,t.y),a=xT(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function qW(e,t,n){var r=yn({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),co(i,n),new U0(r)):GW(e.replace("path://",""),r,n,"center")}function j0t(e,t,n,r,i){for(var a=0,s=i[i.length-1];a1)return!1;var k=ZN(g,y,h,p)/v;return!(k<0||k>1)}function ZN(e,t,n,r){return e*r-n*t}function V0t(e){return e<=1e-6&&e>=-1e-6}function PA(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=br(t)?{formatter:t}:t,a=n.mainType,s=n.componentIndex,l={componentType:a,name:r,$vars:["name"]};l[a+"Index"]=s;var c=e.formatterParamsExtra;c&&Et(ts(c),function(h){Fm(l,h)||(l[h]=c[h],l.$vars.push(h))});var d=Yi(e.el);d.componentMainType=a,d.componentIndex=s,d.tooltipConfig={name:r,option:co({content:r,encodeHTMLContent:!0,formatterParams:l},i)}}function Cse(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function RA(e,t){if(e)if(er(e))for(var n=0;n=0&&l.push(c)}),l}}function qge(e,t){return ao(ao({},e,!0),t,!0)}const rvt={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},ivt={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var CT="ZH",YW="EN",gy=YW,ZE={},XW={},Yge=Vr.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||gy).toUpperCase();return e.indexOf(CT)>-1?CT:gy})():gy;function Xge(e,t){e=e.toUpperCase(),XW[e]=new xs(t),ZE[e]=t}function ovt(e){if(br(e)){var t=ZE[e.toUpperCase()]||{};return e===CT||e===YW?zi(t):ao(zi(t),zi(ZE[gy]),!1)}else return ao(zi(e),zi(ZE[gy]),!1)}function svt(e){return XW[e]}function avt(){return XW[gy]}Xge(YW,rvt);Xge(CT,ivt);var ZW=1e3,JW=ZW*60,Tb=JW*60,jc=Tb*24,Dse=jc*365,B4={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xx="{yyyy}-{MM}-{dd}",Pse={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xx,hour:Xx+" "+B4.hour,minute:Xx+" "+B4.minute,second:Xx+" "+B4.second,millisecond:B4.none},eF=["year","month","day","hour","minute","second","millisecond"],Zge=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Lp(e,t){return e+="","0000".substr(0,t-e.length)+e}function yy(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function lvt(e){return e===yy(e)}function uvt(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function BA(e,t,n,r){var i=Wh(e),a=i[QW(n)](),s=i[by(n)]()+1,l=Math.floor((s-1)/3)+1,c=i[NA(n)](),d=i["get"+(n?"UTC":"")+"Day"](),h=i[y_(n)](),p=(h-1)%12+1,v=i[FA(n)](),g=i[jA(n)](),y=i[VA(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),C=r instanceof xs?r:svt(r||Yge)||avt(),x=C.getModel("time"),E=x.get("month"),_=x.get("monthAbbr"),T=x.get("dayOfWeek"),D=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,S+"").replace(/{A}/g,k+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Lp(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,E[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,Lp(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Lp(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,D[d]).replace(/{e}/g,d+"").replace(/{HH}/g,Lp(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Lp(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Lp(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Lp(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,Lp(y,3)).replace(/{S}/g,y+"")}function cvt(e,t,n,r,i){var a=null;if(br(n))a=n;else if(ni(n))a=n(e.value,t,{level:e.level});else{var s=yn({},B4);if(e.level>0)for(var l=0;l=0;--l)if(c[d]){a=c[d];break}a=a||s.none}if(er(a)){var p=e.level==null?0:e.level>=0?e.level:a.length+e.level;p=Math.min(p,a.length-1),a=a[p]}}return BA(new Date(e.value),a,i,r)}function Jge(e,t){var n=Wh(e),r=n[by(t)]()+1,i=n[NA(t)](),a=n[y_(t)](),s=n[FA(t)](),l=n[jA(t)](),c=n[VA(t)](),d=c===0,h=d&&l===0,p=h&&s===0,v=p&&a===0,g=v&&i===1,y=g&&r===1;return y?"year":g?"month":v?"day":p?"hour":h?"minute":d?"second":"millisecond"}function Rse(e,t,n){var r=Io(e)?Wh(e):e;switch(t=t||Jge(e,n),t){case"year":return r[QW(n)]();case"half-year":return r[by(n)]()>=6?1:0;case"quarter":return Math.floor((r[by(n)]()+1)/4);case"month":return r[by(n)]();case"day":return r[NA(n)]();case"half-day":return r[y_(n)]()/24;case"hour":return r[y_(n)]();case"minute":return r[FA(n)]();case"second":return r[jA(n)]();case"millisecond":return r[VA(n)]()}}function QW(e){return e?"getUTCFullYear":"getFullYear"}function by(e){return e?"getUTCMonth":"getMonth"}function NA(e){return e?"getUTCDate":"getDate"}function y_(e){return e?"getUTCHours":"getHours"}function FA(e){return e?"getUTCMinutes":"getMinutes"}function jA(e){return e?"getUTCSeconds":"getSeconds"}function VA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function dvt(e){return e?"setUTCFullYear":"setFullYear"}function Qge(e){return e?"setUTCMonth":"setMonth"}function e1e(e){return e?"setUTCDate":"setDate"}function t1e(e){return e?"setUTCHours":"setHours"}function n1e(e){return e?"setUTCMinutes":"setMinutes"}function r1e(e){return e?"setUTCSeconds":"setSeconds"}function i1e(e){return e?"setUTCMilliseconds":"setMilliseconds"}function o1e(e){if(!yht(e))return br(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function s1e(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var zA=Bme;function cz(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(h){return h&&hf(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var s=t==="time",l=e instanceof Date;if(s||l){var c=s?Wh(e):e;if(isNaN(+c)){if(l)return"-"}else return BA(c,r,n)}if(t==="ordinal")return MV(e)?i(e):Io(e)&&a(e)?e+"":"-";var d=hT(e);return a(d)?o1e(d):MV(e)?i(e):typeof e=="boolean"?e+"":"-"}var Mse=["a","b","c","d","e","f","g"],tF=function(e,t){return"{"+e+(t??"")+"}"};function a1e(e,t,n){er(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a':'';var s=n.markerId||"markerX";return{renderMode:a,content:"{"+s+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function zm(e,t){return t=t||"transparent",br(e)?e:Ir(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function $se(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var JE=Et,hvt=["left","right","top","bottom","width","height"],Zx=[["width","left","right"],["height","top","bottom"]];function eG(e,t,n,r,i){var a=0,s=0;r==null&&(r=1/0),i==null&&(i=1/0);var l=0;t.eachChild(function(c,d){var h=c.getBoundingRect(),p=t.childAt(d+1),v=p&&p.getBoundingRect(),g,y;if(e==="horizontal"){var S=h.width+(v?-v.x+h.x:0);g=a+S,g>r||c.newline?(a=0,g=S,s+=l+n,l=h.height):l=Math.max(l,h.height)}else{var k=h.height+(v?-v.y+h.y:0);y=s+k,y>i||c.newline?(a+=l+n,s=0,y=k,l=h.width):l=Math.max(l,h.width)}c.newline||(c.x=a,c.y=s,c.markRedraw(),e==="horizontal"?a=g+n:s=y+n)})}var Ab=eG;Rs(eG,"vertical");Rs(eG,"horizontal");function jy(e,t,n){n=zA(n||0);var r=t.width,i=t.height,a=Qo(e.left,r),s=Qo(e.top,i),l=Qo(e.right,r),c=Qo(e.bottom,i),d=Qo(e.width,r),h=Qo(e.height,i),p=n[2]+n[0],v=n[1]+n[3],g=e.aspect;switch(isNaN(d)&&(d=r-l-v-a),isNaN(h)&&(h=i-c-p-s),g!=null&&(isNaN(d)&&isNaN(h)&&(g>r/i?d=r*.8:h=i*.8),isNaN(d)&&(d=g*h),isNaN(h)&&(h=d/g)),isNaN(a)&&(a=r-l-d-v),isNaN(s)&&(s=i-c-h-p),e.left||e.right){case"center":a=r/2-d/2-n[3];break;case"right":a=r-d-v;break}switch(e.top||e.bottom){case"middle":case"center":s=i/2-h/2-n[0];break;case"bottom":s=i-h-p;break}a=a||0,s=s||0,isNaN(d)&&(d=r-v-a-(l||0)),isNaN(h)&&(h=i-p-s-(c||0));var y=new lo(a+n[3],s+n[0],d,h);return y.margin=n,y}function b_(e){var t=e.layoutMode||e.constructor.layoutMode;return Ir(t)?t:t?{type:t}:null}function Vy(e,t,n){var r=n&&n.ignoreSize;!er(r)&&(r=[r,r]);var i=s(Zx[0],0),a=s(Zx[1],1);d(Zx[0],e,i),d(Zx[1],e,a);function s(h,p){var v={},g=0,y={},S=0,k=2;if(JE(h,function(E){y[E]=e[E]}),JE(h,function(E){l(t,E)&&(v[E]=y[E]=t[E]),c(v,E)&&g++,c(y,E)&&S++}),r[p])return c(t,h[1])?y[h[2]]=null:c(t,h[2])&&(y[h[1]]=null),y;if(S===k||!g)return y;if(g>=k)return v;for(var C=0;C=0;c--)l=ao(l,i[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",a=n+"Id";return gS(this.ecModel,n,{index:this.get(i,!0),id:this.get(a,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(xs);pge(ho,xs);CA(ho);tvt(ho);nvt(ho,mvt);function mvt(e){var t=[];return Et(ho.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Cr(t,function(n){return pf(n).main}),e!=="dataset"&&go(t,"dataset")<=0&&t.unshift("dataset"),t}var l1e="";typeof navigator<"u"&&(l1e=navigator.platform||"");var S1="rgba(0, 0, 0, 0.2)";const gvt={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:S1,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:S1,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:S1,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:S1,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:S1,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:S1,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:l1e.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var u1e=xi(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),id="original",$u="arrayRows",Fd="objectRows",Rf="keyedColumns",y0="typedArray",c1e="unknown",Mh="column",b3="row",Fa={Must:1,Might:2,Not:3},d1e=Bs();function yvt(e){d1e(e).datasetMap=xi()}function bvt(e,t,n){var r={},i=tG(t);if(!i||!e)return r;var a=[],s=[],l=t.ecModel,c=d1e(l).datasetMap,d=i.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),Et(e,function(S,k){var C=Ir(S)?S:e[k]={name:S};C.type==="ordinal"&&h==null&&(h=k,p=y(C)),r[C.name]=[]});var v=c.get(d)||c.set(d,{categoryWayDim:p,valueWayDim:0});Et(e,function(S,k){var C=S.name,x=y(S);if(h==null){var E=v.valueWayDim;g(r[C],E,x),g(s,E,x),v.valueWayDim+=x}else if(h===k)g(r[C],0,x),g(a,0,x);else{var E=v.categoryWayDim;g(r[C],E,x),g(s,E,x),v.categoryWayDim+=x}});function g(S,k,C){for(var x=0;xt)return e[r];return e[n-1]}function wvt(e,t,n,r,i,a,s){a=a||e;var l=t(a),c=l.paletteIdx||0,d=l.paletteNameMap=l.paletteNameMap||{};if(d.hasOwnProperty(i))return d[i];var h=s==null||!r?n:Cvt(r,s);if(h=h||n,!(!h||!h.length)){var p=h[c];return i&&(d[i]=p),l.paletteIdx=(c+1)%h.length,p}}function Evt(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Jx,a4,Bse,Nse="\0_ec_inner",Tvt=1,rG=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,a,s,l){a=a||{},this.option=null,this._theme=new xs(a),this._locale=new xs(s),this._optionManager=l},t.prototype.setOption=function(n,r,i){var a=Vse(r);this._optionManager.setOption(n,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,Vse(r))},t.prototype._resetOption=function(n,r){var i=!1,a=this._optionManager;if(!n||n==="recreate"){var s=a.mountOption(n==="recreate");!this.option||n==="recreate"?Bse(this,s):(this.restoreData(),this._mergeOption(s,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=a.getTimelineOption(this);l&&(i=!0,this._mergeOption(l,r))}if(!n||n==="recreate"||n==="media"){var c=a.getMediaOption(this);c.length&&Et(c,function(d){i=!0,this._mergeOption(d,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,a=this._componentsMap,s=this._componentsCount,l=[],c=xi(),d=r&&r.replaceMergeMainTypeMap;yvt(this),Et(n,function(p,v){p!=null&&(ho.hasClass(v)?v&&(l.push(v),c.set(v,!0)):i[v]=i[v]==null?zi(p):ao(i[v],p,!0))}),d&&d.each(function(p,v){ho.hasClass(v)&&!c.get(v)&&(l.push(v),c.set(v,!0))}),ho.topologicalTravel(l,ho.getAllClassMainTypes(),h,this);function h(p){var v=xvt(this,p,Zl(n[p])),g=a.get(p),y=g?d&&d.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=Sht(g,v,y);Aht(S,p,ho),i[p]=null,a.set(p,null),s.set(p,0);var k=[],C=[],x=0,E;Et(S,function(_,T){var D=_.existing,P=_.newOption;if(!P)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var M=p==="series",O=ho.getClass(p,_.keyInfo.subType,!M);if(!O)return;if(p==="tooltip"){if(E)return;E=!0}if(D&&D.constructor===O)D.name=_.keyInfo.name,D.mergeOption(P,this),D.optionUpdated(P,!1);else{var L=yn({componentIndex:T},_.keyInfo);D=new O(P,this,this,L),yn(D,L),_.brandNew&&(D.__requireNewView=!0),D.init(P,this,this),D.optionUpdated(null,!0)}}D?(k.push(D.option),C.push(D),x++):(k.push(void 0),C.push(void 0))},this),i[p]=k,a.set(p,C),s.set(p,x),p==="series"&&Jx(this)}this._seriesIndices||Jx(this)},t.prototype.getOption=function(){var n=zi(this.option);return Et(n,function(r,i){if(ho.hasClass(i)){for(var a=Zl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!p_(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[i]=a}}),delete n[Nse],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var s=0;s=t:n==="max"?e<=t:e===t}function Ovt(e,t){return e.join(",")===t.join(",")}var fd=Et,__=Ir,zse=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function rF(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=zse.length;n=0;k--){var C=e[k];if(l||(y=C.data.rawIndexOf(C.stackedByDimension,g)),y>=0){var x=C.data.getByRawIndex(C.stackResultDimension,y);if(c==="all"||c==="positive"&&x>0||c==="negative"&&x<0||c==="samesign"&&v>=0&&x>0||c==="samesign"&&v<=0&&x<0){v=vht(v,x),S=x;break}}}return r[0]=v,r[1]=S,r})})}var HA=(function(){function e(t){this.data=t.data||(t.sourceFormat===Rf?{}:[]),this.sourceFormat=t.sourceFormat||c1e,this.seriesLayoutBy=t.seriesLayoutBy||Mh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rS&&(S=E)}g[0]=y,g[1]=S}},i=function(){return this._data?this._data.length/this._dimSize:0};Yse=(t={},t[$u+"_"+Mh]={pure:!0,appendData:a},t[$u+"_"+b3]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Fd]={pure:!0,appendData:a},t[Rf]={pure:!0,appendData:function(s){var l=this._data;Et(s,function(c,d){for(var h=l[d]||(l[d]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[id]={appendData:a},t[y0]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(s){for(var l=0;l=0&&(S=s.interpolatedValue[k])}return S!=null?S+"":""})}},e.prototype.getRawValue=function(t,n){return zy(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function Qse(e){var t,n;return Ir(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Ib(e){return new emt(e)}var emt=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var s=h(this._modBy),l=this._modDataCount||0,c=h(t&&t.modBy),d=t&&t.modDataCount||0;(s!==c||l!==d)&&(a="reset");function h(x){return!(x>=1)&&(x=1),x}var p;(this._dirty||a==="reset")&&(this._dirty=!1,p=this._doReset(r)),this._modBy=c,this._modDataCount=d;var v=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,y=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!r&&(p||g1&&r>0?l:s}};return a;function s(){return t=e?null:ci?-this._resultLT:0},e})(),nmt=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return QE(t,n)},e})();function rmt(e,t){var n=new nmt,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==Mh&&Su(s);var l=[],c={},d=e.dimensionsDefine;if(d)Et(d,function(S,k){var C=S.name,x={index:k,name:C,displayName:S.displayName};if(l.push(x),C!=null){var E="";Fm(c,C)&&Su(E),c[C]=x}});else for(var h=0;h65535?dmt:fmt}function x1(){return[1/0,-1/0]}function hmt(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nae(e,t,n,r,i){var a=E1e[n||"float"];if(i){var s=e[t],l=s&&s.length;if(l!==r){for(var c=new a(r),d=0;dk[1]&&(k[1]=S)}return this._rawCount=this._count=c,{start:l,end:c}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,a=this._chunks,s=this._dimensions,l=s.length,c=this._rawExtent,d=Cr(s,function(x){return x.property}),h=0;hC[1]&&(C[1]=k)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)a=s-1;else return s}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,a=i[t],s=[];if(!a)return s;r==null&&(r=1/0);for(var l=1/0,c=-1,d=0,h=0,p=this.count();h=0&&c<0)&&(l=y,c=g,d=0),g===c&&(s[d++]=h))}return s.length=d,s},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var a=0;a=p&&x<=v||isNaN(x))&&(c[d++]=S),S++}y=!0}else if(a===2){for(var k=g[i[0]],E=g[i[1]],_=t[i[1]][0],T=t[i[1]][1],C=0;C=p&&x<=v||isNaN(x))&&(D>=_&&D<=T||isNaN(D))&&(c[d++]=S),S++}y=!0}}if(!y)if(a===1)for(var C=0;C=p&&x<=v||isNaN(x))&&(c[d++]=P)}else for(var C=0;Ct[L][1])&&(M=!1)}M&&(c[d++]=n.getRawIndex(C))}return dC[1]&&(C[1]=k)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,a=i[t],s=this.count(),l=0,c=Math.floor(1/n),d=this.getRawIndex(0),h,p,v,g=new(k1(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));g[l++]=d;for(var y=1;yh&&(h=p,v=_)}B>0&&Bl&&(S=l-h);for(var k=0;ky&&(y=x,g=h+k)}var E=this.getRawIndex(p),_=this.getRawIndex(g);ph-y&&(c=h-y,l.length=c);for(var S=0;Sp[1]&&(p[1]=C),v[g++]=x}return a._count=g,a._indices=v,a._updateGetRawIdx(),a},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,a=0,s=this.count();ac&&(c=p)}return s=[l,c],this._extent[t]=s,s},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,r,i,a){return QE(n[a],this._dimensions[a])}sF={arrayRows:t,objectRows:function(n,r,i,a){return QE(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,i,a){var s=n&&(n.value==null?n:n.value);return QE(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,i,a){return n[a]}}})(),e})(),pmt=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,a;if(Qx(t)){var s=t,l=void 0,c=void 0,d=void 0;if(r){var h=n[0];h.prepareSource(),d=h.getSource(),l=d.data,c=d.sourceFormat,a=[h._getVersionSign()]}else l=s.get("data",!0),c=Mu(l)?y0:id,a=[];var p=this._getSourceMetaRawOption()||{},v=d&&d.metaRawOption||{},g=gi(p.seriesLayoutBy,v.seriesLayoutBy)||null,y=gi(p.sourceHeader,v.sourceHeader),S=gi(p.dimensions,v.dimensions),k=g!==v.seriesLayoutBy||!!y!=!!v.sourceHeader||S;i=k?[dz(l,{seriesLayoutBy:g,sourceHeader:y,dimensions:S},c)]:[]}else{var C=t;if(r){var x=this._applyTransform(n);i=x.sourceList,a=x.upstreamSignList}else{var E=C.get("source",!0);i=[dz(E,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&rae(a)}var s,l=[],c=[];return Et(t,function(d){d.prepareSource();var h=d.getSource(i||0),p="";i!=null&&!h&&rae(p),l.push(h),c.push(d._getVersionSign())}),r?s=umt(r,l,{datasetIndex:n.componentIndex}):i!=null&&(s=[Gvt(l[0])]),{sourceList:s,upstreamSignList:c}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var spt=D0(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function apt(e){return opt(e)?!!spt[e]:!0}function yge(e,t,n,r,i){for(var a=[],s=[],l="",c="",d=0,h=0,p=0;pn:i+h+g>n){h?(l||c)&&(y?(l||(l=c,c="",d=0,h=d),a.push(l),s.push(h-d),c+=v,d+=g,l="",h=d):(c&&(l+=c,c="",d=0),a.push(l),s.push(h),l=v,h=g)):y?(a.push(c),s.push(d),c=v,d=g):(a.push(v),s.push(g));continue}h+=g,y?(c+=v,d+=g):(c&&(l+=c,c="",d=0),l+=v)}return!a.length&&!l&&(l=e,c="",d=0),c&&(l+=c),l&&(a.push(l),s.push(h)),a.length===1&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}var rz="__zr_style_"+Math.round(Math.random()*10),km={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},AA={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};km[rz]=!0;var Koe=["z","z2","invisible"],lpt=["invisible"],bS=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=ns(n),i=0;i1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Vw[0]=UN(i)*n+e,Vw[1]=zN(i)*r+t,zw[0]=UN(a)*n+e,zw[1]=zN(a)*r+t,d(l,Vw,zw),h(c,Vw,zw),i=i%Av,i<0&&(i=i+Av),a=a%Av,a<0&&(a=a+Av),i>a&&!s?a+=Av:ii&&(Uw[0]=UN(g)*n+e,Uw[1]=zN(g)*r+t,d(l,Uw,l),h(c,Uw,c))}var oo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Iv=[],Lv=[],Yd=[],Lp=[],Xd=[],Zd=[],HN=Math.min,WN=Math.max,Dv=Math.cos,Pv=Math.sin,ah=Math.abs,iz=Math.PI,Gp=iz*2,GN=typeof Float32Array<"u",i4=[];function KN(e){var t=Math.round(e/iz*1e8)/1e8;return t%2*iz}function bge(e,t){var n=KN(e[0]);n<0&&(n+=Gp);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Gp?i=n+Gp:t&&n-i>=Gp?i=n-Gp:!t&&n>i?i=n+(Gp-KN(n-i)):t&&n0&&(this._ux=ah(r/dT/t)||0,this._uy=ah(r/dT/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(oo.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=ah(t-this._xi),i=ah(n-this._yi),a=r>this._ux||i>this._uy;if(this.addData(oo.L,t,n),this._ctx&&a&&this._ctx.lineTo(t,n),a)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var s=r*r+i*i;s>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=s)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,a,s){return this._drawPendingPt(),this.addData(oo.C,t,n,r,i,a,s),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,a,s),this._xi=a,this._yi=s,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(oo.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,a,s){this._drawPendingPt(),i4[0]=i,i4[1]=a,bge(i4,s),i=i4[0],a=i4[1];var l=a-i;return this.addData(oo.A,t,n,r,r,i,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,i,a,s),this._xi=Dv(a)*r+t,this._yi=Pv(a)*r+n,this},e.prototype.arcTo=function(t,n,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,a),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(oo.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(oo.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&GN&&(this.data=new Float32Array(n));for(var r=0;rh.length&&(this._expandData(),h=this.data);for(var p=0;p0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Yd[0]=Yd[1]=Xd[0]=Xd[1]=Number.MAX_VALUE,Lp[0]=Lp[1]=Zd[0]=Zd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,a=0,s;for(s=0;sr||ah(E)>i||v===n-1)&&(S=Math.sqrt(x*x+E*E),a=k,s=w);break}case oo.C:{var _=t[v++],T=t[v++],k=t[v++],w=t[v++],D=t[v++],P=t[v++];S=Bft(a,s,_,T,k,w,D,P,10),a=D,s=P;break}case oo.Q:{var _=t[v++],T=t[v++],k=t[v++],w=t[v++];S=jft(a,s,_,T,k,w,10),a=k,s=w;break}case oo.A:var M=t[v++],$=t[v++],L=t[v++],B=t[v++],j=t[v++],H=t[v++],U=H+j;v+=1,y&&(l=Dv(j)*L+M,c=Pv(j)*B+$),S=WN(L,B)*HN(Gp,Math.abs(H)),a=Dv(U)*L+M,s=Pv(U)*B+$;break;case oo.R:{l=a=t[v++],c=s=t[v++];var W=t[v++],K=t[v++];S=W*2+K*2;break}case oo.Z:{var x=l-a,E=c-s;S=Math.sqrt(x*x+E*E),a=l,s=c;break}}S>=0&&(d[p++]=S,h+=S)}return this._pathLen=h,h},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,a=this._uy,s=this._len,l,c,d,h,p,v,g=n<1,y,S,k=0,w=0,x,E=0,_,T;if(!(g&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,S=this._pathLen,x=n*S,!x)))e:for(var D=0;D0&&(t.lineTo(_,T),E=0),P){case oo.M:l=d=r[D++],c=h=r[D++],t.moveTo(d,h);break;case oo.L:{p=r[D++],v=r[D++];var $=ah(p-d),L=ah(v-h);if($>i||L>a){if(g){var B=y[w++];if(k+B>x){var j=(x-k)/B;t.lineTo(d*(1-j)+p*j,h*(1-j)+v*j);break e}k+=B}t.lineTo(p,v),d=p,h=v,E=0}else{var H=$*$+L*L;H>E&&(_=p,T=v,E=H)}break}case oo.C:{var U=r[D++],W=r[D++],K=r[D++],oe=r[D++],ae=r[D++],ee=r[D++];if(g){var B=y[w++];if(k+B>x){var j=(x-k)/B;lT(d,U,K,ae,j,Iv),lT(h,W,oe,ee,j,Lv),t.bezierCurveTo(Iv[1],Lv[1],Iv[2],Lv[2],Iv[3],Lv[3]);break e}k+=B}t.bezierCurveTo(U,W,K,oe,ae,ee),d=ae,h=ee;break}case oo.Q:{var U=r[D++],W=r[D++],K=r[D++],oe=r[D++];if(g){var B=y[w++];if(k+B>x){var j=(x-k)/B;uT(d,U,K,j,Iv),uT(h,W,oe,j,Lv),t.quadraticCurveTo(Iv[1],Lv[1],Iv[2],Lv[2]);break e}k+=B}t.quadraticCurveTo(U,W,K,oe),d=K,h=oe;break}case oo.A:var Y=r[D++],Q=r[D++],ie=r[D++],q=r[D++],te=r[D++],Se=r[D++],Fe=r[D++],ve=!r[D++],Re=ie>q?ie:q,Ge=ah(ie-q)>.001,nt=te+Se,Ie=!1;if(g){var B=y[w++];k+B>x&&(nt=te+Se*(x-k)/B,Ie=!0),k+=B}if(Ge&&t.ellipse?t.ellipse(Y,Q,ie,q,Fe,te,nt,ve):t.arc(Y,Q,Re,te,nt,ve),Ie)break e;M&&(l=Dv(te)*ie+Y,c=Pv(te)*q+Q),d=Dv(nt)*ie+Y,h=Pv(nt)*q+Q;break;case oo.R:l=d=r[D],c=h=r[D+1],p=r[D++],v=r[D++];var _e=r[D++],me=r[D++];if(g){var B=y[w++];if(k+B>x){var ge=x-k;t.moveTo(p,v),t.lineTo(p+HN(ge,_e),v),ge-=_e,ge>0&&t.lineTo(p+_e,v+HN(ge,me)),ge-=me,ge>0&&t.lineTo(p+WN(_e-ge,0),v+me),ge-=_e,ge>0&&t.lineTo(p,v+WN(me-ge,0));break e}k+=B}t.rect(p,v,_e,me);break;case oo.Z:if(g){var B=y[w++];if(k+B>x){var j=(x-k)/B;t.lineTo(d*(1-j)+l*j,h*(1-j)+c*j);break e}k+=B}t.closePath(),d=l,h=c}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=oo,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function y1(e,t,n,r,i,a,s){if(i===0)return!1;var l=i,c=0,d=e;if(s>t+l&&s>r+l||se+l&&a>n+l||at+p&&h>r+p&&h>a+p&&h>l+p||he+p&&d>n+p&&d>i+p&&d>s+p||dt+d&&c>r+d&&c>a+d||ce+d&&l>n+d&&l>i+d||ln||h+di&&(i+=o4);var v=Math.atan2(c,l);return v<0&&(v+=o4),v>=r&&v<=i||v+o4>=r&&v+o4<=i}function Rv(e,t,n,r,i,a){if(a>t&&a>r||ai?l:0}var Dp=zm.CMD,Mv=Math.PI*2,mpt=1e-4;function gpt(e,t){return Math.abs(e-t)t&&d>r&&d>a&&d>l||d1&&ypt(),g=Ha(t,r,a,l,Oc[0]),v>1&&(y=Ha(t,r,a,l,Oc[1]))),v===2?kt&&l>r&&l>a||l=0&&d<=1){for(var h=0,p=Su(t,r,a,d),v=0;vn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);Vl[0]=-c,Vl[1]=c;var d=Math.abs(r-i);if(d<1e-4)return 0;if(d>=Mv-1e-4){r=0,i=Mv;var h=a?1:-1;return s>=Vl[0]+e&&s<=Vl[1]+e?h:0}if(r>i){var p=r;r=i,i=p}r<0&&(r+=Mv,i+=Mv);for(var v=0,g=0;g<2;g++){var y=Vl[g];if(y+e>s){var S=Math.atan2(l,y),h=a?1:-1;S<0&&(S=Mv+S),(S>=r&&S<=i||S+Mv>=r&&S+Mv<=i)&&(S>Math.PI/2&&S1&&(n||(l+=Rv(c,d,h,p,r,i))),k&&(c=a[y],d=a[y+1],h=c,p=d),S){case Dp.M:h=a[y++],p=a[y++],c=h,d=p;break;case Dp.L:if(n){if(y1(c,d,a[y],a[y+1],t,r,i))return!0}else l+=Rv(c,d,a[y],a[y+1],r,i)||0;c=a[y++],d=a[y++];break;case Dp.C:if(n){if(hpt(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],t,r,i))return!0}else l+=bpt(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],r,i)||0;c=a[y++],d=a[y++];break;case Dp.Q:if(n){if(ppt(c,d,a[y++],a[y++],a[y],a[y+1],t,r,i))return!0}else l+=_pt(c,d,a[y++],a[y++],a[y],a[y+1],r,i)||0;c=a[y++],d=a[y++];break;case Dp.A:var w=a[y++],x=a[y++],E=a[y++],_=a[y++],T=a[y++],D=a[y++];y+=1;var P=!!(1-a[y++]);v=Math.cos(T)*E+w,g=Math.sin(T)*_+x,k?(h=v,p=g):l+=Rv(c,d,v,g,r,i);var M=(r-w)*_/E+w;if(n){if(vpt(w,x,_,T,T+D,P,t,M,i))return!0}else l+=Spt(w,x,_,T,T+D,P,M,i);c=Math.cos(T+D)*E+w,d=Math.sin(T+D)*_+x;break;case Dp.R:h=c=a[y++],p=d=a[y++];var $=a[y++],L=a[y++];if(v=h+$,g=p+L,n){if(y1(h,p,v,p,t,r,i)||y1(v,p,v,g,t,r,i)||y1(v,g,h,g,t,r,i)||y1(h,g,h,p,t,r,i))return!0}else l+=Rv(v,p,v,g,r,i),l+=Rv(h,g,h,p,r,i);break;case Dp.Z:if(n){if(y1(c,d,h,p,t,r,i))return!0}else l+=Rv(c,d,h,p,r,i);c=h,d=p;break}}return!n&&!gpt(d,p)&&(l+=Rv(c,d,h,p,r,i)||0),l!==0}function kpt(e,t,n){return _ge(e,0,!1,t,n)}function wpt(e,t,n,r){return _ge(e,t,!0,n,r)}var Sge=co({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},km),xpt={style:co({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},AA.style)},qN=p_.concat(["invisible","culling","z","z2","zlevel","parent"]),vo=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(c){n.buildPath(c,n.shape)}),i.silent=!0;var a=i.style;for(var s in r)a[s]!==r[s]&&(a[s]=r[s]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var l=0;l.5?JV:r>.2?sht:QV}else if(n)return QV}return JV},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(br(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),s=cT(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var s=this.path;(a||this.__dirty&V1)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),n=s.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){l.copy(n);var c=r.strokeNoScale?this.getLineScale():1,d=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;d=Math.max(d,h??4)}c>1e-10&&(l.width+=d/c,l.height+=d/c,l.x-=d/c/2,l.y-=d/c/2)}return l}return n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect(),s=this.style;if(n=i[0],r=i[1],a.contain(n,r)){var l=this.path;if(this.hasStroke()){var c=s.lineWidth,d=s.strokeNoScale?this.getLineScale():1;if(d>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),wpt(l,c/d,n,r)))return!0}if(this.hasFill())return kpt(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=V1,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:yn(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&V1)},t.prototype.createStyle=function(n){return wA(Sge,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=yn({},this.shape))},t.prototype._applyStateObj=function(n,r,i,a,s,l){e.prototype._applyStateObj.call(this,n,r,i,a,s,l);var c=!(r&&a),d;if(r&&r.shape?s?a?d=r.shape:(d=yn({},i.shape),yn(d,r.shape)):(d=yn({},a?this.shape:i.shape),yn(d,r.shape)):c&&(d=i.shape),d)if(s){this.shape=yn({},this.shape);for(var h={},p=ns(d),v=0;v0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return wA(Cpt,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=LW(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var a=n.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(bS);vT.prototype.type="tspan";var Ept=co({x:0,y:0},km),Tpt={style:co({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},AA.style)};function Apt(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var G0=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return wA(Ept,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var a=Apt(r.image)?r.image:this.__image;if(!a)return 0;var s=n==="width"?"height":"width",l=r[s];return l==null?a[n]:a[n]/a[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Tpt},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new lo(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(bS);G0.prototype.type="image";function Ipt(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,s=t.r,l,c,d,h;i<0&&(n=n+i,i=-i),a<0&&(r=r+a,a=-a),typeof s=="number"?l=c=d=h=s:s instanceof Array?s.length===1?l=c=d=h=s[0]:s.length===2?(l=d=s[0],c=h=s[1]):s.length===3?(l=s[0],c=h=s[1],d=s[2]):(l=s[0],c=s[1],d=s[2],h=s[3]):l=c=d=h=0;var p;l+c>i&&(p=l+c,l*=i/p,c*=i/p),d+h>i&&(p=d+h,d*=i/p,h*=i/p),c+d>a&&(p=c+d,c*=a/p,d*=a/p),l+h>a&&(p=l+h,l*=a/p,h*=a/p),e.moveTo(n+l,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-d),d!==0&&e.arc(n+i-d,r+a-d,d,0,Math.PI/2),e.lineTo(n+h,r+a),h!==0&&e.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),e.lineTo(n,r+l),l!==0&&e.arc(n+l,r+l,l,Math.PI,Math.PI*1.5)}var Z1=Math.round;function kge(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,s=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=s;var l=n&&n.lineWidth;return l&&(Z1(r*2)===Z1(i*2)&&(e.x1=e.x2=rm(r,l,!0)),Z1(a*2)===Z1(s*2)&&(e.y1=e.y2=rm(a,l,!0))),e}}function wge(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,s=t.height;e.x=r,e.y=i,e.width=a,e.height=s;var l=n&&n.lineWidth;return l&&(e.x=rm(r,l,!0),e.y=rm(i,l,!0),e.width=Math.max(rm(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(rm(i+s,l,!1)-e.y,s===0?0:1)),e}}function rm(e,t,n){if(!t)return e;var r=Z1(e*2);return(r+Z1(t))%2===0?r/2:(r+(n?1:-1))/2}var Lpt=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Dpt={},Js=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Lpt},t.prototype.buildPath=function(n,r){var i,a,s,l;if(this.subPixelOptimize){var c=wge(Dpt,r,this.style);i=c.x,a=c.y,s=c.width,l=c.height,c.r=r.r,r=c}else i=r.x,a=r.y,s=r.width,l=r.height;r.r?Ipt(n,r):n.rect(i,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(vo);Js.prototype.type="rect";var Joe={fill:"#000"},Qoe=2,Ppt={style:co({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},AA.style)},el=(function(e){Nn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Joe,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,j=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),H=s.calculatedLineHeight,U=0;U=0&&(U=D[H],U.align==="right");)this._placeToken(U,n,M,w,j,"right",E),$-=U.width,j-=U.width,H--;for(B+=(a-(B-k)-(x-j)-$)/2;L<=H;)U=D[L],this._placeToken(U,n,M,w,B+U.width/2,"center",E),B+=U.width,L++;w+=M}},t.prototype._placeToken=function(n,r,i,a,s,l,c){var d=r.rich[n.styleName]||{};d.text=n.text;var h=n.verticalAlign,p=a+i/2;h==="top"?p=a+n.height/2:h==="bottom"&&(p=a+i-n.height/2);var v=!n.isLineHolder&&YN(d);v&&this._renderBackground(d,r,l==="right"?s-n.width:l==="center"?s-n.width/2:s,p-n.height/2,n.width,n.height);var g=!!d.backgroundColor,y=n.textPadding;y&&(s=ose(s,l,y),p-=n.height/2-y[0]-n.innerHeight/2);var S=this._getOrCreateChild(vT),k=S.createStyle();S.useStyle(k);var w=this._defaultStyle,x=!1,E=0,_=ise("fill"in d?d.fill:"fill"in r?r.fill:(x=!0,w.fill)),T=rse("stroke"in d?d.stroke:"stroke"in r?r.stroke:!g&&!c&&(!w.autoStroke||x)?(E=Qoe,w.stroke):null),D=d.textShadowBlur>0||r.textShadowBlur>0;k.text=n.text,k.x=s,k.y=p,D&&(k.shadowBlur=d.textShadowBlur||r.textShadowBlur||0,k.shadowColor=d.textShadowColor||r.textShadowColor||"transparent",k.shadowOffsetX=d.textShadowOffsetX||r.textShadowOffsetX||0,k.shadowOffsetY=d.textShadowOffsetY||r.textShadowOffsetY||0),k.textAlign=l,k.textBaseline="middle",k.font=n.font||Fm,k.opacity=yb(d.opacity,r.opacity,1),tse(k,d),T&&(k.lineWidth=yb(d.lineWidth,r.lineWidth,E),k.lineDash=yi(d.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=T),_&&(k.fill=_);var P=n.contentWidth,M=n.contentHeight;S.setBoundingRect(new lo(O4(k.x,P,k.textAlign),z1(k.y,M,k.textBaseline),P,M))},t.prototype._renderBackground=function(n,r,i,a,s,l){var c=n.backgroundColor,d=n.borderWidth,h=n.borderColor,p=c&&c.image,v=c&&!p,g=n.borderRadius,y=this,S,k;if(v||n.lineHeight||d&&h){S=this._getOrCreateChild(Js),S.useStyle(S.createStyle()),S.style.fill=null;var w=S.shape;w.x=i,w.y=a,w.width=s,w.height=l,w.r=g,S.dirtyShape()}if(v){var x=S.style;x.fill=c||null,x.fillOpacity=yi(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(G0),k.onload=function(){y.dirtyStyle()};var E=k.style;E.image=c.image,E.x=i,E.y=a,E.width=s,E.height=l}if(d&&h){var x=S.style;x.lineWidth=d,x.stroke=h,x.strokeOpacity=yi(n.strokeOpacity,1),x.lineDash=n.borderDash,x.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var _=(S||k).style;_.shadowBlur=n.shadowBlur||0,_.shadowColor=n.shadowColor||"transparent",_.shadowOffsetX=n.shadowOffsetX||0,_.shadowOffsetY=n.shadowOffsetY||0,_.opacity=yb(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return $pt(n)&&(r=[n.fontStyle,n.fontWeight,Opt(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&hf(r)||n.textFont||n.font},t})(bS),Rpt={left:!0,right:1,center:1},Mpt={top:1,bottom:1,middle:1},ese=["fontStyle","fontWeight","fontSize","fontFamily"];function Opt(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?bW+"px":e+"px"}function tse(e,t){for(var n=0;n=0,a=!1;if(e instanceof vo){var s=xge(e),l=i&&s.selectFill||s.normalFill,c=i&&s.selectStroke||s.normalStroke;if(b1(l)||b1(c)){r=r||{};var d=r.style||{};d.fill==="inherit"?(a=!0,r=yn({},r),d=yn({},d),d.fill=l):!b1(d.fill)&&b1(l)?(a=!0,r=yn({},r),d=yn({},d),d.fill=Ioe(l)):!b1(d.stroke)&&b1(c)&&(a||(r=yn({},r),d=yn({},d)),d.stroke=Ioe(c)),r.style=d}}if(r&&r.z2==null){a||(r=yn({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Fpt)}return r}function Wpt(e,t,n){if(n&&n.z2==null){n=yn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??jpt)}return n}function Gpt(e,t,n){var r=go(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Upt(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=yn({},n),s=yn({opacity:r?i:a.opacity*.1},s),n.style=s),n}function XN(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Hpt(this,e,t,n);if(e==="blur")return Gpt(this,e,n);if(e==="select")return Wpt(this,e,n)}return n}function Kpt(e){e.stateProxy=XN;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=XN),n&&(n.stateProxy=XN)}function dse(e,t){!Dge(e,t)&&!e.__highByOuter&&tp(e,Cge)}function fse(e,t){!Dge(e,t)&&!e.__highByOuter&&tp(e,Ege)}function gT(e,t){e.__highByOuter|=1<<(t||0),tp(e,Cge)}function yT(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&tp(e,Ege)}function qpt(e){tp(e,NW)}function Age(e){tp(e,Tge)}function Ige(e){tp(e,Vpt)}function Lge(e){tp(e,zpt)}function Dge(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Pge(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,a){var s=$W(a),l=i==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(d){Tge(d)}),l&&n.push(a)),s.isBlured=!1}),Et(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function oz(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function a(d,h){for(var p=0;p0){var l={dataIndex:s,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function az(e,t,n){Rge(e,!0),tp(e,Kpt),t0t(e,t,n)}function e0t(e){Rge(e,!1)}function g_(e,t,n,r){r?e0t(e):az(e,t,n)}function t0t(e,t,n){var r=Yi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var pse=["emphasis","blur","select"],n0t={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function bT(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(s*=ZN(y),l*=ZN(y));var S=(i===a?-1:1)*ZN((s*s*(l*l)-s*s*(g*g)-l*l*(v*v))/(s*s*(g*g)+l*l*(v*v)))||0,k=S*s*g/l,w=S*-l*v/s,x=(e+n)/2+Gw(p)*k-Ww(p)*w,E=(t+r)/2+Ww(p)*k+Gw(p)*w,_=yse([1,0],[(v-k)/s,(g-w)/l]),T=[(v-k)/s,(g-w)/l],D=[(-1*v-k)/s,(-1*g-w)/l],P=yse(T,D);if(cz(T,D)<=-1&&(P=s4),cz(T,D)>=1&&(P=0),P<0){var M=Math.round(P/s4*1e6)/1e6;P=s4*2+M%2*s4}h.addData(d,x,E,s,l,_,P,p,a)}var l0t=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,u0t=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function c0t(e){var t=new zm;if(!e)return t;var n=0,r=0,i=n,a=r,s,l=zm.CMD,c=e.match(l0t);if(!c)return t;for(var d=0;dU*U+W*W&&(M=L,$=B),{cx:M,cy:$,x0:-h,y0:-p,x1:M*(i/T-1),y1:$*(i/T-1)}}function y0t(e){var t;if(er(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function b0t(e,t){var n,r=$4(t.r,0),i=$4(t.r0||0,0),a=r>0,s=i>0;if(!(!a&&!s)){if(a||(r=i,i=0),i>r){var l=r;r=i,i=l}var c=t.startAngle,d=t.endAngle;if(!(isNaN(c)||isNaN(d))){var h=t.cx,p=t.cy,v=!!t.clockwise,g=_se(d-c),y=g>JN&&g%JN;if(y>gd&&(g=y),!(r>gd))e.moveTo(h,p);else if(g>JN-gd)e.moveTo(h+r*S1(c),p+r*Ov(c)),e.arc(h,p,r,c,d,!v),i>gd&&(e.moveTo(h+i*S1(d),p+i*Ov(d)),e.arc(h,p,i,d,c,v));else{var S=void 0,k=void 0,w=void 0,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0,P=void 0,M=void 0,$=void 0,L=void 0,B=void 0,j=void 0,H=void 0,U=void 0,W=r*S1(c),K=r*Ov(c),oe=i*S1(d),ae=i*Ov(d),ee=g>gd;if(ee){var Y=t.cornerRadius;Y&&(n=y0t(Y),S=n[0],k=n[1],w=n[2],x=n[3]);var Q=_se(r-i)/2;if(E=Jd(Q,w),_=Jd(Q,x),T=Jd(Q,S),D=Jd(Q,k),$=P=$4(E,_),L=M=$4(T,D),(P>gd||M>gd)&&(B=r*S1(d),j=r*Ov(d),H=i*S1(c),U=i*Ov(c),ggd){var Ge=Jd(w,$),nt=Jd(x,$),Ie=Kw(H,U,W,K,r,Ge,v),_e=Kw(B,j,oe,ae,r,nt,v);e.moveTo(h+Ie.cx+Ie.x0,p+Ie.cy+Ie.y0),$0&&e.arc(h+Ie.cx,p+Ie.cy,Ge,ul(Ie.y0,Ie.x0),ul(Ie.y1,Ie.x1),!v),e.arc(h,p,r,ul(Ie.cy+Ie.y1,Ie.cx+Ie.x1),ul(_e.cy+_e.y1,_e.cx+_e.x1),!v),nt>0&&e.arc(h+_e.cx,p+_e.cy,nt,ul(_e.y1,_e.x1),ul(_e.y0,_e.x0),!v))}else e.moveTo(h+W,p+K),e.arc(h,p,r,c,d,!v);if(!(i>gd)||!ee)e.lineTo(h+oe,p+ae);else if(L>gd){var Ge=Jd(S,L),nt=Jd(k,L),Ie=Kw(oe,ae,B,j,i,-nt,v),_e=Kw(W,K,H,U,i,-Ge,v);e.lineTo(h+Ie.cx+Ie.x0,p+Ie.cy+Ie.y0),L0&&e.arc(h+Ie.cx,p+Ie.cy,nt,ul(Ie.y0,Ie.x0),ul(Ie.y1,Ie.x1),!v),e.arc(h,p,i,ul(Ie.cy+Ie.y1,Ie.cx+Ie.x1),ul(_e.cy+_e.y1,_e.cx+_e.x1),v),Ge>0&&e.arc(h+_e.cx,p+_e.cy,Ge,ul(_e.y1,_e.x1),ul(_e.y0,_e.x0),!v))}else e.lineTo(h+oe,p+ae),e.arc(h,p,i,d,c,v)}e.closePath()}}}var _0t=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),K0=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new _0t},t.prototype.buildPath=function(n,r){b0t(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(vo);K0.prototype.type="sector";var S0t=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),VW=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new S0t},t.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,s=Math.PI*2;n.moveTo(i+r.r,a),n.arc(i,a,r.r,0,s,!1),n.moveTo(i+r.r0,a),n.arc(i,a,r.r0,0,s,!0)},t})(vo);VW.prototype.type="ring";function k0t(e,t,n,r){var i=[],a=[],s=[],l=[],c,d,h,p;if(r){h=[1/0,1/0],p=[-1/0,-1/0];for(var v=0,g=e.length;v=2){if(r){var a=k0t(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var s=i.length,l=0;l<(n?s:s-1);l++){var c=a[l*2],d=a[l*2+1],h=i[(l+1)%s];e.bezierCurveTo(c[0],c[1],d[0],d[1],h[0],h[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var l=1,p=i.length;lBv[1]){if(l=!1,a)return l;var h=Math.abs(Bv[0]-$v[1]),p=Math.abs($v[0]-Bv[1]);Math.min(h,p)>i.len()&&(h0){var p=h.duration,v=h.delay,g=h.easing,y={duration:p,delay:v||0,easing:g,done:a,force:!!a||!!s,setToFinal:!d,scope:e,during:s};l?t.animateFrom(n,y):t.animateTo(n,y)}else t.stopAnimation(),!l&&t.attr(n),s&&s(1),a&&a()}function eu(e,t,n,r,i,a){HW("update",e,t,n,r,i,a)}function Kc(e,t,n,r,i,a){HW("enter",e,t,n,r,i,a)}function Eb(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function wse(e){return!e.isGroup}function H0t(e){return e.shape!=null}function Hge(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){wse(c)&&c.anid&&(l[c.anid]=c)}),l}function i(s){var l={x:s.x,y:s.y,rotation:s.rotation};return H0t(s)&&(l.shape=yn({},s.shape)),l}var a=r(e);t.traverse(function(s){if(wse(s)&&s.anid){var l=a[s.anid];if(l){var c=i(s);s.attr(i(l)),eu(s,c,n,Yi(s).dataIndex)}}})}function W0t(e,t){return xr(e,function(n){var r=n[0];r=wT(r,t.x),r=xT(r,t.x+t.width);var i=n[1];return i=wT(i,t.y),i=xT(i,t.y+t.height),[r,i]})}function G0t(e,t){var n=wT(e.x,t.x),r=xT(e.x+e.width,t.x+t.width),i=wT(e.y,t.y),a=xT(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function qW(e,t,n){var r=yn({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),co(i,n),new G0(r)):GW(e.replace("path://",""),r,n,"center")}function K0t(e,t,n,r,i){for(var a=0,s=i[i.length-1];a1)return!1;var k=QN(g,y,h,p)/v;return!(k<0||k>1)}function QN(e,t,n,r){return e*r-n*t}function q0t(e){return e<=1e-6&&e>=-1e-6}function MA(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=br(t)?{formatter:t}:t,a=n.mainType,s=n.componentIndex,l={componentType:a,name:r,$vars:["name"]};l[a+"Index"]=s;var c=e.formatterParamsExtra;c&&Et(ns(c),function(h){jm(l,h)||(l[h]=c[h],l.$vars.push(h))});var d=Yi(e.el);d.componentMainType=a,d.componentIndex=s,d.tooltipConfig={name:r,option:co({content:r,encodeHTMLContent:!0,formatterParams:l},i)}}function xse(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function OA(e,t){if(e)if(er(e))for(var n=0;n=0&&l.push(c)}),l}}function qge(e,t){return ao(ao({},e,!0),t,!0)}const cvt={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},dvt={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var CT="ZH",YW="EN",yy=YW,JE={},XW={},Yge=zr.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yy).toUpperCase();return e.indexOf(CT)>-1?CT:yy})():yy;function Xge(e,t){e=e.toUpperCase(),XW[e]=new xs(t),JE[e]=t}function fvt(e){if(br(e)){var t=JE[e.toUpperCase()]||{};return e===CT||e===YW?zi(t):ao(zi(t),zi(JE[yy]),!1)}else return ao(zi(e),zi(JE[yy]),!1)}function hvt(e){return XW[e]}function pvt(){return XW[yy]}Xge(YW,cvt);Xge(CT,dvt);var ZW=1e3,JW=ZW*60,Tb=JW*60,Vc=Tb*24,Dse=Vc*365,B4={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xw="{yyyy}-{MM}-{dd}",Pse={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xw,hour:Xw+" "+B4.hour,minute:Xw+" "+B4.minute,second:Xw+" "+B4.second,millisecond:B4.none},nF=["year","month","day","hour","minute","second","millisecond"],Zge=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Pp(e,t){return e+="","0000".substr(0,t-e.length)+e}function by(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function vvt(e){return e===by(e)}function mvt(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function FA(e,t,n,r){var i=Kh(e),a=i[QW(n)](),s=i[_y(n)]()+1,l=Math.floor((s-1)/3)+1,c=i[jA(n)](),d=i["get"+(n?"UTC":"")+"Day"](),h=i[b_(n)](),p=(h-1)%12+1,v=i[VA(n)](),g=i[zA(n)](),y=i[UA(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),w=r instanceof xs?r:hvt(r||Yge)||pvt(),x=w.getModel("time"),E=x.get("month"),_=x.get("monthAbbr"),T=x.get("dayOfWeek"),D=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,S+"").replace(/{A}/g,k+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Pp(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,E[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,Pp(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Pp(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,D[d]).replace(/{e}/g,d+"").replace(/{HH}/g,Pp(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Pp(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Pp(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Pp(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,Pp(y,3)).replace(/{S}/g,y+"")}function gvt(e,t,n,r,i){var a=null;if(br(n))a=n;else if(ii(n))a=n(e.value,t,{level:e.level});else{var s=yn({},B4);if(e.level>0)for(var l=0;l=0;--l)if(c[d]){a=c[d];break}a=a||s.none}if(er(a)){var p=e.level==null?0:e.level>=0?e.level:a.length+e.level;p=Math.min(p,a.length-1),a=a[p]}}return FA(new Date(e.value),a,i,r)}function Jge(e,t){var n=Kh(e),r=n[_y(t)]()+1,i=n[jA(t)](),a=n[b_(t)](),s=n[VA(t)](),l=n[zA(t)](),c=n[UA(t)](),d=c===0,h=d&&l===0,p=h&&s===0,v=p&&a===0,g=v&&i===1,y=g&&r===1;return y?"year":g?"month":v?"day":p?"hour":h?"minute":d?"second":"millisecond"}function Rse(e,t,n){var r=Io(e)?Kh(e):e;switch(t=t||Jge(e,n),t){case"year":return r[QW(n)]();case"half-year":return r[_y(n)]()>=6?1:0;case"quarter":return Math.floor((r[_y(n)]()+1)/4);case"month":return r[_y(n)]();case"day":return r[jA(n)]();case"half-day":return r[b_(n)]()/24;case"hour":return r[b_(n)]();case"minute":return r[VA(n)]();case"second":return r[zA(n)]();case"millisecond":return r[UA(n)]()}}function QW(e){return e?"getUTCFullYear":"getFullYear"}function _y(e){return e?"getUTCMonth":"getMonth"}function jA(e){return e?"getUTCDate":"getDate"}function b_(e){return e?"getUTCHours":"getHours"}function VA(e){return e?"getUTCMinutes":"getMinutes"}function zA(e){return e?"getUTCSeconds":"getSeconds"}function UA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function yvt(e){return e?"setUTCFullYear":"setFullYear"}function Qge(e){return e?"setUTCMonth":"setMonth"}function e1e(e){return e?"setUTCDate":"setDate"}function t1e(e){return e?"setUTCHours":"setHours"}function n1e(e){return e?"setUTCMinutes":"setMinutes"}function r1e(e){return e?"setUTCSeconds":"setSeconds"}function i1e(e){return e?"setUTCMilliseconds":"setMilliseconds"}function o1e(e){if(!Cht(e))return br(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function s1e(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var HA=Bme;function fz(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(h){return h&&hf(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var s=t==="time",l=e instanceof Date;if(s||l){var c=s?Kh(e):e;if(isNaN(+c)){if(l)return"-"}else return FA(c,r,n)}if(t==="ordinal")return $V(e)?i(e):Io(e)&&a(e)?e+"":"-";var d=pT(e);return a(d)?o1e(d):$V(e)?i(e):typeof e=="boolean"?e+"":"-"}var Mse=["a","b","c","d","e","f","g"],rF=function(e,t){return"{"+e+(t??"")+"}"};function a1e(e,t,n){er(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a':'';var s=n.markerId||"markerX";return{renderMode:a,content:"{"+s+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Um(e,t){return t=t||"transparent",br(e)?e:Ir(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ose(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var QE=Et,_vt=["left","right","top","bottom","width","height"],Zw=[["width","left","right"],["height","top","bottom"]];function eG(e,t,n,r,i){var a=0,s=0;r==null&&(r=1/0),i==null&&(i=1/0);var l=0;t.eachChild(function(c,d){var h=c.getBoundingRect(),p=t.childAt(d+1),v=p&&p.getBoundingRect(),g,y;if(e==="horizontal"){var S=h.width+(v?-v.x+h.x:0);g=a+S,g>r||c.newline?(a=0,g=S,s+=l+n,l=h.height):l=Math.max(l,h.height)}else{var k=h.height+(v?-v.y+h.y:0);y=s+k,y>i||c.newline?(a+=l+n,s=0,y=k,l=h.width):l=Math.max(l,h.width)}c.newline||(c.x=a,c.y=s,c.markRedraw(),e==="horizontal"?a=g+n:s=y+n)})}var Ab=eG;Rs(eG,"vertical");Rs(eG,"horizontal");function jy(e,t,n){n=HA(n||0);var r=t.width,i=t.height,a=ts(e.left,r),s=ts(e.top,i),l=ts(e.right,r),c=ts(e.bottom,i),d=ts(e.width,r),h=ts(e.height,i),p=n[2]+n[0],v=n[1]+n[3],g=e.aspect;switch(isNaN(d)&&(d=r-l-v-a),isNaN(h)&&(h=i-c-p-s),g!=null&&(isNaN(d)&&isNaN(h)&&(g>r/i?d=r*.8:h=i*.8),isNaN(d)&&(d=g*h),isNaN(h)&&(h=d/g)),isNaN(a)&&(a=r-l-d-v),isNaN(s)&&(s=i-c-h-p),e.left||e.right){case"center":a=r/2-d/2-n[3];break;case"right":a=r-d-v;break}switch(e.top||e.bottom){case"middle":case"center":s=i/2-h/2-n[0];break;case"bottom":s=i-h-p;break}a=a||0,s=s||0,isNaN(d)&&(d=r-v-a-(l||0)),isNaN(h)&&(h=i-p-s-(c||0));var y=new lo(a+n[3],s+n[0],d,h);return y.margin=n,y}function __(e){var t=e.layoutMode||e.constructor.layoutMode;return Ir(t)?t:t?{type:t}:null}function Vy(e,t,n){var r=n&&n.ignoreSize;!er(r)&&(r=[r,r]);var i=s(Zw[0],0),a=s(Zw[1],1);d(Zw[0],e,i),d(Zw[1],e,a);function s(h,p){var v={},g=0,y={},S=0,k=2;if(QE(h,function(E){y[E]=e[E]}),QE(h,function(E){l(t,E)&&(v[E]=y[E]=t[E]),c(v,E)&&g++,c(y,E)&&S++}),r[p])return c(t,h[1])?y[h[2]]=null:c(t,h[2])&&(y[h[1]]=null),y;if(S===k||!g)return y;if(g>=k)return v;for(var w=0;w=0;c--)l=ao(l,i[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",a=n+"Id";return yS(this.ecModel,n,{index:this.get(i,!0),id:this.get(a,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(xs);pge(ho,xs);EA(ho);lvt(ho);uvt(ho,wvt);function wvt(e){var t=[];return Et(ho.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=xr(t,function(n){return pf(n).main}),e!=="dataset"&&go(t,"dataset")<=0&&t.unshift("dataset"),t}var l1e="";typeof navigator<"u"&&(l1e=navigator.platform||"");var k1="rgba(0, 0, 0, 0.2)";const xvt={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:k1,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:k1,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:k1,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:k1,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:k1,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:k1,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:l1e.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var u1e=wi(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),id="original",$u="arrayRows",Fd="objectRows",Rf="keyedColumns",b0="typedArray",c1e="unknown",$h="column",b3="row",Fa={Must:1,Might:2,Not:3},d1e=Bs();function Cvt(e){d1e(e).datasetMap=wi()}function Evt(e,t,n){var r={},i=tG(t);if(!i||!e)return r;var a=[],s=[],l=t.ecModel,c=d1e(l).datasetMap,d=i.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),Et(e,function(S,k){var w=Ir(S)?S:e[k]={name:S};w.type==="ordinal"&&h==null&&(h=k,p=y(w)),r[w.name]=[]});var v=c.get(d)||c.set(d,{categoryWayDim:p,valueWayDim:0});Et(e,function(S,k){var w=S.name,x=y(S);if(h==null){var E=v.valueWayDim;g(r[w],E,x),g(s,E,x),v.valueWayDim+=x}else if(h===k)g(r[w],0,x),g(a,0,x);else{var E=v.categoryWayDim;g(r[w],E,x),g(s,E,x),v.categoryWayDim+=x}});function g(S,k,w){for(var x=0;xt)return e[r];return e[n-1]}function Pvt(e,t,n,r,i,a,s){a=a||e;var l=t(a),c=l.paletteIdx||0,d=l.paletteNameMap=l.paletteNameMap||{};if(d.hasOwnProperty(i))return d[i];var h=s==null||!r?n:Dvt(r,s);if(h=h||n,!(!h||!h.length)){var p=h[c];return i&&(d[i]=p),l.paletteIdx=(c+1)%h.length,p}}function Rvt(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Jw,a4,Bse,Nse="\0_ec_inner",Mvt=1,rG=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,a,s,l){a=a||{},this.option=null,this._theme=new xs(a),this._locale=new xs(s),this._optionManager=l},t.prototype.setOption=function(n,r,i){var a=Vse(r);this._optionManager.setOption(n,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,Vse(r))},t.prototype._resetOption=function(n,r){var i=!1,a=this._optionManager;if(!n||n==="recreate"){var s=a.mountOption(n==="recreate");!this.option||n==="recreate"?Bse(this,s):(this.restoreData(),this._mergeOption(s,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=a.getTimelineOption(this);l&&(i=!0,this._mergeOption(l,r))}if(!n||n==="recreate"||n==="media"){var c=a.getMediaOption(this);c.length&&Et(c,function(d){i=!0,this._mergeOption(d,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,a=this._componentsMap,s=this._componentsCount,l=[],c=wi(),d=r&&r.replaceMergeMainTypeMap;Cvt(this),Et(n,function(p,v){p!=null&&(ho.hasClass(v)?v&&(l.push(v),c.set(v,!0)):i[v]=i[v]==null?zi(p):ao(i[v],p,!0))}),d&&d.each(function(p,v){ho.hasClass(v)&&!c.get(v)&&(l.push(v),c.set(v,!0))}),ho.topologicalTravel(l,ho.getAllClassMainTypes(),h,this);function h(p){var v=Lvt(this,p,Zl(n[p])),g=a.get(p),y=g?d&&d.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=Aht(g,v,y);Oht(S,p,ho),i[p]=null,a.set(p,null),s.set(p,0);var k=[],w=[],x=0,E;Et(S,function(_,T){var D=_.existing,P=_.newOption;if(!P)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var M=p==="series",$=ho.getClass(p,_.keyInfo.subType,!M);if(!$)return;if(p==="tooltip"){if(E)return;E=!0}if(D&&D.constructor===$)D.name=_.keyInfo.name,D.mergeOption(P,this),D.optionUpdated(P,!1);else{var L=yn({componentIndex:T},_.keyInfo);D=new $(P,this,this,L),yn(D,L),_.brandNew&&(D.__requireNewView=!0),D.init(P,this,this),D.optionUpdated(null,!0)}}D?(k.push(D.option),w.push(D),x++):(k.push(void 0),w.push(void 0))},this),i[p]=k,a.set(p,w),s.set(p,x),p==="series"&&Jw(this)}this._seriesIndices||Jw(this)},t.prototype.getOption=function(){var n=zi(this.option);return Et(n,function(r,i){if(ho.hasClass(i)){for(var a=Zl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!v_(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[i]=a}}),delete n[Nse],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var s=0;s=t:n==="max"?e<=t:e===t}function Uvt(e,t){return e.join(",")===t.join(",")}var fd=Et,S_=Ir,zse=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function oF(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=zse.length;n=0;k--){var w=e[k];if(l||(y=w.data.rawIndexOf(w.stackedByDimension,g)),y>=0){var x=w.data.getByRawIndex(w.stackResultDimension,y);if(c==="all"||c==="positive"&&x>0||c==="negative"&&x<0||c==="samesign"&&v>=0&&x>0||c==="samesign"&&v<=0&&x<0){v=kht(v,x),S=x;break}}}return r[0]=v,r[1]=S,r})})}var GA=(function(){function e(t){this.data=t.data||(t.sourceFormat===Rf?{}:[]),this.sourceFormat=t.sourceFormat||c1e,this.seriesLayoutBy=t.seriesLayoutBy||$h,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rS&&(S=E)}g[0]=y,g[1]=S}},i=function(){return this._data?this._data.length/this._dimSize:0};Yse=(t={},t[$u+"_"+$h]={pure:!0,appendData:a},t[$u+"_"+b3]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Fd]={pure:!0,appendData:a},t[Rf]={pure:!0,appendData:function(s){var l=this._data;Et(s,function(c,d){for(var h=l[d]||(l[d]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[id]={appendData:a},t[b0]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(s){for(var l=0;l=0&&(S=s.interpolatedValue[k])}return S!=null?S+"":""})}},e.prototype.getRawValue=function(t,n){return zy(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function Qse(e){var t,n;return Ir(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Ib(e){return new amt(e)}var amt=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var s=h(this._modBy),l=this._modDataCount||0,c=h(t&&t.modBy),d=t&&t.modDataCount||0;(s!==c||l!==d)&&(a="reset");function h(x){return!(x>=1)&&(x=1),x}var p;(this._dirty||a==="reset")&&(this._dirty=!1,p=this._doReset(r)),this._modBy=c,this._modDataCount=d;var v=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,y=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!r&&(p||g1&&r>0?l:s}};return a;function s(){return t=e?null:ci?-this._resultLT:0},e})(),umt=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return e8(t,n)},e})();function cmt(e,t){var n=new umt,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==$h&&ku(s);var l=[],c={},d=e.dimensionsDefine;if(d)Et(d,function(S,k){var w=S.name,x={index:k,name:w,displayName:S.displayName};if(l.push(x),w!=null){var E="";jm(c,w)&&ku(E),c[w]=x}});else for(var h=0;h65535?ymt:bmt}function x1(){return[1/0,-1/0]}function _mt(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nae(e,t,n,r,i){var a=E1e[n||"float"];if(i){var s=e[t],l=s&&s.length;if(l!==r){for(var c=new a(r),d=0;dk[1]&&(k[1]=S)}return this._rawCount=this._count=c,{start:l,end:c}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,a=this._chunks,s=this._dimensions,l=s.length,c=this._rawExtent,d=xr(s,function(x){return x.property}),h=0;hw[1]&&(w[1]=k)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)a=s-1;else return s}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,a=i[t],s=[];if(!a)return s;r==null&&(r=1/0);for(var l=1/0,c=-1,d=0,h=0,p=this.count();h=0&&c<0)&&(l=y,c=g,d=0),g===c&&(s[d++]=h))}return s.length=d,s},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var a=0;a=p&&x<=v||isNaN(x))&&(c[d++]=S),S++}y=!0}else if(a===2){for(var k=g[i[0]],E=g[i[1]],_=t[i[1]][0],T=t[i[1]][1],w=0;w=p&&x<=v||isNaN(x))&&(D>=_&&D<=T||isNaN(D))&&(c[d++]=S),S++}y=!0}}if(!y)if(a===1)for(var w=0;w=p&&x<=v||isNaN(x))&&(c[d++]=P)}else for(var w=0;wt[L][1])&&(M=!1)}M&&(c[d++]=n.getRawIndex(w))}return dw[1]&&(w[1]=k)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,a=i[t],s=this.count(),l=0,c=Math.floor(1/n),d=this.getRawIndex(0),h,p,v,g=new(w1(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));g[l++]=d;for(var y=1;yh&&(h=p,v=_)}B>0&&Bl&&(S=l-h);for(var k=0;ky&&(y=x,g=h+k)}var E=this.getRawIndex(p),_=this.getRawIndex(g);ph-y&&(c=h-y,l.length=c);for(var S=0;Sp[1]&&(p[1]=w),v[g++]=x}return a._count=g,a._indices=v,a._updateGetRawIdx(),a},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,a=0,s=this.count();ac&&(c=p)}return s=[l,c],this._extent[t]=s,s},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,r,i,a){return e8(n[a],this._dimensions[a])}lF={arrayRows:t,objectRows:function(n,r,i,a){return e8(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,i,a){var s=n&&(n.value==null?n:n.value);return e8(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,i,a){return n[a]}}})(),e})(),Smt=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,a;if(Qw(t)){var s=t,l=void 0,c=void 0,d=void 0;if(r){var h=n[0];h.prepareSource(),d=h.getSource(),l=d.data,c=d.sourceFormat,a=[h._getVersionSign()]}else l=s.get("data",!0),c=Ou(l)?b0:id,a=[];var p=this._getSourceMetaRawOption()||{},v=d&&d.metaRawOption||{},g=yi(p.seriesLayoutBy,v.seriesLayoutBy)||null,y=yi(p.sourceHeader,v.sourceHeader),S=yi(p.dimensions,v.dimensions),k=g!==v.seriesLayoutBy||!!y!=!!v.sourceHeader||S;i=k?[hz(l,{seriesLayoutBy:g,sourceHeader:y,dimensions:S},c)]:[]}else{var w=t;if(r){var x=this._applyTransform(n);i=x.sourceList,a=x.upstreamSignList}else{var E=w.get("source",!0);i=[hz(E,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&rae(a)}var s,l=[],c=[];return Et(t,function(d){d.prepareSource();var h=d.getSource(i||0),p="";i!=null&&!h&&rae(p),l.push(h),c.push(d._getVersionSign())}),r?s=mmt(r,l,{datasetIndex:n.componentIndex}):i!=null&&(s=[Qvt(l[0])]),{sourceList:s,upstreamSignList:c}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return Et(e.blocks,function(i){var a=L1e(i);a>=t&&(t=a+ +(r&&(!a||hz(i)&&!i.noHeader)))}),t}return 0}function ymt(e,t,n,r){var i=t.noHeader,a=_mt(L1e(t)),s=[],l=t.blocks||[];Hh(!l||er(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var d={valueAsc:"asc",valueDesc:"desc"};if(Fm(d,c)){var h=new tmt(d[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}Et(l,function(S,k){var C=t.valueFormatter,x=I1e(S)(C?yn(yn({},e),{valueFormatter:C}):e,S,k>0?a.html:0,r);x!=null&&s.push(x)});var p=e.renderMode==="richText"?s.join(a.richText):pz(r,s.join(""),i?n:a.html);if(i)return p;var v=cz(t.header,"ordinal",e.useUTC),g=A1e(r,e.renderMode).nameStyle,y=T1e(r);return e.renderMode==="richText"?D1e(e,v,g)+a.richText+p:pz(r,'

'+bu(v)+"
"+p,n)}function bmt(e,t,n,r){var i=e.renderMode,a=t.noName,s=t.noValue,l=!t.markerType,c=t.name,d=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(_){return _=er(_)?_:[_],Cr(_,function(T,D){return cz(T,er(g)?g[D]:g,d)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":cz(c,"ordinal",d),g=t.valueType,y=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,C=A1e(r,i),x=C.nameStyle,E=C.valueStyle;return i==="richText"?(l?"":p)+(a?"":D1e(e,v,x))+(s?"":xmt(e,y,S,k,E)):pz(r,(l?"":p)+(a?"":Smt(v,!l,x))+(s?"":kmt(y,S,k,E)),n)}}function iae(e,t,n,r,i,a){if(e){var s=I1e(e),l={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function _mt(e){return{html:mmt[e],richText:gmt[e]}}function pz(e,t,n){var r='
',i="margin: "+n+"px 0 0",a=T1e(e);return'
'+t+r+"
"}function Smt(e,t,n){var r=t?"margin-left:2px":"";return''+bu(e)+""}function kmt(e,t,n,r){var i=n?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=er(e)?e:[e],''+Cr(e,function(s){return bu(s)}).join("  ")+""}function D1e(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function xmt(e,t,n,r,i){var a=[i],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(er(t)?t.join(" "):t,a)}function Cmt(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return zm(r)}function P1e(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var aF=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=lge()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,a=fvt({color:n,type:t,renderMode:r,markerId:i});return br(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};er(n)?Et(n,function(a){return yn(r,a)}):yn(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e})();function wmt(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),s=a.length,l=t.getRawValue(n),c=er(l),d=Cmt(t,n),h,p,v,g;if(s>1||c&&!s){var y=Emt(l,t,n,a,d);h=y.inlineValues,p=y.inlineValueTypes,v=y.blocks,g=y.inlineValues[0]}else if(s){var S=i.getDimensionInfo(a[0]);g=h=zy(i,n,a[0]),p=S.type}else g=h=c?l[0]:l;var k=RW(t),C=k&&t.name||"",x=i.getName(n),E=r?C:x;return S_("section",{header:C,noHeader:r||!k,sortParam:g,blocks:[S_("nameValue",{markerType:"item",markerColor:d,name:E,noName:!hf(E),value:h,valueType:p,dataIndex:n})].concat(v||[])})}function Emt(e,t,n,r,i){var a=t.getData(),s=A0(e,function(p,v,g){var y=a.getDimensionInfo(g);return p=p||y&&y.tooltip!==!1&&y.displayName!=null},!1),l=[],c=[],d=[];r.length?Et(r,function(p){h(zy(a,n,p),p)}):Et(e,h);function h(p,v){var g=a.getDimensionInfo(v);!g||g.otherDims.tooltip===!1||(s?d.push(S_("nameValue",{markerType:"subItem",markerColor:i,name:g.displayName,value:p,valueType:g.type})):(l.push(p),c.push(g.type)))}return{inlineValues:l,inlineValueTypes:c,blocks:d}}var Dp=Bs();function eC(e,t){return e.getName(t)||e.getId(t)}var Tmt="__universalTransitionEnabled",Md=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Ib({count:Imt,reset:Lmt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var a=Dp(this).sourceManager=new pmt(this);a.prepareSource();var s=this.getInitialData(n,i);sae(s,this),this.dataTask.context.data=s,Dp(this).dataBeforeProcessed=s,oae(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=b_(this),a=i?UA(n):{},s=this.subType;ho.hasClass(s)&&(s+="Series"),ao(n,r.getTheme().get(this.subType)),ao(n,this.getDefaultOption()),QV(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Vy(n,a,i)},t.prototype.mergeOption=function(n,r){n=ao(this.option,n,!0),this.fillDataTextStyle(n.data);var i=b_(this);i&&Vy(this.option,n,i);var a=Dp(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);sae(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Dp(this).dataBeforeProcessed=s,oae(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(n){if(n&&!Mu(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var a=this.ecModel,s=nG.prototype.getColorFromPalette.call(this,n,r,i);return s||(s=a.getColorFromPalette(n,r,i)),s},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,s=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l=0&&i.push(s)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[eC(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Tmt])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,a,s=this.option,l=s.selectedMode,c=r.length;if(!(!l||!c)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){Ir(s.selectedMap)||(s.selectedMap={});for(var d=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return ho.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(ho);Df(Md,Qvt);Df(Md,nG);pge(Md,ho);function oae(e){var t=e.name;RW(e)||(e.name=Amt(e)||t)}function Amt(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return Et(n,function(i){var a=t.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Imt(e){return e.model.getRawData().count()}function Lmt(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Dmt}function Dmt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sae(e,t){Et(Xdt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Rs(Pmt,t))})}function Pmt(e,t){var n=vz(e);return n&&n.setOutputEnd((t||this).count()),t}function vz(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var $d=(function(){function e(){this.group=new Qa,this.uid=OA("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();$W($d);CA($d);function lG(){var e=Bs();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,s=n.large=!!(r&&r.large),l=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==s||a!==l)&&"reset"}}var R1e=Bs(),Rmt=lG(),qc=(function(){function e(){this.group=new Qa,this.uid=OA("viewChart"),this.renderTask=Ib({plan:Mmt,reset:$mt}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var a=t.getData(i&&i.dataType);a&&lae(a,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var a=t.getData(i&&i.dataType);a&&lae(a,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){RA(this.group,t)},e.markUpdateMethod=function(t,n){R1e(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function aae(e,t,n){e&&sz(e)&&(t==="emphasis"?mT:gT)(e,n)}function lae(e,t,n){var r=jm(e,t),i=t&&t.highlightKey!=null?Xpt(t.highlightKey):null;r!=null?Et(Zl(r),function(a){aae(e.getItemGraphicEl(a),n,i)}):e.eachItemGraphicEl(function(a){aae(a,n,i)})}$W(qc);CA(qc);function Mmt(e){return Rmt(e.model)}function $mt(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=i&&R1e(i).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,i),Omt[c]}var Omt={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},wT="\0__throttleOriginMethod",uae="\0__throttleRate",cae="\0__throttleType";function GA(e,t,n){var r,i=0,a=0,s=null,l,c,d,h;t=t||0;function p(){a=new Date().getTime(),s=null,e.apply(c,d||[])}var v=function(){for(var g=[],y=0;y=0?p():s=setTimeout(p,-l),i=r};return v.clear=function(){s&&(clearTimeout(s),s=null)},v.debounceNextCall=function(g){h=g},v}function M1e(e,t,n,r){var i=e[t];if(i){var a=i[wT]||i,s=i[cae],l=i[uae];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;i=e[t]=GA(a,n,r==="debounce"),i[wT]=a,i[cae]=r,i[uae]=n}return i}}function mz(e,t){var n=e[t];n&&n[wT]&&(n.clear&&n.clear(),e[t]=n[wT])}var dae=Bs(),fae={itemStyle:v_(Kge,!0),lineStyle:v_(Gge,!0)},Bmt={lineStyle:"stroke",itemStyle:"fill"};function $1e(e,t){var n=e.visualStyleMapper||fae[t];return n||(console.warn("Unknown style type '"+t+"'."),fae.itemStyle)}function O1e(e,t){var n=e.visualDrawType||Bmt[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Nmt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=$1e(e,r),s=a(i),l=i.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=O1e(e,r),d=s[c],h=ni(d)?d:null,p=s.fill==="auto"||s.stroke==="auto";if(!s[c]||h||p){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[c]||(s[c]=v,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ni(s.fill)?v:s.fill,s.stroke=s.stroke==="auto"||ni(s.stroke)?v:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(g,y){var S=e.getDataParams(y),k=yn({},s);k[c]=h(S),g.setItemVisual(y,"style",k)}}}},u4=new xs,Fmt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=$1e(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){u4.option=c[r];var d=i(u4),h=s.ensureUniqueItemVisual(l,"style");yn(h,d),u4.option.decal&&(s.setItemVisual(l,"decal",u4.option.decal),u4.option.decal.dirty=!0),a in d&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},jmt={performRawSeries:!0,overallReset:function(e){var t=xi();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,a=t.get(i);a||(a={},t.set(i,a)),dae(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},a=n.getData(),s=dae(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=O1e(n,l);a.each(function(d){var h=a.getRawIndex(d);i[h]=d}),r.each(function(d){var h=i[d],p=a.getItemVisual(h,"colorFromPalette");if(p){var v=a.ensureUniqueItemVisual(h,"style"),g=r.getName(d)||d+"",y=r.count();v[c]=n.getColorFromPalette(g,s,y)}})}})}},tC=Math.PI;function Vmt(e,t){t=t||{},co(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Qa,r=new Js({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new el({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Js({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(a);var s;return t.showSpinner&&(s=new DA({shape:{startAngle:-tC/2,endAngle:-tC/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:tC*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:tC*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=i.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,d=(e.getWidth()-c*2-(t.showSpinner&&l?10:0)-l)/2-(t.showSpinner&&l?0:5+l/2)+(t.showSpinner?0:l/2)+(l?0:c),h=e.getHeight()/2;t.showSpinner&&s.setShape({cx:d,cy:h}),a.setShape({x:d-c,y:h-c,width:c*2,height:c*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var B1e=(function(){function e(t,n,r,i){this._stageTaskMap=xi(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,a=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,s=a?r.step:null,l=i&&i.modDataCount,c=l!=null?Math.ceil(l/s):null;return{step:s,modBy:c,modDataCount:l}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),s=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,l=t.get("large")&&a>=t.get("largeThreshold"),c=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=r.context={progressiveRender:s,modDataCount:c,large:l}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=xi();t.eachSeries(function(i){var a=i.getProgressive(),s=i.uid;r.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;Et(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),s="";Hh(!(i.reset&&i.overallReset),s),i.reset&&this._createSeriesStageTask(i,a,n,r),i.overallReset&&this._createOverallStageTask(i,a,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var a=t.renderTask,s=a.context;s.model=n,s.ecModel=r,s.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(n,a)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var a=!1,s=this;Et(t,function(c,d){if(!(i.visualType&&i.visualType!==c.visualType)){var h=s._stageTaskMap.get(c.uid),p=h.seriesTaskMap,v=h.overallTask;if(v){var g,y=v.agentStubMap;y.each(function(k){l(i,k)&&(k.dirty(),g=!0)}),g&&v.dirty(),s.updatePayload(v,r);var S=s.getPerformArgs(v,i.block);y.each(function(k){k.perform(S)}),v.perform(S)&&(a=!0)}else p&&p.each(function(k,C){l(i,k)&&k.dirty();var x=s.getPerformArgs(k,i.block);x.skip=!c.performRawSeries&&n.isSeriesFiltered(k.context.model),s.updatePayload(k,r),k.perform(x)&&(a=!0)})}});function l(c,d){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(d.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var a=this,s=n.seriesTaskMap,l=n.seriesTaskMap=xi(),c=t.seriesType,d=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(h):c?r.eachRawSeriesByType(c,h):d&&d(r,i).each(h);function h(p){var v=p.uid,g=l.set(v,s&&s.get(v)||Ib({plan:Gmt,reset:Kmt,count:Ymt}));g.context={model:p,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(p,g)}},e.prototype._createOverallStageTask=function(t,n,r,i){var a=this,s=n.overallTask=n.overallTask||Ib({reset:zmt});s.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=xi(),d=t.seriesType,h=t.getTargetSeries,p=!0,v=!1,g="";Hh(!t.createOnAllSeries,g),d?r.eachRawSeriesByType(d,y):h?h(r,i).each(y):(p=!1,Et(r.getSeries(),y));function y(S){var k=S.uid,C=c.set(k,l&&l.get(k)||(v=!0,Ib({reset:Umt,onDirty:Wmt})));C.context={model:S,overallProgress:p},C.agent=s,C.__block=p,a._pipe(S,C)}v&&s.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return ni(t)&&(t={overallReset:t,seriesType:Xmt(t)}),t.uid=OA("stageHandler"),n&&(t.visualType=n),t},e})();function zmt(e){e.overallReset(e.ecModel,e.api,e.payload)}function Umt(e){return e.overallProgress&&Hmt}function Hmt(){this.agent.dirty(),this.getDownstream().dirty()}function Wmt(){this.agent&&this.agent.dirty()}function Gmt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Kmt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Zl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Cr(t,function(n,r){return N1e(r)}):qmt}var qmt=N1e(0);function N1e(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&g===d.length-v.length){var y=d.slice(0,g);y!=="data"&&(n.mainType=y,n[v.toLowerCase()]=c,h=!0)}}l.hasOwnProperty(d)&&(r[d]=c,h=!0),h||(i[d]=c)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,s=r.model,l=r.view;if(!s||!l)return!0;var c=n.cptQuery,d=n.dataQuery;return h(c,s,"mainType")&&h(c,s,"subType")&&h(c,s,"index","componentIndex")&&h(c,s,"name")&&h(c,s,"id")&&h(d,a,"name")&&h(d,a,"dataIndex")&&h(d,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,n.otherQuery,i,a));function h(p,v,g,y){return p[g]==null||v[y||g]===p[g]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),gz=["symbol","symbolSize","symbolRotate","symbolOffset"],mae=gz.concat(["symbolKeepAspect"]),Qmt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,s=0;s=0&&nm(c)?c:.5;var d=e.createRadialGradient(s,l,0,s,l,c);return d}function bz(e,t,n){for(var r=t.type==="radial"?ygt(e,t,n):ggt(e,t,n),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Io(e)?[e]:er(e)?e:null}function U1e(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&_gt(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Cr(n,function(a){return a/i}),r/=i)}return[n,r]}var Sgt=new Vm(!0);function TT(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function gae(e){return typeof e=="string"&&e!=="none"}function AT(e){var t=e.fill;return t!=null&&t!=="none"}function yae(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function bae(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function _z(e,t,n){var r=vge(t.image,t.__image,n);if(wA(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Zdt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function kgt(e,t,n,r){var i,a=TT(n),s=AT(n),l=n.strokePercent,c=l<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||Sgt,p=t.__dirty;if(!r){var v=n.fill,g=n.stroke,y=s&&!!v.colorStops,S=a&&!!g.colorStops,k=s&&!!v.image,C=a&&!!g.image,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0;(y||S)&&(D=t.getBoundingRect()),y&&(x=p?bz(e,v,D):t.__canvasFillGradient,t.__canvasFillGradient=x),S&&(E=p?bz(e,g,D):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),k&&(_=p||!t.__canvasFillPattern?_z(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=_),C&&(T=p||!t.__canvasStrokePattern?_z(e,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),y?e.fillStyle=x:k&&(_?e.fillStyle=_:s=!1),S?e.strokeStyle=E:C&&(T?e.strokeStyle=T:a=!1)}var P=t.getGlobalScale();h.setScale(P[0],P[1],t.segmentIgnoreThreshold);var M,O;e.setLineDash&&n.lineDash&&(i=U1e(t),M=i[0],O=i[1]);var L=!0;(d||p&j1)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),L=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),L&&h.rebuildPath(e,c?l:1),M&&(e.setLineDash(M),e.lineDashOffset=O),r||(n.strokeFirst?(a&&bae(e,n),s&&yae(e,n)):(s&&yae(e,n),a&&bae(e,n))),M&&e.setLineDash([])}function xgt(e,t,n){var r=t.__image=vge(n.image,t.__image,t,t.onload);if(!(!r||!wA(r))){var i=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),c=r.width/r.height;if(s==null&&l!=null?s=l*c:l==null&&s!=null?l=s/c:s==null&&l==null&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var d=n.sx||0,h=n.sy||0;e.drawImage(r,d,h,n.sWidth,n.sHeight,i,a,s,l)}else if(n.sx&&n.sy){var d=n.sx,h=n.sy,p=s-d,v=l-h;e.drawImage(r,d,h,p,v,i,a,s,l)}else e.drawImage(r,i,a,s,l)}}function Cgt(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||Nm,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=U1e(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(TT(n)&&e.strokeText(i,n.x,n.y),AT(n)&&e.fillText(i,n.x,n.y)):(AT(n)&&e.fillText(i,n.x,n.y),TT(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var _ae=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sae=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function H1e(e,t,n,r,i){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){ku(e,i),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?_m.opacity:s}(r||t.blend!==n.blend)&&(a||(ku(e,i),a=!0),e.globalCompositeOperation=t.blend||_m.blend);for(var l=0;l<_ae.length;l++){var c=_ae[l];(r||t[c]!==n[c])&&(a||(ku(e,i),a=!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(ku(e,i),a=!0),e.shadowColor=t.shadowColor||_m.shadowColor),a}function kae(e,t,n,r,i){var a=x_(t,i.inHover),s=r?null:n&&x_(n,i.inHover)||{};if(a===s)return!1;var l=H1e(e,a,s,r,i);if((r||a.fill!==s.fill)&&(l||(ku(e,i),l=!0),gae(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==s.stroke)&&(l||(ku(e,i),l=!0),gae(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==s.opacity)&&(l||(ku(e,i),l=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth,d=c/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==d&&(l||(ku(e,i),l=!0),e.lineWidth=d)}for(var h=0;h0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[cl]){if(this._disposed){this.id;return}var a,s,l;if(Ir(r)&&(i=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[cl]=!0,!this._model||r){var c=new Pvt(this._api),d=this._theme,h=this._model=new rG;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,d,this._locale,c)}this._model.setOption(n,{replaceMerge:s},xz);var p={seriesTransition:l,optionChanged:!0};if(i)this[du]={silent:a,updateParams:p},this[cl]=!1,this.getZr().wakeUp();else{try{w1(this),Pp.update.call(this,null,p)}catch(v){throw this[du]=null,this[cl]=!1,v}this._ssr||this._zr.flush(),this[du]=null,this[cl]=!1,c4.call(this,a),d4.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Vr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(Vr.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Et(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,a=[],s=this;Et(r,function(c){i.eachComponent({mainType:c},function(d){var h=s._componentsMap[d.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return Et(a,function(c){c.group.ignore=!1}),l},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,a=Math.min,s=Math.max,l=1/0;if(Oae[i]){var c=l,d=l,h=-l,p=-l,v=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();Et(Db,function(E,_){if(E.group===i){var T=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(zi(n)),D=E.getDom().getBoundingClientRect();c=a(D.left,c),d=a(D.top,d),h=s(D.right,h),p=s(D.bottom,p),v.push({dom:T,left:D.left,top:D.top})}}),c*=g,d*=g,h*=g,p*=g;var y=h-c,S=p-d,k=g3.createCanvas(),C=joe(k,{renderer:r?"svg":"canvas"});if(C.resize({width:y,height:S}),r){var x="";return Et(v,function(E){var _=E.left-c,T=E.top-d;x+=''+E.dom+""}),C.painter.getSvgRoot().innerHTML=x,n.connectedBackgroundColor&&C.painter.setBackgroundColor(n.connectedBackgroundColor),C.refreshImmediately(),C.painter.toDataURL()}else return n.connectedBackgroundColor&&C.add(new Js({shape:{x:0,y:0,width:y,height:S},style:{fill:n.connectedBackgroundColor}})),Et(v,function(E){var _=new U0({style:{x:E.left*g-c,y:E.top*g-d,image:E.dom}});C.add(_)}),C.refreshImmediately(),k.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return fF(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return fF(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,a,s=$N(i,n);return Et(s,function(l,c){c.indexOf("Models")>=0&&Et(l,function(d){var h=d.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(c==="seriesModels"){var p=this._chartsMap[d.__viewId];p&&p.containPoint&&(a=a||p.containPoint(r,d))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var i=this._model,a=$N(i,n,{defaultMainType:"series"}),s=a.seriesModel,l=s.getData(),c=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?l.indexOfRawIndex(a.dataIndex):null;return c!=null?tgt(l,c,r):ngt(l,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;Et(Ygt,function(r){var i=function(a){var s=n.getModel(),l=a.target,c,d=r==="globalout";if(d?c={}:l&&F4(l,function(y){var S=Yi(y);if(S&&S.dataIndex!=null){var k=S.dataModel||s.getSeriesByIndex(S.seriesIndex);return c=k&&k.getDataParams(S.dataIndex,S.dataType,l)||{},!0}else if(S.eventData)return c=yn({},S.eventData),!0},!0),c){var h=c.componentType,p=c.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=c.seriesIndex);var v=h&&p!=null&&s.getComponent(h,p),g=v&&n[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];c.event=a,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:v,view:g},n.trigger(r,c)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),Et(Lb,function(r,i){n._messageCenter.on(i,function(a){this.trigger(i,a)},n)}),Et(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),igt(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&fge(this.getDom(),dG,"");var r=this,i=r._api,a=r._model;Et(r._componentsViews,function(s){s.dispose(a,i)}),Et(r._chartsViews,function(s){s.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Db[r.id]},t.prototype.resize=function(n){if(!this[cl]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=n&&n.silent;this[du]&&(a==null&&(a=this[du].silent),i=!0,this[du]=null),this[cl]=!0;try{i&&w1(this),Pp.update.call(this,{type:"resize",animation:yn({duration:0},n&&n.animation)})}catch(s){throw this[cl]=!1,s}this[cl]=!1,c4.call(this,a),d4.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Ir(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!Cz[n]){var i=Cz[n](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=yn({},n);return r.type=Lb[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Ir(r)||(r={silent:!!r}),!!IT[n.type]&&this._model){if(this[cl]){this._pendingActions.push(n);return}var i=r.silent;pF.call(this,n,i);var a=r.flush;a?this._zr.flush():a!==!1&&Vr.browser.weChat&&this._throttledZrFlush(),c4.call(this,i),d4.call(this,i)}},t.prototype.updateLabelLayout=function(){_d.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){w1=function(p){var v=p._scheduler;v.restorePipelines(p._model),v.prepareStageTasks(),dF(p,!0),dF(p,!1),v.plan()},dF=function(p,v){for(var g=p._model,y=p._scheduler,S=v?p._componentsViews:p._chartsViews,k=v?p._componentsMap:p._chartsMap,C=p._zr,x=p._api,E=0;Ev.get("hoverLayerThreshold")&&!Vr.node&&!Vr.worker&&v.eachSeries(function(k){if(!k.preventUsingHoverLayer){var C=p._chartsMap[k.__viewId];C.__alive&&C.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function s(p,v){var g=p.get("blendMode")||null;v.eachRendered(function(y){y.isGroup||(y.style.blend=g)})}function l(p,v){if(!p.preventAutoZ){var g=p.get("z")||0,y=p.get("zlevel")||0;v.eachRendered(function(S){return c(S,g,y,-1/0),!0})}}function c(p,v,g,y){var S=p.getTextContent(),k=p.getTextGuideLine(),C=p.isGroup;if(C)for(var x=p.childrenRef(),E=0;E0?{duration:S,delay:g.get("delay"),easing:g.get("easing")}:null;v.eachRendered(function(C){if(C.states&&C.states.emphasis){if(Eb(C))return;if(C instanceof vo&&Zpt(C),C.__dirty){var x=C.prevStates;x&&C.useStates(x)}if(y){C.stateTransition=k;var E=C.getTextContent(),_=C.getTextGuideLine();E&&(E.stateTransition=k),_&&(_.stateTransition=k)}C.__dirty&&i(C)}})}Mae=function(p){return new((function(v){Nn(g,v);function g(){return v!==null&&v.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(y){for(;y;){var S=y.__ecComponentInfo;if(S!=null)return p._model.getComponent(S.mainType,S.index);y=y.parent}},g.prototype.enterEmphasis=function(y,S){mT(y,S),wc(p)},g.prototype.leaveEmphasis=function(y,S){gT(y,S),wc(p)},g.prototype.enterBlur=function(y){Vpt(y),wc(p)},g.prototype.leaveBlur=function(y){Age(y),wc(p)},g.prototype.enterSelect=function(y){Ige(y),wc(p)},g.prototype.leaveSelect=function(y){Lge(y),wc(p)},g.prototype.getModel=function(){return p.getModel()},g.prototype.getViewOfComponentModel=function(y){return p.getViewOfComponentModel(y)},g.prototype.getViewOfSeriesModel=function(y){return p.getViewOfSeriesModel(y)},g})(p1e))(p)},oye=function(p){function v(g,y){for(var S=0;S=0)){Bae.push(n);var a=B1e.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function dye(e,t){Cz[e]=t}function r1t(e,t,n){var r=Mgt("registerMap");r&&r(e,t,n)}var i1t=lmt;ag(uG,Nmt);ag(KA,Fmt);ag(KA,jmt);ag(uG,Qmt);ag(KA,egt);ag(Q1e,Pgt);uye(m1e);cye(Bgt,Hvt);dye("default",Vmt);_3({type:Sm,event:Sm,update:Sm},Lu);_3({type:YE,event:YE,update:YE},Lu);_3({type:xb,event:xb,update:xb},Lu);_3({type:XE,event:XE,update:XE},Lu);_3({type:Cb,event:Cb,update:Cb},Lu);lye("light",Zmt);lye("dark",V1e);function f4(e){return e==null?0:e.length||1}function Nae(e){return e}var o1t=(function(){function e(t,n,r,i,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||Nae,this._newKeyGetter=i||Nae,this.context=a,this._diffModeMultiple=s==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),a=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var s=0;s1){var h=c.shift();c.length===1&&(r[l]=c[0]),this._update&&this._update(h,s)}else d===1?(r[l]=null,this._update&&this._update(c,s)):this._remove&&this._remove(s)}this._performRestAdd(a,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},a=[],s=[];this._initIndexMap(t,r,a,"_oldKeyGetter"),this._initIndexMap(n,i,s,"_newKeyGetter");for(var l=0;l1&&v===1)this._updateManyToOne&&this._updateManyToOne(h,d),i[c]=null;else if(p===1&&v>1)this._updateOneToMany&&this._updateOneToMany(h,d),i[c]=null;else if(p===1&&v===1)this._update&&this._update(h,d),i[c]=null;else if(p>1&&v>1)this._updateManyToMany&&this._updateManyToMany(h,d),i[c]=null;else if(p>1)for(var g=0;g1)for(var l=0;l30}var h4=Ir,Rp=Cr,f1t=typeof Int32Array>"u"?Array:Int32Array,h1t="e\0\0",Fae=-1,p1t=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],v1t=["_approximateExtent"],jae,aC,p4,v4,gF,m4,yF,gye=(function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;hye(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var a={},s=[],l={},c=!1,d={},h=0;h=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,s=this._idList,l=i.getSource().sourceFormat,c=l===id;if(c&&!i.pure)for(var d=[],h=t;h0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var a=i[n];return a==null&&(a=this.getVisual(n),er(a)?a=a.slice():h4(a)&&(a=yn({},a)),i[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,h4(n)?yn(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){h4(t)?yn(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?yn(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Dpt(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){Et(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Rp(this.dimensions,this._getDimInfo,this),this.hostModel)),gF(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ni(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(xW(arguments)))})},e.internalField=(function(){jae=function(t){var n=t._invertedIndicesMap;Et(n,function(r,i){var a=t._dimInfos[i],s=a.ordinalMeta,l=t._store;if(s){r=n[i]=new f1t(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),i[n]=c}}})(),e})();function yye(e,t){oG(e)||(e=g1e(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=xi(),a=[],s=g1t(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&mye(s),c=r===e.dimensionsDefine,d=c?vye(e):pye(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=xi(h),v=new w1e(s),g=0;g0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function g1t(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Et(t,function(a){var s;Ir(a)&&(s=a.dimsDef)&&(i=Math.max(i,s.length))}),i}function y1t(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var b1t=(function(){function e(t){this.coordSysDims=[],this.axisMap=xi(),this.categoryAxisMap=xi(),this.coordSysName=t}return e})();function _1t(e){var t=e.get("coordinateSystem"),n=new b1t(t),r=S1t[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var S1t={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Td).models[0],a=e.getReferringComponents("yAxis",Td).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),E1(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),E1(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Td).models[0];t.coordSysDims=["single"],n.set("single",i),E1(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Td).models[0],a=i.findAxisModel("radiusAxis"),s=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),E1(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),E1(s)&&(r.set("angle",s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=a.dimensions.slice();Et(a.parallelAxisIndex,function(l,c){var d=i.getComponent("parallelAxis",l),h=s[c];n.set(h,d),E1(d)&&(r.set(h,d),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function E1(e){return e.get("type")==="category"}function k1t(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,a,s,l;x1t(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),d,h,p,v;if(Et(a,function(x,E){br(x)&&(a[E]=x={name:x}),c&&!x.isExtraCoord&&(!r&&!d&&x.ordinalMeta&&(d=x),!h&&x.type!=="ordinal"&&x.type!=="time"&&(!i||i===x.coordDim)&&(h=x))}),h&&!r&&!d&&(r=!0),h){p="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,d&&(d.createInvertedIndices=!0);var g=h.coordDim,y=h.type,S=0;Et(a,function(x){x.coordDim===g&&S++});var k={name:p,coordDim:g,coordDimIndex:S,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},C={name:v,coordDim:v,coordDimIndex:S+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(k.storeDimIndex=l.ensureCalculationDimension(v,y),C.storeDimIndex=l.ensureCalculationDimension(p,y)),s.appendCalculationDimension(k),s.appendCalculationDimension(C)):(a.push(k),a.push(C))}return{stackedDimension:h&&h.name,stackedByDimension:d&&d.name,isStackedByIndex:r,stackedOverDimension:v,stackResultDimension:p}}function x1t(e){return!hye(e.schema)}function Hy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function C1t(e,t){return Hy(e,t)?e.getCalculationInfo("stackResultDimension"):t}function w1t(e,t){var n=e.get("coordinateSystem"),r=iG.get(n),i;return t&&t.coordSysDims&&(i=Cr(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=l1t(c)}return s})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function E1t(e,t,n){var r,i;return n&&Et(e,function(a,s){var l=a.coordDim,c=n.categoryAxisMap.get(l);c&&(r==null&&(r=s),a.ordinalMeta=c.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function pG(e,t,n){n=n||{};var r=t.getSourceManager(),i,a=!1;i=r.getSource(),a=i.sourceFormat===id;var s=_1t(t),l=w1t(t,s),c=n.useEncodeDefaulter,d=ni(c)?c:c?Rs(bvt,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!a},p=yye(i,h),v=E1t(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),y=k1t(t,{schema:p,store:g}),S=new gye(p,t);S.setCalculationInfo(y);var k=v!=null&&T1t(i)?function(C,x,E,_){return _===v?E:this.defaultDimValueGetter(C,x,E,_)}:null;return S.hasItemOption=!1,S.initData(a?i:g,null,k),S}function T1t(e){if(e.sourceFormat===id){var t=A1t(e.data||[]);return!er(mS(t))}}function A1t(e){for(var t=0;tn[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();CA(Mf);var I1t=0,wz=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++I1t}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Cr(r,L1t);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!br(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=xi(this.categories))},e})();function L1t(e){return Ir(e)&&e.value!=null?e.value:e+""}function Ez(e){return e.type==="interval"||e.type==="log"}function D1t(e,t,n,r){var i={},a=e[1]-e[0],s=i.interval=age(a/t);n!=null&&sr&&(s=i.interval=r);var l=i.intervalPrecision=bye(s),c=i.niceTickExtent=[Zs(Math.ceil(e[0]/s)*s,l),Zs(Math.floor(e[1]/s)*s,l)];return P1t(c,e),i}function bF(e){var t=Math.pow(10,PW(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Zs(n*t)}function bye(e){return Ch(e)+2}function Vae(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function P1t(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Vae(e,0,t),Vae(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function qA(e,t){return e>=t[0]&&e<=t[1]}function YA(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function XA(e,t){return e*(t[1]-t[0])+t[0]}var vG=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new wz({})),er(i)&&(i=new wz({categories:Cr(i,function(a){return Ir(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:br(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),qA(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),YA(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(XA(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,c=Math.min(l,r.length);s=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Mf);Mf.registerClass(vG);var Nv=Zs,S3=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return qA(n,this._extent)},t.prototype.normalize=function(n){return YA(n,this._extent)},t.prototype.scale=function(n){return XA(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=bye(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,a=this._niceExtent,s=this._intervalPrecision,l=[];if(!r)return l;var c=1e4;i[0]c)return[];var h=l.length?l[l.length-1].value:a[1];return i[1]>h&&(n?l.push({value:Nv(h+r,s)}):l.push({value:i[1]})),l},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),s=1;sa[0]&&g0&&(a=a===null?l:Math.min(a,l))}n[r]=a}}return n}function xye(e){var t=$1t(e),n=[];return Et(e,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),s=a.getExtent(),l;if(a.type==="category")l=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var c=a.dim+"_"+a.index,d=t[c],h=Math.abs(s[1]-s[0]),p=a.scale.getExtent(),v=Math.abs(p[1]-p[0]);l=d?h/v*d:h}else{var g=r.getData();l=Math.abs(s[1]-s[0])/g.count()}var y=Qo(r.get("barWidth"),l),S=Qo(r.get("barMaxWidth"),l),k=Qo(r.get("barMinWidth")||(wye(r)?.5:1),l),C=r.get("barGap"),x=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:y,barMaxWidth:S,barMinWidth:k,barGap:C,barCategoryGap:x,axisKey:mG(a),stackId:Sye(r)})}),O1t(n)}function O1t(e){var t={};Et(e,function(r,i){var a=r.axisKey,s=r.bandWidth,l=t[a]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=l.stacks;t[a]=l;var d=r.stackId;c[d]||l.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=r.barWidth;h&&!c[d].width&&(c[d].width=h,h=Math.min(l.remainedWidth,h),l.remainedWidth-=h);var p=r.barMaxWidth;p&&(c[d].maxWidth=p);var v=r.barMinWidth;v&&(c[d].minWidth=v);var g=r.barGap;g!=null&&(l.gap=g);var y=r.barCategoryGap;y!=null&&(l.categoryGap=y)});var n={};return Et(t,function(r,i){n[i]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=ts(a).length;l=Math.max(35-c*4,15)+"%"}var d=Qo(l,s),h=Qo(r.gap,1),p=r.remainedWidth,v=r.autoWidthCount,g=(p-d)/(v+(v-1)*h);g=Math.max(g,0),Et(a,function(C){var x=C.maxWidth,E=C.minWidth;if(C.width){var _=C.width;x&&(_=Math.min(_,x)),E&&(_=Math.max(_,E)),C.width=_,p-=_+h*_,v--}else{var _=g;x&&x<_&&(_=Math.min(x,p)),E&&E>_&&(_=E),_!==g&&(C.width=_,p-=_+h*_,v--)}}),g=(p-d)/(v+(v-1)*h),g=Math.max(g,0);var y=0,S;Et(a,function(C,x){C.width||(C.width=g),S=C,y+=C.width*(1+h)}),S&&(y-=S.width*h);var k=-y/2;Et(a,function(C,x){n[i][x]=n[i][x]||{bandWidth:s,offset:k,width:C.width},k+=C.width*(1+h)})}),n}function B1t(e,t,n){if(e&&t){var r=e[mG(t)];return r}}function N1t(e,t){var n=kye(e,t),r=xye(n);Et(n,function(i){var a=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),c=Sye(i),d=r[mG(l)][c],h=d.offset,p=d.width;a.setLayout({bandWidth:d.bandWidth,offset:h,size:p})})}function F1t(e){return{seriesType:e,plan:lG(),reset:function(t){if(Cye(t)){var n=t.getData(),r=t.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=n.getDimensionIndex(n.mapDimension(i.dim)),c=t.get("showBackground",!0),d=n.mapDimension(a.dim),h=n.getCalculationInfo("stackResultDimension"),p=Hy(n,d)&&!!n.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),g=j1t(i,a),y=wye(t),S=t.get("barMinHeight")||0,k=h&&n.getDimensionIndex(h),C=n.getLayout("size"),x=n.getLayout("offset");return{progress:function(E,_){for(var T=E.count,D=y&&wh(T*3),P=y&&c&&wh(T*3),M=y&&wh(T),O=r.master.getRect(),L=v?O.width:O.height,B,j=_.getStore(),H=0;(B=E.next())!=null;){var U=j.get(p?k:s,B),K=j.get(l,B),Y=g,ie=void 0;p&&(ie=+U-j.get(s,B));var te=void 0,W=void 0,q=void 0,Q=void 0;if(v){var se=r.dataToPoint([U,K]);if(p){var ae=r.dataToPoint([ie,K]);Y=ae[0]}te=Y,W=se[1]+x,q=se[0]-Y,Q=C,Math.abs(q)0?n:1:n))}var V1t=function(e,t,n,r){for(;n>>1;e[i][1]i&&(this._approxInterval=i);var l=lC.length,c=Math.min(V1t(lC,this._approxInterval,0,l),l-1);this._interval=lC[c][1],this._minLevelUnit=lC[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return Io(n)?n:+Wh(n)},t.prototype.contain=function(n){return qA(this.parse(n),this._extent)},t.prototype.normalize=function(n){return YA(this.parse(n),this._extent)},t.prototype.scale=function(n){return XA(n,this._extent)},t.type="time",t})(S3),lC=[["second",ZW],["minute",JW],["hour",Tb],["quarter-day",Tb*6],["half-day",Tb*12],["day",jc*1.2],["half-week",jc*3.5],["week",jc*7],["month",jc*31],["quarter",jc*95],["half-year",Dse/2],["year",Dse]];function z1t(e,t,n,r){var i=Wh(t),a=Wh(n),s=function(y){return Rse(i,y,r)===Rse(a,y,r)},l=function(){return s("year")},c=function(){return l()&&s("month")},d=function(){return c()&&s("day")},h=function(){return d()&&s("hour")},p=function(){return h()&&s("minute")},v=function(){return p()&&s("second")},g=function(){return v()&&s("millisecond")};switch(e){case"year":return l();case"month":return c();case"day":return d();case"hour":return h();case"minute":return p();case"second":return v();case"millisecond":return g()}}function U1t(e,t){return e/=jc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function H1t(e){var t=30*jc;return e/=t,e>6?6:e>3?3:e>2?2:1}function W1t(e){return e/=Tb,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function zae(e,t){return e/=t?JW:ZW,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function G1t(e){return age(e)}function K1t(e,t,n){var r=new Date(e);switch(yy(t)){case"year":case"month":r[Qge(n)](0);case"day":r[e1e(n)](1);case"hour":r[t1e(n)](0);case"minute":r[n1e(n)](0);case"second":r[r1e(n)](0),r[i1e(n)](0)}return r.getTime()}function q1t(e,t,n,r){var i=1e4,a=Zge,s=0;function l(L,B,j,H,U,K,Y){for(var ie=new Date(B),te=B,W=ie[H]();te1&&K===0&&j.unshift({value:j[0].value-te})}}for(var K=0;K=r[0]&&x<=r[1]&&p++)}var E=(r[1]-r[0])/t;if(p>E*1.5&&v>E/1.5||(d.push(k),p>E||e===a[g]))break}h=[]}}}for(var _=Ua(Cr(d,function(L){return Ua(L,function(B){return B.value>=r[0]&&B.value<=r[1]&&!B.notAdd})}),function(L){return L.length>0}),T=[],D=_.length-1,g=0;g<_.length;++g)for(var P=_[g],M=0;M0;)a*=10;var l=[Zs(Z1t(r[0]/a)*a),Zs(X1t(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){Pb.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=hd(n)/hd(this.base),qA(n,this._extent)},t.prototype.normalize=function(n){return n=hd(n)/hd(this.base),YA(n,this._extent)},t.prototype.scale=function(n){return n=XA(n,this._extent),uC(this.base,n)},t.type="log",t})(Mf),Tye=gG.prototype;Tye.getMinorTicks=Pb.getMinorTicks;Tye.getLabel=Pb.getLabel;function cC(e,t){return Y1t(e,Ch(t))}Mf.registerClass(gG);var J1t=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&c>0&&!d&&(l=0),l<0&&c<0&&!h&&(c=0));var v=this._determinedMin,g=this._determinedMax;return v!=null&&(l=v,d=!0),g!=null&&(c=g,h=!0),{min:l,max:c,minFixed:d,maxFixed:h,isBlank:p}},e.prototype.modifyDataMinMax=function(t,n){this[eyt[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Q1t[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),Q1t={min:"_determinedMin",max:"_determinedMax"},eyt={min:"_dataMin",max:"_dataMax"};function tyt(e,t,n){var r=e.rawExtentInfo;return r||(r=new J1t(e,t,n),e.rawExtentInfo=r,r)}function dC(e,t){return t==null?null:rT(t)?NaN:e.parse(t)}function Aye(e,t){var n=e.type,r=tyt(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,s=t.ecModel;if(s&&n==="time"){var l=kye("bar",s),c=!1;if(Et(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var d=xye(l),h=nyt(i,a,t,d);i=h.min,a=h.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function nyt(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),s=B1t(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;Et(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;Et(s,function(g){c=Math.max(g.offset+g.width,c)}),l=Math.abs(l),c=Math.abs(c);var d=l+c,h=t-e,p=1-(l+c)/a,v=h/p-h;return t+=v*(c/d),e-=v*(l/d),{min:e,max:t}}function Hae(e,t){var n=t,r=Aye(e,n),i=r.extent,a=n.get("splitNumber");e instanceof gG&&(e.base=n.get("logBase"));var s=e.type,l=n.get("interval"),c=s==="interval"||s==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get("minInterval"):null,maxInterval:c?n.get("maxInterval"):null}),l!=null&&e.setInterval&&e.setInterval(l)}function ryt(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new vG({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Eye({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mf.getClass(t)||S3)}}function iyt(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function k3(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?(function(r){return function(i,a){return e.scale.getFormattedLabel(i,a,r)}})(t):br(t)?(function(r){return function(i){var a=e.scale.getLabel(i),s=r.replace("{value}",a??"");return s}})(t):ni(t)?(function(r){return function(i,a){return n!=null&&(a=i.value-n),r(yG(e,i),a,i.level!=null?{level:i.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function yG(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function oyt(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,a=n.getExtent();n instanceof vG?i=n.count():(r=n.getTicks(),i=r.length);var s=e.getLabelModel(),l=k3(e),c,d=1;i>40&&(d=Math.ceil(i/40));for(var h=0;h=0||(Wae.push(e),ni(e)&&(e={install:e}),e.install(uyt))}var C_=Bs();function Lye(e,t){var n=Cr(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function cyt(e){var t=e.getLabelModel().get("customValues");if(t){var n=k3(e),r=e.scale.getExtent(),i=Lye(e,t),a=Ua(i,function(s){return s>=r[0]&&s<=r[1]});return{labels:Cr(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?fyt(e):pyt(e)}function dyt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=Lye(e,n);return{ticks:Ua(i,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?hyt(e,t):{ticks:Cr(e.scale.getTicks(),function(a){return a.value})}}function fyt(e){var t=e.getLabelModel(),n=Dye(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Dye(e,t){var n=Pye(e,"labels"),r=bG(t),i=Rye(n,r);if(i)return i;var a,s;return ni(r)?a=Oye(e,r):(s=r==="auto"?vyt(e):r,a=$ye(e,s)),Mye(n,r,{labels:a,labelCategoryInterval:s})}function hyt(e,t){var n=Pye(e,"ticks"),r=bG(t),i=Rye(n,r);if(i)return i;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ni(r))a=Oye(e,r,!0);else if(r==="auto"){var l=Dye(e,e.getLabelModel());s=l.labelCategoryInterval,a=Cr(l.labels,function(c){return c.tickValue})}else s=r,a=$ye(e,s,!0);return Mye(n,r,{ticks:a,tickCategoryInterval:s})}function pyt(e){var t=e.scale.getTicks(),n=k3(e);return{labels:Cr(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function Pye(e,t){return C_(e)[t]||(C_(e)[t]=[])}function Rye(e,t){for(var n=0;n40&&(l=Math.max(1,Math.floor(s/40)));for(var c=a[0],d=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(d*Math.cos(r)),p=Math.abs(d*Math.sin(r)),v=0,g=0;c<=a[1];c+=l){var y=0,S=0,k=LW(n({value:c}),t.font,"center","top");y=k.width*1.3,S=k.height*1.3,v=Math.max(v,y,7),g=Math.max(g,S,7)}var C=v/h,x=g/p;isNaN(C)&&(C=1/0),isNaN(x)&&(x=1/0);var E=Math.max(0,Math.floor(Math.min(C,x))),_=C_(e.model),T=e.getExtent(),D=_.lastAutoInterval,P=_.lastTickCount;return D!=null&&P!=null&&Math.abs(D-E)<=1&&Math.abs(P-s)<=1&&D>E&&_.axisExtent0===T[0]&&_.axisExtent1===T[1]?E=D:(_.lastTickCount=s,_.lastAutoInterval=E,_.axisExtent0=T[0],_.axisExtent1=T[1]),E}function gyt(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function $ye(e,t,n){var r=k3(e),i=e.scale,a=i.getExtent(),s=e.getLabelModel(),l=[],c=Math.max((t||0)+1,1),d=a[0],h=i.count();d!==0&&c>1&&h/c>2&&(d=Math.round(Math.ceil(d/c)*c));var p=Iye(e),v=s.get("showMinLabel")||p,g=s.get("showMaxLabel")||p;v&&d!==a[0]&&S(a[0]);for(var y=d;y<=a[1];y+=c)S(y);g&&y-c!==a[1]&&S(a[1]);function S(k){var C={value:k};l.push(n?k:{formattedLabel:r(C),rawLabel:i.getLabel(C),tickValue:k})}return l}function Oye(e,t,n){var r=e.scale,i=k3(e),a=[];return Et(r.getTicks(),function(s){var l=r.getLabel(s),c=s.value;t(s.value,l)&&a.push(n?c:{formattedLabel:i(s),rawLabel:l,tickValue:c})}),a}var Gae=[0,1],yyt=(function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return hht(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),Kae(r,i.count())),JV(t,Gae,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),Kae(r,i.count()));var a=JV(t,r,Gae,n);return this.scale.scale(a)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=dyt(this,n),i=r.ticks,a=Cr(i,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return byt(this,a,s,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=Cr(r,function(a){return Cr(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return i},e.prototype.getViewLabels=function(){return cyt(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return myt(this)},e})();function Kae(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function byt(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),s,l;if(i===1)t[0].coord=a[0],s=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var c=t[i-1].tickValue-t[0].tickValue,d=(t[i-1].coord-t[0].coord)/c;Et(t,function(g){g.coord-=d/2});var h=e.scale.getExtent();l=1+h[1]-t[i-1].tickValue,s={coord:t[i-1].coord+d*l,tickValue:h[1]+1},t.push(s)}var p=a[0]>a[1];v(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],s.coord)&&(r?s.coord=a[1]:t.pop()),r&&v(s.coord,a[1])&&t.push({coord:a[1]});function v(g,y){return g=Zs(g),y=Zs(y),p?g>y:g0){t=t/180*Math.PI,s0.fromArray(e[0]),bs.fromArray(e[1]),Va.fromArray(e[2]),Wr.sub(a0,s0,bs),Wr.sub(uf,Va,bs);var n=a0.len(),r=uf.len();if(!(n<.001||r<.001)){a0.scale(1/n),uf.scale(1/r);var i=a0.dot(uf),a=Math.cos(t);if(a1&&Wr.copy(zl,Va),zl.toArray(e[1])}}}}function Syt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,s0.fromArray(e[0]),bs.fromArray(e[1]),Va.fromArray(e[2]),Wr.sub(a0,bs,s0),Wr.sub(uf,Va,bs);var r=a0.len(),i=uf.len();if(!(r<.001||i<.001)){a0.scale(1/r),uf.scale(1/i);var a=a0.dot(t),s=Math.cos(n);if(a=c)Wr.copy(zl,Va);else{zl.scaleAndAdd(uf,l/Math.tan(Math.PI/2-h));var p=Va.x!==bs.x?(zl.x-bs.x)/(Va.x-bs.x):(zl.y-bs.y)/(Va.y-bs.y);if(isNaN(p))return;p<0?Wr.copy(zl,bs):p>1&&Wr.copy(zl,Va)}zl.toArray(e[1])}}}}function _F(e,t,n,r){var i=n==="normal",a=i?e:e.ensureState(n);a.ignore=t;var s=r.get("smooth");s&&s===!0&&(s=.3),a.shape=a.shape||{},s>0&&(a.shape.smooth=s);var l=r.getModel("lineStyle").getLineStyle();i?e.useStyle(l):a.style=l}function kyt(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=BV(r[0],r[1]),a=BV(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var s=Math.min(i,a)*n,l=pN([],r[1],r[0],s/i),c=pN([],r[1],r[2],s/a),d=pN([],l,c,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],d[0],d[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var h=1;h0){E(O*M,0,s);var L=O+D;L<0&&_(-L*M,1)}else _(-D*M,1)}}function E(D,P,M){D!==0&&(d=!0);for(var O=P;O0)for(var L=0;L0;L--){var U=M[L-1]*H;E(-U,L,s)}}}function T(D){var P=D<0?-1:1;D=Math.abs(D);for(var M=Math.ceil(D/(s-1)),O=0;O0?E(M,0,O+1):E(-M,s-O-1,s),D-=M,D<=0)return}return d}function Tyt(e,t,n,r){return Eyt(e,"y","height",t,n)}function Ayt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new lo(0,0,0,0);function r(S){if(!S.ignore){var k=S.ensureState("emphasis");k.ignore==null&&(k.ignore=!1)}S.ignore=!0}for(var i=0;i=l)}}for(var p=this.__startIndex;p15)break}}U.prevElClipPaths&&C.restore()};if(x)if(x.length===0)M=k.__endIndex;else for(var L=g.dpr,B=0;B0&&t>i[0]){for(c=0;ct);c++);l=r[i[c]]}if(i.splice(c+1,0,t),r[t]=n,!n.virtual)if(l){var d=l.dom;d.nextSibling?s.insertBefore(n.dom,d.nextSibling):s.appendChild(n.dom)}else s.firstChild?s.insertBefore(n.dom,s.firstChild):s.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i0?fC:0),this._needsManuallyCompositing),h.__builtin__||kW("ZLevel "+d+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==c&&(h.__dirty=!0),h.__startIndex=c,h.incremental?h.__drawIndex=-1:h.__drawIndex=c,n(c),a=h),i.__dirty&oc&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=c))}n(c),this.eachBuiltinLayer(function(p,v){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Et(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?ao(r[t],n,!0):r[t]=n;for(var i=0;i-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Md);function _G(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=zy(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var a=[],s=0;s=0&&r.push(t[a])}return r.join(" ")}var SG=(function(e){Nn(t,e);function t(n,r,i,a){var s=e.call(this)||this;return s.updateData(n,r,i,a),s}return t.prototype._createSymbol=function(n,r,i,a,s){this.removeAll();var l=Uy(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Myt,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mT(this.childAt(0))},t.prototype.downplay=function(){gT(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,a){this.silent=!1;var s=n.getItemVisual(r,"symbol")||"circle",l=n.hostModel,c=t.getSymbolSize(n,r),d=s!==this._symbolType,h=a&&a.disableAnimation;if(d){var p=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(s,n,r,c,p)}else{var v=this.childAt(0);v.silent=!1;var g={scaleX:c[0]/2,scaleY:c[1]/2};h?v.attr(g):eu(v,g,l,r),WW(v)}if(this._updateCommon(n,r,c,i,a),d){var v=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Kc(v,g,l,r)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,a,s){var l=this.childAt(0),c=n.hostModel,d,h,p,v,g,y,S,k,C;if(a&&(d=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,v=a.focus,g=a.blurScope,S=a.labelStatesModels,k=a.hoverScale,C=a.cursorStyle,y=a.emphasisDisabled),!a||n.hasItemOption){var x=a&&a.itemModel?a.itemModel:n.getItemModel(r),E=x.getModel("emphasis");d=E.getModel("itemStyle").getItemStyle(),p=x.getModel(["select","itemStyle"]).getItemStyle(),h=x.getModel(["blur","itemStyle"]).getItemStyle(),v=E.get("focus"),g=E.get("blurScope"),y=E.get("disabled"),S=SS(x),k=E.getShallow("scale"),C=x.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var T=z1e(n.getItemVisual(r,"symbolOffset"),i);T&&(l.x=T[0],l.y=T[1]),C&&l.attr("cursor",C);var D=n.getItemVisual(r,"style"),P=D.fill;if(l instanceof U0){var M=l.style;l.useStyle(yn({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},D))}else l.__isEmptyBrush?l.useStyle(yn({},D)):l.useStyle(D),l.style.decal=null,l.setColor(P,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var O=n.getItemVisual(r,"liftZ"),L=this._z2;O!=null?L==null&&(this._z2=l.z2,l.z2+=O):L!=null&&(l.z2=L,this._z2=null);var B=s&&s.useNameLabel;_S(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:j,inheritColor:P,defaultOpacity:D.opacity});function j(K){return B?n.getName(K):_G(n,K)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var H=l.ensureState("emphasis");H.style=d,l.ensureState("select").style=p,l.ensureState("blur").style=h;var U=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;H.scaleX=this._sizeX*U,H.scaleY=this._sizeY*U,this.setSymbolScale(1),m_(this,v,g,y)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var a=this.childAt(0),s=Yi(this).dataIndex,l=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var c=a.getTextContent();c&&_T(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();_T(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return mgt(n.getItemVisual(r,"symbolSize"))},t})(Qa);function Myt(e,t){this.parent.drift(e,t)}function kF(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function Xae(e){return e!=null&&!Ir(e)&&(e={isIgnore:e}),e||{}}function Zae(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:SS(t),cursorStyle:t.get("cursor")}}var $yt=(function(){function e(t){this.group=new Qa,this._SymbolCtor=t||SG}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Xae(n);var r=this.group,i=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=Zae(t),d={disableAnimation:l},h=n.getSymbolPoint||function(p){return t.getItemLayout(p)};a||r.removeAll(),t.diff(a).add(function(p){var v=h(p);if(kF(t,v,p,n)){var g=new s(t,p,c,d);g.setPosition(v),t.setItemGraphicEl(p,g),r.add(g)}}).update(function(p,v){var g=a.getItemGraphicEl(v),y=h(p);if(!kF(t,y,p,n)){r.remove(g);return}var S=t.getItemVisual(p,"symbol")||"circle",k=g&&g.getSymbolType&&g.getSymbolType();if(!g||k&&k!==S)r.remove(g),g=new s(t,p,c,d),g.setPosition(y);else{g.updateData(t,p,c,d);var C={x:y[0],y:y[1]};l?g.attr(C):eu(g,C,i)}r.add(g),t.setItemGraphicEl(p,g)}).remove(function(p){var v=a.getItemGraphicEl(p);v&&v.fadeOut(function(){r.remove(v)},i)}).execute(),this._getSymbolPoint=h,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var a=t._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Zae(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Xae(r);function i(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?n=r[0]:r[1]<0&&(n=r[1]),n}function Vye(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,s=[];return s[a]=n.get(e.baseDim,r),s[1-a]=i,t.dataToPoint(s)}function Byt(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Nyt(e,t,n,r,i,a,s,l){for(var c=Byt(e,t),d=[],h=[],p=[],v=[],g=[],y=[],S=[],k=jye(i,t,s),C=e.getLayout("points")||[],x=t.getLayout("points")||[],E=0;E=i||S<0)break;if(km(C,x)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](C,x),p=C,v=x;else{var E=C-d,_=x-h;if(E*E+_*_<.5){S+=a;continue}if(s>0){for(var T=S+a,D=t[T*2],P=t[T*2+1];D===C&&P===x&&k=r||km(D,P))g=C,y=x;else{L=D-d,B=P-h;var U=C-d,K=D-C,Y=x-h,ie=P-x,te=void 0,W=void 0;if(l==="x"){te=Math.abs(U),W=Math.abs(K);var q=L>0?1:-1;g=C-q*te*s,y=x,j=C+q*W*s,H=x}else if(l==="y"){te=Math.abs(Y),W=Math.abs(ie);var Q=B>0?1:-1;g=C,y=x-Q*te*s,j=C,H=x+Q*W*s}else te=Math.sqrt(U*U+Y*Y),W=Math.sqrt(K*K+ie*ie),O=W/(W+te),g=C-L*s*(1-O),y=x-B*s*(1-O),j=C+L*s*O,H=x+B*s*O,j=Mp(j,$p(D,C)),H=Mp(H,$p(P,x)),j=$p(j,Mp(D,C)),H=$p(H,Mp(P,x)),L=j-C,B=H-x,g=C-L*te/W,y=x-B*te/W,g=Mp(g,$p(d,C)),y=Mp(y,$p(h,x)),g=$p(g,Mp(d,C)),y=$p(y,Mp(h,x)),L=C-g,B=x-y,j=C+L*W/te,H=x+B*W/te}e.bezierCurveTo(p,v,g,y,C,x),p=j,v=H}else e.lineTo(C,x)}d=C,h=x,S+=a}return k}var zye=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Fyt=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zye},t.prototype.buildPath=function(n,r){var i=r.points,a=0,s=i.length/2;if(r.connectNulls){for(;s>0&&km(i[s*2-2],i[s*2-1]);s--);for(;a=0){var _=d?(y-c)*E+c:(g-l)*E+l;return d?[n,_]:[_,n]}l=g,c=y;break;case s.C:g=a[p++],y=a[p++],S=a[p++],k=a[p++],C=a[p++],x=a[p++];var T=d?sT(l,g,S,C,n,h):sT(c,y,k,x,n,h);if(T>0)for(var D=0;D=0){var _=d?Ha(c,y,k,x,P):Ha(l,g,S,C,P);return d?[n,_]:[_,n]}}l=C,c=x;break}}},t})(vo),jyt=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(zye),Vyt=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new jyt},t.prototype.buildPath=function(n,r){var i=r.points,a=r.stackedOnPoints,s=0,l=i.length/2,c=r.smoothMonotone;if(r.connectNulls){for(;l>0&&km(i[l*2-2],i[l*2-1]);l--);for(;st){a?n.push(s(a,c,t)):i&&n.push(s(i,c,0),s(i,c,t));break}else i&&(n.push(s(i,c,0)),i=null),n.push(c),a=c}return n}function Wyt(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,s=r.length-1;s>=0;s--){var l=e.getDimensionInfo(r[s].dimension);if(i=l&&l.coordDim,i==="x"||i==="y"){a=r[s];break}}if(a){var c=t.getAxis(i),d=Cr(a.stops,function(E){return{coord:c.toGlobalCoord(c.dataToCoord(E.value)),color:E.color}}),h=d.length,p=a.outerColors.slice();h&&d[0].coord>d[h-1].coord&&(d.reverse(),p.reverse());var v=Hyt(d,i==="x"?n.getWidth():n.getHeight()),g=v.length;if(!g&&h)return d[0].coord<0?p[1]?p[1]:d[h-1].color:p[0]?p[0]:d[0].color;var y=10,S=v[0].coord-y,k=v[g-1].coord+y,C=k-S;if(C<.001)return"transparent";Et(v,function(E){E.offset=(E.coord-S)/C}),v.push({offset:g?v[g-1].offset:.5,color:p[1]||"transparent"}),v.unshift({offset:g?v[0].offset:.5,color:p[0]||"transparent"});var x=new jge(0,0,0,0,v,!0);return x[i]=S,x[i+"2"]=k,x}}}function Gyt(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(i&&Kyt(a,t))){var s=t.mapDimension(a.dim),l={};return Et(a.getViewLabels(),function(c){var d=a.scale.getRawOrdinalNumber(c.tickValue);l[d]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function Kyt(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),s=0;sr)return!1;return!0}function qyt(e,t){return isNaN(e)||isNaN(t)}function Yyt(e){for(var t=e.length/2;t>0&&qyt(e[t*2-2],e[t*2-1]);t--);return t-1}function nle(e,t){return[e[t*2],e[t*2+1]]}function Xyt(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,a,s,l=0,c=-1,d=0;d=t||a>=t&&s<=t){c=d;break}l=d,a=s}return{range:[l,c],t:(t-a)/(s-a)}}function Wye(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var W=y.getState("emphasis").style;W.lineWidth=+y.style.lineWidth+1}Yi(y).seriesIndex=n.seriesIndex,m_(y,Y,ie,te);var q=tle(n.get("smooth")),Q=n.get("smoothMonotone");if(y.setShape({smooth:q,smoothMonotone:Q,connectNulls:P}),S){var se=l.getCalculationInfo("stackedOnSeries"),ae=0;S.useStyle(co(d.getAreaStyle(),{fill:j,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),se&&(ae=tle(se.get("smooth"))),S.setShape({smooth:q,stackedOnSmooth:ae,smoothMonotone:Q,connectNulls:P}),yT(S,n,"areaStyle"),Yi(S).seriesIndex=n.seriesIndex,m_(S,Y,ie,te)}var re=this._changePolyState;l.eachItemGraphicEl(function(Ce){Ce&&(Ce.onHoverStateChange=re)}),this._polyline.onHoverStateChange=re,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=L,this._valueOrigin=E,n.get("triggerLineEvent")&&(this.packEventData(n,y),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){Yi(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,a){var s=n.getData(),l=jm(s,a);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var c=s.getLayout("points"),d=s.getItemGraphicEl(l);if(!d){var h=c[l*2],p=c[l*2+1];if(isNaN(h)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,p))return;var v=n.get("zlevel")||0,g=n.get("z")||0;d=new SG(s,l),d.x=h,d.y=p,d.setZ(v,g);var y=d.getSymbolPath().getTextContent();y&&(y.zlevel=v,y.z=g,y.z2=this._polyline.z2+1),d.__temp=!0,s.setItemGraphicEl(l,d),d.stopSymbolAnimation(!0),this.group.add(d)}d.highlight()}else qc.prototype.highlight.call(this,n,r,i,a)},t.prototype.downplay=function(n,r,i,a){var s=n.getData(),l=jm(s,a);if(this._changePolyState("normal"),l!=null&&l>=0){var c=s.getItemGraphicEl(l);c&&(c.__temp?(s.setItemGraphicEl(l,null),this.group.remove(c)):c.downplay())}else qc.prototype.downplay.call(this,n,r,i,a)},t.prototype._changePolyState=function(n){var r=this._polygon;cse(this._polyline,n),r&&cse(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Fyt({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Vyt({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var a,s,l=r.getBaseAxis(),c=l.inverse;r.type==="cartesian2d"?(a=l.isHorizontal(),s=!1):r.type==="polar"&&(a=l.dim==="angle",s=!0);var d=n.hostModel,h=d.get("animationDuration");ni(h)&&(h=h(null));var p=d.get("animationDelay")||0,v=ni(p)?p(null):p;n.eachItemGraphicEl(function(g,y){var S=g;if(S){var k=[g.x,g.y],C=void 0,x=void 0,E=void 0;if(i)if(s){var _=i,T=r.pointToCoord(k);a?(C=_.startAngle,x=_.endAngle,E=-T[1]/180*Math.PI):(C=_.r0,x=_.r,E=T[0])}else{var D=i;a?(C=D.x,x=D.x+D.width,E=g.x):(C=D.y+D.height,x=D.y,E=g.y)}var P=x===C?0:(E-C)/(x-C);c&&(P=1-P);var M=ni(p)?p(y):h*P+v,O=S.getSymbolPath(),L=O.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:M}),O.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var a=n.getModel("endLabel");if(Wye(n)){var s=n.getData(),l=this._polyline,c=s.getLayout("points");if(!c){l.removeTextContent(),this._endLabel=null;return}var d=this._endLabel;d||(d=this._endLabel=new el({z2:200}),d.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=Yyt(c);h>=0&&(_S(l,SS(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:h,defaultText:function(p,v,g){return g!=null?Fye(s,g):_G(s,p)},enableTextSetter:!0},Zyt(a,r)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,a,s,l,c){var d=this._endLabel,h=this._polyline;if(d){n<1&&a.originalX==null&&(a.originalX=d.x,a.originalY=d.y);var p=i.getLayout("points"),v=i.hostModel,g=v.get("connectNulls"),y=l.get("precision"),S=l.get("distance")||0,k=c.getBaseAxis(),C=k.isHorizontal(),x=k.inverse,E=r.shape,_=x?C?E.x:E.y+E.height:C?E.x+E.width:E.y,T=(C?S:0)*(x?-1:1),D=(C?0:-S)*(x?-1:1),P=C?"x":"y",M=Xyt(p,_,P),O=M.range,L=O[1]-O[0],B=void 0;if(L>=1){if(L>1&&!g){var j=nle(p,O[0]);d.attr({x:j[0]+T,y:j[1]+D}),s&&(B=v.getRawValue(O[0]))}else{var j=h.getPointOn(_,P);j&&d.attr({x:j[0]+T,y:j[1]+D});var H=v.getRawValue(O[0]),U=v.getRawValue(O[1]);s&&(B=Rht(i,y,H,U,M.t))}a.lastFrameIndex=O[0]}else{var K=n===1||a.lastFrameIndex>0?O[0]:0,j=nle(p,K);s&&(B=v.getRawValue(K)),d.attr({x:j[0]+T,y:j[1]+D})}if(s){var Y=$A(d);typeof Y.setLabelText=="function"&&Y.setLabelText(B)}}},t.prototype._doUpdateAnimation=function(n,r,i,a,s,l,c){var d=this._polyline,h=this._polygon,p=n.hostModel,v=Nyt(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),g=v.current,y=v.stackedOnCurrent,S=v.next,k=v.stackedOnNext;if(s&&(y=Op(v.stackedOnCurrent,v.current,i,s,c),g=Op(v.current,null,i,s,c),k=Op(v.stackedOnNext,v.next,i,s,c),S=Op(v.next,null,i,s,c)),ele(g,S)>3e3||h&&ele(y,k)>3e3){d.stopAnimation(),d.setShape({points:S}),h&&(h.stopAnimation(),h.setShape({points:S,stackedOnPoints:k}));return}d.shape.__points=v.current,d.shape.points=g;var C={shape:{points:S}};v.current!==g&&(C.shape.__points=v.next),d.stopAnimation(),eu(d,C,p),h&&(h.setShape({points:g,stackedOnPoints:y}),h.stopAnimation(),eu(h,{shape:{stackedOnPoints:k}},p),d.shape.points!==h.shape.points&&(h.shape.points=d.shape.points));for(var x=[],E=v.status,_=0;_t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&s.type==="cartesian2d"&&a){var c=s.getBaseAxis(),d=s.getOtherAxis(c),h=c.getExtent(),p=r.getDevicePixelRatio(),v=Math.abs(h[1]-h[0])*(p||1),g=Math.round(l/v);if(isFinite(g)&&g>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(d.dim),1/g)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(d.dim),1/g));var y=void 0;br(a)?y=e3t[a]:ni(a)&&(y=a),y&&t.setData(i.downSample(i.mapDimension(d.dim),1/g,y,t3t))}}}}}function Kye(e){e.registerChartView(Jyt),e.registerSeriesModel(Ryt),e.registerLayout(Qyt("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Gye("line"))}var Az=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return pG(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var s=a.clampData(n),l=a.dataToPoint(s);if(i)Et(a.getAxes(),function(v,g){if(v.type==="category"&&r!=null){var y=v.getTicksCoords(),S=v.getTickModel().get("alignWithLabel"),k=s[g],C=r[g]==="x1"||r[g]==="y1";if(C&&!S&&(k+=1),y.length<2)return;if(y.length===2){l[g]=v.toGlobalCoord(v.getExtent()[C?1:0]);return}for(var x=void 0,E=void 0,_=1,T=0;Tk){E=(D+x)/2;break}T===1&&(_=P-y[0].tickValue)}E==null&&(x?x&&(E=y[y.length-1].coord):E=y[0].coord),l[g]=v.toGlobalCoord(E)}});else{var c=this.getData(),d=c.getLayout("offset"),h=c.getLayout("size"),p=a.getBaseAxis().isHorizontal()?0:1;l[p]+=d+h/2}return l}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(Md);Md.registerClass(Az);var n3t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return pG(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=qge(Az.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(Az),r3t=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),rle=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new r3t},t.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,s=Math.max(r.r0||0,0),l=Math.max(r.r,0),c=(l-s)*.5,d=s+c,h=r.startAngle,p=r.endAngle,v=r.clockwise,g=Math.PI*2,y=v?p-hMath.PI/2&&hl)return!0;l=p}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,a=i.getExtent(),s=Math.max(0,a[0]),l=Math.min(a[1],i.getOrdinalMeta().categories.length-1);s<=l;++s)if(n.ordinalNumbers[s]!==i.getRawOrdinalNumber(s))return!0},t.prototype._updateSortWithinSameData=function(n,r,i,a){if(this._isOrderChangedWithinSameData(n,r,i)){var s=this._dataSort(n,i,r);this._isOrderDifferentInView(s,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:s}))}},t.prototype._dispatchInitSort=function(n,r,i){var a=r.baseAxis,s=this._dataSort(n,a,function(l){return n.get(n.mapDimension(r.otherAxis.dim),l)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:s})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ST(a,n,Yi(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(qc),ile={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,s=CF(t.x,e.x),l=wF(t.x+t.width,i),c=CF(t.y,e.y),d=wF(t.y+t.height,a),h=li?l:s,t.y=p&&c>a?d:c,t.width=h?0:l-s,t.height=p?0:d-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),h||p},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=wF(t.r,e.r),a=CF(t.r0,e.r0);t.r=i,t.r0=a;var s=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return s}},ole={cartesian2d:function(e,t,n,r,i,a,s,l,c){var d=new Js({shape:yn({},r),z2:1});if(d.__dataIndex=n,d.name="item",a){var h=d.shape,p=i?"height":"width";h[p]=0}return d},polar:function(e,t,n,r,i,a,s,l,c){var d=!i&&c?rle:H0,h=new d({shape:r,z2:1});h.name="item";var p=qye(i);if(h.calculateTextPosition=i3t(p,{isRoundCap:d===rle}),a){var v=h.shape,g=i?"r":"endAngle",y={};v[g]=i?r.r0:r.startAngle,y[g]=r[g],(l?eu:Kc)(h,{shape:y},a)}return h}};function l3t(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function sle(e,t,n,r,i,a,s,l){var c,d;a?(d={x:r.x,width:r.width},c={y:r.y,height:r.height}):(d={y:r.y,height:r.height},c={x:r.x,width:r.width}),l||(s?eu:Kc)(n,{shape:c},t,i,null);var h=t?e.baseAxis.model:null;(s?eu:Kc)(n,{shape:d},h,i)}function ale(e,t){for(var n=0;n0?1:-1,s=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+s*i/2,width:r.width-a*i,height:r.height-s*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function d3t(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function qye(e){return(function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(e)}function ule(e,t,n,r,i,a,s,l){var c=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var h=e.shape,p=j4(r.getModel("itemStyle"),h,!0);yn(h,p),e.setShape(h)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(c);var v=r.getShallow("cursor");v&&e.attr("cursor",v);var g=l?s?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":s?i.height>=0?"bottom":"top":i.width>=0?"right":"left",y=SS(r);_S(e,y,{labelFetcher:a,labelDataIndex:n,defaultText:_G(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:g});var S=e.getTextContent();if(l&&S){var k=r.get(["label","position"]);e.textConfig.inside=k==="middle"?!0:null,o3t(e,k==="outside"?g:k,qye(s),r.get(["label","rotate"]))}K0t(S,y,a.getRawValue(n),function(x){return Fye(t,x)});var C=r.getModel(["emphasis"]);m_(e,C.get("focus"),C.get("blurScope"),C.get("disabled")),yT(e,r),d3t(i)&&(e.style.fill="none",e.style.stroke="none",Et(e.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function f3t(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var h3t=(function(){function e(){}return e})(),cle=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new h3t},t.prototype.buildPath=function(n,r){for(var i=r.points,a=this.baseDimIdx,s=1-this.baseDimIdx,l=[],c=[],d=this.barWidth,h=0;h=0?n:null},30,!1);function p3t(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,s=e.largeDataIndices,l=[],c=[],d=e.barWidth,h=0,p=a.length/3;h=l[0]&&t<=l[0]+c[0]&&n>=l[1]&&n<=l[1]+c[1])return s[h]}return-1}function Yye(e,t,n){if(kG(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function v3t(e,t,n){var r=e.type==="polar"?H0:Js;return new r({shape:Yye(t,n,e),silent:!0,z2:0})}function Xye(e){e.registerChartView(a3t),e.registerSeriesModel(n3t),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Rs(N1t,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F1t("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Gye("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var hle=Math.PI*2,mC=Math.PI/180;function Zye(e,t){return jy(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Jye(e,t){var n=Zye(e,t),r=e.get("center"),i=e.get("radius");er(i)||(i=[0,i]);var a=Qo(n.width,t.getWidth()),s=Qo(n.height,t.getHeight()),l=Math.min(a,s),c=Qo(i[0],l/2),d=Qo(i[1],l/2),h,p,v=e.coordinateSystem;if(v){var g=v.dataToPoint(r);h=g[0]||0,p=g[1]||0}else er(r)||(r=[r,r]),h=Qo(r[0],a)+n.x,p=Qo(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:d}}function m3t(e,t,n){t.eachSeriesByType(e,function(r){var i=r.getData(),a=i.mapDimension("value"),s=Zye(r,n),l=Jye(r,n),c=l.cx,d=l.cy,h=l.r,p=l.r0,v=-r.get("startAngle")*mC,g=r.get("endAngle"),y=r.get("padAngle")*mC;g=g==="auto"?v-hle:-g*mC;var S=r.get("minAngle")*mC,k=S+y,C=0;i.each(a,function(ie){!isNaN(ie)&&C++});var x=i.getSum(a),E=Math.PI/(x||C)*2,_=r.get("clockwise"),T=r.get("roseType"),D=r.get("stillShowZeroSum"),P=i.getDataExtent(a);P[0]=0;var M=_?1:-1,O=[v,g],L=M*y/2;bge(O,!_),v=O[0],g=O[1];var B=Qye(r);B.startAngle=v,B.endAngle=g,B.clockwise=_;var j=Math.abs(g-v),H=j,U=0,K=v;if(i.setLayout({viewRect:s,r:h}),i.each(a,function(ie,te){var W;if(isNaN(ie)){i.setItemLayout(te,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:d,r0:p,r:T?NaN:h});return}T!=="area"?W=x===0&&D?E:ie*E:W=j/C,WW?(Q=K+M*W/2,se=Q):(Q=K+L,se=q-L),i.setItemLayout(te,{angle:W,startAngle:Q,endAngle:se,clockwise:_,cx:c,cy:d,r0:p,r:T?JV(ie,P,[p,h]):h}),K=q}),Hn?C:k,T=Math.abs(E.label.y-n);if(T>=_.maxY){var D=E.label.x-t-E.len2*i,P=r+E.len,M=Math.abs(D)e.unconstrainedWidth?null:g:null;r.setStyle("width",y)}var S=r.getBoundingRect();a.width=S.width;var k=(r.style.margin||0)+2.1;a.height=S.height+k,a.y-=(a.height-p)/2}}}function EF(e){return e.position==="center"}function _3t(e){var t=e.getData(),n=[],r,i,a=!1,s=(e.get("minShowLabelAngle")||0)*y3t,l=t.getLayout("viewRect"),c=t.getLayout("r"),d=l.width,h=l.x,p=l.y,v=l.height;function g(D){D.ignore=!0}function y(D){if(!D.ignore)return!0;for(var P in D.states)if(D.states[P].ignore===!1)return!0;return!1}t.each(function(D){var P=t.getItemGraphicEl(D),M=P.shape,O=P.getTextContent(),L=P.getTextGuideLine(),B=t.getItemModel(D),j=B.getModel("label"),H=j.get("position")||B.get(["emphasis","label","position"]),U=j.get("distanceToLabelLine"),K=j.get("alignTo"),Y=Qo(j.get("edgeDistance"),d),ie=j.get("bleedMargin"),te=B.getModel("labelLine"),W=te.get("length");W=Qo(W,d);var q=te.get("length2");if(q=Qo(q,d),Math.abs(M.endAngle-M.startAngle)0?"right":"left":se>0?"left":"right"}var Oe=Math.PI,qe=0,Ke=j.get("rotate");if(Io(Ke))qe=Ke*(Oe/180);else if(H==="center")qe=0;else if(Ke==="radial"||Ke===!0){var at=se<0?-Q+Oe:-Q;qe=at}else if(Ke==="tangential"&&H!=="outside"&&H!=="outer"){var ft=Math.atan2(se,ae);ft<0&&(ft=Oe*2+ft);var ct=ae>0;ct&&(ft=Oe+ft),qe=ft-Oe}if(a=!!qe,O.x=re,O.y=Ce,O.rotation=qe,O.setStyle({verticalAlign:"middle"}),xe){O.setStyle({align:ge});var Rt=O.states.select;Rt&&(Rt.x+=O.x,Rt.y+=O.y)}else{var wt=O.getBoundingRect().clone();wt.applyTransform(O.getComputedTransform());var Ct=(O.style.margin||0)+2.1;wt.y-=Ct/2,wt.height+=Ct,n.push({label:O,labelLine:L,position:H,len:W,len2:q,minTurnAngle:te.get("minTurnAngle"),maxSurfaceAngle:te.get("maxSurfaceAngle"),surfaceNormal:new Wr(se,ae),linePoints:Ve,textAlign:ge,labelDistance:U,labelAlignTo:K,edgeDistance:Y,bleedMargin:ie,rect:wt,unconstrainedWidth:wt.width,labelStyleWidth:O.style.width})}P.setTextConfig({inside:xe})}}),!a&&e.get("avoidLabelOverlap")&&b3t(n,r,i,c,d,v,h,p);for(var S=0;S0){for(var h=s.getItemLayout(0),p=1;isNaN(h&&h.startAngle)&&p=a.r0}},t.type="pie",t})(qc);function x3t(e,t,n){t=er(t)&&{coordDimensions:t}||yn({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=yye(r,t).dimensions,a=new gye(i,e);return a.initData(r,n),a}var C3t=(function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e})(),w3t=Bs(),E3t=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new C3t(Mo(this.getData,this),Mo(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return x3t(this,{coordDimensions:["value"],encodeDefaulter:Rs(_vt,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),i=w3t(r),a=i.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=i.seats=pht(s,r.hostModel.get("percentPrecision"))}var l=e.prototype.getDataParams.call(this,n);return l.percent=a[n]||0,l.$vars.push("percent"),l},t.prototype._defaultLabelLine=function(n){QV(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Md);function T3t(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),s=r.get(a,i);return!(Io(s)&&!isNaN(s)&&s<0)})}}}function t3e(e){e.registerChartView(k3t),e.registerSeriesModel(E3t),rgt("pie",e.registerAction),e.registerLayout(Rs(m3t,"pie")),e.registerProcessor(g3t("pie")),e.registerProcessor(T3t("pie"))}var A3t=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(ho),Iz=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Td).models[0]},t.type="cartesian2dAxis",t})(ho);Df(Iz,lyt);var n3e={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},I3t=ao({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},n3e),xG=ao({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},n3e),L3t=ao({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xG),D3t=co({logBase:10},xG);const P3t={category:I3t,value:xG,time:L3t,log:D3t};var R3t={value:1,category:1,time:1,log:1};function vle(e,t,n,r){Et(R3t,function(i,a){var s=ao(ao({},P3t[a],!0),r,!0),l=(function(c){Nn(d,c);function d(){var h=c!==null&&c.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return d.prototype.mergeDefaultAndTheme=function(h,p){var v=b_(this),g=v?UA(h):{},y=p.getTheme();ao(h,y.get(a+"Axis")),ao(h,this.getDefaultOption()),h.type=mle(h),v&&Vy(h,g,v)},d.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=wz.createByAxisModel(this))},d.prototype.getCategories=function(h){var p=this.option;if(p.type==="category")return h?p.data:this.__ordinalMeta.categories},d.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},d.type=t+"Axis."+a,d.defaultOption=s,d})(n);e.registerComponentModel(l)}),e.registerSubTypeDefaulter(t+"Axis",mle)}function mle(e){return e.type||(e.data?"category":"value")}var M3t=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Cr(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ua(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),Lz=["x","y"];function gle(e){return e.type==="interval"||e.type==="time"}var $3t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Lz,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!gle(n)||!gle(r))){var i=n.getExtent(),a=r.getExtent(),s=this.dataToPoint([i[0],a[0]]),l=this.dataToPoint([i[1],a[1]]),c=i[1]-i[0],d=a[1]-a[0];if(!(!c||!d)){var h=(l[0]-s[0])/c,p=(l[1]-s[1])/d,v=s[0]-i[0]*h,g=s[1]-a[0]*p,y=this._transform=[h,0,0,p,v,g];this._invTransform=TW([],y)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),a=this.dataToPoint(r),s=this.getArea(),l=new lo(i[0],i[1],a[0]-i[0],a[1]-i[1]);return s.intersect(l)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var a=n[0],s=n[1];if(this._transform&&a!=null&&isFinite(a)&&s!=null&&isFinite(s))return Gc(i,n,this._transform);var l=this.getAxis("x"),c=this.getAxis("y");return i[0]=l.toGlobalCoord(l.dataToCoord(a,r)),i[1]=c.toGlobalCoord(c.dataToCoord(s,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,s=i.getExtent(),l=a.getExtent(),c=i.parse(n[0]),d=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r[1]=Math.min(Math.max(Math.min(l[0],l[1]),d),Math.max(l[0],l[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return Gc(i,n,this._invTransform);var a=this.getAxis("x"),s=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(n[0]),r),i[1]=s.coordToData(s.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-n,s=Math.min(i[0],i[1])-n,l=Math.max(r[0],r[1])-a+n,c=Math.max(i[0],i[1])-s+n;return new lo(a,s,l,c)},t})(M3t),O3t=(function(e){Nn(t,e);function t(n,r,i,a,s){var l=e.call(this,n,r,i)||this;return l.index=0,l.type=a||"value",l.position=s||"bottom",l}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(yyt);function Dz(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},s=i.getAxesOnZeroOf()[0],l=i.position,c=s?"onZero":l,d=i.dim,h=r.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],v={left:0,right:1,top:0,bottom:1,onZero:2},g=t.get("offset")||0,y=d==="x"?[p[2]-g,p[3]+g]:[p[0]-g,p[1]+g];if(s){var S=s.toGlobalCoord(s.dataToCoord(0));y[v.onZero]=Math.max(Math.min(S,y[1]),y[0])}a.position=[d==="y"?y[v[c]]:p[0],d==="x"?y[v[c]]:p[3]],a.rotation=Math.PI/2*(d==="x"?0:1);var k={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=k[l],a.labelOffset=s?y[v[l]]-y[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),f_(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var C=t.get(["axisLabel","rotate"]);return a.labelRotate=c==="top"?-C:C,a.z2=1,a}function yle(e){return e.get("coordinateSystem")==="cartesian2d"}function ble(e){var t={xAxisModel:null,yAxisModel:null};return Et(t,function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,Td).models[0];t[r]=a}),t}var TF=Math.log;function B3t(e,t,n){var r=S3.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=i.length-1,l=r.getInterval.call(n),c=Aye(e,t),d=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var v=TF(e.base);d=[TF(d[0])/v,TF(d[1])/v]}e.setExtent(d[0],d[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:p});var g=r.getExtent.call(e);h&&(d[0]=g[0]),p&&(d[1]=g[1]);var y=r.getInterval.call(e),S=d[0],k=d[1];if(h&&p)y=(k-S)/s;else if(h)for(k=d[0]+y*s;kd[0]&&isFinite(S)&&isFinite(d[0]);)y=bF(y),S=d[1]-y*s;else{var C=e.getTicks().length-1;C>s&&(y=bF(y));var x=y*s;k=Math.ceil(d[1]/y)*y,S=Zs(k-x),S<0&&d[0]>=0?(S=0,k=Zs(x)):k>0&&d[1]<=0&&(k=0,S=-Zs(x))}var E=(i[0].value-a[0].value)/l,_=(i[s].value-a[s].value)/l;r.setExtent.call(e,S+y*E,k+y*_),r.setInterval.call(e,y),(E||_)&&r.setNiceExtent.call(e,S+y,k-y)}var N3t=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Lz,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(s){var l,c=ts(s),d=c.length;if(d){for(var h=[],p=d-1;p>=0;p--){var v=+c[p],g=s[v],y=g.model,S=g.scale;Ez(S)&&y.get("alignTicks")&&y.get("interval")==null?h.push(g):(Hae(S,y),Ez(S)&&(l=g))}h.length&&(l||(l=h.pop(),Hae(l.scale,l.model)),Et(h,function(k){B3t(k.scale,k.model,l.scale)}))}}i(r.x),i(r.y);var a={};Et(r.x,function(s){_le(r,"y",s,a)}),Et(r.y,function(s){_le(r,"x",s,a)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),a=!r&&t.get("containLabel"),s=jy(i,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(Et(l,function(d){if(!d.model.get(["axisLabel","inside"])){var h=oyt(d);if(h){var p=d.isHorizontal()?"height":"width",v=d.model.get(["axisLabel","margin"]);s[p]-=h[p]+v,d.position==="top"?s.y+=h.height+v:d.position==="left"&&(s.x+=h.width+v)}}}),c()),Et(this._coordsList,function(d){d.calcAffineTransform()});function c(){Et(l,function(d){var h=d.isHorizontal(),p=h?[0,s.width]:[0,s.height],v=d.inverse?1:0;d.setExtent(p[v],p[1-v]),F3t(d,h?s.x:s.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Ir(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):fT(i-l0)?(s=r>0?"bottom":"top",a="center"):(s="middle",i>0&&i0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:s}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),kle={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),s=r.transform,l=[a[0],0],c=[a[1],0],d=l[0]>c[0];s&&(Gc(l,l,s),Gc(c,c,s));var h=yn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new L0({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});g_(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var v=t.get(["axisLine","symbol"]);if(v!=null){var g=t.get(["axisLine","symbolSize"]);br(v)&&(v=[v,v]),(br(g)||Io(g))&&(g=[g,g]);var y=z1e(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];Et([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],function(C,x){if(v[x]!=="none"&&v[x]!=null){var E=Uy(v[x],-S/2,-k/2,S,k,h.stroke,!0),_=C.r+C.offset,T=d?c:l;E.attr({rotation:C.rotate,x:T[0]+_*Math.cos(e.rotation),y:T[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(e,t,n,r){var i=z3t(n,r,t,e),a=H3t(n,r,t,e);if(V3t(t,a,i),U3t(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=wyt(Cr(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));Ayt(s)}},axisName:function(e,t,n,r){var i=f_(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),s=e.nameDirection,l=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=[a==="start"?d[0]-h*c:a==="end"?d[1]+h*c:(d[0]+d[1])/2,Cle(a)?e.labelOffset+s*c:0],v,g=t.get("nameRotate");g!=null&&(g=g*l0/180);var y;Cle(a)?v=b0.innerTextLayout(e.rotation,g??e.rotation,s):(v=j3t(e.rotation,a,g||0,d),y=e.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(v.rotation)),!isFinite(y)&&(y=null)));var S=l.getFont(),k=t.get("nameTruncate",!0)||{},C=k.ellipsis,x=f_(e.nameTruncateMaxWidth,k.maxWidth,y),E=new el({x:p[0],y:p[1],rotation:v.rotation,silent:b0.isLabelSilent(t),style:D0(l,{text:i,font:S,overflow:"truncate",width:x,ellipsis:C,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||v.textAlign,verticalAlign:l.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(PA({el:E,componentModel:t,itemName:i}),E.__fullText=i,E.anid="name",t.get("triggerEvent")){var _=b0.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,Yi(E).eventData=_}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function j3t(e,t,n,r){var i=sge(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return fT(i-l0/2)?(s=c?"bottom":"top",a="center"):fT(i-l0*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",il0/2?a=c?"left":"right":a=c?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:s}}function V3t(e,t,n){if(!Iye(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],s=t[1],l=t[t.length-1],c=t[t.length-2],d=n[0],h=n[1],p=n[n.length-1],v=n[n.length-2];r===!1?(Ec(a),Ec(d)):xle(a,s)&&(r?(Ec(s),Ec(h)):(Ec(a),Ec(d))),i===!1?(Ec(l),Ec(p)):xle(c,l)&&(i?(Ec(c),Ec(v)):(Ec(l),Ec(p)))}}function Ec(e){e&&(e.ignore=!0)}function xle(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=wW([]);return EW(i,i,-e.rotation),n.applyTransform(vy([],i,e.getLocalTransform())),r.applyTransform(vy([],i,t.getLocalTransform())),n.intersect(r)}}function Cle(e){return e==="middle"||e==="center"}function r3e(e,t,n,r,i){for(var a=[],s=[],l=[],c=0;c=0||e===t}function X3t(e){var t=CG(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),s=n.get("value");s!=null&&(s=r.parse(s));var l=Pz(n);a==null&&(i.status=l?"show":"hide");var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(s==null||s>c[1])&&(s=c[1]),sl)return!0;if(s){var c=CG(t).seriesDataCount,d=i.getExtent();return Math.abs(d[0]-d[1])/c>l}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,a){},e.prototype.createPointerEl=function(t,n,r,i){var a=n.pointer;if(a){var s=Yv(t).pointerEl=new z0t[a.type](Tle(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var a=Yv(t).labelEl=new el(Tle(n.label));t.add(a),Ile(a,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Yv(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var a=Yv(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),Ile(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),s=n.get("status");if(!a.get("show")||!s||s==="hide"){i&&r.remove(i),this._handle=null;return}var l;this._handle||(l=!0,i=this._handle=qW(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(d){zme(d.event)},onmousedown:LF(this._onHandleDragMove,this,0,0),drift:LF(this._onHandleDragMove,this),ondragend:LF(this._onHandleDragEnd,this)}),r.add(i)),Lle(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");er(c)||(c=[c,c]),i.scaleX=c[0]/2,i.scaleY=c[1]/2,M1e(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){Ale(this._axisPointerModel,!n&&this._moveAnimation,this._handle,DF(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(DF(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(DF(i)),Yv(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),mz(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e})();function Ale(e,t,n,r){a3e(Yv(n).lastProp,r)||(Yv(n).lastProp=r,t?eu(n,r,e):(n.stopAnimation(),n.attr(r)))}function a3e(e,t){if(Ir(e)&&Ir(t)){var n=!0;return Et(t,function(r,i){n=n&&a3e(e[i],r)}),!!n}else return e===t}function Ile(e,t){e[t.get(["label","show"])?"show":"hide"]()}function DF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Lle(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=n)})}function a2t(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function l2t(e,t,n,r,i){var a=n.get("value"),s=l3e(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=zA(l.get("padding")||0),d=l.getFont(),h=LW(s,d),p=i.position,v=h.width+c[1]+c[3],g=h.height+c[0]+c[2],y=i.align;y==="right"&&(p[0]-=v),y==="center"&&(p[0]-=v/2);var S=i.verticalAlign;S==="bottom"&&(p[1]-=g),S==="middle"&&(p[1]-=g/2),u2t(p,v,g,r);var k=l.get("backgroundColor");(!k||k==="auto")&&(k=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:D0(l,{text:s,font:d,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function u2t(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function l3e(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),s=i.formatter;if(s){var l={value:yG(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Et(r,function(c){var d=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=d&&d.getDataParams(h);p&&l.seriesData.push(p)}),br(s)?a=s.replace("{value}",a):ni(s)&&(a=s(l))}return a}function u3e(e,t,n){var r=py();return EW(r,r,n.rotation),VV(r,r,n.position),KW([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function c2t(e,t,n,r,i,a){var s=b0.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),l2t(t,r,i,a,{position:u3e(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function d2t(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function f2t(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var h2t=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,a,s){var l=i.axis,c=l.grid,d=a.get("type"),h=Dle(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(d&&d!=="none"){var v=a2t(a),g=p2t[d](l,p,h);g.style=v,n.graphicKey=g.type,n.pointer=g}var y=Dz(c.model,i);c2t(r,n,y,i,a,s)},t.prototype.getHandleTransform=function(n,r,i){var a=Dz(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var s=u3e(r.axis,n,a);return{x:s[0],y:s[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,a){var s=i.axis,l=s.grid,c=s.getGlobalExtent(!0),d=Dle(l,s).getOtherAxis(s).getGlobalExtent(),h=s.dim==="x"?0:1,p=[n.x,n.y];p[h]+=r[h],p[h]=Math.min(c[1],p[h]),p[h]=Math.max(c[0],p[h]);var v=(d[1]+d[0])/2,g=[v,v];g[h]=p[h];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:n.rotation,cursorPoint:g,tooltipOption:y[h]}},t})(s2t);function Dle(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var p2t={line:function(e,t,n){var r=d2t([t,n[0]],[t,n[1]],Ple(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:f2t([t-r/2,n[0]],[r,i],Ple(e))}}};function Ple(e){return e.dim==="x"?0:1}var v2t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(ho),Eh=Bs(),m2t=Et;function c3e(e,t,n){if(!Vr.node){var r=t.getZr();Eh(r).records||(Eh(r).records={}),g2t(r,t);var i=Eh(r).records[e]||(Eh(r).records[e]={});i.handler=n}}function g2t(e,t){if(Eh(e).initialized)return;Eh(e).initialized=!0,n("click",Rs(Rle,"click")),n("mousemove",Rs(Rle,"mousemove")),n("globalout",b2t);function n(r,i){e.on(r,function(a){var s=_2t(t);m2t(Eh(e).records,function(l){l&&i(l,a,s.dispatchAction)}),y2t(s.pendings,t)})}}function y2t(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function b2t(e,t,n){e.handler("leave",null,n)}function Rle(e,t,n,r){t.handler(e,n,r)}function _2t(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Mz(e,t){if(!Vr.node){var n=t.getZr(),r=(Eh(n).records||{})[e];r&&(Eh(n).records[e]=null)}}var S2t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var a=r.getComponent("tooltip"),s=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";c3e("axisPointer",i,function(l,c,d){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&d({type:"updateAxisPointer",currTrigger:l,x:c&&c.offsetX,y:c&&c.offsetY})})},t.prototype.remove=function(n,r){Mz("axisPointer",r)},t.prototype.dispose=function(n,r){Mz("axisPointer",r)},t.type="axisPointer",t})($d);function d3e(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),s=jm(a,e);if(s==null||s<0||er(s))return{point:[]};var l=a.getItemGraphicEl(s),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(s)||[];else if(c&&c.dataToPoint)if(e.isStacked){var d=c.getBaseAxis(),h=c.getOtherAxis(d),p=h.dim,v=d.dim,g=p==="x"||p==="radius"?1:0,y=a.mapDimension(v),S=[];S[g]=a.get(y,s),S[1-g]=a.get(a.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(S)||[]}else n=c.dataToPoint(a.getValues(Cr(c.dimensions,function(C){return a.mapDimension(C)}),s))||[];else if(l){var k=l.getBoundingRect().clone();k.applyTransform(l.transform),n=[k.x+k.width/2,k.y+k.height/2]}return{point:n,el:l}}var Mle=Bs();function k2t(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,s=e.dispatchAction||Mo(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){t8(i)&&(i=d3e({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=t8(i),d=a.axesInfo,h=l.axesInfo,p=r==="leave"||t8(i),v={},g={},y={list:[],map:{}},S={showPointer:Rs(C2t,g),showTooltip:Rs(w2t,y)};Et(l.coordSysMap,function(C,x){var E=c||C.containPoint(i);Et(l.coordSysAxesInfo[x],function(_,T){var D=_.axis,P=I2t(d,_);if(!p&&E&&(!d||P)){var M=P&&P.value;M==null&&!c&&(M=D.pointToData(i)),M!=null&&$le(_,M,S,!1,v)}})});var k={};return Et(h,function(C,x){var E=C.linkGroup;E&&!g[x]&&Et(E.axesInfo,function(_,T){var D=g[T];if(_!==C&&D){var P=D.value;E.mapper&&(P=C.axis.scale.parse(E.mapper(P,Ole(_),Ole(C)))),k[C.key]=P}})}),Et(k,function(C,x){$le(h[x],C,S,!0,v)}),E2t(g,h,v),T2t(y,i,e,s),A2t(h,s,n),v}}function $le(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var s=x2t(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&i.seriesIndex==null&&yn(i,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function x2t(e,t){var n=t.axis,r=n.dim,i=e,a=[],s=Number.MAX_VALUE,l=-1;return Et(t.seriesModels,function(c,d){var h=c.getData().mapDimensionsAll(r),p,v;if(c.getAxisTooltipData){var g=c.getAxisTooltipData(h,e,n);v=g.dataIndices,p=g.nestestValue}else{if(v=c.getData().indicesOfNearest(h[0],e,n.type==="category"?.5:null),!v.length)return;p=c.getData().get(h[0],v[0])}if(!(p==null||!isFinite(p))){var y=e-p,S=Math.abs(y);S<=s&&((S=0&&l<0)&&(s=S,l=y,i=p,a.length=0),Et(v,function(k){a.push({seriesIndex:c.seriesIndex,dataIndexInside:k,dataIndex:c.getData().getRawIndex(k)})}))}}),{payloadBatch:a,snapToValue:i}}function C2t(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function w2t(e,t,n,r){var i=n.payloadBatch,a=t.axis,s=a.model,l=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,d=w_(c),h=e.map[d];h||(h=e.map[d]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function E2t(e,t,n){var r=n.axesInfo=[];Et(t,function(i,a){var s=i.axisPointerModel.option,l=e[a];l?(!i.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!i.useHandle&&(s.status="hide"),s.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:s.value})})}function T2t(e,t,n,r){if(t8(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function A2t(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",a=Mle(r)[i]||{},s=Mle(r)[i]={};Et(e,function(d,h){var p=d.axisPointerModel.option;p.status==="show"&&d.triggerEmphasis&&Et(p.seriesDataIndices,function(v){var g=v.seriesIndex+" | "+v.dataIndex;s[g]=v})});var l=[],c=[];Et(a,function(d,h){!s[h]&&c.push(d)}),Et(s,function(d,h){!a[h]&&l.push(d)}),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function I2t(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function Ole(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function t8(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function f3e(e){i3e.registerAxisPointerClass("CartesianAxisPointer",h2t),e.registerComponentModel(v2t),e.registerComponentView(S2t),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!er(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=W3t(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},k2t)}function h3e(e){Gh(o2t),Gh(f3e)}function L2t(e,t){var n=zA(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Js({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var D2t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(ho);function p3e(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function v3e(e){if(Vr.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(d=a==="left"?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(d=a==="top"?225:45)+"deg)");var h=d*Math.PI/180,p=s+i,v=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),g=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-p)/2)*100)/100;l+=";"+a+":-"+g+"px";var y=t+" solid "+i+"px;",S=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+y,"border-right:"+y,"background-color:"+r+";"];return'
'}function N2t(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Vr.transformSupported?","+wG+r:",left"+r+",top"+r),M2t+":"+i}function Ble(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Vr.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=Vr.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+wG+":"+s+";":[["top",0],["left",0],[m3e,s]]}function F2t(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=gi(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),s=e.get("textShadowBlur")||0,l=e.get("textShadowOffsetX")||0,c=e.get("textShadowOffsetY")||0;return a&&s&&t.push("text-shadow:"+l+"px "+c+"px "+s+"px "+a),Et(["decoration","align"],function(d){var h=e.get(d);h&&t.push("text-"+d+":"+h)}),t.join(";")}function j2t(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),c=e.get("shadowOffsetX"),d=e.get("shadowOffsetY"),h=e.getModel("textStyle"),p=P1e(e,"html"),v=c+"px "+d+"px "+s+"px "+l;return r.push("box-shadow:"+v),t&&i&&r.push(N2t(i,n)),a&&r.push("background-color:"+a),Et(["width","color","radius"],function(g){var y="border-"+g,S=s1e(y),k=e.get(S);k!=null&&r.push(y+":"+k+(g==="color"?"":"px"))}),r.push(F2t(h)),p!=null&&r.push("padding:"+zA(p).join("px ")+"px"),r.join(";")+";"}function Nle(e,t,n,r,i){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&sft(e,s,n,r,i)}else{e[0]=r,e[1]=i;var l=a&&a.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var V2t=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Vr.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=n.appendTo,s=a&&(br(a)?document.querySelector(a):d_(a)?a:ni(a)&&a(t.getDom()));Nle(this._styleCoord,i,s,t.getWidth()/2,t.getHeight()/2),(s||t.getDom()).appendChild(r),this._api=t,this._container=s;var l=this;r.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},r.onmousemove=function(c){if(c=c||window.event,!l._enterable){var d=i.handler,h=i.painter.getViewportRoot();Lc(h,c,!0),d.dispatch("mousemove",c)}},r.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=R2t(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=$2t+j2t(t,!this._firstShow,this._longHide)+Ble(a[0],a[1],!0)+("border-color:"+zm(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,a){var s=this.el;if(t==null){s.innerHTML="";return}var l="";if(br(a)&&r.get("trigger")==="item"&&!p3e(r)&&(l=B2t(r,i,a)),br(t))s.innerHTML=t+l;else if(t){s.innerHTML="",er(t)||(t=[t]);for(var c=0;c=0?this._tryShow(a,s):i==="leave"&&this._hide(s))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&s.manuallyShowTip(n,r,i,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,a){if(!(a.from===this.uid||Vr.node||!i.getDom())){var s=Vle(a,i);this._ticket="";var l=a.dataByCoordSys,c=q2t(a,r,i);if(c){var d=c.el.getBoundingRect().clone();d.applyTransform(c.el.transform),this._tryShow({offsetX:d.x+d.width/2,offsetY:d.y+d.height/2,target:c.el,position:a.position,positionDefault:"bottom"},s)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=U2t;h.x=a.x,h.y=a.y,h.update(),Yi(h).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:h},s)}else if(l)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:l,tooltipOption:a.tooltipOption},s);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,a))return;var p=d3e(a,r),v=p.point[0],g=p.point[1];v!=null&&g!=null&&this._tryShow({offsetX:v,offsetY:g,target:p.el,position:a.position,positionDefault:"bottom"},s)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},s))}},t.prototype.manuallyHideTip=function(n,r,i,a){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Vle(a,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,a){var s=a.seriesIndex,l=a.dataIndex,c=r.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||c==null)){var d=r.getSeriesByIndex(s);if(d){var h=d.getData(),p=g4([h.getItemModel(l),d,(d.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:a.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var s=n.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,n);else if(i){var l=Yi(i);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,d;F4(i,function(h){if(Yi(h).dataIndex!=null)return c=h,!0;if(Yi(h).tooltipConfig!=null)return d=h,!0},!0),c?this._showSeriesItemTooltip(n,c,r):d?this._showComponentItemTooltip(n,d,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Mo(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,a=this._tooltipModel,s=[r.offsetX,r.offsetY],l=g4([r.tooltipOption],a),c=this._renderMode,d=[],h=S_("section",{blocks:[],noHeader:!0}),p=[],v=new aF;Et(n,function(x){Et(x.dataByAxis,function(E){var _=i.getComponent(E.axisDim+"Axis",E.axisIndex),T=E.value;if(!(!_||T==null)){var D=l3e(T,_.axis,i,E.seriesDataIndices,E.valueLabelOpt),P=S_("section",{header:D,noHeader:!hf(D),sortBlocks:!0,blocks:[]});h.blocks.push(P),Et(E.seriesDataIndices,function(M){var O=i.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,B=O.getDataParams(L);if(!(B.dataIndex<0)){B.axisDim=E.axisDim,B.axisIndex=E.axisIndex,B.axisType=E.axisType,B.axisId=E.axisId,B.axisValue=yG(_.axis,{value:T}),B.axisValueLabel=D,B.marker=v.makeTooltipMarker("item",zm(B.color),c);var j=Qse(O.formatTooltip(L,!0,null)),H=j.frag;if(H){var U=g4([O],a).get("valueFormatter");P.blocks.push(U?yn({valueFormatter:U},H):H)}j.text&&p.push(j.text),d.push(B)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,y=l.get("order"),S=iae(h,v,c,y,i.get("useUTC"),l.get("textStyle"));S&&p.unshift(S);var k=c==="richText"?` +`];function k_(e,t){return t.type=e,t}function vz(e){return e.type==="section"}function I1e(e){return vz(e)?Cmt:Emt}function L1e(e){if(vz(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Et(e.blocks,function(i){var a=L1e(i);a>=t&&(t=a+ +(r&&(!a||vz(i)&&!i.noHeader)))}),t}return 0}function Cmt(e,t,n,r){var i=t.noHeader,a=Tmt(L1e(t)),s=[],l=t.blocks||[];Gh(!l||er(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var d={valueAsc:"asc",valueDesc:"desc"};if(jm(d,c)){var h=new lmt(d[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}Et(l,function(S,k){var w=t.valueFormatter,x=I1e(S)(w?yn(yn({},e),{valueFormatter:w}):e,S,k>0?a.html:0,r);x!=null&&s.push(x)});var p=e.renderMode==="richText"?s.join(a.richText):mz(r,s.join(""),i?n:a.html);if(i)return p;var v=fz(t.header,"ordinal",e.useUTC),g=A1e(r,e.renderMode).nameStyle,y=T1e(r);return e.renderMode==="richText"?D1e(e,v,g)+a.richText+p:mz(r,'
'+_u(v)+"
"+p,n)}function Emt(e,t,n,r){var i=e.renderMode,a=t.noName,s=t.noValue,l=!t.markerType,c=t.name,d=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(_){return _=er(_)?_:[_],xr(_,function(T,D){return fz(T,er(g)?g[D]:g,d)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":fz(c,"ordinal",d),g=t.valueType,y=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,w=A1e(r,i),x=w.nameStyle,E=w.valueStyle;return i==="richText"?(l?"":p)+(a?"":D1e(e,v,x))+(s?"":Lmt(e,y,S,k,E)):mz(r,(l?"":p)+(a?"":Amt(v,!l,x))+(s?"":Imt(y,S,k,E)),n)}}function iae(e,t,n,r,i,a){if(e){var s=I1e(e),l={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function Tmt(e){return{html:wmt[e],richText:xmt[e]}}function mz(e,t,n){var r='
',i="margin: "+n+"px 0 0",a=T1e(e);return'
'+t+r+"
"}function Amt(e,t,n){var r=t?"margin-left:2px":"";return''+_u(e)+""}function Imt(e,t,n,r){var i=n?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=er(e)?e:[e],''+xr(e,function(s){return _u(s)}).join("  ")+""}function D1e(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Lmt(e,t,n,r,i){var a=[i],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(er(t)?t.join(" "):t,a)}function Dmt(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Um(r)}function P1e(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var uF=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=lge()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,a=bvt({color:n,type:t,renderMode:r,markerId:i});return br(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};er(n)?Et(n,function(a){return yn(r,a)}):yn(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e})();function Pmt(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),s=a.length,l=t.getRawValue(n),c=er(l),d=Dmt(t,n),h,p,v,g;if(s>1||c&&!s){var y=Rmt(l,t,n,a,d);h=y.inlineValues,p=y.inlineValueTypes,v=y.blocks,g=y.inlineValues[0]}else if(s){var S=i.getDimensionInfo(a[0]);g=h=zy(i,n,a[0]),p=S.type}else g=h=c?l[0]:l;var k=RW(t),w=k&&t.name||"",x=i.getName(n),E=r?w:x;return k_("section",{header:w,noHeader:r||!k,sortParam:g,blocks:[k_("nameValue",{markerType:"item",markerColor:d,name:E,noName:!hf(E),value:h,valueType:p,dataIndex:n})].concat(v||[])})}function Rmt(e,t,n,r,i){var a=t.getData(),s=D0(e,function(p,v,g){var y=a.getDimensionInfo(g);return p=p||y&&y.tooltip!==!1&&y.displayName!=null},!1),l=[],c=[],d=[];r.length?Et(r,function(p){h(zy(a,n,p),p)}):Et(e,h);function h(p,v){var g=a.getDimensionInfo(v);!g||g.otherDims.tooltip===!1||(s?d.push(k_("nameValue",{markerType:"subItem",markerColor:i,name:g.displayName,value:p,valueType:g.type})):(l.push(p),c.push(g.type)))}return{inlineValues:l,inlineValueTypes:c,blocks:d}}var Rp=Bs();function ex(e,t){return e.getName(t)||e.getId(t)}var Mmt="__universalTransitionEnabled",Md=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Ib({count:$mt,reset:Bmt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var a=Rp(this).sourceManager=new Smt(this);a.prepareSource();var s=this.getInitialData(n,i);sae(s,this),this.dataTask.context.data=s,Rp(this).dataBeforeProcessed=s,oae(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=__(this),a=i?WA(n):{},s=this.subType;ho.hasClass(s)&&(s+="Series"),ao(n,r.getTheme().get(this.subType)),ao(n,this.getDefaultOption()),tz(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Vy(n,a,i)},t.prototype.mergeOption=function(n,r){n=ao(this.option,n,!0),this.fillDataTextStyle(n.data);var i=__(this);i&&Vy(this.option,n,i);var a=Rp(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);sae(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Rp(this).dataBeforeProcessed=s,oae(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(n){if(n&&!Ou(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var a=this.ecModel,s=nG.prototype.getColorFromPalette.call(this,n,r,i);return s||(s=a.getColorFromPalette(n,r,i)),s},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,s=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l=0&&i.push(s)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[ex(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Mmt])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,a,s=this.option,l=s.selectedMode,c=r.length;if(!(!l||!c)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){Ir(s.selectedMap)||(s.selectedMap={});for(var d=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return ho.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(ho);Df(Md,smt);Df(Md,nG);pge(Md,ho);function oae(e){var t=e.name;RW(e)||(e.name=Omt(e)||t)}function Omt(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return Et(n,function(i){var a=t.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function $mt(e){return e.model.getRawData().count()}function Bmt(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Nmt}function Nmt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sae(e,t){Et(rft(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Rs(Fmt,t))})}function Fmt(e,t){var n=gz(e);return n&&n.setOutputEnd((t||this).count()),t}function gz(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Od=(function(){function e(){this.group=new Qa,this.uid=NA("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();OW(Od);EA(Od);function lG(){var e=Bs();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,s=n.large=!!(r&&r.large),l=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==s||a!==l)&&"reset"}}var R1e=Bs(),jmt=lG(),qc=(function(){function e(){this.group=new Qa,this.uid=NA("viewChart"),this.renderTask=Ib({plan:Vmt,reset:zmt}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var a=t.getData(i&&i.dataType);a&&lae(a,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var a=t.getData(i&&i.dataType);a&&lae(a,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){OA(this.group,t)},e.markUpdateMethod=function(t,n){R1e(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function aae(e,t,n){e&&lz(e)&&(t==="emphasis"?gT:yT)(e,n)}function lae(e,t,n){var r=Vm(e,t),i=t&&t.highlightKey!=null?r0t(t.highlightKey):null;r!=null?Et(Zl(r),function(a){aae(e.getItemGraphicEl(a),n,i)}):e.eachItemGraphicEl(function(a){aae(a,n,i)})}OW(qc);EA(qc);function Vmt(e){return jmt(e.model)}function zmt(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=i&&R1e(i).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,i),Umt[c]}var Umt={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},ET="\0__throttleOriginMethod",uae="\0__throttleRate",cae="\0__throttleType";function qA(e,t,n){var r,i=0,a=0,s=null,l,c,d,h;t=t||0;function p(){a=new Date().getTime(),s=null,e.apply(c,d||[])}var v=function(){for(var g=[],y=0;y=0?p():s=setTimeout(p,-l),i=r};return v.clear=function(){s&&(clearTimeout(s),s=null)},v.debounceNextCall=function(g){h=g},v}function M1e(e,t,n,r){var i=e[t];if(i){var a=i[ET]||i,s=i[cae],l=i[uae];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;i=e[t]=qA(a,n,r==="debounce"),i[ET]=a,i[cae]=r,i[uae]=n}return i}}function yz(e,t){var n=e[t];n&&n[ET]&&(n.clear&&n.clear(),e[t]=n[ET])}var dae=Bs(),fae={itemStyle:m_(Kge,!0),lineStyle:m_(Gge,!0)},Hmt={lineStyle:"stroke",itemStyle:"fill"};function O1e(e,t){var n=e.visualStyleMapper||fae[t];return n||(console.warn("Unknown style type '"+t+"'."),fae.itemStyle)}function $1e(e,t){var n=e.visualDrawType||Hmt[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Wmt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=O1e(e,r),s=a(i),l=i.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=$1e(e,r),d=s[c],h=ii(d)?d:null,p=s.fill==="auto"||s.stroke==="auto";if(!s[c]||h||p){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[c]||(s[c]=v,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ii(s.fill)?v:s.fill,s.stroke=s.stroke==="auto"||ii(s.stroke)?v:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(g,y){var S=e.getDataParams(y),k=yn({},s);k[c]=h(S),g.setItemVisual(y,"style",k)}}}},u4=new xs,Gmt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=O1e(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){u4.option=c[r];var d=i(u4),h=s.ensureUniqueItemVisual(l,"style");yn(h,d),u4.option.decal&&(s.setItemVisual(l,"decal",u4.option.decal),u4.option.decal.dirty=!0),a in d&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},Kmt={performRawSeries:!0,overallReset:function(e){var t=wi();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,a=t.get(i);a||(a={},t.set(i,a)),dae(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},a=n.getData(),s=dae(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=$1e(n,l);a.each(function(d){var h=a.getRawIndex(d);i[h]=d}),r.each(function(d){var h=i[d],p=a.getItemVisual(h,"colorFromPalette");if(p){var v=a.ensureUniqueItemVisual(h,"style"),g=r.getName(d)||d+"",y=r.count();v[c]=n.getColorFromPalette(g,s,y)}})}})}},tx=Math.PI;function qmt(e,t){t=t||{},co(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Qa,r=new Js({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new el({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Js({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(a);var s;return t.showSpinner&&(s=new RA({shape:{startAngle:-tx/2,endAngle:-tx/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:tx*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:tx*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=i.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,d=(e.getWidth()-c*2-(t.showSpinner&&l?10:0)-l)/2-(t.showSpinner&&l?0:5+l/2)+(t.showSpinner?0:l/2)+(l?0:c),h=e.getHeight()/2;t.showSpinner&&s.setShape({cx:d,cy:h}),a.setShape({x:d-c,y:h-c,width:c*2,height:c*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var B1e=(function(){function e(t,n,r,i){this._stageTaskMap=wi(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,a=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,s=a?r.step:null,l=i&&i.modDataCount,c=l!=null?Math.ceil(l/s):null;return{step:s,modBy:c,modDataCount:l}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),s=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,l=t.get("large")&&a>=t.get("largeThreshold"),c=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=r.context={progressiveRender:s,modDataCount:c,large:l}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=wi();t.eachSeries(function(i){var a=i.getProgressive(),s=i.uid;r.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;Et(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),s="";Gh(!(i.reset&&i.overallReset),s),i.reset&&this._createSeriesStageTask(i,a,n,r),i.overallReset&&this._createOverallStageTask(i,a,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var a=t.renderTask,s=a.context;s.model=n,s.ecModel=r,s.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(n,a)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var a=!1,s=this;Et(t,function(c,d){if(!(i.visualType&&i.visualType!==c.visualType)){var h=s._stageTaskMap.get(c.uid),p=h.seriesTaskMap,v=h.overallTask;if(v){var g,y=v.agentStubMap;y.each(function(k){l(i,k)&&(k.dirty(),g=!0)}),g&&v.dirty(),s.updatePayload(v,r);var S=s.getPerformArgs(v,i.block);y.each(function(k){k.perform(S)}),v.perform(S)&&(a=!0)}else p&&p.each(function(k,w){l(i,k)&&k.dirty();var x=s.getPerformArgs(k,i.block);x.skip=!c.performRawSeries&&n.isSeriesFiltered(k.context.model),s.updatePayload(k,r),k.perform(x)&&(a=!0)})}});function l(c,d){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(d.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var a=this,s=n.seriesTaskMap,l=n.seriesTaskMap=wi(),c=t.seriesType,d=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(h):c?r.eachRawSeriesByType(c,h):d&&d(r,i).each(h);function h(p){var v=p.uid,g=l.set(v,s&&s.get(v)||Ib({plan:Qmt,reset:egt,count:ngt}));g.context={model:p,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(p,g)}},e.prototype._createOverallStageTask=function(t,n,r,i){var a=this,s=n.overallTask=n.overallTask||Ib({reset:Ymt});s.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=wi(),d=t.seriesType,h=t.getTargetSeries,p=!0,v=!1,g="";Gh(!t.createOnAllSeries,g),d?r.eachRawSeriesByType(d,y):h?h(r,i).each(y):(p=!1,Et(r.getSeries(),y));function y(S){var k=S.uid,w=c.set(k,l&&l.get(k)||(v=!0,Ib({reset:Xmt,onDirty:Jmt})));w.context={model:S,overallProgress:p},w.agent=s,w.__block=p,a._pipe(S,w)}v&&s.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return ii(t)&&(t={overallReset:t,seriesType:rgt(t)}),t.uid=NA("stageHandler"),n&&(t.visualType=n),t},e})();function Ymt(e){e.overallReset(e.ecModel,e.api,e.payload)}function Xmt(e){return e.overallProgress&&Zmt}function Zmt(){this.agent.dirty(),this.getDownstream().dirty()}function Jmt(){this.agent&&this.agent.dirty()}function Qmt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function egt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Zl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?xr(t,function(n,r){return N1e(r)}):tgt}var tgt=N1e(0);function N1e(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&g===d.length-v.length){var y=d.slice(0,g);y!=="data"&&(n.mainType=y,n[v.toLowerCase()]=c,h=!0)}}l.hasOwnProperty(d)&&(r[d]=c,h=!0),h||(i[d]=c)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,s=r.model,l=r.view;if(!s||!l)return!0;var c=n.cptQuery,d=n.dataQuery;return h(c,s,"mainType")&&h(c,s,"subType")&&h(c,s,"index","componentIndex")&&h(c,s,"name")&&h(c,s,"id")&&h(d,a,"name")&&h(d,a,"dataIndex")&&h(d,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,n.otherQuery,i,a));function h(p,v,g,y){return p[g]==null||v[y||g]===p[g]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),bz=["symbol","symbolSize","symbolRotate","symbolOffset"],mae=bz.concat(["symbolKeepAspect"]),sgt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,s=0;s=0&&im(c)?c:.5;var d=e.createRadialGradient(s,l,0,s,l,c);return d}function Sz(e,t,n){for(var r=t.type==="radial"?Cgt(e,t,n):xgt(e,t,n),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Io(e)?[e]:er(e)?e:null}function U1e(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Tgt(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=xr(n,function(a){return a/i}),r/=i)}return[n,r]}var Agt=new zm(!0);function AT(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function gae(e){return typeof e=="string"&&e!=="none"}function IT(e){var t=e.fill;return t!=null&&t!=="none"}function yae(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function bae(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function kz(e,t,n){var r=vge(t.image,t.__image,n);if(TA(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ift),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Igt(e,t,n,r){var i,a=AT(n),s=IT(n),l=n.strokePercent,c=l<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||Agt,p=t.__dirty;if(!r){var v=n.fill,g=n.stroke,y=s&&!!v.colorStops,S=a&&!!g.colorStops,k=s&&!!v.image,w=a&&!!g.image,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0;(y||S)&&(D=t.getBoundingRect()),y&&(x=p?Sz(e,v,D):t.__canvasFillGradient,t.__canvasFillGradient=x),S&&(E=p?Sz(e,g,D):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),k&&(_=p||!t.__canvasFillPattern?kz(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=_),w&&(T=p||!t.__canvasStrokePattern?kz(e,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),y?e.fillStyle=x:k&&(_?e.fillStyle=_:s=!1),S?e.strokeStyle=E:w&&(T?e.strokeStyle=T:a=!1)}var P=t.getGlobalScale();h.setScale(P[0],P[1],t.segmentIgnoreThreshold);var M,$;e.setLineDash&&n.lineDash&&(i=U1e(t),M=i[0],$=i[1]);var L=!0;(d||p&V1)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),L=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),L&&h.rebuildPath(e,c?l:1),M&&(e.setLineDash(M),e.lineDashOffset=$),r||(n.strokeFirst?(a&&bae(e,n),s&&yae(e,n)):(s&&yae(e,n),a&&bae(e,n))),M&&e.setLineDash([])}function Lgt(e,t,n){var r=t.__image=vge(n.image,t.__image,t,t.onload);if(!(!r||!TA(r))){var i=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),c=r.width/r.height;if(s==null&&l!=null?s=l*c:l==null&&s!=null?l=s/c:s==null&&l==null&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var d=n.sx||0,h=n.sy||0;e.drawImage(r,d,h,n.sWidth,n.sHeight,i,a,s,l)}else if(n.sx&&n.sy){var d=n.sx,h=n.sy,p=s-d,v=l-h;e.drawImage(r,d,h,p,v,i,a,s,l)}else e.drawImage(r,i,a,s,l)}}function Dgt(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||Fm,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=U1e(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(AT(n)&&e.strokeText(i,n.x,n.y),IT(n)&&e.fillText(i,n.x,n.y)):(IT(n)&&e.fillText(i,n.x,n.y),AT(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var _ae=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sae=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function H1e(e,t,n,r,i){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){wu(e,i),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?km.opacity:s}(r||t.blend!==n.blend)&&(a||(wu(e,i),a=!0),e.globalCompositeOperation=t.blend||km.blend);for(var l=0;l<_ae.length;l++){var c=_ae[l];(r||t[c]!==n[c])&&(a||(wu(e,i),a=!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(wu(e,i),a=!0),e.shadowColor=t.shadowColor||km.shadowColor),a}function kae(e,t,n,r,i){var a=x_(t,i.inHover),s=r?null:n&&x_(n,i.inHover)||{};if(a===s)return!1;var l=H1e(e,a,s,r,i);if((r||a.fill!==s.fill)&&(l||(wu(e,i),l=!0),gae(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==s.stroke)&&(l||(wu(e,i),l=!0),gae(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==s.opacity)&&(l||(wu(e,i),l=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth,d=c/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==d&&(l||(wu(e,i),l=!0),e.lineWidth=d)}for(var h=0;h0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[cl]){if(this._disposed){this.id;return}var a,s,l;if(Ir(r)&&(i=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[cl]=!0,!this._model||r){var c=new Fvt(this._api),d=this._theme,h=this._model=new rG;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,d,this._locale,c)}this._model.setOption(n,{replaceMerge:s},Cz);var p={seriesTransition:l,optionChanged:!0};if(i)this[du]={silent:a,updateParams:p},this[cl]=!1,this.getZr().wakeUp();else{try{E1(this),Mp.update.call(this,null,p)}catch(v){throw this[du]=null,this[cl]=!1,v}this._ssr||this._zr.flush(),this[du]=null,this[cl]=!1,c4.call(this,a),d4.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||zr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(zr.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Et(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,a=[],s=this;Et(r,function(c){i.eachComponent({mainType:c},function(d){var h=s._componentsMap[d.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return Et(a,function(c){c.group.ignore=!1}),l},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,a=Math.min,s=Math.max,l=1/0;if($ae[i]){var c=l,d=l,h=-l,p=-l,v=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();Et(Db,function(E,_){if(E.group===i){var T=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(zi(n)),D=E.getDom().getBoundingClientRect();c=a(D.left,c),d=a(D.top,d),h=s(D.right,h),p=s(D.bottom,p),v.push({dom:T,left:D.left,top:D.top})}}),c*=g,d*=g,h*=g,p*=g;var y=h-c,S=p-d,k=g3.createCanvas(),w=joe(k,{renderer:r?"svg":"canvas"});if(w.resize({width:y,height:S}),r){var x="";return Et(v,function(E){var _=E.left-c,T=E.top-d;x+=''+E.dom+""}),w.painter.getSvgRoot().innerHTML=x,n.connectedBackgroundColor&&w.painter.setBackgroundColor(n.connectedBackgroundColor),w.refreshImmediately(),w.painter.toDataURL()}else return n.connectedBackgroundColor&&w.add(new Js({shape:{x:0,y:0,width:y,height:S},style:{fill:n.connectedBackgroundColor}})),Et(v,function(E){var _=new G0({style:{x:E.left*g-c,y:E.top*g-d,image:E.dom}});w.add(_)}),w.refreshImmediately(),k.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return pF(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return pF(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,a,s=BN(i,n);return Et(s,function(l,c){c.indexOf("Models")>=0&&Et(l,function(d){var h=d.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(c==="seriesModels"){var p=this._chartsMap[d.__viewId];p&&p.containPoint&&(a=a||p.containPoint(r,d))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var i=this._model,a=BN(i,n,{defaultMainType:"series"}),s=a.seriesModel,l=s.getData(),c=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?l.indexOfRawIndex(a.dataIndex):null;return c!=null?lgt(l,c,r):ugt(l,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;Et(n1t,function(r){var i=function(a){var s=n.getModel(),l=a.target,c,d=r==="globalout";if(d?c={}:l&&F4(l,function(y){var S=Yi(y);if(S&&S.dataIndex!=null){var k=S.dataModel||s.getSeriesByIndex(S.seriesIndex);return c=k&&k.getDataParams(S.dataIndex,S.dataType,l)||{},!0}else if(S.eventData)return c=yn({},S.eventData),!0},!0),c){var h=c.componentType,p=c.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=c.seriesIndex);var v=h&&p!=null&&s.getComponent(h,p),g=v&&n[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];c.event=a,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:v,view:g},n.trigger(r,c)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),Et(Lb,function(r,i){n._messageCenter.on(i,function(a){this.trigger(i,a)},n)}),Et(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),dgt(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&fge(this.getDom(),dG,"");var r=this,i=r._api,a=r._model;Et(r._componentsViews,function(s){s.dispose(a,i)}),Et(r._chartsViews,function(s){s.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Db[r.id]},t.prototype.resize=function(n){if(!this[cl]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=n&&n.silent;this[du]&&(a==null&&(a=this[du].silent),i=!0,this[du]=null),this[cl]=!0;try{i&&E1(this),Mp.update.call(this,{type:"resize",animation:yn({duration:0},n&&n.animation)})}catch(s){throw this[cl]=!1,s}this[cl]=!1,c4.call(this,a),d4.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Ir(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!Ez[n]){var i=Ez[n](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=yn({},n);return r.type=Lb[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Ir(r)||(r={silent:!!r}),!!LT[n.type]&&this._model){if(this[cl]){this._pendingActions.push(n);return}var i=r.silent;mF.call(this,n,i);var a=r.flush;a?this._zr.flush():a!==!1&&zr.browser.weChat&&this._throttledZrFlush(),c4.call(this,i),d4.call(this,i)}},t.prototype.updateLabelLayout=function(){_d.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){E1=function(p){var v=p._scheduler;v.restorePipelines(p._model),v.prepareStageTasks(),hF(p,!0),hF(p,!1),v.plan()},hF=function(p,v){for(var g=p._model,y=p._scheduler,S=v?p._componentsViews:p._chartsViews,k=v?p._componentsMap:p._chartsMap,w=p._zr,x=p._api,E=0;Ev.get("hoverLayerThreshold")&&!zr.node&&!zr.worker&&v.eachSeries(function(k){if(!k.preventUsingHoverLayer){var w=p._chartsMap[k.__viewId];w.__alive&&w.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function s(p,v){var g=p.get("blendMode")||null;v.eachRendered(function(y){y.isGroup||(y.style.blend=g)})}function l(p,v){if(!p.preventAutoZ){var g=p.get("z")||0,y=p.get("zlevel")||0;v.eachRendered(function(S){return c(S,g,y,-1/0),!0})}}function c(p,v,g,y){var S=p.getTextContent(),k=p.getTextGuideLine(),w=p.isGroup;if(w)for(var x=p.childrenRef(),E=0;E0?{duration:S,delay:g.get("delay"),easing:g.get("easing")}:null;v.eachRendered(function(w){if(w.states&&w.states.emphasis){if(Eb(w))return;if(w instanceof vo&&i0t(w),w.__dirty){var x=w.prevStates;x&&w.useStates(x)}if(y){w.stateTransition=k;var E=w.getTextContent(),_=w.getTextGuideLine();E&&(E.stateTransition=k),_&&(_.stateTransition=k)}w.__dirty&&i(w)}})}Mae=function(p){return new((function(v){Nn(g,v);function g(){return v!==null&&v.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(y){for(;y;){var S=y.__ecComponentInfo;if(S!=null)return p._model.getComponent(S.mainType,S.index);y=y.parent}},g.prototype.enterEmphasis=function(y,S){gT(y,S),Tc(p)},g.prototype.leaveEmphasis=function(y,S){yT(y,S),Tc(p)},g.prototype.enterBlur=function(y){qpt(y),Tc(p)},g.prototype.leaveBlur=function(y){Age(y),Tc(p)},g.prototype.enterSelect=function(y){Ige(y),Tc(p)},g.prototype.leaveSelect=function(y){Lge(y),Tc(p)},g.prototype.getModel=function(){return p.getModel()},g.prototype.getViewOfComponentModel=function(y){return p.getViewOfComponentModel(y)},g.prototype.getViewOfSeriesModel=function(y){return p.getViewOfSeriesModel(y)},g})(p1e))(p)},oye=function(p){function v(g,y){for(var S=0;S=0)){Bae.push(n);var a=B1e.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function dye(e,t){Ez[e]=t}function c1t(e,t,n){var r=Vgt("registerMap");r&&r(e,t,n)}var d1t=vmt;lg(uG,Wmt);lg(YA,Gmt);lg(YA,Kmt);lg(uG,sgt);lg(YA,agt);lg(Q1e,Fgt);uye(m1e);cye(Hgt,Zvt);dye("default",qmt);_3({type:wm,event:wm,update:wm},Du);_3({type:XE,event:XE,update:XE},Du);_3({type:wb,event:wb,update:wb},Du);_3({type:ZE,event:ZE,update:ZE},Du);_3({type:xb,event:xb,update:xb},Du);lye("light",igt);lye("dark",V1e);function f4(e){return e==null?0:e.length||1}function Nae(e){return e}var f1t=(function(){function e(t,n,r,i,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||Nae,this._newKeyGetter=i||Nae,this.context=a,this._diffModeMultiple=s==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),a=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var s=0;s1){var h=c.shift();c.length===1&&(r[l]=c[0]),this._update&&this._update(h,s)}else d===1?(r[l]=null,this._update&&this._update(c,s)):this._remove&&this._remove(s)}this._performRestAdd(a,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},a=[],s=[];this._initIndexMap(t,r,a,"_oldKeyGetter"),this._initIndexMap(n,i,s,"_newKeyGetter");for(var l=0;l1&&v===1)this._updateManyToOne&&this._updateManyToOne(h,d),i[c]=null;else if(p===1&&v>1)this._updateOneToMany&&this._updateOneToMany(h,d),i[c]=null;else if(p===1&&v===1)this._update&&this._update(h,d),i[c]=null;else if(p>1&&v>1)this._updateManyToMany&&this._updateManyToMany(h,d),i[c]=null;else if(p>1)for(var g=0;g1)for(var l=0;l30}var h4=Ir,Op=xr,b1t=typeof Int32Array>"u"?Array:Int32Array,_1t="e\0\0",Fae=-1,S1t=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],k1t=["_approximateExtent"],jae,ax,p4,v4,bF,m4,_F,gye=(function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;hye(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var a={},s=[],l={},c=!1,d={},h=0;h=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,s=this._idList,l=i.getSource().sourceFormat,c=l===id;if(c&&!i.pure)for(var d=[],h=t;h0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var a=i[n];return a==null&&(a=this.getVisual(n),er(a)?a=a.slice():h4(a)&&(a=yn({},a)),i[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,h4(n)?yn(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){h4(t)?yn(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?yn(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Npt(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){Et(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Op(this.dimensions,this._getDimInfo,this),this.hostModel)),bF(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ii(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(wW(arguments)))})},e.internalField=(function(){jae=function(t){var n=t._invertedIndicesMap;Et(n,function(r,i){var a=t._dimInfos[i],s=a.ordinalMeta,l=t._store;if(s){r=n[i]=new b1t(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),i[n]=c}}})(),e})();function yye(e,t){oG(e)||(e=g1e(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=wi(),a=[],s=x1t(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&mye(s),c=r===e.dimensionsDefine,d=c?vye(e):pye(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=wi(h),v=new C1e(s),g=0;g0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function x1t(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Et(t,function(a){var s;Ir(a)&&(s=a.dimsDef)&&(i=Math.max(i,s.length))}),i}function C1t(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var E1t=(function(){function e(t){this.coordSysDims=[],this.axisMap=wi(),this.categoryAxisMap=wi(),this.coordSysName=t}return e})();function T1t(e){var t=e.get("coordinateSystem"),n=new E1t(t),r=A1t[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var A1t={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Td).models[0],a=e.getReferringComponents("yAxis",Td).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),T1(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),T1(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Td).models[0];t.coordSysDims=["single"],n.set("single",i),T1(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Td).models[0],a=i.findAxisModel("radiusAxis"),s=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),T1(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),T1(s)&&(r.set("angle",s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=a.dimensions.slice();Et(a.parallelAxisIndex,function(l,c){var d=i.getComponent("parallelAxis",l),h=s[c];n.set(h,d),T1(d)&&(r.set(h,d),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function T1(e){return e.get("type")==="category"}function I1t(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,a,s,l;L1t(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),d,h,p,v;if(Et(a,function(x,E){br(x)&&(a[E]=x={name:x}),c&&!x.isExtraCoord&&(!r&&!d&&x.ordinalMeta&&(d=x),!h&&x.type!=="ordinal"&&x.type!=="time"&&(!i||i===x.coordDim)&&(h=x))}),h&&!r&&!d&&(r=!0),h){p="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,d&&(d.createInvertedIndices=!0);var g=h.coordDim,y=h.type,S=0;Et(a,function(x){x.coordDim===g&&S++});var k={name:p,coordDim:g,coordDimIndex:S,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},w={name:v,coordDim:v,coordDimIndex:S+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(k.storeDimIndex=l.ensureCalculationDimension(v,y),w.storeDimIndex=l.ensureCalculationDimension(p,y)),s.appendCalculationDimension(k),s.appendCalculationDimension(w)):(a.push(k),a.push(w))}return{stackedDimension:h&&h.name,stackedByDimension:d&&d.name,isStackedByIndex:r,stackedOverDimension:v,stackResultDimension:p}}function L1t(e){return!hye(e.schema)}function Hy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function D1t(e,t){return Hy(e,t)?e.getCalculationInfo("stackResultDimension"):t}function P1t(e,t){var n=e.get("coordinateSystem"),r=iG.get(n),i;return t&&t.coordSysDims&&(i=xr(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=v1t(c)}return s})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function R1t(e,t,n){var r,i;return n&&Et(e,function(a,s){var l=a.coordDim,c=n.categoryAxisMap.get(l);c&&(r==null&&(r=s),a.ordinalMeta=c.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function pG(e,t,n){n=n||{};var r=t.getSourceManager(),i,a=!1;i=r.getSource(),a=i.sourceFormat===id;var s=T1t(t),l=P1t(t,s),c=n.useEncodeDefaulter,d=ii(c)?c:c?Rs(Evt,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!a},p=yye(i,h),v=R1t(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),y=I1t(t,{schema:p,store:g}),S=new gye(p,t);S.setCalculationInfo(y);var k=v!=null&&M1t(i)?function(w,x,E,_){return _===v?E:this.defaultDimValueGetter(w,x,E,_)}:null;return S.hasItemOption=!1,S.initData(a?i:g,null,k),S}function M1t(e){if(e.sourceFormat===id){var t=O1t(e.data||[]);return!er(gS(t))}}function O1t(e){for(var t=0;tn[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();EA(Mf);var $1t=0,Tz=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$1t}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&xr(r,B1t);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!br(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=wi(this.categories))},e})();function B1t(e){return Ir(e)&&e.value!=null?e.value:e+""}function Az(e){return e.type==="interval"||e.type==="log"}function N1t(e,t,n,r){var i={},a=e[1]-e[0],s=i.interval=age(a/t);n!=null&&sr&&(s=i.interval=r);var l=i.intervalPrecision=bye(s),c=i.niceTickExtent=[Zs(Math.ceil(e[0]/s)*s,l),Zs(Math.floor(e[1]/s)*s,l)];return F1t(c,e),i}function SF(e){var t=Math.pow(10,PW(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Zs(n*t)}function bye(e){return Eh(e)+2}function Vae(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function F1t(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Vae(e,0,t),Vae(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function XA(e,t){return e>=t[0]&&e<=t[1]}function ZA(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function JA(e,t){return e*(t[1]-t[0])+t[0]}var vG=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new Tz({})),er(i)&&(i=new Tz({categories:xr(i,function(a){return Ir(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:br(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),XA(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),ZA(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(JA(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,c=Math.min(l,r.length);s=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Mf);Mf.registerClass(vG);var Vv=Zs,S3=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return XA(n,this._extent)},t.prototype.normalize=function(n){return ZA(n,this._extent)},t.prototype.scale=function(n){return JA(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=bye(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,a=this._niceExtent,s=this._intervalPrecision,l=[];if(!r)return l;var c=1e4;i[0]c)return[];var h=l.length?l[l.length-1].value:a[1];return i[1]>h&&(n?l.push({value:Vv(h+r,s)}):l.push({value:i[1]})),l},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),s=1;sa[0]&&g0&&(a=a===null?l:Math.min(a,l))}n[r]=a}}return n}function wye(e){var t=z1t(e),n=[];return Et(e,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),s=a.getExtent(),l;if(a.type==="category")l=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var c=a.dim+"_"+a.index,d=t[c],h=Math.abs(s[1]-s[0]),p=a.scale.getExtent(),v=Math.abs(p[1]-p[0]);l=d?h/v*d:h}else{var g=r.getData();l=Math.abs(s[1]-s[0])/g.count()}var y=ts(r.get("barWidth"),l),S=ts(r.get("barMaxWidth"),l),k=ts(r.get("barMinWidth")||(Cye(r)?.5:1),l),w=r.get("barGap"),x=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:y,barMaxWidth:S,barMinWidth:k,barGap:w,barCategoryGap:x,axisKey:mG(a),stackId:Sye(r)})}),U1t(n)}function U1t(e){var t={};Et(e,function(r,i){var a=r.axisKey,s=r.bandWidth,l=t[a]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=l.stacks;t[a]=l;var d=r.stackId;c[d]||l.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=r.barWidth;h&&!c[d].width&&(c[d].width=h,h=Math.min(l.remainedWidth,h),l.remainedWidth-=h);var p=r.barMaxWidth;p&&(c[d].maxWidth=p);var v=r.barMinWidth;v&&(c[d].minWidth=v);var g=r.barGap;g!=null&&(l.gap=g);var y=r.barCategoryGap;y!=null&&(l.categoryGap=y)});var n={};return Et(t,function(r,i){n[i]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=ns(a).length;l=Math.max(35-c*4,15)+"%"}var d=ts(l,s),h=ts(r.gap,1),p=r.remainedWidth,v=r.autoWidthCount,g=(p-d)/(v+(v-1)*h);g=Math.max(g,0),Et(a,function(w){var x=w.maxWidth,E=w.minWidth;if(w.width){var _=w.width;x&&(_=Math.min(_,x)),E&&(_=Math.max(_,E)),w.width=_,p-=_+h*_,v--}else{var _=g;x&&x<_&&(_=Math.min(x,p)),E&&E>_&&(_=E),_!==g&&(w.width=_,p-=_+h*_,v--)}}),g=(p-d)/(v+(v-1)*h),g=Math.max(g,0);var y=0,S;Et(a,function(w,x){w.width||(w.width=g),S=w,y+=w.width*(1+h)}),S&&(y-=S.width*h);var k=-y/2;Et(a,function(w,x){n[i][x]=n[i][x]||{bandWidth:s,offset:k,width:w.width},k+=w.width*(1+h)})}),n}function H1t(e,t,n){if(e&&t){var r=e[mG(t)];return r}}function W1t(e,t){var n=kye(e,t),r=wye(n);Et(n,function(i){var a=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),c=Sye(i),d=r[mG(l)][c],h=d.offset,p=d.width;a.setLayout({bandWidth:d.bandWidth,offset:h,size:p})})}function G1t(e){return{seriesType:e,plan:lG(),reset:function(t){if(xye(t)){var n=t.getData(),r=t.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=n.getDimensionIndex(n.mapDimension(i.dim)),c=t.get("showBackground",!0),d=n.mapDimension(a.dim),h=n.getCalculationInfo("stackResultDimension"),p=Hy(n,d)&&!!n.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),g=K1t(i,a),y=Cye(t),S=t.get("barMinHeight")||0,k=h&&n.getDimensionIndex(h),w=n.getLayout("size"),x=n.getLayout("offset");return{progress:function(E,_){for(var T=E.count,D=y&&Th(T*3),P=y&&c&&Th(T*3),M=y&&Th(T),$=r.master.getRect(),L=v?$.width:$.height,B,j=_.getStore(),H=0;(B=E.next())!=null;){var U=j.get(p?k:s,B),W=j.get(l,B),K=g,oe=void 0;p&&(oe=+U-j.get(s,B));var ae=void 0,ee=void 0,Y=void 0,Q=void 0;if(v){var ie=r.dataToPoint([U,W]);if(p){var q=r.dataToPoint([oe,W]);K=q[0]}ae=K,ee=ie[1]+x,Y=ie[0]-K,Q=w,Math.abs(Y)0?n:1:n))}var q1t=function(e,t,n,r){for(;n>>1;e[i][1]i&&(this._approxInterval=i);var l=lx.length,c=Math.min(q1t(lx,this._approxInterval,0,l),l-1);this._interval=lx[c][1],this._minLevelUnit=lx[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return Io(n)?n:+Kh(n)},t.prototype.contain=function(n){return XA(this.parse(n),this._extent)},t.prototype.normalize=function(n){return ZA(this.parse(n),this._extent)},t.prototype.scale=function(n){return JA(n,this._extent)},t.type="time",t})(S3),lx=[["second",ZW],["minute",JW],["hour",Tb],["quarter-day",Tb*6],["half-day",Tb*12],["day",Vc*1.2],["half-week",Vc*3.5],["week",Vc*7],["month",Vc*31],["quarter",Vc*95],["half-year",Dse/2],["year",Dse]];function Y1t(e,t,n,r){var i=Kh(t),a=Kh(n),s=function(y){return Rse(i,y,r)===Rse(a,y,r)},l=function(){return s("year")},c=function(){return l()&&s("month")},d=function(){return c()&&s("day")},h=function(){return d()&&s("hour")},p=function(){return h()&&s("minute")},v=function(){return p()&&s("second")},g=function(){return v()&&s("millisecond")};switch(e){case"year":return l();case"month":return c();case"day":return d();case"hour":return h();case"minute":return p();case"second":return v();case"millisecond":return g()}}function X1t(e,t){return e/=Vc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Z1t(e){var t=30*Vc;return e/=t,e>6?6:e>3?3:e>2?2:1}function J1t(e){return e/=Tb,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function zae(e,t){return e/=t?JW:ZW,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Q1t(e){return age(e)}function eyt(e,t,n){var r=new Date(e);switch(by(t)){case"year":case"month":r[Qge(n)](0);case"day":r[e1e(n)](1);case"hour":r[t1e(n)](0);case"minute":r[n1e(n)](0);case"second":r[r1e(n)](0),r[i1e(n)](0)}return r.getTime()}function tyt(e,t,n,r){var i=1e4,a=Zge,s=0;function l(L,B,j,H,U,W,K){for(var oe=new Date(B),ae=B,ee=oe[H]();ae1&&W===0&&j.unshift({value:j[0].value-ae})}}for(var W=0;W=r[0]&&x<=r[1]&&p++)}var E=(r[1]-r[0])/t;if(p>E*1.5&&v>E/1.5||(d.push(k),p>E||e===a[g]))break}h=[]}}}for(var _=Ua(xr(d,function(L){return Ua(L,function(B){return B.value>=r[0]&&B.value<=r[1]&&!B.notAdd})}),function(L){return L.length>0}),T=[],D=_.length-1,g=0;g<_.length;++g)for(var P=_[g],M=0;M0;)a*=10;var l=[Zs(iyt(r[0]/a)*a),Zs(ryt(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){Pb.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=hd(n)/hd(this.base),XA(n,this._extent)},t.prototype.normalize=function(n){return n=hd(n)/hd(this.base),ZA(n,this._extent)},t.prototype.scale=function(n){return n=JA(n,this._extent),ux(this.base,n)},t.type="log",t})(Mf),Tye=gG.prototype;Tye.getMinorTicks=Pb.getMinorTicks;Tye.getLabel=Pb.getLabel;function cx(e,t){return nyt(e,Eh(t))}Mf.registerClass(gG);var oyt=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&c>0&&!d&&(l=0),l<0&&c<0&&!h&&(c=0));var v=this._determinedMin,g=this._determinedMax;return v!=null&&(l=v,d=!0),g!=null&&(c=g,h=!0),{min:l,max:c,minFixed:d,maxFixed:h,isBlank:p}},e.prototype.modifyDataMinMax=function(t,n){this[ayt[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=syt[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),syt={min:"_determinedMin",max:"_determinedMax"},ayt={min:"_dataMin",max:"_dataMax"};function lyt(e,t,n){var r=e.rawExtentInfo;return r||(r=new oyt(e,t,n),e.rawExtentInfo=r,r)}function dx(e,t){return t==null?null:iT(t)?NaN:e.parse(t)}function Aye(e,t){var n=e.type,r=lyt(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,s=t.ecModel;if(s&&n==="time"){var l=kye("bar",s),c=!1;if(Et(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var d=wye(l),h=uyt(i,a,t,d);i=h.min,a=h.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function uyt(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),s=H1t(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;Et(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;Et(s,function(g){c=Math.max(g.offset+g.width,c)}),l=Math.abs(l),c=Math.abs(c);var d=l+c,h=t-e,p=1-(l+c)/a,v=h/p-h;return t+=v*(c/d),e-=v*(l/d),{min:e,max:t}}function Hae(e,t){var n=t,r=Aye(e,n),i=r.extent,a=n.get("splitNumber");e instanceof gG&&(e.base=n.get("logBase"));var s=e.type,l=n.get("interval"),c=s==="interval"||s==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get("minInterval"):null,maxInterval:c?n.get("maxInterval"):null}),l!=null&&e.setInterval&&e.setInterval(l)}function cyt(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new vG({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Eye({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mf.getClass(t)||S3)}}function dyt(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function k3(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?(function(r){return function(i,a){return e.scale.getFormattedLabel(i,a,r)}})(t):br(t)?(function(r){return function(i){var a=e.scale.getLabel(i),s=r.replace("{value}",a??"");return s}})(t):ii(t)?(function(r){return function(i,a){return n!=null&&(a=i.value-n),r(yG(e,i),a,i.level!=null?{level:i.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function yG(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function fyt(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,a=n.getExtent();n instanceof vG?i=n.count():(r=n.getTicks(),i=r.length);var s=e.getLabelModel(),l=k3(e),c,d=1;i>40&&(d=Math.ceil(i/40));for(var h=0;h=0||(Wae.push(e),ii(e)&&(e={install:e}),e.install(myt))}var C_=Bs();function Lye(e,t){var n=xr(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function gyt(e){var t=e.getLabelModel().get("customValues");if(t){var n=k3(e),r=e.scale.getExtent(),i=Lye(e,t),a=Ua(i,function(s){return s>=r[0]&&s<=r[1]});return{labels:xr(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?byt(e):Syt(e)}function yyt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=Lye(e,n);return{ticks:Ua(i,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?_yt(e,t):{ticks:xr(e.scale.getTicks(),function(a){return a.value})}}function byt(e){var t=e.getLabelModel(),n=Dye(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Dye(e,t){var n=Pye(e,"labels"),r=bG(t),i=Rye(n,r);if(i)return i;var a,s;return ii(r)?a=$ye(e,r):(s=r==="auto"?kyt(e):r,a=Oye(e,s)),Mye(n,r,{labels:a,labelCategoryInterval:s})}function _yt(e,t){var n=Pye(e,"ticks"),r=bG(t),i=Rye(n,r);if(i)return i;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ii(r))a=$ye(e,r,!0);else if(r==="auto"){var l=Dye(e,e.getLabelModel());s=l.labelCategoryInterval,a=xr(l.labels,function(c){return c.tickValue})}else s=r,a=Oye(e,s,!0);return Mye(n,r,{ticks:a,tickCategoryInterval:s})}function Syt(e){var t=e.scale.getTicks(),n=k3(e);return{labels:xr(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function Pye(e,t){return C_(e)[t]||(C_(e)[t]=[])}function Rye(e,t){for(var n=0;n40&&(l=Math.max(1,Math.floor(s/40)));for(var c=a[0],d=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(d*Math.cos(r)),p=Math.abs(d*Math.sin(r)),v=0,g=0;c<=a[1];c+=l){var y=0,S=0,k=LW(n({value:c}),t.font,"center","top");y=k.width*1.3,S=k.height*1.3,v=Math.max(v,y,7),g=Math.max(g,S,7)}var w=v/h,x=g/p;isNaN(w)&&(w=1/0),isNaN(x)&&(x=1/0);var E=Math.max(0,Math.floor(Math.min(w,x))),_=C_(e.model),T=e.getExtent(),D=_.lastAutoInterval,P=_.lastTickCount;return D!=null&&P!=null&&Math.abs(D-E)<=1&&Math.abs(P-s)<=1&&D>E&&_.axisExtent0===T[0]&&_.axisExtent1===T[1]?E=D:(_.lastTickCount=s,_.lastAutoInterval=E,_.axisExtent0=T[0],_.axisExtent1=T[1]),E}function xyt(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Oye(e,t,n){var r=k3(e),i=e.scale,a=i.getExtent(),s=e.getLabelModel(),l=[],c=Math.max((t||0)+1,1),d=a[0],h=i.count();d!==0&&c>1&&h/c>2&&(d=Math.round(Math.ceil(d/c)*c));var p=Iye(e),v=s.get("showMinLabel")||p,g=s.get("showMaxLabel")||p;v&&d!==a[0]&&S(a[0]);for(var y=d;y<=a[1];y+=c)S(y);g&&y-c!==a[1]&&S(a[1]);function S(k){var w={value:k};l.push(n?k:{formattedLabel:r(w),rawLabel:i.getLabel(w),tickValue:k})}return l}function $ye(e,t,n){var r=e.scale,i=k3(e),a=[];return Et(r.getTicks(),function(s){var l=r.getLabel(s),c=s.value;t(s.value,l)&&a.push(n?c:{formattedLabel:i(s),rawLabel:l,tickValue:c})}),a}var Gae=[0,1],Cyt=(function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return _ht(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),Kae(r,i.count())),ez(t,Gae,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),Kae(r,i.count()));var a=ez(t,r,Gae,n);return this.scale.scale(a)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=yyt(this,n),i=r.ticks,a=xr(i,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return Eyt(this,a,s,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=xr(r,function(a){return xr(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return i},e.prototype.getViewLabels=function(){return gyt(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return wyt(this)},e})();function Kae(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Eyt(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),s,l;if(i===1)t[0].coord=a[0],s=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var c=t[i-1].tickValue-t[0].tickValue,d=(t[i-1].coord-t[0].coord)/c;Et(t,function(g){g.coord-=d/2});var h=e.scale.getExtent();l=1+h[1]-t[i-1].tickValue,s={coord:t[i-1].coord+d*l,tickValue:h[1]+1},t.push(s)}var p=a[0]>a[1];v(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],s.coord)&&(r?s.coord=a[1]:t.pop()),r&&v(s.coord,a[1])&&t.push({coord:a[1]});function v(g,y){return g=Zs(g),y=Zs(y),p?g>y:g0){t=t/180*Math.PI,a0.fromArray(e[0]),_s.fromArray(e[1]),Va.fromArray(e[2]),Gr.sub(l0,a0,_s),Gr.sub(uf,Va,_s);var n=l0.len(),r=uf.len();if(!(n<.001||r<.001)){l0.scale(1/n),uf.scale(1/r);var i=l0.dot(uf),a=Math.cos(t);if(a1&&Gr.copy(zl,Va),zl.toArray(e[1])}}}}function Ayt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,a0.fromArray(e[0]),_s.fromArray(e[1]),Va.fromArray(e[2]),Gr.sub(l0,_s,a0),Gr.sub(uf,Va,_s);var r=l0.len(),i=uf.len();if(!(r<.001||i<.001)){l0.scale(1/r),uf.scale(1/i);var a=l0.dot(t),s=Math.cos(n);if(a=c)Gr.copy(zl,Va);else{zl.scaleAndAdd(uf,l/Math.tan(Math.PI/2-h));var p=Va.x!==_s.x?(zl.x-_s.x)/(Va.x-_s.x):(zl.y-_s.y)/(Va.y-_s.y);if(isNaN(p))return;p<0?Gr.copy(zl,_s):p>1&&Gr.copy(zl,Va)}zl.toArray(e[1])}}}}function kF(e,t,n,r){var i=n==="normal",a=i?e:e.ensureState(n);a.ignore=t;var s=r.get("smooth");s&&s===!0&&(s=.3),a.shape=a.shape||{},s>0&&(a.shape.smooth=s);var l=r.getModel("lineStyle").getLineStyle();i?e.useStyle(l):a.style=l}function Iyt(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=FV(r[0],r[1]),a=FV(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var s=Math.min(i,a)*n,l=mN([],r[1],r[0],s/i),c=mN([],r[1],r[2],s/a),d=mN([],l,c,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],d[0],d[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var h=1;h0){E($*M,0,s);var L=$+D;L<0&&_(-L*M,1)}else _(-D*M,1)}}function E(D,P,M){D!==0&&(d=!0);for(var $=P;$0)for(var L=0;L0;L--){var U=M[L-1]*H;E(-U,L,s)}}}function T(D){var P=D<0?-1:1;D=Math.abs(D);for(var M=Math.ceil(D/(s-1)),$=0;$0?E(M,0,$+1):E(-M,s-$-1,s),D-=M,D<=0)return}return d}function Myt(e,t,n,r){return Ryt(e,"y","height",t,n)}function Oyt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new lo(0,0,0,0);function r(S){if(!S.ignore){var k=S.ensureState("emphasis");k.ignore==null&&(k.ignore=!1)}S.ignore=!0}for(var i=0;i=l)}}for(var p=this.__startIndex;p15)break}}U.prevElClipPaths&&w.restore()};if(x)if(x.length===0)M=k.__endIndex;else for(var L=g.dpr,B=0;B0&&t>i[0]){for(c=0;ct);c++);l=r[i[c]]}if(i.splice(c+1,0,t),r[t]=n,!n.virtual)if(l){var d=l.dom;d.nextSibling?s.insertBefore(n.dom,d.nextSibling):s.appendChild(n.dom)}else s.firstChild?s.insertBefore(n.dom,s.firstChild):s.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i0?fx:0),this._needsManuallyCompositing),h.__builtin__||kW("ZLevel "+d+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==c&&(h.__dirty=!0),h.__startIndex=c,h.incremental?h.__drawIndex=-1:h.__drawIndex=c,n(c),a=h),i.__dirty&ac&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=c))}n(c),this.eachBuiltinLayer(function(p,v){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Et(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?ao(r[t],n,!0):r[t]=n;for(var i=0;i-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Md);function _G(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=zy(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var a=[],s=0;s=0&&r.push(t[a])}return r.join(" ")}var SG=(function(e){Nn(t,e);function t(n,r,i,a){var s=e.call(this)||this;return s.updateData(n,r,i,a),s}return t.prototype._createSymbol=function(n,r,i,a,s){this.removeAll();var l=Uy(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Vyt,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){gT(this.childAt(0))},t.prototype.downplay=function(){yT(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,a){this.silent=!1;var s=n.getItemVisual(r,"symbol")||"circle",l=n.hostModel,c=t.getSymbolSize(n,r),d=s!==this._symbolType,h=a&&a.disableAnimation;if(d){var p=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(s,n,r,c,p)}else{var v=this.childAt(0);v.silent=!1;var g={scaleX:c[0]/2,scaleY:c[1]/2};h?v.attr(g):eu(v,g,l,r),WW(v)}if(this._updateCommon(n,r,c,i,a),d){var v=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Kc(v,g,l,r)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,a,s){var l=this.childAt(0),c=n.hostModel,d,h,p,v,g,y,S,k,w;if(a&&(d=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,v=a.focus,g=a.blurScope,S=a.labelStatesModels,k=a.hoverScale,w=a.cursorStyle,y=a.emphasisDisabled),!a||n.hasItemOption){var x=a&&a.itemModel?a.itemModel:n.getItemModel(r),E=x.getModel("emphasis");d=E.getModel("itemStyle").getItemStyle(),p=x.getModel(["select","itemStyle"]).getItemStyle(),h=x.getModel(["blur","itemStyle"]).getItemStyle(),v=E.get("focus"),g=E.get("blurScope"),y=E.get("disabled"),S=kS(x),k=E.getShallow("scale"),w=x.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var T=z1e(n.getItemVisual(r,"symbolOffset"),i);T&&(l.x=T[0],l.y=T[1]),w&&l.attr("cursor",w);var D=n.getItemVisual(r,"style"),P=D.fill;if(l instanceof G0){var M=l.style;l.useStyle(yn({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},D))}else l.__isEmptyBrush?l.useStyle(yn({},D)):l.useStyle(D),l.style.decal=null,l.setColor(P,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var $=n.getItemVisual(r,"liftZ"),L=this._z2;$!=null?L==null&&(this._z2=l.z2,l.z2+=$):L!=null&&(l.z2=L,this._z2=null);var B=s&&s.useNameLabel;SS(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:j,inheritColor:P,defaultOpacity:D.opacity});function j(W){return B?n.getName(W):_G(n,W)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var H=l.ensureState("emphasis");H.style=d,l.ensureState("select").style=p,l.ensureState("blur").style=h;var U=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;H.scaleX=this._sizeX*U,H.scaleY=this._sizeY*U,this.setSymbolScale(1),g_(this,v,g,y)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var a=this.childAt(0),s=Yi(this).dataIndex,l=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var c=a.getTextContent();c&&ST(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ST(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return wgt(n.getItemVisual(r,"symbolSize"))},t})(Qa);function Vyt(e,t){this.parent.drift(e,t)}function xF(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function Xae(e){return e!=null&&!Ir(e)&&(e={isIgnore:e}),e||{}}function Zae(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:kS(t),cursorStyle:t.get("cursor")}}var zyt=(function(){function e(t){this.group=new Qa,this._SymbolCtor=t||SG}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Xae(n);var r=this.group,i=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=Zae(t),d={disableAnimation:l},h=n.getSymbolPoint||function(p){return t.getItemLayout(p)};a||r.removeAll(),t.diff(a).add(function(p){var v=h(p);if(xF(t,v,p,n)){var g=new s(t,p,c,d);g.setPosition(v),t.setItemGraphicEl(p,g),r.add(g)}}).update(function(p,v){var g=a.getItemGraphicEl(v),y=h(p);if(!xF(t,y,p,n)){r.remove(g);return}var S=t.getItemVisual(p,"symbol")||"circle",k=g&&g.getSymbolType&&g.getSymbolType();if(!g||k&&k!==S)r.remove(g),g=new s(t,p,c,d),g.setPosition(y);else{g.updateData(t,p,c,d);var w={x:y[0],y:y[1]};l?g.attr(w):eu(g,w,i)}r.add(g),t.setItemGraphicEl(p,g)}).remove(function(p){var v=a.getItemGraphicEl(p);v&&v.fadeOut(function(){r.remove(v)},i)}).execute(),this._getSymbolPoint=h,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var a=t._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Zae(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Xae(r);function i(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?n=r[0]:r[1]<0&&(n=r[1]),n}function Vye(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,s=[];return s[a]=n.get(e.baseDim,r),s[1-a]=i,t.dataToPoint(s)}function Hyt(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Wyt(e,t,n,r,i,a,s,l){for(var c=Hyt(e,t),d=[],h=[],p=[],v=[],g=[],y=[],S=[],k=jye(i,t,s),w=e.getLayout("points")||[],x=t.getLayout("points")||[],E=0;E=i||S<0)break;if(xm(w,x)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](w,x),p=w,v=x;else{var E=w-d,_=x-h;if(E*E+_*_<.5){S+=a;continue}if(s>0){for(var T=S+a,D=t[T*2],P=t[T*2+1];D===w&&P===x&&k=r||xm(D,P))g=w,y=x;else{L=D-d,B=P-h;var U=w-d,W=D-w,K=x-h,oe=P-x,ae=void 0,ee=void 0;if(l==="x"){ae=Math.abs(U),ee=Math.abs(W);var Y=L>0?1:-1;g=w-Y*ae*s,y=x,j=w+Y*ee*s,H=x}else if(l==="y"){ae=Math.abs(K),ee=Math.abs(oe);var Q=B>0?1:-1;g=w,y=x-Q*ae*s,j=w,H=x+Q*ee*s}else ae=Math.sqrt(U*U+K*K),ee=Math.sqrt(W*W+oe*oe),$=ee/(ee+ae),g=w-L*s*(1-$),y=x-B*s*(1-$),j=w+L*s*$,H=x+B*s*$,j=$p(j,Bp(D,w)),H=$p(H,Bp(P,x)),j=Bp(j,$p(D,w)),H=Bp(H,$p(P,x)),L=j-w,B=H-x,g=w-L*ae/ee,y=x-B*ae/ee,g=$p(g,Bp(d,w)),y=$p(y,Bp(h,x)),g=Bp(g,$p(d,w)),y=Bp(y,$p(h,x)),L=w-g,B=x-y,j=w+L*ee/ae,H=x+B*ee/ae}e.bezierCurveTo(p,v,g,y,w,x),p=j,v=H}else e.lineTo(w,x)}d=w,h=x,S+=a}return k}var zye=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Gyt=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zye},t.prototype.buildPath=function(n,r){var i=r.points,a=0,s=i.length/2;if(r.connectNulls){for(;s>0&&xm(i[s*2-2],i[s*2-1]);s--);for(;a=0){var _=d?(y-c)*E+c:(g-l)*E+l;return d?[n,_]:[_,n]}l=g,c=y;break;case s.C:g=a[p++],y=a[p++],S=a[p++],k=a[p++],w=a[p++],x=a[p++];var T=d?aT(l,g,S,w,n,h):aT(c,y,k,x,n,h);if(T>0)for(var D=0;D=0){var _=d?Ha(c,y,k,x,P):Ha(l,g,S,w,P);return d?[n,_]:[_,n]}}l=w,c=x;break}}},t})(vo),Kyt=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(zye),qyt=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Kyt},t.prototype.buildPath=function(n,r){var i=r.points,a=r.stackedOnPoints,s=0,l=i.length/2,c=r.smoothMonotone;if(r.connectNulls){for(;l>0&&xm(i[l*2-2],i[l*2-1]);l--);for(;st){a?n.push(s(a,c,t)):i&&n.push(s(i,c,0),s(i,c,t));break}else i&&(n.push(s(i,c,0)),i=null),n.push(c),a=c}return n}function Jyt(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,s=r.length-1;s>=0;s--){var l=e.getDimensionInfo(r[s].dimension);if(i=l&&l.coordDim,i==="x"||i==="y"){a=r[s];break}}if(a){var c=t.getAxis(i),d=xr(a.stops,function(E){return{coord:c.toGlobalCoord(c.dataToCoord(E.value)),color:E.color}}),h=d.length,p=a.outerColors.slice();h&&d[0].coord>d[h-1].coord&&(d.reverse(),p.reverse());var v=Zyt(d,i==="x"?n.getWidth():n.getHeight()),g=v.length;if(!g&&h)return d[0].coord<0?p[1]?p[1]:d[h-1].color:p[0]?p[0]:d[0].color;var y=10,S=v[0].coord-y,k=v[g-1].coord+y,w=k-S;if(w<.001)return"transparent";Et(v,function(E){E.offset=(E.coord-S)/w}),v.push({offset:g?v[g-1].offset:.5,color:p[1]||"transparent"}),v.unshift({offset:g?v[0].offset:.5,color:p[0]||"transparent"});var x=new jge(0,0,0,0,v,!0);return x[i]=S,x[i+"2"]=k,x}}}function Qyt(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(i&&e3t(a,t))){var s=t.mapDimension(a.dim),l={};return Et(a.getViewLabels(),function(c){var d=a.scale.getRawOrdinalNumber(c.tickValue);l[d]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function e3t(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),s=0;sr)return!1;return!0}function t3t(e,t){return isNaN(e)||isNaN(t)}function n3t(e){for(var t=e.length/2;t>0&&t3t(e[t*2-2],e[t*2-1]);t--);return t-1}function nle(e,t){return[e[t*2],e[t*2+1]]}function r3t(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,a,s,l=0,c=-1,d=0;d=t||a>=t&&s<=t){c=d;break}l=d,a=s}return{range:[l,c],t:(t-a)/(s-a)}}function Wye(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var ee=y.getState("emphasis").style;ee.lineWidth=+y.style.lineWidth+1}Yi(y).seriesIndex=n.seriesIndex,g_(y,K,oe,ae);var Y=tle(n.get("smooth")),Q=n.get("smoothMonotone");if(y.setShape({smooth:Y,smoothMonotone:Q,connectNulls:P}),S){var ie=l.getCalculationInfo("stackedOnSeries"),q=0;S.useStyle(co(d.getAreaStyle(),{fill:j,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ie&&(q=tle(ie.get("smooth"))),S.setShape({smooth:Y,stackedOnSmooth:q,smoothMonotone:Q,connectNulls:P}),bT(S,n,"areaStyle"),Yi(S).seriesIndex=n.seriesIndex,g_(S,K,oe,ae)}var te=this._changePolyState;l.eachItemGraphicEl(function(Se){Se&&(Se.onHoverStateChange=te)}),this._polyline.onHoverStateChange=te,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=L,this._valueOrigin=E,n.get("triggerLineEvent")&&(this.packEventData(n,y),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){Yi(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,a){var s=n.getData(),l=Vm(s,a);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var c=s.getLayout("points"),d=s.getItemGraphicEl(l);if(!d){var h=c[l*2],p=c[l*2+1];if(isNaN(h)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,p))return;var v=n.get("zlevel")||0,g=n.get("z")||0;d=new SG(s,l),d.x=h,d.y=p,d.setZ(v,g);var y=d.getSymbolPath().getTextContent();y&&(y.zlevel=v,y.z=g,y.z2=this._polyline.z2+1),d.__temp=!0,s.setItemGraphicEl(l,d),d.stopSymbolAnimation(!0),this.group.add(d)}d.highlight()}else qc.prototype.highlight.call(this,n,r,i,a)},t.prototype.downplay=function(n,r,i,a){var s=n.getData(),l=Vm(s,a);if(this._changePolyState("normal"),l!=null&&l>=0){var c=s.getItemGraphicEl(l);c&&(c.__temp?(s.setItemGraphicEl(l,null),this.group.remove(c)):c.downplay())}else qc.prototype.downplay.call(this,n,r,i,a)},t.prototype._changePolyState=function(n){var r=this._polygon;cse(this._polyline,n),r&&cse(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Gyt({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new qyt({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var a,s,l=r.getBaseAxis(),c=l.inverse;r.type==="cartesian2d"?(a=l.isHorizontal(),s=!1):r.type==="polar"&&(a=l.dim==="angle",s=!0);var d=n.hostModel,h=d.get("animationDuration");ii(h)&&(h=h(null));var p=d.get("animationDelay")||0,v=ii(p)?p(null):p;n.eachItemGraphicEl(function(g,y){var S=g;if(S){var k=[g.x,g.y],w=void 0,x=void 0,E=void 0;if(i)if(s){var _=i,T=r.pointToCoord(k);a?(w=_.startAngle,x=_.endAngle,E=-T[1]/180*Math.PI):(w=_.r0,x=_.r,E=T[0])}else{var D=i;a?(w=D.x,x=D.x+D.width,E=g.x):(w=D.y+D.height,x=D.y,E=g.y)}var P=x===w?0:(E-w)/(x-w);c&&(P=1-P);var M=ii(p)?p(y):h*P+v,$=S.getSymbolPath(),L=$.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:M}),$.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var a=n.getModel("endLabel");if(Wye(n)){var s=n.getData(),l=this._polyline,c=s.getLayout("points");if(!c){l.removeTextContent(),this._endLabel=null;return}var d=this._endLabel;d||(d=this._endLabel=new el({z2:200}),d.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=n3t(c);h>=0&&(SS(l,kS(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:h,defaultText:function(p,v,g){return g!=null?Fye(s,g):_G(s,p)},enableTextSetter:!0},i3t(a,r)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,a,s,l,c){var d=this._endLabel,h=this._polyline;if(d){n<1&&a.originalX==null&&(a.originalX=d.x,a.originalY=d.y);var p=i.getLayout("points"),v=i.hostModel,g=v.get("connectNulls"),y=l.get("precision"),S=l.get("distance")||0,k=c.getBaseAxis(),w=k.isHorizontal(),x=k.inverse,E=r.shape,_=x?w?E.x:E.y+E.height:w?E.x+E.width:E.y,T=(w?S:0)*(x?-1:1),D=(w?0:-S)*(x?-1:1),P=w?"x":"y",M=r3t(p,_,P),$=M.range,L=$[1]-$[0],B=void 0;if(L>=1){if(L>1&&!g){var j=nle(p,$[0]);d.attr({x:j[0]+T,y:j[1]+D}),s&&(B=v.getRawValue($[0]))}else{var j=h.getPointOn(_,P);j&&d.attr({x:j[0]+T,y:j[1]+D});var H=v.getRawValue($[0]),U=v.getRawValue($[1]);s&&(B=jht(i,y,H,U,M.t))}a.lastFrameIndex=$[0]}else{var W=n===1||a.lastFrameIndex>0?$[0]:0,j=nle(p,W);s&&(B=v.getRawValue(W)),d.attr({x:j[0]+T,y:j[1]+D})}if(s){var K=BA(d);typeof K.setLabelText=="function"&&K.setLabelText(B)}}},t.prototype._doUpdateAnimation=function(n,r,i,a,s,l,c){var d=this._polyline,h=this._polygon,p=n.hostModel,v=Wyt(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),g=v.current,y=v.stackedOnCurrent,S=v.next,k=v.stackedOnNext;if(s&&(y=Np(v.stackedOnCurrent,v.current,i,s,c),g=Np(v.current,null,i,s,c),k=Np(v.stackedOnNext,v.next,i,s,c),S=Np(v.next,null,i,s,c)),ele(g,S)>3e3||h&&ele(y,k)>3e3){d.stopAnimation(),d.setShape({points:S}),h&&(h.stopAnimation(),h.setShape({points:S,stackedOnPoints:k}));return}d.shape.__points=v.current,d.shape.points=g;var w={shape:{points:S}};v.current!==g&&(w.shape.__points=v.next),d.stopAnimation(),eu(d,w,p),h&&(h.setShape({points:g,stackedOnPoints:y}),h.stopAnimation(),eu(h,{shape:{stackedOnPoints:k}},p),d.shape.points!==h.shape.points&&(h.shape.points=d.shape.points));for(var x=[],E=v.status,_=0;_t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&s.type==="cartesian2d"&&a){var c=s.getBaseAxis(),d=s.getOtherAxis(c),h=c.getExtent(),p=r.getDevicePixelRatio(),v=Math.abs(h[1]-h[0])*(p||1),g=Math.round(l/v);if(isFinite(g)&&g>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(d.dim),1/g)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(d.dim),1/g));var y=void 0;br(a)?y=a3t[a]:ii(a)&&(y=a),y&&t.setData(i.downSample(i.mapDimension(d.dim),1/g,y,l3t))}}}}}function Kye(e){e.registerChartView(o3t),e.registerSeriesModel(jyt),e.registerLayout(s3t("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Gye("line"))}var Lz=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return pG(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var s=a.clampData(n),l=a.dataToPoint(s);if(i)Et(a.getAxes(),function(v,g){if(v.type==="category"&&r!=null){var y=v.getTicksCoords(),S=v.getTickModel().get("alignWithLabel"),k=s[g],w=r[g]==="x1"||r[g]==="y1";if(w&&!S&&(k+=1),y.length<2)return;if(y.length===2){l[g]=v.toGlobalCoord(v.getExtent()[w?1:0]);return}for(var x=void 0,E=void 0,_=1,T=0;Tk){E=(D+x)/2;break}T===1&&(_=P-y[0].tickValue)}E==null&&(x?x&&(E=y[y.length-1].coord):E=y[0].coord),l[g]=v.toGlobalCoord(E)}});else{var c=this.getData(),d=c.getLayout("offset"),h=c.getLayout("size"),p=a.getBaseAxis().isHorizontal()?0:1;l[p]+=d+h/2}return l}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(Md);Md.registerClass(Lz);var u3t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return pG(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=qge(Lz.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(Lz),c3t=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),rle=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new c3t},t.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,s=Math.max(r.r0||0,0),l=Math.max(r.r,0),c=(l-s)*.5,d=s+c,h=r.startAngle,p=r.endAngle,v=r.clockwise,g=Math.PI*2,y=v?p-hMath.PI/2&&hl)return!0;l=p}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,a=i.getExtent(),s=Math.max(0,a[0]),l=Math.min(a[1],i.getOrdinalMeta().categories.length-1);s<=l;++s)if(n.ordinalNumbers[s]!==i.getRawOrdinalNumber(s))return!0},t.prototype._updateSortWithinSameData=function(n,r,i,a){if(this._isOrderChangedWithinSameData(n,r,i)){var s=this._dataSort(n,i,r);this._isOrderDifferentInView(s,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:s}))}},t.prototype._dispatchInitSort=function(n,r,i){var a=r.baseAxis,s=this._dataSort(n,a,function(l){return n.get(n.mapDimension(r.otherAxis.dim),l)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:s})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){kT(a,n,Yi(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(qc),ile={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,s=EF(t.x,e.x),l=TF(t.x+t.width,i),c=EF(t.y,e.y),d=TF(t.y+t.height,a),h=li?l:s,t.y=p&&c>a?d:c,t.width=h?0:l-s,t.height=p?0:d-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),h||p},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=TF(t.r,e.r),a=EF(t.r0,e.r0);t.r=i,t.r0=a;var s=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return s}},ole={cartesian2d:function(e,t,n,r,i,a,s,l,c){var d=new Js({shape:yn({},r),z2:1});if(d.__dataIndex=n,d.name="item",a){var h=d.shape,p=i?"height":"width";h[p]=0}return d},polar:function(e,t,n,r,i,a,s,l,c){var d=!i&&c?rle:K0,h=new d({shape:r,z2:1});h.name="item";var p=qye(i);if(h.calculateTextPosition=d3t(p,{isRoundCap:d===rle}),a){var v=h.shape,g=i?"r":"endAngle",y={};v[g]=i?r.r0:r.startAngle,y[g]=r[g],(l?eu:Kc)(h,{shape:y},a)}return h}};function v3t(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function sle(e,t,n,r,i,a,s,l){var c,d;a?(d={x:r.x,width:r.width},c={y:r.y,height:r.height}):(d={y:r.y,height:r.height},c={x:r.x,width:r.width}),l||(s?eu:Kc)(n,{shape:c},t,i,null);var h=t?e.baseAxis.model:null;(s?eu:Kc)(n,{shape:d},h,i)}function ale(e,t){for(var n=0;n0?1:-1,s=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+s*i/2,width:r.width-a*i,height:r.height-s*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function y3t(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function qye(e){return(function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(e)}function ule(e,t,n,r,i,a,s,l){var c=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var h=e.shape,p=j4(r.getModel("itemStyle"),h,!0);yn(h,p),e.setShape(h)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(c);var v=r.getShallow("cursor");v&&e.attr("cursor",v);var g=l?s?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":s?i.height>=0?"bottom":"top":i.width>=0?"right":"left",y=kS(r);SS(e,y,{labelFetcher:a,labelDataIndex:n,defaultText:_G(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:g});var S=e.getTextContent();if(l&&S){var k=r.get(["label","position"]);e.textConfig.inside=k==="middle"?!0:null,f3t(e,k==="outside"?g:k,qye(s),r.get(["label","rotate"]))}evt(S,y,a.getRawValue(n),function(x){return Fye(t,x)});var w=r.getModel(["emphasis"]);g_(e,w.get("focus"),w.get("blurScope"),w.get("disabled")),bT(e,r),y3t(i)&&(e.style.fill="none",e.style.stroke="none",Et(e.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function b3t(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var _3t=(function(){function e(){}return e})(),cle=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new _3t},t.prototype.buildPath=function(n,r){for(var i=r.points,a=this.baseDimIdx,s=1-this.baseDimIdx,l=[],c=[],d=this.barWidth,h=0;h=0?n:null},30,!1);function S3t(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,s=e.largeDataIndices,l=[],c=[],d=e.barWidth,h=0,p=a.length/3;h=l[0]&&t<=l[0]+c[0]&&n>=l[1]&&n<=l[1]+c[1])return s[h]}return-1}function Yye(e,t,n){if(kG(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function k3t(e,t,n){var r=e.type==="polar"?K0:Js;return new r({shape:Yye(t,n,e),silent:!0,z2:0})}function Xye(e){e.registerChartView(p3t),e.registerSeriesModel(u3t),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Rs(W1t,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,G1t("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Gye("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var hle=Math.PI*2,mx=Math.PI/180;function Zye(e,t){return jy(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Jye(e,t){var n=Zye(e,t),r=e.get("center"),i=e.get("radius");er(i)||(i=[0,i]);var a=ts(n.width,t.getWidth()),s=ts(n.height,t.getHeight()),l=Math.min(a,s),c=ts(i[0],l/2),d=ts(i[1],l/2),h,p,v=e.coordinateSystem;if(v){var g=v.dataToPoint(r);h=g[0]||0,p=g[1]||0}else er(r)||(r=[r,r]),h=ts(r[0],a)+n.x,p=ts(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:d}}function w3t(e,t,n){t.eachSeriesByType(e,function(r){var i=r.getData(),a=i.mapDimension("value"),s=Zye(r,n),l=Jye(r,n),c=l.cx,d=l.cy,h=l.r,p=l.r0,v=-r.get("startAngle")*mx,g=r.get("endAngle"),y=r.get("padAngle")*mx;g=g==="auto"?v-hle:-g*mx;var S=r.get("minAngle")*mx,k=S+y,w=0;i.each(a,function(oe){!isNaN(oe)&&w++});var x=i.getSum(a),E=Math.PI/(x||w)*2,_=r.get("clockwise"),T=r.get("roseType"),D=r.get("stillShowZeroSum"),P=i.getDataExtent(a);P[0]=0;var M=_?1:-1,$=[v,g],L=M*y/2;bge($,!_),v=$[0],g=$[1];var B=Qye(r);B.startAngle=v,B.endAngle=g,B.clockwise=_;var j=Math.abs(g-v),H=j,U=0,W=v;if(i.setLayout({viewRect:s,r:h}),i.each(a,function(oe,ae){var ee;if(isNaN(oe)){i.setItemLayout(ae,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:d,r0:p,r:T?NaN:h});return}T!=="area"?ee=x===0&&D?E:oe*E:ee=j/w,eeee?(Q=W+M*ee/2,ie=Q):(Q=W+L,ie=Y-L),i.setItemLayout(ae,{angle:ee,startAngle:Q,endAngle:ie,clockwise:_,cx:c,cy:d,r0:p,r:T?ez(oe,P,[p,h]):h}),W=Y}),Hn?w:k,T=Math.abs(E.label.y-n);if(T>=_.maxY){var D=E.label.x-t-E.len2*i,P=r+E.len,M=Math.abs(D)e.unconstrainedWidth?null:g:null;r.setStyle("width",y)}var S=r.getBoundingRect();a.width=S.width;var k=(r.style.margin||0)+2.1;a.height=S.height+k,a.y-=(a.height-p)/2}}}function AF(e){return e.position==="center"}function T3t(e){var t=e.getData(),n=[],r,i,a=!1,s=(e.get("minShowLabelAngle")||0)*C3t,l=t.getLayout("viewRect"),c=t.getLayout("r"),d=l.width,h=l.x,p=l.y,v=l.height;function g(D){D.ignore=!0}function y(D){if(!D.ignore)return!0;for(var P in D.states)if(D.states[P].ignore===!1)return!0;return!1}t.each(function(D){var P=t.getItemGraphicEl(D),M=P.shape,$=P.getTextContent(),L=P.getTextGuideLine(),B=t.getItemModel(D),j=B.getModel("label"),H=j.get("position")||B.get(["emphasis","label","position"]),U=j.get("distanceToLabelLine"),W=j.get("alignTo"),K=ts(j.get("edgeDistance"),d),oe=j.get("bleedMargin"),ae=B.getModel("labelLine"),ee=ae.get("length");ee=ts(ee,d);var Y=ae.get("length2");if(Y=ts(Y,d),Math.abs(M.endAngle-M.startAngle)0?"right":"left":ie>0?"left":"right"}var Be=Math.PI,Ye=0,Ke=j.get("rotate");if(Io(Ke))Ye=Ke*(Be/180);else if(H==="center")Ye=0;else if(Ke==="radial"||Ke===!0){var at=ie<0?-Q+Be:-Q;Ye=at}else if(Ke==="tangential"&&H!=="outside"&&H!=="outer"){var ft=Math.atan2(ie,q);ft<0&&(ft=Be*2+ft);var ct=q>0;ct&&(ft=Be+ft),Ye=ft-Be}if(a=!!Ye,$.x=te,$.y=Se,$.rotation=Ye,$.setStyle({verticalAlign:"middle"}),Re){$.setStyle({align:ve});var Rt=$.states.select;Rt&&(Rt.x+=$.x,Rt.y+=$.y)}else{var Ct=$.getBoundingRect().clone();Ct.applyTransform($.getComputedTransform());var xt=($.style.margin||0)+2.1;Ct.y-=xt/2,Ct.height+=xt,n.push({label:$,labelLine:L,position:H,len:ee,len2:Y,minTurnAngle:ae.get("minTurnAngle"),maxSurfaceAngle:ae.get("maxSurfaceAngle"),surfaceNormal:new Gr(ie,q),linePoints:Fe,textAlign:ve,labelDistance:U,labelAlignTo:W,edgeDistance:K,bleedMargin:oe,rect:Ct,unconstrainedWidth:Ct.width,labelStyleWidth:$.style.width})}P.setTextConfig({inside:Re})}}),!a&&e.get("avoidLabelOverlap")&&E3t(n,r,i,c,d,v,h,p);for(var S=0;S0){for(var h=s.getItemLayout(0),p=1;isNaN(h&&h.startAngle)&&p=a.r0}},t.type="pie",t})(qc);function L3t(e,t,n){t=er(t)&&{coordDimensions:t}||yn({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=yye(r,t).dimensions,a=new gye(i,e);return a.initData(r,n),a}var D3t=(function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e})(),P3t=Bs(),R3t=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new D3t(Mo(this.getData,this),Mo(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return L3t(this,{coordDimensions:["value"],encodeDefaulter:Rs(Tvt,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),i=P3t(r),a=i.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=i.seats=Sht(s,r.hostModel.get("percentPrecision"))}var l=e.prototype.getDataParams.call(this,n);return l.percent=a[n]||0,l.$vars.push("percent"),l},t.prototype._defaultLabelLine=function(n){tz(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Md);function M3t(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),s=r.get(a,i);return!(Io(s)&&!isNaN(s)&&s<0)})}}}function t3e(e){e.registerChartView(I3t),e.registerSeriesModel(R3t),cgt("pie",e.registerAction),e.registerLayout(Rs(w3t,"pie")),e.registerProcessor(x3t("pie")),e.registerProcessor(M3t("pie"))}var O3t=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(ho),Dz=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Td).models[0]},t.type="cartesian2dAxis",t})(ho);Df(Dz,vyt);var n3e={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},$3t=ao({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},n3e),wG=ao({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},n3e),B3t=ao({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wG),N3t=co({logBase:10},wG);const F3t={category:$3t,value:wG,time:B3t,log:N3t};var j3t={value:1,category:1,time:1,log:1};function vle(e,t,n,r){Et(j3t,function(i,a){var s=ao(ao({},F3t[a],!0),r,!0),l=(function(c){Nn(d,c);function d(){var h=c!==null&&c.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return d.prototype.mergeDefaultAndTheme=function(h,p){var v=__(this),g=v?WA(h):{},y=p.getTheme();ao(h,y.get(a+"Axis")),ao(h,this.getDefaultOption()),h.type=mle(h),v&&Vy(h,g,v)},d.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=Tz.createByAxisModel(this))},d.prototype.getCategories=function(h){var p=this.option;if(p.type==="category")return h?p.data:this.__ordinalMeta.categories},d.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},d.type=t+"Axis."+a,d.defaultOption=s,d})(n);e.registerComponentModel(l)}),e.registerSubTypeDefaulter(t+"Axis",mle)}function mle(e){return e.type||(e.data?"category":"value")}var V3t=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return xr(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ua(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),Pz=["x","y"];function gle(e){return e.type==="interval"||e.type==="time"}var z3t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Pz,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!gle(n)||!gle(r))){var i=n.getExtent(),a=r.getExtent(),s=this.dataToPoint([i[0],a[0]]),l=this.dataToPoint([i[1],a[1]]),c=i[1]-i[0],d=a[1]-a[0];if(!(!c||!d)){var h=(l[0]-s[0])/c,p=(l[1]-s[1])/d,v=s[0]-i[0]*h,g=s[1]-a[0]*p,y=this._transform=[h,0,0,p,v,g];this._invTransform=TW([],y)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),a=this.dataToPoint(r),s=this.getArea(),l=new lo(i[0],i[1],a[0]-i[0],a[1]-i[1]);return s.intersect(l)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var a=n[0],s=n[1];if(this._transform&&a!=null&&isFinite(a)&&s!=null&&isFinite(s))return Gc(i,n,this._transform);var l=this.getAxis("x"),c=this.getAxis("y");return i[0]=l.toGlobalCoord(l.dataToCoord(a,r)),i[1]=c.toGlobalCoord(c.dataToCoord(s,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,s=i.getExtent(),l=a.getExtent(),c=i.parse(n[0]),d=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r[1]=Math.min(Math.max(Math.min(l[0],l[1]),d),Math.max(l[0],l[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return Gc(i,n,this._invTransform);var a=this.getAxis("x"),s=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(n[0]),r),i[1]=s.coordToData(s.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-n,s=Math.min(i[0],i[1])-n,l=Math.max(r[0],r[1])-a+n,c=Math.max(i[0],i[1])-s+n;return new lo(a,s,l,c)},t})(V3t),U3t=(function(e){Nn(t,e);function t(n,r,i,a,s){var l=e.call(this,n,r,i)||this;return l.index=0,l.type=a||"value",l.position=s||"bottom",l}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(Cyt);function Rz(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},s=i.getAxesOnZeroOf()[0],l=i.position,c=s?"onZero":l,d=i.dim,h=r.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],v={left:0,right:1,top:0,bottom:1,onZero:2},g=t.get("offset")||0,y=d==="x"?[p[2]-g,p[3]+g]:[p[0]-g,p[1]+g];if(s){var S=s.toGlobalCoord(s.dataToCoord(0));y[v.onZero]=Math.max(Math.min(S,y[1]),y[0])}a.position=[d==="y"?y[v[c]]:p[0],d==="x"?y[v[c]]:p[3]],a.rotation=Math.PI/2*(d==="x"?0:1);var k={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=k[l],a.labelOffset=s?y[v[l]]-y[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),h_(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var w=t.get(["axisLabel","rotate"]);return a.labelRotate=c==="top"?-w:w,a.z2=1,a}function yle(e){return e.get("coordinateSystem")==="cartesian2d"}function ble(e){var t={xAxisModel:null,yAxisModel:null};return Et(t,function(n,r){var i=r.replace(/Model$/,""),a=e.getReferringComponents(i,Td).models[0];t[r]=a}),t}var IF=Math.log;function H3t(e,t,n){var r=S3.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=i.length-1,l=r.getInterval.call(n),c=Aye(e,t),d=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var v=IF(e.base);d=[IF(d[0])/v,IF(d[1])/v]}e.setExtent(d[0],d[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:p});var g=r.getExtent.call(e);h&&(d[0]=g[0]),p&&(d[1]=g[1]);var y=r.getInterval.call(e),S=d[0],k=d[1];if(h&&p)y=(k-S)/s;else if(h)for(k=d[0]+y*s;kd[0]&&isFinite(S)&&isFinite(d[0]);)y=SF(y),S=d[1]-y*s;else{var w=e.getTicks().length-1;w>s&&(y=SF(y));var x=y*s;k=Math.ceil(d[1]/y)*y,S=Zs(k-x),S<0&&d[0]>=0?(S=0,k=Zs(x)):k>0&&d[1]<=0&&(k=0,S=-Zs(x))}var E=(i[0].value-a[0].value)/l,_=(i[s].value-a[s].value)/l;r.setExtent.call(e,S+y*E,k+y*_),r.setInterval.call(e,y),(E||_)&&r.setNiceExtent.call(e,S+y,k-y)}var W3t=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Pz,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(s){var l,c=ns(s),d=c.length;if(d){for(var h=[],p=d-1;p>=0;p--){var v=+c[p],g=s[v],y=g.model,S=g.scale;Az(S)&&y.get("alignTicks")&&y.get("interval")==null?h.push(g):(Hae(S,y),Az(S)&&(l=g))}h.length&&(l||(l=h.pop(),Hae(l.scale,l.model)),Et(h,function(k){H3t(k.scale,k.model,l.scale)}))}}i(r.x),i(r.y);var a={};Et(r.x,function(s){_le(r,"y",s,a)}),Et(r.y,function(s){_le(r,"x",s,a)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),a=!r&&t.get("containLabel"),s=jy(i,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(Et(l,function(d){if(!d.model.get(["axisLabel","inside"])){var h=fyt(d);if(h){var p=d.isHorizontal()?"height":"width",v=d.model.get(["axisLabel","margin"]);s[p]-=h[p]+v,d.position==="top"?s.y+=h.height+v:d.position==="left"&&(s.x+=h.width+v)}}}),c()),Et(this._coordsList,function(d){d.calcAffineTransform()});function c(){Et(l,function(d){var h=d.isHorizontal(),p=h?[0,s.width]:[0,s.height],v=d.inverse?1:0;d.setExtent(p[v],p[1-v]),G3t(d,h?s.x:s.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Ir(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):hT(i-u0)?(s=r>0?"bottom":"top",a="center"):(s="middle",i>0&&i0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:s}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),kle={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),s=r.transform,l=[a[0],0],c=[a[1],0],d=l[0]>c[0];s&&(Gc(l,l,s),Gc(c,c,s));var h=yn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new R0({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});y_(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var v=t.get(["axisLine","symbol"]);if(v!=null){var g=t.get(["axisLine","symbolSize"]);br(v)&&(v=[v,v]),(br(g)||Io(g))&&(g=[g,g]);var y=z1e(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];Et([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],function(w,x){if(v[x]!=="none"&&v[x]!=null){var E=Uy(v[x],-S/2,-k/2,S,k,h.stroke,!0),_=w.r+w.offset,T=d?c:l;E.attr({rotation:w.rotate,x:T[0]+_*Math.cos(e.rotation),y:T[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(e,t,n,r){var i=Y3t(n,r,t,e),a=Z3t(n,r,t,e);if(q3t(t,a,i),X3t(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=Pyt(xr(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));Oyt(s)}},axisName:function(e,t,n,r){var i=h_(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),s=e.nameDirection,l=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=[a==="start"?d[0]-h*c:a==="end"?d[1]+h*c:(d[0]+d[1])/2,xle(a)?e.labelOffset+s*c:0],v,g=t.get("nameRotate");g!=null&&(g=g*u0/180);var y;xle(a)?v=_0.innerTextLayout(e.rotation,g??e.rotation,s):(v=K3t(e.rotation,a,g||0,d),y=e.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(v.rotation)),!isFinite(y)&&(y=null)));var S=l.getFont(),k=t.get("nameTruncate",!0)||{},w=k.ellipsis,x=h_(e.nameTruncateMaxWidth,k.maxWidth,y),E=new el({x:p[0],y:p[1],rotation:v.rotation,silent:_0.isLabelSilent(t),style:M0(l,{text:i,font:S,overflow:"truncate",width:x,ellipsis:w,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||v.textAlign,verticalAlign:l.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(MA({el:E,componentModel:t,itemName:i}),E.__fullText=i,E.anid="name",t.get("triggerEvent")){var _=_0.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,Yi(E).eventData=_}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function K3t(e,t,n,r){var i=sge(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return hT(i-u0/2)?(s=c?"bottom":"top",a="center"):hT(i-u0*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",iu0/2?a=c?"left":"right":a=c?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:s}}function q3t(e,t,n){if(!Iye(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],s=t[1],l=t[t.length-1],c=t[t.length-2],d=n[0],h=n[1],p=n[n.length-1],v=n[n.length-2];r===!1?(Ac(a),Ac(d)):wle(a,s)&&(r?(Ac(s),Ac(h)):(Ac(a),Ac(d))),i===!1?(Ac(l),Ac(p)):wle(c,l)&&(i?(Ac(c),Ac(v)):(Ac(l),Ac(p)))}}function Ac(e){e&&(e.ignore=!0)}function wle(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=CW([]);return EW(i,i,-e.rotation),n.applyTransform(my([],i,e.getLocalTransform())),r.applyTransform(my([],i,t.getLocalTransform())),n.intersect(r)}}function xle(e){return e==="middle"||e==="center"}function r3e(e,t,n,r,i){for(var a=[],s=[],l=[],c=0;c=0||e===t}function r2t(e){var t=xG(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),s=n.get("value");s!=null&&(s=r.parse(s));var l=Mz(n);a==null&&(i.status=l?"show":"hide");var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(s==null||s>c[1])&&(s=c[1]),sl)return!0;if(s){var c=xG(t).seriesDataCount,d=i.getExtent();return Math.abs(d[0]-d[1])/c>l}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,a){},e.prototype.createPointerEl=function(t,n,r,i){var a=n.pointer;if(a){var s=Zv(t).pointerEl=new Y0t[a.type](Tle(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var a=Zv(t).labelEl=new el(Tle(n.label));t.add(a),Ile(a,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Zv(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var a=Zv(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),Ile(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),s=n.get("status");if(!a.get("show")||!s||s==="hide"){i&&r.remove(i),this._handle=null;return}var l;this._handle||(l=!0,i=this._handle=qW(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(d){zme(d.event)},onmousedown:PF(this._onHandleDragMove,this,0,0),drift:PF(this._onHandleDragMove,this),ondragend:PF(this._onHandleDragEnd,this)}),r.add(i)),Lle(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");er(c)||(c=[c,c]),i.scaleX=c[0]/2,i.scaleY=c[1]/2,M1e(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){Ale(this._axisPointerModel,!n&&this._moveAnimation,this._handle,RF(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(RF(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(RF(i)),Zv(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),yz(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e})();function Ale(e,t,n,r){a3e(Zv(n).lastProp,r)||(Zv(n).lastProp=r,t?eu(n,r,e):(n.stopAnimation(),n.attr(r)))}function a3e(e,t){if(Ir(e)&&Ir(t)){var n=!0;return Et(t,function(r,i){n=n&&a3e(e[i],r)}),!!n}else return e===t}function Ile(e,t){e[t.get(["label","show"])?"show":"hide"]()}function RF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Lle(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=n)})}function p2t(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function v2t(e,t,n,r,i){var a=n.get("value"),s=l3e(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=HA(l.get("padding")||0),d=l.getFont(),h=LW(s,d),p=i.position,v=h.width+c[1]+c[3],g=h.height+c[0]+c[2],y=i.align;y==="right"&&(p[0]-=v),y==="center"&&(p[0]-=v/2);var S=i.verticalAlign;S==="bottom"&&(p[1]-=g),S==="middle"&&(p[1]-=g/2),m2t(p,v,g,r);var k=l.get("backgroundColor");(!k||k==="auto")&&(k=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:M0(l,{text:s,font:d,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function m2t(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function l3e(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),s=i.formatter;if(s){var l={value:yG(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Et(r,function(c){var d=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=d&&d.getDataParams(h);p&&l.seriesData.push(p)}),br(s)?a=s.replace("{value}",a):ii(s)&&(a=s(l))}return a}function u3e(e,t,n){var r=vy();return EW(r,r,n.rotation),UV(r,r,n.position),KW([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function g2t(e,t,n,r,i,a){var s=_0.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),v2t(t,r,i,a,{position:u3e(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function y2t(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function b2t(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var _2t=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,a,s){var l=i.axis,c=l.grid,d=a.get("type"),h=Dle(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(d&&d!=="none"){var v=p2t(a),g=S2t[d](l,p,h);g.style=v,n.graphicKey=g.type,n.pointer=g}var y=Rz(c.model,i);g2t(r,n,y,i,a,s)},t.prototype.getHandleTransform=function(n,r,i){var a=Rz(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var s=u3e(r.axis,n,a);return{x:s[0],y:s[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,a){var s=i.axis,l=s.grid,c=s.getGlobalExtent(!0),d=Dle(l,s).getOtherAxis(s).getGlobalExtent(),h=s.dim==="x"?0:1,p=[n.x,n.y];p[h]+=r[h],p[h]=Math.min(c[1],p[h]),p[h]=Math.max(c[0],p[h]);var v=(d[1]+d[0])/2,g=[v,v];g[h]=p[h];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:n.rotation,cursorPoint:g,tooltipOption:y[h]}},t})(h2t);function Dle(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var S2t={line:function(e,t,n){var r=y2t([t,n[0]],[t,n[1]],Ple(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:b2t([t-r/2,n[0]],[r,i],Ple(e))}}};function Ple(e){return e.dim==="x"?0:1}var k2t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(ho),Ah=Bs(),w2t=Et;function c3e(e,t,n){if(!zr.node){var r=t.getZr();Ah(r).records||(Ah(r).records={}),x2t(r,t);var i=Ah(r).records[e]||(Ah(r).records[e]={});i.handler=n}}function x2t(e,t){if(Ah(e).initialized)return;Ah(e).initialized=!0,n("click",Rs(Rle,"click")),n("mousemove",Rs(Rle,"mousemove")),n("globalout",E2t);function n(r,i){e.on(r,function(a){var s=T2t(t);w2t(Ah(e).records,function(l){l&&i(l,a,s.dispatchAction)}),C2t(s.pendings,t)})}}function C2t(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function E2t(e,t,n){e.handler("leave",null,n)}function Rle(e,t,n,r){t.handler(e,n,r)}function T2t(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function $z(e,t){if(!zr.node){var n=t.getZr(),r=(Ah(n).records||{})[e];r&&(Ah(n).records[e]=null)}}var A2t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var a=r.getComponent("tooltip"),s=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";c3e("axisPointer",i,function(l,c,d){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&d({type:"updateAxisPointer",currTrigger:l,x:c&&c.offsetX,y:c&&c.offsetY})})},t.prototype.remove=function(n,r){$z("axisPointer",r)},t.prototype.dispose=function(n,r){$z("axisPointer",r)},t.type="axisPointer",t})(Od);function d3e(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),s=Vm(a,e);if(s==null||s<0||er(s))return{point:[]};var l=a.getItemGraphicEl(s),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(s)||[];else if(c&&c.dataToPoint)if(e.isStacked){var d=c.getBaseAxis(),h=c.getOtherAxis(d),p=h.dim,v=d.dim,g=p==="x"||p==="radius"?1:0,y=a.mapDimension(v),S=[];S[g]=a.get(y,s),S[1-g]=a.get(a.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(S)||[]}else n=c.dataToPoint(a.getValues(xr(c.dimensions,function(w){return a.mapDimension(w)}),s))||[];else if(l){var k=l.getBoundingRect().clone();k.applyTransform(l.transform),n=[k.x+k.width/2,k.y+k.height/2]}return{point:n,el:l}}var Mle=Bs();function I2t(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,s=e.dispatchAction||Mo(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){n8(i)&&(i=d3e({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=n8(i),d=a.axesInfo,h=l.axesInfo,p=r==="leave"||n8(i),v={},g={},y={list:[],map:{}},S={showPointer:Rs(D2t,g),showTooltip:Rs(P2t,y)};Et(l.coordSysMap,function(w,x){var E=c||w.containPoint(i);Et(l.coordSysAxesInfo[x],function(_,T){var D=_.axis,P=$2t(d,_);if(!p&&E&&(!d||P)){var M=P&&P.value;M==null&&!c&&(M=D.pointToData(i)),M!=null&&Ole(_,M,S,!1,v)}})});var k={};return Et(h,function(w,x){var E=w.linkGroup;E&&!g[x]&&Et(E.axesInfo,function(_,T){var D=g[T];if(_!==w&&D){var P=D.value;E.mapper&&(P=w.axis.scale.parse(E.mapper(P,$le(_),$le(w)))),k[w.key]=P}})}),Et(k,function(w,x){Ole(h[x],w,S,!0,v)}),R2t(g,h,v),M2t(y,i,e,s),O2t(h,s,n),v}}function Ole(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var s=L2t(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&i.seriesIndex==null&&yn(i,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function L2t(e,t){var n=t.axis,r=n.dim,i=e,a=[],s=Number.MAX_VALUE,l=-1;return Et(t.seriesModels,function(c,d){var h=c.getData().mapDimensionsAll(r),p,v;if(c.getAxisTooltipData){var g=c.getAxisTooltipData(h,e,n);v=g.dataIndices,p=g.nestestValue}else{if(v=c.getData().indicesOfNearest(h[0],e,n.type==="category"?.5:null),!v.length)return;p=c.getData().get(h[0],v[0])}if(!(p==null||!isFinite(p))){var y=e-p,S=Math.abs(y);S<=s&&((S=0&&l<0)&&(s=S,l=y,i=p,a.length=0),Et(v,function(k){a.push({seriesIndex:c.seriesIndex,dataIndexInside:k,dataIndex:c.getData().getRawIndex(k)})}))}}),{payloadBatch:a,snapToValue:i}}function D2t(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function P2t(e,t,n,r){var i=n.payloadBatch,a=t.axis,s=a.model,l=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,d=E_(c),h=e.map[d];h||(h=e.map[d]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function R2t(e,t,n){var r=n.axesInfo=[];Et(t,function(i,a){var s=i.axisPointerModel.option,l=e[a];l?(!i.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!i.useHandle&&(s.status="hide"),s.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:s.value})})}function M2t(e,t,n,r){if(n8(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function O2t(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",a=Mle(r)[i]||{},s=Mle(r)[i]={};Et(e,function(d,h){var p=d.axisPointerModel.option;p.status==="show"&&d.triggerEmphasis&&Et(p.seriesDataIndices,function(v){var g=v.seriesIndex+" | "+v.dataIndex;s[g]=v})});var l=[],c=[];Et(a,function(d,h){!s[h]&&c.push(d)}),Et(s,function(d,h){!a[h]&&l.push(d)}),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function $2t(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function $le(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function n8(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function f3e(e){i3e.registerAxisPointerClass("CartesianAxisPointer",_2t),e.registerComponentModel(k2t),e.registerComponentView(A2t),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!er(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=J3t(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},I2t)}function h3e(e){qh(f2t),qh(f3e)}function B2t(e,t){var n=HA(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Js({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var N2t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(ho);function p3e(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function v3e(e){if(zr.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(d=a==="left"?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(d=a==="top"?225:45)+"deg)");var h=d*Math.PI/180,p=s+i,v=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),g=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-p)/2)*100)/100;l+=";"+a+":-"+g+"px";var y=t+" solid "+i+"px;",S=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+y,"border-right:"+y,"background-color:"+r+";"];return'
'}function W2t(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=zr.transformSupported?","+CG+r:",left"+r+",top"+r),V2t+":"+i}function Ble(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!zr.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=zr.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+CG+":"+s+";":[["top",0],["left",0],[m3e,s]]}function G2t(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=yi(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),s=e.get("textShadowBlur")||0,l=e.get("textShadowOffsetX")||0,c=e.get("textShadowOffsetY")||0;return a&&s&&t.push("text-shadow:"+l+"px "+c+"px "+s+"px "+a),Et(["decoration","align"],function(d){var h=e.get(d);h&&t.push("text-"+d+":"+h)}),t.join(";")}function K2t(e,t,n){var r=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),c=e.get("shadowOffsetX"),d=e.get("shadowOffsetY"),h=e.getModel("textStyle"),p=P1e(e,"html"),v=c+"px "+d+"px "+s+"px "+l;return r.push("box-shadow:"+v),t&&i&&r.push(W2t(i,n)),a&&r.push("background-color:"+a),Et(["width","color","radius"],function(g){var y="border-"+g,S=s1e(y),k=e.get(S);k!=null&&r.push(y+":"+k+(g==="color"?"":"px"))}),r.push(G2t(h)),p!=null&&r.push("padding:"+HA(p).join("px ")+"px"),r.join(";")+";"}function Nle(e,t,n,r,i){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&hft(e,s,n,r,i)}else{e[0]=r,e[1]=i;var l=a&&a.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var q2t=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,zr.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=n.appendTo,s=a&&(br(a)?document.querySelector(a):f_(a)?a:ii(a)&&a(t.getDom()));Nle(this._styleCoord,i,s,t.getWidth()/2,t.getHeight()/2),(s||t.getDom()).appendChild(r),this._api=t,this._container=s;var l=this;r.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},r.onmousemove=function(c){if(c=c||window.event,!l._enterable){var d=i.handler,h=i.painter.getViewportRoot();Pc(h,c,!0),d.dispatch("mousemove",c)}},r.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=j2t(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=z2t+K2t(t,!this._firstShow,this._longHide)+Ble(a[0],a[1],!0)+("border-color:"+Um(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,a){var s=this.el;if(t==null){s.innerHTML="";return}var l="";if(br(a)&&r.get("trigger")==="item"&&!p3e(r)&&(l=H2t(r,i,a)),br(t))s.innerHTML=t+l;else if(t){s.innerHTML="",er(t)||(t=[t]);for(var c=0;c=0?this._tryShow(a,s):i==="leave"&&this._hide(s))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&s.manuallyShowTip(n,r,i,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,a){if(!(a.from===this.uid||zr.node||!i.getDom())){var s=Vle(a,i);this._ticket="";var l=a.dataByCoordSys,c=t4t(a,r,i);if(c){var d=c.el.getBoundingRect().clone();d.applyTransform(c.el.transform),this._tryShow({offsetX:d.x+d.width/2,offsetY:d.y+d.height/2,target:c.el,position:a.position,positionDefault:"bottom"},s)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=X2t;h.x=a.x,h.y=a.y,h.update(),Yi(h).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:h},s)}else if(l)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:l,tooltipOption:a.tooltipOption},s);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,a))return;var p=d3e(a,r),v=p.point[0],g=p.point[1];v!=null&&g!=null&&this._tryShow({offsetX:v,offsetY:g,target:p.el,position:a.position,positionDefault:"bottom"},s)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},s))}},t.prototype.manuallyHideTip=function(n,r,i,a){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Vle(a,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,a){var s=a.seriesIndex,l=a.dataIndex,c=r.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||c==null)){var d=r.getSeriesByIndex(s);if(d){var h=d.getData(),p=g4([h.getItemModel(l),d,(d.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:a.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var s=n.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,n);else if(i){var l=Yi(i);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,d;F4(i,function(h){if(Yi(h).dataIndex!=null)return c=h,!0;if(Yi(h).tooltipConfig!=null)return d=h,!0},!0),c?this._showSeriesItemTooltip(n,c,r):d?this._showComponentItemTooltip(n,d,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Mo(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,a=this._tooltipModel,s=[r.offsetX,r.offsetY],l=g4([r.tooltipOption],a),c=this._renderMode,d=[],h=k_("section",{blocks:[],noHeader:!0}),p=[],v=new uF;Et(n,function(x){Et(x.dataByAxis,function(E){var _=i.getComponent(E.axisDim+"Axis",E.axisIndex),T=E.value;if(!(!_||T==null)){var D=l3e(T,_.axis,i,E.seriesDataIndices,E.valueLabelOpt),P=k_("section",{header:D,noHeader:!hf(D),sortBlocks:!0,blocks:[]});h.blocks.push(P),Et(E.seriesDataIndices,function(M){var $=i.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,B=$.getDataParams(L);if(!(B.dataIndex<0)){B.axisDim=E.axisDim,B.axisIndex=E.axisIndex,B.axisType=E.axisType,B.axisId=E.axisId,B.axisValue=yG(_.axis,{value:T}),B.axisValueLabel=D,B.marker=v.makeTooltipMarker("item",Um(B.color),c);var j=Qse($.formatTooltip(L,!0,null)),H=j.frag;if(H){var U=g4([$],a).get("valueFormatter");P.blocks.push(U?yn({valueFormatter:U},H):H)}j.text&&p.push(j.text),d.push(B)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,y=l.get("order"),S=iae(h,v,c,y,i.get("useUTC"),l.get("textStyle"));S&&p.unshift(S);var k=c==="richText"?` -`:"
",C=p.join(k);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,d)?this._updatePosition(l,g,s[0],s[1],this._tooltipContent,d):this._showTooltipContent(l,C,d,Math.random()+"",s[0],s[1],g,null,v)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var a=this._ecModel,s=Yi(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),d=s.dataModel||c,h=s.dataIndex,p=s.dataType,v=d.getData(p),g=this._renderMode,y=n.positionDefault,S=g4([v.getItemModel(h),d,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),k=S.get("trigger");if(!(k!=null&&k!=="item")){var C=d.getDataParams(h,p),x=new aF;C.marker=x.makeTooltipMarker("item",zm(C.color),g);var E=Qse(d.formatTooltip(h,!1,p)),_=S.get("order"),T=S.get("valueFormatter"),D=E.frag,P=D?iae(T?yn({valueFormatter:T},D):D,x,g,_,a.get("useUTC"),S.get("textStyle")):E.text,M="item_"+d.name+"_"+h;this._showOrMove(S,function(){this._showTooltipContent(S,P,C,M,n.offsetX,n.offsetY,n.position,n.target,x)}),i({type:"showTip",dataIndexInside:h,dataIndex:v.getRawIndex(h),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var a=this._renderMode==="html",s=Yi(r),l=s.tooltipConfig,c=l.option||{},d=c.encodeHTMLContent;if(br(c)){var h=c;c={content:h,formatter:h},d=!0}d&&a&&c.content&&(c=zi(c),c.content=bu(c.content));var p=[c],v=this._ecModel.getComponent(s.componentMainType,s.componentIndex);v&&p.push(v),p.push({formatter:c.content});var g=n.positionDefault,y=g4(p,this._tooltipModel,g?{position:g}:null),S=y.get("content"),k=Math.random()+"",C=new aF;this._showOrMove(y,function(){var x=zi(y.get("formatterParams")||{});this._showTooltipContent(y,S,x,k,n.offsetX,n.offsetY,n.position,r,C)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,a,s,l,c,d,h){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var p=this._tooltipContent;p.setEnterable(n.get("enterable"));var v=n.get("formatter");c=c||n.get("position");var g=r,y=this._getNearestPoint([s,l],i,n.get("trigger"),n.get("borderColor")),S=y.color;if(v)if(br(v)){var k=n.ecModel.get("useUTC"),C=er(i)?i[0]:i,x=C&&C.axisType&&C.axisType.indexOf("time")>=0;g=v,x&&(g=BA(C.axisValue,g,k)),g=a1e(g,i,!0)}else if(ni(v)){var E=Mo(function(_,T){_===this._ticket&&(p.setContent(T,h,n,S,c),this._updatePosition(n,c,s,l,p,i,d))},this);this._ticket=a,g=v(i,a,E)}else g=v;p.setContent(g,h,n,S,c),p.show(n,S),this._updatePosition(n,c,s,l,p,i,d)}},t.prototype._getNearestPoint=function(n,r,i,a){if(i==="axis"||er(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!er(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,a,s,l,c){var d=this._api.getWidth(),h=this._api.getHeight();r=r||n.get("position");var p=s.getSize(),v=n.get("align"),g=n.get("verticalAlign"),y=c&&c.getBoundingRect().clone();if(c&&y.applyTransform(c.transform),ni(r)&&(r=r([i,a],l,s.el,y,{viewSize:[d,h],contentSize:p.slice()})),er(r))i=Qo(r[0],d),a=Qo(r[1],h);else if(Ir(r)){var S=r;S.width=p[0],S.height=p[1];var k=jy(S,{width:d,height:h});i=k.x,a=k.y,v=null,g=null}else if(br(r)&&c){var C=K2t(r,y,p,n.get("borderWidth"));i=C[0],a=C[1]}else{var C=W2t(i,a,s,d,h,v?null:20,g?null:20);i=C[0],a=C[1]}if(v&&(i-=zle(v)?p[0]/2:v==="right"?p[0]:0),g&&(a-=zle(g)?p[1]/2:g==="bottom"?p[1]:0),p3e(n)){var C=G2t(i,a,s,d,h);i=C[0],a=C[1]}s.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,s=!!i&&i.length===n.length;return s&&Et(i,function(l,c){var d=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&d.length===p.length,s&&Et(d,function(v,g){var y=p[g]||{},S=v.seriesDataIndices||[],k=y.seriesDataIndices||[];s=s&&v.value===y.value&&v.axisType===y.axisType&&v.axisId===y.axisId&&S.length===k.length,s&&Et(S,function(C,x){var E=k[x];s=s&&C.seriesIndex===E.seriesIndex&&C.dataIndex===E.dataIndex}),a&&Et(v.seriesDataIndices,function(C){var x=C.seriesIndex,E=r[x],_=a[x];E&&_&&_.data!==E.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){Vr.node||!r.getDom()||(mz(this,"_updatePosition"),this._tooltipContent.dispose(),Mz("itemTooltip",r))},t.type="tooltip",t})($d);function g4(e,t,n){var r=t.ecModel,i;n?(i=new xs(n,r,r),i=new xs(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof xs&&(s=s.get("tooltip",!0)),br(s)&&(s={formatter:s}),s&&(i=new xs(s,i,r)))}return i}function Vle(e,t){return e.dispatchAction||Mo(t.dispatchAction,t)}function W2t(e,t,n,r,i,a,s){var l=n.getSize(),c=l[0],d=l[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),s!=null&&(t+d+s>i?t-=d+s:t+=s),[e,t]}function G2t(e,t,n,r,i){var a=n.getSize(),s=a[0],l=a[1];return e=Math.min(e+s,r)-s,t=Math.min(t+l,i)-l,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function K2t(e,t,n,r){var i=n[0],a=n[1],s=Math.ceil(Math.SQRT2*r)+8,l=0,c=0,d=t.width,h=t.height;switch(e){case"inside":l=t.x+d/2-i/2,c=t.y+h/2-a/2;break;case"top":l=t.x+d/2-i/2,c=t.y-a-s;break;case"bottom":l=t.x+d/2-i/2,c=t.y+h+s;break;case"left":l=t.x-i-s,c=t.y+h/2-a/2;break;case"right":l=t.x+d+s,c=t.y+h/2-a/2}return[l,c]}function zle(e){return e==="center"||e==="middle"}function q2t(e,t,n){var r=MW(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=gS(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),s=a.models[0];if(s){var l=n.getViewOfComponentModel(s),c;if(l.group.traverse(function(d){var h=Yi(d).tooltipConfig;if(h&&h.name===e.name)return c=d,!0}),c)return{componentMainType:i,componentIndex:s.componentIndex,el:c}}}}function y3e(e){Gh(f3e),e.registerComponentModel(D2t),e.registerComponentView(H2t),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Lu),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Lu)}var Y2t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(ho),X2t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){if(this.group.removeAll(),!!n.get("show")){var a=this.group,s=n.getModel("textStyle"),l=n.getModel("subtextStyle"),c=n.get("textAlign"),d=gi(n.get("textBaseline"),n.get("textVerticalAlign")),h=new el({style:D0(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),v=n.get("subtext"),g=new el({style:D0(l,{text:v,fill:l.getTextColor(),y:p.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=n.get("link"),S=n.get("sublink"),k=n.get("triggerEvent",!0);h.silent=!y&&!k,g.silent=!S&&!k,y&&h.on("click",function(){$se(y,"_"+n.get("target"))}),S&&g.on("click",function(){$se(S,"_"+n.get("subtarget"))}),Yi(h).eventData=Yi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),v&&a.add(g);var C=a.getBoundingRect(),x=n.getBoxLayoutParams();x.width=C.width,x.height=C.height;var E=jy(x,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));c||(c=n.get("left")||n.get("right"),c==="middle"&&(c="center"),c==="right"?E.x+=E.width:c==="center"&&(E.x+=E.width/2)),d||(d=n.get("top")||n.get("bottom"),d==="center"&&(d="middle"),d==="bottom"?E.y+=E.height:d==="middle"&&(E.y+=E.height/2),d=d||"top"),a.x=E.x,a.y=E.y,a.markRedraw();var _={align:c,verticalAlign:d};h.setStyle(_),g.setStyle(_),C=a.getBoundingRect();var T=E.margin,D=n.getItemStyle(["color","opacity"]);D.fill=n.get("backgroundColor");var P=new Js({shape:{x:C.x-T[3],y:C.y-T[0],width:C.width+T[1]+T[3],height:C.height+T[0]+T[2],r:n.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});a.add(P)}},t.type="title",t})($d);function b3e(e){e.registerComponentModel(Y2t),e.registerComponentView(X2t)}var Z2t=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},$z=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),er(r)&&Et(r,function(a,s){br(a)&&(a={type:a}),r[s]=ao(a,Z2t(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(ho),T1=Rs,Oz=Et,gC=Qa,_3e=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new gC),this.group.add(this._selectorGroup=new gC),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var s=n.get("align"),l=n.get("orient");(!s||s==="auto")&&(s=n.get("left")==="right"&&l==="vertical"?"right":"left");var c=n.get("selector",!0),d=n.get("selectorPosition",!0);c&&(!d||d==="auto")&&(d=l==="horizontal"?"end":"start"),this.renderInner(s,n,r,i,c,l,d);var h=n.getBoxLayoutParams(),p={width:i.getWidth(),height:i.getHeight()},v=n.get("padding"),g=jy(h,p,v),y=this.layoutInner(n,s,g,a,c,d),S=jy(co({width:y.width,height:y.height},h),p,v);this.group.x=S.x-y.x,this.group.y=S.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=L2t(y,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,a,s,l,c){var d=this.getContentGroup(),h=xi(),p=r.get("selectedMode"),v=[];i.eachRawSeries(function(g){!g.get("legendHoverLink")&&v.push(g.id)}),Oz(r.getData(),function(g,y){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` -`)){var k=new gC;k.newline=!0,d.add(k);return}var C=i.getSeriesByName(S)[0];if(!h.get(S))if(C){var x=C.getData(),E=x.getVisual("legendLineStyle")||{},_=x.getVisual("legendIcon"),T=x.getVisual("style"),D=this._createItem(C,S,y,g,r,n,E,T,_,p,a);D.on("click",T1(Ule,S,null,a,v)).on("mouseover",T1(Bz,C.name,null,a,v)).on("mouseout",T1(Nz,C.name,null,a,v)),i.ssr&&D.eachChild(function(P){var M=Yi(P);M.seriesIndex=C.seriesIndex,M.dataIndex=y,M.ssrType="legend"}),h.set(S,!0)}else i.eachRawSeries(function(P){if(!h.get(S)&&P.legendVisualProvider){var M=P.legendVisualProvider;if(!M.containName(S))return;var O=M.indexOfName(S),L=M.getItemVisual(O,"style"),B=M.getItemVisual(O,"legendIcon"),j=Rh(L.fill);j&&j[3]===0&&(j[3]=.2,L=yn(yn({},L),{fill:kA(j,"rgba")}));var H=this._createItem(P,S,y,g,r,n,{},L,B,p,a);H.on("click",T1(Ule,null,S,a,v)).on("mouseover",T1(Bz,null,S,a,v)).on("mouseout",T1(Nz,null,S,a,v)),i.ssr&&H.eachChild(function(U){var K=Yi(U);K.seriesIndex=P.seriesIndex,K.dataIndex=y,K.ssrType="legend"}),h.set(S,!0)}},this)},this),s&&this._createSelector(s,r,a,l,c)},t.prototype._createSelector=function(n,r,i,a,s){var l=this.getSelectorGroup();Oz(n,function(d){var h=d.type,p=new el({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});l.add(p);var v=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);_S(p,{normal:v,emphasis:g},{defaultText:d.title}),oz(p)})},t.prototype._createItem=function(n,r,i,a,s,l,c,d,h,p,v){var g=n.visualDrawType,y=s.get("itemWidth"),S=s.get("itemHeight"),k=s.isSelected(r),C=a.get("symbolRotate"),x=a.get("symbolKeepAspect"),E=a.get("icon");h=E||h||"roundRect";var _=J2t(h,a,c,d,g,k,v),T=new gC,D=a.getModel("textStyle");if(ni(n.getLegendIcon)&&(!E||E==="inherit"))T.add(n.getLegendIcon({itemWidth:y,itemHeight:S,icon:h,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));else{var P=E==="inherit"&&n.getData().getVisual("symbol")?C==="inherit"?n.getData().getVisual("symbolRotate"):C:0;T.add(Q2t({itemWidth:y,itemHeight:S,icon:h,iconRotate:P,itemStyle:_.itemStyle,symbolKeepAspect:x}))}var M=l==="left"?y+5:-5,O=l,L=s.get("formatter"),B=r;br(L)&&L?B=L.replace("{name}",r??""):ni(L)&&(B=L(r));var j=k?D.getTextColor():a.get("inactiveColor");T.add(new el({style:D0(D,{text:B,x:M,y:S/2,fill:j,align:O,verticalAlign:"middle"},{inheritColor:j})}));var H=new Js({shape:T.getBoundingRect(),style:{fill:"transparent"}}),U=a.getModel("tooltip");return U.get("show")&&PA({el:H,componentModel:s,itemName:r,itemTooltipOption:U.option}),T.add(H),T.eachChild(function(K){K.silent=!0}),H.silent=!p,this.getContentGroup().add(T),oz(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(n,r,i,a,s,l){var c=this.getContentGroup(),d=this.getSelectorGroup();Ab(n.get("orient"),c,n.get("itemGap"),i.width,i.height);var h=c.getBoundingRect(),p=[-h.x,-h.y];if(d.markRedraw(),c.markRedraw(),s){Ab("horizontal",d,n.get("selectorItemGap",!0));var v=d.getBoundingRect(),g=[-v.x,-v.y],y=n.get("selectorButtonGap",!0),S=n.getOrient().index,k=S===0?"width":"height",C=S===0?"height":"width",x=S===0?"y":"x";l==="end"?g[S]+=h[k]+y:p[S]+=v[k]+y,g[1-S]+=h[C]/2-v[C]/2,d.x=g[0],d.y=g[1],c.x=p[0],c.y=p[1];var E={x:0,y:0};return E[k]=h[k]+y+v[k],E[C]=Math.max(h[C],v[C]),E[x]=Math.min(0,v[x]+g[1-S]),E}else return c.x=p[0],c.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})($d);function J2t(e,t,n,r,i,a,s){function l(k,C){k.lineWidth==="auto"&&(k.lineWidth=C.lineWidth>0?2:0),Oz(k,function(x,E){k[E]==="inherit"&&(k[E]=C[E])})}var c=t.getModel("itemStyle"),d=c.getItemStyle(),h=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=c.getShallow("decal");d.decal=!p||p==="inherit"?r.decal:Sz(p,s),d.fill==="inherit"&&(d.fill=r[i]),d.stroke==="inherit"&&(d.stroke=r[h]),d.opacity==="inherit"&&(d.opacity=(i==="fill"?r:n).opacity),l(d,r);var v=t.getModel("lineStyle"),g=v.getLineStyle();if(l(g,n),d.fill==="auto"&&(d.fill=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!a){var y=t.get("inactiveBorderWidth"),S=d[h];d.lineWidth=y==="auto"?r.lineWidth>0&&S?2:0:d.lineWidth,d.fill=t.get("inactiveColor"),d.stroke=t.get("inactiveBorderColor"),g.stroke=v.get("inactiveColor"),g.lineWidth=v.get("inactiveWidth")}return{itemStyle:d,lineStyle:g}}function Q2t(e){var t=e.icon||"roundRect",n=Uy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function Ule(e,t,n,r){Nz(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),Bz(e,t,n,r)}function S3e(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[s],k=[-g.x,-g.y];r||(k[a]=h[d]);var C=[0,0],x=[-y.x,-y.y],E=gi(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var _=n.get("pageButtonPosition",!0);_==="end"?x[a]+=i[s]-y[s]:C[a]+=y[s]+E}x[1-a]+=g[l]/2-y[l]/2,h.setPosition(k),p.setPosition(C),v.setPosition(x);var T={x:0,y:0};if(T[s]=S?i[s]:g[s],T[l]=Math.max(g[l],y[l]),T[c]=Math.min(0,y[c]+x[1-a]),p.__rectSize=i[s],S){var D={x:0,y:0};D[s]=Math.max(i[s]-y[s]-E,0),D[l]=T[l],p.setClipPath(new Js({shape:D})),p.__rectSize=D[s]}else v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var P=this._getPageInfo(n);return P.pageIndex!=null&&eu(h,{x:P.contentPosition[0],y:P.contentPosition[1]},S?n:null),this._updatePageInfoView(n,P),T},t.prototype._pageGo=function(n,r,i){var a=this._getPageInfo(r)[n];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;Et(["pagePrev","pageNext"],function(h){var p=h+"DataIndex",v=r[p]!=null,g=i.childOfName(h);g&&(g.setStyle("fill",v?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),g.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),s=n.get("pageFormatter"),l=r.pageIndex,c=l!=null?l+1:0,d=r.pageCount;a&&s&&a.setStyle("text",br(s)?s.replace("{current}",c==null?"":c+"").replace("{total}",d==null?"":d+""):s({current:c,total:d}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,s=n.getOrient().index,l=PF[s],c=RF[s],d=this._findTargetItemIndex(r),h=i.children(),p=h[d],v=h.length,g=v?1:0,y={contentPosition:[i.x,i.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return y;var S=_(p);y.contentPosition[s]=-S.s;for(var k=d+1,C=S,x=S,E=null;k<=v;++k)E=_(h[k]),(!E&&x.e>C.s+a||E&&!T(E,C.s))&&(x.i>C.i?C=x:C=E,C&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=C.i),++y.pageCount)),x=E;for(var k=d-1,C=S,x=S,E=null;k>=-1;--k)E=_(h[k]),(!E||!T(x,E.s))&&C.i=P&&D.s<=P+a}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(s,l){var c=s.__legendDataIndex;a==null&&c!=null&&(a=l),c===n&&(r=l)}),r??a},t.type="legend.scroll",t})(_3e);function i4t(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function o4t(e){Gh(k3e),e.registerComponentModel(n4t),e.registerComponentView(r4t),i4t(e)}function x3e(e){Gh(k3e),Gh(o4t)}const s4t=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function a4t(e){function t(r){return(...i)=>{if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function n(){const r=Object.create(null);return s4t.forEach(i=>{r[i]=t(i)}),r}return n()}function l4t(e,t,n){It([n,e,t],([r,i,a],s,l)=>{let c=null;if(r&&i&&a){const{offsetWidth:d,offsetHeight:h}=r,p=a===!0?{}:a,{throttle:v=100,onResize:g}=p;let y=!1;const S=()=>{i.resize(),g?.()},k=v?GA(S,v):S;c=new ResizeObserver(()=>{!y&&(y=!0,r.offsetWidth===d&&r.offsetHeight===h)||k()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const u4t={autoresize:[Boolean,Object]},c4t=/^on[^a-z]/,C3e=e=>c4t.test(e);function d4t(e){const t={};for(const n in e)C3e(n)||(t[n]=e[n]);return t}function n8(e,t){const n=Bo(e)?rt(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const f4t="ecLoadingOptions";function h4t(e,t,n){const r=Pn(f4t,{}),i=F(()=>({...n8(r,{}),...n?.value}));Os(()=>{const a=e.value;a&&(t.value?a.showLoading(i.value):a.hideLoading())})}const p4t={loading:Boolean,loadingOptions:Object};let b4=null;const w3e="x-vue-echarts";function v4t(){if(b4!=null)return b4;if(typeof HTMLElement>"u"||typeof customElements>"u")return b4=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(w3e)}catch{return b4=!1}return b4=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} -`;const m4t=v4t(),g4t="ecTheme",y4t="ecInitOptions",b4t="ecUpdateOptions",Kle=/(^&?~?!?)native:/;var E3e=we({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...u4t,...p4t},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=f0(),r=f0(),i=f0(),a=Pn(g4t,null),s=Pn(y4t,null),l=Pn(b4t,null),{autoresize:c,manualUpdate:d,loading:h,loadingOptions:p}=tn(e),v=F(()=>i.value||e.option||null),g=F(()=>e.theme||n8(a,{})),y=F(()=>e.initOptions||n8(s,{})),S=F(()=>e.updateOptions||n8(l,{})),k=F(()=>d4t(t)),C={},x=So().proxy.$listeners,E={};x?Object.keys(x).forEach(O=>{Kle.test(O)?C[O.replace(Kle,"$1")]=x[O]:E[O]=x[O]}):Object.keys(t).filter(O=>C3e(O)).forEach(O=>{let L=O.charAt(2).toLowerCase()+O.slice(3);if(L.indexOf("native:")===0){const B=`on${L.charAt(7).toUpperCase()}${L.slice(8)}`;C[B]=t[O];return}L.substring(L.length-4)==="Once"&&(L=`~${L.substring(0,L.length-4)}`),E[L]=t[O]});function _(O){if(!n.value)return;const L=r.value=Zgt(n.value,g.value,y.value);e.group&&(L.group=e.group),Object.keys(E).forEach(H=>{let U=E[H];if(!U)return;let K=H.toLowerCase();K.charAt(0)==="~"&&(K=K.substring(1),U.__once__=!0);let Y=L;if(K.indexOf("zr:")===0&&(Y=L.getZr(),K=K.substring(3)),U.__once__){delete U.__once__;const ie=U;U=(...te)=>{ie(...te),Y.off(K,U)}}Y.on(K,U)});function B(){L&&!L.isDisposed()&&L.resize()}function j(){const H=O||v.value;H&&L.setOption(H,S.value)}c.value?dn(()=>{B(),j()}):j()}function T(O,L){e.manualUpdate&&(i.value=O),r.value?r.value.setOption(O,L||{}):_(O)}function D(){r.value&&(r.value.dispose(),r.value=void 0)}let P=null;It(d,O=>{typeof P=="function"&&(P(),P=null),O||(P=It(()=>e.option,(L,B)=>{L&&(r.value?r.value.setOption(L,{notMerge:L!==B,...S.value}):_())},{deep:!0}))},{immediate:!0}),It([g,y],()=>{D(),_()},{deep:!0}),Os(()=>{e.group&&r.value&&(r.value.group=e.group)});const M=a4t(r);return h4t(r,h,p),l4t(r,c,n),hn(()=>{_()}),_o(()=>{m4t&&n.value?n.value.__dispose=D:D()}),{chart:r,root:n,setOption:T,nonEventAttrs:k,nativeListeners:C,...M}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",fa(w3e,e)}});const wu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},T3e=()=>new Date().toISOString().split("T")[0],_4t=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},S4t=()=>{const e=new Date,t=e.getDay(),n=new Date(e);n.setDate(e.getDate()-t);const r=[];for(let i=0;i<7;i++){const a=new Date(n);a.setDate(n.getDate()+i),r.push(a.toISOString().split("T")[0])}return r},wf=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},PT=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},A3e=e=>{const t=T3e(),n=new Date().toISOString(),r=wf(wu.WATCH_HISTORY,[]),i={id:Date.now(),videoId:e.id,videoTitle:e.title,episode:e.episode||1,duration:e.duration||0,watchTime:e.watchTime||0,date:t,timestamp:n};return r.push(i),r.length>1e3&&r.splice(0,r.length-1e3),PT(wu.WATCH_HISTORY,r),EG(t),i},EG=e=>{const t=wf(wu.DAILY_STATS,{}),n=wf(wu.WATCH_HISTORY,[]),r=n.filter(i=>i.date===e).length;t[e]={date:e,watchCount:r,totalWatchTime:n.filter(i=>i.date===e).reduce((i,a)=>i+(a.watchTime||0),0),updatedAt:new Date().toISOString()},PT(wu.DAILY_STATS,t)},I3e=()=>{const e=T3e(),t=wf(wu.DAILY_STATS,{});return t[e]?t[e]:(EG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},L3e=()=>{const e=_4t(),t=wf(wu.DAILY_STATS,{});return t[e]?t[e]:(EG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},k4t=()=>{const e=S4t(),t=wf(wu.DAILY_STATS,{});return e.map((r,i)=>{const a=["周日","周一","周二","周三","周四","周五","周六"],s=t[r]||{watchCount:0,totalWatchTime:0};return{day:a[i],date:r,count:s.watchCount,totalWatchTime:s.totalWatchTime}})},x4t=()=>{const e=I3e(),t=L3e();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},C4t=(e=50)=>wf(wu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),w4t=(e=10)=>{const t=wf(wu.WATCH_HISTORY,[]),n={};return t.forEach(r=>{const i=r.videoId;n[i]||(n[i]={videoId:r.videoId,videoTitle:r.videoTitle,watchCount:0,lastWatched:r.timestamp}),n[i].watchCount++,new Date(r.timestamp)>new Date(n[i].lastWatched)&&(n[i].lastWatched=r.timestamp)}),Object.values(n).sort((r,i)=>i.watchCount-r.watchCount).slice(0,e)},E4t=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],i=wf(wu.WATCH_HISTORY,[]).filter(l=>l.date>=n);PT(wu.WATCH_HISTORY,i);const a=wf(wu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),PT(wu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},T4t=()=>{const e=[{id:"video_1",title:"斗罗大陆",episode:1},{id:"video_2",title:"庆余年",episode:2},{id:"video_3",title:"流浪地球2",episode:1},{id:"video_4",title:"鬼灭之刃",episode:5},{id:"video_5",title:"三体",episode:3}];for(let t=6;t>=0;t--){const n=new Date;n.setDate(n.getDate()-t);const r=Math.floor(Math.random()*5)+1;for(let i=0;i({feature:{label:"新功能",color:"#00b42a",icon:"🚀"},improvement:{label:"功能优化",color:"#165dff",icon:"⚡"},optimization:{label:"性能优化",color:"#ff7d00",icon:"🔧"},security:{label:"安全更新",color:"#f53f3f",icon:"🔒"},bugfix:{label:"Bug修复",color:"#722ed1",icon:"🐛"},release:{label:"版本发布",color:"#f7ba1e",icon:"🎉"}}),P3e=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),A4t=()=>Fc.sort((e,t)=>new Date(t.date)-new Date(e.date)),I4t=e=>Fc.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),L4t=e=>Fc.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),D4t=(e=5)=>Fc.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),P4t=(e,t)=>{const n=new Date(e),r=new Date(t);return Fc.filter(i=>{const a=new Date(i.date);return a>=n&&a<=r}).sort((i,a)=>new Date(a.date)-new Date(i.date))},R4t=e=>{const t=e.toLowerCase();return Fc.filter(n=>n.title.toLowerCase().includes(t)||n.description.toLowerCase().includes(t)||n.version.toLowerCase().includes(t)||n.changes.some(r=>r.toLowerCase().includes(t))).sort((n,r)=>new Date(r.date)-new Date(n.date))},M4t=()=>{const e=D3e(),t=P3e(),n={};Object.keys(e).forEach(a=>{n[a]=Fc.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=Fc.filter(s=>s.importance===a).length});const i={};return Fc.forEach(a=>{const s=a.date.substring(0,7);i[s]=(i[s]||0)+1}),{total:Fc.length,byType:n,byImportance:r,byMonth:i,latestVersion:Fc[0]?.version||"v1.0.0",latestDate:Fc[0]?.date||new Date().toISOString().split("T")[0]}},$4t=e=>{const t=new Date(e),r=Math.abs(new Date-t),i=Math.ceil(r/(1e3*60*60*24));return i===1?"昨天":i<=7?`${i}天前`:i<=30?`${Math.floor(i/7)}周前`:t.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric"})},O4t=(e,t)=>{const n=e.replace("v","").split(".").map(Number),r=t.replace("v","").split(".").map(Number);for(let i=0;is)return 1;if(aRi,N4t=e=>Ri[e]||[],F4t=(e=12)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),j4t=(e=8)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),V4t=(e,t=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.category===e).sort((r,i)=>i.hotScore-r.hotScore).slice(0,t),z4t=(e,t=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.tags.includes(e)).sort((r,i)=>i.hotScore-r.hotScore).slice(0,t),U4t=e=>{const t=e.toLowerCase();return[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.title.toLowerCase().includes(t)||r.description.toLowerCase().includes(t)||r.tags.some(i=>i.toLowerCase().includes(t))||r.author&&r.author.toLowerCase().includes(t)).sort((r,i)=>i.hotScore-r.hotScore)},H4t=()=>ZA.sort((e,t)=>t.count-e.count),W4t=(e=10)=>ZA.sort((t,n)=>n.count-t.count).slice(0,e),G4t=(e=5)=>ZA.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),K4t=(e=[],t=8)=>{const n=q4t();return[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].map(a=>{let s=a.hotScore;return n.types[a.type]&&(s+=n.types[a.type]*10),n.categories[a.category]&&(s+=n.categories[a.category]*15),a.tags.forEach(l=>{n.tags[l]&&(s+=n.tags[l]*5)}),{...a,recommendScore:s}}).sort((a,s)=>s.recommendScore-a.recommendScore).slice(0,t)},q4t=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),Y4t=()=>{const e=[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels],t={};Object.keys(Ri).forEach(a=>{t[a]=Ri[a].length});const n={};e.forEach(a=>{n[a.category]=(n[a.category]||0)+1});const r=e.filter(a=>a.trending).length,i=e.reduce((a,s)=>a+s.rating,0)/e.length;return{total:e.length,byType:t,byCategory:n,trending:r,averageRating:Math.round(i*10)/10,hotKeywords:ZA.length}},X4t=(e=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].sort(()=>.5-Math.random()).slice(0,e),S4={getAllRecommendations:B4t,getRecommendationsByType:N4t,getHotRecommendations:F4t,getTrendingRecommendations:j4t,getRecommendationsByCategory:V4t,getRecommendationsByTag:z4t,searchRecommendations:U4t,getAllKeywords:H4t,getHotKeywords:W4t,getTrendingUpKeywords:G4t,getPersonalizedRecommendations:K4t,getRecommendationStats:Y4t,getRandomRecommendations:X4t},TG="drplayer_page_states",MF=()=>{try{const e=sessionStorage.getItem(TG);if(e){const t=JSON.parse(e);return console.log("🔄 [存储] 从SessionStorage加载页面状态:",t),t}}catch(e){console.error("从SessionStorage加载页面状态失败:",e)}return{video:{activeKey:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null},home:{scrollPosition:0,lastUpdateTime:null},search:{keyword:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null}}},$F=e=>{try{sessionStorage.setItem(TG,JSON.stringify(e)),console.log("🔄 [存储] 保存页面状态到SessionStorage:",e)}catch(t){console.error("保存页面状态到SessionStorage失败:",t)}},kS=sg("pageState",{state:()=>({pageStates:MF()}),actions:{savePageState(e,t){this.pageStates[e]||(this.pageStates[e]={}),this.pageStates[e]={...this.pageStates[e],...t,lastUpdateTime:Date.now()},$F(this.pageStates),console.log(`🔄 [状态保存] 页面状态 [${e}]:`,this.pageStates[e])},getPageState(e){const t=this.pageStates[e];return console.log(`获取页面状态 [${e}]:`,t),t||{}},clearPageState(e){this.pageStates[e]&&(this.pageStates[e]={},$F(this.pageStates),console.log(`🔄 [状态清除] 页面状态 [${e}]`))},isStateExpired(e,t=1800*1e3){const n=this.pageStates[e];return!n||!n.lastUpdateTime?!0:Date.now()-n.lastUpdateTime>t},saveVideoState(e,t,n,r,i,a=0){this.savePageState("video",{activeKey:e,currentPage:t,videos:[...n],hasMore:r,loading:i,scrollPosition:a})},saveSearchState(e,t,n,r,i,a=0){this.savePageState("search",{keyword:e,currentPage:t,videos:[...n],hasMore:r,loading:i,scrollPosition:a})},saveScrollPosition(e,t){this.pageStates[e]&&(this.pageStates[e].scrollPosition=t,this.pageStates[e].lastUpdateTime=Date.now(),$F(this.pageStates))},getScrollPosition(e){const t=this.pageStates[e];return t&&t.scrollPosition||0},reloadFromStorage(){this.pageStates=MF(),console.log("🔄 [存储] 重新加载页面状态:",this.pageStates)},clearAllStorage(){try{sessionStorage.removeItem(TG),this.pageStates=MF(),console.log("🔄 [存储] 清除所有页面状态")}catch(e){console.error("清除SessionStorage失败:",e)}}},getters:{videoState:e=>e.pageStates.video||{},searchState:e=>e.pageStates.search||{},homeState:e=>e.pageStates.home||{}}}),Z4t="识别动作的路由ID或专项动作指令,必须。字符型。",J4t="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",Q4t="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",ebt="标题。字符型。",tbt="宽度。整型。",nbt="高度。整型。",rbt="文本消息内容。字符型。",ibt="msgbox类动作的简单html消息内容。字符型。",obt="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",sbt="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",abt="图片URL。字符型。",lbt="图片高度。整型。",ubt="是否检测图片的点击坐标输入。逻辑型。",cbt="生成二维码的URL。字符型。",dbt="二维码的大小。整型。",fbt="超时时间(秒)。超时自动关闭窗口。整型。",hbt="T4源的动作网络访问超时时间(秒)。",pbt="输入确认后,窗口是否保持。逻辑型。",vbt="窗口弹出时自动发送的初始化动作指令。字符型。",mbt="窗口弹出时自动发送的初始化指令值。字符型。",gbt="按窗口的取消键时发送的取消动作指令。字符型。",ybt="按窗口的取消键时发送的取消动作指令值。字符型。",bbt="单项输入的输入提示,单项输入时必须。字符型。",_bt="单项输入的初始化值。字符型。",Sbt="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",kbt=`多项输入的项目定义JSON数组。每个输入项目使用一个JSON对象进行定义。 +`:"
",w=p.join(k);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,d)?this._updatePosition(l,g,s[0],s[1],this._tooltipContent,d):this._showTooltipContent(l,w,d,Math.random()+"",s[0],s[1],g,null,v)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var a=this._ecModel,s=Yi(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),d=s.dataModel||c,h=s.dataIndex,p=s.dataType,v=d.getData(p),g=this._renderMode,y=n.positionDefault,S=g4([v.getItemModel(h),d,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),k=S.get("trigger");if(!(k!=null&&k!=="item")){var w=d.getDataParams(h,p),x=new uF;w.marker=x.makeTooltipMarker("item",Um(w.color),g);var E=Qse(d.formatTooltip(h,!1,p)),_=S.get("order"),T=S.get("valueFormatter"),D=E.frag,P=D?iae(T?yn({valueFormatter:T},D):D,x,g,_,a.get("useUTC"),S.get("textStyle")):E.text,M="item_"+d.name+"_"+h;this._showOrMove(S,function(){this._showTooltipContent(S,P,w,M,n.offsetX,n.offsetY,n.position,n.target,x)}),i({type:"showTip",dataIndexInside:h,dataIndex:v.getRawIndex(h),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var a=this._renderMode==="html",s=Yi(r),l=s.tooltipConfig,c=l.option||{},d=c.encodeHTMLContent;if(br(c)){var h=c;c={content:h,formatter:h},d=!0}d&&a&&c.content&&(c=zi(c),c.content=_u(c.content));var p=[c],v=this._ecModel.getComponent(s.componentMainType,s.componentIndex);v&&p.push(v),p.push({formatter:c.content});var g=n.positionDefault,y=g4(p,this._tooltipModel,g?{position:g}:null),S=y.get("content"),k=Math.random()+"",w=new uF;this._showOrMove(y,function(){var x=zi(y.get("formatterParams")||{});this._showTooltipContent(y,S,x,k,n.offsetX,n.offsetY,n.position,r,w)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,a,s,l,c,d,h){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var p=this._tooltipContent;p.setEnterable(n.get("enterable"));var v=n.get("formatter");c=c||n.get("position");var g=r,y=this._getNearestPoint([s,l],i,n.get("trigger"),n.get("borderColor")),S=y.color;if(v)if(br(v)){var k=n.ecModel.get("useUTC"),w=er(i)?i[0]:i,x=w&&w.axisType&&w.axisType.indexOf("time")>=0;g=v,x&&(g=FA(w.axisValue,g,k)),g=a1e(g,i,!0)}else if(ii(v)){var E=Mo(function(_,T){_===this._ticket&&(p.setContent(T,h,n,S,c),this._updatePosition(n,c,s,l,p,i,d))},this);this._ticket=a,g=v(i,a,E)}else g=v;p.setContent(g,h,n,S,c),p.show(n,S),this._updatePosition(n,c,s,l,p,i,d)}},t.prototype._getNearestPoint=function(n,r,i,a){if(i==="axis"||er(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!er(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,a,s,l,c){var d=this._api.getWidth(),h=this._api.getHeight();r=r||n.get("position");var p=s.getSize(),v=n.get("align"),g=n.get("verticalAlign"),y=c&&c.getBoundingRect().clone();if(c&&y.applyTransform(c.transform),ii(r)&&(r=r([i,a],l,s.el,y,{viewSize:[d,h],contentSize:p.slice()})),er(r))i=ts(r[0],d),a=ts(r[1],h);else if(Ir(r)){var S=r;S.width=p[0],S.height=p[1];var k=jy(S,{width:d,height:h});i=k.x,a=k.y,v=null,g=null}else if(br(r)&&c){var w=e4t(r,y,p,n.get("borderWidth"));i=w[0],a=w[1]}else{var w=J2t(i,a,s,d,h,v?null:20,g?null:20);i=w[0],a=w[1]}if(v&&(i-=zle(v)?p[0]/2:v==="right"?p[0]:0),g&&(a-=zle(g)?p[1]/2:g==="bottom"?p[1]:0),p3e(n)){var w=Q2t(i,a,s,d,h);i=w[0],a=w[1]}s.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,s=!!i&&i.length===n.length;return s&&Et(i,function(l,c){var d=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&d.length===p.length,s&&Et(d,function(v,g){var y=p[g]||{},S=v.seriesDataIndices||[],k=y.seriesDataIndices||[];s=s&&v.value===y.value&&v.axisType===y.axisType&&v.axisId===y.axisId&&S.length===k.length,s&&Et(S,function(w,x){var E=k[x];s=s&&w.seriesIndex===E.seriesIndex&&w.dataIndex===E.dataIndex}),a&&Et(v.seriesDataIndices,function(w){var x=w.seriesIndex,E=r[x],_=a[x];E&&_&&_.data!==E.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){zr.node||!r.getDom()||(yz(this,"_updatePosition"),this._tooltipContent.dispose(),$z("itemTooltip",r))},t.type="tooltip",t})(Od);function g4(e,t,n){var r=t.ecModel,i;n?(i=new xs(n,r,r),i=new xs(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof xs&&(s=s.get("tooltip",!0)),br(s)&&(s={formatter:s}),s&&(i=new xs(s,i,r)))}return i}function Vle(e,t){return e.dispatchAction||Mo(t.dispatchAction,t)}function J2t(e,t,n,r,i,a,s){var l=n.getSize(),c=l[0],d=l[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),s!=null&&(t+d+s>i?t-=d+s:t+=s),[e,t]}function Q2t(e,t,n,r,i){var a=n.getSize(),s=a[0],l=a[1];return e=Math.min(e+s,r)-s,t=Math.min(t+l,i)-l,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function e4t(e,t,n,r){var i=n[0],a=n[1],s=Math.ceil(Math.SQRT2*r)+8,l=0,c=0,d=t.width,h=t.height;switch(e){case"inside":l=t.x+d/2-i/2,c=t.y+h/2-a/2;break;case"top":l=t.x+d/2-i/2,c=t.y-a-s;break;case"bottom":l=t.x+d/2-i/2,c=t.y+h+s;break;case"left":l=t.x-i-s,c=t.y+h/2-a/2;break;case"right":l=t.x+d+s,c=t.y+h/2-a/2}return[l,c]}function zle(e){return e==="center"||e==="middle"}function t4t(e,t,n){var r=MW(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=yS(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),s=a.models[0];if(s){var l=n.getViewOfComponentModel(s),c;if(l.group.traverse(function(d){var h=Yi(d).tooltipConfig;if(h&&h.name===e.name)return c=d,!0}),c)return{componentMainType:i,componentIndex:s.componentIndex,el:c}}}}function y3e(e){qh(f3e),e.registerComponentModel(N2t),e.registerComponentView(Z2t),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Du),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Du)}var n4t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(ho),r4t=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){if(this.group.removeAll(),!!n.get("show")){var a=this.group,s=n.getModel("textStyle"),l=n.getModel("subtextStyle"),c=n.get("textAlign"),d=yi(n.get("textBaseline"),n.get("textVerticalAlign")),h=new el({style:M0(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),v=n.get("subtext"),g=new el({style:M0(l,{text:v,fill:l.getTextColor(),y:p.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=n.get("link"),S=n.get("sublink"),k=n.get("triggerEvent",!0);h.silent=!y&&!k,g.silent=!S&&!k,y&&h.on("click",function(){Ose(y,"_"+n.get("target"))}),S&&g.on("click",function(){Ose(S,"_"+n.get("subtarget"))}),Yi(h).eventData=Yi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),v&&a.add(g);var w=a.getBoundingRect(),x=n.getBoxLayoutParams();x.width=w.width,x.height=w.height;var E=jy(x,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));c||(c=n.get("left")||n.get("right"),c==="middle"&&(c="center"),c==="right"?E.x+=E.width:c==="center"&&(E.x+=E.width/2)),d||(d=n.get("top")||n.get("bottom"),d==="center"&&(d="middle"),d==="bottom"?E.y+=E.height:d==="middle"&&(E.y+=E.height/2),d=d||"top"),a.x=E.x,a.y=E.y,a.markRedraw();var _={align:c,verticalAlign:d};h.setStyle(_),g.setStyle(_),w=a.getBoundingRect();var T=E.margin,D=n.getItemStyle(["color","opacity"]);D.fill=n.get("backgroundColor");var P=new Js({shape:{x:w.x-T[3],y:w.y-T[0],width:w.width+T[1]+T[3],height:w.height+T[0]+T[2],r:n.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});a.add(P)}},t.type="title",t})(Od);function b3e(e){e.registerComponentModel(n4t),e.registerComponentView(r4t)}var i4t=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Bz=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),er(r)&&Et(r,function(a,s){br(a)&&(a={type:a}),r[s]=ao(a,i4t(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(ho),A1=Rs,Nz=Et,gx=Qa,_3e=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new gx),this.group.add(this._selectorGroup=new gx),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var s=n.get("align"),l=n.get("orient");(!s||s==="auto")&&(s=n.get("left")==="right"&&l==="vertical"?"right":"left");var c=n.get("selector",!0),d=n.get("selectorPosition",!0);c&&(!d||d==="auto")&&(d=l==="horizontal"?"end":"start"),this.renderInner(s,n,r,i,c,l,d);var h=n.getBoxLayoutParams(),p={width:i.getWidth(),height:i.getHeight()},v=n.get("padding"),g=jy(h,p,v),y=this.layoutInner(n,s,g,a,c,d),S=jy(co({width:y.width,height:y.height},h),p,v);this.group.x=S.x-y.x,this.group.y=S.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=B2t(y,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,a,s,l,c){var d=this.getContentGroup(),h=wi(),p=r.get("selectedMode"),v=[];i.eachRawSeries(function(g){!g.get("legendHoverLink")&&v.push(g.id)}),Nz(r.getData(),function(g,y){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` +`)){var k=new gx;k.newline=!0,d.add(k);return}var w=i.getSeriesByName(S)[0];if(!h.get(S))if(w){var x=w.getData(),E=x.getVisual("legendLineStyle")||{},_=x.getVisual("legendIcon"),T=x.getVisual("style"),D=this._createItem(w,S,y,g,r,n,E,T,_,p,a);D.on("click",A1(Ule,S,null,a,v)).on("mouseover",A1(Fz,w.name,null,a,v)).on("mouseout",A1(jz,w.name,null,a,v)),i.ssr&&D.eachChild(function(P){var M=Yi(P);M.seriesIndex=w.seriesIndex,M.dataIndex=y,M.ssrType="legend"}),h.set(S,!0)}else i.eachRawSeries(function(P){if(!h.get(S)&&P.legendVisualProvider){var M=P.legendVisualProvider;if(!M.containName(S))return;var $=M.indexOfName(S),L=M.getItemVisual($,"style"),B=M.getItemVisual($,"legendIcon"),j=Oh(L.fill);j&&j[3]===0&&(j[3]=.2,L=yn(yn({},L),{fill:xA(j,"rgba")}));var H=this._createItem(P,S,y,g,r,n,{},L,B,p,a);H.on("click",A1(Ule,null,S,a,v)).on("mouseover",A1(Fz,null,S,a,v)).on("mouseout",A1(jz,null,S,a,v)),i.ssr&&H.eachChild(function(U){var W=Yi(U);W.seriesIndex=P.seriesIndex,W.dataIndex=y,W.ssrType="legend"}),h.set(S,!0)}},this)},this),s&&this._createSelector(s,r,a,l,c)},t.prototype._createSelector=function(n,r,i,a,s){var l=this.getSelectorGroup();Nz(n,function(d){var h=d.type,p=new el({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});l.add(p);var v=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);SS(p,{normal:v,emphasis:g},{defaultText:d.title}),az(p)})},t.prototype._createItem=function(n,r,i,a,s,l,c,d,h,p,v){var g=n.visualDrawType,y=s.get("itemWidth"),S=s.get("itemHeight"),k=s.isSelected(r),w=a.get("symbolRotate"),x=a.get("symbolKeepAspect"),E=a.get("icon");h=E||h||"roundRect";var _=o4t(h,a,c,d,g,k,v),T=new gx,D=a.getModel("textStyle");if(ii(n.getLegendIcon)&&(!E||E==="inherit"))T.add(n.getLegendIcon({itemWidth:y,itemHeight:S,icon:h,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));else{var P=E==="inherit"&&n.getData().getVisual("symbol")?w==="inherit"?n.getData().getVisual("symbolRotate"):w:0;T.add(s4t({itemWidth:y,itemHeight:S,icon:h,iconRotate:P,itemStyle:_.itemStyle,symbolKeepAspect:x}))}var M=l==="left"?y+5:-5,$=l,L=s.get("formatter"),B=r;br(L)&&L?B=L.replace("{name}",r??""):ii(L)&&(B=L(r));var j=k?D.getTextColor():a.get("inactiveColor");T.add(new el({style:M0(D,{text:B,x:M,y:S/2,fill:j,align:$,verticalAlign:"middle"},{inheritColor:j})}));var H=new Js({shape:T.getBoundingRect(),style:{fill:"transparent"}}),U=a.getModel("tooltip");return U.get("show")&&MA({el:H,componentModel:s,itemName:r,itemTooltipOption:U.option}),T.add(H),T.eachChild(function(W){W.silent=!0}),H.silent=!p,this.getContentGroup().add(T),az(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(n,r,i,a,s,l){var c=this.getContentGroup(),d=this.getSelectorGroup();Ab(n.get("orient"),c,n.get("itemGap"),i.width,i.height);var h=c.getBoundingRect(),p=[-h.x,-h.y];if(d.markRedraw(),c.markRedraw(),s){Ab("horizontal",d,n.get("selectorItemGap",!0));var v=d.getBoundingRect(),g=[-v.x,-v.y],y=n.get("selectorButtonGap",!0),S=n.getOrient().index,k=S===0?"width":"height",w=S===0?"height":"width",x=S===0?"y":"x";l==="end"?g[S]+=h[k]+y:p[S]+=v[k]+y,g[1-S]+=h[w]/2-v[w]/2,d.x=g[0],d.y=g[1],c.x=p[0],c.y=p[1];var E={x:0,y:0};return E[k]=h[k]+y+v[k],E[w]=Math.max(h[w],v[w]),E[x]=Math.min(0,v[x]+g[1-S]),E}else return c.x=p[0],c.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Od);function o4t(e,t,n,r,i,a,s){function l(k,w){k.lineWidth==="auto"&&(k.lineWidth=w.lineWidth>0?2:0),Nz(k,function(x,E){k[E]==="inherit"&&(k[E]=w[E])})}var c=t.getModel("itemStyle"),d=c.getItemStyle(),h=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=c.getShallow("decal");d.decal=!p||p==="inherit"?r.decal:wz(p,s),d.fill==="inherit"&&(d.fill=r[i]),d.stroke==="inherit"&&(d.stroke=r[h]),d.opacity==="inherit"&&(d.opacity=(i==="fill"?r:n).opacity),l(d,r);var v=t.getModel("lineStyle"),g=v.getLineStyle();if(l(g,n),d.fill==="auto"&&(d.fill=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!a){var y=t.get("inactiveBorderWidth"),S=d[h];d.lineWidth=y==="auto"?r.lineWidth>0&&S?2:0:d.lineWidth,d.fill=t.get("inactiveColor"),d.stroke=t.get("inactiveBorderColor"),g.stroke=v.get("inactiveColor"),g.lineWidth=v.get("inactiveWidth")}return{itemStyle:d,lineStyle:g}}function s4t(e){var t=e.icon||"roundRect",n=Uy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function Ule(e,t,n,r){jz(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),Fz(e,t,n,r)}function S3e(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[s],k=[-g.x,-g.y];r||(k[a]=h[d]);var w=[0,0],x=[-y.x,-y.y],E=yi(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var _=n.get("pageButtonPosition",!0);_==="end"?x[a]+=i[s]-y[s]:w[a]+=y[s]+E}x[1-a]+=g[l]/2-y[l]/2,h.setPosition(k),p.setPosition(w),v.setPosition(x);var T={x:0,y:0};if(T[s]=S?i[s]:g[s],T[l]=Math.max(g[l],y[l]),T[c]=Math.min(0,y[c]+x[1-a]),p.__rectSize=i[s],S){var D={x:0,y:0};D[s]=Math.max(i[s]-y[s]-E,0),D[l]=T[l],p.setClipPath(new Js({shape:D})),p.__rectSize=D[s]}else v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var P=this._getPageInfo(n);return P.pageIndex!=null&&eu(h,{x:P.contentPosition[0],y:P.contentPosition[1]},S?n:null),this._updatePageInfoView(n,P),T},t.prototype._pageGo=function(n,r,i){var a=this._getPageInfo(r)[n];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;Et(["pagePrev","pageNext"],function(h){var p=h+"DataIndex",v=r[p]!=null,g=i.childOfName(h);g&&(g.setStyle("fill",v?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),g.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),s=n.get("pageFormatter"),l=r.pageIndex,c=l!=null?l+1:0,d=r.pageCount;a&&s&&a.setStyle("text",br(s)?s.replace("{current}",c==null?"":c+"").replace("{total}",d==null?"":d+""):s({current:c,total:d}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,s=n.getOrient().index,l=MF[s],c=OF[s],d=this._findTargetItemIndex(r),h=i.children(),p=h[d],v=h.length,g=v?1:0,y={contentPosition:[i.x,i.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return y;var S=_(p);y.contentPosition[s]=-S.s;for(var k=d+1,w=S,x=S,E=null;k<=v;++k)E=_(h[k]),(!E&&x.e>w.s+a||E&&!T(E,w.s))&&(x.i>w.i?w=x:w=E,w&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=w.i),++y.pageCount)),x=E;for(var k=d-1,w=S,x=S,E=null;k>=-1;--k)E=_(h[k]),(!E||!T(x,E.s))&&w.i=P&&D.s<=P+a}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(s,l){var c=s.__legendDataIndex;a==null&&c!=null&&(a=l),c===n&&(r=l)}),r??a},t.type="legend.scroll",t})(_3e);function d4t(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function f4t(e){qh(k3e),e.registerComponentModel(u4t),e.registerComponentView(c4t),d4t(e)}function w3e(e){qh(k3e),qh(f4t)}const h4t=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function p4t(e){function t(r){return(...i)=>{if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function n(){const r=Object.create(null);return h4t.forEach(i=>{r[i]=t(i)}),r}return n()}function v4t(e,t,n){It([n,e,t],([r,i,a],s,l)=>{let c=null;if(r&&i&&a){const{offsetWidth:d,offsetHeight:h}=r,p=a===!0?{}:a,{throttle:v=100,onResize:g}=p;let y=!1;const S=()=>{i.resize(),g?.()},k=v?qA(S,v):S;c=new ResizeObserver(()=>{!y&&(y=!0,r.offsetWidth===d&&r.offsetHeight===h)||k()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const m4t={autoresize:[Boolean,Object]},g4t=/^on[^a-z]/,x3e=e=>g4t.test(e);function y4t(e){const t={};for(const n in e)x3e(n)||(t[n]=e[n]);return t}function r8(e,t){const n=Bo(e)?tt(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const b4t="ecLoadingOptions";function _4t(e,t,n){const r=Pn(b4t,{}),i=F(()=>({...r8(r,{}),...n?.value}));$s(()=>{const a=e.value;a&&(t.value?a.showLoading(i.value):a.hideLoading())})}const S4t={loading:Boolean,loadingOptions:Object};let b4=null;const C3e="x-vue-echarts";function k4t(){if(b4!=null)return b4;if(typeof HTMLElement>"u"||typeof customElements>"u")return b4=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(C3e)}catch{return b4=!1}return b4=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} +`;const w4t=k4t(),x4t="ecTheme",C4t="ecInitOptions",E4t="ecUpdateOptions",Kle=/(^&?~?!?)native:/;var E3e=xe({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...m4t,...S4t},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=h0(),r=h0(),i=h0(),a=Pn(x4t,null),s=Pn(C4t,null),l=Pn(E4t,null),{autoresize:c,manualUpdate:d,loading:h,loadingOptions:p}=tn(e),v=F(()=>i.value||e.option||null),g=F(()=>e.theme||r8(a,{})),y=F(()=>e.initOptions||r8(s,{})),S=F(()=>e.updateOptions||r8(l,{})),k=F(()=>y4t(t)),w={},x=So().proxy.$listeners,E={};x?Object.keys(x).forEach($=>{Kle.test($)?w[$.replace(Kle,"$1")]=x[$]:E[$]=x[$]}):Object.keys(t).filter($=>x3e($)).forEach($=>{let L=$.charAt(2).toLowerCase()+$.slice(3);if(L.indexOf("native:")===0){const B=`on${L.charAt(7).toUpperCase()}${L.slice(8)}`;w[B]=t[$];return}L.substring(L.length-4)==="Once"&&(L=`~${L.substring(0,L.length-4)}`),E[L]=t[$]});function _($){if(!n.value)return;const L=r.value=i1t(n.value,g.value,y.value);e.group&&(L.group=e.group),Object.keys(E).forEach(H=>{let U=E[H];if(!U)return;let W=H.toLowerCase();W.charAt(0)==="~"&&(W=W.substring(1),U.__once__=!0);let K=L;if(W.indexOf("zr:")===0&&(K=L.getZr(),W=W.substring(3)),U.__once__){delete U.__once__;const oe=U;U=(...ae)=>{oe(...ae),K.off(W,U)}}K.on(W,U)});function B(){L&&!L.isDisposed()&&L.resize()}function j(){const H=$||v.value;H&&L.setOption(H,S.value)}c.value?dn(()=>{B(),j()}):j()}function T($,L){e.manualUpdate&&(i.value=$),r.value?r.value.setOption($,L||{}):_($)}function D(){r.value&&(r.value.dispose(),r.value=void 0)}let P=null;It(d,$=>{typeof P=="function"&&(P(),P=null),$||(P=It(()=>e.option,(L,B)=>{L&&(r.value?r.value.setOption(L,{notMerge:L!==B,...S.value}):_())},{deep:!0}))},{immediate:!0}),It([g,y],()=>{D(),_()},{deep:!0}),$s(()=>{e.group&&r.value&&(r.value.group=e.group)});const M=p4t(r);return _4t(r,h,p),v4t(r,c,n),fn(()=>{_()}),_o(()=>{w4t&&n.value?n.value.__dispose=D:D()}),{chart:r,root:n,setOption:T,nonEventAttrs:k,nativeListeners:w,...M}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",fa(C3e,e)}});const Eu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},T3e=()=>new Date().toISOString().split("T")[0],T4t=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},A4t=()=>{const e=new Date,t=e.getDay(),n=new Date(e);n.setDate(e.getDate()-t);const r=[];for(let i=0;i<7;i++){const a=new Date(n);a.setDate(n.getDate()+i),r.push(a.toISOString().split("T")[0])}return r},Cf=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},RT=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},A3e=e=>{const t=T3e(),n=new Date().toISOString(),r=Cf(Eu.WATCH_HISTORY,[]),i={id:Date.now(),videoId:e.id,videoTitle:e.title,episode:e.episode||1,duration:e.duration||0,watchTime:e.watchTime||0,date:t,timestamp:n};return r.push(i),r.length>1e3&&r.splice(0,r.length-1e3),RT(Eu.WATCH_HISTORY,r),EG(t),i},EG=e=>{const t=Cf(Eu.DAILY_STATS,{}),n=Cf(Eu.WATCH_HISTORY,[]),r=n.filter(i=>i.date===e).length;t[e]={date:e,watchCount:r,totalWatchTime:n.filter(i=>i.date===e).reduce((i,a)=>i+(a.watchTime||0),0),updatedAt:new Date().toISOString()},RT(Eu.DAILY_STATS,t)},I3e=()=>{const e=T3e(),t=Cf(Eu.DAILY_STATS,{});return t[e]?t[e]:(EG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},L3e=()=>{const e=T4t(),t=Cf(Eu.DAILY_STATS,{});return t[e]?t[e]:(EG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},I4t=()=>{const e=A4t(),t=Cf(Eu.DAILY_STATS,{});return e.map((r,i)=>{const a=["周日","周一","周二","周三","周四","周五","周六"],s=t[r]||{watchCount:0,totalWatchTime:0};return{day:a[i],date:r,count:s.watchCount,totalWatchTime:s.totalWatchTime}})},L4t=()=>{const e=I3e(),t=L3e();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},D4t=(e=50)=>Cf(Eu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),P4t=(e=10)=>{const t=Cf(Eu.WATCH_HISTORY,[]),n={};return t.forEach(r=>{const i=r.videoId;n[i]||(n[i]={videoId:r.videoId,videoTitle:r.videoTitle,watchCount:0,lastWatched:r.timestamp}),n[i].watchCount++,new Date(r.timestamp)>new Date(n[i].lastWatched)&&(n[i].lastWatched=r.timestamp)}),Object.values(n).sort((r,i)=>i.watchCount-r.watchCount).slice(0,e)},R4t=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],i=Cf(Eu.WATCH_HISTORY,[]).filter(l=>l.date>=n);RT(Eu.WATCH_HISTORY,i);const a=Cf(Eu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),RT(Eu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},M4t=()=>{const e=[{id:"video_1",title:"斗罗大陆",episode:1},{id:"video_2",title:"庆余年",episode:2},{id:"video_3",title:"流浪地球2",episode:1},{id:"video_4",title:"鬼灭之刃",episode:5},{id:"video_5",title:"三体",episode:3}];for(let t=6;t>=0;t--){const n=new Date;n.setDate(n.getDate()-t);const r=Math.floor(Math.random()*5)+1;for(let i=0;i({feature:{label:"新功能",color:"#00b42a",icon:"🚀"},improvement:{label:"功能优化",color:"#165dff",icon:"⚡"},optimization:{label:"性能优化",color:"#ff7d00",icon:"🔧"},security:{label:"安全更新",color:"#f53f3f",icon:"🔒"},bugfix:{label:"Bug修复",color:"#722ed1",icon:"🐛"},release:{label:"版本发布",color:"#f7ba1e",icon:"🎉"}}),P3e=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),O4t=()=>jc.sort((e,t)=>new Date(t.date)-new Date(e.date)),$4t=e=>jc.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),B4t=e=>jc.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),N4t=(e=5)=>jc.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),F4t=(e,t)=>{const n=new Date(e),r=new Date(t);return jc.filter(i=>{const a=new Date(i.date);return a>=n&&a<=r}).sort((i,a)=>new Date(a.date)-new Date(i.date))},j4t=e=>{const t=e.toLowerCase();return jc.filter(n=>n.title.toLowerCase().includes(t)||n.description.toLowerCase().includes(t)||n.version.toLowerCase().includes(t)||n.changes.some(r=>r.toLowerCase().includes(t))).sort((n,r)=>new Date(r.date)-new Date(n.date))},V4t=()=>{const e=D3e(),t=P3e(),n={};Object.keys(e).forEach(a=>{n[a]=jc.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=jc.filter(s=>s.importance===a).length});const i={};return jc.forEach(a=>{const s=a.date.substring(0,7);i[s]=(i[s]||0)+1}),{total:jc.length,byType:n,byImportance:r,byMonth:i,latestVersion:jc[0]?.version||"v1.0.0",latestDate:jc[0]?.date||new Date().toISOString().split("T")[0]}},z4t=e=>{const t=new Date(e),r=Math.abs(new Date-t),i=Math.ceil(r/(1e3*60*60*24));return i===1?"昨天":i<=7?`${i}天前`:i<=30?`${Math.floor(i/7)}周前`:t.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric"})},U4t=(e,t)=>{const n=e.replace("v","").split(".").map(Number),r=t.replace("v","").split(".").map(Number);for(let i=0;is)return 1;if(aRi,W4t=e=>Ri[e]||[],G4t=(e=12)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),K4t=(e=8)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),q4t=(e,t=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.category===e).sort((r,i)=>i.hotScore-r.hotScore).slice(0,t),Y4t=(e,t=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.tags.includes(e)).sort((r,i)=>i.hotScore-r.hotScore).slice(0,t),X4t=e=>{const t=e.toLowerCase();return[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.title.toLowerCase().includes(t)||r.description.toLowerCase().includes(t)||r.tags.some(i=>i.toLowerCase().includes(t))||r.author&&r.author.toLowerCase().includes(t)).sort((r,i)=>i.hotScore-r.hotScore)},Z4t=()=>QA.sort((e,t)=>t.count-e.count),J4t=(e=10)=>QA.sort((t,n)=>n.count-t.count).slice(0,e),Q4t=(e=5)=>QA.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),ebt=(e=[],t=8)=>{const n=tbt();return[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].map(a=>{let s=a.hotScore;return n.types[a.type]&&(s+=n.types[a.type]*10),n.categories[a.category]&&(s+=n.categories[a.category]*15),a.tags.forEach(l=>{n.tags[l]&&(s+=n.tags[l]*5)}),{...a,recommendScore:s}}).sort((a,s)=>s.recommendScore-a.recommendScore).slice(0,t)},tbt=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),nbt=()=>{const e=[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels],t={};Object.keys(Ri).forEach(a=>{t[a]=Ri[a].length});const n={};e.forEach(a=>{n[a.category]=(n[a.category]||0)+1});const r=e.filter(a=>a.trending).length,i=e.reduce((a,s)=>a+s.rating,0)/e.length;return{total:e.length,byType:t,byCategory:n,trending:r,averageRating:Math.round(i*10)/10,hotKeywords:QA.length}},rbt=(e=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].sort(()=>.5-Math.random()).slice(0,e),S4={getAllRecommendations:H4t,getRecommendationsByType:W4t,getHotRecommendations:G4t,getTrendingRecommendations:K4t,getRecommendationsByCategory:q4t,getRecommendationsByTag:Y4t,searchRecommendations:X4t,getAllKeywords:Z4t,getHotKeywords:J4t,getTrendingUpKeywords:Q4t,getPersonalizedRecommendations:ebt,getRecommendationStats:nbt,getRandomRecommendations:rbt},TG="drplayer_page_states",$F=()=>{try{const e=sessionStorage.getItem(TG);if(e){const t=JSON.parse(e);return console.log("🔄 [存储] 从SessionStorage加载页面状态:",t),t}}catch(e){console.error("从SessionStorage加载页面状态失败:",e)}return{video:{activeKey:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null},home:{scrollPosition:0,lastUpdateTime:null},search:{keyword:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null}}},BF=e=>{try{sessionStorage.setItem(TG,JSON.stringify(e)),console.log("🔄 [存储] 保存页面状态到SessionStorage:",e)}catch(t){console.error("保存页面状态到SessionStorage失败:",t)}},wS=ag("pageState",{state:()=>({pageStates:$F()}),actions:{savePageState(e,t){this.pageStates[e]||(this.pageStates[e]={}),this.pageStates[e]={...this.pageStates[e],...t,lastUpdateTime:Date.now()},BF(this.pageStates),console.log(`🔄 [状态保存] 页面状态 [${e}]:`,this.pageStates[e])},getPageState(e){const t=this.pageStates[e];return console.log(`获取页面状态 [${e}]:`,t),t||{}},clearPageState(e){this.pageStates[e]&&(this.pageStates[e]={},BF(this.pageStates),console.log(`🔄 [状态清除] 页面状态 [${e}]`))},isStateExpired(e,t=1800*1e3){const n=this.pageStates[e];return!n||!n.lastUpdateTime?!0:Date.now()-n.lastUpdateTime>t},saveVideoState(e,t,n,r,i,a=0){this.savePageState("video",{activeKey:e,currentPage:t,videos:[...n],hasMore:r,loading:i,scrollPosition:a})},saveSearchState(e,t,n,r,i,a=0){this.savePageState("search",{keyword:e,currentPage:t,videos:[...n],hasMore:r,loading:i,scrollPosition:a})},saveScrollPosition(e,t){this.pageStates[e]&&(this.pageStates[e].scrollPosition=t,this.pageStates[e].lastUpdateTime=Date.now(),BF(this.pageStates))},getScrollPosition(e){const t=this.pageStates[e];return t&&t.scrollPosition||0},reloadFromStorage(){this.pageStates=$F(),console.log("🔄 [存储] 重新加载页面状态:",this.pageStates)},clearAllStorage(){try{sessionStorage.removeItem(TG),this.pageStates=$F(),console.log("🔄 [存储] 清除所有页面状态")}catch(e){console.error("清除SessionStorage失败:",e)}}},getters:{videoState:e=>e.pageStates.video||{},searchState:e=>e.pageStates.search||{},homeState:e=>e.pageStates.home||{}}}),ibt="识别动作的路由ID或专项动作指令,必须。字符型。",obt="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",sbt="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",abt="标题。字符型。",lbt="宽度。整型。",ubt="高度。整型。",cbt="文本消息内容。字符型。",dbt="msgbox类动作的简单html消息内容。字符型。",fbt="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",hbt="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",pbt="图片URL。字符型。",vbt="图片高度。整型。",mbt="是否检测图片的点击坐标输入。逻辑型。",gbt="生成二维码的URL。字符型。",ybt="二维码的大小。整型。",bbt="超时时间(秒)。超时自动关闭窗口。整型。",_bt="T4源的动作网络访问超时时间(秒)。",Sbt="输入确认后,窗口是否保持。逻辑型。",kbt="窗口弹出时自动发送的初始化动作指令。字符型。",wbt="窗口弹出时自动发送的初始化指令值。字符型。",xbt="按窗口的取消键时发送的取消动作指令。字符型。",Cbt="按窗口的取消键时发送的取消动作指令值。字符型。",Ebt="单项输入的输入提示,单项输入时必须。字符型。",Tbt="单项输入的初始化值。字符型。",Abt="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",Ibt=`多项输入的项目定义JSON数组。每个输入项目使用一个JSON对象进行定义。 [#id]:项目id。 @@ -113,13 +113,13 @@ PERFORMANCE OF THIS SOFTWARE. [#validation]:提交时项目输入值校验正则表达式。multiInputX。 -[#help]:项目输入的帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。multiInputX。`,xbt="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",Cbt="底部对齐和底边距。整型。",wbt="单项选择或多项选择窗口的列数。整型。",Ebt=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 +[#help]:项目输入的帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。multiInputX。`,Lbt="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",Dbt="底部对齐和底边距。整型。",Pbt="单项选择或多项选择窗口的列数。整型。",Rbt=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 -[#selected]:选项默认是否已选。多项选择是可用。`,Tbt=`源内搜索。 +[#selected]:选项默认是否已选。多项选择是可用。`,Mbt=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 @@ -129,19 +129,19 @@ PERFORMANCE OF THIS SOFTWARE. [#flag]:列表视图参数。 -[#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,Abt=`跳转到指定站源解析详情页播放。 +[#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,Obt=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 -[#ids]:传递给详情页的视频ids。`,Ibt=`跳转到KTV播放器播放指定链接。 +[#ids]:传递给详情页的视频ids。`,$bt=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 -[#id]:歌曲的直链。`,Lbt="刷新当前分类的列表。无其它参数。",Dbt="把返回的内容复制到剪贴板。content:复制的内容",Pbt=`保持窗口不关闭。 +[#id]:歌曲的直链。`,Bbt="刷新当前分类的列表。无其它参数。",Nbt="把返回的内容复制到剪贴板。content:复制的内容",Fbt=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 -[#reset]:窗口中的输入项目内容是否清空。`,Rbt={使用帮助:`本帮助。长按则分项选择查看。 +[#reset]:窗口中的输入项目内容是否清空。`,jbt={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 @@ -165,7 +165,7 @@ PERFORMANCE OF THIS SOFTWARE.  "vod_id":"hello world",  "vod_name":"基础动作",  "vod_tag":"action" -}`,JSON动作:"JSON结构的动作指令。通过JSON结构数据,配置更丰富的动作指令。通过选择配置不同的字段,定义不同的动作表现。",actionId:Z4t,type:J4t,canceledOnTouchOutside:Q4t,title:ebt,width:tbt,height:nbt,msg:rbt,htmlMsg:ibt,help:obt,button:sbt,imageUrl:abt,imageHeight:lbt,imageClickCoord:ubt,qrcode:cbt,qrcodeSize:dbt,timeout:fbt,httpTimeout:hbt,keep:pbt,initAction:vbt,initValue:mbt,cancelAction:gbt,cancelValue:ybt,tip:bbt,value:_bt,selectData:Sbt,input:kbt,dimAmount:xbt,bottom:Cbt,column:wbt,option:Ebt,单项输入:`type为input。要求用户输入一个字段的动作,JSON结构,部分字段根据需要选用。 +}`,JSON动作:"JSON结构的动作指令。通过JSON结构数据,配置更丰富的动作指令。通过选择配置不同的字段,定义不同的动作表现。",actionId:ibt,type:obt,canceledOnTouchOutside:sbt,title:abt,width:lbt,height:ubt,msg:cbt,htmlMsg:dbt,help:fbt,button:hbt,imageUrl:pbt,imageHeight:vbt,imageClickCoord:mbt,qrcode:gbt,qrcodeSize:ybt,timeout:bbt,httpTimeout:_bt,keep:Sbt,initAction:kbt,initValue:wbt,cancelAction:xbt,cancelValue:Cbt,tip:Ebt,value:Tbt,selectData:Abt,input:Ibt,dimAmount:Lbt,bottom:Dbt,column:Pbt,option:Rbt,单项输入:`type为input。要求用户输入一个字段的动作,JSON结构,部分字段根据需要选用。 {  actionId:'动作路由ID',  id:'输入项目id', @@ -183,7 +183,7 @@ PERFORMANCE OF THIS SOFTWARE.  initValue:requestId,  button:2,  selectData:'1:=快速输入一,2:=快速输入二,3:=快速输入三' -}`,多行编辑:"type为edit。要求用户在一个多行编辑区输入单个字段内容的动作,JSON结构。",多项输入:"type为multiInput。要求用户输入多个字段(5个以内)的动作,JSON结构。建议使用“增强多项输入”动作。",增强多项输入:"type为multiInputX。要求用户输入多个字段(不限制个数)的动作,JSON结构。",单项选择:"type为menu。要求用户在列表中选择一个项目的动作,JSON结构。",多项选择:"type为select。要求用户在列表中选择多个项目的动作,JSON结构。",消息弹窗:"type为msgbox。弹出窗口显示消息,JSON结构。",专项动作:"专项动作为动态动作,接口让APP执行一些特定的行为动作。actionId值为行为特定的标识。__self_search__(源内搜索)、__detail__(详情页)、__ktvplayer__(KTV播放)、__refresh_list__(刷新列表)、__copy__(复制)、__keep__(保持窗口)。",__self_search__:Tbt,__detail__:Abt,__ktvplayer__:Ibt,__refresh_list__:Lbt,__copy__:Dbt,__keep__:Pbt,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的js示例。 +}`,多行编辑:"type为edit。要求用户在一个多行编辑区输入单个字段内容的动作,JSON结构。",多项输入:"type为multiInput。要求用户输入多个字段(5个以内)的动作,JSON结构。建议使用“增强多项输入”动作。",增强多项输入:"type为multiInputX。要求用户输入多个字段(不限制个数)的动作,JSON结构。",单项选择:"type为menu。要求用户在列表中选择一个项目的动作,JSON结构。",多项选择:"type为select。要求用户在列表中选择多个项目的动作,JSON结构。",消息弹窗:"type为msgbox。弹出窗口显示消息,JSON结构。",专项动作:"专项动作为动态动作,接口让APP执行一些特定的行为动作。actionId值为行为特定的标识。__self_search__(源内搜索)、__detail__(详情页)、__ktvplayer__(KTV播放)、__refresh_list__(刷新列表)、__copy__(复制)、__keep__(保持窗口)。",__self_search__:Mbt,__detail__:Obt,__ktvplayer__:$bt,__refresh_list__:Bbt,__copy__:Nbt,__keep__:Fbt,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的js示例。  {   vod_id: JSON.stringify({    actionId: '图片点击坐标', @@ -290,7 +290,7 @@ PERFORMANCE OF THIS SOFTWARE.   }),   vod_name: '多项输入',   vod_tag:'action' - }`},Mbt={class:"action-doc-card"},$bt={class:"card-title"},Obt={class:"card-content"},Bbt={class:"overview-section"},Nbt={class:"overview-item"},Fbt={class:"overview-value"},jbt={class:"overview-item"},Vbt={class:"overview-value"},zbt={class:"overview-item"},Ubt={class:"overview-value"},Hbt={key:0,class:"quick-nav"},Wbt={key:1,class:"expanded-content"},Gbt={class:"section",id:"basic-concepts"},Kbt={class:"section-title"},qbt={class:"concept-grid"},Ybt={class:"concept-title"},Xbt={class:"concept-desc"},Zbt={class:"section",id:"action-types"},Jbt={class:"section-title"},Qbt={class:"action-types-grid"},e_t={class:"action-type-header"},t_t={class:"action-type-code"},n_t={class:"action-type-desc"},r_t={key:0,class:"action-type-usage"},i_t={class:"section",id:"special-actions"},o_t={class:"section-title"},s_t={class:"special-actions-list"},a_t={class:"special-action-header"},l_t={class:"action-id"},u_t={class:"action-name"},c_t={class:"special-action-desc"},d_t={key:0,class:"special-action-params"},f_t={class:"section",id:"config-params"},h_t={class:"section-title"},p_t={class:"params-grid"},v_t={class:"param-header"},m_t={class:"param-name"},g_t={class:"param-desc"},y_t={class:"section",id:"examples"},b_t={class:"section-title"},__t={class:"code-block"},S_t={class:"code-block"},k_t={class:"code-block"},x_t={__name:"ActionDocCard",setup(e){const t=ue(!1),n=ue(Rbt),r=()=>{t.value=!t.value},i=k=>{t.value=!0,setTimeout(()=>{const C=document.getElementById(k);C&&C.scrollIntoView({behavior:"smooth"})},100)};hn(()=>{});const a=F(()=>Object.keys(n.value).length),s=F(()=>{const k=new Set;return Object.values(n.value).forEach(C=>{C.type&&k.add(C.type)}),Array.from(k)}),l=F(()=>Object.entries(n.value).filter(([k,C])=>C.special===!0).map(([k,C])=>({key:k,...C}))),c=ue([{key:"basic-concepts",name:"基础概念",color:"blue"},{key:"action-types",name:"动作类型",color:"green"},{key:"special-actions",name:"专项动作",color:"orange"},{key:"config-params",name:"配置参数",color:"purple"},{key:"examples",name:"示例代码",color:"red"}]),d=F(()=>[{key:"interaction",title:"交互动作",description:n.value.交互动作||""},{key:"action-command",title:"动作指令",description:n.value.动作指令?.split(` + }`},Vbt={class:"action-doc-card"},zbt={class:"card-title"},Ubt={class:"card-content"},Hbt={class:"overview-section"},Wbt={class:"overview-item"},Gbt={class:"overview-value"},Kbt={class:"overview-item"},qbt={class:"overview-value"},Ybt={class:"overview-item"},Xbt={class:"overview-value"},Zbt={key:0,class:"quick-nav"},Jbt={key:1,class:"expanded-content"},Qbt={class:"section",id:"basic-concepts"},e_t={class:"section-title"},t_t={class:"concept-grid"},n_t={class:"concept-title"},r_t={class:"concept-desc"},i_t={class:"section",id:"action-types"},o_t={class:"section-title"},s_t={class:"action-types-grid"},a_t={class:"action-type-header"},l_t={class:"action-type-code"},u_t={class:"action-type-desc"},c_t={key:0,class:"action-type-usage"},d_t={class:"section",id:"special-actions"},f_t={class:"section-title"},h_t={class:"special-actions-list"},p_t={class:"special-action-header"},v_t={class:"action-id"},m_t={class:"action-name"},g_t={class:"special-action-desc"},y_t={key:0,class:"special-action-params"},b_t={class:"section",id:"config-params"},__t={class:"section-title"},S_t={class:"params-grid"},k_t={class:"param-header"},w_t={class:"param-name"},x_t={class:"param-desc"},C_t={class:"section",id:"examples"},E_t={class:"section-title"},T_t={class:"code-block"},A_t={class:"code-block"},I_t={class:"code-block"},L_t={__name:"ActionDocCard",setup(e){const t=ue(!1),n=ue(jbt),r=()=>{t.value=!t.value},i=k=>{t.value=!0,setTimeout(()=>{const w=document.getElementById(k);w&&w.scrollIntoView({behavior:"smooth"})},100)};fn(()=>{});const a=F(()=>Object.keys(n.value).length),s=F(()=>{const k=new Set;return Object.values(n.value).forEach(w=>{w.type&&k.add(w.type)}),Array.from(k)}),l=F(()=>Object.entries(n.value).filter(([k,w])=>w.special===!0).map(([k,w])=>({key:k,...w}))),c=ue([{key:"basic-concepts",name:"基础概念",color:"blue"},{key:"action-types",name:"动作类型",color:"green"},{key:"special-actions",name:"专项动作",color:"orange"},{key:"config-params",name:"配置参数",color:"purple"},{key:"examples",name:"示例代码",color:"red"}]),d=F(()=>[{key:"interaction",title:"交互动作",description:n.value.交互动作||""},{key:"action-command",title:"动作指令",description:n.value.动作指令?.split(` `)[0]||""},{key:"video-vod",title:"视频VOD",description:n.value.视频VOD?.split("例如:")[0]||""},{key:"interface-action",title:"接口action",description:n.value.接口action||""}]),h=ue([{key:"basic",name:"基础动作",type:"string",color:"blue",description:"简单的动作指令字符串,用户点击时无信息输入窗口",usage:"直接发送指令"},{key:"input",name:"单项输入",type:"input",color:"green",description:"要求用户输入一个字段的动作",usage:"获取用户单个输入值"},{key:"edit",name:"多行编辑",type:"edit",color:"cyan",description:"要求用户在多行编辑区输入单个字段内容",usage:"长文本输入"},{key:"multiInput",name:"多项输入",type:"multiInput",color:"purple",description:"要求用户输入多个字段(5个以内)",usage:"少量多字段输入"},{key:"multiInputX",name:"增强多项输入",type:"multiInputX",color:"orange",description:"要求用户输入多个字段(不限制个数)",usage:"复杂表单输入"},{key:"menu",name:"单项选择",type:"menu",color:"lime",description:"要求用户在列表中选择一个项目",usage:"单选操作"},{key:"select",name:"多项选择",type:"select",color:"gold",description:"要求用户在列表中选择多个项目",usage:"多选操作"},{key:"msgbox",name:"消息弹窗",type:"msgbox",color:"red",description:"弹出窗口显示消息",usage:"信息展示"}]),p=F(()=>[{key:"self_search",actionId:"__self_search__",name:"源内搜索",description:n.value.__self_search__?.split(` @@ -335,104 +335,104 @@ PERFORMANCE OF THIS SOFTWARE. "multiLine": 5 } ] -}`);return(k,C)=>{const x=Te("a-button"),E=Te("a-tag"),_=Te("a-card"),T=Te("a-tab-pane"),D=Te("a-tabs");return z(),X("div",Mbt,[$(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:fe(()=>[I("div",$bt,[$(rt(c_),{class:"title-icon"}),C[0]||(C[0]=I("span",null,"Action 动作指令文档",-1))])]),extra:fe(()=>[$(x,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:fe(()=>[t.value?Ie("",!0):(z(),Ze(rt(Zh),{key:0})),t.value?(z(),Ze(rt(tS),{key:1})):Ie("",!0),He(" "+Ne(t.value?"收起":"展开"),1)]),_:1})]),default:fe(()=>[I("div",Obt,[I("div",Bbt,[I("div",Nbt,[C[1]||(C[1]=I("div",{class:"overview-label"},"总条目数",-1)),I("div",Fbt,Ne(a.value),1)]),I("div",jbt,[C[2]||(C[2]=I("div",{class:"overview-label"},"动作类型",-1)),I("div",Vbt,Ne(s.value.length),1)]),I("div",zbt,[C[3]||(C[3]=I("div",{class:"overview-label"},"专项动作",-1)),I("div",Ubt,Ne(l.value.length),1)])]),t.value?Ie("",!0):(z(),X("div",Hbt,[(z(!0),X(Pt,null,cn(c.value,P=>(z(),Ze(E,{key:P.key,color:P.color,class:"nav-tag",onClick:M=>i(P.key)},{default:fe(()=>[He(Ne(P.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(z(),X("div",Wbt,[I("div",Gbt,[I("h3",Kbt,[$(rt(Pc),{class:"section-icon"}),C[4]||(C[4]=He(" 基础概念 ",-1))]),I("div",qbt,[(z(!0),X(Pt,null,cn(d.value,P=>(z(),X("div",{class:"concept-item",key:P.key},[I("div",Ybt,Ne(P.title),1),I("div",Xbt,Ne(P.description),1)]))),128))])]),I("div",Zbt,[I("h3",Jbt,[$(rt(Lf),{class:"section-icon"}),C[5]||(C[5]=He(" 动作类型 ",-1))]),I("div",Qbt,[(z(!0),X(Pt,null,cn(h.value,P=>(z(),Ze(_,{key:P.key,size:"small",class:"action-type-card",hoverable:!0},{default:fe(()=>[I("div",e_t,[$(E,{color:P.color},{default:fe(()=>[He(Ne(P.name),1)]),_:2},1032,["color"]),I("span",t_t,Ne(P.type),1)]),I("div",n_t,Ne(P.description),1),P.usage?(z(),X("div",r_t,[C[6]||(C[6]=I("strong",null,"用途:",-1)),He(Ne(P.usage),1)])):Ie("",!0)]),_:2},1024))),128))])]),I("div",i_t,[I("h3",o_t,[$(rt(aA),{class:"section-icon"}),C[7]||(C[7]=He(" 专项动作 ",-1))]),I("div",s_t,[(z(!0),X(Pt,null,cn(p.value,P=>(z(),X("div",{key:P.key,class:"special-action-item"},[I("div",a_t,[I("code",l_t,Ne(P.actionId),1),I("span",u_t,Ne(P.name),1)]),I("div",c_t,Ne(P.description),1),P.params?(z(),X("div",d_t,[C[8]||(C[8]=I("strong",null,"参数:",-1)),(z(!0),X(Pt,null,cn(P.params,M=>(z(),X("span",{key:M,class:"param-tag"},Ne(M),1))),128))])):Ie("",!0)]))),128))])]),I("div",f_t,[I("h3",h_t,[$(rt(T0),{class:"section-icon"}),C[9]||(C[9]=He(" 配置参数 ",-1))]),I("div",p_t,[(z(!0),X(Pt,null,cn(v.value,P=>(z(),X("div",{key:P.key,class:"param-item"},[I("div",v_t,[I("code",m_t,Ne(P.name),1),$(E,{size:"small",color:P.typeColor},{default:fe(()=>[He(Ne(P.type),1)]),_:2},1032,["color"])]),I("div",g_t,Ne(P.description),1)]))),128))])]),I("div",y_t,[I("h3",b_t,[$(rt(Bve),{class:"section-icon"}),C[10]||(C[10]=He(" 示例代码 ",-1))]),$(D,{type:"card",class:"example-tabs"},{default:fe(()=>[$(T,{key:"basic",title:"基础动作"},{default:fe(()=>[I("pre",__t,Ne(g.value),1)]),_:1}),$(T,{key:"input",title:"单项输入"},{default:fe(()=>[I("pre",S_t,Ne(y.value),1)]),_:1}),$(T,{key:"multi",title:"多项输入"},{default:fe(()=>[I("pre",k_t,Ne(S.value),1)]),_:1})]),_:1})])])):Ie("",!0)])]),_:1})])}}},C_t=cr(x_t,[["__scopeId","data-v-d143db2b"]]),w_t={class:"home-container"},E_t={class:"dashboard-header"},T_t={class:"header-content"},A_t={class:"welcome-section"},I_t={class:"dashboard-title"},L_t={class:"quick-stats"},D_t={class:"stat-item"},P_t={class:"stat-value"},R_t={class:"stat-item"},M_t={class:"stat-value"},$_t={class:"stat-item"},O_t={class:"dashboard-content"},B_t={class:"content-grid"},N_t={class:"dashboard-card watch-stats-card"},F_t={class:"card-header"},j_t={class:"card-title"},V_t={class:"card-content"},z_t={class:"dashboard-card update-log-card"},U_t={class:"card-header"},H_t={class:"card-title"},W_t={class:"card-content"},G_t={class:"timeline-content"},K_t={class:"timeline-header"},q_t={class:"version-tag"},Y_t={class:"update-date"},X_t={class:"update-title"},Z_t={class:"update-description"},J_t={class:"update-changes"},Q_t={key:0,class:"more-changes"},eSt={class:"dashboard-card recommend-card"},tSt={class:"card-header"},nSt={class:"card-title"},rSt={class:"card-content"},iSt={class:"recommend-grid"},oSt=["onClick"],sSt={class:"recommend-poster"},aSt={class:"recommend-overlay"},lSt={key:0,class:"trending-badge"},uSt={class:"recommend-info"},cSt={class:"recommend-title"},dSt={class:"recommend-meta"},fSt={class:"recommend-rating"},hSt={class:"recommend-tags"},pSt={class:"dashboard-card keywords-card"},vSt={class:"card-header"},mSt={class:"card-title"},gSt={class:"card-content"},ySt={class:"keywords-list"},bSt=["onClick"],_St={class:"keyword-content"},SSt={class:"keyword-text"},kSt={class:"keyword-meta"},xSt={class:"keyword-count"},CSt={class:"dashboard-card system-status-card"},wSt={class:"card-header"},ESt={class:"card-title"},TSt={class:"card-content"},ASt={class:"status-grid"},ISt={class:"status-item"},LSt={class:"status-icon online"},DSt={class:"status-item"},PSt={class:"status-icon online"},RSt={class:"status-item"},MSt={class:"status-icon warning"},$St={class:"status-item"},OSt={class:"status-icon online"},BSt={class:"update-log-modal"},NSt={class:"timeline-content"},FSt={class:"timeline-header"},jSt={class:"version-tag"},VSt={class:"update-date"},zSt={class:"update-title"},USt={class:"update-description"},HSt={class:"update-changes"},WSt={class:"keywords-modal"},GSt={class:"keywords-list"},KSt=["onClick"],qSt={class:"keyword-content"},YSt={class:"keyword-text"},XSt={class:"keyword-meta"},ZSt={class:"keyword-count"},JSt={__name:"Home",setup(e){Gh([Nye,Xye,Kye,t3e,h3e,y3e,x3e,b3e]);const t=kS(),n=s3(),r=ma(),i=ue("week"),a=ue("hot"),s=ue({watchCount:0,totalWatchTime:0}),l=ue({watchCount:0,totalWatchTime:0}),c=ue([]),d=ue(0),h=ue([]),p=ue([]),v=ue([]),g=F(()=>{const te=c.value.map(q=>q.count),W=c.value.map(q=>q.day);return{title:{text:i.value==="week"?"本周观看统计":"本月观看统计",textStyle:{fontSize:14,color:"#1D2129"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(q){const Q=q[0];return`${Q.name}
${Q.seriesName}: ${Q.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:W,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:te,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),y=te=>_4.getUpdateTypeConfig()[te]?.color||"#86909c",S=()=>_4.getUpdateTypeConfig(),k=te=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[te]||"gray",C=te=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[te]||"#86909C",x=te=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[te]||"gray",E=te=>_4.formatDate(te),_=te=>te>=1e4?(te/1e4).toFixed(1)+"w":te>=1e3?(te/1e3).toFixed(1)+"k":te.toString(),T=()=>{console.log("更新统计图表:",i.value)},D=()=>{switch(a.value){case"hot":p.value=S4.getHotRecommendations(8);break;case"trending":p.value=S4.getTrendingRecommendations(8);break;case"random":p.value=S4.getRandomRecommendations(8);break}},P=te=>{console.log("点击推荐内容:",te)},M=te=>{console.log("点击热搜关键词:",te)},O=ue(!1),L=ue(!1),B=ue([]),j=ue([]),H=()=>{B.value=_4.getAllUpdateLogs(),O.value=!0},U=()=>{j.value=S4.getAllKeywords(),L.value=!0},K=()=>{O.value=!1},Y=()=>{L.value=!1},ie=()=>{s.value=yC.getTodayStats(),l.value=yC.getYesterdayStats(),c.value=yC.getWeekStats(),d.value=yC.calculateGrowthRate(),h.value=_4.getRecentUpdateLogs(4),D(),v.value=S4.getHotKeywords(8)};return hn(()=>{if(n.query._restoreSearch==="true"){const W=t.getPageState("search");if(W&&W.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",W),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const q={...n.query};delete q._restoreSearch,r.replace({query:q})}ie(),console.log("主页看板加载完成")}),(te,W)=>{const q=Te("a-option"),Q=Te("a-select"),se=Te("a-link"),ae=Te("a-tag"),re=Te("a-timeline-item"),Ce=Te("a-timeline"),Ve=Te("a-modal");return z(),X(Pt,null,[I("div",w_t,[I("div",E_t,[I("div",T_t,[I("div",A_t,[I("h1",I_t,[$(rt(h3),{class:"title-icon"}),W[4]||(W[4]=He(" 数据看板 ",-1))]),W[5]||(W[5]=I("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),I("div",L_t,[I("div",D_t,[I("div",P_t,Ne(s.value.watchCount),1),W[6]||(W[6]=I("div",{class:"stat-label"},"今日观看",-1))]),I("div",R_t,[I("div",M_t,Ne(Math.round(s.value.totalWatchTime/60)),1),W[7]||(W[7]=I("div",{class:"stat-label"},"总时长(分钟)",-1))]),I("div",$_t,[I("div",{class:de(["stat-value",{positive:d.value>0,negative:d.value<0}])},Ne(d.value>0?"+":"")+Ne(d.value)+"% ",3),W[8]||(W[8]=I("div",{class:"stat-label"},"增长率",-1))])])])]),I("div",O_t,[I("div",B_t,[I("div",N_t,[I("div",F_t,[I("h3",j_t,[$(rt(Gve),{class:"card-icon"}),W[9]||(W[9]=He(" 最近观看统计 ",-1))]),$(Q,{modelValue:i.value,"onUpdate:modelValue":W[0]||(W[0]=ge=>i.value=ge),size:"small",style:{width:"100px"},onChange:T},{default:fe(()=>[$(q,{value:"week"},{default:fe(()=>[...W[10]||(W[10]=[He("本周",-1)])]),_:1}),$(q,{value:"month"},{default:fe(()=>[...W[11]||(W[11]=[He("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",V_t,[$(rt(E3e),{class:"chart",option:g.value},null,8,["option"])])]),I("div",z_t,[I("div",U_t,[I("h3",H_t,[$(rt(Om),{class:"card-icon"}),W[12]||(W[12]=He(" 更新日志 ",-1))]),$(se,{onClick:H,size:"small"},{default:fe(()=>[...W[13]||(W[13]=[He("查看全部",-1)])]),_:1})]),I("div",W_t,[$(Ce,null,{default:fe(()=>[(z(!0),X(Pt,null,cn(h.value,ge=>(z(),Ze(re,{key:ge.id,"dot-color":y(ge.type)},{default:fe(()=>[I("div",G_t,[I("div",K_t,[I("span",q_t,Ne(ge.version),1),I("span",Y_t,Ne(E(ge.date)),1)]),I("h4",X_t,Ne(ge.title),1),I("p",Z_t,Ne(ge.description),1),I("div",J_t,[(z(!0),X(Pt,null,cn(ge.changes.slice(0,2),(xe,Ge)=>(z(),Ze(ae,{key:Ge,size:"small",color:k(ge.type)},{default:fe(()=>[He(Ne(xe),1)]),_:2},1032,["color"]))),128)),ge.changes.length>2?(z(),X("span",Q_t," +"+Ne(ge.changes.length-2)+"项更新 ",1)):Ie("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),I("div",eSt,[I("div",tSt,[I("h3",nSt,[$(rt(oA),{class:"card-icon"}),W[14]||(W[14]=He(" 猜你喜欢 ",-1))]),$(Q,{modelValue:a.value,"onUpdate:modelValue":W[1]||(W[1]=ge=>a.value=ge),size:"small",style:{width:"80px"},onChange:D},{default:fe(()=>[$(q,{value:"hot"},{default:fe(()=>[...W[15]||(W[15]=[He("热门",-1)])]),_:1}),$(q,{value:"trending"},{default:fe(()=>[...W[16]||(W[16]=[He("趋势",-1)])]),_:1}),$(q,{value:"random"},{default:fe(()=>[...W[17]||(W[17]=[He("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",rSt,[I("div",iSt,[(z(!0),X(Pt,null,cn(p.value,ge=>(z(),X("div",{key:ge.id,class:"recommend-item",onClick:xe=>P(ge)},[I("div",sSt,[I("div",{class:"poster-placeholder",style:Ye({backgroundColor:C(ge.type)})},Ne(ge.title.substring(0,2)),5),I("div",aSt,[$(rt(ha),{class:"play-icon"})]),ge.trending?(z(),X("div",lSt," 🔥 热门 ")):Ie("",!0)]),I("div",uSt,[I("h4",cSt,Ne(ge.title),1),I("div",dSt,[$(ae,{size:"small",color:x(ge.type)},{default:fe(()=>[He(Ne(ge.type),1)]),_:2},1032,["color"]),I("span",fSt,[$(rt(VH)),He(" "+Ne(ge.rating),1)])]),I("div",hSt,[(z(!0),X(Pt,null,cn(ge.tags.slice(0,2),xe=>(z(),Ze(ae,{key:xe,size:"mini",color:"gray"},{default:fe(()=>[He(Ne(xe),1)]),_:2},1024))),128))])])],8,oSt))),128))])])]),I("div",pSt,[I("div",vSt,[I("h3",mSt,[$(rt(aW),{class:"card-icon"}),W[18]||(W[18]=He(" 热搜关键词 ",-1))]),$(se,{onClick:U,size:"small"},{default:fe(()=>[...W[19]||(W[19]=[He("更多",-1)])]),_:1})]),I("div",gSt,[I("div",ySt,[(z(!0),X(Pt,null,cn(v.value,(ge,xe)=>(z(),X("div",{key:ge.keyword,class:"keyword-item",onClick:Ge=>M(ge)},[I("div",{class:de(["keyword-rank",{"top-three":xe<3}])},Ne(xe+1),3),I("div",_St,[I("span",SSt,Ne(ge.keyword),1),I("div",kSt,[I("span",xSt,Ne(_(ge.count)),1),I("span",{class:de(["keyword-trend",ge.trend])},[ge.trend==="up"?(z(),Ze(rt(xV),{key:0})):ge.trend==="down"?(z(),Ze(rt(kV),{key:1})):(z(),Ze(rt($m),{key:2}))],2)])])],8,bSt))),128))])])]),I("div",CSt,[I("div",wSt,[I("h3",ESt,[$(rt(sW),{class:"card-icon"}),W[20]||(W[20]=He(" 系统状态 ",-1))])]),I("div",TSt,[I("div",ASt,[I("div",ISt,[I("div",LSt,[$(rt(gu))]),W[21]||(W[21]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"播放服务"),I("div",{class:"status-value"},"正常")],-1))]),I("div",DSt,[I("div",PSt,[$(rt(gu))]),W[22]||(W[22]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"数据同步"),I("div",{class:"status-value"},"正常")],-1))]),I("div",RSt,[I("div",MSt,[$(rt($c))]),W[23]||(W[23]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"存储空间"),I("div",{class:"status-value"},"85%")],-1))]),I("div",$St,[I("div",OSt,[$(rt(gu))]),W[24]||(W[24]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"网络连接"),I("div",{class:"status-value"},"良好")],-1))])])])]),$(C_t)])])]),$(Ve,{visible:O.value,"onUpdate:visible":W[2]||(W[2]=ge=>O.value=ge),title:"更新日志",width:"800px",footer:!1,onCancel:K},{default:fe(()=>[I("div",BSt,[$(Ce,null,{default:fe(()=>[(z(!0),X(Pt,null,cn(B.value,ge=>(z(),Ze(re,{key:ge.id,"dot-color":y(ge.type)},{default:fe(()=>[I("div",NSt,[I("div",FSt,[I("span",jSt,Ne(ge.version),1),I("span",VSt,Ne(E(ge.date)),1),$(ae,{size:"small",color:k(ge.type),class:"type-tag"},{default:fe(()=>[He(Ne(S()[ge.type]?.label||ge.type),1)]),_:2},1032,["color"])]),I("h4",zSt,Ne(ge.title),1),I("p",USt,Ne(ge.description),1),I("div",HSt,[(z(!0),X(Pt,null,cn(ge.changes,(xe,Ge)=>(z(),Ze(ae,{key:Ge,size:"small",color:k(ge.type),class:"change-tag"},{default:fe(()=>[He(Ne(xe),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),$(Ve,{visible:L.value,"onUpdate:visible":W[3]||(W[3]=ge=>L.value=ge),title:"热搜关键词",width:"600px",footer:!1,onCancel:Y},{default:fe(()=>[I("div",WSt,[I("div",GSt,[(z(!0),X(Pt,null,cn(j.value,(ge,xe)=>(z(),X("div",{key:ge.keyword,class:"keyword-item",onClick:Ge=>M(ge)},[I("div",{class:de(["keyword-rank",{"top-three":xe<3}])},Ne(xe+1),3),I("div",qSt,[I("span",YSt,Ne(ge.keyword),1),I("div",XSt,[I("span",ZSt,Ne(_(ge.count)),1),I("span",{class:de(["keyword-trend",ge.trend])},[ge.trend==="up"?(z(),Ze(rt(xV),{key:0})):ge.trend==="down"?(z(),Ze(rt(kV),{key:1})):(z(),Ze(rt($m),{key:2}))],2)])])],8,KSt))),128))])])]),_:1},8,["visible"])],64)}}},QSt=cr(JSt,[["__scopeId","data-v-217d9b8b"]]),e6t={class:"tag-container"},t6t={class:"search-section"},n6t={class:"search-row"},r6t={class:"source-count"},i6t={class:"sources-section"},o6t={key:0,class:"empty-state"},s6t={key:1,class:"button-container"},a6t={class:"source-info"},l6t={class:"source-name"},u6t={key:0,class:"current-icon"},c6t={class:"dialog-footer"},d6t={class:"footer-left"},f6t={class:"footer-right"},h6t={__name:"SourceDialog",props:{visible:Boolean,title:String,sites:Array,currentSiteKey:String},emits:["update:visible","confirm-clear","confirm-change","change-rule"],setup(e,{emit:t}){const n=e,r=t,i=ue(""),a=ue({new_site:{}}),s=ue(null),l=ue(!1),c=E=>{const _=E.match(/\[(.*?)\]/);return _?_[1]:null},d={ds:"(DS)",hipy:"(hipy)",cat:"(cat)"},h=F(()=>{const E=n.sites.filter(T=>T.type===4).map(T=>c(T.name)).filter(T=>T!==null);return[...[...new Set(E)],"ds","hipy","cat"]}),p=E=>{E==="全部"?i.value="":d[E]?i.value=d[E]:i.value=`[${E}]`,l.value=!1},v=F(()=>{const E=i.value.toLowerCase();return n.sites.filter(_=>_.type===4).filter(_=>_.name.toLowerCase().includes(E))}),g=F(()=>window.innerWidth<768?"95%":"700px"),y=E=>{a.value.new_site=E,r("change-rule",E)},S=()=>{r("confirm-clear"),r("update:visible",!1)},k=()=>{a.value.new_site.key&&(r("confirm-change",a.value.new_site),r("update:visible",!1))},C=()=>{r("update:visible",!1)},x=()=>{dn(()=>{if(s.value&&s.value.length>0){const E=s.value[0];E&&E.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return It(()=>n.visible,E=>{E&&n.currentSiteKey&&setTimeout(()=>{x()},100)}),It(v,()=>{n.visible&&n.currentSiteKey&&i.value.trim()!==""&&v.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{x()},50)}),(E,_)=>{const T=Te("a-button"),D=Te("a-modal"),P=Te("a-input");return z(),X(Pt,null,[$(D,{visible:l.value,title:`TAG [${h.value.length}]`,width:g.value,class:"tag_dialog","append-to-body":"",onCancel:_[1]||(_[1]=M=>l.value=!1)},{default:fe(()=>[I("div",e6t,[$(T,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=M=>p("全部"))},{default:fe(()=>[..._[4]||(_[4]=[He(" 全部 ",-1)])]),_:1}),(z(!0),X(Pt,null,cn(h.value,(M,O)=>(z(),Ze(T,{key:O,type:"secondary",class:"tag-item",onClick:L=>p(M)},{default:fe(()=>[He(Ne(M),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),$(D,{visible:e.visible,title:e.title,width:g.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":S},{footer:fe(()=>[I("div",c6t,[I("div",d6t,[$(T,{type:"outline",status:"danger",onClick:S},{default:fe(()=>[$(rt(zc)),_[7]||(_[7]=He(" 清除缓存 ",-1))]),_:1})]),I("div",f6t,[$(T,{onClick:C},{default:fe(()=>[..._[8]||(_[8]=[He("取消",-1)])]),_:1}),$(T,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:fe(()=>[..._[9]||(_[9]=[He(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:fe(()=>[I("div",t6t,[I("div",n6t,[$(P,{modelValue:i.value,"onUpdate:modelValue":_[2]||(_[2]=M=>i.value=M),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:fe(()=>[$(rt(Pm))]),_:1},8,["modelValue"]),$(T,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=M=>l.value=!0)},{default:fe(()=>[..._[5]||(_[5]=[He(" TAG ",-1)])]),_:1})]),I("div",r6t," 共 "+Ne(v.value.length)+" 个可用数据源 ",1)]),I("div",i6t,[v.value.length===0?(z(),X("div",o6t,[$(rt(N5)),_[6]||(_[6]=I("p",null,"未找到匹配的数据源",-1))])):(z(),X("div",s6t,[(z(!0),X(Pt,null,cn(v.value,(M,O)=>(z(),X("div",{key:M.key||O,ref_for:!0,ref:M.key===e.currentSiteKey?"currentSourceRef":null,class:de(["btn-item",{selected:a.value.new_site.key===M.key,"current-source":M.key===e.currentSiteKey}])},[$(T,{type:"primary",status:a.value.new_site.key===M.key?"success":"primary",size:"medium",onClick:L=>y(M),class:de(["source-button",{"current-source-button":M.key===e.currentSiteKey}])},{default:fe(()=>[I("div",a6t,[I("div",l6t,Ne(M.name),1),M.key===e.currentSiteKey?(z(),X("div",u6t,[$(rt(Yh))])):Ie("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},p6t=cr(h6t,[["__scopeId","data-v-105ac4df"]]),v6t={name:"ActionDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},bottom:{type:Number,default:0},canceledOnTouchOutside:{type:Boolean,default:!0},dimAmount:{type:Number,default:.45},showClose:{type:Boolean,default:!0},escapeToClose:{type:Boolean,default:!0},customClass:{type:String,default:""},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["update:visible","close","open","opened","closed","toast","reset"],setup(e,{emit:t}){const n=ue(!1),r=ue(!1),i=()=>{r.value=window.innerWidth<=768},a=F(()=>{const p={};return r.value?(p.width="95vw",p.maxWidth="95vw",p.margin="0 auto"):(e.width&&(p.width=typeof e.width=="number"?`${e.width}px`:e.width,p.maxWidth="90vw"),e.height&&e.height!=="auto"&&(p.height=typeof e.height=="number"?`${e.height}px`:e.height)),e.bottom>0&&(p.marginBottom=`${e.bottom}px`),p}),s=F(()=>{const p={};return e.height&&e.height!=="auto"&&(p.maxHeight="calc(100% - 120px)",p.overflowY="auto"),p}),l=()=>{e.canceledOnTouchOutside&&c()},c=async()=>{n.value||(t("close"),n.value=!0,await new Promise(p=>setTimeout(p,300)),t("update:visible",!1),n.value=!1,t("closed"))},d=p=>{p.key==="Escape"&&e.escapeToClose&&e.visible&&c()};return It(()=>e.visible,p=>{p?(t("open"),i(),dn(()=>{t("opened")}),document.addEventListener("keydown",d),window.addEventListener("resize",i),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",d),window.removeEventListener("resize",i),document.body.style.overflow="")},{immediate:!0}),{isClosing:n,isMobile:r,dialogStyle:a,contentStyle:s,handleMaskClick:l,handleClose:c,cleanup:()=>{document.removeEventListener("keydown",d),window.removeEventListener("resize",i),document.body.style.overflow=""}}},beforeUnmount(){this.cleanup()}},m6t={key:1,class:"action-dialog-header"},g6t={class:"action-dialog-title"},y6t={key:2,class:"action-dialog-footer"};function b6t(e,t,n,r,i,a){return z(),Ze(Zm,{to:"body"},[$(Cs,{name:"action-mask",appear:""},{default:fe(()=>[n.visible?(z(),X("div",{key:0,class:de(["action-mask modal-backdrop",{closing:r.isClosing}]),style:Ye({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[$(Cs,{name:"action-dialog",appear:""},{default:fe(()=>[n.visible&&!r.isClosing?(z(),X("div",{key:0,class:de(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:Ye(r.dialogStyle),onClick:t[1]||(t[1]=cs(()=>{},["stop"]))},[t[4]||(t[4]=I("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(z(),X("button",{key:0,class:"action-dialog-close btn-modern-icon",onClick:t[0]||(t[0]=(...s)=>r.handleClose&&r.handleClose(...s)),title:"关闭"},[...t[3]||(t[3]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):Ie("",!0),n.title||e.$slots.header?(z(),X("div",m6t,[mt(e.$slots,"header",{},()=>[I("h3",g6t,Ne(n.title),1)],!0)])):Ie("",!0),I("div",{class:"action-dialog-content",style:Ye(r.contentStyle)},[mt(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(z(),X("div",y6t,[mt(e.$slots,"footer",{},void 0,!0)])):Ie("",!0)],6)):Ie("",!0)]),_:3})],6)):Ie("",!0)]),_:3})])}const ep=cr(v6t,[["render",b6t],["__scopeId","data-v-36eb5ad8"]]),Ei={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help",SPECIAL:"special"},Th={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},mi={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},Yc=e=>e==null?mi.OK_CANCEL:Object.values(mi).includes(e)?e:mi.CUSTOM,Ah=(e,t,n=null)=>({type:e,message:t,details:n}),AG=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw Ah(Th.PARSE_ERROR,"无法解析Action配置",t)}},R3e=e=>!e||typeof e!="object"?!1:!!(e.actionId==="__copy__"&&e.content||e.actionId&&e.actionId.startsWith("__")&&e.actionId.endsWith("__")),_6t=e=>{if(e.actionId==="__copy__"){if(!e.content)throw Ah(Th.VALIDATION_ERROR,"剪贴板操作必须包含content字段");return!0}if(e.actionId&&e.actionId.startsWith("__")&&e.actionId.endsWith("__"))return!0;throw Ah(Th.VALIDATION_ERROR,`未知的专项动作类型: ${e.actionId}`)},M3e=e=>{if(!e||typeof e!="object")throw Ah(Th.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw Ah(Th.VALIDATION_ERROR,"actionId是必需的");if(console.log("config:",e),R3e(e))return _6t(e);if(!e.type)throw Ah(Th.VALIDATION_ERROR,"type字段是必需的(除非是专项动作)");if(!Object.values(Ei).includes(e.type))throw Ah(Th.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},u0=e=>{if(!e)return[];try{if(e.match(/^\[(?:folder|calendar|file|image)\]$/)){const t=e.slice(1,-1).toLowerCase();return[{name:{calendar:"📅 选择日期",file:"📄 选择文件",folder:"📁 选择文件夹",image:"🖼️ 选择图片"}[t]||e,value:e}]}if(e.startsWith("[")&&e.includes("]")){const t=e.indexOf("]"),n=e.substring(1,t),r=e.substring(t+1);return r?r.split(",").map(i=>{const a=i.trim();return{name:a,value:a}}).filter(i=>i.name):[{name:n,value:e}]}if(e.startsWith("[")&&e.endsWith("]")||e.startsWith("{")&&e.endsWith("}"))try{return JSON.parse(e)}catch{}return e.includes(":=")?e.split(",").map(t=>{const n=t.trim(),[r,i]=n.split(":=");return{name:r?r.trim():n,value:i?i.trim():n}}).filter(t=>t.name):e.split("|").map(t=>{const[n,r]=t.split("=");return{name:n||t,value:r||t}})}catch(t){return console.warn("解析selectData失败:",t),[]}},$3e=(e,t="200x200")=>{const[n,r]=t.split("x").map(i=>parseInt(i)||200);return`https://api.qrserver.com/v1/create-qr-code/?size=${n}x${r}&data=${encodeURIComponent(e)}`},O3e=(e,t)=>{let n;return function(...i){const a=()=>{clearTimeout(n),e(...i)};clearTimeout(n),n=setTimeout(a,t)}},ca=e=>{if(e){if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch(t){console.warn("extend参数JSON序列化失败:",t);return}return e}},bC=e=>{if(!e)return console.log("🔍 [Headers解析] 输入为空,返回空对象"),{};if(console.log("🔍 [Headers解析] 输入数据:",e,"类型:",typeof e),typeof e=="object"&&e!==null)return console.log("🔍 [Headers解析] 已是对象,直接返回:",e),e;if(typeof e=="string")try{const t=JSON.parse(e),n=typeof t=="object"&&t!==null?t:{};return console.log("🔍 [Headers解析] JSON字符串解析成功:",n),n}catch(t){return console.warn("🔍 [Headers解析] JSON字符串解析失败:",t,"原始数据:",e),{}}return console.log("🔍 [Headers解析] 未知类型,返回空对象"),{}},P0=e=>{const t=encodeURIComponent(e);return`${vW.MODULE}/${t}`},x3=async(e,t={})=>{try{return(await uo.get(e,{params:t,timeout:v0.TIMEOUT,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},S6t=async(e,t={})=>{const{filter:n=1,extend:r,apiUrl:i}=t,a={filter:n},s=ca(r);return s&&(a.extend=s),i?x3(i,a):V0(P0(e),a)},Z1=async(e,t)=>{const{t:n,pg:r=Cme.DEFAULT_PAGE,ext:i,extend:a,apiUrl:s}=t,l={ac:pA.CATEGORY,t:n,pg:r};i&&(l.ext=i);const c=ca(a);return c&&(l.extend=c),s?x3(s,l):V0(P0(e),l)},k6t=async(e,t)=>{const{ids:n,extend:r,apiUrl:i}=t,a={ac:pA.DETAIL,ids:n},s=ca(r);return s&&(a.extend=s),i?x3(i,a):V0(P0(e),a)},B3e=async(e,t)=>{const{play:n,flag:r,extend:i,apiUrl:a}=t,s={ac:pA.PLAY,play:n};r&&(s.flag=r);const l=ca(i);return l&&(s.extend=l),a?x3(a,s):V0(P0(e),s)},x6t=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await B3e(e,t);console.log("T4播放解析响应:",n);const r=n?.headers||n?.header;r&&console.log("T4接口返回的原始headers:",r,"类型:",typeof r);const i={success:!0,data:n,playType:"direct",url:"",headers:{},needParse:!1,needSniff:!1,message:""};if(n&&typeof n=="object")if(n.jx===1)i.playType="parse",i.url=n.url||n.play_url||"",i.headers=bC(n.headers||n.header),i.needParse=!0,i.qualities=[],i.hasMultipleQualities=!1,i.message="需要解析才能播放,尽情期待";else if(n.parse===0){i.playType="direct";const a=n.url||n.play_url||"";if(Array.isArray(a)){console.log("检测到多画质URL数组:",a);const s=[];for(let l=0;l1,s.length>0?(i.url=s[0].url,i.currentQuality=s[0].name,i.message=`多画质播放 (当前: ${s[0].name})`):(i.url="",i.message="多画质数据解析失败")}else i.url=a,i.qualities=[],i.hasMultipleQualities=!1,i.currentQuality="默认",i.message="直链播放";i.headers=bC(n.headers||n.header),i.needParse=!1,i.needSniff=!1}else n.parse===1?(i.playType="sniff",i.url=n.url||n.play_url||"",i.headers=bC(n.headers||n.header),i.needSniff=!0,i.qualities=[],i.hasMultipleQualities=!1,i.message="需要嗅探才能播放,尽情期待"):(i.url=n.url||n.play_url||n,i.headers=bC(n.headers||n.header),i.qualities=[],i.hasMultipleQualities=!1,i.message="直链播放");else typeof n=="string"&&(i.url=n,i.headers={},i.qualities=[],i.hasMultipleQualities=!1,i.message="直链播放");return i}catch(n){return console.error("T4播放解析失败:",n),{success:!1,error:n.message||"播放解析失败",playType:"error",url:"",headers:{},needParse:!1,needSniff:!1,message:"播放解析失败: "+(n.message||"未知错误")}}},C6t=async(e,t)=>{const{wd:n,pg:r=Cme.DEFAULT_PAGE,extend:i,apiUrl:a}=t,s={wd:n,pg:r},l=ca(i);return l&&(s.extend=l),a?x3(a,s):V0(P0(e),s)},xS=async(e,t)=>{const{action:n,extend:r,apiUrl:i,...a}=t,s={ac:pA.ACTION,action:n,...a},l=ca(r);if(l&&(s.extend=l),console.log("executeAction调用参数:",{module:e,data:t,requestData:s,apiUrl:i}),i)if(console.log("直接调用API:",i,s),i.endsWith(".json")){const d=await uo.get(i,{timeout:v0.TIMEOUT,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",d.data),d.data}else{const d=await uo.post(i,s,{timeout:v0.TIMEOUT,headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}});return console.log("API响应 (POST):",d.data),d.data}console.log("使用代理方式调用:",P0(e),s);const c=await wme(P0(e),s);return console.log("代理响应:",c),c},w6t=async(e,t,n)=>{const r={refresh:"1"},i=ca(t);return i&&(r.extend=i),n?x3(n,r):V0(P0(e),r)},E6t=Jm(()=>fc(()=>Promise.resolve().then(()=>Ckt),void 0)),T6t=Jm(()=>fc(()=>Promise.resolve().then(()=>Nxt),void 0)),A6t=Jm(()=>fc(()=>Promise.resolve().then(()=>NCt),void 0)),I6t=Jm(()=>fc(()=>Promise.resolve().then(()=>Iwt),void 0)),L6t=Jm(()=>fc(()=>Promise.resolve().then(()=>nEt),void 0)),D6t=Jm(()=>fc(()=>Promise.resolve().then(()=>c8t),void 0)),P6t={name:"ActionRenderer",components:{ActionDialog:ep,InputAction:E6t,MultiInputAction:T6t,MenuAction:A6t,MsgBoxAction:I6t,WebViewAction:L6t,HelpAction:D6t},props:{actionData:{type:[String,Object],default:null},visible:{type:Boolean,default:!0},autoShow:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["action","close","error","success","special-action"],setup(e,{emit:t}){const n=ue(null),r=ue(null),i=ue(!1),a=ue(e.visible),s={[Ei.INPUT]:"InputAction",[Ei.EDIT]:"InputAction",[Ei.MULTI_INPUT]:"MultiInputAction",[Ei.MULTI_INPUT_X]:"MultiInputAction",[Ei.MENU]:"MenuAction",[Ei.SELECT]:"MenuAction",[Ei.MSGBOX]:"MsgBoxAction",[Ei.WEBVIEW]:"WebViewAction",[Ei.HELP]:"HelpAction"},l=F(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const T=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:T,parsedConfig:n.value}),T}),c=async T=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",T),!T){n.value=null;return}const D=AG(T);if(console.log("ActionRenderer parseConfig 解析后的配置:",D),M3e(D),R3e(D)){console.log("检测到特殊动作,立即执行:",D),await d(D);return}n.value=D,r.value=null,console.log("ActionRenderer parseConfig 设置 parsedConfig.value:",n.value),e.autoShow?(a.value=!0,console.log("ActionRenderer parseConfig 设置 isVisible.value = true, autoShow:",e.autoShow)):console.log("ActionRenderer parseConfig autoShow 为 false,不自动显示")}catch(D){console.error("解析Action配置失败:",D),r.value=D,n.value=null}},d=async T=>{const{actionId:D}=T;switch(D){case"__self_search__":if(console.log("🚀 [ActionRenderer DEBUG] 处理__self_search__专项动作"),console.log("🚀 [ActionRenderer DEBUG] actionData:",JSON.stringify(T,null,2)),!T.tid){console.error("🚀 [ActionRenderer ERROR] 源内搜索参数不完整:缺少tid"),Hn("源内搜索参数不完整:缺少tid","error"),v();break}const P={tid:T.tid,type_id:T.tid,name:T.name,type_name:T.name||`搜索: ${T.tid}`,isSpecialCategory:!0,actionData:T};console.log("🚀 [ActionRenderer DEBUG] 构造的 specialCategory:",JSON.stringify(P,null,2)),console.log("🚀 [ActionRenderer DEBUG] 即将触发 special-action 事件"),Hn(T.msg||"执行源内搜索","info"),t("special-action","__self_search__",P),console.log("🚀 [ActionRenderer DEBUG] special-action 事件已触发,关闭组件"),v();break;case"__detail__":Hn("跳转到详情页","info"),t("special-action","detail",T),v();break;case"__ktvplayer__":Hn("启动KTV播放","info"),t("special-action","ktv-player",T),v();break;case"__refresh_list__":Hn("刷新列表","info"),t("special-action","refresh-list",T),v();break;case"__copy__":if(T.content)try{await navigator.clipboard.writeText(T.content),Hn("已复制到剪切板","success")}catch{Hn("复制失败","error")}v();break;case"__keep__":T.msg&&Hn(T.msg,"info"),T.reset&&(n.value=null);break;default:Hn(`未知的专项动作: ${D}`,"warning"),v();break}},h=async T=>{if(n.value)try{i.value=!0;const D={action:n.value.actionId,value:typeof T=="object"?JSON.stringify(T):T};e.extend&&(D.extend=e.extend),e.apiUrl&&(D.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:D,apiUrl:e.apiUrl});let P=null;if(e.module?(P=await x(e.module,D),console.log("T4接口返回结果:",P)):(P=await t("action",n.value.actionId,T),console.log("父组件处理结果:",P)),P){if(typeof P=="string")try{P=JSON.parse(P)}catch{Hn(P,"success"),t("success",T),v();return}if(typeof P=="object"){if(console.log("处理API返回的对象结果:",P),P.error)throw Ah(Th.NETWORK_ERROR,P.error);if(P.toast&&Hn(P.toast,"success"),(P.message||P.msg)&&Hn(P.message||P.msg,"success"),P.action){console.log("检测到动态action,重新解析:",P.action),await c(P.action);return}if(P.actionId){console.log("检测到专项动作:",P.actionId),await d(P);return}if(P.code!==void 0)if(P.code===0||P.code===200){if(P.data&&typeof P.data=="object"){const M={...P.data};if(M.action||M.actionId){if(console.log("在data字段中检测到action:",M),M.action){await c(M.action);return}if(M.actionId){await d(M);return}}}Hn(P.message||P.msg||"操作成功","success")}else throw Ah(Th.NETWORK_ERROR,P.message||P.msg||`操作失败,错误码: ${P.code}`)}}t("success",T),v()}catch(D){console.error("执行Action失败:",D),r.value=D,Hn(D.message||"操作失败","error")}finally{i.value=!1}},p=()=>{v()},v=()=>{a.value=!1,n.value=null,t("close")},g=async(T,D)=>{if(typeof T=="object"&&T.type){console.log("ActionRenderer接收到新的动作配置:",T),a.value=!1,await new Promise(P=>setTimeout(P,100)),await c(T);return}await h({action:T,value:D})},y=()=>{r.value=null},S=(T,D)=>{console.log("🔗 [ActionRenderer DEBUG] 接收到子组件的 special-action 事件"),console.log("🔗 [ActionRenderer DEBUG] actionType:",T),console.log("🔗 [ActionRenderer DEBUG] actionData:",JSON.stringify(D,null,2)),console.log("🔗 [ActionRenderer DEBUG] 向父组件传递 special-action 事件"),t("special-action",T,D),v()};It(()=>e.actionData,async T=>{await c(T)},{immediate:!0}),It(()=>e.visible,T=>{a.value=T});const k=async T=>{T&&await c(T),a.value=!0},C=()=>{a.value=!1},x=async(T,D)=>{try{return i.value=!0,await t("action",T,D)}catch(P){throw r.value=P,P}finally{i.value=!1}};return{parsedConfig:n,currentComponent:l,error:r,isLoading:i,isVisible:a,handleSubmit:h,handleCancel:p,handleClose:v,handleAction:g,handleToast:(T,D="success")=>{Hn(T,D)},handleReset:()=>{console.log("InputAction触发重置事件")},handleSpecialActionFromChild:S,clearError:y,show:k,hide:C,executeAction:x}}},R6t={class:"action-renderer"},M6t={class:"action-error"},$6t={key:0};function O6t(e,t,n,r,i,a){const s=Te("ActionDialog");return z(),X("div",R6t,[r.parsedConfig?(z(),Ze(wa(r.currentComponent),{key:0,config:r.parsedConfig,visible:r.isVisible,module:n.module,extend:n.extend,"api-url":n.apiUrl,onSubmit:r.handleSubmit,onCancel:r.handleCancel,onClose:r.handleClose,onAction:r.handleAction,onToast:r.handleToast,onReset:r.handleReset,onSpecialAction:r.handleSpecialActionFromChild},null,40,["config","visible","module","extend","api-url","onSubmit","onCancel","onClose","onAction","onToast","onReset","onSpecialAction"])):Ie("",!0),r.error?(z(),Ze(s,{key:1,visible:!!r.error,title:"错误",width:"400",onClose:r.clearError},{footer:fe(()=>[I("button",{class:"action-button action-button-primary",onClick:t[0]||(t[0]=(...l)=>r.clearError&&r.clearError(...l))}," 确定 ")]),default:fe(()=>[I("div",M6t,[I("p",null,[I("strong",null,Ne(r.error.type),1)]),I("p",null,Ne(r.error.message),1),r.error.details?(z(),X("pre",$6t,Ne(JSON.stringify(r.error.details,null,2)),1)):Ie("",!0)])]),_:1},8,["visible","onClose"])):Ie("",!0),r.isLoading?(z(),Ze(s,{key:2,visible:r.isLoading,title:"处理中",width:"300","show-close":!1},{default:fe(()=>[...t[1]||(t[1]=[I("div",{class:"action-loading"}," 正在处理,请稍候... ",-1)])]),_:1},8,["visible"])):Ie("",!0)])}const lg=cr(P6t,[["render",O6t],["__scopeId","data-v-3c8cada7"]]),B6t={name:"InputAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ma(),r=ue(null),i=ue(null),a=ue(""),s=ue(""),l=ue(null),c=ue(0),d=ue(null),h=ue(!1),p=ue(""),v=ue(e.config.msg||""),g=F(()=>e.config.type==="edit"||e.config.multiLine>1),y=F(()=>{const{inputType:ge=0}=e.config;return{0:"text",1:"password",2:"number",3:"email",4:"url"}[ge]||"text"}),S=F(()=>u0(e.config.selectData||"")),k=F(()=>e.config.qrcode?$3e(e.config.qrcode,e.config.qrcodeSize):""),C=F(()=>{const ge=Yc(e.config.button);return ge===mi.OK_CANCEL||ge===mi.OK_ONLY||ge===mi.CUSTOM}),x=F(()=>{const ge=Yc(e.config.button);return ge===mi.OK_CANCEL||ge===mi.CANCEL_ONLY||ge===mi.CUSTOM}),E=F(()=>Yc(e.config.button)===mi.CUSTOM),_=F(()=>!!s.value),T=F(()=>!(_.value||e.config.required&&!a.value.trim())),D=O3e(ge=>{if(s.value="",e.config.required&&!ge.trim())return s.value="此字段为必填项",!1;if(e.config.validation)try{if(!new RegExp(e.config.validation).test(ge))return s.value="输入格式不正确",!1}catch(xe){console.warn("验证正则表达式错误:",xe)}if(y.value==="email"&&ge&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(ge))return s.value="请输入有效的邮箱地址",!1;if(y.value==="url"&&ge)try{new URL(ge)}catch{return s.value="请输入有效的URL地址",!1}return!0},300),P=ge=>{const xe=ge.target.value;a.value=xe,D(xe)},M=async()=>{if(!T.value)return;const ge={};e.config.imageClickCoord&&l.value&&(ge.imageCoords=l.value);const xe=a.value;if(ge[e.config.id||"value"]=xe,e.config.actionId)try{console.log("111:",e.config.actionId);const Ge=await Ve(e.config.actionId,xe);if(console.log("222:",typeof Ge),typeof Ge=="string"){Hn(Ge,"success"),t("close");return}if(Ge&&Ge.action){const tt=Ge.action,Ue=Ge.toast;switch(Ue&&Hn(Ue,"success"),tt.actionId){case"__keep__":tt.msg&&(v.value=tt.msg),tt.reset&&(a.value="",s.value="",t("reset"));return;case"__detail__":console.log("详情页跳转:",tt),await O(tt),t("close");return;case"__copy__":await L(tt,Ue),t("close");return;case"__self_search__":await B(tt),t("close");return;case"__refresh_list__":await j(tt),t("close");return;case"__ktvplayer__":await H(tt),t("close");return;default:if(tt.type){console.log("检测到普通动作,触发新的ActionRenderer:",tt),t("action",tt);return}else console.warn("未知的专项动作:",tt.actionId);break}}}catch(Ge){console.error("确认按钮T4接口调用失败:",Ge),Hn("操作失败,请重试","error");return}t("submit",ge)},O=async ge=>{try{const{skey:xe,ids:Ge}=ge;if(!xe||!Ge){Hn("详情页跳转参数不完整","error");return}const tt=Zo.getSiteByKey(xe);if(!tt){Hn(`未找到站源: ${xe}`,"error");return}console.log("跳转到详情页:",{skey:xe,ids:Ge,site:tt.name}),console.log("site:",tt),n.push({name:"VideoDetail",params:{id:Ge},query:{tempSiteName:tt.name,tempSiteApi:tt.api,tempSiteKey:tt.key,tempSiteExt:tt.ext,fromSpecialAction:"true",actionType:"__detail__",sourcePic:""}}),Hn(`正在加载 ${tt.name} 的详情...`,"info")}catch(xe){console.error("详情页跳转失败:",xe),Hn("详情页跳转失败","error")}},L=async(ge,xe)=>{try{const{content:Ge}=ge;if(!Ge){Hn("没有可复制的内容","error");return}await navigator.clipboard.writeText(Ge),xe||Hn("已复制到剪切板","success")}catch(Ge){console.error("复制失败:",Ge),Hn("复制失败","error")}},B=async ge=>{try{const{skey:xe,name:Ge,tid:tt,flag:Ue,folder:_e}=ge,ve={name:Ge||"搜索",tid:tt||"",flag:Ue||"",folder:_e||""};if(xe){const me=Zo.getSiteByKey(xe);me&&(Zo.setCurrentSite(xe),Hn(`已切换到 ${me.name}`,"info"))}console.log("执行源内搜索:",ve),Hn("正在执行源内搜索...","info"),console.log("📝 [InputAction DEBUG] 即将触发 special-action 事件"),console.log("📝 [InputAction DEBUG] 事件参数:",{actionType:"__self_search__",eventData:{tid:ve.tid,name:ve.name,type_id:ve.tid,type_name:ve.name,actionData:ve}}),t("special-action","__self_search__",{tid:ve.tid,name:ve.name,type_id:ve.tid,type_name:ve.name,actionData:ve}),console.log("📝 [InputAction DEBUG] special-action 事件已触发")}catch(xe){console.error("源内搜索失败:",xe),Hn("源内搜索失败","error")}},j=async ge=>{try{console.log("执行刷新列表:",ge);const Ge=n.currentRoute.value.name;switch(Ge){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:{...ge,type:"video"}}));break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:{...ge,type:"live"}}));break;case"Collection":window.dispatchEvent(new CustomEvent("refreshCollectionList",{detail:{...ge,type:"collection"}}));break;case"History":window.dispatchEvent(new CustomEvent("refreshHistoryList",{detail:{...ge,type:"history"}}));break;case"BookGallery":window.dispatchEvent(new CustomEvent("refreshBookList",{detail:{...ge,type:"book"}}));break;default:window.dispatchEvent(new CustomEvent("refreshList",{detail:{...ge,routeName:Ge}}));break}ge.type&&window.dispatchEvent(new CustomEvent(`refresh${ge.type}List`,{detail:ge})),Hn("列表刷新中...","info"),setTimeout(()=>{Hn("列表已刷新","success")},500)}catch(xe){console.error("刷新列表失败:",xe),Hn("刷新列表失败","error")}},H=async ge=>{try{const{name:xe,id:Ge,url:tt,type:Ue="ktv"}=ge;if(!xe||!Ge){Hn("KTV播放参数不完整","error");return}console.log("启动KTV播放:",{name:xe,id:Ge,url:tt,type:Ue});const _e={title:xe,videoId:Ge,playUrl:tt||Ge,playType:Ue,isKtv:!0,showLyrics:!0,enableKaraokeMode:!0,fromAction:"__ktvplayer__"};try{n.push({name:"KtvPlayer",params:{id:Ge},query:{title:xe,url:tt||Ge,type:Ue,mode:"ktv"}}),Hn(`正在启动KTV播放: ${xe}`,"success")}catch{console.log("KTV专用页面不存在,使用通用播放器"),window.dispatchEvent(new CustomEvent("startKtvPlay",{detail:_e})),n.push({name:"VideoPlayer",params:{id:Ge},query:{title:xe,url:tt||Ge,type:Ue,ktvMode:"true",showLyrics:"true",fromAction:"__ktvplayer__"}}),Hn(`正在播放: ${xe}`,"success")}}catch(xe){console.error("KTV播放失败:",xe),Hn("KTV播放失败","error")}},U=async()=>{if(e.config.cancelAction&&e.config.cancelValue!==void 0)try{await Ve(e.config.cancelAction,e.config.cancelValue)}catch(ge){console.error("取消按钮T4接口调用失败:",ge)}t("cancel"),t("close")},K=()=>{a.value="",s.value="",r.value&&r.value.focus()},Y=()=>{p.value=a.value,h.value=!0,dn(()=>{i.value&&i.value.focus()})},ie=()=>{h.value=!1},te=()=>{a.value=p.value,h.value=!1,P({target:{value:p.value}})},W=ge=>{if(!e.config.imageClickCoord)return;const xe=ge.target.getBoundingClientRect(),Ge=Math.round(ge.clientX-xe.left),tt=Math.round(ge.clientY-xe.top);l.value={x:Ge,y:tt};const Ue=`${Ge},${tt}`;a.value.trim()?a.value=`${a.value}-${Ue}`:a.value=Ue,D(a.value)},q=ge=>{a.value=ge.value,D(ge.value),e.config.onlyQuickSelect&&dn(()=>{M()})},Q=()=>{console.log("图片加载成功")},se=()=>{console.error("图片加载失败")},ae=()=>{console.error("二维码生成失败")},re=()=>{!e.config.timeout||e.config.timeout<=0||(c.value=e.config.timeout,d.value=setInterval(()=>{c.value--,c.value<=0&&(clearInterval(d.value),U())},1e3))},Ce=()=>{d.value&&(clearInterval(d.value),d.value=null),c.value=0},Ve=async(ge,xe)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;const Ge={},tt=e.config.id||"value";Ge[tt]=xe;const Ue={action:ge,value:JSON.stringify(Ge)};e.extend&&e.extend.ext&&(Ue.extend=e.extend.ext),e.apiUrl&&(Ue.apiUrl=e.apiUrl),console.log("InputAction调用T4接口:",{module:e.module,actionData:Ue,apiUrl:e.apiUrl});let _e=null;return e.module?(console.log("调用模块:",e.module),_e=await xS(e.module,Ue)):e.apiUrl&&(console.log("直接调用API:",e.apiUrl),_e=(await(await fc(async()=>{const{default:Oe}=await Promise.resolve().then(()=>hW);return{default:Oe}},void 0)).default.post(e.apiUrl,Ue,{timeout:pW(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",_e),_e};return It(()=>e.config,ge=>{a.value=ge.value||"",s.value="",l.value=null,ge.timeout?re():Ce()},{immediate:!0}),It(()=>e.visible,ge=>{ge?(dn(()=>{r.value&&r.value.focus()}),re()):Ce()}),hn(()=>{e.visible&&r.value&&r.value.focus()}),ii(()=>{Ce()}),{inputRef:r,inputValue:a,errorMessage:s,imageCoords:l,timeLeft:c,currentMessage:v,isMultiLine:g,inputType:y,quickSelectOptions:S,qrcodeUrl:k,showOkButton:C,showCancelButton:x,showResetButton:E,hasError:_,isValid:T,handleInput:P,handleSubmit:M,handleCancel:U,handleReset:K,handleImageClick:W,selectQuickOption:q,onImageLoad:Q,onImageError:se,onQrcodeError:ae,textEditorRef:i,showTextEditor:h,editorText:p,openTextEditor:Y,closeTextEditor:ie,saveEditorText:te}}},N6t={class:"input-action-modern"},F6t={key:0,class:"message-section"},j6t={class:"message-content"},V6t={class:"message-text"},z6t={key:1,class:"media-section"},U6t={class:"image-container"},H6t=["src"],W6t={key:0,class:"coords-display"},G6t={class:"coords-value"},K6t={key:2,class:"media-section"},q6t={class:"qrcode-container"},Y6t={class:"qrcode-wrapper"},X6t=["src","alt"],Z6t={class:"qrcode-text"},J6t={key:3,class:"input-section"},Q6t={key:0,class:"quick-select"},ekt={class:"quick-select-options"},tkt={class:"input-group"},nkt={key:0,class:"input-label"},rkt={key:1,class:"input-container"},ikt={class:"input-wrapper-modern"},okt=["type","placeholder"],skt={class:"input-actions"},akt={key:2,class:"textarea-container"},lkt={class:"textarea-wrapper-modern"},ukt=["placeholder","rows"],ckt={class:"input-status"},dkt={key:0,class:"error-message"},fkt={key:1,class:"help-message"},hkt={key:2,class:"char-count"},pkt={key:4,class:"timeout-section"},vkt={class:"timeout-indicator"},mkt={class:"timeout-text"},gkt={class:"timeout-progress"},ykt={class:"modern-footer"},bkt=["disabled"],_kt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Skt={class:"text-editor"},kkt={class:"modern-footer"};function xkt(e,t,n,r,i,a){const s=Te("a-tag"),l=Te("ActionDialog");return z(),X(Pt,null,[$(l,{visible:n.visible,title:n.config.title,width:n.config.width||420,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[14]||(t[14]=(c,d)=>e.emit("toast",c,d)),onReset:t[15]||(t[15]=()=>e.emit("reset"))},{footer:fe(()=>[I("div",ykt,[r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[11]||(t[11]=(...c)=>r.handleCancel&&r.handleCancel(...c))},[...t[26]||(t[26]=[I("span",null,"取消",-1)])])):Ie("",!0),r.showResetButton?(z(),X("button",{key:1,class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...c)=>r.handleReset&&r.handleReset(...c))},[...t[27]||(t[27]=[I("span",null,"重置",-1)])])):Ie("",!0),r.showOkButton?(z(),X("button",{key:2,class:de(["btn-modern btn-primary",{disabled:!r.isValid}]),disabled:!r.isValid,onClick:t[13]||(t[13]=(...c)=>r.handleSubmit&&r.handleSubmit(...c))},[t[29]||(t[29]=I("span",null,"确定",-1)),r.isValid?(z(),X("svg",_kt,[...t[28]||(t[28]=[I("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])):Ie("",!0)],10,bkt)):Ie("",!0)])]),default:fe(()=>[I("div",N6t,[n.config.msg?(z(),X("div",F6t,[I("div",j6t,[t[19]||(t[19]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),I("p",V6t,Ne(r.currentMessage),1)])])):Ie("",!0),n.config.imageUrl?(z(),X("div",z6t,[I("div",U6t,[I("img",{src:n.config.imageUrl,style:Ye({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:de(["action-image-modern",{clickable:n.config.imageClickCoord}]),onClick:t[0]||(t[0]=(...c)=>r.handleImageClick&&r.handleImageClick(...c)),onLoad:t[1]||(t[1]=(...c)=>r.onImageLoad&&r.onImageLoad(...c)),onError:t[2]||(t[2]=(...c)=>r.onImageError&&r.onImageError(...c))},null,46,H6t),r.imageCoords?(z(),X("div",W6t,[t[20]||(t[20]=I("span",{class:"coords-label"},"点击坐标:",-1)),I("span",G6t,Ne(r.imageCoords.x)+", "+Ne(r.imageCoords.y),1)])):Ie("",!0)])])):Ie("",!0),n.config.qrcode?(z(),X("div",K6t,[I("div",q6t,[I("div",Y6t,[I("img",{src:r.qrcodeUrl,alt:n.config.qrcode,class:"qrcode-image",onError:t[3]||(t[3]=(...c)=>r.onQrcodeError&&r.onQrcodeError(...c))},null,40,X6t)]),I("p",Z6t,Ne(n.config.qrcode),1)])])):Ie("",!0),n.config.qrcode?Ie("",!0):(z(),X("div",J6t,[r.quickSelectOptions.length>0?(z(),X("div",Q6t,[I("div",ekt,[(z(!0),X(Pt,null,cn(r.quickSelectOptions,c=>(z(),Ze(s,{key:c.value,class:"quick-select-tag",onClick:d=>r.selectQuickOption(c)},{default:fe(()=>[He(Ne(c.name),1)]),_:2},1032,["onClick"]))),128))])])):Ie("",!0),I("div",tkt,[n.config.tip?(z(),X("label",nkt,Ne(n.config.tip),1)):Ie("",!0),r.isMultiLine?(z(),X("div",akt,[I("div",lkt,[Ai(I("textarea",{ref:"inputRef","onUpdate:modelValue":t[8]||(t[8]=c=>r.inputValue=c),placeholder:n.config.tip||"请输入内容...",rows:n.config.multiLine||4,class:de(["textarea-field-modern",{error:r.hasError,success:!r.hasError&&r.inputValue.length>0}]),onInput:t[9]||(t[9]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,ukt),[[Ql,r.inputValue]]),I("button",{class:"expand-btn textarea-expand",onClick:t[10]||(t[10]=(...c)=>r.openTextEditor&&r.openTextEditor(...c)),title:"打开大文本编辑器"},[...t[22]||(t[22]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])])])])):(z(),X("div",rkt,[I("div",ikt,[Ai(I("input",{ref:"inputRef","onUpdate:modelValue":t[4]||(t[4]=c=>r.inputValue=c),type:r.inputType,placeholder:n.config.tip||"请输入内容...",class:de(["input-field-modern",{error:r.hasError,success:!r.hasError&&r.inputValue.length>0}]),onKeyup:t[5]||(t[5]=df((...c)=>r.handleSubmit&&r.handleSubmit(...c),["enter"])),onInput:t[6]||(t[6]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,okt),[[T5,r.inputValue]]),I("div",skt,[I("button",{class:"expand-btn",onClick:t[7]||(t[7]=(...c)=>r.openTextEditor&&r.openTextEditor(...c)),title:"打开大文本编辑器"},[...t[21]||(t[21]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])])])])])),I("div",ckt,[r.errorMessage?(z(),X("div",dkt,[t[23]||(t[23]=I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293-1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})],-1)),I("span",null,Ne(r.errorMessage),1)])):n.config.help?(z(),X("div",fkt,[t[24]||(t[24]=I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"})],-1)),I("span",null,Ne(n.config.help),1)])):Ie("",!0),r.inputValue.length>0?(z(),X("div",hkt,Ne(r.inputValue.length)+" 字符 ",1)):Ie("",!0)])])])),n.config.timeout&&r.timeLeft>0?(z(),X("div",pkt,[I("div",vkt,[t[25]||(t[25]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"})])],-1)),I("span",mkt,Ne(r.timeLeft)+"秒后自动关闭",1),I("div",gkt,[I("div",{class:"timeout-progress-bar",style:Ye({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Ie("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"]),$(l,{visible:r.showTextEditor,title:"大文本编辑器",width:800,onClose:r.closeTextEditor},{footer:fe(()=>[I("div",kkt,[I("button",{class:"btn-modern btn-secondary",onClick:t[17]||(t[17]=(...c)=>r.closeTextEditor&&r.closeTextEditor(...c))}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[18]||(t[18]=(...c)=>r.saveEditorText&&r.saveEditorText(...c))}," 确定 ")])]),default:fe(()=>[I("div",Skt,[Ai(I("textarea",{ref:"textEditorRef","onUpdate:modelValue":t[16]||(t[16]=c=>r.editorText=c),class:"text-editor-textarea",placeholder:"请输入文本内容..."},null,512),[[Ql,r.editorText]])])]),_:1},8,["visible","onClose"])],64)}const N3e=cr(B6t,[["render",xkt],["__scopeId","data-v-5ccea77c"]]),Ckt=Object.freeze(Object.defineProperty({__proto__:null,default:N3e},Symbol.toStringTag,{value:"Module"})),wkt={name:"MultiInputAction",components:{ActionDialog:ep,DatePicker:x0e,"a-radio":Mm,"a-radio-group":ab,"a-checkbox":Wc,"a-checkbox-group":ib},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ma(),r=ue([]),i=ue([]),a=ue([]),s=ue(0),l=ue(null),c=ue(e.config.msg||""),d=ue(null),h=ue(!1),p=ue(""),v=ue(-1),g=ue(!1),y=ue(-1),S=ue(""),k=ue(!1),C=ue(-1),x=ue([]),E=ue(""),_=ue([]),T=ue(!1),D=ue(4),P=ue(!1),M=ue(""),O=F(()=>e.config.type==="multiInputEnhanced"),L=F(()=>{const Wt=Yc(e.config.button);return Wt===mi.OK_CANCEL||Wt===mi.OK_ONLY||Wt===mi.CUSTOM}),B=F(()=>{const Wt=Yc(e.config.button);return Wt===mi.OK_CANCEL||Wt===mi.CANCEL_ONLY||Wt===mi.CUSTOM}),j=F(()=>Yc(e.config.button)===mi.CUSTOM),H=F(()=>{if(i.value.some(Wt=>Wt))return!1;for(let Wt=0;Wt{const Wt=e.config.input||[];a.value=Array.isArray(Wt)?Wt:[Wt],r.value=a.value.map(Yt=>Yt.value||""),i.value=a.value.map(()=>"")},K=Wt=>{const{inputType:Yt=0}=Wt;return{0:"text",1:"password",2:"number",3:"email",4:"url"}[Yt]||"text"},Y=Wt=>{const Yt=a.value[Wt],sn=r.value[Wt];if(i.value[Wt]="",Yt.required&&(!sn||!sn.trim()))return i.value[Wt]=`${Yt.name||"此字段"}为必填项`,!1;if(Yt.validation&&sn)try{if(!new RegExp(Yt.validation).test(sn))return i.value[Wt]=`${Yt.name||"输入"}格式不正确`,!1}catch(un){console.warn("验证正则表达式错误:",un)}const An=K(Yt);if(An==="email"&&sn&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(sn))return i.value[Wt]="请输入有效的邮箱地址",!1;if(An==="url"&&sn)try{new URL(sn)}catch{return i.value[Wt]="请输入有效的URL地址",!1}return!0},ie=O3e(Wt=>{Y(Wt)},300),te=async(Wt,Yt)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;try{const sn={action:Wt,value:JSON.stringify(Yt)};return e.extend&&e.extend.ext&&(sn.extend=e.extend.ext),e.apiUrl&&(sn.apiUrl=e.apiUrl),console.log("InputAction调用T4接口:",{module:e.module,actionData:sn,apiUrl:e.apiUrl}),await xS(e.module,sn)}catch(sn){throw console.error("T4接口调用失败:",sn),sn}},W=async Wt=>{try{const{skey:Yt,ids:sn}=Wt;if(!Yt||!sn){Hn("详情页跳转参数不完整","error");return}const An=Zo.getSiteByKey(Yt);if(!An){Hn(`未找到站源: ${Yt}`,"error");return}n.push({name:"VideoDetail",params:{id:sn},query:{tempSiteName:An.name,tempSiteApi:An.api,tempSiteKey:An.key,tempSiteExt:An.ext,fromSpecialAction:"true",actionType:"__detail__",sourcePic:""}}),Hn(`正在加载 ${An.name} 的详情...`,"info")}catch(Yt){console.error("详情页跳转失败:",Yt),Hn("详情页跳转失败","error")}},q=async(Wt,Yt)=>{try{const{content:sn}=Wt;if(!sn){Hn("没有可复制的内容","error");return}await navigator.clipboard.writeText(sn),Yt||Hn("已复制到剪切板","success")}catch(sn){console.error("复制失败:",sn),Hn("复制失败","error")}},Q=async Wt=>{try{const{skey:Yt,name:sn,tid:An,flag:un,folder:Xn}=Wt,wr={name:sn||"搜索",tid:An||"",flag:un||"",folder:Xn||""};if(Yt){const ro=Zo.getSiteByKey(Yt);ro&&(Zo.setCurrentSite(Yt),Hn(`已切换到 ${ro.name}`,"info"))}console.log("执行源内搜索:",wr),Hn("正在执行源内搜索...","info"),t("special-action","__self_search__",{tid:wr.tid,name:wr.name,type_id:wr.tid,type_name:wr.name,actionData:wr})}catch(Yt){console.error("源内搜索失败:",Yt),Hn("源内搜索失败","error")}},se=async Wt=>{try{switch(console.log("执行刷新列表:",Wt),n.currentRoute.value.name){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:Wt})),Hn("视频列表已刷新","success");break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:Wt})),Hn("直播列表已刷新","success");break;default:Hn("列表已刷新","success");break}}catch(Yt){console.error("刷新列表失败:",Yt),Hn("刷新列表失败","error")}},ae=async Wt=>{try{console.log("执行KTV播放:",Wt),Hn("正在启动KTV播放...","info")}catch(Yt){console.error("KTV播放失败:",Yt),Hn("KTV播放失败","error")}},re=(Wt,Yt)=>{const sn=Yt.target.value;r.value[Wt]=sn,ie(Wt)},Ce=(Wt,Yt)=>{r.value[Wt]=Yt,Y(Wt)},Ve=async()=>{let Wt=!0;for(let sn=0;sn{const un=sn.id||sn.name||`input_${An}`;Yt[un]=r.value[An]}),e.config.actionId)try{console.log("多输入框T4接口调用:",e.config.actionId,Yt);const sn=await te(e.config.actionId,Yt);if(typeof sn=="string"){Hn(sn,"success"),t("close");return}if(sn&&sn.action){const An=sn.action,un=sn.toast;switch(un&&Hn(un,"success"),An.actionId){case"__keep__":An.msg&&(c.value=An.msg),An.reset&&(r.value=r.value.map(()=>""),i.value=i.value.map(()=>""),t("reset"));return;case"__detail__":await W(An),t("close");return;case"__copy__":await q(An,un),t("close");return;case"__self_search__":await Q(An),t("close");return;case"__refresh_list__":await se(An),t("close");return;case"__ktvplayer__":await ae(An),t("close");return;default:if(An.type){console.log("检测到普通动作,触发新的ActionRenderer:",An),t("action",An);return}else console.warn("未知的专项动作:",An.actionId);break}}}catch(sn){console.error("多输入框T4接口调用失败:",sn),Hn("操作失败,请重试","error");return}t("submit",Yt)},ge=()=>{t("cancel"),t("close")},xe=()=>{r.value=r.value.map(()=>""),i.value=i.value.map(()=>""),t("reset")},Ge=Wt=>{v.value=Wt,p.value=r.value[Wt]||"",h.value=!0,dn(()=>{d.value&&d.value.focus()})},tt=()=>{h.value=!1,v.value=-1},Ue=()=>{v.value>=0&&(r.value[v.value]=p.value,re(v.value,{target:{value:p.value}})),h.value=!1,v.value=-1},_e=Wt=>u0(Wt),ve=Wt=>{if(!Wt.selectData)return null;const Yt=u0(Wt.selectData);for(const sn of Yt)if(sn.value&&sn.value.startsWith("[")&&sn.value.endsWith("]")){const An=sn.value.slice(1,-1).toLowerCase();if(["calendar","file","folder","image"].includes(An))return An}return null},me=Wt=>({calendar:"选择日期",file:"选择文件",folder:"选择文件夹",image:"选择图片"})[Wt]||"特殊输入",Oe=(Wt,Yt)=>{switch(Yt){case"calendar":Ee(Wt);break;case"file":Le(Wt);break;case"folder":ht(Wt);break;case"image":Vt(Wt);break;default:console.warn("未知的特殊输入类型:",Yt)}},qe=Wt=>{const Yt=a.value[Wt];if(Yt.selectData){if(C.value=Wt,x.value=u0(Yt.selectData),T.value=Yt.multiSelect===!0,D.value=Yt.selectColumn||4,T.value){const sn=r.value[Wt]||"";_.value=sn?sn.split(",").map(An=>An.trim()).filter(An=>An):[]}else E.value=r.value[Wt]||"";k.value=!0}},Ke=Wt=>{C.value>=0&&(r.value[C.value]=Wt.value,Y(C.value)),k.value=!1,C.value=-1,x.value=[]},at=Wt=>{C.value>=0&&(r.value[C.value]=Wt,Y(C.value))},ft=()=>{k.value=!1,C.value=-1,x.value=[],E.value=""},ct=()=>{_.value=x.value.map(Wt=>Wt.value)},wt=()=>{_.value=[]},Ct=()=>{const Wt=x.value.map(Yt=>Yt.value);_.value=Wt.filter(Yt=>!_.value.includes(Yt))},Rt=()=>{C.value>=0&&(T.value?r.value[C.value]=_.value.join(","):r.value[C.value]=_.value[0]||"",Y(C.value)),k.value=!1,C.value=-1,x.value=[],_.value=[],T.value=!1},Ht=Wt=>Wt&&Wt.startsWith("[")&&Wt.endsWith("]"),Jt=Wt=>{if(Ht(Wt.value)){const Yt=Wt.value.slice(1,-1).toLowerCase();return{calendar:"📅 选择日期",file:"📄 选择文件",folder:"📁 选择文件夹",image:"🖼️ 选择图片"}[Yt]||Wt.name}return Wt.name},rn=Wt=>_e(Wt).some(sn=>!Ht(sn.value)),vt=Wt=>_e(Wt).filter(sn=>!Ht(sn.value)),Fe=(Wt,Yt)=>{if(Yt.value.startsWith("[")&&Yt.value.endsWith("]"))switch(Yt.value.slice(1,-1).toLowerCase()){case"calendar":Ee(Wt);break;case"file":Le(Wt);break;case"folder":ht(Wt);break;case"image":Vt(Wt);break;default:r.value[Wt]=Yt.value;break}else r.value[Wt]=Yt.value;Y(Wt)},Me=(Wt,Yt)=>r.value[Wt]===Yt.value,Ee=Wt=>{y.value=Wt,g.value=!0},We=Wt=>{Wt&&y.value>=0&&(r.value[y.value]=Wt,Y(y.value)),g.value=!1,y.value=-1},$e=()=>{g.value=!1,y.value=-1},dt=Wt=>{M.value=Wt,P.value=!0},Qe=()=>{P.value=!1,M.value=""},Le=Wt=>{const Yt=document.createElement("input");Yt.type="file",Yt.style.position="absolute",Yt.style.left="-9999px",document.body.appendChild(Yt),Yt.addEventListener("change",sn=>{sn.target.files&&sn.target.files[0]&&(r.value[Wt]=sn.target.files[0].name,Y(Wt)),document.body.removeChild(Yt)}),Yt.click()},ht=Wt=>{const Yt=document.createElement("input");Yt.type="file",Yt.webkitdirectory=!0,Yt.multiple=!0,Yt.style.position="absolute",Yt.style.left="-9999px",Yt.style.opacity="0",document.body.appendChild(Yt),Yt.addEventListener("change",sn=>{if(sn.target.files&&sn.target.files.length>0){const An=sn.target.files[0],un=An.webkitRelativePath;if(un){const Xn=un.split("/")[0];r.value[Wt]=Xn}else{const Xn=An.name,wr=Xn.substring(0,Xn.lastIndexOf("."))||Xn;r.value[Wt]=wr}Y(Wt)}document.body.removeChild(Yt)}),Yt.addEventListener("cancel",()=>{document.body.removeChild(Yt)}),Yt.click()},Vt=Wt=>{const Yt=document.createElement("input");Yt.type="file",Yt.accept="image/*",Yt.style.position="absolute",Yt.style.left="-9999px",document.body.appendChild(Yt),Yt.addEventListener("change",sn=>{if(sn.target.files&&sn.target.files[0]){const An=sn.target.files[0],un=new FileReader;un.onload=Xn=>{r.value[Wt]=Xn.target.result,Y(Wt)},un.readAsDataURL(An)}document.body.removeChild(Yt)}),Yt.click()},Ut=()=>{const Wt={id:`dynamic_${Date.now()}`,name:`输入项 ${a.value.length+1}`,tip:"请输入内容",required:!1};a.value.push(Wt),r.value.push(""),i.value.push("")},Lt=Wt=>{a.value.length<=1||(a.value.splice(Wt,1),r.value.splice(Wt,1),i.value.splice(Wt,1))},Xt=()=>{r.value=r.value.map(()=>""),i.value=i.value.map(()=>"")},Dn=()=>{a.value.forEach((Wt,Yt)=>{Wt.example?r.value[Yt]=Wt.example:r.value[Yt]=`示例${Yt+1}`}),a.value.forEach((Wt,Yt)=>{Y(Yt)})},rr=()=>{!e.config.timeout||e.config.timeout<=0||(s.value=e.config.timeout,l.value=setInterval(()=>{s.value--,s.value<=0&&(clearInterval(l.value),ge())},1e3))},qr=()=>{l.value&&(clearInterval(l.value),l.value=null),s.value=0};return It(()=>e.config,Wt=>{U(),c.value=Wt.msg||"",Wt.timeout?rr():qr()},{immediate:!0}),It(()=>e.visible,Wt=>{Wt?rr():qr()}),hn(()=>{U()}),ii(()=>{qr()}),{inputValues:r,inputErrors:i,inputItems:a,timeLeft:s,currentMessage:c,isEnhanced:O,showOkButton:L,showCancelButton:B,showResetButton:j,isValid:H,getInputType:K,validateInput:Y,handleInputChange:re,handleDateChange:Ce,handleSubmit:Ve,handleCancel:ge,handleReset:xe,selectQuickOption:Fe,handleDateSelect:Ee,handleFileSelect:Le,handleFolderSelect:ht,handleImageSelect:Vt,addInputItem:Ut,removeInputItem:Lt,clearAll:Xt,fillExample:Dn,parseSelectData:u0,getSelectOptions:_e,isSpecialSelector:Ht,getOptionDisplayName:Jt,getSpecialInputType:ve,getSpecialInputTitle:me,handleSpecialInput:Oe,hasNonSpecialOptions:rn,getNonSpecialOptions:vt,showTextEditor:h,textEditorRef:d,editorText:p,openTextEditor:Ge,closeTextEditor:tt,saveEditorText:Ue,showDatePicker:g,selectedDate:S,handleDateConfirm:We,handleDateCancel:$e,showSelectOptions:k,currentSelectOptions:x,selectedRadioValue:E,openSelectOptions:qe,selectOption:Ke,handleRadioChange:at,confirmRadioSelection:ft,isOptionSelected:Me,selectedCheckboxValues:_,isMultiSelectMode:T,currentSelectColumn:D,selectAll:ct,clearSelection:wt,invertSelection:Ct,confirmMultiSelection:Rt,showHelpDialog:P,helpContent:M,showHelpPopup:dt,closeHelpDialog:Qe}}},Ekt={class:"multi-input-action-modern"},Tkt={key:0,class:"message-section"},Akt={class:"message-content"},Ikt={class:"message-text"},Lkt={key:1,class:"media-section"},Dkt={class:"image-container"},Pkt=["src"],Rkt={class:"inputs-section"},Mkt={class:"inputs-container"},$kt={key:0,class:"input-label-container"},Okt={class:"input-label"},Bkt={key:0,class:"required-indicator"},Nkt=["onClick"],Fkt={class:"input-group"},jkt={key:0,class:"quick-select"},Vkt={class:"quick-select-options"},zkt=["onClick"],Ukt={key:1,class:"input-container"},Hkt={class:"input-wrapper-modern"},Wkt={key:2,class:"input-container"},Gkt={class:"input-wrapper-modern"},Kkt=["onUpdate:modelValue","type","placeholder","readonly","onInput","onBlur"],qkt={class:"input-actions"},Ykt=["onClick","title"],Xkt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Zkt={key:1,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Jkt={key:2,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Qkt={key:3,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},ext=["onClick"],txt=["onClick"],nxt={key:3,class:"textarea-container"},rxt={class:"textarea-wrapper-modern"},ixt=["onUpdate:modelValue","placeholder","rows","readonly","onInput","onBlur"],oxt=["onClick","title"],sxt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},axt={key:1,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},lxt={key:2,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},uxt={key:3,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},cxt=["onClick"],dxt={class:"input-status"},fxt={key:0,class:"error-message"},hxt={key:1,class:"char-count"},pxt=["onClick"],vxt={key:2,class:"enhanced-section"},mxt={class:"enhanced-controls"},gxt={key:1,class:"batch-controls"},yxt={key:3,class:"timeout-section"},bxt={class:"timeout-indicator"},_xt={class:"timeout-text"},Sxt={class:"timeout-progress"},kxt={class:"modern-footer"},xxt=["disabled"],Cxt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},wxt={class:"text-editor"},Ext={class:"modern-footer"},Txt={class:"date-picker-container"},Axt={class:"modern-footer"},Ixt=["innerHTML"],Lxt={class:"modern-footer"},Dxt={class:"select-options-content"},Pxt={key:0,class:"radio-container"},Rxt={key:1,class:"multiselect-container"},Mxt={class:"multiselect-main"},$xt={class:"multiselect-actions"},Oxt={class:"modern-footer"};function Bxt(e,t,n,r,i,a){const s=Te("DatePicker"),l=Te("ActionDialog"),c=Te("a-radio"),d=Te("a-radio-group"),h=Te("a-checkbox"),p=Te("a-checkbox-group");return z(),X(Pt,null,[$(l,{visible:n.visible,title:n.config.title,width:n.config.width||600,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[6]||(t[6]=(v,g)=>e.emit("toast",v,g)),onReset:t[7]||(t[7]=()=>e.emit("reset"))},{footer:fe(()=>[I("div",kxt,[r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[3]||(t[3]=(...v)=>r.handleCancel&&r.handleCancel(...v))},[...t[41]||(t[41]=[I("span",null,"取消",-1)])])):Ie("",!0),r.showResetButton?(z(),X("button",{key:1,class:"btn-modern btn-secondary",onClick:t[4]||(t[4]=(...v)=>r.handleReset&&r.handleReset(...v))},[...t[42]||(t[42]=[I("span",null,"重置",-1)])])):Ie("",!0),r.showOkButton?(z(),X("button",{key:2,class:de(["btn-modern btn-primary",{disabled:!r.isValid}]),disabled:!r.isValid,onClick:t[5]||(t[5]=(...v)=>r.handleSubmit&&r.handleSubmit(...v))},[t[44]||(t[44]=I("span",null,"确定",-1)),r.isValid?(z(),X("svg",Cxt,[...t[43]||(t[43]=[I("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])):Ie("",!0)],10,xxt)):Ie("",!0)])]),default:fe(()=>[I("div",Ekt,[n.config.msg?(z(),X("div",Tkt,[I("div",Akt,[t[23]||(t[23]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),I("p",Ikt,Ne(r.currentMessage),1)])])):Ie("",!0),n.config.imageUrl?(z(),X("div",Lkt,[I("div",Dkt,[I("img",{src:n.config.imageUrl,style:Ye({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:"action-image-modern",alt:"配置图片"},null,12,Pkt)])])):Ie("",!0),I("div",Rkt,[I("div",Mkt,[(z(!0),X(Pt,null,cn(r.inputItems,(v,g)=>(z(),X("div",{key:v.id||g,class:"input-item"},[v.name?(z(),X("div",$kt,[I("label",Okt,[He(Ne(v.name)+" ",1),v.required?(z(),X("span",Bkt,"*")):Ie("",!0),v.help?(z(),X("button",{key:1,class:"help-button",onClick:y=>r.showHelpPopup(v.help),title:"查看帮助信息"}," ? ",8,Nkt)):Ie("",!0)])])):Ie("",!0),I("div",Fkt,[v.selectData&&r.hasNonSpecialOptions(v.selectData)&&!v.multiSelect?(z(),X("div",jkt,[I("div",Vkt,[(z(!0),X(Pt,null,cn(r.getNonSpecialOptions(v.selectData),y=>(z(),X("button",{key:y.value,class:de(["quick-select-tag",{selected:r.isOptionSelected(g,y)}]),onClick:S=>r.selectQuickOption(g,y)},Ne(y.name),11,zkt))),128))])])):Ie("",!0),(!v.multiLine||v.multiLine<=1)&&!v.onlyQuickSelect&&v.selectData==="[calendar]"&&v.inputType===0?(z(),X("div",Ukt,[I("div",Hkt,[$(s,{modelValue:r.inputValues[g],"onUpdate:modelValue":y=>r.inputValues[g]=y,placeholder:v.tip||v.name,class:de(["date-picker-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),style:{width:"100%"},format:"YYYY-MM-DD",onChange:y=>r.handleDateChange(g,y)},null,8,["modelValue","onUpdate:modelValue","placeholder","class","onChange"])])])):(!v.multiLine||v.multiLine<=1)&&!v.onlyQuickSelect?(z(),X("div",Wkt,[I("div",Gkt,[Ai(I("input",{"onUpdate:modelValue":y=>r.inputValues[g]=y,type:r.getInputType(v),placeholder:v.tip||v.name,class:de(["input-field-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),readonly:v.inputType===0,onInput:y=>r.handleInputChange(g,y),onBlur:y=>r.validateInput(g)},null,42,Kkt),[[T5,r.inputValues[g]]]),I("div",qkt,[r.getSpecialInputType(v)?(z(),X("button",{key:0,class:de(["special-input-btn",`special-${r.getSpecialInputType(v)}`]),onClick:y=>r.handleSpecialInput(g,r.getSpecialInputType(v)),title:r.getSpecialInputTitle(r.getSpecialInputType(v))},[r.getSpecialInputType(v)==="calendar"?(z(),X("svg",Xkt,[...t[24]||(t[24]=[I("path",{d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zM4 7h12v9H4V7z"},null,-1)])])):r.getSpecialInputType(v)==="file"?(z(),X("svg",Zkt,[...t[25]||(t[25]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm0 2h12v10H4V5z"},null,-1)])])):r.getSpecialInputType(v)==="folder"?(z(),X("svg",Jkt,[...t[26]||(t[26]=[I("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"},null,-1)])])):r.getSpecialInputType(v)==="image"?(z(),X("svg",Qkt,[...t[27]||(t[27]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z"},null,-1)])])):Ie("",!0)],10,Ykt)):v.inputType===0&&v.selectData?(z(),X("button",{key:1,class:"expand-options-btn",onClick:y=>r.openSelectOptions(g),title:"展开选项"},[...t[28]||(t[28]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M7 10l5 5 5-5z"})],-1)])],8,ext)):(z(),X("button",{key:2,class:"expand-btn",onClick:y=>r.openTextEditor(g),title:"打开大文本编辑器"},[...t[29]||(t[29]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])],8,txt))])])])):v.onlyQuickSelect?Ie("",!0):(z(),X("div",nxt,[I("div",rxt,[Ai(I("textarea",{"onUpdate:modelValue":y=>r.inputValues[g]=y,placeholder:v.tip||v.name,rows:Math.min(v.multiLine||3,4),class:de(["textarea-field-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),readonly:v.inputType===0,onInput:y=>r.handleInputChange(g,y),onBlur:y=>r.validateInput(g)},null,42,ixt),[[Ql,r.inputValues[g]]]),r.getSpecialInputType(v)?(z(),X("button",{key:0,class:de(["special-input-btn textarea-expand",`special-${r.getSpecialInputType(v)}`]),onClick:y=>r.handleSpecialInput(g,r.getSpecialInputType(v)),title:r.getSpecialInputTitle(r.getSpecialInputType(v))},[r.getSpecialInputType(v)==="calendar"?(z(),X("svg",sxt,[...t[30]||(t[30]=[I("path",{d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zM4 7h12v9H4V7z"},null,-1)])])):r.getSpecialInputType(v)==="file"?(z(),X("svg",axt,[...t[31]||(t[31]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm0 2h12v10H4V5z"},null,-1)])])):r.getSpecialInputType(v)==="folder"?(z(),X("svg",lxt,[...t[32]||(t[32]=[I("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"},null,-1)])])):r.getSpecialInputType(v)==="image"?(z(),X("svg",uxt,[...t[33]||(t[33]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z"},null,-1)])])):Ie("",!0)],10,oxt)):(z(),X("button",{key:1,class:"expand-btn textarea-expand",onClick:y=>r.openTextEditor(g),title:"打开大文本编辑器"},[...t[34]||(t[34]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])],8,cxt))])])),I("div",dxt,[r.inputErrors[g]?(z(),X("div",fxt,[t[35]||(t[35]=I("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293-1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})],-1)),I("span",null,Ne(r.inputErrors[g]),1)])):Ie("",!0),r.inputValues[g]&&r.inputValues[g].length>0?(z(),X("div",hxt,Ne(r.inputValues[g].length)+" 字符 ",1)):Ie("",!0)])]),r.isEnhanced&&r.inputItems.length>1?(z(),X("button",{key:1,class:"remove-btn",onClick:y=>r.removeInputItem(g),title:"删除此项"},[...t[36]||(t[36]=[I("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M18 6L6 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M6 6l12 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,pxt)):Ie("",!0)]))),128))])]),r.isEnhanced?(z(),X("div",vxt,[I("div",mxt,[n.config.allowAdd?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[0]||(t[0]=(...v)=>r.addInputItem&&r.addInputItem(...v))},[...t[37]||(t[37]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"5",y1:"12",x2:"19",y2:"12",stroke:"currentColor","stroke-width":"2"})],-1),He(" 添加项目 ",-1)])])):Ie("",!0),n.config.allowBatch?(z(),X("div",gxt,[I("button",{class:"btn-modern btn-secondary",onClick:t[1]||(t[1]=(...v)=>r.clearAll&&r.clearAll(...v))},[...t[38]||(t[38]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("polyline",{points:"3,6 5,6 21,6",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m19,6v14a2,2 0 0,1 -2,2H7a2,2 0 0,1 -2,-2V6m3,0V4a2,2 0 0,1 2,-2h4a2,2 0 0,1 2,2v2",stroke:"currentColor","stroke-width":"2"})],-1),He(" 清空全部 ",-1)])]),I("button",{class:"btn-modern btn-secondary",onClick:t[2]||(t[2]=(...v)=>r.fillExample&&r.fillExample(...v))},[...t[39]||(t[39]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"14,2 14,8 20,8",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"10,9 9,9 8,9",stroke:"currentColor","stroke-width":"2"})],-1),He(" 填充示例 ",-1)])])])):Ie("",!0)])])):Ie("",!0),n.config.timeout&&r.timeLeft>0?(z(),X("div",yxt,[I("div",bxt,[t[40]||(t[40]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"})])],-1)),I("span",_xt,Ne(r.timeLeft)+"秒后自动关闭",1),I("div",Sxt,[I("div",{class:"timeout-progress-bar",style:Ye({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Ie("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"]),$(l,{visible:r.showTextEditor,title:"大文本编辑器",width:800,onClose:r.closeTextEditor},{footer:fe(()=>[I("div",Ext,[I("button",{class:"btn-modern btn-secondary",onClick:t[9]||(t[9]=(...v)=>r.closeTextEditor&&r.closeTextEditor(...v))}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[10]||(t[10]=(...v)=>r.saveEditorText&&r.saveEditorText(...v))}," 确定 ")])]),default:fe(()=>[I("div",wxt,[Ai(I("textarea",{ref:"textEditorRef","onUpdate:modelValue":t[8]||(t[8]=v=>r.editorText=v),class:"text-editor-textarea",placeholder:"请输入文本内容..."},null,512),[[Ql,r.editorText]])])]),_:1},8,["visible","onClose"]),$(l,{visible:r.showDatePicker,title:"选择日期",width:400,onClose:r.handleDateCancel},{footer:fe(()=>[I("div",Axt,[I("button",{class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...v)=>r.handleDateCancel&&r.handleDateCancel(...v))}," 取消 ")])]),default:fe(()=>[I("div",Txt,[$(s,{modelValue:r.selectedDate,"onUpdate:modelValue":t[11]||(t[11]=v=>r.selectedDate=v),style:{width:"100%"},placeholder:"请选择日期",format:"YYYY-MM-DD",onChange:r.handleDateConfirm},null,8,["modelValue","onChange"])])]),_:1},8,["visible","onClose"]),$(l,{visible:r.showHelpDialog,title:"帮助信息",width:500,onClose:r.closeHelpDialog},{footer:fe(()=>[I("div",Lxt,[I("button",{class:"btn-modern btn-primary",onClick:t[13]||(t[13]=(...v)=>r.closeHelpDialog&&r.closeHelpDialog(...v))}," 确定 ")])]),default:fe(()=>[I("div",{class:"help-content",innerHTML:r.helpContent},null,8,Ixt)]),_:1},8,["visible","onClose"]),$(l,{visible:r.showSelectOptions,title:r.isMultiSelectMode?"请选择字母":"请选择",width:r.isMultiSelectMode?r.currentSelectColumn*160+200:400,onClose:t[22]||(t[22]=v=>r.showSelectOptions=!1)},yo({default:fe(()=>[I("div",Dxt,[r.isMultiSelectMode?(z(),X("div",Rxt,[I("div",Mxt,[$(p,{modelValue:r.selectedCheckboxValues,"onUpdate:modelValue":t[15]||(t[15]=v=>r.selectedCheckboxValues=v),class:"checkbox-grid",style:Ye({gridTemplateColumns:`repeat(${r.currentSelectColumn}, 1fr)`})},{default:fe(()=>[(z(!0),X(Pt,null,cn(r.currentSelectOptions,v=>(z(),Ze(h,{key:v.value,value:v.value,class:"checkbox-option-item"},{default:fe(()=>[He(Ne(v.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","style"])]),I("div",$xt,[I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[16]||(t[16]=(...v)=>r.selectAll&&r.selectAll(...v))}," 全选 "),I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[17]||(t[17]=(...v)=>r.clearSelection&&r.clearSelection(...v))}," 全清 "),I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[18]||(t[18]=(...v)=>r.invertSelection&&r.invertSelection(...v))}," 反选 "),I("button",{class:"btn-modern btn-primary btn-small",onClick:t[19]||(t[19]=(...v)=>r.confirmMultiSelection&&r.confirmMultiSelection(...v))}," 确定 ")])])):(z(),X("div",Pxt,[$(d,{modelValue:r.selectedRadioValue,"onUpdate:modelValue":t[14]||(t[14]=v=>r.selectedRadioValue=v),onChange:r.handleRadioChange,direction:"vertical",class:"radio-options-list"},{default:fe(()=>[(z(!0),X(Pt,null,cn(r.currentSelectOptions,v=>(z(),Ze(c,{key:v.value,value:v.value,class:"radio-option-item"},{default:fe(()=>[He(Ne(v.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange"])]))])]),_:2},[r.isMultiSelectMode?void 0:{name:"footer",fn:fe(()=>[I("div",Oxt,[I("button",{class:"btn-modern btn-secondary",onClick:t[20]||(t[20]=v=>r.showSelectOptions=!1)}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[21]||(t[21]=(...v)=>r.confirmRadioSelection&&r.confirmRadioSelection(...v))}," 确认 ")])]),key:"0"}]),1032,["visible","title","width"])],64)}const F3e=cr(wkt,[["render",Bxt],["__scopeId","data-v-94c32ec1"]]),Nxt=Object.freeze(Object.defineProperty({__proto__:null,default:F3e},Symbol.toStringTag,{value:"Module"})),Fxt={name:"MenuAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ma(),r=ue([]),i=ue(""),a=ue(0),s=ue(null),l=F(()=>e.config.type==="select"||e.config.type==="multiSelect"),c=F(()=>{let Y=[];if(e.config.option?(Y=Array.isArray(e.config.option)?e.config.option:[e.config.option],Y=Y.map(ie=>{if(typeof ie=="string"){const[te,W]=ie.split("$");return{name:te||ie,action:W||ie,value:W||ie}}return{name:ie.name||ie.title||ie.label,action:ie.action||ie.value,value:ie.action||ie.value,description:ie.description}})):e.config.selectData&&(Y=u0(e.config.selectData)),i.value){const ie=i.value.toLowerCase();Y=Y.filter(te=>te.name.toLowerCase().includes(ie)||te.description&&te.description.toLowerCase().includes(ie))}return Y}),d=F(()=>{const Y=Yc(e.config.button),ie=Y===mi.OK_CANCEL||Y===mi.OK_ONLY;return!l.value&&e.config.autoSubmit?!1:ie}),h=F(()=>{const Y=Yc(e.config.button);return Y===mi.OK_CANCEL||Y===mi.CANCEL_ONLY}),p=F(()=>l.value?r.value.length>0:r.value.length===1),v=Y=>r.value.some(ie=>ie.value===Y.value),g=(Y,ie)=>{Y.disabled||(l.value?v(Y)?y(Y):r.value.push(Y):(r.value=[Y],e.config.autoSubmit&&P()))},y=Y=>{const ie=r.value.findIndex(te=>te.value===Y.value);ie>-1&&r.value.splice(ie,1)},S=()=>{r.value=[...c.value]},k=()=>{r.value=[]},C=()=>{const Y=new Set(r.value.map(ie=>ie.value));r.value=c.value.filter(ie=>!Y.has(ie.value))},x=()=>{},E=(Y,ie,te)=>{te.stopPropagation(),!Y.disabled&&(v(Y)?y(Y):r.value.push(Y))},_=(Y,ie,te)=>{te.stopPropagation(),!Y.disabled&&(r.value=[Y],e.config.autoSubmit&&P())},T=Y=>/[\u{1F600}-\u{1F64F}]|[\u{1F300}-\u{1F5FF}]|[\u{1F680}-\u{1F6FF}]|[\u{1F1E0}-\u{1F1FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/u.test(Y),D=async(Y,ie)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;const te={action:Y,value:ie};e.extend&&e.extend.ext&&(te.extend=e.extend.ext),e.apiUrl&&(te.apiUrl=e.apiUrl),console.log("MenuAction调用T4接口:",{module:e.module,actionData:te,apiUrl:e.apiUrl});let W=null;return e.module?(console.log("调用模块:",e.module),W=await xS(e.module,te)):e.apiUrl&&(console.log("直接调用API:",e.apiUrl),W=(await(await fc(async()=>{const{default:se}=await Promise.resolve().then(()=>hW);return{default:se}},void 0)).default.post(e.apiUrl,te,{timeout:pW(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",W),W},P=async()=>{if(!p.value)return;const Y={};let ie="";if(l.value){Y.selectedValues=r.value.map(W=>W.value),Y.selectedOptions=r.value;const te=c.value.map(W=>({name:W.name,action:W.value,selected:r.value.some(q=>q.value===W.value)}));ie=JSON.stringify(te),console.log("多选菜单T4接口数据格式:",te)}else{const te=r.value[0];Y.selectedValue=te.value,ie=te.value,Y.selectedOption=te}if(e.config.actionId)try{console.log("菜单选择T4接口调用:",e.config.actionId,ie);const te=await D(e.config.actionId,ie);if(typeof te=="string"){Hn(te,"success"),t("close");return}if(te&&te.action){const W=te.action,q=te.toast;switch(q&&Hn(q,"success"),W.actionId){case"__keep__":W.msg&&console.log("保持弹窗打开,更新消息:",W.msg),W.reset&&(r.value=[],i.value="");return;case"__close__":W.msg&&Hn(W.msg,"info"),t("close");return;case"__detail__":console.log("详情页跳转:",W),await M(W),t("close");return;case"__copy__":await O(W,q),t("close");return;case"__self_search__":await L(W),t("close");return;case"__refresh_list__":await B(W),t("close");return;case"__ktvplayer__":await j(W),t("close");return;default:if(W.type){console.log("检测到普通动作,触发新的ActionRenderer:",W),t("action",W);return}else console.warn("未知的专项动作:",W.actionId);break}}}catch(te){console.error("菜单选择T4接口调用失败:",te),Hn("操作失败,请重试","error");return}t("submit",Y)},M=async Y=>{try{console.log("执行详情页跳转:",Y),Y.url?await n.push(Y.url):Y.route?await n.push(Y.route):(console.warn("详情页跳转缺少URL或路由信息"),Hn("跳转失败:缺少目标地址","error"))}catch(ie){console.error("详情页跳转失败:",ie),Hn("跳转失败","error")}},O=async(Y,ie)=>{try{const te=Y.content||Y.text||Y.value||"";if(!te){console.warn("复制内容为空"),Hn("复制失败:内容为空","error");return}await navigator.clipboard.writeText(te),console.log("复制成功:",te);const W=Y.msg||ie?.msg||"复制成功";Hn(W,"success")}catch(te){console.error("复制失败:",te),Hn("复制失败","error")}},L=async Y=>{try{console.log("执行源内搜索:",Y);const ie={keyword:Y.keyword||Y.query||"",siteKey:Y.skey||Y.siteKey||"",...Y.params};ie.siteKey&&window.dispatchEvent(new CustomEvent("switchSite",{detail:{siteKey:ie.siteKey}})),t("special-action",{type:"self-search",data:ie}),Hn("开始搜索...","info")}catch(ie){console.error("源内搜索失败:",ie),Hn("搜索失败","error")}},B=async Y=>{try{switch(console.log("执行刷新列表:",Y),n.currentRoute.value.name){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:Y})),Hn("视频列表已刷新","success");break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:Y})),Hn("直播列表已刷新","success");break;default:Hn("列表已刷新","success");break}}catch(ie){console.error("刷新列表失败:",ie),Hn("刷新列表失败","error")}},j=async Y=>{try{console.log("执行KTV播放:",Y);const ie=Y.url||Y.playUrl||"",te=Y.title||Y.name||"KTV播放";if(!ie){console.warn("KTV播放缺少播放地址"),Hn("播放失败:缺少播放地址","error");return}const W={name:"KtvPlayer",query:{url:ie,title:te,...Y.params}};try{await n.push(W)}catch{console.log("KTV播放器路由不存在,使用通用播放器"),await n.push({name:"VideoPlayer",query:{url:ie,title:te,type:"ktv",...Y.params}})}Hn("正在打开KTV播放器...","info")}catch(ie){console.error("KTV播放失败:",ie),Hn("播放失败","error")}},H=()=>{t("cancel"),t("close")},U=()=>{!e.config.timeout||e.config.timeout<=0||(a.value=e.config.timeout,s.value=setInterval(()=>{a.value--,a.value<=0&&(clearInterval(s.value),H())},1e3))},K=()=>{s.value&&(clearInterval(s.value),s.value=null),a.value=0};return It(()=>e.config,Y=>{if(r.value=[],i.value="",Y.defaultValue){const ie=u0(Y.selectData||""),te=Array.isArray(Y.defaultValue)?Y.defaultValue:[Y.defaultValue];r.value=ie.filter(W=>te.includes(W.value))}Y.timeout?U():K()},{immediate:!0}),It(()=>e.visible,Y=>{Y?U():K()}),hn(()=>{if(e.config.defaultValue){const Y=u0(e.config.selectData||""),ie=Array.isArray(e.config.defaultValue)?e.config.defaultValue:[e.config.defaultValue];r.value=Y.filter(te=>ie.includes(te.value))}}),ii(()=>{K()}),{selectedOptions:r,searchKeyword:i,timeLeft:a,isMultiSelect:l,menuOptions:c,showOkButton:d,showCancelButton:h,isValid:p,isSelected:v,isEmoji:T,handleOptionClick:g,handleCheckboxClick:E,handleRadioClick:_,removeSelection:y,selectAll:S,clearAll:k,invertSelection:C,handleSearch:x,handleSubmit:P,handleCancel:H}}},jxt={class:"menu-action-modern"},Vxt={key:0,class:"message-section"},zxt={class:"message-content glass-effect"},Uxt={class:"message-text"},Hxt={key:1,class:"media-section"},Wxt={class:"media-container glass-effect"},Gxt=["src"],Kxt={key:2,class:"search-section"},qxt={class:"search-container"},Yxt={class:"menu-section"},Xxt={class:"menu-layout"},Zxt={class:"menu-options-container"},Jxt=["onClick"],Qxt={key:0,class:"option-icon-container"},eCt=["src"],tCt=["innerHTML"],nCt=["innerHTML"],rCt={key:3,class:"option-icon-emoji"},iCt={class:"option-content"},oCt={class:"option-title"},sCt={key:0,class:"option-description"},aCt={class:"option-selector"},lCt={key:0,class:"checkbox-modern"},uCt=["id","checked","onChange"],cCt=["onClick"],dCt={class:"checkbox-indicator"},fCt={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3"},hCt={key:1,class:"radio-modern"},pCt=["id","checked","onChange"],vCt=["onClick"],mCt={class:"radio-indicator"},gCt={key:0,class:"radio-dot"},yCt={key:0,class:"quick-actions-column"},bCt={class:"quick-actions-container"},_Ct={class:"quick-actions-buttons"},SCt=["disabled"],kCt=["disabled"],xCt=["disabled"],CCt={key:3,class:"selected-section"},wCt={class:"selected-container glass-effect"},ECt={class:"selected-header"},TCt={class:"selected-count"},ACt={class:"selected-items-grid"},ICt=["onClick"],LCt={class:"selected-item-name"},DCt={key:4,class:"timeout-section"},PCt={class:"timeout-container"},RCt={class:"timeout-text"},MCt={class:"timeout-progress"},$Ct={class:"modern-footer"},OCt=["disabled"];function BCt(e,t,n,r,i,a){const s=Te("ActionDialog");return z(),Ze(s,{visible:n.visible,title:n.config.title,width:n.config.width||720,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[7]||(t[7]=l=>e.$emit("toast",l)),onReset:t[8]||(t[8]=l=>e.$emit("reset",l))},{footer:fe(()=>[I("div",$Ct,[r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[5]||(t[5]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[...t[21]||(t[21]=[I("span",null,"取消",-1)])])):Ie("",!0),r.showOkButton?(z(),X("button",{key:1,class:"btn-modern btn-primary",disabled:!r.isValid,onClick:t[6]||(t[6]=(...l)=>r.handleSubmit&&r.handleSubmit(...l))},[...t[22]||(t[22]=[I("span",null,"确定",-1)])],8,OCt)):Ie("",!0)])]),default:fe(()=>[I("div",jxt,[n.config.msg?(z(),X("div",Vxt,[I("div",zxt,[t[9]||(t[9]=I("div",{class:"message-bg gradient-primary"},null,-1)),I("div",Uxt,Ne(n.config.msg),1)])])):Ie("",!0),n.config.imageUrl?(z(),X("div",Hxt,[I("div",Wxt,[t[10]||(t[10]=I("div",{class:"media-bg gradient-secondary"},null,-1)),I("img",{src:n.config.imageUrl,style:Ye({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:"media-image",alt:"Action Image"},null,12,Gxt)])])):Ie("",!0),n.config.searchable?(z(),X("div",Kxt,[I("div",qxt,[t[11]||(t[11]=I("div",{class:"search-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"11",cy:"11",r:"8"}),I("path",{d:"m21 21-4.35-4.35"})])],-1)),Ai(I("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>r.searchKeyword=l),type:"text",placeholder:"搜索选项...",class:"search-input",onInput:t[1]||(t[1]=(...l)=>r.handleSearch&&r.handleSearch(...l))},null,544),[[Ql,r.searchKeyword]])])])):Ie("",!0),I("div",Yxt,[I("div",Xxt,[I("div",Zxt,[(z(!0),X(Pt,null,cn(r.menuOptions,(l,c)=>(z(),X("div",{key:l.value||c,class:de(["menu-option-card",{selected:r.isSelected(l),disabled:l.disabled,"has-description":l.description}]),onClick:d=>r.handleOptionClick(l,c)},[l.icon?(z(),X("div",Qxt,[l.icon.startsWith("http")?(z(),X("img",{key:0,src:l.icon,alt:"",class:"option-icon-image"},null,8,eCt)):l.icon.includes("r.handleCheckboxClick(l,c,d),class:"checkbox-input"},null,40,uCt),I("label",{class:"checkbox-label",onClick:d=>r.handleCheckboxClick(l,c,d)},[I("div",dCt,[r.isSelected(l)?(z(),X("svg",fCt,[...t[12]||(t[12]=[I("polyline",{points:"20,6 9,17 4,12"},null,-1)])])):Ie("",!0)])],8,cCt)])):(z(),X("div",hCt,[I("input",{type:"radio",id:`menu-radio-${c}`,name:"menu-radio-group",checked:r.isSelected(l),onChange:d=>r.handleRadioClick(l,c,d),class:"radio-input"},null,40,pCt),I("label",{class:"radio-label",onClick:d=>r.handleRadioClick(l,c,d)},[I("div",mCt,[r.isSelected(l)?(z(),X("div",gCt)):Ie("",!0)])],8,vCt)]))])],10,Jxt))),128))]),r.isMultiSelect?(z(),X("div",yCt,[I("div",bCt,[t[16]||(t[16]=I("div",{class:"quick-actions-title"},"快捷操作",-1)),I("div",_Ct,[I("button",{class:"quick-action-btn",onClick:t[2]||(t[2]=(...l)=>r.selectAll&&r.selectAll(...l)),disabled:r.selectedOptions.length===r.menuOptions.length,title:"选择所有选项"},[...t[13]||(t[13]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"9,11 12,14 22,4"}),I("path",{d:"m21,3-6.5,6.5L11,6"})],-1),I("span",null,"全选",-1)])],8,SCt),I("button",{class:"quick-action-btn",onClick:t[3]||(t[3]=(...l)=>r.clearAll&&r.clearAll(...l)),disabled:r.selectedOptions.length===0,title:"清除所有选择"},[...t[14]||(t[14]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),I("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1),I("span",null,"全清",-1)])],8,kCt),I("button",{class:"quick-action-btn",onClick:t[4]||(t[4]=(...l)=>r.invertSelection&&r.invertSelection(...l)),disabled:r.menuOptions.length===0,title:"反转当前选择"},[...t[15]||(t[15]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),I("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),I("path",{d:"m9 14 2 2 4-4"})],-1),I("span",null,"反选",-1)])],8,xCt)])])])):Ie("",!0)])]),r.isMultiSelect&&r.selectedOptions.length>0?(z(),X("div",CCt,[I("div",wCt,[t[19]||(t[19]=I("div",{class:"selected-bg gradient-tertiary"},null,-1)),I("div",ECt,[t[17]||(t[17]=I("div",{class:"selected-title"},"已选择项目",-1)),I("div",TCt,Ne(r.selectedOptions.length),1)]),I("div",ACt,[(z(!0),X(Pt,null,cn(r.selectedOptions,l=>(z(),X("div",{key:l.value,class:"selected-item-tag",onClick:c=>r.removeSelection(l)},[I("span",LCt,Ne(l.name),1),t[18]||(t[18]=I("div",{class:"selected-item-remove"},[I("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})])],-1))],8,ICt))),128))])])])):Ie("",!0),n.config.timeout&&r.timeLeft>0?(z(),X("div",DCt,[I("div",PCt,[t[20]||(t[20]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})])],-1)),I("div",RCt,Ne(r.timeLeft)+"秒后自动关闭",1),I("div",MCt,[I("div",{class:"timeout-progress-bar",style:Ye({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Ie("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const j3e=cr(Fxt,[["render",BCt],["__scopeId","data-v-36a9fec1"]]),NCt=Object.freeze(Object.defineProperty({__proto__:null,default:j3e},Symbol.toStringTag,{value:"Module"})),FCt={name:"MsgBoxAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ue(0),r=ue(null),i=ue(0),a=ue(null),s=F(()=>e.config.icon!==!1&&e.config.type!=="plain"),l=F(()=>({info:"info",success:"success",warning:"warning",error:"error",question:"question"})[e.config.type]||"info"),c=F(()=>({info:"ℹ",success:"✓",warning:"⚠",error:"✕",question:"?"})[e.config.type]||"ℹ"),d=F(()=>e.config.qrcode?$3e(e.config.qrcode,e.config.qrcodeSize):""),h=F(()=>{const O=Yc(e.config.button);return O===mi.OK_CANCEL||O===mi.OK_ONLY}),p=F(()=>{const O=Yc(e.config.button);return O===mi.OK_CANCEL||O===mi.CANCEL_ONLY}),v=F(()=>e.config.progressText?e.config.progressText.replace("{percent}",Math.round(i.value)):`${Math.round(i.value)}%`),g=F(()=>!e.config.timeout||e.config.timeout<=0?0:(e.config.timeout-n.value)/e.config.timeout*100),y=O=>O?/<[^>]+>/.test(O)?O:O.replace(/\n/g,"
").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1"):"",S=()=>{t("submit",{action:"ok"})},k=()=>{t("cancel"),t("close")},C=()=>{t("close")},x=()=>{console.log("图片加载成功")},E=()=>{console.error("图片加载失败")},_=()=>{console.error("二维码生成失败")},T=()=>{!e.config.timeout||e.config.timeout<=0||(n.value=e.config.timeout,r.value=setInterval(()=>{n.value--,n.value<=0&&(clearInterval(r.value),k())},1e3))},D=()=>{r.value&&(clearInterval(r.value),r.value=null),n.value=0},P=()=>{if(!e.config.showProgress)return;const O=e.config.progressDuration||5e3,L=50,B=100/O*L;i.value=0,a.value=setInterval(()=>{i.value+=B,i.value>=100&&(i.value=100,clearInterval(a.value),e.config.onProgressComplete&&S())},L)},M=()=>{a.value&&(clearInterval(a.value),a.value=null),i.value=0};return It(()=>e.config,O=>{D(),M(),O.timeout&&T(),O.showProgress&&P()},{immediate:!0}),It(()=>e.visible,O=>{O?(e.config.timeout&&T(),e.config.showProgress&&P()):(D(),M())}),hn(()=>{e.visible&&(e.config.timeout&&T(),e.config.showProgress&&P())}),ii(()=>{D(),M()}),{timeLeft:n,progressPercent:i,showIcon:s,iconType:l,iconSymbol:c,qrcodeUrl:d,showOkButton:h,showCancelButton:p,progressText:v,timeoutPercent:g,formatMessage:y,handleOk:S,handleCancel:k,handleClose:C,onImageLoad:x,onImageError:E,onQrcodeError:_}}},jCt={class:"msgbox-action-modern"},VCt={key:0,class:"icon-section"},zCt={class:"icon-wrapper"},UCt={key:0,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},HCt={key:1,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},WCt={key:2,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},GCt={key:3,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},KCt={key:4,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},qCt={key:5,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},YCt={class:"content-section"},XCt={key:0,class:"message-container glass-effect"},ZCt={class:"message-content"},JCt=["innerHTML"],QCt={key:1,class:"detail-container glass-effect"},ewt={class:"detail-content"},twt=["innerHTML"],nwt={key:2,class:"media-section"},rwt={class:"image-container glass-effect"},iwt=["src"],owt={key:3,class:"media-section"},swt={class:"qrcode-container glass-effect"},awt={class:"qrcode-content"},lwt=["src","alt"],uwt={class:"qrcode-text"},cwt={key:4,class:"progress-section"},dwt={class:"progress-container glass-effect"},fwt={class:"progress-content"},hwt={class:"progress-bar-modern"},pwt={class:"progress-track"},vwt={class:"progress-text-modern"},mwt={key:5,class:"list-section"},gwt={class:"list-container glass-effect"},ywt={class:"list-content"},bwt={class:"list-items"},_wt={class:"item-text"},Swt={key:6,class:"timeout-section"},kwt={class:"timeout-container glass-effect"},xwt={class:"timeout-content"},Cwt={class:"timeout-info"},wwt={class:"timeout-text"},Ewt={class:"timeout-progress-modern"},Twt={class:"modern-footer"};function Awt(e,t,n,r,i,a){const s=Te("ActionDialog");return z(),Ze(s,{visible:n.visible,title:n.config.title,width:n.config.width||480,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[5]||(t[5]=(l,c)=>e.emit("toast",l,c)),onReset:t[6]||(t[6]=()=>e.emit("reset"))},{footer:fe(()=>[I("div",Twt,[r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[3]||(t[3]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[t[27]||(t[27]=I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1)),I("span",null,Ne(n.config.cancelText||"取消"),1)])):Ie("",!0),r.showOkButton?(z(),X("button",{key:1,class:"btn-modern btn-primary",onClick:t[4]||(t[4]=(...l)=>r.handleOk&&r.handleOk(...l))},[I("span",null,Ne(n.config.okText||"确定"),1),t[28]||(t[28]=I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})],-1))])):Ie("",!0)])]),default:fe(()=>[I("div",jCt,[r.showIcon?(z(),X("div",VCt,[I("div",{class:de(["icon-container glass-effect",r.iconType])},[I("div",{class:de(["icon-bg",`gradient-${r.iconType}`])},null,2),I("div",zCt,[r.iconType==="info"?(z(),X("svg",UCt,[...t[7]||(t[7]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},null,-1)])])):r.iconType==="success"?(z(),X("svg",HCt,[...t[8]||(t[8]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"},null,-1)])])):r.iconType==="warning"?(z(),X("svg",WCt,[...t[9]||(t[9]=[I("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},null,-1)])])):r.iconType==="error"?(z(),X("svg",GCt,[...t[10]||(t[10]=[I("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"},null,-1)])])):r.iconType==="question"?(z(),X("svg",KCt,[...t[11]||(t[11]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"},null,-1)])])):(z(),X("svg",qCt,[...t[12]||(t[12]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},null,-1)])]))])],2)])):Ie("",!0),I("div",YCt,[n.config.msg||n.config.htmlMsg?(z(),X("div",XCt,[t[14]||(t[14]=I("div",{class:"message-bg gradient-primary"},null,-1)),I("div",ZCt,[t[13]||(t[13]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"})])],-1)),I("div",{class:"message-text",innerHTML:r.formatMessage(n.config.htmlMsg||n.config.msg)},null,8,JCt)])])):Ie("",!0),n.config.detail?(z(),X("div",QCt,[t[16]||(t[16]=I("div",{class:"detail-bg gradient-secondary"},null,-1)),I("div",ewt,[t[15]||(t[15]=I("div",{class:"detail-icon"},[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 2 2h12c1.11 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"})])],-1)),I("div",{class:"detail-text",innerHTML:r.formatMessage(n.config.detail)},null,8,twt)])])):Ie("",!0),n.config.imageUrl?(z(),X("div",nwt,[I("div",rwt,[t[17]||(t[17]=I("div",{class:"image-bg gradient-accent"},null,-1)),I("img",{src:n.config.imageUrl,style:Ye({height:n.config.imageHeight?`${n.config.imageHeight}px`:"200px"}),class:"action-image-modern",onLoad:t[0]||(t[0]=(...l)=>r.onImageLoad&&r.onImageLoad(...l)),onError:t[1]||(t[1]=(...l)=>r.onImageError&&r.onImageError(...l))},null,44,iwt)])])):Ie("",!0),n.config.qrcode?(z(),X("div",owt,[I("div",swt,[t[19]||(t[19]=I("div",{class:"qrcode-bg gradient-accent"},null,-1)),I("div",awt,[t[18]||(t[18]=I("div",{class:"qrcode-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zM3 21h8v-8H3v8zm2-6h4v4H5v-4zM13 3v8h8V3h-8zm6 6h-4V5h4v4zM19 13h2v2h-2zM13 13h2v2h-2zM15 15h2v2h-2zM13 17h2v2h-2zM15 19h2v2h-2zM17 17h2v2h-2zM17 13h2v2h-2zM19 15h2v2h-2z"})]),I("span",{class:"qrcode-label"},"二维码")],-1)),I("img",{src:r.qrcodeUrl,alt:n.config.qrcode,class:"qrcode-image",onError:t[2]||(t[2]=(...l)=>r.onQrcodeError&&r.onQrcodeError(...l))},null,40,lwt),I("div",uwt,Ne(n.config.qrcode),1)])])])):Ie("",!0),n.config.showProgress?(z(),X("div",cwt,[I("div",dwt,[t[21]||(t[21]=I("div",{class:"progress-bg gradient-primary"},null,-1)),I("div",fwt,[t[20]||(t[20]=I("div",{class:"progress-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})]),I("span",{class:"progress-label"},"进度")],-1)),I("div",hwt,[I("div",pwt,[I("div",{class:"progress-fill-modern",style:Ye({width:`${r.progressPercent}%`})},null,4)])]),I("div",vwt,Ne(r.progressText),1)])])])):Ie("",!0),n.config.list&&n.config.list.length>0?(z(),X("div",mwt,[I("div",gwt,[t[24]||(t[24]=I("div",{class:"list-bg gradient-secondary"},null,-1)),I("div",ywt,[t[23]||(t[23]=I("div",{class:"list-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})]),I("span",{class:"list-label"},"详细信息")],-1)),I("ul",bwt,[(z(!0),X(Pt,null,cn(n.config.list,(l,c)=>(z(),X("li",{key:c,class:"list-item"},[t[22]||(t[22]=I("div",{class:"item-marker"},null,-1)),I("span",_wt,Ne(l),1)]))),128))])])])])):Ie("",!0),n.config.timeout&&r.timeLeft>0?(z(),X("div",Swt,[I("div",kwt,[t[26]||(t[26]=I("div",{class:"timeout-bg gradient-warning"},null,-1)),I("div",xwt,[t[25]||(t[25]=I("div",{class:"timeout-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"})])],-1)),I("div",Cwt,[I("span",wwt,Ne(r.timeLeft)+"秒后自动关闭",1),I("div",Ewt,[I("div",{class:"timeout-fill-modern",style:Ye({width:`${r.timeoutPercent}%`})},null,4)])])])])])):Ie("",!0)])])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const V3e=cr(FCt,[["render",Awt],["__scopeId","data-v-55d966d0"]]),Iwt=Object.freeze(Object.defineProperty({__proto__:null,default:V3e},Symbol.toStringTag,{value:"Module"})),Lwt={name:"WebViewAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ue(null),r=ue(""),i=ue(!0),a=ue(0),s=ue(!1),l=ue(""),c=ue(!1),d=ue(!1),h=ue(!1),p=ue(0),v=ue(null),g=ue(null),y=F(()=>e.config.showToolbar!==!1),S=F(()=>r.value||e.config.url||"about:blank"),k=F(()=>{const q=r.value||e.config.url||"";return q.length>50?q.substring(0,47)+"...":q}),C=F(()=>{const{sandbox:q="allow-scripts allow-same-origin allow-forms allow-popups"}=e.config;return q}),x=F(()=>{const q=Yc(e.config.button);return q===mi.OK_CANCEL||q===mi.OK_ONLY}),E=F(()=>{const q=Yc(e.config.button);return q===mi.OK_CANCEL||q===mi.CANCEL_ONLY}),_=()=>{r.value&&(i.value=!0,s.value=!1,a.value=0,H())},T=()=>{try{n.value&&n.value.contentWindow&&n.value.contentWindow.history.back()}catch(q){console.warn("无法执行后退操作:",q)}},D=()=>{try{n.value&&n.value.contentWindow&&n.value.contentWindow.history.forward()}catch(q){console.warn("无法执行前进操作:",q)}},P=()=>{i.value=!0,s.value=!1,a.value=0,n.value&&(n.value.src=n.value.src),H()},M=()=>{h.value=!h.value},O=()=>{console.log("开发者工具功能需要在 Electron 环境中实现")},L=()=>{i.value=!1,s.value=!1,a.value=100,U(),j();try{n.value&&n.value.contentWindow&&(r.value=n.value.contentWindow.location.href)}catch(q){console.warn("无法获取iframe URL:",q)}},B=q=>{i.value=!1,s.value=!0,l.value=q.message||"页面加载失败",U()},j=()=>{try{if(n.value&&n.value.contentWindow){const q=n.value.contentWindow.history;c.value=q.length>1,d.value=!1}}catch{c.value=!1,d.value=!1}},H=()=>{a.value=0,g.value=setInterval(()=>{a.value<90&&(a.value+=Math.random()*10)},200)},U=()=>{g.value&&(clearInterval(g.value),g.value=null),setTimeout(()=>{a.value=100},100)},K=()=>{const q={url:r.value,action:"ok"};try{n.value&&n.value.contentWindow&&(q.title=n.value.contentWindow.document.title)}catch{}t("submit",q)},Y=()=>{t("cancel"),t("close")},ie=()=>{t("close")},te=()=>{!e.config.timeout||e.config.timeout<=0||(p.value=e.config.timeout,v.value=setInterval(()=>{p.value--,p.value<=0&&(clearInterval(v.value),Y())},1e3))},W=()=>{v.value&&(clearInterval(v.value),v.value=null),p.value=0};return It(()=>e.config,q=>{r.value=q.url||"",i.value=!0,s.value=!1,a.value=0,q.url&&dn(()=>{H()}),q.timeout?te():W()},{immediate:!0}),It(()=>e.visible,q=>{q?te():(W(),U())}),hn(()=>{r.value=e.config.url||"",e.visible&&e.config.timeout&&te()}),ii(()=>{W(),U()}),{webviewFrame:n,currentUrl:r,isLoading:i,loadingProgress:a,hasError:s,errorMessage:l,canGoBack:c,canGoForward:d,isFullscreen:h,timeLeft:p,showToolbar:y,iframeSrc:S,displayUrl:k,sandboxAttributes:C,showOkButton:x,showCancelButton:E,navigate:_,goBack:T,goForward:D,reload:P,toggleFullscreen:M,toggleDevTools:O,onFrameLoad:L,onFrameError:B,handleOk:K,handleCancel:Y,handleClose:ie}}},Dwt={class:"webview-action"},Pwt={key:0,class:"webview-toolbar-modern glass-effect"},Rwt={class:"toolbar-nav-group"},Mwt=["disabled"],$wt=["disabled"],Owt={key:0,class:"toolbar-address-modern"},Bwt={class:"address-input-container"},Nwt={class:"toolbar-actions-modern"},Fwt=["title"],jwt={key:0,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Vwt={key:1,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},zwt={key:1,class:"webview-progress-modern"},Uwt={key:0,class:"webview-loading-modern"},Hwt={class:"loading-progress-text"},Wwt={key:1,class:"webview-error-modern"},Gwt={class:"error-container"},Kwt={class:"error-message-modern"},qwt=["src","sandbox"],Ywt={key:2,class:"webview-status-modern glass-effect"},Xwt={class:"status-info-modern"},Zwt={class:"status-url-container"},Jwt={class:"status-url-modern"},Qwt={key:0,class:"status-timeout-modern"},eEt={class:"action-dialog-footer"};function tEt(e,t,n,r,i,a){const s=Te("ActionDialog");return z(),Ze(s,{visible:n.visible,title:n.config.title,width:n.config.width||"90%",height:n.config.height||"auto","canceled-on-touch-outside":!n.config.keep,"show-close":!1,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[14]||(t[14]=(l,c)=>e.emit("toast",l,c)),onReset:t[15]||(t[15]=()=>e.emit("reset"))},{footer:fe(()=>[I("div",eEt,[I("button",{class:"btn-modern btn-secondary",onClick:t[11]||(t[11]=(...l)=>r.handleClose&&r.handleClose(...l))},[t[31]||(t[31]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),I("span",null,Ne(n.config.closeText||"关闭"),1)]),r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[I("span",null,Ne(n.config.cancelText||"取消"),1)])):Ie("",!0),r.showOkButton?(z(),X("button",{key:1,class:"btn-modern btn-primary",onClick:t[13]||(t[13]=(...l)=>r.handleOk&&r.handleOk(...l))},[I("span",null,Ne(n.config.okText||"确定"),1)])):Ie("",!0)])]),default:fe(()=>[I("div",Dwt,[r.showToolbar?(z(),X("div",Pwt,[I("div",Rwt,[I("button",{class:de(["toolbar-btn-modern nav-btn",{disabled:!r.canGoBack}]),disabled:!r.canGoBack,onClick:t[0]||(t[0]=(...l)=>r.goBack&&r.goBack(...l)),title:"后退"},[...t[16]||(t[16]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])],10,Mwt),I("button",{class:de(["toolbar-btn-modern nav-btn",{disabled:!r.canGoForward}]),disabled:!r.canGoForward,onClick:t[1]||(t[1]=(...l)=>r.goForward&&r.goForward(...l)),title:"前进"},[...t[17]||(t[17]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M5 12h14M12 5l7 7-7 7"})],-1)])],10,$wt),I("button",{class:"toolbar-btn-modern nav-btn",onClick:t[2]||(t[2]=(...l)=>r.reload&&r.reload(...l)),title:"刷新"},[...t[18]||(t[18]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M1 4v6h6M23 20v-6h-6"}),I("path",{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"})],-1)])])]),n.config.showAddressBar?(z(),X("div",Owt,[I("div",Bwt,[t[20]||(t[20]=I("svg",{class:"address-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"11",cy:"11",r:"8"}),I("path",{d:"M21 21l-4.35-4.35"})],-1)),Ai(I("input",{"onUpdate:modelValue":t[3]||(t[3]=l=>r.currentUrl=l),type:"url",class:"address-input-modern",placeholder:"请输入网址...",onKeyup:t[4]||(t[4]=df((...l)=>r.navigate&&r.navigate(...l),["enter"]))},null,544),[[Ql,r.currentUrl]]),I("button",{class:"toolbar-btn-modern address-go-btn",onClick:t[5]||(t[5]=(...l)=>r.navigate&&r.navigate(...l)),title:"访问"},[...t[19]||(t[19]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M5 12h14M12 5l7 7-7 7"})],-1)])])])])):Ie("",!0),I("div",Nwt,[n.config.allowFullscreen?(z(),X("button",{key:0,class:"toolbar-btn-modern action-btn",onClick:t[6]||(t[6]=(...l)=>r.toggleFullscreen&&r.toggleFullscreen(...l)),title:r.isFullscreen?"退出全屏":"全屏"},[r.isFullscreen?(z(),X("svg",Vwt,[...t[22]||(t[22]=[I("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},null,-1)])])):(z(),X("svg",jwt,[...t[21]||(t[21]=[I("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"},null,-1)])]))],8,Fwt)):Ie("",!0),n.config.allowDevTools?(z(),X("button",{key:1,class:"toolbar-btn-modern action-btn",onClick:t[7]||(t[7]=(...l)=>r.toggleDevTools&&r.toggleDevTools(...l)),title:"开发者工具"},[...t[23]||(t[23]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})],-1)])])):Ie("",!0)])])):Ie("",!0),r.isLoading?(z(),X("div",zwt,[I("div",{class:"progress-bar-modern",style:Ye({width:`${r.loadingProgress}%`})},null,4)])):Ie("",!0),I("div",{class:de(["webview-container-modern",{fullscreen:r.isFullscreen}])},[r.isLoading&&r.loadingProgress<100?(z(),X("div",Uwt,[t[24]||(t[24]=I("div",{class:"loading-spinner-modern"},null,-1)),t[25]||(t[25]=I("div",{class:"loading-text-modern"},"正在加载网页...",-1)),I("div",Hwt,Ne(Math.round(r.loadingProgress))+"%",1)])):Ie("",!0),r.hasError?(z(),X("div",Wwt,[I("div",Gwt,[t[27]||(t[27]=I("svg",{class:"error-icon-modern",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),I("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),t[28]||(t[28]=I("div",{class:"error-title-modern"},"页面加载失败",-1)),I("div",Kwt,Ne(r.errorMessage),1),I("button",{class:"btn-modern btn-primary",onClick:t[8]||(t[8]=(...l)=>r.reload&&r.reload(...l))},[...t[26]||(t[26]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M1 4v6h6M23 20v-6h-6"}),I("path",{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"})],-1),I("span",null,"重新加载",-1)])])])])):Ie("",!0),Ai(I("iframe",{ref:"webviewFrame",src:r.iframeSrc,class:"webview-frame-modern",sandbox:r.sandboxAttributes,onLoad:t[9]||(t[9]=(...l)=>r.onFrameLoad&&r.onFrameLoad(...l)),onError:t[10]||(t[10]=(...l)=>r.onFrameError&&r.onFrameError(...l))},null,40,qwt),[[es,!r.isLoading&&!r.hasError]])],2),n.config.showStatus?(z(),X("div",Ywt,[I("div",Xwt,[I("div",Zwt,[t[29]||(t[29]=I("svg",{class:"status-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M2 12h20"}),I("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})],-1)),I("span",Jwt,Ne(r.displayUrl),1)]),n.config.timeout&&r.timeLeft>0?(z(),X("div",Qwt,[t[30]||(t[30]=I("svg",{class:"timeout-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})],-1)),I("span",null,Ne(r.timeLeft)+"秒后自动关闭",1)])):Ie("",!0)])])):Ie("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const z3e=cr(Lwt,[["render",tEt],["__scopeId","data-v-a119be1f"]]),nEt=Object.freeze(Object.defineProperty({__proto__:null,default:z3e},Symbol.toStringTag,{value:"Module"})),rEt={name:"HelpAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["close","link-click","toast","reset","special-action"],setup(e,{emit:t}){const n=ue(!1),r=ue(!1),i=ue(-1),a=ue(0),s=ue(null),l=F(()=>e.config.msg?/<[^>]+>/.test(e.config.msg)?e.config.msg:e.config.msg.replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1").replace(/\n/g,"
"):""),c=F(()=>e.config.details?Array.isArray(e.config.details)?e.config.details:typeof e.config.details=="string"?[{content:e.config.details}]:[e.config.details]:[]),d=F(()=>e.config.steps?Array.isArray(e.config.steps)?e.config.steps:[]:[]),h=F(()=>e.config.faq?Array.isArray(e.config.faq)?e.config.faq:[]:[]),p=F(()=>e.config.links?Array.isArray(e.config.links)?e.config.links:[]:[]),v=F(()=>!e.config.data||typeof e.config.data!="object"?[]:Object.entries(e.config.data).map(([O,L])=>({key:O,value:L}))),g=O=>O?/<[^>]+>/.test(O)?O:String(O).replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1").replace(/\n/g,"
"):"",y=()=>{n.value=!1},S=()=>{n.value=!0},k=()=>{r.value=!1},C=()=>{r.value=!0},x=O=>{i.value=i.value===O?-1:O},E=O=>{t("link-click",O)},_=()=>{try{window.print()}catch(O){console.warn("打印功能不可用:",O)}},T=async()=>{try{const O=[];e.config.msg&&O.push(e.config.msg),e.config.details&&(O.push(` -详细信息:`),c.value.forEach(B=>{B.title&&O.push(`${B.title}:`),O.push(B.content.replace(/<[^>]*>/g,""))})),e.config.steps&&(O.push(` -操作步骤:`),d.value.forEach((B,j)=>{O.push(`${j+1}. ${B.title||""}`),O.push(B.content.replace(/<[^>]*>/g,""))})),e.config.faq&&(O.push(` -常见问题:`),h.value.forEach(B=>{O.push(`Q: ${B.question}`),O.push(`A: ${B.answer.replace(/<[^>]*>/g,"")}`)}));const L=O.join(` -`);if(navigator.clipboard)await navigator.clipboard.writeText(L);else{const B=document.createElement("textarea");B.value=L,document.body.appendChild(B),B.select(),document.execCommand("copy"),document.body.removeChild(B)}console.log("内容已复制到剪贴板")}catch(O){console.warn("复制失败:",O)}},D=()=>{t("close")},P=()=>{!e.config.timeout||e.config.timeout<=0||(a.value=e.config.timeout,s.value=setInterval(()=>{a.value--,a.value<=0&&(clearInterval(s.value),D())},1e3))},M=()=>{s.value&&(clearInterval(s.value),s.value=null),a.value=0};return It(()=>e.visible,O=>{O?P():M()}),hn(()=>{e.visible&&e.config.timeout&&P()}),ii(()=>{M()}),{imageError:n,qrError:r,expandedFaq:i,timeLeft:a,formattedMessage:l,detailsList:c,stepsList:d,faqList:h,linksList:p,dataList:v,formatDataText:g,onImageLoad:y,onImageError:S,onQrLoad:k,onQrError:C,toggleFaq:x,onLinkClick:E,handlePrint:_,handleCopy:T,handleClose:D}}},iEt={class:"help-action-modern"},oEt={class:"help-content-modern"},sEt={key:0,class:"help-message-modern glass-effect gradient-primary"},aEt=["innerHTML"],lEt={key:1,class:"help-data-modern"},uEt={class:"data-content-modern"},cEt={class:"data-title-modern"},dEt=["innerHTML"],fEt={key:2,class:"help-image-modern"},hEt={class:"image-container glass-effect"},pEt=["src","alt"],vEt={key:0,class:"image-error-modern"},mEt={key:3,class:"help-qrcode-modern"},gEt={class:"qrcode-container-modern glass-effect"},yEt={class:"qrcode-image-wrapper"},bEt=["src"],_Et={key:0,class:"qrcode-error-modern"},SEt={key:0,class:"qrcode-text-modern"},kEt={key:4,class:"help-details-modern"},xEt={class:"details-content-modern"},CEt={key:0,class:"detail-title-modern"},wEt=["innerHTML"],EEt={key:5,class:"help-steps-modern"},TEt={class:"steps-content-modern"},AEt={class:"step-number-modern"},IEt={class:"step-content-modern"},LEt={key:0,class:"step-title-modern"},DEt=["innerHTML"],PEt={key:1,class:"step-image-modern"},REt=["src","alt"],MEt={key:6,class:"help-faq-modern"},$Et={class:"faq-content-modern"},OEt=["onClick"],BEt={class:"question-content"},NEt={class:"question-text-modern"},FEt={class:"faq-answer-modern"},jEt=["innerHTML"],VEt={key:7,class:"help-links-modern"},zEt={class:"links-content-modern"},UEt=["href","target","onClick"],HEt={class:"link-content"},WEt={class:"link-text-modern"},GEt={key:0,class:"link-desc-modern"},KEt={key:8,class:"help-contact-modern"},qEt={class:"contact-content-modern"},YEt={key:0,class:"contact-card glass-effect"},XEt={class:"contact-info"},ZEt=["href"],JEt={key:1,class:"contact-card glass-effect"},QEt={class:"contact-info"},e8t=["href"],t8t={key:2,class:"contact-card glass-effect"},n8t={class:"contact-info"},r8t=["href"],i8t={key:3,class:"contact-card glass-effect"},o8t={class:"contact-info"},s8t={class:"contact-value-modern"},a8t={key:0,class:"help-timeout-modern glass-effect"},l8t={class:"action-dialog-footer"};function u8t(e,t,n,r,i,a){const s=Te("ActionDialog");return z(),Ze(s,{visible:n.visible,title:n.config.title||"帮助信息",width:n.config.width||700,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[7]||(t[7]=(l,c)=>e.emit("toast",l,c)),onReset:t[8]||(t[8]=()=>e.emit("reset"))},{footer:fe(()=>[I("div",l8t,[n.config.allowPrint?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[4]||(t[4]=(...l)=>r.handlePrint&&r.handlePrint(...l))},[...t[32]||(t[32]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"6,9 6,2 18,2 18,9"}),I("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),I("rect",{x:"6",y:"14",width:"12",height:"8"})],-1),I("span",null,"打印",-1)])])):Ie("",!0),n.config.allowCopy?(z(),X("button",{key:1,class:"btn-modern btn-secondary",onClick:t[5]||(t[5]=(...l)=>r.handleCopy&&r.handleCopy(...l))},[...t[33]||(t[33]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1),I("span",null,"复制内容",-1)])])):Ie("",!0),I("button",{class:"btn-modern btn-primary",onClick:t[6]||(t[6]=(...l)=>r.handleClose&&r.handleClose(...l))},[I("span",null,Ne(n.config.closeText||"关闭"),1)])])]),default:fe(()=>[I("div",iEt,[I("div",oEt,[n.config.msg?(z(),X("div",sEt,[t[9]||(t[9]=I("div",{class:"message-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M12 16v-4"}),I("path",{d:"M12 8h.01"})])],-1)),I("div",{class:"message-text-modern",innerHTML:r.formattedMessage},null,8,aEt)])):Ie("",!0),n.config.data&&r.dataList.length>0?(z(),X("div",lEt,[t[10]||(t[10]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),I("polyline",{points:"14,2 14,8 20,8"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),I("polyline",{points:"10,9 9,9 8,9"})])]),I("h3",{class:"section-title"},"帮助信息")],-1)),I("div",uEt,[(z(!0),X(Pt,null,cn(r.dataList,(l,c)=>(z(),X("div",{key:c,class:"data-item glass-effect"},[I("div",cEt,Ne(l.key),1),I("div",{class:"data-text-modern",innerHTML:r.formatDataText(l.value)},null,8,dEt)]))),128))])])):Ie("",!0),n.config.img?(z(),X("div",fEt,[I("div",hEt,[I("img",{src:n.config.img,alt:n.config.imgAlt||"帮助图片",class:"image-content-modern",onLoad:t[0]||(t[0]=(...l)=>r.onImageLoad&&r.onImageLoad(...l)),onError:t[1]||(t[1]=(...l)=>r.onImageError&&r.onImageError(...l))},null,40,pEt),r.imageError?(z(),X("div",vEt,[...t[11]||(t[11]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),I("polyline",{points:"7,10 12,15 17,10"}),I("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1),I("span",null,"图片加载失败",-1)])])):Ie("",!0)])])):Ie("",!0),n.config.qr?(z(),X("div",mEt,[I("div",gEt,[t[13]||(t[13]=I("div",{class:"qrcode-header"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("rect",{x:"3",y:"3",width:"5",height:"5"}),I("rect",{x:"16",y:"3",width:"5",height:"5"}),I("rect",{x:"3",y:"16",width:"5",height:"5"}),I("path",{d:"M21 16h-3a2 2 0 0 0-2 2v3"}),I("path",{d:"M21 21v.01"}),I("path",{d:"M12 7v3a2 2 0 0 1-2 2H7"}),I("path",{d:"M3 12h.01"}),I("path",{d:"M12 3h.01"}),I("path",{d:"M12 16v.01"}),I("path",{d:"M16 12h1"}),I("path",{d:"M21 12v.01"}),I("path",{d:"M12 21v-1"})]),I("span",null,"扫描二维码")],-1)),I("div",yEt,[I("img",{src:n.config.qr,alt:"二维码",class:"qrcode-image-modern",onLoad:t[2]||(t[2]=(...l)=>r.onQrLoad&&r.onQrLoad(...l)),onError:t[3]||(t[3]=(...l)=>r.onQrError&&r.onQrError(...l))},null,40,bEt),r.qrError?(z(),X("div",_Et,[...t[12]||(t[12]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),I("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1),I("span",null,"二维码加载失败",-1)])])):Ie("",!0)]),n.config.qrText?(z(),X("div",SEt,Ne(n.config.qrText),1)):Ie("",!0)])])):Ie("",!0),n.config.details?(z(),X("div",kEt,[t[14]||(t[14]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),I("polyline",{points:"14,2 14,8 20,8"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),I("polyline",{points:"10,9 9,9 8,9"})])]),I("h3",{class:"section-title"},"详细信息")],-1)),I("div",xEt,[(z(!0),X(Pt,null,cn(r.detailsList,(l,c)=>(z(),X("div",{key:c,class:"detail-card glass-effect"},[l.title?(z(),X("div",CEt,Ne(l.title),1)):Ie("",!0),I("div",{class:"detail-text-modern",innerHTML:l.content},null,8,wEt)]))),128))])])):Ie("",!0),n.config.steps?(z(),X("div",EEt,[t[15]||(t[15]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})])]),I("h3",{class:"section-title"},"操作步骤")],-1)),I("div",TEt,[(z(!0),X(Pt,null,cn(r.stepsList,(l,c)=>(z(),X("div",{key:c,class:"step-card glass-effect"},[I("div",AEt,Ne(c+1),1),I("div",IEt,[l.title?(z(),X("div",LEt,Ne(l.title),1)):Ie("",!0),I("div",{class:"step-text-modern",innerHTML:l.content},null,8,DEt),l.image?(z(),X("div",PEt,[I("img",{src:l.image,alt:l.title||`步骤${c+1}`,class:"step-img-modern"},null,8,REt)])):Ie("",!0)])]))),128))])])):Ie("",!0),n.config.faq?(z(),X("div",MEt,[t[18]||(t[18]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),I("path",{d:"M12 17h.01"})])]),I("h3",{class:"section-title"},"常见问题")],-1)),I("div",$Et,[(z(!0),X(Pt,null,cn(r.faqList,(l,c)=>(z(),X("div",{key:c,class:de(["faq-card glass-effect",{expanded:r.expandedFaq===c}])},[I("div",{class:"faq-question-modern",onClick:d=>r.toggleFaq(c)},[I("div",BEt,[t[16]||(t[16]=I("div",{class:"question-icon-wrapper"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),I("path",{d:"M12 17h.01"})])],-1)),I("span",NEt,Ne(l.question),1)]),I("div",{class:de(["expand-icon",{rotated:r.expandedFaq===c}])},[...t[17]||(t[17]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"6,9 12,15 18,9"})],-1)])],2)],8,OEt),Ai(I("div",FEt,[I("div",{class:"answer-text-modern",innerHTML:l.answer},null,8,jEt)],512),[[es,r.expandedFaq===c]])],2))),128))])])):Ie("",!0),n.config.links?(z(),X("div",VEt,[t[21]||(t[21]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),I("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})])]),I("h3",{class:"section-title"},"相关链接")],-1)),I("div",zEt,[(z(!0),X(Pt,null,cn(r.linksList,(l,c)=>(z(),X("a",{key:c,href:l.url,target:l.target||"_blank",class:"link-card glass-effect",onClick:d=>r.onLinkClick(l)},[t[19]||(t[19]=I("div",{class:"link-icon-modern"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),I("polyline",{points:"15,3 21,3 21,9"}),I("line",{x1:"10",y1:"14",x2:"21",y2:"3"})])],-1)),I("div",HEt,[I("span",WEt,Ne(l.title),1),l.description?(z(),X("span",GEt,Ne(l.description),1)):Ie("",!0)]),t[20]||(t[20]=I("div",{class:"link-arrow"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"9,18 15,12 9,6"})])],-1))],8,UEt))),128))])])):Ie("",!0),n.config.contact?(z(),X("div",KEt,[t[30]||(t[30]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})])]),I("h3",{class:"section-title"},"联系我们")],-1)),I("div",qEt,[n.config.contact.email?(z(),X("div",YEt,[t[23]||(t[23]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),I("polyline",{points:"22,6 12,13 2,6"})])],-1)),I("div",XEt,[t[22]||(t[22]=I("span",{class:"contact-label-modern"},"邮箱",-1)),I("a",{href:`mailto:${n.config.contact.email}`,class:"contact-value-modern"},Ne(n.config.contact.email),9,ZEt)])])):Ie("",!0),n.config.contact.phone?(z(),X("div",JEt,[t[25]||(t[25]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})])],-1)),I("div",QEt,[t[24]||(t[24]=I("span",{class:"contact-label-modern"},"电话",-1)),I("a",{href:`tel:${n.config.contact.phone}`,class:"contact-value-modern"},Ne(n.config.contact.phone),9,e8t)])])):Ie("",!0),n.config.contact.website?(z(),X("div",t8t,[t[27]||(t[27]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),I("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})])],-1)),I("div",n8t,[t[26]||(t[26]=I("span",{class:"contact-label-modern"},"网站",-1)),I("a",{href:n.config.contact.website,target:"_blank",class:"contact-value-modern"},Ne(n.config.contact.website),9,r8t)])])):Ie("",!0),n.config.contact.address?(z(),X("div",i8t,[t[29]||(t[29]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),I("circle",{cx:"12",cy:"10",r:"3"})])],-1)),I("div",o8t,[t[28]||(t[28]=I("span",{class:"contact-label-modern"},"地址",-1)),I("span",s8t,Ne(n.config.contact.address),1)])])):Ie("",!0)])])):Ie("",!0)]),n.config.timeout&&r.timeLeft>0?(z(),X("div",a8t,[t[31]||(t[31]=I("div",{class:"timeout-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})])],-1)),I("span",null,Ne(r.timeLeft)+"秒后自动关闭",1)])):Ie("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const U3e=cr(rEt,[["render",u8t],["__scopeId","data-v-005dc119"]]),c8t=Object.freeze(Object.defineProperty({__proto__:null,default:U3e},Symbol.toStringTag,{value:"Module"}));let d8t=class{constructor(){this.currentAction=ue(null),this.actionHistory=ue([]),this.globalConfig=qt({defaultTimeout:30,maxHistorySize:100,debugMode:!1,theme:"default",allowMultiple:!1,defaultDialog:{width:400,height:null,canceledOnTouchOutside:!0}}),this.actionQueue=ue([]),this.errorHandlers=new Map,this.eventListeners=new Map,this.statistics=qt({totalActions:0,successfulActions:0,canceledActions:0,errorActions:0,averageResponseTime:0})}async showAction(t,n={}){try{this.validateConfig(t);const r=this.createAction(t,n);if(!this.globalConfig.allowMultiple&&this.currentAction.value)if(n.force)await this.closeCurrentAction();else return this.enqueueAction(r);return this.currentAction.value=r,this.addToHistory(r),this.statistics.totalActions++,this.emit("action-show",r),this.startTimeout(r),new Promise((i,a)=>{r.resolve=i,r.reject=a})}catch(r){throw this.handleError(r,t),r}}createAction(t,n){const r={id:this.generateId(),type:t.type,config:{...t},options:{...n},status:"pending",visible:!0,startTime:Date.now(),endTime:null,result:null,error:null,timeout:null,resolve:null,reject:null};return this.mergeGlobalConfig(r),r}mergeGlobalConfig(t){!t.config.timeout&&this.globalConfig.defaultTimeout>0&&(t.config.timeout=this.globalConfig.defaultTimeout),t.config.width||(t.config.width=this.globalConfig.defaultDialog.width),t.config.height||(t.config.height=this.globalConfig.defaultDialog.height),t.config.canceledOnTouchOutside===void 0&&(t.config.canceledOnTouchOutside=this.globalConfig.defaultDialog.canceledOnTouchOutside)}submitAction(t){const n=this.currentAction.value;n&&(n.status="completed",n.result=t,n.endTime=Date.now(),n.visible=!1,this.clearTimeout(n),this.statistics.successfulActions++,this.updateAverageResponseTime(n),this.emit("action-submit",{action:n,result:t}),n.resolve&&n.resolve(t),this.processNextAction())}cancelAction(t="user_cancel"){const n=this.currentAction.value;n&&(n.status="canceled",n.error={type:"cancel",reason:t},n.endTime=Date.now(),n.visible=!1,this.clearTimeout(n),this.statistics.canceledActions++,this.emit("action-cancel",{action:n,reason:t}),n.reject&&n.reject(new Error(`Action canceled: ${t}`)),this.processNextAction())}actionError(t){const n=this.currentAction.value;n&&(n.status="error",n.error=t,n.endTime=Date.now(),this.clearTimeout(n),this.statistics.errorActions++,this.emit("action-error",{action:n,error:t}),this.handleError(t,n.config),n.reject&&n.reject(t),this.processNextAction())}async closeCurrentAction(){this.currentAction.value&&this.cancelAction("force_close")}enqueueAction(t){return this.actionQueue.value.push(t),new Promise((n,r)=>{t.resolve=n,t.reject=r})}processNextAction(){if(this.currentAction.value=null,this.actionQueue.value.length>0){const t=this.actionQueue.value.shift();this.currentAction.value=t,this.addToHistory(t),this.statistics.totalActions++,this.emit("action-show",t),this.startTimeout(t)}}startTimeout(t){!t.config.timeout||t.config.timeout<=0||(t.timeout=setTimeout(()=>{t===this.currentAction.value&&this.cancelAction("timeout")},t.config.timeout*1e3))}clearTimeout(t){t.timeout&&(clearTimeout(t.timeout),t.timeout=null)}addToHistory(t){this.actionHistory.value.unshift(t),this.actionHistory.value.length>this.globalConfig.maxHistorySize&&(this.actionHistory.value=this.actionHistory.value.slice(0,this.globalConfig.maxHistorySize))}updateAverageResponseTime(t){const n=t.endTime-t.startTime,r=this.statistics.successfulActions,i=this.statistics.averageResponseTime;this.statistics.averageResponseTime=Math.round((i*(r-1)+n)/r)}validateConfig(t){if(!t||typeof t!="object")throw new Error("Action配置不能为空");if(!t.type||!Object.values(Ei).includes(t.type))throw new Error(`无效的Action类型: ${t.type}`);if(!t.actionId||typeof t.actionId!="string")throw new Error("actionId是必需的,且必须是字符串类型");switch(t.type){case Ei.INPUT:if(!t.msg&&!t.img&&!t.qr)throw new Error("InputAction必须包含消息、图片或二维码");break;case Ei.MULTI_INPUT:const n=t.input||t.inputs;if(!n||!Array.isArray(n)||n.length===0)throw new Error("MultiInputAction必须包含输入项列表");break;case Ei.MULTI_INPUT_X:const r=t.input||t.inputs;if(!r||!Array.isArray(r)||r.length===0)throw new Error("MultiInputXAction必须包含输入项列表");break;case Ei.MENU:case Ei.SELECT:const i=t.option||t.options;if(!i||!Array.isArray(i)||i.length===0)throw new Error("MenuAction必须包含选项列表");break;case Ei.MSGBOX:if(!t.msg&&!t.img&&!t.qr)throw new Error("MsgBoxAction必须包含消息、图片或二维码");break;case Ei.WEBVIEW:if(!t.url)throw new Error("WebViewAction必须包含URL");break;case Ei.HELP:if(!t.msg&&!t.details&&!t.steps)throw new Error("HelpAction必须包含帮助内容");break}}handleError(t,n){this.globalConfig.debugMode&&console.error("Action错误:",t,n);const r=this.errorHandlers.get(t.type)||this.errorHandlers.get("default");if(r)try{r(t,n)}catch(i){console.error("错误处理器异常:",i)}this.emit("error",{error:t,config:n})}registerErrorHandler(t,n){this.errorHandlers.set(t,n)}on(t,n){this.eventListeners.has(t)||this.eventListeners.set(t,[]),this.eventListeners.get(t).push(n)}off(t,n){const r=this.eventListeners.get(t);if(r){const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,n){const r=this.eventListeners.get(t);r&&r.forEach(i=>{try{i(n)}catch(a){console.error("事件监听器异常:",a)}})}generateId(){return`action_${Date.now()}_${Math.random().toString(36).substr(2,9)}`}getHistory(t={}){let n=[...this.actionHistory.value];return t.type&&(n=n.filter(r=>r.type===t.type)),t.status&&(n=n.filter(r=>r.status===t.status)),t.startTime&&(n=n.filter(r=>r.startTime>=t.startTime)),t.endTime&&(n=n.filter(r=>r.endTime<=t.endTime)),t.limit&&(n=n.slice(0,t.limit)),n}clearHistory(t={}){if(Object.keys(t).length===0)this.actionHistory.value=[];else{const n=this.actionHistory.value.filter(r=>!(t.type&&r.type===t.type||t.status&&r.status===t.status||t.before&&r.startTime{t.reject&&t.reject(new Error("ActionStateManager destroyed"))}),this.actionQueue.value=[],this.eventListeners.clear(),this.errorHandlers.clear(),this.actionHistory.value=[]}};const Yo=new d8t,sa=(e,t)=>Yo.showAction(e,t),f8t=e=>Yo.submitAction(e),qle=e=>Yo.cancelAction(e),h8t=F(()=>Yo.currentAction.value),p8t=F(()=>Yo.actionHistory.value),v8t=F(()=>Yo.actionQueue.value),_C=F(()=>Yo.statistics),Yle=F(()=>Yo.globalConfig),Fz={ActionRenderer:lg,ActionDialog:ep,InputAction:N3e,MultiInputAction:F3e,MenuAction:j3e,MsgBoxAction:V3e,WebViewAction:z3e,HelpAction:U3e},m8t=(e,t={})=>{Object.keys(Fz).forEach(n=>{e.component(n,Fz[n])}),t.config&&Yo.updateConfig(t.config),e.config.globalProperties.$actionManager=Yo,e.config.globalProperties.$showAction=sa,e.provide("actionManager",Yo),e.provide("showAction",sa)},g8t={install:m8t,...Fz},Fr={input:e=>sa({...e,type:Ei.INPUT}),edit:e=>sa({...e,type:Ei.EDIT}),multiInput:e=>sa({...e,type:Ei.MULTI_INPUT}),multiInputX:e=>sa({...e,type:Ei.MULTI_INPUT_X}),menu:e=>sa({...e,type:Ei.MENU}),select:e=>sa({...e,type:Ei.SELECT}),msgBox:e=>sa({...e,type:Ei.MSGBOX}),webView:e=>sa({...e,type:Ei.WEBVIEW}),help:e=>sa({...e,type:Ei.HELP}),confirm:(e,t="确认")=>sa({actionId:`confirm-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:mi.OK_CANCEL}),alert:(e,t="提示")=>sa({actionId:`alert-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:mi.OK_ONLY}),info:(e,t="信息")=>sa({actionId:`info-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:mi.OK_ONLY,icon:"info"}),success:(e,t="成功")=>sa({actionId:`success-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:mi.OK_ONLY,icon:"success"}),error:(e,t="错误")=>sa({actionId:`error-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:mi.OK_ONLY,icon:"error"}),warning:(e,t="警告")=>sa({actionId:`warning-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:mi.OK_ONLY,icon:"warning"}),loading:(e="加载中...",t="请稍候")=>sa({actionId:`loading-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:mi.NONE,showProgress:!0}),progress:(e,t="进度",n=0)=>sa({actionId:`progress-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:mi.CANCEL_ONLY,showProgress:!0,progress:n})},y8t={class:"global-action-content"},b8t={class:"search-section"},_8t={class:"search-filters"},S8t={class:"action-list-container"},k8t={key:0,class:"empty-state"},x8t={class:"empty-icon"},C8t={class:"empty-text"},w8t={class:"empty-hint"},E8t={key:1,class:"action-list"},T8t=["onClick"],A8t={class:"action-main"},I8t={class:"action-name"},L8t={class:"action-source"},D8t={class:"action-arrow"},P8t={class:"action-stats"},R8t={class:"stats-item"},M8t={class:"stats-value"},$8t={class:"stats-item"},O8t={class:"stats-value"},B8t={key:0,class:"stats-item"},N8t={class:"stats-value"},F8t={key:1,class:"stats-item"},j8t={class:"stats-value"},V8t={__name:"GlobalActionDialog",props:{visible:{type:Boolean,default:!1},sites:{type:Array,default:()=>[]}},emits:["update:visible","action-executed","special-action"],setup(e,{emit:t}){const n=e,r=t,i=ue(""),a=ue(""),s=ue(!1),l=ue(null),c=ue(null),d=F(()=>{const M=[];return n.sites.forEach(O=>{O.more&&O.more.actions&&Array.isArray(O.more.actions)&&O.more.actions.forEach(L=>{M.push({...L,siteKey:O.key,siteName:O.name,siteApi:O.api,siteExt:O.ext})})}),M}),h=F(()=>n.sites.filter(M=>M.more&&M.more.actions&&Array.isArray(M.more.actions)&&M.more.actions.length>0)),p=F(()=>{let M=d.value;if(a.value&&(M=M.filter(O=>O.siteKey===a.value)),i.value.trim()){const O=i.value.toLowerCase().trim();M=M.filter(L=>L.name.toLowerCase().includes(O)||L.siteName.toLowerCase().includes(O))}return M}),v=M=>d.value.filter(O=>O.siteKey===M).length,g=()=>{if(!a.value)return"";const M=h.value.find(O=>O.key===a.value);return M?M.name:""},y=()=>d.value.length===0?"暂无可用的全局动作":a.value&&i.value.trim()?"在当前站源中未找到匹配的动作":a.value?"当前站源暂无可用动作":i.value.trim()?"未找到匹配的动作":"暂无可用的全局动作",S=()=>d.value.length===0?"请确保站源配置中包含动作信息":a.value&&i.value.trim()?"请尝试其他关键词或切换站源":a.value?"请选择其他站源或清除筛选条件":i.value.trim()?"请尝试其他关键词或清除搜索条件":"请确保站源配置中包含动作信息",k=async(M,O,L,B)=>{if(!O&&!L)return console.warn("未提供siteKey或apiUrl,无法调用T4接口"),null;const j={action:M};B&&B.ext&&(j.extend=B.ext),L&&(j.apiUrl=L),console.log("GlobalActionDialog调用T4接口:",{siteKey:O,actionData:j,apiUrl:L});let H=null;return O?(console.log("调用模块:",O),H=await xS(O,j)):L&&(console.log("直接调用API:",L),H=(await(await fc(async()=>{const{default:Y}=await Promise.resolve().then(()=>hW);return{default:Y}},void 0)).default.post(L,j,{timeout:pW(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",H),H},C=async M=>{try{if(console.log("执行全局动作:",M),!M||typeof M!="object")throw new Error("无效的动作对象");let O;if(typeof M.action=="string")try{O=JSON.parse(M.action.replace(/'/g,'"'))}catch{console.log("纯字符串动作,调用T4接口:",M.action);try{const B=await k(M.action,M.siteKey,M.siteApi,M.siteExt);if(B)if(typeof B=="string")try{const j=JSON.parse(B);let H=j.action||j;if(typeof H=="string")try{H=JSON.parse(H)}catch{console.warn("action字段不是有效的JSON字符串:",H)}O=H}catch{O={type:"msgbox",title:M.name||"动作结果",msg:B}}else if(typeof B=="object"&&B!==null){let j=B.action||B;if(typeof j=="string")try{j=JSON.parse(j)}catch{console.warn("action字段不是有效的JSON字符串:",j)}O=j}else throw new Error("T4接口返回了无效的数据格式");else throw new Error("T4接口调用失败或返回空结果")}catch(B){console.error("T4接口调用失败:",B),O={type:"msgbox",title:"动作执行失败",msg:`调用T4接口失败: ${B.message}`}}}else if(typeof M.action=="object"&&M.action!==null)O=M.action;else throw new Error("无效的动作配置");O.siteKey=M.siteKey,O.siteName=M.siteName,O.siteApi=M.siteApi,O.siteExt=M.siteExt,console.log(":",O),l.value=O,s.value=!0}catch(O){console.error("执行全局动作失败:",O),r("action-executed",{action:M,error:O.message,success:!1}),yt.error(`动作 "${M.name}" 执行失败: ${O.message}`)}},x=()=>{r("update:visible",!1),i.value="",a.value=""},E=()=>{s.value=!1,l.value=null},_=async(M,O)=>(console.log("ActionRenderer 动作执行:",{actionId:M,value:O}),{success:!0,message:"动作执行成功"}),T=M=>{console.log("ActionRenderer 执行成功:",M),r("action-executed",{action:l.value,result:M,success:!0}),yt.success("动作执行成功"),E(),x()},D=M=>{console.error("ActionRenderer 执行失败:",M),r("action-executed",{action:l.value,error:M.message||M,success:!1}),M.type!=="cancel"&&yt.error(`动作执行失败: ${M.message||M}`),E()},P=(M,O)=>{console.log("ActionRenderer special-action:",{actionType:M,actionData:O}),r("special-action",M,O),E()};return It(()=>n.visible,M=>{M&&(i.value="",a.value="")}),(M,O)=>{const L=Te("a-input-search"),B=Te("a-option"),j=Te("a-select"),H=Te("icon-thunderbolt"),U=Te("icon-desktop"),K=Te("icon-right"),Y=Te("a-modal");return z(),Ze(Y,{visible:e.visible,title:"全局动作",width:800,footer:!1,onCancel:x,class:"global-action-dialog"},{default:fe(()=>[I("div",y8t,[I("div",b8t,[I("div",_8t,[$(L,{modelValue:i.value,"onUpdate:modelValue":O[0]||(O[0]=ie=>i.value=ie),placeholder:"搜索动作或站源...","allow-clear":"",class:"action-search"},null,8,["modelValue"]),$(j,{modelValue:a.value,"onUpdate:modelValue":O[1]||(O[1]=ie=>a.value=ie),placeholder:"选择站源","allow-clear":"",class:"site-filter"},{default:fe(()=>[$(B,{value:""},{default:fe(()=>[...O[2]||(O[2]=[He("全部站源",-1)])]),_:1}),(z(!0),X(Pt,null,cn(h.value,ie=>(z(),Ze(B,{key:ie.key,value:ie.key},{default:fe(()=>[He(Ne(ie.name)+" ("+Ne(v(ie.key))+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])]),I("div",S8t,[p.value.length===0?(z(),X("div",k8t,[I("div",x8t,[$(H)]),I("div",C8t,Ne(y()),1),I("div",w8t,Ne(S()),1)])):(z(),X("div",E8t,[(z(!0),X(Pt,null,cn(p.value,ie=>(z(),X("div",{key:`${ie.siteKey}-${ie.name}`,class:"action-item",onClick:te=>C(ie)},[I("div",A8t,[I("div",I8t,[$(H,{class:"action-icon"}),He(" "+Ne(ie.name),1)]),I("div",L8t,[$(U,{class:"source-icon"}),He(" "+Ne(ie.siteName),1)])]),I("div",D8t,[$(K)])],8,T8t))),128))]))]),I("div",P8t,[I("div",R8t,[O[3]||(O[3]=I("span",{class:"stats-label"},"总动作数:",-1)),I("span",M8t,Ne(d.value.length),1)]),I("div",$8t,[O[4]||(O[4]=I("span",{class:"stats-label"},"站源数:",-1)),I("span",O8t,Ne(h.value.length),1)]),a.value?(z(),X("div",B8t,[O[5]||(O[5]=I("span",{class:"stats-label"},"当前站源:",-1)),I("span",N8t,Ne(g()),1)])):Ie("",!0),i.value||a.value?(z(),X("div",F8t,[O[6]||(O[6]=I("span",{class:"stats-label"},"筛选结果:",-1)),I("span",j8t,Ne(p.value.length),1)])):Ie("",!0)])]),s.value?(z(),Ze(lg,{key:0,ref_key:"actionRendererRef",ref:c,"action-data":l.value,module:l.value?.siteKey,extend:l.value?.siteExt,"api-url":l.value?.siteApi,visible:s.value,onClose:E,onAction:_,onSuccess:T,onError:D,onSpecialAction:P},null,8,["action-data","module","extend","api-url","visible"])):Ie("",!0)]),_:1},8,["visible"])}}},z8t=cr(V8t,[["__scopeId","data-v-cd5d9c46"]]),U8t={class:"breadcrumb-container"},H8t={class:"header-left"},W8t={class:"navigation-title"},G8t={class:"header-center"},K8t={class:"header-right"},q8t={class:"push-modal-content"},Y8t={class:"push-description"},X8t={class:"push-hint"},Z8t={class:"hint-item"},J8t={class:"hint-item"},Q8t={__name:"Breadcrumb",props:{navigation_title:{type:String,default:"Video"},now_site_title:String,sites:{type:Array,default:()=>[]}},emits:["handleOpenForm","refreshPage","onSearch","handlePush","minimize","maximize","closeWindow","actionExecuted"],setup(e,{emit:t}){const n=e,r=t,i=ue(""),a=ue(!1),s=ue(""),l=ue(!1),c=()=>{r("handleOpenForm")},d=()=>{r("refreshPage")},h=k=>{const C=typeof k=="string"?k:i.value;C&&typeof C=="string"&&C.trim()&&r("onSearch",C.trim())},p=()=>{a.value=!0,s.value=""},v=()=>{if(!n.sites||n.sites.length===0){yt.warning("当前没有可用的站源配置");return}if(console.log(n.sites),n.sites.filter(C=>C.more&&C.more.actions&&Array.isArray(C.more.actions)&&C.more.actions.length>0).length===0){yt.info("当前站源配置中没有可用的全局动作");return}l.value=!0},g=k=>{if(console.log("全局动作执行完成:",k),r("actionExecuted",k),!k||typeof k!="object"){console.warn("Invalid event object received in handleActionExecuted");return}const C=k.action?.name||"未知动作";k.success?yt.success(`动作 "${C}" 执行成功`):k.error!=="cancel"&&yt.error(`动作 "${C}" 执行失败: ${k.error||"未知错误"}`)},y=()=>{if(!s.value.trim()){yt.error("推送内容不能为空");return}const k=s.value.split(` -`).map(x=>x.trim()).filter(x=>x);if(k.length===0){yt.error("请输入有效的推送内容");return}const C=k[0];k.length>1&&yt.info(`检测到多行输入,将使用第一行内容: ${C}`),r("handlePush",C),a.value=!1,s.value=""},S=()=>{a.value=!1,s.value=""};return(k,C)=>{const x=Te("icon-apps"),E=Te("a-button"),_=Te("icon-refresh"),T=Te("a-input-search"),D=Te("icon-send"),P=Te("icon-thunderbolt"),M=Te("a-textarea"),O=Te("icon-info-circle"),L=Te("icon-bulb"),B=Te("a-modal");return z(),X(Pt,null,[I("div",U8t,[I("div",H8t,[I("span",W8t,Ne(e.navigation_title),1),$(E,{type:"outline",status:"success",shape:"round",onClick:c},{icon:fe(()=>[$(x)]),default:fe(()=>[He(Ne(e.now_site_title),1)]),_:1}),$(E,{type:"outline",status:"success",shape:"round",onClick:d},{icon:fe(()=>[$(_)]),default:fe(()=>[...C[4]||(C[4]=[He("重载源",-1)])]),_:1})]),I("div",G8t,[$(T,{modelValue:i.value,"onUpdate:modelValue":C[0]||(C[0]=j=>i.value=j),placeholder:"搜索视频","enter-button":"",onSearch:h,onPressEnter:h},null,8,["modelValue"])]),I("div",K8t,[$(E,{type:"outline",status:"success",shape:"round",onClick:p},{icon:fe(()=>[$(D)]),default:fe(()=>[...C[5]||(C[5]=[He("推送",-1)])]),_:1}),$(E,{type:"outline",status:"success",shape:"round",onClick:v},{icon:fe(()=>[$(P)]),default:fe(()=>[...C[6]||(C[6]=[He("全局动作",-1)])]),_:1}),mt(k.$slots,"default",{},void 0,!0)])]),$(B,{visible:a.value,"onUpdate:visible":C[2]||(C[2]=j=>a.value=j),title:"推送内容",width:600,onOk:y,onCancel:S,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!s.value.trim()}},{default:fe(()=>[I("div",q8t,[I("div",Y8t,[$(D,{class:"push-icon"}),C[7]||(C[7]=I("span",null,"请输入要推送的内容(vod_id):",-1))]),$(M,{modelValue:s.value,"onUpdate:modelValue":C[1]||(C[1]=j=>s.value=j),placeholder:`请输入要推送的内容... -支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),I("div",X8t,[I("div",Z8t,[$(O,{class:"hint-icon"}),C[8]||(C[8]=I("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),I("div",J8t,[$(L,{class:"hint-icon"}),C[9]||(C[9]=I("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"]),$(z8t,{visible:l.value,"onUpdate:visible":C[3]||(C[3]=j=>l.value=j),sites:e.sites,onActionExecuted:g},null,8,["visible","sites"])],64)}}},eTt=cr(Q8t,[["__scopeId","data-v-2f29cc38"]]),tTt=e=>`${vW.PARSE}/${e}`,nTt=async(e,t)=>{const{url:n,flag:r,headers:i,...a}=t;if(!n)throw new Error("视频URL不能为空");const s={url:n,...a};r&&(s.flag=r);const l={};return i&&(l.headers={...l.headers,...i}),V0(tTt(e),s)};class rTt{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!Tp(t))throw new Error("无效的模块名称");const{apiUrl:r,...i}=n,a=`home_${t}_${JSON.stringify(n)}`;console.log("[VideoService] getRecommendVideos 缓存检查:",{module:t,cacheKey:a,cacheSize:this.cache.size,allCacheKeys:Array.from(this.cache.keys())});const s=this.getFromCache(a);if(s)return console.log("[VideoService] 使用缓存数据:",{module:t,videosCount:s.videos?.length||0,categoriesCount:s.categories?.length||0}),s;console.log("[VideoService] 缓存未命中,发起新请求:",t);try{const l={...i};r&&(l.apiUrl=r);const c=await S6t(t,l),d={categories:c.class||[],filters:c.filters||{},videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c)};return console.log("[VideoService] 新数据已获取并缓存:",{module:t,videosCount:d.videos?.length||0,categoriesCount:d.categories?.length||0,cacheKey:a}),this.setCache(a,d),d}catch(l){throw console.error("获取首页推荐视频失败:",l),l}}async getCategoryVideos(t,n){if(!Tp(t))throw new Error("无效的模块名称");const{typeId:r,page:i=1,filters:a={},apiUrl:s,extend:l}=n;if(!r)throw new Error("分类ID不能为空");const c=`category_${t}_${r}_${i}_${JSON.stringify(a)}`,d=this.getFromCache(c);if(d)return d;try{const h={t:r,pg:i};Object.keys(a).length>0&&(h.ext=lct(a));const p=ca(l);p&&(h.extend=p),s&&(h.apiUrl=s);const v=await Z1(t,h),g={videos:(v.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(v,i),filters:v.filters||{},total:v.total||0};return this.setCache(c,g),g}catch(h){throw console.error("获取分类视频失败:",h),h}}async getVideoDetails(t,n,r,i=!1,a=null){if(!Tp(t))throw new Error("无效的模块名称");if(!uct(n))throw new Error("无效的视频ID");const s=`detail_${t}_${n}`;if(i)console.log("跳过缓存,强制获取最新视频详情:",{module:t,videoId:n});else{const l=this.getFromCache(s);if(l)return console.log("使用缓存的视频详情:",{module:t,videoId:n}),l}try{const l={ids:n};r&&(l.apiUrl=r);const c=ca(a);c&&(l.extend=c);const d=await k6t(t,l);if(!d.list||d.list.length===0)throw new Error("视频不存在");const h=this.formatVideoInfo(d.list[0]);return h.vod_play_url&&(h.playList=this.parsePlayUrls(h.vod_play_url,h.vod_play_from)),this.setCache(s,h),h}catch(l){throw console.error("获取视频详情失败:",l),l}}async searchVideo(t,n){if(!Tp(t))throw new Error("无效的模块名称");const{keyword:r,page:i=1,extend:a,apiUrl:s}=n;if(!r||r.trim().length===0)throw new Error("搜索关键词不能为空");try{const l={wd:r.trim(),pg:i},c=ca(a);c&&(l.extend=c),s&&(l.apiUrl=s);const d=await C6t(t,l);return{videos:(d.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(d,i),keyword:r.trim(),total:d.total||0,rawResponse:d}}catch(l){throw console.error("搜索视频失败:",l),l}}async getPlayUrl(t,n,r,i=null){if(!Tp(t))throw new Error("无效的模块名称");if(!n)throw new Error("播放地址不能为空");try{const a={play:n};r&&(a.apiUrl=r);const s=ca(i);s&&(a.extend=s);const l=await B3e(t,a);return{url:l.url||n,headers:l.headers||{},parse:l.parse||!1,jx:l.jx||""}}catch(a){throw console.error("获取播放地址失败:",a),a}}async parseVideoUrl(t,n,r={}){if(!t)throw new Error("解析器名称不能为空");if(!n)throw new Error("视频地址不能为空");try{const i=await nTt(t,{url:n,...r});return{url:i.url||n,type:i.type||"mp4",headers:i.headers||{},success:i.success!==!1}}catch(i){throw console.error("解析视频地址失败:",i),i}}async parseEpisodePlayUrl(t,n){if(!Tp(t))throw new Error("无效的模块名称");const{play:r,flag:i,apiUrl:a,extend:s}=n;if(!r)throw new Error("播放地址不能为空");try{console.log("VideoService: 开始解析选集播放地址",{module:t,params:n});const l={play:r,extend:ca(s)};i&&(l.flag=i),a&&(l.apiUrl=a);const c=await x6t(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!Tp(t))throw new Error("无效的模块名称");if(!n||n.trim().length===0)throw new Error("动作名称不能为空");try{const i={action:n.trim(),value:r.value||"",extend:ca(r.extend),apiUrl:r.apiUrl};console.log("执行T4 action:",{module:t,actionData:i});const a=await xS(t,i);return console.log("T4 action执行结果:",a),a}catch(i){throw console.error("T4 action执行失败:",i),i}}async refreshModuleData(t,n=null,r=null){if(!Tp(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const i=ca(n),a=await w6t(t,i,r);return{success:!0,message:a.msg||"刷新成功",lastUpdate:a.data?.lastUpdate||new Date().toISOString()}}catch(i){throw console.error("刷新模块数据失败:",i),i}}formatVideoInfo(t){const n=dct();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),t.vod_hits&&(n.vod_hits=parseInt(t.vod_hits)||0),t.vod_score&&(n.vod_score=parseFloat(t.vod_score)||0),n}parsePlayUrls(t,n){if(!t)return[];const r=n?n.split("$$$"):["默认"],i=t.split("$$$");return r.map((a,s)=>({from:a.trim(),urls:this.parseEpisodeUrls(i[s]||""),index:s}))}parseEpisodeUrls(t){return t?t.split("#").map((n,r)=>{const[i,a]=n.split("$");return{name:i||`第${r+1}集`,url:a||"",index:r}}).filter(n=>n.url):[]}createPagination(t,n=1){const r=fct();r.page=n;const i=t.total||t.recordcount||0,a=t.pagecount||t.totalPages||0,s=t.limit||t.pagesize||20,l=t.list||[];return r.total=i,r.pageSize=s,a>0?(r.totalPages=a,r.hasNext=n0?(r.totalPages=Math.ceil(i/s),r.hasNext=nd.vod_id==="no_data"||d.vod_name==="no_data"||typeof d=="string"&&d.includes("no_data"))||l.length===0?(r.hasNext=!1,r.totalPages=n):(r.hasNext=!0,r.totalPages=n+1),r.hasPrev=n>1,r}getFromCache(t){const n=this.cache.get(t);return n&&Date.now()-n.timestamp({})},visible:{type:Boolean,default:!1}},emits:["update:visible","update:selectedFilters","toggle-filter","reset-filters"],setup(e,{emit:t}){const n=e,r=t,i=F(()=>n.selectedFilters&&Object.keys(n.selectedFilters).length>0),a=(c,d)=>n.selectedFilters?.[c]===d,s=(c,d,h)=>{r("toggle-filter",{filterKey:c,filterValue:d,filterName:h})},l=()=>{r("reset-filters")};return(c,d)=>{const h=Te("a-button"),p=Te("a-tag");return e.filters?(z(),X("div",iTt,[$(Cs,{name:"collapse"},{default:fe(()=>[Ai(I("div",oTt,[I("div",sTt,[i.value?(z(),Ze(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:fe(()=>[$(rt(zc))]),_:1})):Ie("",!0)]),(z(!0),X(Pt,null,cn(e.filters,v=>(z(),X("div",{key:v.key,class:"filter-group"},[I("div",aTt,[I("div",lTt,Ne(v.name),1),I("div",uTt,[I("div",cTt,[(z(!0),X(Pt,null,cn(v.value,g=>(z(),Ze(p,{key:g.v,color:a(v.key,g.v)?"green":"",checkable:!0,checked:a(v.key,g.v),onCheck:y=>s(v.key,g.v,g.n),class:"filter-option-tag"},{default:fe(()=>[He(Ne(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[es,e.visible]])]),_:1})])):Ie("",!0)}}},fTt=cr(dTt,[["__scopeId","data-v-90bc92fe"]]),hTt={class:"category-nav-container"},pTt={key:0,class:"special-category-header"},vTt={class:"special-category-title"},mTt={class:"category-name"},gTt=["onClick"],yTt={class:"category-name"},bTt={__name:"CategoryNavigation",props:{classList:{type:Object,default:()=>({})},trigger:{type:String,default:"click"},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,default:""},filters:{type:Object,default:()=>({})},selectedFilters:{type:Object,default:()=>({})},filterVisible:{type:Object,default:()=>({})},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})}},emits:["tab-change","open-category-modal","toggle-filter","reset-filters","close-special-category","filter-visible-change"],setup(e,{emit:t}){const n=e,r=t,i=()=>n.hasRecommendVideos?"recommendTuijian404":n.classList?.class&&n.classList.class.length>0?n.classList.class[0].type_id:"recommendTuijian404",a=ue(n.activeKey||i()),s=ue(null);let l=null;const c=ue(!1);It(()=>[n.hasRecommendVideos,n.classList,n.activeKey],()=>{const C=n.activeKey||i();a.value!==C&&(a.value=C,n.activeKey||d(C))},{immediate:!0}),It(a,(C,x)=>{c.value&&x&&x!==C&&n.filterVisible[x]&&r("filter-visible-change",{categoryId:x,visible:!1})},{flush:"post"});const d=C=>{a.value=C,r("tab-change",C)},h=C=>{if(p(C)){const x=!n.filterVisible[C];r("filter-visible-change",{categoryId:C,visible:x})}},p=C=>{const x=n.filters[C];return x&&Object.keys(x).length>0},v=C=>n.filters[C]||null,g=C=>{r("toggle-filter",C)},y=()=>{r("reset-filters")},S=()=>{r("open-category-modal")},k=()=>{console.log("关闭特殊分类"),r("close-special-category")};return hn(()=>{const C=s.value;if(!C)return;const x=C.querySelector(".arco-tabs-nav-tab-list");x&&(l=E=>{Math.abs(E.deltaY)>Math.abs(E.deltaX)&&(x.scrollLeft+=E.deltaY,E.preventDefault())},x.addEventListener("wheel",l,{passive:!1}),setTimeout(()=>{c.value=!0},100))}),_o(()=>{const x=s.value?.querySelector?.(".arco-tabs-nav-tab-list");x&&l&&x.removeEventListener("wheel",l)}),(C,x)=>{const E=Te("a-tab-pane"),_=Te("a-tabs");return z(),X("div",hTt,[I("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[e.specialCategoryState.isActive?(z(),X("div",pTt,[I("div",vTt,[I("span",mTt,Ne(e.specialCategoryState.categoryData?.type_name||"特殊分类"),1),x[1]||(x[1]=I("span",{class:"category-type"},"(源内搜索)",-1))])])):(z(),Ze(_,{key:1,"active-key":a.value,"onUpdate:activeKey":x[0]||(x[0]=T=>a.value=T),type:"line",position:"top",editable:!1,onChange:d},{default:fe(()=>[e.hasRecommendVideos?(z(),Ze(E,{key:"recommendTuijian404"},{title:fe(()=>[...x[2]||(x[2]=[I("span",null,"推荐",-1)])]),_:1})):Ie("",!0),(z(!0),X(Pt,null,cn(e.classList?.class||[],T=>(z(),Ze(E,{key:T.type_id},{title:fe(()=>[I("div",{class:"category-tab-title",onClick:cs(D=>T.type_id===a.value&&p(T.type_id)?h(T.type_id):d(T.type_id),["stop"])},[I("span",yTt,Ne(T.type_name),1),T.type_id===a.value&&p(T.type_id)?(z(),Ze(rt(WH),{key:0,class:de(["filter-icon",{"filter-icon-active":e.filterVisible[T.type_id]}])},null,8,["class"])):Ie("",!0)],8,gTt)]),_:2},1024))),128))]),_:1},8,["active-key"])),e.specialCategoryState.isActive?(z(),X("div",{key:2,class:"special-category-close",onClick:k},[$(rt(fs)),x[3]||(x[3]=I("span",null,"返回",-1))])):(z(),X("div",{key:3,class:"category-manage",onClick:S},[$(rt(Wve))]))],512),v(a.value)&&n.filterVisible[a.value]?(z(),Ze(fTt,{key:0,filters:v(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:y},null,8,["filters","selectedFilters"])):Ie("",!0)])}}},_Tt=cr(bTt,[["__scopeId","data-v-9076ce57"]]);function RT(e){if(!e||typeof e!="string")return"icon-file";const t=e.toLowerCase().split(".").pop(),n={doc:"icon-file_word",docx:"icon-file_word",xls:"icon-file_excel",xlsx:"icon-file_excel",ppt:"icon-file_ppt",pptx:"icon-file_ppt",pdf:"icon-file_pdf",txt:"icon-file_txt",rtf:"icon-file_txt",md:"icon-file_txt"},r={jpg:"icon-file_img",jpeg:"icon-file_img",png:"icon-file_img",gif:"icon-file_img",bmp:"icon-file_img",svg:"icon-file_img",webp:"icon-file_img",ico:"icon-file_img"},i={mp4:"icon-file_video",avi:"icon-file_video",mkv:"icon-file_video",mov:"icon-file_video",wmv:"icon-file_video",flv:"icon-file_video",webm:"icon-file_video",m4v:"icon-file_video",rmvb:"icon-file_video",rm:"icon-file_video"},a={mp3:"icon-file_music",wav:"icon-file_music",flac:"icon-file_music",aac:"icon-file_music",ogg:"icon-file_music",wma:"icon-file_music",m4a:"icon-file_music"},s={zip:"icon-file_zip",rar:"icon-file_zip","7z":"icon-file_zip",tar:"icon-file_zip",gz:"icon-file_zip",bz2:"icon-file_zip"},l={exe:"icon-file_exe",msi:"icon-file_exe",dmg:"icon-file_exe",pkg:"icon-file_exe",deb:"icon-file_exe",rpm:"icon-file_exe"},c={html:"icon-file_html",htm:"icon-file_html",css:"icon-file_code",js:"icon-file_code",ts:"icon-file_code",vue:"icon-file_code",jsx:"icon-file_code",tsx:"icon-file_code",php:"icon-file_code",py:"icon-file_code",java:"icon-file_code",cpp:"icon-file_code",c:"icon-file_code",cs:"icon-file_code",go:"icon-file_code",rs:"icon-file_code",swift:"icon-file_code",kt:"icon-file_code",rb:"icon-file_code",json:"icon-file_code",xml:"icon-file_code",yaml:"icon-file_code",yml:"icon-file_code"},d={ai:"icon-file_ai",psd:"icon-file_psd",sketch:"icon-file_psd",fig:"icon-file_psd",xd:"icon-file_psd"},h={dwg:"icon-file_cad",dxf:"icon-file_cad",step:"icon-file_cad",iges:"icon-file_cad"},p={swf:"icon-file_flash",fla:"icon-file_flash"},v={iso:"icon-file_iso",img:"icon-file_iso",bin:"icon-file_iso"},g={torrent:"icon-file_bt"},y={cloud:"icon-file_cloud",gdoc:"icon-file_cloud",gsheet:"icon-file_cloud",gslides:"icon-file_cloud"};return n[t]?n[t]:r[t]?r[t]:i[t]?i[t]:a[t]?a[t]:s[t]?s[t]:l[t]?l[t]:c[t]?c[t]:d[t]?d[t]:h[t]?h[t]:p[t]?p[t]:v[t]?v[t]:g[t]?g[t]:y[t]?y[t]:"icon-file"}function jz(e){return e&&e.vod_tag&&e.vod_tag.includes("folder")}function Vz(e){return e&&e.vod_tag&&!e.vod_tag.includes("folder")}const STt=["onClick"],kTt={class:"video_list_item_img"},xTt={key:1,class:"folder-icon-container"},CTt={key:2,class:"file-icon-container"},wTt={style:{width:"30%"}},ETt=["href"],TTt=["innerHTML"],ATt={class:"video_list_item_title"},ITt={class:"title-text"},LTt={key:0,class:"loading-container"},DTt={key:1,class:"no-more-data"},PTt={key:2,class:"empty-state"},RTt=1e3,MTt=5,$Tt={__name:"VideoGrid",props:{videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},statsText:{type:String,default:""},showStats:{type:Boolean,default:!1},sourceRoute:{type:Object,default:()=>({})},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""},folderState:{type:Object,default:null}},emits:["load-more","scroll-bottom","refresh-list","special-action","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=ma(),s=hS(),l=ue(null),c=ue(null);let d=600;const h=ue(0);let p=0,v=!1,g=null;const y=F(()=>(h.value,{height:d+"px",overflow:"auto"})),S=()=>{v||L||(v=!0,dn(()=>{try{const q=l.value;if(!q)return;const Q=q.querySelector(".arco-scrollbar-container");if(!Q)return;p=Q.scrollHeight;const se=Q.clientHeight,ae=window.innerHeight||document.documentElement.clientHeight||600,re=Math.max(ae-200,400);if(p<=se&&r.videos&&r.videos.length>0)if(r.hasMore!==!1){const Ve=Math.min(670,p-10);Ve>470&&d>Ve?(d=Ve,h.value++,console.log("[DEBUG] 调整容器高度以产生滚动条:",{contentHeight:p,clientHeight:se,newContainerHeight:d}),g&&clearTimeout(g),g=setTimeout(()=>{k()},100)):(console.log("[DEBUG] 容器已达最小高度,直接触发加载更多"),k())}else console.log("[DEBUG] 没有更多数据可加载,保持当前状态");else p>se&&d=re*.8&&(d=re,h.value++,console.log("[DEBUG] 恢复容器高度到理想高度:",{contentHeight:p,clientHeight:se,idealHeight:re,newContainerHeight:d}))}catch(q){console.error("checkContentHeight error:",q)}finally{v=!1}}))},k=()=>{if(!(L||B>=j))try{const q=l.value;if(!q)return;const Q=q.querySelector(".arco-scrollbar-container");if(!Q)return;const se=Q.scrollHeight,ae=Q.clientHeight;se<=ae&&r.videos&&r.videos.length>0&&(console.log("[DEBUG] 自动触发加载更多数据 - 内容高度不足"),i("load-more"))}catch(q){console.error("checkAutoLoadMore error:",q)}};let C=0,x=0;const E=()=>{if(L)return;const q=Date.now();if(!(q-C6e4&&(x=0),x>=MTt){console.warn("[VideoGrid] 高度恢复操作过于频繁,已暂停");return}try{const Q=l.value;if(!Q)return;const se=Q.querySelector(".arco-scrollbar-container");if(!se)return;const ae=se.scrollHeight,re=se.clientHeight,Ce=window.innerHeight||document.documentElement.clientHeight||600,Ve=Math.max(Ce-200,400);if(ae>Ve*.8&&d{L||(h.value++,x++,C=q,console.log("[DEBUG] 主动恢复容器高度:",{contentHeight:ae,clientHeight:re,idealHeight:Ve,oldContainerHeight:ge,newContainerHeight:Ve,restoreCount:x}))})}}catch(Q){console.error("checkHeightRestore error:",Q)}}},_=ue(null),T=ue(!1),D=ue(null),P=async q=>{if(q&&q.vod_id){if(q.vod_tag&&q.vod_tag.includes("folder")){i("folder-navigate",{vod_id:q.vod_id,vod_name:q.vod_name,vod_tag:q.vod_tag});return}if(q.vod_tag==="action")try{const se=JSON.parse(q.vod_id);D.value=se,T.value=!0;return}catch{await M(q.vod_id);return}s.setLastClicked(q.vod_id,q.vod_name);const Q={name:q.vod_name,pic:q.vod_pic,year:q.vod_year,area:q.vod_area,type:q.vod_type,remarks:q.vod_remarks,content:q.vod_content,actor:q.vod_actor,director:q.vod_director,sourceRouteName:r.sourceRoute?.name||"",sourceRouteParams:JSON.stringify(r.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(r.sourceRoute?.query||{}),sourcePic:q.vod_pic};r.folderState&&r.folderState.isActive&&(Q.folderState=JSON.stringify(r.folderState)),a.push({name:"VideoDetail",params:{id:q.vod_id},query:Q})}},M=async q=>{try{const Q=await Ka.executeT4Action(r.module||"default",q,{apiUrl:r.apiUrl,extend:r.extend.ext});Q&&Q.action?(D.value=Q.action,T.value=!0):Q?Hn(Q,"success"):yt.error({content:`无法获取动作配置: ${q}`,duration:3e3,closable:!0})}catch(Q){console.error("T4 action执行失败:",Q),yt.error({content:`动作执行失败: ${Q.message}`,duration:3e3,closable:!0})}},O=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);let L=!1,B=0;const j=O?3:5;setInterval(()=>{B=0},1e3);const H=()=>{if(!(L||B>=j)){B++,L=!0;try{if(!l.value)return;const Q=window.innerHeight||document.documentElement.clientHeight||600,se=Math.max(Q-200,400);Math.abs(d-se)>50&&(d=se,h.value++)}catch(q){console.error("updateScrollAreaHeight error:",q)}finally{setTimeout(()=>{L=!1},100)}}},U=q=>{const Q=q?.target||q?.srcElement,se=Q?.closest?Q.closest(".arco-scrollbar-container"):Q;if(!se)return;const ae=se.scrollHeight-se.clientHeight,re=se.scrollTop;ae-re<50&&(i("scroll-bottom"),i("load-more"),setTimeout(()=>{E()},200))},K=()=>{if(!(L||B>=j))try{const q=document.querySelectorAll(".title-text");q&&q.length>0&&q.forEach(Q=>{Q&&Q.scrollWidth&&Q.clientWidth&&Q.scrollWidth>Q.clientWidth&&Q.setAttribute("title",Q.textContent||"")})}catch(q){console.error("checkTextOverflow error:",q)}};hn(()=>{if(l.value){const q=window.innerHeight||document.documentElement.clientHeight||600;d=Math.max(q-200,400),h.value++,setTimeout(()=>{try{if(l.value){const ae=Math.max(window.innerHeight-200,400);Math.abs(d-ae)>50&&(d=ae,h.value++),setTimeout(()=>{S()},1e3)}}catch(ae){console.warn("Initial update failed:",ae)}},O?500:300)}});{let q=null,Q=0;const se=()=>{const ae=Date.now();ae-Q<1e3||(Q=ae,q&&clearTimeout(q),q=setTimeout(()=>{!L&&l.value&&H()},800))};window.addEventListener("resize",se),_o(()=>{window.removeEventListener("resize",se),q&&clearTimeout(q)})}_o(()=>{window.removeEventListener("resize",H),g&&clearTimeout(g),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),It([()=>r.videos,()=>r.showStats],([q,Q])=>{},{deep:!1,flush:"post"});const Y=q=>{q&&c.value&&requestAnimationFrame(()=>{const Q=c.value?.$el?.querySelector(".arco-scrollbar-container");Q&&Q.scrollTo({top:q,behavior:"smooth"})})},ie=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,te=()=>{T.value=!1,D.value=null},W=(q,Q)=>{i("special-action",q,Q),T.value=!1,D.value=null};return t({checkTextOverflow:K,restoreScrollPosition:Y,getCurrentScrollPosition:ie,checkContentHeight:S,checkAutoLoadMore:k}),(q,Q)=>{const se=Te("a-image"),ae=Te("a-grid-item"),re=Te("a-grid"),Ce=Te("a-spin"),Ve=Te("a-scrollbar");return z(),X("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[$(Ve,{onScroll:U,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:Ye(y.value)},{default:fe(()=>[$(re,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:fe(()=>[(z(!0),X(Pt,null,cn(e.videos,(ge,xe)=>(z(),Ze(ae,{key:`${ge.vod_id}_${xe}_${ge.vod_name||""}`,class:"video_list_hover"},{default:fe(()=>[I("div",{class:"video_list_item",onClick:Ge=>P(ge)},[I("div",kTt,[ge.vod_pic&&ge.vod_pic.trim()!==""?(z(),Ze(se,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ge.vod_pic},null,8,["src"])):ge.vod_tag&&ge.vod_tag.includes("folder")?(z(),X("div",xTt,[...Q[0]||(Q[0]=[I("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):ge.vod_tag&&!ge.vod_tag.includes("folder")?(z(),X("div",CTt,[(z(),X("svg",wTt,[I("use",{href:`#${rt(RT)(ge.vod_name)}`},null,8,ETt)]))])):(z(),Ze(se,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ge.vod_pic||"/default-poster.svg"},null,8,["src"])),ge.vod_remarks?(z(),X("div",{key:4,class:"video_remarks_overlay",innerHTML:ge.vod_remarks},null,8,TTt)):Ie("",!0)]),I("div",ATt,[I("span",ITt,Ne(ge.vod_name),1)])],8,STt)]),_:2},1024))),128))]),_:1}),e.loading?(z(),X("div",LTt,[$(Ce),Q[1]||(Q[1]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),X("div",DTt," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(z(),X("div",PTt," 暂无视频数据 ")):Ie("",!0),Q[2]||(Q[2]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),T.value?(z(),Ze(lg,{key:0,ref_key:"actionRendererRef",ref:_,"action-data":D.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:te,onSpecialAction:W},null,8,["action-data","module","extend","api-url"])):Ie("",!0)],512)}}},V4=cr($Tt,[["__scopeId","data-v-eac41610"]]),OTt={class:"category-modal-content"},BTt=["onClick"],NTt={__name:"CategoryModal",props:{visible:{type:Boolean,default:!1},classList:{type:Object,required:!0},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,required:!0}},emits:["update:visible","select-category"],setup(e,{emit:t}){const n=t,r=()=>{n("update:visible",!1)},i=a=>{n("select-category",a),r()};return(a,s)=>{const l=Te("a-modal");return z(),Ze(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:fe(()=>[I("div",OTt,[e.hasRecommendVideos?(z(),X("div",{key:0,class:de(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>i("recommendTuijian404"))}," 推荐 ",2)):Ie("",!0),(z(!0),X(Pt,null,cn(e.classList.class,c=>(z(),X("div",{key:c.type_id,class:de(["category-item",{active:e.activeKey===c.type_id}]),onClick:d=>i(c.type_id)},Ne(c.type_name),11,BTt))),128))])]),_:1},8,["visible"])}}},FTt=cr(NTt,[["__scopeId","data-v-14f43b3d"]]),jTt={key:0,class:"folder-breadcrumb"},VTt={class:"breadcrumb-container"},zTt={key:0,class:"current-item"},UTt=["onClick"],HTt={class:"breadcrumb-actions"},WTt={__name:"FolderBreadcrumb",props:{breadcrumbs:{type:Array,default:()=>[]}},emits:["navigate","go-back","go-home","exit-folder"],setup(e,{emit:t}){const n=e,r=t,i=(c,d)=>{console.log("🗂️ [DEBUG] 面包屑点击:",c,d),r("navigate",c,d)},a=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs.length-2,d=n.breadcrumbs[c];console.log("🗂️ [DEBUG] 返回上级:",d),r("go-back",d,c)}},s=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs[0];console.log("🗂️ [DEBUG] 返回根目录:",c),r("go-home",c,0)}},l=()=>{console.log("🗂️ [DEBUG] 退出Folder模式"),r("exit-folder")};return(c,d)=>{const h=Te("a-breadcrumb-item"),p=Te("a-breadcrumb"),v=Te("a-button");return e.breadcrumbs.length>0?(z(),X("div",jTt,[I("div",VTt,[$(p,{separator:">"},{default:fe(()=>[(z(!0),X(Pt,null,cn(e.breadcrumbs,(g,y)=>(z(),Ze(h,{key:g.vod_id,class:de(["breadcrumb-item",{"is-current":y===e.breadcrumbs.length-1}])},{default:fe(()=>[y===e.breadcrumbs.length-1?(z(),X("span",zTt,Ne(g.vod_name),1)):(z(),X("a",{key:1,onClick:S=>i(g,y),class:"breadcrumb-link"},Ne(g.vod_name),9,UTt))]),_:2},1032,["class"]))),128))]),_:1})]),I("div",HTt,[$(v,{size:"small",type:"text",onClick:a,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[d[0]||(d[0]=He(" 返回上级 ",-1))]),_:1},8,["disabled"]),e.breadcrumbs.length>1?(z(),Ze(v,{key:0,size:"small",type:"text",onClick:s,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:fe(()=>[$(rt(h3))]),default:fe(()=>[d[1]||(d[1]=He(" 返回根目录 ",-1))]),_:1},8,["disabled"])):Ie("",!0),$(v,{size:"small",type:"primary",onClick:l,class:"action-btn exit-btn"},{icon:fe(()=>[$(rt(fs))]),default:fe(()=>[d[2]||(d[2]=He(" 退出目录模式 ",-1))]),_:1})])])):Ie("",!0)}}},GTt=cr(WTt,[["__scopeId","data-v-670af4b8"]]),KTt={class:"video-list-container"},qTt={class:"content-area"},YTt={key:0,class:"tab-content"},XTt={key:1,class:"tab-content"},ZTt={key:0,class:"category-loading-container"},JTt={key:2,class:"tab-content"},QTt={key:0,class:"category-loading-container"},e5t={key:3,class:"tab-content"},t5t={key:0,class:"category-loading-container"},n5t=300,r5t={__name:"VideoList",props:{classList:Object,recommendVideos:{type:Array,default:()=>[]},trigger:{type:String,default:"click"},sourceRoute:{type:Object,default:()=>({})},returnToActiveKey:{type:String,default:""},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})},folderNavigationState:{type:Object,default:()=>({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1})}},emits:["activeKeyChange","special-action","close-special-category","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=ma(),s=m3();let l=null;const c=ue(!1);let d="",h=0;const p=(Fe,Me=100)=>{Fe===d||Date.now()-h<200||(l&&clearTimeout(l),l=setTimeout(()=>{if(!c.value){c.value=!0,d=Fe,h=Date.now();try{s.updateStats(Fe)}catch(We){console.error("更新统计信息失败:",We)}finally{c.value=!1}}},Me))},v=ue(""),g=qt({}),y=qt({}),S=qt({}),k=qt({}),C=qt({}),x=qt({}),E=ue(!1),_=ue(null),T=()=>{const Fe={...a.currentRoute.value.query};Object.keys(x).length>0?Fe.filters=JSON.stringify(x):delete Fe.filters,Object.keys(C).length>0?Fe.filterVisible=JSON.stringify(C):delete Fe.filterVisible,a.replace({query:Fe}).catch(()=>{})},D=()=>{const Fe=a.currentRoute.value.query.filters,Me=a.currentRoute.value.query.filterVisible;if(Fe)try{const Ee=JSON.parse(Fe);Object.keys(x).forEach(We=>{delete x[We]}),Object.assign(x,Ee)}catch(Ee){console.error("解析URL中的筛选条件失败:",Ee)}if(Me)try{const Ee=JSON.parse(Me);Object.keys(C).forEach(We=>{delete C[We]}),Object.assign(C,Ee)}catch(Ee){console.error("解析URL中的筛选展开状态失败:",Ee)}},P=qt({}),M=qt({});let O=null;const L=Fe=>{O&&clearTimeout(O),O=setTimeout(Fe,n5t)},B=F(()=>r.recommendVideos&&r.recommendVideos.length>0),j=F(()=>r.folderNavigationState?.isActive||!1),H=F(()=>r.folderNavigationState?.breadcrumbs||[]),U=F(()=>r.folderNavigationState?.currentData||[]),K=F(()=>r.folderNavigationState?.currentBreadcrumb||null),Y=F(()=>{const Fe=K.value?.vod_id;return r.folderNavigationState?.loading||M[Fe]||!1}),ie=F(()=>{const Fe=K.value?.vod_id;return P[Fe]?.hasNext||!1}),te=F(()=>ae({isActive:j.value,currentBreadcrumb:K.value,currentData:U.value})),W=()=>r.returnToActiveKey?r.returnToActiveKey:B.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",q=(Fe,Me,Ee)=>{x[v.value]||(x[v.value]={}),x[v.value][Fe]===Me?(delete x[v.value][Fe],Object.keys(x[v.value]).length===0&&delete x[v.value]):x[v.value][Fe]=Me,T(),j.value&&K.value?Rt(K.value):se(v.value)},Q=Fe=>{delete x[Fe],T(),j.value&&K.value?Rt(K.value):se(Fe)},se=Fe=>{delete g[Fe],delete y[Fe],S[Fe]=!1,v.value===Fe&&re(Fe,!0)},ae=(Fe,Me=null)=>{const Ee=r.classList?.class?.find(Le=>Le.type_id===Fe)?.type_name||"",We=y[Fe]?.page||1,$e=g[Fe]?.length||0,dt=y[Fe]?.total;let Qe=`${Ee}:当前第 ${We} 页,已加载 ${$e} 条`;if(dt&&(Qe+=` / 共 ${dt} 条`),Me&&Me.isActive&&Me.currentBreadcrumb){const Le=Me.currentBreadcrumb.vod_name||"未知目录",ht=Me.currentData?.length||0;Qe+=`,当前目录:${Le},项目数:${ht}`}return Qe},re=async(Fe,Me=!1)=>{if(console.log(Fe,"选中分类id"),k[Fe]&&!Me){console.log(`分类 ${Fe} 正在加载中,跳过重复请求`);return}if(console.log("listData.hasOwnProperty(key):",g.hasOwnProperty(Fe)),console.log("forceReload:",Me),console.log("listData keys:",Object.keys(g)),console.log("listData[key]:",g[Fe]),console.log("listData[key] length:",g[Fe]?.length),!g.hasOwnProperty(Fe)||Me){k[Fe]=!0;try{const Ee=await Zo.getCurrentSite();let We,$e;if(Fe==="recommendTuijian404")console.log("recommendTuijian404 recommendVideos:",r.recommendVideos),We=r.recommendVideos||[],$e={page:1,hasNext:!1};else{const dt=x[Fe]||{},Qe=await Ka.getCategoryVideos(Ee.key,{typeId:Fe,page:1,filters:dt,extend:Ee.ext,apiUrl:Ee.api});We=Qe.videos||[],$e=Qe.pagination||{page:1,hasNext:!1},We.length>100&&(console.log(`检测到大数据集,分类 ${Fe} 包含 ${We.length} 条数据`),We.length>200&&console.warn(`超大数据集警告:分类 ${Fe} 包含 ${We.length} 条数据,可能影响性能`))}if(g[Fe]=[...We],y[Fe]=$e,S[Fe]=!1,Fe===v.value){const dt=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:U.value}:null;p(ae(Fe,dt))}}catch(Ee){console.error("获取视频列表失败:",Ee),g[Fe]=[],y[Fe]={page:1,hasNext:!1},S[Fe]=!1}finally{k[Fe]=!1}}},Ce=Fe=>!Fe||Fe.length===0?!0:Fe.some(Me=>Me.vod_id==="no_data"),Ve=(Fe,Me)=>{if(!Me||Me.length===0)return!0;if(!Fe||Fe.length===0)return!1;const Ee=Fe.slice(-Me.length).map($e=>$e.vod_id),We=Me.map($e=>$e.vod_id);return JSON.stringify(Ee)===JSON.stringify(We)},ge=async Fe=>{if(!(S[Fe]||!y[Fe]?.hasNext)){S[Fe]=!0;try{const Me=await Zo.getCurrentSite(),Ee=y[Fe].page+1;let We=[],$e={page:Ee,hasNext:!1};if(Fe==="recommendTuijian404")return;{const dt=x[Fe]||{},Qe=await Ka.getCategoryVideos(Me.key,{typeId:Fe,page:Ee,filters:dt,extend:Me.ext,apiUrl:Me.api});We=Qe.videos||[],$e=Qe.pagination||{page:Ee,hasNext:!1}}if(Ce(We)||Ve(g[Fe],We)){console.log("检测到无效数据或重复数据,停止翻页"),y[Fe]={...y[Fe],hasNext:!1};return}if(g[Fe]=[...g[Fe],...We],y[Fe]=$e,Fe===v.value){const dt=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:U.value}:null;p(ae(Fe,dt))}}catch(Me){console.error("加载更多数据失败:",Me),y[Fe]={...y[Fe],hasNext:!1}}finally{S[Fe]=!1}}},xe=async Fe=>{if(!(M[Fe]||!P[Fe]?.hasNext)){M[Fe]=!0;try{const Me=P[Fe].page+1,Ee=await Z1(r.module,{t:Fe,pg:Me,extend:ca(r.extend),apiUrl:r.apiUrl});if(Ee&&Ee.list&&Ee.list.length>0){const We=Ee.list;if(Ce(We)||Ve(U.value,We)){console.log("目录翻页检测到无效数据或重复数据,停止翻页"),P[Fe]={...P[Fe],hasNext:!1};return}const $e=[...U.value,...We],dt={isActive:j.value,breadcrumbs:H.value,currentBreadcrumb:K.value,currentData:$e,loading:!1,hasMore:!0};if(P[Fe]={page:Me,hasNext:Ee.page{j.value&&rn(),v.value=Fe,re(Fe),i("activeKeyChange",Fe)},tt=Fe=>{const{filterKey:Me,filterValue:Ee,filterName:We}=Fe;q(Me,Ee)},Ue=Fe=>{const{categoryId:Me,visible:Ee}=Fe;C[Me]=Ee,T()},_e=()=>{Q(v.value)},ve=()=>{E.value=!0},me=Fe=>{v.value=Fe,re(Fe),i("activeKeyChange",Fe);const Me=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:U.value}:null;p(ae(Fe,Me),100)};It(()=>r.recommendVideos,Fe=>{console.log("[VideoList] recommendVideos watch triggered:",Fe?.length),Fe&&Fe.length>0?(g.recommendTuijian404=[...Fe],y.recommendTuijian404={page:1,hasNext:!1},S.recommendTuijian404=!1,k.recommendTuijian404=!1,console.log("推荐数据已更新:",Fe.length,"条")):(g.recommendTuijian404=[],y.recommendTuijian404={page:1,hasNext:!1},S.recommendTuijian404=!1,k.recommendTuijian404=!1),v.value==="recommendTuijian404"&&(console.log("[VideoList] 当前是推荐分类,强制更新界面"),v.value="recommendTuijian404")},{immediate:!0});let Oe=!1,qe="";const Ke=Fe=>!Fe||!Fe.class?"":JSON.stringify(Fe.class.map(Me=>Me.type_id||Me.id||""));It(()=>r.classList,(Fe,Me)=>{if(Oe)return;const Ee=Ke(Fe);if(Ee!==qe){console.log("🗂️ [DEBUG] ========== VideoList classList watch 触发 =========="),console.log("🗂️ [DEBUG] oldClassList:",Me),console.log("🗂️ [DEBUG] newClassList:",Fe),console.log("🗂️ [DEBUG] classList是否发生变化:",Fe!==Me),console.log("🗂️ [DEBUG] 当前activeKey.value:",v.value),console.log("🗂️ [DEBUG] 当前folderIsActive.value:",j.value),console.log("🗂️ [DEBUG] 当前folderNavigationState:",JSON.stringify(r.folderNavigationState,null,2)),Oe=!0,qe=Ee;try{const We=a.currentRoute.value.query,$e=We.filters||We.filterVisible;if(Fe!==Me&&!$e?(console.log("🗂️ [DEBUG] classList发生变化且URL中无筛选参数,清除筛选状态"),Object.keys(x).forEach(Qe=>{delete x[Qe]}),Object.keys(C).forEach(Qe=>{delete C[Qe]}),console.log("🗂️ [DEBUG] 筛选状态已清除")):$e&&console.log("🗂️ [DEBUG] URL中有筛选参数,跳过筛选状态清除"),j.value){console.log("🗂️ [DEBUG] 当前处于folder模式,跳过activeKey重置");return}const dt=W();v.value!==dt&&(v.value=dt,re(dt),i("activeKeyChange",dt))}catch(We){console.error("classList watch处理失败:",We)}finally{dn(()=>{Oe=!1})}}},{immediate:!0}),It(()=>r.folderNavigationState,(Fe,Me)=>{},{deep:!0,immediate:!0}),It(()=>r.sourceRoute?.query?.activeKey,Fe=>{Fe&&Fe!==v.value&&(console.log("[DEBUG] sourceRoute activeKey changed:",Fe,"current:",v.value),v.value=Fe,(!g[Fe]||g[Fe].length===0)&&(console.log("[DEBUG] 重新加载分类数据:",Fe),re(Fe)),i("activeKeyChange",Fe))},{immediate:!0}),hn(async()=>{D();const Fe=r.sourceRoute?.query?.activeKey,Me=Fe||W();await dn(),v.value=Me,await dn(),D(),Me==="recommendTuijian404"?(k[Me]=!1,r.recommendVideos&&r.recommendVideos.length>0?(g[Me]=[...r.recommendVideos],y[Me]={page:1,hasNext:!1},S[Me]=!1):re(v.value)):re(v.value),Fe||i("activeKeyChange",v.value)}),_o(()=>{l&&clearTimeout(l)}),t({getCurrentState:()=>({activeKey:v.value,currentPage:y[v.value]?.page||1,videos:g[v.value]||[],hasMore:y[v.value]?.hasNext||!1,hasData:g[v.value]&&g[v.value].length>0,scrollPosition:_.value?_.value.getCurrentScrollPosition():0}),restoreState:Fe=>{Fe.activeKey&&Fe.activeKey!==v.value&&(v.value=Fe.activeKey,i("activeKeyChange",Fe.activeKey),(!g[Fe.activeKey]||g[Fe.activeKey].length===0)&&re(Fe.activeKey))},restoreFullState:Fe=>{if(Fe.activeKey){v.value=Fe.activeKey,Fe.videos&&Fe.videos.length>0?(g[Fe.activeKey]=[...Fe.videos],y[Fe.activeKey]={page:Fe.currentPage||1,hasNext:Fe.hasMore||!1},console.log(`恢复分类 ${Fe.activeKey} 的完整状态:`,{videos:Fe.videos.length,page:Fe.currentPage,hasMore:Fe.hasMore,scrollPosition:Fe.scrollPosition}),Fe.scrollPosition&&_.value&&setTimeout(()=>{_.value.restoreScrollPosition(Fe.scrollPosition)},200)):(console.log(`分类 ${Fe.activeKey} 没有保存的数据,重新加载`),re(Fe.activeKey)),i("activeKeyChange",Fe.activeKey);const Me=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:U.value}:null;p(ae(Fe.activeKey,Me),100)}},refreshCurrentCategory:()=>{v.value&&(console.log("刷新当前分类:",v.value),g[v.value]=[],y[v.value]={page:1,hasNext:!0},S[v.value]=!1,re(v.value))},setSpecialCategoryData:(Fe,Me,Ee)=>{console.log("设置特殊分类数据:",{categoryId:Fe,videosCount:Me?.length,pagination:Ee}),g[Fe]=Me||[],y[Fe]={page:Ee?.page||1,hasNext:Ee?.hasNext||!1,total:Ee?.total||0},S[Fe]=!1;const We=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:U.value}:null;p(ae(Fe,We),100)}});const at=async Fe=>{L(async()=>{await ft(Fe)})},ft=async Fe=>{let Me=[];try{const Ee=j.value?H.value:[],We=Ee.findIndex(ht=>ht.vod_id===Fe.vod_id);We>=0?Me=Ee.slice(0,We+1):Me=[...Ee,{vod_id:Fe.vod_id,vod_name:Fe.vod_name}];const $e={isActive:!0,breadcrumbs:Me,currentData:[],currentBreadcrumb:{vod_id:Fe.vod_id,vod_name:Fe.vod_name},loading:!0};i("folder-navigate",$e),console.log("props.extend:",r.extend),console.log("processExtendParam(props.extend):",ca(r.extend));const dt=x[v.value]||{};console.log("🗂️ [DEBUG] 目录模式应用筛选条件:",dt);const Qe={t:Fe.vod_id,pg:1,extend:ca(r.extend),apiUrl:r.apiUrl};Object.keys(dt).length>0&&console.log("🗂️ [DEBUG] 目录模式编码后的筛选条件:",Qe.ext);const Le=await Z1(r.module,Qe);if(Le&&Le.list&&Le.list.length>0){const ht=Le.list;P[Fe.vod_id]={page:Le.page||1,hasNext:Le.page{const Ee=Fe;if(!Ee||!Ee.vod_id){console.error("handleFolderNavigate: 无效的breadcrumb参数",Ee);return}if(console.log("🗂️ [DEBUG] handleFolderNavigate 接收参数:",{breadcrumb:Ee,index:Me}),ct){console.log("folder导航正在进行中,跳过重复调用");return}const We=Date.now();if(We-Ct<300&&console.log("folder导航过于频繁,跳过"),wt===Ee.vod_id&&We-Ct<1e3){console.log("短时间内相同的folder导航目标,跳过重复处理");return}ct=!0,wt=Ee.vod_id,Ct=We;try{const $e=H.value,dt=$e.findIndex(Lt=>Lt.vod_id===Ee.vod_id),Qe=dt>=0?$e.slice(0,dt+1):$e,Le={isActive:j.value,breadcrumbs:Qe,currentBreadcrumb:Ee,currentData:U.value,loading:!0,hasMore:ie.value};i("folder-navigate",Le);const ht=x[v.value]||{},Vt={t:Ee.vod_id,pg:1,extend:ca(r.extend),apiUrl:r.apiUrl};Object.keys(ht).length>0;const Ut=await Z1(r.module,Vt);if(Ut&&Ut.list&&Ut.list.length>0){const Lt=Ut.list;if(P[Ee.vod_id]={page:Ut.page||1,hasNext:Ut.page{if(console.log("🗂️ [DEBUG] 返回上一级folder",{parentItem:Fe,parentIndex:Me}),Fe&&Fe.vod_id){Rt(Fe,Me);return}const Ee=H.value;if(Ee.length>1){const We=Ee.slice(0,-1),$e=We[We.length-1];Rt($e)}else Jt()},Jt=async(Fe,Me)=>{if(console.log("🗂️ [DEBUG] 返回folder根目录",{rootItem:Fe,rootIndex:Me}),Fe&&Fe.vod_id){Rt(Fe,Me);return}const Ee=H.value;if(Ee.length>0){const We=Ee[0];i("folder-navigate",{isActive:!0,breadcrumbs:[We],currentData:[],currentBreadcrumb:We,loading:!0});try{const dt=x[v.value]||{};console.log("🗂️ [DEBUG] 返回根目录,应用筛选条件:",dt);const Qe={t:We.vod_id,pg:1,extend:ca(r.extend),apiUrl:r.apiUrl};Object.keys(dt).length>0;const Le=await Z1(r.module,Qe);if(Le&&Le.list&&Le.list.length>0){const ht=Le.list;P[We.vod_id]={page:Le.page||1,hasNext:Le.page{if(i("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),v.value&&g[v.value]){const Me=ae(v.value,null);p(Me)}},vt=()=>{v.value&&(g[v.value]=[],y[v.value]={page:1,hasNext:!0},S[v.value]=!1,re(v.value))};return(Fe,Me)=>{const Ee=Te("a-spin");return z(),X("div",KTt,[$(_Tt,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:B.value,activeKey:v.value,filters:r.classList?.filters||{},selectedFilters:x,filterVisible:C,specialCategoryState:r.specialCategoryState,onTabChange:Ge,onOpenCategoryModal:ve,onToggleFilter:tt,onResetFilters:_e,onFilterVisibleChange:Ue,onCloseSpecialCategory:Me[0]||(Me[0]=()=>i("close-special-category"))},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters","filterVisible","specialCategoryState"]),j.value?(z(),Ze(GTt,{key:0,breadcrumbs:H.value,onNavigate:Rt,onGoBack:Ht,onGoHome:Jt,onExitFolder:rn},null,8,["breadcrumbs"])):Ie("",!0),I("div",qTt,[j.value?(z(),X("div",YTt,[$(V4,{videos:U.value,loading:Y.value,hasMore:ie.value,statsText:te.value,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,folderState:e.folderNavigationState,onLoadMore:Me[1]||(Me[1]=We=>xe(K.value?.vod_id)),onScrollBottom:Me[2]||(Me[2]=We=>xe(K.value?.vod_id)),onRefreshList:vt,onSpecialAction:Me[3]||(Me[3]=(We,$e)=>i("special-action",We,$e)),onFolderNavigate:at},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url","folderState"])])):e.specialCategoryState.isActive?(z(),X("div",XTt,[k[e.specialCategoryState.categoryData?.type_id]?(z(),X("div",ZTt,[$(Ee,{size:24}),Me[12]||(Me[12]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),Ze(V4,{key:1,videos:g[e.specialCategoryState.categoryData?.type_id]||[],loading:S[e.specialCategoryState.categoryData?.type_id]||!1,hasMore:y[e.specialCategoryState.categoryData?.type_id]?.hasNext||!1,statsText:`${e.specialCategoryState.categoryData?.type_name||"特殊分类"}:共 ${g[e.specialCategoryState.categoryData?.type_id]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:Me[4]||(Me[4]=We=>ge(e.specialCategoryState.categoryData?.type_id)),onScrollBottom:Me[5]||(Me[5]=We=>ge(e.specialCategoryState.categoryData?.type_id)),onRefreshList:vt,onSpecialAction:Me[6]||(Me[6]=(We,$e)=>i("special-action",We,$e)),onFolderNavigate:at},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"]))])):v.value==="recommendTuijian404"?(z(),X("div",JTt,[k[v.value]?(z(),X("div",QTt,[$(Ee,{size:24}),Me[13]||(Me[13]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):Ie("",!0),k[v.value]?Ie("",!0):(z(),Ze(V4,{key:1,videos:g[v.value]||[],loading:S[v.value]||!1,hasMore:!1,statsText:`推荐视频:共 ${g[v.value]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onRefreshList:vt,onSpecialAction:Me[7]||(Me[7]=(We,$e)=>i("special-action",We,$e))},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"]))])):(z(),X("div",e5t,[k[v.value]?(z(),X("div",t5t,[$(Ee,{size:24}),Me[14]||(Me[14]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),Ze(V4,{key:1,ref_key:"videoGridRef",ref:_,videos:g[v.value]||[],loading:S[v.value]||!1,hasMore:y[v.value]?.hasNext||!1,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:Me[8]||(Me[8]=We=>ge(v.value)),onScrollBottom:Me[9]||(Me[9]=We=>ge(v.value)),onRefreshList:vt,onSpecialAction:Me[10]||(Me[10]=(We,$e)=>i("special-action",We,$e)),onFolderNavigate:at},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"]))]))]),$(FTt,{visible:E.value,"onUpdate:visible":Me[11]||(Me[11]=We=>E.value=We),classList:e.classList,hasRecommendVideos:B.value,activeKey:v.value,onSelectCategory:me},null,8,["visible","classList","hasRecommendVideos","activeKey"])])}}},i5t=cr(r5t,[["__scopeId","data-v-1180b6ff"]]),o5t={class:"search-grid-container"},s5t={key:0,class:"error-state"},a5t={key:1,class:"loading-state"},l5t={key:2,class:"search-scroll-container"},u5t=["onClick","onMouseenter"],c5t=["src","alt"],d5t={key:3,class:"action-badge"},f5t={key:4,class:"play-overlay"},h5t={class:"video_list_item_title"},p5t={class:"title-text"},v5t={key:0,class:"video-desc"},m5t={class:"video-meta"},g5t={key:0,class:"video-note"},y5t={key:1,class:"video-year"},b5t={key:2,class:"video-area"},_5t={key:0,class:"load-more-container"},S5t={key:1,class:"no-more-data"},k5t={key:3,class:"empty-state"},x5t={__name:"SearchVideoGrid",props:{videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},error:{type:String,default:""},hasMore:{type:Boolean,default:!0},variant:{type:String,default:"search-results",validator:e=>["search-results","aggregation"].includes(e)},scrollHeight:{type:String,default:"600px"},gridPadding:{type:String,default:"2px 20px 2px 16px"},defaultPoster:{type:String,default:"/default-poster.jpg"}},emits:["video-click","load-more","retry","scroll","mouse-enter","mouse-leave"],setup(e,{expose:t,emit:n}){const r=ue(null),i=e,a=n,s=F(()=>i.variant==="search-results"?"video_list_item":"video-card-item"),l=F(()=>i.variant==="search-results"?"video_list_hover":"video-card"),c=F(()=>i.variant==="search-results"?"video_list_item_img":"video-poster"),d=F(()=>i.variant==="search-results"?"":"video-poster-img"),h=F(()=>"folder-icon-container"),p=F(()=>"folder-icon"),v=F(()=>"file-icon-container"),g=F(()=>"file-icon"),y=F(()=>i.variant==="search-results"?"vod-remarks-overlay":"video-remarks-overlay"),S=F(()=>i.variant==="search-results"?"video-info-simple":"video-info");F(()=>i.variant==="search-results"?"video-title-simple":"video-title");const k=P=>{const M={video:JH,audio:QH,image:ZH,default:lS};return M[P]||M.default},C=P=>{a("video-click",P)},x=P=>{a("scroll",P)},E=(P,M)=>{a("mouse-enter",P,M)},_=()=>{a("mouse-leave")},T=P=>{P.target.src=i.defaultPoster},D=()=>{try{const P=document.querySelectorAll(".search-grid-container .title-text");P&&P.length>0&&P.forEach(M=>{M&&M.scrollWidth&&M.clientWidth&&(M.scrollWidth>M.clientWidth?(M.setAttribute("data-overflow","true"),M.setAttribute("title",M.textContent||"")):(M.removeAttribute("data-overflow"),M.removeAttribute("title")))})}catch(P){console.error("checkTextOverflow error:",P)}};return It(()=>i.videos,()=>{dn(()=>{setTimeout(D,100)})},{deep:!0}),hn(()=>{dn(()=>{setTimeout(D,200)})}),t({getScrollContainer:()=>r.value?.$el?.querySelector(".arco-scrollbar-container"),scrollTo:P=>{const M=r.value?.$el?.querySelector(".arco-scrollbar-container");M&&M.scrollTo(P)},getScrollTop:()=>r.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0}),(P,M)=>{const O=Te("a-button"),L=Te("a-result"),B=Te("a-spin"),j=Te("a-image"),H=Te("a-grid-item"),U=Te("a-grid"),K=Te("a-scrollbar"),Y=Te("a-empty");return z(),X("div",o5t,[e.error?(z(),X("div",s5t,[$(L,{status:"error",title:e.error},{extra:fe(()=>[$(O,{type:"primary",onClick:M[0]||(M[0]=ie=>P.$emit("retry"))},{default:fe(()=>[...M[2]||(M[2]=[He("重试",-1)])]),_:1})]),_:1},8,["title"])])):e.loading&&(!e.videos||e.videos.length===0)?(z(),X("div",a5t,[$(B,{size:32}),M[3]||(M[3]=I("div",{class:"loading-text"},"正在搜索...",-1))])):e.videos&&e.videos.length>0?(z(),X("div",l5t,[$(K,{ref_key:"scrollbarRef",ref:r,style:Ye({height:e.scrollHeight,maxHeight:e.scrollHeight,overflow:"auto"}),onScroll:x},{default:fe(()=>[I("div",{class:"search-results-grid",style:Ye({padding:e.gridPadding})},[$(U,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:fe(()=>[(z(!0),X(Pt,null,cn(e.videos,(ie,te)=>(z(),Ze(H,{key:`${ie.vod_id}_${te}`,class:de(s.value)},{default:fe(()=>[I("div",{class:de(l.value),onClick:W=>C(ie),onMouseenter:W=>E(ie,te),onMouseleave:_},[I("div",{class:de(c.value)},[ie.type_name==="folder"?(z(),X("div",{key:0,class:de(h.value)},[$(rt(lW),{class:de(p.value)},null,8,["class"])],2)):ie.type_name&&ie.type_name!=="folder"?(z(),X("div",{key:1,class:de(v.value)},[(z(),Ze(wa(k(ie.type_name)),{class:de(g.value)},null,8,["class"]))],2)):(z(),X(Pt,{key:2},[e.variant==="search-results"?(z(),Ze(j,{key:0,src:ie.vod_pic,alt:ie.vod_name,class:de(d.value),fit:"cover",preview:!1,fallback:e.defaultPoster},null,8,["src","alt","class","fallback"])):(z(),X("img",{key:1,src:ie.vod_pic||e.defaultPoster,alt:ie.vod_name,class:de(d.value),onError:T},null,42,c5t))],64)),e.variant==="aggregation"&&ie.action?(z(),X("div",d5t,[$(rt(ha))])):Ie("",!0),e.variant==="aggregation"&&ie.type_name!=="folder"?(z(),X("div",f5t,[$(rt(ha))])):Ie("",!0),ie.vod_remarks?(z(),X("div",{key:5,class:de(y.value)},Ne(ie.vod_remarks),3)):Ie("",!0)],2),I("div",{class:de(S.value)},[I("div",h5t,[I("span",p5t,Ne(ie.vod_name),1)]),e.variant==="aggregation"?(z(),X(Pt,{key:0},[ie.vod_blurb?(z(),X("div",v5t,Ne(ie.vod_blurb),1)):Ie("",!0),I("div",m5t,[ie.vod_note?(z(),X("span",g5t,Ne(ie.vod_note),1)):Ie("",!0),ie.vod_year?(z(),X("span",y5t,Ne(ie.vod_year),1)):Ie("",!0),ie.vod_area?(z(),X("span",b5t,Ne(ie.vod_area),1)):Ie("",!0)])],64)):Ie("",!0)],2)],42,u5t)]),_:2},1032,["class"]))),128))]),_:1}),e.hasMore&&!e.loading?(z(),X("div",_5t,[$(O,{type:"text",onClick:M[1]||(M[1]=ie=>P.$emit("load-more"))},{default:fe(()=>[...M[4]||(M[4]=[He(" 加载更多 ",-1)])]),_:1})])):Ie("",!0),!e.hasMore&&e.videos.length>0?(z(),X("div",S5t," 没有更多数据了 ")):Ie("",!0),M[5]||(M[5]=I("div",{class:"bottom-spacing"},null,-1))],4)]),_:1},8,["style"])])):(z(),X("div",k5t,[$(Y,{description:"暂无搜索结果"})]))])}}},H3e=cr(x5t,[["__scopeId","data-v-38747718"]]),C5t={class:"search-results-container"},w5t={class:"search-header"},E5t={class:"search-info"},T5t={key:0,class:"search-keyword"},A5t={key:1,class:"search-count"},I5t={class:"search-actions"},L5t={__name:"SearchResults",props:{keyword:{type:String,default:""},videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},error:{type:String,default:null},currentPage:{type:Number,default:1},totalPages:{type:Number,default:1},hasMore:{type:Boolean,default:!1},sourceRoute:{type:Object,default:()=>({})},scrollPosition:{type:Number,default:0},module:{type:String,default:""},extend:{type:[Object,String],default:""},apiUrl:{type:String,default:""}},emits:["video-click","exit-search","load-more","refresh-list"],setup(e,{emit:t}){const n=ma(),r=m3(),i=kS(),a=hS(),s=e,l=t,c=ue(null),d=ue(null),h=ue(0),p=F(()=>s.videos.map(L=>({...L,type_name:jz(L)?"folder":Vz(L)?RT(L.vod_name):null}))),v=ue(null),g=ue(!1),y=ue(null),S=L=>{const B=L?.target||L?.srcElement,j=B?.closest?B.closest(".arco-scrollbar-container"):B;if(!j)return;const H=j.scrollHeight-j.clientHeight,U=j.scrollTop;H-U<50&&s.hasMore&&!s.loading&&l("load-more")},k=()=>{dn(()=>{setTimeout(()=>{const L=c.value;if(!L)return;const B=L.closest(".content-area")||L.parentElement;let j=B?B.offsetHeight:0;j<=0&&(j=Math.max(window.innerHeight-120,500));const H=document.querySelector(".search-header"),U=H?H.offsetHeight:60,K=j-U,Y=Math.max(K-20,300);console.log(`搜索结果容器高度计算: 容器高度=${j}px, 标题高度=${U}px, 最终高度=${Y}px`),h.value=Y},100)})},C=()=>{if(!s.keyword)return"";const L=s.videos.length,B=s.currentPage,j=s.hasMore;if(L===0)return`搜索"${s.keyword}":无结果`;let H=`搜索"${s.keyword}":第${B}页,共${L}条`;return j?H+=",可继续加载":H+=",已全部加载",H},x=()=>{const L=C();L&&r.updateStats(L)},E=()=>{dn(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(B=>{const H=B.parentElement.offsetWidth-16;B.scrollWidth>H?B.setAttribute("data-overflow","true"):B.removeAttribute("data-overflow")})},100)})},_=L=>{if(L&&L.vod_id){if(L.vod_tag==="action")try{const B=JSON.parse(L.vod_id);console.log("SearchResults解析action配置:",B),y.value=B,g.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",L.vod_id),yt.info({content:L.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(L.vod_id,L.vod_name),s.keyword){const B=d.value?.getScrollTop()||0;i.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,B),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:B})}n.push({name:"VideoDetail",params:{id:L.vod_id},query:{name:L.vod_name,pic:L.vod_pic,year:L.vod_year,area:L.vod_area,type:L.vod_type,remarks:L.vod_remarks,content:L.vod_content,actor:L.vod_actor,director:L.vod_director,sourceRouteName:s.sourceRoute?.name,sourceRouteParams:JSON.stringify(s.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(s.sourceRoute?.query||{}),fromSearch:"true",sourcePic:L.vod_pic}})}},T=()=>{r.clearStats(),l("exit-search")},D=()=>{l("load-more")},P=()=>{l("refresh-list")};hn(()=>{E(),k(),x(),window.addEventListener("resize",k),s.scrollPosition>0&&dn(()=>{requestAnimationFrame(()=>{d.value&&(d.value.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),_o(()=>{window.removeEventListener("resize",k)}),It(()=>s.videos,()=>{k(),E(),x()}),It([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{x()});const M=()=>{g.value=!1,y.value=null},O=(L,B)=>{switch(console.log("处理专项动作:",L,B),L){case"__self_search__":console.log("执行源内搜索:",B);break;case"detail":console.log("跳转到详情页:",B);break;case"ktv-player":console.log("启动KTV播放:",B);break;case"refresh-list":console.log("刷新列表:",B),l("refresh-list");break;default:console.log("未知的专项动作:",L,B);break}};return(L,B)=>{const j=Te("icon-close"),H=Te("a-button");return z(),X("div",C5t,[I("div",w5t,[I("div",E5t,[e.keyword?(z(),X("span",T5t," 搜索结果:"+Ne(e.keyword),1)):Ie("",!0),e.videos.length>0?(z(),X("span",A5t," 共找到 "+Ne(e.videos.length)+" 个结果 ",1)):Ie("",!0)]),I("div",I5t,[$(H,{type:"outline",size:"small",onClick:T},{icon:fe(()=>[$(j)]),default:fe(()=>[B[0]||(B[0]=He(" 清除搜索 ",-1))]),_:1})])]),I("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[$(H3e,{ref_key:"scrollbarRef",ref:d,videos:p.value,loading:e.loading,error:e.error,"has-more":e.hasMore,"scroll-height":`${h.value}px`,variant:"search-results","default-poster":"/default-poster.svg",onVideoClick:_,onLoadMore:D,onRetry:P,onScroll:S},null,8,["videos","loading","error","has-more","scroll-height"])],512),g.value?(z(),Ze(lg,{key:0,ref_key:"actionRendererRef",ref:v,"action-data":y.value,module:s.module,extend:s.extend,"api-url":s.apiUrl,onClose:M,onSpecialAction:O},null,8,["action-data","module","extend","api-url"])):Ie("",!0)])}}},W3e=cr(L5t,[["__scopeId","data-v-0e7e7688"]]),CS=sg("site",()=>{const e=ue(Zo.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&Zo.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=Zo.getCurrentSite();r&&(!e.value||r.key!==e.value.key)&&(e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),console.log("从 siteService 同步站点:",r))};return typeof window<"u"&&window.addEventListener("siteChange",r=>{const{site:i}=r.detail;i&&(!e.value||i.key!==e.value.key)&&(e.value=i,localStorage.setItem("site-nowSite",JSON.stringify(i)),console.log("响应 siteService 站点变化:",i))}),n(),{nowSite:e,setCurrentSite:t,syncFromSiteService:n}}),D5t={class:"current-time"},P5t={class:"main-container"},R5t={key:0,class:"global-loading-overlay"},M5t={class:"global-loading-content"},$5t={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=CS();m3();const r=kS(),i=s3(),a=ma(),s=_e=>{const ve=_e.getFullYear(),me=String(_e.getMonth()+1).padStart(2,"0"),Oe=String(_e.getDate()).padStart(2,"0"),qe=String(_e.getHours()).padStart(2,"0"),Ke=String(_e.getMinutes()).padStart(2,"0"),at=String(_e.getSeconds()).padStart(2,"0");return`${ve}-${me}-${Oe} ${qe}:${Ke}:${at}`},l=ue(s(new Date)),c=ue(i.query.activeKey||""),d=ue(null),h=qt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=qt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),v=qt({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null}),g=f0({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),y=ue(!1),S=qt({activeKey:null,scrollPosition:0,savedAt:null}),k=ue(null),C=async(_e=!1)=>{try{if(Zo.getConfigStatus().hasConfigUrl)try{await Zo.loadSitesFromConfig(_e)}catch(me){console.error("从配置地址加载站点数据失败:",me)}h.sites=Zo.getAllSites(),h.sites.length}catch(ve){console.error("获取站点配置失败:",ve)}},x=()=>{const _e=Zo.getCurrentSite();_e?(h.now_site=_e,h.now_site_title=_e.name,n(_e)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,Zo.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},E=()=>{if(!h.now_site||!h.now_site.key){const _e=Zo.getCurrentSite();if(_e)h.now_site=_e,h.now_site_title=_e.name;else if(h.sites.length>0){const ve=h.sites.find(me=>me.type===4)||h.sites[0];ve&&(h.now_site=ve,h.now_site_title=ve.name,Zo.setCurrentSite(ve.key))}}else if(!h.sites.some(ve=>ve.key===h.now_site.key)&&h.sites.length>0){const ve=h.sites.find(me=>me.type===4)||h.sites[0];ve&&(h.now_site=ve,h.now_site_title=ve.name,Zo.setCurrentSite(ve.key))}h.new_site=h.now_site},_=()=>{k.value=setInterval(()=>{l.value=s(new Date)},1e3)},T=()=>{window.location.reload()},D=_e=>{console.log("收到重载源事件:",_e.detail),T()},P=()=>{},M=()=>{},O=()=>{},L=_e=>h.new_site=_e,B=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,C(!0),E()},j=_e=>{h.now_site=_e,n(_e),h.now_site_title=_e.name,h.visible=!1,g.value?.isActive&&(g.value={isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1},S.activeKey=null,S.scrollPosition=0,S.savedAt=null),H(_e)},H=async _e=>{if(!(!_e||!_e.key)){y.value=!0,h.classList={class:[],filters:{}},h.recommendVideos=[];try{const ve=h.sites.findIndex(Oe=>Oe.key===_e.key)===0;console.log("[Video.vue] 开始获取首页数据:",{siteKey:_e.key,siteName:_e.name,extend:_e.ext,apiUrl:_e.api,isFirstSite:ve}),ve&&(console.log("[Video.vue] 检测到第一个源,清除缓存"),Ka.clearModuleCache(_e.key));const me=await Ka.getRecommendVideos(_e.key,{extend:_e.ext,apiUrl:_e.api});console.log("[Video.vue] 首页数据获取成功:",{siteKey:_e.key,categoriesCount:me.categories?.length||0,videosCount:me.videos?.length||0,hasVideos:!!(me.videos&&me.videos.length>0),firstVideo:me.videos?.[0]}),h.classList={class:me.categories,filters:me.filters},h.recommendVideos=me.videos||[],console.log("[Video.vue] 推荐数据已设置:",{siteKey:_e.key,recommendVideosLength:h.recommendVideos.length,isFirstSite:h.sites.findIndex(Oe=>Oe.key===_e.key)===0})}catch(ve){console.error("获取分类列表失败:",ve),h.classList={class:[],filters:{}},h.recommendVideos=[]}finally{y.value=!1}}},U=async _e=>{if(!_e||!_e.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const ve=_e.trim();p.searchKeyword=ve,p.isSearching=!0,p.searchLoading=!0,p.searchError=null,p.currentPage=1;try{if(!h.now_site||!h.now_site.key)throw new Error("请先选择数据源");const me=await Ka.searchVideo(h.now_site.key,{keyword:ve,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=me.videos||[],p.totalPages=me.pagination?.totalPages||1,p.hasMore=me.pagination?.hasNext||!1}catch(me){console.error("搜索失败:",me),p.searchError=me.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},K=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const _e=p.currentPage+1;try{const ve=await Ka.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:_e,extend:h.now_site.ext,apiUrl:h.now_site.api}),me=ve.videos||[],Oe=new Set(p.searchResults.map(Ke=>Ke.vod_id)),qe=me.filter(Ke=>!Oe.has(Ke.vod_id)&&Ke.vod_id!=="no_data"&&Ke.vod_name!=="no_data");qe.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...qe],p.hasMore=ve.pagination?.hasNext!==!1),p.currentPage=_e,p.totalPages=ve.pagination?.totalPages||p.totalPages}catch(ve){console.error("搜索加载更多失败:",ve),p.searchError=ve.message||"加载失败,请重试"}finally{p.searchLoading=!1}},Y=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},ie=_e=>{c.value=_e;const ve={...i.query};_e?ve.activeKey=_e:delete ve.activeKey,a.replace({name:i.name,params:i.params,query:ve}),console.log("[DEBUG] 地址栏activeKey已更新:",_e)},te=_e=>{if(_e&&_e.vod_id){let ve="false";p.isSearching?ve="true":c.value&&r.saveVideoState(c.value,1,[],!0,!1,window.scrollY);const me={name:_e.vod_name,pic:_e.vod_pic,year:_e.vod_year,area:_e.vod_area,type:_e.vod_type,remarks:_e.vod_remarks,content:_e.vod_content,actor:_e.vod_actor,director:_e.vod_director,sourceRouteName:i.name,sourceRouteParams:JSON.stringify(i.params),sourceRouteQuery:JSON.stringify({...i.query,activeKey:c.value}),fromSearch:ve,sourcePic:_e.vod_pic};g.value?.isActive&&(me.folderState=JSON.stringify({isActive:g.value.isActive,breadcrumbs:g.value.breadcrumbs,currentBreadcrumb:g.value.currentBreadcrumb})),a.push({name:"VideoDetail",params:{id:_e.vod_id},query:me})}},W=()=>{p.isSearching||d.value&&d.value.refreshCurrentCategory()},q=async(_e,ve)=>{switch(_e){case"__self_search__":await Q(ve);break;default:console.warn("🎯 [WARN] 未知的特殊动作类型:",_e);break}},Q=async _e=>{try{v.isActive||(v.originalClassList=h.classList,v.originalRecommendVideos=h.recommendVideos);const ve=_e.tid||_e.type_id||_e.actionData?.tid,me=_e.name||_e.type_name||`搜索: ${ve}`;if(!ve){console.error("🔍 [ERROR] 源内搜索参数不完整:缺少tid"),yt.error("源内搜索参数不完整:缺少tid");return}const Oe=await Ka.getCategoryVideos(h.now_site?.key||t?.key,{typeId:ve,page:1,filters:{},apiUrl:h.now_site?.api,extend:h.now_site?.ext}),qe={class:[{type_id:ve,type_name:me}],filters:{}};v.isActive=!0,v.categoryData={type_id:ve,type_name:me,originalData:_e,videos:Oe.videos||[],pagination:Oe.pagination||{}},h.classList=qe,h.recommendVideos=[],c.value=ve,await dn(),d.value&&Oe.videos&&d.value.setSpecialCategoryData(ve,Oe.videos,Oe.pagination)}catch(ve){console.error("处理源内搜索失败:",ve),yt.error(`源内搜索失败: ${ve.message}`)}},se=()=>{v.isActive&&(h.classList=v.originalClassList,h.recommendVideos=v.originalRecommendVideos,v.isActive=!1,v.categoryData=null,v.originalClassList=null,v.originalRecommendVideos=null,c.value="recommendTuijian404")};let ae=!1,re=null,Ce=null,Ve=0;const ge=async _e=>{if(!_e||typeof _e!="object"){console.error("navigationData 无效:",_e);return}if(ae){console.log("folder状态正在更新中,跳过重复调用");return}const ve=Date.now();ve-Ve<200&&console.log("folder导航更新过于频繁,跳过");const me=JSON.stringify(_e);if(Ce===me){console.log("相同的folder导航数据,跳过重复处理");return}re&&(clearTimeout(re),re=null),ae=!0,Ce=me,Ve=ve;try{_e.isActive&&!g.value?.isActive&&(S.activeKey=c.value,S.scrollPosition=window.scrollY||0,S.savedAt=Date.now()),!_e.isActive&&g.value?.isActive&&(S.activeKey&&(c.value=S.activeKey),S.scrollPosition&&dn(()=>{window.scrollTo(0,S.scrollPosition)}),S.activeKey=null,S.scrollPosition=0,S.savedAt=null),await dn();const Oe=Ke=>{if(Ke===null||typeof Ke!="object")return Ke;if(Ke instanceof Date)return new Date(Ke.getTime());if(Ke instanceof Array)return Ke.map(at=>Oe(at));if(typeof Ke=="object"){const at={};return Object.keys(Ke).forEach(ft=>{at[ft]=Oe(Ke[ft])}),at}return Ke},qe={isActive:!!_e.isActive,breadcrumbs:Oe(_e.breadcrumbs||[]),currentData:Oe(_e.currentData||[]),currentBreadcrumb:Oe(_e.currentBreadcrumb||null),loading:!!_e.loading};g.value=qe}catch(Oe){console.error("更新folder状态时出错:",Oe)}finally{ae=!1,re=null}},xe=()=>{h.visible=!0;const _e=h.sites.filter(ve=>ve.type===4);h.form_title=`请选择数据源(${_e.length})`,E()},Ge=()=>{y.value=!1},tt=async _e=>{if(!_e||!_e.trim()){yt.error("推送内容不能为空");return}const ve=h.sites.find(me=>me.key==="push_agent");if(!ve){yt.error("没有找到push_agent服务,请检查源配置");return}try{a.push({name:"VideoDetail",params:{id:_e.trim()},query:{name:`推送内容-${_e.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:ve.name,tempSiteApi:ve.api,tempSiteKey:ve.key,sourceRouteName:i.name,sourceRouteParams:JSON.stringify(i.params),sourceRouteQuery:JSON.stringify(i.query),sourcePic:""}}),yt.success(`正在推送内容: ${_e.trim()}`)}catch(me){console.error("推送失败:",me),yt.error("推送失败,请重试")}},Ue=_e=>{if(console.log("全局动作执行完成:",_e),!_e||typeof _e!="object"){console.warn("Invalid event object received in handleActionExecuted");return}const ve=_e.action?.name||"未知动作";_e.success?(console.log("动作执行成功:",ve,_e.result),_e.result&&_e.result.refresh&&T(),_e.result&&_e.result.navigate&&a.push(_e.result.navigate)):console.error("动作执行失败:",ve,_e.error)};return It(()=>i.query.activeKey,_e=>{_e&&_e!==c.value&&(console.log("[DEBUG] URL activeKey changed:",_e,"current:",c.value),c.value=_e)},{immediate:!0}),hn(async()=>{await C(),x(),E(),window.addEventListener("reloadSource",D);const _e=i.query._restoreSearch,ve=i.query._returnToActiveKey,me=i.query.folderState;if(_e==="true"){const ft=r.getPageState("search");if(ft&&ft.keyword&&!r.isStateExpired("search")){p.isSearching=!0,p.searchKeyword=ft.keyword,p.searchResults=ft.videos||[],p.currentPage=ft.currentPage||1,p.hasMore=ft.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=ft.scrollPosition||0;const ct={...i.query};delete ct._restoreSearch,a.replace({query:ct}),await H(h.now_site),_();return}}const Oe=r.getPageState("video"),qe=r.isStateExpired("video");let Ke=!1,at=!1;if(ve){if(c.value=ve,me)try{const ct=JSON.parse(me),wt={isActive:ct.isActive,breadcrumbs:ct.breadcrumbs||[],currentBreadcrumb:ct.currentBreadcrumb,currentData:[],loading:!1};if(g.value=wt,ct.currentBreadcrumb&&ct.currentBreadcrumb.vod_id){g.value={...g.value,loading:!0};try{const Ct={t:ct.currentBreadcrumb.vod_id,apiUrl:h.now_site?.api,extend:h.now_site?.ext},Rt=await Z1(h.now_site?.key||t?.key,Ct);if(Rt&&Rt.list){const Ht={...g.value,currentData:Rt.list,loading:!1};g.value=Ht}else g.value={...g.value,loading:!1}}catch(Ct){console.error("获取folder数据失败:",Ct),g.value={...g.value,loading:!1}}}at=!0}catch(ct){console.error("解析folder状态失败:",ct)}at||(Ke=!0);const ft={...i.query};delete ft._returnToActiveKey,delete ft.folderState,a.replace({query:ft})}else Oe&&Oe.activeKey&&!qe&&(c.value=Oe.activeKey,Ke=!0);await H(h.now_site),_(),Ke&&!at&&setTimeout(()=>{d.value&&d.value.restoreFullState({activeKey:c.value,currentPage:Oe?.currentPage||1,videos:Oe?.videos||[],hasMore:Oe?.hasMore||!0,scrollPosition:Oe?.scrollPosition||0})},100)}),_o(()=>{if(k.value&&clearInterval(k.value),window.removeEventListener("reloadSource",D),c.value&&d.value){const _e=d.value.getCurrentState();r.saveVideoState(c.value,_e.currentPage,_e.videos,_e.hasMore,!1,_e.scrollPosition)}}),(_e,ve)=>{const me=Te("a-spin"),Oe=Te("a-button"),qe=Te("a-layout-content");return z(),X(Pt,null,[$(eTt,{onHandleOpenForm:xe,onRefreshPage:T,onMinimize:P,onMaximize:M,onCloseWindow:O,onOnSearch:U,onHandlePush:tt,onActionExecuted:Ue,now_site_title:h.now_site_title,sites:h.sites},{default:fe(()=>[I("div",D5t,[I("span",null,Ne(l.value),1)])]),_:1},8,["now_site_title","sites"]),I("div",P5t,[y.value?(z(),X("div",R5t,[I("div",M5t,[$(me,{size:32}),ve[2]||(ve[2]=I("div",{class:"loading-text"},"正在切换数据源...",-1)),$(Oe,{type:"outline",size:"small",onClick:Ge,class:"close-loading-btn"},{default:fe(()=>[...ve[1]||(ve[1]=[He(" 手动关闭 ",-1)])]),_:1})])])):Ie("",!0),$(qe,{class:"content"},{default:fe(()=>[p.isSearching?(z(),Ze(W3e,{key:0,keyword:p.searchKeyword,videos:p.searchResults,loading:p.searchLoading,error:p.searchError,currentPage:p.currentPage,totalPages:p.totalPages,hasMore:p.hasMore,scrollPosition:p.scrollPosition,sourceRoute:{name:rt(i).name,params:rt(i).params,query:rt(i).query},module:h.now_site?.key||rt(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,onLoadMore:K,onExitSearch:Y,onVideoClick:te,onRefreshList:W},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url"])):(z(),Ze(i5t,{key:1,ref_key:"videoListRef",ref:d,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:rt(i).name,params:rt(i).params,query:{...rt(i).query,activeKey:c.value,folderState:g.value.value?.isActive?JSON.stringify({isActive:g.value.value.isActive,breadcrumbs:g.value.value.breadcrumbs,currentBreadcrumb:g.value.value.currentBreadcrumb}):void 0}},returnToActiveKey:rt(i).query._returnToActiveKey,module:h.now_site?.key||rt(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,specialCategoryState:v,folderNavigationState:g.value,onActiveKeyChange:ie,onSpecialAction:q,onCloseSpecialCategory:se,onFolderNavigate:ge},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url","specialCategoryState","folderNavigationState"]))]),_:1})]),$(p6t,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":ve[0]||(ve[0]=Ke=>h.visible=Ke),onConfirmClear:B,onConfirmChange:j,onChangeRule:L},null,8,["visible","title","sites","currentSiteKey"])],64)}}},O5t=cr($5t,[["__scopeId","data-v-27b31960"]]),G3e=async(e,t={})=>{const{snifferUrl:n="http://localhost:57573/sniffer",timeout:r=10,mode:i="0",is_pc:a="0"}=t;if(!e)throw new Error("URL或解析数据参数不能为空");if(!n)throw new Error("嗅探器接口地址不能为空");try{let s;if(typeof e=="object"&&e.parse===1){const{url:p,js:v,parse_extra:g}=e;if(!p)throw new Error("T4解析数据中缺少URL");const y=typeof p=="string"?p:p.toString?p.toString():String(p);console.log("处理T4解析数据:",e),console.log("提取的URL:",y),console.log("=== 调试结束 ===");const S=new URLSearchParams({url:y,mode:i,is_pc:a,timeout:(r*1e3).toString()});v&&S.set("script",v),s=`${n}?${S.toString()}`,g&&(s+=g)}else{const p=typeof e=="string"?e:e.toString(),v=new URLSearchParams({url:p,mode:i,is_pc:a,timeout:(r*1e3).toString()});s=`${n}?${v.toString()}`}console.log("嗅探请求URL:",s);const l=new AbortController,c=setTimeout(()=>l.abort(),r*1e3+5e3),d=await fetch(s,{method:"GET",signal:l.signal,headers:{Accept:"application/json","Content-Type":"application/json"}});if(clearTimeout(c),!d.ok)throw new Error(`嗅探请求失败: ${d.status} ${d.statusText}`);const h=await d.json();if(console.log("嗅探响应结果:",h),h.code!==200)throw new Error(h.msg||"嗅探失败");return{success:!0,data:h.data,message:h.msg||"嗅探成功",timestamp:h.timestamp}}catch(s){throw console.error("嗅探请求失败:",s),s.name==="AbortError"?new Error(`嗅探超时(${r}秒)`):s.message.includes("Failed to fetch")?new Error("无法连接到嗅探器服务,请检查嗅探器是否正常运行"):s}},IG=()=>{try{const e=localStorage.getItem("addressSettings");if(e){const t=JSON.parse(e);return{enabled:t.proxySniffEnabled||!1,url:t.proxySniff||"http://localhost:57573/sniffer",timeout:t.snifferTimeout||10}}}catch(e){console.error("获取嗅探器配置失败:",e)}return{enabled:!1,url:"http://localhost:57573/sniffer",timeout:10}},MT=()=>{const e=IG();if(!(e.url&&e.url.trim()!==""&&e.url!=="undefined"))return!1;try{const n=localStorage.getItem("addressSettings");if(n)return JSON.parse(n).proxySniffEnabled===!0}catch(n){console.error("检查嗅探器配置失败:",n)}return!0},K3e=async(e,t={})=>{const n=IG();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await G3e(e,r)},B5t=Object.freeze(Object.defineProperty({__proto__:null,getSnifferConfig:IG,isSnifferEnabled:MT,sniffVideo:G3e,sniffVideoWithConfig:K3e},Symbol.toStringTag,{value:"Module"}));class Xle{static validateParserConfig(t){const n=[];if(!t)return{valid:!1,errors:["解析器配置不能为空"]};if(t.name||n.push("解析器名称不能为空"),!t.url)n.push("解析器URL不能为空");else try{new URL(t.url)}catch{n.push("解析器URL格式无效")}return(!t.type||!["json","sniffer"].includes(t.type))&&n.push("解析器类型必须是 json 或 sniffer"),t.type==="json"&&(t.urlPath||n.push("JSON解析器必须配置URL提取路径(urlPath)")),t.type,{valid:n.length===0,errors:n}}static async testParserConfig(t,n="https://example.com/test.mp4"){try{console.log("🧪 [解析器测试] 开始测试解析器配置:",{parser:t.name,testUrl:n,isDefaultTestUrl:n==="https://example.com/test.mp4"});const r=this.validateParserConfig(t);if(!r.valid)return{success:!1,message:"配置验证失败: "+r.errors.join(", ")};let i;return t.type==="json"?(console.log("🧪 [解析器测试] 使用JSON解析器测试"),i=await this.parseWithJsonParser(t,{url:n})):t.type==="sniffer"&&(console.log("🧪 [解析器测试] 使用嗅探解析器测试"),i=await this.parseWithSnifferParser(t,{url:n})),{success:i.success,message:i.success?"解析器测试成功":i.message,testResult:i}}catch(r){return{success:!1,message:"解析器测试失败: "+r.message}}}static async parseWithJsonParser(t,n){try{if(console.log("🔍 [JSON解析] 开始解析:",{parser:t.name,data:n,dataType:typeof n,isTestUrl:n&&typeof n=="object"&&n.url==="https://example.com/test.mp4"}),!t.url)throw new Error("解析器URL未配置");let r;if(n&&typeof n=="object"?(r=n.url||n.play_url||n,console.log("从T4数据结构提取的目标URL:",r)):(r=n,console.log("直接使用的目标URL:",r)),!r||typeof r!="string")throw new Error("无效的视频URL");console.log("要解析的视频URL:",r);const i=t.url+encodeURIComponent(r);console.log("拼接后的解析地址:",i);const a=JSON.parse(localStorage.getItem("addressSettings")||"{}"),s=a.proxyAccessEnabled||!1,l=a.proxyAccess||"";let c=i;s&&l?(console.log("🔄 [代理访问] 使用代理访问接口:",l),l.includes("${url}")?(c=l.replace(/\$\{url\}/g,encodeURIComponent(i)),console.log("🔄 [代理访问] 替换占位符后的最终URL:",c)):console.warn("⚠️ [代理访问] 代理访问链接中未找到${url}占位符,将直接访问原地址")):console.log("🔄 [直接访问] 代理访问接口未启用,直接访问解析地址");const d={method:t.method||"GET",url:c,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Referer:i,...t.headers},timeout:v0.TIMEOUT},h=await uo(d);console.log("JSON解析响应:",h.data);const p=this.parseJsonResponse(h.data,t);return{success:!0,url:p.url,headers:p.headers||{},qualities:p.qualities||[],message:"解析成功"}}catch(r){return console.error("JSON解析失败:",r),{success:!1,message:r.message||"JSON解析失败"}}}static async parseWithSnifferParser(t,n){try{if(console.log("开始嗅探解析:",{parser:t.name,data:n}),!t.url)throw new Error("解析器URL未配置");const r=this.buildSnifferUrl(t,n);console.log("嗅探URL:",r);const i=await uo({method:"GET",url:r,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Referer:n.referer||"",...t.headers},timeout:v0.TIMEOUT,maxRedirects:5});console.log("嗅探解析响应状态:",i.status);const a=this.extractVideoUrlFromSniffer(i,t);if(!a)throw new Error("未能从嗅探响应中提取到视频URL");return{success:!0,url:a,headers:{Referer:t.url,"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},qualities:[],message:"嗅探解析成功"}}catch(r){return console.error("嗅探解析失败:",r),{success:!1,message:r.message||"嗅探解析失败"}}}static parseJsonResponse(t,n){try{let r=t;typeof r=="string"&&(r=JSON.parse(r));const i={url:this.extractValueByPath(r,n.urlPath||"url"),headers:{},qualities:[]};if(n.headersPath&&(i.headers=this.extractValueByPath(r,n.headersPath)||{}),n.qualitiesPath){const a=this.extractValueByPath(r,n.qualitiesPath);Array.isArray(a)&&(i.qualities=a.map(s=>({name:s.name||s.quality||"Unknown",url:s.url||s.playUrl||s.src})))}return i}catch(r){throw console.error("解析JSON响应失败:",r),new Error("解析JSON响应失败: "+r.message)}}static buildSnifferUrl(t,n){let r=t.url,i;if(n&&typeof n=="object"?(i=n.url||n.play_url||n,console.log("从T4数据结构提取的嗅探目标URL:",i)):(i=n,console.log("直接使用的嗅探目标URL:",i)),!i||typeof i!="string")throw new Error("无效的视频URL");if(r.includes("{url}")?r=r.replace(/\{url\}/g,encodeURIComponent(i)):r=r+encodeURIComponent(i),r=r.replace(/\{time\}/g,Date.now()),t.params){const a=new URLSearchParams;Object.entries(t.params).forEach(([s,l])=>{a.append(s,l)}),r+=(r.includes("?")?"&":"?")+a.toString()}return r}static extractVideoUrlFromSniffer(t,n){try{if(t.headers.location){const r=t.headers.location;if(this.isVideoUrl(r))return r}if(t.data){let r=t.data;if(typeof r=="object"){const i=this.extractValueByPath(r,n.urlPath||"url");if(i&&this.isVideoUrl(i))return i}if(typeof r=="string"){const i=/(https?:\/\/[^\s"'<>]+\.(?:mp4|m3u8|flv|avi|mkv|mov|wmv|webm)(?:\?[^\s"'<>]*)?)/gi,a=r.match(i);if(a&&a.length>0)return a[0]}}if(n.extractRule){const r=new RegExp(n.extractRule,"gi"),i=t.data.match(r);if(i&&i.length>0)return i[0]}return null}catch(r){return console.error("提取视频URL失败:",r),null}}static extractValueByPath(t,n){try{return n.split(".").reduce((r,i)=>{const a=i.match(/^(\w+)\[(\d+)\]$/);if(a){const[,s,l]=a;return r?.[s]?.[parseInt(l)]}return r?.[i]},t)}catch(r){return console.error("提取路径值失败:",r,{path:n,obj:t}),null}}static isVideoUrl(t){if(!t||typeof t!="string")return!1;const n=[".mp4",".m3u8",".flv",".avi",".mkv",".mov",".wmv",".webm"],r=t.toLowerCase();return n.some(i=>r.includes(i))||r.includes("video")||r.includes("stream")}}const JA=sg("favorite",()=>{const e=ue([]),t=()=>{try{const v=localStorage.getItem("drplayer-favorites");v&&(e.value=JSON.parse(v))}catch(v){console.error("加载收藏数据失败:",v),e.value=[]}},n=()=>{try{localStorage.setItem("drplayer-favorites",JSON.stringify(e.value))}catch(v){console.error("保存收藏数据失败:",v)}},r=v=>{const g={id:v.vod_id,name:v.vod_name,pic:v.vod_pic,year:v.vod_year,area:v.vod_area,type_name:v.type_name,remarks:v.vod_remarks,director:v.vod_director,actor:v.vod_actor,api_info:{module:v.module||"",api_url:v.api_url||"",site_name:v.site_name||"",ext:v.ext||null},created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url)===-1?(e.value.unshift(g),n(),!0):!1},i=(v,g)=>{const y=e.value.findIndex(S=>S.id===v&&S.api_info.api_url===g);return y!==-1?(e.value.splice(y,1),n(),!0):!1},a=(v,g)=>e.value.some(y=>y.id===v&&y.api_info.api_url===g),s=(v,g)=>e.value.find(y=>y.id===v&&y.api_info.api_url===g),l=()=>{e.value=[],n()},c=()=>{const v={version:"1.0",export_time:new Date().toISOString(),favorites:e.value},g=new Blob([JSON.stringify(v,null,2)],{type:"application/json"}),y=URL.createObjectURL(g),S=document.createElement("a");S.href=y,S.download=`drplayer-favorites-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(y)},d=v=>new Promise((g,y)=>{const S=new FileReader;S.onload=k=>{try{const C=JSON.parse(k.target.result);if(!C.favorites||!Array.isArray(C.favorites))throw new Error("无效的收藏数据格式");let x=0;C.favorites.forEach(E=>{e.value.some(T=>T.id===E.id&&T.api_info.api_url===E.api_info.api_url)||(e.value.push({...E,updated_at:new Date().toISOString()}),x++)}),n(),g(x)}catch(C){y(C)}},S.onerror=()=>{y(new Error("文件读取失败"))},S.readAsText(v)}),h=F(()=>e.value.length),p=F(()=>{const v={};return e.value.forEach(g=>{const y=g.api_info?.site_name||"";let S="影视";y.includes("[书]")?S="小说":y.includes("[画]")?S="漫画":y.includes("[密]")?S="密":y.includes("[听]")?S="音频":y.includes("[儿]")&&(S="少儿"),v[S]||(v[S]=[]),v[S].push(g)}),v});return t(),{favorites:e,favoriteCount:h,favoritesByType:p,addFavorite:r,removeFavorite:i,isFavorited:a,getFavorite:s,clearFavorites:l,exportFavorites:c,importFavorites:d,loadFavorites:t,saveFavorites:n}}),LG=sg("history",()=>{const e=ue([]),t=F(()=>e.value.length),n=F(()=>[...e.value].sort((g,y)=>new Date(y.updated_at)-new Date(g.updated_at))),r=F(()=>{const g={};return e.value.forEach(y=>{const S=y.api_info?.site_name||"";let k="影视";S.includes("[书]")?k="小说":S.includes("[画]")?k="漫画":S.includes("[密]")?k="密":S.includes("[听]")?k="音频":S.includes("[儿]")&&(k="少儿"),g[k]||(g[k]=[]),g[k].push(y)}),g}),i=()=>{try{const g=localStorage.getItem("drplayer_histories");g&&(e.value=JSON.parse(g))}catch(g){console.error("加载观看历史失败:",g),e.value=[]}},a=()=>{try{localStorage.setItem("drplayer_histories",JSON.stringify(e.value))}catch(g){console.error("保存观看历史失败:",g)}},s=(g,y,S)=>{const k=new Date().toISOString();console.log("=== historyStore.addToHistory 调试 ==="),console.log("传入的videoInfo.api_info:",g.api_info),console.log("传入的videoInfo.api_info.ext:",g.api_info.ext);const C=e.value.findIndex(E=>E.id===g.id&&E.api_info.api_url===g.api_info.api_url),x={...g,current_route_name:y.name,current_route_index:y.index,current_episode_name:S.name,current_episode_index:S.index,current_episode_url:S.url,updated_at:k};C!==-1?(e.value[C]={...e.value[C],...x},console.log("更新后的历史记录api_info:",e.value[C].api_info)):(x.created_at=k,e.value.push(x),console.log("新添加的历史记录api_info:",x.api_info)),console.log("=== historyStore.addToHistory 调试结束 ==="),a()},l=g=>{if(!g||!g.id||!g.api_info||!g.api_info.api_url)return console.error("删除历史记录失败:参数无效",g),!1;const y=e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url);return y!==-1?(e.value.splice(y,1),a(),console.log("删除历史记录成功:",g.name),!0):(console.warn("未找到要删除的历史记录:",g),!1)},c=()=>{e.value=[],a()},d=()=>{const g=JSON.stringify(e.value,null,2),y=new Blob([g],{type:"application/json"}),S=document.createElement("a");S.href=URL.createObjectURL(y),S.download=`drplayer_histories_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S)},h=g=>{try{const y=JSON.parse(g);if(!Array.isArray(y))throw new Error("导入的数据格式不正确");const S=y.filter(k=>k.id&&k.name&&k.pic&&k.api_info&&k.current_route_name&&k.current_episode_name);return S.forEach(k=>{const C=e.value.findIndex(x=>x.id===k.id&&x.api_info.api_url===k.api_info.api_url);if(C===-1)e.value.push(k);else{const x=e.value[C],E=new Date(k.updated_at),_=new Date(x.updated_at);E>_&&(e.value[C]=k)}}),a(),S.length}catch(y){throw new Error(`导入失败: ${y.message}`)}},p=(g,y)=>e.value.find(S=>S.id===g&&S.api_info.api_url===y);return{histories:e,historyCount:t,sortedHistories:n,historiesByType:r,loadHistories:i,saveHistories:a,addToHistory:s,removeFromHistory:l,clearHistories:c,exportHistories:d,importHistories:h,getHistoryByVideo:p,getWatchProgress:(g,y)=>{const S=p(g,y);return S?{routeName:S.current_route_name,routeIndex:S.current_route_index,episodeName:S.current_episode_name,episodeIndex:S.current_episode_index,episodeUrl:S.current_episode_url,lastWatchTime:S.updated_at}:null}}}),DG=sg("parser",()=>{const e=ue([]),t=ue(!1),n=ue(null),r=F(()=>e.value.filter(_=>_.enabled!==!1)),i=F(()=>e.value.filter(_=>_.enabled===!1)),a=F(()=>e.value.length),s=async _=>{t.value=!0,n.value=null;try{const T=await fetch(_);if(!T.ok)throw new Error(`HTTP ${T.status}: ${T.statusText}`);const D=await T.json();if(D.parses&&Array.isArray(D.parses))return e.value=D.parses.map((P,M)=>({...P,id:P.id||`parser_${Date.now()}_${M}`,enabled:P.enabled!==!1,order:M})),c(),!0;throw new Error("配置数据格式错误:缺少parses字段")}catch(T){return n.value=T.message,console.error("加载解析配置失败:",T),!1}finally{t.value=!1}},l=()=>{try{const _=localStorage.getItem("drplayer_parsers");if(_){const T=JSON.parse(_);if(Array.isArray(T))return e.value=T,!0}}catch(_){console.error("从本地存储加载解析配置失败:",_)}return!1},c=()=>{try{localStorage.setItem("drplayer_parsers",JSON.stringify(e.value))}catch(_){console.error("保存解析配置到本地存储失败:",_)}},d=_=>{const T={..._,id:`parser_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,enabled:!0,order:e.value.length};return e.value.push(T),c(),T},h=(_,T)=>{const D=e.value.findIndex(P=>P.id===_);return D!==-1?(e.value[D]={...e.value[D],...T},c(),!0):!1},p=_=>{const T=e.value.findIndex(D=>D.id===_);return T!==-1?(e.value.splice(T,1),c(),!0):!1},v=_=>{const T=e.value.find(D=>D.id===_);return T?(T.enabled=!T.enabled,c(),T.enabled):!1},g=_=>{e.value=_.map((T,D)=>({...T,order:D})),c()},y=_=>{const T=[...e.value];T.forEach(D=>{_.has(D.id)&&(D.order=_.get(D.id))}),T.sort((D,P)=>D.order-P.order),T.forEach((D,P)=>{D.order=P}),e.value=T,c()},S=async(_,T)=>{try{const D=_.url.replace(/\{url\}/g,encodeURIComponent(T)),P=await fetch(D,{method:"GET",headers:_.header||{},timeout:1e4});if(!P.ok)throw new Error(`HTTP ${P.status}: ${P.statusText}`);const M=await P.text(),O=/https?:\/\/[^\s]+\.(mp4|m3u8|flv)/i.test(M);return{success:!0,hasVideoUrl:O,response:M,message:O?"解析成功,检测到视频链接":"解析完成,但未检测到视频链接"}}catch(D){return{success:!1,error:D.message,message:`解析失败: ${D.message}`}}},k=()=>{const _={parses:e.value.map(M=>({name:M.name,url:M.url,type:M.type,ext:M.ext,header:M.header})),exportTime:new Date().toISOString(),version:"1.0"},T=new Blob([JSON.stringify(_,null,2)],{type:"application/json"}),D=URL.createObjectURL(T),P=document.createElement("a");P.href=D,P.download=`drplayer_parsers_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(P),P.click(),document.body.removeChild(P),URL.revokeObjectURL(D)},C=async _=>{try{const T=await _.text(),D=JSON.parse(T);if(D.parses&&Array.isArray(D.parses)){const P=D.parses.map((M,O)=>({...M,id:`imported_${Date.now()}_${O}`,enabled:!0,order:e.value.length+O}));return e.value.push(...P),c(),{success:!0,count:P.length}}else throw new Error("导入文件格式错误:缺少parses字段")}catch(T){return{success:!1,error:T.message}}},x=()=>{e.value=[],c()};return l(),{parsers:e,loading:t,error:n,enabledParsers:r,disabledParsers:i,parserCount:a,loadParsers:()=>{l()},loadParsersFromConfig:s,loadFromLocalStorage:l,saveToLocalStorage:c,addParser:d,updateParser:h,deleteParser:p,toggleParser:v,reorderParsers:g,reorderParsersById:y,testParser:S,exportParsers:k,importParsers:C,clearAllParsers:x}}),Bn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},N5t=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=F5t},F5t=Number.MAX_SAFE_INTEGER||9007199254740991;let ur=(function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e})({}),zt=(function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e})({}),Pe=(function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e})({});var Si={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Qn={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class A1{constructor(t,n=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=n,this.totalWeight_=r}sample(t,n){const r=Math.pow(this.alpha_,t);this.estimate_=n*(1-r)+r*this.estimate_,this.totalWeight_+=t}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class j5t{constructor(t,n,r,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new A1(t),this.fast_=new A1(n),this.defaultTTFB_=i,this.ttfb_=new A1(t)}update(t,n){const{slow_:r,fast_:i,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new A1(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==n&&(this.fast_=new A1(n,i.getEstimate(),i.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new A1(t,a.getEstimate(),a.getTotalWeight()))}sample(t,n){t=Math.max(t,this.minDelayMs_);const r=8*n,i=t/1e3,a=r/i;this.fast_.sample(i,a),this.slow_.sample(i,a)}sampleTTFB(t){const n=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(n,2)/2);this.ttfb_.sample(r,Math.max(t,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function V5t(e,t,n){return(t=U5t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Jp}function Jle(e,t,n){return t[e]?t[e].bind(t):W5t(e,n)}const Uz=zz();function G5t(e,t,n){const r=zz();if(typeof console=="object"&&e===!0||typeof e=="object"){const i=["debug","log","info","warn","error"];i.forEach(a=>{r[a]=Jle(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return zz()}i.forEach(a=>{Uz[a]=Jle(a,e)})}else bo(Uz,r);return r}const po=Uz;function R0(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function K5t(e){return typeof self<"u"&&e===self.ManagedMediaSource}function q3e(e,t){const n=Object.keys(e),r=Object.keys(t),i=n.length,a=r.length;return!i||!a||i===a&&!n.some(s=>r.indexOf(s)===-1)}function cc(e,t=!1){if(typeof TextDecoder<"u"){const d=new TextDecoder("utf-8").decode(e);if(t){const h=d.indexOf("\0");return h!==-1?d.substring(0,h):d}return d.replace(/\0/g,"")}const n=e.length;let r,i,a,s="",l=0;for(;l>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(r);break;case 12:case 13:i=e[l++],s+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=e[l++],a=e[l++],s+=String.fromCharCode((r&15)<<12|(i&63)<<6|(a&63)<<0);break}}return s}function Ul(e){let t="";for(let n=0;n1||i===1&&(n=this.levelkeys[r[0]])!=null&&n.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(t){if(!Bn(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return qs(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(t){this.setStart(this.start+t)}setStart(t){this.start=t,this._ref&&(this._ref.start=t)}setDuration(t){this.duration=t,this._ref&&(this._ref.duration=t)}setKeyFormat(t){const n=this.levelkeys;if(n){var r;const i=n[t];i&&!((r=this._decryptdata)!=null&&r.keyId)&&(this._decryptdata=i.getDecryptData(this.sn,n))}}abortRequests(){var t,n;(t=this.loader)==null||t.abort(),(n=this.keyLoader)==null||n.abort()}setElementaryStreamInfo(t,n,r,i,a,s=!1){const{elementaryStreams:l}=this,c=l[t];if(!c){l[t]={startPTS:n,endPTS:r,startDTS:i,endDTS:a,partial:s};return}c.startPTS=Math.min(c.startPTS,n),c.endPTS=Math.max(c.endPTS,r),c.startDTS=Math.min(c.startDTS,i),c.endDTS=Math.max(c.endDTS,a)}}class X5t extends X3e{constructor(t,n,r,i,a){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=n,this.index=i;const s=t.enumeratedString("BYTERANGE");s&&this.setByteRange(s,a),a&&(this.fragOffset=a.fragOffset+a.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}function Z3e(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||Z3e(n,t)}}function Z5t(e,t){const n=Z3e(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const eue=Math.pow(2,32)-1,J5t=[].push,J3e={video:1,audio:2,id3:3,text:4};function la(e){return String.fromCharCode.apply(null,e)}function Q3e(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function Or(e,t){const n=e2e(e,t);return n<0?4294967296+n:n}function tue(e,t){let n=Or(e,t);return n*=Math.pow(2,32),n+=Or(e,t+4),n}function e2e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function Q5t(e){const t=e.byteLength;for(let n=0;n8&&e[n+4]===109&&e[n+5]===111&&e[n+6]===111&&e[n+7]===102)return!0;n=r>1?n+r:t}return!1}function vi(e,t){const n=[];if(!t.length)return n;const r=e.byteLength;for(let i=0;i1?i+a:r;if(s===t[0])if(t.length===1)n.push(e.subarray(i+8,l));else{const c=vi(e.subarray(i+8,l),t.slice(1));c.length&&J5t.apply(n,c)}i=l}return n}function eAt(e){const t=[],n=e[0];let r=8;const i=Or(e,r);r+=4;let a=0,s=0;n===0?(a=Or(e,r),s=Or(e,r+4),r+=8):(a=tue(e,r),s=tue(e,r+8),r+=16),r+=2;let l=e.length+s;const c=Q3e(e,r);r+=2;for(let d=0;d>>31===1)return po.warn("SIDX has hierarchical references (not supported)"),null;const y=Or(e,h);h+=4,t.push({referenceSize:v,subsegmentDuration:y,info:{duration:y/i,start:l,end:l+v-1}}),l+=v,h+=4,r=h}return{earliestPresentationTime:a,timescale:i,version:n,referencesCount:c,references:t}}function t2e(e){const t=[],n=vi(e,["moov","trak"]);for(let i=0;i{const a=Or(i,4),s=t[a];s&&(s.default={duration:Or(i,12),flags:Or(i,20)})}),t}function tAt(e){const t=e.subarray(8),n=t.subarray(86),r=la(t.subarray(4,8));let i=r,a;const s=r==="enca"||r==="encv";if(s){const d=vi(t,[r])[0].subarray(r==="enca"?28:78);vi(d,["sinf"]).forEach(p=>{const v=vi(p,["schm"])[0];if(v){const g=la(v.subarray(4,8));if(g==="cbcs"||g==="cenc"){const y=vi(p,["frma"])[0];y&&(i=la(y))}}})}const l=i;switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const c=vi(n,["avcC"])[0];c&&c.length>3&&(i+="."+kC(c[1])+kC(c[2])+kC(c[3]),a=SC(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=vi(t,[r])[0],d=vi(c.subarray(28),["esds"])[0];if(d&&d.length>7){let h=4;if(d[h++]!==3)break;h=NF(d,h),h+=2;const p=d[h++];if(p&128&&(h+=2),p&64&&(h+=d[h++]),d[h++]!==4)break;h=NF(d,h);const v=d[h++];if(v===64)i+="."+kC(v);else break;if(h+=12,d[h++]!==5)break;h=NF(d,h);const g=d[h++];let y=(g&248)>>3;y===31&&(y+=1+((g&7)<<3)+((d[h]&224)>>5)),i+="."+y}break}case"hvc1":case"hev1":{const c=vi(n,["hvcC"])[0];if(c&&c.length>12){const d=c[1],h=["","A","B","C"][d>>6],p=d&31,v=Or(c,2),g=(d&32)>>5?"H":"L",y=c[12],S=c.subarray(6,12);i+="."+h+p,i+="."+nAt(v).toString(16).toUpperCase(),i+="."+g+y;let k="";for(let C=S.length;C--;){const x=S[C];(x||k)&&(k="."+x.toString(16).toUpperCase()+k)}i+=k}a=SC(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{i=SC(i,n)||i;break}case"vp09":{const c=vi(n,["vpcC"])[0];if(c&&c.length>6){const d=c[4],h=c[5],p=c[6]>>4&15;i+="."+rf(d)+"."+rf(h)+"."+rf(p)}break}case"av01":{const c=vi(n,["av1C"])[0];if(c&&c.length>2){const d=c[1]>>>5,h=c[1]&31,p=c[2]>>>7?"H":"M",v=(c[2]&64)>>6,g=(c[2]&32)>>5,y=d===2&&v?g?12:10:v?10:8,S=(c[2]&16)>>4,k=(c[2]&8)>>3,C=(c[2]&4)>>2,x=c[2]&3;i+="."+d+"."+rf(h)+p+"."+rf(y)+"."+S+"."+k+C+x+"."+rf(1)+"."+rf(1)+"."+rf(1)+"."+0,a=SC("dav1",n)}break}}return{codec:i,encrypted:s,supplemental:a}}function SC(e,t){const n=vi(t,["dvvC"]),r=n.length?n[0]:vi(t,["dvcC"])[0];if(r){const i=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+rf(i)+"."+rf(a)}}function nAt(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function NF(e,t){const n=t+5;for(;e[t++]&128&&t{const a=r.subarray(8,24);a.some(s=>s!==0)||(po.log(`[eme] Patching keyId in 'enc${i?"a":"v"}>sinf>>tenc' box: ${Ul(a)} -> ${Ul(n)}`),r.set(n,8))})}function iAt(e){const t=[];return n2e(e,n=>t.push(n.subarray(8,24))),t}function n2e(e,t){vi(e,["moov","trak"]).forEach(r=>{const i=vi(r,["mdia","minf","stbl","stsd"])[0];if(!i)return;const a=i.subarray(8);let s=vi(a,["enca"]);const l=s.length>0;l||(s=vi(a,["encv"])),s.forEach(c=>{const d=l?c.subarray(28):c.subarray(78);vi(d,["sinf"]).forEach(p=>{const v=r2e(p);v&&t(v,l)})})})}function r2e(e){const t=vi(e,["schm"])[0];if(t){const n=la(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=vi(e,["schi","tenc"])[0];if(r)return r}}}function oAt(e,t,n){const r={},i=vi(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=vi(e,["sidx"]);for(let c=0;cp+v.info.duration||0,0);s=Math.max(s,h+d.earliestPresentationTime/d.timescale)}}s&&Bn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function sAt(e){const t={valid:null,remainder:null},n=vi(e,["moof"]);if(n.length<2)return t.remainder=e,t;const r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}function td(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function nue(e,t){const n=[],r=t.samples,i=t.timescale,a=t.id;let s=!1;return vi(r,["moof"]).map(c=>{const d=c.byteOffset-8;vi(c,["traf"]).map(p=>{const v=vi(p,["tfdt"]).map(g=>{const y=g[0];let S=Or(g,4);return y===1&&(S*=Math.pow(2,32),S+=Or(g,8)),S/i})[0];return v!==void 0&&(e=v),vi(p,["tfhd"]).map(g=>{const y=Or(g,4),S=Or(g,0)&16777215,k=(S&1)!==0,C=(S&2)!==0,x=(S&8)!==0;let E=0;const _=(S&16)!==0;let T=0;const D=(S&32)!==0;let P=8;y===a&&(k&&(P+=8),C&&(P+=4),x&&(E=Or(g,P),P+=4),_&&(T=Or(g,P),P+=4),D&&(P+=4),t.type==="video"&&(s=QA(t.codec)),vi(p,["trun"]).map(M=>{const O=M[0],L=Or(M,0)&16777215,B=(L&1)!==0;let j=0;const H=(L&4)!==0,U=(L&256)!==0;let K=0;const Y=(L&512)!==0;let ie=0;const te=(L&1024)!==0,W=(L&2048)!==0;let q=0;const Q=Or(M,4);let se=8;B&&(j=Or(M,se),se+=4),H&&(se+=4);let ae=j+d;for(let re=0;re>1&63;return n===39||n===40}else return(t&31)===6}function MG(e,t,n,r){const i=i2e(e);let a=0;a+=t;let s=0,l=0,c=0;for(;a=i.length)break;c=i[a++],s+=c}while(c===255);l=0;do{if(a>=i.length)break;c=i[a++],l+=c}while(c===255);const d=i.length-a;let h=a;if(ld){po.error(`Malformed SEI payload. ${l} is too small, only ${d} bytes left to parse.`);break}if(s===4){if(i[h++]===181){const v=Q3e(i,h);if(h+=2,v===49){const g=Or(i,h);if(h+=4,g===1195456820){const y=i[h++];if(y===3){const S=i[h++],k=31&S,C=64&S,x=C?2+k*3:0,E=new Uint8Array(x);if(C){E[0]=S;for(let _=1;_16){const p=[];for(let y=0;y<16;y++){const S=i[h++].toString(16);p.push(S.length==1?"0"+S:S),(y===3||y===5||y===7||y===9)&&p.push("-")}const v=l-16,g=new Uint8Array(v);for(let y=0;y>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(e,4),i=0,r=8;i0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;const s=new Uint8Array(4);return n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),uAt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,i,s,n)}function dAt(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32>>24;if(a!==0&&a!==1)return{offset:n,size:t};const s=e.buffer,l=Ul(new Uint8Array(s,n+12,16));let c=null,d=null,h=0;if(a===0)h=28;else{const v=e.getUint32(28);if(!v||r<32+v*16)return{offset:n,size:t};c=[];for(let g=0;g/\(Windows.+Firefox\//i.test(navigator.userAgent),Wy={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function $G(e,t){const n=Wy[t];return!!n&&!!n[e.slice(0,4)]}function E_(e,t,n=!0){return!e.split(",").some(r=>!OG(r,t,n))}function OG(e,t,n=!0){var r;const i=R0(n);return(r=i?.isTypeSupported(T_(e,t)))!=null?r:!1}function T_(e,t){return`${t}/mp4;codecs=${e}`}function rue(e){if(e){const t=e.substring(0,4);return Wy.video[t]}return 2}function $T(e){const t=o2e();return e.split(",").reduce((n,r)=>{const a=t&&QA(r)?9:Wy.video[r];return a?(a*2+n)/(n?3:2):(Wy.audio[r]+n)/(n?2:1)},0)}const FF={};function hAt(e,t=!0){if(FF[e])return FF[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let i=0;ihAt(n.toLowerCase(),t))}function vAt(e,t){const n=[];if(e){const r=e.split(",");for(let i=0;i4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)!==-1)&&(iue(e,"audio")||iue(e,"video")))return e;if(t){const n=t.split(",");if(n.length>1){if(e){for(let r=n.length;r--;)if(n[r].substring(0,4)===e.substring(0,4))return n[r]}return n[0]}}return t||e}function iue(e,t){return $G(e,t)&&OG(e,t)}function mAt(e){const t=e.split(",");for(let n=0;n2&&r[0]==="avc1"&&(t[n]=`avc1.${parseInt(r[1]).toString(16)}${("000"+parseInt(r[2]).toString(16)).slice(-4)}`)}return t.join(",")}function gAt(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let r=t.length;r>4&&r<10;r++)t[r]=n[r-4];return t.join(".")}return e}function oue(e){const t=R0(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Hz(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const yAt={supported:!0,powerEfficient:!0,smooth:!0},bAt={supported:!1,smooth:!1,powerEfficient:!1},s2e={supported:!0,configurations:[],decodingInfoResults:[yAt]};function a2e(e,t){return{supported:!1,configurations:t,decodingInfoResults:[bAt],error:e}}function _At(e,t,n,r,i,a){const s=e.videoCodec,l=e.audioCodec?e.audioGroups:null,c=a?.audioCodec,d=a?.channels,h=d?parseInt(d):c?1/0:2;let p=null;if(l!=null&&l.length)try{l.length===1&&l[0]?p=t.groups[l[0]].channels:p=l.reduce((v,g)=>{if(g){const y=t.groups[g];if(!y)throw new Error(`Audio track group ${g} not found`);Object.keys(y.channels).forEach(S=>{v[S]=(v[S]||0)+y.channels[S]})}return v},{2:0})}catch{return!0}return s!==void 0&&(s.split(",").some(v=>QA(v))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||e.videoRange!=="SDR"&&e.videoRange!==n||e.bitrate>Math.max(i,8e6))||!!p&&Bn(h)&&Object.keys(p).some(v=>parseInt(v)>h)}function l2e(e,t,n,r={}){const i=e.videoCodec;if(!i&&!e.audioCodec||!n)return Promise.resolve(s2e);const a=[],s=SAt(e),l=s.length,c=kAt(e,t,l>0),d=c.length;for(let h=l||1*d||1;h--;){const p={type:"media-source"};if(l&&(p.video=s[h%l]),d){p.audio=c[h%d];const v=p.audio.bitrate;p.video&&v&&(p.video.bitrate-=v)}a.push(p)}if(i){const h=navigator.userAgent;if(i.split(",").some(p=>QA(p))&&o2e())return Promise.resolve(a2e(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=CAt(h);return r[p]||(r[p]=n.decodingInfo(h))})).then(h=>({supported:!h.some(p=>!p.supported),configurations:a,decodingInfoResults:h})).catch(h=>({supported:!1,configurations:a,decodingInfoResults:[],error:h}))}function SAt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=u2e(e),i=e.width||640,a=e.height||480,s=e.frameRate||30,l=e.videoRange.toLowerCase();return n?n.map(c=>{const d={contentType:T_(gAt(c),"video"),width:i,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(d.transferFunction=l),d}):[]}function kAt(e,t,n){var r;const i=(r=e.audioCodec)==null?void 0:r.split(","),a=u2e(e);return i&&e.audioGroups?e.audioGroups.reduce((s,l)=>{var c;const d=l?(c=t.groups[l])==null?void 0:c.tracks:null;return d?d.reduce((h,p)=>{if(p.groupId===l){const v=parseFloat(p.channels||"");i.forEach(g=>{const y={contentType:T_(g,"audio"),bitrate:n?xAt(g,a):a};v&&(y.channels=""+v),h.push(y)})}return h},s):s},[]):[]}function xAt(e,t){if(t<=1)return 1;let n=128e3;return e==="ec-3"?n=768e3:e==="ac-3"&&(n=64e4),Math.min(t/2,n)}function u2e(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function CAt(e){let t="";const{audio:n,video:r}=e;if(r){const i=Hz(r.contentType);t+=`${i}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(n){const i=Hz(n.contentType);t+=`${r?"_":""}${i}_c${n.channels}`}return t}const Wz=["NONE","TYPE-0","TYPE-1",null];function wAt(e){return Wz.indexOf(e)>-1}const BT=["SDR","PQ","HLG"];function EAt(e){return!!e&&BT.indexOf(e)>-1}var i8={No:"",Yes:"YES",v2:"v2"};function sue(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e,i=r!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in t){var n;this.supplemental=t.supplemental;const r=(n=t.supplemental)==null?void 0:n.videoCodec;r&&r!==t.videoCodec&&(this.codecSet+=`,${r.substring(0,4)}`)}this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return lue(this._audioGroups,t)}hasSubtitleGroup(t){return lue(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,n){if(n){if(t==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(n)===-1&&r.push(n)}else if(t==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(n)===-1&&r.push(n)}}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return(t=this.audioGroups)==null?void 0:t[0]}get textGroupId(){var t;return(t=this.subtitleGroups)==null?void 0:t[0]}addFallback(){}}function lue(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function TAt(){if(typeof matchMedia=="function"){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return e.matches===!0}return!1}function AAt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||BT.slice(0);const i=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:i&&TAt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const IAt=e=>{const t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),typeof r=="object"&&r!==null){if(t.has(r))return;t.add(r)}return r}},Ao=(e,t)=>JSON.stringify(e,IAt(t));function LAt(e,t,n,r,i){const a=Object.keys(e),s=r?.channels,l=r?.audioCodec,c=i?.videoCodec,d=s&&parseInt(s)===2;let h=!1,p=!1,v=1/0,g=1/0,y=1/0,S=1/0,k=0,C=[];const{preferHDR:x,allowedVideoRanges:E}=AAt(t,i);for(let M=a.length;M--;){const O=e[a[M]];h||(h=O.channels[2]>0),v=Math.min(v,O.minHeight),g=Math.min(g,O.minFramerate),y=Math.min(y,O.minBitrate),E.filter(B=>O.videoRanges[B]>0).length>0&&(p=!0)}v=Bn(v)?v:0,g=Bn(g)?g:0;const _=Math.max(1080,v),T=Math.max(30,g);y=Bn(y)?y:n,n=Math.max(y,n),p||(t=void 0);const D=a.length>1;return{codecSet:a.reduce((M,O)=>{const L=e[O];if(O===M)return M;if(C=p?E.filter(B=>L.videoRanges[B]>0):[],D){if(L.minBitrate>n)return Qd(O,`min bitrate of ${L.minBitrate} > current estimate of ${n}`),M;if(!L.hasDefaultAudio)return Qd(O,"no renditions with default or auto-select sound found"),M;if(l&&O.indexOf(l.substring(0,4))%5!==0)return Qd(O,`audio codec preference "${l}" not found`),M;if(s&&!d){if(!L.channels[s])return Qd(O,`no renditions with ${s} channel sound found (channels options: ${Object.keys(L.channels)})`),M}else if((!l||d)&&h&&L.channels[2]===0)return Qd(O,"no renditions with stereo sound found"),M;if(L.minHeight>_)return Qd(O,`min resolution of ${L.minHeight} > maximum of ${_}`),M;if(L.minFramerate>T)return Qd(O,`min framerate of ${L.minFramerate} > maximum of ${T}`),M;if(!C.some(B=>L.videoRanges[B]>0))return Qd(O,`no variants with VIDEO-RANGE of ${Ao(C)} found`),M;if(c&&O.indexOf(c.substring(0,4))%5!==0)return Qd(O,`video codec preference "${c}" not found`),M;if(L.maxScore=$T(M)||L.fragmentError>e[M].fragmentError)?M:(S=L.minIndex,k=L.maxScore,O)},void 0),videoRanges:C,preferHDR:x,minFramerate:g,minBitrate:y,minIndex:S}}function Qd(e,t){po.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function c2e(e){return e.reduce((t,n)=>{let r=t.groups[n.groupId];r||(r=t.groups[n.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(n);const i=n.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||n.default,r.hasAutoSelect=r.hasAutoSelect||n.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function DAt(e,t,n,r){return e.slice(n,r+1).reduce((i,a,s)=>{if(!a.codecSet)return i;const l=a.audioGroups;let c=i[a.codecSet];c||(i[a.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,a.bitrate);const d=Math.min(a.height,a.width);return c.minHeight=Math.min(c.minHeight,d),c.minFramerate=Math.min(c.minFramerate,a.frameRate),c.minIndex=Math.min(c.minIndex,s),c.maxScore=Math.max(c.maxScore,a.score),c.fragmentError+=a.fragmentError,c.videoRanges[a.videoRange]=(c.videoRanges[a.videoRange]||0)+1,l&&l.forEach(h=>{if(!h)return;const p=t.groups[h];p&&(c.hasDefaultAudio=c.hasDefaultAudio||t.hasDefaultAudio?p.hasDefault:p.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(p.channels).forEach(v=>{c.channels[v]=(c.channels[v]||0)+p.channels[v]}))}),i},{})}function uue(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}}function vf(e,t,n){if("attrs"in e){const r=t.indexOf(e);if(r!==-1)return r}for(let r=0;rr.indexOf(i)===-1)}function Gv(e,t){const{audioCodec:n,channels:r}=e;return(n===void 0||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(r===void 0||r===(t.channels||"2"))}function MAt(e,t,n,r,i){const a=t[r],l=t.reduce((v,g,y)=>{const S=g.uri;return(v[S]||(v[S]=[])).push(y),v},{})[a.uri];l.length>1&&(r=Math.max.apply(Math,l));const c=a.videoRange,d=a.frameRate,h=a.codecSet.substring(0,4),p=cue(t,r,v=>{if(v.videoRange!==c||v.frameRate!==d||v.codecSet.substring(0,4)!==h)return!1;const g=v.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return vf(e,y,i)>-1});return p>-1?p:cue(t,r,v=>{const g=v.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return vf(e,y,i)>-1})}function cue(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r{var r;const{fragCurrent:i,partCurrent:a,hls:s}=this,{autoLevelEnabled:l,media:c}=s;if(!i||!c)return;const d=performance.now(),h=a?a.stats:i.stats,p=a?a.duration:i.duration,v=d-h.loading.start,g=s.minAutoLevel,y=i.level,S=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||y<=g){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const k=S>-1&&S!==y,C=!!n||k;if(!C&&(c.paused||!c.playbackRate||!c.readyState))return;const x=s.mainForwardBufferInfo;if(!C&&x===null)return;const E=this.bwEstimator.getEstimateTTFB(),_=Math.abs(c.playbackRate);if(v<=Math.max(E,1e3*(p/(_*2))))return;const T=x?x.len/_:0,D=h.loading.first?h.loading.first-h.loading.start:-1,P=h.loaded&&D>-1,M=this.getBwEstimate(),O=s.levels,L=O[y],B=Math.max(h.loaded,Math.round(p*(i.bitrate||L.averageBitrate)/8));let j=P?v-D:v;j<1&&P&&(j=Math.min(v,h.loaded*8/M));const H=P?h.loaded*1e3/j:0,U=E/1e3,K=H?(B-h.loaded)/H:B*8/M+U;if(K<=T)return;const Y=H?H*8:M,ie=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,te=this.hls.config.abrBandWidthUpFactor;let W=Number.POSITIVE_INFINITY,q;for(q=y-1;q>g;q--){const re=O[q].maxBitrate,Ce=!O[q].details||ie;if(W=this.getTimeToLoadFrag(U,Y,p*re,Ce),W=K||W>p*10)return;P?this.bwEstimator.sample(v-Math.min(E,D),h.loaded):this.bwEstimator.sampleTTFB(v);const Q=O[q].maxBitrate;this.getBwEstimate()*te>Q&&this.resetEstimator(Q);const se=this.findBestLevel(Q,g,q,0,T,1,1);se>-1&&(q=se),this.warn(`Fragment ${i.sn}${a?" part "+a.index:""} of level ${y} is loading too slowly; +}`);return(k,w)=>{const x=Ee("a-button"),E=Ee("a-tag"),_=Ee("a-card"),T=Ee("a-tab-pane"),D=Ee("a-tabs");return z(),X("div",Vbt,[O(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:ce(()=>[I("div",zbt,[O(tt(c_),{class:"title-icon"}),w[0]||(w[0]=I("span",null,"Action 动作指令文档",-1))])]),extra:ce(()=>[O(x,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:ce(()=>[t.value?Ae("",!0):(z(),Ze(tt(Qh),{key:0})),t.value?(z(),Ze(tt(nS),{key:1})):Ae("",!0),He(" "+je(t.value?"收起":"展开"),1)]),_:1})]),default:ce(()=>[I("div",Ubt,[I("div",Hbt,[I("div",Wbt,[w[1]||(w[1]=I("div",{class:"overview-label"},"总条目数",-1)),I("div",Gbt,je(a.value),1)]),I("div",Kbt,[w[2]||(w[2]=I("div",{class:"overview-label"},"动作类型",-1)),I("div",qbt,je(s.value.length),1)]),I("div",Ybt,[w[3]||(w[3]=I("div",{class:"overview-label"},"专项动作",-1)),I("div",Xbt,je(l.value.length),1)])]),t.value?Ae("",!0):(z(),X("div",Zbt,[(z(!0),X(Pt,null,cn(c.value,P=>(z(),Ze(E,{key:P.key,color:P.color,class:"nav-tag",onClick:M=>i(P.key)},{default:ce(()=>[He(je(P.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(z(),X("div",Jbt,[I("div",Qbt,[I("h3",e_t,[O(tt(Mc),{class:"section-icon"}),w[4]||(w[4]=He(" 基础概念 ",-1))]),I("div",t_t,[(z(!0),X(Pt,null,cn(d.value,P=>(z(),X("div",{class:"concept-item",key:P.key},[I("div",n_t,je(P.title),1),I("div",r_t,je(P.description),1)]))),128))])]),I("div",i_t,[I("h3",o_t,[O(tt(Lf),{class:"section-icon"}),w[5]||(w[5]=He(" 动作类型 ",-1))]),I("div",s_t,[(z(!0),X(Pt,null,cn(h.value,P=>(z(),Ze(_,{key:P.key,size:"small",class:"action-type-card",hoverable:!0},{default:ce(()=>[I("div",a_t,[O(E,{color:P.color},{default:ce(()=>[He(je(P.name),1)]),_:2},1032,["color"]),I("span",l_t,je(P.type),1)]),I("div",u_t,je(P.description),1),P.usage?(z(),X("div",c_t,[w[6]||(w[6]=I("strong",null,"用途:",-1)),He(je(P.usage),1)])):Ae("",!0)]),_:2},1024))),128))])]),I("div",d_t,[I("h3",f_t,[O(tt(lA),{class:"section-icon"}),w[7]||(w[7]=He(" 专项动作 ",-1))]),I("div",h_t,[(z(!0),X(Pt,null,cn(p.value,P=>(z(),X("div",{key:P.key,class:"special-action-item"},[I("div",p_t,[I("code",v_t,je(P.actionId),1),I("span",m_t,je(P.name),1)]),I("div",g_t,je(P.description),1),P.params?(z(),X("div",y_t,[w[8]||(w[8]=I("strong",null,"参数:",-1)),(z(!0),X(Pt,null,cn(P.params,M=>(z(),X("span",{key:M,class:"param-tag"},je(M),1))),128))])):Ae("",!0)]))),128))])]),I("div",b_t,[I("h3",__t,[O(tt(I0),{class:"section-icon"}),w[9]||(w[9]=He(" 配置参数 ",-1))]),I("div",S_t,[(z(!0),X(Pt,null,cn(v.value,P=>(z(),X("div",{key:P.key,class:"param-item"},[I("div",k_t,[I("code",w_t,je(P.name),1),O(E,{size:"small",color:P.typeColor},{default:ce(()=>[He(je(P.type),1)]),_:2},1032,["color"])]),I("div",x_t,je(P.description),1)]))),128))])]),I("div",C_t,[I("h3",E_t,[O(tt(Bve),{class:"section-icon"}),w[10]||(w[10]=He(" 示例代码 ",-1))]),O(D,{type:"card",class:"example-tabs"},{default:ce(()=>[O(T,{key:"basic",title:"基础动作"},{default:ce(()=>[I("pre",T_t,je(g.value),1)]),_:1}),O(T,{key:"input",title:"单项输入"},{default:ce(()=>[I("pre",A_t,je(y.value),1)]),_:1}),O(T,{key:"multi",title:"多项输入"},{default:ce(()=>[I("pre",I_t,je(S.value),1)]),_:1})]),_:1})])])):Ae("",!0)])]),_:1})])}}},D_t=sr(L_t,[["__scopeId","data-v-d143db2b"]]),P_t={class:"home-container"},R_t={class:"dashboard-header"},M_t={class:"header-content"},O_t={class:"welcome-section"},$_t={class:"dashboard-title"},B_t={class:"quick-stats"},N_t={class:"stat-item"},F_t={class:"stat-value"},j_t={class:"stat-item"},V_t={class:"stat-value"},z_t={class:"stat-item"},U_t={class:"dashboard-content"},H_t={class:"content-grid"},W_t={class:"dashboard-card watch-stats-card"},G_t={class:"card-header"},K_t={class:"card-title"},q_t={class:"card-content"},Y_t={class:"dashboard-card update-log-card"},X_t={class:"card-header"},Z_t={class:"card-title"},J_t={class:"card-content"},Q_t={class:"timeline-content"},eSt={class:"timeline-header"},tSt={class:"version-tag"},nSt={class:"update-date"},rSt={class:"update-title"},iSt={class:"update-description"},oSt={class:"update-changes"},sSt={key:0,class:"more-changes"},aSt={class:"dashboard-card recommend-card"},lSt={class:"card-header"},uSt={class:"card-title"},cSt={class:"card-content"},dSt={class:"recommend-grid"},fSt=["onClick"],hSt={class:"recommend-poster"},pSt={class:"recommend-overlay"},vSt={key:0,class:"trending-badge"},mSt={class:"recommend-info"},gSt={class:"recommend-title"},ySt={class:"recommend-meta"},bSt={class:"recommend-rating"},_St={class:"recommend-tags"},SSt={class:"dashboard-card keywords-card"},kSt={class:"card-header"},wSt={class:"card-title"},xSt={class:"card-content"},CSt={class:"keywords-list"},ESt=["onClick"],TSt={class:"keyword-content"},ASt={class:"keyword-text"},ISt={class:"keyword-meta"},LSt={class:"keyword-count"},DSt={class:"dashboard-card system-status-card"},PSt={class:"card-header"},RSt={class:"card-title"},MSt={class:"card-content"},OSt={class:"status-grid"},$St={class:"status-item"},BSt={class:"status-icon online"},NSt={class:"status-item"},FSt={class:"status-icon online"},jSt={class:"status-item"},VSt={class:"status-icon warning"},zSt={class:"status-item"},USt={class:"status-icon online"},HSt={class:"update-log-modal"},WSt={class:"timeline-content"},GSt={class:"timeline-header"},KSt={class:"version-tag"},qSt={class:"update-date"},YSt={class:"update-title"},XSt={class:"update-description"},ZSt={class:"update-changes"},JSt={class:"keywords-modal"},QSt={class:"keywords-list"},e6t=["onClick"],t6t={class:"keyword-content"},n6t={class:"keyword-text"},r6t={class:"keyword-meta"},i6t={class:"keyword-count"},o6t={__name:"Home",setup(e){qh([Nye,Xye,Kye,t3e,h3e,y3e,w3e,b3e]);const t=wS(),n=s3(),r=ma(),i=ue("week"),a=ue("hot"),s=ue({watchCount:0,totalWatchTime:0}),l=ue({watchCount:0,totalWatchTime:0}),c=ue([]),d=ue(0),h=ue([]),p=ue([]),v=ue([]),g=F(()=>{const ae=c.value.map(Y=>Y.count),ee=c.value.map(Y=>Y.day);return{title:{text:i.value==="week"?"本周观看统计":"本月观看统计",textStyle:{fontSize:14,color:"#1D2129"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(Y){const Q=Y[0];return`${Q.name}
${Q.seriesName}: ${Q.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:ee,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:ae,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),y=ae=>_4.getUpdateTypeConfig()[ae]?.color||"#86909c",S=()=>_4.getUpdateTypeConfig(),k=ae=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[ae]||"gray",w=ae=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[ae]||"#86909C",x=ae=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[ae]||"gray",E=ae=>_4.formatDate(ae),_=ae=>ae>=1e4?(ae/1e4).toFixed(1)+"w":ae>=1e3?(ae/1e3).toFixed(1)+"k":ae.toString(),T=()=>{console.log("更新统计图表:",i.value)},D=()=>{switch(a.value){case"hot":p.value=S4.getHotRecommendations(8);break;case"trending":p.value=S4.getTrendingRecommendations(8);break;case"random":p.value=S4.getRandomRecommendations(8);break}},P=ae=>{console.log("点击推荐内容:",ae)},M=ae=>{console.log("点击热搜关键词:",ae)},$=ue(!1),L=ue(!1),B=ue([]),j=ue([]),H=()=>{B.value=_4.getAllUpdateLogs(),$.value=!0},U=()=>{j.value=S4.getAllKeywords(),L.value=!0},W=()=>{$.value=!1},K=()=>{L.value=!1},oe=()=>{s.value=yx.getTodayStats(),l.value=yx.getYesterdayStats(),c.value=yx.getWeekStats(),d.value=yx.calculateGrowthRate(),h.value=_4.getRecentUpdateLogs(4),D(),v.value=S4.getHotKeywords(8)};return fn(()=>{if(n.query._restoreSearch==="true"){const ee=t.getPageState("search");if(ee&&ee.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",ee),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const Y={...n.query};delete Y._restoreSearch,r.replace({query:Y})}oe(),console.log("主页看板加载完成")}),(ae,ee)=>{const Y=Ee("a-option"),Q=Ee("a-select"),ie=Ee("a-link"),q=Ee("a-tag"),te=Ee("a-timeline-item"),Se=Ee("a-timeline"),Fe=Ee("a-modal");return z(),X(Pt,null,[I("div",P_t,[I("div",R_t,[I("div",M_t,[I("div",O_t,[I("h1",$_t,[O(tt(h3),{class:"title-icon"}),ee[4]||(ee[4]=He(" 数据看板 ",-1))]),ee[5]||(ee[5]=I("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),I("div",B_t,[I("div",N_t,[I("div",F_t,je(s.value.watchCount),1),ee[6]||(ee[6]=I("div",{class:"stat-label"},"今日观看",-1))]),I("div",j_t,[I("div",V_t,je(Math.round(s.value.totalWatchTime/60)),1),ee[7]||(ee[7]=I("div",{class:"stat-label"},"总时长(分钟)",-1))]),I("div",z_t,[I("div",{class:fe(["stat-value",{positive:d.value>0,negative:d.value<0}])},je(d.value>0?"+":"")+je(d.value)+"% ",3),ee[8]||(ee[8]=I("div",{class:"stat-label"},"增长率",-1))])])])]),I("div",U_t,[I("div",H_t,[I("div",W_t,[I("div",G_t,[I("h3",K_t,[O(tt(Gve),{class:"card-icon"}),ee[9]||(ee[9]=He(" 最近观看统计 ",-1))]),O(Q,{modelValue:i.value,"onUpdate:modelValue":ee[0]||(ee[0]=ve=>i.value=ve),size:"small",style:{width:"100px"},onChange:T},{default:ce(()=>[O(Y,{value:"week"},{default:ce(()=>[...ee[10]||(ee[10]=[He("本周",-1)])]),_:1}),O(Y,{value:"month"},{default:ce(()=>[...ee[11]||(ee[11]=[He("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",q_t,[O(tt(E3e),{class:"chart",option:g.value},null,8,["option"])])]),I("div",Y_t,[I("div",X_t,[I("h3",Z_t,[O(tt(Bm),{class:"card-icon"}),ee[12]||(ee[12]=He(" 更新日志 ",-1))]),O(ie,{onClick:H,size:"small"},{default:ce(()=>[...ee[13]||(ee[13]=[He("查看全部",-1)])]),_:1})]),I("div",J_t,[O(Se,null,{default:ce(()=>[(z(!0),X(Pt,null,cn(h.value,ve=>(z(),Ze(te,{key:ve.id,"dot-color":y(ve.type)},{default:ce(()=>[I("div",Q_t,[I("div",eSt,[I("span",tSt,je(ve.version),1),I("span",nSt,je(E(ve.date)),1)]),I("h4",rSt,je(ve.title),1),I("p",iSt,je(ve.description),1),I("div",oSt,[(z(!0),X(Pt,null,cn(ve.changes.slice(0,2),(Re,Ge)=>(z(),Ze(q,{key:Ge,size:"small",color:k(ve.type)},{default:ce(()=>[He(je(Re),1)]),_:2},1032,["color"]))),128)),ve.changes.length>2?(z(),X("span",sSt," +"+je(ve.changes.length-2)+"项更新 ",1)):Ae("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),I("div",aSt,[I("div",lSt,[I("h3",uSt,[O(tt(sA),{class:"card-icon"}),ee[14]||(ee[14]=He(" 猜你喜欢 ",-1))]),O(Q,{modelValue:a.value,"onUpdate:modelValue":ee[1]||(ee[1]=ve=>a.value=ve),size:"small",style:{width:"80px"},onChange:D},{default:ce(()=>[O(Y,{value:"hot"},{default:ce(()=>[...ee[15]||(ee[15]=[He("热门",-1)])]),_:1}),O(Y,{value:"trending"},{default:ce(()=>[...ee[16]||(ee[16]=[He("趋势",-1)])]),_:1}),O(Y,{value:"random"},{default:ce(()=>[...ee[17]||(ee[17]=[He("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",cSt,[I("div",dSt,[(z(!0),X(Pt,null,cn(p.value,ve=>(z(),X("div",{key:ve.id,class:"recommend-item",onClick:Re=>P(ve)},[I("div",hSt,[I("div",{class:"poster-placeholder",style:qe({backgroundColor:w(ve.type)})},je(ve.title.substring(0,2)),5),I("div",pSt,[O(tt(ha),{class:"play-icon"})]),ve.trending?(z(),X("div",vSt," 🔥 热门 ")):Ae("",!0)]),I("div",mSt,[I("h4",gSt,je(ve.title),1),I("div",ySt,[O(q,{size:"small",color:x(ve.type)},{default:ce(()=>[He(je(ve.type),1)]),_:2},1032,["color"]),I("span",bSt,[O(tt(UH)),He(" "+je(ve.rating),1)])]),I("div",_St,[(z(!0),X(Pt,null,cn(ve.tags.slice(0,2),Re=>(z(),Ze(q,{key:Re,size:"mini",color:"gray"},{default:ce(()=>[He(je(Re),1)]),_:2},1024))),128))])])],8,fSt))),128))])])]),I("div",SSt,[I("div",kSt,[I("h3",wSt,[O(tt(lW),{class:"card-icon"}),ee[18]||(ee[18]=He(" 热搜关键词 ",-1))]),O(ie,{onClick:U,size:"small"},{default:ce(()=>[...ee[19]||(ee[19]=[He("更多",-1)])]),_:1})]),I("div",xSt,[I("div",CSt,[(z(!0),X(Pt,null,cn(v.value,(ve,Re)=>(z(),X("div",{key:ve.keyword,class:"keyword-item",onClick:Ge=>M(ve)},[I("div",{class:fe(["keyword-rank",{"top-three":Re<3}])},je(Re+1),3),I("div",TSt,[I("span",ASt,je(ve.keyword),1),I("div",ISt,[I("span",LSt,je(_(ve.count)),1),I("span",{class:fe(["keyword-trend",ve.trend])},[ve.trend==="up"?(z(),Ze(tt(CV),{key:0})):ve.trend==="down"?(z(),Ze(tt(xV),{key:1})):(z(),Ze(tt(T0),{key:2}))],2)])])],8,ESt))),128))])])]),I("div",DSt,[I("div",PSt,[I("h3",RSt,[O(tt(d_),{class:"card-icon"}),ee[20]||(ee[20]=He(" 系统状态 ",-1))])]),I("div",MSt,[I("div",OSt,[I("div",$St,[I("div",BSt,[O(tt(yu))]),ee[21]||(ee[21]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"播放服务"),I("div",{class:"status-value"},"正常")],-1))]),I("div",NSt,[I("div",FSt,[O(tt(yu))]),ee[22]||(ee[22]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"数据同步"),I("div",{class:"status-value"},"正常")],-1))]),I("div",jSt,[I("div",VSt,[O(tt($c))]),ee[23]||(ee[23]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"存储空间"),I("div",{class:"status-value"},"85%")],-1))]),I("div",zSt,[I("div",USt,[O(tt(yu))]),ee[24]||(ee[24]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"网络连接"),I("div",{class:"status-value"},"良好")],-1))])])])]),O(D_t)])])]),O(Fe,{visible:$.value,"onUpdate:visible":ee[2]||(ee[2]=ve=>$.value=ve),title:"更新日志",width:"800px",footer:!1,onCancel:W},{default:ce(()=>[I("div",HSt,[O(Se,null,{default:ce(()=>[(z(!0),X(Pt,null,cn(B.value,ve=>(z(),Ze(te,{key:ve.id,"dot-color":y(ve.type)},{default:ce(()=>[I("div",WSt,[I("div",GSt,[I("span",KSt,je(ve.version),1),I("span",qSt,je(E(ve.date)),1),O(q,{size:"small",color:k(ve.type),class:"type-tag"},{default:ce(()=>[He(je(S()[ve.type]?.label||ve.type),1)]),_:2},1032,["color"])]),I("h4",YSt,je(ve.title),1),I("p",XSt,je(ve.description),1),I("div",ZSt,[(z(!0),X(Pt,null,cn(ve.changes,(Re,Ge)=>(z(),Ze(q,{key:Ge,size:"small",color:k(ve.type),class:"change-tag"},{default:ce(()=>[He(je(Re),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),O(Fe,{visible:L.value,"onUpdate:visible":ee[3]||(ee[3]=ve=>L.value=ve),title:"热搜关键词",width:"600px",footer:!1,onCancel:K},{default:ce(()=>[I("div",JSt,[I("div",QSt,[(z(!0),X(Pt,null,cn(j.value,(ve,Re)=>(z(),X("div",{key:ve.keyword,class:"keyword-item",onClick:Ge=>M(ve)},[I("div",{class:fe(["keyword-rank",{"top-three":Re<3}])},je(Re+1),3),I("div",t6t,[I("span",n6t,je(ve.keyword),1),I("div",r6t,[I("span",i6t,je(_(ve.count)),1),I("span",{class:fe(["keyword-trend",ve.trend])},[ve.trend==="up"?(z(),Ze(tt(CV),{key:0})):ve.trend==="down"?(z(),Ze(tt(xV),{key:1})):(z(),Ze(tt(T0),{key:2}))],2)])])],8,e6t))),128))])])]),_:1},8,["visible"])],64)}}},s6t=sr(o6t,[["__scopeId","data-v-217d9b8b"]]),a6t={class:"tag-container"},l6t={class:"search-section"},u6t={class:"search-row"},c6t={class:"source-count"},d6t={class:"sources-section"},f6t={key:0,class:"empty-state"},h6t={key:1,class:"button-container"},p6t={class:"source-info"},v6t={class:"source-name"},m6t={key:0,class:"current-icon"},g6t={class:"dialog-footer"},y6t={class:"footer-left"},b6t={class:"footer-right"},_6t={__name:"SourceDialog",props:{visible:Boolean,title:String,sites:Array,currentSiteKey:String},emits:["update:visible","confirm-clear","confirm-change","change-rule"],setup(e,{emit:t}){const n=e,r=t,i=ue(""),a=ue({new_site:{}}),s=ue(null),l=ue(!1),c=E=>{const _=E.match(/\[(.*?)\]/);return _?_[1]:null},d={ds:"(DS)",hipy:"(hipy)",cat:"(cat)"},h=F(()=>{const E=n.sites.filter(T=>T.type===4).map(T=>c(T.name)).filter(T=>T!==null);return[...[...new Set(E)],"ds","hipy","cat"]}),p=E=>{E==="全部"?i.value="":d[E]?i.value=d[E]:i.value=`[${E}]`,l.value=!1},v=F(()=>{const E=i.value.toLowerCase();return n.sites.filter(_=>_.type===4).filter(_=>_.name.toLowerCase().includes(E))}),g=F(()=>window.innerWidth<768?"95%":"700px"),y=E=>{a.value.new_site=E,r("change-rule",E)},S=()=>{r("confirm-clear"),r("update:visible",!1)},k=()=>{a.value.new_site.key&&(r("confirm-change",a.value.new_site),r("update:visible",!1))},w=()=>{r("update:visible",!1)},x=()=>{dn(()=>{if(s.value&&s.value.length>0){const E=s.value[0];E&&E.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return It(()=>n.visible,E=>{E&&n.currentSiteKey&&setTimeout(()=>{x()},100)}),It(v,()=>{n.visible&&n.currentSiteKey&&i.value.trim()!==""&&v.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{x()},50)}),(E,_)=>{const T=Ee("a-button"),D=Ee("a-modal"),P=Ee("a-input");return z(),X(Pt,null,[O(D,{visible:l.value,title:`TAG [${h.value.length}]`,width:g.value,class:"tag_dialog","append-to-body":"",onCancel:_[1]||(_[1]=M=>l.value=!1)},{default:ce(()=>[I("div",a6t,[O(T,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=M=>p("全部"))},{default:ce(()=>[..._[4]||(_[4]=[He(" 全部 ",-1)])]),_:1}),(z(!0),X(Pt,null,cn(h.value,(M,$)=>(z(),Ze(T,{key:$,type:"secondary",class:"tag-item",onClick:L=>p(M)},{default:ce(()=>[He(je(M),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),O(D,{visible:e.visible,title:e.title,width:g.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":S},{footer:ce(()=>[I("div",g6t,[I("div",y6t,[O(T,{type:"outline",status:"danger",onClick:S},{default:ce(()=>[O(tt(sc)),_[7]||(_[7]=He(" 清除缓存 ",-1))]),_:1})]),I("div",b6t,[O(T,{onClick:w},{default:ce(()=>[..._[8]||(_[8]=[He("取消",-1)])]),_:1}),O(T,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:ce(()=>[..._[9]||(_[9]=[He(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:ce(()=>[I("div",l6t,[I("div",u6t,[O(P,{modelValue:i.value,"onUpdate:modelValue":_[2]||(_[2]=M=>i.value=M),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:ce(()=>[O(tt(Mm))]),_:1},8,["modelValue"]),O(T,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=M=>l.value=!0)},{default:ce(()=>[..._[5]||(_[5]=[He(" TAG ",-1)])]),_:1})]),I("div",c6t," 共 "+je(v.value.length)+" 个可用数据源 ",1)]),I("div",d6t,[v.value.length===0?(z(),X("div",f6t,[O(tt(F5)),_[6]||(_[6]=I("p",null,"未找到匹配的数据源",-1))])):(z(),X("div",h6t,[(z(!0),X(Pt,null,cn(v.value,(M,$)=>(z(),X("div",{key:M.key||$,ref_for:!0,ref:M.key===e.currentSiteKey?"currentSourceRef":null,class:fe(["btn-item",{selected:a.value.new_site.key===M.key,"current-source":M.key===e.currentSiteKey}])},[O(T,{type:"primary",status:a.value.new_site.key===M.key?"success":"primary",size:"medium",onClick:L=>y(M),class:fe(["source-button",{"current-source-button":M.key===e.currentSiteKey}])},{default:ce(()=>[I("div",p6t,[I("div",v6t,je(M.name),1),M.key===e.currentSiteKey?(z(),X("div",m6t,[O(tt(Zh))])):Ae("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},S6t=sr(_6t,[["__scopeId","data-v-105ac4df"]]),k6t={name:"ActionDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},bottom:{type:Number,default:0},canceledOnTouchOutside:{type:Boolean,default:!0},dimAmount:{type:Number,default:.45},showClose:{type:Boolean,default:!0},escapeToClose:{type:Boolean,default:!0},customClass:{type:String,default:""},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["update:visible","close","open","opened","closed","toast","reset"],setup(e,{emit:t}){const n=ue(!1),r=ue(!1),i=()=>{r.value=window.innerWidth<=768},a=F(()=>{const p={};return r.value?(p.width="95vw",p.maxWidth="95vw",p.margin="0 auto"):(e.width&&(p.width=typeof e.width=="number"?`${e.width}px`:e.width,p.maxWidth="90vw"),e.height&&e.height!=="auto"&&(p.height=typeof e.height=="number"?`${e.height}px`:e.height)),e.bottom>0&&(p.marginBottom=`${e.bottom}px`),p}),s=F(()=>{const p={};return e.height&&e.height!=="auto"&&(p.maxHeight="calc(100% - 120px)",p.overflowY="auto"),p}),l=()=>{e.canceledOnTouchOutside&&c()},c=async()=>{n.value||(t("close"),n.value=!0,await new Promise(p=>setTimeout(p,300)),t("update:visible",!1),n.value=!1,t("closed"))},d=p=>{p.key==="Escape"&&e.escapeToClose&&e.visible&&c()};return It(()=>e.visible,p=>{p?(t("open"),i(),dn(()=>{t("opened")}),document.addEventListener("keydown",d),window.addEventListener("resize",i),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",d),window.removeEventListener("resize",i),document.body.style.overflow="")},{immediate:!0}),{isClosing:n,isMobile:r,dialogStyle:a,contentStyle:s,handleMaskClick:l,handleClose:c,cleanup:()=>{document.removeEventListener("keydown",d),window.removeEventListener("resize",i),document.body.style.overflow=""}}},beforeUnmount(){this.cleanup()}},w6t={key:1,class:"action-dialog-header"},x6t={class:"action-dialog-title"},C6t={key:2,class:"action-dialog-footer"};function E6t(e,t,n,r,i,a){return z(),Ze(Jm,{to:"body"},[O(Cs,{name:"action-mask",appear:""},{default:ce(()=>[n.visible?(z(),X("div",{key:0,class:fe(["action-mask modal-backdrop",{closing:r.isClosing}]),style:qe({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[O(Cs,{name:"action-dialog",appear:""},{default:ce(()=>[n.visible&&!r.isClosing?(z(),X("div",{key:0,class:fe(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:qe(r.dialogStyle),onClick:t[1]||(t[1]=fs(()=>{},["stop"]))},[t[4]||(t[4]=I("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(z(),X("button",{key:0,class:"action-dialog-close btn-modern-icon",onClick:t[0]||(t[0]=(...s)=>r.handleClose&&r.handleClose(...s)),title:"关闭"},[...t[3]||(t[3]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):Ae("",!0),n.title||e.$slots.header?(z(),X("div",w6t,[mt(e.$slots,"header",{},()=>[I("h3",x6t,je(n.title),1)],!0)])):Ae("",!0),I("div",{class:"action-dialog-content",style:qe(r.contentStyle)},[mt(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(z(),X("div",C6t,[mt(e.$slots,"footer",{},void 0,!0)])):Ae("",!0)],6)):Ae("",!0)]),_:3})],6)):Ae("",!0)]),_:3})])}const np=sr(k6t,[["render",E6t],["__scopeId","data-v-36eb5ad8"]]),Ti={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help",SPECIAL:"special"},Ih={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},gi={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},Yc=e=>e==null?gi.OK_CANCEL:Object.values(gi).includes(e)?e:gi.CUSTOM,Lh=(e,t,n=null)=>({type:e,message:t,details:n}),AG=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw Lh(Ih.PARSE_ERROR,"无法解析Action配置",t)}},R3e=e=>!e||typeof e!="object"?!1:!!(e.actionId==="__copy__"&&e.content||e.actionId&&e.actionId.startsWith("__")&&e.actionId.endsWith("__")),T6t=e=>{if(e.actionId==="__copy__"){if(!e.content)throw Lh(Ih.VALIDATION_ERROR,"剪贴板操作必须包含content字段");return!0}if(e.actionId&&e.actionId.startsWith("__")&&e.actionId.endsWith("__"))return!0;throw Lh(Ih.VALIDATION_ERROR,`未知的专项动作类型: ${e.actionId}`)},M3e=e=>{if(!e||typeof e!="object")throw Lh(Ih.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw Lh(Ih.VALIDATION_ERROR,"actionId是必需的");if(console.log("config:",e),R3e(e))return T6t(e);if(!e.type)throw Lh(Ih.VALIDATION_ERROR,"type字段是必需的(除非是专项动作)");if(!Object.values(Ti).includes(e.type))throw Lh(Ih.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},c0=e=>{if(!e)return[];try{if(e.match(/^\[(?:folder|calendar|file|image)\]$/)){const t=e.slice(1,-1).toLowerCase();return[{name:{calendar:"📅 选择日期",file:"📄 选择文件",folder:"📁 选择文件夹",image:"🖼️ 选择图片"}[t]||e,value:e}]}if(e.startsWith("[")&&e.includes("]")){const t=e.indexOf("]"),n=e.substring(1,t),r=e.substring(t+1);return r?r.split(",").map(i=>{const a=i.trim();return{name:a,value:a}}).filter(i=>i.name):[{name:n,value:e}]}if(e.startsWith("[")&&e.endsWith("]")||e.startsWith("{")&&e.endsWith("}"))try{return JSON.parse(e)}catch{}return e.includes(":=")?e.split(",").map(t=>{const n=t.trim(),[r,i]=n.split(":=");return{name:r?r.trim():n,value:i?i.trim():n}}).filter(t=>t.name):e.split("|").map(t=>{const[n,r]=t.split("=");return{name:n||t,value:r||t}})}catch(t){return console.warn("解析selectData失败:",t),[]}},O3e=(e,t="200x200")=>{const[n,r]=t.split("x").map(i=>parseInt(i)||200);return`https://api.qrserver.com/v1/create-qr-code/?size=${n}x${r}&data=${encodeURIComponent(e)}`},$3e=(e,t)=>{let n;return function(...i){const a=()=>{clearTimeout(n),e(...i)};clearTimeout(n),n=setTimeout(a,t)}},ca=e=>{if(e){if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch(t){console.warn("extend参数JSON序列化失败:",t);return}return e}},bx=e=>{if(!e)return console.log("🔍 [Headers解析] 输入为空,返回空对象"),{};if(console.log("🔍 [Headers解析] 输入数据:",e,"类型:",typeof e),typeof e=="object"&&e!==null)return console.log("🔍 [Headers解析] 已是对象,直接返回:",e),e;if(typeof e=="string")try{const t=JSON.parse(e),n=typeof t=="object"&&t!==null?t:{};return console.log("🔍 [Headers解析] JSON字符串解析成功:",n),n}catch(t){return console.warn("🔍 [Headers解析] JSON字符串解析失败:",t,"原始数据:",e),{}}return console.log("🔍 [Headers解析] 未知类型,返回空对象"),{}},O0=e=>{const t=encodeURIComponent(e);return`${vW.MODULE}/${t}`},w3=async(e,t={})=>{try{return(await uo.get(e,{params:t,timeout:m0.TIMEOUT,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},A6t=async(e,t={})=>{const{filter:n=1,extend:r,apiUrl:i}=t,a={filter:n},s=ca(r);return s&&(a.extend=s),i?w3(i,a):H0(O0(e),a)},J1=async(e,t)=>{const{t:n,pg:r=xme.DEFAULT_PAGE,ext:i,extend:a,apiUrl:s}=t,l={ac:mA.CATEGORY,t:n,pg:r};i&&(l.ext=i);const c=ca(a);return c&&(l.extend=c),s?w3(s,l):H0(O0(e),l)},I6t=async(e,t)=>{const{ids:n,extend:r,apiUrl:i}=t,a={ac:mA.DETAIL,ids:n},s=ca(r);return s&&(a.extend=s),i?w3(i,a):H0(O0(e),a)},B3e=async(e,t)=>{const{play:n,flag:r,extend:i,apiUrl:a}=t,s={ac:mA.PLAY,play:n};r&&(s.flag=r);const l=ca(i);return l&&(s.extend=l),a?w3(a,s):H0(O0(e),s)},L6t=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await B3e(e,t);console.log("T4播放解析响应:",n);const r=n?.headers||n?.header;r&&console.log("T4接口返回的原始headers:",r,"类型:",typeof r);const i={success:!0,data:n,playType:"direct",url:"",headers:{},needParse:!1,needSniff:!1,message:""};if(n&&typeof n=="object")if(n.jx===1)i.playType="parse",i.url=n.url||n.play_url||"",i.headers=bx(n.headers||n.header),i.needParse=!0,i.qualities=[],i.hasMultipleQualities=!1,i.message="需要解析才能播放,尽情期待";else if(n.parse===0){i.playType="direct";const a=n.url||n.play_url||"";if(Array.isArray(a)){console.log("检测到多画质URL数组:",a);const s=[];for(let l=0;l1,s.length>0?(i.url=s[0].url,i.currentQuality=s[0].name,i.message=`多画质播放 (当前: ${s[0].name})`):(i.url="",i.message="多画质数据解析失败")}else i.url=a,i.qualities=[],i.hasMultipleQualities=!1,i.currentQuality="默认",i.message="直链播放";i.headers=bx(n.headers||n.header),i.needParse=!1,i.needSniff=!1}else n.parse===1?(i.playType="sniff",i.url=n.url||n.play_url||"",i.headers=bx(n.headers||n.header),i.needSniff=!0,i.qualities=[],i.hasMultipleQualities=!1,i.message="需要嗅探才能播放,尽情期待"):(i.url=n.url||n.play_url||n,i.headers=bx(n.headers||n.header),i.qualities=[],i.hasMultipleQualities=!1,i.message="直链播放");else typeof n=="string"&&(i.url=n,i.headers={},i.qualities=[],i.hasMultipleQualities=!1,i.message="直链播放");return i}catch(n){return console.error("T4播放解析失败:",n),{success:!1,error:n.message||"播放解析失败",playType:"error",url:"",headers:{},needParse:!1,needSniff:!1,message:"播放解析失败: "+(n.message||"未知错误")}}},D6t=async(e,t)=>{const{wd:n,pg:r=xme.DEFAULT_PAGE,extend:i,apiUrl:a}=t,s={wd:n,pg:r},l=ca(i);return l&&(s.extend=l),a?w3(a,s):H0(O0(e),s)},xS=async(e,t)=>{const{action:n,extend:r,apiUrl:i,...a}=t,s={ac:mA.ACTION,action:n,...a},l=ca(r);if(l&&(s.extend=l),console.log("executeAction调用参数:",{module:e,data:t,requestData:s,apiUrl:i}),i)if(console.log("直接调用API:",i,s),i.endsWith(".json")){const d=await uo.get(i,{timeout:m0.TIMEOUT,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",d.data),d.data}else{const d=await uo.post(i,s,{timeout:m0.TIMEOUT,headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}});return console.log("API响应 (POST):",d.data),d.data}console.log("使用代理方式调用:",O0(e),s);const c=await Cme(O0(e),s);return console.log("代理响应:",c),c},P6t=async(e,t,n)=>{const r={refresh:"1"},i=ca(t);return i&&(r.extend=i),n?w3(n,r):H0(O0(e),r)},R6t=Qm(()=>pc(()=>Promise.resolve().then(()=>Dkt),void 0)),M6t=Qm(()=>pc(()=>Promise.resolve().then(()=>Wwt),void 0)),O6t=Qm(()=>pc(()=>Promise.resolve().then(()=>Wxt),void 0)),$6t=Qm(()=>pc(()=>Promise.resolve().then(()=>$Ct),void 0)),B6t=Qm(()=>pc(()=>Promise.resolve().then(()=>uEt),void 0)),N6t=Qm(()=>pc(()=>Promise.resolve().then(()=>g8t),void 0)),F6t={name:"ActionRenderer",components:{ActionDialog:np,InputAction:R6t,MultiInputAction:M6t,MenuAction:O6t,MsgBoxAction:$6t,WebViewAction:B6t,HelpAction:N6t},props:{actionData:{type:[String,Object],default:null},visible:{type:Boolean,default:!0},autoShow:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["action","close","error","success","special-action"],setup(e,{emit:t}){const n=ue(null),r=ue(null),i=ue(!1),a=ue(e.visible),s={[Ti.INPUT]:"InputAction",[Ti.EDIT]:"InputAction",[Ti.MULTI_INPUT]:"MultiInputAction",[Ti.MULTI_INPUT_X]:"MultiInputAction",[Ti.MENU]:"MenuAction",[Ti.SELECT]:"MenuAction",[Ti.MSGBOX]:"MsgBoxAction",[Ti.WEBVIEW]:"WebViewAction",[Ti.HELP]:"HelpAction"},l=F(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const T=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:T,parsedConfig:n.value}),T}),c=async T=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",T),!T){n.value=null;return}const D=AG(T);if(console.log("ActionRenderer parseConfig 解析后的配置:",D),M3e(D),R3e(D)){console.log("检测到特殊动作,立即执行:",D),await d(D);return}n.value=D,r.value=null,console.log("ActionRenderer parseConfig 设置 parsedConfig.value:",n.value),e.autoShow?(a.value=!0,console.log("ActionRenderer parseConfig 设置 isVisible.value = true, autoShow:",e.autoShow)):console.log("ActionRenderer parseConfig autoShow 为 false,不自动显示")}catch(D){console.error("解析Action配置失败:",D),r.value=D,n.value=null}},d=async T=>{const{actionId:D}=T;switch(D){case"__self_search__":if(console.log("🚀 [ActionRenderer DEBUG] 处理__self_search__专项动作"),console.log("🚀 [ActionRenderer DEBUG] actionData:",JSON.stringify(T,null,2)),!T.tid){console.error("🚀 [ActionRenderer ERROR] 源内搜索参数不完整:缺少tid"),Hn("源内搜索参数不完整:缺少tid","error"),v();break}const P={tid:T.tid,type_id:T.tid,name:T.name,type_name:T.name||`搜索: ${T.tid}`,isSpecialCategory:!0,actionData:T};console.log("🚀 [ActionRenderer DEBUG] 构造的 specialCategory:",JSON.stringify(P,null,2)),console.log("🚀 [ActionRenderer DEBUG] 即将触发 special-action 事件"),Hn(T.msg||"执行源内搜索","info"),t("special-action","__self_search__",P),console.log("🚀 [ActionRenderer DEBUG] special-action 事件已触发,关闭组件"),v();break;case"__detail__":Hn("跳转到详情页","info"),t("special-action","detail",T),v();break;case"__ktvplayer__":Hn("启动KTV播放","info"),t("special-action","ktv-player",T),v();break;case"__refresh_list__":Hn("刷新列表","info"),t("special-action","refresh-list",T),v();break;case"__copy__":if(T.content)try{await navigator.clipboard.writeText(T.content),Hn("已复制到剪切板","success")}catch{Hn("复制失败","error")}v();break;case"__keep__":T.msg&&Hn(T.msg,"info"),T.reset&&(n.value=null);break;default:Hn(`未知的专项动作: ${D}`,"warning"),v();break}},h=async T=>{if(n.value)try{i.value=!0;const D={action:n.value.actionId,value:typeof T=="object"?JSON.stringify(T):T};e.extend&&(D.extend=e.extend),e.apiUrl&&(D.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:D,apiUrl:e.apiUrl});let P=null;if(e.module?(P=await x(e.module,D),console.log("T4接口返回结果:",P)):(P=await t("action",n.value.actionId,T),console.log("父组件处理结果:",P)),P){if(typeof P=="string")try{P=JSON.parse(P)}catch{Hn(P,"success"),t("success",T),v();return}if(typeof P=="object"){if(console.log("处理API返回的对象结果:",P),P.error)throw Lh(Ih.NETWORK_ERROR,P.error);if(P.toast&&Hn(P.toast,"success"),(P.message||P.msg)&&Hn(P.message||P.msg,"success"),P.action){console.log("检测到动态action,重新解析:",P.action),await c(P.action);return}if(P.actionId){console.log("检测到专项动作:",P.actionId),await d(P);return}if(P.code!==void 0)if(P.code===0||P.code===200){if(P.data&&typeof P.data=="object"){const M={...P.data};if(M.action||M.actionId){if(console.log("在data字段中检测到action:",M),M.action){await c(M.action);return}if(M.actionId){await d(M);return}}}Hn(P.message||P.msg||"操作成功","success")}else throw Lh(Ih.NETWORK_ERROR,P.message||P.msg||`操作失败,错误码: ${P.code}`)}}t("success",T),v()}catch(D){console.error("执行Action失败:",D),r.value=D,Hn(D.message||"操作失败","error")}finally{i.value=!1}},p=()=>{v()},v=()=>{a.value=!1,n.value=null,t("close")},g=async(T,D)=>{if(typeof T=="object"&&T.type){console.log("ActionRenderer接收到新的动作配置:",T),a.value=!1,await new Promise(P=>setTimeout(P,100)),await c(T);return}await h({action:T,value:D})},y=()=>{r.value=null},S=(T,D)=>{console.log("🔗 [ActionRenderer DEBUG] 接收到子组件的 special-action 事件"),console.log("🔗 [ActionRenderer DEBUG] actionType:",T),console.log("🔗 [ActionRenderer DEBUG] actionData:",JSON.stringify(D,null,2)),console.log("🔗 [ActionRenderer DEBUG] 向父组件传递 special-action 事件"),t("special-action",T,D),v()};It(()=>e.actionData,async T=>{await c(T)},{immediate:!0}),It(()=>e.visible,T=>{a.value=T});const k=async T=>{T&&await c(T),a.value=!0},w=()=>{a.value=!1},x=async(T,D)=>{try{return i.value=!0,await t("action",T,D)}catch(P){throw r.value=P,P}finally{i.value=!1}};return{parsedConfig:n,currentComponent:l,error:r,isLoading:i,isVisible:a,handleSubmit:h,handleCancel:p,handleClose:v,handleAction:g,handleToast:(T,D="success")=>{Hn(T,D)},handleReset:()=>{console.log("InputAction触发重置事件")},handleSpecialActionFromChild:S,clearError:y,show:k,hide:w,executeAction:x}}},j6t={class:"action-renderer"},V6t={class:"action-error"},z6t={key:0};function U6t(e,t,n,r,i,a){const s=Ee("ActionDialog");return z(),X("div",j6t,[r.parsedConfig?(z(),Ze(Ca(r.currentComponent),{key:0,config:r.parsedConfig,visible:r.isVisible,module:n.module,extend:n.extend,"api-url":n.apiUrl,onSubmit:r.handleSubmit,onCancel:r.handleCancel,onClose:r.handleClose,onAction:r.handleAction,onToast:r.handleToast,onReset:r.handleReset,onSpecialAction:r.handleSpecialActionFromChild},null,40,["config","visible","module","extend","api-url","onSubmit","onCancel","onClose","onAction","onToast","onReset","onSpecialAction"])):Ae("",!0),r.error?(z(),Ze(s,{key:1,visible:!!r.error,title:"错误",width:"400",onClose:r.clearError},{footer:ce(()=>[I("button",{class:"action-button action-button-primary",onClick:t[0]||(t[0]=(...l)=>r.clearError&&r.clearError(...l))}," 确定 ")]),default:ce(()=>[I("div",V6t,[I("p",null,[I("strong",null,je(r.error.type),1)]),I("p",null,je(r.error.message),1),r.error.details?(z(),X("pre",z6t,je(JSON.stringify(r.error.details,null,2)),1)):Ae("",!0)])]),_:1},8,["visible","onClose"])):Ae("",!0),r.isLoading?(z(),Ze(s,{key:2,visible:r.isLoading,title:"处理中",width:"300","show-close":!1},{default:ce(()=>[...t[1]||(t[1]=[I("div",{class:"action-loading"}," 正在处理,请稍候... ",-1)])]),_:1},8,["visible"])):Ae("",!0)])}const ug=sr(F6t,[["render",U6t],["__scopeId","data-v-3c8cada7"]]),H6t={name:"InputAction",components:{ActionDialog:np},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ma(),r=ue(null),i=ue(null),a=ue(""),s=ue(""),l=ue(null),c=ue(0),d=ue(null),h=ue(!1),p=ue(""),v=ue(e.config.msg||""),g=F(()=>e.config.type==="edit"||e.config.multiLine>1),y=F(()=>{const{inputType:ve=0}=e.config;return{0:"text",1:"password",2:"number",3:"email",4:"url"}[ve]||"text"}),S=F(()=>c0(e.config.selectData||"")),k=F(()=>e.config.qrcode?O3e(e.config.qrcode,e.config.qrcodeSize):""),w=F(()=>{const ve=Yc(e.config.button);return ve===gi.OK_CANCEL||ve===gi.OK_ONLY||ve===gi.CUSTOM}),x=F(()=>{const ve=Yc(e.config.button);return ve===gi.OK_CANCEL||ve===gi.CANCEL_ONLY||ve===gi.CUSTOM}),E=F(()=>Yc(e.config.button)===gi.CUSTOM),_=F(()=>!!s.value),T=F(()=>!(_.value||e.config.required&&!a.value.trim())),D=$3e(ve=>{if(s.value="",e.config.required&&!ve.trim())return s.value="此字段为必填项",!1;if(e.config.validation)try{if(!new RegExp(e.config.validation).test(ve))return s.value="输入格式不正确",!1}catch(Re){console.warn("验证正则表达式错误:",Re)}if(y.value==="email"&&ve&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(ve))return s.value="请输入有效的邮箱地址",!1;if(y.value==="url"&&ve)try{new URL(ve)}catch{return s.value="请输入有效的URL地址",!1}return!0},300),P=ve=>{const Re=ve.target.value;a.value=Re,D(Re)},M=async()=>{if(!T.value)return;const ve={};e.config.imageClickCoord&&l.value&&(ve.imageCoords=l.value);const Re=a.value;if(ve[e.config.id||"value"]=Re,e.config.actionId)try{console.log("111:",e.config.actionId);const Ge=await Fe(e.config.actionId,Re);if(console.log("222:",typeof Ge),typeof Ge=="string"){Hn(Ge,"success"),t("close");return}if(Ge&&Ge.action){const nt=Ge.action,Ie=Ge.toast;switch(Ie&&Hn(Ie,"success"),nt.actionId){case"__keep__":nt.msg&&(v.value=nt.msg),nt.reset&&(a.value="",s.value="",t("reset"));return;case"__detail__":console.log("详情页跳转:",nt),await $(nt),t("close");return;case"__copy__":await L(nt,Ie),t("close");return;case"__self_search__":await B(nt),t("close");return;case"__refresh_list__":await j(nt),t("close");return;case"__ktvplayer__":await H(nt),t("close");return;default:if(nt.type){console.log("检测到普通动作,触发新的ActionRenderer:",nt),t("action",nt);return}else console.warn("未知的专项动作:",nt.actionId);break}}}catch(Ge){console.error("确认按钮T4接口调用失败:",Ge),Hn("操作失败,请重试","error");return}t("submit",ve)},$=async ve=>{try{const{skey:Re,ids:Ge}=ve;if(!Re||!Ge){Hn("详情页跳转参数不完整","error");return}const nt=Qo.getSiteByKey(Re);if(!nt){Hn(`未找到站源: ${Re}`,"error");return}console.log("跳转到详情页:",{skey:Re,ids:Ge,site:nt.name}),console.log("site:",nt),n.push({name:"VideoDetail",params:{id:Ge},query:{tempSiteName:nt.name,tempSiteApi:nt.api,tempSiteKey:nt.key,tempSiteExt:nt.ext,fromSpecialAction:"true",actionType:"__detail__",sourcePic:""}}),Hn(`正在加载 ${nt.name} 的详情...`,"info")}catch(Re){console.error("详情页跳转失败:",Re),Hn("详情页跳转失败","error")}},L=async(ve,Re)=>{try{const{content:Ge}=ve;if(!Ge){Hn("没有可复制的内容","error");return}await navigator.clipboard.writeText(Ge),Re||Hn("已复制到剪切板","success")}catch(Ge){console.error("复制失败:",Ge),Hn("复制失败","error")}},B=async ve=>{try{const{skey:Re,name:Ge,tid:nt,flag:Ie,folder:_e}=ve,me={name:Ge||"搜索",tid:nt||"",flag:Ie||"",folder:_e||""};if(Re){const ge=Qo.getSiteByKey(Re);ge&&(Qo.setCurrentSite(Re),Hn(`已切换到 ${ge.name}`,"info"))}console.log("执行源内搜索:",me),Hn("正在执行源内搜索...","info"),console.log("📝 [InputAction DEBUG] 即将触发 special-action 事件"),console.log("📝 [InputAction DEBUG] 事件参数:",{actionType:"__self_search__",eventData:{tid:me.tid,name:me.name,type_id:me.tid,type_name:me.name,actionData:me}}),t("special-action","__self_search__",{tid:me.tid,name:me.name,type_id:me.tid,type_name:me.name,actionData:me}),console.log("📝 [InputAction DEBUG] special-action 事件已触发")}catch(Re){console.error("源内搜索失败:",Re),Hn("源内搜索失败","error")}},j=async ve=>{try{console.log("执行刷新列表:",ve);const Ge=n.currentRoute.value.name;switch(Ge){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:{...ve,type:"video"}}));break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:{...ve,type:"live"}}));break;case"Collection":window.dispatchEvent(new CustomEvent("refreshCollectionList",{detail:{...ve,type:"collection"}}));break;case"History":window.dispatchEvent(new CustomEvent("refreshHistoryList",{detail:{...ve,type:"history"}}));break;case"BookGallery":window.dispatchEvent(new CustomEvent("refreshBookList",{detail:{...ve,type:"book"}}));break;default:window.dispatchEvent(new CustomEvent("refreshList",{detail:{...ve,routeName:Ge}}));break}ve.type&&window.dispatchEvent(new CustomEvent(`refresh${ve.type}List`,{detail:ve})),Hn("列表刷新中...","info"),setTimeout(()=>{Hn("列表已刷新","success")},500)}catch(Re){console.error("刷新列表失败:",Re),Hn("刷新列表失败","error")}},H=async ve=>{try{const{name:Re,id:Ge,url:nt,type:Ie="ktv"}=ve;if(!Re||!Ge){Hn("KTV播放参数不完整","error");return}console.log("启动KTV播放:",{name:Re,id:Ge,url:nt,type:Ie});const _e={title:Re,videoId:Ge,playUrl:nt||Ge,playType:Ie,isKtv:!0,showLyrics:!0,enableKaraokeMode:!0,fromAction:"__ktvplayer__"};try{n.push({name:"KtvPlayer",params:{id:Ge},query:{title:Re,url:nt||Ge,type:Ie,mode:"ktv"}}),Hn(`正在启动KTV播放: ${Re}`,"success")}catch{console.log("KTV专用页面不存在,使用通用播放器"),window.dispatchEvent(new CustomEvent("startKtvPlay",{detail:_e})),n.push({name:"VideoPlayer",params:{id:Ge},query:{title:Re,url:nt||Ge,type:Ie,ktvMode:"true",showLyrics:"true",fromAction:"__ktvplayer__"}}),Hn(`正在播放: ${Re}`,"success")}}catch(Re){console.error("KTV播放失败:",Re),Hn("KTV播放失败","error")}},U=async()=>{if(e.config.cancelAction&&e.config.cancelValue!==void 0)try{await Fe(e.config.cancelAction,e.config.cancelValue)}catch(ve){console.error("取消按钮T4接口调用失败:",ve)}t("cancel"),t("close")},W=()=>{a.value="",s.value="",r.value&&r.value.focus()},K=()=>{p.value=a.value,h.value=!0,dn(()=>{i.value&&i.value.focus()})},oe=()=>{h.value=!1},ae=()=>{a.value=p.value,h.value=!1,P({target:{value:p.value}})},ee=ve=>{if(!e.config.imageClickCoord)return;const Re=ve.target.getBoundingClientRect(),Ge=Math.round(ve.clientX-Re.left),nt=Math.round(ve.clientY-Re.top);l.value={x:Ge,y:nt};const Ie=`${Ge},${nt}`;a.value.trim()?a.value=`${a.value}-${Ie}`:a.value=Ie,D(a.value)},Y=ve=>{a.value=ve.value,D(ve.value),e.config.onlyQuickSelect&&dn(()=>{M()})},Q=()=>{console.log("图片加载成功")},ie=()=>{console.error("图片加载失败")},q=()=>{console.error("二维码生成失败")},te=()=>{!e.config.timeout||e.config.timeout<=0||(c.value=e.config.timeout,d.value=setInterval(()=>{c.value--,c.value<=0&&(clearInterval(d.value),U())},1e3))},Se=()=>{d.value&&(clearInterval(d.value),d.value=null),c.value=0},Fe=async(ve,Re)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;const Ge={},nt=e.config.id||"value";Ge[nt]=Re;const Ie={action:ve,value:JSON.stringify(Ge)};e.extend&&e.extend.ext&&(Ie.extend=e.extend.ext),e.apiUrl&&(Ie.apiUrl=e.apiUrl),console.log("InputAction调用T4接口:",{module:e.module,actionData:Ie,apiUrl:e.apiUrl});let _e=null;return e.module?(console.log("调用模块:",e.module),_e=await xS(e.module,Ie)):e.apiUrl&&(console.log("直接调用API:",e.apiUrl),_e=(await(await pc(async()=>{const{default:Be}=await Promise.resolve().then(()=>hW);return{default:Be}},void 0)).default.post(e.apiUrl,Ie,{timeout:pW(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",_e),_e};return It(()=>e.config,ve=>{a.value=ve.value||"",s.value="",l.value=null,ve.timeout?te():Se()},{immediate:!0}),It(()=>e.visible,ve=>{ve?(dn(()=>{r.value&&r.value.focus()}),te()):Se()}),fn(()=>{e.visible&&r.value&&r.value.focus()}),Yr(()=>{Se()}),{inputRef:r,inputValue:a,errorMessage:s,imageCoords:l,timeLeft:c,currentMessage:v,isMultiLine:g,inputType:y,quickSelectOptions:S,qrcodeUrl:k,showOkButton:w,showCancelButton:x,showResetButton:E,hasError:_,isValid:T,handleInput:P,handleSubmit:M,handleCancel:U,handleReset:W,handleImageClick:ee,selectQuickOption:Y,onImageLoad:Q,onImageError:ie,onQrcodeError:q,textEditorRef:i,showTextEditor:h,editorText:p,openTextEditor:K,closeTextEditor:oe,saveEditorText:ae}}},W6t={class:"input-action-modern"},G6t={key:0,class:"message-section"},K6t={class:"message-content"},q6t={class:"message-text"},Y6t={key:1,class:"media-section"},X6t={class:"image-container"},Z6t=["src"],J6t={key:0,class:"coords-display"},Q6t={class:"coords-value"},ekt={key:2,class:"media-section"},tkt={class:"qrcode-container"},nkt={class:"qrcode-wrapper"},rkt=["src","alt"],ikt={class:"qrcode-text"},okt={key:3,class:"input-section"},skt={key:0,class:"quick-select"},akt={class:"quick-select-options"},lkt={class:"input-group"},ukt={key:0,class:"input-label"},ckt={key:1,class:"input-container"},dkt={class:"input-wrapper-modern"},fkt=["type","placeholder"],hkt={class:"input-actions"},pkt={key:2,class:"textarea-container"},vkt={class:"textarea-wrapper-modern"},mkt=["placeholder","rows"],gkt={class:"input-status"},ykt={key:0,class:"error-message"},bkt={key:1,class:"help-message"},_kt={key:2,class:"char-count"},Skt={key:4,class:"timeout-section"},kkt={class:"timeout-indicator"},wkt={class:"timeout-text"},xkt={class:"timeout-progress"},Ckt={class:"modern-footer"},Ekt=["disabled"],Tkt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Akt={class:"text-editor"},Ikt={class:"modern-footer"};function Lkt(e,t,n,r,i,a){const s=Ee("a-tag"),l=Ee("ActionDialog");return z(),X(Pt,null,[O(l,{visible:n.visible,title:n.config.title,width:n.config.width||420,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[14]||(t[14]=(c,d)=>e.emit("toast",c,d)),onReset:t[15]||(t[15]=()=>e.emit("reset"))},{footer:ce(()=>[I("div",Ckt,[r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[11]||(t[11]=(...c)=>r.handleCancel&&r.handleCancel(...c))},[...t[26]||(t[26]=[I("span",null,"取消",-1)])])):Ae("",!0),r.showResetButton?(z(),X("button",{key:1,class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...c)=>r.handleReset&&r.handleReset(...c))},[...t[27]||(t[27]=[I("span",null,"重置",-1)])])):Ae("",!0),r.showOkButton?(z(),X("button",{key:2,class:fe(["btn-modern btn-primary",{disabled:!r.isValid}]),disabled:!r.isValid,onClick:t[13]||(t[13]=(...c)=>r.handleSubmit&&r.handleSubmit(...c))},[t[29]||(t[29]=I("span",null,"确定",-1)),r.isValid?(z(),X("svg",Tkt,[...t[28]||(t[28]=[I("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])):Ae("",!0)],10,Ekt)):Ae("",!0)])]),default:ce(()=>[I("div",W6t,[n.config.msg?(z(),X("div",G6t,[I("div",K6t,[t[19]||(t[19]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),I("p",q6t,je(r.currentMessage),1)])])):Ae("",!0),n.config.imageUrl?(z(),X("div",Y6t,[I("div",X6t,[I("img",{src:n.config.imageUrl,style:qe({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:fe(["action-image-modern",{clickable:n.config.imageClickCoord}]),onClick:t[0]||(t[0]=(...c)=>r.handleImageClick&&r.handleImageClick(...c)),onLoad:t[1]||(t[1]=(...c)=>r.onImageLoad&&r.onImageLoad(...c)),onError:t[2]||(t[2]=(...c)=>r.onImageError&&r.onImageError(...c))},null,46,Z6t),r.imageCoords?(z(),X("div",J6t,[t[20]||(t[20]=I("span",{class:"coords-label"},"点击坐标:",-1)),I("span",Q6t,je(r.imageCoords.x)+", "+je(r.imageCoords.y),1)])):Ae("",!0)])])):Ae("",!0),n.config.qrcode?(z(),X("div",ekt,[I("div",tkt,[I("div",nkt,[I("img",{src:r.qrcodeUrl,alt:n.config.qrcode,class:"qrcode-image",onError:t[3]||(t[3]=(...c)=>r.onQrcodeError&&r.onQrcodeError(...c))},null,40,rkt)]),I("p",ikt,je(n.config.qrcode),1)])])):Ae("",!0),n.config.qrcode?Ae("",!0):(z(),X("div",okt,[r.quickSelectOptions.length>0?(z(),X("div",skt,[I("div",akt,[(z(!0),X(Pt,null,cn(r.quickSelectOptions,c=>(z(),Ze(s,{key:c.value,class:"quick-select-tag",onClick:d=>r.selectQuickOption(c)},{default:ce(()=>[He(je(c.name),1)]),_:2},1032,["onClick"]))),128))])])):Ae("",!0),I("div",lkt,[n.config.tip?(z(),X("label",ukt,je(n.config.tip),1)):Ae("",!0),r.isMultiLine?(z(),X("div",pkt,[I("div",vkt,[Ci(I("textarea",{ref:"inputRef","onUpdate:modelValue":t[8]||(t[8]=c=>r.inputValue=c),placeholder:n.config.tip||"请输入内容...",rows:n.config.multiLine||4,class:fe(["textarea-field-modern",{error:r.hasError,success:!r.hasError&&r.inputValue.length>0}]),onInput:t[9]||(t[9]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,mkt),[[Ql,r.inputValue]]),I("button",{class:"expand-btn textarea-expand",onClick:t[10]||(t[10]=(...c)=>r.openTextEditor&&r.openTextEditor(...c)),title:"打开大文本编辑器"},[...t[22]||(t[22]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])])])])):(z(),X("div",ckt,[I("div",dkt,[Ci(I("input",{ref:"inputRef","onUpdate:modelValue":t[4]||(t[4]=c=>r.inputValue=c),type:r.inputType,placeholder:n.config.tip||"请输入内容...",class:fe(["input-field-modern",{error:r.hasError,success:!r.hasError&&r.inputValue.length>0}]),onKeyup:t[5]||(t[5]=df((...c)=>r.handleSubmit&&r.handleSubmit(...c),["enter"])),onInput:t[6]||(t[6]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,fkt),[[A5,r.inputValue]]),I("div",hkt,[I("button",{class:"expand-btn",onClick:t[7]||(t[7]=(...c)=>r.openTextEditor&&r.openTextEditor(...c)),title:"打开大文本编辑器"},[...t[21]||(t[21]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])])])])])),I("div",gkt,[r.errorMessage?(z(),X("div",ykt,[t[23]||(t[23]=I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293-1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})],-1)),I("span",null,je(r.errorMessage),1)])):n.config.help?(z(),X("div",bkt,[t[24]||(t[24]=I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"})],-1)),I("span",null,je(n.config.help),1)])):Ae("",!0),r.inputValue.length>0?(z(),X("div",_kt,je(r.inputValue.length)+" 字符 ",1)):Ae("",!0)])])])),n.config.timeout&&r.timeLeft>0?(z(),X("div",Skt,[I("div",kkt,[t[25]||(t[25]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"})])],-1)),I("span",wkt,je(r.timeLeft)+"秒后自动关闭",1),I("div",xkt,[I("div",{class:"timeout-progress-bar",style:qe({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Ae("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"]),O(l,{visible:r.showTextEditor,title:"大文本编辑器",width:800,onClose:r.closeTextEditor},{footer:ce(()=>[I("div",Ikt,[I("button",{class:"btn-modern btn-secondary",onClick:t[17]||(t[17]=(...c)=>r.closeTextEditor&&r.closeTextEditor(...c))}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[18]||(t[18]=(...c)=>r.saveEditorText&&r.saveEditorText(...c))}," 确定 ")])]),default:ce(()=>[I("div",Akt,[Ci(I("textarea",{ref:"textEditorRef","onUpdate:modelValue":t[16]||(t[16]=c=>r.editorText=c),class:"text-editor-textarea",placeholder:"请输入文本内容..."},null,512),[[Ql,r.editorText]])])]),_:1},8,["visible","onClose"])],64)}const N3e=sr(H6t,[["render",Lkt],["__scopeId","data-v-5ccea77c"]]),Dkt=Object.freeze(Object.defineProperty({__proto__:null,default:N3e},Symbol.toStringTag,{value:"Module"})),Pkt={name:"MultiInputAction",components:{ActionDialog:np,DatePicker:w0e,"a-radio":$m,"a-radio-group":ab,"a-checkbox":Wc,"a-checkbox-group":ib},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ma(),r=ue([]),i=ue([]),a=ue([]),s=ue(0),l=ue(null),c=ue(e.config.msg||""),d=ue(null),h=ue(!1),p=ue(""),v=ue(-1),g=ue(!1),y=ue(-1),S=ue(""),k=ue(!1),w=ue(-1),x=ue([]),E=ue(""),_=ue([]),T=ue(!1),D=ue(4),P=ue(!1),M=ue(""),$=F(()=>e.config.type==="multiInputEnhanced"),L=F(()=>{const Gt=Yc(e.config.button);return Gt===gi.OK_CANCEL||Gt===gi.OK_ONLY||Gt===gi.CUSTOM}),B=F(()=>{const Gt=Yc(e.config.button);return Gt===gi.OK_CANCEL||Gt===gi.CANCEL_ONLY||Gt===gi.CUSTOM}),j=F(()=>Yc(e.config.button)===gi.CUSTOM),H=F(()=>{if(i.value.some(Gt=>Gt))return!1;for(let Gt=0;Gt{const Gt=e.config.input||[];a.value=Array.isArray(Gt)?Gt:[Gt],r.value=a.value.map(Yt=>Yt.value||""),i.value=a.value.map(()=>"")},W=Gt=>{const{inputType:Yt=0}=Gt;return{0:"text",1:"password",2:"number",3:"email",4:"url"}[Yt]||"text"},K=Gt=>{const Yt=a.value[Gt],sn=r.value[Gt];if(i.value[Gt]="",Yt.required&&(!sn||!sn.trim()))return i.value[Gt]=`${Yt.name||"此字段"}为必填项`,!1;if(Yt.validation&&sn)try{if(!new RegExp(Yt.validation).test(sn))return i.value[Gt]=`${Yt.name||"输入"}格式不正确`,!1}catch(un){console.warn("验证正则表达式错误:",un)}const An=W(Yt);if(An==="email"&&sn&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(sn))return i.value[Gt]="请输入有效的邮箱地址",!1;if(An==="url"&&sn)try{new URL(sn)}catch{return i.value[Gt]="请输入有效的URL地址",!1}return!0},oe=$3e(Gt=>{K(Gt)},300),ae=async(Gt,Yt)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;try{const sn={action:Gt,value:JSON.stringify(Yt)};return e.extend&&e.extend.ext&&(sn.extend=e.extend.ext),e.apiUrl&&(sn.apiUrl=e.apiUrl),console.log("InputAction调用T4接口:",{module:e.module,actionData:sn,apiUrl:e.apiUrl}),await xS(e.module,sn)}catch(sn){throw console.error("T4接口调用失败:",sn),sn}},ee=async Gt=>{try{const{skey:Yt,ids:sn}=Gt;if(!Yt||!sn){Hn("详情页跳转参数不完整","error");return}const An=Qo.getSiteByKey(Yt);if(!An){Hn(`未找到站源: ${Yt}`,"error");return}n.push({name:"VideoDetail",params:{id:sn},query:{tempSiteName:An.name,tempSiteApi:An.api,tempSiteKey:An.key,tempSiteExt:An.ext,fromSpecialAction:"true",actionType:"__detail__",sourcePic:""}}),Hn(`正在加载 ${An.name} 的详情...`,"info")}catch(Yt){console.error("详情页跳转失败:",Yt),Hn("详情页跳转失败","error")}},Y=async(Gt,Yt)=>{try{const{content:sn}=Gt;if(!sn){Hn("没有可复制的内容","error");return}await navigator.clipboard.writeText(sn),Yt||Hn("已复制到剪切板","success")}catch(sn){console.error("复制失败:",sn),Hn("复制失败","error")}},Q=async Gt=>{try{const{skey:Yt,name:sn,tid:An,flag:un,folder:Xn}=Gt,Cr={name:sn||"搜索",tid:An||"",flag:un||"",folder:Xn||""};if(Yt){const ro=Qo.getSiteByKey(Yt);ro&&(Qo.setCurrentSite(Yt),Hn(`已切换到 ${ro.name}`,"info"))}console.log("执行源内搜索:",Cr),Hn("正在执行源内搜索...","info"),t("special-action","__self_search__",{tid:Cr.tid,name:Cr.name,type_id:Cr.tid,type_name:Cr.name,actionData:Cr})}catch(Yt){console.error("源内搜索失败:",Yt),Hn("源内搜索失败","error")}},ie=async Gt=>{try{switch(console.log("执行刷新列表:",Gt),n.currentRoute.value.name){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:Gt})),Hn("视频列表已刷新","success");break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:Gt})),Hn("直播列表已刷新","success");break;default:Hn("列表已刷新","success");break}}catch(Yt){console.error("刷新列表失败:",Yt),Hn("刷新列表失败","error")}},q=async Gt=>{try{console.log("执行KTV播放:",Gt),Hn("正在启动KTV播放...","info")}catch(Yt){console.error("KTV播放失败:",Yt),Hn("KTV播放失败","error")}},te=(Gt,Yt)=>{const sn=Yt.target.value;r.value[Gt]=sn,oe(Gt)},Se=(Gt,Yt)=>{r.value[Gt]=Yt,K(Gt)},Fe=async()=>{let Gt=!0;for(let sn=0;sn{const un=sn.id||sn.name||`input_${An}`;Yt[un]=r.value[An]}),e.config.actionId)try{console.log("多输入框T4接口调用:",e.config.actionId,Yt);const sn=await ae(e.config.actionId,Yt);if(typeof sn=="string"){Hn(sn,"success"),t("close");return}if(sn&&sn.action){const An=sn.action,un=sn.toast;switch(un&&Hn(un,"success"),An.actionId){case"__keep__":An.msg&&(c.value=An.msg),An.reset&&(r.value=r.value.map(()=>""),i.value=i.value.map(()=>""),t("reset"));return;case"__detail__":await ee(An),t("close");return;case"__copy__":await Y(An,un),t("close");return;case"__self_search__":await Q(An),t("close");return;case"__refresh_list__":await ie(An),t("close");return;case"__ktvplayer__":await q(An),t("close");return;default:if(An.type){console.log("检测到普通动作,触发新的ActionRenderer:",An),t("action",An);return}else console.warn("未知的专项动作:",An.actionId);break}}}catch(sn){console.error("多输入框T4接口调用失败:",sn),Hn("操作失败,请重试","error");return}t("submit",Yt)},ve=()=>{t("cancel"),t("close")},Re=()=>{r.value=r.value.map(()=>""),i.value=i.value.map(()=>""),t("reset")},Ge=Gt=>{v.value=Gt,p.value=r.value[Gt]||"",h.value=!0,dn(()=>{d.value&&d.value.focus()})},nt=()=>{h.value=!1,v.value=-1},Ie=()=>{v.value>=0&&(r.value[v.value]=p.value,te(v.value,{target:{value:p.value}})),h.value=!1,v.value=-1},_e=Gt=>c0(Gt),me=Gt=>{if(!Gt.selectData)return null;const Yt=c0(Gt.selectData);for(const sn of Yt)if(sn.value&&sn.value.startsWith("[")&&sn.value.endsWith("]")){const An=sn.value.slice(1,-1).toLowerCase();if(["calendar","file","folder","image"].includes(An))return An}return null},ge=Gt=>({calendar:"选择日期",file:"选择文件",folder:"选择文件夹",image:"选择图片"})[Gt]||"特殊输入",Be=(Gt,Yt)=>{switch(Yt){case"calendar":Ce(Gt);break;case"file":Le(Gt);break;case"folder":ht(Gt);break;case"image":Vt(Gt);break;default:console.warn("未知的特殊输入类型:",Yt)}},Ye=Gt=>{const Yt=a.value[Gt];if(Yt.selectData){if(w.value=Gt,x.value=c0(Yt.selectData),T.value=Yt.multiSelect===!0,D.value=Yt.selectColumn||4,T.value){const sn=r.value[Gt]||"";_.value=sn?sn.split(",").map(An=>An.trim()).filter(An=>An):[]}else E.value=r.value[Gt]||"";k.value=!0}},Ke=Gt=>{w.value>=0&&(r.value[w.value]=Gt.value,K(w.value)),k.value=!1,w.value=-1,x.value=[]},at=Gt=>{w.value>=0&&(r.value[w.value]=Gt,K(w.value))},ft=()=>{k.value=!1,w.value=-1,x.value=[],E.value=""},ct=()=>{_.value=x.value.map(Gt=>Gt.value)},Ct=()=>{_.value=[]},xt=()=>{const Gt=x.value.map(Yt=>Yt.value);_.value=Gt.filter(Yt=>!_.value.includes(Yt))},Rt=()=>{w.value>=0&&(T.value?r.value[w.value]=_.value.join(","):r.value[w.value]=_.value[0]||"",K(w.value)),k.value=!1,w.value=-1,x.value=[],_.value=[],T.value=!1},Ht=Gt=>Gt&&Gt.startsWith("[")&&Gt.endsWith("]"),Jt=Gt=>{if(Ht(Gt.value)){const Yt=Gt.value.slice(1,-1).toLowerCase();return{calendar:"📅 选择日期",file:"📄 选择文件",folder:"📁 选择文件夹",image:"🖼️ 选择图片"}[Yt]||Gt.name}return Gt.name},rn=Gt=>_e(Gt).some(sn=>!Ht(sn.value)),vt=Gt=>_e(Gt).filter(sn=>!Ht(sn.value)),Ve=(Gt,Yt)=>{if(Yt.value.startsWith("[")&&Yt.value.endsWith("]"))switch(Yt.value.slice(1,-1).toLowerCase()){case"calendar":Ce(Gt);break;case"file":Le(Gt);break;case"folder":ht(Gt);break;case"image":Vt(Gt);break;default:r.value[Gt]=Yt.value;break}else r.value[Gt]=Yt.value;K(Gt)},Oe=(Gt,Yt)=>r.value[Gt]===Yt.value,Ce=Gt=>{y.value=Gt,g.value=!0},We=Gt=>{Gt&&y.value>=0&&(r.value[y.value]=Gt,K(y.value)),g.value=!1,y.value=-1},$e=()=>{g.value=!1,y.value=-1},dt=Gt=>{M.value=Gt,P.value=!0},Qe=()=>{P.value=!1,M.value=""},Le=Gt=>{const Yt=document.createElement("input");Yt.type="file",Yt.style.position="absolute",Yt.style.left="-9999px",document.body.appendChild(Yt),Yt.addEventListener("change",sn=>{sn.target.files&&sn.target.files[0]&&(r.value[Gt]=sn.target.files[0].name,K(Gt)),document.body.removeChild(Yt)}),Yt.click()},ht=Gt=>{const Yt=document.createElement("input");Yt.type="file",Yt.webkitdirectory=!0,Yt.multiple=!0,Yt.style.position="absolute",Yt.style.left="-9999px",Yt.style.opacity="0",document.body.appendChild(Yt),Yt.addEventListener("change",sn=>{if(sn.target.files&&sn.target.files.length>0){const An=sn.target.files[0],un=An.webkitRelativePath;if(un){const Xn=un.split("/")[0];r.value[Gt]=Xn}else{const Xn=An.name,Cr=Xn.substring(0,Xn.lastIndexOf("."))||Xn;r.value[Gt]=Cr}K(Gt)}document.body.removeChild(Yt)}),Yt.addEventListener("cancel",()=>{document.body.removeChild(Yt)}),Yt.click()},Vt=Gt=>{const Yt=document.createElement("input");Yt.type="file",Yt.accept="image/*",Yt.style.position="absolute",Yt.style.left="-9999px",document.body.appendChild(Yt),Yt.addEventListener("change",sn=>{if(sn.target.files&&sn.target.files[0]){const An=sn.target.files[0],un=new FileReader;un.onload=Xn=>{r.value[Gt]=Xn.target.result,K(Gt)},un.readAsDataURL(An)}document.body.removeChild(Yt)}),Yt.click()},Ut=()=>{const Gt={id:`dynamic_${Date.now()}`,name:`输入项 ${a.value.length+1}`,tip:"请输入内容",required:!1};a.value.push(Gt),r.value.push(""),i.value.push("")},Lt=Gt=>{a.value.length<=1||(a.value.splice(Gt,1),r.value.splice(Gt,1),i.value.splice(Gt,1))},Xt=()=>{r.value=r.value.map(()=>""),i.value=i.value.map(()=>"")},Dn=()=>{a.value.forEach((Gt,Yt)=>{Gt.example?r.value[Yt]=Gt.example:r.value[Yt]=`示例${Yt+1}`}),a.value.forEach((Gt,Yt)=>{K(Yt)})},rr=()=>{!e.config.timeout||e.config.timeout<=0||(s.value=e.config.timeout,l.value=setInterval(()=>{s.value--,s.value<=0&&(clearInterval(l.value),ve())},1e3))},Xr=()=>{l.value&&(clearInterval(l.value),l.value=null),s.value=0};return It(()=>e.config,Gt=>{U(),c.value=Gt.msg||"",Gt.timeout?rr():Xr()},{immediate:!0}),It(()=>e.visible,Gt=>{Gt?rr():Xr()}),fn(()=>{U()}),Yr(()=>{Xr()}),{inputValues:r,inputErrors:i,inputItems:a,timeLeft:s,currentMessage:c,isEnhanced:$,showOkButton:L,showCancelButton:B,showResetButton:j,isValid:H,getInputType:W,validateInput:K,handleInputChange:te,handleDateChange:Se,handleSubmit:Fe,handleCancel:ve,handleReset:Re,selectQuickOption:Ve,handleDateSelect:Ce,handleFileSelect:Le,handleFolderSelect:ht,handleImageSelect:Vt,addInputItem:Ut,removeInputItem:Lt,clearAll:Xt,fillExample:Dn,parseSelectData:c0,getSelectOptions:_e,isSpecialSelector:Ht,getOptionDisplayName:Jt,getSpecialInputType:me,getSpecialInputTitle:ge,handleSpecialInput:Be,hasNonSpecialOptions:rn,getNonSpecialOptions:vt,showTextEditor:h,textEditorRef:d,editorText:p,openTextEditor:Ge,closeTextEditor:nt,saveEditorText:Ie,showDatePicker:g,selectedDate:S,handleDateConfirm:We,handleDateCancel:$e,showSelectOptions:k,currentSelectOptions:x,selectedRadioValue:E,openSelectOptions:Ye,selectOption:Ke,handleRadioChange:at,confirmRadioSelection:ft,isOptionSelected:Oe,selectedCheckboxValues:_,isMultiSelectMode:T,currentSelectColumn:D,selectAll:ct,clearSelection:Ct,invertSelection:xt,confirmMultiSelection:Rt,showHelpDialog:P,helpContent:M,showHelpPopup:dt,closeHelpDialog:Qe}}},Rkt={class:"multi-input-action-modern"},Mkt={key:0,class:"message-section"},Okt={class:"message-content"},$kt={class:"message-text"},Bkt={key:1,class:"media-section"},Nkt={class:"image-container"},Fkt=["src"],jkt={class:"inputs-section"},Vkt={class:"inputs-container"},zkt={key:0,class:"input-label-container"},Ukt={class:"input-label"},Hkt={key:0,class:"required-indicator"},Wkt=["onClick"],Gkt={class:"input-group"},Kkt={key:0,class:"quick-select"},qkt={class:"quick-select-options"},Ykt=["onClick"],Xkt={key:1,class:"input-container"},Zkt={class:"input-wrapper-modern"},Jkt={key:2,class:"input-container"},Qkt={class:"input-wrapper-modern"},ewt=["onUpdate:modelValue","type","placeholder","readonly","onInput","onBlur"],twt={class:"input-actions"},nwt=["onClick","title"],rwt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},iwt={key:1,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},owt={key:2,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},swt={key:3,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},awt=["onClick"],lwt=["onClick"],uwt={key:3,class:"textarea-container"},cwt={class:"textarea-wrapper-modern"},dwt=["onUpdate:modelValue","placeholder","rows","readonly","onInput","onBlur"],fwt=["onClick","title"],hwt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},pwt={key:1,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},vwt={key:2,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},mwt={key:3,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},gwt=["onClick"],ywt={class:"input-status"},bwt={key:0,class:"error-message"},_wt={key:1,class:"char-count"},Swt=["onClick"],kwt={key:2,class:"enhanced-section"},wwt={class:"enhanced-controls"},xwt={key:1,class:"batch-controls"},Cwt={key:3,class:"timeout-section"},Ewt={class:"timeout-indicator"},Twt={class:"timeout-text"},Awt={class:"timeout-progress"},Iwt={class:"modern-footer"},Lwt=["disabled"],Dwt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Pwt={class:"text-editor"},Rwt={class:"modern-footer"},Mwt={class:"date-picker-container"},Owt={class:"modern-footer"},$wt=["innerHTML"],Bwt={class:"modern-footer"},Nwt={class:"select-options-content"},Fwt={key:0,class:"radio-container"},jwt={key:1,class:"multiselect-container"},Vwt={class:"multiselect-main"},zwt={class:"multiselect-actions"},Uwt={class:"modern-footer"};function Hwt(e,t,n,r,i,a){const s=Ee("DatePicker"),l=Ee("ActionDialog"),c=Ee("a-radio"),d=Ee("a-radio-group"),h=Ee("a-checkbox"),p=Ee("a-checkbox-group");return z(),X(Pt,null,[O(l,{visible:n.visible,title:n.config.title,width:n.config.width||600,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[6]||(t[6]=(v,g)=>e.emit("toast",v,g)),onReset:t[7]||(t[7]=()=>e.emit("reset"))},{footer:ce(()=>[I("div",Iwt,[r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[3]||(t[3]=(...v)=>r.handleCancel&&r.handleCancel(...v))},[...t[41]||(t[41]=[I("span",null,"取消",-1)])])):Ae("",!0),r.showResetButton?(z(),X("button",{key:1,class:"btn-modern btn-secondary",onClick:t[4]||(t[4]=(...v)=>r.handleReset&&r.handleReset(...v))},[...t[42]||(t[42]=[I("span",null,"重置",-1)])])):Ae("",!0),r.showOkButton?(z(),X("button",{key:2,class:fe(["btn-modern btn-primary",{disabled:!r.isValid}]),disabled:!r.isValid,onClick:t[5]||(t[5]=(...v)=>r.handleSubmit&&r.handleSubmit(...v))},[t[44]||(t[44]=I("span",null,"确定",-1)),r.isValid?(z(),X("svg",Dwt,[...t[43]||(t[43]=[I("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])):Ae("",!0)],10,Lwt)):Ae("",!0)])]),default:ce(()=>[I("div",Rkt,[n.config.msg?(z(),X("div",Mkt,[I("div",Okt,[t[23]||(t[23]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),I("p",$kt,je(r.currentMessage),1)])])):Ae("",!0),n.config.imageUrl?(z(),X("div",Bkt,[I("div",Nkt,[I("img",{src:n.config.imageUrl,style:qe({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:"action-image-modern",alt:"配置图片"},null,12,Fkt)])])):Ae("",!0),I("div",jkt,[I("div",Vkt,[(z(!0),X(Pt,null,cn(r.inputItems,(v,g)=>(z(),X("div",{key:v.id||g,class:"input-item"},[v.name?(z(),X("div",zkt,[I("label",Ukt,[He(je(v.name)+" ",1),v.required?(z(),X("span",Hkt,"*")):Ae("",!0),v.help?(z(),X("button",{key:1,class:"help-button",onClick:y=>r.showHelpPopup(v.help),title:"查看帮助信息"}," ? ",8,Wkt)):Ae("",!0)])])):Ae("",!0),I("div",Gkt,[v.selectData&&r.hasNonSpecialOptions(v.selectData)&&!v.multiSelect?(z(),X("div",Kkt,[I("div",qkt,[(z(!0),X(Pt,null,cn(r.getNonSpecialOptions(v.selectData),y=>(z(),X("button",{key:y.value,class:fe(["quick-select-tag",{selected:r.isOptionSelected(g,y)}]),onClick:S=>r.selectQuickOption(g,y)},je(y.name),11,Ykt))),128))])])):Ae("",!0),(!v.multiLine||v.multiLine<=1)&&!v.onlyQuickSelect&&v.selectData==="[calendar]"&&v.inputType===0?(z(),X("div",Xkt,[I("div",Zkt,[O(s,{modelValue:r.inputValues[g],"onUpdate:modelValue":y=>r.inputValues[g]=y,placeholder:v.tip||v.name,class:fe(["date-picker-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),style:{width:"100%"},format:"YYYY-MM-DD",onChange:y=>r.handleDateChange(g,y)},null,8,["modelValue","onUpdate:modelValue","placeholder","class","onChange"])])])):(!v.multiLine||v.multiLine<=1)&&!v.onlyQuickSelect?(z(),X("div",Jkt,[I("div",Qkt,[Ci(I("input",{"onUpdate:modelValue":y=>r.inputValues[g]=y,type:r.getInputType(v),placeholder:v.tip||v.name,class:fe(["input-field-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),readonly:v.inputType===0,onInput:y=>r.handleInputChange(g,y),onBlur:y=>r.validateInput(g)},null,42,ewt),[[A5,r.inputValues[g]]]),I("div",twt,[r.getSpecialInputType(v)?(z(),X("button",{key:0,class:fe(["special-input-btn",`special-${r.getSpecialInputType(v)}`]),onClick:y=>r.handleSpecialInput(g,r.getSpecialInputType(v)),title:r.getSpecialInputTitle(r.getSpecialInputType(v))},[r.getSpecialInputType(v)==="calendar"?(z(),X("svg",rwt,[...t[24]||(t[24]=[I("path",{d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zM4 7h12v9H4V7z"},null,-1)])])):r.getSpecialInputType(v)==="file"?(z(),X("svg",iwt,[...t[25]||(t[25]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm0 2h12v10H4V5z"},null,-1)])])):r.getSpecialInputType(v)==="folder"?(z(),X("svg",owt,[...t[26]||(t[26]=[I("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"},null,-1)])])):r.getSpecialInputType(v)==="image"?(z(),X("svg",swt,[...t[27]||(t[27]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z"},null,-1)])])):Ae("",!0)],10,nwt)):v.inputType===0&&v.selectData?(z(),X("button",{key:1,class:"expand-options-btn",onClick:y=>r.openSelectOptions(g),title:"展开选项"},[...t[28]||(t[28]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M7 10l5 5 5-5z"})],-1)])],8,awt)):(z(),X("button",{key:2,class:"expand-btn",onClick:y=>r.openTextEditor(g),title:"打开大文本编辑器"},[...t[29]||(t[29]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])],8,lwt))])])])):v.onlyQuickSelect?Ae("",!0):(z(),X("div",uwt,[I("div",cwt,[Ci(I("textarea",{"onUpdate:modelValue":y=>r.inputValues[g]=y,placeholder:v.tip||v.name,rows:Math.min(v.multiLine||3,4),class:fe(["textarea-field-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),readonly:v.inputType===0,onInput:y=>r.handleInputChange(g,y),onBlur:y=>r.validateInput(g)},null,42,dwt),[[Ql,r.inputValues[g]]]),r.getSpecialInputType(v)?(z(),X("button",{key:0,class:fe(["special-input-btn textarea-expand",`special-${r.getSpecialInputType(v)}`]),onClick:y=>r.handleSpecialInput(g,r.getSpecialInputType(v)),title:r.getSpecialInputTitle(r.getSpecialInputType(v))},[r.getSpecialInputType(v)==="calendar"?(z(),X("svg",hwt,[...t[30]||(t[30]=[I("path",{d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zM4 7h12v9H4V7z"},null,-1)])])):r.getSpecialInputType(v)==="file"?(z(),X("svg",pwt,[...t[31]||(t[31]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm0 2h12v10H4V5z"},null,-1)])])):r.getSpecialInputType(v)==="folder"?(z(),X("svg",vwt,[...t[32]||(t[32]=[I("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"},null,-1)])])):r.getSpecialInputType(v)==="image"?(z(),X("svg",mwt,[...t[33]||(t[33]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z"},null,-1)])])):Ae("",!0)],10,fwt)):(z(),X("button",{key:1,class:"expand-btn textarea-expand",onClick:y=>r.openTextEditor(g),title:"打开大文本编辑器"},[...t[34]||(t[34]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])],8,gwt))])])),I("div",ywt,[r.inputErrors[g]?(z(),X("div",bwt,[t[35]||(t[35]=I("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293-1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})],-1)),I("span",null,je(r.inputErrors[g]),1)])):Ae("",!0),r.inputValues[g]&&r.inputValues[g].length>0?(z(),X("div",_wt,je(r.inputValues[g].length)+" 字符 ",1)):Ae("",!0)])]),r.isEnhanced&&r.inputItems.length>1?(z(),X("button",{key:1,class:"remove-btn",onClick:y=>r.removeInputItem(g),title:"删除此项"},[...t[36]||(t[36]=[I("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M18 6L6 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M6 6l12 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Swt)):Ae("",!0)]))),128))])]),r.isEnhanced?(z(),X("div",kwt,[I("div",wwt,[n.config.allowAdd?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[0]||(t[0]=(...v)=>r.addInputItem&&r.addInputItem(...v))},[...t[37]||(t[37]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"5",y1:"12",x2:"19",y2:"12",stroke:"currentColor","stroke-width":"2"})],-1),He(" 添加项目 ",-1)])])):Ae("",!0),n.config.allowBatch?(z(),X("div",xwt,[I("button",{class:"btn-modern btn-secondary",onClick:t[1]||(t[1]=(...v)=>r.clearAll&&r.clearAll(...v))},[...t[38]||(t[38]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("polyline",{points:"3,6 5,6 21,6",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m19,6v14a2,2 0 0,1 -2,2H7a2,2 0 0,1 -2,-2V6m3,0V4a2,2 0 0,1 2,-2h4a2,2 0 0,1 2,2v2",stroke:"currentColor","stroke-width":"2"})],-1),He(" 清空全部 ",-1)])]),I("button",{class:"btn-modern btn-secondary",onClick:t[2]||(t[2]=(...v)=>r.fillExample&&r.fillExample(...v))},[...t[39]||(t[39]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"14,2 14,8 20,8",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"10,9 9,9 8,9",stroke:"currentColor","stroke-width":"2"})],-1),He(" 填充示例 ",-1)])])])):Ae("",!0)])])):Ae("",!0),n.config.timeout&&r.timeLeft>0?(z(),X("div",Cwt,[I("div",Ewt,[t[40]||(t[40]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"})])],-1)),I("span",Twt,je(r.timeLeft)+"秒后自动关闭",1),I("div",Awt,[I("div",{class:"timeout-progress-bar",style:qe({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Ae("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"]),O(l,{visible:r.showTextEditor,title:"大文本编辑器",width:800,onClose:r.closeTextEditor},{footer:ce(()=>[I("div",Rwt,[I("button",{class:"btn-modern btn-secondary",onClick:t[9]||(t[9]=(...v)=>r.closeTextEditor&&r.closeTextEditor(...v))}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[10]||(t[10]=(...v)=>r.saveEditorText&&r.saveEditorText(...v))}," 确定 ")])]),default:ce(()=>[I("div",Pwt,[Ci(I("textarea",{ref:"textEditorRef","onUpdate:modelValue":t[8]||(t[8]=v=>r.editorText=v),class:"text-editor-textarea",placeholder:"请输入文本内容..."},null,512),[[Ql,r.editorText]])])]),_:1},8,["visible","onClose"]),O(l,{visible:r.showDatePicker,title:"选择日期",width:400,onClose:r.handleDateCancel},{footer:ce(()=>[I("div",Owt,[I("button",{class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...v)=>r.handleDateCancel&&r.handleDateCancel(...v))}," 取消 ")])]),default:ce(()=>[I("div",Mwt,[O(s,{modelValue:r.selectedDate,"onUpdate:modelValue":t[11]||(t[11]=v=>r.selectedDate=v),style:{width:"100%"},placeholder:"请选择日期",format:"YYYY-MM-DD",onChange:r.handleDateConfirm},null,8,["modelValue","onChange"])])]),_:1},8,["visible","onClose"]),O(l,{visible:r.showHelpDialog,title:"帮助信息",width:500,onClose:r.closeHelpDialog},{footer:ce(()=>[I("div",Bwt,[I("button",{class:"btn-modern btn-primary",onClick:t[13]||(t[13]=(...v)=>r.closeHelpDialog&&r.closeHelpDialog(...v))}," 确定 ")])]),default:ce(()=>[I("div",{class:"help-content",innerHTML:r.helpContent},null,8,$wt)]),_:1},8,["visible","onClose"]),O(l,{visible:r.showSelectOptions,title:r.isMultiSelectMode?"请选择字母":"请选择",width:r.isMultiSelectMode?r.currentSelectColumn*160+200:400,onClose:t[22]||(t[22]=v=>r.showSelectOptions=!1)},yo({default:ce(()=>[I("div",Nwt,[r.isMultiSelectMode?(z(),X("div",jwt,[I("div",Vwt,[O(p,{modelValue:r.selectedCheckboxValues,"onUpdate:modelValue":t[15]||(t[15]=v=>r.selectedCheckboxValues=v),class:"checkbox-grid",style:qe({gridTemplateColumns:`repeat(${r.currentSelectColumn}, 1fr)`})},{default:ce(()=>[(z(!0),X(Pt,null,cn(r.currentSelectOptions,v=>(z(),Ze(h,{key:v.value,value:v.value,class:"checkbox-option-item"},{default:ce(()=>[He(je(v.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","style"])]),I("div",zwt,[I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[16]||(t[16]=(...v)=>r.selectAll&&r.selectAll(...v))}," 全选 "),I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[17]||(t[17]=(...v)=>r.clearSelection&&r.clearSelection(...v))}," 全清 "),I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[18]||(t[18]=(...v)=>r.invertSelection&&r.invertSelection(...v))}," 反选 "),I("button",{class:"btn-modern btn-primary btn-small",onClick:t[19]||(t[19]=(...v)=>r.confirmMultiSelection&&r.confirmMultiSelection(...v))}," 确定 ")])])):(z(),X("div",Fwt,[O(d,{modelValue:r.selectedRadioValue,"onUpdate:modelValue":t[14]||(t[14]=v=>r.selectedRadioValue=v),onChange:r.handleRadioChange,direction:"vertical",class:"radio-options-list"},{default:ce(()=>[(z(!0),X(Pt,null,cn(r.currentSelectOptions,v=>(z(),Ze(c,{key:v.value,value:v.value,class:"radio-option-item"},{default:ce(()=>[He(je(v.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange"])]))])]),_:2},[r.isMultiSelectMode?void 0:{name:"footer",fn:ce(()=>[I("div",Uwt,[I("button",{class:"btn-modern btn-secondary",onClick:t[20]||(t[20]=v=>r.showSelectOptions=!1)}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[21]||(t[21]=(...v)=>r.confirmRadioSelection&&r.confirmRadioSelection(...v))}," 确认 ")])]),key:"0"}]),1032,["visible","title","width"])],64)}const F3e=sr(Pkt,[["render",Hwt],["__scopeId","data-v-94c32ec1"]]),Wwt=Object.freeze(Object.defineProperty({__proto__:null,default:F3e},Symbol.toStringTag,{value:"Module"})),Gwt={name:"MenuAction",components:{ActionDialog:np},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ma(),r=ue([]),i=ue(""),a=ue(0),s=ue(null),l=F(()=>e.config.type==="select"||e.config.type==="multiSelect"),c=F(()=>{let K=[];if(e.config.option?(K=Array.isArray(e.config.option)?e.config.option:[e.config.option],K=K.map(oe=>{if(typeof oe=="string"){const[ae,ee]=oe.split("$");return{name:ae||oe,action:ee||oe,value:ee||oe}}return{name:oe.name||oe.title||oe.label,action:oe.action||oe.value,value:oe.action||oe.value,description:oe.description}})):e.config.selectData&&(K=c0(e.config.selectData)),i.value){const oe=i.value.toLowerCase();K=K.filter(ae=>ae.name.toLowerCase().includes(oe)||ae.description&&ae.description.toLowerCase().includes(oe))}return K}),d=F(()=>{const K=Yc(e.config.button),oe=K===gi.OK_CANCEL||K===gi.OK_ONLY;return!l.value&&e.config.autoSubmit?!1:oe}),h=F(()=>{const K=Yc(e.config.button);return K===gi.OK_CANCEL||K===gi.CANCEL_ONLY}),p=F(()=>l.value?r.value.length>0:r.value.length===1),v=K=>r.value.some(oe=>oe.value===K.value),g=(K,oe)=>{K.disabled||(l.value?v(K)?y(K):r.value.push(K):(r.value=[K],e.config.autoSubmit&&P()))},y=K=>{const oe=r.value.findIndex(ae=>ae.value===K.value);oe>-1&&r.value.splice(oe,1)},S=()=>{r.value=[...c.value]},k=()=>{r.value=[]},w=()=>{const K=new Set(r.value.map(oe=>oe.value));r.value=c.value.filter(oe=>!K.has(oe.value))},x=()=>{},E=(K,oe,ae)=>{ae.stopPropagation(),!K.disabled&&(v(K)?y(K):r.value.push(K))},_=(K,oe,ae)=>{ae.stopPropagation(),!K.disabled&&(r.value=[K],e.config.autoSubmit&&P())},T=K=>/[\u{1F600}-\u{1F64F}]|[\u{1F300}-\u{1F5FF}]|[\u{1F680}-\u{1F6FF}]|[\u{1F1E0}-\u{1F1FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/u.test(K),D=async(K,oe)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;const ae={action:K,value:oe};e.extend&&e.extend.ext&&(ae.extend=e.extend.ext),e.apiUrl&&(ae.apiUrl=e.apiUrl),console.log("MenuAction调用T4接口:",{module:e.module,actionData:ae,apiUrl:e.apiUrl});let ee=null;return e.module?(console.log("调用模块:",e.module),ee=await xS(e.module,ae)):e.apiUrl&&(console.log("直接调用API:",e.apiUrl),ee=(await(await pc(async()=>{const{default:ie}=await Promise.resolve().then(()=>hW);return{default:ie}},void 0)).default.post(e.apiUrl,ae,{timeout:pW(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",ee),ee},P=async()=>{if(!p.value)return;const K={};let oe="";if(l.value){K.selectedValues=r.value.map(ee=>ee.value),K.selectedOptions=r.value;const ae=c.value.map(ee=>({name:ee.name,action:ee.value,selected:r.value.some(Y=>Y.value===ee.value)}));oe=JSON.stringify(ae),console.log("多选菜单T4接口数据格式:",ae)}else{const ae=r.value[0];K.selectedValue=ae.value,oe=ae.value,K.selectedOption=ae}if(e.config.actionId)try{console.log("菜单选择T4接口调用:",e.config.actionId,oe);const ae=await D(e.config.actionId,oe);if(typeof ae=="string"){Hn(ae,"success"),t("close");return}if(ae&&ae.action){const ee=ae.action,Y=ae.toast;switch(Y&&Hn(Y,"success"),ee.actionId){case"__keep__":ee.msg&&console.log("保持弹窗打开,更新消息:",ee.msg),ee.reset&&(r.value=[],i.value="");return;case"__close__":ee.msg&&Hn(ee.msg,"info"),t("close");return;case"__detail__":console.log("详情页跳转:",ee),await M(ee),t("close");return;case"__copy__":await $(ee,Y),t("close");return;case"__self_search__":await L(ee),t("close");return;case"__refresh_list__":await B(ee),t("close");return;case"__ktvplayer__":await j(ee),t("close");return;default:if(ee.type){console.log("检测到普通动作,触发新的ActionRenderer:",ee),t("action",ee);return}else console.warn("未知的专项动作:",ee.actionId);break}}}catch(ae){console.error("菜单选择T4接口调用失败:",ae),Hn("操作失败,请重试","error");return}t("submit",K)},M=async K=>{try{console.log("执行详情页跳转:",K),K.url?await n.push(K.url):K.route?await n.push(K.route):(console.warn("详情页跳转缺少URL或路由信息"),Hn("跳转失败:缺少目标地址","error"))}catch(oe){console.error("详情页跳转失败:",oe),Hn("跳转失败","error")}},$=async(K,oe)=>{try{const ae=K.content||K.text||K.value||"";if(!ae){console.warn("复制内容为空"),Hn("复制失败:内容为空","error");return}await navigator.clipboard.writeText(ae),console.log("复制成功:",ae);const ee=K.msg||oe?.msg||"复制成功";Hn(ee,"success")}catch(ae){console.error("复制失败:",ae),Hn("复制失败","error")}},L=async K=>{try{console.log("执行源内搜索:",K);const oe={keyword:K.keyword||K.query||"",siteKey:K.skey||K.siteKey||"",...K.params};oe.siteKey&&window.dispatchEvent(new CustomEvent("switchSite",{detail:{siteKey:oe.siteKey}})),t("special-action",{type:"self-search",data:oe}),Hn("开始搜索...","info")}catch(oe){console.error("源内搜索失败:",oe),Hn("搜索失败","error")}},B=async K=>{try{switch(console.log("执行刷新列表:",K),n.currentRoute.value.name){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:K})),Hn("视频列表已刷新","success");break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:K})),Hn("直播列表已刷新","success");break;default:Hn("列表已刷新","success");break}}catch(oe){console.error("刷新列表失败:",oe),Hn("刷新列表失败","error")}},j=async K=>{try{console.log("执行KTV播放:",K);const oe=K.url||K.playUrl||"",ae=K.title||K.name||"KTV播放";if(!oe){console.warn("KTV播放缺少播放地址"),Hn("播放失败:缺少播放地址","error");return}const ee={name:"KtvPlayer",query:{url:oe,title:ae,...K.params}};try{await n.push(ee)}catch{console.log("KTV播放器路由不存在,使用通用播放器"),await n.push({name:"VideoPlayer",query:{url:oe,title:ae,type:"ktv",...K.params}})}Hn("正在打开KTV播放器...","info")}catch(oe){console.error("KTV播放失败:",oe),Hn("播放失败","error")}},H=()=>{t("cancel"),t("close")},U=()=>{!e.config.timeout||e.config.timeout<=0||(a.value=e.config.timeout,s.value=setInterval(()=>{a.value--,a.value<=0&&(clearInterval(s.value),H())},1e3))},W=()=>{s.value&&(clearInterval(s.value),s.value=null),a.value=0};return It(()=>e.config,K=>{if(r.value=[],i.value="",K.defaultValue){const oe=c0(K.selectData||""),ae=Array.isArray(K.defaultValue)?K.defaultValue:[K.defaultValue];r.value=oe.filter(ee=>ae.includes(ee.value))}K.timeout?U():W()},{immediate:!0}),It(()=>e.visible,K=>{K?U():W()}),fn(()=>{if(e.config.defaultValue){const K=c0(e.config.selectData||""),oe=Array.isArray(e.config.defaultValue)?e.config.defaultValue:[e.config.defaultValue];r.value=K.filter(ae=>oe.includes(ae.value))}}),Yr(()=>{W()}),{selectedOptions:r,searchKeyword:i,timeLeft:a,isMultiSelect:l,menuOptions:c,showOkButton:d,showCancelButton:h,isValid:p,isSelected:v,isEmoji:T,handleOptionClick:g,handleCheckboxClick:E,handleRadioClick:_,removeSelection:y,selectAll:S,clearAll:k,invertSelection:w,handleSearch:x,handleSubmit:P,handleCancel:H}}},Kwt={class:"menu-action-modern"},qwt={key:0,class:"message-section"},Ywt={class:"message-content glass-effect"},Xwt={class:"message-text"},Zwt={key:1,class:"media-section"},Jwt={class:"media-container glass-effect"},Qwt=["src"],ext={key:2,class:"search-section"},txt={class:"search-container"},nxt={class:"menu-section"},rxt={class:"menu-layout"},ixt={class:"menu-options-container"},oxt=["onClick"],sxt={key:0,class:"option-icon-container"},axt=["src"],lxt=["innerHTML"],uxt=["innerHTML"],cxt={key:3,class:"option-icon-emoji"},dxt={class:"option-content"},fxt={class:"option-title"},hxt={key:0,class:"option-description"},pxt={class:"option-selector"},vxt={key:0,class:"checkbox-modern"},mxt=["id","checked","onChange"],gxt=["onClick"],yxt={class:"checkbox-indicator"},bxt={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3"},_xt={key:1,class:"radio-modern"},Sxt=["id","checked","onChange"],kxt=["onClick"],wxt={class:"radio-indicator"},xxt={key:0,class:"radio-dot"},Cxt={key:0,class:"quick-actions-column"},Ext={class:"quick-actions-container"},Txt={class:"quick-actions-buttons"},Axt=["disabled"],Ixt=["disabled"],Lxt=["disabled"],Dxt={key:3,class:"selected-section"},Pxt={class:"selected-container glass-effect"},Rxt={class:"selected-header"},Mxt={class:"selected-count"},Oxt={class:"selected-items-grid"},$xt=["onClick"],Bxt={class:"selected-item-name"},Nxt={key:4,class:"timeout-section"},Fxt={class:"timeout-container"},jxt={class:"timeout-text"},Vxt={class:"timeout-progress"},zxt={class:"modern-footer"},Uxt=["disabled"];function Hxt(e,t,n,r,i,a){const s=Ee("ActionDialog");return z(),Ze(s,{visible:n.visible,title:n.config.title,width:n.config.width||720,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[7]||(t[7]=l=>e.$emit("toast",l)),onReset:t[8]||(t[8]=l=>e.$emit("reset",l))},{footer:ce(()=>[I("div",zxt,[r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[5]||(t[5]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[...t[21]||(t[21]=[I("span",null,"取消",-1)])])):Ae("",!0),r.showOkButton?(z(),X("button",{key:1,class:"btn-modern btn-primary",disabled:!r.isValid,onClick:t[6]||(t[6]=(...l)=>r.handleSubmit&&r.handleSubmit(...l))},[...t[22]||(t[22]=[I("span",null,"确定",-1)])],8,Uxt)):Ae("",!0)])]),default:ce(()=>[I("div",Kwt,[n.config.msg?(z(),X("div",qwt,[I("div",Ywt,[t[9]||(t[9]=I("div",{class:"message-bg gradient-primary"},null,-1)),I("div",Xwt,je(n.config.msg),1)])])):Ae("",!0),n.config.imageUrl?(z(),X("div",Zwt,[I("div",Jwt,[t[10]||(t[10]=I("div",{class:"media-bg gradient-secondary"},null,-1)),I("img",{src:n.config.imageUrl,style:qe({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:"media-image",alt:"Action Image"},null,12,Qwt)])])):Ae("",!0),n.config.searchable?(z(),X("div",ext,[I("div",txt,[t[11]||(t[11]=I("div",{class:"search-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"11",cy:"11",r:"8"}),I("path",{d:"m21 21-4.35-4.35"})])],-1)),Ci(I("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>r.searchKeyword=l),type:"text",placeholder:"搜索选项...",class:"search-input",onInput:t[1]||(t[1]=(...l)=>r.handleSearch&&r.handleSearch(...l))},null,544),[[Ql,r.searchKeyword]])])])):Ae("",!0),I("div",nxt,[I("div",rxt,[I("div",ixt,[(z(!0),X(Pt,null,cn(r.menuOptions,(l,c)=>(z(),X("div",{key:l.value||c,class:fe(["menu-option-card",{selected:r.isSelected(l),disabled:l.disabled,"has-description":l.description}]),onClick:d=>r.handleOptionClick(l,c)},[l.icon?(z(),X("div",sxt,[l.icon.startsWith("http")?(z(),X("img",{key:0,src:l.icon,alt:"",class:"option-icon-image"},null,8,axt)):l.icon.includes("r.handleCheckboxClick(l,c,d),class:"checkbox-input"},null,40,mxt),I("label",{class:"checkbox-label",onClick:d=>r.handleCheckboxClick(l,c,d)},[I("div",yxt,[r.isSelected(l)?(z(),X("svg",bxt,[...t[12]||(t[12]=[I("polyline",{points:"20,6 9,17 4,12"},null,-1)])])):Ae("",!0)])],8,gxt)])):(z(),X("div",_xt,[I("input",{type:"radio",id:`menu-radio-${c}`,name:"menu-radio-group",checked:r.isSelected(l),onChange:d=>r.handleRadioClick(l,c,d),class:"radio-input"},null,40,Sxt),I("label",{class:"radio-label",onClick:d=>r.handleRadioClick(l,c,d)},[I("div",wxt,[r.isSelected(l)?(z(),X("div",xxt)):Ae("",!0)])],8,kxt)]))])],10,oxt))),128))]),r.isMultiSelect?(z(),X("div",Cxt,[I("div",Ext,[t[16]||(t[16]=I("div",{class:"quick-actions-title"},"快捷操作",-1)),I("div",Txt,[I("button",{class:"quick-action-btn",onClick:t[2]||(t[2]=(...l)=>r.selectAll&&r.selectAll(...l)),disabled:r.selectedOptions.length===r.menuOptions.length,title:"选择所有选项"},[...t[13]||(t[13]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"9,11 12,14 22,4"}),I("path",{d:"m21,3-6.5,6.5L11,6"})],-1),I("span",null,"全选",-1)])],8,Axt),I("button",{class:"quick-action-btn",onClick:t[3]||(t[3]=(...l)=>r.clearAll&&r.clearAll(...l)),disabled:r.selectedOptions.length===0,title:"清除所有选择"},[...t[14]||(t[14]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),I("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1),I("span",null,"全清",-1)])],8,Ixt),I("button",{class:"quick-action-btn",onClick:t[4]||(t[4]=(...l)=>r.invertSelection&&r.invertSelection(...l)),disabled:r.menuOptions.length===0,title:"反转当前选择"},[...t[15]||(t[15]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),I("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),I("path",{d:"m9 14 2 2 4-4"})],-1),I("span",null,"反选",-1)])],8,Lxt)])])])):Ae("",!0)])]),r.isMultiSelect&&r.selectedOptions.length>0?(z(),X("div",Dxt,[I("div",Pxt,[t[19]||(t[19]=I("div",{class:"selected-bg gradient-tertiary"},null,-1)),I("div",Rxt,[t[17]||(t[17]=I("div",{class:"selected-title"},"已选择项目",-1)),I("div",Mxt,je(r.selectedOptions.length),1)]),I("div",Oxt,[(z(!0),X(Pt,null,cn(r.selectedOptions,l=>(z(),X("div",{key:l.value,class:"selected-item-tag",onClick:c=>r.removeSelection(l)},[I("span",Bxt,je(l.name),1),t[18]||(t[18]=I("div",{class:"selected-item-remove"},[I("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})])],-1))],8,$xt))),128))])])])):Ae("",!0),n.config.timeout&&r.timeLeft>0?(z(),X("div",Nxt,[I("div",Fxt,[t[20]||(t[20]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})])],-1)),I("div",jxt,je(r.timeLeft)+"秒后自动关闭",1),I("div",Vxt,[I("div",{class:"timeout-progress-bar",style:qe({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Ae("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const j3e=sr(Gwt,[["render",Hxt],["__scopeId","data-v-36a9fec1"]]),Wxt=Object.freeze(Object.defineProperty({__proto__:null,default:j3e},Symbol.toStringTag,{value:"Module"})),Gxt={name:"MsgBoxAction",components:{ActionDialog:np},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ue(0),r=ue(null),i=ue(0),a=ue(null),s=F(()=>e.config.icon!==!1&&e.config.type!=="plain"),l=F(()=>({info:"info",success:"success",warning:"warning",error:"error",question:"question"})[e.config.type]||"info"),c=F(()=>({info:"ℹ",success:"✓",warning:"⚠",error:"✕",question:"?"})[e.config.type]||"ℹ"),d=F(()=>e.config.qrcode?O3e(e.config.qrcode,e.config.qrcodeSize):""),h=F(()=>{const $=Yc(e.config.button);return $===gi.OK_CANCEL||$===gi.OK_ONLY}),p=F(()=>{const $=Yc(e.config.button);return $===gi.OK_CANCEL||$===gi.CANCEL_ONLY}),v=F(()=>e.config.progressText?e.config.progressText.replace("{percent}",Math.round(i.value)):`${Math.round(i.value)}%`),g=F(()=>!e.config.timeout||e.config.timeout<=0?0:(e.config.timeout-n.value)/e.config.timeout*100),y=$=>$?/<[^>]+>/.test($)?$:$.replace(/\n/g,"
").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1"):"",S=()=>{t("submit",{action:"ok"})},k=()=>{t("cancel"),t("close")},w=()=>{t("close")},x=()=>{console.log("图片加载成功")},E=()=>{console.error("图片加载失败")},_=()=>{console.error("二维码生成失败")},T=()=>{!e.config.timeout||e.config.timeout<=0||(n.value=e.config.timeout,r.value=setInterval(()=>{n.value--,n.value<=0&&(clearInterval(r.value),k())},1e3))},D=()=>{r.value&&(clearInterval(r.value),r.value=null),n.value=0},P=()=>{if(!e.config.showProgress)return;const $=e.config.progressDuration||5e3,L=50,B=100/$*L;i.value=0,a.value=setInterval(()=>{i.value+=B,i.value>=100&&(i.value=100,clearInterval(a.value),e.config.onProgressComplete&&S())},L)},M=()=>{a.value&&(clearInterval(a.value),a.value=null),i.value=0};return It(()=>e.config,$=>{D(),M(),$.timeout&&T(),$.showProgress&&P()},{immediate:!0}),It(()=>e.visible,$=>{$?(e.config.timeout&&T(),e.config.showProgress&&P()):(D(),M())}),fn(()=>{e.visible&&(e.config.timeout&&T(),e.config.showProgress&&P())}),Yr(()=>{D(),M()}),{timeLeft:n,progressPercent:i,showIcon:s,iconType:l,iconSymbol:c,qrcodeUrl:d,showOkButton:h,showCancelButton:p,progressText:v,timeoutPercent:g,formatMessage:y,handleOk:S,handleCancel:k,handleClose:w,onImageLoad:x,onImageError:E,onQrcodeError:_}}},Kxt={class:"msgbox-action-modern"},qxt={key:0,class:"icon-section"},Yxt={class:"icon-wrapper"},Xxt={key:0,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},Zxt={key:1,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},Jxt={key:2,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},Qxt={key:3,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},eCt={key:4,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},tCt={key:5,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},nCt={class:"content-section"},rCt={key:0,class:"message-container glass-effect"},iCt={class:"message-content"},oCt=["innerHTML"],sCt={key:1,class:"detail-container glass-effect"},aCt={class:"detail-content"},lCt=["innerHTML"],uCt={key:2,class:"media-section"},cCt={class:"image-container glass-effect"},dCt=["src"],fCt={key:3,class:"media-section"},hCt={class:"qrcode-container glass-effect"},pCt={class:"qrcode-content"},vCt=["src","alt"],mCt={class:"qrcode-text"},gCt={key:4,class:"progress-section"},yCt={class:"progress-container glass-effect"},bCt={class:"progress-content"},_Ct={class:"progress-bar-modern"},SCt={class:"progress-track"},kCt={class:"progress-text-modern"},wCt={key:5,class:"list-section"},xCt={class:"list-container glass-effect"},CCt={class:"list-content"},ECt={class:"list-items"},TCt={class:"item-text"},ACt={key:6,class:"timeout-section"},ICt={class:"timeout-container glass-effect"},LCt={class:"timeout-content"},DCt={class:"timeout-info"},PCt={class:"timeout-text"},RCt={class:"timeout-progress-modern"},MCt={class:"modern-footer"};function OCt(e,t,n,r,i,a){const s=Ee("ActionDialog");return z(),Ze(s,{visible:n.visible,title:n.config.title,width:n.config.width||480,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[5]||(t[5]=(l,c)=>e.emit("toast",l,c)),onReset:t[6]||(t[6]=()=>e.emit("reset"))},{footer:ce(()=>[I("div",MCt,[r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[3]||(t[3]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[t[27]||(t[27]=I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1)),I("span",null,je(n.config.cancelText||"取消"),1)])):Ae("",!0),r.showOkButton?(z(),X("button",{key:1,class:"btn-modern btn-primary",onClick:t[4]||(t[4]=(...l)=>r.handleOk&&r.handleOk(...l))},[I("span",null,je(n.config.okText||"确定"),1),t[28]||(t[28]=I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})],-1))])):Ae("",!0)])]),default:ce(()=>[I("div",Kxt,[r.showIcon?(z(),X("div",qxt,[I("div",{class:fe(["icon-container glass-effect",r.iconType])},[I("div",{class:fe(["icon-bg",`gradient-${r.iconType}`])},null,2),I("div",Yxt,[r.iconType==="info"?(z(),X("svg",Xxt,[...t[7]||(t[7]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},null,-1)])])):r.iconType==="success"?(z(),X("svg",Zxt,[...t[8]||(t[8]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"},null,-1)])])):r.iconType==="warning"?(z(),X("svg",Jxt,[...t[9]||(t[9]=[I("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},null,-1)])])):r.iconType==="error"?(z(),X("svg",Qxt,[...t[10]||(t[10]=[I("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"},null,-1)])])):r.iconType==="question"?(z(),X("svg",eCt,[...t[11]||(t[11]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"},null,-1)])])):(z(),X("svg",tCt,[...t[12]||(t[12]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},null,-1)])]))])],2)])):Ae("",!0),I("div",nCt,[n.config.msg||n.config.htmlMsg?(z(),X("div",rCt,[t[14]||(t[14]=I("div",{class:"message-bg gradient-primary"},null,-1)),I("div",iCt,[t[13]||(t[13]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"})])],-1)),I("div",{class:"message-text",innerHTML:r.formatMessage(n.config.htmlMsg||n.config.msg)},null,8,oCt)])])):Ae("",!0),n.config.detail?(z(),X("div",sCt,[t[16]||(t[16]=I("div",{class:"detail-bg gradient-secondary"},null,-1)),I("div",aCt,[t[15]||(t[15]=I("div",{class:"detail-icon"},[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 2 2h12c1.11 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"})])],-1)),I("div",{class:"detail-text",innerHTML:r.formatMessage(n.config.detail)},null,8,lCt)])])):Ae("",!0),n.config.imageUrl?(z(),X("div",uCt,[I("div",cCt,[t[17]||(t[17]=I("div",{class:"image-bg gradient-accent"},null,-1)),I("img",{src:n.config.imageUrl,style:qe({height:n.config.imageHeight?`${n.config.imageHeight}px`:"200px"}),class:"action-image-modern",onLoad:t[0]||(t[0]=(...l)=>r.onImageLoad&&r.onImageLoad(...l)),onError:t[1]||(t[1]=(...l)=>r.onImageError&&r.onImageError(...l))},null,44,dCt)])])):Ae("",!0),n.config.qrcode?(z(),X("div",fCt,[I("div",hCt,[t[19]||(t[19]=I("div",{class:"qrcode-bg gradient-accent"},null,-1)),I("div",pCt,[t[18]||(t[18]=I("div",{class:"qrcode-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zM3 21h8v-8H3v8zm2-6h4v4H5v-4zM13 3v8h8V3h-8zm6 6h-4V5h4v4zM19 13h2v2h-2zM13 13h2v2h-2zM15 15h2v2h-2zM13 17h2v2h-2zM15 19h2v2h-2zM17 17h2v2h-2zM17 13h2v2h-2zM19 15h2v2h-2z"})]),I("span",{class:"qrcode-label"},"二维码")],-1)),I("img",{src:r.qrcodeUrl,alt:n.config.qrcode,class:"qrcode-image",onError:t[2]||(t[2]=(...l)=>r.onQrcodeError&&r.onQrcodeError(...l))},null,40,vCt),I("div",mCt,je(n.config.qrcode),1)])])])):Ae("",!0),n.config.showProgress?(z(),X("div",gCt,[I("div",yCt,[t[21]||(t[21]=I("div",{class:"progress-bg gradient-primary"},null,-1)),I("div",bCt,[t[20]||(t[20]=I("div",{class:"progress-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})]),I("span",{class:"progress-label"},"进度")],-1)),I("div",_Ct,[I("div",SCt,[I("div",{class:"progress-fill-modern",style:qe({width:`${r.progressPercent}%`})},null,4)])]),I("div",kCt,je(r.progressText),1)])])])):Ae("",!0),n.config.list&&n.config.list.length>0?(z(),X("div",wCt,[I("div",xCt,[t[24]||(t[24]=I("div",{class:"list-bg gradient-secondary"},null,-1)),I("div",CCt,[t[23]||(t[23]=I("div",{class:"list-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})]),I("span",{class:"list-label"},"详细信息")],-1)),I("ul",ECt,[(z(!0),X(Pt,null,cn(n.config.list,(l,c)=>(z(),X("li",{key:c,class:"list-item"},[t[22]||(t[22]=I("div",{class:"item-marker"},null,-1)),I("span",TCt,je(l),1)]))),128))])])])])):Ae("",!0),n.config.timeout&&r.timeLeft>0?(z(),X("div",ACt,[I("div",ICt,[t[26]||(t[26]=I("div",{class:"timeout-bg gradient-warning"},null,-1)),I("div",LCt,[t[25]||(t[25]=I("div",{class:"timeout-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"})])],-1)),I("div",DCt,[I("span",PCt,je(r.timeLeft)+"秒后自动关闭",1),I("div",RCt,[I("div",{class:"timeout-fill-modern",style:qe({width:`${r.timeoutPercent}%`})},null,4)])])])])])):Ae("",!0)])])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const V3e=sr(Gxt,[["render",OCt],["__scopeId","data-v-55d966d0"]]),$Ct=Object.freeze(Object.defineProperty({__proto__:null,default:V3e},Symbol.toStringTag,{value:"Module"})),BCt={name:"WebViewAction",components:{ActionDialog:np},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=ue(null),r=ue(""),i=ue(!0),a=ue(0),s=ue(!1),l=ue(""),c=ue(!1),d=ue(!1),h=ue(!1),p=ue(0),v=ue(null),g=ue(null),y=F(()=>e.config.showToolbar!==!1),S=F(()=>r.value||e.config.url||"about:blank"),k=F(()=>{const Y=r.value||e.config.url||"";return Y.length>50?Y.substring(0,47)+"...":Y}),w=F(()=>{const{sandbox:Y="allow-scripts allow-same-origin allow-forms allow-popups"}=e.config;return Y}),x=F(()=>{const Y=Yc(e.config.button);return Y===gi.OK_CANCEL||Y===gi.OK_ONLY}),E=F(()=>{const Y=Yc(e.config.button);return Y===gi.OK_CANCEL||Y===gi.CANCEL_ONLY}),_=()=>{r.value&&(i.value=!0,s.value=!1,a.value=0,H())},T=()=>{try{n.value&&n.value.contentWindow&&n.value.contentWindow.history.back()}catch(Y){console.warn("无法执行后退操作:",Y)}},D=()=>{try{n.value&&n.value.contentWindow&&n.value.contentWindow.history.forward()}catch(Y){console.warn("无法执行前进操作:",Y)}},P=()=>{i.value=!0,s.value=!1,a.value=0,n.value&&(n.value.src=n.value.src),H()},M=()=>{h.value=!h.value},$=()=>{console.log("开发者工具功能需要在 Electron 环境中实现")},L=()=>{i.value=!1,s.value=!1,a.value=100,U(),j();try{n.value&&n.value.contentWindow&&(r.value=n.value.contentWindow.location.href)}catch(Y){console.warn("无法获取iframe URL:",Y)}},B=Y=>{i.value=!1,s.value=!0,l.value=Y.message||"页面加载失败",U()},j=()=>{try{if(n.value&&n.value.contentWindow){const Y=n.value.contentWindow.history;c.value=Y.length>1,d.value=!1}}catch{c.value=!1,d.value=!1}},H=()=>{a.value=0,g.value=setInterval(()=>{a.value<90&&(a.value+=Math.random()*10)},200)},U=()=>{g.value&&(clearInterval(g.value),g.value=null),setTimeout(()=>{a.value=100},100)},W=()=>{const Y={url:r.value,action:"ok"};try{n.value&&n.value.contentWindow&&(Y.title=n.value.contentWindow.document.title)}catch{}t("submit",Y)},K=()=>{t("cancel"),t("close")},oe=()=>{t("close")},ae=()=>{!e.config.timeout||e.config.timeout<=0||(p.value=e.config.timeout,v.value=setInterval(()=>{p.value--,p.value<=0&&(clearInterval(v.value),K())},1e3))},ee=()=>{v.value&&(clearInterval(v.value),v.value=null),p.value=0};return It(()=>e.config,Y=>{r.value=Y.url||"",i.value=!0,s.value=!1,a.value=0,Y.url&&dn(()=>{H()}),Y.timeout?ae():ee()},{immediate:!0}),It(()=>e.visible,Y=>{Y?ae():(ee(),U())}),fn(()=>{r.value=e.config.url||"",e.visible&&e.config.timeout&&ae()}),Yr(()=>{ee(),U()}),{webviewFrame:n,currentUrl:r,isLoading:i,loadingProgress:a,hasError:s,errorMessage:l,canGoBack:c,canGoForward:d,isFullscreen:h,timeLeft:p,showToolbar:y,iframeSrc:S,displayUrl:k,sandboxAttributes:w,showOkButton:x,showCancelButton:E,navigate:_,goBack:T,goForward:D,reload:P,toggleFullscreen:M,toggleDevTools:$,onFrameLoad:L,onFrameError:B,handleOk:W,handleCancel:K,handleClose:oe}}},NCt={class:"webview-action"},FCt={key:0,class:"webview-toolbar-modern glass-effect"},jCt={class:"toolbar-nav-group"},VCt=["disabled"],zCt=["disabled"],UCt={key:0,class:"toolbar-address-modern"},HCt={class:"address-input-container"},WCt={class:"toolbar-actions-modern"},GCt=["title"],KCt={key:0,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},qCt={key:1,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},YCt={key:1,class:"webview-progress-modern"},XCt={key:0,class:"webview-loading-modern"},ZCt={class:"loading-progress-text"},JCt={key:1,class:"webview-error-modern"},QCt={class:"error-container"},eEt={class:"error-message-modern"},tEt=["src","sandbox"],nEt={key:2,class:"webview-status-modern glass-effect"},rEt={class:"status-info-modern"},iEt={class:"status-url-container"},oEt={class:"status-url-modern"},sEt={key:0,class:"status-timeout-modern"},aEt={class:"action-dialog-footer"};function lEt(e,t,n,r,i,a){const s=Ee("ActionDialog");return z(),Ze(s,{visible:n.visible,title:n.config.title,width:n.config.width||"90%",height:n.config.height||"auto","canceled-on-touch-outside":!n.config.keep,"show-close":!1,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[14]||(t[14]=(l,c)=>e.emit("toast",l,c)),onReset:t[15]||(t[15]=()=>e.emit("reset"))},{footer:ce(()=>[I("div",aEt,[I("button",{class:"btn-modern btn-secondary",onClick:t[11]||(t[11]=(...l)=>r.handleClose&&r.handleClose(...l))},[t[31]||(t[31]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),I("span",null,je(n.config.closeText||"关闭"),1)]),r.showCancelButton?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[I("span",null,je(n.config.cancelText||"取消"),1)])):Ae("",!0),r.showOkButton?(z(),X("button",{key:1,class:"btn-modern btn-primary",onClick:t[13]||(t[13]=(...l)=>r.handleOk&&r.handleOk(...l))},[I("span",null,je(n.config.okText||"确定"),1)])):Ae("",!0)])]),default:ce(()=>[I("div",NCt,[r.showToolbar?(z(),X("div",FCt,[I("div",jCt,[I("button",{class:fe(["toolbar-btn-modern nav-btn",{disabled:!r.canGoBack}]),disabled:!r.canGoBack,onClick:t[0]||(t[0]=(...l)=>r.goBack&&r.goBack(...l)),title:"后退"},[...t[16]||(t[16]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])],10,VCt),I("button",{class:fe(["toolbar-btn-modern nav-btn",{disabled:!r.canGoForward}]),disabled:!r.canGoForward,onClick:t[1]||(t[1]=(...l)=>r.goForward&&r.goForward(...l)),title:"前进"},[...t[17]||(t[17]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M5 12h14M12 5l7 7-7 7"})],-1)])],10,zCt),I("button",{class:"toolbar-btn-modern nav-btn",onClick:t[2]||(t[2]=(...l)=>r.reload&&r.reload(...l)),title:"刷新"},[...t[18]||(t[18]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M1 4v6h6M23 20v-6h-6"}),I("path",{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"})],-1)])])]),n.config.showAddressBar?(z(),X("div",UCt,[I("div",HCt,[t[20]||(t[20]=I("svg",{class:"address-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"11",cy:"11",r:"8"}),I("path",{d:"M21 21l-4.35-4.35"})],-1)),Ci(I("input",{"onUpdate:modelValue":t[3]||(t[3]=l=>r.currentUrl=l),type:"url",class:"address-input-modern",placeholder:"请输入网址...",onKeyup:t[4]||(t[4]=df((...l)=>r.navigate&&r.navigate(...l),["enter"]))},null,544),[[Ql,r.currentUrl]]),I("button",{class:"toolbar-btn-modern address-go-btn",onClick:t[5]||(t[5]=(...l)=>r.navigate&&r.navigate(...l)),title:"访问"},[...t[19]||(t[19]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M5 12h14M12 5l7 7-7 7"})],-1)])])])])):Ae("",!0),I("div",WCt,[n.config.allowFullscreen?(z(),X("button",{key:0,class:"toolbar-btn-modern action-btn",onClick:t[6]||(t[6]=(...l)=>r.toggleFullscreen&&r.toggleFullscreen(...l)),title:r.isFullscreen?"退出全屏":"全屏"},[r.isFullscreen?(z(),X("svg",qCt,[...t[22]||(t[22]=[I("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},null,-1)])])):(z(),X("svg",KCt,[...t[21]||(t[21]=[I("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"},null,-1)])]))],8,GCt)):Ae("",!0),n.config.allowDevTools?(z(),X("button",{key:1,class:"toolbar-btn-modern action-btn",onClick:t[7]||(t[7]=(...l)=>r.toggleDevTools&&r.toggleDevTools(...l)),title:"开发者工具"},[...t[23]||(t[23]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})],-1)])])):Ae("",!0)])])):Ae("",!0),r.isLoading?(z(),X("div",YCt,[I("div",{class:"progress-bar-modern",style:qe({width:`${r.loadingProgress}%`})},null,4)])):Ae("",!0),I("div",{class:fe(["webview-container-modern",{fullscreen:r.isFullscreen}])},[r.isLoading&&r.loadingProgress<100?(z(),X("div",XCt,[t[24]||(t[24]=I("div",{class:"loading-spinner-modern"},null,-1)),t[25]||(t[25]=I("div",{class:"loading-text-modern"},"正在加载网页...",-1)),I("div",ZCt,je(Math.round(r.loadingProgress))+"%",1)])):Ae("",!0),r.hasError?(z(),X("div",JCt,[I("div",QCt,[t[27]||(t[27]=I("svg",{class:"error-icon-modern",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),I("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),t[28]||(t[28]=I("div",{class:"error-title-modern"},"页面加载失败",-1)),I("div",eEt,je(r.errorMessage),1),I("button",{class:"btn-modern btn-primary",onClick:t[8]||(t[8]=(...l)=>r.reload&&r.reload(...l))},[...t[26]||(t[26]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M1 4v6h6M23 20v-6h-6"}),I("path",{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"})],-1),I("span",null,"重新加载",-1)])])])])):Ae("",!0),Ci(I("iframe",{ref:"webviewFrame",src:r.iframeSrc,class:"webview-frame-modern",sandbox:r.sandboxAttributes,onLoad:t[9]||(t[9]=(...l)=>r.onFrameLoad&&r.onFrameLoad(...l)),onError:t[10]||(t[10]=(...l)=>r.onFrameError&&r.onFrameError(...l))},null,40,tEt),[[Ko,!r.isLoading&&!r.hasError]])],2),n.config.showStatus?(z(),X("div",nEt,[I("div",rEt,[I("div",iEt,[t[29]||(t[29]=I("svg",{class:"status-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M2 12h20"}),I("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})],-1)),I("span",oEt,je(r.displayUrl),1)]),n.config.timeout&&r.timeLeft>0?(z(),X("div",sEt,[t[30]||(t[30]=I("svg",{class:"timeout-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})],-1)),I("span",null,je(r.timeLeft)+"秒后自动关闭",1)])):Ae("",!0)])])):Ae("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const z3e=sr(BCt,[["render",lEt],["__scopeId","data-v-a119be1f"]]),uEt=Object.freeze(Object.defineProperty({__proto__:null,default:z3e},Symbol.toStringTag,{value:"Module"})),cEt={name:"HelpAction",components:{ActionDialog:np},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["close","link-click","toast","reset","special-action"],setup(e,{emit:t}){const n=ue(!1),r=ue(!1),i=ue(-1),a=ue(0),s=ue(null),l=F(()=>e.config.msg?/<[^>]+>/.test(e.config.msg)?e.config.msg:e.config.msg.replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1").replace(/\n/g,"
"):""),c=F(()=>e.config.details?Array.isArray(e.config.details)?e.config.details:typeof e.config.details=="string"?[{content:e.config.details}]:[e.config.details]:[]),d=F(()=>e.config.steps?Array.isArray(e.config.steps)?e.config.steps:[]:[]),h=F(()=>e.config.faq?Array.isArray(e.config.faq)?e.config.faq:[]:[]),p=F(()=>e.config.links?Array.isArray(e.config.links)?e.config.links:[]:[]),v=F(()=>!e.config.data||typeof e.config.data!="object"?[]:Object.entries(e.config.data).map(([$,L])=>({key:$,value:L}))),g=$=>$?/<[^>]+>/.test($)?$:String($).replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1").replace(/\n/g,"
"):"",y=()=>{n.value=!1},S=()=>{n.value=!0},k=()=>{r.value=!1},w=()=>{r.value=!0},x=$=>{i.value=i.value===$?-1:$},E=$=>{t("link-click",$)},_=()=>{try{window.print()}catch($){console.warn("打印功能不可用:",$)}},T=async()=>{try{const $=[];e.config.msg&&$.push(e.config.msg),e.config.details&&($.push(` +详细信息:`),c.value.forEach(B=>{B.title&&$.push(`${B.title}:`),$.push(B.content.replace(/<[^>]*>/g,""))})),e.config.steps&&($.push(` +操作步骤:`),d.value.forEach((B,j)=>{$.push(`${j+1}. ${B.title||""}`),$.push(B.content.replace(/<[^>]*>/g,""))})),e.config.faq&&($.push(` +常见问题:`),h.value.forEach(B=>{$.push(`Q: ${B.question}`),$.push(`A: ${B.answer.replace(/<[^>]*>/g,"")}`)}));const L=$.join(` +`);if(navigator.clipboard)await navigator.clipboard.writeText(L);else{const B=document.createElement("textarea");B.value=L,document.body.appendChild(B),B.select(),document.execCommand("copy"),document.body.removeChild(B)}console.log("内容已复制到剪贴板")}catch($){console.warn("复制失败:",$)}},D=()=>{t("close")},P=()=>{!e.config.timeout||e.config.timeout<=0||(a.value=e.config.timeout,s.value=setInterval(()=>{a.value--,a.value<=0&&(clearInterval(s.value),D())},1e3))},M=()=>{s.value&&(clearInterval(s.value),s.value=null),a.value=0};return It(()=>e.visible,$=>{$?P():M()}),fn(()=>{e.visible&&e.config.timeout&&P()}),Yr(()=>{M()}),{imageError:n,qrError:r,expandedFaq:i,timeLeft:a,formattedMessage:l,detailsList:c,stepsList:d,faqList:h,linksList:p,dataList:v,formatDataText:g,onImageLoad:y,onImageError:S,onQrLoad:k,onQrError:w,toggleFaq:x,onLinkClick:E,handlePrint:_,handleCopy:T,handleClose:D}}},dEt={class:"help-action-modern"},fEt={class:"help-content-modern"},hEt={key:0,class:"help-message-modern glass-effect gradient-primary"},pEt=["innerHTML"],vEt={key:1,class:"help-data-modern"},mEt={class:"data-content-modern"},gEt={class:"data-title-modern"},yEt=["innerHTML"],bEt={key:2,class:"help-image-modern"},_Et={class:"image-container glass-effect"},SEt=["src","alt"],kEt={key:0,class:"image-error-modern"},wEt={key:3,class:"help-qrcode-modern"},xEt={class:"qrcode-container-modern glass-effect"},CEt={class:"qrcode-image-wrapper"},EEt=["src"],TEt={key:0,class:"qrcode-error-modern"},AEt={key:0,class:"qrcode-text-modern"},IEt={key:4,class:"help-details-modern"},LEt={class:"details-content-modern"},DEt={key:0,class:"detail-title-modern"},PEt=["innerHTML"],REt={key:5,class:"help-steps-modern"},MEt={class:"steps-content-modern"},OEt={class:"step-number-modern"},$Et={class:"step-content-modern"},BEt={key:0,class:"step-title-modern"},NEt=["innerHTML"],FEt={key:1,class:"step-image-modern"},jEt=["src","alt"],VEt={key:6,class:"help-faq-modern"},zEt={class:"faq-content-modern"},UEt=["onClick"],HEt={class:"question-content"},WEt={class:"question-text-modern"},GEt={class:"faq-answer-modern"},KEt=["innerHTML"],qEt={key:7,class:"help-links-modern"},YEt={class:"links-content-modern"},XEt=["href","target","onClick"],ZEt={class:"link-content"},JEt={class:"link-text-modern"},QEt={key:0,class:"link-desc-modern"},e8t={key:8,class:"help-contact-modern"},t8t={class:"contact-content-modern"},n8t={key:0,class:"contact-card glass-effect"},r8t={class:"contact-info"},i8t=["href"],o8t={key:1,class:"contact-card glass-effect"},s8t={class:"contact-info"},a8t=["href"],l8t={key:2,class:"contact-card glass-effect"},u8t={class:"contact-info"},c8t=["href"],d8t={key:3,class:"contact-card glass-effect"},f8t={class:"contact-info"},h8t={class:"contact-value-modern"},p8t={key:0,class:"help-timeout-modern glass-effect"},v8t={class:"action-dialog-footer"};function m8t(e,t,n,r,i,a){const s=Ee("ActionDialog");return z(),Ze(s,{visible:n.visible,title:n.config.title||"帮助信息",width:n.config.width||700,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[7]||(t[7]=(l,c)=>e.emit("toast",l,c)),onReset:t[8]||(t[8]=()=>e.emit("reset"))},{footer:ce(()=>[I("div",v8t,[n.config.allowPrint?(z(),X("button",{key:0,class:"btn-modern btn-secondary",onClick:t[4]||(t[4]=(...l)=>r.handlePrint&&r.handlePrint(...l))},[...t[32]||(t[32]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"6,9 6,2 18,2 18,9"}),I("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),I("rect",{x:"6",y:"14",width:"12",height:"8"})],-1),I("span",null,"打印",-1)])])):Ae("",!0),n.config.allowCopy?(z(),X("button",{key:1,class:"btn-modern btn-secondary",onClick:t[5]||(t[5]=(...l)=>r.handleCopy&&r.handleCopy(...l))},[...t[33]||(t[33]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1),I("span",null,"复制内容",-1)])])):Ae("",!0),I("button",{class:"btn-modern btn-primary",onClick:t[6]||(t[6]=(...l)=>r.handleClose&&r.handleClose(...l))},[I("span",null,je(n.config.closeText||"关闭"),1)])])]),default:ce(()=>[I("div",dEt,[I("div",fEt,[n.config.msg?(z(),X("div",hEt,[t[9]||(t[9]=I("div",{class:"message-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M12 16v-4"}),I("path",{d:"M12 8h.01"})])],-1)),I("div",{class:"message-text-modern",innerHTML:r.formattedMessage},null,8,pEt)])):Ae("",!0),n.config.data&&r.dataList.length>0?(z(),X("div",vEt,[t[10]||(t[10]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),I("polyline",{points:"14,2 14,8 20,8"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),I("polyline",{points:"10,9 9,9 8,9"})])]),I("h3",{class:"section-title"},"帮助信息")],-1)),I("div",mEt,[(z(!0),X(Pt,null,cn(r.dataList,(l,c)=>(z(),X("div",{key:c,class:"data-item glass-effect"},[I("div",gEt,je(l.key),1),I("div",{class:"data-text-modern",innerHTML:r.formatDataText(l.value)},null,8,yEt)]))),128))])])):Ae("",!0),n.config.img?(z(),X("div",bEt,[I("div",_Et,[I("img",{src:n.config.img,alt:n.config.imgAlt||"帮助图片",class:"image-content-modern",onLoad:t[0]||(t[0]=(...l)=>r.onImageLoad&&r.onImageLoad(...l)),onError:t[1]||(t[1]=(...l)=>r.onImageError&&r.onImageError(...l))},null,40,SEt),r.imageError?(z(),X("div",kEt,[...t[11]||(t[11]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),I("polyline",{points:"7,10 12,15 17,10"}),I("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1),I("span",null,"图片加载失败",-1)])])):Ae("",!0)])])):Ae("",!0),n.config.qr?(z(),X("div",wEt,[I("div",xEt,[t[13]||(t[13]=I("div",{class:"qrcode-header"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("rect",{x:"3",y:"3",width:"5",height:"5"}),I("rect",{x:"16",y:"3",width:"5",height:"5"}),I("rect",{x:"3",y:"16",width:"5",height:"5"}),I("path",{d:"M21 16h-3a2 2 0 0 0-2 2v3"}),I("path",{d:"M21 21v.01"}),I("path",{d:"M12 7v3a2 2 0 0 1-2 2H7"}),I("path",{d:"M3 12h.01"}),I("path",{d:"M12 3h.01"}),I("path",{d:"M12 16v.01"}),I("path",{d:"M16 12h1"}),I("path",{d:"M21 12v.01"}),I("path",{d:"M12 21v-1"})]),I("span",null,"扫描二维码")],-1)),I("div",CEt,[I("img",{src:n.config.qr,alt:"二维码",class:"qrcode-image-modern",onLoad:t[2]||(t[2]=(...l)=>r.onQrLoad&&r.onQrLoad(...l)),onError:t[3]||(t[3]=(...l)=>r.onQrError&&r.onQrError(...l))},null,40,EEt),r.qrError?(z(),X("div",TEt,[...t[12]||(t[12]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),I("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1),I("span",null,"二维码加载失败",-1)])])):Ae("",!0)]),n.config.qrText?(z(),X("div",AEt,je(n.config.qrText),1)):Ae("",!0)])])):Ae("",!0),n.config.details?(z(),X("div",IEt,[t[14]||(t[14]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),I("polyline",{points:"14,2 14,8 20,8"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),I("polyline",{points:"10,9 9,9 8,9"})])]),I("h3",{class:"section-title"},"详细信息")],-1)),I("div",LEt,[(z(!0),X(Pt,null,cn(r.detailsList,(l,c)=>(z(),X("div",{key:c,class:"detail-card glass-effect"},[l.title?(z(),X("div",DEt,je(l.title),1)):Ae("",!0),I("div",{class:"detail-text-modern",innerHTML:l.content},null,8,PEt)]))),128))])])):Ae("",!0),n.config.steps?(z(),X("div",REt,[t[15]||(t[15]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})])]),I("h3",{class:"section-title"},"操作步骤")],-1)),I("div",MEt,[(z(!0),X(Pt,null,cn(r.stepsList,(l,c)=>(z(),X("div",{key:c,class:"step-card glass-effect"},[I("div",OEt,je(c+1),1),I("div",$Et,[l.title?(z(),X("div",BEt,je(l.title),1)):Ae("",!0),I("div",{class:"step-text-modern",innerHTML:l.content},null,8,NEt),l.image?(z(),X("div",FEt,[I("img",{src:l.image,alt:l.title||`步骤${c+1}`,class:"step-img-modern"},null,8,jEt)])):Ae("",!0)])]))),128))])])):Ae("",!0),n.config.faq?(z(),X("div",VEt,[t[18]||(t[18]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),I("path",{d:"M12 17h.01"})])]),I("h3",{class:"section-title"},"常见问题")],-1)),I("div",zEt,[(z(!0),X(Pt,null,cn(r.faqList,(l,c)=>(z(),X("div",{key:c,class:fe(["faq-card glass-effect",{expanded:r.expandedFaq===c}])},[I("div",{class:"faq-question-modern",onClick:d=>r.toggleFaq(c)},[I("div",HEt,[t[16]||(t[16]=I("div",{class:"question-icon-wrapper"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),I("path",{d:"M12 17h.01"})])],-1)),I("span",WEt,je(l.question),1)]),I("div",{class:fe(["expand-icon",{rotated:r.expandedFaq===c}])},[...t[17]||(t[17]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"6,9 12,15 18,9"})],-1)])],2)],8,UEt),Ci(I("div",GEt,[I("div",{class:"answer-text-modern",innerHTML:l.answer},null,8,KEt)],512),[[Ko,r.expandedFaq===c]])],2))),128))])])):Ae("",!0),n.config.links?(z(),X("div",qEt,[t[21]||(t[21]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),I("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})])]),I("h3",{class:"section-title"},"相关链接")],-1)),I("div",YEt,[(z(!0),X(Pt,null,cn(r.linksList,(l,c)=>(z(),X("a",{key:c,href:l.url,target:l.target||"_blank",class:"link-card glass-effect",onClick:d=>r.onLinkClick(l)},[t[19]||(t[19]=I("div",{class:"link-icon-modern"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),I("polyline",{points:"15,3 21,3 21,9"}),I("line",{x1:"10",y1:"14",x2:"21",y2:"3"})])],-1)),I("div",ZEt,[I("span",JEt,je(l.title),1),l.description?(z(),X("span",QEt,je(l.description),1)):Ae("",!0)]),t[20]||(t[20]=I("div",{class:"link-arrow"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"9,18 15,12 9,6"})])],-1))],8,XEt))),128))])])):Ae("",!0),n.config.contact?(z(),X("div",e8t,[t[30]||(t[30]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})])]),I("h3",{class:"section-title"},"联系我们")],-1)),I("div",t8t,[n.config.contact.email?(z(),X("div",n8t,[t[23]||(t[23]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),I("polyline",{points:"22,6 12,13 2,6"})])],-1)),I("div",r8t,[t[22]||(t[22]=I("span",{class:"contact-label-modern"},"邮箱",-1)),I("a",{href:`mailto:${n.config.contact.email}`,class:"contact-value-modern"},je(n.config.contact.email),9,i8t)])])):Ae("",!0),n.config.contact.phone?(z(),X("div",o8t,[t[25]||(t[25]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})])],-1)),I("div",s8t,[t[24]||(t[24]=I("span",{class:"contact-label-modern"},"电话",-1)),I("a",{href:`tel:${n.config.contact.phone}`,class:"contact-value-modern"},je(n.config.contact.phone),9,a8t)])])):Ae("",!0),n.config.contact.website?(z(),X("div",l8t,[t[27]||(t[27]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),I("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})])],-1)),I("div",u8t,[t[26]||(t[26]=I("span",{class:"contact-label-modern"},"网站",-1)),I("a",{href:n.config.contact.website,target:"_blank",class:"contact-value-modern"},je(n.config.contact.website),9,c8t)])])):Ae("",!0),n.config.contact.address?(z(),X("div",d8t,[t[29]||(t[29]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),I("circle",{cx:"12",cy:"10",r:"3"})])],-1)),I("div",f8t,[t[28]||(t[28]=I("span",{class:"contact-label-modern"},"地址",-1)),I("span",h8t,je(n.config.contact.address),1)])])):Ae("",!0)])])):Ae("",!0)]),n.config.timeout&&r.timeLeft>0?(z(),X("div",p8t,[t[31]||(t[31]=I("div",{class:"timeout-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})])],-1)),I("span",null,je(r.timeLeft)+"秒后自动关闭",1)])):Ae("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const U3e=sr(cEt,[["render",m8t],["__scopeId","data-v-005dc119"]]),g8t=Object.freeze(Object.defineProperty({__proto__:null,default:U3e},Symbol.toStringTag,{value:"Module"}));let y8t=class{constructor(){this.currentAction=ue(null),this.actionHistory=ue([]),this.globalConfig=Wt({defaultTimeout:30,maxHistorySize:100,debugMode:!1,theme:"default",allowMultiple:!1,defaultDialog:{width:400,height:null,canceledOnTouchOutside:!0}}),this.actionQueue=ue([]),this.errorHandlers=new Map,this.eventListeners=new Map,this.statistics=Wt({totalActions:0,successfulActions:0,canceledActions:0,errorActions:0,averageResponseTime:0})}async showAction(t,n={}){try{this.validateConfig(t);const r=this.createAction(t,n);if(!this.globalConfig.allowMultiple&&this.currentAction.value)if(n.force)await this.closeCurrentAction();else return this.enqueueAction(r);return this.currentAction.value=r,this.addToHistory(r),this.statistics.totalActions++,this.emit("action-show",r),this.startTimeout(r),new Promise((i,a)=>{r.resolve=i,r.reject=a})}catch(r){throw this.handleError(r,t),r}}createAction(t,n){const r={id:this.generateId(),type:t.type,config:{...t},options:{...n},status:"pending",visible:!0,startTime:Date.now(),endTime:null,result:null,error:null,timeout:null,resolve:null,reject:null};return this.mergeGlobalConfig(r),r}mergeGlobalConfig(t){!t.config.timeout&&this.globalConfig.defaultTimeout>0&&(t.config.timeout=this.globalConfig.defaultTimeout),t.config.width||(t.config.width=this.globalConfig.defaultDialog.width),t.config.height||(t.config.height=this.globalConfig.defaultDialog.height),t.config.canceledOnTouchOutside===void 0&&(t.config.canceledOnTouchOutside=this.globalConfig.defaultDialog.canceledOnTouchOutside)}submitAction(t){const n=this.currentAction.value;n&&(n.status="completed",n.result=t,n.endTime=Date.now(),n.visible=!1,this.clearTimeout(n),this.statistics.successfulActions++,this.updateAverageResponseTime(n),this.emit("action-submit",{action:n,result:t}),n.resolve&&n.resolve(t),this.processNextAction())}cancelAction(t="user_cancel"){const n=this.currentAction.value;n&&(n.status="canceled",n.error={type:"cancel",reason:t},n.endTime=Date.now(),n.visible=!1,this.clearTimeout(n),this.statistics.canceledActions++,this.emit("action-cancel",{action:n,reason:t}),n.reject&&n.reject(new Error(`Action canceled: ${t}`)),this.processNextAction())}actionError(t){const n=this.currentAction.value;n&&(n.status="error",n.error=t,n.endTime=Date.now(),this.clearTimeout(n),this.statistics.errorActions++,this.emit("action-error",{action:n,error:t}),this.handleError(t,n.config),n.reject&&n.reject(t),this.processNextAction())}async closeCurrentAction(){this.currentAction.value&&this.cancelAction("force_close")}enqueueAction(t){return this.actionQueue.value.push(t),new Promise((n,r)=>{t.resolve=n,t.reject=r})}processNextAction(){if(this.currentAction.value=null,this.actionQueue.value.length>0){const t=this.actionQueue.value.shift();this.currentAction.value=t,this.addToHistory(t),this.statistics.totalActions++,this.emit("action-show",t),this.startTimeout(t)}}startTimeout(t){!t.config.timeout||t.config.timeout<=0||(t.timeout=setTimeout(()=>{t===this.currentAction.value&&this.cancelAction("timeout")},t.config.timeout*1e3))}clearTimeout(t){t.timeout&&(clearTimeout(t.timeout),t.timeout=null)}addToHistory(t){this.actionHistory.value.unshift(t),this.actionHistory.value.length>this.globalConfig.maxHistorySize&&(this.actionHistory.value=this.actionHistory.value.slice(0,this.globalConfig.maxHistorySize))}updateAverageResponseTime(t){const n=t.endTime-t.startTime,r=this.statistics.successfulActions,i=this.statistics.averageResponseTime;this.statistics.averageResponseTime=Math.round((i*(r-1)+n)/r)}validateConfig(t){if(!t||typeof t!="object")throw new Error("Action配置不能为空");if(!t.type||!Object.values(Ti).includes(t.type))throw new Error(`无效的Action类型: ${t.type}`);if(!t.actionId||typeof t.actionId!="string")throw new Error("actionId是必需的,且必须是字符串类型");switch(t.type){case Ti.INPUT:if(!t.msg&&!t.img&&!t.qr)throw new Error("InputAction必须包含消息、图片或二维码");break;case Ti.MULTI_INPUT:const n=t.input||t.inputs;if(!n||!Array.isArray(n)||n.length===0)throw new Error("MultiInputAction必须包含输入项列表");break;case Ti.MULTI_INPUT_X:const r=t.input||t.inputs;if(!r||!Array.isArray(r)||r.length===0)throw new Error("MultiInputXAction必须包含输入项列表");break;case Ti.MENU:case Ti.SELECT:const i=t.option||t.options;if(!i||!Array.isArray(i)||i.length===0)throw new Error("MenuAction必须包含选项列表");break;case Ti.MSGBOX:if(!t.msg&&!t.img&&!t.qr)throw new Error("MsgBoxAction必须包含消息、图片或二维码");break;case Ti.WEBVIEW:if(!t.url)throw new Error("WebViewAction必须包含URL");break;case Ti.HELP:if(!t.msg&&!t.details&&!t.steps)throw new Error("HelpAction必须包含帮助内容");break}}handleError(t,n){this.globalConfig.debugMode&&console.error("Action错误:",t,n);const r=this.errorHandlers.get(t.type)||this.errorHandlers.get("default");if(r)try{r(t,n)}catch(i){console.error("错误处理器异常:",i)}this.emit("error",{error:t,config:n})}registerErrorHandler(t,n){this.errorHandlers.set(t,n)}on(t,n){this.eventListeners.has(t)||this.eventListeners.set(t,[]),this.eventListeners.get(t).push(n)}off(t,n){const r=this.eventListeners.get(t);if(r){const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,n){const r=this.eventListeners.get(t);r&&r.forEach(i=>{try{i(n)}catch(a){console.error("事件监听器异常:",a)}})}generateId(){return`action_${Date.now()}_${Math.random().toString(36).substr(2,9)}`}getHistory(t={}){let n=[...this.actionHistory.value];return t.type&&(n=n.filter(r=>r.type===t.type)),t.status&&(n=n.filter(r=>r.status===t.status)),t.startTime&&(n=n.filter(r=>r.startTime>=t.startTime)),t.endTime&&(n=n.filter(r=>r.endTime<=t.endTime)),t.limit&&(n=n.slice(0,t.limit)),n}clearHistory(t={}){if(Object.keys(t).length===0)this.actionHistory.value=[];else{const n=this.actionHistory.value.filter(r=>!(t.type&&r.type===t.type||t.status&&r.status===t.status||t.before&&r.startTime{t.reject&&t.reject(new Error("ActionStateManager destroyed"))}),this.actionQueue.value=[],this.eventListeners.clear(),this.errorHandlers.clear(),this.actionHistory.value=[]}};const Zo=new y8t,sa=(e,t)=>Zo.showAction(e,t),b8t=e=>Zo.submitAction(e),qle=e=>Zo.cancelAction(e),_8t=F(()=>Zo.currentAction.value),S8t=F(()=>Zo.actionHistory.value),k8t=F(()=>Zo.actionQueue.value),_x=F(()=>Zo.statistics),Yle=F(()=>Zo.globalConfig),Vz={ActionRenderer:ug,ActionDialog:np,InputAction:N3e,MultiInputAction:F3e,MenuAction:j3e,MsgBoxAction:V3e,WebViewAction:z3e,HelpAction:U3e},w8t=(e,t={})=>{Object.keys(Vz).forEach(n=>{e.component(n,Vz[n])}),t.config&&Zo.updateConfig(t.config),e.config.globalProperties.$actionManager=Zo,e.config.globalProperties.$showAction=sa,e.provide("actionManager",Zo),e.provide("showAction",sa)},x8t={install:w8t,...Vz},jr={input:e=>sa({...e,type:Ti.INPUT}),edit:e=>sa({...e,type:Ti.EDIT}),multiInput:e=>sa({...e,type:Ti.MULTI_INPUT}),multiInputX:e=>sa({...e,type:Ti.MULTI_INPUT_X}),menu:e=>sa({...e,type:Ti.MENU}),select:e=>sa({...e,type:Ti.SELECT}),msgBox:e=>sa({...e,type:Ti.MSGBOX}),webView:e=>sa({...e,type:Ti.WEBVIEW}),help:e=>sa({...e,type:Ti.HELP}),confirm:(e,t="确认")=>sa({actionId:`confirm-${Date.now()}`,type:Ti.MSGBOX,msg:e,title:t,button:gi.OK_CANCEL}),alert:(e,t="提示")=>sa({actionId:`alert-${Date.now()}`,type:Ti.MSGBOX,msg:e,title:t,button:gi.OK_ONLY}),info:(e,t="信息")=>sa({actionId:`info-${Date.now()}`,type:Ti.MSGBOX,msg:e,title:t,button:gi.OK_ONLY,icon:"info"}),success:(e,t="成功")=>sa({actionId:`success-${Date.now()}`,type:Ti.MSGBOX,msg:e,title:t,button:gi.OK_ONLY,icon:"success"}),error:(e,t="错误")=>sa({actionId:`error-${Date.now()}`,type:Ti.MSGBOX,msg:e,title:t,button:gi.OK_ONLY,icon:"error"}),warning:(e,t="警告")=>sa({actionId:`warning-${Date.now()}`,type:Ti.MSGBOX,msg:e,title:t,button:gi.OK_ONLY,icon:"warning"}),loading:(e="加载中...",t="请稍候")=>sa({actionId:`loading-${Date.now()}`,type:Ti.MSGBOX,msg:e,title:t,button:gi.NONE,showProgress:!0}),progress:(e,t="进度",n=0)=>sa({actionId:`progress-${Date.now()}`,type:Ti.MSGBOX,msg:e,title:t,button:gi.CANCEL_ONLY,showProgress:!0,progress:n})},C8t={class:"global-action-content"},E8t={class:"search-section"},T8t={class:"search-filters"},A8t={class:"action-list-container"},I8t={key:0,class:"empty-state"},L8t={class:"empty-icon"},D8t={class:"empty-text"},P8t={class:"empty-hint"},R8t={key:1,class:"action-list"},M8t=["onClick"],O8t={class:"action-main"},$8t={class:"action-name"},B8t={class:"action-source"},N8t={class:"action-arrow"},F8t={class:"action-stats"},j8t={class:"stats-item"},V8t={class:"stats-value"},z8t={class:"stats-item"},U8t={class:"stats-value"},H8t={key:0,class:"stats-item"},W8t={class:"stats-value"},G8t={key:1,class:"stats-item"},K8t={class:"stats-value"},q8t={__name:"GlobalActionDialog",props:{visible:{type:Boolean,default:!1},sites:{type:Array,default:()=>[]}},emits:["update:visible","action-executed","special-action"],setup(e,{emit:t}){const n=e,r=t,i=ue(""),a=ue(""),s=ue(!1),l=ue(null),c=ue(null),d=F(()=>{const M=[];return n.sites.forEach($=>{$.more&&$.more.actions&&Array.isArray($.more.actions)&&$.more.actions.forEach(L=>{M.push({...L,siteKey:$.key,siteName:$.name,siteApi:$.api,siteExt:$.ext})})}),M}),h=F(()=>n.sites.filter(M=>M.more&&M.more.actions&&Array.isArray(M.more.actions)&&M.more.actions.length>0)),p=F(()=>{let M=d.value;if(a.value&&(M=M.filter($=>$.siteKey===a.value)),i.value.trim()){const $=i.value.toLowerCase().trim();M=M.filter(L=>L.name.toLowerCase().includes($)||L.siteName.toLowerCase().includes($))}return M}),v=M=>d.value.filter($=>$.siteKey===M).length,g=()=>{if(!a.value)return"";const M=h.value.find($=>$.key===a.value);return M?M.name:""},y=()=>d.value.length===0?"暂无可用的全局动作":a.value&&i.value.trim()?"在当前站源中未找到匹配的动作":a.value?"当前站源暂无可用动作":i.value.trim()?"未找到匹配的动作":"暂无可用的全局动作",S=()=>d.value.length===0?"请确保站源配置中包含动作信息":a.value&&i.value.trim()?"请尝试其他关键词或切换站源":a.value?"请选择其他站源或清除筛选条件":i.value.trim()?"请尝试其他关键词或清除搜索条件":"请确保站源配置中包含动作信息",k=async(M,$,L,B)=>{if(!$&&!L)return console.warn("未提供siteKey或apiUrl,无法调用T4接口"),null;const j={action:M};B&&B.ext&&(j.extend=B.ext),L&&(j.apiUrl=L),console.log("GlobalActionDialog调用T4接口:",{siteKey:$,actionData:j,apiUrl:L});let H=null;return $?(console.log("调用模块:",$),H=await xS($,j)):L&&(console.log("直接调用API:",L),H=(await(await pc(async()=>{const{default:K}=await Promise.resolve().then(()=>hW);return{default:K}},void 0)).default.post(L,j,{timeout:pW(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",H),H},w=async M=>{try{if(console.log("执行全局动作:",M),!M||typeof M!="object")throw new Error("无效的动作对象");let $;if(typeof M.action=="string")try{$=JSON.parse(M.action.replace(/'/g,'"'))}catch{console.log("纯字符串动作,调用T4接口:",M.action);try{const B=await k(M.action,M.siteKey,M.siteApi,M.siteExt);if(B)if(typeof B=="string")try{const j=JSON.parse(B);let H=j.action||j;if(typeof H=="string")try{H=JSON.parse(H)}catch{console.warn("action字段不是有效的JSON字符串:",H)}$=H}catch{$={type:"msgbox",title:M.name||"动作结果",msg:B}}else if(typeof B=="object"&&B!==null){let j=B.action||B;if(typeof j=="string")try{j=JSON.parse(j)}catch{console.warn("action字段不是有效的JSON字符串:",j)}$=j}else throw new Error("T4接口返回了无效的数据格式");else throw new Error("T4接口调用失败或返回空结果")}catch(B){console.error("T4接口调用失败:",B),$={type:"msgbox",title:"动作执行失败",msg:`调用T4接口失败: ${B.message}`}}}else if(typeof M.action=="object"&&M.action!==null)$=M.action;else throw new Error("无效的动作配置");$.siteKey=M.siteKey,$.siteName=M.siteName,$.siteApi=M.siteApi,$.siteExt=M.siteExt,console.log(":",$),l.value=$,s.value=!0}catch($){console.error("执行全局动作失败:",$),r("action-executed",{action:M,error:$.message,success:!1}),gt.error(`动作 "${M.name}" 执行失败: ${$.message}`)}},x=()=>{r("update:visible",!1),i.value="",a.value=""},E=()=>{s.value=!1,l.value=null},_=async(M,$)=>(console.log("ActionRenderer 动作执行:",{actionId:M,value:$}),{success:!0,message:"动作执行成功"}),T=M=>{console.log("ActionRenderer 执行成功:",M),r("action-executed",{action:l.value,result:M,success:!0}),gt.success("动作执行成功"),E(),x()},D=M=>{console.error("ActionRenderer 执行失败:",M),r("action-executed",{action:l.value,error:M.message||M,success:!1}),M.type!=="cancel"&>.error(`动作执行失败: ${M.message||M}`),E()},P=(M,$)=>{console.log("ActionRenderer special-action:",{actionType:M,actionData:$}),r("special-action",M,$),E()};return It(()=>n.visible,M=>{M&&(i.value="",a.value="")}),(M,$)=>{const L=Ee("a-input-search"),B=Ee("a-option"),j=Ee("a-select"),H=Ee("icon-thunderbolt"),U=Ee("icon-desktop"),W=Ee("icon-right"),K=Ee("a-modal");return z(),Ze(K,{visible:e.visible,title:"全局动作",width:800,footer:!1,onCancel:x,class:"global-action-dialog"},{default:ce(()=>[I("div",C8t,[I("div",E8t,[I("div",T8t,[O(L,{modelValue:i.value,"onUpdate:modelValue":$[0]||($[0]=oe=>i.value=oe),placeholder:"搜索动作或站源...","allow-clear":"",class:"action-search"},null,8,["modelValue"]),O(j,{modelValue:a.value,"onUpdate:modelValue":$[1]||($[1]=oe=>a.value=oe),placeholder:"选择站源","allow-clear":"",class:"site-filter"},{default:ce(()=>[O(B,{value:""},{default:ce(()=>[...$[2]||($[2]=[He("全部站源",-1)])]),_:1}),(z(!0),X(Pt,null,cn(h.value,oe=>(z(),Ze(B,{key:oe.key,value:oe.key},{default:ce(()=>[He(je(oe.name)+" ("+je(v(oe.key))+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])]),I("div",A8t,[p.value.length===0?(z(),X("div",I8t,[I("div",L8t,[O(H)]),I("div",D8t,je(y()),1),I("div",P8t,je(S()),1)])):(z(),X("div",R8t,[(z(!0),X(Pt,null,cn(p.value,oe=>(z(),X("div",{key:`${oe.siteKey}-${oe.name}`,class:"action-item",onClick:ae=>w(oe)},[I("div",O8t,[I("div",$8t,[O(H,{class:"action-icon"}),He(" "+je(oe.name),1)]),I("div",B8t,[O(U,{class:"source-icon"}),He(" "+je(oe.siteName),1)])]),I("div",N8t,[O(W)])],8,M8t))),128))]))]),I("div",F8t,[I("div",j8t,[$[3]||($[3]=I("span",{class:"stats-label"},"总动作数:",-1)),I("span",V8t,je(d.value.length),1)]),I("div",z8t,[$[4]||($[4]=I("span",{class:"stats-label"},"站源数:",-1)),I("span",U8t,je(h.value.length),1)]),a.value?(z(),X("div",H8t,[$[5]||($[5]=I("span",{class:"stats-label"},"当前站源:",-1)),I("span",W8t,je(g()),1)])):Ae("",!0),i.value||a.value?(z(),X("div",G8t,[$[6]||($[6]=I("span",{class:"stats-label"},"筛选结果:",-1)),I("span",K8t,je(p.value.length),1)])):Ae("",!0)])]),s.value?(z(),Ze(ug,{key:0,ref_key:"actionRendererRef",ref:c,"action-data":l.value,module:l.value?.siteKey,extend:l.value?.siteExt,"api-url":l.value?.siteApi,visible:s.value,onClose:E,onAction:_,onSuccess:T,onError:D,onSpecialAction:P},null,8,["action-data","module","extend","api-url","visible"])):Ae("",!0)]),_:1},8,["visible"])}}},Y8t=sr(q8t,[["__scopeId","data-v-cd5d9c46"]]),X8t={class:"breadcrumb-container"},Z8t={class:"header-left"},J8t={class:"navigation-title"},Q8t={class:"header-center"},eTt={class:"header-right"},tTt={class:"push-modal-content"},nTt={class:"push-description"},rTt={class:"push-hint"},iTt={class:"hint-item"},oTt={class:"hint-item"},sTt={__name:"Breadcrumb",props:{navigation_title:{type:String,default:"Video"},now_site_title:String,sites:{type:Array,default:()=>[]}},emits:["handleOpenForm","refreshPage","onSearch","handlePush","minimize","maximize","closeWindow","actionExecuted"],setup(e,{emit:t}){const n=e,r=t,i=ue(""),a=ue(!1),s=ue(""),l=ue(!1),c=()=>{r("handleOpenForm")},d=()=>{r("refreshPage")},h=k=>{const w=typeof k=="string"?k:i.value;w&&typeof w=="string"&&w.trim()&&r("onSearch",w.trim())},p=()=>{a.value=!0,s.value=""},v=()=>{if(!n.sites||n.sites.length===0){gt.warning("当前没有可用的站源配置");return}if(console.log(n.sites),n.sites.filter(w=>w.more&&w.more.actions&&Array.isArray(w.more.actions)&&w.more.actions.length>0).length===0){gt.info("当前站源配置中没有可用的全局动作");return}l.value=!0},g=k=>{if(console.log("全局动作执行完成:",k),r("actionExecuted",k),!k||typeof k!="object"){console.warn("Invalid event object received in handleActionExecuted");return}const w=k.action?.name||"未知动作";k.success?gt.success(`动作 "${w}" 执行成功`):k.error!=="cancel"&>.error(`动作 "${w}" 执行失败: ${k.error||"未知错误"}`)},y=()=>{if(!s.value.trim()){gt.error("推送内容不能为空");return}const k=s.value.split(` +`).map(x=>x.trim()).filter(x=>x);if(k.length===0){gt.error("请输入有效的推送内容");return}const w=k[0];k.length>1&>.info(`检测到多行输入,将使用第一行内容: ${w}`),r("handlePush",w),a.value=!1,s.value=""},S=()=>{a.value=!1,s.value=""};return(k,w)=>{const x=Ee("icon-apps"),E=Ee("a-button"),_=Ee("icon-refresh"),T=Ee("a-input-search"),D=Ee("icon-send"),P=Ee("icon-thunderbolt"),M=Ee("a-textarea"),$=Ee("icon-info-circle"),L=Ee("icon-bulb"),B=Ee("a-modal");return z(),X(Pt,null,[I("div",X8t,[I("div",Z8t,[I("span",J8t,je(e.navigation_title),1),O(E,{type:"outline",status:"success",shape:"round",onClick:c},{icon:ce(()=>[O(x)]),default:ce(()=>[He(je(e.now_site_title),1)]),_:1}),O(E,{type:"outline",status:"success",shape:"round",onClick:d},{icon:ce(()=>[O(_)]),default:ce(()=>[...w[4]||(w[4]=[He("重载源",-1)])]),_:1})]),I("div",Q8t,[O(T,{modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=j=>i.value=j),placeholder:"搜索视频","enter-button":"",onSearch:h,onPressEnter:h},null,8,["modelValue"])]),I("div",eTt,[O(E,{type:"outline",status:"success",shape:"round",onClick:p},{icon:ce(()=>[O(D)]),default:ce(()=>[...w[5]||(w[5]=[He("推送",-1)])]),_:1}),O(E,{type:"outline",status:"success",shape:"round",onClick:v},{icon:ce(()=>[O(P)]),default:ce(()=>[...w[6]||(w[6]=[He("全局动作",-1)])]),_:1}),mt(k.$slots,"default",{},void 0,!0)])]),O(B,{visible:a.value,"onUpdate:visible":w[2]||(w[2]=j=>a.value=j),title:"推送内容",width:600,onOk:y,onCancel:S,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!s.value.trim()}},{default:ce(()=>[I("div",tTt,[I("div",nTt,[O(D,{class:"push-icon"}),w[7]||(w[7]=I("span",null,"请输入要推送的内容(vod_id):",-1))]),O(M,{modelValue:s.value,"onUpdate:modelValue":w[1]||(w[1]=j=>s.value=j),placeholder:`请输入要推送的内容... +支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),I("div",rTt,[I("div",iTt,[O($,{class:"hint-icon"}),w[8]||(w[8]=I("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),I("div",oTt,[O(L,{class:"hint-icon"}),w[9]||(w[9]=I("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"]),O(Y8t,{visible:l.value,"onUpdate:visible":w[3]||(w[3]=j=>l.value=j),sites:e.sites,onActionExecuted:g},null,8,["visible","sites"])],64)}}},aTt=sr(sTt,[["__scopeId","data-v-2f29cc38"]]),lTt=e=>`${vW.PARSE}/${e}`,uTt=async(e,t)=>{const{url:n,flag:r,headers:i,...a}=t;if(!n)throw new Error("视频URL不能为空");const s={url:n,...a};r&&(s.flag=r);const l={};return i&&(l.headers={...l.headers,...i}),H0(lTt(e),s)};class cTt{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!Ip(t))throw new Error("无效的模块名称");const{apiUrl:r,...i}=n,a=`home_${t}_${JSON.stringify(n)}`;console.log("[VideoService] getRecommendVideos 缓存检查:",{module:t,cacheKey:a,cacheSize:this.cache.size,allCacheKeys:Array.from(this.cache.keys())});const s=this.getFromCache(a);if(s)return console.log("[VideoService] 使用缓存数据:",{module:t,videosCount:s.videos?.length||0,categoriesCount:s.categories?.length||0}),s;console.log("[VideoService] 缓存未命中,发起新请求:",t);try{const l={...i};r&&(l.apiUrl=r);const c=await A6t(t,l),d={categories:c.class||[],filters:c.filters||{},videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c)};return console.log("[VideoService] 新数据已获取并缓存:",{module:t,videosCount:d.videos?.length||0,categoriesCount:d.categories?.length||0,cacheKey:a}),this.setCache(a,d),d}catch(l){throw console.error("获取首页推荐视频失败:",l),l}}async getCategoryVideos(t,n){if(!Ip(t))throw new Error("无效的模块名称");const{typeId:r,page:i=1,filters:a={},apiUrl:s,extend:l}=n;if(!r)throw new Error("分类ID不能为空");const c=`category_${t}_${r}_${i}_${JSON.stringify(a)}`,d=this.getFromCache(c);if(d)return d;try{const h={t:r,pg:i};Object.keys(a).length>0&&(h.ext=lct(a));const p=ca(l);p&&(h.extend=p),s&&(h.apiUrl=s);const v=await J1(t,h),g={videos:(v.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(v,i),filters:v.filters||{},total:v.total||0};return this.setCache(c,g),g}catch(h){throw console.error("获取分类视频失败:",h),h}}async getVideoDetails(t,n,r,i=!1,a=null){if(!Ip(t))throw new Error("无效的模块名称");if(!uct(n))throw new Error("无效的视频ID");const s=`detail_${t}_${n}`;if(i)console.log("跳过缓存,强制获取最新视频详情:",{module:t,videoId:n});else{const l=this.getFromCache(s);if(l)return console.log("使用缓存的视频详情:",{module:t,videoId:n}),l}try{const l={ids:n};r&&(l.apiUrl=r);const c=ca(a);c&&(l.extend=c);const d=await I6t(t,l);if(!d.list||d.list.length===0)throw new Error("视频不存在");const h=this.formatVideoInfo(d.list[0]);return h.vod_play_url&&(h.playList=this.parsePlayUrls(h.vod_play_url,h.vod_play_from)),this.setCache(s,h),h}catch(l){throw console.error("获取视频详情失败:",l),l}}async searchVideo(t,n){if(!Ip(t))throw new Error("无效的模块名称");const{keyword:r,page:i=1,extend:a,apiUrl:s}=n;if(!r||r.trim().length===0)throw new Error("搜索关键词不能为空");try{const l={wd:r.trim(),pg:i},c=ca(a);c&&(l.extend=c),s&&(l.apiUrl=s);const d=await D6t(t,l);return{videos:(d.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(d,i),keyword:r.trim(),total:d.total||0,rawResponse:d}}catch(l){throw console.error("搜索视频失败:",l),l}}async getPlayUrl(t,n,r,i=null){if(!Ip(t))throw new Error("无效的模块名称");if(!n)throw new Error("播放地址不能为空");try{const a={play:n};r&&(a.apiUrl=r);const s=ca(i);s&&(a.extend=s);const l=await B3e(t,a);return{url:l.url||n,headers:l.headers||{},parse:l.parse||!1,jx:l.jx||""}}catch(a){throw console.error("获取播放地址失败:",a),a}}async parseVideoUrl(t,n,r={}){if(!t)throw new Error("解析器名称不能为空");if(!n)throw new Error("视频地址不能为空");try{const i=await uTt(t,{url:n,...r});return{url:i.url||n,type:i.type||"mp4",headers:i.headers||{},success:i.success!==!1}}catch(i){throw console.error("解析视频地址失败:",i),i}}async parseEpisodePlayUrl(t,n){if(!Ip(t))throw new Error("无效的模块名称");const{play:r,flag:i,apiUrl:a,extend:s}=n;if(!r)throw new Error("播放地址不能为空");try{console.log("VideoService: 开始解析选集播放地址",{module:t,params:n});const l={play:r,extend:ca(s)};i&&(l.flag=i),a&&(l.apiUrl=a);const c=await L6t(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!Ip(t))throw new Error("无效的模块名称");if(!n||n.trim().length===0)throw new Error("动作名称不能为空");try{const i={action:n.trim(),value:r.value||"",extend:ca(r.extend),apiUrl:r.apiUrl};console.log("执行T4 action:",{module:t,actionData:i});const a=await xS(t,i);return console.log("T4 action执行结果:",a),a}catch(i){throw console.error("T4 action执行失败:",i),i}}async refreshModuleData(t,n=null,r=null){if(!Ip(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const i=ca(n),a=await P6t(t,i,r);return{success:!0,message:a.msg||"刷新成功",lastUpdate:a.data?.lastUpdate||new Date().toISOString()}}catch(i){throw console.error("刷新模块数据失败:",i),i}}formatVideoInfo(t){const n=dct();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),t.vod_hits&&(n.vod_hits=parseInt(t.vod_hits)||0),t.vod_score&&(n.vod_score=parseFloat(t.vod_score)||0),n}parsePlayUrls(t,n){if(!t)return[];const r=n?n.split("$$$"):["默认"],i=t.split("$$$");return r.map((a,s)=>({from:a.trim(),urls:this.parseEpisodeUrls(i[s]||""),index:s}))}parseEpisodeUrls(t){return t?t.split("#").map((n,r)=>{const[i,a]=n.split("$");return{name:i||`第${r+1}集`,url:a||"",index:r}}).filter(n=>n.url):[]}createPagination(t,n=1){const r=fct();r.page=n;const i=t.total||t.recordcount||0,a=t.pagecount||t.totalPages||0,s=t.limit||t.pagesize||20,l=t.list||[];return r.total=i,r.pageSize=s,a>0?(r.totalPages=a,r.hasNext=n0?(r.totalPages=Math.ceil(i/s),r.hasNext=nd.vod_id==="no_data"||d.vod_name==="no_data"||typeof d=="string"&&d.includes("no_data"))||l.length===0?(r.hasNext=!1,r.totalPages=n):(r.hasNext=!0,r.totalPages=n+1),r.hasPrev=n>1,r}getFromCache(t){const n=this.cache.get(t);return n&&Date.now()-n.timestamp({})},visible:{type:Boolean,default:!1}},emits:["update:visible","update:selectedFilters","toggle-filter","reset-filters"],setup(e,{emit:t}){const n=e,r=t,i=F(()=>n.selectedFilters&&Object.keys(n.selectedFilters).length>0),a=(c,d)=>n.selectedFilters?.[c]===d,s=(c,d,h)=>{r("toggle-filter",{filterKey:c,filterValue:d,filterName:h})},l=()=>{r("reset-filters")};return(c,d)=>{const h=Ee("a-button"),p=Ee("a-tag");return e.filters?(z(),X("div",dTt,[O(Cs,{name:"collapse"},{default:ce(()=>[Ci(I("div",fTt,[I("div",hTt,[i.value?(z(),Ze(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:ce(()=>[O(tt(sc))]),_:1})):Ae("",!0)]),(z(!0),X(Pt,null,cn(e.filters,v=>(z(),X("div",{key:v.key,class:"filter-group"},[I("div",pTt,[I("div",vTt,je(v.name),1),I("div",mTt,[I("div",gTt,[(z(!0),X(Pt,null,cn(v.value,g=>(z(),Ze(p,{key:g.v,color:a(v.key,g.v)?"green":"",checkable:!0,checked:a(v.key,g.v),onCheck:y=>s(v.key,g.v,g.n),class:"filter-option-tag"},{default:ce(()=>[He(je(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[Ko,e.visible]])]),_:1})])):Ae("",!0)}}},bTt=sr(yTt,[["__scopeId","data-v-90bc92fe"]]),_Tt={class:"category-nav-container"},STt={key:0,class:"special-category-header"},kTt={class:"special-category-title"},wTt={class:"category-name"},xTt=["onClick"],CTt={class:"category-name"},ETt={__name:"CategoryNavigation",props:{classList:{type:Object,default:()=>({})},trigger:{type:String,default:"click"},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,default:""},filters:{type:Object,default:()=>({})},selectedFilters:{type:Object,default:()=>({})},filterVisible:{type:Object,default:()=>({})},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})}},emits:["tab-change","open-category-modal","toggle-filter","reset-filters","close-special-category","filter-visible-change"],setup(e,{emit:t}){const n=e,r=t,i=()=>n.hasRecommendVideos?"recommendTuijian404":n.classList?.class&&n.classList.class.length>0?n.classList.class[0].type_id:"recommendTuijian404",a=ue(n.activeKey||i()),s=ue(null);let l=null;const c=ue(!1);It(()=>[n.hasRecommendVideos,n.classList,n.activeKey],()=>{const w=n.activeKey||i();a.value!==w&&(a.value=w,n.activeKey||d(w))},{immediate:!0}),It(a,(w,x)=>{c.value&&x&&x!==w&&n.filterVisible[x]&&r("filter-visible-change",{categoryId:x,visible:!1})},{flush:"post"});const d=w=>{a.value=w,r("tab-change",w)},h=w=>{if(p(w)){const x=!n.filterVisible[w];r("filter-visible-change",{categoryId:w,visible:x})}},p=w=>{const x=n.filters[w];return x&&Object.keys(x).length>0},v=w=>n.filters[w]||null,g=w=>{r("toggle-filter",w)},y=()=>{r("reset-filters")},S=()=>{r("open-category-modal")},k=()=>{console.log("关闭特殊分类"),r("close-special-category")};return fn(()=>{const w=s.value;if(!w)return;const x=w.querySelector(".arco-tabs-nav-tab-list");x&&(l=E=>{Math.abs(E.deltaY)>Math.abs(E.deltaX)&&(x.scrollLeft+=E.deltaY,E.preventDefault())},x.addEventListener("wheel",l,{passive:!1}),setTimeout(()=>{c.value=!0},100))}),_o(()=>{const x=s.value?.querySelector?.(".arco-tabs-nav-tab-list");x&&l&&x.removeEventListener("wheel",l)}),(w,x)=>{const E=Ee("a-tab-pane"),_=Ee("a-tabs");return z(),X("div",_Tt,[I("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[e.specialCategoryState.isActive?(z(),X("div",STt,[I("div",kTt,[I("span",wTt,je(e.specialCategoryState.categoryData?.type_name||"特殊分类"),1),x[1]||(x[1]=I("span",{class:"category-type"},"(源内搜索)",-1))])])):(z(),Ze(_,{key:1,"active-key":a.value,"onUpdate:activeKey":x[0]||(x[0]=T=>a.value=T),type:"line",position:"top",editable:!1,onChange:d},{default:ce(()=>[e.hasRecommendVideos?(z(),Ze(E,{key:"recommendTuijian404"},{title:ce(()=>[...x[2]||(x[2]=[I("span",null,"推荐",-1)])]),_:1})):Ae("",!0),(z(!0),X(Pt,null,cn(e.classList?.class||[],T=>(z(),Ze(E,{key:T.type_id},{title:ce(()=>[I("div",{class:"category-tab-title",onClick:fs(D=>T.type_id===a.value&&p(T.type_id)?h(T.type_id):d(T.type_id),["stop"])},[I("span",CTt,je(T.type_name),1),T.type_id===a.value&&p(T.type_id)?(z(),Ze(tt(KH),{key:0,class:fe(["filter-icon",{"filter-icon-active":e.filterVisible[T.type_id]}])},null,8,["class"])):Ae("",!0)],8,xTt)]),_:2},1024))),128))]),_:1},8,["active-key"])),e.specialCategoryState.isActive?(z(),X("div",{key:2,class:"special-category-close",onClick:k},[O(tt(rs)),x[3]||(x[3]=I("span",null,"返回",-1))])):(z(),X("div",{key:3,class:"category-manage",onClick:S},[O(tt(Wve))]))],512),v(a.value)&&n.filterVisible[a.value]?(z(),Ze(bTt,{key:0,filters:v(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:y},null,8,["filters","selectedFilters"])):Ae("",!0)])}}},TTt=sr(ETt,[["__scopeId","data-v-9076ce57"]]);function MT(e){if(!e||typeof e!="string")return"icon-file";const t=e.toLowerCase().split(".").pop(),n={doc:"icon-file_word",docx:"icon-file_word",xls:"icon-file_excel",xlsx:"icon-file_excel",ppt:"icon-file_ppt",pptx:"icon-file_ppt",pdf:"icon-file_pdf",txt:"icon-file_txt",rtf:"icon-file_txt",md:"icon-file_txt"},r={jpg:"icon-file_img",jpeg:"icon-file_img",png:"icon-file_img",gif:"icon-file_img",bmp:"icon-file_img",svg:"icon-file_img",webp:"icon-file_img",ico:"icon-file_img"},i={mp4:"icon-file_video",avi:"icon-file_video",mkv:"icon-file_video",mov:"icon-file_video",wmv:"icon-file_video",flv:"icon-file_video",webm:"icon-file_video",m4v:"icon-file_video",rmvb:"icon-file_video",rm:"icon-file_video"},a={mp3:"icon-file_music",wav:"icon-file_music",flac:"icon-file_music",aac:"icon-file_music",ogg:"icon-file_music",wma:"icon-file_music",m4a:"icon-file_music"},s={zip:"icon-file_zip",rar:"icon-file_zip","7z":"icon-file_zip",tar:"icon-file_zip",gz:"icon-file_zip",bz2:"icon-file_zip"},l={exe:"icon-file_exe",msi:"icon-file_exe",dmg:"icon-file_exe",pkg:"icon-file_exe",deb:"icon-file_exe",rpm:"icon-file_exe"},c={html:"icon-file_html",htm:"icon-file_html",css:"icon-file_code",js:"icon-file_code",ts:"icon-file_code",vue:"icon-file_code",jsx:"icon-file_code",tsx:"icon-file_code",php:"icon-file_code",py:"icon-file_code",java:"icon-file_code",cpp:"icon-file_code",c:"icon-file_code",cs:"icon-file_code",go:"icon-file_code",rs:"icon-file_code",swift:"icon-file_code",kt:"icon-file_code",rb:"icon-file_code",json:"icon-file_code",xml:"icon-file_code",yaml:"icon-file_code",yml:"icon-file_code"},d={ai:"icon-file_ai",psd:"icon-file_psd",sketch:"icon-file_psd",fig:"icon-file_psd",xd:"icon-file_psd"},h={dwg:"icon-file_cad",dxf:"icon-file_cad",step:"icon-file_cad",iges:"icon-file_cad"},p={swf:"icon-file_flash",fla:"icon-file_flash"},v={iso:"icon-file_iso",img:"icon-file_iso",bin:"icon-file_iso"},g={torrent:"icon-file_bt"},y={cloud:"icon-file_cloud",gdoc:"icon-file_cloud",gsheet:"icon-file_cloud",gslides:"icon-file_cloud"};return n[t]?n[t]:r[t]?r[t]:i[t]?i[t]:a[t]?a[t]:s[t]?s[t]:l[t]?l[t]:c[t]?c[t]:d[t]?d[t]:h[t]?h[t]:p[t]?p[t]:v[t]?v[t]:g[t]?g[t]:y[t]?y[t]:"icon-file"}function zz(e){return e&&e.vod_tag&&e.vod_tag.includes("folder")}function Uz(e){return e&&e.vod_tag&&!e.vod_tag.includes("folder")}const ATt=["onClick"],ITt={class:"video_list_item_img"},LTt={key:1,class:"folder-icon-container"},DTt={key:2,class:"file-icon-container"},PTt={style:{width:"30%"}},RTt=["href"],MTt=["innerHTML"],OTt={class:"video_list_item_title"},$Tt={class:"title-text"},BTt={key:0,class:"loading-container"},NTt={key:1,class:"no-more-data"},FTt={key:2,class:"empty-state"},jTt=1e3,VTt=5,zTt={__name:"VideoGrid",props:{videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},statsText:{type:String,default:""},showStats:{type:Boolean,default:!1},sourceRoute:{type:Object,default:()=>({})},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""},folderState:{type:Object,default:null}},emits:["load-more","scroll-bottom","refresh-list","special-action","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=ma(),s=pS(),l=ue(null),c=ue(null);let d=600;const h=ue(0);let p=0,v=!1,g=null;const y=F(()=>(h.value,{height:d+"px",overflow:"auto"})),S=()=>{v||L||(v=!0,dn(()=>{try{const Y=l.value;if(!Y)return;const Q=Y.querySelector(".arco-scrollbar-container");if(!Q)return;p=Q.scrollHeight;const ie=Q.clientHeight,q=window.innerHeight||document.documentElement.clientHeight||600,te=Math.max(q-200,400);if(p<=ie&&r.videos&&r.videos.length>0)if(r.hasMore!==!1){const Fe=Math.min(670,p-10);Fe>470&&d>Fe?(d=Fe,h.value++,console.log("[DEBUG] 调整容器高度以产生滚动条:",{contentHeight:p,clientHeight:ie,newContainerHeight:d}),g&&clearTimeout(g),g=setTimeout(()=>{k()},100)):(console.log("[DEBUG] 容器已达最小高度,直接触发加载更多"),k())}else console.log("[DEBUG] 没有更多数据可加载,保持当前状态");else p>ie&&d=te*.8&&(d=te,h.value++,console.log("[DEBUG] 恢复容器高度到理想高度:",{contentHeight:p,clientHeight:ie,idealHeight:te,newContainerHeight:d}))}catch(Y){console.error("checkContentHeight error:",Y)}finally{v=!1}}))},k=()=>{if(!(L||B>=j))try{const Y=l.value;if(!Y)return;const Q=Y.querySelector(".arco-scrollbar-container");if(!Q)return;const ie=Q.scrollHeight,q=Q.clientHeight;ie<=q&&r.videos&&r.videos.length>0&&(console.log("[DEBUG] 自动触发加载更多数据 - 内容高度不足"),i("load-more"))}catch(Y){console.error("checkAutoLoadMore error:",Y)}};let w=0,x=0;const E=()=>{if(L)return;const Y=Date.now();if(!(Y-w6e4&&(x=0),x>=VTt){console.warn("[VideoGrid] 高度恢复操作过于频繁,已暂停");return}try{const Q=l.value;if(!Q)return;const ie=Q.querySelector(".arco-scrollbar-container");if(!ie)return;const q=ie.scrollHeight,te=ie.clientHeight,Se=window.innerHeight||document.documentElement.clientHeight||600,Fe=Math.max(Se-200,400);if(q>Fe*.8&&d{L||(h.value++,x++,w=Y,console.log("[DEBUG] 主动恢复容器高度:",{contentHeight:q,clientHeight:te,idealHeight:Fe,oldContainerHeight:ve,newContainerHeight:Fe,restoreCount:x}))})}}catch(Q){console.error("checkHeightRestore error:",Q)}}},_=ue(null),T=ue(!1),D=ue(null),P=async Y=>{if(Y&&Y.vod_id){if(Y.vod_tag&&Y.vod_tag.includes("folder")){i("folder-navigate",{vod_id:Y.vod_id,vod_name:Y.vod_name,vod_tag:Y.vod_tag});return}if(Y.vod_tag==="action")try{const ie=JSON.parse(Y.vod_id);D.value=ie,T.value=!0;return}catch{await M(Y.vod_id);return}s.setLastClicked(Y.vod_id,Y.vod_name);const Q={name:Y.vod_name,pic:Y.vod_pic,year:Y.vod_year,area:Y.vod_area,type:Y.vod_type,remarks:Y.vod_remarks,content:Y.vod_content,actor:Y.vod_actor,director:Y.vod_director,sourceRouteName:r.sourceRoute?.name||"",sourceRouteParams:JSON.stringify(r.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(r.sourceRoute?.query||{}),sourcePic:Y.vod_pic};r.folderState&&r.folderState.isActive&&(Q.folderState=JSON.stringify(r.folderState)),a.push({name:"VideoDetail",params:{id:Y.vod_id},query:Q})}},M=async Y=>{try{const Q=await Ka.executeT4Action(r.module||"default",Y,{apiUrl:r.apiUrl,extend:r.extend.ext});Q&&Q.action?(D.value=Q.action,T.value=!0):Q?Hn(Q,"success"):gt.error({content:`无法获取动作配置: ${Y}`,duration:3e3,closable:!0})}catch(Q){console.error("T4 action执行失败:",Q),gt.error({content:`动作执行失败: ${Q.message}`,duration:3e3,closable:!0})}},$=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);let L=!1,B=0;const j=$?3:5;setInterval(()=>{B=0},1e3);const H=()=>{if(!(L||B>=j)){B++,L=!0;try{if(!l.value)return;const Q=window.innerHeight||document.documentElement.clientHeight||600,ie=Math.max(Q-200,400);Math.abs(d-ie)>50&&(d=ie,h.value++)}catch(Y){console.error("updateScrollAreaHeight error:",Y)}finally{setTimeout(()=>{L=!1},100)}}},U=Y=>{const Q=Y?.target||Y?.srcElement,ie=Q?.closest?Q.closest(".arco-scrollbar-container"):Q;if(!ie)return;const q=ie.scrollHeight-ie.clientHeight,te=ie.scrollTop;q-te<50&&(i("scroll-bottom"),i("load-more"),setTimeout(()=>{E()},200))},W=()=>{if(!(L||B>=j))try{const Y=document.querySelectorAll(".title-text");Y&&Y.length>0&&Y.forEach(Q=>{Q&&Q.scrollWidth&&Q.clientWidth&&Q.scrollWidth>Q.clientWidth&&Q.setAttribute("title",Q.textContent||"")})}catch(Y){console.error("checkTextOverflow error:",Y)}};fn(()=>{if(l.value){const Y=window.innerHeight||document.documentElement.clientHeight||600;d=Math.max(Y-200,400),h.value++,setTimeout(()=>{try{if(l.value){const q=Math.max(window.innerHeight-200,400);Math.abs(d-q)>50&&(d=q,h.value++),setTimeout(()=>{S()},1e3)}}catch(q){console.warn("Initial update failed:",q)}},$?500:300)}});{let Y=null,Q=0;const ie=()=>{const q=Date.now();q-Q<1e3||(Q=q,Y&&clearTimeout(Y),Y=setTimeout(()=>{!L&&l.value&&H()},800))};window.addEventListener("resize",ie),_o(()=>{window.removeEventListener("resize",ie),Y&&clearTimeout(Y)})}_o(()=>{window.removeEventListener("resize",H),g&&clearTimeout(g),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),It([()=>r.videos,()=>r.showStats],([Y,Q])=>{},{deep:!1,flush:"post"});const K=Y=>{Y&&c.value&&requestAnimationFrame(()=>{const Q=c.value?.$el?.querySelector(".arco-scrollbar-container");Q&&Q.scrollTo({top:Y,behavior:"smooth"})})},oe=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,ae=()=>{T.value=!1,D.value=null},ee=(Y,Q)=>{i("special-action",Y,Q),T.value=!1,D.value=null};return t({checkTextOverflow:W,restoreScrollPosition:K,getCurrentScrollPosition:oe,checkContentHeight:S,checkAutoLoadMore:k}),(Y,Q)=>{const ie=Ee("a-image"),q=Ee("a-grid-item"),te=Ee("a-grid"),Se=Ee("a-spin"),Fe=Ee("a-scrollbar");return z(),X("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[O(Fe,{onScroll:U,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:qe(y.value)},{default:ce(()=>[O(te,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:ce(()=>[(z(!0),X(Pt,null,cn(e.videos,(ve,Re)=>(z(),Ze(q,{key:`${ve.vod_id}_${Re}_${ve.vod_name||""}`,class:"video_list_hover"},{default:ce(()=>[I("div",{class:"video_list_item",onClick:Ge=>P(ve)},[I("div",ITt,[ve.vod_pic&&ve.vod_pic.trim()!==""?(z(),Ze(ie,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ve.vod_pic},null,8,["src"])):ve.vod_tag&&ve.vod_tag.includes("folder")?(z(),X("div",LTt,[...Q[0]||(Q[0]=[I("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):ve.vod_tag&&!ve.vod_tag.includes("folder")?(z(),X("div",DTt,[(z(),X("svg",PTt,[I("use",{href:`#${tt(MT)(ve.vod_name)}`},null,8,RTt)]))])):(z(),Ze(ie,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ve.vod_pic||"/default-poster.svg"},null,8,["src"])),ve.vod_remarks?(z(),X("div",{key:4,class:"video_remarks_overlay",innerHTML:ve.vod_remarks},null,8,MTt)):Ae("",!0)]),I("div",OTt,[I("span",$Tt,je(ve.vod_name),1)])],8,ATt)]),_:2},1024))),128))]),_:1}),e.loading?(z(),X("div",BTt,[O(Se),Q[1]||(Q[1]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),X("div",NTt," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(z(),X("div",FTt," 暂无视频数据 ")):Ae("",!0),Q[2]||(Q[2]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),T.value?(z(),Ze(ug,{key:0,ref_key:"actionRendererRef",ref:_,"action-data":D.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:ae,onSpecialAction:ee},null,8,["action-data","module","extend","api-url"])):Ae("",!0)],512)}}},V4=sr(zTt,[["__scopeId","data-v-eac41610"]]),UTt={class:"category-modal-content"},HTt=["onClick"],WTt={__name:"CategoryModal",props:{visible:{type:Boolean,default:!1},classList:{type:Object,required:!0},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,required:!0}},emits:["update:visible","select-category"],setup(e,{emit:t}){const n=t,r=()=>{n("update:visible",!1)},i=a=>{n("select-category",a),r()};return(a,s)=>{const l=Ee("a-modal");return z(),Ze(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:ce(()=>[I("div",UTt,[e.hasRecommendVideos?(z(),X("div",{key:0,class:fe(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>i("recommendTuijian404"))}," 推荐 ",2)):Ae("",!0),(z(!0),X(Pt,null,cn(e.classList.class,c=>(z(),X("div",{key:c.type_id,class:fe(["category-item",{active:e.activeKey===c.type_id}]),onClick:d=>i(c.type_id)},je(c.type_name),11,HTt))),128))])]),_:1},8,["visible"])}}},GTt=sr(WTt,[["__scopeId","data-v-14f43b3d"]]),KTt={key:0,class:"folder-breadcrumb"},qTt={class:"breadcrumb-container"},YTt={key:0,class:"current-item"},XTt=["onClick"],ZTt={class:"breadcrumb-actions"},JTt={__name:"FolderBreadcrumb",props:{breadcrumbs:{type:Array,default:()=>[]}},emits:["navigate","go-back","go-home","exit-folder"],setup(e,{emit:t}){const n=e,r=t,i=(c,d)=>{console.log("🗂️ [DEBUG] 面包屑点击:",c,d),r("navigate",c,d)},a=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs.length-2,d=n.breadcrumbs[c];console.log("🗂️ [DEBUG] 返回上级:",d),r("go-back",d,c)}},s=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs[0];console.log("🗂️ [DEBUG] 返回根目录:",c),r("go-home",c,0)}},l=()=>{console.log("🗂️ [DEBUG] 退出Folder模式"),r("exit-folder")};return(c,d)=>{const h=Ee("a-breadcrumb-item"),p=Ee("a-breadcrumb"),v=Ee("a-button");return e.breadcrumbs.length>0?(z(),X("div",KTt,[I("div",qTt,[O(p,{separator:">"},{default:ce(()=>[(z(!0),X(Pt,null,cn(e.breadcrumbs,(g,y)=>(z(),Ze(h,{key:g.vod_id,class:fe(["breadcrumb-item",{"is-current":y===e.breadcrumbs.length-1}])},{default:ce(()=>[y===e.breadcrumbs.length-1?(z(),X("span",YTt,je(g.vod_name),1)):(z(),X("a",{key:1,onClick:S=>i(g,y),class:"breadcrumb-link"},je(g.vod_name),9,XTt))]),_:2},1032,["class"]))),128))]),_:1})]),I("div",ZTt,[O(v,{size:"small",type:"text",onClick:a,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:ce(()=>[O(tt(Il))]),default:ce(()=>[d[0]||(d[0]=He(" 返回上级 ",-1))]),_:1},8,["disabled"]),e.breadcrumbs.length>1?(z(),Ze(v,{key:0,size:"small",type:"text",onClick:s,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:ce(()=>[O(tt(h3))]),default:ce(()=>[d[1]||(d[1]=He(" 返回根目录 ",-1))]),_:1},8,["disabled"])):Ae("",!0),O(v,{size:"small",type:"primary",onClick:l,class:"action-btn exit-btn"},{icon:ce(()=>[O(tt(rs))]),default:ce(()=>[d[2]||(d[2]=He(" 退出目录模式 ",-1))]),_:1})])])):Ae("",!0)}}},QTt=sr(JTt,[["__scopeId","data-v-670af4b8"]]),e5t={class:"video-list-container"},t5t={class:"content-area"},n5t={key:0,class:"tab-content"},r5t={key:1,class:"tab-content"},i5t={key:0,class:"category-loading-container"},o5t={key:2,class:"tab-content"},s5t={key:0,class:"category-loading-container"},a5t={key:3,class:"tab-content"},l5t={key:0,class:"category-loading-container"},u5t=300,c5t={__name:"VideoList",props:{classList:Object,recommendVideos:{type:Array,default:()=>[]},trigger:{type:String,default:"click"},sourceRoute:{type:Object,default:()=>({})},returnToActiveKey:{type:String,default:""},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})},folderNavigationState:{type:Object,default:()=>({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1})}},emits:["activeKeyChange","special-action","close-special-category","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=ma(),s=m3();let l=null;const c=ue(!1);let d="",h=0;const p=(Ve,Oe=100)=>{Ve===d||Date.now()-h<200||(l&&clearTimeout(l),l=setTimeout(()=>{if(!c.value){c.value=!0,d=Ve,h=Date.now();try{s.updateStats(Ve)}catch(We){console.error("更新统计信息失败:",We)}finally{c.value=!1}}},Oe))},v=ue(""),g=Wt({}),y=Wt({}),S=Wt({}),k=Wt({}),w=Wt({}),x=Wt({}),E=ue(!1),_=ue(null),T=()=>{const Ve={...a.currentRoute.value.query};Object.keys(x).length>0?Ve.filters=JSON.stringify(x):delete Ve.filters,Object.keys(w).length>0?Ve.filterVisible=JSON.stringify(w):delete Ve.filterVisible,a.replace({query:Ve}).catch(()=>{})},D=()=>{const Ve=a.currentRoute.value.query.filters,Oe=a.currentRoute.value.query.filterVisible;if(Ve)try{const Ce=JSON.parse(Ve);Object.keys(x).forEach(We=>{delete x[We]}),Object.assign(x,Ce)}catch(Ce){console.error("解析URL中的筛选条件失败:",Ce)}if(Oe)try{const Ce=JSON.parse(Oe);Object.keys(w).forEach(We=>{delete w[We]}),Object.assign(w,Ce)}catch(Ce){console.error("解析URL中的筛选展开状态失败:",Ce)}},P=Wt({}),M=Wt({});let $=null;const L=Ve=>{$&&clearTimeout($),$=setTimeout(Ve,u5t)},B=F(()=>r.recommendVideos&&r.recommendVideos.length>0),j=F(()=>r.folderNavigationState?.isActive||!1),H=F(()=>r.folderNavigationState?.breadcrumbs||[]),U=F(()=>r.folderNavigationState?.currentData||[]),W=F(()=>r.folderNavigationState?.currentBreadcrumb||null),K=F(()=>{const Ve=W.value?.vod_id;return r.folderNavigationState?.loading||M[Ve]||!1}),oe=F(()=>{const Ve=W.value?.vod_id;return P[Ve]?.hasNext||!1}),ae=F(()=>q({isActive:j.value,currentBreadcrumb:W.value,currentData:U.value})),ee=()=>r.returnToActiveKey?r.returnToActiveKey:B.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",Y=(Ve,Oe,Ce)=>{x[v.value]||(x[v.value]={}),x[v.value][Ve]===Oe?(delete x[v.value][Ve],Object.keys(x[v.value]).length===0&&delete x[v.value]):x[v.value][Ve]=Oe,T(),j.value&&W.value?Rt(W.value):ie(v.value)},Q=Ve=>{delete x[Ve],T(),j.value&&W.value?Rt(W.value):ie(Ve)},ie=Ve=>{delete g[Ve],delete y[Ve],S[Ve]=!1,v.value===Ve&&te(Ve,!0)},q=(Ve,Oe=null)=>{const Ce=r.classList?.class?.find(Le=>Le.type_id===Ve)?.type_name||"",We=y[Ve]?.page||1,$e=g[Ve]?.length||0,dt=y[Ve]?.total;let Qe=`${Ce}:当前第 ${We} 页,已加载 ${$e} 条`;if(dt&&(Qe+=` / 共 ${dt} 条`),Oe&&Oe.isActive&&Oe.currentBreadcrumb){const Le=Oe.currentBreadcrumb.vod_name||"未知目录",ht=Oe.currentData?.length||0;Qe+=`,当前目录:${Le},项目数:${ht}`}return Qe},te=async(Ve,Oe=!1)=>{if(console.log(Ve,"选中分类id"),k[Ve]&&!Oe){console.log(`分类 ${Ve} 正在加载中,跳过重复请求`);return}if(console.log("listData.hasOwnProperty(key):",g.hasOwnProperty(Ve)),console.log("forceReload:",Oe),console.log("listData keys:",Object.keys(g)),console.log("listData[key]:",g[Ve]),console.log("listData[key] length:",g[Ve]?.length),!g.hasOwnProperty(Ve)||Oe){k[Ve]=!0;try{const Ce=await Qo.getCurrentSite();let We,$e;if(Ve==="recommendTuijian404")console.log("recommendTuijian404 recommendVideos:",r.recommendVideos),We=r.recommendVideos||[],$e={page:1,hasNext:!1};else{const dt=x[Ve]||{},Qe=await Ka.getCategoryVideos(Ce.key,{typeId:Ve,page:1,filters:dt,extend:Ce.ext,apiUrl:Ce.api});We=Qe.videos||[],$e=Qe.pagination||{page:1,hasNext:!1},We.length>100&&(console.log(`检测到大数据集,分类 ${Ve} 包含 ${We.length} 条数据`),We.length>200&&console.warn(`超大数据集警告:分类 ${Ve} 包含 ${We.length} 条数据,可能影响性能`))}if(g[Ve]=[...We],y[Ve]=$e,S[Ve]=!1,Ve===v.value){const dt=j.value?{isActive:j.value,currentBreadcrumb:W.value,currentData:U.value}:null;p(q(Ve,dt))}}catch(Ce){console.error("获取视频列表失败:",Ce),g[Ve]=[],y[Ve]={page:1,hasNext:!1},S[Ve]=!1}finally{k[Ve]=!1}}},Se=Ve=>!Ve||Ve.length===0?!0:Ve.some(Oe=>Oe.vod_id==="no_data"),Fe=(Ve,Oe)=>{if(!Oe||Oe.length===0)return!0;if(!Ve||Ve.length===0)return!1;const Ce=Ve.slice(-Oe.length).map($e=>$e.vod_id),We=Oe.map($e=>$e.vod_id);return JSON.stringify(Ce)===JSON.stringify(We)},ve=async Ve=>{if(!(S[Ve]||!y[Ve]?.hasNext)){S[Ve]=!0;try{const Oe=await Qo.getCurrentSite(),Ce=y[Ve].page+1;let We=[],$e={page:Ce,hasNext:!1};if(Ve==="recommendTuijian404")return;{const dt=x[Ve]||{},Qe=await Ka.getCategoryVideos(Oe.key,{typeId:Ve,page:Ce,filters:dt,extend:Oe.ext,apiUrl:Oe.api});We=Qe.videos||[],$e=Qe.pagination||{page:Ce,hasNext:!1}}if(Se(We)||Fe(g[Ve],We)){console.log("检测到无效数据或重复数据,停止翻页"),y[Ve]={...y[Ve],hasNext:!1};return}if(g[Ve]=[...g[Ve],...We],y[Ve]=$e,Ve===v.value){const dt=j.value?{isActive:j.value,currentBreadcrumb:W.value,currentData:U.value}:null;p(q(Ve,dt))}}catch(Oe){console.error("加载更多数据失败:",Oe),y[Ve]={...y[Ve],hasNext:!1}}finally{S[Ve]=!1}}},Re=async Ve=>{if(!(M[Ve]||!P[Ve]?.hasNext)){M[Ve]=!0;try{const Oe=P[Ve].page+1,Ce=await J1(r.module,{t:Ve,pg:Oe,extend:ca(r.extend),apiUrl:r.apiUrl});if(Ce&&Ce.list&&Ce.list.length>0){const We=Ce.list;if(Se(We)||Fe(U.value,We)){console.log("目录翻页检测到无效数据或重复数据,停止翻页"),P[Ve]={...P[Ve],hasNext:!1};return}const $e=[...U.value,...We],dt={isActive:j.value,breadcrumbs:H.value,currentBreadcrumb:W.value,currentData:$e,loading:!1,hasMore:!0};if(P[Ve]={page:Oe,hasNext:Ce.page{j.value&&rn(),v.value=Ve,te(Ve),i("activeKeyChange",Ve)},nt=Ve=>{const{filterKey:Oe,filterValue:Ce,filterName:We}=Ve;Y(Oe,Ce)},Ie=Ve=>{const{categoryId:Oe,visible:Ce}=Ve;w[Oe]=Ce,T()},_e=()=>{Q(v.value)},me=()=>{E.value=!0},ge=Ve=>{v.value=Ve,te(Ve),i("activeKeyChange",Ve);const Oe=j.value?{isActive:j.value,currentBreadcrumb:W.value,currentData:U.value}:null;p(q(Ve,Oe),100)};It(()=>r.recommendVideos,Ve=>{console.log("[VideoList] recommendVideos watch triggered:",Ve?.length),Ve&&Ve.length>0?(g.recommendTuijian404=[...Ve],y.recommendTuijian404={page:1,hasNext:!1},S.recommendTuijian404=!1,k.recommendTuijian404=!1,console.log("推荐数据已更新:",Ve.length,"条")):(g.recommendTuijian404=[],y.recommendTuijian404={page:1,hasNext:!1},S.recommendTuijian404=!1,k.recommendTuijian404=!1),v.value==="recommendTuijian404"&&(console.log("[VideoList] 当前是推荐分类,强制更新界面"),v.value="recommendTuijian404")},{immediate:!0});let Be=!1,Ye="";const Ke=Ve=>!Ve||!Ve.class?"":JSON.stringify(Ve.class.map(Oe=>Oe.type_id||Oe.id||""));It(()=>r.classList,(Ve,Oe)=>{if(Be)return;const Ce=Ke(Ve);if(Ce!==Ye){console.log("🗂️ [DEBUG] ========== VideoList classList watch 触发 =========="),console.log("🗂️ [DEBUG] oldClassList:",Oe),console.log("🗂️ [DEBUG] newClassList:",Ve),console.log("🗂️ [DEBUG] classList是否发生变化:",Ve!==Oe),console.log("🗂️ [DEBUG] 当前activeKey.value:",v.value),console.log("🗂️ [DEBUG] 当前folderIsActive.value:",j.value),console.log("🗂️ [DEBUG] 当前folderNavigationState:",JSON.stringify(r.folderNavigationState,null,2)),Be=!0,Ye=Ce;try{const We=a.currentRoute.value.query,$e=We.filters||We.filterVisible;if(Ve!==Oe&&!$e?(console.log("🗂️ [DEBUG] classList发生变化且URL中无筛选参数,清除筛选状态"),Object.keys(x).forEach(Qe=>{delete x[Qe]}),Object.keys(w).forEach(Qe=>{delete w[Qe]}),console.log("🗂️ [DEBUG] 筛选状态已清除")):$e&&console.log("🗂️ [DEBUG] URL中有筛选参数,跳过筛选状态清除"),j.value){console.log("🗂️ [DEBUG] 当前处于folder模式,跳过activeKey重置");return}const dt=ee();v.value!==dt&&(v.value=dt,te(dt),i("activeKeyChange",dt))}catch(We){console.error("classList watch处理失败:",We)}finally{dn(()=>{Be=!1})}}},{immediate:!0}),It(()=>r.folderNavigationState,(Ve,Oe)=>{},{deep:!0,immediate:!0}),It(()=>r.sourceRoute?.query?.activeKey,Ve=>{Ve&&Ve!==v.value&&(console.log("[DEBUG] sourceRoute activeKey changed:",Ve,"current:",v.value),v.value=Ve,(!g[Ve]||g[Ve].length===0)&&(console.log("[DEBUG] 重新加载分类数据:",Ve),te(Ve)),i("activeKeyChange",Ve))},{immediate:!0}),fn(async()=>{D();const Ve=r.sourceRoute?.query?.activeKey,Oe=Ve||ee();await dn(),v.value=Oe,await dn(),D(),Oe==="recommendTuijian404"?(k[Oe]=!1,r.recommendVideos&&r.recommendVideos.length>0?(g[Oe]=[...r.recommendVideos],y[Oe]={page:1,hasNext:!1},S[Oe]=!1):te(v.value)):te(v.value),Ve||i("activeKeyChange",v.value)}),_o(()=>{l&&clearTimeout(l)}),t({getCurrentState:()=>({activeKey:v.value,currentPage:y[v.value]?.page||1,videos:g[v.value]||[],hasMore:y[v.value]?.hasNext||!1,hasData:g[v.value]&&g[v.value].length>0,scrollPosition:_.value?_.value.getCurrentScrollPosition():0}),restoreState:Ve=>{Ve.activeKey&&Ve.activeKey!==v.value&&(v.value=Ve.activeKey,i("activeKeyChange",Ve.activeKey),(!g[Ve.activeKey]||g[Ve.activeKey].length===0)&&te(Ve.activeKey))},restoreFullState:Ve=>{if(Ve.activeKey){v.value=Ve.activeKey,Ve.videos&&Ve.videos.length>0?(g[Ve.activeKey]=[...Ve.videos],y[Ve.activeKey]={page:Ve.currentPage||1,hasNext:Ve.hasMore||!1},console.log(`恢复分类 ${Ve.activeKey} 的完整状态:`,{videos:Ve.videos.length,page:Ve.currentPage,hasMore:Ve.hasMore,scrollPosition:Ve.scrollPosition}),Ve.scrollPosition&&_.value&&setTimeout(()=>{_.value.restoreScrollPosition(Ve.scrollPosition)},200)):(console.log(`分类 ${Ve.activeKey} 没有保存的数据,重新加载`),te(Ve.activeKey)),i("activeKeyChange",Ve.activeKey);const Oe=j.value?{isActive:j.value,currentBreadcrumb:W.value,currentData:U.value}:null;p(q(Ve.activeKey,Oe),100)}},refreshCurrentCategory:()=>{v.value&&(console.log("刷新当前分类:",v.value),g[v.value]=[],y[v.value]={page:1,hasNext:!0},S[v.value]=!1,te(v.value))},setSpecialCategoryData:(Ve,Oe,Ce)=>{console.log("设置特殊分类数据:",{categoryId:Ve,videosCount:Oe?.length,pagination:Ce}),g[Ve]=Oe||[],y[Ve]={page:Ce?.page||1,hasNext:Ce?.hasNext||!1,total:Ce?.total||0},S[Ve]=!1;const We=j.value?{isActive:j.value,currentBreadcrumb:W.value,currentData:U.value}:null;p(q(Ve,We),100)}});const at=async Ve=>{L(async()=>{await ft(Ve)})},ft=async Ve=>{let Oe=[];try{const Ce=j.value?H.value:[],We=Ce.findIndex(ht=>ht.vod_id===Ve.vod_id);We>=0?Oe=Ce.slice(0,We+1):Oe=[...Ce,{vod_id:Ve.vod_id,vod_name:Ve.vod_name}];const $e={isActive:!0,breadcrumbs:Oe,currentData:[],currentBreadcrumb:{vod_id:Ve.vod_id,vod_name:Ve.vod_name},loading:!0};i("folder-navigate",$e),console.log("props.extend:",r.extend),console.log("processExtendParam(props.extend):",ca(r.extend));const dt=x[v.value]||{};console.log("🗂️ [DEBUG] 目录模式应用筛选条件:",dt);const Qe={t:Ve.vod_id,pg:1,extend:ca(r.extend),apiUrl:r.apiUrl};Object.keys(dt).length>0&&console.log("🗂️ [DEBUG] 目录模式编码后的筛选条件:",Qe.ext);const Le=await J1(r.module,Qe);if(Le&&Le.list&&Le.list.length>0){const ht=Le.list;P[Ve.vod_id]={page:Le.page||1,hasNext:Le.page{const Ce=Ve;if(!Ce||!Ce.vod_id){console.error("handleFolderNavigate: 无效的breadcrumb参数",Ce);return}if(console.log("🗂️ [DEBUG] handleFolderNavigate 接收参数:",{breadcrumb:Ce,index:Oe}),ct){console.log("folder导航正在进行中,跳过重复调用");return}const We=Date.now();if(We-xt<300&&console.log("folder导航过于频繁,跳过"),Ct===Ce.vod_id&&We-xt<1e3){console.log("短时间内相同的folder导航目标,跳过重复处理");return}ct=!0,Ct=Ce.vod_id,xt=We;try{const $e=H.value,dt=$e.findIndex(Lt=>Lt.vod_id===Ce.vod_id),Qe=dt>=0?$e.slice(0,dt+1):$e,Le={isActive:j.value,breadcrumbs:Qe,currentBreadcrumb:Ce,currentData:U.value,loading:!0,hasMore:oe.value};i("folder-navigate",Le);const ht=x[v.value]||{},Vt={t:Ce.vod_id,pg:1,extend:ca(r.extend),apiUrl:r.apiUrl};Object.keys(ht).length>0;const Ut=await J1(r.module,Vt);if(Ut&&Ut.list&&Ut.list.length>0){const Lt=Ut.list;if(P[Ce.vod_id]={page:Ut.page||1,hasNext:Ut.page{if(console.log("🗂️ [DEBUG] 返回上一级folder",{parentItem:Ve,parentIndex:Oe}),Ve&&Ve.vod_id){Rt(Ve,Oe);return}const Ce=H.value;if(Ce.length>1){const We=Ce.slice(0,-1),$e=We[We.length-1];Rt($e)}else Jt()},Jt=async(Ve,Oe)=>{if(console.log("🗂️ [DEBUG] 返回folder根目录",{rootItem:Ve,rootIndex:Oe}),Ve&&Ve.vod_id){Rt(Ve,Oe);return}const Ce=H.value;if(Ce.length>0){const We=Ce[0];i("folder-navigate",{isActive:!0,breadcrumbs:[We],currentData:[],currentBreadcrumb:We,loading:!0});try{const dt=x[v.value]||{};console.log("🗂️ [DEBUG] 返回根目录,应用筛选条件:",dt);const Qe={t:We.vod_id,pg:1,extend:ca(r.extend),apiUrl:r.apiUrl};Object.keys(dt).length>0;const Le=await J1(r.module,Qe);if(Le&&Le.list&&Le.list.length>0){const ht=Le.list;P[We.vod_id]={page:Le.page||1,hasNext:Le.page{if(i("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),v.value&&g[v.value]){const Oe=q(v.value,null);p(Oe)}},vt=()=>{v.value&&(g[v.value]=[],y[v.value]={page:1,hasNext:!0},S[v.value]=!1,te(v.value))};return(Ve,Oe)=>{const Ce=Ee("a-spin");return z(),X("div",e5t,[O(TTt,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:B.value,activeKey:v.value,filters:r.classList?.filters||{},selectedFilters:x,filterVisible:w,specialCategoryState:r.specialCategoryState,onTabChange:Ge,onOpenCategoryModal:me,onToggleFilter:nt,onResetFilters:_e,onFilterVisibleChange:Ie,onCloseSpecialCategory:Oe[0]||(Oe[0]=()=>i("close-special-category"))},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters","filterVisible","specialCategoryState"]),j.value?(z(),Ze(QTt,{key:0,breadcrumbs:H.value,onNavigate:Rt,onGoBack:Ht,onGoHome:Jt,onExitFolder:rn},null,8,["breadcrumbs"])):Ae("",!0),I("div",t5t,[j.value?(z(),X("div",n5t,[O(V4,{videos:U.value,loading:K.value,hasMore:oe.value,statsText:ae.value,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,folderState:e.folderNavigationState,onLoadMore:Oe[1]||(Oe[1]=We=>Re(W.value?.vod_id)),onScrollBottom:Oe[2]||(Oe[2]=We=>Re(W.value?.vod_id)),onRefreshList:vt,onSpecialAction:Oe[3]||(Oe[3]=(We,$e)=>i("special-action",We,$e)),onFolderNavigate:at},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url","folderState"])])):e.specialCategoryState.isActive?(z(),X("div",r5t,[k[e.specialCategoryState.categoryData?.type_id]?(z(),X("div",i5t,[O(Ce,{size:24}),Oe[12]||(Oe[12]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),Ze(V4,{key:1,videos:g[e.specialCategoryState.categoryData?.type_id]||[],loading:S[e.specialCategoryState.categoryData?.type_id]||!1,hasMore:y[e.specialCategoryState.categoryData?.type_id]?.hasNext||!1,statsText:`${e.specialCategoryState.categoryData?.type_name||"特殊分类"}:共 ${g[e.specialCategoryState.categoryData?.type_id]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:Oe[4]||(Oe[4]=We=>ve(e.specialCategoryState.categoryData?.type_id)),onScrollBottom:Oe[5]||(Oe[5]=We=>ve(e.specialCategoryState.categoryData?.type_id)),onRefreshList:vt,onSpecialAction:Oe[6]||(Oe[6]=(We,$e)=>i("special-action",We,$e)),onFolderNavigate:at},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"]))])):v.value==="recommendTuijian404"?(z(),X("div",o5t,[k[v.value]?(z(),X("div",s5t,[O(Ce,{size:24}),Oe[13]||(Oe[13]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):Ae("",!0),k[v.value]?Ae("",!0):(z(),Ze(V4,{key:1,videos:g[v.value]||[],loading:S[v.value]||!1,hasMore:!1,statsText:`推荐视频:共 ${g[v.value]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onRefreshList:vt,onSpecialAction:Oe[7]||(Oe[7]=(We,$e)=>i("special-action",We,$e))},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"]))])):(z(),X("div",a5t,[k[v.value]?(z(),X("div",l5t,[O(Ce,{size:24}),Oe[14]||(Oe[14]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),Ze(V4,{key:1,ref_key:"videoGridRef",ref:_,videos:g[v.value]||[],loading:S[v.value]||!1,hasMore:y[v.value]?.hasNext||!1,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:Oe[8]||(Oe[8]=We=>ve(v.value)),onScrollBottom:Oe[9]||(Oe[9]=We=>ve(v.value)),onRefreshList:vt,onSpecialAction:Oe[10]||(Oe[10]=(We,$e)=>i("special-action",We,$e)),onFolderNavigate:at},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"]))]))]),O(GTt,{visible:E.value,"onUpdate:visible":Oe[11]||(Oe[11]=We=>E.value=We),classList:e.classList,hasRecommendVideos:B.value,activeKey:v.value,onSelectCategory:ge},null,8,["visible","classList","hasRecommendVideos","activeKey"])])}}},d5t=sr(c5t,[["__scopeId","data-v-1180b6ff"]]),f5t={class:"search-grid-container"},h5t={key:0,class:"error-state"},p5t={key:1,class:"loading-state"},v5t={key:2,class:"search-scroll-container"},m5t=["onClick","onMouseenter"],g5t=["src","alt"],y5t={key:3,class:"action-badge"},b5t={key:4,class:"play-overlay"},_5t={class:"video_list_item_title"},S5t={class:"title-text"},k5t={key:0,class:"video-desc"},w5t={class:"video-meta"},x5t={key:0,class:"video-note"},C5t={key:1,class:"video-year"},E5t={key:2,class:"video-area"},T5t={key:0,class:"load-more-container"},A5t={key:1,class:"no-more-data"},I5t={key:3,class:"empty-state"},L5t={__name:"SearchVideoGrid",props:{videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},error:{type:String,default:""},hasMore:{type:Boolean,default:!0},variant:{type:String,default:"search-results",validator:e=>["search-results","aggregation"].includes(e)},scrollHeight:{type:String,default:"600px"},gridPadding:{type:String,default:"2px 20px 2px 16px"},defaultPoster:{type:String,default:"/default-poster.jpg"}},emits:["video-click","load-more","retry","scroll","mouse-enter","mouse-leave"],setup(e,{expose:t,emit:n}){const r=ue(null),i=e,a=n,s=F(()=>i.variant==="search-results"?"video_list_item":"video-card-item"),l=F(()=>i.variant==="search-results"?"video_list_hover":"video-card"),c=F(()=>i.variant==="search-results"?"video_list_item_img":"video-poster"),d=F(()=>i.variant==="search-results"?"":"video-poster-img"),h=F(()=>"folder-icon-container"),p=F(()=>"folder-icon"),v=F(()=>"file-icon-container"),g=F(()=>"file-icon"),y=F(()=>i.variant==="search-results"?"vod-remarks-overlay":"video-remarks-overlay"),S=F(()=>i.variant==="search-results"?"video-info-simple":"video-info");F(()=>i.variant==="search-results"?"video-title-simple":"video-title");const k=P=>{const M={video:eW,audio:tW,image:QH,default:uS};return M[P]||M.default},w=P=>{a("video-click",P)},x=P=>{a("scroll",P)},E=(P,M)=>{a("mouse-enter",P,M)},_=()=>{a("mouse-leave")},T=P=>{P.target.src=i.defaultPoster},D=()=>{try{const P=document.querySelectorAll(".search-grid-container .title-text");P&&P.length>0&&P.forEach(M=>{M&&M.scrollWidth&&M.clientWidth&&(M.scrollWidth>M.clientWidth?(M.setAttribute("data-overflow","true"),M.setAttribute("title",M.textContent||"")):(M.removeAttribute("data-overflow"),M.removeAttribute("title")))})}catch(P){console.error("checkTextOverflow error:",P)}};return It(()=>i.videos,()=>{dn(()=>{setTimeout(D,100)})},{deep:!0}),fn(()=>{dn(()=>{setTimeout(D,200)})}),t({getScrollContainer:()=>r.value?.$el?.querySelector(".arco-scrollbar-container"),scrollTo:P=>{const M=r.value?.$el?.querySelector(".arco-scrollbar-container");M&&M.scrollTo(P)},getScrollTop:()=>r.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0}),(P,M)=>{const $=Ee("a-button"),L=Ee("a-result"),B=Ee("a-spin"),j=Ee("a-image"),H=Ee("a-grid-item"),U=Ee("a-grid"),W=Ee("a-scrollbar"),K=Ee("a-empty");return z(),X("div",f5t,[e.error?(z(),X("div",h5t,[O(L,{status:"error",title:e.error},{extra:ce(()=>[O($,{type:"primary",onClick:M[0]||(M[0]=oe=>P.$emit("retry"))},{default:ce(()=>[...M[2]||(M[2]=[He("重试",-1)])]),_:1})]),_:1},8,["title"])])):e.loading&&(!e.videos||e.videos.length===0)?(z(),X("div",p5t,[O(B,{size:32}),M[3]||(M[3]=I("div",{class:"loading-text"},"正在搜索...",-1))])):e.videos&&e.videos.length>0?(z(),X("div",v5t,[O(W,{ref_key:"scrollbarRef",ref:r,style:qe({height:e.scrollHeight,maxHeight:e.scrollHeight,overflow:"auto"}),onScroll:x},{default:ce(()=>[I("div",{class:"search-results-grid",style:qe({padding:e.gridPadding})},[O(U,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:ce(()=>[(z(!0),X(Pt,null,cn(e.videos,(oe,ae)=>(z(),Ze(H,{key:`${oe.vod_id}_${ae}`,class:fe(s.value)},{default:ce(()=>[I("div",{class:fe(l.value),onClick:ee=>w(oe),onMouseenter:ee=>E(oe,ae),onMouseleave:_},[I("div",{class:fe(c.value)},[oe.type_name==="folder"?(z(),X("div",{key:0,class:fe(h.value)},[O(tt(uA),{class:fe(p.value)},null,8,["class"])],2)):oe.type_name&&oe.type_name!=="folder"?(z(),X("div",{key:1,class:fe(v.value)},[(z(),Ze(Ca(k(oe.type_name)),{class:fe(g.value)},null,8,["class"]))],2)):(z(),X(Pt,{key:2},[e.variant==="search-results"?(z(),Ze(j,{key:0,src:oe.vod_pic,alt:oe.vod_name,class:fe(d.value),fit:"cover",preview:!1,fallback:e.defaultPoster},null,8,["src","alt","class","fallback"])):(z(),X("img",{key:1,src:oe.vod_pic||e.defaultPoster,alt:oe.vod_name,class:fe(d.value),onError:T},null,42,g5t))],64)),e.variant==="aggregation"&&oe.action?(z(),X("div",y5t,[O(tt(ha))])):Ae("",!0),e.variant==="aggregation"&&oe.type_name!=="folder"?(z(),X("div",b5t,[O(tt(ha))])):Ae("",!0),oe.vod_remarks?(z(),X("div",{key:5,class:fe(y.value)},je(oe.vod_remarks),3)):Ae("",!0)],2),I("div",{class:fe(S.value)},[I("div",_5t,[I("span",S5t,je(oe.vod_name),1)]),e.variant==="aggregation"?(z(),X(Pt,{key:0},[oe.vod_blurb?(z(),X("div",k5t,je(oe.vod_blurb),1)):Ae("",!0),I("div",w5t,[oe.vod_note?(z(),X("span",x5t,je(oe.vod_note),1)):Ae("",!0),oe.vod_year?(z(),X("span",C5t,je(oe.vod_year),1)):Ae("",!0),oe.vod_area?(z(),X("span",E5t,je(oe.vod_area),1)):Ae("",!0)])],64)):Ae("",!0)],2)],42,m5t)]),_:2},1032,["class"]))),128))]),_:1}),e.hasMore&&!e.loading?(z(),X("div",T5t,[O($,{type:"text",onClick:M[1]||(M[1]=oe=>P.$emit("load-more"))},{default:ce(()=>[...M[4]||(M[4]=[He(" 加载更多 ",-1)])]),_:1})])):Ae("",!0),!e.hasMore&&e.videos.length>0?(z(),X("div",A5t," 没有更多数据了 ")):Ae("",!0),M[5]||(M[5]=I("div",{class:"bottom-spacing"},null,-1))],4)]),_:1},8,["style"])])):(z(),X("div",I5t,[O(K,{description:"暂无搜索结果"})]))])}}},H3e=sr(L5t,[["__scopeId","data-v-38747718"]]),D5t={class:"search-results-container"},P5t={class:"search-header"},R5t={class:"search-info"},M5t={key:0,class:"search-keyword"},O5t={key:1,class:"search-count"},$5t={class:"search-actions"},B5t={__name:"SearchResults",props:{keyword:{type:String,default:""},videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},error:{type:String,default:null},currentPage:{type:Number,default:1},totalPages:{type:Number,default:1},hasMore:{type:Boolean,default:!1},sourceRoute:{type:Object,default:()=>({})},scrollPosition:{type:Number,default:0},module:{type:String,default:""},extend:{type:[Object,String],default:""},apiUrl:{type:String,default:""}},emits:["video-click","exit-search","load-more","refresh-list"],setup(e,{emit:t}){const n=ma(),r=m3(),i=wS(),a=pS(),s=e,l=t,c=ue(null),d=ue(null),h=ue(0),p=F(()=>s.videos.map(L=>({...L,type_name:zz(L)?"folder":Uz(L)?MT(L.vod_name):null}))),v=ue(null),g=ue(!1),y=ue(null),S=L=>{const B=L?.target||L?.srcElement,j=B?.closest?B.closest(".arco-scrollbar-container"):B;if(!j)return;const H=j.scrollHeight-j.clientHeight,U=j.scrollTop;H-U<50&&s.hasMore&&!s.loading&&l("load-more")},k=()=>{dn(()=>{setTimeout(()=>{const L=c.value;if(!L)return;const B=L.closest(".content-area")||L.parentElement;let j=B?B.offsetHeight:0;j<=0&&(j=Math.max(window.innerHeight-120,500));const H=document.querySelector(".search-header"),U=H?H.offsetHeight:60,W=j-U,K=Math.max(W-20,300);console.log(`搜索结果容器高度计算: 容器高度=${j}px, 标题高度=${U}px, 最终高度=${K}px`),h.value=K},100)})},w=()=>{if(!s.keyword)return"";const L=s.videos.length,B=s.currentPage,j=s.hasMore;if(L===0)return`搜索"${s.keyword}":无结果`;let H=`搜索"${s.keyword}":第${B}页,共${L}条`;return j?H+=",可继续加载":H+=",已全部加载",H},x=()=>{const L=w();L&&r.updateStats(L)},E=()=>{dn(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(B=>{const H=B.parentElement.offsetWidth-16;B.scrollWidth>H?B.setAttribute("data-overflow","true"):B.removeAttribute("data-overflow")})},100)})},_=L=>{if(L&&L.vod_id){if(L.vod_tag==="action")try{const B=JSON.parse(L.vod_id);console.log("SearchResults解析action配置:",B),y.value=B,g.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",L.vod_id),gt.info({content:L.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(L.vod_id,L.vod_name),s.keyword){const B=d.value?.getScrollTop()||0;i.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,B),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:B})}n.push({name:"VideoDetail",params:{id:L.vod_id},query:{name:L.vod_name,pic:L.vod_pic,year:L.vod_year,area:L.vod_area,type:L.vod_type,remarks:L.vod_remarks,content:L.vod_content,actor:L.vod_actor,director:L.vod_director,sourceRouteName:s.sourceRoute?.name,sourceRouteParams:JSON.stringify(s.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(s.sourceRoute?.query||{}),fromSearch:"true",sourcePic:L.vod_pic}})}},T=()=>{r.clearStats(),l("exit-search")},D=()=>{l("load-more")},P=()=>{l("refresh-list")};fn(()=>{E(),k(),x(),window.addEventListener("resize",k),s.scrollPosition>0&&dn(()=>{requestAnimationFrame(()=>{d.value&&(d.value.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),_o(()=>{window.removeEventListener("resize",k)}),It(()=>s.videos,()=>{k(),E(),x()}),It([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{x()});const M=()=>{g.value=!1,y.value=null},$=(L,B)=>{switch(console.log("处理专项动作:",L,B),L){case"__self_search__":console.log("执行源内搜索:",B);break;case"detail":console.log("跳转到详情页:",B);break;case"ktv-player":console.log("启动KTV播放:",B);break;case"refresh-list":console.log("刷新列表:",B),l("refresh-list");break;default:console.log("未知的专项动作:",L,B);break}};return(L,B)=>{const j=Ee("icon-close"),H=Ee("a-button");return z(),X("div",D5t,[I("div",P5t,[I("div",R5t,[e.keyword?(z(),X("span",M5t," 搜索结果:"+je(e.keyword),1)):Ae("",!0),e.videos.length>0?(z(),X("span",O5t," 共找到 "+je(e.videos.length)+" 个结果 ",1)):Ae("",!0)]),I("div",$5t,[O(H,{type:"outline",size:"small",onClick:T},{icon:ce(()=>[O(j)]),default:ce(()=>[B[0]||(B[0]=He(" 清除搜索 ",-1))]),_:1})])]),I("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[O(H3e,{ref_key:"scrollbarRef",ref:d,videos:p.value,loading:e.loading,error:e.error,"has-more":e.hasMore,"scroll-height":`${h.value}px`,variant:"search-results","default-poster":"/default-poster.svg",onVideoClick:_,onLoadMore:D,onRetry:P,onScroll:S},null,8,["videos","loading","error","has-more","scroll-height"])],512),g.value?(z(),Ze(ug,{key:0,ref_key:"actionRendererRef",ref:v,"action-data":y.value,module:s.module,extend:s.extend,"api-url":s.apiUrl,onClose:M,onSpecialAction:$},null,8,["action-data","module","extend","api-url"])):Ae("",!0)])}}},W3e=sr(B5t,[["__scopeId","data-v-0e7e7688"]]),CS=ag("site",()=>{const e=ue(Qo.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&Qo.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=Qo.getCurrentSite();r&&(!e.value||r.key!==e.value.key)&&(e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),console.log("从 siteService 同步站点:",r))};return typeof window<"u"&&window.addEventListener("siteChange",r=>{const{site:i}=r.detail;i&&(!e.value||i.key!==e.value.key)&&(e.value=i,localStorage.setItem("site-nowSite",JSON.stringify(i)),console.log("响应 siteService 站点变化:",i))}),n(),{nowSite:e,setCurrentSite:t,syncFromSiteService:n}}),N5t={class:"current-time"},F5t={class:"main-container"},j5t={key:0,class:"global-loading-overlay"},V5t={class:"global-loading-content"},z5t={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=CS();m3();const r=wS(),i=s3(),a=ma(),s=_e=>{const me=_e.getFullYear(),ge=String(_e.getMonth()+1).padStart(2,"0"),Be=String(_e.getDate()).padStart(2,"0"),Ye=String(_e.getHours()).padStart(2,"0"),Ke=String(_e.getMinutes()).padStart(2,"0"),at=String(_e.getSeconds()).padStart(2,"0");return`${me}-${ge}-${Be} ${Ye}:${Ke}:${at}`},l=ue(s(new Date)),c=ue(i.query.activeKey||""),d=ue(null),h=Wt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=Wt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),v=Wt({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null}),g=h0({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),y=ue(!1),S=Wt({activeKey:null,scrollPosition:0,savedAt:null}),k=ue(null),w=async(_e=!1)=>{try{if(Qo.getConfigStatus().hasConfigUrl)try{await Qo.loadSitesFromConfig(_e)}catch(ge){console.error("从配置地址加载站点数据失败:",ge)}h.sites=Qo.getAllSites(),h.sites.length}catch(me){console.error("获取站点配置失败:",me)}},x=()=>{const _e=Qo.getCurrentSite();_e?(h.now_site=_e,h.now_site_title=_e.name,n(_e)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,Qo.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},E=()=>{if(!h.now_site||!h.now_site.key){const _e=Qo.getCurrentSite();if(_e)h.now_site=_e,h.now_site_title=_e.name;else if(h.sites.length>0){const me=h.sites.find(ge=>ge.type===4)||h.sites[0];me&&(h.now_site=me,h.now_site_title=me.name,Qo.setCurrentSite(me.key))}}else if(!h.sites.some(me=>me.key===h.now_site.key)&&h.sites.length>0){const me=h.sites.find(ge=>ge.type===4)||h.sites[0];me&&(h.now_site=me,h.now_site_title=me.name,Qo.setCurrentSite(me.key))}h.new_site=h.now_site},_=()=>{k.value=setInterval(()=>{l.value=s(new Date)},1e3)},T=()=>{window.location.reload()},D=_e=>{console.log("收到重载源事件:",_e.detail),T()},P=()=>{},M=()=>{},$=()=>{},L=_e=>h.new_site=_e,B=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,w(!0),E()},j=_e=>{h.now_site=_e,n(_e),h.now_site_title=_e.name,h.visible=!1,g.value?.isActive&&(g.value={isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1},S.activeKey=null,S.scrollPosition=0,S.savedAt=null),H(_e)},H=async _e=>{if(!(!_e||!_e.key)){y.value=!0,h.classList={class:[],filters:{}},h.recommendVideos=[];try{const me=h.sites.findIndex(Be=>Be.key===_e.key)===0;console.log("[Video.vue] 开始获取首页数据:",{siteKey:_e.key,siteName:_e.name,extend:_e.ext,apiUrl:_e.api,isFirstSite:me}),me&&(console.log("[Video.vue] 检测到第一个源,清除缓存"),Ka.clearModuleCache(_e.key));const ge=await Ka.getRecommendVideos(_e.key,{extend:_e.ext,apiUrl:_e.api});console.log("[Video.vue] 首页数据获取成功:",{siteKey:_e.key,categoriesCount:ge.categories?.length||0,videosCount:ge.videos?.length||0,hasVideos:!!(ge.videos&&ge.videos.length>0),firstVideo:ge.videos?.[0]}),h.classList={class:ge.categories,filters:ge.filters},h.recommendVideos=ge.videos||[],console.log("[Video.vue] 推荐数据已设置:",{siteKey:_e.key,recommendVideosLength:h.recommendVideos.length,isFirstSite:h.sites.findIndex(Be=>Be.key===_e.key)===0})}catch(me){console.error("获取分类列表失败:",me),h.classList={class:[],filters:{}},h.recommendVideos=[]}finally{y.value=!1}}},U=async _e=>{if(!_e||!_e.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const me=_e.trim();p.searchKeyword=me,p.isSearching=!0,p.searchLoading=!0,p.searchError=null,p.currentPage=1;try{if(!h.now_site||!h.now_site.key)throw new Error("请先选择数据源");const ge=await Ka.searchVideo(h.now_site.key,{keyword:me,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=ge.videos||[],p.totalPages=ge.pagination?.totalPages||1,p.hasMore=ge.pagination?.hasNext||!1}catch(ge){console.error("搜索失败:",ge),p.searchError=ge.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},W=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const _e=p.currentPage+1;try{const me=await Ka.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:_e,extend:h.now_site.ext,apiUrl:h.now_site.api}),ge=me.videos||[],Be=new Set(p.searchResults.map(Ke=>Ke.vod_id)),Ye=ge.filter(Ke=>!Be.has(Ke.vod_id)&&Ke.vod_id!=="no_data"&&Ke.vod_name!=="no_data");Ye.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...Ye],p.hasMore=me.pagination?.hasNext!==!1),p.currentPage=_e,p.totalPages=me.pagination?.totalPages||p.totalPages}catch(me){console.error("搜索加载更多失败:",me),p.searchError=me.message||"加载失败,请重试"}finally{p.searchLoading=!1}},K=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},oe=_e=>{c.value=_e;const me={...i.query};_e?me.activeKey=_e:delete me.activeKey,a.replace({name:i.name,params:i.params,query:me}),console.log("[DEBUG] 地址栏activeKey已更新:",_e)},ae=_e=>{if(_e&&_e.vod_id){let me="false";p.isSearching?me="true":c.value&&r.saveVideoState(c.value,1,[],!0,!1,window.scrollY);const ge={name:_e.vod_name,pic:_e.vod_pic,year:_e.vod_year,area:_e.vod_area,type:_e.vod_type,remarks:_e.vod_remarks,content:_e.vod_content,actor:_e.vod_actor,director:_e.vod_director,sourceRouteName:i.name,sourceRouteParams:JSON.stringify(i.params),sourceRouteQuery:JSON.stringify({...i.query,activeKey:c.value}),fromSearch:me,sourcePic:_e.vod_pic};g.value?.isActive&&(ge.folderState=JSON.stringify({isActive:g.value.isActive,breadcrumbs:g.value.breadcrumbs,currentBreadcrumb:g.value.currentBreadcrumb})),a.push({name:"VideoDetail",params:{id:_e.vod_id},query:ge})}},ee=()=>{p.isSearching||d.value&&d.value.refreshCurrentCategory()},Y=async(_e,me)=>{switch(_e){case"__self_search__":await Q(me);break;default:console.warn("🎯 [WARN] 未知的特殊动作类型:",_e);break}},Q=async _e=>{try{v.isActive||(v.originalClassList=h.classList,v.originalRecommendVideos=h.recommendVideos);const me=_e.tid||_e.type_id||_e.actionData?.tid,ge=_e.name||_e.type_name||`搜索: ${me}`;if(!me){console.error("🔍 [ERROR] 源内搜索参数不完整:缺少tid"),gt.error("源内搜索参数不完整:缺少tid");return}const Be=await Ka.getCategoryVideos(h.now_site?.key||t?.key,{typeId:me,page:1,filters:{},apiUrl:h.now_site?.api,extend:h.now_site?.ext}),Ye={class:[{type_id:me,type_name:ge}],filters:{}};v.isActive=!0,v.categoryData={type_id:me,type_name:ge,originalData:_e,videos:Be.videos||[],pagination:Be.pagination||{}},h.classList=Ye,h.recommendVideos=[],c.value=me,await dn(),d.value&&Be.videos&&d.value.setSpecialCategoryData(me,Be.videos,Be.pagination)}catch(me){console.error("处理源内搜索失败:",me),gt.error(`源内搜索失败: ${me.message}`)}},ie=()=>{v.isActive&&(h.classList=v.originalClassList,h.recommendVideos=v.originalRecommendVideos,v.isActive=!1,v.categoryData=null,v.originalClassList=null,v.originalRecommendVideos=null,c.value="recommendTuijian404")};let q=!1,te=null,Se=null,Fe=0;const ve=async _e=>{if(!_e||typeof _e!="object"){console.error("navigationData 无效:",_e);return}if(q){console.log("folder状态正在更新中,跳过重复调用");return}const me=Date.now();me-Fe<200&&console.log("folder导航更新过于频繁,跳过");const ge=JSON.stringify(_e);if(Se===ge){console.log("相同的folder导航数据,跳过重复处理");return}te&&(clearTimeout(te),te=null),q=!0,Se=ge,Fe=me;try{_e.isActive&&!g.value?.isActive&&(S.activeKey=c.value,S.scrollPosition=window.scrollY||0,S.savedAt=Date.now()),!_e.isActive&&g.value?.isActive&&(S.activeKey&&(c.value=S.activeKey),S.scrollPosition&&dn(()=>{window.scrollTo(0,S.scrollPosition)}),S.activeKey=null,S.scrollPosition=0,S.savedAt=null),await dn();const Be=Ke=>{if(Ke===null||typeof Ke!="object")return Ke;if(Ke instanceof Date)return new Date(Ke.getTime());if(Ke instanceof Array)return Ke.map(at=>Be(at));if(typeof Ke=="object"){const at={};return Object.keys(Ke).forEach(ft=>{at[ft]=Be(Ke[ft])}),at}return Ke},Ye={isActive:!!_e.isActive,breadcrumbs:Be(_e.breadcrumbs||[]),currentData:Be(_e.currentData||[]),currentBreadcrumb:Be(_e.currentBreadcrumb||null),loading:!!_e.loading};g.value=Ye}catch(Be){console.error("更新folder状态时出错:",Be)}finally{q=!1,te=null}},Re=()=>{h.visible=!0;const _e=h.sites.filter(me=>me.type===4);h.form_title=`请选择数据源(${_e.length})`,E()},Ge=()=>{y.value=!1},nt=async _e=>{if(!_e||!_e.trim()){gt.error("推送内容不能为空");return}const me=h.sites.find(ge=>ge.key==="push_agent");if(!me){gt.error("没有找到push_agent服务,请检查源配置");return}try{a.push({name:"VideoDetail",params:{id:_e.trim()},query:{name:`推送内容-${_e.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:me.name,tempSiteApi:me.api,tempSiteKey:me.key,sourceRouteName:i.name,sourceRouteParams:JSON.stringify(i.params),sourceRouteQuery:JSON.stringify(i.query),sourcePic:""}}),gt.success(`正在推送内容: ${_e.trim()}`)}catch(ge){console.error("推送失败:",ge),gt.error("推送失败,请重试")}},Ie=_e=>{if(console.log("全局动作执行完成:",_e),!_e||typeof _e!="object"){console.warn("Invalid event object received in handleActionExecuted");return}const me=_e.action?.name||"未知动作";_e.success?(console.log("动作执行成功:",me,_e.result),_e.result&&_e.result.refresh&&T(),_e.result&&_e.result.navigate&&a.push(_e.result.navigate)):console.error("动作执行失败:",me,_e.error)};return It(()=>i.query.activeKey,_e=>{_e&&_e!==c.value&&(console.log("[DEBUG] URL activeKey changed:",_e,"current:",c.value),c.value=_e)},{immediate:!0}),fn(async()=>{await w(),x(),E(),window.addEventListener("reloadSource",D);const _e=i.query._restoreSearch,me=i.query._returnToActiveKey,ge=i.query.folderState;if(_e==="true"){const ft=r.getPageState("search");if(ft&&ft.keyword&&!r.isStateExpired("search")){p.isSearching=!0,p.searchKeyword=ft.keyword,p.searchResults=ft.videos||[],p.currentPage=ft.currentPage||1,p.hasMore=ft.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=ft.scrollPosition||0;const ct={...i.query};delete ct._restoreSearch,a.replace({query:ct}),await H(h.now_site),_();return}}const Be=r.getPageState("video"),Ye=r.isStateExpired("video");let Ke=!1,at=!1;if(me){if(c.value=me,ge)try{const ct=JSON.parse(ge),Ct={isActive:ct.isActive,breadcrumbs:ct.breadcrumbs||[],currentBreadcrumb:ct.currentBreadcrumb,currentData:[],loading:!1};if(g.value=Ct,ct.currentBreadcrumb&&ct.currentBreadcrumb.vod_id){g.value={...g.value,loading:!0};try{const xt={t:ct.currentBreadcrumb.vod_id,apiUrl:h.now_site?.api,extend:h.now_site?.ext},Rt=await J1(h.now_site?.key||t?.key,xt);if(Rt&&Rt.list){const Ht={...g.value,currentData:Rt.list,loading:!1};g.value=Ht}else g.value={...g.value,loading:!1}}catch(xt){console.error("获取folder数据失败:",xt),g.value={...g.value,loading:!1}}}at=!0}catch(ct){console.error("解析folder状态失败:",ct)}at||(Ke=!0);const ft={...i.query};delete ft._returnToActiveKey,delete ft.folderState,a.replace({query:ft})}else Be&&Be.activeKey&&!Ye&&(c.value=Be.activeKey,Ke=!0);await H(h.now_site),_(),Ke&&!at&&setTimeout(()=>{d.value&&d.value.restoreFullState({activeKey:c.value,currentPage:Be?.currentPage||1,videos:Be?.videos||[],hasMore:Be?.hasMore||!0,scrollPosition:Be?.scrollPosition||0})},100)}),_o(()=>{if(k.value&&clearInterval(k.value),window.removeEventListener("reloadSource",D),c.value&&d.value){const _e=d.value.getCurrentState();r.saveVideoState(c.value,_e.currentPage,_e.videos,_e.hasMore,!1,_e.scrollPosition)}}),(_e,me)=>{const ge=Ee("a-spin"),Be=Ee("a-button"),Ye=Ee("a-layout-content");return z(),X(Pt,null,[O(aTt,{onHandleOpenForm:Re,onRefreshPage:T,onMinimize:P,onMaximize:M,onCloseWindow:$,onOnSearch:U,onHandlePush:nt,onActionExecuted:Ie,now_site_title:h.now_site_title,sites:h.sites},{default:ce(()=>[I("div",N5t,[I("span",null,je(l.value),1)])]),_:1},8,["now_site_title","sites"]),I("div",F5t,[y.value?(z(),X("div",j5t,[I("div",V5t,[O(ge,{size:32}),me[2]||(me[2]=I("div",{class:"loading-text"},"正在切换数据源...",-1)),O(Be,{type:"outline",size:"small",onClick:Ge,class:"close-loading-btn"},{default:ce(()=>[...me[1]||(me[1]=[He(" 手动关闭 ",-1)])]),_:1})])])):Ae("",!0),O(Ye,{class:"content"},{default:ce(()=>[p.isSearching?(z(),Ze(W3e,{key:0,keyword:p.searchKeyword,videos:p.searchResults,loading:p.searchLoading,error:p.searchError,currentPage:p.currentPage,totalPages:p.totalPages,hasMore:p.hasMore,scrollPosition:p.scrollPosition,sourceRoute:{name:tt(i).name,params:tt(i).params,query:tt(i).query},module:h.now_site?.key||tt(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,onLoadMore:W,onExitSearch:K,onVideoClick:ae,onRefreshList:ee},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url"])):(z(),Ze(d5t,{key:1,ref_key:"videoListRef",ref:d,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:tt(i).name,params:tt(i).params,query:{...tt(i).query,activeKey:c.value,folderState:g.value.value?.isActive?JSON.stringify({isActive:g.value.value.isActive,breadcrumbs:g.value.value.breadcrumbs,currentBreadcrumb:g.value.value.currentBreadcrumb}):void 0}},returnToActiveKey:tt(i).query._returnToActiveKey,module:h.now_site?.key||tt(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,specialCategoryState:v,folderNavigationState:g.value,onActiveKeyChange:oe,onSpecialAction:Y,onCloseSpecialCategory:ie,onFolderNavigate:ve},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url","specialCategoryState","folderNavigationState"]))]),_:1})]),O(S6t,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":me[0]||(me[0]=Ke=>h.visible=Ke),onConfirmClear:B,onConfirmChange:j,onChangeRule:L},null,8,["visible","title","sites","currentSiteKey"])],64)}}},U5t=sr(z5t,[["__scopeId","data-v-27b31960"]]),G3e=async(e,t={})=>{const{snifferUrl:n="http://localhost:57573/sniffer",timeout:r=10,mode:i="0",is_pc:a="0"}=t;if(!e)throw new Error("URL或解析数据参数不能为空");if(!n)throw new Error("嗅探器接口地址不能为空");try{let s;if(typeof e=="object"&&e.parse===1){const{url:p,js:v,parse_extra:g}=e;if(!p)throw new Error("T4解析数据中缺少URL");const y=typeof p=="string"?p:p.toString?p.toString():String(p);console.log("处理T4解析数据:",e),console.log("提取的URL:",y),console.log("=== 调试结束 ===");const S=new URLSearchParams({url:y,mode:i,is_pc:a,timeout:(r*1e3).toString()});v&&S.set("script",v),s=`${n}?${S.toString()}`,g&&(s+=g)}else{const p=typeof e=="string"?e:e.toString(),v=new URLSearchParams({url:p,mode:i,is_pc:a,timeout:(r*1e3).toString()});s=`${n}?${v.toString()}`}console.log("嗅探请求URL:",s);const l=new AbortController,c=setTimeout(()=>l.abort(),r*1e3+5e3),d=await fetch(s,{method:"GET",signal:l.signal,headers:{Accept:"application/json","Content-Type":"application/json"}});if(clearTimeout(c),!d.ok)throw new Error(`嗅探请求失败: ${d.status} ${d.statusText}`);const h=await d.json();if(console.log("嗅探响应结果:",h),h.code!==200)throw new Error(h.msg||"嗅探失败");return{success:!0,data:h.data,message:h.msg||"嗅探成功",timestamp:h.timestamp}}catch(s){throw console.error("嗅探请求失败:",s),s.name==="AbortError"?new Error(`嗅探超时(${r}秒)`):s.message.includes("Failed to fetch")?new Error("无法连接到嗅探器服务,请检查嗅探器是否正常运行"):s}},IG=()=>{try{const e=localStorage.getItem("addressSettings");if(e){const t=JSON.parse(e);return{enabled:t.proxySniffEnabled||!1,url:t.proxySniff||"http://localhost:57573/sniffer",timeout:t.snifferTimeout||10}}}catch(e){console.error("获取嗅探器配置失败:",e)}return{enabled:!1,url:"http://localhost:57573/sniffer",timeout:10}},OT=()=>{const e=IG();if(!(e.url&&e.url.trim()!==""&&e.url!=="undefined"))return!1;try{const n=localStorage.getItem("addressSettings");if(n)return JSON.parse(n).proxySniffEnabled===!0}catch(n){console.error("检查嗅探器配置失败:",n)}return!0},K3e=async(e,t={})=>{const n=IG();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await G3e(e,r)},H5t=Object.freeze(Object.defineProperty({__proto__:null,getSnifferConfig:IG,isSnifferEnabled:OT,sniffVideo:G3e,sniffVideoWithConfig:K3e},Symbol.toStringTag,{value:"Module"}));class Xle{static validateParserConfig(t){const n=[];if(!t)return{valid:!1,errors:["解析器配置不能为空"]};if(t.name||n.push("解析器名称不能为空"),!t.url)n.push("解析器URL不能为空");else try{new URL(t.url)}catch{n.push("解析器URL格式无效")}return(!t.type||!["json","sniffer"].includes(t.type))&&n.push("解析器类型必须是 json 或 sniffer"),t.type==="json"&&(t.urlPath||n.push("JSON解析器必须配置URL提取路径(urlPath)")),t.type,{valid:n.length===0,errors:n}}static async testParserConfig(t,n="https://example.com/test.mp4"){try{console.log("🧪 [解析器测试] 开始测试解析器配置:",{parser:t.name,testUrl:n,isDefaultTestUrl:n==="https://example.com/test.mp4"});const r=this.validateParserConfig(t);if(!r.valid)return{success:!1,message:"配置验证失败: "+r.errors.join(", ")};let i;return t.type==="json"?(console.log("🧪 [解析器测试] 使用JSON解析器测试"),i=await this.parseWithJsonParser(t,{url:n})):t.type==="sniffer"&&(console.log("🧪 [解析器测试] 使用嗅探解析器测试"),i=await this.parseWithSnifferParser(t,{url:n})),{success:i.success,message:i.success?"解析器测试成功":i.message,testResult:i}}catch(r){return{success:!1,message:"解析器测试失败: "+r.message}}}static async parseWithJsonParser(t,n){try{if(console.log("🔍 [JSON解析] 开始解析:",{parser:t.name,data:n,dataType:typeof n,isTestUrl:n&&typeof n=="object"&&n.url==="https://example.com/test.mp4"}),!t.url)throw new Error("解析器URL未配置");let r;if(n&&typeof n=="object"?(r=n.url||n.play_url||n,console.log("从T4数据结构提取的目标URL:",r)):(r=n,console.log("直接使用的目标URL:",r)),!r||typeof r!="string")throw new Error("无效的视频URL");console.log("要解析的视频URL:",r);const i=t.url+encodeURIComponent(r);console.log("拼接后的解析地址:",i);const a=JSON.parse(localStorage.getItem("addressSettings")||"{}"),s=a.proxyAccessEnabled||!1,l=a.proxyAccess||"";let c=i;s&&l?(console.log("🔄 [代理访问] 使用代理访问接口:",l),l.includes("${url}")?(c=l.replace(/\$\{url\}/g,encodeURIComponent(i)),console.log("🔄 [代理访问] 替换占位符后的最终URL:",c)):console.warn("⚠️ [代理访问] 代理访问链接中未找到${url}占位符,将直接访问原地址")):console.log("🔄 [直接访问] 代理访问接口未启用,直接访问解析地址");const d={method:t.method||"GET",url:c,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Referer:i,...t.headers},timeout:m0.TIMEOUT},h=await uo(d);console.log("JSON解析响应:",h.data);const p=this.parseJsonResponse(h.data,t);return{success:!0,url:p.url,headers:p.headers||{},qualities:p.qualities||[],message:"解析成功"}}catch(r){return console.error("JSON解析失败:",r),{success:!1,message:r.message||"JSON解析失败"}}}static async parseWithSnifferParser(t,n){try{if(console.log("开始嗅探解析:",{parser:t.name,data:n}),!t.url)throw new Error("解析器URL未配置");const r=this.buildSnifferUrl(t,n);console.log("嗅探URL:",r);const i=await uo({method:"GET",url:r,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Referer:n.referer||"",...t.headers},timeout:m0.TIMEOUT,maxRedirects:5});console.log("嗅探解析响应状态:",i.status);const a=this.extractVideoUrlFromSniffer(i,t);if(!a)throw new Error("未能从嗅探响应中提取到视频URL");return{success:!0,url:a,headers:{Referer:t.url,"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},qualities:[],message:"嗅探解析成功"}}catch(r){return console.error("嗅探解析失败:",r),{success:!1,message:r.message||"嗅探解析失败"}}}static parseJsonResponse(t,n){try{let r=t;typeof r=="string"&&(r=JSON.parse(r));const i={url:this.extractValueByPath(r,n.urlPath||"url"),headers:{},qualities:[]};if(n.headersPath&&(i.headers=this.extractValueByPath(r,n.headersPath)||{}),n.qualitiesPath){const a=this.extractValueByPath(r,n.qualitiesPath);Array.isArray(a)&&(i.qualities=a.map(s=>({name:s.name||s.quality||"Unknown",url:s.url||s.playUrl||s.src})))}return i}catch(r){throw console.error("解析JSON响应失败:",r),new Error("解析JSON响应失败: "+r.message)}}static buildSnifferUrl(t,n){let r=t.url,i;if(n&&typeof n=="object"?(i=n.url||n.play_url||n,console.log("从T4数据结构提取的嗅探目标URL:",i)):(i=n,console.log("直接使用的嗅探目标URL:",i)),!i||typeof i!="string")throw new Error("无效的视频URL");if(r.includes("{url}")?r=r.replace(/\{url\}/g,encodeURIComponent(i)):r=r+encodeURIComponent(i),r=r.replace(/\{time\}/g,Date.now()),t.params){const a=new URLSearchParams;Object.entries(t.params).forEach(([s,l])=>{a.append(s,l)}),r+=(r.includes("?")?"&":"?")+a.toString()}return r}static extractVideoUrlFromSniffer(t,n){try{if(t.headers.location){const r=t.headers.location;if(this.isVideoUrl(r))return r}if(t.data){let r=t.data;if(typeof r=="object"){const i=this.extractValueByPath(r,n.urlPath||"url");if(i&&this.isVideoUrl(i))return i}if(typeof r=="string"){const i=/(https?:\/\/[^\s"'<>]+\.(?:mp4|m3u8|flv|avi|mkv|mov|wmv|webm)(?:\?[^\s"'<>]*)?)/gi,a=r.match(i);if(a&&a.length>0)return a[0]}}if(n.extractRule){const r=new RegExp(n.extractRule,"gi"),i=t.data.match(r);if(i&&i.length>0)return i[0]}return null}catch(r){return console.error("提取视频URL失败:",r),null}}static extractValueByPath(t,n){try{return n.split(".").reduce((r,i)=>{const a=i.match(/^(\w+)\[(\d+)\]$/);if(a){const[,s,l]=a;return r?.[s]?.[parseInt(l)]}return r?.[i]},t)}catch(r){return console.error("提取路径值失败:",r,{path:n,obj:t}),null}}static isVideoUrl(t){if(!t||typeof t!="string")return!1;const n=[".mp4",".m3u8",".flv",".avi",".mkv",".mov",".wmv",".webm"],r=t.toLowerCase();return n.some(i=>r.includes(i))||r.includes("video")||r.includes("stream")}}const eI=ag("favorite",()=>{const e=ue([]),t=()=>{try{const v=localStorage.getItem("drplayer-favorites");v&&(e.value=JSON.parse(v))}catch(v){console.error("加载收藏数据失败:",v),e.value=[]}},n=()=>{try{localStorage.setItem("drplayer-favorites",JSON.stringify(e.value))}catch(v){console.error("保存收藏数据失败:",v)}},r=v=>{const g={id:v.vod_id,name:v.vod_name,pic:v.vod_pic,year:v.vod_year,area:v.vod_area,type_name:v.type_name,remarks:v.vod_remarks,director:v.vod_director,actor:v.vod_actor,api_info:{module:v.module||"",api_url:v.api_url||"",site_name:v.site_name||"",ext:v.ext||null},created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url)===-1?(e.value.unshift(g),n(),!0):!1},i=(v,g)=>{const y=e.value.findIndex(S=>S.id===v&&S.api_info.api_url===g);return y!==-1?(e.value.splice(y,1),n(),!0):!1},a=(v,g)=>e.value.some(y=>y.id===v&&y.api_info.api_url===g),s=(v,g)=>e.value.find(y=>y.id===v&&y.api_info.api_url===g),l=()=>{e.value=[],n()},c=()=>{const v={version:"1.0",export_time:new Date().toISOString(),favorites:e.value},g=new Blob([JSON.stringify(v,null,2)],{type:"application/json"}),y=URL.createObjectURL(g),S=document.createElement("a");S.href=y,S.download=`drplayer-favorites-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(y)},d=v=>new Promise((g,y)=>{const S=new FileReader;S.onload=k=>{try{const w=JSON.parse(k.target.result);if(!w.favorites||!Array.isArray(w.favorites))throw new Error("无效的收藏数据格式");let x=0;w.favorites.forEach(E=>{e.value.some(T=>T.id===E.id&&T.api_info.api_url===E.api_info.api_url)||(e.value.push({...E,updated_at:new Date().toISOString()}),x++)}),n(),g(x)}catch(w){y(w)}},S.onerror=()=>{y(new Error("文件读取失败"))},S.readAsText(v)}),h=F(()=>e.value.length),p=F(()=>{const v={};return e.value.forEach(g=>{const y=g.api_info?.site_name||"";let S="影视";y.includes("[书]")?S="小说":y.includes("[画]")?S="漫画":y.includes("[密]")?S="密":y.includes("[听]")?S="音频":y.includes("[儿]")&&(S="少儿"),v[S]||(v[S]=[]),v[S].push(g)}),v});return t(),{favorites:e,favoriteCount:h,favoritesByType:p,addFavorite:r,removeFavorite:i,isFavorited:a,getFavorite:s,clearFavorites:l,exportFavorites:c,importFavorites:d,loadFavorites:t,saveFavorites:n}}),LG=ag("history",()=>{const e=ue([]),t=F(()=>e.value.length),n=F(()=>[...e.value].sort((g,y)=>new Date(y.updated_at)-new Date(g.updated_at))),r=F(()=>{const g={};return e.value.forEach(y=>{const S=y.api_info?.site_name||"";let k="影视";S.includes("[书]")?k="小说":S.includes("[画]")?k="漫画":S.includes("[密]")?k="密":S.includes("[听]")?k="音频":S.includes("[儿]")&&(k="少儿"),g[k]||(g[k]=[]),g[k].push(y)}),g}),i=()=>{try{const g=localStorage.getItem("drplayer_histories");g&&(e.value=JSON.parse(g))}catch(g){console.error("加载观看历史失败:",g),e.value=[]}},a=()=>{try{localStorage.setItem("drplayer_histories",JSON.stringify(e.value))}catch(g){console.error("保存观看历史失败:",g)}},s=(g,y,S)=>{const k=new Date().toISOString();console.log("=== historyStore.addToHistory 调试 ==="),console.log("传入的videoInfo.api_info:",g.api_info),console.log("传入的videoInfo.api_info.ext:",g.api_info.ext);const w=e.value.findIndex(E=>E.id===g.id&&E.api_info.api_url===g.api_info.api_url),x={...g,current_route_name:y.name,current_route_index:y.index,current_episode_name:S.name,current_episode_index:S.index,current_episode_url:S.url,updated_at:k};w!==-1?(e.value[w]={...e.value[w],...x},console.log("更新后的历史记录api_info:",e.value[w].api_info)):(x.created_at=k,e.value.push(x),console.log("新添加的历史记录api_info:",x.api_info)),console.log("=== historyStore.addToHistory 调试结束 ==="),a()},l=g=>{if(!g||!g.id||!g.api_info||!g.api_info.api_url)return console.error("删除历史记录失败:参数无效",g),!1;const y=e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url);return y!==-1?(e.value.splice(y,1),a(),console.log("删除历史记录成功:",g.name),!0):(console.warn("未找到要删除的历史记录:",g),!1)},c=()=>{e.value=[],a()},d=()=>{const g=JSON.stringify(e.value,null,2),y=new Blob([g],{type:"application/json"}),S=document.createElement("a");S.href=URL.createObjectURL(y),S.download=`drplayer_histories_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S)},h=g=>{try{const y=JSON.parse(g);if(!Array.isArray(y))throw new Error("导入的数据格式不正确");const S=y.filter(k=>k.id&&k.name&&k.pic&&k.api_info&&k.current_route_name&&k.current_episode_name);return S.forEach(k=>{const w=e.value.findIndex(x=>x.id===k.id&&x.api_info.api_url===k.api_info.api_url);if(w===-1)e.value.push(k);else{const x=e.value[w],E=new Date(k.updated_at),_=new Date(x.updated_at);E>_&&(e.value[w]=k)}}),a(),S.length}catch(y){throw new Error(`导入失败: ${y.message}`)}},p=(g,y)=>e.value.find(S=>S.id===g&&S.api_info.api_url===y);return{histories:e,historyCount:t,sortedHistories:n,historiesByType:r,loadHistories:i,saveHistories:a,addToHistory:s,removeFromHistory:l,clearHistories:c,exportHistories:d,importHistories:h,getHistoryByVideo:p,getWatchProgress:(g,y)=>{const S=p(g,y);return S?{routeName:S.current_route_name,routeIndex:S.current_route_index,episodeName:S.current_episode_name,episodeIndex:S.current_episode_index,episodeUrl:S.current_episode_url,lastWatchTime:S.updated_at}:null}}}),DG=ag("parser",()=>{const e=ue([]),t=ue(!1),n=ue(null),r=F(()=>e.value.filter(_=>_.enabled!==!1)),i=F(()=>e.value.filter(_=>_.enabled===!1)),a=F(()=>e.value.length),s=async _=>{t.value=!0,n.value=null;try{const T=await fetch(_);if(!T.ok)throw new Error(`HTTP ${T.status}: ${T.statusText}`);const D=await T.json();if(D.parses&&Array.isArray(D.parses))return e.value=D.parses.map((P,M)=>({...P,id:P.id||`parser_${Date.now()}_${M}`,enabled:P.enabled!==!1,order:M})),c(),!0;throw new Error("配置数据格式错误:缺少parses字段")}catch(T){return n.value=T.message,console.error("加载解析配置失败:",T),!1}finally{t.value=!1}},l=()=>{try{const _=localStorage.getItem("drplayer_parsers");if(_){const T=JSON.parse(_);if(Array.isArray(T))return e.value=T,!0}}catch(_){console.error("从本地存储加载解析配置失败:",_)}return!1},c=()=>{try{localStorage.setItem("drplayer_parsers",JSON.stringify(e.value))}catch(_){console.error("保存解析配置到本地存储失败:",_)}},d=_=>{const T={..._,id:`parser_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,enabled:!0,order:e.value.length};return e.value.push(T),c(),T},h=(_,T)=>{const D=e.value.findIndex(P=>P.id===_);return D!==-1?(e.value[D]={...e.value[D],...T},c(),!0):!1},p=_=>{const T=e.value.findIndex(D=>D.id===_);return T!==-1?(e.value.splice(T,1),c(),!0):!1},v=_=>{const T=e.value.find(D=>D.id===_);return T?(T.enabled=!T.enabled,c(),T.enabled):!1},g=_=>{e.value=_.map((T,D)=>({...T,order:D})),c()},y=_=>{const T=[...e.value];T.forEach(D=>{_.has(D.id)&&(D.order=_.get(D.id))}),T.sort((D,P)=>D.order-P.order),T.forEach((D,P)=>{D.order=P}),e.value=T,c()},S=async(_,T)=>{try{const D=_.url.replace(/\{url\}/g,encodeURIComponent(T)),P=await fetch(D,{method:"GET",headers:_.header||{},timeout:1e4});if(!P.ok)throw new Error(`HTTP ${P.status}: ${P.statusText}`);const M=await P.text(),$=/https?:\/\/[^\s]+\.(mp4|m3u8|flv)/i.test(M);return{success:!0,hasVideoUrl:$,response:M,message:$?"解析成功,检测到视频链接":"解析完成,但未检测到视频链接"}}catch(D){return{success:!1,error:D.message,message:`解析失败: ${D.message}`}}},k=()=>{const _={parses:e.value.map(M=>({name:M.name,url:M.url,type:M.type,ext:M.ext,header:M.header})),exportTime:new Date().toISOString(),version:"1.0"},T=new Blob([JSON.stringify(_,null,2)],{type:"application/json"}),D=URL.createObjectURL(T),P=document.createElement("a");P.href=D,P.download=`drplayer_parsers_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(P),P.click(),document.body.removeChild(P),URL.revokeObjectURL(D)},w=async _=>{try{const T=await _.text(),D=JSON.parse(T);if(D.parses&&Array.isArray(D.parses)){const P=D.parses.map((M,$)=>({...M,id:`imported_${Date.now()}_${$}`,enabled:!0,order:e.value.length+$}));return e.value.push(...P),c(),{success:!0,count:P.length}}else throw new Error("导入文件格式错误:缺少parses字段")}catch(T){return{success:!1,error:T.message}}},x=()=>{e.value=[],c()};return l(),{parsers:e,loading:t,error:n,enabledParsers:r,disabledParsers:i,parserCount:a,loadParsers:()=>{l()},loadParsersFromConfig:s,loadFromLocalStorage:l,saveToLocalStorage:c,addParser:d,updateParser:h,deleteParser:p,toggleParser:v,reorderParsers:g,reorderParsersById:y,testParser:S,exportParsers:k,importParsers:w,clearAllParsers:x}}),Bn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},W5t=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=G5t},G5t=Number.MAX_SAFE_INTEGER||9007199254740991;let cr=(function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e})({}),zt=(function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e})({}),Pe=(function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e})({});var ki={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Qn={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class I1{constructor(t,n=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=n,this.totalWeight_=r}sample(t,n){const r=Math.pow(this.alpha_,t);this.estimate_=n*(1-r)+r*this.estimate_,this.totalWeight_+=t}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class K5t{constructor(t,n,r,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new I1(t),this.fast_=new I1(n),this.defaultTTFB_=i,this.ttfb_=new I1(t)}update(t,n){const{slow_:r,fast_:i,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new I1(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==n&&(this.fast_=new I1(n,i.getEstimate(),i.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new I1(t,a.getEstimate(),a.getTotalWeight()))}sample(t,n){t=Math.max(t,this.minDelayMs_);const r=8*n,i=t/1e3,a=r/i;this.fast_.sample(i,a),this.slow_.sample(i,a)}sampleTTFB(t){const n=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(n,2)/2);this.ttfb_.sample(r,Math.max(t,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function q5t(e,t,n){return(t=X5t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Qp}function Jle(e,t,n){return t[e]?t[e].bind(t):J5t(e,n)}const Wz=Hz();function Q5t(e,t,n){const r=Hz();if(typeof console=="object"&&e===!0||typeof e=="object"){const i=["debug","log","info","warn","error"];i.forEach(a=>{r[a]=Jle(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return Hz()}i.forEach(a=>{Wz[a]=Jle(a,e)})}else bo(Wz,r);return r}const po=Wz;function $0(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function eAt(e){return typeof self<"u"&&e===self.ManagedMediaSource}function q3e(e,t){const n=Object.keys(e),r=Object.keys(t),i=n.length,a=r.length;return!i||!a||i===a&&!n.some(s=>r.indexOf(s)===-1)}function fc(e,t=!1){if(typeof TextDecoder<"u"){const d=new TextDecoder("utf-8").decode(e);if(t){const h=d.indexOf("\0");return h!==-1?d.substring(0,h):d}return d.replace(/\0/g,"")}const n=e.length;let r,i,a,s="",l=0;for(;l>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(r);break;case 12:case 13:i=e[l++],s+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=e[l++],a=e[l++],s+=String.fromCharCode((r&15)<<12|(i&63)<<6|(a&63)<<0);break}}return s}function Ul(e){let t="";for(let n=0;n1||i===1&&(n=this.levelkeys[r[0]])!=null&&n.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(t){if(!Bn(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return qs(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(t){this.setStart(this.start+t)}setStart(t){this.start=t,this._ref&&(this._ref.start=t)}setDuration(t){this.duration=t,this._ref&&(this._ref.duration=t)}setKeyFormat(t){const n=this.levelkeys;if(n){var r;const i=n[t];i&&!((r=this._decryptdata)!=null&&r.keyId)&&(this._decryptdata=i.getDecryptData(this.sn,n))}}abortRequests(){var t,n;(t=this.loader)==null||t.abort(),(n=this.keyLoader)==null||n.abort()}setElementaryStreamInfo(t,n,r,i,a,s=!1){const{elementaryStreams:l}=this,c=l[t];if(!c){l[t]={startPTS:n,endPTS:r,startDTS:i,endDTS:a,partial:s};return}c.startPTS=Math.min(c.startPTS,n),c.endPTS=Math.max(c.endPTS,r),c.startDTS=Math.min(c.startDTS,i),c.endDTS=Math.max(c.endDTS,a)}}class rAt extends X3e{constructor(t,n,r,i,a){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=n,this.index=i;const s=t.enumeratedString("BYTERANGE");s&&this.setByteRange(s,a),a&&(this.fragOffset=a.fragOffset+a.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}function Z3e(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||Z3e(n,t)}}function iAt(e,t){const n=Z3e(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const eue=Math.pow(2,32)-1,oAt=[].push,J3e={video:1,audio:2,id3:3,text:4};function la(e){return String.fromCharCode.apply(null,e)}function Q3e(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function $r(e,t){const n=e2e(e,t);return n<0?4294967296+n:n}function tue(e,t){let n=$r(e,t);return n*=Math.pow(2,32),n+=$r(e,t+4),n}function e2e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function sAt(e){const t=e.byteLength;for(let n=0;n8&&e[n+4]===109&&e[n+5]===111&&e[n+6]===111&&e[n+7]===102)return!0;n=r>1?n+r:t}return!1}function mi(e,t){const n=[];if(!t.length)return n;const r=e.byteLength;for(let i=0;i1?i+a:r;if(s===t[0])if(t.length===1)n.push(e.subarray(i+8,l));else{const c=mi(e.subarray(i+8,l),t.slice(1));c.length&&oAt.apply(n,c)}i=l}return n}function aAt(e){const t=[],n=e[0];let r=8;const i=$r(e,r);r+=4;let a=0,s=0;n===0?(a=$r(e,r),s=$r(e,r+4),r+=8):(a=tue(e,r),s=tue(e,r+8),r+=16),r+=2;let l=e.length+s;const c=Q3e(e,r);r+=2;for(let d=0;d>>31===1)return po.warn("SIDX has hierarchical references (not supported)"),null;const y=$r(e,h);h+=4,t.push({referenceSize:v,subsegmentDuration:y,info:{duration:y/i,start:l,end:l+v-1}}),l+=v,h+=4,r=h}return{earliestPresentationTime:a,timescale:i,version:n,referencesCount:c,references:t}}function t2e(e){const t=[],n=mi(e,["moov","trak"]);for(let i=0;i{const a=$r(i,4),s=t[a];s&&(s.default={duration:$r(i,12),flags:$r(i,20)})}),t}function lAt(e){const t=e.subarray(8),n=t.subarray(86),r=la(t.subarray(4,8));let i=r,a;const s=r==="enca"||r==="encv";if(s){const d=mi(t,[r])[0].subarray(r==="enca"?28:78);mi(d,["sinf"]).forEach(p=>{const v=mi(p,["schm"])[0];if(v){const g=la(v.subarray(4,8));if(g==="cbcs"||g==="cenc"){const y=mi(p,["frma"])[0];y&&(i=la(y))}}})}const l=i;switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const c=mi(n,["avcC"])[0];c&&c.length>3&&(i+="."+kx(c[1])+kx(c[2])+kx(c[3]),a=Sx(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=mi(t,[r])[0],d=mi(c.subarray(28),["esds"])[0];if(d&&d.length>7){let h=4;if(d[h++]!==3)break;h=jF(d,h),h+=2;const p=d[h++];if(p&128&&(h+=2),p&64&&(h+=d[h++]),d[h++]!==4)break;h=jF(d,h);const v=d[h++];if(v===64)i+="."+kx(v);else break;if(h+=12,d[h++]!==5)break;h=jF(d,h);const g=d[h++];let y=(g&248)>>3;y===31&&(y+=1+((g&7)<<3)+((d[h]&224)>>5)),i+="."+y}break}case"hvc1":case"hev1":{const c=mi(n,["hvcC"])[0];if(c&&c.length>12){const d=c[1],h=["","A","B","C"][d>>6],p=d&31,v=$r(c,2),g=(d&32)>>5?"H":"L",y=c[12],S=c.subarray(6,12);i+="."+h+p,i+="."+uAt(v).toString(16).toUpperCase(),i+="."+g+y;let k="";for(let w=S.length;w--;){const x=S[w];(x||k)&&(k="."+x.toString(16).toUpperCase()+k)}i+=k}a=Sx(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{i=Sx(i,n)||i;break}case"vp09":{const c=mi(n,["vpcC"])[0];if(c&&c.length>6){const d=c[4],h=c[5],p=c[6]>>4&15;i+="."+rf(d)+"."+rf(h)+"."+rf(p)}break}case"av01":{const c=mi(n,["av1C"])[0];if(c&&c.length>2){const d=c[1]>>>5,h=c[1]&31,p=c[2]>>>7?"H":"M",v=(c[2]&64)>>6,g=(c[2]&32)>>5,y=d===2&&v?g?12:10:v?10:8,S=(c[2]&16)>>4,k=(c[2]&8)>>3,w=(c[2]&4)>>2,x=c[2]&3;i+="."+d+"."+rf(h)+p+"."+rf(y)+"."+S+"."+k+w+x+"."+rf(1)+"."+rf(1)+"."+rf(1)+"."+0,a=Sx("dav1",n)}break}}return{codec:i,encrypted:s,supplemental:a}}function Sx(e,t){const n=mi(t,["dvvC"]),r=n.length?n[0]:mi(t,["dvcC"])[0];if(r){const i=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+rf(i)+"."+rf(a)}}function uAt(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function jF(e,t){const n=t+5;for(;e[t++]&128&&t{const a=r.subarray(8,24);a.some(s=>s!==0)||(po.log(`[eme] Patching keyId in 'enc${i?"a":"v"}>sinf>>tenc' box: ${Ul(a)} -> ${Ul(n)}`),r.set(n,8))})}function dAt(e){const t=[];return n2e(e,n=>t.push(n.subarray(8,24))),t}function n2e(e,t){mi(e,["moov","trak"]).forEach(r=>{const i=mi(r,["mdia","minf","stbl","stsd"])[0];if(!i)return;const a=i.subarray(8);let s=mi(a,["enca"]);const l=s.length>0;l||(s=mi(a,["encv"])),s.forEach(c=>{const d=l?c.subarray(28):c.subarray(78);mi(d,["sinf"]).forEach(p=>{const v=r2e(p);v&&t(v,l)})})})}function r2e(e){const t=mi(e,["schm"])[0];if(t){const n=la(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=mi(e,["schi","tenc"])[0];if(r)return r}}}function fAt(e,t,n){const r={},i=mi(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=mi(e,["sidx"]);for(let c=0;cp+v.info.duration||0,0);s=Math.max(s,h+d.earliestPresentationTime/d.timescale)}}s&&Bn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function hAt(e){const t={valid:null,remainder:null},n=mi(e,["moof"]);if(n.length<2)return t.remainder=e,t;const r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}function td(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function nue(e,t){const n=[],r=t.samples,i=t.timescale,a=t.id;let s=!1;return mi(r,["moof"]).map(c=>{const d=c.byteOffset-8;mi(c,["traf"]).map(p=>{const v=mi(p,["tfdt"]).map(g=>{const y=g[0];let S=$r(g,4);return y===1&&(S*=Math.pow(2,32),S+=$r(g,8)),S/i})[0];return v!==void 0&&(e=v),mi(p,["tfhd"]).map(g=>{const y=$r(g,4),S=$r(g,0)&16777215,k=(S&1)!==0,w=(S&2)!==0,x=(S&8)!==0;let E=0;const _=(S&16)!==0;let T=0;const D=(S&32)!==0;let P=8;y===a&&(k&&(P+=8),w&&(P+=4),x&&(E=$r(g,P),P+=4),_&&(T=$r(g,P),P+=4),D&&(P+=4),t.type==="video"&&(s=tI(t.codec)),mi(p,["trun"]).map(M=>{const $=M[0],L=$r(M,0)&16777215,B=(L&1)!==0;let j=0;const H=(L&4)!==0,U=(L&256)!==0;let W=0;const K=(L&512)!==0;let oe=0;const ae=(L&1024)!==0,ee=(L&2048)!==0;let Y=0;const Q=$r(M,4);let ie=8;B&&(j=$r(M,ie),ie+=4),H&&(ie+=4);let q=j+d;for(let te=0;te>1&63;return n===39||n===40}else return(t&31)===6}function MG(e,t,n,r){const i=i2e(e);let a=0;a+=t;let s=0,l=0,c=0;for(;a=i.length)break;c=i[a++],s+=c}while(c===255);l=0;do{if(a>=i.length)break;c=i[a++],l+=c}while(c===255);const d=i.length-a;let h=a;if(ld){po.error(`Malformed SEI payload. ${l} is too small, only ${d} bytes left to parse.`);break}if(s===4){if(i[h++]===181){const v=Q3e(i,h);if(h+=2,v===49){const g=$r(i,h);if(h+=4,g===1195456820){const y=i[h++];if(y===3){const S=i[h++],k=31&S,w=64&S,x=w?2+k*3:0,E=new Uint8Array(x);if(w){E[0]=S;for(let _=1;_16){const p=[];for(let y=0;y<16;y++){const S=i[h++].toString(16);p.push(S.length==1?"0"+S:S),(y===3||y===5||y===7||y===9)&&p.push("-")}const v=l-16,g=new Uint8Array(v);for(let y=0;y>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(e,4),i=0,r=8;i0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;const s=new Uint8Array(4);return n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),mAt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,i,s,n)}function yAt(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32>>24;if(a!==0&&a!==1)return{offset:n,size:t};const s=e.buffer,l=Ul(new Uint8Array(s,n+12,16));let c=null,d=null,h=0;if(a===0)h=28;else{const v=e.getUint32(28);if(!v||r<32+v*16)return{offset:n,size:t};c=[];for(let g=0;g/\(Windows.+Firefox\//i.test(navigator.userAgent),Wy={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function OG(e,t){const n=Wy[t];return!!n&&!!n[e.slice(0,4)]}function T_(e,t,n=!0){return!e.split(",").some(r=>!$G(r,t,n))}function $G(e,t,n=!0){var r;const i=$0(n);return(r=i?.isTypeSupported(A_(e,t)))!=null?r:!1}function A_(e,t){return`${t}/mp4;codecs=${e}`}function rue(e){if(e){const t=e.substring(0,4);return Wy.video[t]}return 2}function $T(e){const t=o2e();return e.split(",").reduce((n,r)=>{const a=t&&tI(r)?9:Wy.video[r];return a?(a*2+n)/(n?3:2):(Wy.audio[r]+n)/(n?2:1)},0)}const VF={};function _At(e,t=!0){if(VF[e])return VF[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let i=0;i_At(n.toLowerCase(),t))}function kAt(e,t){const n=[];if(e){const r=e.split(",");for(let i=0;i4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)!==-1)&&(iue(e,"audio")||iue(e,"video")))return e;if(t){const n=t.split(",");if(n.length>1){if(e){for(let r=n.length;r--;)if(n[r].substring(0,4)===e.substring(0,4))return n[r]}return n[0]}}return t||e}function iue(e,t){return OG(e,t)&&$G(e,t)}function wAt(e){const t=e.split(",");for(let n=0;n2&&r[0]==="avc1"&&(t[n]=`avc1.${parseInt(r[1]).toString(16)}${("000"+parseInt(r[2]).toString(16)).slice(-4)}`)}return t.join(",")}function xAt(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let r=t.length;r>4&&r<10;r++)t[r]=n[r-4];return t.join(".")}return e}function oue(e){const t=$0(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Gz(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const CAt={supported:!0,powerEfficient:!0,smooth:!0},EAt={supported:!1,smooth:!1,powerEfficient:!1},s2e={supported:!0,configurations:[],decodingInfoResults:[CAt]};function a2e(e,t){return{supported:!1,configurations:t,decodingInfoResults:[EAt],error:e}}function TAt(e,t,n,r,i,a){const s=e.videoCodec,l=e.audioCodec?e.audioGroups:null,c=a?.audioCodec,d=a?.channels,h=d?parseInt(d):c?1/0:2;let p=null;if(l!=null&&l.length)try{l.length===1&&l[0]?p=t.groups[l[0]].channels:p=l.reduce((v,g)=>{if(g){const y=t.groups[g];if(!y)throw new Error(`Audio track group ${g} not found`);Object.keys(y.channels).forEach(S=>{v[S]=(v[S]||0)+y.channels[S]})}return v},{2:0})}catch{return!0}return s!==void 0&&(s.split(",").some(v=>tI(v))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||e.videoRange!=="SDR"&&e.videoRange!==n||e.bitrate>Math.max(i,8e6))||!!p&&Bn(h)&&Object.keys(p).some(v=>parseInt(v)>h)}function l2e(e,t,n,r={}){const i=e.videoCodec;if(!i&&!e.audioCodec||!n)return Promise.resolve(s2e);const a=[],s=AAt(e),l=s.length,c=IAt(e,t,l>0),d=c.length;for(let h=l||1*d||1;h--;){const p={type:"media-source"};if(l&&(p.video=s[h%l]),d){p.audio=c[h%d];const v=p.audio.bitrate;p.video&&v&&(p.video.bitrate-=v)}a.push(p)}if(i){const h=navigator.userAgent;if(i.split(",").some(p=>tI(p))&&o2e())return Promise.resolve(a2e(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=DAt(h);return r[p]||(r[p]=n.decodingInfo(h))})).then(h=>({supported:!h.some(p=>!p.supported),configurations:a,decodingInfoResults:h})).catch(h=>({supported:!1,configurations:a,decodingInfoResults:[],error:h}))}function AAt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=u2e(e),i=e.width||640,a=e.height||480,s=e.frameRate||30,l=e.videoRange.toLowerCase();return n?n.map(c=>{const d={contentType:A_(xAt(c),"video"),width:i,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(d.transferFunction=l),d}):[]}function IAt(e,t,n){var r;const i=(r=e.audioCodec)==null?void 0:r.split(","),a=u2e(e);return i&&e.audioGroups?e.audioGroups.reduce((s,l)=>{var c;const d=l?(c=t.groups[l])==null?void 0:c.tracks:null;return d?d.reduce((h,p)=>{if(p.groupId===l){const v=parseFloat(p.channels||"");i.forEach(g=>{const y={contentType:A_(g,"audio"),bitrate:n?LAt(g,a):a};v&&(y.channels=""+v),h.push(y)})}return h},s):s},[]):[]}function LAt(e,t){if(t<=1)return 1;let n=128e3;return e==="ec-3"?n=768e3:e==="ac-3"&&(n=64e4),Math.min(t/2,n)}function u2e(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function DAt(e){let t="";const{audio:n,video:r}=e;if(r){const i=Gz(r.contentType);t+=`${i}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(n){const i=Gz(n.contentType);t+=`${r?"_":""}${i}_c${n.channels}`}return t}const Kz=["NONE","TYPE-0","TYPE-1",null];function PAt(e){return Kz.indexOf(e)>-1}const NT=["SDR","PQ","HLG"];function RAt(e){return!!e&&NT.indexOf(e)>-1}var o8={No:"",Yes:"YES",v2:"v2"};function sue(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e,i=r!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in t){var n;this.supplemental=t.supplemental;const r=(n=t.supplemental)==null?void 0:n.videoCodec;r&&r!==t.videoCodec&&(this.codecSet+=`,${r.substring(0,4)}`)}this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return lue(this._audioGroups,t)}hasSubtitleGroup(t){return lue(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,n){if(n){if(t==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(n)===-1&&r.push(n)}else if(t==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(n)===-1&&r.push(n)}}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return(t=this.audioGroups)==null?void 0:t[0]}get textGroupId(){var t;return(t=this.subtitleGroups)==null?void 0:t[0]}addFallback(){}}function lue(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function MAt(){if(typeof matchMedia=="function"){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return e.matches===!0}return!1}function OAt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||NT.slice(0);const i=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:i&&MAt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const $At=e=>{const t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),typeof r=="object"&&r!==null){if(t.has(r))return;t.add(r)}return r}},Ao=(e,t)=>JSON.stringify(e,$At(t));function BAt(e,t,n,r,i){const a=Object.keys(e),s=r?.channels,l=r?.audioCodec,c=i?.videoCodec,d=s&&parseInt(s)===2;let h=!1,p=!1,v=1/0,g=1/0,y=1/0,S=1/0,k=0,w=[];const{preferHDR:x,allowedVideoRanges:E}=OAt(t,i);for(let M=a.length;M--;){const $=e[a[M]];h||(h=$.channels[2]>0),v=Math.min(v,$.minHeight),g=Math.min(g,$.minFramerate),y=Math.min(y,$.minBitrate),E.filter(B=>$.videoRanges[B]>0).length>0&&(p=!0)}v=Bn(v)?v:0,g=Bn(g)?g:0;const _=Math.max(1080,v),T=Math.max(30,g);y=Bn(y)?y:n,n=Math.max(y,n),p||(t=void 0);const D=a.length>1;return{codecSet:a.reduce((M,$)=>{const L=e[$];if($===M)return M;if(w=p?E.filter(B=>L.videoRanges[B]>0):[],D){if(L.minBitrate>n)return Qd($,`min bitrate of ${L.minBitrate} > current estimate of ${n}`),M;if(!L.hasDefaultAudio)return Qd($,"no renditions with default or auto-select sound found"),M;if(l&&$.indexOf(l.substring(0,4))%5!==0)return Qd($,`audio codec preference "${l}" not found`),M;if(s&&!d){if(!L.channels[s])return Qd($,`no renditions with ${s} channel sound found (channels options: ${Object.keys(L.channels)})`),M}else if((!l||d)&&h&&L.channels[2]===0)return Qd($,"no renditions with stereo sound found"),M;if(L.minHeight>_)return Qd($,`min resolution of ${L.minHeight} > maximum of ${_}`),M;if(L.minFramerate>T)return Qd($,`min framerate of ${L.minFramerate} > maximum of ${T}`),M;if(!w.some(B=>L.videoRanges[B]>0))return Qd($,`no variants with VIDEO-RANGE of ${Ao(w)} found`),M;if(c&&$.indexOf(c.substring(0,4))%5!==0)return Qd($,`video codec preference "${c}" not found`),M;if(L.maxScore=$T(M)||L.fragmentError>e[M].fragmentError)?M:(S=L.minIndex,k=L.maxScore,$)},void 0),videoRanges:w,preferHDR:x,minFramerate:g,minBitrate:y,minIndex:S}}function Qd(e,t){po.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function c2e(e){return e.reduce((t,n)=>{let r=t.groups[n.groupId];r||(r=t.groups[n.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(n);const i=n.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||n.default,r.hasAutoSelect=r.hasAutoSelect||n.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function NAt(e,t,n,r){return e.slice(n,r+1).reduce((i,a,s)=>{if(!a.codecSet)return i;const l=a.audioGroups;let c=i[a.codecSet];c||(i[a.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,a.bitrate);const d=Math.min(a.height,a.width);return c.minHeight=Math.min(c.minHeight,d),c.minFramerate=Math.min(c.minFramerate,a.frameRate),c.minIndex=Math.min(c.minIndex,s),c.maxScore=Math.max(c.maxScore,a.score),c.fragmentError+=a.fragmentError,c.videoRanges[a.videoRange]=(c.videoRanges[a.videoRange]||0)+1,l&&l.forEach(h=>{if(!h)return;const p=t.groups[h];p&&(c.hasDefaultAudio=c.hasDefaultAudio||t.hasDefaultAudio?p.hasDefault:p.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(p.channels).forEach(v=>{c.channels[v]=(c.channels[v]||0)+p.channels[v]}))}),i},{})}function uue(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}}function vf(e,t,n){if("attrs"in e){const r=t.indexOf(e);if(r!==-1)return r}for(let r=0;rr.indexOf(i)===-1)}function qv(e,t){const{audioCodec:n,channels:r}=e;return(n===void 0||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(r===void 0||r===(t.channels||"2"))}function VAt(e,t,n,r,i){const a=t[r],l=t.reduce((v,g,y)=>{const S=g.uri;return(v[S]||(v[S]=[])).push(y),v},{})[a.uri];l.length>1&&(r=Math.max.apply(Math,l));const c=a.videoRange,d=a.frameRate,h=a.codecSet.substring(0,4),p=cue(t,r,v=>{if(v.videoRange!==c||v.frameRate!==d||v.codecSet.substring(0,4)!==h)return!1;const g=v.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return vf(e,y,i)>-1});return p>-1?p:cue(t,r,v=>{const g=v.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return vf(e,y,i)>-1})}function cue(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r{var r;const{fragCurrent:i,partCurrent:a,hls:s}=this,{autoLevelEnabled:l,media:c}=s;if(!i||!c)return;const d=performance.now(),h=a?a.stats:i.stats,p=a?a.duration:i.duration,v=d-h.loading.start,g=s.minAutoLevel,y=i.level,S=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||y<=g){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const k=S>-1&&S!==y,w=!!n||k;if(!w&&(c.paused||!c.playbackRate||!c.readyState))return;const x=s.mainForwardBufferInfo;if(!w&&x===null)return;const E=this.bwEstimator.getEstimateTTFB(),_=Math.abs(c.playbackRate);if(v<=Math.max(E,1e3*(p/(_*2))))return;const T=x?x.len/_:0,D=h.loading.first?h.loading.first-h.loading.start:-1,P=h.loaded&&D>-1,M=this.getBwEstimate(),$=s.levels,L=$[y],B=Math.max(h.loaded,Math.round(p*(i.bitrate||L.averageBitrate)/8));let j=P?v-D:v;j<1&&P&&(j=Math.min(v,h.loaded*8/M));const H=P?h.loaded*1e3/j:0,U=E/1e3,W=H?(B-h.loaded)/H:B*8/M+U;if(W<=T)return;const K=H?H*8:M,oe=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,ae=this.hls.config.abrBandWidthUpFactor;let ee=Number.POSITIVE_INFINITY,Y;for(Y=y-1;Y>g;Y--){const te=$[Y].maxBitrate,Se=!$[Y].details||oe;if(ee=this.getTimeToLoadFrag(U,K,p*te,Se),ee=W||ee>p*10)return;P?this.bwEstimator.sample(v-Math.min(E,D),h.loaded):this.bwEstimator.sampleTTFB(v);const Q=$[Y].maxBitrate;this.getBwEstimate()*ae>Q&&this.resetEstimator(Q);const ie=this.findBestLevel(Q,g,Y,0,T,1,1);ie>-1&&(Y=ie),this.warn(`Fragment ${i.sn}${a?" part "+a.index:""} of level ${y} is loading too slowly; Fragment duration: ${i.duration.toFixed(3)} Time to underbuffer: ${T.toFixed(3)} s - Estimated load time for current fragment: ${K.toFixed(3)} s - Estimated load time for down switch fragment: ${W.toFixed(3)} s + Estimated load time for current fragment: ${W.toFixed(3)} s + Estimated load time for down switch fragment: ${ee.toFixed(3)} s TTFB estimate: ${D|0} ms Current BW estimate: ${Bn(M)?M|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps - Switching to level ${q} @ ${Q|0} bps`),s.nextLoadLevel=s.nextAutoLevel=q,this.clearTimer();const ae=()=>{if(this.clearTimer(),this.fragCurrent===i&&this.hls.loadLevel===q&&q>0){const re=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${q>0?"and switching down":""} + Switching to level ${Y} @ ${Q|0} bps`),s.nextLoadLevel=s.nextAutoLevel=Y,this.clearTimer();const q=()=>{if(this.clearTimer(),this.fragCurrent===i&&this.hls.loadLevel===Y&&Y>0){const te=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${Y>0?"and switching down":""} Fragment duration: ${i.duration.toFixed(3)} s - Time to underbuffer: ${re.toFixed(3)} s`),i.abortRequests(),this.fragCurrent=this.partCurrent=null,q>g){let Ce=this.findBestLevel(this.hls.levels[g].bitrate,g,q,0,re,1,1);Ce===-1&&(Ce=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Ce,this.resetEstimator(this.hls.levels[Ce].bitrate)}}};k||K>W*2?ae():this.timer=self.setInterval(ae,W*1e3),s.trigger(Pe.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:a,stats:h})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(this.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new j5t(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.FRAG_LOADING,this.onFragLoading,this),t.on(Pe.FRAG_LOADED,this.onFragLoaded,this),t.on(Pe.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Pe.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.FRAG_LOADING,this.onFragLoading,this),t.off(Pe.FRAG_LOADED,this.onFragLoaded,this),t.off(Pe.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Pe.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Pe.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,n){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,n){const r=n.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var i;this.fragCurrent=r,this.partCurrent=(i=n.part)!=null?i:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,n){this.clearTimer()}onError(t,n){if(!n.fatal)switch(n.details){case zt.BUFFER_ADD_CODEC_ERROR:case zt.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case zt.FRAG_LOAD_TIMEOUT:{const r=n.frag,{fragCurrent:i,partCurrent:a}=this;if(r&&i&&r.sn===i.sn&&r.level===i.level){const s=performance.now(),l=a?a.stats:r.stats,c=s-l.loading.start,d=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&d>-1){const p=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(p,d),l.loaded)}else this.bwEstimator.sampleTTFB(c)}break}}}getTimeToLoadFrag(t,n,r,i){const a=t+r/n,s=i?t+this.lastLevelLoadSec:0;return a+s}onLevelLoaded(t,n){const r=this.hls.config,{loading:i}=n.stats,a=i.end-i.first;Bn(a)&&(this.lastLevelLoadSec=a/1e3),n.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(n.levelInfo)}onFragLoaded(t,{frag:n,part:r}){const i=r?r.stats:n.stats;if(n.type===Qn.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(n)){if(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const a=r?r.duration:n.duration,s=this.hls.levels[n.level],l=(s.loaded?s.loaded.bytes:0)+i.loaded,c=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:l,duration:c},s.realBitrate=Math.round(8*l/c)}if(n.bitrateTest){const a={stats:i,frag:n,part:r,id:n.type};this.onFragBuffered(Pe.FRAG_BUFFERED,a),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}onFragBuffered(t,n){const{frag:r,part:i}=n,a=i!=null&&i.stats.loaded?i.stats:r.stats;if(a.aborted||this.ignoreFragment(r))return;const s=a.parsing.end-a.loading.start-Math.min(a.loading.first-a.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,a.loaded),a.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==Qn.MAIN||t.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,a=this.findBestLevel(r,n,t,0,i,1,1);if(a>-1)return a;const s=this.hls.firstLevel,l=Math.min(Math.max(s,n),t);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(t!==-1&&(!r||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return t;const a=r&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(t!==-1){const s=this.hls.levels;if(s.length>Math.max(t,a)&&s[t].loadError<=s[a].loadError)return t}return this._nextAutoLevel=a,this.nextAutoLevelKey=this.getAutoLevelKey(),a}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:n,hls:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:i,config:a,minAutoLevel:s}=r,l=n?n.duration:t?t.duration:0,c=this.getBwEstimate(),d=this.getStarvationDelay();let h=a.abrBandWidthFactor,p=a.abrBandWidthUpFactor;if(d){const k=this.findBestLevel(c,s,i,d,0,h,p);if(k>=0)return this.rebufferNotice=-1,k}let v=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!d){const k=this.bitrateTestDelay;k&&(v=(l?Math.min(l,a.maxLoadingDelay):a.maxLoadingDelay)-k,this.info(`bitrate test took ${Math.round(1e3*k)}ms, set first fragment max fetchDuration to ${Math.round(1e3*v)} ms`),h=p=1)}const g=this.findBestLevel(c,s,i,d,v,h,p);if(this.rebufferNotice!==g&&(this.rebufferNotice=g,this.info(`${d?"rebuffering expected":"buffer is empty"}, optimal quality level ${g}`)),g>-1)return g;const y=r.levels[s],S=r.loadLevelObj;return S&&y?.bitrate=n;Y--){var K;const ie=y[Y],te=Y>p;if(!ie)continue;if(C.useMediaCapabilities&&!ie.supportedResult&&!ie.supportedPromise){const Ce=navigator.mediaCapabilities;typeof Ce?.decodingInfo=="function"&&_At(ie,L,D,P,t,M)?(ie.supportedPromise=l2e(ie,L,Ce,this.supportedCache),ie.supportedPromise.then(Ve=>{if(!this.hls)return;ie.supportedResult=Ve;const ge=this.hls.levels,xe=ge.indexOf(ie);Ve.error?this.warn(`MediaCapabilities decodingInfo error: "${Ve.error}" for level ${xe} ${Ao(Ve)}`):Ve.supported?Ve.decodingInfoResults.some(Ge=>Ge.smooth===!1||Ge.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${xe} not smooth or powerEfficient: ${Ao(Ve)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${xe} ${Ao(Ve)}`),xe>-1&&ge.length>1&&(this.log(`Removing unsupported level ${xe}`),this.hls.removeLevel(xe),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(Ve=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${Ve}`)})):ie.supportedResult=s2e}if((T&&ie.codecSet!==T||D&&ie.videoRange!==D||te&&P>ie.frameRate||!te&&P>0&&PCe.smooth===!1))&&(!_||Y!==B)){U.push(Y);continue}const W=ie.details,q=(g?W?.partTarget:W?.averagetargetduration)||j;let Q;te?Q=l*t:Q=s*t;const se=j&&i>=j*2&&a===0?ie.averageBitrate:ie.maxBitrate,ae=this.getTimeToLoadFrag(H,Q,se*q,W===void 0);if(Q>=se&&(Y===h||ie.loadError===0&&ie.fragmentError===0)&&(ae<=H||!Bn(ae)||E&&!this.bitrateTestDelay||ae${Y} adjustedbw(${Math.round(Q)})-bitrate=${Math.round(Q-se)} ttfb:${H.toFixed(1)} avgDuration:${q.toFixed(1)} maxFetchDuration:${d.toFixed(1)} fetchDuration:${ae.toFixed(1)} firstSelection:${_} codecSet:${ie.codecSet} videoRange:${ie.videoRange} hls.loadLevel:${k}`)),_&&(this.firstSelection=Y),Y}}return-1}set nextAutoLevel(t){const n=this.deriveNextAutoLevel(t);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}deriveNextAutoLevel(t){const{maxAutoLevel:n,minAutoLevel:r}=this.hls;return Math.min(Math.max(t,r),n)}}const d2e={search:function(e,t){let n=0,r=e.length-1,i=null,a=null;for(;n<=r;){i=(n+r)/2|0,a=e[i];const s=t(a);if(s>0)n=i+1;else if(s<0)r=i-1;else return a}return null}};function OAt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!Bn(t))return null;const r=e[0].programDateTime;if(t<(r||0))return null;const i=e[e.length-1].endProgramDateTime;if(t>=(i||0))return null;for(let a=0;a0&&l<15e-7&&(n+=15e-7),a&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else n===0&&t[0].start===0&&(a=t[0]);if(a&&((!e||e.level===a.level)&&due(n,r,a)===0||BAt(a,e,Math.min(i,r))))return a;const s=d2e.search(t,due.bind(null,n,r));return s&&(s!==e||!a)?s:a}function BAt(e,t,n){if(t&&t.start===0&&t.level0){const r=t.tagList.reduce((i,a)=>(a[0]==="INF"&&(i+=parseFloat(a[1])),i),n);return e.start<=r}return!1}function due(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function NAt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function f2e(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=e.fragments;const{fragmentHint:i}=e;i&&(r=r.concat(i));let a;return d2e.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function FT(e){switch(e.details){case zt.FRAG_LOAD_TIMEOUT:case zt.KEY_LOAD_TIMEOUT:case zt.LEVEL_LOAD_TIMEOUT:case zt.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function h2e(e){return e.details.startsWith("key")}function p2e(e){return h2e(e)&&!!e.frag&&!e.frag.decryptdata}function fue(e,t){const n=FT(t);return e.default[`${n?"timeout":"error"}Retry`]}function BG(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function hue(e){return fo(fo({},e),{errorRetry:null,timeoutRetry:null})}function jT(e,t,n,r){if(!e)return!1;const i=r?.code,a=t499)}function Gz(e){return e===0&&navigator.onLine===!1}var ja={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},tc={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class jAt extends od{constructor(t){super("error-controller",t.logger),this.hls=void 0,this.playlistError=0,this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(Pe.ERROR,this.onError,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Pe.ERROR,this.onError,this),t.off(Pe.ERROR,this.onErrorOut,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===Qn.MAIN?t.level:this.getVariantIndex()}getVariantIndex(){var t;const n=this.hls,r=n.currentLevel;return(t=n.loadLevelObj)!=null&&t.details||r===-1?n.loadLevel:r}variantHasKey(t,n){if(t){var r;if((r=t.details)!=null&&r.hasKey(n))return!0;const i=t.audioGroups;if(i)return this.hls.allAudioTracks.filter(s=>i.indexOf(s.groupId)>=0).some(s=>{var l;return(l=s.details)==null?void 0:l.hasKey(n)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(t,n){var r;if(n.fatal)return;const i=this.hls,a=n.context;switch(n.details){case zt.FRAG_LOAD_ERROR:case zt.FRAG_LOAD_TIMEOUT:case zt.KEY_LOAD_ERROR:case zt.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case zt.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=_y();return}case zt.FRAG_GAP:case zt.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=ja.SendAlternateToPenaltyBox;return}case zt.LEVEL_EMPTY_ERROR:case zt.LEVEL_PARSING_ERROR:{var s;const c=n.parent===Qn.MAIN?n.level:i.loadLevel;n.details===zt.LEVEL_EMPTY_ERROR&&((s=n.context)!=null&&(s=s.levelDetails)!=null&&s.live)?n.errorAction=this.getPlaylistRetryOrSwitchAction(n,c):(n.levelRetry=!1,n.errorAction=this.getLevelSwitchAction(n,c))}return;case zt.LEVEL_LOAD_ERROR:case zt.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case zt.AUDIO_TRACK_LOAD_ERROR:case zt.AUDIO_TRACK_LOAD_TIMEOUT:case zt.SUBTITLE_LOAD_ERROR:case zt.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=i.loadLevelObj;if(c&&(a.type===Si.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===Si.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,i.loadLevel),n.errorAction.action=ja.SendAlternateToPenaltyBox,n.errorAction.flags=tc.MoveAllAlternatesMatchingHost;return}}return;case zt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:ja.SendAlternateToPenaltyBox,flags:tc.MoveAllAlternatesMatchingHDCP};return;case zt.KEY_SYSTEM_SESSION_UPDATE_FAILED:case zt.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case zt.KEY_SYSTEM_NO_SESSION:n.errorAction={action:ja.SendAlternateToPenaltyBox,flags:tc.MoveAllAlternatesMatchingKey};return;case zt.BUFFER_ADD_CODEC_ERROR:case zt.REMUX_ALLOC_ERROR:case zt.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:i.loadLevel)}return;case zt.INTERNAL_EXCEPTION:case zt.BUFFER_APPENDING_ERROR:case zt.BUFFER_FULL_ERROR:case zt.LEVEL_SWITCH_ERROR:case zt.BUFFER_STALLED_ERROR:case zt.BUFFER_SEEK_OVER_HOLE:case zt.BUFFER_NUDGE_ON_STALL:n.errorAction=_y();return}n.type===ur.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=_y())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,i=fue(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(jT(i,a,FT(t),t.response))return{action:ja.RetryRequest,flags:tc.None,retryConfig:i,retryCount:a};const l=this.getLevelSwitchAction(t,n);return i&&(l.retryConfig=i,l.retryCount=a),l}getFragRetryOrSwitchAction(t){const n=this.hls,r=this.getVariantLevelIndex(t.frag),i=n.levels[r],{fragLoadPolicy:a,keyLoadPolicy:s}=n.config,l=fue(h2e(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(i&&(t.details!==zt.FRAG_GAP&&i.fragmentError++,!p2e(t)&&jT(l,c,FT(t),t.response)))return{action:ja.RetryRequest,flags:tc.None,retryConfig:l,retryCount:c};const d=this.getLevelSwitchAction(t,r);return l&&(d.retryConfig=l,d.retryCount=c),d}getLevelSwitchAction(t,n){const r=this.hls;n==null&&(n=r.loadLevel);const i=this.hls.levels[n];if(i){var a,s;const d=t.details;i.loadError++,d===zt.BUFFER_APPEND_ERROR&&i.fragmentError++;let h=-1;const{levels:p,loadLevel:v,minAutoLevel:g,maxAutoLevel:y}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const S=(a=t.frag)==null?void 0:a.type,C=(S===Qn.AUDIO&&d===zt.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(d===zt.BUFFER_ADD_CODEC_ERROR||d===zt.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:D})=>i.audioCodec!==D),E=t.sourceBufferName==="video"&&(d===zt.BUFFER_ADD_CODEC_ERROR||d===zt.BUFFER_APPEND_ERROR)&&p.some(({codecSet:D,audioCodec:P})=>i.codecSet!==D&&i.audioCodec===P),{type:_,groupId:T}=(s=t.context)!=null?s:{};for(let D=p.length;D--;){const P=(D+v)%p.length;if(P!==v&&P>=g&&P<=y&&p[P].loadError===0){var l,c;const M=p[P];if(d===zt.FRAG_GAP&&S===Qn.MAIN&&t.frag){const O=p[P].details;if(O){const L=Um(t.frag,O.fragments,t.frag.start);if(L!=null&&L.gap)continue}}else{if(_===Si.AUDIO_TRACK&&M.hasAudioGroup(T)||_===Si.SUBTITLE_TRACK&&M.hasSubtitleGroup(T))continue;if(S===Qn.AUDIO&&(l=i.audioGroups)!=null&&l.some(O=>M.hasAudioGroup(O))||S===Qn.SUBTITLE&&(c=i.subtitleGroups)!=null&&c.some(O=>M.hasSubtitleGroup(O))||C&&i.audioCodec===M.audioCodec||E&&i.codecSet===M.codecSet||!C&&i.codecSet!==M.codecSet)continue}h=P;break}}if(h>-1&&r.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:ja.SendAlternateToPenaltyBox,flags:tc.None,nextAutoLevel:h}}return{action:ja.SendAlternateToPenaltyBox,flags:tc.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case ja.DoNothing:break;case ja.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==zt.FRAG_GAP?n.fatal=!0:/MediaSource readyState: ended/.test(n.error.message)&&(this.warn(`MediaSource ended after "${n.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(n.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(t){const n=this.hls,r=t.errorAction;if(!r)return;const{flags:i}=r,a=r.nextAutoLevel;switch(i){case tc.None:this.switchLevel(t,a);break;case tc.MoveAllAlternatesMatchingHDCP:{const c=this.getVariantLevelIndex(t.frag),d=n.levels[c],h=d?.attrs["HDCP-LEVEL"];if(r.hdcpLevel=h,h==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(h){n.maxHdcpLevel=Wz[Wz.indexOf(h)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case tc.MoveAllAlternatesMatchingKey:{const c=t.decryptdata;if(c){const d=this.hls.levels,h=d.length;for(let v=h;v--;)if(this.variantHasKey(d[v],c)){var s,l;this.log(`Banned key found in level ${v} (${d[v].bitrate}bps) or audio group "${(s=d[v].audioGroups)==null?void 0:s.join(",")}" (${(l=t.frag)==null?void 0:l.type} fragment) ${Ul(c.keyId||[])}`),d[v].fragmentError++,d[v].loadError++,this.log(`Removing level ${v} with key error (${t.error})`),this.hls.removeLevel(v)}const p=t.frag;if(this.hls.levels.length{const c=this.fragments[l];if(!c||s>=c.body.sn)return;if(!c.buffered&&(!c.loaded||a)){c.body.type===r&&this.removeFragment(c.body);return}const d=c.range[t];if(d){if(d.time.length===0){this.removeFragment(c.body);return}d.time.some(h=>{const p=!this.isTimeBuffered(h.startPTS,h.endPTS,n);return p&&this.removeFragment(c.body),p})}})}detectPartialFragments(t){const n=this.timeRanges;if(!n||t.frag.sn==="initSegment")return;const r=t.frag,i=I1(r),a=this.fragments[i];if(!a||a.buffered&&r.gap)return;const s=!r.relurl;Object.keys(n).forEach(l=>{const c=r.elementaryStreams[l];if(!c)return;const d=n[l],h=s||c.partial===!0;a.range[l]=this.getBufferedTimes(r,t.part,h,d)}),a.loaded=null,Object.keys(a.range).length?(a.buffered=!0,(a.body.endList=r.endList||a.body.endList)&&(this.endListFragments[a.body.type]=a),xC(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=pue(r,i=>i.fragment.sn>=t))}fragBuffered(t,n){const r=I1(t);let i=this.fragments[r];!i&&n&&(i=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(t,n,r,i){const a={time:[],partial:r},s=t.start,l=t.end,c=t.minEndPTS||l,d=t.maxStartPTS||s;for(let h=0;h=p&&c<=v){a.time.push({startPTS:Math.max(s,i.start(h)),endPTS:Math.min(l,i.end(h))});break}else if(sp){const g=Math.max(s,i.start(h)),y=Math.min(l,i.end(h));y>g&&(a.partial=!0,a.time.push({startPTS:g,endPTS:y}))}else if(l<=p)break}return a}getPartialFragment(t){let n=null,r,i,a,s=0;const{bufferPadding:l,fragments:c}=this;return Object.keys(c).forEach(d=>{const h=c[d];h&&xC(h)&&(i=h.body.start-l,a=h.body.end+l,t>=i&&t<=a&&(r=Math.min(t-i,a-t),s<=r&&(n=h.body,s=r)))}),n}isEndListAppended(t){const n=this.endListFragments[t];return n!==void 0&&(n.buffered||xC(n))}getState(t){const n=I1(t),r=this.fragments[n];return r?r.buffered?xC(r)?da.PARTIAL:da.OK:da.APPENDING:da.NOT_LOADED}isTimeBuffered(t,n,r){let i,a;for(let s=0;s=i&&n<=a)return!0;if(n<=i)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(t,n){if(n.frag.sn==="initSegment"||n.frag.bitrateTest)return;const r=n.frag,i=n.part?null:n,a=I1(r);this.fragments[a]={body:r,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(t,n){const{frag:r,part:i,timeRanges:a,type:s}=n;if(r.sn==="initSegment")return;const l=r.type;if(i){let d=this.activePartLists[l];d||(this.activePartLists[l]=d=[]),d.push(i)}this.timeRanges=a;const c=a[s];this.detectEvictedFragments(s,c,l,i)}onFragBuffered(t,n){this.detectPartialFragments(n)}hasFragment(t){const n=I1(t);return!!this.fragments[n]}hasFragments(t){const{fragments:n}=this,r=Object.keys(n);if(!t)return r.length>0;for(let i=r.length;i--;){const a=n[r[i]];if(a?.body.type===t)return!0}return!1}hasParts(t){var n;return!!((n=this.activePartLists[t])!=null&&n.length)}removeFragmentsInRange(t,n,r,i,a){i&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const c=l.body;c.type!==r||i&&!c.gap||c.startt&&(l.buffered||a)&&this.removeFragment(c)})}removeFragment(t){const n=I1(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const i=t.sn;this.activePartLists[t.type]=pue(r,a=>a.fragment.sn!==i)}delete this.fragments[n],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){var t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(t=this.hls)==null||(t=t.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function xC(e){var t,n,r;return e.buffered&&!!(e.body.gap||(t=e.range.video)!=null&&t.partial||(n=e.range.audio)!=null&&n.partial||(r=e.range.audiovideo)!=null&&r.partial)}function I1(e){return`${e.type}_${e.level}_${e.sn}`}function pue(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var M0={cbc:0,ctr:1};class zAt{constructor(t,n,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=t,this.aesIV=n,this.aesMode=r}decrypt(t,n){switch(this.aesMode){case M0.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case M0.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},n,t);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function UAt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class HAt{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const n=new DataView(t),r=new Uint32Array(4);for(let i=0;i<4;i++)r[i]=n.getUint32(i*4);return r}initTable(){const t=this.sBox,n=this.invSBox,r=this.subMix,i=r[0],a=r[1],s=r[2],l=r[3],c=this.invSubMix,d=c[0],h=c[1],p=c[2],v=c[3],g=new Uint32Array(256);let y=0,S=0,k=0;for(k=0;k<256;k++)k<128?g[k]=k<<1:g[k]=k<<1^283;for(k=0;k<256;k++){let C=S^S<<1^S<<2^S<<3^S<<4;C=C>>>8^C&255^99,t[y]=C,n[C]=y;const x=g[y],E=g[x],_=g[E];let T=g[C]*257^C*16843008;i[y]=T<<24|T>>>8,a[y]=T<<16|T>>>16,s[y]=T<<8|T>>>24,l[y]=T,T=_*16843009^E*65537^x*257^y*16843008,d[C]=T<<24|T>>>8,h[C]=T<<16|T>>>16,p[C]=T<<8|T>>>24,v[C]=T,y?(y=x^g[g[g[_^x]]],S^=g[g[S]]):y=S=1}}expandKey(t){const n=this.uint8ArrayToUint32Array_(t);let r=!0,i=0;for(;i{const l=ArrayBuffer.isView(t)?t:new Uint8Array(t);this.softwareDecrypt(l,n,r,i);const c=this.flush();c?a(c.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(t),n,r,i)}softwareDecrypt(t,n,r,i){const{currentIV:a,currentResult:s,remainderData:l}=this;if(i!==M0.cbc||n.byteLength!==16)return po.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=td(l,t),this.remainderData=null);const c=this.getValidChunk(t);if(!c.length)return null;a&&(r=a);let d=this.softwareDecrypter;d||(d=this.softwareDecrypter=new HAt),d.expandKey(n);const h=s;return this.currentResult=d.decrypt(c.buffer,0,r),this.currentIV=c.slice(-16).buffer,h||null}webCryptoDecrypt(t,n,r,i){if(this.key!==n||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,n,r,i));this.key=n,this.fastAesKey=new WAt(this.subtle,n,i)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new zAt(this.subtle,new Uint8Array(r),i).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(po.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${a.name}: ${a.message}`),this.onWebCryptoError(t,n,r,i)))}onWebCryptoError(t,n,r,i){const a=this.enableSoftwareAES;if(a){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,n,r,i);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(a?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(t){let n=t;const r=t.length-t.length%KAt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(po.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const vue=Math.pow(2,17);class qAt{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,n){const r=t.url;if(!r)return Promise.reject(new vh({type:ur.NETWORK_ERROR,details:zt.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,a=i.fLoader,s=i.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap)if(t.tagList.some(y=>y[0]==="GAP")){c(gue(t));return}else t.gap=!1;const d=this.loader=a?new a(i):new s(i),h=mue(t);t.loader=d;const p=hue(i.fragLoadPolicy.default),v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:vue};t.stats=d.stats;const g={onSuccess:(y,S,k,C)=>{this.resetLoader(t,d);let x=y.data;k.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(x.slice(0,16)),x=x.slice(16)),l({frag:t,part:null,payload:x,networkDetails:C})},onError:(y,S,k,C)=>{this.resetLoader(t,d),c(new vh({type:ur.NETWORK_ERROR,details:zt.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:fo({url:r,data:void 0},y),error:new Error(`HTTP Error ${y.code} ${y.text}`),networkDetails:k,stats:C}))},onAbort:(y,S,k)=>{this.resetLoader(t,d),c(new vh({type:ur.NETWORK_ERROR,details:zt.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:k,stats:y}))},onTimeout:(y,S,k)=>{this.resetLoader(t,d),c(new vh({type:ur.NETWORK_ERROR,details:zt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${v.timeout}ms`),networkDetails:k,stats:y}))}};n&&(g.onProgress=(y,S,k,C)=>n({frag:t,part:null,payload:k,networkDetails:C})),d.load(h,v,g)})}loadPart(t,n,r){this.abort();const i=this.config,a=i.fLoader,s=i.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap||n.gap){c(gue(t,n));return}const d=this.loader=a?new a(i):new s(i),h=mue(t,n);t.loader=d;const p=hue(i.fragLoadPolicy.default),v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:vue};n.stats=d.stats,d.load(h,v,{onSuccess:(g,y,S,k)=>{this.resetLoader(t,d),this.updateStatsFromPart(t,n);const C={frag:t,part:n,payload:g.data,networkDetails:k};r(C),l(C)},onError:(g,y,S,k)=>{this.resetLoader(t,d),c(new vh({type:ur.NETWORK_ERROR,details:zt.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:fo({url:h.url,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:S,stats:k}))},onAbort:(g,y,S)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,d),c(new vh({type:ur.NETWORK_ERROR,details:zt.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:S,stats:g}))},onTimeout:(g,y,S)=>{this.resetLoader(t,d),c(new vh({type:ur.NETWORK_ERROR,details:zt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${v.timeout}ms`),networkDetails:S,stats:g}))}})})}updateStatsFromPart(t,n){const r=t.stats,i=n.stats,a=i.total;if(r.loaded+=i.loaded,a){const c=Math.round(t.duration/n.duration),d=Math.min(Math.round(r.loaded/a),c),p=(c-d)*Math.round(r.loaded/d);r.total=r.loaded+p}else r.total=Math.max(r.loaded,r.total);const s=r.loading,l=i.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(t,n){t.loader=null,this.loader===n&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),n.destroy()}}function mue(e,t=null){const n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(Bn(i)&&Bn(a)){var s;let l=i,c=a;if(e.sn==="initSegment"&&YAt((s=e.decryptdata)==null?void 0:s.method)){const d=a-i;d%16&&(c=a+(16-d%16)),i!==0&&(r.resetIV=!0,l=i-16)}r.rangeStart=l,r.rangeEnd=c}return r}function gue(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:ur.MEDIA_ERROR,details:zt.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new vh(r)}function YAt(e){return e==="AES-128"||e==="AES-256"}class vh extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class v2e extends od{constructor(t,n){super(t,n),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class FG{constructor(t,n,r,i=0,a=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=CC(),this.buffering={audio:CC(),video:CC(),audiovideo:CC()},this.level=t,this.sn=n,this.id=r,this.size=i,this.part=a,this.partial=s}}function CC(){return{start:0,executeStart:0,executeEnd:0,end:0}}const yue={length:0,start:()=>0,end:()=>0};class jr{static isBuffered(t,n){if(t){const r=jr.getBuffered(t);for(let i=r.length;i--;)if(n>=r.start(i)&&n<=r.end(i))return!0}return!1}static bufferedRanges(t){if(t){const n=jr.getBuffered(t);return jr.timeRangesToArray(n)}return[]}static timeRangesToArray(t){const n=[];for(let r=0;r1&&t.sort((h,p)=>h.start-p.start||p.end-h.end);let i=-1,a=[];if(r)for(let h=0;h=t[h].start&&n<=t[h].end&&(i=h);const p=a.length;if(p){const v=a[p-1].end;t[h].start-vv&&(a[p-1].end=t[h].end):a.push(t[h])}else a.push(t[h])}else a=t;let s=0,l,c=n,d=n;for(let h=0;h=p&&n<=v&&(i=h),n+r>=p&&n{const i=r.substring(2,r.length-1),a=n?.[i];return a===void 0?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),r):a})}return t}function _ue(e,t,n){let r=e.variableList;r||(e.variableList=r={});let i,a;if("QUERYPARAM"in t){i=t.QUERYPARAM;try{const s=new self.URL(n).searchParams;if(s.has(i))a=s.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`)}catch(s){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else i=t.NAME,a=t.VALUE;i in r?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):r[i]=a||""}function XAt(e,t,n){const r=t.IMPORT;if(n&&r in n){let i=e.variableList;i||(e.variableList=i={}),i[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const ZAt=/^(\d+)x(\d+)$/,Sue=/(.+?)=(".*?"|.*?)(?:,|$)/g;class ss{constructor(t,n){typeof t=="string"&&(t=ss.parseAttrList(t,n)),bo(this,t)}get clientAttrs(){return Object.keys(this).filter(t=>t.substring(0,2)==="X-")}decimalInteger(t){const n=parseInt(this[t],10);return n>Number.MAX_SAFE_INTEGER?1/0:n}hexadecimalInteger(t){if(this[t]){let n=(this[t]||"0x").slice(2);n=(n.length&1?"0":"")+n;const r=new Uint8Array(n.length/2);for(let i=0;iNumber.MAX_SAFE_INTEGER?1/0:n}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,n){const r=this[t];return r?parseFloat(r):n}enumeratedString(t){return this[t]}enumeratedStringList(t,n){const r=this[t];return(r?r.split(/[ ,]+/):[]).reduce((i,a)=>(i[a.toLowerCase()]=!0,i),n)}bool(t){return this[t]==="YES"}decimalResolution(t){const n=ZAt.exec(this[t]);if(n!==null)return{width:parseInt(n[1],10),height:parseInt(n[2],10)}}static parseAttrList(t,n){let r;const i={};for(Sue.lastIndex=0;(r=Sue.exec(t))!==null;){const s=r[1].trim();let l=r[2];const c=l.indexOf('"')===0&&l.lastIndexOf('"')===l.length-1;let d=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":d=!0}if(n&&(c||d))l=Kz(n,l);else if(!d&&!c)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":po.warn(`${t}: attribute ${s} is missing quotes`)}i[s]=l}return i}}const JAt="com.apple.hls.interstitial";function QAt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function eIt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class g2e{constructor(t,n,r=0){var i;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=n?.tagAnchor||null,this.tagOrder=(i=n?.tagOrder)!=null?i:r,n){const a=n.attr;for(const s in a)if(Object.prototype.hasOwnProperty.call(t,s)&&t[s]!==a[s]){po.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=bo(new ss({}),a,t)}if(this.attr=t,n?(this._startDate=n._startDate,this._cue=n._cue,this._endDate=n._endDate,this._dateAtEnd=n._dateAtEnd):this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const a=n?.endDate||new Date(this.attr["END-DATE"]);Bn(a.getTime())&&(this._endDate=a)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const t=this._cue;return t===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):t}get startTime(){const{tagAnchor:t}=this;return t===null||t.programDateTime===null?(po.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${t}`),NaN):t.start+(this.startDate.getTime()-t.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const t=this._endDate||this._dateAtEnd;if(t)return t;const n=this.duration;return n!==null?this._dateAtEnd=new Date(this._startDate.getTime()+n*1e3):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(Bn(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===JAt}get isValid(){return!!this.id&&!this._badValueForSameId&&Bn(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const tIt=10;class nIt{constructor(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t){this.advanced=!0,this.updated=!0;return}const n=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!n||!this.live,this.advanced=this.endSN>t.endSN||n>0||n===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1}hasKey(t){return this.encryptedFragments.some(n=>{let r=n.decryptdata;return r||(n.setKeyFormat(t.keyFormat),r=n.decryptdata),!!r&&t.matches(r)})}get hasProgramDateTime(){return this.fragments.length?Bn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||tIt}get drift(){const t=this.driftEndTime-this.driftStartTime;return t>0?(this.driftEnd-this.driftStart)*1e3/t:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const t=this.partList;if(t){const n=this.lastPartIndex;if(n!==-1){for(let r=t.length;r--;)if(t[r].index>n)return t[r].index;return n}}return 0}get lastPartSn(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const t=this.partEnd-this.fragmentStart;return this.age>Math.max(t,this.totalduration)+this.levelTargetDuration}return!1}}function VT(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function kue(e,t){return!e&&!t?!0:!e||!t?!1:VT(e,t)}function Sy(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function jG(e){switch(e){case"AES-128":case"AES-256":return M0.cbc;case"AES-256-CTR":return M0.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function VG(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function qz(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function rIt(e){const t=qz(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function y2e(e){const t=function(r,i,a){const s=r[i];r[i]=r[a],r[a]=s};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function b2e(e){const t=e.split(":");let n=null;if(t[0]==="data"&&t.length===2){const r=t[1].split(";"),i=r[r.length-1].split(",");if(i.length===2){const a=i[0]==="base64",s=i[1];a?(r.splice(-1,1),n=VG(s)):n=rIt(s)}}return n}const zT=typeof self<"u"?self:void 0;var us={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Wa={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function o8(e){switch(e){case Wa.FAIRPLAY:return us.FAIRPLAY;case Wa.PLAYREADY:return us.PLAYREADY;case Wa.WIDEVINE:return us.WIDEVINE;case Wa.CLEARKEY:return us.CLEARKEY}}function jF(e){switch(e){case us.FAIRPLAY:return Wa.FAIRPLAY;case us.PLAYREADY:return Wa.PLAYREADY;case us.WIDEVINE:return Wa.WIDEVINE;case us.CLEARKEY:return Wa.CLEARKEY}}function z4(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[us.FAIRPLAY,us.WIDEVINE,us.PLAYREADY,us.CLEARKEY].filter(i=>!!t[i]):[];return!r[us.WIDEVINE]&&n&&r.push(us.WIDEVINE),r}const _2e=(function(e){return zT!=null&&(e=zT.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function iIt(e,t,n,r){let i;switch(e){case us.FAIRPLAY:i=["cenc","sinf"];break;case us.WIDEVINE:case us.PLAYREADY:i=["cenc"];break;case us.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return oIt(i,t,n,r)}function oIt(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map(a=>({contentType:`audio/mp4; codecs=${a}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(a=>({contentType:`video/mp4; codecs=${a}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function sIt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function S2e(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),r=n.substring(n.indexOf("<"),n.length),s=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(s){const l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const c=VG(l).subarray(0,16);return y2e(c),c}}return null}let wC={};class Cm{static clearKeyUriToKeyIdMap(){wC={}}static setKeyIdForUri(t,n){wC[t]=n}constructor(t,n,r,i=[1],a=null,s){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=n,this.keyFormat=r,this.keyFormatVersions=i,this.iv=a,this.encrypted=t?t!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!Sy(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(Y3e(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&VT(t.keyFormatVersions,this.keyFormatVersions)&&kue(t.iv,this.iv)&&kue(t.keyId,this.keyId)}isSupported(){if(this.method){if(Sy(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Wa.FAIRPLAY:case Wa.WIDEVINE:case Wa.PLAYREADY:case Wa.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(t,n){if(!this.encrypted||!this.uri)return null;if(Sy(this.method)){let a=this.iv;return a||(typeof t!="number"&&(po.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=lIt(t)),new Cm(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=wC[this.uri];if(a&&!VT(this.keyId,a)&&Cm.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=b2e(this.uri);if(r)switch(this.keyFormat){case Wa.WIDEVINE:if(this.pssh=r,!this.keyId){const a=dAt(r.buffer);if(a.length){var i;const s=a[0];this.keyId=(i=s.kids)!=null&&i.length?s.kids[0]:null}}this.keyId||(this.keyId=xue(n));break;case Wa.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=cAt(a,null,r),this.keyId=S2e(r);break}default:{let a=r.subarray(0,16);if(a.length!==16){const s=new Uint8Array(16);s.set(a,16-a.length),a=s}this.keyId=a;break}}if(!this.keyId||this.keyId.byteLength!==16){let a;a=aIt(n),a||(a=xue(n),a||(a=wC[this.uri])),a&&(this.keyId=a,Cm.setKeyIdForUri(this.uri,a))}return this}}function aIt(e){const t=e?.[Wa.WIDEVINE];return t?t.keyId:null}function xue(e){const t=e?.[Wa.PLAYREADY];if(t){const n=b2e(t.uri);if(n)return S2e(n)}return null}function lIt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const Cue=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,wue=/#EXT-X-MEDIA:(.*)/g,uIt=/^#EXT(?:INF|-X-TARGETDURATION):/m,VF=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),cIt=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class mf{static findGroup(t,n){for(let r=0;r0&&a.length({id:d.attrs.AUDIO,audioCodec:d.audioCodec})),SUBTITLES:s.map(d=>({id:d.attrs.SUBTITLES,textCodec:d.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(wue.lastIndex=0;(i=wue.exec(t))!==null;){const d=new ss(i[1],r),h=d.TYPE;if(h){const p=l[h],v=a[h]||[];a[h]=v;const g=d.LANGUAGE,y=d["ASSOC-LANGUAGE"],S=d.CHANNELS,k=d.CHARACTERISTICS,C=d["INSTREAM-ID"],x={attrs:d,bitrate:0,id:c++,groupId:d["GROUP-ID"]||"",name:d.NAME||g||"",type:h,default:d.bool("DEFAULT"),autoselect:d.bool("AUTOSELECT"),forced:d.bool("FORCED"),lang:g,url:d.URI?mf.resolve(d.URI,n):""};if(y&&(x.assocLang=y),S&&(x.channels=S),k&&(x.characteristics=k),C&&(x.instreamId=C),p!=null&&p.length){const E=mf.findGroup(p,x.groupId)||p[0];Iue(x,E,"audioCodec"),Iue(x,E,"textCodec")}v.push(x)}}return a}static parseLevelPlaylist(t,n,r,i,a,s){var l;const c={url:n},d=new nIt(n),h=d.fragments,p=[];let v=null,g=0,y=0,S=0,k=0,C=0,x=null,E=new BF(i,c),_,T,D,P=-1,M=!1,O=null,L;if(VF.lastIndex=0,d.m3u8=t,d.hasVariableRefs=bue(t),((l=VF.exec(t))==null?void 0:l[0])!=="#EXTM3U")return d.playlistParsingError=new Error("Missing format identifier #EXTM3U"),d;for(;(_=VF.exec(t))!==null;){M&&(M=!1,E=new BF(i,c),E.playlistOffset=S,E.setStart(S),E.sn=g,E.cc=k,C&&(E.bitrate=C),E.level=r,v&&(E.initSegment=v,v.rawProgramDateTime&&(E.rawProgramDateTime=v.rawProgramDateTime,v.rawProgramDateTime=null),O&&(E.setByteRange(O),O=null)));const U=_[1];if(U){E.duration=parseFloat(U);const K=(" "+_[2]).slice(1);E.title=K||null,E.tagList.push(K?["INF",U,K]:["INF",U])}else if(_[3]){if(Bn(E.duration)){E.playlistOffset=S,E.setStart(S),D&&Due(E,D,d),E.sn=g,E.level=r,E.cc=k,h.push(E);const K=(" "+_[3]).slice(1);E.relurl=Kz(d,K),Yz(E,x,p),x=E,S+=E.duration,g++,y=0,M=!0}}else{if(_=_[0].match(cIt),!_){po.warn("No matches on slow regex match for level playlist!");continue}for(T=1;T<_.length&&_[T]===void 0;T++);const K=(" "+_[T]).slice(1),Y=(" "+_[T+1]).slice(1),ie=_[T+2]?(" "+_[T+2]).slice(1):null;switch(K){case"BYTERANGE":x?E.setByteRange(Y,x):E.setByteRange(Y);break;case"PROGRAM-DATE-TIME":E.rawProgramDateTime=Y,E.tagList.push(["PROGRAM-DATE-TIME",Y]),P===-1&&(P=h.length);break;case"PLAYLIST-TYPE":d.type&&uh(d,K,_),d.type=Y.toUpperCase();break;case"MEDIA-SEQUENCE":d.startSN!==0?uh(d,K,_):h.length>0&&Pue(d,K,_),g=d.startSN=parseInt(Y);break;case"SKIP":{d.skippedSegments&&uh(d,K,_);const te=new ss(Y,d),W=te.decimalInteger("SKIPPED-SEGMENTS");if(Bn(W)){d.skippedSegments+=W;for(let Q=W;Q--;)h.push(null);g+=W}const q=te.enumeratedString("RECENTLY-REMOVED-DATERANGES");q&&(d.recentlyRemovedDateranges=(d.recentlyRemovedDateranges||[]).concat(q.split(" ")));break}case"TARGETDURATION":d.targetduration!==0&&uh(d,K,_),d.targetduration=Math.max(parseInt(Y),1);break;case"VERSION":d.version!==null&&uh(d,K,_),d.version=parseInt(Y);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":d.live||uh(d,K,_),d.live=!1;break;case"#":(Y||ie)&&E.tagList.push(ie?[Y,ie]:[Y]);break;case"DISCONTINUITY":k++,E.tagList.push(["DIS"]);break;case"GAP":E.gap=!0,E.tagList.push([K]);break;case"BITRATE":E.tagList.push([K,Y]),C=parseInt(Y)*1e3,Bn(C)?E.bitrate=C:C=0;break;case"DATERANGE":{const te=new ss(Y,d),W=new g2e(te,d.dateRanges[te.ID],d.dateRangeTagCount);d.dateRangeTagCount++,W.isValid||d.skippedSegments?d.dateRanges[W.id]=W:po.warn(`Ignoring invalid DATERANGE tag: "${Y}"`),E.tagList.push(["EXT-X-DATERANGE",Y]);break}case"DEFINE":{{const te=new ss(Y,d);"IMPORT"in te?XAt(d,te,s):_ue(d,te,n)}break}case"DISCONTINUITY-SEQUENCE":d.startCC!==0?uh(d,K,_):h.length>0&&Pue(d,K,_),d.startCC=k=parseInt(Y);break;case"KEY":{const te=Eue(Y,n,d);if(te.isSupported()){if(te.method==="NONE"){D=void 0;break}D||(D={});const W=D[te.keyFormat];W!=null&&W.matches(te)||(W&&(D=bo({},D)),D[te.keyFormat]=te)}else po.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${Y}"`);break}case"START":d.startTimeOffset=Tue(Y);break;case"MAP":{const te=new ss(Y,d);if(E.duration){const W=new BF(i,c);Lue(W,te,r,D),v=W,E.initSegment=v,v.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=v.rawProgramDateTime)}else{const W=E.byteRangeEndOffset;if(W){const q=E.byteRangeStartOffset;O=`${W-q}@${q}`}else O=null;Lue(E,te,r,D),v=E,M=!0}v.cc=k;break}case"SERVER-CONTROL":{L&&uh(d,K,_),L=new ss(Y),d.canBlockReload=L.bool("CAN-BLOCK-RELOAD"),d.canSkipUntil=L.optionalFloat("CAN-SKIP-UNTIL",0),d.canSkipDateRanges=d.canSkipUntil>0&&L.bool("CAN-SKIP-DATERANGES"),d.partHoldBack=L.optionalFloat("PART-HOLD-BACK",0),d.holdBack=L.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{d.partTarget&&uh(d,K,_);const te=new ss(Y);d.partTarget=te.decimalFloatingPoint("PART-TARGET");break}case"PART":{let te=d.partList;te||(te=d.partList=[]);const W=y>0?te[te.length-1]:void 0,q=y++,Q=new ss(Y,d),se=new X5t(Q,E,c,q,W);te.push(se),E.duration+=se.duration;break}case"PRELOAD-HINT":{const te=new ss(Y,d);d.preloadHint=te;break}case"RENDITION-REPORT":{const te=new ss(Y,d);d.renditionReports=d.renditionReports||[],d.renditionReports.push(te);break}default:po.warn(`line parsed but not handled: ${_}`);break}}}x&&!x.relurl?(h.pop(),S-=x.duration,d.partList&&(d.fragmentHint=x)):d.partList&&(Yz(E,x,p),E.cc=k,d.fragmentHint=E,D&&Due(E,D,d)),d.targetduration||(d.playlistParsingError=new Error("Missing Target Duration"));const B=h.length,j=h[0],H=h[B-1];if(S+=d.skippedSegments*d.targetduration,S>0&&B&&H){d.averagetargetduration=S/B;const U=H.sn;d.endSN=U!=="initSegment"?U:0,d.live||(H.endList=!0),P>0&&(fIt(h,P),j&&p.unshift(j))}return d.fragmentHint&&(S+=d.fragmentHint.duration),d.totalduration=S,p.length&&d.dateRangeTagCount&&j&&k2e(p,d),d.endCC=k,d}}function k2e(e,t){let n=e.length;if(!n)if(t.hasProgramDateTime){const l=t.fragments[t.fragments.length-1];e.push(l),n++}else return;const r=e[n-1],i=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let l=a.length;l--;){const c=t.dateRanges[a[l]],d=c.startDate.getTime();c.tagAnchor=r.ref;for(let h=n;h--;){var s;if(((s=e[h])==null?void 0:s.sn)=l||r===0){var s;const c=(((s=n[r+1])==null?void 0:s.start)||i)-a.start;if(t<=l+c*1e3){const d=n[r].sn-e.startSN;if(d<0)return-1;const h=e.fragments;if(h.length>n.length){const v=(n[r+1]||h[h.length-1]).sn-e.startSN;for(let g=v;g>d;g--){const y=h[g].programDateTime;if(t>=y&&tr);["video","audio","text"].forEach(r=>{const i=n.filter(a=>$G(a,r));i.length&&(t[`${r}Codec`]=i.map(a=>a.split("/")[0]).join(","),n=n.filter(a=>i.indexOf(a)===-1))}),t.unknownCodecs=n}function Iue(e,t,n){const r=t[n];r&&(e[n]=r)}function fIt(e,t){let n=e[t];for(let r=t;r--;){const i=e[r];if(!i)return;i.programDateTime=n.programDateTime-i.duration*1e3,n=i}}function Yz(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Lue(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function Due(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;(!r.length||r[r.length-1].levelkeys!==t)&&Object.keys(t).some(i=>t[i].isCommonEncryption)&&r.push(e)}function uh(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function Pue(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function zF(e,t){const n=t.startPTS;if(Bn(n)){let r=0,i;t.sn>e.sn?(r=n-e.start,i=e):(r=e.start-n,i=t),i.duration!==r&&i.setDuration(r)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration):t.setStart(Math.max(e.start-t.duration,0))}function x2e(e,t,n,r,i,a,s){r-n<=0&&(s.warn("Fragment should have a positive duration",t),r=n+t.duration,a=i+t.duration);let c=n,d=r;const h=t.startPTS,p=t.endPTS;if(Bn(h)){const C=Math.abs(h-n);e&&C>e.totalduration?s.warn(`media timestamps and playlist times differ by ${C}s for level ${t.level} ${e.url}`):Bn(t.deltaPTS)?t.deltaPTS=Math.max(C,t.deltaPTS):t.deltaPTS=C,c=Math.max(n,h),n=Math.min(n,h),i=t.startDTS!==void 0?Math.min(i,t.startDTS):i,d=Math.min(r,p),r=Math.max(r,p),a=t.endDTS!==void 0?Math.max(a,t.endDTS):a}const v=n-t.start;t.start!==0&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=c,t.startDTS=i,t.endPTS=r,t.minEndPTS=d,t.endDTS=a;const g=t.sn;if(!e||ge.endSN)return 0;let y;const S=g-e.startSN,k=e.fragments;for(k[S]=t,y=S;y>0;y--)zF(k[y],k[y-1]);for(y=S;y=0;h--){const p=i[h].initSegment;if(p){r=p;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let a;mIt(e,t,(h,p,v,g)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const y=h.cc-p.cc;for(let S=v;S{var p;h&&(!h.initSegment||h.initSegment.relurl===((p=r)==null?void 0:p.relurl))&&(h.initSegment=r)}),t.skippedSegments){if(t.deltaUpdateFailed=s.some(h=>!h),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let h=t.skippedSegments;h--;)s.shift();t.startSN=s[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=pIt(e.dateRanges,t,n));const h=e.fragments.filter(p=>p.rawProgramDateTime);if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let p=1;p{p.elementaryStreams=h.elementaryStreams,p.stats=h.stats}),a?x2e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):C2e(e,t),s.length&&(t.totalduration=t.edge-s[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const d=t.advancedDateTime;if(t.advanced&&d){const h=t.edge;t.driftStart||(t.driftStartTime=d,t.driftStart=h),t.driftEndTime=d,t.driftEnd=h}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;t.requestScheduled===-1&&(t.requestScheduled=e.requestScheduled)}function pIt(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:i}=t,a=bo({},e);i&&i.forEach(c=>{delete a[c]});const l=Object.keys(a).length;return l?(Object.keys(r).forEach(c=>{const d=a[c],h=new g2e(r[c].attr,d);h.isValid?(a[c]=h,d||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Ao(r[c].attr)}"`)}),a):r}function vIt(e,t,n){if(e&&t){let r=0;for(let i=0,a=e.length;i<=a;i++){const s=e[i],l=t[i+r];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?n(s,l):r--}}}function mIt(e,t,n){const r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let d=i;d<=a;d++){const h=c[s+d];let p=l[d];if(r&&!p&&h&&(p=t.fragments[d]=h),h&&p){n(h,p,d,l);const v=h.relurl,g=p.relurl;if(v&&gIt(v,g)){t.playlistParsingError=Rue(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=Rue(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function Rue(e,t,n,r,i){return new Error(`${e} ${i.url} + Time to underbuffer: ${te.toFixed(3)} s`),i.abortRequests(),this.fragCurrent=this.partCurrent=null,Y>g){let Se=this.findBestLevel(this.hls.levels[g].bitrate,g,Y,0,te,1,1);Se===-1&&(Se=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Se,this.resetEstimator(this.hls.levels[Se].bitrate)}}};k||W>ee*2?q():this.timer=self.setInterval(q,ee*1e3),s.trigger(Pe.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:a,stats:h})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(this.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new K5t(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.FRAG_LOADING,this.onFragLoading,this),t.on(Pe.FRAG_LOADED,this.onFragLoaded,this),t.on(Pe.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Pe.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.FRAG_LOADING,this.onFragLoading,this),t.off(Pe.FRAG_LOADED,this.onFragLoaded,this),t.off(Pe.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Pe.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Pe.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,n){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,n){const r=n.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var i;this.fragCurrent=r,this.partCurrent=(i=n.part)!=null?i:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,n){this.clearTimer()}onError(t,n){if(!n.fatal)switch(n.details){case zt.BUFFER_ADD_CODEC_ERROR:case zt.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case zt.FRAG_LOAD_TIMEOUT:{const r=n.frag,{fragCurrent:i,partCurrent:a}=this;if(r&&i&&r.sn===i.sn&&r.level===i.level){const s=performance.now(),l=a?a.stats:r.stats,c=s-l.loading.start,d=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&d>-1){const p=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(p,d),l.loaded)}else this.bwEstimator.sampleTTFB(c)}break}}}getTimeToLoadFrag(t,n,r,i){const a=t+r/n,s=i?t+this.lastLevelLoadSec:0;return a+s}onLevelLoaded(t,n){const r=this.hls.config,{loading:i}=n.stats,a=i.end-i.first;Bn(a)&&(this.lastLevelLoadSec=a/1e3),n.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(n.levelInfo)}onFragLoaded(t,{frag:n,part:r}){const i=r?r.stats:n.stats;if(n.type===Qn.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(n)){if(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const a=r?r.duration:n.duration,s=this.hls.levels[n.level],l=(s.loaded?s.loaded.bytes:0)+i.loaded,c=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:l,duration:c},s.realBitrate=Math.round(8*l/c)}if(n.bitrateTest){const a={stats:i,frag:n,part:r,id:n.type};this.onFragBuffered(Pe.FRAG_BUFFERED,a),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}onFragBuffered(t,n){const{frag:r,part:i}=n,a=i!=null&&i.stats.loaded?i.stats:r.stats;if(a.aborted||this.ignoreFragment(r))return;const s=a.parsing.end-a.loading.start-Math.min(a.loading.first-a.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,a.loaded),a.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==Qn.MAIN||t.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,a=this.findBestLevel(r,n,t,0,i,1,1);if(a>-1)return a;const s=this.hls.firstLevel,l=Math.min(Math.max(s,n),t);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(t!==-1&&(!r||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return t;const a=r&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(t!==-1){const s=this.hls.levels;if(s.length>Math.max(t,a)&&s[t].loadError<=s[a].loadError)return t}return this._nextAutoLevel=a,this.nextAutoLevelKey=this.getAutoLevelKey(),a}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:n,hls:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:i,config:a,minAutoLevel:s}=r,l=n?n.duration:t?t.duration:0,c=this.getBwEstimate(),d=this.getStarvationDelay();let h=a.abrBandWidthFactor,p=a.abrBandWidthUpFactor;if(d){const k=this.findBestLevel(c,s,i,d,0,h,p);if(k>=0)return this.rebufferNotice=-1,k}let v=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!d){const k=this.bitrateTestDelay;k&&(v=(l?Math.min(l,a.maxLoadingDelay):a.maxLoadingDelay)-k,this.info(`bitrate test took ${Math.round(1e3*k)}ms, set first fragment max fetchDuration to ${Math.round(1e3*v)} ms`),h=p=1)}const g=this.findBestLevel(c,s,i,d,v,h,p);if(this.rebufferNotice!==g&&(this.rebufferNotice=g,this.info(`${d?"rebuffering expected":"buffer is empty"}, optimal quality level ${g}`)),g>-1)return g;const y=r.levels[s],S=r.loadLevelObj;return S&&y?.bitrate=n;K--){var W;const oe=y[K],ae=K>p;if(!oe)continue;if(w.useMediaCapabilities&&!oe.supportedResult&&!oe.supportedPromise){const Se=navigator.mediaCapabilities;typeof Se?.decodingInfo=="function"&&TAt(oe,L,D,P,t,M)?(oe.supportedPromise=l2e(oe,L,Se,this.supportedCache),oe.supportedPromise.then(Fe=>{if(!this.hls)return;oe.supportedResult=Fe;const ve=this.hls.levels,Re=ve.indexOf(oe);Fe.error?this.warn(`MediaCapabilities decodingInfo error: "${Fe.error}" for level ${Re} ${Ao(Fe)}`):Fe.supported?Fe.decodingInfoResults.some(Ge=>Ge.smooth===!1||Ge.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${Re} not smooth or powerEfficient: ${Ao(Fe)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Re} ${Ao(Fe)}`),Re>-1&&ve.length>1&&(this.log(`Removing unsupported level ${Re}`),this.hls.removeLevel(Re),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(Fe=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${Fe}`)})):oe.supportedResult=s2e}if((T&&oe.codecSet!==T||D&&oe.videoRange!==D||ae&&P>oe.frameRate||!ae&&P>0&&PSe.smooth===!1))&&(!_||K!==B)){U.push(K);continue}const ee=oe.details,Y=(g?ee?.partTarget:ee?.averagetargetduration)||j;let Q;ae?Q=l*t:Q=s*t;const ie=j&&i>=j*2&&a===0?oe.averageBitrate:oe.maxBitrate,q=this.getTimeToLoadFrag(H,Q,ie*Y,ee===void 0);if(Q>=ie&&(K===h||oe.loadError===0&&oe.fragmentError===0)&&(q<=H||!Bn(q)||E&&!this.bitrateTestDelay||q${K} adjustedbw(${Math.round(Q)})-bitrate=${Math.round(Q-ie)} ttfb:${H.toFixed(1)} avgDuration:${Y.toFixed(1)} maxFetchDuration:${d.toFixed(1)} fetchDuration:${q.toFixed(1)} firstSelection:${_} codecSet:${oe.codecSet} videoRange:${oe.videoRange} hls.loadLevel:${k}`)),_&&(this.firstSelection=K),K}}return-1}set nextAutoLevel(t){const n=this.deriveNextAutoLevel(t);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}deriveNextAutoLevel(t){const{maxAutoLevel:n,minAutoLevel:r}=this.hls;return Math.min(Math.max(t,r),n)}}const d2e={search:function(e,t){let n=0,r=e.length-1,i=null,a=null;for(;n<=r;){i=(n+r)/2|0,a=e[i];const s=t(a);if(s>0)n=i+1;else if(s<0)r=i-1;else return a}return null}};function UAt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!Bn(t))return null;const r=e[0].programDateTime;if(t<(r||0))return null;const i=e[e.length-1].endProgramDateTime;if(t>=(i||0))return null;for(let a=0;a0&&l<15e-7&&(n+=15e-7),a&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else n===0&&t[0].start===0&&(a=t[0]);if(a&&((!e||e.level===a.level)&&due(n,r,a)===0||HAt(a,e,Math.min(i,r))))return a;const s=d2e.search(t,due.bind(null,n,r));return s&&(s!==e||!a)?s:a}function HAt(e,t,n){if(t&&t.start===0&&t.level0){const r=t.tagList.reduce((i,a)=>(a[0]==="INF"&&(i+=parseFloat(a[1])),i),n);return e.start<=r}return!1}function due(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function WAt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function f2e(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=e.fragments;const{fragmentHint:i}=e;i&&(r=r.concat(i));let a;return d2e.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function jT(e){switch(e.details){case zt.FRAG_LOAD_TIMEOUT:case zt.KEY_LOAD_TIMEOUT:case zt.LEVEL_LOAD_TIMEOUT:case zt.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function h2e(e){return e.details.startsWith("key")}function p2e(e){return h2e(e)&&!!e.frag&&!e.frag.decryptdata}function fue(e,t){const n=jT(t);return e.default[`${n?"timeout":"error"}Retry`]}function BG(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function hue(e){return fo(fo({},e),{errorRetry:null,timeoutRetry:null})}function VT(e,t,n,r){if(!e)return!1;const i=r?.code,a=t499)}function qz(e){return e===0&&navigator.onLine===!1}var ja={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},nc={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class KAt extends od{constructor(t){super("error-controller",t.logger),this.hls=void 0,this.playlistError=0,this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(Pe.ERROR,this.onError,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Pe.ERROR,this.onError,this),t.off(Pe.ERROR,this.onErrorOut,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===Qn.MAIN?t.level:this.getVariantIndex()}getVariantIndex(){var t;const n=this.hls,r=n.currentLevel;return(t=n.loadLevelObj)!=null&&t.details||r===-1?n.loadLevel:r}variantHasKey(t,n){if(t){var r;if((r=t.details)!=null&&r.hasKey(n))return!0;const i=t.audioGroups;if(i)return this.hls.allAudioTracks.filter(s=>i.indexOf(s.groupId)>=0).some(s=>{var l;return(l=s.details)==null?void 0:l.hasKey(n)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(t,n){var r;if(n.fatal)return;const i=this.hls,a=n.context;switch(n.details){case zt.FRAG_LOAD_ERROR:case zt.FRAG_LOAD_TIMEOUT:case zt.KEY_LOAD_ERROR:case zt.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case zt.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=Sy();return}case zt.FRAG_GAP:case zt.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=ja.SendAlternateToPenaltyBox;return}case zt.LEVEL_EMPTY_ERROR:case zt.LEVEL_PARSING_ERROR:{var s;const c=n.parent===Qn.MAIN?n.level:i.loadLevel;n.details===zt.LEVEL_EMPTY_ERROR&&((s=n.context)!=null&&(s=s.levelDetails)!=null&&s.live)?n.errorAction=this.getPlaylistRetryOrSwitchAction(n,c):(n.levelRetry=!1,n.errorAction=this.getLevelSwitchAction(n,c))}return;case zt.LEVEL_LOAD_ERROR:case zt.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case zt.AUDIO_TRACK_LOAD_ERROR:case zt.AUDIO_TRACK_LOAD_TIMEOUT:case zt.SUBTITLE_LOAD_ERROR:case zt.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=i.loadLevelObj;if(c&&(a.type===ki.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===ki.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,i.loadLevel),n.errorAction.action=ja.SendAlternateToPenaltyBox,n.errorAction.flags=nc.MoveAllAlternatesMatchingHost;return}}return;case zt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:ja.SendAlternateToPenaltyBox,flags:nc.MoveAllAlternatesMatchingHDCP};return;case zt.KEY_SYSTEM_SESSION_UPDATE_FAILED:case zt.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case zt.KEY_SYSTEM_NO_SESSION:n.errorAction={action:ja.SendAlternateToPenaltyBox,flags:nc.MoveAllAlternatesMatchingKey};return;case zt.BUFFER_ADD_CODEC_ERROR:case zt.REMUX_ALLOC_ERROR:case zt.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:i.loadLevel)}return;case zt.INTERNAL_EXCEPTION:case zt.BUFFER_APPENDING_ERROR:case zt.BUFFER_FULL_ERROR:case zt.LEVEL_SWITCH_ERROR:case zt.BUFFER_STALLED_ERROR:case zt.BUFFER_SEEK_OVER_HOLE:case zt.BUFFER_NUDGE_ON_STALL:n.errorAction=Sy();return}n.type===cr.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=Sy())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,i=fue(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(VT(i,a,jT(t),t.response))return{action:ja.RetryRequest,flags:nc.None,retryConfig:i,retryCount:a};const l=this.getLevelSwitchAction(t,n);return i&&(l.retryConfig=i,l.retryCount=a),l}getFragRetryOrSwitchAction(t){const n=this.hls,r=this.getVariantLevelIndex(t.frag),i=n.levels[r],{fragLoadPolicy:a,keyLoadPolicy:s}=n.config,l=fue(h2e(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(i&&(t.details!==zt.FRAG_GAP&&i.fragmentError++,!p2e(t)&&VT(l,c,jT(t),t.response)))return{action:ja.RetryRequest,flags:nc.None,retryConfig:l,retryCount:c};const d=this.getLevelSwitchAction(t,r);return l&&(d.retryConfig=l,d.retryCount=c),d}getLevelSwitchAction(t,n){const r=this.hls;n==null&&(n=r.loadLevel);const i=this.hls.levels[n];if(i){var a,s;const d=t.details;i.loadError++,d===zt.BUFFER_APPEND_ERROR&&i.fragmentError++;let h=-1;const{levels:p,loadLevel:v,minAutoLevel:g,maxAutoLevel:y}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const S=(a=t.frag)==null?void 0:a.type,w=(S===Qn.AUDIO&&d===zt.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(d===zt.BUFFER_ADD_CODEC_ERROR||d===zt.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:D})=>i.audioCodec!==D),E=t.sourceBufferName==="video"&&(d===zt.BUFFER_ADD_CODEC_ERROR||d===zt.BUFFER_APPEND_ERROR)&&p.some(({codecSet:D,audioCodec:P})=>i.codecSet!==D&&i.audioCodec===P),{type:_,groupId:T}=(s=t.context)!=null?s:{};for(let D=p.length;D--;){const P=(D+v)%p.length;if(P!==v&&P>=g&&P<=y&&p[P].loadError===0){var l,c;const M=p[P];if(d===zt.FRAG_GAP&&S===Qn.MAIN&&t.frag){const $=p[P].details;if($){const L=Hm(t.frag,$.fragments,t.frag.start);if(L!=null&&L.gap)continue}}else{if(_===ki.AUDIO_TRACK&&M.hasAudioGroup(T)||_===ki.SUBTITLE_TRACK&&M.hasSubtitleGroup(T))continue;if(S===Qn.AUDIO&&(l=i.audioGroups)!=null&&l.some($=>M.hasAudioGroup($))||S===Qn.SUBTITLE&&(c=i.subtitleGroups)!=null&&c.some($=>M.hasSubtitleGroup($))||w&&i.audioCodec===M.audioCodec||E&&i.codecSet===M.codecSet||!w&&i.codecSet!==M.codecSet)continue}h=P;break}}if(h>-1&&r.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:ja.SendAlternateToPenaltyBox,flags:nc.None,nextAutoLevel:h}}return{action:ja.SendAlternateToPenaltyBox,flags:nc.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case ja.DoNothing:break;case ja.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==zt.FRAG_GAP?n.fatal=!0:/MediaSource readyState: ended/.test(n.error.message)&&(this.warn(`MediaSource ended after "${n.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(n.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(t){const n=this.hls,r=t.errorAction;if(!r)return;const{flags:i}=r,a=r.nextAutoLevel;switch(i){case nc.None:this.switchLevel(t,a);break;case nc.MoveAllAlternatesMatchingHDCP:{const c=this.getVariantLevelIndex(t.frag),d=n.levels[c],h=d?.attrs["HDCP-LEVEL"];if(r.hdcpLevel=h,h==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(h){n.maxHdcpLevel=Kz[Kz.indexOf(h)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case nc.MoveAllAlternatesMatchingKey:{const c=t.decryptdata;if(c){const d=this.hls.levels,h=d.length;for(let v=h;v--;)if(this.variantHasKey(d[v],c)){var s,l;this.log(`Banned key found in level ${v} (${d[v].bitrate}bps) or audio group "${(s=d[v].audioGroups)==null?void 0:s.join(",")}" (${(l=t.frag)==null?void 0:l.type} fragment) ${Ul(c.keyId||[])}`),d[v].fragmentError++,d[v].loadError++,this.log(`Removing level ${v} with key error (${t.error})`),this.hls.removeLevel(v)}const p=t.frag;if(this.hls.levels.length{const c=this.fragments[l];if(!c||s>=c.body.sn)return;if(!c.buffered&&(!c.loaded||a)){c.body.type===r&&this.removeFragment(c.body);return}const d=c.range[t];if(d){if(d.time.length===0){this.removeFragment(c.body);return}d.time.some(h=>{const p=!this.isTimeBuffered(h.startPTS,h.endPTS,n);return p&&this.removeFragment(c.body),p})}})}detectPartialFragments(t){const n=this.timeRanges;if(!n||t.frag.sn==="initSegment")return;const r=t.frag,i=L1(r),a=this.fragments[i];if(!a||a.buffered&&r.gap)return;const s=!r.relurl;Object.keys(n).forEach(l=>{const c=r.elementaryStreams[l];if(!c)return;const d=n[l],h=s||c.partial===!0;a.range[l]=this.getBufferedTimes(r,t.part,h,d)}),a.loaded=null,Object.keys(a.range).length?(a.buffered=!0,(a.body.endList=r.endList||a.body.endList)&&(this.endListFragments[a.body.type]=a),xx(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=pue(r,i=>i.fragment.sn>=t))}fragBuffered(t,n){const r=L1(t);let i=this.fragments[r];!i&&n&&(i=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(t,n,r,i){const a={time:[],partial:r},s=t.start,l=t.end,c=t.minEndPTS||l,d=t.maxStartPTS||s;for(let h=0;h=p&&c<=v){a.time.push({startPTS:Math.max(s,i.start(h)),endPTS:Math.min(l,i.end(h))});break}else if(sp){const g=Math.max(s,i.start(h)),y=Math.min(l,i.end(h));y>g&&(a.partial=!0,a.time.push({startPTS:g,endPTS:y}))}else if(l<=p)break}return a}getPartialFragment(t){let n=null,r,i,a,s=0;const{bufferPadding:l,fragments:c}=this;return Object.keys(c).forEach(d=>{const h=c[d];h&&xx(h)&&(i=h.body.start-l,a=h.body.end+l,t>=i&&t<=a&&(r=Math.min(t-i,a-t),s<=r&&(n=h.body,s=r)))}),n}isEndListAppended(t){const n=this.endListFragments[t];return n!==void 0&&(n.buffered||xx(n))}getState(t){const n=L1(t),r=this.fragments[n];return r?r.buffered?xx(r)?da.PARTIAL:da.OK:da.APPENDING:da.NOT_LOADED}isTimeBuffered(t,n,r){let i,a;for(let s=0;s=i&&n<=a)return!0;if(n<=i)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(t,n){if(n.frag.sn==="initSegment"||n.frag.bitrateTest)return;const r=n.frag,i=n.part?null:n,a=L1(r);this.fragments[a]={body:r,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(t,n){const{frag:r,part:i,timeRanges:a,type:s}=n;if(r.sn==="initSegment")return;const l=r.type;if(i){let d=this.activePartLists[l];d||(this.activePartLists[l]=d=[]),d.push(i)}this.timeRanges=a;const c=a[s];this.detectEvictedFragments(s,c,l,i)}onFragBuffered(t,n){this.detectPartialFragments(n)}hasFragment(t){const n=L1(t);return!!this.fragments[n]}hasFragments(t){const{fragments:n}=this,r=Object.keys(n);if(!t)return r.length>0;for(let i=r.length;i--;){const a=n[r[i]];if(a?.body.type===t)return!0}return!1}hasParts(t){var n;return!!((n=this.activePartLists[t])!=null&&n.length)}removeFragmentsInRange(t,n,r,i,a){i&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const c=l.body;c.type!==r||i&&!c.gap||c.startt&&(l.buffered||a)&&this.removeFragment(c)})}removeFragment(t){const n=L1(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const i=t.sn;this.activePartLists[t.type]=pue(r,a=>a.fragment.sn!==i)}delete this.fragments[n],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){var t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(t=this.hls)==null||(t=t.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function xx(e){var t,n,r;return e.buffered&&!!(e.body.gap||(t=e.range.video)!=null&&t.partial||(n=e.range.audio)!=null&&n.partial||(r=e.range.audiovideo)!=null&&r.partial)}function L1(e){return`${e.type}_${e.level}_${e.sn}`}function pue(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var B0={cbc:0,ctr:1};class YAt{constructor(t,n,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=t,this.aesIV=n,this.aesMode=r}decrypt(t,n){switch(this.aesMode){case B0.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case B0.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},n,t);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function XAt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class ZAt{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const n=new DataView(t),r=new Uint32Array(4);for(let i=0;i<4;i++)r[i]=n.getUint32(i*4);return r}initTable(){const t=this.sBox,n=this.invSBox,r=this.subMix,i=r[0],a=r[1],s=r[2],l=r[3],c=this.invSubMix,d=c[0],h=c[1],p=c[2],v=c[3],g=new Uint32Array(256);let y=0,S=0,k=0;for(k=0;k<256;k++)k<128?g[k]=k<<1:g[k]=k<<1^283;for(k=0;k<256;k++){let w=S^S<<1^S<<2^S<<3^S<<4;w=w>>>8^w&255^99,t[y]=w,n[w]=y;const x=g[y],E=g[x],_=g[E];let T=g[w]*257^w*16843008;i[y]=T<<24|T>>>8,a[y]=T<<16|T>>>16,s[y]=T<<8|T>>>24,l[y]=T,T=_*16843009^E*65537^x*257^y*16843008,d[w]=T<<24|T>>>8,h[w]=T<<16|T>>>16,p[w]=T<<8|T>>>24,v[w]=T,y?(y=x^g[g[g[_^x]]],S^=g[g[S]]):y=S=1}}expandKey(t){const n=this.uint8ArrayToUint32Array_(t);let r=!0,i=0;for(;i{const l=ArrayBuffer.isView(t)?t:new Uint8Array(t);this.softwareDecrypt(l,n,r,i);const c=this.flush();c?a(c.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(t),n,r,i)}softwareDecrypt(t,n,r,i){const{currentIV:a,currentResult:s,remainderData:l}=this;if(i!==B0.cbc||n.byteLength!==16)return po.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=td(l,t),this.remainderData=null);const c=this.getValidChunk(t);if(!c.length)return null;a&&(r=a);let d=this.softwareDecrypter;d||(d=this.softwareDecrypter=new ZAt),d.expandKey(n);const h=s;return this.currentResult=d.decrypt(c.buffer,0,r),this.currentIV=c.slice(-16).buffer,h||null}webCryptoDecrypt(t,n,r,i){if(this.key!==n||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,n,r,i));this.key=n,this.fastAesKey=new JAt(this.subtle,n,i)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new YAt(this.subtle,new Uint8Array(r),i).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(po.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${a.name}: ${a.message}`),this.onWebCryptoError(t,n,r,i)))}onWebCryptoError(t,n,r,i){const a=this.enableSoftwareAES;if(a){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,n,r,i);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(a?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(t){let n=t;const r=t.length-t.length%eIt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(po.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const vue=Math.pow(2,17);class tIt{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,n){const r=t.url;if(!r)return Promise.reject(new gh({type:cr.NETWORK_ERROR,details:zt.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,a=i.fLoader,s=i.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap)if(t.tagList.some(y=>y[0]==="GAP")){c(gue(t));return}else t.gap=!1;const d=this.loader=a?new a(i):new s(i),h=mue(t);t.loader=d;const p=hue(i.fragLoadPolicy.default),v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:vue};t.stats=d.stats;const g={onSuccess:(y,S,k,w)=>{this.resetLoader(t,d);let x=y.data;k.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(x.slice(0,16)),x=x.slice(16)),l({frag:t,part:null,payload:x,networkDetails:w})},onError:(y,S,k,w)=>{this.resetLoader(t,d),c(new gh({type:cr.NETWORK_ERROR,details:zt.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:fo({url:r,data:void 0},y),error:new Error(`HTTP Error ${y.code} ${y.text}`),networkDetails:k,stats:w}))},onAbort:(y,S,k)=>{this.resetLoader(t,d),c(new gh({type:cr.NETWORK_ERROR,details:zt.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:k,stats:y}))},onTimeout:(y,S,k)=>{this.resetLoader(t,d),c(new gh({type:cr.NETWORK_ERROR,details:zt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${v.timeout}ms`),networkDetails:k,stats:y}))}};n&&(g.onProgress=(y,S,k,w)=>n({frag:t,part:null,payload:k,networkDetails:w})),d.load(h,v,g)})}loadPart(t,n,r){this.abort();const i=this.config,a=i.fLoader,s=i.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap||n.gap){c(gue(t,n));return}const d=this.loader=a?new a(i):new s(i),h=mue(t,n);t.loader=d;const p=hue(i.fragLoadPolicy.default),v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:vue};n.stats=d.stats,d.load(h,v,{onSuccess:(g,y,S,k)=>{this.resetLoader(t,d),this.updateStatsFromPart(t,n);const w={frag:t,part:n,payload:g.data,networkDetails:k};r(w),l(w)},onError:(g,y,S,k)=>{this.resetLoader(t,d),c(new gh({type:cr.NETWORK_ERROR,details:zt.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:fo({url:h.url,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:S,stats:k}))},onAbort:(g,y,S)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,d),c(new gh({type:cr.NETWORK_ERROR,details:zt.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:S,stats:g}))},onTimeout:(g,y,S)=>{this.resetLoader(t,d),c(new gh({type:cr.NETWORK_ERROR,details:zt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${v.timeout}ms`),networkDetails:S,stats:g}))}})})}updateStatsFromPart(t,n){const r=t.stats,i=n.stats,a=i.total;if(r.loaded+=i.loaded,a){const c=Math.round(t.duration/n.duration),d=Math.min(Math.round(r.loaded/a),c),p=(c-d)*Math.round(r.loaded/d);r.total=r.loaded+p}else r.total=Math.max(r.loaded,r.total);const s=r.loading,l=i.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(t,n){t.loader=null,this.loader===n&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),n.destroy()}}function mue(e,t=null){const n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(Bn(i)&&Bn(a)){var s;let l=i,c=a;if(e.sn==="initSegment"&&nIt((s=e.decryptdata)==null?void 0:s.method)){const d=a-i;d%16&&(c=a+(16-d%16)),i!==0&&(r.resetIV=!0,l=i-16)}r.rangeStart=l,r.rangeEnd=c}return r}function gue(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:cr.MEDIA_ERROR,details:zt.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new gh(r)}function nIt(e){return e==="AES-128"||e==="AES-256"}class gh extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class v2e extends od{constructor(t,n){super(t,n),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class FG{constructor(t,n,r,i=0,a=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=Cx(),this.buffering={audio:Cx(),video:Cx(),audiovideo:Cx()},this.level=t,this.sn=n,this.id=r,this.size=i,this.part=a,this.partial=s}}function Cx(){return{start:0,executeStart:0,executeEnd:0,end:0}}const yue={length:0,start:()=>0,end:()=>0};class Vr{static isBuffered(t,n){if(t){const r=Vr.getBuffered(t);for(let i=r.length;i--;)if(n>=r.start(i)&&n<=r.end(i))return!0}return!1}static bufferedRanges(t){if(t){const n=Vr.getBuffered(t);return Vr.timeRangesToArray(n)}return[]}static timeRangesToArray(t){const n=[];for(let r=0;r1&&t.sort((h,p)=>h.start-p.start||p.end-h.end);let i=-1,a=[];if(r)for(let h=0;h=t[h].start&&n<=t[h].end&&(i=h);const p=a.length;if(p){const v=a[p-1].end;t[h].start-vv&&(a[p-1].end=t[h].end):a.push(t[h])}else a.push(t[h])}else a=t;let s=0,l,c=n,d=n;for(let h=0;h=p&&n<=v&&(i=h),n+r>=p&&n{const i=r.substring(2,r.length-1),a=n?.[i];return a===void 0?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),r):a})}return t}function _ue(e,t,n){let r=e.variableList;r||(e.variableList=r={});let i,a;if("QUERYPARAM"in t){i=t.QUERYPARAM;try{const s=new self.URL(n).searchParams;if(s.has(i))a=s.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`)}catch(s){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else i=t.NAME,a=t.VALUE;i in r?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):r[i]=a||""}function rIt(e,t,n){const r=t.IMPORT;if(n&&r in n){let i=e.variableList;i||(e.variableList=i={}),i[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const iIt=/^(\d+)x(\d+)$/,Sue=/(.+?)=(".*?"|.*?)(?:,|$)/g;class ls{constructor(t,n){typeof t=="string"&&(t=ls.parseAttrList(t,n)),bo(this,t)}get clientAttrs(){return Object.keys(this).filter(t=>t.substring(0,2)==="X-")}decimalInteger(t){const n=parseInt(this[t],10);return n>Number.MAX_SAFE_INTEGER?1/0:n}hexadecimalInteger(t){if(this[t]){let n=(this[t]||"0x").slice(2);n=(n.length&1?"0":"")+n;const r=new Uint8Array(n.length/2);for(let i=0;iNumber.MAX_SAFE_INTEGER?1/0:n}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,n){const r=this[t];return r?parseFloat(r):n}enumeratedString(t){return this[t]}enumeratedStringList(t,n){const r=this[t];return(r?r.split(/[ ,]+/):[]).reduce((i,a)=>(i[a.toLowerCase()]=!0,i),n)}bool(t){return this[t]==="YES"}decimalResolution(t){const n=iIt.exec(this[t]);if(n!==null)return{width:parseInt(n[1],10),height:parseInt(n[2],10)}}static parseAttrList(t,n){let r;const i={};for(Sue.lastIndex=0;(r=Sue.exec(t))!==null;){const s=r[1].trim();let l=r[2];const c=l.indexOf('"')===0&&l.lastIndexOf('"')===l.length-1;let d=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":d=!0}if(n&&(c||d))l=Yz(n,l);else if(!d&&!c)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":po.warn(`${t}: attribute ${s} is missing quotes`)}i[s]=l}return i}}const oIt="com.apple.hls.interstitial";function sIt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function aIt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class g2e{constructor(t,n,r=0){var i;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=n?.tagAnchor||null,this.tagOrder=(i=n?.tagOrder)!=null?i:r,n){const a=n.attr;for(const s in a)if(Object.prototype.hasOwnProperty.call(t,s)&&t[s]!==a[s]){po.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=bo(new ls({}),a,t)}if(this.attr=t,n?(this._startDate=n._startDate,this._cue=n._cue,this._endDate=n._endDate,this._dateAtEnd=n._dateAtEnd):this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const a=n?.endDate||new Date(this.attr["END-DATE"]);Bn(a.getTime())&&(this._endDate=a)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const t=this._cue;return t===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):t}get startTime(){const{tagAnchor:t}=this;return t===null||t.programDateTime===null?(po.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${t}`),NaN):t.start+(this.startDate.getTime()-t.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const t=this._endDate||this._dateAtEnd;if(t)return t;const n=this.duration;return n!==null?this._dateAtEnd=new Date(this._startDate.getTime()+n*1e3):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(Bn(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===oIt}get isValid(){return!!this.id&&!this._badValueForSameId&&Bn(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const lIt=10;class uIt{constructor(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t){this.advanced=!0,this.updated=!0;return}const n=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!n||!this.live,this.advanced=this.endSN>t.endSN||n>0||n===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1}hasKey(t){return this.encryptedFragments.some(n=>{let r=n.decryptdata;return r||(n.setKeyFormat(t.keyFormat),r=n.decryptdata),!!r&&t.matches(r)})}get hasProgramDateTime(){return this.fragments.length?Bn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||lIt}get drift(){const t=this.driftEndTime-this.driftStartTime;return t>0?(this.driftEnd-this.driftStart)*1e3/t:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const t=this.partList;if(t){const n=this.lastPartIndex;if(n!==-1){for(let r=t.length;r--;)if(t[r].index>n)return t[r].index;return n}}return 0}get lastPartSn(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const t=this.partEnd-this.fragmentStart;return this.age>Math.max(t,this.totalduration)+this.levelTargetDuration}return!1}}function zT(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function kue(e,t){return!e&&!t?!0:!e||!t?!1:zT(e,t)}function ky(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function jG(e){switch(e){case"AES-128":case"AES-256":return B0.cbc;case"AES-256-CTR":return B0.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function VG(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function Xz(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function cIt(e){const t=Xz(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function y2e(e){const t=function(r,i,a){const s=r[i];r[i]=r[a],r[a]=s};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function b2e(e){const t=e.split(":");let n=null;if(t[0]==="data"&&t.length===2){const r=t[1].split(";"),i=r[r.length-1].split(",");if(i.length===2){const a=i[0]==="base64",s=i[1];a?(r.splice(-1,1),n=VG(s)):n=cIt(s)}}return n}const UT=typeof self<"u"?self:void 0;var ds={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Wa={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function s8(e){switch(e){case Wa.FAIRPLAY:return ds.FAIRPLAY;case Wa.PLAYREADY:return ds.PLAYREADY;case Wa.WIDEVINE:return ds.WIDEVINE;case Wa.CLEARKEY:return ds.CLEARKEY}}function zF(e){switch(e){case ds.FAIRPLAY:return Wa.FAIRPLAY;case ds.PLAYREADY:return Wa.PLAYREADY;case ds.WIDEVINE:return Wa.WIDEVINE;case ds.CLEARKEY:return Wa.CLEARKEY}}function z4(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[ds.FAIRPLAY,ds.WIDEVINE,ds.PLAYREADY,ds.CLEARKEY].filter(i=>!!t[i]):[];return!r[ds.WIDEVINE]&&n&&r.push(ds.WIDEVINE),r}const _2e=(function(e){return UT!=null&&(e=UT.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function dIt(e,t,n,r){let i;switch(e){case ds.FAIRPLAY:i=["cenc","sinf"];break;case ds.WIDEVINE:case ds.PLAYREADY:i=["cenc"];break;case ds.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return fIt(i,t,n,r)}function fIt(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map(a=>({contentType:`audio/mp4; codecs=${a}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(a=>({contentType:`video/mp4; codecs=${a}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function hIt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function S2e(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),r=n.substring(n.indexOf("<"),n.length),s=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(s){const l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const c=VG(l).subarray(0,16);return y2e(c),c}}return null}let Ex={};class Em{static clearKeyUriToKeyIdMap(){Ex={}}static setKeyIdForUri(t,n){Ex[t]=n}constructor(t,n,r,i=[1],a=null,s){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=n,this.keyFormat=r,this.keyFormatVersions=i,this.iv=a,this.encrypted=t?t!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!ky(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(Y3e(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&zT(t.keyFormatVersions,this.keyFormatVersions)&&kue(t.iv,this.iv)&&kue(t.keyId,this.keyId)}isSupported(){if(this.method){if(ky(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Wa.FAIRPLAY:case Wa.WIDEVINE:case Wa.PLAYREADY:case Wa.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(t,n){if(!this.encrypted||!this.uri)return null;if(ky(this.method)){let a=this.iv;return a||(typeof t!="number"&&(po.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=vIt(t)),new Em(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=Ex[this.uri];if(a&&!zT(this.keyId,a)&&Em.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=b2e(this.uri);if(r)switch(this.keyFormat){case Wa.WIDEVINE:if(this.pssh=r,!this.keyId){const a=yAt(r.buffer);if(a.length){var i;const s=a[0];this.keyId=(i=s.kids)!=null&&i.length?s.kids[0]:null}}this.keyId||(this.keyId=wue(n));break;case Wa.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=gAt(a,null,r),this.keyId=S2e(r);break}default:{let a=r.subarray(0,16);if(a.length!==16){const s=new Uint8Array(16);s.set(a,16-a.length),a=s}this.keyId=a;break}}if(!this.keyId||this.keyId.byteLength!==16){let a;a=pIt(n),a||(a=wue(n),a||(a=Ex[this.uri])),a&&(this.keyId=a,Em.setKeyIdForUri(this.uri,a))}return this}}function pIt(e){const t=e?.[Wa.WIDEVINE];return t?t.keyId:null}function wue(e){const t=e?.[Wa.PLAYREADY];if(t){const n=b2e(t.uri);if(n)return S2e(n)}return null}function vIt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const xue=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Cue=/#EXT-X-MEDIA:(.*)/g,mIt=/^#EXT(?:INF|-X-TARGETDURATION):/m,UF=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),gIt=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class mf{static findGroup(t,n){for(let r=0;r0&&a.length({id:d.attrs.AUDIO,audioCodec:d.audioCodec})),SUBTITLES:s.map(d=>({id:d.attrs.SUBTITLES,textCodec:d.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(Cue.lastIndex=0;(i=Cue.exec(t))!==null;){const d=new ls(i[1],r),h=d.TYPE;if(h){const p=l[h],v=a[h]||[];a[h]=v;const g=d.LANGUAGE,y=d["ASSOC-LANGUAGE"],S=d.CHANNELS,k=d.CHARACTERISTICS,w=d["INSTREAM-ID"],x={attrs:d,bitrate:0,id:c++,groupId:d["GROUP-ID"]||"",name:d.NAME||g||"",type:h,default:d.bool("DEFAULT"),autoselect:d.bool("AUTOSELECT"),forced:d.bool("FORCED"),lang:g,url:d.URI?mf.resolve(d.URI,n):""};if(y&&(x.assocLang=y),S&&(x.channels=S),k&&(x.characteristics=k),w&&(x.instreamId=w),p!=null&&p.length){const E=mf.findGroup(p,x.groupId)||p[0];Iue(x,E,"audioCodec"),Iue(x,E,"textCodec")}v.push(x)}}return a}static parseLevelPlaylist(t,n,r,i,a,s){var l;const c={url:n},d=new uIt(n),h=d.fragments,p=[];let v=null,g=0,y=0,S=0,k=0,w=0,x=null,E=new FF(i,c),_,T,D,P=-1,M=!1,$=null,L;if(UF.lastIndex=0,d.m3u8=t,d.hasVariableRefs=bue(t),((l=UF.exec(t))==null?void 0:l[0])!=="#EXTM3U")return d.playlistParsingError=new Error("Missing format identifier #EXTM3U"),d;for(;(_=UF.exec(t))!==null;){M&&(M=!1,E=new FF(i,c),E.playlistOffset=S,E.setStart(S),E.sn=g,E.cc=k,w&&(E.bitrate=w),E.level=r,v&&(E.initSegment=v,v.rawProgramDateTime&&(E.rawProgramDateTime=v.rawProgramDateTime,v.rawProgramDateTime=null),$&&(E.setByteRange($),$=null)));const U=_[1];if(U){E.duration=parseFloat(U);const W=(" "+_[2]).slice(1);E.title=W||null,E.tagList.push(W?["INF",U,W]:["INF",U])}else if(_[3]){if(Bn(E.duration)){E.playlistOffset=S,E.setStart(S),D&&Due(E,D,d),E.sn=g,E.level=r,E.cc=k,h.push(E);const W=(" "+_[3]).slice(1);E.relurl=Yz(d,W),Zz(E,x,p),x=E,S+=E.duration,g++,y=0,M=!0}}else{if(_=_[0].match(gIt),!_){po.warn("No matches on slow regex match for level playlist!");continue}for(T=1;T<_.length&&_[T]===void 0;T++);const W=(" "+_[T]).slice(1),K=(" "+_[T+1]).slice(1),oe=_[T+2]?(" "+_[T+2]).slice(1):null;switch(W){case"BYTERANGE":x?E.setByteRange(K,x):E.setByteRange(K);break;case"PROGRAM-DATE-TIME":E.rawProgramDateTime=K,E.tagList.push(["PROGRAM-DATE-TIME",K]),P===-1&&(P=h.length);break;case"PLAYLIST-TYPE":d.type&&uh(d,W,_),d.type=K.toUpperCase();break;case"MEDIA-SEQUENCE":d.startSN!==0?uh(d,W,_):h.length>0&&Pue(d,W,_),g=d.startSN=parseInt(K);break;case"SKIP":{d.skippedSegments&&uh(d,W,_);const ae=new ls(K,d),ee=ae.decimalInteger("SKIPPED-SEGMENTS");if(Bn(ee)){d.skippedSegments+=ee;for(let Q=ee;Q--;)h.push(null);g+=ee}const Y=ae.enumeratedString("RECENTLY-REMOVED-DATERANGES");Y&&(d.recentlyRemovedDateranges=(d.recentlyRemovedDateranges||[]).concat(Y.split(" ")));break}case"TARGETDURATION":d.targetduration!==0&&uh(d,W,_),d.targetduration=Math.max(parseInt(K),1);break;case"VERSION":d.version!==null&&uh(d,W,_),d.version=parseInt(K);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":d.live||uh(d,W,_),d.live=!1;break;case"#":(K||oe)&&E.tagList.push(oe?[K,oe]:[K]);break;case"DISCONTINUITY":k++,E.tagList.push(["DIS"]);break;case"GAP":E.gap=!0,E.tagList.push([W]);break;case"BITRATE":E.tagList.push([W,K]),w=parseInt(K)*1e3,Bn(w)?E.bitrate=w:w=0;break;case"DATERANGE":{const ae=new ls(K,d),ee=new g2e(ae,d.dateRanges[ae.ID],d.dateRangeTagCount);d.dateRangeTagCount++,ee.isValid||d.skippedSegments?d.dateRanges[ee.id]=ee:po.warn(`Ignoring invalid DATERANGE tag: "${K}"`),E.tagList.push(["EXT-X-DATERANGE",K]);break}case"DEFINE":{{const ae=new ls(K,d);"IMPORT"in ae?rIt(d,ae,s):_ue(d,ae,n)}break}case"DISCONTINUITY-SEQUENCE":d.startCC!==0?uh(d,W,_):h.length>0&&Pue(d,W,_),d.startCC=k=parseInt(K);break;case"KEY":{const ae=Eue(K,n,d);if(ae.isSupported()){if(ae.method==="NONE"){D=void 0;break}D||(D={});const ee=D[ae.keyFormat];ee!=null&&ee.matches(ae)||(ee&&(D=bo({},D)),D[ae.keyFormat]=ae)}else po.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${K}"`);break}case"START":d.startTimeOffset=Tue(K);break;case"MAP":{const ae=new ls(K,d);if(E.duration){const ee=new FF(i,c);Lue(ee,ae,r,D),v=ee,E.initSegment=v,v.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=v.rawProgramDateTime)}else{const ee=E.byteRangeEndOffset;if(ee){const Y=E.byteRangeStartOffset;$=`${ee-Y}@${Y}`}else $=null;Lue(E,ae,r,D),v=E,M=!0}v.cc=k;break}case"SERVER-CONTROL":{L&&uh(d,W,_),L=new ls(K),d.canBlockReload=L.bool("CAN-BLOCK-RELOAD"),d.canSkipUntil=L.optionalFloat("CAN-SKIP-UNTIL",0),d.canSkipDateRanges=d.canSkipUntil>0&&L.bool("CAN-SKIP-DATERANGES"),d.partHoldBack=L.optionalFloat("PART-HOLD-BACK",0),d.holdBack=L.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{d.partTarget&&uh(d,W,_);const ae=new ls(K);d.partTarget=ae.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ae=d.partList;ae||(ae=d.partList=[]);const ee=y>0?ae[ae.length-1]:void 0,Y=y++,Q=new ls(K,d),ie=new rAt(Q,E,c,Y,ee);ae.push(ie),E.duration+=ie.duration;break}case"PRELOAD-HINT":{const ae=new ls(K,d);d.preloadHint=ae;break}case"RENDITION-REPORT":{const ae=new ls(K,d);d.renditionReports=d.renditionReports||[],d.renditionReports.push(ae);break}default:po.warn(`line parsed but not handled: ${_}`);break}}}x&&!x.relurl?(h.pop(),S-=x.duration,d.partList&&(d.fragmentHint=x)):d.partList&&(Zz(E,x,p),E.cc=k,d.fragmentHint=E,D&&Due(E,D,d)),d.targetduration||(d.playlistParsingError=new Error("Missing Target Duration"));const B=h.length,j=h[0],H=h[B-1];if(S+=d.skippedSegments*d.targetduration,S>0&&B&&H){d.averagetargetduration=S/B;const U=H.sn;d.endSN=U!=="initSegment"?U:0,d.live||(H.endList=!0),P>0&&(bIt(h,P),j&&p.unshift(j))}return d.fragmentHint&&(S+=d.fragmentHint.duration),d.totalduration=S,p.length&&d.dateRangeTagCount&&j&&k2e(p,d),d.endCC=k,d}}function k2e(e,t){let n=e.length;if(!n)if(t.hasProgramDateTime){const l=t.fragments[t.fragments.length-1];e.push(l),n++}else return;const r=e[n-1],i=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let l=a.length;l--;){const c=t.dateRanges[a[l]],d=c.startDate.getTime();c.tagAnchor=r.ref;for(let h=n;h--;){var s;if(((s=e[h])==null?void 0:s.sn)=l||r===0){var s;const c=(((s=n[r+1])==null?void 0:s.start)||i)-a.start;if(t<=l+c*1e3){const d=n[r].sn-e.startSN;if(d<0)return-1;const h=e.fragments;if(h.length>n.length){const v=(n[r+1]||h[h.length-1]).sn-e.startSN;for(let g=v;g>d;g--){const y=h[g].programDateTime;if(t>=y&&tr);["video","audio","text"].forEach(r=>{const i=n.filter(a=>OG(a,r));i.length&&(t[`${r}Codec`]=i.map(a=>a.split("/")[0]).join(","),n=n.filter(a=>i.indexOf(a)===-1))}),t.unknownCodecs=n}function Iue(e,t,n){const r=t[n];r&&(e[n]=r)}function bIt(e,t){let n=e[t];for(let r=t;r--;){const i=e[r];if(!i)return;i.programDateTime=n.programDateTime-i.duration*1e3,n=i}}function Zz(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Lue(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function Due(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;(!r.length||r[r.length-1].levelkeys!==t)&&Object.keys(t).some(i=>t[i].isCommonEncryption)&&r.push(e)}function uh(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function Pue(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function HF(e,t){const n=t.startPTS;if(Bn(n)){let r=0,i;t.sn>e.sn?(r=n-e.start,i=e):(r=e.start-n,i=t),i.duration!==r&&i.setDuration(r)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration):t.setStart(Math.max(e.start-t.duration,0))}function w2e(e,t,n,r,i,a,s){r-n<=0&&(s.warn("Fragment should have a positive duration",t),r=n+t.duration,a=i+t.duration);let c=n,d=r;const h=t.startPTS,p=t.endPTS;if(Bn(h)){const w=Math.abs(h-n);e&&w>e.totalduration?s.warn(`media timestamps and playlist times differ by ${w}s for level ${t.level} ${e.url}`):Bn(t.deltaPTS)?t.deltaPTS=Math.max(w,t.deltaPTS):t.deltaPTS=w,c=Math.max(n,h),n=Math.min(n,h),i=t.startDTS!==void 0?Math.min(i,t.startDTS):i,d=Math.min(r,p),r=Math.max(r,p),a=t.endDTS!==void 0?Math.max(a,t.endDTS):a}const v=n-t.start;t.start!==0&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=c,t.startDTS=i,t.endPTS=r,t.minEndPTS=d,t.endDTS=a;const g=t.sn;if(!e||ge.endSN)return 0;let y;const S=g-e.startSN,k=e.fragments;for(k[S]=t,y=S;y>0;y--)HF(k[y],k[y-1]);for(y=S;y=0;h--){const p=i[h].initSegment;if(p){r=p;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let a;wIt(e,t,(h,p,v,g)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const y=h.cc-p.cc;for(let S=v;S{var p;h&&(!h.initSegment||h.initSegment.relurl===((p=r)==null?void 0:p.relurl))&&(h.initSegment=r)}),t.skippedSegments){if(t.deltaUpdateFailed=s.some(h=>!h),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let h=t.skippedSegments;h--;)s.shift();t.startSN=s[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=SIt(e.dateRanges,t,n));const h=e.fragments.filter(p=>p.rawProgramDateTime);if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let p=1;p{p.elementaryStreams=h.elementaryStreams,p.stats=h.stats}),a?w2e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):x2e(e,t),s.length&&(t.totalduration=t.edge-s[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const d=t.advancedDateTime;if(t.advanced&&d){const h=t.edge;t.driftStart||(t.driftStartTime=d,t.driftStart=h),t.driftEndTime=d,t.driftEnd=h}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;t.requestScheduled===-1&&(t.requestScheduled=e.requestScheduled)}function SIt(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:i}=t,a=bo({},e);i&&i.forEach(c=>{delete a[c]});const l=Object.keys(a).length;return l?(Object.keys(r).forEach(c=>{const d=a[c],h=new g2e(r[c].attr,d);h.isValid?(a[c]=h,d||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Ao(r[c].attr)}"`)}),a):r}function kIt(e,t,n){if(e&&t){let r=0;for(let i=0,a=e.length;i<=a;i++){const s=e[i],l=t[i+r];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?n(s,l):r--}}}function wIt(e,t,n){const r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let d=i;d<=a;d++){const h=c[s+d];let p=l[d];if(r&&!p&&h&&(p=t.fragments[d]=h),h&&p){n(h,p,d,l);const v=h.relurl,g=p.relurl;if(v&&xIt(v,g)){t.playlistParsingError=Rue(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=Rue(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function Rue(e,t,n,r,i){return new Error(`${e} ${i.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} -${n.m3u8}`)}function C2e(e,t,n=!0){const r=t.startSN+t.skippedSegments-e.startSN,i=e.fragments,a=r>=0;let s=0;if(a&&rt){const a=r[r.length-1].duration*1e3;a{var r;(r=t.details)==null||r.fragments.forEach(i=>{i.level=n,i.initSegment&&(i.initSegment.level=n)})})}function gIt(e,t){return e!==t&&t?$ue(e)!==$ue(t):!1}function $ue(e){return e.replace(/\?[^?]*$/,"")}function Rb(e,t){for(let r=0,i=e.length;re.startCC)}function Oue(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function I2e(e,t){const n=t.fragments;for(let r=0,i=n.length;r{const{config:s,fragCurrent:l,media:c,mediaBuffer:d,state:h}=this,p=c?c.currentTime:0,v=jr.bufferInfo(d||c,p,s.maxBufferHole),g=!v.len;if(this.log(`Media seeking to ${Bn(p)?p.toFixed(3):p}, state: ${h}, ${g?"out of":"in"} buffer`),this.state===nn.ENDED)this.resetLoadingState();else if(l){const y=s.maxFragLookUpTolerance,S=l.start-y,k=l.start+l.duration+y;if(g||kv.end){const C=p>k;(py&&(this.lastCurrentTime=p),!this.loadingParts){const S=Math.max(v.end,p),k=this.shouldLoadParts(this.getLevelDetails(),S);k&&(this.log(`LL-Part loading ON after seeking to ${p.toFixed(2)} with buffer @${S.toFixed(2)}`),this.loadingParts=k)}}this.hls.hasEnoughToStart||(this.log(`Setting ${g?"startPosition":"nextLoadPosition"} to ${p} for seek without enough to start`),this.nextLoadPosition=p,g&&(this.startPosition=p)),g&&this.state===nn.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=a,this.hls=t,this.fragmentLoader=new qAt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new NG(t.config)}registerListeners(){const{hls:t}=this;t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Pe.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===nn.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;t!=null&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=nn.STOPPED}get startPositionValue(){const{nextLoadPosition:t,startPosition:n}=this;return n===-1&&t?t:n}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(t,n){if(n.live||!this.media)return!1;const r=t.end||0,i=this.config.timelineOffset||0;if(r<=i)return!1;const a=t.buffered;this.config.maxBufferHole&&a&&a.length>1&&(t=jr.bufferedInfo(a,t.start,0));const s=t.nextStart;if(s&&s>i&&s{const s=a.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${a.part?" part: "+a.part.index:""} of ${this.fragInfo(s,!1,a.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(a)};this._doFragLoad(t,n,r,i).then(a=>{if(!a)return;const s=this.state,l=a.frag;if(this.fragContextChanged(l)){(s===nn.FRAG_LOADING||!this.fragCurrent&&s===nn.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=nn.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(Pe.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===nn.STOPPED||this.state===nn.ERROR||(this.warn(`Frag error: ${a?.message||a}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===da.APPENDING){const a=t.type,s=this.getFwdBufferInfo(this.mediaBuffer,a),l=Math.max(t.duration,s?s.len:this.config.maxBufferLength),c=this.backtrackFragment;((c?t.sn-c.sn:0)===1||this.reduceMaxBufferLength(l,t.duration))&&r.removeFragment(t)}else((n=this.mediaBuffer)==null?void 0:n.buffered.length)===0?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===da.PARTIAL&&r.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const n=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:n,part:null,stats:n.stats,id:n.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}waitForLive(t){const n=t.details;return n?.live&&n.type!=="EVENT"&&(this.levelLastLoaded!==t||n.expired)}flushMainBuffer(t,n,r=null){if(!(t-n))return;const i={startOffset:t,endOffset:n,type:r};this.hls.trigger(Pe.BUFFER_FLUSHING,i)}_loadInitSegment(t,n){this._doFragLoad(t,n).then(r=>{const i=r?.frag;if(!i||this.fragContextChanged(i)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:i}=this,{frag:a,payload:s}=r,l=a.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&Sy(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,jG(l.method)).catch(d=>{throw i.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:a}),d}).then(d=>{const h=self.performance.now();return i.trigger(Pe.FRAG_DECRYPTED,{frag:a,payload:d,stats:{tstart:c,tdecrypt:h}}),r.payload=d,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===nn.STOPPED||this.state===nn.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}completeInitSegmentLoad(t){const{levels:n}=this;if(!n)throw new Error("init load aborted, missing levels");const r=t.frag.stats;this.state!==nn.STOPPED&&(this.state=nn.IDLE),t.frag.data=new Uint8Array(t.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(t,n){var r,i;const a=t.tracks;if(a&&!n.encrypted&&((r=a.audio)!=null&&r.encrypted||(i=a.video)!=null&&i.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,l=new Error(`Encrypted track with no key in ${this.fragInfo(n)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(l.message),!s||s.mediaKeys?!1:(this.hls.trigger(Pe.ERROR,{type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_KEYS,fatal:!1,error:l,frag:n}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(t){const{fragCurrent:n}=this;return!t||!n||t.sn!==n.sn||t.level!==n.level}fragBufferedComplete(t,n){const r=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)} > buffer:${r?_It.toString(jr.getBuffered(r)):"(detached)"})`),qs(t)){var i;if(t.type!==Qn.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=nn.IDLE;return}}const a=(i=this.levels)==null?void 0:i[t.level];a!=null&&a.fragmentError&&(this.log(`Resetting level fragment error count of ${a.fragmentError} on frag buffered`),a.fragmentError=0)}this.state=nn.IDLE}_handleFragmentLoadComplete(t){const{transmuxer:n}=this;if(!n)return;const{frag:r,part:i,partsLoaded:a}=t,s=!a||a.length===0||a.some(c=>!c),l=new FG(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!s);n.flush(l)}_handleFragmentLoadProgress(t){}_doFragLoad(t,n,r=null,i){var a;this.fragCurrent=t;const s=n.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;if(t.encrypted&&!((a=t.decryptdata)!=null&&a.key)){if(this.log(`Loading key for ${t.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${t.level}`),this.state=nn.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(v=>{if(!this.fragContextChanged(v.frag))return this.hls.trigger(Pe.KEY_LOADED,v),this.state===nn.KEY_LOADING&&(this.state=nn.IDLE),v}),this.hls.trigger(Pe.KEY_LOADING,{frag:t}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else t.encrypted||(l=this.keyLoader.loadClear(t,s.encryptedFragments,this.startFragRequested),l&&this.log("[eme] blocking frag load until media-keys acquired"));const c=this.fragPrevious;if(qs(t)&&(!c||t.sn!==c.sn)){const v=this.shouldLoadParts(n.details,t.end);v!==this.loadingParts&&(this.log(`LL-Part loading ${v?"ON":"OFF"} loading sn ${c?.sn}->${t.sn}`),this.loadingParts=v)}if(r=Math.max(t.start,r||0),this.loadingParts&&qs(t)){const v=s.partList;if(v&&i){r>s.fragmentEnd&&s.fragmentHint&&(t=s.fragmentHint);const g=this.getNextPart(v,t,r);if(g>-1){const y=v[g];t=this.fragCurrent=y.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${y.index} (${g}/${v.length-1}) of ${this.fragInfo(t,!1,y)}) cc: ${t.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=y.start+y.duration,this.state=nn.FRAG_LOADING;let S;return l?S=l.then(k=>!k||this.fragContextChanged(k.frag)?null:this.doFragPartsLoad(t,y,n,i)).catch(k=>this.handleFragLoadError(k)):S=this.doFragPartsLoad(t,y,n,i).catch(k=>this.handleFragLoadError(k)),this.hls.trigger(Pe.FRAG_LOADING,{frag:t,part:y,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):S}else if(!t.url||this.loadedEndOfParts(v,r))return Promise.resolve(null)}}if(qs(t)&&this.loadingParts){var d;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(d=s.partList)==null?void 0:d.filter(v=>v.loaded).map(v=>`[${v.start}-${v.end}]`)}`),this.loadingParts=!1}else if(!t.url)return Promise.resolve(null);this.log(`Loading ${t.type} sn: ${t.sn} of ${this.fragInfo(t,!1)}) cc: ${t.cc} ${"["+s.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(r.toFixed(3))}`),Bn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=nn.FRAG_LOADING;const h=this.config.progressive;let p;return h&&l?p=l.then(v=>!v||this.fragContextChanged(v.frag)?null:this.fragmentLoader.load(t,i)).catch(v=>this.handleFragLoadError(v)):p=Promise.all([this.fragmentLoader.load(t,h?i:void 0),l]).then(([v])=>(!h&&i&&i(v),v)).catch(v=>this.handleFragLoadError(v)),this.hls.trigger(Pe.FRAG_LOADING,{frag:t,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p}doFragPartsLoad(t,n,r,i){return new Promise((a,s)=>{var l;const c=[],d=(l=r.details)==null?void 0:l.partList,h=p=>{this.fragmentLoader.loadPart(t,p,i).then(v=>{c[p.index]=v;const g=v.part;this.hls.trigger(Pe.FRAG_LOADED,v);const y=Mue(r.details,t.sn,p.index+1)||T2e(d,t.sn,p.index+1);if(y)h(y);else return a({frag:t,part:g,partsLoaded:c})}).catch(s)};h(n)})}handleFragLoadError(t){if("data"in t){const n=t.data;n.frag&&n.details===zt.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===ur.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(Pe.ERROR,n)}else this.hls.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==nn.PARSING){!this.fragCurrent&&this.state!==nn.STOPPED&&this.state!==nn.ERROR&&(this.state=nn.IDLE);return}const{frag:r,part:i,level:a}=n,s=self.performance.now();r.stats.parsing.end=s,i&&(i.stats.parsing.end=s);const l=this.getLevelDetails(),d=l&&r.sn>l.endSN||this.shouldLoadParts(l,r.end);d!==this.loadingParts&&(this.log(`LL-Part loading ${d?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=d),this.updateLevelTiming(r,i,a,t.partial)}shouldLoadParts(t,n){if(this.config.lowLatencyMode){if(!t)return this.loadingParts;if(t.partList){var r;const a=t.partList[0];if(a.fragment.type===Qn.SUBTITLE)return!1;const s=a.end+(((r=t.fragmentHint)==null?void 0:r.duration)||0);if(n>=s){var i;if((this.hls.hasEnoughToStart?((i=this.media)==null?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>a.start-a.fragment.duration)return!0}}}return!1}getCurrentContext(t){const{levels:n,fragCurrent:r}=this,{level:i,sn:a,part:s}=t;if(!(n!=null&&n[i]))return this.warn(`Levels object was unset while buffering fragment ${a} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const l=n[i],c=l.details,d=s>-1?Mue(c,a,s):null,h=d?d.fragment:E2e(c,a,r);return h?(r&&r!==h&&(h.stats=r.stats),{frag:h,part:d,level:l}):null}bufferFragmentData(t,n,r,i,a){if(this.state!==nn.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=td(s,l)),!c.length)return;const d=this.initPTS[n.cc],h=d?-d.baseTime/d.timescale:void 0,p={type:t.type,frag:n,part:r,chunkMeta:i,offset:h,parent:n.type,data:c};if(this.hls.trigger(Pe.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!jr.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,i=jr.bufferInfo(n,r,0),a=t.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,a*.25),l=Math.max(Math.min(t.start-s,i.end-s),r+s);t.start-l>s&&this.flushMainBuffer(l,t.start)}getFwdBufferInfo(t,n){var r;const i=this.getLoadPosition();if(!Bn(i))return null;const s=this.lastCurrentTime>i||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(t,i,n,s)}getFwdBufferInfoAtPos(t,n,r,i){const a=jr.bufferInfo(t,n,i);if(a.len===0&&a.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(n,r);if(s&&(a.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(a.nextStart,s.end)-n,i);return jr.bufferInfo(t,n,l)}}return a}getMaxBufferLength(t){const{config:n}=this;let r;return t?r=Math.max(8*n.maxBufferSize/t,n.maxBufferLength):r=n.maxBufferLength,Math.min(r,n.maxMaxBufferLength)}reduceMaxBufferLength(t,n){const r=this.config,i=Math.max(Math.min(t-n,r.maxBufferLength),n),a=Math.max(t-n*3,r.maxMaxBufferLength/2,i);return a>=i?(r.maxMaxBufferLength=a,this.warn(`Reduce max buffer length to ${a}s`),!0):!1}getAppendedFrag(t,n=Qn.MAIN){const r=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(t,n):null;return r&&"fragment"in r?r.fragment:r}getNextFragment(t,n){const r=n.fragments,i=r.length;if(!i)return null;const{config:a}=this,s=r[0].start,l=a.lowLatencyMode&&!!n.partList;let c=null;if(n.live){const p=a.initialLiveManifestSize;if(i=s?v:g)||c.start:t;this.log(`Setting startPosition to ${y} to match start frag at live edge. mainStart: ${v} liveSyncPosition: ${g} frag.start: ${(d=c)==null?void 0:d.start}`),this.startPosition=this.nextLoadPosition=y}}else t<=s&&(c=r[0]);if(!c){const p=this.loadingParts?n.partEnd:n.fragmentEnd;c=this.getFragmentAtPosition(t,p,n)}let h=this.filterReplacedPrimary(c,n);if(!h&&c){const p=c.sn-n.startSN;h=this.filterReplacedPrimary(r[p+1]||null,n)}return this.mapToInitFragWhenRequired(h)}isLoopLoading(t,n){const r=this.fragmentTracker.getState(t);return(r===da.OK||r===da.PARTIAL&&!!t.gap)&&this.nextLoadPosition>n}getNextFragmentLoopLoading(t,n,r,i,a){let s=null;if(t.gap&&(s=this.getNextFragment(this.nextLoadPosition,n),s&&!s.gap&&r.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i,0);if(l!==null&&r.len+l.len>=a){const c=s.sn;return this.loopSn!==c&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${c}`),this.loopSn=c),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(Bue(this.config)){var t;if((t=this.hls.interstitialsManager)==null||(t=t.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(t,n){if(!t)return t;if(Bue(this.config)&&t.type!==Qn.SUBTITLE){const r=this.hls.interstitialsManager,i=r?.bufferingItem;if(i){const s=i.event;if(s){if(s.appendInPlace||Math.abs(t.start-i.start)>1||i.start===0)return null}else if(t.end<=i.start&&n?.live===!1||t.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||t.start-i.end>1))return null}const a=r?.playerQueue;if(a)for(let s=a.length;s--;){const l=a[s].interstitial;if(l.appendInPlace&&t.start>=l.startTime&&t.end<=l.resumeTime)return null}}return t}mapToInitFragWhenRequired(t){return t!=null&&t.initSegment&&!t.initSegment.data&&!this.bitrateTest?t.initSegment:t}getNextPart(t,n,r){let i=-1,a=!1,s=!0;for(let l=0,c=t.length;l-1&&rr.start)return!0}return!1}getInitialLiveFragment(t){const n=t.fragments,r=this.fragPrevious;let i=null;if(r){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),i=OAt(n,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const a=r.sn+1;if(a>=t.startSN&&a<=t.endSN){const s=n[a-t.startSN];r.cc===s.cc&&(i=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=f2e(t,r.cc,r.end),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const a=this.hls.liveSyncPosition;a!==null&&(i=this.getFragmentAtPosition(a,this.bitrateTest?t.fragmentEnd:t.edge,t))}return i}getFragmentAtPosition(t,n,r){const{config:i}=this;let{fragPrevious:a}=this,{fragments:s,endSN:l}=r;const{fragmentHint:c}=r,{maxFragLookUpTolerance:d}=i,h=r.partList,p=!!(this.loadingParts&&h!=null&&h.length&&c);p&&!this.bitrateTest&&h[h.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let v;if(tn-d||(g=this.media)!=null&&g.paused||!this.startFragRequested?0:d;v=Um(a,s,t,S)}else v=s[s.length-1];if(v){const y=v.sn-r.startSN,S=this.fragmentTracker.getState(v);if((S===da.OK||S===da.PARTIAL&&v.gap)&&(a=v),a&&v.sn===a.sn&&(!p||h[0].fragment.sn>v.sn||!r.live)&&v.level===a.level){const C=s[y+1];v.sn${t.startSN} fragments: ${i}`),c}return a}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*3)}setStartPosition(t,n){let r=this.startPosition;r=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(t,n){this.transmuxer&&t.type===this.playlistType&&qs(t)&&t.stats.aborted&&(this.log(`Fragment ${t.sn}${n?" part "+n.index:""} of ${this.playlistLabel()} ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){(!this.fragCurrent||!this.fragContextChanged(t)&&this.state!==nn.FRAG_LOADING_WAITING_RETRY)&&(this.state=nn.IDLE)}onFragmentOrKeyLoadError(t,n){var r;if(n.chunkMeta&&!n.frag){const C=this.getCurrentContext(n.chunkMeta);C&&(n.frag=C.frag)}const i=n.frag;if(!i||i.type!==t||!this.levels)return;if(this.fragContextChanged(i)){var a;this.warn(`Frag load error must match current frag to retry ${i.url} > ${(a=this.fragCurrent)==null?void 0:a.url}`);return}const s=n.details===zt.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(i,!0);const l=n.errorAction;if(!l){this.state=nn.ERROR;return}const{action:c,flags:d,retryCount:h=0,retryConfig:p}=l,v=!!p,g=v&&c===ja.RetryRequest,y=v&&!l.resolved&&d===tc.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&y&&qs(i)&&!i.endList&&S&&!p2e(n))this.resetFragmentErrors(t),this.treatAsGap(i),l.resolved=!0;else if((g||y)&&h=n||r&&!Gz(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=nn.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===nn.PARSING||this.state===nn.PARSED){const n=t.frag,r=t.parent,i=this.getFwdBufferInfo(this.mediaBuffer,r),a=i&&i.len>.5;a&&this.reduceMaxBufferLength(i.len,n?.duration||10);const s=!a;return s&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${r} buffer`),n&&(this.fragmentTracker.removeFragment(n),this.nextLoadPosition=n.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(t){t===Qn.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==nn.STOPPED&&(this.state=nn.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const i=jr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,i,r),this.state===nn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==nn.STOPPED&&(this.state=nn.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=this.levelLastLoaded,n=t?t.details:null;n!=null&&n.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(n,n.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.log(`Loading context changed while buffering sn ${t.sn} of ${this.playlistLabel()} ${t.level===-1?"":t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,n,r,i){const a=r.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(t.elementaryStreams).reduce((c,d)=>{const h=t.elementaryStreams[d];if(h){const p=h.endPTS-h.startPTS;if(p<=0)return this.warn(`Could not parse fragment ${t.sn} ${d} duration reliably (${p})`),c||!1;const v=i?0:x2e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(Pe.LEVEL_PTS_UPDATED,{details:a,level:r,drift:v,type:d,frag:t,start:h.startPTS,end:h.endPTS}),!0}return c},!1)){var l;if(r.fragmentError===0&&this.treatAsGap(t,r),((l=this.transmuxer)==null?void 0:l.error)===null){const c=new Error(`Found no media in fragment ${t.sn} of ${this.playlistLabel()} ${t.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(c.message),this.hls.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,fatal:!1,error:c,frag:t,reason:`Found no media in msn ${t.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=nn.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(Pe.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===Qn.MAIN?"level":"track"}fragInfo(t,n=!0,r){var i,a;return`${this.playlistLabel()} ${t.level} (${r?"part":"frag"}:[${((i=n&&!r?t.startPTS:(r||t).start)!=null?i:NaN).toFixed(3)}-${((a=n&&!r?t.endPTS:(r||t).end)!=null?a:NaN).toFixed(3)}]${r&&t.type==="main"?"INDEPENDENT="+(r.independent?"YES":"NO"):""}`}treatAsGap(t,n){n&&n.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)}resetTransmuxer(){var t;(t=this.transmuxer)==null||t.reset()}recoverWorkerError(t){t.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(t){const n=this._state;n!==t&&(this._state=t,this.log(`${n}->${t}`))}get state(){return this._state}}function Bue(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class D2e{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:n}=this;let r;if(t.length)t.length===1?r=t[0]:r=SIt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function SIt(e,t){const n=new Uint8Array(t);let r=0;for(let i=0;i0)return e.subarray(n,n+r)}function AIt(e,t,n,r){const i=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],a=t[n+2],s=a>>2&15;if(s>12){const g=new Error(`invalid ADTS sampling index:${s}`);e.emit(Pe.ERROR,Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,fatal:!0,error:g,reason:g.message});return}const l=(a>>6&3)+1,c=t[n+3]>>6&3|(a&1)<<2,d="mp4a.40."+l,h=i[s];let p=s;(l===5||l===29)&&(p-=3);const v=[l<<3|(p&14)>>1,(p&1)<<7|c<<3];return po.log(`manifest codec:${r}, parsed codec:${d}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:v,samplerate:h,channelCount:c,codec:d,parsedCodec:d,manifestCodec:r}}function R2e(e,t){return e[t]===255&&(e[t+1]&246)===240}function M2e(e,t){return e[t+1]&1?7:9}function WG(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function IIt(e,t){return t+5=e.length)return!1;const r=WG(e,t);if(r<=n)return!1;const i=t+r;return i===e.length||HT(e,i)}return!1}function $2e(e,t,n,r,i){if(!e.samplerate){const a=AIt(t,n,r,i);if(!a)return;bo(e,a)}}function O2e(e){return 1024*9e4/e}function PIt(e,t){const n=M2e(e,t);if(t+n<=e.length){const r=WG(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function B2e(e,t,n,r,i){const a=O2e(e.samplerate),s=r+i*a,l=PIt(t,n);let c;if(l){const{frameLength:p,headerLength:v}=l,g=v+p,y=Math.max(0,n+g-t.length);y?(c=new Uint8Array(g-v),c.set(t.subarray(n+v,t.length),0)):c=t.subarray(n+v,n+g);const S={unit:c,pts:s};return y||e.samples.push(S),{sample:S,length:g,missing:y}}const d=t.length-n;return c=new Uint8Array(d),c.set(t.subarray(n,t.length),0),{sample:{unit:c,pts:s},length:d,missing:-1}}function RIt(e,t){return HG(e,t)&&eI(e,t+6)+10<=e.length-t}function MIt(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function HF(e,t=0,n=1/0){return $It(e,t,n,Uint8Array)}function $It(e,t,n,r){const i=OIt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=BIt(e)?e.byteOffset:0,l=(s+e.byteLength)/a,c=(s+t)/a,d=Math.floor(Math.max(0,Math.min(c,l))),h=Math.floor(Math.min(d+Math.max(n,0),l));return new r(i,d,h-d)}function OIt(e){return e instanceof ArrayBuffer?e:e.buffer}function BIt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function NIt(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null},n=3;if(e.size<2)return;if(e.data[0]!==n){console.log("Ignore frame with unrecognized character encoding");return}const r=e.data.subarray(1).indexOf(0);if(r===-1)return;const i=cc(HF(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=cc(HF(e.data,3+r,s));let c;return i==="-->"?c=cc(HF(e.data,4+r+s)):c=MIt(e.data.subarray(4+r+s)),t.mimeType=i,t.pictureType=a,t.description=l,t.data=c,t}function FIt(e){if(e.size<2)return;const t=cc(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function jIt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=cc(e.data.subarray(n),!0);n+=r.length+1;const i=cc(e.data.subarray(n));return{key:e.type,info:r,data:i}}const t=cc(e.data.subarray(1));return{key:e.type,info:"",data:t}}function VIt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=cc(e.data.subarray(n),!0);n+=r.length+1;const i=cc(e.data.subarray(n));return{key:e.type,info:r,data:i}}const t=cc(e.data);return{key:e.type,info:"",data:t}}function zIt(e){return e.type==="PRIV"?FIt(e):e.type[0]==="W"?VIt(e):e.type==="APIC"?NIt(e):jIt(e)}function UIt(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=eI(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const EC=10,HIt=10;function N2e(e){let t=0;const n=[];for(;HG(e,t);){const r=eI(e,t+6);e[t+5]>>6&1&&(t+=EC),t+=EC;const i=t+r;for(;t+HIt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:ic.audioId3,duration:Number.POSITIVE_INFINITY});i{if(Bn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let TC=null;const KIt=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],qIt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],YIt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],XIt=[0,1,1,4];function j2e(e,t,n,r,i){if(n+24>t.length)return;const a=V2e(t,n);if(a&&n+a.frameLength<=t.length){const s=a.samplesPerFrame*9e4/a.sampleRate,l=r+i*s,c={unit:t.subarray(n,n+a.frameLength),pts:l,dts:l};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(c),{sample:c,length:a.frameLength,missing:0}}}function V2e(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(n!==1&&i!==0&&i!==15&&a!==3){const s=e[t+2]>>1&1,l=e[t+3]>>6,c=n===3?3-r:r===3?3:4,d=KIt[c*14+i-1]*1e3,p=qIt[(n===3?0:n===2?1:2)*3+a],v=l===3?1:2,g=YIt[n][r],y=XIt[r],S=g*8*y,k=Math.floor(g*d/p+s)*y;if(TC===null){const E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);TC=E?parseInt(E[1]):0}return!!TC&&TC<=87&&r===2&&d>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:v,frameLength:k,samplesPerFrame:S}}}function qG(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function z2e(e,t){return t+1{let n=0,r=5;t+=r;const i=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=e[t];const l=Math.min(r,8),c=8-l;a[0]=4278190080>>>24+c<>c,n=n?n<t.length||t[n]!==11||t[n+1]!==119)return-1;const a=t[n+4]>>6;if(a>=3)return-1;const l=[48e3,44100,32e3][a],c=t[n+4]&63,h=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][c*3+a]*2;if(n+h>t.length)return-1;const p=t[n+6]>>5;let v=0;p===2?v+=2:(p&1&&p!==1&&(v+=2),p&4&&(v+=2));const g=(t[n+6]<<8|t[n+7])>>12-v&1,S=[2,1,2,3,3,4,4,5][p]+g,k=t[n+5]>>3,C=t[n+5]&7,x=new Uint8Array([a<<6|k<<1|C>>2,(C&3)<<6|p<<3|g<<2|c>>4,c<<4&224]),E=1536/l*9e4,_=r+i*E,T=t.subarray(n,n+h);return e.config=x,e.channelCount=S,e.samplerate=l,e.samples.push({unit:T,pts:_}),h}class eLt extends KG{resetInitSegment(t,n,r,i){super.resetInitSegment(t,n,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const n=L_(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&GG(n)!==void 0&&H2e(t,r)<=16)return!1;for(let i=t.length;r{const s=lAt(a);if(tLt.test(s.schemeIdUri)){const l=Fue(s,n);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const d=s.payload;r.samples.push({data:d,len:d.byteLength,dts:l,pts:l,type:ic.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Fue(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:ic.misbklv,duration:Number.POSITIVE_INFINITY})}})}return r}demuxSampleAes(t,n,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function Fue(e,t){return Bn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class rLt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new NG(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,M0.cbc)}decryptAacSample(t,n,r){const i=t[n].unit;if(i.length<=16)return;const a=i.subarray(16,i.length-i.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then(l=>{const c=new Uint8Array(l);i.set(c,16),this.decrypter.isSync()||this.decryptAacSamples(t,n+1,r)}).catch(r)}decryptAacSamples(t,n,r){for(;;n++){if(n>=t.length){r();return}if(!(t[n].unit.length<32)&&(this.decryptAacSample(t,n,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const n=Math.floor((t.length-48)/160)*16+16,r=new Int8Array(n);let i=0;for(let a=32;a{a.data=this.getAvcDecryptedUnit(s,c),this.decrypter.isSync()||this.decryptAvcSamples(t,n,r+1,i)}).catch(i)}decryptAvcSamples(t,n,r,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,r=0){if(n>=t.length){i();return}const a=t[n].units;for(;!(r>=a.length);r++){const s=a[r];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(t,n,r,i,s),!this.decrypter.isSync()))return}}}}class G2e{constructor(){this.VideoSample=null}createVideoSample(t,n,r){return{key:t,frame:!1,pts:n,dts:r,units:[],length:0}}getLastNalUnit(t){var n;let r=this.VideoSample,i;if((!r||r.units.length===0)&&(r=t[t.length-1]),(n=r)!=null&&n.units){const a=r.units;i=a[a.length-1]}return i}pushAccessUnit(t,n){if(t.units.length&&t.frame){if(t.pts===void 0){const r=n.samples,i=r.length;if(i){const a=r[i-1];t.pts=a.pts,t.dts=a.dts}else{n.dropped++;return}}n.samples.push(t)}}parseNALu(t,n,r){const i=n.byteLength;let a=t.naluState||0;const s=a,l=[];let c=0,d,h,p,v=-1,g=0;for(a===-1&&(v=0,g=this.getNALuType(n,0),a=0,c=1);c=0){const y={data:n.subarray(v,h),type:g};l.push(y)}else{const y=this.getLastNalUnit(t.samples);y&&(s&&c<=4-s&&y.state&&(y.data=y.data.subarray(0,y.data.byteLength-s)),h>0&&(y.data=td(y.data,n.subarray(0,h)),y.state=0))}c=0&&a>=0){const y={data:n.subarray(v,i),type:g,state:a};l.push(y)}if(l.length===0){const y=this.getLastNalUnit(t.samples);y&&(y.data=td(y.data,n))}return t.naluState=a,l}}class Mb{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,n=this.bytesAvailable,r=t.byteLength-n,i=new Uint8Array(4),a=Math.min(4,n);if(a===0)throw new Error("no bytes available");i.set(t.subarray(r,r+a)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=a*8,this.bytesAvailable-=a}skipBits(t){let n;t=Math.min(t,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,n=t>>3,t-=n<<3,this.bytesAvailable-=n,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let n=Math.min(this.bitsAvailable,t);const r=this.word>>>32-n;if(t>32&&po.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=n,this.bitsAvailable>0)this.word<<=n;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return n=t-n,n>0&&this.bitsAvailable?r<>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class iLt extends G2e{parsePES(t,n,r,i){const a=this.parseNALu(t,r.data,i);let s=this.VideoSample,l,c=!1;r.data=null,s&&a.length&&!t.audFound&&(this.pushAccessUnit(s,t),s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),a.forEach(d=>{var h,p;switch(d.type){case 1:{let S=!1;l=!0;const k=d.data;if(c&&k.length>4){const C=this.readSliceType(k);(C===2||C===4||C===7||C===9)&&(S=!0)}if(S){var v;(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.frame=!0,s.key=S;break}case 5:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,MG(d.data,1,r.pts,n.samples);break}case 7:{var g,y;l=!0,c=!0;const S=d.data,k=this.readSPS(S);if(!t.sps||t.width!==k.width||t.height!==k.height||((g=t.pixelRatio)==null?void 0:g[0])!==k.pixelRatio[0]||((y=t.pixelRatio)==null?void 0:y[1])!==k.pixelRatio[1]){t.width=k.width,t.height=k.height,t.pixelRatio=k.pixelRatio,t.sps=[S];const C=S.subarray(1,4);let x="avc1.";for(let E=0;E<3;E++){let _=C[E].toString(16);_.length<2&&(_="0"+_),x+=_}t.codec=x}break}case 8:l=!0,t.pps=[d.data];break;case 9:l=!0,t.audFound=!0,(p=s)!=null&&p.frame&&(this.pushAccessUnit(s,t),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(d)}),i&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}getNALuType(t,n){return t[n]&31}readSliceType(t){const n=new Mb(t);return n.readUByte(),n.readUEG(),n.readUEG()}skipScalingList(t,n){let r=8,i=8,a;for(let s=0;s{var h,p;switch(d.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,c){var v;(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,MG(d.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=bo(t.params,this.readVPS(d.data)),this.initVPS=d.data),t.vps=[d.data];break;case 33:if(l=!0,c=!0,t.vps!==void 0&&t.vps[0]!==this.initVPS&&t.sps!==void 0&&!this.matchSPS(t.sps[0],d.data)&&(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const g=this.readSPS(d.data);t.width=g.width,t.height=g.height,t.pixelRatio=g.pixelRatio,t.codec=g.codecString,t.sps=[],typeof t.params!="object"&&(t.params={});for(const y in g.params)t.params[y]=g.params[y]}this.pushParameterSet(t.sps,d.data,t.vps),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0;break;case 34:if(l=!0,typeof t.params=="object"){if(!t.pps){t.pps=[];const g=this.readPPS(d.data);for(const y in g)t.params[y]=g[y]}this.pushParameterSet(t.pps,d.data,t.vps)}break;case 35:l=!0,t.audFound=!0,(p=s)!=null&&p.frame&&(this.pushAccessUnit(s,t),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;default:l=!1;break}s&&l&&s.units.push(d)}),i&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}pushParameterSet(t,n,r){(r&&r[0]===this.initVPS||!r&&!t.length)&&t.push(n)}getNALuType(t,n){return(t[n]&126)>>>1}ebsp2rbsp(t){const n=new Uint8Array(t.byteLength);let r=0;for(let i=0;i=2&&t[i]===3&&t[i-1]===0&&t[i-2]===0||(n[r]=t[i],r++);return new Uint8Array(n.buffer,0,r)}pushAccessUnit(t,n){super.pushAccessUnit(t,n),this.initVPS&&(this.initVPS=null)}readVPS(t){const n=new Mb(t);n.readUByte(),n.readUByte(),n.readBits(4),n.skipBits(2),n.readBits(6);const r=n.readBits(3),i=n.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:i}}readSPS(t){const n=new Mb(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.readBits(4);const r=n.readBits(3);n.readBoolean();const i=n.readBits(2),a=n.readBoolean(),s=n.readBits(5),l=n.readUByte(),c=n.readUByte(),d=n.readUByte(),h=n.readUByte(),p=n.readUByte(),v=n.readUByte(),g=n.readUByte(),y=n.readUByte(),S=n.readUByte(),k=n.readUByte(),C=n.readUByte(),x=[],E=[];for(let qe=0;qe0)for(let qe=r;qe<8;qe++)n.readBits(2);for(let qe=0;qe1&&n.readEG();for(let wt=0;wt0&&Ct<16?(se=Rt[Ct-1],ae=Ht[Ct-1]):Ct===255&&(se=n.readBits(16),ae=n.readBits(16))}if(n.readBoolean()&&n.readBoolean(),n.readBoolean()&&(n.readBits(3),n.readBoolean(),n.readBoolean()&&(n.readUByte(),n.readUByte(),n.readUByte())),n.readBoolean()&&(n.readUEG(),n.readUEG()),n.readBoolean(),n.readBoolean(),n.readBoolean(),ge=n.readBoolean(),ge&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(Ce=n.readBits(32),Ve=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Ht=n.readBoolean(),Jt=n.readBoolean();let rn=!1;(Ht||Jt)&&(rn=n.readBoolean(),rn&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),rn&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let vt=0;vt<=r;vt++){re=n.readBoolean();const Fe=re||n.readBoolean();let Me=!1;Fe?n.readEG():Me=n.readBoolean();const Ee=Me?1:n.readUEG()+1;if(Ht)for(let We=0;We>qe&1)<<31-qe)>>>0;let me=ve.toString(16);return s===1&&me==="2"&&(me="6"),{codecString:`hvc1.${Ue}${s}.${me}.${a?"H":"L"}${C}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:i,general_profile_compatibility_flags:[l,c,d,h],general_constraint_indicator_flags:[p,v,g,y,S,k],general_level_idc:C,bit_depth:j+8,bit_depth_luma_minus8:j,bit_depth_chroma_minus8:H,min_spatial_segmentation_idc:Q,chroma_format_idc:_,frame_rate:{fixed:re,fps:Ve/Ce}},width:Ge,height:tt,pixelRatio:[se,ae]}}readPPS(t){const n=new Mb(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.skipUEG(),n.skipUEG(),n.skipBits(2),n.skipBits(3),n.skipBits(2),n.skipUEG(),n.skipUEG(),n.skipEG(),n.skipBits(2),n.readBoolean()&&n.skipUEG(),n.skipEG(),n.skipEG(),n.skipBits(4);const i=n.readBoolean(),a=n.readBoolean();let s=1;return a&&i?s=0:a?s=3:i&&(s=2),{parallelismType:s}}matchSPS(t,n){return String.fromCharCode.apply(null,t).substr(3)===String.fromCharCode.apply(null,n).substr(3)}}const ka=188;class Qp{constructor(t,n,r,i){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.logger=i,this.videoParser=null}static probe(t,n){const r=Qp.syncOffset(t);return r>0&&n.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(t){const n=t.length;let r=Math.min(ka*5,n-ka)+1,i=0;for(;i1&&(s===0&&l>2||c+ka>r))return s}else{if(l)return-1;break}i++}return-1}static createTrack(t,n){return{container:t==="video"||t==="audio"?"video/mp2t":void 0,type:t,id:J3e[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:t==="audio"?n:void 0}}resetInitSegment(t,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Qp.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=Qp.createTrack("audio",i),this._id3Track=Qp.createTrack("id3"),this._txtTrack=Qp.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:n,_id3Track:r}=this;t&&(t.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,n,r=!1,i=!1){r||(this.sampleAes=null);let a;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,d=this._txtTrack;let h=s.pid,p=s.pesData,v=l.pid,g=c.pid,y=l.pesData,S=c.pesData,k=null,C=this.pmtParsed,x=this._pmtId,E=t.length;if(this.remainderData&&(t=td(this.remainderData,t),E=t.length,this.remainderData=null),E>4;let B;if(L>1){if(B=P+5+t[P+4],B===P+ka)continue}else B=P+4;switch(O){case h:M&&(p&&(a=L1(p,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,d,a,!1)),p={data:[],size:0}),p&&(p.data.push(t.subarray(B,P+ka)),p.size+=P+ka-B);break;case v:if(M){if(y&&(a=L1(y,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,a);break;case"mp3":this.parseMPEGPES(l,a);break;case"ac3":this.parseAC3PES(l,a);break}y={data:[],size:0}}y&&(y.data.push(t.subarray(B,P+ka)),y.size+=P+ka-B);break;case g:M&&(S&&(a=L1(S,this.logger))&&this.parseID3PES(c,a),S={data:[],size:0}),S&&(S.data.push(t.subarray(B,P+ka)),S.size+=P+ka-B);break;case 0:M&&(B+=t[B]+1),x=this._pmtId=sLt(t,B);break;case x:{M&&(B+=t[B]+1);const j=aLt(t,B,this.typeSupported,r,this.observer,this.logger);h=j.videoPid,h>0&&(s.pid=h,s.segmentCodec=j.segmentVideoCodec),v=j.audioPid,v>0&&(l.pid=v,l.segmentCodec=j.segmentAudioCodec),g=j.id3Pid,g>0&&(c.pid=g),k!==null&&!C&&(this.logger.warn(`MPEG-TS PMT found at ${P} after unknown PID '${k}'. Backtracking to sync byte @${_} to parse all TS packets.`),k=null,P=_-188),C=this.pmtParsed=!0;break}case 17:case 8191:break;default:k=O;break}}else T++;T>0&&Jz(this.observer,new Error(`Found ${T} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=y,c.pesData=S;const D={audioTrack:l,videoTrack:s,id3Track:c,textTrack:d};return i&&this.extractRemainingSamples(D),D}flush(){const{remainderData:t}=this;this.remainderData=null;let n;return t?n=this.demux(t,-1,!1,!0):n={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(n),this.sampleAes?this.decrypt(n,this.sampleAes):n}extractRemainingSamples(t){const{audioTrack:n,videoTrack:r,id3Track:i,textTrack:a}=t,s=r.pesData,l=n.pesData,c=i.pesData;let d;if(s&&(d=L1(s,this.logger))?(this.readyVideoParser(r.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(r,a,d,!0),r.pesData=null)):r.pesData=s,l&&(d=L1(l,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,d);break;case"mp3":this.parseMPEGPES(n,d);break;case"ac3":this.parseAC3PES(n,d);break}n.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=l;c&&(d=L1(c,this.logger))?(this.parseID3PES(i,d),i.pesData=null):i.pesData=c}demuxSampleAes(t,n,r){const i=this.demux(t,r,!0,!this.config.progressive),a=this.sampleAes=new rLt(this.observer,this.config,n);return this.decrypt(i,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new iLt:t==="hevc"&&(this.videoParser=new oLt))}decrypt(t,n){return new Promise(r=>{const{audioTrack:i,videoTrack:a}=t;i.samples&&i.segmentCodec==="aac"?n.decryptAacSamples(i.samples,0,()=>{a.samples?n.decryptAvcSamples(a.samples,0,0,()=>{r(t)}):r(t)}):a.samples&&n.decryptAvcSamples(a.samples,0,0,()=>{r(t)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(t,n){let r=0;const i=this.aacOverFlow;let a=n.data;if(i){this.aacOverFlow=null;const p=i.missing,v=i.sample.unit.byteLength;if(p===-1)a=td(i.sample.unit,a);else{const g=v-p;i.sample.unit.set(a.subarray(0,p),g),t.samples.push(i.sample),r=i.missing}}let s,l;for(s=r,l=a.length;s0;)l+=c}}parseID3PES(t,n){if(n.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=bo({},n,{type:this._videoTrack?ic.emsg:ic.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function Zz(e,t){return((e[t+1]&31)<<8)+e[t+2]}function sLt(e,t){return(e[t+10]&31)<<8|e[t+11]}function aLt(e,t,n,r,i,a){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(e[t+1]&15)<<8|e[t+2],c=t+3+l-4,d=(e[t+10]&15)<<8|e[t+11];for(t+=12+d;t0){let v=t+5,g=p;for(;g>2;){switch(e[v]){case 106:n.ac3!==!0?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=h,s.segmentAudioCodec="ac3");break}const S=e[v+1]+2;v+=S,g-=S}}break;case 194:case 135:return Jz(i,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:s.videoPid===-1&&(s.videoPid=h,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"));break}t+=p+5}return s}function Jz(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(Pe.ERROR,Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function WF(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function L1(e,t){let n=0,r,i,a,s,l;const c=e.data;if(!e||e.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=td(c[0],c[1]),c.splice(1,1);if(r=c[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(i=(r[4]<<8)+r[5],i&&i>e.size-6)return null;const h=r[7];h&192&&(s=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,h&64?(l=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,s-l>60*9e4&&(t.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),a=r[8];let p=a+9;if(e.size<=p)return null;e.size-=p;const v=new Uint8Array(e.size);for(let g=0,y=c.length;gS){p-=S;continue}else r=r.subarray(p),S-=p,p=0;v.set(r,n),n+=S}return i&&(i-=a+3),{data:v,pts:s,dts:l,len:i}}return null}class lLt{static getSilentFrame(t,n){switch(t){case"mp4a.40.2":if(n===1)return new Uint8Array([0,200,0,128,35,128]);if(n===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(n===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(n===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(n===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(n===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(n===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Bp=Math.pow(2,32)-1;class jt{static init(){jt.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let t;for(t in jt.types)jt.types.hasOwnProperty(t)&&(jt.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);jt.HDLR_TYPES={video:n,audio:r};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);jt.STTS=jt.STSC=jt.STCO=a,jt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),jt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),jt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),jt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);jt.FTYP=jt.box(jt.types.ftyp,s,c,s,l),jt.DINF=jt.box(jt.types.dinf,jt.box(jt.types.dref,i))}static box(t,...n){let r=8,i=n.length;const a=i;for(;i--;)r+=n[i].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(t,4),i=0,r=8;i>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(t){return jt.box(jt.types.mdia,jt.mdhd(t.timescale||0,t.duration||0),jt.hdlr(t.type),jt.minf(t))}static mfhd(t){return jt.box(jt.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]))}static minf(t){return t.type==="audio"?jt.box(jt.types.minf,jt.box(jt.types.smhd,jt.SMHD),jt.DINF,jt.stbl(t)):jt.box(jt.types.minf,jt.box(jt.types.vmhd,jt.VMHD),jt.DINF,jt.stbl(t))}static moof(t,n,r){return jt.box(jt.types.moof,jt.mfhd(t),jt.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=jt.trak(t[n]);return jt.box.apply(null,[jt.types.moov,jt.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(jt.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=jt.trex(t[n]);return jt.box.apply(null,[jt.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Bp+1)),i=Math.floor(n%(Bp+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return jt.box(jt.types.mvhd,a)}static sdtp(t){const n=t.samples||[],r=new Uint8Array(4+n.length);let i,a;for(i=0;i>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(a));for(i=0;i>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(a));const l=jt.box(jt.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|t.sps.length].concat(n).concat([t.pps.length]).concat(r))),c=t.width,d=t.height,h=t.pixelRatio[0],p=t.pixelRatio[1];return jt.box(jt.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c>>8&255,c&255,d>>8&255,d&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,jt.box(jt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),jt.box(jt.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,p>>24,p>>16&255,p>>8&255,p&255])))}static esds(t){const n=t.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...n,6,1,2])}static audioStsd(t){const n=t.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount||0,0,16,0,0,0,0,n>>8&255,n&255,0,0])}static mp4a(t){return jt.box(jt.types.mp4a,jt.audioStsd(t),jt.box(jt.types.esds,jt.esds(t)))}static mp3(t){return jt.box(jt.types[".mp3"],jt.audioStsd(t))}static ac3(t){return jt.box(jt.types["ac-3"],jt.audioStsd(t),jt.box(jt.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return jt.box(jt.types.stsd,jt.STSD,jt.mp4a(t));if(n==="ac3"&&t.config)return jt.box(jt.types.stsd,jt.STSD,jt.ac3(t));if(n==="mp3"&&t.codec==="mp3")return jt.box(jt.types.stsd,jt.STSD,jt.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return jt.box(jt.types.stsd,jt.STSD,jt.avc1(t));if(n==="hevc"&&t.vps)return jt.box(jt.types.stsd,jt.STSD,jt.hvc1(t))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${t.type} segment codec (${n}/${t.codec})`)}static tkhd(t){const n=t.id,r=(t.duration||0)*(t.timescale||0),i=t.width||0,a=t.height||0,s=Math.floor(r/(Bp+1)),l=Math.floor(r%(Bp+1));return jt.box(jt.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,i&255,0,0,a>>8&255,a&255,0,0]))}static traf(t,n){const r=jt.sdtp(t),i=t.id,a=Math.floor(n/(Bp+1)),s=Math.floor(n%(Bp+1));return jt.box(jt.types.traf,jt.box(jt.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),jt.box(jt.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,s>>24,s>>16&255,s>>8&255,s&255])),jt.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,jt.box(jt.types.trak,jt.tkhd(t),jt.mdia(t))}static trex(t){const n=t.id;return jt.box(jt.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,n){const r=t.samples||[],i=r.length,a=12+16*i,s=new Uint8Array(a);let l,c,d,h,p,v;for(n+=8+a,s.set([t.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),l=0;l>>24&255,d>>>16&255,d>>>8&255,d&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,p.isLeading<<2|p.dependsOn,p.isDependedOn<<6|p.hasRedundancy<<4|p.paddingValue<<1|p.isNonSync,p.degradPrio&61440,p.degradPrio&15,v>>>24&255,v>>>16&255,v>>>8&255,v&255],12+16*l);return jt.box(jt.types.trun,s)}static initSegment(t){jt.types||jt.init();const n=jt.moov(t);return td(jt.FTYP,n)}static hvc1(t){const n=t.params,r=[t.vps,t.sps,t.pps],i=4,a=new Uint8Array([1,n.general_profile_space<<6|(n.general_tier_flag?32:0)|n.general_profile_idc,n.general_profile_compatibility_flags[0],n.general_profile_compatibility_flags[1],n.general_profile_compatibility_flags[2],n.general_profile_compatibility_flags[3],n.general_constraint_indicator_flags[0],n.general_constraint_indicator_flags[1],n.general_constraint_indicator_flags[2],n.general_constraint_indicator_flags[3],n.general_constraint_indicator_flags[4],n.general_constraint_indicator_flags[5],n.general_level_idc,240|n.min_spatial_segmentation_idc>>8,255&n.min_spatial_segmentation_idc,252|n.parallelismType,252|n.chroma_format_idc,248|n.bit_depth_luma_minus8,248|n.bit_depth_chroma_minus8,0,parseInt(n.frame_rate.fps),i-1|n.temporal_id_nested<<2|n.num_temporal_layers<<3|(n.frame_rate.fixed?64:0),r.length]);let s=a.length;for(let y=0;y>8,r[y][S].length&255]),s),s+=2,l.set(r[y][S],s),s+=r[y][S].length}const d=jt.box(jt.types.hvcC,l),h=t.width,p=t.height,v=t.pixelRatio[0],g=t.pixelRatio[1];return jt.box(jt.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,h>>8&255,h&255,p>>8&255,p&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d,jt.box(jt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),jt.box(jt.types.pasp,new Uint8Array([v>>24,v>>16&255,v>>8&255,v&255,g>>24,g>>16&255,g>>8&255,g&255])))}}jt.types=void 0;jt.HDLR_TYPES=void 0;jt.STTS=void 0;jt.STSC=void 0;jt.STCO=void 0;jt.STSZ=void 0;jt.VMHD=void 0;jt.SMHD=void 0;jt.STSD=void 0;jt.FTYP=void 0;jt.DINF=void 0;const K2e=9e4;function YG(e,t,n=1,r=!1){const i=e*t*n;return r?Math.round(i):i}function uLt(e,t,n=1,r=!1){return YG(e,t,1/n,r)}function k4(e,t=!1){return YG(e,1e3,1/K2e,t)}function cLt(e,t=1){return YG(e,K2e,1/t)}function jue(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const dLt=10*1e3,fLt=1024,hLt=1152,pLt=1536;let D1=null,GF=null;function Vue(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class s8 extends od{constructor(t,n,r,i){if(super("mp4-remuxer",i),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.ISGenerated=!1,D1===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);D1=s?parseInt(s[1]):0}if(GF===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);GF=a?parseInt(a[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){const n=this._initPTS;(!n||!t||t.trackId!==n.trackId||t.baseTime!==n.baseTime||t.timescale!==n.timescale)&&this.log(`Reset initPTS: ${n&&jue(n)} > ${t&&jue(t)}`),this._initPTS=this._initDTS=t}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let n=!1;const r=t[0].pts,i=t.reduce((a,s)=>{let l=s.pts,c=l-a;return c<-4294967296&&(n=!0,l=nc(l,r),c=l-a),c>0?a:l},r);return n&&this.debug("PTS rollover detected"),i}remux(t,n,r,i,a,s,l,c){let d,h,p,v,g,y,S=a,k=a;const C=t.pid>-1,x=n.pid>-1,E=n.samples.length,_=t.samples.length>0,T=l&&E>0||E>1;if((!C||_)&&(!x||T)||this.ISGenerated||l){if(this.ISGenerated){var P,M,O,L;const U=this.videoTrackConfig;(U&&(n.width!==U.width||n.height!==U.height||((P=n.pixelRatio)==null?void 0:P[0])!==((M=U.pixelRatio)==null?void 0:M[0])||((O=n.pixelRatio)==null?void 0:O[1])!==((L=U.pixelRatio)==null?void 0:L[1]))||!U&&T||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const B=this.isVideoContiguous;let j=-1,H;if(T&&(j=vLt(n.samples),!B&&this.config.forceKeyFrameOnDiscontinuity))if(y=!0,j>0){this.warn(`Dropped ${j} out of ${E} video samples due to a missing keyframe`);const U=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(j),n.dropped+=j,k+=(n.samples[0].pts-U)/n.inputTimeScale,H=k}else j===-1&&(this.warn(`No keyframe found out of ${E} video samples`),y=!1);if(this.ISGenerated){if(_&&T){const U=this.getVideoStartPts(n.samples),Y=(nc(t.samples[0].pts,U)-U)/n.inputTimeScale;S+=Math.max(0,Y),k+=Math.max(0,-Y)}if(_){if(t.samplerate||(this.warn("regenerate InitSegment as audio detected"),p=this.generateIS(t,n,a,s)),h=this.remuxAudio(t,S,this.isAudioContiguous,s,x||T||c===Qn.AUDIO?k:void 0),T){const U=h?h.endPTS-h.startPTS:0;n.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(t,n,a,s)),d=this.remuxVideo(n,k,B,U)}}else T&&(d=this.remuxVideo(n,k,B,0));d&&(d.firstKeyFrame=j,d.independent=j!==-1,d.firstKeyFramePTS=H)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=q2e(r,a,this._initPTS,this._initDTS)),i.samples.length&&(v=Y2e(i,a,this._initPTS))),{audio:h,video:d,initSegment:p,independent:y,text:v,id3:g}}computeInitPts(t,n,r,i){const a=Math.round(r*n);let s=nc(t,a);if(s0?Q-1:Q].dts&&(x=!0)}x&&s.sort(function(Q,se){const ae=Q.dts-se.dts,re=Q.pts-se.pts;return ae||re}),y=s[0].dts,S=s[s.length-1].dts;const _=S-y,T=_?Math.round(_/(c-1)):g||t.inputTimeScale/30;if(r){const Q=y-E,se=Q>T,ae=Q<-1;if((se||ae)&&(se?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${k4(Q,!0)} ms (${Q}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${k4(-Q,!0)} ms (${Q}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!ae||E>=s[0].pts||D1)){y=E;const re=s[0].pts-Q;if(se)s[0].dts=y,s[0].pts=re;else{let Ce=!0;for(let Ve=0;Vere&&Ce);Ve++){const ge=s[Ve].pts;if(s[Ve].dts-=Q,s[Ve].pts-=Q,Ve0?se.dts-s[Q-1].dts:T;if(Ce=Q>0?se.pts-s[Q-1].pts:T,ge.stretchShortVideoTrack&&this.nextAudioTs!==null){const Ge=Math.floor(ge.maxBufferHole*a),tt=(i?k+i*a:this.nextAudioTs+h)-se.pts;tt>Ge?(g=tt-xe,g<0?g=xe:j=!0,this.log(`It is approximately ${tt/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=xe}else g=xe}const Ve=Math.round(se.pts-se.dts);H=Math.min(H,g),K=Math.max(K,g),U=Math.min(U,Ce),Y=Math.max(Y,Ce),l.push(Vue(se.key,g,re,Ve))}if(l.length){if(D1){if(D1<70){const Q=l[0].flags;Q.dependsOn=2,Q.isNonSync=0}}else if(GF&&Y-U0&&(i&&Math.abs(E-(C+x))<9e3||Math.abs(nc(S[0].pts,E)-(C+x))<20*h),S.forEach(function(Y){Y.pts=nc(Y.pts,E)}),!r||C<0){const Y=S.length;if(S=S.filter(ie=>ie.pts>=0),Y!==S.length&&this.warn(`Removed ${S.length-Y} of ${Y} samples (initPTS ${x} / ${s})`),!S.length)return;a===0?C=0:i&&!y?C=Math.max(0,E-x):C=S[0].pts-x}if(t.segmentCodec==="aac"){const Y=this.config.maxAudioFramesDrift;for(let ie=0,te=C+x;ie=Y*h&&se0){P+=k;try{D=new Uint8Array(P)}catch(se){this.observer.emit(Pe.ERROR,Pe.ERROR,{type:ur.MUX_ERROR,details:zt.REMUX_ALLOC_ERROR,fatal:!1,error:se,bytes:P,reason:`fail allocating audio mdat ${P}`});return}v||(new DataView(D.buffer).setUint32(0,P),D.set(jt.types.mdat,4))}else return;D.set(W,k);const Q=W.byteLength;k+=Q,g.push(Vue(!0,d,Q,0)),T=q}const O=g.length;if(!O)return;const L=g[g.length-1];C=T-x,this.nextAudioTs=C+c*L.duration;const B=v?new Uint8Array(0):jt.moof(t.sequenceNumber++,_/c,bo({},t,{samples:g}));t.samples=[];const j=(_-x)/s,H=C/s,K={data1:B,data2:D,startPTS:j,endPTS:H,startDTS:j,endDTS:H,type:"audio",hasAudio:!0,hasVideo:!1,nb:O};return this.isAudioContiguous=!0,K}}function nc(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function vLt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class mLt extends od{constructor(t,n,r,i){super("passthrough-remuxer",i),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(t){this.lastEndTime=null;const n=this.initPTS;n&&t&&n.baseTime===t.baseTime&&n.timescale===t.timescale||(this.initPTS=t)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(t,n,r,i){this.audioCodec=n,this.videoCodec=r,this.generateInitSegment(t,i),this.emitInitSegment=!0}generateInitSegment(t,n){let{audioCodec:r,videoCodec:i}=this;if(!(t!=null&&t.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:a,video:s}=this.initData=t2e(t);if(n)rAt(t,n);else{const c=a||s;c!=null&&c.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${c.codec}")!`)}a&&(r=zue(a,To.AUDIO,this)),s&&(i=zue(s,To.VIDEO,this));const l={};a&&s?l.audiovideo={container:"video/mp4",codec:r+","+i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:t,id:"main"}:a?l.audio={container:"audio/mp4",codec:r,encrypted:a.encrypted,initSegment:t,id:"audio"}:s?l.video={container:"video/mp4",codec:i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:t,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=l}remux(t,n,r,i,a,s){var l,c;let{initPTS:d,lastEndTime:h}=this;const p={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};Bn(h)||(h=this.lastEndTime=a||0);const v=n.samples;if(!v.length)return p;const g={initPTS:void 0,timescale:void 0,trackId:void 0};let y=this.initData;if((l=y)!=null&&l.length||(this.generateInitSegment(v),y=this.initData),!((c=y)!=null&&c.length))return this.warn("Failed to generate initSegment."),p;this.emitInitSegment&&(g.tracks=this.initTracks,this.emitInitSegment=!1);const S=oAt(v,y,this),k=y.audio?S[y.audio.id]:null,C=y.video?S[y.video.id]:null,x=AC(C,1/0),E=AC(k,1/0),_=AC(C,0,!0),T=AC(k,0,!0);let D=a,P=0;const M=k&&(!C||!d&&E0?this.lastEndTime=B:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const j=!!y.audio,H=!!y.video;let U="";j&&(U+="audio"),H&&(U+="video");const K=(y.audio?y.audio.encrypted:!1)||(y.video?y.video.encrypted:!1),Y={data1:v,startPTS:L,startDTS:L,endPTS:B,endDTS:B,type:U,hasAudio:j,hasVideo:H,nb:1,dropped:0,encrypted:K};p.audio=j&&!H?Y:void 0,p.video=H?Y:void 0;const ie=C?.sampleCount;if(ie){const te=C.keyFrameIndex,W=te!==-1;Y.nb=ie,Y.dropped=te===0||this.isVideoContiguous?0:W?te:ie,Y.independent=W,Y.firstKeyFrame=te,W&&C.keyFrameStart&&(Y.firstKeyFramePTS=(C.keyFrameStart-d.baseTime)/d.timescale),this.isVideoContiguous||(p.independent=W),this.isVideoContiguous||(this.isVideoContiguous=W),Y.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${te}/${ie} dropped: ${Y.dropped} start: ${Y.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=q2e(r,a,d,d),i.samples.length&&(p.text=Y2e(i,a,d)),p}}function AC(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function gLt(e,t,n,r){if(e===null)return!0;const i=Math.max(r,1),a=t-e.baseTime/e.timescale;return Math.abs(a-n)>i}function zue(e,t,n){const r=e.codec;return r&&r.length>4?r:t===To.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?OT(r,!1):(n.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"):(n.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1")}let mh;try{mh=self.performance.now.bind(self.performance)}catch{mh=Date.now}const a8=[{demux:nLt,remux:mLt},{demux:Qp,remux:s8},{demux:JIt,remux:s8},{demux:eLt,remux:s8}];a8.splice(2,0,{demux:QIt,remux:s8});class Uue{constructor(t,n,r,i,a,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=n,this.config=r,this.id=a,this.logger=s}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,n,r,i){const a=r.transmuxing;a.executeStart=mh();let s=new Uint8Array(t);const{currentTransmuxState:l,transmuxConfig:c}=this;i&&(this.currentTransmuxState=i);const{contiguous:d,discontinuity:h,trackSwitch:p,accurateTimeOffset:v,timeOffset:g,initSegmentChange:y}=i||l,{audioCodec:S,videoCodec:k,defaultInitPts:C,duration:x,initSegmentData:E}=c,_=yLt(s,n);if(_&&Sy(_.method)){const M=this.getDecrypter(),O=jG(_.method);if(M.isSync()){let L=M.softwareDecrypt(s,_.key.buffer,_.iv.buffer,O);if(r.part>-1){const j=M.flush();L=j&&j.buffer}if(!L)return a.executeEnd=mh(),KF(r);s=new Uint8Array(L)}else return this.asyncResult=!0,this.decryptionPromise=M.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,O).then(L=>{const B=this.push(L,null,r);return this.decryptionPromise=null,B}),this.decryptionPromise}const T=this.needsProbing(h,p);if(T){const M=this.configureTransmuxer(s);if(M)return this.logger.warn(`[transmuxer] ${M.message}`),this.observer.emit(Pe.ERROR,Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,fatal:!1,error:M,reason:M.message}),a.executeEnd=mh(),KF(r)}(h||p||y||T)&&this.resetInitSegment(E,S,k,x,n),(h||y||T)&&this.resetInitialTimestamp(C),d||this.resetContiguity();const D=this.transmux(s,_,g,v,r);this.asyncResult=D_(D);const P=this.currentTransmuxState;return P.contiguous=!0,P.discontinuity=!1,P.trackSwitch=!1,a.executeEnd=mh(),D}flush(t){const n=t.transmuxing;n.executeStart=mh();const{decrypter:r,currentTransmuxState:i,decryptionPromise:a}=this;if(a)return this.asyncResult=!0,a.then(()=>this.flush(t));const s=[],{timeOffset:l}=i;if(r){const p=r.flush();p&&s.push(this.push(p.buffer,null,t))}const{demuxer:c,remuxer:d}=this;if(!c||!d){n.executeEnd=mh();const p=[KF(t)];return this.asyncResult?Promise.resolve(p):p}const h=c.flush(l);return D_(h)?(this.asyncResult=!0,h.then(p=>(this.flushRemux(s,p,t),s))):(this.flushRemux(s,h,t),this.asyncResult?Promise.resolve(s):s)}flushRemux(t,n,r){const{audioTrack:i,videoTrack:a,id3Track:s,textTrack:l}=n,{accurateTimeOffset:c,timeOffset:d}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===Qn.MAIN?"level":"track"} ${r.level}`);const h=this.remuxer.remux(i,a,s,l,d,c,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=mh()}resetInitialTimestamp(t){const{demuxer:n,remuxer:r}=this;!n||!r||(n.resetTimeStamp(t),r.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetContiguity(),n.resetNextTimestamp())}resetInitSegment(t,n,r,i,a){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(t,n,r,i),l.resetInitSegment(t,n,r,a))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,n,r,i,a){let s;return n&&n.method==="SAMPLE-AES"?s=this.transmuxSampleAes(t,n,r,i,a):s=this.transmuxUnencrypted(t,r,i,a),s}transmuxUnencrypted(t,n,r,i){const{audioTrack:a,videoTrack:s,id3Track:l,textTrack:c}=this.demuxer.demux(t,n,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(a,s,l,c,n,r,!1,this.id),chunkMeta:i}}transmuxSampleAes(t,n,r,i,a){return this.demuxer.demuxSampleAes(t,n,r).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,r,i,!1,this.id),chunkMeta:a}))}configureTransmuxer(t){const{config:n,observer:r,typeSupported:i}=this;let a;for(let p=0,v=a8.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const KF=e=>({remuxResult:{},chunkMeta:e});function D_(e){return"then"in e&&e.then instanceof Function}class bLt{constructor(t,n,r,i,a){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=n,this.initSegmentData=r,this.duration=i,this.defaultInitPts=a||null}}class _Lt{constructor(t,n,r,i,a,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=n,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=a,this.initSegmentChange=s}}let Hue=0;class X2e{constructor(t,n,r,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Hue++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=c=>{const d=c.data,h=this.hls;if(!(!h||!(d!=null&&d.event)||d.instanceNo!==this.instanceNo))switch(d.event){case"init":{var p;const v=(p=this.workerContext)==null?void 0:p.objectURL;v&&self.URL.revokeObjectURL(v);break}case"transmuxComplete":{this.handleTransmuxComplete(d.data);break}case"flush":{this.onFlush(d.data);break}case"workerLog":{h.logger[d.data.logType]&&h.logger[d.data.logType](d.data.message);break}default:{d.data=d.data||{},d.data.frag=this.frag,d.data.part=this.part,d.data.id=this.id,h.trigger(d.event,d.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const d=new Error(`${c.message} (${c.filename}:${c.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d})};const a=t.config;this.hls=t,this.id=n,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;const s=(c,d)=>{d=d||{},d.frag=this.frag||void 0,c===Pe.ERROR&&(d=d,d.parent=this.id,d.part=this.part,this.error=d.error),this.hls.trigger(c,d)};this.observer=new UG,this.observer.on(Pe.FRAG_DECRYPTED,s),this.observer.on(Pe.ERROR,s);const l=oue(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||CIt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=EIt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=wIt());const{worker:h}=this.workerContext;h.addEventListener("message",this.onWorkerMessage),h.addEventListener("error",this.onWorkerError),h.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:n,config:Ao(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new Uue(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new Uue(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Hue++;const n=this.hls.config,r=oue(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:Ao(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),TIt(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(t,n,r,i,a,s,l,c,d,h){var p,v;d.transmuxing.start=self.performance.now();const{instanceNo:g,transmuxer:y}=this,S=s?s.start:a.start,k=a.decryptdata,C=this.frag,x=!(C&&a.cc===C.cc),E=!(C&&d.level===C.level),_=C?d.sn-C.sn:-1,T=this.part?d.part-this.part.index:-1,D=_===0&&d.id>1&&d.id===C?.stats.chunkCount,P=!E&&(_===1||_===0&&(T===1||D&&T<=0)),M=self.performance.now();(E||_||a.stats.parsing.start===0)&&(a.stats.parsing.start=M),s&&(T||!P)&&(s.stats.parsing.start=M);const O=!(C&&((p=a.initSegment)==null?void 0:p.url)===((v=C.initSegment)==null?void 0:v.url)),L=new _Lt(x,P,c,E,S,O);if(!P||x||O){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${d.sn}${d.part>-1?" part: "+d.part:""} ${this.id===Qn.MAIN?"level":"track"}: ${d.level} id: ${d.id} +${n.m3u8}`)}function x2e(e,t,n=!0){const r=t.startSN+t.skippedSegments-e.startSN,i=e.fragments,a=r>=0;let s=0;if(a&&rt){const a=r[r.length-1].duration*1e3;a{var r;(r=t.details)==null||r.fragments.forEach(i=>{i.level=n,i.initSegment&&(i.initSegment.level=n)})})}function xIt(e,t){return e!==t&&t?Oue(e)!==Oue(t):!1}function Oue(e){return e.replace(/\?[^?]*$/,"")}function Rb(e,t){for(let r=0,i=e.length;re.startCC)}function $ue(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function I2e(e,t){const n=t.fragments;for(let r=0,i=n.length;r{const{config:s,fragCurrent:l,media:c,mediaBuffer:d,state:h}=this,p=c?c.currentTime:0,v=Vr.bufferInfo(d||c,p,s.maxBufferHole),g=!v.len;if(this.log(`Media seeking to ${Bn(p)?p.toFixed(3):p}, state: ${h}, ${g?"out of":"in"} buffer`),this.state===nn.ENDED)this.resetLoadingState();else if(l){const y=s.maxFragLookUpTolerance,S=l.start-y,k=l.start+l.duration+y;if(g||kv.end){const w=p>k;(py&&(this.lastCurrentTime=p),!this.loadingParts){const S=Math.max(v.end,p),k=this.shouldLoadParts(this.getLevelDetails(),S);k&&(this.log(`LL-Part loading ON after seeking to ${p.toFixed(2)} with buffer @${S.toFixed(2)}`),this.loadingParts=k)}}this.hls.hasEnoughToStart||(this.log(`Setting ${g?"startPosition":"nextLoadPosition"} to ${p} for seek without enough to start`),this.nextLoadPosition=p,g&&(this.startPosition=p)),g&&this.state===nn.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=a,this.hls=t,this.fragmentLoader=new tIt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new NG(t.config)}registerListeners(){const{hls:t}=this;t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Pe.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===nn.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;t!=null&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=nn.STOPPED}get startPositionValue(){const{nextLoadPosition:t,startPosition:n}=this;return n===-1&&t?t:n}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(t,n){if(n.live||!this.media)return!1;const r=t.end||0,i=this.config.timelineOffset||0;if(r<=i)return!1;const a=t.buffered;this.config.maxBufferHole&&a&&a.length>1&&(t=Vr.bufferedInfo(a,t.start,0));const s=t.nextStart;if(s&&s>i&&s{const s=a.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${a.part?" part: "+a.part.index:""} of ${this.fragInfo(s,!1,a.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(a)};this._doFragLoad(t,n,r,i).then(a=>{if(!a)return;const s=this.state,l=a.frag;if(this.fragContextChanged(l)){(s===nn.FRAG_LOADING||!this.fragCurrent&&s===nn.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=nn.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(Pe.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===nn.STOPPED||this.state===nn.ERROR||(this.warn(`Frag error: ${a?.message||a}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===da.APPENDING){const a=t.type,s=this.getFwdBufferInfo(this.mediaBuffer,a),l=Math.max(t.duration,s?s.len:this.config.maxBufferLength),c=this.backtrackFragment;((c?t.sn-c.sn:0)===1||this.reduceMaxBufferLength(l,t.duration))&&r.removeFragment(t)}else((n=this.mediaBuffer)==null?void 0:n.buffered.length)===0?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===da.PARTIAL&&r.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const n=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:n,part:null,stats:n.stats,id:n.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}waitForLive(t){const n=t.details;return n?.live&&n.type!=="EVENT"&&(this.levelLastLoaded!==t||n.expired)}flushMainBuffer(t,n,r=null){if(!(t-n))return;const i={startOffset:t,endOffset:n,type:r};this.hls.trigger(Pe.BUFFER_FLUSHING,i)}_loadInitSegment(t,n){this._doFragLoad(t,n).then(r=>{const i=r?.frag;if(!i||this.fragContextChanged(i)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:i}=this,{frag:a,payload:s}=r,l=a.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&ky(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,jG(l.method)).catch(d=>{throw i.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:a}),d}).then(d=>{const h=self.performance.now();return i.trigger(Pe.FRAG_DECRYPTED,{frag:a,payload:d,stats:{tstart:c,tdecrypt:h}}),r.payload=d,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===nn.STOPPED||this.state===nn.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}completeInitSegmentLoad(t){const{levels:n}=this;if(!n)throw new Error("init load aborted, missing levels");const r=t.frag.stats;this.state!==nn.STOPPED&&(this.state=nn.IDLE),t.frag.data=new Uint8Array(t.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(t,n){var r,i;const a=t.tracks;if(a&&!n.encrypted&&((r=a.audio)!=null&&r.encrypted||(i=a.video)!=null&&i.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,l=new Error(`Encrypted track with no key in ${this.fragInfo(n)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(l.message),!s||s.mediaKeys?!1:(this.hls.trigger(Pe.ERROR,{type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_KEYS,fatal:!1,error:l,frag:n}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(t){const{fragCurrent:n}=this;return!t||!n||t.sn!==n.sn||t.level!==n.level}fragBufferedComplete(t,n){const r=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)} > buffer:${r?TIt.toString(Vr.getBuffered(r)):"(detached)"})`),qs(t)){var i;if(t.type!==Qn.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=nn.IDLE;return}}const a=(i=this.levels)==null?void 0:i[t.level];a!=null&&a.fragmentError&&(this.log(`Resetting level fragment error count of ${a.fragmentError} on frag buffered`),a.fragmentError=0)}this.state=nn.IDLE}_handleFragmentLoadComplete(t){const{transmuxer:n}=this;if(!n)return;const{frag:r,part:i,partsLoaded:a}=t,s=!a||a.length===0||a.some(c=>!c),l=new FG(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!s);n.flush(l)}_handleFragmentLoadProgress(t){}_doFragLoad(t,n,r=null,i){var a;this.fragCurrent=t;const s=n.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;if(t.encrypted&&!((a=t.decryptdata)!=null&&a.key)){if(this.log(`Loading key for ${t.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${t.level}`),this.state=nn.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(v=>{if(!this.fragContextChanged(v.frag))return this.hls.trigger(Pe.KEY_LOADED,v),this.state===nn.KEY_LOADING&&(this.state=nn.IDLE),v}),this.hls.trigger(Pe.KEY_LOADING,{frag:t}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else t.encrypted||(l=this.keyLoader.loadClear(t,s.encryptedFragments,this.startFragRequested),l&&this.log("[eme] blocking frag load until media-keys acquired"));const c=this.fragPrevious;if(qs(t)&&(!c||t.sn!==c.sn)){const v=this.shouldLoadParts(n.details,t.end);v!==this.loadingParts&&(this.log(`LL-Part loading ${v?"ON":"OFF"} loading sn ${c?.sn}->${t.sn}`),this.loadingParts=v)}if(r=Math.max(t.start,r||0),this.loadingParts&&qs(t)){const v=s.partList;if(v&&i){r>s.fragmentEnd&&s.fragmentHint&&(t=s.fragmentHint);const g=this.getNextPart(v,t,r);if(g>-1){const y=v[g];t=this.fragCurrent=y.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${y.index} (${g}/${v.length-1}) of ${this.fragInfo(t,!1,y)}) cc: ${t.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=y.start+y.duration,this.state=nn.FRAG_LOADING;let S;return l?S=l.then(k=>!k||this.fragContextChanged(k.frag)?null:this.doFragPartsLoad(t,y,n,i)).catch(k=>this.handleFragLoadError(k)):S=this.doFragPartsLoad(t,y,n,i).catch(k=>this.handleFragLoadError(k)),this.hls.trigger(Pe.FRAG_LOADING,{frag:t,part:y,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):S}else if(!t.url||this.loadedEndOfParts(v,r))return Promise.resolve(null)}}if(qs(t)&&this.loadingParts){var d;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(d=s.partList)==null?void 0:d.filter(v=>v.loaded).map(v=>`[${v.start}-${v.end}]`)}`),this.loadingParts=!1}else if(!t.url)return Promise.resolve(null);this.log(`Loading ${t.type} sn: ${t.sn} of ${this.fragInfo(t,!1)}) cc: ${t.cc} ${"["+s.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(r.toFixed(3))}`),Bn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=nn.FRAG_LOADING;const h=this.config.progressive;let p;return h&&l?p=l.then(v=>!v||this.fragContextChanged(v.frag)?null:this.fragmentLoader.load(t,i)).catch(v=>this.handleFragLoadError(v)):p=Promise.all([this.fragmentLoader.load(t,h?i:void 0),l]).then(([v])=>(!h&&i&&i(v),v)).catch(v=>this.handleFragLoadError(v)),this.hls.trigger(Pe.FRAG_LOADING,{frag:t,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p}doFragPartsLoad(t,n,r,i){return new Promise((a,s)=>{var l;const c=[],d=(l=r.details)==null?void 0:l.partList,h=p=>{this.fragmentLoader.loadPart(t,p,i).then(v=>{c[p.index]=v;const g=v.part;this.hls.trigger(Pe.FRAG_LOADED,v);const y=Mue(r.details,t.sn,p.index+1)||T2e(d,t.sn,p.index+1);if(y)h(y);else return a({frag:t,part:g,partsLoaded:c})}).catch(s)};h(n)})}handleFragLoadError(t){if("data"in t){const n=t.data;n.frag&&n.details===zt.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===cr.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(Pe.ERROR,n)}else this.hls.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==nn.PARSING){!this.fragCurrent&&this.state!==nn.STOPPED&&this.state!==nn.ERROR&&(this.state=nn.IDLE);return}const{frag:r,part:i,level:a}=n,s=self.performance.now();r.stats.parsing.end=s,i&&(i.stats.parsing.end=s);const l=this.getLevelDetails(),d=l&&r.sn>l.endSN||this.shouldLoadParts(l,r.end);d!==this.loadingParts&&(this.log(`LL-Part loading ${d?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=d),this.updateLevelTiming(r,i,a,t.partial)}shouldLoadParts(t,n){if(this.config.lowLatencyMode){if(!t)return this.loadingParts;if(t.partList){var r;const a=t.partList[0];if(a.fragment.type===Qn.SUBTITLE)return!1;const s=a.end+(((r=t.fragmentHint)==null?void 0:r.duration)||0);if(n>=s){var i;if((this.hls.hasEnoughToStart?((i=this.media)==null?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>a.start-a.fragment.duration)return!0}}}return!1}getCurrentContext(t){const{levels:n,fragCurrent:r}=this,{level:i,sn:a,part:s}=t;if(!(n!=null&&n[i]))return this.warn(`Levels object was unset while buffering fragment ${a} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const l=n[i],c=l.details,d=s>-1?Mue(c,a,s):null,h=d?d.fragment:E2e(c,a,r);return h?(r&&r!==h&&(h.stats=r.stats),{frag:h,part:d,level:l}):null}bufferFragmentData(t,n,r,i,a){if(this.state!==nn.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=td(s,l)),!c.length)return;const d=this.initPTS[n.cc],h=d?-d.baseTime/d.timescale:void 0,p={type:t.type,frag:n,part:r,chunkMeta:i,offset:h,parent:n.type,data:c};if(this.hls.trigger(Pe.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!Vr.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,i=Vr.bufferInfo(n,r,0),a=t.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,a*.25),l=Math.max(Math.min(t.start-s,i.end-s),r+s);t.start-l>s&&this.flushMainBuffer(l,t.start)}getFwdBufferInfo(t,n){var r;const i=this.getLoadPosition();if(!Bn(i))return null;const s=this.lastCurrentTime>i||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(t,i,n,s)}getFwdBufferInfoAtPos(t,n,r,i){const a=Vr.bufferInfo(t,n,i);if(a.len===0&&a.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(n,r);if(s&&(a.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(a.nextStart,s.end)-n,i);return Vr.bufferInfo(t,n,l)}}return a}getMaxBufferLength(t){const{config:n}=this;let r;return t?r=Math.max(8*n.maxBufferSize/t,n.maxBufferLength):r=n.maxBufferLength,Math.min(r,n.maxMaxBufferLength)}reduceMaxBufferLength(t,n){const r=this.config,i=Math.max(Math.min(t-n,r.maxBufferLength),n),a=Math.max(t-n*3,r.maxMaxBufferLength/2,i);return a>=i?(r.maxMaxBufferLength=a,this.warn(`Reduce max buffer length to ${a}s`),!0):!1}getAppendedFrag(t,n=Qn.MAIN){const r=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(t,n):null;return r&&"fragment"in r?r.fragment:r}getNextFragment(t,n){const r=n.fragments,i=r.length;if(!i)return null;const{config:a}=this,s=r[0].start,l=a.lowLatencyMode&&!!n.partList;let c=null;if(n.live){const p=a.initialLiveManifestSize;if(i=s?v:g)||c.start:t;this.log(`Setting startPosition to ${y} to match start frag at live edge. mainStart: ${v} liveSyncPosition: ${g} frag.start: ${(d=c)==null?void 0:d.start}`),this.startPosition=this.nextLoadPosition=y}}else t<=s&&(c=r[0]);if(!c){const p=this.loadingParts?n.partEnd:n.fragmentEnd;c=this.getFragmentAtPosition(t,p,n)}let h=this.filterReplacedPrimary(c,n);if(!h&&c){const p=c.sn-n.startSN;h=this.filterReplacedPrimary(r[p+1]||null,n)}return this.mapToInitFragWhenRequired(h)}isLoopLoading(t,n){const r=this.fragmentTracker.getState(t);return(r===da.OK||r===da.PARTIAL&&!!t.gap)&&this.nextLoadPosition>n}getNextFragmentLoopLoading(t,n,r,i,a){let s=null;if(t.gap&&(s=this.getNextFragment(this.nextLoadPosition,n),s&&!s.gap&&r.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i,0);if(l!==null&&r.len+l.len>=a){const c=s.sn;return this.loopSn!==c&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${c}`),this.loopSn=c),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(Bue(this.config)){var t;if((t=this.hls.interstitialsManager)==null||(t=t.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(t,n){if(!t)return t;if(Bue(this.config)&&t.type!==Qn.SUBTITLE){const r=this.hls.interstitialsManager,i=r?.bufferingItem;if(i){const s=i.event;if(s){if(s.appendInPlace||Math.abs(t.start-i.start)>1||i.start===0)return null}else if(t.end<=i.start&&n?.live===!1||t.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||t.start-i.end>1))return null}const a=r?.playerQueue;if(a)for(let s=a.length;s--;){const l=a[s].interstitial;if(l.appendInPlace&&t.start>=l.startTime&&t.end<=l.resumeTime)return null}}return t}mapToInitFragWhenRequired(t){return t!=null&&t.initSegment&&!t.initSegment.data&&!this.bitrateTest?t.initSegment:t}getNextPart(t,n,r){let i=-1,a=!1,s=!0;for(let l=0,c=t.length;l-1&&rr.start)return!0}return!1}getInitialLiveFragment(t){const n=t.fragments,r=this.fragPrevious;let i=null;if(r){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),i=UAt(n,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const a=r.sn+1;if(a>=t.startSN&&a<=t.endSN){const s=n[a-t.startSN];r.cc===s.cc&&(i=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=f2e(t,r.cc,r.end),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const a=this.hls.liveSyncPosition;a!==null&&(i=this.getFragmentAtPosition(a,this.bitrateTest?t.fragmentEnd:t.edge,t))}return i}getFragmentAtPosition(t,n,r){const{config:i}=this;let{fragPrevious:a}=this,{fragments:s,endSN:l}=r;const{fragmentHint:c}=r,{maxFragLookUpTolerance:d}=i,h=r.partList,p=!!(this.loadingParts&&h!=null&&h.length&&c);p&&!this.bitrateTest&&h[h.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let v;if(tn-d||(g=this.media)!=null&&g.paused||!this.startFragRequested?0:d;v=Hm(a,s,t,S)}else v=s[s.length-1];if(v){const y=v.sn-r.startSN,S=this.fragmentTracker.getState(v);if((S===da.OK||S===da.PARTIAL&&v.gap)&&(a=v),a&&v.sn===a.sn&&(!p||h[0].fragment.sn>v.sn||!r.live)&&v.level===a.level){const w=s[y+1];v.sn${t.startSN} fragments: ${i}`),c}return a}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*3)}setStartPosition(t,n){let r=this.startPosition;r=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(t,n){this.transmuxer&&t.type===this.playlistType&&qs(t)&&t.stats.aborted&&(this.log(`Fragment ${t.sn}${n?" part "+n.index:""} of ${this.playlistLabel()} ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){(!this.fragCurrent||!this.fragContextChanged(t)&&this.state!==nn.FRAG_LOADING_WAITING_RETRY)&&(this.state=nn.IDLE)}onFragmentOrKeyLoadError(t,n){var r;if(n.chunkMeta&&!n.frag){const w=this.getCurrentContext(n.chunkMeta);w&&(n.frag=w.frag)}const i=n.frag;if(!i||i.type!==t||!this.levels)return;if(this.fragContextChanged(i)){var a;this.warn(`Frag load error must match current frag to retry ${i.url} > ${(a=this.fragCurrent)==null?void 0:a.url}`);return}const s=n.details===zt.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(i,!0);const l=n.errorAction;if(!l){this.state=nn.ERROR;return}const{action:c,flags:d,retryCount:h=0,retryConfig:p}=l,v=!!p,g=v&&c===ja.RetryRequest,y=v&&!l.resolved&&d===nc.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&y&&qs(i)&&!i.endList&&S&&!p2e(n))this.resetFragmentErrors(t),this.treatAsGap(i),l.resolved=!0;else if((g||y)&&h=n||r&&!qz(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=nn.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===nn.PARSING||this.state===nn.PARSED){const n=t.frag,r=t.parent,i=this.getFwdBufferInfo(this.mediaBuffer,r),a=i&&i.len>.5;a&&this.reduceMaxBufferLength(i.len,n?.duration||10);const s=!a;return s&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${r} buffer`),n&&(this.fragmentTracker.removeFragment(n),this.nextLoadPosition=n.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(t){t===Qn.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==nn.STOPPED&&(this.state=nn.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const i=Vr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,i,r),this.state===nn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==nn.STOPPED&&(this.state=nn.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=this.levelLastLoaded,n=t?t.details:null;n!=null&&n.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(n,n.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.log(`Loading context changed while buffering sn ${t.sn} of ${this.playlistLabel()} ${t.level===-1?"":t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,n,r,i){const a=r.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(t.elementaryStreams).reduce((c,d)=>{const h=t.elementaryStreams[d];if(h){const p=h.endPTS-h.startPTS;if(p<=0)return this.warn(`Could not parse fragment ${t.sn} ${d} duration reliably (${p})`),c||!1;const v=i?0:w2e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(Pe.LEVEL_PTS_UPDATED,{details:a,level:r,drift:v,type:d,frag:t,start:h.startPTS,end:h.endPTS}),!0}return c},!1)){var l;if(r.fragmentError===0&&this.treatAsGap(t,r),((l=this.transmuxer)==null?void 0:l.error)===null){const c=new Error(`Found no media in fragment ${t.sn} of ${this.playlistLabel()} ${t.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(c.message),this.hls.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,fatal:!1,error:c,frag:t,reason:`Found no media in msn ${t.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=nn.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(Pe.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===Qn.MAIN?"level":"track"}fragInfo(t,n=!0,r){var i,a;return`${this.playlistLabel()} ${t.level} (${r?"part":"frag"}:[${((i=n&&!r?t.startPTS:(r||t).start)!=null?i:NaN).toFixed(3)}-${((a=n&&!r?t.endPTS:(r||t).end)!=null?a:NaN).toFixed(3)}]${r&&t.type==="main"?"INDEPENDENT="+(r.independent?"YES":"NO"):""}`}treatAsGap(t,n){n&&n.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)}resetTransmuxer(){var t;(t=this.transmuxer)==null||t.reset()}recoverWorkerError(t){t.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(t){const n=this._state;n!==t&&(this._state=t,this.log(`${n}->${t}`))}get state(){return this._state}}function Bue(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class D2e{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:n}=this;let r;if(t.length)t.length===1?r=t[0]:r=AIt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function AIt(e,t){const n=new Uint8Array(t);let r=0;for(let i=0;i0)return e.subarray(n,n+r)}function OIt(e,t,n,r){const i=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],a=t[n+2],s=a>>2&15;if(s>12){const g=new Error(`invalid ADTS sampling index:${s}`);e.emit(Pe.ERROR,Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,fatal:!0,error:g,reason:g.message});return}const l=(a>>6&3)+1,c=t[n+3]>>6&3|(a&1)<<2,d="mp4a.40."+l,h=i[s];let p=s;(l===5||l===29)&&(p-=3);const v=[l<<3|(p&14)>>1,(p&1)<<7|c<<3];return po.log(`manifest codec:${r}, parsed codec:${d}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:v,samplerate:h,channelCount:c,codec:d,parsedCodec:d,manifestCodec:r}}function R2e(e,t){return e[t]===255&&(e[t+1]&246)===240}function M2e(e,t){return e[t+1]&1?7:9}function WG(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function $It(e,t){return t+5=e.length)return!1;const r=WG(e,t);if(r<=n)return!1;const i=t+r;return i===e.length||WT(e,i)}return!1}function O2e(e,t,n,r,i){if(!e.samplerate){const a=OIt(t,n,r,i);if(!a)return;bo(e,a)}}function $2e(e){return 1024*9e4/e}function FIt(e,t){const n=M2e(e,t);if(t+n<=e.length){const r=WG(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function B2e(e,t,n,r,i){const a=$2e(e.samplerate),s=r+i*a,l=FIt(t,n);let c;if(l){const{frameLength:p,headerLength:v}=l,g=v+p,y=Math.max(0,n+g-t.length);y?(c=new Uint8Array(g-v),c.set(t.subarray(n+v,t.length),0)):c=t.subarray(n+v,n+g);const S={unit:c,pts:s};return y||e.samples.push(S),{sample:S,length:g,missing:y}}const d=t.length-n;return c=new Uint8Array(d),c.set(t.subarray(n,t.length),0),{sample:{unit:c,pts:s},length:d,missing:-1}}function jIt(e,t){return HG(e,t)&&nI(e,t+6)+10<=e.length-t}function VIt(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function GF(e,t=0,n=1/0){return zIt(e,t,n,Uint8Array)}function zIt(e,t,n,r){const i=UIt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=HIt(e)?e.byteOffset:0,l=(s+e.byteLength)/a,c=(s+t)/a,d=Math.floor(Math.max(0,Math.min(c,l))),h=Math.floor(Math.min(d+Math.max(n,0),l));return new r(i,d,h-d)}function UIt(e){return e instanceof ArrayBuffer?e:e.buffer}function HIt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function WIt(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null},n=3;if(e.size<2)return;if(e.data[0]!==n){console.log("Ignore frame with unrecognized character encoding");return}const r=e.data.subarray(1).indexOf(0);if(r===-1)return;const i=fc(GF(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=fc(GF(e.data,3+r,s));let c;return i==="-->"?c=fc(GF(e.data,4+r+s)):c=VIt(e.data.subarray(4+r+s)),t.mimeType=i,t.pictureType=a,t.description=l,t.data=c,t}function GIt(e){if(e.size<2)return;const t=fc(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function KIt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=fc(e.data.subarray(n),!0);n+=r.length+1;const i=fc(e.data.subarray(n));return{key:e.type,info:r,data:i}}const t=fc(e.data.subarray(1));return{key:e.type,info:"",data:t}}function qIt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=fc(e.data.subarray(n),!0);n+=r.length+1;const i=fc(e.data.subarray(n));return{key:e.type,info:r,data:i}}const t=fc(e.data);return{key:e.type,info:"",data:t}}function YIt(e){return e.type==="PRIV"?GIt(e):e.type[0]==="W"?qIt(e):e.type==="APIC"?WIt(e):KIt(e)}function XIt(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=nI(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const Tx=10,ZIt=10;function N2e(e){let t=0;const n=[];for(;HG(e,t);){const r=nI(e,t+6);e[t+5]>>6&1&&(t+=Tx),t+=Tx;const i=t+r;for(;t+ZIt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:oc.audioId3,duration:Number.POSITIVE_INFINITY});i{if(Bn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let Ax=null;const eLt=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],tLt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],nLt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],rLt=[0,1,1,4];function j2e(e,t,n,r,i){if(n+24>t.length)return;const a=V2e(t,n);if(a&&n+a.frameLength<=t.length){const s=a.samplesPerFrame*9e4/a.sampleRate,l=r+i*s,c={unit:t.subarray(n,n+a.frameLength),pts:l,dts:l};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(c),{sample:c,length:a.frameLength,missing:0}}}function V2e(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(n!==1&&i!==0&&i!==15&&a!==3){const s=e[t+2]>>1&1,l=e[t+3]>>6,c=n===3?3-r:r===3?3:4,d=eLt[c*14+i-1]*1e3,p=tLt[(n===3?0:n===2?1:2)*3+a],v=l===3?1:2,g=nLt[n][r],y=rLt[r],S=g*8*y,k=Math.floor(g*d/p+s)*y;if(Ax===null){const E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ax=E?parseInt(E[1]):0}return!!Ax&&Ax<=87&&r===2&&d>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:v,frameLength:k,samplesPerFrame:S}}}function qG(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function z2e(e,t){return t+1{let n=0,r=5;t+=r;const i=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=e[t];const l=Math.min(r,8),c=8-l;a[0]=4278190080>>>24+c<>c,n=n?n<t.length||t[n]!==11||t[n+1]!==119)return-1;const a=t[n+4]>>6;if(a>=3)return-1;const l=[48e3,44100,32e3][a],c=t[n+4]&63,h=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][c*3+a]*2;if(n+h>t.length)return-1;const p=t[n+6]>>5;let v=0;p===2?v+=2:(p&1&&p!==1&&(v+=2),p&4&&(v+=2));const g=(t[n+6]<<8|t[n+7])>>12-v&1,S=[2,1,2,3,3,4,4,5][p]+g,k=t[n+5]>>3,w=t[n+5]&7,x=new Uint8Array([a<<6|k<<1|w>>2,(w&3)<<6|p<<3|g<<2|c>>4,c<<4&224]),E=1536/l*9e4,_=r+i*E,T=t.subarray(n,n+h);return e.config=x,e.channelCount=S,e.samplerate=l,e.samples.push({unit:T,pts:_}),h}class aLt extends KG{resetInitSegment(t,n,r,i){super.resetInitSegment(t,n,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const n=D_(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&GG(n)!==void 0&&H2e(t,r)<=16)return!1;for(let i=t.length;r{const s=vAt(a);if(lLt.test(s.schemeIdUri)){const l=Fue(s,n);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const d=s.payload;r.samples.push({data:d,len:d.byteLength,dts:l,pts:l,type:oc.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Fue(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:oc.misbklv,duration:Number.POSITIVE_INFINITY})}})}return r}demuxSampleAes(t,n,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function Fue(e,t){return Bn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class cLt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new NG(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,B0.cbc)}decryptAacSample(t,n,r){const i=t[n].unit;if(i.length<=16)return;const a=i.subarray(16,i.length-i.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then(l=>{const c=new Uint8Array(l);i.set(c,16),this.decrypter.isSync()||this.decryptAacSamples(t,n+1,r)}).catch(r)}decryptAacSamples(t,n,r){for(;;n++){if(n>=t.length){r();return}if(!(t[n].unit.length<32)&&(this.decryptAacSample(t,n,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const n=Math.floor((t.length-48)/160)*16+16,r=new Int8Array(n);let i=0;for(let a=32;a{a.data=this.getAvcDecryptedUnit(s,c),this.decrypter.isSync()||this.decryptAvcSamples(t,n,r+1,i)}).catch(i)}decryptAvcSamples(t,n,r,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,r=0){if(n>=t.length){i();return}const a=t[n].units;for(;!(r>=a.length);r++){const s=a[r];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(t,n,r,i,s),!this.decrypter.isSync()))return}}}}class G2e{constructor(){this.VideoSample=null}createVideoSample(t,n,r){return{key:t,frame:!1,pts:n,dts:r,units:[],length:0}}getLastNalUnit(t){var n;let r=this.VideoSample,i;if((!r||r.units.length===0)&&(r=t[t.length-1]),(n=r)!=null&&n.units){const a=r.units;i=a[a.length-1]}return i}pushAccessUnit(t,n){if(t.units.length&&t.frame){if(t.pts===void 0){const r=n.samples,i=r.length;if(i){const a=r[i-1];t.pts=a.pts,t.dts=a.dts}else{n.dropped++;return}}n.samples.push(t)}}parseNALu(t,n,r){const i=n.byteLength;let a=t.naluState||0;const s=a,l=[];let c=0,d,h,p,v=-1,g=0;for(a===-1&&(v=0,g=this.getNALuType(n,0),a=0,c=1);c=0){const y={data:n.subarray(v,h),type:g};l.push(y)}else{const y=this.getLastNalUnit(t.samples);y&&(s&&c<=4-s&&y.state&&(y.data=y.data.subarray(0,y.data.byteLength-s)),h>0&&(y.data=td(y.data,n.subarray(0,h)),y.state=0))}c=0&&a>=0){const y={data:n.subarray(v,i),type:g,state:a};l.push(y)}if(l.length===0){const y=this.getLastNalUnit(t.samples);y&&(y.data=td(y.data,n))}return t.naluState=a,l}}class Mb{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,n=this.bytesAvailable,r=t.byteLength-n,i=new Uint8Array(4),a=Math.min(4,n);if(a===0)throw new Error("no bytes available");i.set(t.subarray(r,r+a)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=a*8,this.bytesAvailable-=a}skipBits(t){let n;t=Math.min(t,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,n=t>>3,t-=n<<3,this.bytesAvailable-=n,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let n=Math.min(this.bitsAvailable,t);const r=this.word>>>32-n;if(t>32&&po.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=n,this.bitsAvailable>0)this.word<<=n;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return n=t-n,n>0&&this.bitsAvailable?r<>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class dLt extends G2e{parsePES(t,n,r,i){const a=this.parseNALu(t,r.data,i);let s=this.VideoSample,l,c=!1;r.data=null,s&&a.length&&!t.audFound&&(this.pushAccessUnit(s,t),s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),a.forEach(d=>{var h,p;switch(d.type){case 1:{let S=!1;l=!0;const k=d.data;if(c&&k.length>4){const w=this.readSliceType(k);(w===2||w===4||w===7||w===9)&&(S=!0)}if(S){var v;(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.frame=!0,s.key=S;break}case 5:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,MG(d.data,1,r.pts,n.samples);break}case 7:{var g,y;l=!0,c=!0;const S=d.data,k=this.readSPS(S);if(!t.sps||t.width!==k.width||t.height!==k.height||((g=t.pixelRatio)==null?void 0:g[0])!==k.pixelRatio[0]||((y=t.pixelRatio)==null?void 0:y[1])!==k.pixelRatio[1]){t.width=k.width,t.height=k.height,t.pixelRatio=k.pixelRatio,t.sps=[S];const w=S.subarray(1,4);let x="avc1.";for(let E=0;E<3;E++){let _=w[E].toString(16);_.length<2&&(_="0"+_),x+=_}t.codec=x}break}case 8:l=!0,t.pps=[d.data];break;case 9:l=!0,t.audFound=!0,(p=s)!=null&&p.frame&&(this.pushAccessUnit(s,t),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(d)}),i&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}getNALuType(t,n){return t[n]&31}readSliceType(t){const n=new Mb(t);return n.readUByte(),n.readUEG(),n.readUEG()}skipScalingList(t,n){let r=8,i=8,a;for(let s=0;s{var h,p;switch(d.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,c){var v;(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,MG(d.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=bo(t.params,this.readVPS(d.data)),this.initVPS=d.data),t.vps=[d.data];break;case 33:if(l=!0,c=!0,t.vps!==void 0&&t.vps[0]!==this.initVPS&&t.sps!==void 0&&!this.matchSPS(t.sps[0],d.data)&&(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const g=this.readSPS(d.data);t.width=g.width,t.height=g.height,t.pixelRatio=g.pixelRatio,t.codec=g.codecString,t.sps=[],typeof t.params!="object"&&(t.params={});for(const y in g.params)t.params[y]=g.params[y]}this.pushParameterSet(t.sps,d.data,t.vps),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0;break;case 34:if(l=!0,typeof t.params=="object"){if(!t.pps){t.pps=[];const g=this.readPPS(d.data);for(const y in g)t.params[y]=g[y]}this.pushParameterSet(t.pps,d.data,t.vps)}break;case 35:l=!0,t.audFound=!0,(p=s)!=null&&p.frame&&(this.pushAccessUnit(s,t),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;default:l=!1;break}s&&l&&s.units.push(d)}),i&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}pushParameterSet(t,n,r){(r&&r[0]===this.initVPS||!r&&!t.length)&&t.push(n)}getNALuType(t,n){return(t[n]&126)>>>1}ebsp2rbsp(t){const n=new Uint8Array(t.byteLength);let r=0;for(let i=0;i=2&&t[i]===3&&t[i-1]===0&&t[i-2]===0||(n[r]=t[i],r++);return new Uint8Array(n.buffer,0,r)}pushAccessUnit(t,n){super.pushAccessUnit(t,n),this.initVPS&&(this.initVPS=null)}readVPS(t){const n=new Mb(t);n.readUByte(),n.readUByte(),n.readBits(4),n.skipBits(2),n.readBits(6);const r=n.readBits(3),i=n.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:i}}readSPS(t){const n=new Mb(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.readBits(4);const r=n.readBits(3);n.readBoolean();const i=n.readBits(2),a=n.readBoolean(),s=n.readBits(5),l=n.readUByte(),c=n.readUByte(),d=n.readUByte(),h=n.readUByte(),p=n.readUByte(),v=n.readUByte(),g=n.readUByte(),y=n.readUByte(),S=n.readUByte(),k=n.readUByte(),w=n.readUByte(),x=[],E=[];for(let Ye=0;Ye0)for(let Ye=r;Ye<8;Ye++)n.readBits(2);for(let Ye=0;Ye1&&n.readEG();for(let Ct=0;Ct0&&xt<16?(ie=Rt[xt-1],q=Ht[xt-1]):xt===255&&(ie=n.readBits(16),q=n.readBits(16))}if(n.readBoolean()&&n.readBoolean(),n.readBoolean()&&(n.readBits(3),n.readBoolean(),n.readBoolean()&&(n.readUByte(),n.readUByte(),n.readUByte())),n.readBoolean()&&(n.readUEG(),n.readUEG()),n.readBoolean(),n.readBoolean(),n.readBoolean(),ve=n.readBoolean(),ve&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(Se=n.readBits(32),Fe=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Ht=n.readBoolean(),Jt=n.readBoolean();let rn=!1;(Ht||Jt)&&(rn=n.readBoolean(),rn&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),rn&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let vt=0;vt<=r;vt++){te=n.readBoolean();const Ve=te||n.readBoolean();let Oe=!1;Ve?n.readEG():Oe=n.readBoolean();const Ce=Oe?1:n.readUEG()+1;if(Ht)for(let We=0;We>Ye&1)<<31-Ye)>>>0;let ge=me.toString(16);return s===1&&ge==="2"&&(ge="6"),{codecString:`hvc1.${Ie}${s}.${ge}.${a?"H":"L"}${w}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:i,general_profile_compatibility_flags:[l,c,d,h],general_constraint_indicator_flags:[p,v,g,y,S,k],general_level_idc:w,bit_depth:j+8,bit_depth_luma_minus8:j,bit_depth_chroma_minus8:H,min_spatial_segmentation_idc:Q,chroma_format_idc:_,frame_rate:{fixed:te,fps:Fe/Se}},width:Ge,height:nt,pixelRatio:[ie,q]}}readPPS(t){const n=new Mb(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.skipUEG(),n.skipUEG(),n.skipBits(2),n.skipBits(3),n.skipBits(2),n.skipUEG(),n.skipUEG(),n.skipEG(),n.skipBits(2),n.readBoolean()&&n.skipUEG(),n.skipEG(),n.skipEG(),n.skipBits(4);const i=n.readBoolean(),a=n.readBoolean();let s=1;return a&&i?s=0:a?s=3:i&&(s=2),{parallelismType:s}}matchSPS(t,n){return String.fromCharCode.apply(null,t).substr(3)===String.fromCharCode.apply(null,n).substr(3)}}const ka=188;class e0{constructor(t,n,r,i){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.logger=i,this.videoParser=null}static probe(t,n){const r=e0.syncOffset(t);return r>0&&n.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(t){const n=t.length;let r=Math.min(ka*5,n-ka)+1,i=0;for(;i1&&(s===0&&l>2||c+ka>r))return s}else{if(l)return-1;break}i++}return-1}static createTrack(t,n){return{container:t==="video"||t==="audio"?"video/mp2t":void 0,type:t,id:J3e[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:t==="audio"?n:void 0}}resetInitSegment(t,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=e0.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=e0.createTrack("audio",i),this._id3Track=e0.createTrack("id3"),this._txtTrack=e0.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:n,_id3Track:r}=this;t&&(t.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,n,r=!1,i=!1){r||(this.sampleAes=null);let a;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,d=this._txtTrack;let h=s.pid,p=s.pesData,v=l.pid,g=c.pid,y=l.pesData,S=c.pesData,k=null,w=this.pmtParsed,x=this._pmtId,E=t.length;if(this.remainderData&&(t=td(this.remainderData,t),E=t.length,this.remainderData=null),E>4;let B;if(L>1){if(B=P+5+t[P+4],B===P+ka)continue}else B=P+4;switch($){case h:M&&(p&&(a=D1(p,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,d,a,!1)),p={data:[],size:0}),p&&(p.data.push(t.subarray(B,P+ka)),p.size+=P+ka-B);break;case v:if(M){if(y&&(a=D1(y,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,a);break;case"mp3":this.parseMPEGPES(l,a);break;case"ac3":this.parseAC3PES(l,a);break}y={data:[],size:0}}y&&(y.data.push(t.subarray(B,P+ka)),y.size+=P+ka-B);break;case g:M&&(S&&(a=D1(S,this.logger))&&this.parseID3PES(c,a),S={data:[],size:0}),S&&(S.data.push(t.subarray(B,P+ka)),S.size+=P+ka-B);break;case 0:M&&(B+=t[B]+1),x=this._pmtId=hLt(t,B);break;case x:{M&&(B+=t[B]+1);const j=pLt(t,B,this.typeSupported,r,this.observer,this.logger);h=j.videoPid,h>0&&(s.pid=h,s.segmentCodec=j.segmentVideoCodec),v=j.audioPid,v>0&&(l.pid=v,l.segmentCodec=j.segmentAudioCodec),g=j.id3Pid,g>0&&(c.pid=g),k!==null&&!w&&(this.logger.warn(`MPEG-TS PMT found at ${P} after unknown PID '${k}'. Backtracking to sync byte @${_} to parse all TS packets.`),k=null,P=_-188),w=this.pmtParsed=!0;break}case 17:case 8191:break;default:k=$;break}}else T++;T>0&&eU(this.observer,new Error(`Found ${T} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=y,c.pesData=S;const D={audioTrack:l,videoTrack:s,id3Track:c,textTrack:d};return i&&this.extractRemainingSamples(D),D}flush(){const{remainderData:t}=this;this.remainderData=null;let n;return t?n=this.demux(t,-1,!1,!0):n={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(n),this.sampleAes?this.decrypt(n,this.sampleAes):n}extractRemainingSamples(t){const{audioTrack:n,videoTrack:r,id3Track:i,textTrack:a}=t,s=r.pesData,l=n.pesData,c=i.pesData;let d;if(s&&(d=D1(s,this.logger))?(this.readyVideoParser(r.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(r,a,d,!0),r.pesData=null)):r.pesData=s,l&&(d=D1(l,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,d);break;case"mp3":this.parseMPEGPES(n,d);break;case"ac3":this.parseAC3PES(n,d);break}n.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=l;c&&(d=D1(c,this.logger))?(this.parseID3PES(i,d),i.pesData=null):i.pesData=c}demuxSampleAes(t,n,r){const i=this.demux(t,r,!0,!this.config.progressive),a=this.sampleAes=new cLt(this.observer,this.config,n);return this.decrypt(i,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new dLt:t==="hevc"&&(this.videoParser=new fLt))}decrypt(t,n){return new Promise(r=>{const{audioTrack:i,videoTrack:a}=t;i.samples&&i.segmentCodec==="aac"?n.decryptAacSamples(i.samples,0,()=>{a.samples?n.decryptAvcSamples(a.samples,0,0,()=>{r(t)}):r(t)}):a.samples&&n.decryptAvcSamples(a.samples,0,0,()=>{r(t)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(t,n){let r=0;const i=this.aacOverFlow;let a=n.data;if(i){this.aacOverFlow=null;const p=i.missing,v=i.sample.unit.byteLength;if(p===-1)a=td(i.sample.unit,a);else{const g=v-p;i.sample.unit.set(a.subarray(0,p),g),t.samples.push(i.sample),r=i.missing}}let s,l;for(s=r,l=a.length;s0;)l+=c}}parseID3PES(t,n){if(n.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=bo({},n,{type:this._videoTrack?oc.emsg:oc.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function Qz(e,t){return((e[t+1]&31)<<8)+e[t+2]}function hLt(e,t){return(e[t+10]&31)<<8|e[t+11]}function pLt(e,t,n,r,i,a){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(e[t+1]&15)<<8|e[t+2],c=t+3+l-4,d=(e[t+10]&15)<<8|e[t+11];for(t+=12+d;t0){let v=t+5,g=p;for(;g>2;){switch(e[v]){case 106:n.ac3!==!0?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=h,s.segmentAudioCodec="ac3");break}const S=e[v+1]+2;v+=S,g-=S}}break;case 194:case 135:return eU(i,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:s.videoPid===-1&&(s.videoPid=h,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"));break}t+=p+5}return s}function eU(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(Pe.ERROR,Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function KF(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function D1(e,t){let n=0,r,i,a,s,l;const c=e.data;if(!e||e.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=td(c[0],c[1]),c.splice(1,1);if(r=c[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(i=(r[4]<<8)+r[5],i&&i>e.size-6)return null;const h=r[7];h&192&&(s=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,h&64?(l=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,s-l>60*9e4&&(t.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),a=r[8];let p=a+9;if(e.size<=p)return null;e.size-=p;const v=new Uint8Array(e.size);for(let g=0,y=c.length;gS){p-=S;continue}else r=r.subarray(p),S-=p,p=0;v.set(r,n),n+=S}return i&&(i-=a+3),{data:v,pts:s,dts:l,len:i}}return null}class vLt{static getSilentFrame(t,n){switch(t){case"mp4a.40.2":if(n===1)return new Uint8Array([0,200,0,128,35,128]);if(n===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(n===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(n===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(n===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(n===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(n===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Fp=Math.pow(2,32)-1;class jt{static init(){jt.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let t;for(t in jt.types)jt.types.hasOwnProperty(t)&&(jt.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);jt.HDLR_TYPES={video:n,audio:r};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);jt.STTS=jt.STSC=jt.STCO=a,jt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),jt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),jt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),jt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);jt.FTYP=jt.box(jt.types.ftyp,s,c,s,l),jt.DINF=jt.box(jt.types.dinf,jt.box(jt.types.dref,i))}static box(t,...n){let r=8,i=n.length;const a=i;for(;i--;)r+=n[i].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(t,4),i=0,r=8;i>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(t){return jt.box(jt.types.mdia,jt.mdhd(t.timescale||0,t.duration||0),jt.hdlr(t.type),jt.minf(t))}static mfhd(t){return jt.box(jt.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]))}static minf(t){return t.type==="audio"?jt.box(jt.types.minf,jt.box(jt.types.smhd,jt.SMHD),jt.DINF,jt.stbl(t)):jt.box(jt.types.minf,jt.box(jt.types.vmhd,jt.VMHD),jt.DINF,jt.stbl(t))}static moof(t,n,r){return jt.box(jt.types.moof,jt.mfhd(t),jt.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=jt.trak(t[n]);return jt.box.apply(null,[jt.types.moov,jt.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(jt.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=jt.trex(t[n]);return jt.box.apply(null,[jt.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Fp+1)),i=Math.floor(n%(Fp+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return jt.box(jt.types.mvhd,a)}static sdtp(t){const n=t.samples||[],r=new Uint8Array(4+n.length);let i,a;for(i=0;i>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(a));for(i=0;i>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(a));const l=jt.box(jt.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|t.sps.length].concat(n).concat([t.pps.length]).concat(r))),c=t.width,d=t.height,h=t.pixelRatio[0],p=t.pixelRatio[1];return jt.box(jt.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c>>8&255,c&255,d>>8&255,d&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,jt.box(jt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),jt.box(jt.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,p>>24,p>>16&255,p>>8&255,p&255])))}static esds(t){const n=t.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...n,6,1,2])}static audioStsd(t){const n=t.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount||0,0,16,0,0,0,0,n>>8&255,n&255,0,0])}static mp4a(t){return jt.box(jt.types.mp4a,jt.audioStsd(t),jt.box(jt.types.esds,jt.esds(t)))}static mp3(t){return jt.box(jt.types[".mp3"],jt.audioStsd(t))}static ac3(t){return jt.box(jt.types["ac-3"],jt.audioStsd(t),jt.box(jt.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return jt.box(jt.types.stsd,jt.STSD,jt.mp4a(t));if(n==="ac3"&&t.config)return jt.box(jt.types.stsd,jt.STSD,jt.ac3(t));if(n==="mp3"&&t.codec==="mp3")return jt.box(jt.types.stsd,jt.STSD,jt.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return jt.box(jt.types.stsd,jt.STSD,jt.avc1(t));if(n==="hevc"&&t.vps)return jt.box(jt.types.stsd,jt.STSD,jt.hvc1(t))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${t.type} segment codec (${n}/${t.codec})`)}static tkhd(t){const n=t.id,r=(t.duration||0)*(t.timescale||0),i=t.width||0,a=t.height||0,s=Math.floor(r/(Fp+1)),l=Math.floor(r%(Fp+1));return jt.box(jt.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,i&255,0,0,a>>8&255,a&255,0,0]))}static traf(t,n){const r=jt.sdtp(t),i=t.id,a=Math.floor(n/(Fp+1)),s=Math.floor(n%(Fp+1));return jt.box(jt.types.traf,jt.box(jt.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),jt.box(jt.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,s>>24,s>>16&255,s>>8&255,s&255])),jt.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,jt.box(jt.types.trak,jt.tkhd(t),jt.mdia(t))}static trex(t){const n=t.id;return jt.box(jt.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,n){const r=t.samples||[],i=r.length,a=12+16*i,s=new Uint8Array(a);let l,c,d,h,p,v;for(n+=8+a,s.set([t.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),l=0;l>>24&255,d>>>16&255,d>>>8&255,d&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,p.isLeading<<2|p.dependsOn,p.isDependedOn<<6|p.hasRedundancy<<4|p.paddingValue<<1|p.isNonSync,p.degradPrio&61440,p.degradPrio&15,v>>>24&255,v>>>16&255,v>>>8&255,v&255],12+16*l);return jt.box(jt.types.trun,s)}static initSegment(t){jt.types||jt.init();const n=jt.moov(t);return td(jt.FTYP,n)}static hvc1(t){const n=t.params,r=[t.vps,t.sps,t.pps],i=4,a=new Uint8Array([1,n.general_profile_space<<6|(n.general_tier_flag?32:0)|n.general_profile_idc,n.general_profile_compatibility_flags[0],n.general_profile_compatibility_flags[1],n.general_profile_compatibility_flags[2],n.general_profile_compatibility_flags[3],n.general_constraint_indicator_flags[0],n.general_constraint_indicator_flags[1],n.general_constraint_indicator_flags[2],n.general_constraint_indicator_flags[3],n.general_constraint_indicator_flags[4],n.general_constraint_indicator_flags[5],n.general_level_idc,240|n.min_spatial_segmentation_idc>>8,255&n.min_spatial_segmentation_idc,252|n.parallelismType,252|n.chroma_format_idc,248|n.bit_depth_luma_minus8,248|n.bit_depth_chroma_minus8,0,parseInt(n.frame_rate.fps),i-1|n.temporal_id_nested<<2|n.num_temporal_layers<<3|(n.frame_rate.fixed?64:0),r.length]);let s=a.length;for(let y=0;y>8,r[y][S].length&255]),s),s+=2,l.set(r[y][S],s),s+=r[y][S].length}const d=jt.box(jt.types.hvcC,l),h=t.width,p=t.height,v=t.pixelRatio[0],g=t.pixelRatio[1];return jt.box(jt.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,h>>8&255,h&255,p>>8&255,p&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d,jt.box(jt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),jt.box(jt.types.pasp,new Uint8Array([v>>24,v>>16&255,v>>8&255,v&255,g>>24,g>>16&255,g>>8&255,g&255])))}}jt.types=void 0;jt.HDLR_TYPES=void 0;jt.STTS=void 0;jt.STSC=void 0;jt.STCO=void 0;jt.STSZ=void 0;jt.VMHD=void 0;jt.SMHD=void 0;jt.STSD=void 0;jt.FTYP=void 0;jt.DINF=void 0;const K2e=9e4;function YG(e,t,n=1,r=!1){const i=e*t*n;return r?Math.round(i):i}function mLt(e,t,n=1,r=!1){return YG(e,t,1/n,r)}function k4(e,t=!1){return YG(e,1e3,1/K2e,t)}function gLt(e,t=1){return YG(e,K2e,1/t)}function jue(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const yLt=10*1e3,bLt=1024,_Lt=1152,SLt=1536;let P1=null,qF=null;function Vue(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class a8 extends od{constructor(t,n,r,i){if(super("mp4-remuxer",i),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.ISGenerated=!1,P1===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);P1=s?parseInt(s[1]):0}if(qF===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);qF=a?parseInt(a[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){const n=this._initPTS;(!n||!t||t.trackId!==n.trackId||t.baseTime!==n.baseTime||t.timescale!==n.timescale)&&this.log(`Reset initPTS: ${n&&jue(n)} > ${t&&jue(t)}`),this._initPTS=this._initDTS=t}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let n=!1;const r=t[0].pts,i=t.reduce((a,s)=>{let l=s.pts,c=l-a;return c<-4294967296&&(n=!0,l=rc(l,r),c=l-a),c>0?a:l},r);return n&&this.debug("PTS rollover detected"),i}remux(t,n,r,i,a,s,l,c){let d,h,p,v,g,y,S=a,k=a;const w=t.pid>-1,x=n.pid>-1,E=n.samples.length,_=t.samples.length>0,T=l&&E>0||E>1;if((!w||_)&&(!x||T)||this.ISGenerated||l){if(this.ISGenerated){var P,M,$,L;const U=this.videoTrackConfig;(U&&(n.width!==U.width||n.height!==U.height||((P=n.pixelRatio)==null?void 0:P[0])!==((M=U.pixelRatio)==null?void 0:M[0])||(($=n.pixelRatio)==null?void 0:$[1])!==((L=U.pixelRatio)==null?void 0:L[1]))||!U&&T||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const B=this.isVideoContiguous;let j=-1,H;if(T&&(j=kLt(n.samples),!B&&this.config.forceKeyFrameOnDiscontinuity))if(y=!0,j>0){this.warn(`Dropped ${j} out of ${E} video samples due to a missing keyframe`);const U=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(j),n.dropped+=j,k+=(n.samples[0].pts-U)/n.inputTimeScale,H=k}else j===-1&&(this.warn(`No keyframe found out of ${E} video samples`),y=!1);if(this.ISGenerated){if(_&&T){const U=this.getVideoStartPts(n.samples),K=(rc(t.samples[0].pts,U)-U)/n.inputTimeScale;S+=Math.max(0,K),k+=Math.max(0,-K)}if(_){if(t.samplerate||(this.warn("regenerate InitSegment as audio detected"),p=this.generateIS(t,n,a,s)),h=this.remuxAudio(t,S,this.isAudioContiguous,s,x||T||c===Qn.AUDIO?k:void 0),T){const U=h?h.endPTS-h.startPTS:0;n.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(t,n,a,s)),d=this.remuxVideo(n,k,B,U)}}else T&&(d=this.remuxVideo(n,k,B,0));d&&(d.firstKeyFrame=j,d.independent=j!==-1,d.firstKeyFramePTS=H)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=q2e(r,a,this._initPTS,this._initDTS)),i.samples.length&&(v=Y2e(i,a,this._initPTS))),{audio:h,video:d,initSegment:p,independent:y,text:v,id3:g}}computeInitPts(t,n,r,i){const a=Math.round(r*n);let s=rc(t,a);if(s0?Q-1:Q].dts&&(x=!0)}x&&s.sort(function(Q,ie){const q=Q.dts-ie.dts,te=Q.pts-ie.pts;return q||te}),y=s[0].dts,S=s[s.length-1].dts;const _=S-y,T=_?Math.round(_/(c-1)):g||t.inputTimeScale/30;if(r){const Q=y-E,ie=Q>T,q=Q<-1;if((ie||q)&&(ie?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${k4(Q,!0)} ms (${Q}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${k4(-Q,!0)} ms (${Q}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!q||E>=s[0].pts||P1)){y=E;const te=s[0].pts-Q;if(ie)s[0].dts=y,s[0].pts=te;else{let Se=!0;for(let Fe=0;Fete&&Se);Fe++){const ve=s[Fe].pts;if(s[Fe].dts-=Q,s[Fe].pts-=Q,Fe0?ie.dts-s[Q-1].dts:T;if(Se=Q>0?ie.pts-s[Q-1].pts:T,ve.stretchShortVideoTrack&&this.nextAudioTs!==null){const Ge=Math.floor(ve.maxBufferHole*a),nt=(i?k+i*a:this.nextAudioTs+h)-ie.pts;nt>Ge?(g=nt-Re,g<0?g=Re:j=!0,this.log(`It is approximately ${nt/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=Re}else g=Re}const Fe=Math.round(ie.pts-ie.dts);H=Math.min(H,g),W=Math.max(W,g),U=Math.min(U,Se),K=Math.max(K,Se),l.push(Vue(ie.key,g,te,Fe))}if(l.length){if(P1){if(P1<70){const Q=l[0].flags;Q.dependsOn=2,Q.isNonSync=0}}else if(qF&&K-U0&&(i&&Math.abs(E-(w+x))<9e3||Math.abs(rc(S[0].pts,E)-(w+x))<20*h),S.forEach(function(K){K.pts=rc(K.pts,E)}),!r||w<0){const K=S.length;if(S=S.filter(oe=>oe.pts>=0),K!==S.length&&this.warn(`Removed ${S.length-K} of ${K} samples (initPTS ${x} / ${s})`),!S.length)return;a===0?w=0:i&&!y?w=Math.max(0,E-x):w=S[0].pts-x}if(t.segmentCodec==="aac"){const K=this.config.maxAudioFramesDrift;for(let oe=0,ae=w+x;oe=K*h&&ie0){P+=k;try{D=new Uint8Array(P)}catch(ie){this.observer.emit(Pe.ERROR,Pe.ERROR,{type:cr.MUX_ERROR,details:zt.REMUX_ALLOC_ERROR,fatal:!1,error:ie,bytes:P,reason:`fail allocating audio mdat ${P}`});return}v||(new DataView(D.buffer).setUint32(0,P),D.set(jt.types.mdat,4))}else return;D.set(ee,k);const Q=ee.byteLength;k+=Q,g.push(Vue(!0,d,Q,0)),T=Y}const $=g.length;if(!$)return;const L=g[g.length-1];w=T-x,this.nextAudioTs=w+c*L.duration;const B=v?new Uint8Array(0):jt.moof(t.sequenceNumber++,_/c,bo({},t,{samples:g}));t.samples=[];const j=(_-x)/s,H=w/s,W={data1:B,data2:D,startPTS:j,endPTS:H,startDTS:j,endDTS:H,type:"audio",hasAudio:!0,hasVideo:!1,nb:$};return this.isAudioContiguous=!0,W}}function rc(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function kLt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class wLt extends od{constructor(t,n,r,i){super("passthrough-remuxer",i),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(t){this.lastEndTime=null;const n=this.initPTS;n&&t&&n.baseTime===t.baseTime&&n.timescale===t.timescale||(this.initPTS=t)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(t,n,r,i){this.audioCodec=n,this.videoCodec=r,this.generateInitSegment(t,i),this.emitInitSegment=!0}generateInitSegment(t,n){let{audioCodec:r,videoCodec:i}=this;if(!(t!=null&&t.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:a,video:s}=this.initData=t2e(t);if(n)cAt(t,n);else{const c=a||s;c!=null&&c.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${c.codec}")!`)}a&&(r=zue(a,To.AUDIO,this)),s&&(i=zue(s,To.VIDEO,this));const l={};a&&s?l.audiovideo={container:"video/mp4",codec:r+","+i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:t,id:"main"}:a?l.audio={container:"audio/mp4",codec:r,encrypted:a.encrypted,initSegment:t,id:"audio"}:s?l.video={container:"video/mp4",codec:i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:t,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=l}remux(t,n,r,i,a,s){var l,c;let{initPTS:d,lastEndTime:h}=this;const p={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};Bn(h)||(h=this.lastEndTime=a||0);const v=n.samples;if(!v.length)return p;const g={initPTS:void 0,timescale:void 0,trackId:void 0};let y=this.initData;if((l=y)!=null&&l.length||(this.generateInitSegment(v),y=this.initData),!((c=y)!=null&&c.length))return this.warn("Failed to generate initSegment."),p;this.emitInitSegment&&(g.tracks=this.initTracks,this.emitInitSegment=!1);const S=fAt(v,y,this),k=y.audio?S[y.audio.id]:null,w=y.video?S[y.video.id]:null,x=Ix(w,1/0),E=Ix(k,1/0),_=Ix(w,0,!0),T=Ix(k,0,!0);let D=a,P=0;const M=k&&(!w||!d&&E0?this.lastEndTime=B:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const j=!!y.audio,H=!!y.video;let U="";j&&(U+="audio"),H&&(U+="video");const W=(y.audio?y.audio.encrypted:!1)||(y.video?y.video.encrypted:!1),K={data1:v,startPTS:L,startDTS:L,endPTS:B,endDTS:B,type:U,hasAudio:j,hasVideo:H,nb:1,dropped:0,encrypted:W};p.audio=j&&!H?K:void 0,p.video=H?K:void 0;const oe=w?.sampleCount;if(oe){const ae=w.keyFrameIndex,ee=ae!==-1;K.nb=oe,K.dropped=ae===0||this.isVideoContiguous?0:ee?ae:oe,K.independent=ee,K.firstKeyFrame=ae,ee&&w.keyFrameStart&&(K.firstKeyFramePTS=(w.keyFrameStart-d.baseTime)/d.timescale),this.isVideoContiguous||(p.independent=ee),this.isVideoContiguous||(this.isVideoContiguous=ee),K.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${ae}/${oe} dropped: ${K.dropped} start: ${K.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=q2e(r,a,d,d),i.samples.length&&(p.text=Y2e(i,a,d)),p}}function Ix(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function xLt(e,t,n,r){if(e===null)return!0;const i=Math.max(r,1),a=t-e.baseTime/e.timescale;return Math.abs(a-n)>i}function zue(e,t,n){const r=e.codec;return r&&r.length>4?r:t===To.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?BT(r,!1):(n.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"):(n.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1")}let yh;try{yh=self.performance.now.bind(self.performance)}catch{yh=Date.now}const l8=[{demux:uLt,remux:wLt},{demux:e0,remux:a8},{demux:oLt,remux:a8},{demux:aLt,remux:a8}];l8.splice(2,0,{demux:sLt,remux:a8});class Uue{constructor(t,n,r,i,a,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=n,this.config=r,this.id=a,this.logger=s}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,n,r,i){const a=r.transmuxing;a.executeStart=yh();let s=new Uint8Array(t);const{currentTransmuxState:l,transmuxConfig:c}=this;i&&(this.currentTransmuxState=i);const{contiguous:d,discontinuity:h,trackSwitch:p,accurateTimeOffset:v,timeOffset:g,initSegmentChange:y}=i||l,{audioCodec:S,videoCodec:k,defaultInitPts:w,duration:x,initSegmentData:E}=c,_=CLt(s,n);if(_&&ky(_.method)){const M=this.getDecrypter(),$=jG(_.method);if(M.isSync()){let L=M.softwareDecrypt(s,_.key.buffer,_.iv.buffer,$);if(r.part>-1){const j=M.flush();L=j&&j.buffer}if(!L)return a.executeEnd=yh(),YF(r);s=new Uint8Array(L)}else return this.asyncResult=!0,this.decryptionPromise=M.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,$).then(L=>{const B=this.push(L,null,r);return this.decryptionPromise=null,B}),this.decryptionPromise}const T=this.needsProbing(h,p);if(T){const M=this.configureTransmuxer(s);if(M)return this.logger.warn(`[transmuxer] ${M.message}`),this.observer.emit(Pe.ERROR,Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,fatal:!1,error:M,reason:M.message}),a.executeEnd=yh(),YF(r)}(h||p||y||T)&&this.resetInitSegment(E,S,k,x,n),(h||y||T)&&this.resetInitialTimestamp(w),d||this.resetContiguity();const D=this.transmux(s,_,g,v,r);this.asyncResult=P_(D);const P=this.currentTransmuxState;return P.contiguous=!0,P.discontinuity=!1,P.trackSwitch=!1,a.executeEnd=yh(),D}flush(t){const n=t.transmuxing;n.executeStart=yh();const{decrypter:r,currentTransmuxState:i,decryptionPromise:a}=this;if(a)return this.asyncResult=!0,a.then(()=>this.flush(t));const s=[],{timeOffset:l}=i;if(r){const p=r.flush();p&&s.push(this.push(p.buffer,null,t))}const{demuxer:c,remuxer:d}=this;if(!c||!d){n.executeEnd=yh();const p=[YF(t)];return this.asyncResult?Promise.resolve(p):p}const h=c.flush(l);return P_(h)?(this.asyncResult=!0,h.then(p=>(this.flushRemux(s,p,t),s))):(this.flushRemux(s,h,t),this.asyncResult?Promise.resolve(s):s)}flushRemux(t,n,r){const{audioTrack:i,videoTrack:a,id3Track:s,textTrack:l}=n,{accurateTimeOffset:c,timeOffset:d}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===Qn.MAIN?"level":"track"} ${r.level}`);const h=this.remuxer.remux(i,a,s,l,d,c,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=yh()}resetInitialTimestamp(t){const{demuxer:n,remuxer:r}=this;!n||!r||(n.resetTimeStamp(t),r.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetContiguity(),n.resetNextTimestamp())}resetInitSegment(t,n,r,i,a){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(t,n,r,i),l.resetInitSegment(t,n,r,a))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,n,r,i,a){let s;return n&&n.method==="SAMPLE-AES"?s=this.transmuxSampleAes(t,n,r,i,a):s=this.transmuxUnencrypted(t,r,i,a),s}transmuxUnencrypted(t,n,r,i){const{audioTrack:a,videoTrack:s,id3Track:l,textTrack:c}=this.demuxer.demux(t,n,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(a,s,l,c,n,r,!1,this.id),chunkMeta:i}}transmuxSampleAes(t,n,r,i,a){return this.demuxer.demuxSampleAes(t,n,r).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,r,i,!1,this.id),chunkMeta:a}))}configureTransmuxer(t){const{config:n,observer:r,typeSupported:i}=this;let a;for(let p=0,v=l8.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const YF=e=>({remuxResult:{},chunkMeta:e});function P_(e){return"then"in e&&e.then instanceof Function}class ELt{constructor(t,n,r,i,a){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=n,this.initSegmentData=r,this.duration=i,this.defaultInitPts=a||null}}class TLt{constructor(t,n,r,i,a,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=n,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=a,this.initSegmentChange=s}}let Hue=0;class X2e{constructor(t,n,r,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Hue++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=c=>{const d=c.data,h=this.hls;if(!(!h||!(d!=null&&d.event)||d.instanceNo!==this.instanceNo))switch(d.event){case"init":{var p;const v=(p=this.workerContext)==null?void 0:p.objectURL;v&&self.URL.revokeObjectURL(v);break}case"transmuxComplete":{this.handleTransmuxComplete(d.data);break}case"flush":{this.onFlush(d.data);break}case"workerLog":{h.logger[d.data.logType]&&h.logger[d.data.logType](d.data.message);break}default:{d.data=d.data||{},d.data.frag=this.frag,d.data.part=this.part,d.data.id=this.id,h.trigger(d.event,d.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const d=new Error(`${c.message} (${c.filename}:${c.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d})};const a=t.config;this.hls=t,this.id=n,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;const s=(c,d)=>{d=d||{},d.frag=this.frag||void 0,c===Pe.ERROR&&(d=d,d.parent=this.id,d.part=this.part,this.error=d.error),this.hls.trigger(c,d)};this.observer=new UG,this.observer.on(Pe.FRAG_DECRYPTED,s),this.observer.on(Pe.ERROR,s);const l=oue(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||DIt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=RIt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=PIt());const{worker:h}=this.workerContext;h.addEventListener("message",this.onWorkerMessage),h.addEventListener("error",this.onWorkerError),h.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:n,config:Ao(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new Uue(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new Uue(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Hue++;const n=this.hls.config,r=oue(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:Ao(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),MIt(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(t,n,r,i,a,s,l,c,d,h){var p,v;d.transmuxing.start=self.performance.now();const{instanceNo:g,transmuxer:y}=this,S=s?s.start:a.start,k=a.decryptdata,w=this.frag,x=!(w&&a.cc===w.cc),E=!(w&&d.level===w.level),_=w?d.sn-w.sn:-1,T=this.part?d.part-this.part.index:-1,D=_===0&&d.id>1&&d.id===w?.stats.chunkCount,P=!E&&(_===1||_===0&&(T===1||D&&T<=0)),M=self.performance.now();(E||_||a.stats.parsing.start===0)&&(a.stats.parsing.start=M),s&&(T||!P)&&(s.stats.parsing.start=M);const $=!(w&&((p=a.initSegment)==null?void 0:p.url)===((v=w.initSegment)==null?void 0:v.url)),L=new TLt(x,P,c,E,S,$);if(!P||x||$){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${d.sn}${d.part>-1?" part: "+d.part:""} ${this.id===Qn.MAIN?"level":"track"}: ${d.level} id: ${d.id} discontinuity: ${x} trackSwitch: ${E} contiguous: ${P} accurateTimeOffset: ${c} timeOffset: ${S} - initSegmentChange: ${O}`);const B=new bLt(r,i,n,l,h);this.configureTransmuxer(B)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:g,cmd:"demux",data:t,decryptdata:k,chunkMeta:d,state:L},t instanceof ArrayBuffer?[t]:[]);else if(y){const B=y.push(t,k,d,L);D_(B)?B.then(j=>{this.handleTransmuxComplete(j)}).catch(j=>{this.transmuxerError(j,d,"transmuxer-interface push error")}):this.handleTransmuxComplete(B)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:n,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:n,cmd:"flush",chunkMeta:t});else if(r){const i=r.flush(t);D_(i)?i.then(a=>{this.handleFlushResult(a,t)}).catch(a=>{this.transmuxerError(a,t,"transmuxer-interface flush error")}):this.handleFlushResult(i,t)}}transmuxerError(t,n,r){this.hls&&(this.error=t,this.hls.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,chunkMeta:n,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:t,err:t,reason:r}))}handleFlushResult(t,n){t.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(n)}configureTransmuxer(t){const{instanceNo:n,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:n,cmd:"configure",config:t}):r&&r.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}const Wue=100;class SLt extends zG{constructor(t,n,r){super(t,n,r,"audio-stream-controller",Qn.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Pe.BUFFER_RESET,this.onBufferReset,this),t.on(Pe.BUFFER_CREATED,this.onBufferCreated,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Pe.FRAG_LOADING,this.onFragLoading,this),t.on(Pe.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Pe.BUFFER_RESET,this.onBufferReset,this),t.off(Pe.BUFFER_CREATED,this.onBufferCreated,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Pe.FRAG_LOADING,this.onFragLoading,this),t.off(Pe.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:i,timescale:a,trackId:s}){if(r===Qn.MAIN){const l=n.cc,c=this.fragCurrent;if(this.initPTS[l]={baseTime:i,timescale:a,trackId:s},this.log(`InitPTS for cc: ${l} found from main: ${i/a} (${i}/${a}) trackId: ${s}`),this.mainAnchor=n,this.state===nn.WAITING_INIT_PTS){const d=this.waitingData;(!d&&!this.loadingParts||d&&d.frag.cc!==l)&&this.syncWithAnchor(n,d?.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(n,c)):this.state===nn.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(t,n){var r;const i=((r=this.mainFragLoading)==null?void 0:r.frag)||null;if(n&&i?.cc===n.cc)return;const a=(i||t).cc,s=this.getLevelDetails(),l=this.getLoadPosition(),c=f2e(s,a,l);c&&(this.log(`Syncing with main frag at ${c.start} cc ${c.cc}`),this.startFragRequested=!1,this.nextLoadPosition=c.start,this.resetLoadingState(),this.state===nn.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=nn.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(Wue),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=nn.IDLE):this.state=nn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case nn.IDLE:this.doTickIdle();break;case nn.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t?.[n],i=r?.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=nn.WAITING_INIT_PTS}break}case nn.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case nn.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:i,complete:a}=t,s=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=nn.FRAG_LOADING;const l=i.flush().buffer,c={frag:n,part:r,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),a&&super._handleFragmentLoadComplete(c)}else s&&s.cc!==t.frag.cc&&this.syncWithAnchor(s,t.frag)}else this.state=nn.IDLE}}this.onTickEnd()}resetLoadingState(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:t}=this;t!=null&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){var t;const{hls:n,levels:r,media:i,trackId:a}=this,s=n.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(r!=null&&r[a]))return;const l=r[a],c=l.details;if(!c||this.waitForLive(l)||this.waitForCdnTuneIn(c)){this.state=nn.WAITING_TRACK,this.startFragRequested=!1;return}const d=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&d&&(this.bufferFlushed=!1,this.afterBufferFlushed(d,To.AUDIO,Qn.AUDIO));const h=this.getFwdBufferInfo(d,Qn.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(Pe.BUFFER_EOS,{type:"audio"}),this.state=nn.ENDED;return}const p=h.len,v=n.maxBufferLength,g=c.fragments,y=g[0].start,S=this.getLoadPosition(),k=this.flushing?S:h.end;if(this.switchingTrack&&i){const E=S;c.PTSKnown&&Ey||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=y+.05)}if(p>=v&&!this.switchingTrack&&kx.end){const _=this.fragmentTracker.getFragAtPos(k,Qn.MAIN);_&&_.end>x.end&&(x=_,this.mainFragLoading={frag:_,targetBufferTime:null})}if(C.start>x.end)return}this.loadFragment(C,l,k)}onMediaDetaching(t,n){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(t,n)}onAudioTracksUpdated(t,{audioTracks:n}){this.resetTransmuxer(),this.levels=n.map(r=>new A_(r))}onAudioTrackSwitching(t,n){const r=!!n.url;this.trackId=n.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?(this.switchingTrack=n,this.flushAudioIfNeeded(n),this.state!==nn.STOPPED&&(this.setInterval(Wue),this.state=nn.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=n,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(t,n){this.mainDetails=n.details;const r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(Pe.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(t,n){var r;const{levels:i}=this,{details:a,id:s,groupId:l,track:c}=n;if(!i){this.warn(`Audio tracks reset while loading track ${s} "${c.name}" of "${l}"`);return}const d=this.mainDetails;if(!d||a.endCC>d.endCC||d.expired){this.cachedTrackLoadedData=n,this.state!==nn.STOPPED&&(this.state=nn.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${c.name}" of "${l}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);const h=i[s];let p=0;if(a.live||(r=h.details)!=null&&r.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;if(h.details){var v;p=this.alignPlaylists(a,h.details,(v=this.levelLastLoaded)==null?void 0:v.details)}a.alignedSliding||(L2e(a,d),a.alignedSliding||UT(a,d),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(d,p),this.hls.trigger(Pe.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===nn.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=nn.IDLE),this.tick()}_handleFragmentLoadProgress(t){var n;const r=t.frag,{part:i,payload:a}=t,{config:s,trackId:l,levels:c}=this;if(!c){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const d=c[l];if(!d){this.warn("Audio track is undefined on fragment load progress");return}const h=d.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const p=s.defaultAudioCodec||d.audioCodec||"mp4a.40.2";let v=this.transmuxer;v||(v=this.transmuxer=new X2e(this.hls,Qn.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const g=this.initPTS[r.cc],y=(n=r.initSegment)==null?void 0:n.data;if(g!==void 0){const k=i?i.index:-1,C=k!==-1,x=new FG(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,C);v.push(a,y,p,"",r,i,h.totalduration,!1,x,g)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${h.startSN} ,${h.endSN}],track ${l}`);const{cache:S}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new D2e,complete:!1};S.push(new Uint8Array(a)),this.state!==nn.STOPPED&&(this.state=nn.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(t){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(t,n){this.bufferFlushed=this.flushing=!1;const r=n.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(t,n){!this.audioOnly&&n.frag.type===Qn.MAIN&&qs(n.frag)&&(this.mainFragLoading=n,this.state===nn.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:i}=n;if(r.type!==Qn.AUDIO){!this.audioOnly&&r.type===Qn.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(qs(r)){this.fragPrevious=r;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(Pe.AUDIO_TRACK_SWITCHED,fo({},a)))}this.fragBufferedComplete(r,i),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=nn.ERROR;return}switch(n.details){case zt.FRAG_GAP:case zt.FRAG_PARSING_ERROR:case zt.FRAG_DECRYPT_ERROR:case zt.FRAG_LOAD_ERROR:case zt.FRAG_LOAD_TIMEOUT:case zt.KEY_LOAD_ERROR:case zt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Qn.AUDIO,n);break;case zt.AUDIO_TRACK_LOAD_ERROR:case zt.AUDIO_TRACK_LOAD_TIMEOUT:case zt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===nn.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===Si.AUDIO_TRACK&&(this.state=nn.IDLE);break;case zt.BUFFER_ADD_CODEC_ERROR:case zt.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case zt.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case zt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==To.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==To.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===nn.ENDED&&(this.state=nn.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,Qn.AUDIO),this.tick())}}_handleTransmuxComplete(t){var n;const r="audio",{hls:i}=this,{remuxResult:a,chunkMeta:s}=t,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:d,level:h}=l,{details:p}=h,{audio:v,text:g,id3:y,initSegment:S}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=nn.PARSING,this.switchingTrack&&v&&this.completeAudioSwitch(this.switchingTrack),S!=null&&S.tracks){const k=c.initSegment||c;if(this.unhandledEncryptionError(S,c))return;this._bufferInitSegment(h,S.tracks,k,s),i.trigger(Pe.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(v){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=v;d&&(d.elementaryStreams[To.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),c.setElementaryStreamInfo(To.AUDIO,k,C,x,E),this.bufferFragmentData(v,c,d,s)}if(y!=null&&(n=y.samples)!=null&&n.length){const k=bo({id:r,frag:c,details:p},y);i.trigger(Pe.FRAG_PARSING_METADATA,k)}if(g){const k=bo({id:r,frag:c,details:p},g);i.trigger(Pe.FRAG_PARSING_USERDATA,k)}}_bufferInitSegment(t,n,r,i){if(this.state!==nn.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=Qn.AUDIO;const s=t.audioCodec;this.log(`Init audio buffer, container:${a.container}, codecs[level/parsed]=[${s}/${a.codec}]`),s&&s.split(",").length===1&&(a.levelCodec=s),this.hls.trigger(Pe.BUFFER_CODECS,n);const l=a.initSegment;if(l!=null&&l.byteLength){const c={type:"audio",frag:r,part:null,chunkMeta:i,parent:r.type,data:l};this.hls.trigger(Pe.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(t,n,r){const i=this.fragmentTracker.getState(t);if(this.switchingTrack||i===da.NOT_LOADED||i===da.PARTIAL){var a;if(!qs(t))this._loadInitSegment(t,n);else if((a=n.details)!=null&&a.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=nn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==n.details.fragmentStart&&UT(n.details,s)}else super.loadFragment(t,n,r)}else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){if(this.media&&this.bufferedTrack){const{name:n,lang:r,assocLang:i,characteristics:a,audioCodec:s,channels:l}=this.bufferedTrack;xm({name:n,lang:r,assocLang:i,characteristics:a,audioCodec:s,channels:l},t,Gv)||(NT(t.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=t)}}completeAudioSwitch(t){const{hls:n}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,n.trigger(Pe.AUDIO_TRACK_SWITCHED,fo({},t))}}class XG extends od{constructor(t,n){super(n,t.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,n,r){const i=n?.renditionReports;if(i){let a=-1;for(let s=0;s=0&&h>n.partTarget&&(c+=1)}const d=r&&sue(r);return new aue(l,c>=0?c:void 0,d)}}}loadPlaylist(t){this.clearTimer()}loadingPlaylist(t,n){this.clearTimer()}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}getUrlWithDirectives(t,n){if(n)try{return n.addDirectives(t)}catch(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return t}playlistLoaded(t,n,r){const{details:i,stats:a}=n,s=self.performance.now(),l=a.loading.first?Math.max(0,s-a.loading.first):0;i.advancedDateTime=Date.now()-l;const c=this.hls.config.timelineOffset;if(c!==i.appliedTimelineOffset){const h=Math.max(c||0,0);i.appliedTimelineOffset=h,i.fragments.forEach(p=>{p.setStart(p.playlistOffset+h)})}if(i.live||r!=null&&r.live){const h="levelInfo"in n?n.levelInfo:n.track;if(i.reloaded(r),r&&i.fragments.length>0){hIt(r,i,this);const x=i.playlistParsingError;if(x){this.warn(x);const E=this.hls;if(!E.config.ignorePlaylistParsingErrors){var d;const{networkDetails:_}=n;E.trigger(Pe.ERROR,{type:ur.NETWORK_ERROR,details:zt.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:x,reason:x.message,level:n.level||void 0,parent:(d=i.fragments[0])==null?void 0:d.type,networkDetails:_,stats:a});return}i.playlistParsingError=null}}i.requestScheduled===-1&&(i.requestScheduled=a.loading.start);const p=this.hls.mainForwardBufferInfo,v=p?p.end-p.len:0,g=(i.edge-v)*1e3,y=w2e(i,g);if(i.requestScheduled+y0){if(O>i.targetduration*3)this.log(`Playlist last advanced ${M.toFixed(2)}s ago. Omitting segment and part directives.`),k=void 0,C=void 0;else if(r!=null&&r.tuneInGoal&&O-i.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${L} with playlist age: ${i.age}`),L=0;else{const B=Math.floor(L/i.targetduration);if(k+=B,C!==void 0){const j=Math.round(L%i.targetduration/i.partTarget);C+=j}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${M.toFixed(2)}s goal: ${L} skip sn ${B} to part ${C}`)}i.tuneInGoal=L}if(S=this.getDeliveryDirectives(i,n.deliveryDirectives,k,C),x||!P){i.requestScheduled=s,this.loadingPlaylist(h,S);return}}else(i.canBlockReload||i.canSkipUntil)&&(S=this.getDeliveryDirectives(i,n.deliveryDirectives,k,C));S&&k!==void 0&&i.canBlockReload&&(i.requestScheduled=a.loading.first+Math.max(y-l*2,y/2)),this.scheduleLoading(h,S,i)}else this.clearTimer()}scheduleLoading(t,n,r){const i=r||t.details;if(!i){this.loadingPlaylist(t,n);return}const a=self.performance.now(),s=i.requestScheduled;if(a>=s){this.loadingPlaylist(t,n);return}const l=s-a;this.log(`reload live playlist ${t.name||t.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(t,n),l)}getDeliveryDirectives(t,n,r,i){let a=sue(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,i=n.part,a=i8.No),new aue(r,i,a)}checkRetry(t){const n=t.details,r=FT(t),i=t.errorAction,{action:a,retryCount:s=0,retryConfig:l}=i||{},c=!!i&&!!l&&(a===ja.RetryRequest||!i.resolved&&a===ja.SendAlternateToPenaltyBox);if(c){var d;if(s>=l.maxNumRetry)return!1;if(r&&(d=t.context)!=null&&d.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const h=BG(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),h),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" in ${h}ms`)}t.levelRetry=!0,i.resolved=!0}return c}}function Z2e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[i]!==t[i])}function Qz(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class kLt extends XG{constructor(t){super(t,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Pe.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.audioTracks||[]}onAudioTrackLoaded(t,n){const{id:r,groupId:i,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==i){this.warn(`Audio track with id:${r} and group:${i} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Audio track ${r} "${s.name}" lang:${s.lang} group:${i} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.audioGroups||null,i=this.groupIds;let a=this.currentTrack;if(!r||i?.length!==r?.length||r!=null&&r.some(l=>i?.indexOf(l)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(v=>!r||r.indexOf(v.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(v=>v.default)&&(this.selectDefaultTrack=!1),l.forEach((v,g)=>{v.id=g});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!a&&c){const v=vf(c,l,Gv);if(v>-1)a=l[v];else{const g=vf(c,this.tracks);a=this.tracks[g]}}let d=this.findTrackId(a);d===-1&&a&&(d=this.findTrackId(null));const h={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${r?.join(",")}`),this.hls.trigger(Pe.AUDIO_TRACKS_UPDATED,h);const p=this.trackId;if(d!==-1&&p===-1)this.setAudioTrack(d);else if(l.length&&p===-1){var s;const v=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(v.message),this.hls.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:v})}}}onError(t,n){n.fatal||!n.context||n.context.type===Si.AUDIO_TRACK&&n.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&this.checkRetry(n)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const n=this.hls;if(n.config.audioPreference=t,t){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const i=this.currentTrack;if(i&&xm(t,i,Gv))return i;const a=vf(t,this.tracksInGroup,Gv);if(a>-1){const s=this.tracksInGroup[a];return this.setAudioTrack(a),s}else if(i){let s=n.loadLevel;s===-1&&(s=n.firstAutoLevel);const l=MAt(t,n.levels,r,s,Gv);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=vf(t,r);if(s>-1)return r[s]}}}return null}setAudioTrack(t){const n=this.tracksInGroup;if(t<0||t>=n.length){this.warn(`Invalid audio track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[t],a=i.details&&!i.details.live;if(t===this.trackId&&i===r&&a||(this.log(`Switching to audio-track ${t} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=t,this.currentTrack=i,this.hls.trigger(Pe.AUDIO_TRACK_SWITCHING,fo({},i)),a))return;const s=this.switchParams(i.url,r?.details,i.details);this.loadPlaylist(s)}findTrackId(t){const n=this.tracksInGroup;for(let r=0;r{const r={label:"async-blocker",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,t)})}prependBlocker(t){return new Promise(n=>{if(this.queues){const r={label:"async-blocker-prepend",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[t].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(t=>{var n;const r=(n=t[0])==null?void 0:n.label;(r==="async-blocker"||r==="async-blocker-prepend")&&(t[0].execute(),t.splice(0,1))})}unblockAudio(t){if(this.queues===null)return;this.queues.audio[0]===t&&this.shiftAndExecuteNext("audio")}executeNext(t){if(this.queues===null||this.tracks===null)return;const n=this.queues[t];if(n.length){const i=n[0];try{i.execute()}catch(a){var r;if(i.onError(a),this.queues===null||this.tracks===null)return;const s=(r=this.tracks[t])==null?void 0:r.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){this.queues!==null&&(this.queues[t].shift(),this.executeNext(t))}current(t){var n;return((n=this.queues)==null?void 0:n[t][0])||null}toString(){const{queues:t,tracks:n}=this;return t===null||n===null?"":` + initSegmentChange: ${$}`);const B=new ELt(r,i,n,l,h);this.configureTransmuxer(B)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:g,cmd:"demux",data:t,decryptdata:k,chunkMeta:d,state:L},t instanceof ArrayBuffer?[t]:[]);else if(y){const B=y.push(t,k,d,L);P_(B)?B.then(j=>{this.handleTransmuxComplete(j)}).catch(j=>{this.transmuxerError(j,d,"transmuxer-interface push error")}):this.handleTransmuxComplete(B)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:n,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:n,cmd:"flush",chunkMeta:t});else if(r){const i=r.flush(t);P_(i)?i.then(a=>{this.handleFlushResult(a,t)}).catch(a=>{this.transmuxerError(a,t,"transmuxer-interface flush error")}):this.handleFlushResult(i,t)}}transmuxerError(t,n,r){this.hls&&(this.error=t,this.hls.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.FRAG_PARSING_ERROR,chunkMeta:n,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:t,err:t,reason:r}))}handleFlushResult(t,n){t.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(n)}configureTransmuxer(t){const{instanceNo:n,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:n,cmd:"configure",config:t}):r&&r.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}const Wue=100;class ALt extends zG{constructor(t,n,r){super(t,n,r,"audio-stream-controller",Qn.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Pe.BUFFER_RESET,this.onBufferReset,this),t.on(Pe.BUFFER_CREATED,this.onBufferCreated,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Pe.FRAG_LOADING,this.onFragLoading,this),t.on(Pe.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Pe.BUFFER_RESET,this.onBufferReset,this),t.off(Pe.BUFFER_CREATED,this.onBufferCreated,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Pe.FRAG_LOADING,this.onFragLoading,this),t.off(Pe.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:i,timescale:a,trackId:s}){if(r===Qn.MAIN){const l=n.cc,c=this.fragCurrent;if(this.initPTS[l]={baseTime:i,timescale:a,trackId:s},this.log(`InitPTS for cc: ${l} found from main: ${i/a} (${i}/${a}) trackId: ${s}`),this.mainAnchor=n,this.state===nn.WAITING_INIT_PTS){const d=this.waitingData;(!d&&!this.loadingParts||d&&d.frag.cc!==l)&&this.syncWithAnchor(n,d?.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(n,c)):this.state===nn.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(t,n){var r;const i=((r=this.mainFragLoading)==null?void 0:r.frag)||null;if(n&&i?.cc===n.cc)return;const a=(i||t).cc,s=this.getLevelDetails(),l=this.getLoadPosition(),c=f2e(s,a,l);c&&(this.log(`Syncing with main frag at ${c.start} cc ${c.cc}`),this.startFragRequested=!1,this.nextLoadPosition=c.start,this.resetLoadingState(),this.state===nn.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=nn.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(Wue),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=nn.IDLE):this.state=nn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case nn.IDLE:this.doTickIdle();break;case nn.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t?.[n],i=r?.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=nn.WAITING_INIT_PTS}break}case nn.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case nn.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:i,complete:a}=t,s=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=nn.FRAG_LOADING;const l=i.flush().buffer,c={frag:n,part:r,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),a&&super._handleFragmentLoadComplete(c)}else s&&s.cc!==t.frag.cc&&this.syncWithAnchor(s,t.frag)}else this.state=nn.IDLE}}this.onTickEnd()}resetLoadingState(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:t}=this;t!=null&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){var t;const{hls:n,levels:r,media:i,trackId:a}=this,s=n.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(r!=null&&r[a]))return;const l=r[a],c=l.details;if(!c||this.waitForLive(l)||this.waitForCdnTuneIn(c)){this.state=nn.WAITING_TRACK,this.startFragRequested=!1;return}const d=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&d&&(this.bufferFlushed=!1,this.afterBufferFlushed(d,To.AUDIO,Qn.AUDIO));const h=this.getFwdBufferInfo(d,Qn.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(Pe.BUFFER_EOS,{type:"audio"}),this.state=nn.ENDED;return}const p=h.len,v=n.maxBufferLength,g=c.fragments,y=g[0].start,S=this.getLoadPosition(),k=this.flushing?S:h.end;if(this.switchingTrack&&i){const E=S;c.PTSKnown&&Ey||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=y+.05)}if(p>=v&&!this.switchingTrack&&kx.end){const _=this.fragmentTracker.getFragAtPos(k,Qn.MAIN);_&&_.end>x.end&&(x=_,this.mainFragLoading={frag:_,targetBufferTime:null})}if(w.start>x.end)return}this.loadFragment(w,l,k)}onMediaDetaching(t,n){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(t,n)}onAudioTracksUpdated(t,{audioTracks:n}){this.resetTransmuxer(),this.levels=n.map(r=>new I_(r))}onAudioTrackSwitching(t,n){const r=!!n.url;this.trackId=n.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?(this.switchingTrack=n,this.flushAudioIfNeeded(n),this.state!==nn.STOPPED&&(this.setInterval(Wue),this.state=nn.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=n,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(t,n){this.mainDetails=n.details;const r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(Pe.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(t,n){var r;const{levels:i}=this,{details:a,id:s,groupId:l,track:c}=n;if(!i){this.warn(`Audio tracks reset while loading track ${s} "${c.name}" of "${l}"`);return}const d=this.mainDetails;if(!d||a.endCC>d.endCC||d.expired){this.cachedTrackLoadedData=n,this.state!==nn.STOPPED&&(this.state=nn.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${c.name}" of "${l}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);const h=i[s];let p=0;if(a.live||(r=h.details)!=null&&r.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;if(h.details){var v;p=this.alignPlaylists(a,h.details,(v=this.levelLastLoaded)==null?void 0:v.details)}a.alignedSliding||(L2e(a,d),a.alignedSliding||HT(a,d),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(d,p),this.hls.trigger(Pe.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===nn.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=nn.IDLE),this.tick()}_handleFragmentLoadProgress(t){var n;const r=t.frag,{part:i,payload:a}=t,{config:s,trackId:l,levels:c}=this;if(!c){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const d=c[l];if(!d){this.warn("Audio track is undefined on fragment load progress");return}const h=d.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const p=s.defaultAudioCodec||d.audioCodec||"mp4a.40.2";let v=this.transmuxer;v||(v=this.transmuxer=new X2e(this.hls,Qn.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const g=this.initPTS[r.cc],y=(n=r.initSegment)==null?void 0:n.data;if(g!==void 0){const k=i?i.index:-1,w=k!==-1,x=new FG(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,w);v.push(a,y,p,"",r,i,h.totalduration,!1,x,g)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${h.startSN} ,${h.endSN}],track ${l}`);const{cache:S}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new D2e,complete:!1};S.push(new Uint8Array(a)),this.state!==nn.STOPPED&&(this.state=nn.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(t){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(t,n){this.bufferFlushed=this.flushing=!1;const r=n.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(t,n){!this.audioOnly&&n.frag.type===Qn.MAIN&&qs(n.frag)&&(this.mainFragLoading=n,this.state===nn.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:i}=n;if(r.type!==Qn.AUDIO){!this.audioOnly&&r.type===Qn.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(qs(r)){this.fragPrevious=r;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(Pe.AUDIO_TRACK_SWITCHED,fo({},a)))}this.fragBufferedComplete(r,i),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=nn.ERROR;return}switch(n.details){case zt.FRAG_GAP:case zt.FRAG_PARSING_ERROR:case zt.FRAG_DECRYPT_ERROR:case zt.FRAG_LOAD_ERROR:case zt.FRAG_LOAD_TIMEOUT:case zt.KEY_LOAD_ERROR:case zt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Qn.AUDIO,n);break;case zt.AUDIO_TRACK_LOAD_ERROR:case zt.AUDIO_TRACK_LOAD_TIMEOUT:case zt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===nn.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===ki.AUDIO_TRACK&&(this.state=nn.IDLE);break;case zt.BUFFER_ADD_CODEC_ERROR:case zt.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case zt.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case zt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==To.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==To.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===nn.ENDED&&(this.state=nn.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,Qn.AUDIO),this.tick())}}_handleTransmuxComplete(t){var n;const r="audio",{hls:i}=this,{remuxResult:a,chunkMeta:s}=t,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:d,level:h}=l,{details:p}=h,{audio:v,text:g,id3:y,initSegment:S}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=nn.PARSING,this.switchingTrack&&v&&this.completeAudioSwitch(this.switchingTrack),S!=null&&S.tracks){const k=c.initSegment||c;if(this.unhandledEncryptionError(S,c))return;this._bufferInitSegment(h,S.tracks,k,s),i.trigger(Pe.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(v){const{startPTS:k,endPTS:w,startDTS:x,endDTS:E}=v;d&&(d.elementaryStreams[To.AUDIO]={startPTS:k,endPTS:w,startDTS:x,endDTS:E}),c.setElementaryStreamInfo(To.AUDIO,k,w,x,E),this.bufferFragmentData(v,c,d,s)}if(y!=null&&(n=y.samples)!=null&&n.length){const k=bo({id:r,frag:c,details:p},y);i.trigger(Pe.FRAG_PARSING_METADATA,k)}if(g){const k=bo({id:r,frag:c,details:p},g);i.trigger(Pe.FRAG_PARSING_USERDATA,k)}}_bufferInitSegment(t,n,r,i){if(this.state!==nn.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=Qn.AUDIO;const s=t.audioCodec;this.log(`Init audio buffer, container:${a.container}, codecs[level/parsed]=[${s}/${a.codec}]`),s&&s.split(",").length===1&&(a.levelCodec=s),this.hls.trigger(Pe.BUFFER_CODECS,n);const l=a.initSegment;if(l!=null&&l.byteLength){const c={type:"audio",frag:r,part:null,chunkMeta:i,parent:r.type,data:l};this.hls.trigger(Pe.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(t,n,r){const i=this.fragmentTracker.getState(t);if(this.switchingTrack||i===da.NOT_LOADED||i===da.PARTIAL){var a;if(!qs(t))this._loadInitSegment(t,n);else if((a=n.details)!=null&&a.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=nn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==n.details.fragmentStart&&HT(n.details,s)}else super.loadFragment(t,n,r)}else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){if(this.media&&this.bufferedTrack){const{name:n,lang:r,assocLang:i,characteristics:a,audioCodec:s,channels:l}=this.bufferedTrack;Cm({name:n,lang:r,assocLang:i,characteristics:a,audioCodec:s,channels:l},t,qv)||(FT(t.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=t)}}completeAudioSwitch(t){const{hls:n}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,n.trigger(Pe.AUDIO_TRACK_SWITCHED,fo({},t))}}class XG extends od{constructor(t,n){super(n,t.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,n,r){const i=n?.renditionReports;if(i){let a=-1;for(let s=0;s=0&&h>n.partTarget&&(c+=1)}const d=r&&sue(r);return new aue(l,c>=0?c:void 0,d)}}}loadPlaylist(t){this.clearTimer()}loadingPlaylist(t,n){this.clearTimer()}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}getUrlWithDirectives(t,n){if(n)try{return n.addDirectives(t)}catch(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return t}playlistLoaded(t,n,r){const{details:i,stats:a}=n,s=self.performance.now(),l=a.loading.first?Math.max(0,s-a.loading.first):0;i.advancedDateTime=Date.now()-l;const c=this.hls.config.timelineOffset;if(c!==i.appliedTimelineOffset){const h=Math.max(c||0,0);i.appliedTimelineOffset=h,i.fragments.forEach(p=>{p.setStart(p.playlistOffset+h)})}if(i.live||r!=null&&r.live){const h="levelInfo"in n?n.levelInfo:n.track;if(i.reloaded(r),r&&i.fragments.length>0){_It(r,i,this);const x=i.playlistParsingError;if(x){this.warn(x);const E=this.hls;if(!E.config.ignorePlaylistParsingErrors){var d;const{networkDetails:_}=n;E.trigger(Pe.ERROR,{type:cr.NETWORK_ERROR,details:zt.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:x,reason:x.message,level:n.level||void 0,parent:(d=i.fragments[0])==null?void 0:d.type,networkDetails:_,stats:a});return}i.playlistParsingError=null}}i.requestScheduled===-1&&(i.requestScheduled=a.loading.start);const p=this.hls.mainForwardBufferInfo,v=p?p.end-p.len:0,g=(i.edge-v)*1e3,y=C2e(i,g);if(i.requestScheduled+y0){if($>i.targetduration*3)this.log(`Playlist last advanced ${M.toFixed(2)}s ago. Omitting segment and part directives.`),k=void 0,w=void 0;else if(r!=null&&r.tuneInGoal&&$-i.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${L} with playlist age: ${i.age}`),L=0;else{const B=Math.floor(L/i.targetduration);if(k+=B,w!==void 0){const j=Math.round(L%i.targetduration/i.partTarget);w+=j}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${M.toFixed(2)}s goal: ${L} skip sn ${B} to part ${w}`)}i.tuneInGoal=L}if(S=this.getDeliveryDirectives(i,n.deliveryDirectives,k,w),x||!P){i.requestScheduled=s,this.loadingPlaylist(h,S);return}}else(i.canBlockReload||i.canSkipUntil)&&(S=this.getDeliveryDirectives(i,n.deliveryDirectives,k,w));S&&k!==void 0&&i.canBlockReload&&(i.requestScheduled=a.loading.first+Math.max(y-l*2,y/2)),this.scheduleLoading(h,S,i)}else this.clearTimer()}scheduleLoading(t,n,r){const i=r||t.details;if(!i){this.loadingPlaylist(t,n);return}const a=self.performance.now(),s=i.requestScheduled;if(a>=s){this.loadingPlaylist(t,n);return}const l=s-a;this.log(`reload live playlist ${t.name||t.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(t,n),l)}getDeliveryDirectives(t,n,r,i){let a=sue(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,i=n.part,a=o8.No),new aue(r,i,a)}checkRetry(t){const n=t.details,r=jT(t),i=t.errorAction,{action:a,retryCount:s=0,retryConfig:l}=i||{},c=!!i&&!!l&&(a===ja.RetryRequest||!i.resolved&&a===ja.SendAlternateToPenaltyBox);if(c){var d;if(s>=l.maxNumRetry)return!1;if(r&&(d=t.context)!=null&&d.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const h=BG(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),h),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" in ${h}ms`)}t.levelRetry=!0,i.resolved=!0}return c}}function Z2e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[i]!==t[i])}function tU(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class ILt extends XG{constructor(t){super(t,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Pe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Pe.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.audioTracks||[]}onAudioTrackLoaded(t,n){const{id:r,groupId:i,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==i){this.warn(`Audio track with id:${r} and group:${i} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Audio track ${r} "${s.name}" lang:${s.lang} group:${i} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.audioGroups||null,i=this.groupIds;let a=this.currentTrack;if(!r||i?.length!==r?.length||r!=null&&r.some(l=>i?.indexOf(l)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(v=>!r||r.indexOf(v.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(v=>v.default)&&(this.selectDefaultTrack=!1),l.forEach((v,g)=>{v.id=g});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!a&&c){const v=vf(c,l,qv);if(v>-1)a=l[v];else{const g=vf(c,this.tracks);a=this.tracks[g]}}let d=this.findTrackId(a);d===-1&&a&&(d=this.findTrackId(null));const h={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${r?.join(",")}`),this.hls.trigger(Pe.AUDIO_TRACKS_UPDATED,h);const p=this.trackId;if(d!==-1&&p===-1)this.setAudioTrack(d);else if(l.length&&p===-1){var s;const v=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(v.message),this.hls.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:v})}}}onError(t,n){n.fatal||!n.context||n.context.type===ki.AUDIO_TRACK&&n.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&this.checkRetry(n)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const n=this.hls;if(n.config.audioPreference=t,t){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const i=this.currentTrack;if(i&&Cm(t,i,qv))return i;const a=vf(t,this.tracksInGroup,qv);if(a>-1){const s=this.tracksInGroup[a];return this.setAudioTrack(a),s}else if(i){let s=n.loadLevel;s===-1&&(s=n.firstAutoLevel);const l=VAt(t,n.levels,r,s,qv);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=vf(t,r);if(s>-1)return r[s]}}}return null}setAudioTrack(t){const n=this.tracksInGroup;if(t<0||t>=n.length){this.warn(`Invalid audio track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[t],a=i.details&&!i.details.live;if(t===this.trackId&&i===r&&a||(this.log(`Switching to audio-track ${t} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=t,this.currentTrack=i,this.hls.trigger(Pe.AUDIO_TRACK_SWITCHING,fo({},i)),a))return;const s=this.switchParams(i.url,r?.details,i.details);this.loadPlaylist(s)}findTrackId(t){const n=this.tracksInGroup;for(let r=0;r{const r={label:"async-blocker",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,t)})}prependBlocker(t){return new Promise(n=>{if(this.queues){const r={label:"async-blocker-prepend",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[t].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(t=>{var n;const r=(n=t[0])==null?void 0:n.label;(r==="async-blocker"||r==="async-blocker-prepend")&&(t[0].execute(),t.splice(0,1))})}unblockAudio(t){if(this.queues===null)return;this.queues.audio[0]===t&&this.shiftAndExecuteNext("audio")}executeNext(t){if(this.queues===null||this.tracks===null)return;const n=this.queues[t];if(n.length){const i=n[0];try{i.execute()}catch(a){var r;if(i.onError(a),this.queues===null||this.tracks===null)return;const s=(r=this.tracks[t])==null?void 0:r.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){this.queues!==null&&(this.queues[t].shift(),this.executeNext(t))}current(t){var n;return((n=this.queues)==null?void 0:n[t][0])||null}toString(){const{queues:t,tracks:n}=this;return t===null||n===null?"":` ${this.list("video")} ${this.list("audio")} -${this.list("audiovideo")}}`}list(t){var n,r;return(n=this.queues)!=null&&n[t]||(r=this.tracks)!=null&&r[t]?`${t}: (${this.listSbInfo(t)}) ${this.listOps(t)}`:""}listSbInfo(t){var n;const r=(n=this.tracks)==null?void 0:n[t],i=r?.buffer;return i?`SourceBuffer${i.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(t){var n;return((n=this.queues)==null?void 0:n[t].map(r=>r.label).join(", "))||""}}const Gue=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,J2e="HlsJsTrackRemovedError";class CLt extends Error{constructor(t){super(t),this.name=J2e}}class wLt extends od{constructor(t,n){super("buffer-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=r=>{var i;this.hls&&((i=this.mediaSource)==null?void 0:i.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:i,mediaSource:a}=this;r&&this.log("Media source opened"),!(!i||!a)&&(a.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(Pe.MEDIA_ATTACHED,{media:i,mediaSource:a}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:i}=this;r!==i&&this.error(`Media element src was set while attaching MediaSource (${i} > ${r})`)},this.hls=t,this.fragmentTracker=n,this.appendSource=K5t(R0(t.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:t}=this;t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.BUFFER_RESET,this.onBufferReset,this),t.on(Pe.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Pe.BUFFER_EOS,this.onBufferEos,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Pe.FRAG_PARSED,this.onFragParsed,this),t.on(Pe.FRAG_CHANGED,this.onFragChanged,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.BUFFER_RESET,this.onBufferReset,this),t.off(Pe.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Pe.BUFFER_EOS,this.onBufferEos,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Pe.FRAG_PARSED,this.onFragParsed,this),t.off(Pe.FRAG_CHANGED,this.onFragChanged,this),t.off(Pe.ERROR,this.onError,this)}transferMedia(){const{media:t,mediaSource:n}=this;if(!t)return null;const r={};if(this.operationQueue){const a=this.isUpdating();a||this.operationQueue.removeBlockers();const s=this.isQueued();(a||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${a?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===n?bo(r,i.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=bo({},this.tracks[s]),this.removeBuffer(s)),a[0]=a[1]=null}),{media:t,mediaSource:n,tracks:r}}initTracks(){const t={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=t,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,n){var r;let i=2;(n.audio&&!n.video||!n.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(t,n){const r=this.media=n.media;this.transferData=this.overrides=void 0;const i=R0(this.appendSource);if(i){const a=!!n.mediaSource;(a||n.overrides)&&(this.transferData=n,this.overrides=n.overrides);const s=this.mediaSource=n.mediaSource||new i;if(this.assignMediaSource(s),a)this._objectUrl=r.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{r.removeAttribute("src");const c=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||c&&s instanceof c,Kue(r),ELt(r,l),r.load()}catch{r.src=l}else r.src=l}r.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(t){var n,r;this.log(`${((n=this.transferData)==null?void 0:n.mediaSource)===t?"transferred":"created"} media source: ${(r=t.constructor)==null?void 0:r.name}`),t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.addEventListener("startstreaming",this._onStartStreaming),t.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const t=this.media,n=this.transferData;if(!n||!t)return;const r=this.tracks,i=n.tracks,a=i?Object.keys(i):null,s=a?a.length:0,l=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(i&&a&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal}) +${this.list("audiovideo")}}`}list(t){var n,r;return(n=this.queues)!=null&&n[t]||(r=this.tracks)!=null&&r[t]?`${t}: (${this.listSbInfo(t)}) ${this.listOps(t)}`:""}listSbInfo(t){var n;const r=(n=this.tracks)==null?void 0:n[t],i=r?.buffer;return i?`SourceBuffer${i.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(t){var n;return((n=this.queues)==null?void 0:n[t].map(r=>r.label).join(", "))||""}}const Gue=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,J2e="HlsJsTrackRemovedError";class DLt extends Error{constructor(t){super(t),this.name=J2e}}class PLt extends od{constructor(t,n){super("buffer-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=r=>{var i;this.hls&&((i=this.mediaSource)==null?void 0:i.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:i,mediaSource:a}=this;r&&this.log("Media source opened"),!(!i||!a)&&(a.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(Pe.MEDIA_ATTACHED,{media:i,mediaSource:a}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:i}=this;r!==i&&this.error(`Media element src was set while attaching MediaSource (${i} > ${r})`)},this.hls=t,this.fragmentTracker=n,this.appendSource=eAt($0(t.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:t}=this;t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.BUFFER_RESET,this.onBufferReset,this),t.on(Pe.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Pe.BUFFER_EOS,this.onBufferEos,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Pe.FRAG_PARSED,this.onFragParsed,this),t.on(Pe.FRAG_CHANGED,this.onFragChanged,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.BUFFER_RESET,this.onBufferReset,this),t.off(Pe.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Pe.BUFFER_EOS,this.onBufferEos,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Pe.FRAG_PARSED,this.onFragParsed,this),t.off(Pe.FRAG_CHANGED,this.onFragChanged,this),t.off(Pe.ERROR,this.onError,this)}transferMedia(){const{media:t,mediaSource:n}=this;if(!t)return null;const r={};if(this.operationQueue){const a=this.isUpdating();a||this.operationQueue.removeBlockers();const s=this.isQueued();(a||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${a?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===n?bo(r,i.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=bo({},this.tracks[s]),this.removeBuffer(s)),a[0]=a[1]=null}),{media:t,mediaSource:n,tracks:r}}initTracks(){const t={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=t,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,n){var r;let i=2;(n.audio&&!n.video||!n.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(t,n){const r=this.media=n.media;this.transferData=this.overrides=void 0;const i=$0(this.appendSource);if(i){const a=!!n.mediaSource;(a||n.overrides)&&(this.transferData=n,this.overrides=n.overrides);const s=this.mediaSource=n.mediaSource||new i;if(this.assignMediaSource(s),a)this._objectUrl=r.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{r.removeAttribute("src");const c=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||c&&s instanceof c,Kue(r),RLt(r,l),r.load()}catch{r.src=l}else r.src=l}r.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(t){var n,r;this.log(`${((n=this.transferData)==null?void 0:n.mediaSource)===t?"transferred":"created"} media source: ${(r=t.constructor)==null?void 0:r.name}`),t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.addEventListener("startstreaming",this._onStartStreaming),t.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const t=this.media,n=this.transferData;if(!n||!t)return;const r=this.tracks,i=n.tracks,a=i?Object.keys(i):null,s=a?a.length:0,l=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(i&&a&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal}) required tracks: ${Ao(r,(c,d)=>c==="initSegment"?void 0:d)}; -transfer tracks: ${Ao(i,(c,d)=>c==="initSegment"?void 0:d)}}`),!q3e(i,r)){n.mediaSource=null,n.tracks=void 0;const c=t.currentTime,d=this.details,h=Math.max(c,d?.fragments[0].start||0);if(h-c>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${c} -> ${h}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(r)}") start time: ${h} currentTime: ${c}`),this.onMediaDetaching(Pe.MEDIA_DETACHING,{}),this.onMediaAttaching(Pe.MEDIA_ATTACHING,n),t.currentTime=h;return}this.transferData=void 0,a.forEach(c=>{const d=c,h=i[d];if(h){const p=h.buffer;if(p){const v=this.fragmentTracker,g=h.id;if(v.hasFragments(g)||v.hasParts(g)){const k=jr.getBuffered(p);v.detectEvictedFragments(d,k,g,null,!0)}const y=qF(d),S=[d,p];this.sourceBuffers[y]=S,p.updating&&this.operationQueue&&this.operationQueue.prependBlocker(d),this.trackSourceBuffer(d,h)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var t;const n=(t=this.mediaSource)==null?void 0:t.readyState;return n==="open"||n==="ended"}onMediaDetaching(t,n){const r=!!n.transferMedia;this.transferData=this.overrides=void 0;const{media:i,mediaSource:a,_objectUrl:s}=this;if(a){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=a.readyState==="open";try{const c=a.sourceBuffers;for(let d=c.length;d--;)l&&c[d].abort(),a.removeSourceBuffer(c[d]);l&&a.endOfStream()}catch(c){this.warn(`onMediaDetaching: ${c.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),r||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(i.removeAttribute("src"),this.appendSource&&Kue(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Pe.MEDIA_DETACHED,n)}onBufferReset(){this.sourceBuffers.forEach(([t])=>{t&&this.resetBuffer(t)}),this.initTracks()}resetBuffer(t){var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;if(this.removeBuffer(t),r)try{var i;(i=this.mediaSource)!=null&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(a){this.warn(`onBufferReset ${t}`,a)}delete this.tracks[t]}removeBuffer(t){this.removeBufferListeners(t),this.sourceBuffers[qF(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new xLt(this.tracks)}onBufferCodecs(t,n){var r;const i=this.tracks,a=Object.keys(n);this.log(`BUFFER_CODECS: "${a}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in n&&(i.audio||i.video)||i.audiovideo&&("audio"in n||"video"in n),l=!s&&this.sourceBufferCount&&this.media&&a.some(c=>!i[c]);if(s||l){this.warn(`Unsupported transition between "${Object.keys(i)}" and "${a}" SourceBuffers`);return}a.forEach(c=>{var d,h;const p=n[c],{id:v,codec:g,levelCodec:y,container:S,metadata:k,supplemental:C}=p;let x=i[c];const E=(d=this.transferData)==null||(d=d.tracks)==null?void 0:d[c],_=E!=null&&E.buffer?E:x,T=_?.pendingCodec||_?.codec,D=_?.levelCodec;x||(x=i[c]={buffer:void 0,listeners:[],codec:g,supplemental:C,container:S,levelCodec:y,metadata:k,id:v});const P=r8(T,D),M=P?.replace(Gue,"$1");let O=r8(g,y);const L=(h=O)==null?void 0:h.replace(Gue,"$1");O&&P&&M!==L&&(c.slice(0,5)==="audio"&&(O=OT(O,this.appendSource)),this.log(`switching codec ${T} to ${O}`),O!==(x.pendingCodec||x.codec)&&(x.pendingCodec=O),x.container=S,this.appendChangeType(c,S,O))}),(this.tracksReady||this.sourceBufferCount)&&(n.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!n.video&&((r=n.audio)==null?void 0:r.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((t,n)=>{const r=this.tracks[n];return t[n]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},t},{})}appendChangeType(t,n,r){const i=`${n};codecs=${r}`,a={label:`change-type=${i}`,execute:()=>{const s=this.tracks[t];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${t} sourceBuffer type to ${i}`),l.changeType(i),s.codec=r,s.container=n)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${t} SourceBuffer type`,s)}};this.append(a,t,this.isPending(this.tracks[t]))}blockAudio(t){var n;const r=t.start,i=r+t.duration*.05;if(((n=this.fragmentTracker.getAppendedFrag(r,Qn.MAIN))==null?void 0:n.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const c=this.tracks.video;(this.lastVideoAppendEnd>i||c!=null&&c.buffer&&jr.isBuffered(c.buffer,i)||((l=this.fragmentTracker.getAppendedFrag(i,Qn.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:t},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:t,operationQueue:n}=this;t&&n&&(this.blockedAudioAppend=null,n.unblockAudio(t.op))}onBufferAppending(t,n){const{tracks:r}=this,{data:i,type:a,parent:s,frag:l,part:c,chunkMeta:d,offset:h}=n,p=d.buffering[a],{sn:v,cc:g}=l,y=self.performance.now();p.start=y;const S=l.stats.buffering,k=c?c.stats.buffering:null;S.start===0&&(S.start=y),k&&k.start===0&&(k.start=y);const C=r.audio;let x=!1;a==="audio"&&C?.container==="audio/mpeg"&&(x=!this.lastMpegAudioChunk||d.id===1||this.lastMpegAudioChunk.sn!==d.sn,this.lastMpegAudioChunk=d);const E=r.video,_=E?.buffer;if(_&&v!=="initSegment"){const P=c||l,M=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(E.ending||E.ended)){const L=P.start+P.duration*.05,B=_.buffered,j=this.currentOp("video");!B.length&&!j?this.blockAudio(P):!j&&!jr.isBuffered(_,L)&&this.lastVideoAppendEndL||O{var P;p.executeStart=self.performance.now();const M=(P=this.tracks[a])==null?void 0:P.buffer;M&&(x?this.updateTimestampOffset(M,T,.1,a,v,g):h!==void 0&&Bn(h)&&this.updateTimestampOffset(M,h,1e-6,a,v,g)),this.appendExecutor(i,a)},onStart:()=>{},onComplete:()=>{const P=self.performance.now();p.executeEnd=p.end=P,S.first===0&&(S.first=P),k&&k.first===0&&(k.first=P);const M={};this.sourceBuffers.forEach(([O,L])=>{O&&(M[O]=jr.getBuffered(L))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Pe.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:d,parent:l.type,timeRanges:M})},onError:P=>{var M;const O={type:ur.MEDIA_ERROR,parent:l.type,details:zt.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:d,error:P,err:P,fatal:!1},L=(M=this.media)==null?void 0:M.error;if(P.code===DOMException.QUOTA_EXCEEDED_ERR||P.name=="QuotaExceededError"||"quota"in P)O.details=zt.BUFFER_FULL_ERROR;else if(P.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!L)O.errorAction=_y(!0);else if(P.name===J2e&&this.sourceBufferCount===0)O.errorAction=_y(!0);else{const B=++this.appendErrors[a];this.warn(`Failed ${B}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${L||"no media error"})`),(B>=this.hls.config.appendErrorMaxRetry||L)&&(O.fatal=!0)}this.hls.trigger(Pe.ERROR,O)}};this.log(`queuing "${a}" append sn: ${v}${c?" p: "+c.index:""} of ${l.type===Qn.MAIN?"level":"track"} ${l.level} cc: ${g}`),this.append(D,a,this.isPending(this.tracks[a]))}getFlushOp(t,n,r){return this.log(`queuing "${t}" remove ${n}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(t,n,r)},onStart:()=>{},onComplete:()=>{this.hls.trigger(Pe.BUFFER_FLUSHED,{type:t})},onError:i=>{this.warn(`Failed to remove ${n}-${r} from "${t}" SourceBuffer`,i)}}}onBufferFlushing(t,n){const{type:r,startOffset:i,endOffset:a}=n;r?this.append(this.getFlushOp(r,i,a),r):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,i,a),s)})}onFragParsed(t,n){const{frag:r,part:i}=n,a=[],s=i?i.elementaryStreams:r.elementaryStreams;s[To.AUDIOVIDEO]?a.push("audiovideo"):(s[To.AUDIO]&&a.push("audio"),s[To.VIDEO]&&a.push("video"));const l=()=>{const c=self.performance.now();r.stats.buffering.end=c,i&&(i.stats.buffering.end=c);const d=i?i.stats:r.stats;this.hls.trigger(Pe.FRAG_BUFFERED,{frag:r,part:i,stats:d,id:r.type})};a.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(l,a).catch(c=>{this.warn(`Fragment buffered callback ${c}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(t,n){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([t])=>{if(t){const n=this.tracks[t];if(n)return!n.ended||n.ending}return!1})}onBufferEos(t,n){var r;this.sourceBuffers.forEach(([s])=>{if(s){const l=this.tracks[s];(!n.type||n.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} buffer reached EOS`)))}});const i=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})?i?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(Pe.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(Pe.BUFFERED_TO_END,void 0)):n.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([t])=>{if(t!==null){const n=this.tracks[t];n&&(n.ending=!1)}})}onLevelUpdated(t,{details:n}){n.fragments.length&&(this.details=n,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const t=this.getDurationAndRange();t&&this.updateMediaSource(t)})}onError(t,n){if(n.details===zt.BUFFER_APPEND_ERROR&&n.frag){var r;const i=(r=n.errorAction)==null?void 0:r.nextAutoLevel;Bn(i)&&i!==n.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:t,details:n,media:r}=this;if(!r||n===null||!this.sourceBufferCount)return;const i=t.config,a=r.currentTime,s=n.levelTargetDuration,l=n.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(Bn(l)&&l>=0){const d=Math.max(l,s),h=Math.floor(a/s)*s-d;this.flushBackBuffer(a,s,h)}const c=i.frontBufferFlushThreshold;if(Bn(c)&&c>0){const d=Math.max(i.maxBufferLength,c),h=Math.max(d,s),p=Math.floor(a/s)*s+h;this.flushFrontBuffer(a,s,p)}}flushBackBuffer(t,n,r){this.sourceBuffers.forEach(([i,a])=>{if(a){const l=jr.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(Pe.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[i];if((s=this.details)!=null&&s.live)this.hls.trigger(Pe.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(c!=null&&c.ended){this.log(`Cannot flush ${i} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(Pe.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:i})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([i,a])=>{if(a){const s=jr.getBuffered(a),l=s.length;if(l<2)return;const c=s.start(l-1),d=s.end(l-1);if(r>c||t>=c&&t<=d)return;this.hls.trigger(Pe.BUFFER_FLUSHING,{startOffset:c,endOffset:1/0,type:i})}})}getDurationAndRange(){var t;const{details:n,mediaSource:r}=this;if(!n||!this.media||r?.readyState!=="open")return null;const i=n.edge;if(n.live&&this.hls.config.liveDurationInfinity){if(n.fragments.length&&r.setLiveSeekableRange){const d=Math.max(0,n.fragmentStart),h=Math.max(d,i);return{duration:1/0,start:d,end:h}}return{duration:1/0}}const a=(t=this.overrides)==null?void 0:t.duration;if(a)return Bn(a)?{duration:a}:null;const s=this.media.duration,l=Bn(r.duration)?r.duration:0;return i>l&&i>s||!Bn(s)?{duration:i}:null}updateMediaSource({duration:t,start:n,end:r}){const i=this.mediaSource;!this.media||!i||i.readyState!=="open"||(i.duration!==t&&(Bn(t)&&this.log(`Updating MediaSource duration to ${t.toFixed(3)}`),i.duration=t),n!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${i.duration}. Setting seekable range to ${n}-${r}.`),i.setLiveSeekableRange(n,r)))}get tracksReady(){const t=this.pendingTrackCount;return t>0&&(t>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:t,pendingTrackCount:n,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${n} codec events expected: ${t}) ${Ao(r)}`),this.tracksReady){var i;const a=(i=this.transferData)==null?void 0:i.tracks;a&&Object.keys(a).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const t={};this.sourceBuffers.forEach(([n,r])=>{if(n){const i=this.tracks[n];t[n]={buffer:r,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}}),this.hls.trigger(Pe.BUFFER_CREATED,{tracks:t}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([n])=>{this.executeNext(n)})}else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}createSourceBuffers(){const{tracks:t,sourceBuffers:n,mediaSource:r}=this;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(const a in t){const s=a,l=t[s];if(this.isPending(l)){const c=this.getTrackCodec(l,s),d=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${d})${this.currentOp(s)?" Queued":""} ${Ao(l)}`);try{const h=r.addSourceBuffer(d),p=qF(s),v=[s,h];n[p]=v,l.buffer=h}catch(h){var i;this.error(`error while trying to add sourceBuffer: ${h.message}`),this.shiftAndExecuteNext(s),(i=this.operationQueue)==null||i.removeBlockers(),delete this.tracks[s],this.hls.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,sourceBufferName:s,mimeType:d,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(t,n){const r=t.supplemental;let i=t.codec;r&&(n==="video"||n==="audiovideo")&&E_(r,"video")&&(i=vAt(i,r));const a=r8(i,t.levelCodec);return a?n.slice(0,5)==="audio"?OT(a,this.appendSource):a:""}trackSourceBuffer(t,n){const r=n.buffer;if(!r)return;const i=this.getTrackCodec(n,t);this.tracks[t]={buffer:r,codec:i,container:n.container,levelCodec:n.levelCodec,supplemental:n.supplemental,metadata:n.metadata,id:n.id,listeners:[]},this.removeBufferListeners(t),this.addBufferListener(t,"updatestart",this.onSBUpdateStart),this.addBufferListener(t,"updateend",this.onSBUpdateEnd),this.addBufferListener(t,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(t,"bufferedchange",(a,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(Pe.BUFFER_FLUSHED,{type:a})})}get mediaSrc(){var t,n;const r=((t=this.media)==null||(n=t.querySelector)==null?void 0:n.call(t,"source"))||this.media;return r?.src}onSBUpdateStart(t){const n=this.currentOp(t);n&&n.onStart()}onSBUpdateEnd(t){var n;if(((n=this.mediaSource)==null?void 0:n.readyState)==="closed"){this.resetBuffer(t);return}const r=this.currentOp(t);r&&(r.onComplete(),this.shiftAndExecuteNext(t))}onSBUpdateError(t,n){var r;const i=new Error(`${t} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${i}`,n),this.hls.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:!1});const a=this.currentOp(t);a&&a.onError(i)}updateTimestampOffset(t,n,r,i,a,s){const l=n-t.timestampOffset;Math.abs(l)>=r&&(this.log(`Updating ${i} SourceBuffer timestampOffset to ${n} (sn: ${a} cc: ${s})`),t.timestampOffset=n)}removeExecutor(t,n,r){const{media:i,mediaSource:a}=this,s=this.tracks[t],l=s?.buffer;if(!i||!a||!l){this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(t);return}const c=Bn(i.duration)?i.duration:1/0,d=Bn(a.duration)?a.duration:1/0,h=Math.max(0,n),p=Math.min(r,c,d);p>h&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${h},${p}] from the ${t} SourceBuffer`),l.remove(h,p)):this.shiftAndExecuteNext(t)}appendExecutor(t,n){const r=this.tracks[n],i=r?.buffer;if(!i)throw new CLt(`Attempting to append to the ${n} SourceBuffer, but it does not exist`);r.ending=!1,r.ended=!1,i.appendBuffer(t)}blockUntilOpen(t){if(this.isUpdating()||this.isQueued())this.blockBuffers(t).catch(n=>{this.warn(`SourceBuffer blocked callback ${n}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{t()}catch(n){this.warn(`Callback run without blocking ${this.operationQueue} ${n}`)}}isUpdating(){return this.sourceBuffers.some(([t,n])=>t&&n.updating)}isQueued(){return this.sourceBuffers.some(([t])=>t&&!!this.currentOp(t))}isPending(t){return!!t&&!t.buffer}blockBuffers(t,n=this.sourceBufferTypes){if(!n.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);const{operationQueue:r}=this,i=n.map(s=>this.appendBlocker(s));return n.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then(s=>{r===this.operationQueue&&(t(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(t){t.forEach(n=>{var r;const i=(r=this.tracks[n])==null?void 0:r.buffer;!i||i.updating||this.shiftAndExecuteNext(n)})}append(t,n,r){this.operationQueue&&this.operationQueue.append(t,n,r)}appendBlocker(t){if(this.operationQueue)return this.operationQueue.appendBlocker(t)}currentOp(t){return this.operationQueue?this.operationQueue.current(t):null}executeNext(t){t&&this.operationQueue&&this.operationQueue.executeNext(t)}shiftAndExecuteNext(t){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(t)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((t,n)=>t+(this.isPending(this.tracks[n])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((t,[n])=>t+(n?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([t])=>t).filter(t=>!!t)}addBufferListener(t,n,r){const i=this.tracks[t];if(!i)return;const a=i.buffer;if(!a)return;const s=r.bind(this,t);i.listeners.push({event:n,listener:s}),a.addEventListener(n,s)}removeBufferListeners(t){const n=this.tracks[t];if(!n)return;const r=n.buffer;r&&(n.listeners.forEach(i=>{r.removeEventListener(i.event,i.listener)}),n.listeners.length=0)}}function Kue(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function ELt(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function qF(e){return e==="audio"?1:0}class ZG{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(Pe.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Pe.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,n){const r=this.hls.levels[n.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(t,n){this.media=n.media instanceof HTMLVideoElement?n.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,n){const r=this.hls;this.restrictedLevels=[],this.firstLevel=n.firstLevel,r.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onLevelsUpdated(t,n){this.timer&&Bn(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,n){this.hls.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const t=this.hls.levels;if(t.length){const n=this.hls,r=this.getMaxLevel(t.length-1);r!==this.autoLevelCapping&&n.logger.log(`Setting autoLevelCapping to ${r}: ${t[r].height}p@${t[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),n.autoLevelCapping=r,n.autoLevelEnabled&&n.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=n.autoLevelCapping}}}getMaxLevel(t){const n=this.hls.levels;if(!n.length)return-1;const r=n.filter((i,a)=>this.isLevelAllowed(i)&&a<=t);return this.clientRect=null,ZG.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,n={width:0,height:0};if(t){const r=t.getBoundingClientRect();n.width=r.width,n.height=r.height,!n.width&&!n.height&&(n.width=r.right-r.left||t.width||0,n.height=r.bottom-r.top||t.height||0)}return this.clientRect=n,n}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch{}return Math.min(t,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(t){return!this.restrictedLevels.some(r=>t.bitrate===r.bitrate&&t.width===r.width&&t.height===r.height)}static getMaxLevelByMediaSize(t,n,r){if(!(t!=null&&t.length))return-1;const i=(l,c)=>c?l.width!==c.width||l.height!==c.height:!0;let a=t.length-1;const s=Math.max(n,r);for(let l=0;l=s||c.height>=s)&&i(c,t[l+1])){a=l;break}}return a}}const TLt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},fu=TLt,ALt={HLS:"h"},ILt=ALt;class Ef{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof Ef?r:new Ef(r))),this.value=t,this.params=n}}const LLt="Dict";function DLt(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":typeof e=="object"?JSON.stringify(e):String(e)}function PLt(e,t,n,r){return new Error(`failed to ${e} "${DLt(t)}" as ${n}`,{cause:r})}function Tf(e,t,n){return PLt("serialize",e,t,n)}class Q2e{constructor(t){this.description=t}}const que="Bare Item",RLt="Boolean";function MLt(e){if(typeof e!="boolean")throw Tf(e,RLt);return e?"?1":"?0"}function $Lt(e){return btoa(String.fromCharCode(...e))}const OLt="Byte Sequence";function BLt(e){if(ArrayBuffer.isView(e)===!1)throw Tf(e,OLt);return`:${$Lt(e)}:`}const NLt="Integer";function FLt(e){return e<-999999999999999||99999999999999912)throw Tf(e,VLt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const ULt="String",HLt=/[\x00-\x1f\x7f]+/;function WLt(e){if(HLt.test(e))throw Tf(e,ULt);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function GLt(e){return e.description||e.toString().slice(7,-1)}const KLt="Token";function Yue(e){const t=GLt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw Tf(t,KLt);return t}function eU(e){switch(typeof e){case"number":if(!Bn(e))throw Tf(e,que);return Number.isInteger(e)?e4e(e):zLt(e);case"string":return WLt(e);case"symbol":return Yue(e);case"boolean":return MLt(e);case"object":if(e instanceof Date)return jLt(e);if(e instanceof Uint8Array)return BLt(e);if(e instanceof Q2e)return Yue(e);default:throw Tf(e,que)}}const qLt="Key";function tU(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw Tf(e,qLt);return e}function JG(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${tU(t)}`:`;${tU(t)}=${eU(n)}`).join("")}function n4e(e){return e instanceof Ef?`${eU(e.value)}${JG(e.params)}`:eU(e)}function YLt(e){return`(${e.value.map(n4e).join(" ")})${JG(e.params)}`}function XLt(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw Tf(e,LLt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([i,a])=>{a instanceof Ef||(a=new Ef(a));let s=tU(i);return a.value===!0?s+=JG(a.params):(s+="=",Array.isArray(a.value)?s+=YLt(a):s+=n4e(a)),s}).join(`,${r}`)}function r4e(e,t){return XLt(e,t)}const ef="CMCD-Object",vs="CMCD-Request",jv="CMCD-Session",Np="CMCD-Status",ZLt={br:ef,ab:ef,d:ef,ot:ef,tb:ef,tpb:ef,lb:ef,tab:ef,lab:ef,url:ef,pb:vs,bl:vs,tbl:vs,dl:vs,ltc:vs,mtp:vs,nor:vs,nrr:vs,rc:vs,sn:vs,sta:vs,su:vs,ttfb:vs,ttfbb:vs,ttlb:vs,cmsdd:vs,cmsds:vs,smrt:vs,df:vs,cs:vs,ts:vs,cid:jv,pr:jv,sf:jv,sid:jv,st:jv,v:jv,msd:jv,bs:Np,bsd:Np,cdn:Np,rtp:Np,bg:Np,pt:Np,ec:Np,e:Np},JLt={REQUEST:vs};function QLt(e){return Object.keys(e).reduce((t,n)=>{var r;return(r=e[n])===null||r===void 0||r.forEach(i=>t[i]=n),t},{})}function e7t(e,t){const n={};if(!e)return n;const r=Object.keys(e),i=t?QLt(t):{};return r.reduce((a,s)=>{var l;const c=ZLt[s]||i[s]||JLt.REQUEST,d=(l=a[c])!==null&&l!==void 0?l:a[c]={};return d[s]=e[s],a},n)}function t7t(e){return["ot","sf","st","e","sta"].includes(e)}function n7t(e){return typeof e=="number"?Bn(e):e!=null&&e!==""&&e!==!1}const i4e="event";function r7t(e,t){const n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;const i=n.pathname.split("/").slice(1),a=r.pathname.split("/").slice(1,-1);for(;i[0]===a[0];)i.shift(),a.shift();for(;a.length;)a.shift(),i.unshift("..");return i.join("/")+n.search+n.hash}const l8=e=>Math.round(e),nU=(e,t)=>Array.isArray(e)?e.map(n=>nU(n,t)):e instanceof Ef&&typeof e.value=="string"?new Ef(nU(e.value,t),e.params):(t.baseUrl&&(e=r7t(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),IC=e=>l8(e/100)*100,i7t=(e,t)=>{let n=e;return t.version>=2&&(e instanceof Ef&&typeof e.value=="string"?n=new Ef([e]):typeof e=="string"&&(n=[e])),nU(n,t)},o7t={br:l8,d:l8,bl:IC,dl:IC,mtp:IC,nor:i7t,rtp:IC,tb:l8},o4e="request",s4e="response",QG=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],s7t=["e"],a7t=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function tI(e){return a7t.test(e)}function l7t(e){return QG.includes(e)||s7t.includes(e)||tI(e)}const a4e=["d","dl","nor","ot","rtp","su"];function u7t(e){return QG.includes(e)||a4e.includes(e)||tI(e)}const c7t=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function d7t(e){return QG.includes(e)||a4e.includes(e)||c7t.includes(e)||tI(e)}const f7t=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function h7t(e){return f7t.includes(e)||tI(e)}const p7t={[s4e]:d7t,[i4e]:l7t,[o4e]:u7t};function l4e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,i=t.reportingMode||o4e,a=r===1?h7t:p7t[i];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=i===s4e||i===i4e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const d=bo({},o7t,t.formatters),h={version:r,reportingMode:i,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let v=e[p];const g=d[p];if(typeof g=="function"&&(v=g(v,h)),p==="v"){if(r===1)return;v=r}p=="pr"&&v===1||(c&&p==="ts"&&!Bn(v)&&(v=Date.now()),n7t(v)&&(t7t(p)&&typeof v=="string"&&(v=new Q2e(v)),n[p]=v))}),n}function v7t(e,t={}){const n={};if(!e)return n;const r=l4e(e,t),i=e7t(r,t?.customHeaderMap);return Object.entries(i).reduce((a,[s,l])=>{const c=r4e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function m7t(e,t,n){return bo(e,v7t(t,n))}const g7t="CMCD";function y7t(e,t={}){return e?r4e(l4e(e,t),{whitespace:!1}):""}function b7t(e,t={}){if(!e)return"";const n=y7t(e,t);return encodeURIComponent(n)}function _7t(e,t={}){if(!e)return"";const n=b7t(e,t);return`${g7t}=${n}`}const Xue=/CMCD=[^&#]+/;function S7t(e,t,n){const r=_7t(t,n);if(!r)return e;if(Xue.test(e))return e.replace(Xue,r);const i=e.includes("?")?"&":"?";return`${e}${i}${r}`}class k7t{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=i=>{try{this.apply(i,{ot:fu.MANIFEST,su:!this.initialized})}catch(a){this.hls.logger.warn("Could not generate manifest CMCD data.",a)}},this.applyFragmentData=i=>{try{const{frag:a,part:s}=i,l=this.hls.levels[a.level],c=this.getObjectType(a),d={d:(s||a).duration*1e3,ot:c};(c===fu.VIDEO||c===fu.AUDIO||c==fu.MUXED)&&(d.br=l.bitrate/1e3,d.tb=this.getTopBandwidth(c)/1e3,d.bl=this.getBufferLength(c));const h=s?this.getNextPart(s):this.getNextFrag(a);h!=null&&h.url&&h.url!==a.url&&(d.nor=h.url),this.apply(i,d)}catch(a){this.hls.logger.warn("Could not generate segment CMCD data.",a)}},this.hls=t;const n=this.config=t.config,{cmcd:r}=n;r!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||t.sessionId,this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Pe.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Pe.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,n){var r,i;this.audioBuffer=(r=n.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(i=n.tracks.video)==null?void 0:i.buffer}createData(){var t;return{v:1,sf:ILt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){bo(n,this.createData());const r=n.ot===fu.INIT||n.ot===fu.VIDEO||n.ot===fu.MUXED;this.starved&&r&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering);const{includeKeys:i}=this;i&&(n=Object.keys(n).reduce((s,l)=>(i.includes(l)&&(s[l]=n[l]),s),{}));const a={baseUrl:t.url};this.useHeaders?(t.headers||(t.headers={}),m7t(t.headers,n,a)):t.url=S7t(t.url,n,a)}getNextFrag(t){var n;const r=(n=this.hls.levels[t.level])==null?void 0:n.details;if(r){const i=t.sn-r.startSN;return r.fragments[i+1]}}getNextPart(t){var n;const{index:r,fragment:i}=t,a=(n=this.hls.levels[i.level])==null||(n=n.details)==null?void 0:n.partList;if(a){const{sn:s}=i;for(let l=a.length-1;l>=0;l--){const c=a[l];if(c.index===r&&c.fragment.sn===s)return a[l+1]}}}getObjectType(t){const{type:n}=t;if(n==="subtitle")return fu.TIMED_TEXT;if(t.sn==="initSegment")return fu.INIT;if(n==="audio")return fu.AUDIO;if(n==="main")return this.hls.audioTracks.length?fu.VIDEO:fu.MUXED}getTopBandwidth(t){let n=0,r;const i=this.hls;if(t===fu.AUDIO)r=i.audioTracks;else{const a=i.maxAutoLevel,s=a>-1?a+1:i.levels.length;r=i.levels.slice(0,s)}return r.forEach(a=>{a.bitrate>n&&(n=a.bitrate)}),n>0?n:NaN}getBufferLength(t){const n=this.media,r=t===fu.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:jr.bufferInfo(r,n.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:t}=this.config,n=this.applyPlaylistData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}createFragmentLoader(){const{fLoader:t}=this.config,n=this.applyFragmentData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}}const x7t=3e5;class C7t extends od{constructor(t){super("content-steering",t.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((t,n)=>(t.indexOf(n.pathwayId)===-1&&t.push(n.pathwayId),t),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(t){this.updatePathwayPriority(t)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=this.timeToLoad*1e3-(performance.now()-this.updated);if(t>0){this.scheduleRefresh(this.uri,t);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const n=this.levels;n&&(this.levels=n.filter(r=>r!==t))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,n){const{contentSteering:r}=n;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(t,n){this.audioTracks=n.audioTracks,this.subtitleTracks=n.subtitleTracks}onError(t,n){const{errorAction:r}=n;if(r?.action===ja.SendAlternateToPenaltyBox&&r.flags===tc.MoveAllAlternatesMatchingHost){const i=this.levels;let a=this._pathwayPriority,s=this.pathwayId;if(n.context){const{groupId:l,pathwayId:c,type:d}=n.context;l&&i?s=this.getPathwayForGroupId(l,d,s):c&&(s=c)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!a&&i&&(a=this.pathways()),a&&a.length>1&&(this.updatePathwayPriority(a),r.resolved=this.pathwayId!==s),n.details===zt.BUFFER_APPEND_ERROR&&!n.fatal?r.resolved=!0:r.resolved||this.warn(`Could not resolve ${n.details} ("${n.error.message}") with content-steering for Pathway: ${s} levels: ${i&&i.length} priorities: ${Ao(a)} penalized: ${Ao(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let n=this.getLevelsForPathway(this.pathwayId);if(n.length===0){const r=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),n=this.getLevelsForPathway(r),this.pathwayId=r}return n.length!==t.length&&this.log(`Found ${n.length}/${t.length} levels in Pathway "${this.pathwayId}"`),n}getLevelsForPathway(t){return this.levels===null?[]:this.levels.filter(n=>t===n.pathwayId)}updatePathwayPriority(t){this._pathwayPriority=t;let n;const r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach(a=>{i-r[a]>x7t&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,A2e(n),this.hls.trigger(Pe.LEVELS_UPDATED,{levels:n});const d=this.hls.levels[l];c&&d&&this.levels&&(d.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&d.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${d.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(t,n,r){const i=this.getLevelsForPathway(r).concat(this.levels||[]);for(let a=0;a{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":c}=a;if(n.some(h=>h.pathwayId===s))return;const d=this.getLevelsForPathway(l).map(h=>{const p=new ss(h.attrs);p["PATHWAY-ID"]=s;const v=p.AUDIO&&`${p.AUDIO}_clone_${s}`,g=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;v&&(r[p.AUDIO]=v,p.AUDIO=v),g&&(i[p.SUBTITLES]=g,p.SUBTITLES=g);const y=u4e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new A_({attrs:p,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:y,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let k=1;k{this.log(`Loaded steering manifest: "${i}"`);const y=h.data;if(y?.VERSION!==1){this.log(`Steering VERSION ${y.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=y.TTL;const{"RELOAD-URI":S,"PATHWAY-CLONES":k,"PATHWAY-PRIORITY":C}=y;if(S)try{this.uri=new self.URL(S,i).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${S}`);return}this.scheduleRefresh(this.uri||v.url),k&&this.clonePathways(k);const x={steeringManifest:y,url:i.toString()};this.hls.trigger(Pe.STEERING_MANIFEST_LOADED,x),C&&this.updatePathwayPriority(C)},onError:(h,p,v,g)=>{if(this.log(`Error loading steering manifest: ${h.code} ${h.text} (${p.url})`),this.stopLoad(),h.code===410){this.enabled=!1,this.log(`Steering manifest ${p.url} no longer available`);return}let y=this.timeToLoad*1e3;if(h.code===429){const S=this.loader;if(typeof S?.getResponseHeader=="function"){const k=S.getResponseHeader("Retry-After");k&&(y=parseFloat(k)*1e3)}this.log(`Steering manifest ${p.url} rate limited`);return}this.scheduleRefresh(this.uri||p.url,y)},onTimeout:(h,p,v)=>{this.log(`Timeout loading steering manifest (${p.url})`),this.scheduleRefresh(this.uri||p.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(a,c,d)}scheduleRefresh(t,n=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const i=(r=this.hls)==null?void 0:r.media;if(i&&!i.ended){this.loadSteeringManifest(t);return}this.scheduleRefresh(t,this.timeToLoad*1e3)},n)}}function Zue(e,t,n,r){e&&Object.keys(t).forEach(i=>{const a=e.filter(s=>s.groupId===i).map(s=>{const l=bo({},s);return l.details=void 0,l.attrs=new ss(l.attrs),l.url=l.attrs.URI=u4e(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),l.groupId=l.attrs["GROUP-ID"]=t[i],l.attrs["PATHWAY-ID"]=r,l});e.push(...a)})}function u4e(e,t,n,r){const{HOST:i,PARAMS:a,[n]:s}=r;let l;t&&(l=s?.[t],l&&(e=l));const c=new self.URL(e);return i&&!l&&(c.host=i),a&&Object.keys(a).sort().forEach(d=>{d&&c.searchParams.set(d,a[d])}),c.href}class ky extends od{constructor(t){super("eme",t.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=ky.CDMCleanupPromise?[ky.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=n=>{const{initDataType:r,initData:i}=n,a=`"${n.type}" event: init data type: "${r}"`;if(this.debug(a),i!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=z4(this.config));const l=s.map(jF).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=o8(s);if(r!=="sinf"||l!==us.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${l}`);return}let c;try{const g=la(new Uint8Array(i)),y=VG(JSON.parse(g).sinf),S=r2e(y);if(!S)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(S.subarray(8,24))}catch(g){this.warn(`${a} Failed to parse sinf: ${g}`);return}const d=Ul(c),{keyIdToKeySessionPromise:h,mediaKeySessions:p}=this;let v=h[d];for(let g=0;gthis.generateRequestWithPreferredKeySession(y,r,i,"encrypted-event-key-match")),v.catch(C=>this.handleError(C));break}}v||this.handleError(new Error(`Key ID ${d} not encountered in playlist. Key-system sessions ${p.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=n=>{this.log(`"${n.type}" event`)},this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Pe.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Pe.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Pe.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Pe.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,i=n?.[t];if(i)return i.licenseUrl;if(t===us.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(t){const n=this.getLicenseServerUrl(t);if(n===void 0)throw new Error(`no license server URL configured for key-system "${t}"`);return n}getServerCertificateUrl(t){const{drmSystems:n}=this.config,r=n?.[t];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const n=this.hls.levels,r=(s,l,c)=>!!s&&c.indexOf(s)===l,i=n.map(s=>s.audioCodec).filter(r),a=n.map(s=>s.videoCodec).filter(r);return i.length+a.length===0&&a.push("avc1.42e01e"),new Promise((s,l)=>{const c=d=>{const h=d.shift();this.getMediaKeysPromise(h,i,a).then(p=>s({keySystem:h,mediaKeys:p})).catch(p=>{d.length?c(d):p instanceof Ju?l(p):l(new Ju({type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_ACCESS,error:p,fatal:!0},p.message))})};c(t)})}requestMediaKeySystemAccess(t,n){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${r}`;return _2e===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return r(t,n)}getMediaKeysPromise(t,n,r){var i;const a=iIt(t,n,r,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[t],l=(i=s)==null?void 0:i.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${t}" key-system access with config: ${Ao(a)}`),l=this.requestMediaKeySystemAccess(t,a);const c=s=this.keySystemAccessPromises[t]={keySystemAccess:l};return l.catch(d=>{this.log(`Failed to obtain access to key-system "${t}": ${d}`)}),l.then(d=>{this.log(`Access for key-system "${d.keySystem}" obtained`);const h=this.fetchServerCertificate(t);this.log(`Create media-keys for "${t}"`);const p=c.mediaKeys=d.createMediaKeys().then(v=>(this.log(`Media-keys created for "${t}"`),c.hasMediaKeys=!0,h.then(g=>g?this.setMediaKeysServerCertificate(v,t,g):v)));return p.catch(v=>{this.error(`Failed to create media-keys for "${t}"}: ${v}`)}),p})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${Ul(t.keyId||[])} keyUri: ${t.uri}`);const i=r.createSession(),a={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a}renewKeySession(t){const n=t.decryptdata;if(n.pssh){const r=this.createMediaKeySessionContext(t),i=LC(n),a="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,a,n.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}updateKeySession(t,n){const r=t.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyId ${Ul(t.decryptdata.keyId||[])} - } (data length: ${n.byteLength})`),r.update(n)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(t=>({keySystem:t,hasMediaKeys:this.keySystemAccessPromises[t].hasMediaKeys})).filter(({hasMediaKeys:t})=>!!t).map(({keySystem:t})=>jF(t)).filter(t=>!!t)}getKeySystemAccess(t){return this.getKeySystemSelectionPromise(t).then(({keySystem:n,mediaKeys:r})=>this.attemptSetMediaKeys(n,r))}selectKeySystem(t){return new Promise((n,r)=>{this.getKeySystemSelectionPromise(t).then(({keySystem:i})=>{const a=jF(i);a?n(a):r(new Error(`Unable to find format for key-system "${i}"`))}).catch(r)})}selectKeySystemFormat(t){const n=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)),this.keyFormatPromise}getKeyFormatPromise(t){const n=z4(this.config),r=t.map(o8).filter(i=>!!i&&n.indexOf(i)!==-1);return this.selectKeySystem(r)}getKeyStatus(t){const{mediaKeySessions:n}=this;for(let r=0;r(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${a}`),this.attemptSetMediaKeys(c,d).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:d,decryptdata:n}))))).then(c=>{const d="cenc",h=n.pssh?n.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,d,h,"playlist-key")});return l.catch(c=>this.handleError(c,t.frag)),this.keyIdToKeySessionPromise[r]=l,l}return s.catch(l=>{if(l instanceof Ju){const c=fo({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const d=new Ju(c,l.message);this.handleError(d,t.frag)}}),s}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t,n){if(this.hls)if(t instanceof Ju){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${Ul(r.keyId||[])})`:""}`),this.hls.trigger(Pe.ERROR,t.data)}else this.error(t.message),this.hls.trigger(Pe.ERROR,{type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=LC(t),r=this.keyIdToKeySessionPromise[n];if(!r){const i=o8(t.keyFormat),a=i?[i]:z4(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=z4(this.config)),t.length===0)throw new Ju({type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Ao({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}attemptSetMediaKeys(t,n){if(this.mediaKeys===n)return Promise.resolve();const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const i=Promise.all(r).then(()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(n)});return this.mediaKeys=n,this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${t}"`),r.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(a=>r.indexOf(a)===-1)})}generateRequestWithPreferredKeySession(t,n,r,i){var a;const s=(a=this.config.drmSystems)==null||(a=a[t.keySystem])==null?void 0:a.generateRequest;if(s)try{const y=s.call(this.hls,n,r,t);if(!y)throw new Error("Invalid response from configured generateRequest filter");n=y.initDataType,r=y.initData?y.initData:null,t.decryptdata.pssh=r?new Uint8Array(r):null}catch(y){if(this.warn(y.message),this.hls&&this.hls.config.debug)throw y}if(r===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(t);const l=LC(t.decryptdata),c=t.decryptdata.uri;this.log(`Generating key-session request for "${i}" keyId: ${l} URI: ${c} (init data type: ${n} length: ${r.byteLength})`);const d=new UG,h=t._onmessage=y=>{const S=t.mediaKeysSession;if(!S){d.emit("error",new Error("invalid state"));return}const{messageType:k,message:C}=y;this.log(`"${k}" message event for session "${S.sessionId}" message size: ${C.byteLength}`),k==="license-request"||k==="license-renewal"?this.renewLicense(t,C).catch(x=>{d.eventNames().length?d.emit("error",x):this.handleError(x)}):k==="license-release"?t.keySystem===us.FAIRPLAY&&this.updateKeySession(t,qz("acknowledged")).then(()=>this.removeSession(t)).catch(x=>this.handleError(x)):this.warn(`unhandled media key message type "${k}"`)},p=(y,S)=>{S.keyStatus=y;let k;y.startsWith("usable")?d.emit("resolved"):y==="internal-error"||y==="output-restricted"||y==="output-downscaled"?k=Jue(y,S.decryptdata):y==="expired"?k=new Error(`key expired (keyId: ${l})`):y==="released"?k=new Error("key released"):y==="status-pending"||this.warn(`unhandled key status change "${y}" (keyId: ${l})`),k&&(d.eventNames().length?d.emit("error",k):this.handleError(k))},v=t._onkeystatuseschange=y=>{if(!t.mediaKeysSession){d.emit("error",new Error("invalid state"));return}const k=this.getKeyStatuses(t);if(!Object.keys(k).some(_=>k[_]!=="status-pending"))return;if(k[l]==="expired"){this.log(`Expired key ${Ao(k)} in key-session "${t.mediaKeysSession.sessionId}"`),this.renewKeySession(t);return}let x=k[l];if(x)p(x,t);else{var E;t.keyStatusTimeouts||(t.keyStatusTimeouts={}),(E=t.keyStatusTimeouts)[l]||(E[l]=self.setTimeout(()=>{if(!t.mediaKeysSession||!this.mediaKeys)return;const T=this.getKeyStatus(t.decryptdata);if(T&&T!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${t.mediaKeysSession.sessionId}". Using session key-status ${T} from other session.`),p(T,t);this.log(`key status for ${l} in key-session "${t.mediaKeysSession.sessionId}" timed out after 1000ms`),x="internal-error",p(x,t)},1e3)),this.log(`No status for keyId ${l} (${Ao(k)}).`)}};Kl(t.mediaKeysSession,"message",h),Kl(t.mediaKeysSession,"keystatuseschange",v);const g=new Promise((y,S)=>{d.on("error",S),d.on("resolved",y)});return t.mediaKeysSession.generateRequest(n,r).then(()=>{this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${c}`)}).catch(y=>{throw new Ju({type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_SESSION,error:y,decryptdata:t.decryptdata,fatal:!1},`Error generating key-session request: ${y}`)}).then(()=>g).catch(y=>(d.removeAllListeners(),this.removeSession(t).then(()=>{throw y}))).then(()=>(d.removeAllListeners(),t))}getKeyStatuses(t){const n={};return t.mediaKeysSession.keyStatuses.forEach((r,i)=>{if(typeof i=="string"&&typeof r=="object"){const l=i;i=r,r=l}const a="buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i);t.keySystem===us.PLAYREADY&&a.length===16&&y2e(a);const s=Ul(a);r==="internal-error"&&(this.bannedKeyIds[s]=r),this.log(`key status change "${r}" for keyStatuses keyId: ${s} key-session "${t.mediaKeysSession.sessionId}"`),n[s]=r}),n}fetchServerCertificate(t){const n=this.config,r=n.loader,i=new r(n),a=this.getServerCertificateUrl(t);return a?(this.log(`Fetching server certificate for "${t}"`),new Promise((s,l)=>{const c={responseType:"arraybuffer",url:a},d=n.certLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(v,g,y,S)=>{s(v.data)},onError:(v,g,y,S)=>{l(new Ju({type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:fo({url:c.url,data:void 0},v)},`"${t}" certificate request failed (${a}). Status: ${v.code} (${v.text})`))},onTimeout:(v,g,y)=>{l(new Ju({type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:{url:c.url,data:void 0}},`"${t}" certificate request timed out (${a})`))},onAbort:(v,g,y)=>{l(new Error("aborted"))}};i.load(c,h,p)})):Promise.resolve()}setMediaKeysServerCertificate(t,n,r){return new Promise((i,a)=>{t.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r.byteLength}) on "${n}"`),i(t)}).catch(s=>{a(new Ju({type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(t,n){return this.requestLicense(t,new Uint8Array(n)).then(r=>this.updateKeySession(t,new Uint8Array(r)).catch(i=>{throw new Ju({type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:t.decryptdata,error:i,fatal:!1},i.message)}))}unpackPlayReadyKeyMessage(t,n){const r=String.fromCharCode.apply(null,new Uint16Array(n.buffer));if(!r.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),n;const i=new DOMParser().parseFromString(r,"application/xml"),a=i.querySelectorAll("HttpHeader");if(a.length>0){let h;for(let p=0,v=a.length;p in key message");return qz(atob(d))}setupLicenseXHR(t,n,r,i){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return a.call(this.hls,t,n,r,i)}).catch(s=>{if(!r.decryptdata)throw s;return t.open("POST",n,!0),a.call(this.hls,t,n,r,i)}).then(s=>(t.readyState||t.open("POST",n,!0),{xhr:t,licenseChallenge:s||i})):(t.open("POST",n,!0),Promise.resolve({xhr:t,licenseChallenge:i}))}requestLicense(t,n){const r=this.config.keyLoadPolicy.default;return new Promise((i,a)=>{const s=this.getLicenseServerUrlOrThrow(t.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let c=l.response;this.log(`License received ${c instanceof ArrayBuffer?c.byteLength:c}`);const d=this.config.licenseResponseCallback;if(d)try{c=d.call(this.hls,l,s,t)}catch(h){this.error(h)}i(c)}else{const c=r.errorRetry,d=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>d||l.status>=400&&l.status<500)a(new Ju({type:ur.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:t.decryptdata,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const h=d-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${h} attempts left`),this.requestLicense(t,n).then(i,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=l,this.setupLicenseXHR(l,s,t,n).then(({xhr:c,licenseChallenge:d})=>{t.keySystem==us.PLAYREADY&&(d=this.unpackPlayReadyKeyMessage(c,d)),c.send(d)}).catch(a)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,Kl(r,"encrypted",this.onMediaEncrypted),Kl(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(Eu(t,"encrypted",this.onMediaEncrypted),Eu(t,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var t;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const n=this.media,r=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Cm.clearKeyUriToKeyIdMap();const i=r.length;ky.CDMCleanupPromise=Promise.all(r.map(a=>this.removeSession(a)).concat((n==null||(t=n.setMediaKeys(null))==null?void 0:t.catch(a=>{this.log(`Could not clear media keys: ${a}`),this.hls&&this.hls.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${a}`)})}))||Promise.resolve())).catch(a=>{this.log(`Could not close sessions and clear media keys: ${a}`),this.hls&&this.hls.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${a}`)})}).then(()=>{i&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this.keyFormatPromise=null,this.bannedKeyIds={}}onManifestLoaded(t,{sessionKeys:n}){if(!(!n||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=n.reduce((i,a)=>(i.indexOf(a.keyFormat)===-1&&i.push(a.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(t){const{mediaKeysSession:n,licenseXhr:r,decryptdata:i}=t;if(n){this.log(`Remove licenses and keys and close session "${n.sessionId}" keyId: ${Ul(i?.keyId||[])}`),t._onmessage&&(n.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(n.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const a=this.mediaKeySessions.indexOf(t);a>-1&&this.mediaKeySessions.splice(a,1);const{keyStatusTimeouts:s}=t;s&&Object.keys(s).forEach(d=>self.clearTimeout(s[d]));const{drmSystemOptions:l}=this.config;return(sIt(l)?new Promise((d,h)=>{self.setTimeout(()=>h(new Error("MediaKeySession.remove() timeout")),8e3),n.remove().then(d).catch(h)}):Promise.resolve()).catch(d=>{this.log(`Could not remove session: ${d}`),this.hls&&this.hls.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${d}`)})}).then(()=>n.close()).catch(d=>{this.log(`Could not close session: ${d}`),this.hls&&this.hls.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${d}`)})})}return Promise.resolve()}}ky.CDMCleanupPromise=void 0;function LC(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return Ul(e.keyId)}function w7t(e,t){if(e.keyId&&t.mediaKeysSession.keyStatuses.has(e.keyId))return t.mediaKeysSession.keyStatuses.get(e.keyId);if(e.matches(t.decryptdata))return t.keyStatus}class Ju extends Error{constructor(t,n){super(n),this.data=void 0,t.error||(t.error=new Error(n)),this.data=t,t.err=t.error}}function Jue(e,t){const n=e==="output-restricted",r=n?zt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:zt.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Ju({type:ur.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class E7t{constructor(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,n){const r=this.hls.config;if(r.capLevelOnFPSDrop){const i=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(t,n,r){const i=performance.now();if(n){if(this.lastTime){const a=i-this.lastTime,s=r-this.lastDroppedFrames,l=n-this.lastDecodedFrames,c=1e3*s/a,d=this.hls;if(d.trigger(Pe.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:r}),c>0&&s>d.config.fpsDroppedMonitoringThreshold*l){let h=d.currentLevel;d.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=h)&&(h=h-1,d.trigger(Pe.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:d.currentLevel}),d.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=n}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const n=t.getVideoPlaybackQuality();this.checkFPS(t,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}}function c4e(e,t){let n;try{n=new Event("addtrack")}catch{n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function d4e(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(r){po.debug(`[texttrack-utils]: ${r}`);try{const i=new self.TextTrackCue(t.startTime,t.endTime,t.text);i.id=t.id,e.addCue(i)}catch(i){po.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}n==="disabled"&&(e.mode=n)}function J1(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues)for(let r=e.cues.length;r--;)t&&e.cues[r].removeEventListener("enter",t),e.removeCue(e.cues[r]);n==="disabled"&&(e.mode=n)}function rU(e,t,n,r){const i=e.mode;if(i==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=A7t(e.cues,t,n);for(let s=0;se[n].endTime)return-1;let r=0,i=n,a;for(;r<=i;)if(a=Math.floor((i+r)/2),te[a].startTime&&r-1)for(let a=i,s=e.length;a=t&&l.endTime<=n)r.push(l);else if(l.startTime>n)return r}return r}function u8(e){const t=[];for(let n=0;nthis.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let n=null;const r=u8(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Pe.ERROR,this.onError,this)}onMediaAttached(t,n){this.media=n.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(t,n){const r=this.media;if(!r)return;const i=!!n.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,i)return;u8(r.textTracks).forEach(s=>{J1(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.subtitleTracks}onSubtitleTrackLoaded(t,n){const{id:r,groupId:i,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==i){this.warn(`Subtitle track with id:${r} and group:${i} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Subtitle track ${r} "${s.name}" lang:${s.lang} group:${i} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.subtitleGroups||null,i=this.groupIds;let a=this.currentTrack;if(!r||i?.length!==r?.length||r!=null&&r.some(s=>i?.indexOf(s)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(h=>!r||r.indexOf(h.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(h=>h.default)&&(this.selectDefaultTrack=!1),s.forEach((h,p)=>{h.id=p});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!a&&l){this.selectDefaultTrack=!1;const h=vf(l,s);if(h>-1)a=s[h];else{const p=vf(l,this.tracks);a=this.tracks[p]}}let c=this.findTrackId(a);c===-1&&a&&(c=this.findTrackId(null));const d={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r?.join(",")}" group-id`),this.hls.trigger(Pe.SUBTITLE_TRACKS_UPDATED,d),c!==-1&&this.trackId===-1&&this.setSubtitleTrack(c)}}findTrackId(t){const n=this.tracksInGroup,r=this.selectDefaultTrack;for(let i=0;i-1){const a=this.tracksInGroup[i];return this.setSubtitleTrack(i),a}else{if(r)return null;{const a=vf(t,n);if(a>-1)return n[a]}}}}return null}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=t.id,i=t.groupId,a=this.getUrlWithDirectives(t.url,n),s=t.details,l=s?.age;this.log(`Loading subtitle ${r} "${t.name}" lang:${t.lang} group:${i}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${a}`),this.hls.trigger(Pe.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:i,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=u8(t.textTracks),r=this.currentTrack;let i;if(r&&(i=n.filter(a=>Qz(r,a))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(n).forEach(a=>{a.mode!=="disabled"&&a!==i&&(a.mode="disabled")}),i){const a=this.subtitleDisplay?"showing":"hidden";i.mode!==a&&(i.mode=a)}}setSubtitleTrack(t){const n=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=t;return}if(t<-1||t>=n.length||!Bn(t)){this.warn(`Invalid subtitle track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[t]||null;if(this.trackId=t,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(Pe.SUBTITLE_TRACK_SWITCH,{id:t});return}const a=!!i.details&&!i.details.live;if(t===this.trackId&&i===r&&a)return;this.log(`Switching to subtitle-track ${t}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:s,groupId:l="",name:c,type:d,url:h}=i;this.hls.trigger(Pe.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:d,url:h});const p=this.switchParams(i.url,r?.details,i.details);this.loadPlaylist(p)}}function L7t(){try{return crypto.randomUUID()}catch{try{const t=URL.createObjectURL(new Blob),n=t.toString();return URL.revokeObjectURL(t),n.slice(n.lastIndexOf("/")+1)}catch{let n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const a=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(i=="x"?a:a&3|8).toString(16)})}}}function $b(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const xy=.025;let WT=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function D7t(e,t,n){return`${e.identifier}-${n+1}-${$b(t)}`}class P7t{constructor(t,n){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=n,this.dateRange=t,this.setDateRange(t)}setDateRange(t){this.dateRange=t,this.resumeOffset=t.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=t.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=t.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=t.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var t;this.appendInPlaceStarted=!1,(t=this.assetListLoader)==null||t.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(t){var n;if(t>0&&t>=this.assetList.length)return!0;const r=this.playoutLimit;return t<=0||isNaN(r)?!1:r===0?!0:(((n=this.assetList[t])==null?void 0:n.startOffset)||0)>r}findAssetIndex(t){return this.assetList.indexOf(t)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const t=this.dateRange.startTime;if(this.snapOptions.out){const n=this.dateRange.tagAnchor;if(n)return YF(t,n)}return t}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const t=this.dateRange.tagAnchor;if(t){const n=this.dateRange.startTime,r=YF(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=Bn(t)?t:this.duration;return this.cumulativeDuration+n}get resumeTime(){const t=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const n=this.resumeAnchor;if(n)return YF(t,n)}return t}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)0||this.assetListResponse!==null}toString(){return R7t(this)}}function YF(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function z1(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class M7t{constructor(t,n,r,i){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(Pe.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=i;const s=()=>{this.hasDetails=!0};a.once(Pe.LEVEL_LOADED,s),a.once(Pe.AUDIO_TRACK_LOADED,s),a.once(Pe.SUBTITLE_TRACK_LOADED,s),a.on(Pe.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(Pe.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(Pe.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const t=this.hls;if(t)if(t.url)t.levels.length&&!t.started&&t.startLoad(-1,!0);else{let n=this.assetItem.uri;try{n=f4e(n,t.config.primarySessionId||"").href}catch{}t.loadSource(n)}}bufferedInPlaceToEnd(t){var n;if(!this.appendInPlace)return!1;if((n=this.hls)!=null&&n.bufferedToEnd)return!0;if(!t)return!1;const r=Math.min(this._bufferedEosTime||1/0,this.duration),i=this.timelineOffset,a=jr.bufferInfo(t,i,0);return this.getAssetTime(a.end)>=r-.02}reachedPlayout(t){const r=this.interstitial.playoutLimit;return this.startOffset+t>=r}get destroyed(){var t;return!((t=this.hls)!=null&&t.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var t;return((t=this.hls)==null?void 0:t.media)||null}get bufferedEnd(){const t=this.media||this.mediaAttached;if(!t)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const n=jr.bufferInfo(t,t.currentTime,.001);return this.getAssetTime(n.end)}get currentTime(){const t=this.media||this.mediaAttached;return t?this.getAssetTime(t.currentTime):this._currentTime||0}get duration(){const t=this.assetItem.duration;if(!t)return 0;const n=this.interstitial.playoutLimit;if(n){const r=n-this.startOffset;if(r>0&&r1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=t}}}getAssetTime(t){const n=this.timelineOffset,r=this.duration;return Math.min(Math.max(0,t-n),r)}removeMediaListeners(){const t=this.mediaAttached;t&&(this._currentTime=t.currentTime,this.bufferSnapShot(),t.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var t;(t=this.hls)!=null&&t.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(t){var n;this.loadSource(),(n=this.hls)==null||n.attachMedia(t)}detachMedia(){var t;this.removeMediaListeners(),this.mediaAttached=null,(t=this.hls)==null||t.detachMedia()}resumeBuffering(){var t;(t=this.hls)==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.hls)==null||t.pauseBuffering()}transferMedia(){var t;return this.bufferSnapShot(),((t=this.hls)==null?void 0:t.transferMedia())||null}resetDetails(){const t=this.hls;if(t&&this.hasDetails){t.stopLoad();const n=r=>delete r.details;t.levels.forEach(n),t.allAudioTracks.forEach(n),t.allSubtitleTracks.forEach(n),this.hasDetails=!1}}on(t,n,r){var i;(i=this.hls)==null||i.on(t,n)}once(t,n,r){var i;(i=this.hls)==null||i.once(t,n)}off(t,n,r){var i;(i=this.hls)==null||i.off(t,n)}toString(){var t;return`HlsAssetPlayer: ${z1(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Que=.033;class $7t extends od{constructor(t,n){super("interstitials-sched",n),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=t}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(t=>t.reset()),this.events=this.items=null}resetErrorsInRange(t,n){return this.events?this.events.reduce((r,i)=>t<=i.startOffset&&n>i.startOffset?(delete i.error,r+1):r,0):0}get duration(){const t=this.items;return t?t[t.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(t){return t&&this.eventMap[t]||null}hasEvent(t){return t in this.eventMap}findItemIndex(t,n){if(t.event)return this.findEventIndex(t.event.identifier);let r=-1;t.nextEvent?r=this.findEventIndex(t.nextEvent.identifier)-1:t.previousEvent&&(r=this.findEventIndex(t.previousEvent.identifier)+1);const i=this.items;if(i)for(i[r]||(n===void 0&&(n=t.start),r=this.findItemIndexAtTime(n));r>=0&&(a=i[r])!=null&&a.event;){var a;r--}return r}findItemIndexAtTime(t,n){const r=this.items;if(r)for(let i=0;ia.start&&t1)for(let a=0;al&&(n!l.includes(d.identifier)):[];s.length&&s.sort((d,h)=>{const p=d.cue.pre,v=d.cue.post,g=h.cue.pre,y=h.cue.post;if(p&&!g)return-1;if(g&&!p||v&&!y)return 1;if(y&&!v)return-1;if(!p&&!g&&!v&&!y){const S=d.startTime,k=h.startTime;if(S!==k)return S-k}return d.dateRange.tagOrder-h.dateRange.tagOrder}),this.events=s,c.forEach(d=>{this.removeEvent(d)}),this.updateSchedule(t,c)}updateSchedule(t,n=[],r=!1){const i=this.events||[];if(i.length||n.length||this.length<2){const a=this.items,s=this.parseSchedule(i,t);(r||n.length||a?.length!==s.length||s.some((c,d)=>Math.abs(c.playout.start-a[d].playout.start)>.005||Math.abs(c.playout.end-a[d].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(n,a))}}parseDateRanges(t,n,r){const i=[],a=Object.keys(t);for(let s=0;s!c.error&&!(c.cue.once&&c.hasPlayed)),t.length){this.resolveOffsets(t,n);let c=0,d=0;if(t.forEach((h,p)=>{const v=h.cue.pre,g=h.cue.post,y=t[p-1]||null,S=h.appendInPlace,k=g?a:h.startOffset,C=h.duration,x=h.timelineOccupancy===WT.Range?C:0,E=h.resumptionOffset,_=y?.startTime===k,T=k+h.cumulativeDuration;let D=S?T+C:k+E;if(v||!g&&k<=0){const M=d;d+=x,h.timelineStart=T;const O=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:O,end:s},integrated:{start:M,end:d}})}else if(k<=a){if(!_){const L=k-c;if(L>Que){const B=c,j=d;d+=L;const H=s;s+=L;const U={previousEvent:t[p-1]||null,nextEvent:h,start:B,end:B+L,playout:{start:H,end:s},integrated:{start:j,end:d}};r.push(U)}else L>0&&y&&(y.cumulativeDuration+=L,r[r.length-1].end=k)}g&&(D=T),h.timelineStart=T;const M=d;d+=x;const O=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:O,end:s},integrated:{start:M,end:d}})}else return;const P=h.resumeTime;g||P>a?c=a:c=P}),c{const d=l.cue.pre,h=l.cue.post,p=d?0:h?i:l.startTime;this.updateAssetDurations(l),s===p?l.cumulativeDuration=a:(a=0,s=p),!h&&l.snapOptions.in&&(l.resumeAnchor=Um(null,r.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,n)||(l.appendInPlace=!1)),!l.appendInPlace&&c+1xy?(this.log(`"${t.identifier}" resumption ${r} not aligned with estimated timeline end ${i}`),!1):!Object.keys(n).some(s=>{const l=n[s].details,c=l.edge;if(r>=c)return this.log(`"${t.identifier}" resumption ${r} past ${s} playlist end ${c}`),!1;const d=Um(null,l.fragments,r);if(!d)return this.log(`"${t.identifier}" resumption ${r} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const h=s==="audio"?.175:0;return Math.abs(d.start-r){const k=v.data,C=k?.ASSETS;if(!Array.isArray(C)){const x=this.assignAssetListError(t,zt.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),y.url,g,S);this.hls.trigger(Pe.ERROR,x);return}t.assetListResponse=k,this.hls.trigger(Pe.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(v,g,y,S)=>{const k=this.assignAssetListError(t,zt.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${v.code} ${v.text} (${g.url})`),g.url,S,y);this.hls.trigger(Pe.ERROR,k)},onTimeout:(v,g,y)=>{const S=this.assignAssetListError(t,zt.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,v,y);this.hls.trigger(Pe.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(Pe.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,i,a,s){return t.error=r,{type:ur.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:i,error:r,networkDetails:s,stats:a}}}function ece(e){e?.play().catch(()=>{})}function DC(e,t){return`[${e}] Advancing timeline position to ${t}`}class B7t extends od{constructor(t,n){super("interstitials",t.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled||!this.schedule)return;const i=r-this.timelinePos;if(Math.abs(i)<1/7056e5)return;const s=i<=-.01;this.timelinePos=r,this.bufferedPos=r;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(r,r-i)&&this.updateSchedule(!0),this.checkBuffer(),s&&r=l.end){var c;const g=this.findItemIndex(l);let y=this.schedule.findItemIndexAtTime(r);if(y===-1&&(y=g+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${r} (resolving from ${g} to ${y})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&y>g){const S=this.schedule.findJumpRestrictedIndex(g+1,y);if(S>g){this.setSchedulePosition(S);return}}this.setSchedulePosition(y);return}const d=this.playingAsset;if(!d){if(this.playingLastItem&&this.isInterstitial(l)){const g=l.event.assetList[0];g&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,g))}return}const h=d.timelineStart,p=d.duration||0;if(s&&r=h+p){var v;(v=l.event)!=null&&v.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,d)}},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const i=this.playingItem;if(!i||this.playingLastItem)return;if(r>=i.end){this.timelinePos=i.end;const l=this.findItemIndex(i);this.setSchedulePosition(l+1)}const a=this.playingAsset;if(!a)return;const s=a.timelineStart+(a.duration||0);r>=s&&this.setScheduleToAssetAtTime(r,a)},this.onScheduleUpdate=(r,i)=>{const a=this.schedule;if(!a)return;const s=this.playingItem,l=a.events||[],c=a.items||[],d=a.durations,h=r.map(S=>S.identifier),p=!!(l.length||h.length);(p||i)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l} -Schedule: ${c.map(S=>pd(S))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let v=null,g=null;s&&(v=this.updateItem(s,this.timelinePos),this.itemsMatch(s,v)?this.playingItem=v:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const y=this.bufferingItem;if(y&&(g=this.updateItem(y,this.bufferedPos),this.itemsMatch(y,g)?this.bufferingItem=g:y.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(y.event,null))),r.forEach(S=>{S.assetList.forEach(k=>{this.clearAssetPlayer(k.identifier,null)})}),this.playerQueue.forEach(S=>{if(S.interstitial.appendInPlace){const k=S.assetItem.timelineStart,C=S.timelineOffset-k;if(C)try{S.timelineOffset=k}catch(x){Math.abs(C)>xy&&this.warn(`${x} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||i){if(this.hls.trigger(Pe.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:d,removedIds:h}),this.isInterstitial(s)&&h.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}s&&this.trimInPlace(v,s),y&&g!==v&&this.trimInPlace(g,y),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new O7t(t),this.schedule=new $7t(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Pe.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(Pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Pe.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(Pe.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(Pe.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(Pe.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Pe.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(Pe.MEDIA_ENDED,this.onMediaEnded,this),t.on(Pe.ERROR,this.onError,this),t.on(Pe.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Pe.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(Pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Pe.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(Pe.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(Pe.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Pe.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Pe.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(Pe.MEDIA_ENDED,this.onMediaEnded,this),t.off(Pe.ERROR,this.onError,this),t.off(Pe.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var t;(t=this.getBufferingPlayer())==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.getBufferingPlayer())==null||t.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const t=this.primaryMedia||this.media;t&&this.removeMediaListeners(t)}removeMediaListeners(t){Eu(t,"play",this.onPlay),Eu(t,"pause",this.onPause),Eu(t,"seeking",this.onSeeking),Eu(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;Kl(r,"seeking",this.onSeeking),Kl(r,"timeupdate",this.onTimeupdate),Kl(r,"play",this.onPlay),Kl(r,"pause",this.onPause)}onMediaAttached(t,n){const r=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!i){this.clearScheduleState();const a=this.findItemIndex(r);this.setSchedulePosition(a)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(t,n){const r=!!n.transferMedia,i=this.media;if(this.media=null,!r&&(i&&this.removeMediaListeners(i),this.detachedData)){const a=this.getBufferingPlayer();a&&(this.log(`Removing schedule state for detachedData and ${a}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,a.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const t=this,n=()=>t.bufferingItem||t.waitingItem,r=p=>p&&t.getAssetPlayer(p.identifier),i=(p,v,g,y,S)=>{if(p){let k=p[v].start;const C=p.event;if(C){if(v==="playout"||C.timelineOccupancy!==WT.Point){const x=r(g);x?.interstitial===C&&(k+=x.assetItem.startOffset+x[S])}}else{const x=y==="bufferedPos"?s():t[y];k+=x-p.start}return k}return 0},a=(p,v)=>{var g;if(p!==0&&v!=="primary"&&(g=t.schedule)!=null&&g.length){var y;const S=t.schedule.findItemIndexAtTime(p),k=(y=t.schedule.items)==null?void 0:y[S];if(k){const C=k[v].start-k.start;return p+C}}return p},s=()=>{const p=t.bufferedPos;return p===Number.MAX_VALUE?l("primary"):Math.max(p,0)},l=p=>{var v,g;return(v=t.primaryDetails)!=null&&v.live?t.primaryDetails.edge:((g=t.schedule)==null?void 0:g.durations[p])||0},c=(p,v)=>{var g,y;const S=t.effectivePlayingItem;if(S!=null&&(g=S.event)!=null&&g.restrictions.skip||!t.schedule)return;t.log(`seek to ${p} "${v}"`);const k=t.effectivePlayingItem,C=t.schedule.findItemIndexAtTime(p,v),x=(y=t.schedule.items)==null?void 0:y[C],E=t.getBufferingPlayer(),_=E?.interstitial,T=_?.appendInPlace,D=k&&t.itemsMatch(k,x);if(k&&(T||D)){const P=r(t.playingAsset),M=P?.media||t.primaryMedia;if(M){const O=v==="primary"?M.currentTime:i(k,v,t.playingAsset,"timelinePos","currentTime"),L=p-O,B=(T?O:M.currentTime)+L;if(B>=0&&(!P||T||B<=P.duration)){M.currentTime=B;return}}}if(x){let P=p;if(v!=="primary"){const O=x[v].start,L=p-O;P=x.start+L}const M=!t.isInterstitial(x);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(M||x.event.appendInPlace)){const O=t.media||(T?E?.media:null);O&&(O.currentTime=P)}else if(k){const O=t.findItemIndex(k);if(C>O){const B=t.schedule.findJumpRestrictedIndex(O+1,C);if(B>O){t.setSchedulePosition(B);return}}let L=0;if(M)t.timelinePos=P,t.checkBuffer();else{const B=x.event.assetList,j=p-(x[v]||x).start;for(let H=B.length;H--;){const U=B[H];if(U.duration&&j>=U.startOffset&&j{const p=t.effectivePlayingItem;if(t.isInterstitial(p))return p;const v=n();return t.isInterstitial(v)?v:null},h={get bufferedEnd(){const p=n(),v=t.bufferingItem;if(v&&v===p){var g;return i(v,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-v.playout.start||((g=t.bufferingAsset)==null?void 0:g.startOffset)||0}return 0},get currentTime(){const p=d(),v=t.effectivePlayingItem;return v&&v===p?i(v,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-v.playout.start:0},set currentTime(p){const v=d(),g=t.effectivePlayingItem;g&&g===v&&c(p+g.playout.start,"playout")},get duration(){const p=d();return p?p.playout.end-p.playout.start:0},get assetPlayers(){var p;const v=(p=d())==null?void 0:p.event.assetList;return v?v.map(g=>t.getAssetPlayer(g.identifier)):[]},get playingIndex(){var p;const v=(p=d())==null?void 0:p.event;return v&&t.effectivePlayingAsset?v.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return d()}};return this.manager={get events(){var p;return((p=t.schedule)==null||(p=p.events)==null?void 0:p.slice(0))||[]},get schedule(){var p;return((p=t.schedule)==null||(p=p.items)==null?void 0:p.slice(0))||[]},get interstitialPlayer(){return d()?h:null},get playerQueue(){return t.playerQueue.slice(0)},get bufferingAsset(){return t.bufferingAsset},get bufferingItem(){return n()},get bufferingIndex(){const p=n();return t.findItemIndex(p)},get playingAsset(){return t.effectivePlayingAsset},get playingItem(){return t.effectivePlayingItem},get playingIndex(){const p=t.effectivePlayingItem;return t.findItemIndex(p)},primary:{get bufferedEnd(){return s()},get currentTime(){const p=t.timelinePos;return p>0?p:0},set currentTime(p){c(p,"primary")},get duration(){return l("primary")},get seekableStart(){var p;return((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(n(),"integrated",t.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(t.effectivePlayingItem,"integrated",t.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(p){c(p,"integrated")},get duration(){return l("integrated")},get seekableStart(){var p;return a(((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0,"integrated")}},skip:()=>{const p=t.effectivePlayingItem,v=p?.event;if(v&&!v.restrictions.skip){const g=t.findItemIndex(p);if(v.appendInPlace){const y=p.playout.start+p.event.duration;c(y+.001,"playout")}else t.advanceAfterAssetEnded(v,g,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var t;const n=this.playingItem,r=(t=this.schedule)==null?void 0:t.items;return!this.playbackStarted||!n||!r?!1:this.findItemIndex(n)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(t=this.bufferingItem)!=null&&(t=t.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const a=(n=i)==null?void 0:n.currentTime;if(!(a===void 0||!Bn(a)))return a}get primaryMedia(){var t;return this.media||((t=this.detachedData)==null?void 0:t.media)||null}isInterstitial(t){return!!(t!=null&&t.event)}retreiveMediaSource(t,n){const r=this.getAssetPlayer(t);r&&this.transferMediaFromPlayer(r,n)}transferMediaFromPlayer(t,n){const r=t.interstitial.appendInPlace,i=t.media;if(r&&i===this.primaryMedia){if(this.bufferingAsset=null,(!n||this.isInterstitial(n)&&!n.event.appendInPlace)&&n&&i){this.detachedData={media:i};return}const a=t.transferMedia();this.log(`transfer MediaSource from ${t} ${Ao(a)}`),this.detachedData=a}else n&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(t,n){var r,i;if(t.media===n)return;let a=null;const s=this.hls,l=t!==s,c=l&&t.interstitial.appendInPlace,d=(r=this.detachedData)==null?void 0:r.mediaSource;let h;if(s.media)c&&(a=s.transferMedia(),this.detachedData=a),h="Primary";else if(d){const y=this.getBufferingPlayer();y?(a=y.transferMedia(),h=`${y}`):h="detached MediaSource"}else h="detached media";if(!a){if(d)a=this.detachedData,this.log(`using detachedData: MediaSource ${Ao(a)}`);else if(!this.detachedData||s.media===n){const y=this.playerQueue;y.length>1&&y.forEach(S=>{if(l&&S.interstitial.appendInPlace!==c){const k=S.interstitial;this.clearInterstitial(S.interstitial,null),k.appendInPlace=!1,k.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${k}`)}}),this.hls.detachMedia(),this.detachedData={media:n}}}const p=a&&"mediaSource"in a&&((i=a.mediaSource)==null?void 0:i.readyState)!=="closed",v=p&&a?a:n;this.log(`${p?"transfering MediaSource":"attaching media"} to ${l?t:"Primary"} from ${h} (media.currentTime: ${n.currentTime})`);const g=this.schedule;if(v===a&&g){const y=l&&t.assetId===g.assetIdAtEnd;v.overrides={duration:g.duration,endOfStream:!l||y,cueRemoval:!l}}t.attachMedia(v)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const t=this.schedule,n=t?.events;if(!n||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const r=this.timelinePos,i=this.effectivePlayingItem;if(r===-1){const a=this.hls.startPosition;if(this.log(DC("checkStart",a)),this.timelinePos=a,n.length&&n[0].cue.pre){const s=t.findEventIndex(n[0].identifier);this.setSchedulePosition(s)}else if(a>=0||!this.primaryLive){const s=this.timelinePos=a>0?a:0,l=t.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(i&&!this.playingItem){const a=t.findItemIndex(i);this.setSchedulePosition(a)}}advanceAssetBuffering(t,n){const r=t.event,i=r.findAssetIndex(n),a=XF(r,i);if(!r.isAssetPastPlayoutLimit(a))this.bufferedToEvent(t,a);else if(this.schedule){var s;const l=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(t)+1];l&&this.bufferedToItem(l)}}advanceAfterAssetEnded(t,n,r){const i=XF(t,r);if(t.isAssetPastPlayoutLimit(i)){if(this.schedule){const a=this.schedule.items;if(a){const s=n+1,l=a.length;if(s>=l){this.setSchedulePosition(-1);return}const c=t.resumeTime;this.timelinePos=0?i[t]:null;this.log(`setSchedulePosition ${t}, ${n} (${a&&pd(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const h=s.event,p=this.playingAsset,v=p?.identifier,g=v?this.getAssetPlayer(v):null;if(g&&v&&(!this.eventItemsMatch(s,a)||n!==void 0&&v!==h.assetList[n].identifier)){var c;const y=h.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${y+1}/${h.assetList.length} ${z1(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(Pe.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:y,event:h,schedule:i.slice(0),scheduleIndex:t,player:g}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(h,this.findItemIndex(this.playingItem),y);return}this.retreiveMediaSource(v,a),g.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&g.detachMedia()}if(!this.eventItemsMatch(s,a)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${h} ${pd(s)}`),h.hasPlayed=!0,this.hls.trigger(Pe.INTERSTITIAL_ENDED,{event:h,schedule:i.slice(0),scheduleIndex:t}),h.cue.once)){var d;this.updateSchedule();const y=(d=this.schedule)==null?void 0:d.items;if(a&&y){const S=this.findItemIndex(a);this.advanceSchedule(S,y,n,s,l)}return}}this.advanceSchedule(t,i,n,s,l)}advanceSchedule(t,n,r,i,a){const s=this.schedule;if(!s)return;const l=n[t]||null,c=this.primaryMedia,d=this.playerQueue;if(d.length&&d.forEach(h=>{const p=h.interstitial,v=s.findEventIndex(p.identifier);(vt+1)&&this.clearInterstitial(p,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const h=l.event;if(r===void 0){r=s.findAssetIndex(h,this.timelinePos);const y=XF(h,r-1);if(h.isAssetPastPlayoutLimit(y)||h.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(h,t,r);return}r=y}const p=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let v=this.preloadAssets(h,r);if(this.eventItemsMatch(l,p||i)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${pd(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(Pe.INTERSTITIAL_STARTED,{event:h,schedule:n.slice(0),scheduleIndex:t})),!h.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${h}`);return}if(h.assetListLoader&&(h.assetListLoader.destroy(),h.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${h}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const g=h.assetList[r];if(!g){this.advanceAfterAssetEnded(h,t,r||0);return}if(v||(v=this.getAssetPlayer(g.identifier)),v===null||v.destroyed){const y=h.assetList.length;this.warn(`asset ${r+1}/${y} player destroyed ${h}`),v=this.createAssetPlayer(h,g,r),v.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(g))return;this.startAssetPlayer(v,r,n,t,c),this.shouldPlay&&ece(v.media)}else l?(this.resumePrimary(l,t,i),this.shouldPlay&&ece(this.hls.media)):a&&this.isInterstitial(i)&&(this.endedItem=null,this.playingItem=i,i.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var t;return(t=this.mediaSelection)==null?void 0:t.main.details}get primaryLive(){var t;return!!((t=this.primaryDetails)!=null&&t.live)}resumePrimary(t,n,r){var i,a;if(this.playingItem=t,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(t),this.log(`resuming ${pd(t)}`),!((i=this.detachedData)!=null&&i.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(DC("resumePrimary",l)),this.timelinePos=l),this.attachPrimary(l,t)}if(!r)return;const s=(a=this.schedule)==null?void 0:a.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${pd(t)}`),this.hls.trigger(Pe.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:n}),this.checkBuffer())}getPrimaryResumption(t,n){const r=t.start;if(this.primaryLive){const i=this.primaryDetails;if(n===0)return this.hls.startPosition;if(i&&(ri.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(t){const n=this.getAssetPlayer(t.identifier);return n!=null&&n.hls?n.hls.bufferedToEnd:jr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=t.timelineStart+(t.duration||0)}attachPrimary(t,n,r){n?this.setBufferingItem(n):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const i=this.primaryMedia;if(!i)return;const a=this.hls;a.media?this.checkBuffer():(this.transferMediaTo(a,i),r&&this.startLoadingPrimaryAt(t,r)),r||(this.log(DC("attachPrimary",t)),this.timelinePos=t,this.startLoadingPrimaryAt(t,r))}startLoadingPrimaryAt(t,n){var r;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs((((r=i.mainForwardBufferInfo)==null?void 0:r.start)||i.media.currentTime)-t)>.5?i.startLoad(t,n):i.bufferingEnabled||i.resumeBuffering()}onManifestLoading(){var t;this.stopLoad(),(t=this.schedule)==null||t.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(Pe.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Pe.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(t,n){if(n.level===-1||!this.schedule)return;const r=this.hls.levels[n.level];if(!r.details)return;const i=fo(fo({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(t,n){const r=this.hls.audioTracks[n.id],i=this.mediaSelection;if(!i){this.altSelection=fo(fo({},this.altSelection),{},{audio:r});return}const a=fo(fo({},i),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],i=this.mediaSelection;if(!i){this.altSelection=fo(fo({},this.altSelection),{},{subtitles:r});return}const a=fo(fo({},i),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=uue(n);this.playerQueue.forEach(({hls:i})=>i&&(i.setAudioOption(n)||i.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=uue(n);this.playerQueue.forEach(({hls:i})=>i&&(i.setSubtitleOption(n)||n.id!==-1&&i.setSubtitleOption(r)))}onBufferCodecs(t,n){const r=n.tracks;r&&(this.requiredTracks=r)}onBufferAppended(t,n){this.checkBuffer()}onBufferFlushed(t,n){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const i=this.timelinePos;this.bufferedPos=i,this.checkBuffer()}}onBufferedToEnd(t){if(!this.schedule)return;const n=this.schedule.events;if(this.bufferedPos.25){t.event.assetList.forEach((a,s)=>{t.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(a.identifier,null)});const r=t.end+.25,i=jr.bufferInfo(this.primaryMedia,r,0);(i.end>r||(i.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${pd(t)} (was ${pd(n)})`),this.attachPrimary(r,null,!0),this.flushFrontBuffer(r))}}itemsMatch(t,n){return!!n&&(t===n||t.event&&n.event&&this.eventItemsMatch(t,n)||!t.event&&!n.event&&this.findItemIndex(t)===this.findItemIndex(n))}eventItemsMatch(t,n){var r;return!!n&&(t===n||t.event.identifier===((r=n.event)==null?void 0:r.identifier))}findItemIndex(t,n){return t&&this.schedule?this.schedule.findItemIndex(t,n):-1}updateSchedule(t=!1){var n;const r=this.mediaSelection;r&&((n=this.schedule)==null||n.updateSchedule(r,[],t))}checkBuffer(t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r)return;const i=jr.bufferInfo(this.primaryMedia,this.timelinePos,0);t&&(this.bufferedPos=this.timelinePos),t||(t=i.len<1),this.updateBufferedPos(i.end,r,t)}updateBufferedPos(t,n,r){const i=this.schedule,a=this.bufferingItem;if(this.bufferedPos>t||!i)return;if(n.length===1&&this.itemsMatch(n[0],a)){this.bufferedPos=t;return}const s=this.playingItem,l=this.findItemIndex(s);let c=i.findItemIndexAtTime(t);if(this.bufferedPos=a.end||(d=v.event)!=null&&d.appendInPlace&&t+.01>=v.start)&&(c=p),this.isInterstitial(a)){const g=a.event;if(p-l>1&&g.appendInPlace===!1||g.assetList.length===0&&g.assetListLoader)return}if(this.bufferedPos=t,c>h&&c>l)this.bufferedToItem(v);else{const g=this.primaryDetails;this.primaryLive&&g&&t>g.edge-g.targetduration&&v.start{const a=this.getAssetPlayer(i.identifier);return!(a!=null&&a.bufferedInPlaceToEnd(n))})}setBufferingItem(t){const n=this.bufferingItem,r=this.schedule;if(!this.itemsMatch(t,n)&&r){const{items:i,events:a}=r;if(!i||!a)return n;const s=this.isInterstitial(t),l=this.getBufferingPlayer();this.bufferingItem=t,this.bufferedPos=Math.max(t.start,Math.min(t.end,this.timelinePos));const c=l?l.remaining:n?n.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${pd(t)}`+(n?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const d=r.findAssetIndex(t.event,this.bufferedPos);t.event.assetList.forEach((h,p)=>{const v=this.getAssetPlayer(h.identifier);v&&(p===d&&v.loadSource(),v.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(d=>d.pauseBuffering());this.hls.trigger(Pe.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:a.slice(0),schedule:i.slice(0),bufferingIndex:this.findItemIndex(t),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==t&&(this.bufferingItem=t);return n}bufferedToItem(t,n=0){const r=this.setBufferingItem(t);if(!this.playbackDisabled){if(this.isInterstitial(t))this.bufferedToEvent(t,n);else if(r!==null){this.bufferingAsset=null;const i=this.detachedData;i?i.mediaSource?this.attachPrimary(t.start,t,!0):this.preloadPrimary(t):this.preloadPrimary(t)}}}preloadPrimary(t){const n=this.findItemIndex(t),r=this.getPrimaryResumption(t,n);this.startLoadingPrimaryAt(r)}bufferedToEvent(t,n){const r=t.event,i=r.assetList.length===0&&!r.assetListLoader,a=r.cue.once;if(i||!a){const s=this.preloadAssets(r,n);if(s!=null&&s.interstitial.appendInPlace){const l=this.primaryMedia;l&&this.bufferAssetPlayer(s,l)}}}preloadAssets(t,n){const r=t.assetUrl,i=t.assetList.length,a=i===0&&!t.assetListLoader,s=t.cue.once;if(a){const c=t.timelineStart;if(t.appendInPlace){var l;const v=this.playingItem;!this.isInterstitial(v)&&(v==null||(l=v.nextEvent)==null?void 0:l.identifier)===t.identifier&&this.flushFrontBuffer(c+.25)}let d,h=0;if(!this.playingItem&&this.primaryLive&&(h=this.hls.startPosition,h===-1&&(h=this.hls.liveSyncPosition||0)),h&&!(t.cue.pre||t.cue.post)){const v=h-c;v>0&&(d=Math.round(v*1e3)/1e3)}if(this.log(`Load interstitial asset ${n+1}/${r?1:i} ${t}${d?` live-start: ${h} start-offset: ${d}`:""}`),r)return this.createAsset(t,0,0,c,t.duration,r);const p=this.assetListLoader.loadAssetList(t,d);p&&(t.assetListLoader=p)}else if(!s&&i){for(let d=n;d{this.hls.trigger(Pe.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:i})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r1){const T=n.duration;T&&_{if(_.live){var T;const M=new Error(`Interstitials MUST be VOD assets ${t}`),O={fatal:!0,type:ur.OTHER_ERROR,details:zt.INTERSTITIAL_ASSET_ITEM_ERROR,error:M},L=((T=this.schedule)==null?void 0:T.findEventIndex(t.identifier))||-1;this.handleAssetItemError(O,t,L,r,M.message);return}const D=_.edge-_.fragmentStart,P=n.duration;(S||P===null||D>P)&&(S=!1,this.log(`Interstitial asset "${p}" duration change ${P} > ${D}`),n.duration=D,this.updateSchedule())};y.on(Pe.LEVEL_UPDATED,(_,{details:T})=>k(T)),y.on(Pe.LEVEL_PTS_UPDATED,(_,{details:T})=>k(T)),y.on(Pe.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const C=(_,T)=>{const D=this.getAssetPlayer(p);if(D&&T.tracks){D.off(Pe.BUFFER_CODECS,C),D.tracks=T.tracks;const P=this.primaryMedia;this.bufferingAsset===D.assetItem&&P&&!D.media&&this.bufferAssetPlayer(D,P)}};y.on(Pe.BUFFER_CODECS,C);const x=()=>{var _;const T=this.getAssetPlayer(p);if(this.log(`buffered to end of asset ${T}`),!T||!this.schedule)return;const D=this.schedule.findEventIndex(t.identifier),P=(_=this.schedule.items)==null?void 0:_[D];this.isInterstitial(P)&&this.advanceAssetBuffering(P,n)};y.on(Pe.BUFFERED_TO_END,x);const E=_=>()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;this.shouldPlay=!0;const D=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,D,_)};return y.once(Pe.MEDIA_ENDED,E(r)),y.once(Pe.PLAYOUT_LIMIT_REACHED,E(1/0)),y.on(Pe.ERROR,(_,T)=>{if(!this.schedule)return;const D=this.getAssetPlayer(p);if(T.details===zt.BUFFER_STALLED_ERROR){if(D!=null&&D.appendInPlace){this.handleInPlaceStall(t);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(T,t,this.schedule.findEventIndex(t.identifier),r,`Asset player error ${T.error} ${t}`)}),y.on(Pe.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const T=new Error(`Asset player destroyed unexpectedly ${p}`),D={fatal:!0,type:ur.OTHER_ERROR,details:zt.INTERSTITIAL_ASSET_ITEM_ERROR,error:T};this.handleAssetItemError(D,t,this.schedule.findEventIndex(t.identifier),r,T.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${z1(n)}`),this.hls.trigger(Pe.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:n,assetListIndex:r,event:t,player:y}),y}clearInterstitial(t,n){t.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,n)}),t.reset()}resetAssetPlayer(t){const n=this.getAssetPlayerQueueIndex(t);if(n!==-1){this.log(`reset asset player "${t}" after error`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,null),r.resetDetails()}}clearAssetPlayer(t,n){const r=this.getAssetPlayerQueueIndex(t);if(r!==-1){const i=this.playerQueue[r];this.log(`clear ${i} toSegment: ${n&&pd(n)}`),this.transferMediaFromPlayer(i,n),this.playerQueue.splice(r,1),i.destroy()}}emptyPlayerQueue(){let t;for(;t=this.playerQueue.pop();)t.destroy();this.playerQueue=[]}startAssetPlayer(t,n,r,i,a){const{interstitial:s,assetItem:l,assetId:c}=t,d=s.assetList.length,h=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!h||h.identifier!==c)&&(h&&(this.clearAssetPlayer(h.identifier,r[i]),delete h.error),this.log(`INTERSTITIAL_ASSET_STARTED ${n+1}/${d} ${z1(l)}`),this.hls.trigger(Pe.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:n,event:s,schedule:r.slice(0),scheduleIndex:i,player:t})),this.bufferAssetPlayer(t,a)}bufferAssetPlayer(t,n){var r,i;if(!this.schedule)return;const{interstitial:a,assetItem:s}=t,l=this.schedule.findEventIndex(a.identifier),c=(r=this.schedule.items)==null?void 0:r[l];if(!c)return;t.loadSource(),this.setBufferingItem(c),this.bufferingAsset=s;const d=this.getBufferingPlayer();if(d===t)return;const h=a.appendInPlace;if(h&&d?.interstitial.appendInPlace===!1)return;const p=d?.tracks||((i=this.detachedData)==null?void 0:i.tracks)||this.requiredTracks;if(h&&s!==this.playingAsset){if(!t.tracks){this.log(`Waiting for track info before buffering ${t}`);return}if(p&&!q3e(p,t.tracks)){const v=new Error(`Asset ${z1(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),g={fatal:!0,type:ur.OTHER_ERROR,details:zt.INTERSTITIAL_ASSET_ITEM_ERROR,error:v},y=a.findAssetIndex(s);this.handleAssetItemError(g,a,l,y,v.message);return}}this.transferMediaTo(t,n)}handleInPlaceStall(t){const n=this.schedule,r=this.primaryMedia;if(!n||!r)return;const i=r.currentTime,a=n.findAssetIndex(t,i),s=t.assetList[a];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const c=l.currentTime||i-s.timelineStart,d=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+d} in ${l} ${t} (media.currentTime: ${i})`),c&&(d/r.playbackRate<.5||l.bufferedInPlaceToEnd(r))&&l.hls){const h=n.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,h,a)}}}}advanceInPlace(t){const n=this.primaryMedia;n&&n.currentTime!S.error))n.error=y;else for(let S=i;S{const C=parseFloat(S.DURATION);this.createAsset(a,k,h,c+h,C,S.URI),h+=C}),a.duration=h,this.log(`Loaded asset-list with duration: ${h} (was: ${d}) ${a}`);const p=this.waitingItem,v=p?.event.identifier===s;this.updateSchedule();const g=(i=this.bufferingItem)==null?void 0:i.event;if(v){var y;const S=this.schedule.findEventIndex(s),k=(y=this.schedule.items)==null?void 0:y[S];if(k){if(!this.playingItem&&this.timelinePos>k.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==S){a.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${a}`),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(k)}this.setSchedulePosition(S)}else if(g?.identifier===s){const S=a.assetList[0];if(S){const k=this.getAssetPlayer(S.identifier);if(g.appendInPlace){const C=this.primaryMedia;k&&C&&this.bufferAssetPlayer(k,C)}else k&&k.loadSource()}}}onError(t,n){if(this.schedule)switch(n.details){case zt.ASSET_LIST_PARSING_ERROR:case zt.ASSET_LIST_LOAD_ERROR:case zt.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case zt.BUFFER_STALLED_ERROR:{const r=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&r.event.appendInPlace){this.handleInPlaceStall(r.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const tce=500;class N7t extends zG{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",Qn.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Pe.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Pe.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=nn.IDLE,this.setInterval(tce),this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(t,n){this.tracksBuffered=[],super.onMediaDetaching(t,n)}onLevelLoaded(t,n){this.mainDetails=n.details}onSubtitleFragProcessed(t,n){const{frag:r,success:i}=n;if(this.fragContextChanged(r)||(qs(r)&&(this.fragPrevious=r),this.state=nn.IDLE),!i)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const l=r.start;for(let d=0;d=a[d].start&&l<=a[d].end){s=a[d];break}const c=r.start+r.duration;s?s.end=c:(s={start:l,end:c},a.push(s)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(t,n){const{startOffset:r,endOffset:i}=n;if(r===0&&i!==Number.POSITIVE_INFINITY){const a=i-1;if(a<=0)return;n.endOffsetSubtitles=Math.max(0,a),this.tracksBuffered.forEach(s=>{for(let l=0;lnew A_(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const i=new A_(r);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Qn.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(t,n){var r;if(this.currentTrackId=n.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==nn.STOPPED&&this.setInterval(tce)}onSubtitleTrackLoaded(t,n){var r;const{currentTrackId:i,levels:a}=this,{details:s,id:l}=n;if(!a){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const c=a[l];if(l>=a.length||!c)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let d=0;if(s.live||(r=c.details)!=null&&r.live){if(s.deltaUpdateFailed)return;const p=this.mainDetails;if(!p){this.startFragRequested=!1;return}const v=p.fragments[0];if(!c.details)s.hasProgramDateTime&&p.hasProgramDateTime?(UT(s,p),d=s.fragmentStart):v&&(d=v.start,Xz(s,d));else{var h;d=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),d===0&&v&&(d=v.start,Xz(s,d))}p&&!this.startFragRequested&&this.setStartPosition(p,d)}c.details=s,this.levelLastLoaded=c,l===i&&(this.hls.trigger(Pe.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===nn.IDLE&&(Um(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),c.details=void 0)))}_handleFragmentLoadComplete(t){const{frag:n,payload:r}=t,i=n.decryptdata,a=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&i!=null&&i.key&&i.iv&&Sy(i.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer,jG(i.method)).catch(l=>{throw a.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(Pe.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=nn.IDLE})}}doTick(){if(!this.media){this.state=nn.IDLE;return}if(this.state===nn.IDLE){const{currentTrackId:t,levels:n}=this,r=n?.[t];if(!r||!n.length||!r.details||this.waitForLive(r))return;const{config:i}=this,a=this.getLoadPosition(),s=jr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,i.maxBufferHole),{end:l,len:c}=s,d=r.details,h=this.hls.maxBufferLength+d.levelTargetDuration;if(c>h)return;const p=d.fragments,v=p.length,g=d.edge;let y=null;const S=this.fragPrevious;if(lg-x?0:x;y=Um(S,p,Math.max(p[0].start,l),E),!y&&S&&S.start{if(i=i>>>0,i>a-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${a})`);return t[i][r]};this.buffered={get length(){return t.length},end(r){return n("end",r,t.length)},start(r){return n("start",r,t.length)}}}}const j7t={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},h4e=e=>String.fromCharCode(j7t[e]||e),Sd=15,ch=100,V7t={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},z7t={17:2,18:4,21:6,22:8,23:10,19:13,20:15},U7t={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},H7t={25:2,26:4,29:6,30:8,31:10,27:13,28:15},W7t=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class G7t{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;po.log(`${this.time} [${t}] ${r}`)}}}const Vv=function(t){const n=[];for(let r=0;rch&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=ch)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r=144&&this.backSpace();const n=h4e(t);if(this.pos>=ch){this.logger.log(0,()=>"Cannot insert "+t.toString(16)+" ("+n+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1)}clearFromPos(t){let n;for(n=t;n"pacData = "+Ao(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+Ao(t)),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const t=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(t,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const n=[];let r="",i=-1;for(let a=0;a0&&(t?r="["+n.join(" | ")+"]":r=n.join(` -`)),r}getTextAndFormat(){return this.rows}}class nce{constructor(t,n,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=n,this.mode=null,this.verbose=0,this.displayedMemory=new ZF(r),this.nonDisplayedMemory=new ZF(r),this.lastOutputScreen=new ZF(r),this.currRollUpRow=this.displayedMemory.rows[Sd-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Sd-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,()=>"MODE="+t),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let r=0;rn+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const n={flash:!1};if(n.underline=t%2===1,n.italics=t>=46,n.italics)n.foreground="white";else{const r=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];n.foreground=i[r]}this.logger.log(2,"MIDROW: "+Ao(n)),this.writeScreen.setPen(n)}outputDataUpdate(t=!1){const n=this.logger.time;n!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=n:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,n,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:n),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class rce{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=X7t(),this.logger=void 0;const i=this.logger=new G7t;this.channels=[null,new nce(t,n,i),new nce(t+1,r,i)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,n){this.channels[t].setHandler(n)}addData(t,n){this.logger.time=t;for(let r=0;r"["+Vv([n[r],n[r+1]])+"] -> ("+Vv([i,a])+")");const c=this.cmdHistory;if(i>=16&&i<=31){if(Y7t(i,a,c)){PC(null,null,c),this.logger.log(3,()=>"Repeated command ("+Vv([i,a])+") is dropped");continue}PC(i,a,this.cmdHistory),s=this.parseCmd(i,a),s||(s=this.parseMidrow(i,a)),s||(s=this.parsePAC(i,a)),s||(s=this.parseBackgroundAttributes(i,a))}else PC(null,null,c);if(!s&&(l=this.parseChars(i,a),l)){const h=this.currentChannel;h&&h>0?this.channels[h].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Vv([i,a])+" orig: "+Vv([n[r],n[r+1]]))}}parseCmd(t,n){const r=(t===20||t===28||t===21||t===29)&&n>=32&&n<=47,i=(t===23||t===31)&&n>=33&&n<=35;if(!(r||i))return!1;const a=t===20||t===21||t===23?1:2,s=this.channels[a];return t===20||t===21||t===28||t===29?n===32?s.ccRCL():n===33?s.ccBS():n===34?s.ccAOF():n===35?s.ccAON():n===36?s.ccDER():n===37?s.ccRU(2):n===38?s.ccRU(3):n===39?s.ccRU(4):n===40?s.ccFON():n===41?s.ccRDC():n===42?s.ccTR():n===43?s.ccRTD():n===44?s.ccEDM():n===45?s.ccCR():n===46?s.ccENM():n===47&&s.ccEOC():s.ccTO(n-32),this.currentChannel=a,!0}parseMidrow(t,n){let r=0;if((t===17||t===25)&&n>=32&&n<=47){if(t===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[r];return i?(i.ccMIDROW(n),this.logger.log(3,()=>"MIDROW ("+Vv([t,n])+")"),!0):!1}return!1}parsePAC(t,n){let r;const i=(t>=17&&t<=23||t>=25&&t<=31)&&n>=64&&n<=127,a=(t===16||t===24)&&n>=64&&n<=95;if(!(i||a))return!1;const s=t<=23?1:2;n>=64&&n<=95?r=s===1?V7t[t]:U7t[t]:r=s===1?z7t[t]:H7t[t];const l=this.channels[s];return l?(l.setPAC(this.interpretPAC(r,n)),this.currentChannel=s,!0):!1}interpretPAC(t,n){let r;const i={color:null,italics:!1,indent:null,underline:!1,row:t};return n>95?r=n-96:r=n-64,i.underline=(r&1)===1,r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((r-16)/2)*4,i}parseChars(t,n){let r,i=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19){let s;a===17?s=n+80:a===18?s=n+112:s=n+144,this.logger.log(2,()=>"Special char '"+h4e(s)+"' in channel "+r),i=[s]}else t>=32&&t<=127&&(i=n===0?[t]:[t,n]);return i&&this.logger.log(3,()=>"Char codes = "+Vv(i).join(",")),i}parseBackgroundAttributes(t,n){const r=(t===16||t===24)&&n>=32&&n<=47,i=(t===23||t===31)&&n>=45&&n<=47;if(!(r||i))return!1;let a;const s={};t===16||t===24?(a=Math.floor((n-32)/2),s.background=W7t[a],n%2===1&&(s.background=s.background+"_semi")):n===45?s.background="transparent":(s.foreground="black",n===47&&(s.underline=!0));const l=t<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let t=0;t100)throw new Error("Position must be between 0 and 100.");D=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return P},set:function(L){const B=i(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");P=B,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return M},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");M=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return O},set:function(L){const B=i(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");O=B,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class Z7t{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function v4e(e){function t(r,i,a,s){return(r|0)*3600+(i|0)*60+(a|0)+parseFloat(s||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}let J7t=class{constructor(){this.values=Object.create(null)}set(t,n){!this.get(t)&&n!==""&&(this.values[t]=n)}get(t,n,r){return r?this.has(t)?this.values[t]:n[r]:this.has(t)?this.values[t]:n}has(t){return t in this.values}alt(t,n,r){for(let i=0;i=0&&r<=100)return this.set(t,r),!0}return!1}};function m4e(e,t,n,r){const i=r?e.split(r):[e];for(const a in i){if(typeof i[a]!="string")continue;const s=i[a].split(n);if(s.length!==2)continue;const l=s[0],c=s[1];t(l,c)}}const iU=new eK(0,0,""),RC=iU.align==="middle"?"middle":"center";function Q7t(e,t,n){const r=e;function i(){const l=v4e(e);if(l===null)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),l}function a(l,c){const d=new J7t;m4e(l,function(v,g){let y;switch(v){case"region":for(let S=n.length-1;S>=0;S--)if(n[S].id===g){d.set(v,n[S].region);break}break;case"vertical":d.alt(v,g,["rl","lr"]);break;case"line":y=g.split(","),d.integer(v,y[0]),d.percent(v,y[0])&&d.set("snapToLines",!1),d.alt(v,y[0],["auto"]),y.length===2&&d.alt("lineAlign",y[1],["start",RC,"end"]);break;case"position":y=g.split(","),d.percent(v,y[0]),y.length===2&&d.alt("positionAlign",y[1],["start",RC,"end","line-left","line-right","auto"]);break;case"size":d.percent(v,g);break;case"align":d.alt(v,g,["start",RC,"end","left","right"]);break}},/:/,/\s/),c.region=d.get("region",null),c.vertical=d.get("vertical","");let h=d.get("line","auto");h==="auto"&&iU.line===-1&&(h=-1),c.line=h,c.lineAlign=d.get("lineAlign","start"),c.snapToLines=d.get("snapToLines",!0),c.size=d.get("size",100),c.align=d.get("align",RC);let p=d.get("position","auto");p==="auto"&&iU.position===50&&(p=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=p}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=i(),s(),e.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.slice(3),s(),t.endTime=i(),s(),a(e,t)}function g4e(e){return e.replace(//gi,` -`)}class eDt{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new Z7t,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const n=this;t&&(n.buffer+=n.decoder.decode(t,{stream:!0}));function r(){let a=n.buffer,s=0;for(a=g4e(a);sc==="initSegment"?void 0:d)}}`),!q3e(i,r)){n.mediaSource=null,n.tracks=void 0;const c=t.currentTime,d=this.details,h=Math.max(c,d?.fragments[0].start||0);if(h-c>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${c} -> ${h}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(r)}") start time: ${h} currentTime: ${c}`),this.onMediaDetaching(Pe.MEDIA_DETACHING,{}),this.onMediaAttaching(Pe.MEDIA_ATTACHING,n),t.currentTime=h;return}this.transferData=void 0,a.forEach(c=>{const d=c,h=i[d];if(h){const p=h.buffer;if(p){const v=this.fragmentTracker,g=h.id;if(v.hasFragments(g)||v.hasParts(g)){const k=Vr.getBuffered(p);v.detectEvictedFragments(d,k,g,null,!0)}const y=XF(d),S=[d,p];this.sourceBuffers[y]=S,p.updating&&this.operationQueue&&this.operationQueue.prependBlocker(d),this.trackSourceBuffer(d,h)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var t;const n=(t=this.mediaSource)==null?void 0:t.readyState;return n==="open"||n==="ended"}onMediaDetaching(t,n){const r=!!n.transferMedia;this.transferData=this.overrides=void 0;const{media:i,mediaSource:a,_objectUrl:s}=this;if(a){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=a.readyState==="open";try{const c=a.sourceBuffers;for(let d=c.length;d--;)l&&c[d].abort(),a.removeSourceBuffer(c[d]);l&&a.endOfStream()}catch(c){this.warn(`onMediaDetaching: ${c.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),r||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(i.removeAttribute("src"),this.appendSource&&Kue(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Pe.MEDIA_DETACHED,n)}onBufferReset(){this.sourceBuffers.forEach(([t])=>{t&&this.resetBuffer(t)}),this.initTracks()}resetBuffer(t){var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;if(this.removeBuffer(t),r)try{var i;(i=this.mediaSource)!=null&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(a){this.warn(`onBufferReset ${t}`,a)}delete this.tracks[t]}removeBuffer(t){this.removeBufferListeners(t),this.sourceBuffers[XF(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new LLt(this.tracks)}onBufferCodecs(t,n){var r;const i=this.tracks,a=Object.keys(n);this.log(`BUFFER_CODECS: "${a}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in n&&(i.audio||i.video)||i.audiovideo&&("audio"in n||"video"in n),l=!s&&this.sourceBufferCount&&this.media&&a.some(c=>!i[c]);if(s||l){this.warn(`Unsupported transition between "${Object.keys(i)}" and "${a}" SourceBuffers`);return}a.forEach(c=>{var d,h;const p=n[c],{id:v,codec:g,levelCodec:y,container:S,metadata:k,supplemental:w}=p;let x=i[c];const E=(d=this.transferData)==null||(d=d.tracks)==null?void 0:d[c],_=E!=null&&E.buffer?E:x,T=_?.pendingCodec||_?.codec,D=_?.levelCodec;x||(x=i[c]={buffer:void 0,listeners:[],codec:g,supplemental:w,container:S,levelCodec:y,metadata:k,id:v});const P=i8(T,D),M=P?.replace(Gue,"$1");let $=i8(g,y);const L=(h=$)==null?void 0:h.replace(Gue,"$1");$&&P&&M!==L&&(c.slice(0,5)==="audio"&&($=BT($,this.appendSource)),this.log(`switching codec ${T} to ${$}`),$!==(x.pendingCodec||x.codec)&&(x.pendingCodec=$),x.container=S,this.appendChangeType(c,S,$))}),(this.tracksReady||this.sourceBufferCount)&&(n.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!n.video&&((r=n.audio)==null?void 0:r.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((t,n)=>{const r=this.tracks[n];return t[n]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},t},{})}appendChangeType(t,n,r){const i=`${n};codecs=${r}`,a={label:`change-type=${i}`,execute:()=>{const s=this.tracks[t];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${t} sourceBuffer type to ${i}`),l.changeType(i),s.codec=r,s.container=n)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${t} SourceBuffer type`,s)}};this.append(a,t,this.isPending(this.tracks[t]))}blockAudio(t){var n;const r=t.start,i=r+t.duration*.05;if(((n=this.fragmentTracker.getAppendedFrag(r,Qn.MAIN))==null?void 0:n.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const c=this.tracks.video;(this.lastVideoAppendEnd>i||c!=null&&c.buffer&&Vr.isBuffered(c.buffer,i)||((l=this.fragmentTracker.getAppendedFrag(i,Qn.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:t},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:t,operationQueue:n}=this;t&&n&&(this.blockedAudioAppend=null,n.unblockAudio(t.op))}onBufferAppending(t,n){const{tracks:r}=this,{data:i,type:a,parent:s,frag:l,part:c,chunkMeta:d,offset:h}=n,p=d.buffering[a],{sn:v,cc:g}=l,y=self.performance.now();p.start=y;const S=l.stats.buffering,k=c?c.stats.buffering:null;S.start===0&&(S.start=y),k&&k.start===0&&(k.start=y);const w=r.audio;let x=!1;a==="audio"&&w?.container==="audio/mpeg"&&(x=!this.lastMpegAudioChunk||d.id===1||this.lastMpegAudioChunk.sn!==d.sn,this.lastMpegAudioChunk=d);const E=r.video,_=E?.buffer;if(_&&v!=="initSegment"){const P=c||l,M=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(E.ending||E.ended)){const L=P.start+P.duration*.05,B=_.buffered,j=this.currentOp("video");!B.length&&!j?this.blockAudio(P):!j&&!Vr.isBuffered(_,L)&&this.lastVideoAppendEndL||${var P;p.executeStart=self.performance.now();const M=(P=this.tracks[a])==null?void 0:P.buffer;M&&(x?this.updateTimestampOffset(M,T,.1,a,v,g):h!==void 0&&Bn(h)&&this.updateTimestampOffset(M,h,1e-6,a,v,g)),this.appendExecutor(i,a)},onStart:()=>{},onComplete:()=>{const P=self.performance.now();p.executeEnd=p.end=P,S.first===0&&(S.first=P),k&&k.first===0&&(k.first=P);const M={};this.sourceBuffers.forEach(([$,L])=>{$&&(M[$]=Vr.getBuffered(L))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Pe.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:d,parent:l.type,timeRanges:M})},onError:P=>{var M;const $={type:cr.MEDIA_ERROR,parent:l.type,details:zt.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:d,error:P,err:P,fatal:!1},L=(M=this.media)==null?void 0:M.error;if(P.code===DOMException.QUOTA_EXCEEDED_ERR||P.name=="QuotaExceededError"||"quota"in P)$.details=zt.BUFFER_FULL_ERROR;else if(P.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!L)$.errorAction=Sy(!0);else if(P.name===J2e&&this.sourceBufferCount===0)$.errorAction=Sy(!0);else{const B=++this.appendErrors[a];this.warn(`Failed ${B}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${L||"no media error"})`),(B>=this.hls.config.appendErrorMaxRetry||L)&&($.fatal=!0)}this.hls.trigger(Pe.ERROR,$)}};this.log(`queuing "${a}" append sn: ${v}${c?" p: "+c.index:""} of ${l.type===Qn.MAIN?"level":"track"} ${l.level} cc: ${g}`),this.append(D,a,this.isPending(this.tracks[a]))}getFlushOp(t,n,r){return this.log(`queuing "${t}" remove ${n}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(t,n,r)},onStart:()=>{},onComplete:()=>{this.hls.trigger(Pe.BUFFER_FLUSHED,{type:t})},onError:i=>{this.warn(`Failed to remove ${n}-${r} from "${t}" SourceBuffer`,i)}}}onBufferFlushing(t,n){const{type:r,startOffset:i,endOffset:a}=n;r?this.append(this.getFlushOp(r,i,a),r):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,i,a),s)})}onFragParsed(t,n){const{frag:r,part:i}=n,a=[],s=i?i.elementaryStreams:r.elementaryStreams;s[To.AUDIOVIDEO]?a.push("audiovideo"):(s[To.AUDIO]&&a.push("audio"),s[To.VIDEO]&&a.push("video"));const l=()=>{const c=self.performance.now();r.stats.buffering.end=c,i&&(i.stats.buffering.end=c);const d=i?i.stats:r.stats;this.hls.trigger(Pe.FRAG_BUFFERED,{frag:r,part:i,stats:d,id:r.type})};a.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(l,a).catch(c=>{this.warn(`Fragment buffered callback ${c}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(t,n){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([t])=>{if(t){const n=this.tracks[t];if(n)return!n.ended||n.ending}return!1})}onBufferEos(t,n){var r;this.sourceBuffers.forEach(([s])=>{if(s){const l=this.tracks[s];(!n.type||n.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} buffer reached EOS`)))}});const i=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})?i?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(Pe.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(Pe.BUFFERED_TO_END,void 0)):n.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([t])=>{if(t!==null){const n=this.tracks[t];n&&(n.ending=!1)}})}onLevelUpdated(t,{details:n}){n.fragments.length&&(this.details=n,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const t=this.getDurationAndRange();t&&this.updateMediaSource(t)})}onError(t,n){if(n.details===zt.BUFFER_APPEND_ERROR&&n.frag){var r;const i=(r=n.errorAction)==null?void 0:r.nextAutoLevel;Bn(i)&&i!==n.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:t,details:n,media:r}=this;if(!r||n===null||!this.sourceBufferCount)return;const i=t.config,a=r.currentTime,s=n.levelTargetDuration,l=n.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(Bn(l)&&l>=0){const d=Math.max(l,s),h=Math.floor(a/s)*s-d;this.flushBackBuffer(a,s,h)}const c=i.frontBufferFlushThreshold;if(Bn(c)&&c>0){const d=Math.max(i.maxBufferLength,c),h=Math.max(d,s),p=Math.floor(a/s)*s+h;this.flushFrontBuffer(a,s,p)}}flushBackBuffer(t,n,r){this.sourceBuffers.forEach(([i,a])=>{if(a){const l=Vr.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(Pe.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[i];if((s=this.details)!=null&&s.live)this.hls.trigger(Pe.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(c!=null&&c.ended){this.log(`Cannot flush ${i} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(Pe.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:i})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([i,a])=>{if(a){const s=Vr.getBuffered(a),l=s.length;if(l<2)return;const c=s.start(l-1),d=s.end(l-1);if(r>c||t>=c&&t<=d)return;this.hls.trigger(Pe.BUFFER_FLUSHING,{startOffset:c,endOffset:1/0,type:i})}})}getDurationAndRange(){var t;const{details:n,mediaSource:r}=this;if(!n||!this.media||r?.readyState!=="open")return null;const i=n.edge;if(n.live&&this.hls.config.liveDurationInfinity){if(n.fragments.length&&r.setLiveSeekableRange){const d=Math.max(0,n.fragmentStart),h=Math.max(d,i);return{duration:1/0,start:d,end:h}}return{duration:1/0}}const a=(t=this.overrides)==null?void 0:t.duration;if(a)return Bn(a)?{duration:a}:null;const s=this.media.duration,l=Bn(r.duration)?r.duration:0;return i>l&&i>s||!Bn(s)?{duration:i}:null}updateMediaSource({duration:t,start:n,end:r}){const i=this.mediaSource;!this.media||!i||i.readyState!=="open"||(i.duration!==t&&(Bn(t)&&this.log(`Updating MediaSource duration to ${t.toFixed(3)}`),i.duration=t),n!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${i.duration}. Setting seekable range to ${n}-${r}.`),i.setLiveSeekableRange(n,r)))}get tracksReady(){const t=this.pendingTrackCount;return t>0&&(t>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:t,pendingTrackCount:n,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${n} codec events expected: ${t}) ${Ao(r)}`),this.tracksReady){var i;const a=(i=this.transferData)==null?void 0:i.tracks;a&&Object.keys(a).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const t={};this.sourceBuffers.forEach(([n,r])=>{if(n){const i=this.tracks[n];t[n]={buffer:r,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}}),this.hls.trigger(Pe.BUFFER_CREATED,{tracks:t}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([n])=>{this.executeNext(n)})}else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}createSourceBuffers(){const{tracks:t,sourceBuffers:n,mediaSource:r}=this;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(const a in t){const s=a,l=t[s];if(this.isPending(l)){const c=this.getTrackCodec(l,s),d=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${d})${this.currentOp(s)?" Queued":""} ${Ao(l)}`);try{const h=r.addSourceBuffer(d),p=XF(s),v=[s,h];n[p]=v,l.buffer=h}catch(h){var i;this.error(`error while trying to add sourceBuffer: ${h.message}`),this.shiftAndExecuteNext(s),(i=this.operationQueue)==null||i.removeBlockers(),delete this.tracks[s],this.hls.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,sourceBufferName:s,mimeType:d,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(t,n){const r=t.supplemental;let i=t.codec;r&&(n==="video"||n==="audiovideo")&&T_(r,"video")&&(i=kAt(i,r));const a=i8(i,t.levelCodec);return a?n.slice(0,5)==="audio"?BT(a,this.appendSource):a:""}trackSourceBuffer(t,n){const r=n.buffer;if(!r)return;const i=this.getTrackCodec(n,t);this.tracks[t]={buffer:r,codec:i,container:n.container,levelCodec:n.levelCodec,supplemental:n.supplemental,metadata:n.metadata,id:n.id,listeners:[]},this.removeBufferListeners(t),this.addBufferListener(t,"updatestart",this.onSBUpdateStart),this.addBufferListener(t,"updateend",this.onSBUpdateEnd),this.addBufferListener(t,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(t,"bufferedchange",(a,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(Pe.BUFFER_FLUSHED,{type:a})})}get mediaSrc(){var t,n;const r=((t=this.media)==null||(n=t.querySelector)==null?void 0:n.call(t,"source"))||this.media;return r?.src}onSBUpdateStart(t){const n=this.currentOp(t);n&&n.onStart()}onSBUpdateEnd(t){var n;if(((n=this.mediaSource)==null?void 0:n.readyState)==="closed"){this.resetBuffer(t);return}const r=this.currentOp(t);r&&(r.onComplete(),this.shiftAndExecuteNext(t))}onSBUpdateError(t,n){var r;const i=new Error(`${t} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${i}`,n),this.hls.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:!1});const a=this.currentOp(t);a&&a.onError(i)}updateTimestampOffset(t,n,r,i,a,s){const l=n-t.timestampOffset;Math.abs(l)>=r&&(this.log(`Updating ${i} SourceBuffer timestampOffset to ${n} (sn: ${a} cc: ${s})`),t.timestampOffset=n)}removeExecutor(t,n,r){const{media:i,mediaSource:a}=this,s=this.tracks[t],l=s?.buffer;if(!i||!a||!l){this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(t);return}const c=Bn(i.duration)?i.duration:1/0,d=Bn(a.duration)?a.duration:1/0,h=Math.max(0,n),p=Math.min(r,c,d);p>h&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${h},${p}] from the ${t} SourceBuffer`),l.remove(h,p)):this.shiftAndExecuteNext(t)}appendExecutor(t,n){const r=this.tracks[n],i=r?.buffer;if(!i)throw new DLt(`Attempting to append to the ${n} SourceBuffer, but it does not exist`);r.ending=!1,r.ended=!1,i.appendBuffer(t)}blockUntilOpen(t){if(this.isUpdating()||this.isQueued())this.blockBuffers(t).catch(n=>{this.warn(`SourceBuffer blocked callback ${n}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{t()}catch(n){this.warn(`Callback run without blocking ${this.operationQueue} ${n}`)}}isUpdating(){return this.sourceBuffers.some(([t,n])=>t&&n.updating)}isQueued(){return this.sourceBuffers.some(([t])=>t&&!!this.currentOp(t))}isPending(t){return!!t&&!t.buffer}blockBuffers(t,n=this.sourceBufferTypes){if(!n.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);const{operationQueue:r}=this,i=n.map(s=>this.appendBlocker(s));return n.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then(s=>{r===this.operationQueue&&(t(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(t){t.forEach(n=>{var r;const i=(r=this.tracks[n])==null?void 0:r.buffer;!i||i.updating||this.shiftAndExecuteNext(n)})}append(t,n,r){this.operationQueue&&this.operationQueue.append(t,n,r)}appendBlocker(t){if(this.operationQueue)return this.operationQueue.appendBlocker(t)}currentOp(t){return this.operationQueue?this.operationQueue.current(t):null}executeNext(t){t&&this.operationQueue&&this.operationQueue.executeNext(t)}shiftAndExecuteNext(t){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(t)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((t,n)=>t+(this.isPending(this.tracks[n])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((t,[n])=>t+(n?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([t])=>t).filter(t=>!!t)}addBufferListener(t,n,r){const i=this.tracks[t];if(!i)return;const a=i.buffer;if(!a)return;const s=r.bind(this,t);i.listeners.push({event:n,listener:s}),a.addEventListener(n,s)}removeBufferListeners(t){const n=this.tracks[t];if(!n)return;const r=n.buffer;r&&(n.listeners.forEach(i=>{r.removeEventListener(i.event,i.listener)}),n.listeners.length=0)}}function Kue(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function RLt(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function XF(e){return e==="audio"?1:0}class ZG{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(Pe.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Pe.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,n){const r=this.hls.levels[n.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(t,n){this.media=n.media instanceof HTMLVideoElement?n.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,n){const r=this.hls;this.restrictedLevels=[],this.firstLevel=n.firstLevel,r.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onLevelsUpdated(t,n){this.timer&&Bn(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,n){this.hls.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const t=this.hls.levels;if(t.length){const n=this.hls,r=this.getMaxLevel(t.length-1);r!==this.autoLevelCapping&&n.logger.log(`Setting autoLevelCapping to ${r}: ${t[r].height}p@${t[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),n.autoLevelCapping=r,n.autoLevelEnabled&&n.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=n.autoLevelCapping}}}getMaxLevel(t){const n=this.hls.levels;if(!n.length)return-1;const r=n.filter((i,a)=>this.isLevelAllowed(i)&&a<=t);return this.clientRect=null,ZG.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,n={width:0,height:0};if(t){const r=t.getBoundingClientRect();n.width=r.width,n.height=r.height,!n.width&&!n.height&&(n.width=r.right-r.left||t.width||0,n.height=r.bottom-r.top||t.height||0)}return this.clientRect=n,n}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch{}return Math.min(t,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(t){return!this.restrictedLevels.some(r=>t.bitrate===r.bitrate&&t.width===r.width&&t.height===r.height)}static getMaxLevelByMediaSize(t,n,r){if(!(t!=null&&t.length))return-1;const i=(l,c)=>c?l.width!==c.width||l.height!==c.height:!0;let a=t.length-1;const s=Math.max(n,r);for(let l=0;l=s||c.height>=s)&&i(c,t[l+1])){a=l;break}}return a}}const MLt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},fu=MLt,OLt={HLS:"h"},$Lt=OLt;class Ef{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof Ef?r:new Ef(r))),this.value=t,this.params=n}}const BLt="Dict";function NLt(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":typeof e=="object"?JSON.stringify(e):String(e)}function FLt(e,t,n,r){return new Error(`failed to ${e} "${NLt(t)}" as ${n}`,{cause:r})}function Tf(e,t,n){return FLt("serialize",e,t,n)}class Q2e{constructor(t){this.description=t}}const que="Bare Item",jLt="Boolean";function VLt(e){if(typeof e!="boolean")throw Tf(e,jLt);return e?"?1":"?0"}function zLt(e){return btoa(String.fromCharCode(...e))}const ULt="Byte Sequence";function HLt(e){if(ArrayBuffer.isView(e)===!1)throw Tf(e,ULt);return`:${zLt(e)}:`}const WLt="Integer";function GLt(e){return e<-999999999999999||99999999999999912)throw Tf(e,qLt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const XLt="String",ZLt=/[\x00-\x1f\x7f]+/;function JLt(e){if(ZLt.test(e))throw Tf(e,XLt);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function QLt(e){return e.description||e.toString().slice(7,-1)}const e7t="Token";function Yue(e){const t=QLt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw Tf(t,e7t);return t}function nU(e){switch(typeof e){case"number":if(!Bn(e))throw Tf(e,que);return Number.isInteger(e)?e4e(e):YLt(e);case"string":return JLt(e);case"symbol":return Yue(e);case"boolean":return VLt(e);case"object":if(e instanceof Date)return KLt(e);if(e instanceof Uint8Array)return HLt(e);if(e instanceof Q2e)return Yue(e);default:throw Tf(e,que)}}const t7t="Key";function rU(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw Tf(e,t7t);return e}function JG(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${rU(t)}`:`;${rU(t)}=${nU(n)}`).join("")}function n4e(e){return e instanceof Ef?`${nU(e.value)}${JG(e.params)}`:nU(e)}function n7t(e){return`(${e.value.map(n4e).join(" ")})${JG(e.params)}`}function r7t(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw Tf(e,BLt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([i,a])=>{a instanceof Ef||(a=new Ef(a));let s=rU(i);return a.value===!0?s+=JG(a.params):(s+="=",Array.isArray(a.value)?s+=n7t(a):s+=n4e(a)),s}).join(`,${r}`)}function r4e(e,t){return r7t(e,t)}const ef="CMCD-Object",ms="CMCD-Request",Uv="CMCD-Session",jp="CMCD-Status",i7t={br:ef,ab:ef,d:ef,ot:ef,tb:ef,tpb:ef,lb:ef,tab:ef,lab:ef,url:ef,pb:ms,bl:ms,tbl:ms,dl:ms,ltc:ms,mtp:ms,nor:ms,nrr:ms,rc:ms,sn:ms,sta:ms,su:ms,ttfb:ms,ttfbb:ms,ttlb:ms,cmsdd:ms,cmsds:ms,smrt:ms,df:ms,cs:ms,ts:ms,cid:Uv,pr:Uv,sf:Uv,sid:Uv,st:Uv,v:Uv,msd:Uv,bs:jp,bsd:jp,cdn:jp,rtp:jp,bg:jp,pt:jp,ec:jp,e:jp},o7t={REQUEST:ms};function s7t(e){return Object.keys(e).reduce((t,n)=>{var r;return(r=e[n])===null||r===void 0||r.forEach(i=>t[i]=n),t},{})}function a7t(e,t){const n={};if(!e)return n;const r=Object.keys(e),i=t?s7t(t):{};return r.reduce((a,s)=>{var l;const c=i7t[s]||i[s]||o7t.REQUEST,d=(l=a[c])!==null&&l!==void 0?l:a[c]={};return d[s]=e[s],a},n)}function l7t(e){return["ot","sf","st","e","sta"].includes(e)}function u7t(e){return typeof e=="number"?Bn(e):e!=null&&e!==""&&e!==!1}const i4e="event";function c7t(e,t){const n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;const i=n.pathname.split("/").slice(1),a=r.pathname.split("/").slice(1,-1);for(;i[0]===a[0];)i.shift(),a.shift();for(;a.length;)a.shift(),i.unshift("..");return i.join("/")+n.search+n.hash}const u8=e=>Math.round(e),iU=(e,t)=>Array.isArray(e)?e.map(n=>iU(n,t)):e instanceof Ef&&typeof e.value=="string"?new Ef(iU(e.value,t),e.params):(t.baseUrl&&(e=c7t(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),Lx=e=>u8(e/100)*100,d7t=(e,t)=>{let n=e;return t.version>=2&&(e instanceof Ef&&typeof e.value=="string"?n=new Ef([e]):typeof e=="string"&&(n=[e])),iU(n,t)},f7t={br:u8,d:u8,bl:Lx,dl:Lx,mtp:Lx,nor:d7t,rtp:Lx,tb:u8},o4e="request",s4e="response",QG=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],h7t=["e"],p7t=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function rI(e){return p7t.test(e)}function v7t(e){return QG.includes(e)||h7t.includes(e)||rI(e)}const a4e=["d","dl","nor","ot","rtp","su"];function m7t(e){return QG.includes(e)||a4e.includes(e)||rI(e)}const g7t=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function y7t(e){return QG.includes(e)||a4e.includes(e)||g7t.includes(e)||rI(e)}const b7t=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function _7t(e){return b7t.includes(e)||rI(e)}const S7t={[s4e]:y7t,[i4e]:v7t,[o4e]:m7t};function l4e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,i=t.reportingMode||o4e,a=r===1?_7t:S7t[i];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=i===s4e||i===i4e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const d=bo({},f7t,t.formatters),h={version:r,reportingMode:i,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let v=e[p];const g=d[p];if(typeof g=="function"&&(v=g(v,h)),p==="v"){if(r===1)return;v=r}p=="pr"&&v===1||(c&&p==="ts"&&!Bn(v)&&(v=Date.now()),u7t(v)&&(l7t(p)&&typeof v=="string"&&(v=new Q2e(v)),n[p]=v))}),n}function k7t(e,t={}){const n={};if(!e)return n;const r=l4e(e,t),i=a7t(r,t?.customHeaderMap);return Object.entries(i).reduce((a,[s,l])=>{const c=r4e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function w7t(e,t,n){return bo(e,k7t(t,n))}const x7t="CMCD";function C7t(e,t={}){return e?r4e(l4e(e,t),{whitespace:!1}):""}function E7t(e,t={}){if(!e)return"";const n=C7t(e,t);return encodeURIComponent(n)}function T7t(e,t={}){if(!e)return"";const n=E7t(e,t);return`${x7t}=${n}`}const Xue=/CMCD=[^&#]+/;function A7t(e,t,n){const r=T7t(t,n);if(!r)return e;if(Xue.test(e))return e.replace(Xue,r);const i=e.includes("?")?"&":"?";return`${e}${i}${r}`}class I7t{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=i=>{try{this.apply(i,{ot:fu.MANIFEST,su:!this.initialized})}catch(a){this.hls.logger.warn("Could not generate manifest CMCD data.",a)}},this.applyFragmentData=i=>{try{const{frag:a,part:s}=i,l=this.hls.levels[a.level],c=this.getObjectType(a),d={d:(s||a).duration*1e3,ot:c};(c===fu.VIDEO||c===fu.AUDIO||c==fu.MUXED)&&(d.br=l.bitrate/1e3,d.tb=this.getTopBandwidth(c)/1e3,d.bl=this.getBufferLength(c));const h=s?this.getNextPart(s):this.getNextFrag(a);h!=null&&h.url&&h.url!==a.url&&(d.nor=h.url),this.apply(i,d)}catch(a){this.hls.logger.warn("Could not generate segment CMCD data.",a)}},this.hls=t;const n=this.config=t.config,{cmcd:r}=n;r!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||t.sessionId,this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Pe.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Pe.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,n){var r,i;this.audioBuffer=(r=n.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(i=n.tracks.video)==null?void 0:i.buffer}createData(){var t;return{v:1,sf:$Lt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){bo(n,this.createData());const r=n.ot===fu.INIT||n.ot===fu.VIDEO||n.ot===fu.MUXED;this.starved&&r&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering);const{includeKeys:i}=this;i&&(n=Object.keys(n).reduce((s,l)=>(i.includes(l)&&(s[l]=n[l]),s),{}));const a={baseUrl:t.url};this.useHeaders?(t.headers||(t.headers={}),w7t(t.headers,n,a)):t.url=A7t(t.url,n,a)}getNextFrag(t){var n;const r=(n=this.hls.levels[t.level])==null?void 0:n.details;if(r){const i=t.sn-r.startSN;return r.fragments[i+1]}}getNextPart(t){var n;const{index:r,fragment:i}=t,a=(n=this.hls.levels[i.level])==null||(n=n.details)==null?void 0:n.partList;if(a){const{sn:s}=i;for(let l=a.length-1;l>=0;l--){const c=a[l];if(c.index===r&&c.fragment.sn===s)return a[l+1]}}}getObjectType(t){const{type:n}=t;if(n==="subtitle")return fu.TIMED_TEXT;if(t.sn==="initSegment")return fu.INIT;if(n==="audio")return fu.AUDIO;if(n==="main")return this.hls.audioTracks.length?fu.VIDEO:fu.MUXED}getTopBandwidth(t){let n=0,r;const i=this.hls;if(t===fu.AUDIO)r=i.audioTracks;else{const a=i.maxAutoLevel,s=a>-1?a+1:i.levels.length;r=i.levels.slice(0,s)}return r.forEach(a=>{a.bitrate>n&&(n=a.bitrate)}),n>0?n:NaN}getBufferLength(t){const n=this.media,r=t===fu.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:Vr.bufferInfo(r,n.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:t}=this.config,n=this.applyPlaylistData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}createFragmentLoader(){const{fLoader:t}=this.config,n=this.applyFragmentData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}}const L7t=3e5;class D7t extends od{constructor(t){super("content-steering",t.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((t,n)=>(t.indexOf(n.pathwayId)===-1&&t.push(n.pathwayId),t),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(t){this.updatePathwayPriority(t)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=this.timeToLoad*1e3-(performance.now()-this.updated);if(t>0){this.scheduleRefresh(this.uri,t);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const n=this.levels;n&&(this.levels=n.filter(r=>r!==t))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,n){const{contentSteering:r}=n;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(t,n){this.audioTracks=n.audioTracks,this.subtitleTracks=n.subtitleTracks}onError(t,n){const{errorAction:r}=n;if(r?.action===ja.SendAlternateToPenaltyBox&&r.flags===nc.MoveAllAlternatesMatchingHost){const i=this.levels;let a=this._pathwayPriority,s=this.pathwayId;if(n.context){const{groupId:l,pathwayId:c,type:d}=n.context;l&&i?s=this.getPathwayForGroupId(l,d,s):c&&(s=c)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!a&&i&&(a=this.pathways()),a&&a.length>1&&(this.updatePathwayPriority(a),r.resolved=this.pathwayId!==s),n.details===zt.BUFFER_APPEND_ERROR&&!n.fatal?r.resolved=!0:r.resolved||this.warn(`Could not resolve ${n.details} ("${n.error.message}") with content-steering for Pathway: ${s} levels: ${i&&i.length} priorities: ${Ao(a)} penalized: ${Ao(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let n=this.getLevelsForPathway(this.pathwayId);if(n.length===0){const r=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),n=this.getLevelsForPathway(r),this.pathwayId=r}return n.length!==t.length&&this.log(`Found ${n.length}/${t.length} levels in Pathway "${this.pathwayId}"`),n}getLevelsForPathway(t){return this.levels===null?[]:this.levels.filter(n=>t===n.pathwayId)}updatePathwayPriority(t){this._pathwayPriority=t;let n;const r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach(a=>{i-r[a]>L7t&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,A2e(n),this.hls.trigger(Pe.LEVELS_UPDATED,{levels:n});const d=this.hls.levels[l];c&&d&&this.levels&&(d.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&d.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${d.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(t,n,r){const i=this.getLevelsForPathway(r).concat(this.levels||[]);for(let a=0;a{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":c}=a;if(n.some(h=>h.pathwayId===s))return;const d=this.getLevelsForPathway(l).map(h=>{const p=new ls(h.attrs);p["PATHWAY-ID"]=s;const v=p.AUDIO&&`${p.AUDIO}_clone_${s}`,g=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;v&&(r[p.AUDIO]=v,p.AUDIO=v),g&&(i[p.SUBTITLES]=g,p.SUBTITLES=g);const y=u4e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new I_({attrs:p,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:y,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let k=1;k{this.log(`Loaded steering manifest: "${i}"`);const y=h.data;if(y?.VERSION!==1){this.log(`Steering VERSION ${y.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=y.TTL;const{"RELOAD-URI":S,"PATHWAY-CLONES":k,"PATHWAY-PRIORITY":w}=y;if(S)try{this.uri=new self.URL(S,i).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${S}`);return}this.scheduleRefresh(this.uri||v.url),k&&this.clonePathways(k);const x={steeringManifest:y,url:i.toString()};this.hls.trigger(Pe.STEERING_MANIFEST_LOADED,x),w&&this.updatePathwayPriority(w)},onError:(h,p,v,g)=>{if(this.log(`Error loading steering manifest: ${h.code} ${h.text} (${p.url})`),this.stopLoad(),h.code===410){this.enabled=!1,this.log(`Steering manifest ${p.url} no longer available`);return}let y=this.timeToLoad*1e3;if(h.code===429){const S=this.loader;if(typeof S?.getResponseHeader=="function"){const k=S.getResponseHeader("Retry-After");k&&(y=parseFloat(k)*1e3)}this.log(`Steering manifest ${p.url} rate limited`);return}this.scheduleRefresh(this.uri||p.url,y)},onTimeout:(h,p,v)=>{this.log(`Timeout loading steering manifest (${p.url})`),this.scheduleRefresh(this.uri||p.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(a,c,d)}scheduleRefresh(t,n=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const i=(r=this.hls)==null?void 0:r.media;if(i&&!i.ended){this.loadSteeringManifest(t);return}this.scheduleRefresh(t,this.timeToLoad*1e3)},n)}}function Zue(e,t,n,r){e&&Object.keys(t).forEach(i=>{const a=e.filter(s=>s.groupId===i).map(s=>{const l=bo({},s);return l.details=void 0,l.attrs=new ls(l.attrs),l.url=l.attrs.URI=u4e(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),l.groupId=l.attrs["GROUP-ID"]=t[i],l.attrs["PATHWAY-ID"]=r,l});e.push(...a)})}function u4e(e,t,n,r){const{HOST:i,PARAMS:a,[n]:s}=r;let l;t&&(l=s?.[t],l&&(e=l));const c=new self.URL(e);return i&&!l&&(c.host=i),a&&Object.keys(a).sort().forEach(d=>{d&&c.searchParams.set(d,a[d])}),c.href}class wy extends od{constructor(t){super("eme",t.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=wy.CDMCleanupPromise?[wy.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=n=>{const{initDataType:r,initData:i}=n,a=`"${n.type}" event: init data type: "${r}"`;if(this.debug(a),i!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=z4(this.config));const l=s.map(zF).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=s8(s);if(r!=="sinf"||l!==ds.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${l}`);return}let c;try{const g=la(new Uint8Array(i)),y=VG(JSON.parse(g).sinf),S=r2e(y);if(!S)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(S.subarray(8,24))}catch(g){this.warn(`${a} Failed to parse sinf: ${g}`);return}const d=Ul(c),{keyIdToKeySessionPromise:h,mediaKeySessions:p}=this;let v=h[d];for(let g=0;gthis.generateRequestWithPreferredKeySession(y,r,i,"encrypted-event-key-match")),v.catch(w=>this.handleError(w));break}}v||this.handleError(new Error(`Key ID ${d} not encountered in playlist. Key-system sessions ${p.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=n=>{this.log(`"${n.type}" event`)},this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Pe.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Pe.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Pe.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Pe.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,i=n?.[t];if(i)return i.licenseUrl;if(t===ds.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(t){const n=this.getLicenseServerUrl(t);if(n===void 0)throw new Error(`no license server URL configured for key-system "${t}"`);return n}getServerCertificateUrl(t){const{drmSystems:n}=this.config,r=n?.[t];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const n=this.hls.levels,r=(s,l,c)=>!!s&&c.indexOf(s)===l,i=n.map(s=>s.audioCodec).filter(r),a=n.map(s=>s.videoCodec).filter(r);return i.length+a.length===0&&a.push("avc1.42e01e"),new Promise((s,l)=>{const c=d=>{const h=d.shift();this.getMediaKeysPromise(h,i,a).then(p=>s({keySystem:h,mediaKeys:p})).catch(p=>{d.length?c(d):p instanceof Qu?l(p):l(new Qu({type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_ACCESS,error:p,fatal:!0},p.message))})};c(t)})}requestMediaKeySystemAccess(t,n){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${r}`;return _2e===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return r(t,n)}getMediaKeysPromise(t,n,r){var i;const a=dIt(t,n,r,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[t],l=(i=s)==null?void 0:i.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${t}" key-system access with config: ${Ao(a)}`),l=this.requestMediaKeySystemAccess(t,a);const c=s=this.keySystemAccessPromises[t]={keySystemAccess:l};return l.catch(d=>{this.log(`Failed to obtain access to key-system "${t}": ${d}`)}),l.then(d=>{this.log(`Access for key-system "${d.keySystem}" obtained`);const h=this.fetchServerCertificate(t);this.log(`Create media-keys for "${t}"`);const p=c.mediaKeys=d.createMediaKeys().then(v=>(this.log(`Media-keys created for "${t}"`),c.hasMediaKeys=!0,h.then(g=>g?this.setMediaKeysServerCertificate(v,t,g):v)));return p.catch(v=>{this.error(`Failed to create media-keys for "${t}"}: ${v}`)}),p})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${Ul(t.keyId||[])} keyUri: ${t.uri}`);const i=r.createSession(),a={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a}renewKeySession(t){const n=t.decryptdata;if(n.pssh){const r=this.createMediaKeySessionContext(t),i=Dx(n),a="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,a,n.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}updateKeySession(t,n){const r=t.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyId ${Ul(t.decryptdata.keyId||[])} + } (data length: ${n.byteLength})`),r.update(n)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(t=>({keySystem:t,hasMediaKeys:this.keySystemAccessPromises[t].hasMediaKeys})).filter(({hasMediaKeys:t})=>!!t).map(({keySystem:t})=>zF(t)).filter(t=>!!t)}getKeySystemAccess(t){return this.getKeySystemSelectionPromise(t).then(({keySystem:n,mediaKeys:r})=>this.attemptSetMediaKeys(n,r))}selectKeySystem(t){return new Promise((n,r)=>{this.getKeySystemSelectionPromise(t).then(({keySystem:i})=>{const a=zF(i);a?n(a):r(new Error(`Unable to find format for key-system "${i}"`))}).catch(r)})}selectKeySystemFormat(t){const n=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)),this.keyFormatPromise}getKeyFormatPromise(t){const n=z4(this.config),r=t.map(s8).filter(i=>!!i&&n.indexOf(i)!==-1);return this.selectKeySystem(r)}getKeyStatus(t){const{mediaKeySessions:n}=this;for(let r=0;r(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${a}`),this.attemptSetMediaKeys(c,d).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:d,decryptdata:n}))))).then(c=>{const d="cenc",h=n.pssh?n.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,d,h,"playlist-key")});return l.catch(c=>this.handleError(c,t.frag)),this.keyIdToKeySessionPromise[r]=l,l}return s.catch(l=>{if(l instanceof Qu){const c=fo({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const d=new Qu(c,l.message);this.handleError(d,t.frag)}}),s}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t,n){if(this.hls)if(t instanceof Qu){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${Ul(r.keyId||[])})`:""}`),this.hls.trigger(Pe.ERROR,t.data)}else this.error(t.message),this.hls.trigger(Pe.ERROR,{type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=Dx(t),r=this.keyIdToKeySessionPromise[n];if(!r){const i=s8(t.keyFormat),a=i?[i]:z4(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=z4(this.config)),t.length===0)throw new Qu({type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Ao({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}attemptSetMediaKeys(t,n){if(this.mediaKeys===n)return Promise.resolve();const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const i=Promise.all(r).then(()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(n)});return this.mediaKeys=n,this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${t}"`),r.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(a=>r.indexOf(a)===-1)})}generateRequestWithPreferredKeySession(t,n,r,i){var a;const s=(a=this.config.drmSystems)==null||(a=a[t.keySystem])==null?void 0:a.generateRequest;if(s)try{const y=s.call(this.hls,n,r,t);if(!y)throw new Error("Invalid response from configured generateRequest filter");n=y.initDataType,r=y.initData?y.initData:null,t.decryptdata.pssh=r?new Uint8Array(r):null}catch(y){if(this.warn(y.message),this.hls&&this.hls.config.debug)throw y}if(r===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(t);const l=Dx(t.decryptdata),c=t.decryptdata.uri;this.log(`Generating key-session request for "${i}" keyId: ${l} URI: ${c} (init data type: ${n} length: ${r.byteLength})`);const d=new UG,h=t._onmessage=y=>{const S=t.mediaKeysSession;if(!S){d.emit("error",new Error("invalid state"));return}const{messageType:k,message:w}=y;this.log(`"${k}" message event for session "${S.sessionId}" message size: ${w.byteLength}`),k==="license-request"||k==="license-renewal"?this.renewLicense(t,w).catch(x=>{d.eventNames().length?d.emit("error",x):this.handleError(x)}):k==="license-release"?t.keySystem===ds.FAIRPLAY&&this.updateKeySession(t,Xz("acknowledged")).then(()=>this.removeSession(t)).catch(x=>this.handleError(x)):this.warn(`unhandled media key message type "${k}"`)},p=(y,S)=>{S.keyStatus=y;let k;y.startsWith("usable")?d.emit("resolved"):y==="internal-error"||y==="output-restricted"||y==="output-downscaled"?k=Jue(y,S.decryptdata):y==="expired"?k=new Error(`key expired (keyId: ${l})`):y==="released"?k=new Error("key released"):y==="status-pending"||this.warn(`unhandled key status change "${y}" (keyId: ${l})`),k&&(d.eventNames().length?d.emit("error",k):this.handleError(k))},v=t._onkeystatuseschange=y=>{if(!t.mediaKeysSession){d.emit("error",new Error("invalid state"));return}const k=this.getKeyStatuses(t);if(!Object.keys(k).some(_=>k[_]!=="status-pending"))return;if(k[l]==="expired"){this.log(`Expired key ${Ao(k)} in key-session "${t.mediaKeysSession.sessionId}"`),this.renewKeySession(t);return}let x=k[l];if(x)p(x,t);else{var E;t.keyStatusTimeouts||(t.keyStatusTimeouts={}),(E=t.keyStatusTimeouts)[l]||(E[l]=self.setTimeout(()=>{if(!t.mediaKeysSession||!this.mediaKeys)return;const T=this.getKeyStatus(t.decryptdata);if(T&&T!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${t.mediaKeysSession.sessionId}". Using session key-status ${T} from other session.`),p(T,t);this.log(`key status for ${l} in key-session "${t.mediaKeysSession.sessionId}" timed out after 1000ms`),x="internal-error",p(x,t)},1e3)),this.log(`No status for keyId ${l} (${Ao(k)}).`)}};Kl(t.mediaKeysSession,"message",h),Kl(t.mediaKeysSession,"keystatuseschange",v);const g=new Promise((y,S)=>{d.on("error",S),d.on("resolved",y)});return t.mediaKeysSession.generateRequest(n,r).then(()=>{this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${c}`)}).catch(y=>{throw new Qu({type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_NO_SESSION,error:y,decryptdata:t.decryptdata,fatal:!1},`Error generating key-session request: ${y}`)}).then(()=>g).catch(y=>(d.removeAllListeners(),this.removeSession(t).then(()=>{throw y}))).then(()=>(d.removeAllListeners(),t))}getKeyStatuses(t){const n={};return t.mediaKeysSession.keyStatuses.forEach((r,i)=>{if(typeof i=="string"&&typeof r=="object"){const l=i;i=r,r=l}const a="buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i);t.keySystem===ds.PLAYREADY&&a.length===16&&y2e(a);const s=Ul(a);r==="internal-error"&&(this.bannedKeyIds[s]=r),this.log(`key status change "${r}" for keyStatuses keyId: ${s} key-session "${t.mediaKeysSession.sessionId}"`),n[s]=r}),n}fetchServerCertificate(t){const n=this.config,r=n.loader,i=new r(n),a=this.getServerCertificateUrl(t);return a?(this.log(`Fetching server certificate for "${t}"`),new Promise((s,l)=>{const c={responseType:"arraybuffer",url:a},d=n.certLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(v,g,y,S)=>{s(v.data)},onError:(v,g,y,S)=>{l(new Qu({type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:fo({url:c.url,data:void 0},v)},`"${t}" certificate request failed (${a}). Status: ${v.code} (${v.text})`))},onTimeout:(v,g,y)=>{l(new Qu({type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:{url:c.url,data:void 0}},`"${t}" certificate request timed out (${a})`))},onAbort:(v,g,y)=>{l(new Error("aborted"))}};i.load(c,h,p)})):Promise.resolve()}setMediaKeysServerCertificate(t,n,r){return new Promise((i,a)=>{t.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r.byteLength}) on "${n}"`),i(t)}).catch(s=>{a(new Qu({type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(t,n){return this.requestLicense(t,new Uint8Array(n)).then(r=>this.updateKeySession(t,new Uint8Array(r)).catch(i=>{throw new Qu({type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:t.decryptdata,error:i,fatal:!1},i.message)}))}unpackPlayReadyKeyMessage(t,n){const r=String.fromCharCode.apply(null,new Uint16Array(n.buffer));if(!r.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),n;const i=new DOMParser().parseFromString(r,"application/xml"),a=i.querySelectorAll("HttpHeader");if(a.length>0){let h;for(let p=0,v=a.length;p in key message");return Xz(atob(d))}setupLicenseXHR(t,n,r,i){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return a.call(this.hls,t,n,r,i)}).catch(s=>{if(!r.decryptdata)throw s;return t.open("POST",n,!0),a.call(this.hls,t,n,r,i)}).then(s=>(t.readyState||t.open("POST",n,!0),{xhr:t,licenseChallenge:s||i})):(t.open("POST",n,!0),Promise.resolve({xhr:t,licenseChallenge:i}))}requestLicense(t,n){const r=this.config.keyLoadPolicy.default;return new Promise((i,a)=>{const s=this.getLicenseServerUrlOrThrow(t.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let c=l.response;this.log(`License received ${c instanceof ArrayBuffer?c.byteLength:c}`);const d=this.config.licenseResponseCallback;if(d)try{c=d.call(this.hls,l,s,t)}catch(h){this.error(h)}i(c)}else{const c=r.errorRetry,d=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>d||l.status>=400&&l.status<500)a(new Qu({type:cr.KEY_SYSTEM_ERROR,details:zt.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:t.decryptdata,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const h=d-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${h} attempts left`),this.requestLicense(t,n).then(i,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=l,this.setupLicenseXHR(l,s,t,n).then(({xhr:c,licenseChallenge:d})=>{t.keySystem==ds.PLAYREADY&&(d=this.unpackPlayReadyKeyMessage(c,d)),c.send(d)}).catch(a)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,Kl(r,"encrypted",this.onMediaEncrypted),Kl(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(Tu(t,"encrypted",this.onMediaEncrypted),Tu(t,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var t;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const n=this.media,r=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Em.clearKeyUriToKeyIdMap();const i=r.length;wy.CDMCleanupPromise=Promise.all(r.map(a=>this.removeSession(a)).concat((n==null||(t=n.setMediaKeys(null))==null?void 0:t.catch(a=>{this.log(`Could not clear media keys: ${a}`),this.hls&&this.hls.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${a}`)})}))||Promise.resolve())).catch(a=>{this.log(`Could not close sessions and clear media keys: ${a}`),this.hls&&this.hls.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${a}`)})}).then(()=>{i&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this.keyFormatPromise=null,this.bannedKeyIds={}}onManifestLoaded(t,{sessionKeys:n}){if(!(!n||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=n.reduce((i,a)=>(i.indexOf(a.keyFormat)===-1&&i.push(a.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(t){const{mediaKeysSession:n,licenseXhr:r,decryptdata:i}=t;if(n){this.log(`Remove licenses and keys and close session "${n.sessionId}" keyId: ${Ul(i?.keyId||[])}`),t._onmessage&&(n.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(n.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const a=this.mediaKeySessions.indexOf(t);a>-1&&this.mediaKeySessions.splice(a,1);const{keyStatusTimeouts:s}=t;s&&Object.keys(s).forEach(d=>self.clearTimeout(s[d]));const{drmSystemOptions:l}=this.config;return(hIt(l)?new Promise((d,h)=>{self.setTimeout(()=>h(new Error("MediaKeySession.remove() timeout")),8e3),n.remove().then(d).catch(h)}):Promise.resolve()).catch(d=>{this.log(`Could not remove session: ${d}`),this.hls&&this.hls.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${d}`)})}).then(()=>n.close()).catch(d=>{this.log(`Could not close session: ${d}`),this.hls&&this.hls.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${d}`)})})}return Promise.resolve()}}wy.CDMCleanupPromise=void 0;function Dx(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return Ul(e.keyId)}function P7t(e,t){if(e.keyId&&t.mediaKeysSession.keyStatuses.has(e.keyId))return t.mediaKeysSession.keyStatuses.get(e.keyId);if(e.matches(t.decryptdata))return t.keyStatus}class Qu extends Error{constructor(t,n){super(n),this.data=void 0,t.error||(t.error=new Error(n)),this.data=t,t.err=t.error}}function Jue(e,t){const n=e==="output-restricted",r=n?zt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:zt.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Qu({type:cr.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class R7t{constructor(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,n){const r=this.hls.config;if(r.capLevelOnFPSDrop){const i=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(t,n,r){const i=performance.now();if(n){if(this.lastTime){const a=i-this.lastTime,s=r-this.lastDroppedFrames,l=n-this.lastDecodedFrames,c=1e3*s/a,d=this.hls;if(d.trigger(Pe.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:r}),c>0&&s>d.config.fpsDroppedMonitoringThreshold*l){let h=d.currentLevel;d.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=h)&&(h=h-1,d.trigger(Pe.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:d.currentLevel}),d.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=n}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const n=t.getVideoPlaybackQuality();this.checkFPS(t,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}}function c4e(e,t){let n;try{n=new Event("addtrack")}catch{n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function d4e(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(r){po.debug(`[texttrack-utils]: ${r}`);try{const i=new self.TextTrackCue(t.startTime,t.endTime,t.text);i.id=t.id,e.addCue(i)}catch(i){po.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}n==="disabled"&&(e.mode=n)}function Q1(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues)for(let r=e.cues.length;r--;)t&&e.cues[r].removeEventListener("enter",t),e.removeCue(e.cues[r]);n==="disabled"&&(e.mode=n)}function oU(e,t,n,r){const i=e.mode;if(i==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=O7t(e.cues,t,n);for(let s=0;se[n].endTime)return-1;let r=0,i=n,a;for(;r<=i;)if(a=Math.floor((i+r)/2),te[a].startTime&&r-1)for(let a=i,s=e.length;a=t&&l.endTime<=n)r.push(l);else if(l.startTime>n)return r}return r}function c8(e){const t=[];for(let n=0;nthis.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let n=null;const r=c8(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Pe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(Pe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Pe.ERROR,this.onError,this)}onMediaAttached(t,n){this.media=n.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(t,n){const r=this.media;if(!r)return;const i=!!n.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,i)return;c8(r.textTracks).forEach(s=>{Q1(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.subtitleTracks}onSubtitleTrackLoaded(t,n){const{id:r,groupId:i,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==i){this.warn(`Subtitle track with id:${r} and group:${i} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Subtitle track ${r} "${s.name}" lang:${s.lang} group:${i} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.subtitleGroups||null,i=this.groupIds;let a=this.currentTrack;if(!r||i?.length!==r?.length||r!=null&&r.some(s=>i?.indexOf(s)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(h=>!r||r.indexOf(h.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(h=>h.default)&&(this.selectDefaultTrack=!1),s.forEach((h,p)=>{h.id=p});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!a&&l){this.selectDefaultTrack=!1;const h=vf(l,s);if(h>-1)a=s[h];else{const p=vf(l,this.tracks);a=this.tracks[p]}}let c=this.findTrackId(a);c===-1&&a&&(c=this.findTrackId(null));const d={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r?.join(",")}" group-id`),this.hls.trigger(Pe.SUBTITLE_TRACKS_UPDATED,d),c!==-1&&this.trackId===-1&&this.setSubtitleTrack(c)}}findTrackId(t){const n=this.tracksInGroup,r=this.selectDefaultTrack;for(let i=0;i-1){const a=this.tracksInGroup[i];return this.setSubtitleTrack(i),a}else{if(r)return null;{const a=vf(t,n);if(a>-1)return n[a]}}}}return null}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=t.id,i=t.groupId,a=this.getUrlWithDirectives(t.url,n),s=t.details,l=s?.age;this.log(`Loading subtitle ${r} "${t.name}" lang:${t.lang} group:${i}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${a}`),this.hls.trigger(Pe.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:i,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=c8(t.textTracks),r=this.currentTrack;let i;if(r&&(i=n.filter(a=>tU(r,a))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(n).forEach(a=>{a.mode!=="disabled"&&a!==i&&(a.mode="disabled")}),i){const a=this.subtitleDisplay?"showing":"hidden";i.mode!==a&&(i.mode=a)}}setSubtitleTrack(t){const n=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=t;return}if(t<-1||t>=n.length||!Bn(t)){this.warn(`Invalid subtitle track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[t]||null;if(this.trackId=t,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(Pe.SUBTITLE_TRACK_SWITCH,{id:t});return}const a=!!i.details&&!i.details.live;if(t===this.trackId&&i===r&&a)return;this.log(`Switching to subtitle-track ${t}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:s,groupId:l="",name:c,type:d,url:h}=i;this.hls.trigger(Pe.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:d,url:h});const p=this.switchParams(i.url,r?.details,i.details);this.loadPlaylist(p)}}function B7t(){try{return crypto.randomUUID()}catch{try{const t=URL.createObjectURL(new Blob),n=t.toString();return URL.revokeObjectURL(t),n.slice(n.lastIndexOf("/")+1)}catch{let n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const a=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(i=="x"?a:a&3|8).toString(16)})}}}function Ob(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const xy=.025;let GT=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function N7t(e,t,n){return`${e.identifier}-${n+1}-${Ob(t)}`}class F7t{constructor(t,n){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=n,this.dateRange=t,this.setDateRange(t)}setDateRange(t){this.dateRange=t,this.resumeOffset=t.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=t.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=t.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=t.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var t;this.appendInPlaceStarted=!1,(t=this.assetListLoader)==null||t.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(t){var n;if(t>0&&t>=this.assetList.length)return!0;const r=this.playoutLimit;return t<=0||isNaN(r)?!1:r===0?!0:(((n=this.assetList[t])==null?void 0:n.startOffset)||0)>r}findAssetIndex(t){return this.assetList.indexOf(t)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const t=this.dateRange.startTime;if(this.snapOptions.out){const n=this.dateRange.tagAnchor;if(n)return ZF(t,n)}return t}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const t=this.dateRange.tagAnchor;if(t){const n=this.dateRange.startTime,r=ZF(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=Bn(t)?t:this.duration;return this.cumulativeDuration+n}get resumeTime(){const t=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const n=this.resumeAnchor;if(n)return ZF(t,n)}return t}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)0||this.assetListResponse!==null}toString(){return j7t(this)}}function ZF(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function U1(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class V7t{constructor(t,n,r,i){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(Pe.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=i;const s=()=>{this.hasDetails=!0};a.once(Pe.LEVEL_LOADED,s),a.once(Pe.AUDIO_TRACK_LOADED,s),a.once(Pe.SUBTITLE_TRACK_LOADED,s),a.on(Pe.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(Pe.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(Pe.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const t=this.hls;if(t)if(t.url)t.levels.length&&!t.started&&t.startLoad(-1,!0);else{let n=this.assetItem.uri;try{n=f4e(n,t.config.primarySessionId||"").href}catch{}t.loadSource(n)}}bufferedInPlaceToEnd(t){var n;if(!this.appendInPlace)return!1;if((n=this.hls)!=null&&n.bufferedToEnd)return!0;if(!t)return!1;const r=Math.min(this._bufferedEosTime||1/0,this.duration),i=this.timelineOffset,a=Vr.bufferInfo(t,i,0);return this.getAssetTime(a.end)>=r-.02}reachedPlayout(t){const r=this.interstitial.playoutLimit;return this.startOffset+t>=r}get destroyed(){var t;return!((t=this.hls)!=null&&t.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var t;return((t=this.hls)==null?void 0:t.media)||null}get bufferedEnd(){const t=this.media||this.mediaAttached;if(!t)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const n=Vr.bufferInfo(t,t.currentTime,.001);return this.getAssetTime(n.end)}get currentTime(){const t=this.media||this.mediaAttached;return t?this.getAssetTime(t.currentTime):this._currentTime||0}get duration(){const t=this.assetItem.duration;if(!t)return 0;const n=this.interstitial.playoutLimit;if(n){const r=n-this.startOffset;if(r>0&&r1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=t}}}getAssetTime(t){const n=this.timelineOffset,r=this.duration;return Math.min(Math.max(0,t-n),r)}removeMediaListeners(){const t=this.mediaAttached;t&&(this._currentTime=t.currentTime,this.bufferSnapShot(),t.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var t;(t=this.hls)!=null&&t.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(t){var n;this.loadSource(),(n=this.hls)==null||n.attachMedia(t)}detachMedia(){var t;this.removeMediaListeners(),this.mediaAttached=null,(t=this.hls)==null||t.detachMedia()}resumeBuffering(){var t;(t=this.hls)==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.hls)==null||t.pauseBuffering()}transferMedia(){var t;return this.bufferSnapShot(),((t=this.hls)==null?void 0:t.transferMedia())||null}resetDetails(){const t=this.hls;if(t&&this.hasDetails){t.stopLoad();const n=r=>delete r.details;t.levels.forEach(n),t.allAudioTracks.forEach(n),t.allSubtitleTracks.forEach(n),this.hasDetails=!1}}on(t,n,r){var i;(i=this.hls)==null||i.on(t,n)}once(t,n,r){var i;(i=this.hls)==null||i.once(t,n)}off(t,n,r){var i;(i=this.hls)==null||i.off(t,n)}toString(){var t;return`HlsAssetPlayer: ${U1(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Que=.033;class z7t extends od{constructor(t,n){super("interstitials-sched",n),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=t}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(t=>t.reset()),this.events=this.items=null}resetErrorsInRange(t,n){return this.events?this.events.reduce((r,i)=>t<=i.startOffset&&n>i.startOffset?(delete i.error,r+1):r,0):0}get duration(){const t=this.items;return t?t[t.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(t){return t&&this.eventMap[t]||null}hasEvent(t){return t in this.eventMap}findItemIndex(t,n){if(t.event)return this.findEventIndex(t.event.identifier);let r=-1;t.nextEvent?r=this.findEventIndex(t.nextEvent.identifier)-1:t.previousEvent&&(r=this.findEventIndex(t.previousEvent.identifier)+1);const i=this.items;if(i)for(i[r]||(n===void 0&&(n=t.start),r=this.findItemIndexAtTime(n));r>=0&&(a=i[r])!=null&&a.event;){var a;r--}return r}findItemIndexAtTime(t,n){const r=this.items;if(r)for(let i=0;ia.start&&t1)for(let a=0;al&&(n!l.includes(d.identifier)):[];s.length&&s.sort((d,h)=>{const p=d.cue.pre,v=d.cue.post,g=h.cue.pre,y=h.cue.post;if(p&&!g)return-1;if(g&&!p||v&&!y)return 1;if(y&&!v)return-1;if(!p&&!g&&!v&&!y){const S=d.startTime,k=h.startTime;if(S!==k)return S-k}return d.dateRange.tagOrder-h.dateRange.tagOrder}),this.events=s,c.forEach(d=>{this.removeEvent(d)}),this.updateSchedule(t,c)}updateSchedule(t,n=[],r=!1){const i=this.events||[];if(i.length||n.length||this.length<2){const a=this.items,s=this.parseSchedule(i,t);(r||n.length||a?.length!==s.length||s.some((c,d)=>Math.abs(c.playout.start-a[d].playout.start)>.005||Math.abs(c.playout.end-a[d].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(n,a))}}parseDateRanges(t,n,r){const i=[],a=Object.keys(t);for(let s=0;s!c.error&&!(c.cue.once&&c.hasPlayed)),t.length){this.resolveOffsets(t,n);let c=0,d=0;if(t.forEach((h,p)=>{const v=h.cue.pre,g=h.cue.post,y=t[p-1]||null,S=h.appendInPlace,k=g?a:h.startOffset,w=h.duration,x=h.timelineOccupancy===GT.Range?w:0,E=h.resumptionOffset,_=y?.startTime===k,T=k+h.cumulativeDuration;let D=S?T+w:k+E;if(v||!g&&k<=0){const M=d;d+=x,h.timelineStart=T;const $=s;s+=w,r.push({event:h,start:T,end:D,playout:{start:$,end:s},integrated:{start:M,end:d}})}else if(k<=a){if(!_){const L=k-c;if(L>Que){const B=c,j=d;d+=L;const H=s;s+=L;const U={previousEvent:t[p-1]||null,nextEvent:h,start:B,end:B+L,playout:{start:H,end:s},integrated:{start:j,end:d}};r.push(U)}else L>0&&y&&(y.cumulativeDuration+=L,r[r.length-1].end=k)}g&&(D=T),h.timelineStart=T;const M=d;d+=x;const $=s;s+=w,r.push({event:h,start:T,end:D,playout:{start:$,end:s},integrated:{start:M,end:d}})}else return;const P=h.resumeTime;g||P>a?c=a:c=P}),c{const d=l.cue.pre,h=l.cue.post,p=d?0:h?i:l.startTime;this.updateAssetDurations(l),s===p?l.cumulativeDuration=a:(a=0,s=p),!h&&l.snapOptions.in&&(l.resumeAnchor=Hm(null,r.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,n)||(l.appendInPlace=!1)),!l.appendInPlace&&c+1xy?(this.log(`"${t.identifier}" resumption ${r} not aligned with estimated timeline end ${i}`),!1):!Object.keys(n).some(s=>{const l=n[s].details,c=l.edge;if(r>=c)return this.log(`"${t.identifier}" resumption ${r} past ${s} playlist end ${c}`),!1;const d=Hm(null,l.fragments,r);if(!d)return this.log(`"${t.identifier}" resumption ${r} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const h=s==="audio"?.175:0;return Math.abs(d.start-r){const k=v.data,w=k?.ASSETS;if(!Array.isArray(w)){const x=this.assignAssetListError(t,zt.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),y.url,g,S);this.hls.trigger(Pe.ERROR,x);return}t.assetListResponse=k,this.hls.trigger(Pe.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(v,g,y,S)=>{const k=this.assignAssetListError(t,zt.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${v.code} ${v.text} (${g.url})`),g.url,S,y);this.hls.trigger(Pe.ERROR,k)},onTimeout:(v,g,y)=>{const S=this.assignAssetListError(t,zt.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,v,y);this.hls.trigger(Pe.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(Pe.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,i,a,s){return t.error=r,{type:cr.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:i,error:r,networkDetails:s,stats:a}}}function ece(e){e?.play().catch(()=>{})}function Px(e,t){return`[${e}] Advancing timeline position to ${t}`}class H7t extends od{constructor(t,n){super("interstitials",t.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled||!this.schedule)return;const i=r-this.timelinePos;if(Math.abs(i)<1/7056e5)return;const s=i<=-.01;this.timelinePos=r,this.bufferedPos=r;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(r,r-i)&&this.updateSchedule(!0),this.checkBuffer(),s&&r=l.end){var c;const g=this.findItemIndex(l);let y=this.schedule.findItemIndexAtTime(r);if(y===-1&&(y=g+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${r} (resolving from ${g} to ${y})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&y>g){const S=this.schedule.findJumpRestrictedIndex(g+1,y);if(S>g){this.setSchedulePosition(S);return}}this.setSchedulePosition(y);return}const d=this.playingAsset;if(!d){if(this.playingLastItem&&this.isInterstitial(l)){const g=l.event.assetList[0];g&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,g))}return}const h=d.timelineStart,p=d.duration||0;if(s&&r=h+p){var v;(v=l.event)!=null&&v.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,d)}},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const i=this.playingItem;if(!i||this.playingLastItem)return;if(r>=i.end){this.timelinePos=i.end;const l=this.findItemIndex(i);this.setSchedulePosition(l+1)}const a=this.playingAsset;if(!a)return;const s=a.timelineStart+(a.duration||0);r>=s&&this.setScheduleToAssetAtTime(r,a)},this.onScheduleUpdate=(r,i)=>{const a=this.schedule;if(!a)return;const s=this.playingItem,l=a.events||[],c=a.items||[],d=a.durations,h=r.map(S=>S.identifier),p=!!(l.length||h.length);(p||i)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l} +Schedule: ${c.map(S=>pd(S))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let v=null,g=null;s&&(v=this.updateItem(s,this.timelinePos),this.itemsMatch(s,v)?this.playingItem=v:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const y=this.bufferingItem;if(y&&(g=this.updateItem(y,this.bufferedPos),this.itemsMatch(y,g)?this.bufferingItem=g:y.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(y.event,null))),r.forEach(S=>{S.assetList.forEach(k=>{this.clearAssetPlayer(k.identifier,null)})}),this.playerQueue.forEach(S=>{if(S.interstitial.appendInPlace){const k=S.assetItem.timelineStart,w=S.timelineOffset-k;if(w)try{S.timelineOffset=k}catch(x){Math.abs(w)>xy&&this.warn(`${x} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||i){if(this.hls.trigger(Pe.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:d,removedIds:h}),this.isInterstitial(s)&&h.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}s&&this.trimInPlace(v,s),y&&g!==v&&this.trimInPlace(g,y),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new U7t(t),this.schedule=new z7t(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Pe.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(Pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Pe.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(Pe.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(Pe.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(Pe.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Pe.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(Pe.MEDIA_ENDED,this.onMediaEnded,this),t.on(Pe.ERROR,this.onError,this),t.on(Pe.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Pe.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(Pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Pe.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(Pe.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(Pe.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(Pe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Pe.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Pe.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(Pe.MEDIA_ENDED,this.onMediaEnded,this),t.off(Pe.ERROR,this.onError,this),t.off(Pe.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var t;(t=this.getBufferingPlayer())==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.getBufferingPlayer())==null||t.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const t=this.primaryMedia||this.media;t&&this.removeMediaListeners(t)}removeMediaListeners(t){Tu(t,"play",this.onPlay),Tu(t,"pause",this.onPause),Tu(t,"seeking",this.onSeeking),Tu(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;Kl(r,"seeking",this.onSeeking),Kl(r,"timeupdate",this.onTimeupdate),Kl(r,"play",this.onPlay),Kl(r,"pause",this.onPause)}onMediaAttached(t,n){const r=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!i){this.clearScheduleState();const a=this.findItemIndex(r);this.setSchedulePosition(a)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(t,n){const r=!!n.transferMedia,i=this.media;if(this.media=null,!r&&(i&&this.removeMediaListeners(i),this.detachedData)){const a=this.getBufferingPlayer();a&&(this.log(`Removing schedule state for detachedData and ${a}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,a.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const t=this,n=()=>t.bufferingItem||t.waitingItem,r=p=>p&&t.getAssetPlayer(p.identifier),i=(p,v,g,y,S)=>{if(p){let k=p[v].start;const w=p.event;if(w){if(v==="playout"||w.timelineOccupancy!==GT.Point){const x=r(g);x?.interstitial===w&&(k+=x.assetItem.startOffset+x[S])}}else{const x=y==="bufferedPos"?s():t[y];k+=x-p.start}return k}return 0},a=(p,v)=>{var g;if(p!==0&&v!=="primary"&&(g=t.schedule)!=null&&g.length){var y;const S=t.schedule.findItemIndexAtTime(p),k=(y=t.schedule.items)==null?void 0:y[S];if(k){const w=k[v].start-k.start;return p+w}}return p},s=()=>{const p=t.bufferedPos;return p===Number.MAX_VALUE?l("primary"):Math.max(p,0)},l=p=>{var v,g;return(v=t.primaryDetails)!=null&&v.live?t.primaryDetails.edge:((g=t.schedule)==null?void 0:g.durations[p])||0},c=(p,v)=>{var g,y;const S=t.effectivePlayingItem;if(S!=null&&(g=S.event)!=null&&g.restrictions.skip||!t.schedule)return;t.log(`seek to ${p} "${v}"`);const k=t.effectivePlayingItem,w=t.schedule.findItemIndexAtTime(p,v),x=(y=t.schedule.items)==null?void 0:y[w],E=t.getBufferingPlayer(),_=E?.interstitial,T=_?.appendInPlace,D=k&&t.itemsMatch(k,x);if(k&&(T||D)){const P=r(t.playingAsset),M=P?.media||t.primaryMedia;if(M){const $=v==="primary"?M.currentTime:i(k,v,t.playingAsset,"timelinePos","currentTime"),L=p-$,B=(T?$:M.currentTime)+L;if(B>=0&&(!P||T||B<=P.duration)){M.currentTime=B;return}}}if(x){let P=p;if(v!=="primary"){const $=x[v].start,L=p-$;P=x.start+L}const M=!t.isInterstitial(x);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(M||x.event.appendInPlace)){const $=t.media||(T?E?.media:null);$&&($.currentTime=P)}else if(k){const $=t.findItemIndex(k);if(w>$){const B=t.schedule.findJumpRestrictedIndex($+1,w);if(B>$){t.setSchedulePosition(B);return}}let L=0;if(M)t.timelinePos=P,t.checkBuffer();else{const B=x.event.assetList,j=p-(x[v]||x).start;for(let H=B.length;H--;){const U=B[H];if(U.duration&&j>=U.startOffset&&j{const p=t.effectivePlayingItem;if(t.isInterstitial(p))return p;const v=n();return t.isInterstitial(v)?v:null},h={get bufferedEnd(){const p=n(),v=t.bufferingItem;if(v&&v===p){var g;return i(v,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-v.playout.start||((g=t.bufferingAsset)==null?void 0:g.startOffset)||0}return 0},get currentTime(){const p=d(),v=t.effectivePlayingItem;return v&&v===p?i(v,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-v.playout.start:0},set currentTime(p){const v=d(),g=t.effectivePlayingItem;g&&g===v&&c(p+g.playout.start,"playout")},get duration(){const p=d();return p?p.playout.end-p.playout.start:0},get assetPlayers(){var p;const v=(p=d())==null?void 0:p.event.assetList;return v?v.map(g=>t.getAssetPlayer(g.identifier)):[]},get playingIndex(){var p;const v=(p=d())==null?void 0:p.event;return v&&t.effectivePlayingAsset?v.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return d()}};return this.manager={get events(){var p;return((p=t.schedule)==null||(p=p.events)==null?void 0:p.slice(0))||[]},get schedule(){var p;return((p=t.schedule)==null||(p=p.items)==null?void 0:p.slice(0))||[]},get interstitialPlayer(){return d()?h:null},get playerQueue(){return t.playerQueue.slice(0)},get bufferingAsset(){return t.bufferingAsset},get bufferingItem(){return n()},get bufferingIndex(){const p=n();return t.findItemIndex(p)},get playingAsset(){return t.effectivePlayingAsset},get playingItem(){return t.effectivePlayingItem},get playingIndex(){const p=t.effectivePlayingItem;return t.findItemIndex(p)},primary:{get bufferedEnd(){return s()},get currentTime(){const p=t.timelinePos;return p>0?p:0},set currentTime(p){c(p,"primary")},get duration(){return l("primary")},get seekableStart(){var p;return((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(n(),"integrated",t.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(t.effectivePlayingItem,"integrated",t.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(p){c(p,"integrated")},get duration(){return l("integrated")},get seekableStart(){var p;return a(((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0,"integrated")}},skip:()=>{const p=t.effectivePlayingItem,v=p?.event;if(v&&!v.restrictions.skip){const g=t.findItemIndex(p);if(v.appendInPlace){const y=p.playout.start+p.event.duration;c(y+.001,"playout")}else t.advanceAfterAssetEnded(v,g,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var t;const n=this.playingItem,r=(t=this.schedule)==null?void 0:t.items;return!this.playbackStarted||!n||!r?!1:this.findItemIndex(n)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(t=this.bufferingItem)!=null&&(t=t.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const a=(n=i)==null?void 0:n.currentTime;if(!(a===void 0||!Bn(a)))return a}get primaryMedia(){var t;return this.media||((t=this.detachedData)==null?void 0:t.media)||null}isInterstitial(t){return!!(t!=null&&t.event)}retreiveMediaSource(t,n){const r=this.getAssetPlayer(t);r&&this.transferMediaFromPlayer(r,n)}transferMediaFromPlayer(t,n){const r=t.interstitial.appendInPlace,i=t.media;if(r&&i===this.primaryMedia){if(this.bufferingAsset=null,(!n||this.isInterstitial(n)&&!n.event.appendInPlace)&&n&&i){this.detachedData={media:i};return}const a=t.transferMedia();this.log(`transfer MediaSource from ${t} ${Ao(a)}`),this.detachedData=a}else n&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(t,n){var r,i;if(t.media===n)return;let a=null;const s=this.hls,l=t!==s,c=l&&t.interstitial.appendInPlace,d=(r=this.detachedData)==null?void 0:r.mediaSource;let h;if(s.media)c&&(a=s.transferMedia(),this.detachedData=a),h="Primary";else if(d){const y=this.getBufferingPlayer();y?(a=y.transferMedia(),h=`${y}`):h="detached MediaSource"}else h="detached media";if(!a){if(d)a=this.detachedData,this.log(`using detachedData: MediaSource ${Ao(a)}`);else if(!this.detachedData||s.media===n){const y=this.playerQueue;y.length>1&&y.forEach(S=>{if(l&&S.interstitial.appendInPlace!==c){const k=S.interstitial;this.clearInterstitial(S.interstitial,null),k.appendInPlace=!1,k.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${k}`)}}),this.hls.detachMedia(),this.detachedData={media:n}}}const p=a&&"mediaSource"in a&&((i=a.mediaSource)==null?void 0:i.readyState)!=="closed",v=p&&a?a:n;this.log(`${p?"transfering MediaSource":"attaching media"} to ${l?t:"Primary"} from ${h} (media.currentTime: ${n.currentTime})`);const g=this.schedule;if(v===a&&g){const y=l&&t.assetId===g.assetIdAtEnd;v.overrides={duration:g.duration,endOfStream:!l||y,cueRemoval:!l}}t.attachMedia(v)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const t=this.schedule,n=t?.events;if(!n||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const r=this.timelinePos,i=this.effectivePlayingItem;if(r===-1){const a=this.hls.startPosition;if(this.log(Px("checkStart",a)),this.timelinePos=a,n.length&&n[0].cue.pre){const s=t.findEventIndex(n[0].identifier);this.setSchedulePosition(s)}else if(a>=0||!this.primaryLive){const s=this.timelinePos=a>0?a:0,l=t.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(i&&!this.playingItem){const a=t.findItemIndex(i);this.setSchedulePosition(a)}}advanceAssetBuffering(t,n){const r=t.event,i=r.findAssetIndex(n),a=JF(r,i);if(!r.isAssetPastPlayoutLimit(a))this.bufferedToEvent(t,a);else if(this.schedule){var s;const l=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(t)+1];l&&this.bufferedToItem(l)}}advanceAfterAssetEnded(t,n,r){const i=JF(t,r);if(t.isAssetPastPlayoutLimit(i)){if(this.schedule){const a=this.schedule.items;if(a){const s=n+1,l=a.length;if(s>=l){this.setSchedulePosition(-1);return}const c=t.resumeTime;this.timelinePos=0?i[t]:null;this.log(`setSchedulePosition ${t}, ${n} (${a&&pd(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const h=s.event,p=this.playingAsset,v=p?.identifier,g=v?this.getAssetPlayer(v):null;if(g&&v&&(!this.eventItemsMatch(s,a)||n!==void 0&&v!==h.assetList[n].identifier)){var c;const y=h.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${y+1}/${h.assetList.length} ${U1(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(Pe.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:y,event:h,schedule:i.slice(0),scheduleIndex:t,player:g}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(h,this.findItemIndex(this.playingItem),y);return}this.retreiveMediaSource(v,a),g.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&g.detachMedia()}if(!this.eventItemsMatch(s,a)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${h} ${pd(s)}`),h.hasPlayed=!0,this.hls.trigger(Pe.INTERSTITIAL_ENDED,{event:h,schedule:i.slice(0),scheduleIndex:t}),h.cue.once)){var d;this.updateSchedule();const y=(d=this.schedule)==null?void 0:d.items;if(a&&y){const S=this.findItemIndex(a);this.advanceSchedule(S,y,n,s,l)}return}}this.advanceSchedule(t,i,n,s,l)}advanceSchedule(t,n,r,i,a){const s=this.schedule;if(!s)return;const l=n[t]||null,c=this.primaryMedia,d=this.playerQueue;if(d.length&&d.forEach(h=>{const p=h.interstitial,v=s.findEventIndex(p.identifier);(vt+1)&&this.clearInterstitial(p,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const h=l.event;if(r===void 0){r=s.findAssetIndex(h,this.timelinePos);const y=JF(h,r-1);if(h.isAssetPastPlayoutLimit(y)||h.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(h,t,r);return}r=y}const p=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let v=this.preloadAssets(h,r);if(this.eventItemsMatch(l,p||i)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${pd(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(Pe.INTERSTITIAL_STARTED,{event:h,schedule:n.slice(0),scheduleIndex:t})),!h.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${h}`);return}if(h.assetListLoader&&(h.assetListLoader.destroy(),h.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${h}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const g=h.assetList[r];if(!g){this.advanceAfterAssetEnded(h,t,r||0);return}if(v||(v=this.getAssetPlayer(g.identifier)),v===null||v.destroyed){const y=h.assetList.length;this.warn(`asset ${r+1}/${y} player destroyed ${h}`),v=this.createAssetPlayer(h,g,r),v.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(g))return;this.startAssetPlayer(v,r,n,t,c),this.shouldPlay&&ece(v.media)}else l?(this.resumePrimary(l,t,i),this.shouldPlay&&ece(this.hls.media)):a&&this.isInterstitial(i)&&(this.endedItem=null,this.playingItem=i,i.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var t;return(t=this.mediaSelection)==null?void 0:t.main.details}get primaryLive(){var t;return!!((t=this.primaryDetails)!=null&&t.live)}resumePrimary(t,n,r){var i,a;if(this.playingItem=t,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(t),this.log(`resuming ${pd(t)}`),!((i=this.detachedData)!=null&&i.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(Px("resumePrimary",l)),this.timelinePos=l),this.attachPrimary(l,t)}if(!r)return;const s=(a=this.schedule)==null?void 0:a.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${pd(t)}`),this.hls.trigger(Pe.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:n}),this.checkBuffer())}getPrimaryResumption(t,n){const r=t.start;if(this.primaryLive){const i=this.primaryDetails;if(n===0)return this.hls.startPosition;if(i&&(ri.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(t){const n=this.getAssetPlayer(t.identifier);return n!=null&&n.hls?n.hls.bufferedToEnd:Vr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=t.timelineStart+(t.duration||0)}attachPrimary(t,n,r){n?this.setBufferingItem(n):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const i=this.primaryMedia;if(!i)return;const a=this.hls;a.media?this.checkBuffer():(this.transferMediaTo(a,i),r&&this.startLoadingPrimaryAt(t,r)),r||(this.log(Px("attachPrimary",t)),this.timelinePos=t,this.startLoadingPrimaryAt(t,r))}startLoadingPrimaryAt(t,n){var r;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs((((r=i.mainForwardBufferInfo)==null?void 0:r.start)||i.media.currentTime)-t)>.5?i.startLoad(t,n):i.bufferingEnabled||i.resumeBuffering()}onManifestLoading(){var t;this.stopLoad(),(t=this.schedule)==null||t.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(Pe.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Pe.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(t,n){if(n.level===-1||!this.schedule)return;const r=this.hls.levels[n.level];if(!r.details)return;const i=fo(fo({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(t,n){const r=this.hls.audioTracks[n.id],i=this.mediaSelection;if(!i){this.altSelection=fo(fo({},this.altSelection),{},{audio:r});return}const a=fo(fo({},i),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],i=this.mediaSelection;if(!i){this.altSelection=fo(fo({},this.altSelection),{},{subtitles:r});return}const a=fo(fo({},i),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=uue(n);this.playerQueue.forEach(({hls:i})=>i&&(i.setAudioOption(n)||i.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=uue(n);this.playerQueue.forEach(({hls:i})=>i&&(i.setSubtitleOption(n)||n.id!==-1&&i.setSubtitleOption(r)))}onBufferCodecs(t,n){const r=n.tracks;r&&(this.requiredTracks=r)}onBufferAppended(t,n){this.checkBuffer()}onBufferFlushed(t,n){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const i=this.timelinePos;this.bufferedPos=i,this.checkBuffer()}}onBufferedToEnd(t){if(!this.schedule)return;const n=this.schedule.events;if(this.bufferedPos.25){t.event.assetList.forEach((a,s)=>{t.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(a.identifier,null)});const r=t.end+.25,i=Vr.bufferInfo(this.primaryMedia,r,0);(i.end>r||(i.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${pd(t)} (was ${pd(n)})`),this.attachPrimary(r,null,!0),this.flushFrontBuffer(r))}}itemsMatch(t,n){return!!n&&(t===n||t.event&&n.event&&this.eventItemsMatch(t,n)||!t.event&&!n.event&&this.findItemIndex(t)===this.findItemIndex(n))}eventItemsMatch(t,n){var r;return!!n&&(t===n||t.event.identifier===((r=n.event)==null?void 0:r.identifier))}findItemIndex(t,n){return t&&this.schedule?this.schedule.findItemIndex(t,n):-1}updateSchedule(t=!1){var n;const r=this.mediaSelection;r&&((n=this.schedule)==null||n.updateSchedule(r,[],t))}checkBuffer(t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r)return;const i=Vr.bufferInfo(this.primaryMedia,this.timelinePos,0);t&&(this.bufferedPos=this.timelinePos),t||(t=i.len<1),this.updateBufferedPos(i.end,r,t)}updateBufferedPos(t,n,r){const i=this.schedule,a=this.bufferingItem;if(this.bufferedPos>t||!i)return;if(n.length===1&&this.itemsMatch(n[0],a)){this.bufferedPos=t;return}const s=this.playingItem,l=this.findItemIndex(s);let c=i.findItemIndexAtTime(t);if(this.bufferedPos=a.end||(d=v.event)!=null&&d.appendInPlace&&t+.01>=v.start)&&(c=p),this.isInterstitial(a)){const g=a.event;if(p-l>1&&g.appendInPlace===!1||g.assetList.length===0&&g.assetListLoader)return}if(this.bufferedPos=t,c>h&&c>l)this.bufferedToItem(v);else{const g=this.primaryDetails;this.primaryLive&&g&&t>g.edge-g.targetduration&&v.start{const a=this.getAssetPlayer(i.identifier);return!(a!=null&&a.bufferedInPlaceToEnd(n))})}setBufferingItem(t){const n=this.bufferingItem,r=this.schedule;if(!this.itemsMatch(t,n)&&r){const{items:i,events:a}=r;if(!i||!a)return n;const s=this.isInterstitial(t),l=this.getBufferingPlayer();this.bufferingItem=t,this.bufferedPos=Math.max(t.start,Math.min(t.end,this.timelinePos));const c=l?l.remaining:n?n.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${pd(t)}`+(n?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const d=r.findAssetIndex(t.event,this.bufferedPos);t.event.assetList.forEach((h,p)=>{const v=this.getAssetPlayer(h.identifier);v&&(p===d&&v.loadSource(),v.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(d=>d.pauseBuffering());this.hls.trigger(Pe.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:a.slice(0),schedule:i.slice(0),bufferingIndex:this.findItemIndex(t),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==t&&(this.bufferingItem=t);return n}bufferedToItem(t,n=0){const r=this.setBufferingItem(t);if(!this.playbackDisabled){if(this.isInterstitial(t))this.bufferedToEvent(t,n);else if(r!==null){this.bufferingAsset=null;const i=this.detachedData;i?i.mediaSource?this.attachPrimary(t.start,t,!0):this.preloadPrimary(t):this.preloadPrimary(t)}}}preloadPrimary(t){const n=this.findItemIndex(t),r=this.getPrimaryResumption(t,n);this.startLoadingPrimaryAt(r)}bufferedToEvent(t,n){const r=t.event,i=r.assetList.length===0&&!r.assetListLoader,a=r.cue.once;if(i||!a){const s=this.preloadAssets(r,n);if(s!=null&&s.interstitial.appendInPlace){const l=this.primaryMedia;l&&this.bufferAssetPlayer(s,l)}}}preloadAssets(t,n){const r=t.assetUrl,i=t.assetList.length,a=i===0&&!t.assetListLoader,s=t.cue.once;if(a){const c=t.timelineStart;if(t.appendInPlace){var l;const v=this.playingItem;!this.isInterstitial(v)&&(v==null||(l=v.nextEvent)==null?void 0:l.identifier)===t.identifier&&this.flushFrontBuffer(c+.25)}let d,h=0;if(!this.playingItem&&this.primaryLive&&(h=this.hls.startPosition,h===-1&&(h=this.hls.liveSyncPosition||0)),h&&!(t.cue.pre||t.cue.post)){const v=h-c;v>0&&(d=Math.round(v*1e3)/1e3)}if(this.log(`Load interstitial asset ${n+1}/${r?1:i} ${t}${d?` live-start: ${h} start-offset: ${d}`:""}`),r)return this.createAsset(t,0,0,c,t.duration,r);const p=this.assetListLoader.loadAssetList(t,d);p&&(t.assetListLoader=p)}else if(!s&&i){for(let d=n;d{this.hls.trigger(Pe.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:i})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r1){const T=n.duration;T&&_{if(_.live){var T;const M=new Error(`Interstitials MUST be VOD assets ${t}`),$={fatal:!0,type:cr.OTHER_ERROR,details:zt.INTERSTITIAL_ASSET_ITEM_ERROR,error:M},L=((T=this.schedule)==null?void 0:T.findEventIndex(t.identifier))||-1;this.handleAssetItemError($,t,L,r,M.message);return}const D=_.edge-_.fragmentStart,P=n.duration;(S||P===null||D>P)&&(S=!1,this.log(`Interstitial asset "${p}" duration change ${P} > ${D}`),n.duration=D,this.updateSchedule())};y.on(Pe.LEVEL_UPDATED,(_,{details:T})=>k(T)),y.on(Pe.LEVEL_PTS_UPDATED,(_,{details:T})=>k(T)),y.on(Pe.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const w=(_,T)=>{const D=this.getAssetPlayer(p);if(D&&T.tracks){D.off(Pe.BUFFER_CODECS,w),D.tracks=T.tracks;const P=this.primaryMedia;this.bufferingAsset===D.assetItem&&P&&!D.media&&this.bufferAssetPlayer(D,P)}};y.on(Pe.BUFFER_CODECS,w);const x=()=>{var _;const T=this.getAssetPlayer(p);if(this.log(`buffered to end of asset ${T}`),!T||!this.schedule)return;const D=this.schedule.findEventIndex(t.identifier),P=(_=this.schedule.items)==null?void 0:_[D];this.isInterstitial(P)&&this.advanceAssetBuffering(P,n)};y.on(Pe.BUFFERED_TO_END,x);const E=_=>()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;this.shouldPlay=!0;const D=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,D,_)};return y.once(Pe.MEDIA_ENDED,E(r)),y.once(Pe.PLAYOUT_LIMIT_REACHED,E(1/0)),y.on(Pe.ERROR,(_,T)=>{if(!this.schedule)return;const D=this.getAssetPlayer(p);if(T.details===zt.BUFFER_STALLED_ERROR){if(D!=null&&D.appendInPlace){this.handleInPlaceStall(t);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(T,t,this.schedule.findEventIndex(t.identifier),r,`Asset player error ${T.error} ${t}`)}),y.on(Pe.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const T=new Error(`Asset player destroyed unexpectedly ${p}`),D={fatal:!0,type:cr.OTHER_ERROR,details:zt.INTERSTITIAL_ASSET_ITEM_ERROR,error:T};this.handleAssetItemError(D,t,this.schedule.findEventIndex(t.identifier),r,T.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${U1(n)}`),this.hls.trigger(Pe.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:n,assetListIndex:r,event:t,player:y}),y}clearInterstitial(t,n){t.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,n)}),t.reset()}resetAssetPlayer(t){const n=this.getAssetPlayerQueueIndex(t);if(n!==-1){this.log(`reset asset player "${t}" after error`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,null),r.resetDetails()}}clearAssetPlayer(t,n){const r=this.getAssetPlayerQueueIndex(t);if(r!==-1){const i=this.playerQueue[r];this.log(`clear ${i} toSegment: ${n&&pd(n)}`),this.transferMediaFromPlayer(i,n),this.playerQueue.splice(r,1),i.destroy()}}emptyPlayerQueue(){let t;for(;t=this.playerQueue.pop();)t.destroy();this.playerQueue=[]}startAssetPlayer(t,n,r,i,a){const{interstitial:s,assetItem:l,assetId:c}=t,d=s.assetList.length,h=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!h||h.identifier!==c)&&(h&&(this.clearAssetPlayer(h.identifier,r[i]),delete h.error),this.log(`INTERSTITIAL_ASSET_STARTED ${n+1}/${d} ${U1(l)}`),this.hls.trigger(Pe.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:n,event:s,schedule:r.slice(0),scheduleIndex:i,player:t})),this.bufferAssetPlayer(t,a)}bufferAssetPlayer(t,n){var r,i;if(!this.schedule)return;const{interstitial:a,assetItem:s}=t,l=this.schedule.findEventIndex(a.identifier),c=(r=this.schedule.items)==null?void 0:r[l];if(!c)return;t.loadSource(),this.setBufferingItem(c),this.bufferingAsset=s;const d=this.getBufferingPlayer();if(d===t)return;const h=a.appendInPlace;if(h&&d?.interstitial.appendInPlace===!1)return;const p=d?.tracks||((i=this.detachedData)==null?void 0:i.tracks)||this.requiredTracks;if(h&&s!==this.playingAsset){if(!t.tracks){this.log(`Waiting for track info before buffering ${t}`);return}if(p&&!q3e(p,t.tracks)){const v=new Error(`Asset ${U1(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),g={fatal:!0,type:cr.OTHER_ERROR,details:zt.INTERSTITIAL_ASSET_ITEM_ERROR,error:v},y=a.findAssetIndex(s);this.handleAssetItemError(g,a,l,y,v.message);return}}this.transferMediaTo(t,n)}handleInPlaceStall(t){const n=this.schedule,r=this.primaryMedia;if(!n||!r)return;const i=r.currentTime,a=n.findAssetIndex(t,i),s=t.assetList[a];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const c=l.currentTime||i-s.timelineStart,d=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+d} in ${l} ${t} (media.currentTime: ${i})`),c&&(d/r.playbackRate<.5||l.bufferedInPlaceToEnd(r))&&l.hls){const h=n.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,h,a)}}}}advanceInPlace(t){const n=this.primaryMedia;n&&n.currentTime!S.error))n.error=y;else for(let S=i;S{const w=parseFloat(S.DURATION);this.createAsset(a,k,h,c+h,w,S.URI),h+=w}),a.duration=h,this.log(`Loaded asset-list with duration: ${h} (was: ${d}) ${a}`);const p=this.waitingItem,v=p?.event.identifier===s;this.updateSchedule();const g=(i=this.bufferingItem)==null?void 0:i.event;if(v){var y;const S=this.schedule.findEventIndex(s),k=(y=this.schedule.items)==null?void 0:y[S];if(k){if(!this.playingItem&&this.timelinePos>k.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==S){a.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${a}`),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(k)}this.setSchedulePosition(S)}else if(g?.identifier===s){const S=a.assetList[0];if(S){const k=this.getAssetPlayer(S.identifier);if(g.appendInPlace){const w=this.primaryMedia;k&&w&&this.bufferAssetPlayer(k,w)}else k&&k.loadSource()}}}onError(t,n){if(this.schedule)switch(n.details){case zt.ASSET_LIST_PARSING_ERROR:case zt.ASSET_LIST_LOAD_ERROR:case zt.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case zt.BUFFER_STALLED_ERROR:{const r=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&r.event.appendInPlace){this.handleInPlaceStall(r.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const tce=500;class W7t extends zG{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",Qn.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Pe.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Pe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Pe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Pe.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=nn.IDLE,this.setInterval(tce),this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(t,n){this.tracksBuffered=[],super.onMediaDetaching(t,n)}onLevelLoaded(t,n){this.mainDetails=n.details}onSubtitleFragProcessed(t,n){const{frag:r,success:i}=n;if(this.fragContextChanged(r)||(qs(r)&&(this.fragPrevious=r),this.state=nn.IDLE),!i)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const l=r.start;for(let d=0;d=a[d].start&&l<=a[d].end){s=a[d];break}const c=r.start+r.duration;s?s.end=c:(s={start:l,end:c},a.push(s)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(t,n){const{startOffset:r,endOffset:i}=n;if(r===0&&i!==Number.POSITIVE_INFINITY){const a=i-1;if(a<=0)return;n.endOffsetSubtitles=Math.max(0,a),this.tracksBuffered.forEach(s=>{for(let l=0;lnew I_(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const i=new I_(r);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Qn.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(t,n){var r;if(this.currentTrackId=n.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==nn.STOPPED&&this.setInterval(tce)}onSubtitleTrackLoaded(t,n){var r;const{currentTrackId:i,levels:a}=this,{details:s,id:l}=n;if(!a){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const c=a[l];if(l>=a.length||!c)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let d=0;if(s.live||(r=c.details)!=null&&r.live){if(s.deltaUpdateFailed)return;const p=this.mainDetails;if(!p){this.startFragRequested=!1;return}const v=p.fragments[0];if(!c.details)s.hasProgramDateTime&&p.hasProgramDateTime?(HT(s,p),d=s.fragmentStart):v&&(d=v.start,Jz(s,d));else{var h;d=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),d===0&&v&&(d=v.start,Jz(s,d))}p&&!this.startFragRequested&&this.setStartPosition(p,d)}c.details=s,this.levelLastLoaded=c,l===i&&(this.hls.trigger(Pe.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===nn.IDLE&&(Hm(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),c.details=void 0)))}_handleFragmentLoadComplete(t){const{frag:n,payload:r}=t,i=n.decryptdata,a=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&i!=null&&i.key&&i.iv&&ky(i.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer,jG(i.method)).catch(l=>{throw a.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(Pe.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=nn.IDLE})}}doTick(){if(!this.media){this.state=nn.IDLE;return}if(this.state===nn.IDLE){const{currentTrackId:t,levels:n}=this,r=n?.[t];if(!r||!n.length||!r.details||this.waitForLive(r))return;const{config:i}=this,a=this.getLoadPosition(),s=Vr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,i.maxBufferHole),{end:l,len:c}=s,d=r.details,h=this.hls.maxBufferLength+d.levelTargetDuration;if(c>h)return;const p=d.fragments,v=p.length,g=d.edge;let y=null;const S=this.fragPrevious;if(lg-x?0:x;y=Hm(S,p,Math.max(p[0].start,l),E),!y&&S&&S.start{if(i=i>>>0,i>a-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${a})`);return t[i][r]};this.buffered={get length(){return t.length},end(r){return n("end",r,t.length)},start(r){return n("start",r,t.length)}}}}const K7t={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},h4e=e=>String.fromCharCode(K7t[e]||e),Sd=15,ch=100,q7t={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Y7t={17:2,18:4,21:6,22:8,23:10,19:13,20:15},X7t={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Z7t={25:2,26:4,29:6,30:8,31:10,27:13,28:15},J7t=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Q7t{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;po.log(`${this.time} [${t}] ${r}`)}}}const Hv=function(t){const n=[];for(let r=0;rch&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=ch)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r=144&&this.backSpace();const n=h4e(t);if(this.pos>=ch){this.logger.log(0,()=>"Cannot insert "+t.toString(16)+" ("+n+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1)}clearFromPos(t){let n;for(n=t;n"pacData = "+Ao(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+Ao(t)),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const t=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(t,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const n=[];let r="",i=-1;for(let a=0;a0&&(t?r="["+n.join(" | ")+"]":r=n.join(` +`)),r}getTextAndFormat(){return this.rows}}class nce{constructor(t,n,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=n,this.mode=null,this.verbose=0,this.displayedMemory=new QF(r),this.nonDisplayedMemory=new QF(r),this.lastOutputScreen=new QF(r),this.currRollUpRow=this.displayedMemory.rows[Sd-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Sd-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,()=>"MODE="+t),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let r=0;rn+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const n={flash:!1};if(n.underline=t%2===1,n.italics=t>=46,n.italics)n.foreground="white";else{const r=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];n.foreground=i[r]}this.logger.log(2,"MIDROW: "+Ao(n)),this.writeScreen.setPen(n)}outputDataUpdate(t=!1){const n=this.logger.time;n!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=n:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,n,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:n),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class rce{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=rDt(),this.logger=void 0;const i=this.logger=new Q7t;this.channels=[null,new nce(t,n,i),new nce(t+1,r,i)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,n){this.channels[t].setHandler(n)}addData(t,n){this.logger.time=t;for(let r=0;r"["+Hv([n[r],n[r+1]])+"] -> ("+Hv([i,a])+")");const c=this.cmdHistory;if(i>=16&&i<=31){if(nDt(i,a,c)){Rx(null,null,c),this.logger.log(3,()=>"Repeated command ("+Hv([i,a])+") is dropped");continue}Rx(i,a,this.cmdHistory),s=this.parseCmd(i,a),s||(s=this.parseMidrow(i,a)),s||(s=this.parsePAC(i,a)),s||(s=this.parseBackgroundAttributes(i,a))}else Rx(null,null,c);if(!s&&(l=this.parseChars(i,a),l)){const h=this.currentChannel;h&&h>0?this.channels[h].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Hv([i,a])+" orig: "+Hv([n[r],n[r+1]]))}}parseCmd(t,n){const r=(t===20||t===28||t===21||t===29)&&n>=32&&n<=47,i=(t===23||t===31)&&n>=33&&n<=35;if(!(r||i))return!1;const a=t===20||t===21||t===23?1:2,s=this.channels[a];return t===20||t===21||t===28||t===29?n===32?s.ccRCL():n===33?s.ccBS():n===34?s.ccAOF():n===35?s.ccAON():n===36?s.ccDER():n===37?s.ccRU(2):n===38?s.ccRU(3):n===39?s.ccRU(4):n===40?s.ccFON():n===41?s.ccRDC():n===42?s.ccTR():n===43?s.ccRTD():n===44?s.ccEDM():n===45?s.ccCR():n===46?s.ccENM():n===47&&s.ccEOC():s.ccTO(n-32),this.currentChannel=a,!0}parseMidrow(t,n){let r=0;if((t===17||t===25)&&n>=32&&n<=47){if(t===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[r];return i?(i.ccMIDROW(n),this.logger.log(3,()=>"MIDROW ("+Hv([t,n])+")"),!0):!1}return!1}parsePAC(t,n){let r;const i=(t>=17&&t<=23||t>=25&&t<=31)&&n>=64&&n<=127,a=(t===16||t===24)&&n>=64&&n<=95;if(!(i||a))return!1;const s=t<=23?1:2;n>=64&&n<=95?r=s===1?q7t[t]:X7t[t]:r=s===1?Y7t[t]:Z7t[t];const l=this.channels[s];return l?(l.setPAC(this.interpretPAC(r,n)),this.currentChannel=s,!0):!1}interpretPAC(t,n){let r;const i={color:null,italics:!1,indent:null,underline:!1,row:t};return n>95?r=n-96:r=n-64,i.underline=(r&1)===1,r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((r-16)/2)*4,i}parseChars(t,n){let r,i=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19){let s;a===17?s=n+80:a===18?s=n+112:s=n+144,this.logger.log(2,()=>"Special char '"+h4e(s)+"' in channel "+r),i=[s]}else t>=32&&t<=127&&(i=n===0?[t]:[t,n]);return i&&this.logger.log(3,()=>"Char codes = "+Hv(i).join(",")),i}parseBackgroundAttributes(t,n){const r=(t===16||t===24)&&n>=32&&n<=47,i=(t===23||t===31)&&n>=45&&n<=47;if(!(r||i))return!1;let a;const s={};t===16||t===24?(a=Math.floor((n-32)/2),s.background=J7t[a],n%2===1&&(s.background=s.background+"_semi")):n===45?s.background="transparent":(s.foreground="black",n===47&&(s.underline=!0));const l=t<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let t=0;t100)throw new Error("Position must be between 0 and 100.");D=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return P},set:function(L){const B=i(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");P=B,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return M},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");M=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return $},set:function(L){const B=i(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");$=B,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class iDt{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function v4e(e){function t(r,i,a,s){return(r|0)*3600+(i|0)*60+(a|0)+parseFloat(s||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}let oDt=class{constructor(){this.values=Object.create(null)}set(t,n){!this.get(t)&&n!==""&&(this.values[t]=n)}get(t,n,r){return r?this.has(t)?this.values[t]:n[r]:this.has(t)?this.values[t]:n}has(t){return t in this.values}alt(t,n,r){for(let i=0;i=0&&r<=100)return this.set(t,r),!0}return!1}};function m4e(e,t,n,r){const i=r?e.split(r):[e];for(const a in i){if(typeof i[a]!="string")continue;const s=i[a].split(n);if(s.length!==2)continue;const l=s[0],c=s[1];t(l,c)}}const sU=new eK(0,0,""),Mx=sU.align==="middle"?"middle":"center";function sDt(e,t,n){const r=e;function i(){const l=v4e(e);if(l===null)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),l}function a(l,c){const d=new oDt;m4e(l,function(v,g){let y;switch(v){case"region":for(let S=n.length-1;S>=0;S--)if(n[S].id===g){d.set(v,n[S].region);break}break;case"vertical":d.alt(v,g,["rl","lr"]);break;case"line":y=g.split(","),d.integer(v,y[0]),d.percent(v,y[0])&&d.set("snapToLines",!1),d.alt(v,y[0],["auto"]),y.length===2&&d.alt("lineAlign",y[1],["start",Mx,"end"]);break;case"position":y=g.split(","),d.percent(v,y[0]),y.length===2&&d.alt("positionAlign",y[1],["start",Mx,"end","line-left","line-right","auto"]);break;case"size":d.percent(v,g);break;case"align":d.alt(v,g,["start",Mx,"end","left","right"]);break}},/:/,/\s/),c.region=d.get("region",null),c.vertical=d.get("vertical","");let h=d.get("line","auto");h==="auto"&&sU.line===-1&&(h=-1),c.line=h,c.lineAlign=d.get("lineAlign","start"),c.snapToLines=d.get("snapToLines",!0),c.size=d.get("size",100),c.align=d.get("align",Mx);let p=d.get("position","auto");p==="auto"&&sU.position===50&&(p=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=p}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=i(),s(),e.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.slice(3),s(),t.endTime=i(),s(),a(e,t)}function g4e(e){return e.replace(//gi,` +`)}class aDt{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new iDt,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const n=this;t&&(n.buffer+=n.decoder.decode(t,{stream:!0}));function r(){let a=n.buffer,s=0;for(a=g4e(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{Q7t(a,n.cue,n.regionList)}catch{n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{const l=a.indexOf("-->")!==-1;if(!a||l&&(s=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=` +`&&++s,n.buffer=a.slice(s),l}function i(a){m4e(a,function(s,l){},/:/)}try{let a="";if(n.state==="INITIAL"){if(!/\r\n|\n/.test(n.buffer))return this;a=r();const l=a.match(/^()?WEBVTT([ \t].*)?$/);if(!(l!=null&&l[0]))throw new Error("Malformed WebVTT signature.");n.state="HEADER"}let s=!1;for(;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(s?s=!1:a=r(),n.state){case"HEADER":/:/.test(a)?i(a):a||(n.state="ID");continue;case"NOTE":a||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){n.state="NOTE";break}if(!a)continue;if(n.cue=new eK(0,0,""),n.state="CUE",a.indexOf("-->")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{sDt(a,n.cue,n.regionList)}catch{n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{const l=a.indexOf("-->")!==-1;if(!a||l&&(s=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=` `),n.cue.text+=a}continue;case"BADCUE":a||(n.state="ID")}}}catch{n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const t=this;try{if((t.cue||t.state==="HEADER")&&(t.buffer+=` -`,t.parse()),t.state==="INITIAL"||t.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){t.onparsingerror&&t.onparsingerror(n)}return t.onflush&&t.onflush(),this}}const tDt=/\r\n|\n\r|\n|\r/g,JF=function(t,n,r=0){return t.slice(r,r+n.length)===n},nDt=function(t){let n=parseInt(t.slice(-3));const r=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),a=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!Bn(n)||!Bn(r)||!Bn(i)||!Bn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*i,n+=3600*1e3*a,n};function tK(e,t,n){return $b(e.toString())+$b(t.toString())+$b(n)}const rDt=function(t,n,r){let i=t[n],a=t[i.prevCC];if(!a||!a.new&&i.new){t.ccOffset=t.presentationOffset=i.start,i.new=!1;return}for(;(s=a)!=null&&s.new;){var s;t.ccOffset+=i.start-a.start,i.new=!1,i=a,a=t[i.prevCC]}t.presentationOffset=r};function iDt(e,t,n,r,i,a,s){const l=new eDt,c=cc(new Uint8Array(e)).trim().replace(tDt,` +`,t.parse()),t.state==="INITIAL"||t.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){t.onparsingerror&&t.onparsingerror(n)}return t.onflush&&t.onflush(),this}}const lDt=/\r\n|\n\r|\n|\r/g,ej=function(t,n,r=0){return t.slice(r,r+n.length)===n},uDt=function(t){let n=parseInt(t.slice(-3));const r=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),a=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!Bn(n)||!Bn(r)||!Bn(i)||!Bn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*i,n+=3600*1e3*a,n};function tK(e,t,n){return Ob(e.toString())+Ob(t.toString())+Ob(n)}const cDt=function(t,n,r){let i=t[n],a=t[i.prevCC];if(!a||!a.new&&i.new){t.ccOffset=t.presentationOffset=i.start,i.new=!1;return}for(;(s=a)!=null&&s.new;){var s;t.ccOffset+=i.start-a.start,i.new=!1,i=a,a=t[i.prevCC]}t.presentationOffset=r};function dDt(e,t,n,r,i,a,s){const l=new aDt,c=fc(new Uint8Array(e)).trim().replace(lDt,` `).split(` -`),d=[],h=t?cLt(t.baseTime,t.timescale):0;let p="00:00.000",v=0,g=0,y,S=!0;l.oncue=function(k){const C=n[r];let x=n.ccOffset;const E=(v-h)/9e4;if(C!=null&&C.new&&(g!==void 0?x=n.ccOffset=C.start:rDt(n,r,E)),E){if(!t){y=new Error("Missing initPTS for VTT MPEGTS");return}x=E-n.presentationOffset}const _=k.endTime-k.startTime,T=nc((k.startTime+x-g)*9e4,i*9e4)/9e4;k.startTime=Math.max(T,0),k.endTime=Math.max(T+_,0);const D=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(D)),k.id||(k.id=tK(k.startTime,k.endTime,D)),k.endTime>0&&d.push(k)},l.onparsingerror=function(k){y=k},l.onflush=function(){if(y){s(y);return}a(d)},c.forEach(k=>{if(S)if(JF(k,"X-TIMESTAMP-MAP=")){S=!1,k.slice(16).split(",").forEach(C=>{JF(C,"LOCAL:")?p=C.slice(6):JF(C,"MPEGTS:")&&(v=parseInt(C.slice(7)))});try{g=nDt(p)/1e3}catch(C){y=C}return}else k===""&&(S=!1);l.parse(k+` -`)}),l.flush()}const QF="stpp.ttml.im1t",y4e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,b4e=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,oDt={left:"start",center:"center",right:"end",start:"start",end:"end"};function ice(e,t,n,r){const i=vi(new Uint8Array(e),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=i.map(l=>cc(l)),s=uLt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(sDt(l,s)))}catch(l){r(l)}}function sDt(e,t){const i=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const a={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(a).reduce((p,v)=>(p[v]=i.getAttribute(`ttp:${v}`)||a[v],p),{}),l=i.getAttribute("xml:space")!=="preserve",c=oce(ej(i,"styling","style")),d=oce(ej(i,"layout","region")),h=ej(i,"body","[begin]");return[].map.call(h,p=>{const v=_4e(p,l);if(!v||!p.hasAttribute("begin"))return null;const g=nj(p.getAttribute("begin"),s),y=nj(p.getAttribute("dur"),s);let S=nj(p.getAttribute("end"),s);if(g===null)throw sce(p);if(S===null){if(y===null)throw sce(p);S=g+y}const k=new eK(g-t,S-t,v);k.id=tK(k.startTime,k.endTime,k.text);const C=d[p.getAttribute("region")],x=c[p.getAttribute("style")],E=aDt(C,x,c),{textAlign:_}=E;if(_){const T=oDt[_];T&&(k.lineAlign=T),k.align=_}return bo(k,E),k}).filter(p=>p!==null)}function ej(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function oce(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function _4e(e,t){return[].slice.call(e.childNodes).reduce((n,r,i)=>{var a;return r.nodeName==="br"&&i?n+` -`:(a=r.childNodes)!=null&&a.length?_4e(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function aDt(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let i=null;const a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=e!=null&&e.hasAttribute("style")?e.getAttribute("style"):null;return s&&n.hasOwnProperty(s)&&(i=n[s]),a.reduce((l,c)=>{const d=tj(t,r,c)||tj(e,r,c)||tj(i,r,c);return d&&(l[c]=d),l},{})}function tj(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function sce(e){return new Error(`Could not parse ttml timestamp ${e}`)}function nj(e,t){if(!e)return null;let n=v4e(e);return n===null&&(y4e.test(e)?n=lDt(e,t):b4e.test(e)&&(n=uDt(e,t))),n}function lDt(e,t){const n=y4e.exec(e),r=(n[4]|0)+(n[5]|0)/t.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+r/t.frameRate}function uDt(e,t){const n=b4e.exec(e),r=Number(n[1]);switch(n[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}class MC{constructor(t,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,n,r){(this.startTime===null||this.startTime>t)&&(this.startTime=t),this.endTime=n,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class cDt{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=lce(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Pe.FRAG_LOADING,this.onFragLoading,this),t.on(Pe.FRAG_LOADED,this.onFragLoaded,this),t.on(Pe.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Pe.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Pe.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Pe.FRAG_LOADING,this.onFragLoading,this),t.off(Pe.FRAG_LOADED,this.onFragLoaded,this),t.off(Pe.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Pe.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Pe.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new MC(this,"textTrack1"),n=new MC(this,"textTrack2"),r=new MC(this,"textTrack3"),i=new MC(this,"textTrack4");this.cea608Parser1=new rce(1,t,n),this.cea608Parser2=new rce(3,r,i)}addCues(t,n,r,i,a){let s=!1;for(let l=a.length;l--;){const c=a[l],d=dDt(c[0],c[1],n,r);if(d>=0&&(c[0]=Math.min(c[0],n),c[1]=Math.max(c[1],r),s=!0,d/(r-n)>.5))return}if(s||a.push([n,r]),this.config.renderTextTracksNatively){const l=this.captionsTracks[t];this.Cues.newCue(l,n,r,i)}else{const l=this.Cues.newCue(null,n,r,i);this.hls.trigger(Pe.CUES_PARSED,{type:"captions",cues:l,track:t})}}onInitPtsFound(t,{frag:n,id:r,initPTS:i,timescale:a,trackId:s}){const{unparsedVttFrags:l}=this;r===Qn.MAIN&&(this.initPTS[n.cc]={baseTime:i,timescale:a,trackId:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(c=>{this.initPTS[c.frag.cc]?this.onFragLoaded(Pe.FRAG_LOADED,c):this.hls.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(t,n){const{media:r}=this;if(r)for(let i=0;i{J1(i[a]),delete i[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=lce(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const n=t.textTracks;if(n)for(let r=0;ra.textCodec===QF);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(Z2e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?u8(s.textTracks):null;if(this.tracks.forEach((c,d)=>{let h;if(l){let p=null;for(let v=0;vd!==null).map(d=>d.label);c.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${c.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(Pe.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(t,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(r=>{const i=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!i)return;const a=`textTrack${i[1]}`,s=this.captionsProperties[a];s&&(s.label=r.name,r.lang&&(s.languageCode=r.lang),s.media=r)})}closedCaptionsForLevel(t){const n=this.hls.levels[t.level];return n?.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,n){if(this.enabled&&n.frag.type===Qn.MAIN){var r,i;const{cea608Parser1:a,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:d}=n.frag,h=(r=(i=n.part)==null?void 0:i.index)!=null?r:-1;a&&s&&(d!==l+1||d===l&&h!==this.lastPartIndex+1||c!==this.lastCc)&&(a.reset(),s.reset()),this.lastCc=c,this.lastSn=d,this.lastPartIndex=h}}onFragLoaded(t,n){const{frag:r,payload:i}=n;if(r.type===Qn.SUBTITLE)if(i.byteLength){const a=r.decryptdata,s="stats"in n;if(a==null||!a.encrypted||s){const l=this.tracks[r.level],c=this.vttCCs;c[r.cc]||(c[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),l&&l.textCodec===QF?this._parseIMSC1(r,i):this._parseVTTs(n)}}else this.hls.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;ice(n,this.initPTS[t.cc],i=>{this._appendCues(i,t.level),r.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},i=>{r.logger.log(`Failed to parse IMSC1: ${i}`),r.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:i})})}_parseVTTs(t){var n;const{frag:r,payload:i}=t,{initPTS:a,unparsedVttFrags:s}=this,l=a.length-1;if(!a[r.cc]&&l===-1){s.push(t);return}const c=this.hls,d=(n=r.initSegment)!=null&&n.data?td(r.initSegment.data,new Uint8Array(i)).buffer:i;iDt(d,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},h=>{const p=h.message==="Missing initPTS for VTT MPEGTS";p?s.push(t):this._fallbackToIMSC1(r,i),c.logger.log(`Failed to parse VTT cue: ${h}`),!(p&&l>r.cc)&&c.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||ice(n,this.initPTS[t.cc],()=>{r.textCodec=QF,this._parseIMSC1(t,n)},()=>{r.textCodec="wvtt"})}_appendCues(t,n){const r=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[n];if(!i||i.mode==="disabled")return;t.forEach(a=>d4e(i,a))}else{const i=this.tracks[n];if(!i)return;const a=i.default?"default":"subtitles"+n;r.trigger(Pe.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===Qn.SUBTITLE&&this.onFragLoaded(Pe.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,n){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:i}=n;if(!(r.type===Qn.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;arU(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&i!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>rU(l[c],n,i))}}}extractCea608Data(t){const n=[[],[]],r=t[0]&31;let i=2;for(let a=0;a=16?c--:c++;const g=g4e(d.trim()),y=tK(t,n,g);e!=null&&(p=e.cues)!=null&&p.getCueById(y)||(s=new h(t,n,g),s.id=y,s.line=v+1,s.align="left",s.position=10+Math.min(80,Math.floor(c*8/32)*10),i.push(s))}return e&&i.length&&(i.sort((v,g)=>v.line==="auto"||g.line==="auto"?0:v.line>8&&g.line>8?g.line-v.line:v.line-g.line),i.forEach(v=>d4e(e,v))),i}};function pDt(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const vDt=/(\d+)-(\d+)\/(\d+)/;class uce{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||bDt,this.controller=new self.AbortController,this.stats=new RG}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,n,r){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const a=mDt(t,this.controller.signal),s=t.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:d}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),n.timeout=c&&Bn(c)?c:d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,t,this.response))},n.timeout),(D_(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var v;this.response=this.loader=p;const g=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,t,this.response))},d-(g-i.loading.start)),!p.ok){const{status:S,statusText:k}=p;throw new _Dt(k||"fetch, bad network response",S,p)}i.loading.first=g,i.total=yDt(p.headers)||i.total;const y=(v=this.callbacks)==null?void 0:v.onProgress;return y&&Bn(n.highWaterMark)?this.loadProgressively(p,i,t,n.highWaterMark,y):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var v,g;const y=this.response;if(!y)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const S=p[l];S&&(i.loaded=i.total=S);const k={url:y.url,data:p,code:y.status},C=(v=this.callbacks)==null?void 0:v.onProgress;C&&!Bn(n.highWaterMark)&&C(i,t,p,y),(g=this.callbacks)==null||g.onSuccess(k,i,t,y)}).catch(p=>{var v;if(self.clearTimeout(this.requestTimeout),i.aborted)return;const g=p&&p.code||0,y=p?p.message:null;(v=this.callbacks)==null||v.onError({code:g,text:y},t,p?p.details:null,i)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,r,i=0,a){const s=new D2e,l=t.body.getReader(),c=()=>l.read().then(d=>{if(d.done)return s.dataLength&&a(n,r,s.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const h=d.value,p=h.length;return n.loaded+=p,p=i&&a(n,r,s.flush().buffer,t)):a(n,r,h.buffer,t),c()}).catch(()=>Promise.reject());return c()}}function mDt(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(bo({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function gDt(e){const t=vDt.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function yDt(e){const t=e.get("Content-Range");if(t){const r=gDt(t);if(Bn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function bDt(e,t){return new self.Request(e.url,t)}class _Dt extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const SDt=/^age:\s*[\d.]+\s*$/im;class k4e{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new RG,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,n,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=n,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:t,context:n}=this;if(!t||!n)return;const r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const a=this.xhrSetup;a?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return a(r,n.url)}).catch(s=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",n.url,!0),a(r,n.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,n,t)}).catch(s=>{var l;(l=this.callbacks)==null||l.onError({code:r.status,text:s.message},n,r,i)}):this.openAndSendXhr(r,n,t)}openAndSendXhr(t,n,r){t.readyState||t.open("GET",n.url,!0);const i=n.headers,{maxTimeToFirstByteMs:a,maxLoadTimeMs:s}=r.loadPolicy;if(i)for(const l in i)t.setRequestHeader(l,i[l]);n.rangeEnd&&t.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=n.responseType,self.clearTimeout(this.requestTimeout),r.timeout=a&&Bn(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:r}=this;if(!t||!n)return;const i=n.readyState,a=this.config;if(!r.aborted&&i>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),a.timeout!==a.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),a.timeout=a.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const d=n.status,h=n.responseType==="text"?n.responseText:null;if(d>=200&&d<300){const y=h??n.response;if(y!=null){var s,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const S=n.responseType==="arraybuffer"?y.byteLength:y.length;r.loaded=r.total=S,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const k=(s=this.callbacks)==null?void 0:s.onProgress;k&&k(r,t,y,n);const C={url:n.responseURL,data:y,code:d};(l=this.callbacks)==null||l.onSuccess(C,r,t,n);return}}const p=a.loadPolicy.errorRetry,v=r.retry,g={url:t.url,data:void 0,code:d};if(jT(p,v,!1,g))this.retry(p);else{var c;po.error(`${d} while loading ${t.url}`),(c=this.callbacks)==null||c.onError({code:d,text:n.statusText},t,n,r)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(jT(t,n,!0))this.retry(t);else{var r;po.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:n,stats:r}=this;this.retryDelay=BG(t,r.retry),r.retry++,po.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n?.url}, retrying ${r.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total)}getCacheAge(){let t=null;if(this.loader&&SDt.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const kDt={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},xDt=fo(fo({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:k4e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:$At,bufferController:wLt,capLevelController:ZG,errorController:jAt,fpsController:E7t,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:_2e,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:kDt},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},CDt()),{},{subtitleStreamController:N7t,subtitleTrackController:I7t,timelineController:cDt,audioStreamController:SLt,audioTrackController:kLt,emeController:ky,cmcdController:k7t,contentSteeringController:C7t,interstitialsController:B7t});function CDt(){return{cueHandler:hDt,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function wDt(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const r=oU(e),i=["manifest","level","frag"],a=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return i.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,c=t[l]===void 0,d=[];a.forEach(h=>{const p=`${s}Loading${h}`,v=t[p];if(v!==void 0&&c){d.push(p);const g=r[l].default;switch(t[l]={default:g},h){case"TimeOut":g.maxLoadTimeMs=v,g.maxTimeToFirstByteMs=v;break;case"MaxRetry":g.errorRetry.maxNumRetry=v,g.timeoutRetry.maxNumRetry=v;break;case"RetryDelay":g.errorRetry.retryDelayMs=v,g.timeoutRetry.retryDelayMs=v;break;case"MaxRetryTimeout":g.errorRetry.maxRetryDelayMs=v,g.timeoutRetry.maxRetryDelayMs=v;break}}}),d.length&&n.warn(`hls.js config: "${d.join('", "')}" setting(s) are deprecated, use "${l}": ${Ao(t[l])}`)}),fo(fo({},r),t)}function oU(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(oU):Object.keys(e).reduce((t,n)=>(t[n]=oU(e[n]),t),{}):e}function EDt(e,t){const n=e.loader;n!==uce&&n!==k4e?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):pDt()&&(e.loader=uce,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const c8=2,TDt=.1,ADt=.05,IDt=100;class LDt extends v2e{constructor(t,n){super("gap-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(Pe.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,n){this.setInterval(IDt),this.mediaSource=n.mediaSource;const r=this.media=n.media;Kl(r,"playing",this.onMediaPlaying),Kl(r,"waiting",this.onMediaWaiting),Kl(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(Eu(r,"playing",this.onMediaPlaying),Eu(r,"waiting",this.onMediaWaiting),Eu(r,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,n){this.buffered=n.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(!((t=this.media)!=null&&t.readyState)||!this.hasBuffered)return;const n=this.media.currentTime;this.poll(n,this.lastCurrentTime),this.lastCurrentTime=n}poll(t,n){var r,i;const a=(r=this.hls)==null?void 0:r.config;if(!a)return;const s=this.media;if(!s)return;const{seeking:l}=s,c=this.seeking&&!l,d=!this.seeking&&l,h=s.paused&&!l||s.ended||s.playbackRate===0;if(this.seeking=l,t!==n){n&&(this.ended=0),this.moved=!0,l||(this.nudgeRetry=0,a.nudgeOnVideoHole&&!h&&t>n&&this.nudgeOnVideoHole(t,n)),this.waiting===0&&this.stallResolved(t);return}if(d||c){c&&this.stallResolved(t);return}if(h){this.nudgeRetry=0,this.stallResolved(t),!this.ended&&s.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(Pe.MEDIA_ENDED,{stalled:!1}));return}if(!jr.getBuffered(s).length){this.nudgeRetry=0;return}const p=jr.bufferInfo(s,t,0),v=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const D=cce(this.hls.inFlightFragments,t),P=p.len>c8,M=!v||D||v-t>c8&&!g.getPartialFragment(t);if(P||M)return;this.moved=!1}const y=(i=this.hls)==null?void 0:i.latestLevelDetails;if(!this.moved&&this.stalled!==null&&g){if(!(p.len>0)&&!v)return;const P=Math.max(v,p.start||0)-t,O=!!(y!=null&&y.live)?y.targetduration*2:c8,L=$C(t,g);if(P>0&&(P<=O||L)){s.paused||this._trySkipBufferHole(L);return}}const S=a.detectStallWithCurrentTimeMs,k=self.performance.now(),C=this.waiting;let x=this.stalled;if(x===null)if(C>0&&k-C=S||C)&&this.hls){var _;if(((_=this.mediaSource)==null?void 0:_.readyState)==="ended"&&!(y!=null&&y.live)&&Math.abs(t-(y?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(Pe.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const T=jr.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(T,E,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(Pe.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,n){var r;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&i&&i.length>1&&t>i.end(0)){const a=jr.bufferedInfo(jr.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=jr.timeRangesToArray(i),l=jr.bufferedInfo(s,n,0).bufferedIndex;if(l>-1&&ll)&&h-d<1&&t-d<2){const p=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${d} -> ${h} buffered index: ${c}`);this.warn(p.message),this.media.currentTime+=1e-6;let v=$C(t,this.fragmentTracker);v&&"fragment"in v?v=v.fragment:v||(v=void 0);const g=jr.bufferInfo(this.media,t,0);this.hls.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:v,buffer:g.len,bufferInfo:g})}}}}}_tryFixBufferStall(t,n,r){var i,a;const{fragmentTracker:s,media:l}=this,c=(i=this.hls)==null?void 0:i.config;if(!l||!s||!c)return;const d=(a=this.hls)==null?void 0:a.latestLevelDetails,h=$C(r,s);if((h||d!=null&&d.live&&r1&&t.len>c.maxBufferHole||t.nextStart&&(t.nextStart-rc.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,n){const r=this.fragmentTracker,i=t.nextStart;if(r&&i){const a=r.getFragAtPos(n,Qn.MAIN),s=r.getFragAtPos(i,Qn.MAIN);if(a&&s)return s.sn-a.sn<2}return!1}_reportStall(t){const{hls:n,media:r,stallReported:i,stalled:a}=this;if(!i&&a!==null&&r&&n){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${Ao(t)})`);this.warn(s.message),n.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:t.len,bufferInfo:t,stalled:{start:a}})}}_trySkipBufferHole(t){var n;const{fragmentTracker:r,media:i}=this,a=(n=this.hls)==null?void 0:n.config;if(!i||!r||!a)return 0;const s=i.currentTime,l=jr.bufferInfo(i,s,0),c=s0&&l.len<1&&i.readyState<3,v=c-s;if(v>0&&(h||p)){if(v>a.maxBufferHole){let y=!1;if(s===0){const S=r.getAppendedFrag(0,Qn.MAIN);S&&c"u"))return self.VTTCue||self.TextTrackCue}function rj(e,t,n,r,i){let a=new e(t,n,"");try{a.value=r,i&&(a.type=i)}catch{a=new e(t,n,Ao(i?fo({type:i},r):r))}return a}const OC=(()=>{const e=sU();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class PDt{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(Pe.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t&&(t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Pe.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Pe.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(t,n){var r;this.media=n.media,((r=n.overrides)==null?void 0:r.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var t;const n=(t=this.hls)==null?void 0:t.latestLevelDetails;n&&this.updateDateRangeCues(n)}onMediaDetaching(t,n){this.media=null,!n.transferMedia&&(this.id3Track&&(this.removeCues&&J1(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const n=this.getID3Track(t.textTracks);return n.mode="hidden",n}getID3Track(t){if(this.media){for(let n=0;nOC&&(p=OC),p-h<=0&&(p=h+DDt);for(let g=0;gh.type===ic.audioId3&&c:i==="video"?d=h=>h.type===ic.emsg&&l:d=h=>h.type===ic.audioId3&&c||h.type===ic.emsg&&l,rU(a,n,r,d)}}onLevelUpdated(t,{details:n}){this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(t,n){Math.abs(n.drift)>.01&&this.updateDateRangeCues(n.details)}updateDateRangeCues(t,n){if(!this.hls||!this.media)return;const{assetPlayerId:r,timelineOffset:i,enableDateRangeMetadataCues:a,interstitialsController:s}=this.hls.config;if(!a)return;const l=sU();if(r&&i&&!s){const{fragmentStart:S,fragmentEnd:k}=t;let C=this.assetCue;C?(C.startTime=S,C.endTime=k):l&&(C=this.assetCue=rj(l,S,k,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),C&&(C.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(C),C.addEventListener("enter",this.onEventCueEnter)))}if(!t.hasProgramDateTime)return;const{id3Track:c}=this,{dateRanges:d}=t,h=Object.keys(d);let p=this.dateRangeCuesAppended;if(c&&n){var v;if((v=c.cues)!=null&&v.length){const S=Object.keys(p).filter(k=>!h.includes(k));for(let k=S.length;k--;){var g;const C=S[k],x=(g=p[C])==null?void 0:g.cues;delete p[C],x&&Object.keys(x).forEach(E=>{const _=x[E];if(_){_.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(_)}catch{}}})}}else p=this.dateRangeCuesAppended={}}const y=t.fragments[t.fragments.length-1];if(!(h.length===0||!Bn(y?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(j!==C.id){const H=d[j];if(H.class===C.class&&H.startDate>C.startDate&&(!B||C.startDate.01&&(j.startTime=x,j.endTime=D);else if(l){let H=C.attr[B];eIt(B)&&(H=Y3e(H));const K=rj(l,x,D,{key:B,data:H},ic.dateRange);K&&(K.id=k,this.id3Track.addCue(K),_[B]=K,s&&(B==="X-ASSET-LIST"||B==="X-ASSET-URL")&&K.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:C,durationKnown:T}}}}}class RDt{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:n}=this,r=this.levelDetails;if(!n||!r)return;this.currentTime=n.currentTime;const i=this.computeLatency();if(i===null)return;this._latency=i;const{lowLatencyMode:a,maxLiveSyncPlaybackRate:s}=this.config;if(!a||s===1||!r.live)return;const l=this.targetLatency;if(l===null)return;const c=i-l,d=Math.min(this.maxLatency,l+r.targetduration);if(c.05&&this.forwardBufferLength>1){const p=Math.min(2,Math.max(1,s)),v=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,g=Math.min(p,Math.max(1,v));this.changeMediaPlaybackRate(n,g)}else n.playbackRate!==1&&n.playbackRate!==0&&this.changeMediaPlaybackRate(n,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return((t=this.hls)==null?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const t=this.levelDetails;if(t===null||this.hls===null)return null;const{holdBack:n,partHoldBack:r,targetduration:i}=t,{liveSyncDuration:a,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,c=this.hls.userConfig;let d=l&&r||n;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||d===0)&&(d=a!==void 0?a:s*i);const h=i;return d+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,h)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency;if(t===null||n===null)return null;const r=this.levelDetails;if(r===null)return null;const i=r.edge,a=t-n-this.edgeStalled,s=i-r.totalduration,l=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(s,a),l)}get drift(){const t=this.levelDetails;return t===null?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t}=this,n=this.levelDetails;if(!t||!n)return 0;const r=t.buffered.length;return(r?t.buffered.end(r-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Pe.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Pe.ERROR,this.onError,this))}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:n}){n.advanced&&this.onTimeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,n){var r;n.details===zt.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,n){var r,i;t.playbackRate!==n&&((r=this.hls)==null||r.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(i=this.targetLatency)==null?void 0:i.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${n}`),t.playbackRate=n)}estimateLiveEdge(){const t=this.levelDetails;return t===null?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return t===null?null:t-this.currentTime}}class MDt extends XG{constructor(t,n){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Pe.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Pe.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Pe.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Pe.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const r=this.hls.config.preferManagedMediaSource,i=[],a={},s={};let l=!1,c=!1,d=!1;n.levels.forEach(h=>{const p=h.attrs;let{audioCodec:v,videoCodec:g}=h;v&&(h.audioCodec=v=OT(v,r)||void 0),g&&(g=h.videoCodec=mAt(g));const{width:y,height:S,unknownCodecs:k}=h,C=k?.length||0;if(l||(l=!!(y&&S)),c||(c=!!g),d||(d=!!v),C||v&&!this.isAudioSupported(v)||g&&!this.isVideoSupported(g)){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}const{CODECS:x,"FRAME-RATE":E,"HDCP-LEVEL":_,"PATHWAY-ID":T,RESOLUTION:D,"VIDEO-RANGE":P}=p,O=`${`${T||"."}-`}${h.bitrate}-${D}-${E}-${x}-${P}-${_}`;if(a[O])if(a[O].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const L=s[O]+=1;h.attrs["PATHWAY-ID"]=new Array(L+1).join(".");const B=this.createLevel(h);a[O]=B,i.push(B)}else a[O].addGroupId("audio",p.AUDIO),a[O].addGroupId("text",p.SUBTITLES);else{const L=this.createLevel(h);a[O]=L,s[O]=1,i.push(L)}}),this.filterAndSortMediaOptions(i,n,l,c,d)}createLevel(t){const n=new A_(t),r=t.supplemental;if(r!=null&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){const i=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(i.message),n.supportedResult=a2e(i,[])}return n}isAudioSupported(t){return E_(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return E_(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,r,i,a){var s;let l=[],c=[],d=t;const h=((s=n.stats)==null?void 0:s.parsing)||{};if((r||i)&&a&&(d=d.filter(({videoCodec:x,videoRange:E,width:_,height:T})=>(!!x||!!(_&&T))&&EAt(E))),d.length===0){Promise.resolve().then(()=>{if(this.hls){let x="no level with compatible codecs found in manifest",E=x;n.levels.length&&(E=`one or more CODECS in variant not supported: ${Ao(n.levels.map(T=>T.attrs.CODECS).filter((T,D,P)=>P.indexOf(T)===D))}`,this.warn(E),x+=` (${E})`);const _=new Error(x);this.hls.trigger(Pe.ERROR,{type:ur.MEDIA_ERROR,details:zt.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:_,reason:E})}}),h.end=performance.now();return}n.audioTracks&&(l=n.audioTracks.filter(x=>!x.audioCodec||this.isAudioSupported(x.audioCodec)),fce(l)),n.subtitles&&(c=n.subtitles,fce(c));const p=d.slice(0);d.sort((x,E)=>{if(x.attrs["HDCP-LEVEL"]!==E.attrs["HDCP-LEVEL"])return(x.attrs["HDCP-LEVEL"]||"")>(E.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&x.height!==E.height)return x.height-E.height;if(x.frameRate!==E.frameRate)return x.frameRate-E.frameRate;if(x.videoRange!==E.videoRange)return BT.indexOf(x.videoRange)-BT.indexOf(E.videoRange);if(x.videoCodec!==E.videoCodec){const _=rue(x.videoCodec),T=rue(E.videoCodec);if(_!==T)return T-_}if(x.uri===E.uri&&x.codecSet!==E.codecSet){const _=$T(x.codecSet),T=$T(E.codecSet);if(_!==T)return T-_}return x.averageBitrate!==E.averageBitrate?x.averageBitrate-E.averageBitrate:0});let v=p[0];if(this.steering&&(d=this.steering.filterParsedLevels(d),d.length!==p.length)){for(let x=0;x_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=T)}break}const y=a&&!i,S=this.hls.config,k=!!(S.audioStreamController&&S.audioTrackController),C={levels:d,audioTracks:l,subtitleTracks:c,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:a,video:i,altAudio:k&&!y&&l.some(x=>!!x.url)};h.end=performance.now(),this.hls.trigger(Pe.MANIFEST_PARSED,C)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const n=this._levels;if(n.length===0)return;if(t<0||t>=n.length){const h=new Error("invalid level idx"),p=t<0;if(this.hls.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.LEVEL_SWITCH_ERROR,level:t,fatal:p,error:h,reason:h.message}),p)return;t=Math.min(t,n.length-1)}const r=this.currentLevelIndex,i=this.currentLevel,a=i?i.attrs["PATHWAY-ID"]:void 0,s=n[t],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=s,r===t&&i&&a===l)return;this.log(`Switching to level ${t} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${l?" with Pathway "+l:""} from level ${r}${a?" with Pathway "+a:""}`);const c={level:t,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(Pe.LEVEL_SWITCHING,c);const d=s.details;if(!d||d.live){const h=this.switchParams(s.uri,i?.details,d);this.loadPlaylist(h)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(this._startLevel===void 0){const t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const n=this.steering.pathways(),r=t.filter(i=>n.indexOf(i)!==-1);if(t.length<1){this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${n}`);return}this.steering.pathwayPriority=r}}onError(t,n){n.fatal||!n.context||n.context.type===Si.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===Qn.MAIN){const r=n.elementaryStreams;if(!Object.keys(r).some(a=>!!r[a]))return;const i=this._levels[n.level];i!=null&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(t,n){var r;const{level:i,details:a}=n,s=n.levelInfo;if(!s){var l;this.warn(`Invalid level index ${i}`),(l=n.deliveryDirectives)!=null&&l.skip&&(a.deltaUpdateFailed=!0);return}if(s===this.currentLevel||n.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let c=s.details;c===n.details&&c.advanced&&(c=void 0),this.playlistLoaded(i,n,c)}else(r=n.deliveryDirectives)!=null&&r.skip&&(a.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=this.getUrlWithDirectives(t.uri,n),i=this.currentLevelIndex,a=t.attrs["PATHWAY-ID"],s=t.details,l=s?.age;this.log(`Loading level index ${i}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${a?" Pathway "+a:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${r}`),this.hls.trigger(Pe.LEVEL_LOADING,{url:r,level:i,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:n||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}removeLevel(t){var n;if(this._levels.length===1)return;const r=this._levels.filter((a,s)=>s!==t?!0:(this.steering&&this.steering.removeLevel(a),a===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,a.details&&a.details.fragments.forEach(l=>l.level=-1)),!1));A2e(r),this._levels=r,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const i=r.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(Pe.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(t,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:n,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(Pe.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function fce(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function x4e(){return self.SourceBuffer||self.WebKitSourceBuffer}function C4e(){if(!R0())return!1;const t=x4e();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function $Dt(){if(!C4e())return!1;const e=R0();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(T_(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(T_(t,"audio"))))}function ODt(){var e;const t=x4e();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const BDt=100;class NDt extends zG{constructor(t,n,r){super(t,n,r,"stream-controller",Qn.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const i=this.media,a=i?i.currentTime:null;if(a===null||!Bn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(i,a,Qn.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${a} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Pe.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Pe.BUFFER_CREATED,this.onBufferCreated,this),t.on(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Pe.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Pe.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Pe.BUFFER_CREATED,this.onBufferCreated,this),t.off(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Pe.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(t,n){if(this.levels){const{lastCurrentTime:r,hls:i}=this;if(this.stopLoad(),this.setInterval(BDt),this.level=-1,!this.startFragRequested){let a=i.startLevel;a===-1&&(i.config.testBandwidth&&this.levels.length>1?(a=0,this.bitrateTest=!0):a=i.firstAutoLevel),i.nextLoadLevel=a,this.level=i.loadLevel,this._hasEnoughToStart=!!n}r>0&&t===-1&&!n&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r),this.state=nn.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=nn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case nn.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t?.[n],i=r?.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=nn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=nn.IDLE;break}break}case nn.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===nn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),(t=this.media)!=null&&t.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:n,levels:r,media:i}=this;if(n===null||!i&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const a=this.buffering?t.nextLoadLevel:t.loadLevel;if(!(r!=null&&r[a]))return;const s=r[a],l=this.getMainFwdBufferInfo();if(l===null)return;const c=this.getLevelDetails();if(c&&this._streamEnded(l,c)){const S={};this.altAudio===2&&(S.type="video"),this.hls.trigger(Pe.BUFFER_EOS,S),this.state=nn.ENDED;return}if(!this.buffering)return;t.loadLevel!==a&&t.manualLevel===-1&&this.log(`Adapting to level ${a} from level ${this.level}`),this.level=t.nextLoadLevel=a;const d=s.details;if(!d||this.state===nn.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=nn.WAITING_LEVEL,this.startFragRequested=!1;return}const h=l.len,p=this.getMaxBufferLength(s.maxBitrate);if(h>=p)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const v=this.backtrackFragment?this.backtrackFragment.start:l.end;let g=this.getNextFragment(v,d);if(this.couldBacktrack&&!this.fragPrevious&&g&&qs(g)&&this.fragmentTracker.getState(g)!==da.OK){var y;const k=((y=this.backtrackFragment)!=null?y:g).sn-d.startSN,C=d.fragments[k-1];C&&g.cc===C.cc&&(g=C,this.fragmentTracker.removeFragment(C))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(g&&this.isLoopLoading(g,v)){if(!g.gap){const k=this.audioOnly&&!this.altAudio?To.AUDIO:To.VIDEO,C=(k===To.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,k,Qn.MAIN)}g=this.getNextFragmentLoopLoading(g,d,l,Qn.MAIN,p)}g&&(g.initSegment&&!g.initSegment.data&&!this.bitrateTest&&(g=g.initSegment),this.loadFragment(g,s,v))}loadFragment(t,n,r){const i=this.fragmentTracker.getState(t);i===da.NOT_LOADED||i===da.PARTIAL?qs(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):super.loadFragment(t,n,r):this._loadInitSegment(t,n):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,Qn.MAIN)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:n}=this;if(n!=null&&n.readyState){let r;const i=this.getAppendedFrag(n.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const a=this.getLevelDetails();if(a!=null&&a.live){const l=this.getMainFwdBufferInfo();if(!l||l.len=s-n.maxFragLookUpTolerance&&a<=l;if(i!==null&&r.duration>i&&(a{this.hls&&this.hls.trigger(Pe.AUDIO_TRACK_SWITCHED,n)}),r.trigger(Pe.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(Pe.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=NT(n.url,this.hls);if(r){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r?2:0,this.tick()}onBufferCreated(t,n){const r=n.tracks;let i,a,s=!1;for(const l in r){const c=r[l];if(c.id==="main"){if(a=l,i=c,l==="video"){const d=r[l];d&&(this.videoBuffer=d.buffer)}}else s=!0}s&&i?(this.log(`Alternate track found, use ${a}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(t,n){const{frag:r,part:i}=n,a=r.type===Qn.MAIN;if(a){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===nn.PARSED&&(this.state=nn.IDLE);return}const l=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),qs(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}const s=this.media;s&&(!this._hasEnoughToStart&&jr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),a&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,n){var r;if(n.fatal){this.state=nn.ERROR;return}switch(n.details){case zt.FRAG_GAP:case zt.FRAG_PARSING_ERROR:case zt.FRAG_DECRYPT_ERROR:case zt.FRAG_LOAD_ERROR:case zt.FRAG_LOAD_TIMEOUT:case zt.KEY_LOAD_ERROR:case zt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Qn.MAIN,n);break;case zt.LEVEL_LOAD_ERROR:case zt.LEVEL_LOAD_TIMEOUT:case zt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===nn.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===Si.LEVEL&&(this.state=nn.IDLE);break;case zt.BUFFER_ADD_CODEC_ERROR:case zt.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case zt.BUFFER_FULL_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case zt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=nn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==To.AUDIO||!this.altAudio){const r=(n===To.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,Qn.MAIN),this.tick())}}onLevelsUpdated(t,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const n=t.currentTime;let r=this.startPosition;if(r>=0&&n0&&(c{const{hls:i}=this,a=r?.frag;if(!a||this.fragContextChanged(a))return;n.fragmentError=0,this.state=nn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=a.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),i.trigger(Pe.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===nn.STOPPED||this.state===nn.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}_handleTransmuxComplete(t){const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:a}=t,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}const{frag:l,part:c,level:d}=s,{video:h,text:p,id3:v,initSegment:g}=i,{details:y}=d,S=this.altAudio?void 0:i.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=nn.PARSING,g){const k=g.tracks;if(k){const _=l.initSegment||l;if(this.unhandledEncryptionError(g,l))return;this._bufferInitSegment(d,k,_,a),r.trigger(Pe.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const C=g.initPTS,x=g.timescale,E=this.initPTS[l.cc];if(Bn(C)&&(!E||E.baseTime!==C||E.timescale!==x)){const _=g.trackId;this.initPTS[l.cc]={baseTime:C,timescale:x,trackId:_},r.trigger(Pe.INIT_PTS_FOUND,{frag:l,id:n,initPTS:C,timescale:x,trackId:_})}}if(h&&y){S&&h.type==="audiovideo"&&this.logMuxedErr(l);const k=y.fragments[l.sn-1-y.startSN],C=l.sn===y.startSN,x=!k||l.cc>k.cc;if(i.independent!==!1){const{startPTS:E,endPTS:_,startDTS:T,endDTS:D}=h;if(c)c.elementaryStreams[h.type]={startPTS:E,endPTS:_,startDTS:T,endDTS:D};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!x&&(this.couldBacktrack=!0),h.dropped&&h.independent){const P=this.getMainFwdBufferInfo(),M=(P?P.end:this.getLoadPosition())+this.config.maxBufferHole,O=h.firstKeyFramePTS?h.firstKeyFramePTS:E;if(!C&&Mc8&&(l.gap=!0);l.setElementaryStreamInfo(h.type,E,_,T,D),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(h,l,c,a,C||x)}else if(C||x)l.gap=!0;else{this.backtrack(l);return}}if(S){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=S;c&&(c.elementaryStreams[To.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),l.setElementaryStreamInfo(To.AUDIO,k,C,x,E),this.bufferFragmentData(S,l,c,a)}if(y&&v!=null&&v.samples.length){const k={id:n,frag:l,details:y,samples:v.samples};r.trigger(Pe.FRAG_PARSING_METADATA,k)}if(y&&p){const k={id:n,frag:l,details:y,samples:p.samples};r.trigger(Pe.FRAG_PARSING_USERDATA,k)}}logMuxedErr(t){this.warn(`${qs(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,i){if(this.state!==nn.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&(delete n.audio,n.audiovideo&&this.logMuxedErr(r));const{audio:a,video:s,audiovideo:l}=n;if(a){const d=t.audioCodec;let h=r8(a.codec,d);h==="mp4a"&&(h="mp4a.40.5");const p=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){h&&(h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5");const v=a.metadata;v&&"channelCount"in v&&(v.channelCount||1)!==1&&p.indexOf("firefox")===-1&&(h="mp4a.40.5")}h&&h.indexOf("mp4a.40.5")!==-1&&p.indexOf("android")!==-1&&a.container!=="audio/mpeg"&&(h="mp4a.40.2",this.log(`Android: force audio codec to ${h}`)),d&&d!==h&&this.log(`Swapping manifest audio codec "${d}" for "${h}"`),a.levelCodec=h,a.id=Qn.MAIN,this.log(`Init audio buffer, container:${a.container}, codecs[selected/level/parsed]=[${h||""}/${d||""}/${a.codec}]`),delete n.audiovideo}if(s){s.levelCodec=t.videoCodec,s.id=Qn.MAIN;const d=s.codec;if(d?.length===4)switch(d){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${t.videoCodec||""}/${d}]${s.codec!==d?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete n.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${t.codecs}/${l.codec}]`),delete n.video,delete n.audio);const c=Object.keys(n);if(c.length){if(this.hls.trigger(Pe.BUFFER_CODECS,n),!this.hls)return;c.forEach(d=>{const p=n[d].initSegment;p!=null&&p.byteLength&&this.hls.trigger(Pe.BUFFER_APPENDING,{type:d,data:p,frag:r,part:null,chunkMeta:i,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,Qn.MAIN)}get maxBufferLength(){const{levels:t,level:n}=this,r=t?.[n];return r?this.getMaxBufferLength(r.maxBitrate):this.config.maxBufferLength}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=nn.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(jr.isBuffered(t,r)?n=this.getAppendedFrag(r):jr.isBuffered(t,r+.1)&&(n=this.getAppendedFrag(r+.1)),n){this.backtrackFragment=null;const i=this.fragPlaying,a=n.level;(!i||n.sn!==i.sn||i.level!==a)&&(this.fragPlaying=n,this.hls.trigger(Pe.FRAG_CHANGED,{frag:n}),(!i||i.level!==a)&&this.hls.trigger(Pe.LEVEL_SWITCHED,{level:a}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;return Bn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(Bn(n)){const r=this.getLevelDetails(),i=this.currentFrag||(r?Um(null,r.fragments,n):null);if(i){const a=i.programDateTime;if(a!==null){const s=a+(n-i.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class FDt extends od{constructor(t,n){super("key-loader",n),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const r in this.keyIdToKeyInfo){const i=this.keyIdToKeyInfo[r].loader;if(i){var n;if(t&&t!==((n=i.context)==null?void 0:n.frag.type))return;i.abort()}}}detach(){for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t].loader;n&&n.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(t,n=zt.KEY_LOAD_ERROR,r,i,a){return new vh({type:ur.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:a,error:r,networkDetails:i})}loadClear(t,n,r){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(n.length)for(let i=0,a=n.length;i{if(!this.emeController)return;s.setKeyFormat(l);const c=o8(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const i=z4(this.config);if(i.length)return this.emeController.getKeySystemAccess(i)}}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then(n=>this.loadInternal(t,n)):this.loadInternal(t)}loadInternal(t,n){var r,i;n&&t.setKeyFormat(n);const a=t.decryptdata;if(!a){const d=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(t,zt.KEY_LOAD_ERROR,d))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,zt.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=ij(a);let c=this.keyIdToKeyInfo[l];if((r=c)!=null&&r.decryptdata.key)return a.key=c.decryptdata.key,Promise.resolve({frag:t,keyInfo:c});if(this.emeController&&(i=c)!=null&&i.keyLoadPromise)switch(this.emeController.getKeyStatus(c.decryptdata)){case"usable":case"usable-in-future":return c.keyLoadPromise.then(h=>{const{keyInfo:p}=h;return a.key=p.decryptdata.key,{frag:t,keyInfo:p}})}switch(this.log(`${this.keyIdToKeyInfo[l]?"Rel":"L"}oading${a.keyId?" keyId: "+Ul(a.keyId):""} URI: ${a.uri} from ${t.type} ${t.level}`),c=this.keyIdToKeyInfo[l]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return a.keyFormat==="identity"?this.loadKeyHTTP(c,t):this.loadKeyEME(c,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(c,t);default:return Promise.reject(this.createKeyLoadError(t,zt.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${a.method}"`)))}}loadKeyEME(t,n){const r={frag:n,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var i;if(!t.decryptdata.keyId&&(i=n.initSegment)!=null&&i.data){const s=iAt(n.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${Ul(l)}`),t.decryptdata.keyId=l,Cm.setKeyIdForUri(t.decryptdata.uri,l))}}const a=this.emeController.loadKey(r);return(t.keyLoadPromise=a.then(s=>(t.mediaKeySessionContext=s,r))).catch(s=>{throw t.keyLoadPromise=null,"data"in s&&(s.data.frag=n),s})}return Promise.resolve(r)}loadKeyHTTP(t,n){const r=this.config,i=r.loader,a=new i(r);return n.keyLoader=t.loader=a,t.keyLoadPromise=new Promise((s,l)=>{const c={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},d=r.keyLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(v,g,y,S)=>{const{frag:k,keyInfo:C}=y,x=ij(C.decryptdata);if(!k.decryptdata||C!==this.keyIdToKeyInfo[x])return l(this.createKeyLoadError(k,zt.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),S));C.decryptdata.key=k.decryptdata.key=new Uint8Array(v.data),k.keyLoader=null,C.loader=null,s({frag:k,keyInfo:C})},onError:(v,g,y,S)=>{this.resetLoader(g),l(this.createKeyLoadError(n,zt.KEY_LOAD_ERROR,new Error(`HTTP Error ${v.code} loading key ${v.text}`),y,fo({url:c.url,data:void 0},v)))},onTimeout:(v,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,zt.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),y))},onAbort:(v,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,zt.INTERNAL_ABORTED,new Error("key loading aborted"),y))}};a.load(c,h,p)})}resetLoader(t){const{frag:n,keyInfo:r,url:i}=t,a=r.loader;n.keyLoader===a&&(n.keyLoader=null,r.loader=null);const s=ij(r.decryptdata)||i;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function ij(e){if(e.keyFormat!==Wa.FAIRPLAY){const t=e.keyId;if(t)return Ul(t)}return e.uri}function hce(e){const{type:t}=e;switch(t){case Si.AUDIO_TRACK:return Qn.AUDIO;case Si.SUBTITLE_TRACK:return Qn.SUBTITLE;default:return Qn.MAIN}}function oj(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class jDt{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(Pe.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Pe.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(Pe.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Pe.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const n=this.hls.config,r=n.pLoader,i=n.loader,a=r||i,s=new a(n);return this.loaders[t.type]=s,s}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const n=this.loaders[t];n&&n.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,n){const{url:r}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Si.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,n){const{id:r,level:i,pathwayId:a,url:s,deliveryDirectives:l,levelInfo:c}=n;this.load({id:r,level:i,pathwayId:a,responseType:"text",type:Si.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:c})}onAudioTrackLoading(t,n){const{id:r,groupId:i,url:a,deliveryDirectives:s,track:l}=n;this.load({id:r,groupId:i,level:null,responseType:"text",type:Si.AUDIO_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(t,n){const{id:r,groupId:i,url:a,deliveryDirectives:s,track:l}=n;this.load({id:r,groupId:i,level:null,responseType:"text",type:Si.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[Si.LEVEL];if(r){const i=r.context;i&&!n.levels.some(a=>a===i.levelOrTrack)&&(r.abort(),delete this.loaders[Si.LEVEL])}}load(t){var n;const r=this.hls.config;let i=this.getInternalLoader(t);if(i){const d=this.hls.logger,h=i.context;if(h&&h.levelOrTrack===t.levelOrTrack&&(h.url===t.url||h.deliveryDirectives&&!t.deliveryDirectives)){h.url===t.url?d.log(`[playlist-loader]: ignore ${t.url} ongoing request`):d.log(`[playlist-loader]: ignore ${t.url} in favor of ${h.url}`);return}d.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),i.abort()}let a;if(t.type===Si.MANIFEST?a=r.manifestLoadPolicy.default:a=bo({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(t),Bn((n=t.deliveryDirectives)==null?void 0:n.part)){let d;if(t.type===Si.LEVEL&&t.level!==null?d=this.hls.levels[t.level].details:t.type===Si.AUDIO_TRACK&&t.id!==null?d=this.hls.audioTracks[t.id].details:t.type===Si.SUBTITLE_TRACK&&t.id!==null&&(d=this.hls.subtitleTracks[t.id].details),d){const h=d.partTarget,p=d.targetduration;if(h&&p){const v=Math.max(h*3,p*.8)*1e3;a=bo({},a,{maxTimeToFirstByteMs:Math.min(v,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(v,a.maxTimeToFirstByteMs)})}}}const s=a.errorRetry||a.timeoutRetry||{},l={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},c={onSuccess:(d,h,p,v)=>{const g=this.getInternalLoader(p);this.resetInternalLoader(p.type);const y=d.data;h.parsing.start=performance.now(),mf.isMediaPlaylist(y)||p.type!==Si.MANIFEST?this.handleTrackOrLevelPlaylist(d,h,p,v||null,g):this.handleMasterPlaylist(d,h,p,v)},onError:(d,h,p,v)=>{this.handleNetworkError(h,p,!1,d,v)},onTimeout:(d,h,p)=>{this.handleNetworkError(h,p,!0,void 0,d)}};i.load(t,l,c)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:n},forceStartLoad:r}=this.hls;(t||r)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${n}`),this.hls.startLoad(n))}handleMasterPlaylist(t,n,r,i){const a=this.hls,s=t.data,l=oj(t,r),c=mf.parseMasterPlaylist(s,l);if(c.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,r,c.playlistParsingError,i,n);return}const{contentSteering:d,levels:h,sessionData:p,sessionKeys:v,startTimeOffset:g,variableList:y}=c;this.variableList=y,h.forEach(x=>{const{unknownCodecs:E}=x;if(E){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:T,videoCodec:D}=x;for(let P=E.length;P--;){const M=E[P];E_(M,"audio",_)?(x.audioCodec=T=T?`${T},${M}`:M,Wy.audio[T.substring(0,4)]=2,E.splice(P,1)):E_(M,"video",_)&&(x.videoCodec=D=D?`${D},${M}`:M,Wy.video[D.substring(0,4)]=2,E.splice(P,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":C}=mf.parseMasterPlaylistMedia(s,l,c);S.length&&!S.some(E=>!E.url)&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new ss({}),bitrate:0,url:""})),a.trigger(Pe.MANIFEST_LOADED,{levels:h,audioTracks:S,subtitles:k,captions:C,contentSteering:d,url:l,stats:n,networkDetails:i,sessionData:p,sessionKeys:v,startTimeOffset:g,variableList:y})}handleTrackOrLevelPlaylist(t,n,r,i,a){const s=this.hls,{id:l,level:c,type:d}=r,h=oj(t,r),p=Bn(c)?c:Bn(l)?l:0,v=hce(r),g=mf.parseLevelPlaylist(t.data,h,p,v,0,this.variableList);if(d===Si.MANIFEST){const y={attrs:new ss({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+w2e(g,0),s.trigger(Pe.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:h,stats:n,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),r.levelDetails=g,this.handlePlaylistLoaded(g,t,n,r,i,a)}handleManifestParsingError(t,n,r,i,a){this.hls.trigger(Pe.ERROR,{type:ur.NETWORK_ERROR,details:zt.MANIFEST_PARSING_ERROR,fatal:n.type===Si.MANIFEST,url:t.url,err:r,error:r,reason:r.message,response:t,context:n,networkDetails:i,stats:a})}handleNetworkError(t,n,r=!1,i,a){let s=`A network ${r?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${t.type}`;t.type===Si.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===Si.AUDIO_TRACK||t.type===Si.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=zt.UNKNOWN,d=!1;const h=this.getInternalLoader(t);switch(t.type){case Si.MANIFEST:c=r?zt.MANIFEST_LOAD_TIMEOUT:zt.MANIFEST_LOAD_ERROR,d=!0;break;case Si.LEVEL:c=r?zt.LEVEL_LOAD_TIMEOUT:zt.LEVEL_LOAD_ERROR,d=!1;break;case Si.AUDIO_TRACK:c=r?zt.AUDIO_TRACK_LOAD_TIMEOUT:zt.AUDIO_TRACK_LOAD_ERROR,d=!1;break;case Si.SUBTITLE_TRACK:c=r?zt.SUBTITLE_TRACK_LOAD_TIMEOUT:zt.SUBTITLE_LOAD_ERROR,d=!1;break}h&&this.resetInternalLoader(t.type);const p={type:ur.NETWORK_ERROR,details:c,fatal:d,url:t.url,loader:h,context:t,error:l,networkDetails:n,stats:a};if(i){const v=n?.url||t.url;p.response=fo({url:v,data:void 0},i)}this.hls.trigger(Pe.ERROR,p)}handlePlaylistLoaded(t,n,r,i,a,s){const l=this.hls,{type:c,level:d,levelOrTrack:h,id:p,groupId:v,deliveryDirectives:g}=i,y=oj(n,i),S=hce(i);let k=typeof i.level=="number"&&S===Qn.MAIN?d:void 0;const C=t.playlistParsingError;if(C){if(this.hls.logger.warn(`${C} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(Pe.ERROR,{type:ur.NETWORK_ERROR,details:zt.LEVEL_PARSING_ERROR,fatal:!1,url:y,error:C,reason:C.message,response:n,context:i,level:k,parent:S,networkDetails:a,stats:r});return}t.playlistParsingError=null}if(!t.fragments.length){const x=t.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(Pe.ERROR,{type:ur.NETWORK_ERROR,details:zt.LEVEL_EMPTY_ERROR,fatal:!1,url:y,error:x,reason:x.message,response:n,context:i,level:k,parent:S,networkDetails:a,stats:r});return}switch(t.live&&s&&(s.getCacheAge&&(t.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(t.ageHeader))&&(t.ageHeader=0)),c){case Si.MANIFEST:case Si.LEVEL:if(k){if(!h)k=0;else if(h!==l.levels[k]){const x=l.levels.indexOf(h);x>-1&&(k=x)}}l.trigger(Pe.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===Si.MANIFEST});break;case Si.AUDIO_TRACK:l.trigger(Pe.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:v||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case Si.SUBTITLE_TRACK:l.trigger(Pe.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:v||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class xu{static get version(){return I_}static isMSESupported(){return C4e()}static isSupported(){return $Dt()}static getMediaSource(){return R0()}static get Events(){return Pe}static get MetadataSchema(){return ic}static get ErrorTypes(){return ur}static get ErrorDetails(){return zt}static get DefaultConfig(){return xu.defaultConfig?xu.defaultConfig:xDt}static set DefaultConfig(t){xu.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new UG,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const n=this.logger=G5t(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=wDt(xu.DefaultConfig,t,n);this.userConfig=t,r.progressive&&EDt(r,n);const{abrController:i,bufferController:a,capLevelController:s,errorController:l,fpsController:c}=r,d=new l(this),h=this.abrController=new i(this),p=new VAt(this),v=r.interstitialsController,g=v?this.interstitialsController=new v(this,xu):null,y=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),C=new jDt(this),x=r.contentSteeringController,E=x?new x(this):null,_=this.levelController=new MDt(this,E),T=new PDt(this),D=new FDt(this.config,this.logger),P=this.streamController=new NDt(this,p,D),M=this.gapController=new LDt(this,p);S.setStreamController(P),k.setStreamController(P);const O=[C,_,P];g&&O.splice(1,0,g),E&&O.splice(1,0,E),this.networkControllers=O;const L=[h,y,M,S,k,T,p];this.audioTrackController=this.createController(r.audioTrackController,O);const B=r.audioStreamController;B&&O.push(this.audioStreamController=new B(this,p,D)),this.subtitleTrackController=this.createController(r.subtitleTrackController,O);const j=r.subtitleStreamController;j&&O.push(this.subtititleStreamController=new j(this,p,D)),this.createController(r.timelineController,L),D.emeController=this.emeController=this.createController(r.emeController,L),this.cmcdController=this.createController(r.cmcdController,L),this.latencyController=this.createController(RDt,L),this.coreComponents=L,O.push(d);const H=d.onErrorOut;typeof H=="function"&&this.on(Pe.ERROR,H,d),this.on(Pe.MANIFEST_LOADED,C.onManifestLoaded,C)}createController(t,n){if(t){const r=new t(this);return n&&n.push(r),r}return null}on(t,n,r=this){this._emitter.on(t,n,r)}once(t,n,r=this){this._emitter.once(t,n,r)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,n,r=this,i){this._emitter.off(t,n,r,i)}listeners(t){return this._emitter.listeners(t)}emit(t,n,r){return this._emitter.emit(t,n,r)}trigger(t,n){if(this.config.debug)return this.emit(t,t,n);try{return this.emit(t,t,n)}catch(r){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const i=t===Pe.ERROR;this.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.INTERNAL_EXCEPTION,fatal:i,event:t,error:r}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(Pe.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const a=new Error(`attachMedia failed: invalid argument (${t})`);this.trigger(Pe.ERROR,{type:ur.OTHER_ERROR,details:zt.ATTACH_MEDIA_ERROR,fatal:!0,error:a});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const n="media"in t,r=n?t.media:t,i=n?t:{media:r};this._media=r,this.trigger(Pe.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Pe.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(Pe.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,i=this._url=PG.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),n&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(Pe.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,n){this.logger.log(`startLoad(${t+(n?", ":"")})`),this.started=!0,this.resumeBuffering();for(let r=0;r{t.resumeBuffering&&t.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(t=>{t.pauseBuffering&&t.pauseBuffering()}))}get inFlightFragments(){const t={[Qn.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[Qn.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[Qn.SUBTITLE]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,n=t?.currentTime;this.detachMedia(),t&&(this.attachMedia(t),n&&this.startLoad(n))}removeLevel(t){this.levelController.removeLevel(t)}get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=L7t()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return t===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),t!==-1&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const n=!!t;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){wAt(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:n}}=this;if(!t)return 0;const r=t.length;for(let i=0;i=n)return i;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:n,maxHdcpLevel:r}=this;let i;if(n===-1&&t!=null&&t.length?i=t.length-1:i=n,r)for(let a=i;a--;){const s=t[a].attrs["HDCP-LEVEL"];if(s&&s<=r)return a}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var n;return((n=this.audioTrackController)==null?void 0:n.setAudioOption(t))||null}setSubtitleOption(t){var n;return((n=this.subtitleTrackController)==null?void 0:n.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const n=this.audioTrackController;n&&(n.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const n=this.subtitleTrackController;n&&(n.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return t?t.subtitleDisplay:!1}set subtitleDisplay(t){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!!((t=this.bufferController)!=null&&t.bufferedToEnd)}get interstitialsManager(){var t;return((t=this.interstitialsController)==null?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,n=this.allAudioTracks){const r=c2e(n);return l2e(t,r,navigator.mediaCapabilities)}}xu.defaultConfig=void 0;const VDt={class:"player-header"},zDt={class:"player-controls"},UDt={class:"compact-button-group"},HDt={key:4,class:"compact-btn selector-btn"},WDt={key:0,style:{color:"#ff4d4f","font-size":"10px"}},GDt={key:5,class:"compact-btn selector-btn"},KDt={key:6,class:"compact-btn selector-btn"},qDt={key:7,class:"compact-btn selector-btn"},YDt={__name:"PlayerHeader",props:{episodeName:{type:String,default:"未知选集"},playerType:{type:String,default:"default"},episodes:{type:Array,default:()=>[]},autoNextEnabled:{type:Boolean,default:!1},loopEnabled:{type:Boolean,default:!1},countdownEnabled:{type:Boolean,default:!1},skipEnabled:{type:Boolean,default:!1},showAutoNext:{type:Boolean,default:!0},showCountdown:{type:Boolean,default:!0},showDebugButton:{type:Boolean,default:!1},qualities:{type:Array,default:()=>[]},currentQuality:{type:String,default:"默认"},showParserSelector:{type:Boolean,default:!1},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>null},isLiveMode:{type:Boolean,default:!1}},emits:["toggle-auto-next","toggle-loop","toggle-countdown","player-change","open-skip-settings","toggle-debug","close","proxy-change","quality-change","parser-change"],setup(e,{emit:t}){const n=e,r=t,i=ue("disabled"),a=ue([]),s=DG(),l=ue(""),c=ue([]),d=ue(!1),h=ue(!1),p=E=>{if(!E)return"未知";const _=E.indexOf("#");return _!==-1&&_{try{const E=JSON.parse(localStorage.getItem("addressSettings")||"{}"),_=E.proxyPlayEnabled||!1,T=E.proxyPlay||"";if(a.value=[],g(),_&&T){const D=a.value.findIndex(P=>P.url===T);if(D!==-1){const P=a.value.splice(D,1)[0];a.value.unshift(P)}else{const P=p(T);a.value.unshift({value:T,label:`${P} (当前)`,url:T})}i.value=T}else i.value="disabled";console.log("代理播放配置加载完成:",{enabled:_,current:T,optionsCount:a.value.length,selected:i.value})}catch(E){console.error("加载代理播放配置失败:",E),i.value="disabled"}},g=()=>{try{JSON.parse(localStorage.getItem("address-history-proxy-play")||"[]").forEach(T=>{const D=T.url||T.value||"";if(!D)return;if(!a.value.some(M=>M.url===D)){const M=p(D);a.value.push({value:D,label:M,url:D})}}),console.log("已加载代理播放历史记录:",a.value.length,"个选项")}catch(E){console.error("加载代理播放历史记录失败:",E)}},y=E=>{if(!(!E||E==="disabled"))try{const _=p(E),T=Date.now(),D="address-history-proxy-play",P=JSON.parse(localStorage.getItem(D)||"[]"),M=P.findIndex(O=>O.url===E);M!==-1&&P.splice(M,1),P.unshift({url:E,timestamp:T}),P.length>10&&P.splice(10),localStorage.setItem(D,JSON.stringify(P)),console.log("已保存代理播放地址到历史记录:",E)}catch(_){console.error("保存代理播放历史记录失败:",_)}},S=E=>{i.value=E,E!=="disabled"&&y(E),r("proxy-change",E)},k=async()=>{try{d.value=!0,c.value=s.enabledParsers.map(T=>({id:T.id,name:T.name,type:T.type,url:T.url,enabled:T.enabled})),h.value=MT();const E=localStorage.getItem("selectedParser");let _=!1;E&&c.value.find(T=>T.id===E)?(l.value=E,_=!0):c.value.length>0&&(l.value=c.value[0].id,_=!0),console.log("解析器配置加载完成:",{count:c.value.length,selected:l.value,snifferEnabled:h.value,shouldTriggerParsing:_}),_&&l.value&&n.parseData&&(console.log("🚀 [自动解析] 触发默认解析器解析"),dn(()=>{C(l.value)}))}catch(E){console.error("加载解析器配置失败:",E)}finally{d.value=!1}},C=E=>{l.value=E;const _=c.value.find(T=>T.id===E);_&&localStorage.setItem("selectedParser",JSON.stringify(_)),r("parser-change",{parserId:E,parser:_,parseData:n.parseData}),console.log("解析器已切换:",_)},x=E=>{E.key==="addressSettings"&&v()};return hn(()=>{v(),n.showParserSelector&&k(),window.addEventListener("storage",x),window.addEventListener("addressSettingsChanged",v)}),It(()=>n.showParserSelector,E=>{E&&k()}),ii(()=>{window.removeEventListener("storage",x),window.removeEventListener("addressSettingsChanged",v)}),(E,_)=>{const T=Te("a-option"),D=Te("a-select");return z(),X("div",VDt,[I("h3",null,"正在播放: "+Ne(e.episodeName),1),I("div",zDt,[I("div",UDt,[e.showDebugButton?(z(),X("div",{key:0,class:"compact-btn debug-btn",onClick:_[0]||(_[0]=P=>E.$emit("toggle-debug")),title:"调试信息"},[..._[8]||(_[8]=[xh('调试',2)])])):Ie("",!0),!e.isLiveMode&&e.showAutoNext&&e.episodes.length>1?(z(),X("div",{key:1,class:de(["compact-btn",{active:e.autoNextEnabled}]),onClick:_[1]||(_[1]=P=>E.$emit("toggle-auto-next"))},[..._[9]||(_[9]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M8 5v14l11-7z",fill:"currentColor"})],-1),I("span",{class:"btn-text"},"自动连播",-1)])],2)):Ie("",!0),e.isLiveMode?Ie("",!0):(z(),X("div",{key:2,class:de(["compact-btn",{active:e.loopEnabled}]),onClick:_[2]||(_[2]=P=>E.$emit("toggle-loop")),title:"循环播放当前选集"},[..._[10]||(_[10]=[xh('循环播放',2)])],2)),!e.isLiveMode&&e.showCountdown&&e.episodes.length>1?(z(),X("div",{key:3,class:de(["compact-btn",{active:e.countdownEnabled}]),onClick:_[3]||(_[3]=P=>E.$emit("toggle-countdown"))},[..._[11]||(_[11]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"12,6 12,12 16,14",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"倒计时",-1)])],2)):Ie("",!0),e.showParserSelector?(z(),X("div",HDt,[_[12]||(_[12]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$(D,{"model-value":l.value,onChange:C,class:"compact-select",size:"small",loading:d.value,disabled:!c.value.length},{default:fe(()=>[(z(!0),X(Pt,null,cn(c.value,P=>(z(),Ze(T,{key:P.id,value:P.id,title:`${P.name} (${P.type==="1"?"JSON":"嗅探"})`,disabled:P.type==="0"&&!h.value},{default:fe(()=>[He(" 解析:"+Ne(P.name)+" ",1),P.type==="0"&&!h.value?(z(),X("span",WDt," (需嗅探器) ")):Ie("",!0)]),_:2},1032,["value","title","disabled"]))),128))]),_:1},8,["model-value","loading","disabled"])])):Ie("",!0),e.isLiveMode?Ie("",!0):(z(),X("div",GDt,[_[14]||(_[14]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$(D,{"model-value":i.value,onChange:S,class:"compact-select",size:"small"},{default:fe(()=>[$(T,{value:"disabled",title:"关闭代理播放功能"},{default:fe(()=>[..._[13]||(_[13]=[He("代理播放:关闭",-1)])]),_:1}),(z(!0),X(Pt,null,cn(a.value,P=>(z(),Ze(T,{key:P.value,value:P.value,title:`${P.label} -完整链接: ${P.url||P.value}`},{default:fe(()=>[He(" 代理播放:"+Ne(P.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])),e.qualities&&e.qualities.length>1?(z(),X("div",KDt,[_[15]||(_[15]=xh('HD',1)),$(D,{"model-value":e.currentQuality,onChange:_[4]||(_[4]=P=>E.$emit("quality-change",P)),class:"compact-select",size:"small"},{default:fe(()=>[(z(!0),X(Pt,null,cn(e.qualities,P=>(z(),Ze(T,{key:P.name,value:P.name,title:`切换到${P.name}画质`},{default:fe(()=>[He(" 画质:"+Ne(P.name),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])):Ie("",!0),e.isLiveMode?Ie("",!0):(z(),X("div",qDt,[_[18]||(_[18]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),I("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor","stroke-width":"2"})],-1)),$(D,{"model-value":e.playerType,onChange:_[5]||(_[5]=P=>E.$emit("player-change",P)),class:"compact-select",size:"small"},{default:fe(()=>[$(T,{value:"default",title:"使用浏览器默认的HTML5视频播放器"},{default:fe(()=>[..._[16]||(_[16]=[He("默认播放器",-1)])]),_:1}),$(T,{value:"artplayer",title:"使用ArtPlayer播放器,支持更多功能和自定义选项"},{default:fe(()=>[..._[17]||(_[17]=[He("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])])),e.isLiveMode?Ie("",!0):(z(),X("div",{key:8,class:de(["compact-btn",{active:e.skipEnabled}]),onClick:_[6]||(_[6]=P=>E.$emit("open-skip-settings"))},[..._[19]||(_[19]=[xh('片头片尾',2)])],2)),I("div",{class:"compact-btn close-btn",onClick:_[7]||(_[7]=P=>E.$emit("close"))},[..._[20]||(_[20]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"关闭",-1)])])])])])}}},nK=cr(YDt,[["__scopeId","data-v-e55c9055"]]),XDt={class:"dialog-header"},ZDt={class:"dialog-content"},JDt={class:"setting-row"},QDt={class:"setting-control"},ePt={key:1,class:"unit"},tPt={class:"setting-row"},nPt={class:"setting-control"},rPt={key:1,class:"unit"},iPt={class:"dialog-footer"},oPt={__name:"SkipSettingsDialog",props:{visible:{type:Boolean,default:!1},skipIntroEnabled:{type:Boolean,default:!1},skipOutroEnabled:{type:Boolean,default:!1},skipIntroSeconds:{type:Number,default:90},skipOutroSeconds:{type:Number,default:90}},emits:["close","save"],setup(e,{emit:t}){const n=e,r=t,i=ue(n.skipIntroEnabled),a=ue(n.skipOutroEnabled),s=ue(n.skipIntroSeconds),l=ue(n.skipOutroSeconds);It(()=>n.skipIntroEnabled,h=>{i.value=h}),It(()=>n.skipOutroEnabled,h=>{a.value=h}),It(()=>n.skipIntroSeconds,h=>{s.value=h}),It(()=>n.skipOutroSeconds,h=>{l.value=h});const c=()=>{r("close")},d=()=>{r("save",{skipIntroEnabled:i.value,skipOutroEnabled:a.value,skipIntroSeconds:s.value,skipOutroSeconds:l.value})};return(h,p)=>{const v=Te("a-switch"),g=Te("a-input-number"),y=Te("a-button");return e.visible?(z(),X("div",{key:0,class:"skip-settings-overlay",onClick:c},[I("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=cs(()=>{},["stop"]))},[I("div",XDt,[p[8]||(p[8]=I("h3",null,"片头片尾设置",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=S=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",ZDt,[I("div",JDt,[p[9]||(p[9]=I("div",{class:"setting-label"},[I("span",null,"跳过片头"),I("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),I("div",QDt,[$(v,{modelValue:i.value,"onUpdate:modelValue":p[1]||(p[1]=S=>i.value=S),size:"small"},null,8,["modelValue"]),i.value?(z(),Ze(g,{key:0,modelValue:s.value,"onUpdate:modelValue":p[2]||(p[2]=S=>s.value=S),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):Ie("",!0),i.value?(z(),X("span",ePt,"秒")):Ie("",!0)])]),I("div",tPt,[p[10]||(p[10]=I("div",{class:"setting-label"},[I("span",null,"跳过片尾"),I("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),I("div",nPt,[$(v,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(z(),Ze(g,{key:0,modelValue:l.value,"onUpdate:modelValue":p[4]||(p[4]=S=>l.value=S),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):Ie("",!0),a.value?(z(),X("span",rPt,"秒")):Ie("",!0)])]),p[11]||(p[11]=I("div",{class:"setting-hint-global"},[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),He(" 设置将自动保存并应用到所有播放器 ")],-1))]),I("div",iPt,[$(y,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:fe(()=>[...p[12]||(p[12]=[He(" 取消 ",-1)])]),_:1}),$(y,{type:"primary",onClick:d,size:"small"},{default:fe(()=>[...p[13]||(p[13]=[He(" 保存 ",-1)])]),_:1})])])])):Ie("",!0)}}},w4e=cr(oPt,[["__scopeId","data-v-c8c7504a"]]),sPt={class:"dialog-header"},aPt={class:"dialog-content"},lPt={class:"info-section"},uPt={class:"section-header"},cPt=["disabled"],dPt={class:"info-content"},fPt={class:"url-display"},hPt={key:0,class:"info-section"},pPt={class:"section-header"},vPt={class:"section-actions"},mPt=["disabled"],gPt=["disabled"],yPt=["disabled"],bPt={class:"info-content"},_Pt={class:"url-display proxy-url"},SPt={class:"info-section"},kPt={class:"section-header"},xPt=["disabled"],CPt={class:"info-content"},wPt={class:"headers-display"},EPt={key:0,class:"no-data"},TPt={key:1,class:"headers-text"},APt={class:"info-section"},IPt={class:"info-content"},LPt={class:"format-info"},DPt={class:"format-value"},PPt={class:"info-section"},RPt={class:"info-content"},MPt={class:"player-info"},$Pt={class:"player-value"},OPt={__name:"DebugInfoDialog",props:{visible:{type:Boolean,default:!1},videoUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},playerType:{type:String,default:"default"},detectedFormat:{type:String,default:""},proxyUrl:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,i=F(()=>!n.headers||Object.keys(n.headers).length===0?"":Object.entries(n.headers).map(([h,p])=>`${h}: ${p}`).join(` -`)),a=()=>{r("close")},s=async(h,p)=>{if(!h){yt.warning(`${p}为空,无法复制`);return}try{await navigator.clipboard.writeText(h),yt.success(`${p}已复制到剪贴板`)}catch(v){console.error("复制失败:",v),yt.error("复制失败,请手动选择复制")}},l=async()=>{const h=["=== DrPlayer 视频调试信息 ===","","📹 视频直链:",n.videoUrl||"暂无","",...n.proxyUrl&&n.proxyUrl!==n.videoUrl?["🔄 代理后链接:",n.proxyUrl,""]:[],"📋 请求头信息:",i.value||"暂无","","🎬 视频格式:",n.detectedFormat||"未知","","⚙️ 播放器类型:",n.playerType==="artplayer"?"ArtPlayer":"默认播放器","","生成时间: "+new Date().toLocaleString()].join(` -`);await s(h,"所有调试信息")},c=h=>{if(!h){yt.warning("视频链接为空,无法调起VLC播放器");return}try{const p=`vlc://${h}`,v=document.createElement("iframe");v.style.display="none",v.src=p,document.body.appendChild(v),setTimeout(()=>{document.body.removeChild(v)},1e3),yt.success("正在尝试调起VLC播放器..."),console.log("调起VLC播放器:",p)}catch(p){console.error("调起VLC播放器失败:",p),yt.error("调起VLC播放器失败,请确保已安装VLC播放器")}},d=h=>{if(!h){yt.warning("视频链接为空,无法调起MPV播放器");return}try{const p=`mpv://${h}`,v=document.createElement("iframe");v.style.display="none",v.src=p,document.body.appendChild(v),setTimeout(()=>{document.body.removeChild(v)},1e3),yt.success("正在尝试调起MPV播放器..."),console.log("调起MPV播放器:",p)}catch(p){console.error("调起MPV播放器失败:",p),yt.error("调起MPV播放器失败,请确保已安装MPV播放器")}};return(h,p)=>e.visible?(z(),X("div",{key:0,class:"debug-info-overlay",onClick:a},[I("div",{class:"debug-info-dialog",onClick:p[6]||(p[6]=cs(()=>{},["stop"]))},[I("div",sPt,[p[8]||(p[8]=I("h3",null,"🔧 视频调试信息",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=v=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",aPt,[I("div",lPt,[I("div",uPt,[p[10]||(p[10]=I("h4",null,"📹 视频直链",-1)),I("button",{class:"copy-btn",onClick:p[1]||(p[1]=v=>s(e.videoUrl,"视频直链")),disabled:!e.videoUrl},[...p[9]||(p[9]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制 ",-1)])],8,cPt)]),I("div",dPt,[I("div",fPt,Ne(e.videoUrl||"暂无视频链接"),1)])]),e.proxyUrl&&e.proxyUrl!==e.videoUrl?(z(),X("div",hPt,[I("div",pPt,[p[14]||(p[14]=I("h4",null,"🔄 代理后链接",-1)),I("div",vPt,[I("button",{class:"copy-btn",onClick:p[2]||(p[2]=v=>s(e.proxyUrl,"代理后链接")),disabled:!e.proxyUrl},[...p[11]||(p[11]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制 ",-1)])],8,mPt),I("button",{class:"external-player-btn vlc-btn",onClick:p[3]||(p[3]=v=>c(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用VLC播放器打开"},[...p[12]||(p[12]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("polygon",{points:"5,3 19,12 5,21",fill:"currentColor"})],-1),He(" VLC ",-1)])],8,gPt),I("button",{class:"external-player-btn mpv-btn",onClick:p[4]||(p[4]=v=>d(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用MPV播放器打开"},[...p[13]||(p[13]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})],-1),He(" MPV ",-1)])],8,yPt)])]),I("div",bPt,[I("div",_Pt,Ne(e.proxyUrl),1)])])):Ie("",!0),I("div",SPt,[I("div",kPt,[p[16]||(p[16]=I("h4",null,"📋 请求头信息",-1)),I("button",{class:"copy-btn",onClick:p[5]||(p[5]=v=>s(i.value,"请求头信息")),disabled:!i.value},[...p[15]||(p[15]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制 ",-1)])],8,xPt)]),I("div",CPt,[I("div",wPt,[i.value?(z(),X("pre",TPt,Ne(i.value),1)):(z(),X("div",EPt,"暂无请求头信息"))])])]),I("div",APt,[p[18]||(p[18]=I("div",{class:"section-header"},[I("h4",null,"🎬 视频格式")],-1)),I("div",IPt,[I("div",LPt,[p[17]||(p[17]=I("span",{class:"format-label"},"检测格式:",-1)),I("span",DPt,Ne(e.detectedFormat||"未知"),1)])])]),I("div",PPt,[p[20]||(p[20]=I("div",{class:"section-header"},[I("h4",null,"⚙️ 播放器信息")],-1)),I("div",RPt,[I("div",MPt,[p[19]||(p[19]=I("span",{class:"player-label"},"当前播放器:",-1)),I("span",$Pt,Ne(e.playerType==="artplayer"?"ArtPlayer":"默认播放器"),1)])])]),I("div",{class:"action-section"},[I("button",{class:"copy-all-btn",onClick:l},[...p[21]||(p[21]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制所有调试信息 ",-1)])])])])])])):Ie("",!0)}},rK=cr(OPt,[["__scopeId","data-v-d9075ed4"]]);function E4e(e={}){const{onSkipToNext:t=()=>{},getCurrentTime:n=()=>0,setCurrentTime:r=()=>{},getDuration:i=()=>0}=e,a=ue(!1),s=ue(!1),l=ue(!1),c=ue(90),d=ue(90),h=ue(!1),p=ue(!1),v=ue(null),g=ue(0),y=ue(!1),S=ue(0),k=ue(!1),C=ue(0),x=F(()=>s.value||l.value),E="drplayer_skip_settings",_=()=>{try{const Q=localStorage.getItem(E);if(console.log("从 localStorage 加载设置:",Q),Q){const se=JSON.parse(Q);s.value=se.skipIntroEnabled||!1,l.value=se.skipOutroEnabled||!1,c.value=se.skipIntroSeconds||90,d.value=se.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:d.value})}else console.log("没有找到保存的设置,使用默认值")}catch(Q){console.warn("加载片头片尾设置失败:",Q)}},T=Q=>{try{s.value=Q.skipIntroEnabled,l.value=Q.skipOutroEnabled,c.value=Q.skipIntroSeconds,d.value=Q.skipOutroSeconds;const se={skipIntroEnabled:Q.skipIntroEnabled,skipOutroEnabled:Q.skipOutroEnabled,skipIntroSeconds:Q.skipIntroSeconds,skipOutroSeconds:Q.skipOutroSeconds};localStorage.setItem(E,JSON.stringify(se)),O()}catch(se){console.warn("保存片头片尾设置失败:",se)}},D=()=>{if(!s.value||h.value)return!1;const Q=n(),se=Date.now();return y.value||S.value>0&&se-S.value<3e3||k.value||C.value>0&&se-C.value<2e3?!1:Q<=1&&Q<=c.value?(console.log(`立即跳过片头:从 ${Q.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=se,!0):!1},P=()=>{if(!s.value||h.value)return;const Q=n(),se=Date.now();y.value||S.value>0&&se-S.value<3e3||k.value||C.value>0&&se-C.value<2e3||g.value>0&&se-g.value<1e3||Q<=c.value&&(console.log(`已跳过片头:从 ${Q.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=se)},M=()=>{if(!l.value||p.value)return;const Q=i();if(Q<=0)return;const se=n(),ae=Q-d.value,re=Date.now();re-g.value<2e3||se>=ae&&se{D()||P(),M()};let L=null;const B=()=>{L&&clearTimeout(L),L=setTimeout(()=>{s.value&&!h.value&&P(),l.value&&!p.value&&M()},200)},j=()=>{h.value=!1,p.value=!1,g.value=0,y.value=!1,S.value=0,k.value=!1,C.value=0,v.value&&(clearTimeout(v.value),v.value=null)},H=()=>{y.value=!0,console.log("用户开始拖动进度条")},U=()=>{y.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},K=()=>{k.value=!0,console.log("全屏状态开始变化")},Y=()=>{k.value=!1,C.value=Date.now(),console.log("全屏状态变化结束")},ie=()=>{j(),_()},te=()=>{a.value=!0},W=()=>{a.value=!1},q=()=>{v.value&&(clearTimeout(v.value),v.value=null)};return ii(()=>{q()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:d,skipIntroApplied:h,skipOutroTimer:v,skipEnabled:x,loadSkipSettings:_,saveSkipSettings:T,applySkipSettings:O,applyIntroSkipImmediate:D,handleTimeUpdate:B,resetSkipState:j,initSkipSettings:ie,openSkipSettingsDialog:te,closeSkipSettingsDialog:W,cleanup:q,onUserSeekStart:H,onUserSeekEnd:U,onFullscreenChangeStart:K,onFullscreenChangeEnd:Y}}const Xv={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},T4e=[{value:"no-referrer",label:"不发送Referrer"},{value:"no-referrer-when-downgrade",label:"HTTPS到HTTP时不发送"},{value:"origin",label:"只发送源域名"},{value:"origin-when-cross-origin",label:"跨域时只发送源域名"},{value:"same-origin",label:"同源时发送完整Referrer"},{value:"strict-origin",label:"严格源域名策略"},{value:"strict-origin-when-cross-origin",label:"跨域时严格控制"},{value:"unsafe-url",label:"总是发送完整Referrer(不安全)"}];function iK(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function R_(e){let t=document.querySelector('meta[name="referrer"]');t||(t=document.createElement("meta"),t.setAttribute("name","referrer"),document.head.appendChild(t)),t.setAttribute("content",e),console.log(`已设置全局referrer策略为: ${e}`)}function GT(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function BPt(e,t=null){const n=$h();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=iK()||Xv.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),R_(r),t&>(t,r),r}const pce={referrerPolicy:Xv.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[Xv.NO_REFERRER,Xv.ORIGIN,Xv.SAME_ORIGIN,Xv.UNSAFE_URL]};function $h(){const e=localStorage.getItem("csp_bypass_config");return e?{...pce,...JSON.parse(e)}:pce}function aU(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function oK(e,t){return $h().autoBypass?BPt(e,t):iK()}var sj={exports:{}},vce;function NPt(){return vce||(vce=1,(function(e,t){(function(r,i){e.exports=i()})(self,function(){return(function(){var n={"./node_modules/es6-promise/dist/es6-promise.js":(function(s,l,c){/*! +`),d=[],h=t?gLt(t.baseTime,t.timescale):0;let p="00:00.000",v=0,g=0,y,S=!0;l.oncue=function(k){const w=n[r];let x=n.ccOffset;const E=(v-h)/9e4;if(w!=null&&w.new&&(g!==void 0?x=n.ccOffset=w.start:cDt(n,r,E)),E){if(!t){y=new Error("Missing initPTS for VTT MPEGTS");return}x=E-n.presentationOffset}const _=k.endTime-k.startTime,T=rc((k.startTime+x-g)*9e4,i*9e4)/9e4;k.startTime=Math.max(T,0),k.endTime=Math.max(T+_,0);const D=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(D)),k.id||(k.id=tK(k.startTime,k.endTime,D)),k.endTime>0&&d.push(k)},l.onparsingerror=function(k){y=k},l.onflush=function(){if(y){s(y);return}a(d)},c.forEach(k=>{if(S)if(ej(k,"X-TIMESTAMP-MAP=")){S=!1,k.slice(16).split(",").forEach(w=>{ej(w,"LOCAL:")?p=w.slice(6):ej(w,"MPEGTS:")&&(v=parseInt(w.slice(7)))});try{g=uDt(p)/1e3}catch(w){y=w}return}else k===""&&(S=!1);l.parse(k+` +`)}),l.flush()}const tj="stpp.ttml.im1t",y4e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,b4e=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,fDt={left:"start",center:"center",right:"end",start:"start",end:"end"};function ice(e,t,n,r){const i=mi(new Uint8Array(e),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=i.map(l=>fc(l)),s=mLt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(hDt(l,s)))}catch(l){r(l)}}function hDt(e,t){const i=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const a={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(a).reduce((p,v)=>(p[v]=i.getAttribute(`ttp:${v}`)||a[v],p),{}),l=i.getAttribute("xml:space")!=="preserve",c=oce(nj(i,"styling","style")),d=oce(nj(i,"layout","region")),h=nj(i,"body","[begin]");return[].map.call(h,p=>{const v=_4e(p,l);if(!v||!p.hasAttribute("begin"))return null;const g=ij(p.getAttribute("begin"),s),y=ij(p.getAttribute("dur"),s);let S=ij(p.getAttribute("end"),s);if(g===null)throw sce(p);if(S===null){if(y===null)throw sce(p);S=g+y}const k=new eK(g-t,S-t,v);k.id=tK(k.startTime,k.endTime,k.text);const w=d[p.getAttribute("region")],x=c[p.getAttribute("style")],E=pDt(w,x,c),{textAlign:_}=E;if(_){const T=fDt[_];T&&(k.lineAlign=T),k.align=_}return bo(k,E),k}).filter(p=>p!==null)}function nj(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function oce(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function _4e(e,t){return[].slice.call(e.childNodes).reduce((n,r,i)=>{var a;return r.nodeName==="br"&&i?n+` +`:(a=r.childNodes)!=null&&a.length?_4e(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function pDt(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let i=null;const a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=e!=null&&e.hasAttribute("style")?e.getAttribute("style"):null;return s&&n.hasOwnProperty(s)&&(i=n[s]),a.reduce((l,c)=>{const d=rj(t,r,c)||rj(e,r,c)||rj(i,r,c);return d&&(l[c]=d),l},{})}function rj(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function sce(e){return new Error(`Could not parse ttml timestamp ${e}`)}function ij(e,t){if(!e)return null;let n=v4e(e);return n===null&&(y4e.test(e)?n=vDt(e,t):b4e.test(e)&&(n=mDt(e,t))),n}function vDt(e,t){const n=y4e.exec(e),r=(n[4]|0)+(n[5]|0)/t.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+r/t.frameRate}function mDt(e,t){const n=b4e.exec(e),r=Number(n[1]);switch(n[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}class Ox{constructor(t,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,n,r){(this.startTime===null||this.startTime>t)&&(this.startTime=t),this.endTime=n,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class gDt{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=lce(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Pe.FRAG_LOADING,this.onFragLoading,this),t.on(Pe.FRAG_LOADED,this.onFragLoaded,this),t.on(Pe.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Pe.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Pe.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Pe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Pe.FRAG_LOADING,this.onFragLoading,this),t.off(Pe.FRAG_LOADED,this.onFragLoaded,this),t.off(Pe.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Pe.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Pe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Pe.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new Ox(this,"textTrack1"),n=new Ox(this,"textTrack2"),r=new Ox(this,"textTrack3"),i=new Ox(this,"textTrack4");this.cea608Parser1=new rce(1,t,n),this.cea608Parser2=new rce(3,r,i)}addCues(t,n,r,i,a){let s=!1;for(let l=a.length;l--;){const c=a[l],d=yDt(c[0],c[1],n,r);if(d>=0&&(c[0]=Math.min(c[0],n),c[1]=Math.max(c[1],r),s=!0,d/(r-n)>.5))return}if(s||a.push([n,r]),this.config.renderTextTracksNatively){const l=this.captionsTracks[t];this.Cues.newCue(l,n,r,i)}else{const l=this.Cues.newCue(null,n,r,i);this.hls.trigger(Pe.CUES_PARSED,{type:"captions",cues:l,track:t})}}onInitPtsFound(t,{frag:n,id:r,initPTS:i,timescale:a,trackId:s}){const{unparsedVttFrags:l}=this;r===Qn.MAIN&&(this.initPTS[n.cc]={baseTime:i,timescale:a,trackId:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(c=>{this.initPTS[c.frag.cc]?this.onFragLoaded(Pe.FRAG_LOADED,c):this.hls.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(t,n){const{media:r}=this;if(r)for(let i=0;i{Q1(i[a]),delete i[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=lce(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const n=t.textTracks;if(n)for(let r=0;ra.textCodec===tj);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(Z2e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?c8(s.textTracks):null;if(this.tracks.forEach((c,d)=>{let h;if(l){let p=null;for(let v=0;vd!==null).map(d=>d.label);c.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${c.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(Pe.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(t,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(r=>{const i=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!i)return;const a=`textTrack${i[1]}`,s=this.captionsProperties[a];s&&(s.label=r.name,r.lang&&(s.languageCode=r.lang),s.media=r)})}closedCaptionsForLevel(t){const n=this.hls.levels[t.level];return n?.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,n){if(this.enabled&&n.frag.type===Qn.MAIN){var r,i;const{cea608Parser1:a,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:d}=n.frag,h=(r=(i=n.part)==null?void 0:i.index)!=null?r:-1;a&&s&&(d!==l+1||d===l&&h!==this.lastPartIndex+1||c!==this.lastCc)&&(a.reset(),s.reset()),this.lastCc=c,this.lastSn=d,this.lastPartIndex=h}}onFragLoaded(t,n){const{frag:r,payload:i}=n;if(r.type===Qn.SUBTITLE)if(i.byteLength){const a=r.decryptdata,s="stats"in n;if(a==null||!a.encrypted||s){const l=this.tracks[r.level],c=this.vttCCs;c[r.cc]||(c[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),l&&l.textCodec===tj?this._parseIMSC1(r,i):this._parseVTTs(n)}}else this.hls.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;ice(n,this.initPTS[t.cc],i=>{this._appendCues(i,t.level),r.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},i=>{r.logger.log(`Failed to parse IMSC1: ${i}`),r.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:i})})}_parseVTTs(t){var n;const{frag:r,payload:i}=t,{initPTS:a,unparsedVttFrags:s}=this,l=a.length-1;if(!a[r.cc]&&l===-1){s.push(t);return}const c=this.hls,d=(n=r.initSegment)!=null&&n.data?td(r.initSegment.data,new Uint8Array(i)).buffer:i;dDt(d,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},h=>{const p=h.message==="Missing initPTS for VTT MPEGTS";p?s.push(t):this._fallbackToIMSC1(r,i),c.logger.log(`Failed to parse VTT cue: ${h}`),!(p&&l>r.cc)&&c.trigger(Pe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||ice(n,this.initPTS[t.cc],()=>{r.textCodec=tj,this._parseIMSC1(t,n)},()=>{r.textCodec="wvtt"})}_appendCues(t,n){const r=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[n];if(!i||i.mode==="disabled")return;t.forEach(a=>d4e(i,a))}else{const i=this.tracks[n];if(!i)return;const a=i.default?"default":"subtitles"+n;r.trigger(Pe.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===Qn.SUBTITLE&&this.onFragLoaded(Pe.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,n){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:i}=n;if(!(r.type===Qn.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;aoU(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&i!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>oU(l[c],n,i))}}}extractCea608Data(t){const n=[[],[]],r=t[0]&31;let i=2;for(let a=0;a=16?c--:c++;const g=g4e(d.trim()),y=tK(t,n,g);e!=null&&(p=e.cues)!=null&&p.getCueById(y)||(s=new h(t,n,g),s.id=y,s.line=v+1,s.align="left",s.position=10+Math.min(80,Math.floor(c*8/32)*10),i.push(s))}return e&&i.length&&(i.sort((v,g)=>v.line==="auto"||g.line==="auto"?0:v.line>8&&g.line>8?g.line-v.line:v.line-g.line),i.forEach(v=>d4e(e,v))),i}};function SDt(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const kDt=/(\d+)-(\d+)\/(\d+)/;class uce{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||EDt,this.controller=new self.AbortController,this.stats=new RG}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,n,r){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const a=wDt(t,this.controller.signal),s=t.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:d}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),n.timeout=c&&Bn(c)?c:d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,t,this.response))},n.timeout),(P_(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var v;this.response=this.loader=p;const g=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,t,this.response))},d-(g-i.loading.start)),!p.ok){const{status:S,statusText:k}=p;throw new TDt(k||"fetch, bad network response",S,p)}i.loading.first=g,i.total=CDt(p.headers)||i.total;const y=(v=this.callbacks)==null?void 0:v.onProgress;return y&&Bn(n.highWaterMark)?this.loadProgressively(p,i,t,n.highWaterMark,y):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var v,g;const y=this.response;if(!y)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const S=p[l];S&&(i.loaded=i.total=S);const k={url:y.url,data:p,code:y.status},w=(v=this.callbacks)==null?void 0:v.onProgress;w&&!Bn(n.highWaterMark)&&w(i,t,p,y),(g=this.callbacks)==null||g.onSuccess(k,i,t,y)}).catch(p=>{var v;if(self.clearTimeout(this.requestTimeout),i.aborted)return;const g=p&&p.code||0,y=p?p.message:null;(v=this.callbacks)==null||v.onError({code:g,text:y},t,p?p.details:null,i)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,r,i=0,a){const s=new D2e,l=t.body.getReader(),c=()=>l.read().then(d=>{if(d.done)return s.dataLength&&a(n,r,s.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const h=d.value,p=h.length;return n.loaded+=p,p=i&&a(n,r,s.flush().buffer,t)):a(n,r,h.buffer,t),c()}).catch(()=>Promise.reject());return c()}}function wDt(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(bo({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function xDt(e){const t=kDt.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function CDt(e){const t=e.get("Content-Range");if(t){const r=xDt(t);if(Bn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function EDt(e,t){return new self.Request(e.url,t)}class TDt extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const ADt=/^age:\s*[\d.]+\s*$/im;class k4e{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new RG,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,n,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=n,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:t,context:n}=this;if(!t||!n)return;const r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const a=this.xhrSetup;a?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return a(r,n.url)}).catch(s=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",n.url,!0),a(r,n.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,n,t)}).catch(s=>{var l;(l=this.callbacks)==null||l.onError({code:r.status,text:s.message},n,r,i)}):this.openAndSendXhr(r,n,t)}openAndSendXhr(t,n,r){t.readyState||t.open("GET",n.url,!0);const i=n.headers,{maxTimeToFirstByteMs:a,maxLoadTimeMs:s}=r.loadPolicy;if(i)for(const l in i)t.setRequestHeader(l,i[l]);n.rangeEnd&&t.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=n.responseType,self.clearTimeout(this.requestTimeout),r.timeout=a&&Bn(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:r}=this;if(!t||!n)return;const i=n.readyState,a=this.config;if(!r.aborted&&i>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),a.timeout!==a.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),a.timeout=a.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const d=n.status,h=n.responseType==="text"?n.responseText:null;if(d>=200&&d<300){const y=h??n.response;if(y!=null){var s,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const S=n.responseType==="arraybuffer"?y.byteLength:y.length;r.loaded=r.total=S,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const k=(s=this.callbacks)==null?void 0:s.onProgress;k&&k(r,t,y,n);const w={url:n.responseURL,data:y,code:d};(l=this.callbacks)==null||l.onSuccess(w,r,t,n);return}}const p=a.loadPolicy.errorRetry,v=r.retry,g={url:t.url,data:void 0,code:d};if(VT(p,v,!1,g))this.retry(p);else{var c;po.error(`${d} while loading ${t.url}`),(c=this.callbacks)==null||c.onError({code:d,text:n.statusText},t,n,r)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(VT(t,n,!0))this.retry(t);else{var r;po.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:n,stats:r}=this;this.retryDelay=BG(t,r.retry),r.retry++,po.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n?.url}, retrying ${r.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total)}getCacheAge(){let t=null;if(this.loader&&ADt.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const IDt={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},LDt=fo(fo({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:k4e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:zAt,bufferController:PLt,capLevelController:ZG,errorController:KAt,fpsController:R7t,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:_2e,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:IDt},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},DDt()),{},{subtitleStreamController:W7t,subtitleTrackController:$7t,timelineController:gDt,audioStreamController:ALt,audioTrackController:ILt,emeController:wy,cmcdController:I7t,contentSteeringController:D7t,interstitialsController:H7t});function DDt(){return{cueHandler:_Dt,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function PDt(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const r=aU(e),i=["manifest","level","frag"],a=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return i.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,c=t[l]===void 0,d=[];a.forEach(h=>{const p=`${s}Loading${h}`,v=t[p];if(v!==void 0&&c){d.push(p);const g=r[l].default;switch(t[l]={default:g},h){case"TimeOut":g.maxLoadTimeMs=v,g.maxTimeToFirstByteMs=v;break;case"MaxRetry":g.errorRetry.maxNumRetry=v,g.timeoutRetry.maxNumRetry=v;break;case"RetryDelay":g.errorRetry.retryDelayMs=v,g.timeoutRetry.retryDelayMs=v;break;case"MaxRetryTimeout":g.errorRetry.maxRetryDelayMs=v,g.timeoutRetry.maxRetryDelayMs=v;break}}}),d.length&&n.warn(`hls.js config: "${d.join('", "')}" setting(s) are deprecated, use "${l}": ${Ao(t[l])}`)}),fo(fo({},r),t)}function aU(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(aU):Object.keys(e).reduce((t,n)=>(t[n]=aU(e[n]),t),{}):e}function RDt(e,t){const n=e.loader;n!==uce&&n!==k4e?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):SDt()&&(e.loader=uce,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const d8=2,MDt=.1,ODt=.05,$Dt=100;class BDt extends v2e{constructor(t,n){super("gap-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(Pe.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,n){this.setInterval($Dt),this.mediaSource=n.mediaSource;const r=this.media=n.media;Kl(r,"playing",this.onMediaPlaying),Kl(r,"waiting",this.onMediaWaiting),Kl(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(Tu(r,"playing",this.onMediaPlaying),Tu(r,"waiting",this.onMediaWaiting),Tu(r,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,n){this.buffered=n.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(!((t=this.media)!=null&&t.readyState)||!this.hasBuffered)return;const n=this.media.currentTime;this.poll(n,this.lastCurrentTime),this.lastCurrentTime=n}poll(t,n){var r,i;const a=(r=this.hls)==null?void 0:r.config;if(!a)return;const s=this.media;if(!s)return;const{seeking:l}=s,c=this.seeking&&!l,d=!this.seeking&&l,h=s.paused&&!l||s.ended||s.playbackRate===0;if(this.seeking=l,t!==n){n&&(this.ended=0),this.moved=!0,l||(this.nudgeRetry=0,a.nudgeOnVideoHole&&!h&&t>n&&this.nudgeOnVideoHole(t,n)),this.waiting===0&&this.stallResolved(t);return}if(d||c){c&&this.stallResolved(t);return}if(h){this.nudgeRetry=0,this.stallResolved(t),!this.ended&&s.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(Pe.MEDIA_ENDED,{stalled:!1}));return}if(!Vr.getBuffered(s).length){this.nudgeRetry=0;return}const p=Vr.bufferInfo(s,t,0),v=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const D=cce(this.hls.inFlightFragments,t),P=p.len>d8,M=!v||D||v-t>d8&&!g.getPartialFragment(t);if(P||M)return;this.moved=!1}const y=(i=this.hls)==null?void 0:i.latestLevelDetails;if(!this.moved&&this.stalled!==null&&g){if(!(p.len>0)&&!v)return;const P=Math.max(v,p.start||0)-t,$=!!(y!=null&&y.live)?y.targetduration*2:d8,L=$x(t,g);if(P>0&&(P<=$||L)){s.paused||this._trySkipBufferHole(L);return}}const S=a.detectStallWithCurrentTimeMs,k=self.performance.now(),w=this.waiting;let x=this.stalled;if(x===null)if(w>0&&k-w=S||w)&&this.hls){var _;if(((_=this.mediaSource)==null?void 0:_.readyState)==="ended"&&!(y!=null&&y.live)&&Math.abs(t-(y?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(Pe.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const T=Vr.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(T,E,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(Pe.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,n){var r;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&i&&i.length>1&&t>i.end(0)){const a=Vr.bufferedInfo(Vr.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=Vr.timeRangesToArray(i),l=Vr.bufferedInfo(s,n,0).bufferedIndex;if(l>-1&&ll)&&h-d<1&&t-d<2){const p=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${d} -> ${h} buffered index: ${c}`);this.warn(p.message),this.media.currentTime+=1e-6;let v=$x(t,this.fragmentTracker);v&&"fragment"in v?v=v.fragment:v||(v=void 0);const g=Vr.bufferInfo(this.media,t,0);this.hls.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:v,buffer:g.len,bufferInfo:g})}}}}}_tryFixBufferStall(t,n,r){var i,a;const{fragmentTracker:s,media:l}=this,c=(i=this.hls)==null?void 0:i.config;if(!l||!s||!c)return;const d=(a=this.hls)==null?void 0:a.latestLevelDetails,h=$x(r,s);if((h||d!=null&&d.live&&r1&&t.len>c.maxBufferHole||t.nextStart&&(t.nextStart-rc.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,n){const r=this.fragmentTracker,i=t.nextStart;if(r&&i){const a=r.getFragAtPos(n,Qn.MAIN),s=r.getFragAtPos(i,Qn.MAIN);if(a&&s)return s.sn-a.sn<2}return!1}_reportStall(t){const{hls:n,media:r,stallReported:i,stalled:a}=this;if(!i&&a!==null&&r&&n){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${Ao(t)})`);this.warn(s.message),n.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:t.len,bufferInfo:t,stalled:{start:a}})}}_trySkipBufferHole(t){var n;const{fragmentTracker:r,media:i}=this,a=(n=this.hls)==null?void 0:n.config;if(!i||!r||!a)return 0;const s=i.currentTime,l=Vr.bufferInfo(i,s,0),c=s0&&l.len<1&&i.readyState<3,v=c-s;if(v>0&&(h||p)){if(v>a.maxBufferHole){let y=!1;if(s===0){const S=r.getAppendedFrag(0,Qn.MAIN);S&&c"u"))return self.VTTCue||self.TextTrackCue}function oj(e,t,n,r,i){let a=new e(t,n,"");try{a.value=r,i&&(a.type=i)}catch{a=new e(t,n,Ao(i?fo({type:i},r):r))}return a}const Bx=(()=>{const e=lU();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class FDt{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(Pe.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t&&(t.on(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Pe.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(Pe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Pe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Pe.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(t,n){var r;this.media=n.media,((r=n.overrides)==null?void 0:r.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var t;const n=(t=this.hls)==null?void 0:t.latestLevelDetails;n&&this.updateDateRangeCues(n)}onMediaDetaching(t,n){this.media=null,!n.transferMedia&&(this.id3Track&&(this.removeCues&&Q1(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const n=this.getID3Track(t.textTracks);return n.mode="hidden",n}getID3Track(t){if(this.media){for(let n=0;nBx&&(p=Bx),p-h<=0&&(p=h+NDt);for(let g=0;gh.type===oc.audioId3&&c:i==="video"?d=h=>h.type===oc.emsg&&l:d=h=>h.type===oc.audioId3&&c||h.type===oc.emsg&&l,oU(a,n,r,d)}}onLevelUpdated(t,{details:n}){this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(t,n){Math.abs(n.drift)>.01&&this.updateDateRangeCues(n.details)}updateDateRangeCues(t,n){if(!this.hls||!this.media)return;const{assetPlayerId:r,timelineOffset:i,enableDateRangeMetadataCues:a,interstitialsController:s}=this.hls.config;if(!a)return;const l=lU();if(r&&i&&!s){const{fragmentStart:S,fragmentEnd:k}=t;let w=this.assetCue;w?(w.startTime=S,w.endTime=k):l&&(w=this.assetCue=oj(l,S,k,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),w&&(w.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(w),w.addEventListener("enter",this.onEventCueEnter)))}if(!t.hasProgramDateTime)return;const{id3Track:c}=this,{dateRanges:d}=t,h=Object.keys(d);let p=this.dateRangeCuesAppended;if(c&&n){var v;if((v=c.cues)!=null&&v.length){const S=Object.keys(p).filter(k=>!h.includes(k));for(let k=S.length;k--;){var g;const w=S[k],x=(g=p[w])==null?void 0:g.cues;delete p[w],x&&Object.keys(x).forEach(E=>{const _=x[E];if(_){_.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(_)}catch{}}})}}else p=this.dateRangeCuesAppended={}}const y=t.fragments[t.fragments.length-1];if(!(h.length===0||!Bn(y?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(j!==w.id){const H=d[j];if(H.class===w.class&&H.startDate>w.startDate&&(!B||w.startDate.01&&(j.startTime=x,j.endTime=D);else if(l){let H=w.attr[B];aIt(B)&&(H=Y3e(H));const W=oj(l,x,D,{key:B,data:H},oc.dateRange);W&&(W.id=k,this.id3Track.addCue(W),_[B]=W,s&&(B==="X-ASSET-LIST"||B==="X-ASSET-URL")&&W.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:w,durationKnown:T}}}}}class jDt{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:n}=this,r=this.levelDetails;if(!n||!r)return;this.currentTime=n.currentTime;const i=this.computeLatency();if(i===null)return;this._latency=i;const{lowLatencyMode:a,maxLiveSyncPlaybackRate:s}=this.config;if(!a||s===1||!r.live)return;const l=this.targetLatency;if(l===null)return;const c=i-l,d=Math.min(this.maxLatency,l+r.targetduration);if(c.05&&this.forwardBufferLength>1){const p=Math.min(2,Math.max(1,s)),v=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,g=Math.min(p,Math.max(1,v));this.changeMediaPlaybackRate(n,g)}else n.playbackRate!==1&&n.playbackRate!==0&&this.changeMediaPlaybackRate(n,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return((t=this.hls)==null?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const t=this.levelDetails;if(t===null||this.hls===null)return null;const{holdBack:n,partHoldBack:r,targetduration:i}=t,{liveSyncDuration:a,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,c=this.hls.userConfig;let d=l&&r||n;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||d===0)&&(d=a!==void 0?a:s*i);const h=i;return d+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,h)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency;if(t===null||n===null)return null;const r=this.levelDetails;if(r===null)return null;const i=r.edge,a=t-n-this.edgeStalled,s=i-r.totalduration,l=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(s,a),l)}get drift(){const t=this.levelDetails;return t===null?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t}=this,n=this.levelDetails;if(!t||!n)return 0;const r=t.buffered.length;return(r?t.buffered.end(r-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Pe.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Pe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Pe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Pe.ERROR,this.onError,this))}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:n}){n.advanced&&this.onTimeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,n){var r;n.details===zt.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,n){var r,i;t.playbackRate!==n&&((r=this.hls)==null||r.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(i=this.targetLatency)==null?void 0:i.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${n}`),t.playbackRate=n)}estimateLiveEdge(){const t=this.levelDetails;return t===null?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return t===null?null:t-this.currentTime}}class VDt extends XG{constructor(t,n){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Pe.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Pe.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Pe.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Pe.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const r=this.hls.config.preferManagedMediaSource,i=[],a={},s={};let l=!1,c=!1,d=!1;n.levels.forEach(h=>{const p=h.attrs;let{audioCodec:v,videoCodec:g}=h;v&&(h.audioCodec=v=BT(v,r)||void 0),g&&(g=h.videoCodec=wAt(g));const{width:y,height:S,unknownCodecs:k}=h,w=k?.length||0;if(l||(l=!!(y&&S)),c||(c=!!g),d||(d=!!v),w||v&&!this.isAudioSupported(v)||g&&!this.isVideoSupported(g)){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}const{CODECS:x,"FRAME-RATE":E,"HDCP-LEVEL":_,"PATHWAY-ID":T,RESOLUTION:D,"VIDEO-RANGE":P}=p,$=`${`${T||"."}-`}${h.bitrate}-${D}-${E}-${x}-${P}-${_}`;if(a[$])if(a[$].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const L=s[$]+=1;h.attrs["PATHWAY-ID"]=new Array(L+1).join(".");const B=this.createLevel(h);a[$]=B,i.push(B)}else a[$].addGroupId("audio",p.AUDIO),a[$].addGroupId("text",p.SUBTITLES);else{const L=this.createLevel(h);a[$]=L,s[$]=1,i.push(L)}}),this.filterAndSortMediaOptions(i,n,l,c,d)}createLevel(t){const n=new I_(t),r=t.supplemental;if(r!=null&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){const i=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(i.message),n.supportedResult=a2e(i,[])}return n}isAudioSupported(t){return T_(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return T_(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,r,i,a){var s;let l=[],c=[],d=t;const h=((s=n.stats)==null?void 0:s.parsing)||{};if((r||i)&&a&&(d=d.filter(({videoCodec:x,videoRange:E,width:_,height:T})=>(!!x||!!(_&&T))&&RAt(E))),d.length===0){Promise.resolve().then(()=>{if(this.hls){let x="no level with compatible codecs found in manifest",E=x;n.levels.length&&(E=`one or more CODECS in variant not supported: ${Ao(n.levels.map(T=>T.attrs.CODECS).filter((T,D,P)=>P.indexOf(T)===D))}`,this.warn(E),x+=` (${E})`);const _=new Error(x);this.hls.trigger(Pe.ERROR,{type:cr.MEDIA_ERROR,details:zt.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:_,reason:E})}}),h.end=performance.now();return}n.audioTracks&&(l=n.audioTracks.filter(x=>!x.audioCodec||this.isAudioSupported(x.audioCodec)),fce(l)),n.subtitles&&(c=n.subtitles,fce(c));const p=d.slice(0);d.sort((x,E)=>{if(x.attrs["HDCP-LEVEL"]!==E.attrs["HDCP-LEVEL"])return(x.attrs["HDCP-LEVEL"]||"")>(E.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&x.height!==E.height)return x.height-E.height;if(x.frameRate!==E.frameRate)return x.frameRate-E.frameRate;if(x.videoRange!==E.videoRange)return NT.indexOf(x.videoRange)-NT.indexOf(E.videoRange);if(x.videoCodec!==E.videoCodec){const _=rue(x.videoCodec),T=rue(E.videoCodec);if(_!==T)return T-_}if(x.uri===E.uri&&x.codecSet!==E.codecSet){const _=$T(x.codecSet),T=$T(E.codecSet);if(_!==T)return T-_}return x.averageBitrate!==E.averageBitrate?x.averageBitrate-E.averageBitrate:0});let v=p[0];if(this.steering&&(d=this.steering.filterParsedLevels(d),d.length!==p.length)){for(let x=0;x_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=T)}break}const y=a&&!i,S=this.hls.config,k=!!(S.audioStreamController&&S.audioTrackController),w={levels:d,audioTracks:l,subtitleTracks:c,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:a,video:i,altAudio:k&&!y&&l.some(x=>!!x.url)};h.end=performance.now(),this.hls.trigger(Pe.MANIFEST_PARSED,w)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const n=this._levels;if(n.length===0)return;if(t<0||t>=n.length){const h=new Error("invalid level idx"),p=t<0;if(this.hls.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.LEVEL_SWITCH_ERROR,level:t,fatal:p,error:h,reason:h.message}),p)return;t=Math.min(t,n.length-1)}const r=this.currentLevelIndex,i=this.currentLevel,a=i?i.attrs["PATHWAY-ID"]:void 0,s=n[t],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=s,r===t&&i&&a===l)return;this.log(`Switching to level ${t} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${l?" with Pathway "+l:""} from level ${r}${a?" with Pathway "+a:""}`);const c={level:t,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(Pe.LEVEL_SWITCHING,c);const d=s.details;if(!d||d.live){const h=this.switchParams(s.uri,i?.details,d);this.loadPlaylist(h)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(this._startLevel===void 0){const t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const n=this.steering.pathways(),r=t.filter(i=>n.indexOf(i)!==-1);if(t.length<1){this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${n}`);return}this.steering.pathwayPriority=r}}onError(t,n){n.fatal||!n.context||n.context.type===ki.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===Qn.MAIN){const r=n.elementaryStreams;if(!Object.keys(r).some(a=>!!r[a]))return;const i=this._levels[n.level];i!=null&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(t,n){var r;const{level:i,details:a}=n,s=n.levelInfo;if(!s){var l;this.warn(`Invalid level index ${i}`),(l=n.deliveryDirectives)!=null&&l.skip&&(a.deltaUpdateFailed=!0);return}if(s===this.currentLevel||n.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let c=s.details;c===n.details&&c.advanced&&(c=void 0),this.playlistLoaded(i,n,c)}else(r=n.deliveryDirectives)!=null&&r.skip&&(a.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=this.getUrlWithDirectives(t.uri,n),i=this.currentLevelIndex,a=t.attrs["PATHWAY-ID"],s=t.details,l=s?.age;this.log(`Loading level index ${i}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${a?" Pathway "+a:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${r}`),this.hls.trigger(Pe.LEVEL_LOADING,{url:r,level:i,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:n||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}removeLevel(t){var n;if(this._levels.length===1)return;const r=this._levels.filter((a,s)=>s!==t?!0:(this.steering&&this.steering.removeLevel(a),a===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,a.details&&a.details.fragments.forEach(l=>l.level=-1)),!1));A2e(r),this._levels=r,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const i=r.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(Pe.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(t,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:n,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(Pe.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function fce(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function w4e(){return self.SourceBuffer||self.WebKitSourceBuffer}function x4e(){if(!$0())return!1;const t=w4e();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function zDt(){if(!x4e())return!1;const e=$0();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(A_(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(A_(t,"audio"))))}function UDt(){var e;const t=w4e();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const HDt=100;class WDt extends zG{constructor(t,n,r){super(t,n,r,"stream-controller",Qn.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const i=this.media,a=i?i.currentTime:null;if(a===null||!Bn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(i,a,Qn.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${a} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Pe.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Pe.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Pe.BUFFER_CREATED,this.onBufferCreated,this),t.on(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Pe.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Pe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Pe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Pe.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Pe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Pe.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Pe.BUFFER_CREATED,this.onBufferCreated,this),t.off(Pe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Pe.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(t,n){if(this.levels){const{lastCurrentTime:r,hls:i}=this;if(this.stopLoad(),this.setInterval(HDt),this.level=-1,!this.startFragRequested){let a=i.startLevel;a===-1&&(i.config.testBandwidth&&this.levels.length>1?(a=0,this.bitrateTest=!0):a=i.firstAutoLevel),i.nextLoadLevel=a,this.level=i.loadLevel,this._hasEnoughToStart=!!n}r>0&&t===-1&&!n&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r),this.state=nn.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=nn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case nn.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t?.[n],i=r?.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=nn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=nn.IDLE;break}break}case nn.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===nn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),(t=this.media)!=null&&t.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:n,levels:r,media:i}=this;if(n===null||!i&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const a=this.buffering?t.nextLoadLevel:t.loadLevel;if(!(r!=null&&r[a]))return;const s=r[a],l=this.getMainFwdBufferInfo();if(l===null)return;const c=this.getLevelDetails();if(c&&this._streamEnded(l,c)){const S={};this.altAudio===2&&(S.type="video"),this.hls.trigger(Pe.BUFFER_EOS,S),this.state=nn.ENDED;return}if(!this.buffering)return;t.loadLevel!==a&&t.manualLevel===-1&&this.log(`Adapting to level ${a} from level ${this.level}`),this.level=t.nextLoadLevel=a;const d=s.details;if(!d||this.state===nn.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=nn.WAITING_LEVEL,this.startFragRequested=!1;return}const h=l.len,p=this.getMaxBufferLength(s.maxBitrate);if(h>=p)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const v=this.backtrackFragment?this.backtrackFragment.start:l.end;let g=this.getNextFragment(v,d);if(this.couldBacktrack&&!this.fragPrevious&&g&&qs(g)&&this.fragmentTracker.getState(g)!==da.OK){var y;const k=((y=this.backtrackFragment)!=null?y:g).sn-d.startSN,w=d.fragments[k-1];w&&g.cc===w.cc&&(g=w,this.fragmentTracker.removeFragment(w))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(g&&this.isLoopLoading(g,v)){if(!g.gap){const k=this.audioOnly&&!this.altAudio?To.AUDIO:To.VIDEO,w=(k===To.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;w&&this.afterBufferFlushed(w,k,Qn.MAIN)}g=this.getNextFragmentLoopLoading(g,d,l,Qn.MAIN,p)}g&&(g.initSegment&&!g.initSegment.data&&!this.bitrateTest&&(g=g.initSegment),this.loadFragment(g,s,v))}loadFragment(t,n,r){const i=this.fragmentTracker.getState(t);i===da.NOT_LOADED||i===da.PARTIAL?qs(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):super.loadFragment(t,n,r):this._loadInitSegment(t,n):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,Qn.MAIN)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:n}=this;if(n!=null&&n.readyState){let r;const i=this.getAppendedFrag(n.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const a=this.getLevelDetails();if(a!=null&&a.live){const l=this.getMainFwdBufferInfo();if(!l||l.len=s-n.maxFragLookUpTolerance&&a<=l;if(i!==null&&r.duration>i&&(a{this.hls&&this.hls.trigger(Pe.AUDIO_TRACK_SWITCHED,n)}),r.trigger(Pe.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(Pe.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=FT(n.url,this.hls);if(r){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r?2:0,this.tick()}onBufferCreated(t,n){const r=n.tracks;let i,a,s=!1;for(const l in r){const c=r[l];if(c.id==="main"){if(a=l,i=c,l==="video"){const d=r[l];d&&(this.videoBuffer=d.buffer)}}else s=!0}s&&i?(this.log(`Alternate track found, use ${a}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(t,n){const{frag:r,part:i}=n,a=r.type===Qn.MAIN;if(a){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===nn.PARSED&&(this.state=nn.IDLE);return}const l=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),qs(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}const s=this.media;s&&(!this._hasEnoughToStart&&Vr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),a&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,n){var r;if(n.fatal){this.state=nn.ERROR;return}switch(n.details){case zt.FRAG_GAP:case zt.FRAG_PARSING_ERROR:case zt.FRAG_DECRYPT_ERROR:case zt.FRAG_LOAD_ERROR:case zt.FRAG_LOAD_TIMEOUT:case zt.KEY_LOAD_ERROR:case zt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Qn.MAIN,n);break;case zt.LEVEL_LOAD_ERROR:case zt.LEVEL_LOAD_TIMEOUT:case zt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===nn.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===ki.LEVEL&&(this.state=nn.IDLE);break;case zt.BUFFER_ADD_CODEC_ERROR:case zt.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case zt.BUFFER_FULL_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case zt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=nn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==To.AUDIO||!this.altAudio){const r=(n===To.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,Qn.MAIN),this.tick())}}onLevelsUpdated(t,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const n=t.currentTime;let r=this.startPosition;if(r>=0&&n0&&(c{const{hls:i}=this,a=r?.frag;if(!a||this.fragContextChanged(a))return;n.fragmentError=0,this.state=nn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=a.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),i.trigger(Pe.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===nn.STOPPED||this.state===nn.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}_handleTransmuxComplete(t){const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:a}=t,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}const{frag:l,part:c,level:d}=s,{video:h,text:p,id3:v,initSegment:g}=i,{details:y}=d,S=this.altAudio?void 0:i.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=nn.PARSING,g){const k=g.tracks;if(k){const _=l.initSegment||l;if(this.unhandledEncryptionError(g,l))return;this._bufferInitSegment(d,k,_,a),r.trigger(Pe.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const w=g.initPTS,x=g.timescale,E=this.initPTS[l.cc];if(Bn(w)&&(!E||E.baseTime!==w||E.timescale!==x)){const _=g.trackId;this.initPTS[l.cc]={baseTime:w,timescale:x,trackId:_},r.trigger(Pe.INIT_PTS_FOUND,{frag:l,id:n,initPTS:w,timescale:x,trackId:_})}}if(h&&y){S&&h.type==="audiovideo"&&this.logMuxedErr(l);const k=y.fragments[l.sn-1-y.startSN],w=l.sn===y.startSN,x=!k||l.cc>k.cc;if(i.independent!==!1){const{startPTS:E,endPTS:_,startDTS:T,endDTS:D}=h;if(c)c.elementaryStreams[h.type]={startPTS:E,endPTS:_,startDTS:T,endDTS:D};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!x&&(this.couldBacktrack=!0),h.dropped&&h.independent){const P=this.getMainFwdBufferInfo(),M=(P?P.end:this.getLoadPosition())+this.config.maxBufferHole,$=h.firstKeyFramePTS?h.firstKeyFramePTS:E;if(!w&&M<$-this.config.maxBufferHole&&!x){this.backtrack(l);return}else x&&(l.gap=!0);l.setElementaryStreamInfo(h.type,l.start,_,l.start,D,!0)}else w&&E-(y.appliedTimelineOffset||0)>d8&&(l.gap=!0);l.setElementaryStreamInfo(h.type,E,_,T,D),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(h,l,c,a,w||x)}else if(w||x)l.gap=!0;else{this.backtrack(l);return}}if(S){const{startPTS:k,endPTS:w,startDTS:x,endDTS:E}=S;c&&(c.elementaryStreams[To.AUDIO]={startPTS:k,endPTS:w,startDTS:x,endDTS:E}),l.setElementaryStreamInfo(To.AUDIO,k,w,x,E),this.bufferFragmentData(S,l,c,a)}if(y&&v!=null&&v.samples.length){const k={id:n,frag:l,details:y,samples:v.samples};r.trigger(Pe.FRAG_PARSING_METADATA,k)}if(y&&p){const k={id:n,frag:l,details:y,samples:p.samples};r.trigger(Pe.FRAG_PARSING_USERDATA,k)}}logMuxedErr(t){this.warn(`${qs(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,i){if(this.state!==nn.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&(delete n.audio,n.audiovideo&&this.logMuxedErr(r));const{audio:a,video:s,audiovideo:l}=n;if(a){const d=t.audioCodec;let h=i8(a.codec,d);h==="mp4a"&&(h="mp4a.40.5");const p=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){h&&(h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5");const v=a.metadata;v&&"channelCount"in v&&(v.channelCount||1)!==1&&p.indexOf("firefox")===-1&&(h="mp4a.40.5")}h&&h.indexOf("mp4a.40.5")!==-1&&p.indexOf("android")!==-1&&a.container!=="audio/mpeg"&&(h="mp4a.40.2",this.log(`Android: force audio codec to ${h}`)),d&&d!==h&&this.log(`Swapping manifest audio codec "${d}" for "${h}"`),a.levelCodec=h,a.id=Qn.MAIN,this.log(`Init audio buffer, container:${a.container}, codecs[selected/level/parsed]=[${h||""}/${d||""}/${a.codec}]`),delete n.audiovideo}if(s){s.levelCodec=t.videoCodec,s.id=Qn.MAIN;const d=s.codec;if(d?.length===4)switch(d){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${t.videoCodec||""}/${d}]${s.codec!==d?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete n.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${t.codecs}/${l.codec}]`),delete n.video,delete n.audio);const c=Object.keys(n);if(c.length){if(this.hls.trigger(Pe.BUFFER_CODECS,n),!this.hls)return;c.forEach(d=>{const p=n[d].initSegment;p!=null&&p.byteLength&&this.hls.trigger(Pe.BUFFER_APPENDING,{type:d,data:p,frag:r,part:null,chunkMeta:i,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,Qn.MAIN)}get maxBufferLength(){const{levels:t,level:n}=this,r=t?.[n];return r?this.getMaxBufferLength(r.maxBitrate):this.config.maxBufferLength}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=nn.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(Vr.isBuffered(t,r)?n=this.getAppendedFrag(r):Vr.isBuffered(t,r+.1)&&(n=this.getAppendedFrag(r+.1)),n){this.backtrackFragment=null;const i=this.fragPlaying,a=n.level;(!i||n.sn!==i.sn||i.level!==a)&&(this.fragPlaying=n,this.hls.trigger(Pe.FRAG_CHANGED,{frag:n}),(!i||i.level!==a)&&this.hls.trigger(Pe.LEVEL_SWITCHED,{level:a}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;return Bn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(Bn(n)){const r=this.getLevelDetails(),i=this.currentFrag||(r?Hm(null,r.fragments,n):null);if(i){const a=i.programDateTime;if(a!==null){const s=a+(n-i.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class GDt extends od{constructor(t,n){super("key-loader",n),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const r in this.keyIdToKeyInfo){const i=this.keyIdToKeyInfo[r].loader;if(i){var n;if(t&&t!==((n=i.context)==null?void 0:n.frag.type))return;i.abort()}}}detach(){for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t].loader;n&&n.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(t,n=zt.KEY_LOAD_ERROR,r,i,a){return new gh({type:cr.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:a,error:r,networkDetails:i})}loadClear(t,n,r){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(n.length)for(let i=0,a=n.length;i{if(!this.emeController)return;s.setKeyFormat(l);const c=s8(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const i=z4(this.config);if(i.length)return this.emeController.getKeySystemAccess(i)}}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then(n=>this.loadInternal(t,n)):this.loadInternal(t)}loadInternal(t,n){var r,i;n&&t.setKeyFormat(n);const a=t.decryptdata;if(!a){const d=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(t,zt.KEY_LOAD_ERROR,d))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,zt.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=sj(a);let c=this.keyIdToKeyInfo[l];if((r=c)!=null&&r.decryptdata.key)return a.key=c.decryptdata.key,Promise.resolve({frag:t,keyInfo:c});if(this.emeController&&(i=c)!=null&&i.keyLoadPromise)switch(this.emeController.getKeyStatus(c.decryptdata)){case"usable":case"usable-in-future":return c.keyLoadPromise.then(h=>{const{keyInfo:p}=h;return a.key=p.decryptdata.key,{frag:t,keyInfo:p}})}switch(this.log(`${this.keyIdToKeyInfo[l]?"Rel":"L"}oading${a.keyId?" keyId: "+Ul(a.keyId):""} URI: ${a.uri} from ${t.type} ${t.level}`),c=this.keyIdToKeyInfo[l]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return a.keyFormat==="identity"?this.loadKeyHTTP(c,t):this.loadKeyEME(c,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(c,t);default:return Promise.reject(this.createKeyLoadError(t,zt.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${a.method}"`)))}}loadKeyEME(t,n){const r={frag:n,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var i;if(!t.decryptdata.keyId&&(i=n.initSegment)!=null&&i.data){const s=dAt(n.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${Ul(l)}`),t.decryptdata.keyId=l,Em.setKeyIdForUri(t.decryptdata.uri,l))}}const a=this.emeController.loadKey(r);return(t.keyLoadPromise=a.then(s=>(t.mediaKeySessionContext=s,r))).catch(s=>{throw t.keyLoadPromise=null,"data"in s&&(s.data.frag=n),s})}return Promise.resolve(r)}loadKeyHTTP(t,n){const r=this.config,i=r.loader,a=new i(r);return n.keyLoader=t.loader=a,t.keyLoadPromise=new Promise((s,l)=>{const c={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},d=r.keyLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(v,g,y,S)=>{const{frag:k,keyInfo:w}=y,x=sj(w.decryptdata);if(!k.decryptdata||w!==this.keyIdToKeyInfo[x])return l(this.createKeyLoadError(k,zt.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),S));w.decryptdata.key=k.decryptdata.key=new Uint8Array(v.data),k.keyLoader=null,w.loader=null,s({frag:k,keyInfo:w})},onError:(v,g,y,S)=>{this.resetLoader(g),l(this.createKeyLoadError(n,zt.KEY_LOAD_ERROR,new Error(`HTTP Error ${v.code} loading key ${v.text}`),y,fo({url:c.url,data:void 0},v)))},onTimeout:(v,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,zt.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),y))},onAbort:(v,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,zt.INTERNAL_ABORTED,new Error("key loading aborted"),y))}};a.load(c,h,p)})}resetLoader(t){const{frag:n,keyInfo:r,url:i}=t,a=r.loader;n.keyLoader===a&&(n.keyLoader=null,r.loader=null);const s=sj(r.decryptdata)||i;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function sj(e){if(e.keyFormat!==Wa.FAIRPLAY){const t=e.keyId;if(t)return Ul(t)}return e.uri}function hce(e){const{type:t}=e;switch(t){case ki.AUDIO_TRACK:return Qn.AUDIO;case ki.SUBTITLE_TRACK:return Qn.SUBTITLE;default:return Qn.MAIN}}function aj(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class KDt{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.on(Pe.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Pe.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(Pe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Pe.LEVEL_LOADING,this.onLevelLoading,this),t.off(Pe.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Pe.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(Pe.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const n=this.hls.config,r=n.pLoader,i=n.loader,a=r||i,s=new a(n);return this.loaders[t.type]=s,s}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const n=this.loaders[t];n&&n.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,n){const{url:r}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ki.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,n){const{id:r,level:i,pathwayId:a,url:s,deliveryDirectives:l,levelInfo:c}=n;this.load({id:r,level:i,pathwayId:a,responseType:"text",type:ki.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:c})}onAudioTrackLoading(t,n){const{id:r,groupId:i,url:a,deliveryDirectives:s,track:l}=n;this.load({id:r,groupId:i,level:null,responseType:"text",type:ki.AUDIO_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(t,n){const{id:r,groupId:i,url:a,deliveryDirectives:s,track:l}=n;this.load({id:r,groupId:i,level:null,responseType:"text",type:ki.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[ki.LEVEL];if(r){const i=r.context;i&&!n.levels.some(a=>a===i.levelOrTrack)&&(r.abort(),delete this.loaders[ki.LEVEL])}}load(t){var n;const r=this.hls.config;let i=this.getInternalLoader(t);if(i){const d=this.hls.logger,h=i.context;if(h&&h.levelOrTrack===t.levelOrTrack&&(h.url===t.url||h.deliveryDirectives&&!t.deliveryDirectives)){h.url===t.url?d.log(`[playlist-loader]: ignore ${t.url} ongoing request`):d.log(`[playlist-loader]: ignore ${t.url} in favor of ${h.url}`);return}d.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),i.abort()}let a;if(t.type===ki.MANIFEST?a=r.manifestLoadPolicy.default:a=bo({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(t),Bn((n=t.deliveryDirectives)==null?void 0:n.part)){let d;if(t.type===ki.LEVEL&&t.level!==null?d=this.hls.levels[t.level].details:t.type===ki.AUDIO_TRACK&&t.id!==null?d=this.hls.audioTracks[t.id].details:t.type===ki.SUBTITLE_TRACK&&t.id!==null&&(d=this.hls.subtitleTracks[t.id].details),d){const h=d.partTarget,p=d.targetduration;if(h&&p){const v=Math.max(h*3,p*.8)*1e3;a=bo({},a,{maxTimeToFirstByteMs:Math.min(v,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(v,a.maxTimeToFirstByteMs)})}}}const s=a.errorRetry||a.timeoutRetry||{},l={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},c={onSuccess:(d,h,p,v)=>{const g=this.getInternalLoader(p);this.resetInternalLoader(p.type);const y=d.data;h.parsing.start=performance.now(),mf.isMediaPlaylist(y)||p.type!==ki.MANIFEST?this.handleTrackOrLevelPlaylist(d,h,p,v||null,g):this.handleMasterPlaylist(d,h,p,v)},onError:(d,h,p,v)=>{this.handleNetworkError(h,p,!1,d,v)},onTimeout:(d,h,p)=>{this.handleNetworkError(h,p,!0,void 0,d)}};i.load(t,l,c)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:n},forceStartLoad:r}=this.hls;(t||r)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${n}`),this.hls.startLoad(n))}handleMasterPlaylist(t,n,r,i){const a=this.hls,s=t.data,l=aj(t,r),c=mf.parseMasterPlaylist(s,l);if(c.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,r,c.playlistParsingError,i,n);return}const{contentSteering:d,levels:h,sessionData:p,sessionKeys:v,startTimeOffset:g,variableList:y}=c;this.variableList=y,h.forEach(x=>{const{unknownCodecs:E}=x;if(E){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:T,videoCodec:D}=x;for(let P=E.length;P--;){const M=E[P];T_(M,"audio",_)?(x.audioCodec=T=T?`${T},${M}`:M,Wy.audio[T.substring(0,4)]=2,E.splice(P,1)):T_(M,"video",_)&&(x.videoCodec=D=D?`${D},${M}`:M,Wy.video[D.substring(0,4)]=2,E.splice(P,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":w}=mf.parseMasterPlaylistMedia(s,l,c);S.length&&!S.some(E=>!E.url)&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new ls({}),bitrate:0,url:""})),a.trigger(Pe.MANIFEST_LOADED,{levels:h,audioTracks:S,subtitles:k,captions:w,contentSteering:d,url:l,stats:n,networkDetails:i,sessionData:p,sessionKeys:v,startTimeOffset:g,variableList:y})}handleTrackOrLevelPlaylist(t,n,r,i,a){const s=this.hls,{id:l,level:c,type:d}=r,h=aj(t,r),p=Bn(c)?c:Bn(l)?l:0,v=hce(r),g=mf.parseLevelPlaylist(t.data,h,p,v,0,this.variableList);if(d===ki.MANIFEST){const y={attrs:new ls({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+C2e(g,0),s.trigger(Pe.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:h,stats:n,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),r.levelDetails=g,this.handlePlaylistLoaded(g,t,n,r,i,a)}handleManifestParsingError(t,n,r,i,a){this.hls.trigger(Pe.ERROR,{type:cr.NETWORK_ERROR,details:zt.MANIFEST_PARSING_ERROR,fatal:n.type===ki.MANIFEST,url:t.url,err:r,error:r,reason:r.message,response:t,context:n,networkDetails:i,stats:a})}handleNetworkError(t,n,r=!1,i,a){let s=`A network ${r?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${t.type}`;t.type===ki.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===ki.AUDIO_TRACK||t.type===ki.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=zt.UNKNOWN,d=!1;const h=this.getInternalLoader(t);switch(t.type){case ki.MANIFEST:c=r?zt.MANIFEST_LOAD_TIMEOUT:zt.MANIFEST_LOAD_ERROR,d=!0;break;case ki.LEVEL:c=r?zt.LEVEL_LOAD_TIMEOUT:zt.LEVEL_LOAD_ERROR,d=!1;break;case ki.AUDIO_TRACK:c=r?zt.AUDIO_TRACK_LOAD_TIMEOUT:zt.AUDIO_TRACK_LOAD_ERROR,d=!1;break;case ki.SUBTITLE_TRACK:c=r?zt.SUBTITLE_TRACK_LOAD_TIMEOUT:zt.SUBTITLE_LOAD_ERROR,d=!1;break}h&&this.resetInternalLoader(t.type);const p={type:cr.NETWORK_ERROR,details:c,fatal:d,url:t.url,loader:h,context:t,error:l,networkDetails:n,stats:a};if(i){const v=n?.url||t.url;p.response=fo({url:v,data:void 0},i)}this.hls.trigger(Pe.ERROR,p)}handlePlaylistLoaded(t,n,r,i,a,s){const l=this.hls,{type:c,level:d,levelOrTrack:h,id:p,groupId:v,deliveryDirectives:g}=i,y=aj(n,i),S=hce(i);let k=typeof i.level=="number"&&S===Qn.MAIN?d:void 0;const w=t.playlistParsingError;if(w){if(this.hls.logger.warn(`${w} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(Pe.ERROR,{type:cr.NETWORK_ERROR,details:zt.LEVEL_PARSING_ERROR,fatal:!1,url:y,error:w,reason:w.message,response:n,context:i,level:k,parent:S,networkDetails:a,stats:r});return}t.playlistParsingError=null}if(!t.fragments.length){const x=t.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(Pe.ERROR,{type:cr.NETWORK_ERROR,details:zt.LEVEL_EMPTY_ERROR,fatal:!1,url:y,error:x,reason:x.message,response:n,context:i,level:k,parent:S,networkDetails:a,stats:r});return}switch(t.live&&s&&(s.getCacheAge&&(t.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(t.ageHeader))&&(t.ageHeader=0)),c){case ki.MANIFEST:case ki.LEVEL:if(k){if(!h)k=0;else if(h!==l.levels[k]){const x=l.levels.indexOf(h);x>-1&&(k=x)}}l.trigger(Pe.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===ki.MANIFEST});break;case ki.AUDIO_TRACK:l.trigger(Pe.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:v||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case ki.SUBTITLE_TRACK:l.trigger(Pe.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:v||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class xu{static get version(){return L_}static isMSESupported(){return x4e()}static isSupported(){return zDt()}static getMediaSource(){return $0()}static get Events(){return Pe}static get MetadataSchema(){return oc}static get ErrorTypes(){return cr}static get ErrorDetails(){return zt}static get DefaultConfig(){return xu.defaultConfig?xu.defaultConfig:LDt}static set DefaultConfig(t){xu.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new UG,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const n=this.logger=Q5t(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=PDt(xu.DefaultConfig,t,n);this.userConfig=t,r.progressive&&RDt(r,n);const{abrController:i,bufferController:a,capLevelController:s,errorController:l,fpsController:c}=r,d=new l(this),h=this.abrController=new i(this),p=new qAt(this),v=r.interstitialsController,g=v?this.interstitialsController=new v(this,xu):null,y=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),w=new KDt(this),x=r.contentSteeringController,E=x?new x(this):null,_=this.levelController=new VDt(this,E),T=new FDt(this),D=new GDt(this.config,this.logger),P=this.streamController=new WDt(this,p,D),M=this.gapController=new BDt(this,p);S.setStreamController(P),k.setStreamController(P);const $=[w,_,P];g&&$.splice(1,0,g),E&&$.splice(1,0,E),this.networkControllers=$;const L=[h,y,M,S,k,T,p];this.audioTrackController=this.createController(r.audioTrackController,$);const B=r.audioStreamController;B&&$.push(this.audioStreamController=new B(this,p,D)),this.subtitleTrackController=this.createController(r.subtitleTrackController,$);const j=r.subtitleStreamController;j&&$.push(this.subtititleStreamController=new j(this,p,D)),this.createController(r.timelineController,L),D.emeController=this.emeController=this.createController(r.emeController,L),this.cmcdController=this.createController(r.cmcdController,L),this.latencyController=this.createController(jDt,L),this.coreComponents=L,$.push(d);const H=d.onErrorOut;typeof H=="function"&&this.on(Pe.ERROR,H,d),this.on(Pe.MANIFEST_LOADED,w.onManifestLoaded,w)}createController(t,n){if(t){const r=new t(this);return n&&n.push(r),r}return null}on(t,n,r=this){this._emitter.on(t,n,r)}once(t,n,r=this){this._emitter.once(t,n,r)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,n,r=this,i){this._emitter.off(t,n,r,i)}listeners(t){return this._emitter.listeners(t)}emit(t,n,r){return this._emitter.emit(t,n,r)}trigger(t,n){if(this.config.debug)return this.emit(t,t,n);try{return this.emit(t,t,n)}catch(r){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const i=t===Pe.ERROR;this.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.INTERNAL_EXCEPTION,fatal:i,event:t,error:r}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(Pe.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const a=new Error(`attachMedia failed: invalid argument (${t})`);this.trigger(Pe.ERROR,{type:cr.OTHER_ERROR,details:zt.ATTACH_MEDIA_ERROR,fatal:!0,error:a});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const n="media"in t,r=n?t.media:t,i=n?t:{media:r};this._media=r,this.trigger(Pe.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Pe.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(Pe.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,i=this._url=PG.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),n&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(Pe.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,n){this.logger.log(`startLoad(${t+(n?", ":"")})`),this.started=!0,this.resumeBuffering();for(let r=0;r{t.resumeBuffering&&t.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(t=>{t.pauseBuffering&&t.pauseBuffering()}))}get inFlightFragments(){const t={[Qn.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[Qn.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[Qn.SUBTITLE]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,n=t?.currentTime;this.detachMedia(),t&&(this.attachMedia(t),n&&this.startLoad(n))}removeLevel(t){this.levelController.removeLevel(t)}get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=B7t()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return t===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),t!==-1&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const n=!!t;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){PAt(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:n}}=this;if(!t)return 0;const r=t.length;for(let i=0;i=n)return i;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:n,maxHdcpLevel:r}=this;let i;if(n===-1&&t!=null&&t.length?i=t.length-1:i=n,r)for(let a=i;a--;){const s=t[a].attrs["HDCP-LEVEL"];if(s&&s<=r)return a}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var n;return((n=this.audioTrackController)==null?void 0:n.setAudioOption(t))||null}setSubtitleOption(t){var n;return((n=this.subtitleTrackController)==null?void 0:n.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const n=this.audioTrackController;n&&(n.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const n=this.subtitleTrackController;n&&(n.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return t?t.subtitleDisplay:!1}set subtitleDisplay(t){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!!((t=this.bufferController)!=null&&t.bufferedToEnd)}get interstitialsManager(){var t;return((t=this.interstitialsController)==null?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,n=this.allAudioTracks){const r=c2e(n);return l2e(t,r,navigator.mediaCapabilities)}}xu.defaultConfig=void 0;const qDt={class:"player-header"},YDt={class:"player-controls"},XDt={class:"compact-button-group"},ZDt={key:4,class:"compact-btn selector-btn"},JDt={key:0,style:{color:"#ff4d4f","font-size":"10px"}},QDt={key:5,class:"compact-btn selector-btn"},ePt={key:6,class:"compact-btn selector-btn"},tPt={key:7,class:"compact-btn selector-btn"},nPt={__name:"PlayerHeader",props:{episodeName:{type:String,default:"未知选集"},playerType:{type:String,default:"default"},episodes:{type:Array,default:()=>[]},autoNextEnabled:{type:Boolean,default:!1},loopEnabled:{type:Boolean,default:!1},countdownEnabled:{type:Boolean,default:!1},skipEnabled:{type:Boolean,default:!1},showAutoNext:{type:Boolean,default:!0},showCountdown:{type:Boolean,default:!0},showDebugButton:{type:Boolean,default:!1},qualities:{type:Array,default:()=>[]},currentQuality:{type:String,default:"默认"},showParserSelector:{type:Boolean,default:!1},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>null},isLiveMode:{type:Boolean,default:!1}},emits:["toggle-auto-next","toggle-loop","toggle-countdown","player-change","open-skip-settings","toggle-debug","close","proxy-change","quality-change","parser-change"],setup(e,{emit:t}){const n=e,r=t,i=ue("disabled"),a=ue([]),s=DG(),l=ue(""),c=ue([]),d=ue(!1),h=ue(!1),p=E=>{if(!E)return"未知";const _=E.indexOf("#");return _!==-1&&_{try{const E=JSON.parse(localStorage.getItem("addressSettings")||"{}"),_=E.proxyPlayEnabled||!1,T=E.proxyPlay||"";if(a.value=[],g(),_&&T){const D=a.value.findIndex(P=>P.url===T);if(D!==-1){const P=a.value.splice(D,1)[0];a.value.unshift(P)}else{const P=p(T);a.value.unshift({value:T,label:`${P} (当前)`,url:T})}i.value=T}else i.value="disabled";console.log("代理播放配置加载完成:",{enabled:_,current:T,optionsCount:a.value.length,selected:i.value})}catch(E){console.error("加载代理播放配置失败:",E),i.value="disabled"}},g=()=>{try{JSON.parse(localStorage.getItem("address-history-proxy-play")||"[]").forEach(T=>{const D=T.url||T.value||"";if(!D)return;if(!a.value.some(M=>M.url===D)){const M=p(D);a.value.push({value:D,label:M,url:D})}}),console.log("已加载代理播放历史记录:",a.value.length,"个选项")}catch(E){console.error("加载代理播放历史记录失败:",E)}},y=E=>{if(!(!E||E==="disabled"))try{const _=p(E),T=Date.now(),D="address-history-proxy-play",P=JSON.parse(localStorage.getItem(D)||"[]"),M=P.findIndex($=>$.url===E);M!==-1&&P.splice(M,1),P.unshift({url:E,timestamp:T}),P.length>10&&P.splice(10),localStorage.setItem(D,JSON.stringify(P)),console.log("已保存代理播放地址到历史记录:",E)}catch(_){console.error("保存代理播放历史记录失败:",_)}},S=E=>{i.value=E,E!=="disabled"&&y(E),r("proxy-change",E)},k=async()=>{try{d.value=!0,c.value=s.enabledParsers.map(T=>({id:T.id,name:T.name,type:T.type,url:T.url,enabled:T.enabled})),h.value=OT();const E=localStorage.getItem("selectedParser");let _=!1;E&&c.value.find(T=>T.id===E)?(l.value=E,_=!0):c.value.length>0&&(l.value=c.value[0].id,_=!0),console.log("解析器配置加载完成:",{count:c.value.length,selected:l.value,snifferEnabled:h.value,shouldTriggerParsing:_}),_&&l.value&&n.parseData&&(console.log("🚀 [自动解析] 触发默认解析器解析"),dn(()=>{w(l.value)}))}catch(E){console.error("加载解析器配置失败:",E)}finally{d.value=!1}},w=E=>{l.value=E;const _=c.value.find(T=>T.id===E);_&&localStorage.setItem("selectedParser",JSON.stringify(_)),r("parser-change",{parserId:E,parser:_,parseData:n.parseData}),console.log("解析器已切换:",_)},x=E=>{E.key==="addressSettings"&&v()};return fn(()=>{v(),n.showParserSelector&&k(),window.addEventListener("storage",x),window.addEventListener("addressSettingsChanged",v)}),It(()=>n.showParserSelector,E=>{E&&k()}),Yr(()=>{window.removeEventListener("storage",x),window.removeEventListener("addressSettingsChanged",v)}),(E,_)=>{const T=Ee("a-option"),D=Ee("a-select");return z(),X("div",qDt,[I("h3",null,"正在播放: "+je(e.episodeName),1),I("div",YDt,[I("div",XDt,[e.showDebugButton?(z(),X("div",{key:0,class:"compact-btn debug-btn",onClick:_[0]||(_[0]=P=>E.$emit("toggle-debug")),title:"调试信息"},[..._[8]||(_[8]=[Ch('调试',2)])])):Ae("",!0),!e.isLiveMode&&e.showAutoNext&&e.episodes.length>1?(z(),X("div",{key:1,class:fe(["compact-btn",{active:e.autoNextEnabled}]),onClick:_[1]||(_[1]=P=>E.$emit("toggle-auto-next"))},[..._[9]||(_[9]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M8 5v14l11-7z",fill:"currentColor"})],-1),I("span",{class:"btn-text"},"自动连播",-1)])],2)):Ae("",!0),e.isLiveMode?Ae("",!0):(z(),X("div",{key:2,class:fe(["compact-btn",{active:e.loopEnabled}]),onClick:_[2]||(_[2]=P=>E.$emit("toggle-loop")),title:"循环播放当前选集"},[..._[10]||(_[10]=[Ch('循环播放',2)])],2)),!e.isLiveMode&&e.showCountdown&&e.episodes.length>1?(z(),X("div",{key:3,class:fe(["compact-btn",{active:e.countdownEnabled}]),onClick:_[3]||(_[3]=P=>E.$emit("toggle-countdown"))},[..._[11]||(_[11]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"12,6 12,12 16,14",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"倒计时",-1)])],2)):Ae("",!0),e.showParserSelector?(z(),X("div",ZDt,[_[12]||(_[12]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(D,{"model-value":l.value,onChange:w,class:"compact-select",size:"small",loading:d.value,disabled:!c.value.length},{default:ce(()=>[(z(!0),X(Pt,null,cn(c.value,P=>(z(),Ze(T,{key:P.id,value:P.id,title:`${P.name} (${P.type==="1"?"JSON":"嗅探"})`,disabled:P.type==="0"&&!h.value},{default:ce(()=>[He(" 解析:"+je(P.name)+" ",1),P.type==="0"&&!h.value?(z(),X("span",JDt," (需嗅探器) ")):Ae("",!0)]),_:2},1032,["value","title","disabled"]))),128))]),_:1},8,["model-value","loading","disabled"])])):Ae("",!0),e.isLiveMode?Ae("",!0):(z(),X("div",QDt,[_[14]||(_[14]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(D,{"model-value":i.value,onChange:S,class:"compact-select",size:"small"},{default:ce(()=>[O(T,{value:"disabled",title:"关闭代理播放功能"},{default:ce(()=>[..._[13]||(_[13]=[He("代理播放:关闭",-1)])]),_:1}),(z(!0),X(Pt,null,cn(a.value,P=>(z(),Ze(T,{key:P.value,value:P.value,title:`${P.label} +完整链接: ${P.url||P.value}`},{default:ce(()=>[He(" 代理播放:"+je(P.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])),e.qualities&&e.qualities.length>1?(z(),X("div",ePt,[_[15]||(_[15]=Ch('HD',1)),O(D,{"model-value":e.currentQuality,onChange:_[4]||(_[4]=P=>E.$emit("quality-change",P)),class:"compact-select",size:"small"},{default:ce(()=>[(z(!0),X(Pt,null,cn(e.qualities,P=>(z(),Ze(T,{key:P.name,value:P.name,title:`切换到${P.name}画质`},{default:ce(()=>[He(" 画质:"+je(P.name),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])):Ae("",!0),e.isLiveMode?Ae("",!0):(z(),X("div",tPt,[_[18]||(_[18]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),I("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor","stroke-width":"2"})],-1)),O(D,{"model-value":e.playerType,onChange:_[5]||(_[5]=P=>E.$emit("player-change",P)),class:"compact-select",size:"small"},{default:ce(()=>[O(T,{value:"default",title:"使用浏览器默认的HTML5视频播放器"},{default:ce(()=>[..._[16]||(_[16]=[He("默认播放器",-1)])]),_:1}),O(T,{value:"artplayer",title:"使用ArtPlayer播放器,支持更多功能和自定义选项"},{default:ce(()=>[..._[17]||(_[17]=[He("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])])),e.isLiveMode?Ae("",!0):(z(),X("div",{key:8,class:fe(["compact-btn",{active:e.skipEnabled}]),onClick:_[6]||(_[6]=P=>E.$emit("open-skip-settings"))},[..._[19]||(_[19]=[Ch('片头片尾',2)])],2)),I("div",{class:"compact-btn close-btn",onClick:_[7]||(_[7]=P=>E.$emit("close"))},[..._[20]||(_[20]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"关闭",-1)])])])])])}}},nK=sr(nPt,[["__scopeId","data-v-e55c9055"]]),rPt={class:"dialog-header"},iPt={class:"dialog-content"},oPt={class:"setting-row"},sPt={class:"setting-control"},aPt={key:1,class:"unit"},lPt={class:"setting-row"},uPt={class:"setting-control"},cPt={key:1,class:"unit"},dPt={class:"dialog-footer"},fPt={__name:"SkipSettingsDialog",props:{visible:{type:Boolean,default:!1},skipIntroEnabled:{type:Boolean,default:!1},skipOutroEnabled:{type:Boolean,default:!1},skipIntroSeconds:{type:Number,default:90},skipOutroSeconds:{type:Number,default:90}},emits:["close","save"],setup(e,{emit:t}){const n=e,r=t,i=ue(n.skipIntroEnabled),a=ue(n.skipOutroEnabled),s=ue(n.skipIntroSeconds),l=ue(n.skipOutroSeconds);It(()=>n.skipIntroEnabled,h=>{i.value=h}),It(()=>n.skipOutroEnabled,h=>{a.value=h}),It(()=>n.skipIntroSeconds,h=>{s.value=h}),It(()=>n.skipOutroSeconds,h=>{l.value=h});const c=()=>{r("close")},d=()=>{r("save",{skipIntroEnabled:i.value,skipOutroEnabled:a.value,skipIntroSeconds:s.value,skipOutroSeconds:l.value})};return(h,p)=>{const v=Ee("a-switch"),g=Ee("a-input-number"),y=Ee("a-button");return e.visible?(z(),X("div",{key:0,class:"skip-settings-overlay",onClick:c},[I("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=fs(()=>{},["stop"]))},[I("div",rPt,[p[8]||(p[8]=I("h3",null,"片头片尾设置",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=S=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",iPt,[I("div",oPt,[p[9]||(p[9]=I("div",{class:"setting-label"},[I("span",null,"跳过片头"),I("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),I("div",sPt,[O(v,{modelValue:i.value,"onUpdate:modelValue":p[1]||(p[1]=S=>i.value=S),size:"small"},null,8,["modelValue"]),i.value?(z(),Ze(g,{key:0,modelValue:s.value,"onUpdate:modelValue":p[2]||(p[2]=S=>s.value=S),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):Ae("",!0),i.value?(z(),X("span",aPt,"秒")):Ae("",!0)])]),I("div",lPt,[p[10]||(p[10]=I("div",{class:"setting-label"},[I("span",null,"跳过片尾"),I("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),I("div",uPt,[O(v,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(z(),Ze(g,{key:0,modelValue:l.value,"onUpdate:modelValue":p[4]||(p[4]=S=>l.value=S),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):Ae("",!0),a.value?(z(),X("span",cPt,"秒")):Ae("",!0)])]),p[11]||(p[11]=I("div",{class:"setting-hint-global"},[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),He(" 设置将自动保存并应用到所有播放器 ")],-1))]),I("div",dPt,[O(y,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:ce(()=>[...p[12]||(p[12]=[He(" 取消 ",-1)])]),_:1}),O(y,{type:"primary",onClick:d,size:"small"},{default:ce(()=>[...p[13]||(p[13]=[He(" 保存 ",-1)])]),_:1})])])])):Ae("",!0)}}},C4e=sr(fPt,[["__scopeId","data-v-c8c7504a"]]),hPt={class:"dialog-header"},pPt={class:"dialog-content"},vPt={class:"info-section"},mPt={class:"section-header"},gPt=["disabled"],yPt={class:"info-content"},bPt={class:"url-display"},_Pt={key:0,class:"info-section"},SPt={class:"section-header"},kPt={class:"section-actions"},wPt=["disabled"],xPt=["disabled"],CPt=["disabled"],EPt={class:"info-content"},TPt={class:"url-display proxy-url"},APt={class:"info-section"},IPt={class:"section-header"},LPt=["disabled"],DPt={class:"info-content"},PPt={class:"headers-display"},RPt={key:0,class:"no-data"},MPt={key:1,class:"headers-text"},OPt={class:"info-section"},$Pt={class:"info-content"},BPt={class:"format-info"},NPt={class:"format-value"},FPt={class:"info-section"},jPt={class:"info-content"},VPt={class:"player-info"},zPt={class:"player-value"},UPt={__name:"DebugInfoDialog",props:{visible:{type:Boolean,default:!1},videoUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},playerType:{type:String,default:"default"},detectedFormat:{type:String,default:""},proxyUrl:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,i=F(()=>!n.headers||Object.keys(n.headers).length===0?"":Object.entries(n.headers).map(([h,p])=>`${h}: ${p}`).join(` +`)),a=()=>{r("close")},s=async(h,p)=>{if(!h){gt.warning(`${p}为空,无法复制`);return}try{await navigator.clipboard.writeText(h),gt.success(`${p}已复制到剪贴板`)}catch(v){console.error("复制失败:",v),gt.error("复制失败,请手动选择复制")}},l=async()=>{const h=["=== DrPlayer 视频调试信息 ===","","📹 视频直链:",n.videoUrl||"暂无","",...n.proxyUrl&&n.proxyUrl!==n.videoUrl?["🔄 代理后链接:",n.proxyUrl,""]:[],"📋 请求头信息:",i.value||"暂无","","🎬 视频格式:",n.detectedFormat||"未知","","⚙️ 播放器类型:",n.playerType==="artplayer"?"ArtPlayer":"默认播放器","","生成时间: "+new Date().toLocaleString()].join(` +`);await s(h,"所有调试信息")},c=h=>{if(!h){gt.warning("视频链接为空,无法调起VLC播放器");return}try{const p=`vlc://${h}`,v=document.createElement("iframe");v.style.display="none",v.src=p,document.body.appendChild(v),setTimeout(()=>{document.body.removeChild(v)},1e3),gt.success("正在尝试调起VLC播放器..."),console.log("调起VLC播放器:",p)}catch(p){console.error("调起VLC播放器失败:",p),gt.error("调起VLC播放器失败,请确保已安装VLC播放器")}},d=h=>{if(!h){gt.warning("视频链接为空,无法调起MPV播放器");return}try{const p=`mpv://${h}`,v=document.createElement("iframe");v.style.display="none",v.src=p,document.body.appendChild(v),setTimeout(()=>{document.body.removeChild(v)},1e3),gt.success("正在尝试调起MPV播放器..."),console.log("调起MPV播放器:",p)}catch(p){console.error("调起MPV播放器失败:",p),gt.error("调起MPV播放器失败,请确保已安装MPV播放器")}};return(h,p)=>e.visible?(z(),X("div",{key:0,class:"debug-info-overlay",onClick:a},[I("div",{class:"debug-info-dialog",onClick:p[6]||(p[6]=fs(()=>{},["stop"]))},[I("div",hPt,[p[8]||(p[8]=I("h3",null,"🔧 视频调试信息",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=v=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",pPt,[I("div",vPt,[I("div",mPt,[p[10]||(p[10]=I("h4",null,"📹 视频直链",-1)),I("button",{class:"copy-btn",onClick:p[1]||(p[1]=v=>s(e.videoUrl,"视频直链")),disabled:!e.videoUrl},[...p[9]||(p[9]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制 ",-1)])],8,gPt)]),I("div",yPt,[I("div",bPt,je(e.videoUrl||"暂无视频链接"),1)])]),e.proxyUrl&&e.proxyUrl!==e.videoUrl?(z(),X("div",_Pt,[I("div",SPt,[p[14]||(p[14]=I("h4",null,"🔄 代理后链接",-1)),I("div",kPt,[I("button",{class:"copy-btn",onClick:p[2]||(p[2]=v=>s(e.proxyUrl,"代理后链接")),disabled:!e.proxyUrl},[...p[11]||(p[11]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制 ",-1)])],8,wPt),I("button",{class:"external-player-btn vlc-btn",onClick:p[3]||(p[3]=v=>c(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用VLC播放器打开"},[...p[12]||(p[12]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("polygon",{points:"5,3 19,12 5,21",fill:"currentColor"})],-1),He(" VLC ",-1)])],8,xPt),I("button",{class:"external-player-btn mpv-btn",onClick:p[4]||(p[4]=v=>d(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用MPV播放器打开"},[...p[13]||(p[13]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})],-1),He(" MPV ",-1)])],8,CPt)])]),I("div",EPt,[I("div",TPt,je(e.proxyUrl),1)])])):Ae("",!0),I("div",APt,[I("div",IPt,[p[16]||(p[16]=I("h4",null,"📋 请求头信息",-1)),I("button",{class:"copy-btn",onClick:p[5]||(p[5]=v=>s(i.value,"请求头信息")),disabled:!i.value},[...p[15]||(p[15]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制 ",-1)])],8,LPt)]),I("div",DPt,[I("div",PPt,[i.value?(z(),X("pre",MPt,je(i.value),1)):(z(),X("div",RPt,"暂无请求头信息"))])])]),I("div",OPt,[p[18]||(p[18]=I("div",{class:"section-header"},[I("h4",null,"🎬 视频格式")],-1)),I("div",$Pt,[I("div",BPt,[p[17]||(p[17]=I("span",{class:"format-label"},"检测格式:",-1)),I("span",NPt,je(e.detectedFormat||"未知"),1)])])]),I("div",FPt,[p[20]||(p[20]=I("div",{class:"section-header"},[I("h4",null,"⚙️ 播放器信息")],-1)),I("div",jPt,[I("div",VPt,[p[19]||(p[19]=I("span",{class:"player-label"},"当前播放器:",-1)),I("span",zPt,je(e.playerType==="artplayer"?"ArtPlayer":"默认播放器"),1)])])]),I("div",{class:"action-section"},[I("button",{class:"copy-all-btn",onClick:l},[...p[21]||(p[21]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),He(" 复制所有调试信息 ",-1)])])])])])])):Ae("",!0)}},rK=sr(UPt,[["__scopeId","data-v-d9075ed4"]]);function E4e(e={}){const{onSkipToNext:t=()=>{},getCurrentTime:n=()=>0,setCurrentTime:r=()=>{},getDuration:i=()=>0}=e,a=ue(!1),s=ue(!1),l=ue(!1),c=ue(90),d=ue(90),h=ue(!1),p=ue(!1),v=ue(null),g=ue(0),y=ue(!1),S=ue(0),k=ue(!1),w=ue(0),x=F(()=>s.value||l.value),E="drplayer_skip_settings",_=()=>{try{const Q=localStorage.getItem(E);if(console.log("从 localStorage 加载设置:",Q),Q){const ie=JSON.parse(Q);s.value=ie.skipIntroEnabled||!1,l.value=ie.skipOutroEnabled||!1,c.value=ie.skipIntroSeconds||90,d.value=ie.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:d.value})}else console.log("没有找到保存的设置,使用默认值")}catch(Q){console.warn("加载片头片尾设置失败:",Q)}},T=Q=>{try{s.value=Q.skipIntroEnabled,l.value=Q.skipOutroEnabled,c.value=Q.skipIntroSeconds,d.value=Q.skipOutroSeconds;const ie={skipIntroEnabled:Q.skipIntroEnabled,skipOutroEnabled:Q.skipOutroEnabled,skipIntroSeconds:Q.skipIntroSeconds,skipOutroSeconds:Q.skipOutroSeconds};localStorage.setItem(E,JSON.stringify(ie)),$()}catch(ie){console.warn("保存片头片尾设置失败:",ie)}},D=()=>{if(!s.value||h.value)return!1;const Q=n(),ie=Date.now();return y.value||S.value>0&&ie-S.value<3e3||k.value||w.value>0&&ie-w.value<2e3?!1:Q<=1&&Q<=c.value?(console.log(`立即跳过片头:从 ${Q.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ie,!0):!1},P=()=>{if(!s.value||h.value)return;const Q=n(),ie=Date.now();y.value||S.value>0&&ie-S.value<3e3||k.value||w.value>0&&ie-w.value<2e3||g.value>0&&ie-g.value<1e3||Q<=c.value&&(console.log(`已跳过片头:从 ${Q.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ie)},M=()=>{if(!l.value||p.value)return;const Q=i();if(Q<=0)return;const ie=n(),q=Q-d.value,te=Date.now();te-g.value<2e3||ie>=q&&ie{D()||P(),M()};let L=null;const B=()=>{L&&clearTimeout(L),L=setTimeout(()=>{s.value&&!h.value&&P(),l.value&&!p.value&&M()},200)},j=()=>{h.value=!1,p.value=!1,g.value=0,y.value=!1,S.value=0,k.value=!1,w.value=0,v.value&&(clearTimeout(v.value),v.value=null)},H=()=>{y.value=!0,console.log("用户开始拖动进度条")},U=()=>{y.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},W=()=>{k.value=!0,console.log("全屏状态开始变化")},K=()=>{k.value=!1,w.value=Date.now(),console.log("全屏状态变化结束")},oe=()=>{j(),_()},ae=()=>{a.value=!0},ee=()=>{a.value=!1},Y=()=>{v.value&&(clearTimeout(v.value),v.value=null)};return Yr(()=>{Y()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:d,skipIntroApplied:h,skipOutroTimer:v,skipEnabled:x,loadSkipSettings:_,saveSkipSettings:T,applySkipSettings:$,applyIntroSkipImmediate:D,handleTimeUpdate:B,resetSkipState:j,initSkipSettings:oe,openSkipSettingsDialog:ae,closeSkipSettingsDialog:ee,cleanup:Y,onUserSeekStart:H,onUserSeekEnd:U,onFullscreenChangeStart:W,onFullscreenChangeEnd:K}}const Jv={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},T4e=[{value:"no-referrer",label:"不发送Referrer"},{value:"no-referrer-when-downgrade",label:"HTTPS到HTTP时不发送"},{value:"origin",label:"只发送源域名"},{value:"origin-when-cross-origin",label:"跨域时只发送源域名"},{value:"same-origin",label:"同源时发送完整Referrer"},{value:"strict-origin",label:"严格源域名策略"},{value:"strict-origin-when-cross-origin",label:"跨域时严格控制"},{value:"unsafe-url",label:"总是发送完整Referrer(不安全)"}];function iK(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function M_(e){let t=document.querySelector('meta[name="referrer"]');t||(t=document.createElement("meta"),t.setAttribute("name","referrer"),document.head.appendChild(t)),t.setAttribute("content",e),console.log(`已设置全局referrer策略为: ${e}`)}function KT(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function HPt(e,t=null){const n=Bh();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=iK()||Jv.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),M_(r),t&&KT(t,r),r}const pce={referrerPolicy:Jv.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[Jv.NO_REFERRER,Jv.ORIGIN,Jv.SAME_ORIGIN,Jv.UNSAFE_URL]};function Bh(){const e=localStorage.getItem("csp_bypass_config");return e?{...pce,...JSON.parse(e)}:pce}function uU(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function oK(e,t){return Bh().autoBypass?HPt(e,t):iK()}var lj={exports:{}},vce;function WPt(){return vce||(vce=1,(function(e,t){(function(r,i){e.exports=i()})(self,function(){return(function(){var n={"./node_modules/es6-promise/dist/es6-promise.js":(function(s,l,c){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 - */(function(d,h){s.exports=h()})(this,(function(){function d(Ee){var We=typeof Ee;return Ee!==null&&(We==="object"||We==="function")}function h(Ee){return typeof Ee=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Ee){return Object.prototype.toString.call(Ee)==="[object Array]"};var v=p,g=0,y=void 0,S=void 0,k=function(We,$e){H[g]=We,H[g+1]=$e,g+=2,g===2&&(S?S(U):Y())};function C(Ee){S=Ee}function x(Ee){k=Ee}var E=typeof window<"u"?window:void 0,_=E||{},T=_.MutationObserver||_.WebKitMutationObserver,D=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",P=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function M(){return function(){return process.nextTick(U)}}function O(){return typeof y<"u"?function(){y(U)}:j()}function L(){var Ee=0,We=new T(U),$e=document.createTextNode("");return We.observe($e,{characterData:!0}),function(){$e.data=Ee=++Ee%2}}function B(){var Ee=new MessageChannel;return Ee.port1.onmessage=U,function(){return Ee.port2.postMessage(0)}}function j(){var Ee=setTimeout;return function(){return Ee(U,1)}}var H=new Array(1e3);function U(){for(var Ee=0;Ee0&&(ie=H[0]),ie instanceof Error)throw ie;var te=new Error("Unhandled error."+(ie?" ("+ie.message+")":""));throw te.context=ie,te}var W=Y[j];if(W===void 0)return!1;if(typeof W=="function")c(W,this,H);else for(var q=W.length,Q=T(W,q),U=0;U0&&ie.length>K&&!ie.warned){ie.warned=!0;var te=new Error("Possible EventEmitter memory leak detected. "+ie.length+" "+String(j)+" listeners added. Use emitter.setMaxListeners() to increase limit");te.name="MaxListenersExceededWarning",te.emitter=B,te.type=j,te.count=ie.length,h(te)}return B}v.prototype.addListener=function(j,H){return k(this,j,H,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(j,H){return k(this,j,H,!0)};function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(B,j,H){var U={fired:!1,wrapFn:void 0,target:B,type:j,listener:H},K=C.bind(U);return K.listener=H,U.wrapFn=K,K}v.prototype.once=function(j,H){return y(H),this.on(j,x(this,j,H)),this},v.prototype.prependOnceListener=function(j,H){return y(H),this.prependListener(j,x(this,j,H)),this},v.prototype.removeListener=function(j,H){var U,K,Y,ie,te;if(y(H),K=this._events,K===void 0)return this;if(U=K[j],U===void 0)return this;if(U===H||U.listener===H)--this._eventsCount===0?this._events=Object.create(null):(delete K[j],K.removeListener&&this.emit("removeListener",j,U.listener||H));else if(typeof U!="function"){for(Y=-1,ie=U.length-1;ie>=0;ie--)if(U[ie]===H||U[ie].listener===H){te=U[ie].listener,Y=ie;break}if(Y<0)return this;Y===0?U.shift():D(U,Y),U.length===1&&(K[j]=U[0]),K.removeListener!==void 0&&this.emit("removeListener",j,te||H)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(j){var H,U,K;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[j]),this;if(arguments.length===0){var Y=Object.keys(U),ie;for(K=0;K=0;K--)this.removeListener(j,H[K]);return this};function E(B,j,H){var U=B._events;if(U===void 0)return[];var K=U[j];return K===void 0?[]:typeof K=="function"?H?[K.listener||K]:[K]:H?P(K):T(K,K.length)}v.prototype.listeners=function(j){return E(this,j,!0)},v.prototype.rawListeners=function(j){return E(this,j,!1)},v.listenerCount=function(B,j){return typeof B.listenerCount=="function"?B.listenerCount(j):_.call(B,j)},v.prototype.listenerCount=_;function _(B){var j=this._events;if(j!==void 0){var H=j[B];if(typeof H=="function")return 1;if(H!==void 0)return H.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]};function T(B,j){for(var H=new Array(j),U=0;U0},!1)}function k(C,x){for(var E={main:[x]},_={main:[]},T={main:{}};S(E);)for(var D=Object.keys(E),P=0;P=p[S]&&v0&&y[0].originalDts=S[x].dts&&yS[C].lastSample.originalDts&&y=S[C].lastSample.originalDts&&(C===S.length-1||C0&&(x=this._searchNearestSegmentBefore(k.originalBeginDts)+1),this._lastAppendLocation=x,this._list.splice(x,0,k)},g.prototype.getLastSegmentBefore=function(y){var S=this._searchNearestSegmentBefore(y);return S>=0?this._list[S]:null},g.prototype.getLastSampleBefore=function(y){var S=this.getLastSegmentBefore(y);return S!=null?S.lastSample:null},g.prototype.getLastSyncPointBefore=function(y){for(var S=this._searchNearestSegmentBefore(y),k=this._list[S].syncPoints;k.length===0&&S>0;)S--,k=this._list[S].syncPoints;return k.length>0?k[k.length-1]:null},g})()}),"./src/core/mse-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=c("./src/utils/browser.js"),g=c("./src/core/mse-events.js"),y=c("./src/core/media-segment-info.js"),S=c("./src/utils/exception.js"),k=(function(){function C(x){this.TAG="MSEController",this._config=x,this._emitter=new(h()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new y.IDRSampleList}return C.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},C.prototype.on=function(x,E){this._emitter.addListener(x,E)},C.prototype.off=function(x,E){this._emitter.removeListener(x,E)},C.prototype.attachMediaElement=function(x){if(this._mediaSource)throw new S.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var E=this._mediaSource=new window.MediaSource;E.addEventListener("sourceopen",this.e.onSourceOpen),E.addEventListener("sourceended",this.e.onSourceEnded),E.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=x,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),x.src=this._mediaSourceObjectURL},C.prototype.detachMediaElement=function(){if(this._mediaSource){var x=this._mediaSource;for(var E in this._sourceBuffers){var _=this._pendingSegments[E];_.splice(0,_.length),this._pendingSegments[E]=null,this._pendingRemoveRanges[E]=null,this._lastInitSegments[E]=null;var T=this._sourceBuffers[E];if(T){if(x.readyState!=="closed"){try{x.removeSourceBuffer(T)}catch(D){p.default.e(this.TAG,D.message)}T.removeEventListener("error",this.e.onSourceBufferError),T.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[E]=null,this._sourceBuffers[E]=null}}if(x.readyState==="open")try{x.endOfStream()}catch(D){p.default.e(this.TAG,D.message)}x.removeEventListener("sourceopen",this.e.onSourceOpen),x.removeEventListener("sourceended",this.e.onSourceEnded),x.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},C.prototype.appendInitSegment=function(x,E){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(x),this._pendingSegments[x.type].push(x);return}var _=x,T=""+_.container;_.codec&&_.codec.length>0&&(T+=";codecs="+_.codec);var D=!1;if(p.default.v(this.TAG,"Received Initialization Segment, mimeType: "+T),this._lastInitSegments[_.type]=_,T!==this._mimeTypes[_.type]){if(this._mimeTypes[_.type])p.default.v(this.TAG,"Notice: "+_.type+" mimeType changed, origin: "+this._mimeTypes[_.type]+", target: "+T);else{D=!0;try{var P=this._sourceBuffers[_.type]=this._mediaSource.addSourceBuffer(T);P.addEventListener("error",this.e.onSourceBufferError),P.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(M){p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message});return}}this._mimeTypes[_.type]=T}E||this._pendingSegments[_.type].push(_),D||this._sourceBuffers[_.type]&&!this._sourceBuffers[_.type].updating&&this._doAppendSegments(),v.default.safari&&_.container==="audio/mpeg"&&_.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=_.mediaDuration/1e3,this._updateMediaSourceDuration())},C.prototype.appendMediaSegment=function(x){var E=x;this._pendingSegments[E.type].push(E),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var _=this._sourceBuffers[E.type];_&&!_.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()},C.prototype.seek=function(x){for(var E in this._sourceBuffers)if(this._sourceBuffers[E]){var _=this._sourceBuffers[E];if(this._mediaSource.readyState==="open")try{_.abort()}catch(L){p.default.e(this.TAG,L.message)}this._idrList.clear();var T=this._pendingSegments[E];if(T.splice(0,T.length),this._mediaSource.readyState!=="closed"){for(var D=0;D<_.buffered.length;D++){var P=_.buffered.start(D),M=_.buffered.end(D);this._pendingRemoveRanges[E].push({start:P,end:M})}if(_.updating||this._doRemoveRanges(),v.default.safari){var O=this._lastInitSegments[E];O&&(this._pendingSegments[E].push(O),_.updating||this._doAppendSegments())}}}},C.prototype.endOfStream=function(){var x=this._mediaSource,E=this._sourceBuffers;if(!x||x.readyState!=="open"){x&&x.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}E.video&&E.video.updating||E.audio&&E.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,x.endOfStream())},C.prototype.getNearestKeyframe=function(x){return this._idrList.getLastSyncPointBeforeDts(x)},C.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){var T=_.buffered;if(T.length>=1&&x-T.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},C.prototype._doCleanupSourceBuffer=function(){var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){for(var T=_.buffered,D=!1,P=0;P=this._config.autoCleanupMaxBackwardDuration){D=!0;var L=x-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[E].push({start:M,end:L})}}else O0&&(isNaN(E)||_>E)&&(p.default.v(this.TAG,"Update MediaSource duration from "+E+" to "+_),this._mediaSource.duration=_),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},C.prototype._doRemoveRanges=function(){for(var x in this._pendingRemoveRanges)if(!(!this._sourceBuffers[x]||this._sourceBuffers[x].updating))for(var E=this._sourceBuffers[x],_=this._pendingRemoveRanges[x];_.length&&!E.updating;){var T=_.shift();E.remove(T.start,T.end)}},C.prototype._doAppendSegments=function(){var x=this._pendingSegments;for(var E in x)if(!(!this._sourceBuffers[E]||this._sourceBuffers[E].updating)&&x[E].length>0){var _=x[E].shift();if(_.timestampOffset){var T=this._sourceBuffers[E].timestampOffset,D=_.timestampOffset/1e3,P=Math.abs(T-D);P>.1&&(p.default.v(this.TAG,"Update MPEG audio timestampOffset from "+T+" to "+D),this._sourceBuffers[E].timestampOffset=D),delete _.timestampOffset}if(!_.data||_.data.byteLength===0)continue;try{this._sourceBuffers[E].appendBuffer(_.data),this._isBufferFull=!1,E==="video"&&_.hasOwnProperty("info")&&this._idrList.appendArray(_.info.syncPoints)}catch(M){this._pendingSegments[E].unshift(_),M.code===22?(this._isBufferFull||this._emitter.emit(g.default.BUFFER_FULL),this._isBufferFull=!0):(p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message}))}}},C.prototype._onSourceOpen=function(){if(p.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var x=this._pendingSourceBufferInit;x.length;){var E=x.shift();this.appendInitSegment(E,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(g.default.SOURCE_OPEN)},C.prototype._onSourceEnded=function(){p.default.v(this.TAG,"MediaSource onSourceEnded")},C.prototype._onSourceClose=function(){p.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},C.prototype._hasPendingSegments=function(){var x=this._pendingSegments;return x.video.length>0||x.audio.length>0},C.prototype._hasPendingRemoveRanges=function(){var x=this._pendingRemoveRanges;return x.video.length>0||x.audio.length>0},C.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(g.default.UPDATE_END)},C.prototype._onSourceBufferError=function(x){p.default.e(this.TAG,"SourceBuffer Error: "+x)},C})();l.default=k}),"./src/core/mse-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};l.default=d}),"./src/core/transmuxer.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./node_modules/webworkify-webpack/index.js"),v=c.n(p),g=c("./src/utils/logger.js"),y=c("./src/utils/logging-control.js"),S=c("./src/core/transmuxing-controller.js"),k=c("./src/core/transmuxing-events.js"),C=c("./src/core/media-info.js"),x=(function(){function E(_,T){if(this.TAG="Transmuxer",this._emitter=new(h()),T.enableWorker&&typeof Worker<"u")try{this._worker=v()("./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[_,T]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},y.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:y.default.getConfig()})}catch{g.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new S.default(_,T)}else this._controller=new S.default(_,T);if(this._controller){var D=this._controller;D.on(k.default.IO_ERROR,this._onIOError.bind(this)),D.on(k.default.DEMUX_ERROR,this._onDemuxError.bind(this)),D.on(k.default.INIT_SEGMENT,this._onInitSegment.bind(this)),D.on(k.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),D.on(k.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),D.on(k.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),D.on(k.default.MEDIA_INFO,this._onMediaInfo.bind(this)),D.on(k.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),D.on(k.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),D.on(k.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),D.on(k.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return E.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),y.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},E.prototype.on=function(_,T){this._emitter.addListener(_,T)},E.prototype.off=function(_,T){this._emitter.removeListener(_,T)},E.prototype.hasWorker=function(){return this._worker!=null},E.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},E.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},E.prototype.seek=function(_){this._worker?this._worker.postMessage({cmd:"seek",param:_}):this._controller.seek(_)},E.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},E.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},E.prototype._onInitSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.INIT_SEGMENT,_,T)})},E.prototype._onMediaSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.MEDIA_SEGMENT,_,T)})},E.prototype._onLoadingComplete=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.LOADING_COMPLETE)})},E.prototype._onRecoveredEarlyEof=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.RECOVERED_EARLY_EOF)})},E.prototype._onMediaInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.MEDIA_INFO,_)})},E.prototype._onMetaDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.METADATA_ARRIVED,_)})},E.prototype._onScriptDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.SCRIPTDATA_ARRIVED,_)})},E.prototype._onStatisticsInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.STATISTICS_INFO,_)})},E.prototype._onIOError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.IO_ERROR,_,T)})},E.prototype._onDemuxError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.DEMUX_ERROR,_,T)})},E.prototype._onRecommendSeekpoint=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.RECOMMEND_SEEKPOINT,_)})},E.prototype._onLoggingConfigChanged=function(_){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_})},E.prototype._onWorkerMessage=function(_){var T=_.data,D=T.data;if(T.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(T.msg){case k.default.INIT_SEGMENT:case k.default.MEDIA_SEGMENT:this._emitter.emit(T.msg,D.type,D.data);break;case k.default.LOADING_COMPLETE:case k.default.RECOVERED_EARLY_EOF:this._emitter.emit(T.msg);break;case k.default.MEDIA_INFO:Object.setPrototypeOf(D,C.default.prototype),this._emitter.emit(T.msg,D);break;case k.default.METADATA_ARRIVED:case k.default.SCRIPTDATA_ARRIVED:case k.default.STATISTICS_INFO:this._emitter.emit(T.msg,D);break;case k.default.IO_ERROR:case k.default.DEMUX_ERROR:this._emitter.emit(T.msg,D.type,D.info);break;case k.default.RECOMMEND_SEEKPOINT:this._emitter.emit(T.msg,D);break;case"logcat_callback":g.default.emitter.emit("log",D.type,D.logcat);break}},E})();l.default=x}),"./src/core/transmuxing-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=c("./src/utils/browser.js"),g=c("./src/core/media-info.js"),y=c("./src/demux/flv-demuxer.js"),S=c("./src/remux/mp4-remuxer.js"),k=c("./src/demux/demux-errors.js"),C=c("./src/io/io-controller.js"),x=c("./src/core/transmuxing-events.js"),E=(function(){function _(T,D){this.TAG="TransmuxingController",this._emitter=new(h()),this._config=D,T.segments||(T.segments=[{duration:T.duration,filesize:T.filesize,url:T.url}]),typeof T.cors!="boolean"&&(T.cors=!0),typeof T.withCredentials!="boolean"&&(T.withCredentials=!1),this._mediaDataSource=T,this._currentSegmentIndex=0;var P=0;this._mediaDataSource.segments.forEach(function(M){M.timestampBase=P,P+=M.duration,M.cors=T.cors,M.withCredentials=T.withCredentials,D.referrerPolicy&&(M.referrerPolicy=D.referrerPolicy)}),!isNaN(P)&&this._mediaDataSource.duration!==P&&(this._mediaDataSource.duration=P),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return _.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},_.prototype.on=function(T,D){this._emitter.addListener(T,D)},_.prototype.off=function(T,D){this._emitter.removeListener(T,D)},_.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},_.prototype._loadSegment=function(T,D){this._currentSegmentIndex=T;var P=this._mediaDataSource.segments[T],M=this._ioctl=new C.default(P,this._config,T);M.onError=this._onIOException.bind(this),M.onSeeked=this._onIOSeeked.bind(this),M.onComplete=this._onIOComplete.bind(this),M.onRedirect=this._onIORedirect.bind(this),M.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),D?this._demuxer.bindDataSource(this._ioctl):M.onDataArrival=this._onInitChunkArrival.bind(this),M.open(D)},_.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},_.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},_.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},_.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},_.prototype.seek=function(T){if(!(this._mediaInfo==null||!this._mediaInfo.isSeekable())){var D=this._searchSegmentIndexContains(T);if(D===this._currentSegmentIndex){var P=this._mediaInfo.segments[D];if(P==null)this._pendingSeekTime=T;else{var M=P.getNearestKeyframe(T);this._remuxer.seek(M.milliseconds),this._ioctl.seek(M.fileposition),this._pendingResolveSeekPoint=M.milliseconds}}else{var O=this._mediaInfo.segments[D];if(O==null)this._pendingSeekTime=T,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(D);else{var M=O.getNearestKeyframe(T);this._internalAbort(),this._remuxer.seek(T),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[D].timestampBase,this._loadSegment(D,M.fileposition),this._pendingResolveSeekPoint=M.milliseconds,this._reportSegmentMediaInfo(D)}}this._enableStatisticsReporter()}},_.prototype._searchSegmentIndexContains=function(T){for(var D=this._mediaDataSource.segments,P=D.length-1,M=0;M0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,O=this._demuxer.parseChunks(T,D);else if((M=y.default.probe(T)).match){this._demuxer=new y.default(M,this._config),this._remuxer||(this._remuxer=new S.default(this._config));var L=this._mediaDataSource;L.duration!=null&&!isNaN(L.duration)&&(this._demuxer.overridedDuration=L.duration),typeof L.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=L.hasAudio),typeof L.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=L.hasVideo),this._demuxer.timestampBase=L.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),O=this._demuxer.parseChunks(T,D)}else M=null,p.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){P._internalAbort()}),this._emitter.emit(x.default.DEMUX_ERROR,k.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),O=0;return O},_.prototype._onMediaInfo=function(T){var D=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},T),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,g.default.prototype));var P=Object.assign({},T);Object.setPrototypeOf(P,g.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=P,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var M=D._pendingSeekTime;D._pendingSeekTime=null,D.seek(M)})},_.prototype._onMetaDataArrived=function(T){this._emitter.emit(x.default.METADATA_ARRIVED,T)},_.prototype._onScriptDataArrived=function(T){this._emitter.emit(x.default.SCRIPTDATA_ARRIVED,T)},_.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},_.prototype._onIOComplete=function(T){var D=T,P=D+1;P0&&P[0].originalDts===M&&(M=P[0].pts),this._emitter.emit(x.default.RECOMMEND_SEEKPOINT,M)}},_.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},_.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},_.prototype._reportSegmentMediaInfo=function(T){var D=this._mediaInfo.segments[T],P=Object.assign({},D);P.duration=this._mediaInfo.duration,P.segmentCount=this._mediaInfo.segmentCount,delete P.segments,delete P.keyframesIndex,this._emitter.emit(x.default.MEDIA_INFO,P)},_.prototype._reportStatisticsInfo=function(){var T={};T.url=this._ioctl.currentURL,T.hasRedirect=this._ioctl.hasRedirect,T.hasRedirect&&(T.redirectedURL=this._ioctl.currentRedirectedURL),T.speed=this._ioctl.currentSpeed,T.loaderType=this._ioctl.loaderType,T.currentSegmentIndex=this._currentSegmentIndex,T.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(x.default.STATISTICS_INFO,T)},_})();l.default=E}),"./src/core/transmuxing-events.js":(function(s,l,c){c.r(l);var d={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};l.default=d}),"./src/core/transmuxing-worker.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logging-control.js"),h=c("./src/utils/polyfill.js"),p=c("./src/core/transmuxing-controller.js"),v=c("./src/core/transmuxing-events.js"),g=function(y){var S=null,k=j.bind(this);h.default.install(),y.addEventListener("message",function(H){switch(H.data.cmd){case"init":S=new p.default(H.data.param[0],H.data.param[1]),S.on(v.default.IO_ERROR,O.bind(this)),S.on(v.default.DEMUX_ERROR,L.bind(this)),S.on(v.default.INIT_SEGMENT,C.bind(this)),S.on(v.default.MEDIA_SEGMENT,x.bind(this)),S.on(v.default.LOADING_COMPLETE,E.bind(this)),S.on(v.default.RECOVERED_EARLY_EOF,_.bind(this)),S.on(v.default.MEDIA_INFO,T.bind(this)),S.on(v.default.METADATA_ARRIVED,D.bind(this)),S.on(v.default.SCRIPTDATA_ARRIVED,P.bind(this)),S.on(v.default.STATISTICS_INFO,M.bind(this)),S.on(v.default.RECOMMEND_SEEKPOINT,B.bind(this));break;case"destroy":S&&(S.destroy(),S=null),y.postMessage({msg:"destroyed"});break;case"start":S.start();break;case"stop":S.stop();break;case"seek":S.seek(H.data.param);break;case"pause":S.pause();break;case"resume":S.resume();break;case"logging_config":{var U=H.data.param;d.default.applyConfig(U),U.enableCallback===!0?d.default.addLogListener(k):d.default.removeLogListener(k);break}}});function C(H,U){var K={msg:v.default.INIT_SEGMENT,data:{type:H,data:U}};y.postMessage(K,[U.data])}function x(H,U){var K={msg:v.default.MEDIA_SEGMENT,data:{type:H,data:U}};y.postMessage(K,[U.data])}function E(){var H={msg:v.default.LOADING_COMPLETE};y.postMessage(H)}function _(){var H={msg:v.default.RECOVERED_EARLY_EOF};y.postMessage(H)}function T(H){var U={msg:v.default.MEDIA_INFO,data:H};y.postMessage(U)}function D(H){var U={msg:v.default.METADATA_ARRIVED,data:H};y.postMessage(U)}function P(H){var U={msg:v.default.SCRIPTDATA_ARRIVED,data:H};y.postMessage(U)}function M(H){var U={msg:v.default.STATISTICS_INFO,data:H};y.postMessage(U)}function O(H,U){y.postMessage({msg:v.default.IO_ERROR,data:{type:H,info:U}})}function L(H,U){y.postMessage({msg:v.default.DEMUX_ERROR,data:{type:H,info:U}})}function B(H){y.postMessage({msg:v.default.RECOMMEND_SEEKPOINT,data:H})}function j(H,U){y.postMessage({msg:"logcat_callback",data:{type:H,logcat:U}})}};l.default=g}),"./src/demux/amf-parser.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/utils/utf8-conv.js"),p=c("./src/utils/exception.js"),v=(function(){var y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]===256})(),g=(function(){function y(){}return y.parseScriptData=function(S,k,C){var x={};try{var E=y.parseValue(S,k,C),_=y.parseValue(S,k+E.size,C-E.size);x[E.data]=_.data}catch(T){d.default.e("AMF",T.toString())}return x},y.parseObject=function(S,k,C){if(C<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var x=y.parseString(S,k,C),E=y.parseValue(S,k+x.size,C-x.size),_=E.objectEnd;return{data:{name:x.data,value:E.data},size:x.size+E.size,objectEnd:_}},y.parseVariable=function(S,k,C){return y.parseObject(S,k,C)},y.parseString=function(S,k,C){if(C<2)throw new p.IllegalStateException("Data not enough when parse String");var x=new DataView(S,k,C),E=x.getUint16(0,!v),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+2,E)):_="",{data:_,size:2+E}},y.parseLongString=function(S,k,C){if(C<4)throw new p.IllegalStateException("Data not enough when parse LongString");var x=new DataView(S,k,C),E=x.getUint32(0,!v),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+4,E)):_="",{data:_,size:4+E}},y.parseDate=function(S,k,C){if(C<10)throw new p.IllegalStateException("Data size invalid when parse Date");var x=new DataView(S,k,C),E=x.getFloat64(0,!v),_=x.getInt16(8,!v);return E+=_*60*1e3,{data:new Date(E),size:10}},y.parseValue=function(S,k,C){if(C<1)throw new p.IllegalStateException("Data not enough when parse Value");var x=new DataView(S,k,C),E=1,_=x.getUint8(0),T,D=!1;try{switch(_){case 0:T=x.getFloat64(1,!v),E+=8;break;case 1:{var P=x.getUint8(1);T=!!P,E+=1;break}case 2:{var M=y.parseString(S,k+1,C-1);T=M.data,E+=M.size;break}case 3:{T={};var O=0;for((x.getUint32(C-4,!v)&16777215)===9&&(O=3);E32)throw new d.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(v<=this._current_word_bits_left){var g=this._current_word>>>32-v;return this._current_word<<=v,this._current_word_bits_left-=v,g}var y=this._current_word_bits_left?this._current_word:0;y=y>>>32-this._current_word_bits_left;var S=v-this._current_word_bits_left;this._fillCurrentWord();var k=Math.min(S,this._current_word_bits_left),C=this._current_word>>>32-k;return this._current_word<<=k,this._current_word_bits_left-=k,y=y<>>v)!==0)return this._current_word<<=v,this._current_word_bits_left-=v,v;return this._fillCurrentWord(),v+this._skipLeadingZero()},p.prototype.readUEG=function(){var v=this._skipLeadingZero();return this.readBits(v+1)-1},p.prototype.readSEG=function(){var v=this.readUEG();return v&1?v+1>>>1:-1*(v>>>1)},p})();l.default=h}),"./src/demux/flv-demuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/demux/amf-parser.js"),p=c("./src/demux/sps-parser.js"),v=c("./src/demux/demux-errors.js"),g=c("./src/core/media-info.js"),y=c("./src/utils/exception.js");function S(C,x){return C[x]<<24|C[x+1]<<16|C[x+2]<<8|C[x+3]}var k=(function(){function C(x,E){this.TAG="FLVDemuxer",this._config=E,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=x.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=x.hasAudioTrack,this._hasVideo=x.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new g.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var _=new ArrayBuffer(2);return new DataView(_).setInt16(0,256,!0),new Int16Array(_)[0]===256})()}return C.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},C.probe=function(x){var E=new Uint8Array(x),_={match:!1};if(E[0]!==70||E[1]!==76||E[2]!==86||E[3]!==1)return _;var T=(E[4]&4)>>>2!==0,D=(E[4]&1)!==0,P=S(E,5);return P<9?_:{match:!0,consumed:P,dataOffset:P,hasAudioTrack:T,hasVideoTrack:D}},C.prototype.bindDataSource=function(x){return x.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(C.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(x){this._onTrackMetadata=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(x){this._onMediaInfo=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(x){this._onMetaDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(x){this._onScriptDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onError",{get:function(){return this._onError},set:function(x){this._onError=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(x){this._onDataAvailable=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(x){this._timestampBase=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedDuration",{get:function(){return this._duration},set:function(x){this._durationOverrided=!0,this._duration=x,this._mediaInfo.duration=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasAudio",{set:function(x){this._hasAudioFlagOverrided=!0,this._hasAudio=x,this._mediaInfo.hasAudio=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasVideo",{set:function(x){this._hasVideoFlagOverrided=!0,this._hasVideo=x,this._mediaInfo.hasVideo=x},enumerable:!1,configurable:!0}),C.prototype.resetMediaInfo=function(){this._mediaInfo=new g.default},C.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1},C.prototype.parseChunks=function(x,E){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new y.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var _=0,T=this._littleEndian;if(E===0)if(x.byteLength>13){var D=C.probe(x);_=D.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,E+_!==this._dataOffset&&d.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var P=new DataView(x,_),M=P.getUint32(0,!T);M!==0&&d.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),_+=4}for(;_x.byteLength)break;var O=P.getUint8(0),L=P.getUint32(0,!T)&16777215;if(_+11+L+4>x.byteLength)break;if(O!==8&&O!==9&&O!==18){d.default.w(this.TAG,"Unsupported tag type "+O+", skipped"),_+=11+L+4;continue}var B=P.getUint8(4),j=P.getUint8(5),H=P.getUint8(6),U=P.getUint8(7),K=H|j<<8|B<<16|U<<24,Y=P.getUint32(7,!T)&16777215;Y!==0&&d.default.w(this.TAG,"Meet tag which has StreamID != 0!");var ie=_+11;switch(O){case 8:this._parseAudioData(x,ie,L,K);break;case 9:this._parseVideoData(x,ie,L,K,E+_);break;case 18:this._parseScriptData(x,ie,L);break}var te=P.getUint32(11+L,!T);te!==11+L&&d.default.w(this.TAG,"Invalid PrevTagSize "+te),_+=11+L+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),_},C.prototype._parseScriptData=function(x,E,_){var T=h.default.parseScriptData(x,E,_);if(T.hasOwnProperty("onMetaData")){if(T.onMetaData==null||typeof T.onMetaData!="object"){d.default.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&d.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=T;var D=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},D)),typeof D.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=D.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof D.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=D.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof D.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=D.audiodatarate),typeof D.videodatarate=="number"&&(this._mediaInfo.videoDataRate=D.videodatarate),typeof D.width=="number"&&(this._mediaInfo.width=D.width),typeof D.height=="number"&&(this._mediaInfo.height=D.height),typeof D.duration=="number"){if(!this._durationOverrided){var P=Math.floor(D.duration*this._timescale);this._duration=P,this._mediaInfo.duration=P}}else this._mediaInfo.duration=0;if(typeof D.framerate=="number"){var M=Math.floor(D.framerate*1e3);if(M>0){var O=M/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=O,this._referenceFrameRate.fps_num=M,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=O}}if(typeof D.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var L=D.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(L),D.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=D,d.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(T).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},T))},C.prototype._parseKeyframesIndex=function(x){for(var E=[],_=[],T=1;T>>4;if(M!==2&&M!==10){this._onError(v.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+M);return}var O=0,L=(P&12)>>>2;if(L>=0&&L<=4)O=this._flvSoundRateTable[L];else{this._onError(v.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+L);return}var B=P&1,j=this._audioMetadata,H=this._audioTrack;if(j||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),j=this._audioMetadata={},j.type="audio",j.id=H.id,j.timescale=this._timescale,j.duration=this._duration,j.audioSampleRate=O,j.channelCount=B===0?1:2),M===10){var U=this._parseAACAudioData(x,E+1,_-1);if(U==null)return;if(U.packetType===0){j.config&&d.default.w(this.TAG,"Found another AudioSpecificConfig!");var K=U.data;j.audioSampleRate=K.samplingRate,j.channelCount=K.channelCount,j.codec=K.codec,j.originalCodec=K.originalCodec,j.config=K.config,j.refSampleDuration=1024/j.audioSampleRate*j.timescale,d.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",j);var Y=this._mediaInfo;Y.audioCodec=j.originalCodec,Y.audioSampleRate=j.audioSampleRate,Y.audioChannelCount=j.channelCount,Y.hasVideo?Y.videoCodec!=null&&(Y.mimeType='video/x-flv; codecs="'+Y.videoCodec+","+Y.audioCodec+'"'):Y.mimeType='video/x-flv; codecs="'+Y.audioCodec+'"',Y.isComplete()&&this._onMediaInfo(Y)}else if(U.packetType===1){var ie=this._timestampBase+T,te={unit:U.data,length:U.data.byteLength,dts:ie,pts:ie};H.samples.push(te),H.length+=U.data.length}else d.default.e(this.TAG,"Flv: Unsupported AAC data type "+U.packetType)}else if(M===2){if(!j.codec){var K=this._parseMP3AudioData(x,E+1,_-1,!0);if(K==null)return;j.audioSampleRate=K.samplingRate,j.channelCount=K.channelCount,j.codec=K.codec,j.originalCodec=K.originalCodec,j.refSampleDuration=1152/j.audioSampleRate*j.timescale,d.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",j);var Y=this._mediaInfo;Y.audioCodec=j.codec,Y.audioSampleRate=j.audioSampleRate,Y.audioChannelCount=j.channelCount,Y.audioDataRate=K.bitRate,Y.hasVideo?Y.videoCodec!=null&&(Y.mimeType='video/x-flv; codecs="'+Y.videoCodec+","+Y.audioCodec+'"'):Y.mimeType='video/x-flv; codecs="'+Y.audioCodec+'"',Y.isComplete()&&this._onMediaInfo(Y)}var W=this._parseMP3AudioData(x,E+1,_-1,!1);if(W==null)return;var ie=this._timestampBase+T,q={unit:W,length:W.byteLength,dts:ie,pts:ie};H.samples.push(q),H.length+=W.length}}},C.prototype._parseAACAudioData=function(x,E,_){if(_<=1){d.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var T={},D=new Uint8Array(x,E,_);return T.packetType=D[0],D[0]===0?T.data=this._parseAACAudioSpecificConfig(x,E+1,_-1):T.data=D.subarray(1),T},C.prototype._parseAACAudioSpecificConfig=function(x,E,_){var T=new Uint8Array(x,E,_),D=null,P=0,M=0,O=0,L=null;if(P=M=T[0]>>>3,O=(T[0]&7)<<1|T[1]>>>7,O<0||O>=this._mpegSamplingRates.length){this._onError(v.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var B=this._mpegSamplingRates[O],j=(T[1]&120)>>>3;if(j<0||j>=8){this._onError(v.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}P===5&&(L=(T[1]&7)<<1|T[2]>>>7,(T[2]&124)>>>2);var H=self.navigator.userAgent.toLowerCase();return H.indexOf("firefox")!==-1?O>=6?(P=5,D=new Array(4),L=O-3):(P=2,D=new Array(2),L=O):H.indexOf("android")!==-1?(P=2,D=new Array(2),L=O):(P=5,L=O,D=new Array(4),O>=6?L=O-3:j===1&&(P=2,D=new Array(2),L=O)),D[0]=P<<3,D[0]|=(O&15)>>>1,D[1]=(O&15)<<7,D[1]|=(j&15)<<3,P===5&&(D[1]|=(L&15)>>>1,D[2]=(L&1)<<7,D[2]|=8,D[3]=0),{config:D,samplingRate:B,channelCount:j,codec:"mp4a.40."+P,originalCodec:"mp4a.40."+M}},C.prototype._parseMP3AudioData=function(x,E,_,T){if(_<4){d.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var D=new Uint8Array(x,E,_),P=null;if(T){if(D[0]!==255)return;var M=D[1]>>>3&3,O=(D[1]&6)>>1,L=(D[2]&240)>>>4,B=(D[2]&12)>>>2,j=D[3]>>>6&3,H=j!==3?2:1,U=0,K=0,Y="mp3";switch(M){case 0:U=this._mpegAudioV25SampleRateTable[B];break;case 2:U=this._mpegAudioV20SampleRateTable[B];break;case 3:U=this._mpegAudioV10SampleRateTable[B];break}switch(O){case 1:L>>4,O=P&15;if(O!==7){this._onError(v.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+O);return}this._parseAVCVideoPacket(x,E+1,_-1,T,D,M)}},C.prototype._parseAVCVideoPacket=function(x,E,_,T,D,P){if(_<4){d.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var M=this._littleEndian,O=new DataView(x,E,_),L=O.getUint8(0),B=O.getUint32(0,!M)&16777215,j=B<<8>>8;if(L===0)this._parseAVCDecoderConfigurationRecord(x,E+4,_-4);else if(L===1)this._parseAVCVideoData(x,E+4,_-4,T,D,P,j);else if(L!==2){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid video packet type "+L);return}},C.prototype._parseAVCDecoderConfigurationRecord=function(x,E,_){if(_<7){d.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var T=this._videoMetadata,D=this._videoTrack,P=this._littleEndian,M=new DataView(x,E,_);T?typeof T.avcc<"u"&&d.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),T=this._videoMetadata={},T.type="video",T.id=D.id,T.timescale=this._timescale,T.duration=this._duration);var O=M.getUint8(0),L=M.getUint8(1);if(M.getUint8(2),M.getUint8(3),O!==1||L===0){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(M.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(v.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var B=M.getUint8(5)&31;if(B===0){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else B>1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+B);for(var j=6,H=0;H1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+re);j++;for(var H=0;H=_){d.default.w(this.TAG,"Malformed Nalu near timestamp "+K+", offset = "+H+", dataSize = "+_);break}var ie=L.getUint32(H,!O);if(U===3&&(ie>>>=8),ie>_-U){d.default.w(this.TAG,"Malformed Nalus near timestamp "+K+", NaluSize > DataSize!");return}var te=L.getUint8(H+U)&31;te===5&&(Y=!0);var W=new Uint8Array(x,E+H,U+ie),q={type:te,data:W};B.push(q),j+=W.byteLength,H+=U+ie}if(B.length){var Q=this._videoTrack,se={units:B,length:j,isKeyframe:Y,dts:K,cts:M,pts:K+M};Y&&(se.fileposition=D),Q.samples.push(se),Q.length+=j}},C})();l.default=k}),"./src/demux/sps-parser.js":(function(s,l,c){c.r(l);var d=c("./src/demux/exp-golomb.js"),h=(function(){function p(){}return p._ebsp2rbsp=function(v){for(var g=v,y=g.byteLength,S=new Uint8Array(y),k=0,C=0;C=2&&g[C]===3&&g[C-1]===0&&g[C-2]===0||(S[k]=g[C],k++);return new Uint8Array(S.buffer,0,k)},p.parseSPS=function(v){var g=p._ebsp2rbsp(v),y=new d.default(g);y.readByte();var S=y.readByte();y.readByte();var k=y.readByte();y.readUEG();var C=p.getProfileString(S),x=p.getLevelString(k),E=1,_=420,T=[0,420,422,444],D=8;if((S===100||S===110||S===122||S===244||S===44||S===83||S===86||S===118||S===128||S===138||S===144)&&(E=y.readUEG(),E===3&&y.readBits(1),E<=3&&(_=T[E]),D=y.readUEG()+8,y.readUEG(),y.readBits(1),y.readBool()))for(var P=E!==3?8:12,M=0;M0&&ge<16?(q=xe[ge-1],Q=Ge[ge-1]):ge===255&&(q=y.readByte()<<8|y.readByte(),Q=y.readByte()<<8|y.readByte())}if(y.readBool()&&y.readBool(),y.readBool()&&(y.readBits(4),y.readBool()&&y.readBits(24)),y.readBool()&&(y.readUEG(),y.readUEG()),y.readBool()){var tt=y.readBits(32),Ue=y.readBits(32);ae=y.readBool(),re=Ue,Ce=tt*2,se=re/Ce}}var _e=1;(q!==1||Q!==1)&&(_e=q/Q);var ve=0,me=0;if(E===0)ve=1,me=2-U;else{var Oe=E===3?1:2,qe=E===1?2:1;ve=Oe,me=qe*(2-U)}var Ke=(j+1)*16,at=(2-U)*((H+1)*16);Ke-=(K+Y)*ve,at-=(ie+te)*me;var ft=Math.ceil(Ke*_e);return y.destroy(),y=null,{profile_string:C,level_string:x,bit_depth:D,ref_frames:B,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:ae,fps:se,fps_den:Ce,fps_num:re},sar_ratio:{width:q,height:Q},codec_size:{width:Ke,height:at},present_size:{width:ft,height:at}}},p._skipScalingList=function(v,g){for(var y=8,S=8,k=0,C=0;C=15048,C=d.default.msedge?k:!0;return self.fetch&&self.ReadableStream&&C}catch{return!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),y.prototype.destroy.call(this)},S.prototype.open=function(k,C){var x=this;this._dataSource=k,this._range=C;var E=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(E=k.redirectedURL);var _=this._seekHandler.getConfig(E,C),T=new self.Headers;if(typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.append(P,D[P])}var M={method:"GET",headers:T,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var P in this._config.headers)T.append(P,this._config.headers[P]);k.cors===!1&&(M.mode="same-origin"),k.withCredentials&&(M.credentials="include"),k.referrerPolicy&&(M.referrerPolicy=k.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,M.signal=this._abortController.signal),this._status=h.LoaderStatus.kConnecting,self.fetch(_.url,M).then(function(O){if(x._requestAbort){x._status=h.LoaderStatus.kIdle,O.body.cancel();return}if(O.ok&&O.status>=200&&O.status<=299){if(O.url!==_.url&&x._onURLRedirect){var L=x._seekHandler.removeURLParameters(O.url);x._onURLRedirect(L)}var B=O.headers.get("Content-Length");return B!=null&&(x._contentLength=parseInt(B),x._contentLength!==0&&x._onContentLengthKnown&&x._onContentLengthKnown(x._contentLength)),x._pump.call(x,O.body.getReader())}else if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:O.status,msg:O.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+O.status+" "+O.statusText)}).catch(function(O){if(!(x._abortController&&x._abortController.signal.aborted))if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:O.message});else throw O})},S.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==h.LoaderStatus.kBuffering||!d.default.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},S.prototype._pump=function(k){var C=this;return k.read().then(function(x){if(x.done)if(C._contentLength!==null&&C._receivedLength0&&(this._stashInitialSize=D.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,D.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=T,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(T.url),this._refTotalLength=T.filesize?T.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new h.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return _.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},_.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},_.prototype.isPaused=function(){return this._paused},Object.defineProperty(_.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"extraData",{get:function(){return this._extraData},set:function(T){this._extraData=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(T){this._onDataArrival=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(T){this._onSeeked=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(T){this._onError=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onComplete",{get:function(){return this._onComplete},set:function(T){this._onComplete=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(T){this._onRedirect=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(T){this._onRecoveredEarlyEof=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentSpeed",{get:function(){return this._loaderClass===y.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),_.prototype._selectSeekHandler=function(){var T=this._config;if(T.seekType==="range")this._seekHandler=new k.default(this._config.rangeLoadZeroStart);else if(T.seekType==="param"){var D=T.seekParamStart||"bstart",P=T.seekParamEnd||"bend";this._seekHandler=new C.default(D,P)}else if(T.seekType==="custom"){if(typeof T.customSeekHandler!="function")throw new x.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new T.customSeekHandler}else throw new x.InvalidArgumentException("Invalid seekType in config: "+T.seekType)},_.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=S.default;else if(v.default.isSupported())this._loaderClass=v.default;else if(g.default.isSupported())this._loaderClass=g.default;else if(y.default.isSupported())this._loaderClass=y.default;else throw new x.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!")},_.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},_.prototype.open=function(T){this._currentRange={from:0,to:-1},T&&(this._currentRange.from=T),this._speedSampler.reset(),T||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},_.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},_.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},_.prototype.resume=function(){if(this._paused){this._paused=!1;var T=this._resumeFrom;this._resumeFrom=0,this._internalSeek(T,!0)}},_.prototype.seek=function(T){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(T,!0)},_.prototype._internalSeek=function(T,D){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(D),this._loader.destroy(),this._loader=null;var P={from:T,to:-1};this._currentRange={from:P.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,P),this._onSeeked&&this._onSeeked()},_.prototype.updateUrl=function(T){if(!T||typeof T!="string"||T.length===0)throw new x.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=T},_.prototype._expandBuffer=function(T){for(var D=this._stashSize;D+1024*1024*10){var M=new Uint8Array(this._stashBuffer,0,this._stashUsed),O=new Uint8Array(P,0,D);O.set(M,0)}this._stashBuffer=P,this._bufferSize=D}},_.prototype._normalizeSpeed=function(T){var D=this._speedNormalizeList,P=D.length-1,M=0,O=0,L=P;if(T=D[M]&&T=512&&T<=1024?D=Math.floor(T*1.5):D=T*2,D>8192&&(D=8192);var P=D*1024+1024*1024*1;this._bufferSize0){var U=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(U,this._stashByteStart);if(L0){var H=new Uint8Array(U,L);j.set(H,0),this._stashUsed=H.byteLength,this._stashByteStart+=L}}else this._stashUsed=0,this._stashByteStart+=L;this._stashUsed+T.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+T.byteLength),j=new Uint8Array(this._stashBuffer,0,this._bufferSize)),j.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength}else{var L=this._dispatchChunks(T,D);if(Lthis._bufferSize&&(this._expandBuffer(B),j=new Uint8Array(this._stashBuffer,0,this._bufferSize)),j.set(new Uint8Array(T,L),0),this._stashUsed+=B,this._stashByteStart=D+L}}}else if(this._stashUsed===0){var L=this._dispatchChunks(T,D);if(Lthis._bufferSize&&this._expandBuffer(B);var j=new Uint8Array(this._stashBuffer,0,this._bufferSize);j.set(new Uint8Array(T,L),0),this._stashUsed+=B,this._stashByteStart=D+L}}else{this._stashUsed+T.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+T.byteLength);var j=new Uint8Array(this._stashBuffer,0,this._bufferSize);j.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength;var L=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(L0){var H=new Uint8Array(this._stashBuffer,L);j.set(H,0)}this._stashUsed-=L,this._stashByteStart+=L}}},_.prototype._flushStashBuffer=function(T){if(this._stashUsed>0){var D=this._stashBuffer.slice(0,this._stashUsed),P=this._dispatchChunks(D,this._stashByteStart),M=D.byteLength-P;if(P0){var O=new Uint8Array(this._stashBuffer,0,this._bufferSize),L=new Uint8Array(D,P);O.set(L,0),this._stashUsed=L.byteLength,this._stashByteStart+=P}return 0}return this._stashUsed=0,this._stashByteStart=0,M}return 0},_.prototype._onLoaderComplete=function(T,D){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},_.prototype._onLoaderError=function(T,D){switch(d.default.e(this.TAG,"Loader error, code = "+D.code+", msg = "+D.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,T=p.LoaderErrors.UNRECOVERABLE_EARLY_EOF),T){case p.LoaderErrors.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var P=this._currentRange.to+1;P0)for(var k=g.split("&"),C=0;C0;x[0]!==this._startName&&x[0]!==this._endName&&(E&&(S+="&"),S+=k[C])}return S.length===0?v:v+"?"+S},h})();l.default=d}),"./src/io/range-seek-handler.js":(function(s,l,c){c.r(l);var d=(function(){function h(p){this._zeroStart=p||!1}return h.prototype.getConfig=function(p,v){var g={};if(v.from!==0||v.to!==-1){var y=void 0;v.to!==-1?y="bytes="+v.from.toString()+"-"+v.to.toString():y="bytes="+v.from.toString()+"-",g.Range=y}else this._zeroStart&&(g.Range="bytes=0-");return{url:p,headers:g}},h.prototype.removeURLParameters=function(p){return p},h})();l.default=d}),"./src/io/speed-sampler.js":(function(s,l,c){c.r(l);var d=(function(){function h(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return h.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},h.prototype.addBytes=function(p){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=p,this._totalBytes+=p):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=p,this._totalBytes+=p):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=p,this._totalBytes+=p,this._lastCheckpoint=this._now())},Object.defineProperty(h.prototype,"currentKBps",{get:function(){this.addBytes(0);var p=(this._now()-this._lastCheckpoint)/1e3;return p==0&&(p=1),this._intervalBytes/p/1024},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"averageKBps",{get:function(){var p=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/p/1024},enumerable:!1,configurable:!0}),h})();l.default=d}),"./src/io/websocket-loader.js":(function(s,l,c){c.r(l);var d=c("./src/io/loader.js"),h=c("./src/utils/exception.js"),p=(function(){var g=function(y,S){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,C){k.__proto__=C}||function(k,C){for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(k[x]=C[x])},g(y,S)};return function(y,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");g(y,S);function k(){this.constructor=y}y.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}})(),v=(function(g){p(y,g);function y(){var S=g.call(this,"websocket-loader")||this;return S.TAG="WebSocketLoader",S._needStash=!0,S._ws=null,S._requestAbort=!1,S._receivedLength=0,S}return y.isSupported=function(){try{return typeof self.WebSocket<"u"}catch{return!1}},y.prototype.destroy=function(){this._ws&&this.abort(),g.prototype.destroy.call(this)},y.prototype.open=function(S){try{var k=this._ws=new self.WebSocket(S.url);k.binaryType="arraybuffer",k.onopen=this._onWebSocketOpen.bind(this),k.onclose=this._onWebSocketClose.bind(this),k.onmessage=this._onWebSocketMessage.bind(this),k.onerror=this._onWebSocketError.bind(this),this._status=d.LoaderStatus.kConnecting}catch(x){this._status=d.LoaderStatus.kError;var C={code:x.code,msg:x.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,C);else throw new h.RuntimeException(C.msg)}},y.prototype.abort=function(){var S=this._ws;S&&(S.readyState===0||S.readyState===1)&&(this._requestAbort=!0,S.close()),this._ws=null,this._status=d.LoaderStatus.kComplete},y.prototype._onWebSocketOpen=function(S){this._status=d.LoaderStatus.kBuffering},y.prototype._onWebSocketClose=function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=d.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)},y.prototype._onWebSocketMessage=function(S){var k=this;if(S.data instanceof ArrayBuffer)this._dispatchArrayBuffer(S.data);else if(S.data instanceof Blob){var C=new FileReader;C.onload=function(){k._dispatchArrayBuffer(C.result)},C.readAsArrayBuffer(S.data)}else{this._status=d.LoaderStatus.kError;var x={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,x);else throw new h.RuntimeException(x.msg)}},y.prototype._dispatchArrayBuffer=function(S){var k=S,C=this._receivedLength;this._receivedLength+=k.byteLength,this._onDataArrival&&this._onDataArrival(k,C,this._receivedLength)},y.prototype._onWebSocketError=function(S){this._status=d.LoaderStatus.kError;var k={code:S.code,msg:S.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,k);else throw new h.RuntimeException(k.msg)},y})(d.BaseLoader);l.default=v}),"./src/io/xhr-moz-chunked-loader.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/io/loader.js"),p=c("./src/utils/exception.js"),v=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(C[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),g=(function(y){v(S,y);function S(k,C){var x=y.call(this,"xhr-moz-chunked-loader")||this;return x.TAG="MozChunkedLoader",x._seekHandler=k,x._config=C,x._needStash=!0,x._xhr=null,x._requestAbort=!1,x._contentLength=null,x._receivedLength=0,x}return S.isSupported=function(){try{var k=new XMLHttpRequest;return k.open("GET","https://example.com",!0),k.responseType="moz-chunked-arraybuffer",k.responseType==="moz-chunked-arraybuffer"}catch(C){return d.default.w("MozChunkedLoader",C.message),!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),y.prototype.destroy.call(this)},S.prototype.open=function(k,C){this._dataSource=k,this._range=C;var x=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(x=k.redirectedURL);var E=this._seekHandler.getConfig(x,C);this._requestURL=E.url;var _=this._xhr=new XMLHttpRequest;if(_.open("GET",E.url,!0),_.responseType="moz-chunked-arraybuffer",_.onreadystatechange=this._onReadyStateChange.bind(this),_.onprogress=this._onProgress.bind(this),_.onloadend=this._onLoadEnd.bind(this),_.onerror=this._onXhrError.bind(this),k.withCredentials&&(_.withCredentials=!0),typeof E.headers=="object"){var T=E.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}if(typeof this._config.headers=="object"){var T=this._config.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}this._status=h.LoaderStatus.kConnecting,_.send()},S.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=h.LoaderStatus.kComplete},S.prototype._onReadyStateChange=function(k){var C=k.target;if(C.readyState===2){if(C.responseURL!=null&&C.responseURL!==this._requestURL&&this._onURLRedirect){var x=this._seekHandler.removeURLParameters(C.responseURL);this._onURLRedirect(x)}if(C.status!==0&&(C.status<200||C.status>299))if(this._status=h.LoaderStatus.kError,this._onError)this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:C.status,msg:C.statusText});else throw new p.RuntimeException("MozChunkedLoader: Http code invalid, "+C.status+" "+C.statusText);else this._status=h.LoaderStatus.kBuffering}},S.prototype._onProgress=function(k){if(this._status!==h.LoaderStatus.kError){this._contentLength===null&&k.total!==null&&k.total!==0&&(this._contentLength=k.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var C=k.target.response,x=this._range.from+this._receivedLength;this._receivedLength+=C.byteLength,this._onDataArrival&&this._onDataArrival(C,x,this._receivedLength)}},S.prototype._onLoadEnd=function(k){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===h.LoaderStatus.kError)return;this._status=h.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)},S.prototype._onXhrError=function(k){this._status=h.LoaderStatus.kError;var C=0,x=null;if(this._contentLength&&k.loaded=this._contentLength&&(E=this._range.from+this._contentLength-1),this._currentRequestRange={from:x,to:E},this._internalOpen(this._dataSource,this._currentRequestRange)},k.prototype._internalOpen=function(C,x){this._lastTimeLoaded=0;var E=C.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?E=this._currentRedirectedURL:C.redirectedURL!=null&&(E=C.redirectedURL));var _=this._seekHandler.getConfig(E,x);this._currentRequestURL=_.url;var T=this._xhr=new XMLHttpRequest;if(T.open("GET",_.url,!0),T.responseType="arraybuffer",T.onreadystatechange=this._onReadyStateChange.bind(this),T.onprogress=this._onProgress.bind(this),T.onload=this._onLoad.bind(this),T.onerror=this._onXhrError.bind(this),C.withCredentials&&(T.withCredentials=!0),typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}if(typeof this._config.headers=="object"){var D=this._config.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}T.send()},k.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=p.LoaderStatus.kComplete},k.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},k.prototype._onReadyStateChange=function(C){var x=C.target;if(x.readyState===2){if(x.responseURL!=null){var E=this._seekHandler.removeURLParameters(x.responseURL);x.responseURL!==this._currentRequestURL&&E!==this._currentRedirectedURL&&(this._currentRedirectedURL=E,this._onURLRedirect&&this._onURLRedirect(E))}if(x.status>=200&&x.status<=299){if(this._waitForTotalLength)return;this._status=p.LoaderStatus.kBuffering}else if(this._status=p.LoaderStatus.kError,this._onError)this._onError(p.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:x.status,msg:x.statusText});else throw new v.RuntimeException("RangeLoader: Http code invalid, "+x.status+" "+x.statusText)}},k.prototype._onProgress=function(C){if(this._status!==p.LoaderStatus.kError){if(this._contentLength===null){var x=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,x=!0;var E=C.total;this._internalAbort(),E!=null&E!==0&&(this._totalLength=E)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,x){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var _=C.loaded-this._lastTimeLoaded;this._lastTimeLoaded=C.loaded,this._speedSampler.addBytes(_)}},k.prototype._normalizeSpeed=function(C){var x=this._chunkSizeKBList,E=x.length-1,_=0,T=0,D=E;if(C=x[_]&&C=3&&(x=this._speedSampler.currentKBps)),x!==0){var E=this._normalizeSpeed(x);this._currentSpeedNormalized!==E&&(this._currentSpeedNormalized=E,this._currentChunkSizeKB=E)}var _=C.target.response,T=this._range.from+this._receivedLength;this._receivedLength+=_.byteLength;var D=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new y.default(this._mediaDataSource,this._config),this._transmuxer.on(S.default.INIT_SEGMENT,function(M,O){P._msectl.appendInitSegment(O)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(M,O){if(P._msectl.appendMediaSegment(O),P._config.lazyLoad&&!P._config.isLive){var L=P._mediaElement.currentTime;O.info.endDts>=(L+P._config.lazyLoadMaxDuration)*1e3&&P._progressChecker==null&&(p.default.v(P.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),P._suspendTransmuxer())}}),this._transmuxer.on(S.default.LOADING_COMPLETE,function(){P._msectl.endOfStream(),P._emitter.emit(g.default.LOADING_COMPLETE)}),this._transmuxer.on(S.default.RECOVERED_EARLY_EOF,function(){P._emitter.emit(g.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(S.default.IO_ERROR,function(M,O){P._emitter.emit(g.default.ERROR,x.ErrorTypes.NETWORK_ERROR,M,O)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(M,O){P._emitter.emit(g.default.ERROR,x.ErrorTypes.MEDIA_ERROR,M,{code:-1,msg:O})}),this._transmuxer.on(S.default.MEDIA_INFO,function(M){P._mediaInfo=M,P._emitter.emit(g.default.MEDIA_INFO,Object.assign({},M))}),this._transmuxer.on(S.default.METADATA_ARRIVED,function(M){P._emitter.emit(g.default.METADATA_ARRIVED,M)}),this._transmuxer.on(S.default.SCRIPTDATA_ARRIVED,function(M){P._emitter.emit(g.default.SCRIPTDATA_ARRIVED,M)}),this._transmuxer.on(S.default.STATISTICS_INFO,function(M){P._statisticsInfo=P._fillStatisticsInfo(M),P._emitter.emit(g.default.STATISTICS_INFO,Object.assign({},P._statisticsInfo))}),this._transmuxer.on(S.default.RECOMMEND_SEEKPOINT,function(M){P._mediaElement&&!P._config.accurateSeek&&(P._requestSetTime=!0,P._mediaElement.currentTime=M/1e3)}),this._transmuxer.open()}},D.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},D.prototype.play=function(){return this._mediaElement.play()},D.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(D.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(P){this._mediaElement.volume=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(P){this._mediaElement.muted=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(P){this._mediaElement?this._internalSeek(P):this._pendingSeekTime=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"statisticsInfo",{get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),D.prototype._fillStatisticsInfo=function(P){if(P.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return P;var M=!0,O=0,L=0;if(this._mediaElement.getVideoPlaybackQuality){var B=this._mediaElement.getVideoPlaybackQuality();O=B.totalVideoFrames,L=B.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(O=this._mediaElement.webkitDecodedFrameCount,L=this._mediaElement.webkitDroppedFrameCount):M=!1;return M&&(P.decodedFrames=O,P.droppedFrames=L),P},D.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var P=this._mediaElement.buffered,M=this._mediaElement.currentTime,O=0,L=0;L=M+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},D.prototype._onmseBufferFull=function(){p.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()},D.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},D.prototype._checkProgressAndResume=function(){for(var P=this._mediaElement.currentTime,M=this._mediaElement.buffered,O=!1,L=0;L=B&&P=j-this._config.lazyLoadRecoverDuration&&(O=!0);break}}O&&(window.clearInterval(this._progressChecker),this._progressChecker=null,O&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},D.prototype._isTimepointBuffered=function(P){for(var M=this._mediaElement.buffered,O=0;O=L&&P0){var B=this._mediaElement.buffered.start(0);(B<1&&P0&&M.currentTime0){var L=O.start(0);if(L<1&&M0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},S.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},S.prototype.play=function(){return this._mediaElement.play()},S.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(S.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(k){this._mediaElement.volume=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(k){this._mediaElement.muted=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(k){this._mediaElement?this._mediaElement.currentTime=k:this._pendingSeekTime=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"mediaInfo",{get:function(){var k=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",C={mimeType:k+this._mediaDataSource.type};return this._mediaElement&&(C.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(C.width=this._mediaElement.videoWidth,C.height=this._mediaElement.videoHeight)),C},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"statisticsInfo",{get:function(){var k={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return k;var C=!0,x=0,E=0;if(this._mediaElement.getVideoPlaybackQuality){var _=this._mediaElement.getVideoPlaybackQuality();x=_.totalVideoFrames,E=_.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(x=this._mediaElement.webkitDecodedFrameCount,E=this._mediaElement.webkitDroppedFrameCount):C=!1;return C&&(k.decodedFrames=x,k.droppedFrames=E),k},enumerable:!1,configurable:!0}),S.prototype._onvLoadedMetadata=function(k){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(p.default.MEDIA_INFO,this.mediaInfo)},S.prototype._reportStatisticsInfo=function(){this._emitter.emit(p.default.STATISTICS_INFO,this.statisticsInfo)},S})();l.default=y}),"./src/player/player-errors.js":(function(s,l,c){c.r(l),c.d(l,{ErrorTypes:function(){return p},ErrorDetails:function(){return v}});var d=c("./src/io/loader.js"),h=c("./src/demux/demux-errors.js"),p={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},v={NETWORK_EXCEPTION:d.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:d.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:d.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:d.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:h.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:h.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:h.default.CODEC_UNSUPPORTED}}),"./src/player/player-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};l.default=d}),"./src/remux/aac-silent.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.getSilentFrame=function(p,v){if(p==="mp4a.40.2"){if(v===1)return new Uint8Array([0,200,0,128,35,128]);if(v===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(v===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(v===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(v===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(v===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(v===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(v===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(v===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},h})();l.default=d}),"./src/remux/mp4-generator.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.init=function(){h.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var p in h.types)h.types.hasOwnProperty(p)&&(h.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);var v=h.constants={};v.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),v.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),v.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),v.STSC=v.STCO=v.STTS,v.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),v.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),v.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),v.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),v.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),v.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},h.box=function(p){for(var v=8,g=null,y=Array.prototype.slice.call(arguments,1),S=y.length,k=0;k>>24&255,g[1]=v>>>16&255,g[2]=v>>>8&255,g[3]=v&255,g.set(p,4);for(var C=8,k=0;k>>24&255,p>>>16&255,p>>>8&255,p&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},h.trak=function(p){return h.box(h.types.trak,h.tkhd(p),h.mdia(p))},h.tkhd=function(p){var v=p.id,g=p.duration,y=p.presentWidth,S=p.presentHeight;return h.box(h.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,y>>>8&255,y&255,0,0,S>>>8&255,S&255,0,0]))},h.mdia=function(p){return h.box(h.types.mdia,h.mdhd(p),h.hdlr(p),h.minf(p))},h.mdhd=function(p){var v=p.timescale,g=p.duration;return h.box(h.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,85,196,0,0]))},h.hdlr=function(p){var v=null;return p.type==="audio"?v=h.constants.HDLR_AUDIO:v=h.constants.HDLR_VIDEO,h.box(h.types.hdlr,v)},h.minf=function(p){var v=null;return p.type==="audio"?v=h.box(h.types.smhd,h.constants.SMHD):v=h.box(h.types.vmhd,h.constants.VMHD),h.box(h.types.minf,v,h.dinf(),h.stbl(p))},h.dinf=function(){var p=h.box(h.types.dinf,h.box(h.types.dref,h.constants.DREF));return p},h.stbl=function(p){var v=h.box(h.types.stbl,h.stsd(p),h.box(h.types.stts,h.constants.STTS),h.box(h.types.stsc,h.constants.STSC),h.box(h.types.stsz,h.constants.STSZ),h.box(h.types.stco,h.constants.STCO));return v},h.stsd=function(p){return p.type==="audio"?p.codec==="mp3"?h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp3(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp4a(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.avc1(p))},h.mp3=function(p){var v=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,v,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types[".mp3"],y)},h.mp4a=function(p){var v=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,v,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types.mp4a,y,h.esds(p))},h.esds=function(p){var v=p.config||[],g=v.length,y=new Uint8Array([0,0,0,0,3,23+g,0,1,0,4,15+g,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([g]).concat(v).concat([6,1,2]));return h.box(h.types.esds,y)},h.avc1=function(p){var v=p.avcc,g=p.codecWidth,y=p.codecHeight,S=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,g>>>8&255,g&255,y>>>8&255,y&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return h.box(h.types.avc1,S,h.box(h.types.avcC,v))},h.mvex=function(p){return h.box(h.types.mvex,h.trex(p))},h.trex=function(p){var v=p.id,g=new Uint8Array([0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return h.box(h.types.trex,g)},h.moof=function(p,v){return h.box(h.types.moof,h.mfhd(p.sequenceNumber),h.traf(p,v))},h.mfhd=function(p){var v=new Uint8Array([0,0,0,0,p>>>24&255,p>>>16&255,p>>>8&255,p&255]);return h.box(h.types.mfhd,v)},h.traf=function(p,v){var g=p.id,y=h.box(h.types.tfhd,new Uint8Array([0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255])),S=h.box(h.types.tfdt,new Uint8Array([0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255])),k=h.sdtp(p),C=h.trun(p,k.byteLength+16+16+8+16+8+8);return h.box(h.types.traf,y,S,C,k)},h.sdtp=function(p){for(var v=p.samples||[],g=v.length,y=new Uint8Array(4+g),S=0;S>>24&255,y>>>16&255,y>>>8&255,y&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255],0);for(var C=0;C>>24&255,x>>>16&255,x>>>8&255,x&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,_.isLeading<<2|_.dependsOn,_.isDependedOn<<6|_.hasRedundancy<<4|_.isNonSync,0,0,T>>>24&255,T>>>16&255,T>>>8&255,T&255],12+16*C)}return h.box(h.types.trun,k)},h.mdat=function(p){return h.box(h.types.mdat,p)},h})();d.init(),l.default=d}),"./src/remux/mp4-remuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/remux/mp4-generator.js"),p=c("./src/remux/aac-silent.js"),v=c("./src/utils/browser.js"),g=c("./src/core/media-segment-info.js"),y=c("./src/utils/exception.js"),S=(function(){function k(C){this.TAG="MP4Remuxer",this._config=C,this._isLive=C.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new g.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new g.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(v.default.chrome&&(v.default.version.major<50||v.default.version.major===50&&v.default.version.build<2661)),this._fillSilentAfterSeek=v.default.msedge||v.default.msie,this._mp3UseMpegAudio=!v.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return k.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},k.prototype.bindDataSource=function(C){return C.onDataAvailable=this.remux.bind(this),C.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(k.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(C){this._onInitSegment=C},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(C){this._onMediaSegment=C},enumerable:!1,configurable:!0}),k.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},k.prototype.seek=function(C){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},k.prototype.remux=function(C,x){if(!this._onMediaSegment)throw new y.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(C,x),this._remuxVideo(x),this._remuxAudio(C)},k.prototype._onTrackMetadataReceived=function(C,x){var E=null,_="mp4",T=x.codec;if(C==="audio")this._audioMeta=x,x.codec==="mp3"&&this._mp3UseMpegAudio?(_="mpeg",T="",E=new Uint8Array):E=h.default.generateInitSegment(x);else if(C==="video")this._videoMeta=x,E=h.default.generateInitSegment(x);else return;if(!this._onInitSegment)throw new y.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(C,{type:C,data:E.buffer,codec:T,container:C+"/"+_,mediaDuration:x.duration})},k.prototype._calculateDtsBase=function(C,x){this._dtsBaseInited||(C.samples&&C.samples.length&&(this._audioDtsBase=C.samples[0].dts),x.samples&&x.samples.length&&(this._videoDtsBase=x.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},k.prototype.flushStashedSamples=function(){var C=this._videoStashedLastSample,x=this._audioStashedLastSample,E={type:"video",id:1,sequenceNumber:0,samples:[],length:0};C!=null&&(E.samples.push(C),E.length=C.length);var _={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};x!=null&&(_.samples.push(x),_.length=x.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(E,!0),this._remuxAudio(_,!0)},k.prototype._remuxAudio=function(C,x){if(this._audioMeta!=null){var E=C,_=E.samples,T=void 0,D=-1,P=-1,M=this._audioMeta.refSampleDuration,O=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,L=this._dtsBaseInited&&this._audioNextDts===void 0,B=!1;if(!(!_||_.length===0)&&!(_.length===1&&!x)){var j=0,H=null,U=0;O?(j=0,U=E.length):(j=8,U=8+E.length);var K=null;if(_.length>1&&(K=_.pop(),U-=K.length),this._audioStashedLastSample!=null){var Y=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(Y),U+=Y.length}K!=null&&(this._audioStashedLastSample=K);var ie=_[0].dts-this._dtsBase;if(this._audioNextDts)T=ie-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())T=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(B=!0);else{var te=this._audioSegmentInfoList.getLastSampleBefore(ie);if(te!=null){var W=ie-(te.originalDts+te.duration);W<=3&&(W=0);var q=te.dts+te.duration+W;T=ie-q}else T=0}if(B){var Q=ie-T,se=this._videoSegmentInfoList.getLastSegmentBefore(ie);if(se!=null&&se.beginDts=me*M&&this._fillAudioTimestampGap&&!v.default.safari){tt=!0;var Oe=Math.floor(T/M);d.default.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. -`+("originalDts: "+Ge+" ms, curRefDts: "+ve+" ms, ")+("dtsCorrection: "+Math.round(T)+" ms, generate: "+Oe+" frames")),re=Math.floor(ve),_e=Math.floor(ve+M)-re;var ae=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ae==null&&(d.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),ae=xe),Ue=[];for(var qe=0;qe=1?_e=Ve[Ve.length-1].duration:_e=Math.floor(M);this._audioNextDts=re+_e}D===-1&&(D=re),Ve.push({dts:re,pts:re,cts:0,unit:Y.unit,size:Y.unit.byteLength,duration:_e,originalDts:Ge,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),tt&&Ve.push.apply(Ve,Ue)}}if(Ve.length===0){E.samples=[],E.length=0;return}O?H=new Uint8Array(U):(H=new Uint8Array(U),H[0]=U>>>24&255,H[1]=U>>>16&255,H[2]=U>>>8&255,H[3]=U&255,H.set(h.default.types.mdat,4));for(var ge=0;ge1&&(H=_.pop(),j-=H.length),this._videoStashedLastSample!=null){var U=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(U),j+=U.length}H!=null&&(this._videoStashedLastSample=H);var K=_[0].dts-this._dtsBase;if(this._videoNextDts)T=K-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())T=0;else{var Y=this._videoSegmentInfoList.getLastSampleBefore(K);if(Y!=null){var ie=K-(Y.originalDts+Y.duration);ie<=3&&(ie=0);var te=Y.dts+Y.duration+ie;T=K-te}else T=0}for(var W=new g.MediaSegmentInfo,q=[],Q=0;Q<_.length;Q++){var U=_[Q],se=U.dts-this._dtsBase,ae=U.isKeyframe,re=se-T,Ce=U.cts,Ve=re+Ce;D===-1&&(D=re,M=Ve);var ge=0;if(Q!==_.length-1){var xe=_[Q+1].dts-this._dtsBase-T;ge=xe-re}else if(H!=null){var xe=H.dts-this._dtsBase-T;ge=xe-re}else q.length>=1?ge=q[q.length-1].duration:ge=Math.floor(this._videoMeta.refSampleDuration);if(ae){var Ge=new g.SampleInfo(re,Ve,ge,U.dts,!0);Ge.fileposition=U.fileposition,W.appendSyncPoint(Ge)}q.push({dts:re,pts:Ve,cts:Ce,units:U.units,size:U.length,isKeyframe:ae,duration:ge,originalDts:se,flags:{isLeading:0,dependsOn:ae?2:1,isDependedOn:ae?1:0,hasRedundancy:0,isNonSync:ae?0:1}})}B=new Uint8Array(j),B[0]=j>>>24&255,B[1]=j>>>16&255,B[2]=j>>>8&255,B[3]=j&255,B.set(h.default.types.mdat,4);for(var Q=0;Q=0&&/(rv)(?::| )([\w.]+)/.exec(p)||p.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(p)||[],g=/(ipad)/.exec(p)||/(ipod)/.exec(p)||/(windows phone)/.exec(p)||/(iphone)/.exec(p)||/(kindle)/.exec(p)||/(android)/.exec(p)||/(windows)/.exec(p)||/(mac)/.exec(p)||/(linux)/.exec(p)||/(cros)/.exec(p)||[],y={browser:v[5]||v[3]||v[1]||"",version:v[2]||v[4]||"0",majorVersion:v[4]||v[2]||"0",platform:g[0]||""},S={};if(y.browser){S[y.browser]=!0;var k=y.majorVersion.split(".");S.version={major:parseInt(y.majorVersion,10),string:y.version},k.length>1&&(S.version.minor=parseInt(k[1],10)),k.length>2&&(S.version.build=parseInt(k[2],10))}if(y.platform&&(S[y.platform]=!0),(S.chrome||S.opr||S.safari)&&(S.webkit=!0),S.rv||S.iemobile){S.rv&&delete S.rv;var C="msie";y.browser=C,S[C]=!0}if(S.edge){delete S.edge;var x="msedge";y.browser=x,S[x]=!0}if(S.opr){var E="opera";y.browser=E,S[E]=!0}if(S.safari&&S.android){var _="android";y.browser=_,S[_]=!0}S.name=y.browser,S.platform=y.platform;for(var T in d)d.hasOwnProperty(T)&&delete d[T];Object.assign(d,S)}h(),l.default=d}),"./src/utils/exception.js":(function(s,l,c){c.r(l),c.d(l,{RuntimeException:function(){return h},IllegalStateException:function(){return p},InvalidArgumentException:function(){return v},NotImplementedException:function(){return g}});var d=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(C[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),h=(function(){function y(S){this._message=S}return Object.defineProperty(y.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),y.prototype.toString=function(){return this.name+": "+this.message},y})(),p=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),S})(h),v=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),S})(h),g=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),S})(h)}),"./src/utils/logger.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=(function(){function v(){}return v.e=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","error",S),v.ENABLE_ERROR&&(console.error?console.error(S):console.warn?console.warn(S):console.log(S))},v.i=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","info",S),v.ENABLE_INFO&&(console.info?console.info(S):console.log(S))},v.w=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","warn",S),v.ENABLE_WARN&&(console.warn?console.warn(S):console.log(S))},v.d=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","debug",S),v.ENABLE_DEBUG&&(console.debug?console.debug(S):console.log(S))},v.v=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","verbose",S),v.ENABLE_VERBOSE&&console.log(S)},v})();p.GLOBAL_TAG="flv.js",p.FORCE_GLOBAL_TAG=!1,p.ENABLE_ERROR=!0,p.ENABLE_INFO=!0,p.ENABLE_WARN=!0,p.ENABLE_DEBUG=!0,p.ENABLE_VERBOSE=!0,p.ENABLE_CALLBACK=!1,p.emitter=new(h()),l.default=p}),"./src/utils/logging-control.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=(function(){function g(){}return Object.defineProperty(g,"forceGlobalTag",{get:function(){return p.default.FORCE_GLOBAL_TAG},set:function(y){p.default.FORCE_GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"globalTag",{get:function(){return p.default.GLOBAL_TAG},set:function(y){p.default.GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableAll",{get:function(){return p.default.ENABLE_VERBOSE&&p.default.ENABLE_DEBUG&&p.default.ENABLE_INFO&&p.default.ENABLE_WARN&&p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_VERBOSE=y,p.default.ENABLE_DEBUG=y,p.default.ENABLE_INFO=y,p.default.ENABLE_WARN=y,p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableDebug",{get:function(){return p.default.ENABLE_DEBUG},set:function(y){p.default.ENABLE_DEBUG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableVerbose",{get:function(){return p.default.ENABLE_VERBOSE},set:function(y){p.default.ENABLE_VERBOSE=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableInfo",{get:function(){return p.default.ENABLE_INFO},set:function(y){p.default.ENABLE_INFO=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableWarn",{get:function(){return p.default.ENABLE_WARN},set:function(y){p.default.ENABLE_WARN=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableError",{get:function(){return p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),g.getConfig=function(){return{globalTag:p.default.GLOBAL_TAG,forceGlobalTag:p.default.FORCE_GLOBAL_TAG,enableVerbose:p.default.ENABLE_VERBOSE,enableDebug:p.default.ENABLE_DEBUG,enableInfo:p.default.ENABLE_INFO,enableWarn:p.default.ENABLE_WARN,enableError:p.default.ENABLE_ERROR,enableCallback:p.default.ENABLE_CALLBACK}},g.applyConfig=function(y){p.default.GLOBAL_TAG=y.globalTag,p.default.FORCE_GLOBAL_TAG=y.forceGlobalTag,p.default.ENABLE_VERBOSE=y.enableVerbose,p.default.ENABLE_DEBUG=y.enableDebug,p.default.ENABLE_INFO=y.enableInfo,p.default.ENABLE_WARN=y.enableWarn,p.default.ENABLE_ERROR=y.enableError,p.default.ENABLE_CALLBACK=y.enableCallback},g._notifyChange=function(){var y=g.emitter;if(y.listenerCount("change")>0){var S=g.getConfig();y.emit("change",S)}},g.registerListener=function(y){g.emitter.addListener("change",y)},g.removeListener=function(y){g.emitter.removeListener("change",y)},g.addLogListener=function(y){p.default.emitter.addListener("log",y),p.default.emitter.listenerCount("log")>0&&(p.default.ENABLE_CALLBACK=!0,g._notifyChange())},g.removeLogListener=function(y){p.default.emitter.removeListener("log",y),p.default.emitter.listenerCount("log")===0&&(p.default.ENABLE_CALLBACK=!1,g._notifyChange())},g})();v.emitter=new(h()),l.default=v}),"./src/utils/polyfill.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(p,v){return p.__proto__=v,p},Object.assign=Object.assign||function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(p),g=1;g=128){v.push(String.fromCharCode(k&65535)),y+=2;continue}}}else if(g[y]<240){if(d(g,y,2)){var k=(g[y]&15)<<12|(g[y+1]&63)<<6|g[y+2]&63;if(k>=2048&&(k&63488)!==55296){v.push(String.fromCharCode(k&65535)),y+=3;continue}}}else if(g[y]<248&&d(g,y,3)){var k=(g[y]&7)<<18|(g[y+1]&63)<<12|(g[y+2]&63)<<6|g[y+3]&63;if(k>65536&&k<1114112){k-=65536,v.push(String.fromCharCode(k>>>10|55296)),v.push(String.fromCharCode(k&1023|56320)),y+=4;continue}}}v.push("�"),++y}return v.join("")}l.default=h})},r={};function i(s){var l=r[s];if(l!==void 0)return l.exports;var c=r[s]={exports:{}};return n[s].call(c.exports,c,c.exports,i),c.exports}i.m=n,(function(){i.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(l,{a:l}),l}})(),(function(){i.d=function(s,l){for(var c in l)i.o(l,c)&&!i.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:l[c]})}})(),(function(){i.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){i.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)}})(),(function(){i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}})();var a=i("./src/index.js");return a})()})})(sj)),sj.exports}var FPt=NPt();const lU=rd(FPt);var aj={};/* + */(function(d,h){s.exports=h()})(this,(function(){function d(Ce){var We=typeof Ce;return Ce!==null&&(We==="object"||We==="function")}function h(Ce){return typeof Ce=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"};var v=p,g=0,y=void 0,S=void 0,k=function(We,$e){H[g]=We,H[g+1]=$e,g+=2,g===2&&(S?S(U):K())};function w(Ce){S=Ce}function x(Ce){k=Ce}var E=typeof window<"u"?window:void 0,_=E||{},T=_.MutationObserver||_.WebKitMutationObserver,D=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",P=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function M(){return function(){return process.nextTick(U)}}function $(){return typeof y<"u"?function(){y(U)}:j()}function L(){var Ce=0,We=new T(U),$e=document.createTextNode("");return We.observe($e,{characterData:!0}),function(){$e.data=Ce=++Ce%2}}function B(){var Ce=new MessageChannel;return Ce.port1.onmessage=U,function(){return Ce.port2.postMessage(0)}}function j(){var Ce=setTimeout;return function(){return Ce(U,1)}}var H=new Array(1e3);function U(){for(var Ce=0;Ce0&&(oe=H[0]),oe instanceof Error)throw oe;var ae=new Error("Unhandled error."+(oe?" ("+oe.message+")":""));throw ae.context=oe,ae}var ee=K[j];if(ee===void 0)return!1;if(typeof ee=="function")c(ee,this,H);else for(var Y=ee.length,Q=T(ee,Y),U=0;U0&&oe.length>W&&!oe.warned){oe.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+oe.length+" "+String(j)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=B,ae.type=j,ae.count=oe.length,h(ae)}return B}v.prototype.addListener=function(j,H){return k(this,j,H,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(j,H){return k(this,j,H,!0)};function w(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(B,j,H){var U={fired:!1,wrapFn:void 0,target:B,type:j,listener:H},W=w.bind(U);return W.listener=H,U.wrapFn=W,W}v.prototype.once=function(j,H){return y(H),this.on(j,x(this,j,H)),this},v.prototype.prependOnceListener=function(j,H){return y(H),this.prependListener(j,x(this,j,H)),this},v.prototype.removeListener=function(j,H){var U,W,K,oe,ae;if(y(H),W=this._events,W===void 0)return this;if(U=W[j],U===void 0)return this;if(U===H||U.listener===H)--this._eventsCount===0?this._events=Object.create(null):(delete W[j],W.removeListener&&this.emit("removeListener",j,U.listener||H));else if(typeof U!="function"){for(K=-1,oe=U.length-1;oe>=0;oe--)if(U[oe]===H||U[oe].listener===H){ae=U[oe].listener,K=oe;break}if(K<0)return this;K===0?U.shift():D(U,K),U.length===1&&(W[j]=U[0]),W.removeListener!==void 0&&this.emit("removeListener",j,ae||H)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(j){var H,U,W;if(U=this._events,U===void 0)return this;if(U.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):U[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete U[j]),this;if(arguments.length===0){var K=Object.keys(U),oe;for(W=0;W=0;W--)this.removeListener(j,H[W]);return this};function E(B,j,H){var U=B._events;if(U===void 0)return[];var W=U[j];return W===void 0?[]:typeof W=="function"?H?[W.listener||W]:[W]:H?P(W):T(W,W.length)}v.prototype.listeners=function(j){return E(this,j,!0)},v.prototype.rawListeners=function(j){return E(this,j,!1)},v.listenerCount=function(B,j){return typeof B.listenerCount=="function"?B.listenerCount(j):_.call(B,j)},v.prototype.listenerCount=_;function _(B){var j=this._events;if(j!==void 0){var H=j[B];if(typeof H=="function")return 1;if(H!==void 0)return H.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]};function T(B,j){for(var H=new Array(j),U=0;U0},!1)}function k(w,x){for(var E={main:[x]},_={main:[]},T={main:{}};S(E);)for(var D=Object.keys(E),P=0;P=p[S]&&v0&&y[0].originalDts=S[x].dts&&yS[w].lastSample.originalDts&&y=S[w].lastSample.originalDts&&(w===S.length-1||w0&&(x=this._searchNearestSegmentBefore(k.originalBeginDts)+1),this._lastAppendLocation=x,this._list.splice(x,0,k)},g.prototype.getLastSegmentBefore=function(y){var S=this._searchNearestSegmentBefore(y);return S>=0?this._list[S]:null},g.prototype.getLastSampleBefore=function(y){var S=this.getLastSegmentBefore(y);return S!=null?S.lastSample:null},g.prototype.getLastSyncPointBefore=function(y){for(var S=this._searchNearestSegmentBefore(y),k=this._list[S].syncPoints;k.length===0&&S>0;)S--,k=this._list[S].syncPoints;return k.length>0?k[k.length-1]:null},g})()}),"./src/core/mse-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=c("./src/utils/browser.js"),g=c("./src/core/mse-events.js"),y=c("./src/core/media-segment-info.js"),S=c("./src/utils/exception.js"),k=(function(){function w(x){this.TAG="MSEController",this._config=x,this._emitter=new(h()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new y.IDRSampleList}return w.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},w.prototype.on=function(x,E){this._emitter.addListener(x,E)},w.prototype.off=function(x,E){this._emitter.removeListener(x,E)},w.prototype.attachMediaElement=function(x){if(this._mediaSource)throw new S.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var E=this._mediaSource=new window.MediaSource;E.addEventListener("sourceopen",this.e.onSourceOpen),E.addEventListener("sourceended",this.e.onSourceEnded),E.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=x,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),x.src=this._mediaSourceObjectURL},w.prototype.detachMediaElement=function(){if(this._mediaSource){var x=this._mediaSource;for(var E in this._sourceBuffers){var _=this._pendingSegments[E];_.splice(0,_.length),this._pendingSegments[E]=null,this._pendingRemoveRanges[E]=null,this._lastInitSegments[E]=null;var T=this._sourceBuffers[E];if(T){if(x.readyState!=="closed"){try{x.removeSourceBuffer(T)}catch(D){p.default.e(this.TAG,D.message)}T.removeEventListener("error",this.e.onSourceBufferError),T.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[E]=null,this._sourceBuffers[E]=null}}if(x.readyState==="open")try{x.endOfStream()}catch(D){p.default.e(this.TAG,D.message)}x.removeEventListener("sourceopen",this.e.onSourceOpen),x.removeEventListener("sourceended",this.e.onSourceEnded),x.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},w.prototype.appendInitSegment=function(x,E){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(x),this._pendingSegments[x.type].push(x);return}var _=x,T=""+_.container;_.codec&&_.codec.length>0&&(T+=";codecs="+_.codec);var D=!1;if(p.default.v(this.TAG,"Received Initialization Segment, mimeType: "+T),this._lastInitSegments[_.type]=_,T!==this._mimeTypes[_.type]){if(this._mimeTypes[_.type])p.default.v(this.TAG,"Notice: "+_.type+" mimeType changed, origin: "+this._mimeTypes[_.type]+", target: "+T);else{D=!0;try{var P=this._sourceBuffers[_.type]=this._mediaSource.addSourceBuffer(T);P.addEventListener("error",this.e.onSourceBufferError),P.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(M){p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message});return}}this._mimeTypes[_.type]=T}E||this._pendingSegments[_.type].push(_),D||this._sourceBuffers[_.type]&&!this._sourceBuffers[_.type].updating&&this._doAppendSegments(),v.default.safari&&_.container==="audio/mpeg"&&_.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=_.mediaDuration/1e3,this._updateMediaSourceDuration())},w.prototype.appendMediaSegment=function(x){var E=x;this._pendingSegments[E.type].push(E),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var _=this._sourceBuffers[E.type];_&&!_.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()},w.prototype.seek=function(x){for(var E in this._sourceBuffers)if(this._sourceBuffers[E]){var _=this._sourceBuffers[E];if(this._mediaSource.readyState==="open")try{_.abort()}catch(L){p.default.e(this.TAG,L.message)}this._idrList.clear();var T=this._pendingSegments[E];if(T.splice(0,T.length),this._mediaSource.readyState!=="closed"){for(var D=0;D<_.buffered.length;D++){var P=_.buffered.start(D),M=_.buffered.end(D);this._pendingRemoveRanges[E].push({start:P,end:M})}if(_.updating||this._doRemoveRanges(),v.default.safari){var $=this._lastInitSegments[E];$&&(this._pendingSegments[E].push($),_.updating||this._doAppendSegments())}}}},w.prototype.endOfStream=function(){var x=this._mediaSource,E=this._sourceBuffers;if(!x||x.readyState!=="open"){x&&x.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}E.video&&E.video.updating||E.audio&&E.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,x.endOfStream())},w.prototype.getNearestKeyframe=function(x){return this._idrList.getLastSyncPointBeforeDts(x)},w.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){var T=_.buffered;if(T.length>=1&&x-T.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},w.prototype._doCleanupSourceBuffer=function(){var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){for(var T=_.buffered,D=!1,P=0;P=this._config.autoCleanupMaxBackwardDuration){D=!0;var L=x-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[E].push({start:M,end:L})}}else $0&&(isNaN(E)||_>E)&&(p.default.v(this.TAG,"Update MediaSource duration from "+E+" to "+_),this._mediaSource.duration=_),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},w.prototype._doRemoveRanges=function(){for(var x in this._pendingRemoveRanges)if(!(!this._sourceBuffers[x]||this._sourceBuffers[x].updating))for(var E=this._sourceBuffers[x],_=this._pendingRemoveRanges[x];_.length&&!E.updating;){var T=_.shift();E.remove(T.start,T.end)}},w.prototype._doAppendSegments=function(){var x=this._pendingSegments;for(var E in x)if(!(!this._sourceBuffers[E]||this._sourceBuffers[E].updating)&&x[E].length>0){var _=x[E].shift();if(_.timestampOffset){var T=this._sourceBuffers[E].timestampOffset,D=_.timestampOffset/1e3,P=Math.abs(T-D);P>.1&&(p.default.v(this.TAG,"Update MPEG audio timestampOffset from "+T+" to "+D),this._sourceBuffers[E].timestampOffset=D),delete _.timestampOffset}if(!_.data||_.data.byteLength===0)continue;try{this._sourceBuffers[E].appendBuffer(_.data),this._isBufferFull=!1,E==="video"&&_.hasOwnProperty("info")&&this._idrList.appendArray(_.info.syncPoints)}catch(M){this._pendingSegments[E].unshift(_),M.code===22?(this._isBufferFull||this._emitter.emit(g.default.BUFFER_FULL),this._isBufferFull=!0):(p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message}))}}},w.prototype._onSourceOpen=function(){if(p.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var x=this._pendingSourceBufferInit;x.length;){var E=x.shift();this.appendInitSegment(E,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(g.default.SOURCE_OPEN)},w.prototype._onSourceEnded=function(){p.default.v(this.TAG,"MediaSource onSourceEnded")},w.prototype._onSourceClose=function(){p.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},w.prototype._hasPendingSegments=function(){var x=this._pendingSegments;return x.video.length>0||x.audio.length>0},w.prototype._hasPendingRemoveRanges=function(){var x=this._pendingRemoveRanges;return x.video.length>0||x.audio.length>0},w.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(g.default.UPDATE_END)},w.prototype._onSourceBufferError=function(x){p.default.e(this.TAG,"SourceBuffer Error: "+x)},w})();l.default=k}),"./src/core/mse-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};l.default=d}),"./src/core/transmuxer.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./node_modules/webworkify-webpack/index.js"),v=c.n(p),g=c("./src/utils/logger.js"),y=c("./src/utils/logging-control.js"),S=c("./src/core/transmuxing-controller.js"),k=c("./src/core/transmuxing-events.js"),w=c("./src/core/media-info.js"),x=(function(){function E(_,T){if(this.TAG="Transmuxer",this._emitter=new(h()),T.enableWorker&&typeof Worker<"u")try{this._worker=v()("./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[_,T]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},y.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:y.default.getConfig()})}catch{g.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new S.default(_,T)}else this._controller=new S.default(_,T);if(this._controller){var D=this._controller;D.on(k.default.IO_ERROR,this._onIOError.bind(this)),D.on(k.default.DEMUX_ERROR,this._onDemuxError.bind(this)),D.on(k.default.INIT_SEGMENT,this._onInitSegment.bind(this)),D.on(k.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),D.on(k.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),D.on(k.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),D.on(k.default.MEDIA_INFO,this._onMediaInfo.bind(this)),D.on(k.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),D.on(k.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),D.on(k.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),D.on(k.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return E.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),y.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},E.prototype.on=function(_,T){this._emitter.addListener(_,T)},E.prototype.off=function(_,T){this._emitter.removeListener(_,T)},E.prototype.hasWorker=function(){return this._worker!=null},E.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},E.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},E.prototype.seek=function(_){this._worker?this._worker.postMessage({cmd:"seek",param:_}):this._controller.seek(_)},E.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},E.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},E.prototype._onInitSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.INIT_SEGMENT,_,T)})},E.prototype._onMediaSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.MEDIA_SEGMENT,_,T)})},E.prototype._onLoadingComplete=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.LOADING_COMPLETE)})},E.prototype._onRecoveredEarlyEof=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.RECOVERED_EARLY_EOF)})},E.prototype._onMediaInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.MEDIA_INFO,_)})},E.prototype._onMetaDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.METADATA_ARRIVED,_)})},E.prototype._onScriptDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.SCRIPTDATA_ARRIVED,_)})},E.prototype._onStatisticsInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.STATISTICS_INFO,_)})},E.prototype._onIOError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.IO_ERROR,_,T)})},E.prototype._onDemuxError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.DEMUX_ERROR,_,T)})},E.prototype._onRecommendSeekpoint=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.RECOMMEND_SEEKPOINT,_)})},E.prototype._onLoggingConfigChanged=function(_){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_})},E.prototype._onWorkerMessage=function(_){var T=_.data,D=T.data;if(T.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(T.msg){case k.default.INIT_SEGMENT:case k.default.MEDIA_SEGMENT:this._emitter.emit(T.msg,D.type,D.data);break;case k.default.LOADING_COMPLETE:case k.default.RECOVERED_EARLY_EOF:this._emitter.emit(T.msg);break;case k.default.MEDIA_INFO:Object.setPrototypeOf(D,w.default.prototype),this._emitter.emit(T.msg,D);break;case k.default.METADATA_ARRIVED:case k.default.SCRIPTDATA_ARRIVED:case k.default.STATISTICS_INFO:this._emitter.emit(T.msg,D);break;case k.default.IO_ERROR:case k.default.DEMUX_ERROR:this._emitter.emit(T.msg,D.type,D.info);break;case k.default.RECOMMEND_SEEKPOINT:this._emitter.emit(T.msg,D);break;case"logcat_callback":g.default.emitter.emit("log",D.type,D.logcat);break}},E})();l.default=x}),"./src/core/transmuxing-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=c("./src/utils/browser.js"),g=c("./src/core/media-info.js"),y=c("./src/demux/flv-demuxer.js"),S=c("./src/remux/mp4-remuxer.js"),k=c("./src/demux/demux-errors.js"),w=c("./src/io/io-controller.js"),x=c("./src/core/transmuxing-events.js"),E=(function(){function _(T,D){this.TAG="TransmuxingController",this._emitter=new(h()),this._config=D,T.segments||(T.segments=[{duration:T.duration,filesize:T.filesize,url:T.url}]),typeof T.cors!="boolean"&&(T.cors=!0),typeof T.withCredentials!="boolean"&&(T.withCredentials=!1),this._mediaDataSource=T,this._currentSegmentIndex=0;var P=0;this._mediaDataSource.segments.forEach(function(M){M.timestampBase=P,P+=M.duration,M.cors=T.cors,M.withCredentials=T.withCredentials,D.referrerPolicy&&(M.referrerPolicy=D.referrerPolicy)}),!isNaN(P)&&this._mediaDataSource.duration!==P&&(this._mediaDataSource.duration=P),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return _.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},_.prototype.on=function(T,D){this._emitter.addListener(T,D)},_.prototype.off=function(T,D){this._emitter.removeListener(T,D)},_.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},_.prototype._loadSegment=function(T,D){this._currentSegmentIndex=T;var P=this._mediaDataSource.segments[T],M=this._ioctl=new w.default(P,this._config,T);M.onError=this._onIOException.bind(this),M.onSeeked=this._onIOSeeked.bind(this),M.onComplete=this._onIOComplete.bind(this),M.onRedirect=this._onIORedirect.bind(this),M.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),D?this._demuxer.bindDataSource(this._ioctl):M.onDataArrival=this._onInitChunkArrival.bind(this),M.open(D)},_.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},_.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},_.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},_.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},_.prototype.seek=function(T){if(!(this._mediaInfo==null||!this._mediaInfo.isSeekable())){var D=this._searchSegmentIndexContains(T);if(D===this._currentSegmentIndex){var P=this._mediaInfo.segments[D];if(P==null)this._pendingSeekTime=T;else{var M=P.getNearestKeyframe(T);this._remuxer.seek(M.milliseconds),this._ioctl.seek(M.fileposition),this._pendingResolveSeekPoint=M.milliseconds}}else{var $=this._mediaInfo.segments[D];if($==null)this._pendingSeekTime=T,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(D);else{var M=$.getNearestKeyframe(T);this._internalAbort(),this._remuxer.seek(T),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[D].timestampBase,this._loadSegment(D,M.fileposition),this._pendingResolveSeekPoint=M.milliseconds,this._reportSegmentMediaInfo(D)}}this._enableStatisticsReporter()}},_.prototype._searchSegmentIndexContains=function(T){for(var D=this._mediaDataSource.segments,P=D.length-1,M=0;M0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,$=this._demuxer.parseChunks(T,D);else if((M=y.default.probe(T)).match){this._demuxer=new y.default(M,this._config),this._remuxer||(this._remuxer=new S.default(this._config));var L=this._mediaDataSource;L.duration!=null&&!isNaN(L.duration)&&(this._demuxer.overridedDuration=L.duration),typeof L.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=L.hasAudio),typeof L.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=L.hasVideo),this._demuxer.timestampBase=L.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),$=this._demuxer.parseChunks(T,D)}else M=null,p.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){P._internalAbort()}),this._emitter.emit(x.default.DEMUX_ERROR,k.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),$=0;return $},_.prototype._onMediaInfo=function(T){var D=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},T),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,g.default.prototype));var P=Object.assign({},T);Object.setPrototypeOf(P,g.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=P,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var M=D._pendingSeekTime;D._pendingSeekTime=null,D.seek(M)})},_.prototype._onMetaDataArrived=function(T){this._emitter.emit(x.default.METADATA_ARRIVED,T)},_.prototype._onScriptDataArrived=function(T){this._emitter.emit(x.default.SCRIPTDATA_ARRIVED,T)},_.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},_.prototype._onIOComplete=function(T){var D=T,P=D+1;P0&&P[0].originalDts===M&&(M=P[0].pts),this._emitter.emit(x.default.RECOMMEND_SEEKPOINT,M)}},_.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},_.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},_.prototype._reportSegmentMediaInfo=function(T){var D=this._mediaInfo.segments[T],P=Object.assign({},D);P.duration=this._mediaInfo.duration,P.segmentCount=this._mediaInfo.segmentCount,delete P.segments,delete P.keyframesIndex,this._emitter.emit(x.default.MEDIA_INFO,P)},_.prototype._reportStatisticsInfo=function(){var T={};T.url=this._ioctl.currentURL,T.hasRedirect=this._ioctl.hasRedirect,T.hasRedirect&&(T.redirectedURL=this._ioctl.currentRedirectedURL),T.speed=this._ioctl.currentSpeed,T.loaderType=this._ioctl.loaderType,T.currentSegmentIndex=this._currentSegmentIndex,T.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(x.default.STATISTICS_INFO,T)},_})();l.default=E}),"./src/core/transmuxing-events.js":(function(s,l,c){c.r(l);var d={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};l.default=d}),"./src/core/transmuxing-worker.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logging-control.js"),h=c("./src/utils/polyfill.js"),p=c("./src/core/transmuxing-controller.js"),v=c("./src/core/transmuxing-events.js"),g=function(y){var S=null,k=j.bind(this);h.default.install(),y.addEventListener("message",function(H){switch(H.data.cmd){case"init":S=new p.default(H.data.param[0],H.data.param[1]),S.on(v.default.IO_ERROR,$.bind(this)),S.on(v.default.DEMUX_ERROR,L.bind(this)),S.on(v.default.INIT_SEGMENT,w.bind(this)),S.on(v.default.MEDIA_SEGMENT,x.bind(this)),S.on(v.default.LOADING_COMPLETE,E.bind(this)),S.on(v.default.RECOVERED_EARLY_EOF,_.bind(this)),S.on(v.default.MEDIA_INFO,T.bind(this)),S.on(v.default.METADATA_ARRIVED,D.bind(this)),S.on(v.default.SCRIPTDATA_ARRIVED,P.bind(this)),S.on(v.default.STATISTICS_INFO,M.bind(this)),S.on(v.default.RECOMMEND_SEEKPOINT,B.bind(this));break;case"destroy":S&&(S.destroy(),S=null),y.postMessage({msg:"destroyed"});break;case"start":S.start();break;case"stop":S.stop();break;case"seek":S.seek(H.data.param);break;case"pause":S.pause();break;case"resume":S.resume();break;case"logging_config":{var U=H.data.param;d.default.applyConfig(U),U.enableCallback===!0?d.default.addLogListener(k):d.default.removeLogListener(k);break}}});function w(H,U){var W={msg:v.default.INIT_SEGMENT,data:{type:H,data:U}};y.postMessage(W,[U.data])}function x(H,U){var W={msg:v.default.MEDIA_SEGMENT,data:{type:H,data:U}};y.postMessage(W,[U.data])}function E(){var H={msg:v.default.LOADING_COMPLETE};y.postMessage(H)}function _(){var H={msg:v.default.RECOVERED_EARLY_EOF};y.postMessage(H)}function T(H){var U={msg:v.default.MEDIA_INFO,data:H};y.postMessage(U)}function D(H){var U={msg:v.default.METADATA_ARRIVED,data:H};y.postMessage(U)}function P(H){var U={msg:v.default.SCRIPTDATA_ARRIVED,data:H};y.postMessage(U)}function M(H){var U={msg:v.default.STATISTICS_INFO,data:H};y.postMessage(U)}function $(H,U){y.postMessage({msg:v.default.IO_ERROR,data:{type:H,info:U}})}function L(H,U){y.postMessage({msg:v.default.DEMUX_ERROR,data:{type:H,info:U}})}function B(H){y.postMessage({msg:v.default.RECOMMEND_SEEKPOINT,data:H})}function j(H,U){y.postMessage({msg:"logcat_callback",data:{type:H,logcat:U}})}};l.default=g}),"./src/demux/amf-parser.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/utils/utf8-conv.js"),p=c("./src/utils/exception.js"),v=(function(){var y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]===256})(),g=(function(){function y(){}return y.parseScriptData=function(S,k,w){var x={};try{var E=y.parseValue(S,k,w),_=y.parseValue(S,k+E.size,w-E.size);x[E.data]=_.data}catch(T){d.default.e("AMF",T.toString())}return x},y.parseObject=function(S,k,w){if(w<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var x=y.parseString(S,k,w),E=y.parseValue(S,k+x.size,w-x.size),_=E.objectEnd;return{data:{name:x.data,value:E.data},size:x.size+E.size,objectEnd:_}},y.parseVariable=function(S,k,w){return y.parseObject(S,k,w)},y.parseString=function(S,k,w){if(w<2)throw new p.IllegalStateException("Data not enough when parse String");var x=new DataView(S,k,w),E=x.getUint16(0,!v),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+2,E)):_="",{data:_,size:2+E}},y.parseLongString=function(S,k,w){if(w<4)throw new p.IllegalStateException("Data not enough when parse LongString");var x=new DataView(S,k,w),E=x.getUint32(0,!v),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+4,E)):_="",{data:_,size:4+E}},y.parseDate=function(S,k,w){if(w<10)throw new p.IllegalStateException("Data size invalid when parse Date");var x=new DataView(S,k,w),E=x.getFloat64(0,!v),_=x.getInt16(8,!v);return E+=_*60*1e3,{data:new Date(E),size:10}},y.parseValue=function(S,k,w){if(w<1)throw new p.IllegalStateException("Data not enough when parse Value");var x=new DataView(S,k,w),E=1,_=x.getUint8(0),T,D=!1;try{switch(_){case 0:T=x.getFloat64(1,!v),E+=8;break;case 1:{var P=x.getUint8(1);T=!!P,E+=1;break}case 2:{var M=y.parseString(S,k+1,w-1);T=M.data,E+=M.size;break}case 3:{T={};var $=0;for((x.getUint32(w-4,!v)&16777215)===9&&($=3);E32)throw new d.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(v<=this._current_word_bits_left){var g=this._current_word>>>32-v;return this._current_word<<=v,this._current_word_bits_left-=v,g}var y=this._current_word_bits_left?this._current_word:0;y=y>>>32-this._current_word_bits_left;var S=v-this._current_word_bits_left;this._fillCurrentWord();var k=Math.min(S,this._current_word_bits_left),w=this._current_word>>>32-k;return this._current_word<<=k,this._current_word_bits_left-=k,y=y<>>v)!==0)return this._current_word<<=v,this._current_word_bits_left-=v,v;return this._fillCurrentWord(),v+this._skipLeadingZero()},p.prototype.readUEG=function(){var v=this._skipLeadingZero();return this.readBits(v+1)-1},p.prototype.readSEG=function(){var v=this.readUEG();return v&1?v+1>>>1:-1*(v>>>1)},p})();l.default=h}),"./src/demux/flv-demuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/demux/amf-parser.js"),p=c("./src/demux/sps-parser.js"),v=c("./src/demux/demux-errors.js"),g=c("./src/core/media-info.js"),y=c("./src/utils/exception.js");function S(w,x){return w[x]<<24|w[x+1]<<16|w[x+2]<<8|w[x+3]}var k=(function(){function w(x,E){this.TAG="FLVDemuxer",this._config=E,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=x.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=x.hasAudioTrack,this._hasVideo=x.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new g.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var _=new ArrayBuffer(2);return new DataView(_).setInt16(0,256,!0),new Int16Array(_)[0]===256})()}return w.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},w.probe=function(x){var E=new Uint8Array(x),_={match:!1};if(E[0]!==70||E[1]!==76||E[2]!==86||E[3]!==1)return _;var T=(E[4]&4)>>>2!==0,D=(E[4]&1)!==0,P=S(E,5);return P<9?_:{match:!0,consumed:P,dataOffset:P,hasAudioTrack:T,hasVideoTrack:D}},w.prototype.bindDataSource=function(x){return x.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(w.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(x){this._onTrackMetadata=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(x){this._onMediaInfo=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(x){this._onMetaDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(x){this._onScriptDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onError",{get:function(){return this._onError},set:function(x){this._onError=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(x){this._onDataAvailable=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(x){this._timestampBase=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"overridedDuration",{get:function(){return this._duration},set:function(x){this._durationOverrided=!0,this._duration=x,this._mediaInfo.duration=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"overridedHasAudio",{set:function(x){this._hasAudioFlagOverrided=!0,this._hasAudio=x,this._mediaInfo.hasAudio=x},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"overridedHasVideo",{set:function(x){this._hasVideoFlagOverrided=!0,this._hasVideo=x,this._mediaInfo.hasVideo=x},enumerable:!1,configurable:!0}),w.prototype.resetMediaInfo=function(){this._mediaInfo=new g.default},w.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1},w.prototype.parseChunks=function(x,E){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new y.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var _=0,T=this._littleEndian;if(E===0)if(x.byteLength>13){var D=w.probe(x);_=D.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,E+_!==this._dataOffset&&d.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var P=new DataView(x,_),M=P.getUint32(0,!T);M!==0&&d.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),_+=4}for(;_x.byteLength)break;var $=P.getUint8(0),L=P.getUint32(0,!T)&16777215;if(_+11+L+4>x.byteLength)break;if($!==8&&$!==9&&$!==18){d.default.w(this.TAG,"Unsupported tag type "+$+", skipped"),_+=11+L+4;continue}var B=P.getUint8(4),j=P.getUint8(5),H=P.getUint8(6),U=P.getUint8(7),W=H|j<<8|B<<16|U<<24,K=P.getUint32(7,!T)&16777215;K!==0&&d.default.w(this.TAG,"Meet tag which has StreamID != 0!");var oe=_+11;switch($){case 8:this._parseAudioData(x,oe,L,W);break;case 9:this._parseVideoData(x,oe,L,W,E+_);break;case 18:this._parseScriptData(x,oe,L);break}var ae=P.getUint32(11+L,!T);ae!==11+L&&d.default.w(this.TAG,"Invalid PrevTagSize "+ae),_+=11+L+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),_},w.prototype._parseScriptData=function(x,E,_){var T=h.default.parseScriptData(x,E,_);if(T.hasOwnProperty("onMetaData")){if(T.onMetaData==null||typeof T.onMetaData!="object"){d.default.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&d.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=T;var D=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},D)),typeof D.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=D.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof D.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=D.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof D.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=D.audiodatarate),typeof D.videodatarate=="number"&&(this._mediaInfo.videoDataRate=D.videodatarate),typeof D.width=="number"&&(this._mediaInfo.width=D.width),typeof D.height=="number"&&(this._mediaInfo.height=D.height),typeof D.duration=="number"){if(!this._durationOverrided){var P=Math.floor(D.duration*this._timescale);this._duration=P,this._mediaInfo.duration=P}}else this._mediaInfo.duration=0;if(typeof D.framerate=="number"){var M=Math.floor(D.framerate*1e3);if(M>0){var $=M/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=$,this._referenceFrameRate.fps_num=M,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=$}}if(typeof D.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var L=D.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(L),D.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=D,d.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(T).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},T))},w.prototype._parseKeyframesIndex=function(x){for(var E=[],_=[],T=1;T>>4;if(M!==2&&M!==10){this._onError(v.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+M);return}var $=0,L=(P&12)>>>2;if(L>=0&&L<=4)$=this._flvSoundRateTable[L];else{this._onError(v.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+L);return}var B=P&1,j=this._audioMetadata,H=this._audioTrack;if(j||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),j=this._audioMetadata={},j.type="audio",j.id=H.id,j.timescale=this._timescale,j.duration=this._duration,j.audioSampleRate=$,j.channelCount=B===0?1:2),M===10){var U=this._parseAACAudioData(x,E+1,_-1);if(U==null)return;if(U.packetType===0){j.config&&d.default.w(this.TAG,"Found another AudioSpecificConfig!");var W=U.data;j.audioSampleRate=W.samplingRate,j.channelCount=W.channelCount,j.codec=W.codec,j.originalCodec=W.originalCodec,j.config=W.config,j.refSampleDuration=1024/j.audioSampleRate*j.timescale,d.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",j);var K=this._mediaInfo;K.audioCodec=j.originalCodec,K.audioSampleRate=j.audioSampleRate,K.audioChannelCount=j.channelCount,K.hasVideo?K.videoCodec!=null&&(K.mimeType='video/x-flv; codecs="'+K.videoCodec+","+K.audioCodec+'"'):K.mimeType='video/x-flv; codecs="'+K.audioCodec+'"',K.isComplete()&&this._onMediaInfo(K)}else if(U.packetType===1){var oe=this._timestampBase+T,ae={unit:U.data,length:U.data.byteLength,dts:oe,pts:oe};H.samples.push(ae),H.length+=U.data.length}else d.default.e(this.TAG,"Flv: Unsupported AAC data type "+U.packetType)}else if(M===2){if(!j.codec){var W=this._parseMP3AudioData(x,E+1,_-1,!0);if(W==null)return;j.audioSampleRate=W.samplingRate,j.channelCount=W.channelCount,j.codec=W.codec,j.originalCodec=W.originalCodec,j.refSampleDuration=1152/j.audioSampleRate*j.timescale,d.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",j);var K=this._mediaInfo;K.audioCodec=j.codec,K.audioSampleRate=j.audioSampleRate,K.audioChannelCount=j.channelCount,K.audioDataRate=W.bitRate,K.hasVideo?K.videoCodec!=null&&(K.mimeType='video/x-flv; codecs="'+K.videoCodec+","+K.audioCodec+'"'):K.mimeType='video/x-flv; codecs="'+K.audioCodec+'"',K.isComplete()&&this._onMediaInfo(K)}var ee=this._parseMP3AudioData(x,E+1,_-1,!1);if(ee==null)return;var oe=this._timestampBase+T,Y={unit:ee,length:ee.byteLength,dts:oe,pts:oe};H.samples.push(Y),H.length+=ee.length}}},w.prototype._parseAACAudioData=function(x,E,_){if(_<=1){d.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var T={},D=new Uint8Array(x,E,_);return T.packetType=D[0],D[0]===0?T.data=this._parseAACAudioSpecificConfig(x,E+1,_-1):T.data=D.subarray(1),T},w.prototype._parseAACAudioSpecificConfig=function(x,E,_){var T=new Uint8Array(x,E,_),D=null,P=0,M=0,$=0,L=null;if(P=M=T[0]>>>3,$=(T[0]&7)<<1|T[1]>>>7,$<0||$>=this._mpegSamplingRates.length){this._onError(v.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var B=this._mpegSamplingRates[$],j=(T[1]&120)>>>3;if(j<0||j>=8){this._onError(v.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}P===5&&(L=(T[1]&7)<<1|T[2]>>>7,(T[2]&124)>>>2);var H=self.navigator.userAgent.toLowerCase();return H.indexOf("firefox")!==-1?$>=6?(P=5,D=new Array(4),L=$-3):(P=2,D=new Array(2),L=$):H.indexOf("android")!==-1?(P=2,D=new Array(2),L=$):(P=5,L=$,D=new Array(4),$>=6?L=$-3:j===1&&(P=2,D=new Array(2),L=$)),D[0]=P<<3,D[0]|=($&15)>>>1,D[1]=($&15)<<7,D[1]|=(j&15)<<3,P===5&&(D[1]|=(L&15)>>>1,D[2]=(L&1)<<7,D[2]|=8,D[3]=0),{config:D,samplingRate:B,channelCount:j,codec:"mp4a.40."+P,originalCodec:"mp4a.40."+M}},w.prototype._parseMP3AudioData=function(x,E,_,T){if(_<4){d.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var D=new Uint8Array(x,E,_),P=null;if(T){if(D[0]!==255)return;var M=D[1]>>>3&3,$=(D[1]&6)>>1,L=(D[2]&240)>>>4,B=(D[2]&12)>>>2,j=D[3]>>>6&3,H=j!==3?2:1,U=0,W=0,K="mp3";switch(M){case 0:U=this._mpegAudioV25SampleRateTable[B];break;case 2:U=this._mpegAudioV20SampleRateTable[B];break;case 3:U=this._mpegAudioV10SampleRateTable[B];break}switch($){case 1:L>>4,$=P&15;if($!==7){this._onError(v.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+$);return}this._parseAVCVideoPacket(x,E+1,_-1,T,D,M)}},w.prototype._parseAVCVideoPacket=function(x,E,_,T,D,P){if(_<4){d.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var M=this._littleEndian,$=new DataView(x,E,_),L=$.getUint8(0),B=$.getUint32(0,!M)&16777215,j=B<<8>>8;if(L===0)this._parseAVCDecoderConfigurationRecord(x,E+4,_-4);else if(L===1)this._parseAVCVideoData(x,E+4,_-4,T,D,P,j);else if(L!==2){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid video packet type "+L);return}},w.prototype._parseAVCDecoderConfigurationRecord=function(x,E,_){if(_<7){d.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var T=this._videoMetadata,D=this._videoTrack,P=this._littleEndian,M=new DataView(x,E,_);T?typeof T.avcc<"u"&&d.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),T=this._videoMetadata={},T.type="video",T.id=D.id,T.timescale=this._timescale,T.duration=this._duration);var $=M.getUint8(0),L=M.getUint8(1);if(M.getUint8(2),M.getUint8(3),$!==1||L===0){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(M.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(v.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var B=M.getUint8(5)&31;if(B===0){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else B>1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+B);for(var j=6,H=0;H1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+te);j++;for(var H=0;H=_){d.default.w(this.TAG,"Malformed Nalu near timestamp "+W+", offset = "+H+", dataSize = "+_);break}var oe=L.getUint32(H,!$);if(U===3&&(oe>>>=8),oe>_-U){d.default.w(this.TAG,"Malformed Nalus near timestamp "+W+", NaluSize > DataSize!");return}var ae=L.getUint8(H+U)&31;ae===5&&(K=!0);var ee=new Uint8Array(x,E+H,U+oe),Y={type:ae,data:ee};B.push(Y),j+=ee.byteLength,H+=U+oe}if(B.length){var Q=this._videoTrack,ie={units:B,length:j,isKeyframe:K,dts:W,cts:M,pts:W+M};K&&(ie.fileposition=D),Q.samples.push(ie),Q.length+=j}},w})();l.default=k}),"./src/demux/sps-parser.js":(function(s,l,c){c.r(l);var d=c("./src/demux/exp-golomb.js"),h=(function(){function p(){}return p._ebsp2rbsp=function(v){for(var g=v,y=g.byteLength,S=new Uint8Array(y),k=0,w=0;w=2&&g[w]===3&&g[w-1]===0&&g[w-2]===0||(S[k]=g[w],k++);return new Uint8Array(S.buffer,0,k)},p.parseSPS=function(v){var g=p._ebsp2rbsp(v),y=new d.default(g);y.readByte();var S=y.readByte();y.readByte();var k=y.readByte();y.readUEG();var w=p.getProfileString(S),x=p.getLevelString(k),E=1,_=420,T=[0,420,422,444],D=8;if((S===100||S===110||S===122||S===244||S===44||S===83||S===86||S===118||S===128||S===138||S===144)&&(E=y.readUEG(),E===3&&y.readBits(1),E<=3&&(_=T[E]),D=y.readUEG()+8,y.readUEG(),y.readBits(1),y.readBool()))for(var P=E!==3?8:12,M=0;M0&&ve<16?(Y=Re[ve-1],Q=Ge[ve-1]):ve===255&&(Y=y.readByte()<<8|y.readByte(),Q=y.readByte()<<8|y.readByte())}if(y.readBool()&&y.readBool(),y.readBool()&&(y.readBits(4),y.readBool()&&y.readBits(24)),y.readBool()&&(y.readUEG(),y.readUEG()),y.readBool()){var nt=y.readBits(32),Ie=y.readBits(32);q=y.readBool(),te=Ie,Se=nt*2,ie=te/Se}}var _e=1;(Y!==1||Q!==1)&&(_e=Y/Q);var me=0,ge=0;if(E===0)me=1,ge=2-U;else{var Be=E===3?1:2,Ye=E===1?2:1;me=Be,ge=Ye*(2-U)}var Ke=(j+1)*16,at=(2-U)*((H+1)*16);Ke-=(W+K)*me,at-=(oe+ae)*ge;var ft=Math.ceil(Ke*_e);return y.destroy(),y=null,{profile_string:w,level_string:x,bit_depth:D,ref_frames:B,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:q,fps:ie,fps_den:Se,fps_num:te},sar_ratio:{width:Y,height:Q},codec_size:{width:Ke,height:at},present_size:{width:ft,height:at}}},p._skipScalingList=function(v,g){for(var y=8,S=8,k=0,w=0;w=15048,w=d.default.msedge?k:!0;return self.fetch&&self.ReadableStream&&w}catch{return!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),y.prototype.destroy.call(this)},S.prototype.open=function(k,w){var x=this;this._dataSource=k,this._range=w;var E=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(E=k.redirectedURL);var _=this._seekHandler.getConfig(E,w),T=new self.Headers;if(typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.append(P,D[P])}var M={method:"GET",headers:T,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var P in this._config.headers)T.append(P,this._config.headers[P]);k.cors===!1&&(M.mode="same-origin"),k.withCredentials&&(M.credentials="include"),k.referrerPolicy&&(M.referrerPolicy=k.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,M.signal=this._abortController.signal),this._status=h.LoaderStatus.kConnecting,self.fetch(_.url,M).then(function($){if(x._requestAbort){x._status=h.LoaderStatus.kIdle,$.body.cancel();return}if($.ok&&$.status>=200&&$.status<=299){if($.url!==_.url&&x._onURLRedirect){var L=x._seekHandler.removeURLParameters($.url);x._onURLRedirect(L)}var B=$.headers.get("Content-Length");return B!=null&&(x._contentLength=parseInt(B),x._contentLength!==0&&x._onContentLengthKnown&&x._onContentLengthKnown(x._contentLength)),x._pump.call(x,$.body.getReader())}else if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:$.status,msg:$.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+$.status+" "+$.statusText)}).catch(function($){if(!(x._abortController&&x._abortController.signal.aborted))if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:$.message});else throw $})},S.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==h.LoaderStatus.kBuffering||!d.default.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},S.prototype._pump=function(k){var w=this;return k.read().then(function(x){if(x.done)if(w._contentLength!==null&&w._receivedLength0&&(this._stashInitialSize=D.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,D.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=T,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(T.url),this._refTotalLength=T.filesize?T.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new h.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return _.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},_.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},_.prototype.isPaused=function(){return this._paused},Object.defineProperty(_.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"extraData",{get:function(){return this._extraData},set:function(T){this._extraData=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(T){this._onDataArrival=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(T){this._onSeeked=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(T){this._onError=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onComplete",{get:function(){return this._onComplete},set:function(T){this._onComplete=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(T){this._onRedirect=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(T){this._onRecoveredEarlyEof=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentSpeed",{get:function(){return this._loaderClass===y.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),_.prototype._selectSeekHandler=function(){var T=this._config;if(T.seekType==="range")this._seekHandler=new k.default(this._config.rangeLoadZeroStart);else if(T.seekType==="param"){var D=T.seekParamStart||"bstart",P=T.seekParamEnd||"bend";this._seekHandler=new w.default(D,P)}else if(T.seekType==="custom"){if(typeof T.customSeekHandler!="function")throw new x.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new T.customSeekHandler}else throw new x.InvalidArgumentException("Invalid seekType in config: "+T.seekType)},_.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=S.default;else if(v.default.isSupported())this._loaderClass=v.default;else if(g.default.isSupported())this._loaderClass=g.default;else if(y.default.isSupported())this._loaderClass=y.default;else throw new x.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!")},_.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},_.prototype.open=function(T){this._currentRange={from:0,to:-1},T&&(this._currentRange.from=T),this._speedSampler.reset(),T||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},_.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},_.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},_.prototype.resume=function(){if(this._paused){this._paused=!1;var T=this._resumeFrom;this._resumeFrom=0,this._internalSeek(T,!0)}},_.prototype.seek=function(T){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(T,!0)},_.prototype._internalSeek=function(T,D){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(D),this._loader.destroy(),this._loader=null;var P={from:T,to:-1};this._currentRange={from:P.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,P),this._onSeeked&&this._onSeeked()},_.prototype.updateUrl=function(T){if(!T||typeof T!="string"||T.length===0)throw new x.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=T},_.prototype._expandBuffer=function(T){for(var D=this._stashSize;D+1024*1024*10){var M=new Uint8Array(this._stashBuffer,0,this._stashUsed),$=new Uint8Array(P,0,D);$.set(M,0)}this._stashBuffer=P,this._bufferSize=D}},_.prototype._normalizeSpeed=function(T){var D=this._speedNormalizeList,P=D.length-1,M=0,$=0,L=P;if(T=D[M]&&T=512&&T<=1024?D=Math.floor(T*1.5):D=T*2,D>8192&&(D=8192);var P=D*1024+1024*1024*1;this._bufferSize0){var U=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(U,this._stashByteStart);if(L0){var H=new Uint8Array(U,L);j.set(H,0),this._stashUsed=H.byteLength,this._stashByteStart+=L}}else this._stashUsed=0,this._stashByteStart+=L;this._stashUsed+T.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+T.byteLength),j=new Uint8Array(this._stashBuffer,0,this._bufferSize)),j.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength}else{var L=this._dispatchChunks(T,D);if(Lthis._bufferSize&&(this._expandBuffer(B),j=new Uint8Array(this._stashBuffer,0,this._bufferSize)),j.set(new Uint8Array(T,L),0),this._stashUsed+=B,this._stashByteStart=D+L}}}else if(this._stashUsed===0){var L=this._dispatchChunks(T,D);if(Lthis._bufferSize&&this._expandBuffer(B);var j=new Uint8Array(this._stashBuffer,0,this._bufferSize);j.set(new Uint8Array(T,L),0),this._stashUsed+=B,this._stashByteStart=D+L}}else{this._stashUsed+T.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+T.byteLength);var j=new Uint8Array(this._stashBuffer,0,this._bufferSize);j.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength;var L=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(L0){var H=new Uint8Array(this._stashBuffer,L);j.set(H,0)}this._stashUsed-=L,this._stashByteStart+=L}}},_.prototype._flushStashBuffer=function(T){if(this._stashUsed>0){var D=this._stashBuffer.slice(0,this._stashUsed),P=this._dispatchChunks(D,this._stashByteStart),M=D.byteLength-P;if(P0){var $=new Uint8Array(this._stashBuffer,0,this._bufferSize),L=new Uint8Array(D,P);$.set(L,0),this._stashUsed=L.byteLength,this._stashByteStart+=P}return 0}return this._stashUsed=0,this._stashByteStart=0,M}return 0},_.prototype._onLoaderComplete=function(T,D){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},_.prototype._onLoaderError=function(T,D){switch(d.default.e(this.TAG,"Loader error, code = "+D.code+", msg = "+D.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,T=p.LoaderErrors.UNRECOVERABLE_EARLY_EOF),T){case p.LoaderErrors.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var P=this._currentRange.to+1;P0)for(var k=g.split("&"),w=0;w0;x[0]!==this._startName&&x[0]!==this._endName&&(E&&(S+="&"),S+=k[w])}return S.length===0?v:v+"?"+S},h})();l.default=d}),"./src/io/range-seek-handler.js":(function(s,l,c){c.r(l);var d=(function(){function h(p){this._zeroStart=p||!1}return h.prototype.getConfig=function(p,v){var g={};if(v.from!==0||v.to!==-1){var y=void 0;v.to!==-1?y="bytes="+v.from.toString()+"-"+v.to.toString():y="bytes="+v.from.toString()+"-",g.Range=y}else this._zeroStart&&(g.Range="bytes=0-");return{url:p,headers:g}},h.prototype.removeURLParameters=function(p){return p},h})();l.default=d}),"./src/io/speed-sampler.js":(function(s,l,c){c.r(l);var d=(function(){function h(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return h.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},h.prototype.addBytes=function(p){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=p,this._totalBytes+=p):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=p,this._totalBytes+=p):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=p,this._totalBytes+=p,this._lastCheckpoint=this._now())},Object.defineProperty(h.prototype,"currentKBps",{get:function(){this.addBytes(0);var p=(this._now()-this._lastCheckpoint)/1e3;return p==0&&(p=1),this._intervalBytes/p/1024},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"averageKBps",{get:function(){var p=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/p/1024},enumerable:!1,configurable:!0}),h})();l.default=d}),"./src/io/websocket-loader.js":(function(s,l,c){c.r(l);var d=c("./src/io/loader.js"),h=c("./src/utils/exception.js"),p=(function(){var g=function(y,S){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,w){k.__proto__=w}||function(k,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(k[x]=w[x])},g(y,S)};return function(y,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");g(y,S);function k(){this.constructor=y}y.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}})(),v=(function(g){p(y,g);function y(){var S=g.call(this,"websocket-loader")||this;return S.TAG="WebSocketLoader",S._needStash=!0,S._ws=null,S._requestAbort=!1,S._receivedLength=0,S}return y.isSupported=function(){try{return typeof self.WebSocket<"u"}catch{return!1}},y.prototype.destroy=function(){this._ws&&this.abort(),g.prototype.destroy.call(this)},y.prototype.open=function(S){try{var k=this._ws=new self.WebSocket(S.url);k.binaryType="arraybuffer",k.onopen=this._onWebSocketOpen.bind(this),k.onclose=this._onWebSocketClose.bind(this),k.onmessage=this._onWebSocketMessage.bind(this),k.onerror=this._onWebSocketError.bind(this),this._status=d.LoaderStatus.kConnecting}catch(x){this._status=d.LoaderStatus.kError;var w={code:x.code,msg:x.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,w);else throw new h.RuntimeException(w.msg)}},y.prototype.abort=function(){var S=this._ws;S&&(S.readyState===0||S.readyState===1)&&(this._requestAbort=!0,S.close()),this._ws=null,this._status=d.LoaderStatus.kComplete},y.prototype._onWebSocketOpen=function(S){this._status=d.LoaderStatus.kBuffering},y.prototype._onWebSocketClose=function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=d.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)},y.prototype._onWebSocketMessage=function(S){var k=this;if(S.data instanceof ArrayBuffer)this._dispatchArrayBuffer(S.data);else if(S.data instanceof Blob){var w=new FileReader;w.onload=function(){k._dispatchArrayBuffer(w.result)},w.readAsArrayBuffer(S.data)}else{this._status=d.LoaderStatus.kError;var x={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,x);else throw new h.RuntimeException(x.msg)}},y.prototype._dispatchArrayBuffer=function(S){var k=S,w=this._receivedLength;this._receivedLength+=k.byteLength,this._onDataArrival&&this._onDataArrival(k,w,this._receivedLength)},y.prototype._onWebSocketError=function(S){this._status=d.LoaderStatus.kError;var k={code:S.code,msg:S.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,k);else throw new h.RuntimeException(k.msg)},y})(d.BaseLoader);l.default=v}),"./src/io/xhr-moz-chunked-loader.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/io/loader.js"),p=c("./src/utils/exception.js"),v=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(w[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function w(){this.constructor=S}S.prototype=k===null?Object.create(k):(w.prototype=k.prototype,new w)}})(),g=(function(y){v(S,y);function S(k,w){var x=y.call(this,"xhr-moz-chunked-loader")||this;return x.TAG="MozChunkedLoader",x._seekHandler=k,x._config=w,x._needStash=!0,x._xhr=null,x._requestAbort=!1,x._contentLength=null,x._receivedLength=0,x}return S.isSupported=function(){try{var k=new XMLHttpRequest;return k.open("GET","https://example.com",!0),k.responseType="moz-chunked-arraybuffer",k.responseType==="moz-chunked-arraybuffer"}catch(w){return d.default.w("MozChunkedLoader",w.message),!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),y.prototype.destroy.call(this)},S.prototype.open=function(k,w){this._dataSource=k,this._range=w;var x=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(x=k.redirectedURL);var E=this._seekHandler.getConfig(x,w);this._requestURL=E.url;var _=this._xhr=new XMLHttpRequest;if(_.open("GET",E.url,!0),_.responseType="moz-chunked-arraybuffer",_.onreadystatechange=this._onReadyStateChange.bind(this),_.onprogress=this._onProgress.bind(this),_.onloadend=this._onLoadEnd.bind(this),_.onerror=this._onXhrError.bind(this),k.withCredentials&&(_.withCredentials=!0),typeof E.headers=="object"){var T=E.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}if(typeof this._config.headers=="object"){var T=this._config.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}this._status=h.LoaderStatus.kConnecting,_.send()},S.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=h.LoaderStatus.kComplete},S.prototype._onReadyStateChange=function(k){var w=k.target;if(w.readyState===2){if(w.responseURL!=null&&w.responseURL!==this._requestURL&&this._onURLRedirect){var x=this._seekHandler.removeURLParameters(w.responseURL);this._onURLRedirect(x)}if(w.status!==0&&(w.status<200||w.status>299))if(this._status=h.LoaderStatus.kError,this._onError)this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:w.status,msg:w.statusText});else throw new p.RuntimeException("MozChunkedLoader: Http code invalid, "+w.status+" "+w.statusText);else this._status=h.LoaderStatus.kBuffering}},S.prototype._onProgress=function(k){if(this._status!==h.LoaderStatus.kError){this._contentLength===null&&k.total!==null&&k.total!==0&&(this._contentLength=k.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var w=k.target.response,x=this._range.from+this._receivedLength;this._receivedLength+=w.byteLength,this._onDataArrival&&this._onDataArrival(w,x,this._receivedLength)}},S.prototype._onLoadEnd=function(k){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===h.LoaderStatus.kError)return;this._status=h.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)},S.prototype._onXhrError=function(k){this._status=h.LoaderStatus.kError;var w=0,x=null;if(this._contentLength&&k.loaded=this._contentLength&&(E=this._range.from+this._contentLength-1),this._currentRequestRange={from:x,to:E},this._internalOpen(this._dataSource,this._currentRequestRange)},k.prototype._internalOpen=function(w,x){this._lastTimeLoaded=0;var E=w.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?E=this._currentRedirectedURL:w.redirectedURL!=null&&(E=w.redirectedURL));var _=this._seekHandler.getConfig(E,x);this._currentRequestURL=_.url;var T=this._xhr=new XMLHttpRequest;if(T.open("GET",_.url,!0),T.responseType="arraybuffer",T.onreadystatechange=this._onReadyStateChange.bind(this),T.onprogress=this._onProgress.bind(this),T.onload=this._onLoad.bind(this),T.onerror=this._onXhrError.bind(this),w.withCredentials&&(T.withCredentials=!0),typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}if(typeof this._config.headers=="object"){var D=this._config.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}T.send()},k.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=p.LoaderStatus.kComplete},k.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},k.prototype._onReadyStateChange=function(w){var x=w.target;if(x.readyState===2){if(x.responseURL!=null){var E=this._seekHandler.removeURLParameters(x.responseURL);x.responseURL!==this._currentRequestURL&&E!==this._currentRedirectedURL&&(this._currentRedirectedURL=E,this._onURLRedirect&&this._onURLRedirect(E))}if(x.status>=200&&x.status<=299){if(this._waitForTotalLength)return;this._status=p.LoaderStatus.kBuffering}else if(this._status=p.LoaderStatus.kError,this._onError)this._onError(p.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:x.status,msg:x.statusText});else throw new v.RuntimeException("RangeLoader: Http code invalid, "+x.status+" "+x.statusText)}},k.prototype._onProgress=function(w){if(this._status!==p.LoaderStatus.kError){if(this._contentLength===null){var x=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,x=!0;var E=w.total;this._internalAbort(),E!=null&E!==0&&(this._totalLength=E)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,x){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var _=w.loaded-this._lastTimeLoaded;this._lastTimeLoaded=w.loaded,this._speedSampler.addBytes(_)}},k.prototype._normalizeSpeed=function(w){var x=this._chunkSizeKBList,E=x.length-1,_=0,T=0,D=E;if(w=x[_]&&w=3&&(x=this._speedSampler.currentKBps)),x!==0){var E=this._normalizeSpeed(x);this._currentSpeedNormalized!==E&&(this._currentSpeedNormalized=E,this._currentChunkSizeKB=E)}var _=w.target.response,T=this._range.from+this._receivedLength;this._receivedLength+=_.byteLength;var D=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new y.default(this._mediaDataSource,this._config),this._transmuxer.on(S.default.INIT_SEGMENT,function(M,$){P._msectl.appendInitSegment($)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(M,$){if(P._msectl.appendMediaSegment($),P._config.lazyLoad&&!P._config.isLive){var L=P._mediaElement.currentTime;$.info.endDts>=(L+P._config.lazyLoadMaxDuration)*1e3&&P._progressChecker==null&&(p.default.v(P.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),P._suspendTransmuxer())}}),this._transmuxer.on(S.default.LOADING_COMPLETE,function(){P._msectl.endOfStream(),P._emitter.emit(g.default.LOADING_COMPLETE)}),this._transmuxer.on(S.default.RECOVERED_EARLY_EOF,function(){P._emitter.emit(g.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(S.default.IO_ERROR,function(M,$){P._emitter.emit(g.default.ERROR,x.ErrorTypes.NETWORK_ERROR,M,$)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(M,$){P._emitter.emit(g.default.ERROR,x.ErrorTypes.MEDIA_ERROR,M,{code:-1,msg:$})}),this._transmuxer.on(S.default.MEDIA_INFO,function(M){P._mediaInfo=M,P._emitter.emit(g.default.MEDIA_INFO,Object.assign({},M))}),this._transmuxer.on(S.default.METADATA_ARRIVED,function(M){P._emitter.emit(g.default.METADATA_ARRIVED,M)}),this._transmuxer.on(S.default.SCRIPTDATA_ARRIVED,function(M){P._emitter.emit(g.default.SCRIPTDATA_ARRIVED,M)}),this._transmuxer.on(S.default.STATISTICS_INFO,function(M){P._statisticsInfo=P._fillStatisticsInfo(M),P._emitter.emit(g.default.STATISTICS_INFO,Object.assign({},P._statisticsInfo))}),this._transmuxer.on(S.default.RECOMMEND_SEEKPOINT,function(M){P._mediaElement&&!P._config.accurateSeek&&(P._requestSetTime=!0,P._mediaElement.currentTime=M/1e3)}),this._transmuxer.open()}},D.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},D.prototype.play=function(){return this._mediaElement.play()},D.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(D.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(P){this._mediaElement.volume=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(P){this._mediaElement.muted=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(P){this._mediaElement?this._internalSeek(P):this._pendingSeekTime=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"statisticsInfo",{get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),D.prototype._fillStatisticsInfo=function(P){if(P.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return P;var M=!0,$=0,L=0;if(this._mediaElement.getVideoPlaybackQuality){var B=this._mediaElement.getVideoPlaybackQuality();$=B.totalVideoFrames,L=B.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?($=this._mediaElement.webkitDecodedFrameCount,L=this._mediaElement.webkitDroppedFrameCount):M=!1;return M&&(P.decodedFrames=$,P.droppedFrames=L),P},D.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var P=this._mediaElement.buffered,M=this._mediaElement.currentTime,$=0,L=0;L=M+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},D.prototype._onmseBufferFull=function(){p.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()},D.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},D.prototype._checkProgressAndResume=function(){for(var P=this._mediaElement.currentTime,M=this._mediaElement.buffered,$=!1,L=0;L=B&&P=j-this._config.lazyLoadRecoverDuration&&($=!0);break}}$&&(window.clearInterval(this._progressChecker),this._progressChecker=null,$&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},D.prototype._isTimepointBuffered=function(P){for(var M=this._mediaElement.buffered,$=0;$=L&&P0){var B=this._mediaElement.buffered.start(0);(B<1&&P0&&M.currentTime<$.start(0)&&(p.default.w(this.TAG,"Playback seems stuck at "+M.currentTime+", seek to "+$.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=$.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)},D.prototype._onvLoadedMetadata=function(P){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)},D.prototype._onvSeeking=function(P){var M=this._mediaElement.currentTime,$=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(M<1&&$.length>0){var L=$.start(0);if(L<1&&M0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},S.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},S.prototype.play=function(){return this._mediaElement.play()},S.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(S.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(k){this._mediaElement.volume=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(k){this._mediaElement.muted=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(k){this._mediaElement?this._mediaElement.currentTime=k:this._pendingSeekTime=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"mediaInfo",{get:function(){var k=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",w={mimeType:k+this._mediaDataSource.type};return this._mediaElement&&(w.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(w.width=this._mediaElement.videoWidth,w.height=this._mediaElement.videoHeight)),w},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"statisticsInfo",{get:function(){var k={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return k;var w=!0,x=0,E=0;if(this._mediaElement.getVideoPlaybackQuality){var _=this._mediaElement.getVideoPlaybackQuality();x=_.totalVideoFrames,E=_.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(x=this._mediaElement.webkitDecodedFrameCount,E=this._mediaElement.webkitDroppedFrameCount):w=!1;return w&&(k.decodedFrames=x,k.droppedFrames=E),k},enumerable:!1,configurable:!0}),S.prototype._onvLoadedMetadata=function(k){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(p.default.MEDIA_INFO,this.mediaInfo)},S.prototype._reportStatisticsInfo=function(){this._emitter.emit(p.default.STATISTICS_INFO,this.statisticsInfo)},S})();l.default=y}),"./src/player/player-errors.js":(function(s,l,c){c.r(l),c.d(l,{ErrorTypes:function(){return p},ErrorDetails:function(){return v}});var d=c("./src/io/loader.js"),h=c("./src/demux/demux-errors.js"),p={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},v={NETWORK_EXCEPTION:d.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:d.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:d.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:d.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:h.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:h.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:h.default.CODEC_UNSUPPORTED}}),"./src/player/player-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};l.default=d}),"./src/remux/aac-silent.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.getSilentFrame=function(p,v){if(p==="mp4a.40.2"){if(v===1)return new Uint8Array([0,200,0,128,35,128]);if(v===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(v===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(v===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(v===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(v===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(v===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(v===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(v===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},h})();l.default=d}),"./src/remux/mp4-generator.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.init=function(){h.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var p in h.types)h.types.hasOwnProperty(p)&&(h.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);var v=h.constants={};v.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),v.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),v.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),v.STSC=v.STCO=v.STTS,v.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),v.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),v.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),v.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),v.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),v.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},h.box=function(p){for(var v=8,g=null,y=Array.prototype.slice.call(arguments,1),S=y.length,k=0;k>>24&255,g[1]=v>>>16&255,g[2]=v>>>8&255,g[3]=v&255,g.set(p,4);for(var w=8,k=0;k>>24&255,p>>>16&255,p>>>8&255,p&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},h.trak=function(p){return h.box(h.types.trak,h.tkhd(p),h.mdia(p))},h.tkhd=function(p){var v=p.id,g=p.duration,y=p.presentWidth,S=p.presentHeight;return h.box(h.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,y>>>8&255,y&255,0,0,S>>>8&255,S&255,0,0]))},h.mdia=function(p){return h.box(h.types.mdia,h.mdhd(p),h.hdlr(p),h.minf(p))},h.mdhd=function(p){var v=p.timescale,g=p.duration;return h.box(h.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,85,196,0,0]))},h.hdlr=function(p){var v=null;return p.type==="audio"?v=h.constants.HDLR_AUDIO:v=h.constants.HDLR_VIDEO,h.box(h.types.hdlr,v)},h.minf=function(p){var v=null;return p.type==="audio"?v=h.box(h.types.smhd,h.constants.SMHD):v=h.box(h.types.vmhd,h.constants.VMHD),h.box(h.types.minf,v,h.dinf(),h.stbl(p))},h.dinf=function(){var p=h.box(h.types.dinf,h.box(h.types.dref,h.constants.DREF));return p},h.stbl=function(p){var v=h.box(h.types.stbl,h.stsd(p),h.box(h.types.stts,h.constants.STTS),h.box(h.types.stsc,h.constants.STSC),h.box(h.types.stsz,h.constants.STSZ),h.box(h.types.stco,h.constants.STCO));return v},h.stsd=function(p){return p.type==="audio"?p.codec==="mp3"?h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp3(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp4a(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.avc1(p))},h.mp3=function(p){var v=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,v,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types[".mp3"],y)},h.mp4a=function(p){var v=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,v,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types.mp4a,y,h.esds(p))},h.esds=function(p){var v=p.config||[],g=v.length,y=new Uint8Array([0,0,0,0,3,23+g,0,1,0,4,15+g,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([g]).concat(v).concat([6,1,2]));return h.box(h.types.esds,y)},h.avc1=function(p){var v=p.avcc,g=p.codecWidth,y=p.codecHeight,S=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,g>>>8&255,g&255,y>>>8&255,y&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return h.box(h.types.avc1,S,h.box(h.types.avcC,v))},h.mvex=function(p){return h.box(h.types.mvex,h.trex(p))},h.trex=function(p){var v=p.id,g=new Uint8Array([0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return h.box(h.types.trex,g)},h.moof=function(p,v){return h.box(h.types.moof,h.mfhd(p.sequenceNumber),h.traf(p,v))},h.mfhd=function(p){var v=new Uint8Array([0,0,0,0,p>>>24&255,p>>>16&255,p>>>8&255,p&255]);return h.box(h.types.mfhd,v)},h.traf=function(p,v){var g=p.id,y=h.box(h.types.tfhd,new Uint8Array([0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255])),S=h.box(h.types.tfdt,new Uint8Array([0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&255])),k=h.sdtp(p),w=h.trun(p,k.byteLength+16+16+8+16+8+8);return h.box(h.types.traf,y,S,w,k)},h.sdtp=function(p){for(var v=p.samples||[],g=v.length,y=new Uint8Array(4+g),S=0;S>>24&255,y>>>16&255,y>>>8&255,y&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255],0);for(var w=0;w>>24&255,x>>>16&255,x>>>8&255,x&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,_.isLeading<<2|_.dependsOn,_.isDependedOn<<6|_.hasRedundancy<<4|_.isNonSync,0,0,T>>>24&255,T>>>16&255,T>>>8&255,T&255],12+16*w)}return h.box(h.types.trun,k)},h.mdat=function(p){return h.box(h.types.mdat,p)},h})();d.init(),l.default=d}),"./src/remux/mp4-remuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/remux/mp4-generator.js"),p=c("./src/remux/aac-silent.js"),v=c("./src/utils/browser.js"),g=c("./src/core/media-segment-info.js"),y=c("./src/utils/exception.js"),S=(function(){function k(w){this.TAG="MP4Remuxer",this._config=w,this._isLive=w.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new g.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new g.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(v.default.chrome&&(v.default.version.major<50||v.default.version.major===50&&v.default.version.build<2661)),this._fillSilentAfterSeek=v.default.msedge||v.default.msie,this._mp3UseMpegAudio=!v.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return k.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},k.prototype.bindDataSource=function(w){return w.onDataAvailable=this.remux.bind(this),w.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(k.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(w){this._onInitSegment=w},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(w){this._onMediaSegment=w},enumerable:!1,configurable:!0}),k.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},k.prototype.seek=function(w){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},k.prototype.remux=function(w,x){if(!this._onMediaSegment)throw new y.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(w,x),this._remuxVideo(x),this._remuxAudio(w)},k.prototype._onTrackMetadataReceived=function(w,x){var E=null,_="mp4",T=x.codec;if(w==="audio")this._audioMeta=x,x.codec==="mp3"&&this._mp3UseMpegAudio?(_="mpeg",T="",E=new Uint8Array):E=h.default.generateInitSegment(x);else if(w==="video")this._videoMeta=x,E=h.default.generateInitSegment(x);else return;if(!this._onInitSegment)throw new y.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(w,{type:w,data:E.buffer,codec:T,container:w+"/"+_,mediaDuration:x.duration})},k.prototype._calculateDtsBase=function(w,x){this._dtsBaseInited||(w.samples&&w.samples.length&&(this._audioDtsBase=w.samples[0].dts),x.samples&&x.samples.length&&(this._videoDtsBase=x.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},k.prototype.flushStashedSamples=function(){var w=this._videoStashedLastSample,x=this._audioStashedLastSample,E={type:"video",id:1,sequenceNumber:0,samples:[],length:0};w!=null&&(E.samples.push(w),E.length=w.length);var _={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};x!=null&&(_.samples.push(x),_.length=x.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(E,!0),this._remuxAudio(_,!0)},k.prototype._remuxAudio=function(w,x){if(this._audioMeta!=null){var E=w,_=E.samples,T=void 0,D=-1,P=-1,M=this._audioMeta.refSampleDuration,$=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,L=this._dtsBaseInited&&this._audioNextDts===void 0,B=!1;if(!(!_||_.length===0)&&!(_.length===1&&!x)){var j=0,H=null,U=0;$?(j=0,U=E.length):(j=8,U=8+E.length);var W=null;if(_.length>1&&(W=_.pop(),U-=W.length),this._audioStashedLastSample!=null){var K=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(K),U+=K.length}W!=null&&(this._audioStashedLastSample=W);var oe=_[0].dts-this._dtsBase;if(this._audioNextDts)T=oe-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())T=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(B=!0);else{var ae=this._audioSegmentInfoList.getLastSampleBefore(oe);if(ae!=null){var ee=oe-(ae.originalDts+ae.duration);ee<=3&&(ee=0);var Y=ae.dts+ae.duration+ee;T=oe-Y}else T=0}if(B){var Q=oe-T,ie=this._videoSegmentInfoList.getLastSegmentBefore(oe);if(ie!=null&&ie.beginDts=ge*M&&this._fillAudioTimestampGap&&!v.default.safari){nt=!0;var Be=Math.floor(T/M);d.default.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. +`+("originalDts: "+Ge+" ms, curRefDts: "+me+" ms, ")+("dtsCorrection: "+Math.round(T)+" ms, generate: "+Be+" frames")),te=Math.floor(me),_e=Math.floor(me+M)-te;var q=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);q==null&&(d.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),q=Re),Ie=[];for(var Ye=0;Ye=1?_e=Fe[Fe.length-1].duration:_e=Math.floor(M);this._audioNextDts=te+_e}D===-1&&(D=te),Fe.push({dts:te,pts:te,cts:0,unit:K.unit,size:K.unit.byteLength,duration:_e,originalDts:Ge,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),nt&&Fe.push.apply(Fe,Ie)}}if(Fe.length===0){E.samples=[],E.length=0;return}$?H=new Uint8Array(U):(H=new Uint8Array(U),H[0]=U>>>24&255,H[1]=U>>>16&255,H[2]=U>>>8&255,H[3]=U&255,H.set(h.default.types.mdat,4));for(var ve=0;ve1&&(H=_.pop(),j-=H.length),this._videoStashedLastSample!=null){var U=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(U),j+=U.length}H!=null&&(this._videoStashedLastSample=H);var W=_[0].dts-this._dtsBase;if(this._videoNextDts)T=W-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())T=0;else{var K=this._videoSegmentInfoList.getLastSampleBefore(W);if(K!=null){var oe=W-(K.originalDts+K.duration);oe<=3&&(oe=0);var ae=K.dts+K.duration+oe;T=W-ae}else T=0}for(var ee=new g.MediaSegmentInfo,Y=[],Q=0;Q<_.length;Q++){var U=_[Q],ie=U.dts-this._dtsBase,q=U.isKeyframe,te=ie-T,Se=U.cts,Fe=te+Se;D===-1&&(D=te,M=Fe);var ve=0;if(Q!==_.length-1){var Re=_[Q+1].dts-this._dtsBase-T;ve=Re-te}else if(H!=null){var Re=H.dts-this._dtsBase-T;ve=Re-te}else Y.length>=1?ve=Y[Y.length-1].duration:ve=Math.floor(this._videoMeta.refSampleDuration);if(q){var Ge=new g.SampleInfo(te,Fe,ve,U.dts,!0);Ge.fileposition=U.fileposition,ee.appendSyncPoint(Ge)}Y.push({dts:te,pts:Fe,cts:Se,units:U.units,size:U.length,isKeyframe:q,duration:ve,originalDts:ie,flags:{isLeading:0,dependsOn:q?2:1,isDependedOn:q?1:0,hasRedundancy:0,isNonSync:q?0:1}})}B=new Uint8Array(j),B[0]=j>>>24&255,B[1]=j>>>16&255,B[2]=j>>>8&255,B[3]=j&255,B.set(h.default.types.mdat,4);for(var Q=0;Q=0&&/(rv)(?::| )([\w.]+)/.exec(p)||p.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(p)||[],g=/(ipad)/.exec(p)||/(ipod)/.exec(p)||/(windows phone)/.exec(p)||/(iphone)/.exec(p)||/(kindle)/.exec(p)||/(android)/.exec(p)||/(windows)/.exec(p)||/(mac)/.exec(p)||/(linux)/.exec(p)||/(cros)/.exec(p)||[],y={browser:v[5]||v[3]||v[1]||"",version:v[2]||v[4]||"0",majorVersion:v[4]||v[2]||"0",platform:g[0]||""},S={};if(y.browser){S[y.browser]=!0;var k=y.majorVersion.split(".");S.version={major:parseInt(y.majorVersion,10),string:y.version},k.length>1&&(S.version.minor=parseInt(k[1],10)),k.length>2&&(S.version.build=parseInt(k[2],10))}if(y.platform&&(S[y.platform]=!0),(S.chrome||S.opr||S.safari)&&(S.webkit=!0),S.rv||S.iemobile){S.rv&&delete S.rv;var w="msie";y.browser=w,S[w]=!0}if(S.edge){delete S.edge;var x="msedge";y.browser=x,S[x]=!0}if(S.opr){var E="opera";y.browser=E,S[E]=!0}if(S.safari&&S.android){var _="android";y.browser=_,S[_]=!0}S.name=y.browser,S.platform=y.platform;for(var T in d)d.hasOwnProperty(T)&&delete d[T];Object.assign(d,S)}h(),l.default=d}),"./src/utils/exception.js":(function(s,l,c){c.r(l),c.d(l,{RuntimeException:function(){return h},IllegalStateException:function(){return p},InvalidArgumentException:function(){return v},NotImplementedException:function(){return g}});var d=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(w[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function w(){this.constructor=S}S.prototype=k===null?Object.create(k):(w.prototype=k.prototype,new w)}})(),h=(function(){function y(S){this._message=S}return Object.defineProperty(y.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),y.prototype.toString=function(){return this.name+": "+this.message},y})(),p=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),S})(h),v=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),S})(h),g=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),S})(h)}),"./src/utils/logger.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=(function(){function v(){}return v.e=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","error",S),v.ENABLE_ERROR&&(console.error?console.error(S):console.warn?console.warn(S):console.log(S))},v.i=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","info",S),v.ENABLE_INFO&&(console.info?console.info(S):console.log(S))},v.w=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","warn",S),v.ENABLE_WARN&&(console.warn?console.warn(S):console.log(S))},v.d=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","debug",S),v.ENABLE_DEBUG&&(console.debug?console.debug(S):console.log(S))},v.v=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","verbose",S),v.ENABLE_VERBOSE&&console.log(S)},v})();p.GLOBAL_TAG="flv.js",p.FORCE_GLOBAL_TAG=!1,p.ENABLE_ERROR=!0,p.ENABLE_INFO=!0,p.ENABLE_WARN=!0,p.ENABLE_DEBUG=!0,p.ENABLE_VERBOSE=!0,p.ENABLE_CALLBACK=!1,p.emitter=new(h()),l.default=p}),"./src/utils/logging-control.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),v=(function(){function g(){}return Object.defineProperty(g,"forceGlobalTag",{get:function(){return p.default.FORCE_GLOBAL_TAG},set:function(y){p.default.FORCE_GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"globalTag",{get:function(){return p.default.GLOBAL_TAG},set:function(y){p.default.GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableAll",{get:function(){return p.default.ENABLE_VERBOSE&&p.default.ENABLE_DEBUG&&p.default.ENABLE_INFO&&p.default.ENABLE_WARN&&p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_VERBOSE=y,p.default.ENABLE_DEBUG=y,p.default.ENABLE_INFO=y,p.default.ENABLE_WARN=y,p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableDebug",{get:function(){return p.default.ENABLE_DEBUG},set:function(y){p.default.ENABLE_DEBUG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableVerbose",{get:function(){return p.default.ENABLE_VERBOSE},set:function(y){p.default.ENABLE_VERBOSE=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableInfo",{get:function(){return p.default.ENABLE_INFO},set:function(y){p.default.ENABLE_INFO=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableWarn",{get:function(){return p.default.ENABLE_WARN},set:function(y){p.default.ENABLE_WARN=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableError",{get:function(){return p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),g.getConfig=function(){return{globalTag:p.default.GLOBAL_TAG,forceGlobalTag:p.default.FORCE_GLOBAL_TAG,enableVerbose:p.default.ENABLE_VERBOSE,enableDebug:p.default.ENABLE_DEBUG,enableInfo:p.default.ENABLE_INFO,enableWarn:p.default.ENABLE_WARN,enableError:p.default.ENABLE_ERROR,enableCallback:p.default.ENABLE_CALLBACK}},g.applyConfig=function(y){p.default.GLOBAL_TAG=y.globalTag,p.default.FORCE_GLOBAL_TAG=y.forceGlobalTag,p.default.ENABLE_VERBOSE=y.enableVerbose,p.default.ENABLE_DEBUG=y.enableDebug,p.default.ENABLE_INFO=y.enableInfo,p.default.ENABLE_WARN=y.enableWarn,p.default.ENABLE_ERROR=y.enableError,p.default.ENABLE_CALLBACK=y.enableCallback},g._notifyChange=function(){var y=g.emitter;if(y.listenerCount("change")>0){var S=g.getConfig();y.emit("change",S)}},g.registerListener=function(y){g.emitter.addListener("change",y)},g.removeListener=function(y){g.emitter.removeListener("change",y)},g.addLogListener=function(y){p.default.emitter.addListener("log",y),p.default.emitter.listenerCount("log")>0&&(p.default.ENABLE_CALLBACK=!0,g._notifyChange())},g.removeLogListener=function(y){p.default.emitter.removeListener("log",y),p.default.emitter.listenerCount("log")===0&&(p.default.ENABLE_CALLBACK=!1,g._notifyChange())},g})();v.emitter=new(h()),l.default=v}),"./src/utils/polyfill.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(p,v){return p.__proto__=v,p},Object.assign=Object.assign||function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(p),g=1;g=128){v.push(String.fromCharCode(k&65535)),y+=2;continue}}}else if(g[y]<240){if(d(g,y,2)){var k=(g[y]&15)<<12|(g[y+1]&63)<<6|g[y+2]&63;if(k>=2048&&(k&63488)!==55296){v.push(String.fromCharCode(k&65535)),y+=3;continue}}}else if(g[y]<248&&d(g,y,3)){var k=(g[y]&7)<<18|(g[y+1]&63)<<12|(g[y+2]&63)<<6|g[y+3]&63;if(k>65536&&k<1114112){k-=65536,v.push(String.fromCharCode(k>>>10|55296)),v.push(String.fromCharCode(k&1023|56320)),y+=4;continue}}}v.push("�"),++y}return v.join("")}l.default=h})},r={};function i(s){var l=r[s];if(l!==void 0)return l.exports;var c=r[s]={exports:{}};return n[s].call(c.exports,c,c.exports,i),c.exports}i.m=n,(function(){i.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(l,{a:l}),l}})(),(function(){i.d=function(s,l){for(var c in l)i.o(l,c)&&!i.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:l[c]})}})(),(function(){i.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){i.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)}})(),(function(){i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}})();var a=i("./src/index.js");return a})()})})(lj)),lj.exports}var GPt=WPt();const cU=rd(GPt);var uj={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 -*/var mce;function jPt(){return mce||(mce=1,(function(e){(function(){var t=typeof window<"u"?window:hw,n={};(function(i,a,s){var l,c=typeof Object.create=="function"?Object.create:function(o){function u(){}return u.prototype=o,new u},d=typeof Object.defineProperties=="function"?Object.defineProperty:function(o,u,f){return o==Array.prototype||o==Object.prototype||(o[u]=f.value),o};function h(o){o=[typeof globalThis=="object"&&globalThis,o,typeof i=="object"&&i,typeof self=="object"&&self,typeof a=="object"&&a];for(var u=0;u>>0)+"_",b=0;return u}),v("Symbol.iterator",function(o){if(o)return o;o=Symbol("Symbol.iterator");for(var u="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f"u"?!0:(typeof A=="function"?A=new A("unhandledrejection",{cancelable:!0}):typeof R=="function"?A=new R("unhandledrejection",{cancelable:!0}):(A=p.document.createEvent("CustomEvent"),A.initCustomEvent("unhandledrejection",!1,!0,A)),A.promise=this,A.reason=this.i,N(A))},u.prototype.B=function(){if(this.g!=null){for(var A=0;A1114111||b!==Math.floor(b))throw new RangeError("invalid_code_point "+b);b<=65535?f+=String.fromCharCode(b):(b-=65536,f+=String.fromCharCode(b>>>10&1023|55296),f+=String.fromCharCode(b&1023|56320))}return f}}),v("WeakSet",function(o){function u(f){if(this.g=new WeakMap,f){f=_(f);for(var m;!(m=f.next()).done;)this.add(m.value)}}return(function(){if(!o||!Object.seal)return!1;try{var f=Object.seal({}),m=Object.seal({}),b=new o([f]);return!b.has(f)||b.has(m)?!1:(b.delete(f),b.add(m),!b.has(f)&&b.has(m))}catch{return!1}})()?o:(u.prototype.add=function(f){return this.g.set(f,!0),this},u.prototype.has=function(f){return this.g.has(f)},u.prototype.delete=function(f){return this.g.delete(f)},u)}),v("Array.prototype.find",function(o){return o||function(u,f){return ge(this,u,f).v}}),v("String.prototype.startsWith",function(o){return o||function(u,f){var m=Ge(this,u,"startsWith"),b=m.length,w=u.length;f=Math.max(0,Math.min(f|0,m.length));for(var A=0;A=w}}),v("Object.entries",function(o){return o||function(u){var f=[],m;for(m in u)Ve(u,m)&&f.push([m,u[m]]);return f}});var tt=typeof Object.assign=="function"?Object.assign:function(o,u){for(var f=1;f1342177279)throw new RangeError("Invalid count value");u|=0;for(var m="";u;)u&1&&(m+=f),(u>>>=1)&&(f+=f);return m}}),v("Number.EPSILON",function(){return 2220446049250313e-31}),v("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),v("Number.isFinite",function(o){return o||function(u){return typeof u!="number"?!1:!isNaN(u)&&u!==1/0&&u!==-1/0}}),v("Object.values",function(o){return o||function(u){var f=[],m;for(m in u)Ve(u,m)&&f.push(u[m]);return f}}),v("Math.log2",function(o){return o||function(u){return Math.log(u)/Math.LN2}}),v("String.prototype.endsWith",function(o){return o||function(u,f){var m=Ge(this,u,"endsWith");f===void 0&&(f=m.length),f=Math.max(0,Math.min(f|0,m.length));for(var b=u.length;b>0&&f>0;)if(m[--f]!=u[--b])return!1;return b<=0}}),v("Math.trunc",function(o){return o||function(u){if(u=Number(u),isNaN(u)||u===1/0||u===-1/0||u===0)return u;var f=Math.floor(Math.abs(u));return u<0?-f:f}});var Ue=this||self;function _e(o,u){o=o.split(".");var f=Ue;o[0]in f||typeof f.execScript>"u"||f.execScript("var "+o[0]);for(var m;o.length&&(m=o.shift());)o.length||u===void 0?f[m]&&f[m]!==Object.prototype[m]?f=f[m]:f=f[m]={}:f[m]=u}function ve(o){this.g=Math.exp(Math.log(.5)/o),this.i=this.h=0}ve.prototype.sample=function(o,u){var f=Math.pow(this.g,o);u=u*(1-f)+f*this.h,isNaN(u)||(this.h=u,this.i+=o)};function me(o){return o.h/(1-Math.pow(o.g,o.i))}function Oe(){this.h=new ve(2),this.j=new ve(5),this.g=0,this.i=128e3,this.l=16e3}Oe.prototype.configure=function(o){this.i=o.minTotalBytes,this.l=o.minBytes,this.h.g=Math.exp(Math.log(.5)/o.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/o.slowHalfLife)},Oe.prototype.sample=function(o,u){if(!(u-1&&o.splice(u,1)}function rn(o,u,f){if(f||(f=Ht),o.length!=u.length)return!1;u=u.slice(),o=_(o);for(var m=o.next(),b={};!m.done;b={mi:void 0},m=o.next()){if(b.mi=m.value,m=u.findIndex((function(w){return function(A){return f(w.mi,A)}})(b)),m==-1)return!1;u[m]=u[u.length-1],u.pop()}return u.length==0}function vt(o,u,f){if(o===u)return!0;if(!o||!u)return o==u;if(f||(f=Ht),o.length!=u.length)return!1;for(var m=0;m>>0)+"_",b=0;return u}),v("Symbol.iterator",function(o){if(o)return o;o=Symbol("Symbol.iterator");for(var u="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f"u"?!0:(typeof A=="function"?A=new A("unhandledrejection",{cancelable:!0}):typeof R=="function"?A=new R("unhandledrejection",{cancelable:!0}):(A=p.document.createEvent("CustomEvent"),A.initCustomEvent("unhandledrejection",!1,!0,A)),A.promise=this,A.reason=this.i,N(A))},u.prototype.B=function(){if(this.g!=null){for(var A=0;A1114111||b!==Math.floor(b))throw new RangeError("invalid_code_point "+b);b<=65535?f+=String.fromCharCode(b):(b-=65536,f+=String.fromCharCode(b>>>10&1023|55296),f+=String.fromCharCode(b&1023|56320))}return f}}),v("WeakSet",function(o){function u(f){if(this.g=new WeakMap,f){f=_(f);for(var m;!(m=f.next()).done;)this.add(m.value)}}return(function(){if(!o||!Object.seal)return!1;try{var f=Object.seal({}),m=Object.seal({}),b=new o([f]);return!b.has(f)||b.has(m)?!1:(b.delete(f),b.add(m),!b.has(f)&&b.has(m))}catch{return!1}})()?o:(u.prototype.add=function(f){return this.g.set(f,!0),this},u.prototype.has=function(f){return this.g.has(f)},u.prototype.delete=function(f){return this.g.delete(f)},u)}),v("Array.prototype.find",function(o){return o||function(u,f){return ve(this,u,f).v}}),v("String.prototype.startsWith",function(o){return o||function(u,f){var m=Ge(this,u,"startsWith"),b=m.length,C=u.length;f=Math.max(0,Math.min(f|0,m.length));for(var A=0;A=C}}),v("Object.entries",function(o){return o||function(u){var f=[],m;for(m in u)Fe(u,m)&&f.push([m,u[m]]);return f}});var nt=typeof Object.assign=="function"?Object.assign:function(o,u){for(var f=1;f1342177279)throw new RangeError("Invalid count value");u|=0;for(var m="";u;)u&1&&(m+=f),(u>>>=1)&&(f+=f);return m}}),v("Number.EPSILON",function(){return 2220446049250313e-31}),v("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),v("Number.isFinite",function(o){return o||function(u){return typeof u!="number"?!1:!isNaN(u)&&u!==1/0&&u!==-1/0}}),v("Object.values",function(o){return o||function(u){var f=[],m;for(m in u)Fe(u,m)&&f.push(u[m]);return f}}),v("Math.log2",function(o){return o||function(u){return Math.log(u)/Math.LN2}}),v("String.prototype.endsWith",function(o){return o||function(u,f){var m=Ge(this,u,"endsWith");f===void 0&&(f=m.length),f=Math.max(0,Math.min(f|0,m.length));for(var b=u.length;b>0&&f>0;)if(m[--f]!=u[--b])return!1;return b<=0}}),v("Math.trunc",function(o){return o||function(u){if(u=Number(u),isNaN(u)||u===1/0||u===-1/0||u===0)return u;var f=Math.floor(Math.abs(u));return u<0?-f:f}});var Ie=this||self;function _e(o,u){o=o.split(".");var f=Ie;o[0]in f||typeof f.execScript>"u"||f.execScript("var "+o[0]);for(var m;o.length&&(m=o.shift());)o.length||u===void 0?f[m]&&f[m]!==Object.prototype[m]?f=f[m]:f=f[m]={}:f[m]=u}function me(o){this.g=Math.exp(Math.log(.5)/o),this.i=this.h=0}me.prototype.sample=function(o,u){var f=Math.pow(this.g,o);u=u*(1-f)+f*this.h,isNaN(u)||(this.h=u,this.i+=o)};function ge(o){return o.h/(1-Math.pow(o.g,o.i))}function Be(){this.h=new me(2),this.j=new me(5),this.g=0,this.i=128e3,this.l=16e3}Be.prototype.configure=function(o){this.i=o.minTotalBytes,this.l=o.minBytes,this.h.g=Math.exp(Math.log(.5)/o.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/o.slowHalfLife)},Be.prototype.sample=function(o,u){if(!(u-1&&o.splice(u,1)}function rn(o,u,f){if(f||(f=Ht),o.length!=u.length)return!1;u=u.slice(),o=_(o);for(var m=o.next(),b={};!m.done;b={mi:void 0},m=o.next()){if(b.mi=m.value,m=u.findIndex((function(C){return function(A){return f(C.mi,A)}})(b)),m==-1)return!1;u[m]=u[u.length-1],u.pop()}return u.length==0}function vt(o,u,f){if(o===u)return!0;if(!o||!u)return o==u;if(f||(f=Ht),o.length!=u.length)return!1;for(var m=0;m0?m.i:m.h)(m.g,f,o,u)}function Dn(o,u,f,m){at([f,"has been deprecated and will be removed in",u,". We are currently at version",o,". Additional information:",m].join(" "))}function rr(o,u,f,m){Ke([f,"has been deprecated and has been removed in",u,". We are now at version",o,". Additional information:",m].join(" "))}var qr=null;/* +*/function Le(){return Ut.value()}var ht=null,Vt=null,Ut=new Qe(function(){var o=void 0;return ht&&(o=ht()),!o&&Vt&&(o=Vt()),o});function Lt(o,u){this.g=o,this.h=u}Lt.prototype.toString=function(){return"v"+this.g+"."+this.h};function Xt(o,u){var f=new Lt(5,0),m=Xr,b=m.g,C=f.h-b.h;((f.g-b.g||C)>0?m.i:m.h)(m.g,f,o,u)}function Dn(o,u,f,m){at([f,"has been deprecated and will be removed in",u,". We are currently at version",o,". Additional information:",m].join(" "))}function rr(o,u,f,m){Ke([f,"has been deprecated and has been removed in",u,". We are now at version",o,". Additional information:",m].join(" "))}var Xr=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 -*/var Wt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* +*/var Gt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 -*/function Yt(o){var u;o instanceof Yt?(sn(this,o.bc),this.hd=o.hd,An(this,o.Db),un(this,o.Cd),this.Sb=o.Sb,Xn(this,o.g.clone()),this.Rc=o.Rc):o&&(u=String(o).match(Wt))?(sn(this,u[1]||"",!0),this.hd=wr(u[2]||""),An(this,u[3]||"",!0),un(this,u[4]),this.Sb=wr(u[5]||"",!0),Xn(this,u[6]||"",!0),this.Rc=wr(u[7]||"")):this.g=new ne(null)}l=Yt.prototype,l.bc="",l.hd="",l.Db="",l.Cd=null,l.Sb="",l.Rc="",l.toString=function(){var o=[],u=this.bc;if(u&&o.push(ro(u,bn,!0),":"),u=this.Db){o.push("//");var f=this.hd;f&&o.push(ro(f,bn,!0),"@"),o.push(encodeURIComponent(u).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u=this.Cd,u!=null&&o.push(":",String(u))}return(u=this.Sb)&&(this.Db&&u.charAt(0)!="/"&&o.push("/"),o.push(ro(u,u.charAt(0)=="/"?sr:kr,!0))),(u=this.g.toString())&&o.push("?",u),(u=this.Rc)&&o.push("#",ro(u,oe)),o.join("")},l.resolve=function(o){var u=this.clone();u.bc==="data"&&(u=new Yt);var f=!!o.bc;f?sn(u,o.bc):f=!!o.hd,f?u.hd=o.hd:f=!!o.Db,f?An(u,o.Db):f=o.Cd!=null;var m=o.Sb;if(f)un(u,o.Cd);else if(f=!!o.Sb){if(m.charAt(0)!="/")if(this.Db&&!this.Sb)m="/"+m;else{var b=u.Sb.lastIndexOf("/");b!=-1&&(m=u.Sb.substr(0,b+1)+m)}if(m==".."||m==".")m="";else if(m.indexOf("./")!=-1||m.indexOf("/.")!=-1){b=m.lastIndexOf("/",0)==0,m=m.split("/");for(var w=[],A=0;A1||w.length==1&&w[0]!="")&&w.pop(),b&&A==m.length&&w.push("")):(w.push(R),b=!0)}m=w.join("/")}}return f?u.Sb=m:f=o.g.toString()!=="",f?Xn(u,o.g.clone()):f=!!o.Rc,f&&(u.Rc=o.Rc),u},l.clone=function(){return new Yt(this)};function sn(o,u,f){o.bc=f?wr(u,!0):u,o.bc&&(o.bc=o.bc.replace(/:$/,""))}function An(o,u,f){o.Db=f?wr(u,!0):u}function un(o,u){if(u){if(u=Number(u),isNaN(u)||u<0)throw Error("Bad port number "+u);o.Cd=u}else o.Cd=null}function Xn(o,u,f){u instanceof ne?o.g=u:(f||(u=ro(u,zr)),o.g=new ne(u))}function wr(o,u){return o?u?decodeURI(o):decodeURIComponent(o):""}function ro(o,u,f){return o!=null?(o=encodeURI(o).replace(u,Ot),f&&(o=o.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),o):null}function Ot(o){return o=o.charCodeAt(0),"%"+(o>>4&15).toString(16)+(o&15).toString(16)}var bn=/[#\/\?@]/g,kr=/[#\?:]/g,sr=/[#\?]/g,zr=/[#\?@]/g,oe=/#/g;function ne(o){this.g=o||null}function ee(o){if(!o.eb&&(o.eb=new Map,o.Sd=0,o.g))for(var u=o.g.split("&"),f=0;f=0){var w=u[f].substring(0,m);b=u[f].substring(m+1)}else w=u[f];w=decodeURIComponent(w),b=b||"",o.add(w,decodeURIComponent(b))}}l=ne.prototype,l.eb=null,l.Sd=null;function J(o){return ee(o),o.Sd}l.add=function(o,u){ee(this),this.g=null;var f=this.eb.has(o)?this.eb.get(o):null;return f||this.eb.set(o,f=[]),f.push(u),this.Sd++,this},l.set=function(o,u){return ee(this),this.g=null,this.eb.has(o)?this.eb.set(o,[u]):this.add(o,u),this},l.get=function(o){return ee(this),this.eb.get(o)||[]},l.toString=function(){if(this.g)return this.g;if(!this.eb||!this.eb.size)return"";for(var o=[],u=_(this.eb.keys()),f=u.next();!f.done;f=u.next()){var m=f.value;f=encodeURIComponent(m),m=this.eb.get(m);for(var b=0;b=f+2&&(o[f]&224)==192&&(o[f+1]&192)==128?(m=(o[f]&31)<<6|o[f+1]&63,f+=1):o.length>=f+3&&(o[f]&240)==224&&(o[f+1]&192)==128&&(o[f+2]&192)==128?(m=(o[f]&15)<<12|(o[f+1]&63)<<6|o[f+2]&63,f+=2):o.length>=f+4&&(o[f]&241)==240&&(o[f+1]&192)==128&&(o[f+2]&192)==128&&(o[f+3]&192)==128&&(m=(o[f]&7)<<18|(o[f+1]&63)<<12|(o[f+2]&63)<<6|o[f+3]&63,f+=3),m<=65535)u+=String.fromCharCode(m);else{m-=65536;var b=m&1023;u+=String.fromCharCode(55296+(m>>10)),u+=String.fromCharCode(56320+b)}}return u}function Mt(o,u,f){if(!o)return"";if(!f&&o.byteLength%2!=0)throw new De(2,2,2004);f=Math.floor(o.byteLength/2);var m=new Uint16Array(f);o=ot(o);for(var b=0;b=9&&f[m]<=126}if(!o)return"";var f=Ae(o);if(f[0]==239&&f[1]==187&&f[2]==191)return ut(f);if(f[0]==254&&f[1]==255)return Mt(f.subarray(2),!1);if(f[0]==255&&f[1]==254)return Mt(f.subarray(2),!0);if(f[0]==0&&f[2]==0)return Mt(o,!1);if(f[1]==0&&f[3]==0)return Mt(o,!0);if(u(0)&&u(1)&&u(2)&&u(3))return ut(o);throw new De(2,2,2003)}function Gt(o){if(i.TextEncoder&&!Le().rh()){var u=new TextEncoder;return ke(u.encode(o))}o=encodeURIComponent(o),o=unescape(o),u=new Uint8Array(o.length);for(var f=0;f",""":'"',"'":"'"," ":" ","‎":"‎","‏":"‏"},f=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,m=RegExp(f.source);return o&&m.test(o)?o.replace(f,function(b){return b[1]=="#"?(b=b[2]=="x"||b[2]=="X"?parseInt(b.substring(3),16):parseInt(b.substring(2),10),b>=0&&b<=1114111?String.fromCodePoint(b):""):u[b]||"'"}):o||""}_e("shaka.util.StringUtils",st),st.resetFromCharCode=function(){dr.g=void 0},st.toUTF16=pn,st.toUTF8=Gt,st.fromBytesAutoDetect=Qt,st.fromUTF16=Mt,st.fromUTF8=ut;var dr=new Qe(function(){function o(f){try{var m=new Uint8Array(f);return String.fromCharCode.apply(null,m).length>0}catch{return!1}}for(var u={Oc:65536};u.Oc>0;u={Oc:u.Oc},u.Oc/=2)if(o(u.Oc))return(function(f){return function(m){for(var b="",w=0;w"u"&&at("Could not find LCEVC Library dependencies on this page"),typeof LCEVCdec<"u")this.h=LCEVCdec;else if(typeof LcevcDil<"u")this.h=LcevcDil,this.j=!0,Xt("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{at("Could not find LCEVC Library on this page"),o=!1;break e}typeof this.h.SupportObject>"u"?(at("Could not find LCEVC Library on this page"),o=!1):(this.h.SupportObject.SupportStatus||at(this.h.SupportObject.SupportError),o=typeof this.h<"u"&&typeof libDPIModule<"u"&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}o&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function ui(o,u,f,m){m.type!=="video"||o.o&&!m.baseOriginalId||o.g&&o.g.appendBuffer(u,"video",m.id,-f,!o.o)}function tu(o){o.g&&o.i.classList.add("shaka-hidden")}Go.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Ll(o){return o&&typeof LCEVCdec<"u"?o.codecs=="lvc1":!1}_e("shaka.lcevc.Dec",Go),Go.prototype.release=Go.prototype.release;function jo(o){if($f.has(o))return $f.get(o);var u=i.ManagedMediaSource||i.MediaSource;return u?(u=u.isTypeSupported(o),$f.set(o,u),u):!1}function hc(){var o=i.ManagedSourceBuffer||i.SourceBuffer;return!!o&&!!o.prototype&&!!o.prototype.changeType}function ug(){var o=i.ManagedMediaSource||i.MediaSource;return o&&o.prototype?!!o.prototype.setLiveSeekableRange&&!!o.prototype.clearLiveSeekableRange:!1}var $f=new Map;function nu(){}nu.prototype.extract=function(){},nu.prototype.decode=function(){return[]},nu.prototype.clear=function(){},nu.prototype.getStreams=function(){return[]};function pc(){}pc.prototype.init=function(){},pc.prototype.parse=function(){return[]};function np(){}l=np.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},_e("shaka.media.IClosedCaptionParser",np);function Ns(o){this.h=new Map,this.i=0,this.j=new pc,(o=sd(o.toLowerCase()))&&(this.j=o()),this.g=new nu,(o=Ou)&&(this.g=o(),this.h.set(this.i,this.g))}l=Ns.prototype,l.init=function(o,u,f){if(u=u===void 0?!1:u,f=f===void 0?-1:f,f!=-1&&this.i!=f){u=f;var m=this.h.get(u);this.h.set(this.i,this.g),m?this.g=m:((m=Ou)&&(this.g=m()),this.h.set(u,this.g))}else u||this.Nd();this.j.init(o),f!=-1&&(this.i=f)},l.xf=function(o){o=this.j.parse(o),o=_(o);for(var u=o.next();!u.done;u=o.next()){u=u.value;var f=Ae(u.packet);f.length>0&&this.g.extract(f,u.pts)}return this.g.decode()},l.Nd=function(){this.g.clear()},l.remove=function(o){o=o===void 0?[]:o,o=new Set(o);for(var u=_(this.h.keys()),f=u.next();!f.done;f=u.next())if(f=f.value,!o.has(f)){var m=this.h.get(f);m&&m.clear(),this.h.delete(f)}},l.Vf=function(){return this.g.getStreams()};function Of(o,u){jd.set(o,u)}function sd(o){return jd.get(o)}_e("shaka.media.ClosedCaptionParser",Ns),Ns.findDecoder=function(){return Ou},Ns.unregisterDecoder=function(){Ou=null},Ns.registerDecoder=function(o){Ou=o},Ns.findParser=sd,Ns.unregisterParser=function(o){jd.delete(o)},Ns.registerParser=Of;var jd=new Map,Ou=null;function nl(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Es,this.scroll=rp}_e("shaka.text.CueRegion",nl);var Es=1;nl.units={PX:0,PERCENTAGE:Es,LINES:2};var rp="";nl.scrollMode={NONE:rp,UP:"up"};function vc(o){this.h=o||"",this.g=0}function mc(o){Bu(o,/[ \t]+/gm)}function Bu(o,u){return u.lastIndex=o.g,u=u.exec(o.h),u=u==null?null:{position:u.index,length:u[0].length,results:u},o.g==o.h.length||u==null||u.position!=o.g?null:(o.g+=u.length,u.results)}function gc(o){return o.g==o.h.length?null:(o=Bu(o,/[^ \t\n]*/gm))?o[0]:null}function Bf(o){if(o=Bu(o,Zt),o==null)return null;var u=Number(o[2]),f=Number(o[3]);return u>59||f>59?null:(Number(o[6])||0)/1e3+f+u*60+(Number(o[1])||0)*3600}function At(o){return o?Bf(new vc(o)):null}var Zt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function on(){}function fn(o){function u(m){switch(typeof m){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return m;default:if(!m||ArrayBuffer.isView(m))return m;if(f.has(m))return null;var b=Array.isArray(m);if(m.constructor!=Object&&!b)return null;f.add(m);var w=b?[]:{},A;for(A in m)w[A]=u(m[A]);return b&&(w.length=m.length),w}}var f=new WeakSet;return u(o)}function En(o){var u={},f;for(f in o)u[f]=o[f];return u}function Zn(o){if(Array.isArray(o)){for(var u=[],f=0;f1||C.length==1&&C[0]!="")&&C.pop(),b&&A==m.length&&C.push("")):(C.push(R),b=!0)}m=C.join("/")}}return f?u.Sb=m:f=o.g.toString()!=="",f?Xn(u,o.g.clone()):f=!!o.Rc,f&&(u.Rc=o.Rc),u},l.clone=function(){return new Yt(this)};function sn(o,u,f){o.bc=f?Cr(u,!0):u,o.bc&&(o.bc=o.bc.replace(/:$/,""))}function An(o,u,f){o.Db=f?Cr(u,!0):u}function un(o,u){if(u){if(u=Number(u),isNaN(u)||u<0)throw Error("Bad port number "+u);o.Cd=u}else o.Cd=null}function Xn(o,u,f){u instanceof re?o.g=u:(f||(u=ro(u,Ur)),o.g=new re(u))}function Cr(o,u){return o?u?decodeURI(o):decodeURIComponent(o):""}function ro(o,u,f){return o!=null?(o=encodeURI(o).replace(u,$t),f&&(o=o.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),o):null}function $t(o){return o=o.charCodeAt(0),"%"+(o>>4&15).toString(16)+(o&15).toString(16)}var bn=/[#\/\?@]/g,kr=/[#\?:]/g,ar=/[#\?]/g,Ur=/[#\?@]/g,se=/#/g;function re(o){this.g=o||null}function ne(o){if(!o.eb&&(o.eb=new Map,o.Sd=0,o.g))for(var u=o.g.split("&"),f=0;f=0){var C=u[f].substring(0,m);b=u[f].substring(m+1)}else C=u[f];C=decodeURIComponent(C),b=b||"",o.add(C,decodeURIComponent(b))}}l=re.prototype,l.eb=null,l.Sd=null;function J(o){return ne(o),o.Sd}l.add=function(o,u){ne(this),this.g=null;var f=this.eb.has(o)?this.eb.get(o):null;return f||this.eb.set(o,f=[]),f.push(u),this.Sd++,this},l.set=function(o,u){return ne(this),this.g=null,this.eb.has(o)?this.eb.set(o,[u]):this.add(o,u),this},l.get=function(o){return ne(this),this.eb.get(o)||[]},l.toString=function(){if(this.g)return this.g;if(!this.eb||!this.eb.size)return"";for(var o=[],u=_(this.eb.keys()),f=u.next();!f.done;f=u.next()){var m=f.value;f=encodeURIComponent(m),m=this.eb.get(m);for(var b=0;b=f+2&&(o[f]&224)==192&&(o[f+1]&192)==128?(m=(o[f]&31)<<6|o[f+1]&63,f+=1):o.length>=f+3&&(o[f]&240)==224&&(o[f+1]&192)==128&&(o[f+2]&192)==128?(m=(o[f]&15)<<12|(o[f+1]&63)<<6|o[f+2]&63,f+=2):o.length>=f+4&&(o[f]&241)==240&&(o[f+1]&192)==128&&(o[f+2]&192)==128&&(o[f+3]&192)==128&&(m=(o[f]&7)<<18|(o[f+1]&63)<<12|(o[f+2]&63)<<6|o[f+3]&63,f+=3),m<=65535)u+=String.fromCharCode(m);else{m-=65536;var b=m&1023;u+=String.fromCharCode(55296+(m>>10)),u+=String.fromCharCode(56320+b)}}return u}function Mt(o,u,f){if(!o)return"";if(!f&&o.byteLength%2!=0)throw new De(2,2,2004);f=Math.floor(o.byteLength/2);var m=new Uint16Array(f);o=ot(o);for(var b=0;b=9&&f[m]<=126}if(!o)return"";var f=Te(o);if(f[0]==239&&f[1]==187&&f[2]==191)return ut(f);if(f[0]==254&&f[1]==255)return Mt(f.subarray(2),!1);if(f[0]==255&&f[1]==254)return Mt(f.subarray(2),!0);if(f[0]==0&&f[2]==0)return Mt(o,!1);if(f[1]==0&&f[3]==0)return Mt(o,!0);if(u(0)&&u(1)&&u(2)&&u(3))return ut(o);throw new De(2,2,2003)}function Kt(o){if(i.TextEncoder&&!Le().rh()){var u=new TextEncoder;return we(u.encode(o))}o=encodeURIComponent(o),o=unescape(o),u=new Uint8Array(o.length);for(var f=0;f",""":'"',"'":"'"," ":" ","‎":"‎","‏":"‏"},f=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,m=RegExp(f.source);return o&&m.test(o)?o.replace(f,function(b){return b[1]=="#"?(b=b[2]=="x"||b[2]=="X"?parseInt(b.substring(3),16):parseInt(b.substring(2),10),b>=0&&b<=1114111?String.fromCodePoint(b):""):u[b]||"'"}):o||""}_e("shaka.util.StringUtils",st),st.resetFromCharCode=function(){dr.g=void 0},st.toUTF16=pn,st.toUTF8=Kt,st.fromBytesAutoDetect=Qt,st.fromUTF16=Mt,st.fromUTF8=ut;var dr=new Qe(function(){function o(f){try{var m=new Uint8Array(f);return String.fromCharCode.apply(null,m).length>0}catch{return!1}}for(var u={Oc:65536};u.Oc>0;u={Oc:u.Oc},u.Oc/=2)if(o(u.Oc))return(function(f){return function(m){for(var b="",C=0;C"u"&&at("Could not find LCEVC Library dependencies on this page"),typeof LCEVCdec<"u")this.h=LCEVCdec;else if(typeof LcevcDil<"u")this.h=LcevcDil,this.j=!0,Xt("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{at("Could not find LCEVC Library on this page"),o=!1;break e}typeof this.h.SupportObject>"u"?(at("Could not find LCEVC Library on this page"),o=!1):(this.h.SupportObject.SupportStatus||at(this.h.SupportObject.SupportError),o=typeof this.h<"u"&&typeof libDPIModule<"u"&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}o&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function ci(o,u,f,m){m.type!=="video"||o.o&&!m.baseOriginalId||o.g&&o.g.appendBuffer(u,"video",m.id,-f,!o.o)}function tu(o){o.g&&o.i.classList.add("shaka-hidden")}qo.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Ll(o){return o&&typeof LCEVCdec<"u"?o.codecs=="lvc1":!1}_e("shaka.lcevc.Dec",qo),qo.prototype.release=qo.prototype.release;function jo(o){if(Of.has(o))return Of.get(o);var u=i.ManagedMediaSource||i.MediaSource;return u?(u=u.isTypeSupported(o),Of.set(o,u),u):!1}function vc(){var o=i.ManagedSourceBuffer||i.SourceBuffer;return!!o&&!!o.prototype&&!!o.prototype.changeType}function cg(){var o=i.ManagedMediaSource||i.MediaSource;return o&&o.prototype?!!o.prototype.setLiveSeekableRange&&!!o.prototype.clearLiveSeekableRange:!1}var Of=new Map;function nu(){}nu.prototype.extract=function(){},nu.prototype.decode=function(){return[]},nu.prototype.clear=function(){},nu.prototype.getStreams=function(){return[]};function mc(){}mc.prototype.init=function(){},mc.prototype.parse=function(){return[]};function ip(){}l=ip.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},_e("shaka.media.IClosedCaptionParser",ip);function Ns(o){this.h=new Map,this.i=0,this.j=new mc,(o=sd(o.toLowerCase()))&&(this.j=o()),this.g=new nu,(o=Bu)&&(this.g=o(),this.h.set(this.i,this.g))}l=Ns.prototype,l.init=function(o,u,f){if(u=u===void 0?!1:u,f=f===void 0?-1:f,f!=-1&&this.i!=f){u=f;var m=this.h.get(u);this.h.set(this.i,this.g),m?this.g=m:((m=Bu)&&(this.g=m()),this.h.set(u,this.g))}else u||this.Nd();this.j.init(o),f!=-1&&(this.i=f)},l.xf=function(o){o=this.j.parse(o),o=_(o);for(var u=o.next();!u.done;u=o.next()){u=u.value;var f=Te(u.packet);f.length>0&&this.g.extract(f,u.pts)}return this.g.decode()},l.Nd=function(){this.g.clear()},l.remove=function(o){o=o===void 0?[]:o,o=new Set(o);for(var u=_(this.h.keys()),f=u.next();!f.done;f=u.next())if(f=f.value,!o.has(f)){var m=this.h.get(f);m&&m.clear(),this.h.delete(f)}},l.Vf=function(){return this.g.getStreams()};function $f(o,u){jd.set(o,u)}function sd(o){return jd.get(o)}_e("shaka.media.ClosedCaptionParser",Ns),Ns.findDecoder=function(){return Bu},Ns.unregisterDecoder=function(){Bu=null},Ns.registerDecoder=function(o){Bu=o},Ns.findParser=sd,Ns.unregisterParser=function(o){jd.delete(o)},Ns.registerParser=$f;var jd=new Map,Bu=null;function nl(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ts,this.scroll=op}_e("shaka.text.CueRegion",nl);var Ts=1;nl.units={PX:0,PERCENTAGE:Ts,LINES:2};var op="";nl.scrollMode={NONE:op,UP:"up"};function gc(o){this.h=o||"",this.g=0}function yc(o){Nu(o,/[ \t]+/gm)}function Nu(o,u){return u.lastIndex=o.g,u=u.exec(o.h),u=u==null?null:{position:u.index,length:u[0].length,results:u},o.g==o.h.length||u==null||u.position!=o.g?null:(o.g+=u.length,u.results)}function bc(o){return o.g==o.h.length?null:(o=Nu(o,/[^ \t\n]*/gm))?o[0]:null}function Bf(o){if(o=Nu(o,Zt),o==null)return null;var u=Number(o[2]),f=Number(o[3]);return u>59||f>59?null:(Number(o[6])||0)/1e3+f+u*60+(Number(o[1])||0)*3600}function At(o){return o?Bf(new gc(o)):null}var Zt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function on(){}function hn(o){function u(m){switch(typeof m){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return m;default:if(!m||ArrayBuffer.isView(m))return m;if(f.has(m))return null;var b=Array.isArray(m);if(m.constructor!=Object&&!b)return null;f.add(m);var C=b?[]:{},A;for(A in m)C[A]=u(m[A]);return b&&(C.length=m.length),C}}var f=new WeakSet;return u(o)}function En(o){var u={},f;for(f in o)u[f]=o[f];return u}function Zn(o){if(Array.isArray(o)){for(var u=[],f=0;f",b),A=o.substring(A,b);var N=A.indexOf(w);if(N==-1){var V=w.indexOf(".");V>0&&(N=A.indexOf(w.substring(0,V)))}if(N==-1)throw w=o.substring(0,b).split(` +*/function Er(o,u){var f=f===void 0?!1:f;return o=Qt(o),di(o,u,f)}function di(o,u,f){return o=As(o,f===void 0?!1:f),!u&&o.length?o[0]:(o=o.find(function(m){return u.split(",").includes(m.tagName)}))?o:null}function Zi(o){return AI.has(o)?AI.get(o):""}function As(o,u){function f(C,A){A=A===void 0?!1:A;for(var R=[];o[b];)if(o.charCodeAt(b)==60){if(o.charCodeAt(b+1)===47){A=b+2,b=o.indexOf(">",b),A=o.substring(A,b);var N=A.indexOf(C);if(N==-1){var V=C.indexOf(".");V>0&&(N=A.indexOf(C.substring(0,V)))}if(N==-1)throw C=o.substring(0,b).split(` `),Error(`Unexpected close tag -Line: `+(w.length-1)+` -Column: `+(w[w.length-1].length+1)+` -Char: `+o[b]);b+1&&(b+=1);break}else if(o.charCodeAt(b+1)===33){if(o.charCodeAt(b+2)==45){for(;b!==-1&&(o.charCodeAt(b)!==62||o.charCodeAt(b-1)!=45||o.charCodeAt(b-2)!=45||b==-1);)b=o.indexOf(">",b+1);b===-1&&(b=o.length)}else if(o.charCodeAt(b+2)===91&&o.charCodeAt(b+8)===91&&o.substr(b+3,5).toLowerCase()==="cdata"){N=o.indexOf("]]>",b),N==-1?(R.push(o.substr(b+9)),b=o.length):(R.push(o.substring(b+9,N)),b=N+3);continue}b++;continue}e:{V=A,b++;var G=m(),Z={};for(N=[];o.charCodeAt(b)!==62&&o[b];){var le=o.charCodeAt(b);if(le>64&&le<91||le>96&&le<123){le=m();for(var he=o.charCodeAt(b);he&&he!==39&&he!==34&&!(he>64&&he<91||he>96&&he<123)&&he!==62;)b++,he=o.charCodeAt(b);var pe=b+1;if(b=o.indexOf(o[b],pe),pe=o.slice(pe,b),he===39||he===34){if(b===-1){if(V={tagName:G,attributes:Z,children:N,parent:null},u)for(G=0;G",b+1);b===-1&&(b=o.length)}else if(o.charCodeAt(b+2)===91&&o.charCodeAt(b+8)===91&&o.substr(b+3,5).toLowerCase()==="cdata"){N=o.indexOf("]]>",b),N==-1?(R.push(o.substr(b+9)),b=o.length):(R.push(o.substring(b+9,N)),b=N+3);continue}b++;continue}e:{V=A,b++;var G=m(),Z={};for(N=[];o.charCodeAt(b)!==62&&o[b];){var le=o.charCodeAt(b);if(le>64&&le<91||le>96&&le<123){le=m();for(var he=o.charCodeAt(b);he&&he!==39&&he!==34&&!(he>64&&he<91||he>96&&he<123)&&he!==62;)b++,he=o.charCodeAt(b);var pe=b+1;if(b=o.indexOf(o[b],pe),pe=o.slice(pe,b),he===39||he===34){if(b===-1){if(V={tagName:G,attributes:Z,children:N,parent:null},u)for(G=0;G0&&R.push(N):(R.length&&N.length==1&&N[0]==` -`||N.trim().length>0)&&R.push(N),b++;return R}function m(){for(var w=b;`\r - >/= `.indexOf(o[b])===-1&&o[b];)b++;return o.slice(w,b)}var b=0;return f("")}function Nu(o){return typeof o=="string"}function yc(o){var u=[];if(!o.children)return[];o=_(o.children);for(var f=o.next();!f.done;f=o.next())f=f.value,typeof f!="string"&&u.push(f);return u}function Nr(o,u){var f=[];if(!o.children)return[];o=_(o.children);for(var m=o.next();!m.done;m=o.next())m=m.value,m.tagName===u&&f.push(m);return f}function _r(o){return typeof o=="string"?ln(o):(o=o.children.reduce(function(u,f){return typeof f=="string"?u+f:u},""),o===""?null:ln(o))}function mo(o){return Array.from(o.children).every(function(u){return typeof u=="string"})?((o=_r(o))&&(o=o.trim()),o):null}function Da(o,u,f){if(f=f===void 0?[]:f,o.tagName===u&&f.push(o),o.children){o=_(o.children);for(var m=o.next();!m.done;m=o.next())Da(m.value,u,f)}return f}function ai(o,u){return o=Nr(o,u),o.length!=1?null:o[0]}function Pa(o,u,f){return o=PS(o,u,f),o.length!=1?null:o[0]}function Mn(o,u,f,m){m=m===void 0?null:m;var b=null;return o=o.attributes[u],o!=null&&(b=f(o)),b??m}function Fu(o,u,f){return u=Zi(u),o.attributes[u+":"+f]||null}function PS(o,u,f){var m=Zi(u);if(u=[],o.children)for(f=m?m+":"+f:f,o=_(o.children),m=o.next();!m.done;m=o.next())(m=m.value)&&m.tagName===f&&u.push(m);return u}function Fs(o,u,f){u=_(u);for(var m=u.next();!m.done;m=u.next())if(m=Fu(o,m.value,f))return m;return null}function Nf(o){return o?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(o)&&(o+="Z"),o=Date.parse(o),isNaN(o)?null:o/1e3):null}function Vd(o){return!o||(o=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").exec(o),!o)?null:(o=31536e3*Number(o[1]||null)+2592e3*Number(o[2]||null)+86400*Number(o[3]||null)+3600*Number(o[4]||null)+60*Number(o[5]||null)+Number(o[6]||null),isFinite(o)?o:null)}function RS(o){var u=/([0-9]+)-([0-9]+)/.exec(o);return!u||(o=Number(u[1]),!isFinite(o))?null:(u=Number(u[2]),isFinite(u)?{start:o,end:u}:null)}function js(o){return o=Number(o),o%1===0?o:null}function zd(o){return o=Number(o),o%1===0&&o>0?o:null}function Vs(o){return o=Number(o),o%1===0&&o>=0?o:null}function MS(o){return o=Number(o),isNaN(o)?null:o}function $S(o){return o?o.toLowerCase()==="true":!1}function p_e(o){var u,f=(u=o.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(o);return isNaN(f)?null:f}function OS(o){var u=[];o=ln(o).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),o=_(o);for(var f=o.next();!f.done;f=o.next()){f=f.value;var m=f.match(/^([\w]+)/);if(m){var b=f.match(/(@id='(.*?)')/),w=f.match(/(@t='(\d+)')/),A=f.match(/(@n='(\d+)')/),R=f.match(/\[(\d+)\]/);u.push({name:m[0],id:b?b[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:w?Number(w[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:A?Number(A[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:R?Number(R[1])-1:null,Cc:f.split("/@")[1]||null})}else f.startsWith("@")&&u.length&&(u[u.length-1].Cc=f.slice(1))}return u}function YK(o,u){var f=OS(u.attributes.sel||"");if(f.length){var m=f[f.length-1],b=u.attributes.pos||null;f=m.position,f==null&&(m.t!==null&&(f=XK(o,"t",m.t)),m.n!==null&&(f=XK(o,"n",m.n))),f===null?f=b==="prepend"?0:o.length:b==="prepend"?--f:b==="after"&&++f,b=u.tagName,(m=m.Cc)&&o[f]?ZK(o[f],b,m,mo(u)||""):(b!=="remove"&&b!=="replace"||o.splice(f,1),b!=="add"&&b!=="replace"||o.splice.apply(o,[f,0].concat(T(u.children))))}}function XK(o,u,f){var m=0;o=_(o);for(var b=o.next();!b.done;b=o.next()){if(Number(b.value.attributes[u])===f)return m;m++}return null}function ZK(o,u,f,m){u==="remove"?delete o.attributes[f]:(u==="add"||u==="replace")&&(o.attributes[f]=m)}function JK(o){var u="",f=o.tagName.split(":");f.length>0&&(u=f[0],u=TI.has(u)?TI.get(u):""),u=document.createElementNS(u,o.tagName);for(var m in o.attributes)u.setAttribute(m,o.attributes[m]);for(o=_(o.children),m=o.next();!m.done;m=o.next())m=m.value,f=void 0,typeof m=="string"?f=new Text(m):f=JK(m),u.appendChild(f);return u}function wI(o){if(!o)return null;var u={tagName:o.tagName,attributes:En(o.attributes),children:[],parent:null};o=_(o.children);for(var f=o.next();!f.done;f=o.next())f=f.value,typeof f=="string"||(f=wI(f),f.parent=u),u.children.push(f);return u}var EI=new Map,TI=new Map;function $i(o,u,f){this.startTime=o,this.endTime=u,this.payload=f,this.region=new nl,this.position=null,this.positionAlign=FS,this.size=0,this.textAlign=Ud,this.direction=A3,this.writingMode=G0,this.lineInterpretation=I3,this.line=null,this.lineHeight="",this.lineAlign=K0,this.displayAlign=T3,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=oq,this.fontStyle=LI,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textCombineUpright="",this.textDecoration=[],this.textStrokeWidth=this.textStrokeColor=this.textShadow="",this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.rubyTag=null,this.cellResolution={columns:32,rows:15}}function QK(o,u){return o=new $i(o,u,""),o.lineBreak=!0,o}$i.prototype.clone=function(){var o=new $i(0,0,""),u;for(u in this)o[u]=this[u],Array.isArray(o[u])&&(o[u]=o[u].slice());return o};function BS(o,u){if(o.payload!=u.payload||!(Math.abs(o.startTime-u.startTime)<.001&&Math.abs(o.endTime-u.endTime)<.001))return!1;for(var f in o)if(f!="startTime"&&f!="endTime"&&f!="payload"){if(f=="nestedCues"){if(!vt(o.nestedCues,u.nestedCues,BS))return!1}else if(f=="region"||f=="cellResolution"){for(var m in o[f])if(o[f][m]!=u[f][m])return!1}else if(Array.isArray(o[f])){if(!vt(o[f],u[f]))return!1}else if(o[f]!=u[f])return!1}return!0}function NS(o,u){u=u===void 0?new Map:u;var f=o.payload;if(f.includes("<")){u.size===0&&eq(u);var m=f;f=[];for(var b=-1,w=0;w"&&b>0&&(b=m.substr(b,w-b),b.match(m_e)&&f.push(b),b=-1);for(f=_(f),w=f.next();!w.done;w=f.next())w=w.value,m=m.replace("<"+w+">",'
'),m+="
";e:{w=m,b=[];var A=-1;f="",m=!1;for(var R=0;R",R);if(N===-1){f=w;break e}if((N=w.substring(R+1,N))&&N=="v"){m=!0;var V=null;if(b.length&&(V=b[b.length-1]),V){if(V===N)f+="/"+N+">";else{if(!V.startsWith("v")){f+=w[R];continue}f+="/"+V+">"}R+=N.length+1}else f+=w[R]}else f+=w[R]}else w[R]==="<"?(A=R+1,w[A]!="v"&&(A=-1)):w[R]===">"&&A>0&&(b.push(w.substr(A,R-A)),A=-1),f+=w[R];for(w=_(b),b=w.next();!b.done;b=w.next())b=b.value,A=b.replace(" ",".voice-"),f=f.replace("<"+b+">","<"+A+">"),f=f.replace("",""),m||(f+="")}f=v_e(f),o.payload="",m=""+f.replace(/\n/g,"
")+"
";try{var G=ci(m,"span")}catch{}if(G)if(G=G.children,G.length!=1||G[0].tagName)for(G=_(G),f=G.next();!f.done;f=G.next())tq(f.value,o,u);else o.payload=ln(f);else o.payload=ln(f)}else o.payload=ln(f)}function eq(o){for(var u=_(Object.entries(rq)),f=u.next();!f.done;f=u.next()){var m=_(f.value);f=m.next().value,m=m.next().value;var b=new $i(0,0,"");b.color=m,o.set("."+f,b)}for(u=_(Object.entries(iq)),f=u.next();!f.done;f=u.next())m=_(f.value),f=m.next().value,m=m.next().value,b=new $i(0,0,""),b.backgroundColor=m,o.set("."+f,b)}function v_e(o){var u={"< ":""," >":" >"},f=/(< +>|<\s|\s>)/g,m=RegExp(f.source);return o&&m.test(o)?o.replace(f,function(b){return u[b]||""}):o||""}function tq(o,u,f){var m=u.clone();if(m.nestedCues=[],m.payload="",m.rubyTag="",m.line=null,m.region=new nl,m.position=null,m.size=0,m.textAlign=Ud,o.tagName)for(var b=_(o.tagName.split(/(?=[ .])+/g)),w=b.next();!w.done;w=b.next()){var A=w=w.value;if(A.startsWith(".voice-")){var R=A.split("-").pop();A='v[voice="'+R+'"]',f.has(A)||(A="v[voice="+R+"]")}switch(f.has(A)&&(R=m,A=f.get(A))&&(R.backgroundColor=E3(A.backgroundColor,R.backgroundColor),R.color=E3(A.color,R.color),R.fontFamily=E3(A.fontFamily,R.fontFamily),R.fontSize=E3(A.fontSize,R.fontSize),R.textShadow=E3(A.textShadow,R.textShadow),R.fontWeight=A.fontWeight,R.fontStyle=A.fontStyle,R.opacity=A.opacity,R.rubyTag=A.rubyTag,R.textCombineUpright=A.textCombineUpright,R.wrapLine=A.wrapLine),w){case"br":m=QK(m.startTime,m.endTime),u.nestedCues.push(m);return;case"b":m.fontWeight=cg;break;case"i":m.fontStyle=dg;break;case"u":m.textDecoration.push(Ff);break;case"font":(w=o.attributes.color)&&(m.color=w);break;case"div":if(w=o.attributes.time,!w)break;(w=At(w))&&(m.startTime=w);break;case"ruby":case"rp":case"rt":m.rubyTag=w}}if(b=o.children,Nu(o)||b.length==1&&Nu(b[0]))for(f=_r(o).split(` -`),o=!0,f=_(f),b=f.next();!b.done;b=f.next())b=b.value,o||(o=QK(m.startTime,m.endTime),u.nestedCues.push(o)),b.length>0&&(o=m.clone(),o.payload=ln(b),u.nestedCues.push(o)),o=!1;else for(u.nestedCues.push(m),u=_(b),o=u.next();!o.done;o=u.next())tq(o.value,m,f)}function E3(o,u){return o&&o.length>0?o:u}_e("shaka.text.Cue",$i),$i.parseCuePayload=NS,$i.equal=BS,$i.prototype.clone=$i.prototype.clone;var FS="auto";$i.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:FS};var Ud="center",AI={LEFT:"left",RIGHT:"right",CENTER:Ud,START:"start",END:"end"};$i.textAlign=AI;var T3="after",nq={BEFORE:"before",CENTER:"center",AFTER:T3};$i.displayAlign=nq;var A3="ltr";$i.direction={HORIZONTAL_LEFT_TO_RIGHT:A3,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var G0="horizontal-tb";$i.writingMode={HORIZONTAL_TOP_TO_BOTTOM:G0,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var I3=0;$i.lineInterpretation={LINE_NUMBER:I3,PERCENTAGE:1};var K0="start",II={CENTER:"center",START:K0,END:"end"};$i.lineAlign=II;var rq={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};$i.defaultTextColor=rq;var iq={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};$i.defaultTextBackgroundColor=iq;var oq=400,cg=700;$i.fontWeight={NORMAL:oq,BOLD:cg};var LI="normal",dg="italic",sq={NORMAL:LI,ITALIC:dg,OBLIQUE:"oblique"};$i.fontStyle=sq;var Ff="underline";$i.textDecoration={UNDERLINE:Ff,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var m_e=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function ip(){}ip.prototype.destroy=function(){};function jf(o,u,f){DI.set(o.toLowerCase().split(";")[0]+"-"+f,{priority:f,yf:u})}function fg(o,u){for(var f=o.toLowerCase().split(";")[0],m=_([aq,RI,PI,op]),b=m.next();!b.done;b=m.next())if(b=DI.get(f+"-"+b.value)){var w=b.yf(),A=w.isSupported(o,u);if(w.destroy(),A)return b.yf}return null}_e("shaka.transmuxer.TransmuxerEngine",ip),ip.findTransmuxer=fg,ip.unregisterTransmuxer=function(o,u){DI.delete(o.toLowerCase().split(";")[0]+"-"+u)},ip.registerTransmuxer=jf,ip.prototype.destroy=ip.prototype.destroy;var DI=new Map,op=1,PI=2,RI=3,aq=4;ip.PluginPriority={FALLBACK:op,PREFERRED_SECONDARY:PI,PREFERRED:RI,APPLICATION:aq};function MI(){}function ko(o,u){var f=o;return u&&!Vf.includes(o)&&(f+='; codecs="'+u+'"'),f}function jS(o,u){return u&&(o+='; codecs="'+u+'"'),o}function $I(o,u,f){var m=ko(o,u);return u=jS(o,u),fg(u)?(o=fg(u))?(o=o(),f=o.convertCodecs(f,u),o.destroy()):f=u:f=o!="video/mp2t"&&f=="audio"?m.replace("video","audio"):m,f}function L3(o){return o.split(";")[0].split("/")[1]}function Qs(o){var u=lq(o);switch(o=u[0].toLowerCase(),u=u[1].toLowerCase(),!0){case(o==="mp4a"&&u==="69"):case(o==="mp4a"&&u==="6b"):case(o==="mp4a"&&u==="40.34"):return"mp3";case(o==="mp4a"&&u==="66"):case(o==="mp4a"&&u==="67"):case(o==="mp4a"&&u==="68"):case(o==="mp4a"&&u==="40.2"):case(o==="mp4a"&&u==="40.02"):case(o==="mp4a"&&u==="40.5"):case(o==="mp4a"&&u==="40.05"):case(o==="mp4a"&&u==="40.29"):case(o==="mp4a"&&u==="40.42"):return"aac";case(o==="mp4a"&&u==="a5"):case o==="ac3":case o==="ac-3":return"ac-3";case(o==="mp4a"&&u==="a6"):case o==="eac3":case o==="ec-3":return"ec-3";case o==="ac-4":return"ac-4";case(o==="mp4a"&&u==="b2"):return"dtsx";case(o==="mp4a"&&u==="a9"):return"dtsc";case o==="vp09":case o==="vp9":return"vp9";case o==="avc1":case o==="avc3":return"avc";case o==="hvc1":case o==="hev1":return"hevc";case o==="vvc1":case o==="vvi1":return"vvc";case o==="dvh1":case o==="dvhe":return u&&u.startsWith("05")?"dovi-p5":"dovi-hevc";case o==="dvav":case o==="dva1":return"dovi-avc";case o==="dav1":return"dovi-av1";case o==="dvc1":case o==="dvi1":return"dovi-vvc"}return o}function sp(o){var u=[];o=_(o.split(","));for(var f=o.next();!f.done;f=o.next())f=lq(f.value),u.push(f[0]);return u.sort().join(",")}function Dl(o){return o.split(";")[0]}function rl(o){return o=o.split(/ *; */),o.shift(),(o=o.find(function(u){return u.startsWith("codecs=")}))?o.split("=")[1].replace(/^"|"$/g,""):""}function D3(o){return o==="application/x-mpegurl"||o==="application/vnd.apple.mpegurl"}function lq(o){o=o.split(".");var u=o[0];return o.shift(),[u,o.join(".")]}_e("shaka.util.MimeUtils",MI),MI.getFullTypeWithAllCodecs=jS,MI.getFullType=ko,new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var Vf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function zf(o){this.i=null,this.l=o,this.C=!1,this.m=this.u=0,this.o=1/0,this.h=this.g=null,this.F="",this.B=function(){},this.j=new Map}function zs(o,u){M3.set(o,u)}function P3(o){return M3.get(o)}function R3(o){return M3.has(o)?!0:o=="application/cea-608"||o=="application/cea-708"?!!Ou:!1}zf.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function g_e(o,u,f,m,b){var w,A,R,N,V,G,Z;return re(function(le){if(le.g==1)return L(le,Promise.resolve(),2);if(!o.i||!o.l)return le.return();if(f==null||m==null)return o.i.parseInit(Ae(u)),le.return();for(w=o.C?f:o.u,A={periodStart:o.u,segmentStart:f,segmentEnd:m,vttOffset:w},R=o.i.parseMedia(Ae(u),A,b,[]),N=_(R),V=N.next();!V.done;V=N.next())G=V.value,o.B(G,b||null,A);Z=R.filter(function(he){return he.startTime>=o.m&&he.startTime=u)return b.return();f&&__e(m,o,u),m.l&&m.l.remove(o,u)&&m.g!=null&&(u<=m.g||o>=m.h||(o<=m.g&&u>=m.h?m.g=m.h=null:o<=m.g&&um.g&&u>=m.h&&(m.h=o)),dq(m)),B(b)})};function y_e(o,u,f){o.m=u,o.o=f}function uq(o,u,f){o.F=u,(u=o.j.get(u))&&(u=u.filter(function(m){return m.endTime<=f}),u.length&&o.l.append(u))}function cq(o,u,f){u.startTime+=f,u.endTime+=f,u=_(u.nestedCues);for(var m=u.next();!m.done;m=u.next())cq(o,m.value,f)}function b_e(o,u,f){var m=new Map;u=_(u);for(var b=u.next();!b.done;b=u.next()){var w=b.value;b=w.stream,w=w.cue,m.has(b)||m.set(b,[]),cq(o,w,f),w.startTime>=o.m&&w.startTime=f}),o.j.set(b,w)}}function dq(o){for(var u=1/0,f=-1/0,m=_(o.j.values()),b=m.next();!b.done;b=m.next()){b=_(b.value);for(var w=b.next();!w.done;w=b.next())w=w.value,u=Math.min(u,w.startTime),f=Math.max(f,w.endTime)}u!==1/0&&f!==-1/0&&(o.g=o.g==null?Math.max(u,o.m):Math.min(o.g,Math.max(u,o.m)),o.h=Math.max(o.h,Math.min(f,o.o)))}_e("shaka.text.TextEngine",zf),zf.prototype.destroy=zf.prototype.destroy,zf.findParser=P3,zf.unregisterParser=function(o){M3.delete(o)},zf.registerParser=zs;var M3=new Map;function $3(o){this.h=o,this.g=null}$3.prototype.ia=function(o){var u=this;this.stop();var f=!0,m=null;return this.g=function(){i.clearTimeout(m),f=!1},m=i.setTimeout(function(){f&&u.h()},o*1e3),this},$3.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function mr(o){this.h=o,this.g=null}mr.prototype.Jb=function(){return this.stop(),this.h(),this},mr.prototype.ia=function(o){var u=this;return this.stop(),this.g=new $3(function(){u.h()}).ia(o),this},mr.prototype.Ea=function(o){var u=this;return this.stop(),this.g=new $3(function(){u.g.ia(o),u.h()}).ia(o),this},mr.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},_e("shaka.util.Timer",mr),mr.prototype.stop=mr.prototype.stop,mr.prototype.tickEvery=mr.prototype.Ea,mr.prototype.tickAfter=mr.prototype.ia,mr.prototype.tickNow=mr.prototype.Jb;function S_e(o,u){return o.concat(u)}function k_e(){}function ap(o){return o!=null}function VS(o,u){return Promise.race([u,new Promise(function(f,m){new mr(m).ia(o)})])}function bc(){}function hg(o,u){return o=Xr(o),u=Xr(u),o.split("-")[0]==u.split("-")[0]}function O3(o,u){return o=Xr(o),u=Xr(u),o=o.split("-"),u=u.split("-"),o[0]==u[0]&&o.length==1&&u.length==2}function OI(o,u){return o=Xr(o),u=Xr(u),o=o.split("-"),u=u.split("-"),o.length==2&&u.length==2&&o[0]==u[0]}function Xr(o){o=_(o.split("-x-"));var u=o.next().value;u=u===void 0?"":u,o=o.next().value,o=o===void 0?"":o;var f=_(u.split("-"));return u=f.next().value,u=u===void 0?"":u,f=f.next().value,f=f===void 0?"":f,o=o?"x-"+o:"",u=u.toLowerCase(),u=fq.get(u)||u,f=f.toUpperCase(),(f?u+"-"+f:u)+(o?"-"+o:"")}function q0(o,u){return o=Xr(o),u=Xr(u),u==o?4:O3(u,o)?3:OI(u,o)?2:O3(o,u)?1:0}function zS(o){var u=o.indexOf("-");return o=u>=0?o.substring(0,u):o,o=o.toLowerCase(),o=fq.get(o)||o}function BI(o){return o.language?Xr(o.language):o.audio&&o.audio.language?Xr(o.audio.language):o.video&&o.video.language?Xr(o.video.language):"und"}function US(o,u){o=Xr(o);var f=new Set;u=_(u);for(var m=u.next();!m.done;m=u.next())f.add(Xr(m.value));for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,m==o)return m;for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,O3(m,o))return m;for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,OI(m,o))return m;for(f=_(f),u=f.next();!u.done;u=f.next())if(u=u.value,O3(o,u))return u;return null}_e("shaka.util.LanguageUtils",bc),bc.findClosestLocale=US,bc.getLocaleForVariant=BI,bc.getLocaleForText=function(o){return Xr(o.language||"und")},bc.getBase=zS,bc.relatedness=q0,bc.areSiblings=function(o,u){var f=zS(o),m=zS(u);return o!=f&&u!=m&&f==m},bc.normalize=Xr,bc.isSiblingOf=OI,bc.isParentOf=O3,bc.areLanguageCompatible=hg,bc.areLocaleCompatible=function(o,u){return o=Xr(o),u=Xr(u),o==u};var fq=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function hq(){}function pq(o,u,f,m,b){function w(je){var Be=String(je.width||"")+String(je.height||"")+String(Math.round(je.frameRate||0))+(je.hdr||"")+je.fastSwitching;return je.dependencyStream&&(Be+=je.dependencyStream.baseOriginalId||""),je.roles&&(Be+=je.roles.sort().join("_")),Be}function A(je){var Be=je.language+(je.channelsCount||0)+(je.audioSamplingRate||0)+je.roles.join(",")+je.label+je.groupId+je.fastSwitching;return je.dependencyStream&&(Be+=je.dependencyStream.baseOriginalId||""),Be}if(b.length){var R=o.textStreams;b=_(b);for(var N=b.next(),V={};!N.done;V={Bh:void 0},N=b.next())if(V.Bh=N.value,N=R.filter((function(je){return function(Be){return!!(Be.codecs.startsWith(je.Bh)||Be.mimeType.startsWith(je.Bh))}})(V)),N.length){R=N;break}o.textStreams=R}if(R=o.variants,(u.length||f.length)&&(R=x_e(R,u,f)),m.length){for(u=new Fe,f=_(R),R=f.next();!R.done;R=f.next())R=R.value,u.push(String(R.video.width||0),R);var G=[];u.forEach(function(je,Be){je=0;var Je=[];Be=_(Be);for(var lt=Be.next(),St={};!lt.done;St={Tf:void 0},lt=Be.next())St.Tf=lt.value,lt=m.filter((function(it){return function(Xe){return it.Tf.decodingInfos[0][Xe]}})(St)).length,lt>je?(je=lt,Je=[St.Tf]):lt==je&&Je.push(St.Tf);G.push.apply(G,T(Je))}),R=G}for(f=new Set,u=new Set,R=_(R),b=R.next();!b.done;b=R.next())b=b.value,b.audio&&f.add(b.audio),b.video&&u.add(b.video);R=Array.from(f).sort(function(je,Be){return je.bandwidth-Be.bandwidth});var Z=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,N=A(b),V=f.get(N)||[],V.length){var le=V[V.length-1],he=Qs(le.codecs),pe=Qs(b.codecs);he!=pe||b.bandwidth&&le.bandwidth&&!(b.bandwidth>le.bandwidth)||(V.push(b),Z.push(b.id))}else V.push(b),Z.push(b.id);f.set(N,V)}var ye={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};R=Array.from(u).sort(function(je,Be){if(!je.bandwidth||!Be.bandwidth||je.bandwidth==Be.bandwidth){if(je.codecs&&Be.codecs&&je.codecs!=Be.codecs&&je.width==Be.width){var Je=Qs(je.codecs),lt=Qs(Be.codecs);if(Je!=lt)return(ye[Je]||1)-(ye[lt]||1)}return je.width-Be.width}return je.bandwidth-Be.bandwidth}),u=hc();var be=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,N=w(b),V=f.get(N)||[],V.length){if(le=V[V.length-1],!u&&(he=Qs(le.codecs),pe=Qs(b.codecs),he!==pe))continue;he=Qs(le.codecs),pe=Qs(b.codecs),he!=pe||b.bandwidth&&le.bandwidth&&!(b.bandwidth>le.bandwidth)||(V.push(b),be.push(b.id))}else V.push(b),be.push(b.id);f.set(N,V)}o.variants=o.variants.filter(function(je){var Be=je.audio;return je=je.video,!(Be&&!Z.includes(Be.id)||je&&!be.includes(je.id))})}function x_e(o,u,f){u=_(u);for(var m=u.next(),b={};!m.done;b={videoCodec:void 0},m=u.next())if(b.videoCodec=m.value,m=o.filter((function(w){return function(A){return A.video&&A.video.codecs.startsWith(w.videoCodec)}})(b)),m.length){o=m;break}for(f=_(f),u=f.next(),m={};!u.done;m={audioCodec:void 0},u=f.next())if(m.audioCodec=u.value,u=o.filter((function(w){return function(A){return A.audio&&A.audio.codecs.startsWith(w.audioCodec)}})(m)),u.length){o=u;break}return o}function C_e(o,u,f){o.variants=o.variants.filter(function(m){return HS(m,u,f)})}function HS(o,u,f){function m(R,N,V){return R>=N&&R<=V}var b=o.video;if(b&&b.width&&b.height){var w=b.width,A=b.height;if(A>w&&(A=_([A,w]),w=A.next().value,A=A.next().value),!m(w,u.minWidth,Math.min(u.maxWidth,f.width))||!m(A,u.minHeight,Math.min(u.maxHeight,f.height))||!m(b.width*b.height,u.minPixels,u.maxPixels))return!1}return!(o&&o.video&&o.video.frameRate&&!m(o.video.frameRate,u.minFrameRate,u.maxFrameRate)||o&&o.audio&&o.audio.channelsCount&&!m(o.audio.channelsCount,u.minChannelsCount,u.maxChannelsCount)||!m(o.bandwidth,u.minBandwidth,u.maxBandwidth))}function w_e(o,u,f,m){return f=f===void 0?[]:f,m=m===void 0?{}:m,re(function(b){return b.g==1?L(b,vq(o,u,u.offlineSessionIds.length>0,f,m),2):(I_e(u),L(b,L_e(u),0))})}function vq(o,u,f,m,b){var w,A;return re(function(R){if(R.g==1)return Le().Ui()&&E_e(u.variants),L(R,NI(u.variants,f,!1,m),2);w=null,o&&(A=o.g)&&(w=A.keySystem),u.variants=u.variants.filter(function(N){var V=T_e(N,w,b);if(!V){var G=[];N.audio&&G.push(kq(N.audio)),N.video&&G.push(kq(N.video))}return V}),B(R)})}function E_e(o){var u=new Map().set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),f=new Set;o=_(o);for(var m=o.next();!m.done;m=o.next())m=m.value,m.video&&f.add(m.video);for(f=_(f),o=f.next();!o.done;o=f.next()){o=o.value,m=_(u);for(var b=m.next();!b.done;b=m.next()){var w=_(b.value);if(b=w.next().value,w=w.next().value,o.codecs.includes(b)){o.codecs=o.codecs.replace(b,w);break}}}}function T_e(o,u,f){if(!o.decodingInfos.some(function(N){return!(!N.supported||u&&(N=N.keySystemAccess)&&(f[N.keySystem]||N.keySystem)!=u)}))return!1;var m=Le(),b=m.Nb()==="Xbox";m=m.Ua()==="MOBILE"&&m.Ha()==="GECKO";var w=o.video,A=w&&w.width||0,R=w&&w.height||0;return b&&w&&(A>1920||R>1080)&&(w.codecs.includes("avc1.")||w.codecs.includes("avc3."))||(b=w&&w.dependencyStream)&&!Ll(b)?!1:(o=o.audio,!(m&&o&&o.encrypted&&o.codecs.toLowerCase().includes("opus")||o&&o.dependencyStream))}function mq(o,u){var f,m,b,w,A,R,N;return re(function(V){if(V.g==1){for(f=function(G,Z){if(G){var le=En(G);return le.supported=G.supported&&Z.supported,le.powerEfficient=G.powerEfficient&&Z.powerEfficient,le.smooth=G.smooth&&Z.smooth,Z.keySystemAccess&&!le.keySystemAccess&&(le.keySystemAccess=Z.keySystemAccess),le}return Z},m=null,b=[],w=_(u),A=w.next(),R={};!A.done;R={cache:void 0,Pe:void 0},A=w.next())N=A.value,R.Pe=Zn(N),R.cache=qS,R.cache.has(R.Pe)?m=f(m,R.cache.get(R.Pe)):b.push(A_e(N).then((function(G){return function(Z){var le=null;Z=_(Z||[]);for(var he=Z.next();!he.done;he=Z.next())le=f(le,he.value);le&&(G.cache.set(G.Pe,le),m=f(m,le))}})(R)));return L(V,Promise.all(b),2)}m&&o.decodingInfos.push(m),B(V)})}function A_e(o){var u=[""];o.video&&(u=rl(o.video.contentType).split(","));var f=[""];o.audio&&(f=rl(o.audio.contentType).split(","));var m=[];u=_(u);for(var b=u.next();!b.done;b=u.next()){b=b.value;for(var w=_(f),A=w.next(),R={};!A.done;R={Qc:void 0},A=w.next())A=A.value,R.Qc=fn(o),o.video&&(R.Qc.video.contentType=ko(Dl(R.Qc.video.contentType),b)),o.audio&&(R.Qc.audio.contentType=ko(Dl(R.Qc.audio.contentType),A)),m.push(new Promise((function(N){return function(V,G){(Le().Ua()=="MOBILE"?VS(5,navigator.mediaCapabilities.decodingInfo(N.Qc)):navigator.mediaCapabilities.decodingInfo(N.Qc)).then(function(Z){V(Z)}).catch(G)}})(R)))}return Promise.all(m).catch(function(){return JSON.stringify(o),null})}function NI(o,u,f,m){var b,w,A,R,N,V,G,Z,le,he,pe,ye,be,je,Be,Je,lt,St;return re(function(it){switch(it.g){case 1:if(o.some(function(Xe){return Xe.decodingInfos.length}))return it.return();b=_(m),w=b.next(),A={};case 2:if(w.done){it.A(4);break}A.Ci=w.value,R=!1,N=_(o),V=N.next();case 5:if(V.done){it.A(7);break}G=V.value,Z=gq(G,u,f).filter((function(Xe){return function(pt){return pt=pt[0],(pt.keySystemConfiguration&&pt.keySystemConfiguration.keySystem)===Xe.Ci}})(A)),le=_(Z),he=le.next();case 8:if(he.done){it.A(10);break}return pe=he.value,L(it,mq(G,pe),9);case 9:he=le.next(),it.A(8);break;case 10:G.decodingInfos.some(function(Xe){return Xe.supported})&&(R=!0),V=N.next(),it.A(5);break;case 7:if(R)return it.return();A={Ci:void 0},w=b.next(),it.A(2);break;case 4:ye=_(o),be=ye.next();case 12:if(be.done){it.A(0);break}je=be.value,Be=gq(je,u,f).filter(function(Xe){return Xe=Xe[0],Xe=Xe.keySystemConfiguration&&Xe.keySystemConfiguration.keySystem,!Xe||!m.includes(Xe)}),Je=_(Be),lt=Je.next();case 15:if(lt.done){be=ye.next(),it.A(12);break}return St=lt.value,L(it,mq(je,St),16);case 16:lt=Je.next(),it.A(15)}})}function gq(o,u,f){var m=o.audio,b=o.video,w=[],A=[];if(b)for(var R=_(b.fullMimeTypes),N=R.next();!N.done;N=R.next()){N=N.value;var V=rl(N);if(V.includes(",")&&!m){var G=V.split(","),Z=Dl(N);V=yi("video",G),G=yi("audio",G),G=B3(G,Z),Z=$I(Z,G,"audio"),A.push({contentType:Z,channels:2,bitrate:o.bandwidth||1,samplerate:1,spatialRendering:!1})}if(V=yq(V),N={contentType:$I(Dl(N),V,"video"),width:b.width||64,height:b.height||64,bitrate:b.bandwidth||o.bandwidth||1,framerate:b.frameRate||30},b.hdr)switch(b.hdr){case"PQ":N.transferFunction="pq";break;case"HLG":N.transferFunction="hlg"}b.colorGamut&&(N.colorGamut=b.colorGamut),w.push(N)}if(m)for(R=_(m.fullMimeTypes),N=R.next();!N.done;N=R.next())V=N.value,N=Dl(V),V=B3(rl(V),N),N=$I(N,V,"audio"),A.push({contentType:N,channels:m.channelsCount||2,bitrate:m.bandwidth||o.bandwidth||1,samplerate:m.audioSamplingRate||1,spatialRendering:m.spatialAudio});for(R=[],w.length==0&&w.push(null),A.length==0&&A.push(null),w=_(w),N=w.next();!N.done;N=w.next())for(N=N.value,V=_(A),Z=V.next();!Z.done;Z=V.next())Z=Z.value,G={type:f?"file":"media-source"},N&&(G.video=N),Z&&(G.audio=Z),R.push(G);if(A=(o.video?o.video.drmInfos:[]).concat(o.audio?o.audio.drmInfos:[]),!A.length)return[R];for(o=[],f=new Map,A=_(A),w=A.next();!w.done;w=A.next())w=w.value,f.get(w.keySystem)||f.set(w.keySystem,[]),f.get(w.keySystem).push(w);for(A=u?"required":"optional",u=u?["persistent-license"]:["temporary"],w=_(f.keys()),N=w.next();!N.done;N=w.next()){for(N=N.value,Z=f.get(N),V=new Map,Z=_(Z),G=Z.next();!G.done;G=Z.next()){G=G.value;var le=G.videoRobustness+","+G.audioRobustness;V.get(le)||V.set(le,[]),V.get(le).push(G)}for(V=_(V.values()),Z=V.next();!Z.done;Z=V.next()){Z=Z.value,G=[],le=_(R);for(var he=le.next();!he.done;he=le.next()){he=Object.assign({},he.value);for(var pe={keySystem:N,initDataType:"cenc",persistentState:A,distinctiveIdentifier:"optional",sessionTypes:u},ye=_(Z),be=ye.next();!be.done;be=ye.next()){if(be=be.value,be.initData&&be.initData.length){for(var je=new Set,Be=_(be.initData),Je=Be.next();!Je.done;Je=Be.next())je.add(Je.value.initDataType);pe.initDataType=be.initData[0].initDataType}be.distinctiveIdentifierRequired&&(pe.distinctiveIdentifier="required"),be.persistentStateRequired&&(pe.persistentState="required"),be.sessionType&&(pe.sessionTypes=[be.sessionType]),m&&(pe.audio?(be.encryptionScheme&&(pe.audio.encryptionScheme=pe.audio.encryptionScheme||be.encryptionScheme),pe.audio.robustness=pe.audio.robustness||be.audioRobustness):(pe.audio={robustness:be.audioRobustness},be.encryptionScheme&&(pe.audio.encryptionScheme=be.encryptionScheme)),pe.audio.robustness==""&&delete pe.audio.robustness),b&&(pe.video?(be.encryptionScheme&&(pe.video.encryptionScheme=pe.video.encryptionScheme||be.encryptionScheme),pe.video.robustness=pe.video.robustness||be.videoRobustness):(pe.video={robustness:be.videoRobustness},be.encryptionScheme&&(pe.video.encryptionScheme=be.encryptionScheme)),pe.video.robustness==""&&delete pe.video.robustness)}he.keySystemConfiguration=pe,G.push(he)}o.push(G)}}return o}function B3(o,u){var f=Le();return o.toLowerCase()=="flac"?f.Ha()!="WEBKIT"?"flac":"fLaC":o.toLowerCase()==="opus"?f.Ha()!="WEBKIT"?"opus":L3(u)=="mp4"?"Opus":"opus":o.toLowerCase()=="ac-3"&&f.oe()?"ec-3":o}function yq(o){if(o.includes("avc1")){var u=o.split(".");if(u.length==3)return o=u.shift()+".",o+=parseInt(u.shift(),10).toString(16),o+=("000"+parseInt(u.shift(),10).toString(16)).slice(-4)}else if(o=="vp9")return"vp09.00.41.08";return o}function I_e(o){o.textStreams=o.textStreams.filter(function(u){return u=ko(u.mimeType,u.codecs),R3(u)})}function L_e(o){var u,f,m,b,w,A,R;return re(function(N){switch(N.g){case 1:u=[],f=_(o.imageStreams),m=f.next();case 2:if(m.done){N.A(4);break}if(b=m.value,w=b.mimeType,w=="application/mp4"&&b.codecs=="mjpg"&&(w="image/jpg"),YS.has(w)){N.A(5);break}if(A=M_e.get(w),!A){YS.set(w,!1),N.A(5);break}return L(N,D_e(A),7);case 7:R=N.h,YS.set(w,R);case 5:YS.get(w)&&u.push(b),m=f.next(),N.A(2);break;case 4:o.imageStreams=u,B(N)}})}function D_e(o){return new Promise(function(u){var f=new Image;f.src=o,"decode"in f?f.decode().then(function(){u(!0)}).catch(function(){u(!1)}):f.onload=f.onerror=function(){u(f.height===2)}})}function Y0(o){var u=o.audio,f=o.video,m=u?u.mimeType:null,b=f?f.mimeType:null,w=u?u.codecs:null,A=f?f.codecs:null,R=u?u.groupId:null,N=[];f&&N.push(f.mimeType),u&&N.push(u.mimeType),N=N[0]||null;var V=[];u&&V.push(u.kind),f&&V.push(f.kind),V=V[0]||null;var G=new Set;if(u)for(var Z=_(u.roles),le=Z.next();!le.done;le=Z.next())G.add(le.value);if(f)for(Z=_(f.roles),le=Z.next();!le.done;le=Z.next())G.add(le.value);if(o={id:o.id,active:!1,type:"variant",bandwidth:o.bandwidth,language:o.language,label:null,videoLabel:null,kind:V,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:N,audioMimeType:m,videoMimeType:b,codecs:"",audioCodec:w,videoCodec:A,primary:o.primary,roles:Array.from(G),audioRoles:null,videoRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:R,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},f&&(o.videoId=f.id,o.originalVideoId=f.originalId,o.width=f.width||null,o.height=f.height||null,o.frameRate=f.frameRate||null,o.pixelAspectRatio=f.pixelAspectRatio||null,o.videoBandwidth=f.bandwidth||null,o.hdr=f.hdr||null,o.colorGamut=f.colorGamut||null,o.videoLayout=f.videoLayout||null,o.videoRoles=f.roles,o.videoLabel=f.label,(m=f.dependencyStream)&&(o.width=m.width||o.width,o.height=m.height||o.height,o.videoCodec=m.codecs||o.videoCodec,o.videoBandwidth&&m.bandwidth&&(o.videoBandwidth+=m.bandwidth)),A.includes(","))){o.channelsCount=f.channelsCount,o.audioSamplingRate=f.audioSamplingRate,o.spatialAudio=f.spatialAudio,o.originalLanguage=f.originalLanguage,o.audioMimeType=b,b=A.split(",");try{o.videoCodec=yi("video",b),o.audioCodec=yi("audio",b)}catch{}}return u&&(o.audioId=u.id,o.originalAudioId=u.originalId,o.channelsCount=u.channelsCount,o.audioSamplingRate=u.audioSamplingRate,o.audioBandwidth=u.bandwidth||null,o.spatialAudio=u.spatialAudio,o.label=u.label,o.audioRoles=u.roles,o.accessibilityPurpose=u.accessibilityPurpose,o.originalLanguage=u.originalLanguage,b=u.dependencyStream)&&(o.audioCodec=b.codecs||o.audioCodec,o.audioBandwidth&&b.bandwidth&&(o.audioBandwidth+=b.bandwidth)),f&&!o.videoBandwidth&&(u?o.audioBandwidth&&(o.videoBandwidth=o.bandwidth-o.audioBandwidth):o.videoBandwidth=o.bandwidth),u&&!o.audioBandwidth&&(f?o.videoBandwidth&&(o.audioBandwidth=o.bandwidth-o.videoBandwidth):o.audioBandwidth=o.bandwidth),u=[],o.videoCodec&&u.push(o.videoCodec),o.audioCodec&&u.push(o.audioCodec),o.codecs=u.join(", "),o}function X0(o){return{id:o.id,active:!1,type:wn,bandwidth:o.bandwidth||0,language:o.language,label:o.label,kind:o.kind||null,mimeType:o.mimeType,codecs:o.codecs||null,primary:o.primary,roles:o.roles,accessibilityPurpose:o.accessibilityPurpose,forced:o.forced,originalTextId:o.originalId,originalLanguage:o.originalLanguage}}function FI(o){var u=o.width||null,f=o.height||null,m=null;o.segmentIndex&&(m=ad(o.segmentIndex));var b=o.tilesLayout;return m&&(b=m.tilesLayout||b),b&&u!=null&&(u/=Number(b.split("x")[0])),b&&f!=null&&(f/=Number(b.split("x")[1])),{id:o.id,type:"image",bandwidth:o.bandwidth||0,width:u,height:f,mimeType:o.mimeType,codecs:o.codecs||null,tilesLayout:b||null,originalImageId:o.originalId}}function WS(o){return o.__shaka_id||(o.__shaka_id=R_e++),o.__shaka_id}function bq(o){var u={id:WS(o),active:o.mode!="disabled",type:wn,bandwidth:0,language:Xr(o.language||"und"),label:o.label,kind:o.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:o.kind=="forced",originalTextId:o.id,originalLanguage:o.language};return o.kind=="captions"&&(u.mimeType="unknown"),o.kind=="subtitles"&&(u.mimeType="text/vtt"),o.kind&&(u.roles=[o.kind]),u}function GS(o,u){var f=o?o.language:null;if(f={id:WS(o||u),active:o?o.enabled:u.selected,type:"variant",bandwidth:0,language:Xr(f||"und"),label:o?o.label:null,videoLabel:null,kind:o?o.kind:null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:o?o.kind=="main":!1,roles:[],forced:!1,audioRoles:null,videoRoles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:u?u.id:null,originalAudioId:o?o.id:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:f},o&&o.kind&&(f.roles=[o.kind],f.audioRoles=[o.kind]),o&&o.configuration&&(o.configuration.codec&&(f.audioCodec=o.configuration.codec,f.codecs=f.audioCodec),o.configuration.bitrate&&(f.audioBandwidth=o.configuration.bitrate,f.bandwidth+=f.audioBandwidth),o.configuration.sampleRate&&(f.audioSamplingRate=o.configuration.sampleRate),o.configuration.numberOfChannels&&(f.channelsCount=o.configuration.numberOfChannels)),u&&u.configuration&&(u.configuration.codec&&(f.videoCodec=u.configuration.codec,f.codecs=f.codecs?f.codecs+(","+f.videoCodec):f.videoCodec),u.configuration.bitrate&&(f.videoBandwidth=u.configuration.bitrate,f.bandwidth+=f.videoBandwidth),u.configuration.framerate&&(f.frameRate=u.configuration.framerate),u.configuration.width&&(f.width=u.configuration.width),u.configuration.height&&(f.height=u.configuration.height),u.configuration.colorSpace&&u.configuration.colorSpace.transfer))switch(u.configuration.colorSpace.transfer){case"pq":f.hdr="PQ";break;case"hlg":f.hdr="HLG";break;case"bt709":f.hdr="SDR"}return f}function N3(o){return o.allowedByApplication&&o.allowedByKeySystem&&o.disabledUntilTime==0}function KS(o){return o.filter(function(u){return N3(u)})}function pg(o,u,f,m){var b=o,w=o.filter(function(N){return N.primary});w.length&&(b=w);var A=b.length?b[0].language:"";if(b=b.filter(function(N){return N.language==A}),u){var R=US(Xr(u),o.map(function(N){return N.language}));R&&(b=o.filter(function(N){return Xr(N.language)==R}))}if(b=b.filter(function(N){return N.forced==m}),f){if(o=_q(b,f),o.length)return o}else if(o=b.filter(function(N){return N.roles.length==0}),o.length)return o;return o=b.map(function(N){return N.roles}).reduce(S_e,[]),o.length?_q(b,o[0]):b}function _q(o,u){return o.filter(function(f){return f.roles.includes(u)})}function P_e(o){var u=[];return o.audio&&u.push(o.audio),o.video&&u.push(o.video),u}function Sq(o,u){u.length&&(u=u.filter(function(f){return Qs(o.codecs)==Qs(f.codecs)}).sort(function(f,m){return f.bandwidth&&m.bandwidth&&f.bandwidth!=m.bandwidth?f.bandwidth-m.bandwidth:(f.width||0)-(m.width||0)}),o.trickModeVideo=u[0],u.length>1&&(u=u.find(function(f){return o.width==f.width&&o.height==f.height})))&&(o.trickModeVideo=u)}function kq(o){return o.type=="audio"?"type=audio codecs="+o.codecs+" bandwidth="+o.bandwidth+" channelsCount="+o.channelsCount+" audioSamplingRate="+o.audioSamplingRate:o.type=="video"?"type=video codecs="+o.codecs+" bandwidth="+o.bandwidth+" frameRate="+o.frameRate+" width="+o.width+" height="+o.height:"unexpected stream type"}function xq(o,u,f){if(f.autoShowText==0)return!1;if(f.autoShowText==1)return!0;var m=Xr(f.preferredTextLanguage);return u=Xr(u.language),f.autoShowText==2?hg(u,m):f.autoShowText==3?o?(o=Xr(o.language),hg(u,m)&&!hg(o,u)):!1:(at("Invalid autoShowText setting!"),!1)}function Cq(o){var u={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]};o=_(o);for(var f=o.next();!f.done;f=o.next()){f=f.value;var m={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:f?Dl(f):"",codecs:f?rl(f):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"video",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};m.fullMimeTypes.add(ko(m.mimeType,m.codecs)),f.startsWith("audio/")?(m.type="audio",u.audio=m):u.video=m}return u}_e("shaka.util.StreamUtils",hq),hq.meetsRestrictions=HS;var qS=new Map,R_e=0,YS=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),M_e=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Ji(){var o=this;this.H=null,this.B=!1,this.u=new Oe,this.j=new Me,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(o.B&&o.g.useNetworkInformation){o.u=new Oe,o.g&&o.u.configure(o.g.advanced);var u=o.chooseVariant();u&&navigator.onLine&&o.H(u,o.g.clearBufferSwitch,o.g.safeMarginSwitch)}}),this.o=[],this.I=1,this.J=!1,this.h=this.m=this.g=this.C=null,this.l=new mr(function(){if(o.B&&(o.g.restrictToElementSize||o.g.restrictToScreenSize)){var u=o.chooseVariant();u&&o.H(u,o.g.clearBufferSwitch,o.g.safeMarginSwitch)}}),this.F=i,"documentPictureInPicture"in i&&this.j.D(i.documentPictureInPicture,"enter",function(){o.F=i.documentPictureInPicture.window,o.l&&o.l.Jb(),o.j.Ba(o.F,"pagehide",function(){o.F=i,o.l&&o.l.Jb()})}),this.G=this.i=null}l=Ji.prototype,l.stop=function(){this.H=null,this.B=!1,this.o=[],this.I=1,this.m=this.C=null,this.h&&(this.h.disconnect(),this.h=null),this.l&&this.l.stop(),this.G=this.i=null},l.release=function(){this.stop(),this.j.release(),this.l=null},l.init=function(o){this.H=o},l.chooseVariant=function(o){o=o===void 0?!1:o;var u=1/0,f=1/0;if(this.g.restrictToScreenSize&&(f=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,u=this.F.screen.height*f,f*=this.F.screen.width),this.h&&this.g.restrictToElementSize){var m=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,b=this.m.clientHeight,w=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(b=this.i.height,w=this.i.width),u=Math.min(u,b*m),f=Math.min(f,w*m)}if(b=this.o.filter(function(V){return V&&!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)}),b.length||(b=this.o),m=b,o&&b.length!=this.o.length&&(m=this.o.filter(function(V){return V&&!!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)})),o=jI(this,this.g.restrictions,m,1/0,1/0),u!=1/0||f!=1/0){for(o=$_e(o),o=_(o),b=o.next();!b.done;b=o.next())if(b=b.value,b.height>=u&&b.width>=f){u=b.height,f=b.width;break}o=jI(this,this.g.restrictions,m,u,f)}for(u=this.getBandwidthEstimate(),m.length&&!o.length&&(o=jI(this,null,m,1/0,1/0),o=[o[0]]),f=o[0]||null,m=0;m=w&&u<=A&&(f.bandwidth!=b.bandwidth||f.bandwidth==b.bandwidth&&f.video&&b.video&&(f.video.width=this.g.cacheLoadThreshold&&this.u.sample(b,u),f&&this.C!=null&&this.B&&wq(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),wq(this,!0))},l.getBandwidthEstimate=function(){var o=this.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(o=navigator.connection.downlink*1e6),navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth?o:(o=this.u.getBandwidthEstimate(o),this.G?this.G.getBandwidthEstimate(o):o)},l.setVariants=function(o){return rn(o,this.o)?!1:(this.o=o,!0)},l.playbackRateChanged=function(o){this.I=o},l.setMediaElement=function(o){function u(){f.l.ia(O_e)}var f=this;this.m=o,this.h&&(this.h.disconnect(),this.h=null),this.m&&"ResizeObserver"in i&&(this.h=new ResizeObserver(u),this.h.observe(this.m)),this.j.D(o,"enterpictureinpicture",function(m){m.pictureInPictureWindow&&(f.i=m.pictureInPictureWindow,f.j.D(f.i,"resize",u))}),this.j.D(o,"leavepictureinpicture",function(){f.i&&f.j.Ma(f.i,"resize",u),f.i=null})},l.setCmsdManager=function(o){this.G=o},l.configure=function(o){this.g=o,this.u&&this.g&&this.u.configure(this.g.advanced)};function wq(o,u){if(u===void 0||!u){if(!o.J){if(u=o.u,!(u.g>=u.i))return;o.J=!0,o.C-=(o.g.switchInterval-o.g.minTimeToSwitch)*1e3}if(Date.now()-o.C=o.l)if(o.i)o.g=1,o.h=o.j;else throw new De(2,7,1010);return u=o.g,o.g++,u==0?m.return():(f=o.h*(1+(Math.random()*2-1)*o.o),L(m,new Promise(function(b){new mr(b).ia(f/1e3)}),2))}o.h*=o.m,B(m)})}function _c(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function di(){var o,u,f=new Promise(function(m,b){o=m,u=b});return f.resolve=o,f.reject=u,f}di.prototype.resolve=function(){},di.prototype.reject=function(){};function xo(o,u){this.promise=o,this.i=u,this.g=null}function lp(o){return new xo(Promise.reject(o),function(){return Promise.resolve()})}function zI(){var o=Promise.reject(new De(2,7,7001));return o.catch(function(){}),new xo(o,function(){return Promise.resolve()})}function mg(o){return new xo(Promise.resolve(o),function(){return Promise.resolve()})}function Lq(o){return new xo(o,function(){return o.catch(function(){})})}xo.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function Dq(o){return new xo(Promise.all(o.map(function(u){return u.promise})),function(){return Promise.all(o.map(function(u){return u.abort()}))})}xo.prototype.finally=function(o){return this.promise.then(function(){return o(!0)},function(){return o(!1)}),this},xo.prototype.Xa=function(o,u){function f(R){return function(N){if(b.g&&R)w.reject(A);else{var V=R?o:u;V?m=B_e(V,N,w):(R?w.resolve:w.reject)(N)}}}function m(){return w.reject(A),b.abort()}var b=this,w=new di;w.catch(function(){});var A=new De(2,7,7001);return this.promise.then(f(!0),f(!1)),new xo(w,function(){return m()})};function B_e(o,u,f){try{var m=o(u);return m&&m.promise&&m.abort?(f.resolve(m.promise),function(){return m.abort()}):(f.resolve(m),function(){return Promise.resolve(m).then(function(){},function(){})})}catch(b){return f.reject(b),function(){return Promise.resolve()}}}p.Object.defineProperties(xo.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),_e("shaka.util.AbortableOperation",xo),xo.prototype.chain=xo.prototype.Xa,xo.prototype.finally=xo.prototype.finally,xo.all=Dq,xo.prototype.abort=xo.prototype.abort,xo.notAbortable=Lq,xo.completed=mg,xo.aborted=zI,xo.failed=lp;function kn(o,u){if(u)if(u instanceof Map)for(var f=_(u.keys()),m=f.next();!m.done;m=f.next())m=m.value,Object.defineProperty(this,m,{value:u.get(m),writable:!0,enumerable:!0});else for(f in u)Object.defineProperty(this,f,{value:u[f],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=i.performance&&i.performance.now?i.performance.now():Date.now(),this.type=o,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function Pq(o){var u=new kn(o.type),f;for(f in o)Object.defineProperty(u,f,{value:o[f],writable:!0,enumerable:!0});return u}kn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},kn.prototype.stopImmediatePropagation=function(){this.g=!0},kn.prototype.stopPropagation=function(){},_e("shaka.util.FakeEvent",kn);var QS={rl:"abrstatuschanged",ul:"adaptation",vl:"audiotrackchanged",wl:"audiotrackschanged",xl:"boundarycrossed",yl:"buffering",zl:"canupdatestarttime",Al:"complete",Bl:"currentitemchanged",Cl:"downloadcompleted",Dl:"downloadfailed",El:"downloadheadersreceived",Fl:"drmsessionupdate",Gl:"emsg",Ml:"itemsinserted",Nl:"itemsremoved",bm:"prft",Error:"error",Hl:"expirationupdated",Il:"firstquartile",Jl:"gapjumped",Ol:"keystatuschanged",Rl:"loaded",Sl:"loading",Ul:"manifestparsed",Vl:"manifestupdated",Wl:"mediaqualitychanged",Xl:"mediasourcerecovered",Yl:"metadataadded",Metadata:"metadata",Zl:"midpoint",$l:"nospatialvideoinfo",am:"onstatechange",dm:"ratechange",hm:"segmentappended",im:"sessiondata",jm:"spatialvideoinfo",lm:"stalldetected",nm:"started",om:"statechanged",pm:"streaming",qm:"textchanged",rm:"texttrackvisibility",sm:"thirdquartile",tm:"timelineregionadded",um:"timelineregionenter",vm:"timelineregionexit",wm:"trackschanged",ym:"unloading",Am:"variantchanged"};function Zr(){this.ab=new Fe,this.Fe=this}Zr.prototype.addEventListener=function(o,u){this.ab&&this.ab.push(o,u)},Zr.prototype.removeEventListener=function(o,u){this.ab&&this.ab.remove(o,u)},Zr.prototype.dispatchEvent=function(o){if(!this.ab)return!0;var u=this.ab.get(o.type)||[],f=this.ab.get("All");for(f&&(u=u.concat(f)),u=_(u),f=u.next();!f.done;f=u.next()){f=f.value,o.target=this.Fe,o.currentTarget=this.Fe;try{f.handleEvent?f.handleEvent(o):f.call(this,o)}catch{}if(o.g)break}return o.defaultPrevented},Zr.prototype.release=function(){this.ab=null};function gg(){this.g=[]}function Z0(o,u){o.g.push(u.finally(function(){Jt(o.g,u)}))}gg.prototype.destroy=function(){for(var o=[],u=_(this.g),f=u.next();!f.done;f=u.next())f=f.value,f.promise.catch(function(){}),o.push(f.abort());return this.g=[],Promise.all(o)};function Fi(o,u,f,m,b,w,A){Zr.call(this),this.i=null,this.j=!1,this.u=new gg,this.g=new Set,this.h=new Set,this.o=o||null,this.m=u||null,this.B=f||null,this.C=m||null,this.F=b||null,this.H=w||null,this.G=A||null,this.l=new Map}x(Fi,Zr),l=Fi.prototype,l.configure=function(o){this.i=o};function Uf(o,u,f,m){m=m===void 0?!1:m,f=f||Bq;var b=t6.get(o);(!b||f>=b.priority)&&t6.set(o,{priority:f,yf:u,Fk:m})}function Rq(o,u){for(var f=_(o.g),m=f.next();!m.done;m=f.next())u.g.add(m.value);for(o=_(o.h),f=o.next();!f.done;f=o.next())u.h.add(f.value)}l.Ik=function(o){this.g.add(o)},l.hl=function(o){this.g.delete(o)},l.oj=function(){this.g.clear()},l.Jk=function(o){this.h.add(o)},l.il=function(o){this.h.delete(o)},l.pj=function(){this.h.clear()},l.Qh=function(){this.l.clear()};function Vo(o,u,f){return{uris:o,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:u,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:f===void 0?null:f}}l.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),this.l.clear(),Zr.prototype.release.call(this),this.u.destroy()},l.request=function(o,u,f){var m=this,b=new Oq;if(this.j){var w=Promise.reject(new De(2,7,7001));return w.catch(function(){}),new e6(w,function(){return Promise.resolve()},b)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?fn(u.retryParameters):_c(),u.uris=fn(u.uris),w=N_e(this,o,u,f);var A=w.Xa(function(){return Mq(m,o,u,f,new Aq(u.retryParameters,!1),0,null,b)}),R=A.Xa(function(le){return F_e(m,o,le,f)}),N=Date.now(),V=0;w.promise.then(function(){V=Date.now()-N},function(){});var G=0;A.promise.then(function(){G=Date.now()},function(){});var Z=R.Xa(function(le){var he=Date.now()-G,pe=le.response;return pe.timeMs+=V,pe.timeMs+=he,le.fk||!m.o||pe.fromCache||u.method=="HEAD"||o!=ju||m.o(pe.timeMs,pe.data.byteLength,$q(f),u,f),m.G&&m.G(o,pe,f),pe},function(le){throw le&&(le.severity=2),le});return w=new e6(Z.promise,function(){return Z.abort()},b),Z0(this.u,w),w};function N_e(o,u,f,m){function b(R){w=w.Xa(function(){return f.body&&(f.body=ke(f.body)),R(u,f,m)})}var w=mg(void 0);o.F&&b(o.F),o=_(o.g);for(var A=o.next();!A.done;A=o.next())b(A.value);return w.Xa(void 0,function(R){throw R instanceof De&&R.code==7001?R:new De(2,1,1006,R)})}function Mq(o,u,f,m,b,w,A,R){o.i.forceHTTP&&(f.uris[w]=f.uris[w].replace("https://","http://")),o.i.forceHTTPS&&(f.uris[w]=f.uris[w].replace("http://","https://")),w>0&&o.H&&o.H(u,m,f.uris[w],f.uris[w-1]);var N=new Yt(f.uris[w]),V=N.bc,G=!1;V||(V=location.protocol,V=V.slice(0,-1),sn(N,V),f.uris[w]=N.toString()),V=V.toLowerCase();var Z=(V=t6.get(V))?V.yf:null;if(!Z)return lp(new De(2,1,1e3,N));var le=V.Fk;(N=o.l.get(N.Db))&&(f.headers["common-access-token"]=N);var he=null,pe=null,ye=!1,be=!1,je;return Lq(Iq(b)).Xa(function(){if(o.j)return zI();je=Date.now();var Be=0;f.requestStartTime=Date.now();var Je=Z(f.uris[w],f,u,function(it,Xe,pt){he&&he.stop(),pe&&pe.ia(St/1e3),o.o&&u==ju&&(Be++,f.packetNumber=Be,o.o(it,Xe,$q(m),f,m),G=!0,R.g=pt)},function(it){be=!0,f.timeToFirstByte=Date.now()-f.requestStartTime,o.m&&o.m(it,f,u)},{minBytesForProgressEvents:o.i.minBytesForProgressEvents});if(!le)return Je;var lt=f.retryParameters.connectionTimeout;lt&&(he=new mr(function(){ye=!0,Je.abort()}),he.ia(lt/1e3));var St=f.retryParameters.stallTimeout;return St&&(pe=new mr(function(){ye=!0,Je.abort()})),Je}).Xa(function(Be){he&&he.stop(),pe&&pe.stop(),Be.timeMs==null&&(Be.timeMs=Date.now()-je);var Je=Be.headers["common-access-token"];if(Je){var lt=new Yt(Be.uri);o.l.set(lt.Db,Je)}return Je={response:Be,fk:G},!be&&o.m&&o.m(Be.headers,f,u),o.B&&o.B(f,Be),Je},function(Be){if(he&&he.stop(),pe&&pe.stop(),o.C){var Je=null,lt=0;Be instanceof De&&(Je=Be,Be.code==1001&&(lt=Be.data[1])),o.C(f,Je,lt,ye)}if(o.j)return zI();if(ye&&(Be=new De(1,1,1003,f.uris[w],u)),Be instanceof De){if(Be.code==7001)throw Be;if(Be.code==1010)throw A;if(Be.severity==1){if(Je=new Map().set("error",Be),Je=new kn("retry",Je),Je.cancelable=!0,o.dispatchEvent(Je),Je.defaultPrevented)throw Be;return w=(w+1)%f.uris.length,Mq(o,u,f,m,b,w,Be,R)}}throw Be})}function F_e(o,u,f,m){var b=mg(void 0);o=_(o.h);for(var w=o.next(),A={};!w.done;A={Ji:void 0},w=o.next())A.Ji=w.value,b=b.Xa((function(R){return function(){var N=f.response;return N.data&&(N.data=ke(N.data)),(0,R.Ji)(u,N,m)}})(A));return b.Xa(function(){return f},function(R){var N=2;if(R instanceof De){if(R.code==7001)throw R;N=R.severity}throw new De(N,1,1007,R)})}function $q(o){if(o){var u=o.segment;if(o=o.stream,u&&o&&o.fastSwitching&&u.Xc)return!1}return!0}_e("shaka.net.NetworkingEngine",Fi),Fi.prototype.request=Fi.prototype.request,Fi.prototype.destroy=Fi.prototype.destroy,Fi.makeRequest=Vo,Fi.defaultRetryParameters=function(){return _c()},Fi.prototype.clearCommonAccessTokenMap=Fi.prototype.Qh,Fi.prototype.clearAllResponseFilters=Fi.prototype.pj,Fi.prototype.unregisterResponseFilter=Fi.prototype.il,Fi.prototype.registerResponseFilter=Fi.prototype.Jk,Fi.prototype.clearAllRequestFilters=Fi.prototype.oj,Fi.prototype.unregisterRequestFilter=Fi.prototype.hl,Fi.prototype.registerRequestFilter=Fi.prototype.Ik,Fi.unregisterScheme=function(o){t6.delete(o)},Fi.registerScheme=Uf,Fi.prototype.configure=Fi.prototype.configure;function Oq(){this.g=0}Fi.NumBytesRemainingClass=Oq;function e6(o,u,f){xo.call(this,o,u),this.h=f}x(e6,xo),Fi.PendingRequest=e6;var ju=1;Fi.RequestType={MANIFEST:0,SEGMENT:ju,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Fi.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var Bq=3;Fi.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Bq};var t6=new Map;function yg(o){this.g=!1,this.h=new di,this.i=o}yg.prototype.destroy=function(){var o=this;return this.g?this.h:(this.g=!0,this.i().then(function(){o.h.resolve()},function(){o.h.resolve()}))};function Ii(o,u){if(o.g)throw u instanceof De&&u.code==7003?u:new De(2,7,7003,u)}function UI(o,u){var f=[];o=_(o);for(var m=o.next();!m.done;m=o.next())f.push(u(m.value));return f}function j_e(o,u){o=_(o);for(var f=o.next();!f.done;f=o.next())if(!u(f.value))return!1;return!0}function bg(o){for(var u=new Map,f=_(Object.keys(o)),m=f.next();!m.done;m=f.next())m=m.value,u.set(m,o[m]);return u}function HI(o){var u={};return o.forEach(function(f,m){u[m]=f}),u}function Oi(o,u){this.h=ot(o),this.i=u==Nq,this.g=0}l=Oi.prototype,l.Ia=function(){return this.g2097151)throw new De(2,3,3001);return this.g+=8,u*4294967296+o},l.Tb=function(o,u){if(this.g+o>this.h.byteLength)throw Hf();var f=Ae(this.h,this.g,o);return this.g+=o,u?new Uint8Array(f):f},l.skip=function(o){if(this.g+o>this.h.byteLength)throw Hf();this.g+=o},l.Ki=function(o){if(this.gthis.h.byteLength)throw Hf();this.g=o},l.Yc=function(){for(var o=this.g;this.Ia()&&this.h.getUint8(this.g)!=0;)this.g+=1;return o=Ae(this.h,o,this.g-o),this.g+=1,ut(o)};function Hf(){return new De(2,3,3e3)}_e("shaka.util.DataViewReader",Oi),Oi.prototype.readTerminatedString=Oi.prototype.Yc,Oi.prototype.seek=Oi.prototype.seek,Oi.prototype.rewind=Oi.prototype.Ki,Oi.prototype.skip=Oi.prototype.skip,Oi.prototype.readBytes=Oi.prototype.Tb,Oi.prototype.readUint64=Oi.prototype.Dd,Oi.prototype.readInt32=Oi.prototype.Zg,Oi.prototype.readUint32=Oi.prototype.U,Oi.prototype.readUint16=Oi.prototype.Ca,Oi.prototype.readUint8=Oi.prototype.Y,Oi.prototype.getLength=Oi.prototype.getLength,Oi.prototype.getPosition=Oi.prototype.Oa,Oi.prototype.hasMoreData=Oi.prototype.Ia;var Nq=1;Oi.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Nq};function fi(){this.i=new Map,this.h=new Map,this.g=!1}l=fi.prototype,l.box=function(o,u){return o=Fq(o),this.i.set(o,V_e),this.h.set(o,u),this},l.S=function(o,u){return o=Fq(o),this.i.set(o,jq),this.h.set(o,u),this},l.stop=function(){this.g=!0},l.parse=function(o,u,f){for(o=new Oi(o,0),this.g=!1;o.Ia()&&!this.g;)this.zd(0,o,u,f)},l.zd=function(o,u,f,m){var b=u.Oa();if(m&&b+8>u.getLength())this.g=!0;else{var w=u.U(),A=u.U(),R=r6(A),N=!1;switch(w){case 0:w=u.getLength()-b;break;case 1:if(m&&u.Oa()+8>u.getLength()){this.g=!0;return}w=u.Dd(),N=!0}var V=this.h.get(A);if(V){var G=null,Z=null;if(this.i.get(A)==jq){if(m&&u.Oa()+4>u.getLength()){this.g=!0;return}Z=u.U(),G=Z>>>24,Z&=16777215}A=b+w,f&&A>u.getLength()&&(A=u.getLength()),m&&A>u.getLength()?this.g=!0:(A-=u.Oa(),u=A>0?u.Tb(A,!1):new Uint8Array(0),u=new Oi(u,0),V({name:R,parser:this,partialOkay:f||!1,stopOnPartial:m||!1,version:G,flags:Z,reader:u,size:w,start:b+o,has64BitSize:N}))}else u.skip(Math.min(b+w-u.Oa(),u.getLength()-u.Oa()))}};function ar(o){for(var u=up(o);o.reader.Ia()&&!o.parser.g;)o.parser.zd(o.start+u,o.reader,o.partialOkay,o.stopOnPartial)}function Wf(o){for(var u=up(o),f=o.reader.U(),m=0;m>24&255,o>>16&255,o>>8&255,o&255)}function up(o){return 8+(o.has64BitSize?8:0)+(o.flags!=null?4:0)}_e("shaka.util.Mp4Parser",fi),fi.headerSize=up,fi.typeToString=r6,fi.allData=_g,fi.audioSampleEntry=n6,fi.visualSampleEntry=Pl,fi.sampleDescription=Wf,fi.children=ar,fi.prototype.parseNext=fi.prototype.zd,fi.prototype.parse=fi.prototype.parse,fi.prototype.stop=fi.prototype.stop,fi.prototype.fullBox=fi.prototype.S,fi.prototype.box=fi.prototype.box;var V_e=0,jq=1;function WI(o){var u=this;this.g=[],this.h=[],this.data=[],new fi().box("moov",ar).box("moof",ar).S("pssh",function(f){if(!(f.version>1)){var m=Ae(f.reader.h,-12,f.size);if(u.data.push(m),m=f.reader.Tb(16,!1),u.g.push(Ln(m)),f.version>0){m=f.reader.U();for(var b=0;b0&&(w+=4+16*f.size);var A=new Uint8Array(w),R=ot(A),N=0;if(R.setUint32(N,w),N+=4,R.setUint32(N,1886614376),N+=4,m<1?R.setUint32(N,0):R.setUint32(N,16777216),N+=4,A.set(u,N),N+=u.length,m>0)for(R.setUint32(N,f.size),N+=4,u=_(f),f=u.next();!f.done;f=u.next())f=ir(f.value),A.set(f,N),N+=f.length;return R.setUint32(N,b),A.set(o,N+4),A}function o6(o){var u=this;this.F=o,this.j=this.B=null,this.qa=this.T=!1,this.J=0,this.g=null,this.o=new Me,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new di,this.h=null,this.u=function(f){f.severity==2&&u.m.reject(f),o.onError(f)},this.aa=new Map,this.ma=new Map,this.M=new mr(function(){return J_e(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new mr(function(){eSe(u)}),this.m.catch(function(){}),this.l=new yg(function(){return z_e(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=o6.prototype,l.destroy=function(){return this.l.destroy()};function z_e(o){return re(function(u){switch(u.g){case 1:return o.o.release(),o.o=null,o.m.reject(),o.G.stop(),o.G=null,o.M.stop(),o.M=null,L(u,j3(o),2);case 2:if(!o.j){u.A(3);break}return j(u,4),L(u,o.j.setMediaKeys(null),6);case 6:U(u,5);break;case 4:K(u);case 5:o.j=null;case 3:o.g=null,o.B=null,o.C=new Map,o.h=null,o.u=function(){},o.F=null,o.O=!1,o.I=null,B(u)}})}l.configure=function(o,u){this.h=o,u&&(this.V=u),this.G&&this.T&&this.g&&this.G.Ea(this.h.updateExpirationTime)};function U_e(o,u,f){return o.qa=!0,o.C=new Map,o.R=f,zq(o,u,!1)}function Vq(o,u,f,m){m=m===void 0?!0:m,o.C=new Map,f=_(f);for(var b=f.next();!b.done;b=f.next())o.C.set(b.value,{initData:null,initDataType:null});for(f=_(o.h.persistentSessionsMetadata),b=f.next();!b.done;b=f.next())b=b.value,o.C.set(b.sessionId,{initData:b.initData,initDataType:b.initDataType});return o.R=o.C.size>0,zq(o,u,m)}function H_e(o,u,f,m,b,w){var A,R,N,V,G;return re(function(Z){return Z.g==1?(A=[],w.length&&A.push(w[0].contentType),b.length&&A.push(b[0].contentType),R=function(le){return le=hr(u,le,null),le.licenseServerUri=f,le.serverCertificate=m,le.persistentStateRequired=!0,le.sessionType="persistent-license",le},N=Cq(A),N.video&&(V=R(w[0].encryptionScheme||""),N.video.drmInfos.push(V)),N.audio&&(G=R(b[0].encryptionScheme||""),N.audio.drmInfos.push(G)),L(Z,NI([N],!0,o.O,[]),2)):(Ii(o.l),Z.return(Gq(o,[N])))})}function zq(o,u,f){var m,b,w,A,R,N,V,G,Z,le,he,pe,ye,be,je,Be,Je,lt;return re(function(St){if(St.g==1){for(Jq(o.h.clearKeys,u),m=u.some(function(it){return!!(it.video&&it.video.drmInfos.length||it.audio&&it.audio.drmInfos.length)}),b=bg(o.h.servers),w=bg(o.h.advanced||{}),!m&&f&&nSe(u,b),A=new WeakSet,R=_(u),N=R.next();!N.done;N=R.next())for(V=N.value,G=Zq(V),Z=_(G),le=Z.next();!le.done;le=Z.next())he=le.value,A.has(he)||(A.add(he),iSe(he,b,w,o.h.keySystemsMapping));for(pe=function(it,Xe){var pt=[];it=_(it);for(var _t=it.next();!_t.done;_t=it.next()){_t=_t.value;var bt=_t[Xe]||w.has(_t.keySystem)&&w.get(_t.keySystem)[Xe]||"",kt;if((kt=bt=="")&&(kt=(kt=_t.keySystem)?!!kt.match(/^com\.widevine\.alpha/):!1),kt&&(Xe=="audioRobustness"?bt=[o.h.defaultAudioRobustnessForWidevine]:Xe=="videoRobustness"&&(bt=[o.h.defaultVideoRobustnessForWidevine])),typeof bt=="string")pt.push(_t);else if(Array.isArray(bt))for(bt.length===0&&(bt=[""]),bt=_(bt),kt=bt.next();!kt.done;kt=bt.next()){var xt={};pt.push(Object.assign({},_t,(xt[Xe]=kt.value,xt)))}}return pt},ye=new WeakSet,be=_(u),je=be.next();!je.done;je=be.next())Be=je.value,Be.video&&!ye.has(Be.video)&&(Be.video.drmInfos=pe(Be.video.drmInfos,"videoRobustness"),Be.video.drmInfos=pe(Be.video.drmInfos,"audioRobustness"),ye.add(Be.video)),Be.audio&&!ye.has(Be.audio)&&(Be.audio.drmInfos=pe(Be.audio.drmInfos,"videoRobustness"),Be.audio.drmInfos=pe(Be.audio.drmInfos,"audioRobustness"),ye.add(Be.audio));return L(St,NI(u,o.R,o.O,o.h.preferredKeySystems),2)}return Ii(o.l),Je=m||b.size>0,Je?(lt=Gq(o,u),St.return(m?lt:lt.catch(function(){}))):(o.T=!0,St.return(Promise.resolve()))})}function Uq(o){var u;return re(function(f){switch(f.g){case 1:if(o.j.mediaKeys)return f.return();if(!o.I){f.A(2);break}return L(f,o.I,3);case 3:return Ii(o.l),f.return();case 2:return j(f,4),o.I=o.j.setMediaKeys(o.B),L(f,o.I,6);case 6:U(f,5);break;case 4:u=K(f),o.u(new De(2,6,6003,u.message));case 5:Ii(o.l),B(f)}})}function W_e(o,u){return re(function(f){if(f.g==1)return L(f,Uq(o),2);F3(o,u.initDataType,Ae(u.initData)),B(f)})}l.fc=function(o){var u=this,f,m;return re(function(b){if(b.g==1)return u.j===o?b.return():u.B?(u.j=o,u.h.delayLicenseRequestUntilPlayed&&u.o.Ba(u.j,"play",function(){for(var w=_(u.N),A=w.next();!A.done;A=w.next())KI(u,A.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return j3(u)}),u.o.D(u.j.remote,"connecting",function(){return j3(u)}),u.o.D(u.j.remote,"disconnect",function(){return j3(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return j3(u)}),u.H=u.g&&u.g.initData.find(function(w){return w.initData.length>0})||null,f=u.g.keySystem,(m=Le().Rg(f))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?b.A(2):L(b,Uq(u),2)):(u.o.Ba(o,"encrypted",function(){u.u(new De(2,6,6010))}),b.return());Hq(u).catch(function(){}),!m&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(w){return W_e(u,w)}),B(b)})};function G_e(o){var u,f,m,b,w;return re(function(A){switch(A.g){case 1:if(!o.B||!o.g)return A.return();if(!o.g.serverCertificateUri||o.g.serverCertificate&&o.g.serverCertificate.length){A.A(2);break}return u=Vo([o.g.serverCertificateUri],o.h.retryParameters),j(A,3),f=o.F.tc.request(5,u,{isPreload:o.V()}),L(A,f.promise,5);case 5:m=A.h,o.g.serverCertificate=Ae(m.data),U(A,4);break;case 3:throw b=K(A),new De(2,6,6017,b);case 4:if(o.l.g)return A.return();case 2:return!o.g.serverCertificate||!o.g.serverCertificate.length?A.return():(j(A,6),L(A,o.B.setServerCertificate(o.g.serverCertificate),8));case 8:U(A,0);break;case 6:throw w=K(A),new De(2,6,6004,w.message)}})}function K_e(o,u){var f,m,b;return re(function(w){if(w.g==1)return L(w,qq(o,u,{initData:null,initDataType:null}),2);if(w.g!=3)return f=w.h,f?(m=[],(b=o.i.get(f))&&(b.Kb=new di,m.push(b.Kb)),m.push(f.remove()),L(w,Promise.all(m),3)):w.return();o.i.delete(f),B(w)})}function Hq(o){var u,f,m,b,w;return re(function(A){if(A.g==1)return o.C.size?(o.C.forEach(function(R,N){qq(o,N,R)}),L(A,o.m,3)):A.A(2);if(A.g!=2){if(u=o.g&&o.g.keyIds||new Set([]),u.size>0&&tSe(o))return A.return(o.m);o.K=!1,o.m=new di,o.m.catch(function(){})}for(f=(o.g?o.g.initData:[])||[],m=_(f),b=m.next();!b.done;b=m.next())w=b.value,F3(o,w.initDataType,w.initData);return V3(o)&&o.m.resolve(),A.return(o.m)})}function F3(o,u,f){if(f.length){if(o.h.ignoreDuplicateInitData){var m=o.i.values();m=_(m);for(var b=m.next();!b.done;b=m.next())if(Se(f,b.value.initData))return;var w=!1;if(o.C.forEach(function(A){!w&&Se(f,A.initData)&&(w=!0)}),w)return}o.K=!0,o.i.size>0&&V3(o)&&(o.m.resolve(),o.K=!1,o.m=new di,o.m.catch(function(){})),X_e(o,u,f,o.g.sessionType)}}function Wq(o){return o=o.i.keys(),o=UI(o,function(u){return u.sessionId}),Array.from(o)}l.Gg=function(){var o=this,u=this.i.keys();return u=UI(u,function(f){var m=o.i.get(f);return{sessionId:f.sessionId,sessionType:m.type,initData:m.initData,initDataType:m.initDataType}}),Array.from(u)},l.Wd=function(){var o=1/0,u=this.i.keys();u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,isNaN(f.expiration)||(o=Math.min(o,f.expiration));return o};function q_e(o){return o.J?o.J:NaN}l.Xe=function(){return HI(this.ma)};function Gq(o,u){var f,m,b,w,A,R,N;return re(function(V){switch(V.g){case 1:if(f=new Map,m=Y_e(o,u,f),!m)throw navigator.requestMediaKeySystemAccess?new De(2,6,6001):new De(2,6,6020);Ii(o.l),j(V,2),m.getConfiguration();var G=b=o.h.keySystemsMapping[m.keySystem]||m.keySystem,Z=f.get(b),le=[],he=[],pe=[],ye=[],be=[],je=new Set,Be=new Set;rSe(Z,le,he,ye,pe,be,je,Be);var Je=o.R?"persistent-license":"temporary";for(G={keySystem:G,encryptionScheme:le[0],licenseServerUri:he[0],distinctiveIdentifierRequired:Z[0].distinctiveIdentifierRequired,persistentStateRequired:Z[0].persistentStateRequired,sessionType:Z[0].sessionType||Je,audioRobustness:Z[0].audioRobustness||"",videoRobustness:Z[0].videoRobustness||"",serverCertificate:ye[0],serverCertificateUri:pe[0],initData:be,keyIds:je},Be.size>0&&(G.keySystemUris=Be),Z=_(Z),Be=Z.next();!Be.done;Be=Z.next())Be=Be.value,Be.distinctiveIdentifierRequired&&(G.distinctiveIdentifierRequired=Be.distinctiveIdentifierRequired),Be.persistentStateRequired&&(G.persistentStateRequired=Be.persistentStateRequired);if(o.g=G,!o.g.licenseServerUri)throw new De(2,6,6012,o.g.keySystem);return L(V,m.createMediaKeys(),4);case 4:if(w=V.h,Ii(o.l),o.B=w,!(o.h.minHdcpVersion!=""&&"getStatusForPolicy"in o.B)){V.A(5);break}return j(V,6),L(V,o.B.getStatusForPolicy({minHdcpVersion:o.h.minHdcpVersion}),8);case 8:if(A=V.h,A!="usable")throw new De(2,6,6018);Ii(o.l),U(V,5,2);break;case 6:throw R=K(V,2),R instanceof De?R:new De(2,6,6019,R.message);case 5:return o.T=!0,o.G.Ea(o.h.updateExpirationTime),L(V,G_e(o),9);case 9:Ii(o.l),U(V,0);break;case 2:throw N=K(V),Ii(o.l,N),o.g=null,N instanceof De?N:new De(2,6,6002,N.message)}})}function Y_e(o,u,f){for(var m=_(u),b=m.next();!b.done;b=m.next()){b=_(Zq(b.value));for(var w=b.next();!w.done;w=b.next())w=w.value,f.has(w.keySystem)||f.set(w.keySystem,[]),f.get(w.keySystem).push(w)}if(f.size==1&&f.has(""))throw new De(2,6,6e3);m=o.h.preferredKeySystems,m.length||(b=bg(o.h.servers),b.size==1&&(m=Array.from(b.keys()))),b=_(m);var A=b.next();for(w={};!A.done;w={Di:void 0},A=b.next()){w.Di=A.value,A=_(u);for(var R=A.next();!R.done;R=A.next())if(R=R.value.decodingInfos.find((function(Z){return function(le){return le.supported&&le.keySystemAccess!=null&&le.keySystemAccess.keySystem==Z.Di}})(w)))return R.keySystemAccess}for(b=_([!0,!1]),w=b.next();!w.done;w=b.next())for(w=w.value,A=_(u),R=A.next();!R.done;R=A.next()){R=_(R.value.decodingInfos);for(var N=R.next();!N.done;N=R.next())if(N=N.value,N.supported&&N.keySystemAccess){var V=N.keySystemAccess.keySystem;if(!m.includes(V)){var G=f.get(V);for(!G&&o.h.keySystemsMapping[V]&&(G=f.get(o.h.keySystemsMapping[V])),V=_(G),G=V.next();!G.done;G=V.next())if(!!G.value.licenseServerUri==w)return N.keySystemAccess}}}return null}function GI(o){V3(o)&&o.m.resolve()}function Kq(o,u){new mr(function(){u.loaded=!0,GI(o)}).ia(sSe)}function qq(o,u,f){var m,b,w,A,R,N,V;return re(function(G){switch(G.g){case 1:try{m=o.B.createSession("persistent-license")}catch(Z){return b=new De(2,6,6005,Z.message),o.u(b),G.return(Promise.reject(b))}return o.o.D(m,"message",function(Z){o.j&&o.h.delayLicenseRequestUntilPlayed&&o.j.paused&&!o.$?o.N.push(Z):KI(o,Z)}),o.o.D(m,"keystatuseschange",function(Z){return Yq(o,Z)}),w={initData:f.initData,initDataType:f.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},o.i.set(m,w),j(G,2),L(G,m.load(u),4);case 4:return A=G.h,Ii(o.l),A||(o.i.delete(m),R=o.h.persistentSessionOnlinePlayback?1:2,o.u(new De(R,6,6013)),w.loaded=!0),Kq(o,w),GI(o),G.return(m);case 2:N=K(G),Ii(o.l,N),o.i.delete(m),V=o.h.persistentSessionOnlinePlayback?1:2,o.u(new De(V,6,6005,N.message)),w.loaded=!0,GI(o);case 3:return G.return(Promise.resolve())}})}function X_e(o,u,f,m){try{var b=o.B.createSession(m)}catch(w){o.u(new De(2,6,6005,w.message));return}o.o.D(b,"message",function(w){o.j&&o.h.delayLicenseRequestUntilPlayed&&o.j.paused&&!o.$?o.N.push(w):KI(o,w)}),o.o.D(b,"keystatuseschange",function(w){return Yq(o,w)}),o.i.set(b,{initData:f,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:m});try{f=o.h.initDataTransform(f,u,o.g)}catch(w){u=w,w instanceof De||(u=new De(2,6,6016,w)),o.u(u);return}o.h.logLicenseExchange&&Yn(f),b.generateRequest(u,f).catch(function(w){if(!o.l.g){o.i.delete(b);var A=w.errorCode;if(A&&A.systemCode){var R=A.systemCode;R<0&&(R+=4294967296),R="0x"+R.toString(16)}o.u(new De(2,6,6006,w.message,w,R))}})}function Z_e(o){return re(function(u){return u.g==1?o.K?L(u,o.m,3):u.A(0):L(u,Promise.all(o.X.map(function(f){return f.promise})),0)})}function KI(o,u){var f,m,b,w,A,R,N,V,G,Z,le,he,pe,ye,be,je;re(function(Be){switch(Be.g){case 1:if(f=u.target,o.h.logLicenseExchange&&Yn(u.message),m=o.i.get(f),b=o.g.licenseServerUri,w=o.h.advanced[o.g.keySystem],u.messageType=="individualization-request"&&w&&w.individualizationServer&&(b=w.individualizationServer),A=Vo([b],o.h.retryParameters),A.body=u.message,A.method="POST",A.licenseRequestType=u.messageType,A.sessionId=f.sessionId,A.drmInfo=o.g,m&&(A.initData=m.initData,A.initDataType=m.initDataType),w&&w.headers)for(R in w.headers)A.headers[R]=w.headers[R];if(o.g.keySystem==="org.w3.clearkey"){var Je=A,lt=o.g;try{var St=Qt(Je.body);if(St){var it=JSON.parse(St);it.type||(it.type=lt.sessionType,Je.body=Gt(JSON.stringify(it)))}}catch{}}if(VI(o.g.keySystem))if(Je=Mt(A.body,!0,!0),Je.includes("PlayReadyKeyMessage")){for(Je=ci(Je,"PlayReadyKeyMessage"),lt=Da(Je,"HttpHeader"),lt=_(lt),St=lt.next();!St.done;St=lt.next())it=St.value,St=Da(it,"name")[0],it=Da(it,"value")[0],A.headers[_r(St)]=_r(it);Je=Da(Je,"Challenge")[0],A.body=fr(_r(Je))}else A.headers["Content-Type"]="text/xml; charset=utf-8";return N=Date.now(),j(Be,2),G=o.F.tc.request(2,A,{isPreload:o.V()}),o.X.push(G),L(Be,G.promise,4);case 4:V=Be.h,Jt(o.X,G),U(Be,3);break;case 2:return Z=K(Be),o.l.g||(le={sessionId:f.sessionId,sessionType:m.type,initData:m.initData,initDataType:m.initDataType},he=new De(2,6,6007,Z,le),o.i.size==1?(o.u(he),m&&m.Kb&&m.Kb.reject(he)):(m&&m.Kb&&m.Kb.reject(he),o.i.delete(f),V3(o)&&(o.m.resolve(),o.M.ia(.1)))),Be.return();case 3:return o.l.g?Be.return():(o.J+=(Date.now()-N)/1e3,o.h.logLicenseExchange&&Yn(V.data),j(Be,5),L(Be,f.update(V.data),7));case 7:U(Be,6);break;case 5:return ye=(pe=K(Be))&&pe.message||String(pe),be=new De(2,6,6008,ye),o.u(be),m&&m.Kb&&m.Kb.reject(be),Be.return();case 6:if(o.l.g)return Be.return();je=new kn("drmsessionupdate"),o.F.onEvent(je),m&&(m.Kb&&m.Kb.resolve(),Kq(o,m)),B(Be)}})}function Yq(o,u){u=u.target;var f=o.i.get(u),m=!1;u.keyStatuses.forEach(function(w,A){if(typeof A=="string"){var R=A;A=w,w=R}if(R=Le(),VI(o.g.keySystem)&&A.byteLength==16&&R.gh()){R=ot(A);var N=R.getUint32(0,!0),V=R.getUint16(4,!0),G=R.getUint16(6,!0);R.setUint32(0,N,!1),R.setUint16(4,V,!1),R.setUint16(6,G,!1)}w!="status-pending"&&(f.loaded=!0),w=="expired"&&(m=!0),A=Ln(A).slice(0,32),o.aa.set(A,w)});var b=u.expiration-Date.now();(b<0||m&&b<1e3)&&f&&!f.Kb&&(o.i.delete(u),Xq(u)),V3(o)&&(o.m.resolve(),o.M.ia(aSe))}function J_e(o){var u=o.aa,f=o.ma;f.clear(),u.forEach(function(m,b){return f.set(b,m)}),u=Array.from(f.values()),u.length&&u.every(function(m){return m=="expired"})&&o.u(new De(2,6,6014)),o.F.vf(HI(f))}function Q_e(){var o,u,f,m,b,w,A,R,N,V,G,Z,le,he,pe,ye,be,je,Be,Je,lt,St,it,Xe,pt,_t,bt,kt,xt,Bt,Nt,Tt;return re(function(Dt){if(Dt.g==1){if(o="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" "),!(i.MediaKeys&&i.navigator&&i.navigator.requestMediaKeySystemAccess&&i.MediaKeySystemAccess&&i.MediaKeySystemAccess.prototype.getConfiguration)){for(u={},f=_(o),m=f.next();!m.done;m=f.next())b=m.value,u[b]=null;return Dt.return(u)}for(w="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),A=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],R=["150","2000","3000"],N={"com.widevine.alpha":A,"com.widevine.alpha.experiment":A,"com.microsoft.playready.recommendation":R},V=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],G=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],Z={videoCapabilities:V,audioCapabilities:G,initDataTypes:["cenc","sinf","skd","keyids"]},le=[null,"cenc","cbcs"],he=new Map,pe=Le(),ye=function(Kt,an,Jn){var Cn,Lr,yr,Qr,Sr,On,wi,Rr,Dr,pr,Ui,Vi,io;return re(function(si){switch(si.g){case 1:return j(si,2),L(si,an.createMediaKeys(),5);case 5:Cn=si.h;case 4:U(si,3);break;case 2:return K(si),si.return();case 3:if(yr=(Lr=an.getConfiguration().sessionTypes)?Lr.includes("persistent-license"):!1,pe.ti()&&(yr=!1),Qr=an.getConfiguration().videoCapabilities,Sr=an.getConfiguration().audioCapabilities,On={persistentState:yr,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},he.get(Kt)?On=he.get(Kt):he.set(Kt,On),(wi=Qr[0].encryptionScheme)&&!On.encryptionSchemes.includes(wi)&&On.encryptionSchemes.push(wi),(Rr=Qr[0].robustness)&&!On.videoRobustnessLevels.includes(Rr)&&On.videoRobustnessLevels.push(Rr),(Dr=Sr[0].robustness)&&!On.audioRobustnessLevels.includes(Dr)&&On.audioRobustnessLevels.push(Dr),!(Jn&&"getStatusForPolicy"in Cn)){si.A(0);break}pr=_(w),Ui=pr.next();case 7:if(Ui.done){si.A(0);break}if(Vi=Ui.value,On.minHdcpVersions.includes(Vi)){si.A(8);break}return L(si,Cn.getStatusForPolicy({minHdcpVersion:Vi}),10);case 10:if(io=si.h,io=="usable")On.minHdcpVersions.includes(Vi)||On.minHdcpVersions.push(Vi);else{si.A(0);break}case 8:Ui=pr.next(),si.A(7)}})},be=function(Kt,an,Jn,Cn,Lr){Lr=Lr===void 0?!1:Lr;var yr,Qr,Sr,On,wi,Rr,Dr,pr,Ui,Vi,io;return re(function(si){switch(si.g){case 1:for(j(si,2),yr=fn(Z),Qr=_(yr.videoCapabilities),Sr=Qr.next();!Sr.done;Sr=Qr.next())On=Sr.value,On.encryptionScheme=an,On.robustness=Jn;for(wi=_(yr.audioCapabilities),Rr=wi.next();!Rr.done;Rr=wi.next())Dr=Rr.value,Dr.encryptionScheme=an,Dr.robustness=Cn;return pr=fn(yr),pr.persistentState="required",pr.sessionTypes=["persistent-license"],Ui=[pr,yr],io=Le(),io.Ua()=="MOBILE"?L(si,VS(5,navigator.requestMediaKeySystemAccess(Kt,Ui)),7):L(si,navigator.requestMediaKeySystemAccess(Kt,Ui),6);case 6:Vi=si.h,si.A(5);break;case 7:Vi=si.h;case 5:return L(si,ye(Kt,Vi,Lr),8);case 8:U(si,0);break;case 2:K(si),B(si)}})},je=_(o),Be=je.next();!Be.done;Be=je.next())Je=Be.value,he.set(Je,null);for(lt=function(Kt){return!(Le().Ha()==="WEBKIT"&&Kt==="org.w3.clearkey")},St=[],it=_(o),Xe=it.next();!Xe.done;Xe=it.next())if(pt=Xe.value,lt(pt)){for(_t=!0,bt=_(le),kt=bt.next();!kt.done;kt=bt.next())xt=kt.value,St.push(be(pt,xt,"","",_t)),_t=!1;for(Bt=_(N[pt]||[]),Nt=Bt.next();!Nt.done;Nt=Bt.next())Tt=Nt.value,St.push(be(pt,null,Tt,"")),St.push(be(pt,null,"",Tt))}return L(Dt,Promise.all(St),2)}return Dt.return(HI(he))})}function Xq(o){return re(function(u){if(u.g==1)return j(u,2),L(u,VS(oSe,Promise.all([o.close().catch(function(){}),o.closed])),4);if(u.g!=2)return U(u,0);K(u),B(u)})}function j3(o){var u;return re(function(f){return u=Array.from(o.i.entries()),o.i.clear(),L(f,Promise.all(u.map(function(m){m=_(m);var b=m.next().value,w=m.next().value;return re(function(A){if(A.g==1)return j(A,2),o.qa||o.C.has(b.sessionId)||w.type!=="persistent-license"||o.h.persistentSessionOnlinePlayback?L(A,Xq(b),5):L(A,b.remove(),5);if(A.g!=2)return U(A,0);K(A),B(A)})})),0)})}function Zq(o){return(o.video?o.video.drmInfos:[]).concat(o.audio?o.audio.drmInfos:[])}function eSe(o){o.i.forEach(function(u,f){var m=u.Ug,b=f.expiration;isNaN(b)&&(b=1/0),b!=m&&(o.F.onExpirationUpdated(f.sessionId,b),u.Ug=b)})}function V3(o){return o=o.i.values(),j_e(o,function(u){return u.loaded})}function tSe(o){for(var u=_(o.g&&o.g.keyIds||new Set([])),f=u.next();!f.done;f=u.next())if(o.aa.get(f.value)!=="usable")return!1;return!0}function nSe(o,u){var f=[];for(u.forEach(function(m,b){f.push({keySystem:b,licenseServerUri:m,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),o=_(o),u=o.next();!u.done;u=o.next())u=u.value,u.video&&(u.video.drmInfos=f),u.audio&&(u.audio.drmInfos=f)}function rSe(o,u,f,m,b,w,A,R){var N=[];o=_(o);for(var V=o.next(),G={};!V.done;G={Ka:void 0},V=o.next()){if(G.Ka=V.value,u.includes(G.Ka.encryptionScheme)||u.push(G.Ka.encryptionScheme),G.Ka.keySystem=="org.w3.clearkey"&&G.Ka.licenseServerUri.startsWith("data:application/json;base64,")?N.includes(G.Ka.licenseServerUri)||N.push(G.Ka.licenseServerUri):f.includes(G.Ka.licenseServerUri)||f.push(G.Ka.licenseServerUri),b.includes(G.Ka.serverCertificateUri)||b.push(G.Ka.serverCertificateUri),G.Ka.serverCertificate&&(m.some((function(he){return function(pe){return Se(pe,he.Ka.serverCertificate)}})(G))||m.push(G.Ka.serverCertificate)),G.Ka.initData){V=_(G.Ka.initData);for(var Z=V.next(),le={};!Z.done;le={Lg:void 0},Z=V.next())le.Lg=Z.value,w.some((function(he){return function(pe){var ye=he.Lg;return pe.keyId&&pe.keyId==ye.keyId?!0:pe.initDataType==ye.initDataType&&Se(pe.initData,ye.initData)}})(le))||w.push(le.Lg)}if(G.Ka.keyIds)for(V=_(G.Ka.keyIds),Z=V.next();!Z.done;Z=V.next())A.add(Z.value);if(G.Ka.keySystemUris&&R)for(G=_(G.Ka.keySystemUris),V=G.next();!V.done;V=G.next())R.add(V.value)}if(N.length==1)f.push(N[0]);else if(N.length>0){for(u=[],N=_(N),m=N.next();!m.done;m=N.next())m=i.atob(m.value.split("data:application/json;base64,").pop()),m=JSON.parse(m),u.push.apply(u,T(m.keys));N=JSON.stringify({keys:u}),f.push("data:application/json;base64,"+i.btoa(N))}}function iSe(o,u,f,m){var b=o.keySystem;b&&(b!="org.w3.clearkey"||!o.licenseServerUri)&&(u.size&&u.get(b)&&(u=u.get(b),o.licenseServerUri=u),o.keyIds||(o.keyIds=new Set),(f=f.get(b))&&(o.distinctiveIdentifierRequired||(o.distinctiveIdentifierRequired=f.distinctiveIdentifierRequired),o.persistentStateRequired||(o.persistentStateRequired=f.persistentStateRequired),o.serverCertificate||(o.serverCertificate=f.serverCertificate),f.sessionType&&(o.sessionType=f.sessionType),o.serverCertificateUri||(o.serverCertificateUri=f.serverCertificateUri)),m[b]&&(o.keySystem=m[b]),i.cast&&i.cast.__platform__&&b=="com.microsoft.playready"&&(o.keySystem="com.chromecast.playready"))}function Jq(o,u){if(o=bg(o),o.size!=0){o=Kr(o),u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.drmInfos=[o]),f.audio&&(f.audio.drmInfos=[o])}}var oSe=1,sSe=5,aSe=.5;function lSe(){this.g=Sg,this.i=new Map().set(Sg,2).set(J0,1),this.h=0}function qI(o,u){var f=o.g!==u;return o.g=u,f&&u===Sg&&(o.h=Date.now()),f}var J0=0,Sg=1;/* +`||N.trim().length>0)&&R.push(N),b++;return R}function m(){for(var C=b;`\r + >/= `.indexOf(o[b])===-1&&o[b];)b++;return o.slice(C,b)}var b=0;return f("")}function Fu(o){return typeof o=="string"}function _c(o){var u=[];if(!o.children)return[];o=_(o.children);for(var f=o.next();!f.done;f=o.next())f=f.value,typeof f!="string"&&u.push(f);return u}function Fr(o,u){var f=[];if(!o.children)return[];o=_(o.children);for(var m=o.next();!m.done;m=o.next())m=m.value,m.tagName===u&&f.push(m);return f}function _r(o){return typeof o=="string"?ln(o):(o=o.children.reduce(function(u,f){return typeof f=="string"?u+f:u},""),o===""?null:ln(o))}function mo(o){return Array.from(o.children).every(function(u){return typeof u=="string"})?((o=_r(o))&&(o=o.trim()),o):null}function Da(o,u,f){if(f=f===void 0?[]:f,o.tagName===u&&f.push(o),o.children){o=_(o.children);for(var m=o.next();!m.done;m=o.next())Da(m.value,u,f)}return f}function li(o,u){return o=Fr(o,u),o.length!=1?null:o[0]}function Pa(o,u,f){return o=RS(o,u,f),o.length!=1?null:o[0]}function Mn(o,u,f,m){m=m===void 0?null:m;var b=null;return o=o.attributes[u],o!=null&&(b=f(o)),b??m}function ju(o,u,f){return u=Zi(u),o.attributes[u+":"+f]||null}function RS(o,u,f){var m=Zi(u);if(u=[],o.children)for(f=m?m+":"+f:f,o=_(o.children),m=o.next();!m.done;m=o.next())(m=m.value)&&m.tagName===f&&u.push(m);return u}function Fs(o,u,f){u=_(u);for(var m=u.next();!m.done;m=u.next())if(m=ju(o,m.value,f))return m;return null}function Nf(o){return o?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(o)&&(o+="Z"),o=Date.parse(o),isNaN(o)?null:o/1e3):null}function Vd(o){return!o||(o=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").exec(o),!o)?null:(o=31536e3*Number(o[1]||null)+2592e3*Number(o[2]||null)+86400*Number(o[3]||null)+3600*Number(o[4]||null)+60*Number(o[5]||null)+Number(o[6]||null),isFinite(o)?o:null)}function MS(o){var u=/([0-9]+)-([0-9]+)/.exec(o);return!u||(o=Number(u[1]),!isFinite(o))?null:(u=Number(u[2]),isFinite(u)?{start:o,end:u}:null)}function js(o){return o=Number(o),o%1===0?o:null}function zd(o){return o=Number(o),o%1===0&&o>0?o:null}function Vs(o){return o=Number(o),o%1===0&&o>=0?o:null}function OS(o){return o=Number(o),isNaN(o)?null:o}function $S(o){return o?o.toLowerCase()==="true":!1}function p_e(o){var u,f=(u=o.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(o);return isNaN(f)?null:f}function BS(o){var u=[];o=ln(o).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),o=_(o);for(var f=o.next();!f.done;f=o.next()){f=f.value;var m=f.match(/^([\w]+)/);if(m){var b=f.match(/(@id='(.*?)')/),C=f.match(/(@t='(\d+)')/),A=f.match(/(@n='(\d+)')/),R=f.match(/\[(\d+)\]/);u.push({name:m[0],id:b?b[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:C?Number(C[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:A?Number(A[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:R?Number(R[1])-1:null,Cc:f.split("/@")[1]||null})}else f.startsWith("@")&&u.length&&(u[u.length-1].Cc=f.slice(1))}return u}function YK(o,u){var f=BS(u.attributes.sel||"");if(f.length){var m=f[f.length-1],b=u.attributes.pos||null;f=m.position,f==null&&(m.t!==null&&(f=XK(o,"t",m.t)),m.n!==null&&(f=XK(o,"n",m.n))),f===null?f=b==="prepend"?0:o.length:b==="prepend"?--f:b==="after"&&++f,b=u.tagName,(m=m.Cc)&&o[f]?ZK(o[f],b,m,mo(u)||""):(b!=="remove"&&b!=="replace"||o.splice(f,1),b!=="add"&&b!=="replace"||o.splice.apply(o,[f,0].concat(T(u.children))))}}function XK(o,u,f){var m=0;o=_(o);for(var b=o.next();!b.done;b=o.next()){if(Number(b.value.attributes[u])===f)return m;m++}return null}function ZK(o,u,f,m){u==="remove"?delete o.attributes[f]:(u==="add"||u==="replace")&&(o.attributes[f]=m)}function JK(o){var u="",f=o.tagName.split(":");f.length>0&&(u=f[0],u=II.has(u)?II.get(u):""),u=document.createElementNS(u,o.tagName);for(var m in o.attributes)u.setAttribute(m,o.attributes[m]);for(o=_(o.children),m=o.next();!m.done;m=o.next())m=m.value,f=void 0,typeof m=="string"?f=new Text(m):f=JK(m),u.appendChild(f);return u}function TI(o){if(!o)return null;var u={tagName:o.tagName,attributes:En(o.attributes),children:[],parent:null};o=_(o.children);for(var f=o.next();!f.done;f=o.next())f=f.value,typeof f=="string"||(f=TI(f),f.parent=u),u.children.push(f);return u}var AI=new Map,II=new Map;function Oi(o,u,f){this.startTime=o,this.endTime=u,this.payload=f,this.region=new nl,this.position=null,this.positionAlign=jS,this.size=0,this.textAlign=Ud,this.direction=A3,this.writingMode=Y0,this.lineInterpretation=I3,this.line=null,this.lineHeight="",this.lineAlign=X0,this.displayAlign=T3,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=oq,this.fontStyle=PI,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textCombineUpright="",this.textDecoration=[],this.textStrokeWidth=this.textStrokeColor=this.textShadow="",this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.rubyTag=null,this.cellResolution={columns:32,rows:15}}function QK(o,u){return o=new Oi(o,u,""),o.lineBreak=!0,o}Oi.prototype.clone=function(){var o=new Oi(0,0,""),u;for(u in this)o[u]=this[u],Array.isArray(o[u])&&(o[u]=o[u].slice());return o};function NS(o,u){if(o.payload!=u.payload||!(Math.abs(o.startTime-u.startTime)<.001&&Math.abs(o.endTime-u.endTime)<.001))return!1;for(var f in o)if(f!="startTime"&&f!="endTime"&&f!="payload"){if(f=="nestedCues"){if(!vt(o.nestedCues,u.nestedCues,NS))return!1}else if(f=="region"||f=="cellResolution"){for(var m in o[f])if(o[f][m]!=u[f][m])return!1}else if(Array.isArray(o[f])){if(!vt(o[f],u[f]))return!1}else if(o[f]!=u[f])return!1}return!0}function FS(o,u){u=u===void 0?new Map:u;var f=o.payload;if(f.includes("<")){u.size===0&&eq(u);var m=f;f=[];for(var b=-1,C=0;C"&&b>0&&(b=m.substr(b,C-b),b.match(m_e)&&f.push(b),b=-1);for(f=_(f),C=f.next();!C.done;C=f.next())C=C.value,m=m.replace("<"+C+">",'
'),m+="
";e:{C=m,b=[];var A=-1;f="",m=!1;for(var R=0;R",R);if(N===-1){f=C;break e}if((N=C.substring(R+1,N))&&N=="v"){m=!0;var V=null;if(b.length&&(V=b[b.length-1]),V){if(V===N)f+="/"+N+">";else{if(!V.startsWith("v")){f+=C[R];continue}f+="/"+V+">"}R+=N.length+1}else f+=C[R]}else f+=C[R]}else C[R]==="<"?(A=R+1,C[A]!="v"&&(A=-1)):C[R]===">"&&A>0&&(b.push(C.substr(A,R-A)),A=-1),f+=C[R];for(C=_(b),b=C.next();!b.done;b=C.next())b=b.value,A=b.replace(" ",".voice-"),f=f.replace("<"+b+">","<"+A+">"),f=f.replace("",""),m||(f+="")}f=v_e(f),o.payload="",m=""+f.replace(/\n/g,"
")+"
";try{var G=di(m,"span")}catch{}if(G)if(G=G.children,G.length!=1||G[0].tagName)for(G=_(G),f=G.next();!f.done;f=G.next())tq(f.value,o,u);else o.payload=ln(f);else o.payload=ln(f)}else o.payload=ln(f)}function eq(o){for(var u=_(Object.entries(rq)),f=u.next();!f.done;f=u.next()){var m=_(f.value);f=m.next().value,m=m.next().value;var b=new Oi(0,0,"");b.color=m,o.set("."+f,b)}for(u=_(Object.entries(iq)),f=u.next();!f.done;f=u.next())m=_(f.value),f=m.next().value,m=m.next().value,b=new Oi(0,0,""),b.backgroundColor=m,o.set("."+f,b)}function v_e(o){var u={"< ":""," >":" >"},f=/(< +>|<\s|\s>)/g,m=RegExp(f.source);return o&&m.test(o)?o.replace(f,function(b){return u[b]||""}):o||""}function tq(o,u,f){var m=u.clone();if(m.nestedCues=[],m.payload="",m.rubyTag="",m.line=null,m.region=new nl,m.position=null,m.size=0,m.textAlign=Ud,o.tagName)for(var b=_(o.tagName.split(/(?=[ .])+/g)),C=b.next();!C.done;C=b.next()){var A=C=C.value;if(A.startsWith(".voice-")){var R=A.split("-").pop();A='v[voice="'+R+'"]',f.has(A)||(A="v[voice="+R+"]")}switch(f.has(A)&&(R=m,A=f.get(A))&&(R.backgroundColor=E3(A.backgroundColor,R.backgroundColor),R.color=E3(A.color,R.color),R.fontFamily=E3(A.fontFamily,R.fontFamily),R.fontSize=E3(A.fontSize,R.fontSize),R.textShadow=E3(A.textShadow,R.textShadow),R.fontWeight=A.fontWeight,R.fontStyle=A.fontStyle,R.opacity=A.opacity,R.rubyTag=A.rubyTag,R.textCombineUpright=A.textCombineUpright,R.wrapLine=A.wrapLine),C){case"br":m=QK(m.startTime,m.endTime),u.nestedCues.push(m);return;case"b":m.fontWeight=dg;break;case"i":m.fontStyle=fg;break;case"u":m.textDecoration.push(Ff);break;case"font":(C=o.attributes.color)&&(m.color=C);break;case"div":if(C=o.attributes.time,!C)break;(C=At(C))&&(m.startTime=C);break;case"ruby":case"rp":case"rt":m.rubyTag=C}}if(b=o.children,Fu(o)||b.length==1&&Fu(b[0]))for(f=_r(o).split(` +`),o=!0,f=_(f),b=f.next();!b.done;b=f.next())b=b.value,o||(o=QK(m.startTime,m.endTime),u.nestedCues.push(o)),b.length>0&&(o=m.clone(),o.payload=ln(b),u.nestedCues.push(o)),o=!1;else for(u.nestedCues.push(m),u=_(b),o=u.next();!o.done;o=u.next())tq(o.value,m,f)}function E3(o,u){return o&&o.length>0?o:u}_e("shaka.text.Cue",Oi),Oi.parseCuePayload=FS,Oi.equal=NS,Oi.prototype.clone=Oi.prototype.clone;var jS="auto";Oi.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:jS};var Ud="center",LI={LEFT:"left",RIGHT:"right",CENTER:Ud,START:"start",END:"end"};Oi.textAlign=LI;var T3="after",nq={BEFORE:"before",CENTER:"center",AFTER:T3};Oi.displayAlign=nq;var A3="ltr";Oi.direction={HORIZONTAL_LEFT_TO_RIGHT:A3,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Y0="horizontal-tb";Oi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Y0,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var I3=0;Oi.lineInterpretation={LINE_NUMBER:I3,PERCENTAGE:1};var X0="start",DI={CENTER:"center",START:X0,END:"end"};Oi.lineAlign=DI;var rq={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Oi.defaultTextColor=rq;var iq={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Oi.defaultTextBackgroundColor=iq;var oq=400,dg=700;Oi.fontWeight={NORMAL:oq,BOLD:dg};var PI="normal",fg="italic",sq={NORMAL:PI,ITALIC:fg,OBLIQUE:"oblique"};Oi.fontStyle=sq;var Ff="underline";Oi.textDecoration={UNDERLINE:Ff,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var m_e=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function sp(){}sp.prototype.destroy=function(){};function jf(o,u,f){RI.set(o.toLowerCase().split(";")[0]+"-"+f,{priority:f,yf:u})}function hg(o,u){for(var f=o.toLowerCase().split(";")[0],m=_([aq,OI,MI,ap]),b=m.next();!b.done;b=m.next())if(b=RI.get(f+"-"+b.value)){var C=b.yf(),A=C.isSupported(o,u);if(C.destroy(),A)return b.yf}return null}_e("shaka.transmuxer.TransmuxerEngine",sp),sp.findTransmuxer=hg,sp.unregisterTransmuxer=function(o,u){RI.delete(o.toLowerCase().split(";")[0]+"-"+u)},sp.registerTransmuxer=jf,sp.prototype.destroy=sp.prototype.destroy;var RI=new Map,ap=1,MI=2,OI=3,aq=4;sp.PluginPriority={FALLBACK:ap,PREFERRED_SECONDARY:MI,PREFERRED:OI,APPLICATION:aq};function $I(){}function ko(o,u){var f=o;return u&&!Vf.includes(o)&&(f+='; codecs="'+u+'"'),f}function VS(o,u){return u&&(o+='; codecs="'+u+'"'),o}function BI(o,u,f){var m=ko(o,u);return u=VS(o,u),hg(u)?(o=hg(u))?(o=o(),f=o.convertCodecs(f,u),o.destroy()):f=u:f=o!="video/mp2t"&&f=="audio"?m.replace("video","audio"):m,f}function L3(o){return o.split(";")[0].split("/")[1]}function Qs(o){var u=lq(o);switch(o=u[0].toLowerCase(),u=u[1].toLowerCase(),!0){case(o==="mp4a"&&u==="69"):case(o==="mp4a"&&u==="6b"):case(o==="mp4a"&&u==="40.34"):return"mp3";case(o==="mp4a"&&u==="66"):case(o==="mp4a"&&u==="67"):case(o==="mp4a"&&u==="68"):case(o==="mp4a"&&u==="40.2"):case(o==="mp4a"&&u==="40.02"):case(o==="mp4a"&&u==="40.5"):case(o==="mp4a"&&u==="40.05"):case(o==="mp4a"&&u==="40.29"):case(o==="mp4a"&&u==="40.42"):return"aac";case(o==="mp4a"&&u==="a5"):case o==="ac3":case o==="ac-3":return"ac-3";case(o==="mp4a"&&u==="a6"):case o==="eac3":case o==="ec-3":return"ec-3";case o==="ac-4":return"ac-4";case(o==="mp4a"&&u==="b2"):return"dtsx";case(o==="mp4a"&&u==="a9"):return"dtsc";case o==="vp09":case o==="vp9":return"vp9";case o==="avc1":case o==="avc3":return"avc";case o==="hvc1":case o==="hev1":return"hevc";case o==="vvc1":case o==="vvi1":return"vvc";case o==="dvh1":case o==="dvhe":return u&&u.startsWith("05")?"dovi-p5":"dovi-hevc";case o==="dvav":case o==="dva1":return"dovi-avc";case o==="dav1":return"dovi-av1";case o==="dvc1":case o==="dvi1":return"dovi-vvc"}return o}function lp(o){var u=[];o=_(o.split(","));for(var f=o.next();!f.done;f=o.next())f=lq(f.value),u.push(f[0]);return u.sort().join(",")}function Dl(o){return o.split(";")[0]}function rl(o){return o=o.split(/ *; */),o.shift(),(o=o.find(function(u){return u.startsWith("codecs=")}))?o.split("=")[1].replace(/^"|"$/g,""):""}function D3(o){return o==="application/x-mpegurl"||o==="application/vnd.apple.mpegurl"}function lq(o){o=o.split(".");var u=o[0];return o.shift(),[u,o.join(".")]}_e("shaka.util.MimeUtils",$I),$I.getFullTypeWithAllCodecs=VS,$I.getFullType=ko,new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var Vf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function zf(o){this.i=null,this.l=o,this.C=!1,this.m=this.u=0,this.o=1/0,this.h=this.g=null,this.F="",this.B=function(){},this.j=new Map}function zs(o,u){M3.set(o,u)}function P3(o){return M3.get(o)}function R3(o){return M3.has(o)?!0:o=="application/cea-608"||o=="application/cea-708"?!!Bu:!1}zf.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function g_e(o,u,f,m,b){var C,A,R,N,V,G,Z;return te(function(le){if(le.g==1)return L(le,Promise.resolve(),2);if(!o.i||!o.l)return le.return();if(f==null||m==null)return o.i.parseInit(Te(u)),le.return();for(C=o.C?f:o.u,A={periodStart:o.u,segmentStart:f,segmentEnd:m,vttOffset:C},R=o.i.parseMedia(Te(u),A,b,[]),N=_(R),V=N.next();!V.done;V=N.next())G=V.value,o.B(G,b||null,A);Z=R.filter(function(he){return he.startTime>=o.m&&he.startTime=u)return b.return();f&&__e(m,o,u),m.l&&m.l.remove(o,u)&&m.g!=null&&(u<=m.g||o>=m.h||(o<=m.g&&u>=m.h?m.g=m.h=null:o<=m.g&&um.g&&u>=m.h&&(m.h=o)),dq(m)),B(b)})};function y_e(o,u,f){o.m=u,o.o=f}function uq(o,u,f){o.F=u,(u=o.j.get(u))&&(u=u.filter(function(m){return m.endTime<=f}),u.length&&o.l.append(u))}function cq(o,u,f){u.startTime+=f,u.endTime+=f,u=_(u.nestedCues);for(var m=u.next();!m.done;m=u.next())cq(o,m.value,f)}function b_e(o,u,f){var m=new Map;u=_(u);for(var b=u.next();!b.done;b=u.next()){var C=b.value;b=C.stream,C=C.cue,m.has(b)||m.set(b,[]),cq(o,C,f),C.startTime>=o.m&&C.startTime=f}),o.j.set(b,C)}}function dq(o){for(var u=1/0,f=-1/0,m=_(o.j.values()),b=m.next();!b.done;b=m.next()){b=_(b.value);for(var C=b.next();!C.done;C=b.next())C=C.value,u=Math.min(u,C.startTime),f=Math.max(f,C.endTime)}u!==1/0&&f!==-1/0&&(o.g=o.g==null?Math.max(u,o.m):Math.min(o.g,Math.max(u,o.m)),o.h=Math.max(o.h,Math.min(f,o.o)))}_e("shaka.text.TextEngine",zf),zf.prototype.destroy=zf.prototype.destroy,zf.findParser=P3,zf.unregisterParser=function(o){M3.delete(o)},zf.registerParser=zs;var M3=new Map;function O3(o){this.h=o,this.g=null}O3.prototype.ia=function(o){var u=this;this.stop();var f=!0,m=null;return this.g=function(){i.clearTimeout(m),f=!1},m=i.setTimeout(function(){f&&u.h()},o*1e3),this},O3.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function mr(o){this.h=o,this.g=null}mr.prototype.Jb=function(){return this.stop(),this.h(),this},mr.prototype.ia=function(o){var u=this;return this.stop(),this.g=new O3(function(){u.h()}).ia(o),this},mr.prototype.Ea=function(o){var u=this;return this.stop(),this.g=new O3(function(){u.g.ia(o),u.h()}).ia(o),this},mr.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},_e("shaka.util.Timer",mr),mr.prototype.stop=mr.prototype.stop,mr.prototype.tickEvery=mr.prototype.Ea,mr.prototype.tickAfter=mr.prototype.ia,mr.prototype.tickNow=mr.prototype.Jb;function S_e(o,u){return o.concat(u)}function k_e(){}function up(o){return o!=null}function zS(o,u){return Promise.race([u,new Promise(function(f,m){new mr(m).ia(o)})])}function Sc(){}function pg(o,u){return o=Jr(o),u=Jr(u),o.split("-")[0]==u.split("-")[0]}function $3(o,u){return o=Jr(o),u=Jr(u),o=o.split("-"),u=u.split("-"),o[0]==u[0]&&o.length==1&&u.length==2}function NI(o,u){return o=Jr(o),u=Jr(u),o=o.split("-"),u=u.split("-"),o.length==2&&u.length==2&&o[0]==u[0]}function Jr(o){o=_(o.split("-x-"));var u=o.next().value;u=u===void 0?"":u,o=o.next().value,o=o===void 0?"":o;var f=_(u.split("-"));return u=f.next().value,u=u===void 0?"":u,f=f.next().value,f=f===void 0?"":f,o=o?"x-"+o:"",u=u.toLowerCase(),u=fq.get(u)||u,f=f.toUpperCase(),(f?u+"-"+f:u)+(o?"-"+o:"")}function Z0(o,u){return o=Jr(o),u=Jr(u),u==o?4:$3(u,o)?3:NI(u,o)?2:$3(o,u)?1:0}function US(o){var u=o.indexOf("-");return o=u>=0?o.substring(0,u):o,o=o.toLowerCase(),o=fq.get(o)||o}function FI(o){return o.language?Jr(o.language):o.audio&&o.audio.language?Jr(o.audio.language):o.video&&o.video.language?Jr(o.video.language):"und"}function HS(o,u){o=Jr(o);var f=new Set;u=_(u);for(var m=u.next();!m.done;m=u.next())f.add(Jr(m.value));for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,m==o)return m;for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,$3(m,o))return m;for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,NI(m,o))return m;for(f=_(f),u=f.next();!u.done;u=f.next())if(u=u.value,$3(o,u))return u;return null}_e("shaka.util.LanguageUtils",Sc),Sc.findClosestLocale=HS,Sc.getLocaleForVariant=FI,Sc.getLocaleForText=function(o){return Jr(o.language||"und")},Sc.getBase=US,Sc.relatedness=Z0,Sc.areSiblings=function(o,u){var f=US(o),m=US(u);return o!=f&&u!=m&&f==m},Sc.normalize=Jr,Sc.isSiblingOf=NI,Sc.isParentOf=$3,Sc.areLanguageCompatible=pg,Sc.areLocaleCompatible=function(o,u){return o=Jr(o),u=Jr(u),o==u};var fq=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function hq(){}function pq(o,u,f,m,b){function C(ze){var Ne=String(ze.width||"")+String(ze.height||"")+String(Math.round(ze.frameRate||0))+(ze.hdr||"")+ze.fastSwitching;return ze.dependencyStream&&(Ne+=ze.dependencyStream.baseOriginalId||""),ze.roles&&(Ne+=ze.roles.sort().join("_")),Ne}function A(ze){var Ne=ze.language+(ze.channelsCount||0)+(ze.audioSamplingRate||0)+ze.roles.join(",")+ze.label+ze.groupId+ze.fastSwitching;return ze.dependencyStream&&(Ne+=ze.dependencyStream.baseOriginalId||""),Ne}if(b.length){var R=o.textStreams;b=_(b);for(var N=b.next(),V={};!N.done;V={Bh:void 0},N=b.next())if(V.Bh=N.value,N=R.filter((function(ze){return function(Ne){return!!(Ne.codecs.startsWith(ze.Bh)||Ne.mimeType.startsWith(ze.Bh))}})(V)),N.length){R=N;break}o.textStreams=R}if(R=o.variants,(u.length||f.length)&&(R=w_e(R,u,f)),m.length){for(u=new Ve,f=_(R),R=f.next();!R.done;R=f.next())R=R.value,u.push(String(R.video.width||0),R);var G=[];u.forEach(function(ze,Ne){ze=0;var Je=[];Ne=_(Ne);for(var lt=Ne.next(),St={};!lt.done;St={Tf:void 0},lt=Ne.next())St.Tf=lt.value,lt=m.filter((function(it){return function(Xe){return it.Tf.decodingInfos[0][Xe]}})(St)).length,lt>ze?(ze=lt,Je=[St.Tf]):lt==ze&&Je.push(St.Tf);G.push.apply(G,T(Je))}),R=G}for(f=new Set,u=new Set,R=_(R),b=R.next();!b.done;b=R.next())b=b.value,b.audio&&f.add(b.audio),b.video&&u.add(b.video);R=Array.from(f).sort(function(ze,Ne){return ze.bandwidth-Ne.bandwidth});var Z=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,N=A(b),V=f.get(N)||[],V.length){var le=V[V.length-1],he=Qs(le.codecs),pe=Qs(b.codecs);he!=pe||b.bandwidth&&le.bandwidth&&!(b.bandwidth>le.bandwidth)||(V.push(b),Z.push(b.id))}else V.push(b),Z.push(b.id);f.set(N,V)}var ye={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};R=Array.from(u).sort(function(ze,Ne){if(!ze.bandwidth||!Ne.bandwidth||ze.bandwidth==Ne.bandwidth){if(ze.codecs&&Ne.codecs&&ze.codecs!=Ne.codecs&&ze.width==Ne.width){var Je=Qs(ze.codecs),lt=Qs(Ne.codecs);if(Je!=lt)return(ye[Je]||1)-(ye[lt]||1)}return ze.width-Ne.width}return ze.bandwidth-Ne.bandwidth}),u=vc();var be=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,N=C(b),V=f.get(N)||[],V.length){if(le=V[V.length-1],!u&&(he=Qs(le.codecs),pe=Qs(b.codecs),he!==pe))continue;he=Qs(le.codecs),pe=Qs(b.codecs),he!=pe||b.bandwidth&&le.bandwidth&&!(b.bandwidth>le.bandwidth)||(V.push(b),be.push(b.id))}else V.push(b),be.push(b.id);f.set(N,V)}o.variants=o.variants.filter(function(ze){var Ne=ze.audio;return ze=ze.video,!(Ne&&!Z.includes(Ne.id)||ze&&!be.includes(ze.id))})}function w_e(o,u,f){u=_(u);for(var m=u.next(),b={};!m.done;b={videoCodec:void 0},m=u.next())if(b.videoCodec=m.value,m=o.filter((function(C){return function(A){return A.video&&A.video.codecs.startsWith(C.videoCodec)}})(b)),m.length){o=m;break}for(f=_(f),u=f.next(),m={};!u.done;m={audioCodec:void 0},u=f.next())if(m.audioCodec=u.value,u=o.filter((function(C){return function(A){return A.audio&&A.audio.codecs.startsWith(C.audioCodec)}})(m)),u.length){o=u;break}return o}function x_e(o,u,f){o.variants=o.variants.filter(function(m){return WS(m,u,f)})}function WS(o,u,f){function m(R,N,V){return R>=N&&R<=V}var b=o.video;if(b&&b.width&&b.height){var C=b.width,A=b.height;if(A>C&&(A=_([A,C]),C=A.next().value,A=A.next().value),!m(C,u.minWidth,Math.min(u.maxWidth,f.width))||!m(A,u.minHeight,Math.min(u.maxHeight,f.height))||!m(b.width*b.height,u.minPixels,u.maxPixels))return!1}return!(o&&o.video&&o.video.frameRate&&!m(o.video.frameRate,u.minFrameRate,u.maxFrameRate)||o&&o.audio&&o.audio.channelsCount&&!m(o.audio.channelsCount,u.minChannelsCount,u.maxChannelsCount)||!m(o.bandwidth,u.minBandwidth,u.maxBandwidth))}function C_e(o,u,f,m){return f=f===void 0?[]:f,m=m===void 0?{}:m,te(function(b){return b.g==1?L(b,vq(o,u,u.offlineSessionIds.length>0,f,m),2):(I_e(u),L(b,L_e(u),0))})}function vq(o,u,f,m,b){var C,A;return te(function(R){if(R.g==1)return Le().Ui()&&E_e(u.variants),L(R,jI(u.variants,f,!1,m),2);C=null,o&&(A=o.g)&&(C=A.keySystem),u.variants=u.variants.filter(function(N){var V=T_e(N,C,b);if(!V){var G=[];N.audio&&G.push(kq(N.audio)),N.video&&G.push(kq(N.video))}return V}),B(R)})}function E_e(o){var u=new Map().set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),f=new Set;o=_(o);for(var m=o.next();!m.done;m=o.next())m=m.value,m.video&&f.add(m.video);for(f=_(f),o=f.next();!o.done;o=f.next()){o=o.value,m=_(u);for(var b=m.next();!b.done;b=m.next()){var C=_(b.value);if(b=C.next().value,C=C.next().value,o.codecs.includes(b)){o.codecs=o.codecs.replace(b,C);break}}}}function T_e(o,u,f){if(!o.decodingInfos.some(function(N){return!(!N.supported||u&&(N=N.keySystemAccess)&&(f[N.keySystem]||N.keySystem)!=u)}))return!1;var m=Le(),b=m.Nb()==="Xbox";m=m.Ua()==="MOBILE"&&m.Ha()==="GECKO";var C=o.video,A=C&&C.width||0,R=C&&C.height||0;return b&&C&&(A>1920||R>1080)&&(C.codecs.includes("avc1.")||C.codecs.includes("avc3."))||(b=C&&C.dependencyStream)&&!Ll(b)?!1:(o=o.audio,!(m&&o&&o.encrypted&&o.codecs.toLowerCase().includes("opus")||o&&o.dependencyStream))}function mq(o,u){var f,m,b,C,A,R,N;return te(function(V){if(V.g==1){for(f=function(G,Z){if(G){var le=En(G);return le.supported=G.supported&&Z.supported,le.powerEfficient=G.powerEfficient&&Z.powerEfficient,le.smooth=G.smooth&&Z.smooth,Z.keySystemAccess&&!le.keySystemAccess&&(le.keySystemAccess=Z.keySystemAccess),le}return Z},m=null,b=[],C=_(u),A=C.next(),R={};!A.done;R={cache:void 0,Pe:void 0},A=C.next())N=A.value,R.Pe=Zn(N),R.cache=YS,R.cache.has(R.Pe)?m=f(m,R.cache.get(R.Pe)):b.push(A_e(N).then((function(G){return function(Z){var le=null;Z=_(Z||[]);for(var he=Z.next();!he.done;he=Z.next())le=f(le,he.value);le&&(G.cache.set(G.Pe,le),m=f(m,le))}})(R)));return L(V,Promise.all(b),2)}m&&o.decodingInfos.push(m),B(V)})}function A_e(o){var u=[""];o.video&&(u=rl(o.video.contentType).split(","));var f=[""];o.audio&&(f=rl(o.audio.contentType).split(","));var m=[];u=_(u);for(var b=u.next();!b.done;b=u.next()){b=b.value;for(var C=_(f),A=C.next(),R={};!A.done;R={Qc:void 0},A=C.next())A=A.value,R.Qc=hn(o),o.video&&(R.Qc.video.contentType=ko(Dl(R.Qc.video.contentType),b)),o.audio&&(R.Qc.audio.contentType=ko(Dl(R.Qc.audio.contentType),A)),m.push(new Promise((function(N){return function(V,G){(Le().Ua()=="MOBILE"?zS(5,navigator.mediaCapabilities.decodingInfo(N.Qc)):navigator.mediaCapabilities.decodingInfo(N.Qc)).then(function(Z){V(Z)}).catch(G)}})(R)))}return Promise.all(m).catch(function(){return JSON.stringify(o),null})}function jI(o,u,f,m){var b,C,A,R,N,V,G,Z,le,he,pe,ye,be,ze,Ne,Je,lt,St;return te(function(it){switch(it.g){case 1:if(o.some(function(Xe){return Xe.decodingInfos.length}))return it.return();b=_(m),C=b.next(),A={};case 2:if(C.done){it.A(4);break}A.Ci=C.value,R=!1,N=_(o),V=N.next();case 5:if(V.done){it.A(7);break}G=V.value,Z=gq(G,u,f).filter((function(Xe){return function(pt){return pt=pt[0],(pt.keySystemConfiguration&&pt.keySystemConfiguration.keySystem)===Xe.Ci}})(A)),le=_(Z),he=le.next();case 8:if(he.done){it.A(10);break}return pe=he.value,L(it,mq(G,pe),9);case 9:he=le.next(),it.A(8);break;case 10:G.decodingInfos.some(function(Xe){return Xe.supported})&&(R=!0),V=N.next(),it.A(5);break;case 7:if(R)return it.return();A={Ci:void 0},C=b.next(),it.A(2);break;case 4:ye=_(o),be=ye.next();case 12:if(be.done){it.A(0);break}ze=be.value,Ne=gq(ze,u,f).filter(function(Xe){return Xe=Xe[0],Xe=Xe.keySystemConfiguration&&Xe.keySystemConfiguration.keySystem,!Xe||!m.includes(Xe)}),Je=_(Ne),lt=Je.next();case 15:if(lt.done){be=ye.next(),it.A(12);break}return St=lt.value,L(it,mq(ze,St),16);case 16:lt=Je.next(),it.A(15)}})}function gq(o,u,f){var m=o.audio,b=o.video,C=[],A=[];if(b)for(var R=_(b.fullMimeTypes),N=R.next();!N.done;N=R.next()){N=N.value;var V=rl(N);if(V.includes(",")&&!m){var G=V.split(","),Z=Dl(N);V=bi("video",G),G=bi("audio",G),G=B3(G,Z),Z=BI(Z,G,"audio"),A.push({contentType:Z,channels:2,bitrate:o.bandwidth||1,samplerate:1,spatialRendering:!1})}if(V=yq(V),N={contentType:BI(Dl(N),V,"video"),width:b.width||64,height:b.height||64,bitrate:b.bandwidth||o.bandwidth||1,framerate:b.frameRate||30},b.hdr)switch(b.hdr){case"PQ":N.transferFunction="pq";break;case"HLG":N.transferFunction="hlg"}b.colorGamut&&(N.colorGamut=b.colorGamut),C.push(N)}if(m)for(R=_(m.fullMimeTypes),N=R.next();!N.done;N=R.next())V=N.value,N=Dl(V),V=B3(rl(V),N),N=BI(N,V,"audio"),A.push({contentType:N,channels:m.channelsCount||2,bitrate:m.bandwidth||o.bandwidth||1,samplerate:m.audioSamplingRate||1,spatialRendering:m.spatialAudio});for(R=[],C.length==0&&C.push(null),A.length==0&&A.push(null),C=_(C),N=C.next();!N.done;N=C.next())for(N=N.value,V=_(A),Z=V.next();!Z.done;Z=V.next())Z=Z.value,G={type:f?"file":"media-source"},N&&(G.video=N),Z&&(G.audio=Z),R.push(G);if(A=(o.video?o.video.drmInfos:[]).concat(o.audio?o.audio.drmInfos:[]),!A.length)return[R];for(o=[],f=new Map,A=_(A),C=A.next();!C.done;C=A.next())C=C.value,f.get(C.keySystem)||f.set(C.keySystem,[]),f.get(C.keySystem).push(C);for(A=u?"required":"optional",u=u?["persistent-license"]:["temporary"],C=_(f.keys()),N=C.next();!N.done;N=C.next()){for(N=N.value,Z=f.get(N),V=new Map,Z=_(Z),G=Z.next();!G.done;G=Z.next()){G=G.value;var le=G.videoRobustness+","+G.audioRobustness;V.get(le)||V.set(le,[]),V.get(le).push(G)}for(V=_(V.values()),Z=V.next();!Z.done;Z=V.next()){Z=Z.value,G=[],le=_(R);for(var he=le.next();!he.done;he=le.next()){he=Object.assign({},he.value);for(var pe={keySystem:N,initDataType:"cenc",persistentState:A,distinctiveIdentifier:"optional",sessionTypes:u},ye=_(Z),be=ye.next();!be.done;be=ye.next()){if(be=be.value,be.initData&&be.initData.length){for(var ze=new Set,Ne=_(be.initData),Je=Ne.next();!Je.done;Je=Ne.next())ze.add(Je.value.initDataType);pe.initDataType=be.initData[0].initDataType}be.distinctiveIdentifierRequired&&(pe.distinctiveIdentifier="required"),be.persistentStateRequired&&(pe.persistentState="required"),be.sessionType&&(pe.sessionTypes=[be.sessionType]),m&&(pe.audio?(be.encryptionScheme&&(pe.audio.encryptionScheme=pe.audio.encryptionScheme||be.encryptionScheme),pe.audio.robustness=pe.audio.robustness||be.audioRobustness):(pe.audio={robustness:be.audioRobustness},be.encryptionScheme&&(pe.audio.encryptionScheme=be.encryptionScheme)),pe.audio.robustness==""&&delete pe.audio.robustness),b&&(pe.video?(be.encryptionScheme&&(pe.video.encryptionScheme=pe.video.encryptionScheme||be.encryptionScheme),pe.video.robustness=pe.video.robustness||be.videoRobustness):(pe.video={robustness:be.videoRobustness},be.encryptionScheme&&(pe.video.encryptionScheme=be.encryptionScheme)),pe.video.robustness==""&&delete pe.video.robustness)}he.keySystemConfiguration=pe,G.push(he)}o.push(G)}}return o}function B3(o,u){var f=Le();return o.toLowerCase()=="flac"?f.Ha()!="WEBKIT"?"flac":"fLaC":o.toLowerCase()==="opus"?f.Ha()!="WEBKIT"?"opus":L3(u)=="mp4"?"Opus":"opus":o.toLowerCase()=="ac-3"&&f.oe()?"ec-3":o}function yq(o){if(o.includes("avc1")){var u=o.split(".");if(u.length==3)return o=u.shift()+".",o+=parseInt(u.shift(),10).toString(16),o+=("000"+parseInt(u.shift(),10).toString(16)).slice(-4)}else if(o=="vp9")return"vp09.00.41.08";return o}function I_e(o){o.textStreams=o.textStreams.filter(function(u){return u=ko(u.mimeType,u.codecs),R3(u)})}function L_e(o){var u,f,m,b,C,A,R;return te(function(N){switch(N.g){case 1:u=[],f=_(o.imageStreams),m=f.next();case 2:if(m.done){N.A(4);break}if(b=m.value,C=b.mimeType,C=="application/mp4"&&b.codecs=="mjpg"&&(C="image/jpg"),XS.has(C)){N.A(5);break}if(A=M_e.get(C),!A){XS.set(C,!1),N.A(5);break}return L(N,D_e(A),7);case 7:R=N.h,XS.set(C,R);case 5:XS.get(C)&&u.push(b),m=f.next(),N.A(2);break;case 4:o.imageStreams=u,B(N)}})}function D_e(o){return new Promise(function(u){var f=new Image;f.src=o,"decode"in f?f.decode().then(function(){u(!0)}).catch(function(){u(!1)}):f.onload=f.onerror=function(){u(f.height===2)}})}function J0(o){var u=o.audio,f=o.video,m=u?u.mimeType:null,b=f?f.mimeType:null,C=u?u.codecs:null,A=f?f.codecs:null,R=u?u.groupId:null,N=[];f&&N.push(f.mimeType),u&&N.push(u.mimeType),N=N[0]||null;var V=[];u&&V.push(u.kind),f&&V.push(f.kind),V=V[0]||null;var G=new Set;if(u)for(var Z=_(u.roles),le=Z.next();!le.done;le=Z.next())G.add(le.value);if(f)for(Z=_(f.roles),le=Z.next();!le.done;le=Z.next())G.add(le.value);if(o={id:o.id,active:!1,type:"variant",bandwidth:o.bandwidth,language:o.language,label:null,videoLabel:null,kind:V,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:N,audioMimeType:m,videoMimeType:b,codecs:"",audioCodec:C,videoCodec:A,primary:o.primary,roles:Array.from(G),audioRoles:null,videoRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:R,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},f&&(o.videoId=f.id,o.originalVideoId=f.originalId,o.width=f.width||null,o.height=f.height||null,o.frameRate=f.frameRate||null,o.pixelAspectRatio=f.pixelAspectRatio||null,o.videoBandwidth=f.bandwidth||null,o.hdr=f.hdr||null,o.colorGamut=f.colorGamut||null,o.videoLayout=f.videoLayout||null,o.videoRoles=f.roles,o.videoLabel=f.label,(m=f.dependencyStream)&&(o.width=m.width||o.width,o.height=m.height||o.height,o.videoCodec=m.codecs||o.videoCodec,o.videoBandwidth&&m.bandwidth&&(o.videoBandwidth+=m.bandwidth)),A.includes(","))){o.channelsCount=f.channelsCount,o.audioSamplingRate=f.audioSamplingRate,o.spatialAudio=f.spatialAudio,o.originalLanguage=f.originalLanguage,o.audioMimeType=b,b=A.split(",");try{o.videoCodec=bi("video",b),o.audioCodec=bi("audio",b)}catch{}}return u&&(o.audioId=u.id,o.originalAudioId=u.originalId,o.channelsCount=u.channelsCount,o.audioSamplingRate=u.audioSamplingRate,o.audioBandwidth=u.bandwidth||null,o.spatialAudio=u.spatialAudio,o.label=u.label,o.audioRoles=u.roles,o.accessibilityPurpose=u.accessibilityPurpose,o.originalLanguage=u.originalLanguage,b=u.dependencyStream)&&(o.audioCodec=b.codecs||o.audioCodec,o.audioBandwidth&&b.bandwidth&&(o.audioBandwidth+=b.bandwidth)),f&&!o.videoBandwidth&&(u?o.audioBandwidth&&(o.videoBandwidth=o.bandwidth-o.audioBandwidth):o.videoBandwidth=o.bandwidth),u&&!o.audioBandwidth&&(f?o.videoBandwidth&&(o.audioBandwidth=o.bandwidth-o.videoBandwidth):o.audioBandwidth=o.bandwidth),u=[],o.videoCodec&&u.push(o.videoCodec),o.audioCodec&&u.push(o.audioCodec),o.codecs=u.join(", "),o}function Q0(o){return{id:o.id,active:!1,type:Cn,bandwidth:o.bandwidth||0,language:o.language,label:o.label,kind:o.kind||null,mimeType:o.mimeType,codecs:o.codecs||null,primary:o.primary,roles:o.roles,accessibilityPurpose:o.accessibilityPurpose,forced:o.forced,originalTextId:o.originalId,originalLanguage:o.originalLanguage}}function VI(o){var u=o.width||null,f=o.height||null,m=null;o.segmentIndex&&(m=ad(o.segmentIndex));var b=o.tilesLayout;return m&&(b=m.tilesLayout||b),b&&u!=null&&(u/=Number(b.split("x")[0])),b&&f!=null&&(f/=Number(b.split("x")[1])),{id:o.id,type:"image",bandwidth:o.bandwidth||0,width:u,height:f,mimeType:o.mimeType,codecs:o.codecs||null,tilesLayout:b||null,originalImageId:o.originalId}}function GS(o){return o.__shaka_id||(o.__shaka_id=R_e++),o.__shaka_id}function bq(o){var u={id:GS(o),active:o.mode!="disabled",type:Cn,bandwidth:0,language:Jr(o.language||"und"),label:o.label,kind:o.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:o.kind=="forced",originalTextId:o.id,originalLanguage:o.language};return o.kind=="captions"&&(u.mimeType="unknown"),o.kind=="subtitles"&&(u.mimeType="text/vtt"),o.kind&&(u.roles=[o.kind]),u}function KS(o,u){var f=o?o.language:null;if(f={id:GS(o||u),active:o?o.enabled:u.selected,type:"variant",bandwidth:0,language:Jr(f||"und"),label:o?o.label:null,videoLabel:null,kind:o?o.kind:null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:o?o.kind=="main":!1,roles:[],forced:!1,audioRoles:null,videoRoles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:u?u.id:null,originalAudioId:o?o.id:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:f},o&&o.kind&&(f.roles=[o.kind],f.audioRoles=[o.kind]),o&&o.configuration&&(o.configuration.codec&&(f.audioCodec=o.configuration.codec,f.codecs=f.audioCodec),o.configuration.bitrate&&(f.audioBandwidth=o.configuration.bitrate,f.bandwidth+=f.audioBandwidth),o.configuration.sampleRate&&(f.audioSamplingRate=o.configuration.sampleRate),o.configuration.numberOfChannels&&(f.channelsCount=o.configuration.numberOfChannels)),u&&u.configuration&&(u.configuration.codec&&(f.videoCodec=u.configuration.codec,f.codecs=f.codecs?f.codecs+(","+f.videoCodec):f.videoCodec),u.configuration.bitrate&&(f.videoBandwidth=u.configuration.bitrate,f.bandwidth+=f.videoBandwidth),u.configuration.framerate&&(f.frameRate=u.configuration.framerate),u.configuration.width&&(f.width=u.configuration.width),u.configuration.height&&(f.height=u.configuration.height),u.configuration.colorSpace&&u.configuration.colorSpace.transfer))switch(u.configuration.colorSpace.transfer){case"pq":f.hdr="PQ";break;case"hlg":f.hdr="HLG";break;case"bt709":f.hdr="SDR"}return f}function N3(o){return o.allowedByApplication&&o.allowedByKeySystem&&o.disabledUntilTime==0}function qS(o){return o.filter(function(u){return N3(u)})}function vg(o,u,f,m){var b=o,C=o.filter(function(N){return N.primary});C.length&&(b=C);var A=b.length?b[0].language:"";if(b=b.filter(function(N){return N.language==A}),u){var R=HS(Jr(u),o.map(function(N){return N.language}));R&&(b=o.filter(function(N){return Jr(N.language)==R}))}if(b=b.filter(function(N){return N.forced==m}),f){if(o=_q(b,f),o.length)return o}else if(o=b.filter(function(N){return N.roles.length==0}),o.length)return o;return o=b.map(function(N){return N.roles}).reduce(S_e,[]),o.length?_q(b,o[0]):b}function _q(o,u){return o.filter(function(f){return f.roles.includes(u)})}function P_e(o){var u=[];return o.audio&&u.push(o.audio),o.video&&u.push(o.video),u}function Sq(o,u){u.length&&(u=u.filter(function(f){return Qs(o.codecs)==Qs(f.codecs)}).sort(function(f,m){return f.bandwidth&&m.bandwidth&&f.bandwidth!=m.bandwidth?f.bandwidth-m.bandwidth:(f.width||0)-(m.width||0)}),o.trickModeVideo=u[0],u.length>1&&(u=u.find(function(f){return o.width==f.width&&o.height==f.height})))&&(o.trickModeVideo=u)}function kq(o){return o.type=="audio"?"type=audio codecs="+o.codecs+" bandwidth="+o.bandwidth+" channelsCount="+o.channelsCount+" audioSamplingRate="+o.audioSamplingRate:o.type=="video"?"type=video codecs="+o.codecs+" bandwidth="+o.bandwidth+" frameRate="+o.frameRate+" width="+o.width+" height="+o.height:"unexpected stream type"}function wq(o,u,f){if(f.autoShowText==0)return!1;if(f.autoShowText==1)return!0;var m=Jr(f.preferredTextLanguage);return u=Jr(u.language),f.autoShowText==2?pg(u,m):f.autoShowText==3?o?(o=Jr(o.language),pg(u,m)&&!pg(o,u)):!1:(at("Invalid autoShowText setting!"),!1)}function xq(o){var u={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]};o=_(o);for(var f=o.next();!f.done;f=o.next()){f=f.value;var m={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:f?Dl(f):"",codecs:f?rl(f):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"video",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};m.fullMimeTypes.add(ko(m.mimeType,m.codecs)),f.startsWith("audio/")?(m.type="audio",u.audio=m):u.video=m}return u}_e("shaka.util.StreamUtils",hq),hq.meetsRestrictions=WS;var YS=new Map,R_e=0,XS=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),M_e=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Ji(){var o=this;this.H=null,this.B=!1,this.u=new Be,this.j=new Oe,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(o.B&&o.g.useNetworkInformation){o.u=new Be,o.g&&o.u.configure(o.g.advanced);var u=o.chooseVariant();u&&navigator.onLine&&o.H(u,o.g.clearBufferSwitch,o.g.safeMarginSwitch)}}),this.o=[],this.I=1,this.J=!1,this.h=this.m=this.g=this.C=null,this.l=new mr(function(){if(o.B&&(o.g.restrictToElementSize||o.g.restrictToScreenSize)){var u=o.chooseVariant();u&&o.H(u,o.g.clearBufferSwitch,o.g.safeMarginSwitch)}}),this.F=i,"documentPictureInPicture"in i&&this.j.D(i.documentPictureInPicture,"enter",function(){o.F=i.documentPictureInPicture.window,o.l&&o.l.Jb(),o.j.Ba(o.F,"pagehide",function(){o.F=i,o.l&&o.l.Jb()})}),this.G=this.i=null}l=Ji.prototype,l.stop=function(){this.H=null,this.B=!1,this.o=[],this.I=1,this.m=this.C=null,this.h&&(this.h.disconnect(),this.h=null),this.l&&this.l.stop(),this.G=this.i=null},l.release=function(){this.stop(),this.j.release(),this.l=null},l.init=function(o){this.H=o},l.chooseVariant=function(o){o=o===void 0?!1:o;var u=1/0,f=1/0;if(this.g.restrictToScreenSize&&(f=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,u=this.F.screen.height*f,f*=this.F.screen.width),this.h&&this.g.restrictToElementSize){var m=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,b=this.m.clientHeight,C=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(b=this.i.height,C=this.i.width),u=Math.min(u,b*m),f=Math.min(f,C*m)}if(b=this.o.filter(function(V){return V&&!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)}),b.length||(b=this.o),m=b,o&&b.length!=this.o.length&&(m=this.o.filter(function(V){return V&&!!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)})),o=zI(this,this.g.restrictions,m,1/0,1/0),u!=1/0||f!=1/0){for(o=O_e(o),o=_(o),b=o.next();!b.done;b=o.next())if(b=b.value,b.height>=u&&b.width>=f){u=b.height,f=b.width;break}o=zI(this,this.g.restrictions,m,u,f)}for(u=this.getBandwidthEstimate(),m.length&&!o.length&&(o=zI(this,null,m,1/0,1/0),o=[o[0]]),f=o[0]||null,m=0;m=C&&u<=A&&(f.bandwidth!=b.bandwidth||f.bandwidth==b.bandwidth&&f.video&&b.video&&(f.video.width=this.g.cacheLoadThreshold&&this.u.sample(b,u),f&&this.C!=null&&this.B&&Cq(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),Cq(this,!0))},l.getBandwidthEstimate=function(){var o=this.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(o=navigator.connection.downlink*1e6),navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth?o:(o=this.u.getBandwidthEstimate(o),this.G?this.G.getBandwidthEstimate(o):o)},l.setVariants=function(o){return rn(o,this.o)?!1:(this.o=o,!0)},l.playbackRateChanged=function(o){this.I=o},l.setMediaElement=function(o){function u(){f.l.ia($_e)}var f=this;this.m=o,this.h&&(this.h.disconnect(),this.h=null),this.m&&"ResizeObserver"in i&&(this.h=new ResizeObserver(u),this.h.observe(this.m)),this.j.D(o,"enterpictureinpicture",function(m){m.pictureInPictureWindow&&(f.i=m.pictureInPictureWindow,f.j.D(f.i,"resize",u))}),this.j.D(o,"leavepictureinpicture",function(){f.i&&f.j.Ma(f.i,"resize",u),f.i=null})},l.setCmsdManager=function(o){this.G=o},l.configure=function(o){this.g=o,this.u&&this.g&&this.u.configure(this.g.advanced)};function Cq(o,u){if(u===void 0||!u){if(!o.J){if(u=o.u,!(u.g>=u.i))return;o.J=!0,o.C-=(o.g.switchInterval-o.g.minTimeToSwitch)*1e3}if(Date.now()-o.C=o.l)if(o.i)o.g=1,o.h=o.j;else throw new De(2,7,1010);return u=o.g,o.g++,u==0?m.return():(f=o.h*(1+(Math.random()*2-1)*o.o),L(m,new Promise(function(b){new mr(b).ia(f/1e3)}),2))}o.h*=o.m,B(m)})}function kc(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function fi(){var o,u,f=new Promise(function(m,b){o=m,u=b});return f.resolve=o,f.reject=u,f}fi.prototype.resolve=function(){},fi.prototype.reject=function(){};function wo(o,u){this.promise=o,this.i=u,this.g=null}function cp(o){return new wo(Promise.reject(o),function(){return Promise.resolve()})}function HI(){var o=Promise.reject(new De(2,7,7001));return o.catch(function(){}),new wo(o,function(){return Promise.resolve()})}function gg(o){return new wo(Promise.resolve(o),function(){return Promise.resolve()})}function Lq(o){return new wo(o,function(){return o.catch(function(){})})}wo.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function Dq(o){return new wo(Promise.all(o.map(function(u){return u.promise})),function(){return Promise.all(o.map(function(u){return u.abort()}))})}wo.prototype.finally=function(o){return this.promise.then(function(){return o(!0)},function(){return o(!1)}),this},wo.prototype.Xa=function(o,u){function f(R){return function(N){if(b.g&&R)C.reject(A);else{var V=R?o:u;V?m=B_e(V,N,C):(R?C.resolve:C.reject)(N)}}}function m(){return C.reject(A),b.abort()}var b=this,C=new fi;C.catch(function(){});var A=new De(2,7,7001);return this.promise.then(f(!0),f(!1)),new wo(C,function(){return m()})};function B_e(o,u,f){try{var m=o(u);return m&&m.promise&&m.abort?(f.resolve(m.promise),function(){return m.abort()}):(f.resolve(m),function(){return Promise.resolve(m).then(function(){},function(){})})}catch(b){return f.reject(b),function(){return Promise.resolve()}}}p.Object.defineProperties(wo.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),_e("shaka.util.AbortableOperation",wo),wo.prototype.chain=wo.prototype.Xa,wo.prototype.finally=wo.prototype.finally,wo.all=Dq,wo.prototype.abort=wo.prototype.abort,wo.notAbortable=Lq,wo.completed=gg,wo.aborted=HI,wo.failed=cp;function kn(o,u){if(u)if(u instanceof Map)for(var f=_(u.keys()),m=f.next();!m.done;m=f.next())m=m.value,Object.defineProperty(this,m,{value:u.get(m),writable:!0,enumerable:!0});else for(f in u)Object.defineProperty(this,f,{value:u[f],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=i.performance&&i.performance.now?i.performance.now():Date.now(),this.type=o,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function Pq(o){var u=new kn(o.type),f;for(f in o)Object.defineProperty(u,f,{value:o[f],writable:!0,enumerable:!0});return u}kn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},kn.prototype.stopImmediatePropagation=function(){this.g=!0},kn.prototype.stopPropagation=function(){},_e("shaka.util.FakeEvent",kn);var e6={rl:"abrstatuschanged",ul:"adaptation",vl:"audiotrackchanged",wl:"audiotrackschanged",xl:"boundarycrossed",yl:"buffering",zl:"canupdatestarttime",Al:"complete",Bl:"currentitemchanged",Cl:"downloadcompleted",Dl:"downloadfailed",El:"downloadheadersreceived",Fl:"drmsessionupdate",Gl:"emsg",Ml:"itemsinserted",Nl:"itemsremoved",bm:"prft",Error:"error",Hl:"expirationupdated",Il:"firstquartile",Jl:"gapjumped",Ol:"keystatuschanged",Rl:"loaded",Sl:"loading",Ul:"manifestparsed",Vl:"manifestupdated",Wl:"mediaqualitychanged",Xl:"mediasourcerecovered",Yl:"metadataadded",Metadata:"metadata",Zl:"midpoint",$l:"nospatialvideoinfo",am:"onstatechange",dm:"ratechange",hm:"segmentappended",im:"sessiondata",jm:"spatialvideoinfo",lm:"stalldetected",nm:"started",om:"statechanged",pm:"streaming",qm:"textchanged",rm:"texttrackvisibility",sm:"thirdquartile",tm:"timelineregionadded",um:"timelineregionenter",vm:"timelineregionexit",wm:"trackschanged",ym:"unloading",Am:"variantchanged"};function Qr(){this.ab=new Ve,this.Fe=this}Qr.prototype.addEventListener=function(o,u){this.ab&&this.ab.push(o,u)},Qr.prototype.removeEventListener=function(o,u){this.ab&&this.ab.remove(o,u)},Qr.prototype.dispatchEvent=function(o){if(!this.ab)return!0;var u=this.ab.get(o.type)||[],f=this.ab.get("All");for(f&&(u=u.concat(f)),u=_(u),f=u.next();!f.done;f=u.next()){f=f.value,o.target=this.Fe,o.currentTarget=this.Fe;try{f.handleEvent?f.handleEvent(o):f.call(this,o)}catch{}if(o.g)break}return o.defaultPrevented},Qr.prototype.release=function(){this.ab=null};function yg(){this.g=[]}function ev(o,u){o.g.push(u.finally(function(){Jt(o.g,u)}))}yg.prototype.destroy=function(){for(var o=[],u=_(this.g),f=u.next();!f.done;f=u.next())f=f.value,f.promise.catch(function(){}),o.push(f.abort());return this.g=[],Promise.all(o)};function Fi(o,u,f,m,b,C,A){Qr.call(this),this.i=null,this.j=!1,this.u=new yg,this.g=new Set,this.h=new Set,this.o=o||null,this.m=u||null,this.B=f||null,this.C=m||null,this.F=b||null,this.H=C||null,this.G=A||null,this.l=new Map}x(Fi,Qr),l=Fi.prototype,l.configure=function(o){this.i=o};function Uf(o,u,f,m){m=m===void 0?!1:m,f=f||Bq;var b=n6.get(o);(!b||f>=b.priority)&&n6.set(o,{priority:f,yf:u,Fk:m})}function Rq(o,u){for(var f=_(o.g),m=f.next();!m.done;m=f.next())u.g.add(m.value);for(o=_(o.h),f=o.next();!f.done;f=o.next())u.h.add(f.value)}l.Ik=function(o){this.g.add(o)},l.hl=function(o){this.g.delete(o)},l.oj=function(){this.g.clear()},l.Jk=function(o){this.h.add(o)},l.il=function(o){this.h.delete(o)},l.pj=function(){this.h.clear()},l.Qh=function(){this.l.clear()};function Vo(o,u,f){return{uris:o,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:u,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:f===void 0?null:f}}l.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),this.l.clear(),Qr.prototype.release.call(this),this.u.destroy()},l.request=function(o,u,f){var m=this,b=new $q;if(this.j){var C=Promise.reject(new De(2,7,7001));return C.catch(function(){}),new t6(C,function(){return Promise.resolve()},b)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?hn(u.retryParameters):kc(),u.uris=hn(u.uris),C=N_e(this,o,u,f);var A=C.Xa(function(){return Mq(m,o,u,f,new Aq(u.retryParameters,!1),0,null,b)}),R=A.Xa(function(le){return F_e(m,o,le,f)}),N=Date.now(),V=0;C.promise.then(function(){V=Date.now()-N},function(){});var G=0;A.promise.then(function(){G=Date.now()},function(){});var Z=R.Xa(function(le){var he=Date.now()-G,pe=le.response;return pe.timeMs+=V,pe.timeMs+=he,le.fk||!m.o||pe.fromCache||u.method=="HEAD"||o!=Vu||m.o(pe.timeMs,pe.data.byteLength,Oq(f),u,f),m.G&&m.G(o,pe,f),pe},function(le){throw le&&(le.severity=2),le});return C=new t6(Z.promise,function(){return Z.abort()},b),ev(this.u,C),C};function N_e(o,u,f,m){function b(R){C=C.Xa(function(){return f.body&&(f.body=we(f.body)),R(u,f,m)})}var C=gg(void 0);o.F&&b(o.F),o=_(o.g);for(var A=o.next();!A.done;A=o.next())b(A.value);return C.Xa(void 0,function(R){throw R instanceof De&&R.code==7001?R:new De(2,1,1006,R)})}function Mq(o,u,f,m,b,C,A,R){o.i.forceHTTP&&(f.uris[C]=f.uris[C].replace("https://","http://")),o.i.forceHTTPS&&(f.uris[C]=f.uris[C].replace("http://","https://")),C>0&&o.H&&o.H(u,m,f.uris[C],f.uris[C-1]);var N=new Yt(f.uris[C]),V=N.bc,G=!1;V||(V=location.protocol,V=V.slice(0,-1),sn(N,V),f.uris[C]=N.toString()),V=V.toLowerCase();var Z=(V=n6.get(V))?V.yf:null;if(!Z)return cp(new De(2,1,1e3,N));var le=V.Fk;(N=o.l.get(N.Db))&&(f.headers["common-access-token"]=N);var he=null,pe=null,ye=!1,be=!1,ze;return Lq(Iq(b)).Xa(function(){if(o.j)return HI();ze=Date.now();var Ne=0;f.requestStartTime=Date.now();var Je=Z(f.uris[C],f,u,function(it,Xe,pt){he&&he.stop(),pe&&pe.ia(St/1e3),o.o&&u==Vu&&(Ne++,f.packetNumber=Ne,o.o(it,Xe,Oq(m),f,m),G=!0,R.g=pt)},function(it){be=!0,f.timeToFirstByte=Date.now()-f.requestStartTime,o.m&&o.m(it,f,u)},{minBytesForProgressEvents:o.i.minBytesForProgressEvents});if(!le)return Je;var lt=f.retryParameters.connectionTimeout;lt&&(he=new mr(function(){ye=!0,Je.abort()}),he.ia(lt/1e3));var St=f.retryParameters.stallTimeout;return St&&(pe=new mr(function(){ye=!0,Je.abort()})),Je}).Xa(function(Ne){he&&he.stop(),pe&&pe.stop(),Ne.timeMs==null&&(Ne.timeMs=Date.now()-ze);var Je=Ne.headers["common-access-token"];if(Je){var lt=new Yt(Ne.uri);o.l.set(lt.Db,Je)}return Je={response:Ne,fk:G},!be&&o.m&&o.m(Ne.headers,f,u),o.B&&o.B(f,Ne),Je},function(Ne){if(he&&he.stop(),pe&&pe.stop(),o.C){var Je=null,lt=0;Ne instanceof De&&(Je=Ne,Ne.code==1001&&(lt=Ne.data[1])),o.C(f,Je,lt,ye)}if(o.j)return HI();if(ye&&(Ne=new De(1,1,1003,f.uris[C],u)),Ne instanceof De){if(Ne.code==7001)throw Ne;if(Ne.code==1010)throw A;if(Ne.severity==1){if(Je=new Map().set("error",Ne),Je=new kn("retry",Je),Je.cancelable=!0,o.dispatchEvent(Je),Je.defaultPrevented)throw Ne;return C=(C+1)%f.uris.length,Mq(o,u,f,m,b,C,Ne,R)}}throw Ne})}function F_e(o,u,f,m){var b=gg(void 0);o=_(o.h);for(var C=o.next(),A={};!C.done;A={Ji:void 0},C=o.next())A.Ji=C.value,b=b.Xa((function(R){return function(){var N=f.response;return N.data&&(N.data=we(N.data)),(0,R.Ji)(u,N,m)}})(A));return b.Xa(function(){return f},function(R){var N=2;if(R instanceof De){if(R.code==7001)throw R;N=R.severity}throw new De(N,1,1007,R)})}function Oq(o){if(o){var u=o.segment;if(o=o.stream,u&&o&&o.fastSwitching&&u.Xc)return!1}return!0}_e("shaka.net.NetworkingEngine",Fi),Fi.prototype.request=Fi.prototype.request,Fi.prototype.destroy=Fi.prototype.destroy,Fi.makeRequest=Vo,Fi.defaultRetryParameters=function(){return kc()},Fi.prototype.clearCommonAccessTokenMap=Fi.prototype.Qh,Fi.prototype.clearAllResponseFilters=Fi.prototype.pj,Fi.prototype.unregisterResponseFilter=Fi.prototype.il,Fi.prototype.registerResponseFilter=Fi.prototype.Jk,Fi.prototype.clearAllRequestFilters=Fi.prototype.oj,Fi.prototype.unregisterRequestFilter=Fi.prototype.hl,Fi.prototype.registerRequestFilter=Fi.prototype.Ik,Fi.unregisterScheme=function(o){n6.delete(o)},Fi.registerScheme=Uf,Fi.prototype.configure=Fi.prototype.configure;function $q(){this.g=0}Fi.NumBytesRemainingClass=$q;function t6(o,u,f){wo.call(this,o,u),this.h=f}x(t6,wo),Fi.PendingRequest=t6;var Vu=1;Fi.RequestType={MANIFEST:0,SEGMENT:Vu,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Fi.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var Bq=3;Fi.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Bq};var n6=new Map;function bg(o){this.g=!1,this.h=new fi,this.i=o}bg.prototype.destroy=function(){var o=this;return this.g?this.h:(this.g=!0,this.i().then(function(){o.h.resolve()},function(){o.h.resolve()}))};function Ii(o,u){if(o.g)throw u instanceof De&&u.code==7003?u:new De(2,7,7003,u)}function WI(o,u){var f=[];o=_(o);for(var m=o.next();!m.done;m=o.next())f.push(u(m.value));return f}function j_e(o,u){o=_(o);for(var f=o.next();!f.done;f=o.next())if(!u(f.value))return!1;return!0}function _g(o){for(var u=new Map,f=_(Object.keys(o)),m=f.next();!m.done;m=f.next())m=m.value,u.set(m,o[m]);return u}function GI(o){var u={};return o.forEach(function(f,m){u[m]=f}),u}function $i(o,u){this.h=ot(o),this.i=u==Nq,this.g=0}l=$i.prototype,l.Ia=function(){return this.g2097151)throw new De(2,3,3001);return this.g+=8,u*4294967296+o},l.Tb=function(o,u){if(this.g+o>this.h.byteLength)throw Hf();var f=Te(this.h,this.g,o);return this.g+=o,u?new Uint8Array(f):f},l.skip=function(o){if(this.g+o>this.h.byteLength)throw Hf();this.g+=o},l.Ki=function(o){if(this.gthis.h.byteLength)throw Hf();this.g=o},l.Yc=function(){for(var o=this.g;this.Ia()&&this.h.getUint8(this.g)!=0;)this.g+=1;return o=Te(this.h,o,this.g-o),this.g+=1,ut(o)};function Hf(){return new De(2,3,3e3)}_e("shaka.util.DataViewReader",$i),$i.prototype.readTerminatedString=$i.prototype.Yc,$i.prototype.seek=$i.prototype.seek,$i.prototype.rewind=$i.prototype.Ki,$i.prototype.skip=$i.prototype.skip,$i.prototype.readBytes=$i.prototype.Tb,$i.prototype.readUint64=$i.prototype.Dd,$i.prototype.readInt32=$i.prototype.Zg,$i.prototype.readUint32=$i.prototype.U,$i.prototype.readUint16=$i.prototype.Ca,$i.prototype.readUint8=$i.prototype.Y,$i.prototype.getLength=$i.prototype.getLength,$i.prototype.getPosition=$i.prototype.Oa,$i.prototype.hasMoreData=$i.prototype.Ia;var Nq=1;$i.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Nq};function hi(){this.i=new Map,this.h=new Map,this.g=!1}l=hi.prototype,l.box=function(o,u){return o=Fq(o),this.i.set(o,V_e),this.h.set(o,u),this},l.S=function(o,u){return o=Fq(o),this.i.set(o,jq),this.h.set(o,u),this},l.stop=function(){this.g=!0},l.parse=function(o,u,f){for(o=new $i(o,0),this.g=!1;o.Ia()&&!this.g;)this.zd(0,o,u,f)},l.zd=function(o,u,f,m){var b=u.Oa();if(m&&b+8>u.getLength())this.g=!0;else{var C=u.U(),A=u.U(),R=i6(A),N=!1;switch(C){case 0:C=u.getLength()-b;break;case 1:if(m&&u.Oa()+8>u.getLength()){this.g=!0;return}C=u.Dd(),N=!0}var V=this.h.get(A);if(V){var G=null,Z=null;if(this.i.get(A)==jq){if(m&&u.Oa()+4>u.getLength()){this.g=!0;return}Z=u.U(),G=Z>>>24,Z&=16777215}A=b+C,f&&A>u.getLength()&&(A=u.getLength()),m&&A>u.getLength()?this.g=!0:(A-=u.Oa(),u=A>0?u.Tb(A,!1):new Uint8Array(0),u=new $i(u,0),V({name:R,parser:this,partialOkay:f||!1,stopOnPartial:m||!1,version:G,flags:Z,reader:u,size:C,start:b+o,has64BitSize:N}))}else u.skip(Math.min(b+C-u.Oa(),u.getLength()-u.Oa()))}};function lr(o){for(var u=dp(o);o.reader.Ia()&&!o.parser.g;)o.parser.zd(o.start+u,o.reader,o.partialOkay,o.stopOnPartial)}function Wf(o){for(var u=dp(o),f=o.reader.U(),m=0;m>24&255,o>>16&255,o>>8&255,o&255)}function dp(o){return 8+(o.has64BitSize?8:0)+(o.flags!=null?4:0)}_e("shaka.util.Mp4Parser",hi),hi.headerSize=dp,hi.typeToString=i6,hi.allData=Sg,hi.audioSampleEntry=r6,hi.visualSampleEntry=Pl,hi.sampleDescription=Wf,hi.children=lr,hi.prototype.parseNext=hi.prototype.zd,hi.prototype.parse=hi.prototype.parse,hi.prototype.stop=hi.prototype.stop,hi.prototype.fullBox=hi.prototype.S,hi.prototype.box=hi.prototype.box;var V_e=0,jq=1;function KI(o){var u=this;this.g=[],this.h=[],this.data=[],new hi().box("moov",lr).box("moof",lr).S("pssh",function(f){if(!(f.version>1)){var m=Te(f.reader.h,-12,f.size);if(u.data.push(m),m=f.reader.Tb(16,!1),u.g.push(Ln(m)),f.version>0){m=f.reader.U();for(var b=0;b0&&(C+=4+16*f.size);var A=new Uint8Array(C),R=ot(A),N=0;if(R.setUint32(N,C),N+=4,R.setUint32(N,1886614376),N+=4,m<1?R.setUint32(N,0):R.setUint32(N,16777216),N+=4,A.set(u,N),N+=u.length,m>0)for(R.setUint32(N,f.size),N+=4,u=_(f),f=u.next();!f.done;f=u.next())f=ir(f.value),A.set(f,N),N+=f.length;return R.setUint32(N,b),A.set(o,N+4),A}function s6(o){var u=this;this.F=o,this.j=this.B=null,this.qa=this.T=!1,this.J=0,this.g=null,this.o=new Oe,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new fi,this.h=null,this.u=function(f){f.severity==2&&u.m.reject(f),o.onError(f)},this.aa=new Map,this.ma=new Map,this.M=new mr(function(){return J_e(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new mr(function(){eSe(u)}),this.m.catch(function(){}),this.l=new bg(function(){return z_e(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=s6.prototype,l.destroy=function(){return this.l.destroy()};function z_e(o){return te(function(u){switch(u.g){case 1:return o.o.release(),o.o=null,o.m.reject(),o.G.stop(),o.G=null,o.M.stop(),o.M=null,L(u,j3(o),2);case 2:if(!o.j){u.A(3);break}return j(u,4),L(u,o.j.setMediaKeys(null),6);case 6:U(u,5);break;case 4:W(u);case 5:o.j=null;case 3:o.g=null,o.B=null,o.C=new Map,o.h=null,o.u=function(){},o.F=null,o.O=!1,o.I=null,B(u)}})}l.configure=function(o,u){this.h=o,u&&(this.V=u),this.G&&this.T&&this.g&&this.G.Ea(this.h.updateExpirationTime)};function U_e(o,u,f){return o.qa=!0,o.C=new Map,o.R=f,zq(o,u,!1)}function Vq(o,u,f,m){m=m===void 0?!0:m,o.C=new Map,f=_(f);for(var b=f.next();!b.done;b=f.next())o.C.set(b.value,{initData:null,initDataType:null});for(f=_(o.h.persistentSessionsMetadata),b=f.next();!b.done;b=f.next())b=b.value,o.C.set(b.sessionId,{initData:b.initData,initDataType:b.initDataType});return o.R=o.C.size>0,zq(o,u,m)}function H_e(o,u,f,m,b,C){var A,R,N,V,G;return te(function(Z){return Z.g==1?(A=[],C.length&&A.push(C[0].contentType),b.length&&A.push(b[0].contentType),R=function(le){return le=hr(u,le,null),le.licenseServerUri=f,le.serverCertificate=m,le.persistentStateRequired=!0,le.sessionType="persistent-license",le},N=xq(A),N.video&&(V=R(C[0].encryptionScheme||""),N.video.drmInfos.push(V)),N.audio&&(G=R(b[0].encryptionScheme||""),N.audio.drmInfos.push(G)),L(Z,jI([N],!0,o.O,[]),2)):(Ii(o.l),Z.return(Gq(o,[N])))})}function zq(o,u,f){var m,b,C,A,R,N,V,G,Z,le,he,pe,ye,be,ze,Ne,Je,lt;return te(function(St){if(St.g==1){for(Jq(o.h.clearKeys,u),m=u.some(function(it){return!!(it.video&&it.video.drmInfos.length||it.audio&&it.audio.drmInfos.length)}),b=_g(o.h.servers),C=_g(o.h.advanced||{}),!m&&f&&nSe(u,b),A=new WeakSet,R=_(u),N=R.next();!N.done;N=R.next())for(V=N.value,G=Zq(V),Z=_(G),le=Z.next();!le.done;le=Z.next())he=le.value,A.has(he)||(A.add(he),iSe(he,b,C,o.h.keySystemsMapping));for(pe=function(it,Xe){var pt=[];it=_(it);for(var _t=it.next();!_t.done;_t=it.next()){_t=_t.value;var bt=_t[Xe]||C.has(_t.keySystem)&&C.get(_t.keySystem)[Xe]||"",kt;if((kt=bt=="")&&(kt=(kt=_t.keySystem)?!!kt.match(/^com\.widevine\.alpha/):!1),kt&&(Xe=="audioRobustness"?bt=[o.h.defaultAudioRobustnessForWidevine]:Xe=="videoRobustness"&&(bt=[o.h.defaultVideoRobustnessForWidevine])),typeof bt=="string")pt.push(_t);else if(Array.isArray(bt))for(bt.length===0&&(bt=[""]),bt=_(bt),kt=bt.next();!kt.done;kt=bt.next()){var wt={};pt.push(Object.assign({},_t,(wt[Xe]=kt.value,wt)))}}return pt},ye=new WeakSet,be=_(u),ze=be.next();!ze.done;ze=be.next())Ne=ze.value,Ne.video&&!ye.has(Ne.video)&&(Ne.video.drmInfos=pe(Ne.video.drmInfos,"videoRobustness"),Ne.video.drmInfos=pe(Ne.video.drmInfos,"audioRobustness"),ye.add(Ne.video)),Ne.audio&&!ye.has(Ne.audio)&&(Ne.audio.drmInfos=pe(Ne.audio.drmInfos,"videoRobustness"),Ne.audio.drmInfos=pe(Ne.audio.drmInfos,"audioRobustness"),ye.add(Ne.audio));return L(St,jI(u,o.R,o.O,o.h.preferredKeySystems),2)}return Ii(o.l),Je=m||b.size>0,Je?(lt=Gq(o,u),St.return(m?lt:lt.catch(function(){}))):(o.T=!0,St.return(Promise.resolve()))})}function Uq(o){var u;return te(function(f){switch(f.g){case 1:if(o.j.mediaKeys)return f.return();if(!o.I){f.A(2);break}return L(f,o.I,3);case 3:return Ii(o.l),f.return();case 2:return j(f,4),o.I=o.j.setMediaKeys(o.B),L(f,o.I,6);case 6:U(f,5);break;case 4:u=W(f),o.u(new De(2,6,6003,u.message));case 5:Ii(o.l),B(f)}})}function W_e(o,u){return te(function(f){if(f.g==1)return L(f,Uq(o),2);F3(o,u.initDataType,Te(u.initData)),B(f)})}l.fc=function(o){var u=this,f,m;return te(function(b){if(b.g==1)return u.j===o?b.return():u.B?(u.j=o,u.h.delayLicenseRequestUntilPlayed&&u.o.Ba(u.j,"play",function(){for(var C=_(u.N),A=C.next();!A.done;A=C.next())YI(u,A.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return j3(u)}),u.o.D(u.j.remote,"connecting",function(){return j3(u)}),u.o.D(u.j.remote,"disconnect",function(){return j3(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return j3(u)}),u.H=u.g&&u.g.initData.find(function(C){return C.initData.length>0})||null,f=u.g.keySystem,(m=Le().Rg(f))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?b.A(2):L(b,Uq(u),2)):(u.o.Ba(o,"encrypted",function(){u.u(new De(2,6,6010))}),b.return());Hq(u).catch(function(){}),!m&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(C){return W_e(u,C)}),B(b)})};function G_e(o){var u,f,m,b,C;return te(function(A){switch(A.g){case 1:if(!o.B||!o.g)return A.return();if(!o.g.serverCertificateUri||o.g.serverCertificate&&o.g.serverCertificate.length){A.A(2);break}return u=Vo([o.g.serverCertificateUri],o.h.retryParameters),j(A,3),f=o.F.tc.request(5,u,{isPreload:o.V()}),L(A,f.promise,5);case 5:m=A.h,o.g.serverCertificate=Te(m.data),U(A,4);break;case 3:throw b=W(A),new De(2,6,6017,b);case 4:if(o.l.g)return A.return();case 2:return!o.g.serverCertificate||!o.g.serverCertificate.length?A.return():(j(A,6),L(A,o.B.setServerCertificate(o.g.serverCertificate),8));case 8:U(A,0);break;case 6:throw C=W(A),new De(2,6,6004,C.message)}})}function K_e(o,u){var f,m,b;return te(function(C){if(C.g==1)return L(C,qq(o,u,{initData:null,initDataType:null}),2);if(C.g!=3)return f=C.h,f?(m=[],(b=o.i.get(f))&&(b.Kb=new fi,m.push(b.Kb)),m.push(f.remove()),L(C,Promise.all(m),3)):C.return();o.i.delete(f),B(C)})}function Hq(o){var u,f,m,b,C;return te(function(A){if(A.g==1)return o.C.size?(o.C.forEach(function(R,N){qq(o,N,R)}),L(A,o.m,3)):A.A(2);if(A.g!=2){if(u=o.g&&o.g.keyIds||new Set([]),u.size>0&&tSe(o))return A.return(o.m);o.K=!1,o.m=new fi,o.m.catch(function(){})}for(f=(o.g?o.g.initData:[])||[],m=_(f),b=m.next();!b.done;b=m.next())C=b.value,F3(o,C.initDataType,C.initData);return V3(o)&&o.m.resolve(),A.return(o.m)})}function F3(o,u,f){if(f.length){if(o.h.ignoreDuplicateInitData){var m=o.i.values();m=_(m);for(var b=m.next();!b.done;b=m.next())if(ke(f,b.value.initData))return;var C=!1;if(o.C.forEach(function(A){!C&&ke(f,A.initData)&&(C=!0)}),C)return}o.K=!0,o.i.size>0&&V3(o)&&(o.m.resolve(),o.K=!1,o.m=new fi,o.m.catch(function(){})),X_e(o,u,f,o.g.sessionType)}}function Wq(o){return o=o.i.keys(),o=WI(o,function(u){return u.sessionId}),Array.from(o)}l.Gg=function(){var o=this,u=this.i.keys();return u=WI(u,function(f){var m=o.i.get(f);return{sessionId:f.sessionId,sessionType:m.type,initData:m.initData,initDataType:m.initDataType}}),Array.from(u)},l.Wd=function(){var o=1/0,u=this.i.keys();u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,isNaN(f.expiration)||(o=Math.min(o,f.expiration));return o};function q_e(o){return o.J?o.J:NaN}l.Xe=function(){return GI(this.ma)};function Gq(o,u){var f,m,b,C,A,R,N;return te(function(V){switch(V.g){case 1:if(f=new Map,m=Y_e(o,u,f),!m)throw navigator.requestMediaKeySystemAccess?new De(2,6,6001):new De(2,6,6020);Ii(o.l),j(V,2),m.getConfiguration();var G=b=o.h.keySystemsMapping[m.keySystem]||m.keySystem,Z=f.get(b),le=[],he=[],pe=[],ye=[],be=[],ze=new Set,Ne=new Set;rSe(Z,le,he,ye,pe,be,ze,Ne);var Je=o.R?"persistent-license":"temporary";for(G={keySystem:G,encryptionScheme:le[0],licenseServerUri:he[0],distinctiveIdentifierRequired:Z[0].distinctiveIdentifierRequired,persistentStateRequired:Z[0].persistentStateRequired,sessionType:Z[0].sessionType||Je,audioRobustness:Z[0].audioRobustness||"",videoRobustness:Z[0].videoRobustness||"",serverCertificate:ye[0],serverCertificateUri:pe[0],initData:be,keyIds:ze},Ne.size>0&&(G.keySystemUris=Ne),Z=_(Z),Ne=Z.next();!Ne.done;Ne=Z.next())Ne=Ne.value,Ne.distinctiveIdentifierRequired&&(G.distinctiveIdentifierRequired=Ne.distinctiveIdentifierRequired),Ne.persistentStateRequired&&(G.persistentStateRequired=Ne.persistentStateRequired);if(o.g=G,!o.g.licenseServerUri)throw new De(2,6,6012,o.g.keySystem);return L(V,m.createMediaKeys(),4);case 4:if(C=V.h,Ii(o.l),o.B=C,!(o.h.minHdcpVersion!=""&&"getStatusForPolicy"in o.B)){V.A(5);break}return j(V,6),L(V,o.B.getStatusForPolicy({minHdcpVersion:o.h.minHdcpVersion}),8);case 8:if(A=V.h,A!="usable")throw new De(2,6,6018);Ii(o.l),U(V,5,2);break;case 6:throw R=W(V,2),R instanceof De?R:new De(2,6,6019,R.message);case 5:return o.T=!0,o.G.Ea(o.h.updateExpirationTime),L(V,G_e(o),9);case 9:Ii(o.l),U(V,0);break;case 2:throw N=W(V),Ii(o.l,N),o.g=null,N instanceof De?N:new De(2,6,6002,N.message)}})}function Y_e(o,u,f){for(var m=_(u),b=m.next();!b.done;b=m.next()){b=_(Zq(b.value));for(var C=b.next();!C.done;C=b.next())C=C.value,f.has(C.keySystem)||f.set(C.keySystem,[]),f.get(C.keySystem).push(C)}if(f.size==1&&f.has(""))throw new De(2,6,6e3);m=o.h.preferredKeySystems,m.length||(b=_g(o.h.servers),b.size==1&&(m=Array.from(b.keys()))),b=_(m);var A=b.next();for(C={};!A.done;C={Di:void 0},A=b.next()){C.Di=A.value,A=_(u);for(var R=A.next();!R.done;R=A.next())if(R=R.value.decodingInfos.find((function(Z){return function(le){return le.supported&&le.keySystemAccess!=null&&le.keySystemAccess.keySystem==Z.Di}})(C)))return R.keySystemAccess}for(b=_([!0,!1]),C=b.next();!C.done;C=b.next())for(C=C.value,A=_(u),R=A.next();!R.done;R=A.next()){R=_(R.value.decodingInfos);for(var N=R.next();!N.done;N=R.next())if(N=N.value,N.supported&&N.keySystemAccess){var V=N.keySystemAccess.keySystem;if(!m.includes(V)){var G=f.get(V);for(!G&&o.h.keySystemsMapping[V]&&(G=f.get(o.h.keySystemsMapping[V])),V=_(G),G=V.next();!G.done;G=V.next())if(!!G.value.licenseServerUri==C)return N.keySystemAccess}}}return null}function qI(o){V3(o)&&o.m.resolve()}function Kq(o,u){new mr(function(){u.loaded=!0,qI(o)}).ia(sSe)}function qq(o,u,f){var m,b,C,A,R,N,V;return te(function(G){switch(G.g){case 1:try{m=o.B.createSession("persistent-license")}catch(Z){return b=new De(2,6,6005,Z.message),o.u(b),G.return(Promise.reject(b))}return o.o.D(m,"message",function(Z){o.j&&o.h.delayLicenseRequestUntilPlayed&&o.j.paused&&!o.$?o.N.push(Z):YI(o,Z)}),o.o.D(m,"keystatuseschange",function(Z){return Yq(o,Z)}),C={initData:f.initData,initDataType:f.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},o.i.set(m,C),j(G,2),L(G,m.load(u),4);case 4:return A=G.h,Ii(o.l),A||(o.i.delete(m),R=o.h.persistentSessionOnlinePlayback?1:2,o.u(new De(R,6,6013)),C.loaded=!0),Kq(o,C),qI(o),G.return(m);case 2:N=W(G),Ii(o.l,N),o.i.delete(m),V=o.h.persistentSessionOnlinePlayback?1:2,o.u(new De(V,6,6005,N.message)),C.loaded=!0,qI(o);case 3:return G.return(Promise.resolve())}})}function X_e(o,u,f,m){try{var b=o.B.createSession(m)}catch(C){o.u(new De(2,6,6005,C.message));return}o.o.D(b,"message",function(C){o.j&&o.h.delayLicenseRequestUntilPlayed&&o.j.paused&&!o.$?o.N.push(C):YI(o,C)}),o.o.D(b,"keystatuseschange",function(C){return Yq(o,C)}),o.i.set(b,{initData:f,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:m});try{f=o.h.initDataTransform(f,u,o.g)}catch(C){u=C,C instanceof De||(u=new De(2,6,6016,C)),o.u(u);return}o.h.logLicenseExchange&&Yn(f),b.generateRequest(u,f).catch(function(C){if(!o.l.g){o.i.delete(b);var A=C.errorCode;if(A&&A.systemCode){var R=A.systemCode;R<0&&(R+=4294967296),R="0x"+R.toString(16)}o.u(new De(2,6,6006,C.message,C,R))}})}function Z_e(o){return te(function(u){return u.g==1?o.K?L(u,o.m,3):u.A(0):L(u,Promise.all(o.X.map(function(f){return f.promise})),0)})}function YI(o,u){var f,m,b,C,A,R,N,V,G,Z,le,he,pe,ye,be,ze;te(function(Ne){switch(Ne.g){case 1:if(f=u.target,o.h.logLicenseExchange&&Yn(u.message),m=o.i.get(f),b=o.g.licenseServerUri,C=o.h.advanced[o.g.keySystem],u.messageType=="individualization-request"&&C&&C.individualizationServer&&(b=C.individualizationServer),A=Vo([b],o.h.retryParameters),A.body=u.message,A.method="POST",A.licenseRequestType=u.messageType,A.sessionId=f.sessionId,A.drmInfo=o.g,m&&(A.initData=m.initData,A.initDataType=m.initDataType),C&&C.headers)for(R in C.headers)A.headers[R]=C.headers[R];if(o.g.keySystem==="org.w3.clearkey"){var Je=A,lt=o.g;try{var St=Qt(Je.body);if(St){var it=JSON.parse(St);it.type||(it.type=lt.sessionType,Je.body=Kt(JSON.stringify(it)))}}catch{}}if(UI(o.g.keySystem))if(Je=Mt(A.body,!0,!0),Je.includes("PlayReadyKeyMessage")){for(Je=di(Je,"PlayReadyKeyMessage"),lt=Da(Je,"HttpHeader"),lt=_(lt),St=lt.next();!St.done;St=lt.next())it=St.value,St=Da(it,"name")[0],it=Da(it,"value")[0],A.headers[_r(St)]=_r(it);Je=Da(Je,"Challenge")[0],A.body=fr(_r(Je))}else A.headers["Content-Type"]="text/xml; charset=utf-8";return N=Date.now(),j(Ne,2),G=o.F.tc.request(2,A,{isPreload:o.V()}),o.X.push(G),L(Ne,G.promise,4);case 4:V=Ne.h,Jt(o.X,G),U(Ne,3);break;case 2:return Z=W(Ne),o.l.g||(le={sessionId:f.sessionId,sessionType:m.type,initData:m.initData,initDataType:m.initDataType},he=new De(2,6,6007,Z,le),o.i.size==1?(o.u(he),m&&m.Kb&&m.Kb.reject(he)):(m&&m.Kb&&m.Kb.reject(he),o.i.delete(f),V3(o)&&(o.m.resolve(),o.M.ia(.1)))),Ne.return();case 3:return o.l.g?Ne.return():(o.J+=(Date.now()-N)/1e3,o.h.logLicenseExchange&&Yn(V.data),j(Ne,5),L(Ne,f.update(V.data),7));case 7:U(Ne,6);break;case 5:return ye=(pe=W(Ne))&&pe.message||String(pe),be=new De(2,6,6008,ye),o.u(be),m&&m.Kb&&m.Kb.reject(be),Ne.return();case 6:if(o.l.g)return Ne.return();ze=new kn("drmsessionupdate"),o.F.onEvent(ze),m&&(m.Kb&&m.Kb.resolve(),Kq(o,m)),B(Ne)}})}function Yq(o,u){u=u.target;var f=o.i.get(u),m=!1;u.keyStatuses.forEach(function(C,A){if(typeof A=="string"){var R=A;A=C,C=R}if(R=Le(),UI(o.g.keySystem)&&A.byteLength==16&&R.gh()){R=ot(A);var N=R.getUint32(0,!0),V=R.getUint16(4,!0),G=R.getUint16(6,!0);R.setUint32(0,N,!1),R.setUint16(4,V,!1),R.setUint16(6,G,!1)}C!="status-pending"&&(f.loaded=!0),C=="expired"&&(m=!0),A=Ln(A).slice(0,32),o.aa.set(A,C)});var b=u.expiration-Date.now();(b<0||m&&b<1e3)&&f&&!f.Kb&&(o.i.delete(u),Xq(u)),V3(o)&&(o.m.resolve(),o.M.ia(aSe))}function J_e(o){var u=o.aa,f=o.ma;f.clear(),u.forEach(function(m,b){return f.set(b,m)}),u=Array.from(f.values()),u.length&&u.every(function(m){return m=="expired"})&&o.u(new De(2,6,6014)),o.F.vf(GI(f))}function Q_e(){var o,u,f,m,b,C,A,R,N,V,G,Z,le,he,pe,ye,be,ze,Ne,Je,lt,St,it,Xe,pt,_t,bt,kt,wt,Bt,Nt,Tt;return te(function(Dt){if(Dt.g==1){if(o="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" "),!(i.MediaKeys&&i.navigator&&i.navigator.requestMediaKeySystemAccess&&i.MediaKeySystemAccess&&i.MediaKeySystemAccess.prototype.getConfiguration)){for(u={},f=_(o),m=f.next();!m.done;m=f.next())b=m.value,u[b]=null;return Dt.return(u)}for(C="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),A=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],R=["150","2000","3000"],N={"com.widevine.alpha":A,"com.widevine.alpha.experiment":A,"com.microsoft.playready.recommendation":R},V=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],G=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],Z={videoCapabilities:V,audioCapabilities:G,initDataTypes:["cenc","sinf","skd","keyids"]},le=[null,"cenc","cbcs"],he=new Map,pe=Le(),ye=function(qt,an,Jn){var xn,Lr,yr,ti,Sr,$n,Ei,Rr,Dr,pr,Ui,Vi,io;return te(function(ai){switch(ai.g){case 1:return j(ai,2),L(ai,an.createMediaKeys(),5);case 5:xn=ai.h;case 4:U(ai,3);break;case 2:return W(ai),ai.return();case 3:if(yr=(Lr=an.getConfiguration().sessionTypes)?Lr.includes("persistent-license"):!1,pe.ti()&&(yr=!1),ti=an.getConfiguration().videoCapabilities,Sr=an.getConfiguration().audioCapabilities,$n={persistentState:yr,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},he.get(qt)?$n=he.get(qt):he.set(qt,$n),(Ei=ti[0].encryptionScheme)&&!$n.encryptionSchemes.includes(Ei)&&$n.encryptionSchemes.push(Ei),(Rr=ti[0].robustness)&&!$n.videoRobustnessLevels.includes(Rr)&&$n.videoRobustnessLevels.push(Rr),(Dr=Sr[0].robustness)&&!$n.audioRobustnessLevels.includes(Dr)&&$n.audioRobustnessLevels.push(Dr),!(Jn&&"getStatusForPolicy"in xn)){ai.A(0);break}pr=_(C),Ui=pr.next();case 7:if(Ui.done){ai.A(0);break}if(Vi=Ui.value,$n.minHdcpVersions.includes(Vi)){ai.A(8);break}return L(ai,xn.getStatusForPolicy({minHdcpVersion:Vi}),10);case 10:if(io=ai.h,io=="usable")$n.minHdcpVersions.includes(Vi)||$n.minHdcpVersions.push(Vi);else{ai.A(0);break}case 8:Ui=pr.next(),ai.A(7)}})},be=function(qt,an,Jn,xn,Lr){Lr=Lr===void 0?!1:Lr;var yr,ti,Sr,$n,Ei,Rr,Dr,pr,Ui,Vi,io;return te(function(ai){switch(ai.g){case 1:for(j(ai,2),yr=hn(Z),ti=_(yr.videoCapabilities),Sr=ti.next();!Sr.done;Sr=ti.next())$n=Sr.value,$n.encryptionScheme=an,$n.robustness=Jn;for(Ei=_(yr.audioCapabilities),Rr=Ei.next();!Rr.done;Rr=Ei.next())Dr=Rr.value,Dr.encryptionScheme=an,Dr.robustness=xn;return pr=hn(yr),pr.persistentState="required",pr.sessionTypes=["persistent-license"],Ui=[pr,yr],io=Le(),io.Ua()=="MOBILE"?L(ai,zS(5,navigator.requestMediaKeySystemAccess(qt,Ui)),7):L(ai,navigator.requestMediaKeySystemAccess(qt,Ui),6);case 6:Vi=ai.h,ai.A(5);break;case 7:Vi=ai.h;case 5:return L(ai,ye(qt,Vi,Lr),8);case 8:U(ai,0);break;case 2:W(ai),B(ai)}})},ze=_(o),Ne=ze.next();!Ne.done;Ne=ze.next())Je=Ne.value,he.set(Je,null);for(lt=function(qt){return!(Le().Ha()==="WEBKIT"&&qt==="org.w3.clearkey")},St=[],it=_(o),Xe=it.next();!Xe.done;Xe=it.next())if(pt=Xe.value,lt(pt)){for(_t=!0,bt=_(le),kt=bt.next();!kt.done;kt=bt.next())wt=kt.value,St.push(be(pt,wt,"","",_t)),_t=!1;for(Bt=_(N[pt]||[]),Nt=Bt.next();!Nt.done;Nt=Bt.next())Tt=Nt.value,St.push(be(pt,null,Tt,"")),St.push(be(pt,null,"",Tt))}return L(Dt,Promise.all(St),2)}return Dt.return(GI(he))})}function Xq(o){return te(function(u){if(u.g==1)return j(u,2),L(u,zS(oSe,Promise.all([o.close().catch(function(){}),o.closed])),4);if(u.g!=2)return U(u,0);W(u),B(u)})}function j3(o){var u;return te(function(f){return u=Array.from(o.i.entries()),o.i.clear(),L(f,Promise.all(u.map(function(m){m=_(m);var b=m.next().value,C=m.next().value;return te(function(A){if(A.g==1)return j(A,2),o.qa||o.C.has(b.sessionId)||C.type!=="persistent-license"||o.h.persistentSessionOnlinePlayback?L(A,Xq(b),5):L(A,b.remove(),5);if(A.g!=2)return U(A,0);W(A),B(A)})})),0)})}function Zq(o){return(o.video?o.video.drmInfos:[]).concat(o.audio?o.audio.drmInfos:[])}function eSe(o){o.i.forEach(function(u,f){var m=u.Ug,b=f.expiration;isNaN(b)&&(b=1/0),b!=m&&(o.F.onExpirationUpdated(f.sessionId,b),u.Ug=b)})}function V3(o){return o=o.i.values(),j_e(o,function(u){return u.loaded})}function tSe(o){for(var u=_(o.g&&o.g.keyIds||new Set([])),f=u.next();!f.done;f=u.next())if(o.aa.get(f.value)!=="usable")return!1;return!0}function nSe(o,u){var f=[];for(u.forEach(function(m,b){f.push({keySystem:b,licenseServerUri:m,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),o=_(o),u=o.next();!u.done;u=o.next())u=u.value,u.video&&(u.video.drmInfos=f),u.audio&&(u.audio.drmInfos=f)}function rSe(o,u,f,m,b,C,A,R){var N=[];o=_(o);for(var V=o.next(),G={};!V.done;G={Ka:void 0},V=o.next()){if(G.Ka=V.value,u.includes(G.Ka.encryptionScheme)||u.push(G.Ka.encryptionScheme),G.Ka.keySystem=="org.w3.clearkey"&&G.Ka.licenseServerUri.startsWith("data:application/json;base64,")?N.includes(G.Ka.licenseServerUri)||N.push(G.Ka.licenseServerUri):f.includes(G.Ka.licenseServerUri)||f.push(G.Ka.licenseServerUri),b.includes(G.Ka.serverCertificateUri)||b.push(G.Ka.serverCertificateUri),G.Ka.serverCertificate&&(m.some((function(he){return function(pe){return ke(pe,he.Ka.serverCertificate)}})(G))||m.push(G.Ka.serverCertificate)),G.Ka.initData){V=_(G.Ka.initData);for(var Z=V.next(),le={};!Z.done;le={Lg:void 0},Z=V.next())le.Lg=Z.value,C.some((function(he){return function(pe){var ye=he.Lg;return pe.keyId&&pe.keyId==ye.keyId?!0:pe.initDataType==ye.initDataType&&ke(pe.initData,ye.initData)}})(le))||C.push(le.Lg)}if(G.Ka.keyIds)for(V=_(G.Ka.keyIds),Z=V.next();!Z.done;Z=V.next())A.add(Z.value);if(G.Ka.keySystemUris&&R)for(G=_(G.Ka.keySystemUris),V=G.next();!V.done;V=G.next())R.add(V.value)}if(N.length==1)f.push(N[0]);else if(N.length>0){for(u=[],N=_(N),m=N.next();!m.done;m=N.next())m=i.atob(m.value.split("data:application/json;base64,").pop()),m=JSON.parse(m),u.push.apply(u,T(m.keys));N=JSON.stringify({keys:u}),f.push("data:application/json;base64,"+i.btoa(N))}}function iSe(o,u,f,m){var b=o.keySystem;b&&(b!="org.w3.clearkey"||!o.licenseServerUri)&&(u.size&&u.get(b)&&(u=u.get(b),o.licenseServerUri=u),o.keyIds||(o.keyIds=new Set),(f=f.get(b))&&(o.distinctiveIdentifierRequired||(o.distinctiveIdentifierRequired=f.distinctiveIdentifierRequired),o.persistentStateRequired||(o.persistentStateRequired=f.persistentStateRequired),o.serverCertificate||(o.serverCertificate=f.serverCertificate),f.sessionType&&(o.sessionType=f.sessionType),o.serverCertificateUri||(o.serverCertificateUri=f.serverCertificateUri)),m[b]&&(o.keySystem=m[b]),i.cast&&i.cast.__platform__&&b=="com.microsoft.playready"&&(o.keySystem="com.chromecast.playready"))}function Jq(o,u){if(o=_g(o),o.size!=0){o=qr(o),u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.drmInfos=[o]),f.audio&&(f.audio.drmInfos=[o])}}var oSe=1,sSe=5,aSe=.5;function lSe(){this.g=kg,this.i=new Map().set(kg,2).set(tv,1),this.h=0}function XI(o,u){var f=o.g!==u;return o.g=u,f&&u===kg&&(o.h=Date.now()),f}var tv=0,kg=1;/* @license Shaka Player Copyright 2023 Google LLC SPDX-License-Identifier: Apache-2.0 -*/function YI(o,u,f){this.g=o,this.i=u,this.h=f}function Qq(o,u){return re(function(f){if(f.g==1)return L(f,w_e(o.h,u,o.g.drm.preferredKeySystems,o.g.drm.keySystemsMapping),2);if(o.g.streaming.dontChooseCodecs||pq(u,o.g.preferredVideoCodecs,o.g.preferredAudioCodecs,o.g.preferredDecodingAttributes,o.g.preferredTextFormats),!u.variants.some(N3))throw new De(2,4,4032);return f.return(tY(o,u))})}function eY(o,u){var f=o.g.restrictions;o=o.i;var m=!1;u=_(u.variants);for(var b=u.next();!b.done;b=u.next()){b=b.value;var w=b.allowedByApplication;b.allowedByApplication=HS(b,f,o),w!=b.allowedByApplication&&(m=!0)}return m}function tY(o,u){var f=eY(o,u);if(u){var m=o.h?o.h.g:null;if(m&&o.h.B){for(var b=new Set,w=_(u.variants),A=w.next();!A.done;A=w.next())A=A.value,A.audio&&b.add(A.audio),A.video&&b.add(A.video);for(b=_(b),w=b.next();!w.done;w=b.next())nY(o,m.keySystem,w.value)}rY(o,u)}return f}function nY(o,u,f){f=_(f.drmInfos);for(var m=f.next();!m.done;m=f.next())if(m=m.value,m.keySystem==u){m=_(m.initData||[]);for(var b=m.next();!b.done;b=m.next())b=b.value,F3(o.h,b.initDataType,b.initData)}}function rY(o,u){o=o.h?o.h.Xe():{};var f=Object.keys(o);f=f.length&&f[0]=="00";var m=!1,b=!1,w=new Set,A=new Set,R=new Set;u=_(u.variants);for(var N=u.next();!N.done;N=u.next())N=N.value,N.audio&&R.add(N.audio),N.video&&R.add(N.video),N.allowedByApplication?N.allowedByKeySystem&&(m=!0):b=!0;for(R=_(R),u=R.next();!u.done;u=R.next())if(u=u.value,u.keyIds.size)for(u=_(u.keyIds),N=u.next();!N.done;N=u.next()){N=N.value;var V=o[f?"00":N];V?iY.includes(V)&&A.add(V):w.add(N)}if(!m)throw o={hasAppRestrictions:b,missingKeys:Array.from(w),restrictedKeyStatuses:Array.from(A)},new De(2,4,4012,o)}var iY=["output-restricted","internal-error"];function z3(){}function Q0(o,u){kg.set(o,u)}function uSe(){var o={};if(Le(),Wd())for(var u=_(kg.keys()),f=u.next();!f.done;f=u.next())o[f.value]=!0;for(u=_(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]),f=u.next();!f.done;f=u.next())f=f.value,o[f]=Wd()?kg.has(f):tv().canPlayType(f)!="";return o}function oY(o,u){if(u){var f=kg.get(u.toLowerCase());if(f)return f}throw new De(2,4,4e3,o,u)}_e("shaka.media.ManifestParser",z3),z3.unregisterParserByMime=function(o){kg.delete(o)},z3.registerParserByMime=Q0,z3.registerParserByExtension=function(){Xt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},z3.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var kg=new Map;_e("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function s6(o,u){var f=null,m=null,b=null,w=null,A=o.U();return u&1&&(b=o.Dd()),u&2&&(w=o.U()),u&8&&(f=o.U()),u&16&&(m=o.U()),{trackId:A,Td:f,Ud:m,kj:b,Li:w}}function a6(o,u){return u==1?(u=o.U(),o=o.U(),{baseMediaDecodeTime:u*4294967296+o}):{baseMediaDecodeTime:o.U()}}function l6(o,u){return u==1?(o.skip(8),o.skip(8)):(o.skip(4),o.skip(4)),u=o.U(),o.skip(4),o=o.Ca(),{timescale:u,language:String.fromCharCode((o>>10)+96)+String.fromCharCode(((o&960)>>5)+96)+String.fromCharCode((o&31)+96)}}function u6(o,u,f){var m=o.U(),b=[],w=null;f&1&&(w=o.Zg()),f&4&&o.skip(4);for(var A=0;A0)var b=Tr("avcC",o.Ra);else{b=Tr;for(var w=7,A=[],R=[],N=0,V=0,G=0,Z=0;Z0&&(N=A[0][1],G=A[0][2],V=A[0][3]),w=new Uint8Array(w),Z=0,w[Z++]=1,w[Z++]=N,w[Z++]=G,w[Z++]=V,w[Z++]=255,w[Z++]=224|A.length,N=0;N>8,w[Z++]=A[N].length&255,w.set(A[N],Z),Z+=A[N].length;for(w[Z++]=R.length,A=0;A>8,w[Z++]=R[A].length&255,w.set(R[A],Z),Z+=R[A].length;b=b("avcC",w)}f=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Gi(f,2)),T(Gi(m,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),m="avc1",R=lY(o),A=new Uint8Array([]),o.encrypted&&(A=ev(o.stream,o.codecs),m="encv"),m=Tr(m,f,b,R,A)}else o.codecs.includes("hvc1")&&(m=o.stream.width||0,b=o.stream.height||0,f=new Uint8Array([]),o.Ra.byteLength>0&&(f=Tr("hvcC",o.Ra)),m=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Gi(m,2)),T(Gi(b,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),b="hvc1",R=lY(o),A=new Uint8Array([]),o.encrypted&&(A=ev(o.stream,o.codecs),b="encv"),m=Tr(b,m,f,R,A));break;case"audio":f=="mp3"?o=Tr(".mp3",H3(o)):f=="ac-3"?(f=Tr("dac3",o.Ga),m="ac-3",b=new Uint8Array([]),o.encrypted&&(b=ev(o.stream,o.codecs),m="enca"),o=Tr(m,H3(o),f,b)):f=="ec-3"?(f=Tr("dec3",o.Ga),m="ec-3",b=new Uint8Array([]),o.encrypted&&(b=ev(o.stream,o.codecs),m="enca"),o=Tr(m,H3(o),f,b)):f=="opus"?(f=Tr("dOps",o.Ga),m="Opus",b=new Uint8Array([]),o.encrypted&&(b=ev(o.stream,o.codecs),m="enca"),o=Tr(m,H3(o),f,b)):(o.Ga.byteLength>0?f=Tr("esds",o.Ga):(f=Tr,m=o.id+1,b=o.stream.channelsCount||2,A=o.stream.audioSamplingRate||44100,N=yi("audio",o.codecs.split(",")),V={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},R=V[A],(N==="mp4a.40.5"||N==="mp4a.40.29")&&(R=V[A*2]),A=parseInt(N.split(".").pop(),10),m=new Uint8Array([0,0,0,0,3,25].concat(T(Gi(m,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,A<<3|R>>>1,R<<7|b<<3,6,1,2])),f=f("esds",m)),m="mp4a",b=new Uint8Array([]),o.encrypted&&(b=ev(o.stream,o.codecs),m="enca"),o=Tr(m,H3(o),f,b)),m=o}return o=Tr("stsd",_Se.value(),m),u("stbl",o,Tr("stts",pSe.value()),Tr("stsc",vSe.value()),Tr("stsz",gSe.value()),Tr("stco",mSe.value()))}function lY(o){if(!o.Za&&!o.$a)return new Uint8Array([]);var u=o.$a;return o=new Uint8Array([].concat(T(Gi(o.Za,4)),T(Gi(u,4)))),Tr("pasp",o)}function H3(o){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.stream.channelsCount||2,0,16,0,0,0,0].concat(T(Gi(o.stream.audioSamplingRate||44100,2)),[0,0]))}function ev(o,u){var f=Tr;u=new Uint8Array([].concat(T(Gi(cY(u.split(".")[0]),4)))),u=Tr("frma",u);var m="cenc",b=o.drmInfos[0];b&&b.encryptionScheme&&(m=b.encryptionScheme),m=new Uint8Array([0,0,0,0].concat(T(Gi(cY(m),4)),[0,1,0,0])),m=Tr("schm",m),b=Tr;var w=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);o=_(o.drmInfos);for(var A=o.next();!A.done;A=o.next())if((A=A.value)&&A.keyIds&&A.keyIds.size){A=_(A.keyIds);for(var R=A.next();!R.done;R=A.next())w=uY(R.value)}return o=new Uint8Array([0,0,0,0,0,0,1,8]),w=Tr("tenc",o,w),f("sinf",u,m,b("schi",w))}function W3(o){var u=[];o=_(o.g);for(var f=o.next();!f.done;f=o.next()){f=f.value;var m=u.push,b=m.apply,w=Tr,A=new Uint8Array([0,0,0,0].concat(T(Gi(f.data?f.data.sequenceNumber:0,4))));A=Tr("mfhd",A);var R,N=f.data?f.data.zb:[],V=new Uint8Array(4+N.length);for(R=0;R=0;u--)f.push(o>>8*u&255);return f}function uY(o){for(var u=new Uint8Array(o.length/2),f=0;f=0;b--)m+=u[b].byteLength;for(b=new Uint8Array(m),b[0]=m>>24&255,b[1]=m>>16&255,b[2]=m>>8&255,b[3]=m&255,b.set(f,4),f=0,m=8;f=0;G--)V.push(2>>8*G&255);for(o.set(new Uint8Array(V),R),o.set(N,R+4),R=_(A),N=R.next();!N.done;N=R.next())N=N.value,c6(o,N.start,N.size+4)}}return o}function ESe(o,u,f,m,b,w){var A=ev(o,m.name),R=u.subarray(m.start,m.start+m.size);for(o=new Uint8Array(m.size+A.byteLength),o.set(R,0),ot(o).setUint32(4,w),o.set(A,m.size),c6(o,0,o.byteLength),w=new Uint8Array(u.byteLength+o.byteLength),m=Le().df()?m.start:m.start+m.size,A=u.subarray(m),w.set(u.subarray(0,m)),w.set(o,m),w.set(A,m+o.byteLength),u=_(b),b=u.next();!b.done;b=u.next())b=b.value,c6(w,b.start,b.size+o.byteLength);return o=ot(w,f.start),f=up(f),u=o.getUint32(f),o.setUint32(f,u+1),w}function c6(o,u,f){o=ot(o,u),u=o.getUint32(0),u!=0&&(u==1?(o.setUint32(8,f>>32),o.setUint32(12,f&4294967295)):o.setUint32(0,f))}function TSe(o){function u(b){m.push({start:b.start,size:b.size}),ar(b)}var f=Ae(o),m=[];return new fi().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(b){m.push({start:b.start,size:b.size});for(var w=ot(f,b.start),A=0;A0)return u}if(o.g.length>0&&o.m)for(o=_(o.g),o=o.next();!o.done;o=o.next()){ZI(o.value);break}return null}l.$j=function(){return this.tilesLayout},l.Zj=function(){return this.B},l.Jc=function(){return this.status},l.xk=function(){this.status=pY},l.Qg=function(){this.preload=!0},l.isPreload=function(){return this.preload},l.wd=function(){this.l=!1},l.kk=function(){return this.l},l.ri=function(){this.Xc=!0},l.nk=function(){return this.Xc},l.pi=function(){this.ee=!0},l.lk=function(){return this.ee},l.oi=function(){this.o=!0},l.gk=function(){return this.o},l.If=function(o){this.thumbnailSprite=o},l.Xj=function(){return this.thumbnailSprite},l.offset=function(o){this.startTime+=o,this.endTime+=o,this.j+=o;for(var u=_(this.g),f=u.next();!f.done;f=u.next())f=f.value,f.startTime+=o,f.endTime+=o,f.j+=o},l.yh=function(o){this.h==null?Ke("Sync attempted without sync time!"):(o=this.h-o-this.startTime,Math.abs(o)>=.001&&this.offset(o))},l.pe=function(o,u){this.u=o,this.F=u===void 0?!1:u},l.Yb=function(o){var u=this.u;return(o===void 0||o)&&this.F&&(this.u=null),u};function hY(o,u){o.ba=u,o=_(o.g);for(var f=o.next();!f.done;f=o.next())hY(f.value,u)}_e("shaka.media.SegmentReference",Fn),Fn.prototype.getSegmentData=Fn.prototype.Yb,Fn.prototype.setSegmentData=Fn.prototype.pe,Fn.prototype.syncAgainst=Fn.prototype.yh,Fn.prototype.offset=Fn.prototype.offset,Fn.prototype.getThumbnailSprite=Fn.prototype.Xj,Fn.prototype.setThumbnailSprite=Fn.prototype.If,Fn.prototype.hasByterangeOptimization=Fn.prototype.gk,Fn.prototype.markAsByterangeOptimization=Fn.prototype.oi,Fn.prototype.isLastPartial=Fn.prototype.lk,Fn.prototype.markAsLastPartial=Fn.prototype.pi,Fn.prototype.isPartial=Fn.prototype.nk,Fn.prototype.markAsPartial=Fn.prototype.ri,Fn.prototype.isIndependent=Fn.prototype.kk,Fn.prototype.markAsNonIndependent=Fn.prototype.wd,Fn.prototype.isPreload=Fn.prototype.isPreload,Fn.prototype.markAsPreload=Fn.prototype.Qg,Fn.prototype.markAsUnavailable=Fn.prototype.xk,Fn.prototype.getStatus=Fn.prototype.Jc,Fn.prototype.getTileDuration=Fn.prototype.Zj,Fn.prototype.getTilesLayout=Fn.prototype.$j,Fn.prototype.getEndByte=Fn.prototype.Gc,Fn.prototype.getStartByte=Fn.prototype.Ic,Fn.prototype.getEndTime=Fn.prototype.Ej,Fn.prototype.getStartTime=Fn.prototype.getStartTime,Fn.prototype.getUris=Fn.prototype.P;var Gf=0,pY=1;Fn.Status={ql:Gf,xm:pY,Tl:2};function K3(o){return o.length==1&&o.end(0)-o.start(0)<1e-4}function vY(o){return!o||K3(o)?null:o.length==1&&o.start(0)<0?0:o.length?o.start(0):null}function d6(o){return!o||K3(o)?null:o.length?o.end(o.length-1):null}function JI(o,u){return!o||!o.length||K3(o)||u>o.end(o.length-1)?!1:u>=o.start(0)}function mY(o,u){if(!o||!o.length||K3(o))return 0;var f=0;o=_(Kf(o));for(var m=o.next();!m.done;m=o.next()){var b=m.value;m=b.start,b=b.end,b>u&&(f+=b-Math.max(m,u))}return f}function ASe(o,u,f){return!o||!o.length||K3(o)?null:(o=Kf(o).findIndex(function(m,b,w){return m.start>u&&(b==0||w[b-1].end-u<=f)}),o>=0?o:null)}function Kf(o){if(!o)return[];for(var u=[],f=0;f=0;--m)o.removeChild(f[m]),u=!0;return o.src&&(o.removeAttribute("src"),u=!0),u}function q3(o){for(;o.firstChild;)o.removeChild(o.firstChild)}function tv(){return wg||(eL||(eL=new mr(function(){wg=null})),(wg=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(wg=document.createElement("video")),eL.ia(1),wg)}function ISe(o,u){var f,m,b,w,A;return re(function(R){if(R.g==1)return"fonts"in document&&"FontFace"in i?L(R,document.fonts.ready,2):R.return();if(!("entries"in document.fonts))return R.return();for(f=function(N){N=N.entries();for(var V=[],G=N.next();G.done===!1;)V.push(G.value),G=N.next();return V},m=_(f(document.fonts)),b=m.next();!b.done;b=m.next())if(w=b.value,w.family===o&&w.display==="swap")return R.return();A=new FontFace(o,"url("+u+")",{display:"swap"}),document.fonts.add(A),B(R)})}_e("shaka.util.Dom",QI),QI.removeAllChildren=q3,QI.clearSourceFromVideo=f6;var eL=null,wg=null;/* +*/function ZI(o,u,f){this.g=o,this.i=u,this.h=f}function Qq(o,u){return te(function(f){if(f.g==1)return L(f,C_e(o.h,u,o.g.drm.preferredKeySystems,o.g.drm.keySystemsMapping),2);if(o.g.streaming.dontChooseCodecs||pq(u,o.g.preferredVideoCodecs,o.g.preferredAudioCodecs,o.g.preferredDecodingAttributes,o.g.preferredTextFormats),!u.variants.some(N3))throw new De(2,4,4032);return f.return(tY(o,u))})}function eY(o,u){var f=o.g.restrictions;o=o.i;var m=!1;u=_(u.variants);for(var b=u.next();!b.done;b=u.next()){b=b.value;var C=b.allowedByApplication;b.allowedByApplication=WS(b,f,o),C!=b.allowedByApplication&&(m=!0)}return m}function tY(o,u){var f=eY(o,u);if(u){var m=o.h?o.h.g:null;if(m&&o.h.B){for(var b=new Set,C=_(u.variants),A=C.next();!A.done;A=C.next())A=A.value,A.audio&&b.add(A.audio),A.video&&b.add(A.video);for(b=_(b),C=b.next();!C.done;C=b.next())nY(o,m.keySystem,C.value)}rY(o,u)}return f}function nY(o,u,f){f=_(f.drmInfos);for(var m=f.next();!m.done;m=f.next())if(m=m.value,m.keySystem==u){m=_(m.initData||[]);for(var b=m.next();!b.done;b=m.next())b=b.value,F3(o.h,b.initDataType,b.initData)}}function rY(o,u){o=o.h?o.h.Xe():{};var f=Object.keys(o);f=f.length&&f[0]=="00";var m=!1,b=!1,C=new Set,A=new Set,R=new Set;u=_(u.variants);for(var N=u.next();!N.done;N=u.next())N=N.value,N.audio&&R.add(N.audio),N.video&&R.add(N.video),N.allowedByApplication?N.allowedByKeySystem&&(m=!0):b=!0;for(R=_(R),u=R.next();!u.done;u=R.next())if(u=u.value,u.keyIds.size)for(u=_(u.keyIds),N=u.next();!N.done;N=u.next()){N=N.value;var V=o[f?"00":N];V?iY.includes(V)&&A.add(V):C.add(N)}if(!m)throw o={hasAppRestrictions:b,missingKeys:Array.from(C),restrictedKeyStatuses:Array.from(A)},new De(2,4,4012,o)}var iY=["output-restricted","internal-error"];function z3(){}function nv(o,u){wg.set(o,u)}function uSe(){var o={};if(Le(),Wd())for(var u=_(wg.keys()),f=u.next();!f.done;f=u.next())o[f.value]=!0;for(u=_(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]),f=u.next();!f.done;f=u.next())f=f.value,o[f]=Wd()?wg.has(f):iv().canPlayType(f)!="";return o}function oY(o,u){if(u){var f=wg.get(u.toLowerCase());if(f)return f}throw new De(2,4,4e3,o,u)}_e("shaka.media.ManifestParser",z3),z3.unregisterParserByMime=function(o){wg.delete(o)},z3.registerParserByMime=nv,z3.registerParserByExtension=function(){Xt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},z3.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var wg=new Map;_e("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function a6(o,u){var f=null,m=null,b=null,C=null,A=o.U();return u&1&&(b=o.Dd()),u&2&&(C=o.U()),u&8&&(f=o.U()),u&16&&(m=o.U()),{trackId:A,Td:f,Ud:m,kj:b,Li:C}}function l6(o,u){return u==1?(u=o.U(),o=o.U(),{baseMediaDecodeTime:u*4294967296+o}):{baseMediaDecodeTime:o.U()}}function u6(o,u){return u==1?(o.skip(8),o.skip(8)):(o.skip(4),o.skip(4)),u=o.U(),o.skip(4),o=o.Ca(),{timescale:u,language:String.fromCharCode((o>>10)+96)+String.fromCharCode(((o&960)>>5)+96)+String.fromCharCode((o&31)+96)}}function c6(o,u,f){var m=o.U(),b=[],C=null;f&1&&(C=o.Zg()),f&4&&o.skip(4);for(var A=0;A0)var b=Tr("avcC",o.Ra);else{b=Tr;for(var C=7,A=[],R=[],N=0,V=0,G=0,Z=0;Z0&&(N=A[0][1],G=A[0][2],V=A[0][3]),C=new Uint8Array(C),Z=0,C[Z++]=1,C[Z++]=N,C[Z++]=G,C[Z++]=V,C[Z++]=255,C[Z++]=224|A.length,N=0;N>8,C[Z++]=A[N].length&255,C.set(A[N],Z),Z+=A[N].length;for(C[Z++]=R.length,A=0;A>8,C[Z++]=R[A].length&255,C.set(R[A],Z),Z+=R[A].length;b=b("avcC",C)}f=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Gi(f,2)),T(Gi(m,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),m="avc1",R=lY(o),A=new Uint8Array([]),o.encrypted&&(A=rv(o.stream,o.codecs),m="encv"),m=Tr(m,f,b,R,A)}else o.codecs.includes("hvc1")&&(m=o.stream.width||0,b=o.stream.height||0,f=new Uint8Array([]),o.Ra.byteLength>0&&(f=Tr("hvcC",o.Ra)),m=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Gi(m,2)),T(Gi(b,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),b="hvc1",R=lY(o),A=new Uint8Array([]),o.encrypted&&(A=rv(o.stream,o.codecs),b="encv"),m=Tr(b,m,f,R,A));break;case"audio":f=="mp3"?o=Tr(".mp3",H3(o)):f=="ac-3"?(f=Tr("dac3",o.Ga),m="ac-3",b=new Uint8Array([]),o.encrypted&&(b=rv(o.stream,o.codecs),m="enca"),o=Tr(m,H3(o),f,b)):f=="ec-3"?(f=Tr("dec3",o.Ga),m="ec-3",b=new Uint8Array([]),o.encrypted&&(b=rv(o.stream,o.codecs),m="enca"),o=Tr(m,H3(o),f,b)):f=="opus"?(f=Tr("dOps",o.Ga),m="Opus",b=new Uint8Array([]),o.encrypted&&(b=rv(o.stream,o.codecs),m="enca"),o=Tr(m,H3(o),f,b)):(o.Ga.byteLength>0?f=Tr("esds",o.Ga):(f=Tr,m=o.id+1,b=o.stream.channelsCount||2,A=o.stream.audioSamplingRate||44100,N=bi("audio",o.codecs.split(",")),V={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},R=V[A],(N==="mp4a.40.5"||N==="mp4a.40.29")&&(R=V[A*2]),A=parseInt(N.split(".").pop(),10),m=new Uint8Array([0,0,0,0,3,25].concat(T(Gi(m,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,A<<3|R>>>1,R<<7|b<<3,6,1,2])),f=f("esds",m)),m="mp4a",b=new Uint8Array([]),o.encrypted&&(b=rv(o.stream,o.codecs),m="enca"),o=Tr(m,H3(o),f,b)),m=o}return o=Tr("stsd",_Se.value(),m),u("stbl",o,Tr("stts",pSe.value()),Tr("stsc",vSe.value()),Tr("stsz",gSe.value()),Tr("stco",mSe.value()))}function lY(o){if(!o.Za&&!o.$a)return new Uint8Array([]);var u=o.$a;return o=new Uint8Array([].concat(T(Gi(o.Za,4)),T(Gi(u,4)))),Tr("pasp",o)}function H3(o){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.stream.channelsCount||2,0,16,0,0,0,0].concat(T(Gi(o.stream.audioSamplingRate||44100,2)),[0,0]))}function rv(o,u){var f=Tr;u=new Uint8Array([].concat(T(Gi(cY(u.split(".")[0]),4)))),u=Tr("frma",u);var m="cenc",b=o.drmInfos[0];b&&b.encryptionScheme&&(m=b.encryptionScheme),m=new Uint8Array([0,0,0,0].concat(T(Gi(cY(m),4)),[0,1,0,0])),m=Tr("schm",m),b=Tr;var C=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);o=_(o.drmInfos);for(var A=o.next();!A.done;A=o.next())if((A=A.value)&&A.keyIds&&A.keyIds.size){A=_(A.keyIds);for(var R=A.next();!R.done;R=A.next())C=uY(R.value)}return o=new Uint8Array([0,0,0,0,0,0,1,8]),C=Tr("tenc",o,C),f("sinf",u,m,b("schi",C))}function W3(o){var u=[];o=_(o.g);for(var f=o.next();!f.done;f=o.next()){f=f.value;var m=u.push,b=m.apply,C=Tr,A=new Uint8Array([0,0,0,0].concat(T(Gi(f.data?f.data.sequenceNumber:0,4))));A=Tr("mfhd",A);var R,N=f.data?f.data.zb:[],V=new Uint8Array(4+N.length);for(R=0;R=0;u--)f.push(o>>8*u&255);return f}function uY(o){for(var u=new Uint8Array(o.length/2),f=0;f=0;b--)m+=u[b].byteLength;for(b=new Uint8Array(m),b[0]=m>>24&255,b[1]=m>>16&255,b[2]=m>>8&255,b[3]=m&255,b.set(f,4),f=0,m=8;f=0;G--)V.push(2>>8*G&255);for(o.set(new Uint8Array(V),R),o.set(N,R+4),R=_(A),N=R.next();!N.done;N=R.next())N=N.value,d6(o,N.start,N.size+4)}}return o}function ESe(o,u,f,m,b,C){var A=rv(o,m.name),R=u.subarray(m.start,m.start+m.size);for(o=new Uint8Array(m.size+A.byteLength),o.set(R,0),ot(o).setUint32(4,C),o.set(A,m.size),d6(o,0,o.byteLength),C=new Uint8Array(u.byteLength+o.byteLength),m=Le().df()?m.start:m.start+m.size,A=u.subarray(m),C.set(u.subarray(0,m)),C.set(o,m),C.set(A,m+o.byteLength),u=_(b),b=u.next();!b.done;b=u.next())b=b.value,d6(C,b.start,b.size+o.byteLength);return o=ot(C,f.start),f=dp(f),u=o.getUint32(f),o.setUint32(f,u+1),C}function d6(o,u,f){o=ot(o,u),u=o.getUint32(0),u!=0&&(u==1?(o.setUint32(8,f>>32),o.setUint32(12,f&4294967295)):o.setUint32(0,f))}function TSe(o){function u(b){m.push({start:b.start,size:b.size}),lr(b)}var f=Te(o),m=[];return new hi().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(b){m.push({start:b.start,size:b.size});for(var C=ot(f,b.start),A=0;A0)return u}if(o.g.length>0&&o.m)for(o=_(o.g),o=o.next();!o.done;o=o.next()){QI(o.value);break}return null}l.$j=function(){return this.tilesLayout},l.Zj=function(){return this.B},l.Jc=function(){return this.status},l.xk=function(){this.status=pY},l.Qg=function(){this.preload=!0},l.isPreload=function(){return this.preload},l.wd=function(){this.l=!1},l.kk=function(){return this.l},l.ri=function(){this.Xc=!0},l.nk=function(){return this.Xc},l.pi=function(){this.ee=!0},l.lk=function(){return this.ee},l.oi=function(){this.o=!0},l.gk=function(){return this.o},l.If=function(o){this.thumbnailSprite=o},l.Xj=function(){return this.thumbnailSprite},l.offset=function(o){this.startTime+=o,this.endTime+=o,this.j+=o;for(var u=_(this.g),f=u.next();!f.done;f=u.next())f=f.value,f.startTime+=o,f.endTime+=o,f.j+=o},l.yh=function(o){this.h==null?Ke("Sync attempted without sync time!"):(o=this.h-o-this.startTime,Math.abs(o)>=.001&&this.offset(o))},l.pe=function(o,u){this.u=o,this.F=u===void 0?!1:u},l.Yb=function(o){var u=this.u;return(o===void 0||o)&&this.F&&(this.u=null),u};function hY(o,u){o.ba=u,o=_(o.g);for(var f=o.next();!f.done;f=o.next())hY(f.value,u)}_e("shaka.media.SegmentReference",Fn),Fn.prototype.getSegmentData=Fn.prototype.Yb,Fn.prototype.setSegmentData=Fn.prototype.pe,Fn.prototype.syncAgainst=Fn.prototype.yh,Fn.prototype.offset=Fn.prototype.offset,Fn.prototype.getThumbnailSprite=Fn.prototype.Xj,Fn.prototype.setThumbnailSprite=Fn.prototype.If,Fn.prototype.hasByterangeOptimization=Fn.prototype.gk,Fn.prototype.markAsByterangeOptimization=Fn.prototype.oi,Fn.prototype.isLastPartial=Fn.prototype.lk,Fn.prototype.markAsLastPartial=Fn.prototype.pi,Fn.prototype.isPartial=Fn.prototype.nk,Fn.prototype.markAsPartial=Fn.prototype.ri,Fn.prototype.isIndependent=Fn.prototype.kk,Fn.prototype.markAsNonIndependent=Fn.prototype.wd,Fn.prototype.isPreload=Fn.prototype.isPreload,Fn.prototype.markAsPreload=Fn.prototype.Qg,Fn.prototype.markAsUnavailable=Fn.prototype.xk,Fn.prototype.getStatus=Fn.prototype.Jc,Fn.prototype.getTileDuration=Fn.prototype.Zj,Fn.prototype.getTilesLayout=Fn.prototype.$j,Fn.prototype.getEndByte=Fn.prototype.Gc,Fn.prototype.getStartByte=Fn.prototype.Ic,Fn.prototype.getEndTime=Fn.prototype.Ej,Fn.prototype.getStartTime=Fn.prototype.getStartTime,Fn.prototype.getUris=Fn.prototype.P;var Gf=0,pY=1;Fn.Status={ql:Gf,xm:pY,Tl:2};function K3(o){return o.length==1&&o.end(0)-o.start(0)<1e-4}function vY(o){return!o||K3(o)?null:o.length==1&&o.start(0)<0?0:o.length?o.start(0):null}function f6(o){return!o||K3(o)?null:o.length?o.end(o.length-1):null}function eL(o,u){return!o||!o.length||K3(o)||u>o.end(o.length-1)?!1:u>=o.start(0)}function mY(o,u){if(!o||!o.length||K3(o))return 0;var f=0;o=_(Kf(o));for(var m=o.next();!m.done;m=o.next()){var b=m.value;m=b.start,b=b.end,b>u&&(f+=b-Math.max(m,u))}return f}function ASe(o,u,f){return!o||!o.length||K3(o)?null:(o=Kf(o).findIndex(function(m,b,C){return m.start>u&&(b==0||C[b-1].end-u<=f)}),o>=0?o:null)}function Kf(o){if(!o)return[];for(var u=[],f=0;f=0;--m)o.removeChild(f[m]),u=!0;return o.src&&(o.removeAttribute("src"),u=!0),u}function q3(o){for(;o.firstChild;)o.removeChild(o.firstChild)}function iv(){return Eg||(nL||(nL=new mr(function(){Eg=null})),(Eg=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Eg=document.createElement("video")),nL.ia(1),Eg)}function ISe(o,u){var f,m,b,C,A;return te(function(R){if(R.g==1)return"fonts"in document&&"FontFace"in i?L(R,document.fonts.ready,2):R.return();if(!("entries"in document.fonts))return R.return();for(f=function(N){N=N.entries();for(var V=[],G=N.next();G.done===!1;)V.push(G.value),G=N.next();return V},m=_(f(document.fonts)),b=m.next();!b.done;b=m.next())if(C=b.value,C.family===o&&C.display==="swap")return R.return();A=new FontFace(o,"url("+u+")",{display:"swap"}),document.fonts.add(A),B(R)})}_e("shaka.util.Dom",tL),tL.removeAllChildren=q3,tL.clearSourceFromVideo=h6;var nL=null,Eg=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 -*/function tL(){}function yY(o,u){return u+10<=o.length&&o[u]===73&&o[u+1]===68&&o[u+2]===51&&o[u+3]<255&&o[u+4]<255&&o[u+6]<128&&o[u+7]<128&&o[u+8]<128&&o[u+9]<128}function bY(o,u){return u+10<=o.length&&o[u]===51&&o[u+1]===68&&o[u+2]===73&&o[u+3]<255&&o[u+4]<255&&o[u+6]<128&&o[u+7]<128&&o[u+8]<128&&o[u+9]<128}function nL(o,u){var f=(o[u]&127)<<21;return f|=(o[u+1]&127)<<14,f|=(o[u+2]&127)<<7,f|=o[u+3]&127}function LSe(o){var u={key:o.type,description:"",data:"",mimeType:null,pictureType:null};if(o.type==="APIC"){if(o.size<2||o.data[0]!==3)return null;var f=o.data.subarray(1).indexOf(0);if(f===-1)return null;var m=ut(Ae(o.data,1,f)),b=o.data[2+f],w=o.data.subarray(3+f).indexOf(0);if(w===-1)return null;var A=ut(Ae(o.data,3+f,w)),R;return m==="-->"?R=ut(Ae(o.data,4+f+w)):R=ke(o.data.subarray(4+f+w)),u.mimeType=m,u.pictureType=b,u.description=A,u.data=R,u}return o.type==="TXXX"?o.size<2||o.data[0]!==3||(m=o.data.subarray(1).indexOf(0),m===-1)?null:(f=ut(Ae(o.data,1,m)),o=ut(Ae(o.data,2+m)).replace(/\0*$/,""),u.description=f,u.data=o,u):o.type==="WXXX"?o.size<2||o.data[0]!==3||(m=o.data.subarray(1).indexOf(0),m===-1)?null:(f=ut(Ae(o.data,1,m)),o=ut(Ae(o.data,2+m)).replace(/\0*$/,""),u.description=f,u.data=o,u):o.type==="PRIV"?o.size<2||(f=o.data.indexOf(0),f===-1)?null:(f=ut(Ae(o.data,0,f)),u.description=f,f=="com.apple.streaming.transportStreamTimestamp"?(f=o.data.subarray(f.length+1),o=f[3]&1,f=(f[4]<<23)+(f[5]<<15)+(f[6]<<7)+f[7],f/=45,o&&(f+=4772185884e-2),u.data=f):(o=ke(o.data.subarray(f.length+1)),u.data=o),u):o.type[0]==="T"?o.size<2||o.data[0]!==3?null:(o=ut(o.data.subarray(1)).replace(/\0*$/,""),u.data=o,u):o.type[0]==="W"?(o=ut(o.data).replace(/\0*$/,""),u.data=o,u):o.data?(u.data=ke(o.data),u):null}function nv(o){for(var u=0,f=[];yY(o,u);){var m=nL(o,u+6);for(o[u+5]>>6&1&&(u+=10),u+=10,m=u+m;u+10>6&1&&(m+=10),m+=10,m+=nL(o,u+6),bY(o,u+10)&&(m+=10),u+=m;return m>0?o.subarray(f,f+m):new Uint8Array([])}_e("shaka.util.Id3Utils",tL),tL.getID3Data=Eg,tL.getID3Frames=nv;function _Y(o){return new Date(Date.UTC(1900,0,1,0,0,0,0)+o).getTime()}function qf(o,u){if(this.j=o,u!==void 0&&u){u=new Uint8Array(o.byteLength);for(var f=0,m=0;m=2&&o[m]==3&&o[m-1]==0&&o[m-2]==0||(u[f]=o[m],f++);this.j=Ae(u,0,f)}this.i=this.j.byteLength,this.g=this.h=0}function rL(o){var u=o.j.byteLength-o.i,f=new Uint8Array(4),m=Math.min(4,o.i);m!==0&&(f.set(o.j.subarray(u,u+m)),o.h=new Oi(f,0).U(),o.g=m*8,o.i-=m)}function Ml(o,u){if(o.g<=u){u-=o.g;var f=Math.floor(u/8);u-=f*8,o.g-=f,rL(o)}o.h<<=u,o.g-=u}function xr(o,u){var f=Math.min(o.g,u),m=o.h>>>32-f;return o.g-=f,o.g>0?o.h<<=f:o.i>0&&rL(o),f=u-f,f>0?m<>>u)!==0)return o.h<<=u,o.g-=u,u;return rL(o),u+iL(o)}function Us(o){Ml(o,1+iL(o))}function gn(o){var u=iL(o);return xr(o,u+1)-1}function Tg(o){return o=gn(o),1&o?1+o>>>1:-1*(o>>>1)}function Rn(o){return xr(o,1)===1}function Jr(o){return xr(o,8)}function h6(o,u){for(var f=8,m=8,b=0;b>4>1){var R=b+5+o[b+4];if(R==b+188)continue}else R=b+4;switch(A){case 0:w&&(R+=o[R]+1),this.I=(o[R+10]&31)<<8|o[R+11];break;case 17:case 8191:break;case this.I:w&&(R+=o[R]+1),w=o,A={audio:-1,video:-1,bf:-1,audioCodec:"",videoCodec:""};var N=R+3+((w[R+1]&15)<<8|w[R+2])-4;for(R+=12+((w[R+10]&15)<<8|w[R+11]);R0)for(var Z=R+5,le=G;le>2;){var he=w[Z+1]+2;switch(w[Z]){case 5:var pe=mn(w.subarray(Z+2,Z+he));A.audio==-1&&pe==="Opus"?(A.audio=V,A.audioCodec="opus"):A.video==-1&&pe==="AV01"&&(A.video=V,A.videoCodec="av1");break;case 106:A.audio==-1&&(A.audio=V,A.audioCodec="ac3");break;case 122:A.audio==-1&&(A.audio=V,A.audioCodec="ec3");break;case 124:A.audio==-1&&(A.audio=V,A.audioCodec="aac");break;case 127:A.audioCodec=="opus"&&(pe=null,w[Z+2]===128&&(pe=w[Z+3]),pe!=null&&(this.H={channelCount:(pe&15)===0?2:pe&15,nj:pe,sampleRate:48e3}))}Z+=he,le-=he}break;case 15:A.audio==-1&&(A.audio=V,A.audioCodec="aac");break;case 17:A.audio==-1&&(A.audio=V,A.audioCodec="aac-loas");break;case 21:A.bf==-1&&(A.bf=V);break;case 27:A.video==-1&&(A.video=V,A.videoCodec="avc");break;case 3:case 4:A.audio==-1&&(A.audio=V,A.audioCodec="mp3");break;case 36:A.video==-1&&(A.video=V,A.videoCodec="hvc");break;case 129:A.audio==-1&&(A.audio=V,A.audioCodec="ac3");break;case 132:case 135:A.audio==-1&&(A.audio=V,A.audioCodec="ec3")}R+=G+5}w=A,w.video!=-1&&(this.K=w.video,this.m=w.videoCodec),w.audio!=-1&&(this.F=w.audio,this.C=w.audioCodec),w.bf!=-1&&(this.G=w.bf),m&&!this.J&&(m=!1,b=u-188),this.J=!0;break;case this.K:R=o.subarray(R,b+188),w?this.j.push([R]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(R);break;case this.F:R=o.subarray(R,b+188),w?this.i.push([R]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(R);break;case this.G:R=o.subarray(R,b+188),w?this.l.push([R]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(R);break;default:m=!0}}return this};function oL(o,u){if((u[0]<<16|u[1]<<8|u[2])!==1)return null;var f={data:new Uint8Array(0),packetLength:u[4]<<8|u[5],pts:null,dts:null,nalus:[]};if(f.packetLength&&f.packetLength>u.byteLength-6)return null;var m=u[7];if(m&192){var b=(u[9]&14)*536870912+(u[10]&255)*4194304+(u[11]&254)*16384+(u[12]&255)*128+(u[13]&254)/2;o.u==null&&(o.u=b),f.pts=kY(b,o.u),o.u=f.pts,f.dts=f.pts,m&64&&(m=(u[14]&14)*536870912+(u[15]&255)*4194304+(u[16]&254)*16384+(u[17]&255)*128+(u[18]&254)/2,o.o==null&&(o.o=m),f.dts=f.pts!=b?kY(m,o.o):m),o.o=f.dts}return o=u[8]+9,u.byteLength<=o?null:(f.data=u.subarray(o),f)}l.Ek=function(o){return Xt("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Wg(o,{ge:null,state:null})},l.Wg=function(o,u){var f=o.pts?o.pts/9e4:null;o=o.data;var m=o.byteLength,b=1;this.m=="hvc"&&(b=2);var w=u.state||0,A=w,R=0,N=[],V=-1,G=0;for(w==-1&&(V=0,G=this.m=="hvc"?o[0]>>1&63:o[0]&31,w=0,R=1);R=0?N.push({data:o.subarray(V+b,Z),fullData:o.subarray(V,Z),type:G,time:f,state:null}):(w=N.length?N[N.length-1]:u.ge)&&(A&&R<=4-A&&w.state&&(w.data=w.data.subarray(0,w.data.byteLength-A),w.fullData=w.fullData.subarray(0,w.fullData.byteLength-A)),Z>0&&(Z=o.subarray(0,Z),w.data=or(w.data,Z),w.fullData=or(w.fullData,Z),w.state=0)),R>1&63:o[R]&31,V=R,w=0):w=-1):w=0:w=3:w=Z?0:1}return V>=0&&w>=0&&N.push({data:o.subarray(V+b,m),fullData:o.subarray(V,m),type:G,time:f,state:w}),!N.length&&u.ge&&(f=N.length?N[N.length-1]:u.ge)&&(f.data=or(f.data,o),f.fullData=or(f.fullData,o)),u.state=w,N},l.getMetadata=function(){for(var o=[],u=_(this.l),f=u.next();!f.done;f=u.next())f=or.apply(tr,T(f.value)),(f=oL(this,f))&&o.push({cueTime:f.pts?f.pts/9e4:null,data:f.data,frames:nv(f.data),dts:f.dts,pts:f.pts});return o},l.ub=function(){if(this.i.length&&!this.h.length)for(var o=_(this.i),u=o.next();!u.done;u=o.next()){var f=or.apply(tr,T(u.value)),m=oL(this,f);u=this.h.length?this.h[this.h.length-1]:null,m&&m.pts!=null&&m.dts!=null&&(!u||u.pts!=m.pts&&u.dts!=m.dts)?this.h.push(m):this.h.length&&(f=m?m.data:f)&&(u=this.h.pop(),u.data=or(u.data,f),this.h.push(u))}return this.h},l.ud=function(o){if(o=o===void 0?!0:o,this.j.length&&!this.g.length){for(var u=_(this.j),f=u.next();!f.done;f=u.next()){var m=or.apply(tr,T(f.value)),b=oL(this,m);f=this.g.length?this.g[this.g.length-1]:null,b&&b.pts!=null&&b.dts!=null&&(!f||f.pts!=b.pts&&f.dts!=b.dts)?this.g.push(b):this.g.length&&(m=b?b.data:m)&&(f=this.g.pop(),f.data=or(f.data,m),this.g.push(f))}if(o){for(u={ge:null,state:null},f=[],m=_(this.g),b=m.next();!b.done;b=m.next())b=b.value,b.nalus=this.Wg(b,u),b.nalus.length&&(f.push(b),u.ge=b.nalus[b.nalus.length-1]);this.g=f}}return o?this.g:(o=this.g,this.g=[],o)},l.getStartTime=function(o){if(o=="audio"){o=null;var u=this.ub();return u.length&&(o=u[0],o=Math.min(o.dts,o.pts)/9e4),o}return o=="video"?(o=null,u=this.ud(!1),u.length&&(o=u[0],o=Math.min(o.dts,o.pts)/9e4),o):null},l.Vd=function(){return{audio:this.C,video:this.m}},l.$e=function(){for(var o=[],u=_(this.ud()),f=u.next();!f.done;f=u.next())o.push.apply(o,T(f.value.nalus));return o},l.dk=function(){Xt("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var o=this.Jg();return{height:o.height,width:o.width}},l.Jg=function(){return this.m=="hvc"?RSe(this):PSe(this)};function SY(o){var u=o.ud();return u.length>1&&(o=u[0].pts,u=u[1].pts,!isNaN(u-o))?String(Math.abs(1/(u-o)*9e4)):null}function PSe(o){var u={height:null,width:null,codec:null,frameRate:null},f=o.$e();if(!f.length||(f=f.find(function(he){return he.type==7}),!f))return u;f=new qf(f.data);var m=Jr(f),b=Jr(f),w=Jr(f);if(Us(f),MSe.includes(m)){var A=gn(f);if(A===3&&Ml(f,1),Us(f),Us(f),Ml(f,1),Rn(f)){A=A!==3?8:12;for(var R=0;R0)for(je=b;je<8;je++)xr(m,2);for(je=0;je>Xe&1)<<31-Xe;return it>>>0})(N),A=A==1?"H":"L",w="hvc1"+("."+["","A","B","C"][w]+R),w+="."+m.toString(16).toUpperCase(),w+="."+A+pe,he&&(w+="."+he.toString(16).toUpperCase()),le&&(w+="."+le.toString(16).toUpperCase()),Z&&(w+="."+Z.toString(16).toUpperCase()),G&&(w+="."+G.toString(16).toUpperCase()),V&&(w+="."+V.toString(16).toUpperCase()),f&&(w+="."+f.toString(16).toUpperCase()),u.codec=w,u.frameRate=SY(o),u}function kY(o,u){var f=1;for(o>u&&(f=-1);Math.abs(u-o)>4294967296;)o+=f*8589934592;return o}function Ag(o){return!(sL(o)<0)}function sL(o){for(var u=Math.min(1e3,o.length-564),f=0;f0||o.B.dispatchAllEmsgBoxes;G&&V.S("emsg",function(pe){var ye=b.emsgSchemeIdUris;if(pe.version===0)var be=pe.reader.Yc(),je=pe.reader.Yc(),Be=pe.reader.U(),Je=pe.reader.U(),lt=pe.reader.U(),St=pe.reader.U(),it=m.startTime+Je/Be;else Be=pe.reader.U(),it=pe.reader.Dd()/Be+m.timestampOffset,Je=it-m.startTime,lt=pe.reader.U(),St=pe.reader.U(),be=pe.reader.Yc(),je=pe.reader.Yc();pe=pe.reader.Tb(pe.reader.getLength()-pe.reader.Oa(),!0),(ye&&ye.includes(be)||o.B.dispatchAllEmsgBoxes)&&(be=="urn:mpeg:dash:event:2012"?o.O.Dk():(ye=it+lt/Be,o.O.Bk({startTime:it,endTime:ye,schemeIdUri:be,value:je,timescale:Be,presentationTimeDelta:Je,eventDuration:lt,id:St,messageData:pe}),(be=="https://aomedia.org/emsg/ID3"||be=="https://developer.apple.com/streaming/emsg-id3")&&(Be=nv(pe),Be.length&&o.O.onMetadata([{cueTime:it,data:pe,frames:Be,dts:it,pts:it}],0,ye))))});var Z=m.ba.timescale;u=Z&&!isNaN(Z);var le=0,he=!1;u&&V.S("prft",function(pe){var ye=pe.reader,be=pe.version;ye.U(),pe=ye.U();var je=ye.U();pe=pe*1e3+je/4294967296*1e3,be===0?ye=ye.U():(be=ye.U(),ye=ye.U(),ye=be*4294967296+ye),pe=_Y(pe),ye=new Map().set("detail",{wallClockTime:pe,programStartDate:new Date(pe-ye/Z*1e3)}),ye=new kn("prft",ye),o.O.onEvent(ye)}).box("moof",ar).box("traf",ar).S("tfdt",function(pe){he||(le=a6(pe.reader,pe.version).baseMediaDecodeTime/Z,he=!0,G||pe.parser.stop())}),(G||u)&&V.parse(f,!1,A),he&&m.timestampOffset==0&&(R=le)}else w.includes("/mp4")||w.includes("/webm")||!Ag(V)||(o.$.has(u)||o.$.set(u,new Li),N=o.$.get(u),N.clearData(),N.Gf(m.i),N.parse(V),V=N.getStartTime(u),V!=null&&(R=V),N=N.getMetadata());return{timestamp:R,metadata:N}}function m6(o,u,f,m,b,w,A,R,N,V,G){A=A===void 0?!1:A,R=R===void 0?!1:R,N=N===void 0?!1:N,V=V===void 0?!1:V;var Z,le,he,pe,ye,be,je,Be,Je,lt,St,it,Xe,pt,_t,bt,kt,xt,Bt,Nt;return re(function(Tt){switch(Tt.g){case 1:if(Z=Yr,u!=Z.Na){Tt.A(2);break}if(o.X!="HLS"){Tt.A(3);break}return L(Tt,o.Ta,4);case 4:le=Tt.h,o.h.u=le;case 3:return L(Tt,g_e(o.h,f,m?m.startTime:null,m?m.endTime:null,m?m.P()[0]:null),5);case 5:return Tt.return();case 2:if(V||!o.m){Tt.A(6);break}return L(Tt,m6(o,Z.ka,f,m,b,w,A,R,N,!0),7);case 7:return L(Tt,m6(o,Z.Aa,f,m,b,w,A,R,N,!0),8);case 8:return Tt.return();case 6:if(!o.l.has(u))return Tt.return();if(he=o.l.get(u).timestampOffset,pe=o.F.get(u),o.j.has(u)&&(pe=o.j.get(u).getOriginalMimeType()),m&&(ye=FSe(o,u,f,m,b,pe,N),be=ye.timestamp,je=ye.metadata,be!=null&&(o.V==null&&u==Z.Aa&&(o.V=be,o.wa=m.startTime,o.T!=null&&(Be=0,o.wa==o.qa&&(Be=o.V-o.T),o.ma.resolve(Be))),o.T==null&&u==Z.ka&&(o.T=be,o.qa=m.startTime,o.V!=null&&(Je=0,o.wa==o.qa&&(Je=o.V-o.T),o.ma.resolve(Je))),lt=be,St=Vf,!o.I&&St.includes(o.F.get(u))&&(lt=0),it=m.startTime-lt,Xe=Math.abs(he-it),(Xe>=.001||A||R)&&(!N||it>0||!he)&&(he=it,o.ib&&(ns(o,u,function(){return Lg(o,u)},null),ns(o,u,function(){return Dg(o,u,he)},null))),(u==Z.Aa||!o.l.has(Z.Aa))&&o.Ta.resolve(he)),je.length)&&o.O.onMetadata(je,he,m?m.endTime:null),w&&u==Z.Aa&&(o.h||v6(o,"application/cea-608",o.I,!1),o.J||(pt=pe.split(";",1)[0],o.J=new Ns(pt)),m?(_t=o.J.xf(f),_t.length&&b_e(o.h,_t,he)):o.J.init(f,R,G)),!o.j.has(u)){Tt.A(9);break}return L(Tt,o.j.get(u).transmux(f,b,m,o.i.duration,u),10);case 10:bt=Tt.h,ArrayBuffer.isView(bt)?f=bt:(kt=bt,kt.init!=null&&(xt=kt.init,ns(o,u,function(){o.H&&ui(o.H,xt,he,b),o.l.get(u).appendBuffer(xt)},m?m.P()[0]:null)),f=kt.data);case 9:if(f=WSe(o,b,f,m,u),!m||!o.I||u==Z.Na){Tt.A(11);break}if(!A&&!R){Tt.A(11);break}if(Bt=m.startTime,o.X!="HLS"||o.m||u!=Z.ka||!o.l.has(Z.Aa)){Tt.A(13);break}return L(Tt,o.ma,14);case 14:Nt=Tt.h,Math.abs(Nt)>.15&&(Bt-=Nt);case 13:ns(o,u,function(){return Lg(o,u)},null),ns(o,u,function(){return Dg(o,u,Bt)},null);case 11:return L(Tt,ns(o,u,function(){var Dt=f;o.H&&ui(o.H,Dt,he,b),o.l.get(u).appendBuffer(Dt)},m?m.P()[0]:null),15);case 15:B(Tt)}})}function jSe(o,u){var f=ov(o,"video")||0;uq(o.h,u,f)}function VSe(o){o.h&&uq(o.h,"",0)}l.remove=function(o,u,f,m){var b=this,w,A;return re(function(R){return R.g==1?(w=Yr,o==w.Aa&&b.J&&(b.J.remove(m),A=b.h.g||0,b.h.remove(A,f,!0)),o==w.Na?L(R,b.h.remove(u,f),0):f>u?L(R,ns(b,o,function(){return g6(b,o,u,f)},null),5):R.A(0)):b.m?L(R,ns(b,w.ka,function(){return g6(b,w.ka,u,f)},null),0):R.A(0)})};function wY(o,u){var f;return re(function(m){return m.g==1?(f=Yr,u==f.Na?o.h?L(m,o.h.remove(0,1/0),0):m.return():u===f.Aa&&o.J&&o.h?L(m,o.h.remove(0,1/0,!0),4):m.A(4)):m.g!=6?L(m,ns(o,u,function(){return g6(o,u,0,o.i.duration)},null),6):o.m?L(m,ns(o,f.ka,function(){return g6(o,f.ka,0,o.i.duration)},null),0):m.A(0)})}l.flush=function(o){var u=this,f;return re(function(m){return m.g==1?(f=Yr,o==f.Na?m.return():L(m,ns(u,o,function(){u.g.currentTime-=.001,dp(u,o)},null),2)):u.m?L(m,ns(u,f.ka,function(){var b=f.ka;u.g.currentTime-=.001,dp(u,b)},null),0):m.A(0)})};function EY(o,u,f,m,b,w,A,R,N){var V,G,Z;return re(function(le){return le.g==1?(V=Yr,u==V.Na?(w||(o.h.u=f),y_e(o.h,m,b),le.return()):(G=[],L(le,qSe(o,u,A,R,N),2))):(Z=le.h,Z||(G.push(ns(o,u,function(){return Lg(o,u)},null)),o.m&&G.push(ns(o,V.ka,function(){return Lg(o,V.ka)},null))),w||(G.push(ns(o,u,function(){return Dg(o,u,f)},null)),o.m&&G.push(ns(o,V.ka,function(){return Dg(o,V.ka,f)},null))),(m!=0||b!=1/0)&&(G.push(ns(o,u,function(){return TY(o,u,m,b)},null)),o.m&&G.push(ns(o,V.ka,function(){return TY(o,V.ka,m,b)},null))),G.length?L(le,Promise.all(G),0):le.A(0))})}function zSe(o,u,f){var m,b;return re(function(w){return w.g==1?(m=Yr,u==m.Na||(u==m.Aa&&(o.Ta=new di),!o.I||(b=ov(o,u))&&Math.abs(b-f)<.15)?w.return():(ns(o,u,function(){return Lg(o,u)},null),o.m&&ns(o,m.ka,function(){return Lg(o,m.ka)},null),L(w,ns(o,u,function(){return Dg(o,u,f)},null),2))):o.m?L(w,ns(o,m.ka,function(){return Dg(o,m.ka,f)},null),0):w.A(0)})}l.endOfStream=function(o){var u=this;return re(function(f){return L(f,Y3(u,function(){rv(u)||iv(u)||(o?u.i.endOfStream(o):u.i.endOfStream())}),0)})},l.Ab=function(o){var u=this;return re(function(f){return L(f,Y3(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&o=u.o&&m&&!u.i)&&(u.j&&u.j(u.g,b),u.i=!0,u.g=f.g.currentTime),u=!m}u&&(u=o.g.currentTime,f=o.g.buffered,m=ASe(f,u,o.h.gapDetectionThreshold),m==null||m==0&&!o.B||(b=f.start(m),(w=o.h.gapPadding)&&(b=Math.ceil((b+w)*100)/100),b>=o.F.Gb()||b-u<.001||(m!=0&&f.end(m-1),ZSe(o,b),u==o.l&&(o.l=b),o.G++,o.u(new kn("gapjumped")))))}}}function ZSe(o,u){o.C=!0,o.j.Ba(o.g,"seeked",function(){o.C=!1}),o.g.currentTime=u}function JSe(o){if(!o.h.stallEnabled)return null;var u=o.h.stallThreshold,f=o.h.stallSkip;return new RY(new MY(o.g),u,function(){var m;return re(function(b){if(b.g==1)return m=Kf(o.g.buffered),m.length?f?(o.g.currentTime+=f,b.A(2)):L(b,o.g.play(),3):b.return();if(b.g!=2){if(!o.g)return b.return();o.g.pause(),o.g.play()}o.H++,o.u(new kn("stalldetected")),B(b)})})}function RY(o,u,f){this.h=o,this.m=$Y(o),this.g=o.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=f}RY.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function MY(o){var u=this;this.g=o,this.h=new Me,this.i=!1,this.h.D(this.g,"audiofocuspaused",function(){u.i=!0}),this.h.D(this.g,"audiofocusgranted",function(){u.i=!1}),this.h.D(this.g,"audiofocuslost",function(){u.i=!0})}function $Y(o){if(o.g.paused||o.g.playbackRate==0||o.i||o.g.buffered.length==0)var u=!1;else e:{u=o.g.currentTime,o=_(Kf(o.g.buffered));for(var f=o.next();!f.done;f=o.next())if(f=f.value,!(uf.end-.5)){u=!0;break e}u=!1}return u}MY.prototype.release=function(){this.h&&this.h.release(),this.h=null};function Pg(o,u,f,m){u==HTMLMediaElement.HAVE_NOTHING||o.readyState>=u?m():(u=QSe.value().get(u),f.Ba(o,u,m))}var QSe=new Qe(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function OY(o,u,f,m){var b=this;this.g=o,this.m=u,this.u=f,this.l=null,this.j=function(){return b.l==null&&(b.l=m()),b.l},this.o=!1,this.h=new Me,this.i=new jY(o),Pg(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){NY(b,b.j())})}OY.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i!=null&&(this.i.release(),this.i=null),this.m=function(){},this.g=null};function vL(o){return o.o?o.g.currentTime:o.j()}function BY(o,u){o.g.readyState>0?VY(o.i,u):Pg(o.g,HTMLMediaElement.HAVE_METADATA,o.h,function(){NY(o,o.j())})}function NY(o,u){Math.abs(o.g.currentTime-u)<.001?FY(o):(o.h.Ba(o.g,"seeking",function(){FY(o)}),VY(o.i,o.g.currentTime&&o.g.currentTime!=0?o.g.currentTime:u))}function FY(o){o.o=!0,o.h.D(o.g,"seeking",function(){return o.m()}),o.u(o.g.currentTime)}function jY(o){var u=this;this.g=o,this.m=10,this.j=this.l=this.i=0,this.h=new mr(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}jY.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function VY(o,u){o.l=o.g.currentTime,o.j=u,o.i=o.m,o.g.currentTime=u,o.h.Ea(.1)}function zY(o){this.g=o,this.i=!1,this.h=null,this.j=new Me}l=zY.prototype,l.ready=function(){function o(){if(u.h==null||u.h==0&&u.g.duration!=1/0)u.i=!0;else{var f=u.g.currentTime,m=null;if(typeof u.h=="number")m=u.h;else if(u.h instanceof Date){var b=UY(u);b!==null&&(m=u.h.getTime()/1e3-b,m=HY(u,m))}m==null?u.i=!0:(m<0&&(m=Math.max(0,f+m)),f!=m?(u.j.Ba(u.g,"seeking",function(){u.i=!0}),u.g.currentTime=m):u.i=!0)}}var u=this;Pg(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){o()})},l.release=function(){this.j&&(this.j.release(),this.j=null),this.g=null},l.Wf=function(o){this.h=this.i?this.h:o},l.He=function(){var o=this.i?this.g.currentTime:this.h;return o instanceof Date&&(o=o.getTime()/1e3-(UY(this)||0),o=HY(this,o)),o||0},l.Ih=function(){return 0},l.Gh=function(){return 0},l.Hh=function(){return!1},l.xi=function(){},l.ki=function(){var o=d6(this.g.buffered);return o!=null&&o>=this.g.duration-1};function UY(o){return o.g.getStartDate&&(o=o.g.getStartDate().getTime(),!isNaN(o))?o/1e3:null}function HY(o,u){return o=o.g.seekable,o.length>0&&(u=Math.max(o.start(0),u),u=Math.min(o.end(o.length-1),u)),u}function WY(o,u,f,m,b,w){var A=this;this.h=o,this.g=u.presentationTimeline,this.l=f,this.u=b,this.o=null,this.i=new pL(o,u.presentationTimeline,f,w),this.j=new OY(o,function(){e:{var R=A.i;R.m=!0,R.B=!1,R.i&&R.i.Ea(R.h.gapJumpTimerTime),X3(R);var N=vL(A.j);if(R=qY(A,N),!ug()&&Math.abs(R-N)>.001){N=!1;var V=Le().Mi();if(V){var G=Date.now()/1e3;(!A.o||A.o0&&!this.h.paused?YY(this,o):o},l.Ih=function(){return this.i.H},l.Gh=function(){return this.i.G},l.Hh=function(){return this.i.C};function GY(o,u){return u==null?u=o.g.getDuration()<1/0?o.g.Xb():o.g.Gb():u instanceof Date?u=u.getTime()/1e3-(o.g.m||o.g.i):u<0&&(u=o.g.Gb()+u),KY(o,YY(o,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var o=this.g.Hc(),u=d6(this.h.buffered);if(u!=null&&u>=o)return!0}return!1};function KY(o,u){var f=o.g.getDuration();return u>=f?f-o.l.durationBackoff:u}function qY(o,u){var f=o.l.rebufferingGoal,m=o.l.safeSeekOffset,b=o.g.Xb(),w=o.g.Gb(),A=o.g.getDuration();w-b<3&&(b=w-3);var R=o.g.Xd(f),N=o.g.Xd(m);return f=o.g.Xd(f+m),u>=A?KY(o,u):u>w?w-o.l.safeSeekEndOffset:u=R||JI(o.h.buffered,u)?u:f}function YY(o,u){var f=o.g.Xb();return uo?o:u)}function $r(o){this.g=o,this.m=null,this.i=0,this.o=!1}l=$r.prototype,l.getNumReferences=function(){return this.g.length},l.getNumEvicted=function(){return this.i},l.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)},l.yk=function(){this.o=!0},l.Fb=function(o){for(var u=_(this.g),f=u.next();!f.done;f=u.next())o(f.value)};function ad(o){return o.g[0]||null}l.find=function(o){for(var u=this.g.length-1,f=u;f>=0;--f){var m=this.g[f],b=f=m.startTime&&o=this.g.length?null:this.g[o])},l.offset=function(o){if(!this.o)for(var u=_(this.g),f=u.next();!f.done;f=u.next())f.value.offset(o)},l.nf=function(o){if(!this.o&&o.length){var u=Math.round(o[0].startTime*1e3)/1e3;this.g=this.g.filter(function(f){return Math.round(f.startTime*1e3)/1e3u&&(f.g.length==0||m.endTime>f.g[0].startTime)}),this.nf(o),this.Ya(u)},l.Ya=function(o){if(!this.o){var u=this.g.length;this.g=this.g.filter(function(f){return f.endTime>o}),this.i+=u-this.g.length}},l.pd=function(o,u,f){if(f=f===void 0?!1:f,!this.o){for(;this.g.length&&this.g[this.g.length-1].startTime>=u;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=o;)this.g.shift(),f||this.i++;this.g.length!=0&&(o=this.g[this.g.length-1],u=new Fn(o.startTime,u,o.C,o.startByte,o.endByte,o.ba,o.timestampOffset,o.appendWindowStart,o.appendWindowEnd,o.g,o.tilesLayout,o.B,o.h,o.status,o.aesKey),u.mimeType=o.mimeType,u.codecs=o.codecs,u.i=o.i,this.g[this.g.length-1]=u)}},l.Nf=function(o,u){var f=this;this.o||(this.m&&this.m.stop(),this.m=new mr(function(){var m=u();m?f.g.push.apply(f.g,T(m)):(f.m.stop(),f.m=null)}),this.m.Ea(o))},$r.prototype[Symbol.iterator]=function(){return this.Vb(0)},$r.prototype.Vb=function(o,u,f){u=u===void 0?!1:u,f=f===void 0?!1:f;var m=this.find(o);if(m==null)return null;var b=this.get(m);f?m++:m--;var w=-1;if(b&&b.g.length>0)for(var A=b.g.length-1;A>=0;--A){var R=b.g[A];if(o>=R.startTime&&o0&&o.m&&this.g>=o.g.length&&(this.h++,this.g=0,o=this.i.get(this.h)),o&&o.g.length>0?o.g[this.g]:o},l.next=function(){var o=this.i.get(this.h);return this.reverse?o&&o.g.length>0?(this.g--,this.g<0&&(this.h--,this.g=(o=this.i.get(this.h))&&o.g.length>0?o.g.length-1:0)):(this.h--,this.g=0):o&&o.g.length>0?(this.g++,o.m&&this.g==o.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),o=this.current(),{value:o,done:!o}},l.eh=function(){var o=this.current();if(o&&o.Xc&&!o.l&&(o=this.i.get(this.h))&&o.g.length>0)for(var u=o.g[this.g];u.l&&!(this.g<=0);)this.g--,u=o.g[this.g]},_e("shaka.media.SegmentIterator",Vu),Vu.prototype.resetToLastIndependent=Vu.prototype.eh,Vu.prototype.next=Vu.prototype.next,Vu.prototype.current=Vu.prototype.current,Vu.prototype.currentPosition=Vu.prototype.tj,Vu.prototype.setReverse=Vu.prototype.Id;function Qi(){$r.call(this,[]),this.h=[]}x(Qi,$r),l=Qi.prototype,l.clone=function(){var o=new Qi;return o.h=this.h.slice(),o.i=this.i,o},l.release=function(){this.h=[]},l.Fb=function(o){for(var u=_(this.h),f=u.next();!f.done;f=u.next())f.value.Fb(o)};function e6e(o,u){o=_(o.h);for(var f=o.next();!f.done;f=o.next())u(f.value)}l.find=function(o){for(var u=this.i,f=_(this.h),m=f.next();!m.done;m=f.next()){m=m.value;var b=m.find(o);if(b!=null)return b+u;u+=m.getNumEvicted()+m.getNumReferences()}return null};function t6e(o,u){o=_(o.h);for(var f=o.next();!f.done;f=o.next())if(f=f.value,f.find(u)!=null)return f.Te();return-1}l.get=function(o){for(var u=this.i,f=_(this.h),m=f.next();!m.done;m=f.next()){m=m.value;var b=m.get(o-u);if(b)return b;b=m.getNumReferences(),u+=m.getNumEvicted()+b}return null},l.offset=function(){},l.nf=function(){},l.Ya=function(o){if(this.h.length){var u=this.h[0];u.Ya(o),u.getNumReferences()==0&&(this.h.shift(),this.i+=u.getNumEvicted(),u.release(),this.Ya(o))}},l.fe=function(){},l.pd=function(){},l.Nf=function(){},_e("shaka.media.MetaSegmentIndex",Qi),Qi.prototype.updateEvery=Qi.prototype.Nf,Qi.prototype.fit=Qi.prototype.pd,Qi.prototype.mergeAndEvict=Qi.prototype.fe,Qi.prototype.evict=Qi.prototype.Ya,Qi.prototype.merge=Qi.prototype.nf,Qi.prototype.offset=Qi.prototype.offset,Qi.prototype.get=Qi.prototype.get,Qi.prototype.find=Qi.prototype.find,Qi.prototype.forEachTopLevelReference=Qi.prototype.Fb,Qi.prototype.release=Qi.prototype.release;function Z3(o){var u=this;this.g=o,this.j=!1,this.i=this.g.Ye(),this.h=new mr(function(){u.g.ui(u.i*.25)})}Z3.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},Z3.prototype.set=function(o){this.i=o,mL(this)},Z3.prototype.Tc=function(){return this.g.Tc()};function mL(o){o.h.stop();var u=o.j?0:o.i;if(u>=0)try{o.g.Ye()!=u&&o.g.ph(u);return}catch{}o.h.Ea(.25),o.g.Ye()!=0&&o.g.ph(0)}function gL(o){var u=this;this.j=o,this.h=new Me,this.g=new Set,this.i=new mr(function(){XY(u,!1)}).Jb(),o.paused||this.i.Ea(.25),this.h.D(o,"playing",function(){u.i.Jb().Ea(.25)}),this.h.D(o,"pause",function(){u.i.stop()})}gL.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i.stop();for(var o=_(this.g),u=o.next();!u.done;u=o.next())u.value.release();this.g.clear()};function XY(o,u){var f=o.j.currentTime;o=_(o.g);for(var m=o.next();!m.done;m=o.next())m.value.j(f,u)}function b6(o){Zr.call(this),this.g=new Map,this.h=o}x(b6,Zr),b6.prototype.release=function(){this.g.clear(),Zr.prototype.release.call(this)};function n6e(o,u){var f=o.g.get(u);return f||(f={me:[],lg:null,contentType:u},o.g.set(u,f)),f}function r6e(o,u,f){var m=n6e(o,u.contentType);i6e(o,m),o={xd:u,position:f},m=m.me,u=m.findIndex(function(b){return b.position>=f}),u>=0?m.splice(u,m[u].position==f?1:0,o):m.push(o)}b6.prototype.j=function(o){for(var u=_(this.g.values()),f=u.next();!f.done;f=u.next()){f=f.value;var m=f.lg;e:{for(var b=f.me,w=b.length-1;w>=0;w--){var A=b[w];if(A.position<=o){b=A.xd;break e}}b=null}w=b&&!(m===b||m&&b&&m.bandwidth==b.bandwidth&&m.audioSamplingRate==b.audioSamplingRate&&m.codecs==b.codecs&&m.contentType==b.contentType&&m.frameRate==b.frameRate&&m.height==b.height&&m.mimeType==b.mimeType&&m.channelsCount==b.channelsCount&&m.pixelAspectRatio==b.pixelAspectRatio&&m.width==b.width),A=b&&m&&b.label&&m.label&&m.label!==b.label;var R=b&&m&&b.language&&m.language&&m.language!==b.language;m=b&&m&&b.roles&&m.roles&&!vt(m.roles,b.roles),(A||R||m)&&ZY(this,o,b.contentType)&&(f.lg=b,m=new kn("audiotrackchange",new Map([["quality",b],["position",o]])),this.dispatchEvent(m)),w&&ZY(this,o,b.contentType)&&(f.lg=b,JSON.stringify(b),f=new kn("qualitychange",new Map([["quality",b],["position",o]])),this.dispatchEvent(f))}};function ZY(o,u,f){return!!((o=o.h()[f])&&o.length>0&&(f=o[o.length-1].end,u>=o[0].start&&u0){var f=o[0].start,m=o[o.length-1].end,b=u.me;u.me=b.filter(function(w,A){return!(w.position<=f&&A+1=m)})}else u.me=[]}function _6(o){var u={bandwidth:o.bandwidth||0,audioSamplingRate:null,codecs:o.codecs,contentType:o.type,frameRate:null,height:null,mimeType:o.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:o.roles,language:null};return o.type=="video"&&(u.frameRate=o.frameRate||null,u.height=o.height||null,u.pixelAspectRatio=o.pixelAspectRatio||null,u.width=o.width||null),o.type=="audio"&&(u.audioSamplingRate=o.audioSamplingRate,u.channelsCount=o.channelsCount,u.label=o.label||null,u.language=o.language),u}function J3(o){Zr.call(this),this.h=new Map,this.i=o,this.g=null}x(J3,Zr),J3.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Zr.prototype.release.call(this)};function yL(o,u){var f=u.schemeIdUri+"_"+u.id+"_"+(u.startTime.toFixed(1)+"_"+u.endTime.toFixed(1));o.h.has(f)||(o.h.set(f,u),u=new kn("regionadd",new Map([["region",u]])),o.dispatchEvent(u),o6e(o))}function o6e(o){o.g||(o.g=new mr(function(){for(var u=o.i(),f=_(o.h),m=f.next();!m.done;m=f.next()){var b=_(m.value);m=b.next().value,b=b.next().value,b.endTimem.endTime&&e2(this,m);u&&bL(this)},S6.prototype.Id=function(o){this.o=o,this.h&&this.h.Id(o)};function bL(o){if(o.g.size)for(var u=Array.from(o.g.keys()),f=_(o.j.keys()),m=f.next(),b={};!m.done;b={Mg:void 0},m=f.next())b.Mg=m.value,u.some((function(w){return function(A){return G3(A.ba,w.Mg)}})(b))||e2(o,b.Mg)}function eX(o,u){o.m=u;for(var f=Array.from(o.g.keys());f.length>u;){var m=f.pop();m&&e2(o,m)}bL(o)}function a6e(o,u){u&&u!==o.i&&(ld(o),o.i=u)}function e2(o,u){var f=o.g;u instanceof il&&(f=o.j),o=f.get(u),f.delete(u),o&&o.abort()}function _L(o){this.g=o,this.je=this.wh=null}function tX(o,u,f){var m=new Uint8Array(0);return o.je=o.g(u,f,function(b){return re(function(w){if(w.g==1)return m.byteLength>0?m=or(m,b):m=b,o.wh?L(w,o.wh(m),3):w.A(0);m=new Uint8Array(0),B(w)})}),o.je.promise.catch(function(b){return b instanceof De&&b.code==7001?Promise.resolve():Promise.reject(b)})}_L.prototype.abort=function(){this.je&&this.je.abort()},_e("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function SL(o){var u=Dl(o),f=u.split("/")[0];return o=rl(o),{type:f,mimeType:u,codecs:o,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,ve:null,colorGamut:null,frameRate:null}}function l6e(o,u,f){function m(Xe){je=Xe.name;var pt=Xe.reader;pt.skip(24);var _t=pt.Ca(),bt=pt.Ca();pt.skip(50),le=String(_t),Z=String(bt),Xe.reader.Ia()&&ar(Xe)}function b(Xe){var pt=sY(Xe.reader);he=pt.channelCount,pe=pt.sampleRate,w(Xe.name)}function w(Xe){switch(Xe=Xe.toLowerCase(),Xe){case"avc1":case"avc3":R.push(Xe+".42E01E"),V=!0;break;case"hev1":case"hvc1":R.push(Xe+".1.6.L93.90"),V=!0;break;case"dvh1":case"dvhe":R.push(Xe+".05.04"),V=!0;break;case"vp09":R.push(Xe+".00.10.08"),V=!0;break;case"av01":R.push(Xe+".0.01M.08"),V=!0;break;case"mp4a":A.push("mp4a.40.2"),N=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":A.push(Xe),N=!0;break;case"apac":A.push("apac.31.00"),N=!0}}var A=[],R=[],N=!1,V=!1,G=null,Z=null,le=null,he=null,pe=null,ye=null,be=null,je;if(new fi().box("moov",ar).box("trak",ar).box("mdia",ar).S("mdhd",function(Xe){G=l6(Xe.reader,Xe.version).language}).box("minf",ar).box("stbl",ar).S("stsd",Wf).box("mp4a",function(Xe){var pt=sY(Xe.reader);he=pt.channelCount,pe=pt.sampleRate,Xe.reader.Ia()?ar(Xe):w(Xe.name)}).box("esds",function(Xe){Xe=Xe.reader;for(var pt="mp4a",_t,bt;Xe.Ia();){_t=Xe.Y();for(var kt=Xe.Y();kt&128;)kt=Xe.Y();if(_t==3)Xe.Ca(),kt=Xe.Y(),kt&128&&Xe.Ca(),kt&64&&Xe.skip(Xe.Y()),kt&32&&Xe.Ca();else if(_t==4)bt=Xe.Y(),Xe.skip(12);else if(_t==5)break}bt&&(pt+="."+U3(bt),_t==5&&Xe.Ia()&&(_t=Xe.Y(),bt=(_t&248)>>3,bt===31&&Xe.Ia()&&(bt=32+((_t&7)<<3)+((Xe.Y()&224)>>5)),pt+="."+bt)),A.push(pt),N=!0}).box("ac-3",b).box("ec-3",b).box("ac-4",b).box("Opus",b).box("fLaC",b).box("apac",b).box("avc1",m).box("avc3",m).box("hev1",m).box("hvc1",m).box("dva1",m).box("dvav",m).box("dvh1",m).box("dvhe",m).box("vp09",m).box("av01",m).box("avcC",function(Xe){var pt=je||"";switch(je){case"dvav":pt="avc3";break;case"dva1":pt="avc1"}Xe=Xe.reader,Xe.skip(1),Xe=pt+"."+U3(Xe.Y())+U3(Xe.Y())+U3(Xe.Y()),R.push(Xe),V=!0}).box("hvcC",function(Xe){var pt=je||"";switch(je){case"dvh1":pt="hvc1";break;case"dvhe":pt="hev1"}var _t=Xe.reader;_t.skip(1),Xe=_t.Y();var bt=["","A","B","C"][Xe>>6],kt=Xe&31,xt=_t.U(),Bt=(Xe&32)>>5?"H":"L";Xe=[_t.Y(),_t.Y(),_t.Y(),_t.Y(),_t.Y(),_t.Y()],_t=_t.Y();for(var Nt=0,Tt=0;Tt<32&&(Nt|=xt&1,Tt!=31);Tt++)Nt<<=1,xt>>=1;for(pt=pt+("."+bt+kt)+("."+U3(Nt,!0)),pt+="."+Bt+_t,bt="",kt=Xe.length;kt--;)((Bt=Xe[kt])||bt)&&(bt="."+Bt.toString(16).toUpperCase()+bt);pt+=bt,R.push(pt),V=!0}).box("dvcC",function(Xe){var pt=je||"";switch(je){case"hvc1":pt="dvh1";break;case"hev1":pt="dvhe";break;case"avc1":pt="dva1";break;case"avc3":pt="dvav";break;case"av01":pt="dav1"}var _t=Xe.reader;_t.skip(2),Xe=_t.Y(),_t=_t.Y(),R.push(pt+"."+Rl(Xe>>1&127)+"."+Rl(Xe<<5&32|_t>>3&31)),V=!0}).box("dvvC",function(Xe){var pt=je||"";switch(je){case"hvc1":pt="dvh1";break;case"hev1":pt="dvhe";break;case"avc1":pt="dva1";break;case"avc3":pt="dvav";break;case"av01":pt="dav1"}var _t=Xe.reader;_t.skip(2),Xe=_t.Y(),_t=_t.Y(),R.push(pt+"."+Rl(Xe>>1&127)+"."+Rl(Xe<<5&32|_t>>3&31)),V=!0}).S("vpcC",function(Xe){var pt=je||"",_t=Xe.reader;Xe=_t.Y();var bt=_t.Y();_t=_t.Y()>>4&15,R.push(pt+"."+Rl(Xe)+"."+Rl(bt)+"."+Rl(_t)),V=!0}).box("av1C",function(Xe){var pt=je||"";switch(je){case"dav1":pt="av01"}var _t=Xe.reader;_t.skip(1),Xe=_t.Y(),_t=_t.Y();var bt=Xe>>>5,kt=(_t&64)>>6;R.push(pt+"."+bt+"."+Rl(Xe&31)+(_t>>>7?"H":"M")+"."+Rl(bt===2&&kt?(_t&32)>>5?12:10:kt?10:8)+"."+((_t&16)>>4)+"."+((_t&8)>>3)+((_t&4)>>2)+(_t&3)+"."+Rl(1)+"."+Rl(1)+"."+Rl(1)+".0"),V=!0}).box("enca",n6).box("encv",Pl).box("sinf",ar).box("frma",function(Xe){Xe=XI(Xe.reader).codec,w(Xe)}).box("colr",function(Xe){R=R.map(function(bt){if(bt.startsWith("av01.")){var kt=Xe.reader,xt=kt.Oa(),Bt=kt.Tb(4,!1),Nt=String.fromCharCode(Bt[0]);if(Nt+=String.fromCharCode(Bt[1]),Nt+=String.fromCharCode(Bt[2]),Nt+=String.fromCharCode(Bt[3]),Nt==="nclx"){Bt=kt.Ca(),Nt=kt.Ca();var Tt=kt.Ca(),Dt=kt.Y()>>7,Kt=bt.split(".");Kt.length==10&&(Kt[6]=Rl(Bt),Kt[7]=Rl(Nt),Kt[8]=Rl(Tt),Kt[9]=String(Dt),bt=Kt.join("."))}kt.seek(xt)}return bt});var pt=cSe(Xe.reader),_t=pt.colorGamut;ye=pt.ve,be=_t}).parse(o||u,!0,!0),!A.length&&!R.length)return null;var Be=N&&!V,Je=new Map;if(V&&!f){f=new Ns("video/mp4"),o&&f.init(o);try{f.xf(u);for(var lt=_(f.Vf()),St=lt.next();!St.done;St=lt.next()){var it=St.value;Je.set(it,it)}}catch{}f.Nd()}return{type:Be?"audio":"video",mimeType:Be?"audio/mp4":"video/mp4",codecs:kL(A.concat(R)).join(", "),language:G,height:Z,width:le,channelCount:he,sampleRate:pe,closedCaptions:Je,ve:ye,colorGamut:be,frameRate:null}}function kL(o){var u=new Set,f=[];o=_(o);for(var m=o.next();!m.done;m=o.next()){m=m.value;var b=sp(m);u.has(b)||(f.push(m),u.add(b))}return u=La("audio",f),m=La("video",f),o=La(wn,f),m=u6e(m),u=u.concat(m).concat(o),f.length&&!u.length?f:u}function u6e(o){if(o.length<=1)return o;var u=o.find(function(f){return f.startsWith("dvav.")||f.startsWith("dva1.")||f.startsWith("dvh1.")||f.startsWith("dvhe.")||f.startsWith("dav1.")||f.startsWith("dvc1.")||f.startsWith("dvi1.")});return u?jo('video/mp4; codecs="'+u+'"')?[u]:o.filter(function(f){return f!=u}):o}function c6e(o){var u=null;return new fi().box("moov",ar).box("trak",ar).box("mdia",ar).box("minf",ar).box("stbl",ar).S("stsd",Wf).box("encv",Pl).box("enca",n6).box("sinf",ar).box("schi",ar).S("tenc",function(f){f=f.reader,f.Y(),f.Y(),f.Y(),f.Y(),f=f.Tb(16,!1),u=Ln(f)}).parse(o,!0),u}function xL(o,u,f){var m,b,w,A,R;return re(function(N){if(N.g==1)return m=u,m.cryptoKey?N.A(2):L(N,m.fetchKey(),3);if(b=m.iv,!b)for(b=Ae(new ArrayBuffer(16)),w=m.firstMediaSequenceNumber+f,A=b.byteLength-1;A>=0;A--)b[A]=w&255,w>>=8;return u.blockCipherMode=="CBC"?R={name:"AES-CBC",iv:b}:R={name:"AES-CTR",counter:b,length:64},N.return(i.crypto.subtle.decrypt(R,m.cryptoKey,o))})}function t2(o,u,f,m,b){return o=Vo(o,m,b),(u!=0||f!=null)&&(o.headers.Range=f?"bytes="+u+"-"+f:"bytes="+u+"-"),o}function nX(o,u){var f=this;this.g=u,this.j=o,this.i=null,this.M=new Map,this.C=1,this.B=this.o=null,this.V=0,this.h=new Map,this.N=!1,this.X=null,this.F=!1,this.l=new yg(function(){return d6e(f)}),this.R=Date.now()/1e3,this.m=new Map,this.T={projection:null,hfov:null},this.aa=0,this.$=1/0,this.H=null,this.O=[],this.u=new mr(function(){if(f.j&&f.g)if(f.j.presentationTimeline.W()){var m=f.j.presentationTimeline.Xb(),b=f.j.presentationTimeline.Gb();b-m>1?USe(f.g.Z,m,b):uL(f.g.Z)}else uL(f.g.Z),f.u&&f.u.stop();else f.u&&f.u.stop()}),this.I=null,this.J=!1,this.K=new mr(function(){var m=f.g.video;!m.ended&&f.I&&(f.J=!0,m.currentTime=f.I,f.I=null)}),this.G=new Me}l=nX.prototype,l.destroy=function(){return this.l.destroy()};function d6e(o){var u,f,m,b,w,A,R;return re(function(N){if(N.g==1){for(o.u&&o.u.stop(),o.u=null,o.K&&o.K.stop(),o.K=null,o.G&&(o.G.release(),o.G=null),u=[],f=_(o.h.values()),m=f.next();!m.done;m=f.next())b=m.value,Yf(b),u.push(E6(b)),b.ha&&(ld(b.ha),b.ha=null);for(w=_(o.m.values()),A=w.next();!A.done;A=w.next())R=A.value,ld(R);return L(N,Promise.all(u),2)}o.h.clear(),o.m.clear(),o.g=null,o.j=null,o.i=null,o.I=null,B(N)})}l.configure=function(o){if(this.i=o,this.X=new Aq({maxAttempts:Math.max(o.retryParameters.maxAttempts,2),baseDelay:o.retryParameters.baseDelay,backoffFactor:o.retryParameters.backoffFactor,fuzzFactor:o.retryParameters.fuzzFactor},!0),o.disableAudioPrefetch){var u=this.h.get("audio");u&&u.ha&&(ld(u.ha),u.ha=null),u=_(this.m.keys());for(var f=u.next();!f.done;f=u.next())f=f.value,ld(this.m.get(f)),this.m.delete(f)}for(o.disableTextPrefetch&&(u=this.h.get(wn))&&u.ha&&(ld(u.ha),u.ha=null),o.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(ld(u.ha),u.ha=null),u=_(this.h.keys()),f=u.next();!f.done;f=u.next())f=this.h.get(f.value),f.ha?(eX(f.ha,o.segmentPrefetchLimit),o.segmentPrefetchLimit>0||(ld(f.ha),f.ha=null)):o.segmentPrefetchLimit>0&&(f.ha=wL(this,f.stream));o.disableAudioPrefetch||y6e(this)};function f6e(o,u,f){o.j.presentationTimeline.W()||(o.aa=u,o.$=f)}l.start=function(o){var u=this;return re(function(f){if(f.g==1)return L(f,g6e(u,o||new Map),2);Ii(u.l),u.N=!0,B(f)})};function h6e(o,u){var f,m,b,w,A,R;re(function(N){switch(N.g){case 1:return f=Yr,o.V++,m=o.V,j(N,2),L(N,wY(o.g.Z,f.Na),4);case 4:U(N,3);break;case 2:b=K(N),o.g&&o.g.onError(b);case 3:w=ko(u.mimeType,u.codecs),v6(o.g.Z,w,o.j.sequenceMode,u.external),A=o.g.Z.aa,(A.isTextVisible()||o.i.alwaysStreamText)&&o.V==m&&(R=x6(o,u),o.h.set(f.Na,R),ya(o,R,0)),B(N)}})}function p6e(o){var u=o.h.get(wn);u&&(Yf(u),E6(u).catch(function(){}),o.H=o.h.get(wn),o.h.delete(wn),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),o.B=null}function rX(o,u){for(var f=o.g.Ob()<0,m=_(o.h.values()),b=m.next();!b.done;b=m.next())b=b.value,b.ua&&b.ua.Id(f),b.ha&&b.ha.Id(f);for(m=_(o.m.values()),b=m.next();!b.done;b=m.next())b.value.Id(f);(f=o.h.get("video"))&&(m=f.stream)&&(u?(u=m.trickModeVideo)&&!f.Mc&&(Rg(o,u,!1,0,!1),f.Mc=m):(u=f.Mc)&&(f.Mc=null,Rg(o,u,!0,0,!1)))}function iX(o,u,f,m,b,w){f=f===void 0?!1:f,m=m===void 0?0:m,b=b===void 0?!1:b,w=w===void 0?!1:w,o.o=u,o.N&&(u.video&&Rg(o,u.video,f,m,b,w),u.audio&&Rg(o,u.audio,f,m,b,w))}function k6(o,u){re(function(f){if(f.g==1)return o.H=null,o.B=u,o.N?u.segmentIndex?f.A(2):L(f,u.createSegmentIndex(),2):f.return();Rg(o,u,!0,0,!1),B(f)})}function v6e(o){var u=o.h.get(wn);u&&Rg(o,u.stream,!0,0,!0)}function m6e(o,u){for(var f=_(o.M.entries()),m=f.next();!m.done;m=f.next()){var b=_(m.value);m=b.next().value,b=b.next().value,m.includes(u.type)&&(b(),o.M.delete(m))}}function Rg(o,u,f,m,b,w){var A=o.h.get(u.type);A||u.type!=wn?A&&(A.Mc&&(u.trickModeVideo?(A.Mc=u,u=u.trickModeVideo):A.Mc=null),A.stream!=u||b)&&(o.m.has(u)?A.ha=o.m.get(u):A.ha&&a6e(A.ha,u),u.type==wn&&A.stream!=u&&(b=ko(u.mimeType,u.codecs),v6(o.g.Z,b,o.j.sequenceMode,u.external)),!o.m.has(A.stream)&&A.stream.closeSegmentIndex&&(A.Ja?(b="("+A.type+":"+A.stream.id+")",o.M.has(b)||o.M.set(b,A.stream.closeSegmentIndex)):A.stream.closeSegmentIndex()),b=A.stream.isAudioMuxedInVideo!=u.isAudioMuxedInVideo,A.stream=u,A.ua=null,A.cg=!!w,u.dependencyStream?A.Ec=x6(o,u.dependencyStream):A.Ec=null,uX(o),b&&(A.pb=null,A.qc=null,A.nc=null,u.isAudioMuxedInVideo&&(u=null,A.type==="video"?u=o.h.get("audio"):A.type==="audio"&&(u=o.h.get("video")),u&&(E6(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,CL(o,u),oX(o,u).catch(function(R){o.g&&o.g.onError(R)})))),f?A.Ub?A.Kd=!0:A.Ja?(A.ec=!0,A.ld=m,A.Kd=!0):(Yf(A),AL(o,A,!0,m).catch(function(R){o.g&&o.g.onError(R)})):A.Ja||A.qb||ya(o,A,0),oX(o,A).catch(function(R){o.g&&o.g.onError(R)})):h6e(o,u)}function oX(o,u){var f,m,b;return re(function(w){if(w.g==1)return u.Va?(f=u.stream,m=u.Va,f.segmentIndex?w.A(2):L(w,f.createSegmentIndex(),2)):w.return();if(w.g!=4)return b=f.dependencyStream,!b||b.segmentIndex?w.A(4):L(w,b.createSegmentIndex(),4);if(u.Va!=m||u.stream!=f)return w.return();var A=o.g.lc(),R=ov(o.g.Z,u.type),N=u.stream.segmentIndex.find(u.La?u.La.endTime:A),V=N==null?null:u.stream.segmentIndex.get(N);N=V?ZI(V):null,V&&!N&&(N=(V.endTime-V.getStartTime())*(u.stream.bandwidth||o.o.bandwidth)/8),N?((V=V.ba)&&(N+=(V.endByte?V.endByte+1-V.startByte:null)||0),V=o.g.getBandwidthEstimate(),A=N*8/V<(R||0)-A-o.i.rebufferingGoal||u.Va.h.g>N):A=!0,A&&u.Va.abort(),B(w)})}l.bd=function(){if(this.g){for(var o=this.g.lc(),u=_(this.h.keys()),f=u.next();!f.done;f=u.next()){var m=f.value;f=this.h.get(m);var b;if((b=!this.J)&&(b=this.g.Z,m==wn?(b=b.h,b=b.g==null||b.h==null?!1:o>=b.g&&o0?new S6(o.i.segmentPrefetchLimit,u,function(m,b,w){return w6(m,b,w||null,o.i.retryParameters,o.g.tc)},o.g.Ob()<0,o.g.al):null}function y6e(o){for(var u=o.i.segmentPrefetchLimit,f=o.i.prefetchAudioLanguages,m=_(o.j.variants),b=m.next(),w={};!b.done;w={Mb:void 0},b=m.next())if(w.Mb=b.value,w.Mb.audio)if(o.m.has(w.Mb.audio)){if(b=o.m.get(w.Mb.audio),eX(b,u),!(u>0&&f.some((function(R){return function(N){return hg(R.Mb.audio.language,N)}})(w)))){var A=o.h.get(w.Mb.audio.type);b!==(A&&A.ha)&&ld(b),o.m.delete(w.Mb.audio)}}else u<=0||!f.some((function(R){return function(N){return hg(R.Mb.audio.language,N)}})(w))||!(b=wL(o,w.Mb.audio))||(w.Mb.audio.segmentIndex||w.Mb.audio.createSegmentIndex(),o.m.set(w.Mb.audio,b))}l.updateDuration=function(){var o=ug(),u=this.j.presentationTimeline.getDuration();u<1/0?(o&&(this.u&&this.u.stop(),uL(this.g.Z)),this.g.Z.Ab(u)):o?(this.u&&this.u.Ea(.5),this.g.Z.Ab(1/0)):this.g.Z.Ab(4294967296)};function b6e(o,u){var f,m,b,w,A,R,N,V,G;return re(function(Z){switch(Z.g){case 1:if(Ii(o.l),f=Yr,u.Ja||u.qb==null||u.Ub)return Z.return();if(u.qb=null,!u.ec){Z.A(2);break}return L(Z,AL(o,u,u.Kd,u.ld),3);case 3:return Z.return();case 2:if(m6e(o,u),u.stream.segmentIndex){Z.A(4);break}return m=u.stream,j(Z,5),L(Z,u.stream.createSegmentIndex(),7);case 7:U(Z,6);break;case 5:return b=K(Z),L(Z,IL(o,u,b),8);case 8:return Z.return();case 6:if(m!=u.stream)return m.closeSegmentIndex&&m.closeSegmentIndex(),u.Ja||u.qb||ya(o,u,0),Z.return();case 4:if(!u.Ec){Z.A(9);break}if(u.Ec.stream.segmentIndex){Z.A(9);break}return j(Z,11),L(Z,u.Ec.stream.createSegmentIndex(),13);case 13:U(Z,9);break;case 11:K(Z);case 9:j(Z,14),w=_6e(o,u),w!=null&&(ya(o,u,w),u.Zd=!1),U(Z,15);break;case 14:return A=K(Z),L(Z,IL(o,u,A),16);case 16:return Z.return();case 15:if(u.type===f.Na)return Z.return();if(R=[u],N=u.type===f.ka?f.Aa:f.ka,(V=o.h.get(N))&&R.push(V),!o.N||!R.every(function(le){return le.endOfStream})){Z.A(0);break}return L(Z,o.g.Z.endOfStream(),18);case 18:Ii(o.l),G=o.g.Z.getDuration(),G!=0&&G=w)return f/2;if(R=!u.ua,N=sX(o,u,m,N),!N)return f;A=u.pb;var V=N.ba;A&&V&&G3(V,A)&&(A.g=V.g),A=!1,R&&u.cg&&(A=!0,u.cg=!1),R=1/0,V=Array.from(o.h.values()),V=_(V);for(var G=V.next();!G.done;G=V.next())G=G.value,TL(G)||G.ua&&!G.ua.current()||(R=Math.min(R,G.La?G.La.endTime:m));return b>=R+o.j.presentationTimeline.h?f:(u.ha&&u.ua&&!o.m.has(u.stream)&&(u.ha.Ya(N.startTime+.001),Q3(u.ha,N.startTime).catch(function(){})),r2(o)&&w6e(o,u,N)||(S6e(o,u,m,N,A).catch(function(){}),u.Ec&&aX(o,u.Ec,m,w)),null)}function sX(o,u,f,m){if(u.ua)return(f=u.ua.current())&&u.La&&Math.abs(u.La.startTime-f.startTime)<.001&&(f=u.ua.next().value),f;if(u.La||m)return f=u.La?u.La.endTime:m,o=o.g.Ob()<0,u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,o)),u.ua&&u.ua.next().value;m=o.j.sequenceMode||r2(o)?0:o.i.inaccurateManifestTolerance;var b=Math.max(f-m,0);o=o.g.Ob()<0;var w=null;return m&&(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(b,!1,o)),w=u.ua&&u.ua.next().value),w||(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,o)),w=u.ua&&u.ua.next().value),w}function S6e(o,u,f,m,b){var w,A,R,N,V,G,Z,le,he,pe,ye,be,je,Be,Je,lt,St;return re(function(it){switch(it.g){case 1:if(w=Yr,A=u.stream,R=u.ua,u.Ja=!0,j(it,2),m.Jc()==2)throw new De(1,1,1011);return L(it,x6e(o,u,m,b),4);case 4:return Ii(o.l),o.F?it.return():(N=A.mimeType=="video/mp4"||A.mimeType=="audio/mp4",V=i.ReadableStream,o.i.lowLatencyMode&&o.j.isLowLatency&&V&&N&&(o.j.type!="HLS"||m.o)?(le=new Uint8Array(0),pe=he=!1,be=function(Xe){var pt,_t,bt;return re(function(kt){switch(kt.g){case 1:if(he||(pe=!0,Ii(o.l),o.F))return kt.return();if(j(kt,2),le=or(le,Xe),pt=!1,_t=0,new fi().box("mdat",function(xt){_t=xt.size+xt.start,pt=!0}).parse(le,!1,!0),!pt){kt.A(4);break}return bt=le.subarray(0,_t),le=le.subarray(_t),L(kt,EL(o,u,f,A,m,bt,!0,b),5);case 5:u.ha&&u.ua&&Q3(u.ha,m.startTime,!0);case 4:U(kt,0);break;case 2:ye=K(kt),B(kt)}})},L(it,n2(o,u,m,be),9)):(G=n2(o,u,m),L(it,G,7)));case 7:return Z=it.h,Ii(o.l),o.F?it.return():(Ii(o.l),u.ec?(u.Ja=!1,ya(o,u,0),it.return()):L(it,EL(o,u,f,A,m,Z,!1,b),6));case 9:if(je=it.h,ye)throw ye;if(pe){it.A(10);break}return he=!0,Ii(o.l),o.F?it.return():u.ec?(u.Ja=!1,ya(o,u,0),it.return()):L(it,EL(o,u,f,A,m,je,!1,b),10);case 10:u.ha&&u.ua&&Q3(u.ha,m.startTime,!0);case 6:if(Ii(o.l),o.F)return it.return();u.La=m,R.next(),u.Ja=!1,u.ah=!1,Be=o.g.Z.Fc(),Je=Be[u.type],JSON.stringify(Je),u.ec||(lt=null,u.type===w.Aa?lt=o.h.get(w.ka):u.type===w.ka&&(lt=o.h.get(w.Aa)),lt&<.type==w.ka?o.g.wf(m,u.stream,lt.stream.isAudioMuxedInVideo):o.g.wf(m,u.stream,u.stream.codecs.includes(","))),Yf(u),ya(o,u,0),U(it,0);break;case 2:if(St=K(it),Ii(o.l,St),o.F)return it.return();if(u.Ja=!1,St.code==7001)u.Ja=!1,Yf(u),ya(o,u,0),it.A(0);else if(u.type==w.Na&&o.i.ignoreTextStreamFailures)o.h.delete(w.Na),it.A(0);else return St.code==3017?L(it,k6e(o,u,St),0):(u.Zd=!0,St.category==1&&u.ha&&e2(u.ha,m),St.severity=2,L(it,IL(o,u,St),0))}})}function aX(o,u,f,m){var b,w,A,R,N,V,G,Z,le,he,pe;return re(function(ye){switch(ye.g){case 1:for(b=u.stream,R=(A=(w=b.segmentIndex)&&w.Vb(f))&&A.next().value;R&&o.O.includes(R.startTime);)R=A&&A.next().value;if(!R){ye.A(0);break}if(N=R.ba,!N||G3(N,u.pb)){ye.A(3);break}return u.pb=N,j(ye,4),L(ye,n2(o,u,N),6);case 6:V=ye.h;var be=o.g.Z;be.H&&ui(be.H,V,0,b),o.O=[],U(ye,3);break;case 4:throw G=K(ye),u.pb=null,G;case 3:if(u.La&&u.La==R){ye.A(0);break}return u.La=R,j(ye,8),L(ye,n2(o,u,R),10);case 10:Z=ye.h,be=o.g.Z,be.H&&ui(be.H,Z,0,b),o.O.push(R.startTime),U(ye,9);break;case 8:throw le=K(ye),u.La=null,le;case 9:if(he=Math.max.apply(Math,[0].concat(T(o.O))),pe=o.g.lc(),pe+m>he)return L(ye,aX(o,u,R.startTime,m),0);ye.A(0)}})}function k6e(o,u,f){var m,b,w,A,R,N,V;return re(function(G){switch(G.g){case 1:if(m=Array.from(o.h.values()),m.some(function(Z){return Z!=u&&Z.ah})){G.A(2);break}if(o.i.avoidEvictionOnQuotaExceededError)return b=LL(o,f),o.g.disableStream(u.stream,b)||ya(o,u,4),G.return();if(w=Math.round(100*o.C),w>20){o.C-=.2,G.A(3);break}if(w>4){o.C-=.04,G.A(3);break}if(A=LL(o,f),R=o.g.disableStream(u.stream,A),!R){u.Zd=!0,o.F=!0,o.g.onError(f),G.A(5);break}return o.C=1,N=o.g.lc(),L(G,C6(o,u,N),5);case 5:return G.return();case 3:return u.ah=!0,V=o.g.lc(),L(G,C6(o,u,V),2);case 2:ya(o,u,4),B(G)}})}function x6e(o,u,f,m){var b,w,A,R,N,V,G,Z,le,he,pe,ye,be,je,Be,Je;return re(function(lt){switch(lt.g){case 1:if(b=Yr,w=u.La==null,A=[],R=Math.max(0,Math.max(f.appendWindowStart,o.aa)-.1),N=Math.min(f.appendWindowEnd,o.$)+.1,V=f.codecs||u.stream.codecs,G=sp(V),Z=Dl(f.mimeType||u.stream.mimeType),le=f.timestampOffset,le==u.kf&&R==u.qc&&N==u.nc&&G==u.hf&&Z==u.jf){lt.A(2);break}if(he=u.hf&&u.jf&&YSe(o.g.Z,u.type,Z,V,A6(o)),!he){lt.A(3);break}if(pe=null,u.type===b.Aa?pe=o.h.get(b.ka):u.type===b.ka&&(pe=o.h.get(b.Aa)),!pe){lt.A(3);break}return L(lt,E6(pe).catch(function(){}),5);case 5:pe.pb=null,pe.qc=null,pe.nc=null,CL(o,pe);case 3:return L(lt,lX(o,u,le,R,N,f,G,Z),2);case 2:return G3(f.ba,u.pb)||(u.pb=f.ba,f.l&&f.ba&&(ye=n2(o,u,f.ba),be=function(){var St,it,Xe,pt,_t,bt,kt,xt,Bt,Nt,Tt;return re(function(Dt){switch(Dt.g){case 1:return j(Dt,2),L(Dt,ye,4);case 4:return St=Dt.h,Ii(o.l),it=null,Xe=new Map,pt={projection:null,hfov:null},u.stream&&(_t=u.stream.videoLayout)&&(bt=_t.split("/"),bt.includes("PROJ-RECT")?pt.projection="rect":bt.includes("PROJ-EQUI")?pt.projection="equi":bt.includes("PROJ-HEQU")?pt.projection="hequ":bt.includes("PROJ-PRIM")?pt.projection="prim":bt.includes("PROJ-AIV")&&(pt.projection="hequ")),kt=new fi,kt.box("moov",ar).box("trak",ar).box("mdia",ar).S("mdhd",function(Kt){it=l6(Kt.reader,Kt.version).timescale}).box("hdlr",function(Kt){switch(Kt=Kt.reader,Kt.skip(8),Kt.Yc()){case"soun":Xe.set(b.ka,it);break;case"vide":Xe.set(b.Aa,it)}it=null}),u.type!==b.Aa||pt.projection||kt.box("minf",ar).box("stbl",ar).S("stsd",Wf).box("encv",Pl).box("avc1",Pl).box("avc3",Pl).box("hev1",Pl).box("hvc1",Pl).box("dvav",Pl).box("dva1",Pl).box("dvh1",Pl).box("dvhe",Pl).box("dvc1",Pl).box("dvi1",Pl).box("vexu",ar).box("proj",ar).S("prji",function(Kt){Kt=Kt.reader.Yc(),pt.projection=Kt}).box("hfov",function(Kt){Kt=Kt.reader.U()/1e3,pt.hfov=Kt}),kt.parse(St,!0,!0),u.type===b.Aa&&C6e(o,pt),Xe.has(u.type)?f.ba.timescale=Xe.get(u.type):it!=null&&(f.ba.timescale=it),xt=u.stream.segmentIndex,xt instanceof Qi&&(Bt=t6e(xt,f.startTime)),Nt=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,L(Dt,o.g.Oh(u.type,St),5);case 5:return L(Dt,m6(o.g.Z,u.type,St,null,u.stream,Nt,u.bd,m,!1,!1,Bt),6);case 6:U(Dt,0);break;case 2:throw Tt=K(Dt),u.pb=null,Tt}})},je=f.startTime,w&&(Be=ov(o.g.Z,u.type),Be!=null&&(je=Be)),o.g.Ck(je,f.ba),A.push(be()))),Je=u.La?u.La.i:-1,f.i!=Je&&A.push(zSe(o.g.Z,u.type,f.startTime)),L(lt,Promise.all(A),0)}})}function lX(o,u,f,m,b,w,A,R){var N,V,G,Z,le;return re(function(he){switch(he.g){case 1:if(N=Yr,V=A6(o),j(he,2),u.qc=m,u.nc=b,A&&(u.hf=A),R&&(u.jf=R),u.kf=f,G=o.j.sequenceMode||o.j.type=="HLS",Z=null,u.type===N.Aa?Z=o.h.get(N.ka):u.type===N.ka&&(Z=o.h.get(N.Aa)),!(Z&&Z.stream&&Z.stream.isAudioMuxedInVideo)){he.A(4);break}return L(he,EY(o.g.Z,Z.type,f,m,b,G,Z.stream.mimeType,Z.stream.codecs,V),4);case 4:return L(he,EY(o.g.Z,u.type,f,m,b,G,w.mimeType||u.stream.mimeType,w.codecs||u.stream.codecs,V),6);case 6:U(he,0);break;case 2:throw le=K(he),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,le}})}function EL(o,u,f,m,b,w,A,R){A=A===void 0?!1:A,R=R===void 0?!1:R;var N,V,G,Z;return re(function(le){switch(le.g){case 1:return N=m.closedCaptions&&m.closedCaptions.size>0,o.i.shouldFixTimestampOffset&&(V=m.mimeType=="video/mp4"||m.mimeType=="audio/mp4",G=null,b.ba&&(G=b.ba.timescale),V&&G&&m.type==="video"&&o.j.type=="DASH"&&new fi().box("moof",ar).box("traf",ar).S("tfdt",function(he){var pe,ye,be,je,Be,Je;return re(function(lt){return pe=a6(he.reader,he.version),ye=pe.baseMediaDecodeTime,ye?(be=-ye/G,je=Number(u.kf)||0,jeN&&(Z=Math.max(R-w,V-N-A)),Z<=N?le.return():L(le,o.g.Z.remove(u.type,A,A+Z,b),2));if(le.g!=4)return Ii(o.l),o.H?L(le,C6(o,o.H,f),4):le.A(0);Ii(o.l),B(le)})}function TL(o){return o&&o.type==wn&&(o.stream.mimeType=="application/cea-608"||o.stream.mimeType=="application/cea-708")}function n2(o,u,f,m){var b,w,A,R,N;return re(function(V){switch(V.g){case 1:if(b=f.Yb())return V.return(b);if(w=null,u.ha){var G=u.ha,Z=G.g;f instanceof il&&(Z=G.j),Z.has(f)?(G=Z.get(f),m&&(G.wh=m),w=G.je):w=null}return w||(w=w6(f,u.stream,m||null,o.i.retryParameters,o.g.tc)),A=0,u.ua&&(A=u.ua.h),u.Va=w,L(V,w.promise,2);case 2:if(R=V.h,u.Va=null,N=R.data,!f.aesKey){V.A(3);break}return L(V,xL(N,f.aesKey,A),4);case 4:N=V.h;case 3:return V.return(N)}})}function w6(o,u,f,m,b,w){w=w===void 0?!1:w;var A=o instanceof Fn?o:void 0,R=A?1:0;return o=t2(o.P(),o.startByte,o.endByte,m,f),o.contentType=u.type,b.request(ju,o,{type:R,stream:u,segment:A,isPreload:w})}function AL(o,u,f,m){var b,w;return re(function(A){if(A.g==1)return u.ec=!1,u.Kd=!1,u.ld=0,u.Ub=!0,u.La=null,u.ua=null,u.ha&&!o.m.has(u.stream)&&ld(u.ha),m?(b=o.g.lc(),w=o.g.Z.getDuration(),L(A,o.g.Z.remove(u.type,b+m,w),3)):L(A,wY(o.g.Z,u.type),4);if(A.g!=3)return Ii(o.l),f?L(A,o.g.Z.flush(u.type),3):A.A(3);Ii(o.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||ya(o,u,0),B(A)})}function ya(o,u,f){var m=u.type;(m!=wn||o.h.has(m))&&(u.qb=new $3(function(){var b;return re(function(w){if(w.g==1)return j(w,2),L(w,b6e(o,u),4);if(w.g!=2)return U(w,0);b=K(w),o.g&&o.g.onError(b),B(w)})}).ia(f))}function Yf(o){o.qb!=null&&(o.qb.stop(),o.qb=null)}function E6(o){return re(function(u){return o.Va?L(u,o.Va.abort(),0):u.A(0)})}function IL(o,u,f){var m;return re(function(b){if(b.g==1)return f.code==3024?(u.Ja=!1,Yf(u),ya(o,u,0),b.return()):L(b,Iq(o.X),2);if(Ii(o.l),f.category===1&&f.code!=1003){if(u.Mc)return rX(o,!1),b.return();m=LL(o,f),f.handled=o.g.disableStream(u.stream,m),f.handled&&(f.severity=1)}(!f.handled||f.code!=1011)&&o.g.onError(f),f.handled||o.i.failureCallback(f),B(b)})}function LL(o,u){return o.i.maxDisabledTime===0&&u.code==1011?1:o.i.maxDisabledTime}function T6(o,u){u=u===void 0?!1:u;var f,m,b,w,A,R;return re(function(N){if(N.g==1){if(f=Date.now()/1e3,m=o.i.minTimeBetweenRecoveries,!u){if(!o.i.allowMediaSourceRecoveries||f-o.R1)return!0}else if(!u.Jf()){for(u=_(o.h.keys()),f=u.next();!f.done;f=u.next())if(f=o.h.get(f.value),f.type!==Yr.Na&&(f=f.stream)&&f.fullMimeTypes&&f.fullMimeTypes.size>1){for(o=new Set,u=_(f.fullMimeTypes),f=u.next();!f.done;f=u.next())o.add(L3(f.value));return o.size>1}}return!1}function uX(o){o.G.Pa(),r2(o)&&(o.G.D(o.g.video,"waiting",function(){return DL(o)}),o.G.D(o.g.video,"timeupdate",function(){return DL(o)}))}function DL(o){if(r2(o)){o.K.stop();var u=o.g.lc(),f=o.h.get("video")||o.h.get("audio");f&&(f=f.pb)&&f.g!==null&&(u=f.g-u,u<0||u>1||(o.I=f.g+.1,o.K.ia(u)))}}function w6e(o,u,f){if(u.type===wn)return!1;var m=u.pb;if(!m)return!1;var b=f.ba;if(f=m.g!==b.g,o.i.crossBoundaryStrategy==="reset_to_encrypted"&&(m.encrypted||b.encrypted||(f=!1),m.encrypted&&(o.i.crossBoundaryStrategy="keep")),o.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&m.encrypted==b.encrypted&&(f=!1),o.i.crossBoundaryStrategy==="keep"&&m.mimeType&&b.mimeType){var w=Qs(rl(m.mimeType)),A=Qs(rl(m.mimeType));m.mimeType==b.mimeType&&w==A&&(f=!1)}return f&&(o.J||u.bd)&&(o.J=!1,T6(o,!0).then(function(){var R=new Map().set("oldEncrypted",m.encrypted).set("newEncrypted",b.encrypted);o.g.onEvent(new kn("boundarycrossed",R))})),f}function A6(o,u){function f(w){if(w.fullMimeTypes&&w.fullMimeTypes.size>1&&o.h.has(w.type)){var A=o.h.get(w.type),R=ov(o.g.Z,A.type),N=o.g.lc();(A=sX(o,A,N,R))&&A.codecs&&A.mimeType&&(w.codecs=A.codecs,w.mimeType=A.mimeType)}}u=u===void 0?!1:u;var m=new Map,b=o.o.audio;return b&&(f(b),m.set("audio",b)),(b=o.o.video)&&(f(b),m.set("video",b)),u&&o.B&&m.set(wn,o.B),m}function I6(){}function PL(o,u,f,m,b){var w=b in m,A=w?f.constructor==Object&&Object.keys(m).length==0:f.constructor==Object&&Object.keys(f).length==0,R=w||A,N=!0,V;for(V in u){var G=b+"."+V,Z=w?m[b]:f[V];R||V in f?u[V]===void 0?Z===void 0||R?delete o[V]:o[V]=fn(Z):A?o[V]=u[V]:Z.constructor==Object&&u[V]&&u[V].constructor==Object?(o[V]||(o[V]=fn(Z)),G=PL(o[V],u[V],Z,m,G),N=N&&G):typeof u[V]!=typeof Z||u[V]==null||typeof u[V]!="function"&&u[V].constructor!=Z.constructor?(Ke("Invalid config, wrong type for "+G),N=!1):typeof f[V]=="function"&&f[V].length!=u[V].length?(at("Unexpected number of arguments for "+G),o[V]=u[V]):o[V]=Array.isArray(o[V])?u[V].slice():u[V]:(Ke("Invalid config, unrecognized key "+G),N=!1)}return N}function L6(o,u){for(var f={},m=f,b=0,w=0;b=o.indexOf(".",b),!(b<0);)(b==0||o[b-1]!="\\")&&(w=o.substring(w,b).replace(/\\\./g,"."),m[w]={},m=m[w],w=b+1),b+=1;return m[o.substring(w).replace(/\\\./g,".")]=u,f}function Mg(o,u){return o&&u}function cX(o,u){function f(w){for(var A=_(Object.keys(w)),R=A.next();!R.done;R=A.next())if(R=R.value,!(w[R]instanceof HTMLElement))if(b(w[R])&&Object.keys(w[R]).length===0)delete w[R];else{var N=w[R];Array.isArray(N)&&N.length===0||typeof w[R]=="function"?delete w[R]:b(w[R])&&(f(w[R]),Object.keys(w[R]).length===0&&delete w[R])}}function m(w,A){return Object.keys(w).reduce(function(R,N){var V=w[N];return A.hasOwnProperty(N)?V instanceof HTMLElement&&A[N]instanceof HTMLElement?V.isEqualNode(A[N])||(R[N]=V):b(V)&&b(A[N])?(V=m(V,A[N]),(Object.keys(V).length>0||!b(V))&&(R[N]=V)):Array.isArray(V)&&Array.isArray(A[N])?rn(V,A[N])||(R[N]=V):Number.isNaN(V)&&Number.isNaN(A[N])||V!==A[N]&&(R[N]=V):R[N]=V,R},{})}function b(w){return w&&typeof w=="object"&&!Array.isArray(w)}return o=m(o,u),f(o),o}_e("shaka.util.ConfigUtils",I6),I6.getDifferenceFromConfigObjects=cX,I6.convertToConfigObject=L6,I6.mergeConfigObjects=PL,_e("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function ol(){}function dX(o){return o=Qt(o),new Yt(o).Db}function i2(o,u,f){function m(R){ot(w).setUint32(A,R.byteLength,!0),A+=4,w.set(Ae(R),A),A+=R.byteLength}if(!f||!f.byteLength)throw new De(2,6,6015);var b;typeof u=="string"?b=pn(u,!0):b=u,o=Qt(o),o=pn(o,!0);var w=new Uint8Array(12+o.byteLength+b.byteLength+f.byteLength),A=0;return m(o),m(b),m(f),w}function RL(o,u,f){return u!=="skd"?o:(u=f.serverCertificate,f=Qt(o).split("skd://").pop(),i2(o,f,u))}function D6(o,u){o===2&&(o=u.drmInfo)&&XS(o.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}_e("shaka.drm.FairPlay",ol),ol.commonFairPlayResponse=function(o,u){if(o===2&&(o=u.originalRequest.drmInfo)&&XS(o.keySystem)){try{var f=ut(u.data)}catch{return}if(o=!1,f=f.trim(),f.substr(0,5)===""&&f.substr(-6)===""&&(f=f.slice(5,-6),o=!0),!o)try{var m=JSON.parse(f);m.ckc&&(f=m.ckc,o=!0),m.CkcMessage&&(f=m.CkcMessage,o=!0),m.License&&(f=m.License,o=!0)}catch{}o&&(u.data=ke(fr(f)))}},ol.muxFairPlayRequest=function(o,u){D6(o,u)},ol.expressplayFairPlayRequest=function(o,u){if(o===2){var f=u.drmInfo;f&&XS(f.keySystem)&&D6(o,u)}},ol.conaxFairPlayRequest=function(o,u){D6(o,u)},ol.ezdrmFairPlayRequest=function(o,u){D6(o,u)},ol.verimatrixFairPlayRequest=function(o,u){o===2&&(o=u.drmInfo)&&XS(o.keySystem)&&(o=Ae(u.body),o=Yn(o),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=Gt("spc="+o))},ol.muxInitDataTransform=function(o,u,f){return RL(o,u,f)},ol.expressplayInitDataTransform=function(o,u,f){return RL(o,u,f)},ol.conaxInitDataTransform=function(o,u,f){if(u!=="skd")return o;u=f.serverCertificate,f=Qt(o).split("skd://").pop().split("?").shift(),f=i.atob(f);var m=new ArrayBuffer(f.length*2);m=nt(m);for(var b=0,w=f.length;b2||b.channelsCount>2)&&m.channelsCount!=b.channelsCount||m.spatialAudio!==b.spatialAudio||u&&!fX(m,b))&&hX(m.roles,b.roles)&&m.groupId===b.groupId)}return!m&&(m=f.video&&o.video)&&(f=f.video,m=o.video,m=!((!u||fX(f,m))&&hX(f.roles,m.roles))),m?!1:(this.g.add(o),!0)},P6.prototype.values=function(){return this.g.values()};function fX(o,u){if(o.mimeType!=u.mimeType||(o=o.codecs.split(",").map(function(m){return sp(m)}),u=u.codecs.split(",").map(function(m){return sp(m)}),o.length!=u.length))return!1;o.sort(),u.sort();for(var f=0;fu)}).sort(function(f,m){return f.audio||m.audio?f.audio?m.audio?(m.audio.channelsCount||0)-(f.audio.channelsCount||0):1:-1:0})}function P6e(o,u){if(u=="AUTO"){var f=o.some(function(m){return!!(m.video&&m.video.hdr&&m.video.hdr=="HLG")});u=Le().sd(f)}return o.filter(function(m){return!(m.video&&m.video.hdr&&m.video.hdr!=u)})}function R6e(o,u){return o.filter(function(f){return!(f.video&&f.video.videoLayout&&f.video.videoLayout!=u)})}function M6e(o,u){return o.filter(function(f){return!(f.audio&&f.audio.spatialAudio!=u)})}function $6e(o,u){return o.filter(function(f){return!(f.audio&&f.audio.codecs!=u)})}function R6(){}function $g(){var o=1/0,u=Le();navigator.connection&&navigator.connection.saveData&&(o=360);var f={retryParameters:_c(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(R,N,V){return i.shakaMediaKeysPolyfill==="apple"&&N=="skd"&&(N=V.serverCertificate,V=dX(R),R=i2(R,V,N)),R},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},m="reload";hc()&&u.Pc()&&(m="smooth");var b={retryParameters:_c(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,updatePeriod:-1,ignoreDrmInfo:!1,enableAudioGroups:!0,dash:{clockSyncUri:"",disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:M6,manifestPreprocessorTXml:$6,sequenceMode:!1,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:u.fd(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:M6,manifestPreprocessorTXml:$6,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},w={trackSelectionCallback:function(R){return re(function(N){return N.return(R)})},downloadSizeCallback:function(R){var N;return re(function(V){return V.g==1?navigator.storage&&navigator.storage.estimate?L(V,navigator.storage.estimate(),3):V.return(!0):(N=V.h,V.return(N.usage+R0?L(A,Promise.all(f),0):A.A(0)})}function Y6e(o){var u,f,m,b,w;return re(function(A){return!o.o&&(u=bX(o))&&(o.o=u),o.o?(f=o.h.presentationTimeline.W(),m=[],b=o.o,b.video&&m.push(BL(o,b.video,f)),b.audio&&m.push(BL(o,b.audio,f)),(w=pg(o.h.textStreams,o.g.preferredTextLanguage,o.g.preferredTextRole,o.g.preferForcedSubs)[0]||null)&&xq(b.audio,w,o.g)&&(m.push(BL(o,w,f)),o.T=w),L(A,Promise.all(m),0)):A.A(0)})}function bX(o){if(!o.u){var u=o.g.abrFactory;o.u=u(),o.u.configure(o.g.abr)}return u=KS(o.h.variants),u=o.C.create(u),o.u.setVariants(Array.from(u.values())),o.u.chooseVariant(!0)}function BL(o,u,f){var m,b,w,A,R;return re(function(N){return N.g==1?(m=o.g.streaming.segmentPrefetchLimit||2,b=new S6(m,u,function(V,G,Z){return w6(V,G,Z||null,o.g.streaming.retryParameters,o.Da,o.F)},!1),o.M.set(u.id,b),u.segmentIndex?N.A(2):L(N,u.createSegmentIndex(),2)):(w=typeof o.m=="number"?o.m:0,A=u.segmentIndex.Vb(w),R=null,A&&(R=A.current(),R||(R=A.next().value)),R||(R=ad(u.segmentIndex)),R?f?R.ba?L(N,JY(b,R.ba),0):N.A(0):L(N,Q3(b,R.startTime),0):N.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var o=this,u,f,m;return re(function(b){if(b.g==1)return o.j=!0,!o.l||o.qa?b.A(2):L(b,o.l.stop(),2);if(b.g!=4)return o.u&&o.u.release(),o.I&&!o.wa&&o.I.release(),!o.i||o.aa?b.A(4):L(b,o.i.destroy(),4);if(o.M.size>0&&!o.xa)for(u=_(o.M.values()),f=u.next();!f.done;f=u.next())m=f.value,ld(m);B(b)})};function _X(o){function u(f){return f.video&&f.audio||f.video&&f.video.codecs.includes(",")}o.variants.some(u)&&(o.variants=o.variants.filter(u))}_e("shaka.media.PreloadManager",zu),zu.prototype.destroy=zu.prototype.destroy,zu.prototype.waitForFinish=zu.prototype.ll,zu.prototype.getPrefetchedTextTrack=zu.prototype.Qj,zu.prototype.getPrefetchedVariantTrack=zu.prototype.Rj;function av(o,u){Zr.call(this);var f=this;this.i=o,this.l=u,this.g=new Map,this.m=[{kd:null,jd:Og,Uc:function(m,b){return Zf(f,"enter",m,b)}},{kd:a2,jd:Og,Uc:function(m,b){return Zf(f,"enter",m,b)}},{kd:l2,jd:Og,Uc:function(m,b){return Zf(f,"enter",m,b)}},{kd:Og,jd:a2,Uc:function(m,b){return Zf(f,"exit",m,b)}},{kd:Og,jd:l2,Uc:function(m,b){return Zf(f,"exit",m,b)}},{kd:a2,jd:l2,Uc:function(m,b){b?Zf(f,"skip",m,b):(Zf(f,"enter",m,b),Zf(f,"exit",m,b))}},{kd:l2,jd:a2,Uc:function(m,b){return Zf(f,"skip",m,b)}}],this.h=new Me,this.h.D(this.i,"regionremove",function(m){f.g.delete(m.region)})}x(av,Zr),av.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Zr.prototype.release.call(this)},av.prototype.j=function(o,u){if(!this.l||o!=0){this.l=!1;for(var f=_(this.i.h.values()),m=f.next();!m.done;m=f.next()){m=m.value;var b=this.g.get(m),w=om.endTime?l2:Og;this.g.set(m,w);for(var A=_(this.m),R=A.next();!R.done;R=A.next())R=R.value,R.kd==b&&R.jd==w&&R.Uc(m,u)}}};function Zf(o,u,f,m){u=new kn(u,new Map([["region",f],["seeking",m]])),o.dispatchEvent(u)}var a2=1,Og=2,l2=3;function lv(o,u,f){var m,b,w,A,R,N,V;return re(function(G){switch(G.g){case 1:return m=Bg(o),(b=X6e.get(m))?G.return(b):(w=0,A=Vo([o],f),j(G,2),A.method="HEAD",L(G,u.request(w,A).promise,4));case 4:R=G.h,b=R.headers["content-type"],U(G,3);break;case 2:if(N=K(G),!N||N.code!=1002&&N.code!=1001){G.A(3);break}return A.method="GET",L(G,u.request(w,A).promise,6);case 6:V=G.h,b=V.headers["content-type"];case 3:return G.return(b?b.toLowerCase().split(";").shift():"")}})}function Bg(o){return o=new Yt(o).Sb.split("/").pop().split("."),o.length==1?"":o.pop().toLowerCase()}var X6e=new Map().set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv","text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");/* +*/function rL(){}function yY(o,u){return u+10<=o.length&&o[u]===73&&o[u+1]===68&&o[u+2]===51&&o[u+3]<255&&o[u+4]<255&&o[u+6]<128&&o[u+7]<128&&o[u+8]<128&&o[u+9]<128}function bY(o,u){return u+10<=o.length&&o[u]===51&&o[u+1]===68&&o[u+2]===73&&o[u+3]<255&&o[u+4]<255&&o[u+6]<128&&o[u+7]<128&&o[u+8]<128&&o[u+9]<128}function iL(o,u){var f=(o[u]&127)<<21;return f|=(o[u+1]&127)<<14,f|=(o[u+2]&127)<<7,f|=o[u+3]&127}function LSe(o){var u={key:o.type,description:"",data:"",mimeType:null,pictureType:null};if(o.type==="APIC"){if(o.size<2||o.data[0]!==3)return null;var f=o.data.subarray(1).indexOf(0);if(f===-1)return null;var m=ut(Te(o.data,1,f)),b=o.data[2+f],C=o.data.subarray(3+f).indexOf(0);if(C===-1)return null;var A=ut(Te(o.data,3+f,C)),R;return m==="-->"?R=ut(Te(o.data,4+f+C)):R=we(o.data.subarray(4+f+C)),u.mimeType=m,u.pictureType=b,u.description=A,u.data=R,u}return o.type==="TXXX"?o.size<2||o.data[0]!==3||(m=o.data.subarray(1).indexOf(0),m===-1)?null:(f=ut(Te(o.data,1,m)),o=ut(Te(o.data,2+m)).replace(/\0*$/,""),u.description=f,u.data=o,u):o.type==="WXXX"?o.size<2||o.data[0]!==3||(m=o.data.subarray(1).indexOf(0),m===-1)?null:(f=ut(Te(o.data,1,m)),o=ut(Te(o.data,2+m)).replace(/\0*$/,""),u.description=f,u.data=o,u):o.type==="PRIV"?o.size<2||(f=o.data.indexOf(0),f===-1)?null:(f=ut(Te(o.data,0,f)),u.description=f,f=="com.apple.streaming.transportStreamTimestamp"?(f=o.data.subarray(f.length+1),o=f[3]&1,f=(f[4]<<23)+(f[5]<<15)+(f[6]<<7)+f[7],f/=45,o&&(f+=4772185884e-2),u.data=f):(o=we(o.data.subarray(f.length+1)),u.data=o),u):o.type[0]==="T"?o.size<2||o.data[0]!==3?null:(o=ut(o.data.subarray(1)).replace(/\0*$/,""),u.data=o,u):o.type[0]==="W"?(o=ut(o.data).replace(/\0*$/,""),u.data=o,u):o.data?(u.data=we(o.data),u):null}function ov(o){for(var u=0,f=[];yY(o,u);){var m=iL(o,u+6);for(o[u+5]>>6&1&&(u+=10),u+=10,m=u+m;u+10>6&1&&(m+=10),m+=10,m+=iL(o,u+6),bY(o,u+10)&&(m+=10),u+=m;return m>0?o.subarray(f,f+m):new Uint8Array([])}_e("shaka.util.Id3Utils",rL),rL.getID3Data=Tg,rL.getID3Frames=ov;function _Y(o){return new Date(Date.UTC(1900,0,1,0,0,0,0)+o).getTime()}function qf(o,u){if(this.j=o,u!==void 0&&u){u=new Uint8Array(o.byteLength);for(var f=0,m=0;m=2&&o[m]==3&&o[m-1]==0&&o[m-2]==0||(u[f]=o[m],f++);this.j=Te(u,0,f)}this.i=this.j.byteLength,this.g=this.h=0}function oL(o){var u=o.j.byteLength-o.i,f=new Uint8Array(4),m=Math.min(4,o.i);m!==0&&(f.set(o.j.subarray(u,u+m)),o.h=new $i(f,0).U(),o.g=m*8,o.i-=m)}function Ml(o,u){if(o.g<=u){u-=o.g;var f=Math.floor(u/8);u-=f*8,o.g-=f,oL(o)}o.h<<=u,o.g-=u}function wr(o,u){var f=Math.min(o.g,u),m=o.h>>>32-f;return o.g-=f,o.g>0?o.h<<=f:o.i>0&&oL(o),f=u-f,f>0?m<>>u)!==0)return o.h<<=u,o.g-=u,u;return oL(o),u+sL(o)}function Us(o){Ml(o,1+sL(o))}function gn(o){var u=sL(o);return wr(o,u+1)-1}function Ag(o){return o=gn(o),1&o?1+o>>>1:-1*(o>>>1)}function Rn(o){return wr(o,1)===1}function ei(o){return wr(o,8)}function p6(o,u){for(var f=8,m=8,b=0;b>4>1){var R=b+5+o[b+4];if(R==b+188)continue}else R=b+4;switch(A){case 0:C&&(R+=o[R]+1),this.I=(o[R+10]&31)<<8|o[R+11];break;case 17:case 8191:break;case this.I:C&&(R+=o[R]+1),C=o,A={audio:-1,video:-1,bf:-1,audioCodec:"",videoCodec:""};var N=R+3+((C[R+1]&15)<<8|C[R+2])-4;for(R+=12+((C[R+10]&15)<<8|C[R+11]);R0)for(var Z=R+5,le=G;le>2;){var he=C[Z+1]+2;switch(C[Z]){case 5:var pe=mn(C.subarray(Z+2,Z+he));A.audio==-1&&pe==="Opus"?(A.audio=V,A.audioCodec="opus"):A.video==-1&&pe==="AV01"&&(A.video=V,A.videoCodec="av1");break;case 106:A.audio==-1&&(A.audio=V,A.audioCodec="ac3");break;case 122:A.audio==-1&&(A.audio=V,A.audioCodec="ec3");break;case 124:A.audio==-1&&(A.audio=V,A.audioCodec="aac");break;case 127:A.audioCodec=="opus"&&(pe=null,C[Z+2]===128&&(pe=C[Z+3]),pe!=null&&(this.H={channelCount:(pe&15)===0?2:pe&15,nj:pe,sampleRate:48e3}))}Z+=he,le-=he}break;case 15:A.audio==-1&&(A.audio=V,A.audioCodec="aac");break;case 17:A.audio==-1&&(A.audio=V,A.audioCodec="aac-loas");break;case 21:A.bf==-1&&(A.bf=V);break;case 27:A.video==-1&&(A.video=V,A.videoCodec="avc");break;case 3:case 4:A.audio==-1&&(A.audio=V,A.audioCodec="mp3");break;case 36:A.video==-1&&(A.video=V,A.videoCodec="hvc");break;case 129:A.audio==-1&&(A.audio=V,A.audioCodec="ac3");break;case 132:case 135:A.audio==-1&&(A.audio=V,A.audioCodec="ec3")}R+=G+5}C=A,C.video!=-1&&(this.K=C.video,this.m=C.videoCodec),C.audio!=-1&&(this.F=C.audio,this.C=C.audioCodec),C.bf!=-1&&(this.G=C.bf),m&&!this.J&&(m=!1,b=u-188),this.J=!0;break;case this.K:R=o.subarray(R,b+188),C?this.j.push([R]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(R);break;case this.F:R=o.subarray(R,b+188),C?this.i.push([R]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(R);break;case this.G:R=o.subarray(R,b+188),C?this.l.push([R]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(R);break;default:m=!0}}return this};function aL(o,u){if((u[0]<<16|u[1]<<8|u[2])!==1)return null;var f={data:new Uint8Array(0),packetLength:u[4]<<8|u[5],pts:null,dts:null,nalus:[]};if(f.packetLength&&f.packetLength>u.byteLength-6)return null;var m=u[7];if(m&192){var b=(u[9]&14)*536870912+(u[10]&255)*4194304+(u[11]&254)*16384+(u[12]&255)*128+(u[13]&254)/2;o.u==null&&(o.u=b),f.pts=kY(b,o.u),o.u=f.pts,f.dts=f.pts,m&64&&(m=(u[14]&14)*536870912+(u[15]&255)*4194304+(u[16]&254)*16384+(u[17]&255)*128+(u[18]&254)/2,o.o==null&&(o.o=m),f.dts=f.pts!=b?kY(m,o.o):m),o.o=f.dts}return o=u[8]+9,u.byteLength<=o?null:(f.data=u.subarray(o),f)}l.Ek=function(o){return Xt("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Wg(o,{ge:null,state:null})},l.Wg=function(o,u){var f=o.pts?o.pts/9e4:null;o=o.data;var m=o.byteLength,b=1;this.m=="hvc"&&(b=2);var C=u.state||0,A=C,R=0,N=[],V=-1,G=0;for(C==-1&&(V=0,G=this.m=="hvc"?o[0]>>1&63:o[0]&31,C=0,R=1);R=0?N.push({data:o.subarray(V+b,Z),fullData:o.subarray(V,Z),type:G,time:f,state:null}):(C=N.length?N[N.length-1]:u.ge)&&(A&&R<=4-A&&C.state&&(C.data=C.data.subarray(0,C.data.byteLength-A),C.fullData=C.fullData.subarray(0,C.fullData.byteLength-A)),Z>0&&(Z=o.subarray(0,Z),C.data=or(C.data,Z),C.fullData=or(C.fullData,Z),C.state=0)),R>1&63:o[R]&31,V=R,C=0):C=-1):C=0:C=3:C=Z?0:1}return V>=0&&C>=0&&N.push({data:o.subarray(V+b,m),fullData:o.subarray(V,m),type:G,time:f,state:C}),!N.length&&u.ge&&(f=N.length?N[N.length-1]:u.ge)&&(f.data=or(f.data,o),f.fullData=or(f.fullData,o)),u.state=C,N},l.getMetadata=function(){for(var o=[],u=_(this.l),f=u.next();!f.done;f=u.next())f=or.apply(tr,T(f.value)),(f=aL(this,f))&&o.push({cueTime:f.pts?f.pts/9e4:null,data:f.data,frames:ov(f.data),dts:f.dts,pts:f.pts});return o},l.ub=function(){if(this.i.length&&!this.h.length)for(var o=_(this.i),u=o.next();!u.done;u=o.next()){var f=or.apply(tr,T(u.value)),m=aL(this,f);u=this.h.length?this.h[this.h.length-1]:null,m&&m.pts!=null&&m.dts!=null&&(!u||u.pts!=m.pts&&u.dts!=m.dts)?this.h.push(m):this.h.length&&(f=m?m.data:f)&&(u=this.h.pop(),u.data=or(u.data,f),this.h.push(u))}return this.h},l.ud=function(o){if(o=o===void 0?!0:o,this.j.length&&!this.g.length){for(var u=_(this.j),f=u.next();!f.done;f=u.next()){var m=or.apply(tr,T(f.value)),b=aL(this,m);f=this.g.length?this.g[this.g.length-1]:null,b&&b.pts!=null&&b.dts!=null&&(!f||f.pts!=b.pts&&f.dts!=b.dts)?this.g.push(b):this.g.length&&(m=b?b.data:m)&&(f=this.g.pop(),f.data=or(f.data,m),this.g.push(f))}if(o){for(u={ge:null,state:null},f=[],m=_(this.g),b=m.next();!b.done;b=m.next())b=b.value,b.nalus=this.Wg(b,u),b.nalus.length&&(f.push(b),u.ge=b.nalus[b.nalus.length-1]);this.g=f}}return o?this.g:(o=this.g,this.g=[],o)},l.getStartTime=function(o){if(o=="audio"){o=null;var u=this.ub();return u.length&&(o=u[0],o=Math.min(o.dts,o.pts)/9e4),o}return o=="video"?(o=null,u=this.ud(!1),u.length&&(o=u[0],o=Math.min(o.dts,o.pts)/9e4),o):null},l.Vd=function(){return{audio:this.C,video:this.m}},l.$e=function(){for(var o=[],u=_(this.ud()),f=u.next();!f.done;f=u.next())o.push.apply(o,T(f.value.nalus));return o},l.dk=function(){Xt("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var o=this.Jg();return{height:o.height,width:o.width}},l.Jg=function(){return this.m=="hvc"?RSe(this):PSe(this)};function SY(o){var u=o.ud();return u.length>1&&(o=u[0].pts,u=u[1].pts,!isNaN(u-o))?String(Math.abs(1/(u-o)*9e4)):null}function PSe(o){var u={height:null,width:null,codec:null,frameRate:null},f=o.$e();if(!f.length||(f=f.find(function(he){return he.type==7}),!f))return u;f=new qf(f.data);var m=ei(f),b=ei(f),C=ei(f);if(Us(f),MSe.includes(m)){var A=gn(f);if(A===3&&Ml(f,1),Us(f),Us(f),Ml(f,1),Rn(f)){A=A!==3?8:12;for(var R=0;R0)for(ze=b;ze<8;ze++)wr(m,2);for(ze=0;ze>Xe&1)<<31-Xe;return it>>>0})(N),A=A==1?"H":"L",C="hvc1"+("."+["","A","B","C"][C]+R),C+="."+m.toString(16).toUpperCase(),C+="."+A+pe,he&&(C+="."+he.toString(16).toUpperCase()),le&&(C+="."+le.toString(16).toUpperCase()),Z&&(C+="."+Z.toString(16).toUpperCase()),G&&(C+="."+G.toString(16).toUpperCase()),V&&(C+="."+V.toString(16).toUpperCase()),f&&(C+="."+f.toString(16).toUpperCase()),u.codec=C,u.frameRate=SY(o),u}function kY(o,u){var f=1;for(o>u&&(f=-1);Math.abs(u-o)>4294967296;)o+=f*8589934592;return o}function Ig(o){return!(lL(o)<0)}function lL(o){for(var u=Math.min(1e3,o.length-564),f=0;f0||o.B.dispatchAllEmsgBoxes;G&&V.S("emsg",function(pe){var ye=b.emsgSchemeIdUris;if(pe.version===0)var be=pe.reader.Yc(),ze=pe.reader.Yc(),Ne=pe.reader.U(),Je=pe.reader.U(),lt=pe.reader.U(),St=pe.reader.U(),it=m.startTime+Je/Ne;else Ne=pe.reader.U(),it=pe.reader.Dd()/Ne+m.timestampOffset,Je=it-m.startTime,lt=pe.reader.U(),St=pe.reader.U(),be=pe.reader.Yc(),ze=pe.reader.Yc();pe=pe.reader.Tb(pe.reader.getLength()-pe.reader.Oa(),!0),(ye&&ye.includes(be)||o.B.dispatchAllEmsgBoxes)&&(be=="urn:mpeg:dash:event:2012"?o.O.Dk():(ye=it+lt/Ne,o.O.Bk({startTime:it,endTime:ye,schemeIdUri:be,value:ze,timescale:Ne,presentationTimeDelta:Je,eventDuration:lt,id:St,messageData:pe}),(be=="https://aomedia.org/emsg/ID3"||be=="https://developer.apple.com/streaming/emsg-id3")&&(Ne=ov(pe),Ne.length&&o.O.onMetadata([{cueTime:it,data:pe,frames:Ne,dts:it,pts:it}],0,ye))))});var Z=m.ba.timescale;u=Z&&!isNaN(Z);var le=0,he=!1;u&&V.S("prft",function(pe){var ye=pe.reader,be=pe.version;ye.U(),pe=ye.U();var ze=ye.U();pe=pe*1e3+ze/4294967296*1e3,be===0?ye=ye.U():(be=ye.U(),ye=ye.U(),ye=be*4294967296+ye),pe=_Y(pe),ye=new Map().set("detail",{wallClockTime:pe,programStartDate:new Date(pe-ye/Z*1e3)}),ye=new kn("prft",ye),o.O.onEvent(ye)}).box("moof",lr).box("traf",lr).S("tfdt",function(pe){he||(le=l6(pe.reader,pe.version).baseMediaDecodeTime/Z,he=!0,G||pe.parser.stop())}),(G||u)&&V.parse(f,!1,A),he&&m.timestampOffset==0&&(R=le)}else C.includes("/mp4")||C.includes("/webm")||!Ig(V)||(o.$.has(u)||o.$.set(u,new Li),N=o.$.get(u),N.clearData(),N.Gf(m.i),N.parse(V),V=N.getStartTime(u),V!=null&&(R=V),N=N.getMetadata());return{timestamp:R,metadata:N}}function g6(o,u,f,m,b,C,A,R,N,V,G){A=A===void 0?!1:A,R=R===void 0?!1:R,N=N===void 0?!1:N,V=V===void 0?!1:V;var Z,le,he,pe,ye,be,ze,Ne,Je,lt,St,it,Xe,pt,_t,bt,kt,wt,Bt,Nt;return te(function(Tt){switch(Tt.g){case 1:if(Z=Zr,u!=Z.Na){Tt.A(2);break}if(o.X!="HLS"){Tt.A(3);break}return L(Tt,o.Ta,4);case 4:le=Tt.h,o.h.u=le;case 3:return L(Tt,g_e(o.h,f,m?m.startTime:null,m?m.endTime:null,m?m.P()[0]:null),5);case 5:return Tt.return();case 2:if(V||!o.m){Tt.A(6);break}return L(Tt,g6(o,Z.ka,f,m,b,C,A,R,N,!0),7);case 7:return L(Tt,g6(o,Z.Aa,f,m,b,C,A,R,N,!0),8);case 8:return Tt.return();case 6:if(!o.l.has(u))return Tt.return();if(he=o.l.get(u).timestampOffset,pe=o.F.get(u),o.j.has(u)&&(pe=o.j.get(u).getOriginalMimeType()),m&&(ye=FSe(o,u,f,m,b,pe,N),be=ye.timestamp,ze=ye.metadata,be!=null&&(o.V==null&&u==Z.Aa&&(o.V=be,o.wa=m.startTime,o.T!=null&&(Ne=0,o.wa==o.qa&&(Ne=o.V-o.T),o.ma.resolve(Ne))),o.T==null&&u==Z.ka&&(o.T=be,o.qa=m.startTime,o.V!=null&&(Je=0,o.wa==o.qa&&(Je=o.V-o.T),o.ma.resolve(Je))),lt=be,St=Vf,!o.I&&St.includes(o.F.get(u))&&(lt=0),it=m.startTime-lt,Xe=Math.abs(he-it),(Xe>=.001||A||R)&&(!N||it>0||!he)&&(he=it,o.ib&&(is(o,u,function(){return Dg(o,u)},null),is(o,u,function(){return Pg(o,u,he)},null))),(u==Z.Aa||!o.l.has(Z.Aa))&&o.Ta.resolve(he)),ze.length)&&o.O.onMetadata(ze,he,m?m.endTime:null),C&&u==Z.Aa&&(o.h||m6(o,"application/cea-608",o.I,!1),o.J||(pt=pe.split(";",1)[0],o.J=new Ns(pt)),m?(_t=o.J.xf(f),_t.length&&b_e(o.h,_t,he)):o.J.init(f,R,G)),!o.j.has(u)){Tt.A(9);break}return L(Tt,o.j.get(u).transmux(f,b,m,o.i.duration,u),10);case 10:bt=Tt.h,ArrayBuffer.isView(bt)?f=bt:(kt=bt,kt.init!=null&&(wt=kt.init,is(o,u,function(){o.H&&ci(o.H,wt,he,b),o.l.get(u).appendBuffer(wt)},m?m.P()[0]:null)),f=kt.data);case 9:if(f=WSe(o,b,f,m,u),!m||!o.I||u==Z.Na){Tt.A(11);break}if(!A&&!R){Tt.A(11);break}if(Bt=m.startTime,o.X!="HLS"||o.m||u!=Z.ka||!o.l.has(Z.Aa)){Tt.A(13);break}return L(Tt,o.ma,14);case 14:Nt=Tt.h,Math.abs(Nt)>.15&&(Bt-=Nt);case 13:is(o,u,function(){return Dg(o,u)},null),is(o,u,function(){return Pg(o,u,Bt)},null);case 11:return L(Tt,is(o,u,function(){var Dt=f;o.H&&ci(o.H,Dt,he,b),o.l.get(u).appendBuffer(Dt)},m?m.P()[0]:null),15);case 15:B(Tt)}})}function jSe(o,u){var f=lv(o,"video")||0;uq(o.h,u,f)}function VSe(o){o.h&&uq(o.h,"",0)}l.remove=function(o,u,f,m){var b=this,C,A;return te(function(R){return R.g==1?(C=Zr,o==C.Aa&&b.J&&(b.J.remove(m),A=b.h.g||0,b.h.remove(A,f,!0)),o==C.Na?L(R,b.h.remove(u,f),0):f>u?L(R,is(b,o,function(){return y6(b,o,u,f)},null),5):R.A(0)):b.m?L(R,is(b,C.ka,function(){return y6(b,C.ka,u,f)},null),0):R.A(0)})};function CY(o,u){var f;return te(function(m){return m.g==1?(f=Zr,u==f.Na?o.h?L(m,o.h.remove(0,1/0),0):m.return():u===f.Aa&&o.J&&o.h?L(m,o.h.remove(0,1/0,!0),4):m.A(4)):m.g!=6?L(m,is(o,u,function(){return y6(o,u,0,o.i.duration)},null),6):o.m?L(m,is(o,f.ka,function(){return y6(o,f.ka,0,o.i.duration)},null),0):m.A(0)})}l.flush=function(o){var u=this,f;return te(function(m){return m.g==1?(f=Zr,o==f.Na?m.return():L(m,is(u,o,function(){u.g.currentTime-=.001,hp(u,o)},null),2)):u.m?L(m,is(u,f.ka,function(){var b=f.ka;u.g.currentTime-=.001,hp(u,b)},null),0):m.A(0)})};function EY(o,u,f,m,b,C,A,R,N){var V,G,Z;return te(function(le){return le.g==1?(V=Zr,u==V.Na?(C||(o.h.u=f),y_e(o.h,m,b),le.return()):(G=[],L(le,qSe(o,u,A,R,N),2))):(Z=le.h,Z||(G.push(is(o,u,function(){return Dg(o,u)},null)),o.m&&G.push(is(o,V.ka,function(){return Dg(o,V.ka)},null))),C||(G.push(is(o,u,function(){return Pg(o,u,f)},null)),o.m&&G.push(is(o,V.ka,function(){return Pg(o,V.ka,f)},null))),(m!=0||b!=1/0)&&(G.push(is(o,u,function(){return TY(o,u,m,b)},null)),o.m&&G.push(is(o,V.ka,function(){return TY(o,V.ka,m,b)},null))),G.length?L(le,Promise.all(G),0):le.A(0))})}function zSe(o,u,f){var m,b;return te(function(C){return C.g==1?(m=Zr,u==m.Na||(u==m.Aa&&(o.Ta=new fi),!o.I||(b=lv(o,u))&&Math.abs(b-f)<.15)?C.return():(is(o,u,function(){return Dg(o,u)},null),o.m&&is(o,m.ka,function(){return Dg(o,m.ka)},null),L(C,is(o,u,function(){return Pg(o,u,f)},null),2))):o.m?L(C,is(o,m.ka,function(){return Pg(o,m.ka,f)},null),0):C.A(0)})}l.endOfStream=function(o){var u=this;return te(function(f){return L(f,Y3(u,function(){sv(u)||av(u)||(o?u.i.endOfStream(o):u.i.endOfStream())}),0)})},l.Ab=function(o){var u=this;return te(function(f){return L(f,Y3(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&o=u.o&&m&&!u.i)&&(u.j&&u.j(u.g,b),u.i=!0,u.g=f.g.currentTime),u=!m}u&&(u=o.g.currentTime,f=o.g.buffered,m=ASe(f,u,o.h.gapDetectionThreshold),m==null||m==0&&!o.B||(b=f.start(m),(C=o.h.gapPadding)&&(b=Math.ceil((b+C)*100)/100),b>=o.F.Gb()||b-u<.001||(m!=0&&f.end(m-1),ZSe(o,b),u==o.l&&(o.l=b),o.G++,o.u(new kn("gapjumped")))))}}}function ZSe(o,u){o.C=!0,o.j.Ba(o.g,"seeked",function(){o.C=!1}),o.g.currentTime=u}function JSe(o){if(!o.h.stallEnabled)return null;var u=o.h.stallThreshold,f=o.h.stallSkip;return new RY(new MY(o.g),u,function(){var m;return te(function(b){if(b.g==1)return m=Kf(o.g.buffered),m.length?f?(o.g.currentTime+=f,b.A(2)):L(b,o.g.play(),3):b.return();if(b.g!=2){if(!o.g)return b.return();o.g.pause(),o.g.play()}o.H++,o.u(new kn("stalldetected")),B(b)})})}function RY(o,u,f){this.h=o,this.m=OY(o),this.g=o.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=f}RY.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function MY(o){var u=this;this.g=o,this.h=new Oe,this.i=!1,this.h.D(this.g,"audiofocuspaused",function(){u.i=!0}),this.h.D(this.g,"audiofocusgranted",function(){u.i=!1}),this.h.D(this.g,"audiofocuslost",function(){u.i=!0})}function OY(o){if(o.g.paused||o.g.playbackRate==0||o.i||o.g.buffered.length==0)var u=!1;else e:{u=o.g.currentTime,o=_(Kf(o.g.buffered));for(var f=o.next();!f.done;f=o.next())if(f=f.value,!(uf.end-.5)){u=!0;break e}u=!1}return u}MY.prototype.release=function(){this.h&&this.h.release(),this.h=null};function Rg(o,u,f,m){u==HTMLMediaElement.HAVE_NOTHING||o.readyState>=u?m():(u=QSe.value().get(u),f.Ba(o,u,m))}var QSe=new Qe(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function $Y(o,u,f,m){var b=this;this.g=o,this.m=u,this.u=f,this.l=null,this.j=function(){return b.l==null&&(b.l=m()),b.l},this.o=!1,this.h=new Oe,this.i=new jY(o),Rg(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){NY(b,b.j())})}$Y.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i!=null&&(this.i.release(),this.i=null),this.m=function(){},this.g=null};function gL(o){return o.o?o.g.currentTime:o.j()}function BY(o,u){o.g.readyState>0?VY(o.i,u):Rg(o.g,HTMLMediaElement.HAVE_METADATA,o.h,function(){NY(o,o.j())})}function NY(o,u){Math.abs(o.g.currentTime-u)<.001?FY(o):(o.h.Ba(o.g,"seeking",function(){FY(o)}),VY(o.i,o.g.currentTime&&o.g.currentTime!=0?o.g.currentTime:u))}function FY(o){o.o=!0,o.h.D(o.g,"seeking",function(){return o.m()}),o.u(o.g.currentTime)}function jY(o){var u=this;this.g=o,this.m=10,this.j=this.l=this.i=0,this.h=new mr(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}jY.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function VY(o,u){o.l=o.g.currentTime,o.j=u,o.i=o.m,o.g.currentTime=u,o.h.Ea(.1)}function zY(o){this.g=o,this.i=!1,this.h=null,this.j=new Oe}l=zY.prototype,l.ready=function(){function o(){if(u.h==null||u.h==0&&u.g.duration!=1/0)u.i=!0;else{var f=u.g.currentTime,m=null;if(typeof u.h=="number")m=u.h;else if(u.h instanceof Date){var b=UY(u);b!==null&&(m=u.h.getTime()/1e3-b,m=HY(u,m))}m==null?u.i=!0:(m<0&&(m=Math.max(0,f+m)),f!=m?(u.j.Ba(u.g,"seeking",function(){u.i=!0}),u.g.currentTime=m):u.i=!0)}}var u=this;Rg(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){o()})},l.release=function(){this.j&&(this.j.release(),this.j=null),this.g=null},l.Wf=function(o){this.h=this.i?this.h:o},l.He=function(){var o=this.i?this.g.currentTime:this.h;return o instanceof Date&&(o=o.getTime()/1e3-(UY(this)||0),o=HY(this,o)),o||0},l.Ih=function(){return 0},l.Gh=function(){return 0},l.Hh=function(){return!1},l.xi=function(){},l.ki=function(){var o=f6(this.g.buffered);return o!=null&&o>=this.g.duration-1};function UY(o){return o.g.getStartDate&&(o=o.g.getStartDate().getTime(),!isNaN(o))?o/1e3:null}function HY(o,u){return o=o.g.seekable,o.length>0&&(u=Math.max(o.start(0),u),u=Math.min(o.end(o.length-1),u)),u}function WY(o,u,f,m,b,C){var A=this;this.h=o,this.g=u.presentationTimeline,this.l=f,this.u=b,this.o=null,this.i=new mL(o,u.presentationTimeline,f,C),this.j=new $Y(o,function(){e:{var R=A.i;R.m=!0,R.B=!1,R.i&&R.i.Ea(R.h.gapJumpTimerTime),X3(R);var N=gL(A.j);if(R=qY(A,N),!cg()&&Math.abs(R-N)>.001){N=!1;var V=Le().Mi();if(V){var G=Date.now()/1e3;(!A.o||A.o0&&!this.h.paused?YY(this,o):o},l.Ih=function(){return this.i.H},l.Gh=function(){return this.i.G},l.Hh=function(){return this.i.C};function GY(o,u){return u==null?u=o.g.getDuration()<1/0?o.g.Xb():o.g.Gb():u instanceof Date?u=u.getTime()/1e3-(o.g.m||o.g.i):u<0&&(u=o.g.Gb()+u),KY(o,YY(o,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var o=this.g.Hc(),u=f6(this.h.buffered);if(u!=null&&u>=o)return!0}return!1};function KY(o,u){var f=o.g.getDuration();return u>=f?f-o.l.durationBackoff:u}function qY(o,u){var f=o.l.rebufferingGoal,m=o.l.safeSeekOffset,b=o.g.Xb(),C=o.g.Gb(),A=o.g.getDuration();C-b<3&&(b=C-3);var R=o.g.Xd(f),N=o.g.Xd(m);return f=o.g.Xd(f+m),u>=A?KY(o,u):u>C?C-o.l.safeSeekEndOffset:u=R||eL(o.h.buffered,u)?u:f}function YY(o,u){var f=o.g.Xb();return uo?o:u)}function Or(o){this.g=o,this.m=null,this.i=0,this.o=!1}l=Or.prototype,l.getNumReferences=function(){return this.g.length},l.getNumEvicted=function(){return this.i},l.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)},l.yk=function(){this.o=!0},l.Fb=function(o){for(var u=_(this.g),f=u.next();!f.done;f=u.next())o(f.value)};function ad(o){return o.g[0]||null}l.find=function(o){for(var u=this.g.length-1,f=u;f>=0;--f){var m=this.g[f],b=f=m.startTime&&o=this.g.length?null:this.g[o])},l.offset=function(o){if(!this.o)for(var u=_(this.g),f=u.next();!f.done;f=u.next())f.value.offset(o)},l.nf=function(o){if(!this.o&&o.length){var u=Math.round(o[0].startTime*1e3)/1e3;this.g=this.g.filter(function(f){return Math.round(f.startTime*1e3)/1e3u&&(f.g.length==0||m.endTime>f.g[0].startTime)}),this.nf(o),this.Ya(u)},l.Ya=function(o){if(!this.o){var u=this.g.length;this.g=this.g.filter(function(f){return f.endTime>o}),this.i+=u-this.g.length}},l.pd=function(o,u,f){if(f=f===void 0?!1:f,!this.o){for(;this.g.length&&this.g[this.g.length-1].startTime>=u;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=o;)this.g.shift(),f||this.i++;this.g.length!=0&&(o=this.g[this.g.length-1],u=new Fn(o.startTime,u,o.C,o.startByte,o.endByte,o.ba,o.timestampOffset,o.appendWindowStart,o.appendWindowEnd,o.g,o.tilesLayout,o.B,o.h,o.status,o.aesKey),u.mimeType=o.mimeType,u.codecs=o.codecs,u.i=o.i,this.g[this.g.length-1]=u)}},l.Nf=function(o,u){var f=this;this.o||(this.m&&this.m.stop(),this.m=new mr(function(){var m=u();m?f.g.push.apply(f.g,T(m)):(f.m.stop(),f.m=null)}),this.m.Ea(o))},Or.prototype[Symbol.iterator]=function(){return this.Vb(0)},Or.prototype.Vb=function(o,u,f){u=u===void 0?!1:u,f=f===void 0?!1:f;var m=this.find(o);if(m==null)return null;var b=this.get(m);f?m++:m--;var C=-1;if(b&&b.g.length>0)for(var A=b.g.length-1;A>=0;--A){var R=b.g[A];if(o>=R.startTime&&o0&&o.m&&this.g>=o.g.length&&(this.h++,this.g=0,o=this.i.get(this.h)),o&&o.g.length>0?o.g[this.g]:o},l.next=function(){var o=this.i.get(this.h);return this.reverse?o&&o.g.length>0?(this.g--,this.g<0&&(this.h--,this.g=(o=this.i.get(this.h))&&o.g.length>0?o.g.length-1:0)):(this.h--,this.g=0):o&&o.g.length>0?(this.g++,o.m&&this.g==o.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),o=this.current(),{value:o,done:!o}},l.eh=function(){var o=this.current();if(o&&o.Xc&&!o.l&&(o=this.i.get(this.h))&&o.g.length>0)for(var u=o.g[this.g];u.l&&!(this.g<=0);)this.g--,u=o.g[this.g]},_e("shaka.media.SegmentIterator",zu),zu.prototype.resetToLastIndependent=zu.prototype.eh,zu.prototype.next=zu.prototype.next,zu.prototype.current=zu.prototype.current,zu.prototype.currentPosition=zu.prototype.tj,zu.prototype.setReverse=zu.prototype.Id;function Qi(){Or.call(this,[]),this.h=[]}x(Qi,Or),l=Qi.prototype,l.clone=function(){var o=new Qi;return o.h=this.h.slice(),o.i=this.i,o},l.release=function(){this.h=[]},l.Fb=function(o){for(var u=_(this.h),f=u.next();!f.done;f=u.next())f.value.Fb(o)};function e6e(o,u){o=_(o.h);for(var f=o.next();!f.done;f=o.next())u(f.value)}l.find=function(o){for(var u=this.i,f=_(this.h),m=f.next();!m.done;m=f.next()){m=m.value;var b=m.find(o);if(b!=null)return b+u;u+=m.getNumEvicted()+m.getNumReferences()}return null};function t6e(o,u){o=_(o.h);for(var f=o.next();!f.done;f=o.next())if(f=f.value,f.find(u)!=null)return f.Te();return-1}l.get=function(o){for(var u=this.i,f=_(this.h),m=f.next();!m.done;m=f.next()){m=m.value;var b=m.get(o-u);if(b)return b;b=m.getNumReferences(),u+=m.getNumEvicted()+b}return null},l.offset=function(){},l.nf=function(){},l.Ya=function(o){if(this.h.length){var u=this.h[0];u.Ya(o),u.getNumReferences()==0&&(this.h.shift(),this.i+=u.getNumEvicted(),u.release(),this.Ya(o))}},l.fe=function(){},l.pd=function(){},l.Nf=function(){},_e("shaka.media.MetaSegmentIndex",Qi),Qi.prototype.updateEvery=Qi.prototype.Nf,Qi.prototype.fit=Qi.prototype.pd,Qi.prototype.mergeAndEvict=Qi.prototype.fe,Qi.prototype.evict=Qi.prototype.Ya,Qi.prototype.merge=Qi.prototype.nf,Qi.prototype.offset=Qi.prototype.offset,Qi.prototype.get=Qi.prototype.get,Qi.prototype.find=Qi.prototype.find,Qi.prototype.forEachTopLevelReference=Qi.prototype.Fb,Qi.prototype.release=Qi.prototype.release;function Z3(o){var u=this;this.g=o,this.j=!1,this.i=this.g.Ye(),this.h=new mr(function(){u.g.ui(u.i*.25)})}Z3.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},Z3.prototype.set=function(o){this.i=o,yL(this)},Z3.prototype.Tc=function(){return this.g.Tc()};function yL(o){o.h.stop();var u=o.j?0:o.i;if(u>=0)try{o.g.Ye()!=u&&o.g.ph(u);return}catch{}o.h.Ea(.25),o.g.Ye()!=0&&o.g.ph(0)}function bL(o){var u=this;this.j=o,this.h=new Oe,this.g=new Set,this.i=new mr(function(){XY(u,!1)}).Jb(),o.paused||this.i.Ea(.25),this.h.D(o,"playing",function(){u.i.Jb().Ea(.25)}),this.h.D(o,"pause",function(){u.i.stop()})}bL.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i.stop();for(var o=_(this.g),u=o.next();!u.done;u=o.next())u.value.release();this.g.clear()};function XY(o,u){var f=o.j.currentTime;o=_(o.g);for(var m=o.next();!m.done;m=o.next())m.value.j(f,u)}function _6(o){Qr.call(this),this.g=new Map,this.h=o}x(_6,Qr),_6.prototype.release=function(){this.g.clear(),Qr.prototype.release.call(this)};function n6e(o,u){var f=o.g.get(u);return f||(f={me:[],lg:null,contentType:u},o.g.set(u,f)),f}function r6e(o,u,f){var m=n6e(o,u.contentType);i6e(o,m),o={xd:u,position:f},m=m.me,u=m.findIndex(function(b){return b.position>=f}),u>=0?m.splice(u,m[u].position==f?1:0,o):m.push(o)}_6.prototype.j=function(o){for(var u=_(this.g.values()),f=u.next();!f.done;f=u.next()){f=f.value;var m=f.lg;e:{for(var b=f.me,C=b.length-1;C>=0;C--){var A=b[C];if(A.position<=o){b=A.xd;break e}}b=null}C=b&&!(m===b||m&&b&&m.bandwidth==b.bandwidth&&m.audioSamplingRate==b.audioSamplingRate&&m.codecs==b.codecs&&m.contentType==b.contentType&&m.frameRate==b.frameRate&&m.height==b.height&&m.mimeType==b.mimeType&&m.channelsCount==b.channelsCount&&m.pixelAspectRatio==b.pixelAspectRatio&&m.width==b.width),A=b&&m&&b.label&&m.label&&m.label!==b.label;var R=b&&m&&b.language&&m.language&&m.language!==b.language;m=b&&m&&b.roles&&m.roles&&!vt(m.roles,b.roles),(A||R||m)&&ZY(this,o,b.contentType)&&(f.lg=b,m=new kn("audiotrackchange",new Map([["quality",b],["position",o]])),this.dispatchEvent(m)),C&&ZY(this,o,b.contentType)&&(f.lg=b,JSON.stringify(b),f=new kn("qualitychange",new Map([["quality",b],["position",o]])),this.dispatchEvent(f))}};function ZY(o,u,f){return!!((o=o.h()[f])&&o.length>0&&(f=o[o.length-1].end,u>=o[0].start&&u0){var f=o[0].start,m=o[o.length-1].end,b=u.me;u.me=b.filter(function(C,A){return!(C.position<=f&&A+1=m)})}else u.me=[]}function S6(o){var u={bandwidth:o.bandwidth||0,audioSamplingRate:null,codecs:o.codecs,contentType:o.type,frameRate:null,height:null,mimeType:o.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:o.roles,language:null};return o.type=="video"&&(u.frameRate=o.frameRate||null,u.height=o.height||null,u.pixelAspectRatio=o.pixelAspectRatio||null,u.width=o.width||null),o.type=="audio"&&(u.audioSamplingRate=o.audioSamplingRate,u.channelsCount=o.channelsCount,u.label=o.label||null,u.language=o.language),u}function J3(o){Qr.call(this),this.h=new Map,this.i=o,this.g=null}x(J3,Qr),J3.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Qr.prototype.release.call(this)};function _L(o,u){var f=u.schemeIdUri+"_"+u.id+"_"+(u.startTime.toFixed(1)+"_"+u.endTime.toFixed(1));o.h.has(f)||(o.h.set(f,u),u=new kn("regionadd",new Map([["region",u]])),o.dispatchEvent(u),o6e(o))}function o6e(o){o.g||(o.g=new mr(function(){for(var u=o.i(),f=_(o.h),m=f.next();!m.done;m=f.next()){var b=_(m.value);m=b.next().value,b=b.next().value,b.endTimem.endTime&&e2(this,m);u&&SL(this)},k6.prototype.Id=function(o){this.o=o,this.h&&this.h.Id(o)};function SL(o){if(o.g.size)for(var u=Array.from(o.g.keys()),f=_(o.j.keys()),m=f.next(),b={};!m.done;b={Mg:void 0},m=f.next())b.Mg=m.value,u.some((function(C){return function(A){return G3(A.ba,C.Mg)}})(b))||e2(o,b.Mg)}function eX(o,u){o.m=u;for(var f=Array.from(o.g.keys());f.length>u;){var m=f.pop();m&&e2(o,m)}SL(o)}function a6e(o,u){u&&u!==o.i&&(ld(o),o.i=u)}function e2(o,u){var f=o.g;u instanceof il&&(f=o.j),o=f.get(u),f.delete(u),o&&o.abort()}function kL(o){this.g=o,this.je=this.wh=null}function tX(o,u,f){var m=new Uint8Array(0);return o.je=o.g(u,f,function(b){return te(function(C){if(C.g==1)return m.byteLength>0?m=or(m,b):m=b,o.wh?L(C,o.wh(m),3):C.A(0);m=new Uint8Array(0),B(C)})}),o.je.promise.catch(function(b){return b instanceof De&&b.code==7001?Promise.resolve():Promise.reject(b)})}kL.prototype.abort=function(){this.je&&this.je.abort()},_e("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function wL(o){var u=Dl(o),f=u.split("/")[0];return o=rl(o),{type:f,mimeType:u,codecs:o,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,ve:null,colorGamut:null,frameRate:null}}function l6e(o,u,f){function m(Xe){ze=Xe.name;var pt=Xe.reader;pt.skip(24);var _t=pt.Ca(),bt=pt.Ca();pt.skip(50),le=String(_t),Z=String(bt),Xe.reader.Ia()&&lr(Xe)}function b(Xe){var pt=sY(Xe.reader);he=pt.channelCount,pe=pt.sampleRate,C(Xe.name)}function C(Xe){switch(Xe=Xe.toLowerCase(),Xe){case"avc1":case"avc3":R.push(Xe+".42E01E"),V=!0;break;case"hev1":case"hvc1":R.push(Xe+".1.6.L93.90"),V=!0;break;case"dvh1":case"dvhe":R.push(Xe+".05.04"),V=!0;break;case"vp09":R.push(Xe+".00.10.08"),V=!0;break;case"av01":R.push(Xe+".0.01M.08"),V=!0;break;case"mp4a":A.push("mp4a.40.2"),N=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":A.push(Xe),N=!0;break;case"apac":A.push("apac.31.00"),N=!0}}var A=[],R=[],N=!1,V=!1,G=null,Z=null,le=null,he=null,pe=null,ye=null,be=null,ze;if(new hi().box("moov",lr).box("trak",lr).box("mdia",lr).S("mdhd",function(Xe){G=u6(Xe.reader,Xe.version).language}).box("minf",lr).box("stbl",lr).S("stsd",Wf).box("mp4a",function(Xe){var pt=sY(Xe.reader);he=pt.channelCount,pe=pt.sampleRate,Xe.reader.Ia()?lr(Xe):C(Xe.name)}).box("esds",function(Xe){Xe=Xe.reader;for(var pt="mp4a",_t,bt;Xe.Ia();){_t=Xe.Y();for(var kt=Xe.Y();kt&128;)kt=Xe.Y();if(_t==3)Xe.Ca(),kt=Xe.Y(),kt&128&&Xe.Ca(),kt&64&&Xe.skip(Xe.Y()),kt&32&&Xe.Ca();else if(_t==4)bt=Xe.Y(),Xe.skip(12);else if(_t==5)break}bt&&(pt+="."+U3(bt),_t==5&&Xe.Ia()&&(_t=Xe.Y(),bt=(_t&248)>>3,bt===31&&Xe.Ia()&&(bt=32+((_t&7)<<3)+((Xe.Y()&224)>>5)),pt+="."+bt)),A.push(pt),N=!0}).box("ac-3",b).box("ec-3",b).box("ac-4",b).box("Opus",b).box("fLaC",b).box("apac",b).box("avc1",m).box("avc3",m).box("hev1",m).box("hvc1",m).box("dva1",m).box("dvav",m).box("dvh1",m).box("dvhe",m).box("vp09",m).box("av01",m).box("avcC",function(Xe){var pt=ze||"";switch(ze){case"dvav":pt="avc3";break;case"dva1":pt="avc1"}Xe=Xe.reader,Xe.skip(1),Xe=pt+"."+U3(Xe.Y())+U3(Xe.Y())+U3(Xe.Y()),R.push(Xe),V=!0}).box("hvcC",function(Xe){var pt=ze||"";switch(ze){case"dvh1":pt="hvc1";break;case"dvhe":pt="hev1"}var _t=Xe.reader;_t.skip(1),Xe=_t.Y();var bt=["","A","B","C"][Xe>>6],kt=Xe&31,wt=_t.U(),Bt=(Xe&32)>>5?"H":"L";Xe=[_t.Y(),_t.Y(),_t.Y(),_t.Y(),_t.Y(),_t.Y()],_t=_t.Y();for(var Nt=0,Tt=0;Tt<32&&(Nt|=wt&1,Tt!=31);Tt++)Nt<<=1,wt>>=1;for(pt=pt+("."+bt+kt)+("."+U3(Nt,!0)),pt+="."+Bt+_t,bt="",kt=Xe.length;kt--;)((Bt=Xe[kt])||bt)&&(bt="."+Bt.toString(16).toUpperCase()+bt);pt+=bt,R.push(pt),V=!0}).box("dvcC",function(Xe){var pt=ze||"";switch(ze){case"hvc1":pt="dvh1";break;case"hev1":pt="dvhe";break;case"avc1":pt="dva1";break;case"avc3":pt="dvav";break;case"av01":pt="dav1"}var _t=Xe.reader;_t.skip(2),Xe=_t.Y(),_t=_t.Y(),R.push(pt+"."+Rl(Xe>>1&127)+"."+Rl(Xe<<5&32|_t>>3&31)),V=!0}).box("dvvC",function(Xe){var pt=ze||"";switch(ze){case"hvc1":pt="dvh1";break;case"hev1":pt="dvhe";break;case"avc1":pt="dva1";break;case"avc3":pt="dvav";break;case"av01":pt="dav1"}var _t=Xe.reader;_t.skip(2),Xe=_t.Y(),_t=_t.Y(),R.push(pt+"."+Rl(Xe>>1&127)+"."+Rl(Xe<<5&32|_t>>3&31)),V=!0}).S("vpcC",function(Xe){var pt=ze||"",_t=Xe.reader;Xe=_t.Y();var bt=_t.Y();_t=_t.Y()>>4&15,R.push(pt+"."+Rl(Xe)+"."+Rl(bt)+"."+Rl(_t)),V=!0}).box("av1C",function(Xe){var pt=ze||"";switch(ze){case"dav1":pt="av01"}var _t=Xe.reader;_t.skip(1),Xe=_t.Y(),_t=_t.Y();var bt=Xe>>>5,kt=(_t&64)>>6;R.push(pt+"."+bt+"."+Rl(Xe&31)+(_t>>>7?"H":"M")+"."+Rl(bt===2&&kt?(_t&32)>>5?12:10:kt?10:8)+"."+((_t&16)>>4)+"."+((_t&8)>>3)+((_t&4)>>2)+(_t&3)+"."+Rl(1)+"."+Rl(1)+"."+Rl(1)+".0"),V=!0}).box("enca",r6).box("encv",Pl).box("sinf",lr).box("frma",function(Xe){Xe=JI(Xe.reader).codec,C(Xe)}).box("colr",function(Xe){R=R.map(function(bt){if(bt.startsWith("av01.")){var kt=Xe.reader,wt=kt.Oa(),Bt=kt.Tb(4,!1),Nt=String.fromCharCode(Bt[0]);if(Nt+=String.fromCharCode(Bt[1]),Nt+=String.fromCharCode(Bt[2]),Nt+=String.fromCharCode(Bt[3]),Nt==="nclx"){Bt=kt.Ca(),Nt=kt.Ca();var Tt=kt.Ca(),Dt=kt.Y()>>7,qt=bt.split(".");qt.length==10&&(qt[6]=Rl(Bt),qt[7]=Rl(Nt),qt[8]=Rl(Tt),qt[9]=String(Dt),bt=qt.join("."))}kt.seek(wt)}return bt});var pt=cSe(Xe.reader),_t=pt.colorGamut;ye=pt.ve,be=_t}).parse(o||u,!0,!0),!A.length&&!R.length)return null;var Ne=N&&!V,Je=new Map;if(V&&!f){f=new Ns("video/mp4"),o&&f.init(o);try{f.xf(u);for(var lt=_(f.Vf()),St=lt.next();!St.done;St=lt.next()){var it=St.value;Je.set(it,it)}}catch{}f.Nd()}return{type:Ne?"audio":"video",mimeType:Ne?"audio/mp4":"video/mp4",codecs:xL(A.concat(R)).join(", "),language:G,height:Z,width:le,channelCount:he,sampleRate:pe,closedCaptions:Je,ve:ye,colorGamut:be,frameRate:null}}function xL(o){var u=new Set,f=[];o=_(o);for(var m=o.next();!m.done;m=o.next()){m=m.value;var b=lp(m);u.has(b)||(f.push(m),u.add(b))}return u=La("audio",f),m=La("video",f),o=La(Cn,f),m=u6e(m),u=u.concat(m).concat(o),f.length&&!u.length?f:u}function u6e(o){if(o.length<=1)return o;var u=o.find(function(f){return f.startsWith("dvav.")||f.startsWith("dva1.")||f.startsWith("dvh1.")||f.startsWith("dvhe.")||f.startsWith("dav1.")||f.startsWith("dvc1.")||f.startsWith("dvi1.")});return u?jo('video/mp4; codecs="'+u+'"')?[u]:o.filter(function(f){return f!=u}):o}function c6e(o){var u=null;return new hi().box("moov",lr).box("trak",lr).box("mdia",lr).box("minf",lr).box("stbl",lr).S("stsd",Wf).box("encv",Pl).box("enca",r6).box("sinf",lr).box("schi",lr).S("tenc",function(f){f=f.reader,f.Y(),f.Y(),f.Y(),f.Y(),f=f.Tb(16,!1),u=Ln(f)}).parse(o,!0),u}function CL(o,u,f){var m,b,C,A,R;return te(function(N){if(N.g==1)return m=u,m.cryptoKey?N.A(2):L(N,m.fetchKey(),3);if(b=m.iv,!b)for(b=Te(new ArrayBuffer(16)),C=m.firstMediaSequenceNumber+f,A=b.byteLength-1;A>=0;A--)b[A]=C&255,C>>=8;return u.blockCipherMode=="CBC"?R={name:"AES-CBC",iv:b}:R={name:"AES-CTR",counter:b,length:64},N.return(i.crypto.subtle.decrypt(R,m.cryptoKey,o))})}function t2(o,u,f,m,b){return o=Vo(o,m,b),(u!=0||f!=null)&&(o.headers.Range=f?"bytes="+u+"-"+f:"bytes="+u+"-"),o}function nX(o,u){var f=this;this.g=u,this.j=o,this.i=null,this.M=new Map,this.C=1,this.B=this.o=null,this.V=0,this.h=new Map,this.N=!1,this.X=null,this.F=!1,this.l=new bg(function(){return d6e(f)}),this.R=Date.now()/1e3,this.m=new Map,this.T={projection:null,hfov:null},this.aa=0,this.$=1/0,this.H=null,this.O=[],this.u=new mr(function(){if(f.j&&f.g)if(f.j.presentationTimeline.W()){var m=f.j.presentationTimeline.Xb(),b=f.j.presentationTimeline.Gb();b-m>1?USe(f.g.Z,m,b):dL(f.g.Z)}else dL(f.g.Z),f.u&&f.u.stop();else f.u&&f.u.stop()}),this.I=null,this.J=!1,this.K=new mr(function(){var m=f.g.video;!m.ended&&f.I&&(f.J=!0,m.currentTime=f.I,f.I=null)}),this.G=new Oe}l=nX.prototype,l.destroy=function(){return this.l.destroy()};function d6e(o){var u,f,m,b,C,A,R;return te(function(N){if(N.g==1){for(o.u&&o.u.stop(),o.u=null,o.K&&o.K.stop(),o.K=null,o.G&&(o.G.release(),o.G=null),u=[],f=_(o.h.values()),m=f.next();!m.done;m=f.next())b=m.value,Yf(b),u.push(T6(b)),b.ha&&(ld(b.ha),b.ha=null);for(C=_(o.m.values()),A=C.next();!A.done;A=C.next())R=A.value,ld(R);return L(N,Promise.all(u),2)}o.h.clear(),o.m.clear(),o.g=null,o.j=null,o.i=null,o.I=null,B(N)})}l.configure=function(o){if(this.i=o,this.X=new Aq({maxAttempts:Math.max(o.retryParameters.maxAttempts,2),baseDelay:o.retryParameters.baseDelay,backoffFactor:o.retryParameters.backoffFactor,fuzzFactor:o.retryParameters.fuzzFactor},!0),o.disableAudioPrefetch){var u=this.h.get("audio");u&&u.ha&&(ld(u.ha),u.ha=null),u=_(this.m.keys());for(var f=u.next();!f.done;f=u.next())f=f.value,ld(this.m.get(f)),this.m.delete(f)}for(o.disableTextPrefetch&&(u=this.h.get(Cn))&&u.ha&&(ld(u.ha),u.ha=null),o.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(ld(u.ha),u.ha=null),u=_(this.h.keys()),f=u.next();!f.done;f=u.next())f=this.h.get(f.value),f.ha?(eX(f.ha,o.segmentPrefetchLimit),o.segmentPrefetchLimit>0||(ld(f.ha),f.ha=null)):o.segmentPrefetchLimit>0&&(f.ha=TL(this,f.stream));o.disableAudioPrefetch||y6e(this)};function f6e(o,u,f){o.j.presentationTimeline.W()||(o.aa=u,o.$=f)}l.start=function(o){var u=this;return te(function(f){if(f.g==1)return L(f,g6e(u,o||new Map),2);Ii(u.l),u.N=!0,B(f)})};function h6e(o,u){var f,m,b,C,A,R;te(function(N){switch(N.g){case 1:return f=Zr,o.V++,m=o.V,j(N,2),L(N,CY(o.g.Z,f.Na),4);case 4:U(N,3);break;case 2:b=W(N),o.g&&o.g.onError(b);case 3:C=ko(u.mimeType,u.codecs),m6(o.g.Z,C,o.j.sequenceMode,u.external),A=o.g.Z.aa,(A.isTextVisible()||o.i.alwaysStreamText)&&o.V==m&&(R=x6(o,u),o.h.set(f.Na,R),ya(o,R,0)),B(N)}})}function p6e(o){var u=o.h.get(Cn);u&&(Yf(u),T6(u).catch(function(){}),o.H=o.h.get(Cn),o.h.delete(Cn),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),o.B=null}function rX(o,u){for(var f=o.g.Ob()<0,m=_(o.h.values()),b=m.next();!b.done;b=m.next())b=b.value,b.ua&&b.ua.Id(f),b.ha&&b.ha.Id(f);for(m=_(o.m.values()),b=m.next();!b.done;b=m.next())b.value.Id(f);(f=o.h.get("video"))&&(m=f.stream)&&(u?(u=m.trickModeVideo)&&!f.Mc&&(Mg(o,u,!1,0,!1),f.Mc=m):(u=f.Mc)&&(f.Mc=null,Mg(o,u,!0,0,!1)))}function iX(o,u,f,m,b,C){f=f===void 0?!1:f,m=m===void 0?0:m,b=b===void 0?!1:b,C=C===void 0?!1:C,o.o=u,o.N&&(u.video&&Mg(o,u.video,f,m,b,C),u.audio&&Mg(o,u.audio,f,m,b,C))}function w6(o,u){te(function(f){if(f.g==1)return o.H=null,o.B=u,o.N?u.segmentIndex?f.A(2):L(f,u.createSegmentIndex(),2):f.return();Mg(o,u,!0,0,!1),B(f)})}function v6e(o){var u=o.h.get(Cn);u&&Mg(o,u.stream,!0,0,!0)}function m6e(o,u){for(var f=_(o.M.entries()),m=f.next();!m.done;m=f.next()){var b=_(m.value);m=b.next().value,b=b.next().value,m.includes(u.type)&&(b(),o.M.delete(m))}}function Mg(o,u,f,m,b,C){var A=o.h.get(u.type);A||u.type!=Cn?A&&(A.Mc&&(u.trickModeVideo?(A.Mc=u,u=u.trickModeVideo):A.Mc=null),A.stream!=u||b)&&(o.m.has(u)?A.ha=o.m.get(u):A.ha&&a6e(A.ha,u),u.type==Cn&&A.stream!=u&&(b=ko(u.mimeType,u.codecs),m6(o.g.Z,b,o.j.sequenceMode,u.external)),!o.m.has(A.stream)&&A.stream.closeSegmentIndex&&(A.Ja?(b="("+A.type+":"+A.stream.id+")",o.M.has(b)||o.M.set(b,A.stream.closeSegmentIndex)):A.stream.closeSegmentIndex()),b=A.stream.isAudioMuxedInVideo!=u.isAudioMuxedInVideo,A.stream=u,A.ua=null,A.cg=!!C,u.dependencyStream?A.Ec=x6(o,u.dependencyStream):A.Ec=null,uX(o),b&&(A.pb=null,A.qc=null,A.nc=null,u.isAudioMuxedInVideo&&(u=null,A.type==="video"?u=o.h.get("audio"):A.type==="audio"&&(u=o.h.get("video")),u&&(T6(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,EL(o,u),oX(o,u).catch(function(R){o.g&&o.g.onError(R)})))),f?A.Ub?A.Kd=!0:A.Ja?(A.ec=!0,A.ld=m,A.Kd=!0):(Yf(A),LL(o,A,!0,m).catch(function(R){o.g&&o.g.onError(R)})):A.Ja||A.qb||ya(o,A,0),oX(o,A).catch(function(R){o.g&&o.g.onError(R)})):h6e(o,u)}function oX(o,u){var f,m,b;return te(function(C){if(C.g==1)return u.Va?(f=u.stream,m=u.Va,f.segmentIndex?C.A(2):L(C,f.createSegmentIndex(),2)):C.return();if(C.g!=4)return b=f.dependencyStream,!b||b.segmentIndex?C.A(4):L(C,b.createSegmentIndex(),4);if(u.Va!=m||u.stream!=f)return C.return();var A=o.g.lc(),R=lv(o.g.Z,u.type),N=u.stream.segmentIndex.find(u.La?u.La.endTime:A),V=N==null?null:u.stream.segmentIndex.get(N);N=V?QI(V):null,V&&!N&&(N=(V.endTime-V.getStartTime())*(u.stream.bandwidth||o.o.bandwidth)/8),N?((V=V.ba)&&(N+=(V.endByte?V.endByte+1-V.startByte:null)||0),V=o.g.getBandwidthEstimate(),A=N*8/V<(R||0)-A-o.i.rebufferingGoal||u.Va.h.g>N):A=!0,A&&u.Va.abort(),B(C)})}l.bd=function(){if(this.g){for(var o=this.g.lc(),u=_(this.h.keys()),f=u.next();!f.done;f=u.next()){var m=f.value;f=this.h.get(m);var b;if((b=!this.J)&&(b=this.g.Z,m==Cn?(b=b.h,b=b.g==null||b.h==null?!1:o>=b.g&&o0?new k6(o.i.segmentPrefetchLimit,u,function(m,b,C){return E6(m,b,C||null,o.i.retryParameters,o.g.tc)},o.g.Ob()<0,o.g.al):null}function y6e(o){for(var u=o.i.segmentPrefetchLimit,f=o.i.prefetchAudioLanguages,m=_(o.j.variants),b=m.next(),C={};!b.done;C={Mb:void 0},b=m.next())if(C.Mb=b.value,C.Mb.audio)if(o.m.has(C.Mb.audio)){if(b=o.m.get(C.Mb.audio),eX(b,u),!(u>0&&f.some((function(R){return function(N){return pg(R.Mb.audio.language,N)}})(C)))){var A=o.h.get(C.Mb.audio.type);b!==(A&&A.ha)&&ld(b),o.m.delete(C.Mb.audio)}}else u<=0||!f.some((function(R){return function(N){return pg(R.Mb.audio.language,N)}})(C))||!(b=TL(o,C.Mb.audio))||(C.Mb.audio.segmentIndex||C.Mb.audio.createSegmentIndex(),o.m.set(C.Mb.audio,b))}l.updateDuration=function(){var o=cg(),u=this.j.presentationTimeline.getDuration();u<1/0?(o&&(this.u&&this.u.stop(),dL(this.g.Z)),this.g.Z.Ab(u)):o?(this.u&&this.u.Ea(.5),this.g.Z.Ab(1/0)):this.g.Z.Ab(4294967296)};function b6e(o,u){var f,m,b,C,A,R,N,V,G;return te(function(Z){switch(Z.g){case 1:if(Ii(o.l),f=Zr,u.Ja||u.qb==null||u.Ub)return Z.return();if(u.qb=null,!u.ec){Z.A(2);break}return L(Z,LL(o,u,u.Kd,u.ld),3);case 3:return Z.return();case 2:if(m6e(o,u),u.stream.segmentIndex){Z.A(4);break}return m=u.stream,j(Z,5),L(Z,u.stream.createSegmentIndex(),7);case 7:U(Z,6);break;case 5:return b=W(Z),L(Z,DL(o,u,b),8);case 8:return Z.return();case 6:if(m!=u.stream)return m.closeSegmentIndex&&m.closeSegmentIndex(),u.Ja||u.qb||ya(o,u,0),Z.return();case 4:if(!u.Ec){Z.A(9);break}if(u.Ec.stream.segmentIndex){Z.A(9);break}return j(Z,11),L(Z,u.Ec.stream.createSegmentIndex(),13);case 13:U(Z,9);break;case 11:W(Z);case 9:j(Z,14),C=_6e(o,u),C!=null&&(ya(o,u,C),u.Zd=!1),U(Z,15);break;case 14:return A=W(Z),L(Z,DL(o,u,A),16);case 16:return Z.return();case 15:if(u.type===f.Na)return Z.return();if(R=[u],N=u.type===f.ka?f.Aa:f.ka,(V=o.h.get(N))&&R.push(V),!o.N||!R.every(function(le){return le.endOfStream})){Z.A(0);break}return L(Z,o.g.Z.endOfStream(),18);case 18:Ii(o.l),G=o.g.Z.getDuration(),G!=0&&G=C)return f/2;if(R=!u.ua,N=sX(o,u,m,N),!N)return f;A=u.pb;var V=N.ba;A&&V&&G3(V,A)&&(A.g=V.g),A=!1,R&&u.cg&&(A=!0,u.cg=!1),R=1/0,V=Array.from(o.h.values()),V=_(V);for(var G=V.next();!G.done;G=V.next())G=G.value,IL(G)||G.ua&&!G.ua.current()||(R=Math.min(R,G.La?G.La.endTime:m));return b>=R+o.j.presentationTimeline.h?f:(u.ha&&u.ua&&!o.m.has(u.stream)&&(u.ha.Ya(N.startTime+.001),Q3(u.ha,N.startTime).catch(function(){})),r2(o)&&C6e(o,u,N)||(S6e(o,u,m,N,A).catch(function(){}),u.Ec&&aX(o,u.Ec,m,C)),null)}function sX(o,u,f,m){if(u.ua)return(f=u.ua.current())&&u.La&&Math.abs(u.La.startTime-f.startTime)<.001&&(f=u.ua.next().value),f;if(u.La||m)return f=u.La?u.La.endTime:m,o=o.g.Ob()<0,u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,o)),u.ua&&u.ua.next().value;m=o.j.sequenceMode||r2(o)?0:o.i.inaccurateManifestTolerance;var b=Math.max(f-m,0);o=o.g.Ob()<0;var C=null;return m&&(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(b,!1,o)),C=u.ua&&u.ua.next().value),C||(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,o)),C=u.ua&&u.ua.next().value),C}function S6e(o,u,f,m,b){var C,A,R,N,V,G,Z,le,he,pe,ye,be,ze,Ne,Je,lt,St;return te(function(it){switch(it.g){case 1:if(C=Zr,A=u.stream,R=u.ua,u.Ja=!0,j(it,2),m.Jc()==2)throw new De(1,1,1011);return L(it,w6e(o,u,m,b),4);case 4:return Ii(o.l),o.F?it.return():(N=A.mimeType=="video/mp4"||A.mimeType=="audio/mp4",V=i.ReadableStream,o.i.lowLatencyMode&&o.j.isLowLatency&&V&&N&&(o.j.type!="HLS"||m.o)?(le=new Uint8Array(0),pe=he=!1,be=function(Xe){var pt,_t,bt;return te(function(kt){switch(kt.g){case 1:if(he||(pe=!0,Ii(o.l),o.F))return kt.return();if(j(kt,2),le=or(le,Xe),pt=!1,_t=0,new hi().box("mdat",function(wt){_t=wt.size+wt.start,pt=!0}).parse(le,!1,!0),!pt){kt.A(4);break}return bt=le.subarray(0,_t),le=le.subarray(_t),L(kt,AL(o,u,f,A,m,bt,!0,b),5);case 5:u.ha&&u.ua&&Q3(u.ha,m.startTime,!0);case 4:U(kt,0);break;case 2:ye=W(kt),B(kt)}})},L(it,n2(o,u,m,be),9)):(G=n2(o,u,m),L(it,G,7)));case 7:return Z=it.h,Ii(o.l),o.F?it.return():(Ii(o.l),u.ec?(u.Ja=!1,ya(o,u,0),it.return()):L(it,AL(o,u,f,A,m,Z,!1,b),6));case 9:if(ze=it.h,ye)throw ye;if(pe){it.A(10);break}return he=!0,Ii(o.l),o.F?it.return():u.ec?(u.Ja=!1,ya(o,u,0),it.return()):L(it,AL(o,u,f,A,m,ze,!1,b),10);case 10:u.ha&&u.ua&&Q3(u.ha,m.startTime,!0);case 6:if(Ii(o.l),o.F)return it.return();u.La=m,R.next(),u.Ja=!1,u.ah=!1,Ne=o.g.Z.Fc(),Je=Ne[u.type],JSON.stringify(Je),u.ec||(lt=null,u.type===C.Aa?lt=o.h.get(C.ka):u.type===C.ka&&(lt=o.h.get(C.Aa)),lt&<.type==C.ka?o.g.wf(m,u.stream,lt.stream.isAudioMuxedInVideo):o.g.wf(m,u.stream,u.stream.codecs.includes(","))),Yf(u),ya(o,u,0),U(it,0);break;case 2:if(St=W(it),Ii(o.l,St),o.F)return it.return();if(u.Ja=!1,St.code==7001)u.Ja=!1,Yf(u),ya(o,u,0),it.A(0);else if(u.type==C.Na&&o.i.ignoreTextStreamFailures)o.h.delete(C.Na),it.A(0);else return St.code==3017?L(it,k6e(o,u,St),0):(u.Zd=!0,St.category==1&&u.ha&&e2(u.ha,m),St.severity=2,L(it,DL(o,u,St),0))}})}function aX(o,u,f,m){var b,C,A,R,N,V,G,Z,le,he,pe;return te(function(ye){switch(ye.g){case 1:for(b=u.stream,R=(A=(C=b.segmentIndex)&&C.Vb(f))&&A.next().value;R&&o.O.includes(R.startTime);)R=A&&A.next().value;if(!R){ye.A(0);break}if(N=R.ba,!N||G3(N,u.pb)){ye.A(3);break}return u.pb=N,j(ye,4),L(ye,n2(o,u,N),6);case 6:V=ye.h;var be=o.g.Z;be.H&&ci(be.H,V,0,b),o.O=[],U(ye,3);break;case 4:throw G=W(ye),u.pb=null,G;case 3:if(u.La&&u.La==R){ye.A(0);break}return u.La=R,j(ye,8),L(ye,n2(o,u,R),10);case 10:Z=ye.h,be=o.g.Z,be.H&&ci(be.H,Z,0,b),o.O.push(R.startTime),U(ye,9);break;case 8:throw le=W(ye),u.La=null,le;case 9:if(he=Math.max.apply(Math,[0].concat(T(o.O))),pe=o.g.lc(),pe+m>he)return L(ye,aX(o,u,R.startTime,m),0);ye.A(0)}})}function k6e(o,u,f){var m,b,C,A,R,N,V;return te(function(G){switch(G.g){case 1:if(m=Array.from(o.h.values()),m.some(function(Z){return Z!=u&&Z.ah})){G.A(2);break}if(o.i.avoidEvictionOnQuotaExceededError)return b=PL(o,f),o.g.disableStream(u.stream,b)||ya(o,u,4),G.return();if(C=Math.round(100*o.C),C>20){o.C-=.2,G.A(3);break}if(C>4){o.C-=.04,G.A(3);break}if(A=PL(o,f),R=o.g.disableStream(u.stream,A),!R){u.Zd=!0,o.F=!0,o.g.onError(f),G.A(5);break}return o.C=1,N=o.g.lc(),L(G,C6(o,u,N),5);case 5:return G.return();case 3:return u.ah=!0,V=o.g.lc(),L(G,C6(o,u,V),2);case 2:ya(o,u,4),B(G)}})}function w6e(o,u,f,m){var b,C,A,R,N,V,G,Z,le,he,pe,ye,be,ze,Ne,Je;return te(function(lt){switch(lt.g){case 1:if(b=Zr,C=u.La==null,A=[],R=Math.max(0,Math.max(f.appendWindowStart,o.aa)-.1),N=Math.min(f.appendWindowEnd,o.$)+.1,V=f.codecs||u.stream.codecs,G=lp(V),Z=Dl(f.mimeType||u.stream.mimeType),le=f.timestampOffset,le==u.kf&&R==u.qc&&N==u.nc&&G==u.hf&&Z==u.jf){lt.A(2);break}if(he=u.hf&&u.jf&&YSe(o.g.Z,u.type,Z,V,I6(o)),!he){lt.A(3);break}if(pe=null,u.type===b.Aa?pe=o.h.get(b.ka):u.type===b.ka&&(pe=o.h.get(b.Aa)),!pe){lt.A(3);break}return L(lt,T6(pe).catch(function(){}),5);case 5:pe.pb=null,pe.qc=null,pe.nc=null,EL(o,pe);case 3:return L(lt,lX(o,u,le,R,N,f,G,Z),2);case 2:return G3(f.ba,u.pb)||(u.pb=f.ba,f.l&&f.ba&&(ye=n2(o,u,f.ba),be=function(){var St,it,Xe,pt,_t,bt,kt,wt,Bt,Nt,Tt;return te(function(Dt){switch(Dt.g){case 1:return j(Dt,2),L(Dt,ye,4);case 4:return St=Dt.h,Ii(o.l),it=null,Xe=new Map,pt={projection:null,hfov:null},u.stream&&(_t=u.stream.videoLayout)&&(bt=_t.split("/"),bt.includes("PROJ-RECT")?pt.projection="rect":bt.includes("PROJ-EQUI")?pt.projection="equi":bt.includes("PROJ-HEQU")?pt.projection="hequ":bt.includes("PROJ-PRIM")?pt.projection="prim":bt.includes("PROJ-AIV")&&(pt.projection="hequ")),kt=new hi,kt.box("moov",lr).box("trak",lr).box("mdia",lr).S("mdhd",function(qt){it=u6(qt.reader,qt.version).timescale}).box("hdlr",function(qt){switch(qt=qt.reader,qt.skip(8),qt.Yc()){case"soun":Xe.set(b.ka,it);break;case"vide":Xe.set(b.Aa,it)}it=null}),u.type!==b.Aa||pt.projection||kt.box("minf",lr).box("stbl",lr).S("stsd",Wf).box("encv",Pl).box("avc1",Pl).box("avc3",Pl).box("hev1",Pl).box("hvc1",Pl).box("dvav",Pl).box("dva1",Pl).box("dvh1",Pl).box("dvhe",Pl).box("dvc1",Pl).box("dvi1",Pl).box("vexu",lr).box("proj",lr).S("prji",function(qt){qt=qt.reader.Yc(),pt.projection=qt}).box("hfov",function(qt){qt=qt.reader.U()/1e3,pt.hfov=qt}),kt.parse(St,!0,!0),u.type===b.Aa&&x6e(o,pt),Xe.has(u.type)?f.ba.timescale=Xe.get(u.type):it!=null&&(f.ba.timescale=it),wt=u.stream.segmentIndex,wt instanceof Qi&&(Bt=t6e(wt,f.startTime)),Nt=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,L(Dt,o.g.Oh(u.type,St),5);case 5:return L(Dt,g6(o.g.Z,u.type,St,null,u.stream,Nt,u.bd,m,!1,!1,Bt),6);case 6:U(Dt,0);break;case 2:throw Tt=W(Dt),u.pb=null,Tt}})},ze=f.startTime,C&&(Ne=lv(o.g.Z,u.type),Ne!=null&&(ze=Ne)),o.g.Ck(ze,f.ba),A.push(be()))),Je=u.La?u.La.i:-1,f.i!=Je&&A.push(zSe(o.g.Z,u.type,f.startTime)),L(lt,Promise.all(A),0)}})}function lX(o,u,f,m,b,C,A,R){var N,V,G,Z,le;return te(function(he){switch(he.g){case 1:if(N=Zr,V=I6(o),j(he,2),u.qc=m,u.nc=b,A&&(u.hf=A),R&&(u.jf=R),u.kf=f,G=o.j.sequenceMode||o.j.type=="HLS",Z=null,u.type===N.Aa?Z=o.h.get(N.ka):u.type===N.ka&&(Z=o.h.get(N.Aa)),!(Z&&Z.stream&&Z.stream.isAudioMuxedInVideo)){he.A(4);break}return L(he,EY(o.g.Z,Z.type,f,m,b,G,Z.stream.mimeType,Z.stream.codecs,V),4);case 4:return L(he,EY(o.g.Z,u.type,f,m,b,G,C.mimeType||u.stream.mimeType,C.codecs||u.stream.codecs,V),6);case 6:U(he,0);break;case 2:throw le=W(he),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,le}})}function AL(o,u,f,m,b,C,A,R){A=A===void 0?!1:A,R=R===void 0?!1:R;var N,V,G,Z;return te(function(le){switch(le.g){case 1:return N=m.closedCaptions&&m.closedCaptions.size>0,o.i.shouldFixTimestampOffset&&(V=m.mimeType=="video/mp4"||m.mimeType=="audio/mp4",G=null,b.ba&&(G=b.ba.timescale),V&&G&&m.type==="video"&&o.j.type=="DASH"&&new hi().box("moof",lr).box("traf",lr).S("tfdt",function(he){var pe,ye,be,ze,Ne,Je;return te(function(lt){return pe=l6(he.reader,he.version),ye=pe.baseMediaDecodeTime,ye?(be=-ye/G,ze=Number(u.kf)||0,zeN&&(Z=Math.max(R-C,V-N-A)),Z<=N?le.return():L(le,o.g.Z.remove(u.type,A,A+Z,b),2));if(le.g!=4)return Ii(o.l),o.H?L(le,C6(o,o.H,f),4):le.A(0);Ii(o.l),B(le)})}function IL(o){return o&&o.type==Cn&&(o.stream.mimeType=="application/cea-608"||o.stream.mimeType=="application/cea-708")}function n2(o,u,f,m){var b,C,A,R,N;return te(function(V){switch(V.g){case 1:if(b=f.Yb())return V.return(b);if(C=null,u.ha){var G=u.ha,Z=G.g;f instanceof il&&(Z=G.j),Z.has(f)?(G=Z.get(f),m&&(G.wh=m),C=G.je):C=null}return C||(C=E6(f,u.stream,m||null,o.i.retryParameters,o.g.tc)),A=0,u.ua&&(A=u.ua.h),u.Va=C,L(V,C.promise,2);case 2:if(R=V.h,u.Va=null,N=R.data,!f.aesKey){V.A(3);break}return L(V,CL(N,f.aesKey,A),4);case 4:N=V.h;case 3:return V.return(N)}})}function E6(o,u,f,m,b,C){C=C===void 0?!1:C;var A=o instanceof Fn?o:void 0,R=A?1:0;return o=t2(o.P(),o.startByte,o.endByte,m,f),o.contentType=u.type,b.request(Vu,o,{type:R,stream:u,segment:A,isPreload:C})}function LL(o,u,f,m){var b,C;return te(function(A){if(A.g==1)return u.ec=!1,u.Kd=!1,u.ld=0,u.Ub=!0,u.La=null,u.ua=null,u.ha&&!o.m.has(u.stream)&&ld(u.ha),m?(b=o.g.lc(),C=o.g.Z.getDuration(),L(A,o.g.Z.remove(u.type,b+m,C),3)):L(A,CY(o.g.Z,u.type),4);if(A.g!=3)return Ii(o.l),f?L(A,o.g.Z.flush(u.type),3):A.A(3);Ii(o.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||ya(o,u,0),B(A)})}function ya(o,u,f){var m=u.type;(m!=Cn||o.h.has(m))&&(u.qb=new O3(function(){var b;return te(function(C){if(C.g==1)return j(C,2),L(C,b6e(o,u),4);if(C.g!=2)return U(C,0);b=W(C),o.g&&o.g.onError(b),B(C)})}).ia(f))}function Yf(o){o.qb!=null&&(o.qb.stop(),o.qb=null)}function T6(o){return te(function(u){return o.Va?L(u,o.Va.abort(),0):u.A(0)})}function DL(o,u,f){var m;return te(function(b){if(b.g==1)return f.code==3024?(u.Ja=!1,Yf(u),ya(o,u,0),b.return()):L(b,Iq(o.X),2);if(Ii(o.l),f.category===1&&f.code!=1003){if(u.Mc)return rX(o,!1),b.return();m=PL(o,f),f.handled=o.g.disableStream(u.stream,m),f.handled&&(f.severity=1)}(!f.handled||f.code!=1011)&&o.g.onError(f),f.handled||o.i.failureCallback(f),B(b)})}function PL(o,u){return o.i.maxDisabledTime===0&&u.code==1011?1:o.i.maxDisabledTime}function A6(o,u){u=u===void 0?!1:u;var f,m,b,C,A,R;return te(function(N){if(N.g==1){if(f=Date.now()/1e3,m=o.i.minTimeBetweenRecoveries,!u){if(!o.i.allowMediaSourceRecoveries||f-o.R1)return!0}else if(!u.Jf()){for(u=_(o.h.keys()),f=u.next();!f.done;f=u.next())if(f=o.h.get(f.value),f.type!==Zr.Na&&(f=f.stream)&&f.fullMimeTypes&&f.fullMimeTypes.size>1){for(o=new Set,u=_(f.fullMimeTypes),f=u.next();!f.done;f=u.next())o.add(L3(f.value));return o.size>1}}return!1}function uX(o){o.G.Pa(),r2(o)&&(o.G.D(o.g.video,"waiting",function(){return RL(o)}),o.G.D(o.g.video,"timeupdate",function(){return RL(o)}))}function RL(o){if(r2(o)){o.K.stop();var u=o.g.lc(),f=o.h.get("video")||o.h.get("audio");f&&(f=f.pb)&&f.g!==null&&(u=f.g-u,u<0||u>1||(o.I=f.g+.1,o.K.ia(u)))}}function C6e(o,u,f){if(u.type===Cn)return!1;var m=u.pb;if(!m)return!1;var b=f.ba;if(f=m.g!==b.g,o.i.crossBoundaryStrategy==="reset_to_encrypted"&&(m.encrypted||b.encrypted||(f=!1),m.encrypted&&(o.i.crossBoundaryStrategy="keep")),o.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&m.encrypted==b.encrypted&&(f=!1),o.i.crossBoundaryStrategy==="keep"&&m.mimeType&&b.mimeType){var C=Qs(rl(m.mimeType)),A=Qs(rl(m.mimeType));m.mimeType==b.mimeType&&C==A&&(f=!1)}return f&&(o.J||u.bd)&&(o.J=!1,A6(o,!0).then(function(){var R=new Map().set("oldEncrypted",m.encrypted).set("newEncrypted",b.encrypted);o.g.onEvent(new kn("boundarycrossed",R))})),f}function I6(o,u){function f(C){if(C.fullMimeTypes&&C.fullMimeTypes.size>1&&o.h.has(C.type)){var A=o.h.get(C.type),R=lv(o.g.Z,A.type),N=o.g.lc();(A=sX(o,A,N,R))&&A.codecs&&A.mimeType&&(C.codecs=A.codecs,C.mimeType=A.mimeType)}}u=u===void 0?!1:u;var m=new Map,b=o.o.audio;return b&&(f(b),m.set("audio",b)),(b=o.o.video)&&(f(b),m.set("video",b)),u&&o.B&&m.set(Cn,o.B),m}function L6(){}function ML(o,u,f,m,b){var C=b in m,A=C?f.constructor==Object&&Object.keys(m).length==0:f.constructor==Object&&Object.keys(f).length==0,R=C||A,N=!0,V;for(V in u){var G=b+"."+V,Z=C?m[b]:f[V];R||V in f?u[V]===void 0?Z===void 0||R?delete o[V]:o[V]=hn(Z):A?o[V]=u[V]:Z.constructor==Object&&u[V]&&u[V].constructor==Object?(o[V]||(o[V]=hn(Z)),G=ML(o[V],u[V],Z,m,G),N=N&&G):typeof u[V]!=typeof Z||u[V]==null||typeof u[V]!="function"&&u[V].constructor!=Z.constructor?(Ke("Invalid config, wrong type for "+G),N=!1):typeof f[V]=="function"&&f[V].length!=u[V].length?(at("Unexpected number of arguments for "+G),o[V]=u[V]):o[V]=Array.isArray(o[V])?u[V].slice():u[V]:(Ke("Invalid config, unrecognized key "+G),N=!1)}return N}function D6(o,u){for(var f={},m=f,b=0,C=0;b=o.indexOf(".",b),!(b<0);)(b==0||o[b-1]!="\\")&&(C=o.substring(C,b).replace(/\\\./g,"."),m[C]={},m=m[C],C=b+1),b+=1;return m[o.substring(C).replace(/\\\./g,".")]=u,f}function Og(o,u){return o&&u}function cX(o,u){function f(C){for(var A=_(Object.keys(C)),R=A.next();!R.done;R=A.next())if(R=R.value,!(C[R]instanceof HTMLElement))if(b(C[R])&&Object.keys(C[R]).length===0)delete C[R];else{var N=C[R];Array.isArray(N)&&N.length===0||typeof C[R]=="function"?delete C[R]:b(C[R])&&(f(C[R]),Object.keys(C[R]).length===0&&delete C[R])}}function m(C,A){return Object.keys(C).reduce(function(R,N){var V=C[N];return A.hasOwnProperty(N)?V instanceof HTMLElement&&A[N]instanceof HTMLElement?V.isEqualNode(A[N])||(R[N]=V):b(V)&&b(A[N])?(V=m(V,A[N]),(Object.keys(V).length>0||!b(V))&&(R[N]=V)):Array.isArray(V)&&Array.isArray(A[N])?rn(V,A[N])||(R[N]=V):Number.isNaN(V)&&Number.isNaN(A[N])||V!==A[N]&&(R[N]=V):R[N]=V,R},{})}function b(C){return C&&typeof C=="object"&&!Array.isArray(C)}return o=m(o,u),f(o),o}_e("shaka.util.ConfigUtils",L6),L6.getDifferenceFromConfigObjects=cX,L6.convertToConfigObject=D6,L6.mergeConfigObjects=ML,_e("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function ol(){}function dX(o){return o=Qt(o),new Yt(o).Db}function i2(o,u,f){function m(R){ot(C).setUint32(A,R.byteLength,!0),A+=4,C.set(Te(R),A),A+=R.byteLength}if(!f||!f.byteLength)throw new De(2,6,6015);var b;typeof u=="string"?b=pn(u,!0):b=u,o=Qt(o),o=pn(o,!0);var C=new Uint8Array(12+o.byteLength+b.byteLength+f.byteLength),A=0;return m(o),m(b),m(f),C}function OL(o,u,f){return u!=="skd"?o:(u=f.serverCertificate,f=Qt(o).split("skd://").pop(),i2(o,f,u))}function P6(o,u){o===2&&(o=u.drmInfo)&&ZS(o.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}_e("shaka.drm.FairPlay",ol),ol.commonFairPlayResponse=function(o,u){if(o===2&&(o=u.originalRequest.drmInfo)&&ZS(o.keySystem)){try{var f=ut(u.data)}catch{return}if(o=!1,f=f.trim(),f.substr(0,5)===""&&f.substr(-6)===""&&(f=f.slice(5,-6),o=!0),!o)try{var m=JSON.parse(f);m.ckc&&(f=m.ckc,o=!0),m.CkcMessage&&(f=m.CkcMessage,o=!0),m.License&&(f=m.License,o=!0)}catch{}o&&(u.data=we(fr(f)))}},ol.muxFairPlayRequest=function(o,u){P6(o,u)},ol.expressplayFairPlayRequest=function(o,u){if(o===2){var f=u.drmInfo;f&&ZS(f.keySystem)&&P6(o,u)}},ol.conaxFairPlayRequest=function(o,u){P6(o,u)},ol.ezdrmFairPlayRequest=function(o,u){P6(o,u)},ol.verimatrixFairPlayRequest=function(o,u){o===2&&(o=u.drmInfo)&&ZS(o.keySystem)&&(o=Te(u.body),o=Yn(o),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=Kt("spc="+o))},ol.muxInitDataTransform=function(o,u,f){return OL(o,u,f)},ol.expressplayInitDataTransform=function(o,u,f){return OL(o,u,f)},ol.conaxInitDataTransform=function(o,u,f){if(u!=="skd")return o;u=f.serverCertificate,f=Qt(o).split("skd://").pop().split("?").shift(),f=i.atob(f);var m=new ArrayBuffer(f.length*2);m=rt(m);for(var b=0,C=f.length;b2||b.channelsCount>2)&&m.channelsCount!=b.channelsCount||m.spatialAudio!==b.spatialAudio||u&&!fX(m,b))&&hX(m.roles,b.roles)&&m.groupId===b.groupId)}return!m&&(m=f.video&&o.video)&&(f=f.video,m=o.video,m=!((!u||fX(f,m))&&hX(f.roles,m.roles))),m?!1:(this.g.add(o),!0)},R6.prototype.values=function(){return this.g.values()};function fX(o,u){if(o.mimeType!=u.mimeType||(o=o.codecs.split(",").map(function(m){return lp(m)}),u=u.codecs.split(",").map(function(m){return lp(m)}),o.length!=u.length))return!1;o.sort(),u.sort();for(var f=0;fu)}).sort(function(f,m){return f.audio||m.audio?f.audio?m.audio?(m.audio.channelsCount||0)-(f.audio.channelsCount||0):1:-1:0})}function P6e(o,u){if(u=="AUTO"){var f=o.some(function(m){return!!(m.video&&m.video.hdr&&m.video.hdr=="HLG")});u=Le().sd(f)}return o.filter(function(m){return!(m.video&&m.video.hdr&&m.video.hdr!=u)})}function R6e(o,u){return o.filter(function(f){return!(f.video&&f.video.videoLayout&&f.video.videoLayout!=u)})}function M6e(o,u){return o.filter(function(f){return!(f.audio&&f.audio.spatialAudio!=u)})}function O6e(o,u){return o.filter(function(f){return!(f.audio&&f.audio.codecs!=u)})}function M6(){}function $g(){var o=1/0,u=Le();navigator.connection&&navigator.connection.saveData&&(o=360);var f={retryParameters:kc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(R,N,V){return i.shakaMediaKeysPolyfill==="apple"&&N=="skd"&&(N=V.serverCertificate,V=dX(R),R=i2(R,V,N)),R},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},m="reload";vc()&&u.Pc()&&(m="smooth");var b={retryParameters:kc(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,updatePeriod:-1,ignoreDrmInfo:!1,enableAudioGroups:!0,dash:{clockSyncUri:"",disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:O6,manifestPreprocessorTXml:$6,sequenceMode:!1,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:u.fd(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:O6,manifestPreprocessorTXml:$6,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},C={trackSelectionCallback:function(R){return te(function(N){return N.return(R)})},downloadSizeCallback:function(R){var N;return te(function(V){return V.g==1?navigator.storage&&navigator.storage.estimate?L(V,navigator.storage.estimate(),3):V.return(!0):(N=V.h,V.return(N.usage+R0?L(A,Promise.all(f),0):A.A(0)})}function Y6e(o){var u,f,m,b,C;return te(function(A){return!o.o&&(u=bX(o))&&(o.o=u),o.o?(f=o.h.presentationTimeline.W(),m=[],b=o.o,b.video&&m.push(FL(o,b.video,f)),b.audio&&m.push(FL(o,b.audio,f)),(C=vg(o.h.textStreams,o.g.preferredTextLanguage,o.g.preferredTextRole,o.g.preferForcedSubs)[0]||null)&&wq(b.audio,C,o.g)&&(m.push(FL(o,C,f)),o.T=C),L(A,Promise.all(m),0)):A.A(0)})}function bX(o){if(!o.u){var u=o.g.abrFactory;o.u=u(),o.u.configure(o.g.abr)}return u=qS(o.h.variants),u=o.C.create(u),o.u.setVariants(Array.from(u.values())),o.u.chooseVariant(!0)}function FL(o,u,f){var m,b,C,A,R;return te(function(N){return N.g==1?(m=o.g.streaming.segmentPrefetchLimit||2,b=new k6(m,u,function(V,G,Z){return E6(V,G,Z||null,o.g.streaming.retryParameters,o.Da,o.F)},!1),o.M.set(u.id,b),u.segmentIndex?N.A(2):L(N,u.createSegmentIndex(),2)):(C=typeof o.m=="number"?o.m:0,A=u.segmentIndex.Vb(C),R=null,A&&(R=A.current(),R||(R=A.next().value)),R||(R=ad(u.segmentIndex)),R?f?R.ba?L(N,JY(b,R.ba),0):N.A(0):L(N,Q3(b,R.startTime),0):N.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var o=this,u,f,m;return te(function(b){if(b.g==1)return o.j=!0,!o.l||o.qa?b.A(2):L(b,o.l.stop(),2);if(b.g!=4)return o.u&&o.u.release(),o.I&&!o.wa&&o.I.release(),!o.i||o.aa?b.A(4):L(b,o.i.destroy(),4);if(o.M.size>0&&!o.xa)for(u=_(o.M.values()),f=u.next();!f.done;f=u.next())m=f.value,ld(m);B(b)})};function _X(o){function u(f){return f.video&&f.audio||f.video&&f.video.codecs.includes(",")}o.variants.some(u)&&(o.variants=o.variants.filter(u))}_e("shaka.media.PreloadManager",Uu),Uu.prototype.destroy=Uu.prototype.destroy,Uu.prototype.waitForFinish=Uu.prototype.ll,Uu.prototype.getPrefetchedTextTrack=Uu.prototype.Qj,Uu.prototype.getPrefetchedVariantTrack=Uu.prototype.Rj;function cv(o,u){Qr.call(this);var f=this;this.i=o,this.l=u,this.g=new Map,this.m=[{kd:null,jd:Bg,Uc:function(m,b){return Zf(f,"enter",m,b)}},{kd:a2,jd:Bg,Uc:function(m,b){return Zf(f,"enter",m,b)}},{kd:l2,jd:Bg,Uc:function(m,b){return Zf(f,"enter",m,b)}},{kd:Bg,jd:a2,Uc:function(m,b){return Zf(f,"exit",m,b)}},{kd:Bg,jd:l2,Uc:function(m,b){return Zf(f,"exit",m,b)}},{kd:a2,jd:l2,Uc:function(m,b){b?Zf(f,"skip",m,b):(Zf(f,"enter",m,b),Zf(f,"exit",m,b))}},{kd:l2,jd:a2,Uc:function(m,b){return Zf(f,"skip",m,b)}}],this.h=new Oe,this.h.D(this.i,"regionremove",function(m){f.g.delete(m.region)})}x(cv,Qr),cv.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Qr.prototype.release.call(this)},cv.prototype.j=function(o,u){if(!this.l||o!=0){this.l=!1;for(var f=_(this.i.h.values()),m=f.next();!m.done;m=f.next()){m=m.value;var b=this.g.get(m),C=om.endTime?l2:Bg;this.g.set(m,C);for(var A=_(this.m),R=A.next();!R.done;R=A.next())R=R.value,R.kd==b&&R.jd==C&&R.Uc(m,u)}}};function Zf(o,u,f,m){u=new kn(u,new Map([["region",f],["seeking",m]])),o.dispatchEvent(u)}var a2=1,Bg=2,l2=3;function dv(o,u,f){var m,b,C,A,R,N,V;return te(function(G){switch(G.g){case 1:return m=Ng(o),(b=X6e.get(m))?G.return(b):(C=0,A=Vo([o],f),j(G,2),A.method="HEAD",L(G,u.request(C,A).promise,4));case 4:R=G.h,b=R.headers["content-type"],U(G,3);break;case 2:if(N=W(G),!N||N.code!=1002&&N.code!=1001){G.A(3);break}return A.method="GET",L(G,u.request(C,A).promise,6);case 6:V=G.h,b=V.headers["content-type"];case 3:return G.return(b?b.toLowerCase().split(";").shift():"")}})}function Ng(o){return o=new Yt(o).Sb.split("/").pop().split("."),o.length==1?"":o.pop().toLowerCase()}var X6e=new Map().set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv","text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");/* @license Copyright 2013 Ali Al Dallal @@ -455,45 +455,45 @@ Char: `+o[b]);b+1&&(b+=1);break}else if(o.charCodeAt(b+1)===33){if(o.charCodeAt( 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. - */for(var fp={ach:"Lwo",ady:"Адыгэбзэ",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"Tɕɥi",ar:"العربية","ar-AR":"العربية","ar-MA":"العربية","ar-SA":"العربية (السعودية)","ay-BO":"Aymar aru",az:"Azərbaycan dili","az-AZ":"Azərbaycan dili","be-BY":"Беларуская",bg:"Български","bg-BG":"Български",bn:"বাংলা","bn-IN":"বাংলা (ভারত)","bn-BD":"বাংলা(বাংলাদেশ)","bs-BA":"Bosanski",ca:"Català","ca-ES":"Català",cak:"Maya Kaqchikel","ck-US":"ᏣᎳᎩ (tsalagi)",cs:"Čeština","cs-CZ":"Čeština",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (Österreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserbšćina",el:"Ελληνικά","el-GR":"Ελληνικά",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)","en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Español","es-AR":"Español (Argentine)","es-419":"Español (Latinoamérica)","es-CL":"Español (Chile)","es-CO":"Español (Colombia)","es-EC":"Español (Ecuador)","es-ES":"Español (España)","es-LA":"Español (Latinoamérica)","es-NI":"Español (Nicaragua)","es-MX":"Español (México)","es-US":"Español (Estados Unidos)","es-VE":"Español (Venezuela)",et:"eesti keel","et-EE":"Eesti (Estonia)",eu:"Euskara","eu-ES":"Euskara",fa:"فارسی","fa-IR":"فارسی","fb-LT":"Leet Speak",ff:"Fulah",fi:"Suomi","fi-FI":"Suomi","fo-FO":"Føroyskt",fr:"Français","fr-CA":"Français (Canada)","fr-FR":"Français (France)","fr-BE":"Français (Belgique)","fr-CH":"Français (Suisse)","fy-NL":"Frysk",ga:"Gaeilge","ga-IE":"Gaeilge (Gaelic)",gl:"Galego","gl-ES":"Galego","gn-PY":"Avañe'ẽ","gu-IN":"ગુજરાતી","gx-GR":"Ἑλληνική ἀρχαία",he:"עברית‏","he-IL":"עברית‏",hi:"हिन्दी","hi-IN":"हिन्दी",hr:"Hrvatski","hr-HR":"Hrvatski",hsb:"Hornjoserbšćina",ht:"Kreyòl",hu:"Magyar","hu-HU":"Magyar","hy-AM":"Հայերեն",id:"Bahasa Indonesia","id-ID":"Bahasa Indonesia",is:"Íslenska","is-IS":"Íslenska (Iceland)",it:"Italiano","it-IT":"Italiano",ja:"日本語","ja-JP":"日本語","jv-ID":"Basa Jawa","ka-GE":"ქართული","kk-KZ":"Қазақша",km:"ភាសាខ្មែរ","km-KH":"ភាសាខ្មែរ",kab:"Taqbaylit",kn:"ಕನ್ನಡ","kn-IN":"ಕನ್ನಡ (India)",ko:"한국어","ko-KR":"한국어 (韩国)",ku:"Kurdî","ku-TR":"Kurdî",la:"Latin","la-VA":"Latin",lb:"Lëtzebuergesch","li-NL":"Lèmbörgs",lt:"Lietuvių","lt-LT":"Lietuvių",lv:"Latviešu","lv-LV":"Latviešu",mai:"मैथिली, মৈথিলী","mg-MG":"Malagasy",mk:"Македонски","mk-MK":"Македонски (Македонски)",ml:"മലയാളം","ml-IN":"മലയാളം","mn-MN":"Монгол",mr:"मराठी","mr-IN":"मराठी",ms:"Bahasa Melayu","ms-MY":"Bahasa Melayu",mt:"Malti","mt-MT":"Malti",my:"ဗမာစကာ",nb:"Norsk (bokmål)","nb-NO":"Norsk (bokmål)",ne:"नेपाली","ne-NP":"नेपाली",nl:"Nederlands","nl-BE":"Nederlands (België)","nl-NL":"Nederlands (Nederland)","nn-NO":"Norsk (nynorsk)",no:"Norsk",oc:"Occitan","or-IN":"ଓଡ଼ିଆ",pa:"ਪੰਜਾਬੀ","pa-IN":"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",pl:"Polski","pl-PL":"Polski","ps-AF":"پښتو",pt:"Português","pt-BR":"Português (Brasil)","pt-PT":"Português (Portugal)","qu-PE":"Qhichwa","rm-CH":"Rumantsch",ro:"Română","ro-RO":"Română",ru:"Русский","ru-RU":"Русский","sa-IN":"संस्कृतम्","se-NO":"Davvisámegiella","si-LK":"පළාත",sk:"Slovenčina","sk-SK":"Slovenčina (Slovakia)",sl:"Slovenščina","sl-SI":"Slovenščina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"Српски","sr-RS":"Српски (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili","sw-KE":"Kiswahili",ta:"தமிழ்","ta-IN":"தமிழ்",te:"తెలుగు","te-IN":"తెలుగు",tg:"забо́ни тоҷикӣ́","tg-TJ":"тоҷикӣ",th:"ภาษาไทย","th-TH":"ภาษาไทย (ประเทศไทย)",tl:"Filipino","tl-PH":"Filipino",tlh:"tlhIngan-Hol",tr:"Türkçe","tr-TR":"Türkçe","tt-RU":"татарча",uk:"Українська","uk-UA":"Українська",ur:"اردو","ur-PK":"اردو",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Tiếng Việt","vi-VN":"Tiếng Việt","xh-ZA":"isiXhosa",yi:"ייִדיש","yi-DE":"ייִדיש (German)",zh:"中文","zh-HANS":"中文简体","zh-HANT":"中文繁體","zh-CN":"中文(中国)","zh-HK":"中文(香港)","zh-SG":"中文(新加坡)","zh-TW":"中文(台灣)","zu-ZA":"isiZulu"},SX=_(Object.keys(fp)),NL=SX.next();!NL.done;NL=SX.next()){var kX=NL.value;fp[kX.toLowerCase()]=fp[kX]}function xX(o,u){if(o.lineBreak)return` -`;if(o.nestedCues.length)return o.nestedCues.map(function(A){return xX(A,o)}).join("");if(!o.payload)return o.payload;var f=[],m=o.fontWeight>=cg,b=o.fontStyle==dg,w=o.textDecoration.includes(Ff);return m&&f.push(["b"]),b&&f.push(["i"]),w&&f.push(["u"]),b=o.color,b==""&&u&&(b=u.color),m="",(b=CX(b))&&(m+="."+b),b=o.backgroundColor,b==""&&u&&(b=u.backgroundColor),(u=CX(b))&&(m+=".bg_"+u),m&&f.push(["c",m]),f.reduceRight(function(A,R){var N=_(R);return R=N.next().value,N=N.next().value,"<"+R+(N===void 0?"":N)+">"+A+""},o.payload)}function CX(o){o=o.toLowerCase();var u=o.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(u?o="#"+(parseInt(u[1],10)|256).toString(16).slice(1)+(parseInt(u[2],10)|256).toString(16).slice(1)+(parseInt(u[3],10)|256).toString(16).slice(1):o.startsWith("#")&&o.length>7&&(o=o.slice(0,7)),o){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function FL(o,u){var f=[];o=_(wX(o));for(var m=o.next();!m.done;m=o.next())if(m=m.value,m.isContainer)f.push.apply(f,T(FL(m.nestedCues,m)));else{var b=m.clone();b.nestedCues=[],b.payload=xX(m,u),f.push(b)}return f}function wX(o){var u=[];o=_(o);for(var f=o.next(),m={};!f.done;m={ig:void 0},f=o.next())m.ig=f.value,u.some((function(b){return function(w){return BS(b.ig,w)}})(m))||u.push(m.ig);return u}function Z6e(o){function u(m){for(var b=5381,w=m.length;w;)b=b*33^m.charCodeAt(--w);return(b>>>0).toString()}if(o.startTime>=o.endTime)return null;var f=new VTTCue(o.startTime,o.endTime,o.payload);f.id=u(o.startTime.toString())+u(o.endTime.toString())+u(o.payload),f.lineAlign=o.lineAlign,f.positionAlign=o.positionAlign,o.size&&(f.size=o.size);try{f.align=o.textAlign}catch{}return o.textAlign=="center"&&f.align!="center"&&(f.align="middle"),o.writingMode=="vertical-lr"?f.vertical="lr":o.writingMode=="vertical-rl"&&(f.vertical="rl"),o.lineInterpretation==1&&(f.snapToLines=!1),o.line!=null&&(f.line=o.line),o.position!=null&&(f.position=o.position),f}function EX(o,u){var f=FL(u),m=[];u=o.cues?Array.from(o.cues):[],f=_(f);for(var b=f.next(),w={};!b.done;w={vd:void 0},b=f.next())w.vd=b.value,!u.some((function(A){return function(R){return R.startTime==A.vd.startTime&&R.endTime==A.vd.endTime&&R.text==A.vd.payload}})(w))&&w.vd.payload&&(b=Z6e(w.vd))&&m.push(b);for(u=m.slice().sort(function(A,R){return A.startTime!=R.startTime?A.startTime-R.startTime:A.endTime!=R.endTime?A.endTime-R.startTime:"line"in VTTCue.prototype?m.indexOf(R)-m.indexOf(A):m.indexOf(A)-m.indexOf(R)}),u=_(u),f=u.next();!f.done;f=u.next())o.addCue(f.value)}function jL(o,u){var f=!1;o.mode==="disabled"&&(f=!0,o.mode="hidden");for(var m=0;m-1&&(f.has(u.g)?(m=f.get(u.g).track,m.mode==="disabled"&&(m.mode=u.u?"showing":"hidden")):u.g=-1),u.h=f},this.B=function(){if(!u.o){var f=u.j;u.o=new mr(function(){if(u.o=null,u.j===f){var m=-1,b=!1;if(u.h.has(u.g)){var w=u.h.get(u.g);w.track.mode==="showing"?(m=u.g,b=!0):w.track.mode==="hidden"&&(m=u.g)}if(!b)for(b=_(u.h),w=b.next();!w.done;w=b.next()){var A=_(w.value);if(w=A.next().value,A=A.next().value,A.track.mode==="showing"){m=w;break}else m<0&&A.track.mode==="hidden"&&(m=w)}for(b=_(u.h),w=b.next();!w.done;w=b.next())A=_(w.value),w=A.next().value,A=A.next().value,w!==m&&A.track.mode!=="disabled"&&(A.track.mode="disabled");u.g!==m&&(u.g=m,m>-1&&u.i.kh({id:m})),u.i.qh(m>-1&&u.h.get(m).track.mode==="showing")}}).ia(0)}},this.l.D(o,"loaded",function(){return u.enableTextDisplayer()}),this.enableTextDisplayer()}l=rs.prototype,l.configure=function(){},l.remove=function(o,u){if(this.i)this.h.has(this.g)&&jL(this.h.get(this.g).track,function(f){return f.startTimeo});else return!1;return!0},l.append=function(o){this.h.has(this.g)&&EX(this.h.get(this.g).track,o)},l.destroy=function(){return this.i&&(this.j&&this.C(),this.i=null),this.l&&(this.l.release(),this.l=null),Promise.resolve()},l.isTextVisible=function(){return this.u},l.setTextVisibility=function(o){if(this.u=o,this.h.has(this.g)){var u=this.h.get(this.g).track;u.mode!=="disabled"&&(o=o?"showing":"hidden",u.mode!==o&&(u.mode=o))}else if(this.i&&this.i.m===3)if(u=Array.from(this.i.h.textTracks).filter(function(m){return["captions","subtitles","forced"].includes(m.kind)}),o){o=null,u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value,f.mode==="showing"){o=null;break}else o||f.mode!=="hidden"||(o=f);o&&(o.mode="showing")}else for(o=_(u),u=o.next();!u.done;u=o.next())u=u.value,u.mode==="showing"&&(u.mode="hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){!this.j&&this.i&&this.i.m===2&&(this.j=this.i.h,this.l.Ba(this.i,"unloading",this.C),this.l.D(this.i,"textchanged",this.m),this.l.D(this.j.textTracks,"change",this.B),this.m())};function J6e(o){var u=Le();return o.forced&&u.Ha()==="WEBKIT"?"forced":o.kind==="caption"||o.roles&&o.roles.some(function(f){return f.includes("transcribes-spoken-dialog")})&&o.roles.some(function(f){return f.includes("describes-music-and-sound")})?"captions":"subtitles"}_e("shaka.text.NativeTextDisplayer",rs),rs.prototype.enableTextDisplayer=rs.prototype.enableTextDisplayer,rs.prototype.setTextLanguage=rs.prototype.setTextLanguage,rs.prototype.setTextVisibility=rs.prototype.setTextVisibility,rs.prototype.isTextVisible=rs.prototype.isTextVisible,rs.prototype.destroy=rs.prototype.destroy,rs.prototype.append=rs.prototype.append,rs.prototype.remove=rs.prototype.remove,rs.prototype.configure=rs.prototype.configure;function ea(o,u){for(Xt("SimpleTextDisplayer","Please migrate to NativeTextDisplayer"),this.h=o,this.i=u,this.g=null,o=_(Array.from(this.h.textTracks)),u=o.next();!u.done;u=o.next())u=u.value,u.kind!=="metadata"&&u.kind!=="chapters"&&(u.mode="disabled",u.label==this.i&&(this.g=u));this.g&&(this.g.mode="hidden")}l=ea.prototype,l.configure=function(){},l.remove=function(o,u){return this.g?(jL(this.g,function(f){return f.startTimeo}),!0):!1},l.append=function(o){this.g&&EX(this.g,o)},l.destroy=function(){return this.g&&(jL(this.g,function(){return!0}),this.g.mode="disabled"),this.g=this.h=null,Promise.resolve()},l.isTextVisible=function(){return this.g?this.g.mode=="showing":!1},l.setTextVisibility=function(o){o&&!this.g&&TX(this),this.g&&(this.g.mode=o?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){TX(this)};function TX(o){o.h&&!o.g&&(o.g=o.h.addTextTrack("subtitles",o.i),o.g.mode="hidden")}_e("shaka.text.SimpleTextDisplayer",ea),ea.prototype.enableTextDisplayer=ea.prototype.enableTextDisplayer,ea.prototype.setTextLanguage=ea.prototype.setTextLanguage,ea.prototype.setTextVisibility=ea.prototype.setTextVisibility,ea.prototype.isTextVisible=ea.prototype.isTextVisible,ea.prototype.destroy=ea.prototype.destroy,ea.prototype.append=ea.prototype.append,ea.prototype.remove=ea.prototype.remove,ea.prototype.configure=ea.prototype.configure;function ta(){}l=ta.prototype,l.configure=function(){},l.remove=function(){},l.append=function(){},l.destroy=function(){},l.isTextVisible=function(){return!1},l.setTextVisibility=function(){},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){},_e("shaka.text.StubTextDisplayer",ta),ta.prototype.enableTextDisplayer=ta.prototype.enableTextDisplayer,ta.prototype.setTextLanguage=ta.prototype.setTextLanguage,ta.prototype.setTextVisibility=ta.prototype.setTextVisibility,ta.prototype.isTextVisible=ta.prototype.isTextVisible,ta.prototype.destroy=ta.prototype.destroy,ta.prototype.append=ta.prototype.append,ta.prototype.remove=ta.prototype.remove,ta.prototype.configure=ta.prototype.configure;function na(o,u){var f=this;this.m=!1,this.h=[],this.j=o,this.o=u,this.C=this.u=null,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.B=new mr(function(){f.j.paused||hp(f)}),u2(this),this.l=new Map,this.i=new Me,this.i.D(document,"fullscreenchange",function(){hp(f,!0)}),this.i.D(this.j,"seeking",function(){hp(f,!0)}),this.i.D(this.j,"ratechange",function(){u2(f)}),this.i.D(this.j,"resize",function(){var m=f.j,b=m.videoWidth;m=m.videoHeight,b&&m?f.u=b/m:f.u=null}),this.F=null,"ResizeObserver"in i&&(this.F=new ResizeObserver(function(){hp(f,!0)}),this.F.observe(this.g)),this.G=new Map}l=na.prototype,l.configure=function(o){this.C=o,u2(this),hp(this,!0)},l.append=function(o){var u=[].concat(T(this.h));o=_(wX(o));for(var f=o.next(),m={};!f.done;m={jg:void 0},f=o.next())m.jg=f.value,u.some((function(b){return function(w){return BS(w,b.jg)}})(m))||this.h.push(m.jg);this.h.length&&u2(this),hp(this)},l.destroy=function(){return this.g&&(this.g.parentElement&&this.o.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.B&&(this.B.stop(),this.B=null),this.l.clear(),this.i&&(this.i.release(),this.i=null),this.F&&(this.F.disconnect(),this.F=null)),Promise.resolve()},l.remove=function(o,u){if(!this.g)return!1;var f=this.h.length;return this.h=this.h.filter(function(m){return m.startTime=u}),hp(this,f>this.h.length),this.h.length||u2(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(o){(this.m=o)?(this.g.parentElement||this.o.appendChild(this.g),hp(this,!0)):this.g.parentElement&&this.o.removeChild(this.g)},l.setTextLanguage=function(o){o&&o!="und"?this.g.setAttribute("lang",o):this.g.setAttribute("lang","")},l.enableTextDisplayer=function(){};function u2(o){o.B&&(o.h.length?o.B.Ea((o.C?o.C.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(o.j.playbackRate))):o.B.stop())}function Q6e(o,u){for(;u!=null;){if(u==o.g)return!0;u=u.parentElement}return!1}function AX(o,u,f,m,b){var w=!1,A=[],R=[];u=_(u);for(var N=u.next();!N.done;N=u.next()){N=N.value,b.push(N);var V=o.l.get(N),G=N.startTime<=m&&N.endTime>m,Z=V?V.gj:null;V&&(A.push(V.kg),V.$c&&A.push(V.$c),G||(w=!0,o.l.delete(N),V=null)),G&&(R.push(N),V?Q6e(o,Z)||(w=!0):(eke(o,N,b),V=o.l.get(N),Z=V.gj,w=!0)),N.nestedCues.length>0&&Z&&AX(o,N.nestedCues,Z,m,b),b.pop()}if(w){for(m=_(A),b=m.next();!b.done;b=m.next())b=b.value,b.parentElement&&b.parentElement.removeChild(b);for(R.sort(function(le,he){return le.startTime!=he.startTime?le.startTime-he.startTime:le.endTime-he.endTime}),R=_(R),m=R.next();!m.done;m=R.next())m=o.l.get(m.value),m.$c?(m.$c.contains(f)&&m.$c.removeChild(f),f.appendChild(m.$c),m.$c.appendChild(m.kg)):f.appendChild(m.kg)}}function hp(o,u){if(o.g){var f=o.j.currentTime;if(!o.m||u!==void 0&&u){u=_(o.G.values());for(var m=u.next();!m.done;m=u.next())q3(m.value);q3(o.g),o.l.clear(),o.G.clear()}o.m&&AX(o,o.h,o.g,f,[])}}function eke(o,u,f){var m=f.length>1,b=m?"span":"div";u.lineBreak&&(b="br"),u.rubyTag&&(b=u.rubyTag),m=!m&&u.nestedCues.length>0;var w=document.createElement(b);if(b!="br"&&nke(o,w,u,f,m),f=null,u.region&&u.region.id){var A=u.region,R=o.u===4/3?2.5:1.9;if(f=A.id+"_"+A.width+"x"+A.height+(A.heightUnits==Es?"%":"px")+"-"+A.viewportAnchorX+"x"+A.viewportAnchorY+(A.viewportAnchorUnits==Es?"%":"px"),o.G.has(f))f=o.G.get(f);else{b=document.createElement("span");var N=A.heightUnits==Es?"%":"px",V=A.widthUnits==Es?"%":"px",G=A.viewportAnchorUnits==Es?"%":"px";b.id="shaka-text-region---"+f,b.classList.add("shaka-text-region"),b.style.position="absolute";var Z=A.height,le=A.width;A.heightUnits===2&&(Z=A.height*5.33,N="%"),A.widthUnits===2&&(le=A.width*R,V="%"),b.style.height=Z+N,b.style.width=le+V,A.viewportAnchorUnits===2?(R=A.viewportAnchorY/75*100,N=A.viewportAnchorX/(o.u===4/3?160:210)*100,R-=A.regionAnchorY*Z/100,N-=A.regionAnchorX*le/100,b.style.top=R+"%",b.style.left=N+"%"):(b.style.top=A.viewportAnchorY-A.regionAnchorY*Z/100+G,b.style.left=A.viewportAnchorX-A.regionAnchorX*le/100+G),A.heightUnits!==0&&A.widthUnits!==0&&A.viewportAnchorUnits!==0&&(A=Math.max(0,Math.min(100-(parseInt(b.style.width.slice(0,-1),10)||0),parseInt(b.style.left.slice(0,-1),10)||0)),b.style.top=Math.max(0,Math.min(100-(parseInt(b.style.height.slice(0,-1),10)||0),parseInt(b.style.top.slice(0,-1),10)||0))+"%",b.style.left=A+"%"),b.style.display="flex",b.style.flexDirection="column",b.style.alignItems="center",b.style.justifyContent=u.displayAlign=="before"?"flex-start":u.displayAlign=="center"?"center":"flex-end",o.G.set(f,b),f=b}}b=w,m&&(b=document.createElement("span"),b.classList.add("shaka-text-wrapper"),b.style.backgroundColor=u.backgroundColor,b.style.lineHeight="normal",w.appendChild(b)),o.l.set(u,{kg:w,gj:b,$c:f})}function tke(o){var u=o.direction,f=o.positionAlign;return o=o.textAlign,f!==FS?f:o==="left"||o==="start"&&u===A3||o==="end"&&u==="rtl"?"line-left":o==="right"||o==="start"&&u==="rtl"||o==="end"&&u===A3?"line-right":"center"}function nke(o,u,f,m,b){var w=u.style,A=f.nestedCues.length==0,R=m.length>1;w.whiteSpace="pre-wrap";var N=f.payload.replace(/\s+$/g,function(G){return" ".repeat(G.length)});if(w.webkitTextStrokeColor=f.textStrokeColor,w.webkitTextStrokeWidth=f.textStrokeWidth,w.color=f.color,w.direction=f.direction,w.opacity=f.opacity,w.paddingLeft=VL(f.linePadding,f,o.o),w.paddingRight=VL(f.linePadding,f,o.o),w.textCombineUpright=f.textCombineUpright,w.textShadow=f.textShadow,f.backgroundImage)w.backgroundImage="url('"+f.backgroundImage+"')",w.backgroundRepeat="no-repeat",w.backgroundSize="contain",w.backgroundPosition="center",f.backgroundColor&&(w.backgroundColor=f.backgroundColor),w.width="100%",w.height="100%";else{if(f.nestedCues.length)var V=u;else V=document.createElement("span"),u.appendChild(V);f.border&&(V.style.border=f.border),b||((u=rke(m,function(G){return G.backgroundColor}))?V.style.backgroundColor=u:N&&(V.style.backgroundColor="rgba(0, 0, 0, 0.8)")),N&&(V.setAttribute("translate","no"),V.textContent=N)}R&&!m[m.length-1].isContainer?w.display="inline":(w.display="flex",w.flexDirection="column",w.alignItems="center",f.textAlign=="left"||f.textAlign=="start"?(w.width="100%",w.alignItems="start"):(f.textAlign=="right"||f.textAlign=="end")&&(w.width="100%",w.alignItems="end"),w.justifyContent=f.displayAlign=="before"?"flex-start":f.displayAlign=="center"?"center":"flex-end"),A||(w.margin="0"),w.fontFamily=f.fontFamily,w.fontWeight=f.fontWeight.toString(),w.fontStyle=f.fontStyle,w.letterSpacing=f.letterSpacing,m=o.C?o.C.fontScaleFactor:1,(m!==1||f.fontSize)&&(w.fontSize=VL(f.fontSize||"1em",f,o.o,m)),m=f.line,m!=null&&(A=f.lineInterpretation,A==I3&&(A=1,R=16,o.u&&o.u<1&&(R=32),m=m<0?100+m/R*100:m/R*100),A==1&&(w.position="absolute",f.writingMode==G0?(w.width="100%",f.lineAlign==K0?w.top=m+"%":f.lineAlign=="end"&&(w.bottom=100-m+"%")):f.writingMode=="vertical-lr"?(w.height="100%",f.lineAlign==K0?w.left=m+"%":f.lineAlign=="end"&&(w.right=100-m+"%")):(w.height="100%",f.lineAlign==K0?w.right=m+"%":f.lineAlign=="end"&&(w.left=100-m+"%")))),w.lineHeight=f.lineHeight,o=tke(f),o=="line-left"?(w.cssFloat="left",f.position!==null&&(w.position="absolute",f.writingMode==G0?(w.left=f.position+"%",w.width="auto"):w.top=f.position+"%")):o=="line-right"?(w.cssFloat="right",f.position!==null&&(w.position="absolute",f.writingMode==G0?(w.right=100-f.position+"%",w.width="auto"):w.bottom=f.position+"%")):f.position!==null&&f.position!=50&&(w.position="absolute",f.writingMode==G0?(w.left=f.position+"%",w.width="auto"):w.top=f.position+"%",f.size&&(w.transform="translateX(-50%)")),w.textAlign=f.textAlign,w.textDecoration=f.textDecoration.join(" "),w.writingMode=f.writingMode,"writingMode"in document.documentElement.style&&w.writingMode==f.writingMode||(w.webkitWritingMode=f.writingMode),f.size&&(f.writingMode==G0?w.width=f.size+"%":w.height=f.size+"%")}function VL(o,u,f,m){m=m===void 0?1:m;var b=(b=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(o))?{value:Number(b[1]),unit:b[2]}:null;if(!b)return o;switch(o=b.unit,m*=b.value,o){case"%":return m/100*f.clientHeight/u.cellResolution.rows+"px";case"c":return f.clientHeight*m/u.cellResolution.rows+"px";default:return m+o}}function rke(o,u){for(var f=o.length-1;f>=0;f--){var m=u(o[f]);if(m||m===0)return m}return null}_e("shaka.text.UITextDisplayer",na),na.prototype.enableTextDisplayer=na.prototype.enableTextDisplayer,na.prototype.setTextLanguage=na.prototype.setTextLanguage,na.prototype.setTextVisibility=na.prototype.setTextVisibility,na.prototype.isTextVisible=na.prototype.isTextVisible,na.prototype.remove=na.prototype.remove,na.prototype.destroy=na.prototype.destroy,na.prototype.append=na.prototype.append,na.prototype.configure=na.prototype.configure;function ike(o,u){function f(w){for(var A=w,R=_(u),N=R.next();!N.done;N=R.next())N=N.value,N.end&&N.start=dg,b=o.fontStyle==fg,C=o.textDecoration.includes(Ff);return m&&f.push(["b"]),b&&f.push(["i"]),C&&f.push(["u"]),b=o.color,b==""&&u&&(b=u.color),m="",(b=xX(b))&&(m+="."+b),b=o.backgroundColor,b==""&&u&&(b=u.backgroundColor),(u=xX(b))&&(m+=".bg_"+u),m&&f.push(["c",m]),f.reduceRight(function(A,R){var N=_(R);return R=N.next().value,N=N.next().value,"<"+R+(N===void 0?"":N)+">"+A+""},o.payload)}function xX(o){o=o.toLowerCase();var u=o.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(u?o="#"+(parseInt(u[1],10)|256).toString(16).slice(1)+(parseInt(u[2],10)|256).toString(16).slice(1)+(parseInt(u[3],10)|256).toString(16).slice(1):o.startsWith("#")&&o.length>7&&(o=o.slice(0,7)),o){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function VL(o,u){var f=[];o=_(CX(o));for(var m=o.next();!m.done;m=o.next())if(m=m.value,m.isContainer)f.push.apply(f,T(VL(m.nestedCues,m)));else{var b=m.clone();b.nestedCues=[],b.payload=wX(m,u),f.push(b)}return f}function CX(o){var u=[];o=_(o);for(var f=o.next(),m={};!f.done;m={ig:void 0},f=o.next())m.ig=f.value,u.some((function(b){return function(C){return NS(b.ig,C)}})(m))||u.push(m.ig);return u}function Z6e(o){function u(m){for(var b=5381,C=m.length;C;)b=b*33^m.charCodeAt(--C);return(b>>>0).toString()}if(o.startTime>=o.endTime)return null;var f=new VTTCue(o.startTime,o.endTime,o.payload);f.id=u(o.startTime.toString())+u(o.endTime.toString())+u(o.payload),f.lineAlign=o.lineAlign,f.positionAlign=o.positionAlign,o.size&&(f.size=o.size);try{f.align=o.textAlign}catch{}return o.textAlign=="center"&&f.align!="center"&&(f.align="middle"),o.writingMode=="vertical-lr"?f.vertical="lr":o.writingMode=="vertical-rl"&&(f.vertical="rl"),o.lineInterpretation==1&&(f.snapToLines=!1),o.line!=null&&(f.line=o.line),o.position!=null&&(f.position=o.position),f}function EX(o,u){var f=VL(u),m=[];u=o.cues?Array.from(o.cues):[],f=_(f);for(var b=f.next(),C={};!b.done;C={vd:void 0},b=f.next())C.vd=b.value,!u.some((function(A){return function(R){return R.startTime==A.vd.startTime&&R.endTime==A.vd.endTime&&R.text==A.vd.payload}})(C))&&C.vd.payload&&(b=Z6e(C.vd))&&m.push(b);for(u=m.slice().sort(function(A,R){return A.startTime!=R.startTime?A.startTime-R.startTime:A.endTime!=R.endTime?A.endTime-R.startTime:"line"in VTTCue.prototype?m.indexOf(R)-m.indexOf(A):m.indexOf(A)-m.indexOf(R)}),u=_(u),f=u.next();!f.done;f=u.next())o.addCue(f.value)}function zL(o,u){var f=!1;o.mode==="disabled"&&(f=!0,o.mode="hidden");for(var m=0;m-1&&(f.has(u.g)?(m=f.get(u.g).track,m.mode==="disabled"&&(m.mode=u.u?"showing":"hidden")):u.g=-1),u.h=f},this.B=function(){if(!u.o){var f=u.j;u.o=new mr(function(){if(u.o=null,u.j===f){var m=-1,b=!1;if(u.h.has(u.g)){var C=u.h.get(u.g);C.track.mode==="showing"?(m=u.g,b=!0):C.track.mode==="hidden"&&(m=u.g)}if(!b)for(b=_(u.h),C=b.next();!C.done;C=b.next()){var A=_(C.value);if(C=A.next().value,A=A.next().value,A.track.mode==="showing"){m=C;break}else m<0&&A.track.mode==="hidden"&&(m=C)}for(b=_(u.h),C=b.next();!C.done;C=b.next())A=_(C.value),C=A.next().value,A=A.next().value,C!==m&&A.track.mode!=="disabled"&&(A.track.mode="disabled");u.g!==m&&(u.g=m,m>-1&&u.i.kh({id:m})),u.i.qh(m>-1&&u.h.get(m).track.mode==="showing")}}).ia(0)}},this.l.D(o,"loaded",function(){return u.enableTextDisplayer()}),this.enableTextDisplayer()}l=os.prototype,l.configure=function(){},l.remove=function(o,u){if(this.i)this.h.has(this.g)&&zL(this.h.get(this.g).track,function(f){return f.startTimeo});else return!1;return!0},l.append=function(o){this.h.has(this.g)&&EX(this.h.get(this.g).track,o)},l.destroy=function(){return this.i&&(this.j&&this.C(),this.i=null),this.l&&(this.l.release(),this.l=null),Promise.resolve()},l.isTextVisible=function(){return this.u},l.setTextVisibility=function(o){if(this.u=o,this.h.has(this.g)){var u=this.h.get(this.g).track;u.mode!=="disabled"&&(o=o?"showing":"hidden",u.mode!==o&&(u.mode=o))}else if(this.i&&this.i.m===3)if(u=Array.from(this.i.h.textTracks).filter(function(m){return["captions","subtitles","forced"].includes(m.kind)}),o){o=null,u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value,f.mode==="showing"){o=null;break}else o||f.mode!=="hidden"||(o=f);o&&(o.mode="showing")}else for(o=_(u),u=o.next();!u.done;u=o.next())u=u.value,u.mode==="showing"&&(u.mode="hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){!this.j&&this.i&&this.i.m===2&&(this.j=this.i.h,this.l.Ba(this.i,"unloading",this.C),this.l.D(this.i,"textchanged",this.m),this.l.D(this.j.textTracks,"change",this.B),this.m())};function J6e(o){var u=Le();return o.forced&&u.Ha()==="WEBKIT"?"forced":o.kind==="caption"||o.roles&&o.roles.some(function(f){return f.includes("transcribes-spoken-dialog")})&&o.roles.some(function(f){return f.includes("describes-music-and-sound")})?"captions":"subtitles"}_e("shaka.text.NativeTextDisplayer",os),os.prototype.enableTextDisplayer=os.prototype.enableTextDisplayer,os.prototype.setTextLanguage=os.prototype.setTextLanguage,os.prototype.setTextVisibility=os.prototype.setTextVisibility,os.prototype.isTextVisible=os.prototype.isTextVisible,os.prototype.destroy=os.prototype.destroy,os.prototype.append=os.prototype.append,os.prototype.remove=os.prototype.remove,os.prototype.configure=os.prototype.configure;function ea(o,u){for(Xt("SimpleTextDisplayer","Please migrate to NativeTextDisplayer"),this.h=o,this.i=u,this.g=null,o=_(Array.from(this.h.textTracks)),u=o.next();!u.done;u=o.next())u=u.value,u.kind!=="metadata"&&u.kind!=="chapters"&&(u.mode="disabled",u.label==this.i&&(this.g=u));this.g&&(this.g.mode="hidden")}l=ea.prototype,l.configure=function(){},l.remove=function(o,u){return this.g?(zL(this.g,function(f){return f.startTimeo}),!0):!1},l.append=function(o){this.g&&EX(this.g,o)},l.destroy=function(){return this.g&&(zL(this.g,function(){return!0}),this.g.mode="disabled"),this.g=this.h=null,Promise.resolve()},l.isTextVisible=function(){return this.g?this.g.mode=="showing":!1},l.setTextVisibility=function(o){o&&!this.g&&TX(this),this.g&&(this.g.mode=o?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){TX(this)};function TX(o){o.h&&!o.g&&(o.g=o.h.addTextTrack("subtitles",o.i),o.g.mode="hidden")}_e("shaka.text.SimpleTextDisplayer",ea),ea.prototype.enableTextDisplayer=ea.prototype.enableTextDisplayer,ea.prototype.setTextLanguage=ea.prototype.setTextLanguage,ea.prototype.setTextVisibility=ea.prototype.setTextVisibility,ea.prototype.isTextVisible=ea.prototype.isTextVisible,ea.prototype.destroy=ea.prototype.destroy,ea.prototype.append=ea.prototype.append,ea.prototype.remove=ea.prototype.remove,ea.prototype.configure=ea.prototype.configure;function ta(){}l=ta.prototype,l.configure=function(){},l.remove=function(){},l.append=function(){},l.destroy=function(){},l.isTextVisible=function(){return!1},l.setTextVisibility=function(){},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){},_e("shaka.text.StubTextDisplayer",ta),ta.prototype.enableTextDisplayer=ta.prototype.enableTextDisplayer,ta.prototype.setTextLanguage=ta.prototype.setTextLanguage,ta.prototype.setTextVisibility=ta.prototype.setTextVisibility,ta.prototype.isTextVisible=ta.prototype.isTextVisible,ta.prototype.destroy=ta.prototype.destroy,ta.prototype.append=ta.prototype.append,ta.prototype.remove=ta.prototype.remove,ta.prototype.configure=ta.prototype.configure;function na(o,u){var f=this;this.m=!1,this.h=[],this.j=o,this.o=u,this.C=this.u=null,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.B=new mr(function(){f.j.paused||vp(f)}),u2(this),this.l=new Map,this.i=new Oe,this.i.D(document,"fullscreenchange",function(){vp(f,!0)}),this.i.D(this.j,"seeking",function(){vp(f,!0)}),this.i.D(this.j,"ratechange",function(){u2(f)}),this.i.D(this.j,"resize",function(){var m=f.j,b=m.videoWidth;m=m.videoHeight,b&&m?f.u=b/m:f.u=null}),this.F=null,"ResizeObserver"in i&&(this.F=new ResizeObserver(function(){vp(f,!0)}),this.F.observe(this.g)),this.G=new Map}l=na.prototype,l.configure=function(o){this.C=o,u2(this),vp(this,!0)},l.append=function(o){var u=[].concat(T(this.h));o=_(CX(o));for(var f=o.next(),m={};!f.done;m={jg:void 0},f=o.next())m.jg=f.value,u.some((function(b){return function(C){return NS(C,b.jg)}})(m))||this.h.push(m.jg);this.h.length&&u2(this),vp(this)},l.destroy=function(){return this.g&&(this.g.parentElement&&this.o.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.B&&(this.B.stop(),this.B=null),this.l.clear(),this.i&&(this.i.release(),this.i=null),this.F&&(this.F.disconnect(),this.F=null)),Promise.resolve()},l.remove=function(o,u){if(!this.g)return!1;var f=this.h.length;return this.h=this.h.filter(function(m){return m.startTime=u}),vp(this,f>this.h.length),this.h.length||u2(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(o){(this.m=o)?(this.g.parentElement||this.o.appendChild(this.g),vp(this,!0)):this.g.parentElement&&this.o.removeChild(this.g)},l.setTextLanguage=function(o){o&&o!="und"?this.g.setAttribute("lang",o):this.g.setAttribute("lang","")},l.enableTextDisplayer=function(){};function u2(o){o.B&&(o.h.length?o.B.Ea((o.C?o.C.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(o.j.playbackRate))):o.B.stop())}function Q6e(o,u){for(;u!=null;){if(u==o.g)return!0;u=u.parentElement}return!1}function AX(o,u,f,m,b){var C=!1,A=[],R=[];u=_(u);for(var N=u.next();!N.done;N=u.next()){N=N.value,b.push(N);var V=o.l.get(N),G=N.startTime<=m&&N.endTime>m,Z=V?V.gj:null;V&&(A.push(V.kg),V.$c&&A.push(V.$c),G||(C=!0,o.l.delete(N),V=null)),G&&(R.push(N),V?Q6e(o,Z)||(C=!0):(eke(o,N,b),V=o.l.get(N),Z=V.gj,C=!0)),N.nestedCues.length>0&&Z&&AX(o,N.nestedCues,Z,m,b),b.pop()}if(C){for(m=_(A),b=m.next();!b.done;b=m.next())b=b.value,b.parentElement&&b.parentElement.removeChild(b);for(R.sort(function(le,he){return le.startTime!=he.startTime?le.startTime-he.startTime:le.endTime-he.endTime}),R=_(R),m=R.next();!m.done;m=R.next())m=o.l.get(m.value),m.$c?(m.$c.contains(f)&&m.$c.removeChild(f),f.appendChild(m.$c),m.$c.appendChild(m.kg)):f.appendChild(m.kg)}}function vp(o,u){if(o.g){var f=o.j.currentTime;if(!o.m||u!==void 0&&u){u=_(o.G.values());for(var m=u.next();!m.done;m=u.next())q3(m.value);q3(o.g),o.l.clear(),o.G.clear()}o.m&&AX(o,o.h,o.g,f,[])}}function eke(o,u,f){var m=f.length>1,b=m?"span":"div";u.lineBreak&&(b="br"),u.rubyTag&&(b=u.rubyTag),m=!m&&u.nestedCues.length>0;var C=document.createElement(b);if(b!="br"&&nke(o,C,u,f,m),f=null,u.region&&u.region.id){var A=u.region,R=o.u===4/3?2.5:1.9;if(f=A.id+"_"+A.width+"x"+A.height+(A.heightUnits==Ts?"%":"px")+"-"+A.viewportAnchorX+"x"+A.viewportAnchorY+(A.viewportAnchorUnits==Ts?"%":"px"),o.G.has(f))f=o.G.get(f);else{b=document.createElement("span");var N=A.heightUnits==Ts?"%":"px",V=A.widthUnits==Ts?"%":"px",G=A.viewportAnchorUnits==Ts?"%":"px";b.id="shaka-text-region---"+f,b.classList.add("shaka-text-region"),b.style.position="absolute";var Z=A.height,le=A.width;A.heightUnits===2&&(Z=A.height*5.33,N="%"),A.widthUnits===2&&(le=A.width*R,V="%"),b.style.height=Z+N,b.style.width=le+V,A.viewportAnchorUnits===2?(R=A.viewportAnchorY/75*100,N=A.viewportAnchorX/(o.u===4/3?160:210)*100,R-=A.regionAnchorY*Z/100,N-=A.regionAnchorX*le/100,b.style.top=R+"%",b.style.left=N+"%"):(b.style.top=A.viewportAnchorY-A.regionAnchorY*Z/100+G,b.style.left=A.viewportAnchorX-A.regionAnchorX*le/100+G),A.heightUnits!==0&&A.widthUnits!==0&&A.viewportAnchorUnits!==0&&(A=Math.max(0,Math.min(100-(parseInt(b.style.width.slice(0,-1),10)||0),parseInt(b.style.left.slice(0,-1),10)||0)),b.style.top=Math.max(0,Math.min(100-(parseInt(b.style.height.slice(0,-1),10)||0),parseInt(b.style.top.slice(0,-1),10)||0))+"%",b.style.left=A+"%"),b.style.display="flex",b.style.flexDirection="column",b.style.alignItems="center",b.style.justifyContent=u.displayAlign=="before"?"flex-start":u.displayAlign=="center"?"center":"flex-end",o.G.set(f,b),f=b}}b=C,m&&(b=document.createElement("span"),b.classList.add("shaka-text-wrapper"),b.style.backgroundColor=u.backgroundColor,b.style.lineHeight="normal",C.appendChild(b)),o.l.set(u,{kg:C,gj:b,$c:f})}function tke(o){var u=o.direction,f=o.positionAlign;return o=o.textAlign,f!==jS?f:o==="left"||o==="start"&&u===A3||o==="end"&&u==="rtl"?"line-left":o==="right"||o==="start"&&u==="rtl"||o==="end"&&u===A3?"line-right":"center"}function nke(o,u,f,m,b){var C=u.style,A=f.nestedCues.length==0,R=m.length>1;C.whiteSpace="pre-wrap";var N=f.payload.replace(/\s+$/g,function(G){return" ".repeat(G.length)});if(C.webkitTextStrokeColor=f.textStrokeColor,C.webkitTextStrokeWidth=f.textStrokeWidth,C.color=f.color,C.direction=f.direction,C.opacity=f.opacity,C.paddingLeft=UL(f.linePadding,f,o.o),C.paddingRight=UL(f.linePadding,f,o.o),C.textCombineUpright=f.textCombineUpright,C.textShadow=f.textShadow,f.backgroundImage)C.backgroundImage="url('"+f.backgroundImage+"')",C.backgroundRepeat="no-repeat",C.backgroundSize="contain",C.backgroundPosition="center",f.backgroundColor&&(C.backgroundColor=f.backgroundColor),C.width="100%",C.height="100%";else{if(f.nestedCues.length)var V=u;else V=document.createElement("span"),u.appendChild(V);f.border&&(V.style.border=f.border),b||((u=rke(m,function(G){return G.backgroundColor}))?V.style.backgroundColor=u:N&&(V.style.backgroundColor="rgba(0, 0, 0, 0.8)")),N&&(V.setAttribute("translate","no"),V.textContent=N)}R&&!m[m.length-1].isContainer?C.display="inline":(C.display="flex",C.flexDirection="column",C.alignItems="center",f.textAlign=="left"||f.textAlign=="start"?(C.width="100%",C.alignItems="start"):(f.textAlign=="right"||f.textAlign=="end")&&(C.width="100%",C.alignItems="end"),C.justifyContent=f.displayAlign=="before"?"flex-start":f.displayAlign=="center"?"center":"flex-end"),A||(C.margin="0"),C.fontFamily=f.fontFamily,C.fontWeight=f.fontWeight.toString(),C.fontStyle=f.fontStyle,C.letterSpacing=f.letterSpacing,m=o.C?o.C.fontScaleFactor:1,(m!==1||f.fontSize)&&(C.fontSize=UL(f.fontSize||"1em",f,o.o,m)),m=f.line,m!=null&&(A=f.lineInterpretation,A==I3&&(A=1,R=16,o.u&&o.u<1&&(R=32),m=m<0?100+m/R*100:m/R*100),A==1&&(C.position="absolute",f.writingMode==Y0?(C.width="100%",f.lineAlign==X0?C.top=m+"%":f.lineAlign=="end"&&(C.bottom=100-m+"%")):f.writingMode=="vertical-lr"?(C.height="100%",f.lineAlign==X0?C.left=m+"%":f.lineAlign=="end"&&(C.right=100-m+"%")):(C.height="100%",f.lineAlign==X0?C.right=m+"%":f.lineAlign=="end"&&(C.left=100-m+"%")))),C.lineHeight=f.lineHeight,o=tke(f),o=="line-left"?(C.cssFloat="left",f.position!==null&&(C.position="absolute",f.writingMode==Y0?(C.left=f.position+"%",C.width="auto"):C.top=f.position+"%")):o=="line-right"?(C.cssFloat="right",f.position!==null&&(C.position="absolute",f.writingMode==Y0?(C.right=100-f.position+"%",C.width="auto"):C.bottom=f.position+"%")):f.position!==null&&f.position!=50&&(C.position="absolute",f.writingMode==Y0?(C.left=f.position+"%",C.width="auto"):C.top=f.position+"%",f.size&&(C.transform="translateX(-50%)")),C.textAlign=f.textAlign,C.textDecoration=f.textDecoration.join(" "),C.writingMode=f.writingMode,"writingMode"in document.documentElement.style&&C.writingMode==f.writingMode||(C.webkitWritingMode=f.writingMode),f.size&&(f.writingMode==Y0?C.width=f.size+"%":C.height=f.size+"%")}function UL(o,u,f,m){m=m===void 0?1:m;var b=(b=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(o))?{value:Number(b[1]),unit:b[2]}:null;if(!b)return o;switch(o=b.unit,m*=b.value,o){case"%":return m/100*f.clientHeight/u.cellResolution.rows+"px";case"c":return f.clientHeight*m/u.cellResolution.rows+"px";default:return m+o}}function rke(o,u){for(var f=o.length-1;f>=0;f--){var m=u(o[f]);if(m||m===0)return m}return null}_e("shaka.text.UITextDisplayer",na),na.prototype.enableTextDisplayer=na.prototype.enableTextDisplayer,na.prototype.setTextLanguage=na.prototype.setTextLanguage,na.prototype.setTextVisibility=na.prototype.setTextVisibility,na.prototype.isTextVisible=na.prototype.isTextVisible,na.prototype.remove=na.prototype.remove,na.prototype.destroy=na.prototype.destroy,na.prototype.append=na.prototype.append,na.prototype.configure=na.prototype.configure;function ike(o,u){function f(C){for(var A=C,R=_(u),N=R.next();!N.done;N=R.next())N=N.value,N.end&&N.start "+f(b.endTime)+(function(w){var A=[];switch(w.textAlign){case"left":A.push("align:left");break;case"right":A.push("align:right");break;case Ud:A.push("align:middle");break;case"start":A.push("align:start");break;case"end":A.push("align:end")}switch(w.writingMode){case"vertical-lr":A.push("vertical:lr");break;case"vertical-rl":A.push("vertical:rl")}return A.length?" "+A.join(" "):""})(b)+` +`,m=_(m);for(var b=m.next();!b.done;b=m.next())b=b.value,o+=f(b.startTime)+" --> "+f(b.endTime)+(function(C){var A=[];switch(C.textAlign){case"left":A.push("align:left");break;case"right":A.push("align:right");break;case Ud:A.push("align:middle");break;case"start":A.push("align:start");break;case"end":A.push("align:end")}switch(C.writingMode){case"vertical-lr":A.push("vertical:lr");break;case"vertical-rl":A.push("vertical:rl")}return A.length?" "+A.join(" "):""})(b)+` `,o+=b.payload+` -`;return o}_e("shaka.text.WebVttGenerator",function(){});function zL(o,u){this.g=u,this.j=o,this.F=new Map,this.l=void 0,this.C=!1,this.J=!0,this.o=this.I=!1,this.B=this.u=void 0,this.H=0,this.K={request:!1,response:!1,event:!1},this.m={},this.i=new Me,this.G=[],this.h=null}zL.prototype.setMediaElement=function(o){this.h=o,uke(this)},zL.prototype.configure=function(o){this.g=o,cke(this)};function oke(o){o.F.clear(),o.C=!1,o.J=!0,o.I=!1,o.o=!1,o.u=0,o.B=0,o.H=0,o.K={request:!1,response:!1,event:!1},IX(o),o.m={},o.h=null,o.i.Pa()}function ske(o,u){o.o=u,o.o?o.l==z6?o.l=U6:o.l==H6&&(o.l=W6):o.l==U6?o.l=z6:o.l==W6&&(o.l=H6)}function ake(o,u){if(o.g&&o.g.enabled&&(ra(o,"ps",{dd:"d"}),o.h&&o.h.autoplay)){var f=o.h.play();f&&f.then(function(){o.H=u}).catch(function(){o.H=0})}}function lke(o,u,f){try{if(!o.g.enabled)return u;var m=UL(o);e:{switch(f.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var b=N6;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":b=j6;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":b=BX;break e}b=void 0}m.ot=b,m.su=!0;var w=c2(m);return B6(u,w)}catch(A){return ft("CMCD_SRC_ERROR","Could not generate src CMCD data.",A),u}}function uke(o){o.i.D(o.h,"playing",function(){o.B||(o.B=Date.now()),ra(o,"ps",{dd:"p"})}),o.i.D(o.h,"volumechange",function(){ra(o,o.h.muted?"m":"um")}),o.i.D(o.h,"play",function(){o.u||(o.u=Date.now(),ra(o,"ps",{dd:"s"}))}),o.i.D(o.h,"pause",function(){ra(o,"ps",{dd:"a"})}),o.i.D(o.j,"buffering",function(){ra(o,"ps",{dd:"w"})}),o.i.D(o.h,"seeking",function(){return ra(o,"ps",{dd:"k"})}),o.i.D(document,"fullscreenchange",function(){ra(o,document.fullscreenElement?"pe":"pc")});var u=o.h;(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&o.i.D(u,"webkitpresentationmodechanged",function(){u.webkitPresentationMode?ra(o,u.webkitPresentationMode!=="inline"?"pe":"pc"):u.webkitSupportsFullscreen&&ra(o,u.webkitDisplayingFullscreen?"pe":"pc")}),o.i.D(o.h,"enterpictureinpicture",function(){ra(o,"pe")}),o.i.D(o.h,"leavepictureinpicture",function(){ra(o,"pc")}),"documentPictureInPicture"in i&&o.i.D(i.documentPictureInPicture,"enter",function(f){ra(o,"pe"),o.i.Ba(f.window,"pagehide",function(){ra(o,"pc")})}),o.i.D(document,"visibilitychange",function(){document.hidden?ra(o,"b",{bg:!0}):ra(o,"b")}),o.i.D(o.j,"complete",function(){ra(o,"ps",{dd:"e"})})}function cke(o){IX(o);var u=LX(o);u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value.timeInterval,f===void 0&&(f=xke),f>=1){var m=new mr(function(){return ra(o,Cke)});m.Ea(f),o.G.push(m)}}function IX(o){if(o.G)for(var u=_(o.G),f=u.next();!f.done;f=u.next())f.value.stop();o.G=[]}function LX(o){return(o=o.g.targets)?o.filter(function(u){return u.mode===zX&&u.enabled}):[]}function DX(o){return(o=o.g.targets)?o.filter(function(u){return u.mode===VX&&u.enabled===!0}):[]}function UL(o){return o.g.sessionId||(o.g.sessionId=i.crypto.randomUUID()),{v:o.g.version,sf:o.l,sid:o.g.sessionId,cid:o.g.contentId,mtp:o.j.getBandwidthEstimate()/1e3}}function ra(o,u,f){if(f=f===void 0?{}:f,u=Object.assign({e:u,ts:Date.now()},f),u=GL(o,u,zX),f=o.g.targets,!(o.g.version0&&!A.includes(R))||PX(o,w,b)}}}function Ng(o,u,f){if(o.g.enabled){f=GL(o,f,jX);var m=RX({mode:jX,useHeaders:o.g.useHeaders,includeKeys:o.g.includeKeys||[]});o.m[m]||(o.m[m]={request:1,response:1}),f.sn=o.m[m].request++,m=o.g.includeKeys||[];var b=o.g.version==qL?Array.from(new Set([].concat(T(YL),T(yke)))):NX;m=HL(m,b),f=WL(f,m),dke(f,u,o.g.useHeaders)}}function PX(o,u,f,m){var b=_c(),w=f.url;if(f.useHeaders){if(u=OX(u),!Object.keys(u).length)return;m&&Object.assign(m.headers,u),m=Vo([w],b),Object.assign(m.headers,u)}else{if(u=c2(u),!u)return;w=B6(w,u),m&&(m.uri=w),m=Vo([w],b)}o.j.Wb().request(9,m)}function dke(o,u,f){if(f)o=OX(o),Object.keys(o).length&&Object.assign(u.headers,o);else{var m=c2(o);m&&(u.uris=u.uris.map(function(b){return B6(b,m)}))}}function HL(o,u){if(!o||o.length===0)return u;for(var f=_(o),m=f.next();!m.done;m=f.next())u.includes(m.value);return o=o.filter(function(b){return u.includes(b)})}function WL(o,u){return Object.keys(o).reduce(function(f,m){return u.includes(m)&&(f[m]=o[m]),f},{})}function fke(o){if(o.type===0)return vke;if(o=o.stream){var u=o.type;if(u=="video")return o.codecs&&o.codecs.includes(",")?j6:F6;if(u=="audio")return N6;if(u=="text")return o.mimeType==="application/mp4"?V6:KL}}function RX(o){var u=Object.keys(o).sort().reduce(function(f,m){return m!=="enabled"&&(f[m]=o[m]),f},{});return JSON.stringify(u)}function hke(o,u){if(u=o.j.Fc()[u],!u.length)return NaN;var f=o.h?o.h.currentTime:0;return(o=u.find(function(m){return m.start<=f&&m.end>=f}))?(o.end-f)*1e3:NaN}function MX(o,u){if(u=o.j.Fc()[u],!u.length)return 0;var f=o.h?o.h.currentTime:0;return(o=u.find(function(m){return m.start<=f&&m.end>=f}))?(o.end-f)*1e3:0}function pke(o,u){var f=o.j.mc();if(!f.length)return NaN;o=f[0],f=_(f);for(var m=f.next();!m.done;m=f.next())m=m.value,m.type==="variant"&&m.bandwidth>o.bandwidth&&(o=m);switch(u){case F6:return o.videoBandwidth||NaN;case N6:return o.audioBandwidth||NaN;default:return o.bandwidth}}function $X(o,u,f){var m=u.segment,b=0;m&&(b=m.endTime-m.startTime),b={d:b*1e3,st:o.j.W()?gke:mke},b.ot=fke(u);var w=b.ot===F6||b.ot===N6||b.ot===j6||b.ot===V6;if(u=u.stream){var A=o.j.Ob();if(w&&(b.bl=hke(o,u.type),b.ot!==V6)){var R=MX(o,u.type);b.dl=A?R/Math.abs(A):R}if(u.bandwidth&&(b.br=u.bandwidth/1e3),u.segmentIndex&&m){if((A=u.segmentIndex.Vb(m.endTime,!0,A<0))&&(A=A.next().value)&&A!=m){if(f&&!vt(m.P(),A.P())){var N=A.P()[0];R=new URL(N);var V=new URL(f);if(R.origin!==V.origin)f=N;else{f=R.pathname.split("/").slice(1),N=V.pathname.split("/").slice(1,-1),V=Math.min(f.length,N.length);for(var G=0;G0&&f<=1?o*(1-f)+u*f:o};function UX(o){return o?o.toLowerCase()==="false"?!1:/^[-0-9]/.test(o)?parseInt(o,10):o.replace(/["]+/g,""):!0}_e("shaka.util.CmsdManager",Uu),Uu.prototype.getBandwidthEstimate=Uu.prototype.getBandwidthEstimate,Uu.prototype.getRoundTripTime=Uu.prototype.Uj,Uu.prototype.getResponseDelay=Uu.prototype.Tj,Uu.prototype.getEstimatedThroughput=Uu.prototype.$h,Uu.prototype.getMaxBitrate=Uu.prototype.bi;var HX="etp",WX="mb",GX="rd",KX="rtt";function qX(){this.g=null,this.h=[]}function XL(o,u){return re(function(f){if(f.g==1)return o.g?L(f,new Promise(function(m){return o.h.push(m)}),2):f.A(2);o.g=u,B(f)})}qX.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function $t(o,u,f){u=u===void 0?null:u,Zr.call(this);var m=this;this.m=Z6,this.h=null,this.xe=u,this.$=!1,this.Ie=new Me,this.ye=new Me,this.j=new Me,this.ac=new Me,this.yc=new Me,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new qX,this.O=this.aa=this.X=this.i=this.xc=this.I=this.l=this.ue=this.T=this.Kh=this.wa=this.M=this.ib=this.ya=this.we=this.R=this.Fa=this.N=this.ob=null,this.Sa=!1,this.Ce=this.o=null,this.Be=1e9,this.Ge=[],this.uc=new Map,this.kb=[],this.Xf=-1,this.g=ud(this),this.Zf=pX(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new YI(this.g,this.xa,null),this.Ee=[],this.B=null,this.K=this.g.adaptationSetCriteriaFactory(),this.K.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredAudioRole,videoRole:this.g.preferredVideoRole,channelCount:0,hdrLevel:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,audioLabel:this.g.preferredAudioLabel,videoLabel:this.g.preferredVideoLabel,codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:this.g.preferredAudioCodecs,preferredAudioChannelCount:this.g.preferredAudioChannelCount}),this.Fd=this.g.preferredTextLanguage,this.Md=this.g.preferredTextRole,this.Ld=this.g.preferForcedSubs,this.ze=[],f&&f(this),this.M=new zL(this,this.g.cmcd),this.wa=new Uu(this.g.cmsd),this.J=tZ(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new mr(function(){return re(function(b){if(b.g==1)return m.qa?L(b,m.fc(m.Jd,!0),3):b.A(0);if(b.g!=4)return L(b,m.load(m.qa),4);m.ag?m.Jd.pause():m.Jd.play(),m.qa=null,m.ag=!1,B(b)})}),J6&&(this.C=J6(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(b){var w;return re(function(A){if(A.g==1)return m.$f.stop(),m.qa?A.A(0):(m.Jd=m.h,m.ag=m.be(),w=b.saveLivePosition||!1,L(A,m.Uh(!0,w),3));m.qa=A.h,B(A)})}),this.yc.D(this.C,"ad-content-resume-requested",function(b){if(b=b.offset||0,m.qa){var w=m.qa;w.m&&b&&(typeof w.m=="number"?w.m+=b:w.m.setTime(w.m.getTime()+b*1e3))}m.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return re(function(b){return m.h||!m.Jd?b.A(0):L(b,m.fc(m.Jd,!0),0)})})),Q6&&(this.Da=Q6(this),this.Da.configure(this.g.queue)),this.Ie.D(i,"online",function(){i7(m),m.fh()}),this.De=new mr(function(){for(var b=Date.now()/1e3,w=!1,A=!0,R=_(m.i.variants),N=R.next();!N.done;N=R.next())N=N.value,N.disabledUntilTime>0&&N.disabledUntilTime<=b&&(N.disabledUntilTime=0,w=!0),N.disabledUntilTime>0&&(A=!1);A&&m.De.stop(),w&&pp(m,!1,void 0,!1,!1)}),this.Ta=null,o&&(Xt("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(o,!0)),this.u=null}x($t,Zr);function G6(o){o.T!=null&&(tu(o.T),o.T.release(),o.T=null)}function wke(o,u,f){f||u.lcevc.enabled?(G6(o),o.T==null&&(o.T=new Go(o.h,o.Kh,u.lcevc,f),o.H&&(o.H.H=o.T))):G6(o)}function bi(o,u){return new kn(o,u)}l=$t.prototype,l.destroy=function(){var o=this,u;return re(function(f){switch(f.g){case 1:return o.m==Sc?f.return():(G6(o),u=o.detach(),o.m=Sc,L(f,u,2));case 2:return L(f,o.ng(),3);case 3:if(o.Ie&&(o.Ie.release(),o.Ie=null),o.ye&&(o.ye.release(),o.ye=null),o.j&&(o.j.release(),o.j=null),o.ac&&(o.ac.release(),o.ac=null),o.yc&&(o.yc.release(),o.yc=null),o.Ce=null,o.g=null,o.B=null,o.xe=null,o.M=null,o.wa=null,!o.J){f.A(4);break}return L(f,o.J.destroy(),5);case 5:o.J=null;case 4:o.o&&(o.o.release(),o.o=null),o.Da&&(o.Da.destroy(),o.Da=null),Zr.prototype.release.call(o),B(f)}})};function YX(o,u){CZ.set(o,u)}function Fg(o,u){o.dispatchEvent(bi("onstatechange",new Map().set("state",u)))}l.fc=function(o,u){u=u===void 0?!0:u;var f=this,m,b,w;return re(function(A){switch(A.g){case 1:if(f.m==Sc)throw new De(2,7,7e3);if(m=f.h&&f.h==o,!f.h||f.h==o){A.A(2);break}return L(A,f.detach(),2);case 2:return L(A,ZL(f,"attach"),4);case 4:if(A.h)return A.return();if(j(A,5,6),m||(Fg(f,"attach"),b=function(){var R=o7(f,!1);R&&jg(f,R)},f.ye.D(o,"error",b),f.h=o,f.M&&f.M.setMediaElement(o)),Le(),!u||!Wd()||f.H){A.A(6);break}return L(A,JL(f),6);case 6:Y(A),f.ma.release(),ie(A,0);break;case 5:return w=K(A),L(A,f.detach(),10);case 10:throw w}})},l.jj=function(o){this.Kh=o},l.detach=function(o){o=o===void 0?!1:o;var u=this;return re(function(f){if(f.g==1){if(u.m==Sc)throw new De(2,7,7e3);return L(f,u.Bc(!1,o),2)}if(f.g!=3)return L(f,ZL(u,"detach"),3);if(f.h)return f.return();try{u.h&&(u.ye.Pa(),u.h=null),Fg(u,"detach"),u.C&&!o&&u.C.release()}finally{u.ma.release()}B(f)})};function ZL(o,u){var f;return re(function(m){return m.g==1?(f=++o.Je,L(m,XL(o.ma,u),2)):f!=o.Je?(o.ma.release(),m.return(!0)):m.return(!1)})}l.Bc=function(o,u){o=o===void 0?!0:o,u=u===void 0?!1:u;var f=this,m,b,w,A,R,N,V,G,Z,le,he,pe,ye,be,je,Be;return re(function(Je){switch(Je.g){case 1:return f.m!=Sc&&(f.m=Z6),L(Je,ZL(f,"unload"),2);case 2:return Je.h?Je.return():(H(Je,3),f.Sa=!1,Fg(f,"unload"),G6(f),m=f.ze.map(function(lt){return lt()}),f.ze=[],L(Je,Promise.all(m),5));case 5:if(f.dispatchEvent(bi("unloading")),f.we&&(f.we.release(),f.we=null),f.ya&&(f.ya.release(),f.ya=null),f.ib&&(f.ib.release(),f.ib=null),f.h&&(f.j.Pa(),f.ac.Pa()),f.De.stop(),f.ob&&(f.ob.release(),f.ob=null),f.Fa&&(f.Fa.stop(),f.Fa=null),!f.I){Je.A(6);break}return L(Je,f.I.stop(),7);case 7:f.I=null,f.xc=null;case 6:if(f.o&&f.o.stop(),!f.l){Je.A(8);break}return L(Je,f.l.destroy(),9);case 9:f.l=null;case 8:if(f.N&&(f.N.release(),f.N=null),f.G&&(f.G.release(),f.G=null),i.shakaMediaKeysPolyfill!=="webkit"||!f.F){Je.A(10);break}return L(Je,f.F.destroy(),11);case 11:f.F=null;case 10:if(!f.H){Je.A(12);break}return L(Je,f.H.destroy(),13);case 13:f.H=null;case 12:if(f.C&&!u&&f.C.onAssetUnload(),f.qa&&!u&&(f.qa.destroy(),f.qa=null),u||f.$f.stop(),f.M&&oke(f.M),f.wa&&(f.wa.g=null),!f.u){Je.A(14);break}return L(Je,f.u.destroy(),15);case 15:f.u=null;case 14:if(f.$=!1,f.h){for(b=_(f.Yf),w=b.next();!w.done;w=b.next())A=w.value,A.src.startsWith("blob:")&&URL.revokeObjectURL(A.src),A.remove();f.Yf=[],f6(f.h)&&f.h.load()}if(!f.F){Je.A(16);break}return L(Je,f.F.destroy(),17);case 17:f.F=null;case 16:if(f.Ta&&f.X!=f.Ta.rd()&&(f.Ta.j||f.Ta.destroy(),f.Ta=null),f.X=null,f.aa=null,f.R=null,f.i){for(R=_(f.i.variants),N=R.next();!N.done;N=R.next())for(V=N.value,G=_([V.audio,V.video]),Z=G.next();!Z.done;Z=G.next())(le=Z.value)&&le.segmentIndex&&le.segmentIndex.release();for(he=_(f.i.textStreams),pe=he.next();!pe.done;pe=he.next())ye=pe.value,ye.segmentIndex&&ye.segmentIndex.release()}for(f.g&&f.g.streaming.clearDecodingCache&&(qS.clear(),vg.clear()),f.i=null,f.B=new O6,f.Jh=null,f.Zb=null,f.V=null,f.Ke=-1,f.Ge=[],be=_(f.uc.values()),je=be.next();!je.done;je=be.next())Be=je.value,Be.stop();f.uc.clear(),f.kb=[],f.Xf=-1,f.J&&f.J.Qh(),d2(f);case 3:Y(Je),f.ma.release(),ie(Je,4);break;case 4:if(Le(),o&&Wd()&&!f.H&&f.h)return L(Je,JL(f),0);Je.A(0)}})},l.kl=function(o){this.O=o},l.load=function(o,u,f){u=u===void 0?null:u;var m=this,b,w,A,R,N,V,G,Z,le,he,pe,ye,be,je;return re(function(Be){switch(Be.g){case 1:if(m.m==Sc)throw new De(2,7,7e3);if(b=null,w="",o instanceof zu){if(o.j)throw new De(2,7,7006);b=o,w=b.rd()||""}else w=o||"";return L(Be,XL(m.ma,"load"),2);case 2:if(m.ma.release(),!m.h)throw new De(2,7,7002);if(!m.X){Be.A(3);break}return m.X=w,L(Be,m.Bc(!1),3);case 3:if(A=++m.Je,R=function(){return re(function(Je){if(Je.g==1)return m.Je==A?Je.A(0):b?L(Je,b.destroy(),3):Je.A(3);throw new De(2,7,7e3)})},N=function(Je,lt){return re(function(St){switch(St.g){case 1:return H(St,2),L(St,XL(m.ma,lt),4);case 4:return L(St,R(),5);case 5:return L(St,Je(),6);case 6:return L(St,R(),7);case 7:b&&m.g&&(b.g=m.g);case 2:Y(St),m.ma.release(),ie(St,0)}})},j(Be,5,6),u==null&&b&&(u=b.getStartTime()),m.O=u,m.Sa=!1,m.dispatchEvent(bi("loading")),b){f=b.V,Be.A(8);break}if(f){Be.A(8);break}return L(Be,N(function(){return re(function(Je){if(Je.g==1)return L(Je,QX(m,w),2);f=Je.h,B(Je)})},"guessMimeType_"),8);case 8:if(V=!!b,b){gX(b,m),m.B=b.getStats(),Be.A(11);break}return L(Be,ZX(m,w,u,f,!0,m.g),12);case 12:(b=Be.h)?(b.F=!1,gX(b,m),m.B=b.getStats(),b.start(),b.B.catch(function(){})):m.B=new O6;case 11:return G=!b,Z=Date.now()/1e3,m.B=b?b.getStats():new O6,m.X=w,m.aa=f||null,d2(m),le=function(){var Je=m.h?m.h.buffered:null;return{start:vY(Je)||0,end:d6(Je)||0}},m.ya=new J3(le),m.ya.addEventListener("regionadd",function(Je){QL(m,Je.region,"metadataadded")}),G?L(Be,N(function(){return re(function(Je){return L(Je,Ike(m,f),0)})},"initializeSrcEqualsDrmInner_"),23):(m.ib=new J3(le),L(Be,N(function(){return re(function(Je){if(Je.g==1)return L(Je,Promise.race([b.ma,b.B]),2);m.xc=b.H;var lt=b;lt.qa=!0,m.I=lt.l,m.i=b.Hg(),B(Je)})},"waitForFinish"),15));case 15:if(m.H){Be.A(16);break}return L(Be,N(function(){return re(function(Je){return L(Je,JL(m),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return m.i&&m.i.textStreams.length&&(m.u.enableTextDisplayer?m.u.enableTextDisplayer():Xt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),L(Be,N(function(){return re(function(Je){return L(Je,b.B,0)})},"waitForFinish"),18);case 18:if(m.g=b.getConfiguration(),m.Ae=b.G,m.I&&m.I.setMediaElement&&m.h&&m.I.setMediaElement(m.h),m.we=H6e(b),m.ue=b.Fa,(he=b.C)&&(m.K=he),V&&m.h&&m.h.nodeName==="AUDIO"&&(Eke(m),m.configure("manifest.disableVideo",!0)),b.i){Be.A(19);break}return L(Be,N(function(){return re(function(Je){return L(Je,yX(b,m.h),0)})},"drmEngine_.init"),19);case 19:return m.F=W6e(b),L(Be,N(function(){return re(function(Je){return L(Je,m.F.fc(m.h),0)})},"drmEngine_.attach"),21);case 21:return pe=m.g.abrFactory,m.o&&m.Ce==pe||(m.Ce=pe,m.o&&m.o.release(),m.o=pe(),typeof m.o.setMediaElement!="function"&&(Xt("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),m.o.setMediaElement=function(){}),typeof m.o.setCmsdManager!="function"&&(Xt("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),m.o.setCmsdManager=function(){}),typeof m.o.trySuggestStreams!="function"&&(Xt("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),m.o.trySuggestStreams=function(){}),m.o.configure(m.g.abr)),ye=G6e(b),be=b.o,L(Be,N(function(){return re(function(Je){return L(Je,Ake(m,Z,be,ye),0)})},"loadInner_"),22);case 22:U6e(b),m.aa&&Le().aj()&&D3(m.aa)&&$Se(m.H,m.X,m.aa),Be.A(14);break;case 23:return L(Be,N(function(){return re(function(Je){return L(Je,Lke(m,Z,f),0)})},"srcEqualsInner_"),14);case 14:m.dispatchEvent(bi("loaded"));case 6:if(Y(Be),!b){Be.A(25);break}return L(Be,b.destroy(),25);case 25:m.Ta=null,ie(Be,0);break;case 5:if(je=K(Be),!je||je.code==7e3){Be.A(27);break}return L(Be,m.Bc(!1),27);case 27:throw je}})};function Eke(o){for(var u=_(o.i.variants),f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.closeSegmentIndex(),f.video=null),f.bandwidth=f.audio&&f.audio.bandwidth?f.audio.bandwidth:0;o.i.variants=o.i.variants.filter(function(m){return m.audio})}l.dj=function(o,u){o=o===void 0?!0:o,u=u===void 0?!1:u;var f=this,m;return re(function(b){return b.g==1?L(b,XX(f),2):b.g!=3?(m=b.h,L(b,f.Bc(o,u),3)):b.return(m)})},l.Uh=function(o,u){o=o===void 0?!1:o,u=u===void 0?!1:u;var f=this,m;return re(function(b){return b.g==1?L(b,XX(f,u),2):b.g!=3?(m=b.h,L(b,f.detach(o),3)):b.return(m)})};function XX(o,u){u=u===void 0?!1:u;var f,m,b;return re(function(w){if(w.g==1)return f=null,o.i&&o.I&&o.xc&&o.X&&o.g?(m=o.h.currentTime,o.W()&&!u&&(m=null),L(w,JX(o,o.X,m,o.aa,o.g,!0,!1),3)):w.A(2);if(w.g!=2){f=w.h,o.Ee.push(f),o.I&&o.I.setMediaElement&&o.I.setMediaElement(null),(b=o.l?o.l.o:null)&&(f.o=b);var A=f,R=o.I,N=o.xc;A.h=o.i,A.l=R,A.H=N,f.C=o.K,f.start(),o.i=null,o.I=null,o.xc=null,o.o=null,o.Ce=null}return w.return(f)})}l.preload=function(o,u,f,m){u=u===void 0?null:u;var b=this,w,A;return re(function(R){return R.g==1?(w=ud(b),Xf(w,m||b.g,ud(b)),L(R,ZX(b,o,u,f,!1,w),2)):((A=R.h)?A.start():jg(b,new De(2,7,7005)),R.return(A))})},l.ng=function(){var o=this,u,f,m,b;return re(function(w){for(u=[],f=_(o.Ee),m=f.next();!m.done;m=f.next())b=m.value,b.j||u.push(b.destroy());return o.Ee=[],L(w,Promise.all(u),0)})};function ZX(o,u,f,m,b,w){b=b===void 0?!1:b;var A,R,N;return re(function(V){return V.g==1?m?V.A(2):L(V,QX(o,u),3):(V.g!=2&&(m=V.h),Tke(o,m)?V.return(null):(A=w||o.g,R=!1,b&&o.h&&o.h.nodeName==="AUDIO"&&(R=!0),N=JX(o,u,f,m||null,A,!b,R),N=b?N.then(function(G){return G.F=!1,G}):N.then(function(G){return o.Ee.push(G),G}),V.return(N)))})}function JX(o,u,f,m,b,w,A){w=w===void 0?!0:w,A=A===void 0?!1:A;var R,N,V,G,Z,le,he,pe,ye,be,je,Be,Je,lt,St;return re(function(it){return it.g==1?(R=null,N=fn(b),A&&(N.manifest.disableVideo=!0),V=function(){return R.R&&R.j?null:R},G=function(){return V()?V().getConfiguration():o.g},o.xa.width!=1/0||o.xa.height!=1/0||o.g.ignoreHardwareResolution?it.A(2):(Z=Le(),L(it,Z.jc(),3))):(it.g!=2&&(le=it.h,o.xa.width=le.width,o.xa.height=le.height),he=new YI(N,o.xa,null),pe={networkingEngine:o.J,filter:function(Xe){var pt,_t;return re(function(bt){if(bt.g==1)return L(bt,Qq(he,Xe),2);if(bt.g!=4)return pt=bt.h,pt?(_t=bi("trackschanged"),L(bt,Promise.resolve(),4)):bt.A(0);R.dispatchEvent(_t),B(bt)})},makeTextStreamsForClosedCaptions:function(Xe){return Uke(o,Xe)},onTimelineRegionAdded:function(Xe){yL(R.I,Xe)},onEvent:function(Xe){return R.dispatchEvent(Xe)},onError:function(Xe){return R.onError(Xe)},isLowLatencyMode:function(){return G().streaming.lowLatencyMode},updateDuration:function(){o.l&&R.R&&o.l.updateDuration()},newDrmInfo:function(Xe){var pt=R.i,_t=pt?pt.g:null;_t&&pt.B&&nY(he,_t.keySystem,Xe)},onManifestUpdated:function(){var Xe=new Map().set("isLive",o.W());R.dispatchEvent(bi("manifestupdated",Xe)),s2(R,!1,function(){o.C&&o.C.onManifestUpdated(o.W())})},getBandwidthEstimate:function(){return o.o.getBandwidthEstimate()},onMetadata:function(Xe,pt,_t,bt){var kt=Xe;(Xe=="com.apple.hls.interstitial"||Xe=="com.apple.hls.overlay")&&(kt="com.apple.quicktime.HLS",Xe={startTime:pt,endTime:_t,values:bt},o.C&&o.C.onHLSInterstitialMetadata(o,o.h,Xe)),bt=_(bt),Xe=bt.next();for(var xt={};!Xe.done;xt={Yg:void 0},Xe=bt.next())xt.Yg=Xe.value,xt.Yg.name!="ID"&&s2(R,!1,(function(Bt){return function(){e7(o,pt,_t,kt,Bt.Yg)}})(xt))},disableStream:function(Xe){return o.disableStream(Xe,o.g.streaming.maxDisabledTime)},addFont:function(Xe,pt){return o.addFont(Xe,pt)}},ye=new J3(function(){return o.Qa()}),ye.addEventListener("regionadd",function(Xe){var pt=Xe.region;p2(o,"timelineregionadded",pt,R),s2(R,!1,function(){o.C&&(o.C.onDashTimedMetadata(pt),o.C.onDASHInterstitialMetadata(o,o.h,pt))})}),be=null,N.streaming.observeQualityChanges&&(be=new b6(function(){return o.Fc()}),be.addEventListener("qualitychange",function(Xe){_Z(o,Xe.quality,Xe.position)}),be.addEventListener("audiotrackchange",function(Xe){_Z(o,Xe.quality,Xe.position,!0)})),je=!0,Be={tc:o.J,onError:function(Xe){return R.onError(Xe)},vf:function(Xe){s2(R,!0,function(){o.F&&Wke(o,Xe)})},onExpirationUpdated:function(Xe,pt){var _t=bi("expirationupdated");R.dispatchEvent(_t),(_t=R.l)&&_t.onExpirationUpdated&&_t.onExpirationUpdated(Xe,pt)},onEvent:function(Xe){R.dispatchEvent(Xe),Xe.type=="drmsessionupdate"&&je&&(je=!1,Xe=Date.now()/1e3-R.ya,(o.B||R.getStats()).m=Xe,o.T&&tu(o.T))}},Je=tZ(o,V),Rq(o.J,Je),lt=function(){return o.md(Be)},St={config:N,wk:pe,Hk:ye,Gk:be,md:lt,vk:he,networkingEngine:Je,ij:w},R=new zu(u,m,f,St),it.return(R))})}function QX(o,u){var f,m,b,w;return re(function(A){return A.g==1?(f=o.g.manifest.retryParameters,L(A,lv(u,o.J,f),2)):(m=A.h,m=="application/x-mpegurl"&&(b=Le(),b.Ha()==="WEBKIT"&&(m="application/vnd.apple.mpegurl")),m=="video/quicktime"&&(w=Le(),w.Ha()==="CHROMIUM"&&(m="video/mp4")),A.return(m))})}function Tke(o,u){if(!Wd(Le()))return!0;if(u){if((o.h||tv()).canPlayType(u)=="")return!1;if(!Wd(Le())||!kg.has(u))return!0;if(D3(u))return Le().Ha()==="WEBKIT"&&(o.g.drm.servers["com.apple.fps"]||o.g.drm.servers["com.apple.fps.1_0"])?o.g.streaming.useNativeHlsForFairPlay:o.g.streaming.preferNativeHls;if(u==="application/dash+xml"||u==="video/vnd.mpeg.dash.mpd")return o.g.streaming.preferNativeDash}return!1}function K6(o,u){var f=o.g.textDisplayFactory;o.Jh!==f||u!==void 0&&u?(u=o.u,o.u=f(),o.u.configure?o.u.configure(o.g.textDisplayer):Xt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),o.u.setTextLanguage||Xt("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!'),u?(o.u.setTextVisibility(u.isTextVisible()),u.destroy().catch(function(){})):o.u.setTextVisibility(o.$),o.H&&HSe(o.H,o.u),o.Jh=f,o.l&&v6e(o.l)):o.u&&o.u.configure&&o.u.configure(o.g.textDisplayer)}function JL(o){var u,f,m;return re(function(b){if(b.g==1)return Le(),Fg(o,"media-source"),o.g.mediaSource.useSourceElements&&f6(o.h),K6(o),u=Nke(o.h,o.u,{Jj:function(){return o.keySystem()},onMetadata:function(w,A,R){w=_(w);for(var N=w.next();!N.done;N=w.next())if(N=N.value,N.data&&typeof N.cueTime=="number"&&N.frames){var V=N.cueTime+A,G=R;G&&V>G&&(G=V);for(var Z=_(N.frames),le=Z.next();!le.done;le=Z.next())e7(o,V,G,"org.id3",le.value);o.C&&o.C.onHlsTimedMetadata(N,V)}},Bk:function(w){o.ib&&yL(o.ib,{schemeIdUri:w.schemeIdUri,startTime:w.startTime,endTime:w.endTime,id:String(w.id),emsg:w})},onEvent:function(w){return o.dispatchEvent(w)},Dk:function(){o.I&&o.I.update&&o.I.update()}},o.T,o.g.mediaSource),f=o.g.manifest,m=f.segmentRelativeVttTiming,u.Fa=m,L(b,u.M,2);o.H=u,B(b)})}function eZ(o,u,f){function m(){return n7(o)}if(o.j.D(u,"playing",m),o.j.D(u,"pause",m),o.j.D(u,"ended",m),o.j.D(u,"ratechange",function(){var w=o.h.playbackRate;w!=0&&(o.N&&(o.N.set(w),o.m==Hs&&o.o.playbackRateChanged(w),dZ(o,w)),w=bi("ratechange"),o.dispatchEvent(w))}),u.remote&&(o.j.D(u.remote,"connect",function(){o.l&&u.remote.state=="connected"&&Jf(o),Ra(o)}),o.j.D(u.remote,"connecting",function(){return Ra(o)}),o.j.D(u.remote,"disconnect",function(){return re(function(w){if(w.g==1)return o.l&&u.remote.state=="disconnected"?L(w,T6(o.l),3):w.A(2);w.g!=2&&Jf(o),Ra(o),B(w)})})),u.audioTracks&&(o.j.D(u.audioTracks,"addtrack",function(){return Ra(o)}),o.j.D(u.audioTracks,"removetrack",function(){return Ra(o)}),o.j.D(u.audioTracks,"change",function(){return Ra(o)})),u.videoTracks&&(o.j.D(u.videoTracks,"addtrack",function(){return Ra(o)}),o.j.D(u.videoTracks,"removetrack",function(){return Ra(o)}),o.j.D(u.videoTracks,"change",function(){return Ra(o)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&o.j.D(u,"webkitpresentationmodechanged",function(){o.xe&&K6(o,!0)}),u.textTracks){var b=function(){o.m===$l&&o.u instanceof rs&&Jf(o),Ra(o)};o.j.D(u.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case"metadata":Rke(o,w);break;case"chapters":Mke(o,w);break;default:b()}}),o.j.D(u.textTracks,"removetrack",b),o.j.D(u.textTracks,"change",b)}u.preload!="none"&&o.j.Ba(u,"loadedmetadata",function(){o.B.G=Date.now()/1e3-f})}function Ake(o,u,f,m){var b,w,A,R,N,V,G,Z,le,he,pe,ye,be,je,Be,Je,lt,St,it,Xe,pt,_t,bt,kt,xt,Bt,Nt,Tt;return re(function(Dt){switch(Dt.g){case 1:for(Fg(o,"load"),b=o.h,o.N=new Z3({Ye:function(){return b.playbackRate},Tc:function(){return b.defaultPlaybackRate},ph:function(Kt){b.playbackRate=Kt},ui:function(Kt){b.currentTime+=Kt}}),eZ(o,b,u),("onchange"in i.screen)&&o.j.D(i.screen,"change",function(){if(o.K.getConfiguration){var Kt=o.K.getConfiguration();Kt.hdrLevel=="AUTO"?uv(o):o.g.preferredVideoHdrLevel=="AUTO"&&o.g.abr.enabled&&(Kt.hdrLevel="AUTO",o.K.configure(Kt),uv(o))}}),w=!1,A=_(o.i.variants),R=A.next();!R.done;R=A.next())N=R.value,(V=N.video&&N.video.dependencyStream)&&(w=Ll(V));wke(o,o.g,w),o.Fd=o.g.preferredTextLanguage,o.Md=o.g.preferredTextRole,o.Ld=o.g.preferForcedSubs,s7(o.i.presentationTimeline,o.g.playRangeStart,o.g.playRangeEnd),o.o.init(function(Kt,an,Jn){o.i&&o.l&&Kt!=o.l.o&&f2(o,Kt,!0,an===void 0?!1:an,Jn===void 0?0:Jn)}),o.o.setMediaElement(b),o.o.setCmsdManager(o.wa),o.l=Fke(o),o.l.configure(o.g.streaming),o.m=Hs,o.dispatchEvent(bi("streaming")),G=f;case 2:for((le=o.l.o)||G||(G=hZ(o,!0)),he=[],Z=le||G,pe=_([Z.video,Z.audio]),ye=pe.next();!ye.done;ye=pe.next())(be=ye.value)&&!be.segmentIndex&&(he.push(be.createSegmentIndex()),be.dependencyStream&&he.push(be.dependencyStream.createSegmentIndex()));if(!(he.length>0)){Dt.A(4);break}return L(Dt,Promise.all(he),4);case 4:if(!Z||Z.disabledUntilTime!=0){Dt.A(2);break}if(o.I&&o.I.onInitialVariantChosen&&o.I.onInitialVariantChosen(Z),o.i.isLowLatency&&(o.g.streaming.lowLatencyMode?o.configure(o.Zf):at("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.")),o.M&&(ske(o.M,o.i.isLowLatency&&o.g.streaming.lowLatencyMode),ake(o.M,u*1e3)),s7(o.i.presentationTimeline,o.g.playRangeStart,o.g.playRangeEnd),f6e(o.l,o.g.playRangeStart,o.g.playRangeEnd),o.Sa=!0,o.dispatchEvent(bi("canupdatestarttime")),je=function(Kt){o.G=$ke(o,Kt),o.ob=Oke(o,Kt),nZ(o,b,!1)},o.g.streaming.startAtSegmentBoundary||(Be=o.O,Be==null&&o.i.startTime&&(Be=o.i.startTime),je(Be)),le){Dt.A(7);break}if(!o.g.streaming.startAtSegmentBoundary){Dt.A(8);break}return Je=o.i.presentationTimeline,o.O instanceof Date&&(St=Je.m||Je.i,it=o.O.getTime()/1e3-St,it!=null&&(lt=it)),lt==null&&(lt=typeof o.O=="number"?o.O:o.h.currentTime),o.O==null&&o.i.startTime&&(lt=o.i.startTime),Xe=Je.Xb(),pt=Je.Gb(),ltpt&&(lt=pt),L(Dt,Hke(G,lt),9);case 9:_t=Dt.h,je(_t);case 8:f2(o,G,!0,!1,0);case 7:return o.G.ready(),bt=o.Kc().find(function(Kt){return Kt.active}),bt||((kt=pg(o.i.textStreams,o.Fd,o.Md,o.Ld)[0]||null)&&$L(o.B.h,kt,!0),G&&(kt?(xq(G.audio,kt,o.g)&&(o.$=!0),o.$&&o.u.setTextVisibility(!0)):(o.$=!1,o.u.setTextVisibility(!1)),yZ(o)),kt&&(o.g.streaming.alwaysStreamText||o.Og())&&(k6(o.l,kt),h2(o))),L(Dt,o.l.start(m),10);case 10:o.g.abr.enabled&&(o.o.enable(),bZ(o)),Ra(o),o.i.variants.some(function(Kt){return Kt.primary}),((xt=o.W())&&(o.g.streaming.liveSync&&o.g.streaming.liveSync.enabled||o.i.serviceDescription||o.g.streaming.liveSync.panicMode)||o.g.streaming.vodDynamicPlaybackRate)&&(Bt=function(){return fZ(o)},o.j.D(b,"timeupdate",Bt)),xt||(Nt=function(){return X6(o)},o.j.D(b,"timeupdate",Nt),X6(o),o.i.nextUrl&&(o.g.streaming.preloadNextUrlWindow>0&&(Tt=function(){var Kt;return re(function(an){if(an.g==1)return Kt=o.Qa().end-o.h.currentTime,isNaN(Kt)||!(Kt<=o.g.streaming.preloadNextUrlWindow)?an.A(0):(o.j.Ma(b,"timeupdate",Tt),L(an,o.preload(o.i.nextUrl),4));o.Ta=an.h,B(an)})},o.j.D(b,"timeupdate",Tt)),o.j.D(b,"ended",function(){o.load(o.Ta||o.i.nextUrl)}))),o.C&&o.C.onManifestUpdated(xt),B(Dt)}})}function Ike(o,u){var f,m,b;return re(function(w){return w.g==1?(f=Date.now()/1e3,m=!0,o.F=o.md({tc:o.J,onError:function(A){jg(o,A)},vf:function(){},onExpirationUpdated:function(){var A=bi("expirationupdated");o.dispatchEvent(A)},onEvent:function(A){o.dispatchEvent(A),A.type=="drmsessionupdate"&&m&&(m=!1,o.B.m=Date.now()/1e3-f)}}),o.F.configure(o.g.drm),b=Cq([u]),o.F.O=!0,L(w,Vq(o.F,[b],[]),2)):L(w,o.F.fc(o.h),0)})}function Lke(o,u,f){var m,b,w,A,R,N,V,G,Z,le,he,pe;return re(function(ye){switch(ye.g){case 1:if(Fg(o,"src-equals"),m=o.h,o.G=new zY(m),b=!1,o.ze.push(function(){b=!0}),o.dispatchEvent(bi("canupdatestarttime")),o.O!=null&&o.G.Wf(o.O),o.ob=Bke(o,o.O||0),o.N=new Z3({Ye:function(){return m.playbackRate},Tc:function(){return m.defaultPlaybackRate},ph:function(be){m.playbackRate=be},ui:function(be){m.currentTime+=be}}),nZ(o,m,!0),m.textTracks&&(K6(o),w=function(be){if(!(o.u instanceof rs)){var je=q6(o).find(function(Be){return Be.mode!=="disabled"});je&&(je.mode=be?"showing":"hidden"),o.u instanceof ea&&(je=jke(o))&&(je.mode=!be&&o.u.isTextVisible()?"showing":"hidden")}},o.j.D(m,"enterpictureinpicture",function(){return w(!0)}),o.j.D(m,"leavepictureinpicture",function(){return w(!1)}),m.remote?(o.j.D(m.remote,"connect",function(){return w(!1)}),o.j.D(m.remote,"connecting",function(){return w(!1)}),o.j.D(m.remote,"disconnect",function(){return w(!1)})):"webkitCurrentPlaybackTargetIsWireless"in m&&o.j.D(m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return w(!1)}),A=m,(A.webkitPresentationMode||A.webkitSupportsFullscreen)&&o.j.D(A,"webkitpresentationmodechanged",function(){A.webkitPresentationMode?w(A.webkitPresentationMode!=="inline"):A.webkitSupportsFullscreen&&w(A.webkitDisplayingFullscreen)})),eZ(o,m,u),R=lke(o.M,o.X,f),!R.includes("#t=")&&(o.g.playRangeStart>0||isFinite(o.g.playRangeEnd))&&(R+="#t=",o.g.playRangeStart>0&&(R+=o.g.playRangeStart),isFinite(o.g.playRangeEnd)&&(R+=","+o.g.playRangeEnd)),!o.H){ye.A(2);break}return L(ye,o.H.destroy(),3);case 3:o.H=null;case 2:return f6(m),m.src=R,N=Le(),N.Ua()=="TV"&&m.load(),m.preload!="none"&&!m.autoplay&&D3(f)&&N.Ha()==="WEBKIT"&&m.load(),o.m=$l,o.dispatchEvent(bi("streaming")),V=new di,Pg(m,HTMLMediaElement.HAVE_METADATA,o.j,function(){o.G.ready(),o.aa&&D3(o.aa)||V.resolve()}),G=function(){return new Promise(function(be){var je=new mr(be);o.j.D(m.textTracks,"change",function(){return je.ia(.5)}),je.ia(.5)})},Pg(m,HTMLMediaElement.HAVE_CURRENT_DATA,o.j,function(){var be,je,Be,Je,lt;return re(function(St){if(St.g==1)return L(St,G(),2);if(b)return St.return();if(Dke(o),be=q6(o),be.some(function(it){return it.mode==="showing"})&&(o.$=!0,o.u.setTextVisibility(!0)),!(o.u instanceof rs))for(be.length&&(o.u.enableTextDisplayer?o.u.enableTextDisplayer():Xt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),je=!1,Be=_(be),Je=Be.next();!Je.done;Je=Be.next())lt=Je.value,lt.mode!=="disabled"&&(je?(lt.mode="disabled",at("Found more than one enabled text track, disabling it",lt)):(lZ(o,lt),je=!0));Pke(o),o.aa&&D3(o.aa)&&V.resolve(),B(St)})}),m.error?V.reject(o7(o)):m.preload=="none"&&(at('With
'),$=(0,a.createElement)("div");(0,a.addClass)($,"art-setting-item-left-icon"),(0,a.append)($,T),(0,a.append)(M,$),(0,a.append)(M,x.$parent.html);let L=_(P,"click",()=>this.render(x.$parents));x.$parent.$events.push(L),(0,a.append)(E,P)}createItem(x,E=!1){if(!this.cache.has(x.$option))return;let _=this.cache.get(x.$option),T=x.$item,D="selector";(0,a.has)(x,"switch")&&(D="switch"),(0,a.has)(x,"range")&&(D="range"),(0,a.has)(x,"onClick")&&(D="button");let{icons:P,proxy:M,constructor:$}=this.art,L=(0,a.createElement)("div");(0,a.addClass)(L,"art-setting-item"),(0,a.setStyle)(L,"height",`${$.SETTING_ITEM_HEIGHT}px`),L.dataset.name=x.name||"",L.dataset.value=x.value||"";let B=(0,a.append)(L,'
'),j=(0,a.append)(L,'
'),H=(0,a.createElement)("div");switch((0,a.addClass)(H,"art-setting-item-left-icon"),D){case"button":case"switch":case"range":(0,a.append)(H,x.icon||P.config);break;case"selector":x.selector?.length?(0,a.append)(H,x.icon||P.config):(0,a.append)(H,P.check)}(0,a.append)(B,H),(0,a.def)(x,"$icon",{configurable:!0,get:()=>H}),(0,a.def)(x,"icon",{configurable:!0,get:()=>H.innerHTML,set(K){H.innerHTML="",(0,a.append)(H,K)}});let U=(0,a.createElement)("div");(0,a.addClass)(U,"art-setting-item-left-text"),(0,a.append)(U,x.html||""),(0,a.append)(B,U),(0,a.def)(x,"$html",{configurable:!0,get:()=>U}),(0,a.def)(x,"html",{configurable:!0,get:()=>U.innerHTML,set(K){U.innerHTML="",(0,a.append)(U,K)}});let W=(0,a.createElement)("div");switch((0,a.addClass)(W,"art-setting-item-right-tooltip"),(0,a.append)(W,x.tooltip||""),(0,a.append)(j,W),(0,a.def)(x,"$tooltip",{configurable:!0,get:()=>W}),(0,a.def)(x,"tooltip",{configurable:!0,get:()=>W.innerHTML,set(K){W.innerHTML="",(0,a.append)(W,K)}}),D){case"switch":{let K=(0,a.createElement)("div");(0,a.addClass)(K,"art-setting-item-right-icon");let oe=(0,a.append)(K,P.switchOn),ae=(0,a.append)(K,P.switchOff);(0,a.setStyle)(x.switch?ae:oe,"display","none"),(0,a.append)(j,K),(0,a.def)(x,"$switch",{configurable:!0,get:()=>K});let ee=x.switch;(0,a.def)(x,"switch",{configurable:!0,get:()=>ee,set(Y){ee=Y,Y?((0,a.setStyle)(ae,"display","none"),(0,a.setStyle)(oe,"display",null)):((0,a.setStyle)(ae,"display",null),(0,a.setStyle)(oe,"display","none"))}});break}case"range":{let K=(0,a.createElement)("div");(0,a.addClass)(K,"art-setting-item-right-icon");let oe=(0,a.append)(K,'');oe.value=x.range[0],oe.min=x.range[1],oe.max=x.range[2],oe.step=x.range[3],(0,a.addClass)(oe,"art-setting-range"),(0,a.append)(j,K),(0,a.def)(x,"$range",{configurable:!0,get:()=>oe});let ae=[...x.range];(0,a.def)(x,"range",{configurable:!0,get:()=>ae,set(ee){ae=[...ee],oe.value=ee[0],oe.min=ee[1],oe.max=ee[2],oe.step=ee[3]}})}break;case"selector":if(x.selector?.length){let K=(0,a.createElement)("div");(0,a.addClass)(K,"art-setting-item-right-icon"),(0,a.append)(K,P.arrowRight),(0,a.append)(j,K)}}switch(D){case"switch":if(x.onSwitch){let K=M(L,"click",async oe=>{x.switch=await x.onSwitch.call(this.art,x,L,oe)});x.$events.push(K)}break;case"range":if(x.$range){if(x.onRange){let K=M(x.$range,"change",async oe=>{x.range[0]=x.$range.valueAsNumber,x.tooltip=await x.onRange.call(this.art,x,L,oe)});x.$events.push(K)}if(x.onChange){let K=M(x.$range,"input",async oe=>{x.range[0]=x.$range.valueAsNumber,x.tooltip=await x.onChange.call(this.art,x,L,oe)});x.$events.push(K)}}break;case"selector":{let K=M(L,"click",async oe=>{x.selector?.length?this.render(x.selector):(this.check(x),x.$parent.onSelect&&(x.$parent.tooltip=await x.$parent.onSelect.call(this.art,x,L,oe)))});x.$events.push(K),x.default&&(0,a.addClass)(L,"art-current")}break;case"button":if(x.onClick){let K=M(L,"click",async oe=>{x.tooltip=await x.onClick.call(this.art,x,L,oe)});x.$events.push(K)}}(0,a.def)(x,"$item",{configurable:!0,get:()=>L}),E?(0,a.replaceElement)(L,T):(0,a.append)(_,L),x.mounted&&setTimeout(()=>x.mounted.call(this.art,x.$item,x),0)}render(x=this.option){if(this.active=x,this.cache.has(x)){let E=this.cache.get(x);(0,a.inverseClass)(E,"art-current")}else{let E=(0,a.createElement)("div");this.cache.set(x,E),(0,a.addClass)(E,"art-setting-panel"),(0,a.append)(this.$parent,E),(0,a.inverseClass)(E,"art-current"),x[0]?.$parent&&this.createHeader(x[0]);for(let _=0;_({value:g,name:`aspect-ratio-${g}`,default:g===s.aspectRatio,html:p(g)})),onSelect:g=>(s.aspectRatio=g.value,g.html),mounted:()=>{v(),s.on("aspectRatio",()=>v())}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ljJTO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,icons:d,constructor:{SETTING_ITEM_WIDTH:h,FLIP:p}}=l;function v(y){return c.get((0,a.capitalize)(y))}function g(){let y=l.setting.find(`flip-${l.flip}`);l.setting.check(y)}return{width:h,name:"flip",html:c.get("Video Flip"),tooltip:v(l.flip),icon:d.flip,selector:p.map(y=>({value:y,name:`flip-${y}`,default:y===l.flip,html:v(y)})),onSelect:y=>(l.flip=y.value,y.html),mounted:()=>{g(),l.on("flip",()=>g())}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3QcSQ":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){let{i18n:l,icons:c,constructor:{SETTING_ITEM_WIDTH:d,PLAYBACK_RATE:h}}=s;function p(g){return g===1?l.get("Normal"):g.toFixed(1)}function v(){let g=s.setting.find(`playback-rate-${s.playbackRate}`);s.setting.check(g)}return{width:d,name:"playback-rate",html:l.get("Play Speed"),tooltip:p(s.playbackRate),icon:c.playbackRate,selector:h.map(g=>({value:g,name:`playback-rate-${g}`,default:g===s.playbackRate,html:p(g)})),onSelect:g=>(s.playbackRate=g.value,g.html),mounted:()=>{v(),s.on("video:ratechange",()=>v())}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eB5hg:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){let{i18n:l,icons:c,constructor:d}=s;return{width:d.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:l.get("Subtitle Offset"),icon:c.subtitle,tooltip:"0s",range:[0,-10,10,.1],onChange:h=>(s.subtitleOffset=h.range[0],`${h.range[0]}s`),mounted:(h,p)=>{s.on("subtitleOffset",v=>{p.$range.value=v,p.tooltip=`${v}s`})}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kwqbK:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{constructor(){this.name="artplayer_settings",this.settings={}}get(i){try{let a=JSON.parse(window.localStorage.getItem(this.name))||{};return i?a[i]:a}catch{return i?this.settings[i]:this.settings}}set(i,a){try{let s=Object.assign({},this.get(),{[i]:a});window.localStorage.setItem(this.name,JSON.stringify(s))}catch{this.settings[i]=a}}del(i){try{let a=this.get();delete a[i],window.localStorage.setItem(this.name,JSON.stringify(a))}catch{delete this.settings[i]}}clear(){try{window.localStorage.removeItem(this.name)}catch{this.settings={}}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],k5613:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("option-validator"),s=i.interopDefault(a),l=e("./scheme"),c=i.interopDefault(l),d=e("./utils"),h=e("./utils/component"),p=i.interopDefault(h);class v extends p.default{constructor(y){super(y),this.name="subtitle",this.option=null,this.destroyEvent=()=>null,this.init(y.option.subtitle);let S=!1;y.on("video:timeupdate",()=>{if(!this.url)return;let k=this.art.template.$video.webkitDisplayingFullscreen;typeof k=="boolean"&&k!==S&&(S=k,this.createTrack(k?"subtitles":"metadata",this.url))})}get url(){return this.art.template.$track.src}set url(y){this.switch(y)}get textTrack(){return this.art.template.$video?.textTracks?.[0]}get activeCues(){return this.textTrack?Array.from(this.textTrack.activeCues):[]}get cues(){return this.textTrack?Array.from(this.textTrack.cues):[]}style(y,S){let{$subtitle:k}=this.art.template;return typeof y=="object"?(0,d.setStyles)(k,y):(0,d.setStyle)(k,y,S)}update(){let{option:{subtitle:y},template:{$subtitle:S}}=this.art;S.innerHTML="",this.activeCues.length&&(this.art.emit("subtitleBeforeUpdate",this.activeCues),S.innerHTML=this.activeCues.map((k,w)=>k.text.split(/\r?\n/).filter(x=>x.trim()).map(x=>`
${y.escape?(0,d.escape)(x):x}
`).join("")).join(""),this.art.emit("subtitleAfterUpdate",this.activeCues))}async switch(y,S={}){let{i18n:k,notice:w,option:x}=this.art,E={...x.subtitle,...S,url:y},_=await this.init(E);return S.name&&(w.show=`${k.get("Switch Subtitle")}: ${S.name}`),_}createTrack(y,S){let{template:k,proxy:w,option:x}=this.art,{$video:E,$track:_}=k,T=(0,d.createElement)("track");T.default=!0,T.kind=y,T.src=S,T.label=x.subtitle.name||"Artplayer",T.track.mode="hidden",T.onload=()=>{this.art.emit("subtitleLoad",this.cues,this.option)},this.art.events.remove(this.destroyEvent),_.onload=null,(0,d.remove)(_),(0,d.append)(E,T),k.$track=T,this.destroyEvent=w(this.textTrack,"cuechange",()=>this.update())}async init(y){let{notice:S,template:{$subtitle:k}}=this.art;return this.textTrack?((0,s.default)(y,c.default.subtitle),y.url?(this.option=y,this.style(y.style),fetch(y.url).then(w=>w.arrayBuffer()).then(w=>{let x=new TextDecoder(y.encoding).decode(w);switch(y.type||(0,d.getExt)(y.url)){case"srt":{let E=(0,d.srtToVtt)(x),_=y.onVttLoad(E);return(0,d.vttToBlob)(_)}case"ass":{let E=(0,d.assToVtt)(x),_=y.onVttLoad(E);return(0,d.vttToBlob)(_)}case"vtt":{let E=y.onVttLoad(x);return(0,d.vttToBlob)(E)}default:return y.url}}).then(w=>(k.innerHTML="",this.url===w||(URL.revokeObjectURL(this.url),this.createTrack("metadata",w)),w)).catch(w=>{throw k.innerHTML="",S.show=w,w})):void 0):null}}n.default=v},{"option-validator":"g7VGh","./scheme":"biLjm","./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fwOA1:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("../package.json"),a=e("./utils");class s{constructor(c){this.art=c;let{option:d,constructor:h}=c;d.container instanceof Element?this.$container=d.container:(this.$container=(0,a.query)(d.container),(0,a.errorHandle)(this.$container,`No container element found by ${d.container}`)),(0,a.errorHandle)((0,a.supportsFlex)(),"The current browser does not support flex layout");let p=this.$container.tagName.toLowerCase();(0,a.errorHandle)(p==="div",`Unsupported container element type, only support 'div' but got '${p}'`),(0,a.errorHandle)(h.instances.every(v=>v.template.$container!==this.$container),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=c.id,this.init()}static get html(){return`
Player version:
${i.version}
Video url:
Video volume:
Video time:
Video duration:
Video resolution:
x
[x]
`}query(c){return(0,a.query)(c,this.$container)}init(){let{option:c}=this.art;if(c.useSSR||(this.$container.innerHTML=s.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),c.proxy){let d=c.proxy.call(this.art,this.art);(0,a.errorHandle)(d instanceof HTMLVideoElement||d instanceof HTMLCanvasElement,"Function 'option.proxy' needs to return 'HTMLVideoElement' or 'HTMLCanvasElement'"),(0,a.replaceElement)(d,this.$video),d.className="art-video",this.$video=d}c.backdrop&&(0,a.addClass)(this.$player,"art-backdrop"),a.isMobile&&(0,a.addClass)(this.$player,"art-mobile")}destroy(c){c?this.$container.innerHTML="":(0,a.addClass)(this.$player,"art-destroy")}}n.default=s},{"../package.json":"lh3R5","./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4NM7P":[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{on(i,a,s){let l=this.e||(this.e={});return(l[i]||(l[i]=[])).push({fn:a,ctx:s}),this}once(i,a,s){let l=this;function c(...d){l.off(i,c),a.apply(s,d)}return c._=a,this.on(i,c,s)}emit(i,...a){let s=((this.e||(this.e={}))[i]||[]).slice();for(let l=0;l[]},currentEpisodeIndex:{type:Number,default:0},autoNext:{type:Boolean,default:!0},headers:{type:Object,default:()=>({})},qualities:{type:Array,default:()=>[]},hasMultipleQualities:{type:Boolean,default:!1},initialQuality:{type:String,default:"默认"},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>({})}},emits:["close","error","player-change","next-episode","episode-selected","quality-change","parser-change"],setup(e,{emit:t}){yce.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2,2.5,3,4,5];const n=e,r=t,i=ue(null),a=ue(null),s=ue(null),l=ue(0),c=ue(3),d=ue(!1),h=ue(450),p=JSON.parse(localStorage.getItem("loopEnabled")||"false"),v=JSON.parse(localStorage.getItem("autoNextEnabled")||"true"),g=ue(p?!1:v),y=ue(p),S=ue(0),k=ue(null),w=ue(!1),x=ue(!1),E=ue(!1),_=ue(!1),T=ue(!1),D=ue(""),P=ue("默认"),M=ue([]),$=ue(""),L=ue(0),B=F(()=>!!n.videoUrl),j=F(()=>{L.value;const $t=$.value||n.videoUrl;if(!$t)return"";const bn=n.headers||{};return am($t,bn)}),H=F(()=>!P.value||M.value.length===0?"默认":M.value.find(bn=>bn.name===P.value)?.name||P.value||"默认"),U=F(()=>M.value.map($t=>({name:$t.name||"未知",value:$t.name,url:$t.url}))),{showSkipSettingsDialog:W,skipIntroEnabled:K,skipOutroEnabled:oe,skipIntroSeconds:ae,skipOutroSeconds:ee,skipEnabled:Y,initSkipSettings:Q,resetSkipState:ie,applySkipSettings:q,applyIntroSkipImmediate:te,handleTimeUpdate:Se,closeSkipSettingsDialog:Fe,saveSkipSettings:ve,onUserSeekStart:Re,onUserSeekEnd:Ge,onFullscreenChangeStart:nt,onFullscreenChangeEnd:Ie}=E4e({onSkipToNext:()=>{g.value&&Ve()&&$e()},getCurrentTime:()=>a.value?.video?.currentTime||0,setCurrentTime:$t=>{a.value?.video&&(a.value.video.currentTime=$t)},getDuration:()=>a.value?.video?.duration||0}),_e=$t=>{if(!$t)return!1;const kr=[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp",".ts",".m3u8",".mpd"].some(se=>$t.toLowerCase().includes(se)),ar=$t.toLowerCase().includes("m3u8")||$t.toLowerCase().includes("mpd")||$t.toLowerCase().includes("rtmp")||$t.toLowerCase().includes("rtsp");return kr||ar?!0:!($t.includes("://")&&($t.includes(".html")||$t.includes(".php")||$t.includes(".asp")||$t.includes(".jsp")||$t.match(/\/[^.?#]*$/))&&!kr&&!ar)},me=async $t=>{if(!(!i.value||!$t)){console.log("初始化 ArtPlayer:",$t);try{const bn=oK($t);console.log(`已为ArtPlayer应用CSP策略: ${bn}`)}catch(bn){console.warn("应用CSP策略失败:",bn)}if(Jt(),ie(),vt(),await dn(),h.value=rn(),i.value.style.height=`${h.value}px`,!_e($t)){console.log("检测到网页链接,在新窗口打开:",$t),gt.info("检测到网页链接,正在新窗口打开..."),window.open($t,"_blank"),r("close");return}if(s.value?s.value.destroy():s.value=new A4e,a.value){const bn=Bh(),kr={...n.headers||{},...bn.autoBypass?{}:{}},ar=am($t,kr);ar!==$t&&console.log("🔄 [代理播放] switchUrl使用代理地址"),console.log("使用 switchUrl 方法切换视频源:",ar);try{await a.value.switchUrl(ar),console.log("视频源切换成功"),ie(),q();return}catch(Ur){console.error("switchUrl 切换失败,回退到销毁重建方式:",Ur),s.value&&s.value.destroy(),a.value.destroy(),a.value=null}}try{const bn=Bh(),kr={...n.headers||{},...bn.autoBypass?{}:{}},ar=am($t,kr);ar!==$t&&console.log("🔄 [代理播放] 使用代理地址播放视频");const Ur=qT(ar);D.value=Ur,console.log("检测到视频格式:",Ur);const se=new yce({container:i.value,url:ar,poster:n.poster,volume:.7,isLive:!1,muted:!1,autoplay:!0,pip:!0,autoSize:!1,autoMini:!0,width:"100%",height:h.value,screenshot:!0,setting:!0,loop:!1,flip:!0,playbackRate:!0,aspectRatio:!0,fullscreen:!0,fullscreenWeb:!0,subtitleOffset:!0,miniProgressBar:!0,mutex:!0,backdrop:!0,playsInline:!0,autoPlayback:!0,airplay:!0,theme:"#23ade5",lang:"zh-cn",whitelist:["*"],type:Ur==="hls"?"m3u8":Ur==="flv"?"flv":Ur==="dash"?"mpd":"",customType:Ur!=="native"?{[Ur==="hls"?"m3u8":Ur==="flv"?"flv":Ur==="dash"?"mpd":Ur]:function(re,ne,J){const de=Bh(),ke={...n.headers||{},...de.autoBypass?{}:{}};let we=null;switch(Ur){case"hls":we=Cy.hls(re,ne,ke);break;case"flv":we=Cy.flv(re,ne,ke);break;case"dash":we=Cy.dash(re,ne,ke);break}we&&(J.customPlayer=we,J.customPlayerFormat=Ur),console.log(`${Ur.toUpperCase()} 播放器加载成功`)}}:{},controls:[{position:"right",html:Ve()?"下一集":"",tooltip:Ve()?"播放下一集":"",style:Ve()?{}:{display:"none"},click:function(){$e()}},{position:"right",html:M.value.length>1?`画质: ${H.value}`:"",style:M.value.length>1?{}:{display:"none"},click:function(){un()}},{position:"right",html:n.episodes.length>1?"选集":"",tooltip:n.episodes.length>1?"选择集数":"",style:n.episodes.length>1?{}:{display:"none"},click:function(){rr()}},{position:"right",html:"关闭",tooltip:"关闭播放器",click:function(){at()}}],quality:[],subtitle:{url:"",type:"srt",encoding:"utf-8",escape:!0},contextmenu:[{html:"自定义菜单",click:function(){console.log("点击了自定义菜单")}}],layers:[{name:"episodeLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"},click:function(re){re.target.classList.contains("episode-layer-background")&&Dn()}},{name:"qualityLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"},click:function(re){re.target.classList.contains("quality-layer-background")&&An()}}],plugins:[]});se.on("ready",()=>{console.log("ArtPlayer 准备就绪"),q()}),se.on("video:loadstart",()=>{ie()}),se.on("video:canplay",()=>{Jt(),q()}),se.on("video:timeupdate",()=>{Se()}),se.on("video:seeking",()=>{Re()}),se.on("video:seeked",()=>{Ge()}),se.on("video:playing",()=>{Jt(),vt(),te()||(q(),setTimeout(()=>{q()},50))}),se.on("fullscreen",re=>{nt(),setTimeout(()=>{Ie()},500)}),se.on("video:error",re=>{if(console.error("ArtPlayer 播放错误:",re),!_e($t)){console.log("播放失败,检测到可能是网页链接,在新窗口打开:",$t),gt.info("视频播放失败,检测到网页链接,正在新窗口打开..."),window.open($t,"_blank"),r("close");return}Ht($t)}),se.on("video:ended",()=>{try{if(console.log("视频播放结束"),E.value||_.value){console.log("正在处理中,忽略重复的视频结束事件");return}if(y.value){console.log("循环播放:重新播放当前选集"),_.value=!0,setTimeout(()=>{try{r("episode-selected",n.currentEpisodeIndex)}catch(re){console.error("循环播放触发选集事件失败:",re),gt.error("循环播放失败,请重试"),_.value=!1}},1e3);return}g.value&&Ve()?(E.value=!0,Ce()):Ve()||gt.info("全部播放完毕")}catch(re){console.error("视频结束事件处理失败:",re),gt.error("视频结束处理失败"),E.value=!1,_.value=!1}}),se.on("destroy",()=>{console.log("ArtPlayer 已销毁"),We()}),a.value=se}catch(bn){console.error("创建 ArtPlayer 实例失败:",bn),gt.error("播放器初始化失败"),r("error","播放器初始化失败")}}},ge=()=>{if(n.qualities&&n.qualities.length>0){M.value=[...n.qualities],P.value=n.initialQuality||n.qualities[0]?.name||"默认";const $t=M.value.find(bn=>bn.name===P.value);$.value=$t?.url||n.videoUrl}else M.value=[],P.value="默认",$.value=n.videoUrl;console.log("画质数据初始化完成:",{available:M.value,current:P.value,currentPlayingUrl:$.value})},Be=()=>{if(a.value)try{const $t=a.value.template.$container;if($t){const bn=$t.querySelector(".art-controls-right");if(bn){const kr=bn.querySelectorAll(".art-control");for(let ar=0;ar{const bn=M.value.find(kr=>kr.name===$t);if(!bn){console.warn("未找到指定画质:",$t);return}console.log("切换画质:",$t,bn),a.value&&(a.value.currentTime,a.value.paused),P.value=$t,$.value=bn.url,Be(),r("quality-change",bn)},Ke=$t=>{const bn=M.value.find(kr=>kr.name===$t);bn&&Ye(bn.name)},at=()=>{console.log("关闭 ArtPlayer 播放器"),Jt(),a.value&&(a.value.hls&&(a.value.hls.destroy(),a.value.hls=null),a.value.destroy(),a.value=null),r("close")},ft=$t=>{r("player-change",$t)},ct=$t=>{r("parser-change",$t)},Ct=$t=>{console.log("代理播放地址变更:",$t);try{const bn=JSON.parse(localStorage.getItem("addressSettings")||"{}");$t==="disabled"?bn.proxyPlayEnabled=!1:(bn.proxyPlayEnabled=!0,bn.proxyPlay=$t),localStorage.setItem("addressSettings",JSON.stringify(bn)),window.dispatchEvent(new CustomEvent("addressSettingsChanged")),n.videoUrl&&dn(()=>{me(n.videoUrl)})}catch(bn){console.error("保存代理播放设置失败:",bn)}},xt=()=>{W.value=!0},Rt=$t=>{ve($t),gt.success("片头片尾设置已保存"),Fe()},Ht=$t=>{d.value||(l.value{if(a.value)try{const bn=n.headers||{},kr=am($t,bn);console.log("重连使用URL:",kr),kr!==$t&&console.log("🔄 [代理播放] 重连时使用代理地址"),a.value.switchUrl(kr),d.value=!1}catch(bn){console.error("重连时出错:",bn),d.value=!1,Ht($t)}},2e3*l.value)):(console.error("ArtPlayer 重连次数已达上限,停止重连"),gt.error(`视频播放失败,已重试 ${c.value} 次,请检查视频链接或网络连接`),r("error","视频播放失败,重连次数已达上限"),l.value=0,d.value=!1))},Jt=()=>{l.value=0,d.value=!1},rn=()=>{if(!i.value)return 450;const $t=i.value.offsetWidth;if($t===0)return 450;const bn=16/9;let kr=$t/bn;const ar=300,Ur=Math.min(window.innerHeight*.7,600);return kr=Math.max(ar,Math.min(kr,Ur)),console.log(`容器宽度: ${$t}px, 计算高度: ${kr}px`),Math.round(kr)},vt=()=>{E.value=!1,_.value=!1},Ve=()=>n.episodes.length>0&&n.currentEpisodeIndexVe()?n.episodes[n.currentEpisodeIndex+1]:null,Ce=()=>{!g.value||!Ve()||(console.log("开始自动下一集"),x.value?(S.value=10,w.value=!0,k.value=setInterval(()=>{S.value--,S.value<=0&&(clearInterval(k.value),k.value=null,w.value=!1,$e())},1e3)):$e())},We=()=>{k.value&&(clearInterval(k.value),k.value=null),S.value=0,w.value=!1,vt(),console.log("用户取消自动下一集")},$e=()=>{if(!Ve()){gt.info("已经是最后一集了"),vt();return}Oe(),We(),vt(),r("next-episode",n.currentEpisodeIndex+1)},dt=()=>{g.value=!g.value,localStorage.setItem("autoNextEnabled",JSON.stringify(g.value)),g.value&&(y.value=!1,localStorage.setItem("loopEnabled","false")),g.value||We()},Qe=()=>{y.value=!y.value,localStorage.setItem("loopEnabled",JSON.stringify(y.value)),y.value&&(g.value=!1,localStorage.setItem("autoNextEnabled","false"),We()),console.log("循环播放开关:",y.value?"开启":"关闭")},Le=()=>{x.value=!x.value,console.log("倒计时开关:",x.value?"开启":"关闭"),x.value||We()},ht=()=>{T.value=!T.value},Vt=()=>{T.value=!1},Ut=()=>!n.episodes||n.episodes.length===0?'
':`
@@ -521,7 +521,7 @@ Char: `+o[b]);b+1&&(b+=1);break}else if(o.charCodeAt(b+1)===33){if(o.charCodeAt(
- `,Lt=()=>{if(a.value)try{a.value.layers.update({name:"episodeLayer",html:Ut(),style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"flex",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden",alignItems:"center",justifyContent:"center"}}),dn(()=>{const Ot=a.value.layers.episodeLayer;Ot&&Ot.addEventListener("click",Xt)}),console.log("显示选集layer")}catch(Ot){console.error("显示选集layer失败:",Ot)}},Xt=Ot=>{const bn=Ot.target.closest(".episode-layer-item"),kr=Ot.target.closest(".episode-layer-close"),sr=Ot.target.closest(".episode-layer-background");if(kr||sr&&Ot.target===sr)Dn();else if(bn){const zr=parseInt(bn.dataset.episodeIndex);isNaN(zr)||(qr(zr),Dn())}},Dn=()=>{if(a.value)try{const Ot=a.value.layers.episodeLayer;Ot&&Ot.removeEventListener("click",Xt),a.value.layers.update({name:"episodeLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"}}),console.log("隐藏选集layer")}catch(Ot){console.error("隐藏选集layer失败:",Ot)}},rr=()=>{if(a.value)try{const Ot=a.value.layers.episodeLayer;Ot&&Ot.style.display!=="none"?Dn():Lt()}catch(Ot){console.error("切换选集layer失败:",Ot),Lt()}},qr=Ot=>{console.log("从layer选择剧集:",Ot);const bn=n.episodes[Ot];bn&&r("episode-selected",bn)},Wt=()=>` + `,Lt=()=>{if(a.value)try{a.value.layers.update({name:"episodeLayer",html:Ut(),style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"flex",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden",alignItems:"center",justifyContent:"center"}}),dn(()=>{const $t=a.value.layers.episodeLayer;$t&&$t.addEventListener("click",Xt)}),console.log("显示选集layer")}catch($t){console.error("显示选集layer失败:",$t)}},Xt=$t=>{const bn=$t.target.closest(".episode-layer-item"),kr=$t.target.closest(".episode-layer-close"),ar=$t.target.closest(".episode-layer-background");if(kr||ar&&$t.target===ar)Dn();else if(bn){const Ur=parseInt(bn.dataset.episodeIndex);isNaN(Ur)||(Xr(Ur),Dn())}},Dn=()=>{if(a.value)try{const $t=a.value.layers.episodeLayer;$t&&$t.removeEventListener("click",Xt),a.value.layers.update({name:"episodeLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"}}),console.log("隐藏选集layer")}catch($t){console.error("隐藏选集layer失败:",$t)}},rr=()=>{if(a.value)try{const $t=a.value.layers.episodeLayer;$t&&$t.style.display!=="none"?Dn():Lt()}catch($t){console.error("切换选集layer失败:",$t),Lt()}},Xr=$t=>{console.log("从layer选择剧集:",$t);const bn=n.episodes[$t];bn&&r("episode-selected",bn)},Gt=()=>`
@@ -529,17 +529,17 @@ Char: `+o[b]);b+1&&(b+=1);break}else if(o.charCodeAt(b+1)===33){if(o.charCodeAt(
- ${M.value.map((bn,kr)=>{const sr=bn.name===P.value;return` -
+ ${M.value.map((bn,kr)=>{const ar=bn.name===P.value;return` +
${bn.name||"未知"} - ${sr?'当前':""} + ${ar?'当前':""}
`}).join("")}
- `,Yt=()=>{if(a.value)try{a.value.layers.update({name:"qualityLayer",html:Wt(),style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"flex",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden",alignItems:"center",justifyContent:"center"}}),dn(()=>{const Ot=a.value.layers.qualityLayer;Ot&&Ot.addEventListener("click",sn)}),console.log("显示画质选择layer")}catch(Ot){console.error("显示画质选择layer失败:",Ot)}},sn=Ot=>{const bn=Ot.target.closest(".quality-layer-item"),kr=Ot.target.closest(".quality-layer-close"),sr=Ot.target.closest(".quality-layer-background");if(kr||sr&&Ot.target===sr)An();else if(bn){const zr=parseInt(bn.dataset.qualityIndex);isNaN(zr)||(Xn(zr),An())}},An=()=>{if(a.value)try{const Ot=a.value.layers.qualityLayer;Ot&&Ot.removeEventListener("click",sn),a.value.layers.update({name:"qualityLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"}}),console.log("隐藏画质选择layer")}catch(Ot){console.error("隐藏画质选择layer失败:",Ot)}},un=()=>{if(a.value)try{const Ot=a.value.layers.qualityLayer;Ot&&Ot.style.display!=="none"?An():Yt()}catch(Ot){console.error("切换画质layer失败:",Ot),Yt()}},Xn=Ot=>{console.log("从layer选择画质:",Ot);const bn=M.value[Ot];bn&&qe(bn.name)};It(()=>n.videoUrl,async Ot=>{Ot&&n.visible&&(Jt(),se(),await dn(),await ve(Ot))},{immediate:!0}),It(()=>n.visible,async Ot=>{Ot&&n.videoUrl?(await dn(),await ve(n.videoUrl)):Ot||(s.value&&s.value.destroy(),a.value&&(a.value.destroy(),a.value=null))}),It(()=>n.qualities,()=>{me()},{immediate:!0,deep:!0}),It(()=>n.initialQuality,Ot=>{Ot&&Ot!==P.value&&(P.value=Ot)});const wr=()=>{if(i.value&&a.value){const Ot=rn();Ot!==h.value&&(h.value=Ot,i.value.style.height=`${Ot}px`,a.value.resize())}},ro=()=>{console.log("检测到代理设置变化,重新初始化播放器"),L.value++,n.videoUrl&&n.visible&&dn(()=>{ve(n.videoUrl)})};return hn(()=>{console.log("ArtVideoPlayer 组件已挂载 - 动态高度版本"),window.addEventListener("resize",wr),window.addEventListener("addressSettingsChanged",ro),Q(),me()}),ii(()=>{if(console.log("ArtVideoPlayer 组件即将卸载"),window.removeEventListener("resize",wr),window.removeEventListener("addressSettingsChanged",ro),We(),s.value&&s.value.destroy(),a.value){if(a.value.customPlayer&&a.value.customPlayerFormat){const Ot=a.value.customPlayerFormat;Ob[Ot]&&Ob[Ot](a.value.customPlayer)}a.value.destroy(),a.value=null}}),(Ot,bn)=>{const kr=Te("a-card");return e.visible&&(e.videoUrl||e.needsParsing)?(z(),Ze(kr,{key:0,class:"video-player-section"},{default:fe(()=>[$(nK,{"episode-name":e.episodeName,"player-type":e.playerType,episodes:e.episodes,"auto-next-enabled":g.value,"loop-enabled":y.value,"countdown-enabled":x.value,"skip-enabled":rt(q),"show-debug-button":B.value,qualities:U.value,"current-quality":H.value,"show-parser-selector":e.needsParsing,"needs-parsing":e.needsParsing,"parse-data":e.parseData,onToggleAutoNext:dt,onToggleLoop:Qe,onToggleCountdown:Le,onPlayerChange:ft,onOpenSkipSettings:Ct,onToggleDebug:ht,onProxyChange:wt,onQualityChange:Ke,onParserChange:ct,onClose:at},null,8,["episode-name","player-type","episodes","auto-next-enabled","loop-enabled","countdown-enabled","skip-enabled","show-debug-button","qualities","current-quality","show-parser-selector","needs-parsing","parse-data"]),Ai(I("div",JPt,[I("div",{ref_key:"artPlayerContainer",ref:i,class:"art-player-container"},null,512),C.value?(z(),X("div",QPt,[I("div",eRt,[bn[0]||(bn[0]=I("div",{class:"auto-next-title"},[I("span",null,"即将播放下一集")],-1)),Me()?(z(),X("div",tRt,Ne(Me().name),1)):Ie("",!0),I("div",nRt,Ne(S.value)+" 秒后自动播放 ",1),I("div",{class:"auto-next-buttons"},[I("button",{onClick:$e,class:"btn-play-now"},"立即播放"),I("button",{onClick:We,class:"btn-cancel"},"取消")])])])):Ie("",!0),$(w4e,{visible:rt(K),"skip-intro-enabled":rt(Y),"skip-outro-enabled":rt(ie),"skip-intro-seconds":rt(te),"skip-outro-seconds":rt(W),onClose:rt(Ve),onSave:Rt},null,8,["visible","skip-intro-enabled","skip-outro-enabled","skip-intro-seconds","skip-outro-seconds","onClose"]),$(rK,{visible:T.value,"video-url":O.value||e.videoUrl,headers:e.headers,"player-type":"artplayer","detected-format":D.value,"proxy-url":j.value,onClose:Vt},null,8,["visible","video-url","headers","detected-format","proxy-url"])],512),[[es,n.visible]])]),_:1})):Ie("",!0)}}},D4e=cr(rRt,[["__scopeId","data-v-e22e3fdf"]]),iRt={class:"route-tabs"},oRt={class:"route-name"},sRt={key:0,class:"episodes-section"},aRt={class:"episodes-header"},lRt={class:"episodes-controls"},uRt={class:"episode-text"},cRt={__name:"EpisodeSelector",props:{videoDetail:{type:Object,default:()=>({})},currentRoute:{type:Number,default:0},currentEpisode:{type:Number,default:0}},emits:["route-change","episode-change"],setup(e,{emit:t}){const n=e,r=t,i=ue("asc"),a=ue(localStorage.getItem("episodeDisplayStrategy")||"full"),s=ue(localStorage.getItem("episodeLayoutColumns")||"smart"),l=x=>x?x.split("#").map(E=>{const[_,T]=E.split("$");return{name:_?.trim()||"未知集数",url:T?.trim()||""}}).filter(E=>E.url):[],c=x=>{if(!x)return"未知";switch(a.value){case"simple":const E=x.match(/\d+/);return E?E[0]:x;case"smart":return x.replace(/^(第|集|话|期|EP|Episode)\s*/i,"").replace(/\s*(集|话|期)$/i,"");case"full":default:return x}},d=F(()=>{if(!n.videoDetail?.vod_play_from||!n.videoDetail?.vod_play_url)return[];const x=n.videoDetail.vod_play_from.split("$$$"),E=n.videoDetail.vod_play_url.split("$$$");return x.map((_,T)=>({name:_.trim(),episodes:l(E[T]||"")}))}),h=F(()=>{let x=d.value[n.currentRoute]?.episodes||[];return x=x.map(E=>({...E,displayName:c(E.name)})),i.value==="desc"&&(x=[...x].reverse()),x}),p=F(()=>{if(!h.value.length)return 12;const x=Math.max(...h.value.map(T=>(T.displayName||T.name||"").length)),E=x+1;let _=Math.floor(60/E);return _=Math.max(1,Math.min(12,_)),console.log("智能布局计算:",{maxNameLength:x,buttonWidth:E,columns:_}),_}),v=F(()=>s.value==="smart"?p.value:parseInt(s.value)||12),g=x=>{r("route-change",x)},y=x=>{r("episode-change",x)},S=()=>{i.value=i.value==="asc"?"desc":"asc"},k=x=>{a.value=x,localStorage.setItem("episodeDisplayStrategy",x)},C=x=>{s.value=x,localStorage.setItem("episodeLayoutColumns",x)};return It(a,()=>{}),(x,E)=>{const _=Te("a-badge"),T=Te("a-button"),D=Te("a-option"),P=Te("a-select"),M=Te("a-card"),O=Te("a-empty");return d.value.length>0?(z(),Ze(M,{key:0,class:"play-section"},{default:fe(()=>[E[10]||(E[10]=I("h3",null,"播放线路",-1)),I("div",iRt,[(z(!0),X(Pt,null,cn(d.value,(L,B)=>(z(),Ze(T,{key:B,type:e.currentRoute===B?"primary":"outline",onClick:j=>g(B),class:"route-btn"},{default:fe(()=>[I("span",oRt,Ne(L.name),1),$(_,{count:L.episodes.length,class:"route-badge"},null,8,["count"])]),_:2},1032,["type","onClick"]))),128))]),h.value.length>0?(z(),X("div",sRt,[I("div",aRt,[I("h4",null,"选集列表 ("+Ne(h.value.length)+"集)",1),I("div",lRt,[$(T,{type:"text",size:"small",onClick:S,title:i.value==="asc"?"切换为倒序":"切换为正序",class:"sort-btn"},{icon:fe(()=>[i.value==="asc"?(z(),Ze(rt(Vve),{key:0})):(z(),Ze(rt(zve),{key:1}))]),default:fe(()=>[He(" "+Ne(i.value==="asc"?"正序":"倒序"),1)]),_:1},8,["title"]),$(P,{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=L=>a.value=L),onChange:k,size:"small",class:"strategy-select",style:{width:"150px"},position:"bl","popup-container":"body"},{prefix:fe(()=>[$(rt(Lf))]),default:fe(()=>[$(D,{value:"full"},{default:fe(()=>[...E[2]||(E[2]=[He("完整显示",-1)])]),_:1}),$(D,{value:"smart"},{default:fe(()=>[...E[3]||(E[3]=[He("智能去重",-1)])]),_:1}),$(D,{value:"simple"},{default:fe(()=>[...E[4]||(E[4]=[He("精简显示",-1)])]),_:1})]),_:1},8,["modelValue"]),$(P,{modelValue:s.value,"onUpdate:modelValue":E[1]||(E[1]=L=>s.value=L),onChange:C,size:"small",class:"layout-select",style:{width:"120px"},position:"bl","popup-container":"body"},{prefix:fe(()=>[$(rt(Xve))]),default:fe(()=>[$(D,{value:"smart"},{default:fe(()=>[...E[5]||(E[5]=[He("智能",-1)])]),_:1}),$(D,{value:"12"},{default:fe(()=>[...E[6]||(E[6]=[He("12列",-1)])]),_:1}),$(D,{value:"9"},{default:fe(()=>[...E[7]||(E[7]=[He("9列",-1)])]),_:1}),$(D,{value:"6"},{default:fe(()=>[...E[8]||(E[8]=[He("6列",-1)])]),_:1}),$(D,{value:"3"},{default:fe(()=>[...E[9]||(E[9]=[He("3列",-1)])]),_:1})]),_:1},8,["modelValue"])])]),I("div",{class:"episodes-grid",style:Ye({"--episodes-columns":v.value})},[(z(!0),X(Pt,null,cn(h.value,(L,B)=>(z(),Ze(T,{key:B,type:e.currentEpisode===B?"primary":"outline",onClick:j=>y(B),class:"episode-btn",size:"small",title:L.name},{default:fe(()=>[I("span",uRt,Ne(L.displayName||L.name),1)]),_:2},1032,["type","onClick","title"]))),128))],4)])):Ie("",!0)]),_:1})):(z(),Ze(M,{key:1,class:"no-play-section"},{default:fe(()=>[$(O,{description:"暂无播放资源"})]),_:1}))}}},dRt=cr(cRt,[["__scopeId","data-v-1d197d0e"]]),fRt={class:"reader-header"},hRt={class:"header-left"},pRt={class:"header-center"},vRt={class:"book-info"},mRt=["title"],gRt={key:0,class:"chapter-info"},yRt=["title"],bRt={key:0,class:"chapter-progress"},_Rt={class:"header-right"},SRt={class:"chapter-nav"},kRt={class:"chapter-dropdown"},xRt={class:"chapter-dropdown-header"},CRt={class:"total-count"},wRt={class:"chapter-dropdown-content"},ERt={class:"chapter-option"},TRt={class:"chapter-number"},ARt=["title"],IRt={__name:"ReaderHeader",props:{bookTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},visible:{type:Boolean,default:!1},readingSettings:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=t,r=ue(!1),i=()=>{n("close")},a=()=>{n("next-chapter")},s=()=>{n("prev-chapter")},l=p=>{n("chapter-selected",p)},c=()=>{n("settings-change",{showDialog:!0})},d=async()=>{try{document.fullscreenElement?(await document.exitFullscreen(),r.value=!1):(await document.documentElement.requestFullscreen(),r.value=!0)}catch(p){console.warn("全屏切换失败:",p)}},h=()=>{r.value=!!document.fullscreenElement};return hn(()=>{document.addEventListener("fullscreenchange",h)}),ii(()=>{document.removeEventListener("fullscreenchange",h)}),(p,v)=>{const g=Te("a-button"),y=Te("a-doption"),S=Te("a-dropdown");return z(),X("div",fRt,[I("div",hRt,[$(g,{type:"text",onClick:i,class:"close-btn"},{icon:fe(()=>[$(rt(fs))]),default:fe(()=>[v[0]||(v[0]=He(" 关闭阅读器 ",-1))]),_:1})]),I("div",pRt,[I("div",vRt,[I("div",{class:"book-title",title:e.bookTitle},Ne(e.bookTitle),9,mRt),e.chapterName?(z(),X("div",gRt,[I("span",{class:"chapter-name",title:e.chapterName},Ne(e.chapterName),9,yRt),e.chapters.length>0?(z(),X("span",bRt," ("+Ne(e.currentChapterIndex+1)+"/"+Ne(e.chapters.length)+") ",1)):Ie("",!0)])):Ie("",!0)])]),I("div",_Rt,[I("div",SRt,[$(g,{type:"text",disabled:e.currentChapterIndex<=0,onClick:s,class:"nav-btn",title:"上一章 (←)"},{icon:fe(()=>[$(rt(Il))]),_:1},8,["disabled"]),$(g,{type:"text",disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:a,class:"nav-btn",title:"下一章 (→)"},{icon:fe(()=>[$(rt(Hi))]),_:1},8,["disabled"])]),$(S,{onSelect:l,trigger:"click",position:"bottom"},{content:fe(()=>[I("div",kRt,[I("div",xRt,[v[2]||(v[2]=I("span",null,"章节列表",-1)),I("span",CRt,"(共"+Ne(e.chapters.length)+"章)",1)]),I("div",wRt,[(z(!0),X(Pt,null,cn(e.chapters,(k,C)=>(z(),Ze(y,{key:C,value:C,class:de({"current-chapter":C===e.currentChapterIndex})},{default:fe(()=>[I("div",ERt,[I("span",TRt,Ne(C+1)+".",1),I("span",{class:"chapter-title",title:k.name},Ne(k.name),9,ARt),C===e.currentChapterIndex?(z(),Ze(rt(rg),{key:0,class:"current-icon"})):Ie("",!0)])]),_:2},1032,["value","class"]))),128))])])]),default:fe(()=>[$(g,{type:"text",class:"chapter-list-btn",title:"章节列表"},{icon:fe(()=>[$(rt(iW))]),default:fe(()=>[v[1]||(v[1]=He(" 章节 ",-1))]),_:1})]),_:1}),$(g,{type:"text",onClick:c,class:"settings-btn",title:"阅读设置"},{icon:fe(()=>[$(rt(Lf))]),default:fe(()=>[v[3]||(v[3]=He(" 设置 ",-1))]),_:1}),$(g,{type:"text",onClick:d,class:"fullscreen-btn",title:r.value?"退出全屏":"全屏阅读"},{icon:fe(()=>[r.value?(z(),Ze(rt(oW),{key:0})):(z(),Ze(rt(X5),{key:1}))]),_:1},8,["title"])])])}}},LRt=cr(IRt,[["__scopeId","data-v-28cb62d6"]]),DRt={class:"dialog-container"},PRt={class:"settings-content"},RRt={class:"setting-section"},MRt={class:"section-title"},$Rt={class:"setting-item"},ORt={class:"font-size-controls"},BRt={class:"font-size-value"},NRt={class:"setting-item"},FRt={class:"setting-item"},jRt={class:"setting-item"},VRt={class:"setting-section"},zRt={class:"section-title"},URt={class:"theme-options"},HRt=["onClick"],WRt={class:"theme-name"},GRt={key:0,class:"setting-section"},KRt={class:"section-title"},qRt={class:"color-settings"},YRt={class:"color-item"},XRt={class:"color-item"},ZRt={class:"setting-section"},JRt={class:"section-title"},QRt={class:"dialog-footer"},eMt={class:"action-buttons"},tMt={__name:"ReadingSettingsDialog",props:{visible:{type:Boolean,default:!1},settings:{type:Object,default:()=>({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"})}},emits:["close","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue({...n.settings}),s=[{key:"light",name:"明亮",style:{backgroundColor:"#ffffff",color:"#333333"}},{key:"dark",name:"暗黑",style:{backgroundColor:"#1a1a1a",color:"#e6e6e6"}},{key:"sepia",name:"护眼",style:{backgroundColor:"#f4f1e8",color:"#5c4b37"}},{key:"green",name:"绿豆沙",style:{backgroundColor:"#c7edcc",color:"#2d5016"}},{key:"parchment",name:"羊皮纸",style:{backgroundColor:"#fdf6e3",color:"#657b83"}},{key:"night",name:"夜间护眼",style:{backgroundColor:"#2b2b2b",color:"#c9aa71"}},{key:"blue",name:"蓝光护眼",style:{backgroundColor:"#e8f4f8",color:"#1e3a5f"}},{key:"pink",name:"粉色护眼",style:{backgroundColor:"#fdf2f8",color:"#831843"}},{key:"custom",name:"自定义",style:{backgroundColor:"linear-gradient(45deg, #ff6b6b, #4ecdc4)",color:"#ffffff"}}],l=F(()=>{let g=a.value.backgroundColor,y=a.value.textColor;if(a.value.theme!=="custom"){const S=s.find(k=>k.key===a.value.theme);S&&(g=S.style.backgroundColor,y=S.style.color)}return{fontSize:`${a.value.fontSize}px`,lineHeight:a.value.lineHeight,fontFamily:a.value.fontFamily,backgroundColor:g,color:y,maxWidth:`${a.value.maxWidth}px`}}),c=g=>{const y=a.value.fontSize+g;y>=12&&y<=24&&(a.value.fontSize=y)},d=g=>{a.value.theme=g;const y=s.find(S=>S.key===g);y&&g!=="custom"&&(a.value.backgroundColor=y.style.backgroundColor,a.value.textColor=y.style.color)},h=()=>{a.value={fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"},yt.success("已重置为默认设置")},p=()=>{r("settings-change",{...a.value}),v(),yt.success("阅读设置已保存")},v=()=>{r("close")};return It(()=>n.visible,g=>{i.value=g,g&&(a.value={...n.settings})}),It(()=>n.settings,g=>{a.value={...g}},{deep:!0}),It(i,g=>{g||r("close")}),(g,y)=>{const S=Te("a-button"),k=Te("a-slider"),C=Te("a-option"),x=Te("a-select"),E=Te("a-modal");return z(),Ze(E,{visible:i.value,"onUpdate:visible":y[7]||(y[7]=_=>i.value=_),title:"阅读设置",width:"500px",footer:!1,onCancel:v,class:"reading-settings-dialog"},{default:fe(()=>[I("div",DRt,[I("div",PRt,[I("div",RRt,[I("div",MRt,[$(rt(jve)),y[8]||(y[8]=I("span",null,"字体设置",-1))]),I("div",$Rt,[y[9]||(y[9]=I("label",{class:"setting-label"},"字体大小",-1)),I("div",ORt,[$(S,{size:"small",onClick:y[0]||(y[0]=_=>c(-1)),disabled:a.value.fontSize<=12},{icon:fe(()=>[$(rt($m))]),_:1},8,["disabled"]),I("span",BRt,Ne(a.value.fontSize)+"px",1),$(S,{size:"small",onClick:y[1]||(y[1]=_=>c(1)),disabled:a.value.fontSize>=24},{icon:fe(()=>[$(rt(Cf))]),_:1},8,["disabled"])])]),I("div",NRt,[y[10]||(y[10]=I("label",{class:"setting-label"},"行间距",-1)),$(k,{modelValue:a.value.lineHeight,"onUpdate:modelValue":y[2]||(y[2]=_=>a.value.lineHeight=_),min:1.2,max:2.5,step:.1,"format-tooltip":_=>`${_}`,class:"line-height-slider"},null,8,["modelValue","format-tooltip"])]),I("div",FRt,[y[18]||(y[18]=I("label",{class:"setting-label"},"字体族",-1)),$(x,{modelValue:a.value.fontFamily,"onUpdate:modelValue":y[3]||(y[3]=_=>a.value.fontFamily=_),class:"font-family-select"},{default:fe(()=>[$(C,{value:"system-ui"},{default:fe(()=>[...y[11]||(y[11]=[He("系统默认",-1)])]),_:1}),$(C,{value:"'Microsoft YaHei', sans-serif"},{default:fe(()=>[...y[12]||(y[12]=[He("微软雅黑",-1)])]),_:1}),$(C,{value:"'SimSun', serif"},{default:fe(()=>[...y[13]||(y[13]=[He("宋体",-1)])]),_:1}),$(C,{value:"'KaiTi', serif"},{default:fe(()=>[...y[14]||(y[14]=[He("楷体",-1)])]),_:1}),$(C,{value:"'SimHei', sans-serif"},{default:fe(()=>[...y[15]||(y[15]=[He("黑体",-1)])]),_:1}),$(C,{value:"'Times New Roman', serif"},{default:fe(()=>[...y[16]||(y[16]=[He("Times New Roman",-1)])]),_:1}),$(C,{value:"'Arial', sans-serif"},{default:fe(()=>[...y[17]||(y[17]=[He("Arial",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",jRt,[y[19]||(y[19]=I("label",{class:"setting-label"},"阅读宽度",-1)),$(k,{modelValue:a.value.maxWidth,"onUpdate:modelValue":y[4]||(y[4]=_=>a.value.maxWidth=_),min:600,max:1200,step:50,"format-tooltip":_=>`${_}px`,class:"max-width-slider"},null,8,["modelValue","format-tooltip"])])]),I("div",VRt,[I("div",zRt,[$(rt(uW)),y[20]||(y[20]=I("span",null,"主题设置",-1))]),I("div",URt,[(z(),X(Pt,null,cn(s,_=>I("div",{key:_.key,class:de(["theme-option",{active:a.value.theme===_.key}]),onClick:T=>d(_.key)},[I("div",{class:"theme-preview",style:Ye(_.style)},[...y[21]||(y[21]=[I("div",{class:"preview-text"},"Aa",-1)])],4),I("div",WRt,Ne(_.name),1)],10,HRt)),64))])]),a.value.theme==="custom"?(z(),X("div",GRt,[I("div",KRt,[$(rt(Fve)),y[22]||(y[22]=I("span",null,"自定义颜色",-1))]),I("div",qRt,[I("div",YRt,[y[23]||(y[23]=I("label",{class:"color-label"},"背景颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":y[5]||(y[5]=_=>a.value.backgroundColor=_),class:"color-picker"},null,512),[[Ql,a.value.backgroundColor]])]),I("div",XRt,[y[24]||(y[24]=I("label",{class:"color-label"},"文字颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":y[6]||(y[6]=_=>a.value.textColor=_),class:"color-picker"},null,512),[[Ql,a.value.textColor]])])])])):Ie("",!0),I("div",ZRt,[I("div",JRt,[$(rt(x0)),y[25]||(y[25]=I("span",null,"预览效果",-1))]),I("div",{class:"preview-area",style:Ye(l.value)},[...y[26]||(y[26]=[I("h3",{class:"preview-title"},"第一章 开始的地方",-1),I("p",{class:"preview-text"}," 这是一段示例文字,用于预览当前的阅读设置效果。您可以调整上方的设置来获得最佳的阅读体验。 字体大小、行间距、字体族和颜色主题都会影响阅读的舒适度。 ",-1)])],4)])]),I("div",QRt,[$(S,{onClick:h,class:"reset-btn"},{default:fe(()=>[...y[27]||(y[27]=[He(" 重置默认 ",-1)])]),_:1}),I("div",eMt,[$(S,{onClick:v},{default:fe(()=>[...y[28]||(y[28]=[He(" 取消 ",-1)])]),_:1}),$(S,{type:"primary",onClick:p},{default:fe(()=>[...y[29]||(y[29]=[He(" 保存设置 ",-1)])]),_:1})])])])]),_:1},8,["visible"])}}},nMt=cr(tMt,[["__scopeId","data-v-4de406c1"]]),rMt={key:0,class:"loading-container"},iMt={key:1,class:"error-container"},oMt={key:2,class:"chapter-container"},sMt=["innerHTML"],aMt={class:"chapter-navigation"},lMt={class:"chapter-progress"},uMt={key:3,class:"empty-container"},cMt={__name:"BookReader",props:{visible:{type:Boolean,default:!1},bookTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},bookDetail:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue(""),s=ue(null),l=ue(!1),c=ue({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"}),d=()=>{try{const O=localStorage.getItem("drplayer_reading_settings");if(O){const L=JSON.parse(O);c.value={...c.value,...L}}}catch(O){console.warn("加载阅读设置失败:",O)}},h=()=>{try{localStorage.setItem("drplayer_reading_settings",JSON.stringify(c.value))}catch(O){console.warn("保存阅读设置失败:",O)}},p=F(()=>({backgroundColor:c.value.backgroundColor,color:c.value.textColor})),v=F(()=>({fontSize:`${c.value.fontSize+4}px`,lineHeight:c.value.lineHeight,fontFamily:c.value.fontFamily,color:c.value.textColor})),g=F(()=>({fontSize:`${c.value.fontSize}px`,lineHeight:c.value.lineHeight,fontFamily:c.value.fontFamily,maxWidth:`${c.value.maxWidth}px`,color:c.value.textColor})),y=F(()=>s.value?.content?s.value.content.split(` -`).filter(O=>O.trim()).map(O=>`

${O.trim()}

`).join(""):""),S=O=>{try{if(!O.startsWith("novel://"))throw new Error("不是有效的小说内容格式");const L=O.substring(8),B=JSON.parse(L);if(!B.title||!B.content)throw new Error("小说内容格式不完整");return B}catch(L){throw console.error("解析小说内容失败:",L),new Error("解析小说内容失败: "+L.message)}},k=async O=>{if(!n.chapters[O]){a.value="章节不存在";return}i.value=!0,a.value="",s.value=null;try{const L=n.chapters[O];console.log("加载章节:",L);const B=await Ka.getPlayUrl(n.bookDetail.module,L.url,n.bookDetail.api_url,n.bookDetail.ext);if(console.log("章节内容响应:",B),B&&B.url){const j=S(B.url);s.value=j,console.log("解析后的章节内容:",j)}else throw new Error("获取章节内容失败")}catch(L){console.error("加载章节内容失败:",L),a.value=L.message||"加载章节内容失败",yt.error(a.value)}finally{i.value=!1}},C=()=>{k(n.currentChapterIndex)},x=()=>{r("close")},E=()=>{n.currentChapterIndex{n.currentChapterIndex>0&&r("prev-chapter")},T=O=>{r("chapter-selected",O)},D=O=>{O.showDialog&&(l.value=!0)},P=O=>{c.value={...c.value,...O},h(),r("settings-change",c.value)};It(()=>n.currentChapterIndex,O=>{n.visible&&O>=0&&k(O)},{immediate:!0}),It(()=>n.visible,O=>{O&&n.currentChapterIndex>=0&&k(n.currentChapterIndex)});const M=O=>{if(n.visible)switch(O.key){case"ArrowLeft":O.preventDefault(),_();break;case"ArrowRight":O.preventDefault(),E();break;case"Escape":O.preventDefault(),x();break}};return hn(()=>{d(),document.addEventListener("keydown",M)}),ii(()=>{document.removeEventListener("keydown",M)}),(O,L)=>{const B=Te("a-spin"),j=Te("a-result"),H=Te("a-button"),U=Te("a-empty");return e.visible?(z(),X("div",{key:0,class:"book-reader",style:Ye(p.value)},[$(LRt,{"chapter-name":e.chapterName,"book-title":e.bookTitle,visible:e.visible,chapters:e.chapters,"current-chapter-index":e.currentChapterIndex,"reading-settings":c.value,onClose:x,onSettingsChange:D,onNextChapter:E,onPrevChapter:_,onChapterSelected:T},null,8,["chapter-name","book-title","visible","chapters","current-chapter-index","reading-settings"]),I("div",{class:"reader-content",style:Ye(p.value)},[i.value?(z(),X("div",rMt,[$(B,{size:40}),L[1]||(L[1]=I("div",{class:"loading-text"},"正在加载章节内容...",-1))])):a.value?(z(),X("div",iMt,[$(j,{status:"error",title:a.value},null,8,["title"]),$(H,{type:"primary",onClick:C},{default:fe(()=>[...L[2]||(L[2]=[He("重新加载",-1)])]),_:1})])):s.value?(z(),X("div",oMt,[I("h1",{class:"chapter-title",style:Ye(v.value)},Ne(s.value.title),5),I("div",{class:"chapter-text",style:Ye(g.value),innerHTML:y.value},null,12,sMt),I("div",aMt,[$(H,{disabled:e.currentChapterIndex<=0,onClick:_,class:"nav-btn prev-btn"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[L[3]||(L[3]=He(" 上一章 ",-1))]),_:1},8,["disabled"]),I("span",lMt,Ne(e.currentChapterIndex+1)+" / "+Ne(e.chapters.length),1),$(H,{disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:E,class:"nav-btn next-btn"},{icon:fe(()=>[$(rt(Hi))]),default:fe(()=>[L[4]||(L[4]=He(" 下一章 ",-1))]),_:1},8,["disabled"])])])):(z(),X("div",uMt,[$(U,{description:"暂无章节内容"})]))],4),$(nMt,{visible:l.value,settings:c.value,onClose:L[0]||(L[0]=K=>l.value=!1),onSettingsChange:P},null,8,["visible","settings"])],4)):Ie("",!0)}}},dMt=cr(cMt,[["__scopeId","data-v-0dd837ef"]]),fMt={class:"reader-header"},hMt={class:"header-left"},pMt={class:"header-center"},vMt={class:"book-info"},mMt=["title"],gMt={key:0,class:"chapter-info"},yMt=["title"],bMt={key:0,class:"chapter-progress"},_Mt={class:"header-right"},SMt={class:"chapter-nav"},kMt={class:"chapter-dropdown"},xMt={class:"chapter-dropdown-header"},CMt={class:"total-count"},wMt={class:"chapter-dropdown-content"},EMt={class:"chapter-option"},TMt={class:"chapter-number"},AMt=["title"],IMt={__name:"ComicReaderHeader",props:{comicTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},visible:{type:Boolean,default:!1},readingSettings:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change","toggle-fullscreen"],setup(e,{emit:t}){const n=t,r=ue(!1),i=()=>{n("close")},a=()=>{n("prev-chapter")},s=()=>{n("next-chapter")},l=p=>{n("chapter-selected",p)},c=()=>{n("settings-change",{showDialog:!0})},d=()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()},h=()=>{r.value=!!document.fullscreenElement};return hn(()=>{document.addEventListener("fullscreenchange",h)}),ii(()=>{document.removeEventListener("fullscreenchange",h)}),(p,v)=>{const g=Te("a-button"),y=Te("a-doption"),S=Te("a-dropdown");return z(),X("div",fMt,[I("div",hMt,[$(g,{type:"text",onClick:i,class:"close-btn"},{icon:fe(()=>[$(rt(fs))]),default:fe(()=>[v[0]||(v[0]=He(" 关闭阅读器 ",-1))]),_:1})]),I("div",pMt,[I("div",vMt,[I("div",{class:"book-title",title:e.comicTitle},Ne(e.comicTitle),9,mMt),e.chapterName?(z(),X("div",gMt,[I("span",{class:"chapter-name",title:e.chapterName},Ne(e.chapterName),9,yMt),e.chapters.length>0?(z(),X("span",bMt," ("+Ne(e.currentChapterIndex+1)+"/"+Ne(e.chapters.length)+") ",1)):Ie("",!0)])):Ie("",!0)])]),I("div",_Mt,[I("div",SMt,[$(g,{type:"text",disabled:e.currentChapterIndex<=0,onClick:a,class:"nav-btn",title:"上一章 (←)"},{icon:fe(()=>[$(rt(Il))]),_:1},8,["disabled"]),$(g,{type:"text",disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:s,class:"nav-btn",title:"下一章 (→)"},{icon:fe(()=>[$(rt(Hi))]),_:1},8,["disabled"])]),$(S,{onSelect:l,trigger:"click",position:"bottom"},{content:fe(()=>[I("div",kMt,[I("div",xMt,[v[2]||(v[2]=I("span",null,"章节列表",-1)),I("span",CMt,"(共"+Ne(e.chapters.length)+"章)",1)]),I("div",wMt,[(z(!0),X(Pt,null,cn(e.chapters,(k,C)=>(z(),Ze(y,{key:C,value:C,class:de({"current-chapter":C===e.currentChapterIndex})},{default:fe(()=>[I("div",EMt,[I("span",TMt,Ne(C+1)+".",1),I("span",{class:"chapter-title",title:k.name},Ne(k.name),9,AMt),C===e.currentChapterIndex?(z(),Ze(rt(rg),{key:0,class:"current-icon"})):Ie("",!0)])]),_:2},1032,["value","class"]))),128))])])]),default:fe(()=>[$(g,{type:"text",class:"chapter-list-btn",title:"章节列表"},{icon:fe(()=>[$(rt(iW))]),default:fe(()=>[v[1]||(v[1]=He(" 章节 ",-1))]),_:1})]),_:1}),$(g,{type:"text",onClick:c,class:"settings-btn",title:"阅读设置"},{icon:fe(()=>[$(rt(Lf))]),default:fe(()=>[v[3]||(v[3]=He(" 设置 ",-1))]),_:1}),$(g,{type:"text",onClick:d,class:"fullscreen-btn",title:r.value?"退出全屏":"全屏阅读"},{icon:fe(()=>[r.value?(z(),Ze(rt(oW),{key:0})):(z(),Ze(rt(X5),{key:1}))]),_:1},8,["title"])])])}}},LMt=cr(IMt,[["__scopeId","data-v-1f6a371c"]]),DMt={class:"comic-settings"},PMt={class:"setting-section"},RMt={class:"setting-item"},MMt={class:"setting-control"},$Mt={class:"setting-value"},OMt={class:"setting-item"},BMt={class:"setting-control"},NMt={class:"setting-value"},FMt={class:"setting-item"},jMt={class:"setting-control"},VMt={class:"setting-value"},zMt={class:"setting-section"},UMt={class:"setting-item"},HMt={class:"setting-item"},WMt={class:"setting-item"},GMt={class:"setting-control"},KMt={class:"setting-value"},qMt={class:"setting-section"},YMt={class:"theme-options"},XMt=["onClick"],ZMt={class:"theme-name"},JMt={key:0,class:"setting-section"},QMt={class:"color-settings"},e9t={class:"color-item"},t9t={class:"color-item"},n9t={class:"setting-actions"},r9t={__name:"ComicSettingsDialog",props:{visible:{type:Boolean,default:!1},settings:{type:Object,default:()=>({})}},emits:["close","settings-change"],setup(e,{emit:t}){const n=e,r=t,i={imageWidth:800,imageGap:10,pagePadding:20,readingDirection:"vertical",imageFit:"width",preloadPages:3,backgroundColor:"#000000",textColor:"#ffffff",theme:"dark"},a=ue({...i,...n.settings}),s=[{key:"light",name:"明亮",style:{backgroundColor:"#ffffff",color:"#333333"}},{key:"dark",name:"暗黑",style:{backgroundColor:"#1a1a1a",color:"#e6e6e6"}},{key:"sepia",name:"护眼",style:{backgroundColor:"#f4f1e8",color:"#5c4b37"}},{key:"green",name:"绿豆沙",style:{backgroundColor:"#c7edcc",color:"#2d5016"}},{key:"parchment",name:"羊皮纸",style:{backgroundColor:"#fdf6e3",color:"#657b83"}},{key:"night",name:"夜间护眼",style:{backgroundColor:"#2b2b2b",color:"#c9aa71"}},{key:"blue",name:"蓝光护眼",style:{backgroundColor:"#e8f4f8",color:"#1e3a5f"}},{key:"pink",name:"粉色护眼",style:{backgroundColor:"#fdf2f8",color:"#831843"}},{key:"custom",name:"自定义",style:{backgroundColor:"linear-gradient(45deg, #ff6b6b, #4ecdc4)",color:"#ffffff"}}];It(()=>n.settings,p=>{a.value={...i,...p}},{deep:!0});const l=()=>{r("close")},c=()=>{r("settings-change",{...a.value})},d=p=>{a.value.theme=p;const v=s.find(g=>g.key===p);v&&p!=="custom"&&(a.value.backgroundColor=v.style.backgroundColor,a.value.textColor=v.style.color),c()},h=()=>{a.value={...i},c()};return(p,v)=>{const g=Te("a-slider"),y=Te("a-radio"),S=Te("a-radio-group"),k=Te("a-option"),C=Te("a-select"),x=Te("a-button"),E=Te("a-modal");return z(),Ze(E,{visible:e.visible,title:"漫画阅读设置",width:480,footer:!1,onCancel:l,"unmount-on-close":""},{default:fe(()=>[I("div",DMt,[I("div",PMt,[v[11]||(v[11]=I("h3",{class:"section-title"},"显示设置",-1)),I("div",RMt,[v[8]||(v[8]=I("label",{class:"setting-label"},"图片宽度",-1)),I("div",MMt,[$(g,{modelValue:a.value.imageWidth,"onUpdate:modelValue":v[0]||(v[0]=_=>a.value.imageWidth=_),min:300,max:1200,step:50,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",$Mt,Ne(a.value.imageWidth)+"px",1)])]),I("div",OMt,[v[9]||(v[9]=I("label",{class:"setting-label"},"图片间距",-1)),I("div",BMt,[$(g,{modelValue:a.value.imageGap,"onUpdate:modelValue":v[1]||(v[1]=_=>a.value.imageGap=_),min:0,max:50,step:5,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",NMt,Ne(a.value.imageGap)+"px",1)])]),I("div",FMt,[v[10]||(v[10]=I("label",{class:"setting-label"},"页面边距",-1)),I("div",jMt,[$(g,{modelValue:a.value.pagePadding,"onUpdate:modelValue":v[2]||(v[2]=_=>a.value.pagePadding=_),min:10,max:100,step:10,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",VMt,Ne(a.value.pagePadding)+"px",1)])])]),I("div",zMt,[v[21]||(v[21]=I("h3",{class:"section-title"},"阅读模式",-1)),I("div",UMt,[v[14]||(v[14]=I("label",{class:"setting-label"},"阅读方向",-1)),$(S,{modelValue:a.value.readingDirection,"onUpdate:modelValue":v[3]||(v[3]=_=>a.value.readingDirection=_),onChange:c},{default:fe(()=>[$(y,{value:"vertical"},{default:fe(()=>[...v[12]||(v[12]=[He("垂直滚动",-1)])]),_:1}),$(y,{value:"horizontal"},{default:fe(()=>[...v[13]||(v[13]=[He("水平翻页",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",HMt,[v[19]||(v[19]=I("label",{class:"setting-label"},"图片适应",-1)),$(C,{modelValue:a.value.imageFit,"onUpdate:modelValue":v[4]||(v[4]=_=>a.value.imageFit=_),onChange:c,style:{width:"200px"}},{default:fe(()=>[$(k,{value:"width"},{default:fe(()=>[...v[15]||(v[15]=[He("适应宽度",-1)])]),_:1}),$(k,{value:"height"},{default:fe(()=>[...v[16]||(v[16]=[He("适应高度",-1)])]),_:1}),$(k,{value:"contain"},{default:fe(()=>[...v[17]||(v[17]=[He("完整显示",-1)])]),_:1}),$(k,{value:"cover"},{default:fe(()=>[...v[18]||(v[18]=[He("填充显示",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",WMt,[v[20]||(v[20]=I("label",{class:"setting-label"},"预加载页数",-1)),I("div",GMt,[$(g,{modelValue:a.value.preloadPages,"onUpdate:modelValue":v[5]||(v[5]=_=>a.value.preloadPages=_),min:1,max:10,step:1,"show-tooltip":!0,"format-tooltip":_=>`${_}页`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",KMt,Ne(a.value.preloadPages)+"页",1)])])]),I("div",qMt,[v[23]||(v[23]=I("h3",{class:"section-title"},"主题设置",-1)),I("div",YMt,[(z(),X(Pt,null,cn(s,_=>I("div",{key:_.key,class:de(["theme-option",{active:a.value.theme===_.key}]),onClick:T=>d(_.key)},[I("div",{class:"theme-preview",style:Ye(_.style)},[...v[22]||(v[22]=[I("div",{class:"preview-text"},"Aa",-1)])],4),I("div",ZMt,Ne(_.name),1)],10,XMt)),64))])]),a.value.theme==="custom"?(z(),X("div",JMt,[v[26]||(v[26]=I("h3",{class:"section-title"},"自定义颜色",-1)),I("div",QMt,[I("div",e9t,[v[24]||(v[24]=I("label",{class:"color-label"},"背景颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":v[6]||(v[6]=_=>a.value.backgroundColor=_),class:"color-picker",onChange:c},null,544),[[Ql,a.value.backgroundColor]])]),I("div",t9t,[v[25]||(v[25]=I("label",{class:"color-label"},"文字颜色",-1)),Ai(I("input",{type:"color","onUpdate:modelValue":v[7]||(v[7]=_=>a.value.textColor=_),class:"color-picker",onChange:c},null,544),[[Ql,a.value.textColor]])])])])):Ie("",!0),I("div",n9t,[$(x,{onClick:h,type:"outline"},{default:fe(()=>[...v[27]||(v[27]=[He(" 重置默认 ",-1)])]),_:1}),$(x,{onClick:l,type:"primary"},{default:fe(()=>[...v[28]||(v[28]=[He(" 完成 ",-1)])]),_:1})])])]),_:1},8,["visible"])}}},i9t=cr(r9t,[["__scopeId","data-v-6adf651b"]]),o9t={key:0,class:"comic-reader"},s9t={key:0,class:"loading-container"},a9t={key:1,class:"error-container"},l9t={key:2,class:"comic-container"},u9t={key:0,class:"image-loading"},c9t={key:1,class:"image-error"},d9t=["src","alt","onLoad","onError","onClick"],f9t={key:3,class:"image-index"},h9t={class:"chapter-navigation"},p9t={class:"chapter-info"},v9t={class:"chapter-progress"},m9t={class:"page-progress"},g9t={key:3,class:"empty-container"},y9t={class:"viewer"},b9t=["src","alt","data-source","title"],_9t={__name:"ComicReader",props:{visible:{type:Boolean,default:!1},comicTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},comicDetail:{type:Object,default:()=>({})},comicContent:{type:Object,default:null}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue(""),s=ue([]),l=ue(!1),c=ue([]),d=ue({inline:!1,button:!0,navbar:!0,title:!0,toolbar:{zoomIn:1,zoomOut:1,oneToOne:1,reset:1,prev:1,play:{show:1,size:"large"},next:1,rotateLeft:1,rotateRight:1,flipHorizontal:1,flipVertical:1},tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,backdrop:!0}),h=ue({imageWidth:800,imageGap:10,pagePadding:20,readingDirection:"vertical",imageFit:"width",preloadPages:3,backgroundColor:"#1a1a1a",textColor:"#e6e6e6",theme:"dark",showPageNumber:!0}),p=()=>{try{const q=localStorage.getItem("drplayer_comic_reading_settings");if(q){const Q=JSON.parse(q);h.value={...h.value,...Q}}}catch(q){console.warn("加载漫画阅读设置失败:",q)}},v=()=>{try{localStorage.setItem("drplayer_comic_reading_settings",JSON.stringify(h.value))}catch(q){console.warn("保存漫画阅读设置失败:",q)}},g=F(()=>({backgroundColor:h.value.backgroundColor,color:h.value.textColor,padding:`${h.value.pagePadding}px`})),y=F(()=>({color:h.value.backgroundColor==="#000000"?"#ffffff":"#333333",marginBottom:`${h.value.imageGap*2}px`})),S=F(()=>({gap:`${h.value.imageGap}px`,flexDirection:h.value.readingDirection==="vertical"?"column":"row"})),k=F(()=>({marginBottom:h.value.readingDirection==="vertical"?`${h.value.imageGap}px`:"0"})),C=F(()=>{const q={maxWidth:`${h.value.imageWidth}px`,width:"100%",height:"auto"};switch(h.value.imageFit){case"width":q.width="100%",q.height="auto";break;case"height":q.width="auto",q.height="100vh";break;case"contain":q.objectFit="contain";break;case"cover":q.objectFit="cover";break}return q}),x=q=>{try{if(!q.startsWith("pics://"))throw new Error("不是有效的漫画内容格式");const se=q.substring(7).split("&&").filter(ae=>ae.trim());if(se.length===0)throw new Error("漫画内容为空");return se.map((ae,re)=>({url:ae.trim(),loaded:!1,error:!1,index:re}))}catch(Q){throw console.error("解析漫画内容失败:",Q),new Error("解析漫画内容失败: "+Q.message)}},E=async q=>{i.value=!0,a.value="",s.value=[];try{if(console.log("从props加载漫画内容:",q),q&&q.images&&Array.isArray(q.images))s.value=q.images.map((Q,se)=>({url:Q.trim(),loaded:!1,error:!1,index:se})),await T();else throw new Error("漫画内容格式错误")}catch(Q){console.error("加载漫画内容失败:",Q),a.value=Q.message||"加载漫画内容失败",yt.error(a.value)}finally{i.value=!1}},_=async q=>{if(n.comicContent){await E(n.comicContent);return}if(!n.chapters[q]){a.value="章节不存在";return}i.value=!0,a.value="",s.value=[];try{const Q=n.chapters[q];console.log("加载漫画章节:",Q);const se=await Ka.getPlayUrl(n.comicDetail.module,Q.url,n.comicDetail.api_url,n.comicDetail.ext);if(console.log("漫画章节内容响应:",se),se&&se.url){const ae=x(se.url);s.value=ae,console.log("解析后的漫画图片:",ae),await T()}else throw new Error("获取漫画内容失败")}catch(Q){console.error("加载漫画章节内容失败:",Q),a.value=Q.message||"加载漫画章节内容失败",yt.error(a.value)}finally{i.value=!1}},T=async()=>{const q=Math.min(h.value.preloadPages,s.value.length);for(let Q=0;Qnew Promise((Q,se)=>{const ae=new Image;ae.onload=()=>Q(ae),ae.onerror=()=>se(new Error("图片加载失败")),ae.src=q}),P=q=>{s.value[q]&&(s.value[q].loaded=!0,s.value[q].error=!1)},M=q=>{s.value[q]&&(s.value[q].loaded=!1,s.value[q].error=!0)},O=()=>{c.value=s.value.map((q,Q)=>({src:q.url,alt:`第${Q+1}页`,title:`${n.chapterName||"漫画"} - 第${Q+1}页`}))},L=q=>{O(),dn(()=>{const Q=document.querySelector(".viewer");if(Q){const se=Q.querySelectorAll("img");se[q]&&se[q].click()}})},B=async q=>{const Q=s.value[q];if(Q){Q.error=!1,Q.loaded=!1;try{await D(Q.url),Q.loaded=!0}catch{Q.error=!0,yt.error(`重新加载第${q+1}页失败`)}}},j=()=>{_(n.currentChapterIndex)},H=()=>{r("close")},U=()=>{n.currentChapterIndex{n.currentChapterIndex>0&&r("prev-chapter")},Y=q=>{r("chapter-selected",q)},ie=q=>{q.showDialog&&(l.value=!0)},te=q=>{h.value={...h.value,...q},v(),r("settings-change",h.value)};It(()=>n.currentChapterIndex,q=>{n.visible&&q>=0&&_(q)},{immediate:!0}),It(()=>n.visible,q=>{q&&n.currentChapterIndex>=0&&_(n.currentChapterIndex)}),It(()=>n.comicContent,q=>{q&&n.visible&&E(q)},{immediate:!0});const W=q=>{if(n.visible)switch(q.key){case"ArrowLeft":q.preventDefault(),K();break;case"ArrowRight":q.preventDefault(),U();break;case"Escape":q.preventDefault(),H();break;case"ArrowUp":q.preventDefault(),window.scrollBy(0,-100);break;case"ArrowDown":q.preventDefault(),window.scrollBy(0,100);break}};return hn(()=>{p(),document.addEventListener("keydown",W)}),ii(()=>{document.removeEventListener("keydown",W)}),(q,Q)=>{const se=Te("a-spin"),ae=Te("a-result"),re=Te("a-button"),Ce=Te("a-empty"),Ve=i3("viewer");return e.visible?(z(),X("div",o9t,[$(LMt,{"chapter-name":e.chapterName,"comic-title":e.comicTitle,visible:e.visible,chapters:e.chapters,"current-chapter-index":e.currentChapterIndex,"reading-settings":h.value,onClose:H,onSettingsChange:ie,onNextChapter:U,onPrevChapter:K,onChapterSelected:Y},null,8,["chapter-name","comic-title","visible","chapters","current-chapter-index","reading-settings"]),I("div",{class:"reader-content",style:Ye(g.value)},[i.value?(z(),X("div",s9t,[$(se,{size:40}),Q[1]||(Q[1]=I("div",{class:"loading-text"},"正在加载漫画内容...",-1))])):a.value?(z(),X("div",a9t,[$(ae,{status:"error",title:a.value},null,8,["title"]),$(re,{type:"primary",onClick:j},{default:fe(()=>[...Q[2]||(Q[2]=[He("重新加载",-1)])]),_:1})])):s.value.length>0?(z(),X("div",l9t,[I("h1",{class:"chapter-title",style:Ye(y.value)},Ne(e.chapterName),5),I("div",{class:"images-container",style:Ye(S.value)},[(z(!0),X(Pt,null,cn(s.value,(ge,xe)=>(z(),X("div",{key:xe,class:"image-wrapper",style:Ye(k.value)},[!ge.loaded&&!ge.error?(z(),X("div",u9t,[$(se,{size:24}),Q[3]||(Q[3]=I("div",{class:"loading-text"},"加载中...",-1))])):ge.error?(z(),X("div",c9t,[$(rt(lA)),Q[5]||(Q[5]=I("div",{class:"error-text"},"图片加载失败",-1)),$(re,{size:"small",onClick:Ge=>B(xe)},{default:fe(()=>[...Q[4]||(Q[4]=[He("重试",-1)])]),_:1},8,["onClick"])])):(z(),X("img",{key:2,src:ge.url,alt:`第${xe+1}页`,class:"comic-image",style:Ye(C.value),onLoad:Ge=>P(xe),onError:Ge=>M(xe),onClick:Ge=>L(xe)},null,44,d9t)),h.value.showPageNumber?(z(),X("div",f9t,Ne(xe+1)+" / "+Ne(s.value.length),1)):Ie("",!0)],4))),128))],4),I("div",h9t,[$(re,{disabled:e.currentChapterIndex<=0,onClick:K,class:"nav-btn prev-btn",size:"large"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[Q[6]||(Q[6]=He(" 上一章 ",-1))]),_:1},8,["disabled"]),I("div",p9t,[I("div",v9t," 第 "+Ne(e.currentChapterIndex+1)+" 章 / 共 "+Ne(e.chapters.length)+" 章 ",1),I("div",m9t,Ne(s.value.length)+" 页 ",1)]),$(re,{disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:U,class:"nav-btn next-btn",size:"large"},{icon:fe(()=>[$(rt(Hi))]),default:fe(()=>[Q[7]||(Q[7]=He(" 下一章 ",-1))]),_:1},8,["disabled"])])])):(z(),X("div",g9t,[$(Ce,{description:"暂无漫画内容"})]))],4),$(i9t,{visible:l.value,settings:h.value,onClose:Q[0]||(Q[0]=ge=>l.value=!1),onSettingsChange:te},null,8,["visible","settings"]),Ai((z(),X("div",y9t,[(z(!0),X(Pt,null,cn(c.value,(ge,xe)=>(z(),X("img",{key:xe,src:ge.src,alt:ge.alt,"data-source":ge.src,title:ge.title},null,8,b9t))),128))])),[[Ve,d.value],[es,!1]])])):Ie("",!0)}}},S9t=cr(_9t,[["__scopeId","data-v-50453960"]]),k9t={class:"add-task-form"},x9t={class:"form-section"},C9t={key:0,class:"novel-info"},w9t={class:"novel-cover"},E9t=["src","alt"],T9t={class:"novel-details"},A9t={class:"novel-author"},I9t={class:"novel-desc"},L9t={class:"novel-meta"},D9t={key:1,class:"no-novel"},P9t={key:0,class:"form-section"},R9t={class:"chapter-selection"},M9t={class:"selection-controls"},$9t={class:"range-selector"},O9t={class:"selected-info"},B9t={class:"chapter-list"},N9t={class:"chapter-grid"},F9t=["onClick"],j9t={class:"chapter-title"},V9t={key:1,class:"form-section"},z9t={class:"download-settings"},U9t={class:"setting-row"},H9t={class:"setting-row"},W9t={class:"setting-row"},G9t={class:"setting-row"},K9t={__name:"AddDownloadTaskDialog",props:{visible:{type:Boolean,default:!1},novelDetail:{type:Object,default:null},chapters:{type:Array,default:()=>[]},sourceName:{type:String,default:""},sourceKey:{type:String,default:""},apiUrl:{type:String,default:""},extend:{type:[String,Object],default:""}},emits:["close","confirm"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue([]),s=ue(1),l=ue(1),c=ue({filename:"",concurrency:3,retryCount:2,interval:1e3}),d=F(()=>n.chapters.length),h=F(()=>n.novelDetail&&a.value.length>0);It(()=>n.visible,E=>{E&&p()}),It(()=>n.novelDetail,E=>{E&&(c.value.filename=E.vod_name+".txt",l.value=d.value)});const p=()=>{a.value=[],s.value=1,l.value=d.value,c.value={filename:n.novelDetail?.vod_name+".txt"||"",concurrency:3,retryCount:2,interval:1e3}},v=()=>{a.value=Array.from({length:d.value},(E,_)=>_)},g=()=>{a.value=[]},y=()=>{const E=Array.from({length:d.value},(_,T)=>T);a.value=E.filter(_=>!a.value.includes(_))},S=()=>{if(s.value>l.value){yt.warning("起始章节不能大于结束章节");return}const E=Math.max(1,s.value)-1,_=Math.min(d.value,l.value);a.value=Array.from({length:_-E},(T,D)=>E+D)},k=E=>{const _=a.value.indexOf(E);_>-1?a.value.splice(_,1):a.value.push(E)},C=()=>{r("close")},x=async()=>{if(!h.value){yt.warning("请选择要下载的章节");return}i.value=!0;try{const E={novelDetail:n.novelDetail,chapters:n.chapters,selectedChapters:a.value,sourceName:n.sourceName,sourceKey:n.sourceKey,apiUrl:n.apiUrl,extend:n.extend,settings:c.value};r("confirm",E)}catch(E){console.error("创建下载任务失败:",E),yt.error("创建下载任务失败")}finally{i.value=!1}};return(E,_)=>{const T=Te("a-empty"),D=Te("a-button"),P=Te("a-button-group"),M=Te("a-input-number"),O=Te("a-checkbox"),L=Te("a-input"),B=Te("a-modal");return z(),Ze(B,{visible:e.visible,title:"新建下载任务",width:"800px","mask-closable":!1,onCancel:C,onOk:x,"confirm-loading":i.value},{footer:fe(()=>[$(D,{onClick:C},{default:fe(()=>[..._[22]||(_[22]=[He("取消",-1)])]),_:1}),$(D,{type:"primary",onClick:x,loading:i.value,disabled:!h.value},{default:fe(()=>[..._[23]||(_[23]=[He(" 开始下载 ",-1)])]),_:1},8,["loading","disabled"])]),default:fe(()=>[I("div",k9t,[I("div",x9t,[_[6]||(_[6]=I("h4",null,"小说信息",-1)),e.novelDetail?(z(),X("div",C9t,[I("div",w9t,[I("img",{src:e.novelDetail.vod_pic,alt:e.novelDetail.vod_name},null,8,E9t)]),I("div",T9t,[I("h3",null,Ne(e.novelDetail.vod_name),1),I("p",A9t,"作者: "+Ne(e.novelDetail.vod_actor||"未知"),1),I("p",I9t,Ne(e.novelDetail.vod_content||"暂无简介"),1),I("div",L9t,[I("span",null,"来源: "+Ne(e.sourceName),1),I("span",null,"总章节: "+Ne(d.value),1)])])])):(z(),X("div",D9t,[$(T,{description:"请从详情页面调用下载功能"})]))]),e.novelDetail?(z(),X("div",P9t,[_[13]||(_[13]=I("h4",null,"章节选择",-1)),I("div",R9t,[I("div",M9t,[$(P,null,{default:fe(()=>[$(D,{onClick:v},{default:fe(()=>[..._[7]||(_[7]=[He("全选",-1)])]),_:1}),$(D,{onClick:g},{default:fe(()=>[..._[8]||(_[8]=[He("全不选",-1)])]),_:1}),$(D,{onClick:y},{default:fe(()=>[..._[9]||(_[9]=[He("反选",-1)])]),_:1})]),_:1}),I("div",$9t,[_[11]||(_[11]=I("span",null,"范围选择:",-1)),$(M,{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=j=>s.value=j),min:1,max:d.value,placeholder:"起始章节",size:"small",style:{width:"100px"}},null,8,["modelValue","max"]),_[12]||(_[12]=I("span",null,"-",-1)),$(M,{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=j=>l.value=j),min:1,max:d.value,placeholder:"结束章节",size:"small",style:{width:"100px"}},null,8,["modelValue","max"]),$(D,{size:"small",onClick:S},{default:fe(()=>[..._[10]||(_[10]=[He("选择范围",-1)])]),_:1})])]),I("div",O9t," 已选择 "+Ne(a.value.length)+" / "+Ne(d.value)+" 章 ",1),I("div",B9t,[I("div",N9t,[(z(!0),X(Pt,null,cn(e.chapters,(j,H)=>(z(),X("div",{key:H,class:de(["chapter-item",{selected:a.value.includes(H)}]),onClick:U=>k(H)},[$(O,{"model-value":a.value.includes(H),onChange:U=>k(H)},null,8,["model-value","onChange"]),I("span",j9t,Ne(j.name||`第${H+1}章`),1)],10,F9t))),128))])])])])):Ie("",!0),e.novelDetail?(z(),X("div",V9t,[_[21]||(_[21]=I("h4",null,"下载设置",-1)),I("div",z9t,[I("div",U9t,[_[14]||(_[14]=I("label",null,"文件名:",-1)),$(L,{modelValue:c.value.filename,"onUpdate:modelValue":_[2]||(_[2]=j=>c.value.filename=j),placeholder:"自动生成",style:{width:"300px"}},null,8,["modelValue"])]),I("div",H9t,[_[15]||(_[15]=I("label",null,"并发数:",-1)),$(M,{modelValue:c.value.concurrency,"onUpdate:modelValue":_[3]||(_[3]=j=>c.value.concurrency=j),min:1,max:10,style:{width:"120px"}},null,8,["modelValue"]),_[16]||(_[16]=I("span",{class:"setting-tip"},"同时下载的章节数量",-1))]),I("div",W9t,[_[17]||(_[17]=I("label",null,"重试次数:",-1)),$(M,{modelValue:c.value.retryCount,"onUpdate:modelValue":_[4]||(_[4]=j=>c.value.retryCount=j),min:0,max:5,style:{width:"120px"}},null,8,["modelValue"]),_[18]||(_[18]=I("span",{class:"setting-tip"},"章节下载失败时的重试次数",-1))]),I("div",G9t,[_[19]||(_[19]=I("label",null,"章节间隔:",-1)),$(M,{modelValue:c.value.interval,"onUpdate:modelValue":_[5]||(_[5]=j=>c.value.interval=j),min:0,max:5e3,style:{width:"120px"}},null,8,["modelValue"]),_[20]||(_[20]=I("span",{class:"setting-tip"},"章节下载间隔时间(毫秒)",-1))])])])):Ie("",!0)])]),_:1},8,["visible","confirm-loading"])}}},q9t=cr(K9t,[["__scopeId","data-v-478714de"]]);class Y9t{constructor(){this.tasks=new Map,this.isDownloading=!1,this.currentTask=null,this.downloadQueue=[],this.maxConcurrent=3,this.activeDownloads=new Set,this.loadTasksFromStorage(),setInterval(()=>{this.saveTasksToStorage()},5e3)}createTask(t,n,r={}){const i=this.generateTaskId(),a={id:i,novelTitle:t.title,novelId:t.id,novelUrl:t.url,novelAuthor:t.author||"未知",novelDescription:t.description||"",novelCover:t.cover||"",totalChapters:n.length,completedChapters:0,failedChapters:0,status:"pending",progress:0,createdAt:Date.now(),updatedAt:Date.now(),settings:{fileName:r.fileName||t.title,concurrent:r.concurrent||3,retryCount:r.retryCount||3,chapterInterval:r.chapterInterval||1e3,...r},chapters:n.map((s,l)=>({index:l,name:s.name||`第${l+1}章`,url:s.url,status:"pending",progress:0,content:"",size:0,error:null,retryCount:0,startTime:null,completeTime:null})),error:null,downloadedSize:0,totalSize:0,startTime:null,completeTime:null};return this.tasks.set(i,a),this.saveTasksToStorage(),a}async startTask(t){const n=this.tasks.get(t);if(!n)throw new Error("任务不存在");n.status!=="downloading"&&(n.status="downloading",n.startTime=n.startTime||Date.now(),n.updatedAt=Date.now(),this.updateTask(n),this.downloadQueue.includes(t)||this.downloadQueue.push(t),this.processDownloadQueue())}pauseTask(t){const n=this.tasks.get(t);if(!n)return;n.status="paused",n.updatedAt=Date.now(),this.updateTask(n);const r=this.downloadQueue.indexOf(t);r>-1&&this.downloadQueue.splice(r,1),this.activeDownloads.delete(t)}cancelTask(t){const n=this.tasks.get(t);n&&(this.pauseTask(t),n.chapters.forEach(r=>{r.status==="downloading"&&(r.status="pending",r.progress=0,r.startTime=null)}),n.status="pending",n.progress=0,this.updateTask(n))}deleteTask(t){this.tasks.get(t)&&(this.cancelTask(t),this.tasks.delete(t),this.saveTasksToStorage())}async retryChapter(t,n){const r=this.tasks.get(t);if(!r)return;const i=r.chapters[n];i&&(i.status="pending",i.error=null,i.retryCount=0,i.progress=0,this.updateTask(r),r.status==="downloading"&&this.downloadChapter(r,i))}async processDownloadQueue(){if(this.downloadQueue.length===0)return;const t=this.downloadQueue[0],n=this.tasks.get(t);if(!n||n.status!=="downloading"){this.downloadQueue.shift(),this.processDownloadQueue();return}this.currentTask=n,await this.downloadTask(n),this.downloadQueue.shift(),this.currentTask=null,this.downloadQueue.length>0&&setTimeout(()=>this.processDownloadQueue(),1e3)}async downloadTask(t){const n=t.chapters.filter(a=>a.status==="pending");if(n.length===0){this.completeTask(t);return}const r=Math.min(t.settings.concurrent,n.length),i=[];for(let a=0;ar.status==="pending");if(!n)break;await this.downloadChapter(t,n),t.settings.chapterInterval>0&&await this.sleep(t.settings.chapterInterval)}}async downloadChapter(t,n){if(n.status==="pending"){n.status="downloading",n.startTime=Date.now(),n.progress=0,this.updateTask(t);try{console.log(`开始下载章节: ${n.name}`);const r={play:n.url,flag:t.settings.flag||"",apiUrl:t.settings.apiUrl||"",extend:t.settings.extend||""},i=await Ka.parseEpisodePlayUrl(t.settings.module,r);console.log("章节播放解析结果:",i);let a=null;if(i.url&&i.url.startsWith("novel://")){const s=i.url.replace("novel://","");a=JSON.parse(s)}else throw new Error("无法解析小说内容,返回的不是小说格式");n.content=a.content||"",n.size=new Blob([n.content]).size,n.status="completed",n.progress=100,n.completeTime=Date.now(),t.completedChapters++,t.downloadedSize+=n.size,console.log(`章节下载完成: ${n.name}`)}catch(r){console.error("下载章节失败:",r),n.status="failed",n.error=r.message,n.retryCount++,t.failedChapters++,n.retryCounti.status==="completed"),r=t.chapters.some(i=>i.status==="failed");n?(t.status="completed",t.completeTime=Date.now()):r?t.status="failed":t.status="paused",t.totalSize=t.chapters.reduce((i,a)=>i+(a.size||0),0),t.updatedAt=Date.now(),this.updateTask(t)}updateTaskProgress(t){const n=t.chapters.filter(r=>r.status==="completed").length;t.progress=Math.round(n/t.totalChapters*100),t.completedChapters=n,t.failedChapters=t.chapters.filter(r=>r.status==="failed").length,t.downloadedSize=t.chapters.filter(r=>r.status==="completed").reduce((r,i)=>r+(i.size||0),0),t.totalSize=t.chapters.reduce((r,i)=>r+(i.size||0),0)}updateTask(t){t.updatedAt=Date.now(),this.tasks.set(t.id,{...t}),this.notifyTaskUpdate(t)}exportToTxt(t){const n=this.tasks.get(t);if(!n)return null;const r=n.chapters.filter(c=>c.status==="completed").sort((c,d)=>c.index-d.index);if(r.length===0)throw new Error("没有已完成的章节可以导出");let i=`${n.novelTitle} + `,Yt=()=>{if(a.value)try{a.value.layers.update({name:"qualityLayer",html:Gt(),style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"flex",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden",alignItems:"center",justifyContent:"center"}}),dn(()=>{const $t=a.value.layers.qualityLayer;$t&&$t.addEventListener("click",sn)}),console.log("显示画质选择layer")}catch($t){console.error("显示画质选择layer失败:",$t)}},sn=$t=>{const bn=$t.target.closest(".quality-layer-item"),kr=$t.target.closest(".quality-layer-close"),ar=$t.target.closest(".quality-layer-background");if(kr||ar&&$t.target===ar)An();else if(bn){const Ur=parseInt(bn.dataset.qualityIndex);isNaN(Ur)||(Xn(Ur),An())}},An=()=>{if(a.value)try{const $t=a.value.layers.qualityLayer;$t&&$t.removeEventListener("click",sn),a.value.layers.update({name:"qualityLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"}}),console.log("隐藏画质选择layer")}catch($t){console.error("隐藏画质选择layer失败:",$t)}},un=()=>{if(a.value)try{const $t=a.value.layers.qualityLayer;$t&&$t.style.display!=="none"?An():Yt()}catch($t){console.error("切换画质layer失败:",$t),Yt()}},Xn=$t=>{console.log("从layer选择画质:",$t);const bn=M.value[$t];bn&&Ye(bn.name)};It(()=>n.videoUrl,async $t=>{$t&&n.visible&&(Jt(),ie(),await dn(),await me($t))},{immediate:!0}),It(()=>n.visible,async $t=>{$t&&n.videoUrl?(await dn(),await me(n.videoUrl)):$t||(s.value&&s.value.destroy(),a.value&&(a.value.destroy(),a.value=null))}),It(()=>n.qualities,()=>{ge()},{immediate:!0,deep:!0}),It(()=>n.initialQuality,$t=>{$t&&$t!==P.value&&(P.value=$t)});const Cr=()=>{if(i.value&&a.value){const $t=rn();$t!==h.value&&(h.value=$t,i.value.style.height=`${$t}px`,a.value.resize())}},ro=()=>{console.log("检测到代理设置变化,重新初始化播放器"),L.value++,n.videoUrl&&n.visible&&dn(()=>{me(n.videoUrl)})};return fn(()=>{console.log("ArtVideoPlayer 组件已挂载 - 动态高度版本"),window.addEventListener("resize",Cr),window.addEventListener("addressSettingsChanged",ro),Q(),ge()}),Yr(()=>{if(console.log("ArtVideoPlayer 组件即将卸载"),window.removeEventListener("resize",Cr),window.removeEventListener("addressSettingsChanged",ro),We(),s.value&&s.value.destroy(),a.value){if(a.value.customPlayer&&a.value.customPlayerFormat){const $t=a.value.customPlayerFormat;$b[$t]&&$b[$t](a.value.customPlayer)}a.value.destroy(),a.value=null}}),($t,bn)=>{const kr=Ee("a-card");return e.visible&&(e.videoUrl||e.needsParsing)?(z(),Ze(kr,{key:0,class:"video-player-section"},{default:ce(()=>[O(nK,{"episode-name":e.episodeName,"player-type":e.playerType,episodes:e.episodes,"auto-next-enabled":g.value,"loop-enabled":y.value,"countdown-enabled":x.value,"skip-enabled":tt(Y),"show-debug-button":B.value,qualities:U.value,"current-quality":H.value,"show-parser-selector":e.needsParsing,"needs-parsing":e.needsParsing,"parse-data":e.parseData,onToggleAutoNext:dt,onToggleLoop:Qe,onToggleCountdown:Le,onPlayerChange:ft,onOpenSkipSettings:xt,onToggleDebug:ht,onProxyChange:Ct,onQualityChange:Ke,onParserChange:ct,onClose:at},null,8,["episode-name","player-type","episodes","auto-next-enabled","loop-enabled","countdown-enabled","skip-enabled","show-debug-button","qualities","current-quality","show-parser-selector","needs-parsing","parse-data"]),Ci(I("div",oRt,[I("div",{ref_key:"artPlayerContainer",ref:i,class:"art-player-container"},null,512),w.value?(z(),X("div",sRt,[I("div",aRt,[bn[0]||(bn[0]=I("div",{class:"auto-next-title"},[I("span",null,"即将播放下一集")],-1)),Oe()?(z(),X("div",lRt,je(Oe().name),1)):Ae("",!0),I("div",uRt,je(S.value)+" 秒后自动播放 ",1),I("div",{class:"auto-next-buttons"},[I("button",{onClick:$e,class:"btn-play-now"},"立即播放"),I("button",{onClick:We,class:"btn-cancel"},"取消")])])])):Ae("",!0),O(C4e,{visible:tt(W),"skip-intro-enabled":tt(K),"skip-outro-enabled":tt(oe),"skip-intro-seconds":tt(ae),"skip-outro-seconds":tt(ee),onClose:tt(Fe),onSave:Rt},null,8,["visible","skip-intro-enabled","skip-outro-enabled","skip-intro-seconds","skip-outro-seconds","onClose"]),O(rK,{visible:T.value,"video-url":$.value||e.videoUrl,headers:e.headers,"player-type":"artplayer","detected-format":D.value,"proxy-url":j.value,onClose:Vt},null,8,["visible","video-url","headers","detected-format","proxy-url"])],512),[[Ko,n.visible]])]),_:1})):Ae("",!0)}}},D4e=sr(cRt,[["__scopeId","data-v-e22e3fdf"]]),dRt={class:"route-tabs"},fRt={class:"route-name"},hRt={key:0,class:"episodes-section"},pRt={class:"episodes-header"},vRt={class:"episodes-controls"},mRt={class:"episode-text"},gRt={__name:"EpisodeSelector",props:{videoDetail:{type:Object,default:()=>({})},currentRoute:{type:Number,default:0},currentEpisode:{type:Number,default:0}},emits:["route-change","episode-change"],setup(e,{emit:t}){const n=e,r=t,i=ue("asc"),a=ue(localStorage.getItem("episodeDisplayStrategy")||"full"),s=ue(localStorage.getItem("episodeLayoutColumns")||"smart"),l=x=>x?x.split("#").map(E=>{const[_,T]=E.split("$");return{name:_?.trim()||"未知集数",url:T?.trim()||""}}).filter(E=>E.url):[],c=x=>{if(!x)return"未知";switch(a.value){case"simple":const E=x.match(/\d+/);return E?E[0]:x;case"smart":return x.replace(/^(第|集|话|期|EP|Episode)\s*/i,"").replace(/\s*(集|话|期)$/i,"");case"full":default:return x}},d=F(()=>{if(!n.videoDetail?.vod_play_from||!n.videoDetail?.vod_play_url)return[];const x=n.videoDetail.vod_play_from.split("$$$"),E=n.videoDetail.vod_play_url.split("$$$");return x.map((_,T)=>({name:_.trim(),episodes:l(E[T]||"")}))}),h=F(()=>{let x=d.value[n.currentRoute]?.episodes||[];return x=x.map(E=>({...E,displayName:c(E.name)})),i.value==="desc"&&(x=[...x].reverse()),x}),p=F(()=>{if(!h.value.length)return 12;const x=Math.max(...h.value.map(T=>(T.displayName||T.name||"").length)),E=x+1;let _=Math.floor(60/E);return _=Math.max(1,Math.min(12,_)),console.log("智能布局计算:",{maxNameLength:x,buttonWidth:E,columns:_}),_}),v=F(()=>s.value==="smart"?p.value:parseInt(s.value)||12),g=x=>{r("route-change",x)},y=x=>{r("episode-change",x)},S=()=>{i.value=i.value==="asc"?"desc":"asc"},k=x=>{a.value=x,localStorage.setItem("episodeDisplayStrategy",x)},w=x=>{s.value=x,localStorage.setItem("episodeLayoutColumns",x)};return It(a,()=>{}),(x,E)=>{const _=Ee("a-badge"),T=Ee("a-button"),D=Ee("a-option"),P=Ee("a-select"),M=Ee("a-card"),$=Ee("a-empty");return d.value.length>0?(z(),Ze(M,{key:0,class:"play-section"},{default:ce(()=>[E[10]||(E[10]=I("h3",null,"播放线路",-1)),I("div",dRt,[(z(!0),X(Pt,null,cn(d.value,(L,B)=>(z(),Ze(T,{key:B,type:e.currentRoute===B?"primary":"outline",onClick:j=>g(B),class:"route-btn"},{default:ce(()=>[I("span",fRt,je(L.name),1),O(_,{count:L.episodes.length,class:"route-badge"},null,8,["count"])]),_:2},1032,["type","onClick"]))),128))]),h.value.length>0?(z(),X("div",hRt,[I("div",pRt,[I("h4",null,"选集列表 ("+je(h.value.length)+"集)",1),I("div",vRt,[O(T,{type:"text",size:"small",onClick:S,title:i.value==="asc"?"切换为倒序":"切换为正序",class:"sort-btn"},{icon:ce(()=>[i.value==="asc"?(z(),Ze(tt(Vve),{key:0})):(z(),Ze(tt(zve),{key:1}))]),default:ce(()=>[He(" "+je(i.value==="asc"?"正序":"倒序"),1)]),_:1},8,["title"]),O(P,{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=L=>a.value=L),onChange:k,size:"small",class:"strategy-select",style:{width:"150px"},position:"bl","popup-container":"body"},{prefix:ce(()=>[O(tt(Lf))]),default:ce(()=>[O(D,{value:"full"},{default:ce(()=>[...E[2]||(E[2]=[He("完整显示",-1)])]),_:1}),O(D,{value:"smart"},{default:ce(()=>[...E[3]||(E[3]=[He("智能去重",-1)])]),_:1}),O(D,{value:"simple"},{default:ce(()=>[...E[4]||(E[4]=[He("精简显示",-1)])]),_:1})]),_:1},8,["modelValue"]),O(P,{modelValue:s.value,"onUpdate:modelValue":E[1]||(E[1]=L=>s.value=L),onChange:w,size:"small",class:"layout-select",style:{width:"120px"},position:"bl","popup-container":"body"},{prefix:ce(()=>[O(tt(Xve))]),default:ce(()=>[O(D,{value:"smart"},{default:ce(()=>[...E[5]||(E[5]=[He("智能",-1)])]),_:1}),O(D,{value:"12"},{default:ce(()=>[...E[6]||(E[6]=[He("12列",-1)])]),_:1}),O(D,{value:"9"},{default:ce(()=>[...E[7]||(E[7]=[He("9列",-1)])]),_:1}),O(D,{value:"6"},{default:ce(()=>[...E[8]||(E[8]=[He("6列",-1)])]),_:1}),O(D,{value:"3"},{default:ce(()=>[...E[9]||(E[9]=[He("3列",-1)])]),_:1})]),_:1},8,["modelValue"])])]),I("div",{class:"episodes-grid",style:qe({"--episodes-columns":v.value})},[(z(!0),X(Pt,null,cn(h.value,(L,B)=>(z(),Ze(T,{key:B,type:e.currentEpisode===B?"primary":"outline",onClick:j=>y(B),class:"episode-btn",size:"small",title:L.name},{default:ce(()=>[I("span",mRt,je(L.displayName||L.name),1)]),_:2},1032,["type","onClick","title"]))),128))],4)])):Ae("",!0)]),_:1})):(z(),Ze(M,{key:1,class:"no-play-section"},{default:ce(()=>[O($,{description:"暂无播放资源"})]),_:1}))}}},yRt=sr(gRt,[["__scopeId","data-v-1d197d0e"]]),bRt={class:"reader-header"},_Rt={class:"header-left"},SRt={class:"header-center"},kRt={class:"book-info"},wRt=["title"],xRt={key:0,class:"chapter-info"},CRt=["title"],ERt={key:0,class:"chapter-progress"},TRt={class:"header-right"},ARt={class:"chapter-nav"},IRt={class:"chapter-dropdown"},LRt={class:"chapter-dropdown-header"},DRt={class:"total-count"},PRt={class:"chapter-dropdown-content"},RRt={class:"chapter-option"},MRt={class:"chapter-number"},ORt=["title"],$Rt={__name:"ReaderHeader",props:{bookTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},visible:{type:Boolean,default:!1},readingSettings:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=t,r=ue(!1),i=()=>{n("close")},a=()=>{n("next-chapter")},s=()=>{n("prev-chapter")},l=p=>{n("chapter-selected",p)},c=()=>{n("settings-change",{showDialog:!0})},d=async()=>{try{document.fullscreenElement?(await document.exitFullscreen(),r.value=!1):(await document.documentElement.requestFullscreen(),r.value=!0)}catch(p){console.warn("全屏切换失败:",p)}},h=()=>{r.value=!!document.fullscreenElement};return fn(()=>{document.addEventListener("fullscreenchange",h)}),Yr(()=>{document.removeEventListener("fullscreenchange",h)}),(p,v)=>{const g=Ee("a-button"),y=Ee("a-doption"),S=Ee("a-dropdown");return z(),X("div",bRt,[I("div",_Rt,[O(g,{type:"text",onClick:i,class:"close-btn"},{icon:ce(()=>[O(tt(rs))]),default:ce(()=>[v[0]||(v[0]=He(" 关闭阅读器 ",-1))]),_:1})]),I("div",SRt,[I("div",kRt,[I("div",{class:"book-title",title:e.bookTitle},je(e.bookTitle),9,wRt),e.chapterName?(z(),X("div",xRt,[I("span",{class:"chapter-name",title:e.chapterName},je(e.chapterName),9,CRt),e.chapters.length>0?(z(),X("span",ERt," ("+je(e.currentChapterIndex+1)+"/"+je(e.chapters.length)+") ",1)):Ae("",!0)])):Ae("",!0)])]),I("div",TRt,[I("div",ARt,[O(g,{type:"text",disabled:e.currentChapterIndex<=0,onClick:s,class:"nav-btn",title:"上一章 (←)"},{icon:ce(()=>[O(tt(Il))]),_:1},8,["disabled"]),O(g,{type:"text",disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:a,class:"nav-btn",title:"下一章 (→)"},{icon:ce(()=>[O(tt(Hi))]),_:1},8,["disabled"])]),O(S,{onSelect:l,trigger:"click",position:"bottom"},{content:ce(()=>[I("div",IRt,[I("div",LRt,[v[2]||(v[2]=I("span",null,"章节列表",-1)),I("span",DRt,"(共"+je(e.chapters.length)+"章)",1)]),I("div",PRt,[(z(!0),X(Pt,null,cn(e.chapters,(k,w)=>(z(),Ze(y,{key:w,value:w,class:fe({"current-chapter":w===e.currentChapterIndex})},{default:ce(()=>[I("div",RRt,[I("span",MRt,je(w+1)+".",1),I("span",{class:"chapter-title",title:k.name},je(k.name),9,ORt),w===e.currentChapterIndex?(z(),Ze(tt(ig),{key:0,class:"current-icon"})):Ae("",!0)])]),_:2},1032,["value","class"]))),128))])])]),default:ce(()=>[O(g,{type:"text",class:"chapter-list-btn",title:"章节列表"},{icon:ce(()=>[O(tt(sW))]),default:ce(()=>[v[1]||(v[1]=He(" 章节 ",-1))]),_:1})]),_:1}),O(g,{type:"text",onClick:c,class:"settings-btn",title:"阅读设置"},{icon:ce(()=>[O(tt(Lf))]),default:ce(()=>[v[3]||(v[3]=He(" 设置 ",-1))]),_:1}),O(g,{type:"text",onClick:d,class:"fullscreen-btn",title:r.value?"退出全屏":"全屏阅读"},{icon:ce(()=>[r.value?(z(),Ze(tt(aW),{key:0})):(z(),Ze(tt(Z5),{key:1}))]),_:1},8,["title"])])])}}},BRt=sr($Rt,[["__scopeId","data-v-28cb62d6"]]),NRt={class:"dialog-container"},FRt={class:"settings-content"},jRt={class:"setting-section"},VRt={class:"section-title"},zRt={class:"setting-item"},URt={class:"font-size-controls"},HRt={class:"font-size-value"},WRt={class:"setting-item"},GRt={class:"setting-item"},KRt={class:"setting-item"},qRt={class:"setting-section"},YRt={class:"section-title"},XRt={class:"theme-options"},ZRt=["onClick"],JRt={class:"theme-name"},QRt={key:0,class:"setting-section"},eMt={class:"section-title"},tMt={class:"color-settings"},nMt={class:"color-item"},rMt={class:"color-item"},iMt={class:"setting-section"},oMt={class:"section-title"},sMt={class:"dialog-footer"},aMt={class:"action-buttons"},lMt={__name:"ReadingSettingsDialog",props:{visible:{type:Boolean,default:!1},settings:{type:Object,default:()=>({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"})}},emits:["close","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue({...n.settings}),s=[{key:"light",name:"明亮",style:{backgroundColor:"#ffffff",color:"#333333"}},{key:"dark",name:"暗黑",style:{backgroundColor:"#1a1a1a",color:"#e6e6e6"}},{key:"sepia",name:"护眼",style:{backgroundColor:"#f4f1e8",color:"#5c4b37"}},{key:"green",name:"绿豆沙",style:{backgroundColor:"#c7edcc",color:"#2d5016"}},{key:"parchment",name:"羊皮纸",style:{backgroundColor:"#fdf6e3",color:"#657b83"}},{key:"night",name:"夜间护眼",style:{backgroundColor:"#2b2b2b",color:"#c9aa71"}},{key:"blue",name:"蓝光护眼",style:{backgroundColor:"#e8f4f8",color:"#1e3a5f"}},{key:"pink",name:"粉色护眼",style:{backgroundColor:"#fdf2f8",color:"#831843"}},{key:"custom",name:"自定义",style:{backgroundColor:"linear-gradient(45deg, #ff6b6b, #4ecdc4)",color:"#ffffff"}}],l=F(()=>{let g=a.value.backgroundColor,y=a.value.textColor;if(a.value.theme!=="custom"){const S=s.find(k=>k.key===a.value.theme);S&&(g=S.style.backgroundColor,y=S.style.color)}return{fontSize:`${a.value.fontSize}px`,lineHeight:a.value.lineHeight,fontFamily:a.value.fontFamily,backgroundColor:g,color:y,maxWidth:`${a.value.maxWidth}px`}}),c=g=>{const y=a.value.fontSize+g;y>=12&&y<=24&&(a.value.fontSize=y)},d=g=>{a.value.theme=g;const y=s.find(S=>S.key===g);y&&g!=="custom"&&(a.value.backgroundColor=y.style.backgroundColor,a.value.textColor=y.style.color)},h=()=>{a.value={fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"},gt.success("已重置为默认设置")},p=()=>{r("settings-change",{...a.value}),v(),gt.success("阅读设置已保存")},v=()=>{r("close")};return It(()=>n.visible,g=>{i.value=g,g&&(a.value={...n.settings})}),It(()=>n.settings,g=>{a.value={...g}},{deep:!0}),It(i,g=>{g||r("close")}),(g,y)=>{const S=Ee("a-button"),k=Ee("a-slider"),w=Ee("a-option"),x=Ee("a-select"),E=Ee("a-modal");return z(),Ze(E,{visible:i.value,"onUpdate:visible":y[7]||(y[7]=_=>i.value=_),title:"阅读设置",width:"500px",footer:!1,onCancel:v,class:"reading-settings-dialog"},{default:ce(()=>[I("div",NRt,[I("div",FRt,[I("div",jRt,[I("div",VRt,[O(tt(jve)),y[8]||(y[8]=I("span",null,"字体设置",-1))]),I("div",zRt,[y[9]||(y[9]=I("label",{class:"setting-label"},"字体大小",-1)),I("div",URt,[O(S,{size:"small",onClick:y[0]||(y[0]=_=>c(-1)),disabled:a.value.fontSize<=12},{icon:ce(()=>[O(tt(T0))]),_:1},8,["disabled"]),I("span",HRt,je(a.value.fontSize)+"px",1),O(S,{size:"small",onClick:y[1]||(y[1]=_=>c(1)),disabled:a.value.fontSize>=24},{icon:ce(()=>[O(tt(xf))]),_:1},8,["disabled"])])]),I("div",WRt,[y[10]||(y[10]=I("label",{class:"setting-label"},"行间距",-1)),O(k,{modelValue:a.value.lineHeight,"onUpdate:modelValue":y[2]||(y[2]=_=>a.value.lineHeight=_),min:1.2,max:2.5,step:.1,"format-tooltip":_=>`${_}`,class:"line-height-slider"},null,8,["modelValue","format-tooltip"])]),I("div",GRt,[y[18]||(y[18]=I("label",{class:"setting-label"},"字体族",-1)),O(x,{modelValue:a.value.fontFamily,"onUpdate:modelValue":y[3]||(y[3]=_=>a.value.fontFamily=_),class:"font-family-select"},{default:ce(()=>[O(w,{value:"system-ui"},{default:ce(()=>[...y[11]||(y[11]=[He("系统默认",-1)])]),_:1}),O(w,{value:"'Microsoft YaHei', sans-serif"},{default:ce(()=>[...y[12]||(y[12]=[He("微软雅黑",-1)])]),_:1}),O(w,{value:"'SimSun', serif"},{default:ce(()=>[...y[13]||(y[13]=[He("宋体",-1)])]),_:1}),O(w,{value:"'KaiTi', serif"},{default:ce(()=>[...y[14]||(y[14]=[He("楷体",-1)])]),_:1}),O(w,{value:"'SimHei', sans-serif"},{default:ce(()=>[...y[15]||(y[15]=[He("黑体",-1)])]),_:1}),O(w,{value:"'Times New Roman', serif"},{default:ce(()=>[...y[16]||(y[16]=[He("Times New Roman",-1)])]),_:1}),O(w,{value:"'Arial', sans-serif"},{default:ce(()=>[...y[17]||(y[17]=[He("Arial",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",KRt,[y[19]||(y[19]=I("label",{class:"setting-label"},"阅读宽度",-1)),O(k,{modelValue:a.value.maxWidth,"onUpdate:modelValue":y[4]||(y[4]=_=>a.value.maxWidth=_),min:600,max:1200,step:50,"format-tooltip":_=>`${_}px`,class:"max-width-slider"},null,8,["modelValue","format-tooltip"])])]),I("div",qRt,[I("div",YRt,[O(tt(uW)),y[20]||(y[20]=I("span",null,"主题设置",-1))]),I("div",XRt,[(z(),X(Pt,null,cn(s,_=>I("div",{key:_.key,class:fe(["theme-option",{active:a.value.theme===_.key}]),onClick:T=>d(_.key)},[I("div",{class:"theme-preview",style:qe(_.style)},[...y[21]||(y[21]=[I("div",{class:"preview-text"},"Aa",-1)])],4),I("div",JRt,je(_.name),1)],10,ZRt)),64))])]),a.value.theme==="custom"?(z(),X("div",QRt,[I("div",eMt,[O(tt(Fve)),y[22]||(y[22]=I("span",null,"自定义颜色",-1))]),I("div",tMt,[I("div",nMt,[y[23]||(y[23]=I("label",{class:"color-label"},"背景颜色",-1)),Ci(I("input",{type:"color","onUpdate:modelValue":y[5]||(y[5]=_=>a.value.backgroundColor=_),class:"color-picker"},null,512),[[Ql,a.value.backgroundColor]])]),I("div",rMt,[y[24]||(y[24]=I("label",{class:"color-label"},"文字颜色",-1)),Ci(I("input",{type:"color","onUpdate:modelValue":y[6]||(y[6]=_=>a.value.textColor=_),class:"color-picker"},null,512),[[Ql,a.value.textColor]])])])])):Ae("",!0),I("div",iMt,[I("div",oMt,[O(tt(x0)),y[25]||(y[25]=I("span",null,"预览效果",-1))]),I("div",{class:"preview-area",style:qe(l.value)},[...y[26]||(y[26]=[I("h3",{class:"preview-title"},"第一章 开始的地方",-1),I("p",{class:"preview-text"}," 这是一段示例文字,用于预览当前的阅读设置效果。您可以调整上方的设置来获得最佳的阅读体验。 字体大小、行间距、字体族和颜色主题都会影响阅读的舒适度。 ",-1)])],4)])]),I("div",sMt,[O(S,{onClick:h,class:"reset-btn"},{default:ce(()=>[...y[27]||(y[27]=[He(" 重置默认 ",-1)])]),_:1}),I("div",aMt,[O(S,{onClick:v},{default:ce(()=>[...y[28]||(y[28]=[He(" 取消 ",-1)])]),_:1}),O(S,{type:"primary",onClick:p},{default:ce(()=>[...y[29]||(y[29]=[He(" 保存设置 ",-1)])]),_:1})])])])]),_:1},8,["visible"])}}},uMt=sr(lMt,[["__scopeId","data-v-4de406c1"]]),cMt={key:0,class:"loading-container"},dMt={key:1,class:"error-container"},fMt={key:2,class:"chapter-container"},hMt=["innerHTML"],pMt={class:"chapter-navigation"},vMt={class:"chapter-progress"},mMt={key:3,class:"empty-container"},gMt={__name:"BookReader",props:{visible:{type:Boolean,default:!1},bookTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},bookDetail:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue(""),s=ue(null),l=ue(!1),c=ue({fontSize:16,lineHeight:1.8,fontFamily:"system-ui",backgroundColor:"#ffffff",textColor:"#333333",maxWidth:800,theme:"light"}),d=()=>{try{const $=localStorage.getItem("drplayer_reading_settings");if($){const L=JSON.parse($);c.value={...c.value,...L}}}catch($){console.warn("加载阅读设置失败:",$)}},h=()=>{try{localStorage.setItem("drplayer_reading_settings",JSON.stringify(c.value))}catch($){console.warn("保存阅读设置失败:",$)}},p=F(()=>({backgroundColor:c.value.backgroundColor,color:c.value.textColor})),v=F(()=>({fontSize:`${c.value.fontSize+4}px`,lineHeight:c.value.lineHeight,fontFamily:c.value.fontFamily,color:c.value.textColor})),g=F(()=>({fontSize:`${c.value.fontSize}px`,lineHeight:c.value.lineHeight,fontFamily:c.value.fontFamily,maxWidth:`${c.value.maxWidth}px`,color:c.value.textColor})),y=F(()=>s.value?.content?s.value.content.split(` +`).filter($=>$.trim()).map($=>`

${$.trim()}

`).join(""):""),S=$=>{try{if(!$.startsWith("novel://"))throw new Error("不是有效的小说内容格式");const L=$.substring(8),B=JSON.parse(L);if(!B.title||!B.content)throw new Error("小说内容格式不完整");return B}catch(L){throw console.error("解析小说内容失败:",L),new Error("解析小说内容失败: "+L.message)}},k=async $=>{if(!n.chapters[$]){a.value="章节不存在";return}i.value=!0,a.value="",s.value=null;try{const L=n.chapters[$];console.log("加载章节:",L);const B=await Ka.getPlayUrl(n.bookDetail.module,L.url,n.bookDetail.api_url,n.bookDetail.ext);if(console.log("章节内容响应:",B),B&&B.url){const j=S(B.url);s.value=j,console.log("解析后的章节内容:",j)}else throw new Error("获取章节内容失败")}catch(L){console.error("加载章节内容失败:",L),a.value=L.message||"加载章节内容失败",gt.error(a.value)}finally{i.value=!1}},w=()=>{k(n.currentChapterIndex)},x=()=>{r("close")},E=()=>{n.currentChapterIndex{n.currentChapterIndex>0&&r("prev-chapter")},T=$=>{r("chapter-selected",$)},D=$=>{$.showDialog&&(l.value=!0)},P=$=>{c.value={...c.value,...$},h(),r("settings-change",c.value)};It(()=>n.currentChapterIndex,$=>{n.visible&&$>=0&&k($)},{immediate:!0}),It(()=>n.visible,$=>{$&&n.currentChapterIndex>=0&&k(n.currentChapterIndex)});const M=$=>{if(n.visible)switch($.key){case"ArrowLeft":$.preventDefault(),_();break;case"ArrowRight":$.preventDefault(),E();break;case"Escape":$.preventDefault(),x();break}};return fn(()=>{d(),document.addEventListener("keydown",M)}),Yr(()=>{document.removeEventListener("keydown",M)}),($,L)=>{const B=Ee("a-spin"),j=Ee("a-result"),H=Ee("a-button"),U=Ee("a-empty");return e.visible?(z(),X("div",{key:0,class:"book-reader",style:qe(p.value)},[O(BRt,{"chapter-name":e.chapterName,"book-title":e.bookTitle,visible:e.visible,chapters:e.chapters,"current-chapter-index":e.currentChapterIndex,"reading-settings":c.value,onClose:x,onSettingsChange:D,onNextChapter:E,onPrevChapter:_,onChapterSelected:T},null,8,["chapter-name","book-title","visible","chapters","current-chapter-index","reading-settings"]),I("div",{class:"reader-content",style:qe(p.value)},[i.value?(z(),X("div",cMt,[O(B,{size:40}),L[1]||(L[1]=I("div",{class:"loading-text"},"正在加载章节内容...",-1))])):a.value?(z(),X("div",dMt,[O(j,{status:"error",title:a.value},null,8,["title"]),O(H,{type:"primary",onClick:w},{default:ce(()=>[...L[2]||(L[2]=[He("重新加载",-1)])]),_:1})])):s.value?(z(),X("div",fMt,[I("h1",{class:"chapter-title",style:qe(v.value)},je(s.value.title),5),I("div",{class:"chapter-text",style:qe(g.value),innerHTML:y.value},null,12,hMt),I("div",pMt,[O(H,{disabled:e.currentChapterIndex<=0,onClick:_,class:"nav-btn prev-btn"},{icon:ce(()=>[O(tt(Il))]),default:ce(()=>[L[3]||(L[3]=He(" 上一章 ",-1))]),_:1},8,["disabled"]),I("span",vMt,je(e.currentChapterIndex+1)+" / "+je(e.chapters.length),1),O(H,{disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:E,class:"nav-btn next-btn"},{icon:ce(()=>[O(tt(Hi))]),default:ce(()=>[L[4]||(L[4]=He(" 下一章 ",-1))]),_:1},8,["disabled"])])])):(z(),X("div",mMt,[O(U,{description:"暂无章节内容"})]))],4),O(uMt,{visible:l.value,settings:c.value,onClose:L[0]||(L[0]=W=>l.value=!1),onSettingsChange:P},null,8,["visible","settings"])],4)):Ae("",!0)}}},yMt=sr(gMt,[["__scopeId","data-v-0dd837ef"]]),bMt={class:"reader-header"},_Mt={class:"header-left"},SMt={class:"header-center"},kMt={class:"book-info"},wMt=["title"],xMt={key:0,class:"chapter-info"},CMt=["title"],EMt={key:0,class:"chapter-progress"},TMt={class:"header-right"},AMt={class:"chapter-nav"},IMt={class:"chapter-dropdown"},LMt={class:"chapter-dropdown-header"},DMt={class:"total-count"},PMt={class:"chapter-dropdown-content"},RMt={class:"chapter-option"},MMt={class:"chapter-number"},OMt=["title"],$Mt={__name:"ComicReaderHeader",props:{comicTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},visible:{type:Boolean,default:!1},readingSettings:{type:Object,default:()=>({})}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change","toggle-fullscreen"],setup(e,{emit:t}){const n=t,r=ue(!1),i=()=>{n("close")},a=()=>{n("prev-chapter")},s=()=>{n("next-chapter")},l=p=>{n("chapter-selected",p)},c=()=>{n("settings-change",{showDialog:!0})},d=()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen()},h=()=>{r.value=!!document.fullscreenElement};return fn(()=>{document.addEventListener("fullscreenchange",h)}),Yr(()=>{document.removeEventListener("fullscreenchange",h)}),(p,v)=>{const g=Ee("a-button"),y=Ee("a-doption"),S=Ee("a-dropdown");return z(),X("div",bMt,[I("div",_Mt,[O(g,{type:"text",onClick:i,class:"close-btn"},{icon:ce(()=>[O(tt(rs))]),default:ce(()=>[v[0]||(v[0]=He(" 关闭阅读器 ",-1))]),_:1})]),I("div",SMt,[I("div",kMt,[I("div",{class:"book-title",title:e.comicTitle},je(e.comicTitle),9,wMt),e.chapterName?(z(),X("div",xMt,[I("span",{class:"chapter-name",title:e.chapterName},je(e.chapterName),9,CMt),e.chapters.length>0?(z(),X("span",EMt," ("+je(e.currentChapterIndex+1)+"/"+je(e.chapters.length)+") ",1)):Ae("",!0)])):Ae("",!0)])]),I("div",TMt,[I("div",AMt,[O(g,{type:"text",disabled:e.currentChapterIndex<=0,onClick:a,class:"nav-btn",title:"上一章 (←)"},{icon:ce(()=>[O(tt(Il))]),_:1},8,["disabled"]),O(g,{type:"text",disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:s,class:"nav-btn",title:"下一章 (→)"},{icon:ce(()=>[O(tt(Hi))]),_:1},8,["disabled"])]),O(S,{onSelect:l,trigger:"click",position:"bottom"},{content:ce(()=>[I("div",IMt,[I("div",LMt,[v[2]||(v[2]=I("span",null,"章节列表",-1)),I("span",DMt,"(共"+je(e.chapters.length)+"章)",1)]),I("div",PMt,[(z(!0),X(Pt,null,cn(e.chapters,(k,w)=>(z(),Ze(y,{key:w,value:w,class:fe({"current-chapter":w===e.currentChapterIndex})},{default:ce(()=>[I("div",RMt,[I("span",MMt,je(w+1)+".",1),I("span",{class:"chapter-title",title:k.name},je(k.name),9,OMt),w===e.currentChapterIndex?(z(),Ze(tt(ig),{key:0,class:"current-icon"})):Ae("",!0)])]),_:2},1032,["value","class"]))),128))])])]),default:ce(()=>[O(g,{type:"text",class:"chapter-list-btn",title:"章节列表"},{icon:ce(()=>[O(tt(sW))]),default:ce(()=>[v[1]||(v[1]=He(" 章节 ",-1))]),_:1})]),_:1}),O(g,{type:"text",onClick:c,class:"settings-btn",title:"阅读设置"},{icon:ce(()=>[O(tt(Lf))]),default:ce(()=>[v[3]||(v[3]=He(" 设置 ",-1))]),_:1}),O(g,{type:"text",onClick:d,class:"fullscreen-btn",title:r.value?"退出全屏":"全屏阅读"},{icon:ce(()=>[r.value?(z(),Ze(tt(aW),{key:0})):(z(),Ze(tt(Z5),{key:1}))]),_:1},8,["title"])])])}}},BMt=sr($Mt,[["__scopeId","data-v-1f6a371c"]]),NMt={class:"comic-settings"},FMt={class:"setting-section"},jMt={class:"setting-item"},VMt={class:"setting-control"},zMt={class:"setting-value"},UMt={class:"setting-item"},HMt={class:"setting-control"},WMt={class:"setting-value"},GMt={class:"setting-item"},KMt={class:"setting-control"},qMt={class:"setting-value"},YMt={class:"setting-section"},XMt={class:"setting-item"},ZMt={class:"setting-item"},JMt={class:"setting-item"},QMt={class:"setting-control"},e9t={class:"setting-value"},t9t={class:"setting-section"},n9t={class:"theme-options"},r9t=["onClick"],i9t={class:"theme-name"},o9t={key:0,class:"setting-section"},s9t={class:"color-settings"},a9t={class:"color-item"},l9t={class:"color-item"},u9t={class:"setting-actions"},c9t={__name:"ComicSettingsDialog",props:{visible:{type:Boolean,default:!1},settings:{type:Object,default:()=>({})}},emits:["close","settings-change"],setup(e,{emit:t}){const n=e,r=t,i={imageWidth:800,imageGap:10,pagePadding:20,readingDirection:"vertical",imageFit:"width",preloadPages:3,backgroundColor:"#000000",textColor:"#ffffff",theme:"dark"},a=ue({...i,...n.settings}),s=[{key:"light",name:"明亮",style:{backgroundColor:"#ffffff",color:"#333333"}},{key:"dark",name:"暗黑",style:{backgroundColor:"#1a1a1a",color:"#e6e6e6"}},{key:"sepia",name:"护眼",style:{backgroundColor:"#f4f1e8",color:"#5c4b37"}},{key:"green",name:"绿豆沙",style:{backgroundColor:"#c7edcc",color:"#2d5016"}},{key:"parchment",name:"羊皮纸",style:{backgroundColor:"#fdf6e3",color:"#657b83"}},{key:"night",name:"夜间护眼",style:{backgroundColor:"#2b2b2b",color:"#c9aa71"}},{key:"blue",name:"蓝光护眼",style:{backgroundColor:"#e8f4f8",color:"#1e3a5f"}},{key:"pink",name:"粉色护眼",style:{backgroundColor:"#fdf2f8",color:"#831843"}},{key:"custom",name:"自定义",style:{backgroundColor:"linear-gradient(45deg, #ff6b6b, #4ecdc4)",color:"#ffffff"}}];It(()=>n.settings,p=>{a.value={...i,...p}},{deep:!0});const l=()=>{r("close")},c=()=>{r("settings-change",{...a.value})},d=p=>{a.value.theme=p;const v=s.find(g=>g.key===p);v&&p!=="custom"&&(a.value.backgroundColor=v.style.backgroundColor,a.value.textColor=v.style.color),c()},h=()=>{a.value={...i},c()};return(p,v)=>{const g=Ee("a-slider"),y=Ee("a-radio"),S=Ee("a-radio-group"),k=Ee("a-option"),w=Ee("a-select"),x=Ee("a-button"),E=Ee("a-modal");return z(),Ze(E,{visible:e.visible,title:"漫画阅读设置",width:480,footer:!1,onCancel:l,"unmount-on-close":""},{default:ce(()=>[I("div",NMt,[I("div",FMt,[v[11]||(v[11]=I("h3",{class:"section-title"},"显示设置",-1)),I("div",jMt,[v[8]||(v[8]=I("label",{class:"setting-label"},"图片宽度",-1)),I("div",VMt,[O(g,{modelValue:a.value.imageWidth,"onUpdate:modelValue":v[0]||(v[0]=_=>a.value.imageWidth=_),min:300,max:1200,step:50,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",zMt,je(a.value.imageWidth)+"px",1)])]),I("div",UMt,[v[9]||(v[9]=I("label",{class:"setting-label"},"图片间距",-1)),I("div",HMt,[O(g,{modelValue:a.value.imageGap,"onUpdate:modelValue":v[1]||(v[1]=_=>a.value.imageGap=_),min:0,max:50,step:5,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",WMt,je(a.value.imageGap)+"px",1)])]),I("div",GMt,[v[10]||(v[10]=I("label",{class:"setting-label"},"页面边距",-1)),I("div",KMt,[O(g,{modelValue:a.value.pagePadding,"onUpdate:modelValue":v[2]||(v[2]=_=>a.value.pagePadding=_),min:10,max:100,step:10,"show-tooltip":!0,"format-tooltip":_=>`${_}px`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",qMt,je(a.value.pagePadding)+"px",1)])])]),I("div",YMt,[v[21]||(v[21]=I("h3",{class:"section-title"},"阅读模式",-1)),I("div",XMt,[v[14]||(v[14]=I("label",{class:"setting-label"},"阅读方向",-1)),O(S,{modelValue:a.value.readingDirection,"onUpdate:modelValue":v[3]||(v[3]=_=>a.value.readingDirection=_),onChange:c},{default:ce(()=>[O(y,{value:"vertical"},{default:ce(()=>[...v[12]||(v[12]=[He("垂直滚动",-1)])]),_:1}),O(y,{value:"horizontal"},{default:ce(()=>[...v[13]||(v[13]=[He("水平翻页",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",ZMt,[v[19]||(v[19]=I("label",{class:"setting-label"},"图片适应",-1)),O(w,{modelValue:a.value.imageFit,"onUpdate:modelValue":v[4]||(v[4]=_=>a.value.imageFit=_),onChange:c,style:{width:"200px"}},{default:ce(()=>[O(k,{value:"width"},{default:ce(()=>[...v[15]||(v[15]=[He("适应宽度",-1)])]),_:1}),O(k,{value:"height"},{default:ce(()=>[...v[16]||(v[16]=[He("适应高度",-1)])]),_:1}),O(k,{value:"contain"},{default:ce(()=>[...v[17]||(v[17]=[He("完整显示",-1)])]),_:1}),O(k,{value:"cover"},{default:ce(()=>[...v[18]||(v[18]=[He("填充显示",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",JMt,[v[20]||(v[20]=I("label",{class:"setting-label"},"预加载页数",-1)),I("div",QMt,[O(g,{modelValue:a.value.preloadPages,"onUpdate:modelValue":v[5]||(v[5]=_=>a.value.preloadPages=_),min:1,max:10,step:1,"show-tooltip":!0,"format-tooltip":_=>`${_}页`,onChange:c},null,8,["modelValue","format-tooltip"]),I("span",e9t,je(a.value.preloadPages)+"页",1)])])]),I("div",t9t,[v[23]||(v[23]=I("h3",{class:"section-title"},"主题设置",-1)),I("div",n9t,[(z(),X(Pt,null,cn(s,_=>I("div",{key:_.key,class:fe(["theme-option",{active:a.value.theme===_.key}]),onClick:T=>d(_.key)},[I("div",{class:"theme-preview",style:qe(_.style)},[...v[22]||(v[22]=[I("div",{class:"preview-text"},"Aa",-1)])],4),I("div",i9t,je(_.name),1)],10,r9t)),64))])]),a.value.theme==="custom"?(z(),X("div",o9t,[v[26]||(v[26]=I("h3",{class:"section-title"},"自定义颜色",-1)),I("div",s9t,[I("div",a9t,[v[24]||(v[24]=I("label",{class:"color-label"},"背景颜色",-1)),Ci(I("input",{type:"color","onUpdate:modelValue":v[6]||(v[6]=_=>a.value.backgroundColor=_),class:"color-picker",onChange:c},null,544),[[Ql,a.value.backgroundColor]])]),I("div",l9t,[v[25]||(v[25]=I("label",{class:"color-label"},"文字颜色",-1)),Ci(I("input",{type:"color","onUpdate:modelValue":v[7]||(v[7]=_=>a.value.textColor=_),class:"color-picker",onChange:c},null,544),[[Ql,a.value.textColor]])])])])):Ae("",!0),I("div",u9t,[O(x,{onClick:h,type:"outline"},{default:ce(()=>[...v[27]||(v[27]=[He(" 重置默认 ",-1)])]),_:1}),O(x,{onClick:l,type:"primary"},{default:ce(()=>[...v[28]||(v[28]=[He(" 完成 ",-1)])]),_:1})])])]),_:1},8,["visible"])}}},d9t=sr(c9t,[["__scopeId","data-v-6adf651b"]]),f9t={key:0,class:"comic-reader"},h9t={key:0,class:"loading-container"},p9t={key:1,class:"error-container"},v9t={key:2,class:"comic-container"},m9t={key:0,class:"image-loading"},g9t={key:1,class:"image-error"},y9t=["src","alt","onLoad","onError","onClick"],b9t={key:3,class:"image-index"},_9t={class:"chapter-navigation"},S9t={class:"chapter-info"},k9t={class:"chapter-progress"},w9t={class:"page-progress"},x9t={key:3,class:"empty-container"},C9t={class:"viewer"},E9t=["src","alt","data-source","title"],T9t={__name:"ComicReader",props:{visible:{type:Boolean,default:!1},comicTitle:{type:String,default:""},chapterName:{type:String,default:""},chapters:{type:Array,default:()=>[]},currentChapterIndex:{type:Number,default:0},comicDetail:{type:Object,default:()=>({})},comicContent:{type:Object,default:null}},emits:["close","next-chapter","prev-chapter","chapter-selected","settings-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue(""),s=ue([]),l=ue(!1),c=ue([]),d=ue({inline:!1,button:!0,navbar:!0,title:!0,toolbar:{zoomIn:1,zoomOut:1,oneToOne:1,reset:1,prev:1,play:{show:1,size:"large"},next:1,rotateLeft:1,rotateRight:1,flipHorizontal:1,flipVertical:1},tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,backdrop:!0}),h=ue({imageWidth:800,imageGap:10,pagePadding:20,readingDirection:"vertical",imageFit:"width",preloadPages:3,backgroundColor:"#1a1a1a",textColor:"#e6e6e6",theme:"dark",showPageNumber:!0}),p=()=>{try{const Y=localStorage.getItem("drplayer_comic_reading_settings");if(Y){const Q=JSON.parse(Y);h.value={...h.value,...Q}}}catch(Y){console.warn("加载漫画阅读设置失败:",Y)}},v=()=>{try{localStorage.setItem("drplayer_comic_reading_settings",JSON.stringify(h.value))}catch(Y){console.warn("保存漫画阅读设置失败:",Y)}},g=F(()=>({backgroundColor:h.value.backgroundColor,color:h.value.textColor,padding:`${h.value.pagePadding}px`})),y=F(()=>({color:h.value.backgroundColor==="#000000"?"#ffffff":"#333333",marginBottom:`${h.value.imageGap*2}px`})),S=F(()=>({gap:`${h.value.imageGap}px`,flexDirection:h.value.readingDirection==="vertical"?"column":"row"})),k=F(()=>({marginBottom:h.value.readingDirection==="vertical"?`${h.value.imageGap}px`:"0"})),w=F(()=>{const Y={maxWidth:`${h.value.imageWidth}px`,width:"100%",height:"auto"};switch(h.value.imageFit){case"width":Y.width="100%",Y.height="auto";break;case"height":Y.width="auto",Y.height="100vh";break;case"contain":Y.objectFit="contain";break;case"cover":Y.objectFit="cover";break}return Y}),x=Y=>{try{if(!Y.startsWith("pics://"))throw new Error("不是有效的漫画内容格式");const ie=Y.substring(7).split("&&").filter(q=>q.trim());if(ie.length===0)throw new Error("漫画内容为空");return ie.map((q,te)=>({url:q.trim(),loaded:!1,error:!1,index:te}))}catch(Q){throw console.error("解析漫画内容失败:",Q),new Error("解析漫画内容失败: "+Q.message)}},E=async Y=>{i.value=!0,a.value="",s.value=[];try{if(console.log("从props加载漫画内容:",Y),Y&&Y.images&&Array.isArray(Y.images))s.value=Y.images.map((Q,ie)=>({url:Q.trim(),loaded:!1,error:!1,index:ie})),await T();else throw new Error("漫画内容格式错误")}catch(Q){console.error("加载漫画内容失败:",Q),a.value=Q.message||"加载漫画内容失败",gt.error(a.value)}finally{i.value=!1}},_=async Y=>{if(n.comicContent){await E(n.comicContent);return}if(!n.chapters[Y]){a.value="章节不存在";return}i.value=!0,a.value="",s.value=[];try{const Q=n.chapters[Y];console.log("加载漫画章节:",Q);const ie=await Ka.getPlayUrl(n.comicDetail.module,Q.url,n.comicDetail.api_url,n.comicDetail.ext);if(console.log("漫画章节内容响应:",ie),ie&&ie.url){const q=x(ie.url);s.value=q,console.log("解析后的漫画图片:",q),await T()}else throw new Error("获取漫画内容失败")}catch(Q){console.error("加载漫画章节内容失败:",Q),a.value=Q.message||"加载漫画章节内容失败",gt.error(a.value)}finally{i.value=!1}},T=async()=>{const Y=Math.min(h.value.preloadPages,s.value.length);for(let Q=0;Qnew Promise((Q,ie)=>{const q=new Image;q.onload=()=>Q(q),q.onerror=()=>ie(new Error("图片加载失败")),q.src=Y}),P=Y=>{s.value[Y]&&(s.value[Y].loaded=!0,s.value[Y].error=!1)},M=Y=>{s.value[Y]&&(s.value[Y].loaded=!1,s.value[Y].error=!0)},$=()=>{c.value=s.value.map((Y,Q)=>({src:Y.url,alt:`第${Q+1}页`,title:`${n.chapterName||"漫画"} - 第${Q+1}页`}))},L=Y=>{$(),dn(()=>{const Q=document.querySelector(".viewer");if(Q){const ie=Q.querySelectorAll("img");ie[Y]&&ie[Y].click()}})},B=async Y=>{const Q=s.value[Y];if(Q){Q.error=!1,Q.loaded=!1;try{await D(Q.url),Q.loaded=!0}catch{Q.error=!0,gt.error(`重新加载第${Y+1}页失败`)}}},j=()=>{_(n.currentChapterIndex)},H=()=>{r("close")},U=()=>{n.currentChapterIndex{n.currentChapterIndex>0&&r("prev-chapter")},K=Y=>{r("chapter-selected",Y)},oe=Y=>{Y.showDialog&&(l.value=!0)},ae=Y=>{h.value={...h.value,...Y},v(),r("settings-change",h.value)};It(()=>n.currentChapterIndex,Y=>{n.visible&&Y>=0&&_(Y)},{immediate:!0}),It(()=>n.visible,Y=>{Y&&n.currentChapterIndex>=0&&_(n.currentChapterIndex)}),It(()=>n.comicContent,Y=>{Y&&n.visible&&E(Y)},{immediate:!0});const ee=Y=>{if(n.visible)switch(Y.key){case"ArrowLeft":Y.preventDefault(),W();break;case"ArrowRight":Y.preventDefault(),U();break;case"Escape":Y.preventDefault(),H();break;case"ArrowUp":Y.preventDefault(),window.scrollBy(0,-100);break;case"ArrowDown":Y.preventDefault(),window.scrollBy(0,100);break}};return fn(()=>{p(),document.addEventListener("keydown",ee)}),Yr(()=>{document.removeEventListener("keydown",ee)}),(Y,Q)=>{const ie=Ee("a-spin"),q=Ee("a-result"),te=Ee("a-button"),Se=Ee("a-empty"),Fe=i3("viewer");return e.visible?(z(),X("div",f9t,[O(BMt,{"chapter-name":e.chapterName,"comic-title":e.comicTitle,visible:e.visible,chapters:e.chapters,"current-chapter-index":e.currentChapterIndex,"reading-settings":h.value,onClose:H,onSettingsChange:oe,onNextChapter:U,onPrevChapter:W,onChapterSelected:K},null,8,["chapter-name","comic-title","visible","chapters","current-chapter-index","reading-settings"]),I("div",{class:"reader-content",style:qe(g.value)},[i.value?(z(),X("div",h9t,[O(ie,{size:40}),Q[1]||(Q[1]=I("div",{class:"loading-text"},"正在加载漫画内容...",-1))])):a.value?(z(),X("div",p9t,[O(q,{status:"error",title:a.value},null,8,["title"]),O(te,{type:"primary",onClick:j},{default:ce(()=>[...Q[2]||(Q[2]=[He("重新加载",-1)])]),_:1})])):s.value.length>0?(z(),X("div",v9t,[I("h1",{class:"chapter-title",style:qe(y.value)},je(e.chapterName),5),I("div",{class:"images-container",style:qe(S.value)},[(z(!0),X(Pt,null,cn(s.value,(ve,Re)=>(z(),X("div",{key:Re,class:"image-wrapper",style:qe(k.value)},[!ve.loaded&&!ve.error?(z(),X("div",m9t,[O(ie,{size:24}),Q[3]||(Q[3]=I("div",{class:"loading-text"},"加载中...",-1))])):ve.error?(z(),X("div",g9t,[O(tt(cA)),Q[5]||(Q[5]=I("div",{class:"error-text"},"图片加载失败",-1)),O(te,{size:"small",onClick:Ge=>B(Re)},{default:ce(()=>[...Q[4]||(Q[4]=[He("重试",-1)])]),_:1},8,["onClick"])])):(z(),X("img",{key:2,src:ve.url,alt:`第${Re+1}页`,class:"comic-image",style:qe(w.value),onLoad:Ge=>P(Re),onError:Ge=>M(Re),onClick:Ge=>L(Re)},null,44,y9t)),h.value.showPageNumber?(z(),X("div",b9t,je(Re+1)+" / "+je(s.value.length),1)):Ae("",!0)],4))),128))],4),I("div",_9t,[O(te,{disabled:e.currentChapterIndex<=0,onClick:W,class:"nav-btn prev-btn",size:"large"},{icon:ce(()=>[O(tt(Il))]),default:ce(()=>[Q[6]||(Q[6]=He(" 上一章 ",-1))]),_:1},8,["disabled"]),I("div",S9t,[I("div",k9t," 第 "+je(e.currentChapterIndex+1)+" 章 / 共 "+je(e.chapters.length)+" 章 ",1),I("div",w9t,je(s.value.length)+" 页 ",1)]),O(te,{disabled:e.currentChapterIndex>=e.chapters.length-1,onClick:U,class:"nav-btn next-btn",size:"large"},{icon:ce(()=>[O(tt(Hi))]),default:ce(()=>[Q[7]||(Q[7]=He(" 下一章 ",-1))]),_:1},8,["disabled"])])])):(z(),X("div",x9t,[O(Se,{description:"暂无漫画内容"})]))],4),O(d9t,{visible:l.value,settings:h.value,onClose:Q[0]||(Q[0]=ve=>l.value=!1),onSettingsChange:ae},null,8,["visible","settings"]),Ci((z(),X("div",C9t,[(z(!0),X(Pt,null,cn(c.value,(ve,Re)=>(z(),X("img",{key:Re,src:ve.src,alt:ve.alt,"data-source":ve.src,title:ve.title},null,8,E9t))),128))])),[[Fe,d.value],[Ko,!1]])])):Ae("",!0)}}},A9t=sr(T9t,[["__scopeId","data-v-50453960"]]),I9t={class:"add-task-form"},L9t={class:"form-section"},D9t={key:0,class:"novel-info"},P9t={class:"novel-cover"},R9t=["src","alt"],M9t={class:"novel-details"},O9t={class:"novel-author"},$9t={class:"novel-desc"},B9t={class:"novel-meta"},N9t={key:1,class:"no-novel"},F9t={key:0,class:"form-section"},j9t={class:"chapter-selection"},V9t={class:"selection-controls"},z9t={class:"range-selector"},U9t={class:"selected-info"},H9t={class:"chapter-list"},W9t={class:"chapter-grid"},G9t=["onClick"],K9t={class:"chapter-title"},q9t={key:1,class:"form-section"},Y9t={class:"download-settings"},X9t={class:"setting-row"},Z9t={class:"setting-row"},J9t={class:"setting-row"},Q9t={class:"setting-row"},eOt={__name:"AddDownloadTaskDialog",props:{visible:{type:Boolean,default:!1},novelDetail:{type:Object,default:null},chapters:{type:Array,default:()=>[]},sourceName:{type:String,default:""},sourceKey:{type:String,default:""},apiUrl:{type:String,default:""},extend:{type:[String,Object],default:""}},emits:["close","confirm"],setup(e,{emit:t}){const n=e,r=t,i=ue(!1),a=ue([]),s=ue(1),l=ue(1),c=ue({filename:"",concurrency:3,retryCount:2,interval:1e3}),d=F(()=>n.chapters.length),h=F(()=>n.novelDetail&&a.value.length>0);It(()=>n.visible,E=>{E&&p()}),It(()=>n.novelDetail,E=>{E&&(c.value.filename=E.vod_name+".txt",l.value=d.value)});const p=()=>{a.value=[],s.value=1,l.value=d.value,c.value={filename:n.novelDetail?.vod_name+".txt"||"",concurrency:3,retryCount:2,interval:1e3}},v=()=>{a.value=Array.from({length:d.value},(E,_)=>_)},g=()=>{a.value=[]},y=()=>{const E=Array.from({length:d.value},(_,T)=>T);a.value=E.filter(_=>!a.value.includes(_))},S=()=>{if(s.value>l.value){gt.warning("起始章节不能大于结束章节");return}const E=Math.max(1,s.value)-1,_=Math.min(d.value,l.value);a.value=Array.from({length:_-E},(T,D)=>E+D)},k=E=>{const _=a.value.indexOf(E);_>-1?a.value.splice(_,1):a.value.push(E)},w=()=>{r("close")},x=async()=>{if(!h.value){gt.warning("请选择要下载的章节");return}i.value=!0;try{const E={novelDetail:n.novelDetail,chapters:n.chapters,selectedChapters:a.value,sourceName:n.sourceName,sourceKey:n.sourceKey,apiUrl:n.apiUrl,extend:n.extend,settings:c.value};r("confirm",E)}catch(E){console.error("创建下载任务失败:",E),gt.error("创建下载任务失败")}finally{i.value=!1}};return(E,_)=>{const T=Ee("a-empty"),D=Ee("a-button"),P=Ee("a-button-group"),M=Ee("a-input-number"),$=Ee("a-checkbox"),L=Ee("a-input"),B=Ee("a-modal");return z(),Ze(B,{visible:e.visible,title:"新建下载任务",width:"800px","mask-closable":!1,onCancel:w,onOk:x,"confirm-loading":i.value},{footer:ce(()=>[O(D,{onClick:w},{default:ce(()=>[..._[22]||(_[22]=[He("取消",-1)])]),_:1}),O(D,{type:"primary",onClick:x,loading:i.value,disabled:!h.value},{default:ce(()=>[..._[23]||(_[23]=[He(" 开始下载 ",-1)])]),_:1},8,["loading","disabled"])]),default:ce(()=>[I("div",I9t,[I("div",L9t,[_[6]||(_[6]=I("h4",null,"小说信息",-1)),e.novelDetail?(z(),X("div",D9t,[I("div",P9t,[I("img",{src:e.novelDetail.vod_pic,alt:e.novelDetail.vod_name},null,8,R9t)]),I("div",M9t,[I("h3",null,je(e.novelDetail.vod_name),1),I("p",O9t,"作者: "+je(e.novelDetail.vod_actor||"未知"),1),I("p",$9t,je(e.novelDetail.vod_content||"暂无简介"),1),I("div",B9t,[I("span",null,"来源: "+je(e.sourceName),1),I("span",null,"总章节: "+je(d.value),1)])])])):(z(),X("div",N9t,[O(T,{description:"请从详情页面调用下载功能"})]))]),e.novelDetail?(z(),X("div",F9t,[_[13]||(_[13]=I("h4",null,"章节选择",-1)),I("div",j9t,[I("div",V9t,[O(P,null,{default:ce(()=>[O(D,{onClick:v},{default:ce(()=>[..._[7]||(_[7]=[He("全选",-1)])]),_:1}),O(D,{onClick:g},{default:ce(()=>[..._[8]||(_[8]=[He("全不选",-1)])]),_:1}),O(D,{onClick:y},{default:ce(()=>[..._[9]||(_[9]=[He("反选",-1)])]),_:1})]),_:1}),I("div",z9t,[_[11]||(_[11]=I("span",null,"范围选择:",-1)),O(M,{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=j=>s.value=j),min:1,max:d.value,placeholder:"起始章节",size:"small",style:{width:"100px"}},null,8,["modelValue","max"]),_[12]||(_[12]=I("span",null,"-",-1)),O(M,{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=j=>l.value=j),min:1,max:d.value,placeholder:"结束章节",size:"small",style:{width:"100px"}},null,8,["modelValue","max"]),O(D,{size:"small",onClick:S},{default:ce(()=>[..._[10]||(_[10]=[He("选择范围",-1)])]),_:1})])]),I("div",U9t," 已选择 "+je(a.value.length)+" / "+je(d.value)+" 章 ",1),I("div",H9t,[I("div",W9t,[(z(!0),X(Pt,null,cn(e.chapters,(j,H)=>(z(),X("div",{key:H,class:fe(["chapter-item",{selected:a.value.includes(H)}]),onClick:U=>k(H)},[O($,{"model-value":a.value.includes(H),onChange:U=>k(H)},null,8,["model-value","onChange"]),I("span",K9t,je(j.name||`第${H+1}章`),1)],10,G9t))),128))])])])])):Ae("",!0),e.novelDetail?(z(),X("div",q9t,[_[21]||(_[21]=I("h4",null,"下载设置",-1)),I("div",Y9t,[I("div",X9t,[_[14]||(_[14]=I("label",null,"文件名:",-1)),O(L,{modelValue:c.value.filename,"onUpdate:modelValue":_[2]||(_[2]=j=>c.value.filename=j),placeholder:"自动生成",style:{width:"300px"}},null,8,["modelValue"])]),I("div",Z9t,[_[15]||(_[15]=I("label",null,"并发数:",-1)),O(M,{modelValue:c.value.concurrency,"onUpdate:modelValue":_[3]||(_[3]=j=>c.value.concurrency=j),min:1,max:10,style:{width:"120px"}},null,8,["modelValue"]),_[16]||(_[16]=I("span",{class:"setting-tip"},"同时下载的章节数量",-1))]),I("div",J9t,[_[17]||(_[17]=I("label",null,"重试次数:",-1)),O(M,{modelValue:c.value.retryCount,"onUpdate:modelValue":_[4]||(_[4]=j=>c.value.retryCount=j),min:0,max:5,style:{width:"120px"}},null,8,["modelValue"]),_[18]||(_[18]=I("span",{class:"setting-tip"},"章节下载失败时的重试次数",-1))]),I("div",Q9t,[_[19]||(_[19]=I("label",null,"章节间隔:",-1)),O(M,{modelValue:c.value.interval,"onUpdate:modelValue":_[5]||(_[5]=j=>c.value.interval=j),min:0,max:5e3,style:{width:"120px"}},null,8,["modelValue"]),_[20]||(_[20]=I("span",{class:"setting-tip"},"章节下载间隔时间(毫秒)",-1))])])])):Ae("",!0)])]),_:1},8,["visible","confirm-loading"])}}},tOt=sr(eOt,[["__scopeId","data-v-478714de"]]);class nOt{constructor(){this.tasks=new Map,this.isDownloading=!1,this.currentTask=null,this.downloadQueue=[],this.maxConcurrent=3,this.activeDownloads=new Set,this.loadTasksFromStorage(),setInterval(()=>{this.saveTasksToStorage()},5e3)}createTask(t,n,r={}){const i=this.generateTaskId(),a={id:i,novelTitle:t.title,novelId:t.id,novelUrl:t.url,novelAuthor:t.author||"未知",novelDescription:t.description||"",novelCover:t.cover||"",totalChapters:n.length,completedChapters:0,failedChapters:0,status:"pending",progress:0,createdAt:Date.now(),updatedAt:Date.now(),settings:{fileName:r.fileName||t.title,concurrent:r.concurrent||3,retryCount:r.retryCount||3,chapterInterval:r.chapterInterval||1e3,...r},chapters:n.map((s,l)=>({index:l,name:s.name||`第${l+1}章`,url:s.url,status:"pending",progress:0,content:"",size:0,error:null,retryCount:0,startTime:null,completeTime:null})),error:null,downloadedSize:0,totalSize:0,startTime:null,completeTime:null};return this.tasks.set(i,a),this.saveTasksToStorage(),a}async startTask(t){const n=this.tasks.get(t);if(!n)throw new Error("任务不存在");n.status!=="downloading"&&(n.status="downloading",n.startTime=n.startTime||Date.now(),n.updatedAt=Date.now(),this.updateTask(n),this.downloadQueue.includes(t)||this.downloadQueue.push(t),this.processDownloadQueue())}pauseTask(t){const n=this.tasks.get(t);if(!n)return;n.status="paused",n.updatedAt=Date.now(),this.updateTask(n);const r=this.downloadQueue.indexOf(t);r>-1&&this.downloadQueue.splice(r,1),this.activeDownloads.delete(t)}cancelTask(t){const n=this.tasks.get(t);n&&(this.pauseTask(t),n.chapters.forEach(r=>{r.status==="downloading"&&(r.status="pending",r.progress=0,r.startTime=null)}),n.status="pending",n.progress=0,this.updateTask(n))}deleteTask(t){this.tasks.get(t)&&(this.cancelTask(t),this.tasks.delete(t),this.saveTasksToStorage())}async retryChapter(t,n){const r=this.tasks.get(t);if(!r)return;const i=r.chapters[n];i&&(i.status="pending",i.error=null,i.retryCount=0,i.progress=0,this.updateTask(r),r.status==="downloading"&&this.downloadChapter(r,i))}async processDownloadQueue(){if(this.downloadQueue.length===0)return;const t=this.downloadQueue[0],n=this.tasks.get(t);if(!n||n.status!=="downloading"){this.downloadQueue.shift(),this.processDownloadQueue();return}this.currentTask=n,await this.downloadTask(n),this.downloadQueue.shift(),this.currentTask=null,this.downloadQueue.length>0&&setTimeout(()=>this.processDownloadQueue(),1e3)}async downloadTask(t){const n=t.chapters.filter(a=>a.status==="pending");if(n.length===0){this.completeTask(t);return}const r=Math.min(t.settings.concurrent,n.length),i=[];for(let a=0;ar.status==="pending");if(!n)break;await this.downloadChapter(t,n),t.settings.chapterInterval>0&&await this.sleep(t.settings.chapterInterval)}}async downloadChapter(t,n){if(n.status==="pending"){n.status="downloading",n.startTime=Date.now(),n.progress=0,this.updateTask(t);try{console.log(`开始下载章节: ${n.name}`);const r={play:n.url,flag:t.settings.flag||"",apiUrl:t.settings.apiUrl||"",extend:t.settings.extend||""},i=await Ka.parseEpisodePlayUrl(t.settings.module,r);console.log("章节播放解析结果:",i);let a=null;if(i.url&&i.url.startsWith("novel://")){const s=i.url.replace("novel://","");a=JSON.parse(s)}else throw new Error("无法解析小说内容,返回的不是小说格式");n.content=a.content||"",n.size=new Blob([n.content]).size,n.status="completed",n.progress=100,n.completeTime=Date.now(),t.completedChapters++,t.downloadedSize+=n.size,console.log(`章节下载完成: ${n.name}`)}catch(r){console.error("下载章节失败:",r),n.status="failed",n.error=r.message,n.retryCount++,t.failedChapters++,n.retryCounti.status==="completed"),r=t.chapters.some(i=>i.status==="failed");n?(t.status="completed",t.completeTime=Date.now()):r?t.status="failed":t.status="paused",t.totalSize=t.chapters.reduce((i,a)=>i+(a.size||0),0),t.updatedAt=Date.now(),this.updateTask(t)}updateTaskProgress(t){const n=t.chapters.filter(r=>r.status==="completed").length;t.progress=Math.round(n/t.totalChapters*100),t.completedChapters=n,t.failedChapters=t.chapters.filter(r=>r.status==="failed").length,t.downloadedSize=t.chapters.filter(r=>r.status==="completed").reduce((r,i)=>r+(i.size||0),0),t.totalSize=t.chapters.reduce((r,i)=>r+(i.size||0),0)}updateTask(t){t.updatedAt=Date.now(),this.tasks.set(t.id,{...t}),this.notifyTaskUpdate(t)}exportToTxt(t){const n=this.tasks.get(t);if(!n)return null;const r=n.chapters.filter(c=>c.status==="completed").sort((c,d)=>c.index-d.index);if(r.length===0)throw new Error("没有已完成的章节可以导出");let i=`${n.novelTitle} `;r.forEach(c=>{i+=`${c.name} @@ -555,47 +555,47 @@ Char: `+o[b]);b+1&&(b+=1);break}else if(o.charCodeAt(b+1)===33){if(o.charCodeAt( `,i+=`--- -`}),i}getTasksByStatus(t){return this.getAllTasks().filter(n=>t==="all"?!0:t==="downloaded"?n.status==="completed":t==="downloading"?n.status==="downloading":t==="failed"?n.status==="failed":t==="pending"?n.status==="pending"||n.status==="paused":n.status===t)}getTaskStats(){const t=this.getAllTasks();return{total:t.length,completed:t.filter(n=>n.status==="completed").length,downloading:t.filter(n=>n.status==="downloading").length,failed:t.filter(n=>n.status==="failed").length,pending:t.filter(n=>n.status==="pending"||n.status==="paused").length}}getStorageStats(){const n=this.getAllTasks().reduce((a,s)=>a+(s.downloadedSize||0),0),r=Math.max(0,104857600-n),i=n/104857600*100;return{usedBytes:n,availableBytes:r,totalBytes:104857600,usagePercentage:Math.min(100,i),isNearLimit:i>80,isOverLimit:i>=100,formattedUsed:this.formatFileSize(n),formattedAvailable:this.formatFileSize(r),formattedTotal:this.formatFileSize(104857600)}}formatFileSize(t){if(t===0)return"0 B";const n=1024,r=["B","KB","MB","GB"],i=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,i)).toFixed(2))+" "+r[i]}canAddTask(t=0){const n=this.getStorageStats();return t<=n.availableBytes}saveTasksToStorage(){try{const t=Array.from(this.tasks.entries());localStorage.setItem("novel_download_tasks",JSON.stringify(t))}catch(t){console.error("保存下载任务失败:",t)}}loadTasksFromStorage(){try{const t=localStorage.getItem("novel_download_tasks");if(t){const n=JSON.parse(t);this.tasks=new Map(n),this.tasks.forEach(r=>{r.status==="downloading"&&(r.status="paused",r.chapters.forEach(i=>{i.status==="downloading"&&(i.status="pending",i.progress=0,i.startTime=null)}))})}}catch(t){console.error("加载下载任务失败:",t),this.tasks=new Map}}generateTaskId(){return"task_"+Date.now()+"_"+Math.random().toString(36).substr(2,9)}sleep(t){return new Promise(n=>setTimeout(n,t))}notifyTaskUpdate(t){this.onTaskUpdate&&this.onTaskUpdate(t)}setTaskUpdateCallback(t){this.onTaskUpdate=t}}const bce=new Y9t,X9t={class:"video-detail"},Z9t={class:"detail-header"},J9t={class:"header-title"},Q9t={key:0},e$t={key:1,class:"title-with-info"},t$t={class:"title-main"},n$t={key:0,class:"title-source"},r$t={key:0,class:"header-actions"},i$t={key:0,class:"loading-container"},o$t={key:1,class:"error-container"},s$t={key:2,class:"detail-content"},a$t={class:"video-header"},l$t=["src","alt"],u$t={class:"poster-overlay"},c$t={class:"video-meta"},d$t={class:"video-title"},f$t={class:"video-tags"},h$t={class:"video-info-grid"},p$t={key:0,class:"info-item"},v$t={class:"value"},m$t={key:1,class:"info-item"},g$t={class:"value"},y$t={key:2,class:"info-item"},b$t={class:"value"},_$t={class:"video-actions"},S$t={key:0,class:"action-buttons-row"},k$t={key:1,class:"action-buttons-row download-row"},x$t={key:0,class:"video-description"},C$t={class:"viewer"},w$t=["src","alt","data-source","title"],E$t={class:"parse-dialog-content"},T$t={class:"parse-message"},A$t={key:0,class:"sniff-results"},I$t={class:"results-list"},L$t={class:"result-index"},D$t={class:"result-info"},P$t={class:"result-url"},R$t={key:0,class:"result-type"},M$t={key:0,class:"more-results"},$$t={key:1,class:"parse-hint"},O$t={class:"hint-icon"},B$t={class:"parse-dialog-footer"},N$t={__name:"VideoDetail",setup(e){const t=s3(),n=ma(),r=CS(),i=JA(),a=LG(),s=kS(),l=DG(),c=ue(!1),d=ue(""),h=ue(null),p=ue(null),v=ue({id:"",name:"",pic:"",year:"",area:"",type:"",remarks:"",content:"",actor:"",director:""}),g=ue(!1),y=ue(0),S=ue(0),k=ue(!1),C=ue(0),x=ue({name:"",api:"",key:""}),E=ue(!1),_=ue(sessionStorage.getItem("hasPushOverride")==="true"),T=ue(null);It(_,oe=>{sessionStorage.setItem("hasPushOverride",oe.toString()),console.log("🔄 [状态持久化] hasPushOverride状态已保存:",oe)},{immediate:!0});const D=ue(!1),P=ue(""),M=ue({}),O=ue([]),L=ue(!1),B=ue(""),j=ue(!1),H=ue(null),U=ue(null),K=ue(!1),Y=ue([]),ie=ue(!1),te=ue(null),W=ue(!1),q=ue(null),Q=ue(!1),se=ue({title:"",message:"",type:""}),ae=ue(!1),re=ue([]),Ce=()=>{try{const oe=localStorage.getItem("drplayer_preferred_player_type");return oe&&["default","artplayer"].includes(oe)?oe:"default"}catch(oe){return console.warn("读取播放器偏好失败:",oe),"default"}},Ve=oe=>{try{localStorage.setItem("drplayer_preferred_player_type",oe),console.log("播放器偏好已保存:",oe)}catch(ne){console.warn("保存播放器偏好失败:",ne)}},ge=ue(Ce()),xe=ue([]),Ge=ue([]),tt=ue({inline:!1,button:!0,navbar:!0,title:!0,toolbar:{zoomIn:1,zoomOut:1,oneToOne:1,reset:1,prev:1,play:{show:1,size:"large"},next:1,rotateLeft:1,rotateRight:1,flipHorizontal:1,flipVertical:1},tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,backdrop:!0}),Ue=F(()=>h.value?.vod_pic?h.value.vod_pic:v.value?.sourcePic?v.value.sourcePic:"/src/assets/default-poster.svg"),_e=F(()=>{if(!h.value?.vod_play_from||!h.value?.vod_play_url)return[];const oe=h.value.vod_play_from.split("$$$"),ne=h.value.vod_play_url.split("$$$");return oe.map((ee,J)=>({name:ee.trim(),episodes:ve(ne[J]||"")}))}),ve=oe=>oe?oe.split("#").map(ne=>{const[ee,J]=ne.split("$");return{name:ee?.trim()||"未知集数",url:J?.trim()||""}}).filter(ne=>ne.url):[],me=F(()=>_e.value[y.value]?.episodes||[]),Oe=F(()=>(_e.value[y.value]?.episodes||[])[S.value]?.url||""),qe=F(()=>j.value&&!P.value?"":P.value||Oe.value),Ke=F(()=>(_e.value[y.value]?.episodes||[])[S.value]?.name||"未知选集"),at=F(()=>S.value),ft=F(()=>!v.value.id||!x.value.api?!1:i.isFavorited(v.value.id,x.value.api)),ct=F(()=>te.value!==null),wt=F(()=>(x.value?.name||"").includes("[书]")||ct.value),Ct=F(()=>W.value),Rt=F(()=>{const oe=x.value?.name||"";return oe.includes("[书]")?{text:"开始阅读",icon:"icon-book"}:oe.includes("[听]")?{text:"播放音频",icon:"icon-sound"}:oe.includes("[画]")?{text:"查看图片",icon:"icon-image"}:ct.value?{text:"开始阅读",icon:"icon-book"}:Ct.value?{text:"查看图片",icon:"icon-image"}:{text:"播放视频",icon:"icon-play-arrow"}}),Ht=async()=>{if(console.log("🔄 loadVideoDetail 函数被调用,开始加载详情数据:",{id:t.params.id,fullPath:t.fullPath,timestamp:new Date().toLocaleTimeString()}),!t.params.id){d.value="视频ID不能为空";return}if(C.value=0,E.value=!1,v.value={id:t.params.id,name:t.query.name||"",pic:t.query.pic||"",year:t.query.year||"",area:t.query.area||"",type:t.query.type||"",type_name:t.query.type_name||"",remarks:t.query.remarks||"",content:t.query.content||"",actor:t.query.actor||"",director:t.query.director||"",sourcePic:t.query.sourcePic||""},!r.nowSite){d.value="请先选择一个视频源";return}c.value=!0,d.value="";const oe=t.query.fromCollection==="true",ne=t.query.fromHistory==="true",ee=t.query.fromPush==="true",J=t.query.fromSpecialAction==="true";try{let ce,Se,ke,Ae;if((oe||ne||ee||J)&&t.query.tempSiteKey)console.log("VideoDetail接收到的路由参数:",t.query),console.log("tempSiteExt参数值:",t.query.tempSiteExt),ce=t.query.tempSiteKey,Se=t.query.tempSiteApi,ke=t.query.tempSiteName,Ae=t.query.tempSiteExt||null,console.log(`从${oe?"收藏":ne?"历史":"推送"}进入,使用临时站源:`,{siteName:ke,module:ce,apiUrl:Se,extend:Ae});else{const ot=r.nowSite;ce=ot.key||ot.name,Se=ot.api,ke=ot.name,Ae=ot.ext||null}x.value={name:ke,api:Se,key:ce,ext:Ae},T.value=x.value,console.log("获取视频详情:",{videoId:t.params.id,module:ce,apiUrl:Se,extend:Ae,fromCollection:oe,usingTempSite:oe&&t.query.tempSiteKey}),oe&&console.log("从收藏进入,优先调用T4详情接口获取最新数据");const nt=await Ka.getVideoDetails(ce,t.params.id,Se,oe,Ae);if(nt){nt.module=ce,nt.api_url=Se,nt.site_name=ke,h.value=nt,console.log("视频详情获取成功:",nt);const ot=t.query.historyRoute,gt=t.query.historyEpisode;ot&>?(console.log("检测到历史记录参数,准备恢复播放位置:",{historyRoute:ot,historyEpisode:gt}),dn(()=>{setTimeout(()=>{console.log("开始恢复历史记录,当前playRoutes长度:",_e.value.length),_e.value.length>0?Ee(ot,gt):console.warn("playRoutes为空,无法恢复历史记录")},100)})):dn(()=>{setTimeout(()=>{_e.value.length>0&&y.value===0&&(console.log("初始化默认播放位置"),y.value=0,me.value.length>0&&(S.value=0))},100)})}else d.value="未找到视频详情"}catch(ce){console.error("加载视频详情失败:",ce),d.value=ce.message||"加载失败,请稍后重试"}finally{c.value=!1}},Jt=async()=>{if(!(!v.value.id||!x.value.api)){k.value=!0;try{if(ft.value)i.removeFavorite(v.value.id,x.value.api)&&yt.success("已取消收藏");else{const oe={vod_id:v.value.id,vod_name:v.value.name||h.value?.vod_name||"",vod_pic:v.value.pic||h.value?.vod_pic||"",vod_year:v.value.year||h.value?.vod_year||"",vod_area:v.value.area||h.value?.vod_area||"",vod_type:v.value.type||h.value?.vod_type||"",type_name:v.value.type_name||h.value?.type_name||"",vod_remarks:v.value.remarks||h.value?.vod_remarks||"",vod_content:v.value.content||h.value?.vod_content||"",vod_actor:v.value.actor||h.value?.vod_actor||"",vod_director:v.value.director||h.value?.vod_director||"",vod_play_from:h.value?.vod_play_from||"",vod_play_url:h.value?.vod_play_url||"",module:x.value.key,api_url:x.value.api,site_name:x.value.name,ext:x.value.ext||null};i.addFavorite(oe)?yt.success("收藏成功"):yt.warning("该视频已在收藏列表中")}}catch(oe){yt.error("操作失败,请稍后重试"),console.error("收藏操作失败:",oe)}finally{k.value=!1}}},rn=async()=>{try{if(console.log("🔄 [用户操作] 手动清除推送覆盖状态"),_.value=!1,E.value=!1,sessionStorage.removeItem("hasPushOverride"),!r.nowSite){yt.error("无法恢复:当前没有选择视频源");return}const oe=r.nowSite;x.value={name:oe.name,api:oe.api,key:oe.key||oe.name,ext:oe.ext||null},T.value=x.value,console.log("🔄 [推送覆盖] 使用原始站源重新加载:",x.value),c.value=!0,d.value="";const ne=`detail_${x.value.key}_${t.params.id}`;console.log("🔄 [推送覆盖] 清除缓存:",ne),Ka.cache.delete(ne);const ee=await Ka.getVideoDetails(x.value.key,t.params.id,x.value.api,!0,x.value.ext);if(ee)ee.module=x.value.key,ee.api_url=x.value.api,ee.site_name=x.value.name,h.value=ee,y.value=0,S.value=0,console.log("✅ [推送覆盖] 原始数据恢复成功:",ee),yt.success("已恢复原始数据");else throw new Error("无法获取原始视频数据")}catch(oe){console.error("❌ [推送覆盖] 清除推送覆盖状态失败:",oe),yt.error(`恢复原始数据失败: ${oe.message}`)}finally{c.value=!1}},vt=()=>{const oe=t.query.sourceRouteName,ne=t.query.sourceRouteParams,ee=t.query.sourceRouteQuery,J=t.query.fromSearch;if(console.log("goBack 调用,来源信息:",{sourceRouteName:oe,fromSearch:J,sourceRouteParams:ne,sourceRouteQuery:ee}),oe)try{const ce=ne?JSON.parse(ne):{},Se=ee?JSON.parse(ee):{};if(console.log("返回来源页面:",oe,{params:ce,query:Se,fromSearch:J}),oe==="Video")if(J==="true"){console.log("从Video页面搜索返回,恢复搜索状态");const Ae=s.getPageState("search");Ae&&Ae.keyword&&!s.isStateExpired("search")&&(console.log("发现保存的搜索状态,将恢复搜索结果:",Ae),Se._restoreSearch="true")}else{if(console.log("从Video页面分类返回,恢复分类状态"),Se.activeKey&&(Se._returnToActiveKey=Se.activeKey,console.log("设置返回分类:",Se.activeKey)),p.value)try{const nt=JSON.parse(p.value);Se.folderState=p.value}catch(nt){console.error("解析保存的目录状态失败:",nt)}s.getPageState("video")&&!s.isStateExpired("video")&&console.log("发现保存的Video页面状态,将恢复状态而非重新加载")}else if(oe==="SearchAggregation")console.log("从聚合搜索页面返回,添加返回标识"),Se._returnFromDetail="true",Se._t&&(delete Se._t,console.log("清除时间戳参数 _t,避免触发重新搜索"));else if(oe==="Home"){const Ae=s.getPageState("search");Ae&&Ae.keyword&&!s.isStateExpired("search")&&(console.log("发现保存的搜索状态,将恢复搜索结果"),Se._restoreSearch="true")}if(console.log("🔄 [DEBUG] ========== VideoDetail goBack 即将跳转 =========="),console.log("🔄 [DEBUG] sourceRouteName:",oe),console.log("🔄 [DEBUG] params:",JSON.stringify(ce,null,2)),console.log("🔄 [DEBUG] query参数完整内容:",JSON.stringify(Se,null,2)),console.log("🔄 [DEBUG] folderState参数值:",Se.folderState),console.log("🔄 [DEBUG] folderState参数类型:",typeof Se.folderState),console.log("🔄 [DEBUG] initialFolderState.value:",p.value),console.log("🔄 [DEBUG] _returnToActiveKey参数值:",Se._returnToActiveKey),Se.folderState)try{const Ae=JSON.parse(Se.folderState);console.log("🔄 [DEBUG] 解析后的folderState:",JSON.stringify(Ae,null,2)),console.log("🔄 [DEBUG] folderState.isActive:",Ae.isActive),console.log("🔄 [DEBUG] folderState.breadcrumbs:",Ae.breadcrumbs),console.log("🔄 [DEBUG] folderState.currentBreadcrumb:",Ae.currentBreadcrumb)}catch(Ae){console.error("🔄 [ERROR] folderState解析失败:",Ae)}else console.log("🔄 [DEBUG] 没有folderState参数传递");const ke={name:oe,params:ce,query:Se};console.log("🔄 [DEBUG] router.push完整参数:",JSON.stringify(ke,null,2)),n.push(ke),console.log("🔄 [DEBUG] ========== VideoDetail goBack 跳转完成 ==========")}catch(ce){console.error("解析来源页面信息失败:",ce),n.back()}else console.log("没有来源信息,使用默认返回方式"),n.back()},Fe=oe=>{if(oe.target.src.includes("default-poster.svg"))return;if(C.value++,C.value===1&&v.value?.sourcePic&&h.value?.vod_pic&&oe.target.src===h.value.vod_pic){oe.target.src=v.value.sourcePic;return}const ne="/apps/drplayer/";oe.target.src=`${ne}default-poster.svg`,oe.target.style.objectFit="contain",oe.target.style.backgroundColor="#f7f8fa"},Me=()=>{const oe=Ue.value;oe&&!oe.includes("default-poster.svg")&&(xe.value=[oe],Ge.value=[{src:oe,name:h.value?.vod_name||v.value?.name||"未知标题"}],setTimeout(()=>{const ne=document.querySelector(".viewer");ne&&ne.$viewer&&ne.$viewer.show()},100))},Ee=(oe,ne)=>{try{console.log("开始恢复历史记录位置:",{historyRoute:oe,historyEpisode:ne});const ee=_e.value,J=ee.find(ce=>ce.name===oe);if(J){console.log("找到历史线路:",J.name);const ce=ee.indexOf(J);y.value=ce,dn(()=>{const Se=me.value,ke=Se.find(Ae=>Ae.name===ne);if(ke){console.log("找到历史选集:",ke.name);const Ae=Se.indexOf(ke);S.value=Ae,console.log("历史记录位置恢复成功:",{routeIndex:ce,episodeIndex:Ae})}else console.warn("未找到历史选集:",ne),Se.length>0&&(S.value=0)})}else console.warn("未找到历史线路:",oe),ee.length>0&&(y.value=0,dn(()=>{me.value.length>0&&(S.value=0)}))}catch(ee){console.error("恢复历史记录位置失败:",ee)}},We=()=>{g.value=!g.value},$e=oe=>{y.value=oe,S.value=0},dt=()=>{D.value=!1},Qe=()=>{ie.value=!1,W.value=!1,te.value=null,q.value=null},Le=oe=>{console.log("切换到章节:",oe),An(oe)},ht=()=>{if(S.value{if(S.value>0){const oe=S.value-1;console.log("切换到上一章:",oe),An(oe)}},Ut=oe=>{console.log("选择章节:",oe),An(oe)},Lt=oe=>{console.log("切换播放器类型:",oe),ge.value=oe,Ve(oe)},Xt=oe=>{console.log("切换到下一集:",oe),oe>=0&&oe{if(console.log("从播放器选择剧集:",oe),typeof oe=="number"){const ne=oe;ne>=0&&neee.name===oe.name&&ee.url===oe.url);ne!==-1?(console.log("通过对象查找到选集索引:",ne),An(ne)):(console.warn("未找到选集:",oe),yt.warning("选集切换失败:未找到匹配的选集"))}else console.warn("无效的选集参数:",oe),yt.warning("选集切换失败:参数格式错误")},rr=oe=>{console.log("阅读器设置变更:",oe)},qr=oe=>{console.log("画质切换事件:",oe),oe&&oe.url?(P.value=oe.url,console.log("画质切换完成,新URL:",oe.url)):console.warn("画质切换数据无效:",oe)},Wt=async oe=>{if(console.log("解析器变更事件:",oe),!oe||!H.value){console.warn("解析器或解析数据无效");return}U.value=oe,localStorage.setItem("selectedParser",JSON.stringify(oe));try{const ne=oe.parser||oe,ee={...ne,type:ne.type===1?"json":ne.type===0?"sniffer":ne.type};ee.type==="json"&&!ee.urlPath&&(ee.urlPath="url"),console.log("🎬 [开始解析] 使用选定的解析器直接解析真实数据"),console.log("🎬 [解析参数]",{parser:ee,parseData:H.value}),await sn(ee,H.value)}catch(ne){console.error("解析失败:",ne),yt.error("解析失败,请稍后重试")}},Yt=async()=>{try{await l.loadParsers();const oe=l.parsers.filter(ne=>ne.enabled);return Y.value=oe,console.log("获取到可用解析器:",oe),oe}catch(oe){return console.error("获取解析器列表失败:",oe),Y.value=[],[]}},sn=async(oe,ne)=>{if(!oe||!ne)throw new Error("解析器或数据无效");console.log("🎬🎬🎬 [真正解析开始] 这是真正的解析,不是测试!"),console.log("🎬 [真正解析] 开始执行解析:",{parser:oe.name,data:ne,dataType:typeof ne,hasJxFlag:ne&&typeof ne=="object"&&ne.jx===1,dataUrl:ne&&typeof ne=="object"?ne.url:ne,isTestData:ne&&typeof ne=="object"&&ne.url==="https://example.com/test.mp4"});const ee={...oe,type:oe.type==="0"?"sniffer":oe.type==="1"?"json":oe.type};console.log("🔧 [类型转换] 原始类型:",oe.type,"转换后类型:",ee.type);const J=Xle.validateParserConfig(ee);if(!J.valid){const ce="解析器配置无效: "+J.errors.join(", ");throw console.error(ce),yt.error(ce),new Error(ce)}try{let ce;if(ee.type==="json")console.log("🎬 [真正解析] 调用JSON解析器,传递数据:",ne),ce=await Xle.parseWithJsonParser(ee,ne);else if(ee.type==="sniffer"){console.log("🎬 [真正解析] 调用代理嗅探接口,传递数据:",ne);const{sniffVideoWithConfig:Se}=await fc(async()=>{const{sniffVideoWithConfig:ot}=await Promise.resolve().then(()=>B5t);return{sniffVideoWithConfig:ot}},void 0);let ke;if(ne&&typeof ne=="object"?ke=ne.url||ne.play_url||ne:ke=ne,!ke||typeof ke!="string")throw new Error("无效的嗅探目标URL");const Ae=ee.url+encodeURIComponent(ke);console.log("🔍 [嗅探解析] 解析器URL:",ee.url),console.log("🔍 [嗅探解析] 被解析URL:",ke),console.log("🔍 [嗅探解析] 完整解析地址:",Ae);const nt=await Se(Ae);if(nt.success&&nt.data&&nt.data.length>0)ce={success:!0,url:nt.data[0].url,headers:{Referer:Ae,"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},qualities:[],message:"嗅探解析成功"};else throw new Error("嗅探未找到可播放的视频链接")}else throw new Error(`不支持的解析器类型: ${ee.type}`);if(ce&&ce.success)P.value=ce.url,M.value=ce.headers||{},ce.qualities&&ce.qualities.length>0?(O.value=ce.qualities,L.value=!0,B.value=ce.qualities[0].name):(O.value=[],L.value=!1,B.value=""),D.value=!0,yt.success(`解析成功,开始播放: ${Ke.value}`),console.log("解析完成:",ce);else throw new Error(ce?.message||"解析失败")}catch(ce){throw console.error("解析执行失败:",ce),ce}},An=async oe=>{S.value=oe;const ne=me.value[oe]?.url,ee=_e.value[y.value]?.name;if(!ne){console.log("选集URL为空,无法播放"),yt.error("选集URL为空,无法播放");return}try{if(console.log("开始解析选集播放地址:",{episodeUrl:ne,routeName:ee,isPushMode:E.value,currentActiveSite:T.value?.key,originalSite:x.value?.key}),ne.startsWith("push://")){console.log("🚀🚀🚀 选集URL本身为push://协议,直接处理推送逻辑:",ne),await un(ne,ee);return}yt.info("正在解析播放地址...");const J={play:ne,flag:ee,apiUrl:T.value.api,extend:T.value.ext},ce=await Ka.parseEpisodePlayUrl(T.value.key,J);if(console.log("选集播放解析结果:",ce),ce.url&&ce.url.startsWith("push://")){console.log("🚀🚀🚀 T4播放API返回push://协议,开始处理推送逻辑:",ce.url),await un(ce.url,ce.flag);return}if(ce.playType==="direct")if(ce.url&&ce.url.startsWith("novel://")){console.log("检测到小说内容:",ce.url);try{const Se=ce.url.replace("novel://",""),ke=JSON.parse(Se);console.log("解析小说内容成功:",ke),te.value={title:ke.title||Ke.value,content:ke.content||"",chapterIndex:oe,totalChapters:me.value.length},D.value=!1,W.value=!1,ie.value=!0,yt.success(`开始阅读: ${ke.title||Ke.value}`)}catch(Se){console.error("解析小说内容失败:",Se),yt.error("解析小说内容失败")}}else if(ce.url&&ce.url.startsWith("pics://")){console.log("检测到漫画内容:",ce.url);try{const ke=ce.url.replace("pics://","").split("&&").filter(Ae=>Ae.trim());console.log("解析漫画内容成功:",ke),q.value={title:Ke.value,images:ke,chapterIndex:oe,totalChapters:me.value.length},D.value=!1,ie.value=!1,W.value=!0,yt.success(`开始看漫画: ${Ke.value}`)}catch(Se){console.error("解析漫画内容失败:",Se),yt.error("解析漫画内容失败")}}else console.log("启动内置播放器播放直链视频:",ce.url),console.log("T4解析结果headers:",ce.headers),console.log("T4解析结果画质信息:",ce.qualities,ce.hasMultipleQualities),P.value=ce.url,M.value=ce.headers||{},O.value=ce.qualities||[],L.value=ce.hasMultipleQualities||!1,ce.qualities&&ce.qualities.length>0?B.value=ce.qualities[0].name||"":B.value="",te.value=null,q.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.success(`开始播放: ${Ke.value}`);else if(ce.playType==="sniff")if(console.log("需要嗅探播放:",ce),!MT())P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,se.value={title:"嗅探功能未启用",message:"该视频需要嗅探才能播放,请先在设置中配置嗅探器接口。",type:"sniff"},Q.value=!0;else{const Se=await Xn(ce.data)}else if(ce.playType==="parse"){console.log("需要解析播放:",ce),j.value=!0,H.value=ce.data;const Se=await Yt();if(Se.length===0)se.value={title:"播放提示",message:"该视频需要解析才能播放,但未配置可用的解析器。请前往解析器页面配置解析器。",type:"parse"},Q.value=!0,j.value=!1,H.value=null;else{let ke=null;try{const Ae=localStorage.getItem("selectedParser");if(Ae)try{const nt=JSON.parse(Ae);ke=Se.find(ot=>ot.id===nt.id)}catch{console.warn("JSON解析失败,尝试作为解析器ID处理:",Ae),ke=Se.find(ot=>ot.id===Ae),console.log("defaultParser:",ke),ke&&localStorage.setItem("selectedParser",JSON.stringify(ke))}}catch(Ae){console.warn("获取保存的解析器失败:",Ae),localStorage.removeItem("selectedParser")}ke||(ke=Se[0]),U.value=ke,P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.info("检测到需要解析的视频,请在播放器中选择解析器")}}else console.log("使用原始播放方式:",ne),P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,D.value=!0,yt.success(`开始播放: ${Ke.value}`)}catch(J){console.error("解析选集播放地址失败:",J),yt.error("解析播放地址失败,请稍后重试"),console.log("回退到原始播放方式:",ne),P.value="",M.value={},O.value=[],L.value=!1,B.value="",te.value=null,ie.value=!1,D.value=!0,yt.warning(`播放可能不稳定: ${Ke.value}`)}if(h.value&&me.value[oe]){const J={id:v.value.id,name:v.value.name||h.value.vod_name||"",pic:v.value.pic||h.value.vod_pic||"",year:v.value.year||h.value.vod_year||"",area:v.value.area||h.value.vod_area||"",type:v.value.type||h.value.vod_type||"",type_name:v.value.type_name||h.value.type_name||"",remarks:v.value.remarks||h.value.vod_remarks||"",api_info:{module:x.value.key,api_url:x.value.api,site_name:x.value.name,ext:x.value.ext||null}},ce={name:_e.value[y.value]?.name||"",index:y.value},Se={name:me.value[oe].name,index:oe,url:me.value[oe].url};console.log("=== 添加历史记录调试 ==="),console.log("currentSiteInfo.value.ext:",x.value.ext),console.log("videoInfo.api_info.ext:",J.api_info.ext),console.log("=== 调试结束 ==="),a.addToHistory(J,ce,Se)}},un=async(oe,ne)=>{try{console.log("🚀🚀🚀 开始处理push://协议:",oe),yt.info("正在处理推送链接...");const ee=oe.replace("push://","").trim();console.log("提取的推送内容:",ee),E.value=!0,_.value=!0,console.log("🚀 [推送操作] 已设置推送覆盖标记:",{hasPushOverride:_.value,isPushMode:E.value,timestamp:new Date().toLocaleTimeString()});const J=Zo.getAllSites().find(nt=>nt.key==="push_agent");if(!J)throw new Error("未找到push_agent源,请检查源配置");console.log("找到push_agent源:",J),T.value=J,console.log("调用push_agent详情接口,参数:",{module:J.key,videoId:ee,apiUrl:J.api,extend:J.ext});const ce=await Ka.getVideoDetails(J.key,ee,J.api,!1,J.ext);if(console.log("push_agent详情接口返回结果:",ce),!ce||!ce.vod_play_from||!ce.vod_play_url)throw new Error("push_agent源返回的数据格式不正确,缺少播放信息");h.value.vod_play_from=ce.vod_play_from,h.value.vod_play_url=ce.vod_play_url;const Se=[],ke={vod_content:"剧情简介",vod_id:"视频ID",vod_pic:"封面图片",vod_name:"视频名称",vod_remarks:"备注信息",vod_actor:"演员",vod_director:"导演",vod_year:"年份",vod_area:"地区",vod_lang:"语言",vod_class:"分类"};Object.keys(ke).forEach(nt=>{ce[nt]!==void 0&&ce[nt]!==null&&ce[nt]!==""&&(h.value[nt]=ce[nt],Se.push(ke[nt]))}),y.value=0,S.value=0,console.log("推送数据更新完成,新的播放信息:",{vod_play_from:h.value.vod_play_from,vod_play_url:h.value.vod_play_url,updatedFields:Se});const Ae=Se.length>0?`推送成功: ${ne||"未知来源"} (已更新: ${Se.join("、")})`:`推送成功: ${ne||"未知来源"}`;yt.success(Ae)}catch(ee){console.error("处理push://协议失败:",ee),yt.error(`推送失败: ${ee.message}`),E.value=!1,T.value=x.value}},Xn=async oe=>{let ne=null;try{if(!MT())throw new Error("嗅探功能未启用,请在设置中配置嗅探器");ae.value=!0,re.value=[],ne=yt.info({content:"正在全力嗅探中,请稍等...",duration:0}),console.log("开始嗅探视频链接:",oe);let ee;typeof oe=="object"&&oe.parse===1?(ee=oe,console.log("使用T4解析数据进行嗅探:",ee)):(ee=typeof oe=="string"?oe:oe.toString(),console.log("使用普通URL进行嗅探:",ee));const J=await K3e(ee,{mode:"0",is_pc:"0"});if(console.log("嗅探结果:",J),J.success&&J.data){let ce,Se;if(Array.isArray(J.data)){if(J.data.length===0)throw new Error("嗅探失败,未找到有效的视频链接");ce=J.data,Se=J.data.length,re.value=J.data}else if(J.data.url)ce=[J.data],Se=1,re.value=ce;else throw new Error("嗅探结果格式无效");ne.close();const ke=ce[0];if(ke&&ke.url)return console.log("使用嗅探到的第一个链接:",ke.url),P.value=ke.url,te.value=null,q.value=null,ie.value=!1,W.value=!1,D.value=!0,yt.success(`嗅探成功,开始播放: ${Ke.value}`),!0;throw new Error("嗅探到的链接无效")}else throw new Error(J.message||"嗅探失败,未找到有效的视频链接")}catch(ee){return console.error("嗅探失败:",ee),ne&&ne.close(),yt.error(`嗅探失败: ${ee.message}`),!1}finally{ae.value=!1}},wr=async()=>{const oe=v.value.id,ne=x.value.api;if(oe&&ne){const ee=a.getHistoryByVideo(oe,ne);if(ee){console.log("发现历史记录,播放历史位置:",ee);const J=_e.value,ce=J.find(Se=>Se.name===ee.current_route_name);if(ce){const Se=J.indexOf(ce);y.value=Se,await dn();const ke=me.value,Ae=ke.find(nt=>nt.name===ee.current_episode_name);if(Ae){const nt=ke.indexOf(Ae);await An(nt)}else console.warn("未找到历史选集,播放第一个选集"),await Ot()}else console.warn("未找到历史线路,播放第一个选集"),await Ot()}else console.log("无历史记录,播放第一个选集"),await Ot()}else await Ot()},ro=()=>{console.log("开始智能查找第一个m3u8选集...");for(let oe=0;oe<_e.value.length;oe++){const ne=_e.value[oe];console.log(`检查线路 ${oe}: ${ne.name}`);for(let ee=0;ee{const oe=ro();oe?(console.log(`智能播放m3u8选集: ${oe.route} - ${oe.episode}`),y.value=oe.routeIndex,await dn(),await An(oe.episodeIndex)):_e.value.length>0&&(y.value=0,await dn(),me.value.length>0&&await An(0))},bn=async()=>{if(Oe.value)try{await navigator.clipboard.writeText(Oe.value),yt.success("链接已复制到剪贴板")}catch{yt.error("复制失败")}},kr=()=>{K.value=!0},sr=()=>{K.value=!1},zr=async oe=>{try{console.log("确认下载任务:",oe);const ne={title:oe.novelDetail.vod_name,id:oe.novelDetail.vod_id,url:Oe.value||"",author:oe.novelDetail.vod_actor||"未知",description:oe.novelDetail.vod_content||"",cover:oe.novelDetail.vod_pic||""},ee=oe.selectedChapters.map(Se=>{const ke=oe.chapters[Se];return{name:ke.name||`第${Se+1}章`,url:ke.url||ke.vod_play_url||"",index:Se}}),J={...oe.settings,module:T.value?.key||"",apiUrl:T.value?.api||"",extend:T.value?.ext||"",flag:_e.value[y.value]?.name||""};console.log("下载设置:",J),console.log("当前站点信息:",T.value);const ce=bce.createTask(ne,ee,J);await bce.startTask(ce.id),yt.success(`下载任务已创建:${oe.novelDetail.vod_name}`),sr()}catch(ne){console.error("创建下载任务失败:",ne),yt.error("创建下载任务失败:"+ne.message)}};return It(()=>[t.params.id,t.query],()=>{if(t.params.id){if(console.log("🔍 [params监听器] 检测到路由变化,重新加载视频详情:",{id:t.params.id,fromCollection:t.query.fromCollection,name:t.query.name,folderState:t.query.folderState,timestamp:new Date().toLocaleTimeString()}),t.query.folderState&&!p.value)try{p.value=t.query.folderState}catch(oe){console.error("VideoDetail保存folderState失败:",oe)}Ht()}},{immediate:!0,deep:!0}),It(()=>t.fullPath,(oe,ne)=>{console.log("🔍 [fullPath监听器] 路由fullPath变化监听器触发:",{newPath:oe,oldPath:ne,hasVideoInPath:oe?.includes("/video/"),hasId:!!t.params.id,pathChanged:oe!==ne,hasPushOverride:_.value,timestamp:new Date().toLocaleTimeString()}),oe&&oe.includes("/video/")&&oe!==ne&&t.params.id&&console.log("ℹ️ [fullPath监听器] 检测到路径变化,但推送覆盖处理已交给onActivated:",{oldPath:ne,newPath:oe,id:t.params.id,hasPushOverride:_.value})},{immediate:!0}),It(()=>r.nowSite,(oe,ne)=>{oe&&ne&&oe.api!==ne.api&&t.params.id&&(console.log("检测到站点切换,重新加载视频详情:",{oldSite:ne?.name,newSite:oe?.name}),Ht())},{deep:!0}),hn(async()=>{console.log("VideoDetail组件已挂载");try{await Yt()}catch(oe){console.error("初始化解析器失败:",oe)}}),HU(()=>{console.log("🔄 [组件激活] VideoDetail组件激活:",{hasPushOverride:_.value,isPushMode:E.value,routeId:t.params.id,timestamp:new Date().toLocaleTimeString()}),_.value&&t.params.id?(console.log("✅ [组件激活] 检测到推送覆盖,强制重新加载数据"),Ht()):console.log("ℹ️ [组件激活] 未检测到推送覆盖标记,跳过强制重新加载:",{hasPushOverride:_.value,hasRouteId:!!t.params.id,routeId:t.params.id,condition1:_.value,condition2:!!t.params.id,bothConditions:_.value&&t.params.id})}),ii(()=>{console.log("VideoDetail组件卸载"),console.log("🔄 [状态清理] 组件卸载,保留推送覆盖状态以便用户返回时恢复")}),(oe,ne)=>{const ee=Te("a-button"),J=Te("a-spin"),ce=Te("a-result"),Se=Te("a-tag"),ke=Te("a-card"),Ae=i3("viewer");return z(),X("div",X9t,[I("div",Z9t,[$(ee,{type:"text",onClick:vt,class:"back-btn"},{icon:fe(()=>[$(rt(Il))]),default:fe(()=>[ne[3]||(ne[3]=He(" 返回 ",-1))]),_:1}),I("div",J9t,[v.value.name?(z(),X("span",e$t,[I("span",t$t,"视频详情 - "+Ne(v.value.name),1),x.value.name?(z(),X("span",n$t," ("+Ne(x.value.name)+" - ID: "+Ne(v.value.id)+") ",1)):Ie("",!0)])):(z(),X("span",Q9t,"视频详情"))]),v.value.id?(z(),X("div",r$t,[_.value?(z(),Ze(ee,{key:0,type:"outline",status:"warning",onClick:rn,class:"clear-push-btn"},{icon:fe(()=>[$(rt(zc))]),default:fe(()=>[ne[4]||(ne[4]=He(" 恢复原始数据 ",-1))]),_:1})):Ie("",!0),$(ee,{type:ft.value?"primary":"outline",onClick:Jt,class:"favorite-btn",loading:k.value},{icon:fe(()=>[ft.value?(z(),Ze(rt(rW),{key:0})):(z(),Ze(rt(oA),{key:1}))]),default:fe(()=>[He(" "+Ne(ft.value?"取消收藏":"收藏"),1)]),_:1},8,["type","loading"])])):Ie("",!0)]),c.value?(z(),X("div",i$t,[$(J,{size:40}),ne[5]||(ne[5]=I("div",{class:"loading-text"},"正在加载详情...",-1))])):d.value?(z(),X("div",o$t,[$(ce,{status:"error",title:d.value},null,8,["title"]),$(ee,{type:"primary",onClick:Ht},{default:fe(()=>[...ne[6]||(ne[6]=[He("重新加载",-1)])]),_:1})])):h.value?(z(),X("div",s$t,[D.value&&(qe.value||j.value)&&ge.value==="default"?(z(),Ze(uU,{key:0,"video-url":qe.value,"episode-name":Ke.value,poster:h.value?.vod_pic,visible:D.value,"player-type":ge.value,episodes:me.value,"current-episode-index":at.value,headers:M.value,qualities:O.value,"has-multiple-qualities":L.value,"initial-quality":B.value,"needs-parsing":j.value,"parse-data":H.value,onClose:dt,onPlayerChange:Lt,onParserChange:Wt,onNextEpisode:Xt,onEpisodeSelected:Dn,onQualityChange:qr},null,8,["video-url","episode-name","poster","visible","player-type","episodes","current-episode-index","headers","qualities","has-multiple-qualities","initial-quality","needs-parsing","parse-data"])):Ie("",!0),D.value&&(qe.value||j.value)&&ge.value==="artplayer"?(z(),Ze(D4e,{key:1,"video-url":qe.value,"episode-name":Ke.value,poster:h.value?.vod_pic,visible:D.value,"player-type":ge.value,episodes:me.value,"current-episode-index":at.value,"auto-next":!0,headers:M.value,qualities:O.value,"has-multiple-qualities":L.value,"initial-quality":B.value,"needs-parsing":j.value,"parse-data":H.value,onClose:dt,onPlayerChange:Lt,onParserChange:Wt,onNextEpisode:Xt,onEpisodeSelected:Dn,onQualityChange:qr},null,8,["video-url","episode-name","poster","visible","player-type","episodes","current-episode-index","headers","qualities","has-multiple-qualities","initial-quality","needs-parsing","parse-data"])):Ie("",!0),ie.value&&te.value?(z(),Ze(dMt,{key:2,"book-detail":h.value,"chapter-content":te.value,chapters:me.value,"current-chapter-index":S.value,visible:ie.value,onClose:Qe,onNextChapter:ht,onPrevChapter:Vt,onChapterSelected:Ut,onChapterChange:Le},null,8,["book-detail","chapter-content","chapters","current-chapter-index","visible"])):Ie("",!0),W.value&&q.value?(z(),Ze(S9t,{key:3,"comic-detail":h.value,"comic-title":h.value?.vod_name,"chapter-name":Ke.value,chapters:me.value,"current-chapter-index":S.value,"comic-content":q.value,visible:W.value,onClose:Qe,onNextChapter:ht,onPrevChapter:Vt,onChapterSelected:Ut,onSettingsChange:rr},null,8,["comic-detail","comic-title","chapter-name","chapters","current-chapter-index","comic-content","visible"])):Ie("",!0),$(ke,{class:de(["video-info-card",{"collapsed-when-playing":D.value||ie.value}])},{default:fe(()=>[I("div",a$t,[I("div",{class:"video-poster",onClick:Me},[I("img",{src:Ue.value,alt:h.value.vod_name,onError:Fe},null,40,l$t),I("div",u$t,[$(rt(x0),{class:"view-icon"}),ne[7]||(ne[7]=I("span",null,"查看大图",-1))])]),I("div",c$t,[I("h1",d$t,Ne(h.value.vod_name),1),I("div",f$t,[h.value.type_name?(z(),Ze(Se,{key:0,color:"blue"},{default:fe(()=>[He(Ne(h.value.type_name),1)]),_:1})):Ie("",!0),h.value.vod_year?(z(),Ze(Se,{key:1,color:"green"},{default:fe(()=>[He(Ne(h.value.vod_year),1)]),_:1})):Ie("",!0),h.value.vod_area?(z(),Ze(Se,{key:2,color:"orange"},{default:fe(()=>[He(Ne(h.value.vod_area),1)]),_:1})):Ie("",!0)]),I("div",h$t,[h.value.vod_director?(z(),X("div",p$t,[ne[8]||(ne[8]=I("span",{class:"label"},"导演:",-1)),I("span",v$t,Ne(h.value.vod_director),1)])):Ie("",!0),h.value.vod_actor?(z(),X("div",m$t,[ne[9]||(ne[9]=I("span",{class:"label"},"演员:",-1)),I("span",g$t,Ne(h.value.vod_actor),1)])):Ie("",!0),h.value.vod_remarks?(z(),X("div",y$t,[ne[10]||(ne[10]=I("span",{class:"label"},"备注:",-1)),I("span",b$t,Ne(h.value.vod_remarks),1)])):Ie("",!0)])]),I("div",_$t,[Oe.value?(z(),X("div",S$t,[$(ee,{type:"primary",size:"large",onClick:wr,class:"play-btn"},{icon:fe(()=>[Rt.value.icon==="icon-play-arrow"?(z(),Ze(rt(ha),{key:0})):Rt.value.icon==="icon-book"?(z(),Ze(rt(c_),{key:1})):Rt.value.icon==="icon-image"?(z(),Ze(rt(lA),{key:2})):Rt.value.icon==="icon-sound"?(z(),Ze(rt(Uve),{key:3})):Ie("",!0)]),default:fe(()=>[He(" "+Ne(Rt.value.text),1)]),_:1}),$(ee,{onClick:bn,class:"copy-btn",size:"large"},{icon:fe(()=>[$(rt(nA))]),default:fe(()=>[ne[11]||(ne[11]=He(" 复制链接 ",-1))]),_:1})])):Ie("",!0),wt.value?(z(),X("div",k$t,[$(ee,{onClick:kr,class:"download-btn",type:"primary",status:"success",size:"large"},{icon:fe(()=>[$(rt(Ph))]),default:fe(()=>[ne[12]||(ne[12]=He(" 下载小说 ",-1))]),_:1})])):Ie("",!0)])]),h.value.vod_content?(z(),X("div",x$t,[ne[13]||(ne[13]=I("h3",null,"剧情简介",-1)),I("div",{class:de(["description-content",{expanded:g.value}])},Ne(h.value.vod_content),3),h.value.vod_content.length>200?(z(),Ze(ee,{key:0,type:"text",onClick:We,class:"expand-btn"},{default:fe(()=>[He(Ne(g.value?"收起":"展开"),1)]),_:1})):Ie("",!0)])):Ie("",!0)]),_:1},8,["class"]),$(dRt,{"video-detail":h.value,"current-route":y.value,"current-episode":S.value,onRouteChange:$e,onEpisodeChange:An},null,8,["video-detail","current-route","current-episode"])])):Ie("",!0),Ai((z(),X("div",C$t,[(z(!0),X(Pt,null,cn(Ge.value,(nt,ot)=>(z(),X("img",{key:ot,src:nt.src,alt:nt.name,"data-source":nt.src,title:nt.name},null,8,w$t))),128))])),[[Ae,tt.value],[es,!1]]),$(ep,{visible:Q.value,title:se.value.title,width:400,onClose:ne[1]||(ne[1]=nt=>Q.value=!1)},{footer:fe(()=>[I("div",B$t,[$(ee,{type:"primary",onClick:ne[0]||(ne[0]=nt=>Q.value=!1),disabled:ae.value},{default:fe(()=>[...ne[16]||(ne[16]=[He(" 我知道了 ",-1)])]),_:1},8,["disabled"])])]),default:fe(()=>[I("div",E$t,[I("div",T$t,Ne(se.value.message),1),re.value.length>0?(z(),X("div",A$t,[ne[14]||(ne[14]=I("div",{class:"results-title"},"嗅探到的视频链接:",-1)),I("div",I$t,[(z(!0),X(Pt,null,cn(re.value.slice(0,3),(nt,ot)=>(z(),X("div",{key:ot,class:"result-item"},[I("div",L$t,Ne(ot+1),1),I("div",D$t,[I("div",P$t,Ne(nt.url),1),nt.type?(z(),X("div",R$t,Ne(nt.type),1)):Ie("",!0)])]))),128)),re.value.length>3?(z(),X("div",M$t," 还有 "+Ne(re.value.length-3)+" 个链接... ",1)):Ie("",!0)])])):Ie("",!0),ae.value?Ie("",!0):(z(),X("div",$$t,[I("div",O$t,[$(rt(x0))]),ne[15]||(ne[15]=I("div",{class:"hint-text"}," 敬请期待后续版本支持! ",-1))]))])]),_:1},8,["visible","title"]),$(q9t,{visible:K.value,"novel-detail":h.value,chapters:me.value,"source-name":x.value?.name||"",onClose:ne[2]||(ne[2]=nt=>K.value=!1),onConfirm:zr},null,8,["visible","novel-detail","chapters","source-name"])])}}},F$t=cr(N$t,[["__scopeId","data-v-9b86bd37"]]);var uj={exports:{}},_ce;function j$t(){return _ce||(_ce=1,(function(e,t){(function(n,r){e.exports=r()})(window,(function(){return(function(n){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(a,s,l){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:l})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var c in a)i.d(l,c,(function(d){return a[d]}).bind(null,c));return l},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=20)})([function(n,r,i){var a=i(9),s=i.n(a),l=(function(){function c(){}return c.e=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","error",p),c.ENABLE_ERROR&&(console.error?console.error(p):console.warn?console.warn(p):console.log(p))},c.i=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","info",p),c.ENABLE_INFO&&(console.info?console.info(p):console.log(p))},c.w=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","warn",p),c.ENABLE_WARN&&(console.warn?console.warn(p):console.log(p))},c.d=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","debug",p),c.ENABLE_DEBUG&&(console.debug?console.debug(p):console.log(p))},c.v=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","verbose",p),c.ENABLE_VERBOSE&&console.log(p)},c})();l.GLOBAL_TAG="mpegts.js",l.FORCE_GLOBAL_TAG=!1,l.ENABLE_ERROR=!0,l.ENABLE_INFO=!0,l.ENABLE_WARN=!0,l.ENABLE_DEBUG=!0,l.ENABLE_VERBOSE=!0,l.ENABLE_CALLBACK=!1,l.emitter=new s.a,r.a=l},function(n,r,i){var a;(function(s){s.IO_ERROR="io_error",s.DEMUX_ERROR="demux_error",s.INIT_SEGMENT="init_segment",s.MEDIA_SEGMENT="media_segment",s.LOADING_COMPLETE="loading_complete",s.RECOVERED_EARLY_EOF="recovered_early_eof",s.MEDIA_INFO="media_info",s.METADATA_ARRIVED="metadata_arrived",s.SCRIPTDATA_ARRIVED="scriptdata_arrived",s.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",s.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",s.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",s.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",s.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",s.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",s.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",s.STATISTICS_INFO="statistics_info",s.RECOMMEND_SEEKPOINT="recommend_seekpoint"})(a||(a={})),r.a=a},function(n,r,i){i.d(r,"c",(function(){return s})),i.d(r,"b",(function(){return l})),i.d(r,"a",(function(){return c}));var a=i(3),s={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},l={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},c=(function(){function d(h){this._type=h||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return d.prototype.destroy=function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null},d.prototype.isWorking=function(){return this._status===s.kConnecting||this._status===s.kBuffering},Object.defineProperty(d.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"needStashBuffer",{get:function(){return this._needStash},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onContentLengthKnown",{get:function(){return this._onContentLengthKnown},set:function(h){this._onContentLengthKnown=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onURLRedirect",{get:function(){return this._onURLRedirect},set:function(h){this._onURLRedirect=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(h){this._onDataArrival=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onError",{get:function(){return this._onError},set:function(h){this._onError=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onComplete",{get:function(){return this._onComplete},set:function(h){this._onComplete=h},enumerable:!1,configurable:!0}),d.prototype.open=function(h,p){throw new a.c("Unimplemented abstract function!")},d.prototype.abort=function(){throw new a.c("Unimplemented abstract function!")},d})()},function(n,r,i){i.d(r,"d",(function(){return l})),i.d(r,"a",(function(){return c})),i.d(r,"b",(function(){return d})),i.d(r,"c",(function(){return h}));var a,s=(a=function(p,v){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(g[S]=y[S])})(p,v)},function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function g(){this.constructor=p}a(p,v),p.prototype=v===null?Object.create(v):(g.prototype=v.prototype,new g)}),l=(function(){function p(v){this._message=v}return Object.defineProperty(p.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),p.prototype.toString=function(){return this.name+": "+this.message},p})(),c=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),v})(l),d=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),v})(l),h=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),v})(l)},function(n,r,i){var a;(function(s){s.ERROR="error",s.LOADING_COMPLETE="loading_complete",s.RECOVERED_EARLY_EOF="recovered_early_eof",s.MEDIA_INFO="media_info",s.METADATA_ARRIVED="metadata_arrived",s.SCRIPTDATA_ARRIVED="scriptdata_arrived",s.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",s.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",s.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",s.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",s.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",s.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",s.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",s.STATISTICS_INFO="statistics_info",s.DESTROYING="destroying"})(a||(a={})),r.a=a},function(n,r,i){var a={};(function(){var s=self.navigator.userAgent.toLowerCase(),l=/(edge)\/([\w.]+)/.exec(s)||/(opr)[\/]([\w.]+)/.exec(s)||/(chrome)[ \/]([\w.]+)/.exec(s)||/(iemobile)[\/]([\w.]+)/.exec(s)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+)/.exec(s)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(s)||/(msie) ([\w.]+)/.exec(s)||s.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(s)||s.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(s)||[],c=/(ipad)/.exec(s)||/(ipod)/.exec(s)||/(windows phone)/.exec(s)||/(iphone)/.exec(s)||/(kindle)/.exec(s)||/(android)/.exec(s)||/(windows)/.exec(s)||/(mac)/.exec(s)||/(linux)/.exec(s)||/(cros)/.exec(s)||[],d={browser:l[5]||l[3]||l[1]||"",version:l[2]||l[4]||"0",majorVersion:l[4]||l[2]||"0",platform:c[0]||""},h={};if(d.browser){h[d.browser]=!0;var p=d.majorVersion.split(".");h.version={major:parseInt(d.majorVersion,10),string:d.version},p.length>1&&(h.version.minor=parseInt(p[1],10)),p.length>2&&(h.version.build=parseInt(p[2],10))}d.platform&&(h[d.platform]=!0),(h.chrome||h.opr||h.safari)&&(h.webkit=!0),(h.rv||h.iemobile)&&(h.rv&&delete h.rv,d.browser="msie",h.msie=!0),h.edge&&(delete h.edge,d.browser="msedge",h.msedge=!0),h.opr&&(d.browser="opera",h.opera=!0),h.safari&&h.android&&(d.browser="android",h.android=!0);for(var v in h.name=d.browser,h.platform=d.platform,a)a.hasOwnProperty(v)&&delete a[v];Object.assign(a,h)})(),r.a=a},function(n,r,i){r.a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},function(n,r,i){var a;(function(s){s.ERROR="error",s.SOURCE_OPEN="source_open",s.UPDATE_END="update_end",s.BUFFER_FULL="buffer_full",s.START_STREAMING="start_streaming",s.END_STREAMING="end_streaming"})(a||(a={})),r.a=a},function(n,r,i){var a=i(9),s=i.n(a),l=i(0),c=(function(){function d(){}return Object.defineProperty(d,"forceGlobalTag",{get:function(){return l.a.FORCE_GLOBAL_TAG},set:function(h){l.a.FORCE_GLOBAL_TAG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"globalTag",{get:function(){return l.a.GLOBAL_TAG},set:function(h){l.a.GLOBAL_TAG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableAll",{get:function(){return l.a.ENABLE_VERBOSE&&l.a.ENABLE_DEBUG&&l.a.ENABLE_INFO&&l.a.ENABLE_WARN&&l.a.ENABLE_ERROR},set:function(h){l.a.ENABLE_VERBOSE=h,l.a.ENABLE_DEBUG=h,l.a.ENABLE_INFO=h,l.a.ENABLE_WARN=h,l.a.ENABLE_ERROR=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableDebug",{get:function(){return l.a.ENABLE_DEBUG},set:function(h){l.a.ENABLE_DEBUG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableVerbose",{get:function(){return l.a.ENABLE_VERBOSE},set:function(h){l.a.ENABLE_VERBOSE=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableInfo",{get:function(){return l.a.ENABLE_INFO},set:function(h){l.a.ENABLE_INFO=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableWarn",{get:function(){return l.a.ENABLE_WARN},set:function(h){l.a.ENABLE_WARN=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableError",{get:function(){return l.a.ENABLE_ERROR},set:function(h){l.a.ENABLE_ERROR=h,d._notifyChange()},enumerable:!1,configurable:!0}),d.getConfig=function(){return{globalTag:l.a.GLOBAL_TAG,forceGlobalTag:l.a.FORCE_GLOBAL_TAG,enableVerbose:l.a.ENABLE_VERBOSE,enableDebug:l.a.ENABLE_DEBUG,enableInfo:l.a.ENABLE_INFO,enableWarn:l.a.ENABLE_WARN,enableError:l.a.ENABLE_ERROR,enableCallback:l.a.ENABLE_CALLBACK}},d.applyConfig=function(h){l.a.GLOBAL_TAG=h.globalTag,l.a.FORCE_GLOBAL_TAG=h.forceGlobalTag,l.a.ENABLE_VERBOSE=h.enableVerbose,l.a.ENABLE_DEBUG=h.enableDebug,l.a.ENABLE_INFO=h.enableInfo,l.a.ENABLE_WARN=h.enableWarn,l.a.ENABLE_ERROR=h.enableError,l.a.ENABLE_CALLBACK=h.enableCallback},d._notifyChange=function(){var h=d.emitter;if(h.listenerCount("change")>0){var p=d.getConfig();h.emit("change",p)}},d.registerListener=function(h){d.emitter.addListener("change",h)},d.removeListener=function(h){d.emitter.removeListener("change",h)},d.addLogListener=function(h){l.a.emitter.addListener("log",h),l.a.emitter.listenerCount("log")>0&&(l.a.ENABLE_CALLBACK=!0,d._notifyChange())},d.removeLogListener=function(h){l.a.emitter.removeListener("log",h),l.a.emitter.listenerCount("log")===0&&(l.a.ENABLE_CALLBACK=!1,d._notifyChange())},d})();c.emitter=new s.a,r.a=c},function(n,r,i){var a,s=typeof Reflect=="object"?Reflect:null,l=s&&typeof s.apply=="function"?s.apply:function(_,T,D){return Function.prototype.apply.call(_,T,D)};a=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var c=Number.isNaN||function(_){return _!=_};function d(){d.init.call(this)}n.exports=d,n.exports.once=function(_,T){return new Promise((function(D,P){function M(L){_.removeListener(T,O),P(L)}function O(){typeof _.removeListener=="function"&&_.removeListener("error",M),D([].slice.call(arguments))}E(_,T,O,{once:!0}),T!=="error"&&(function(L,B,j){typeof L.on=="function"&&E(L,"error",B,j)})(_,M,{once:!0})}))},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var h=10;function p(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}function v(_){return _._maxListeners===void 0?d.defaultMaxListeners:_._maxListeners}function g(_,T,D,P){var M,O,L,B;if(p(D),(O=_._events)===void 0?(O=_._events=Object.create(null),_._eventsCount=0):(O.newListener!==void 0&&(_.emit("newListener",T,D.listener?D.listener:D),O=_._events),L=O[T]),L===void 0)L=O[T]=D,++_._eventsCount;else if(typeof L=="function"?L=O[T]=P?[D,L]:[L,D]:P?L.unshift(D):L.push(D),(M=v(_))>0&&L.length>M&&!L.warned){L.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=_,j.type=T,j.count=L.length,B=j,console&&console.warn&&console.warn(B)}return _}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(_,T,D){var P={fired:!1,wrapFn:void 0,target:_,type:T,listener:D},M=y.bind(P);return M.listener=D,P.wrapFn=M,M}function k(_,T,D){var P=_._events;if(P===void 0)return[];var M=P[T];return M===void 0?[]:typeof M=="function"?D?[M.listener||M]:[M]:D?(function(O){for(var L=new Array(O.length),B=0;B0&&(O=T[0]),O instanceof Error)throw O;var L=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw L.context=O,L}var B=M[_];if(B===void 0)return!1;if(typeof B=="function")l(B,this,T);else{var j=B.length,H=x(B,j);for(D=0;D=0;O--)if(D[O]===T||D[O].listener===T){L=D[O].listener,M=O;break}if(M<0)return this;M===0?D.shift():(function(B,j){for(;j+1=0;P--)this.removeListener(_,T[P]);return this},d.prototype.listeners=function(_){return k(this,_,!0)},d.prototype.rawListeners=function(_){return k(this,_,!1)},d.listenerCount=function(_,T){return typeof _.listenerCount=="function"?_.listenerCount(T):C.call(_,T)},d.prototype.listenerCount=C,d.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},function(n,r,i){i.d(r,"b",(function(){return l})),i.d(r,"a",(function(){return c}));var a=i(2),s=i(6),l={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},c={NETWORK_EXCEPTION:a.b.EXCEPTION,NETWORK_STATUS_CODE_INVALID:a.b.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:a.b.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:a.b.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:s.a.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:s.a.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:s.a.CODEC_UNSUPPORTED}},function(n,r,i){i.d(r,"d",(function(){return a})),i.d(r,"b",(function(){return s})),i.d(r,"a",(function(){return l})),i.d(r,"c",(function(){return c}));var a=function(d,h,p,v,g){this.dts=d,this.pts=h,this.duration=p,this.originalDts=v,this.isSyncPoint=g,this.fileposition=null},s=(function(){function d(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return d.prototype.appendSyncPoint=function(h){h.isSyncPoint=!0,this.syncPoints.push(h)},d})(),l=(function(){function d(){this._list=[]}return d.prototype.clear=function(){this._list=[]},d.prototype.appendArray=function(h){var p=this._list;h.length!==0&&(p.length>0&&h[0].originalDts=p[y].dts&&hp[g].lastSample.originalDts&&h=p[g].lastSample.originalDts&&(g===p.length-1||g0&&(y=this._searchNearestSegmentBefore(v.originalBeginDts)+1),this._lastAppendLocation=y,this._list.splice(y,0,v)},d.prototype.getLastSegmentBefore=function(h){var p=this._searchNearestSegmentBefore(h);return p>=0?this._list[p]:null},d.prototype.getLastSampleBefore=function(h){var p=this.getLastSegmentBefore(h);return p!=null?p.lastSample:null},d.prototype.getLastSyncPointBefore=function(h){for(var p=this._searchNearestSegmentBefore(h),v=this._list[p].syncPoints;v.length===0&&p>0;)p--,v=this._list[p].syncPoints;return v.length>0?v[v.length-1]:null},d})()},function(n,r,i){var a=(function(){function s(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return s.prototype.isComplete=function(){var l=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,c=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&l&&c},s.prototype.isSeekable=function(){return this.hasKeyframesIndex===!0},s.prototype.getNearestKeyframe=function(l){if(this.keyframesIndex==null)return null;var c=this.keyframesIndex,d=this._search(c.times,l);return{index:d,milliseconds:c.times[d],fileposition:c.filepositions[d]}},s.prototype._search=function(l,c){var d=0,h=l.length-1,p=0,v=0,g=h;for(c=l[p]&&c=128){ne.push(String.fromCharCode(65535&Se)),J+=2;continue}}else if(ee[J]<240){if(h(ee,J,2)&&(Se=(15&ee[J])<<12|(63&ee[J+1])<<6|63&ee[J+2])>=2048&&(63488&Se)!=55296){ne.push(String.fromCharCode(65535&Se)),J+=3;continue}}else if(ee[J]<248){var Se;if(h(ee,J,3)&&(Se=(7&ee[J])<<18|(63&ee[J+1])<<12|(63&ee[J+2])<<6|63&ee[J+3])>65536&&Se<1114112){Se-=65536,ne.push(String.fromCharCode(Se>>>10|55296)),ne.push(String.fromCharCode(1023&Se|56320)),J+=4;continue}}}ne.push("�"),++J}return ne.join("")},g=i(3),y=(p=new ArrayBuffer(2),new DataView(p).setInt16(0,256,!0),new Int16Array(p)[0]===256),S=(function(){function oe(){}return oe.parseScriptData=function(ne,ee,J){var ce={};try{var Se=oe.parseValue(ne,ee,J),ke=oe.parseValue(ne,ee+Se.size,J-Se.size);ce[Se.data]=ke.data}catch(Ae){l.a.e("AMF",Ae.toString())}return ce},oe.parseObject=function(ne,ee,J){if(J<3)throw new g.a("Data not enough when parse ScriptDataObject");var ce=oe.parseString(ne,ee,J),Se=oe.parseValue(ne,ee+ce.size,J-ce.size),ke=Se.objectEnd;return{data:{name:ce.data,value:Se.data},size:ce.size+Se.size,objectEnd:ke}},oe.parseVariable=function(ne,ee,J){return oe.parseObject(ne,ee,J)},oe.parseString=function(ne,ee,J){if(J<2)throw new g.a("Data not enough when parse String");var ce=new DataView(ne,ee,J).getUint16(0,!y);return{data:ce>0?v(new Uint8Array(ne,ee+2,ce)):"",size:2+ce}},oe.parseLongString=function(ne,ee,J){if(J<4)throw new g.a("Data not enough when parse LongString");var ce=new DataView(ne,ee,J).getUint32(0,!y);return{data:ce>0?v(new Uint8Array(ne,ee+4,ce)):"",size:4+ce}},oe.parseDate=function(ne,ee,J){if(J<10)throw new g.a("Data size invalid when parse Date");var ce=new DataView(ne,ee,J),Se=ce.getFloat64(0,!y),ke=ce.getInt16(8,!y);return{data:new Date(Se+=60*ke*1e3),size:10}},oe.parseValue=function(ne,ee,J){if(J<1)throw new g.a("Data not enough when parse Value");var ce,Se=new DataView(ne,ee,J),ke=1,Ae=Se.getUint8(0),nt=!1;try{switch(Ae){case 0:ce=Se.getFloat64(1,!y),ke+=8;break;case 1:ce=!!Se.getUint8(1),ke+=1;break;case 2:var ot=oe.parseString(ne,ee+1,J-1);ce=ot.data,ke+=ot.size;break;case 3:ce={};var gt=0;for((16777215&Se.getUint32(J-4,!y))==9&&(gt=3);ke32)throw new g.b("ExpGolomb: readBits() bits exceeded max 32bits!");if(ne<=this._current_word_bits_left){var ee=this._current_word>>>32-ne;return this._current_word<<=ne,this._current_word_bits_left-=ne,ee}var J=this._current_word_bits_left?this._current_word:0;J>>>=32-this._current_word_bits_left;var ce=ne-this._current_word_bits_left;this._fillCurrentWord();var Se=Math.min(ce,this._current_word_bits_left),ke=this._current_word>>>32-Se;return this._current_word<<=Se,this._current_word_bits_left-=Se,J=J<>>ne)!=0)return this._current_word<<=ne,this._current_word_bits_left-=ne,ne;return this._fillCurrentWord(),ne+this._skipLeadingZero()},oe.prototype.readUEG=function(){var ne=this._skipLeadingZero();return this.readBits(ne+1)-1},oe.prototype.readSEG=function(){var ne=this.readUEG();return 1&ne?ne+1>>>1:-1*(ne>>>1)},oe})(),C=(function(){function oe(){}return oe._ebsp2rbsp=function(ne){for(var ee=ne,J=ee.byteLength,ce=new Uint8Array(J),Se=0,ke=0;ke=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.parseSPS=function(ne){for(var ee=ne.subarray(1,4),J="avc1.",ce=0;ce<3;ce++){var Se=ee[ce].toString(16);Se.length<2&&(Se="0"+Se),J+=Se}var ke=oe._ebsp2rbsp(ne),Ae=new k(ke);Ae.readByte();var nt=Ae.readByte();Ae.readByte();var ot=Ae.readByte();Ae.readUEG();var gt=oe.getProfileString(nt),De=oe.getLevelString(ot),st=1,ut=420,Mt=8,Qt=8;if((nt===100||nt===110||nt===122||nt===244||nt===44||nt===83||nt===86||nt===118||nt===128||nt===138||nt===144)&&((st=Ae.readUEG())===3&&Ae.readBits(1),st<=3&&(ut=[0,420,422,444][st]),Mt=Ae.readUEG()+8,Qt=Ae.readUEG()+8,Ae.readBits(1),Ae.readBool()))for(var Gt=st!==3?8:12,pn=0;pn0&&wn<16?(vr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][wn-1],hr=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][wn-1]):wn===255&&(vr=Ae.readByte()<<8|Ae.readByte(),hr=Ae.readByte()<<8|Ae.readByte())}if(Ae.readBool()&&Ae.readBool(),Ae.readBool()&&(Ae.readBits(4),Ae.readBool()&&Ae.readBits(24)),Ae.readBool()&&(Ae.readUEG(),Ae.readUEG()),Ae.readBool()){var Yr=Ae.readBits(32),ws=Ae.readBits(32);yi=Ae.readBool(),Kr=(li=ws)/(La=2*Yr)}}var Fo=1;vr===1&&hr===1||(Fo=vr/hr);var Go=0,ui=0;st===0?(Go=1,ui=2-Yn):(Go=st===3?1:2,ui=(st===1?2:1)*(2-Yn));var tu=16*(tr+1),Ll=16*(_n+1)*(2-Yn);tu-=(fr+ir)*Go,Ll-=(Ln+or)*ui;var jo=Math.ceil(tu*Fo);return Ae.destroy(),Ae=null,{codec_mimetype:J,profile_idc:nt,level_idc:ot,profile_string:gt,level_string:De,chroma_format_idc:st,bit_depth:Mt,bit_depth_luma:Mt,bit_depth_chroma:Qt,ref_frames:dr,chroma_format:ut,chroma_format_string:oe.getChromaFormatString(ut),frame_rate:{fixed:yi,fps:Kr,fps_den:La,fps_num:li},sar_ratio:{width:vr,height:hr},codec_size:{width:tu,height:Ll},present_size:{width:jo,height:Ll}}},oe._skipScalingList=function(ne,ee){for(var J=8,ce=8,Se=0;Se=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.parseVPS=function(ne){var ee=oe._ebsp2rbsp(ne),J=new k(ee);return J.readByte(),J.readByte(),J.readBits(4),J.readBits(2),J.readBits(6),{num_temporal_layers:J.readBits(3)+1,temporal_id_nested:J.readBool()}},oe.parseSPS=function(ne){var ee=oe._ebsp2rbsp(ne),J=new k(ee);J.readByte(),J.readByte();for(var ce=0,Se=0,ke=0,Ae=0,nt=(J.readBits(4),J.readBits(3)),ot=(J.readBool(),J.readBits(2)),gt=J.readBool(),De=J.readBits(5),st=J.readByte(),ut=J.readByte(),Mt=J.readByte(),Qt=J.readByte(),Gt=J.readByte(),pn=J.readByte(),mn=J.readByte(),ln=J.readByte(),dr=J.readByte(),tr=J.readByte(),_n=J.readByte(),Yn=[],fr=[],ir=0;ir0)for(ir=nt;ir<8;ir++)J.readBits(2);for(ir=0;ir1&&J.readSEG(),ir=0;ir0&&sd<=16?(nu=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][sd-1],pc=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][sd-1]):sd===255&&(nu=J.readBits(16),pc=J.readBits(16))}if(J.readBool()&&J.readBool(),J.readBool()&&(J.readBits(3),J.readBool(),J.readBool()&&(J.readByte(),J.readByte(),J.readByte())),J.readBool()&&(J.readUEG(),J.readUEG()),J.readBool(),J.readBool(),J.readBool(),J.readBool()&&(J.readUEG(),J.readUEG(),J.readUEG(),J.readUEG()),J.readBool()&&(Ns=J.readBits(32),Of=J.readBits(32),J.readBool()&&J.readUEG(),J.readBool())){var jd=!1,Ou=!1,nl=!1;for(jd=J.readBool(),Ou=J.readBool(),(jd||Ou)&&((nl=J.readBool())&&(J.readByte(),J.readBits(5),J.readBool(),J.readBits(5)),J.readBits(4),J.readBits(4),nl&&J.readBits(4),J.readBits(5),J.readBits(5),J.readBits(5)),ir=0;ir<=nt;ir++){var Es=J.readBool();np=Es;var rp=!0,vc=1;Es||(rp=J.readBool());var mc=!1;if(rp?J.readUEG():mc=J.readBool(),mc||(vc=J.readUEG()+1),jd){for(ui=0;ui>3),ke=(4&ne[J])!=0,Ae=(2&ne[J])!=0;ne[J],J+=1,ke&&(J+=1);var nt=Number.POSITIVE_INFINITY;if(Ae){nt=0;for(var ot=0;;ot++){var gt=ne[J++];if(nt|=(127>)<<7*ot,(128>)==0)break}}console.log(Se),Se===1?ee=M(M({},oe.parseSeuqneceHeader(ne.subarray(J,J+nt))),{sequence_header_data:ne.subarray(ce,J+nt)}):(Se==3&&ee||Se==6&&ee)&&(ee=oe.parseOBUFrameHeader(ne.subarray(J,J+nt),0,0,ee)),J+=nt}return ee},oe.parseSeuqneceHeader=function(ne){var ee=new k(ne),J=ee.readBits(3),ce=(ee.readBool(),ee.readBool()),Se=!0,ke=0,Ae=1,nt=void 0,ot=[];if(ce)ot.push({operating_point_idc:0,level:ee.readBits(5),tier:0});else{if(ee.readBool()){var gt=ee.readBits(32),De=ee.readBits(32),st=ee.readBool();if(st){for(var ut=0;ee.readBits(1)===0;)ut+=1;ut>=32||(1<7?ee.readBits(1):0;ot.push({operating_point_idc:pn,level:mn,tier:ln}),Mt&&ee.readBool()&&ee.readBits(4)}}var dr=ot[0],tr=dr.level,_n=dr.tier,Yn=ee.readBits(4),fr=ee.readBits(4),ir=ee.readBits(Yn+1)+1,Ln=ee.readBits(fr+1)+1,or=!1;ce||(or=ee.readBool()),or&&(ee.readBits(4),ee.readBits(4)),ee.readBool(),ee.readBool(),ee.readBool();var vr=!1,hr=2,Kr=2,yi=0;ce||(ee.readBool(),ee.readBool(),ee.readBool(),ee.readBool(),(vr=ee.readBool())&&(ee.readBool(),ee.readBool()),(hr=ee.readBool()?2:ee.readBits(1))?Kr=ee.readBool()?2:ee.readBits(1):Kr=2,vr?yi=ee.readBits(3)+1:yi=0);var li=ee.readBool(),La=(ee.readBool(),ee.readBool(),ee.readBool()),wn=8;J===2&&La?wn=ee.readBool()?12:10:wn=La?10:8;var Yr=!1;J!==1&&(Yr=ee.readBool()),ee.readBool()&&(ee.readBits(8),ee.readBits(8),ee.readBits(8));var ws=1,Fo=1;return Yr?(ee.readBits(1),ws=1,Fo=1):(ee.readBits(1),J==0?(ws=1,Fo=1):J==1?(ws=0,Fo=0):wn==12?ee.readBits(1)&&ee.readBits(1):(ws=1,Fo=0),ws&&Fo&&ee.readBits(2),ee.readBits(1)),ee.readBool(),ee.destroy(),ee=null,{codec_mimetype:"av01.".concat(J,".").concat(oe.getLevelString(tr,_n),".").concat(wn.toString(10).padStart(2,"0")),level:tr,tier:_n,level_string:oe.getLevelString(tr,_n),profile_idc:J,profile_string:"".concat(J),bit_depth:wn,ref_frames:1,chroma_format:oe.getChromaFormat(Yr,ws,Fo),chroma_format_string:oe.getChromaFormatString(Yr,ws,Fo),sequence_header:{frame_id_numbers_present_flag:or,additional_frame_id_length_minus_1:void 0,delta_frame_id_length_minus_2:void 0,reduced_still_picture_header:ce,decoder_model_info_present_flag:!1,operating_points:ot,buffer_removal_time_length_minus_1:nt,equal_picture_interval:Se,seq_force_screen_content_tools:hr,seq_force_integer_mv:Kr,enable_order_hint:vr,order_hint_bits:yi,enable_superres:li,frame_width_bit:Yn+1,frame_height_bit:fr+1,max_frame_width:ir,max_frame_height:Ln},keyframe:void 0,frame_rate:{fixed:Se,fps:ke/Ae,fps_den:Ae,fps_num:ke}}},oe.parseOBUFrameHeader=function(ne,ee,J,ce){var Se=ce.sequence_header,ke=new k(ne),Ae=(Se.max_frame_width,Se.max_frame_height,0);Se.frame_id_numbers_present_flag&&(Ae=Se.additional_frame_id_length_minus_1+Se.delta_frame_id_length_minus_2+3);var nt=0,ot=!0,gt=!0,De=!1;if(!Se.reduced_still_picture_header){if(ke.readBool())return ce;ot=(nt=ke.readBits(2))===2||nt===0,(gt=ke.readBool())&&Se.decoder_model_info_present_flag&&Se.equal_picture_interval,gt&&ke.readBool(),De=!!(nt===3||nt===0&>)||ke.readBool()}ce.keyframe=ot,ke.readBool();var st=Se.seq_force_screen_content_tools;Se.seq_force_screen_content_tools===2&&(st=ke.readBits(1)),st&&(Se.seq_force_integer_mv,Se.seq_force_integer_mv==2&&ke.readBits(1)),Se.frame_id_numbers_present_flag&&ke.readBits(Ae);var ut=!1;if(ut=nt==3||!Se.reduced_still_picture_header&&ke.readBool(),ke.readBits(Se.order_hint_bits),ot||De||ke.readBits(3),Se.decoder_model_info_present_flag&&ke.readBool()){for(var Mt=0;Mt<=Se.operating_points_cnt_minus_1;Mt++)if(Se.operating_points[Mt].decoder_model_present_for_this_op[Mt]){var Qt=Se.operating_points[Mt].operating_point_idc;(Qt===0||Qt>>ee&1&&Qt>>J+8&1)&&ke.readBits(Se.buffer_removal_time_length_minus_1+1)}}var Gt=255;if(nt===3||nt==0&>||(Gt=ke.readBits(8)),(ot||Gt!==255)&&De&&Se.enable_order_hint)for(var pn=0;pn<8;pn++)ke.readBits(Se.order_hint_bits);if(ot){var mn=oe.frameSizeAndRenderSize(ke,ut,Se);ce.codec_size={width:mn.FrameWidth,height:mn.FrameHeight},ce.present_size={width:mn.RenderWidth,height:mn.RenderHeight},ce.sar_ratio={width:mn.RenderWidth/mn.FrameWidth,height:mn.RenderHeight/mn.FrameHeight}}return ke.destroy(),ke=null,ce},oe.frameSizeAndRenderSize=function(ne,ee,J){var ce=J.max_frame_width,Se=J.max_frame_height;ee&&(ce=ne.readBits(J.frame_width_bit)+1,Se=ne.readBits(J.frame_height_bit)+1);var ke=!1;J.enable_superres&&(ke=ne.readBool());var Ae=8;ke&&(Ae=ne.readBits(3)+9);var nt=ce;ce=Math.floor((8*nt+Ae/2)/Ae);var ot=nt,gt=Se;if(ne.readBool()){var De=ne.readBits(16)+1,st=ne.readBits(16)+1;ot=ne.readBits(De)+1,gt=ne.readBits(st)+1}return{UpscaledWidth:nt,FrameWidth:ce,FrameHeight:Se,RenderWidth:ot,RenderHeight:gt}},oe.getLevelString=function(ne,ee){return"".concat(ne.toString(10).padStart(2,"0")).concat(ee===0?"M":"H")},oe.getChromaFormat=function(ne,ee,J){return ne?0:ee===0&&J===0?3:ee===1&&J===0?2:ee===1&&J===1?1:Number.NaN},oe.getChromaFormatString=function(ne,ee,J){return ne?"4:0:0":ee===0&&J===0?"4:4:4":ee===1&&J===0?"4:2:2":ee===1&&J===1?"4:2:0":"Unknown"},oe})(),L,B=(function(){function oe(ne,ee){this.TAG="FLVDemuxer",this._config=ee,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ne.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ne.hasAudioTrack,this._hasVideo=ne.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new d.a,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var J=new ArrayBuffer(2);return new DataView(J).setInt16(0,256,!0),new Int16Array(J)[0]===256})()}return oe.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},oe.probe=function(ne){var ee=new Uint8Array(ne);if(ee.byteLength<9)return{needMoreData:!0};var J={match:!1};if(ee[0]!==70||ee[1]!==76||ee[2]!==86||ee[3]!==1)return J;var ce,Se,ke=(4&ee[4])>>>2!=0,Ae=(1&ee[4])!=0,nt=(ce=ee)[Se=5]<<24|ce[Se+1]<<16|ce[Se+2]<<8|ce[Se+3];return nt<9?J:{match:!0,consumed:nt,dataOffset:nt,hasAudioTrack:ke,hasVideoTrack:Ae}},oe.prototype.bindDataSource=function(ne){return ne.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(oe.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(ne){this._onTrackMetadata=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(ne){this._onMediaInfo=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(ne){this._onMetaDataArrived=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(ne){this._onScriptDataArrived=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onError",{get:function(){return this._onError},set:function(ne){this._onError=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(ne){this._onDataAvailable=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(ne){this._timestampBase=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedDuration",{get:function(){return this._duration},set:function(ne){this._durationOverrided=!0,this._duration=ne,this._mediaInfo.duration=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedHasAudio",{set:function(ne){this._hasAudioFlagOverrided=!0,this._hasAudio=ne,this._mediaInfo.hasAudio=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overridedHasVideo",{set:function(ne){this._hasVideoFlagOverrided=!0,this._hasVideo=ne,this._mediaInfo.hasVideo=ne},enumerable:!1,configurable:!0}),oe.prototype.resetMediaInfo=function(){this._mediaInfo=new d.a},oe.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},oe.prototype.parseChunks=function(ne,ee){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new g.a("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var J=0,ce=this._littleEndian;if(ee===0){if(!(ne.byteLength>13))return 0;J=oe.probe(ne).dataOffset}for(this._firstParse&&(this._firstParse=!1,ee+J!==this._dataOffset&&l.a.w(this.TAG,"First time parsing but chunk byteStart invalid!"),(Se=new DataView(ne,J)).getUint32(0,!ce)!==0&&l.a.w(this.TAG,"PrevTagSize0 !== 0 !!!"),J+=4);Jne.byteLength)break;var ke=Se.getUint8(0),Ae=16777215&Se.getUint32(0,!ce);if(J+11+Ae+4>ne.byteLength)break;if(ke===8||ke===9||ke===18){var nt=Se.getUint8(4),ot=Se.getUint8(5),gt=Se.getUint8(6)|ot<<8|nt<<16|Se.getUint8(7)<<24;(16777215&Se.getUint32(7,!ce))!==0&&l.a.w(this.TAG,"Meet tag which has StreamID != 0!");var De=J+11;switch(ke){case 8:this._parseAudioData(ne,De,Ae,gt);break;case 9:this._parseVideoData(ne,De,Ae,gt,ee+J);break;case 18:this._parseScriptData(ne,De,Ae)}var st=Se.getUint32(11+Ae,!ce);st!==11+Ae&&l.a.w(this.TAG,"Invalid PrevTagSize ".concat(st)),J+=11+Ae+4}else l.a.w(this.TAG,"Unsupported tag type ".concat(ke,", skipped")),J+=11+Ae+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),J},oe.prototype._parseScriptData=function(ne,ee,J){var ce=S.parseScriptData(ne,ee,J);if(ce.hasOwnProperty("onMetaData")){if(ce.onMetaData==null||typeof ce.onMetaData!="object")return void l.a.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&l.a.w(this.TAG,"Found another onMetaData tag!"),this._metadata=ce;var Se=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Se)),typeof Se.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Se.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Se.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Se.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Se.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Se.audiodatarate),typeof Se.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Se.videodatarate),typeof Se.width=="number"&&(this._mediaInfo.width=Se.width),typeof Se.height=="number"&&(this._mediaInfo.height=Se.height),typeof Se.duration=="number"){if(!this._durationOverrided){var ke=Math.floor(Se.duration*this._timescale);this._duration=ke,this._mediaInfo.duration=ke}}else this._mediaInfo.duration=0;if(typeof Se.framerate=="number"){var Ae=Math.floor(1e3*Se.framerate);if(Ae>0){var nt=Ae/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=nt,this._referenceFrameRate.fps_num=Ae,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=nt}}if(typeof Se.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var ot=Se.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(ot),Se.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Se,l.a.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(ce).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},ce))},oe.prototype._parseKeyframesIndex=function(ne){for(var ee=[],J=[],ce=1;ce>>4;if(ke!==9)if(ke===2||ke===10){var Ae=0,nt=(12&Se)>>>2;if(nt>=0&&nt<=4){Ae=this._flvSoundRateTable[nt];var ot=1&Se,gt=this._audioMetadata,De=this._audioTrack;if(gt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(gt=this._audioMetadata={}).type="audio",gt.id=De.id,gt.timescale=this._timescale,gt.duration=this._duration,gt.audioSampleRate=Ae,gt.channelCount=ot===0?1:2),ke===10){var st=this._parseAACAudioData(ne,ee+1,J-1);if(st==null)return;if(st.packetType===0){if(gt.config){if(P(st.data.config,gt.config))return;l.a.w(this.TAG,"AudioSpecificConfig has been changed, re-generate initialization segment")}var ut=st.data;gt.audioSampleRate=ut.samplingRate,gt.channelCount=ut.channelCount,gt.codec=ut.codec,gt.originalCodec=ut.originalCodec,gt.config=ut.config,gt.refSampleDuration=1024/gt.audioSampleRate*gt.timescale,l.a.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",gt),(Gt=this._mediaInfo).audioCodec=gt.originalCodec,Gt.audioSampleRate=gt.audioSampleRate,Gt.audioChannelCount=gt.channelCount,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)}else if(st.packetType===1){var Mt=this._timestampBase+ce,Qt={unit:st.data,length:st.data.byteLength,dts:Mt,pts:Mt};De.samples.push(Qt),De.length+=st.data.length}else l.a.e(this.TAG,"Flv: Unsupported AAC data type ".concat(st.packetType))}else if(ke===2){if(!gt.codec){var Gt;if((ut=this._parseMP3AudioData(ne,ee+1,J-1,!0))==null)return;gt.audioSampleRate=ut.samplingRate,gt.channelCount=ut.channelCount,gt.codec=ut.codec,gt.originalCodec=ut.originalCodec,gt.refSampleDuration=1152/gt.audioSampleRate*gt.timescale,l.a.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",gt),(Gt=this._mediaInfo).audioCodec=gt.codec,Gt.audioSampleRate=gt.audioSampleRate,Gt.audioChannelCount=gt.channelCount,Gt.audioDataRate=ut.bitRate,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)}var pn=this._parseMP3AudioData(ne,ee+1,J-1,!1);if(pn==null)return;Mt=this._timestampBase+ce;var mn={unit:pn,length:pn.byteLength,dts:Mt,pts:Mt};De.samples.push(mn),De.length+=pn.length}}else this._onError(x.a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+nt)}else this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+ke);else{if(J<=5)return void l.a.w(this.TAG,"Flv: Invalid audio packet, missing AudioFourCC in Ehnanced FLV payload!");var ln=15&Se,dr=String.fromCharCode.apply(String,new Uint8Array(ne,ee,J).slice(1,5));switch(dr){case"Opus":this._parseOpusAudioPacket(ne,ee+5,J-5,ce,ln);break;case"fLaC":this._parseFlacAudioPacket(ne,ee+5,J-5,ce,ln);break;default:this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec: "+dr)}}}},oe.prototype._parseAACAudioData=function(ne,ee,J){if(!(J<=1)){var ce={},Se=new Uint8Array(ne,ee,J);return ce.packetType=Se[0],Se[0]===0?ce.data=this._parseAACAudioSpecificConfig(ne,ee+1,J-1):ce.data=Se.subarray(1),ce}l.a.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},oe.prototype._parseAACAudioSpecificConfig=function(ne,ee,J){var ce,Se,ke=new Uint8Array(ne,ee,J),Ae=null,nt=0,ot=null;if(nt=ce=ke[0]>>>3,(Se=(7&ke[0])<<1|ke[1]>>>7)<0||Se>=this._mpegSamplingRates.length)this._onError(x.a.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var gt=this._mpegSamplingRates[Se],De=(120&ke[1])>>>3;if(!(De<0||De>=8)){nt===5&&(ot=(7&ke[1])<<1|ke[2]>>>7,(124&ke[2])>>>2);var st=self.navigator.userAgent.toLowerCase();return st.indexOf("firefox")!==-1?Se>=6?(nt=5,Ae=new Array(4),ot=Se-3):(nt=2,Ae=new Array(2),ot=Se):st.indexOf("android")!==-1?(nt=2,Ae=new Array(2),ot=Se):(nt=5,ot=Se,Ae=new Array(4),Se>=6?ot=Se-3:De===1&&(nt=2,Ae=new Array(2),ot=Se)),Ae[0]=nt<<3,Ae[0]|=(15&Se)>>>1,Ae[1]=(15&Se)<<7,Ae[1]|=(15&De)<<3,nt===5&&(Ae[1]|=(15&ot)>>>1,Ae[2]=(1&ot)<<7,Ae[2]|=8,Ae[3]=0),{config:Ae,samplingRate:gt,channelCount:De,codec:"mp4a.40."+nt,originalCodec:"mp4a.40."+ce}}this._onError(x.a.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},oe.prototype._parseMP3AudioData=function(ne,ee,J,ce){if(!(J<4)){this._littleEndian;var Se=new Uint8Array(ne,ee,J),ke=null;if(ce){if(Se[0]!==255)return;var Ae=Se[1]>>>3&3,nt=(6&Se[1])>>1,ot=(240&Se[2])>>>4,gt=(12&Se[2])>>>2,De=(Se[3]>>>6&3)!==3?2:1,st=0,ut=0;switch(Ae){case 0:st=this._mpegAudioV25SampleRateTable[gt];break;case 2:st=this._mpegAudioV20SampleRateTable[gt];break;case 3:st=this._mpegAudioV10SampleRateTable[gt]}switch(nt){case 1:ot>>16&255,Mt[2]=ke.byteLength>>>8&255,Mt[3]=ke.byteLength>>>0&255;var Qt={config:Mt,channelCount:st,samplingFrequence:De,sampleSize:ut,codec:"flac",originalCodec:"flac"};if(ce.config){if(P(Qt.config,ce.config))return;l.a.w(this.TAG,"FlacSequenceHeader has been changed, re-generate initialization segment")}ce.audioSampleRate=Qt.samplingFrequence,ce.channelCount=Qt.channelCount,ce.sampleSize=Qt.sampleSize,ce.codec=Qt.codec,ce.originalCodec=Qt.originalCodec,ce.config=Qt.config,ce.refSampleDuration=gt!=null?1e3*gt/Qt.samplingFrequence:null,l.a.v(this.TAG,"Parsed FlacSequenceHeader"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",ce);var Gt=this._mediaInfo;Gt.audioCodec=ce.originalCodec,Gt.audioSampleRate=ce.audioSampleRate,Gt.audioChannelCount=ce.channelCount,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)},oe.prototype._parseFlacAudioData=function(ne,ee,J,ce){var Se=this._audioTrack,ke=new Uint8Array(ne,ee,J),Ae=this._timestampBase+ce,nt={unit:ke,length:ke.byteLength,dts:Ae,pts:Ae};Se.samples.push(nt),Se.length+=ke.length},oe.prototype._parseVideoData=function(ne,ee,J,ce,Se){if(J<=1)l.a.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(this._hasVideoFlagOverrided!==!0||this._hasVideo!==!1){var ke=new Uint8Array(ne,ee,J)[0],Ae=(112&ke)>>>4;if((128&ke)!=0){var nt=15&ke,ot=String.fromCharCode.apply(String,new Uint8Array(ne,ee,J).slice(1,5));if(ot==="hvc1")this._parseEnhancedHEVCVideoPacket(ne,ee+5,J-5,ce,Se,Ae,nt);else{if(ot!=="av01")return void this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(ot));this._parseEnhancedAV1VideoPacket(ne,ee+5,J-5,ce,Se,Ae,nt)}}else{var gt=15&ke;if(gt===7)this._parseAVCVideoPacket(ne,ee+1,J-1,ce,Se,Ae);else{if(gt!==12)return void this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(gt));this._parseHEVCVideoPacket(ne,ee+1,J-1,ce,Se,Ae)}}}},oe.prototype._parseAVCVideoPacket=function(ne,ee,J,ce,Se,ke){if(J<4)l.a.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var Ae=this._littleEndian,nt=new DataView(ne,ee,J),ot=nt.getUint8(0),gt=(16777215&nt.getUint32(0,!Ae))<<8>>8;if(ot===0)this._parseAVCDecoderConfigurationRecord(ne,ee+4,J-4);else if(ot===1)this._parseAVCVideoData(ne,ee+4,J-4,ce,Se,ke,gt);else if(ot!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ot))}},oe.prototype._parseHEVCVideoPacket=function(ne,ee,J,ce,Se,ke){if(J<4)l.a.w(this.TAG,"Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");else{var Ae=this._littleEndian,nt=new DataView(ne,ee,J),ot=nt.getUint8(0),gt=(16777215&nt.getUint32(0,!Ae))<<8>>8;if(ot===0)this._parseHEVCDecoderConfigurationRecord(ne,ee+4,J-4);else if(ot===1)this._parseHEVCVideoData(ne,ee+4,J-4,ce,Se,ke,gt);else if(ot!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ot))}},oe.prototype._parseEnhancedHEVCVideoPacket=function(ne,ee,J,ce,Se,ke,Ae){var nt=this._littleEndian,ot=new DataView(ne,ee,J);if(Ae===0)this._parseHEVCDecoderConfigurationRecord(ne,ee,J);else if(Ae===1){var gt=(4294967040&ot.getUint32(0,!nt))>>8;this._parseHEVCVideoData(ne,ee+3,J-3,ce,Se,ke,gt)}else if(Ae===3)this._parseHEVCVideoData(ne,ee,J,ce,Se,ke,0);else if(Ae!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Ae))},oe.prototype._parseEnhancedAV1VideoPacket=function(ne,ee,J,ce,Se,ke,Ae){if(this._littleEndian,Ae===0)this._parseAV1CodecConfigurationRecord(ne,ee,J);else if(Ae===1)this._parseAV1VideoData(ne,ee,J,ce,Se,ke,0);else{if(Ae===5)return void this._onError(x.a.FORMAT_ERROR,"Flv: Not Supported MP2T AV1 video packet type ".concat(Ae));if(Ae!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Ae))}},oe.prototype._parseAVCDecoderConfigurationRecord=function(ne,ee,J){if(J<7)l.a.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var ce=this._videoMetadata,Se=this._videoTrack,ke=this._littleEndian,Ae=new DataView(ne,ee,J);if(ce){if(ce.avcc!==void 0){var nt=new Uint8Array(ne,ee,J);if(P(nt,ce.avcc))return;l.a.w(this.TAG,"AVCDecoderConfigurationRecord has been changed, re-generate initialization segment")}}else this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(ce=this._videoMetadata={}).type="video",ce.id=Se.id,ce.timescale=this._timescale,ce.duration=this._duration;var ot=Ae.getUint8(0),gt=Ae.getUint8(1);if(Ae.getUint8(2),Ae.getUint8(3),ot===1&>!==0)if(this._naluLengthSize=1+(3&Ae.getUint8(4)),this._naluLengthSize===3||this._naluLengthSize===4){var De=31&Ae.getUint8(5);if(De!==0){De>1&&l.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(De));for(var st=6,ut=0;ut1&&l.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(fr)),st++,ut=0;ut=J){l.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(Mt,", offset = ").concat(st,", dataSize = ").concat(J));break}var Gt=ot.getUint32(st,!nt);if(ut===3&&(Gt>>>=8),Gt>J-ut)return void l.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(Mt,", NaluSize > DataSize!"));var pn=31&ot.getUint8(st+ut);pn===5&&(Qt=!0);var mn=new Uint8Array(ne,ee+st,ut+Gt),ln={type:pn,data:mn};gt.push(ln),De+=mn.byteLength,st+=ut+Gt}if(gt.length){var dr=this._videoTrack,tr={units:gt,length:De,isKeyframe:Qt,dts:Mt,cts:Ae,pts:Mt+Ae};Qt&&(tr.fileposition=Se),dr.samples.push(tr),dr.length+=De}},oe.prototype._parseHEVCVideoData=function(ne,ee,J,ce,Se,ke,Ae){for(var nt=this._littleEndian,ot=new DataView(ne,ee,J),gt=[],De=0,st=0,ut=this._naluLengthSize,Mt=this._timestampBase+ce,Qt=ke===1;st=J){l.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(Mt,", offset = ").concat(st,", dataSize = ").concat(J));break}var Gt=ot.getUint32(st,!nt);if(ut===3&&(Gt>>>=8),Gt>J-ut)return void l.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(Mt,", NaluSize > DataSize!"));var pn=ot.getUint8(st+ut)>>1&63;pn!==19&&pn!==20&&pn!==21||(Qt=!0);var mn=new Uint8Array(ne,ee+st,ut+Gt),ln={type:pn,data:mn};gt.push(ln),De+=mn.byteLength,st+=ut+Gt}if(gt.length){var dr=this._videoTrack,tr={units:gt,length:De,isKeyframe:Qt,dts:Mt,cts:Ae,pts:Mt+Ae};Qt&&(tr.fileposition=Se),dr.samples.push(tr),dr.length+=De}},oe.prototype._parseAV1VideoData=function(ne,ee,J,ce,Se,ke,Ae){this._littleEndian;var nt,ot=[],gt=this._timestampBase+ce,De=ke===1;if(De){var st=this._videoMetadata,ut=O.parseOBUs(new Uint8Array(ne,ee,J),st.extra);if(ut==null)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid AV1 VideoData");console.log(ut),st.codecWidth=ut.codec_size.width,st.codecHeight=ut.codec_size.height,st.presentWidth=ut.present_size.width,st.presentHeight=ut.present_size.height,st.sarRatio=ut.sar_ratio;var Mt=this._mediaInfo;Mt.width=st.codecWidth,Mt.height=st.codecHeight,Mt.sarNum=st.sarRatio.width,Mt.sarDen=st.sarRatio.height,l.a.v(this.TAG,"Parsed AV1DecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",st)}if(nt=J,ot.push({unitType:0,data:new Uint8Array(ne,ee+0,J)}),ot.length){var Qt=this._videoTrack,Gt={units:ot,length:nt,isKeyframe:De,dts:gt,cts:Ae,pts:gt+Ae};De&&(Gt.fileposition=Se),Qt.samples.push(Gt),Qt.length+=nt}},oe})(),j=(function(){function oe(){}return oe.prototype.destroy=function(){this.onError=null,this.onMediaInfo=null,this.onMetaDataArrived=null,this.onTrackMetadata=null,this.onDataAvailable=null,this.onTimedID3Metadata=null,this.onSynchronousKLVMetadata=null,this.onAsynchronousKLVMetadata=null,this.onSMPTE2038Metadata=null,this.onSCTE35Metadata=null,this.onPESPrivateData=null,this.onPESPrivateDataDescriptor=null},oe})(),H=function(){this.program_pmt_pid={}};(function(oe){oe[oe.kMPEG1Audio=3]="kMPEG1Audio",oe[oe.kMPEG2Audio=4]="kMPEG2Audio",oe[oe.kPESPrivateData=6]="kPESPrivateData",oe[oe.kADTSAAC=15]="kADTSAAC",oe[oe.kLOASAAC=17]="kLOASAAC",oe[oe.kAC3=129]="kAC3",oe[oe.kEAC3=135]="kEAC3",oe[oe.kMetadata=21]="kMetadata",oe[oe.kSCTE35=134]="kSCTE35",oe[oe.kH264=27]="kH264",oe[oe.kH265=36]="kH265"})(L||(L={}));var U,K=function(){this.pid_stream_type={},this.common_pids={h264:void 0,h265:void 0,av1:void 0,adts_aac:void 0,loas_aac:void 0,opus:void 0,ac3:void 0,eac3:void 0,mp3:void 0},this.pes_private_data_pids={},this.timed_id3_pids={},this.synchronous_klv_pids={},this.asynchronous_klv_pids={},this.scte_35_pids={},this.smpte2038_pids={}},Y=function(){},ie=function(){},te=function(){this.slices=[],this.total_length=0,this.expected_length=0,this.file_position=0};(function(oe){oe[oe.kUnspecified=0]="kUnspecified",oe[oe.kSliceNonIDR=1]="kSliceNonIDR",oe[oe.kSliceDPA=2]="kSliceDPA",oe[oe.kSliceDPB=3]="kSliceDPB",oe[oe.kSliceDPC=4]="kSliceDPC",oe[oe.kSliceIDR=5]="kSliceIDR",oe[oe.kSliceSEI=6]="kSliceSEI",oe[oe.kSliceSPS=7]="kSliceSPS",oe[oe.kSlicePPS=8]="kSlicePPS",oe[oe.kSliceAUD=9]="kSliceAUD",oe[oe.kEndOfSequence=10]="kEndOfSequence",oe[oe.kEndOfStream=11]="kEndOfStream",oe[oe.kFiller=12]="kFiller",oe[oe.kSPSExt=13]="kSPSExt",oe[oe.kReserved0=14]="kReserved0"})(U||(U={}));var W,q,Q=function(){},se=function(oe){var ne=oe.data.byteLength;this.type=oe.type,this.data=new Uint8Array(4+ne),new DataView(this.data.buffer).setUint32(0,ne),this.data.set(oe.data,4)},ae=(function(){function oe(ne){this.TAG="H264AnnexBParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=ne,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not find H264 startcode until payload end!")}return oe.prototype.findNextStartCodeOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+3>=J.byteLength)return this.eof_flag_=!0,J.byteLength;var ce=J[ee+0]<<24|J[ee+1]<<16|J[ee+2]<<8|J[ee+3],Se=J[ee+0]<<16|J[ee+1]<<8|J[ee+2];if(ce===1||Se===1)return ee;ee++}},oe.prototype.readNextNaluPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_,ce=31&ne[J+=(ne[J]<<24|ne[J+1]<<16|ne[J+2]<<8|ne[J+3])===1?4:3],Se=(128&ne[J])>>>7,ke=this.findNextStartCodeOffset(J);if(this.current_startcode_offset_=ke,!(ce>=U.kReserved0)&&Se===0){var Ae=ne.subarray(J,ke);(ee=new Q).type=ce,ee.data=Ae}}return ee},oe})(),re=(function(){function oe(ne,ee,J){var ce=8+ne.byteLength+1+2+ee.byteLength,Se=!1;ne[3]!==66&&ne[3]!==77&&ne[3]!==88&&(Se=!0,ce+=4);var ke=this.data=new Uint8Array(ce);ke[0]=1,ke[1]=ne[1],ke[2]=ne[2],ke[3]=ne[3],ke[4]=255,ke[5]=225;var Ae=ne.byteLength;ke[6]=Ae>>>8,ke[7]=255&Ae;var nt=8;ke.set(ne,8),ke[nt+=Ae]=1;var ot=ee.byteLength;ke[nt+1]=ot>>>8,ke[nt+2]=255&ot,ke.set(ee,nt+3),nt+=3+ot,Se&&(ke[nt]=252|J.chroma_format_idc,ke[nt+1]=248|J.bit_depth_luma-8,ke[nt+2]=248|J.bit_depth_chroma-8,ke[nt+3]=0,nt+=4)}return oe.prototype.getData=function(){return this.data},oe})();(function(oe){oe[oe.kNull=0]="kNull",oe[oe.kAACMain=1]="kAACMain",oe[oe.kAAC_LC=2]="kAAC_LC",oe[oe.kAAC_SSR=3]="kAAC_SSR",oe[oe.kAAC_LTP=4]="kAAC_LTP",oe[oe.kAAC_SBR=5]="kAAC_SBR",oe[oe.kAAC_Scalable=6]="kAAC_Scalable",oe[oe.kLayer1=32]="kLayer1",oe[oe.kLayer2=33]="kLayer2",oe[oe.kLayer3=34]="kLayer3"})(W||(W={})),(function(oe){oe[oe.k96000Hz=0]="k96000Hz",oe[oe.k88200Hz=1]="k88200Hz",oe[oe.k64000Hz=2]="k64000Hz",oe[oe.k48000Hz=3]="k48000Hz",oe[oe.k44100Hz=4]="k44100Hz",oe[oe.k32000Hz=5]="k32000Hz",oe[oe.k24000Hz=6]="k24000Hz",oe[oe.k22050Hz=7]="k22050Hz",oe[oe.k16000Hz=8]="k16000Hz",oe[oe.k12000Hz=9]="k12000Hz",oe[oe.k11025Hz=10]="k11025Hz",oe[oe.k8000Hz=11]="k8000Hz",oe[oe.k7350Hz=12]="k7350Hz"})(q||(q={}));var Ce,Ve,ge=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],xe=(Ce=function(oe,ne){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,J){ee.__proto__=J}||function(ee,J){for(var ce in J)Object.prototype.hasOwnProperty.call(J,ce)&&(ee[ce]=J[ce])})(oe,ne)},function(oe,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function ee(){this.constructor=oe}Ce(oe,ne),oe.prototype=ne===null?Object.create(ne):(ee.prototype=ne.prototype,new ee)}),Ge=function(){},tt=(function(oe){function ne(){return oe!==null&&oe.apply(this,arguments)||this}return xe(ne,oe),ne})(Ge),Ue=(function(){function oe(ne){this.TAG="AACADTSParser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found ADTS syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1])>>>4===4095)return ee;ee++}},oe.prototype.readNextAACFrame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=(8&ne[J+1])>>>3,Se=(6&ne[J+1])>>>1,ke=1&ne[J+1],Ae=(192&ne[J+2])>>>6,nt=(60&ne[J+2])>>>2,ot=(1&ne[J+2])<<2|(192&ne[J+3])>>>6,gt=(3&ne[J+3])<<11|ne[J+4]<<3|(224&ne[J+5])>>>5;if(ne[J+6],J+gt>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var De=ke===1?7:9,st=gt-De;J+=De;var ut=this.findNextSyncwordOffset(J+st);if(this.current_syncword_offset_=ut,(ce===0||ce===1)&&Se===0){var Mt=ne.subarray(J,J+st);(ee=new Ge).audio_object_type=Ae+1,ee.sampling_freq_index=nt,ee.sampling_frequency=ge[nt],ee.channel_config=ot,ee.data=Mt}}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),_e=(function(){function oe(ne){this.TAG="AACLOASParser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found LOAS syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+1>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<3|J[ee+1]>>>5)===695)return ee;ee++}},oe.prototype.getLATMValue=function(ne){for(var ee=ne.readBits(2),J=0,ce=0;ce<=ee;ce++)J<<=8,J|=ne.readByte();return J},oe.prototype.readNextAACFrame=function(ne){for(var ee=this.data_,J=null;J==null&&!this.eof_flag_;){var ce=this.current_syncword_offset_,Se=(31&ee[ce+1])<<8|ee[ce+2];if(ce+3+Se>=this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var ke=new k(ee.subarray(ce+3,ce+3+Se)),Ae=null;if(ke.readBool()){if(ne==null){l.a.w(this.TAG,"StreamMuxConfig Missing"),this.current_syncword_offset_=this.findNextSyncwordOffset(ce+3+Se),ke.destroy();continue}Ae=ne}else{var nt=ke.readBool();if(nt&&ke.readBool()){l.a.e(this.TAG,"audioMuxVersionA is Not Supported"),ke.destroy();break}if(nt&&this.getLATMValue(ke),!ke.readBool()){l.a.e(this.TAG,"allStreamsSameTimeFraming zero is Not Supported"),ke.destroy();break}if(ke.readBits(6)!==0){l.a.e(this.TAG,"more than 2 numSubFrames Not Supported"),ke.destroy();break}if(ke.readBits(4)!==0){l.a.e(this.TAG,"more than 2 numProgram Not Supported"),ke.destroy();break}if(ke.readBits(3)!==0){l.a.e(this.TAG,"more than 2 numLayer Not Supported"),ke.destroy();break}var ot=nt?this.getLATMValue(ke):0,gt=ke.readBits(5);ot-=5;var De=ke.readBits(4);ot-=4;var st=ke.readBits(4);ot-=4,ke.readBits(3),(ot-=3)>0&&ke.readBits(ot);var ut=ke.readBits(3);if(ut!==0){l.a.e(this.TAG,"frameLengthType = ".concat(ut,". Only frameLengthType = 0 Supported")),ke.destroy();break}ke.readByte();var Mt=ke.readBool();if(Mt)if(nt)this.getLATMValue(ke);else{for(var Qt=0;;){Qt<<=8;var Gt=ke.readBool();if(Qt+=ke.readByte(),!Gt)break}console.log(Qt)}ke.readBool()&&ke.readByte(),(Ae=new tt).audio_object_type=gt,Ae.sampling_freq_index=De,Ae.sampling_frequency=ge[Ae.sampling_freq_index],Ae.channel_config=st,Ae.other_data_present=Mt}for(var pn=0;;){var mn=ke.readByte();if(pn+=mn,mn!==255)break}for(var ln=new Uint8Array(pn),dr=0;dr=6?(J=5,ne=new Array(4),ke=ce-3):(J=2,ne=new Array(2),ke=ce):Ae.indexOf("android")!==-1?(J=2,ne=new Array(2),ke=ce):(J=5,ke=ce,ne=new Array(4),ce>=6?ke=ce-3:Se===1&&(J=2,ne=new Array(2),ke=ce)),ne[0]=J<<3,ne[0]|=(15&ce)>>>1,ne[1]=(15&ce)<<7,ne[1]|=(15&Se)<<3,J===5&&(ne[1]|=(15&ke)>>>1,ne[2]=(1&ke)<<7,ne[2]|=8,ne[3]=0),this.config=ne,this.sampling_rate=ge[ce],this.channel_count=Se,this.codec_mimetype="mp4a.40."+J,this.original_codec_mimetype="mp4a.40."+ee},me=function(){},Oe=function(){};(function(oe){oe[oe.kSpliceNull=0]="kSpliceNull",oe[oe.kSpliceSchedule=4]="kSpliceSchedule",oe[oe.kSpliceInsert=5]="kSpliceInsert",oe[oe.kTimeSignal=6]="kTimeSignal",oe[oe.kBandwidthReservation=7]="kBandwidthReservation",oe[oe.kPrivateCommand=255]="kPrivateCommand"})(Ve||(Ve={}));var qe,Ke=function(oe){var ne=oe.readBool();return ne?(oe.readBits(6),{time_specified_flag:ne,pts_time:4*oe.readBits(31)+oe.readBits(2)}):(oe.readBits(7),{time_specified_flag:ne})},at=function(oe){var ne=oe.readBool();return oe.readBits(6),{auto_return:ne,duration:4*oe.readBits(31)+oe.readBits(2)}},ft=function(oe,ne){var ee=ne.readBits(8);return oe?{component_tag:ee}:{component_tag:ee,splice_time:Ke(ne)}},ct=function(oe){return{component_tag:oe.readBits(8),utc_splice_time:oe.readBits(32)}},wt=function(oe){var ne=oe.readBits(32),ee=oe.readBool();oe.readBits(7);var J={splice_event_id:ne,splice_event_cancel_indicator:ee};if(ee)return J;if(J.out_of_network_indicator=oe.readBool(),J.program_splice_flag=oe.readBool(),J.duration_flag=oe.readBool(),oe.readBits(5),J.program_splice_flag)J.utc_splice_time=oe.readBits(32);else{J.component_count=oe.readBits(8),J.components=[];for(var ce=0;ce=J.byteLength)return this.eof_flag_=!0,J.byteLength;var ce=J[ee+0]<<24|J[ee+1]<<16|J[ee+2]<<8|J[ee+3],Se=J[ee+0]<<16|J[ee+1]<<8|J[ee+2];if(ce===1||Se===1)return ee;ee++}},oe.prototype.readNextNaluPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_,ce=ne[J+=(ne[J]<<24|ne[J+1]<<16|ne[J+2]<<8|ne[J+3])===1?4:3]>>1&63,Se=(128&ne[J])>>>7,ke=this.findNextStartCodeOffset(J);if(this.current_startcode_offset_=ke,Se===0){var Ae=ne.subarray(J,ke);(ee=new Ee).type=ce,ee.data=Ae}}return ee},oe})(),dt=(function(){function oe(ne,ee,J,ce){var Se=23+(5+ne.byteLength)+(5+ee.byteLength)+(5+J.byteLength),ke=this.data=new Uint8Array(Se);ke[0]=1,ke[1]=(3&ce.general_profile_space)<<6|(ce.general_tier_flag?1:0)<<5|31&ce.general_profile_idc,ke[2]=ce.general_profile_compatibility_flags_1,ke[3]=ce.general_profile_compatibility_flags_2,ke[4]=ce.general_profile_compatibility_flags_3,ke[5]=ce.general_profile_compatibility_flags_4,ke[6]=ce.general_constraint_indicator_flags_1,ke[7]=ce.general_constraint_indicator_flags_2,ke[8]=ce.general_constraint_indicator_flags_3,ke[9]=ce.general_constraint_indicator_flags_4,ke[10]=ce.general_constraint_indicator_flags_5,ke[11]=ce.general_constraint_indicator_flags_6,ke[12]=ce.general_level_idc,ke[13]=240|(3840&ce.min_spatial_segmentation_idc)>>8,ke[14]=255&ce.min_spatial_segmentation_idc,ke[15]=252|3&ce.parallelismType,ke[16]=252|3&ce.chroma_format_idc,ke[17]=248|7&ce.bit_depth_luma_minus8,ke[18]=248|7&ce.bit_depth_chroma_minus8,ke[19]=0,ke[20]=0,ke[21]=(3&ce.constant_frame_rate)<<6|(7&ce.num_temporal_layers)<<3|(ce.temporal_id_nested?1:0)<<2|3,ke[22]=3,ke[23]=128|qe.kSliceVPS,ke[24]=0,ke[25]=1,ke[26]=(65280&ne.byteLength)>>8,ke[27]=(255&ne.byteLength)>>0,ke.set(ne,28),ke[23+(5+ne.byteLength)+0]=128|qe.kSliceSPS,ke[23+(5+ne.byteLength)+1]=0,ke[23+(5+ne.byteLength)+2]=1,ke[23+(5+ne.byteLength)+3]=(65280&ee.byteLength)>>8,ke[23+(5+ne.byteLength)+4]=(255&ee.byteLength)>>0,ke.set(ee,23+(5+ne.byteLength)+5),ke[23+(5+ne.byteLength+5+ee.byteLength)+0]=128|qe.kSlicePPS,ke[23+(5+ne.byteLength+5+ee.byteLength)+1]=0,ke[23+(5+ne.byteLength+5+ee.byteLength)+2]=1,ke[23+(5+ne.byteLength+5+ee.byteLength)+3]=(65280&J.byteLength)>>8,ke[23+(5+ne.byteLength+5+ee.byteLength)+4]=(255&J.byteLength)>>0,ke.set(J,23+(5+ne.byteLength+5+ee.byteLength)+5)}return oe.prototype.getData=function(){return this.data},oe})(),Qe=function(){},Le=function(){},ht=function(){},Vt=[[64,64,80,80,96,96,112,112,128,128,160,160,192,192,224,224,256,256,320,320,384,384,448,448,512,512,640,640,768,768,896,896,1024,1024,1152,1152,1280,1280],[69,70,87,88,104,105,121,122,139,140,174,175,208,209,243,244,278,279,348,349,417,418,487,488,557,558,696,697,835,836,975,976,1114,1115,1253,1254,1393,1394],[96,96,120,120,144,144,168,168,192,192,240,240,288,288,336,336,384,384,480,480,576,576,672,672,768,768,960,960,1152,1152,1344,1344,1536,1536,1728,1728,1920,1920]],Ut=(function(){function oe(ne){this.TAG="AC3Parser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found AC3 syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1]<<0)===2935)return ee;ee++}},oe.prototype.readNextAC3Frame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=ne[J+4]>>6,Se=[48e3,44200,33e3][ce],ke=63&ne[J+4],Ae=2*Vt[ce][ke];if(isNaN(Ae)||J+Ae>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var nt=this.findNextSyncwordOffset(J+Ae);this.current_syncword_offset_=nt;var ot=ne[J+5]>>3,gt=7&ne[J+5],De=ne[J+6]>>5,st=0;(1&De)!=0&&De!==1&&(st+=2),(4&De)!=0&&(st+=2),De===2&&(st+=2);var ut=(ne[J+6]<<8|ne[J+7]<<0)>>12-st&1,Mt=[2,1,2,3,3,4,4,5][De]+ut;(ee=new ht).sampling_frequency=Se,ee.channel_count=Mt,ee.channel_mode=De,ee.bit_stream_identification=ot,ee.low_frequency_effects_channel_on=ut,ee.bit_stream_mode=gt,ee.frame_size_code=ke,ee.data=ne.subarray(J,J+Ae)}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),Lt=function(oe){var ne;ne=[oe.sampling_rate_code<<6|oe.bit_stream_identification<<1|oe.bit_stream_mode>>2,(3&oe.bit_stream_mode)<<6|oe.channel_mode<<3|oe.low_frequency_effects_channel_on<<2|oe.frame_size_code>>4,oe.frame_size_code<<4&224],this.config=ne,this.sampling_rate=oe.sampling_frequency,this.bit_stream_identification=oe.bit_stream_identification,this.bit_stream_mode=oe.bit_stream_mode,this.low_frequency_effects_channel_on=oe.low_frequency_effects_channel_on,this.channel_count=oe.channel_count,this.channel_mode=oe.channel_mode,this.codec_mimetype="ac-3",this.original_codec_mimetype="ac-3"},Xt=function(){},Dn=(function(){function oe(ne){this.TAG="EAC3Parser",this.data_=ne,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found AC3 syncword until payload end")}return oe.prototype.findNextSyncwordOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<8|J[ee+1]<<0)===2935)return ee;ee++}},oe.prototype.readNextEAC3Frame=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,ce=new k(ne.subarray(J+2)),Se=(ce.readBits(2),ce.readBits(3),ce.readBits(11)+1<<1),ke=ce.readBits(2),Ae=null,nt=null;ke===3?(Ae=[24e3,22060,16e3][ke=ce.readBits(2)],nt=3):(Ae=[48e3,44100,32e3][ke],nt=ce.readBits(2));var ot=ce.readBits(3),gt=ce.readBits(1),De=ce.readBits(5);if(J+Se>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var st=this.findNextSyncwordOffset(J+Se);this.current_syncword_offset_=st;var ut=[2,1,2,3,3,4,4,5][ot]+gt;ce.destroy(),(ee=new Xt).sampling_frequency=Ae,ee.channel_count=ut,ee.channel_mode=ot,ee.bit_stream_identification=De,ee.low_frequency_effects_channel_on=gt,ee.frame_size=Se,ee.num_blks=[1,2,3,6][nt],ee.data=ne.subarray(J,J+Se)}return ee},oe.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},oe.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},oe})(),rr=function(oe){var ne,ee=Math.floor(oe.frame_size*oe.sampling_frequency/(16*oe.num_blks));ne=[255&ee,248&ee,oe.sampling_rate_code<<6|oe.bit_stream_identification<<1|0,0|oe.channel_mode<<1|oe.low_frequency_effects_channel_on<<0,0],this.config=ne,this.sampling_rate=oe.sampling_frequency,this.bit_stream_identification=oe.bit_stream_identification,this.num_blks=oe.num_blks,this.low_frequency_effects_channel_on=oe.low_frequency_effects_channel_on,this.channel_count=oe.channel_count,this.channel_mode=oe.channel_mode,this.codec_mimetype="ec-3",this.original_codec_mimetype="ec-3"},qr=function(){},Wt=(function(){function oe(ne){this.TAG="AV1OBUInMpegTsParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=ne,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not find AV1 startcode until payload end!")}return oe._ebsp2rbsp=function(ne){for(var ee=ne,J=ee.byteLength,ce=new Uint8Array(J),Se=0,ke=0;ke=2&&ee[ke]===3&&ee[ke-1]===0&&ee[ke-2]===0||(ce[Se]=ee[ke],Se++);return new Uint8Array(ce.buffer,0,Se)},oe.prototype.findNextStartCodeOffset=function(ne){for(var ee=ne,J=this.data_;;){if(ee+2>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ee+0]<<16|J[ee+1]<<8|J[ee+2])===1)return ee;ee++}},oe.prototype.readNextOBUPayload=function(){for(var ne=this.data_,ee=null;ee==null&&!this.eof_flag_;){var J=this.current_startcode_offset_+3,ce=this.findNextStartCodeOffset(J);this.current_startcode_offset_=ce,ee=oe._ebsp2rbsp(ne.subarray(J,ce))}return ee},oe})(),Yt=(function(){var oe=function(ne,ee){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ce){J.__proto__=ce}||function(J,ce){for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&(J[Se]=ce[Se])})(ne,ee)};return function(ne,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function J(){this.constructor=ne}oe(ne,ee),ne.prototype=ee===null?Object.create(ee):(J.prototype=ee.prototype,new J)}})(),sn=function(){return(sn=Object.assign||function(oe){for(var ne,ee=1,J=arguments.length;ee=4?(l.a.v("TSDemuxer","ts_packet_size = 192, m2ts mode"),ce-=4):Se===204&&l.a.v("TSDemuxer","ts_packet_size = 204, RS encoded MPEG2-TS stream"),{match:!0,consumed:0,ts_packet_size:Se,sync_offset:ce})},ne.prototype.bindDataSource=function(ee){return ee.onDataArrival=this.parseChunks.bind(this),this},ne.prototype.resetMediaInfo=function(){this.media_info_=new d.a},ne.prototype.parseChunks=function(ee,J){if(!(this.onError&&this.onMediaInfo&&this.onTrackMetadata&&this.onDataAvailable))throw new g.a("onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var ce=0;for(this.first_parse_&&(this.first_parse_=!1,ce=this.sync_offset_);ce+this.ts_packet_size_<=ee.byteLength;){var Se=J+ce;this.ts_packet_size_===192&&(ce+=4);var ke=new Uint8Array(ee,ce,188),Ae=ke[0];if(Ae!==71){l.a.e(this.TAG,"sync_byte = ".concat(Ae,", not 0x47"));break}var nt=(64&ke[1])>>>6,ot=(ke[1],(31&ke[1])<<8|ke[2]),gt=(48&ke[3])>>>4,De=15&ke[3],st=!(!this.pmt_||this.pmt_.pcr_pid!==ot),ut={},Mt=4;if(gt==2||gt==3){var Qt=ke[4];if(Qt>0&&(st||gt==3)&&(ut.discontinuity_indicator=(128&ke[5])>>>7,ut.random_access_indicator=(64&ke[5])>>>6,ut.elementary_stream_priority_indicator=(32&ke[5])>>>5,(16&ke[5])>>>4)){var Gt=300*this.getPcrBase(ke)+((1&ke[10])<<8|ke[11]);this.last_pcr_=Gt}if(gt==2||5+Qt===188){ce+=188,this.ts_packet_size_===204&&(ce+=16);continue}Mt=5+Qt}if(gt==1||gt==3){if(ot===0||ot===this.current_pmt_pid_||this.pmt_!=null&&this.pmt_.pid_stream_type[ot]===L.kSCTE35){var pn=188-Mt;this.handleSectionSlice(ee,ce+Mt,pn,{pid:ot,file_position:Se,payload_unit_start_indicator:nt,continuity_conunter:De,random_access_indicator:ut.random_access_indicator})}else if(this.pmt_!=null&&this.pmt_.pid_stream_type[ot]!=null){pn=188-Mt;var mn=this.pmt_.pid_stream_type[ot];ot!==this.pmt_.common_pids.h264&&ot!==this.pmt_.common_pids.h265&&ot!==this.pmt_.common_pids.av1&&ot!==this.pmt_.common_pids.adts_aac&&ot!==this.pmt_.common_pids.loas_aac&&ot!==this.pmt_.common_pids.ac3&&ot!==this.pmt_.common_pids.eac3&&ot!==this.pmt_.common_pids.opus&&ot!==this.pmt_.common_pids.mp3&&this.pmt_.pes_private_data_pids[ot]!==!0&&this.pmt_.timed_id3_pids[ot]!==!0&&this.pmt_.synchronous_klv_pids[ot]!==!0&&this.pmt_.asynchronous_klv_pids[ot]!==!0||this.handlePESSlice(ee,ce+Mt,pn,{pid:ot,stream_type:mn,file_position:Se,payload_unit_start_indicator:nt,continuity_conunter:De,random_access_indicator:ut.random_access_indicator})}}ce+=188,this.ts_packet_size_===204&&(ce+=16)}return this.dispatchAudioVideoMediaSegment(),ce},ne.prototype.handleSectionSlice=function(ee,J,ce,Se){var ke=new Uint8Array(ee,J,ce),Ae=this.section_slice_queues_[Se.pid];if(Se.payload_unit_start_indicator){var nt=ke[0];if(Ae!=null&&Ae.total_length!==0){var ot=new Uint8Array(ee,J+1,Math.min(ce,nt));Ae.slices.push(ot),Ae.total_length+=ot.byteLength,Ae.total_length===Ae.expected_length?this.emitSectionSlices(Ae,Se):this.clearSlices(Ae,Se)}for(var gt=1+nt;gt=Ae.expected_length&&this.clearSlices(Ae,Se),gt+=ot.byteLength}}else Ae!=null&&Ae.total_length!==0&&(ot=new Uint8Array(ee,J,Math.min(ce,Ae.expected_length-Ae.total_length)),Ae.slices.push(ot),Ae.total_length+=ot.byteLength,Ae.total_length===Ae.expected_length?this.emitSectionSlices(Ae,Se):Ae.total_length>=Ae.expected_length&&this.clearSlices(Ae,Se))},ne.prototype.handlePESSlice=function(ee,J,ce,Se){var ke=new Uint8Array(ee,J,ce),Ae=ke[0]<<16|ke[1]<<8|ke[2],nt=(ke[3],ke[4]<<8|ke[5]);if(Se.payload_unit_start_indicator){if(Ae!==1)return void l.a.e(this.TAG,"handlePESSlice: packet_start_code_prefix should be 1 but with value ".concat(Ae));var ot=this.pes_slice_queues_[Se.pid];ot&&(ot.expected_length===0||ot.expected_length===ot.total_length?this.emitPESSlices(ot,Se):this.clearSlices(ot,Se)),this.pes_slice_queues_[Se.pid]=new te,this.pes_slice_queues_[Se.pid].file_position=Se.file_position,this.pes_slice_queues_[Se.pid].random_access_indicator=Se.random_access_indicator}if(this.pes_slice_queues_[Se.pid]!=null){var gt=this.pes_slice_queues_[Se.pid];gt.slices.push(ke),Se.payload_unit_start_indicator&&(gt.expected_length=nt===0?0:nt+6),gt.total_length+=ke.byteLength,gt.expected_length>0&>.expected_length===gt.total_length?this.emitPESSlices(gt,Se):gt.expected_length>0&>.expected_length>>6,nt=J[8],ot=void 0,gt=void 0;Ae!==2&&Ae!==3||(ot=this.getTimestamp(J,9),gt=Ae===3?this.getTimestamp(J,14):ot);var De=9+nt,st=void 0;if(ke!==0){if(ke<3+nt)return void l.a.v(this.TAG,"Malformed PES: PES_packet_length < 3 + PES_header_data_length");st=ke-3-nt}else st=J.byteLength-De;var ut=J.subarray(De,De+st);switch(ee.stream_type){case L.kMPEG1Audio:case L.kMPEG2Audio:this.parseMP3Payload(ut,ot);break;case L.kPESPrivateData:this.pmt_.common_pids.av1===ee.pid?this.parseAV1Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator):this.pmt_.common_pids.opus===ee.pid?this.parseOpusPayload(ut,ot):this.pmt_.common_pids.ac3===ee.pid?this.parseAC3Payload(ut,ot):this.pmt_.common_pids.eac3===ee.pid?this.parseEAC3Payload(ut,ot):this.pmt_.asynchronous_klv_pids[ee.pid]?this.parseAsynchronousKLVMetadataPayload(ut,ee.pid,Se):this.pmt_.smpte2038_pids[ee.pid]?this.parseSMPTE2038MetadataPayload(ut,ot,gt,ee.pid,Se):this.parsePESPrivateDataPayload(ut,ot,gt,ee.pid,Se);break;case L.kADTSAAC:this.parseADTSAACPayload(ut,ot);break;case L.kLOASAAC:this.parseLOASAACPayload(ut,ot);break;case L.kAC3:this.parseAC3Payload(ut,ot);break;case L.kEAC3:this.parseEAC3Payload(ut,ot);break;case L.kMetadata:this.pmt_.timed_id3_pids[ee.pid]?this.parseTimedID3MetadataPayload(ut,ot,gt,ee.pid,Se):this.pmt_.synchronous_klv_pids[ee.pid]&&this.parseSynchronousKLVMetadataPayload(ut,ot,gt,ee.pid,Se);break;case L.kH264:this.parseH264Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator);break;case L.kH265:this.parseH265Payload(ut,ot,gt,ee.file_position,ee.random_access_indicator)}}else(Se===188||Se===191||Se===240||Se===241||Se===255||Se===242||Se===248)&&ee.stream_type===L.kPESPrivateData&&(De=6,st=void 0,st=ke!==0?ke:J.byteLength-De,ut=J.subarray(De,De+st),this.parsePESPrivateDataPayload(ut,void 0,void 0,ee.pid,Se));else l.a.e(this.TAG,"parsePES: packet_start_code_prefix should be 1 but with value ".concat(ce))},ne.prototype.parsePAT=function(ee){var J=ee[0];if(J===0){var ce=(15&ee[1])<<8|ee[2],Se=(ee[3],ee[4],(62&ee[5])>>>1),ke=1&ee[5],Ae=ee[6],nt=(ee[7],null);if(ke===1&&Ae===0)(nt=new H).version_number=Se;else if((nt=this.pat_)==null)return;for(var ot=ce-5-4,gt=-1,De=-1,st=8;st<8+ot;st+=4){var ut=ee[st]<<8|ee[st+1],Mt=(31&ee[st+2])<<8|ee[st+3];ut===0?nt.network_pid=Mt:(nt.program_pmt_pid[ut]=Mt,gt===-1&&(gt=ut),De===-1&&(De=Mt))}ke===1&&Ae===0&&(this.pat_==null&&l.a.v(this.TAG,"Parsed first PAT: ".concat(JSON.stringify(nt))),this.pat_=nt,this.current_program_=gt,this.current_pmt_pid_=De)}else l.a.e(this.TAG,"parsePAT: table_id ".concat(J," is not corresponded to PAT!"))},ne.prototype.parsePMT=function(ee){var J=ee[0];if(J===2){var ce=(15&ee[1])<<8|ee[2],Se=ee[3]<<8|ee[4],ke=(62&ee[5])>>>1,Ae=1&ee[5],nt=ee[6],ot=(ee[7],null);if(Ae===1&&nt===0)(ot=new K).program_number=Se,ot.version_number=ke,this.program_pmt_map_[Se]=ot;else if((ot=this.program_pmt_map_[Se])==null)return;ot.pcr_pid=(31&ee[8])<<8|ee[9];for(var gt=(15&ee[10])<<8|ee[11],De=12+gt,st=ce-9-gt-4,ut=De;ut0){for(var ln=ut+5;ln0)for(ln=ut+5;ln1&&(l.a.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(Ae,"ms, PES pts: ").concat(ke,"ms")),ke=Ae)}}for(var nt,ot=new Ue(ee),gt=null,De=ke;(gt=ot.readNextAACFrame())!=null;){Se=1024/gt.sampling_frequency*1e3;var st={codec:"aac",data:gt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"aac",audio_object_type:gt.audio_object_type,sampling_freq_index:gt.sampling_freq_index,sampling_frequency:gt.sampling_frequency,channel_config:gt.channel_config},this.dispatchAudioInitSegment(st)):this.detectAudioMetadataChange(st)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(st)),nt=De;var ut=Math.floor(De),Mt={unit:gt.data,length:gt.data.byteLength,pts:ut,dts:ut};this.audio_track_.samples.push(Mt),this.audio_track_.length+=gt.data.byteLength,De+=Se}ot.hasIncompleteData()&&(this.aac_last_incomplete_data_=ot.getIncompleteData()),nt&&(this.audio_last_sample_pts_=nt)}},ne.prototype.parseLOASAACPayload=function(ee,J){var ce;if(!this.has_video_||this.video_init_segment_dispatched_){if(this.aac_last_incomplete_data_){var Se=new Uint8Array(ee.byteLength+this.aac_last_incomplete_data_.byteLength);Se.set(this.aac_last_incomplete_data_,0),Se.set(ee,this.aac_last_incomplete_data_.byteLength),ee=Se}var ke,Ae;if(J!=null&&(Ae=J/this.timescale_),this.audio_metadata_.codec==="aac"){if(J==null&&this.audio_last_sample_pts_!=null)ke=1024/this.audio_metadata_.sampling_frequency*1e3,Ae=this.audio_last_sample_pts_+ke;else if(J==null)return void l.a.w(this.TAG,"AAC: Unknown pts");if(this.aac_last_incomplete_data_&&this.audio_last_sample_pts_){ke=1024/this.audio_metadata_.sampling_frequency*1e3;var nt=this.audio_last_sample_pts_+ke;Math.abs(nt-Ae)>1&&(l.a.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(nt,"ms, PES pts: ").concat(Ae,"ms")),Ae=nt)}}for(var ot,gt=new _e(ee),De=null,st=Ae;(De=gt.readNextAACFrame((ce=this.loas_previous_frame)!==null&&ce!==void 0?ce:void 0))!=null;){this.loas_previous_frame=De,ke=1024/De.sampling_frequency*1e3;var ut={codec:"aac",data:De};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"aac",audio_object_type:De.audio_object_type,sampling_freq_index:De.sampling_freq_index,sampling_frequency:De.sampling_frequency,channel_config:De.channel_config},this.dispatchAudioInitSegment(ut)):this.detectAudioMetadataChange(ut)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(ut)),ot=st;var Mt=Math.floor(st),Qt={unit:De.data,length:De.data.byteLength,pts:Mt,dts:Mt};this.audio_track_.samples.push(Qt),this.audio_track_.length+=De.data.byteLength,st+=ke}gt.hasIncompleteData()&&(this.aac_last_incomplete_data_=gt.getIncompleteData()),ot&&(this.audio_last_sample_pts_=ot)}},ne.prototype.parseAC3Payload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="ac-3"){if(J==null&&this.audio_last_sample_pts_!=null)ce=1536/this.audio_metadata_.sampling_frequency*1e3,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"AC3: Unknown pts")}for(var ke,Ae=new Ut(ee),nt=null,ot=Se;(nt=Ae.readNextAC3Frame())!=null;){ce=1536/nt.sampling_frequency*1e3;var gt={codec:"ac-3",data:nt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"ac-3",sampling_frequency:nt.sampling_frequency,bit_stream_identification:nt.bit_stream_identification,bit_stream_mode:nt.bit_stream_mode,low_frequency_effects_channel_on:nt.low_frequency_effects_channel_on,channel_mode:nt.channel_mode},this.dispatchAudioInitSegment(gt)):this.detectAudioMetadataChange(gt)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(gt)),ke=ot;var De=Math.floor(ot),st={unit:nt.data,length:nt.data.byteLength,pts:De,dts:De};this.audio_track_.samples.push(st),this.audio_track_.length+=nt.data.byteLength,ot+=ce}ke&&(this.audio_last_sample_pts_=ke)}},ne.prototype.parseEAC3Payload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="ec-3"){if(J==null&&this.audio_last_sample_pts_!=null)ce=256*this.audio_metadata_.num_blks/this.audio_metadata_.sampling_frequency*1e3,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"EAC3: Unknown pts")}for(var ke,Ae=new Dn(ee),nt=null,ot=Se;(nt=Ae.readNextEAC3Frame())!=null;){ce=1536/nt.sampling_frequency*1e3;var gt={codec:"ec-3",data:nt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"ec-3",sampling_frequency:nt.sampling_frequency,bit_stream_identification:nt.bit_stream_identification,low_frequency_effects_channel_on:nt.low_frequency_effects_channel_on,num_blks:nt.num_blks,channel_mode:nt.channel_mode},this.dispatchAudioInitSegment(gt)):this.detectAudioMetadataChange(gt)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(gt)),ke=ot;var De=Math.floor(ot),st={unit:nt.data,length:nt.data.byteLength,pts:De,dts:De};this.audio_track_.samples.push(st),this.audio_track_.length+=nt.data.byteLength,ot+=ce}ke&&(this.audio_last_sample_pts_=ke)}},ne.prototype.parseOpusPayload=function(ee,J){if(!this.has_video_||this.video_init_segment_dispatched_){var ce,Se;if(J!=null&&(Se=J/this.timescale_),this.audio_metadata_.codec==="opus"){if(J==null&&this.audio_last_sample_pts_!=null)ce=20,Se=this.audio_last_sample_pts_+ce;else if(J==null)return void l.a.w(this.TAG,"Opus: Unknown pts")}for(var ke,Ae=Se,nt=0;nt>>3&3,nt=(6&ee[1])>>1,ot=(240&ee[2])>>>4,gt=(12&ee[2])>>>2,De=(ee[3]>>>6&3)!==3?2:1,st=0,ut=34;switch(Ae){case 0:st=[11025,12e3,8e3,0][gt];break;case 2:st=[22050,24e3,16e3,0][gt];break;case 3:st=[44100,48e3,32e3,0][gt]}switch(nt){case 1:ut=34,ot>>24&255,J[1]=ee>>>16&255,J[2]=ee>>>8&255,J[3]=255&ee,J.set(ne,4);var Ae=8;for(ke=0;ke>>24&255,ne>>>16&255,ne>>>8&255,255&ne,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},oe.trak=function(ne){return oe.box(oe.types.trak,oe.tkhd(ne),oe.mdia(ne))},oe.tkhd=function(ne){var ee=ne.id,J=ne.duration,ce=ne.presentWidth,Se=ne.presentHeight;return oe.box(oe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,255&J,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,ce>>>8&255,255&ce,0,0,Se>>>8&255,255&Se,0,0]))},oe.mdia=function(ne){return oe.box(oe.types.mdia,oe.mdhd(ne),oe.hdlr(ne),oe.minf(ne))},oe.mdhd=function(ne){var ee=ne.timescale,J=ne.duration;return oe.box(oe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,J>>>24&255,J>>>16&255,J>>>8&255,255&J,85,196,0,0]))},oe.hdlr=function(ne){var ee=null;return ee=ne.type==="audio"?oe.constants.HDLR_AUDIO:oe.constants.HDLR_VIDEO,oe.box(oe.types.hdlr,ee)},oe.minf=function(ne){var ee=null;return ee=ne.type==="audio"?oe.box(oe.types.smhd,oe.constants.SMHD):oe.box(oe.types.vmhd,oe.constants.VMHD),oe.box(oe.types.minf,ee,oe.dinf(),oe.stbl(ne))},oe.dinf=function(){return oe.box(oe.types.dinf,oe.box(oe.types.dref,oe.constants.DREF))},oe.stbl=function(ne){return oe.box(oe.types.stbl,oe.stsd(ne),oe.box(oe.types.stts,oe.constants.STTS),oe.box(oe.types.stsc,oe.constants.STSC),oe.box(oe.types.stsz,oe.constants.STSZ),oe.box(oe.types.stco,oe.constants.STCO))},oe.stsd=function(ne){return ne.type==="audio"?ne.codec==="mp3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.mp3(ne)):ne.codec==="ac-3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.ac3(ne)):ne.codec==="ec-3"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.ec3(ne)):ne.codec==="opus"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.Opus(ne)):ne.codec=="flac"?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.fLaC(ne)):oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.mp4a(ne)):ne.type==="video"&&ne.codec.startsWith("hvc1")?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.hvc1(ne)):ne.type==="video"&&ne.codec.startsWith("av01")?oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.av01(ne)):oe.box(oe.types.stsd,oe.constants.STSD_PREFIX,oe.avc1(ne))},oe.mp3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types[".mp3"],ce)},oe.mp4a=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.mp4a,ce,oe.esds(ne))},oe.ac3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types["ac-3"],ce,oe.box(oe.types.dac3,new Uint8Array(ne.config)))},oe.ec3=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types["ec-3"],ce,oe.box(oe.types.dec3,new Uint8Array(ne.config)))},oe.esds=function(ne){var ee=ne.config||[],J=ee.length,ce=new Uint8Array([0,0,0,0,3,23+J,0,1,0,4,15+J,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([J]).concat(ee).concat([6,1,2]));return oe.box(oe.types.esds,ce)},oe.Opus=function(ne){var ee=ne.channelCount,J=ne.audioSampleRate,ce=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.Opus,ce,oe.dOps(ne))},oe.dOps=function(ne){var ee=ne.channelCount,J=ne.channelConfigCode,ce=ne.audioSampleRate;if(ne.config)return oe.box(oe.types.dOps,ne.config);var Se=[];switch(J){case 1:case 2:Se=[0];break;case 0:Se=[255,1,1,0,1];break;case 128:Se=[255,2,0,0,1];break;case 3:Se=[1,2,1,0,2,1];break;case 4:Se=[1,2,2,0,1,2,3];break;case 5:Se=[1,3,2,0,4,1,2,3];break;case 6:Se=[1,4,2,0,4,1,2,3,5];break;case 7:Se=[1,4,2,0,4,1,2,3,5,6];break;case 8:Se=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Se=[1,1,2,0,1];break;case 131:Se=[1,1,3,0,1,2];break;case 132:Se=[1,1,4,0,1,2,3];break;case 133:Se=[1,1,5,0,1,2,3,4];break;case 134:Se=[1,1,6,0,1,2,3,4,5];break;case 135:Se=[1,1,7,0,1,2,3,4,5,6];break;case 136:Se=[1,1,8,0,1,2,3,4,5,6,7]}var ke=new Uint8Array(un([0,ee,0,0,ce>>>24&255,ce>>>17&255,ce>>>8&255,ce>>>0&255,0,0],Se));return oe.box(oe.types.dOps,ke)},oe.fLaC=function(ne){var ee=ne.channelCount,J=Math.min(ne.audioSampleRate,65535),ce=ne.sampleSize,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ee,0,ce,0,0,0,0,J>>>8&255,255&J,0,0]);return oe.box(oe.types.fLaC,Se,oe.dfLa(ne))},oe.dfLa=function(ne){var ee=new Uint8Array(un([0,0,0,0],ne.config));return oe.box(oe.types.dfLa,ee)},oe.avc1=function(ne){var ee=ne.avcc,J=ne.codecWidth,ce=ne.codecHeight,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.avc1,Se,oe.box(oe.types.avcC,ee))},oe.hvc1=function(ne){var ee=ne.hvcc,J=ne.codecWidth,ce=ne.codecHeight,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.hvc1,Se,oe.box(oe.types.hvcC,ee))},oe.av01=function(ne){var ee=ne.av1c,J=ne.codecWidth||192,ce=ne.codecHeight||108,Se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,ce>>>8&255,255&ce,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return oe.box(oe.types.av01,Se,oe.box(oe.types.av1C,ee))},oe.mvex=function(ne){return oe.box(oe.types.mvex,oe.trex(ne))},oe.trex=function(ne){var ee=ne.id,J=new Uint8Array([0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return oe.box(oe.types.trex,J)},oe.moof=function(ne,ee){return oe.box(oe.types.moof,oe.mfhd(ne.sequenceNumber),oe.traf(ne,ee))},oe.mfhd=function(ne){var ee=new Uint8Array([0,0,0,0,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne]);return oe.box(oe.types.mfhd,ee)},oe.traf=function(ne,ee){var J=ne.id,ce=oe.box(oe.types.tfhd,new Uint8Array([0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,255&J])),Se=oe.box(oe.types.tfdt,new Uint8Array([0,0,0,0,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee])),ke=oe.sdtp(ne),Ae=oe.trun(ne,ke.byteLength+16+16+8+16+8+8);return oe.box(oe.types.traf,ce,Se,Ae,ke)},oe.sdtp=function(ne){for(var ee=ne.samples||[],J=ee.length,ce=new Uint8Array(4+J),Se=0;Se>>24&255,ce>>>16&255,ce>>>8&255,255&ce,ee>>>24&255,ee>>>16&255,ee>>>8&255,255&ee],0);for(var Ae=0;Ae>>24&255,nt>>>16&255,nt>>>8&255,255&nt,ot>>>24&255,ot>>>16&255,ot>>>8&255,255&ot,gt.isLeading<<2|gt.dependsOn,gt.isDependedOn<<6|gt.hasRedundancy<<4|gt.isNonSync,0,0,De>>>24&255,De>>>16&255,De>>>8&255,255&De],12+16*Ae)}return oe.box(oe.types.trun,ke)},oe.mdat=function(ne){return oe.box(oe.types.mdat,ne)},oe})();Xn.init();var wr=Xn,ro=(function(){function oe(){}return oe.getSilentFrame=function(ne,ee){if(ne==="mp4a.40.2"){if(ee===1)return new Uint8Array([0,200,0,128,35,128]);if(ee===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ee===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ee===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ee===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ee===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ee===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ee===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ee===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},oe})(),Ot=i(11),bn=(function(){function oe(ne){this.TAG="MP4Remuxer",this._config=ne,this._isLive=ne.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ot.c("audio"),this._videoSegmentInfoList=new Ot.c("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!c.a.chrome||!(c.a.version.major<50||c.a.version.major===50&&c.a.version.build<2661)),this._fillSilentAfterSeek=c.a.msedge||c.a.msie,this._mp3UseMpegAudio=!c.a.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return oe.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},oe.prototype.bindDataSource=function(ne){return ne.onDataAvailable=this.remux.bind(this),ne.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(oe.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(ne){this._onInitSegment=ne},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(ne){this._onMediaSegment=ne},enumerable:!1,configurable:!0}),oe.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},oe.prototype.seek=function(ne){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},oe.prototype.remux=function(ne,ee){if(!this._onMediaSegment)throw new g.a("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ne,ee),ee&&this._remuxVideo(ee),ne&&this._remuxAudio(ne)},oe.prototype._onTrackMetadataReceived=function(ne,ee){var J=null,ce="mp4",Se=ee.codec;if(ne==="audio")this._audioMeta=ee,ee.codec==="mp3"&&this._mp3UseMpegAudio?(ce="mpeg",Se="",J=new Uint8Array):J=wr.generateInitSegment(ee);else{if(ne!=="video")return;this._videoMeta=ee,J=wr.generateInitSegment(ee)}if(!this._onInitSegment)throw new g.a("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ne,{type:ne,data:J.buffer,codec:Se,container:"".concat(ne,"/").concat(ce),mediaDuration:ee.duration})},oe.prototype._calculateDtsBase=function(ne,ee){this._dtsBaseInited||(ne&&ne.samples&&ne.samples.length&&(this._audioDtsBase=ne.samples[0].dts),ee&&ee.samples&&ee.samples.length&&(this._videoDtsBase=ee.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},oe.prototype.getTimestampBase=function(){if(this._dtsBaseInited)return this._dtsBase},oe.prototype.flushStashedSamples=function(){var ne=this._videoStashedLastSample,ee=this._audioStashedLastSample,J={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ne!=null&&(J.samples.push(ne),J.length=ne.length);var ce={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ee!=null&&(ce.samples.push(ee),ce.length=ee.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(J,!0),this._remuxAudio(ce,!0)},oe.prototype._remuxAudio=function(ne,ee){if(this._audioMeta!=null){var J,ce=ne,Se=ce.samples,ke=void 0,Ae=-1,nt=this._audioMeta.refSampleDuration,ot=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,gt=this._dtsBaseInited&&this._audioNextDts===void 0,De=!1;if(Se&&Se.length!==0&&(Se.length!==1||ee)){var st=0,ut=null,Mt=0;ot?(st=0,Mt=ce.length):(st=8,Mt=8+ce.length);var Qt=null;if(Se.length>1&&(Mt-=(Qt=Se.pop()).length),this._audioStashedLastSample!=null){var Gt=this._audioStashedLastSample;this._audioStashedLastSample=null,Se.unshift(Gt),Mt+=Gt.length}Qt!=null&&(this._audioStashedLastSample=Qt);var pn=Se[0].dts-this._dtsBase;if(this._audioNextDts)ke=pn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())ke=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(De=!0);else{var mn=this._audioSegmentInfoList.getLastSampleBefore(pn);if(mn!=null){var ln=pn-(mn.originalDts+mn.duration);ln<=3&&(ln=0),ke=pn-(mn.dts+mn.duration+ln)}else ke=0}if(De){var dr=pn-ke,tr=this._videoSegmentInfoList.getLastSegmentBefore(pn);if(tr!=null&&tr.beginDts=3*nt&&this._fillAudioTimestampGap&&!c.a.safari){vr=!0;var li,La=Math.floor(ke/nt);l.a.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. -`+"originalDts: ".concat(or," ms, curRefDts: ").concat(yi," ms, ")+"dtsCorrection: ".concat(Math.round(ke)," ms, generate: ").concat(La," frames")),_n=Math.floor(yi),Kr=Math.floor(yi+nt)-_n,(li=ro.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount))==null&&(l.a.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),li=Ln),hr=[];for(var wn=0;wn=1?fr[fr.length-1].duration:Math.floor(nt),this._audioNextDts=_n+Kr;Ae===-1&&(Ae=_n),fr.push({dts:_n,pts:_n,cts:0,unit:Gt.unit,size:Gt.unit.byteLength,duration:Kr,originalDts:or,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),vr&&fr.push.apply(fr,hr)}}if(fr.length===0)return ce.samples=[],void(ce.length=0);for(ot?ut=new Uint8Array(Mt):((ut=new Uint8Array(Mt))[0]=Mt>>>24&255,ut[1]=Mt>>>16&255,ut[2]=Mt>>>8&255,ut[3]=255&Mt,ut.set(wr.types.mdat,4)),ir=0;ir1&&(st-=(ut=ke.pop()).length),this._videoStashedLastSample!=null){var Mt=this._videoStashedLastSample;this._videoStashedLastSample=null,ke.unshift(Mt),st+=Mt.length}ut!=null&&(this._videoStashedLastSample=ut);var Qt=ke[0].dts-this._dtsBase;if(this._videoNextDts)Ae=Qt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ae=0;else{var Gt=this._videoSegmentInfoList.getLastSampleBefore(Qt);if(Gt!=null){var pn=Qt-(Gt.originalDts+Gt.duration);pn<=3&&(pn=0),Ae=Qt-(Gt.dts+Gt.duration+pn)}else Ae=0}for(var mn=new Ot.b,ln=[],dr=0;dr=1?ln[ln.length-1].duration:Math.floor(this._videoMeta.refSampleDuration),_n){var or=new Ot.d(Yn,ir,Ln,Mt.dts,!0);or.fileposition=Mt.fileposition,mn.appendSyncPoint(or)}ln.push({dts:Yn,pts:ir,cts:fr,units:Mt.units,size:Mt.length,isKeyframe:_n,duration:Ln,originalDts:tr,flags:{isLeading:0,dependsOn:_n?2:1,isDependedOn:_n?1:0,hasRedundancy:0,isNonSync:_n?0:1}})}for((De=new Uint8Array(st))[0]=st>>>24&255,De[1]=st>>>16&255,De[2]=st>>>8&255,De[3]=255&st,De.set(wr.types.mdat,4),dr=0;dr0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,ce=this._demuxer.parseChunks(ne,ee);else{var Se=null;(Se=B.probe(ne)).match&&(this._setupFLVDemuxerRemuxer(Se),ce=this._demuxer.parseChunks(ne,ee)),Se.match||Se.needMoreData||(Se=An.probe(ne)).match&&(this._setupTSDemuxerRemuxer(Se),ce=this._demuxer.parseChunks(ne,ee)),Se.match||Se.needMoreData||(Se=null,l.a.e(this.TAG,"Non MPEG-TS/FLV, Unsupported media type!"),Promise.resolve().then((function(){J._internalAbort()})),this._emitter.emit(sr.a.DEMUX_ERROR,x.a.FORMAT_UNSUPPORTED,"Non MPEG-TS/FLV, Unsupported media type!"))}return ce},oe.prototype._setupFLVDemuxerRemuxer=function(ne){this._demuxer=new B(ne,this._config),this._remuxer||(this._remuxer=new bn(this._config));var ee=this._mediaDataSource;ee.duration==null||isNaN(ee.duration)||(this._demuxer.overridedDuration=ee.duration),typeof ee.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=ee.hasAudio),typeof ee.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=ee.hasVideo),this._demuxer.timestampBase=ee.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this)},oe.prototype._setupTSDemuxerRemuxer=function(ne){var ee=this._demuxer=new An(ne,this._config);this._remuxer||(this._remuxer=new bn(this._config)),ee.onError=this._onDemuxException.bind(this),ee.onMediaInfo=this._onMediaInfo.bind(this),ee.onMetaDataArrived=this._onMetaDataArrived.bind(this),ee.onTimedID3Metadata=this._onTimedID3Metadata.bind(this),ee.onSynchronousKLVMetadata=this._onSynchronousKLVMetadata.bind(this),ee.onAsynchronousKLVMetadata=this._onAsynchronousKLVMetadata.bind(this),ee.onSMPTE2038Metadata=this._onSMPTE2038Metadata.bind(this),ee.onSCTE35Metadata=this._onSCTE35Metadata.bind(this),ee.onPESPrivateDataDescriptor=this._onPESPrivateDataDescriptor.bind(this),ee.onPESPrivateData=this._onPESPrivateData.bind(this),this._remuxer.bindDataSource(this._demuxer),this._demuxer.bindDataSource(this._ioctl),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this)},oe.prototype._onMediaInfo=function(ne){var ee=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ne),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,d.a.prototype));var J=Object.assign({},ne);Object.setPrototypeOf(J,d.a.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=J,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then((function(){var ce=ee._pendingSeekTime;ee._pendingSeekTime=null,ee.seek(ce)}))},oe.prototype._onMetaDataArrived=function(ne){this._emitter.emit(sr.a.METADATA_ARRIVED,ne)},oe.prototype._onScriptDataArrived=function(ne){this._emitter.emit(sr.a.SCRIPTDATA_ARRIVED,ne)},oe.prototype._onTimedID3Metadata=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.dts!=null&&(ne.dts-=ee),this._emitter.emit(sr.a.TIMED_ID3_METADATA_ARRIVED,ne))},oe.prototype._onSynchronousKLVMetadata=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.dts!=null&&(ne.dts-=ee),this._emitter.emit(sr.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,ne))},oe.prototype._onAsynchronousKLVMetadata=function(ne){this._emitter.emit(sr.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,ne)},oe.prototype._onSMPTE2038Metadata=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.dts!=null&&(ne.dts-=ee),ne.nearest_pts!=null&&(ne.nearest_pts-=ee),this._emitter.emit(sr.a.SMPTE2038_METADATA_ARRIVED,ne))},oe.prototype._onSCTE35Metadata=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.nearest_pts!=null&&(ne.nearest_pts-=ee),this._emitter.emit(sr.a.SCTE35_METADATA_ARRIVED,ne))},oe.prototype._onPESPrivateDataDescriptor=function(ne){this._emitter.emit(sr.a.PES_PRIVATE_DATA_DESCRIPTOR,ne)},oe.prototype._onPESPrivateData=function(ne){var ee=this._remuxer.getTimestampBase();ee!=null&&(ne.pts!=null&&(ne.pts-=ee),ne.nearest_pts!=null&&(ne.nearest_pts-=ee),ne.dts!=null&&(ne.dts-=ee),this._emitter.emit(sr.a.PES_PRIVATE_DATA_ARRIVED,ne))},oe.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},oe.prototype._onIOComplete=function(ne){var ee=ne+1;ee0&&J[0].originalDts===ce&&(ce=J[0].pts),this._emitter.emit(sr.a.RECOMMEND_SEEKPOINT,ce)}},oe.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},oe.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},oe.prototype._reportSegmentMediaInfo=function(ne){var ee=this._mediaInfo.segments[ne],J=Object.assign({},ee);J.duration=this._mediaInfo.duration,J.segmentCount=this._mediaInfo.segmentCount,delete J.segments,delete J.keyframesIndex,this._emitter.emit(sr.a.MEDIA_INFO,J)},oe.prototype._reportStatisticsInfo=function(){var ne={};ne.url=this._ioctl.currentURL,ne.hasRedirect=this._ioctl.hasRedirect,ne.hasRedirect&&(ne.redirectedURL=this._ioctl.currentRedirectedURL),ne.speed=this._ioctl.currentSpeed,ne.loaderType=this._ioctl.loaderType,ne.currentSegmentIndex=this._currentSegmentIndex,ne.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(sr.a.STATISTICS_INFO,ne)},oe})());r.a=zr},function(n,r,i){var a,s=i(0),l=(function(){function P(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return P.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},P.prototype.addBytes=function(M){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=M,this._totalBytes+=M):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=M,this._totalBytes+=M):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=M,this._totalBytes+=M,this._lastCheckpoint=this._now())},Object.defineProperty(P.prototype,"currentKBps",{get:function(){this.addBytes(0);var M=(this._now()-this._lastCheckpoint)/1e3;return M==0&&(M=1),this._intervalBytes/M/1024},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"averageKBps",{get:function(){var M=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/M/1024},enumerable:!1,configurable:!0}),P})(),c=i(2),d=i(5),h=i(3),p=(a=function(P,M){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,L){O.__proto__=L}||function(O,L){for(var B in L)Object.prototype.hasOwnProperty.call(L,B)&&(O[B]=L[B])})(P,M)},function(P,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function O(){this.constructor=P}a(P,M),P.prototype=M===null?Object.create(M):(O.prototype=M.prototype,new O)}),v=(function(P){function M(O,L){var B=P.call(this,"fetch-stream-loader")||this;return B.TAG="FetchStreamLoader",B._seekHandler=O,B._config=L,B._needStash=!0,B._requestAbort=!1,B._abortController=null,B._contentLength=null,B._receivedLength=0,B}return p(M,P),M.isSupported=function(){try{var O=d.a.msedge&&d.a.version.minor>=15048,L=!d.a.msedge||O;return self.fetch&&self.ReadableStream&&L}catch{return!1}},M.prototype.destroy=function(){this.isWorking()&&this.abort(),P.prototype.destroy.call(this)},M.prototype.open=function(O,L){var B=this;this._dataSource=O,this._range=L;var j=O.url;this._config.reuseRedirectedURL&&O.redirectedURL!=null&&(j=O.redirectedURL);var H=this._seekHandler.getConfig(j,L),U=new self.Headers;if(typeof H.headers=="object"){var K=H.headers;for(var Y in K)K.hasOwnProperty(Y)&&U.append(Y,K[Y])}var ie={method:"GET",headers:U,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Y in this._config.headers)U.append(Y,this._config.headers[Y]);O.cors===!1&&(ie.mode="same-origin"),O.withCredentials&&(ie.credentials="include"),O.referrerPolicy&&(ie.referrerPolicy=O.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,ie.signal=this._abortController.signal),this._status=c.c.kConnecting,self.fetch(H.url,ie).then((function(te){if(B._requestAbort)return B._status=c.c.kIdle,void te.body.cancel();if(te.ok&&te.status>=200&&te.status<=299){if(te.url!==H.url&&B._onURLRedirect){var W=B._seekHandler.removeURLParameters(te.url);B._onURLRedirect(W)}var q=te.headers.get("Content-Length");return q!=null&&(B._contentLength=parseInt(q),B._contentLength!==0&&B._onContentLengthKnown&&B._onContentLengthKnown(B._contentLength)),B._pump.call(B,te.body.getReader())}if(B._status=c.c.kError,!B._onError)throw new h.d("FetchStreamLoader: Http code invalid, "+te.status+" "+te.statusText);B._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:te.status,msg:te.statusText})})).catch((function(te){if(!B._abortController||!B._abortController.signal.aborted){if(B._status=c.c.kError,!B._onError)throw te;B._onError(c.b.EXCEPTION,{code:-1,msg:te.message})}}))},M.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==c.c.kBuffering||!d.a.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},M.prototype._pump=function(O){var L=this;return O.read().then((function(B){if(B.done)if(L._contentLength!==null&&L._receivedLength299)){if(this._status=c.c.kError,!this._onError)throw new h.d("MozChunkedLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}else this._status=c.c.kBuffering}},M.prototype._onProgress=function(O){if(this._status!==c.c.kError){this._contentLength===null&&O.total!==null&&O.total!==0&&(this._contentLength=O.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var L=O.target.response,B=this._range.from+this._receivedLength;this._receivedLength+=L.byteLength,this._onDataArrival&&this._onDataArrival(L,B,this._receivedLength)}},M.prototype._onLoadEnd=function(O){this._requestAbort!==!0?this._status!==c.c.kError&&(this._status=c.c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1},M.prototype._onXhrError=function(O){this._status=c.c.kError;var L=0,B=null;if(this._contentLength&&O.loaded=200&&L.status<=299){if(this._status=c.c.kBuffering,L.responseURL!=null){var B=this._seekHandler.removeURLParameters(L.responseURL);L.responseURL!==this._currentRequestURL&&B!==this._currentRedirectedURL&&(this._currentRedirectedURL=B,this._onURLRedirect&&this._onURLRedirect(B))}var j=L.getResponseHeader("Content-Length");if(j!=null&&this._contentLength==null){var H=parseInt(j);H>0&&(this._contentLength=H,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else{if(this._status=c.c.kError,!this._onError)throw new h.d("MSStreamLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}else if(L.readyState===3&&L.status>=200&&L.status<=299){this._status=c.c.kBuffering;var U=L.response;this._reader.readAsArrayBuffer(U)}},M.prototype._xhrOnError=function(O){this._status=c.c.kError;var L=c.b.EXCEPTION,B={code:-1,msg:O.constructor.name+" "+O.type};if(!this._onError)throw new h.d(B.msg);this._onError(L,B)},M.prototype._msrOnProgress=function(O){var L=O.target.result;if(L!=null){var B=L.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=L.byteLength;var j=this._totalRange.from+this._receivedLength;this._receivedLength+=B.byteLength,this._onDataArrival&&this._onDataArrival(B,j,this._receivedLength),L.byteLength>=this._bufferLimit&&(s.a.v(this.TAG,"MSStream buffer exceeded max size near ".concat(j+B.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}else this._doReconnectIfNeeded()},M.prototype._doReconnectIfNeeded=function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(B=this._range.from+this._contentLength-1),this._currentRequestRange={from:L,to:B},this._internalOpen(this._dataSource,this._currentRequestRange)},M.prototype._internalOpen=function(O,L){this._lastTimeLoaded=0;var B=O.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?B=this._currentRedirectedURL:O.redirectedURL!=null&&(B=O.redirectedURL));var j=this._seekHandler.getConfig(B,L);this._currentRequestURL=j.url;var H=this._xhr=new XMLHttpRequest;if(H.open("GET",j.url,!0),H.responseType="arraybuffer",H.onreadystatechange=this._onReadyStateChange.bind(this),H.onprogress=this._onProgress.bind(this),H.onload=this._onLoad.bind(this),H.onerror=this._onXhrError.bind(this),O.withCredentials&&(H.withCredentials=!0),typeof j.headers=="object"){var U=j.headers;for(var K in U)U.hasOwnProperty(K)&&H.setRequestHeader(K,U[K])}if(typeof this._config.headers=="object"){U=this._config.headers;for(var K in U)U.hasOwnProperty(K)&&H.setRequestHeader(K,U[K])}H.send()},M.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=c.c.kComplete},M.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},M.prototype._onReadyStateChange=function(O){var L=O.target;if(L.readyState===2){if(L.responseURL!=null){var B=this._seekHandler.removeURLParameters(L.responseURL);L.responseURL!==this._currentRequestURL&&B!==this._currentRedirectedURL&&(this._currentRedirectedURL=B,this._onURLRedirect&&this._onURLRedirect(B))}if(L.status>=200&&L.status<=299){if(this._waitForTotalLength)return;this._status=c.c.kBuffering}else{if(this._status=c.c.kError,!this._onError)throw new h.d("RangeLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}}},M.prototype._onProgress=function(O){if(this._status!==c.c.kError){if(this._contentLength===null){var L=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,L=!0;var B=O.total;this._internalAbort(),B!=null&B!==0&&(this._totalLength=B)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,L)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var j=O.loaded-this._lastTimeLoaded;this._lastTimeLoaded=O.loaded,this._speedSampler.addBytes(j)}},M.prototype._normalizeSpeed=function(O){var L=this._chunkSizeKBList,B=L.length-1,j=0,H=0,U=B;if(O=L[j]&&O=3&&(L=this._speedSampler.currentKBps)),L!==0){var B=this._normalizeSpeed(L);this._currentSpeedNormalized!==B&&(this._currentSpeedNormalized=B,this._currentChunkSizeKB=B)}var j=O.target.response,H=this._range.from+this._receivedLength;this._receivedLength+=j.byteLength;var U=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var H=L.split("&"),U=0;U0;K[0]!==this._startName&&K[0]!==this._endName&&(Y&&(j+="&"),j+=H[U])}return j.length===0?O:O+"?"+j},P})(),D=(function(){function P(M,O,L){this.TAG="IOController",this._config=O,this._extraData=L,this._stashInitialSize=65536,O.stashInitialSize!=null&&O.stashInitialSize>0&&(this._stashInitialSize=O.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=Math.max(this._stashSize,3145728),this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,O.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=M,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(M.url),this._refTotalLength=M.filesize?M.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new l,this._speedNormalizeList=[32,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return P.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},P.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},P.prototype.isPaused=function(){return this._paused},Object.defineProperty(P.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"extraData",{get:function(){return this._extraData},set:function(M){this._extraData=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(M){this._onDataArrival=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(M){this._onSeeked=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onError",{get:function(){return this._onError},set:function(M){this._onError=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onComplete",{get:function(){return this._onComplete},set:function(M){this._onComplete=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(M){this._onRedirect=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(M){this._onRecoveredEarlyEof=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentSpeed",{get:function(){return this._loaderClass===C?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),P.prototype._selectSeekHandler=function(){var M=this._config;if(M.seekType==="range")this._seekHandler=new _(this._config.rangeLoadZeroStart);else if(M.seekType==="param"){var O=M.seekParamStart||"bstart",L=M.seekParamEnd||"bend";this._seekHandler=new T(O,L)}else{if(M.seekType!=="custom")throw new h.b("Invalid seekType in config: ".concat(M.seekType));if(typeof M.customSeekHandler!="function")throw new h.b("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new M.customSeekHandler}},P.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=E;else if(v.isSupported())this._loaderClass=v;else if(y.isSupported())this._loaderClass=y;else{if(!C.isSupported())throw new h.d("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=C}},P.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},P.prototype.open=function(M){this._currentRange={from:0,to:-1},M&&(this._currentRange.from=M),this._speedSampler.reset(),M||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},P.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},P.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},P.prototype.resume=function(){if(this._paused){this._paused=!1;var M=this._resumeFrom;this._resumeFrom=0,this._internalSeek(M,!0)}},P.prototype.seek=function(M){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(M,!0)},P.prototype._internalSeek=function(M,O){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(O),this._loader.destroy(),this._loader=null;var L={from:M,to:-1};this._currentRange={from:L.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,L),this._onSeeked&&this._onSeeked()},P.prototype.updateUrl=function(M){if(!M||typeof M!="string"||M.length===0)throw new h.b("Url must be a non-empty string!");this._dataSource.url=M},P.prototype._expandBuffer=function(M){for(var O=this._stashSize;O+10485760){var B=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(L,0,O).set(B,0)}this._stashBuffer=L,this._bufferSize=O}},P.prototype._normalizeSpeed=function(M){var O=this._speedNormalizeList,L=O.length-1,B=0,j=0,H=L;if(M=O[B]&&M=512&&M<=1024?Math.floor(1.5*M):2*M)>8192&&(O=8192);var L=1024*O+1048576;this._bufferSize0){var H=this._stashBuffer.slice(0,this._stashUsed);(Y=this._dispatchChunks(H,this._stashByteStart))0&&(ie=new Uint8Array(H,Y),K.set(ie,0),this._stashUsed=ie.byteLength,this._stashByteStart+=Y):(this._stashUsed=0,this._stashByteStart+=Y),this._stashUsed+M.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+M.byteLength),K=new Uint8Array(this._stashBuffer,0,this._bufferSize)),K.set(new Uint8Array(M),this._stashUsed),this._stashUsed+=M.byteLength}else(Y=this._dispatchChunks(M,O))this._bufferSize&&(this._expandBuffer(U),K=new Uint8Array(this._stashBuffer,0,this._bufferSize)),K.set(new Uint8Array(M,Y),0),this._stashUsed+=U,this._stashByteStart=O+Y);else if(this._stashUsed===0){var U;(Y=this._dispatchChunks(M,O))this._bufferSize&&this._expandBuffer(U),(K=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(M,Y),0),this._stashUsed+=U,this._stashByteStart=O+Y)}else{var K,Y;if(this._stashUsed+M.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+M.byteLength),(K=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(M),this._stashUsed),this._stashUsed+=M.byteLength,(Y=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart))0){var ie=new Uint8Array(this._stashBuffer,Y);K.set(ie,0)}this._stashUsed-=Y,this._stashByteStart+=Y}}},P.prototype._flushStashBuffer=function(M){if(this._stashUsed>0){var O=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(O,this._stashByteStart),B=O.byteLength-L;if(L0){var j=new Uint8Array(this._stashBuffer,0,this._bufferSize),H=new Uint8Array(O,L);j.set(H,0),this._stashUsed=H.byteLength,this._stashByteStart+=L}return 0}s.a.w(this.TAG,"".concat(B," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,B}return 0},P.prototype._onLoaderComplete=function(M,O){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},P.prototype._onLoaderError=function(M,O){switch(s.a.e(this.TAG,"Loader error, code = ".concat(O.code,", msg = ").concat(O.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,M=c.b.UNRECOVERABLE_EARLY_EOF),M){case c.b.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var L=this._currentRange.to+1;return void(L0?0|c:0;return this.substring(d,d+l.length)===l}}),typeof self.Promise!="function"&&i(21).polyfill()},s})();a.install(),r.a=a},function(n,r,i){var a=i(9),s=i.n(a),l=i(0),c=i(5),d=i(7),h=i(3),p=(function(){function v(g){this.TAG="MSEController",this._config=g,this._emitter=new s.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onStartStreaming:this._onStartStreaming.bind(this),onEndStreaming:this._onEndStreaming.bind(this),onQualityChange:this._onQualityChange.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._useManagedMediaSource="ManagedMediaSource"in self&&!("MediaSource"in self),this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElementProxy=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]}}return v.prototype.destroy=function(){this._mediaSource&&this.shutdown(),this._mediaSourceObjectURL&&this.revokeObjectURL(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},v.prototype.on=function(g,y){this._emitter.addListener(g,y)},v.prototype.off=function(g,y){this._emitter.removeListener(g,y)},v.prototype.initialize=function(g){if(this._mediaSource)throw new h.a("MediaSource has been attached to an HTMLMediaElement!");this._useManagedMediaSource&&l.a.v(this.TAG,"Using ManagedMediaSource");var y=this._mediaSource=this._useManagedMediaSource?new self.ManagedMediaSource:new self.MediaSource;y.addEventListener("sourceopen",this.e.onSourceOpen),y.addEventListener("sourceended",this.e.onSourceEnded),y.addEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(y.addEventListener("startstreaming",this.e.onStartStreaming),y.addEventListener("endstreaming",this.e.onEndStreaming),y.addEventListener("qualitychange",this.e.onQualityChange)),this._mediaElementProxy=g},v.prototype.shutdown=function(){if(this._mediaSource){var g=this._mediaSource;for(var y in this._sourceBuffers){var S=this._pendingSegments[y];S.splice(0,S.length),this._pendingSegments[y]=null,this._pendingRemoveRanges[y]=null,this._lastInitSegments[y]=null;var k=this._sourceBuffers[y];if(k){if(g.readyState!=="closed"){try{g.removeSourceBuffer(k)}catch(C){l.a.e(this.TAG,C.message)}k.removeEventListener("error",this.e.onSourceBufferError),k.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[y]=null,this._sourceBuffers[y]=null}}if(g.readyState==="open")try{g.endOfStream()}catch(C){l.a.e(this.TAG,C.message)}this._mediaElementProxy=null,g.removeEventListener("sourceopen",this.e.onSourceOpen),g.removeEventListener("sourceended",this.e.onSourceEnded),g.removeEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(g.removeEventListener("startstreaming",this.e.onStartStreaming),g.removeEventListener("endstreaming",this.e.onEndStreaming),g.removeEventListener("qualitychange",this.e.onQualityChange)),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._mediaSource=null}},v.prototype.isManagedMediaSource=function(){return this._useManagedMediaSource},v.prototype.getObject=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSource},v.prototype.getHandle=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSource.handle},v.prototype.getObjectURL=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSourceObjectURL==null&&(this._mediaSourceObjectURL=URL.createObjectURL(this._mediaSource)),this._mediaSourceObjectURL},v.prototype.revokeObjectURL=function(){this._mediaSourceObjectURL&&(URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},v.prototype.appendInitSegment=function(g,y){if(y===void 0&&(y=void 0),!this._mediaSource||this._mediaSource.readyState!=="open"||this._mediaSource.streaming===!1)return this._pendingSourceBufferInit.push(g),void this._pendingSegments[g.type].push(g);var S=g,k="".concat(S.container);S.codec&&S.codec.length>0&&(S.codec==="opus"&&c.a.safari&&(S.codec="Opus"),k+=";codecs=".concat(S.codec));var C=!1;if(l.a.v(this.TAG,"Received Initialization Segment, mimeType: "+k),this._lastInitSegments[S.type]=S,k!==this._mimeTypes[S.type]){if(this._mimeTypes[S.type])l.a.v(this.TAG,"Notice: ".concat(S.type," mimeType changed, origin: ").concat(this._mimeTypes[S.type],", target: ").concat(k));else{C=!0;try{var x=this._sourceBuffers[S.type]=this._mediaSource.addSourceBuffer(k);x.addEventListener("error",this.e.onSourceBufferError),x.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(E){return l.a.e(this.TAG,E.message),void this._emitter.emit(d.a.ERROR,{code:E.code,msg:E.message})}}this._mimeTypes[S.type]=k}y||this._pendingSegments[S.type].push(S),C||this._sourceBuffers[S.type]&&!this._sourceBuffers[S.type].updating&&this._doAppendSegments(),c.a.safari&&S.container==="audio/mpeg"&&S.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=S.mediaDuration/1e3,this._updateMediaSourceDuration())},v.prototype.appendMediaSegment=function(g){var y=g;this._pendingSegments[y.type].push(y),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var S=this._sourceBuffers[y.type];!S||S.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()},v.prototype.flush=function(){for(var g in this._sourceBuffers)if(this._sourceBuffers[g]){var y=this._sourceBuffers[g];if(this._mediaSource.readyState==="open")try{y.abort()}catch(_){l.a.e(this.TAG,_.message)}var S=this._pendingSegments[g];if(S.splice(0,S.length),this._mediaSource.readyState!=="closed"){for(var k=0;k=1&&g-k.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},v.prototype._doCleanupSourceBuffer=function(){var g=this._mediaElementProxy.getCurrentTime();for(var y in this._sourceBuffers){var S=this._sourceBuffers[y];if(S){for(var k=S.buffered,C=!1,x=0;x=this._config.autoCleanupMaxBackwardDuration){C=!0;var T=g-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[y].push({start:E,end:T})}}else _0&&(isNaN(y)||S>y)&&(l.a.v(this.TAG,"Update MediaSource duration from ".concat(y," to ").concat(S)),this._mediaSource.duration=S),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},v.prototype._doRemoveRanges=function(){for(var g in this._pendingRemoveRanges)if(this._sourceBuffers[g]&&!this._sourceBuffers[g].updating)for(var y=this._sourceBuffers[g],S=this._pendingRemoveRanges[g];S.length&&!y.updating;){var k=S.shift();y.remove(k.start,k.end)}},v.prototype._doAppendSegments=function(){var g=this._pendingSegments;for(var y in g)if(this._sourceBuffers[y]&&!this._sourceBuffers[y].updating&&this._mediaSource.streaming!==!1&&g[y].length>0){var S=g[y].shift();if(typeof S.timestampOffset=="number"&&isFinite(S.timestampOffset)){var k=this._sourceBuffers[y].timestampOffset,C=S.timestampOffset/1e3;Math.abs(k-C)>.1&&(l.a.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(k," to ").concat(C)),this._sourceBuffers[y].timestampOffset=C),delete S.timestampOffset}if(!S.data||S.data.byteLength===0)continue;try{this._sourceBuffers[y].appendBuffer(S.data),this._isBufferFull=!1}catch(x){this._pendingSegments[y].unshift(S),x.code===22?(this._isBufferFull||this._emitter.emit(d.a.BUFFER_FULL),this._isBufferFull=!0):(l.a.e(this.TAG,x.message),this._emitter.emit(d.a.ERROR,{code:x.code,msg:x.message}))}}},v.prototype._onSourceOpen=function(){if(l.a.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var g=this._pendingSourceBufferInit;g.length;){var y=g.shift();this.appendInitSegment(y,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(d.a.SOURCE_OPEN)},v.prototype._onStartStreaming=function(){l.a.v(this.TAG,"ManagedMediaSource onStartStreaming"),this._emitter.emit(d.a.START_STREAMING)},v.prototype._onEndStreaming=function(){l.a.v(this.TAG,"ManagedMediaSource onEndStreaming"),this._emitter.emit(d.a.END_STREAMING)},v.prototype._onQualityChange=function(){l.a.v(this.TAG,"ManagedMediaSource onQualityChange")},v.prototype._onSourceEnded=function(){l.a.v(this.TAG,"MediaSource onSourceEnded")},v.prototype._onSourceClose=function(){l.a.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(this._mediaSource.removeEventListener("startstreaming",this.e.onStartStreaming),this._mediaSource.removeEventListener("endstreaming",this.e.onEndStreaming),this._mediaSource.removeEventListener("qualitychange",this.e.onQualityChange)))},v.prototype._hasPendingSegments=function(){var g=this._pendingSegments;return g.video.length>0||g.audio.length>0},v.prototype._hasPendingRemoveRanges=function(){var g=this._pendingRemoveRanges;return g.video.length>0||g.audio.length>0},v.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(d.a.UPDATE_END)},v.prototype._onSourceBufferError=function(g){l.a.e(this.TAG,"SourceBuffer Error: ".concat(g))},v})();r.a=p},function(n,r,i){var a=i(9),s=i.n(a),l=i(18),c=i.n(l),d=i(0),h=i(8),p=i(13),v=i(1),g=(i(19),i(12)),y=(function(){function S(k,C){if(this.TAG="Transmuxer",this._emitter=new s.a,C.enableWorker&&typeof Worker<"u")try{this._worker=c()(19),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[k,C]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},h.a.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:h.a.getConfig()})}catch{d.a.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new p.a(k,C)}else this._controller=new p.a(k,C);if(this._controller){var x=this._controller;x.on(v.a.IO_ERROR,this._onIOError.bind(this)),x.on(v.a.DEMUX_ERROR,this._onDemuxError.bind(this)),x.on(v.a.INIT_SEGMENT,this._onInitSegment.bind(this)),x.on(v.a.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),x.on(v.a.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),x.on(v.a.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),x.on(v.a.MEDIA_INFO,this._onMediaInfo.bind(this)),x.on(v.a.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),x.on(v.a.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),x.on(v.a.TIMED_ID3_METADATA_ARRIVED,this._onTimedID3MetadataArrived.bind(this)),x.on(v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,this._onSynchronousKLVMetadataArrived.bind(this)),x.on(v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,this._onAsynchronousKLVMetadataArrived.bind(this)),x.on(v.a.SMPTE2038_METADATA_ARRIVED,this._onSMPTE2038MetadataArrived.bind(this)),x.on(v.a.SCTE35_METADATA_ARRIVED,this._onSCTE35MetadataArrived.bind(this)),x.on(v.a.PES_PRIVATE_DATA_DESCRIPTOR,this._onPESPrivateDataDescriptor.bind(this)),x.on(v.a.PES_PRIVATE_DATA_ARRIVED,this._onPESPrivateDataArrived.bind(this)),x.on(v.a.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),x.on(v.a.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return S.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),h.a.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},S.prototype.on=function(k,C){this._emitter.addListener(k,C)},S.prototype.off=function(k,C){this._emitter.removeListener(k,C)},S.prototype.hasWorker=function(){return this._worker!=null},S.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},S.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},S.prototype.seek=function(k){this._worker?this._worker.postMessage({cmd:"seek",param:k}):this._controller.seek(k)},S.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},S.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},S.prototype._onInitSegment=function(k,C){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.INIT_SEGMENT,k,C)}))},S.prototype._onMediaSegment=function(k,C){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.MEDIA_SEGMENT,k,C)}))},S.prototype._onLoadingComplete=function(){var k=this;Promise.resolve().then((function(){k._emitter.emit(v.a.LOADING_COMPLETE)}))},S.prototype._onRecoveredEarlyEof=function(){var k=this;Promise.resolve().then((function(){k._emitter.emit(v.a.RECOVERED_EARLY_EOF)}))},S.prototype._onMediaInfo=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.MEDIA_INFO,k)}))},S.prototype._onMetaDataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.METADATA_ARRIVED,k)}))},S.prototype._onScriptDataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.SCRIPTDATA_ARRIVED,k)}))},S.prototype._onTimedID3MetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.TIMED_ID3_METADATA_ARRIVED,k)}))},S.prototype._onSynchronousKLVMetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,k)}))},S.prototype._onAsynchronousKLVMetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,k)}))},S.prototype._onSMPTE2038MetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.SMPTE2038_METADATA_ARRIVED,k)}))},S.prototype._onSCTE35MetadataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.SCTE35_METADATA_ARRIVED,k)}))},S.prototype._onPESPrivateDataDescriptor=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.PES_PRIVATE_DATA_DESCRIPTOR,k)}))},S.prototype._onPESPrivateDataArrived=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.PES_PRIVATE_DATA_ARRIVED,k)}))},S.prototype._onStatisticsInfo=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.STATISTICS_INFO,k)}))},S.prototype._onIOError=function(k,C){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.IO_ERROR,k,C)}))},S.prototype._onDemuxError=function(k,C){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.DEMUX_ERROR,k,C)}))},S.prototype._onRecommendSeekpoint=function(k){var C=this;Promise.resolve().then((function(){C._emitter.emit(v.a.RECOMMEND_SEEKPOINT,k)}))},S.prototype._onLoggingConfigChanged=function(k){this._worker&&this._worker.postMessage({cmd:"logging_config",param:k})},S.prototype._onWorkerMessage=function(k){var C=k.data,x=C.data;if(C.msg==="destroyed"||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(C.msg){case v.a.INIT_SEGMENT:case v.a.MEDIA_SEGMENT:this._emitter.emit(C.msg,x.type,x.data);break;case v.a.LOADING_COMPLETE:case v.a.RECOVERED_EARLY_EOF:this._emitter.emit(C.msg);break;case v.a.MEDIA_INFO:Object.setPrototypeOf(x,g.a.prototype),this._emitter.emit(C.msg,x);break;case v.a.METADATA_ARRIVED:case v.a.SCRIPTDATA_ARRIVED:case v.a.TIMED_ID3_METADATA_ARRIVED:case v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED:case v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED:case v.a.SMPTE2038_METADATA_ARRIVED:case v.a.SCTE35_METADATA_ARRIVED:case v.a.PES_PRIVATE_DATA_DESCRIPTOR:case v.a.PES_PRIVATE_DATA_ARRIVED:case v.a.STATISTICS_INFO:this._emitter.emit(C.msg,x);break;case v.a.IO_ERROR:case v.a.DEMUX_ERROR:this._emitter.emit(C.msg,x.type,x.info);break;case v.a.RECOMMEND_SEEKPOINT:this._emitter.emit(C.msg,x);break;case"logcat_callback":d.a.emitter.emit("log",x.type,x.logcat)}},S})();r.a=y},function(n,r,i){function a(d){var h={};function p(g){if(h[g])return h[g].exports;var y=h[g]={i:g,l:!1,exports:{}};return d[g].call(y.exports,y,y.exports,p),y.l=!0,y.exports}p.m=d,p.c=h,p.i=function(g){return g},p.d=function(g,y,S){p.o(g,y)||Object.defineProperty(g,y,{configurable:!1,enumerable:!0,get:S})},p.r=function(g){Object.defineProperty(g,"__esModule",{value:!0})},p.n=function(g){var y=g&&g.__esModule?function(){return g.default}:function(){return g};return p.d(y,"a",y),y},p.o=function(g,y){return Object.prototype.hasOwnProperty.call(g,y)},p.p="/",p.oe=function(g){throw console.error(g),g};var v=p(p.s=ENTRY_MODULE);return v.default||v}function s(d){return(d+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function l(d,h,p){var v={};v[p]=[];var g=h.toString(),y=g.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!y)return v;for(var S,k=y[1],C=new RegExp("(\\\\n|\\W)"+s(k)+"\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");S=C.exec(g);)S[3]!=="dll-reference"&&v[p].push(S[3]);for(C=new RegExp("\\("+s(k)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");S=C.exec(g);)d[S[2]]||(v[p].push(S[1]),d[S[2]]=i(S[1]).m),v[S[2]]=v[S[2]]||[],v[S[2]].push(S[4]);for(var x,E=Object.keys(v),_=0;_0}),!1)}n.exports=function(d,h){h=h||{};var p={main:i.m},v=h.all?{main:Object.keys(p.main)}:(function(C,x){for(var E={main:[x]},_={main:[]},T={main:{}};c(E);)for(var D=Object.keys(E),P=0;Pt==="all"?!0:t==="downloaded"?n.status==="completed":t==="downloading"?n.status==="downloading":t==="failed"?n.status==="failed":t==="pending"?n.status==="pending"||n.status==="paused":n.status===t)}getTaskStats(){const t=this.getAllTasks();return{total:t.length,completed:t.filter(n=>n.status==="completed").length,downloading:t.filter(n=>n.status==="downloading").length,failed:t.filter(n=>n.status==="failed").length,pending:t.filter(n=>n.status==="pending"||n.status==="paused").length}}getStorageStats(){const n=this.getAllTasks().reduce((a,s)=>a+(s.downloadedSize||0),0),r=Math.max(0,104857600-n),i=n/104857600*100;return{usedBytes:n,availableBytes:r,totalBytes:104857600,usagePercentage:Math.min(100,i),isNearLimit:i>80,isOverLimit:i>=100,formattedUsed:this.formatFileSize(n),formattedAvailable:this.formatFileSize(r),formattedTotal:this.formatFileSize(104857600)}}formatFileSize(t){if(t===0)return"0 B";const n=1024,r=["B","KB","MB","GB"],i=Math.floor(Math.log(t)/Math.log(n));return parseFloat((t/Math.pow(n,i)).toFixed(2))+" "+r[i]}canAddTask(t=0){const n=this.getStorageStats();return t<=n.availableBytes}saveTasksToStorage(){try{const t=Array.from(this.tasks.entries());localStorage.setItem("novel_download_tasks",JSON.stringify(t))}catch(t){console.error("保存下载任务失败:",t)}}loadTasksFromStorage(){try{const t=localStorage.getItem("novel_download_tasks");if(t){const n=JSON.parse(t);this.tasks=new Map(n),this.tasks.forEach(r=>{r.status==="downloading"&&(r.status="paused",r.chapters.forEach(i=>{i.status==="downloading"&&(i.status="pending",i.progress=0,i.startTime=null)}))})}}catch(t){console.error("加载下载任务失败:",t),this.tasks=new Map}}generateTaskId(){return"task_"+Date.now()+"_"+Math.random().toString(36).substr(2,9)}sleep(t){return new Promise(n=>setTimeout(n,t))}notifyTaskUpdate(t){this.onTaskUpdate&&this.onTaskUpdate(t)}setTaskUpdateCallback(t){this.onTaskUpdate=t}}const bce=new nOt,rOt={class:"video-detail"},iOt={class:"detail-header"},oOt={class:"header-title"},sOt={key:0},aOt={key:1,class:"title-with-info"},lOt={class:"title-main"},uOt={key:0,class:"title-source"},cOt={key:0,class:"header-actions"},dOt={key:0,class:"loading-container"},fOt={key:1,class:"error-container"},hOt={key:2,class:"detail-content"},pOt={class:"video-header"},vOt=["src","alt"],mOt={class:"poster-overlay"},gOt={class:"video-meta"},yOt={class:"video-title"},bOt={class:"video-tags"},_Ot={class:"video-info-grid"},SOt={key:0,class:"info-item"},kOt={class:"value"},wOt={key:1,class:"info-item"},xOt={class:"value"},COt={key:2,class:"info-item"},EOt={class:"value"},TOt={class:"video-actions"},AOt={key:0,class:"action-buttons-row"},IOt={key:1,class:"action-buttons-row download-row"},LOt={key:0,class:"video-description"},DOt={class:"viewer"},POt=["src","alt","data-source","title"],ROt={class:"parse-dialog-content"},MOt={class:"parse-message"},OOt={key:0,class:"sniff-results"},$Ot={class:"results-list"},BOt={class:"result-index"},NOt={class:"result-info"},FOt={class:"result-url"},jOt={key:0,class:"result-type"},VOt={key:0,class:"more-results"},zOt={key:1,class:"parse-hint"},UOt={class:"hint-icon"},HOt={class:"parse-dialog-footer"},WOt={__name:"VideoDetail",setup(e){const t=s3(),n=ma(),r=CS(),i=eI(),a=LG(),s=wS(),l=DG(),c=ue(!1),d=ue(""),h=ue(null),p=ue(null),v=ue({id:"",name:"",pic:"",year:"",area:"",type:"",remarks:"",content:"",actor:"",director:""}),g=ue(!1),y=ue(0),S=ue(0),k=ue(!1),w=ue(0),x=ue({name:"",api:"",key:""}),E=ue(!1),_=ue(sessionStorage.getItem("hasPushOverride")==="true"),T=ue(null);It(_,se=>{sessionStorage.setItem("hasPushOverride",se.toString()),console.log("🔄 [状态持久化] hasPushOverride状态已保存:",se)},{immediate:!0});const D=ue(!1),P=ue(""),M=ue({}),$=ue([]),L=ue(!1),B=ue(""),j=ue(!1),H=ue(null),U=ue(null),W=ue(!1),K=ue([]),oe=ue(!1),ae=ue(null),ee=ue(!1),Y=ue(null),Q=ue(!1),ie=ue({title:"",message:"",type:""}),q=ue(!1),te=ue([]),Se=()=>{try{const se=localStorage.getItem("drplayer_preferred_player_type");return se&&["default","artplayer"].includes(se)?se:"default"}catch(se){return console.warn("读取播放器偏好失败:",se),"default"}},Fe=se=>{try{localStorage.setItem("drplayer_preferred_player_type",se),console.log("播放器偏好已保存:",se)}catch(re){console.warn("保存播放器偏好失败:",re)}},ve=ue(Se()),Re=ue([]),Ge=ue([]),nt=ue({inline:!1,button:!0,navbar:!0,title:!0,toolbar:{zoomIn:1,zoomOut:1,oneToOne:1,reset:1,prev:1,play:{show:1,size:"large"},next:1,rotateLeft:1,rotateRight:1,flipHorizontal:1,flipVertical:1},tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,backdrop:!0}),Ie=F(()=>h.value?.vod_pic?h.value.vod_pic:v.value?.sourcePic?v.value.sourcePic:"/src/assets/default-poster.svg"),_e=F(()=>{if(!h.value?.vod_play_from||!h.value?.vod_play_url)return[];const se=h.value.vod_play_from.split("$$$"),re=h.value.vod_play_url.split("$$$");return se.map((ne,J)=>({name:ne.trim(),episodes:me(re[J]||"")}))}),me=se=>se?se.split("#").map(re=>{const[ne,J]=re.split("$");return{name:ne?.trim()||"未知集数",url:J?.trim()||""}}).filter(re=>re.url):[],ge=F(()=>_e.value[y.value]?.episodes||[]),Be=F(()=>(_e.value[y.value]?.episodes||[])[S.value]?.url||""),Ye=F(()=>j.value&&!P.value?"":P.value||Be.value),Ke=F(()=>(_e.value[y.value]?.episodes||[])[S.value]?.name||"未知选集"),at=F(()=>S.value),ft=F(()=>!v.value.id||!x.value.api?!1:i.isFavorited(v.value.id,x.value.api)),ct=F(()=>ae.value!==null),Ct=F(()=>(x.value?.name||"").includes("[书]")||ct.value),xt=F(()=>ee.value),Rt=F(()=>{const se=x.value?.name||"";return se.includes("[书]")?{text:"开始阅读",icon:"icon-book"}:se.includes("[听]")?{text:"播放音频",icon:"icon-sound"}:se.includes("[画]")?{text:"查看图片",icon:"icon-image"}:ct.value?{text:"开始阅读",icon:"icon-book"}:xt.value?{text:"查看图片",icon:"icon-image"}:{text:"播放视频",icon:"icon-play-arrow"}}),Ht=async()=>{if(console.log("🔄 loadVideoDetail 函数被调用,开始加载详情数据:",{id:t.params.id,fullPath:t.fullPath,timestamp:new Date().toLocaleTimeString()}),!t.params.id){d.value="视频ID不能为空";return}if(w.value=0,E.value=!1,v.value={id:t.params.id,name:t.query.name||"",pic:t.query.pic||"",year:t.query.year||"",area:t.query.area||"",type:t.query.type||"",type_name:t.query.type_name||"",remarks:t.query.remarks||"",content:t.query.content||"",actor:t.query.actor||"",director:t.query.director||"",sourcePic:t.query.sourcePic||""},!r.nowSite){d.value="请先选择一个视频源";return}c.value=!0,d.value="";const se=t.query.fromCollection==="true",re=t.query.fromHistory==="true",ne=t.query.fromPush==="true",J=t.query.fromSpecialAction==="true";try{let de,ke,we,Te;if((se||re||ne||J)&&t.query.tempSiteKey)console.log("VideoDetail接收到的路由参数:",t.query),console.log("tempSiteExt参数值:",t.query.tempSiteExt),de=t.query.tempSiteKey,ke=t.query.tempSiteApi,we=t.query.tempSiteName,Te=t.query.tempSiteExt||null,console.log(`从${se?"收藏":re?"历史":"推送"}进入,使用临时站源:`,{siteName:we,module:de,apiUrl:ke,extend:Te});else{const ot=r.nowSite;de=ot.key||ot.name,ke=ot.api,we=ot.name,Te=ot.ext||null}x.value={name:we,api:ke,key:de,ext:Te},T.value=x.value,console.log("获取视频详情:",{videoId:t.params.id,module:de,apiUrl:ke,extend:Te,fromCollection:se,usingTempSite:se&&t.query.tempSiteKey}),se&&console.log("从收藏进入,优先调用T4详情接口获取最新数据");const rt=await Ka.getVideoDetails(de,t.params.id,ke,se,Te);if(rt){rt.module=de,rt.api_url=ke,rt.site_name=we,h.value=rt,console.log("视频详情获取成功:",rt);const ot=t.query.historyRoute,yt=t.query.historyEpisode;ot&&yt?(console.log("检测到历史记录参数,准备恢复播放位置:",{historyRoute:ot,historyEpisode:yt}),dn(()=>{setTimeout(()=>{console.log("开始恢复历史记录,当前playRoutes长度:",_e.value.length),_e.value.length>0?Ce(ot,yt):console.warn("playRoutes为空,无法恢复历史记录")},100)})):dn(()=>{setTimeout(()=>{_e.value.length>0&&y.value===0&&(console.log("初始化默认播放位置"),y.value=0,ge.value.length>0&&(S.value=0))},100)})}else d.value="未找到视频详情"}catch(de){console.error("加载视频详情失败:",de),d.value=de.message||"加载失败,请稍后重试"}finally{c.value=!1}},Jt=async()=>{if(!(!v.value.id||!x.value.api)){k.value=!0;try{if(ft.value)i.removeFavorite(v.value.id,x.value.api)&>.success("已取消收藏");else{const se={vod_id:v.value.id,vod_name:v.value.name||h.value?.vod_name||"",vod_pic:v.value.pic||h.value?.vod_pic||"",vod_year:v.value.year||h.value?.vod_year||"",vod_area:v.value.area||h.value?.vod_area||"",vod_type:v.value.type||h.value?.vod_type||"",type_name:v.value.type_name||h.value?.type_name||"",vod_remarks:v.value.remarks||h.value?.vod_remarks||"",vod_content:v.value.content||h.value?.vod_content||"",vod_actor:v.value.actor||h.value?.vod_actor||"",vod_director:v.value.director||h.value?.vod_director||"",vod_play_from:h.value?.vod_play_from||"",vod_play_url:h.value?.vod_play_url||"",module:x.value.key,api_url:x.value.api,site_name:x.value.name,ext:x.value.ext||null};i.addFavorite(se)?gt.success("收藏成功"):gt.warning("该视频已在收藏列表中")}}catch(se){gt.error("操作失败,请稍后重试"),console.error("收藏操作失败:",se)}finally{k.value=!1}}},rn=async()=>{try{if(console.log("🔄 [用户操作] 手动清除推送覆盖状态"),_.value=!1,E.value=!1,sessionStorage.removeItem("hasPushOverride"),!r.nowSite){gt.error("无法恢复:当前没有选择视频源");return}const se=r.nowSite;x.value={name:se.name,api:se.api,key:se.key||se.name,ext:se.ext||null},T.value=x.value,console.log("🔄 [推送覆盖] 使用原始站源重新加载:",x.value),c.value=!0,d.value="";const re=`detail_${x.value.key}_${t.params.id}`;console.log("🔄 [推送覆盖] 清除缓存:",re),Ka.cache.delete(re);const ne=await Ka.getVideoDetails(x.value.key,t.params.id,x.value.api,!0,x.value.ext);if(ne)ne.module=x.value.key,ne.api_url=x.value.api,ne.site_name=x.value.name,h.value=ne,y.value=0,S.value=0,console.log("✅ [推送覆盖] 原始数据恢复成功:",ne),gt.success("已恢复原始数据");else throw new Error("无法获取原始视频数据")}catch(se){console.error("❌ [推送覆盖] 清除推送覆盖状态失败:",se),gt.error(`恢复原始数据失败: ${se.message}`)}finally{c.value=!1}},vt=()=>{const se=t.query.sourceRouteName,re=t.query.sourceRouteParams,ne=t.query.sourceRouteQuery,J=t.query.fromSearch;if(console.log("goBack 调用,来源信息:",{sourceRouteName:se,fromSearch:J,sourceRouteParams:re,sourceRouteQuery:ne}),se)try{const de=re?JSON.parse(re):{},ke=ne?JSON.parse(ne):{};if(console.log("返回来源页面:",se,{params:de,query:ke,fromSearch:J}),se==="Video")if(J==="true"){console.log("从Video页面搜索返回,恢复搜索状态");const Te=s.getPageState("search");Te&&Te.keyword&&!s.isStateExpired("search")&&(console.log("发现保存的搜索状态,将恢复搜索结果:",Te),ke._restoreSearch="true")}else{if(console.log("从Video页面分类返回,恢复分类状态"),ke.activeKey&&(ke._returnToActiveKey=ke.activeKey,console.log("设置返回分类:",ke.activeKey)),p.value)try{const rt=JSON.parse(p.value);ke.folderState=p.value}catch(rt){console.error("解析保存的目录状态失败:",rt)}s.getPageState("video")&&!s.isStateExpired("video")&&console.log("发现保存的Video页面状态,将恢复状态而非重新加载")}else if(se==="SearchAggregation")console.log("从聚合搜索页面返回,添加返回标识"),ke._returnFromDetail="true",ke._t&&(delete ke._t,console.log("清除时间戳参数 _t,避免触发重新搜索"));else if(se==="Home"){const Te=s.getPageState("search");Te&&Te.keyword&&!s.isStateExpired("search")&&(console.log("发现保存的搜索状态,将恢复搜索结果"),ke._restoreSearch="true")}if(console.log("🔄 [DEBUG] ========== VideoDetail goBack 即将跳转 =========="),console.log("🔄 [DEBUG] sourceRouteName:",se),console.log("🔄 [DEBUG] params:",JSON.stringify(de,null,2)),console.log("🔄 [DEBUG] query参数完整内容:",JSON.stringify(ke,null,2)),console.log("🔄 [DEBUG] folderState参数值:",ke.folderState),console.log("🔄 [DEBUG] folderState参数类型:",typeof ke.folderState),console.log("🔄 [DEBUG] initialFolderState.value:",p.value),console.log("🔄 [DEBUG] _returnToActiveKey参数值:",ke._returnToActiveKey),ke.folderState)try{const Te=JSON.parse(ke.folderState);console.log("🔄 [DEBUG] 解析后的folderState:",JSON.stringify(Te,null,2)),console.log("🔄 [DEBUG] folderState.isActive:",Te.isActive),console.log("🔄 [DEBUG] folderState.breadcrumbs:",Te.breadcrumbs),console.log("🔄 [DEBUG] folderState.currentBreadcrumb:",Te.currentBreadcrumb)}catch(Te){console.error("🔄 [ERROR] folderState解析失败:",Te)}else console.log("🔄 [DEBUG] 没有folderState参数传递");const we={name:se,params:de,query:ke};console.log("🔄 [DEBUG] router.push完整参数:",JSON.stringify(we,null,2)),n.push(we),console.log("🔄 [DEBUG] ========== VideoDetail goBack 跳转完成 ==========")}catch(de){console.error("解析来源页面信息失败:",de),n.back()}else console.log("没有来源信息,使用默认返回方式"),n.back()},Ve=se=>{if(se.target.src.includes("default-poster.svg"))return;if(w.value++,w.value===1&&v.value?.sourcePic&&h.value?.vod_pic&&se.target.src===h.value.vod_pic){se.target.src=v.value.sourcePic;return}const re="/apps/drplayer/";se.target.src=`${re}default-poster.svg`,se.target.style.objectFit="contain",se.target.style.backgroundColor="#f7f8fa"},Oe=()=>{const se=Ie.value;se&&!se.includes("default-poster.svg")&&(Re.value=[se],Ge.value=[{src:se,name:h.value?.vod_name||v.value?.name||"未知标题"}],setTimeout(()=>{const re=document.querySelector(".viewer");re&&re.$viewer&&re.$viewer.show()},100))},Ce=(se,re)=>{try{console.log("开始恢复历史记录位置:",{historyRoute:se,historyEpisode:re});const ne=_e.value,J=ne.find(de=>de.name===se);if(J){console.log("找到历史线路:",J.name);const de=ne.indexOf(J);y.value=de,dn(()=>{const ke=ge.value,we=ke.find(Te=>Te.name===re);if(we){console.log("找到历史选集:",we.name);const Te=ke.indexOf(we);S.value=Te,console.log("历史记录位置恢复成功:",{routeIndex:de,episodeIndex:Te})}else console.warn("未找到历史选集:",re),ke.length>0&&(S.value=0)})}else console.warn("未找到历史线路:",se),ne.length>0&&(y.value=0,dn(()=>{ge.value.length>0&&(S.value=0)}))}catch(ne){console.error("恢复历史记录位置失败:",ne)}},We=()=>{g.value=!g.value},$e=se=>{y.value=se,S.value=0},dt=()=>{D.value=!1},Qe=()=>{oe.value=!1,ee.value=!1,ae.value=null,Y.value=null},Le=se=>{console.log("切换到章节:",se),An(se)},ht=()=>{if(S.value{if(S.value>0){const se=S.value-1;console.log("切换到上一章:",se),An(se)}},Ut=se=>{console.log("选择章节:",se),An(se)},Lt=se=>{console.log("切换播放器类型:",se),ve.value=se,Fe(se)},Xt=se=>{console.log("切换到下一集:",se),se>=0&&se{if(console.log("从播放器选择剧集:",se),typeof se=="number"){const re=se;re>=0&&rene.name===se.name&&ne.url===se.url);re!==-1?(console.log("通过对象查找到选集索引:",re),An(re)):(console.warn("未找到选集:",se),gt.warning("选集切换失败:未找到匹配的选集"))}else console.warn("无效的选集参数:",se),gt.warning("选集切换失败:参数格式错误")},rr=se=>{console.log("阅读器设置变更:",se)},Xr=se=>{console.log("画质切换事件:",se),se&&se.url?(P.value=se.url,console.log("画质切换完成,新URL:",se.url)):console.warn("画质切换数据无效:",se)},Gt=async se=>{if(console.log("解析器变更事件:",se),!se||!H.value){console.warn("解析器或解析数据无效");return}U.value=se,localStorage.setItem("selectedParser",JSON.stringify(se));try{const re=se.parser||se,ne={...re,type:re.type===1?"json":re.type===0?"sniffer":re.type};ne.type==="json"&&!ne.urlPath&&(ne.urlPath="url"),console.log("🎬 [开始解析] 使用选定的解析器直接解析真实数据"),console.log("🎬 [解析参数]",{parser:ne,parseData:H.value}),await sn(ne,H.value)}catch(re){console.error("解析失败:",re),gt.error("解析失败,请稍后重试")}},Yt=async()=>{try{await l.loadParsers();const se=l.parsers.filter(re=>re.enabled);return K.value=se,console.log("获取到可用解析器:",se),se}catch(se){return console.error("获取解析器列表失败:",se),K.value=[],[]}},sn=async(se,re)=>{if(!se||!re)throw new Error("解析器或数据无效");console.log("🎬🎬🎬 [真正解析开始] 这是真正的解析,不是测试!"),console.log("🎬 [真正解析] 开始执行解析:",{parser:se.name,data:re,dataType:typeof re,hasJxFlag:re&&typeof re=="object"&&re.jx===1,dataUrl:re&&typeof re=="object"?re.url:re,isTestData:re&&typeof re=="object"&&re.url==="https://example.com/test.mp4"});const ne={...se,type:se.type==="0"?"sniffer":se.type==="1"?"json":se.type};console.log("🔧 [类型转换] 原始类型:",se.type,"转换后类型:",ne.type);const J=Xle.validateParserConfig(ne);if(!J.valid){const de="解析器配置无效: "+J.errors.join(", ");throw console.error(de),gt.error(de),new Error(de)}try{let de;if(ne.type==="json")console.log("🎬 [真正解析] 调用JSON解析器,传递数据:",re),de=await Xle.parseWithJsonParser(ne,re);else if(ne.type==="sniffer"){console.log("🎬 [真正解析] 调用代理嗅探接口,传递数据:",re);const{sniffVideoWithConfig:ke}=await pc(async()=>{const{sniffVideoWithConfig:ot}=await Promise.resolve().then(()=>H5t);return{sniffVideoWithConfig:ot}},void 0);let we;if(re&&typeof re=="object"?we=re.url||re.play_url||re:we=re,!we||typeof we!="string")throw new Error("无效的嗅探目标URL");const Te=ne.url+encodeURIComponent(we);console.log("🔍 [嗅探解析] 解析器URL:",ne.url),console.log("🔍 [嗅探解析] 被解析URL:",we),console.log("🔍 [嗅探解析] 完整解析地址:",Te);const rt=await ke(Te);if(rt.success&&rt.data&&rt.data.length>0)de={success:!0,url:rt.data[0].url,headers:{Referer:Te,"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},qualities:[],message:"嗅探解析成功"};else throw new Error("嗅探未找到可播放的视频链接")}else throw new Error(`不支持的解析器类型: ${ne.type}`);if(de&&de.success)P.value=de.url,M.value=de.headers||{},de.qualities&&de.qualities.length>0?($.value=de.qualities,L.value=!0,B.value=de.qualities[0].name):($.value=[],L.value=!1,B.value=""),D.value=!0,gt.success(`解析成功,开始播放: ${Ke.value}`),console.log("解析完成:",de);else throw new Error(de?.message||"解析失败")}catch(de){throw console.error("解析执行失败:",de),de}},An=async se=>{S.value=se;const re=ge.value[se]?.url,ne=_e.value[y.value]?.name;if(!re){console.log("选集URL为空,无法播放"),gt.error("选集URL为空,无法播放");return}try{if(console.log("开始解析选集播放地址:",{episodeUrl:re,routeName:ne,isPushMode:E.value,currentActiveSite:T.value?.key,originalSite:x.value?.key}),re.startsWith("push://")){console.log("🚀🚀🚀 选集URL本身为push://协议,直接处理推送逻辑:",re),await un(re,ne);return}gt.info("正在解析播放地址...");const J={play:re,flag:ne,apiUrl:T.value.api,extend:T.value.ext},de=await Ka.parseEpisodePlayUrl(T.value.key,J);if(console.log("选集播放解析结果:",de),de.url&&de.url.startsWith("push://")){console.log("🚀🚀🚀 T4播放API返回push://协议,开始处理推送逻辑:",de.url),await un(de.url,de.flag);return}if(de.playType==="direct")if(de.url&&de.url.startsWith("novel://")){console.log("检测到小说内容:",de.url);try{const ke=de.url.replace("novel://",""),we=JSON.parse(ke);console.log("解析小说内容成功:",we),ae.value={title:we.title||Ke.value,content:we.content||"",chapterIndex:se,totalChapters:ge.value.length},D.value=!1,ee.value=!1,oe.value=!0,gt.success(`开始阅读: ${we.title||Ke.value}`)}catch(ke){console.error("解析小说内容失败:",ke),gt.error("解析小说内容失败")}}else if(de.url&&de.url.startsWith("pics://")){console.log("检测到漫画内容:",de.url);try{const we=de.url.replace("pics://","").split("&&").filter(Te=>Te.trim());console.log("解析漫画内容成功:",we),Y.value={title:Ke.value,images:we,chapterIndex:se,totalChapters:ge.value.length},D.value=!1,oe.value=!1,ee.value=!0,gt.success(`开始看漫画: ${Ke.value}`)}catch(ke){console.error("解析漫画内容失败:",ke),gt.error("解析漫画内容失败")}}else console.log("启动内置播放器播放直链视频:",de.url),console.log("T4解析结果headers:",de.headers),console.log("T4解析结果画质信息:",de.qualities,de.hasMultipleQualities),P.value=de.url,M.value=de.headers||{},$.value=de.qualities||[],L.value=de.hasMultipleQualities||!1,de.qualities&&de.qualities.length>0?B.value=de.qualities[0].name||"":B.value="",ae.value=null,Y.value=null,oe.value=!1,ee.value=!1,D.value=!0,gt.success(`开始播放: ${Ke.value}`);else if(de.playType==="sniff")if(console.log("需要嗅探播放:",de),!OT())P.value="",M.value={},$.value=[],L.value=!1,B.value="",ae.value=null,oe.value=!1,ie.value={title:"嗅探功能未启用",message:"该视频需要嗅探才能播放,请先在设置中配置嗅探器接口。",type:"sniff"},Q.value=!0;else{const ke=await Xn(de.data)}else if(de.playType==="parse"){console.log("需要解析播放:",de),j.value=!0,H.value=de.data;const ke=await Yt();if(ke.length===0)ie.value={title:"播放提示",message:"该视频需要解析才能播放,但未配置可用的解析器。请前往解析器页面配置解析器。",type:"parse"},Q.value=!0,j.value=!1,H.value=null;else{let we=null;try{const Te=localStorage.getItem("selectedParser");if(Te)try{const rt=JSON.parse(Te);we=ke.find(ot=>ot.id===rt.id)}catch{console.warn("JSON解析失败,尝试作为解析器ID处理:",Te),we=ke.find(ot=>ot.id===Te),console.log("defaultParser:",we),we&&localStorage.setItem("selectedParser",JSON.stringify(we))}}catch(Te){console.warn("获取保存的解析器失败:",Te),localStorage.removeItem("selectedParser")}we||(we=ke[0]),U.value=we,P.value="",M.value={},$.value=[],L.value=!1,B.value="",ae.value=null,oe.value=!1,ee.value=!1,D.value=!0,gt.info("检测到需要解析的视频,请在播放器中选择解析器")}}else console.log("使用原始播放方式:",re),P.value="",M.value={},$.value=[],L.value=!1,B.value="",ae.value=null,oe.value=!1,D.value=!0,gt.success(`开始播放: ${Ke.value}`)}catch(J){console.error("解析选集播放地址失败:",J),gt.error("解析播放地址失败,请稍后重试"),console.log("回退到原始播放方式:",re),P.value="",M.value={},$.value=[],L.value=!1,B.value="",ae.value=null,oe.value=!1,D.value=!0,gt.warning(`播放可能不稳定: ${Ke.value}`)}if(h.value&&ge.value[se]){const J={id:v.value.id,name:v.value.name||h.value.vod_name||"",pic:v.value.pic||h.value.vod_pic||"",year:v.value.year||h.value.vod_year||"",area:v.value.area||h.value.vod_area||"",type:v.value.type||h.value.vod_type||"",type_name:v.value.type_name||h.value.type_name||"",remarks:v.value.remarks||h.value.vod_remarks||"",api_info:{module:x.value.key,api_url:x.value.api,site_name:x.value.name,ext:x.value.ext||null}},de={name:_e.value[y.value]?.name||"",index:y.value},ke={name:ge.value[se].name,index:se,url:ge.value[se].url};console.log("=== 添加历史记录调试 ==="),console.log("currentSiteInfo.value.ext:",x.value.ext),console.log("videoInfo.api_info.ext:",J.api_info.ext),console.log("=== 调试结束 ==="),a.addToHistory(J,de,ke)}},un=async(se,re)=>{try{console.log("🚀🚀🚀 开始处理push://协议:",se),gt.info("正在处理推送链接...");const ne=se.replace("push://","").trim();console.log("提取的推送内容:",ne),E.value=!0,_.value=!0,console.log("🚀 [推送操作] 已设置推送覆盖标记:",{hasPushOverride:_.value,isPushMode:E.value,timestamp:new Date().toLocaleTimeString()});const J=Qo.getAllSites().find(rt=>rt.key==="push_agent");if(!J)throw new Error("未找到push_agent源,请检查源配置");console.log("找到push_agent源:",J),T.value=J,console.log("调用push_agent详情接口,参数:",{module:J.key,videoId:ne,apiUrl:J.api,extend:J.ext});const de=await Ka.getVideoDetails(J.key,ne,J.api,!1,J.ext);if(console.log("push_agent详情接口返回结果:",de),!de||!de.vod_play_from||!de.vod_play_url)throw new Error("push_agent源返回的数据格式不正确,缺少播放信息");h.value.vod_play_from=de.vod_play_from,h.value.vod_play_url=de.vod_play_url;const ke=[],we={vod_content:"剧情简介",vod_id:"视频ID",vod_pic:"封面图片",vod_name:"视频名称",vod_remarks:"备注信息",vod_actor:"演员",vod_director:"导演",vod_year:"年份",vod_area:"地区",vod_lang:"语言",vod_class:"分类"};Object.keys(we).forEach(rt=>{de[rt]!==void 0&&de[rt]!==null&&de[rt]!==""&&(h.value[rt]=de[rt],ke.push(we[rt]))}),y.value=0,S.value=0,console.log("推送数据更新完成,新的播放信息:",{vod_play_from:h.value.vod_play_from,vod_play_url:h.value.vod_play_url,updatedFields:ke});const Te=ke.length>0?`推送成功: ${re||"未知来源"} (已更新: ${ke.join("、")})`:`推送成功: ${re||"未知来源"}`;gt.success(Te)}catch(ne){console.error("处理push://协议失败:",ne),gt.error(`推送失败: ${ne.message}`),E.value=!1,T.value=x.value}},Xn=async se=>{let re=null;try{if(!OT())throw new Error("嗅探功能未启用,请在设置中配置嗅探器");q.value=!0,te.value=[],re=gt.info({content:"正在全力嗅探中,请稍等...",duration:0}),console.log("开始嗅探视频链接:",se);let ne;typeof se=="object"&&se.parse===1?(ne=se,console.log("使用T4解析数据进行嗅探:",ne)):(ne=typeof se=="string"?se:se.toString(),console.log("使用普通URL进行嗅探:",ne));const J=await K3e(ne,{mode:"0",is_pc:"0"});if(console.log("嗅探结果:",J),J.success&&J.data){let de,ke;if(Array.isArray(J.data)){if(J.data.length===0)throw new Error("嗅探失败,未找到有效的视频链接");de=J.data,ke=J.data.length,te.value=J.data}else if(J.data.url)de=[J.data],ke=1,te.value=de;else throw new Error("嗅探结果格式无效");re.close();const we=de[0];if(we&&we.url)return console.log("使用嗅探到的第一个链接:",we.url),P.value=we.url,ae.value=null,Y.value=null,oe.value=!1,ee.value=!1,D.value=!0,gt.success(`嗅探成功,开始播放: ${Ke.value}`),!0;throw new Error("嗅探到的链接无效")}else throw new Error(J.message||"嗅探失败,未找到有效的视频链接")}catch(ne){return console.error("嗅探失败:",ne),re&&re.close(),gt.error(`嗅探失败: ${ne.message}`),!1}finally{q.value=!1}},Cr=async()=>{const se=v.value.id,re=x.value.api;if(se&&re){const ne=a.getHistoryByVideo(se,re);if(ne){console.log("发现历史记录,播放历史位置:",ne);const J=_e.value,de=J.find(ke=>ke.name===ne.current_route_name);if(de){const ke=J.indexOf(de);y.value=ke,await dn();const we=ge.value,Te=we.find(rt=>rt.name===ne.current_episode_name);if(Te){const rt=we.indexOf(Te);await An(rt)}else console.warn("未找到历史选集,播放第一个选集"),await $t()}else console.warn("未找到历史线路,播放第一个选集"),await $t()}else console.log("无历史记录,播放第一个选集"),await $t()}else await $t()},ro=()=>{console.log("开始智能查找第一个m3u8选集...");for(let se=0;se<_e.value.length;se++){const re=_e.value[se];console.log(`检查线路 ${se}: ${re.name}`);for(let ne=0;ne{const se=ro();se?(console.log(`智能播放m3u8选集: ${se.route} - ${se.episode}`),y.value=se.routeIndex,await dn(),await An(se.episodeIndex)):_e.value.length>0&&(y.value=0,await dn(),ge.value.length>0&&await An(0))},bn=async()=>{if(Be.value)try{await navigator.clipboard.writeText(Be.value),gt.success("链接已复制到剪贴板")}catch{gt.error("复制失败")}},kr=()=>{W.value=!0},ar=()=>{W.value=!1},Ur=async se=>{try{console.log("确认下载任务:",se);const re={title:se.novelDetail.vod_name,id:se.novelDetail.vod_id,url:Be.value||"",author:se.novelDetail.vod_actor||"未知",description:se.novelDetail.vod_content||"",cover:se.novelDetail.vod_pic||""},ne=se.selectedChapters.map(ke=>{const we=se.chapters[ke];return{name:we.name||`第${ke+1}章`,url:we.url||we.vod_play_url||"",index:ke}}),J={...se.settings,module:T.value?.key||"",apiUrl:T.value?.api||"",extend:T.value?.ext||"",flag:_e.value[y.value]?.name||""};console.log("下载设置:",J),console.log("当前站点信息:",T.value);const de=bce.createTask(re,ne,J);await bce.startTask(de.id),gt.success(`下载任务已创建:${se.novelDetail.vod_name}`),ar()}catch(re){console.error("创建下载任务失败:",re),gt.error("创建下载任务失败:"+re.message)}};return It(()=>[t.params.id,t.query],()=>{if(t.params.id){if(console.log("🔍 [params监听器] 检测到路由变化,重新加载视频详情:",{id:t.params.id,fromCollection:t.query.fromCollection,name:t.query.name,folderState:t.query.folderState,timestamp:new Date().toLocaleTimeString()}),t.query.folderState&&!p.value)try{p.value=t.query.folderState}catch(se){console.error("VideoDetail保存folderState失败:",se)}Ht()}},{immediate:!0,deep:!0}),It(()=>t.fullPath,(se,re)=>{console.log("🔍 [fullPath监听器] 路由fullPath变化监听器触发:",{newPath:se,oldPath:re,hasVideoInPath:se?.includes("/video/"),hasId:!!t.params.id,pathChanged:se!==re,hasPushOverride:_.value,timestamp:new Date().toLocaleTimeString()}),se&&se.includes("/video/")&&se!==re&&t.params.id&&console.log("ℹ️ [fullPath监听器] 检测到路径变化,但推送覆盖处理已交给onActivated:",{oldPath:re,newPath:se,id:t.params.id,hasPushOverride:_.value})},{immediate:!0}),It(()=>r.nowSite,(se,re)=>{se&&re&&se.api!==re.api&&t.params.id&&(console.log("检测到站点切换,重新加载视频详情:",{oldSite:re?.name,newSite:se?.name}),Ht())},{deep:!0}),fn(async()=>{console.log("VideoDetail组件已挂载");try{await Yt()}catch(se){console.error("初始化解析器失败:",se)}}),GU(()=>{console.log("🔄 [组件激活] VideoDetail组件激活:",{hasPushOverride:_.value,isPushMode:E.value,routeId:t.params.id,timestamp:new Date().toLocaleTimeString()}),_.value&&t.params.id?(console.log("✅ [组件激活] 检测到推送覆盖,强制重新加载数据"),Ht()):console.log("ℹ️ [组件激活] 未检测到推送覆盖标记,跳过强制重新加载:",{hasPushOverride:_.value,hasRouteId:!!t.params.id,routeId:t.params.id,condition1:_.value,condition2:!!t.params.id,bothConditions:_.value&&t.params.id})}),Yr(()=>{console.log("VideoDetail组件卸载"),console.log("🔄 [状态清理] 组件卸载,保留推送覆盖状态以便用户返回时恢复")}),(se,re)=>{const ne=Ee("a-button"),J=Ee("a-spin"),de=Ee("a-result"),ke=Ee("a-tag"),we=Ee("a-card"),Te=i3("viewer");return z(),X("div",rOt,[I("div",iOt,[O(ne,{type:"text",onClick:vt,class:"back-btn"},{icon:ce(()=>[O(tt(Il))]),default:ce(()=>[re[3]||(re[3]=He(" 返回 ",-1))]),_:1}),I("div",oOt,[v.value.name?(z(),X("span",aOt,[I("span",lOt,"视频详情 - "+je(v.value.name),1),x.value.name?(z(),X("span",uOt," ("+je(x.value.name)+" - ID: "+je(v.value.id)+") ",1)):Ae("",!0)])):(z(),X("span",sOt,"视频详情"))]),v.value.id?(z(),X("div",cOt,[_.value?(z(),Ze(ne,{key:0,type:"outline",status:"warning",onClick:rn,class:"clear-push-btn"},{icon:ce(()=>[O(tt(sc))]),default:ce(()=>[re[4]||(re[4]=He(" 恢复原始数据 ",-1))]),_:1})):Ae("",!0),O(ne,{type:ft.value?"primary":"outline",onClick:Jt,class:"favorite-btn",loading:k.value},{icon:ce(()=>[ft.value?(z(),Ze(tt(oW),{key:0})):(z(),Ze(tt(sA),{key:1}))]),default:ce(()=>[He(" "+je(ft.value?"取消收藏":"收藏"),1)]),_:1},8,["type","loading"])])):Ae("",!0)]),c.value?(z(),X("div",dOt,[O(J,{size:40}),re[5]||(re[5]=I("div",{class:"loading-text"},"正在加载详情...",-1))])):d.value?(z(),X("div",fOt,[O(de,{status:"error",title:d.value},null,8,["title"]),O(ne,{type:"primary",onClick:Ht},{default:ce(()=>[...re[6]||(re[6]=[He("重新加载",-1)])]),_:1})])):h.value?(z(),X("div",hOt,[D.value&&(Ye.value||j.value)&&ve.value==="default"?(z(),Ze(dU,{key:0,"video-url":Ye.value,"episode-name":Ke.value,poster:h.value?.vod_pic,visible:D.value,"player-type":ve.value,episodes:ge.value,"current-episode-index":at.value,headers:M.value,qualities:$.value,"has-multiple-qualities":L.value,"initial-quality":B.value,"needs-parsing":j.value,"parse-data":H.value,onClose:dt,onPlayerChange:Lt,onParserChange:Gt,onNextEpisode:Xt,onEpisodeSelected:Dn,onQualityChange:Xr},null,8,["video-url","episode-name","poster","visible","player-type","episodes","current-episode-index","headers","qualities","has-multiple-qualities","initial-quality","needs-parsing","parse-data"])):Ae("",!0),D.value&&(Ye.value||j.value)&&ve.value==="artplayer"?(z(),Ze(D4e,{key:1,"video-url":Ye.value,"episode-name":Ke.value,poster:h.value?.vod_pic,visible:D.value,"player-type":ve.value,episodes:ge.value,"current-episode-index":at.value,"auto-next":!0,headers:M.value,qualities:$.value,"has-multiple-qualities":L.value,"initial-quality":B.value,"needs-parsing":j.value,"parse-data":H.value,onClose:dt,onPlayerChange:Lt,onParserChange:Gt,onNextEpisode:Xt,onEpisodeSelected:Dn,onQualityChange:Xr},null,8,["video-url","episode-name","poster","visible","player-type","episodes","current-episode-index","headers","qualities","has-multiple-qualities","initial-quality","needs-parsing","parse-data"])):Ae("",!0),oe.value&&ae.value?(z(),Ze(yMt,{key:2,"book-detail":h.value,"chapter-content":ae.value,chapters:ge.value,"current-chapter-index":S.value,visible:oe.value,onClose:Qe,onNextChapter:ht,onPrevChapter:Vt,onChapterSelected:Ut,onChapterChange:Le},null,8,["book-detail","chapter-content","chapters","current-chapter-index","visible"])):Ae("",!0),ee.value&&Y.value?(z(),Ze(A9t,{key:3,"comic-detail":h.value,"comic-title":h.value?.vod_name,"chapter-name":Ke.value,chapters:ge.value,"current-chapter-index":S.value,"comic-content":Y.value,visible:ee.value,onClose:Qe,onNextChapter:ht,onPrevChapter:Vt,onChapterSelected:Ut,onSettingsChange:rr},null,8,["comic-detail","comic-title","chapter-name","chapters","current-chapter-index","comic-content","visible"])):Ae("",!0),O(we,{class:fe(["video-info-card",{"collapsed-when-playing":D.value||oe.value}])},{default:ce(()=>[I("div",pOt,[I("div",{class:"video-poster",onClick:Oe},[I("img",{src:Ie.value,alt:h.value.vod_name,onError:Ve},null,40,vOt),I("div",mOt,[O(tt(x0),{class:"view-icon"}),re[7]||(re[7]=I("span",null,"查看大图",-1))])]),I("div",gOt,[I("h1",yOt,je(h.value.vod_name),1),I("div",bOt,[h.value.type_name?(z(),Ze(ke,{key:0,color:"blue"},{default:ce(()=>[He(je(h.value.type_name),1)]),_:1})):Ae("",!0),h.value.vod_year?(z(),Ze(ke,{key:1,color:"green"},{default:ce(()=>[He(je(h.value.vod_year),1)]),_:1})):Ae("",!0),h.value.vod_area?(z(),Ze(ke,{key:2,color:"orange"},{default:ce(()=>[He(je(h.value.vod_area),1)]),_:1})):Ae("",!0)]),I("div",_Ot,[h.value.vod_director?(z(),X("div",SOt,[re[8]||(re[8]=I("span",{class:"label"},"导演:",-1)),I("span",kOt,je(h.value.vod_director),1)])):Ae("",!0),h.value.vod_actor?(z(),X("div",wOt,[re[9]||(re[9]=I("span",{class:"label"},"演员:",-1)),I("span",xOt,je(h.value.vod_actor),1)])):Ae("",!0),h.value.vod_remarks?(z(),X("div",COt,[re[10]||(re[10]=I("span",{class:"label"},"备注:",-1)),I("span",EOt,je(h.value.vod_remarks),1)])):Ae("",!0)])]),I("div",TOt,[Be.value?(z(),X("div",AOt,[O(ne,{type:"primary",size:"large",onClick:Cr,class:"play-btn"},{icon:ce(()=>[Rt.value.icon==="icon-play-arrow"?(z(),Ze(tt(ha),{key:0})):Rt.value.icon==="icon-book"?(z(),Ze(tt(c_),{key:1})):Rt.value.icon==="icon-image"?(z(),Ze(tt(cA),{key:2})):Rt.value.icon==="icon-sound"?(z(),Ze(tt(Uve),{key:3})):Ae("",!0)]),default:ce(()=>[He(" "+je(Rt.value.text),1)]),_:1}),O(ne,{onClick:bn,class:"copy-btn",size:"large"},{icon:ce(()=>[O(tt(rA))]),default:ce(()=>[re[11]||(re[11]=He(" 复制链接 ",-1))]),_:1})])):Ae("",!0),Ct.value?(z(),X("div",IOt,[O(ne,{onClick:kr,class:"download-btn",type:"primary",status:"success",size:"large"},{icon:ce(()=>[O(tt(Mh))]),default:ce(()=>[re[12]||(re[12]=He(" 下载小说 ",-1))]),_:1})])):Ae("",!0)])]),h.value.vod_content?(z(),X("div",LOt,[re[13]||(re[13]=I("h3",null,"剧情简介",-1)),I("div",{class:fe(["description-content",{expanded:g.value}])},je(h.value.vod_content),3),h.value.vod_content.length>200?(z(),Ze(ne,{key:0,type:"text",onClick:We,class:"expand-btn"},{default:ce(()=>[He(je(g.value?"收起":"展开"),1)]),_:1})):Ae("",!0)])):Ae("",!0)]),_:1},8,["class"]),O(yRt,{"video-detail":h.value,"current-route":y.value,"current-episode":S.value,onRouteChange:$e,onEpisodeChange:An},null,8,["video-detail","current-route","current-episode"])])):Ae("",!0),Ci((z(),X("div",DOt,[(z(!0),X(Pt,null,cn(Ge.value,(rt,ot)=>(z(),X("img",{key:ot,src:rt.src,alt:rt.name,"data-source":rt.src,title:rt.name},null,8,POt))),128))])),[[Te,nt.value],[Ko,!1]]),O(np,{visible:Q.value,title:ie.value.title,width:400,onClose:re[1]||(re[1]=rt=>Q.value=!1)},{footer:ce(()=>[I("div",HOt,[O(ne,{type:"primary",onClick:re[0]||(re[0]=rt=>Q.value=!1),disabled:q.value},{default:ce(()=>[...re[16]||(re[16]=[He(" 我知道了 ",-1)])]),_:1},8,["disabled"])])]),default:ce(()=>[I("div",ROt,[I("div",MOt,je(ie.value.message),1),te.value.length>0?(z(),X("div",OOt,[re[14]||(re[14]=I("div",{class:"results-title"},"嗅探到的视频链接:",-1)),I("div",$Ot,[(z(!0),X(Pt,null,cn(te.value.slice(0,3),(rt,ot)=>(z(),X("div",{key:ot,class:"result-item"},[I("div",BOt,je(ot+1),1),I("div",NOt,[I("div",FOt,je(rt.url),1),rt.type?(z(),X("div",jOt,je(rt.type),1)):Ae("",!0)])]))),128)),te.value.length>3?(z(),X("div",VOt," 还有 "+je(te.value.length-3)+" 个链接... ",1)):Ae("",!0)])])):Ae("",!0),q.value?Ae("",!0):(z(),X("div",zOt,[I("div",UOt,[O(tt(x0))]),re[15]||(re[15]=I("div",{class:"hint-text"}," 敬请期待后续版本支持! ",-1))]))])]),_:1},8,["visible","title"]),O(tOt,{visible:W.value,"novel-detail":h.value,chapters:ge.value,"source-name":x.value?.name||"",onClose:re[2]||(re[2]=rt=>W.value=!1),onConfirm:Ur},null,8,["visible","novel-detail","chapters","source-name"])])}}},GOt=sr(WOt,[["__scopeId","data-v-9b86bd37"]]);var dj={exports:{}},_ce;function KOt(){return _ce||(_ce=1,(function(e,t){(function(n,r){e.exports=r()})(window,(function(){return(function(n){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(a,s,l){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:l})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var c in a)i.d(l,c,(function(d){return a[d]}).bind(null,c));return l},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=20)})([function(n,r,i){var a=i(9),s=i.n(a),l=(function(){function c(){}return c.e=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","error",p),c.ENABLE_ERROR&&(console.error?console.error(p):console.warn?console.warn(p):console.log(p))},c.i=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","info",p),c.ENABLE_INFO&&(console.info?console.info(p):console.log(p))},c.w=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","warn",p),c.ENABLE_WARN&&(console.warn?console.warn(p):console.log(p))},c.d=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","debug",p),c.ENABLE_DEBUG&&(console.debug?console.debug(p):console.log(p))},c.v=function(d,h){d&&!c.FORCE_GLOBAL_TAG||(d=c.GLOBAL_TAG);var p="[".concat(d,"] > ").concat(h);c.ENABLE_CALLBACK&&c.emitter.emit("log","verbose",p),c.ENABLE_VERBOSE&&console.log(p)},c})();l.GLOBAL_TAG="mpegts.js",l.FORCE_GLOBAL_TAG=!1,l.ENABLE_ERROR=!0,l.ENABLE_INFO=!0,l.ENABLE_WARN=!0,l.ENABLE_DEBUG=!0,l.ENABLE_VERBOSE=!0,l.ENABLE_CALLBACK=!1,l.emitter=new s.a,r.a=l},function(n,r,i){var a;(function(s){s.IO_ERROR="io_error",s.DEMUX_ERROR="demux_error",s.INIT_SEGMENT="init_segment",s.MEDIA_SEGMENT="media_segment",s.LOADING_COMPLETE="loading_complete",s.RECOVERED_EARLY_EOF="recovered_early_eof",s.MEDIA_INFO="media_info",s.METADATA_ARRIVED="metadata_arrived",s.SCRIPTDATA_ARRIVED="scriptdata_arrived",s.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",s.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",s.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",s.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",s.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",s.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",s.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",s.STATISTICS_INFO="statistics_info",s.RECOMMEND_SEEKPOINT="recommend_seekpoint"})(a||(a={})),r.a=a},function(n,r,i){i.d(r,"c",(function(){return s})),i.d(r,"b",(function(){return l})),i.d(r,"a",(function(){return c}));var a=i(3),s={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},l={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},c=(function(){function d(h){this._type=h||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return d.prototype.destroy=function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null},d.prototype.isWorking=function(){return this._status===s.kConnecting||this._status===s.kBuffering},Object.defineProperty(d.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"needStashBuffer",{get:function(){return this._needStash},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onContentLengthKnown",{get:function(){return this._onContentLengthKnown},set:function(h){this._onContentLengthKnown=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onURLRedirect",{get:function(){return this._onURLRedirect},set:function(h){this._onURLRedirect=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(h){this._onDataArrival=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onError",{get:function(){return this._onError},set:function(h){this._onError=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onComplete",{get:function(){return this._onComplete},set:function(h){this._onComplete=h},enumerable:!1,configurable:!0}),d.prototype.open=function(h,p){throw new a.c("Unimplemented abstract function!")},d.prototype.abort=function(){throw new a.c("Unimplemented abstract function!")},d})()},function(n,r,i){i.d(r,"d",(function(){return l})),i.d(r,"a",(function(){return c})),i.d(r,"b",(function(){return d})),i.d(r,"c",(function(){return h}));var a,s=(a=function(p,v){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(g[S]=y[S])})(p,v)},function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function g(){this.constructor=p}a(p,v),p.prototype=v===null?Object.create(v):(g.prototype=v.prototype,new g)}),l=(function(){function p(v){this._message=v}return Object.defineProperty(p.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),p.prototype.toString=function(){return this.name+": "+this.message},p})(),c=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),v})(l),d=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),v})(l),h=(function(p){function v(g){return p.call(this,g)||this}return s(v,p),Object.defineProperty(v.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),v})(l)},function(n,r,i){var a;(function(s){s.ERROR="error",s.LOADING_COMPLETE="loading_complete",s.RECOVERED_EARLY_EOF="recovered_early_eof",s.MEDIA_INFO="media_info",s.METADATA_ARRIVED="metadata_arrived",s.SCRIPTDATA_ARRIVED="scriptdata_arrived",s.TIMED_ID3_METADATA_ARRIVED="timed_id3_metadata_arrived",s.SYNCHRONOUS_KLV_METADATA_ARRIVED="synchronous_klv_metadata_arrived",s.ASYNCHRONOUS_KLV_METADATA_ARRIVED="asynchronous_klv_metadata_arrived",s.SMPTE2038_METADATA_ARRIVED="smpte2038_metadata_arrived",s.SCTE35_METADATA_ARRIVED="scte35_metadata_arrived",s.PES_PRIVATE_DATA_DESCRIPTOR="pes_private_data_descriptor",s.PES_PRIVATE_DATA_ARRIVED="pes_private_data_arrived",s.STATISTICS_INFO="statistics_info",s.DESTROYING="destroying"})(a||(a={})),r.a=a},function(n,r,i){var a={};(function(){var s=self.navigator.userAgent.toLowerCase(),l=/(edge)\/([\w.]+)/.exec(s)||/(opr)[\/]([\w.]+)/.exec(s)||/(chrome)[ \/]([\w.]+)/.exec(s)||/(iemobile)[\/]([\w.]+)/.exec(s)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+)/.exec(s)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(s)||/(msie) ([\w.]+)/.exec(s)||s.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(s)||s.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(s)||[],c=/(ipad)/.exec(s)||/(ipod)/.exec(s)||/(windows phone)/.exec(s)||/(iphone)/.exec(s)||/(kindle)/.exec(s)||/(android)/.exec(s)||/(windows)/.exec(s)||/(mac)/.exec(s)||/(linux)/.exec(s)||/(cros)/.exec(s)||[],d={browser:l[5]||l[3]||l[1]||"",version:l[2]||l[4]||"0",majorVersion:l[4]||l[2]||"0",platform:c[0]||""},h={};if(d.browser){h[d.browser]=!0;var p=d.majorVersion.split(".");h.version={major:parseInt(d.majorVersion,10),string:d.version},p.length>1&&(h.version.minor=parseInt(p[1],10)),p.length>2&&(h.version.build=parseInt(p[2],10))}d.platform&&(h[d.platform]=!0),(h.chrome||h.opr||h.safari)&&(h.webkit=!0),(h.rv||h.iemobile)&&(h.rv&&delete h.rv,d.browser="msie",h.msie=!0),h.edge&&(delete h.edge,d.browser="msedge",h.msedge=!0),h.opr&&(d.browser="opera",h.opera=!0),h.safari&&h.android&&(d.browser="android",h.android=!0);for(var v in h.name=d.browser,h.platform=d.platform,a)a.hasOwnProperty(v)&&delete a[v];Object.assign(a,h)})(),r.a=a},function(n,r,i){r.a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},function(n,r,i){var a;(function(s){s.ERROR="error",s.SOURCE_OPEN="source_open",s.UPDATE_END="update_end",s.BUFFER_FULL="buffer_full",s.START_STREAMING="start_streaming",s.END_STREAMING="end_streaming"})(a||(a={})),r.a=a},function(n,r,i){var a=i(9),s=i.n(a),l=i(0),c=(function(){function d(){}return Object.defineProperty(d,"forceGlobalTag",{get:function(){return l.a.FORCE_GLOBAL_TAG},set:function(h){l.a.FORCE_GLOBAL_TAG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"globalTag",{get:function(){return l.a.GLOBAL_TAG},set:function(h){l.a.GLOBAL_TAG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableAll",{get:function(){return l.a.ENABLE_VERBOSE&&l.a.ENABLE_DEBUG&&l.a.ENABLE_INFO&&l.a.ENABLE_WARN&&l.a.ENABLE_ERROR},set:function(h){l.a.ENABLE_VERBOSE=h,l.a.ENABLE_DEBUG=h,l.a.ENABLE_INFO=h,l.a.ENABLE_WARN=h,l.a.ENABLE_ERROR=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableDebug",{get:function(){return l.a.ENABLE_DEBUG},set:function(h){l.a.ENABLE_DEBUG=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableVerbose",{get:function(){return l.a.ENABLE_VERBOSE},set:function(h){l.a.ENABLE_VERBOSE=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableInfo",{get:function(){return l.a.ENABLE_INFO},set:function(h){l.a.ENABLE_INFO=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableWarn",{get:function(){return l.a.ENABLE_WARN},set:function(h){l.a.ENABLE_WARN=h,d._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(d,"enableError",{get:function(){return l.a.ENABLE_ERROR},set:function(h){l.a.ENABLE_ERROR=h,d._notifyChange()},enumerable:!1,configurable:!0}),d.getConfig=function(){return{globalTag:l.a.GLOBAL_TAG,forceGlobalTag:l.a.FORCE_GLOBAL_TAG,enableVerbose:l.a.ENABLE_VERBOSE,enableDebug:l.a.ENABLE_DEBUG,enableInfo:l.a.ENABLE_INFO,enableWarn:l.a.ENABLE_WARN,enableError:l.a.ENABLE_ERROR,enableCallback:l.a.ENABLE_CALLBACK}},d.applyConfig=function(h){l.a.GLOBAL_TAG=h.globalTag,l.a.FORCE_GLOBAL_TAG=h.forceGlobalTag,l.a.ENABLE_VERBOSE=h.enableVerbose,l.a.ENABLE_DEBUG=h.enableDebug,l.a.ENABLE_INFO=h.enableInfo,l.a.ENABLE_WARN=h.enableWarn,l.a.ENABLE_ERROR=h.enableError,l.a.ENABLE_CALLBACK=h.enableCallback},d._notifyChange=function(){var h=d.emitter;if(h.listenerCount("change")>0){var p=d.getConfig();h.emit("change",p)}},d.registerListener=function(h){d.emitter.addListener("change",h)},d.removeListener=function(h){d.emitter.removeListener("change",h)},d.addLogListener=function(h){l.a.emitter.addListener("log",h),l.a.emitter.listenerCount("log")>0&&(l.a.ENABLE_CALLBACK=!0,d._notifyChange())},d.removeLogListener=function(h){l.a.emitter.removeListener("log",h),l.a.emitter.listenerCount("log")===0&&(l.a.ENABLE_CALLBACK=!1,d._notifyChange())},d})();c.emitter=new s.a,r.a=c},function(n,r,i){var a,s=typeof Reflect=="object"?Reflect:null,l=s&&typeof s.apply=="function"?s.apply:function(_,T,D){return Function.prototype.apply.call(_,T,D)};a=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var c=Number.isNaN||function(_){return _!=_};function d(){d.init.call(this)}n.exports=d,n.exports.once=function(_,T){return new Promise((function(D,P){function M(L){_.removeListener(T,$),P(L)}function $(){typeof _.removeListener=="function"&&_.removeListener("error",M),D([].slice.call(arguments))}E(_,T,$,{once:!0}),T!=="error"&&(function(L,B,j){typeof L.on=="function"&&E(L,"error",B,j)})(_,M,{once:!0})}))},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var h=10;function p(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}function v(_){return _._maxListeners===void 0?d.defaultMaxListeners:_._maxListeners}function g(_,T,D,P){var M,$,L,B;if(p(D),($=_._events)===void 0?($=_._events=Object.create(null),_._eventsCount=0):($.newListener!==void 0&&(_.emit("newListener",T,D.listener?D.listener:D),$=_._events),L=$[T]),L===void 0)L=$[T]=D,++_._eventsCount;else if(typeof L=="function"?L=$[T]=P?[D,L]:[L,D]:P?L.unshift(D):L.push(D),(M=v(_))>0&&L.length>M&&!L.warned){L.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=_,j.type=T,j.count=L.length,B=j,console&&console.warn&&console.warn(B)}return _}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(_,T,D){var P={fired:!1,wrapFn:void 0,target:_,type:T,listener:D},M=y.bind(P);return M.listener=D,P.wrapFn=M,M}function k(_,T,D){var P=_._events;if(P===void 0)return[];var M=P[T];return M===void 0?[]:typeof M=="function"?D?[M.listener||M]:[M]:D?(function($){for(var L=new Array($.length),B=0;B0&&($=T[0]),$ instanceof Error)throw $;var L=new Error("Unhandled error."+($?" ("+$.message+")":""));throw L.context=$,L}var B=M[_];if(B===void 0)return!1;if(typeof B=="function")l(B,this,T);else{var j=B.length,H=x(B,j);for(D=0;D=0;$--)if(D[$]===T||D[$].listener===T){L=D[$].listener,M=$;break}if(M<0)return this;M===0?D.shift():(function(B,j){for(;j+1=0;P--)this.removeListener(_,T[P]);return this},d.prototype.listeners=function(_){return k(this,_,!0)},d.prototype.rawListeners=function(_){return k(this,_,!1)},d.listenerCount=function(_,T){return typeof _.listenerCount=="function"?_.listenerCount(T):w.call(_,T)},d.prototype.listenerCount=w,d.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},function(n,r,i){i.d(r,"b",(function(){return l})),i.d(r,"a",(function(){return c}));var a=i(2),s=i(6),l={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},c={NETWORK_EXCEPTION:a.b.EXCEPTION,NETWORK_STATUS_CODE_INVALID:a.b.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:a.b.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:a.b.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:s.a.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:s.a.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:s.a.CODEC_UNSUPPORTED}},function(n,r,i){i.d(r,"d",(function(){return a})),i.d(r,"b",(function(){return s})),i.d(r,"a",(function(){return l})),i.d(r,"c",(function(){return c}));var a=function(d,h,p,v,g){this.dts=d,this.pts=h,this.duration=p,this.originalDts=v,this.isSyncPoint=g,this.fileposition=null},s=(function(){function d(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return d.prototype.appendSyncPoint=function(h){h.isSyncPoint=!0,this.syncPoints.push(h)},d})(),l=(function(){function d(){this._list=[]}return d.prototype.clear=function(){this._list=[]},d.prototype.appendArray=function(h){var p=this._list;h.length!==0&&(p.length>0&&h[0].originalDts=p[y].dts&&hp[g].lastSample.originalDts&&h=p[g].lastSample.originalDts&&(g===p.length-1||g0&&(y=this._searchNearestSegmentBefore(v.originalBeginDts)+1),this._lastAppendLocation=y,this._list.splice(y,0,v)},d.prototype.getLastSegmentBefore=function(h){var p=this._searchNearestSegmentBefore(h);return p>=0?this._list[p]:null},d.prototype.getLastSampleBefore=function(h){var p=this.getLastSegmentBefore(h);return p!=null?p.lastSample:null},d.prototype.getLastSyncPointBefore=function(h){for(var p=this._searchNearestSegmentBefore(h),v=this._list[p].syncPoints;v.length===0&&p>0;)p--,v=this._list[p].syncPoints;return v.length>0?v[v.length-1]:null},d})()},function(n,r,i){var a=(function(){function s(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return s.prototype.isComplete=function(){var l=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,c=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&l&&c},s.prototype.isSeekable=function(){return this.hasKeyframesIndex===!0},s.prototype.getNearestKeyframe=function(l){if(this.keyframesIndex==null)return null;var c=this.keyframesIndex,d=this._search(c.times,l);return{index:d,milliseconds:c.times[d],fileposition:c.filepositions[d]}},s.prototype._search=function(l,c){var d=0,h=l.length-1,p=0,v=0,g=h;for(c=l[p]&&c=128){re.push(String.fromCharCode(65535&ke)),J+=2;continue}}else if(ne[J]<240){if(h(ne,J,2)&&(ke=(15&ne[J])<<12|(63&ne[J+1])<<6|63&ne[J+2])>=2048&&(63488&ke)!=55296){re.push(String.fromCharCode(65535&ke)),J+=3;continue}}else if(ne[J]<248){var ke;if(h(ne,J,3)&&(ke=(7&ne[J])<<18|(63&ne[J+1])<<12|(63&ne[J+2])<<6|63&ne[J+3])>65536&&ke<1114112){ke-=65536,re.push(String.fromCharCode(ke>>>10|55296)),re.push(String.fromCharCode(1023&ke|56320)),J+=4;continue}}}re.push("�"),++J}return re.join("")},g=i(3),y=(p=new ArrayBuffer(2),new DataView(p).setInt16(0,256,!0),new Int16Array(p)[0]===256),S=(function(){function se(){}return se.parseScriptData=function(re,ne,J){var de={};try{var ke=se.parseValue(re,ne,J),we=se.parseValue(re,ne+ke.size,J-ke.size);de[ke.data]=we.data}catch(Te){l.a.e("AMF",Te.toString())}return de},se.parseObject=function(re,ne,J){if(J<3)throw new g.a("Data not enough when parse ScriptDataObject");var de=se.parseString(re,ne,J),ke=se.parseValue(re,ne+de.size,J-de.size),we=ke.objectEnd;return{data:{name:de.data,value:ke.data},size:de.size+ke.size,objectEnd:we}},se.parseVariable=function(re,ne,J){return se.parseObject(re,ne,J)},se.parseString=function(re,ne,J){if(J<2)throw new g.a("Data not enough when parse String");var de=new DataView(re,ne,J).getUint16(0,!y);return{data:de>0?v(new Uint8Array(re,ne+2,de)):"",size:2+de}},se.parseLongString=function(re,ne,J){if(J<4)throw new g.a("Data not enough when parse LongString");var de=new DataView(re,ne,J).getUint32(0,!y);return{data:de>0?v(new Uint8Array(re,ne+4,de)):"",size:4+de}},se.parseDate=function(re,ne,J){if(J<10)throw new g.a("Data size invalid when parse Date");var de=new DataView(re,ne,J),ke=de.getFloat64(0,!y),we=de.getInt16(8,!y);return{data:new Date(ke+=60*we*1e3),size:10}},se.parseValue=function(re,ne,J){if(J<1)throw new g.a("Data not enough when parse Value");var de,ke=new DataView(re,ne,J),we=1,Te=ke.getUint8(0),rt=!1;try{switch(Te){case 0:de=ke.getFloat64(1,!y),we+=8;break;case 1:de=!!ke.getUint8(1),we+=1;break;case 2:var ot=se.parseString(re,ne+1,J-1);de=ot.data,we+=ot.size;break;case 3:de={};var yt=0;for((16777215&ke.getUint32(J-4,!y))==9&&(yt=3);we32)throw new g.b("ExpGolomb: readBits() bits exceeded max 32bits!");if(re<=this._current_word_bits_left){var ne=this._current_word>>>32-re;return this._current_word<<=re,this._current_word_bits_left-=re,ne}var J=this._current_word_bits_left?this._current_word:0;J>>>=32-this._current_word_bits_left;var de=re-this._current_word_bits_left;this._fillCurrentWord();var ke=Math.min(de,this._current_word_bits_left),we=this._current_word>>>32-ke;return this._current_word<<=ke,this._current_word_bits_left-=ke,J=J<>>re)!=0)return this._current_word<<=re,this._current_word_bits_left-=re,re;return this._fillCurrentWord(),re+this._skipLeadingZero()},se.prototype.readUEG=function(){var re=this._skipLeadingZero();return this.readBits(re+1)-1},se.prototype.readSEG=function(){var re=this.readUEG();return 1&re?re+1>>>1:-1*(re>>>1)},se})(),w=(function(){function se(){}return se._ebsp2rbsp=function(re){for(var ne=re,J=ne.byteLength,de=new Uint8Array(J),ke=0,we=0;we=2&&ne[we]===3&&ne[we-1]===0&&ne[we-2]===0||(de[ke]=ne[we],ke++);return new Uint8Array(de.buffer,0,ke)},se.parseSPS=function(re){for(var ne=re.subarray(1,4),J="avc1.",de=0;de<3;de++){var ke=ne[de].toString(16);ke.length<2&&(ke="0"+ke),J+=ke}var we=se._ebsp2rbsp(re),Te=new k(we);Te.readByte();var rt=Te.readByte();Te.readByte();var ot=Te.readByte();Te.readUEG();var yt=se.getProfileString(rt),De=se.getLevelString(ot),st=1,ut=420,Mt=8,Qt=8;if((rt===100||rt===110||rt===122||rt===244||rt===44||rt===83||rt===86||rt===118||rt===128||rt===138||rt===144)&&((st=Te.readUEG())===3&&Te.readBits(1),st<=3&&(ut=[0,420,422,444][st]),Mt=Te.readUEG()+8,Qt=Te.readUEG()+8,Te.readBits(1),Te.readBool()))for(var Kt=st!==3?8:12,pn=0;pn0&&Cn<16?(vr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][Cn-1],hr=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][Cn-1]):Cn===255&&(vr=Te.readByte()<<8|Te.readByte(),hr=Te.readByte()<<8|Te.readByte())}if(Te.readBool()&&Te.readBool(),Te.readBool()&&(Te.readBits(4),Te.readBool()&&Te.readBits(24)),Te.readBool()&&(Te.readUEG(),Te.readUEG()),Te.readBool()){var Zr=Te.readBits(32),Es=Te.readBits(32);bi=Te.readBool(),qr=(ui=Es)/(La=2*Zr)}}var Fo=1;vr===1&&hr===1||(Fo=vr/hr);var qo=0,ci=0;st===0?(qo=1,ci=2-Yn):(qo=st===3?1:2,ci=(st===1?2:1)*(2-Yn));var tu=16*(tr+1),Ll=16*(_n+1)*(2-Yn);tu-=(fr+ir)*qo,Ll-=(Ln+or)*ci;var jo=Math.ceil(tu*Fo);return Te.destroy(),Te=null,{codec_mimetype:J,profile_idc:rt,level_idc:ot,profile_string:yt,level_string:De,chroma_format_idc:st,bit_depth:Mt,bit_depth_luma:Mt,bit_depth_chroma:Qt,ref_frames:dr,chroma_format:ut,chroma_format_string:se.getChromaFormatString(ut),frame_rate:{fixed:bi,fps:qr,fps_den:La,fps_num:ui},sar_ratio:{width:vr,height:hr},codec_size:{width:tu,height:Ll},present_size:{width:jo,height:Ll}}},se._skipScalingList=function(re,ne){for(var J=8,de=8,ke=0;ke=2&&ne[we]===3&&ne[we-1]===0&&ne[we-2]===0||(de[ke]=ne[we],ke++);return new Uint8Array(de.buffer,0,ke)},se.parseVPS=function(re){var ne=se._ebsp2rbsp(re),J=new k(ne);return J.readByte(),J.readByte(),J.readBits(4),J.readBits(2),J.readBits(6),{num_temporal_layers:J.readBits(3)+1,temporal_id_nested:J.readBool()}},se.parseSPS=function(re){var ne=se._ebsp2rbsp(re),J=new k(ne);J.readByte(),J.readByte();for(var de=0,ke=0,we=0,Te=0,rt=(J.readBits(4),J.readBits(3)),ot=(J.readBool(),J.readBits(2)),yt=J.readBool(),De=J.readBits(5),st=J.readByte(),ut=J.readByte(),Mt=J.readByte(),Qt=J.readByte(),Kt=J.readByte(),pn=J.readByte(),mn=J.readByte(),ln=J.readByte(),dr=J.readByte(),tr=J.readByte(),_n=J.readByte(),Yn=[],fr=[],ir=0;ir0)for(ir=rt;ir<8;ir++)J.readBits(2);for(ir=0;ir1&&J.readSEG(),ir=0;ir0&&sd<=16?(nu=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][sd-1],mc=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][sd-1]):sd===255&&(nu=J.readBits(16),mc=J.readBits(16))}if(J.readBool()&&J.readBool(),J.readBool()&&(J.readBits(3),J.readBool(),J.readBool()&&(J.readByte(),J.readByte(),J.readByte())),J.readBool()&&(J.readUEG(),J.readUEG()),J.readBool(),J.readBool(),J.readBool(),J.readBool()&&(J.readUEG(),J.readUEG(),J.readUEG(),J.readUEG()),J.readBool()&&(Ns=J.readBits(32),$f=J.readBits(32),J.readBool()&&J.readUEG(),J.readBool())){var jd=!1,Bu=!1,nl=!1;for(jd=J.readBool(),Bu=J.readBool(),(jd||Bu)&&((nl=J.readBool())&&(J.readByte(),J.readBits(5),J.readBool(),J.readBits(5)),J.readBits(4),J.readBits(4),nl&&J.readBits(4),J.readBits(5),J.readBits(5),J.readBits(5)),ir=0;ir<=rt;ir++){var Ts=J.readBool();ip=Ts;var op=!0,gc=1;Ts||(op=J.readBool());var yc=!1;if(op?J.readUEG():yc=J.readBool(),yc||(gc=J.readUEG()+1),jd){for(ci=0;ci>3),we=(4&re[J])!=0,Te=(2&re[J])!=0;re[J],J+=1,we&&(J+=1);var rt=Number.POSITIVE_INFINITY;if(Te){rt=0;for(var ot=0;;ot++){var yt=re[J++];if(rt|=(127&yt)<<7*ot,(128&yt)==0)break}}console.log(ke),ke===1?ne=M(M({},se.parseSeuqneceHeader(re.subarray(J,J+rt))),{sequence_header_data:re.subarray(de,J+rt)}):(ke==3&&ne||ke==6&&ne)&&(ne=se.parseOBUFrameHeader(re.subarray(J,J+rt),0,0,ne)),J+=rt}return ne},se.parseSeuqneceHeader=function(re){var ne=new k(re),J=ne.readBits(3),de=(ne.readBool(),ne.readBool()),ke=!0,we=0,Te=1,rt=void 0,ot=[];if(de)ot.push({operating_point_idc:0,level:ne.readBits(5),tier:0});else{if(ne.readBool()){var yt=ne.readBits(32),De=ne.readBits(32),st=ne.readBool();if(st){for(var ut=0;ne.readBits(1)===0;)ut+=1;ut>=32||(1<7?ne.readBits(1):0;ot.push({operating_point_idc:pn,level:mn,tier:ln}),Mt&&ne.readBool()&&ne.readBits(4)}}var dr=ot[0],tr=dr.level,_n=dr.tier,Yn=ne.readBits(4),fr=ne.readBits(4),ir=ne.readBits(Yn+1)+1,Ln=ne.readBits(fr+1)+1,or=!1;de||(or=ne.readBool()),or&&(ne.readBits(4),ne.readBits(4)),ne.readBool(),ne.readBool(),ne.readBool();var vr=!1,hr=2,qr=2,bi=0;de||(ne.readBool(),ne.readBool(),ne.readBool(),ne.readBool(),(vr=ne.readBool())&&(ne.readBool(),ne.readBool()),(hr=ne.readBool()?2:ne.readBits(1))?qr=ne.readBool()?2:ne.readBits(1):qr=2,vr?bi=ne.readBits(3)+1:bi=0);var ui=ne.readBool(),La=(ne.readBool(),ne.readBool(),ne.readBool()),Cn=8;J===2&&La?Cn=ne.readBool()?12:10:Cn=La?10:8;var Zr=!1;J!==1&&(Zr=ne.readBool()),ne.readBool()&&(ne.readBits(8),ne.readBits(8),ne.readBits(8));var Es=1,Fo=1;return Zr?(ne.readBits(1),Es=1,Fo=1):(ne.readBits(1),J==0?(Es=1,Fo=1):J==1?(Es=0,Fo=0):Cn==12?ne.readBits(1)&&ne.readBits(1):(Es=1,Fo=0),Es&&Fo&&ne.readBits(2),ne.readBits(1)),ne.readBool(),ne.destroy(),ne=null,{codec_mimetype:"av01.".concat(J,".").concat(se.getLevelString(tr,_n),".").concat(Cn.toString(10).padStart(2,"0")),level:tr,tier:_n,level_string:se.getLevelString(tr,_n),profile_idc:J,profile_string:"".concat(J),bit_depth:Cn,ref_frames:1,chroma_format:se.getChromaFormat(Zr,Es,Fo),chroma_format_string:se.getChromaFormatString(Zr,Es,Fo),sequence_header:{frame_id_numbers_present_flag:or,additional_frame_id_length_minus_1:void 0,delta_frame_id_length_minus_2:void 0,reduced_still_picture_header:de,decoder_model_info_present_flag:!1,operating_points:ot,buffer_removal_time_length_minus_1:rt,equal_picture_interval:ke,seq_force_screen_content_tools:hr,seq_force_integer_mv:qr,enable_order_hint:vr,order_hint_bits:bi,enable_superres:ui,frame_width_bit:Yn+1,frame_height_bit:fr+1,max_frame_width:ir,max_frame_height:Ln},keyframe:void 0,frame_rate:{fixed:ke,fps:we/Te,fps_den:Te,fps_num:we}}},se.parseOBUFrameHeader=function(re,ne,J,de){var ke=de.sequence_header,we=new k(re),Te=(ke.max_frame_width,ke.max_frame_height,0);ke.frame_id_numbers_present_flag&&(Te=ke.additional_frame_id_length_minus_1+ke.delta_frame_id_length_minus_2+3);var rt=0,ot=!0,yt=!0,De=!1;if(!ke.reduced_still_picture_header){if(we.readBool())return de;ot=(rt=we.readBits(2))===2||rt===0,(yt=we.readBool())&&ke.decoder_model_info_present_flag&&ke.equal_picture_interval,yt&&we.readBool(),De=!!(rt===3||rt===0&&yt)||we.readBool()}de.keyframe=ot,we.readBool();var st=ke.seq_force_screen_content_tools;ke.seq_force_screen_content_tools===2&&(st=we.readBits(1)),st&&(ke.seq_force_integer_mv,ke.seq_force_integer_mv==2&&we.readBits(1)),ke.frame_id_numbers_present_flag&&we.readBits(Te);var ut=!1;if(ut=rt==3||!ke.reduced_still_picture_header&&we.readBool(),we.readBits(ke.order_hint_bits),ot||De||we.readBits(3),ke.decoder_model_info_present_flag&&we.readBool()){for(var Mt=0;Mt<=ke.operating_points_cnt_minus_1;Mt++)if(ke.operating_points[Mt].decoder_model_present_for_this_op[Mt]){var Qt=ke.operating_points[Mt].operating_point_idc;(Qt===0||Qt>>ne&1&&Qt>>J+8&1)&&we.readBits(ke.buffer_removal_time_length_minus_1+1)}}var Kt=255;if(rt===3||rt==0&&yt||(Kt=we.readBits(8)),(ot||Kt!==255)&&De&&ke.enable_order_hint)for(var pn=0;pn<8;pn++)we.readBits(ke.order_hint_bits);if(ot){var mn=se.frameSizeAndRenderSize(we,ut,ke);de.codec_size={width:mn.FrameWidth,height:mn.FrameHeight},de.present_size={width:mn.RenderWidth,height:mn.RenderHeight},de.sar_ratio={width:mn.RenderWidth/mn.FrameWidth,height:mn.RenderHeight/mn.FrameHeight}}return we.destroy(),we=null,de},se.frameSizeAndRenderSize=function(re,ne,J){var de=J.max_frame_width,ke=J.max_frame_height;ne&&(de=re.readBits(J.frame_width_bit)+1,ke=re.readBits(J.frame_height_bit)+1);var we=!1;J.enable_superres&&(we=re.readBool());var Te=8;we&&(Te=re.readBits(3)+9);var rt=de;de=Math.floor((8*rt+Te/2)/Te);var ot=rt,yt=ke;if(re.readBool()){var De=re.readBits(16)+1,st=re.readBits(16)+1;ot=re.readBits(De)+1,yt=re.readBits(st)+1}return{UpscaledWidth:rt,FrameWidth:de,FrameHeight:ke,RenderWidth:ot,RenderHeight:yt}},se.getLevelString=function(re,ne){return"".concat(re.toString(10).padStart(2,"0")).concat(ne===0?"M":"H")},se.getChromaFormat=function(re,ne,J){return re?0:ne===0&&J===0?3:ne===1&&J===0?2:ne===1&&J===1?1:Number.NaN},se.getChromaFormatString=function(re,ne,J){return re?"4:0:0":ne===0&&J===0?"4:4:4":ne===1&&J===0?"4:2:2":ne===1&&J===1?"4:2:0":"Unknown"},se})(),L,B=(function(){function se(re,ne){this.TAG="FLVDemuxer",this._config=ne,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=re.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=re.hasAudioTrack,this._hasVideo=re.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new d.a,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var J=new ArrayBuffer(2);return new DataView(J).setInt16(0,256,!0),new Int16Array(J)[0]===256})()}return se.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},se.probe=function(re){var ne=new Uint8Array(re);if(ne.byteLength<9)return{needMoreData:!0};var J={match:!1};if(ne[0]!==70||ne[1]!==76||ne[2]!==86||ne[3]!==1)return J;var de,ke,we=(4&ne[4])>>>2!=0,Te=(1&ne[4])!=0,rt=(de=ne)[ke=5]<<24|de[ke+1]<<16|de[ke+2]<<8|de[ke+3];return rt<9?J:{match:!0,consumed:rt,dataOffset:rt,hasAudioTrack:we,hasVideoTrack:Te}},se.prototype.bindDataSource=function(re){return re.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(se.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(re){this._onTrackMetadata=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(re){this._onMediaInfo=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(re){this._onMetaDataArrived=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(re){this._onScriptDataArrived=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onError",{get:function(){return this._onError},set:function(re){this._onError=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(re){this._onDataAvailable=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(re){this._timestampBase=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"overridedDuration",{get:function(){return this._duration},set:function(re){this._durationOverrided=!0,this._duration=re,this._mediaInfo.duration=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"overridedHasAudio",{set:function(re){this._hasAudioFlagOverrided=!0,this._hasAudio=re,this._mediaInfo.hasAudio=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"overridedHasVideo",{set:function(re){this._hasVideoFlagOverrided=!0,this._hasVideo=re,this._mediaInfo.hasVideo=re},enumerable:!1,configurable:!0}),se.prototype.resetMediaInfo=function(){this._mediaInfo=new d.a},se.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},se.prototype.parseChunks=function(re,ne){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new g.a("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var J=0,de=this._littleEndian;if(ne===0){if(!(re.byteLength>13))return 0;J=se.probe(re).dataOffset}for(this._firstParse&&(this._firstParse=!1,ne+J!==this._dataOffset&&l.a.w(this.TAG,"First time parsing but chunk byteStart invalid!"),(ke=new DataView(re,J)).getUint32(0,!de)!==0&&l.a.w(this.TAG,"PrevTagSize0 !== 0 !!!"),J+=4);Jre.byteLength)break;var we=ke.getUint8(0),Te=16777215&ke.getUint32(0,!de);if(J+11+Te+4>re.byteLength)break;if(we===8||we===9||we===18){var rt=ke.getUint8(4),ot=ke.getUint8(5),yt=ke.getUint8(6)|ot<<8|rt<<16|ke.getUint8(7)<<24;(16777215&ke.getUint32(7,!de))!==0&&l.a.w(this.TAG,"Meet tag which has StreamID != 0!");var De=J+11;switch(we){case 8:this._parseAudioData(re,De,Te,yt);break;case 9:this._parseVideoData(re,De,Te,yt,ne+J);break;case 18:this._parseScriptData(re,De,Te)}var st=ke.getUint32(11+Te,!de);st!==11+Te&&l.a.w(this.TAG,"Invalid PrevTagSize ".concat(st)),J+=11+Te+4}else l.a.w(this.TAG,"Unsupported tag type ".concat(we,", skipped")),J+=11+Te+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),J},se.prototype._parseScriptData=function(re,ne,J){var de=S.parseScriptData(re,ne,J);if(de.hasOwnProperty("onMetaData")){if(de.onMetaData==null||typeof de.onMetaData!="object")return void l.a.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&l.a.w(this.TAG,"Found another onMetaData tag!"),this._metadata=de;var ke=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},ke)),typeof ke.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=ke.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof ke.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=ke.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof ke.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=ke.audiodatarate),typeof ke.videodatarate=="number"&&(this._mediaInfo.videoDataRate=ke.videodatarate),typeof ke.width=="number"&&(this._mediaInfo.width=ke.width),typeof ke.height=="number"&&(this._mediaInfo.height=ke.height),typeof ke.duration=="number"){if(!this._durationOverrided){var we=Math.floor(ke.duration*this._timescale);this._duration=we,this._mediaInfo.duration=we}}else this._mediaInfo.duration=0;if(typeof ke.framerate=="number"){var Te=Math.floor(1e3*ke.framerate);if(Te>0){var rt=Te/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=rt,this._referenceFrameRate.fps_num=Te,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=rt}}if(typeof ke.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var ot=ke.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(ot),ke.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=ke,l.a.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(de).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},de))},se.prototype._parseKeyframesIndex=function(re){for(var ne=[],J=[],de=1;de>>4;if(we!==9)if(we===2||we===10){var Te=0,rt=(12&ke)>>>2;if(rt>=0&&rt<=4){Te=this._flvSoundRateTable[rt];var ot=1&ke,yt=this._audioMetadata,De=this._audioTrack;if(yt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(yt=this._audioMetadata={}).type="audio",yt.id=De.id,yt.timescale=this._timescale,yt.duration=this._duration,yt.audioSampleRate=Te,yt.channelCount=ot===0?1:2),we===10){var st=this._parseAACAudioData(re,ne+1,J-1);if(st==null)return;if(st.packetType===0){if(yt.config){if(P(st.data.config,yt.config))return;l.a.w(this.TAG,"AudioSpecificConfig has been changed, re-generate initialization segment")}var ut=st.data;yt.audioSampleRate=ut.samplingRate,yt.channelCount=ut.channelCount,yt.codec=ut.codec,yt.originalCodec=ut.originalCodec,yt.config=ut.config,yt.refSampleDuration=1024/yt.audioSampleRate*yt.timescale,l.a.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",yt),(Kt=this._mediaInfo).audioCodec=yt.originalCodec,Kt.audioSampleRate=yt.audioSampleRate,Kt.audioChannelCount=yt.channelCount,Kt.hasVideo?Kt.videoCodec!=null&&(Kt.mimeType='video/x-flv; codecs="'+Kt.videoCodec+","+Kt.audioCodec+'"'):Kt.mimeType='video/x-flv; codecs="'+Kt.audioCodec+'"',Kt.isComplete()&&this._onMediaInfo(Kt)}else if(st.packetType===1){var Mt=this._timestampBase+de,Qt={unit:st.data,length:st.data.byteLength,dts:Mt,pts:Mt};De.samples.push(Qt),De.length+=st.data.length}else l.a.e(this.TAG,"Flv: Unsupported AAC data type ".concat(st.packetType))}else if(we===2){if(!yt.codec){var Kt;if((ut=this._parseMP3AudioData(re,ne+1,J-1,!0))==null)return;yt.audioSampleRate=ut.samplingRate,yt.channelCount=ut.channelCount,yt.codec=ut.codec,yt.originalCodec=ut.originalCodec,yt.refSampleDuration=1152/yt.audioSampleRate*yt.timescale,l.a.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",yt),(Kt=this._mediaInfo).audioCodec=yt.codec,Kt.audioSampleRate=yt.audioSampleRate,Kt.audioChannelCount=yt.channelCount,Kt.audioDataRate=ut.bitRate,Kt.hasVideo?Kt.videoCodec!=null&&(Kt.mimeType='video/x-flv; codecs="'+Kt.videoCodec+","+Kt.audioCodec+'"'):Kt.mimeType='video/x-flv; codecs="'+Kt.audioCodec+'"',Kt.isComplete()&&this._onMediaInfo(Kt)}var pn=this._parseMP3AudioData(re,ne+1,J-1,!1);if(pn==null)return;Mt=this._timestampBase+de;var mn={unit:pn,length:pn.byteLength,dts:Mt,pts:Mt};De.samples.push(mn),De.length+=pn.length}}else this._onError(x.a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+rt)}else this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+we);else{if(J<=5)return void l.a.w(this.TAG,"Flv: Invalid audio packet, missing AudioFourCC in Ehnanced FLV payload!");var ln=15&ke,dr=String.fromCharCode.apply(String,new Uint8Array(re,ne,J).slice(1,5));switch(dr){case"Opus":this._parseOpusAudioPacket(re,ne+5,J-5,de,ln);break;case"fLaC":this._parseFlacAudioPacket(re,ne+5,J-5,de,ln);break;default:this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec: "+dr)}}}},se.prototype._parseAACAudioData=function(re,ne,J){if(!(J<=1)){var de={},ke=new Uint8Array(re,ne,J);return de.packetType=ke[0],ke[0]===0?de.data=this._parseAACAudioSpecificConfig(re,ne+1,J-1):de.data=ke.subarray(1),de}l.a.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},se.prototype._parseAACAudioSpecificConfig=function(re,ne,J){var de,ke,we=new Uint8Array(re,ne,J),Te=null,rt=0,ot=null;if(rt=de=we[0]>>>3,(ke=(7&we[0])<<1|we[1]>>>7)<0||ke>=this._mpegSamplingRates.length)this._onError(x.a.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var yt=this._mpegSamplingRates[ke],De=(120&we[1])>>>3;if(!(De<0||De>=8)){rt===5&&(ot=(7&we[1])<<1|we[2]>>>7,(124&we[2])>>>2);var st=self.navigator.userAgent.toLowerCase();return st.indexOf("firefox")!==-1?ke>=6?(rt=5,Te=new Array(4),ot=ke-3):(rt=2,Te=new Array(2),ot=ke):st.indexOf("android")!==-1?(rt=2,Te=new Array(2),ot=ke):(rt=5,ot=ke,Te=new Array(4),ke>=6?ot=ke-3:De===1&&(rt=2,Te=new Array(2),ot=ke)),Te[0]=rt<<3,Te[0]|=(15&ke)>>>1,Te[1]=(15&ke)<<7,Te[1]|=(15&De)<<3,rt===5&&(Te[1]|=(15&ot)>>>1,Te[2]=(1&ot)<<7,Te[2]|=8,Te[3]=0),{config:Te,samplingRate:yt,channelCount:De,codec:"mp4a.40."+rt,originalCodec:"mp4a.40."+de}}this._onError(x.a.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},se.prototype._parseMP3AudioData=function(re,ne,J,de){if(!(J<4)){this._littleEndian;var ke=new Uint8Array(re,ne,J),we=null;if(de){if(ke[0]!==255)return;var Te=ke[1]>>>3&3,rt=(6&ke[1])>>1,ot=(240&ke[2])>>>4,yt=(12&ke[2])>>>2,De=(ke[3]>>>6&3)!==3?2:1,st=0,ut=0;switch(Te){case 0:st=this._mpegAudioV25SampleRateTable[yt];break;case 2:st=this._mpegAudioV20SampleRateTable[yt];break;case 3:st=this._mpegAudioV10SampleRateTable[yt]}switch(rt){case 1:ot>>16&255,Mt[2]=we.byteLength>>>8&255,Mt[3]=we.byteLength>>>0&255;var Qt={config:Mt,channelCount:st,samplingFrequence:De,sampleSize:ut,codec:"flac",originalCodec:"flac"};if(de.config){if(P(Qt.config,de.config))return;l.a.w(this.TAG,"FlacSequenceHeader has been changed, re-generate initialization segment")}de.audioSampleRate=Qt.samplingFrequence,de.channelCount=Qt.channelCount,de.sampleSize=Qt.sampleSize,de.codec=Qt.codec,de.originalCodec=Qt.originalCodec,de.config=Qt.config,de.refSampleDuration=yt!=null?1e3*yt/Qt.samplingFrequence:null,l.a.v(this.TAG,"Parsed FlacSequenceHeader"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",de);var Kt=this._mediaInfo;Kt.audioCodec=de.originalCodec,Kt.audioSampleRate=de.audioSampleRate,Kt.audioChannelCount=de.channelCount,Kt.hasVideo?Kt.videoCodec!=null&&(Kt.mimeType='video/x-flv; codecs="'+Kt.videoCodec+","+Kt.audioCodec+'"'):Kt.mimeType='video/x-flv; codecs="'+Kt.audioCodec+'"',Kt.isComplete()&&this._onMediaInfo(Kt)},se.prototype._parseFlacAudioData=function(re,ne,J,de){var ke=this._audioTrack,we=new Uint8Array(re,ne,J),Te=this._timestampBase+de,rt={unit:we,length:we.byteLength,dts:Te,pts:Te};ke.samples.push(rt),ke.length+=we.length},se.prototype._parseVideoData=function(re,ne,J,de,ke){if(J<=1)l.a.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(this._hasVideoFlagOverrided!==!0||this._hasVideo!==!1){var we=new Uint8Array(re,ne,J)[0],Te=(112&we)>>>4;if((128&we)!=0){var rt=15&we,ot=String.fromCharCode.apply(String,new Uint8Array(re,ne,J).slice(1,5));if(ot==="hvc1")this._parseEnhancedHEVCVideoPacket(re,ne+5,J-5,de,ke,Te,rt);else{if(ot!=="av01")return void this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(ot));this._parseEnhancedAV1VideoPacket(re,ne+5,J-5,de,ke,Te,rt)}}else{var yt=15&we;if(yt===7)this._parseAVCVideoPacket(re,ne+1,J-1,de,ke,Te);else{if(yt!==12)return void this._onError(x.a.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(yt));this._parseHEVCVideoPacket(re,ne+1,J-1,de,ke,Te)}}}},se.prototype._parseAVCVideoPacket=function(re,ne,J,de,ke,we){if(J<4)l.a.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var Te=this._littleEndian,rt=new DataView(re,ne,J),ot=rt.getUint8(0),yt=(16777215&rt.getUint32(0,!Te))<<8>>8;if(ot===0)this._parseAVCDecoderConfigurationRecord(re,ne+4,J-4);else if(ot===1)this._parseAVCVideoData(re,ne+4,J-4,de,ke,we,yt);else if(ot!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ot))}},se.prototype._parseHEVCVideoPacket=function(re,ne,J,de,ke,we){if(J<4)l.a.w(this.TAG,"Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");else{var Te=this._littleEndian,rt=new DataView(re,ne,J),ot=rt.getUint8(0),yt=(16777215&rt.getUint32(0,!Te))<<8>>8;if(ot===0)this._parseHEVCDecoderConfigurationRecord(re,ne+4,J-4);else if(ot===1)this._parseHEVCVideoData(re,ne+4,J-4,de,ke,we,yt);else if(ot!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(ot))}},se.prototype._parseEnhancedHEVCVideoPacket=function(re,ne,J,de,ke,we,Te){var rt=this._littleEndian,ot=new DataView(re,ne,J);if(Te===0)this._parseHEVCDecoderConfigurationRecord(re,ne,J);else if(Te===1){var yt=(4294967040&ot.getUint32(0,!rt))>>8;this._parseHEVCVideoData(re,ne+3,J-3,de,ke,we,yt)}else if(Te===3)this._parseHEVCVideoData(re,ne,J,de,ke,we,0);else if(Te!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Te))},se.prototype._parseEnhancedAV1VideoPacket=function(re,ne,J,de,ke,we,Te){if(this._littleEndian,Te===0)this._parseAV1CodecConfigurationRecord(re,ne,J);else if(Te===1)this._parseAV1VideoData(re,ne,J,de,ke,we,0);else{if(Te===5)return void this._onError(x.a.FORMAT_ERROR,"Flv: Not Supported MP2T AV1 video packet type ".concat(Te));if(Te!==2)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Te))}},se.prototype._parseAVCDecoderConfigurationRecord=function(re,ne,J){if(J<7)l.a.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var de=this._videoMetadata,ke=this._videoTrack,we=this._littleEndian,Te=new DataView(re,ne,J);if(de){if(de.avcc!==void 0){var rt=new Uint8Array(re,ne,J);if(P(rt,de.avcc))return;l.a.w(this.TAG,"AVCDecoderConfigurationRecord has been changed, re-generate initialization segment")}}else this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(de=this._videoMetadata={}).type="video",de.id=ke.id,de.timescale=this._timescale,de.duration=this._duration;var ot=Te.getUint8(0),yt=Te.getUint8(1);if(Te.getUint8(2),Te.getUint8(3),ot===1&&yt!==0)if(this._naluLengthSize=1+(3&Te.getUint8(4)),this._naluLengthSize===3||this._naluLengthSize===4){var De=31&Te.getUint8(5);if(De!==0){De>1&&l.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(De));for(var st=6,ut=0;ut1&&l.a.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(fr)),st++,ut=0;ut=J){l.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(Mt,", offset = ").concat(st,", dataSize = ").concat(J));break}var Kt=ot.getUint32(st,!rt);if(ut===3&&(Kt>>>=8),Kt>J-ut)return void l.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(Mt,", NaluSize > DataSize!"));var pn=31&ot.getUint8(st+ut);pn===5&&(Qt=!0);var mn=new Uint8Array(re,ne+st,ut+Kt),ln={type:pn,data:mn};yt.push(ln),De+=mn.byteLength,st+=ut+Kt}if(yt.length){var dr=this._videoTrack,tr={units:yt,length:De,isKeyframe:Qt,dts:Mt,cts:Te,pts:Mt+Te};Qt&&(tr.fileposition=ke),dr.samples.push(tr),dr.length+=De}},se.prototype._parseHEVCVideoData=function(re,ne,J,de,ke,we,Te){for(var rt=this._littleEndian,ot=new DataView(re,ne,J),yt=[],De=0,st=0,ut=this._naluLengthSize,Mt=this._timestampBase+de,Qt=we===1;st=J){l.a.w(this.TAG,"Malformed Nalu near timestamp ".concat(Mt,", offset = ").concat(st,", dataSize = ").concat(J));break}var Kt=ot.getUint32(st,!rt);if(ut===3&&(Kt>>>=8),Kt>J-ut)return void l.a.w(this.TAG,"Malformed Nalus near timestamp ".concat(Mt,", NaluSize > DataSize!"));var pn=ot.getUint8(st+ut)>>1&63;pn!==19&&pn!==20&&pn!==21||(Qt=!0);var mn=new Uint8Array(re,ne+st,ut+Kt),ln={type:pn,data:mn};yt.push(ln),De+=mn.byteLength,st+=ut+Kt}if(yt.length){var dr=this._videoTrack,tr={units:yt,length:De,isKeyframe:Qt,dts:Mt,cts:Te,pts:Mt+Te};Qt&&(tr.fileposition=ke),dr.samples.push(tr),dr.length+=De}},se.prototype._parseAV1VideoData=function(re,ne,J,de,ke,we,Te){this._littleEndian;var rt,ot=[],yt=this._timestampBase+de,De=we===1;if(De){var st=this._videoMetadata,ut=$.parseOBUs(new Uint8Array(re,ne,J),st.extra);if(ut==null)return void this._onError(x.a.FORMAT_ERROR,"Flv: Invalid AV1 VideoData");console.log(ut),st.codecWidth=ut.codec_size.width,st.codecHeight=ut.codec_size.height,st.presentWidth=ut.present_size.width,st.presentHeight=ut.present_size.height,st.sarRatio=ut.sar_ratio;var Mt=this._mediaInfo;Mt.width=st.codecWidth,Mt.height=st.codecHeight,Mt.sarNum=st.sarRatio.width,Mt.sarDen=st.sarRatio.height,l.a.v(this.TAG,"Parsed AV1DecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",st)}if(rt=J,ot.push({unitType:0,data:new Uint8Array(re,ne+0,J)}),ot.length){var Qt=this._videoTrack,Kt={units:ot,length:rt,isKeyframe:De,dts:yt,cts:Te,pts:yt+Te};De&&(Kt.fileposition=ke),Qt.samples.push(Kt),Qt.length+=rt}},se})(),j=(function(){function se(){}return se.prototype.destroy=function(){this.onError=null,this.onMediaInfo=null,this.onMetaDataArrived=null,this.onTrackMetadata=null,this.onDataAvailable=null,this.onTimedID3Metadata=null,this.onSynchronousKLVMetadata=null,this.onAsynchronousKLVMetadata=null,this.onSMPTE2038Metadata=null,this.onSCTE35Metadata=null,this.onPESPrivateData=null,this.onPESPrivateDataDescriptor=null},se})(),H=function(){this.program_pmt_pid={}};(function(se){se[se.kMPEG1Audio=3]="kMPEG1Audio",se[se.kMPEG2Audio=4]="kMPEG2Audio",se[se.kPESPrivateData=6]="kPESPrivateData",se[se.kADTSAAC=15]="kADTSAAC",se[se.kLOASAAC=17]="kLOASAAC",se[se.kAC3=129]="kAC3",se[se.kEAC3=135]="kEAC3",se[se.kMetadata=21]="kMetadata",se[se.kSCTE35=134]="kSCTE35",se[se.kH264=27]="kH264",se[se.kH265=36]="kH265"})(L||(L={}));var U,W=function(){this.pid_stream_type={},this.common_pids={h264:void 0,h265:void 0,av1:void 0,adts_aac:void 0,loas_aac:void 0,opus:void 0,ac3:void 0,eac3:void 0,mp3:void 0},this.pes_private_data_pids={},this.timed_id3_pids={},this.synchronous_klv_pids={},this.asynchronous_klv_pids={},this.scte_35_pids={},this.smpte2038_pids={}},K=function(){},oe=function(){},ae=function(){this.slices=[],this.total_length=0,this.expected_length=0,this.file_position=0};(function(se){se[se.kUnspecified=0]="kUnspecified",se[se.kSliceNonIDR=1]="kSliceNonIDR",se[se.kSliceDPA=2]="kSliceDPA",se[se.kSliceDPB=3]="kSliceDPB",se[se.kSliceDPC=4]="kSliceDPC",se[se.kSliceIDR=5]="kSliceIDR",se[se.kSliceSEI=6]="kSliceSEI",se[se.kSliceSPS=7]="kSliceSPS",se[se.kSlicePPS=8]="kSlicePPS",se[se.kSliceAUD=9]="kSliceAUD",se[se.kEndOfSequence=10]="kEndOfSequence",se[se.kEndOfStream=11]="kEndOfStream",se[se.kFiller=12]="kFiller",se[se.kSPSExt=13]="kSPSExt",se[se.kReserved0=14]="kReserved0"})(U||(U={}));var ee,Y,Q=function(){},ie=function(se){var re=se.data.byteLength;this.type=se.type,this.data=new Uint8Array(4+re),new DataView(this.data.buffer).setUint32(0,re),this.data.set(se.data,4)},q=(function(){function se(re){this.TAG="H264AnnexBParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=re,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not find H264 startcode until payload end!")}return se.prototype.findNextStartCodeOffset=function(re){for(var ne=re,J=this.data_;;){if(ne+3>=J.byteLength)return this.eof_flag_=!0,J.byteLength;var de=J[ne+0]<<24|J[ne+1]<<16|J[ne+2]<<8|J[ne+3],ke=J[ne+0]<<16|J[ne+1]<<8|J[ne+2];if(de===1||ke===1)return ne;ne++}},se.prototype.readNextNaluPayload=function(){for(var re=this.data_,ne=null;ne==null&&!this.eof_flag_;){var J=this.current_startcode_offset_,de=31&re[J+=(re[J]<<24|re[J+1]<<16|re[J+2]<<8|re[J+3])===1?4:3],ke=(128&re[J])>>>7,we=this.findNextStartCodeOffset(J);if(this.current_startcode_offset_=we,!(de>=U.kReserved0)&&ke===0){var Te=re.subarray(J,we);(ne=new Q).type=de,ne.data=Te}}return ne},se})(),te=(function(){function se(re,ne,J){var de=8+re.byteLength+1+2+ne.byteLength,ke=!1;re[3]!==66&&re[3]!==77&&re[3]!==88&&(ke=!0,de+=4);var we=this.data=new Uint8Array(de);we[0]=1,we[1]=re[1],we[2]=re[2],we[3]=re[3],we[4]=255,we[5]=225;var Te=re.byteLength;we[6]=Te>>>8,we[7]=255&Te;var rt=8;we.set(re,8),we[rt+=Te]=1;var ot=ne.byteLength;we[rt+1]=ot>>>8,we[rt+2]=255&ot,we.set(ne,rt+3),rt+=3+ot,ke&&(we[rt]=252|J.chroma_format_idc,we[rt+1]=248|J.bit_depth_luma-8,we[rt+2]=248|J.bit_depth_chroma-8,we[rt+3]=0,rt+=4)}return se.prototype.getData=function(){return this.data},se})();(function(se){se[se.kNull=0]="kNull",se[se.kAACMain=1]="kAACMain",se[se.kAAC_LC=2]="kAAC_LC",se[se.kAAC_SSR=3]="kAAC_SSR",se[se.kAAC_LTP=4]="kAAC_LTP",se[se.kAAC_SBR=5]="kAAC_SBR",se[se.kAAC_Scalable=6]="kAAC_Scalable",se[se.kLayer1=32]="kLayer1",se[se.kLayer2=33]="kLayer2",se[se.kLayer3=34]="kLayer3"})(ee||(ee={})),(function(se){se[se.k96000Hz=0]="k96000Hz",se[se.k88200Hz=1]="k88200Hz",se[se.k64000Hz=2]="k64000Hz",se[se.k48000Hz=3]="k48000Hz",se[se.k44100Hz=4]="k44100Hz",se[se.k32000Hz=5]="k32000Hz",se[se.k24000Hz=6]="k24000Hz",se[se.k22050Hz=7]="k22050Hz",se[se.k16000Hz=8]="k16000Hz",se[se.k12000Hz=9]="k12000Hz",se[se.k11025Hz=10]="k11025Hz",se[se.k8000Hz=11]="k8000Hz",se[se.k7350Hz=12]="k7350Hz"})(Y||(Y={}));var Se,Fe,ve=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Re=(Se=function(se,re){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,J){ne.__proto__=J}||function(ne,J){for(var de in J)Object.prototype.hasOwnProperty.call(J,de)&&(ne[de]=J[de])})(se,re)},function(se,re){if(typeof re!="function"&&re!==null)throw new TypeError("Class extends value "+String(re)+" is not a constructor or null");function ne(){this.constructor=se}Se(se,re),se.prototype=re===null?Object.create(re):(ne.prototype=re.prototype,new ne)}),Ge=function(){},nt=(function(se){function re(){return se!==null&&se.apply(this,arguments)||this}return Re(re,se),re})(Ge),Ie=(function(){function se(re){this.TAG="AACADTSParser",this.data_=re,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found ADTS syncword until payload end")}return se.prototype.findNextSyncwordOffset=function(re){for(var ne=re,J=this.data_;;){if(ne+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ne+0]<<8|J[ne+1])>>>4===4095)return ne;ne++}},se.prototype.readNextAACFrame=function(){for(var re=this.data_,ne=null;ne==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,de=(8&re[J+1])>>>3,ke=(6&re[J+1])>>>1,we=1&re[J+1],Te=(192&re[J+2])>>>6,rt=(60&re[J+2])>>>2,ot=(1&re[J+2])<<2|(192&re[J+3])>>>6,yt=(3&re[J+3])<<11|re[J+4]<<3|(224&re[J+5])>>>5;if(re[J+6],J+yt>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var De=we===1?7:9,st=yt-De;J+=De;var ut=this.findNextSyncwordOffset(J+st);if(this.current_syncword_offset_=ut,(de===0||de===1)&&ke===0){var Mt=re.subarray(J,J+st);(ne=new Ge).audio_object_type=Te+1,ne.sampling_freq_index=rt,ne.sampling_frequency=ve[rt],ne.channel_config=ot,ne.data=Mt}}return ne},se.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},se.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},se})(),_e=(function(){function se(re){this.TAG="AACLOASParser",this.data_=re,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found LOAS syncword until payload end")}return se.prototype.findNextSyncwordOffset=function(re){for(var ne=re,J=this.data_;;){if(ne+1>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ne+0]<<3|J[ne+1]>>>5)===695)return ne;ne++}},se.prototype.getLATMValue=function(re){for(var ne=re.readBits(2),J=0,de=0;de<=ne;de++)J<<=8,J|=re.readByte();return J},se.prototype.readNextAACFrame=function(re){for(var ne=this.data_,J=null;J==null&&!this.eof_flag_;){var de=this.current_syncword_offset_,ke=(31&ne[de+1])<<8|ne[de+2];if(de+3+ke>=this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var we=new k(ne.subarray(de+3,de+3+ke)),Te=null;if(we.readBool()){if(re==null){l.a.w(this.TAG,"StreamMuxConfig Missing"),this.current_syncword_offset_=this.findNextSyncwordOffset(de+3+ke),we.destroy();continue}Te=re}else{var rt=we.readBool();if(rt&&we.readBool()){l.a.e(this.TAG,"audioMuxVersionA is Not Supported"),we.destroy();break}if(rt&&this.getLATMValue(we),!we.readBool()){l.a.e(this.TAG,"allStreamsSameTimeFraming zero is Not Supported"),we.destroy();break}if(we.readBits(6)!==0){l.a.e(this.TAG,"more than 2 numSubFrames Not Supported"),we.destroy();break}if(we.readBits(4)!==0){l.a.e(this.TAG,"more than 2 numProgram Not Supported"),we.destroy();break}if(we.readBits(3)!==0){l.a.e(this.TAG,"more than 2 numLayer Not Supported"),we.destroy();break}var ot=rt?this.getLATMValue(we):0,yt=we.readBits(5);ot-=5;var De=we.readBits(4);ot-=4;var st=we.readBits(4);ot-=4,we.readBits(3),(ot-=3)>0&&we.readBits(ot);var ut=we.readBits(3);if(ut!==0){l.a.e(this.TAG,"frameLengthType = ".concat(ut,". Only frameLengthType = 0 Supported")),we.destroy();break}we.readByte();var Mt=we.readBool();if(Mt)if(rt)this.getLATMValue(we);else{for(var Qt=0;;){Qt<<=8;var Kt=we.readBool();if(Qt+=we.readByte(),!Kt)break}console.log(Qt)}we.readBool()&&we.readByte(),(Te=new nt).audio_object_type=yt,Te.sampling_freq_index=De,Te.sampling_frequency=ve[Te.sampling_freq_index],Te.channel_config=st,Te.other_data_present=Mt}for(var pn=0;;){var mn=we.readByte();if(pn+=mn,mn!==255)break}for(var ln=new Uint8Array(pn),dr=0;dr=6?(J=5,re=new Array(4),we=de-3):(J=2,re=new Array(2),we=de):Te.indexOf("android")!==-1?(J=2,re=new Array(2),we=de):(J=5,we=de,re=new Array(4),de>=6?we=de-3:ke===1&&(J=2,re=new Array(2),we=de)),re[0]=J<<3,re[0]|=(15&de)>>>1,re[1]=(15&de)<<7,re[1]|=(15&ke)<<3,J===5&&(re[1]|=(15&we)>>>1,re[2]=(1&we)<<7,re[2]|=8,re[3]=0),this.config=re,this.sampling_rate=ve[de],this.channel_count=ke,this.codec_mimetype="mp4a.40."+J,this.original_codec_mimetype="mp4a.40."+ne},ge=function(){},Be=function(){};(function(se){se[se.kSpliceNull=0]="kSpliceNull",se[se.kSpliceSchedule=4]="kSpliceSchedule",se[se.kSpliceInsert=5]="kSpliceInsert",se[se.kTimeSignal=6]="kTimeSignal",se[se.kBandwidthReservation=7]="kBandwidthReservation",se[se.kPrivateCommand=255]="kPrivateCommand"})(Fe||(Fe={}));var Ye,Ke=function(se){var re=se.readBool();return re?(se.readBits(6),{time_specified_flag:re,pts_time:4*se.readBits(31)+se.readBits(2)}):(se.readBits(7),{time_specified_flag:re})},at=function(se){var re=se.readBool();return se.readBits(6),{auto_return:re,duration:4*se.readBits(31)+se.readBits(2)}},ft=function(se,re){var ne=re.readBits(8);return se?{component_tag:ne}:{component_tag:ne,splice_time:Ke(re)}},ct=function(se){return{component_tag:se.readBits(8),utc_splice_time:se.readBits(32)}},Ct=function(se){var re=se.readBits(32),ne=se.readBool();se.readBits(7);var J={splice_event_id:re,splice_event_cancel_indicator:ne};if(ne)return J;if(J.out_of_network_indicator=se.readBool(),J.program_splice_flag=se.readBool(),J.duration_flag=se.readBool(),se.readBits(5),J.program_splice_flag)J.utc_splice_time=se.readBits(32);else{J.component_count=se.readBits(8),J.components=[];for(var de=0;de=J.byteLength)return this.eof_flag_=!0,J.byteLength;var de=J[ne+0]<<24|J[ne+1]<<16|J[ne+2]<<8|J[ne+3],ke=J[ne+0]<<16|J[ne+1]<<8|J[ne+2];if(de===1||ke===1)return ne;ne++}},se.prototype.readNextNaluPayload=function(){for(var re=this.data_,ne=null;ne==null&&!this.eof_flag_;){var J=this.current_startcode_offset_,de=re[J+=(re[J]<<24|re[J+1]<<16|re[J+2]<<8|re[J+3])===1?4:3]>>1&63,ke=(128&re[J])>>>7,we=this.findNextStartCodeOffset(J);if(this.current_startcode_offset_=we,ke===0){var Te=re.subarray(J,we);(ne=new Ce).type=de,ne.data=Te}}return ne},se})(),dt=(function(){function se(re,ne,J,de){var ke=23+(5+re.byteLength)+(5+ne.byteLength)+(5+J.byteLength),we=this.data=new Uint8Array(ke);we[0]=1,we[1]=(3&de.general_profile_space)<<6|(de.general_tier_flag?1:0)<<5|31&de.general_profile_idc,we[2]=de.general_profile_compatibility_flags_1,we[3]=de.general_profile_compatibility_flags_2,we[4]=de.general_profile_compatibility_flags_3,we[5]=de.general_profile_compatibility_flags_4,we[6]=de.general_constraint_indicator_flags_1,we[7]=de.general_constraint_indicator_flags_2,we[8]=de.general_constraint_indicator_flags_3,we[9]=de.general_constraint_indicator_flags_4,we[10]=de.general_constraint_indicator_flags_5,we[11]=de.general_constraint_indicator_flags_6,we[12]=de.general_level_idc,we[13]=240|(3840&de.min_spatial_segmentation_idc)>>8,we[14]=255&de.min_spatial_segmentation_idc,we[15]=252|3&de.parallelismType,we[16]=252|3&de.chroma_format_idc,we[17]=248|7&de.bit_depth_luma_minus8,we[18]=248|7&de.bit_depth_chroma_minus8,we[19]=0,we[20]=0,we[21]=(3&de.constant_frame_rate)<<6|(7&de.num_temporal_layers)<<3|(de.temporal_id_nested?1:0)<<2|3,we[22]=3,we[23]=128|Ye.kSliceVPS,we[24]=0,we[25]=1,we[26]=(65280&re.byteLength)>>8,we[27]=(255&re.byteLength)>>0,we.set(re,28),we[23+(5+re.byteLength)+0]=128|Ye.kSliceSPS,we[23+(5+re.byteLength)+1]=0,we[23+(5+re.byteLength)+2]=1,we[23+(5+re.byteLength)+3]=(65280&ne.byteLength)>>8,we[23+(5+re.byteLength)+4]=(255&ne.byteLength)>>0,we.set(ne,23+(5+re.byteLength)+5),we[23+(5+re.byteLength+5+ne.byteLength)+0]=128|Ye.kSlicePPS,we[23+(5+re.byteLength+5+ne.byteLength)+1]=0,we[23+(5+re.byteLength+5+ne.byteLength)+2]=1,we[23+(5+re.byteLength+5+ne.byteLength)+3]=(65280&J.byteLength)>>8,we[23+(5+re.byteLength+5+ne.byteLength)+4]=(255&J.byteLength)>>0,we.set(J,23+(5+re.byteLength+5+ne.byteLength)+5)}return se.prototype.getData=function(){return this.data},se})(),Qe=function(){},Le=function(){},ht=function(){},Vt=[[64,64,80,80,96,96,112,112,128,128,160,160,192,192,224,224,256,256,320,320,384,384,448,448,512,512,640,640,768,768,896,896,1024,1024,1152,1152,1280,1280],[69,70,87,88,104,105,121,122,139,140,174,175,208,209,243,244,278,279,348,349,417,418,487,488,557,558,696,697,835,836,975,976,1114,1115,1253,1254,1393,1394],[96,96,120,120,144,144,168,168,192,192,240,240,288,288,336,336,384,384,480,480,576,576,672,672,768,768,960,960,1152,1152,1344,1344,1536,1536,1728,1728,1920,1920]],Ut=(function(){function se(re){this.TAG="AC3Parser",this.data_=re,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found AC3 syncword until payload end")}return se.prototype.findNextSyncwordOffset=function(re){for(var ne=re,J=this.data_;;){if(ne+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ne+0]<<8|J[ne+1]<<0)===2935)return ne;ne++}},se.prototype.readNextAC3Frame=function(){for(var re=this.data_,ne=null;ne==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,de=re[J+4]>>6,ke=[48e3,44200,33e3][de],we=63&re[J+4],Te=2*Vt[de][we];if(isNaN(Te)||J+Te>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var rt=this.findNextSyncwordOffset(J+Te);this.current_syncword_offset_=rt;var ot=re[J+5]>>3,yt=7&re[J+5],De=re[J+6]>>5,st=0;(1&De)!=0&&De!==1&&(st+=2),(4&De)!=0&&(st+=2),De===2&&(st+=2);var ut=(re[J+6]<<8|re[J+7]<<0)>>12-st&1,Mt=[2,1,2,3,3,4,4,5][De]+ut;(ne=new ht).sampling_frequency=ke,ne.channel_count=Mt,ne.channel_mode=De,ne.bit_stream_identification=ot,ne.low_frequency_effects_channel_on=ut,ne.bit_stream_mode=yt,ne.frame_size_code=we,ne.data=re.subarray(J,J+Te)}return ne},se.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},se.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},se})(),Lt=function(se){var re;re=[se.sampling_rate_code<<6|se.bit_stream_identification<<1|se.bit_stream_mode>>2,(3&se.bit_stream_mode)<<6|se.channel_mode<<3|se.low_frequency_effects_channel_on<<2|se.frame_size_code>>4,se.frame_size_code<<4&224],this.config=re,this.sampling_rate=se.sampling_frequency,this.bit_stream_identification=se.bit_stream_identification,this.bit_stream_mode=se.bit_stream_mode,this.low_frequency_effects_channel_on=se.low_frequency_effects_channel_on,this.channel_count=se.channel_count,this.channel_mode=se.channel_mode,this.codec_mimetype="ac-3",this.original_codec_mimetype="ac-3"},Xt=function(){},Dn=(function(){function se(re){this.TAG="EAC3Parser",this.data_=re,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not found AC3 syncword until payload end")}return se.prototype.findNextSyncwordOffset=function(re){for(var ne=re,J=this.data_;;){if(ne+7>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ne+0]<<8|J[ne+1]<<0)===2935)return ne;ne++}},se.prototype.readNextEAC3Frame=function(){for(var re=this.data_,ne=null;ne==null&&!this.eof_flag_;){var J=this.current_syncword_offset_,de=new k(re.subarray(J+2)),ke=(de.readBits(2),de.readBits(3),de.readBits(11)+1<<1),we=de.readBits(2),Te=null,rt=null;we===3?(Te=[24e3,22060,16e3][we=de.readBits(2)],rt=3):(Te=[48e3,44100,32e3][we],rt=de.readBits(2));var ot=de.readBits(3),yt=de.readBits(1),De=de.readBits(5);if(J+ke>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var st=this.findNextSyncwordOffset(J+ke);this.current_syncword_offset_=st;var ut=[2,1,2,3,3,4,4,5][ot]+yt;de.destroy(),(ne=new Xt).sampling_frequency=Te,ne.channel_count=ut,ne.channel_mode=ot,ne.bit_stream_identification=De,ne.low_frequency_effects_channel_on=yt,ne.frame_size=ke,ne.num_blks=[1,2,3,6][rt],ne.data=re.subarray(J,J+ke)}return ne},se.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},se.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},se})(),rr=function(se){var re,ne=Math.floor(se.frame_size*se.sampling_frequency/(16*se.num_blks));re=[255&ne,248&ne,se.sampling_rate_code<<6|se.bit_stream_identification<<1|0,0|se.channel_mode<<1|se.low_frequency_effects_channel_on<<0,0],this.config=re,this.sampling_rate=se.sampling_frequency,this.bit_stream_identification=se.bit_stream_identification,this.num_blks=se.num_blks,this.low_frequency_effects_channel_on=se.low_frequency_effects_channel_on,this.channel_count=se.channel_count,this.channel_mode=se.channel_mode,this.codec_mimetype="ec-3",this.original_codec_mimetype="ec-3"},Xr=function(){},Gt=(function(){function se(re){this.TAG="AV1OBUInMpegTsParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=re,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&l.a.e(this.TAG,"Could not find AV1 startcode until payload end!")}return se._ebsp2rbsp=function(re){for(var ne=re,J=ne.byteLength,de=new Uint8Array(J),ke=0,we=0;we=2&&ne[we]===3&&ne[we-1]===0&&ne[we-2]===0||(de[ke]=ne[we],ke++);return new Uint8Array(de.buffer,0,ke)},se.prototype.findNextStartCodeOffset=function(re){for(var ne=re,J=this.data_;;){if(ne+2>=J.byteLength)return this.eof_flag_=!0,J.byteLength;if((J[ne+0]<<16|J[ne+1]<<8|J[ne+2])===1)return ne;ne++}},se.prototype.readNextOBUPayload=function(){for(var re=this.data_,ne=null;ne==null&&!this.eof_flag_;){var J=this.current_startcode_offset_+3,de=this.findNextStartCodeOffset(J);this.current_startcode_offset_=de,ne=se._ebsp2rbsp(re.subarray(J,de))}return ne},se})(),Yt=(function(){var se=function(re,ne){return(se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,de){J.__proto__=de}||function(J,de){for(var ke in de)Object.prototype.hasOwnProperty.call(de,ke)&&(J[ke]=de[ke])})(re,ne)};return function(re,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function J(){this.constructor=re}se(re,ne),re.prototype=ne===null?Object.create(ne):(J.prototype=ne.prototype,new J)}})(),sn=function(){return(sn=Object.assign||function(se){for(var re,ne=1,J=arguments.length;ne=4?(l.a.v("TSDemuxer","ts_packet_size = 192, m2ts mode"),de-=4):ke===204&&l.a.v("TSDemuxer","ts_packet_size = 204, RS encoded MPEG2-TS stream"),{match:!0,consumed:0,ts_packet_size:ke,sync_offset:de})},re.prototype.bindDataSource=function(ne){return ne.onDataArrival=this.parseChunks.bind(this),this},re.prototype.resetMediaInfo=function(){this.media_info_=new d.a},re.prototype.parseChunks=function(ne,J){if(!(this.onError&&this.onMediaInfo&&this.onTrackMetadata&&this.onDataAvailable))throw new g.a("onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var de=0;for(this.first_parse_&&(this.first_parse_=!1,de=this.sync_offset_);de+this.ts_packet_size_<=ne.byteLength;){var ke=J+de;this.ts_packet_size_===192&&(de+=4);var we=new Uint8Array(ne,de,188),Te=we[0];if(Te!==71){l.a.e(this.TAG,"sync_byte = ".concat(Te,", not 0x47"));break}var rt=(64&we[1])>>>6,ot=(we[1],(31&we[1])<<8|we[2]),yt=(48&we[3])>>>4,De=15&we[3],st=!(!this.pmt_||this.pmt_.pcr_pid!==ot),ut={},Mt=4;if(yt==2||yt==3){var Qt=we[4];if(Qt>0&&(st||yt==3)&&(ut.discontinuity_indicator=(128&we[5])>>>7,ut.random_access_indicator=(64&we[5])>>>6,ut.elementary_stream_priority_indicator=(32&we[5])>>>5,(16&we[5])>>>4)){var Kt=300*this.getPcrBase(we)+((1&we[10])<<8|we[11]);this.last_pcr_=Kt}if(yt==2||5+Qt===188){de+=188,this.ts_packet_size_===204&&(de+=16);continue}Mt=5+Qt}if(yt==1||yt==3){if(ot===0||ot===this.current_pmt_pid_||this.pmt_!=null&&this.pmt_.pid_stream_type[ot]===L.kSCTE35){var pn=188-Mt;this.handleSectionSlice(ne,de+Mt,pn,{pid:ot,file_position:ke,payload_unit_start_indicator:rt,continuity_conunter:De,random_access_indicator:ut.random_access_indicator})}else if(this.pmt_!=null&&this.pmt_.pid_stream_type[ot]!=null){pn=188-Mt;var mn=this.pmt_.pid_stream_type[ot];ot!==this.pmt_.common_pids.h264&&ot!==this.pmt_.common_pids.h265&&ot!==this.pmt_.common_pids.av1&&ot!==this.pmt_.common_pids.adts_aac&&ot!==this.pmt_.common_pids.loas_aac&&ot!==this.pmt_.common_pids.ac3&&ot!==this.pmt_.common_pids.eac3&&ot!==this.pmt_.common_pids.opus&&ot!==this.pmt_.common_pids.mp3&&this.pmt_.pes_private_data_pids[ot]!==!0&&this.pmt_.timed_id3_pids[ot]!==!0&&this.pmt_.synchronous_klv_pids[ot]!==!0&&this.pmt_.asynchronous_klv_pids[ot]!==!0||this.handlePESSlice(ne,de+Mt,pn,{pid:ot,stream_type:mn,file_position:ke,payload_unit_start_indicator:rt,continuity_conunter:De,random_access_indicator:ut.random_access_indicator})}}de+=188,this.ts_packet_size_===204&&(de+=16)}return this.dispatchAudioVideoMediaSegment(),de},re.prototype.handleSectionSlice=function(ne,J,de,ke){var we=new Uint8Array(ne,J,de),Te=this.section_slice_queues_[ke.pid];if(ke.payload_unit_start_indicator){var rt=we[0];if(Te!=null&&Te.total_length!==0){var ot=new Uint8Array(ne,J+1,Math.min(de,rt));Te.slices.push(ot),Te.total_length+=ot.byteLength,Te.total_length===Te.expected_length?this.emitSectionSlices(Te,ke):this.clearSlices(Te,ke)}for(var yt=1+rt;yt=Te.expected_length&&this.clearSlices(Te,ke),yt+=ot.byteLength}}else Te!=null&&Te.total_length!==0&&(ot=new Uint8Array(ne,J,Math.min(de,Te.expected_length-Te.total_length)),Te.slices.push(ot),Te.total_length+=ot.byteLength,Te.total_length===Te.expected_length?this.emitSectionSlices(Te,ke):Te.total_length>=Te.expected_length&&this.clearSlices(Te,ke))},re.prototype.handlePESSlice=function(ne,J,de,ke){var we=new Uint8Array(ne,J,de),Te=we[0]<<16|we[1]<<8|we[2],rt=(we[3],we[4]<<8|we[5]);if(ke.payload_unit_start_indicator){if(Te!==1)return void l.a.e(this.TAG,"handlePESSlice: packet_start_code_prefix should be 1 but with value ".concat(Te));var ot=this.pes_slice_queues_[ke.pid];ot&&(ot.expected_length===0||ot.expected_length===ot.total_length?this.emitPESSlices(ot,ke):this.clearSlices(ot,ke)),this.pes_slice_queues_[ke.pid]=new ae,this.pes_slice_queues_[ke.pid].file_position=ke.file_position,this.pes_slice_queues_[ke.pid].random_access_indicator=ke.random_access_indicator}if(this.pes_slice_queues_[ke.pid]!=null){var yt=this.pes_slice_queues_[ke.pid];yt.slices.push(we),ke.payload_unit_start_indicator&&(yt.expected_length=rt===0?0:rt+6),yt.total_length+=we.byteLength,yt.expected_length>0&&yt.expected_length===yt.total_length?this.emitPESSlices(yt,ke):yt.expected_length>0&&yt.expected_length>>6,rt=J[8],ot=void 0,yt=void 0;Te!==2&&Te!==3||(ot=this.getTimestamp(J,9),yt=Te===3?this.getTimestamp(J,14):ot);var De=9+rt,st=void 0;if(we!==0){if(we<3+rt)return void l.a.v(this.TAG,"Malformed PES: PES_packet_length < 3 + PES_header_data_length");st=we-3-rt}else st=J.byteLength-De;var ut=J.subarray(De,De+st);switch(ne.stream_type){case L.kMPEG1Audio:case L.kMPEG2Audio:this.parseMP3Payload(ut,ot);break;case L.kPESPrivateData:this.pmt_.common_pids.av1===ne.pid?this.parseAV1Payload(ut,ot,yt,ne.file_position,ne.random_access_indicator):this.pmt_.common_pids.opus===ne.pid?this.parseOpusPayload(ut,ot):this.pmt_.common_pids.ac3===ne.pid?this.parseAC3Payload(ut,ot):this.pmt_.common_pids.eac3===ne.pid?this.parseEAC3Payload(ut,ot):this.pmt_.asynchronous_klv_pids[ne.pid]?this.parseAsynchronousKLVMetadataPayload(ut,ne.pid,ke):this.pmt_.smpte2038_pids[ne.pid]?this.parseSMPTE2038MetadataPayload(ut,ot,yt,ne.pid,ke):this.parsePESPrivateDataPayload(ut,ot,yt,ne.pid,ke);break;case L.kADTSAAC:this.parseADTSAACPayload(ut,ot);break;case L.kLOASAAC:this.parseLOASAACPayload(ut,ot);break;case L.kAC3:this.parseAC3Payload(ut,ot);break;case L.kEAC3:this.parseEAC3Payload(ut,ot);break;case L.kMetadata:this.pmt_.timed_id3_pids[ne.pid]?this.parseTimedID3MetadataPayload(ut,ot,yt,ne.pid,ke):this.pmt_.synchronous_klv_pids[ne.pid]&&this.parseSynchronousKLVMetadataPayload(ut,ot,yt,ne.pid,ke);break;case L.kH264:this.parseH264Payload(ut,ot,yt,ne.file_position,ne.random_access_indicator);break;case L.kH265:this.parseH265Payload(ut,ot,yt,ne.file_position,ne.random_access_indicator)}}else(ke===188||ke===191||ke===240||ke===241||ke===255||ke===242||ke===248)&&ne.stream_type===L.kPESPrivateData&&(De=6,st=void 0,st=we!==0?we:J.byteLength-De,ut=J.subarray(De,De+st),this.parsePESPrivateDataPayload(ut,void 0,void 0,ne.pid,ke));else l.a.e(this.TAG,"parsePES: packet_start_code_prefix should be 1 but with value ".concat(de))},re.prototype.parsePAT=function(ne){var J=ne[0];if(J===0){var de=(15&ne[1])<<8|ne[2],ke=(ne[3],ne[4],(62&ne[5])>>>1),we=1&ne[5],Te=ne[6],rt=(ne[7],null);if(we===1&&Te===0)(rt=new H).version_number=ke;else if((rt=this.pat_)==null)return;for(var ot=de-5-4,yt=-1,De=-1,st=8;st<8+ot;st+=4){var ut=ne[st]<<8|ne[st+1],Mt=(31&ne[st+2])<<8|ne[st+3];ut===0?rt.network_pid=Mt:(rt.program_pmt_pid[ut]=Mt,yt===-1&&(yt=ut),De===-1&&(De=Mt))}we===1&&Te===0&&(this.pat_==null&&l.a.v(this.TAG,"Parsed first PAT: ".concat(JSON.stringify(rt))),this.pat_=rt,this.current_program_=yt,this.current_pmt_pid_=De)}else l.a.e(this.TAG,"parsePAT: table_id ".concat(J," is not corresponded to PAT!"))},re.prototype.parsePMT=function(ne){var J=ne[0];if(J===2){var de=(15&ne[1])<<8|ne[2],ke=ne[3]<<8|ne[4],we=(62&ne[5])>>>1,Te=1&ne[5],rt=ne[6],ot=(ne[7],null);if(Te===1&&rt===0)(ot=new W).program_number=ke,ot.version_number=we,this.program_pmt_map_[ke]=ot;else if((ot=this.program_pmt_map_[ke])==null)return;ot.pcr_pid=(31&ne[8])<<8|ne[9];for(var yt=(15&ne[10])<<8|ne[11],De=12+yt,st=de-9-yt-4,ut=De;ut0){for(var ln=ut+5;ln0)for(ln=ut+5;ln1&&(l.a.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(Te,"ms, PES pts: ").concat(we,"ms")),we=Te)}}for(var rt,ot=new Ie(ne),yt=null,De=we;(yt=ot.readNextAACFrame())!=null;){ke=1024/yt.sampling_frequency*1e3;var st={codec:"aac",data:yt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"aac",audio_object_type:yt.audio_object_type,sampling_freq_index:yt.sampling_freq_index,sampling_frequency:yt.sampling_frequency,channel_config:yt.channel_config},this.dispatchAudioInitSegment(st)):this.detectAudioMetadataChange(st)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(st)),rt=De;var ut=Math.floor(De),Mt={unit:yt.data,length:yt.data.byteLength,pts:ut,dts:ut};this.audio_track_.samples.push(Mt),this.audio_track_.length+=yt.data.byteLength,De+=ke}ot.hasIncompleteData()&&(this.aac_last_incomplete_data_=ot.getIncompleteData()),rt&&(this.audio_last_sample_pts_=rt)}},re.prototype.parseLOASAACPayload=function(ne,J){var de;if(!this.has_video_||this.video_init_segment_dispatched_){if(this.aac_last_incomplete_data_){var ke=new Uint8Array(ne.byteLength+this.aac_last_incomplete_data_.byteLength);ke.set(this.aac_last_incomplete_data_,0),ke.set(ne,this.aac_last_incomplete_data_.byteLength),ne=ke}var we,Te;if(J!=null&&(Te=J/this.timescale_),this.audio_metadata_.codec==="aac"){if(J==null&&this.audio_last_sample_pts_!=null)we=1024/this.audio_metadata_.sampling_frequency*1e3,Te=this.audio_last_sample_pts_+we;else if(J==null)return void l.a.w(this.TAG,"AAC: Unknown pts");if(this.aac_last_incomplete_data_&&this.audio_last_sample_pts_){we=1024/this.audio_metadata_.sampling_frequency*1e3;var rt=this.audio_last_sample_pts_+we;Math.abs(rt-Te)>1&&(l.a.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(rt,"ms, PES pts: ").concat(Te,"ms")),Te=rt)}}for(var ot,yt=new _e(ne),De=null,st=Te;(De=yt.readNextAACFrame((de=this.loas_previous_frame)!==null&&de!==void 0?de:void 0))!=null;){this.loas_previous_frame=De,we=1024/De.sampling_frequency*1e3;var ut={codec:"aac",data:De};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"aac",audio_object_type:De.audio_object_type,sampling_freq_index:De.sampling_freq_index,sampling_frequency:De.sampling_frequency,channel_config:De.channel_config},this.dispatchAudioInitSegment(ut)):this.detectAudioMetadataChange(ut)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(ut)),ot=st;var Mt=Math.floor(st),Qt={unit:De.data,length:De.data.byteLength,pts:Mt,dts:Mt};this.audio_track_.samples.push(Qt),this.audio_track_.length+=De.data.byteLength,st+=we}yt.hasIncompleteData()&&(this.aac_last_incomplete_data_=yt.getIncompleteData()),ot&&(this.audio_last_sample_pts_=ot)}},re.prototype.parseAC3Payload=function(ne,J){if(!this.has_video_||this.video_init_segment_dispatched_){var de,ke;if(J!=null&&(ke=J/this.timescale_),this.audio_metadata_.codec==="ac-3"){if(J==null&&this.audio_last_sample_pts_!=null)de=1536/this.audio_metadata_.sampling_frequency*1e3,ke=this.audio_last_sample_pts_+de;else if(J==null)return void l.a.w(this.TAG,"AC3: Unknown pts")}for(var we,Te=new Ut(ne),rt=null,ot=ke;(rt=Te.readNextAC3Frame())!=null;){de=1536/rt.sampling_frequency*1e3;var yt={codec:"ac-3",data:rt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"ac-3",sampling_frequency:rt.sampling_frequency,bit_stream_identification:rt.bit_stream_identification,bit_stream_mode:rt.bit_stream_mode,low_frequency_effects_channel_on:rt.low_frequency_effects_channel_on,channel_mode:rt.channel_mode},this.dispatchAudioInitSegment(yt)):this.detectAudioMetadataChange(yt)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(yt)),we=ot;var De=Math.floor(ot),st={unit:rt.data,length:rt.data.byteLength,pts:De,dts:De};this.audio_track_.samples.push(st),this.audio_track_.length+=rt.data.byteLength,ot+=de}we&&(this.audio_last_sample_pts_=we)}},re.prototype.parseEAC3Payload=function(ne,J){if(!this.has_video_||this.video_init_segment_dispatched_){var de,ke;if(J!=null&&(ke=J/this.timescale_),this.audio_metadata_.codec==="ec-3"){if(J==null&&this.audio_last_sample_pts_!=null)de=256*this.audio_metadata_.num_blks/this.audio_metadata_.sampling_frequency*1e3,ke=this.audio_last_sample_pts_+de;else if(J==null)return void l.a.w(this.TAG,"EAC3: Unknown pts")}for(var we,Te=new Dn(ne),rt=null,ot=ke;(rt=Te.readNextEAC3Frame())!=null;){de=1536/rt.sampling_frequency*1e3;var yt={codec:"ec-3",data:rt};this.audio_init_segment_dispatched_==0?(this.audio_metadata_={codec:"ec-3",sampling_frequency:rt.sampling_frequency,bit_stream_identification:rt.bit_stream_identification,low_frequency_effects_channel_on:rt.low_frequency_effects_channel_on,num_blks:rt.num_blks,channel_mode:rt.channel_mode},this.dispatchAudioInitSegment(yt)):this.detectAudioMetadataChange(yt)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(yt)),we=ot;var De=Math.floor(ot),st={unit:rt.data,length:rt.data.byteLength,pts:De,dts:De};this.audio_track_.samples.push(st),this.audio_track_.length+=rt.data.byteLength,ot+=de}we&&(this.audio_last_sample_pts_=we)}},re.prototype.parseOpusPayload=function(ne,J){if(!this.has_video_||this.video_init_segment_dispatched_){var de,ke;if(J!=null&&(ke=J/this.timescale_),this.audio_metadata_.codec==="opus"){if(J==null&&this.audio_last_sample_pts_!=null)de=20,ke=this.audio_last_sample_pts_+de;else if(J==null)return void l.a.w(this.TAG,"Opus: Unknown pts")}for(var we,Te=ke,rt=0;rt>>3&3,rt=(6&ne[1])>>1,ot=(240&ne[2])>>>4,yt=(12&ne[2])>>>2,De=(ne[3]>>>6&3)!==3?2:1,st=0,ut=34;switch(Te){case 0:st=[11025,12e3,8e3,0][yt];break;case 2:st=[22050,24e3,16e3,0][yt];break;case 3:st=[44100,48e3,32e3,0][yt]}switch(rt){case 1:ut=34,ot>>24&255,J[1]=ne>>>16&255,J[2]=ne>>>8&255,J[3]=255&ne,J.set(re,4);var Te=8;for(we=0;we>>24&255,re>>>16&255,re>>>8&255,255&re,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},se.trak=function(re){return se.box(se.types.trak,se.tkhd(re),se.mdia(re))},se.tkhd=function(re){var ne=re.id,J=re.duration,de=re.presentWidth,ke=re.presentHeight;return se.box(se.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne,0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,255&J,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,de>>>8&255,255&de,0,0,ke>>>8&255,255&ke,0,0]))},se.mdia=function(re){return se.box(se.types.mdia,se.mdhd(re),se.hdlr(re),se.minf(re))},se.mdhd=function(re){var ne=re.timescale,J=re.duration;return se.box(se.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne,J>>>24&255,J>>>16&255,J>>>8&255,255&J,85,196,0,0]))},se.hdlr=function(re){var ne=null;return ne=re.type==="audio"?se.constants.HDLR_AUDIO:se.constants.HDLR_VIDEO,se.box(se.types.hdlr,ne)},se.minf=function(re){var ne=null;return ne=re.type==="audio"?se.box(se.types.smhd,se.constants.SMHD):se.box(se.types.vmhd,se.constants.VMHD),se.box(se.types.minf,ne,se.dinf(),se.stbl(re))},se.dinf=function(){return se.box(se.types.dinf,se.box(se.types.dref,se.constants.DREF))},se.stbl=function(re){return se.box(se.types.stbl,se.stsd(re),se.box(se.types.stts,se.constants.STTS),se.box(se.types.stsc,se.constants.STSC),se.box(se.types.stsz,se.constants.STSZ),se.box(se.types.stco,se.constants.STCO))},se.stsd=function(re){return re.type==="audio"?re.codec==="mp3"?se.box(se.types.stsd,se.constants.STSD_PREFIX,se.mp3(re)):re.codec==="ac-3"?se.box(se.types.stsd,se.constants.STSD_PREFIX,se.ac3(re)):re.codec==="ec-3"?se.box(se.types.stsd,se.constants.STSD_PREFIX,se.ec3(re)):re.codec==="opus"?se.box(se.types.stsd,se.constants.STSD_PREFIX,se.Opus(re)):re.codec=="flac"?se.box(se.types.stsd,se.constants.STSD_PREFIX,se.fLaC(re)):se.box(se.types.stsd,se.constants.STSD_PREFIX,se.mp4a(re)):re.type==="video"&&re.codec.startsWith("hvc1")?se.box(se.types.stsd,se.constants.STSD_PREFIX,se.hvc1(re)):re.type==="video"&&re.codec.startsWith("av01")?se.box(se.types.stsd,se.constants.STSD_PREFIX,se.av01(re)):se.box(se.types.stsd,se.constants.STSD_PREFIX,se.avc1(re))},se.mp3=function(re){var ne=re.channelCount,J=re.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ne,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return se.box(se.types[".mp3"],de)},se.mp4a=function(re){var ne=re.channelCount,J=re.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ne,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return se.box(se.types.mp4a,de,se.esds(re))},se.ac3=function(re){var ne=re.channelCount,J=re.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ne,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return se.box(se.types["ac-3"],de,se.box(se.types.dac3,new Uint8Array(re.config)))},se.ec3=function(re){var ne=re.channelCount,J=re.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ne,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return se.box(se.types["ec-3"],de,se.box(se.types.dec3,new Uint8Array(re.config)))},se.esds=function(re){var ne=re.config||[],J=ne.length,de=new Uint8Array([0,0,0,0,3,23+J,0,1,0,4,15+J,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([J]).concat(ne).concat([6,1,2]));return se.box(se.types.esds,de)},se.Opus=function(re){var ne=re.channelCount,J=re.audioSampleRate,de=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ne,0,16,0,0,0,0,J>>>8&255,255&J,0,0]);return se.box(se.types.Opus,de,se.dOps(re))},se.dOps=function(re){var ne=re.channelCount,J=re.channelConfigCode,de=re.audioSampleRate;if(re.config)return se.box(se.types.dOps,re.config);var ke=[];switch(J){case 1:case 2:ke=[0];break;case 0:ke=[255,1,1,0,1];break;case 128:ke=[255,2,0,0,1];break;case 3:ke=[1,2,1,0,2,1];break;case 4:ke=[1,2,2,0,1,2,3];break;case 5:ke=[1,3,2,0,4,1,2,3];break;case 6:ke=[1,4,2,0,4,1,2,3,5];break;case 7:ke=[1,4,2,0,4,1,2,3,5,6];break;case 8:ke=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:ke=[1,1,2,0,1];break;case 131:ke=[1,1,3,0,1,2];break;case 132:ke=[1,1,4,0,1,2,3];break;case 133:ke=[1,1,5,0,1,2,3,4];break;case 134:ke=[1,1,6,0,1,2,3,4,5];break;case 135:ke=[1,1,7,0,1,2,3,4,5,6];break;case 136:ke=[1,1,8,0,1,2,3,4,5,6,7]}var we=new Uint8Array(un([0,ne,0,0,de>>>24&255,de>>>17&255,de>>>8&255,de>>>0&255,0,0],ke));return se.box(se.types.dOps,we)},se.fLaC=function(re){var ne=re.channelCount,J=Math.min(re.audioSampleRate,65535),de=re.sampleSize,ke=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ne,0,de,0,0,0,0,J>>>8&255,255&J,0,0]);return se.box(se.types.fLaC,ke,se.dfLa(re))},se.dfLa=function(re){var ne=new Uint8Array(un([0,0,0,0],re.config));return se.box(se.types.dfLa,ne)},se.avc1=function(re){var ne=re.avcc,J=re.codecWidth,de=re.codecHeight,ke=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,de>>>8&255,255&de,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return se.box(se.types.avc1,ke,se.box(se.types.avcC,ne))},se.hvc1=function(re){var ne=re.hvcc,J=re.codecWidth,de=re.codecHeight,ke=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,de>>>8&255,255&de,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return se.box(se.types.hvc1,ke,se.box(se.types.hvcC,ne))},se.av01=function(re){var ne=re.av1c,J=re.codecWidth||192,de=re.codecHeight||108,ke=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,J>>>8&255,255&J,de>>>8&255,255&de,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return se.box(se.types.av01,ke,se.box(se.types.av1C,ne))},se.mvex=function(re){return se.box(se.types.mvex,se.trex(re))},se.trex=function(re){var ne=re.id,J=new Uint8Array([0,0,0,0,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return se.box(se.types.trex,J)},se.moof=function(re,ne){return se.box(se.types.moof,se.mfhd(re.sequenceNumber),se.traf(re,ne))},se.mfhd=function(re){var ne=new Uint8Array([0,0,0,0,re>>>24&255,re>>>16&255,re>>>8&255,255&re]);return se.box(se.types.mfhd,ne)},se.traf=function(re,ne){var J=re.id,de=se.box(se.types.tfhd,new Uint8Array([0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,255&J])),ke=se.box(se.types.tfdt,new Uint8Array([0,0,0,0,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne])),we=se.sdtp(re),Te=se.trun(re,we.byteLength+16+16+8+16+8+8);return se.box(se.types.traf,de,ke,Te,we)},se.sdtp=function(re){for(var ne=re.samples||[],J=ne.length,de=new Uint8Array(4+J),ke=0;ke>>24&255,de>>>16&255,de>>>8&255,255&de,ne>>>24&255,ne>>>16&255,ne>>>8&255,255&ne],0);for(var Te=0;Te>>24&255,rt>>>16&255,rt>>>8&255,255&rt,ot>>>24&255,ot>>>16&255,ot>>>8&255,255&ot,yt.isLeading<<2|yt.dependsOn,yt.isDependedOn<<6|yt.hasRedundancy<<4|yt.isNonSync,0,0,De>>>24&255,De>>>16&255,De>>>8&255,255&De],12+16*Te)}return se.box(se.types.trun,we)},se.mdat=function(re){return se.box(se.types.mdat,re)},se})();Xn.init();var Cr=Xn,ro=(function(){function se(){}return se.getSilentFrame=function(re,ne){if(re==="mp4a.40.2"){if(ne===1)return new Uint8Array([0,200,0,128,35,128]);if(ne===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ne===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ne===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ne===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ne===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ne===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ne===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ne===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},se})(),$t=i(11),bn=(function(){function se(re){this.TAG="MP4Remuxer",this._config=re,this._isLive=re.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new $t.c("audio"),this._videoSegmentInfoList=new $t.c("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!c.a.chrome||!(c.a.version.major<50||c.a.version.major===50&&c.a.version.build<2661)),this._fillSilentAfterSeek=c.a.msedge||c.a.msie,this._mp3UseMpegAudio=!c.a.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return se.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},se.prototype.bindDataSource=function(re){return re.onDataAvailable=this.remux.bind(this),re.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(se.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(re){this._onInitSegment=re},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(re){this._onMediaSegment=re},enumerable:!1,configurable:!0}),se.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},se.prototype.seek=function(re){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},se.prototype.remux=function(re,ne){if(!this._onMediaSegment)throw new g.a("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(re,ne),ne&&this._remuxVideo(ne),re&&this._remuxAudio(re)},se.prototype._onTrackMetadataReceived=function(re,ne){var J=null,de="mp4",ke=ne.codec;if(re==="audio")this._audioMeta=ne,ne.codec==="mp3"&&this._mp3UseMpegAudio?(de="mpeg",ke="",J=new Uint8Array):J=Cr.generateInitSegment(ne);else{if(re!=="video")return;this._videoMeta=ne,J=Cr.generateInitSegment(ne)}if(!this._onInitSegment)throw new g.a("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(re,{type:re,data:J.buffer,codec:ke,container:"".concat(re,"/").concat(de),mediaDuration:ne.duration})},se.prototype._calculateDtsBase=function(re,ne){this._dtsBaseInited||(re&&re.samples&&re.samples.length&&(this._audioDtsBase=re.samples[0].dts),ne&&ne.samples&&ne.samples.length&&(this._videoDtsBase=ne.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},se.prototype.getTimestampBase=function(){if(this._dtsBaseInited)return this._dtsBase},se.prototype.flushStashedSamples=function(){var re=this._videoStashedLastSample,ne=this._audioStashedLastSample,J={type:"video",id:1,sequenceNumber:0,samples:[],length:0};re!=null&&(J.samples.push(re),J.length=re.length);var de={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ne!=null&&(de.samples.push(ne),de.length=ne.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(J,!0),this._remuxAudio(de,!0)},se.prototype._remuxAudio=function(re,ne){if(this._audioMeta!=null){var J,de=re,ke=de.samples,we=void 0,Te=-1,rt=this._audioMeta.refSampleDuration,ot=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,yt=this._dtsBaseInited&&this._audioNextDts===void 0,De=!1;if(ke&&ke.length!==0&&(ke.length!==1||ne)){var st=0,ut=null,Mt=0;ot?(st=0,Mt=de.length):(st=8,Mt=8+de.length);var Qt=null;if(ke.length>1&&(Mt-=(Qt=ke.pop()).length),this._audioStashedLastSample!=null){var Kt=this._audioStashedLastSample;this._audioStashedLastSample=null,ke.unshift(Kt),Mt+=Kt.length}Qt!=null&&(this._audioStashedLastSample=Qt);var pn=ke[0].dts-this._dtsBase;if(this._audioNextDts)we=pn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())we=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(De=!0);else{var mn=this._audioSegmentInfoList.getLastSampleBefore(pn);if(mn!=null){var ln=pn-(mn.originalDts+mn.duration);ln<=3&&(ln=0),we=pn-(mn.dts+mn.duration+ln)}else we=0}if(De){var dr=pn-we,tr=this._videoSegmentInfoList.getLastSegmentBefore(pn);if(tr!=null&&tr.beginDts=3*rt&&this._fillAudioTimestampGap&&!c.a.safari){vr=!0;var ui,La=Math.floor(we/rt);l.a.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. +`+"originalDts: ".concat(or," ms, curRefDts: ").concat(bi," ms, ")+"dtsCorrection: ".concat(Math.round(we)," ms, generate: ").concat(La," frames")),_n=Math.floor(bi),qr=Math.floor(bi+rt)-_n,(ui=ro.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount))==null&&(l.a.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),ui=Ln),hr=[];for(var Cn=0;Cn=1?fr[fr.length-1].duration:Math.floor(rt),this._audioNextDts=_n+qr;Te===-1&&(Te=_n),fr.push({dts:_n,pts:_n,cts:0,unit:Kt.unit,size:Kt.unit.byteLength,duration:qr,originalDts:or,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),vr&&fr.push.apply(fr,hr)}}if(fr.length===0)return de.samples=[],void(de.length=0);for(ot?ut=new Uint8Array(Mt):((ut=new Uint8Array(Mt))[0]=Mt>>>24&255,ut[1]=Mt>>>16&255,ut[2]=Mt>>>8&255,ut[3]=255&Mt,ut.set(Cr.types.mdat,4)),ir=0;ir1&&(st-=(ut=we.pop()).length),this._videoStashedLastSample!=null){var Mt=this._videoStashedLastSample;this._videoStashedLastSample=null,we.unshift(Mt),st+=Mt.length}ut!=null&&(this._videoStashedLastSample=ut);var Qt=we[0].dts-this._dtsBase;if(this._videoNextDts)Te=Qt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Te=0;else{var Kt=this._videoSegmentInfoList.getLastSampleBefore(Qt);if(Kt!=null){var pn=Qt-(Kt.originalDts+Kt.duration);pn<=3&&(pn=0),Te=Qt-(Kt.dts+Kt.duration+pn)}else Te=0}for(var mn=new $t.b,ln=[],dr=0;dr=1?ln[ln.length-1].duration:Math.floor(this._videoMeta.refSampleDuration),_n){var or=new $t.d(Yn,ir,Ln,Mt.dts,!0);or.fileposition=Mt.fileposition,mn.appendSyncPoint(or)}ln.push({dts:Yn,pts:ir,cts:fr,units:Mt.units,size:Mt.length,isKeyframe:_n,duration:Ln,originalDts:tr,flags:{isLeading:0,dependsOn:_n?2:1,isDependedOn:_n?1:0,hasRedundancy:0,isNonSync:_n?0:1}})}for((De=new Uint8Array(st))[0]=st>>>24&255,De[1]=st>>>16&255,De[2]=st>>>8&255,De[3]=255&st,De.set(Cr.types.mdat,4),dr=0;dr0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,de=this._demuxer.parseChunks(re,ne);else{var ke=null;(ke=B.probe(re)).match&&(this._setupFLVDemuxerRemuxer(ke),de=this._demuxer.parseChunks(re,ne)),ke.match||ke.needMoreData||(ke=An.probe(re)).match&&(this._setupTSDemuxerRemuxer(ke),de=this._demuxer.parseChunks(re,ne)),ke.match||ke.needMoreData||(ke=null,l.a.e(this.TAG,"Non MPEG-TS/FLV, Unsupported media type!"),Promise.resolve().then((function(){J._internalAbort()})),this._emitter.emit(ar.a.DEMUX_ERROR,x.a.FORMAT_UNSUPPORTED,"Non MPEG-TS/FLV, Unsupported media type!"))}return de},se.prototype._setupFLVDemuxerRemuxer=function(re){this._demuxer=new B(re,this._config),this._remuxer||(this._remuxer=new bn(this._config));var ne=this._mediaDataSource;ne.duration==null||isNaN(ne.duration)||(this._demuxer.overridedDuration=ne.duration),typeof ne.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=ne.hasAudio),typeof ne.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=ne.hasVideo),this._demuxer.timestampBase=ne.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this)},se.prototype._setupTSDemuxerRemuxer=function(re){var ne=this._demuxer=new An(re,this._config);this._remuxer||(this._remuxer=new bn(this._config)),ne.onError=this._onDemuxException.bind(this),ne.onMediaInfo=this._onMediaInfo.bind(this),ne.onMetaDataArrived=this._onMetaDataArrived.bind(this),ne.onTimedID3Metadata=this._onTimedID3Metadata.bind(this),ne.onSynchronousKLVMetadata=this._onSynchronousKLVMetadata.bind(this),ne.onAsynchronousKLVMetadata=this._onAsynchronousKLVMetadata.bind(this),ne.onSMPTE2038Metadata=this._onSMPTE2038Metadata.bind(this),ne.onSCTE35Metadata=this._onSCTE35Metadata.bind(this),ne.onPESPrivateDataDescriptor=this._onPESPrivateDataDescriptor.bind(this),ne.onPESPrivateData=this._onPESPrivateData.bind(this),this._remuxer.bindDataSource(this._demuxer),this._demuxer.bindDataSource(this._ioctl),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this)},se.prototype._onMediaInfo=function(re){var ne=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},re),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,d.a.prototype));var J=Object.assign({},re);Object.setPrototypeOf(J,d.a.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=J,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then((function(){var de=ne._pendingSeekTime;ne._pendingSeekTime=null,ne.seek(de)}))},se.prototype._onMetaDataArrived=function(re){this._emitter.emit(ar.a.METADATA_ARRIVED,re)},se.prototype._onScriptDataArrived=function(re){this._emitter.emit(ar.a.SCRIPTDATA_ARRIVED,re)},se.prototype._onTimedID3Metadata=function(re){var ne=this._remuxer.getTimestampBase();ne!=null&&(re.pts!=null&&(re.pts-=ne),re.dts!=null&&(re.dts-=ne),this._emitter.emit(ar.a.TIMED_ID3_METADATA_ARRIVED,re))},se.prototype._onSynchronousKLVMetadata=function(re){var ne=this._remuxer.getTimestampBase();ne!=null&&(re.pts!=null&&(re.pts-=ne),re.dts!=null&&(re.dts-=ne),this._emitter.emit(ar.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,re))},se.prototype._onAsynchronousKLVMetadata=function(re){this._emitter.emit(ar.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,re)},se.prototype._onSMPTE2038Metadata=function(re){var ne=this._remuxer.getTimestampBase();ne!=null&&(re.pts!=null&&(re.pts-=ne),re.dts!=null&&(re.dts-=ne),re.nearest_pts!=null&&(re.nearest_pts-=ne),this._emitter.emit(ar.a.SMPTE2038_METADATA_ARRIVED,re))},se.prototype._onSCTE35Metadata=function(re){var ne=this._remuxer.getTimestampBase();ne!=null&&(re.pts!=null&&(re.pts-=ne),re.nearest_pts!=null&&(re.nearest_pts-=ne),this._emitter.emit(ar.a.SCTE35_METADATA_ARRIVED,re))},se.prototype._onPESPrivateDataDescriptor=function(re){this._emitter.emit(ar.a.PES_PRIVATE_DATA_DESCRIPTOR,re)},se.prototype._onPESPrivateData=function(re){var ne=this._remuxer.getTimestampBase();ne!=null&&(re.pts!=null&&(re.pts-=ne),re.nearest_pts!=null&&(re.nearest_pts-=ne),re.dts!=null&&(re.dts-=ne),this._emitter.emit(ar.a.PES_PRIVATE_DATA_ARRIVED,re))},se.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},se.prototype._onIOComplete=function(re){var ne=re+1;ne0&&J[0].originalDts===de&&(de=J[0].pts),this._emitter.emit(ar.a.RECOMMEND_SEEKPOINT,de)}},se.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},se.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},se.prototype._reportSegmentMediaInfo=function(re){var ne=this._mediaInfo.segments[re],J=Object.assign({},ne);J.duration=this._mediaInfo.duration,J.segmentCount=this._mediaInfo.segmentCount,delete J.segments,delete J.keyframesIndex,this._emitter.emit(ar.a.MEDIA_INFO,J)},se.prototype._reportStatisticsInfo=function(){var re={};re.url=this._ioctl.currentURL,re.hasRedirect=this._ioctl.hasRedirect,re.hasRedirect&&(re.redirectedURL=this._ioctl.currentRedirectedURL),re.speed=this._ioctl.currentSpeed,re.loaderType=this._ioctl.loaderType,re.currentSegmentIndex=this._currentSegmentIndex,re.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(ar.a.STATISTICS_INFO,re)},se})());r.a=Ur},function(n,r,i){var a,s=i(0),l=(function(){function P(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return P.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},P.prototype.addBytes=function(M){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=M,this._totalBytes+=M):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=M,this._totalBytes+=M):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=M,this._totalBytes+=M,this._lastCheckpoint=this._now())},Object.defineProperty(P.prototype,"currentKBps",{get:function(){this.addBytes(0);var M=(this._now()-this._lastCheckpoint)/1e3;return M==0&&(M=1),this._intervalBytes/M/1024},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"averageKBps",{get:function(){var M=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/M/1024},enumerable:!1,configurable:!0}),P})(),c=i(2),d=i(5),h=i(3),p=(a=function(P,M){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,L){$.__proto__=L}||function($,L){for(var B in L)Object.prototype.hasOwnProperty.call(L,B)&&($[B]=L[B])})(P,M)},function(P,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function $(){this.constructor=P}a(P,M),P.prototype=M===null?Object.create(M):($.prototype=M.prototype,new $)}),v=(function(P){function M($,L){var B=P.call(this,"fetch-stream-loader")||this;return B.TAG="FetchStreamLoader",B._seekHandler=$,B._config=L,B._needStash=!0,B._requestAbort=!1,B._abortController=null,B._contentLength=null,B._receivedLength=0,B}return p(M,P),M.isSupported=function(){try{var $=d.a.msedge&&d.a.version.minor>=15048,L=!d.a.msedge||$;return self.fetch&&self.ReadableStream&&L}catch{return!1}},M.prototype.destroy=function(){this.isWorking()&&this.abort(),P.prototype.destroy.call(this)},M.prototype.open=function($,L){var B=this;this._dataSource=$,this._range=L;var j=$.url;this._config.reuseRedirectedURL&&$.redirectedURL!=null&&(j=$.redirectedURL);var H=this._seekHandler.getConfig(j,L),U=new self.Headers;if(typeof H.headers=="object"){var W=H.headers;for(var K in W)W.hasOwnProperty(K)&&U.append(K,W[K])}var oe={method:"GET",headers:U,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var K in this._config.headers)U.append(K,this._config.headers[K]);$.cors===!1&&(oe.mode="same-origin"),$.withCredentials&&(oe.credentials="include"),$.referrerPolicy&&(oe.referrerPolicy=$.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,oe.signal=this._abortController.signal),this._status=c.c.kConnecting,self.fetch(H.url,oe).then((function(ae){if(B._requestAbort)return B._status=c.c.kIdle,void ae.body.cancel();if(ae.ok&&ae.status>=200&&ae.status<=299){if(ae.url!==H.url&&B._onURLRedirect){var ee=B._seekHandler.removeURLParameters(ae.url);B._onURLRedirect(ee)}var Y=ae.headers.get("Content-Length");return Y!=null&&(B._contentLength=parseInt(Y),B._contentLength!==0&&B._onContentLengthKnown&&B._onContentLengthKnown(B._contentLength)),B._pump.call(B,ae.body.getReader())}if(B._status=c.c.kError,!B._onError)throw new h.d("FetchStreamLoader: Http code invalid, "+ae.status+" "+ae.statusText);B._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:ae.status,msg:ae.statusText})})).catch((function(ae){if(!B._abortController||!B._abortController.signal.aborted){if(B._status=c.c.kError,!B._onError)throw ae;B._onError(c.b.EXCEPTION,{code:-1,msg:ae.message})}}))},M.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==c.c.kBuffering||!d.a.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},M.prototype._pump=function($){var L=this;return $.read().then((function(B){if(B.done)if(L._contentLength!==null&&L._receivedLength299)){if(this._status=c.c.kError,!this._onError)throw new h.d("MozChunkedLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}else this._status=c.c.kBuffering}},M.prototype._onProgress=function($){if(this._status!==c.c.kError){this._contentLength===null&&$.total!==null&&$.total!==0&&(this._contentLength=$.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var L=$.target.response,B=this._range.from+this._receivedLength;this._receivedLength+=L.byteLength,this._onDataArrival&&this._onDataArrival(L,B,this._receivedLength)}},M.prototype._onLoadEnd=function($){this._requestAbort!==!0?this._status!==c.c.kError&&(this._status=c.c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1},M.prototype._onXhrError=function($){this._status=c.c.kError;var L=0,B=null;if(this._contentLength&&$.loaded=200&&L.status<=299){if(this._status=c.c.kBuffering,L.responseURL!=null){var B=this._seekHandler.removeURLParameters(L.responseURL);L.responseURL!==this._currentRequestURL&&B!==this._currentRedirectedURL&&(this._currentRedirectedURL=B,this._onURLRedirect&&this._onURLRedirect(B))}var j=L.getResponseHeader("Content-Length");if(j!=null&&this._contentLength==null){var H=parseInt(j);H>0&&(this._contentLength=H,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else{if(this._status=c.c.kError,!this._onError)throw new h.d("MSStreamLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}else if(L.readyState===3&&L.status>=200&&L.status<=299){this._status=c.c.kBuffering;var U=L.response;this._reader.readAsArrayBuffer(U)}},M.prototype._xhrOnError=function($){this._status=c.c.kError;var L=c.b.EXCEPTION,B={code:-1,msg:$.constructor.name+" "+$.type};if(!this._onError)throw new h.d(B.msg);this._onError(L,B)},M.prototype._msrOnProgress=function($){var L=$.target.result;if(L!=null){var B=L.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=L.byteLength;var j=this._totalRange.from+this._receivedLength;this._receivedLength+=B.byteLength,this._onDataArrival&&this._onDataArrival(B,j,this._receivedLength),L.byteLength>=this._bufferLimit&&(s.a.v(this.TAG,"MSStream buffer exceeded max size near ".concat(j+B.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}else this._doReconnectIfNeeded()},M.prototype._doReconnectIfNeeded=function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(B=this._range.from+this._contentLength-1),this._currentRequestRange={from:L,to:B},this._internalOpen(this._dataSource,this._currentRequestRange)},M.prototype._internalOpen=function($,L){this._lastTimeLoaded=0;var B=$.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?B=this._currentRedirectedURL:$.redirectedURL!=null&&(B=$.redirectedURL));var j=this._seekHandler.getConfig(B,L);this._currentRequestURL=j.url;var H=this._xhr=new XMLHttpRequest;if(H.open("GET",j.url,!0),H.responseType="arraybuffer",H.onreadystatechange=this._onReadyStateChange.bind(this),H.onprogress=this._onProgress.bind(this),H.onload=this._onLoad.bind(this),H.onerror=this._onXhrError.bind(this),$.withCredentials&&(H.withCredentials=!0),typeof j.headers=="object"){var U=j.headers;for(var W in U)U.hasOwnProperty(W)&&H.setRequestHeader(W,U[W])}if(typeof this._config.headers=="object"){U=this._config.headers;for(var W in U)U.hasOwnProperty(W)&&H.setRequestHeader(W,U[W])}H.send()},M.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=c.c.kComplete},M.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},M.prototype._onReadyStateChange=function($){var L=$.target;if(L.readyState===2){if(L.responseURL!=null){var B=this._seekHandler.removeURLParameters(L.responseURL);L.responseURL!==this._currentRequestURL&&B!==this._currentRedirectedURL&&(this._currentRedirectedURL=B,this._onURLRedirect&&this._onURLRedirect(B))}if(L.status>=200&&L.status<=299){if(this._waitForTotalLength)return;this._status=c.c.kBuffering}else{if(this._status=c.c.kError,!this._onError)throw new h.d("RangeLoader: Http code invalid, "+L.status+" "+L.statusText);this._onError(c.b.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText})}}},M.prototype._onProgress=function($){if(this._status!==c.c.kError){if(this._contentLength===null){var L=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,L=!0;var B=$.total;this._internalAbort(),B!=null&B!==0&&(this._totalLength=B)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,L)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var j=$.loaded-this._lastTimeLoaded;this._lastTimeLoaded=$.loaded,this._speedSampler.addBytes(j)}},M.prototype._normalizeSpeed=function($){var L=this._chunkSizeKBList,B=L.length-1,j=0,H=0,U=B;if($=L[j]&&$=3&&(L=this._speedSampler.currentKBps)),L!==0){var B=this._normalizeSpeed(L);this._currentSpeedNormalized!==B&&(this._currentSpeedNormalized=B,this._currentChunkSizeKB=B)}var j=$.target.response,H=this._range.from+this._receivedLength;this._receivedLength+=j.byteLength;var U=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var H=L.split("&"),U=0;U0;W[0]!==this._startName&&W[0]!==this._endName&&(K&&(j+="&"),j+=H[U])}return j.length===0?$:$+"?"+j},P})(),D=(function(){function P(M,$,L){this.TAG="IOController",this._config=$,this._extraData=L,this._stashInitialSize=65536,$.stashInitialSize!=null&&$.stashInitialSize>0&&(this._stashInitialSize=$.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=Math.max(this._stashSize,3145728),this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,$.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=M,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(M.url),this._refTotalLength=M.filesize?M.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new l,this._speedNormalizeList=[32,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return P.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},P.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},P.prototype.isPaused=function(){return this._paused},Object.defineProperty(P.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"extraData",{get:function(){return this._extraData},set:function(M){this._extraData=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(M){this._onDataArrival=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(M){this._onSeeked=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onError",{get:function(){return this._onError},set:function(M){this._onError=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onComplete",{get:function(){return this._onComplete},set:function(M){this._onComplete=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(M){this._onRedirect=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(M){this._onRecoveredEarlyEof=M},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"currentSpeed",{get:function(){return this._loaderClass===w?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),P.prototype._selectSeekHandler=function(){var M=this._config;if(M.seekType==="range")this._seekHandler=new _(this._config.rangeLoadZeroStart);else if(M.seekType==="param"){var $=M.seekParamStart||"bstart",L=M.seekParamEnd||"bend";this._seekHandler=new T($,L)}else{if(M.seekType!=="custom")throw new h.b("Invalid seekType in config: ".concat(M.seekType));if(typeof M.customSeekHandler!="function")throw new h.b("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new M.customSeekHandler}},P.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=E;else if(v.isSupported())this._loaderClass=v;else if(y.isSupported())this._loaderClass=y;else{if(!w.isSupported())throw new h.d("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=w}},P.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},P.prototype.open=function(M){this._currentRange={from:0,to:-1},M&&(this._currentRange.from=M),this._speedSampler.reset(),M||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},P.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},P.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},P.prototype.resume=function(){if(this._paused){this._paused=!1;var M=this._resumeFrom;this._resumeFrom=0,this._internalSeek(M,!0)}},P.prototype.seek=function(M){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(M,!0)},P.prototype._internalSeek=function(M,$){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer($),this._loader.destroy(),this._loader=null;var L={from:M,to:-1};this._currentRange={from:L.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,L),this._onSeeked&&this._onSeeked()},P.prototype.updateUrl=function(M){if(!M||typeof M!="string"||M.length===0)throw new h.b("Url must be a non-empty string!");this._dataSource.url=M},P.prototype._expandBuffer=function(M){for(var $=this._stashSize;$+10485760){var B=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(L,0,$).set(B,0)}this._stashBuffer=L,this._bufferSize=$}},P.prototype._normalizeSpeed=function(M){var $=this._speedNormalizeList,L=$.length-1,B=0,j=0,H=L;if(M<$[0])return $[0];for(;j<=H;){if((B=j+Math.floor((H-j)/2))===L||M>=$[B]&&M<$[B+1])return $[B];$[B]=512&&M<=1024?Math.floor(1.5*M):2*M)>8192&&($=8192);var L=1024*$+1048576;this._bufferSize0){var H=this._stashBuffer.slice(0,this._stashUsed);(K=this._dispatchChunks(H,this._stashByteStart))0&&(oe=new Uint8Array(H,K),W.set(oe,0),this._stashUsed=oe.byteLength,this._stashByteStart+=K):(this._stashUsed=0,this._stashByteStart+=K),this._stashUsed+M.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+M.byteLength),W=new Uint8Array(this._stashBuffer,0,this._bufferSize)),W.set(new Uint8Array(M),this._stashUsed),this._stashUsed+=M.byteLength}else(K=this._dispatchChunks(M,$))this._bufferSize&&(this._expandBuffer(U),W=new Uint8Array(this._stashBuffer,0,this._bufferSize)),W.set(new Uint8Array(M,K),0),this._stashUsed+=U,this._stashByteStart=$+K);else if(this._stashUsed===0){var U;(K=this._dispatchChunks(M,$))this._bufferSize&&this._expandBuffer(U),(W=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(M,K),0),this._stashUsed+=U,this._stashByteStart=$+K)}else{var W,K;if(this._stashUsed+M.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+M.byteLength),(W=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(M),this._stashUsed),this._stashUsed+=M.byteLength,(K=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart))0){var oe=new Uint8Array(this._stashBuffer,K);W.set(oe,0)}this._stashUsed-=K,this._stashByteStart+=K}}},P.prototype._flushStashBuffer=function(M){if(this._stashUsed>0){var $=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks($,this._stashByteStart),B=$.byteLength-L;if(L<$.byteLength){if(!M){if(L>0){var j=new Uint8Array(this._stashBuffer,0,this._bufferSize),H=new Uint8Array($,L);j.set(H,0),this._stashUsed=H.byteLength,this._stashByteStart+=L}return 0}s.a.w(this.TAG,"".concat(B," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,B}return 0},P.prototype._onLoaderComplete=function(M,$){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},P.prototype._onLoaderError=function(M,$){switch(s.a.e(this.TAG,"Loader error, code = ".concat($.code,", msg = ").concat($.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,M=c.b.UNRECOVERABLE_EARLY_EOF),M){case c.b.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var L=this._currentRange.to+1;return void(L0?0|c:0;return this.substring(d,d+l.length)===l}}),typeof self.Promise!="function"&&i(21).polyfill()},s})();a.install(),r.a=a},function(n,r,i){var a=i(9),s=i.n(a),l=i(0),c=i(5),d=i(7),h=i(3),p=(function(){function v(g){this.TAG="MSEController",this._config=g,this._emitter=new s.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onStartStreaming:this._onStartStreaming.bind(this),onEndStreaming:this._onEndStreaming.bind(this),onQualityChange:this._onQualityChange.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._useManagedMediaSource="ManagedMediaSource"in self&&!("MediaSource"in self),this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElementProxy=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]}}return v.prototype.destroy=function(){this._mediaSource&&this.shutdown(),this._mediaSourceObjectURL&&this.revokeObjectURL(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},v.prototype.on=function(g,y){this._emitter.addListener(g,y)},v.prototype.off=function(g,y){this._emitter.removeListener(g,y)},v.prototype.initialize=function(g){if(this._mediaSource)throw new h.a("MediaSource has been attached to an HTMLMediaElement!");this._useManagedMediaSource&&l.a.v(this.TAG,"Using ManagedMediaSource");var y=this._mediaSource=this._useManagedMediaSource?new self.ManagedMediaSource:new self.MediaSource;y.addEventListener("sourceopen",this.e.onSourceOpen),y.addEventListener("sourceended",this.e.onSourceEnded),y.addEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(y.addEventListener("startstreaming",this.e.onStartStreaming),y.addEventListener("endstreaming",this.e.onEndStreaming),y.addEventListener("qualitychange",this.e.onQualityChange)),this._mediaElementProxy=g},v.prototype.shutdown=function(){if(this._mediaSource){var g=this._mediaSource;for(var y in this._sourceBuffers){var S=this._pendingSegments[y];S.splice(0,S.length),this._pendingSegments[y]=null,this._pendingRemoveRanges[y]=null,this._lastInitSegments[y]=null;var k=this._sourceBuffers[y];if(k){if(g.readyState!=="closed"){try{g.removeSourceBuffer(k)}catch(w){l.a.e(this.TAG,w.message)}k.removeEventListener("error",this.e.onSourceBufferError),k.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[y]=null,this._sourceBuffers[y]=null}}if(g.readyState==="open")try{g.endOfStream()}catch(w){l.a.e(this.TAG,w.message)}this._mediaElementProxy=null,g.removeEventListener("sourceopen",this.e.onSourceOpen),g.removeEventListener("sourceended",this.e.onSourceEnded),g.removeEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(g.removeEventListener("startstreaming",this.e.onStartStreaming),g.removeEventListener("endstreaming",this.e.onEndStreaming),g.removeEventListener("qualitychange",this.e.onQualityChange)),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._mediaSource=null}},v.prototype.isManagedMediaSource=function(){return this._useManagedMediaSource},v.prototype.getObject=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSource},v.prototype.getHandle=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSource.handle},v.prototype.getObjectURL=function(){if(!this._mediaSource)throw new h.a("MediaSource has not been initialized yet!");return this._mediaSourceObjectURL==null&&(this._mediaSourceObjectURL=URL.createObjectURL(this._mediaSource)),this._mediaSourceObjectURL},v.prototype.revokeObjectURL=function(){this._mediaSourceObjectURL&&(URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},v.prototype.appendInitSegment=function(g,y){if(y===void 0&&(y=void 0),!this._mediaSource||this._mediaSource.readyState!=="open"||this._mediaSource.streaming===!1)return this._pendingSourceBufferInit.push(g),void this._pendingSegments[g.type].push(g);var S=g,k="".concat(S.container);S.codec&&S.codec.length>0&&(S.codec==="opus"&&c.a.safari&&(S.codec="Opus"),k+=";codecs=".concat(S.codec));var w=!1;if(l.a.v(this.TAG,"Received Initialization Segment, mimeType: "+k),this._lastInitSegments[S.type]=S,k!==this._mimeTypes[S.type]){if(this._mimeTypes[S.type])l.a.v(this.TAG,"Notice: ".concat(S.type," mimeType changed, origin: ").concat(this._mimeTypes[S.type],", target: ").concat(k));else{w=!0;try{var x=this._sourceBuffers[S.type]=this._mediaSource.addSourceBuffer(k);x.addEventListener("error",this.e.onSourceBufferError),x.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(E){return l.a.e(this.TAG,E.message),void this._emitter.emit(d.a.ERROR,{code:E.code,msg:E.message})}}this._mimeTypes[S.type]=k}y||this._pendingSegments[S.type].push(S),w||this._sourceBuffers[S.type]&&!this._sourceBuffers[S.type].updating&&this._doAppendSegments(),c.a.safari&&S.container==="audio/mpeg"&&S.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=S.mediaDuration/1e3,this._updateMediaSourceDuration())},v.prototype.appendMediaSegment=function(g){var y=g;this._pendingSegments[y.type].push(y),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var S=this._sourceBuffers[y.type];!S||S.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()},v.prototype.flush=function(){for(var g in this._sourceBuffers)if(this._sourceBuffers[g]){var y=this._sourceBuffers[g];if(this._mediaSource.readyState==="open")try{y.abort()}catch(_){l.a.e(this.TAG,_.message)}var S=this._pendingSegments[g];if(S.splice(0,S.length),this._mediaSource.readyState!=="closed"){for(var k=0;k=1&&g-k.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},v.prototype._doCleanupSourceBuffer=function(){var g=this._mediaElementProxy.getCurrentTime();for(var y in this._sourceBuffers){var S=this._sourceBuffers[y];if(S){for(var k=S.buffered,w=!1,x=0;x=this._config.autoCleanupMaxBackwardDuration){w=!0;var T=g-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[y].push({start:E,end:T})}}else _0&&(isNaN(y)||S>y)&&(l.a.v(this.TAG,"Update MediaSource duration from ".concat(y," to ").concat(S)),this._mediaSource.duration=S),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},v.prototype._doRemoveRanges=function(){for(var g in this._pendingRemoveRanges)if(this._sourceBuffers[g]&&!this._sourceBuffers[g].updating)for(var y=this._sourceBuffers[g],S=this._pendingRemoveRanges[g];S.length&&!y.updating;){var k=S.shift();y.remove(k.start,k.end)}},v.prototype._doAppendSegments=function(){var g=this._pendingSegments;for(var y in g)if(this._sourceBuffers[y]&&!this._sourceBuffers[y].updating&&this._mediaSource.streaming!==!1&&g[y].length>0){var S=g[y].shift();if(typeof S.timestampOffset=="number"&&isFinite(S.timestampOffset)){var k=this._sourceBuffers[y].timestampOffset,w=S.timestampOffset/1e3;Math.abs(k-w)>.1&&(l.a.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(k," to ").concat(w)),this._sourceBuffers[y].timestampOffset=w),delete S.timestampOffset}if(!S.data||S.data.byteLength===0)continue;try{this._sourceBuffers[y].appendBuffer(S.data),this._isBufferFull=!1}catch(x){this._pendingSegments[y].unshift(S),x.code===22?(this._isBufferFull||this._emitter.emit(d.a.BUFFER_FULL),this._isBufferFull=!0):(l.a.e(this.TAG,x.message),this._emitter.emit(d.a.ERROR,{code:x.code,msg:x.message}))}}},v.prototype._onSourceOpen=function(){if(l.a.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var g=this._pendingSourceBufferInit;g.length;){var y=g.shift();this.appendInitSegment(y,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(d.a.SOURCE_OPEN)},v.prototype._onStartStreaming=function(){l.a.v(this.TAG,"ManagedMediaSource onStartStreaming"),this._emitter.emit(d.a.START_STREAMING)},v.prototype._onEndStreaming=function(){l.a.v(this.TAG,"ManagedMediaSource onEndStreaming"),this._emitter.emit(d.a.END_STREAMING)},v.prototype._onQualityChange=function(){l.a.v(this.TAG,"ManagedMediaSource onQualityChange")},v.prototype._onSourceEnded=function(){l.a.v(this.TAG,"MediaSource onSourceEnded")},v.prototype._onSourceClose=function(){l.a.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose),this._useManagedMediaSource&&(this._mediaSource.removeEventListener("startstreaming",this.e.onStartStreaming),this._mediaSource.removeEventListener("endstreaming",this.e.onEndStreaming),this._mediaSource.removeEventListener("qualitychange",this.e.onQualityChange)))},v.prototype._hasPendingSegments=function(){var g=this._pendingSegments;return g.video.length>0||g.audio.length>0},v.prototype._hasPendingRemoveRanges=function(){var g=this._pendingRemoveRanges;return g.video.length>0||g.audio.length>0},v.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(d.a.UPDATE_END)},v.prototype._onSourceBufferError=function(g){l.a.e(this.TAG,"SourceBuffer Error: ".concat(g))},v})();r.a=p},function(n,r,i){var a=i(9),s=i.n(a),l=i(18),c=i.n(l),d=i(0),h=i(8),p=i(13),v=i(1),g=(i(19),i(12)),y=(function(){function S(k,w){if(this.TAG="Transmuxer",this._emitter=new s.a,w.enableWorker&&typeof Worker<"u")try{this._worker=c()(19),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[k,w]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},h.a.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:h.a.getConfig()})}catch{d.a.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new p.a(k,w)}else this._controller=new p.a(k,w);if(this._controller){var x=this._controller;x.on(v.a.IO_ERROR,this._onIOError.bind(this)),x.on(v.a.DEMUX_ERROR,this._onDemuxError.bind(this)),x.on(v.a.INIT_SEGMENT,this._onInitSegment.bind(this)),x.on(v.a.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),x.on(v.a.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),x.on(v.a.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),x.on(v.a.MEDIA_INFO,this._onMediaInfo.bind(this)),x.on(v.a.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),x.on(v.a.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),x.on(v.a.TIMED_ID3_METADATA_ARRIVED,this._onTimedID3MetadataArrived.bind(this)),x.on(v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,this._onSynchronousKLVMetadataArrived.bind(this)),x.on(v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,this._onAsynchronousKLVMetadataArrived.bind(this)),x.on(v.a.SMPTE2038_METADATA_ARRIVED,this._onSMPTE2038MetadataArrived.bind(this)),x.on(v.a.SCTE35_METADATA_ARRIVED,this._onSCTE35MetadataArrived.bind(this)),x.on(v.a.PES_PRIVATE_DATA_DESCRIPTOR,this._onPESPrivateDataDescriptor.bind(this)),x.on(v.a.PES_PRIVATE_DATA_ARRIVED,this._onPESPrivateDataArrived.bind(this)),x.on(v.a.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),x.on(v.a.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return S.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),h.a.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},S.prototype.on=function(k,w){this._emitter.addListener(k,w)},S.prototype.off=function(k,w){this._emitter.removeListener(k,w)},S.prototype.hasWorker=function(){return this._worker!=null},S.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},S.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},S.prototype.seek=function(k){this._worker?this._worker.postMessage({cmd:"seek",param:k}):this._controller.seek(k)},S.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},S.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},S.prototype._onInitSegment=function(k,w){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.INIT_SEGMENT,k,w)}))},S.prototype._onMediaSegment=function(k,w){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.MEDIA_SEGMENT,k,w)}))},S.prototype._onLoadingComplete=function(){var k=this;Promise.resolve().then((function(){k._emitter.emit(v.a.LOADING_COMPLETE)}))},S.prototype._onRecoveredEarlyEof=function(){var k=this;Promise.resolve().then((function(){k._emitter.emit(v.a.RECOVERED_EARLY_EOF)}))},S.prototype._onMediaInfo=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.MEDIA_INFO,k)}))},S.prototype._onMetaDataArrived=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.METADATA_ARRIVED,k)}))},S.prototype._onScriptDataArrived=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.SCRIPTDATA_ARRIVED,k)}))},S.prototype._onTimedID3MetadataArrived=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.TIMED_ID3_METADATA_ARRIVED,k)}))},S.prototype._onSynchronousKLVMetadataArrived=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,k)}))},S.prototype._onAsynchronousKLVMetadataArrived=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,k)}))},S.prototype._onSMPTE2038MetadataArrived=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.SMPTE2038_METADATA_ARRIVED,k)}))},S.prototype._onSCTE35MetadataArrived=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.SCTE35_METADATA_ARRIVED,k)}))},S.prototype._onPESPrivateDataDescriptor=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.PES_PRIVATE_DATA_DESCRIPTOR,k)}))},S.prototype._onPESPrivateDataArrived=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.PES_PRIVATE_DATA_ARRIVED,k)}))},S.prototype._onStatisticsInfo=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.STATISTICS_INFO,k)}))},S.prototype._onIOError=function(k,w){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.IO_ERROR,k,w)}))},S.prototype._onDemuxError=function(k,w){var x=this;Promise.resolve().then((function(){x._emitter.emit(v.a.DEMUX_ERROR,k,w)}))},S.prototype._onRecommendSeekpoint=function(k){var w=this;Promise.resolve().then((function(){w._emitter.emit(v.a.RECOMMEND_SEEKPOINT,k)}))},S.prototype._onLoggingConfigChanged=function(k){this._worker&&this._worker.postMessage({cmd:"logging_config",param:k})},S.prototype._onWorkerMessage=function(k){var w=k.data,x=w.data;if(w.msg==="destroyed"||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(w.msg){case v.a.INIT_SEGMENT:case v.a.MEDIA_SEGMENT:this._emitter.emit(w.msg,x.type,x.data);break;case v.a.LOADING_COMPLETE:case v.a.RECOVERED_EARLY_EOF:this._emitter.emit(w.msg);break;case v.a.MEDIA_INFO:Object.setPrototypeOf(x,g.a.prototype),this._emitter.emit(w.msg,x);break;case v.a.METADATA_ARRIVED:case v.a.SCRIPTDATA_ARRIVED:case v.a.TIMED_ID3_METADATA_ARRIVED:case v.a.SYNCHRONOUS_KLV_METADATA_ARRIVED:case v.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED:case v.a.SMPTE2038_METADATA_ARRIVED:case v.a.SCTE35_METADATA_ARRIVED:case v.a.PES_PRIVATE_DATA_DESCRIPTOR:case v.a.PES_PRIVATE_DATA_ARRIVED:case v.a.STATISTICS_INFO:this._emitter.emit(w.msg,x);break;case v.a.IO_ERROR:case v.a.DEMUX_ERROR:this._emitter.emit(w.msg,x.type,x.info);break;case v.a.RECOMMEND_SEEKPOINT:this._emitter.emit(w.msg,x);break;case"logcat_callback":d.a.emitter.emit("log",x.type,x.logcat)}},S})();r.a=y},function(n,r,i){function a(d){var h={};function p(g){if(h[g])return h[g].exports;var y=h[g]={i:g,l:!1,exports:{}};return d[g].call(y.exports,y,y.exports,p),y.l=!0,y.exports}p.m=d,p.c=h,p.i=function(g){return g},p.d=function(g,y,S){p.o(g,y)||Object.defineProperty(g,y,{configurable:!1,enumerable:!0,get:S})},p.r=function(g){Object.defineProperty(g,"__esModule",{value:!0})},p.n=function(g){var y=g&&g.__esModule?function(){return g.default}:function(){return g};return p.d(y,"a",y),y},p.o=function(g,y){return Object.prototype.hasOwnProperty.call(g,y)},p.p="/",p.oe=function(g){throw console.error(g),g};var v=p(p.s=ENTRY_MODULE);return v.default||v}function s(d){return(d+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function l(d,h,p){var v={};v[p]=[];var g=h.toString(),y=g.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!y)return v;for(var S,k=y[1],w=new RegExp("(\\\\n|\\W)"+s(k)+"\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");S=w.exec(g);)S[3]!=="dll-reference"&&v[p].push(S[3]);for(w=new RegExp("\\("+s(k)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");S=w.exec(g);)d[S[2]]||(v[p].push(S[1]),d[S[2]]=i(S[1]).m),v[S[2]]=v[S[2]]||[],v[S[2]].push(S[4]);for(var x,E=Object.keys(v),_=0;_0}),!1)}n.exports=function(d,h){h=h||{};var p={main:i.m},v=h.all?{main:Object.keys(p.main)}:(function(w,x){for(var E={main:[x]},_={main:[]},T={main:{}};c(E);)for(var D=Object.keys(E),P=0;P"u"&&a!==void 0&&{}.toString.call(a)==="[object process]",x=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function E(){var ge=setTimeout;return function(){return ge(T,1)}}var _=new Array(1e3);function T(){for(var ge=0;ge1)for(var _=1;_0){var ae=this._media_element.buffered.start(0);(ae<1&&q0){var ae=se.start(0);if(ae<1&&Q=ae&&q0&&this._suspendTransmuxerIfBufferedPositionExceeded(se)},W.prototype._suspendTransmuxerIfBufferedPositionExceeded=function(q){q>=this._media_element.currentTime+this._config.lazyLoadMaxDuration&&!this._paused&&(p.a.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this.suspendTransmuxer(),this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate))},W.prototype.suspendTransmuxer=function(){this._paused=!0,this._on_pause_transmuxer()},W.prototype._resumeTransmuxerIfNeeded=function(){for(var q=this._media_element.buffered,Q=this._media_element.currentTime,se=this._config.lazyLoadRecoverDuration,ae=!1,re=0;re=Ce&&Q=Ve-se&&(ae=!0);break}}ae&&(p.a.v(this.TAG,"Continue loading from paused position"),this.resumeTransmuxer(),this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate))},W.prototype.resumeTransmuxer=function(){this._paused=!1,this._on_resume_transmuxer()},W})(),O=(function(){function W(q,Q){this.TAG="StartupStallJumper",this._media_element=null,this._on_direct_seek=null,this._canplay_received=!1,this.e=null,this._media_element=q,this._on_direct_seek=Q,this.e={onMediaCanPlay:this._onMediaCanPlay.bind(this),onMediaStalled:this._onMediaStalled.bind(this),onMediaProgress:this._onMediaProgress.bind(this)},this._media_element.addEventListener("canplay",this.e.onMediaCanPlay),this._media_element.addEventListener("stalled",this.e.onMediaStalled),this._media_element.addEventListener("progress",this.e.onMediaProgress)}return W.prototype.destroy=function(){this._media_element.removeEventListener("canplay",this.e.onMediaCanPlay),this._media_element.removeEventListener("stalled",this.e.onMediaStalled),this._media_element.removeEventListener("progress",this.e.onMediaProgress),this._media_element=null,this._on_direct_seek=null},W.prototype._onMediaCanPlay=function(q){this._canplay_received=!0,this._media_element.removeEventListener("canplay",this.e.onMediaCanPlay)},W.prototype._onMediaStalled=function(q){this._detectAndFixStuckPlayback(!0)},W.prototype._onMediaProgress=function(q){this._detectAndFixStuckPlayback()},W.prototype._detectAndFixStuckPlayback=function(q){var Q=this._media_element,se=Q.buffered;q||!this._canplay_received||Q.readyState<2?se.length>0&&Q.currentTimethis._config.liveBufferLatencyMaxLatency&&ae-Q>this._config.liveBufferLatencyMaxLatency){var re=ae-this._config.liveBufferLatencyMinRemain;this._on_direct_seek(re)}}},W})(),B=(function(){function W(q,Q){this._config=null,this._media_element=null,this.e=null,this._config=q,this._media_element=Q,this.e={onMediaTimeUpdate:this._onMediaTimeUpdate.bind(this)},this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate)}return W.prototype.destroy=function(){this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element=null,this._config=null},W.prototype._onMediaTimeUpdate=function(q){if(this._config.isLive&&this._config.liveSync){var Q=this._getCurrentLatency();if(Q>this._config.liveSyncMaxLatency){var se=Math.min(2,Math.max(1,this._config.liveSyncPlaybackRate));this._media_element.playbackRate=se}else Q>this._config.liveSyncTargetLatency||this._media_element.playbackRate!==1&&this._media_element.playbackRate!==0&&(this._media_element.playbackRate=1)}},W.prototype._getCurrentLatency=function(){if(!this._media_element)return 0;var q=this._media_element.buffered,Q=this._media_element.currentTime;return q.length==0?0:q.end(q.length-1)-Q},W})(),j=(function(){function W(q,Q){this.TAG="PlayerEngineMainThread",this._emitter=new v,this._media_element=null,this._mse_controller=null,this._transmuxer=null,this._pending_seek_time=null,this._seeking_handler=null,this._loading_controller=null,this._startup_stall_jumper=null,this._live_latency_chaser=null,this._live_latency_synchronizer=null,this._mse_source_opened=!1,this._has_pending_load=!1,this._loaded_metadata_received=!1,this._media_info=null,this._statistics_info=null,this.e=null,this._media_data_source=q,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q),q.isLive===!0&&(this._config.isLive=!0),this.e={onMediaLoadedMetadata:this._onMediaLoadedMetadata.bind(this)}}return W.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this._transmuxer&&this.unload(),this._media_element&&this.detachMediaElement(),this.e=null,this._media_data_source=null,this._emitter.removeAllListeners(),this._emitter=null},W.prototype.on=function(q,Q){var se=this;this._emitter.addListener(q,Q),q===S.a.MEDIA_INFO&&this._media_info?Promise.resolve().then((function(){return se._emitter.emit(S.a.MEDIA_INFO,se.mediaInfo)})):q==S.a.STATISTICS_INFO&&this._statistics_info&&Promise.resolve().then((function(){return se._emitter.emit(S.a.STATISTICS_INFO,se.statisticsInfo)}))},W.prototype.off=function(q,Q){this._emitter.removeListener(q,Q)},W.prototype.attachMediaElement=function(q){var Q=this;this._media_element=q,q.src="",q.removeAttribute("src"),q.srcObject=null,q.load(),q.addEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._mse_controller=new y.a(this._config),this._mse_controller.on(C.a.UPDATE_END,this._onMSEUpdateEnd.bind(this)),this._mse_controller.on(C.a.BUFFER_FULL,this._onMSEBufferFull.bind(this)),this._mse_controller.on(C.a.SOURCE_OPEN,this._onMSESourceOpen.bind(this)),this._mse_controller.on(C.a.ERROR,this._onMSEError.bind(this)),this._mse_controller.on(C.a.START_STREAMING,this._onMSEStartStreaming.bind(this)),this._mse_controller.on(C.a.END_STREAMING,this._onMSEEndStreaming.bind(this)),this._mse_controller.initialize({getCurrentTime:function(){return Q._media_element.currentTime},getReadyState:function(){return Q._media_element.readyState}}),this._mse_controller.isManagedMediaSource()?(q.disableRemotePlayback=!0,q.srcObject=this._mse_controller.getObject()):q.src=this._mse_controller.getObjectURL()},W.prototype.detachMediaElement=function(){this._media_element&&(this._mse_controller.shutdown(),this._media_element.removeEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element=null,this._mse_controller.revokeObjectURL()),this._mse_controller&&(this._mse_controller.destroy(),this._mse_controller=null)},W.prototype.load=function(){var q=this;if(!this._media_element)throw new E.a("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new E.a("load() has been called, please call unload() first!");this._has_pending_load||(!this._config.deferLoadAfterSourceOpen||this._mse_source_opened?(this._transmuxer=new k.a(this._media_data_source,this._config),this._transmuxer.on(_.a.INIT_SEGMENT,(function(Q,se){q._mse_controller.appendInitSegment(se)})),this._transmuxer.on(_.a.MEDIA_SEGMENT,(function(Q,se){q._mse_controller.appendMediaSegment(se),!q._config.isLive&&Q==="video"&&se.data&&se.data.byteLength>0&&"info"in se&&q._seeking_handler.appendSyncPoints(se.info.syncPoints),q._loading_controller.notifyBufferedPositionChanged(se.info.endDts/1e3)})),this._transmuxer.on(_.a.LOADING_COMPLETE,(function(){q._mse_controller.endOfStream(),q._emitter.emit(S.a.LOADING_COMPLETE)})),this._transmuxer.on(_.a.RECOVERED_EARLY_EOF,(function(){q._emitter.emit(S.a.RECOVERED_EARLY_EOF)})),this._transmuxer.on(_.a.IO_ERROR,(function(Q,se){q._emitter.emit(S.a.ERROR,x.b.NETWORK_ERROR,Q,se)})),this._transmuxer.on(_.a.DEMUX_ERROR,(function(Q,se){q._emitter.emit(S.a.ERROR,x.b.MEDIA_ERROR,Q,se)})),this._transmuxer.on(_.a.MEDIA_INFO,(function(Q){q._media_info=Q,q._emitter.emit(S.a.MEDIA_INFO,Object.assign({},Q))})),this._transmuxer.on(_.a.STATISTICS_INFO,(function(Q){q._statistics_info=q._fillStatisticsInfo(Q),q._emitter.emit(S.a.STATISTICS_INFO,Object.assign({},Q))})),this._transmuxer.on(_.a.RECOMMEND_SEEKPOINT,(function(Q){q._media_element&&!q._config.accurateSeek&&q._seeking_handler.directSeek(Q/1e3)})),this._transmuxer.on(_.a.METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SCRIPTDATA_ARRIVED,(function(Q){q._emitter.emit(S.a.SCRIPTDATA_ARRIVED,Q)})),this._transmuxer.on(_.a.TIMED_ID3_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.TIMED_ID3_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SMPTE2038_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.SMPTE2038_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SCTE35_METADATA_ARRIVED,(function(Q){q._emitter.emit(S.a.SCTE35_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.PES_PRIVATE_DATA_DESCRIPTOR,(function(Q){q._emitter.emit(S.a.PES_PRIVATE_DATA_DESCRIPTOR,Q)})),this._transmuxer.on(_.a.PES_PRIVATE_DATA_ARRIVED,(function(Q){q._emitter.emit(S.a.PES_PRIVATE_DATA_ARRIVED,Q)})),this._seeking_handler=new P(this._config,this._media_element,this._onRequiredUnbufferedSeek.bind(this)),this._loading_controller=new M(this._config,this._media_element,this._onRequestPauseTransmuxer.bind(this),this._onRequestResumeTransmuxer.bind(this)),this._startup_stall_jumper=new O(this._media_element,this._onRequestDirectSeek.bind(this)),this._config.isLive&&this._config.liveBufferLatencyChasing&&(this._live_latency_chaser=new L(this._config,this._media_element,this._onRequestDirectSeek.bind(this))),this._config.isLive&&this._config.liveSync&&(this._live_latency_synchronizer=new B(this._config,this._media_element)),this._media_element.readyState>0&&this._seeking_handler.directSeek(0),this._transmuxer.open()):this._has_pending_load=!0)},W.prototype.unload=function(){var q,Q,se,ae,re,Ce,Ve,ge,xe;(q=this._media_element)===null||q===void 0||q.pause(),(Q=this._live_latency_synchronizer)===null||Q===void 0||Q.destroy(),this._live_latency_synchronizer=null,(se=this._live_latency_chaser)===null||se===void 0||se.destroy(),this._live_latency_chaser=null,(ae=this._startup_stall_jumper)===null||ae===void 0||ae.destroy(),this._startup_stall_jumper=null,(re=this._loading_controller)===null||re===void 0||re.destroy(),this._loading_controller=null,(Ce=this._seeking_handler)===null||Ce===void 0||Ce.destroy(),this._seeking_handler=null,(Ve=this._mse_controller)===null||Ve===void 0||Ve.flush(),(ge=this._transmuxer)===null||ge===void 0||ge.close(),(xe=this._transmuxer)===null||xe===void 0||xe.destroy(),this._transmuxer=null},W.prototype.play=function(){return this._media_element.play()},W.prototype.pause=function(){this._media_element.pause()},W.prototype.seek=function(q){this._media_element&&this._seeking_handler?this._seeking_handler.seek(q):this._pending_seek_time=q},Object.defineProperty(W.prototype,"mediaInfo",{get:function(){return Object.assign({},this._media_info)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"statisticsInfo",{get:function(){return Object.assign({},this._statistics_info)},enumerable:!1,configurable:!0}),W.prototype._onMSESourceOpen=function(){this._mse_source_opened=!0,this._has_pending_load&&(this._has_pending_load=!1,this.load())},W.prototype._onMSEUpdateEnd=function(){this._config.isLive&&this._config.liveBufferLatencyChasing&&this._live_latency_chaser&&this._live_latency_chaser.notifyBufferedRangeUpdate(),this._loading_controller.notifyBufferedPositionChanged()},W.prototype._onMSEBufferFull=function(){p.a.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._loading_controller.suspendTransmuxer()},W.prototype._onMSEError=function(q){this._emitter.emit(S.a.ERROR,x.b.MEDIA_ERROR,x.a.MEDIA_MSE_ERROR,q)},W.prototype._onMSEStartStreaming=function(){this._loaded_metadata_received&&(this._config.isLive||(p.a.v(this.TAG,"Resume transmuxing task due to ManagedMediaSource onStartStreaming"),this._loading_controller.resumeTransmuxer()))},W.prototype._onMSEEndStreaming=function(){this._config.isLive||(p.a.v(this.TAG,"Suspend transmuxing task due to ManagedMediaSource onEndStreaming"),this._loading_controller.suspendTransmuxer())},W.prototype._onMediaLoadedMetadata=function(q){this._loaded_metadata_received=!0,this._pending_seek_time!=null&&(this._seeking_handler.seek(this._pending_seek_time),this._pending_seek_time=null)},W.prototype._onRequestDirectSeek=function(q){this._seeking_handler.directSeek(q)},W.prototype._onRequiredUnbufferedSeek=function(q){this._mse_controller.flush(),this._transmuxer.seek(q)},W.prototype._onRequestPauseTransmuxer=function(){this._transmuxer.pause()},W.prototype._onRequestResumeTransmuxer=function(){this._transmuxer.resume()},W.prototype._fillStatisticsInfo=function(q){if(q.playerType="MSEPlayer",!(this._media_element instanceof HTMLVideoElement))return q;var Q=!0,se=0,ae=0;if(this._media_element.getVideoPlaybackQuality){var re=this._media_element.getVideoPlaybackQuality();se=re.totalVideoFrames,ae=re.droppedVideoFrames}else this._media_element.webkitDecodedFrameCount!=null?(se=this._media_element.webkitDecodedFrameCount,ae=this._media_element.webkitDroppedFrameCount):Q=!1;return Q&&(q.decodedFrames=se,q.droppedFrames=ae),q},W})(),H=i(18),U=i(8),K=(function(){function W(q,Q){this.TAG="PlayerEngineDedicatedThread",this._emitter=new v,this._media_element=null,this._worker_destroying=!1,this._seeking_handler=null,this._loading_controller=null,this._startup_stall_jumper=null,this._live_latency_chaser=null,this._live_latency_synchronizer=null,this._pending_seek_time=null,this._media_info=null,this._statistics_info=null,this.e=null,this._media_data_source=q,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q),q.isLive===!0&&(this._config.isLive=!0),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this),onMediaLoadedMetadata:this._onMediaLoadedMetadata.bind(this),onMediaTimeUpdate:this._onMediaTimeUpdate.bind(this),onMediaReadyStateChanged:this._onMediaReadyStateChange.bind(this)},U.a.registerListener(this.e.onLoggingConfigChanged),this._worker=H(24,{all:!0}),this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",media_data_source:this._media_data_source,config:this._config}),this._worker.postMessage({cmd:"logging_config",logging_config:U.a.getConfig()})}return W.isSupported=function(){return!!self.Worker&&(!(!self.MediaSource||!("canConstructInDedicatedWorker"in self.MediaSource)||self.MediaSource.canConstructInDedicatedWorker!==!0)||!(!self.ManagedMediaSource||!("canConstructInDedicatedWorker"in self.ManagedMediaSource)||self.ManagedMediaSource.canConstructInDedicatedWorker!==!0))},W.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this.unload(),this.detachMediaElement(),this._worker_destroying=!0,this._worker.postMessage({cmd:"destroy"}),U.a.removeListener(this.e.onLoggingConfigChanged),this.e=null,this._media_data_source=null,this._emitter.removeAllListeners(),this._emitter=null},W.prototype.on=function(q,Q){var se=this;this._emitter.addListener(q,Q),q===S.a.MEDIA_INFO&&this._media_info?Promise.resolve().then((function(){return se._emitter.emit(S.a.MEDIA_INFO,se.mediaInfo)})):q==S.a.STATISTICS_INFO&&this._statistics_info&&Promise.resolve().then((function(){return se._emitter.emit(S.a.STATISTICS_INFO,se.statisticsInfo)}))},W.prototype.off=function(q,Q){this._emitter.removeListener(q,Q)},W.prototype.attachMediaElement=function(q){this._media_element=q,this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element.addEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element.addEventListener("readystatechange",this.e.onMediaReadyStateChanged),this._worker.postMessage({cmd:"initialize_mse"})},W.prototype.detachMediaElement=function(){this._worker.postMessage({cmd:"shutdown_mse"}),this._media_element&&(this._media_element.removeEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element.removeEventListener("readystatechange",this.e.onMediaReadyStateChanged),this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element=null)},W.prototype.load=function(){this._worker.postMessage({cmd:"load"}),this._seeking_handler=new P(this._config,this._media_element,this._onRequiredUnbufferedSeek.bind(this)),this._loading_controller=new M(this._config,this._media_element,this._onRequestPauseTransmuxer.bind(this),this._onRequestResumeTransmuxer.bind(this)),this._startup_stall_jumper=new O(this._media_element,this._onRequestDirectSeek.bind(this)),this._config.isLive&&this._config.liveBufferLatencyChasing&&(this._live_latency_chaser=new L(this._config,this._media_element,this._onRequestDirectSeek.bind(this))),this._config.isLive&&this._config.liveSync&&(this._live_latency_synchronizer=new B(this._config,this._media_element)),this._media_element.readyState>0&&this._seeking_handler.directSeek(0)},W.prototype.unload=function(){var q,Q,se,ae,re,Ce;(q=this._media_element)===null||q===void 0||q.pause(),this._worker.postMessage({cmd:"unload"}),(Q=this._live_latency_synchronizer)===null||Q===void 0||Q.destroy(),this._live_latency_synchronizer=null,(se=this._live_latency_chaser)===null||se===void 0||se.destroy(),this._live_latency_chaser=null,(ae=this._startup_stall_jumper)===null||ae===void 0||ae.destroy(),this._startup_stall_jumper=null,(re=this._loading_controller)===null||re===void 0||re.destroy(),this._loading_controller=null,(Ce=this._seeking_handler)===null||Ce===void 0||Ce.destroy(),this._seeking_handler=null},W.prototype.play=function(){return this._media_element.play()},W.prototype.pause=function(){this._media_element.pause()},W.prototype.seek=function(q){this._media_element&&this._seeking_handler?this._seeking_handler.seek(q):this._pending_seek_time=q},Object.defineProperty(W.prototype,"mediaInfo",{get:function(){return Object.assign({},this._media_info)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"statisticsInfo",{get:function(){return Object.assign({},this._statistics_info)},enumerable:!1,configurable:!0}),W.prototype._onLoggingConfigChanged=function(q){var Q;(Q=this._worker)===null||Q===void 0||Q.postMessage({cmd:"logging_config",logging_config:q})},W.prototype._onMSEUpdateEnd=function(){this._config.isLive&&this._config.liveBufferLatencyChasing&&this._live_latency_chaser&&this._live_latency_chaser.notifyBufferedRangeUpdate(),this._loading_controller.notifyBufferedPositionChanged()},W.prototype._onMSEBufferFull=function(){p.a.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._loading_controller.suspendTransmuxer()},W.prototype._onMediaLoadedMetadata=function(q){this._pending_seek_time!=null&&(this._seeking_handler.seek(this._pending_seek_time),this._pending_seek_time=null)},W.prototype._onRequestDirectSeek=function(q){this._seeking_handler.directSeek(q)},W.prototype._onRequiredUnbufferedSeek=function(q){this._worker.postMessage({cmd:"unbuffered_seek",milliseconds:q})},W.prototype._onRequestPauseTransmuxer=function(){this._worker.postMessage({cmd:"pause_transmuxer"})},W.prototype._onRequestResumeTransmuxer=function(){this._worker.postMessage({cmd:"resume_transmuxer"})},W.prototype._onMediaTimeUpdate=function(q){this._worker.postMessage({cmd:"timeupdate",current_time:q.target.currentTime})},W.prototype._onMediaReadyStateChange=function(q){this._worker.postMessage({cmd:"readystatechange",ready_state:q.target.readyState})},W.prototype._onWorkerMessage=function(q){var Q,se=q.data,ae=se.msg;if(ae=="destroyed"||this._worker_destroying)return this._worker_destroying=!1,(Q=this._worker)===null||Q===void 0||Q.terminate(),void(this._worker=null);switch(ae){case"mse_init":var re=se;"ManagedMediaSource"in self&&!("MediaSource"in self)&&(this._media_element.disableRemotePlayback=!0),this._media_element.srcObject=re.handle;break;case"mse_event":(re=se).event==C.a.UPDATE_END?this._onMSEUpdateEnd():re.event==C.a.BUFFER_FULL&&this._onMSEBufferFull();break;case"transmuxing_event":if((re=se).event==_.a.MEDIA_INFO){var Ce=se;this._media_info=Ce.info,this._emitter.emit(S.a.MEDIA_INFO,Object.assign({},Ce.info))}else if(re.event==_.a.STATISTICS_INFO){var Ve=se;this._statistics_info=this._fillStatisticsInfo(Ve.info),this._emitter.emit(S.a.STATISTICS_INFO,Object.assign({},Ve.info))}else if(re.event==_.a.RECOMMEND_SEEKPOINT){var ge=se;this._media_element&&!this._config.accurateSeek&&this._seeking_handler.directSeek(ge.milliseconds/1e3)}break;case"player_event":if((re=se).event==S.a.ERROR){var xe=se;this._emitter.emit(S.a.ERROR,xe.error_type,xe.error_detail,xe.info)}else if("extraData"in re){var Ge=se;this._emitter.emit(Ge.event,Ge.extraData)}break;case"logcat_callback":re=se,p.a.emitter.emit("log",re.type,re.logcat);break;case"buffered_position_changed":re=se,this._loading_controller.notifyBufferedPositionChanged(re.buffered_position_milliseconds/1e3)}},W.prototype._fillStatisticsInfo=function(q){if(q.playerType="MSEPlayer",!(this._media_element instanceof HTMLVideoElement))return q;var Q=!0,se=0,ae=0;if(this._media_element.getVideoPlaybackQuality){var re=this._media_element.getVideoPlaybackQuality();se=re.totalVideoFrames,ae=re.droppedVideoFrames}else this._media_element.webkitDecodedFrameCount!=null?(se=this._media_element.webkitDecodedFrameCount,ae=this._media_element.webkitDroppedFrameCount):Q=!1;return Q&&(q.decodedFrames=se,q.droppedFrames=ae),q},W})(),Y=(function(){function W(q,Q){this.TAG="MSEPlayer",this._type="MSEPlayer",this._media_element=null,this._player_engine=null;var se=q.type.toLowerCase();if(se!=="mse"&&se!=="mpegts"&&se!=="m2ts"&&se!=="flv")throw new E.b("MSEPlayer requires an mpegts/m2ts/flv MediaDataSource input!");if(Q&&Q.enableWorkerForMSE&&K.isSupported())try{this._player_engine=new K(q,Q)}catch{p.a.e(this.TAG,"Error while initializing PlayerEngineDedicatedThread, fallback to PlayerEngineMainThread"),this._player_engine=new j(q,Q)}else this._player_engine=new j(q,Q)}return W.prototype.destroy=function(){this._player_engine.destroy(),this._player_engine=null,this._media_element=null},W.prototype.on=function(q,Q){this._player_engine.on(q,Q)},W.prototype.off=function(q,Q){this._player_engine.off(q,Q)},W.prototype.attachMediaElement=function(q){this._media_element=q,this._player_engine.attachMediaElement(q)},W.prototype.detachMediaElement=function(){this._media_element=null,this._player_engine.detachMediaElement()},W.prototype.load=function(){this._player_engine.load()},W.prototype.unload=function(){this._player_engine.unload()},W.prototype.play=function(){return this._player_engine.play()},W.prototype.pause=function(){this._player_engine.pause()},Object.defineProperty(W.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"buffered",{get:function(){return this._media_element.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"duration",{get:function(){return this._media_element.duration},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"volume",{get:function(){return this._media_element.volume},set:function(q){this._media_element.volume=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"muted",{get:function(){return this._media_element.muted},set:function(q){this._media_element.muted=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"currentTime",{get:function(){return this._media_element?this._media_element.currentTime:0},set:function(q){this._player_engine.seek(q)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"mediaInfo",{get:function(){return this._player_engine.mediaInfo},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"statisticsInfo",{get:function(){return this._player_engine.statisticsInfo},enumerable:!1,configurable:!0}),W})(),ie=(function(){function W(q,Q){this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new g.a,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q);var se=q.type.toLowerCase();if(se==="mse"||se==="mpegts"||se==="m2ts"||se==="flv")throw new E.b("NativePlayer does't support mse/mpegts/m2ts/flv MediaDataSource input!");if(q.hasOwnProperty("segments"))throw new E.b("NativePlayer(".concat(q.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=q,this._mediaElement=null}return W.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},W.prototype.on=function(q,Q){var se=this;q===S.a.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then((function(){se._emitter.emit(S.a.MEDIA_INFO,se.mediaInfo)})):q===S.a.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then((function(){se._emitter.emit(S.a.STATISTICS_INFO,se.statisticsInfo)})),this._emitter.addListener(q,Q)},W.prototype.off=function(q,Q){this._emitter.removeListener(q,Q)},W.prototype.attachMediaElement=function(q){if(this._mediaElement=q,q.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{q.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch{}},W.prototype.detachMediaElement=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},W.prototype.load=function(){if(!this._mediaElement)throw new E.a("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},W.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},W.prototype.play=function(){return this._mediaElement.play()},W.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(W.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(q){this._mediaElement.volume=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(q){this._mediaElement.muted=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(q){this._mediaElement?this._mediaElement.currentTime=q:this._pendingSeekTime=q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"mediaInfo",{get:function(){var q={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(q.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(q.width=this._mediaElement.videoWidth,q.height=this._mediaElement.videoHeight)),q},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"statisticsInfo",{get:function(){var q={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return q;var Q=!0,se=0,ae=0;if(this._mediaElement.getVideoPlaybackQuality){var re=this._mediaElement.getVideoPlaybackQuality();se=re.totalVideoFrames,ae=re.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(se=this._mediaElement.webkitDecodedFrameCount,ae=this._mediaElement.webkitDroppedFrameCount):Q=!1;return Q&&(q.decodedFrames=se,q.droppedFrames=ae),q},enumerable:!1,configurable:!0}),W.prototype._onvLoadedMetadata=function(q){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(S.a.MEDIA_INFO,this.mediaInfo)},W.prototype._reportStatisticsInfo=function(){this._emitter.emit(S.a.STATISTICS_INFO,this.statisticsInfo)},W})();a.a.install();var te={createPlayer:function(W,q){var Q=W;if(Q==null||typeof Q!="object")throw new E.b("MediaDataSource must be an javascript object!");if(!Q.hasOwnProperty("type"))throw new E.b("MediaDataSource must has type field to indicate video file type!");switch(Q.type){case"mse":case"mpegts":case"m2ts":case"flv":return new Y(Q,q);default:return new ie(Q,q)}},isSupported:function(){return d.supportMSEH264Playback()},getFeatureList:function(){return d.getFeatureList()}};te.BaseLoader=h.a,te.LoaderStatus=h.c,te.LoaderErrors=h.b,te.Events=S.a,te.ErrorTypes=x.b,te.ErrorDetails=x.a,te.MSEPlayer=Y,te.NativePlayer=ie,te.LoggingControl=U.a,Object.defineProperty(te,"version",{enumerable:!0,get:function(){return"1.8.0"}}),r.default=te}])}))})(uj)),uj.exports}var V$t=j$t();const Sce=rd(V$t);class z$t{constructor(){this.liveData=null,this.lastFetchTime=null,this.cacheExpiry=600*1e3}async getLiveConfig(){try{const t=yl.getLiveConfigUrl();if(t)return{name:"直播配置",url:t,type:"live"};const n=await yl.getConfigData();return n&&n.lives&&Array.isArray(n.lives)&&n.lives.length>0?n.lives[0]:null}catch(t){return console.error("获取直播配置失败:",t),null}}async getLiveData(t=!1){try{const n=Date.now(),r=this.liveData&&this.lastFetchTime&&n-this.lastFetchTimel.trim()).filter(l=>l),i=new Map,a=[];let s=null;for(let l=0;l0){const E=h.substring(0,p);E.includes("=")&&(v=E,g=h.substring(p+1).trim())}const y={};if(v){const E=v.matchAll(/(\w+(?:-\w+)*)="([^"]*)"/g);for(const _ of E)y[_[1]]=_[2]}const S=y["tvg-name"]||g,k=y["group-title"]||"未分组",C=y["tvg-logo"]||this.generateLogoUrl(S,n),x=this.extractQualityInfo(g);s={name:S,displayName:g,group:k,logo:C,tvgId:y["tvg-id"]||"",tvgName:y["tvg-name"]||S,quality:x.quality,resolution:x.resolution,codec:x.codec,url:null}}}else if(c.startsWith("http")&&s){s.url=c,a.push(s);const d=s.group;i.has(d)||i.set(d,{name:d,channels:[]});const h=i.get(d),p=h.channels.find(v=>v.name===s.name);p?(p.routes||(p.routes=[{id:1,name:"线路1",url:p.url,quality:p.quality,resolution:p.resolution,codec:p.codec}]),p.routes.push({id:p.routes.length+1,name:`线路${p.routes.length+1}`,url:s.url,quality:s.quality,resolution:s.resolution,codec:s.codec}),p.currentRoute=p.routes[0]):h.channels.push(s),s=null}}}return{config:n,groups:Array.from(i.values()),channels:a,totalChannels:a.length}}extractQualityInfo(t){const n={quality:"",resolution:"",codec:""},r=[/高码/,/超清/,/高清/,/标清/,/流畅/],i=[/4K/i,/1080[pP]/,/720[pP]/,/576[pP]/,/480[pP]/,/(\d+)[pP]/],a=[/HEVC/i,/H\.?264/i,/H\.?265/i,/AVC/i],s=[/(\d+)[-\s]?FPS/i,/(\d+)帧/];for(const l of r){const c=t.match(l);if(c){n.quality=c[0];break}}for(const l of i){const c=t.match(l);if(c){n.resolution=c[0];break}}for(const l of a){const c=t.match(l);if(c){n.codec=c[0];break}}for(const l of s){const c=t.match(l);if(c){n.fps=c[1]||c[0];break}}return n}parseTXT(t,n){const r=t.split(` -`).map(l=>l.trim()).filter(l=>l),i=new Map,a=[];let s="未分组";for(const l of r)if(l.includes("#genre#")){const c=l.indexOf("#genre#");c>0?s=l.substring(0,c).replace(/,$/,"").trim():s=l.replace("#genre#","").trim(),i.has(s)||i.set(s,{name:s,channels:[]})}else if(l.includes(",http")){const c=l.split(",");if(c.length>=2){const d=c[0].trim(),h=c.slice(1).join(",").trim(),p={name:d,group:s,logo:this.generateLogoUrl(d,n),tvgName:d,url:h};a.push(p),i.has(s)||i.set(s,{name:s,channels:[]}),i.get(s).channels.push(p)}}return{config:n,groups:Array.from(i.values()),channels:a,totalChannels:a.length}}generateLogoUrl(t,n){return n.logo&&n.logo.includes("{name}")?n.logo.replace("{name}",encodeURIComponent(t)):""}getEPGUrl(t,n,r){return r.epg&&r.epg.includes("{name}")&&r.epg.includes("{date}")?r.epg.replace("{name}",encodeURIComponent(t)).replace("{date}",n):""}searchChannels(t){if(!this.liveData||!t)return[];const n=t.toLowerCase();return this.liveData.channels.filter(r=>r.name.toLowerCase().includes(n)||r.group.toLowerCase().includes(n))}getChannelsByGroup(t){if(!this.liveData)return[];const n=this.liveData.groups.find(r=>r.name===t);return n?n.channels:[]}clearCache(){this.liveData=null,this.lastFetchTime=null,console.log("直播数据缓存已清除")}getStatus(){return{hasData:!!this.liveData,lastFetchTime:this.lastFetchTime,cacheAge:this.lastFetchTime?Date.now()-this.lastFetchTime:null,isCacheValid:this.liveData&&this.lastFetchTime&&Date.now()-this.lastFetchTime{if(!g)return"未知";const y=g.indexOf("#");return y!==-1&&y{try{const g=JSON.parse(localStorage.getItem(xce)||"[]");a.value=[],g.forEach(y=>{const S=y.url||y.value||"";if(!S)return;const k=s(S);a.value.push({value:S,label:k,url:S})}),console.log("直播代理选项加载完成:",a.value.length,"个选项")}catch(g){console.error("加载直播代理选项失败:",g)}},c=()=>{try{const g=localStorage.getItem(kce);g&&g!=="null"?i.value=g:i.value="disabled",console.log("直播代理选择状态加载:",i.value)}catch(g){console.error("加载直播代理选择状态失败:",g),i.value="disabled"}},d=g=>{try{localStorage.setItem(kce,g),console.log("直播代理选择状态已保存:",g)}catch(y){console.error("保存直播代理选择状态失败:",y)}},h=g=>{i.value=g,d(g),r("change",{value:g,enabled:g!=="disabled",url:g==="disabled"?"":g}),console.log("直播代理选择已变更:",{value:g,enabled:g!=="disabled"})},p=g=>{g.key===xce&&l()},v=()=>{l()};return hn(()=>{l(),c(),window.addEventListener("storage",p),window.addEventListener("addressHistoryChanged",v)}),ii(()=>{window.removeEventListener("storage",p),window.removeEventListener("addressHistoryChanged",v)}),t({getCurrentSelection:()=>i.value,isEnabled:()=>i.value!=="disabled",getProxyUrl:()=>i.value==="disabled"?"":i.value,refreshOptions:l}),(g,y)=>{const S=Te("a-option"),k=Te("a-select");return z(),X("div",H$t,[y[1]||(y[1]=I("svg",{class:"selector-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$(k,{"model-value":i.value,onChange:h,class:"proxy-select",size:"small",placeholder:"选择代理播放地址"},{default:fe(()=>[$(S,{value:"disabled",title:"关闭代理播放功能"},{default:fe(()=>[...y[0]||(y[0]=[He("代理播放:关闭",-1)])]),_:1}),(z(!0),X(Pt,null,cn(a.value,C=>(z(),Ze(S,{key:C.value,value:C.value,title:`${C.label} -完整链接: ${C.url||C.value}`},{default:fe(()=>[He(" 代理播放:"+Ne(C.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])}}},G$t=cr(W$t,[["__scopeId","data-v-638b32e0"]]),K$t={class:"live-container"},q$t={class:"simple-header"},Y$t={class:"header-actions"},X$t={class:"live-content"},Z$t={key:0,class:"loading-container"},J$t={key:1,class:"error-container"},Q$t={key:2,class:"no-config-container"},eOt={key:3,class:"live-main"},tOt={class:"groups-panel"},nOt={class:"panel-header"},rOt={class:"group-count"},iOt={class:"groups-list"},oOt=["onClick"],sOt={class:"group-info"},aOt={class:"group-name"},lOt={class:"channel-count"},uOt={class:"channels-panel"},cOt={class:"panel-header"},dOt={class:"channel-count"},fOt={class:"channels-list"},hOt=["onClick"],pOt={class:"channel-logo"},vOt=["src","alt"],mOt={class:"channel-info"},gOt={class:"channel-name"},yOt={class:"channel-group"},bOt={class:"player-panel"},_Ot={class:"panel-header"},SOt={key:0,class:"player-controls"},kOt={class:"player-content"},xOt={key:0,class:"no-selection"},COt={key:1,class:"player-wrapper"},wOt={class:"player-controls-area"},EOt={class:"live-proxy-control"},TOt={class:"video-container"},AOt=["src"],IOt={key:0,class:"video-loading"},LOt={key:1,class:"video-error"},DOt={class:"error-detail"},POt={__name:"Live",setup(e){const t=ma();let n=null;const r=ue(!1),i=ue(""),a=ue(null),s=ue(!0),l=ue(""),c=ue(""),d=ue(null),h=ue(1),p=ue(!1),v=ue(""),g=ue(null),y=ue(!1),S=ue(!1),k=ue(""),C=ue(null),x=F(()=>{if(!a.value)return[];let Ue=a.value.groups;if(l.value){const _e=l.value.toLowerCase();Ue=Ue.filter(ve=>ve.name.toLowerCase().includes(_e)||ve.channels.some(me=>me.name.toLowerCase().includes(_e)))}return Ue}),E=F(()=>{if(!a.value||!c.value)return[];const Ue=x.value.find(ve=>ve.name===c.value);if(!Ue)return[];let _e=Ue.channels;if(l.value){const ve=l.value.toLowerCase();_e=_e.filter(me=>me.name.toLowerCase().includes(ve))}return _e}),_=F(()=>!d.value||!d.value.routes?[]:d.value.routes.map(Ue=>({name:Ue.name,id:Ue.id,url:Ue.url}))),T=F(()=>{if(!d.value||!d.value.routes)return"默认";const Ue=d.value.routes.find(_e=>_e.id===h.value);return Ue?Ue.name:"默认"}),D=async(Ue=!1)=>{r.value=!0,i.value="";try{if(!await cU.getLiveConfig()){s.value=!1;return}s.value=!0;const ve=await cU.getLiveData(Ue);a.value=ve,ve.groups.length>0&&!c.value&&(c.value=ve.groups[0].name),console.log("直播数据加载成功:",ve)}catch(_e){console.error("加载直播数据失败:",_e),i.value=_e.message||"加载直播数据失败"}finally{r.value=!1}},P=()=>{D(!0)},M=Ue=>{c.value=Ue,d.value=null},O=Ue=>{d.value=Ue,v.value="",dn(()=>{if(Ue&&Ue.routes&&Ue.routes.length>0?h.value=Number(Ue.routes[0].id):h.value=1,g.value){const _e=H();console.log("=== selectChannel 设置视频源 ==="),console.log("设置前 videoPlayer.src:",g.value.src),console.log("新的 src:",_e),g.value.src=_e,console.log("设置后 videoPlayer.src:",g.value.src),g.value.load()}L()})};function L(){n&&(n.destroy(),n=null);const Ue=H();console.log("=== setupMpegtsPlayer ==="),console.log("mpegts播放器使用的URL:",Ue),console.log("当前videoPlayer.src:",g.value?.src),!(!Ue||!g.value)&&(Ue.endsWith(".ts")||Ue.includes("mpegts")||Ue.includes("udpxy")||Ue.includes("/udp/")||Ue.includes("rtp://")||Ue.includes("udp://"))&&Sce.isSupported()&&(n=Sce.createPlayer({type:"mpegts",url:Ue}),n.attachMediaElement(g.value),n.load(),n.play())}ii(()=>{n&&(n.destroy(),n=null)});const B=()=>{if(!d.value)return"";if(d.value.routes&&d.value.routes.length>0){const Ue=d.value.routes.find(_e=>_e.id===h.value);return Ue?Ue.url:d.value.routes[0].url}return d.value.url||""},j=()=>{const Ue=B();return Ue?S.value&&k.value?(console.log("🔄 [直播代理] 构建代理URL:",{originalUrl:Ue,proxyAddress:k.value,enabled:S.value}),L4e(Ue,k.value,{})):Ue:""},H=()=>{const Ue=B(),_e=j(),ve=S.value?_e:Ue;return console.log("=== getVideoUrl 调试信息 ==="),console.log("直播代理状态:",S.value),console.log("直播代理URL:",k.value),console.log("原始URL:",Ue),console.log("代理URL:",_e),console.log("最终URL:",ve),console.log("========================"),ve},U=Ue=>{const _e=Number(Ue.target?Ue.target.value:Ue);if(!d.value||!d.value.routes)return;const ve=d.value.routes.find(me=>me.id===_e);ve&&(h.value=_e,v.value="",dn(()=>{if(g.value){const me=H();console.log("=== switchRoute 设置视频源 ==="),console.log("设置前 videoPlayer.src:",g.value.src),console.log("新的 src:",me),g.value.src=me,console.log("设置后 videoPlayer.src:",g.value.src),g.value.load()}L()}),yt.success(`已切换到${ve.name}`))},K=Ue=>{l.value=Ue,x.value.length>0&&!x.value.find(_e=>_e.name===c.value)&&(c.value=x.value[0].name)},Y=()=>{l.value=""},ie=()=>{t.push("/settings")},te=async()=>{if(d.value)try{await navigator.clipboard.writeText(d.value.url),yt.success("频道链接已复制到剪贴板")}catch(Ue){console.error("复制失败:",Ue),yt.error("复制失败")}},W=()=>{d.value&&window.open(d.value.url,"_blank")},q=Ue=>{Ue.target.style.display="none"},Q=Ue=>{console.error("视频播放错误:",Ue),v.value="无法播放此频道,可能是网络问题或频道源不可用",p.value=!1},se=()=>{p.value=!0,v.value=""},ae=()=>{p.value=!1},re=()=>{g.value&&(v.value="",g.value.load(),L())},Ce=Ue=>{if(!d.value||!d.value.routes)return;const _e=d.value.routes.find(ve=>ve.name===Ue);_e&&U(_e.id)},Ve=Ue=>{if(console.log("=== 直播代理播放地址变更 ==="),console.log("代理数据:",Ue),console.log("变更前状态:",{enabled:S.value,url:k.value}),S.value=Ue.enabled,k.value=Ue.url,console.log("变更后状态:",{enabled:S.value,url:k.value}),d.value&&(n&&(n.destroy(),n=null),g.value)){v.value="",p.value=!0;const _e=H();console.log("直播代理变更后重新设置视频源:",_e),g.value.src=_e,g.value.load(),dn(()=>{L()})}yt.success(`直播代理播放: ${Ue.enabled?"已启用":"已关闭"}`)},ge=()=>{if(y.value=!y.value,console.log("调试模式:",y.value?"开启":"关闭"),y.value){console.log("=== 调试信息详情 ===");const _e=localStorage.getItem("live-proxy-selection");console.log("localStorage中的直播代理选择:",_e),console.log("直播代理启用状态:",S.value),console.log("直播代理URL:",k.value),console.log("原始频道URL:",B()),console.log("代理后URL:",j()),console.log("传递给DebugInfoDialog的proxy-url:",S.value&&k.value?j():""),C.value&&(console.log("LiveProxySelector组件状态:"),console.log("- getCurrentSelection():",C.value.getCurrentSelection?.()),console.log("- isEnabled():",C.value.isEnabled?.()),console.log("- getProxyUrl():",C.value.getProxyUrl?.())),console.log("==================")}},xe=()=>{d.value=null,h.value=1,v.value="",n&&(n.destroy(),n=null)};It(d,Ue=>{Ue&&console.log("选中频道:",Ue.name,Ue.url)});const Ge=async()=>{try{const _e=await(await fetch("/json/tv.m3u")).text(),{default:ve}=await fc(async()=>{const{default:qe}=await Promise.resolve().then(()=>U$t);return{default:qe}},void 0),Oe=new ve().parseM3U(_e,{});a.value=Oe,Oe.groups&&Oe.groups.length>0&&(c.value=Oe.groups[0].name)}catch(Ue){console.error("加载本地M3U文件失败:",Ue)}},tt=()=>{try{const _e=localStorage.getItem("live-proxy-selection");console.log("从localStorage读取的直播代理选择:",_e),_e&&_e!=="null"&&_e!=="disabled"?(S.value=!0,k.value=_e,console.log("初始化直播代理状态:",{enabled:!0,url:_e})):(S.value=!1,k.value="",console.log("初始化直播代理状态:",{enabled:!1,url:"",reason:_e||"null/disabled"}))}catch(Ue){console.error("初始化直播代理状态失败:",Ue),S.value=!1,k.value=""}};return hn(async()=>{tt();try{await D()}catch(Ue){console.error("加载直播数据失败:",Ue),Ge()}}),(Ue,_e)=>{const ve=Te("a-button"),me=Te("a-input-search"),Oe=Te("a-spin"),qe=Te("a-result");return z(),X("div",K$t,[I("div",q$t,[_e[2]||(_e[2]=I("span",{class:"navigation-title"},"Live",-1)),I("div",Y$t,[$(ve,{type:"text",onClick:P,loading:r.value,size:"small"},{icon:fe(()=>[$(rt(zc))]),default:fe(()=>[_e[1]||(_e[1]=He(" 刷新 ",-1))]),_:1},8,["loading"]),$(me,{modelValue:l.value,"onUpdate:modelValue":_e[0]||(_e[0]=Ke=>l.value=Ke),placeholder:"搜索频道...",style:{width:"200px"},size:"small",onSearch:K,onClear:Y,"allow-clear":""},null,8,["modelValue"])])]),I("div",X$t,[r.value&&!a.value?(z(),X("div",Z$t,[$(Oe,{size:32,tip:"正在加载直播数据..."})])):i.value?(z(),X("div",J$t,[$(qe,{status:"error",title:i.value,"sub-title":"请检查网络连接或直播配置"},{extra:fe(()=>[$(ve,{type:"primary",onClick:P},{default:fe(()=>[..._e[3]||(_e[3]=[He(" 重新加载 ",-1)])]),_:1}),$(ve,{onClick:ie},{default:fe(()=>[..._e[4]||(_e[4]=[He(" 检查设置 ",-1)])]),_:1})]),_:1},8,["title"])])):s.value?a.value?(z(),X("div",eOt,[I("div",tOt,[I("div",nOt,[_e[6]||(_e[6]=I("h3",null,"分组列表",-1)),I("span",rOt,Ne(x.value.length)+"个分组",1)]),I("div",iOt,[(z(!0),X(Pt,null,cn(x.value,Ke=>(z(),X("div",{key:Ke.name,class:de(["group-item",{active:c.value===Ke.name}]),onClick:at=>M(Ke.name)},[I("div",sOt,[I("span",aOt,Ne(Ke.name),1),I("span",lOt,Ne(Ke.channels.length),1)])],10,oOt))),128))])]),I("div",uOt,[I("div",cOt,[_e[7]||(_e[7]=I("h3",null,"频道列表",-1)),I("span",dOt,Ne(E.value.length)+"个频道",1)]),I("div",fOt,[(z(!0),X(Pt,null,cn(E.value,Ke=>(z(),X("div",{key:Ke.name,class:de(["channel-item",{active:d.value?.name===Ke.name}]),onClick:at=>O(Ke)},[I("div",pOt,[Ke.logo?(z(),X("img",{key:0,src:Ke.logo,alt:Ke.name,onError:q},null,40,vOt)):(z(),Ze(rt(u_),{key:1,class:"default-logo"}))]),I("div",mOt,[I("div",gOt,Ne(Ke.name),1),I("div",yOt,Ne(Ke.group),1)])],10,hOt))),128))])]),I("div",bOt,[I("div",_Ot,[_e[10]||(_e[10]=I("h3",null,"播放预览",-1)),d.value?(z(),X("div",SOt,[$(ve,{type:"text",size:"small",onClick:te},{icon:fe(()=>[$(rt(nA))]),default:fe(()=>[_e[8]||(_e[8]=He(" 复制链接 ",-1))]),_:1}),$(ve,{type:"text",size:"small",onClick:W},{icon:fe(()=>[$(rt(Nve))]),default:fe(()=>[_e[9]||(_e[9]=He(" 新窗口播放 ",-1))]),_:1})])):Ie("",!0)]),I("div",kOt,[d.value?(z(),X("div",COt,[I("div",wOt,[$(nK,{"episode-name":d.value.name,"is-live-mode":!0,"show-debug-button":!0,qualities:_.value,"current-quality":T.value,onQualityChange:Ce,onToggleDebug:ge,onClose:xe},null,8,["episode-name","qualities","current-quality"]),I("div",EOt,[$(G$t,{ref_key:"liveProxySelector",ref:C,onChange:Ve},null,512)])]),I("div",TOt,[I("video",{ref_key:"videoPlayer",ref:g,src:H(),controls:"",preload:"metadata",onError:Q,onLoadstart:se,onLoadeddata:ae}," 您的浏览器不支持视频播放 ",40,AOt),p.value?(z(),X("div",IOt,[$(Oe,{size:32,tip:"正在加载视频..."})])):Ie("",!0),v.value?(z(),X("div",LOt,[$(rt($c),{class:"error-icon"}),_e[13]||(_e[13]=I("p",null,"视频加载失败",-1)),I("p",DOt,Ne(v.value),1),$(ve,{onClick:re},{default:fe(()=>[..._e[12]||(_e[12]=[He("重试",-1)])]),_:1})])):Ie("",!0)])])):(z(),X("div",xOt,[$(rt(By),{class:"no-selection-icon"}),_e[11]||(_e[11]=I("p",null,"请选择一个频道开始播放",-1))]))])])])):Ie("",!0):(z(),X("div",Q$t,[$(qe,{status:"info",title:"未配置直播源","sub-title":"请先在设置页面配置直播地址"},{extra:fe(()=>[$(ve,{type:"primary",onClick:ie},{default:fe(()=>[..._e[5]||(_e[5]=[He(" 前往设置 ",-1)])]),_:1})]),_:1})]))]),$(rK,{visible:y.value,"video-url":B(),headers:{},"player-type":"default","detected-format":"m3u8","proxy-url":S.value&&k.value?j():"",onClose:ge},null,8,["visible","video-url","proxy-url"])])}}},ROt=cr(POt,[["__scopeId","data-v-725ef902"]]);var f8={exports:{}},cj={exports:{}},dj={};/** + */var l;l=function(){function c(ve){return typeof ve=="function"}var d=Array.isArray?Array.isArray:function(ve){return Object.prototype.toString.call(ve)==="[object Array]"},h=0,p=void 0,v=void 0,g=function(ve,Re){_[h]=ve,_[h+1]=Re,(h+=2)===2&&(v?v(T):L())},y=typeof window<"u"?window:void 0,S=y||{},k=S.MutationObserver||S.WebKitMutationObserver,w=typeof self>"u"&&a!==void 0&&{}.toString.call(a)==="[object process]",x=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function E(){var ve=setTimeout;return function(){return ve(T,1)}}var _=new Array(1e3);function T(){for(var ve=0;ve1)for(var _=1;_0){var q=this._media_element.buffered.start(0);(q<1&&Y0){var q=ie.start(0);if(q<1&&Q=q&&Y0&&this._suspendTransmuxerIfBufferedPositionExceeded(ie)},ee.prototype._suspendTransmuxerIfBufferedPositionExceeded=function(Y){Y>=this._media_element.currentTime+this._config.lazyLoadMaxDuration&&!this._paused&&(p.a.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this.suspendTransmuxer(),this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate))},ee.prototype.suspendTransmuxer=function(){this._paused=!0,this._on_pause_transmuxer()},ee.prototype._resumeTransmuxerIfNeeded=function(){for(var Y=this._media_element.buffered,Q=this._media_element.currentTime,ie=this._config.lazyLoadRecoverDuration,q=!1,te=0;te=Se&&Q=Fe-ie&&(q=!0);break}}q&&(p.a.v(this.TAG,"Continue loading from paused position"),this.resumeTransmuxer(),this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate))},ee.prototype.resumeTransmuxer=function(){this._paused=!1,this._on_resume_transmuxer()},ee})(),$=(function(){function ee(Y,Q){this.TAG="StartupStallJumper",this._media_element=null,this._on_direct_seek=null,this._canplay_received=!1,this.e=null,this._media_element=Y,this._on_direct_seek=Q,this.e={onMediaCanPlay:this._onMediaCanPlay.bind(this),onMediaStalled:this._onMediaStalled.bind(this),onMediaProgress:this._onMediaProgress.bind(this)},this._media_element.addEventListener("canplay",this.e.onMediaCanPlay),this._media_element.addEventListener("stalled",this.e.onMediaStalled),this._media_element.addEventListener("progress",this.e.onMediaProgress)}return ee.prototype.destroy=function(){this._media_element.removeEventListener("canplay",this.e.onMediaCanPlay),this._media_element.removeEventListener("stalled",this.e.onMediaStalled),this._media_element.removeEventListener("progress",this.e.onMediaProgress),this._media_element=null,this._on_direct_seek=null},ee.prototype._onMediaCanPlay=function(Y){this._canplay_received=!0,this._media_element.removeEventListener("canplay",this.e.onMediaCanPlay)},ee.prototype._onMediaStalled=function(Y){this._detectAndFixStuckPlayback(!0)},ee.prototype._onMediaProgress=function(Y){this._detectAndFixStuckPlayback()},ee.prototype._detectAndFixStuckPlayback=function(Y){var Q=this._media_element,ie=Q.buffered;Y||!this._canplay_received||Q.readyState<2?ie.length>0&&Q.currentTimethis._config.liveBufferLatencyMaxLatency&&q-Q>this._config.liveBufferLatencyMaxLatency){var te=q-this._config.liveBufferLatencyMinRemain;this._on_direct_seek(te)}}},ee})(),B=(function(){function ee(Y,Q){this._config=null,this._media_element=null,this.e=null,this._config=Y,this._media_element=Q,this.e={onMediaTimeUpdate:this._onMediaTimeUpdate.bind(this)},this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate)}return ee.prototype.destroy=function(){this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element=null,this._config=null},ee.prototype._onMediaTimeUpdate=function(Y){if(this._config.isLive&&this._config.liveSync){var Q=this._getCurrentLatency();if(Q>this._config.liveSyncMaxLatency){var ie=Math.min(2,Math.max(1,this._config.liveSyncPlaybackRate));this._media_element.playbackRate=ie}else Q>this._config.liveSyncTargetLatency||this._media_element.playbackRate!==1&&this._media_element.playbackRate!==0&&(this._media_element.playbackRate=1)}},ee.prototype._getCurrentLatency=function(){if(!this._media_element)return 0;var Y=this._media_element.buffered,Q=this._media_element.currentTime;return Y.length==0?0:Y.end(Y.length-1)-Q},ee})(),j=(function(){function ee(Y,Q){this.TAG="PlayerEngineMainThread",this._emitter=new v,this._media_element=null,this._mse_controller=null,this._transmuxer=null,this._pending_seek_time=null,this._seeking_handler=null,this._loading_controller=null,this._startup_stall_jumper=null,this._live_latency_chaser=null,this._live_latency_synchronizer=null,this._mse_source_opened=!1,this._has_pending_load=!1,this._loaded_metadata_received=!1,this._media_info=null,this._statistics_info=null,this.e=null,this._media_data_source=Y,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q),Y.isLive===!0&&(this._config.isLive=!0),this.e={onMediaLoadedMetadata:this._onMediaLoadedMetadata.bind(this)}}return ee.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this._transmuxer&&this.unload(),this._media_element&&this.detachMediaElement(),this.e=null,this._media_data_source=null,this._emitter.removeAllListeners(),this._emitter=null},ee.prototype.on=function(Y,Q){var ie=this;this._emitter.addListener(Y,Q),Y===S.a.MEDIA_INFO&&this._media_info?Promise.resolve().then((function(){return ie._emitter.emit(S.a.MEDIA_INFO,ie.mediaInfo)})):Y==S.a.STATISTICS_INFO&&this._statistics_info&&Promise.resolve().then((function(){return ie._emitter.emit(S.a.STATISTICS_INFO,ie.statisticsInfo)}))},ee.prototype.off=function(Y,Q){this._emitter.removeListener(Y,Q)},ee.prototype.attachMediaElement=function(Y){var Q=this;this._media_element=Y,Y.src="",Y.removeAttribute("src"),Y.srcObject=null,Y.load(),Y.addEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._mse_controller=new y.a(this._config),this._mse_controller.on(w.a.UPDATE_END,this._onMSEUpdateEnd.bind(this)),this._mse_controller.on(w.a.BUFFER_FULL,this._onMSEBufferFull.bind(this)),this._mse_controller.on(w.a.SOURCE_OPEN,this._onMSESourceOpen.bind(this)),this._mse_controller.on(w.a.ERROR,this._onMSEError.bind(this)),this._mse_controller.on(w.a.START_STREAMING,this._onMSEStartStreaming.bind(this)),this._mse_controller.on(w.a.END_STREAMING,this._onMSEEndStreaming.bind(this)),this._mse_controller.initialize({getCurrentTime:function(){return Q._media_element.currentTime},getReadyState:function(){return Q._media_element.readyState}}),this._mse_controller.isManagedMediaSource()?(Y.disableRemotePlayback=!0,Y.srcObject=this._mse_controller.getObject()):Y.src=this._mse_controller.getObjectURL()},ee.prototype.detachMediaElement=function(){this._media_element&&(this._mse_controller.shutdown(),this._media_element.removeEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element=null,this._mse_controller.revokeObjectURL()),this._mse_controller&&(this._mse_controller.destroy(),this._mse_controller=null)},ee.prototype.load=function(){var Y=this;if(!this._media_element)throw new E.a("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new E.a("load() has been called, please call unload() first!");this._has_pending_load||(!this._config.deferLoadAfterSourceOpen||this._mse_source_opened?(this._transmuxer=new k.a(this._media_data_source,this._config),this._transmuxer.on(_.a.INIT_SEGMENT,(function(Q,ie){Y._mse_controller.appendInitSegment(ie)})),this._transmuxer.on(_.a.MEDIA_SEGMENT,(function(Q,ie){Y._mse_controller.appendMediaSegment(ie),!Y._config.isLive&&Q==="video"&&ie.data&&ie.data.byteLength>0&&"info"in ie&&Y._seeking_handler.appendSyncPoints(ie.info.syncPoints),Y._loading_controller.notifyBufferedPositionChanged(ie.info.endDts/1e3)})),this._transmuxer.on(_.a.LOADING_COMPLETE,(function(){Y._mse_controller.endOfStream(),Y._emitter.emit(S.a.LOADING_COMPLETE)})),this._transmuxer.on(_.a.RECOVERED_EARLY_EOF,(function(){Y._emitter.emit(S.a.RECOVERED_EARLY_EOF)})),this._transmuxer.on(_.a.IO_ERROR,(function(Q,ie){Y._emitter.emit(S.a.ERROR,x.b.NETWORK_ERROR,Q,ie)})),this._transmuxer.on(_.a.DEMUX_ERROR,(function(Q,ie){Y._emitter.emit(S.a.ERROR,x.b.MEDIA_ERROR,Q,ie)})),this._transmuxer.on(_.a.MEDIA_INFO,(function(Q){Y._media_info=Q,Y._emitter.emit(S.a.MEDIA_INFO,Object.assign({},Q))})),this._transmuxer.on(_.a.STATISTICS_INFO,(function(Q){Y._statistics_info=Y._fillStatisticsInfo(Q),Y._emitter.emit(S.a.STATISTICS_INFO,Object.assign({},Q))})),this._transmuxer.on(_.a.RECOMMEND_SEEKPOINT,(function(Q){Y._media_element&&!Y._config.accurateSeek&&Y._seeking_handler.directSeek(Q/1e3)})),this._transmuxer.on(_.a.METADATA_ARRIVED,(function(Q){Y._emitter.emit(S.a.METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SCRIPTDATA_ARRIVED,(function(Q){Y._emitter.emit(S.a.SCRIPTDATA_ARRIVED,Q)})),this._transmuxer.on(_.a.TIMED_ID3_METADATA_ARRIVED,(function(Q){Y._emitter.emit(S.a.TIMED_ID3_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,(function(Q){Y._emitter.emit(S.a.SYNCHRONOUS_KLV_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,(function(Q){Y._emitter.emit(S.a.ASYNCHRONOUS_KLV_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SMPTE2038_METADATA_ARRIVED,(function(Q){Y._emitter.emit(S.a.SMPTE2038_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.SCTE35_METADATA_ARRIVED,(function(Q){Y._emitter.emit(S.a.SCTE35_METADATA_ARRIVED,Q)})),this._transmuxer.on(_.a.PES_PRIVATE_DATA_DESCRIPTOR,(function(Q){Y._emitter.emit(S.a.PES_PRIVATE_DATA_DESCRIPTOR,Q)})),this._transmuxer.on(_.a.PES_PRIVATE_DATA_ARRIVED,(function(Q){Y._emitter.emit(S.a.PES_PRIVATE_DATA_ARRIVED,Q)})),this._seeking_handler=new P(this._config,this._media_element,this._onRequiredUnbufferedSeek.bind(this)),this._loading_controller=new M(this._config,this._media_element,this._onRequestPauseTransmuxer.bind(this),this._onRequestResumeTransmuxer.bind(this)),this._startup_stall_jumper=new $(this._media_element,this._onRequestDirectSeek.bind(this)),this._config.isLive&&this._config.liveBufferLatencyChasing&&(this._live_latency_chaser=new L(this._config,this._media_element,this._onRequestDirectSeek.bind(this))),this._config.isLive&&this._config.liveSync&&(this._live_latency_synchronizer=new B(this._config,this._media_element)),this._media_element.readyState>0&&this._seeking_handler.directSeek(0),this._transmuxer.open()):this._has_pending_load=!0)},ee.prototype.unload=function(){var Y,Q,ie,q,te,Se,Fe,ve,Re;(Y=this._media_element)===null||Y===void 0||Y.pause(),(Q=this._live_latency_synchronizer)===null||Q===void 0||Q.destroy(),this._live_latency_synchronizer=null,(ie=this._live_latency_chaser)===null||ie===void 0||ie.destroy(),this._live_latency_chaser=null,(q=this._startup_stall_jumper)===null||q===void 0||q.destroy(),this._startup_stall_jumper=null,(te=this._loading_controller)===null||te===void 0||te.destroy(),this._loading_controller=null,(Se=this._seeking_handler)===null||Se===void 0||Se.destroy(),this._seeking_handler=null,(Fe=this._mse_controller)===null||Fe===void 0||Fe.flush(),(ve=this._transmuxer)===null||ve===void 0||ve.close(),(Re=this._transmuxer)===null||Re===void 0||Re.destroy(),this._transmuxer=null},ee.prototype.play=function(){return this._media_element.play()},ee.prototype.pause=function(){this._media_element.pause()},ee.prototype.seek=function(Y){this._media_element&&this._seeking_handler?this._seeking_handler.seek(Y):this._pending_seek_time=Y},Object.defineProperty(ee.prototype,"mediaInfo",{get:function(){return Object.assign({},this._media_info)},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"statisticsInfo",{get:function(){return Object.assign({},this._statistics_info)},enumerable:!1,configurable:!0}),ee.prototype._onMSESourceOpen=function(){this._mse_source_opened=!0,this._has_pending_load&&(this._has_pending_load=!1,this.load())},ee.prototype._onMSEUpdateEnd=function(){this._config.isLive&&this._config.liveBufferLatencyChasing&&this._live_latency_chaser&&this._live_latency_chaser.notifyBufferedRangeUpdate(),this._loading_controller.notifyBufferedPositionChanged()},ee.prototype._onMSEBufferFull=function(){p.a.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._loading_controller.suspendTransmuxer()},ee.prototype._onMSEError=function(Y){this._emitter.emit(S.a.ERROR,x.b.MEDIA_ERROR,x.a.MEDIA_MSE_ERROR,Y)},ee.prototype._onMSEStartStreaming=function(){this._loaded_metadata_received&&(this._config.isLive||(p.a.v(this.TAG,"Resume transmuxing task due to ManagedMediaSource onStartStreaming"),this._loading_controller.resumeTransmuxer()))},ee.prototype._onMSEEndStreaming=function(){this._config.isLive||(p.a.v(this.TAG,"Suspend transmuxing task due to ManagedMediaSource onEndStreaming"),this._loading_controller.suspendTransmuxer())},ee.prototype._onMediaLoadedMetadata=function(Y){this._loaded_metadata_received=!0,this._pending_seek_time!=null&&(this._seeking_handler.seek(this._pending_seek_time),this._pending_seek_time=null)},ee.prototype._onRequestDirectSeek=function(Y){this._seeking_handler.directSeek(Y)},ee.prototype._onRequiredUnbufferedSeek=function(Y){this._mse_controller.flush(),this._transmuxer.seek(Y)},ee.prototype._onRequestPauseTransmuxer=function(){this._transmuxer.pause()},ee.prototype._onRequestResumeTransmuxer=function(){this._transmuxer.resume()},ee.prototype._fillStatisticsInfo=function(Y){if(Y.playerType="MSEPlayer",!(this._media_element instanceof HTMLVideoElement))return Y;var Q=!0,ie=0,q=0;if(this._media_element.getVideoPlaybackQuality){var te=this._media_element.getVideoPlaybackQuality();ie=te.totalVideoFrames,q=te.droppedVideoFrames}else this._media_element.webkitDecodedFrameCount!=null?(ie=this._media_element.webkitDecodedFrameCount,q=this._media_element.webkitDroppedFrameCount):Q=!1;return Q&&(Y.decodedFrames=ie,Y.droppedFrames=q),Y},ee})(),H=i(18),U=i(8),W=(function(){function ee(Y,Q){this.TAG="PlayerEngineDedicatedThread",this._emitter=new v,this._media_element=null,this._worker_destroying=!1,this._seeking_handler=null,this._loading_controller=null,this._startup_stall_jumper=null,this._live_latency_chaser=null,this._live_latency_synchronizer=null,this._pending_seek_time=null,this._media_info=null,this._statistics_info=null,this.e=null,this._media_data_source=Y,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q),Y.isLive===!0&&(this._config.isLive=!0),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this),onMediaLoadedMetadata:this._onMediaLoadedMetadata.bind(this),onMediaTimeUpdate:this._onMediaTimeUpdate.bind(this),onMediaReadyStateChanged:this._onMediaReadyStateChange.bind(this)},U.a.registerListener(this.e.onLoggingConfigChanged),this._worker=H(24,{all:!0}),this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",media_data_source:this._media_data_source,config:this._config}),this._worker.postMessage({cmd:"logging_config",logging_config:U.a.getConfig()})}return ee.isSupported=function(){return!!self.Worker&&(!(!self.MediaSource||!("canConstructInDedicatedWorker"in self.MediaSource)||self.MediaSource.canConstructInDedicatedWorker!==!0)||!(!self.ManagedMediaSource||!("canConstructInDedicatedWorker"in self.ManagedMediaSource)||self.ManagedMediaSource.canConstructInDedicatedWorker!==!0))},ee.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this.unload(),this.detachMediaElement(),this._worker_destroying=!0,this._worker.postMessage({cmd:"destroy"}),U.a.removeListener(this.e.onLoggingConfigChanged),this.e=null,this._media_data_source=null,this._emitter.removeAllListeners(),this._emitter=null},ee.prototype.on=function(Y,Q){var ie=this;this._emitter.addListener(Y,Q),Y===S.a.MEDIA_INFO&&this._media_info?Promise.resolve().then((function(){return ie._emitter.emit(S.a.MEDIA_INFO,ie.mediaInfo)})):Y==S.a.STATISTICS_INFO&&this._statistics_info&&Promise.resolve().then((function(){return ie._emitter.emit(S.a.STATISTICS_INFO,ie.statisticsInfo)}))},ee.prototype.off=function(Y,Q){this._emitter.removeListener(Y,Q)},ee.prototype.attachMediaElement=function(Y){this._media_element=Y,this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element.addEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.addEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element.addEventListener("readystatechange",this.e.onMediaReadyStateChanged),this._worker.postMessage({cmd:"initialize_mse"})},ee.prototype.detachMediaElement=function(){this._worker.postMessage({cmd:"shutdown_mse"}),this._media_element&&(this._media_element.removeEventListener("loadedmetadata",this.e.onMediaLoadedMetadata),this._media_element.removeEventListener("timeupdate",this.e.onMediaTimeUpdate),this._media_element.removeEventListener("readystatechange",this.e.onMediaReadyStateChanged),this._media_element.src="",this._media_element.removeAttribute("src"),this._media_element.srcObject=null,this._media_element.load(),this._media_element=null)},ee.prototype.load=function(){this._worker.postMessage({cmd:"load"}),this._seeking_handler=new P(this._config,this._media_element,this._onRequiredUnbufferedSeek.bind(this)),this._loading_controller=new M(this._config,this._media_element,this._onRequestPauseTransmuxer.bind(this),this._onRequestResumeTransmuxer.bind(this)),this._startup_stall_jumper=new $(this._media_element,this._onRequestDirectSeek.bind(this)),this._config.isLive&&this._config.liveBufferLatencyChasing&&(this._live_latency_chaser=new L(this._config,this._media_element,this._onRequestDirectSeek.bind(this))),this._config.isLive&&this._config.liveSync&&(this._live_latency_synchronizer=new B(this._config,this._media_element)),this._media_element.readyState>0&&this._seeking_handler.directSeek(0)},ee.prototype.unload=function(){var Y,Q,ie,q,te,Se;(Y=this._media_element)===null||Y===void 0||Y.pause(),this._worker.postMessage({cmd:"unload"}),(Q=this._live_latency_synchronizer)===null||Q===void 0||Q.destroy(),this._live_latency_synchronizer=null,(ie=this._live_latency_chaser)===null||ie===void 0||ie.destroy(),this._live_latency_chaser=null,(q=this._startup_stall_jumper)===null||q===void 0||q.destroy(),this._startup_stall_jumper=null,(te=this._loading_controller)===null||te===void 0||te.destroy(),this._loading_controller=null,(Se=this._seeking_handler)===null||Se===void 0||Se.destroy(),this._seeking_handler=null},ee.prototype.play=function(){return this._media_element.play()},ee.prototype.pause=function(){this._media_element.pause()},ee.prototype.seek=function(Y){this._media_element&&this._seeking_handler?this._seeking_handler.seek(Y):this._pending_seek_time=Y},Object.defineProperty(ee.prototype,"mediaInfo",{get:function(){return Object.assign({},this._media_info)},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"statisticsInfo",{get:function(){return Object.assign({},this._statistics_info)},enumerable:!1,configurable:!0}),ee.prototype._onLoggingConfigChanged=function(Y){var Q;(Q=this._worker)===null||Q===void 0||Q.postMessage({cmd:"logging_config",logging_config:Y})},ee.prototype._onMSEUpdateEnd=function(){this._config.isLive&&this._config.liveBufferLatencyChasing&&this._live_latency_chaser&&this._live_latency_chaser.notifyBufferedRangeUpdate(),this._loading_controller.notifyBufferedPositionChanged()},ee.prototype._onMSEBufferFull=function(){p.a.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._loading_controller.suspendTransmuxer()},ee.prototype._onMediaLoadedMetadata=function(Y){this._pending_seek_time!=null&&(this._seeking_handler.seek(this._pending_seek_time),this._pending_seek_time=null)},ee.prototype._onRequestDirectSeek=function(Y){this._seeking_handler.directSeek(Y)},ee.prototype._onRequiredUnbufferedSeek=function(Y){this._worker.postMessage({cmd:"unbuffered_seek",milliseconds:Y})},ee.prototype._onRequestPauseTransmuxer=function(){this._worker.postMessage({cmd:"pause_transmuxer"})},ee.prototype._onRequestResumeTransmuxer=function(){this._worker.postMessage({cmd:"resume_transmuxer"})},ee.prototype._onMediaTimeUpdate=function(Y){this._worker.postMessage({cmd:"timeupdate",current_time:Y.target.currentTime})},ee.prototype._onMediaReadyStateChange=function(Y){this._worker.postMessage({cmd:"readystatechange",ready_state:Y.target.readyState})},ee.prototype._onWorkerMessage=function(Y){var Q,ie=Y.data,q=ie.msg;if(q=="destroyed"||this._worker_destroying)return this._worker_destroying=!1,(Q=this._worker)===null||Q===void 0||Q.terminate(),void(this._worker=null);switch(q){case"mse_init":var te=ie;"ManagedMediaSource"in self&&!("MediaSource"in self)&&(this._media_element.disableRemotePlayback=!0),this._media_element.srcObject=te.handle;break;case"mse_event":(te=ie).event==w.a.UPDATE_END?this._onMSEUpdateEnd():te.event==w.a.BUFFER_FULL&&this._onMSEBufferFull();break;case"transmuxing_event":if((te=ie).event==_.a.MEDIA_INFO){var Se=ie;this._media_info=Se.info,this._emitter.emit(S.a.MEDIA_INFO,Object.assign({},Se.info))}else if(te.event==_.a.STATISTICS_INFO){var Fe=ie;this._statistics_info=this._fillStatisticsInfo(Fe.info),this._emitter.emit(S.a.STATISTICS_INFO,Object.assign({},Fe.info))}else if(te.event==_.a.RECOMMEND_SEEKPOINT){var ve=ie;this._media_element&&!this._config.accurateSeek&&this._seeking_handler.directSeek(ve.milliseconds/1e3)}break;case"player_event":if((te=ie).event==S.a.ERROR){var Re=ie;this._emitter.emit(S.a.ERROR,Re.error_type,Re.error_detail,Re.info)}else if("extraData"in te){var Ge=ie;this._emitter.emit(Ge.event,Ge.extraData)}break;case"logcat_callback":te=ie,p.a.emitter.emit("log",te.type,te.logcat);break;case"buffered_position_changed":te=ie,this._loading_controller.notifyBufferedPositionChanged(te.buffered_position_milliseconds/1e3)}},ee.prototype._fillStatisticsInfo=function(Y){if(Y.playerType="MSEPlayer",!(this._media_element instanceof HTMLVideoElement))return Y;var Q=!0,ie=0,q=0;if(this._media_element.getVideoPlaybackQuality){var te=this._media_element.getVideoPlaybackQuality();ie=te.totalVideoFrames,q=te.droppedVideoFrames}else this._media_element.webkitDecodedFrameCount!=null?(ie=this._media_element.webkitDecodedFrameCount,q=this._media_element.webkitDroppedFrameCount):Q=!1;return Q&&(Y.decodedFrames=ie,Y.droppedFrames=q),Y},ee})(),K=(function(){function ee(Y,Q){this.TAG="MSEPlayer",this._type="MSEPlayer",this._media_element=null,this._player_engine=null;var ie=Y.type.toLowerCase();if(ie!=="mse"&&ie!=="mpegts"&&ie!=="m2ts"&&ie!=="flv")throw new E.b("MSEPlayer requires an mpegts/m2ts/flv MediaDataSource input!");if(Q&&Q.enableWorkerForMSE&&W.isSupported())try{this._player_engine=new W(Y,Q)}catch{p.a.e(this.TAG,"Error while initializing PlayerEngineDedicatedThread, fallback to PlayerEngineMainThread"),this._player_engine=new j(Y,Q)}else this._player_engine=new j(Y,Q)}return ee.prototype.destroy=function(){this._player_engine.destroy(),this._player_engine=null,this._media_element=null},ee.prototype.on=function(Y,Q){this._player_engine.on(Y,Q)},ee.prototype.off=function(Y,Q){this._player_engine.off(Y,Q)},ee.prototype.attachMediaElement=function(Y){this._media_element=Y,this._player_engine.attachMediaElement(Y)},ee.prototype.detachMediaElement=function(){this._media_element=null,this._player_engine.detachMediaElement()},ee.prototype.load=function(){this._player_engine.load()},ee.prototype.unload=function(){this._player_engine.unload()},ee.prototype.play=function(){return this._player_engine.play()},ee.prototype.pause=function(){this._player_engine.pause()},Object.defineProperty(ee.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"buffered",{get:function(){return this._media_element.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"duration",{get:function(){return this._media_element.duration},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"volume",{get:function(){return this._media_element.volume},set:function(Y){this._media_element.volume=Y},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"muted",{get:function(){return this._media_element.muted},set:function(Y){this._media_element.muted=Y},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"currentTime",{get:function(){return this._media_element?this._media_element.currentTime:0},set:function(Y){this._player_engine.seek(Y)},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"mediaInfo",{get:function(){return this._player_engine.mediaInfo},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"statisticsInfo",{get:function(){return this._player_engine.statisticsInfo},enumerable:!1,configurable:!0}),ee})(),oe=(function(){function ee(Y,Q){this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new g.a,this._config=c(),typeof Q=="object"&&Object.assign(this._config,Q);var ie=Y.type.toLowerCase();if(ie==="mse"||ie==="mpegts"||ie==="m2ts"||ie==="flv")throw new E.b("NativePlayer does't support mse/mpegts/m2ts/flv MediaDataSource input!");if(Y.hasOwnProperty("segments"))throw new E.b("NativePlayer(".concat(Y.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=Y,this._mediaElement=null}return ee.prototype.destroy=function(){this._emitter.emit(S.a.DESTROYING),this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},ee.prototype.on=function(Y,Q){var ie=this;Y===S.a.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then((function(){ie._emitter.emit(S.a.MEDIA_INFO,ie.mediaInfo)})):Y===S.a.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then((function(){ie._emitter.emit(S.a.STATISTICS_INFO,ie.statisticsInfo)})),this._emitter.addListener(Y,Q)},ee.prototype.off=function(Y,Q){this._emitter.removeListener(Y,Q)},ee.prototype.attachMediaElement=function(Y){if(this._mediaElement=Y,Y.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Y.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch{}},ee.prototype.detachMediaElement=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},ee.prototype.load=function(){if(!this._mediaElement)throw new E.a("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},ee.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},ee.prototype.play=function(){return this._mediaElement.play()},ee.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(ee.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(Y){this._mediaElement.volume=Y},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(Y){this._mediaElement.muted=Y},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Y){this._mediaElement?this._mediaElement.currentTime=Y:this._pendingSeekTime=Y},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"mediaInfo",{get:function(){var Y={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(Y.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(Y.width=this._mediaElement.videoWidth,Y.height=this._mediaElement.videoHeight)),Y},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"statisticsInfo",{get:function(){var Y={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Y;var Q=!0,ie=0,q=0;if(this._mediaElement.getVideoPlaybackQuality){var te=this._mediaElement.getVideoPlaybackQuality();ie=te.totalVideoFrames,q=te.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(ie=this._mediaElement.webkitDecodedFrameCount,q=this._mediaElement.webkitDroppedFrameCount):Q=!1;return Q&&(Y.decodedFrames=ie,Y.droppedFrames=q),Y},enumerable:!1,configurable:!0}),ee.prototype._onvLoadedMetadata=function(Y){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(S.a.MEDIA_INFO,this.mediaInfo)},ee.prototype._reportStatisticsInfo=function(){this._emitter.emit(S.a.STATISTICS_INFO,this.statisticsInfo)},ee})();a.a.install();var ae={createPlayer:function(ee,Y){var Q=ee;if(Q==null||typeof Q!="object")throw new E.b("MediaDataSource must be an javascript object!");if(!Q.hasOwnProperty("type"))throw new E.b("MediaDataSource must has type field to indicate video file type!");switch(Q.type){case"mse":case"mpegts":case"m2ts":case"flv":return new K(Q,Y);default:return new oe(Q,Y)}},isSupported:function(){return d.supportMSEH264Playback()},getFeatureList:function(){return d.getFeatureList()}};ae.BaseLoader=h.a,ae.LoaderStatus=h.c,ae.LoaderErrors=h.b,ae.Events=S.a,ae.ErrorTypes=x.b,ae.ErrorDetails=x.a,ae.MSEPlayer=K,ae.NativePlayer=oe,ae.LoggingControl=U.a,Object.defineProperty(ae,"version",{enumerable:!0,get:function(){return"1.8.0"}}),r.default=ae}])}))})(dj)),dj.exports}var qOt=KOt();const Sce=rd(qOt);class YOt{constructor(){this.liveData=null,this.lastFetchTime=null,this.cacheExpiry=600*1e3}async getLiveConfig(){try{const t=yl.getLiveConfigUrl();if(t)return{name:"直播配置",url:t,type:"live"};const n=await yl.getConfigData();return n&&n.lives&&Array.isArray(n.lives)&&n.lives.length>0?n.lives[0]:null}catch(t){return console.error("获取直播配置失败:",t),null}}async getLiveData(t=!1){try{const n=Date.now(),r=this.liveData&&this.lastFetchTime&&n-this.lastFetchTimel.trim()).filter(l=>l),i=new Map,a=[];let s=null;for(let l=0;l0){const E=h.substring(0,p);E.includes("=")&&(v=E,g=h.substring(p+1).trim())}const y={};if(v){const E=v.matchAll(/(\w+(?:-\w+)*)="([^"]*)"/g);for(const _ of E)y[_[1]]=_[2]}const S=y["tvg-name"]||g,k=y["group-title"]||"未分组",w=y["tvg-logo"]||this.generateLogoUrl(S,n),x=this.extractQualityInfo(g);s={name:S,displayName:g,group:k,logo:w,tvgId:y["tvg-id"]||"",tvgName:y["tvg-name"]||S,quality:x.quality,resolution:x.resolution,codec:x.codec,url:null}}}else if(c.startsWith("http")&&s){s.url=c,a.push(s);const d=s.group;i.has(d)||i.set(d,{name:d,channels:[]});const h=i.get(d),p=h.channels.find(v=>v.name===s.name);p?(p.routes||(p.routes=[{id:1,name:"线路1",url:p.url,quality:p.quality,resolution:p.resolution,codec:p.codec}]),p.routes.push({id:p.routes.length+1,name:`线路${p.routes.length+1}`,url:s.url,quality:s.quality,resolution:s.resolution,codec:s.codec}),p.currentRoute=p.routes[0]):h.channels.push(s),s=null}}}return{config:n,groups:Array.from(i.values()),channels:a,totalChannels:a.length}}extractQualityInfo(t){const n={quality:"",resolution:"",codec:""},r=[/高码/,/超清/,/高清/,/标清/,/流畅/],i=[/4K/i,/1080[pP]/,/720[pP]/,/576[pP]/,/480[pP]/,/(\d+)[pP]/],a=[/HEVC/i,/H\.?264/i,/H\.?265/i,/AVC/i],s=[/(\d+)[-\s]?FPS/i,/(\d+)帧/];for(const l of r){const c=t.match(l);if(c){n.quality=c[0];break}}for(const l of i){const c=t.match(l);if(c){n.resolution=c[0];break}}for(const l of a){const c=t.match(l);if(c){n.codec=c[0];break}}for(const l of s){const c=t.match(l);if(c){n.fps=c[1]||c[0];break}}return n}parseTXT(t,n){const r=t.split(` +`).map(l=>l.trim()).filter(l=>l),i=new Map,a=[];let s="未分组";for(const l of r)if(l.includes("#genre#")){const c=l.indexOf("#genre#");c>0?s=l.substring(0,c).replace(/,$/,"").trim():s=l.replace("#genre#","").trim(),i.has(s)||i.set(s,{name:s,channels:[]})}else if(l.includes(",http")){const c=l.split(",");if(c.length>=2){const d=c[0].trim(),h=c.slice(1).join(",").trim(),p={name:d,group:s,logo:this.generateLogoUrl(d,n),tvgName:d,url:h};a.push(p),i.has(s)||i.set(s,{name:s,channels:[]}),i.get(s).channels.push(p)}}return{config:n,groups:Array.from(i.values()),channels:a,totalChannels:a.length}}generateLogoUrl(t,n){return n.logo&&n.logo.includes("{name}")?n.logo.replace("{name}",encodeURIComponent(t)):""}getEPGUrl(t,n,r){return r.epg&&r.epg.includes("{name}")&&r.epg.includes("{date}")?r.epg.replace("{name}",encodeURIComponent(t)).replace("{date}",n):""}searchChannels(t){if(!this.liveData||!t)return[];const n=t.toLowerCase();return this.liveData.channels.filter(r=>r.name.toLowerCase().includes(n)||r.group.toLowerCase().includes(n))}getChannelsByGroup(t){if(!this.liveData)return[];const n=this.liveData.groups.find(r=>r.name===t);return n?n.channels:[]}clearCache(){this.liveData=null,this.lastFetchTime=null,console.log("直播数据缓存已清除")}getStatus(){return{hasData:!!this.liveData,lastFetchTime:this.lastFetchTime,cacheAge:this.lastFetchTime?Date.now()-this.lastFetchTime:null,isCacheValid:this.liveData&&this.lastFetchTime&&Date.now()-this.lastFetchTime{if(!g)return"未知";const y=g.indexOf("#");return y!==-1&&y{try{const g=JSON.parse(localStorage.getItem(wce)||"[]");a.value=[],g.forEach(y=>{const S=y.url||y.value||"";if(!S)return;const k=s(S);a.value.push({value:S,label:k,url:S})}),console.log("直播代理选项加载完成:",a.value.length,"个选项")}catch(g){console.error("加载直播代理选项失败:",g)}},c=()=>{try{const g=localStorage.getItem(kce);g&&g!=="null"?i.value=g:i.value="disabled",console.log("直播代理选择状态加载:",i.value)}catch(g){console.error("加载直播代理选择状态失败:",g),i.value="disabled"}},d=g=>{try{localStorage.setItem(kce,g),console.log("直播代理选择状态已保存:",g)}catch(y){console.error("保存直播代理选择状态失败:",y)}},h=g=>{i.value=g,d(g),r("change",{value:g,enabled:g!=="disabled",url:g==="disabled"?"":g}),console.log("直播代理选择已变更:",{value:g,enabled:g!=="disabled"})},p=g=>{g.key===wce&&l()},v=()=>{l()};return fn(()=>{l(),c(),window.addEventListener("storage",p),window.addEventListener("addressHistoryChanged",v)}),Yr(()=>{window.removeEventListener("storage",p),window.removeEventListener("addressHistoryChanged",v)}),t({getCurrentSelection:()=>i.value,isEnabled:()=>i.value!=="disabled",getProxyUrl:()=>i.value==="disabled"?"":i.value,refreshOptions:l}),(g,y)=>{const S=Ee("a-option"),k=Ee("a-select");return z(),X("div",ZOt,[y[1]||(y[1]=I("svg",{class:"selector-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(k,{"model-value":i.value,onChange:h,class:"proxy-select",size:"small",placeholder:"选择代理播放地址"},{default:ce(()=>[O(S,{value:"disabled",title:"关闭代理播放功能"},{default:ce(()=>[...y[0]||(y[0]=[He("代理播放:关闭",-1)])]),_:1}),(z(!0),X(Pt,null,cn(a.value,w=>(z(),Ze(S,{key:w.value,value:w.value,title:`${w.label} +完整链接: ${w.url||w.value}`},{default:ce(()=>[He(" 代理播放:"+je(w.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])}}},QOt=sr(JOt,[["__scopeId","data-v-638b32e0"]]),e$t={class:"live-container"},t$t={class:"simple-header"},n$t={class:"header-actions"},r$t={class:"live-content"},i$t={key:0,class:"loading-container"},o$t={key:1,class:"error-container"},s$t={key:2,class:"no-config-container"},a$t={key:3,class:"live-main"},l$t={class:"groups-panel"},u$t={class:"panel-header"},c$t={class:"group-count"},d$t={class:"groups-list"},f$t=["onClick"],h$t={class:"group-info"},p$t={class:"group-name"},v$t={class:"channel-count"},m$t={class:"channels-panel"},g$t={class:"panel-header"},y$t={class:"channel-count"},b$t={class:"channels-list"},_$t=["onClick"],S$t={class:"channel-logo"},k$t=["src","alt"],w$t={class:"channel-info"},x$t={class:"channel-name"},C$t={class:"channel-group"},E$t={class:"player-panel"},T$t={class:"panel-header"},A$t={key:0,class:"player-controls"},I$t={class:"player-content"},L$t={key:0,class:"no-selection"},D$t={key:1,class:"player-wrapper"},P$t={class:"player-controls-area"},R$t={class:"live-proxy-control"},M$t={class:"video-container"},O$t=["src"],$$t={key:0,class:"video-loading"},B$t={key:1,class:"video-error"},N$t={class:"error-detail"},F$t={__name:"Live",setup(e){const t=ma();let n=null;const r=ue(!1),i=ue(""),a=ue(null),s=ue(!0),l=ue(""),c=ue(""),d=ue(null),h=ue(1),p=ue(!1),v=ue(""),g=ue(null),y=ue(!1),S=ue(!1),k=ue(""),w=ue(null),x=F(()=>{if(!a.value)return[];let Ie=a.value.groups;if(l.value){const _e=l.value.toLowerCase();Ie=Ie.filter(me=>me.name.toLowerCase().includes(_e)||me.channels.some(ge=>ge.name.toLowerCase().includes(_e)))}return Ie}),E=F(()=>{if(!a.value||!c.value)return[];const Ie=x.value.find(me=>me.name===c.value);if(!Ie)return[];let _e=Ie.channels;if(l.value){const me=l.value.toLowerCase();_e=_e.filter(ge=>ge.name.toLowerCase().includes(me))}return _e}),_=F(()=>!d.value||!d.value.routes?[]:d.value.routes.map(Ie=>({name:Ie.name,id:Ie.id,url:Ie.url}))),T=F(()=>{if(!d.value||!d.value.routes)return"默认";const Ie=d.value.routes.find(_e=>_e.id===h.value);return Ie?Ie.name:"默认"}),D=async(Ie=!1)=>{r.value=!0,i.value="";try{if(!await fU.getLiveConfig()){s.value=!1;return}s.value=!0;const me=await fU.getLiveData(Ie);a.value=me,me.groups.length>0&&!c.value&&(c.value=me.groups[0].name),console.log("直播数据加载成功:",me)}catch(_e){console.error("加载直播数据失败:",_e),i.value=_e.message||"加载直播数据失败"}finally{r.value=!1}},P=()=>{D(!0)},M=Ie=>{c.value=Ie,d.value=null},$=Ie=>{d.value=Ie,v.value="",dn(()=>{if(Ie&&Ie.routes&&Ie.routes.length>0?h.value=Number(Ie.routes[0].id):h.value=1,g.value){const _e=H();console.log("=== selectChannel 设置视频源 ==="),console.log("设置前 videoPlayer.src:",g.value.src),console.log("新的 src:",_e),g.value.src=_e,console.log("设置后 videoPlayer.src:",g.value.src),g.value.load()}L()})};function L(){n&&(n.destroy(),n=null);const Ie=H();console.log("=== setupMpegtsPlayer ==="),console.log("mpegts播放器使用的URL:",Ie),console.log("当前videoPlayer.src:",g.value?.src),!(!Ie||!g.value)&&(Ie.endsWith(".ts")||Ie.includes("mpegts")||Ie.includes("udpxy")||Ie.includes("/udp/")||Ie.includes("rtp://")||Ie.includes("udp://"))&&Sce.isSupported()&&(n=Sce.createPlayer({type:"mpegts",url:Ie}),n.attachMediaElement(g.value),n.load(),n.play())}Yr(()=>{n&&(n.destroy(),n=null)});const B=()=>{if(!d.value)return"";if(d.value.routes&&d.value.routes.length>0){const Ie=d.value.routes.find(_e=>_e.id===h.value);return Ie?Ie.url:d.value.routes[0].url}return d.value.url||""},j=()=>{const Ie=B();return Ie?S.value&&k.value?(console.log("🔄 [直播代理] 构建代理URL:",{originalUrl:Ie,proxyAddress:k.value,enabled:S.value}),L4e(Ie,k.value,{})):Ie:""},H=()=>{const Ie=B(),_e=j(),me=S.value?_e:Ie;return console.log("=== getVideoUrl 调试信息 ==="),console.log("直播代理状态:",S.value),console.log("直播代理URL:",k.value),console.log("原始URL:",Ie),console.log("代理URL:",_e),console.log("最终URL:",me),console.log("========================"),me},U=Ie=>{const _e=Number(Ie.target?Ie.target.value:Ie);if(!d.value||!d.value.routes)return;const me=d.value.routes.find(ge=>ge.id===_e);me&&(h.value=_e,v.value="",dn(()=>{if(g.value){const ge=H();console.log("=== switchRoute 设置视频源 ==="),console.log("设置前 videoPlayer.src:",g.value.src),console.log("新的 src:",ge),g.value.src=ge,console.log("设置后 videoPlayer.src:",g.value.src),g.value.load()}L()}),gt.success(`已切换到${me.name}`))},W=Ie=>{l.value=Ie,x.value.length>0&&!x.value.find(_e=>_e.name===c.value)&&(c.value=x.value[0].name)},K=()=>{l.value=""},oe=()=>{t.push("/settings")},ae=async()=>{if(d.value)try{await navigator.clipboard.writeText(d.value.url),gt.success("频道链接已复制到剪贴板")}catch(Ie){console.error("复制失败:",Ie),gt.error("复制失败")}},ee=()=>{d.value&&window.open(d.value.url,"_blank")},Y=Ie=>{Ie.target.style.display="none"},Q=Ie=>{console.error("视频播放错误:",Ie),v.value="无法播放此频道,可能是网络问题或频道源不可用",p.value=!1},ie=()=>{p.value=!0,v.value=""},q=()=>{p.value=!1},te=()=>{g.value&&(v.value="",g.value.load(),L())},Se=Ie=>{if(!d.value||!d.value.routes)return;const _e=d.value.routes.find(me=>me.name===Ie);_e&&U(_e.id)},Fe=Ie=>{if(console.log("=== 直播代理播放地址变更 ==="),console.log("代理数据:",Ie),console.log("变更前状态:",{enabled:S.value,url:k.value}),S.value=Ie.enabled,k.value=Ie.url,console.log("变更后状态:",{enabled:S.value,url:k.value}),d.value&&(n&&(n.destroy(),n=null),g.value)){v.value="",p.value=!0;const _e=H();console.log("直播代理变更后重新设置视频源:",_e),g.value.src=_e,g.value.load(),dn(()=>{L()})}gt.success(`直播代理播放: ${Ie.enabled?"已启用":"已关闭"}`)},ve=()=>{if(y.value=!y.value,console.log("调试模式:",y.value?"开启":"关闭"),y.value){console.log("=== 调试信息详情 ===");const _e=localStorage.getItem("live-proxy-selection");console.log("localStorage中的直播代理选择:",_e),console.log("直播代理启用状态:",S.value),console.log("直播代理URL:",k.value),console.log("原始频道URL:",B()),console.log("代理后URL:",j()),console.log("传递给DebugInfoDialog的proxy-url:",S.value&&k.value?j():""),w.value&&(console.log("LiveProxySelector组件状态:"),console.log("- getCurrentSelection():",w.value.getCurrentSelection?.()),console.log("- isEnabled():",w.value.isEnabled?.()),console.log("- getProxyUrl():",w.value.getProxyUrl?.())),console.log("==================")}},Re=()=>{d.value=null,h.value=1,v.value="",n&&(n.destroy(),n=null)};It(d,Ie=>{Ie&&console.log("选中频道:",Ie.name,Ie.url)});const Ge=async()=>{try{const _e=await(await fetch("/json/tv.m3u")).text(),{default:me}=await pc(async()=>{const{default:Ye}=await Promise.resolve().then(()=>XOt);return{default:Ye}},void 0),Be=new me().parseM3U(_e,{});a.value=Be,Be.groups&&Be.groups.length>0&&(c.value=Be.groups[0].name)}catch(Ie){console.error("加载本地M3U文件失败:",Ie)}},nt=()=>{try{const _e=localStorage.getItem("live-proxy-selection");console.log("从localStorage读取的直播代理选择:",_e),_e&&_e!=="null"&&_e!=="disabled"?(S.value=!0,k.value=_e,console.log("初始化直播代理状态:",{enabled:!0,url:_e})):(S.value=!1,k.value="",console.log("初始化直播代理状态:",{enabled:!1,url:"",reason:_e||"null/disabled"}))}catch(Ie){console.error("初始化直播代理状态失败:",Ie),S.value=!1,k.value=""}};return fn(async()=>{nt();try{await D()}catch(Ie){console.error("加载直播数据失败:",Ie),Ge()}}),(Ie,_e)=>{const me=Ee("a-button"),ge=Ee("a-input-search"),Be=Ee("a-spin"),Ye=Ee("a-result");return z(),X("div",e$t,[I("div",t$t,[_e[2]||(_e[2]=I("span",{class:"navigation-title"},"Live",-1)),I("div",n$t,[O(me,{type:"text",onClick:P,loading:r.value,size:"small"},{icon:ce(()=>[O(tt(sc))]),default:ce(()=>[_e[1]||(_e[1]=He(" 刷新 ",-1))]),_:1},8,["loading"]),O(ge,{modelValue:l.value,"onUpdate:modelValue":_e[0]||(_e[0]=Ke=>l.value=Ke),placeholder:"搜索频道...",style:{width:"200px"},size:"small",onSearch:W,onClear:K,"allow-clear":""},null,8,["modelValue"])])]),I("div",r$t,[r.value&&!a.value?(z(),X("div",i$t,[O(Be,{size:32,tip:"正在加载直播数据..."})])):i.value?(z(),X("div",o$t,[O(Ye,{status:"error",title:i.value,"sub-title":"请检查网络连接或直播配置"},{extra:ce(()=>[O(me,{type:"primary",onClick:P},{default:ce(()=>[..._e[3]||(_e[3]=[He(" 重新加载 ",-1)])]),_:1}),O(me,{onClick:oe},{default:ce(()=>[..._e[4]||(_e[4]=[He(" 检查设置 ",-1)])]),_:1})]),_:1},8,["title"])])):s.value?a.value?(z(),X("div",a$t,[I("div",l$t,[I("div",u$t,[_e[6]||(_e[6]=I("h3",null,"分组列表",-1)),I("span",c$t,je(x.value.length)+"个分组",1)]),I("div",d$t,[(z(!0),X(Pt,null,cn(x.value,Ke=>(z(),X("div",{key:Ke.name,class:fe(["group-item",{active:c.value===Ke.name}]),onClick:at=>M(Ke.name)},[I("div",h$t,[I("span",p$t,je(Ke.name),1),I("span",v$t,je(Ke.channels.length),1)])],10,f$t))),128))])]),I("div",m$t,[I("div",g$t,[_e[7]||(_e[7]=I("h3",null,"频道列表",-1)),I("span",y$t,je(E.value.length)+"个频道",1)]),I("div",b$t,[(z(!0),X(Pt,null,cn(E.value,Ke=>(z(),X("div",{key:Ke.name,class:fe(["channel-item",{active:d.value?.name===Ke.name}]),onClick:at=>$(Ke)},[I("div",S$t,[Ke.logo?(z(),X("img",{key:0,src:Ke.logo,alt:Ke.name,onError:Y},null,40,k$t)):(z(),Ze(tt(u_),{key:1,class:"default-logo"}))]),I("div",w$t,[I("div",x$t,je(Ke.name),1),I("div",C$t,je(Ke.group),1)])],10,_$t))),128))])]),I("div",E$t,[I("div",T$t,[_e[10]||(_e[10]=I("h3",null,"播放预览",-1)),d.value?(z(),X("div",A$t,[O(me,{type:"text",size:"small",onClick:ae},{icon:ce(()=>[O(tt(rA))]),default:ce(()=>[_e[8]||(_e[8]=He(" 复制链接 ",-1))]),_:1}),O(me,{type:"text",size:"small",onClick:ee},{icon:ce(()=>[O(tt(Nve))]),default:ce(()=>[_e[9]||(_e[9]=He(" 新窗口播放 ",-1))]),_:1})])):Ae("",!0)]),I("div",I$t,[d.value?(z(),X("div",D$t,[I("div",P$t,[O(nK,{"episode-name":d.value.name,"is-live-mode":!0,"show-debug-button":!0,qualities:_.value,"current-quality":T.value,onQualityChange:Se,onToggleDebug:ve,onClose:Re},null,8,["episode-name","qualities","current-quality"]),I("div",R$t,[O(QOt,{ref_key:"liveProxySelector",ref:w,onChange:Fe},null,512)])]),I("div",M$t,[I("video",{ref_key:"videoPlayer",ref:g,src:H(),controls:"",preload:"metadata",onError:Q,onLoadstart:ie,onLoadeddata:q}," 您的浏览器不支持视频播放 ",40,O$t),p.value?(z(),X("div",$$t,[O(Be,{size:32,tip:"正在加载视频..."})])):Ae("",!0),v.value?(z(),X("div",B$t,[O(tt($c),{class:"error-icon"}),_e[13]||(_e[13]=I("p",null,"视频加载失败",-1)),I("p",N$t,je(v.value),1),O(me,{onClick:te},{default:ce(()=>[..._e[12]||(_e[12]=[He("重试",-1)])]),_:1})])):Ae("",!0)])])):(z(),X("div",L$t,[O(tt(Ny),{class:"no-selection-icon"}),_e[11]||(_e[11]=I("p",null,"请选择一个频道开始播放",-1))]))])])])):Ae("",!0):(z(),X("div",s$t,[O(Ye,{status:"info",title:"未配置直播源","sub-title":"请先在设置页面配置直播地址"},{extra:ce(()=>[O(me,{type:"primary",onClick:oe},{default:ce(()=>[..._e[5]||(_e[5]=[He(" 前往设置 ",-1)])]),_:1})]),_:1})]))]),O(rK,{visible:y.value,"video-url":B(),headers:{},"player-type":"default","detected-format":"m3u8","proxy-url":S.value&&k.value?j():"",onClose:ve},null,8,["visible","video-url","proxy-url"])])}}},j$t=sr(F$t,[["__scopeId","data-v-725ef902"]]);var h8={exports:{}},fj={exports:{}},hj={};/** * @vue/compiler-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Ky=Symbol(""),wy=Symbol(""),nI=Symbol(""),M_=Symbol(""),sK=Symbol(""),$0=Symbol(""),aK=Symbol(""),lK=Symbol(""),rI=Symbol(""),iI=Symbol(""),C3=Symbol(""),oI=Symbol(""),uK=Symbol(""),sI=Symbol(""),aI=Symbol(""),lI=Symbol(""),uI=Symbol(""),cI=Symbol(""),dI=Symbol(""),cK=Symbol(""),dK=Symbol(""),wS=Symbol(""),$_=Symbol(""),fI=Symbol(""),hI=Symbol(""),qy=Symbol(""),w3=Symbol(""),pI=Symbol(""),qT=Symbol(""),P4e=Symbol(""),YT=Symbol(""),O_=Symbol(""),R4e=Symbol(""),M4e=Symbol(""),vI=Symbol(""),$4e=Symbol(""),O4e=Symbol(""),mI=Symbol(""),fK=Symbol(""),Hm={[Ky]:"Fragment",[wy]:"Teleport",[nI]:"Suspense",[M_]:"KeepAlive",[sK]:"BaseTransition",[$0]:"openBlock",[aK]:"createBlock",[lK]:"createElementBlock",[rI]:"createVNode",[iI]:"createElementVNode",[C3]:"createCommentVNode",[oI]:"createTextVNode",[uK]:"createStaticVNode",[sI]:"resolveComponent",[aI]:"resolveDynamicComponent",[lI]:"resolveDirective",[uI]:"resolveFilter",[cI]:"withDirectives",[dI]:"renderList",[cK]:"renderSlot",[dK]:"createSlots",[wS]:"toDisplayString",[$_]:"mergeProps",[fI]:"normalizeClass",[hI]:"normalizeStyle",[qy]:"normalizeProps",[w3]:"guardReactiveProps",[pI]:"toHandlers",[qT]:"camelize",[P4e]:"capitalize",[YT]:"toHandlerKey",[O_]:"setBlockTracking",[R4e]:"pushScopeId",[M4e]:"popScopeId",[vI]:"withCtx",[$4e]:"unref",[O4e]:"isRef",[mI]:"withMemo",[fK]:"isMemoSame"};function B4e(e){Object.getOwnPropertySymbols(e).forEach(t=>{Hm[t]=e[t]})}const MOt={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},$Ot={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},OOt={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},BOt={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},ga={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function N4e(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ga}}function Yy(e,t,n,r,i,a,s,l=!1,c=!1,d=!1,h=ga){return e&&(l?(e.helper($0),e.helper(Km(e.inSSR,d))):e.helper(Gm(e.inSSR,d)),s&&e.helper(cI)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:s,isBlock:l,disableTracking:c,isComponent:d,loc:h}}function _0(e,t=ga){return{type:17,loc:t,elements:e}}function sc(e,t=ga){return{type:15,loc:t,properties:e}}function $s(e,t){return{type:16,loc:ga,key:Mr(e)?Gr(e,!0):e,value:t}}function Gr(e,t=!1,n=ga,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function NOt(e,t){return{type:5,loc:t,content:Mr(e)?Gr(e,!1,t):e}}function Xc(e,t=ga){return{type:8,loc:t,children:e}}function Ys(e,t=[],n=ga){return{type:14,loc:n,callee:e,arguments:t}}function Wm(e,t=void 0,n=!1,r=!1,i=ga){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function XT(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:ga}}function F4e(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:ga}}function j4e(e){return{type:21,body:e,loc:ga}}function FOt(e){return{type:22,elements:e,loc:ga}}function jOt(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:ga}}function VOt(e,t){return{type:24,left:e,right:t,loc:ga}}function zOt(e){return{type:25,expressions:e,loc:ga}}function UOt(e){return{type:26,returns:e,loc:ga}}function Gm(e,t){return e||t?rI:iI}function Km(e,t){return e||t?aK:lK}function gI(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Gm(r,e.isComponent)),t($0),t(Km(r,e.isComponent)))}const Cce=new Uint8Array([123,123]),wce=new Uint8Array([125,125]);function Ece(e){return e>=97&&e<=122||e>=65&&e<=90}function rc(e){return e===32||e===10||e===9||e===12||e===13}function Fp(e){return e===47||e===62||rc(e)}function ZT(e){const t=new Uint8Array(e.length);for(let n=0;n=0;i--){const a=this.newlines[i];if(t>a){n=i+2,r=t-a;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Fp(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||rc(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===dl.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const WOt={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},GOt={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with
in TTML");for(le=_(Nr(b,"div")),he=le.next();!he.done;he=le.next())if(Nr(he.value,"span").length)throw new De(2,2,2001," can only be inside

in TTML");return(u=cte(this,b,u,A,R,N,w,V,Z,G,null,!1,f,m))&&(u.backgroundColor||(u.backgroundColor="transparent"),o.push(u)),o};function cte(o,u,f,m,b,w,A,R,N,V,G,Z,le,he){var pe=G;if(Nu(u)){if(!Z)return null;var ye={tagName:"span",children:[_r(u)],attributes:{},parent:null}}else ye=u;for(var be=null,je=_(_te),Be=je.next();!Be.done&&!(be=Zk(ye,"backgroundImage",b,"#",Be.value)[0]);Be=je.next());je=null,Be=Fs(ye,_te,"backgroundImage");var Je=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(Be&&Je.test(Be)){if(je=parseInt(Be.split(":").pop(),10)-1,je>=he.length)return null;je=he[je]}else le&&Be&&!Be.startsWith("#")&&(Je=new Yt(le),Be=new Yt(Be),(Be=Je.resolve(Be).toString())&&(je=Be));if((u.tagName=="p"||be||je)&&(Z=!0),u=Z,Be=(ye.attributes["xml:space"]||(N?"default":"preserve"))=="default",Je=ye.children.every(Nu),N=[],!Je)for(var lt=_(ye.children),St=lt.next();!St.done;St=lt.next())(St=cte(o,St.value,f,m,b,w,A,R,Be,V,ye,Z,le,he))&&N.push(St);if(b=G!=null,le=_r(ye),le=ye.children.length&&le&&/\S/.test(le),lt=ye.attributes.begin||ye.attributes.end||ye.attributes.dur,!(lt||le||ye.tagName=="br"||N.length!=0||b&&!Be))return null;for(he=hte(ye,m),le=he.start,he=he.end;pe&&pe.tagName&&pe.tagName!="tt";)he=S8e(pe,m,le,he),le=he.start,he=he.end,pe=pe.parent;if(le==null&&(le=0),le+=f.periodStart,he=he==null?1/0:he+f.periodStart,o.g!=="HLS"&&(le=Math.max(le,f.segmentStart),he=Math.min(he,f.segmentEnd)),!lt&&N.length>0)for(le=1/0,he=0,f=_(N),m=f.next();!m.done;m=f.next())m=m.value,le=Math.min(le,m.startTime),he=Math.max(he,m.endTime);if(ye.tagName=="br")return o=new $i(le,he,""),o.lineBreak=!0,o;if(f="",Je&&(f=ln(_r(ye)||""),Be&&(f=f.replace(/\s+/g," "))),f=new $i(le,he,f),f.nestedCues=N,Z||(f.isContainer=!0),V&&(f.cellResolution=V),V=Zk(ye,"region",A,"")[0],ye.attributes.region&&V&&V.attributes["xml:id"]){var it=V.attributes["xml:id"];f.region=R.filter(function(Xe){return Xe.id==it})[0]}return R=V,G&&b&&!ye.attributes.region&&!ye.attributes.style&&(R=Zk(G,"region",A,"")[0]),_8e(o,f,ye,R,be,je,w,u,N.length==0),f}function b8e(o,u,f,m){var b=new nl,w=u.attributes["xml:id"];if(!w)return null;b.id=w,w=null,m&&(w=WD.exec(m)||GD.exec(m)),m=w?Number(w[1]):null,w=w?Number(w[2]):null;var A,R=Xk(o,u,f,"extent");if(R){var N=(A=WD.exec(R))||GD.exec(R);N!=null&&(b.width=Number(N[1]),b.height=Number(N[2]),A||(m!=null&&(b.width=b.width*100/m),w!=null&&(b.height=b.height*100/w)),b.widthUnits=A||m!=null?Es:0,b.heightUnits=A||w!=null?Es:0)}return(o=Xk(o,u,f,"origin"))&&(N=(A=WD.exec(o))||GD.exec(o),N!=null&&(b.viewportAnchorX=Number(N[1]),b.viewportAnchorY=Number(N[2]),A?R||(b.width=100-b.viewportAnchorX,b.widthUnits=Es,b.height=100-b.viewportAnchorY,b.heightUnits=Es):(w!=null&&(b.viewportAnchorY=b.viewportAnchorY*100/w),m!=null&&(b.viewportAnchorX=b.viewportAnchorX*100/m)),b.viewportAnchorUnits=A||m!=null?Es:0)),b}function VD(o){var u=o.match(/rgba\(([^)]+)\)/);return u&&(u=u[1].split(","),u.length==4)?(u[3]=String(Number(u[3])/255),"rgba("+u.join(",")+")"):o}function _8e(o,u,f,m,b,w,A,R,N){if(R=R||N,oa(o,f,m,A,"direction",R)=="rtl"&&(u.direction="rtl"),N=oa(o,f,m,A,"writingMode",R),N=="tb"||N=="tblr"?u.writingMode="vertical-lr":N=="tbrl"?u.writingMode="vertical-rl":N=="rltb"||N=="rl"?u.direction="rtl":N&&(u.direction=A3),(N=oa(o,f,m,A,"textAlign",!0))?(u.positionAlign=E8e.get(N),u.lineAlign=w8e.get(N),u.textAlign=AI[N.toUpperCase()]):u.textAlign=Ud,(N=oa(o,f,m,A,"displayAlign",!0))&&(u.displayAlign=nq[N.toUpperCase()]),(N=oa(o,f,m,A,"color",R))&&(u.color=VD(N)),(N=oa(o,f,m,A,"backgroundColor",R))&&(u.backgroundColor=VD(N)),(N=oa(o,f,m,A,"border",R))&&(u.border=N),N=oa(o,f,m,A,"fontFamily",R))switch(N){case"monospaceSerif":u.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":u.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":u.fontFamily="sans-serif";break;case"monospaceSansSerif":u.fontFamily="Consolas,monospace";break;case"proportionalSerif":u.fontFamily="serif";break;default:u.fontFamily=N.split(",").filter(function(V){return V!="default"}).join(",")}switch((N=oa(o,f,m,A,"fontWeight",R))&&N=="bold"&&(u.fontWeight=cg),N=oa(o,f,m,A,"wrapOption",R),u.wrapLine=!(N&&N=="noWrap"),(N=oa(o,f,m,A,"lineHeight",R))&&N.match(n1)&&(u.lineHeight=N),(N=oa(o,f,m,A,"fontSize",R))&&(N.match(n1)||N.match(C8e))&&(u.fontSize=N),(N=oa(o,f,m,A,"fontStyle",R))&&(u.fontStyle=sq[N.toUpperCase()]),b?(w=b.attributes.imageType||b.attributes.imagetype,N=b.attributes.encoding,b=_r(b).trim(),w=="PNG"&&N=="Base64"&&b&&(u.backgroundImage="data:image/png;base64,"+b)):w&&(u.backgroundImage=w),(b=oa(o,f,m,A,"textOutline",R))&&(b=b.split(" "),b[0].match(n1)?u.textStrokeColor=u.color:(u.textStrokeColor=VD(b[0]),b.shift()),b[0]&&b[0].match(n1)?u.textStrokeWidth=b[0]:u.textStrokeColor=""),(b=oa(o,f,m,A,"letterSpacing",R))&&b.match(n1)&&(u.letterSpacing=b),(b=oa(o,f,m,A,"linePadding",R))&&b.match(n1)&&(u.linePadding=b),(b=oa(o,f,m,A,"opacity",R))&&(u.opacity=parseFloat(b)),(b=Xk(o,m,A,"textDecoration"))&&dte(u,b),(b=zD(o,f,A,"textDecoration"))&&dte(u,b),(b=oa(o,f,m,A,"textCombine",R))&&(u.textCombineUpright=b),oa(o,f,m,A,"ruby",R)){case"container":u.rubyTag="ruby";break;case"text":u.rubyTag="rt"}}function dte(o,u){u=_(u.split(" "));for(var f=u.next();!f.done;f=u.next())switch(f.value){case"underline":o.textDecoration.includes(Ff)||o.textDecoration.push(Ff);break;case"noUnderline":o.textDecoration.includes(Ff)&&Jt(o.textDecoration,Ff);break;case"lineThrough":o.textDecoration.includes("lineThrough")||o.textDecoration.push("lineThrough");break;case"noLineThrough":o.textDecoration.includes("lineThrough")&&Jt(o.textDecoration,"lineThrough");break;case"overline":o.textDecoration.includes("overline")||o.textDecoration.push("overline");break;case"noOverline":o.textDecoration.includes("overline")&&Jt(o.textDecoration,"overline")}}function oa(o,u,f,m,b,w){return w=w===void 0?!0:w,(u=zD(o,u,m,b))?u:w?Xk(o,f,m,b):null}function Xk(o,u,f,m){if(!u)return null;var b=Fs(u,Jk,m);return b||fte(o,u,f,m)}function zD(o,u,f,m){var b=Fs(u,Jk,m);return b||fte(o,u,f,m)}function fte(o,u,f,m){u=Zk(u,"style",f,"");for(var b=null,w=0;w=1){var m=new mr(function(){return ra(o,xke)});m.Ea(f),o.G.push(m)}}function IX(o){if(o.G)for(var u=_(o.G),f=u.next();!f.done;f=u.next())f.value.stop();o.G=[]}function LX(o){return(o=o.g.targets)?o.filter(function(u){return u.mode===zX&&u.enabled}):[]}function DX(o){return(o=o.g.targets)?o.filter(function(u){return u.mode===VX&&u.enabled===!0}):[]}function WL(o){return o.g.sessionId||(o.g.sessionId=i.crypto.randomUUID()),{v:o.g.version,sf:o.l,sid:o.g.sessionId,cid:o.g.contentId,mtp:o.j.getBandwidthEstimate()/1e3}}function ra(o,u,f){if(f=f===void 0?{}:f,u=Object.assign({e:u,ts:Date.now()},f),u=qL(o,u,zX),f=o.g.targets,!(o.g.version0&&!A.includes(R))||PX(o,C,b)}}}function Fg(o,u,f){if(o.g.enabled){f=qL(o,f,jX);var m=RX({mode:jX,useHeaders:o.g.useHeaders,includeKeys:o.g.includeKeys||[]});o.m[m]||(o.m[m]={request:1,response:1}),f.sn=o.m[m].request++,m=o.g.includeKeys||[];var b=o.g.version==XL?Array.from(new Set([].concat(T(ZL),T(yke)))):NX;m=GL(m,b),f=KL(f,m),dke(f,u,o.g.useHeaders)}}function PX(o,u,f,m){var b=kc(),C=f.url;if(f.useHeaders){if(u=$X(u),!Object.keys(u).length)return;m&&Object.assign(m.headers,u),m=Vo([C],b),Object.assign(m.headers,u)}else{if(u=c2(u),!u)return;C=N6(C,u),m&&(m.uri=C),m=Vo([C],b)}o.j.Wb().request(9,m)}function dke(o,u,f){if(f)o=$X(o),Object.keys(o).length&&Object.assign(u.headers,o);else{var m=c2(o);m&&(u.uris=u.uris.map(function(b){return N6(b,m)}))}}function GL(o,u){if(!o||o.length===0)return u;for(var f=_(o),m=f.next();!m.done;m=f.next())u.includes(m.value);return o=o.filter(function(b){return u.includes(b)})}function KL(o,u){return Object.keys(o).reduce(function(f,m){return u.includes(m)&&(f[m]=o[m]),f},{})}function fke(o){if(o.type===0)return vke;if(o=o.stream){var u=o.type;if(u=="video")return o.codecs&&o.codecs.includes(",")?V6:j6;if(u=="audio")return F6;if(u=="text")return o.mimeType==="application/mp4"?z6:YL}}function RX(o){var u=Object.keys(o).sort().reduce(function(f,m){return m!=="enabled"&&(f[m]=o[m]),f},{});return JSON.stringify(u)}function hke(o,u){if(u=o.j.Fc()[u],!u.length)return NaN;var f=o.h?o.h.currentTime:0;return(o=u.find(function(m){return m.start<=f&&m.end>=f}))?(o.end-f)*1e3:NaN}function MX(o,u){if(u=o.j.Fc()[u],!u.length)return 0;var f=o.h?o.h.currentTime:0;return(o=u.find(function(m){return m.start<=f&&m.end>=f}))?(o.end-f)*1e3:0}function pke(o,u){var f=o.j.mc();if(!f.length)return NaN;o=f[0],f=_(f);for(var m=f.next();!m.done;m=f.next())m=m.value,m.type==="variant"&&m.bandwidth>o.bandwidth&&(o=m);switch(u){case j6:return o.videoBandwidth||NaN;case F6:return o.audioBandwidth||NaN;default:return o.bandwidth}}function OX(o,u,f){var m=u.segment,b=0;m&&(b=m.endTime-m.startTime),b={d:b*1e3,st:o.j.W()?gke:mke},b.ot=fke(u);var C=b.ot===j6||b.ot===F6||b.ot===V6||b.ot===z6;if(u=u.stream){var A=o.j.Ob();if(C&&(b.bl=hke(o,u.type),b.ot!==z6)){var R=MX(o,u.type);b.dl=A?R/Math.abs(A):R}if(u.bandwidth&&(b.br=u.bandwidth/1e3),u.segmentIndex&&m){if((A=u.segmentIndex.Vb(m.endTime,!0,A<0))&&(A=A.next().value)&&A!=m){if(f&&!vt(m.P(),A.P())){var N=A.P()[0];R=new URL(N);var V=new URL(f);if(R.origin!==V.origin)f=N;else{f=R.pathname.split("/").slice(1),N=V.pathname.split("/").slice(1,-1),V=Math.min(f.length,N.length);for(var G=0;G0&&f<=1?o*(1-f)+u*f:o};function UX(o){return o?o.toLowerCase()==="false"?!1:/^[-0-9]/.test(o)?parseInt(o,10):o.replace(/["]+/g,""):!0}_e("shaka.util.CmsdManager",Hu),Hu.prototype.getBandwidthEstimate=Hu.prototype.getBandwidthEstimate,Hu.prototype.getRoundTripTime=Hu.prototype.Uj,Hu.prototype.getResponseDelay=Hu.prototype.Tj,Hu.prototype.getEstimatedThroughput=Hu.prototype.$h,Hu.prototype.getMaxBitrate=Hu.prototype.bi;var HX="etp",WX="mb",GX="rd",KX="rtt";function qX(){this.g=null,this.h=[]}function JL(o,u){return te(function(f){if(f.g==1)return o.g?L(f,new Promise(function(m){return o.h.push(m)}),2):f.A(2);o.g=u,B(f)})}qX.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function Ot(o,u,f){u=u===void 0?null:u,Qr.call(this);var m=this;this.m=J6,this.h=null,this.xe=u,this.$=!1,this.Ie=new Oe,this.ye=new Oe,this.j=new Oe,this.ac=new Oe,this.yc=new Oe,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new qX,this.O=this.aa=this.X=this.i=this.xc=this.I=this.l=this.ue=this.T=this.Kh=this.wa=this.M=this.ib=this.ya=this.we=this.R=this.Fa=this.N=this.ob=null,this.Sa=!1,this.Ce=this.o=null,this.Be=1e9,this.Ge=[],this.uc=new Map,this.kb=[],this.Xf=-1,this.g=ud(this),this.Zf=pX(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new ZI(this.g,this.xa,null),this.Ee=[],this.B=null,this.K=this.g.adaptationSetCriteriaFactory(),this.K.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredAudioRole,videoRole:this.g.preferredVideoRole,channelCount:0,hdrLevel:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,audioLabel:this.g.preferredAudioLabel,videoLabel:this.g.preferredVideoLabel,codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:this.g.preferredAudioCodecs,preferredAudioChannelCount:this.g.preferredAudioChannelCount}),this.Fd=this.g.preferredTextLanguage,this.Md=this.g.preferredTextRole,this.Ld=this.g.preferForcedSubs,this.ze=[],f&&f(this),this.M=new HL(this,this.g.cmcd),this.wa=new Hu(this.g.cmsd),this.J=tZ(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new mr(function(){return te(function(b){if(b.g==1)return m.qa?L(b,m.fc(m.Jd,!0),3):b.A(0);if(b.g!=4)return L(b,m.load(m.qa),4);m.ag?m.Jd.pause():m.Jd.play(),m.qa=null,m.ag=!1,B(b)})}),Q6&&(this.C=Q6(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(b){var C;return te(function(A){if(A.g==1)return m.$f.stop(),m.qa?A.A(0):(m.Jd=m.h,m.ag=m.be(),C=b.saveLivePosition||!1,L(A,m.Uh(!0,C),3));m.qa=A.h,B(A)})}),this.yc.D(this.C,"ad-content-resume-requested",function(b){if(b=b.offset||0,m.qa){var C=m.qa;C.m&&b&&(typeof C.m=="number"?C.m+=b:C.m.setTime(C.m.getTime()+b*1e3))}m.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return te(function(b){return m.h||!m.Jd?b.A(0):L(b,m.fc(m.Jd,!0),0)})})),ek&&(this.Da=ek(this),this.Da.configure(this.g.queue)),this.Ie.D(i,"online",function(){s7(m),m.fh()}),this.De=new mr(function(){for(var b=Date.now()/1e3,C=!1,A=!0,R=_(m.i.variants),N=R.next();!N.done;N=R.next())N=N.value,N.disabledUntilTime>0&&N.disabledUntilTime<=b&&(N.disabledUntilTime=0,C=!0),N.disabledUntilTime>0&&(A=!1);A&&m.De.stop(),C&&mp(m,!1,void 0,!1,!1)}),this.Ta=null,o&&(Xt("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(o,!0)),this.u=null}x(Ot,Qr);function K6(o){o.T!=null&&(tu(o.T),o.T.release(),o.T=null)}function Cke(o,u,f){f||u.lcevc.enabled?(K6(o),o.T==null&&(o.T=new qo(o.h,o.Kh,u.lcevc,f),o.H&&(o.H.H=o.T))):K6(o)}function _i(o,u){return new kn(o,u)}l=Ot.prototype,l.destroy=function(){var o=this,u;return te(function(f){switch(f.g){case 1:return o.m==wc?f.return():(K6(o),u=o.detach(),o.m=wc,L(f,u,2));case 2:return L(f,o.ng(),3);case 3:if(o.Ie&&(o.Ie.release(),o.Ie=null),o.ye&&(o.ye.release(),o.ye=null),o.j&&(o.j.release(),o.j=null),o.ac&&(o.ac.release(),o.ac=null),o.yc&&(o.yc.release(),o.yc=null),o.Ce=null,o.g=null,o.B=null,o.xe=null,o.M=null,o.wa=null,!o.J){f.A(4);break}return L(f,o.J.destroy(),5);case 5:o.J=null;case 4:o.o&&(o.o.release(),o.o=null),o.Da&&(o.Da.destroy(),o.Da=null),Qr.prototype.release.call(o),B(f)}})};function YX(o,u){xZ.set(o,u)}function jg(o,u){o.dispatchEvent(_i("onstatechange",new Map().set("state",u)))}l.fc=function(o,u){u=u===void 0?!0:u;var f=this,m,b,C;return te(function(A){switch(A.g){case 1:if(f.m==wc)throw new De(2,7,7e3);if(m=f.h&&f.h==o,!f.h||f.h==o){A.A(2);break}return L(A,f.detach(),2);case 2:return L(A,QL(f,"attach"),4);case 4:if(A.h)return A.return();if(j(A,5,6),m||(jg(f,"attach"),b=function(){var R=a7(f,!1);R&&Vg(f,R)},f.ye.D(o,"error",b),f.h=o,f.M&&f.M.setMediaElement(o)),Le(),!u||!Wd()||f.H){A.A(6);break}return L(A,e7(f),6);case 6:K(A),f.ma.release(),oe(A,0);break;case 5:return C=W(A),L(A,f.detach(),10);case 10:throw C}})},l.jj=function(o){this.Kh=o},l.detach=function(o){o=o===void 0?!1:o;var u=this;return te(function(f){if(f.g==1){if(u.m==wc)throw new De(2,7,7e3);return L(f,u.Bc(!1,o),2)}if(f.g!=3)return L(f,QL(u,"detach"),3);if(f.h)return f.return();try{u.h&&(u.ye.Pa(),u.h=null),jg(u,"detach"),u.C&&!o&&u.C.release()}finally{u.ma.release()}B(f)})};function QL(o,u){var f;return te(function(m){return m.g==1?(f=++o.Je,L(m,JL(o.ma,u),2)):f!=o.Je?(o.ma.release(),m.return(!0)):m.return(!1)})}l.Bc=function(o,u){o=o===void 0?!0:o,u=u===void 0?!1:u;var f=this,m,b,C,A,R,N,V,G,Z,le,he,pe,ye,be,ze,Ne;return te(function(Je){switch(Je.g){case 1:return f.m!=wc&&(f.m=J6),L(Je,QL(f,"unload"),2);case 2:return Je.h?Je.return():(H(Je,3),f.Sa=!1,jg(f,"unload"),K6(f),m=f.ze.map(function(lt){return lt()}),f.ze=[],L(Je,Promise.all(m),5));case 5:if(f.dispatchEvent(_i("unloading")),f.we&&(f.we.release(),f.we=null),f.ya&&(f.ya.release(),f.ya=null),f.ib&&(f.ib.release(),f.ib=null),f.h&&(f.j.Pa(),f.ac.Pa()),f.De.stop(),f.ob&&(f.ob.release(),f.ob=null),f.Fa&&(f.Fa.stop(),f.Fa=null),!f.I){Je.A(6);break}return L(Je,f.I.stop(),7);case 7:f.I=null,f.xc=null;case 6:if(f.o&&f.o.stop(),!f.l){Je.A(8);break}return L(Je,f.l.destroy(),9);case 9:f.l=null;case 8:if(f.N&&(f.N.release(),f.N=null),f.G&&(f.G.release(),f.G=null),i.shakaMediaKeysPolyfill!=="webkit"||!f.F){Je.A(10);break}return L(Je,f.F.destroy(),11);case 11:f.F=null;case 10:if(!f.H){Je.A(12);break}return L(Je,f.H.destroy(),13);case 13:f.H=null;case 12:if(f.C&&!u&&f.C.onAssetUnload(),f.qa&&!u&&(f.qa.destroy(),f.qa=null),u||f.$f.stop(),f.M&&oke(f.M),f.wa&&(f.wa.g=null),!f.u){Je.A(14);break}return L(Je,f.u.destroy(),15);case 15:f.u=null;case 14:if(f.$=!1,f.h){for(b=_(f.Yf),C=b.next();!C.done;C=b.next())A=C.value,A.src.startsWith("blob:")&&URL.revokeObjectURL(A.src),A.remove();f.Yf=[],h6(f.h)&&f.h.load()}if(!f.F){Je.A(16);break}return L(Je,f.F.destroy(),17);case 17:f.F=null;case 16:if(f.Ta&&f.X!=f.Ta.rd()&&(f.Ta.j||f.Ta.destroy(),f.Ta=null),f.X=null,f.aa=null,f.R=null,f.i){for(R=_(f.i.variants),N=R.next();!N.done;N=R.next())for(V=N.value,G=_([V.audio,V.video]),Z=G.next();!Z.done;Z=G.next())(le=Z.value)&&le.segmentIndex&&le.segmentIndex.release();for(he=_(f.i.textStreams),pe=he.next();!pe.done;pe=he.next())ye=pe.value,ye.segmentIndex&&ye.segmentIndex.release()}for(f.g&&f.g.streaming.clearDecodingCache&&(YS.clear(),mg.clear()),f.i=null,f.B=new B6,f.Jh=null,f.Zb=null,f.V=null,f.Ke=-1,f.Ge=[],be=_(f.uc.values()),ze=be.next();!ze.done;ze=be.next())Ne=ze.value,Ne.stop();f.uc.clear(),f.kb=[],f.Xf=-1,f.J&&f.J.Qh(),d2(f);case 3:K(Je),f.ma.release(),oe(Je,4);break;case 4:if(Le(),o&&Wd()&&!f.H&&f.h)return L(Je,e7(f),0);Je.A(0)}})},l.kl=function(o){this.O=o},l.load=function(o,u,f){u=u===void 0?null:u;var m=this,b,C,A,R,N,V,G,Z,le,he,pe,ye,be,ze;return te(function(Ne){switch(Ne.g){case 1:if(m.m==wc)throw new De(2,7,7e3);if(b=null,C="",o instanceof Uu){if(o.j)throw new De(2,7,7006);b=o,C=b.rd()||""}else C=o||"";return L(Ne,JL(m.ma,"load"),2);case 2:if(m.ma.release(),!m.h)throw new De(2,7,7002);if(!m.X){Ne.A(3);break}return m.X=C,L(Ne,m.Bc(!1),3);case 3:if(A=++m.Je,R=function(){return te(function(Je){if(Je.g==1)return m.Je==A?Je.A(0):b?L(Je,b.destroy(),3):Je.A(3);throw new De(2,7,7e3)})},N=function(Je,lt){return te(function(St){switch(St.g){case 1:return H(St,2),L(St,JL(m.ma,lt),4);case 4:return L(St,R(),5);case 5:return L(St,Je(),6);case 6:return L(St,R(),7);case 7:b&&m.g&&(b.g=m.g);case 2:K(St),m.ma.release(),oe(St,0)}})},j(Ne,5,6),u==null&&b&&(u=b.getStartTime()),m.O=u,m.Sa=!1,m.dispatchEvent(_i("loading")),b){f=b.V,Ne.A(8);break}if(f){Ne.A(8);break}return L(Ne,N(function(){return te(function(Je){if(Je.g==1)return L(Je,QX(m,C),2);f=Je.h,B(Je)})},"guessMimeType_"),8);case 8:if(V=!!b,b){gX(b,m),m.B=b.getStats(),Ne.A(11);break}return L(Ne,ZX(m,C,u,f,!0,m.g),12);case 12:(b=Ne.h)?(b.F=!1,gX(b,m),m.B=b.getStats(),b.start(),b.B.catch(function(){})):m.B=new B6;case 11:return G=!b,Z=Date.now()/1e3,m.B=b?b.getStats():new B6,m.X=C,m.aa=f||null,d2(m),le=function(){var Je=m.h?m.h.buffered:null;return{start:vY(Je)||0,end:f6(Je)||0}},m.ya=new J3(le),m.ya.addEventListener("regionadd",function(Je){t7(m,Je.region,"metadataadded")}),G?L(Ne,N(function(){return te(function(Je){return L(Je,Ike(m,f),0)})},"initializeSrcEqualsDrmInner_"),23):(m.ib=new J3(le),L(Ne,N(function(){return te(function(Je){if(Je.g==1)return L(Je,Promise.race([b.ma,b.B]),2);m.xc=b.H;var lt=b;lt.qa=!0,m.I=lt.l,m.i=b.Hg(),B(Je)})},"waitForFinish"),15));case 15:if(m.H){Ne.A(16);break}return L(Ne,N(function(){return te(function(Je){return L(Je,e7(m),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return m.i&&m.i.textStreams.length&&(m.u.enableTextDisplayer?m.u.enableTextDisplayer():Xt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),L(Ne,N(function(){return te(function(Je){return L(Je,b.B,0)})},"waitForFinish"),18);case 18:if(m.g=b.getConfiguration(),m.Ae=b.G,m.I&&m.I.setMediaElement&&m.h&&m.I.setMediaElement(m.h),m.we=H6e(b),m.ue=b.Fa,(he=b.C)&&(m.K=he),V&&m.h&&m.h.nodeName==="AUDIO"&&(Eke(m),m.configure("manifest.disableVideo",!0)),b.i){Ne.A(19);break}return L(Ne,N(function(){return te(function(Je){return L(Je,yX(b,m.h),0)})},"drmEngine_.init"),19);case 19:return m.F=W6e(b),L(Ne,N(function(){return te(function(Je){return L(Je,m.F.fc(m.h),0)})},"drmEngine_.attach"),21);case 21:return pe=m.g.abrFactory,m.o&&m.Ce==pe||(m.Ce=pe,m.o&&m.o.release(),m.o=pe(),typeof m.o.setMediaElement!="function"&&(Xt("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),m.o.setMediaElement=function(){}),typeof m.o.setCmsdManager!="function"&&(Xt("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),m.o.setCmsdManager=function(){}),typeof m.o.trySuggestStreams!="function"&&(Xt("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),m.o.trySuggestStreams=function(){}),m.o.configure(m.g.abr)),ye=G6e(b),be=b.o,L(Ne,N(function(){return te(function(Je){return L(Je,Ake(m,Z,be,ye),0)})},"loadInner_"),22);case 22:U6e(b),m.aa&&Le().aj()&&D3(m.aa)&&OSe(m.H,m.X,m.aa),Ne.A(14);break;case 23:return L(Ne,N(function(){return te(function(Je){return L(Je,Lke(m,Z,f),0)})},"srcEqualsInner_"),14);case 14:m.dispatchEvent(_i("loaded"));case 6:if(K(Ne),!b){Ne.A(25);break}return L(Ne,b.destroy(),25);case 25:m.Ta=null,oe(Ne,0);break;case 5:if(ze=W(Ne),!ze||ze.code==7e3){Ne.A(27);break}return L(Ne,m.Bc(!1),27);case 27:throw ze}})};function Eke(o){for(var u=_(o.i.variants),f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.closeSegmentIndex(),f.video=null),f.bandwidth=f.audio&&f.audio.bandwidth?f.audio.bandwidth:0;o.i.variants=o.i.variants.filter(function(m){return m.audio})}l.dj=function(o,u){o=o===void 0?!0:o,u=u===void 0?!1:u;var f=this,m;return te(function(b){return b.g==1?L(b,XX(f),2):b.g!=3?(m=b.h,L(b,f.Bc(o,u),3)):b.return(m)})},l.Uh=function(o,u){o=o===void 0?!1:o,u=u===void 0?!1:u;var f=this,m;return te(function(b){return b.g==1?L(b,XX(f,u),2):b.g!=3?(m=b.h,L(b,f.detach(o),3)):b.return(m)})};function XX(o,u){u=u===void 0?!1:u;var f,m,b;return te(function(C){if(C.g==1)return f=null,o.i&&o.I&&o.xc&&o.X&&o.g?(m=o.h.currentTime,o.W()&&!u&&(m=null),L(C,JX(o,o.X,m,o.aa,o.g,!0,!1),3)):C.A(2);if(C.g!=2){f=C.h,o.Ee.push(f),o.I&&o.I.setMediaElement&&o.I.setMediaElement(null),(b=o.l?o.l.o:null)&&(f.o=b);var A=f,R=o.I,N=o.xc;A.h=o.i,A.l=R,A.H=N,f.C=o.K,f.start(),o.i=null,o.I=null,o.xc=null,o.o=null,o.Ce=null}return C.return(f)})}l.preload=function(o,u,f,m){u=u===void 0?null:u;var b=this,C,A;return te(function(R){return R.g==1?(C=ud(b),Xf(C,m||b.g,ud(b)),L(R,ZX(b,o,u,f,!1,C),2)):((A=R.h)?A.start():Vg(b,new De(2,7,7005)),R.return(A))})},l.ng=function(){var o=this,u,f,m,b;return te(function(C){for(u=[],f=_(o.Ee),m=f.next();!m.done;m=f.next())b=m.value,b.j||u.push(b.destroy());return o.Ee=[],L(C,Promise.all(u),0)})};function ZX(o,u,f,m,b,C){b=b===void 0?!1:b;var A,R,N;return te(function(V){return V.g==1?m?V.A(2):L(V,QX(o,u),3):(V.g!=2&&(m=V.h),Tke(o,m)?V.return(null):(A=C||o.g,R=!1,b&&o.h&&o.h.nodeName==="AUDIO"&&(R=!0),N=JX(o,u,f,m||null,A,!b,R),N=b?N.then(function(G){return G.F=!1,G}):N.then(function(G){return o.Ee.push(G),G}),V.return(N)))})}function JX(o,u,f,m,b,C,A){C=C===void 0?!0:C,A=A===void 0?!1:A;var R,N,V,G,Z,le,he,pe,ye,be,ze,Ne,Je,lt,St;return te(function(it){return it.g==1?(R=null,N=hn(b),A&&(N.manifest.disableVideo=!0),V=function(){return R.R&&R.j?null:R},G=function(){return V()?V().getConfiguration():o.g},o.xa.width!=1/0||o.xa.height!=1/0||o.g.ignoreHardwareResolution?it.A(2):(Z=Le(),L(it,Z.jc(),3))):(it.g!=2&&(le=it.h,o.xa.width=le.width,o.xa.height=le.height),he=new ZI(N,o.xa,null),pe={networkingEngine:o.J,filter:function(Xe){var pt,_t;return te(function(bt){if(bt.g==1)return L(bt,Qq(he,Xe),2);if(bt.g!=4)return pt=bt.h,pt?(_t=_i("trackschanged"),L(bt,Promise.resolve(),4)):bt.A(0);R.dispatchEvent(_t),B(bt)})},makeTextStreamsForClosedCaptions:function(Xe){return Uke(o,Xe)},onTimelineRegionAdded:function(Xe){_L(R.I,Xe)},onEvent:function(Xe){return R.dispatchEvent(Xe)},onError:function(Xe){return R.onError(Xe)},isLowLatencyMode:function(){return G().streaming.lowLatencyMode},updateDuration:function(){o.l&&R.R&&o.l.updateDuration()},newDrmInfo:function(Xe){var pt=R.i,_t=pt?pt.g:null;_t&&pt.B&&nY(he,_t.keySystem,Xe)},onManifestUpdated:function(){var Xe=new Map().set("isLive",o.W());R.dispatchEvent(_i("manifestupdated",Xe)),s2(R,!1,function(){o.C&&o.C.onManifestUpdated(o.W())})},getBandwidthEstimate:function(){return o.o.getBandwidthEstimate()},onMetadata:function(Xe,pt,_t,bt){var kt=Xe;(Xe=="com.apple.hls.interstitial"||Xe=="com.apple.hls.overlay")&&(kt="com.apple.quicktime.HLS",Xe={startTime:pt,endTime:_t,values:bt},o.C&&o.C.onHLSInterstitialMetadata(o,o.h,Xe)),bt=_(bt),Xe=bt.next();for(var wt={};!Xe.done;wt={Yg:void 0},Xe=bt.next())wt.Yg=Xe.value,wt.Yg.name!="ID"&&s2(R,!1,(function(Bt){return function(){n7(o,pt,_t,kt,Bt.Yg)}})(wt))},disableStream:function(Xe){return o.disableStream(Xe,o.g.streaming.maxDisabledTime)},addFont:function(Xe,pt){return o.addFont(Xe,pt)}},ye=new J3(function(){return o.Qa()}),ye.addEventListener("regionadd",function(Xe){var pt=Xe.region;p2(o,"timelineregionadded",pt,R),s2(R,!1,function(){o.C&&(o.C.onDashTimedMetadata(pt),o.C.onDASHInterstitialMetadata(o,o.h,pt))})}),be=null,N.streaming.observeQualityChanges&&(be=new _6(function(){return o.Fc()}),be.addEventListener("qualitychange",function(Xe){_Z(o,Xe.quality,Xe.position)}),be.addEventListener("audiotrackchange",function(Xe){_Z(o,Xe.quality,Xe.position,!0)})),ze=!0,Ne={tc:o.J,onError:function(Xe){return R.onError(Xe)},vf:function(Xe){s2(R,!0,function(){o.F&&Wke(o,Xe)})},onExpirationUpdated:function(Xe,pt){var _t=_i("expirationupdated");R.dispatchEvent(_t),(_t=R.l)&&_t.onExpirationUpdated&&_t.onExpirationUpdated(Xe,pt)},onEvent:function(Xe){R.dispatchEvent(Xe),Xe.type=="drmsessionupdate"&&ze&&(ze=!1,Xe=Date.now()/1e3-R.ya,(o.B||R.getStats()).m=Xe,o.T&&tu(o.T))}},Je=tZ(o,V),Rq(o.J,Je),lt=function(){return o.md(Ne)},St={config:N,wk:pe,Hk:ye,Gk:be,md:lt,vk:he,networkingEngine:Je,ij:C},R=new Uu(u,m,f,St),it.return(R))})}function QX(o,u){var f,m,b,C;return te(function(A){return A.g==1?(f=o.g.manifest.retryParameters,L(A,dv(u,o.J,f),2)):(m=A.h,m=="application/x-mpegurl"&&(b=Le(),b.Ha()==="WEBKIT"&&(m="application/vnd.apple.mpegurl")),m=="video/quicktime"&&(C=Le(),C.Ha()==="CHROMIUM"&&(m="video/mp4")),A.return(m))})}function Tke(o,u){if(!Wd(Le()))return!0;if(u){if((o.h||iv()).canPlayType(u)=="")return!1;if(!Wd(Le())||!wg.has(u))return!0;if(D3(u))return Le().Ha()==="WEBKIT"&&(o.g.drm.servers["com.apple.fps"]||o.g.drm.servers["com.apple.fps.1_0"])?o.g.streaming.useNativeHlsForFairPlay:o.g.streaming.preferNativeHls;if(u==="application/dash+xml"||u==="video/vnd.mpeg.dash.mpd")return o.g.streaming.preferNativeDash}return!1}function q6(o,u){var f=o.g.textDisplayFactory;o.Jh!==f||u!==void 0&&u?(u=o.u,o.u=f(),o.u.configure?o.u.configure(o.g.textDisplayer):Xt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),o.u.setTextLanguage||Xt("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!'),u?(o.u.setTextVisibility(u.isTextVisible()),u.destroy().catch(function(){})):o.u.setTextVisibility(o.$),o.H&&HSe(o.H,o.u),o.Jh=f,o.l&&v6e(o.l)):o.u&&o.u.configure&&o.u.configure(o.g.textDisplayer)}function e7(o){var u,f,m;return te(function(b){if(b.g==1)return Le(),jg(o,"media-source"),o.g.mediaSource.useSourceElements&&h6(o.h),q6(o),u=Nke(o.h,o.u,{Jj:function(){return o.keySystem()},onMetadata:function(C,A,R){C=_(C);for(var N=C.next();!N.done;N=C.next())if(N=N.value,N.data&&typeof N.cueTime=="number"&&N.frames){var V=N.cueTime+A,G=R;G&&V>G&&(G=V);for(var Z=_(N.frames),le=Z.next();!le.done;le=Z.next())n7(o,V,G,"org.id3",le.value);o.C&&o.C.onHlsTimedMetadata(N,V)}},Bk:function(C){o.ib&&_L(o.ib,{schemeIdUri:C.schemeIdUri,startTime:C.startTime,endTime:C.endTime,id:String(C.id),emsg:C})},onEvent:function(C){return o.dispatchEvent(C)},Dk:function(){o.I&&o.I.update&&o.I.update()}},o.T,o.g.mediaSource),f=o.g.manifest,m=f.segmentRelativeVttTiming,u.Fa=m,L(b,u.M,2);o.H=u,B(b)})}function eZ(o,u,f){function m(){return i7(o)}if(o.j.D(u,"playing",m),o.j.D(u,"pause",m),o.j.D(u,"ended",m),o.j.D(u,"ratechange",function(){var C=o.h.playbackRate;C!=0&&(o.N&&(o.N.set(C),o.m==Hs&&o.o.playbackRateChanged(C),dZ(o,C)),C=_i("ratechange"),o.dispatchEvent(C))}),u.remote&&(o.j.D(u.remote,"connect",function(){o.l&&u.remote.state=="connected"&&Jf(o),Ra(o)}),o.j.D(u.remote,"connecting",function(){return Ra(o)}),o.j.D(u.remote,"disconnect",function(){return te(function(C){if(C.g==1)return o.l&&u.remote.state=="disconnected"?L(C,A6(o.l),3):C.A(2);C.g!=2&&Jf(o),Ra(o),B(C)})})),u.audioTracks&&(o.j.D(u.audioTracks,"addtrack",function(){return Ra(o)}),o.j.D(u.audioTracks,"removetrack",function(){return Ra(o)}),o.j.D(u.audioTracks,"change",function(){return Ra(o)})),u.videoTracks&&(o.j.D(u.videoTracks,"addtrack",function(){return Ra(o)}),o.j.D(u.videoTracks,"removetrack",function(){return Ra(o)}),o.j.D(u.videoTracks,"change",function(){return Ra(o)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&o.j.D(u,"webkitpresentationmodechanged",function(){o.xe&&q6(o,!0)}),u.textTracks){var b=function(){o.m===Ol&&o.u instanceof os&&Jf(o),Ra(o)};o.j.D(u.textTracks,"addtrack",function(C){if(C.track)switch(C=C.track,C.kind){case"metadata":Rke(o,C);break;case"chapters":Mke(o,C);break;default:b()}}),o.j.D(u.textTracks,"removetrack",b),o.j.D(u.textTracks,"change",b)}u.preload!="none"&&o.j.Ba(u,"loadedmetadata",function(){o.B.G=Date.now()/1e3-f})}function Ake(o,u,f,m){var b,C,A,R,N,V,G,Z,le,he,pe,ye,be,ze,Ne,Je,lt,St,it,Xe,pt,_t,bt,kt,wt,Bt,Nt,Tt;return te(function(Dt){switch(Dt.g){case 1:for(jg(o,"load"),b=o.h,o.N=new Z3({Ye:function(){return b.playbackRate},Tc:function(){return b.defaultPlaybackRate},ph:function(qt){b.playbackRate=qt},ui:function(qt){b.currentTime+=qt}}),eZ(o,b,u),("onchange"in i.screen)&&o.j.D(i.screen,"change",function(){if(o.K.getConfiguration){var qt=o.K.getConfiguration();qt.hdrLevel=="AUTO"?fv(o):o.g.preferredVideoHdrLevel=="AUTO"&&o.g.abr.enabled&&(qt.hdrLevel="AUTO",o.K.configure(qt),fv(o))}}),C=!1,A=_(o.i.variants),R=A.next();!R.done;R=A.next())N=R.value,(V=N.video&&N.video.dependencyStream)&&(C=Ll(V));Cke(o,o.g,C),o.Fd=o.g.preferredTextLanguage,o.Md=o.g.preferredTextRole,o.Ld=o.g.preferForcedSubs,l7(o.i.presentationTimeline,o.g.playRangeStart,o.g.playRangeEnd),o.o.init(function(qt,an,Jn){o.i&&o.l&&qt!=o.l.o&&f2(o,qt,!0,an===void 0?!1:an,Jn===void 0?0:Jn)}),o.o.setMediaElement(b),o.o.setCmsdManager(o.wa),o.l=Fke(o),o.l.configure(o.g.streaming),o.m=Hs,o.dispatchEvent(_i("streaming")),G=f;case 2:for((le=o.l.o)||G||(G=hZ(o,!0)),he=[],Z=le||G,pe=_([Z.video,Z.audio]),ye=pe.next();!ye.done;ye=pe.next())(be=ye.value)&&!be.segmentIndex&&(he.push(be.createSegmentIndex()),be.dependencyStream&&he.push(be.dependencyStream.createSegmentIndex()));if(!(he.length>0)){Dt.A(4);break}return L(Dt,Promise.all(he),4);case 4:if(!Z||Z.disabledUntilTime!=0){Dt.A(2);break}if(o.I&&o.I.onInitialVariantChosen&&o.I.onInitialVariantChosen(Z),o.i.isLowLatency&&(o.g.streaming.lowLatencyMode?o.configure(o.Zf):at("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.")),o.M&&(ske(o.M,o.i.isLowLatency&&o.g.streaming.lowLatencyMode),ake(o.M,u*1e3)),l7(o.i.presentationTimeline,o.g.playRangeStart,o.g.playRangeEnd),f6e(o.l,o.g.playRangeStart,o.g.playRangeEnd),o.Sa=!0,o.dispatchEvent(_i("canupdatestarttime")),ze=function(qt){o.G=Oke(o,qt),o.ob=$ke(o,qt),nZ(o,b,!1)},o.g.streaming.startAtSegmentBoundary||(Ne=o.O,Ne==null&&o.i.startTime&&(Ne=o.i.startTime),ze(Ne)),le){Dt.A(7);break}if(!o.g.streaming.startAtSegmentBoundary){Dt.A(8);break}return Je=o.i.presentationTimeline,o.O instanceof Date&&(St=Je.m||Je.i,it=o.O.getTime()/1e3-St,it!=null&&(lt=it)),lt==null&&(lt=typeof o.O=="number"?o.O:o.h.currentTime),o.O==null&&o.i.startTime&&(lt=o.i.startTime),Xe=Je.Xb(),pt=Je.Gb(),ltpt&&(lt=pt),L(Dt,Hke(G,lt),9);case 9:_t=Dt.h,ze(_t);case 8:f2(o,G,!0,!1,0);case 7:return o.G.ready(),bt=o.Kc().find(function(qt){return qt.active}),bt||((kt=vg(o.i.textStreams,o.Fd,o.Md,o.Ld)[0]||null)&&BL(o.B.h,kt,!0),G&&(kt?(wq(G.audio,kt,o.g)&&(o.$=!0),o.$&&o.u.setTextVisibility(!0)):(o.$=!1,o.u.setTextVisibility(!1)),yZ(o)),kt&&(o.g.streaming.alwaysStreamText||o.Og())&&(w6(o.l,kt),h2(o))),L(Dt,o.l.start(m),10);case 10:o.g.abr.enabled&&(o.o.enable(),bZ(o)),Ra(o),o.i.variants.some(function(qt){return qt.primary}),((wt=o.W())&&(o.g.streaming.liveSync&&o.g.streaming.liveSync.enabled||o.i.serviceDescription||o.g.streaming.liveSync.panicMode)||o.g.streaming.vodDynamicPlaybackRate)&&(Bt=function(){return fZ(o)},o.j.D(b,"timeupdate",Bt)),wt||(Nt=function(){return Z6(o)},o.j.D(b,"timeupdate",Nt),Z6(o),o.i.nextUrl&&(o.g.streaming.preloadNextUrlWindow>0&&(Tt=function(){var qt;return te(function(an){if(an.g==1)return qt=o.Qa().end-o.h.currentTime,isNaN(qt)||!(qt<=o.g.streaming.preloadNextUrlWindow)?an.A(0):(o.j.Ma(b,"timeupdate",Tt),L(an,o.preload(o.i.nextUrl),4));o.Ta=an.h,B(an)})},o.j.D(b,"timeupdate",Tt)),o.j.D(b,"ended",function(){o.load(o.Ta||o.i.nextUrl)}))),o.C&&o.C.onManifestUpdated(wt),B(Dt)}})}function Ike(o,u){var f,m,b;return te(function(C){return C.g==1?(f=Date.now()/1e3,m=!0,o.F=o.md({tc:o.J,onError:function(A){Vg(o,A)},vf:function(){},onExpirationUpdated:function(){var A=_i("expirationupdated");o.dispatchEvent(A)},onEvent:function(A){o.dispatchEvent(A),A.type=="drmsessionupdate"&&m&&(m=!1,o.B.m=Date.now()/1e3-f)}}),o.F.configure(o.g.drm),b=xq([u]),o.F.O=!0,L(C,Vq(o.F,[b],[]),2)):L(C,o.F.fc(o.h),0)})}function Lke(o,u,f){var m,b,C,A,R,N,V,G,Z,le,he,pe;return te(function(ye){switch(ye.g){case 1:if(jg(o,"src-equals"),m=o.h,o.G=new zY(m),b=!1,o.ze.push(function(){b=!0}),o.dispatchEvent(_i("canupdatestarttime")),o.O!=null&&o.G.Wf(o.O),o.ob=Bke(o,o.O||0),o.N=new Z3({Ye:function(){return m.playbackRate},Tc:function(){return m.defaultPlaybackRate},ph:function(be){m.playbackRate=be},ui:function(be){m.currentTime+=be}}),nZ(o,m,!0),m.textTracks&&(q6(o),C=function(be){if(!(o.u instanceof os)){var ze=Y6(o).find(function(Ne){return Ne.mode!=="disabled"});ze&&(ze.mode=be?"showing":"hidden"),o.u instanceof ea&&(ze=jke(o))&&(ze.mode=!be&&o.u.isTextVisible()?"showing":"hidden")}},o.j.D(m,"enterpictureinpicture",function(){return C(!0)}),o.j.D(m,"leavepictureinpicture",function(){return C(!1)}),m.remote?(o.j.D(m.remote,"connect",function(){return C(!1)}),o.j.D(m.remote,"connecting",function(){return C(!1)}),o.j.D(m.remote,"disconnect",function(){return C(!1)})):"webkitCurrentPlaybackTargetIsWireless"in m&&o.j.D(m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return C(!1)}),A=m,(A.webkitPresentationMode||A.webkitSupportsFullscreen)&&o.j.D(A,"webkitpresentationmodechanged",function(){A.webkitPresentationMode?C(A.webkitPresentationMode!=="inline"):A.webkitSupportsFullscreen&&C(A.webkitDisplayingFullscreen)})),eZ(o,m,u),R=lke(o.M,o.X,f),!R.includes("#t=")&&(o.g.playRangeStart>0||isFinite(o.g.playRangeEnd))&&(R+="#t=",o.g.playRangeStart>0&&(R+=o.g.playRangeStart),isFinite(o.g.playRangeEnd)&&(R+=","+o.g.playRangeEnd)),!o.H){ye.A(2);break}return L(ye,o.H.destroy(),3);case 3:o.H=null;case 2:return h6(m),m.src=R,N=Le(),N.Ua()=="TV"&&m.load(),m.preload!="none"&&!m.autoplay&&D3(f)&&N.Ha()==="WEBKIT"&&m.load(),o.m=Ol,o.dispatchEvent(_i("streaming")),V=new fi,Rg(m,HTMLMediaElement.HAVE_METADATA,o.j,function(){o.G.ready(),o.aa&&D3(o.aa)||V.resolve()}),G=function(){return new Promise(function(be){var ze=new mr(be);o.j.D(m.textTracks,"change",function(){return ze.ia(.5)}),ze.ia(.5)})},Rg(m,HTMLMediaElement.HAVE_CURRENT_DATA,o.j,function(){var be,ze,Ne,Je,lt;return te(function(St){if(St.g==1)return L(St,G(),2);if(b)return St.return();if(Dke(o),be=Y6(o),be.some(function(it){return it.mode==="showing"})&&(o.$=!0,o.u.setTextVisibility(!0)),!(o.u instanceof os))for(be.length&&(o.u.enableTextDisplayer?o.u.enableTextDisplayer():Xt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),ze=!1,Ne=_(be),Je=Ne.next();!Je.done;Je=Ne.next())lt=Je.value,lt.mode!=="disabled"&&(ze?(lt.mode="disabled",at("Found more than one enabled text track, disabling it",lt)):(lZ(o,lt),ze=!0));Pke(o),o.aa&&D3(o.aa)&&V.resolve(),B(St)})}),m.error?V.reject(a7(o)):m.preload=="none"&&(at('With

in TTML");for(le=_(Fr(b,"div")),he=le.next();!he.done;he=le.next())if(Fr(he.value,"span").length)throw new De(2,2,2001," can only be inside

in TTML");return(u=cte(this,b,u,A,R,N,C,V,Z,G,null,!1,f,m))&&(u.backgroundColor||(u.backgroundColor="transparent"),o.push(u)),o};function cte(o,u,f,m,b,C,A,R,N,V,G,Z,le,he){var pe=G;if(Fu(u)){if(!Z)return null;var ye={tagName:"span",children:[_r(u)],attributes:{},parent:null}}else ye=u;for(var be=null,ze=_(_te),Ne=ze.next();!Ne.done&&!(be=Jk(ye,"backgroundImage",b,"#",Ne.value)[0]);Ne=ze.next());ze=null,Ne=Fs(ye,_te,"backgroundImage");var Je=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(Ne&&Je.test(Ne)){if(ze=parseInt(Ne.split(":").pop(),10)-1,ze>=he.length)return null;ze=he[ze]}else le&&Ne&&!Ne.startsWith("#")&&(Je=new Yt(le),Ne=new Yt(Ne),(Ne=Je.resolve(Ne).toString())&&(ze=Ne));if((u.tagName=="p"||be||ze)&&(Z=!0),u=Z,Ne=(ye.attributes["xml:space"]||(N?"default":"preserve"))=="default",Je=ye.children.every(Fu),N=[],!Je)for(var lt=_(ye.children),St=lt.next();!St.done;St=lt.next())(St=cte(o,St.value,f,m,b,C,A,R,Ne,V,ye,Z,le,he))&&N.push(St);if(b=G!=null,le=_r(ye),le=ye.children.length&&le&&/\S/.test(le),lt=ye.attributes.begin||ye.attributes.end||ye.attributes.dur,!(lt||le||ye.tagName=="br"||N.length!=0||b&&!Ne))return null;for(he=hte(ye,m),le=he.start,he=he.end;pe&&pe.tagName&&pe.tagName!="tt";)he=S8e(pe,m,le,he),le=he.start,he=he.end,pe=pe.parent;if(le==null&&(le=0),le+=f.periodStart,he=he==null?1/0:he+f.periodStart,o.g!=="HLS"&&(le=Math.max(le,f.segmentStart),he=Math.min(he,f.segmentEnd)),!lt&&N.length>0)for(le=1/0,he=0,f=_(N),m=f.next();!m.done;m=f.next())m=m.value,le=Math.min(le,m.startTime),he=Math.max(he,m.endTime);if(ye.tagName=="br")return o=new Oi(le,he,""),o.lineBreak=!0,o;if(f="",Je&&(f=ln(_r(ye)||""),Ne&&(f=f.replace(/\s+/g," "))),f=new Oi(le,he,f),f.nestedCues=N,Z||(f.isContainer=!0),V&&(f.cellResolution=V),V=Jk(ye,"region",A,"")[0],ye.attributes.region&&V&&V.attributes["xml:id"]){var it=V.attributes["xml:id"];f.region=R.filter(function(Xe){return Xe.id==it})[0]}return R=V,G&&b&&!ye.attributes.region&&!ye.attributes.style&&(R=Jk(G,"region",A,"")[0]),_8e(o,f,ye,R,be,ze,C,u,N.length==0),f}function b8e(o,u,f,m){var b=new nl,C=u.attributes["xml:id"];if(!C)return null;b.id=C,C=null,m&&(C=KD.exec(m)||qD.exec(m)),m=C?Number(C[1]):null,C=C?Number(C[2]):null;var A,R=Zk(o,u,f,"extent");if(R){var N=(A=KD.exec(R))||qD.exec(R);N!=null&&(b.width=Number(N[1]),b.height=Number(N[2]),A||(m!=null&&(b.width=b.width*100/m),C!=null&&(b.height=b.height*100/C)),b.widthUnits=A||m!=null?Ts:0,b.heightUnits=A||C!=null?Ts:0)}return(o=Zk(o,u,f,"origin"))&&(N=(A=KD.exec(o))||qD.exec(o),N!=null&&(b.viewportAnchorX=Number(N[1]),b.viewportAnchorY=Number(N[2]),A?R||(b.width=100-b.viewportAnchorX,b.widthUnits=Ts,b.height=100-b.viewportAnchorY,b.heightUnits=Ts):(C!=null&&(b.viewportAnchorY=b.viewportAnchorY*100/C),m!=null&&(b.viewportAnchorX=b.viewportAnchorX*100/m)),b.viewportAnchorUnits=A||m!=null?Ts:0)),b}function UD(o){var u=o.match(/rgba\(([^)]+)\)/);return u&&(u=u[1].split(","),u.length==4)?(u[3]=String(Number(u[3])/255),"rgba("+u.join(",")+")"):o}function _8e(o,u,f,m,b,C,A,R,N){if(R=R||N,oa(o,f,m,A,"direction",R)=="rtl"&&(u.direction="rtl"),N=oa(o,f,m,A,"writingMode",R),N=="tb"||N=="tblr"?u.writingMode="vertical-lr":N=="tbrl"?u.writingMode="vertical-rl":N=="rltb"||N=="rl"?u.direction="rtl":N&&(u.direction=A3),(N=oa(o,f,m,A,"textAlign",!0))?(u.positionAlign=E8e.get(N),u.lineAlign=C8e.get(N),u.textAlign=LI[N.toUpperCase()]):u.textAlign=Ud,(N=oa(o,f,m,A,"displayAlign",!0))&&(u.displayAlign=nq[N.toUpperCase()]),(N=oa(o,f,m,A,"color",R))&&(u.color=UD(N)),(N=oa(o,f,m,A,"backgroundColor",R))&&(u.backgroundColor=UD(N)),(N=oa(o,f,m,A,"border",R))&&(u.border=N),N=oa(o,f,m,A,"fontFamily",R))switch(N){case"monospaceSerif":u.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":u.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":u.fontFamily="sans-serif";break;case"monospaceSansSerif":u.fontFamily="Consolas,monospace";break;case"proportionalSerif":u.fontFamily="serif";break;default:u.fontFamily=N.split(",").filter(function(V){return V!="default"}).join(",")}switch((N=oa(o,f,m,A,"fontWeight",R))&&N=="bold"&&(u.fontWeight=dg),N=oa(o,f,m,A,"wrapOption",R),u.wrapLine=!(N&&N=="noWrap"),(N=oa(o,f,m,A,"lineHeight",R))&&N.match(r1)&&(u.lineHeight=N),(N=oa(o,f,m,A,"fontSize",R))&&(N.match(r1)||N.match(x8e))&&(u.fontSize=N),(N=oa(o,f,m,A,"fontStyle",R))&&(u.fontStyle=sq[N.toUpperCase()]),b?(C=b.attributes.imageType||b.attributes.imagetype,N=b.attributes.encoding,b=_r(b).trim(),C=="PNG"&&N=="Base64"&&b&&(u.backgroundImage="data:image/png;base64,"+b)):C&&(u.backgroundImage=C),(b=oa(o,f,m,A,"textOutline",R))&&(b=b.split(" "),b[0].match(r1)?u.textStrokeColor=u.color:(u.textStrokeColor=UD(b[0]),b.shift()),b[0]&&b[0].match(r1)?u.textStrokeWidth=b[0]:u.textStrokeColor=""),(b=oa(o,f,m,A,"letterSpacing",R))&&b.match(r1)&&(u.letterSpacing=b),(b=oa(o,f,m,A,"linePadding",R))&&b.match(r1)&&(u.linePadding=b),(b=oa(o,f,m,A,"opacity",R))&&(u.opacity=parseFloat(b)),(b=Zk(o,m,A,"textDecoration"))&&dte(u,b),(b=HD(o,f,A,"textDecoration"))&&dte(u,b),(b=oa(o,f,m,A,"textCombine",R))&&(u.textCombineUpright=b),oa(o,f,m,A,"ruby",R)){case"container":u.rubyTag="ruby";break;case"text":u.rubyTag="rt"}}function dte(o,u){u=_(u.split(" "));for(var f=u.next();!f.done;f=u.next())switch(f.value){case"underline":o.textDecoration.includes(Ff)||o.textDecoration.push(Ff);break;case"noUnderline":o.textDecoration.includes(Ff)&&Jt(o.textDecoration,Ff);break;case"lineThrough":o.textDecoration.includes("lineThrough")||o.textDecoration.push("lineThrough");break;case"noLineThrough":o.textDecoration.includes("lineThrough")&&Jt(o.textDecoration,"lineThrough");break;case"overline":o.textDecoration.includes("overline")||o.textDecoration.push("overline");break;case"noOverline":o.textDecoration.includes("overline")&&Jt(o.textDecoration,"overline")}}function oa(o,u,f,m,b,C){return C=C===void 0?!0:C,(u=HD(o,u,m,b))?u:C?Zk(o,f,m,b):null}function Zk(o,u,f,m){if(!u)return null;var b=Fs(u,Qk,m);return b||fte(o,u,f,m)}function HD(o,u,f,m){var b=Fs(u,Qk,m);return b||fte(o,u,f,m)}function fte(o,u,f,m){u=Jk(u,"style",f,"");for(var b=null,C=0;C=95443.7176888889;)b-=95443.7176888889,m+=8589934592;o=u.periodStart+m/9e4-o}else u.periodStart&&u.vttOffset==u.periodStart&&(o=0);for(u=[],m=_(f[0].split(` -`)),b=m.next();!b.done;b=m.next())if(b=b.value,/^Region:/.test(b)){b=new vc(b);var w=new nl;gc(b),mc(b);for(var A=gc(b);A;){var R=w,N=A;(A=/^id=(.*)$/.exec(N))?R.id=A[1]:(A=/^width=(\d{1,2}|100)%$/.exec(N))?R.width=Number(A[1]):(A=/^lines=(\d+)$/.exec(N))?(R.height=Number(A[1]),R.heightUnits=2):(A=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(N))?(R.regionAnchorX=Number(A[1]),R.regionAnchorY=Number(A[2])):(A=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(N))?(R.viewportAnchorX=Number(A[1]),R.viewportAnchorY=Number(A[2])):/^scroll=up$/.exec(N)&&(R.scroll="up"),mc(b),A=gc(b)}u.push(w)}for(m=new Map,eq(m),b=[],f=_(f.slice(1)),w=f.next();!w.done;w=f.next()){if(w=w.value.split(` -`),(w.length!=1||w[0])&&!/^NOTE($|[ \t])/.test(w[0])&&w[0]=="STYLE"){for(R=[],A=-1,N=1;N=700||he=="bold")&&(G=!0,V.fontWeight=cg);break;case"font-style":switch(he){case"normal":G=!0,V.fontStyle=LI;break;case"italic":G=!0,V.fontStyle=dg;break;case"oblique":G=!0,V.fontStyle="oblique"}break;case"opacity":G=!0,V.opacity=parseFloat(he);break;case"text-combine-upright":G=!0,V.textCombineUpright=he;break;case"text-shadow":G=!0,V.textShadow=he;break;case"white-space":G=!0,V.wrapLine=he!="noWrap"}}}G&&m.set(A,V)}}if(V=w,G=o,V.length==1&&!V[0]||/^NOTE($|[ \t])/.test(V[0])||V[0]=="STYLE"||V[0]=="REGION")w=null;else if(w=null,V[0].includes("-->")||(w=V[0],V.splice(0,1)),R=new vc(V[0]),A=Bf(R),Z=Bu(R,/[ \t]+--\x3e[ \t]+/g),N=Bf(R),A==null||Z==null||N==null)at("Failed to parse VTT time code. Cue skipped:",w,V),w=null;else{for(A+=G,N+=G,G=V.slice(1).join(` -`).trim(),m.has("global")?(V=m.get("global").clone(),V.startTime=A,V.endTime=N,V.payload=G):V=new $i(A,N,G),mc(R),A=gc(R);A;)Ste(V,A,u),mc(R),A=gc(R);NS(V,m),w!=null&&(V.id=w),w=V}w&&b.push(w)}return b};function Ste(o,u,f){var m;(m=/^align:(start|middle|center|end|left|right)$/.exec(u))?(u=m[1],u=="middle"?o.textAlign=Ud:o.textAlign=AI[u.toUpperCase()]):(m=/^vertical:(lr|rl)$/.exec(u))?o.writingMode=m[1]=="lr"?"vertical-lr":"vertical-rl":(m=/^size:([\d.]+)%$/.exec(u))?o.size=Number(m[1]):(m=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(u))?(o.position=Number(m[1]),m[2]&&(u=m[2],o.positionAlign=u=="line-left"||u=="start"?"line-left":u=="line-right"||u=="end"?"line-right":u=="center"||u=="middle"?"center":FS)):(m=/^region:(.*)$/.exec(u))?(u=T8e(f,m[1]))&&(o.region=u):(f=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(u))?(o.lineInterpretation=1,o.line=Number(f[1]),f[2]&&(o.lineAlign=II[f[2].toUpperCase()])):(f=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(u))&&(o.lineInterpretation=I3,o.line=Number(f[1]),f[2]&&(o.lineAlign=II[f[2].toUpperCase()]))}function T8e(o,u){return o=o.filter(function(f){return f.id==u}),o.length?o[0]:null}_e("shaka.text.VttTextParser",$a),$a.prototype.parseMedia=$a.prototype.parseMedia,$a.prototype.setManifestType=$a.prototype.setManifestType,$a.prototype.setSequenceMode=$a.prototype.setSequenceMode,$a.prototype.parseInit=$a.prototype.parseInit,zs("text/vtt",function(){return new $a}),zs('text/vtt; codecs="vtt"',function(){return new $a}),zs('text/vtt; codecs="wvtt"',function(){return new $a});function ou(){this.g=null}ou.prototype.parseInit=function(o){var u=this,f=!1;if(new fi().box("moov",ar).box("trak",ar).box("mdia",ar).S("mdhd",function(m){m=l6(m.reader,m.version),u.g=m.timescale}).box("minf",ar).box("stbl",ar).S("stsd",Wf).box("wvtt",function(){f=!0}).parse(o),!this.g)throw new De(2,2,2008);if(!f)throw new De(2,2,2008)},ou.prototype.setSequenceMode=function(){},ou.prototype.setManifestType=function(){},ou.prototype.parseMedia=function(o,u){if(!o.length)return[];if(!this.g)throw new De(2,2,2008);var f=0,m=[],b,w=[],A=!1,R=!1,N=!1,V=null;if(new fi().box("moof",ar).box("traf",ar).S("tfdt",function(Je){A=!0,f=a6(Je.reader,Je.version).baseMediaDecodeTime}).S("tfhd",function(Je){V=s6(Je.reader,Je.flags).Td}).S("trun",function(Je){R=!0,m=u6(Je.reader,Je.version,Je.flags).hh}).box("mdat",_g(function(Je){N=!0,b=Je},!1)).parse(o,!1),!N&&!A&&!R)throw new De(2,2,2008);o=f;for(var G=new Oi(b,0),Z=_(m),le=Z.next();!le.done;le=Z.next()){le=le.value;var he=le.ih||V,pe=le.Cf?f+le.Cf:o;o=pe+(he||0);var ye=0;do{var be=G.U();ye+=be;var je=G.U(),Be=null;r6(je)=="vttc"?be>8&&(Be=G.Tb(be-8,!1)):G.skip(be-8),he&&Be&&(be=A8e(Be,u.periodStart+pe/this.g,u.periodStart+o/this.g),w.push(be))}while(le.sampleSize&&ye=700||he=="bold")&&(G=!0,V.fontWeight=dg);break;case"font-style":switch(he){case"normal":G=!0,V.fontStyle=PI;break;case"italic":G=!0,V.fontStyle=fg;break;case"oblique":G=!0,V.fontStyle="oblique"}break;case"opacity":G=!0,V.opacity=parseFloat(he);break;case"text-combine-upright":G=!0,V.textCombineUpright=he;break;case"text-shadow":G=!0,V.textShadow=he;break;case"white-space":G=!0,V.wrapLine=he!="noWrap"}}}G&&m.set(A,V)}}if(V=C,G=o,V.length==1&&!V[0]||/^NOTE($|[ \t])/.test(V[0])||V[0]=="STYLE"||V[0]=="REGION")C=null;else if(C=null,V[0].includes("-->")||(C=V[0],V.splice(0,1)),R=new gc(V[0]),A=Bf(R),Z=Nu(R,/[ \t]+--\x3e[ \t]+/g),N=Bf(R),A==null||Z==null||N==null)at("Failed to parse VTT time code. Cue skipped:",C,V),C=null;else{for(A+=G,N+=G,G=V.slice(1).join(` +`).trim(),m.has("global")?(V=m.get("global").clone(),V.startTime=A,V.endTime=N,V.payload=G):V=new Oi(A,N,G),yc(R),A=bc(R);A;)Ste(V,A,u),yc(R),A=bc(R);FS(V,m),C!=null&&(V.id=C),C=V}C&&b.push(C)}return b};function Ste(o,u,f){var m;(m=/^align:(start|middle|center|end|left|right)$/.exec(u))?(u=m[1],u=="middle"?o.textAlign=Ud:o.textAlign=LI[u.toUpperCase()]):(m=/^vertical:(lr|rl)$/.exec(u))?o.writingMode=m[1]=="lr"?"vertical-lr":"vertical-rl":(m=/^size:([\d.]+)%$/.exec(u))?o.size=Number(m[1]):(m=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(u))?(o.position=Number(m[1]),m[2]&&(u=m[2],o.positionAlign=u=="line-left"||u=="start"?"line-left":u=="line-right"||u=="end"?"line-right":u=="center"||u=="middle"?"center":jS)):(m=/^region:(.*)$/.exec(u))?(u=T8e(f,m[1]))&&(o.region=u):(f=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(u))?(o.lineInterpretation=1,o.line=Number(f[1]),f[2]&&(o.lineAlign=DI[f[2].toUpperCase()])):(f=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(u))&&(o.lineInterpretation=I3,o.line=Number(f[1]),f[2]&&(o.lineAlign=DI[f[2].toUpperCase()]))}function T8e(o,u){return o=o.filter(function(f){return f.id==u}),o.length?o[0]:null}_e("shaka.text.VttTextParser",Oa),Oa.prototype.parseMedia=Oa.prototype.parseMedia,Oa.prototype.setManifestType=Oa.prototype.setManifestType,Oa.prototype.setSequenceMode=Oa.prototype.setSequenceMode,Oa.prototype.parseInit=Oa.prototype.parseInit,zs("text/vtt",function(){return new Oa}),zs('text/vtt; codecs="vtt"',function(){return new Oa}),zs('text/vtt; codecs="wvtt"',function(){return new Oa});function ou(){this.g=null}ou.prototype.parseInit=function(o){var u=this,f=!1;if(new hi().box("moov",lr).box("trak",lr).box("mdia",lr).S("mdhd",function(m){m=u6(m.reader,m.version),u.g=m.timescale}).box("minf",lr).box("stbl",lr).S("stsd",Wf).box("wvtt",function(){f=!0}).parse(o),!this.g)throw new De(2,2,2008);if(!f)throw new De(2,2,2008)},ou.prototype.setSequenceMode=function(){},ou.prototype.setManifestType=function(){},ou.prototype.parseMedia=function(o,u){if(!o.length)return[];if(!this.g)throw new De(2,2,2008);var f=0,m=[],b,C=[],A=!1,R=!1,N=!1,V=null;if(new hi().box("moof",lr).box("traf",lr).S("tfdt",function(Je){A=!0,f=l6(Je.reader,Je.version).baseMediaDecodeTime}).S("tfhd",function(Je){V=a6(Je.reader,Je.flags).Td}).S("trun",function(Je){R=!0,m=c6(Je.reader,Je.version,Je.flags).hh}).box("mdat",Sg(function(Je){N=!0,b=Je},!1)).parse(o,!1),!N&&!A&&!R)throw new De(2,2,2008);o=f;for(var G=new $i(b,0),Z=_(m),le=Z.next();!le.done;le=Z.next()){le=le.value;var he=le.ih||V,pe=le.Cf?f+le.Cf:o;o=pe+(he||0);var ye=0;do{var be=G.U();ye+=be;var ze=G.U(),Ne=null;i6(ze)=="vttc"?be>8&&(Ne=G.Tb(be-8,!1)):G.skip(be-8),he&&Ne&&(be=A8e(Ne,u.periodStart+pe/this.g,u.periodStart+o/this.g),C.push(be))}while(le.sampleSize&&ye").replace(/{\/b}/g,"").replace(/{i}/g,"").replace(/{\/i}/g,"").replace(/{u}/g,"").replace(/{\/u}/g,"")+` -`;return u}_e("shaka.text.SrtTextParser",Nl),Nl.srt2webvtt=kte,Nl.prototype.parseMedia=Nl.prototype.parseMedia,Nl.prototype.setManifestType=Nl.prototype.setManifestType,Nl.prototype.setSequenceMode=Nl.prototype.setSequenceMode,Nl.prototype.parseInit=Nl.prototype.parseInit,zs("text/srt",function(){return new Nl});function au(){}au.prototype.parseInit=function(){},au.prototype.setSequenceMode=function(){},au.prototype.setManifestType=function(){},au.prototype.parseMedia=function(o){var u="",f="",m=null,b=null;for(b=ut(o).split(/\r?\n\s*\r?\n/),o=_(b),b=o.next();!b.done;b=o.next()){var w=b.value;b=w,(w=D8e.exec(w))&&(m=w[1],b=w[2]),m=="V4 Styles"||m=="V4+ Styles"?(u=b,u=f?u+(` +`;return u}_e("shaka.text.SrtTextParser",Nl),Nl.srt2webvtt=kte,Nl.prototype.parseMedia=Nl.prototype.parseMedia,Nl.prototype.setManifestType=Nl.prototype.setManifestType,Nl.prototype.setSequenceMode=Nl.prototype.setSequenceMode,Nl.prototype.parseInit=Nl.prototype.parseInit,zs("text/srt",function(){return new Nl});function au(){}au.prototype.parseInit=function(){},au.prototype.setSequenceMode=function(){},au.prototype.setManifestType=function(){},au.prototype.parseMedia=function(o){var u="",f="",m=null,b=null;for(b=ut(o).split(/\r?\n\s*\r?\n/),o=_(b),b=o.next();!b.done;b=o.next()){var C=b.value;b=C,(C=D8e.exec(C))&&(m=C[1],b=C[2]),m=="V4 Styles"||m=="V4+ Styles"?(u=b,u=f?u+(` `+b):b):m=="Events"&&(f=f?f+(` -`+b):b)}for(m=[],b=null,u=_(u.split(/\r?\n/)),o=u.next();!o.done;o=u.next())if(o=o.value,!/^\s*;/.test(o)&&(w=wte.exec(o))){if(o=w[1].trim(),w=w[2].trim(),o=="Format")b=w.split(Qk);else if(o=="Style"){o=w.split(Qk),w={};for(var A=0;A=0?"rgba("+(o&255)+","+(o>>8&255)+","+(o>>16&255)+","+(o>>24&255^255)/255+")":null}function Cte(o){return o=P8e.exec(o),(o[1]?parseInt(o[1].replace(":",""),10):0)*3600+parseInt(o[2],10)*60+parseFloat(o[3])}_e("shaka.text.SsaTextParser",au),au.prototype.parseMedia=au.prototype.parseMedia,au.prototype.setManifestType=au.prototype.setManifestType,au.prototype.setSequenceMode=au.prototype.setSequenceMode,au.prototype.parseInit=au.prototype.parseInit;var D8e=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,wte=/^\s*([^:]+):\s*(.*)/,Qk=/\s*,\s*/,P8e=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;zs("text/x-ssa",function(){return new au});function Ete(o,u){var f=o[u+1]&1?7:9;return u+f<=o.length&&(o=((o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5)-f,o>0)?{$d:f,ra:o}:null}function Tte(o,u){var f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],m=(o[u+2]&60)>>>2;if(m>f.length-1)return null;var b=((o[u+2]&192)>>>6)+1,w=(o[u+2]&1)<<2;return w|=(o[u+3]&192)>>>6,{sampleRate:f[m],channelCount:w,codec:"mp4a.40."+b}}function Ate(o,u){if(u+1=o.length)return!1;var m=(o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5;return m<=f?!1:(u+=m,u===o.length||u+10,timescale:b,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:o,zb:R},stream:u},m=new xg([m]),f=u.id+"_"+f.i,this.g.has(f)?u=this.g.get(f):(u=Cg(m),this.g.set(f,u)),f=this.i!==u,m=W3(m),this.i=u,this.h++,Promise.resolve({data:m,init:f?u:null})},_e("shaka.transmuxer.AacTransmuxer",lu),lu.prototype.transmux=lu.prototype.transmux,lu.prototype.getOriginalMimeType=lu.prototype.getOriginalMimeType,lu.prototype.convertCodecs=lu.prototype.convertCodecs,lu.prototype.isSupported=lu.prototype.isSupported,lu.prototype.destroy=lu.prototype.destroy,jf("audio/aac",function(){return new lu("audio/aac")},op);function Ite(o,u){if(u+8>o.length||o[u]!==11||o[u+1]!==119)return null;var f=o[u+4]>>6;if(f>=3)return null;var m=o[u+4]&63,b=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][m*3+f]*2;if(u+b>o.length)return null;var w=o[u+6]>>5,A=0;w===2?A+=2:(w&1&&w!==1&&(A+=2),w&4&&(A+=2)),A=(o[u+6]<<8|o[u+7])>>12-A&1;var R=o[u+5]&7;return o=new Uint8Array([f<<6|o[u+5]>>3<<1|R>>2,(R&3)<<6|w<<3|A<<2|m>>4,m<<4&224]),{sampleRate:[48e3,44100,32e3][f],channelCount:[2,1,2,3,3,4,4,5][w]+A,Ga:o,ra:b}}function M8e(o,u){if(o[u]===11&&o[u+1]===119){var f=0,m=5;u+=m;for(var b,w;m>0;){w=o[u];var A=Math.min(m,8),R=8-A;b=4278190080>>>24+R<>R,f=f?f<0,timescale:b,duration:m,Bb:[],Ga:R,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:o,zb:N},stream:u},m=new xg([m]),f=u.id+"_"+f.i,this.g.has(f)?u=this.g.get(f):(u=Cg(m),this.g.set(f,u)),f=this.i!==u,m=W3(m),this.i=u,this.h++,Promise.resolve({data:m,init:f?u:null})},_e("shaka.transmuxer.Ac3Transmuxer",Gu),Gu.prototype.transmux=Gu.prototype.transmux,Gu.prototype.getOriginalMimeType=Gu.prototype.getOriginalMimeType,Gu.prototype.convertCodecs=Gu.prototype.convertCodecs,Gu.prototype.isSupported=Gu.prototype.isSupported,Gu.prototype.destroy=Gu.prototype.destroy,jf("audio/ac3",function(){return new Gu("audio/ac3")},op);function Lte(o,u){if(u+8>o.length||(o[u]<<8|o[u+1]<<0)!==2935)return null;var f=new qf(o.subarray(u+2));Ml(f,2),Ml(f,3);var m=xr(f,11)+1<<1,b=xr(f,2);if(b==3){b=xr(f,2),b=[24e3,22060,16e3][b];var w=3}else b=[48e3,44100,32e3][b],w=xr(f,2);var A=xr(f,3),R=xr(f,1);return f=xr(f,5),u+m>o.byteLength?null:(o=Math.floor(m*b/([1,2,3,6][w]*16)),o=new Uint8Array([(o&8160)>>5,(o&31)<<3,b<<6|f<<1|0,0|A<<1|R<<0,0]),{sampleRate:b,channelCount:[2,1,2,3,3,4,4,5][A]+R,Ga:o,ra:m})}function Ku(o){this.j=o,this.h=0,this.g=new Map,this.i=null}l=Ku.prototype,l.destroy=function(){this.g.clear()},l.isSupported=function(o){return o.toLowerCase().split(";")[0]=="audio/ec3"?jo(this.convertCodecs("audio",o)):!1},l.convertCodecs=function(o,u){return u.toLowerCase().split(";")[0]=="audio/ec3"?'audio/mp4; codecs="ec-3"':u},l.getOriginalMimeType=function(){return this.j},l.transmux=function(o,u,f,m){o=Ae(o);for(var b=Eg(o),w=b.length;w0,timescale:b,duration:m,Bb:[],Ga:R,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:o,zb:N},stream:u},m=new xg([m]),f=u.id+"_"+f.i,this.g.has(f)?u=this.g.get(f):(u=Cg(m),this.g.set(f,u)),f=this.i!==u,m=W3(m),this.i=u,this.h++,Promise.resolve({data:m,init:f?u:null})},_e("shaka.transmuxer.Ec3Transmuxer",Ku),Ku.prototype.transmux=Ku.prototype.transmux,Ku.prototype.getOriginalMimeType=Ku.prototype.getOriginalMimeType,Ku.prototype.convertCodecs=Ku.prototype.convertCodecs,Ku.prototype.isSupported=Ku.prototype.isSupported,Ku.prototype.destroy=Ku.prototype.destroy,jf("audio/ec3",function(){return new Ku("audio/ec3")},op);function $8e(o){if(!o.length)return null;var u=o.find(function(ye){return ye.type==7});if(o=o.find(function(ye){return ye.type==8}),!u||!o)return null;var f=new qf(u.data),m=Jr(f);if(Jr(f),Jr(f),Us(f),B8e.includes(m)&&(m=gn(f),m===3&&Ml(f,1),Us(f),Us(f),Ml(f,1),Rn(f))){m=m!==3?8:12;for(var b=0;b0&&le<=16?(m=he[le-1],b=pe[le-1]):le===255&&(m=xr(f,16),b=xr(f,16))}return f=(2-R)*(A+1)*16-G*2-Z*2,w=(w+1)*16-N*2-V*2,N=[],u=u.fullData,N.push(u.byteLength>>>8&255),N.push(u.byteLength&255),N=N.concat.apply(N,T(u)),u=[],o=o.fullData,u.push(o.byteLength>>>8&255),u.push(o.byteLength&255),u=u.concat.apply(u,T(o)),o=new Uint8Array([1,N[3],N[4],N[5],255,225].concat(N,[1],u)),{height:f,width:w,Ra:o,Za:m,$a:b}}function O8e(o){function u(pe){b={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:pe.pts,dts:pe.dts,nalus:[]}}function f(){if(b&&b.nalus.length&&b.frame){for(var pe=[],ye=_(b.nalus),be=ye.next();!be.done;be=ye.next()){be=be.value;var je=be.fullData.byteLength,Be=new Uint8Array(4);Be[0]=je>>24&255,Be[1]=je>>16&255,Be[2]=je>>8&255,Be[3]=je&255,pe.push(Be),pe.push(be.fullData)}b.data=or.apply(tr,T(pe)),m.push(b)}}for(var m=[],b=null,w=!1,A=0;A4&&(he=DSe(new qf(he)),he===2||he===4||he===7||he===9)&&(le=!0),le&&b&&b.frame&&!b.isKeyframe&&(f(),b=null),b||u(R),b.frame=!0,b.isKeyframe=le;break;case 5:Z=!0,b&&b.frame&&!b.isKeyframe&&(f(),b=null),b||u(R),b.frame=!0,b.isKeyframe=!0;break;case 6:Z=!0;break;case 7:V=Z=!0;break;case 8:Z=!0;break;case 9:w=Z=!0,b&&b.frame&&(f(),b=null),b||u(R);break;case 12:Z=!0;break;default:Z=!1}b&&Z&&b.nalus.push(G)}}return f(),m}var B8e=[100,110,122,244,44,83,86,118,128,138,139,134];function N8e(o){if(!o.length)return null;var u=o.find(function(A){return A.type==32}),f=o.find(function(A){return A.type==33}),m=o.find(function(A){return A.type==34});if(!u||!f||!m)return null;var b=F8e(u.fullData);o=j8e(f.fullData);var w=V8e(m.fullData);return u=z8e(u.fullData,f.fullData,m.fullData,{Tg:b.Tg,Ah:b.Ah,Eg:o.Eg,Fg:o.Fg,yg:o.yg,Dg:o.Dg,zg:o.zg,Ag:o.Ag,Bg:o.Bg,Cg:o.Cg,rg:o.rg,sg:o.sg,ug:o.ug,vg:o.vg,wg:o.wg,xg:o.xg,pf:o.pf,gg:o.gg,fg:o.fg,eg:o.eg,Vg:w.Vg,qg:o.qg,pg:o.pg}),{height:o.height,width:o.width,Ra:u,Za:o.Rk,$a:o.Qk}}function F8e(o){var u=new qf(o,!0);return Jr(u),Jr(u),xr(u,4),xr(u,2),xr(u,6),o=xr(u,3),u=Rn(u),{Tg:o+1,Ah:u}}function j8e(o){o=new qf(o,!0),Jr(o),Jr(o);var u=0,f=0,m=0,b=0;xr(o,4);var w=xr(o,3);Rn(o);for(var A=xr(o,2),R=xr(o,1),N=xr(o,5),V=Jr(o),G=Jr(o),Z=Jr(o),le=Jr(o),he=Jr(o),pe=Jr(o),ye=Jr(o),be=Jr(o),je=Jr(o),Be=Jr(o),Je=Jr(o),lt=[],St=[],it=0;it0)for(it=w;it<8;it++)xr(o,2);for(it=0;it1&&Tg(o);for(var Bt=0;Bt0&&Tt<=16?(_t=Dt[Tt-1],bt=Kt[Tt-1]):Tt===255&&(_t=xr(o,16),bt=xr(o,16))}if(Rn(o)&&Rn(o),Rn(o)&&(xr(o,3),Rn(o),Rn(o)&&(Jr(o),Jr(o),Jr(o))),Rn(o)&&(gn(o),gn(o)),Rn(o),Rn(o),Rn(o),(Tt=Rn(o))&&(Us(o),Us(o),Us(o),Us(o)),Rn(o)&&(xt=xr(o,32),Bt=xr(o,32),Rn(o)&&gn(o),Rn(o))){Kt=!1,Tt=Rn(o),Dt=Rn(o),(Tt||Dt)&&((Kt=Rn(o))&&(Jr(o),xr(o,5),Rn(o),xr(o,5)),xr(o,4),xr(o,4),Kt&&xr(o,4),xr(o,5),xr(o,5),xr(o,5));for(var an=0;an<=w;an++){kt=Rn(o);var Jn=!0,Cn=1;kt||(Jn=Rn(o));var Lr=!1;if(Jn?gn(o):Lr=Rn(o),Lr||(Cn=gn(o)+1),Tt){for(Jn=0;Jn>8,b[14]=m.pf&255,b[15]=252|m.Vg&3,b[16]=252|m.gg&3,b[17]=248|m.fg&7,b[18]=248|m.eg&7,b[19]=0,b[20]=parseInt(m.qg,10),b[21]=((m.pg?1:0)&3)<<6|(m.Tg&7)<<3|(m.Ah?1:0)<<2|3,b[22]=3,o=[o,u,f],u=23,f=o.length-1,m=0;m>8,o[m].byteLength&255]),u),u+=2,b.set(o[m],u),u+=o[m].byteLength;return b}function ex(o,u){var f=o[u+1]>>3&3,m=o[u+1]>>1&3,b=o[u+2]>>4&15,w=o[u+2]>>2&3;if(f!==1&&b!==0&&b!==15&&w!==3){var A=o[u+3]>>6;b=U8e[(f===3?3-m:m===3?3:4)*14+b-1]*1e3,w=H8e[(f===3?0:f===2?1:2)*3+w],f=W8e[f][m];var R=G8e[m],N=Math.floor(f*b/w+(o[u+2]>>1&1))*R,V=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);return(V=V?parseInt(V[1],10):0)&&V<=87&&m===2&&b>=224e3&&A===0&&(o[u+3]|=128),{sampleRate:w,channelCount:A===3?1:2,ra:N,Pk:f*8*R}}return null}function Dte(o,u){return o[u]===255&&(o[u+1]&224)===224&&(o[u+1]&6)!==0}function Pte(o,u){if(u+10,timescale:A.sampleRate,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:b,zb:o},stream:u},m=new xg([m]),f=u.id+"_"+f.i,this.g.has(f)?u=this.g.get(f):(u=Cg(m),this.g.set(f,u)),f=this.i!==u,m=W3(m),this.i=u,this.h++,Promise.resolve({data:m,init:f?u:null})):Promise.reject(new De(2,3,3018,f?f.P()[0]:null))},_e("shaka.transmuxer.Mp3Transmuxer",qu),qu.prototype.transmux=qu.prototype.transmux,qu.prototype.getOriginalMimeType=qu.prototype.getOriginalMimeType,qu.prototype.convertCodecs=qu.prototype.convertCodecs,qu.prototype.isSupported=qu.prototype.isSupported,qu.prototype.destroy=qu.prototype.destroy,jf("audio/mpeg",function(){return new qu("audio/mpeg")},op);function Yu(o){this.h=o,this.g=null}l=Yu.prototype,l.destroy=function(){},l.isSupported=function(o){if(o.toLowerCase().split(";")[0]!="video/mp2t")return!1;var u=rl(o).split(","),f=li("audio",u);return u=li("video",u),!f||u||Qs(f)!="mp3"?!1:jo(this.convertCodecs("audio",o))},l.convertCodecs=function(o,u){return u.toLowerCase().split(";")[0]=="video/mp2t"?"audio/mpeg":u},l.getOriginalMimeType=function(){return this.h},l.transmux=function(o,u,f,m,b){if(this.g?this.g.clearData():this.g=new Li,this.g.Gf(f.i),o=Ae(o),o=this.g.parse(o),o.Vd().audio!="mp3"||b!="audio")return Promise.reject(new De(2,3,3018,f?f.P()[0]:null));for(f=new Uint8Array([]),b=_(o.ub()),o=b.next();!o.done;o=b.next())if(o=o.value.data)for(u=0;u=0?"rgba("+(o&255)+","+(o>>8&255)+","+(o>>16&255)+","+(o>>24&255^255)/255+")":null}function xte(o){return o=P8e.exec(o),(o[1]?parseInt(o[1].replace(":",""),10):0)*3600+parseInt(o[2],10)*60+parseFloat(o[3])}_e("shaka.text.SsaTextParser",au),au.prototype.parseMedia=au.prototype.parseMedia,au.prototype.setManifestType=au.prototype.setManifestType,au.prototype.setSequenceMode=au.prototype.setSequenceMode,au.prototype.parseInit=au.prototype.parseInit;var D8e=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Cte=/^\s*([^:]+):\s*(.*)/,ew=/\s*,\s*/,P8e=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;zs("text/x-ssa",function(){return new au});function Ete(o,u){var f=o[u+1]&1?7:9;return u+f<=o.length&&(o=((o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5)-f,o>0)?{$d:f,ra:o}:null}function Tte(o,u){var f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],m=(o[u+2]&60)>>>2;if(m>f.length-1)return null;var b=((o[u+2]&192)>>>6)+1,C=(o[u+2]&1)<<2;return C|=(o[u+3]&192)>>>6,{sampleRate:f[m],channelCount:C,codec:"mp4a.40."+b}}function Ate(o,u){if(u+1=o.length)return!1;var m=(o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5;return m<=f?!1:(u+=m,u===o.length||u+10,timescale:b,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:o,zb:R},stream:u},m=new xg([m]),f=u.id+"_"+f.i,this.g.has(f)?u=this.g.get(f):(u=Cg(m),this.g.set(f,u)),f=this.i!==u,m=W3(m),this.i=u,this.h++,Promise.resolve({data:m,init:f?u:null})},_e("shaka.transmuxer.AacTransmuxer",lu),lu.prototype.transmux=lu.prototype.transmux,lu.prototype.getOriginalMimeType=lu.prototype.getOriginalMimeType,lu.prototype.convertCodecs=lu.prototype.convertCodecs,lu.prototype.isSupported=lu.prototype.isSupported,lu.prototype.destroy=lu.prototype.destroy,jf("audio/aac",function(){return new lu("audio/aac")},ap);function Ite(o,u){if(u+8>o.length||o[u]!==11||o[u+1]!==119)return null;var f=o[u+4]>>6;if(f>=3)return null;var m=o[u+4]&63,b=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][m*3+f]*2;if(u+b>o.length)return null;var C=o[u+6]>>5,A=0;C===2?A+=2:(C&1&&C!==1&&(A+=2),C&4&&(A+=2)),A=(o[u+6]<<8|o[u+7])>>12-A&1;var R=o[u+5]&7;return o=new Uint8Array([f<<6|o[u+5]>>3<<1|R>>2,(R&3)<<6|C<<3|A<<2|m>>4,m<<4&224]),{sampleRate:[48e3,44100,32e3][f],channelCount:[2,1,2,3,3,4,4,5][C]+A,Ga:o,ra:b}}function M8e(o,u){if(o[u]===11&&o[u+1]===119){var f=0,m=5;u+=m;for(var b,C;m>0;){C=o[u];var A=Math.min(m,8),R=8-A;b=4278190080>>>24+R<>R,f=f?f<0,timescale:b,duration:m,Bb:[],Ga:R,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:o,zb:N},stream:u},m=new xg([m]),f=u.id+"_"+f.i,this.g.has(f)?u=this.g.get(f):(u=Cg(m),this.g.set(f,u)),f=this.i!==u,m=W3(m),this.i=u,this.h++,Promise.resolve({data:m,init:f?u:null})},_e("shaka.transmuxer.Ac3Transmuxer",Ku),Ku.prototype.transmux=Ku.prototype.transmux,Ku.prototype.getOriginalMimeType=Ku.prototype.getOriginalMimeType,Ku.prototype.convertCodecs=Ku.prototype.convertCodecs,Ku.prototype.isSupported=Ku.prototype.isSupported,Ku.prototype.destroy=Ku.prototype.destroy,jf("audio/ac3",function(){return new Ku("audio/ac3")},ap);function Lte(o,u){if(u+8>o.length||(o[u]<<8|o[u+1]<<0)!==2935)return null;var f=new qf(o.subarray(u+2));Ml(f,2),Ml(f,3);var m=wr(f,11)+1<<1,b=wr(f,2);if(b==3){b=wr(f,2),b=[24e3,22060,16e3][b];var C=3}else b=[48e3,44100,32e3][b],C=wr(f,2);var A=wr(f,3),R=wr(f,1);return f=wr(f,5),u+m>o.byteLength?null:(o=Math.floor(m*b/([1,2,3,6][C]*16)),o=new Uint8Array([(o&8160)>>5,(o&31)<<3,b<<6|f<<1|0,0|A<<1|R<<0,0]),{sampleRate:b,channelCount:[2,1,2,3,3,4,4,5][A]+R,Ga:o,ra:m})}function qu(o){this.j=o,this.h=0,this.g=new Map,this.i=null}l=qu.prototype,l.destroy=function(){this.g.clear()},l.isSupported=function(o){return o.toLowerCase().split(";")[0]=="audio/ec3"?jo(this.convertCodecs("audio",o)):!1},l.convertCodecs=function(o,u){return u.toLowerCase().split(";")[0]=="audio/ec3"?'audio/mp4; codecs="ec-3"':u},l.getOriginalMimeType=function(){return this.j},l.transmux=function(o,u,f,m){o=Te(o);for(var b=Tg(o),C=b.length;C0,timescale:b,duration:m,Bb:[],Ga:R,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:o,zb:N},stream:u},m=new xg([m]),f=u.id+"_"+f.i,this.g.has(f)?u=this.g.get(f):(u=Cg(m),this.g.set(f,u)),f=this.i!==u,m=W3(m),this.i=u,this.h++,Promise.resolve({data:m,init:f?u:null})},_e("shaka.transmuxer.Ec3Transmuxer",qu),qu.prototype.transmux=qu.prototype.transmux,qu.prototype.getOriginalMimeType=qu.prototype.getOriginalMimeType,qu.prototype.convertCodecs=qu.prototype.convertCodecs,qu.prototype.isSupported=qu.prototype.isSupported,qu.prototype.destroy=qu.prototype.destroy,jf("audio/ec3",function(){return new qu("audio/ec3")},ap);function O8e(o){if(!o.length)return null;var u=o.find(function(ye){return ye.type==7});if(o=o.find(function(ye){return ye.type==8}),!u||!o)return null;var f=new qf(u.data),m=ei(f);if(ei(f),ei(f),Us(f),B8e.includes(m)&&(m=gn(f),m===3&&Ml(f,1),Us(f),Us(f),Ml(f,1),Rn(f))){m=m!==3?8:12;for(var b=0;b0&&le<=16?(m=he[le-1],b=pe[le-1]):le===255&&(m=wr(f,16),b=wr(f,16))}return f=(2-R)*(A+1)*16-G*2-Z*2,C=(C+1)*16-N*2-V*2,N=[],u=u.fullData,N.push(u.byteLength>>>8&255),N.push(u.byteLength&255),N=N.concat.apply(N,T(u)),u=[],o=o.fullData,u.push(o.byteLength>>>8&255),u.push(o.byteLength&255),u=u.concat.apply(u,T(o)),o=new Uint8Array([1,N[3],N[4],N[5],255,225].concat(N,[1],u)),{height:f,width:C,Ra:o,Za:m,$a:b}}function $8e(o){function u(pe){b={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:pe.pts,dts:pe.dts,nalus:[]}}function f(){if(b&&b.nalus.length&&b.frame){for(var pe=[],ye=_(b.nalus),be=ye.next();!be.done;be=ye.next()){be=be.value;var ze=be.fullData.byteLength,Ne=new Uint8Array(4);Ne[0]=ze>>24&255,Ne[1]=ze>>16&255,Ne[2]=ze>>8&255,Ne[3]=ze&255,pe.push(Ne),pe.push(be.fullData)}b.data=or.apply(tr,T(pe)),m.push(b)}}for(var m=[],b=null,C=!1,A=0;A4&&(he=DSe(new qf(he)),he===2||he===4||he===7||he===9)&&(le=!0),le&&b&&b.frame&&!b.isKeyframe&&(f(),b=null),b||u(R),b.frame=!0,b.isKeyframe=le;break;case 5:Z=!0,b&&b.frame&&!b.isKeyframe&&(f(),b=null),b||u(R),b.frame=!0,b.isKeyframe=!0;break;case 6:Z=!0;break;case 7:V=Z=!0;break;case 8:Z=!0;break;case 9:C=Z=!0,b&&b.frame&&(f(),b=null),b||u(R);break;case 12:Z=!0;break;default:Z=!1}b&&Z&&b.nalus.push(G)}}return f(),m}var B8e=[100,110,122,244,44,83,86,118,128,138,139,134];function N8e(o){if(!o.length)return null;var u=o.find(function(A){return A.type==32}),f=o.find(function(A){return A.type==33}),m=o.find(function(A){return A.type==34});if(!u||!f||!m)return null;var b=F8e(u.fullData);o=j8e(f.fullData);var C=V8e(m.fullData);return u=z8e(u.fullData,f.fullData,m.fullData,{Tg:b.Tg,Ah:b.Ah,Eg:o.Eg,Fg:o.Fg,yg:o.yg,Dg:o.Dg,zg:o.zg,Ag:o.Ag,Bg:o.Bg,Cg:o.Cg,rg:o.rg,sg:o.sg,ug:o.ug,vg:o.vg,wg:o.wg,xg:o.xg,pf:o.pf,gg:o.gg,fg:o.fg,eg:o.eg,Vg:C.Vg,qg:o.qg,pg:o.pg}),{height:o.height,width:o.width,Ra:u,Za:o.Rk,$a:o.Qk}}function F8e(o){var u=new qf(o,!0);return ei(u),ei(u),wr(u,4),wr(u,2),wr(u,6),o=wr(u,3),u=Rn(u),{Tg:o+1,Ah:u}}function j8e(o){o=new qf(o,!0),ei(o),ei(o);var u=0,f=0,m=0,b=0;wr(o,4);var C=wr(o,3);Rn(o);for(var A=wr(o,2),R=wr(o,1),N=wr(o,5),V=ei(o),G=ei(o),Z=ei(o),le=ei(o),he=ei(o),pe=ei(o),ye=ei(o),be=ei(o),ze=ei(o),Ne=ei(o),Je=ei(o),lt=[],St=[],it=0;it0)for(it=C;it<8;it++)wr(o,2);for(it=0;it1&&Ag(o);for(var Bt=0;Bt0&&Tt<=16?(_t=Dt[Tt-1],bt=qt[Tt-1]):Tt===255&&(_t=wr(o,16),bt=wr(o,16))}if(Rn(o)&&Rn(o),Rn(o)&&(wr(o,3),Rn(o),Rn(o)&&(ei(o),ei(o),ei(o))),Rn(o)&&(gn(o),gn(o)),Rn(o),Rn(o),Rn(o),(Tt=Rn(o))&&(Us(o),Us(o),Us(o),Us(o)),Rn(o)&&(wt=wr(o,32),Bt=wr(o,32),Rn(o)&&gn(o),Rn(o))){qt=!1,Tt=Rn(o),Dt=Rn(o),(Tt||Dt)&&((qt=Rn(o))&&(ei(o),wr(o,5),Rn(o),wr(o,5)),wr(o,4),wr(o,4),qt&&wr(o,4),wr(o,5),wr(o,5),wr(o,5));for(var an=0;an<=C;an++){kt=Rn(o);var Jn=!0,xn=1;kt||(Jn=Rn(o));var Lr=!1;if(Jn?gn(o):Lr=Rn(o),Lr||(xn=gn(o)+1),Tt){for(Jn=0;Jn>8,b[14]=m.pf&255,b[15]=252|m.Vg&3,b[16]=252|m.gg&3,b[17]=248|m.fg&7,b[18]=248|m.eg&7,b[19]=0,b[20]=parseInt(m.qg,10),b[21]=((m.pg?1:0)&3)<<6|(m.Tg&7)<<3|(m.Ah?1:0)<<2|3,b[22]=3,o=[o,u,f],u=23,f=o.length-1,m=0;m>8,o[m].byteLength&255]),u),u+=2,b.set(o[m],u),u+=o[m].byteLength;return b}function tw(o,u){var f=o[u+1]>>3&3,m=o[u+1]>>1&3,b=o[u+2]>>4&15,C=o[u+2]>>2&3;if(f!==1&&b!==0&&b!==15&&C!==3){var A=o[u+3]>>6;b=U8e[(f===3?3-m:m===3?3:4)*14+b-1]*1e3,C=H8e[(f===3?0:f===2?1:2)*3+C],f=W8e[f][m];var R=G8e[m],N=Math.floor(f*b/C+(o[u+2]>>1&1))*R,V=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);return(V=V?parseInt(V[1],10):0)&&V<=87&&m===2&&b>=224e3&&A===0&&(o[u+3]|=128),{sampleRate:C,channelCount:A===3?1:2,ra:N,Pk:f*8*R}}return null}function Dte(o,u){return o[u]===255&&(o[u+1]&224)===224&&(o[u+1]&6)!==0}function Pte(o,u){if(u+10,timescale:A.sampleRate,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:b,zb:o},stream:u},m=new xg([m]),f=u.id+"_"+f.i,this.g.has(f)?u=this.g.get(f):(u=Cg(m),this.g.set(f,u)),f=this.i!==u,m=W3(m),this.i=u,this.h++,Promise.resolve({data:m,init:f?u:null})):Promise.reject(new De(2,3,3018,f?f.P()[0]:null))},_e("shaka.transmuxer.Mp3Transmuxer",Yu),Yu.prototype.transmux=Yu.prototype.transmux,Yu.prototype.getOriginalMimeType=Yu.prototype.getOriginalMimeType,Yu.prototype.convertCodecs=Yu.prototype.convertCodecs,Yu.prototype.isSupported=Yu.prototype.isSupported,Yu.prototype.destroy=Yu.prototype.destroy,jf("audio/mpeg",function(){return new Yu("audio/mpeg")},ap);function Xu(o){this.h=o,this.g=null}l=Xu.prototype,l.destroy=function(){},l.isSupported=function(o){if(o.toLowerCase().split(";")[0]!="video/mp2t")return!1;var u=rl(o).split(","),f=ui("audio",u);return u=ui("video",u),!f||u||Qs(f)!="mp3"?!1:jo(this.convertCodecs("audio",o))},l.convertCodecs=function(o,u){return u.toLowerCase().split(";")[0]=="video/mp2t"?"audio/mpeg":u},l.getOriginalMimeType=function(){return this.h},l.transmux=function(o,u,f,m,b){if(this.g?this.g.clearData():this.g=new Li,this.g.Gf(f.i),o=Te(o),o=this.g.parse(o),o.Vd().audio!="mp3"||b!="audio")return Promise.reject(new De(2,3,3018,f?f.P()[0]:null));for(f=new Uint8Array([]),b=_(o.ub()),o=b.next();!o.done;o=b.next())if(o=o.value.data)for(u=0;u1?(je.dts||0)-(ye[be-1].dts||0):(f.endTime-f.startTime)*9e4,le.push({data:je.data,size:je.data.byteLength,duration:Be,sb:Math.round((je.pts||0)-(je.dts||0)),flags:{xb:0,mb:0,jb:0,gb:0,hb:je.isKeyframe?2:1,yb:je.isKeyframe?0:1}})}for(var Je=[],lt=_(pe),St=lt.next();!St.done;St=lt.next())Je.push.apply(Je,T(St.value.nalus));var it=$8e(Je);if(!it||he==null)throw new De(2,3,3018,f?f.P()[0]:null);u.height=it.height,u.width=it.width,Z={id:u.id,type:"video",codecs:"avc1",encrypted:u.encrypted&&u.drmInfos.length>0,timescale:9e4,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:it.Ra,Za:it.Za,$a:it.$a,data:{sequenceNumber:this.g,baseMediaDecodeTime:he,zb:le},stream:u};break;case"hvc":var Xe=[],pt=null,_t=[],bt=N.ud();if(!bt.length)throw new De(2,3,3023,f?f.P()[0]:null);for(var kt=0;kt>24&255,yr[1]=Lr>>16&255,yr[2]=Lr>>8&255,yr[3]=Lr&255,Tt.push(yr),Tt.push(Jn.fullData)}}var Qr=Tt.length?{data:or.apply(tr,T(Tt)),isKeyframe:Nt}:null;if(Qr){pt==null&&xt.dts!=null&&(pt=xt.dts);var Sr=void 0;Sr=kt+11?(xt.dts||0)-(bt[kt-1].dts||0):(f.endTime-f.startTime)*9e4,Xe.push({data:Qr.data,size:Qr.data.byteLength,duration:Sr,sb:Math.round((xt.pts||0)-(xt.dts||0)),flags:{xb:0,mb:0,jb:0,gb:0,hb:Qr.isKeyframe?2:1,yb:Qr.isKeyframe?0:1}})}}var On=N8e(_t);if(!On||pt==null)throw new De(2,3,3018,f?f.P()[0]:null);u.height=On.height,u.width=On.width,Z={id:u.id,type:"video",codecs:"hvc1",encrypted:u.encrypted&&u.drmInfos.length>0,timescale:9e4,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:On.Ra,Za:On.Za,$a:On.$a,data:{sequenceNumber:this.g,baseMediaDecodeTime:pt,zb:Xe},stream:u}}Z&&(V.push(Z),Z=null)}if(b=="audio"){switch(G.audio){case"aac":for(var wi=[],Rr,Dr=null,pr=null,Ui=null,Vi=_(N.ub()),io=Vi.next();!io.done;io=Vi.next()){var si=io.value,ll=si.data;if(ll){var Sa=0;if(pr==-1&&Ui)ll=or(Ui,si.data),pr=null;else if(pr!=null&&Ui){Sa=Math.max(0,pr);var U2=or(Ui,ll.subarray(0,Sa));wi.push({data:U2,size:U2.byteLength,duration:1024,sb:0,flags:{xb:0,mb:0,jb:0,gb:0,hb:2,yb:0}}),pr=Ui=null}if(Rr=Tte(ll,Sa),!Rr)throw new De(2,3,3018,f?f.P()[0]:null);for(u.audioSamplingRate=Rr.sampleRate,u.channelsCount=Rr.channelCount,Dr==null&&si.pts!==null&&(Dr=si.pts);Sa0,timescale:Ote,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:Z8e,zb:wi},stream:u};break;case"ac3":for(var Bte=[],tx=0,KD=new Uint8Array([]),nx=null,Nte=_(N.ub()),qD=Nte.next();!qD.done;qD=Nte.next()){var YD=qD.value,XD=YD.data;nx==null&&YD.pts!==null&&(nx=YD.pts);for(var o1=0;o10,timescale:tx,duration:m,Bb:[],Ga:KD,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:J8e,zb:Bte},stream:u};break;case"ec3":for(var Fte=[],rx=0,ZD=new Uint8Array([]),ix=null,jte=_(N.ub()),JD=jte.next();!JD.done;JD=jte.next()){var QD=JD.value,eP=QD.data;ix==null&&QD.pts!==null&&(ix=QD.pts);for(var s1=0;s10,timescale:rx,duration:m,Bb:[],Ga:ZD,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:Q8e,zb:Fte},stream:u};break;case"mp3":for(var Vte=[],ox,sx=null,zte=_(N.ub()),tP=zte.next();!tP.done;tP=zte.next()){var nP=tP.value,H2=nP.data;if(H2){sx==null&&nP.pts!==null&&(sx=nP.pts);for(var pv=0;pv0,timescale:Ute,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:eTe,zb:Vte},stream:u};break;case"opus":var Hte=[],ax=null,Kd=N.H;if(!Kd)throw new De(2,3,3018,f?f.P()[0]:null);var Oa=[];switch(Kd.nj){case 1:case 2:Oa=[0];break;case 0:Oa=[255,1,1,0,1];break;case 128:Oa=[255,2,0,0,1];break;case 3:Oa=[1,2,1,0,2,1];break;case 4:Oa=[1,2,2,0,1,2,3];break;case 5:Oa=[1,3,2,0,4,1,2,3];break;case 6:Oa=[1,4,2,0,4,1,2,3,5];break;case 7:Oa=[1,4,2,0,4,1,2,3,5,6];break;case 8:Oa=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Oa=[1,1,2,0,1];break;case 131:Oa=[1,1,3,0,1,2];break;case 132:Oa=[1,1,4,0,1,2,3];break;case 133:Oa=[1,1,5,0,1,2,3,4];break;case 134:Oa=[1,1,6,0,1,2,3,4,5];break;case 135:Oa=[1,1,7,0,1,2,3,4,5,6];break;case 136:Oa=[1,1,8,0,1,2,3,4,5,6,7]}for(var Wte=new Uint8Array([0,Kd.channelCount,0,0,Kd.sampleRate>>>24&255,Kd.sampleRate>>>17&255,Kd.sampleRate>>>8&255,Kd.sampleRate>>>0&255,0,0].concat(T(Oa))),Gte=Kd.sampleRate,Kte=_(N.ub()),rP=Kte.next();!rP.done;rP=Kte.next()){var iP=rP.value,l1=iP.data;ax==null&&iP.pts!==null&&(ax=iP.pts);for(var W2=0;W20,timescale:Gte,duration:m,Bb:[],Ga:Wte,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:rTe,zb:Hte},stream:u}}Z&&(V.push(Z),Z=null)}}catch(sP){return sP&&sP.code==3023?Promise.resolve(new Uint8Array([])):Promise.reject(sP)}if(!V.length)return Promise.reject(new De(2,3,3018,f?f.P()[0]:null));var Yte=new xg(V),oP=u.id+"_"+f.i;if(this.j.has(oP))var G2=this.j.get(oP);else G2=Cg(Yte),this.j.set(oP,G2);var iTe=this.l!==G2,oTe=W3(Yte);return this.l=G2,this.g++,Promise.resolve({data:oTe,init:iTe?G2:null})},_e("shaka.transmuxer.TsTransmuxer",Xu),Xu.prototype.transmux=Xu.prototype.transmux,Xu.prototype.getOriginalMimeType=Xu.prototype.getOriginalMimeType,Xu.prototype.convertCodecs=Xu.prototype.convertCodecs,Xu.prototype.isSupported=Xu.prototype.isSupported,Xu.prototype.destroy=Xu.prototype.destroy;var Y8e=["aac","ac-3","ec-3","mp3","opus"],X8e=["avc","hevc"];jf("video/mp2t",function(){return new Xu("video/mp2t")},RI);function Mte(){}x(Mte,ol),_e("shaka.util.FairPlayUtils",Mte)}).call(n,t,t,void 0);for(var r in n.shaka)e[r]=n.shaka[r]})()})(aj)),aj}var VPt=jPt();const d8=rd(VPt),im={hls:{maxBufferLength:600,liveSyncDurationCount:10},flv:{mediaDataSource:{type:"flv",isLive:!1},optionalConfig:{enableWorker:!1,enableStashBuffer:!1,autoCleanupSourceBuffer:!0,reuseRedirectedURL:!0,fixAudioTimestampGap:!1,deferLoadAfterSourceOpen:!1,headers:{}}},dash:{}},KT=e=>{if(typeof e!="string")return console.warn("detectVideoFormat: url must be a string, received:",typeof e,e),"native";const t=e.toLowerCase();return t.includes(".m3u8")||t.includes("m3u8")?"hls":t.includes(".flv")||t.includes("flv")?"flv":t.includes(".mpd")||t.includes("mpd")?"dash":t.includes(".ts")||t.includes("ts")?"mpegts":t.includes("magnet:")||t.includes(".torrent")?"torrent":"native"},Cy={hls:(e,t,n={})=>{if(console.log("🎬 [HLS播放器] 开始播放视频:"),console.log("📺 视频地址:",t),console.log("📋 请求头:",n),xu.isSupported()){const r=Object.assign({},{...im.hls});r.xhrSetup=function(a,s){if($h().autoBypass&&Object.defineProperty(a,"referrer",{value:"",writable:!1}),Object.keys(n).length>0)for(const c in n)a.setRequestHeader(c,n[c])};const i=new xu(r);return i.loadSource(t),i.attachMedia(e),i}else return console.log("HLS is not supported."),null},flv:(e,t,n={})=>{if(console.log("🎬 [FLV播放器] 开始播放视频:"),console.log("📺 视频地址:",t),console.log("📋 请求头:",n),lU.isSupported()){const r=lU.createPlayer(Object.assign({},{...im.flv.mediaDataSource},{url:t}),Object.assign({},{...im.flv.optionalConfig},{headers:n}));return r.attachMediaElement(e),r.load(),r}else return console.log("FLV is not supported."),null},dash:(e,t,n={})=>{if(console.log("🎬 [DASH播放器] 开始播放视频:"),console.log("📺 视频地址:",t),console.log("📋 请求头:",n),d8.Player.isBrowserSupported()){const r=new d8.Player(e);r.getNetworkingEngine().registerRequestFilter(function(a,s){if(a==d8.net.NetworkingEngine.RequestType.MANIFEST)for(const l in n)s.headers[l]=n[l]}),r.load(t);const i=im.dash;return r.configure(i),r}else return console.log("DASH is not supported."),null}},lj={hls:(e,t,n)=>(t.stopLoad(),t.detachMedia(),t.loadSource(n),t.attachMedia(e),t.once(xu.Events.MANIFEST_PARSED,()=>{e.play()}),t),flv:(e,t,n)=>(t.pause(),t.unload(),t.detachMediaElement(),t.destroy(),t=lU.createPlayer(Object.assign({},im.flv.mediaDataSource||{},{url:n}),im.flv.optionalConfig||{}),t.attachMediaElement(e),t.load(),t),dash:(e,t,n)=>{t.destroy();const r=new d8.Player(e);r.load(n);const i=im.dash;return r.configure(i),r}},Ob={hls:e=>{e?.hls&&(e.hls.destroy(),delete e.hls)},flv:e=>{e?.flv&&(e.flv.destroy(),delete e.flv)},dash:e=>{e?.dash&&(e.dash.destroy(),delete e.dash)}};class A4e{constructor(t){this.video=t,this.currentPlayer=null,this.currentFormat="native"}loadVideo(t,n={}){const r=KT(t);switch(this.currentFormat!==r&&this.currentPlayer&&this.destroy(),this.currentFormat=r,r){case"hls":this.currentPlayer=Cy.hls(this.video,t,n);break;case"flv":this.currentPlayer=Cy.flv(this.video,t,n);break;case"dash":this.currentPlayer=Cy.dash(this.video,t,n);break;default:console.log("🎬 [原生播放器] 开始播放视频:"),console.log("📺 视频地址:",t),console.log("📋 请求头:",n),this.video.src=t,this.currentPlayer=null;break}return this.currentPlayer}switchVideo(t){const n=KT(t);if(n===this.currentFormat&&this.currentPlayer)switch(n){case"hls":this.currentPlayer=lj.hls(this.video,this.currentPlayer,t);break;case"flv":this.currentPlayer=lj.flv(this.video,this.currentPlayer,t);break;case"dash":this.currentPlayer=lj.dash(this.video,this.currentPlayer,t);break}else this.loadVideo(t)}destroy(){if(this.currentPlayer){switch(this.currentFormat){case"hls":Ob.hls({hls:this.currentPlayer});break;case"flv":Ob.flv({flv:this.currentPlayer});break;case"dash":Ob.dash({dash:this.currentPlayer});break}this.currentPlayer=null}this.currentFormat="native"}getCurrentPlayer(){return this.currentPlayer}getCurrentFormat(){return this.currentFormat}}const BC={MAX_SIZE:100,CLEANUP_INTERVAL:3e5,MAX_AGE:6e5},kh={urlCache:new Map,headerCache:new Map,proxyCache:new Map,lastCleanup:Date.now()},zPt="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36";function I4e(){const e=Date.now();if(e-kh.lastCleanup{n.size>BC.MAX_SIZE&&Array.from(n.entries()).slice(0,Math.floor(BC.MAX_SIZE*.3)).forEach(([a])=>n.delete(a));for(const[r,i]of n.entries())i.timestamp&&e-i.timestamp>BC.MAX_AGE&&n.delete(r)}),kh.lastCleanup=e}function gce(e,t){I4e();const n=t.get(e);if(n)return n.value;const r=Ame(e);return t.set(e,{value:r,timestamp:Date.now()}),r}function UPt(){try{const e=JSON.parse(localStorage.getItem("addressSettings")||"{}"),t=e.proxyPlayEnabled||!1,n=e.proxyPlay||"";return!t||!n||n.trim()===""?null:n.trim()}catch(e){return console.error("获取代理播放地址失败:",e),null}}function L4e(e,t,n={}){try{const r=`${e}|${t}|${JSON.stringify(n)}`;I4e();const i=kh.proxyCache.get(r);if(i)return i.value;const a=t.replace(/#.*$/,"");let s=n;(!n||Object.keys(n).length===0||Object.keys(n).length===1&&!n["user-agent"]&&!n["User-Agent"])&&(s={"user-agent":navigator.userAgent||zPt});const l=JSON.stringify(s),c=gce(e,kh.urlCache),d=gce(l,kh.headerCache),h=e.split("/"),v=h[h.length-1].split("?")[0],g=a.replace(/\$\{url\}/g,encodeURIComponent(c)).replace(/\$\{headers\}/g,encodeURIComponent(d)).replace(/\$\{type\}/g,v);return kh.proxyCache.set(r,{value:g,timestamp:Date.now()}),console.log("🔄 [代理播放] 构建代理URL:"),console.log("📺 原始地址:",e),console.log("📋 原始请求头:",n),console.log("📋 最终请求头:",s),console.log("🌐 代理模板:",t),console.log("🧹 清理后模板:",a),console.log("🔐 编码后URL:",c),console.log("🔐 编码后Headers:",d),console.log("🔗 最终代理URL:",g),g}catch(r){return console.error("构建代理播放URL失败:",r),e}}function om(e,t={}){const n=UPt();return n?L4e(e,n,t):e}const HPt={class:"video-player-container"},WPt=["poster"],GPt={class:"speed-control"},KPt={key:0,class:"auto-next-dialog"},qPt={class:"auto-next-content"},YPt={key:0,class:"auto-next-episode"},XPt={class:"auto-next-countdown"},ZPt={__name:"VideoPlayer",props:{visible:{type:Boolean,default:!1},videoUrl:{type:String,default:""},episodeName:{type:String,default:"未知选集"},poster:{type:String,default:""},playerType:{type:String,default:"default"},episodes:{type:Array,default:()=>[]},currentEpisodeIndex:{type:Number,default:0},headers:{type:Object,default:()=>({})},qualities:{type:Array,default:()=>[]},hasMultipleQualities:{type:Boolean,default:!1},initialQuality:{type:String,default:"默认"},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>({})}},emits:["close","error","player-change","next-episode","episode-selected","quality-change","parser-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(null),a=ue(null),s=JSON.parse(localStorage.getItem("loopEnabled")||"false"),l=JSON.parse(localStorage.getItem("autoNextEnabled")||"true"),c=ue(s?!1:l),d=ue(s),h=ue(!1),p=ue(!1),v=ue(10),g=ue(null),y=ue(!1),S=ue(!1),k=ue(1),C=ue(!1),x=ue(""),E=ue("默认"),_=ue([]),T=ue(""),D=ue(0),P=()=>{if(n.qualities&&n.qualities.length>0){_.value=[...n.qualities],E.value=n.initialQuality||n.qualities[0]?.name||"默认";const Ee=_.value.find(We=>We.name===E.value);T.value=Ee?.url||n.videoUrl,console.log("初始化画质数据:",{qualities:_.value,currentQuality:E.value,currentPlayingUrl:T.value})}else _.value=[],E.value="默认",T.value=n.videoUrl},M=Ee=>{console.log("切换画质:",Ee);const We=_.value.find(Qe=>Qe.name===Ee);if(!We){console.error("未找到指定画质:",Ee),yt.error("画质切换失败:未找到指定画质");return}const $e=i.value?.currentTime||0,dt=i.value&&!i.value.paused;console.log("切换画质前状态:",{currentTime:$e,wasPlaying:dt,from:E.value,to:Ee,url:We.url}),E.value=Ee,T.value=We.url,r("quality-change",{quality:Ee,url:We.url,currentTime:$e,wasPlaying:dt}),O(We.url,$e,dt)},O=(Ee,We=0,$e=!1)=>{if(!(!i.value||!Ee)){console.log("切换视频源:",{newUrl:Ee,seekTime:We,autoPlay:$e});try{const dt=n.headers||{},Qe=om(Ee,dt);Qe!==Ee&&console.log("🔄 [代理播放] 切换视频源使用代理地址"),a.value?a.value.switchVideo(Qe):i.value.src=Qe;const Le=()=>{We>0&&(i.value.currentTime=We),$e&&i.value.play().catch(ht=>{console.warn("画质切换后自动播放失败:",ht)}),i.value.removeEventListener("loadeddata",Le),yt.success(`已切换到${E.value}画质`)};i.value.addEventListener("loadeddata",Le)}catch(dt){console.error("切换视频源失败:",dt),yt.error("画质切换失败,请重试")}}},L=F(()=>!!n.videoUrl),B=F(()=>{D.value;const Ee=T.value||n.videoUrl;if(!Ee)return"";const We=n.headers||{};return om(Ee,We)}),j=()=>n.episodes&&n.episodes.length>0&&n.currentEpisodeIndexj()?n.episodes[n.currentEpisodeIndex+1]:null,U=()=>{p.value=!1,g.value&&(clearInterval(g.value),g.value=null)},K=()=>{y.value=!1,S.value=!1,console.log("所有防抖标志已重置")},Y=()=>{if(j()){const Ee=n.currentEpisodeIndex+1;r("next-episode",Ee),U(),setTimeout(()=>{K()},2e3)}},{showSkipSettingsDialog:ie,skipIntroEnabled:te,skipOutroEnabled:W,skipIntroSeconds:q,skipOutroSeconds:Q,skipEnabled:se,skipOutroTimer:ae,initSkipSettings:re,applySkipSettings:Ce,applyIntroSkipImmediate:Ve,handleTimeUpdate:ge,resetSkipState:xe,openSkipSettingsDialog:Ge,closeSkipSettingsDialog:tt,saveSkipSettings:Ue,onUserSeekStart:_e,onUserSeekEnd:ve}=E4e({onSkipToNext:Y,getCurrentTime:()=>i.value?.currentTime||0,setCurrentTime:Ee=>{i.value&&(i.value.currentTime=Ee)},getDuration:()=>i.value?.duration||0}),me=()=>{c.value=!c.value,localStorage.setItem("autoNextEnabled",JSON.stringify(c.value)),c.value&&(d.value=!1,localStorage.setItem("loopEnabled","false"))},Oe=()=>{d.value=!d.value,localStorage.setItem("loopEnabled",JSON.stringify(d.value)),d.value&&(c.value=!1,localStorage.setItem("autoNextEnabled","false")),console.log("循环播放开关:",d.value?"开启":"关闭")},qe=()=>{h.value=!h.value},Ke=()=>{!c.value||!j()||(p.value=!0,v.value=10,g.value=setInterval(()=>{v.value--,v.value<=0&&Y()},1e3))},at=()=>{U(),y.value=!1},ft=()=>{i.value&&(i.value.playbackRate=parseFloat(k.value),console.log("播放倍速已设置为:",k.value))},ct=()=>{C.value=!C.value},wt=()=>{C.value=!1},Ct=Ee=>{if(!Ee)return!1;const $e=[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp",".ts",".m3u8",".mpd"].some(Le=>Ee.toLowerCase().includes(Le)),dt=Ee.toLowerCase().includes("m3u8")||Ee.toLowerCase().includes("mpd")||Ee.toLowerCase().includes("rtmp")||Ee.toLowerCase().includes("rtsp");return $e||dt?!0:!(Ee.includes("://")&&(Ee.includes(".html")||Ee.includes(".php")||Ee.includes(".asp")||Ee.includes(".jsp")||Ee.match(/\/[^.?#]*$/))&&!$e&&!dt)},Rt=Ee=>{if(!i.value||!Ee)return;if(xe(),K(),!Ct(Ee)){yt.info("检测到网页链接,正在新窗口打开..."),window.open(Ee,"_blank"),r("close");return}a.value?a.value.destroy():a.value=new A4e(i.value);const We=i.value;try{const dt=oK(Ee,We);console.log(`已为视频播放应用CSP策略: ${dt}`)}catch(dt){console.warn("应用CSP策略失败:",dt),GT(We,Xv.NO_REFERRER)}const $e=()=>{try{if(y.value||S.value){console.log("防抖:忽略重复的视频结束事件");return}if(d.value){console.log("循环播放:重新播放当前选集"),S.value=!0,setTimeout(()=>{try{r("episode-selected",n.currentEpisodeIndex),setTimeout(()=>{S.value=!1,console.log("循环播放防抖标志已重置")},3e3)}catch(dt){console.error("循环播放触发选集事件失败:",dt),yt.error("循环播放失败,请重试"),S.value=!1}},1e3);return}c.value&&j()&&(y.value=!0,h.value?Ke():setTimeout(()=>{Y()},1e3))}catch(dt){console.error("视频结束事件处理失败:",dt),yt.error("视频结束处理失败"),K()}};try{xe();const dt=KT(Ee);x.value=dt,console.log(`检测到视频格式: ${dt}`);const Qe=n.headers||{},Le=om(Ee,Qe);Le!==Ee&&console.log("🔄 [代理播放] 使用代理地址播放视频");const ht=a.value.loadVideo(Le,Qe);if(ht){console.log(`使用${dt}播放器加载视频成功`),dt==="hls"&&ht&&(ht.on(xu.Events.MANIFEST_PARSED,()=>{console.log("HLS manifest 解析完成,开始播放"),We.play().catch(rr=>{console.warn("自动播放失败:",rr)})}),ht.on(xu.Events.ERROR,(rr,qr)=>{if(console.error("HLS播放错误:",qr),qr.fatal)switch(qr.type){case xu.ErrorTypes.NETWORK_ERROR:yt.error("网络错误,请检查网络连接"),ht.startLoad();break;case xu.ErrorTypes.MEDIA_ERROR:yt.error("媒体错误,尝试恢复播放"),ht.recoverMediaError();break;default:yt.error("播放器错误,请重试"),r("error","播放器错误");break}}));const Vt=()=>{We.play().catch(rr=>{console.warn("自动播放失败:",rr),yt.warning("自动播放失败,请手动点击播放")}),Ce()},Ut=rr=>{console.error("视频播放错误:",rr),yt.error("视频播放失败,请检查视频链接或格式"),r("error","视频播放失败")},Lt=()=>{Ve()||(Ce(),setTimeout(()=>{Ce()},50))},Xt=()=>{_e()},Dn=()=>{ve()};We.removeEventListener("loadedmetadata",Vt),We.removeEventListener("error",Ut),We.removeEventListener("playing",Lt),We.removeEventListener("timeupdate",ge),We.removeEventListener("seeking",Xt),We.removeEventListener("seeked",Dn),We.addEventListener("loadedmetadata",Vt),We.addEventListener("error",Ut),We.addEventListener("playing",Lt),We.addEventListener("timeupdate",ge),We.addEventListener("seeking",Xt),We.addEventListener("seeked",Dn)}else We.src=Le}catch(dt){console.error("视频加载失败:",dt),yt.error("视频加载失败,请重试"),r("error","视频加载失败")}We.removeEventListener("ended",$e),We.addEventListener("ended",$e)},Ht=Ee=>{Ue(Ee),yt.success("片头片尾设置已保存"),tt()},Jt=()=>{console.log("关闭视频播放器"),i.value&&(i.value.pause(),i.value.currentTime=0),a.value&&a.value.destroy(),ae.value&&(clearInterval(ae.value),ae.value=null),r("close")},rn=Ee=>{r("player-change",Ee)},vt=Ee=>{r("parser-change",Ee)},Fe=Ee=>{console.log("代理播放地址变更:",Ee);try{const We=JSON.parse(localStorage.getItem("addressSettings")||"{}");Ee==="disabled"?We.proxyPlayEnabled=!1:(We.proxyPlayEnabled=!0,We.proxyPlay=Ee),localStorage.setItem("addressSettings",JSON.stringify(We)),window.dispatchEvent(new CustomEvent("addressSettingsChanged")),n.videoUrl&&dn(()=>{Rt(n.videoUrl)})}catch(We){console.error("保存代理播放设置失败:",We)}};It(()=>n.videoUrl,Ee=>{Ee&&n.visible&&(xe(),dn(()=>{Rt(Ee)}))},{immediate:!0}),It(()=>n.visible,Ee=>{Ee&&n.videoUrl?dn(()=>{Rt(n.videoUrl)}):Ee||a.value&&a.value.destroy()}),It(()=>n.qualities,Ee=>{console.log("画质数据变化:",Ee),P()},{immediate:!0,deep:!0}),It(()=>n.initialQuality,Ee=>{Ee&&Ee!==E.value&&(console.log("初始画质变化:",Ee),E.value=Ee)},{immediate:!0});const Me=()=>{console.log("检测到代理设置变化,重新初始化播放器"),D.value++,n.videoUrl&&n.visible&&dn(()=>{Rt(n.videoUrl)})};return hn(()=>{re(),P(),window.addEventListener("addressSettingsChanged",Me)}),ii(()=>{console.log("VideoPlayer组件卸载,清理播放器资源"),window.removeEventListener("addressSettingsChanged",Me),i.value&&(i.value.pause(),i.value.src="",i.value.load()),a.value&&a.value.destroy(),g.value&&(clearInterval(g.value),g.value=null)}),(Ee,We)=>{const $e=Te("a-card");return e.visible&&(e.videoUrl||e.needsParsing)?(z(),Ze($e,{key:0,class:"video-player-section"},{default:fe(()=>[$(nK,{"episode-name":e.episodeName,"player-type":e.playerType,episodes:e.episodes,"auto-next-enabled":c.value,"loop-enabled":d.value,"countdown-enabled":h.value,"skip-enabled":rt(se),"show-debug-button":L.value,qualities:_.value,"current-quality":E.value,"show-parser-selector":e.needsParsing,"needs-parsing":e.needsParsing,"parse-data":e.parseData,onToggleAutoNext:me,onToggleLoop:Oe,onToggleCountdown:qe,onPlayerChange:rn,onOpenSkipSettings:rt(Ge),onToggleDebug:ct,onProxyChange:Fe,onQualityChange:M,onParserChange:vt,onClose:Jt},null,8,["episode-name","player-type","episodes","auto-next-enabled","loop-enabled","countdown-enabled","skip-enabled","show-debug-button","qualities","current-quality","show-parser-selector","needs-parsing","parse-data","onOpenSkipSettings"]),I("div",HPt,[I("video",{ref_key:"videoPlayer",ref:i,class:"video-player",controls:"",autoplay:"",preload:"auto",poster:e.poster}," 您的浏览器不支持视频播放 ",8,WPt),I("div",GPt,[We[2]||(We[2]=I("label",{for:"speed-select"},"倍速:",-1)),Ai(I("select",{id:"speed-select","onUpdate:modelValue":We[0]||(We[0]=dt=>k.value=dt),onChange:ft,class:"speed-selector"},[...We[1]||(We[1]=[I("option",{value:"0.5"},"0.5x",-1),I("option",{value:"0.75"},"0.75x",-1),I("option",{value:"1"},"1x",-1),I("option",{value:"1.25"},"1.25x",-1),I("option",{value:"1.5"},"1.5x",-1),I("option",{value:"2"},"2x",-1),I("option",{value:"2.5"},"2.5x",-1),I("option",{value:"3"},"3x",-1),I("option",{value:"4"},"4x",-1),I("option",{value:"5"},"5x",-1)])],544),[[rH,k.value]])]),p.value?(z(),X("div",KPt,[I("div",qPt,[We[3]||(We[3]=I("div",{class:"auto-next-title"},[I("span",null,"即将播放下一集")],-1)),H()?(z(),X("div",YPt,Ne(H().name),1)):Ie("",!0),I("div",XPt,Ne(v.value)+" 秒后自动播放 ",1),I("div",{class:"auto-next-buttons"},[I("button",{onClick:Y,class:"btn-play-now"},"立即播放"),I("button",{onClick:at,class:"btn-cancel"},"取消")])])])):Ie("",!0),$(w4e,{visible:rt(ie),"skip-intro-enabled":rt(te),"skip-outro-enabled":rt(W),"skip-intro-seconds":rt(q),"skip-outro-seconds":rt(Q),onClose:rt(tt),onSave:Ht},null,8,["visible","skip-intro-enabled","skip-outro-enabled","skip-intro-seconds","skip-outro-seconds","onClose"]),$(rK,{visible:C.value,"video-url":T.value||e.videoUrl,headers:e.headers,"player-type":"default","detected-format":x.value,"proxy-url":B.value,onClose:wt},null,8,["visible","video-url","headers","detected-format","proxy-url"])])]),_:1})):Ie("",!0)}}},uU=cr(ZPt,[["__scopeId","data-v-30f32bd3"]]);/*! +*/function uu(o){this.h=o,(this.g=H7.get("ISOBoxer")())&&K8e(this)}function K8e(o){function u(){this._procFullBox(),this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8)),this._procField("sample_count","uint",32),this._procEntries("entry",this.sample_count,function(f){this._procEntryField(f,"InitializationVector","data",8),this.flags&2&&(this._procEntryField(f,"NumberOfEntries","uint",16),this._procSubEntries(f,"clearAndCryptedData",f.NumberOfEntries,function(m){this._procEntryField(m,"BytesOfClearData","uint",16),this._procEntryField(m,"BytesOfEncryptedData","uint",32)}))})}o.g.addBoxProcessor("saio",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("entry_count","uint",32),this._procFieldArray("offset",this.entry_count,"uint",this.version===1?64:32)}),o.g.addBoxProcessor("saiz",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("default_sample_info_size","uint",8),this._procField("sample_count","uint",32),this.default_sample_info_size===0&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)}),o.g.addBoxProcessor("senc",u),o.g.addBoxProcessor("uuid",function(){for(var f=!0,m=0;m<16;m++)this.usertype[m]!==q8e[m]&&(f=!1);f&&(this._parsing&&(this.type="sepiff"),u.call(this))})}l=uu.prototype,l.destroy=function(){},l.isSupported=function(o,u){var f=o.startsWith("mss/");return!this.g||!f?!1:u?jo(this.convertCodecs(u,o)):(u=this.convertCodecs("audio",o),o=this.convertCodecs("video",o),jo(u)||jo(o))},l.convertCodecs=function(o,u){return u.replace("mss/","")},l.getOriginalMimeType=function(){return this.h},l.transmux=function(o,u,f){if(!f)return Promise.resolve(Te(o));if(!u.mssPrivateData)return Promise.reject(new De(2,3,3020,f?f.P()[0]:null));try{var m,b=this.g.parseBuffer(o),C=b.fetch("tfhd");C.track_ID=u.id+1;var A=b.fetch("tfdt"),R=b.fetch("traf");A===null&&(A=this.g.createFullBox("tfdt",R,C),A.version=1,A.flags=0,A.baseMediaDecodeTime=Math.floor(f.startTime*u.mssPrivateData.timescale));var N=b.fetch("trun"),V=b.fetch("tfxd");V&&V._parent.boxes.splice(V._parent.boxes.indexOf(V),1);var G=b.fetch("tfrf");G&&G._parent.boxes.splice(G._parent.boxes.indexOf(G),1);var Z=b.fetch("sepiff");if(Z!==null){Z.type="senc",Z.usertype=void 0;var le=b.fetch("saio");if(le===null){le=this.g.createFullBox("saio",R),le.version=0,le.flags=0,le.entry_count=1,le.offset=[0];var he=this.g.createFullBox("saiz",R);if(he.version=0,he.flags=0,he.sample_count=Z.sample_count,he.default_sample_info_size=0,he.sample_info_size=[],Z.flags&2)for(m=0;m1?(ze.dts||0)-(ye[be-1].dts||0):(f.endTime-f.startTime)*9e4,le.push({data:ze.data,size:ze.data.byteLength,duration:Ne,sb:Math.round((ze.pts||0)-(ze.dts||0)),flags:{xb:0,mb:0,jb:0,gb:0,hb:ze.isKeyframe?2:1,yb:ze.isKeyframe?0:1}})}for(var Je=[],lt=_(pe),St=lt.next();!St.done;St=lt.next())Je.push.apply(Je,T(St.value.nalus));var it=O8e(Je);if(!it||he==null)throw new De(2,3,3018,f?f.P()[0]:null);u.height=it.height,u.width=it.width,Z={id:u.id,type:"video",codecs:"avc1",encrypted:u.encrypted&&u.drmInfos.length>0,timescale:9e4,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:it.Ra,Za:it.Za,$a:it.$a,data:{sequenceNumber:this.g,baseMediaDecodeTime:he,zb:le},stream:u};break;case"hvc":var Xe=[],pt=null,_t=[],bt=N.ud();if(!bt.length)throw new De(2,3,3023,f?f.P()[0]:null);for(var kt=0;kt>24&255,yr[1]=Lr>>16&255,yr[2]=Lr>>8&255,yr[3]=Lr&255,Tt.push(yr),Tt.push(Jn.fullData)}}var ti=Tt.length?{data:or.apply(tr,T(Tt)),isKeyframe:Nt}:null;if(ti){pt==null&&wt.dts!=null&&(pt=wt.dts);var Sr=void 0;Sr=kt+11?(wt.dts||0)-(bt[kt-1].dts||0):(f.endTime-f.startTime)*9e4,Xe.push({data:ti.data,size:ti.data.byteLength,duration:Sr,sb:Math.round((wt.pts||0)-(wt.dts||0)),flags:{xb:0,mb:0,jb:0,gb:0,hb:ti.isKeyframe?2:1,yb:ti.isKeyframe?0:1}})}}var $n=N8e(_t);if(!$n||pt==null)throw new De(2,3,3018,f?f.P()[0]:null);u.height=$n.height,u.width=$n.width,Z={id:u.id,type:"video",codecs:"hvc1",encrypted:u.encrypted&&u.drmInfos.length>0,timescale:9e4,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:$n.Ra,Za:$n.Za,$a:$n.$a,data:{sequenceNumber:this.g,baseMediaDecodeTime:pt,zb:Xe},stream:u}}Z&&(V.push(Z),Z=null)}if(b=="audio"){switch(G.audio){case"aac":for(var Ei=[],Rr,Dr=null,pr=null,Ui=null,Vi=_(N.ub()),io=Vi.next();!io.done;io=Vi.next()){var ai=io.value,ll=ai.data;if(ll){var Sa=0;if(pr==-1&&Ui)ll=or(Ui,ai.data),pr=null;else if(pr!=null&&Ui){Sa=Math.max(0,pr);var U2=or(Ui,ll.subarray(0,Sa));Ei.push({data:U2,size:U2.byteLength,duration:1024,sb:0,flags:{xb:0,mb:0,jb:0,gb:0,hb:2,yb:0}}),pr=Ui=null}if(Rr=Tte(ll,Sa),!Rr)throw new De(2,3,3018,f?f.P()[0]:null);for(u.audioSamplingRate=Rr.sampleRate,u.channelsCount=Rr.channelCount,Dr==null&&ai.pts!==null&&(Dr=ai.pts);Sa0,timescale:$te,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:Z8e,zb:Ei},stream:u};break;case"ac3":for(var Bte=[],nw=0,YD=new Uint8Array([]),rw=null,Nte=_(N.ub()),XD=Nte.next();!XD.done;XD=Nte.next()){var ZD=XD.value,JD=ZD.data;rw==null&&ZD.pts!==null&&(rw=ZD.pts);for(var s1=0;s10,timescale:nw,duration:m,Bb:[],Ga:YD,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:J8e,zb:Bte},stream:u};break;case"ec3":for(var Fte=[],iw=0,QD=new Uint8Array([]),ow=null,jte=_(N.ub()),eP=jte.next();!eP.done;eP=jte.next()){var tP=eP.value,nP=tP.data;ow==null&&tP.pts!==null&&(ow=tP.pts);for(var a1=0;a10,timescale:iw,duration:m,Bb:[],Ga:QD,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:Q8e,zb:Fte},stream:u};break;case"mp3":for(var Vte=[],sw,aw=null,zte=_(N.ub()),rP=zte.next();!rP.done;rP=zte.next()){var iP=rP.value,H2=iP.data;if(H2){aw==null&&iP.pts!==null&&(aw=iP.pts);for(var gv=0;gv0,timescale:Ute,duration:m,Bb:[],Ga:new Uint8Array([]),Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:eTe,zb:Vte},stream:u};break;case"opus":var Hte=[],lw=null,Kd=N.H;if(!Kd)throw new De(2,3,3018,f?f.P()[0]:null);var $a=[];switch(Kd.nj){case 1:case 2:$a=[0];break;case 0:$a=[255,1,1,0,1];break;case 128:$a=[255,2,0,0,1];break;case 3:$a=[1,2,1,0,2,1];break;case 4:$a=[1,2,2,0,1,2,3];break;case 5:$a=[1,3,2,0,4,1,2,3];break;case 6:$a=[1,4,2,0,4,1,2,3,5];break;case 7:$a=[1,4,2,0,4,1,2,3,5,6];break;case 8:$a=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:$a=[1,1,2,0,1];break;case 131:$a=[1,1,3,0,1,2];break;case 132:$a=[1,1,4,0,1,2,3];break;case 133:$a=[1,1,5,0,1,2,3,4];break;case 134:$a=[1,1,6,0,1,2,3,4,5];break;case 135:$a=[1,1,7,0,1,2,3,4,5,6];break;case 136:$a=[1,1,8,0,1,2,3,4,5,6,7]}for(var Wte=new Uint8Array([0,Kd.channelCount,0,0,Kd.sampleRate>>>24&255,Kd.sampleRate>>>17&255,Kd.sampleRate>>>8&255,Kd.sampleRate>>>0&255,0,0].concat(T($a))),Gte=Kd.sampleRate,Kte=_(N.ub()),oP=Kte.next();!oP.done;oP=Kte.next()){var sP=oP.value,u1=sP.data;lw==null&&sP.pts!==null&&(lw=sP.pts);for(var W2=0;W20,timescale:Gte,duration:m,Bb:[],Ga:Wte,Ra:new Uint8Array([]),Za:0,$a:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:rTe,zb:Hte},stream:u}}Z&&(V.push(Z),Z=null)}}catch(lP){return lP&&lP.code==3023?Promise.resolve(new Uint8Array([])):Promise.reject(lP)}if(!V.length)return Promise.reject(new De(2,3,3018,f?f.P()[0]:null));var Yte=new xg(V),aP=u.id+"_"+f.i;if(this.j.has(aP))var G2=this.j.get(aP);else G2=Cg(Yte),this.j.set(aP,G2);var iTe=this.l!==G2,oTe=W3(Yte);return this.l=G2,this.g++,Promise.resolve({data:oTe,init:iTe?G2:null})},_e("shaka.transmuxer.TsTransmuxer",Zu),Zu.prototype.transmux=Zu.prototype.transmux,Zu.prototype.getOriginalMimeType=Zu.prototype.getOriginalMimeType,Zu.prototype.convertCodecs=Zu.prototype.convertCodecs,Zu.prototype.isSupported=Zu.prototype.isSupported,Zu.prototype.destroy=Zu.prototype.destroy;var Y8e=["aac","ac-3","ec-3","mp3","opus"],X8e=["avc","hevc"];jf("video/mp2t",function(){return new Zu("video/mp2t")},OI);function Mte(){}x(Mte,ol),_e("shaka.util.FairPlayUtils",Mte)}).call(n,t,t,void 0);for(var r in n.shaka)e[r]=n.shaka[r]})()})(uj)),uj}var qPt=KPt();const f8=rd(qPt),sm={hls:{maxBufferLength:600,liveSyncDurationCount:10},flv:{mediaDataSource:{type:"flv",isLive:!1},optionalConfig:{enableWorker:!1,enableStashBuffer:!1,autoCleanupSourceBuffer:!0,reuseRedirectedURL:!0,fixAudioTimestampGap:!1,deferLoadAfterSourceOpen:!1,headers:{}}},dash:{}},qT=e=>{if(typeof e!="string")return console.warn("detectVideoFormat: url must be a string, received:",typeof e,e),"native";const t=e.toLowerCase();return t.includes(".m3u8")||t.includes("m3u8")?"hls":t.includes(".flv")||t.includes("flv")?"flv":t.includes(".mpd")||t.includes("mpd")?"dash":t.includes(".ts")||t.includes("ts")?"mpegts":t.includes("magnet:")||t.includes(".torrent")?"torrent":"native"},Cy={hls:(e,t,n={})=>{if(console.log("🎬 [HLS播放器] 开始播放视频:"),console.log("📺 视频地址:",t),console.log("📋 请求头:",n),xu.isSupported()){const r=Object.assign({},{...sm.hls});r.xhrSetup=function(a,s){if(Bh().autoBypass&&Object.defineProperty(a,"referrer",{value:"",writable:!1}),Object.keys(n).length>0)for(const c in n)a.setRequestHeader(c,n[c])};const i=new xu(r);return i.loadSource(t),i.attachMedia(e),i}else return console.log("HLS is not supported."),null},flv:(e,t,n={})=>{if(console.log("🎬 [FLV播放器] 开始播放视频:"),console.log("📺 视频地址:",t),console.log("📋 请求头:",n),cU.isSupported()){const r=cU.createPlayer(Object.assign({},{...sm.flv.mediaDataSource},{url:t}),Object.assign({},{...sm.flv.optionalConfig},{headers:n}));return r.attachMediaElement(e),r.load(),r}else return console.log("FLV is not supported."),null},dash:(e,t,n={})=>{if(console.log("🎬 [DASH播放器] 开始播放视频:"),console.log("📺 视频地址:",t),console.log("📋 请求头:",n),f8.Player.isBrowserSupported()){const r=new f8.Player(e);r.getNetworkingEngine().registerRequestFilter(function(a,s){if(a==f8.net.NetworkingEngine.RequestType.MANIFEST)for(const l in n)s.headers[l]=n[l]}),r.load(t);const i=sm.dash;return r.configure(i),r}else return console.log("DASH is not supported."),null}},cj={hls:(e,t,n)=>(t.stopLoad(),t.detachMedia(),t.loadSource(n),t.attachMedia(e),t.once(xu.Events.MANIFEST_PARSED,()=>{e.play()}),t),flv:(e,t,n)=>(t.pause(),t.unload(),t.detachMediaElement(),t.destroy(),t=cU.createPlayer(Object.assign({},sm.flv.mediaDataSource||{},{url:n}),sm.flv.optionalConfig||{}),t.attachMediaElement(e),t.load(),t),dash:(e,t,n)=>{t.destroy();const r=new f8.Player(e);r.load(n);const i=sm.dash;return r.configure(i),r}},$b={hls:e=>{e?.hls&&(e.hls.destroy(),delete e.hls)},flv:e=>{e?.flv&&(e.flv.destroy(),delete e.flv)},dash:e=>{e?.dash&&(e.dash.destroy(),delete e.dash)}};class A4e{constructor(t){this.video=t,this.currentPlayer=null,this.currentFormat="native"}loadVideo(t,n={}){const r=qT(t);switch(this.currentFormat!==r&&this.currentPlayer&&this.destroy(),this.currentFormat=r,r){case"hls":this.currentPlayer=Cy.hls(this.video,t,n);break;case"flv":this.currentPlayer=Cy.flv(this.video,t,n);break;case"dash":this.currentPlayer=Cy.dash(this.video,t,n);break;default:console.log("🎬 [原生播放器] 开始播放视频:"),console.log("📺 视频地址:",t),console.log("📋 请求头:",n),this.video.src=t,this.currentPlayer=null;break}return this.currentPlayer}switchVideo(t){const n=qT(t);if(n===this.currentFormat&&this.currentPlayer)switch(n){case"hls":this.currentPlayer=cj.hls(this.video,this.currentPlayer,t);break;case"flv":this.currentPlayer=cj.flv(this.video,this.currentPlayer,t);break;case"dash":this.currentPlayer=cj.dash(this.video,this.currentPlayer,t);break}else this.loadVideo(t)}destroy(){if(this.currentPlayer){switch(this.currentFormat){case"hls":$b.hls({hls:this.currentPlayer});break;case"flv":$b.flv({flv:this.currentPlayer});break;case"dash":$b.dash({dash:this.currentPlayer});break}this.currentPlayer=null}this.currentFormat="native"}getCurrentPlayer(){return this.currentPlayer}getCurrentFormat(){return this.currentFormat}}const Nx={MAX_SIZE:100,CLEANUP_INTERVAL:3e5,MAX_AGE:6e5},xh={urlCache:new Map,headerCache:new Map,proxyCache:new Map,lastCleanup:Date.now()},YPt="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36";function I4e(){const e=Date.now();if(e-xh.lastCleanup{n.size>Nx.MAX_SIZE&&Array.from(n.entries()).slice(0,Math.floor(Nx.MAX_SIZE*.3)).forEach(([a])=>n.delete(a));for(const[r,i]of n.entries())i.timestamp&&e-i.timestamp>Nx.MAX_AGE&&n.delete(r)}),xh.lastCleanup=e}function gce(e,t){I4e();const n=t.get(e);if(n)return n.value;const r=Ame(e);return t.set(e,{value:r,timestamp:Date.now()}),r}function XPt(){try{const e=JSON.parse(localStorage.getItem("addressSettings")||"{}"),t=e.proxyPlayEnabled||!1,n=e.proxyPlay||"";return!t||!n||n.trim()===""?null:n.trim()}catch(e){return console.error("获取代理播放地址失败:",e),null}}function L4e(e,t,n={}){try{const r=`${e}|${t}|${JSON.stringify(n)}`;I4e();const i=xh.proxyCache.get(r);if(i)return i.value;const a=t.replace(/#.*$/,"");let s=n;(!n||Object.keys(n).length===0||Object.keys(n).length===1&&!n["user-agent"]&&!n["User-Agent"])&&(s={"user-agent":navigator.userAgent||YPt});const l=JSON.stringify(s),c=gce(e,xh.urlCache),d=gce(l,xh.headerCache),h=e.split("/"),v=h[h.length-1].split("?")[0],g=a.replace(/\$\{url\}/g,encodeURIComponent(c)).replace(/\$\{headers\}/g,encodeURIComponent(d)).replace(/\$\{type\}/g,v);return xh.proxyCache.set(r,{value:g,timestamp:Date.now()}),console.log("🔄 [代理播放] 构建代理URL:"),console.log("📺 原始地址:",e),console.log("📋 原始请求头:",n),console.log("📋 最终请求头:",s),console.log("🌐 代理模板:",t),console.log("🧹 清理后模板:",a),console.log("🔐 编码后URL:",c),console.log("🔐 编码后Headers:",d),console.log("🔗 最终代理URL:",g),g}catch(r){return console.error("构建代理播放URL失败:",r),e}}function am(e,t={}){const n=XPt();return n?L4e(e,n,t):e}const ZPt={class:"video-player-container"},JPt=["poster"],QPt={class:"speed-control"},eRt={key:0,class:"auto-next-dialog"},tRt={class:"auto-next-content"},nRt={key:0,class:"auto-next-episode"},rRt={class:"auto-next-countdown"},iRt={__name:"VideoPlayer",props:{visible:{type:Boolean,default:!1},videoUrl:{type:String,default:""},episodeName:{type:String,default:"未知选集"},poster:{type:String,default:""},playerType:{type:String,default:"default"},episodes:{type:Array,default:()=>[]},currentEpisodeIndex:{type:Number,default:0},headers:{type:Object,default:()=>({})},qualities:{type:Array,default:()=>[]},hasMultipleQualities:{type:Boolean,default:!1},initialQuality:{type:String,default:"默认"},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>({})}},emits:["close","error","player-change","next-episode","episode-selected","quality-change","parser-change"],setup(e,{emit:t}){const n=e,r=t,i=ue(null),a=ue(null),s=JSON.parse(localStorage.getItem("loopEnabled")||"false"),l=JSON.parse(localStorage.getItem("autoNextEnabled")||"true"),c=ue(s?!1:l),d=ue(s),h=ue(!1),p=ue(!1),v=ue(10),g=ue(null),y=ue(!1),S=ue(!1),k=ue(1),w=ue(!1),x=ue(""),E=ue("默认"),_=ue([]),T=ue(""),D=ue(0),P=()=>{if(n.qualities&&n.qualities.length>0){_.value=[...n.qualities],E.value=n.initialQuality||n.qualities[0]?.name||"默认";const Ce=_.value.find(We=>We.name===E.value);T.value=Ce?.url||n.videoUrl,console.log("初始化画质数据:",{qualities:_.value,currentQuality:E.value,currentPlayingUrl:T.value})}else _.value=[],E.value="默认",T.value=n.videoUrl},M=Ce=>{console.log("切换画质:",Ce);const We=_.value.find(Qe=>Qe.name===Ce);if(!We){console.error("未找到指定画质:",Ce),gt.error("画质切换失败:未找到指定画质");return}const $e=i.value?.currentTime||0,dt=i.value&&!i.value.paused;console.log("切换画质前状态:",{currentTime:$e,wasPlaying:dt,from:E.value,to:Ce,url:We.url}),E.value=Ce,T.value=We.url,r("quality-change",{quality:Ce,url:We.url,currentTime:$e,wasPlaying:dt}),$(We.url,$e,dt)},$=(Ce,We=0,$e=!1)=>{if(!(!i.value||!Ce)){console.log("切换视频源:",{newUrl:Ce,seekTime:We,autoPlay:$e});try{const dt=n.headers||{},Qe=am(Ce,dt);Qe!==Ce&&console.log("🔄 [代理播放] 切换视频源使用代理地址"),a.value?a.value.switchVideo(Qe):i.value.src=Qe;const Le=()=>{We>0&&(i.value.currentTime=We),$e&&i.value.play().catch(ht=>{console.warn("画质切换后自动播放失败:",ht)}),i.value.removeEventListener("loadeddata",Le),gt.success(`已切换到${E.value}画质`)};i.value.addEventListener("loadeddata",Le)}catch(dt){console.error("切换视频源失败:",dt),gt.error("画质切换失败,请重试")}}},L=F(()=>!!n.videoUrl),B=F(()=>{D.value;const Ce=T.value||n.videoUrl;if(!Ce)return"";const We=n.headers||{};return am(Ce,We)}),j=()=>n.episodes&&n.episodes.length>0&&n.currentEpisodeIndexj()?n.episodes[n.currentEpisodeIndex+1]:null,U=()=>{p.value=!1,g.value&&(clearInterval(g.value),g.value=null)},W=()=>{y.value=!1,S.value=!1,console.log("所有防抖标志已重置")},K=()=>{if(j()){const Ce=n.currentEpisodeIndex+1;r("next-episode",Ce),U(),setTimeout(()=>{W()},2e3)}},{showSkipSettingsDialog:oe,skipIntroEnabled:ae,skipOutroEnabled:ee,skipIntroSeconds:Y,skipOutroSeconds:Q,skipEnabled:ie,skipOutroTimer:q,initSkipSettings:te,applySkipSettings:Se,applyIntroSkipImmediate:Fe,handleTimeUpdate:ve,resetSkipState:Re,openSkipSettingsDialog:Ge,closeSkipSettingsDialog:nt,saveSkipSettings:Ie,onUserSeekStart:_e,onUserSeekEnd:me}=E4e({onSkipToNext:K,getCurrentTime:()=>i.value?.currentTime||0,setCurrentTime:Ce=>{i.value&&(i.value.currentTime=Ce)},getDuration:()=>i.value?.duration||0}),ge=()=>{c.value=!c.value,localStorage.setItem("autoNextEnabled",JSON.stringify(c.value)),c.value&&(d.value=!1,localStorage.setItem("loopEnabled","false"))},Be=()=>{d.value=!d.value,localStorage.setItem("loopEnabled",JSON.stringify(d.value)),d.value&&(c.value=!1,localStorage.setItem("autoNextEnabled","false")),console.log("循环播放开关:",d.value?"开启":"关闭")},Ye=()=>{h.value=!h.value},Ke=()=>{!c.value||!j()||(p.value=!0,v.value=10,g.value=setInterval(()=>{v.value--,v.value<=0&&K()},1e3))},at=()=>{U(),y.value=!1},ft=()=>{i.value&&(i.value.playbackRate=parseFloat(k.value),console.log("播放倍速已设置为:",k.value))},ct=()=>{w.value=!w.value},Ct=()=>{w.value=!1},xt=Ce=>{if(!Ce)return!1;const $e=[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp",".ts",".m3u8",".mpd"].some(Le=>Ce.toLowerCase().includes(Le)),dt=Ce.toLowerCase().includes("m3u8")||Ce.toLowerCase().includes("mpd")||Ce.toLowerCase().includes("rtmp")||Ce.toLowerCase().includes("rtsp");return $e||dt?!0:!(Ce.includes("://")&&(Ce.includes(".html")||Ce.includes(".php")||Ce.includes(".asp")||Ce.includes(".jsp")||Ce.match(/\/[^.?#]*$/))&&!$e&&!dt)},Rt=Ce=>{if(!i.value||!Ce)return;if(Re(),W(),!xt(Ce)){gt.info("检测到网页链接,正在新窗口打开..."),window.open(Ce,"_blank"),r("close");return}a.value?a.value.destroy():a.value=new A4e(i.value);const We=i.value;try{const dt=oK(Ce,We);console.log(`已为视频播放应用CSP策略: ${dt}`)}catch(dt){console.warn("应用CSP策略失败:",dt),KT(We,Jv.NO_REFERRER)}const $e=()=>{try{if(y.value||S.value){console.log("防抖:忽略重复的视频结束事件");return}if(d.value){console.log("循环播放:重新播放当前选集"),S.value=!0,setTimeout(()=>{try{r("episode-selected",n.currentEpisodeIndex),setTimeout(()=>{S.value=!1,console.log("循环播放防抖标志已重置")},3e3)}catch(dt){console.error("循环播放触发选集事件失败:",dt),gt.error("循环播放失败,请重试"),S.value=!1}},1e3);return}c.value&&j()&&(y.value=!0,h.value?Ke():setTimeout(()=>{K()},1e3))}catch(dt){console.error("视频结束事件处理失败:",dt),gt.error("视频结束处理失败"),W()}};try{Re();const dt=qT(Ce);x.value=dt,console.log(`检测到视频格式: ${dt}`);const Qe=n.headers||{},Le=am(Ce,Qe);Le!==Ce&&console.log("🔄 [代理播放] 使用代理地址播放视频");const ht=a.value.loadVideo(Le,Qe);if(ht){console.log(`使用${dt}播放器加载视频成功`),dt==="hls"&&ht&&(ht.on(xu.Events.MANIFEST_PARSED,()=>{console.log("HLS manifest 解析完成,开始播放"),We.play().catch(rr=>{console.warn("自动播放失败:",rr)})}),ht.on(xu.Events.ERROR,(rr,Xr)=>{if(console.error("HLS播放错误:",Xr),Xr.fatal)switch(Xr.type){case xu.ErrorTypes.NETWORK_ERROR:gt.error("网络错误,请检查网络连接"),ht.startLoad();break;case xu.ErrorTypes.MEDIA_ERROR:gt.error("媒体错误,尝试恢复播放"),ht.recoverMediaError();break;default:gt.error("播放器错误,请重试"),r("error","播放器错误");break}}));const Vt=()=>{We.play().catch(rr=>{console.warn("自动播放失败:",rr),gt.warning("自动播放失败,请手动点击播放")}),Se()},Ut=rr=>{console.error("视频播放错误:",rr),gt.error("视频播放失败,请检查视频链接或格式"),r("error","视频播放失败")},Lt=()=>{Fe()||(Se(),setTimeout(()=>{Se()},50))},Xt=()=>{_e()},Dn=()=>{me()};We.removeEventListener("loadedmetadata",Vt),We.removeEventListener("error",Ut),We.removeEventListener("playing",Lt),We.removeEventListener("timeupdate",ve),We.removeEventListener("seeking",Xt),We.removeEventListener("seeked",Dn),We.addEventListener("loadedmetadata",Vt),We.addEventListener("error",Ut),We.addEventListener("playing",Lt),We.addEventListener("timeupdate",ve),We.addEventListener("seeking",Xt),We.addEventListener("seeked",Dn)}else We.src=Le}catch(dt){console.error("视频加载失败:",dt),gt.error("视频加载失败,请重试"),r("error","视频加载失败")}We.removeEventListener("ended",$e),We.addEventListener("ended",$e)},Ht=Ce=>{Ie(Ce),gt.success("片头片尾设置已保存"),nt()},Jt=()=>{console.log("关闭视频播放器"),i.value&&(i.value.pause(),i.value.currentTime=0),a.value&&a.value.destroy(),q.value&&(clearInterval(q.value),q.value=null),r("close")},rn=Ce=>{r("player-change",Ce)},vt=Ce=>{r("parser-change",Ce)},Ve=Ce=>{console.log("代理播放地址变更:",Ce);try{const We=JSON.parse(localStorage.getItem("addressSettings")||"{}");Ce==="disabled"?We.proxyPlayEnabled=!1:(We.proxyPlayEnabled=!0,We.proxyPlay=Ce),localStorage.setItem("addressSettings",JSON.stringify(We)),window.dispatchEvent(new CustomEvent("addressSettingsChanged")),n.videoUrl&&dn(()=>{Rt(n.videoUrl)})}catch(We){console.error("保存代理播放设置失败:",We)}};It(()=>n.videoUrl,Ce=>{Ce&&n.visible&&(Re(),dn(()=>{Rt(Ce)}))},{immediate:!0}),It(()=>n.visible,Ce=>{Ce&&n.videoUrl?dn(()=>{Rt(n.videoUrl)}):Ce||a.value&&a.value.destroy()}),It(()=>n.qualities,Ce=>{console.log("画质数据变化:",Ce),P()},{immediate:!0,deep:!0}),It(()=>n.initialQuality,Ce=>{Ce&&Ce!==E.value&&(console.log("初始画质变化:",Ce),E.value=Ce)},{immediate:!0});const Oe=()=>{console.log("检测到代理设置变化,重新初始化播放器"),D.value++,n.videoUrl&&n.visible&&dn(()=>{Rt(n.videoUrl)})};return fn(()=>{te(),P(),window.addEventListener("addressSettingsChanged",Oe)}),Yr(()=>{console.log("VideoPlayer组件卸载,清理播放器资源"),window.removeEventListener("addressSettingsChanged",Oe),i.value&&(i.value.pause(),i.value.src="",i.value.load()),a.value&&a.value.destroy(),g.value&&(clearInterval(g.value),g.value=null)}),(Ce,We)=>{const $e=Ee("a-card");return e.visible&&(e.videoUrl||e.needsParsing)?(z(),Ze($e,{key:0,class:"video-player-section"},{default:ce(()=>[O(nK,{"episode-name":e.episodeName,"player-type":e.playerType,episodes:e.episodes,"auto-next-enabled":c.value,"loop-enabled":d.value,"countdown-enabled":h.value,"skip-enabled":tt(ie),"show-debug-button":L.value,qualities:_.value,"current-quality":E.value,"show-parser-selector":e.needsParsing,"needs-parsing":e.needsParsing,"parse-data":e.parseData,onToggleAutoNext:ge,onToggleLoop:Be,onToggleCountdown:Ye,onPlayerChange:rn,onOpenSkipSettings:tt(Ge),onToggleDebug:ct,onProxyChange:Ve,onQualityChange:M,onParserChange:vt,onClose:Jt},null,8,["episode-name","player-type","episodes","auto-next-enabled","loop-enabled","countdown-enabled","skip-enabled","show-debug-button","qualities","current-quality","show-parser-selector","needs-parsing","parse-data","onOpenSkipSettings"]),I("div",ZPt,[I("video",{ref_key:"videoPlayer",ref:i,class:"video-player",controls:"",autoplay:"",preload:"auto",poster:e.poster}," 您的浏览器不支持视频播放 ",8,JPt),I("div",QPt,[We[2]||(We[2]=I("label",{for:"speed-select"},"倍速:",-1)),Ci(I("select",{id:"speed-select","onUpdate:modelValue":We[0]||(We[0]=dt=>k.value=dt),onChange:ft,class:"speed-selector"},[...We[1]||(We[1]=[I("option",{value:"0.5"},"0.5x",-1),I("option",{value:"0.75"},"0.75x",-1),I("option",{value:"1"},"1x",-1),I("option",{value:"1.25"},"1.25x",-1),I("option",{value:"1.5"},"1.5x",-1),I("option",{value:"2"},"2x",-1),I("option",{value:"2.5"},"2.5x",-1),I("option",{value:"3"},"3x",-1),I("option",{value:"4"},"4x",-1),I("option",{value:"5"},"5x",-1)])],544),[[oH,k.value]])]),p.value?(z(),X("div",eRt,[I("div",tRt,[We[3]||(We[3]=I("div",{class:"auto-next-title"},[I("span",null,"即将播放下一集")],-1)),H()?(z(),X("div",nRt,je(H().name),1)):Ae("",!0),I("div",rRt,je(v.value)+" 秒后自动播放 ",1),I("div",{class:"auto-next-buttons"},[I("button",{onClick:K,class:"btn-play-now"},"立即播放"),I("button",{onClick:at,class:"btn-cancel"},"取消")])])])):Ae("",!0),O(C4e,{visible:tt(oe),"skip-intro-enabled":tt(ae),"skip-outro-enabled":tt(ee),"skip-intro-seconds":tt(Y),"skip-outro-seconds":tt(Q),onClose:tt(nt),onSave:Ht},null,8,["visible","skip-intro-enabled","skip-outro-enabled","skip-intro-seconds","skip-outro-seconds","onClose"]),O(rK,{visible:w.value,"video-url":T.value||e.videoUrl,headers:e.headers,"player-type":"default","detected-format":x.value,"proxy-url":B.value,onClose:Ct},null,8,["visible","video-url","headers","detected-format","proxy-url"])])]),_:1})):Ae("",!0)}}},dU=sr(iRt,[["__scopeId","data-v-30f32bd3"]]);/*! * artplayer.js v5.3.0 * Github: https://github.com/zhw2590582/ArtPlayer * (c) 2017-2025 Harvey Zack * Released under the MIT License. - */(function(e,t,n,r,i,a,s,l){var c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},d=typeof c[r]=="function"&&c[r],h=d.i||{},p=d.cache||{},v=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);function g(k,C){if(!p[k]){if(!e[k]){if(i[k])return i[k];var x=typeof c[r]=="function"&&c[r];if(!C&&x)return x(k,!0);if(d)return d(k,!0);if(v&&typeof k=="string")return v(k);var E=Error("Cannot find module '"+k+"'");throw E.code="MODULE_NOT_FOUND",E}T.resolve=function(D){var P=e[k][1][D];return P??D},T.cache={};var _=p[k]=new g.Module(k);e[k][0].call(_.exports,T,_,_.exports,c)}return p[k].exports;function T(D){var P=T.resolve(D);return P===!1?{}:g(P)}}g.isParcelRequire=!0,g.Module=function(k){this.id=k,this.bundle=g,this.require=v,this.exports={}},g.modules=e,g.cache=p,g.parent=d,g.distDir=void 0,g.publicUrl=void 0,g.devServer=void 0,g.i=h,g.register=function(k,C){e[k]=[function(x,E){E.exports=C},{}]},Object.defineProperty(g,"root",{get:function(){return c[r]}}),c[r]=g;for(var y=0;yct.call(this,this)),Ke.DEBUG){let Ct=Rt=>console.log(`[ART.${this.id}] -> ${Rt}`);Ct(`Version@${Ke.version}`);for(let Rt=0;RtCt(`Event@${Ht.type}`))}qe.push(this)}static get instances(){return qe}static get version(){return d.version}static get config(){return p.default}static get utils(){return _e}static get scheme(){return ae.default}static get Emitter(){return me.default}static get validator(){return c.default}static get kindOf(){return c.default.kindOf}static get html(){return Ue.default.html}static get option(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,gesture:!0,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,proxy:void 0,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number:60,column:10,width:0,height:0,scale:1},subtitle:{url:"",type:"",style:{},name:"",escape:!0,encoding:"utf-8",onVttLoad:ft=>ft},moreVideoAttr:{controls:!1,preload:_e.isSafari?"auto":"metadata"},i18n:{},icons:{},cssVar:{},customType:{},lang:navigator?.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}get video(){return this.template.$video}destroy(ft=!0){Ke.REMOVE_SRC_WHEN_DESTROY&&this.video.removeAttribute("src"),this.events.destroy(),this.template.destroy(ft),qe.splice(qe.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}n.default=Ke,Ke.STYLE=s.default,Ke.DEBUG=!1,Ke.CONTEXTMENU=!0,Ke.NOTICE_TIME=2e3,Ke.SETTING_WIDTH=250,Ke.SETTING_ITEM_WIDTH=200,Ke.SETTING_ITEM_HEIGHT=35,Ke.RESIZE_TIME=200,Ke.SCROLL_TIME=200,Ke.SCROLL_GAP=50,Ke.AUTO_PLAYBACK_MAX=10,Ke.AUTO_PLAYBACK_MIN=5,Ke.AUTO_PLAYBACK_TIMEOUT=3e3,Ke.RECONNECT_TIME_MAX=5,Ke.RECONNECT_SLEEP_TIME=1e3,Ke.CONTROL_HIDE_TIME=3e3,Ke.DBCLICK_TIME=300,Ke.DBCLICK_FULLSCREEN=!0,Ke.MOBILE_DBCLICK_PLAY=!0,Ke.MOBILE_CLICK_PLAY=!1,Ke.AUTO_ORIENTATION_TIME=200,Ke.INFO_LOOP_TIME=1e3,Ke.FAST_FORWARD_VALUE=3,Ke.FAST_FORWARD_TIME=1e3,Ke.TOUCH_MOVE_RATIO=.5,Ke.VOLUME_STEP=.1,Ke.SEEK_STEP=5,Ke.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2],Ke.ASPECT_RATIO=["default","4:3","16:9"],Ke.FLIP=["normal","horizontal","vertical"],Ke.FULLSCREEN_WEB_IN_BODY=!1,Ke.LOG_VERSION=!0,Ke.USE_RAF=!1,Ke.REMOVE_SRC_WHEN_DESTROY=!0,_e.isBrowser&&(window.Artplayer=Ke,_e.setStyleText("artplayer-style",s.default),setTimeout(()=>{Ke.LOG_VERSION&&console.log(`%c ArtPlayer %c ${Ke.version} %c https://artplayer.org`,"color: #fff; background: #5f5f5f","color: #fff; background: #4bc729","")},100))},{"bundle-text:./style/index.less":"2wh8D","option-validator":"g7VGh","../package.json":"lh3R5","./config":"eJfh8","./contextmenu":"9zso8","./control":"dp1yk","./events":"jmVSD","./hotkey":"dswts","./i18n":"d9ktO","./icons":"fFHY0","./info":"kZ0F8","./layer":"j9lbi","./loading":"bMjWd","./mask":"k1nkQ","./notice":"fPVaU","./player":"uR0Sw","./plugins":"cjxJL","./scheme":"biLjm","./setting":"bwLGT","./storage":"kwqbK","./subtitle":"k5613","./template":"fwOA1","./utils":"aBlEo","./utils/emitter":"4NM7P","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"2wh8D":[function(e,t,n,r){t.exports='.art-video-player{--art-theme:red;--art-font-color:#fff;--art-background-color:#000;--art-text-shadow-color:#00000080;--art-transition-duration:.2s;--art-padding:10px;--art-border-radius:3px;--art-progress-height:6px;--art-progress-color:#ffffff40;--art-hover-color:#ffffff40;--art-loaded-color:#ffffff40;--art-state-size:80px;--art-state-opacity:.8;--art-bottom-height:100px;--art-bottom-offset:20px;--art-bottom-gap:5px;--art-highlight-width:8px;--art-highlight-color:#ffffff80;--art-control-height:46px;--art-control-opacity:.75;--art-control-icon-size:36px;--art-control-icon-scale:1.1;--art-volume-height:120px;--art-volume-handle-size:14px;--art-lock-size:36px;--art-indicator-scale:0;--art-indicator-size:16px;--art-fullscreen-web-index:9999;--art-settings-icon-size:24px;--art-settings-max-height:300px;--art-selector-max-height:300px;--art-contextmenus-min-width:250px;--art-subtitle-font-size:20px;--art-subtitle-gap:5px;--art-subtitle-bottom:15px;--art-subtitle-border:#000;--art-widget-background:#000000d9;--art-tip-background:#000000b3;--art-scrollbar-size:4px;--art-scrollbar-background:#ffffff40;--art-scrollbar-background-hover:#ffffff80;--art-mini-progress-height:2px}.art-bg-cover{background-position:50%;background-repeat:no-repeat;background-size:cover}.art-bottom-gradient{background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x}.art-backdrop-filter{backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.art-video-player{zoom:1;text-align:left;user-select:none;box-sizing:border-box;width:100%;height:100%;color:var(--art-font-color);background-color:var(--art-background-color);text-shadow:0 0 2px var(--art-text-shadow-color);-webkit-tap-highlight-color:#0000;-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none;direction:ltr;outline:0;margin:0 auto;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft YaHei,Roboto,Arial,sans-serif;font-size:14px;line-height:1.3;position:relative}.art-video-player *,.art-video-player :before,.art-video-player :after{box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:var(--art-scrollbar-size);height:var(--art-scrollbar-size)}.art-video-player ::-webkit-scrollbar-thumb{background-color:var(--art-scrollbar-background)}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:var(--art-scrollbar-background-hover)}.art-video-player img{vertical-align:top;max-width:100%}.art-video-player svg{fill:var(--art-font-color)}.art-video-player a{color:var(--art-font-color);text-decoration:none}.art-icon{justify-content:center;align-items:center;line-height:1;display:flex}.art-video-player.art-backdrop .art-contextmenus,.art-video-player.art-backdrop .art-info,.art-video-player.art-backdrop .art-settings,.art-video-player.art-backdrop .art-layer-auto-playback,.art-video-player.art-backdrop .art-selector-list,.art-video-player.art-backdrop .art-volume-inner{backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-video{z-index:10;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.art-poster{z-index:11;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;width:100%;height:100%;position:absolute;inset:0}.art-video-player .art-subtitle{z-index:20;text-align:center;pointer-events:none;justify-content:center;align-items:center;gap:var(--art-subtitle-gap);width:100%;bottom:var(--art-subtitle-bottom);font-size:var(--art-subtitle-font-size);transition:bottom var(--art-transition-duration)ease;text-shadow:var(--art-subtitle-border)1px 0 1px,var(--art-subtitle-border)0 1px 1px,var(--art-subtitle-border)-1px 0 1px,var(--art-subtitle-border)0 -1px 1px,var(--art-subtitle-border)1px 1px 1px,var(--art-subtitle-border)-1px -1px 1px,var(--art-subtitle-border)1px -1px 1px,var(--art-subtitle-border)-1px 1px 1px;flex-direction:column;padding:0 5%;display:none;position:absolute}.art-video-player.art-subtitle-show .art-subtitle{display:flex}.art-video-player.art-control-show .art-subtitle{bottom:calc(var(--art-control-height) + var(--art-subtitle-bottom))}.art-danmuku{z-index:30;pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}.art-video-player .art-layers{z-index:40;pointer-events:none;width:100%;height:100%;display:none;position:absolute;inset:0}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:flex}.art-video-player .art-mask{z-index:50;pointer-events:none;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.art-video-player .art-mask .art-state{opacity:0;width:var(--art-state-size);height:var(--art-state-size);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;display:flex;transform:scale(2)}.art-video-player.art-mask-show .art-state{cursor:pointer;pointer-events:auto;opacity:var(--art-state-opacity);transform:scale(1)}.art-video-player.art-loading-show .art-state{display:none}.art-video-player .art-loading{z-index:70;pointer-events:none;justify-content:center;align-items:center;width:100%;height:100%;display:none;position:absolute;inset:0}.art-video-player.art-loading-show .art-loading{display:flex}.art-video-player .art-bottom{z-index:60;opacity:0;pointer-events:none;width:100%;height:100%;padding:0 var(--art-padding);transition:all var(--art-transition-duration)ease;background-size:100% var(--art-bottom-height);background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x;flex-direction:column;justify-content:flex-end;display:flex;position:absolute;inset:0;overflow:hidden}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-progress{transform:translateY(var(--art-bottom-offset));transition:transform var(--art-transition-duration)ease}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1}.art-video-player.art-control-show .art-bottom .art-controls,.art-video-player.art-hover .art-bottom .art-controls,.art-video-player.art-control-show .art-bottom .art-progress,.art-video-player.art-hover .art-bottom .art-progress{transform:translateY(0)}.art-bottom .art-progress{z-index:0;pointer-events:auto;padding-bottom:var(--art-bottom-gap);position:relative}.art-bottom .art-progress .art-control-progress{cursor:pointer;height:var(--art-progress-height);justify-content:center;align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner{width:100%;height:50%;transition:height var(--art-transition-duration)ease;background-color:var(--art-progress-color);align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-hover{z-index:0;background-color:var(--art-hover-color);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{z-index:10;background-color:var(--art-loaded-color);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{z-index:20;background-color:var(--art-theme);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{z-index:30;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{z-index:0;pointer-events:auto;width:100%;height:100%;transform:translateX(calc(var(--art-highlight-width)/-2));background-color:var(--art-highlight-color);position:absolute;inset:0 auto 0 0;width:var(--art-highlight-width)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{z-index:40;width:var(--art-indicator-size);height:var(--art-indicator-size);transform:scale(var(--art-indicator-scale));margin-left:calc(var(--art-indicator-size)/-2);transition:transform var(--art-transition-duration)ease;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;left:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator .art-icon{pointer-events:none;width:100%;height:100%}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:hover{transform:scale(1.2)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:active{transform:scale(1)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{z-index:50;border-radius:var(--art-border-radius);white-space:nowrap;background-color:var(--art-tip-background);padding:3px 5px;font-size:12px;line-height:1;display:none;position:absolute;top:-25px;left:0}.art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-bottom .art-progress .art-control-thumbnails{bottom:calc(var(--art-bottom-gap) + 10px);border-radius:var(--art-border-radius);pointer-events:none;background-color:var(--art-widget-background);display:none;position:absolute;left:0;box-shadow:0 1px 3px #0003,0 1px 2px -1px #0003}.art-bottom:hover .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{transform:scale(1)}.art-controls{z-index:10;pointer-events:auto;height:var(--art-control-height);justify-content:space-between;align-items:center;display:flex;position:relative}.art-controls .art-controls-left,.art-controls .art-controls-right{height:100%;display:flex}.art-controls .art-controls-center{flex:1;justify-content:center;align-items:center;height:100%;padding:0 10px;display:none}.art-controls .art-controls-right{justify-content:flex-end}.art-controls .art-control{cursor:pointer;white-space:nowrap;opacity:var(--art-control-opacity);min-height:var(--art-control-height);min-width:var(--art-control-height);transition:opacity var(--art-transition-duration)ease;flex-shrink:0;justify-content:center;align-items:center;display:flex}.art-controls .art-control .art-icon{height:var(--art-control-icon-size);width:var(--art-control-icon-size);transform:scale(var(--art-control-icon-scale));transition:transform var(--art-transition-duration)ease}.art-controls .art-control .art-icon:active{transform:scale(calc(var(--art-control-icon-scale)*.8))}.art-controls .art-control:hover{opacity:1}.art-control-volume{position:relative}.art-control-volume .art-volume-panel{text-align:center;cursor:default;opacity:0;pointer-events:none;left:0;right:0;bottom:var(--art-control-height);width:var(--art-control-height);height:var(--art-volume-height);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;padding:0 5px;font-size:12px;display:flex;position:absolute;transform:translateY(10px)}.art-control-volume .art-volume-panel .art-volume-inner{border-radius:var(--art-border-radius);background-color:var(--art-widget-background);flex-direction:column;align-items:center;gap:10px;width:100%;height:100%;padding:10px 0 12px;display:flex}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider{cursor:pointer;flex:1;justify-content:center;width:100%;display:flex;position:relative}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle{border-radius:var(--art-border-radius);background-color:#ffffff40;justify-content:center;width:2px;display:flex;position:relative;overflow:hidden}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle .art-volume-loaded{z-index:0;background-color:var(--art-theme);width:100%;height:100%;position:absolute;inset:0}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-indicator{width:var(--art-volume-handle-size);height:var(--art-volume-handle-size);margin-top:calc(var(--art-volume-handle-size)/-2);background-color:var(--art-theme);transition:transform var(--art-transition-duration)ease;border-radius:100%;flex-shrink:0;position:absolute;transform:scale(1)}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider:active .art-volume-indicator{transform:scale(.9)}.art-control-volume:hover .art-volume-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.art-video-player .art-notice{z-index:80;width:100%;height:auto;padding:var(--art-padding);pointer-events:none;display:none;position:absolute;inset:0 0 auto}.art-video-player .art-notice .art-notice-inner{border-radius:var(--art-border-radius);background-color:var(--art-tip-background);padding:5px;line-height:1;display:inline-flex}.art-video-player.art-notice-show .art-notice{display:flex}.art-video-player .art-contextmenus{z-index:120;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);min-width:var(--art-contextmenus-min-width);flex-direction:column;padding:5px 0;font-size:12px;display:none;position:absolute}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;border-bottom:1px solid #ffffff1a;padding:10px 15px;display:flex}.art-video-player .art-contextmenus .art-contextmenu span{padding:0 8px}.art-video-player .art-contextmenus .art-contextmenu span:hover,.art-video-player .art-contextmenus .art-contextmenu span.art-current{color:var(--art-theme)}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:#ffffff1a}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus{display:flex}.art-video-player .art-settings{z-index:90;border-radius:var(--art-border-radius);max-height:var(--art-settings-max-height);left:auto;right:var(--art-padding);bottom:var(--art-control-height);transition:all var(--art-transition-duration)ease;background-color:var(--art-widget-background);flex-direction:column;display:none;position:absolute;overflow:hidden auto}.art-video-player .art-settings .art-setting-panel{flex-direction:column;display:none}.art-video-player .art-settings .art-setting-panel.art-current{display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item{cursor:pointer;transition:background-color var(--art-transition-duration)ease;justify-content:space-between;align-items:center;padding:0 5px;display:flex;overflow:hidden}.art-video-player .art-settings .art-setting-panel .art-setting-item:hover{background-color:#ffffff1a}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current{color:var(--art-theme)}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-icon-check{visibility:hidden;height:15px}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current .art-icon-check{visibility:visible}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left{flex-shrink:0;justify-content:center;align-items:center;gap:5px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left .art-setting-item-left-icon{height:var(--art-settings-icon-size);width:var(--art-settings-icon-size);justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right{justify-content:center;align-items:center;gap:5px;font-size:12px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-tooltip{white-space:nowrap;color:#ffffff80}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-icon{justify-content:center;align-items:center;min-width:32px;height:24px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-range{appearance:none;background-color:#fff3;outline:none;width:80px;height:3px}.art-video-player .art-settings .art-setting-panel .art-setting-item-back{border-bottom:1px solid #ffffff1a}.art-video-player.art-setting-show .art-settings{display:flex}.art-video-player .art-info{left:var(--art-padding);top:var(--art-padding);z-index:100;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);padding:10px;font-size:12px;display:none;position:absolute}.art-video-player .art-info .art-info-panel{flex-direction:column;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item{align-items:center;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item .art-info-title{text-align:right;width:100px}.art-video-player .art-info .art-info-panel .art-info-item .art-info-content{text-overflow:ellipsis;white-space:nowrap;user-select:all;width:250px;overflow:hidden}.art-video-player .art-info .art-info-close{cursor:pointer;position:absolute;top:5px;right:5px}.art-video-player.art-info-show .art-info{display:flex}.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio]{overflow:hidden}.art-video-player[data-aspect-ratio] .art-video{object-fit:fill;box-sizing:content-box}.art-fullscreen{--art-progress-height:8px;--art-indicator-size:20px;--art-control-height:60px;--art-control-icon-scale:1.3}.art-fullscreen-web{--art-progress-height:8px;--art-indicator-size:20px;--art-control-height:60px;--art-control-icon-scale:1.3;z-index:var(--art-fullscreen-web-index);width:100%;height:100%;position:fixed;inset:0}.art-mini-popup{z-index:9999;border-radius:var(--art-border-radius);cursor:move;user-select:none;background:#000;width:320px;height:180px;transition:opacity .2s;position:fixed;overflow:hidden;box-shadow:0 0 5px #00000080}.art-mini-popup svg{fill:#fff}.art-mini-popup .art-video{pointer-events:none}.art-mini-popup .art-mini-close{z-index:20;cursor:pointer;opacity:0;transition:opacity .2s;position:absolute;top:10px;right:10px}.art-mini-popup .art-mini-state{z-index:30;pointer-events:none;opacity:0;background-color:#00000040;justify-content:center;align-items:center;width:100%;height:100%;transition:opacity .2s;display:flex;position:absolute;inset:0}.art-mini-popup .art-mini-state .art-icon{opacity:.75;cursor:pointer;pointer-events:auto;transition:transform .2s;transform:scale(3)}.art-mini-popup .art-mini-state .art-icon:active{transform:scale(2.5)}.art-mini-popup.art-mini-dragging{opacity:.9}.art-mini-popup:hover .art-mini-close,.art-mini-popup:hover .art-mini-state{opacity:1}.art-video-player[data-flip=horizontal] .art-video{transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{transform:scaleY(-1)}.art-video-player .art-layer-lock{height:var(--art-lock-size);width:var(--art-lock-size);top:50%;left:var(--art-padding);background-color:var(--art-tip-background);border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;transform:translateY(-50%)}.art-video-player .art-layer-auto-playback{border-radius:var(--art-border-radius);left:var(--art-padding);bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);background-color:var(--art-widget-background);align-items:center;gap:10px;padding:10px;line-height:1;display:none;position:absolute}.art-video-player .art-layer-auto-playback .art-auto-playback-close{cursor:pointer;justify-content:center;align-items:center;display:flex}.art-video-player .art-layer-auto-playback .art-auto-playback-close svg{width:15px;height:15px;fill:var(--art-theme)}.art-video-player .art-layer-auto-playback .art-auto-playback-jump{color:var(--art-theme);cursor:pointer}.art-video-player.art-lock .art-subtitle{bottom:var(--art-subtitle-bottom)!important}.art-video-player.art-mini-progress-bar .art-bottom,.art-video-player.art-lock .art-bottom{opacity:1;background-image:none;padding:0}.art-video-player.art-mini-progress-bar .art-bottom .art-controls,.art-video-player.art-lock .art-bottom .art-controls,.art-video-player.art-mini-progress-bar .art-bottom .art-progress,.art-video-player.art-lock .art-bottom .art-progress{transform:translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height)/4))}.art-video-player.art-mini-progress-bar .art-bottom .art-progress-indicator,.art-video-player.art-lock .art-bottom .art-progress-indicator{display:none!important}.art-video-player.art-control-show .art-layer-lock{display:flex}.art-control-selector{justify-content:center;display:flex;position:relative}.art-control-selector .art-selector-list{text-align:center;border-radius:var(--art-border-radius);opacity:0;pointer-events:none;bottom:var(--art-control-height);max-height:var(--art-selector-max-height);background-color:var(--art-widget-background);transition:all var(--art-transition-duration)ease;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden auto;transform:translateY(10px)}.art-control-selector .art-selector-list .art-selector-item{flex-shrink:0;justify-content:center;align-items:center;width:100%;padding:10px 15px;line-height:1;display:flex}.art-control-selector .art-selector-list .art-selector-item:hover{background-color:#ffffff1a}.art-control-selector .art-selector-list .art-selector-item:hover,.art-control-selector .art-selector-list .art-selector-item.art-current{color:var(--art-theme)}.art-control-selector:hover .art-selector-list{opacity:1;pointer-events:auto;transform:translateY(0)}[class*=hint--]{font-style:normal;display:inline-block;position:relative}[class*=hint--]:before,[class*=hint--]:after{visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;transition:all .3s;position:absolute;transform:translate(0,0)}[class*=hint--]:hover:before,[class*=hint--]:hover:after{visibility:visible;opacity:1;transition-delay:.1s}[class*=hint--]:before{content:"";z-index:1000001;background:0 0;border:6px solid #0000;position:absolute}[class*=hint--]:after{color:#fff;white-space:nowrap;background:#000;padding:8px 10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:12px}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label=""]:before,[aria-label=""]:after,[data-hint=""]:before,[data-hint=""]:after{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#000}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#000}.hint--left:before{border-left-color:#000}.hint--right:before{border-right-color:#000}.hint--top:before{margin-bottom:-11px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:before{left:calc(50% - 6px)}.hint--top:after{transform:translate(-50%)}.hint--top:hover:before{transform:translateY(-8px)}.hint--top:hover:after{transform:translate(-50%)translateY(-8px)}.hint--bottom:before{margin-top:-11px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:before{left:calc(50% - 6px)}.hint--bottom:after{transform:translate(-50%)}.hint--bottom:hover:before{transform:translateY(8px)}.hint--bottom:hover:after{transform:translate(-50%)translateY(8px)}.hint--right:before{margin-bottom:-6px;margin-left:-11px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{bottom:50%;left:100%}.hint--right:hover:before,.hint--right:hover:after{transform:translate(8px)}.hint--left:before{margin-bottom:-6px;margin-right:-11px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{bottom:50%;right:100%}.hint--left:hover:before,.hint--left:hover:after{transform:translate(-8px)}.hint--top-left:before{margin-bottom:-11px}.hint--top-left:before,.hint--top-left:after{bottom:100%;left:50%}.hint--top-left:before{left:calc(50% - 6px)}.hint--top-left:after{margin-left:12px;transform:translate(-100%)}.hint--top-left:hover:before{transform:translateY(-8px)}.hint--top-left:hover:after{transform:translate(-100%)translateY(-8px)}.hint--top-right:before{margin-bottom:-11px}.hint--top-right:before,.hint--top-right:after{bottom:100%;left:50%}.hint--top-right:before{left:calc(50% - 6px)}.hint--top-right:after{margin-left:-12px;transform:translate(0)}.hint--top-right:hover:before,.hint--top-right:hover:after{transform:translateY(-8px)}.hint--bottom-left:before{margin-top:-11px}.hint--bottom-left:before,.hint--bottom-left:after{top:100%;left:50%}.hint--bottom-left:before{left:calc(50% - 6px)}.hint--bottom-left:after{margin-left:12px;transform:translate(-100%)}.hint--bottom-left:hover:before{transform:translateY(8px)}.hint--bottom-left:hover:after{transform:translate(-100%)translateY(8px)}.hint--bottom-right:before{margin-top:-11px}.hint--bottom-right:before,.hint--bottom-right:after{top:100%;left:50%}.hint--bottom-right:before{left:calc(50% - 6px)}.hint--bottom-right:after{margin-left:-12px;transform:translate(0)}.hint--bottom-right:hover:before,.hint--bottom-right:hover:after{transform:translateY(8px)}.hint--small:after,.hint--medium:after,.hint--large:after{white-space:normal;word-wrap:break-word;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}[class*=hint--]:after{text-shadow:0 -1px #000;box-shadow:4px 4px 8px #0000004d}.hint--error:after{text-shadow:0 -1px #592726;background-color:#b34e4d}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{text-shadow:0 -1px #6c5328;background-color:#c09854}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{text-shadow:0 -1px #1a3c4d;background-color:#3986ac}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{text-shadow:0 -1px #1a321a;background-color:#458746}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{transform:translateY(-8px)}.hint--always.hint--top:after{transform:translate(-50%)translateY(-8px)}.hint--always.hint--top-left:before{transform:translateY(-8px)}.hint--always.hint--top-left:after{transform:translate(-100%)translateY(-8px)}.hint--always.hint--top-right:before,.hint--always.hint--top-right:after{transform:translateY(-8px)}.hint--always.hint--bottom:before{transform:translateY(8px)}.hint--always.hint--bottom:after{transform:translate(-50%)translateY(8px)}.hint--always.hint--bottom-left:before{transform:translateY(8px)}.hint--always.hint--bottom-left:after{transform:translate(-100%)translateY(8px)}.hint--always.hint--bottom-right:before,.hint--always.hint--bottom-right:after{transform:translateY(8px)}.hint--always.hint--left:before,.hint--always.hint--left:after{transform:translate(-8px)}.hint--always.hint--right:before,.hint--always.hint--right:after{transform:translate(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:before,.hint--no-animate:after{transition-duration:0s}.hint--bounce:before,.hint--bounce:after{-webkit-transition:opacity .3s,visibility .3s,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s,visibility .3s,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s,visibility .3s,transform .3s cubic-bezier(.71,1.7,.77,1.24)}.hint--no-shadow:before,.hint--no-shadow:after{text-shadow:initial;box-shadow:initial}.hint--no-arrow:before{display:none}.art-video-player.art-mobile{--art-bottom-gap:10px;--art-control-height:38px;--art-control-icon-scale:1;--art-state-size:60px;--art-settings-max-height:180px;--art-selector-max-height:180px;--art-indicator-scale:1;--art-control-opacity:1}.art-video-player.art-mobile .art-controls-left{margin-left:calc(var(--art-padding)/-1)}.art-video-player.art-mobile .art-controls-right{margin-right:calc(var(--art-padding)/-1)}'},{}],g7VGh:[function(e,t,n,r){t.exports=(function(){function i(p){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(p)}var a=Object.prototype.toString,s=function(p){if(p===void 0)return"undefined";if(p===null)return"null";var v=i(p);if(v==="boolean")return"boolean";if(v==="string")return"string";if(v==="number")return"number";if(v==="symbol")return"symbol";if(v==="function")return l(p)==="GeneratorFunction"?"generatorfunction":"function";if(Array.isArray?Array.isArray(p):p instanceof Array)return"array";if(p.constructor&&typeof p.constructor.isBuffer=="function"&&p.constructor.isBuffer(p))return"buffer";if((function(g){try{if(typeof g.length=="number"&&typeof g.callee=="function")return!0}catch(y){if(y.message.indexOf("callee")!==-1)return!0}return!1})(p))return"arguments";if(p instanceof Date||typeof p.toDateString=="function"&&typeof p.getDate=="function"&&typeof p.setDate=="function")return"date";if(p instanceof Error||typeof p.message=="string"&&p.constructor&&typeof p.constructor.stackTraceLimit=="number")return"error";if(p instanceof RegExp||typeof p.flags=="string"&&typeof p.ignoreCase=="boolean"&&typeof p.multiline=="boolean"&&typeof p.global=="boolean")return"regexp";switch(l(p)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(typeof p.throw=="function"&&typeof p.return=="function"&&typeof p.next=="function")return"generator";switch(v=a.call(p)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return v.slice(8,-1).toLowerCase().replace(/\s/g,"")};function l(p){return p.constructor?p.constructor.name:null}function c(p,v){var g=2","license":"MIT","homepage":"https://artplayer.org","repository":{"type":"git","url":"git+https://github.com/zhw2590582/ArtPlayer.git"},"bugs":{"url":"https://github.com/zhw2590582/ArtPlayer/issues"},"keywords":["html5","video","player"],"exports":{".":{"types":"./types/artplayer.d.ts","import":"./dist/artplayer.mjs","require":"./dist/artplayer.js"},"./legacy":{"types":"./types/artplayer.d.ts","import":"./dist/artplayer.legacy.js","require":"./dist/artplayer.legacy.js"},"./i18n/*":{"types":"./types/i18n.d.ts","import":"./dist/i18n/*.mjs","require":"./dist/i18n/*.js"}},"main":"./dist/artplayer.js","module":"./dist/artplayer.mjs","types":"./types/artplayer.d.ts","typesVersions":{"*":{"i18n/*":["types/i18n.d.ts"],"legacy":["types/artplayer.d.ts"]}},"legacy":"./dist/artplayer.legacy.js","browserslist":"last 1 Chrome version","dependencies":{"option-validator":"^2.0.6"}}')},{}],eJfh8:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default={properties:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],prototypes:["width","height","videoWidth","videoHeight","poster","webkitDecodedFrameCount","webkitDroppedFrameCount","playsInline","webkitSupportsFullscreen","webkitDisplayingFullscreen","onenterpictureinpicture","onleavepictureinpicture","disablePictureInPicture","cancelVideoFrameCallback","requestVideoFrameCallback","getVideoPlaybackQuality","requestPictureInPicture","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen"]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],loqXi:[function(e,t,n,r){n.interopDefault=function(i){return i&&i.__esModule?i:{default:i}},n.defineInteropFlag=function(i){Object.defineProperty(i,"__esModule",{value:!0})},n.exportAll=function(i,a){return Object.keys(i).forEach(function(s){s==="default"||s==="__esModule"||Object.prototype.hasOwnProperty.call(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:function(){return i[s]}})}),a},n.export=function(i,a,s){Object.defineProperty(i,a,{enumerable:!0,get:s})}},{}],"9zso8":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("../utils/component"),l=i.interopDefault(s),c=e("./aspectRatio"),d=i.interopDefault(c),h=e("./close"),p=i.interopDefault(h),v=e("./flip"),g=i.interopDefault(v),y=e("./info"),S=i.interopDefault(y),k=e("./playbackRate"),C=i.interopDefault(k),x=e("./version"),E=i.interopDefault(x);class _ extends l.default{constructor(D){super(D),this.name="contextmenu",this.$parent=D.template.$contextmenu,a.isMobile||this.init()}init(){let{option:D,proxy:P,template:{$player:M,$contextmenu:O}}=this.art;D.playbackRate&&this.add((0,C.default)({name:"playbackRate",index:10})),D.aspectRatio&&this.add((0,d.default)({name:"aspectRatio",index:20})),D.flip&&this.add((0,g.default)({name:"flip",index:30})),this.add((0,S.default)({name:"info",index:40})),this.add((0,E.default)({name:"version",index:50})),this.add((0,p.default)({name:"close",index:60}));for(let L=0;L{if(!this.art.constructor.CONTEXTMENU)return;L.preventDefault(),this.show=!0;let B=L.clientX,j=L.clientY,{height:H,width:U,left:K,top:Y}=(0,a.getRect)(M),{height:ie,width:te}=(0,a.getRect)(O),W=B-K,q=j-Y;B+te>K+U&&(W=U-te),j+ie>Y+H&&(q=H-ie),(0,a.setStyles)(O,{top:`${q}px`,left:`${W}px`})}),P(M,"click",L=>{(0,a.includeFromEvent)(L,O)||(this.show=!1)}),this.art.on("blur",()=>{this.show=!1})}}n.default=_},{"../utils":"aBlEo","../utils/component":"idCEj","./aspectRatio":"6XHP2","./close":"eF6AX","./flip":"7Wg1P","./info":"fjRnU","./playbackRate":"hm1DY","./version":"aJBeL","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aBlEo:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./compatibility");i.exportAll(a,n);var s=e("./dom");i.exportAll(s,n);var l=e("./error");i.exportAll(l,n);var c=e("./file");i.exportAll(c,n);var d=e("./format");i.exportAll(d,n);var h=e("./property");i.exportAll(h,n);var p=e("./subtitle");i.exportAll(p,n);var v=e("./time");i.exportAll(v,n)},{"./compatibility":"jg0yq","./dom":"eANXw","./error":"4FwTI","./file":"i2JbS","./format":"dy9GH","./property":"jY49c","./subtitle":"ke7ox","./time":"f7gsx","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jg0yq:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"userAgent",()=>a),i.export(n,"isSafari",()=>s),i.export(n,"isIOS",()=>l),i.export(n,"isIOS13",()=>c),i.export(n,"isMobile",()=>d),i.export(n,"isBrowser",()=>h);let a=globalThis?.CUSTOM_USER_AGENT??(typeof navigator<"u"?navigator.userAgent:""),s=/^(?:(?!chrome|android).)*safari/i.test(a),l=/iPad|iPhone|iPod/i.test(a)&&!window.MSStream,c=l||a.includes("Macintosh")&&navigator.maxTouchPoints>=1,d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)||c,h=typeof window<"u"&&typeof document<"u"},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eANXw:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"query",()=>s),i.export(n,"queryAll",()=>l),i.export(n,"addClass",()=>c),i.export(n,"removeClass",()=>d),i.export(n,"hasClass",()=>h),i.export(n,"append",()=>p),i.export(n,"remove",()=>v),i.export(n,"setStyle",()=>g),i.export(n,"setStyles",()=>y),i.export(n,"getStyle",()=>S),i.export(n,"siblings",()=>k),i.export(n,"inverseClass",()=>C),i.export(n,"tooltip",()=>x),i.export(n,"isInViewport",()=>E),i.export(n,"includeFromEvent",()=>_),i.export(n,"replaceElement",()=>T),i.export(n,"createElement",()=>D),i.export(n,"getIcon",()=>P),i.export(n,"setStyleText",()=>M),i.export(n,"supportsFlex",()=>O),i.export(n,"getRect",()=>L),i.export(n,"loadImg",()=>B),i.export(n,"getComposedPath",()=>j);var a=e("./compatibility");function s(H,U=document){return U.querySelector(H)}function l(H,U=document){return Array.from(U.querySelectorAll(H))}function c(H,U){return H.classList.add(U)}function d(H,U){return H.classList.remove(U)}function h(H,U){return H.classList.contains(U)}function p(H,U){return U instanceof Element?H.appendChild(U):H.insertAdjacentHTML("beforeend",String(U)),H.lastElementChild||H.lastChild}function v(H){return H.parentNode.removeChild(H)}function g(H,U,K){return H.style[U]=K,H}function y(H,U){for(let K in U)g(H,K,U[K]);return H}function S(H,U,K=!0){let Y=window.getComputedStyle(H,null).getPropertyValue(U);return K?Number.parseFloat(Y):Y}function k(H){return Array.from(H.parentElement.children).filter(U=>U!==H)}function C(H,U){k(H).forEach(K=>d(K,U)),c(H,U)}function x(H,U,K="top"){a.isMobile||(H.setAttribute("aria-label",U),c(H,"hint--rounded"),c(H,`hint--${K}`))}function E(H,U=0){let K=H.getBoundingClientRect(),Y=window.innerHeight||document.documentElement.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth,te=K.top-U<=Y&&K.top+K.height+U>=0,W=K.left-U<=ie+U&&K.left+K.width+U>=0;return te&&W}function _(H,U){return j(H).includes(U)}function T(H,U){return U.parentNode.replaceChild(H,U),H}function D(H){return document.createElement(H)}function P(H="",U=""){let K=D("i");return c(K,"art-icon"),c(K,`art-icon-${H}`),p(K,U),K}function M(H,U){let K=document.getElementById(H);K||((K=document.createElement("style")).id=H,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{document.head.appendChild(K)}):(document.head||document.documentElement).appendChild(K)),K.textContent=U}function O(){let H=document.createElement("div");return H.style.display="flex",H.style.display==="flex"}function L(H){return H.getBoundingClientRect()}function B(H,U){return new Promise((K,Y)=>{let ie=new Image;ie.onload=function(){if(U&&U!==1){let te=document.createElement("canvas"),W=te.getContext("2d");te.width=ie.width*U,te.height=ie.height*U,W.drawImage(ie,0,0,te.width,te.height),te.toBlob(q=>{let Q=URL.createObjectURL(q),se=new Image;se.onload=function(){K(se)},se.onerror=function(){URL.revokeObjectURL(Q),Y(Error(`Image load failed: ${H}`))},se.src=Q})}else K(ie)},ie.onerror=function(){Y(Error(`Image load failed: ${H}`))},ie.src=H})}function j(H){if(H.composedPath)return H.composedPath();let U=[],K=H.target;for(;K;)U.push(K),K=K.parentNode;return U.includes(window)||window===void 0||U.push(window),U}},{"./compatibility":"jg0yq","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4FwTI":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"ArtPlayerError",()=>a),i.export(n,"errorHandle",()=>s);class a extends Error{constructor(c,d){super(c),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,d||this.constructor),this.name="ArtPlayerError"}}function s(l,c){if(!l)throw new a(c);return l}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],i2JbS:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s,l){let c=document.createElement("a");c.style.display="none",c.href=s,c.download=l,document.body.appendChild(c),c.click(),document.body.removeChild(c)}i.defineInteropFlag(n),i.export(n,"getExt",()=>function s(l){return l.includes("?")?s(l.split("?")[0]):l.includes("#")?s(l.split("#")[0]):l.trim().toLowerCase().split(".").pop()}),i.export(n,"download",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dy9GH:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(h,p,v){return Math.max(Math.min(h,Math.max(p,v)),Math.min(p,v))}function s(h){return h.charAt(0).toUpperCase()+h.slice(1)}function l(h){if(!h)return"00:00";let p=Math.floor(h/3600),v=Math.floor((h-3600*p)/60),g=Math.floor(h-3600*p-60*v);return(p>0?[p,v,g]:[v,g]).map(y=>y<10?`0${y}`:String(y)).join(":")}function c(h){return h.replace(/[&<>'"]/g,p=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[p]||p)}function d(h){let p={"&":"&","<":"<",">":">","'":"'",""":'"'},v=RegExp(`(${Object.keys(p).join("|")})`,"g");return h.replace(v,g=>p[g]||g)}i.defineInteropFlag(n),i.export(n,"clamp",()=>a),i.export(n,"capitalize",()=>s),i.export(n,"secondToTime",()=>l),i.export(n,"escape",()=>c),i.export(n,"unescape",()=>d)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jY49c:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"def",()=>a),i.export(n,"has",()=>l),i.export(n,"get",()=>c),i.export(n,"mergeDeep",()=>function d(...h){let p=v=>v&&typeof v=="object"&&!Array.isArray(v);return h.reduce((v,g)=>(Object.keys(g).forEach(y=>{let S=v[y],k=g[y];Array.isArray(S)&&Array.isArray(k)?v[y]=S.concat(...k):p(S)&&p(k)?v[y]=d(S,k):v[y]=k}),v),{})});let a=Object.defineProperty,{hasOwnProperty:s}=Object.prototype;function l(d,h){return s.call(d,h)}function c(d,h){return Object.getOwnPropertyDescriptor(d,h)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ke7ox:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(c){return`WEBVTT \r + */(function(e,t,n,r,i,a,s,l){var c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},d=typeof c[r]=="function"&&c[r],h=d.i||{},p=d.cache||{},v=typeof module<"u"&&typeof module.require=="function"&&module.require.bind(module);function g(k,w){if(!p[k]){if(!e[k]){if(i[k])return i[k];var x=typeof c[r]=="function"&&c[r];if(!w&&x)return x(k,!0);if(d)return d(k,!0);if(v&&typeof k=="string")return v(k);var E=Error("Cannot find module '"+k+"'");throw E.code="MODULE_NOT_FOUND",E}T.resolve=function(D){var P=e[k][1][D];return P??D},T.cache={};var _=p[k]=new g.Module(k);e[k][0].call(_.exports,T,_,_.exports,c)}return p[k].exports;function T(D){var P=T.resolve(D);return P===!1?{}:g(P)}}g.isParcelRequire=!0,g.Module=function(k){this.id=k,this.bundle=g,this.require=v,this.exports={}},g.modules=e,g.cache=p,g.parent=d,g.distDir=void 0,g.publicUrl=void 0,g.devServer=void 0,g.i=h,g.register=function(k,w){e[k]=[function(x,E){E.exports=w},{}]},Object.defineProperty(g,"root",{get:function(){return c[r]}}),c[r]=g;for(var y=0;yct.call(this,this)),Ke.DEBUG){let xt=Rt=>console.log(`[ART.${this.id}] -> ${Rt}`);xt(`Version@${Ke.version}`);for(let Rt=0;Rtxt(`Event@${Ht.type}`))}Ye.push(this)}static get instances(){return Ye}static get version(){return d.version}static get config(){return p.default}static get utils(){return _e}static get scheme(){return q.default}static get Emitter(){return ge.default}static get validator(){return c.default}static get kindOf(){return c.default.kindOf}static get html(){return Ie.default.html}static get option(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,gesture:!0,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,proxy:void 0,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number:60,column:10,width:0,height:0,scale:1},subtitle:{url:"",type:"",style:{},name:"",escape:!0,encoding:"utf-8",onVttLoad:ft=>ft},moreVideoAttr:{controls:!1,preload:_e.isSafari?"auto":"metadata"},i18n:{},icons:{},cssVar:{},customType:{},lang:navigator?.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}get video(){return this.template.$video}destroy(ft=!0){Ke.REMOVE_SRC_WHEN_DESTROY&&this.video.removeAttribute("src"),this.events.destroy(),this.template.destroy(ft),Ye.splice(Ye.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}n.default=Ke,Ke.STYLE=s.default,Ke.DEBUG=!1,Ke.CONTEXTMENU=!0,Ke.NOTICE_TIME=2e3,Ke.SETTING_WIDTH=250,Ke.SETTING_ITEM_WIDTH=200,Ke.SETTING_ITEM_HEIGHT=35,Ke.RESIZE_TIME=200,Ke.SCROLL_TIME=200,Ke.SCROLL_GAP=50,Ke.AUTO_PLAYBACK_MAX=10,Ke.AUTO_PLAYBACK_MIN=5,Ke.AUTO_PLAYBACK_TIMEOUT=3e3,Ke.RECONNECT_TIME_MAX=5,Ke.RECONNECT_SLEEP_TIME=1e3,Ke.CONTROL_HIDE_TIME=3e3,Ke.DBCLICK_TIME=300,Ke.DBCLICK_FULLSCREEN=!0,Ke.MOBILE_DBCLICK_PLAY=!0,Ke.MOBILE_CLICK_PLAY=!1,Ke.AUTO_ORIENTATION_TIME=200,Ke.INFO_LOOP_TIME=1e3,Ke.FAST_FORWARD_VALUE=3,Ke.FAST_FORWARD_TIME=1e3,Ke.TOUCH_MOVE_RATIO=.5,Ke.VOLUME_STEP=.1,Ke.SEEK_STEP=5,Ke.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2],Ke.ASPECT_RATIO=["default","4:3","16:9"],Ke.FLIP=["normal","horizontal","vertical"],Ke.FULLSCREEN_WEB_IN_BODY=!1,Ke.LOG_VERSION=!0,Ke.USE_RAF=!1,Ke.REMOVE_SRC_WHEN_DESTROY=!0,_e.isBrowser&&(window.Artplayer=Ke,_e.setStyleText("artplayer-style",s.default),setTimeout(()=>{Ke.LOG_VERSION&&console.log(`%c ArtPlayer %c ${Ke.version} %c https://artplayer.org`,"color: #fff; background: #5f5f5f","color: #fff; background: #4bc729","")},100))},{"bundle-text:./style/index.less":"2wh8D","option-validator":"g7VGh","../package.json":"lh3R5","./config":"eJfh8","./contextmenu":"9zso8","./control":"dp1yk","./events":"jmVSD","./hotkey":"dswts","./i18n":"d9ktO","./icons":"fFHY0","./info":"kZ0F8","./layer":"j9lbi","./loading":"bMjWd","./mask":"k1nkQ","./notice":"fPVaU","./player":"uR0Sw","./plugins":"cjxJL","./scheme":"biLjm","./setting":"bwLGT","./storage":"kwqbK","./subtitle":"k5613","./template":"fwOA1","./utils":"aBlEo","./utils/emitter":"4NM7P","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"2wh8D":[function(e,t,n,r){t.exports='.art-video-player{--art-theme:red;--art-font-color:#fff;--art-background-color:#000;--art-text-shadow-color:#00000080;--art-transition-duration:.2s;--art-padding:10px;--art-border-radius:3px;--art-progress-height:6px;--art-progress-color:#ffffff40;--art-hover-color:#ffffff40;--art-loaded-color:#ffffff40;--art-state-size:80px;--art-state-opacity:.8;--art-bottom-height:100px;--art-bottom-offset:20px;--art-bottom-gap:5px;--art-highlight-width:8px;--art-highlight-color:#ffffff80;--art-control-height:46px;--art-control-opacity:.75;--art-control-icon-size:36px;--art-control-icon-scale:1.1;--art-volume-height:120px;--art-volume-handle-size:14px;--art-lock-size:36px;--art-indicator-scale:0;--art-indicator-size:16px;--art-fullscreen-web-index:9999;--art-settings-icon-size:24px;--art-settings-max-height:300px;--art-selector-max-height:300px;--art-contextmenus-min-width:250px;--art-subtitle-font-size:20px;--art-subtitle-gap:5px;--art-subtitle-bottom:15px;--art-subtitle-border:#000;--art-widget-background:#000000d9;--art-tip-background:#000000b3;--art-scrollbar-size:4px;--art-scrollbar-background:#ffffff40;--art-scrollbar-background-hover:#ffffff80;--art-mini-progress-height:2px}.art-bg-cover{background-position:50%;background-repeat:no-repeat;background-size:cover}.art-bottom-gradient{background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x}.art-backdrop-filter{backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.art-video-player{zoom:1;text-align:left;user-select:none;box-sizing:border-box;width:100%;height:100%;color:var(--art-font-color);background-color:var(--art-background-color);text-shadow:0 0 2px var(--art-text-shadow-color);-webkit-tap-highlight-color:#0000;-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none;direction:ltr;outline:0;margin:0 auto;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft YaHei,Roboto,Arial,sans-serif;font-size:14px;line-height:1.3;position:relative}.art-video-player *,.art-video-player :before,.art-video-player :after{box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:var(--art-scrollbar-size);height:var(--art-scrollbar-size)}.art-video-player ::-webkit-scrollbar-thumb{background-color:var(--art-scrollbar-background)}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:var(--art-scrollbar-background-hover)}.art-video-player img{vertical-align:top;max-width:100%}.art-video-player svg{fill:var(--art-font-color)}.art-video-player a{color:var(--art-font-color);text-decoration:none}.art-icon{justify-content:center;align-items:center;line-height:1;display:flex}.art-video-player.art-backdrop .art-contextmenus,.art-video-player.art-backdrop .art-info,.art-video-player.art-backdrop .art-settings,.art-video-player.art-backdrop .art-layer-auto-playback,.art-video-player.art-backdrop .art-selector-list,.art-video-player.art-backdrop .art-volume-inner{backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-video{z-index:10;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.art-poster{z-index:11;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;width:100%;height:100%;position:absolute;inset:0}.art-video-player .art-subtitle{z-index:20;text-align:center;pointer-events:none;justify-content:center;align-items:center;gap:var(--art-subtitle-gap);width:100%;bottom:var(--art-subtitle-bottom);font-size:var(--art-subtitle-font-size);transition:bottom var(--art-transition-duration)ease;text-shadow:var(--art-subtitle-border)1px 0 1px,var(--art-subtitle-border)0 1px 1px,var(--art-subtitle-border)-1px 0 1px,var(--art-subtitle-border)0 -1px 1px,var(--art-subtitle-border)1px 1px 1px,var(--art-subtitle-border)-1px -1px 1px,var(--art-subtitle-border)1px -1px 1px,var(--art-subtitle-border)-1px 1px 1px;flex-direction:column;padding:0 5%;display:none;position:absolute}.art-video-player.art-subtitle-show .art-subtitle{display:flex}.art-video-player.art-control-show .art-subtitle{bottom:calc(var(--art-control-height) + var(--art-subtitle-bottom))}.art-danmuku{z-index:30;pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}.art-video-player .art-layers{z-index:40;pointer-events:none;width:100%;height:100%;display:none;position:absolute;inset:0}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:flex}.art-video-player .art-mask{z-index:50;pointer-events:none;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.art-video-player .art-mask .art-state{opacity:0;width:var(--art-state-size);height:var(--art-state-size);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;display:flex;transform:scale(2)}.art-video-player.art-mask-show .art-state{cursor:pointer;pointer-events:auto;opacity:var(--art-state-opacity);transform:scale(1)}.art-video-player.art-loading-show .art-state{display:none}.art-video-player .art-loading{z-index:70;pointer-events:none;justify-content:center;align-items:center;width:100%;height:100%;display:none;position:absolute;inset:0}.art-video-player.art-loading-show .art-loading{display:flex}.art-video-player .art-bottom{z-index:60;opacity:0;pointer-events:none;width:100%;height:100%;padding:0 var(--art-padding);transition:all var(--art-transition-duration)ease;background-size:100% var(--art-bottom-height);background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x;flex-direction:column;justify-content:flex-end;display:flex;position:absolute;inset:0;overflow:hidden}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-progress{transform:translateY(var(--art-bottom-offset));transition:transform var(--art-transition-duration)ease}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1}.art-video-player.art-control-show .art-bottom .art-controls,.art-video-player.art-hover .art-bottom .art-controls,.art-video-player.art-control-show .art-bottom .art-progress,.art-video-player.art-hover .art-bottom .art-progress{transform:translateY(0)}.art-bottom .art-progress{z-index:0;pointer-events:auto;padding-bottom:var(--art-bottom-gap);position:relative}.art-bottom .art-progress .art-control-progress{cursor:pointer;height:var(--art-progress-height);justify-content:center;align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner{width:100%;height:50%;transition:height var(--art-transition-duration)ease;background-color:var(--art-progress-color);align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-hover{z-index:0;background-color:var(--art-hover-color);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{z-index:10;background-color:var(--art-loaded-color);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{z-index:20;background-color:var(--art-theme);width:0%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{z-index:30;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{z-index:0;pointer-events:auto;width:100%;height:100%;transform:translateX(calc(var(--art-highlight-width)/-2));background-color:var(--art-highlight-color);position:absolute;inset:0 auto 0 0;width:var(--art-highlight-width)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{z-index:40;width:var(--art-indicator-size);height:var(--art-indicator-size);transform:scale(var(--art-indicator-scale));margin-left:calc(var(--art-indicator-size)/-2);transition:transform var(--art-transition-duration)ease;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;left:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator .art-icon{pointer-events:none;width:100%;height:100%}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:hover{transform:scale(1.2)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:active{transform:scale(1)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{z-index:50;border-radius:var(--art-border-radius);white-space:nowrap;background-color:var(--art-tip-background);padding:3px 5px;font-size:12px;line-height:1;display:none;position:absolute;top:-25px;left:0}.art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-bottom .art-progress .art-control-thumbnails{bottom:calc(var(--art-bottom-gap) + 10px);border-radius:var(--art-border-radius);pointer-events:none;background-color:var(--art-widget-background);display:none;position:absolute;left:0;box-shadow:0 1px 3px #0003,0 1px 2px -1px #0003}.art-bottom:hover .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{transform:scale(1)}.art-controls{z-index:10;pointer-events:auto;height:var(--art-control-height);justify-content:space-between;align-items:center;display:flex;position:relative}.art-controls .art-controls-left,.art-controls .art-controls-right{height:100%;display:flex}.art-controls .art-controls-center{flex:1;justify-content:center;align-items:center;height:100%;padding:0 10px;display:none}.art-controls .art-controls-right{justify-content:flex-end}.art-controls .art-control{cursor:pointer;white-space:nowrap;opacity:var(--art-control-opacity);min-height:var(--art-control-height);min-width:var(--art-control-height);transition:opacity var(--art-transition-duration)ease;flex-shrink:0;justify-content:center;align-items:center;display:flex}.art-controls .art-control .art-icon{height:var(--art-control-icon-size);width:var(--art-control-icon-size);transform:scale(var(--art-control-icon-scale));transition:transform var(--art-transition-duration)ease}.art-controls .art-control .art-icon:active{transform:scale(calc(var(--art-control-icon-scale)*.8))}.art-controls .art-control:hover{opacity:1}.art-control-volume{position:relative}.art-control-volume .art-volume-panel{text-align:center;cursor:default;opacity:0;pointer-events:none;left:0;right:0;bottom:var(--art-control-height);width:var(--art-control-height);height:var(--art-volume-height);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;padding:0 5px;font-size:12px;display:flex;position:absolute;transform:translateY(10px)}.art-control-volume .art-volume-panel .art-volume-inner{border-radius:var(--art-border-radius);background-color:var(--art-widget-background);flex-direction:column;align-items:center;gap:10px;width:100%;height:100%;padding:10px 0 12px;display:flex}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider{cursor:pointer;flex:1;justify-content:center;width:100%;display:flex;position:relative}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle{border-radius:var(--art-border-radius);background-color:#ffffff40;justify-content:center;width:2px;display:flex;position:relative;overflow:hidden}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle .art-volume-loaded{z-index:0;background-color:var(--art-theme);width:100%;height:100%;position:absolute;inset:0}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-indicator{width:var(--art-volume-handle-size);height:var(--art-volume-handle-size);margin-top:calc(var(--art-volume-handle-size)/-2);background-color:var(--art-theme);transition:transform var(--art-transition-duration)ease;border-radius:100%;flex-shrink:0;position:absolute;transform:scale(1)}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider:active .art-volume-indicator{transform:scale(.9)}.art-control-volume:hover .art-volume-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.art-video-player .art-notice{z-index:80;width:100%;height:auto;padding:var(--art-padding);pointer-events:none;display:none;position:absolute;inset:0 0 auto}.art-video-player .art-notice .art-notice-inner{border-radius:var(--art-border-radius);background-color:var(--art-tip-background);padding:5px;line-height:1;display:inline-flex}.art-video-player.art-notice-show .art-notice{display:flex}.art-video-player .art-contextmenus{z-index:120;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);min-width:var(--art-contextmenus-min-width);flex-direction:column;padding:5px 0;font-size:12px;display:none;position:absolute}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;border-bottom:1px solid #ffffff1a;padding:10px 15px;display:flex}.art-video-player .art-contextmenus .art-contextmenu span{padding:0 8px}.art-video-player .art-contextmenus .art-contextmenu span:hover,.art-video-player .art-contextmenus .art-contextmenu span.art-current{color:var(--art-theme)}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:#ffffff1a}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus{display:flex}.art-video-player .art-settings{z-index:90;border-radius:var(--art-border-radius);max-height:var(--art-settings-max-height);left:auto;right:var(--art-padding);bottom:var(--art-control-height);transition:all var(--art-transition-duration)ease;background-color:var(--art-widget-background);flex-direction:column;display:none;position:absolute;overflow:hidden auto}.art-video-player .art-settings .art-setting-panel{flex-direction:column;display:none}.art-video-player .art-settings .art-setting-panel.art-current{display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item{cursor:pointer;transition:background-color var(--art-transition-duration)ease;justify-content:space-between;align-items:center;padding:0 5px;display:flex;overflow:hidden}.art-video-player .art-settings .art-setting-panel .art-setting-item:hover{background-color:#ffffff1a}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current{color:var(--art-theme)}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-icon-check{visibility:hidden;height:15px}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current .art-icon-check{visibility:visible}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left{flex-shrink:0;justify-content:center;align-items:center;gap:5px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left .art-setting-item-left-icon{height:var(--art-settings-icon-size);width:var(--art-settings-icon-size);justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right{justify-content:center;align-items:center;gap:5px;font-size:12px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-tooltip{white-space:nowrap;color:#ffffff80}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-icon{justify-content:center;align-items:center;min-width:32px;height:24px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-range{appearance:none;background-color:#fff3;outline:none;width:80px;height:3px}.art-video-player .art-settings .art-setting-panel .art-setting-item-back{border-bottom:1px solid #ffffff1a}.art-video-player.art-setting-show .art-settings{display:flex}.art-video-player .art-info{left:var(--art-padding);top:var(--art-padding);z-index:100;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);padding:10px;font-size:12px;display:none;position:absolute}.art-video-player .art-info .art-info-panel{flex-direction:column;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item{align-items:center;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item .art-info-title{text-align:right;width:100px}.art-video-player .art-info .art-info-panel .art-info-item .art-info-content{text-overflow:ellipsis;white-space:nowrap;user-select:all;width:250px;overflow:hidden}.art-video-player .art-info .art-info-close{cursor:pointer;position:absolute;top:5px;right:5px}.art-video-player.art-info-show .art-info{display:flex}.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio]{overflow:hidden}.art-video-player[data-aspect-ratio] .art-video{object-fit:fill;box-sizing:content-box}.art-fullscreen{--art-progress-height:8px;--art-indicator-size:20px;--art-control-height:60px;--art-control-icon-scale:1.3}.art-fullscreen-web{--art-progress-height:8px;--art-indicator-size:20px;--art-control-height:60px;--art-control-icon-scale:1.3;z-index:var(--art-fullscreen-web-index);width:100%;height:100%;position:fixed;inset:0}.art-mini-popup{z-index:9999;border-radius:var(--art-border-radius);cursor:move;user-select:none;background:#000;width:320px;height:180px;transition:opacity .2s;position:fixed;overflow:hidden;box-shadow:0 0 5px #00000080}.art-mini-popup svg{fill:#fff}.art-mini-popup .art-video{pointer-events:none}.art-mini-popup .art-mini-close{z-index:20;cursor:pointer;opacity:0;transition:opacity .2s;position:absolute;top:10px;right:10px}.art-mini-popup .art-mini-state{z-index:30;pointer-events:none;opacity:0;background-color:#00000040;justify-content:center;align-items:center;width:100%;height:100%;transition:opacity .2s;display:flex;position:absolute;inset:0}.art-mini-popup .art-mini-state .art-icon{opacity:.75;cursor:pointer;pointer-events:auto;transition:transform .2s;transform:scale(3)}.art-mini-popup .art-mini-state .art-icon:active{transform:scale(2.5)}.art-mini-popup.art-mini-dragging{opacity:.9}.art-mini-popup:hover .art-mini-close,.art-mini-popup:hover .art-mini-state{opacity:1}.art-video-player[data-flip=horizontal] .art-video{transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{transform:scaleY(-1)}.art-video-player .art-layer-lock{height:var(--art-lock-size);width:var(--art-lock-size);top:50%;left:var(--art-padding);background-color:var(--art-tip-background);border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;transform:translateY(-50%)}.art-video-player .art-layer-auto-playback{border-radius:var(--art-border-radius);left:var(--art-padding);bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);background-color:var(--art-widget-background);align-items:center;gap:10px;padding:10px;line-height:1;display:none;position:absolute}.art-video-player .art-layer-auto-playback .art-auto-playback-close{cursor:pointer;justify-content:center;align-items:center;display:flex}.art-video-player .art-layer-auto-playback .art-auto-playback-close svg{width:15px;height:15px;fill:var(--art-theme)}.art-video-player .art-layer-auto-playback .art-auto-playback-jump{color:var(--art-theme);cursor:pointer}.art-video-player.art-lock .art-subtitle{bottom:var(--art-subtitle-bottom)!important}.art-video-player.art-mini-progress-bar .art-bottom,.art-video-player.art-lock .art-bottom{opacity:1;background-image:none;padding:0}.art-video-player.art-mini-progress-bar .art-bottom .art-controls,.art-video-player.art-lock .art-bottom .art-controls,.art-video-player.art-mini-progress-bar .art-bottom .art-progress,.art-video-player.art-lock .art-bottom .art-progress{transform:translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height)/4))}.art-video-player.art-mini-progress-bar .art-bottom .art-progress-indicator,.art-video-player.art-lock .art-bottom .art-progress-indicator{display:none!important}.art-video-player.art-control-show .art-layer-lock{display:flex}.art-control-selector{justify-content:center;display:flex;position:relative}.art-control-selector .art-selector-list{text-align:center;border-radius:var(--art-border-radius);opacity:0;pointer-events:none;bottom:var(--art-control-height);max-height:var(--art-selector-max-height);background-color:var(--art-widget-background);transition:all var(--art-transition-duration)ease;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden auto;transform:translateY(10px)}.art-control-selector .art-selector-list .art-selector-item{flex-shrink:0;justify-content:center;align-items:center;width:100%;padding:10px 15px;line-height:1;display:flex}.art-control-selector .art-selector-list .art-selector-item:hover{background-color:#ffffff1a}.art-control-selector .art-selector-list .art-selector-item:hover,.art-control-selector .art-selector-list .art-selector-item.art-current{color:var(--art-theme)}.art-control-selector:hover .art-selector-list{opacity:1;pointer-events:auto;transform:translateY(0)}[class*=hint--]{font-style:normal;display:inline-block;position:relative}[class*=hint--]:before,[class*=hint--]:after{visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;transition:all .3s;position:absolute;transform:translate(0,0)}[class*=hint--]:hover:before,[class*=hint--]:hover:after{visibility:visible;opacity:1;transition-delay:.1s}[class*=hint--]:before{content:"";z-index:1000001;background:0 0;border:6px solid #0000;position:absolute}[class*=hint--]:after{color:#fff;white-space:nowrap;background:#000;padding:8px 10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:12px}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label=""]:before,[aria-label=""]:after,[data-hint=""]:before,[data-hint=""]:after{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#000}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#000}.hint--left:before{border-left-color:#000}.hint--right:before{border-right-color:#000}.hint--top:before{margin-bottom:-11px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:before{left:calc(50% - 6px)}.hint--top:after{transform:translate(-50%)}.hint--top:hover:before{transform:translateY(-8px)}.hint--top:hover:after{transform:translate(-50%)translateY(-8px)}.hint--bottom:before{margin-top:-11px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:before{left:calc(50% - 6px)}.hint--bottom:after{transform:translate(-50%)}.hint--bottom:hover:before{transform:translateY(8px)}.hint--bottom:hover:after{transform:translate(-50%)translateY(8px)}.hint--right:before{margin-bottom:-6px;margin-left:-11px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{bottom:50%;left:100%}.hint--right:hover:before,.hint--right:hover:after{transform:translate(8px)}.hint--left:before{margin-bottom:-6px;margin-right:-11px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{bottom:50%;right:100%}.hint--left:hover:before,.hint--left:hover:after{transform:translate(-8px)}.hint--top-left:before{margin-bottom:-11px}.hint--top-left:before,.hint--top-left:after{bottom:100%;left:50%}.hint--top-left:before{left:calc(50% - 6px)}.hint--top-left:after{margin-left:12px;transform:translate(-100%)}.hint--top-left:hover:before{transform:translateY(-8px)}.hint--top-left:hover:after{transform:translate(-100%)translateY(-8px)}.hint--top-right:before{margin-bottom:-11px}.hint--top-right:before,.hint--top-right:after{bottom:100%;left:50%}.hint--top-right:before{left:calc(50% - 6px)}.hint--top-right:after{margin-left:-12px;transform:translate(0)}.hint--top-right:hover:before,.hint--top-right:hover:after{transform:translateY(-8px)}.hint--bottom-left:before{margin-top:-11px}.hint--bottom-left:before,.hint--bottom-left:after{top:100%;left:50%}.hint--bottom-left:before{left:calc(50% - 6px)}.hint--bottom-left:after{margin-left:12px;transform:translate(-100%)}.hint--bottom-left:hover:before{transform:translateY(8px)}.hint--bottom-left:hover:after{transform:translate(-100%)translateY(8px)}.hint--bottom-right:before{margin-top:-11px}.hint--bottom-right:before,.hint--bottom-right:after{top:100%;left:50%}.hint--bottom-right:before{left:calc(50% - 6px)}.hint--bottom-right:after{margin-left:-12px;transform:translate(0)}.hint--bottom-right:hover:before,.hint--bottom-right:hover:after{transform:translateY(8px)}.hint--small:after,.hint--medium:after,.hint--large:after{white-space:normal;word-wrap:break-word;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}[class*=hint--]:after{text-shadow:0 -1px #000;box-shadow:4px 4px 8px #0000004d}.hint--error:after{text-shadow:0 -1px #592726;background-color:#b34e4d}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{text-shadow:0 -1px #6c5328;background-color:#c09854}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{text-shadow:0 -1px #1a3c4d;background-color:#3986ac}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{text-shadow:0 -1px #1a321a;background-color:#458746}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{transform:translateY(-8px)}.hint--always.hint--top:after{transform:translate(-50%)translateY(-8px)}.hint--always.hint--top-left:before{transform:translateY(-8px)}.hint--always.hint--top-left:after{transform:translate(-100%)translateY(-8px)}.hint--always.hint--top-right:before,.hint--always.hint--top-right:after{transform:translateY(-8px)}.hint--always.hint--bottom:before{transform:translateY(8px)}.hint--always.hint--bottom:after{transform:translate(-50%)translateY(8px)}.hint--always.hint--bottom-left:before{transform:translateY(8px)}.hint--always.hint--bottom-left:after{transform:translate(-100%)translateY(8px)}.hint--always.hint--bottom-right:before,.hint--always.hint--bottom-right:after{transform:translateY(8px)}.hint--always.hint--left:before,.hint--always.hint--left:after{transform:translate(-8px)}.hint--always.hint--right:before,.hint--always.hint--right:after{transform:translate(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:before,.hint--no-animate:after{transition-duration:0s}.hint--bounce:before,.hint--bounce:after{-webkit-transition:opacity .3s,visibility .3s,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s,visibility .3s,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s,visibility .3s,transform .3s cubic-bezier(.71,1.7,.77,1.24)}.hint--no-shadow:before,.hint--no-shadow:after{text-shadow:initial;box-shadow:initial}.hint--no-arrow:before{display:none}.art-video-player.art-mobile{--art-bottom-gap:10px;--art-control-height:38px;--art-control-icon-scale:1;--art-state-size:60px;--art-settings-max-height:180px;--art-selector-max-height:180px;--art-indicator-scale:1;--art-control-opacity:1}.art-video-player.art-mobile .art-controls-left{margin-left:calc(var(--art-padding)/-1)}.art-video-player.art-mobile .art-controls-right{margin-right:calc(var(--art-padding)/-1)}'},{}],g7VGh:[function(e,t,n,r){t.exports=(function(){function i(p){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(p)}var a=Object.prototype.toString,s=function(p){if(p===void 0)return"undefined";if(p===null)return"null";var v=i(p);if(v==="boolean")return"boolean";if(v==="string")return"string";if(v==="number")return"number";if(v==="symbol")return"symbol";if(v==="function")return l(p)==="GeneratorFunction"?"generatorfunction":"function";if(Array.isArray?Array.isArray(p):p instanceof Array)return"array";if(p.constructor&&typeof p.constructor.isBuffer=="function"&&p.constructor.isBuffer(p))return"buffer";if((function(g){try{if(typeof g.length=="number"&&typeof g.callee=="function")return!0}catch(y){if(y.message.indexOf("callee")!==-1)return!0}return!1})(p))return"arguments";if(p instanceof Date||typeof p.toDateString=="function"&&typeof p.getDate=="function"&&typeof p.setDate=="function")return"date";if(p instanceof Error||typeof p.message=="string"&&p.constructor&&typeof p.constructor.stackTraceLimit=="number")return"error";if(p instanceof RegExp||typeof p.flags=="string"&&typeof p.ignoreCase=="boolean"&&typeof p.multiline=="boolean"&&typeof p.global=="boolean")return"regexp";switch(l(p)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(typeof p.throw=="function"&&typeof p.return=="function"&&typeof p.next=="function")return"generator";switch(v=a.call(p)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return v.slice(8,-1).toLowerCase().replace(/\s/g,"")};function l(p){return p.constructor?p.constructor.name:null}function c(p,v){var g=2","license":"MIT","homepage":"https://artplayer.org","repository":{"type":"git","url":"git+https://github.com/zhw2590582/ArtPlayer.git"},"bugs":{"url":"https://github.com/zhw2590582/ArtPlayer/issues"},"keywords":["html5","video","player"],"exports":{".":{"types":"./types/artplayer.d.ts","import":"./dist/artplayer.mjs","require":"./dist/artplayer.js"},"./legacy":{"types":"./types/artplayer.d.ts","import":"./dist/artplayer.legacy.js","require":"./dist/artplayer.legacy.js"},"./i18n/*":{"types":"./types/i18n.d.ts","import":"./dist/i18n/*.mjs","require":"./dist/i18n/*.js"}},"main":"./dist/artplayer.js","module":"./dist/artplayer.mjs","types":"./types/artplayer.d.ts","typesVersions":{"*":{"i18n/*":["types/i18n.d.ts"],"legacy":["types/artplayer.d.ts"]}},"legacy":"./dist/artplayer.legacy.js","browserslist":"last 1 Chrome version","dependencies":{"option-validator":"^2.0.6"}}')},{}],eJfh8:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default={properties:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],prototypes:["width","height","videoWidth","videoHeight","poster","webkitDecodedFrameCount","webkitDroppedFrameCount","playsInline","webkitSupportsFullscreen","webkitDisplayingFullscreen","onenterpictureinpicture","onleavepictureinpicture","disablePictureInPicture","cancelVideoFrameCallback","requestVideoFrameCallback","getVideoPlaybackQuality","requestPictureInPicture","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen"]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],loqXi:[function(e,t,n,r){n.interopDefault=function(i){return i&&i.__esModule?i:{default:i}},n.defineInteropFlag=function(i){Object.defineProperty(i,"__esModule",{value:!0})},n.exportAll=function(i,a){return Object.keys(i).forEach(function(s){s==="default"||s==="__esModule"||Object.prototype.hasOwnProperty.call(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:function(){return i[s]}})}),a},n.export=function(i,a,s){Object.defineProperty(i,a,{enumerable:!0,get:s})}},{}],"9zso8":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("../utils/component"),l=i.interopDefault(s),c=e("./aspectRatio"),d=i.interopDefault(c),h=e("./close"),p=i.interopDefault(h),v=e("./flip"),g=i.interopDefault(v),y=e("./info"),S=i.interopDefault(y),k=e("./playbackRate"),w=i.interopDefault(k),x=e("./version"),E=i.interopDefault(x);class _ extends l.default{constructor(D){super(D),this.name="contextmenu",this.$parent=D.template.$contextmenu,a.isMobile||this.init()}init(){let{option:D,proxy:P,template:{$player:M,$contextmenu:$}}=this.art;D.playbackRate&&this.add((0,w.default)({name:"playbackRate",index:10})),D.aspectRatio&&this.add((0,d.default)({name:"aspectRatio",index:20})),D.flip&&this.add((0,g.default)({name:"flip",index:30})),this.add((0,S.default)({name:"info",index:40})),this.add((0,E.default)({name:"version",index:50})),this.add((0,p.default)({name:"close",index:60}));for(let L=0;L{if(!this.art.constructor.CONTEXTMENU)return;L.preventDefault(),this.show=!0;let B=L.clientX,j=L.clientY,{height:H,width:U,left:W,top:K}=(0,a.getRect)(M),{height:oe,width:ae}=(0,a.getRect)($),ee=B-W,Y=j-K;B+ae>W+U&&(ee=U-ae),j+oe>K+H&&(Y=H-oe),(0,a.setStyles)($,{top:`${Y}px`,left:`${ee}px`})}),P(M,"click",L=>{(0,a.includeFromEvent)(L,$)||(this.show=!1)}),this.art.on("blur",()=>{this.show=!1})}}n.default=_},{"../utils":"aBlEo","../utils/component":"idCEj","./aspectRatio":"6XHP2","./close":"eF6AX","./flip":"7Wg1P","./info":"fjRnU","./playbackRate":"hm1DY","./version":"aJBeL","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aBlEo:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./compatibility");i.exportAll(a,n);var s=e("./dom");i.exportAll(s,n);var l=e("./error");i.exportAll(l,n);var c=e("./file");i.exportAll(c,n);var d=e("./format");i.exportAll(d,n);var h=e("./property");i.exportAll(h,n);var p=e("./subtitle");i.exportAll(p,n);var v=e("./time");i.exportAll(v,n)},{"./compatibility":"jg0yq","./dom":"eANXw","./error":"4FwTI","./file":"i2JbS","./format":"dy9GH","./property":"jY49c","./subtitle":"ke7ox","./time":"f7gsx","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jg0yq:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"userAgent",()=>a),i.export(n,"isSafari",()=>s),i.export(n,"isIOS",()=>l),i.export(n,"isIOS13",()=>c),i.export(n,"isMobile",()=>d),i.export(n,"isBrowser",()=>h);let a=globalThis?.CUSTOM_USER_AGENT??(typeof navigator<"u"?navigator.userAgent:""),s=/^(?:(?!chrome|android).)*safari/i.test(a),l=/iPad|iPhone|iPod/i.test(a)&&!window.MSStream,c=l||a.includes("Macintosh")&&navigator.maxTouchPoints>=1,d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)||c,h=typeof window<"u"&&typeof document<"u"},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eANXw:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"query",()=>s),i.export(n,"queryAll",()=>l),i.export(n,"addClass",()=>c),i.export(n,"removeClass",()=>d),i.export(n,"hasClass",()=>h),i.export(n,"append",()=>p),i.export(n,"remove",()=>v),i.export(n,"setStyle",()=>g),i.export(n,"setStyles",()=>y),i.export(n,"getStyle",()=>S),i.export(n,"siblings",()=>k),i.export(n,"inverseClass",()=>w),i.export(n,"tooltip",()=>x),i.export(n,"isInViewport",()=>E),i.export(n,"includeFromEvent",()=>_),i.export(n,"replaceElement",()=>T),i.export(n,"createElement",()=>D),i.export(n,"getIcon",()=>P),i.export(n,"setStyleText",()=>M),i.export(n,"supportsFlex",()=>$),i.export(n,"getRect",()=>L),i.export(n,"loadImg",()=>B),i.export(n,"getComposedPath",()=>j);var a=e("./compatibility");function s(H,U=document){return U.querySelector(H)}function l(H,U=document){return Array.from(U.querySelectorAll(H))}function c(H,U){return H.classList.add(U)}function d(H,U){return H.classList.remove(U)}function h(H,U){return H.classList.contains(U)}function p(H,U){return U instanceof Element?H.appendChild(U):H.insertAdjacentHTML("beforeend",String(U)),H.lastElementChild||H.lastChild}function v(H){return H.parentNode.removeChild(H)}function g(H,U,W){return H.style[U]=W,H}function y(H,U){for(let W in U)g(H,W,U[W]);return H}function S(H,U,W=!0){let K=window.getComputedStyle(H,null).getPropertyValue(U);return W?Number.parseFloat(K):K}function k(H){return Array.from(H.parentElement.children).filter(U=>U!==H)}function w(H,U){k(H).forEach(W=>d(W,U)),c(H,U)}function x(H,U,W="top"){a.isMobile||(H.setAttribute("aria-label",U),c(H,"hint--rounded"),c(H,`hint--${W}`))}function E(H,U=0){let W=H.getBoundingClientRect(),K=window.innerHeight||document.documentElement.clientHeight,oe=window.innerWidth||document.documentElement.clientWidth,ae=W.top-U<=K&&W.top+W.height+U>=0,ee=W.left-U<=oe+U&&W.left+W.width+U>=0;return ae&&ee}function _(H,U){return j(H).includes(U)}function T(H,U){return U.parentNode.replaceChild(H,U),H}function D(H){return document.createElement(H)}function P(H="",U=""){let W=D("i");return c(W,"art-icon"),c(W,`art-icon-${H}`),p(W,U),W}function M(H,U){let W=document.getElementById(H);W||((W=document.createElement("style")).id=H,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{document.head.appendChild(W)}):(document.head||document.documentElement).appendChild(W)),W.textContent=U}function $(){let H=document.createElement("div");return H.style.display="flex",H.style.display==="flex"}function L(H){return H.getBoundingClientRect()}function B(H,U){return new Promise((W,K)=>{let oe=new Image;oe.onload=function(){if(U&&U!==1){let ae=document.createElement("canvas"),ee=ae.getContext("2d");ae.width=oe.width*U,ae.height=oe.height*U,ee.drawImage(oe,0,0,ae.width,ae.height),ae.toBlob(Y=>{let Q=URL.createObjectURL(Y),ie=new Image;ie.onload=function(){W(ie)},ie.onerror=function(){URL.revokeObjectURL(Q),K(Error(`Image load failed: ${H}`))},ie.src=Q})}else W(oe)},oe.onerror=function(){K(Error(`Image load failed: ${H}`))},oe.src=H})}function j(H){if(H.composedPath)return H.composedPath();let U=[],W=H.target;for(;W;)U.push(W),W=W.parentNode;return U.includes(window)||window===void 0||U.push(window),U}},{"./compatibility":"jg0yq","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4FwTI":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"ArtPlayerError",()=>a),i.export(n,"errorHandle",()=>s);class a extends Error{constructor(c,d){super(c),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,d||this.constructor),this.name="ArtPlayerError"}}function s(l,c){if(!l)throw new a(c);return l}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],i2JbS:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s,l){let c=document.createElement("a");c.style.display="none",c.href=s,c.download=l,document.body.appendChild(c),c.click(),document.body.removeChild(c)}i.defineInteropFlag(n),i.export(n,"getExt",()=>function s(l){return l.includes("?")?s(l.split("?")[0]):l.includes("#")?s(l.split("#")[0]):l.trim().toLowerCase().split(".").pop()}),i.export(n,"download",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dy9GH:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(h,p,v){return Math.max(Math.min(h,Math.max(p,v)),Math.min(p,v))}function s(h){return h.charAt(0).toUpperCase()+h.slice(1)}function l(h){if(!h)return"00:00";let p=Math.floor(h/3600),v=Math.floor((h-3600*p)/60),g=Math.floor(h-3600*p-60*v);return(p>0?[p,v,g]:[v,g]).map(y=>y<10?`0${y}`:String(y)).join(":")}function c(h){return h.replace(/[&<>'"]/g,p=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[p]||p)}function d(h){let p={"&":"&","<":"<",">":">","'":"'",""":'"'},v=RegExp(`(${Object.keys(p).join("|")})`,"g");return h.replace(v,g=>p[g]||g)}i.defineInteropFlag(n),i.export(n,"clamp",()=>a),i.export(n,"capitalize",()=>s),i.export(n,"secondToTime",()=>l),i.export(n,"escape",()=>c),i.export(n,"unescape",()=>d)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jY49c:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"def",()=>a),i.export(n,"has",()=>l),i.export(n,"get",()=>c),i.export(n,"mergeDeep",()=>function d(...h){let p=v=>v&&typeof v=="object"&&!Array.isArray(v);return h.reduce((v,g)=>(Object.keys(g).forEach(y=>{let S=v[y],k=g[y];Array.isArray(S)&&Array.isArray(k)?v[y]=S.concat(...k):p(S)&&p(k)?v[y]=d(S,k):v[y]=k}),v),{})});let a=Object.defineProperty,{hasOwnProperty:s}=Object.prototype;function l(d,h){return s.call(d,h)}function c(d,h){return Object.getOwnPropertyDescriptor(d,h)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ke7ox:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(c){return`WEBVTT \r \r `.concat(c.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,(d,h,p)=>{let v=p.slice(0,3);return p.length===1&&(v=`${p}00`),p.length===2&&(v=`${p}0`),`${h},${v}`}).replace(/\{\\([ibu])\}/g,"").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/\{[\s\S]*?\}/g,"").concat(`\r \r @@ -501,7 +501,7 @@ Char: `+o[b]);b+1&&(b+=1);break}else if(o.charCodeAt(b+1)===33){if(o.charCodeAt( `).trim().split(/\r?\n/).map(g=>g.trim()).join(` `)}:null}).filter(p=>p).map((p,v)=>p?`${v+1} ${p.start} --> ${p.end} ${p.text}`:"").filter(p=>p.trim()).join(` -`)}`}i.defineInteropFlag(n),i.export(n,"srtToVtt",()=>a),i.export(n,"vttToBlob",()=>s),i.export(n,"assToVtt",()=>l)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f7gsx:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(c=0){return new Promise(d=>setTimeout(d,c))}function s(c,d){let h;return function(...p){let v=()=>(h=null,c.apply(this,p));clearTimeout(h),h=setTimeout(v,d)}}function l(c,d){let h=!1;return function(...p){h||(c.apply(this,p),h=!0,setTimeout(()=>{h=!1},d))}}i.defineInteropFlag(n),i.export(n,"sleep",()=>a),i.export(n,"debounce",()=>s),i.export(n,"throttle",()=>l)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],idCEj:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("option-validator"),s=i.interopDefault(a),l=e("../scheme"),c=e("./dom"),d=e("./error");n.default=class{constructor(h){this.id=0,this.art=h,this.cache=new Map,this.add=this.add.bind(this),this.remove=this.remove.bind(this),this.update=this.update.bind(this)}get show(){return(0,c.hasClass)(this.art.template.$player,`art-${this.name}-show`)}set show(h){let{$player:p}=this.art.template,v=`art-${this.name}-show`;h?(0,c.addClass)(p,v):(0,c.removeClass)(p,v),this.art.emit(this.name,h)}toggle(){this.show=!this.show}add(h){let p=typeof h=="function"?h(this.art):h;if(p.html=p.html||"",(0,s.default)(p,l.ComponentOption),!this.$parent||!this.name||p.disable)return;let v=p.name||`${this.name}${this.id}`,g=this.cache.get(v);(0,d.errorHandle)(!g,`Can't add an existing [${v}] to the [${this.name}]`),this.id+=1;let y=(0,c.createElement)("div");(0,c.addClass)(y,`art-${this.name}`),(0,c.addClass)(y,`art-${this.name}-${v}`);let S=Array.from(this.$parent.children);y.dataset.index=p.index||this.id;let k=S.find(x=>Number(x.dataset.index)>=Number(y.dataset.index));k?k.insertAdjacentElement("beforebegin",y):(0,c.append)(this.$parent,y),p.html&&(0,c.append)(y,p.html),p.style&&(0,c.setStyles)(y,p.style),p.tooltip&&(0,c.tooltip)(y,p.tooltip);let C=[];if(p.click){let x=this.art.events.proxy(y,"click",E=>{E.preventDefault(),p.click.call(this.art,this,E)});C.push(x)}return p.selector&&["left","right"].includes(p.position)&&this.selector(p,y,C),this[v]=y,this.cache.set(v,{$ref:y,events:C,option:p}),p.mounted&&p.mounted.call(this.art,y),y}remove(h){let p=this.cache.get(h);(0,d.errorHandle)(p,`Can't find [${h}] from the [${this.name}]`),p.option.beforeUnmount&&p.option.beforeUnmount.call(this.art,p.$ref);for(let v=0;vg);var a=e("../utils");let s="array",l="boolean",c="string",d="number",h="object",p="function";function v(y,S,k){return(0,a.errorHandle)(S===c||S===d||y instanceof Element,`${k.join(".")} require '${c}' or 'Element' type`)}let g={html:v,disable:`?${l}`,name:`?${c}`,index:`?${d}`,style:`?${h}`,click:`?${p}`,mounted:`?${p}`,tooltip:`?${c}|${d}`,width:`?${d}`,selector:`?${s}`,onSelect:`?${p}`,switch:`?${l}`,onSwitch:`?${p}`,range:`?${s}`,onRange:`?${p}`,onChange:`?${p}`};n.default={id:c,container:v,url:c,poster:c,type:c,theme:c,lang:c,volume:d,isLive:l,muted:l,autoplay:l,autoSize:l,autoMini:l,loop:l,flip:l,playbackRate:l,aspectRatio:l,screenshot:l,setting:l,hotkey:l,pip:l,mutex:l,backdrop:l,fullscreen:l,fullscreenWeb:l,subtitleOffset:l,miniProgressBar:l,useSSR:l,playsInline:l,lock:l,gesture:l,fastForward:l,autoPlayback:l,autoOrientation:l,airplay:l,proxy:`?${p}`,plugins:[p],layers:[g],contextmenu:[g],settings:[g],controls:[{...g,position:(y,S,k)=>{let C=["top","left","right"];return(0,a.errorHandle)(C.includes(y),`${k.join(".")} only accept ${C.toString()} as parameters`)}}],quality:[{default:`?${l}`,html:c,url:c}],highlight:[{time:d,text:c}],thumbnails:{url:c,number:d,column:d,width:d,height:d,scale:d},subtitle:{url:c,name:c,type:c,style:h,escape:l,encoding:c,onVttLoad:p},moreVideoAttr:h,i18n:h,icons:h,cssVar:h,customType:h}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6XHP2":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{ASPECT_RATIO:h}}=c,p=h.map(v=>`${v==="default"?d.get("Default"):v}`).join("");return{...l,html:`${d.get("Aspect Ratio")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.aspectRatio=y,v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="default"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("aspectRatio",y=>{let S=(0,a.queryAll)("span",v).find(k=>k.dataset.value===y);S&&(0,a.inverseClass)(S,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eF6AX:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){return l=>({...s,html:l.i18n.get("Close"),click:c=>{c.show=!1}})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7Wg1P":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{FLIP:h}}=c,p=h.map(v=>`${d.get((0,a.capitalize)(v))}`).join("");return{...l,html:`${d.get("Video Flip")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.flip=y.toLowerCase(),v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="normal"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("flip",y=>{let S=(0,a.queryAll)("span",v).find(k=>k.dataset.value===y);S&&(0,a.inverseClass)(S,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fjRnU:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){return l=>({...s,html:l.i18n.get("Video Info"),click:c=>{l.info.show=!0,c.show=!1}})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],hm1DY:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{PLAYBACK_RATE:h}}=c,p=h.map(v=>`${v===1?d.get("Normal"):v.toFixed(1)}`).join("");return{...l,html:`${d.get("Play Speed")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.playbackRate=Number(y),v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="1"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("video:ratechange",()=>{let y=(0,a.queryAll)("span",v).find(S=>Number(S.dataset.value)===c.playbackRate);y&&(0,a.inverseClass)(y,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aJBeL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>function(s){return{...s,html:`ArtPlayer ${a.version}`}});var a=e("../../package.json")},{"../../package.json":"lh3R5","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dp1yk:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("../utils/component"),l=i.interopDefault(s),c=e("./airplay"),d=i.interopDefault(c),h=e("./fullscreen"),p=i.interopDefault(h),v=e("./fullscreenWeb"),g=i.interopDefault(v),y=e("./pip"),S=i.interopDefault(y),k=e("./playAndPause"),C=i.interopDefault(k),x=e("./progress"),E=i.interopDefault(x),_=e("./screenshot"),T=i.interopDefault(_),D=e("./setting"),P=i.interopDefault(D),M=e("./time"),O=i.interopDefault(M),L=e("./volume"),B=i.interopDefault(L);class j extends l.default{constructor(U){super(U),this.isHover=!1,this.name="control",this.timer=Date.now();let{constructor:K}=U,{$player:Y,$bottom:ie}=this.art.template;U.on("mousemove",()=>{a.isMobile||(this.show=!0)}),U.on("click",()=>{a.isMobile?this.toggle():this.show=!0}),U.on("document:mousemove",te=>{this.isHover=(0,a.includeFromEvent)(te,ie)}),U.on("video:timeupdate",()=>{!U.setting.show&&!this.isHover&&!U.isInput&&U.playing&&this.show&&Date.now()-this.timer>=K.CONTROL_HIDE_TIME&&(this.show=!1)}),U.on("control",te=>{te?((0,a.removeClass)(Y,"art-hide-cursor"),(0,a.addClass)(Y,"art-hover"),this.timer=Date.now()):((0,a.addClass)(Y,"art-hide-cursor"),(0,a.removeClass)(Y,"art-hover"))}),this.init()}init(){let{option:U}=this.art;U.isLive||this.add((0,E.default)({name:"progress",position:"top",index:10})),this.add({name:"thumbnails",position:"top",index:20}),this.add((0,C.default)({name:"playAndPause",position:"left",index:10})),this.add((0,B.default)({name:"volume",position:"left",index:20})),U.isLive||this.add((0,O.default)({name:"time",position:"left",index:30})),U.quality.length&&(0,a.sleep)().then(()=>{this.art.quality=U.quality}),U.screenshot&&!a.isMobile&&this.add((0,T.default)({name:"screenshot",position:"right",index:20})),U.setting&&this.add((0,P.default)({name:"setting",position:"right",index:30})),U.pip&&this.add((0,S.default)({name:"pip",position:"right",index:40})),U.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&this.add((0,d.default)({name:"airplay",position:"right",index:50})),U.fullscreenWeb&&this.add((0,g.default)({name:"fullscreenWeb",position:"right",index:60})),U.fullscreen&&this.add((0,p.default)({name:"fullscreen",position:"right",index:70}));for(let K=0;KU.selector}),(0,a.def)(se,"$control_item",{get:()=>ae}),(0,a.def)(se,"$control_value",{get:()=>te})}let q=ie(W,"click",async Q=>{let se=(0,a.getComposedPath)(Q),ae=U.selector.find(re=>re.$control_item===se.find(Ce=>re.$control_item===Ce));this.check(ae),U.onSelect&&(te.innerHTML=await U.onSelect.call(this.art,ae,ae.$control_item,Q))});Y.push(q)}}n.default=j},{"../utils":"aBlEo","../utils/component":"idCEj","./airplay":"amOzz","./fullscreen":"3GuBU","./fullscreenWeb":"jj1KV","./pip":"jMeHN","./playAndPause":"u3h8M","./progress":"1XZSS","./screenshot":"dIscA","./setting":"aqA0g","./time":"ihweO","./volume":"fJVWn","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],amOzz:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("AirPlay"),mounted:d=>{let{proxy:h,icons:p}=c;(0,a.append)(d,p.airplay),h(d,"click",()=>c.airplay())}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3GuBU":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Fullscreen"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.fullscreenOn),y=(0,a.append)(d,p.fullscreenOff);(0,a.setStyle)(y,"display","none"),h(d,"click",()=>{c.fullscreen=!c.fullscreen}),c.on("fullscreen",S=>{S?((0,a.tooltip)(d,v.get("Exit Fullscreen")),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","inline-flex")):((0,a.tooltip)(d,v.get("Fullscreen")),(0,a.setStyle)(g,"display","inline-flex"),(0,a.setStyle)(y,"display","none"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jj1KV:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Web Fullscreen"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.fullscreenWebOn),y=(0,a.append)(d,p.fullscreenWebOff);(0,a.setStyle)(y,"display","none"),h(d,"click",()=>{c.fullscreenWeb=!c.fullscreenWeb}),c.on("fullscreenWeb",S=>{S?((0,a.tooltip)(d,v.get("Exit Web Fullscreen")),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","inline-flex")):((0,a.tooltip)(d,v.get("Web Fullscreen")),(0,a.setStyle)(g,"display","inline-flex"),(0,a.setStyle)(y,"display","none"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jMeHN:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("PIP Mode"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c;(0,a.append)(d,p.pip),h(d,"click",()=>{c.pip=!c.pip}),c.on("pip",g=>{(0,a.tooltip)(d,v.get(g?"Exit PIP Mode":"PIP Mode"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],u3h8M:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.play),y=(0,a.append)(d,p.pause);function S(){(0,a.setStyle)(g,"display","flex"),(0,a.setStyle)(y,"display","none")}function k(){(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","flex")}(0,a.tooltip)(g,v.get("Play")),(0,a.tooltip)(y,v.get("Pause")),h(g,"click",()=>{c.play()}),h(y,"click",()=>{c.pause()}),c.playing?k():S(),c.on("video:playing",()=>{k()}),c.on("video:pause",()=>{S()})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"1XZSS":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"getPosFromEvent",()=>s),i.export(n,"setCurrentTime",()=>l),i.export(n,"default",()=>c);var a=e("../utils");function s(d,h){let{$progress:p}=d.template,{left:v}=(0,a.getRect)(p),g=a.isMobile?h.touches[0].clientX:h.clientX,y=(0,a.clamp)(g-v,0,p.clientWidth),S=y/p.clientWidth*d.duration,k=(0,a.secondToTime)(S),C=(0,a.clamp)(y/p.clientWidth,0,1);return{second:S,time:k,width:y,percentage:C}}function l(d,h){if(d.isRotate){let p=h.touches[0].clientY/d.height,v=p*d.duration;d.emit("setBar","played",p,h),d.seek=v}else{let{second:p,percentage:v}=s(d,h);d.emit("setBar","played",v,h),d.seek=p}}function c(d){return h=>{let{icons:p,option:v,proxy:g}=h;return{...d,html:'

',mounted:y=>{let S=null,k=!1,C=(0,a.query)(".art-progress-hover",y),x=(0,a.query)(".art-progress-loaded",y),E=(0,a.query)(".art-progress-played",y),_=(0,a.query)(".art-progress-highlight",y),T=(0,a.query)(".art-progress-indicator",y),D=(0,a.query)(".art-progress-tip",y);function P(M,O){let{width:L,time:B}=O||s(h,M);D.textContent=B;let j=D.clientWidth;L<=j/2?(0,a.setStyle)(D,"left",0):L>y.clientWidth-j/2?(0,a.setStyle)(D,"left",`${y.clientWidth-j}px`):(0,a.setStyle)(D,"left",`${L-j/2}px`)}p.indicator?(0,a.append)(T,p.indicator):(0,a.setStyle)(T,"backgroundColor","var(--art-theme)"),h.on("setBar",function(M,O,L){let B=M==="played"&&L&&a.isMobile;M==="loaded"&&(0,a.setStyle)(x,"width",`${100*O}%`),M==="hover"&&(0,a.setStyle)(C,"width",`${100*O}%`),M==="played"&&((0,a.setStyle)(E,"width",`${100*O}%`),(0,a.setStyle)(T,"left",`${100*O}%`)),B&&((0,a.setStyle)(D,"display","flex"),P(L,{width:y.clientWidth*O,time:(0,a.secondToTime)(O*h.duration)}),clearTimeout(S),S=setTimeout(()=>{(0,a.setStyle)(D,"display","none")},500))}),h.on("video:loadedmetadata",function(){_.textContent="";for(let M=0;M`;(0,a.append)(_,B)}}),h.constructor.USE_RAF?h.on("raf",()=>{h.emit("setBar","played",h.played),h.emit("setBar","loaded",h.loaded)}):(h.on("video:timeupdate",()=>{h.emit("setBar","played",h.played)}),h.on("video:progress",()=>{h.emit("setBar","loaded",h.loaded)}),h.on("video:ended",()=>{h.emit("setBar","played",1)})),h.emit("setBar","loaded",h.loaded||0),a.isMobile||(g(y,"click",M=>{M.target!==T&&l(h,M)}),g(y,"mousemove",M=>{let{percentage:O}=s(h,M);if(h.emit("setBar","hover",O,M),(0,a.setStyle)(D,"display","flex"),(0,a.includeFromEvent)(M,_)){let{width:L}=s(h,M),{text:B}=M.target.dataset;D.textContent=B;let j=D.clientWidth;L<=j/2?(0,a.setStyle)(D,"left",0):L>y.clientWidth-j/2?(0,a.setStyle)(D,"left",`${y.clientWidth-j}px`):(0,a.setStyle)(D,"left",`${L-j/2}px`)}else P(M)}),g(y,"mouseleave",M=>{(0,a.setStyle)(D,"display","none"),h.emit("setBar","hover",0,M)}),g(y,"mousedown",M=>{k=M.button===0}),h.on("document:mousemove",M=>{if(k){let{second:O,percentage:L}=s(h,M);h.emit("setBar","played",L,M),h.seek=O}}),h.on("document:mouseup",()=>{k&&(k=!1)}))}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dIscA:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Screenshot"),mounted:d=>{let{proxy:h,icons:p}=c;(0,a.append)(d,p.screenshot),h(d,"click",()=>{c.screenshot()})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aqA0g:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Show Setting"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c;(0,a.append)(d,p.setting),h(d,"click",()=>{c.setting.toggle(),c.setting.resize()}),c.on("setting",g=>{(0,a.tooltip)(d,v.get(g?"Hide Setting":"Show Setting"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ihweO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,style:a.isMobile?{fontSize:"12px",padding:"0 5px"}:{cursor:"auto",padding:"0 10px"},mounted:d=>{function h(){let v=`${(0,a.secondToTime)(c.currentTime)} / ${(0,a.secondToTime)(c.duration)}`;v!==d.textContent&&(d.textContent=v)}h();let p=["video:loadedmetadata","video:timeupdate","video:progress"];for(let v=0;vs);var a=e("../utils");function s(l){return c=>({...l,mounted:d=>{let{proxy:h,icons:p}=c,v=(0,a.append)(d,p.volume),g=(0,a.append)(d,p.volumeClose),y=(0,a.append)(d,'
'),S=(0,a.append)(y,'
'),k=(0,a.append)(S,'
'),C=(0,a.append)(S,'
'),x=(0,a.append)(C,'
'),E=(0,a.append)(x,'
'),_=(0,a.append)(C,'
');function T(P){let{top:M,height:O}=(0,a.getRect)(C);return 1-(P.clientY-M)/O}function D(){if(c.muted||c.volume===0)(0,a.setStyle)(v,"display","none"),(0,a.setStyle)(g,"display","flex"),(0,a.setStyle)(_,"top","100%"),(0,a.setStyle)(E,"top","100%"),k.textContent=0;else{let P=100*c.volume;(0,a.setStyle)(v,"display","flex"),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(_,"top",`${100-P}%`),(0,a.setStyle)(E,"top",`${100-P}%`),k.textContent=Math.floor(P)}}if(D(),c.on("video:volumechange",D),h(v,"click",()=>{c.muted=!0}),h(g,"click",()=>{c.muted=!1}),a.isMobile)(0,a.setStyle)(y,"display","none");else{let P=!1;h(C,"mousedown",M=>{P=M.button===0,c.volume=T(M)}),c.on("document:mousemove",M=>{P&&(c.muted=!1,c.volume=T(M))}),c.on("document:mouseup",()=>{P&&(P=!1)})}}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jmVSD:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./clickInit"),s=i.interopDefault(a),l=e("./gestureInit"),c=i.interopDefault(l),d=e("./globalInit"),h=i.interopDefault(d),p=e("./hoverInit"),v=i.interopDefault(p),g=e("./moveInit"),y=i.interopDefault(g),S=e("./resizeInit"),k=i.interopDefault(S),C=e("./updateInit"),x=i.interopDefault(C),E=e("./viewInit"),_=i.interopDefault(E);n.default=class{constructor(T){this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),(0,s.default)(T,this),(0,v.default)(T,this),(0,y.default)(T,this),(0,k.default)(T,this),(0,c.default)(T,this),(0,_.default)(T,this),(0,h.default)(T,this),(0,x.default)(T,this)}proxy(T,D,P,M={}){if(Array.isArray(D))return D.map(L=>this.proxy(T,L,P,M));T.addEventListener(D,P,M);let O=()=>T.removeEventListener(D,P,M);return this.destroyEvents.push(O),O}hover(T,D,P){D&&this.proxy(T,"mouseenter",D),P&&this.proxy(T,"mouseleave",P)}remove(T){let D=this.destroyEvents.indexOf(T);D>-1&&(T(),this.destroyEvents.splice(D,1))}destroy(){for(let T=0;Ts);var a=e("../utils");function s(l,c){let{constructor:d,template:{$player:h,$video:p}}=l;function v(y){(0,a.includeFromEvent)(y,h)?(l.isInput=y.target.tagName==="INPUT",l.isFocus=!0,l.emit("focus",y)):(l.isInput=!1,l.isFocus=!1,l.emit("blur",y))}l.on("document:click",v),l.on("document:contextmenu",v);let g=[];c.proxy(p,"click",y=>{let S=Date.now();g.push(S);let{MOBILE_CLICK_PLAY:k,DBCLICK_TIME:C,MOBILE_DBCLICK_PLAY:x,DBCLICK_FULLSCREEN:E}=d,_=g.filter(T=>S-T<=C);switch(_.length){case 1:l.emit("click",y),a.isMobile?!l.isLock&&k&&l.toggle():l.toggle(),g=_;break;case 2:l.emit("dblclick",y),a.isMobile?!l.isLock&&x&&l.toggle():E&&(l.fullscreen=!l.fullscreen),g=[];break;default:g=[]}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"9wEzB":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>l);var a=e("../control/progress"),s=e("../utils");function l(c,d){if(s.isMobile&&!c.option.isLive){let{$video:h,$progress:p}=c.template,v=null,g=!1,y=0,S=0,k=0,C=E=>{if(E.touches.length===1&&!c.isLock){v===p&&(0,a.setCurrentTime)(c,E),g=!0;let{pageX:_,pageY:T}=E.touches[0];y=_,S=T,k=c.currentTime}},x=E=>{if(E.touches.length===1&&g&&c.duration){let{pageX:_,pageY:T}=E.touches[0],D=(function(O,L,B,j){let H=L-j,U=B-O,K=0;if(2>Math.abs(U)&&2>Math.abs(H))return K;let Y=180*Math.atan2(H,U)/Math.PI;return Y>=-45&&Y<45?K=4:Y>=45&&Y<135?K=1:Y>=-135&&Y<-45?K=2:(Y>=135&&Y<=180||Y>=-180&&Y<-135)&&(K=3),K})(y,S,_,T),P=[3,4].includes(D),M=[1,2].includes(D);if(P&&!c.isRotate||M&&c.isRotate){let O=(0,s.clamp)((_-y)/c.width,-1,1),L=(0,s.clamp)((T-S)/c.height,-1,1),B=c.isRotate?L:O,j=v===h?c.constructor.TOUCH_MOVE_RATIO:1,H=(0,s.clamp)(k+c.duration*B*j,0,c.duration);c.seek=H,c.emit("setBar","played",(0,s.clamp)(H/c.duration,0,1),E),c.notice.show=`${(0,s.secondToTime)(H)} / ${(0,s.secondToTime)(c.duration)}`}}};c.option.gesture&&(d.proxy(h,"touchstart",E=>{v=h,C(E)}),d.proxy(h,"touchmove",x)),d.proxy(p,"touchstart",E=>{v=p,C(E)}),d.proxy(p,"touchmove",x),c.on("document:touchend",()=>{g&&(y=0,S=0,k=0,g=!1,v=null)})}}},{"../control/progress":"1XZSS","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ikBrS:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s,l){let c=["click","mouseup","keydown","touchend","touchmove","mousemove","pointerup","contextmenu","pointermove","visibilitychange","webkitfullscreenchange"],d=["resize","scroll","orientationchange"],h=[];function p(v={}){for(let y=0;y{let S=v.document||g.ownerDocument||document,k=l.proxy(S,y,C=>{s.emit(`document:${y}`,C)});h.push(k)}),d.forEach(y=>{let S=v.window||g.ownerDocument?.defaultView||window,k=l.proxy(S,y,C=>{s.emit(`window:${y}`,C)});h.push(k)})}p(),l.bindGlobalEvents=p}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jwNq0:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l,c){let{$player:d}=l.template;c.hover(d,h=>{(0,a.addClass)(d,"art-hover"),l.emit("hover",!0,h)},h=>{(0,a.removeClass)(d,"art-hover"),l.emit("hover",!1,h)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eqSsP:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s,l){let{$player:c}=s.template;l.proxy(c,"mousemove",d=>{s.emit("mousemove",d)})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"42JNz":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l,c){let{option:d,constructor:h}=l;l.on("resize",()=>{let{aspectRatio:v,notice:g}=l;l.state==="standard"&&d.autoSize&&l.autoSize(),l.aspectRatio=v,g.show=""});let p=(0,a.debounce)(()=>l.emit("resize"),h.RESIZE_TIME);l.on("window:orientationchange",()=>p()),l.on("window:resize",()=>p()),screen&&screen.orientation&&screen.orientation.onchange&&c.proxy(screen.orientation,"change",()=>p())}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7kM1M":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){if(s.constructor.USE_RAF){let l=null;(function c(){s.playing&&s.emit("raf"),s.isDestroy||(l=requestAnimationFrame(c))})(),s.on("destroy",()=>{cancelAnimationFrame(l)})}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"2IW9m":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,constructor:d,template:{$container:h}}=l,p=(0,a.throttle)(()=>{l.emit("view",(0,a.isInViewport)(h,d.SCROLL_GAP))},d.SCROLL_TIME);l.on("window:scroll",()=>p()),l.on("view",v=>{c.autoMini&&(l.mini=!v)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dswts:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("./utils");n.default=class{constructor(a){this.art=a,this.keys={},a.option.hotkey&&!i.isMobile&&this.init()}init(){let{constructor:a}=this.art;this.add("Escape",()=>{this.art.fullscreenWeb&&(this.art.fullscreenWeb=!1)}),this.add("Space",()=>{this.art.toggle()}),this.add("ArrowLeft",()=>{this.art.backward=a.SEEK_STEP}),this.add("ArrowUp",()=>{this.art.volume+=a.VOLUME_STEP}),this.add("ArrowRight",()=>{this.art.forward=a.SEEK_STEP}),this.add("ArrowDown",()=>{this.art.volume-=a.VOLUME_STEP}),this.art.on("document:keydown",s=>{if(this.art.isFocus){let l=document.activeElement.tagName.toUpperCase(),c=document.activeElement.getAttribute("contenteditable");if(l!=="INPUT"&&l!=="TEXTAREA"&&c!==""&&c!=="true"&&!s.altKey&&!s.ctrlKey&&!s.metaKey&&!s.shiftKey){let d=this.keys[s.code];if(d){s.preventDefault();for(let h=0;h(0,Rt.getIcon)(rn,Jt[rn])})}}},{"bundle-text:./airplay.svg":"gkZgZ","bundle-text:./arrow-left.svg":"kQyD4","bundle-text:./arrow-right.svg":"64ztm","bundle-text:./aspect-ratio.svg":"72LvA","bundle-text:./check.svg":"4QmBo","bundle-text:./close.svg":"j1hoe","bundle-text:./config.svg":"hNZaT","bundle-text:./error.svg":"dKh4l","bundle-text:./flip.svg":"lIEIE","bundle-text:./fullscreen-off.svg":"1533e","bundle-text:./fullscreen-on.svg":"76ut3","bundle-text:./fullscreen-web-off.svg":"3NzMk","bundle-text:./fullscreen-web-on.svg":"12xHc","bundle-text:./loading.svg":"iVcUF","bundle-text:./lock.svg":"1J4so","bundle-text:./pause.svg":"1KgkK","bundle-text:./pip.svg":"4h4tM","bundle-text:./play.svg":"jecAY","bundle-text:./playback-rate.svg":"anPe9","bundle-text:./screenshot.svg":"9BPYQ","bundle-text:./setting.svg":"hsI9k","bundle-text:./state.svg":"gr1ZU","bundle-text:./switch-off.svg":"6kdAr","bundle-text:./switch-on.svg":"ksdMo","bundle-text:./unlock.svg":"iz5Qc","bundle-text:./volume-close.svg":"3OZoa","bundle-text:./volume.svg":"hRYA4","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],gkZgZ:[function(e,t,n,r){t.exports=''},{}],kQyD4:[function(e,t,n,r){t.exports=''},{}],"64ztm":[function(e,t,n,r){t.exports=''},{}],"72LvA":[function(e,t,n,r){t.exports=''},{}],"4QmBo":[function(e,t,n,r){t.exports=''},{}],j1hoe:[function(e,t,n,r){t.exports=''},{}],hNZaT:[function(e,t,n,r){t.exports=''},{}],dKh4l:[function(e,t,n,r){t.exports=''},{}],lIEIE:[function(e,t,n,r){t.exports=''},{}],"1533e":[function(e,t,n,r){t.exports=''},{}],"76ut3":[function(e,t,n,r){t.exports=''},{}],"3NzMk":[function(e,t,n,r){t.exports=''},{}],"12xHc":[function(e,t,n,r){t.exports=''},{}],iVcUF:[function(e,t,n,r){t.exports=''},{}],"1J4so":[function(e,t,n,r){t.exports=''},{}],"1KgkK":[function(e,t,n,r){t.exports=''},{}],"4h4tM":[function(e,t,n,r){t.exports=''},{}],jecAY:[function(e,t,n,r){t.exports=''},{}],anPe9:[function(e,t,n,r){t.exports=''},{}],"9BPYQ":[function(e,t,n,r){t.exports=''},{}],hsI9k:[function(e,t,n,r){t.exports=''},{}],gr1ZU:[function(e,t,n,r){t.exports=''},{}],"6kdAr":[function(e,t,n,r){t.exports=''},{}],ksdMo:[function(e,t,n,r){t.exports=''},{}],iz5Qc:[function(e,t,n,r){t.exports=''},{}],"3OZoa":[function(e,t,n,r){t.exports=''},{}],hRYA4:[function(e,t,n,r){t.exports=''},{}],kZ0F8:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./utils"),s=e("./utils/component"),l=i.interopDefault(s);class c extends l.default{constructor(h){super(h),this.name="info",a.isMobile||this.init()}init(){let{proxy:h,constructor:p,template:{$infoPanel:v,$infoClose:g,$video:y}}=this.art;h(g,"click",()=>{this.show=!1});let S=null,k=(0,a.queryAll)("[data-video]",v)||[];this.art.on("destroy",()=>clearTimeout(S)),(function C(){for(let x=0;x{(0,a.setStyle)(y,"display","none"),(0,a.setStyle)(S,"display",null)}),g.proxy(p.$state,"click",()=>h.play())}}n.default=c},{"./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fPVaU:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("./utils");n.default=class{constructor(a){this.art=a,this.timer=null}set show(a){let{constructor:s,template:{$player:l,$noticeInner:c}}=this.art;a?(c.textContent=a instanceof Error?a.message.trim():a,(0,i.addClass)(l,"art-notice-show"),clearTimeout(this.timer),this.timer=setTimeout(()=>{c.textContent="",(0,i.removeClass)(l,"art-notice-show")},s.NOTICE_TIME)):(0,i.removeClass)(l,"art-notice-show")}get show(){let{template:{$player:a}}=this.art;return a.classList.contains("art-notice-show")}}},{"./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],uR0Sw:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./airplayMix"),s=i.interopDefault(a),l=e("./aspectRatioMix"),c=i.interopDefault(l),d=e("./attrMix"),h=i.interopDefault(d),p=e("./autoHeightMix"),v=i.interopDefault(p),g=e("./autoSizeMix"),y=i.interopDefault(g),S=e("./cssVarMix"),k=i.interopDefault(S),C=e("./currentTimeMix"),x=i.interopDefault(C),E=e("./durationMix"),_=i.interopDefault(E),T=e("./eventInit"),D=i.interopDefault(T),P=e("./flipMix"),M=i.interopDefault(P),O=e("./fullscreenMix"),L=i.interopDefault(O),B=e("./fullscreenWebMix"),j=i.interopDefault(B),H=e("./loadedMix"),U=i.interopDefault(H),K=e("./miniMix"),Y=i.interopDefault(K),ie=e("./optionInit"),te=i.interopDefault(ie),W=e("./pauseMix"),q=i.interopDefault(W),Q=e("./pipMix"),se=i.interopDefault(Q),ae=e("./playbackRateMix"),re=i.interopDefault(ae),Ce=e("./playedMix"),Ve=i.interopDefault(Ce),ge=e("./playingMix"),xe=i.interopDefault(ge),Ge=e("./playMix"),tt=i.interopDefault(Ge),Ue=e("./posterMix"),_e=i.interopDefault(Ue),ve=e("./qualityMix"),me=i.interopDefault(ve),Oe=e("./rectMix"),qe=i.interopDefault(Oe),Ke=e("./screenshotMix"),at=i.interopDefault(Ke),ft=e("./seekMix"),ct=i.interopDefault(ft),wt=e("./stateMix"),Ct=i.interopDefault(wt),Rt=e("./subtitleOffsetMix"),Ht=i.interopDefault(Rt),Jt=e("./switchMix"),rn=i.interopDefault(Jt),vt=e("./themeMix"),Fe=i.interopDefault(vt),Me=e("./thumbnailsMix"),Ee=i.interopDefault(Me),We=e("./toggleMix"),$e=i.interopDefault(We),dt=e("./typeMix"),Qe=i.interopDefault(dt),Le=e("./urlMix"),ht=i.interopDefault(Le),Vt=e("./volumeMix"),Ut=i.interopDefault(Vt);n.default=class{constructor(Lt){(0,ht.default)(Lt),(0,h.default)(Lt),(0,tt.default)(Lt),(0,q.default)(Lt),(0,$e.default)(Lt),(0,ct.default)(Lt),(0,Ut.default)(Lt),(0,x.default)(Lt),(0,_.default)(Lt),(0,rn.default)(Lt),(0,re.default)(Lt),(0,c.default)(Lt),(0,at.default)(Lt),(0,L.default)(Lt),(0,j.default)(Lt),(0,se.default)(Lt),(0,U.default)(Lt),(0,Ve.default)(Lt),(0,xe.default)(Lt),(0,y.default)(Lt),(0,qe.default)(Lt),(0,M.default)(Lt),(0,Y.default)(Lt),(0,_e.default)(Lt),(0,v.default)(Lt),(0,k.default)(Lt),(0,Fe.default)(Lt),(0,Qe.default)(Lt),(0,Ct.default)(Lt),(0,Ht.default)(Lt),(0,s.default)(Lt),(0,me.default)(Lt),(0,Ee.default)(Lt),(0,D.default)(Lt),(0,te.default)(Lt)}}},{"./airplayMix":"d8BTB","./aspectRatioMix":"aQNJl","./attrMix":"5DA9e","./autoHeightMix":"1swKn","./autoSizeMix":"lSbiD","./cssVarMix":"32Hp1","./currentTimeMix":"kfZbu","./durationMix":"eV1ag","./eventInit":"f8NQq","./flipMix":"ea3Qm","./fullscreenMix":"ffXE3","./fullscreenWebMix":"8tarF","./loadedMix":"f9syH","./miniMix":"dLuS7","./optionInit":"d1F69","./pauseMix":"kewk9","./pipMix":"4XzDs","./playbackRateMix":"jphfi","./playedMix":"iNpeS","./playingMix":"aBIWL","./playMix":"hRBri","./posterMix":"fgfXC","./qualityMix":"17rUP","./rectMix":"55qzI","./screenshotMix":"bC6TG","./seekMix":"j8GRO","./stateMix":"cn7iR","./subtitleOffsetMix":"2k4nP","./switchMix":"6SU6j","./themeMix":"7iMuh","./thumbnailsMix":"6P0RS","./toggleMix":"eNi78","./typeMix":"7AUBD","./urlMix":"cnlLL","./volumeMix":"iX66j","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d8BTB:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,proxy:h,template:{$video:p}}=l,v=!0;window.WebKitPlaybackTargetAvailabilityEvent&&p.webkitShowPlaybackTargetPicker?h(p,"webkitplaybacktargetavailabilitychanged",g=>{switch(g.availability){case"available":v=!0;break;case"not-available":v=!1}}):v=!1,(0,a.def)(l,"airplay",{value(){v?(p.webkitShowPlaybackTargetPicker(),l.emit("airplay")):d.show=c.get("AirPlay Not Available")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aQNJl:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,template:{$video:h,$player:p}}=l;(0,a.def)(l,"aspectRatio",{get:()=>p.dataset.aspectRatio||"default",set(v){if(v||(v="default"),v==="default")(0,a.setStyle)(h,"width",null),(0,a.setStyle)(h,"height",null),(0,a.setStyle)(h,"margin",null),delete p.dataset.aspectRatio;else{let g=v.split(":").map(Number),{clientWidth:y,clientHeight:S}=p,k=g[0]/g[1];y/S>k?((0,a.setStyle)(h,"width",`${k*S}px`),(0,a.setStyle)(h,"height","100%"),(0,a.setStyle)(h,"margin","0 auto")):((0,a.setStyle)(h,"width","100%"),(0,a.setStyle)(h,"height",`${y/k}px`),(0,a.setStyle)(h,"margin","auto 0")),p.dataset.aspectRatio=v}d.show=`${c.get("Aspect Ratio")}: ${v==="default"?c.get("Default"):v}`,l.emit("aspectRatio",v)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"5DA9e":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c}}=l;(0,a.def)(l,"attr",{value(d,h){if(h===void 0)return c[d];c[d]=h}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"1swKn":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$container:c,$video:d}}=l;(0,a.def)(l,"autoHeight",{value(){let{clientWidth:h}=c,{videoHeight:p,videoWidth:v}=d,g=h/v*p;(0,a.setStyle)(c,"height",`${g}px`),l.emit("autoHeight",g)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],lSbiD:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$container:c,$player:d,$video:h}=l.template;(0,a.def)(l,"autoSize",{value(){let{videoWidth:p,videoHeight:v}=h,{width:g,height:y}=(0,a.getRect)(c),S=p/v;g/y>S?((0,a.setStyle)(d,"width",`${y*S/g*100}%`),(0,a.setStyle)(d,"height","100%")):((0,a.setStyle)(d,"width","100%"),(0,a.setStyle)(d,"height",`${g/S/y*100}%`)),l.emit("autoSize",{width:l.width,height:l.height})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"32Hp1":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$player:c}=l.template;(0,a.def)(l,"cssVar",{value:(d,h)=>h?c.style.setProperty(d,h):getComputedStyle(c).getPropertyValue(d)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kfZbu:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"currentTime",{get:()=>c.currentTime||0,set:d=>{Number.isNaN(d=Number.parseFloat(d))||(c.currentTime=(0,a.clamp)(d,0,l.duration))}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eV1ag:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"duration",{get:()=>{let{duration:c}=l.template.$video;return c===1/0?0:c||0}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f8NQq:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>c);var a=e("../config"),s=i.interopDefault(a),l=e("../utils");function c(d){let{i18n:h,notice:p,option:v,constructor:g,proxy:y,template:{$player:S,$video:k,$poster:C}}=d,x=0;for(let E=0;E{d.emit(`video:${_.type}`,_)});d.on("video:canplay",()=>{x=0,d.loading.show=!1}),d.once("video:canplay",()=>{d.loading.show=!1,d.controls.show=!0,d.mask.show=!0,d.isReady=!0,d.emit("ready")}),d.on("video:ended",()=>{v.loop?(d.seek=0,d.play(),d.controls.show=!1,d.mask.show=!1):(d.controls.show=!0,d.mask.show=!0)}),d.on("video:error",async E=>{x{d.emit("resize"),l.isMobile&&(d.loading.show=!1,d.controls.show=!0,d.mask.show=!0)}),d.on("video:loadstart",()=>{d.loading.show=!0,d.mask.show=!1,d.controls.show=!0}),d.on("video:pause",()=>{d.controls.show=!0,d.mask.show=!0}),d.on("video:play",()=>{d.mask.show=!1,(0,l.setStyle)(C,"display","none")}),d.on("video:playing",()=>{d.mask.show=!1}),d.on("video:progress",()=>{d.playing&&(d.loading.show=!1)}),d.on("video:seeked",()=>{d.loading.show=!1,d.mask.show=!0}),d.on("video:seeking",()=>{d.loading.show=!0,d.mask.show=!1}),d.on("video:timeupdate",()=>{d.mask.show=!1}),d.on("video:waiting",()=>{d.loading.show=!0,d.mask.show=!1})}},{"../config":"eJfh8","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ea3Qm:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$player:c},i18n:d,notice:h}=l;(0,a.def)(l,"flip",{get:()=>c.dataset.flip||"normal",set(p){p||(p="normal"),p==="normal"?delete c.dataset.flip:c.dataset.flip=p,h.show=`${d.get("Video Flip")}: ${d.get((0,a.capitalize)(p))}`,l.emit("flip",p)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ffXE3:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>c);var a=e("../libs/screenfull"),s=i.interopDefault(a),l=e("../utils");function c(d){let{i18n:h,notice:p,template:{$video:v,$player:g}}=d;d.once("video:loadedmetadata",()=>{s.default.isEnabled?(s.default.on("change",()=>{d.emit("fullscreen",s.default.isFullscreen),s.default.isFullscreen?(d.state="fullscreen",(0,l.addClass)(g,"art-fullscreen")):(0,l.removeClass)(g,"art-fullscreen"),d.emit("resize")}),s.default.on("error",y=>{d.emit("fullscreenError",y)}),(0,l.def)(d,"fullscreen",{get:()=>s.default.isFullscreen,async set(y){y?await s.default.request(g):await s.default.exit()}})):v.webkitSupportsFullscreen?(d.on("document:webkitfullscreenchange",()=>{d.emit("fullscreen",d.fullscreen),d.emit("resize")}),(0,l.def)(d,"fullscreen",{get:()=>document.fullscreenElement===v,set(y){y?(d.state="fullscreen",v.webkitEnterFullscreen()):v.webkitExitFullscreen()}})):(0,l.def)(d,"fullscreen",{get:()=>!1,set(){p.show=h.get("Fullscreen Not Supported")}}),(0,l.def)(d,"fullscreen",(0,l.get)(d,"fullscreen"))})}},{"../libs/screenfull":"iSPAQ","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iSPAQ:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);let i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=(()=>{if(typeof document>"u")return!1;let c=i[0],d={};for(let h of i)if(h[1]in document){for(let[p,v]of h.entries())d[c[p]]=v;return d}return!1})(),s={change:a.fullscreenchange,error:a.fullscreenerror},l={request:(c=document.documentElement,d)=>new Promise((h,p)=>{let v=()=>{l.off("change",v),h()};l.on("change",v);let g=c[a.requestFullscreen](d);g instanceof Promise&&g.then(v).catch(p)}),exit:()=>new Promise((c,d)=>{if(!l.isFullscreen)return void c();let h=()=>{l.off("change",h),c()};l.on("change",h);let p=document[a.exitFullscreen]();p instanceof Promise&&p.then(h).catch(d)}),toggle:(c,d)=>l.isFullscreen?l.exit():l.request(c,d),onchange(c){l.on("change",c)},onerror(c){l.on("error",c)},on(c,d){let h=s[c];h&&document.addEventListener(h,d,!1)},off(c,d){let h=s[c];h&&document.removeEventListener(h,d,!1)},raw:a};Object.defineProperties(l,{isFullscreen:{get:()=>!!document[a.fullscreenElement]},element:{enumerable:!0,get:()=>document[a.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>!!document[a.fullscreenEnabled]}}),n.default=l},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"8tarF":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{constructor:c,template:{$container:d,$player:h}}=l,p="";(0,a.def)(l,"fullscreenWeb",{get:()=>(0,a.hasClass)(h,"art-fullscreen-web"),set(v){v?(p=h.style.cssText,c.FULLSCREEN_WEB_IN_BODY&&(0,a.append)(document.body,h),l.state="fullscreenWeb",(0,a.setStyle)(h,"width","100%"),(0,a.setStyle)(h,"height","100%"),(0,a.addClass)(h,"art-fullscreen-web"),l.emit("fullscreenWeb",!0)):(c.FULLSCREEN_WEB_IN_BODY&&(0,a.append)(d,h),p&&(h.style.cssText=p,p=""),(0,a.removeClass)(h,"art-fullscreen-web"),l.emit("fullscreenWeb",!1)),l.emit("resize")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f9syH:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"loaded",{get:()=>l.loadedTime/c.duration}),(0,a.def)(l,"loadedTime",{get:()=>c.buffered.length?c.buffered.end(c.buffered.length-1):0})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dLuS7:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{icons:c,proxy:d,storage:h,template:{$player:p,$video:v}}=l,g=!1,y=0,S=0;function k(){let{$mini:E}=l.template;E&&((0,a.removeClass)(p,"art-mini"),(0,a.setStyle)(E,"display","none"),p.prepend(v),l.emit("mini",!1))}function C(E,_){l.playing?((0,a.setStyle)(E,"display","none"),(0,a.setStyle)(_,"display","flex")):((0,a.setStyle)(E,"display","flex"),(0,a.setStyle)(_,"display","none"))}function x(){let{$mini:E}=l.template,_=(0,a.getRect)(E),T=window.innerHeight-_.height-50,D=window.innerWidth-_.width-50;h.set("top",T),h.set("left",D),(0,a.setStyle)(E,"top",`${T}px`),(0,a.setStyle)(E,"left",`${D}px`)}(0,a.def)(l,"mini",{get:()=>(0,a.hasClass)(p,"art-mini"),set(E){if(E){l.state="mini",(0,a.addClass)(p,"art-mini");let _=(function(){let{$mini:P}=l.template;if(P)return(0,a.append)(P,v),(0,a.setStyle)(P,"display","flex");{let M=(0,a.createElement)("div");(0,a.addClass)(M,"art-mini-popup"),(0,a.append)(document.body,M),l.template.$mini=M,(0,a.append)(M,v);let O=(0,a.append)(M,'
');(0,a.append)(O,c.close),d(O,"click",k);let L=(0,a.append)(M,'
'),B=(0,a.append)(L,c.play),j=(0,a.append)(L,c.pause);return d(B,"click",()=>l.play()),d(j,"click",()=>l.pause()),C(B,j),l.on("video:playing",()=>C(B,j)),l.on("video:pause",()=>C(B,j)),l.on("video:timeupdate",()=>C(B,j)),d(M,"mousedown",H=>{g=H.button===0,y=H.pageX,S=H.pageY}),l.on("document:mousemove",H=>{if(g){(0,a.addClass)(M,"art-mini-dragging");let U=H.pageX-y,K=H.pageY-S;(0,a.setStyle)(M,"transform",`translate(${U}px, ${K}px)`)}}),l.on("document:mouseup",()=>{if(g){g=!1,(0,a.removeClass)(M,"art-mini-dragging");let H=(0,a.getRect)(M);h.set("left",H.left),h.set("top",H.top),(0,a.setStyle)(M,"left",`${H.left}px`),(0,a.setStyle)(M,"top",`${H.top}px`),(0,a.setStyle)(M,"transform",null)}}),M}})(),T=h.get("top"),D=h.get("left");typeof T=="number"&&typeof D=="number"?((0,a.setStyle)(_,"top",`${T}px`),(0,a.setStyle)(_,"left",`${D}px`),(0,a.isInViewport)(_)||x()):x(),l.emit("mini",!0)}else k()}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d1F69:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,storage:d,template:{$video:h,$poster:p}}=l;for(let g in c.moreVideoAttr)l.attr(g,c.moreVideoAttr[g]);c.muted&&(l.muted=c.muted),c.volume&&(h.volume=(0,a.clamp)(c.volume,0,1));let v=d.get("volume");for(let g in typeof v=="number"&&(h.volume=(0,a.clamp)(v,0,1)),c.poster&&(0,a.setStyle)(p,"backgroundImage",`url(${c.poster})`),c.autoplay&&(h.autoplay=c.autoplay),c.playsInline&&(h.playsInline=!0,h["webkit-playsinline"]=!0),c.theme&&(c.cssVar["--art-theme"]=c.theme),c.cssVar)l.cssVar(g,c.cssVar[g]);l.url=c.url}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kewk9:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h}=l;(0,a.def)(l,"pause",{value(){let p=c.pause();return h.show=d.get("Pause"),l.emit("pause"),p}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4XzDs":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,template:{$video:h}}=l;if(document.pictureInPictureEnabled){let{template:{$video:p},proxy:v,notice:g}=l;p.disablePictureInPicture=!1,(0,a.def)(l,"pip",{get:()=>document.pictureInPictureElement,set(y){y?(l.state="pip",p.requestPictureInPicture().catch(S=>{throw g.show=S,S})):document.exitPictureInPicture().catch(S=>{throw g.show=S,S})}}),v(p,"enterpictureinpicture",()=>{l.emit("pip",!0)}),v(p,"leavepictureinpicture",()=>{l.emit("pip",!1)})}else if(h.webkitSupportsPresentationMode){let{$video:p}=l.template;p.webkitSetPresentationMode("inline"),(0,a.def)(l,"pip",{get:()=>p.webkitPresentationMode==="picture-in-picture",set(v){v?(l.state="pip",p.webkitSetPresentationMode("picture-in-picture"),l.emit("pip",!0)):(p.webkitSetPresentationMode("inline"),l.emit("pip",!1))}})}else(0,a.def)(l,"pip",{get:()=>!1,set(){d.show=c.get("PIP Not Supported")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jphfi:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h}=l;(0,a.def)(l,"playbackRate",{get:()=>c.playbackRate,set(p){p?p!==c.playbackRate&&(c.playbackRate=p,h.show=`${d.get("Rate")}: ${p===1?d.get("Normal"):`${p}x`}`):l.playbackRate=1}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iNpeS:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"played",{get:()=>l.currentTime/l.duration})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aBIWL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"playing",{get:()=>typeof c.playing=="boolean"?c.playing:c.currentTime>0&&!c.paused&&!c.ended&&c.readyState>2})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],hRBri:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,option:h,constructor:{instances:p},template:{$video:v}}=l;(0,a.def)(l,"play",{async value(){let g=await v.play();if(d.show=c.get("Play"),l.emit("play"),h.mutex)for(let y=0;ys);var a=e("../utils");function s(l){let{template:{$poster:c}}=l;(0,a.def)(l,"poster",{get:()=>{try{return c.style.backgroundImage.match(/"(.*)"/)[1]}catch{return""}},set(d){(0,a.setStyle)(c,"backgroundImage",`url(${d})`)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"17rUP":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"quality",{set(c){let{controls:d,notice:h,i18n:p}=l,v=c.find(g=>g.default)||c[0];d.update({name:"quality",position:"right",index:10,style:{marginRight:"10px"},html:v?.html||"",selector:c,onSelect:async g=>(await l.switchQuality(g.url),h.show=`${p.get("Switch Video")}: ${g.html}`,g.html)})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"55qzI":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"rect",{get:()=>(0,a.getRect)(l.template.$player)});let c=["bottom","height","left","right","top","width"];for(let d=0;dl.rect[h]})}(0,a.def)(l,"x",{get:()=>l.left+window.pageXOffset}),(0,a.def)(l,"y",{get:()=>l.top+window.pageYOffset})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bC6TG:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c,template:{$video:d}}=l,h=(0,a.createElement)("canvas");(0,a.def)(l,"getDataURL",{value:()=>new Promise((p,v)=>{try{h.width=d.videoWidth,h.height=d.videoHeight,h.getContext("2d").drawImage(d,0,0),p(h.toDataURL("image/png"))}catch(g){c.show=g,v(g)}})}),(0,a.def)(l,"getBlobUrl",{value:()=>new Promise((p,v)=>{try{h.width=d.videoWidth,h.height=d.videoHeight,h.getContext("2d").drawImage(d,0,0),h.toBlob(g=>{p(URL.createObjectURL(g))})}catch(g){c.show=g,v(g)}})}),(0,a.def)(l,"screenshot",{value:async p=>{let v=await l.getDataURL(),g=p||`artplayer_${(0,a.secondToTime)(d.currentTime)}`;return(0,a.download)(v,`${g}.png`),l.emit("screenshot",v),v}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],j8GRO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c}=l;(0,a.def)(l,"seek",{set(d){l.currentTime=d,l.duration&&(c.show=`${(0,a.secondToTime)(l.currentTime)} / ${(0,a.secondToTime)(l.duration)}`),l.emit("seek",l.currentTime)}}),(0,a.def)(l,"forward",{set(d){l.seek=l.currentTime+d}}),(0,a.def)(l,"backward",{set(d){l.seek=l.currentTime-d}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cn7iR:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let c=["mini","pip","fullscreen","fullscreenWeb"];(0,a.def)(l,"state",{get:()=>c.find(d=>l[d])||"standard",set(d){for(let h=0;hs);var a=e("../utils");function s(l){let{notice:c,i18n:d,template:h}=l;(0,a.def)(l,"subtitleOffset",{get:()=>h.$track?.offset||0,set(p){let{cues:v}=l.subtitle;if(!h.$track||v.length===0)return;let g=(0,a.clamp)(p,-10,10);h.$track.offset=g;for(let y=0;ys);var a=e("../utils");function s(l){function c(d,h){return new Promise((p,v)=>{if(d===l.url)return;let{playing:g,aspectRatio:y,playbackRate:S}=l;l.pause(),l.url=d,l.notice.show="",l.once("video:error",v),l.once("video:loadedmetadata",()=>{l.currentTime=h}),l.once("video:canplay",async()=>{l.playbackRate=S,l.aspectRatio=y,g&&await l.play(),l.notice.show="",p()})})}(0,a.def)(l,"switchQuality",{value:d=>c(d,l.currentTime)}),(0,a.def)(l,"switchUrl",{value:d=>c(d,0)}),(0,a.def)(l,"switch",{set:l.switchUrl})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7iMuh":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"theme",{get:()=>l.cssVar("--art-theme"),set(c){l.cssVar("--art-theme",c)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6P0RS":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{events:c,option:d,template:{$progress:h,$video:p}}=l,v=null,g=null,y=!1,S=!1,k=!1;c.hover(h,()=>{k=!0},()=>{k=!1}),l.on("setBar",async(C,x,E)=>{let _=l.controls?.thumbnails,{url:T,scale:D}=d.thumbnails;if(!_||!T)return;let P=C==="played"&&E&&a.isMobile;if(C==="hover"||P){if(y||(y=!0,g=await(0,a.loadImg)(T,D),S=!0),!S||!k)return;let M=h.clientWidth*x;(0,a.setStyle)(_,"display","flex"),M>0&&Mh.clientWidth-Y/2?(0,a.setStyle)(L,"left",`${h.clientWidth-Y}px`):(0,a.setStyle)(L,"left",`${O-Y/2}px`)})(M):a.isMobile||(0,a.setStyle)(_,"display","none"),P&&(clearTimeout(v),v=setTimeout(()=>{(0,a.setStyle)(_,"display","none")},500))}}),(0,a.def)(l,"thumbnails",{get:()=>l.option.thumbnails,set(C){C.url&&!l.option.isLive&&(l.option.thumbnails=C,clearTimeout(v),v=null,g=null,y=!1,S=!1)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eNi78:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"toggle",{value:()=>l.playing?l.pause():l.play()})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7AUBD":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"type",{get:()=>l.option.type,set(c){l.option.type=c}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cnlLL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,template:{$video:d}}=l;(0,a.def)(l,"url",{get:()=>d.src,async set(h){if(h){let p=l.url,v=c.type||(0,a.getExt)(h),g=c.customType[v];v&&g?(await(0,a.sleep)(),l.loading.show=!0,g.call(l,d,h,l)):(URL.revokeObjectURL(p),d.src=h),p!==l.url&&(l.option.url=h,l.isReady&&p&&l.once("video:canplay",()=>{l.emit("restart",h)}))}else await(0,a.sleep)(),l.loading.show=!0}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iX66j:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h,storage:p}=l;(0,a.def)(l,"volume",{get:()=>c.volume||0,set:v=>{c.volume=(0,a.clamp)(v,0,1),h.show=`${d.get("Volume")}: ${Number.parseInt(100*c.volume,10)}`,c.volume!==0&&p.set("volume",c.volume)}}),(0,a.def)(l,"muted",{get:()=>c.muted,set:v=>{c.muted=v,l.emit("muted",v)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cjxJL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("./autoOrientation"),l=i.interopDefault(s),c=e("./autoPlayback"),d=i.interopDefault(c),h=e("./fastForward"),p=i.interopDefault(h),v=e("./lock"),g=i.interopDefault(v),y=e("./miniProgressBar"),S=i.interopDefault(y);n.default=class{constructor(k){this.art=k,this.id=0;let{option:C}=k;C.miniProgressBar&&!C.isLive&&this.add(S.default),C.lock&&a.isMobile&&this.add(g.default),C.autoPlayback&&!C.isLive&&this.add(d.default),C.autoOrientation&&a.isMobile&&this.add(l.default),C.fastForward&&a.isMobile&&!C.isLive&&this.add(p.default);for(let x=0;xthis.next(k,x)):this.next(k,C)}next(k,C){let x=C&&C.name||k.name||`plugin${this.id}`;return(0,a.errorHandle)(!(0,a.has)(this,x),`Cannot add a plugin that already has the same name: ${x}`),(0,a.def)(this,x,{value:C}),this}}},{"../utils":"aBlEo","./autoOrientation":"jb9jb","./autoPlayback":"21HWM","./fastForward":"4sxBO","./lock":"fjy9V","./miniProgressBar":"d0xRp","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jb9jb:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c,constructor:d,template:{$player:h,$video:p}}=l,v="art-auto-orientation",g="art-auto-orientation-fullscreen",y=!1;function S(){let{videoWidth:k,videoHeight:C}=p,x=document.documentElement.clientWidth,E=document.documentElement.clientHeight;return k>C&&xE}return l.on("fullscreenWeb",k=>{k?S()&&setTimeout(()=>{l.fullscreenWeb&&!(0,a.hasClass)(h,v)&&(function(){let C=document.documentElement.clientWidth,x=document.documentElement.clientHeight;(0,a.setStyle)(h,"width",`${x}px`),(0,a.setStyle)(h,"height",`${C}px`),(0,a.setStyle)(h,"transform-origin","0 0"),(0,a.setStyle)(h,"transform",`rotate(90deg) translate(0, -${C}px)`),(0,a.addClass)(h,v),l.isRotate=!0,l.emit("resize")})()},Number(d.AUTO_ORIENTATION_TIME??0)):(0,a.hasClass)(h,v)&&((0,a.setStyle)(h,"width",""),(0,a.setStyle)(h,"height",""),(0,a.setStyle)(h,"transform-origin",""),(0,a.setStyle)(h,"transform",""),(0,a.removeClass)(h,v),l.isRotate=!1,l.emit("resize"))}),l.on("fullscreen",async k=>{let C=!!screen?.orientation?.lock;if(k){if(C&&S())try{let x=screen.orientation.type.startsWith("portrait")?"landscape":"portrait";await screen.orientation.lock(x),y=!0,(0,a.addClass)(h,g)}catch(x){y=!1,c.show=x}}else if((0,a.hasClass)(h,g)&&(0,a.removeClass)(h,g),C&&y){try{screen.orientation.unlock()}catch{}y=!1}}),{name:"autoOrientation",get state(){return(0,a.hasClass)(h,v)}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"21HWM":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,icons:d,storage:h,constructor:p,proxy:v,template:{$poster:g}}=l,y=l.layers.add({name:"auto-playback",html:'
'}),S=(0,a.query)(".art-auto-playback-last",y),k=(0,a.query)(".art-auto-playback-jump",y),C=(0,a.query)(".art-auto-playback-close",y);(0,a.append)(C,d.close);let x=null;function E(){let _=(h.get("times")||{})[l.option.id||l.option.url];clearTimeout(x),(0,a.setStyle)(y,"display","none"),_&&_>=p.AUTO_PLAYBACK_MIN&&((0,a.setStyle)(y,"display","flex"),S.textContent=`${c.get("Last Seen")} ${(0,a.secondToTime)(_)}`,k.textContent=c.get("Jump Play"),v(C,"click",()=>{(0,a.setStyle)(y,"display","none")}),v(k,"click",()=>{l.seek=_,l.play(),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","none")}),l.once("video:timeupdate",()=>{x=setTimeout(()=>{(0,a.setStyle)(y,"display","none")},p.AUTO_PLAYBACK_TIMEOUT)}))}return l.on("video:timeupdate",()=>{if(l.playing){let _=h.get("times")||{},T=Object.keys(_);T.length>p.AUTO_PLAYBACK_MAX&&delete _[T[0]],_[l.option.id||l.option.url]=l.currentTime,h.set("times",_)}}),l.on("ready",E),l.on("restart",E),{name:"auto-playback",get times(){return h.get("times")||{}},clear:()=>h.del("times"),delete(_){let T=h.get("times")||{};return delete T[_],h.set("times",T),T}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4sxBO":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{constructor:c,proxy:d,template:{$player:h,$video:p}}=l,v=null,g=!1,y=1,S=()=>{clearTimeout(v),g&&(g=!1,l.playbackRate=y,(0,a.removeClass)(h,"art-fast-forward"))};return d(p,"touchstart",k=>{k.touches.length===1&&l.playing&&!l.isLock&&(v=setTimeout(()=>{g=!0,y=l.playbackRate,l.playbackRate=c.FAST_FORWARD_VALUE,(0,a.addClass)(h,"art-fast-forward")},c.FAST_FORWARD_TIME))}),l.on("document:touchmove",S),l.on("document:touchend",S),{name:"fastForward",get state(){return(0,a.hasClass)(h,"art-fast-forward")}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fjy9V:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{layers:c,icons:d,template:{$player:h}}=l;function p(){return(0,a.hasClass)(h,"art-lock")}function v(){(0,a.addClass)(h,"art-lock"),l.isLock=!0,l.emit("lock",!0)}function g(){(0,a.removeClass)(h,"art-lock"),l.isLock=!1,l.emit("lock",!1)}return c.add({name:"lock",mounted(y){let S=(0,a.append)(y,d.lock),k=(0,a.append)(y,d.unlock);(0,a.setStyle)(S,"display","none"),l.on("lock",C=>{C?((0,a.setStyle)(S,"display","inline-flex"),(0,a.setStyle)(k,"display","none")):((0,a.setStyle)(S,"display","none"),(0,a.setStyle)(k,"display","inline-flex"))})},click(){p()?g():v()}}),{name:"lock",get state(){return p()},set state(y){y?v():g()}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d0xRp:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return l.on("control",c=>{c?(0,a.removeClass)(l.template.$player,"art-mini-progress-bar"):(0,a.addClass)(l.template.$player,"art-mini-progress-bar")}),{name:"mini-progress-bar"}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bwLGT:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("../utils/component"),l=i.interopDefault(s),c=e("./aspectRatio"),d=i.interopDefault(c),h=e("./flip"),p=i.interopDefault(h),v=e("./playbackRate"),g=i.interopDefault(v),y=e("./subtitleOffset"),S=i.interopDefault(y);class k extends l.default{constructor(x){super(x);let{option:E,controls:_,template:{$setting:T}}=x;this.name="setting",this.$parent=T,this.id=0,this.active=null,this.cache=new Map,this.option=[...this.builtin,...E.settings],E.setting&&(this.format(),this.render(),x.on("blur",()=>{this.show&&(this.show=!1,this.render())}),x.on("focus",D=>{let P=(0,a.includeFromEvent)(D,_.setting),M=(0,a.includeFromEvent)(D,this.$parent);!this.show||P||M||(this.show=!1,this.render())}),x.on("resize",()=>this.resize()))}get builtin(){let x=[],{option:E}=this.art;return E.playbackRate&&x.push((0,g.default)(this.art)),E.aspectRatio&&x.push((0,d.default)(this.art)),E.flip&&x.push((0,p.default)(this.art)),E.subtitleOffset&&x.push((0,S.default)(this.art)),x}traverse(x,E=this.option){for(let _=0;_{E.default=E===x,E.default&&E.$item&&(0,a.inverseClass)(E.$item,"art-current")},x.$option),this.render(x.$parents)}format(x=this.option,E,_,T=[]){for(let D=0;DE}),(0,a.def)(P,"$parents",{get:()=>_}),(0,a.def)(P,"$option",{get:()=>x});let M=[];(0,a.def)(P,"$events",{get:()=>M}),(0,a.def)(P,"$formatted",{get:()=>!0})}this.format(P.selector||[],P,x,T)}this.option=x}find(x=""){let E=null;return this.traverse(_=>{_.name===x&&(E=_)}),E}resize(){let{controls:x,constructor:{SETTING_WIDTH:E,SETTING_ITEM_HEIGHT:_},template:{$player:T,$setting:D}}=this.art;if(x.setting&&this.show){let P=this.active[0]?.$parent?.width||E,{left:M,width:O}=(0,a.getRect)(x.setting),{left:L,width:B}=(0,a.getRect)(T),j=M-L+O/2-P/2,H=this.active===this.option?this.active.length*_:(this.active.length+1)*_;if((0,a.setStyle)(D,"height",`${H}px`),(0,a.setStyle)(D,"width",`${P}px`),this.art.isRotate||a.isMobile)return;j+P>B?((0,a.setStyle)(D,"left",null),(0,a.setStyle)(D,"right",null)):((0,a.setStyle)(D,"left",`${j}px`),(0,a.setStyle)(D,"right","auto"))}}inactivate(x){for(let E=0;E
'),O=(0,a.createElement)("div");(0,a.addClass)(O,"art-setting-item-left-icon"),(0,a.append)(O,T),(0,a.append)(M,O),(0,a.append)(M,x.$parent.html);let L=_(P,"click",()=>this.render(x.$parents));x.$parent.$events.push(L),(0,a.append)(E,P)}createItem(x,E=!1){if(!this.cache.has(x.$option))return;let _=this.cache.get(x.$option),T=x.$item,D="selector";(0,a.has)(x,"switch")&&(D="switch"),(0,a.has)(x,"range")&&(D="range"),(0,a.has)(x,"onClick")&&(D="button");let{icons:P,proxy:M,constructor:O}=this.art,L=(0,a.createElement)("div");(0,a.addClass)(L,"art-setting-item"),(0,a.setStyle)(L,"height",`${O.SETTING_ITEM_HEIGHT}px`),L.dataset.name=x.name||"",L.dataset.value=x.value||"";let B=(0,a.append)(L,'
'),j=(0,a.append)(L,'
'),H=(0,a.createElement)("div");switch((0,a.addClass)(H,"art-setting-item-left-icon"),D){case"button":case"switch":case"range":(0,a.append)(H,x.icon||P.config);break;case"selector":x.selector?.length?(0,a.append)(H,x.icon||P.config):(0,a.append)(H,P.check)}(0,a.append)(B,H),(0,a.def)(x,"$icon",{configurable:!0,get:()=>H}),(0,a.def)(x,"icon",{configurable:!0,get:()=>H.innerHTML,set(Y){H.innerHTML="",(0,a.append)(H,Y)}});let U=(0,a.createElement)("div");(0,a.addClass)(U,"art-setting-item-left-text"),(0,a.append)(U,x.html||""),(0,a.append)(B,U),(0,a.def)(x,"$html",{configurable:!0,get:()=>U}),(0,a.def)(x,"html",{configurable:!0,get:()=>U.innerHTML,set(Y){U.innerHTML="",(0,a.append)(U,Y)}});let K=(0,a.createElement)("div");switch((0,a.addClass)(K,"art-setting-item-right-tooltip"),(0,a.append)(K,x.tooltip||""),(0,a.append)(j,K),(0,a.def)(x,"$tooltip",{configurable:!0,get:()=>K}),(0,a.def)(x,"tooltip",{configurable:!0,get:()=>K.innerHTML,set(Y){K.innerHTML="",(0,a.append)(K,Y)}}),D){case"switch":{let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon");let ie=(0,a.append)(Y,P.switchOn),te=(0,a.append)(Y,P.switchOff);(0,a.setStyle)(x.switch?te:ie,"display","none"),(0,a.append)(j,Y),(0,a.def)(x,"$switch",{configurable:!0,get:()=>Y});let W=x.switch;(0,a.def)(x,"switch",{configurable:!0,get:()=>W,set(q){W=q,q?((0,a.setStyle)(te,"display","none"),(0,a.setStyle)(ie,"display",null)):((0,a.setStyle)(te,"display",null),(0,a.setStyle)(ie,"display","none"))}});break}case"range":{let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon");let ie=(0,a.append)(Y,'');ie.value=x.range[0],ie.min=x.range[1],ie.max=x.range[2],ie.step=x.range[3],(0,a.addClass)(ie,"art-setting-range"),(0,a.append)(j,Y),(0,a.def)(x,"$range",{configurable:!0,get:()=>ie});let te=[...x.range];(0,a.def)(x,"range",{configurable:!0,get:()=>te,set(W){te=[...W],ie.value=W[0],ie.min=W[1],ie.max=W[2],ie.step=W[3]}})}break;case"selector":if(x.selector?.length){let Y=(0,a.createElement)("div");(0,a.addClass)(Y,"art-setting-item-right-icon"),(0,a.append)(Y,P.arrowRight),(0,a.append)(j,Y)}}switch(D){case"switch":if(x.onSwitch){let Y=M(L,"click",async ie=>{x.switch=await x.onSwitch.call(this.art,x,L,ie)});x.$events.push(Y)}break;case"range":if(x.$range){if(x.onRange){let Y=M(x.$range,"change",async ie=>{x.range[0]=x.$range.valueAsNumber,x.tooltip=await x.onRange.call(this.art,x,L,ie)});x.$events.push(Y)}if(x.onChange){let Y=M(x.$range,"input",async ie=>{x.range[0]=x.$range.valueAsNumber,x.tooltip=await x.onChange.call(this.art,x,L,ie)});x.$events.push(Y)}}break;case"selector":{let Y=M(L,"click",async ie=>{x.selector?.length?this.render(x.selector):(this.check(x),x.$parent.onSelect&&(x.$parent.tooltip=await x.$parent.onSelect.call(this.art,x,L,ie)))});x.$events.push(Y),x.default&&(0,a.addClass)(L,"art-current")}break;case"button":if(x.onClick){let Y=M(L,"click",async ie=>{x.tooltip=await x.onClick.call(this.art,x,L,ie)});x.$events.push(Y)}}(0,a.def)(x,"$item",{configurable:!0,get:()=>L}),E?(0,a.replaceElement)(L,T):(0,a.append)(_,L),x.mounted&&setTimeout(()=>x.mounted.call(this.art,x.$item,x),0)}render(x=this.option){if(this.active=x,this.cache.has(x)){let E=this.cache.get(x);(0,a.inverseClass)(E,"art-current")}else{let E=(0,a.createElement)("div");this.cache.set(x,E),(0,a.addClass)(E,"art-setting-panel"),(0,a.append)(this.$parent,E),(0,a.inverseClass)(E,"art-current"),x[0]?.$parent&&this.createHeader(x[0]);for(let _=0;_({value:g,name:`aspect-ratio-${g}`,default:g===s.aspectRatio,html:p(g)})),onSelect:g=>(s.aspectRatio=g.value,g.html),mounted:()=>{v(),s.on("aspectRatio",()=>v())}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ljJTO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,icons:d,constructor:{SETTING_ITEM_WIDTH:h,FLIP:p}}=l;function v(y){return c.get((0,a.capitalize)(y))}function g(){let y=l.setting.find(`flip-${l.flip}`);l.setting.check(y)}return{width:h,name:"flip",html:c.get("Video Flip"),tooltip:v(l.flip),icon:d.flip,selector:p.map(y=>({value:y,name:`flip-${y}`,default:y===l.flip,html:v(y)})),onSelect:y=>(l.flip=y.value,y.html),mounted:()=>{g(),l.on("flip",()=>g())}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3QcSQ":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){let{i18n:l,icons:c,constructor:{SETTING_ITEM_WIDTH:d,PLAYBACK_RATE:h}}=s;function p(g){return g===1?l.get("Normal"):g.toFixed(1)}function v(){let g=s.setting.find(`playback-rate-${s.playbackRate}`);s.setting.check(g)}return{width:d,name:"playback-rate",html:l.get("Play Speed"),tooltip:p(s.playbackRate),icon:c.playbackRate,selector:h.map(g=>({value:g,name:`playback-rate-${g}`,default:g===s.playbackRate,html:p(g)})),onSelect:g=>(s.playbackRate=g.value,g.html),mounted:()=>{v(),s.on("video:ratechange",()=>v())}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eB5hg:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){let{i18n:l,icons:c,constructor:d}=s;return{width:d.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:l.get("Subtitle Offset"),icon:c.subtitle,tooltip:"0s",range:[0,-10,10,.1],onChange:h=>(s.subtitleOffset=h.range[0],`${h.range[0]}s`),mounted:(h,p)=>{s.on("subtitleOffset",v=>{p.$range.value=v,p.tooltip=`${v}s`})}}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kwqbK:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{constructor(){this.name="artplayer_settings",this.settings={}}get(i){try{let a=JSON.parse(window.localStorage.getItem(this.name))||{};return i?a[i]:a}catch{return i?this.settings[i]:this.settings}}set(i,a){try{let s=Object.assign({},this.get(),{[i]:a});window.localStorage.setItem(this.name,JSON.stringify(s))}catch{this.settings[i]=a}}del(i){try{let a=this.get();delete a[i],window.localStorage.setItem(this.name,JSON.stringify(a))}catch{delete this.settings[i]}}clear(){try{window.localStorage.removeItem(this.name)}catch{this.settings={}}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],k5613:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("option-validator"),s=i.interopDefault(a),l=e("./scheme"),c=i.interopDefault(l),d=e("./utils"),h=e("./utils/component"),p=i.interopDefault(h);class v extends p.default{constructor(y){super(y),this.name="subtitle",this.option=null,this.destroyEvent=()=>null,this.init(y.option.subtitle);let S=!1;y.on("video:timeupdate",()=>{if(!this.url)return;let k=this.art.template.$video.webkitDisplayingFullscreen;typeof k=="boolean"&&k!==S&&(S=k,this.createTrack(k?"subtitles":"metadata",this.url))})}get url(){return this.art.template.$track.src}set url(y){this.switch(y)}get textTrack(){return this.art.template.$video?.textTracks?.[0]}get activeCues(){return this.textTrack?Array.from(this.textTrack.activeCues):[]}get cues(){return this.textTrack?Array.from(this.textTrack.cues):[]}style(y,S){let{$subtitle:k}=this.art.template;return typeof y=="object"?(0,d.setStyles)(k,y):(0,d.setStyle)(k,y,S)}update(){let{option:{subtitle:y},template:{$subtitle:S}}=this.art;S.innerHTML="",this.activeCues.length&&(this.art.emit("subtitleBeforeUpdate",this.activeCues),S.innerHTML=this.activeCues.map((k,C)=>k.text.split(/\r?\n/).filter(x=>x.trim()).map(x=>`
${y.escape?(0,d.escape)(x):x}
`).join("")).join(""),this.art.emit("subtitleAfterUpdate",this.activeCues))}async switch(y,S={}){let{i18n:k,notice:C,option:x}=this.art,E={...x.subtitle,...S,url:y},_=await this.init(E);return S.name&&(C.show=`${k.get("Switch Subtitle")}: ${S.name}`),_}createTrack(y,S){let{template:k,proxy:C,option:x}=this.art,{$video:E,$track:_}=k,T=(0,d.createElement)("track");T.default=!0,T.kind=y,T.src=S,T.label=x.subtitle.name||"Artplayer",T.track.mode="hidden",T.onload=()=>{this.art.emit("subtitleLoad",this.cues,this.option)},this.art.events.remove(this.destroyEvent),_.onload=null,(0,d.remove)(_),(0,d.append)(E,T),k.$track=T,this.destroyEvent=C(this.textTrack,"cuechange",()=>this.update())}async init(y){let{notice:S,template:{$subtitle:k}}=this.art;return this.textTrack?((0,s.default)(y,c.default.subtitle),y.url?(this.option=y,this.style(y.style),fetch(y.url).then(C=>C.arrayBuffer()).then(C=>{let x=new TextDecoder(y.encoding).decode(C);switch(y.type||(0,d.getExt)(y.url)){case"srt":{let E=(0,d.srtToVtt)(x),_=y.onVttLoad(E);return(0,d.vttToBlob)(_)}case"ass":{let E=(0,d.assToVtt)(x),_=y.onVttLoad(E);return(0,d.vttToBlob)(_)}case"vtt":{let E=y.onVttLoad(x);return(0,d.vttToBlob)(E)}default:return y.url}}).then(C=>(k.innerHTML="",this.url===C||(URL.revokeObjectURL(this.url),this.createTrack("metadata",C)),C)).catch(C=>{throw k.innerHTML="",S.show=C,C})):void 0):null}}n.default=v},{"option-validator":"g7VGh","./scheme":"biLjm","./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fwOA1:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("../package.json"),a=e("./utils");class s{constructor(c){this.art=c;let{option:d,constructor:h}=c;d.container instanceof Element?this.$container=d.container:(this.$container=(0,a.query)(d.container),(0,a.errorHandle)(this.$container,`No container element found by ${d.container}`)),(0,a.errorHandle)((0,a.supportsFlex)(),"The current browser does not support flex layout");let p=this.$container.tagName.toLowerCase();(0,a.errorHandle)(p==="div",`Unsupported container element type, only support 'div' but got '${p}'`),(0,a.errorHandle)(h.instances.every(v=>v.template.$container!==this.$container),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=c.id,this.init()}static get html(){return`
Player version:
${i.version}
Video url:
Video volume:
Video time:
Video duration:
Video resolution:
x
[x]
`}query(c){return(0,a.query)(c,this.$container)}init(){let{option:c}=this.art;if(c.useSSR||(this.$container.innerHTML=s.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),c.proxy){let d=c.proxy.call(this.art,this.art);(0,a.errorHandle)(d instanceof HTMLVideoElement||d instanceof HTMLCanvasElement,"Function 'option.proxy' needs to return 'HTMLVideoElement' or 'HTMLCanvasElement'"),(0,a.replaceElement)(d,this.$video),d.className="art-video",this.$video=d}c.backdrop&&(0,a.addClass)(this.$player,"art-backdrop"),a.isMobile&&(0,a.addClass)(this.$player,"art-mobile")}destroy(c){c?this.$container.innerHTML="":(0,a.addClass)(this.$player,"art-destroy")}}n.default=s},{"../package.json":"lh3R5","./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4NM7P":[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n),n.default=class{on(i,a,s){let l=this.e||(this.e={});return(l[i]||(l[i]=[])).push({fn:a,ctx:s}),this}once(i,a,s){let l=this;function c(...d){l.off(i,c),a.apply(s,d)}return c._=a,this.on(i,c,s)}emit(i,...a){let s=((this.e||(this.e={}))[i]||[]).slice();for(let l=0;l[]},currentEpisodeIndex:{type:Number,default:0},autoNext:{type:Boolean,default:!0},headers:{type:Object,default:()=>({})},qualities:{type:Array,default:()=>[]},hasMultipleQualities:{type:Boolean,default:!1},initialQuality:{type:String,default:"默认"},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>({})}},emits:["close","error","player-change","next-episode","episode-selected","quality-change","parser-change"],setup(e,{emit:t}){yce.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2,2.5,3,4,5];const n=e,r=t,i=ue(null),a=ue(null),s=ue(null),l=ue(0),c=ue(3),d=ue(!1),h=ue(450),p=JSON.parse(localStorage.getItem("loopEnabled")||"false"),v=JSON.parse(localStorage.getItem("autoNextEnabled")||"true"),g=ue(p?!1:v),y=ue(p),S=ue(0),k=ue(null),C=ue(!1),x=ue(!1),E=ue(!1),_=ue(!1),T=ue(!1),D=ue(""),P=ue("默认"),M=ue([]),O=ue(""),L=ue(0),B=F(()=>!!n.videoUrl),j=F(()=>{L.value;const Ot=O.value||n.videoUrl;if(!Ot)return"";const bn=n.headers||{};return om(Ot,bn)}),H=F(()=>!P.value||M.value.length===0?"默认":M.value.find(bn=>bn.name===P.value)?.name||P.value||"默认"),U=F(()=>M.value.map(Ot=>({name:Ot.name||"未知",value:Ot.name,url:Ot.url}))),{showSkipSettingsDialog:K,skipIntroEnabled:Y,skipOutroEnabled:ie,skipIntroSeconds:te,skipOutroSeconds:W,skipEnabled:q,initSkipSettings:Q,resetSkipState:se,applySkipSettings:ae,applyIntroSkipImmediate:re,handleTimeUpdate:Ce,closeSkipSettingsDialog:Ve,saveSkipSettings:ge,onUserSeekStart:xe,onUserSeekEnd:Ge,onFullscreenChangeStart:tt,onFullscreenChangeEnd:Ue}=E4e({onSkipToNext:()=>{g.value&&Fe()&&$e()},getCurrentTime:()=>a.value?.video?.currentTime||0,setCurrentTime:Ot=>{a.value?.video&&(a.value.video.currentTime=Ot)},getDuration:()=>a.value?.video?.duration||0}),_e=Ot=>{if(!Ot)return!1;const kr=[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp",".ts",".m3u8",".mpd"].some(oe=>Ot.toLowerCase().includes(oe)),sr=Ot.toLowerCase().includes("m3u8")||Ot.toLowerCase().includes("mpd")||Ot.toLowerCase().includes("rtmp")||Ot.toLowerCase().includes("rtsp");return kr||sr?!0:!(Ot.includes("://")&&(Ot.includes(".html")||Ot.includes(".php")||Ot.includes(".asp")||Ot.includes(".jsp")||Ot.match(/\/[^.?#]*$/))&&!kr&&!sr)},ve=async Ot=>{if(!(!i.value||!Ot)){console.log("初始化 ArtPlayer:",Ot);try{const bn=oK(Ot);console.log(`已为ArtPlayer应用CSP策略: ${bn}`)}catch(bn){console.warn("应用CSP策略失败:",bn)}if(Jt(),se(),vt(),await dn(),h.value=rn(),i.value.style.height=`${h.value}px`,!_e(Ot)){console.log("检测到网页链接,在新窗口打开:",Ot),yt.info("检测到网页链接,正在新窗口打开..."),window.open(Ot,"_blank"),r("close");return}if(s.value?s.value.destroy():s.value=new A4e,a.value){const bn=$h(),kr={...n.headers||{},...bn.autoBypass?{}:{}},sr=om(Ot,kr);sr!==Ot&&console.log("🔄 [代理播放] switchUrl使用代理地址"),console.log("使用 switchUrl 方法切换视频源:",sr);try{await a.value.switchUrl(sr),console.log("视频源切换成功"),se(),ae();return}catch(zr){console.error("switchUrl 切换失败,回退到销毁重建方式:",zr),s.value&&s.value.destroy(),a.value.destroy(),a.value=null}}try{const bn=$h(),kr={...n.headers||{},...bn.autoBypass?{}:{}},sr=om(Ot,kr);sr!==Ot&&console.log("🔄 [代理播放] 使用代理地址播放视频");const zr=KT(sr);D.value=zr,console.log("检测到视频格式:",zr);const oe=new yce({container:i.value,url:sr,poster:n.poster,volume:.7,isLive:!1,muted:!1,autoplay:!0,pip:!0,autoSize:!1,autoMini:!0,width:"100%",height:h.value,screenshot:!0,setting:!0,loop:!1,flip:!0,playbackRate:!0,aspectRatio:!0,fullscreen:!0,fullscreenWeb:!0,subtitleOffset:!0,miniProgressBar:!0,mutex:!0,backdrop:!0,playsInline:!0,autoPlayback:!0,airplay:!0,theme:"#23ade5",lang:"zh-cn",whitelist:["*"],type:zr==="hls"?"m3u8":zr==="flv"?"flv":zr==="dash"?"mpd":"",customType:zr!=="native"?{[zr==="hls"?"m3u8":zr==="flv"?"flv":zr==="dash"?"mpd":zr]:function(ne,ee,J){const ce=$h(),Se={...n.headers||{},...ce.autoBypass?{}:{}};let ke=null;switch(zr){case"hls":ke=Cy.hls(ne,ee,Se);break;case"flv":ke=Cy.flv(ne,ee,Se);break;case"dash":ke=Cy.dash(ne,ee,Se);break}ke&&(J.customPlayer=ke,J.customPlayerFormat=zr),console.log(`${zr.toUpperCase()} 播放器加载成功`)}}:{},controls:[{position:"right",html:Fe()?"下一集":"",tooltip:Fe()?"播放下一集":"",style:Fe()?{}:{display:"none"},click:function(){$e()}},{position:"right",html:M.value.length>1?`画质: ${H.value}`:"",style:M.value.length>1?{}:{display:"none"},click:function(){un()}},{position:"right",html:n.episodes.length>1?"选集":"",tooltip:n.episodes.length>1?"选择集数":"",style:n.episodes.length>1?{}:{display:"none"},click:function(){rr()}},{position:"right",html:"关闭",tooltip:"关闭播放器",click:function(){at()}}],quality:[],subtitle:{url:"",type:"srt",encoding:"utf-8",escape:!0},contextmenu:[{html:"自定义菜单",click:function(){console.log("点击了自定义菜单")}}],layers:[{name:"episodeLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"},click:function(ne){ne.target.classList.contains("episode-layer-background")&&Dn()}},{name:"qualityLayer",html:"",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.8)",display:"none",zIndex:"100",padding:"0",boxSizing:"border-box",overflow:"hidden"},click:function(ne){ne.target.classList.contains("quality-layer-background")&&An()}}],plugins:[]});oe.on("ready",()=>{console.log("ArtPlayer 准备就绪"),ae()}),oe.on("video:loadstart",()=>{se()}),oe.on("video:canplay",()=>{Jt(),ae()}),oe.on("video:timeupdate",()=>{Ce()}),oe.on("video:seeking",()=>{xe()}),oe.on("video:seeked",()=>{Ge()}),oe.on("video:playing",()=>{Jt(),vt(),re()||(ae(),setTimeout(()=>{ae()},50))}),oe.on("fullscreen",ne=>{tt(),setTimeout(()=>{Ue()},500)}),oe.on("video:error",ne=>{if(console.error("ArtPlayer 播放错误:",ne),!_e(Ot)){console.log("播放失败,检测到可能是网页链接,在新窗口打开:",Ot),yt.info("视频播放失败,检测到网页链接,正在新窗口打开..."),window.open(Ot,"_blank"),r("close");return}Ht(Ot)}),oe.on("video:ended",()=>{try{if(console.log("视频播放结束"),E.value||_.value){console.log("正在处理中,忽略重复的视频结束事件");return}if(y.value){console.log("循环播放:重新播放当前选集"),_.value=!0,setTimeout(()=>{try{r("episode-selected",n.currentEpisodeIndex)}catch(ne){console.error("循环播放触发选集事件失败:",ne),yt.error("循环播放失败,请重试"),_.value=!1}},1e3);return}g.value&&Fe()?(E.value=!0,Ee()):Fe()||yt.info("全部播放完毕")}catch(ne){console.error("视频结束事件处理失败:",ne),yt.error("视频结束处理失败"),E.value=!1,_.value=!1}}),oe.on("destroy",()=>{console.log("ArtPlayer 已销毁"),We()}),a.value=oe}catch(bn){console.error("创建 ArtPlayer 实例失败:",bn),yt.error("播放器初始化失败"),r("error","播放器初始化失败")}}},me=()=>{if(n.qualities&&n.qualities.length>0){M.value=[...n.qualities],P.value=n.initialQuality||n.qualities[0]?.name||"默认";const Ot=M.value.find(bn=>bn.name===P.value);O.value=Ot?.url||n.videoUrl}else M.value=[],P.value="默认",O.value=n.videoUrl;console.log("画质数据初始化完成:",{available:M.value,current:P.value,currentPlayingUrl:O.value})},Oe=()=>{if(a.value)try{const Ot=a.value.template.$container;if(Ot){const bn=Ot.querySelector(".art-controls-right");if(bn){const kr=bn.querySelectorAll(".art-control");for(let sr=0;sr{const bn=M.value.find(kr=>kr.name===Ot);if(!bn){console.warn("未找到指定画质:",Ot);return}console.log("切换画质:",Ot,bn),a.value&&(a.value.currentTime,a.value.paused),P.value=Ot,O.value=bn.url,Oe(),r("quality-change",bn)},Ke=Ot=>{const bn=M.value.find(kr=>kr.name===Ot);bn&&qe(bn.name)},at=()=>{console.log("关闭 ArtPlayer 播放器"),Jt(),a.value&&(a.value.hls&&(a.value.hls.destroy(),a.value.hls=null),a.value.destroy(),a.value=null),r("close")},ft=Ot=>{r("player-change",Ot)},ct=Ot=>{r("parser-change",Ot)},wt=Ot=>{console.log("代理播放地址变更:",Ot);try{const bn=JSON.parse(localStorage.getItem("addressSettings")||"{}");Ot==="disabled"?bn.proxyPlayEnabled=!1:(bn.proxyPlayEnabled=!0,bn.proxyPlay=Ot),localStorage.setItem("addressSettings",JSON.stringify(bn)),window.dispatchEvent(new CustomEvent("addressSettingsChanged")),n.videoUrl&&dn(()=>{ve(n.videoUrl)})}catch(bn){console.error("保存代理播放设置失败:",bn)}},Ct=()=>{K.value=!0},Rt=Ot=>{ge(Ot),yt.success("片头片尾设置已保存"),Ve()},Ht=Ot=>{d.value||(l.value{if(a.value)try{const bn=n.headers||{},kr=om(Ot,bn);console.log("重连使用URL:",kr),kr!==Ot&&console.log("🔄 [代理播放] 重连时使用代理地址"),a.value.switchUrl(kr),d.value=!1}catch(bn){console.error("重连时出错:",bn),d.value=!1,Ht(Ot)}},2e3*l.value)):(console.error("ArtPlayer 重连次数已达上限,停止重连"),yt.error(`视频播放失败,已重试 ${c.value} 次,请检查视频链接或网络连接`),r("error","视频播放失败,重连次数已达上限"),l.value=0,d.value=!1))},Jt=()=>{l.value=0,d.value=!1},rn=()=>{if(!i.value)return 450;const Ot=i.value.offsetWidth;if(Ot===0)return 450;const bn=16/9;let kr=Ot/bn;const sr=300,zr=Math.min(window.innerHeight*.7,600);return kr=Math.max(sr,Math.min(kr,zr)),console.log(`容器宽度: ${Ot}px, 计算高度: ${kr}px`),Math.round(kr)},vt=()=>{E.value=!1,_.value=!1},Fe=()=>n.episodes.length>0&&n.currentEpisodeIndexFe()?n.episodes[n.currentEpisodeIndex+1]:null,Ee=()=>{!g.value||!Fe()||(console.log("开始自动下一集"),x.value?(S.value=10,C.value=!0,k.value=setInterval(()=>{S.value--,S.value<=0&&(clearInterval(k.value),k.value=null,C.value=!1,$e())},1e3)):$e())},We=()=>{k.value&&(clearInterval(k.value),k.value=null),S.value=0,C.value=!1,vt(),console.log("用户取消自动下一集")},$e=()=>{if(!Fe()){yt.info("已经是最后一集了"),vt();return}Me(),We(),vt(),r("next-episode",n.currentEpisodeIndex+1)},dt=()=>{g.value=!g.value,localStorage.setItem("autoNextEnabled",JSON.stringify(g.value)),g.value&&(y.value=!1,localStorage.setItem("loopEnabled","false")),g.value||We()},Qe=()=>{y.value=!y.value,localStorage.setItem("loopEnabled",JSON.stringify(y.value)),y.value&&(g.value=!1,localStorage.setItem("autoNextEnabled","false"),We()),console.log("循环播放开关:",y.value?"开启":"关闭")},Le=()=>{x.value=!x.value,console.log("倒计时开关:",x.value?"开启":"关闭"),x.value||We()},ht=()=>{T.value=!T.value},Vt=()=>{T.value=!1},Ut=()=>!n.episodes||n.episodes.length===0?'
':` +`)}`}i.defineInteropFlag(n),i.export(n,"srtToVtt",()=>a),i.export(n,"vttToBlob",()=>s),i.export(n,"assToVtt",()=>l)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f7gsx:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(c=0){return new Promise(d=>setTimeout(d,c))}function s(c,d){let h;return function(...p){let v=()=>(h=null,c.apply(this,p));clearTimeout(h),h=setTimeout(v,d)}}function l(c,d){let h=!1;return function(...p){h||(c.apply(this,p),h=!0,setTimeout(()=>{h=!1},d))}}i.defineInteropFlag(n),i.export(n,"sleep",()=>a),i.export(n,"debounce",()=>s),i.export(n,"throttle",()=>l)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],idCEj:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("option-validator"),s=i.interopDefault(a),l=e("../scheme"),c=e("./dom"),d=e("./error");n.default=class{constructor(h){this.id=0,this.art=h,this.cache=new Map,this.add=this.add.bind(this),this.remove=this.remove.bind(this),this.update=this.update.bind(this)}get show(){return(0,c.hasClass)(this.art.template.$player,`art-${this.name}-show`)}set show(h){let{$player:p}=this.art.template,v=`art-${this.name}-show`;h?(0,c.addClass)(p,v):(0,c.removeClass)(p,v),this.art.emit(this.name,h)}toggle(){this.show=!this.show}add(h){let p=typeof h=="function"?h(this.art):h;if(p.html=p.html||"",(0,s.default)(p,l.ComponentOption),!this.$parent||!this.name||p.disable)return;let v=p.name||`${this.name}${this.id}`,g=this.cache.get(v);(0,d.errorHandle)(!g,`Can't add an existing [${v}] to the [${this.name}]`),this.id+=1;let y=(0,c.createElement)("div");(0,c.addClass)(y,`art-${this.name}`),(0,c.addClass)(y,`art-${this.name}-${v}`);let S=Array.from(this.$parent.children);y.dataset.index=p.index||this.id;let k=S.find(x=>Number(x.dataset.index)>=Number(y.dataset.index));k?k.insertAdjacentElement("beforebegin",y):(0,c.append)(this.$parent,y),p.html&&(0,c.append)(y,p.html),p.style&&(0,c.setStyles)(y,p.style),p.tooltip&&(0,c.tooltip)(y,p.tooltip);let w=[];if(p.click){let x=this.art.events.proxy(y,"click",E=>{E.preventDefault(),p.click.call(this.art,this,E)});w.push(x)}return p.selector&&["left","right"].includes(p.position)&&this.selector(p,y,w),this[v]=y,this.cache.set(v,{$ref:y,events:w,option:p}),p.mounted&&p.mounted.call(this.art,y),y}remove(h){let p=this.cache.get(h);(0,d.errorHandle)(p,`Can't find [${h}] from the [${this.name}]`),p.option.beforeUnmount&&p.option.beforeUnmount.call(this.art,p.$ref);for(let v=0;vg);var a=e("../utils");let s="array",l="boolean",c="string",d="number",h="object",p="function";function v(y,S,k){return(0,a.errorHandle)(S===c||S===d||y instanceof Element,`${k.join(".")} require '${c}' or 'Element' type`)}let g={html:v,disable:`?${l}`,name:`?${c}`,index:`?${d}`,style:`?${h}`,click:`?${p}`,mounted:`?${p}`,tooltip:`?${c}|${d}`,width:`?${d}`,selector:`?${s}`,onSelect:`?${p}`,switch:`?${l}`,onSwitch:`?${p}`,range:`?${s}`,onRange:`?${p}`,onChange:`?${p}`};n.default={id:c,container:v,url:c,poster:c,type:c,theme:c,lang:c,volume:d,isLive:l,muted:l,autoplay:l,autoSize:l,autoMini:l,loop:l,flip:l,playbackRate:l,aspectRatio:l,screenshot:l,setting:l,hotkey:l,pip:l,mutex:l,backdrop:l,fullscreen:l,fullscreenWeb:l,subtitleOffset:l,miniProgressBar:l,useSSR:l,playsInline:l,lock:l,gesture:l,fastForward:l,autoPlayback:l,autoOrientation:l,airplay:l,proxy:`?${p}`,plugins:[p],layers:[g],contextmenu:[g],settings:[g],controls:[{...g,position:(y,S,k)=>{let w=["top","left","right"];return(0,a.errorHandle)(w.includes(y),`${k.join(".")} only accept ${w.toString()} as parameters`)}}],quality:[{default:`?${l}`,html:c,url:c}],highlight:[{time:d,text:c}],thumbnails:{url:c,number:d,column:d,width:d,height:d,scale:d},subtitle:{url:c,name:c,type:c,style:h,escape:l,encoding:c,onVttLoad:p},moreVideoAttr:h,i18n:h,icons:h,cssVar:h,customType:h}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6XHP2":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{ASPECT_RATIO:h}}=c,p=h.map(v=>`${v==="default"?d.get("Default"):v}`).join("");return{...l,html:`${d.get("Aspect Ratio")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.aspectRatio=y,v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="default"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("aspectRatio",y=>{let S=(0,a.queryAll)("span",v).find(k=>k.dataset.value===y);S&&(0,a.inverseClass)(S,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eF6AX:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){return l=>({...s,html:l.i18n.get("Close"),click:c=>{c.show=!1}})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7Wg1P":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{FLIP:h}}=c,p=h.map(v=>`${d.get((0,a.capitalize)(v))}`).join("");return{...l,html:`${d.get("Video Flip")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.flip=y.toLowerCase(),v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="normal"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("flip",y=>{let S=(0,a.queryAll)("span",v).find(k=>k.dataset.value===y);S&&(0,a.inverseClass)(S,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fjRnU:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){return l=>({...s,html:l.i18n.get("Video Info"),click:c=>{l.info.show=!0,c.show=!1}})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],hm1DY:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>{let{i18n:d,constructor:{PLAYBACK_RATE:h}}=c,p=h.map(v=>`${v===1?d.get("Normal"):v.toFixed(1)}`).join("");return{...l,html:`${d.get("Play Speed")}: ${p}`,click:(v,g)=>{let{value:y}=g.target.dataset;y&&(c.playbackRate=Number(y),v.show=!1)},mounted:v=>{let g=(0,a.query)('[data-value="1"]',v);g&&(0,a.inverseClass)(g,"art-current"),c.on("video:ratechange",()=>{let y=(0,a.queryAll)("span",v).find(S=>Number(S.dataset.value)===c.playbackRate);y&&(0,a.inverseClass)(y,"art-current")})}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aJBeL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>function(s){return{...s,html:`ArtPlayer ${a.version}`}});var a=e("../../package.json")},{"../../package.json":"lh3R5","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dp1yk:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("../utils/component"),l=i.interopDefault(s),c=e("./airplay"),d=i.interopDefault(c),h=e("./fullscreen"),p=i.interopDefault(h),v=e("./fullscreenWeb"),g=i.interopDefault(v),y=e("./pip"),S=i.interopDefault(y),k=e("./playAndPause"),w=i.interopDefault(k),x=e("./progress"),E=i.interopDefault(x),_=e("./screenshot"),T=i.interopDefault(_),D=e("./setting"),P=i.interopDefault(D),M=e("./time"),$=i.interopDefault(M),L=e("./volume"),B=i.interopDefault(L);class j extends l.default{constructor(U){super(U),this.isHover=!1,this.name="control",this.timer=Date.now();let{constructor:W}=U,{$player:K,$bottom:oe}=this.art.template;U.on("mousemove",()=>{a.isMobile||(this.show=!0)}),U.on("click",()=>{a.isMobile?this.toggle():this.show=!0}),U.on("document:mousemove",ae=>{this.isHover=(0,a.includeFromEvent)(ae,oe)}),U.on("video:timeupdate",()=>{!U.setting.show&&!this.isHover&&!U.isInput&&U.playing&&this.show&&Date.now()-this.timer>=W.CONTROL_HIDE_TIME&&(this.show=!1)}),U.on("control",ae=>{ae?((0,a.removeClass)(K,"art-hide-cursor"),(0,a.addClass)(K,"art-hover"),this.timer=Date.now()):((0,a.addClass)(K,"art-hide-cursor"),(0,a.removeClass)(K,"art-hover"))}),this.init()}init(){let{option:U}=this.art;U.isLive||this.add((0,E.default)({name:"progress",position:"top",index:10})),this.add({name:"thumbnails",position:"top",index:20}),this.add((0,w.default)({name:"playAndPause",position:"left",index:10})),this.add((0,B.default)({name:"volume",position:"left",index:20})),U.isLive||this.add((0,$.default)({name:"time",position:"left",index:30})),U.quality.length&&(0,a.sleep)().then(()=>{this.art.quality=U.quality}),U.screenshot&&!a.isMobile&&this.add((0,T.default)({name:"screenshot",position:"right",index:20})),U.setting&&this.add((0,P.default)({name:"setting",position:"right",index:30})),U.pip&&this.add((0,S.default)({name:"pip",position:"right",index:40})),U.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&this.add((0,d.default)({name:"airplay",position:"right",index:50})),U.fullscreenWeb&&this.add((0,g.default)({name:"fullscreenWeb",position:"right",index:60})),U.fullscreen&&this.add((0,p.default)({name:"fullscreen",position:"right",index:70}));for(let W=0;WU.selector}),(0,a.def)(ie,"$control_item",{get:()=>q}),(0,a.def)(ie,"$control_value",{get:()=>ae})}let Y=oe(ee,"click",async Q=>{let ie=(0,a.getComposedPath)(Q),q=U.selector.find(te=>te.$control_item===ie.find(Se=>te.$control_item===Se));this.check(q),U.onSelect&&(ae.innerHTML=await U.onSelect.call(this.art,q,q.$control_item,Q))});K.push(Y)}}n.default=j},{"../utils":"aBlEo","../utils/component":"idCEj","./airplay":"amOzz","./fullscreen":"3GuBU","./fullscreenWeb":"jj1KV","./pip":"jMeHN","./playAndPause":"u3h8M","./progress":"1XZSS","./screenshot":"dIscA","./setting":"aqA0g","./time":"ihweO","./volume":"fJVWn","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],amOzz:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("AirPlay"),mounted:d=>{let{proxy:h,icons:p}=c;(0,a.append)(d,p.airplay),h(d,"click",()=>c.airplay())}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"3GuBU":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Fullscreen"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.fullscreenOn),y=(0,a.append)(d,p.fullscreenOff);(0,a.setStyle)(y,"display","none"),h(d,"click",()=>{c.fullscreen=!c.fullscreen}),c.on("fullscreen",S=>{S?((0,a.tooltip)(d,v.get("Exit Fullscreen")),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","inline-flex")):((0,a.tooltip)(d,v.get("Fullscreen")),(0,a.setStyle)(g,"display","inline-flex"),(0,a.setStyle)(y,"display","none"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jj1KV:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Web Fullscreen"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.fullscreenWebOn),y=(0,a.append)(d,p.fullscreenWebOff);(0,a.setStyle)(y,"display","none"),h(d,"click",()=>{c.fullscreenWeb=!c.fullscreenWeb}),c.on("fullscreenWeb",S=>{S?((0,a.tooltip)(d,v.get("Exit Web Fullscreen")),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","inline-flex")):((0,a.tooltip)(d,v.get("Web Fullscreen")),(0,a.setStyle)(g,"display","inline-flex"),(0,a.setStyle)(y,"display","none"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jMeHN:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("PIP Mode"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c;(0,a.append)(d,p.pip),h(d,"click",()=>{c.pip=!c.pip}),c.on("pip",g=>{(0,a.tooltip)(d,v.get(g?"Exit PIP Mode":"PIP Mode"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],u3h8M:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,mounted:d=>{let{proxy:h,icons:p,i18n:v}=c,g=(0,a.append)(d,p.play),y=(0,a.append)(d,p.pause);function S(){(0,a.setStyle)(g,"display","flex"),(0,a.setStyle)(y,"display","none")}function k(){(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","flex")}(0,a.tooltip)(g,v.get("Play")),(0,a.tooltip)(y,v.get("Pause")),h(g,"click",()=>{c.play()}),h(y,"click",()=>{c.pause()}),c.playing?k():S(),c.on("video:playing",()=>{k()}),c.on("video:pause",()=>{S()})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"1XZSS":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"getPosFromEvent",()=>s),i.export(n,"setCurrentTime",()=>l),i.export(n,"default",()=>c);var a=e("../utils");function s(d,h){let{$progress:p}=d.template,{left:v}=(0,a.getRect)(p),g=a.isMobile?h.touches[0].clientX:h.clientX,y=(0,a.clamp)(g-v,0,p.clientWidth),S=y/p.clientWidth*d.duration,k=(0,a.secondToTime)(S),w=(0,a.clamp)(y/p.clientWidth,0,1);return{second:S,time:k,width:y,percentage:w}}function l(d,h){if(d.isRotate){let p=h.touches[0].clientY/d.height,v=p*d.duration;d.emit("setBar","played",p,h),d.seek=v}else{let{second:p,percentage:v}=s(d,h);d.emit("setBar","played",v,h),d.seek=p}}function c(d){return h=>{let{icons:p,option:v,proxy:g}=h;return{...d,html:'
',mounted:y=>{let S=null,k=!1,w=(0,a.query)(".art-progress-hover",y),x=(0,a.query)(".art-progress-loaded",y),E=(0,a.query)(".art-progress-played",y),_=(0,a.query)(".art-progress-highlight",y),T=(0,a.query)(".art-progress-indicator",y),D=(0,a.query)(".art-progress-tip",y);function P(M,$){let{width:L,time:B}=$||s(h,M);D.textContent=B;let j=D.clientWidth;L<=j/2?(0,a.setStyle)(D,"left",0):L>y.clientWidth-j/2?(0,a.setStyle)(D,"left",`${y.clientWidth-j}px`):(0,a.setStyle)(D,"left",`${L-j/2}px`)}p.indicator?(0,a.append)(T,p.indicator):(0,a.setStyle)(T,"backgroundColor","var(--art-theme)"),h.on("setBar",function(M,$,L){let B=M==="played"&&L&&a.isMobile;M==="loaded"&&(0,a.setStyle)(x,"width",`${100*$}%`),M==="hover"&&(0,a.setStyle)(w,"width",`${100*$}%`),M==="played"&&((0,a.setStyle)(E,"width",`${100*$}%`),(0,a.setStyle)(T,"left",`${100*$}%`)),B&&((0,a.setStyle)(D,"display","flex"),P(L,{width:y.clientWidth*$,time:(0,a.secondToTime)($*h.duration)}),clearTimeout(S),S=setTimeout(()=>{(0,a.setStyle)(D,"display","none")},500))}),h.on("video:loadedmetadata",function(){_.textContent="";for(let M=0;M`;(0,a.append)(_,B)}}),h.constructor.USE_RAF?h.on("raf",()=>{h.emit("setBar","played",h.played),h.emit("setBar","loaded",h.loaded)}):(h.on("video:timeupdate",()=>{h.emit("setBar","played",h.played)}),h.on("video:progress",()=>{h.emit("setBar","loaded",h.loaded)}),h.on("video:ended",()=>{h.emit("setBar","played",1)})),h.emit("setBar","loaded",h.loaded||0),a.isMobile||(g(y,"click",M=>{M.target!==T&&l(h,M)}),g(y,"mousemove",M=>{let{percentage:$}=s(h,M);if(h.emit("setBar","hover",$,M),(0,a.setStyle)(D,"display","flex"),(0,a.includeFromEvent)(M,_)){let{width:L}=s(h,M),{text:B}=M.target.dataset;D.textContent=B;let j=D.clientWidth;L<=j/2?(0,a.setStyle)(D,"left",0):L>y.clientWidth-j/2?(0,a.setStyle)(D,"left",`${y.clientWidth-j}px`):(0,a.setStyle)(D,"left",`${L-j/2}px`)}else P(M)}),g(y,"mouseleave",M=>{(0,a.setStyle)(D,"display","none"),h.emit("setBar","hover",0,M)}),g(y,"mousedown",M=>{k=M.button===0}),h.on("document:mousemove",M=>{if(k){let{second:$,percentage:L}=s(h,M);h.emit("setBar","played",L,M),h.seek=$}}),h.on("document:mouseup",()=>{k&&(k=!1)}))}}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dIscA:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Screenshot"),mounted:d=>{let{proxy:h,icons:p}=c;(0,a.append)(d,p.screenshot),h(d,"click",()=>{c.screenshot()})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aqA0g:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,tooltip:c.i18n.get("Show Setting"),mounted:d=>{let{proxy:h,icons:p,i18n:v}=c;(0,a.append)(d,p.setting),h(d,"click",()=>{c.setting.toggle(),c.setting.resize()}),c.on("setting",g=>{(0,a.tooltip)(d,v.get(g?"Hide Setting":"Show Setting"))})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ihweO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return c=>({...l,style:a.isMobile?{fontSize:"12px",padding:"0 5px"}:{cursor:"auto",padding:"0 10px"},mounted:d=>{function h(){let v=`${(0,a.secondToTime)(c.currentTime)} / ${(0,a.secondToTime)(c.duration)}`;v!==d.textContent&&(d.textContent=v)}h();let p=["video:loadedmetadata","video:timeupdate","video:progress"];for(let v=0;vs);var a=e("../utils");function s(l){return c=>({...l,mounted:d=>{let{proxy:h,icons:p}=c,v=(0,a.append)(d,p.volume),g=(0,a.append)(d,p.volumeClose),y=(0,a.append)(d,'
'),S=(0,a.append)(y,'
'),k=(0,a.append)(S,'
'),w=(0,a.append)(S,'
'),x=(0,a.append)(w,'
'),E=(0,a.append)(x,'
'),_=(0,a.append)(w,'
');function T(P){let{top:M,height:$}=(0,a.getRect)(w);return 1-(P.clientY-M)/$}function D(){if(c.muted||c.volume===0)(0,a.setStyle)(v,"display","none"),(0,a.setStyle)(g,"display","flex"),(0,a.setStyle)(_,"top","100%"),(0,a.setStyle)(E,"top","100%"),k.textContent=0;else{let P=100*c.volume;(0,a.setStyle)(v,"display","flex"),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(_,"top",`${100-P}%`),(0,a.setStyle)(E,"top",`${100-P}%`),k.textContent=Math.floor(P)}}if(D(),c.on("video:volumechange",D),h(v,"click",()=>{c.muted=!0}),h(g,"click",()=>{c.muted=!1}),a.isMobile)(0,a.setStyle)(y,"display","none");else{let P=!1;h(w,"mousedown",M=>{P=M.button===0,c.volume=T(M)}),c.on("document:mousemove",M=>{P&&(c.muted=!1,c.volume=T(M))}),c.on("document:mouseup",()=>{P&&(P=!1)})}}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jmVSD:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./clickInit"),s=i.interopDefault(a),l=e("./gestureInit"),c=i.interopDefault(l),d=e("./globalInit"),h=i.interopDefault(d),p=e("./hoverInit"),v=i.interopDefault(p),g=e("./moveInit"),y=i.interopDefault(g),S=e("./resizeInit"),k=i.interopDefault(S),w=e("./updateInit"),x=i.interopDefault(w),E=e("./viewInit"),_=i.interopDefault(E);n.default=class{constructor(T){this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),(0,s.default)(T,this),(0,v.default)(T,this),(0,y.default)(T,this),(0,k.default)(T,this),(0,c.default)(T,this),(0,_.default)(T,this),(0,h.default)(T,this),(0,x.default)(T,this)}proxy(T,D,P,M={}){if(Array.isArray(D))return D.map(L=>this.proxy(T,L,P,M));T.addEventListener(D,P,M);let $=()=>T.removeEventListener(D,P,M);return this.destroyEvents.push($),$}hover(T,D,P){D&&this.proxy(T,"mouseenter",D),P&&this.proxy(T,"mouseleave",P)}remove(T){let D=this.destroyEvents.indexOf(T);D>-1&&(T(),this.destroyEvents.splice(D,1))}destroy(){for(let T=0;Ts);var a=e("../utils");function s(l,c){let{constructor:d,template:{$player:h,$video:p}}=l;function v(y){(0,a.includeFromEvent)(y,h)?(l.isInput=y.target.tagName==="INPUT",l.isFocus=!0,l.emit("focus",y)):(l.isInput=!1,l.isFocus=!1,l.emit("blur",y))}l.on("document:click",v),l.on("document:contextmenu",v);let g=[];c.proxy(p,"click",y=>{let S=Date.now();g.push(S);let{MOBILE_CLICK_PLAY:k,DBCLICK_TIME:w,MOBILE_DBCLICK_PLAY:x,DBCLICK_FULLSCREEN:E}=d,_=g.filter(T=>S-T<=w);switch(_.length){case 1:l.emit("click",y),a.isMobile?!l.isLock&&k&&l.toggle():l.toggle(),g=_;break;case 2:l.emit("dblclick",y),a.isMobile?!l.isLock&&x&&l.toggle():E&&(l.fullscreen=!l.fullscreen),g=[];break;default:g=[]}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"9wEzB":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>l);var a=e("../control/progress"),s=e("../utils");function l(c,d){if(s.isMobile&&!c.option.isLive){let{$video:h,$progress:p}=c.template,v=null,g=!1,y=0,S=0,k=0,w=E=>{if(E.touches.length===1&&!c.isLock){v===p&&(0,a.setCurrentTime)(c,E),g=!0;let{pageX:_,pageY:T}=E.touches[0];y=_,S=T,k=c.currentTime}},x=E=>{if(E.touches.length===1&&g&&c.duration){let{pageX:_,pageY:T}=E.touches[0],D=(function($,L,B,j){let H=L-j,U=B-$,W=0;if(2>Math.abs(U)&&2>Math.abs(H))return W;let K=180*Math.atan2(H,U)/Math.PI;return K>=-45&&K<45?W=4:K>=45&&K<135?W=1:K>=-135&&K<-45?W=2:(K>=135&&K<=180||K>=-180&&K<-135)&&(W=3),W})(y,S,_,T),P=[3,4].includes(D),M=[1,2].includes(D);if(P&&!c.isRotate||M&&c.isRotate){let $=(0,s.clamp)((_-y)/c.width,-1,1),L=(0,s.clamp)((T-S)/c.height,-1,1),B=c.isRotate?L:$,j=v===h?c.constructor.TOUCH_MOVE_RATIO:1,H=(0,s.clamp)(k+c.duration*B*j,0,c.duration);c.seek=H,c.emit("setBar","played",(0,s.clamp)(H/c.duration,0,1),E),c.notice.show=`${(0,s.secondToTime)(H)} / ${(0,s.secondToTime)(c.duration)}`}}};c.option.gesture&&(d.proxy(h,"touchstart",E=>{v=h,w(E)}),d.proxy(h,"touchmove",x)),d.proxy(p,"touchstart",E=>{v=p,w(E)}),d.proxy(p,"touchmove",x),c.on("document:touchend",()=>{g&&(y=0,S=0,k=0,g=!1,v=null)})}}},{"../control/progress":"1XZSS","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ikBrS:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s,l){let c=["click","mouseup","keydown","touchend","touchmove","mousemove","pointerup","contextmenu","pointermove","visibilitychange","webkitfullscreenchange"],d=["resize","scroll","orientationchange"],h=[];function p(v={}){for(let y=0;y{let S=v.document||g.ownerDocument||document,k=l.proxy(S,y,w=>{s.emit(`document:${y}`,w)});h.push(k)}),d.forEach(y=>{let S=v.window||g.ownerDocument?.defaultView||window,k=l.proxy(S,y,w=>{s.emit(`window:${y}`,w)});h.push(k)})}p(),l.bindGlobalEvents=p}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jwNq0:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l,c){let{$player:d}=l.template;c.hover(d,h=>{(0,a.addClass)(d,"art-hover"),l.emit("hover",!0,h)},h=>{(0,a.removeClass)(d,"art-hover"),l.emit("hover",!1,h)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eqSsP:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s,l){let{$player:c}=s.template;l.proxy(c,"mousemove",d=>{s.emit("mousemove",d)})}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"42JNz":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l,c){let{option:d,constructor:h}=l;l.on("resize",()=>{let{aspectRatio:v,notice:g}=l;l.state==="standard"&&d.autoSize&&l.autoSize(),l.aspectRatio=v,g.show=""});let p=(0,a.debounce)(()=>l.emit("resize"),h.RESIZE_TIME);l.on("window:orientationchange",()=>p()),l.on("window:resize",()=>p()),screen&&screen.orientation&&screen.orientation.onchange&&c.proxy(screen.orientation,"change",()=>p())}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7kM1M":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(s){if(s.constructor.USE_RAF){let l=null;(function c(){s.playing&&s.emit("raf"),s.isDestroy||(l=requestAnimationFrame(c))})(),s.on("destroy",()=>{cancelAnimationFrame(l)})}}i.defineInteropFlag(n),i.export(n,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"2IW9m":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,constructor:d,template:{$container:h}}=l,p=(0,a.throttle)(()=>{l.emit("view",(0,a.isInViewport)(h,d.SCROLL_GAP))},d.SCROLL_TIME);l.on("window:scroll",()=>p()),l.on("view",v=>{c.autoMini&&(l.mini=!v)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dswts:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("./utils");n.default=class{constructor(a){this.art=a,this.keys={},a.option.hotkey&&!i.isMobile&&this.init()}init(){let{constructor:a}=this.art;this.add("Escape",()=>{this.art.fullscreenWeb&&(this.art.fullscreenWeb=!1)}),this.add("Space",()=>{this.art.toggle()}),this.add("ArrowLeft",()=>{this.art.backward=a.SEEK_STEP}),this.add("ArrowUp",()=>{this.art.volume+=a.VOLUME_STEP}),this.add("ArrowRight",()=>{this.art.forward=a.SEEK_STEP}),this.add("ArrowDown",()=>{this.art.volume-=a.VOLUME_STEP}),this.art.on("document:keydown",s=>{if(this.art.isFocus){let l=document.activeElement.tagName.toUpperCase(),c=document.activeElement.getAttribute("contenteditable");if(l!=="INPUT"&&l!=="TEXTAREA"&&c!==""&&c!=="true"&&!s.altKey&&!s.ctrlKey&&!s.metaKey&&!s.shiftKey){let d=this.keys[s.code];if(d){s.preventDefault();for(let h=0;h(0,Rt.getIcon)(rn,Jt[rn])})}}},{"bundle-text:./airplay.svg":"gkZgZ","bundle-text:./arrow-left.svg":"kQyD4","bundle-text:./arrow-right.svg":"64ztm","bundle-text:./aspect-ratio.svg":"72LvA","bundle-text:./check.svg":"4QmBo","bundle-text:./close.svg":"j1hoe","bundle-text:./config.svg":"hNZaT","bundle-text:./error.svg":"dKh4l","bundle-text:./flip.svg":"lIEIE","bundle-text:./fullscreen-off.svg":"1533e","bundle-text:./fullscreen-on.svg":"76ut3","bundle-text:./fullscreen-web-off.svg":"3NzMk","bundle-text:./fullscreen-web-on.svg":"12xHc","bundle-text:./loading.svg":"iVcUF","bundle-text:./lock.svg":"1J4so","bundle-text:./pause.svg":"1KgkK","bundle-text:./pip.svg":"4h4tM","bundle-text:./play.svg":"jecAY","bundle-text:./playback-rate.svg":"anPe9","bundle-text:./screenshot.svg":"9BPYQ","bundle-text:./setting.svg":"hsI9k","bundle-text:./state.svg":"gr1ZU","bundle-text:./switch-off.svg":"6kdAr","bundle-text:./switch-on.svg":"ksdMo","bundle-text:./unlock.svg":"iz5Qc","bundle-text:./volume-close.svg":"3OZoa","bundle-text:./volume.svg":"hRYA4","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],gkZgZ:[function(e,t,n,r){t.exports=''},{}],kQyD4:[function(e,t,n,r){t.exports=''},{}],"64ztm":[function(e,t,n,r){t.exports=''},{}],"72LvA":[function(e,t,n,r){t.exports=''},{}],"4QmBo":[function(e,t,n,r){t.exports=''},{}],j1hoe:[function(e,t,n,r){t.exports=''},{}],hNZaT:[function(e,t,n,r){t.exports=''},{}],dKh4l:[function(e,t,n,r){t.exports=''},{}],lIEIE:[function(e,t,n,r){t.exports=''},{}],"1533e":[function(e,t,n,r){t.exports=''},{}],"76ut3":[function(e,t,n,r){t.exports=''},{}],"3NzMk":[function(e,t,n,r){t.exports=''},{}],"12xHc":[function(e,t,n,r){t.exports=''},{}],iVcUF:[function(e,t,n,r){t.exports=''},{}],"1J4so":[function(e,t,n,r){t.exports=''},{}],"1KgkK":[function(e,t,n,r){t.exports=''},{}],"4h4tM":[function(e,t,n,r){t.exports=''},{}],jecAY:[function(e,t,n,r){t.exports=''},{}],anPe9:[function(e,t,n,r){t.exports=''},{}],"9BPYQ":[function(e,t,n,r){t.exports=''},{}],hsI9k:[function(e,t,n,r){t.exports=''},{}],gr1ZU:[function(e,t,n,r){t.exports=''},{}],"6kdAr":[function(e,t,n,r){t.exports=''},{}],ksdMo:[function(e,t,n,r){t.exports=''},{}],iz5Qc:[function(e,t,n,r){t.exports=''},{}],"3OZoa":[function(e,t,n,r){t.exports=''},{}],hRYA4:[function(e,t,n,r){t.exports=''},{}],kZ0F8:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./utils"),s=e("./utils/component"),l=i.interopDefault(s);class c extends l.default{constructor(h){super(h),this.name="info",a.isMobile||this.init()}init(){let{proxy:h,constructor:p,template:{$infoPanel:v,$infoClose:g,$video:y}}=this.art;h(g,"click",()=>{this.show=!1});let S=null,k=(0,a.queryAll)("[data-video]",v)||[];this.art.on("destroy",()=>clearTimeout(S)),(function w(){for(let x=0;x{(0,a.setStyle)(y,"display","none"),(0,a.setStyle)(S,"display",null)}),g.proxy(p.$state,"click",()=>h.play())}}n.default=c},{"./utils":"aBlEo","./utils/component":"idCEj","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fPVaU:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var i=e("./utils");n.default=class{constructor(a){this.art=a,this.timer=null}set show(a){let{constructor:s,template:{$player:l,$noticeInner:c}}=this.art;a?(c.textContent=a instanceof Error?a.message.trim():a,(0,i.addClass)(l,"art-notice-show"),clearTimeout(this.timer),this.timer=setTimeout(()=>{c.textContent="",(0,i.removeClass)(l,"art-notice-show")},s.NOTICE_TIME)):(0,i.removeClass)(l,"art-notice-show")}get show(){let{template:{$player:a}}=this.art;return a.classList.contains("art-notice-show")}}},{"./utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],uR0Sw:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("./airplayMix"),s=i.interopDefault(a),l=e("./aspectRatioMix"),c=i.interopDefault(l),d=e("./attrMix"),h=i.interopDefault(d),p=e("./autoHeightMix"),v=i.interopDefault(p),g=e("./autoSizeMix"),y=i.interopDefault(g),S=e("./cssVarMix"),k=i.interopDefault(S),w=e("./currentTimeMix"),x=i.interopDefault(w),E=e("./durationMix"),_=i.interopDefault(E),T=e("./eventInit"),D=i.interopDefault(T),P=e("./flipMix"),M=i.interopDefault(P),$=e("./fullscreenMix"),L=i.interopDefault($),B=e("./fullscreenWebMix"),j=i.interopDefault(B),H=e("./loadedMix"),U=i.interopDefault(H),W=e("./miniMix"),K=i.interopDefault(W),oe=e("./optionInit"),ae=i.interopDefault(oe),ee=e("./pauseMix"),Y=i.interopDefault(ee),Q=e("./pipMix"),ie=i.interopDefault(Q),q=e("./playbackRateMix"),te=i.interopDefault(q),Se=e("./playedMix"),Fe=i.interopDefault(Se),ve=e("./playingMix"),Re=i.interopDefault(ve),Ge=e("./playMix"),nt=i.interopDefault(Ge),Ie=e("./posterMix"),_e=i.interopDefault(Ie),me=e("./qualityMix"),ge=i.interopDefault(me),Be=e("./rectMix"),Ye=i.interopDefault(Be),Ke=e("./screenshotMix"),at=i.interopDefault(Ke),ft=e("./seekMix"),ct=i.interopDefault(ft),Ct=e("./stateMix"),xt=i.interopDefault(Ct),Rt=e("./subtitleOffsetMix"),Ht=i.interopDefault(Rt),Jt=e("./switchMix"),rn=i.interopDefault(Jt),vt=e("./themeMix"),Ve=i.interopDefault(vt),Oe=e("./thumbnailsMix"),Ce=i.interopDefault(Oe),We=e("./toggleMix"),$e=i.interopDefault(We),dt=e("./typeMix"),Qe=i.interopDefault(dt),Le=e("./urlMix"),ht=i.interopDefault(Le),Vt=e("./volumeMix"),Ut=i.interopDefault(Vt);n.default=class{constructor(Lt){(0,ht.default)(Lt),(0,h.default)(Lt),(0,nt.default)(Lt),(0,Y.default)(Lt),(0,$e.default)(Lt),(0,ct.default)(Lt),(0,Ut.default)(Lt),(0,x.default)(Lt),(0,_.default)(Lt),(0,rn.default)(Lt),(0,te.default)(Lt),(0,c.default)(Lt),(0,at.default)(Lt),(0,L.default)(Lt),(0,j.default)(Lt),(0,ie.default)(Lt),(0,U.default)(Lt),(0,Fe.default)(Lt),(0,Re.default)(Lt),(0,y.default)(Lt),(0,Ye.default)(Lt),(0,M.default)(Lt),(0,K.default)(Lt),(0,_e.default)(Lt),(0,v.default)(Lt),(0,k.default)(Lt),(0,Ve.default)(Lt),(0,Qe.default)(Lt),(0,xt.default)(Lt),(0,Ht.default)(Lt),(0,s.default)(Lt),(0,ge.default)(Lt),(0,Ce.default)(Lt),(0,D.default)(Lt),(0,ae.default)(Lt)}}},{"./airplayMix":"d8BTB","./aspectRatioMix":"aQNJl","./attrMix":"5DA9e","./autoHeightMix":"1swKn","./autoSizeMix":"lSbiD","./cssVarMix":"32Hp1","./currentTimeMix":"kfZbu","./durationMix":"eV1ag","./eventInit":"f8NQq","./flipMix":"ea3Qm","./fullscreenMix":"ffXE3","./fullscreenWebMix":"8tarF","./loadedMix":"f9syH","./miniMix":"dLuS7","./optionInit":"d1F69","./pauseMix":"kewk9","./pipMix":"4XzDs","./playbackRateMix":"jphfi","./playedMix":"iNpeS","./playingMix":"aBIWL","./playMix":"hRBri","./posterMix":"fgfXC","./qualityMix":"17rUP","./rectMix":"55qzI","./screenshotMix":"bC6TG","./seekMix":"j8GRO","./stateMix":"cn7iR","./subtitleOffsetMix":"2k4nP","./switchMix":"6SU6j","./themeMix":"7iMuh","./thumbnailsMix":"6P0RS","./toggleMix":"eNi78","./typeMix":"7AUBD","./urlMix":"cnlLL","./volumeMix":"iX66j","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d8BTB:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,proxy:h,template:{$video:p}}=l,v=!0;window.WebKitPlaybackTargetAvailabilityEvent&&p.webkitShowPlaybackTargetPicker?h(p,"webkitplaybacktargetavailabilitychanged",g=>{switch(g.availability){case"available":v=!0;break;case"not-available":v=!1}}):v=!1,(0,a.def)(l,"airplay",{value(){v?(p.webkitShowPlaybackTargetPicker(),l.emit("airplay")):d.show=c.get("AirPlay Not Available")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aQNJl:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,template:{$video:h,$player:p}}=l;(0,a.def)(l,"aspectRatio",{get:()=>p.dataset.aspectRatio||"default",set(v){if(v||(v="default"),v==="default")(0,a.setStyle)(h,"width",null),(0,a.setStyle)(h,"height",null),(0,a.setStyle)(h,"margin",null),delete p.dataset.aspectRatio;else{let g=v.split(":").map(Number),{clientWidth:y,clientHeight:S}=p,k=g[0]/g[1];y/S>k?((0,a.setStyle)(h,"width",`${k*S}px`),(0,a.setStyle)(h,"height","100%"),(0,a.setStyle)(h,"margin","0 auto")):((0,a.setStyle)(h,"width","100%"),(0,a.setStyle)(h,"height",`${y/k}px`),(0,a.setStyle)(h,"margin","auto 0")),p.dataset.aspectRatio=v}d.show=`${c.get("Aspect Ratio")}: ${v==="default"?c.get("Default"):v}`,l.emit("aspectRatio",v)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"5DA9e":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c}}=l;(0,a.def)(l,"attr",{value(d,h){if(h===void 0)return c[d];c[d]=h}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"1swKn":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$container:c,$video:d}}=l;(0,a.def)(l,"autoHeight",{value(){let{clientWidth:h}=c,{videoHeight:p,videoWidth:v}=d,g=h/v*p;(0,a.setStyle)(c,"height",`${g}px`),l.emit("autoHeight",g)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],lSbiD:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$container:c,$player:d,$video:h}=l.template;(0,a.def)(l,"autoSize",{value(){let{videoWidth:p,videoHeight:v}=h,{width:g,height:y}=(0,a.getRect)(c),S=p/v;g/y>S?((0,a.setStyle)(d,"width",`${y*S/g*100}%`),(0,a.setStyle)(d,"height","100%")):((0,a.setStyle)(d,"width","100%"),(0,a.setStyle)(d,"height",`${g/S/y*100}%`)),l.emit("autoSize",{width:l.width,height:l.height})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"32Hp1":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$player:c}=l.template;(0,a.def)(l,"cssVar",{value:(d,h)=>h?c.style.setProperty(d,h):getComputedStyle(c).getPropertyValue(d)})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kfZbu:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"currentTime",{get:()=>c.currentTime||0,set:d=>{Number.isNaN(d=Number.parseFloat(d))||(c.currentTime=(0,a.clamp)(d,0,l.duration))}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eV1ag:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"duration",{get:()=>{let{duration:c}=l.template.$video;return c===1/0?0:c||0}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f8NQq:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>c);var a=e("../config"),s=i.interopDefault(a),l=e("../utils");function c(d){let{i18n:h,notice:p,option:v,constructor:g,proxy:y,template:{$player:S,$video:k,$poster:w}}=d,x=0;for(let E=0;E{d.emit(`video:${_.type}`,_)});d.on("video:canplay",()=>{x=0,d.loading.show=!1}),d.once("video:canplay",()=>{d.loading.show=!1,d.controls.show=!0,d.mask.show=!0,d.isReady=!0,d.emit("ready")}),d.on("video:ended",()=>{v.loop?(d.seek=0,d.play(),d.controls.show=!1,d.mask.show=!1):(d.controls.show=!0,d.mask.show=!0)}),d.on("video:error",async E=>{x{d.emit("resize"),l.isMobile&&(d.loading.show=!1,d.controls.show=!0,d.mask.show=!0)}),d.on("video:loadstart",()=>{d.loading.show=!0,d.mask.show=!1,d.controls.show=!0}),d.on("video:pause",()=>{d.controls.show=!0,d.mask.show=!0}),d.on("video:play",()=>{d.mask.show=!1,(0,l.setStyle)(w,"display","none")}),d.on("video:playing",()=>{d.mask.show=!1}),d.on("video:progress",()=>{d.playing&&(d.loading.show=!1)}),d.on("video:seeked",()=>{d.loading.show=!1,d.mask.show=!0}),d.on("video:seeking",()=>{d.loading.show=!0,d.mask.show=!1}),d.on("video:timeupdate",()=>{d.mask.show=!1}),d.on("video:waiting",()=>{d.loading.show=!0,d.mask.show=!1})}},{"../config":"eJfh8","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ea3Qm:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$player:c},i18n:d,notice:h}=l;(0,a.def)(l,"flip",{get:()=>c.dataset.flip||"normal",set(p){p||(p="normal"),p==="normal"?delete c.dataset.flip:c.dataset.flip=p,h.show=`${d.get("Video Flip")}: ${d.get((0,a.capitalize)(p))}`,l.emit("flip",p)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],ffXE3:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>c);var a=e("../libs/screenfull"),s=i.interopDefault(a),l=e("../utils");function c(d){let{i18n:h,notice:p,template:{$video:v,$player:g}}=d;d.once("video:loadedmetadata",()=>{s.default.isEnabled?(s.default.on("change",()=>{d.emit("fullscreen",s.default.isFullscreen),s.default.isFullscreen?(d.state="fullscreen",(0,l.addClass)(g,"art-fullscreen")):(0,l.removeClass)(g,"art-fullscreen"),d.emit("resize")}),s.default.on("error",y=>{d.emit("fullscreenError",y)}),(0,l.def)(d,"fullscreen",{get:()=>s.default.isFullscreen,async set(y){y?await s.default.request(g):await s.default.exit()}})):v.webkitSupportsFullscreen?(d.on("document:webkitfullscreenchange",()=>{d.emit("fullscreen",d.fullscreen),d.emit("resize")}),(0,l.def)(d,"fullscreen",{get:()=>document.fullscreenElement===v,set(y){y?(d.state="fullscreen",v.webkitEnterFullscreen()):v.webkitExitFullscreen()}})):(0,l.def)(d,"fullscreen",{get:()=>!1,set(){p.show=h.get("Fullscreen Not Supported")}}),(0,l.def)(d,"fullscreen",(0,l.get)(d,"fullscreen"))})}},{"../libs/screenfull":"iSPAQ","../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iSPAQ:[function(e,t,n,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);let i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=(()=>{if(typeof document>"u")return!1;let c=i[0],d={};for(let h of i)if(h[1]in document){for(let[p,v]of h.entries())d[c[p]]=v;return d}return!1})(),s={change:a.fullscreenchange,error:a.fullscreenerror},l={request:(c=document.documentElement,d)=>new Promise((h,p)=>{let v=()=>{l.off("change",v),h()};l.on("change",v);let g=c[a.requestFullscreen](d);g instanceof Promise&&g.then(v).catch(p)}),exit:()=>new Promise((c,d)=>{if(!l.isFullscreen)return void c();let h=()=>{l.off("change",h),c()};l.on("change",h);let p=document[a.exitFullscreen]();p instanceof Promise&&p.then(h).catch(d)}),toggle:(c,d)=>l.isFullscreen?l.exit():l.request(c,d),onchange(c){l.on("change",c)},onerror(c){l.on("error",c)},on(c,d){let h=s[c];h&&document.addEventListener(h,d,!1)},off(c,d){let h=s[c];h&&document.removeEventListener(h,d,!1)},raw:a};Object.defineProperties(l,{isFullscreen:{get:()=>!!document[a.fullscreenElement]},element:{enumerable:!0,get:()=>document[a.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>!!document[a.fullscreenEnabled]}}),n.default=l},{"@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"8tarF":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{constructor:c,template:{$container:d,$player:h}}=l,p="";(0,a.def)(l,"fullscreenWeb",{get:()=>(0,a.hasClass)(h,"art-fullscreen-web"),set(v){v?(p=h.style.cssText,c.FULLSCREEN_WEB_IN_BODY&&(0,a.append)(document.body,h),l.state="fullscreenWeb",(0,a.setStyle)(h,"width","100%"),(0,a.setStyle)(h,"height","100%"),(0,a.addClass)(h,"art-fullscreen-web"),l.emit("fullscreenWeb",!0)):(c.FULLSCREEN_WEB_IN_BODY&&(0,a.append)(d,h),p&&(h.style.cssText=p,p=""),(0,a.removeClass)(h,"art-fullscreen-web"),l.emit("fullscreenWeb",!1)),l.emit("resize")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],f9syH:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"loaded",{get:()=>l.loadedTime/c.duration}),(0,a.def)(l,"loadedTime",{get:()=>c.buffered.length?c.buffered.end(c.buffered.length-1):0})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],dLuS7:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{icons:c,proxy:d,storage:h,template:{$player:p,$video:v}}=l,g=!1,y=0,S=0;function k(){let{$mini:E}=l.template;E&&((0,a.removeClass)(p,"art-mini"),(0,a.setStyle)(E,"display","none"),p.prepend(v),l.emit("mini",!1))}function w(E,_){l.playing?((0,a.setStyle)(E,"display","none"),(0,a.setStyle)(_,"display","flex")):((0,a.setStyle)(E,"display","flex"),(0,a.setStyle)(_,"display","none"))}function x(){let{$mini:E}=l.template,_=(0,a.getRect)(E),T=window.innerHeight-_.height-50,D=window.innerWidth-_.width-50;h.set("top",T),h.set("left",D),(0,a.setStyle)(E,"top",`${T}px`),(0,a.setStyle)(E,"left",`${D}px`)}(0,a.def)(l,"mini",{get:()=>(0,a.hasClass)(p,"art-mini"),set(E){if(E){l.state="mini",(0,a.addClass)(p,"art-mini");let _=(function(){let{$mini:P}=l.template;if(P)return(0,a.append)(P,v),(0,a.setStyle)(P,"display","flex");{let M=(0,a.createElement)("div");(0,a.addClass)(M,"art-mini-popup"),(0,a.append)(document.body,M),l.template.$mini=M,(0,a.append)(M,v);let $=(0,a.append)(M,'
');(0,a.append)($,c.close),d($,"click",k);let L=(0,a.append)(M,'
'),B=(0,a.append)(L,c.play),j=(0,a.append)(L,c.pause);return d(B,"click",()=>l.play()),d(j,"click",()=>l.pause()),w(B,j),l.on("video:playing",()=>w(B,j)),l.on("video:pause",()=>w(B,j)),l.on("video:timeupdate",()=>w(B,j)),d(M,"mousedown",H=>{g=H.button===0,y=H.pageX,S=H.pageY}),l.on("document:mousemove",H=>{if(g){(0,a.addClass)(M,"art-mini-dragging");let U=H.pageX-y,W=H.pageY-S;(0,a.setStyle)(M,"transform",`translate(${U}px, ${W}px)`)}}),l.on("document:mouseup",()=>{if(g){g=!1,(0,a.removeClass)(M,"art-mini-dragging");let H=(0,a.getRect)(M);h.set("left",H.left),h.set("top",H.top),(0,a.setStyle)(M,"left",`${H.left}px`),(0,a.setStyle)(M,"top",`${H.top}px`),(0,a.setStyle)(M,"transform",null)}}),M}})(),T=h.get("top"),D=h.get("left");typeof T=="number"&&typeof D=="number"?((0,a.setStyle)(_,"top",`${T}px`),(0,a.setStyle)(_,"left",`${D}px`),(0,a.isInViewport)(_)||x()):x(),l.emit("mini",!0)}else k()}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d1F69:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,storage:d,template:{$video:h,$poster:p}}=l;for(let g in c.moreVideoAttr)l.attr(g,c.moreVideoAttr[g]);c.muted&&(l.muted=c.muted),c.volume&&(h.volume=(0,a.clamp)(c.volume,0,1));let v=d.get("volume");for(let g in typeof v=="number"&&(h.volume=(0,a.clamp)(v,0,1)),c.poster&&(0,a.setStyle)(p,"backgroundImage",`url(${c.poster})`),c.autoplay&&(h.autoplay=c.autoplay),c.playsInline&&(h.playsInline=!0,h["webkit-playsinline"]=!0),c.theme&&(c.cssVar["--art-theme"]=c.theme),c.cssVar)l.cssVar(g,c.cssVar[g]);l.url=c.url}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],kewk9:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h}=l;(0,a.def)(l,"pause",{value(){let p=c.pause();return h.show=d.get("Pause"),l.emit("pause"),p}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4XzDs":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,template:{$video:h}}=l;if(document.pictureInPictureEnabled){let{template:{$video:p},proxy:v,notice:g}=l;p.disablePictureInPicture=!1,(0,a.def)(l,"pip",{get:()=>document.pictureInPictureElement,set(y){y?(l.state="pip",p.requestPictureInPicture().catch(S=>{throw g.show=S,S})):document.exitPictureInPicture().catch(S=>{throw g.show=S,S})}}),v(p,"enterpictureinpicture",()=>{l.emit("pip",!0)}),v(p,"leavepictureinpicture",()=>{l.emit("pip",!1)})}else if(h.webkitSupportsPresentationMode){let{$video:p}=l.template;p.webkitSetPresentationMode("inline"),(0,a.def)(l,"pip",{get:()=>p.webkitPresentationMode==="picture-in-picture",set(v){v?(l.state="pip",p.webkitSetPresentationMode("picture-in-picture"),l.emit("pip",!0)):(p.webkitSetPresentationMode("inline"),l.emit("pip",!1))}})}else(0,a.def)(l,"pip",{get:()=>!1,set(){d.show=c.get("PIP Not Supported")}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jphfi:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h}=l;(0,a.def)(l,"playbackRate",{get:()=>c.playbackRate,set(p){p?p!==c.playbackRate&&(c.playbackRate=p,h.show=`${d.get("Rate")}: ${p===1?d.get("Normal"):`${p}x`}`):l.playbackRate=1}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iNpeS:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"played",{get:()=>l.currentTime/l.duration})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],aBIWL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{$video:c}=l.template;(0,a.def)(l,"playing",{get:()=>typeof c.playing=="boolean"?c.playing:c.currentTime>0&&!c.paused&&!c.ended&&c.readyState>2})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],hRBri:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,notice:d,option:h,constructor:{instances:p},template:{$video:v}}=l;(0,a.def)(l,"play",{async value(){let g=await v.play();if(d.show=c.get("Play"),l.emit("play"),h.mutex)for(let y=0;ys);var a=e("../utils");function s(l){let{template:{$poster:c}}=l;(0,a.def)(l,"poster",{get:()=>{try{return c.style.backgroundImage.match(/"(.*)"/)[1]}catch{return""}},set(d){(0,a.setStyle)(c,"backgroundImage",`url(${d})`)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"17rUP":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"quality",{set(c){let{controls:d,notice:h,i18n:p}=l,v=c.find(g=>g.default)||c[0];d.update({name:"quality",position:"right",index:10,style:{marginRight:"10px"},html:v?.html||"",selector:c,onSelect:async g=>(await l.switchQuality(g.url),h.show=`${p.get("Switch Video")}: ${g.html}`,g.html)})}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"55qzI":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"rect",{get:()=>(0,a.getRect)(l.template.$player)});let c=["bottom","height","left","right","top","width"];for(let d=0;dl.rect[h]})}(0,a.def)(l,"x",{get:()=>l.left+window.pageXOffset}),(0,a.def)(l,"y",{get:()=>l.top+window.pageYOffset})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bC6TG:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c,template:{$video:d}}=l,h=(0,a.createElement)("canvas");(0,a.def)(l,"getDataURL",{value:()=>new Promise((p,v)=>{try{h.width=d.videoWidth,h.height=d.videoHeight,h.getContext("2d").drawImage(d,0,0),p(h.toDataURL("image/png"))}catch(g){c.show=g,v(g)}})}),(0,a.def)(l,"getBlobUrl",{value:()=>new Promise((p,v)=>{try{h.width=d.videoWidth,h.height=d.videoHeight,h.getContext("2d").drawImage(d,0,0),h.toBlob(g=>{p(URL.createObjectURL(g))})}catch(g){c.show=g,v(g)}})}),(0,a.def)(l,"screenshot",{value:async p=>{let v=await l.getDataURL(),g=p||`artplayer_${(0,a.secondToTime)(d.currentTime)}`;return(0,a.download)(v,`${g}.png`),l.emit("screenshot",v),v}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],j8GRO:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c}=l;(0,a.def)(l,"seek",{set(d){l.currentTime=d,l.duration&&(c.show=`${(0,a.secondToTime)(l.currentTime)} / ${(0,a.secondToTime)(l.duration)}`),l.emit("seek",l.currentTime)}}),(0,a.def)(l,"forward",{set(d){l.seek=l.currentTime+d}}),(0,a.def)(l,"backward",{set(d){l.seek=l.currentTime-d}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cn7iR:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let c=["mini","pip","fullscreen","fullscreenWeb"];(0,a.def)(l,"state",{get:()=>c.find(d=>l[d])||"standard",set(d){for(let h=0;hs);var a=e("../utils");function s(l){let{notice:c,i18n:d,template:h}=l;(0,a.def)(l,"subtitleOffset",{get:()=>h.$track?.offset||0,set(p){let{cues:v}=l.subtitle;if(!h.$track||v.length===0)return;let g=(0,a.clamp)(p,-10,10);h.$track.offset=g;for(let y=0;ys);var a=e("../utils");function s(l){function c(d,h){return new Promise((p,v)=>{if(d===l.url)return;let{playing:g,aspectRatio:y,playbackRate:S}=l;l.pause(),l.url=d,l.notice.show="",l.once("video:error",v),l.once("video:loadedmetadata",()=>{l.currentTime=h}),l.once("video:canplay",async()=>{l.playbackRate=S,l.aspectRatio=y,g&&await l.play(),l.notice.show="",p()})})}(0,a.def)(l,"switchQuality",{value:d=>c(d,l.currentTime)}),(0,a.def)(l,"switchUrl",{value:d=>c(d,0)}),(0,a.def)(l,"switch",{set:l.switchUrl})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7iMuh":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"theme",{get:()=>l.cssVar("--art-theme"),set(c){l.cssVar("--art-theme",c)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"6P0RS":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{events:c,option:d,template:{$progress:h,$video:p}}=l,v=null,g=null,y=!1,S=!1,k=!1;c.hover(h,()=>{k=!0},()=>{k=!1}),l.on("setBar",async(w,x,E)=>{let _=l.controls?.thumbnails,{url:T,scale:D}=d.thumbnails;if(!_||!T)return;let P=w==="played"&&E&&a.isMobile;if(w==="hover"||P){if(y||(y=!0,g=await(0,a.loadImg)(T,D),S=!0),!S||!k)return;let M=h.clientWidth*x;(0,a.setStyle)(_,"display","flex"),M>0&&Mh.clientWidth-K/2?(0,a.setStyle)(L,"left",`${h.clientWidth-K}px`):(0,a.setStyle)(L,"left",`${$-K/2}px`)})(M):a.isMobile||(0,a.setStyle)(_,"display","none"),P&&(clearTimeout(v),v=setTimeout(()=>{(0,a.setStyle)(_,"display","none")},500))}}),(0,a.def)(l,"thumbnails",{get:()=>l.option.thumbnails,set(w){w.url&&!l.option.isLive&&(l.option.thumbnails=w,clearTimeout(v),v=null,g=null,y=!1,S=!1)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],eNi78:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"toggle",{value:()=>l.playing?l.pause():l.play()})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"7AUBD":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){(0,a.def)(l,"type",{get:()=>l.option.type,set(c){l.option.type=c}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cnlLL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{option:c,template:{$video:d}}=l;(0,a.def)(l,"url",{get:()=>d.src,async set(h){if(h){let p=l.url,v=c.type||(0,a.getExt)(h),g=c.customType[v];v&&g?(await(0,a.sleep)(),l.loading.show=!0,g.call(l,d,h,l)):(URL.revokeObjectURL(p),d.src=h),p!==l.url&&(l.option.url=h,l.isReady&&p&&l.once("video:canplay",()=>{l.emit("restart",h)}))}else await(0,a.sleep)(),l.loading.show=!0}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],iX66j:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{template:{$video:c},i18n:d,notice:h,storage:p}=l;(0,a.def)(l,"volume",{get:()=>c.volume||0,set:v=>{c.volume=(0,a.clamp)(v,0,1),h.show=`${d.get("Volume")}: ${Number.parseInt(100*c.volume,10)}`,c.volume!==0&&p.set("volume",c.volume)}}),(0,a.def)(l,"muted",{get:()=>c.muted,set:v=>{c.muted=v,l.emit("muted",v)}})}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],cjxJL:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("./autoOrientation"),l=i.interopDefault(s),c=e("./autoPlayback"),d=i.interopDefault(c),h=e("./fastForward"),p=i.interopDefault(h),v=e("./lock"),g=i.interopDefault(v),y=e("./miniProgressBar"),S=i.interopDefault(y);n.default=class{constructor(k){this.art=k,this.id=0;let{option:w}=k;w.miniProgressBar&&!w.isLive&&this.add(S.default),w.lock&&a.isMobile&&this.add(g.default),w.autoPlayback&&!w.isLive&&this.add(d.default),w.autoOrientation&&a.isMobile&&this.add(l.default),w.fastForward&&a.isMobile&&!w.isLive&&this.add(p.default);for(let x=0;xthis.next(k,x)):this.next(k,w)}next(k,w){let x=w&&w.name||k.name||`plugin${this.id}`;return(0,a.errorHandle)(!(0,a.has)(this,x),`Cannot add a plugin that already has the same name: ${x}`),(0,a.def)(this,x,{value:w}),this}}},{"../utils":"aBlEo","./autoOrientation":"jb9jb","./autoPlayback":"21HWM","./fastForward":"4sxBO","./lock":"fjy9V","./miniProgressBar":"d0xRp","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],jb9jb:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{notice:c,constructor:d,template:{$player:h,$video:p}}=l,v="art-auto-orientation",g="art-auto-orientation-fullscreen",y=!1;function S(){let{videoWidth:k,videoHeight:w}=p,x=document.documentElement.clientWidth,E=document.documentElement.clientHeight;return k>w&&xE}return l.on("fullscreenWeb",k=>{k?S()&&setTimeout(()=>{l.fullscreenWeb&&!(0,a.hasClass)(h,v)&&(function(){let w=document.documentElement.clientWidth,x=document.documentElement.clientHeight;(0,a.setStyle)(h,"width",`${x}px`),(0,a.setStyle)(h,"height",`${w}px`),(0,a.setStyle)(h,"transform-origin","0 0"),(0,a.setStyle)(h,"transform",`rotate(90deg) translate(0, -${w}px)`),(0,a.addClass)(h,v),l.isRotate=!0,l.emit("resize")})()},Number(d.AUTO_ORIENTATION_TIME??0)):(0,a.hasClass)(h,v)&&((0,a.setStyle)(h,"width",""),(0,a.setStyle)(h,"height",""),(0,a.setStyle)(h,"transform-origin",""),(0,a.setStyle)(h,"transform",""),(0,a.removeClass)(h,v),l.isRotate=!1,l.emit("resize"))}),l.on("fullscreen",async k=>{let w=!!screen?.orientation?.lock;if(k){if(w&&S())try{let x=screen.orientation.type.startsWith("portrait")?"landscape":"portrait";await screen.orientation.lock(x),y=!0,(0,a.addClass)(h,g)}catch(x){y=!1,c.show=x}}else if((0,a.hasClass)(h,g)&&(0,a.removeClass)(h,g),w&&y){try{screen.orientation.unlock()}catch{}y=!1}}),{name:"autoOrientation",get state(){return(0,a.hasClass)(h,v)}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"21HWM":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{i18n:c,icons:d,storage:h,constructor:p,proxy:v,template:{$poster:g}}=l,y=l.layers.add({name:"auto-playback",html:'
'}),S=(0,a.query)(".art-auto-playback-last",y),k=(0,a.query)(".art-auto-playback-jump",y),w=(0,a.query)(".art-auto-playback-close",y);(0,a.append)(w,d.close);let x=null;function E(){let _=(h.get("times")||{})[l.option.id||l.option.url];clearTimeout(x),(0,a.setStyle)(y,"display","none"),_&&_>=p.AUTO_PLAYBACK_MIN&&((0,a.setStyle)(y,"display","flex"),S.textContent=`${c.get("Last Seen")} ${(0,a.secondToTime)(_)}`,k.textContent=c.get("Jump Play"),v(w,"click",()=>{(0,a.setStyle)(y,"display","none")}),v(k,"click",()=>{l.seek=_,l.play(),(0,a.setStyle)(g,"display","none"),(0,a.setStyle)(y,"display","none")}),l.once("video:timeupdate",()=>{x=setTimeout(()=>{(0,a.setStyle)(y,"display","none")},p.AUTO_PLAYBACK_TIMEOUT)}))}return l.on("video:timeupdate",()=>{if(l.playing){let _=h.get("times")||{},T=Object.keys(_);T.length>p.AUTO_PLAYBACK_MAX&&delete _[T[0]],_[l.option.id||l.option.url]=l.currentTime,h.set("times",_)}}),l.on("ready",E),l.on("restart",E),{name:"auto-playback",get times(){return h.get("times")||{}},clear:()=>h.del("times"),delete(_){let T=h.get("times")||{};return delete T[_],h.set("times",T),T}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],"4sxBO":[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{constructor:c,proxy:d,template:{$player:h,$video:p}}=l,v=null,g=!1,y=1,S=()=>{clearTimeout(v),g&&(g=!1,l.playbackRate=y,(0,a.removeClass)(h,"art-fast-forward"))};return d(p,"touchstart",k=>{k.touches.length===1&&l.playing&&!l.isLock&&(v=setTimeout(()=>{g=!0,y=l.playbackRate,l.playbackRate=c.FAST_FORWARD_VALUE,(0,a.addClass)(h,"art-fast-forward")},c.FAST_FORWARD_TIME))}),l.on("document:touchmove",S),l.on("document:touchend",S),{name:"fastForward",get state(){return(0,a.hasClass)(h,"art-fast-forward")}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],fjy9V:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){let{layers:c,icons:d,template:{$player:h}}=l;function p(){return(0,a.hasClass)(h,"art-lock")}function v(){(0,a.addClass)(h,"art-lock"),l.isLock=!0,l.emit("lock",!0)}function g(){(0,a.removeClass)(h,"art-lock"),l.isLock=!1,l.emit("lock",!1)}return c.add({name:"lock",mounted(y){let S=(0,a.append)(y,d.lock),k=(0,a.append)(y,d.unlock);(0,a.setStyle)(S,"display","none"),l.on("lock",w=>{w?((0,a.setStyle)(S,"display","inline-flex"),(0,a.setStyle)(k,"display","none")):((0,a.setStyle)(S,"display","none"),(0,a.setStyle)(k,"display","inline-flex"))})},click(){p()?g():v()}}),{name:"lock",get state(){return p()},set state(y){y?v():g()}}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],d0xRp:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",()=>s);var a=e("../utils");function s(l){return l.on("control",c=>{c?(0,a.removeClass)(l.template.$player,"art-mini-progress-bar"):(0,a.addClass)(l.template.$player,"art-mini-progress-bar")}),{name:"mini-progress-bar"}}},{"../utils":"aBlEo","@parcel/transformer-js/src/esmodule-helpers.js":"loqXi"}],bwLGT:[function(e,t,n,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n);var a=e("../utils"),s=e("../utils/component"),l=i.interopDefault(s),c=e("./aspectRatio"),d=i.interopDefault(c),h=e("./flip"),p=i.interopDefault(h),v=e("./playbackRate"),g=i.interopDefault(v),y=e("./subtitleOffset"),S=i.interopDefault(y);class k extends l.default{constructor(x){super(x);let{option:E,controls:_,template:{$setting:T}}=x;this.name="setting",this.$parent=T,this.id=0,this.active=null,this.cache=new Map,this.option=[...this.builtin,...E.settings],E.setting&&(this.format(),this.render(),x.on("blur",()=>{this.show&&(this.show=!1,this.render())}),x.on("focus",D=>{let P=(0,a.includeFromEvent)(D,_.setting),M=(0,a.includeFromEvent)(D,this.$parent);!this.show||P||M||(this.show=!1,this.render())}),x.on("resize",()=>this.resize()))}get builtin(){let x=[],{option:E}=this.art;return E.playbackRate&&x.push((0,g.default)(this.art)),E.aspectRatio&&x.push((0,d.default)(this.art)),E.flip&&x.push((0,p.default)(this.art)),E.subtitleOffset&&x.push((0,S.default)(this.art)),x}traverse(x,E=this.option){for(let _=0;_{E.default=E===x,E.default&&E.$item&&(0,a.inverseClass)(E.$item,"art-current")},x.$option),this.render(x.$parents)}format(x=this.option,E,_,T=[]){for(let D=0;DE}),(0,a.def)(P,"$parents",{get:()=>_}),(0,a.def)(P,"$option",{get:()=>x});let M=[];(0,a.def)(P,"$events",{get:()=>M}),(0,a.def)(P,"$formatted",{get:()=>!0})}this.format(P.selector||[],P,x,T)}this.option=x}find(x=""){let E=null;return this.traverse(_=>{_.name===x&&(E=_)}),E}resize(){let{controls:x,constructor:{SETTING_WIDTH:E,SETTING_ITEM_HEIGHT:_},template:{$player:T,$setting:D}}=this.art;if(x.setting&&this.show){let P=this.active[0]?.$parent?.width||E,{left:M,width:$}=(0,a.getRect)(x.setting),{left:L,width:B}=(0,a.getRect)(T),j=M-L+$/2-P/2,H=this.active===this.option?this.active.length*_:(this.active.length+1)*_;if((0,a.setStyle)(D,"height",`${H}px`),(0,a.setStyle)(D,"width",`${P}px`),this.art.isRotate||a.isMobile)return;j+P>B?((0,a.setStyle)(D,"left",null),(0,a.setStyle)(D,"right",null)):((0,a.setStyle)(D,"left",`${j}px`),(0,a.setStyle)(D,"right","auto"))}}inactivate(x){for(let E=0;E